{"version":3,"file":"index-e96156e0.js","sources":["../../node_modules/react/cjs/react.production.min.js","../../node_modules/react/index.js","../../node_modules/scheduler/cjs/scheduler.production.min.js","../../node_modules/scheduler/index.js","../../node_modules/react-dom/cjs/react-dom.production.min.js","../../node_modules/react-dom/index.js","../../node_modules/react-dom/client.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","../../node_modules/use-sync-external-store/shim/index.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js","../../node_modules/use-sync-external-store/shim/with-selector.js","../../node_modules/react-redux/es/utils/batch.js","../../node_modules/react-redux/es/components/Context.js","../../node_modules/react-redux/es/hooks/useReduxContext.js","../../node_modules/react-redux/es/utils/useSyncExternalStore.js","../../node_modules/react-redux/es/hooks/useSelector.js","../../node_modules/react-is/cjs/react-is.production.min.js","../../node_modules/react-is/index.js","../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../node_modules/react-redux/node_modules/react-is/cjs/react-is.production.min.js","../../node_modules/react-redux/es/utils/Subscription.js","../../node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js","../../node_modules/react-redux/es/components/Provider.js","../../node_modules/react-redux/es/hooks/useStore.js","../../node_modules/react-redux/es/hooks/useDispatch.js","../../node_modules/react-redux/es/index.js","../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../node_modules/react/jsx-runtime.js","../../node_modules/@cpchem/covalence-ui/lib/index.esm.js","../../src/hooks/use-app/context.ts","../../src/hooks/use-app/hook.ts","../../src/hooks/use-app/provider.tsx","../../node_modules/@remix-run/router/dist/router.js","../../node_modules/react-router/dist/index.js","../../node_modules/react-router-dom/dist/index.js","../../src/hooks/use-search-params.ts","../../src/utilities/provided-config.ts","../../src/config.ts","../../node_modules/immer/dist/immer.esm.mjs","../../node_modules/@babel/runtime/helpers/esm/typeof.js","../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../../node_modules/redux/es/redux.js","../../node_modules/redux-thunk/es/index.js","../../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js","../../src/services/service-locator.ts","../../node_modules/luxon/src/errors.js","../../node_modules/luxon/src/impl/formats.js","../../node_modules/luxon/src/impl/util.js","../../node_modules/luxon/src/impl/english.js","../../node_modules/luxon/src/impl/formatter.js","../../node_modules/luxon/src/impl/invalid.js","../../node_modules/luxon/src/zone.js","../../node_modules/luxon/src/zones/systemZone.js","../../node_modules/luxon/src/zones/IANAZone.js","../../node_modules/luxon/src/zones/fixedOffsetZone.js","../../node_modules/luxon/src/zones/invalidZone.js","../../node_modules/luxon/src/impl/zoneUtil.js","../../node_modules/luxon/src/settings.js","../../node_modules/luxon/src/impl/locale.js","../../node_modules/luxon/src/impl/regexParser.js","../../node_modules/luxon/src/duration.js","../../node_modules/luxon/src/interval.js","../../node_modules/luxon/src/info.js","../../node_modules/luxon/src/impl/diff.js","../../node_modules/luxon/src/impl/digits.js","../../node_modules/luxon/src/impl/tokenParser.js","../../node_modules/luxon/src/impl/conversions.js","../../node_modules/luxon/src/datetime.js","../../src/utilities/dates.ts","../../src/models/comment.ts","../../src/models/shipment.ts","../../src/models/trip-location.ts","../../src/utilities/products.ts","../../src/utilities/address.ts","../../src/models/shipment-milestones.ts","../../node_modules/@fortawesome/pro-light-svg-icons/index.mjs","../../src/models/exceptions.ts","../../src/services/shipments-api/shipments-api.ts","../../node_modules/@microsoft/dynamicproto-js/lib/dist/esm/dynamicproto-js.js","../../node_modules/@microsoft/applicationinsights-shims/dist-esm/Constants.js","../../node_modules/@microsoft/applicationinsights-shims/dist-esm/Helpers.js","../../node_modules/@microsoft/applicationinsights-shims/dist-esm/TsLibShims.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/__DynamicConstants.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/InternalConstants.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/HelperFuncs.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/EnvUtils.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/DbgExtensionUtils.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/DiagnosticLogger.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/PerfManager.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/RandomHelper.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/DataCacheHelper.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/CookieMgr.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/EventHelpers.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/CoreUtils.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/W3cTraceParent.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/TelemetryHelpers.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/ChannelController.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/BaseCore.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/NotificationManager.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/AppInsightsCore.js","../../node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/InstrumentHooks.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Constants.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/DomHelperFuncs.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/__DynamicConstants.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/HelperFuncs.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/RequestResponseHeaders.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Enums.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/StorageHelperFuncs.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Common/DataSanitizer.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/UrlHelperFuncs.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Util.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/ConnectionStringParser.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Common/Envelope.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Event.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Exception.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Common/DataPoint.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Metric.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/PageView.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/RemoteDependencyData.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Trace.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/PageViewPerformance.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Common/Data.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Interfaces/Contracts/ContextTagKeys.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/TelemetryItemCreator.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/Interfaces/PartAExtensions.js","../../node_modules/@microsoft/applicationinsights-common/dist-esm/applicationinsights-common.js","../../node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/__DynamicConstants.js","../../node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/JavaScriptSDK/Telemetry/PageViewManager.js","../../node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js","../../node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js","../../node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/JavaScriptSDK/Timing.js","../../node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/JavaScriptSDK/AnalyticsPlugin.js","../../node_modules/@microsoft/applicationinsights-channel-js/dist-esm/InternalConstants.js","../../node_modules/@microsoft/applicationinsights-channel-js/dist-esm/__DynamicConstants.js","../../node_modules/@microsoft/applicationinsights-channel-js/dist-esm/EnvelopeCreator.js","../../node_modules/@microsoft/applicationinsights-channel-js/dist-esm/Offline.js","../../node_modules/@microsoft/applicationinsights-channel-js/dist-esm/SendBuffer.js","../../node_modules/@microsoft/applicationinsights-channel-js/dist-esm/Serializer.js","../../node_modules/@microsoft/applicationinsights-channel-js/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js","../../node_modules/@microsoft/applicationinsights-channel-js/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js","../../node_modules/@microsoft/applicationinsights-channel-js/dist-esm/TelemetryProcessors/Sample.js","../../node_modules/@microsoft/applicationinsights-channel-js/dist-esm/Sender.js","../../node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/InternalConstants.js","../../node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/__DynamicConstants.js","../../node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/ajaxRecord.js","../../node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/ajax.js","../../node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/Application.js","../../node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/Device.js","../../node_modules/@microsoft/applicationinsights-properties-js/dist-esm/__DynamicConstants.js","../../node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/Internal.js","../../node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/Location.js","../../node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/Session.js","../../node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/TelemetryTrace.js","../../node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/User.js","../../node_modules/@microsoft/applicationinsights-properties-js/dist-esm/TelemetryContext.js","../../node_modules/@microsoft/applicationinsights-properties-js/dist-esm/PropertiesPlugin.js","../../node_modules/@microsoft/applicationinsights-web/dist-esm/InternalConstants.js","../../node_modules/@microsoft/applicationinsights-web/dist-esm/__DynamicConstants.js","../../node_modules/@microsoft/applicationinsights-web/dist-esm/Initialization.js","../../node_modules/@cpchem/logging/lib/index.esm.js","../../src/services/fetchInterceptor/fetch-interceptor-service.ts","../../src/services/fetchInterceptor/implementation.ts","../../src/services/shipments-api/implementation.ts","../../src/services/shipments-api/models/search-results.ts","../../src/services/personalization-api/personalization-api.ts","../../src/services/personalization-api/implementation.ts","../../src/services/index.ts","../../src/stores/Exceptions/index.ts","../../src/stores/Personalization/index.ts","../../src/stores/Search/index.ts","../../src/stores/utils.ts","../../src/stores/Shipment/index.ts","../../src/stores/Ocean/index.ts","../../src/stores/Favorites/index.ts","../../src/stores/index.ts","../../src/utilities/log/in-dev-environment.ts","../../src/utilities/log/configure-logging.ts","../../src/utilities/log/page-view-event.ts","../../src/utilities/log/only-page-views.ts","../../src/utilities/log/app-version.ts","../../src/utilities/log/configure-app-insights.ts","../../node_modules/logrocket/dist/build.umd.js","../../node_modules/logrocket-react/dist/index.js","../../src/utilities/log/user-traits.ts","../../src/utilities/log/configure-log-rocket.ts","../../src/app/components/error-boundary/index.tsx","../../src/app/components/error-message/index.tsx","../../node_modules/bind-decorator/index.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/_virtual/_tslib.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/_virtual/_tslib.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/utils/Constants.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/error/AuthError.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/crypto/ICrypto.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/error/ClientAuthError.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/utils/StringUtils.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/logger/Logger.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/packageMetadata.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/request/ScopeSet.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/account/ClientInfo.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/authority/AuthorityType.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/account/AuthToken.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/CacheManager.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/error/ServerError.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/network/NetworkManager.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/account/CcsCredential.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/request/RequestValidator.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/client/BaseClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/utils/TimeUtils.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/url/UrlString.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/response/ResponseHandler.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/authority/Authority.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/network/INetworkModule.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/cache/BrowserStorage.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/cache/MemoryStorage.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/packageMetadata.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/network/FetchClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/network/XhrClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/event/EventType.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/error/NativeAuthError.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/navigation/NavigationClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/config/Configuration.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/event/EventHandler.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/utils/MathUtils.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/crypto/GuidGenerator.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/utils/BrowserStringUtils.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/encode/Base64Encode.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/encode/Base64Decode.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/crypto/PkceGenerator.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/crypto/MsBrowserCrypto.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/cache/DatabaseStorage.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/cache/AsyncMemoryStorage.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/cache/CryptoKeyStore.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/crypto/CryptoOps.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/cache/TokenCache.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/app/ClientApplication.js","../../node_modules/@cpchem/azure-auth/node_modules/@azure/msal-browser/dist/app/PublicClientApplication.js","../../node_modules/uuid/dist/esm-browser/rng.js","../../node_modules/uuid/dist/esm-browser/stringify.js","../../node_modules/uuid/dist/esm-browser/native.js","../../node_modules/uuid/dist/esm-browser/v4.js","../../node_modules/@cpchem/azure-auth/lib/index.esm.js","../../src/app/elements.ts","../../src/app/components/login-screen/index.tsx","../../src/app/components/unauthorized-page/index.tsx","../../node_modules/@cpchem/azure-auth-react/lib/index.esm.js","../../src/components/elements.ts","../../src/components/page-header/index.tsx","../../src/components/surface/index.tsx","../../node_modules/@fortawesome/fontawesome-svg-core/index.mjs","../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../node_modules/prop-types/factoryWithThrowingShims.js","../../node_modules/prop-types/index.js","../../node_modules/@fortawesome/react-fontawesome/index.es.js","../../src/components/drawer/components/drawer-group.tsx","../../src/components/drawer/index.tsx","../../src/components/sorted-text-filter-input/index.tsx","../../src/components/manager-no-personalization/index.tsx","../../src/components/card/index.tsx","../../src/components/container/components/shipmentInfo.tsx","../../src/components/container/components/containerCard.tsx","../../src/components/container/components/containerInformation.tsx","../../src/models/exception-shipment-detail.ts","../../src/pages/exception-results-page/hooks/constants.ts","../../src/pages/exception-results-page/hooks/use-exception-details.ts","../../src/pages/search-page/sort/sort-constants.ts","../../src/pages/search-page/sort/sort-by-datetime.ts","../../src/pages/exception-results-page/components/exception-detail-row.tsx","../../src/pages/exception-results-page/components/index.tsx","../../src/pages/shipment-exceptions-page/hooks/use-personalization.ts","../../src/components/loader/index.tsx","../../src/pages/exception-results-page/index.tsx","../../src/pages/landing-page/elements.ts","../../node_modules/@fortawesome/pro-solid-svg-icons/index.mjs","../../src/components/four-kites-sign-on-banner/index.tsx","../../src/components/favorites/hooks/use-favorites.ts","../../src/components/favorites/components/favoritesBanner/index.tsx","../../src/pages/shipment-details/hooks/use-shipment-from-store.ts","../../src/pages/shipment-details/hooks/use-shipment-details.ts","../../src/components/sno-status-badge/index.tsx","../../src/components/favorites/components/favoritesButton/favoriteButton.tsx","../../src/components/favorites/components/views/shipmentDetailsFavoriteView/index.tsx","../../src/models/favorite.ts","../../src/components/favorites/components/favoritesWrapper/favoritesWrapper.tsx","../../src/components/favorites/components/favoritesDashboard/favoritesDashboard.tsx","../../src/pages/landing-page/index.tsx","../../src/components/search-guide/index.tsx","../../src/app/hooks/use-search.ts","../../src/pages/search-page/determine-dit-display.ts","../../src/pages/search-page/elements.ts","../../src/pages/search-page/components/active-results-grid/shipment-status.tsx","../../src/pages/search-page/components/active-results-grid/result-row.tsx","../../src/pages/search-page/components/train-icon.tsx","../../src/pages/search-page/models.ts","../../src/pages/search-page/sort/sort-by-shipment-status.ts","../../src/pages/search-page/filter/filter-by-shipment-status.ts","../../src/pages/search-page/constants.ts","../../src/pages/search-page/components/derive-shipment-status-options.ts","../../src/pages/search-page/components/shipment-status-text-filter.tsx","../../src/pages/search-page/components/active-results-grid/index.tsx","../../src/pages/search-page/components/historical-results-grid/result-row.tsx","../../src/pages/search-page/components/historical-results-grid/index.tsx","../../src/pages/search-page/components/results-grid.tsx","../../src/pages/search-page/components/search-page-header/util.ts","../../src/pages/search-page/components/search-page-header/index.tsx","../../src/pages/search-page/index.tsx","../../src/pages/shipment-details/components/grid-item/index.tsx","../../src/pages/shipment-details/elements.ts","../../src/pages/shipment-details/constants.ts","../../src/pages/shipment-details/components/trip-details-modal/index.tsx","../../src/pages/shipment-details/hooks/use-rail-details.ts","../../src/pages/shipment-details/components/trip-comment/index.tsx","../../src/pages/shipment-details/components/historical-badge/index.tsx","../../src/pages/shipment-details/components/trip-comments-modal/index.tsx","../../src/pages/shipment-details/components/rail-details/constants.ts","../../src/pages/shipment-details/components/rail-details/shipment-eta-logic.ts","../../src/pages/shipment-details/components/rail-details/utils.ts","../../src/pages/shipment-details/components/rail-details/shipment-status-logic.ts","../../src/pages/shipment-details/components/rail-details/index.tsx","../../src/pages/shipment-details/index.tsx","../../src/pages/shipment-exceptions-page/components/widget.tsx","../../src/pages/shipment-exceptions-page/constants.ts","../../src/pages/shipment-exceptions-page/hooks/use-shipment-exceptions.ts","../../src/pages/shipment-exceptions-page/index.tsx","../../src/pages/ocean-details-page/hooks/use-orderDetails.ts","../../src/pages/ocean-details-page/index.tsx","../../src/pages/ocean-details-page/deliveryDetails.tsx","../../src/elements.ts","../../src/components/icons/logo-icon/index.tsx","../../src/app/components/sno-app-bar/index.tsx","../../src/app/components/sno-drawer/index.tsx","../../src/app/route-paths.ts","../../src/app/index.tsx","../../src/app/components/authN-boundary/restricted.tsx","../../src/app/components/authN-boundary/index.tsx","../../src/main.tsx"],"sourcesContent":["/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1>>1,e=a[d];if(0>>1;dg(C,c))ng(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"\")&&(k=k.replace(\"\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"===typeof b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e\"+b.valueOf().toString()+\"\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a>=g;e-=g;rg=1<<32-oc(b)+e|c<w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;ww?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)}\nfunction Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);\nfunction Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[];\nfunction Oh(){for(var a=0;ac?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState}\nfunction Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}}\nfunction ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}}\nfunction Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308,\n4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b=\nci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d,\nf,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Uh++;0\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;eHj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(),\nnull;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1;\nfunction Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n}\nfunction Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}\nfunction Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling}\nfunction ak(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0;\nZj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;de&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;kB()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)}\nfunction ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk;\nWk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\nhj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)}\nfunction al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction $k(a){if(\"function\"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction yh(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)bj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3 batch = newBatch; // Supply a getter just to skip dealing with ESM bindings\n\nexport const getBatch = () => batch;","import * as React from 'react';\nconst ContextKey = Symbol.for(`react-redux-context`);\nconst gT = typeof globalThis !== \"undefined\" ? globalThis :\n/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */\n{};\n\nfunction getContext() {\n var _gT$ContextKey;\n\n if (!React.createContext) return {};\n const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = new Map();\n let realContext = contextMap.get(React.createContext);\n\n if (!realContext) {\n realContext = React.createContext(null);\n\n if (process.env.NODE_ENV !== 'production') {\n realContext.displayName = 'ReactRedux';\n }\n\n contextMap.set(React.createContext, realContext);\n }\n\n return realContext;\n}\n\nexport const ReactReduxContext = /*#__PURE__*/getContext();\nexport default ReactReduxContext;","import { useContext } from 'react';\nimport { ReactReduxContext } from '../components/Context';\n\n/**\r\n * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level\r\n * hook that you should usually not need to call directly.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\r\n * @returns {Function} A `useReduxContext` hook bound to the specified context.\r\n */\nexport function createReduxContextHook(context = ReactReduxContext) {\n return function useReduxContext() {\n const contextValue = useContext(context);\n\n if (process.env.NODE_ENV !== 'production' && !contextValue) {\n throw new Error('could not find react-redux context value; please ensure the component is wrapped in a ');\n }\n\n return contextValue;\n };\n}\n/**\r\n * A hook to access the value of the `ReactReduxContext`. This is a low-level\r\n * hook that you should usually not need to call directly.\r\n *\r\n * @returns {any} the value of the `ReactReduxContext`\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useReduxContext } from 'react-redux'\r\n *\r\n * export const CounterComponent = () => {\r\n * const { store } = useReduxContext()\r\n * return
{store.getState()}
\r\n * }\r\n */\n\nexport const useReduxContext = /*#__PURE__*/createReduxContextHook();","export const notInitialized = () => {\n throw new Error('uSES not initialized!');\n};","import { useCallback, useDebugValue, useRef } from 'react';\nimport { createReduxContextHook, useReduxContext as useDefaultReduxContext } from './useReduxContext';\nimport { ReactReduxContext } from '../components/Context';\nimport { notInitialized } from '../utils/useSyncExternalStore';\nlet useSyncExternalStoreWithSelector = notInitialized;\nexport const initializeUseSelector = fn => {\n useSyncExternalStoreWithSelector = fn;\n};\n\nconst refEquality = (a, b) => a === b;\n/**\r\n * Hook factory, which creates a `useSelector` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\r\n * @returns {Function} A `useSelector` hook bound to the specified context.\r\n */\n\n\nexport function createSelectorHook(context = ReactReduxContext) {\n const useReduxContext = context === ReactReduxContext ? useDefaultReduxContext : createReduxContextHook(context);\n return function useSelector(selector, equalityFnOrOptions = {}) {\n const {\n equalityFn = refEquality,\n stabilityCheck = undefined,\n noopCheck = undefined\n } = typeof equalityFnOrOptions === 'function' ? {\n equalityFn: equalityFnOrOptions\n } : equalityFnOrOptions;\n\n if (process.env.NODE_ENV !== 'production') {\n if (!selector) {\n throw new Error(`You must pass a selector to useSelector`);\n }\n\n if (typeof selector !== 'function') {\n throw new Error(`You must pass a function as a selector to useSelector`);\n }\n\n if (typeof equalityFn !== 'function') {\n throw new Error(`You must pass a function as an equality function to useSelector`);\n }\n }\n\n const {\n store,\n subscription,\n getServerState,\n stabilityCheck: globalStabilityCheck,\n noopCheck: globalNoopCheck\n } = useReduxContext();\n const firstRun = useRef(true);\n const wrappedSelector = useCallback({\n [selector.name](state) {\n const selected = selector(state);\n\n if (process.env.NODE_ENV !== 'production') {\n const finalStabilityCheck = typeof stabilityCheck === 'undefined' ? globalStabilityCheck : stabilityCheck;\n\n if (finalStabilityCheck === 'always' || finalStabilityCheck === 'once' && firstRun.current) {\n const toCompare = selector(state);\n\n if (!equalityFn(selected, toCompare)) {\n let stack = undefined;\n\n try {\n throw new Error();\n } catch (e) {\n ;\n ({\n stack\n } = e);\n }\n\n console.warn('Selector ' + (selector.name || 'unknown') + ' returned a different result when called with the same parameters. This can lead to unnecessary rerenders.' + '\\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization', {\n state,\n selected,\n selected2: toCompare,\n stack\n });\n }\n }\n\n const finalNoopCheck = typeof noopCheck === 'undefined' ? globalNoopCheck : noopCheck;\n\n if (finalNoopCheck === 'always' || finalNoopCheck === 'once' && firstRun.current) {\n // @ts-ignore\n if (selected === state) {\n let stack = undefined;\n\n try {\n throw new Error();\n } catch (e) {\n ;\n ({\n stack\n } = e);\n }\n\n console.warn('Selector ' + (selector.name || 'unknown') + ' returned the root state when called. This can lead to unnecessary rerenders.' + '\\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.', {\n stack\n });\n }\n }\n\n if (firstRun.current) firstRun.current = false;\n }\n\n return selected;\n }\n\n }[selector.name], [selector, globalStabilityCheck, stabilityCheck]);\n const selectedState = useSyncExternalStoreWithSelector(subscription.addNestedSub, store.getState, getServerState || store.getState, wrappedSelector, equalityFn);\n useDebugValue(selectedState);\n return selectedState;\n };\n}\n/**\r\n * A hook to access the redux store's state. This hook takes a selector function\r\n * as an argument. The selector is called with the store state.\r\n *\r\n * This hook takes an optional equality comparison function as the second parameter\r\n * that allows you to customize the way the selected state is compared to determine\r\n * whether the component needs to be re-rendered.\r\n *\r\n * @param {Function} selector the selector function\r\n * @param {Function=} equalityFn the function that will be used to determine equality\r\n *\r\n * @returns {any} the selected state\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useSelector } from 'react-redux'\r\n *\r\n * export const CounterComponent = () => {\r\n * const counter = useSelector(state => state.counter)\r\n * return
{counter}
\r\n * }\r\n */\n\nexport const useSelector = /*#__PURE__*/createSelectorHook();","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","import { getBatch } from './batch'; // encapsulates the subscription logic for connecting a component to the redux store, as\n// well as nesting subscriptions of descendant components, so that we can ensure the\n// ancestor components re-render before descendants\n\nfunction createListenerCollection() {\n const batch = getBatch();\n let first = null;\n let last = null;\n return {\n clear() {\n first = null;\n last = null;\n },\n\n notify() {\n batch(() => {\n let listener = first;\n\n while (listener) {\n listener.callback();\n listener = listener.next;\n }\n });\n },\n\n get() {\n let listeners = [];\n let listener = first;\n\n while (listener) {\n listeners.push(listener);\n listener = listener.next;\n }\n\n return listeners;\n },\n\n subscribe(callback) {\n let isSubscribed = true;\n let listener = last = {\n callback,\n next: null,\n prev: last\n };\n\n if (listener.prev) {\n listener.prev.next = listener;\n } else {\n first = listener;\n }\n\n return function unsubscribe() {\n if (!isSubscribed || first === null) return;\n isSubscribed = false;\n\n if (listener.next) {\n listener.next.prev = listener.prev;\n } else {\n last = listener.prev;\n }\n\n if (listener.prev) {\n listener.prev.next = listener.next;\n } else {\n first = listener.next;\n }\n };\n }\n\n };\n}\n\nconst nullListeners = {\n notify() {},\n\n get: () => []\n};\nexport function createSubscription(store, parentSub) {\n let unsubscribe;\n let listeners = nullListeners; // Reasons to keep the subscription active\n\n let subscriptionsAmount = 0; // Is this specific subscription subscribed (or only nested ones?)\n\n let selfSubscribed = false;\n\n function addNestedSub(listener) {\n trySubscribe();\n const cleanupListener = listeners.subscribe(listener); // cleanup nested sub\n\n let removed = false;\n return () => {\n if (!removed) {\n removed = true;\n cleanupListener();\n tryUnsubscribe();\n }\n };\n }\n\n function notifyNestedSubs() {\n listeners.notify();\n }\n\n function handleChangeWrapper() {\n if (subscription.onStateChange) {\n subscription.onStateChange();\n }\n }\n\n function isSubscribed() {\n return selfSubscribed;\n }\n\n function trySubscribe() {\n subscriptionsAmount++;\n\n if (!unsubscribe) {\n unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);\n listeners = createListenerCollection();\n }\n }\n\n function tryUnsubscribe() {\n subscriptionsAmount--;\n\n if (unsubscribe && subscriptionsAmount === 0) {\n unsubscribe();\n unsubscribe = undefined;\n listeners.clear();\n listeners = nullListeners;\n }\n }\n\n function trySubscribeSelf() {\n if (!selfSubscribed) {\n selfSubscribed = true;\n trySubscribe();\n }\n }\n\n function tryUnsubscribeSelf() {\n if (selfSubscribed) {\n selfSubscribed = false;\n tryUnsubscribe();\n }\n }\n\n const subscription = {\n addNestedSub,\n notifyNestedSubs,\n handleChangeWrapper,\n isSubscribed,\n trySubscribe: trySubscribeSelf,\n tryUnsubscribe: tryUnsubscribeSelf,\n getListeners: () => listeners\n };\n return subscription;\n}","import * as React from 'react'; // React currently throws a warning when using useLayoutEffect on the server.\n// To get around it, we can conditionally useEffect on the server (no-op) and\n// useLayoutEffect in the browser. We need useLayoutEffect to ensure the store\n// subscription callback always has the selector from the latest render commit\n// available, otherwise a store update may happen between render and the effect,\n// which may cause missed updates; we also must ensure the store subscription\n// is created synchronously, otherwise a store update may occur before the\n// subscription is created and an inconsistent state may be observed\n// Matches logic in React's `shared/ExecutionEnvironment` file\n\nexport const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');\nexport const useIsomorphicLayoutEffect = canUseDOM ? React.useLayoutEffect : React.useEffect;","import * as React from 'react';\nimport { ReactReduxContext } from './Context';\nimport { createSubscription } from '../utils/Subscription';\nimport { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect';\n\nfunction Provider({\n store,\n context,\n children,\n serverState,\n stabilityCheck = 'once',\n noopCheck = 'once'\n}) {\n const contextValue = React.useMemo(() => {\n const subscription = createSubscription(store);\n return {\n store,\n subscription,\n getServerState: serverState ? () => serverState : undefined,\n stabilityCheck,\n noopCheck\n };\n }, [store, serverState, stabilityCheck, noopCheck]);\n const previousState = React.useMemo(() => store.getState(), [store]);\n useIsomorphicLayoutEffect(() => {\n const {\n subscription\n } = contextValue;\n subscription.onStateChange = subscription.notifyNestedSubs;\n subscription.trySubscribe();\n\n if (previousState !== store.getState()) {\n subscription.notifyNestedSubs();\n }\n\n return () => {\n subscription.tryUnsubscribe();\n subscription.onStateChange = undefined;\n };\n }, [contextValue, previousState]);\n const Context = context || ReactReduxContext; // @ts-ignore 'AnyAction' is assignable to the constraint of type 'A', but 'A' could be instantiated with a different subtype\n\n return /*#__PURE__*/React.createElement(Context.Provider, {\n value: contextValue\n }, children);\n}\n\nexport default Provider;","import { ReactReduxContext } from '../components/Context';\nimport { useReduxContext as useDefaultReduxContext, createReduxContextHook } from './useReduxContext';\n/**\r\n * Hook factory, which creates a `useStore` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\r\n * @returns {Function} A `useStore` hook bound to the specified context.\r\n */\n\nexport function createStoreHook(context = ReactReduxContext) {\n const useReduxContext = // @ts-ignore\n context === ReactReduxContext ? useDefaultReduxContext : // @ts-ignore\n createReduxContextHook(context);\n return function useStore() {\n const {\n store\n } = useReduxContext(); // @ts-ignore\n\n return store;\n };\n}\n/**\r\n * A hook to access the redux store.\r\n *\r\n * @returns {any} the redux store\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useStore } from 'react-redux'\r\n *\r\n * export const ExampleComponent = () => {\r\n * const store = useStore()\r\n * return
{store.getState()}
\r\n * }\r\n */\n\nexport const useStore = /*#__PURE__*/createStoreHook();","import { ReactReduxContext } from '../components/Context';\nimport { useStore as useDefaultStore, createStoreHook } from './useStore';\n/**\r\n * Hook factory, which creates a `useDispatch` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your ``.\r\n * @returns {Function} A `useDispatch` hook bound to the specified context.\r\n */\n\nexport function createDispatchHook(context = ReactReduxContext) {\n const useStore = // @ts-ignore\n context === ReactReduxContext ? useDefaultStore : createStoreHook(context);\n return function useDispatch() {\n const store = useStore(); // @ts-ignore\n\n return store.dispatch;\n };\n}\n/**\r\n * A hook to access the redux `dispatch` function.\r\n *\r\n * @returns {any|function} redux store's `dispatch` function\r\n *\r\n * @example\r\n *\r\n * import React, { useCallback } from 'react'\r\n * import { useDispatch } from 'react-redux'\r\n *\r\n * export const CounterComponent = ({ value }) => {\r\n * const dispatch = useDispatch()\r\n * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])\r\n * return (\r\n *
\r\n * {value}\r\n * \r\n *
\r\n * )\r\n * }\r\n */\n\nexport const useDispatch = /*#__PURE__*/createDispatchHook();","// The primary entry point assumes we're working with standard ReactDOM/RN, but\n// older versions that do not include `useSyncExternalStore` (React 16.9 - 17.x).\n// Because of that, the useSyncExternalStore compat shim is needed.\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { unstable_batchedUpdates as batch } from './utils/reactBatchedUpdates';\nimport { setBatch } from './utils/batch';\nimport { initializeUseSelector } from './hooks/useSelector';\nimport { initializeConnect } from './components/connect';\ninitializeUseSelector(useSyncExternalStoreWithSelector);\ninitializeConnect(useSyncExternalStore); // Enable batched updates in our subscriptions for use\n// with standard React renderers (ReactDOM, React Native)\n\nsetBatch(batch);\nexport { batch };\nexport * from './exports';","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","var _p = Object.defineProperty;\nvar Vp = (e, t, n) => t in e ? _p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;\nvar fo = (e, t, n) => (Vp(e, typeof t != \"symbol\" ? t + \"\" : t, n), n);\nimport { jsx as T, jsxs as Oe, Fragment as Qo } from \"react/jsx-runtime\";\nimport * as _t from \"react\";\nimport vn, { useState as jt, useMemo as Ot, useCallback as Vt, useEffect as Wt, useRef as Nt, createContext as Kt, useContext as wt, useLayoutEffect as Gp, useInsertionEffect as df, forwardRef as jp, createElement as Jo, useId as hl, cloneElement as pf, Children as zp, isValidElement as Hp } from \"react\";\nimport Wp from \"react-dom\";\nfunction W2({ className: e, children: t, testId: n, gap: r }) {\n const i = [\"cui-card\"];\n r && i.push(\"has-gap\"), e && i.push(e);\n const a = i.join(\" \");\n return /* @__PURE__ */ T(\"div\", { className: a, \"data-testid\": n, children: t });\n}\nfunction U2(e) {\n const { children: t, className: n, gap: r, testId: i } = e;\n let a = \"cui-grid\";\n n && (a += ` ${n}`);\n let o;\n return typeof r < \"u\" && r && (a += \" has-gap\", typeof r != \"boolean\" && (o = {\n \"--grid-gap\": r\n })), /* @__PURE__ */ T(\"div\", { className: a, \"data-testid\": i, style: o, children: t });\n}\nfunction q2({\n breakpoint: e,\n children: t,\n className: n,\n isFluid: r = !1,\n testId: i\n}) {\n let a = \"cui-container\";\n return r && (a += \"-fluid\"), e && (a += ` ${e}`), n && (a += ` ${n}`), /* @__PURE__ */ T(\"div\", { className: a, \"data-testid\": i, children: t });\n}\nfunction Up({\n className: e,\n isSeparator: t,\n variant: n,\n testId: r\n}) {\n let i = \"cui-divider\";\n e && (i += ` ${e}`), n && (i += ` is-${n}`);\n let a;\n return t && (a = \"separator\"), /* @__PURE__ */ T(\"div\", { className: i, \"data-testid\": r, role: a });\n}\nfunction du(e, t) {\n var n = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var r = Object.getOwnPropertySymbols(e);\n t && (r = r.filter(function(i) {\n return Object.getOwnPropertyDescriptor(e, i).enumerable;\n })), n.push.apply(n, r);\n }\n return n;\n}\nfunction ye(e) {\n for (var t = 1; t < arguments.length; t++) {\n var n = arguments[t] != null ? arguments[t] : {};\n t % 2 ? du(Object(n), !0).forEach(function(r) {\n kt(e, r, n[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : du(Object(n)).forEach(function(r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));\n });\n }\n return e;\n}\nfunction No(e) {\n \"@babel/helpers - typeof\";\n return No = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(t) {\n return typeof t;\n } : function(t) {\n return t && typeof Symbol == \"function\" && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n }, No(e);\n}\nfunction qp(e, t) {\n if (!(e instanceof t))\n throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction pu(e, t) {\n for (var n = 0; n < t.length; n++) {\n var r = t[n];\n r.enumerable = r.enumerable || !1, r.configurable = !0, \"value\" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);\n }\n}\nfunction Yp(e, t, n) {\n return t && pu(e.prototype, t), n && pu(e, n), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), e;\n}\nfunction kt(e, t, n) {\n return t in e ? Object.defineProperty(e, t, {\n value: n,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[t] = n, e;\n}\nfunction vl(e, t) {\n return Xp(e) || Qp(e, t) || mf(e, t) || em();\n}\nfunction ui(e) {\n return Kp(e) || Zp(e) || mf(e) || Jp();\n}\nfunction Kp(e) {\n if (Array.isArray(e))\n return Ms(e);\n}\nfunction Xp(e) {\n if (Array.isArray(e))\n return e;\n}\nfunction Zp(e) {\n if (typeof Symbol < \"u\" && e[Symbol.iterator] != null || e[\"@@iterator\"] != null)\n return Array.from(e);\n}\nfunction Qp(e, t) {\n var n = e == null ? null : typeof Symbol < \"u\" && e[Symbol.iterator] || e[\"@@iterator\"];\n if (n != null) {\n var r = [], i = !0, a = !1, o, l;\n try {\n for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0)\n ;\n } catch (d) {\n a = !0, l = d;\n } finally {\n try {\n !i && n.return != null && n.return();\n } finally {\n if (a)\n throw l;\n }\n }\n return r;\n }\n}\nfunction mf(e, t) {\n if (e) {\n if (typeof e == \"string\")\n return Ms(e, t);\n var n = Object.prototype.toString.call(e).slice(8, -1);\n if (n === \"Object\" && e.constructor && (n = e.constructor.name), n === \"Map\" || n === \"Set\")\n return Array.from(e);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))\n return Ms(e, t);\n }\n}\nfunction Ms(e, t) {\n (t == null || t > e.length) && (t = e.length);\n for (var n = 0, r = new Array(t); n < t; n++)\n r[n] = e[n];\n return r;\n}\nfunction Jp() {\n throw new TypeError(`Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);\n}\nfunction em() {\n throw new TypeError(`Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);\n}\nvar mu = function() {\n}, gl = {}, hf = {}, vf = null, gf = {\n mark: mu,\n measure: mu\n};\ntry {\n typeof window < \"u\" && (gl = window), typeof document < \"u\" && (hf = document), typeof MutationObserver < \"u\" && (vf = MutationObserver), typeof performance < \"u\" && (gf = performance);\n} catch {\n}\nvar tm = gl.navigator || {}, hu = tm.userAgent, vu = hu === void 0 ? \"\" : hu, On = gl, bt = hf, gu = vf, po = gf;\nOn.document;\nvar gn = !!bt.documentElement && !!bt.head && typeof bt.addEventListener == \"function\" && typeof bt.createElement == \"function\", yf = ~vu.indexOf(\"MSIE\") || ~vu.indexOf(\"Trident/\"), mo, ho, vo, go, yo, fn = \"___FONT_AWESOME___\", Fs = 16, bf = \"fa\", wf = \"svg-inline--fa\", Qn = \"data-fa-i2svg\", Bs = \"data-fa-pseudo-element\", nm = \"data-fa-pseudo-element-pending\", yl = \"data-prefix\", bl = \"data-icon\", yu = \"fontawesome-i2svg\", rm = \"async\", im = [\"HTML\", \"HEAD\", \"STYLE\", \"SCRIPT\"], xf = function() {\n try {\n return process.env.NODE_ENV === \"production\";\n } catch {\n return !1;\n }\n}(), yt = \"classic\", Rt = \"sharp\", wl = [yt, Rt];\nfunction ci(e) {\n return new Proxy(e, {\n get: function(n, r) {\n return r in n ? n[r] : n[yt];\n }\n });\n}\nvar Jr = ci((mo = {}, kt(mo, yt, {\n fa: \"solid\",\n fas: \"solid\",\n \"fa-solid\": \"solid\",\n far: \"regular\",\n \"fa-regular\": \"regular\",\n fal: \"light\",\n \"fa-light\": \"light\",\n fat: \"thin\",\n \"fa-thin\": \"thin\",\n fad: \"duotone\",\n \"fa-duotone\": \"duotone\",\n fab: \"brands\",\n \"fa-brands\": \"brands\",\n fak: \"kit\",\n \"fa-kit\": \"kit\"\n}), kt(mo, Rt, {\n fa: \"solid\",\n fass: \"solid\",\n \"fa-solid\": \"solid\",\n fasr: \"regular\",\n \"fa-regular\": \"regular\",\n fasl: \"light\",\n \"fa-light\": \"light\"\n}), mo)), ei = ci((ho = {}, kt(ho, yt, {\n solid: \"fas\",\n regular: \"far\",\n light: \"fal\",\n thin: \"fat\",\n duotone: \"fad\",\n brands: \"fab\",\n kit: \"fak\"\n}), kt(ho, Rt, {\n solid: \"fass\",\n regular: \"fasr\",\n light: \"fasl\"\n}), ho)), ti = ci((vo = {}, kt(vo, yt, {\n fab: \"fa-brands\",\n fad: \"fa-duotone\",\n fak: \"fa-kit\",\n fal: \"fa-light\",\n far: \"fa-regular\",\n fas: \"fa-solid\",\n fat: \"fa-thin\"\n}), kt(vo, Rt, {\n fass: \"fa-solid\",\n fasr: \"fa-regular\",\n fasl: \"fa-light\"\n}), vo)), om = ci((go = {}, kt(go, yt, {\n \"fa-brands\": \"fab\",\n \"fa-duotone\": \"fad\",\n \"fa-kit\": \"fak\",\n \"fa-light\": \"fal\",\n \"fa-regular\": \"far\",\n \"fa-solid\": \"fas\",\n \"fa-thin\": \"fat\"\n}), kt(go, Rt, {\n \"fa-solid\": \"fass\",\n \"fa-regular\": \"fasr\",\n \"fa-light\": \"fasl\"\n}), go)), am = /fa(s|r|l|t|d|b|k|ss|sr|sl)?[\\-\\ ]/, Cf = \"fa-layers-text\", sm = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i, lm = ci((yo = {}, kt(yo, yt, {\n 900: \"fas\",\n 400: \"far\",\n normal: \"far\",\n 300: \"fal\",\n 100: \"fat\"\n}), kt(yo, Rt, {\n 900: \"fass\",\n 400: \"fasr\",\n 300: \"fasl\"\n}), yo)), Rf = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], um = Rf.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), cm = [\"class\", \"data-prefix\", \"data-icon\", \"data-fa-transform\", \"data-fa-mask\"], Un = {\n GROUP: \"duotone-group\",\n SWAP_OPACITY: \"swap-opacity\",\n PRIMARY: \"primary\",\n SECONDARY: \"secondary\"\n}, ni = /* @__PURE__ */ new Set();\nObject.keys(ei[yt]).map(ni.add.bind(ni));\nObject.keys(ei[Rt]).map(ni.add.bind(ni));\nvar fm = [].concat(wl, ui(ni), [\"2xs\", \"xs\", \"sm\", \"lg\", \"xl\", \"2xl\", \"beat\", \"border\", \"fade\", \"beat-fade\", \"bounce\", \"flip-both\", \"flip-horizontal\", \"flip-vertical\", \"flip\", \"fw\", \"inverse\", \"layers-counter\", \"layers-text\", \"layers\", \"li\", \"pull-left\", \"pull-right\", \"pulse\", \"rotate-180\", \"rotate-270\", \"rotate-90\", \"rotate-by\", \"shake\", \"spin-pulse\", \"spin-reverse\", \"spin\", \"stack-1x\", \"stack-2x\", \"stack\", \"ul\", Un.GROUP, Un.SWAP_OPACITY, Un.PRIMARY, Un.SECONDARY]).concat(Rf.map(function(e) {\n return \"\".concat(e, \"x\");\n})).concat(um.map(function(e) {\n return \"w-\".concat(e);\n})), Ur = On.FontAwesomeConfig || {};\nfunction dm(e) {\n var t = bt.querySelector(\"script[\" + e + \"]\");\n if (t)\n return t.getAttribute(e);\n}\nfunction pm(e) {\n return e === \"\" ? !0 : e === \"false\" ? !1 : e === \"true\" ? !0 : e;\n}\nif (bt && typeof bt.querySelector == \"function\") {\n var mm = [[\"data-family-prefix\", \"familyPrefix\"], [\"data-css-prefix\", \"cssPrefix\"], [\"data-family-default\", \"familyDefault\"], [\"data-style-default\", \"styleDefault\"], [\"data-replacement-class\", \"replacementClass\"], [\"data-auto-replace-svg\", \"autoReplaceSvg\"], [\"data-auto-add-css\", \"autoAddCss\"], [\"data-auto-a11y\", \"autoA11y\"], [\"data-search-pseudo-elements\", \"searchPseudoElements\"], [\"data-observe-mutations\", \"observeMutations\"], [\"data-mutate-approach\", \"mutateApproach\"], [\"data-keep-original-source\", \"keepOriginalSource\"], [\"data-measure-performance\", \"measurePerformance\"], [\"data-show-missing-icons\", \"showMissingIcons\"]];\n mm.forEach(function(e) {\n var t = vl(e, 2), n = t[0], r = t[1], i = pm(dm(n));\n i != null && (Ur[r] = i);\n });\n}\nvar Sf = {\n styleDefault: \"solid\",\n familyDefault: \"classic\",\n cssPrefix: bf,\n replacementClass: wf,\n autoReplaceSvg: !0,\n autoAddCss: !0,\n autoA11y: !0,\n searchPseudoElements: !1,\n observeMutations: !0,\n mutateApproach: \"async\",\n keepOriginalSource: !0,\n measurePerformance: !1,\n showMissingIcons: !0\n};\nUr.familyPrefix && (Ur.cssPrefix = Ur.familyPrefix);\nvar gr = ye(ye({}, Sf), Ur);\ngr.autoReplaceSvg || (gr.observeMutations = !1);\nvar Ae = {};\nObject.keys(Sf).forEach(function(e) {\n Object.defineProperty(Ae, e, {\n enumerable: !0,\n set: function(n) {\n gr[e] = n, qr.forEach(function(r) {\n return r(Ae);\n });\n },\n get: function() {\n return gr[e];\n }\n });\n});\nObject.defineProperty(Ae, \"familyPrefix\", {\n enumerable: !0,\n set: function(t) {\n gr.cssPrefix = t, qr.forEach(function(n) {\n return n(Ae);\n });\n },\n get: function() {\n return gr.cssPrefix;\n }\n});\nOn.FontAwesomeConfig = Ae;\nvar qr = [];\nfunction hm(e) {\n return qr.push(e), function() {\n qr.splice(qr.indexOf(e), 1);\n };\n}\nvar Cn = Fs, on = {\n size: 16,\n x: 0,\n y: 0,\n rotate: 0,\n flipX: !1,\n flipY: !1\n};\nfunction vm(e) {\n if (!(!e || !gn)) {\n var t = bt.createElement(\"style\");\n t.setAttribute(\"type\", \"text/css\"), t.innerHTML = e;\n for (var n = bt.head.childNodes, r = null, i = n.length - 1; i > -1; i--) {\n var a = n[i], o = (a.tagName || \"\").toUpperCase();\n [\"STYLE\", \"LINK\"].indexOf(o) > -1 && (r = a);\n }\n return bt.head.insertBefore(t, r), e;\n }\n}\nvar gm = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\nfunction ri() {\n for (var e = 12, t = \"\"; e-- > 0; )\n t += gm[Math.random() * 62 | 0];\n return t;\n}\nfunction wr(e) {\n for (var t = [], n = (e || []).length >>> 0; n--; )\n t[n] = e[n];\n return t;\n}\nfunction xl(e) {\n return e.classList ? wr(e.classList) : (e.getAttribute(\"class\") || \"\").split(\" \").filter(function(t) {\n return t;\n });\n}\nfunction Pf(e) {\n return \"\".concat(e).replace(/&/g, \"&\").replace(/\"/g, \""\").replace(/'/g, \"'\").replace(//g, \">\");\n}\nfunction ym(e) {\n return Object.keys(e || {}).reduce(function(t, n) {\n return t + \"\".concat(n, '=\"').concat(Pf(e[n]), '\" ');\n }, \"\").trim();\n}\nfunction ea(e) {\n return Object.keys(e || {}).reduce(function(t, n) {\n return t + \"\".concat(n, \": \").concat(e[n].trim(), \";\");\n }, \"\");\n}\nfunction Cl(e) {\n return e.size !== on.size || e.x !== on.x || e.y !== on.y || e.rotate !== on.rotate || e.flipX || e.flipY;\n}\nfunction bm(e) {\n var t = e.transform, n = e.containerWidth, r = e.iconWidth, i = {\n transform: \"translate(\".concat(n / 2, \" 256)\")\n }, a = \"translate(\".concat(t.x * 32, \", \").concat(t.y * 32, \") \"), o = \"scale(\".concat(t.size / 16 * (t.flipX ? -1 : 1), \", \").concat(t.size / 16 * (t.flipY ? -1 : 1), \") \"), l = \"rotate(\".concat(t.rotate, \" 0 0)\"), d = {\n transform: \"\".concat(a, \" \").concat(o, \" \").concat(l)\n }, c = {\n transform: \"translate(\".concat(r / 2 * -1, \" -256)\")\n };\n return {\n outer: i,\n inner: d,\n path: c\n };\n}\nfunction wm(e) {\n var t = e.transform, n = e.width, r = n === void 0 ? Fs : n, i = e.height, a = i === void 0 ? Fs : i, o = e.startCentered, l = o === void 0 ? !1 : o, d = \"\";\n return l && yf ? d += \"translate(\".concat(t.x / Cn - r / 2, \"em, \").concat(t.y / Cn - a / 2, \"em) \") : l ? d += \"translate(calc(-50% + \".concat(t.x / Cn, \"em), calc(-50% + \").concat(t.y / Cn, \"em)) \") : d += \"translate(\".concat(t.x / Cn, \"em, \").concat(t.y / Cn, \"em) \"), d += \"scale(\".concat(t.size / Cn * (t.flipX ? -1 : 1), \", \").concat(t.size / Cn * (t.flipY ? -1 : 1), \") \"), d += \"rotate(\".concat(t.rotate, \"deg) \"), d;\n}\nvar xm = `:root, :host {\n --fa-font-solid: normal 900 1em/1 \"Font Awesome 6 Solid\";\n --fa-font-regular: normal 400 1em/1 \"Font Awesome 6 Regular\";\n --fa-font-light: normal 300 1em/1 \"Font Awesome 6 Light\";\n --fa-font-thin: normal 100 1em/1 \"Font Awesome 6 Thin\";\n --fa-font-duotone: normal 900 1em/1 \"Font Awesome 6 Duotone\";\n --fa-font-sharp-solid: normal 900 1em/1 \"Font Awesome 6 Sharp\";\n --fa-font-sharp-regular: normal 400 1em/1 \"Font Awesome 6 Sharp\";\n --fa-font-sharp-light: normal 300 1em/1 \"Font Awesome 6 Sharp\";\n --fa-font-brands: normal 400 1em/1 \"Font Awesome 6 Brands\";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}`;\nfunction Tf() {\n var e = bf, t = wf, n = Ae.cssPrefix, r = Ae.replacementClass, i = xm;\n if (n !== e || r !== t) {\n var a = new RegExp(\"\\\\.\".concat(e, \"\\\\-\"), \"g\"), o = new RegExp(\"\\\\--\".concat(e, \"\\\\-\"), \"g\"), l = new RegExp(\"\\\\.\".concat(t), \"g\");\n i = i.replace(a, \".\".concat(n, \"-\")).replace(o, \"--\".concat(n, \"-\")).replace(l, \".\".concat(r));\n }\n return i;\n}\nvar bu = !1;\nfunction as() {\n Ae.autoAddCss && !bu && (vm(Tf()), bu = !0);\n}\nvar Cm = {\n mixout: function() {\n return {\n dom: {\n css: Tf,\n insertCss: as\n }\n };\n },\n hooks: function() {\n return {\n beforeDOMElementCreation: function() {\n as();\n },\n beforeI2svg: function() {\n as();\n }\n };\n }\n}, dn = On || {};\ndn[fn] || (dn[fn] = {});\ndn[fn].styles || (dn[fn].styles = {});\ndn[fn].hooks || (dn[fn].hooks = {});\ndn[fn].shims || (dn[fn].shims = []);\nvar Zt = dn[fn], Af = [], Rm = function e() {\n bt.removeEventListener(\"DOMContentLoaded\", e), Lo = 1, Af.map(function(t) {\n return t();\n });\n}, Lo = !1;\ngn && (Lo = (bt.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(bt.readyState), Lo || bt.addEventListener(\"DOMContentLoaded\", Rm));\nfunction Sm(e) {\n gn && (Lo ? setTimeout(e, 0) : Af.push(e));\n}\nfunction fi(e) {\n var t = e.tag, n = e.attributes, r = n === void 0 ? {} : n, i = e.children, a = i === void 0 ? [] : i;\n return typeof e == \"string\" ? Pf(e) : \"<\".concat(t, \" \").concat(ym(r), \">\").concat(a.map(fi).join(\"\"), \"\");\n}\nfunction wu(e, t, n) {\n if (e && e[t] && e[t][n])\n return {\n prefix: t,\n iconName: n,\n icon: e[t][n]\n };\n}\nvar Pm = function(t, n) {\n return function(r, i, a, o) {\n return t.call(n, r, i, a, o);\n };\n}, ss = function(t, n, r, i) {\n var a = Object.keys(t), o = a.length, l = i !== void 0 ? Pm(n, i) : n, d, c, m;\n for (r === void 0 ? (d = 1, m = t[a[0]]) : (d = 0, m = r); d < o; d++)\n c = a[d], m = l(m, t[c], c, t);\n return m;\n};\nfunction Tm(e) {\n for (var t = [], n = 0, r = e.length; n < r; ) {\n var i = e.charCodeAt(n++);\n if (i >= 55296 && i <= 56319 && n < r) {\n var a = e.charCodeAt(n++);\n (a & 64512) == 56320 ? t.push(((i & 1023) << 10) + (a & 1023) + 65536) : (t.push(i), n--);\n } else\n t.push(i);\n }\n return t;\n}\nfunction Ds(e) {\n var t = Tm(e);\n return t.length === 1 ? t[0].toString(16) : null;\n}\nfunction Am(e, t) {\n var n = e.length, r = e.charCodeAt(t), i;\n return r >= 55296 && r <= 56319 && n > t + 1 && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (r - 55296) * 1024 + i - 56320 + 65536 : r;\n}\nfunction xu(e) {\n return Object.keys(e).reduce(function(t, n) {\n var r = e[n], i = !!r.icon;\n return i ? t[r.iconName] = r.icon : t[n] = r, t;\n }, {});\n}\nfunction Ns(e, t) {\n var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.skipHooks, i = r === void 0 ? !1 : r, a = xu(t);\n typeof Zt.hooks.addPack == \"function\" && !i ? Zt.hooks.addPack(e, xu(t)) : Zt.styles[e] = ye(ye({}, Zt.styles[e] || {}), a), e === \"fas\" && Ns(\"fa\", t);\n}\nvar bo, wo, xo, lr = Zt.styles, Em = Zt.shims, Om = (bo = {}, kt(bo, yt, Object.values(ti[yt])), kt(bo, Rt, Object.values(ti[Rt])), bo), Rl = null, Ef = {}, Of = {}, kf = {}, If = {}, Mf = {}, km = (wo = {}, kt(wo, yt, Object.keys(Jr[yt])), kt(wo, Rt, Object.keys(Jr[Rt])), wo);\nfunction Im(e) {\n return ~fm.indexOf(e);\n}\nfunction Mm(e, t) {\n var n = t.split(\"-\"), r = n[0], i = n.slice(1).join(\"-\");\n return r === e && i !== \"\" && !Im(i) ? i : null;\n}\nvar Ff = function() {\n var t = function(a) {\n return ss(lr, function(o, l, d) {\n return o[d] = ss(l, a, {}), o;\n }, {});\n };\n Ef = t(function(i, a, o) {\n if (a[3] && (i[a[3]] = o), a[2]) {\n var l = a[2].filter(function(d) {\n return typeof d == \"number\";\n });\n l.forEach(function(d) {\n i[d.toString(16)] = o;\n });\n }\n return i;\n }), Of = t(function(i, a, o) {\n if (i[o] = o, a[2]) {\n var l = a[2].filter(function(d) {\n return typeof d == \"string\";\n });\n l.forEach(function(d) {\n i[d] = o;\n });\n }\n return i;\n }), Mf = t(function(i, a, o) {\n var l = a[2];\n return i[o] = o, l.forEach(function(d) {\n i[d] = o;\n }), i;\n });\n var n = \"far\" in lr || Ae.autoFetchSvg, r = ss(Em, function(i, a) {\n var o = a[0], l = a[1], d = a[2];\n return l === \"far\" && !n && (l = \"fas\"), typeof o == \"string\" && (i.names[o] = {\n prefix: l,\n iconName: d\n }), typeof o == \"number\" && (i.unicodes[o.toString(16)] = {\n prefix: l,\n iconName: d\n }), i;\n }, {\n names: {},\n unicodes: {}\n });\n kf = r.names, If = r.unicodes, Rl = ta(Ae.styleDefault, {\n family: Ae.familyDefault\n });\n};\nhm(function(e) {\n Rl = ta(e.styleDefault, {\n family: Ae.familyDefault\n });\n});\nFf();\nfunction Sl(e, t) {\n return (Ef[e] || {})[t];\n}\nfunction Fm(e, t) {\n return (Of[e] || {})[t];\n}\nfunction qn(e, t) {\n return (Mf[e] || {})[t];\n}\nfunction Bf(e) {\n return kf[e] || {\n prefix: null,\n iconName: null\n };\n}\nfunction Bm(e) {\n var t = If[e], n = Sl(\"fas\", e);\n return t || (n ? {\n prefix: \"fas\",\n iconName: n\n } : null) || {\n prefix: null,\n iconName: null\n };\n}\nfunction kn() {\n return Rl;\n}\nvar Pl = function() {\n return {\n prefix: null,\n iconName: null,\n rest: []\n };\n};\nfunction ta(e) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.family, r = n === void 0 ? yt : n, i = Jr[r][e], a = ei[r][e] || ei[r][i], o = e in Zt.styles ? e : null;\n return a || o || null;\n}\nvar Cu = (xo = {}, kt(xo, yt, Object.keys(ti[yt])), kt(xo, Rt, Object.keys(ti[Rt])), xo);\nfunction na(e) {\n var t, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.skipLookups, i = r === void 0 ? !1 : r, a = (t = {}, kt(t, yt, \"\".concat(Ae.cssPrefix, \"-\").concat(yt)), kt(t, Rt, \"\".concat(Ae.cssPrefix, \"-\").concat(Rt)), t), o = null, l = yt;\n (e.includes(a[yt]) || e.some(function(c) {\n return Cu[yt].includes(c);\n })) && (l = yt), (e.includes(a[Rt]) || e.some(function(c) {\n return Cu[Rt].includes(c);\n })) && (l = Rt);\n var d = e.reduce(function(c, m) {\n var f = Mm(Ae.cssPrefix, m);\n if (lr[m] ? (m = Om[l].includes(m) ? om[l][m] : m, o = m, c.prefix = m) : km[l].indexOf(m) > -1 ? (o = m, c.prefix = ta(m, {\n family: l\n })) : f ? c.iconName = f : m !== Ae.replacementClass && m !== a[yt] && m !== a[Rt] && c.rest.push(m), !i && c.prefix && c.iconName) {\n var b = o === \"fa\" ? Bf(c.iconName) : {}, x = qn(c.prefix, c.iconName);\n b.prefix && (o = null), c.iconName = b.iconName || x || c.iconName, c.prefix = b.prefix || c.prefix, c.prefix === \"far\" && !lr.far && lr.fas && !Ae.autoFetchSvg && (c.prefix = \"fas\");\n }\n return c;\n }, Pl());\n return (e.includes(\"fa-brands\") || e.includes(\"fab\")) && (d.prefix = \"fab\"), (e.includes(\"fa-duotone\") || e.includes(\"fad\")) && (d.prefix = \"fad\"), !d.prefix && l === Rt && (lr.fass || Ae.autoFetchSvg) && (d.prefix = \"fass\", d.iconName = qn(d.prefix, d.iconName) || d.iconName), (d.prefix === \"fa\" || o === \"fa\") && (d.prefix = kn() || \"fas\"), d;\n}\nvar Dm = /* @__PURE__ */ function() {\n function e() {\n qp(this, e), this.definitions = {};\n }\n return Yp(e, [{\n key: \"add\",\n value: function() {\n for (var n = this, r = arguments.length, i = new Array(r), a = 0; a < r; a++)\n i[a] = arguments[a];\n var o = i.reduce(this._pullDefinitions, {});\n Object.keys(o).forEach(function(l) {\n n.definitions[l] = ye(ye({}, n.definitions[l] || {}), o[l]), Ns(l, o[l]);\n var d = ti[yt][l];\n d && Ns(d, o[l]), Ff();\n });\n }\n }, {\n key: \"reset\",\n value: function() {\n this.definitions = {};\n }\n }, {\n key: \"_pullDefinitions\",\n value: function(n, r) {\n var i = r.prefix && r.iconName && r.icon ? {\n 0: r\n } : r;\n return Object.keys(i).map(function(a) {\n var o = i[a], l = o.prefix, d = o.iconName, c = o.icon, m = c[2];\n n[l] || (n[l] = {}), m.length > 0 && m.forEach(function(f) {\n typeof f == \"string\" && (n[l][f] = c);\n }), n[l][d] = c;\n }), n;\n }\n }]), e;\n}(), Ru = [], ur = {}, vr = {}, Nm = Object.keys(vr);\nfunction Lm(e, t) {\n var n = t.mixoutsTo;\n return Ru = e, ur = {}, Object.keys(vr).forEach(function(r) {\n Nm.indexOf(r) === -1 && delete vr[r];\n }), Ru.forEach(function(r) {\n var i = r.mixout ? r.mixout() : {};\n if (Object.keys(i).forEach(function(o) {\n typeof i[o] == \"function\" && (n[o] = i[o]), No(i[o]) === \"object\" && Object.keys(i[o]).forEach(function(l) {\n n[o] || (n[o] = {}), n[o][l] = i[o][l];\n });\n }), r.hooks) {\n var a = r.hooks();\n Object.keys(a).forEach(function(o) {\n ur[o] || (ur[o] = []), ur[o].push(a[o]);\n });\n }\n r.provides && r.provides(vr);\n }), n;\n}\nfunction Ls(e, t) {\n for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)\n r[i - 2] = arguments[i];\n var a = ur[e] || [];\n return a.forEach(function(o) {\n t = o.apply(null, [t].concat(r));\n }), t;\n}\nfunction Jn(e) {\n for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)\n n[r - 1] = arguments[r];\n var i = ur[e] || [];\n i.forEach(function(a) {\n a.apply(null, n);\n });\n}\nfunction pn() {\n var e = arguments[0], t = Array.prototype.slice.call(arguments, 1);\n return vr[e] ? vr[e].apply(null, t) : void 0;\n}\nfunction $s(e) {\n e.prefix === \"fa\" && (e.prefix = \"fas\");\n var t = e.iconName, n = e.prefix || kn();\n if (t)\n return t = qn(n, t) || t, wu(Df.definitions, n, t) || wu(Zt.styles, n, t);\n}\nvar Df = new Dm(), $m = function() {\n Ae.autoReplaceSvg = !1, Ae.observeMutations = !1, Jn(\"noAuto\");\n}, _m = {\n i2svg: function() {\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n return gn ? (Jn(\"beforeI2svg\", t), pn(\"pseudoElements2svg\", t), pn(\"i2svg\", t)) : Promise.reject(\"Operation requires a DOM of some kind.\");\n },\n watch: function() {\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = t.autoReplaceSvgRoot;\n Ae.autoReplaceSvg === !1 && (Ae.autoReplaceSvg = !0), Ae.observeMutations = !0, Sm(function() {\n Gm({\n autoReplaceSvgRoot: n\n }), Jn(\"watch\", t);\n });\n }\n}, Vm = {\n icon: function(t) {\n if (t === null)\n return null;\n if (No(t) === \"object\" && t.prefix && t.iconName)\n return {\n prefix: t.prefix,\n iconName: qn(t.prefix, t.iconName) || t.iconName\n };\n if (Array.isArray(t) && t.length === 2) {\n var n = t[1].indexOf(\"fa-\") === 0 ? t[1].slice(3) : t[1], r = ta(t[0]);\n return {\n prefix: r,\n iconName: qn(r, n) || n\n };\n }\n if (typeof t == \"string\" && (t.indexOf(\"\".concat(Ae.cssPrefix, \"-\")) > -1 || t.match(am))) {\n var i = na(t.split(\" \"), {\n skipLookups: !0\n });\n return {\n prefix: i.prefix || kn(),\n iconName: qn(i.prefix, i.iconName) || i.iconName\n };\n }\n if (typeof t == \"string\") {\n var a = kn();\n return {\n prefix: a,\n iconName: qn(a, t) || t\n };\n }\n }\n}, qt = {\n noAuto: $m,\n config: Ae,\n dom: _m,\n parse: Vm,\n library: Df,\n findIconDefinition: $s,\n toHtml: fi\n}, Gm = function() {\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = t.autoReplaceSvgRoot, r = n === void 0 ? bt : n;\n (Object.keys(Zt.styles).length > 0 || Ae.autoFetchSvg) && gn && Ae.autoReplaceSvg && qt.dom.i2svg({\n node: r\n });\n};\nfunction ra(e, t) {\n return Object.defineProperty(e, \"abstract\", {\n get: t\n }), Object.defineProperty(e, \"html\", {\n get: function() {\n return e.abstract.map(function(r) {\n return fi(r);\n });\n }\n }), Object.defineProperty(e, \"node\", {\n get: function() {\n if (gn) {\n var r = bt.createElement(\"div\");\n return r.innerHTML = e.html, r.children;\n }\n }\n }), e;\n}\nfunction jm(e) {\n var t = e.children, n = e.main, r = e.mask, i = e.attributes, a = e.styles, o = e.transform;\n if (Cl(o) && n.found && !r.found) {\n var l = n.width, d = n.height, c = {\n x: l / d / 2,\n y: 0.5\n };\n i.style = ea(ye(ye({}, a), {}, {\n \"transform-origin\": \"\".concat(c.x + o.x / 16, \"em \").concat(c.y + o.y / 16, \"em\")\n }));\n }\n return [{\n tag: \"svg\",\n attributes: i,\n children: t\n }];\n}\nfunction zm(e) {\n var t = e.prefix, n = e.iconName, r = e.children, i = e.attributes, a = e.symbol, o = a === !0 ? \"\".concat(t, \"-\").concat(Ae.cssPrefix, \"-\").concat(n) : a;\n return [{\n tag: \"svg\",\n attributes: {\n style: \"display: none;\"\n },\n children: [{\n tag: \"symbol\",\n attributes: ye(ye({}, i), {}, {\n id: o\n }),\n children: r\n }]\n }];\n}\nfunction Tl(e) {\n var t = e.icons, n = t.main, r = t.mask, i = e.prefix, a = e.iconName, o = e.transform, l = e.symbol, d = e.title, c = e.maskId, m = e.titleId, f = e.extra, b = e.watchable, x = b === void 0 ? !1 : b, P = r.found ? r : n, I = P.width, D = P.height, L = i === \"fak\", M = [Ae.replacementClass, a ? \"\".concat(Ae.cssPrefix, \"-\").concat(a) : \"\"].filter(function(se) {\n return f.classes.indexOf(se) === -1;\n }).filter(function(se) {\n return se !== \"\" || !!se;\n }).concat(f.classes).join(\" \"), F = {\n children: [],\n attributes: ye(ye({}, f.attributes), {}, {\n \"data-prefix\": i,\n \"data-icon\": a,\n class: M,\n role: f.attributes.role || \"img\",\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 \".concat(I, \" \").concat(D)\n })\n }, j = L && !~f.classes.indexOf(\"fa-fw\") ? {\n width: \"\".concat(I / D * 16 * 0.0625, \"em\")\n } : {};\n x && (F.attributes[Qn] = \"\"), d && (F.children.push({\n tag: \"title\",\n attributes: {\n id: F.attributes[\"aria-labelledby\"] || \"title-\".concat(m || ri())\n },\n children: [d]\n }), delete F.attributes.title);\n var B = ye(ye({}, F), {}, {\n prefix: i,\n iconName: a,\n main: n,\n mask: r,\n maskId: c,\n transform: o,\n symbol: l,\n styles: ye(ye({}, j), f.styles)\n }), Q = r.found && n.found ? pn(\"generateAbstractMask\", B) || {\n children: [],\n attributes: {}\n } : pn(\"generateAbstractIcon\", B) || {\n children: [],\n attributes: {}\n }, we = Q.children, ce = Q.attributes;\n return B.children = we, B.attributes = ce, l ? zm(B) : jm(B);\n}\nfunction Su(e) {\n var t = e.content, n = e.width, r = e.height, i = e.transform, a = e.title, o = e.extra, l = e.watchable, d = l === void 0 ? !1 : l, c = ye(ye(ye({}, o.attributes), a ? {\n title: a\n } : {}), {}, {\n class: o.classes.join(\" \")\n });\n d && (c[Qn] = \"\");\n var m = ye({}, o.styles);\n Cl(i) && (m.transform = wm({\n transform: i,\n startCentered: !0,\n width: n,\n height: r\n }), m[\"-webkit-transform\"] = m.transform);\n var f = ea(m);\n f.length > 0 && (c.style = f);\n var b = [];\n return b.push({\n tag: \"span\",\n attributes: c,\n children: [t]\n }), a && b.push({\n tag: \"span\",\n attributes: {\n class: \"sr-only\"\n },\n children: [a]\n }), b;\n}\nfunction Hm(e) {\n var t = e.content, n = e.title, r = e.extra, i = ye(ye(ye({}, r.attributes), n ? {\n title: n\n } : {}), {}, {\n class: r.classes.join(\" \")\n }), a = ea(r.styles);\n a.length > 0 && (i.style = a);\n var o = [];\n return o.push({\n tag: \"span\",\n attributes: i,\n children: [t]\n }), n && o.push({\n tag: \"span\",\n attributes: {\n class: \"sr-only\"\n },\n children: [n]\n }), o;\n}\nvar ls = Zt.styles;\nfunction _s(e) {\n var t = e[0], n = e[1], r = e.slice(4), i = vl(r, 1), a = i[0], o = null;\n return Array.isArray(a) ? o = {\n tag: \"g\",\n attributes: {\n class: \"\".concat(Ae.cssPrefix, \"-\").concat(Un.GROUP)\n },\n children: [{\n tag: \"path\",\n attributes: {\n class: \"\".concat(Ae.cssPrefix, \"-\").concat(Un.SECONDARY),\n fill: \"currentColor\",\n d: a[0]\n }\n }, {\n tag: \"path\",\n attributes: {\n class: \"\".concat(Ae.cssPrefix, \"-\").concat(Un.PRIMARY),\n fill: \"currentColor\",\n d: a[1]\n }\n }]\n } : o = {\n tag: \"path\",\n attributes: {\n fill: \"currentColor\",\n d: a\n }\n }, {\n found: !0,\n width: t,\n height: n,\n icon: o\n };\n}\nvar Wm = {\n found: !1,\n width: 512,\n height: 512\n};\nfunction Um(e, t) {\n !xf && !Ae.showMissingIcons && e && console.error('Icon with name \"'.concat(e, '\" and prefix \"').concat(t, '\" is missing.'));\n}\nfunction Vs(e, t) {\n var n = t;\n return t === \"fa\" && Ae.styleDefault !== null && (t = kn()), new Promise(function(r, i) {\n if (pn(\"missingIconAbstract\"), n === \"fa\") {\n var a = Bf(e) || {};\n e = a.iconName || e, t = a.prefix || t;\n }\n if (e && t && ls[t] && ls[t][e]) {\n var o = ls[t][e];\n return r(_s(o));\n }\n Um(e, t), r(ye(ye({}, Wm), {}, {\n icon: Ae.showMissingIcons && e ? pn(\"missingIconAbstract\") || {} : {}\n }));\n });\n}\nvar Pu = function() {\n}, Gs = Ae.measurePerformance && po && po.mark && po.measure ? po : {\n mark: Pu,\n measure: Pu\n}, Hr = 'FA \"6.4.2\"', qm = function(t) {\n return Gs.mark(\"\".concat(Hr, \" \").concat(t, \" begins\")), function() {\n return Nf(t);\n };\n}, Nf = function(t) {\n Gs.mark(\"\".concat(Hr, \" \").concat(t, \" ends\")), Gs.measure(\"\".concat(Hr, \" \").concat(t), \"\".concat(Hr, \" \").concat(t, \" begins\"), \"\".concat(Hr, \" \").concat(t, \" ends\"));\n}, Al = {\n begin: qm,\n end: Nf\n}, Io = function() {\n};\nfunction Tu(e) {\n var t = e.getAttribute ? e.getAttribute(Qn) : null;\n return typeof t == \"string\";\n}\nfunction Ym(e) {\n var t = e.getAttribute ? e.getAttribute(yl) : null, n = e.getAttribute ? e.getAttribute(bl) : null;\n return t && n;\n}\nfunction Km(e) {\n return e && e.classList && e.classList.contains && e.classList.contains(Ae.replacementClass);\n}\nfunction Xm() {\n if (Ae.autoReplaceSvg === !0)\n return Mo.replace;\n var e = Mo[Ae.autoReplaceSvg];\n return e || Mo.replace;\n}\nfunction Zm(e) {\n return bt.createElementNS(\"http://www.w3.org/2000/svg\", e);\n}\nfunction Qm(e) {\n return bt.createElement(e);\n}\nfunction Lf(e) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.ceFn, r = n === void 0 ? e.tag === \"svg\" ? Zm : Qm : n;\n if (typeof e == \"string\")\n return bt.createTextNode(e);\n var i = r(e.tag);\n Object.keys(e.attributes || []).forEach(function(o) {\n i.setAttribute(o, e.attributes[o]);\n });\n var a = e.children || [];\n return a.forEach(function(o) {\n i.appendChild(Lf(o, {\n ceFn: r\n }));\n }), i;\n}\nfunction Jm(e) {\n var t = \" \".concat(e.outerHTML, \" \");\n return t = \"\".concat(t, \"Font Awesome fontawesome.com \"), t;\n}\nvar Mo = {\n replace: function(t) {\n var n = t[0];\n if (n.parentNode)\n if (t[1].forEach(function(i) {\n n.parentNode.insertBefore(Lf(i), n);\n }), n.getAttribute(Qn) === null && Ae.keepOriginalSource) {\n var r = bt.createComment(Jm(n));\n n.parentNode.replaceChild(r, n);\n } else\n n.remove();\n },\n nest: function(t) {\n var n = t[0], r = t[1];\n if (~xl(n).indexOf(Ae.replacementClass))\n return Mo.replace(t);\n var i = new RegExp(\"\".concat(Ae.cssPrefix, \"-.*\"));\n if (delete r[0].attributes.id, r[0].attributes.class) {\n var a = r[0].attributes.class.split(\" \").reduce(function(l, d) {\n return d === Ae.replacementClass || d.match(i) ? l.toSvg.push(d) : l.toNode.push(d), l;\n }, {\n toNode: [],\n toSvg: []\n });\n r[0].attributes.class = a.toSvg.join(\" \"), a.toNode.length === 0 ? n.removeAttribute(\"class\") : n.setAttribute(\"class\", a.toNode.join(\" \"));\n }\n var o = r.map(function(l) {\n return fi(l);\n }).join(`\n`);\n n.setAttribute(Qn, \"\"), n.innerHTML = o;\n }\n};\nfunction Au(e) {\n e();\n}\nfunction $f(e, t) {\n var n = typeof t == \"function\" ? t : Io;\n if (e.length === 0)\n n();\n else {\n var r = Au;\n Ae.mutateApproach === rm && (r = On.requestAnimationFrame || Au), r(function() {\n var i = Xm(), a = Al.begin(\"mutate\");\n e.map(i), a(), n();\n });\n }\n}\nvar El = !1;\nfunction _f() {\n El = !0;\n}\nfunction js() {\n El = !1;\n}\nvar $o = null;\nfunction Eu(e) {\n if (gu && Ae.observeMutations) {\n var t = e.treeCallback, n = t === void 0 ? Io : t, r = e.nodeCallback, i = r === void 0 ? Io : r, a = e.pseudoElementsCallback, o = a === void 0 ? Io : a, l = e.observeMutationsRoot, d = l === void 0 ? bt : l;\n $o = new gu(function(c) {\n if (!El) {\n var m = kn();\n wr(c).forEach(function(f) {\n if (f.type === \"childList\" && f.addedNodes.length > 0 && !Tu(f.addedNodes[0]) && (Ae.searchPseudoElements && o(f.target), n(f.target)), f.type === \"attributes\" && f.target.parentNode && Ae.searchPseudoElements && o(f.target.parentNode), f.type === \"attributes\" && Tu(f.target) && ~cm.indexOf(f.attributeName))\n if (f.attributeName === \"class\" && Ym(f.target)) {\n var b = na(xl(f.target)), x = b.prefix, P = b.iconName;\n f.target.setAttribute(yl, x || m), P && f.target.setAttribute(bl, P);\n } else\n Km(f.target) && i(f.target);\n });\n }\n }), gn && $o.observe(d, {\n childList: !0,\n attributes: !0,\n characterData: !0,\n subtree: !0\n });\n }\n}\nfunction eh() {\n $o && $o.disconnect();\n}\nfunction th(e) {\n var t = e.getAttribute(\"style\"), n = [];\n return t && (n = t.split(\";\").reduce(function(r, i) {\n var a = i.split(\":\"), o = a[0], l = a.slice(1);\n return o && l.length > 0 && (r[o] = l.join(\":\").trim()), r;\n }, {})), n;\n}\nfunction nh(e) {\n var t = e.getAttribute(\"data-prefix\"), n = e.getAttribute(\"data-icon\"), r = e.innerText !== void 0 ? e.innerText.trim() : \"\", i = na(xl(e));\n return i.prefix || (i.prefix = kn()), t && n && (i.prefix = t, i.iconName = n), i.iconName && i.prefix || (i.prefix && r.length > 0 && (i.iconName = Fm(i.prefix, e.innerText) || Sl(i.prefix, Ds(e.innerText))), !i.iconName && Ae.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (i.iconName = e.firstChild.data)), i;\n}\nfunction rh(e) {\n var t = wr(e.attributes).reduce(function(i, a) {\n return i.name !== \"class\" && i.name !== \"style\" && (i[a.name] = a.value), i;\n }, {}), n = e.getAttribute(\"title\"), r = e.getAttribute(\"data-fa-title-id\");\n return Ae.autoA11y && (n ? t[\"aria-labelledby\"] = \"\".concat(Ae.replacementClass, \"-title-\").concat(r || ri()) : (t[\"aria-hidden\"] = \"true\", t.focusable = \"false\")), t;\n}\nfunction ih() {\n return {\n iconName: null,\n title: null,\n titleId: null,\n prefix: null,\n transform: on,\n symbol: !1,\n mask: {\n iconName: null,\n prefix: null,\n rest: []\n },\n maskId: null,\n extra: {\n classes: [],\n styles: {},\n attributes: {}\n }\n };\n}\nfunction Ou(e) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n styleParser: !0\n }, n = nh(e), r = n.iconName, i = n.prefix, a = n.rest, o = rh(e), l = Ls(\"parseNodeAttributes\", {}, e), d = t.styleParser ? th(e) : [];\n return ye({\n iconName: r,\n title: e.getAttribute(\"title\"),\n titleId: e.getAttribute(\"data-fa-title-id\"),\n prefix: i,\n transform: on,\n mask: {\n iconName: null,\n prefix: null,\n rest: []\n },\n maskId: null,\n symbol: !1,\n extra: {\n classes: a,\n styles: d,\n attributes: o\n }\n }, l);\n}\nvar oh = Zt.styles;\nfunction Vf(e) {\n var t = Ae.autoReplaceSvg === \"nest\" ? Ou(e, {\n styleParser: !1\n }) : Ou(e);\n return ~t.extra.classes.indexOf(Cf) ? pn(\"generateLayersText\", e, t) : pn(\"generateSvgReplacementMutation\", e, t);\n}\nvar In = /* @__PURE__ */ new Set();\nwl.map(function(e) {\n In.add(\"fa-\".concat(e));\n});\nObject.keys(Jr[yt]).map(In.add.bind(In));\nObject.keys(Jr[Rt]).map(In.add.bind(In));\nIn = ui(In);\nfunction ku(e) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;\n if (!gn)\n return Promise.resolve();\n var n = bt.documentElement.classList, r = function(f) {\n return n.add(\"\".concat(yu, \"-\").concat(f));\n }, i = function(f) {\n return n.remove(\"\".concat(yu, \"-\").concat(f));\n }, a = Ae.autoFetchSvg ? In : wl.map(function(m) {\n return \"fa-\".concat(m);\n }).concat(Object.keys(oh));\n a.includes(\"fa\") || a.push(\"fa\");\n var o = [\".\".concat(Cf, \":not([\").concat(Qn, \"])\")].concat(a.map(function(m) {\n return \".\".concat(m, \":not([\").concat(Qn, \"])\");\n })).join(\", \");\n if (o.length === 0)\n return Promise.resolve();\n var l = [];\n try {\n l = wr(e.querySelectorAll(o));\n } catch {\n }\n if (l.length > 0)\n r(\"pending\"), i(\"complete\");\n else\n return Promise.resolve();\n var d = Al.begin(\"onTree\"), c = l.reduce(function(m, f) {\n try {\n var b = Vf(f);\n b && m.push(b);\n } catch (x) {\n xf || x.name === \"MissingIcon\" && console.error(x);\n }\n return m;\n }, []);\n return new Promise(function(m, f) {\n Promise.all(c).then(function(b) {\n $f(b, function() {\n r(\"active\"), r(\"complete\"), i(\"pending\"), typeof t == \"function\" && t(), d(), m();\n });\n }).catch(function(b) {\n d(), f(b);\n });\n });\n}\nfunction ah(e) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;\n Vf(e).then(function(n) {\n n && $f([n], t);\n });\n}\nfunction sh(e) {\n return function(t) {\n var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = (t || {}).icon ? t : $s(t || {}), i = n.mask;\n return i && (i = (i || {}).icon ? i : $s(i || {})), e(r, ye(ye({}, n), {}, {\n mask: i\n }));\n };\n}\nvar lh = function(t) {\n var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.transform, i = r === void 0 ? on : r, a = n.symbol, o = a === void 0 ? !1 : a, l = n.mask, d = l === void 0 ? null : l, c = n.maskId, m = c === void 0 ? null : c, f = n.title, b = f === void 0 ? null : f, x = n.titleId, P = x === void 0 ? null : x, I = n.classes, D = I === void 0 ? [] : I, L = n.attributes, M = L === void 0 ? {} : L, F = n.styles, j = F === void 0 ? {} : F;\n if (t) {\n var B = t.prefix, Q = t.iconName, we = t.icon;\n return ra(ye({\n type: \"icon\"\n }, t), function() {\n return Jn(\"beforeDOMElementCreation\", {\n iconDefinition: t,\n params: n\n }), Ae.autoA11y && (b ? M[\"aria-labelledby\"] = \"\".concat(Ae.replacementClass, \"-title-\").concat(P || ri()) : (M[\"aria-hidden\"] = \"true\", M.focusable = \"false\")), Tl({\n icons: {\n main: _s(we),\n mask: d ? _s(d.icon) : {\n found: !1,\n width: null,\n height: null,\n icon: {}\n }\n },\n prefix: B,\n iconName: Q,\n transform: ye(ye({}, on), i),\n symbol: o,\n title: b,\n maskId: m,\n titleId: P,\n extra: {\n attributes: M,\n styles: j,\n classes: D\n }\n });\n });\n }\n}, uh = {\n mixout: function() {\n return {\n icon: sh(lh)\n };\n },\n hooks: function() {\n return {\n mutationObserverCallbacks: function(n) {\n return n.treeCallback = ku, n.nodeCallback = ah, n;\n }\n };\n },\n provides: function(t) {\n t.i2svg = function(n) {\n var r = n.node, i = r === void 0 ? bt : r, a = n.callback, o = a === void 0 ? function() {\n } : a;\n return ku(i, o);\n }, t.generateSvgReplacementMutation = function(n, r) {\n var i = r.iconName, a = r.title, o = r.titleId, l = r.prefix, d = r.transform, c = r.symbol, m = r.mask, f = r.maskId, b = r.extra;\n return new Promise(function(x, P) {\n Promise.all([Vs(i, l), m.iconName ? Vs(m.iconName, m.prefix) : Promise.resolve({\n found: !1,\n width: 512,\n height: 512,\n icon: {}\n })]).then(function(I) {\n var D = vl(I, 2), L = D[0], M = D[1];\n x([n, Tl({\n icons: {\n main: L,\n mask: M\n },\n prefix: l,\n iconName: i,\n transform: d,\n symbol: c,\n maskId: f,\n title: a,\n titleId: o,\n extra: b,\n watchable: !0\n })]);\n }).catch(P);\n });\n }, t.generateAbstractIcon = function(n) {\n var r = n.children, i = n.attributes, a = n.main, o = n.transform, l = n.styles, d = ea(l);\n d.length > 0 && (i.style = d);\n var c;\n return Cl(o) && (c = pn(\"generateAbstractTransformGrouping\", {\n main: a,\n transform: o,\n containerWidth: a.width,\n iconWidth: a.width\n })), r.push(c || a.icon), {\n children: r,\n attributes: i\n };\n };\n }\n}, ch = {\n mixout: function() {\n return {\n layer: function(n) {\n var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = r.classes, a = i === void 0 ? [] : i;\n return ra({\n type: \"layer\"\n }, function() {\n Jn(\"beforeDOMElementCreation\", {\n assembler: n,\n params: r\n });\n var o = [];\n return n(function(l) {\n Array.isArray(l) ? l.map(function(d) {\n o = o.concat(d.abstract);\n }) : o = o.concat(l.abstract);\n }), [{\n tag: \"span\",\n attributes: {\n class: [\"\".concat(Ae.cssPrefix, \"-layers\")].concat(ui(a)).join(\" \")\n },\n children: o\n }];\n });\n }\n };\n }\n}, fh = {\n mixout: function() {\n return {\n counter: function(n) {\n var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = r.title, a = i === void 0 ? null : i, o = r.classes, l = o === void 0 ? [] : o, d = r.attributes, c = d === void 0 ? {} : d, m = r.styles, f = m === void 0 ? {} : m;\n return ra({\n type: \"counter\",\n content: n\n }, function() {\n return Jn(\"beforeDOMElementCreation\", {\n content: n,\n params: r\n }), Hm({\n content: n.toString(),\n title: a,\n extra: {\n attributes: c,\n styles: f,\n classes: [\"\".concat(Ae.cssPrefix, \"-layers-counter\")].concat(ui(l))\n }\n });\n });\n }\n };\n }\n}, dh = {\n mixout: function() {\n return {\n text: function(n) {\n var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = r.transform, a = i === void 0 ? on : i, o = r.title, l = o === void 0 ? null : o, d = r.classes, c = d === void 0 ? [] : d, m = r.attributes, f = m === void 0 ? {} : m, b = r.styles, x = b === void 0 ? {} : b;\n return ra({\n type: \"text\",\n content: n\n }, function() {\n return Jn(\"beforeDOMElementCreation\", {\n content: n,\n params: r\n }), Su({\n content: n,\n transform: ye(ye({}, on), a),\n title: l,\n extra: {\n attributes: f,\n styles: x,\n classes: [\"\".concat(Ae.cssPrefix, \"-layers-text\")].concat(ui(c))\n }\n });\n });\n }\n };\n },\n provides: function(t) {\n t.generateLayersText = function(n, r) {\n var i = r.title, a = r.transform, o = r.extra, l = null, d = null;\n if (yf) {\n var c = parseInt(getComputedStyle(n).fontSize, 10), m = n.getBoundingClientRect();\n l = m.width / c, d = m.height / c;\n }\n return Ae.autoA11y && !i && (o.attributes[\"aria-hidden\"] = \"true\"), Promise.resolve([n, Su({\n content: n.innerHTML,\n width: l,\n height: d,\n transform: a,\n title: i,\n extra: o,\n watchable: !0\n })]);\n };\n }\n}, ph = new RegExp('\"', \"ug\"), Iu = [1105920, 1112319];\nfunction mh(e) {\n var t = e.replace(ph, \"\"), n = Am(t, 0), r = n >= Iu[0] && n <= Iu[1], i = t.length === 2 ? t[0] === t[1] : !1;\n return {\n value: Ds(i ? t[0] : t),\n isSecondary: r || i\n };\n}\nfunction Mu(e, t) {\n var n = \"\".concat(nm).concat(t.replace(\":\", \"-\"));\n return new Promise(function(r, i) {\n if (e.getAttribute(n) !== null)\n return r();\n var a = wr(e.children), o = a.filter(function(we) {\n return we.getAttribute(Bs) === t;\n })[0], l = On.getComputedStyle(e, t), d = l.getPropertyValue(\"font-family\").match(sm), c = l.getPropertyValue(\"font-weight\"), m = l.getPropertyValue(\"content\");\n if (o && !d)\n return e.removeChild(o), r();\n if (d && m !== \"none\" && m !== \"\") {\n var f = l.getPropertyValue(\"content\"), b = ~[\"Sharp\"].indexOf(d[2]) ? Rt : yt, x = ~[\"Solid\", \"Regular\", \"Light\", \"Thin\", \"Duotone\", \"Brands\", \"Kit\"].indexOf(d[2]) ? ei[b][d[2].toLowerCase()] : lm[b][c], P = mh(f), I = P.value, D = P.isSecondary, L = d[0].startsWith(\"FontAwesome\"), M = Sl(x, I), F = M;\n if (L) {\n var j = Bm(I);\n j.iconName && j.prefix && (M = j.iconName, x = j.prefix);\n }\n if (M && !D && (!o || o.getAttribute(yl) !== x || o.getAttribute(bl) !== F)) {\n e.setAttribute(n, F), o && e.removeChild(o);\n var B = ih(), Q = B.extra;\n Q.attributes[Bs] = t, Vs(M, x).then(function(we) {\n var ce = Tl(ye(ye({}, B), {}, {\n icons: {\n main: we,\n mask: Pl()\n },\n prefix: x,\n iconName: F,\n extra: Q,\n watchable: !0\n })), se = bt.createElementNS(\"http://www.w3.org/2000/svg\", \"svg\");\n t === \"::before\" ? e.insertBefore(se, e.firstChild) : e.appendChild(se), se.outerHTML = ce.map(function(Ve) {\n return fi(Ve);\n }).join(`\n`), e.removeAttribute(n), r();\n }).catch(i);\n } else\n r();\n } else\n r();\n });\n}\nfunction hh(e) {\n return Promise.all([Mu(e, \"::before\"), Mu(e, \"::after\")]);\n}\nfunction vh(e) {\n return e.parentNode !== document.head && !~im.indexOf(e.tagName.toUpperCase()) && !e.getAttribute(Bs) && (!e.parentNode || e.parentNode.tagName !== \"svg\");\n}\nfunction Fu(e) {\n if (gn)\n return new Promise(function(t, n) {\n var r = wr(e.querySelectorAll(\"*\")).filter(vh).map(hh), i = Al.begin(\"searchPseudoElements\");\n _f(), Promise.all(r).then(function() {\n i(), js(), t();\n }).catch(function() {\n i(), js(), n();\n });\n });\n}\nvar gh = {\n hooks: function() {\n return {\n mutationObserverCallbacks: function(n) {\n return n.pseudoElementsCallback = Fu, n;\n }\n };\n },\n provides: function(t) {\n t.pseudoElements2svg = function(n) {\n var r = n.node, i = r === void 0 ? bt : r;\n Ae.searchPseudoElements && Fu(i);\n };\n }\n}, Bu = !1, yh = {\n mixout: function() {\n return {\n dom: {\n unwatch: function() {\n _f(), Bu = !0;\n }\n }\n };\n },\n hooks: function() {\n return {\n bootstrap: function() {\n Eu(Ls(\"mutationObserverCallbacks\", {}));\n },\n noAuto: function() {\n eh();\n },\n watch: function(n) {\n var r = n.observeMutationsRoot;\n Bu ? js() : Eu(Ls(\"mutationObserverCallbacks\", {\n observeMutationsRoot: r\n }));\n }\n };\n }\n}, Du = function(t) {\n var n = {\n size: 16,\n x: 0,\n y: 0,\n flipX: !1,\n flipY: !1,\n rotate: 0\n };\n return t.toLowerCase().split(\" \").reduce(function(r, i) {\n var a = i.toLowerCase().split(\"-\"), o = a[0], l = a.slice(1).join(\"-\");\n if (o && l === \"h\")\n return r.flipX = !0, r;\n if (o && l === \"v\")\n return r.flipY = !0, r;\n if (l = parseFloat(l), isNaN(l))\n return r;\n switch (o) {\n case \"grow\":\n r.size = r.size + l;\n break;\n case \"shrink\":\n r.size = r.size - l;\n break;\n case \"left\":\n r.x = r.x - l;\n break;\n case \"right\":\n r.x = r.x + l;\n break;\n case \"up\":\n r.y = r.y - l;\n break;\n case \"down\":\n r.y = r.y + l;\n break;\n case \"rotate\":\n r.rotate = r.rotate + l;\n break;\n }\n return r;\n }, n);\n}, bh = {\n mixout: function() {\n return {\n parse: {\n transform: function(n) {\n return Du(n);\n }\n }\n };\n },\n hooks: function() {\n return {\n parseNodeAttributes: function(n, r) {\n var i = r.getAttribute(\"data-fa-transform\");\n return i && (n.transform = Du(i)), n;\n }\n };\n },\n provides: function(t) {\n t.generateAbstractTransformGrouping = function(n) {\n var r = n.main, i = n.transform, a = n.containerWidth, o = n.iconWidth, l = {\n transform: \"translate(\".concat(a / 2, \" 256)\")\n }, d = \"translate(\".concat(i.x * 32, \", \").concat(i.y * 32, \") \"), c = \"scale(\".concat(i.size / 16 * (i.flipX ? -1 : 1), \", \").concat(i.size / 16 * (i.flipY ? -1 : 1), \") \"), m = \"rotate(\".concat(i.rotate, \" 0 0)\"), f = {\n transform: \"\".concat(d, \" \").concat(c, \" \").concat(m)\n }, b = {\n transform: \"translate(\".concat(o / 2 * -1, \" -256)\")\n }, x = {\n outer: l,\n inner: f,\n path: b\n };\n return {\n tag: \"g\",\n attributes: ye({}, x.outer),\n children: [{\n tag: \"g\",\n attributes: ye({}, x.inner),\n children: [{\n tag: r.icon.tag,\n children: r.icon.children,\n attributes: ye(ye({}, r.icon.attributes), x.path)\n }]\n }]\n };\n };\n }\n}, us = {\n x: 0,\n y: 0,\n width: \"100%\",\n height: \"100%\"\n};\nfunction Nu(e) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;\n return e.attributes && (e.attributes.fill || t) && (e.attributes.fill = \"black\"), e;\n}\nfunction wh(e) {\n return e.tag === \"g\" ? e.children : [e];\n}\nvar xh = {\n hooks: function() {\n return {\n parseNodeAttributes: function(n, r) {\n var i = r.getAttribute(\"data-fa-mask\"), a = i ? na(i.split(\" \").map(function(o) {\n return o.trim();\n })) : Pl();\n return a.prefix || (a.prefix = kn()), n.mask = a, n.maskId = r.getAttribute(\"data-fa-mask-id\"), n;\n }\n };\n },\n provides: function(t) {\n t.generateAbstractMask = function(n) {\n var r = n.children, i = n.attributes, a = n.main, o = n.mask, l = n.maskId, d = n.transform, c = a.width, m = a.icon, f = o.width, b = o.icon, x = bm({\n transform: d,\n containerWidth: f,\n iconWidth: c\n }), P = {\n tag: \"rect\",\n attributes: ye(ye({}, us), {}, {\n fill: \"white\"\n })\n }, I = m.children ? {\n children: m.children.map(Nu)\n } : {}, D = {\n tag: \"g\",\n attributes: ye({}, x.inner),\n children: [Nu(ye({\n tag: m.tag,\n attributes: ye(ye({}, m.attributes), x.path)\n }, I))]\n }, L = {\n tag: \"g\",\n attributes: ye({}, x.outer),\n children: [D]\n }, M = \"mask-\".concat(l || ri()), F = \"clip-\".concat(l || ri()), j = {\n tag: \"mask\",\n attributes: ye(ye({}, us), {}, {\n id: M,\n maskUnits: \"userSpaceOnUse\",\n maskContentUnits: \"userSpaceOnUse\"\n }),\n children: [P, L]\n }, B = {\n tag: \"defs\",\n children: [{\n tag: \"clipPath\",\n attributes: {\n id: F\n },\n children: wh(b)\n }, j]\n };\n return r.push(B, {\n tag: \"rect\",\n attributes: ye({\n fill: \"currentColor\",\n \"clip-path\": \"url(#\".concat(F, \")\"),\n mask: \"url(#\".concat(M, \")\")\n }, us)\n }), {\n children: r,\n attributes: i\n };\n };\n }\n}, Ch = {\n provides: function(t) {\n var n = !1;\n On.matchMedia && (n = On.matchMedia(\"(prefers-reduced-motion: reduce)\").matches), t.missingIconAbstract = function() {\n var r = [], i = {\n fill: \"currentColor\"\n }, a = {\n attributeType: \"XML\",\n repeatCount: \"indefinite\",\n dur: \"2s\"\n };\n r.push({\n tag: \"path\",\n attributes: ye(ye({}, i), {}, {\n d: \"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z\"\n })\n });\n var o = ye(ye({}, a), {}, {\n attributeName: \"opacity\"\n }), l = {\n tag: \"circle\",\n attributes: ye(ye({}, i), {}, {\n cx: \"256\",\n cy: \"364\",\n r: \"28\"\n }),\n children: []\n };\n return n || l.children.push({\n tag: \"animate\",\n attributes: ye(ye({}, a), {}, {\n attributeName: \"r\",\n values: \"28;14;28;28;14;28;\"\n })\n }, {\n tag: \"animate\",\n attributes: ye(ye({}, o), {}, {\n values: \"1;0;1;1;0;1;\"\n })\n }), r.push(l), r.push({\n tag: \"path\",\n attributes: ye(ye({}, i), {}, {\n opacity: \"1\",\n d: \"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z\"\n }),\n children: n ? [] : [{\n tag: \"animate\",\n attributes: ye(ye({}, o), {}, {\n values: \"1;0;0;0;0;1;\"\n })\n }]\n }), n || r.push({\n tag: \"path\",\n attributes: ye(ye({}, i), {}, {\n opacity: \"0\",\n d: \"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z\"\n }),\n children: [{\n tag: \"animate\",\n attributes: ye(ye({}, o), {}, {\n values: \"0;0;1;1;0;0;\"\n })\n }]\n }), {\n tag: \"g\",\n attributes: {\n class: \"missing\"\n },\n children: r\n };\n };\n }\n}, Rh = {\n hooks: function() {\n return {\n parseNodeAttributes: function(n, r) {\n var i = r.getAttribute(\"data-fa-symbol\"), a = i === null ? !1 : i === \"\" ? !0 : i;\n return n.symbol = a, n;\n }\n };\n }\n}, Sh = [Cm, uh, ch, fh, dh, gh, yh, bh, xh, Ch, Rh];\nLm(Sh, {\n mixoutsTo: qt\n});\nqt.noAuto;\nqt.config;\nqt.library;\nqt.dom;\nvar zs = qt.parse;\nqt.findIconDefinition;\nqt.toHtml;\nvar Ph = qt.icon;\nqt.layer;\nqt.text;\nqt.counter;\nvar Gf = typeof globalThis < \"u\" ? globalThis : typeof window < \"u\" ? window : typeof global < \"u\" ? global : typeof self < \"u\" ? self : {};\nfunction jf(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nfunction Th(e) {\n if (e.__esModule)\n return e;\n var t = e.default;\n if (typeof t == \"function\") {\n var n = function r() {\n return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);\n };\n n.prototype = t.prototype;\n } else\n n = {};\n return Object.defineProperty(n, \"__esModule\", { value: !0 }), Object.keys(e).forEach(function(r) {\n var i = Object.getOwnPropertyDescriptor(e, r);\n Object.defineProperty(n, r, i.get ? i : {\n enumerable: !0,\n get: function() {\n return e[r];\n }\n });\n }), n;\n}\nvar Hs = { exports: {} }, Co = { exports: {} }, ut = {};\n/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar Lu;\nfunction Ah() {\n if (Lu)\n return ut;\n Lu = 1;\n var e = typeof Symbol == \"function\" && Symbol.for, t = e ? Symbol.for(\"react.element\") : 60103, n = e ? Symbol.for(\"react.portal\") : 60106, r = e ? Symbol.for(\"react.fragment\") : 60107, i = e ? Symbol.for(\"react.strict_mode\") : 60108, a = e ? Symbol.for(\"react.profiler\") : 60114, o = e ? Symbol.for(\"react.provider\") : 60109, l = e ? Symbol.for(\"react.context\") : 60110, d = e ? Symbol.for(\"react.async_mode\") : 60111, c = e ? Symbol.for(\"react.concurrent_mode\") : 60111, m = e ? Symbol.for(\"react.forward_ref\") : 60112, f = e ? Symbol.for(\"react.suspense\") : 60113, b = e ? Symbol.for(\"react.suspense_list\") : 60120, x = e ? Symbol.for(\"react.memo\") : 60115, P = e ? Symbol.for(\"react.lazy\") : 60116, I = e ? Symbol.for(\"react.block\") : 60121, D = e ? Symbol.for(\"react.fundamental\") : 60117, L = e ? Symbol.for(\"react.responder\") : 60118, M = e ? Symbol.for(\"react.scope\") : 60119;\n function F(B) {\n if (typeof B == \"object\" && B !== null) {\n var Q = B.$$typeof;\n switch (Q) {\n case t:\n switch (B = B.type, B) {\n case d:\n case c:\n case r:\n case a:\n case i:\n case f:\n return B;\n default:\n switch (B = B && B.$$typeof, B) {\n case l:\n case m:\n case P:\n case x:\n case o:\n return B;\n default:\n return Q;\n }\n }\n case n:\n return Q;\n }\n }\n }\n function j(B) {\n return F(B) === c;\n }\n return ut.AsyncMode = d, ut.ConcurrentMode = c, ut.ContextConsumer = l, ut.ContextProvider = o, ut.Element = t, ut.ForwardRef = m, ut.Fragment = r, ut.Lazy = P, ut.Memo = x, ut.Portal = n, ut.Profiler = a, ut.StrictMode = i, ut.Suspense = f, ut.isAsyncMode = function(B) {\n return j(B) || F(B) === d;\n }, ut.isConcurrentMode = j, ut.isContextConsumer = function(B) {\n return F(B) === l;\n }, ut.isContextProvider = function(B) {\n return F(B) === o;\n }, ut.isElement = function(B) {\n return typeof B == \"object\" && B !== null && B.$$typeof === t;\n }, ut.isForwardRef = function(B) {\n return F(B) === m;\n }, ut.isFragment = function(B) {\n return F(B) === r;\n }, ut.isLazy = function(B) {\n return F(B) === P;\n }, ut.isMemo = function(B) {\n return F(B) === x;\n }, ut.isPortal = function(B) {\n return F(B) === n;\n }, ut.isProfiler = function(B) {\n return F(B) === a;\n }, ut.isStrictMode = function(B) {\n return F(B) === i;\n }, ut.isSuspense = function(B) {\n return F(B) === f;\n }, ut.isValidElementType = function(B) {\n return typeof B == \"string\" || typeof B == \"function\" || B === r || B === c || B === a || B === i || B === f || B === b || typeof B == \"object\" && B !== null && (B.$$typeof === P || B.$$typeof === x || B.$$typeof === o || B.$$typeof === l || B.$$typeof === m || B.$$typeof === D || B.$$typeof === L || B.$$typeof === M || B.$$typeof === I);\n }, ut.typeOf = F, ut;\n}\nvar ct = {};\n/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar $u;\nfunction Eh() {\n return $u || ($u = 1, process.env.NODE_ENV !== \"production\" && function() {\n var e = typeof Symbol == \"function\" && Symbol.for, t = e ? Symbol.for(\"react.element\") : 60103, n = e ? Symbol.for(\"react.portal\") : 60106, r = e ? Symbol.for(\"react.fragment\") : 60107, i = e ? Symbol.for(\"react.strict_mode\") : 60108, a = e ? Symbol.for(\"react.profiler\") : 60114, o = e ? Symbol.for(\"react.provider\") : 60109, l = e ? Symbol.for(\"react.context\") : 60110, d = e ? Symbol.for(\"react.async_mode\") : 60111, c = e ? Symbol.for(\"react.concurrent_mode\") : 60111, m = e ? Symbol.for(\"react.forward_ref\") : 60112, f = e ? Symbol.for(\"react.suspense\") : 60113, b = e ? Symbol.for(\"react.suspense_list\") : 60120, x = e ? Symbol.for(\"react.memo\") : 60115, P = e ? Symbol.for(\"react.lazy\") : 60116, I = e ? Symbol.for(\"react.block\") : 60121, D = e ? Symbol.for(\"react.fundamental\") : 60117, L = e ? Symbol.for(\"react.responder\") : 60118, M = e ? Symbol.for(\"react.scope\") : 60119;\n function F(he) {\n return typeof he == \"string\" || typeof he == \"function\" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n he === r || he === c || he === a || he === i || he === f || he === b || typeof he == \"object\" && he !== null && (he.$$typeof === P || he.$$typeof === x || he.$$typeof === o || he.$$typeof === l || he.$$typeof === m || he.$$typeof === D || he.$$typeof === L || he.$$typeof === M || he.$$typeof === I);\n }\n function j(he) {\n if (typeof he == \"object\" && he !== null) {\n var It = he.$$typeof;\n switch (It) {\n case t:\n var sn = he.type;\n switch (sn) {\n case d:\n case c:\n case r:\n case a:\n case i:\n case f:\n return sn;\n default:\n var ir = sn && sn.$$typeof;\n switch (ir) {\n case l:\n case m:\n case P:\n case x:\n case o:\n return ir;\n default:\n return It;\n }\n }\n case n:\n return It;\n }\n }\n }\n var B = d, Q = c, we = l, ce = o, se = t, Ve = m, st = r, it = P, dt = x, X = n, ie = a, Ee = i, $ = f, xe = !1;\n function ft(he) {\n return xe || (xe = !0, console.warn(\"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.\")), U(he) || j(he) === d;\n }\n function U(he) {\n return j(he) === c;\n }\n function q(he) {\n return j(he) === l;\n }\n function Ce(he) {\n return j(he) === o;\n }\n function De(he) {\n return typeof he == \"object\" && he !== null && he.$$typeof === t;\n }\n function Me(he) {\n return j(he) === m;\n }\n function Qe(he) {\n return j(he) === r;\n }\n function Fe(he) {\n return j(he) === P;\n }\n function We(he) {\n return j(he) === x;\n }\n function Je(he) {\n return j(he) === n;\n }\n function nt(he) {\n return j(he) === a;\n }\n function et(he) {\n return j(he) === i;\n }\n function ht(he) {\n return j(he) === f;\n }\n ct.AsyncMode = B, ct.ConcurrentMode = Q, ct.ContextConsumer = we, ct.ContextProvider = ce, ct.Element = se, ct.ForwardRef = Ve, ct.Fragment = st, ct.Lazy = it, ct.Memo = dt, ct.Portal = X, ct.Profiler = ie, ct.StrictMode = Ee, ct.Suspense = $, ct.isAsyncMode = ft, ct.isConcurrentMode = U, ct.isContextConsumer = q, ct.isContextProvider = Ce, ct.isElement = De, ct.isForwardRef = Me, ct.isFragment = Qe, ct.isLazy = Fe, ct.isMemo = We, ct.isPortal = Je, ct.isProfiler = nt, ct.isStrictMode = et, ct.isSuspense = ht, ct.isValidElementType = F, ct.typeOf = j;\n }()), ct;\n}\nvar _u;\nfunction zf() {\n return _u || (_u = 1, process.env.NODE_ENV === \"production\" ? Co.exports = Ah() : Co.exports = Eh()), Co.exports;\n}\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\nvar cs, Vu;\nfunction Oh() {\n if (Vu)\n return cs;\n Vu = 1;\n var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;\n function r(a) {\n if (a == null)\n throw new TypeError(\"Object.assign cannot be called with null or undefined\");\n return Object(a);\n }\n function i() {\n try {\n if (!Object.assign)\n return !1;\n var a = new String(\"abc\");\n if (a[5] = \"de\", Object.getOwnPropertyNames(a)[0] === \"5\")\n return !1;\n for (var o = {}, l = 0; l < 10; l++)\n o[\"_\" + String.fromCharCode(l)] = l;\n var d = Object.getOwnPropertyNames(o).map(function(m) {\n return o[m];\n });\n if (d.join(\"\") !== \"0123456789\")\n return !1;\n var c = {};\n return \"abcdefghijklmnopqrst\".split(\"\").forEach(function(m) {\n c[m] = m;\n }), Object.keys(Object.assign({}, c)).join(\"\") === \"abcdefghijklmnopqrst\";\n } catch {\n return !1;\n }\n }\n return cs = i() ? Object.assign : function(a, o) {\n for (var l, d = r(a), c, m = 1; m < arguments.length; m++) {\n l = Object(arguments[m]);\n for (var f in l)\n t.call(l, f) && (d[f] = l[f]);\n if (e) {\n c = e(l);\n for (var b = 0; b < c.length; b++)\n n.call(l, c[b]) && (d[c[b]] = l[c[b]]);\n }\n }\n return d;\n }, cs;\n}\nvar fs, Gu;\nfunction Ol() {\n if (Gu)\n return fs;\n Gu = 1;\n var e = \"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\";\n return fs = e, fs;\n}\nvar ds, ju;\nfunction Hf() {\n return ju || (ju = 1, ds = Function.call.bind(Object.prototype.hasOwnProperty)), ds;\n}\nvar ps, zu;\nfunction kh() {\n if (zu)\n return ps;\n zu = 1;\n var e = function() {\n };\n if (process.env.NODE_ENV !== \"production\") {\n var t = Ol(), n = {}, r = Hf();\n e = function(a) {\n var o = \"Warning: \" + a;\n typeof console < \"u\" && console.error(o);\n try {\n throw new Error(o);\n } catch {\n }\n };\n }\n function i(a, o, l, d, c) {\n if (process.env.NODE_ENV !== \"production\") {\n for (var m in a)\n if (r(a, m)) {\n var f;\n try {\n if (typeof a[m] != \"function\") {\n var b = Error(\n (d || \"React class\") + \": \" + l + \" type `\" + m + \"` is invalid; it must be a function, usually from the `prop-types` package, but received `\" + typeof a[m] + \"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.\"\n );\n throw b.name = \"Invariant Violation\", b;\n }\n f = a[m](o, m, d, l, null, t);\n } catch (P) {\n f = P;\n }\n if (f && !(f instanceof Error) && e(\n (d || \"React class\") + \": type specification of \" + l + \" `\" + m + \"` is invalid; the type checker function must return `null` or an `Error` but returned a \" + typeof f + \". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).\"\n ), f instanceof Error && !(f.message in n)) {\n n[f.message] = !0;\n var x = c ? c() : \"\";\n e(\n \"Failed \" + l + \" type: \" + f.message + (x ?? \"\")\n );\n }\n }\n }\n }\n return i.resetWarningCache = function() {\n process.env.NODE_ENV !== \"production\" && (n = {});\n }, ps = i, ps;\n}\nvar ms, Hu;\nfunction Ih() {\n if (Hu)\n return ms;\n Hu = 1;\n var e = zf(), t = Oh(), n = Ol(), r = Hf(), i = kh(), a = function() {\n };\n process.env.NODE_ENV !== \"production\" && (a = function(l) {\n var d = \"Warning: \" + l;\n typeof console < \"u\" && console.error(d);\n try {\n throw new Error(d);\n } catch {\n }\n });\n function o() {\n return null;\n }\n return ms = function(l, d) {\n var c = typeof Symbol == \"function\" && Symbol.iterator, m = \"@@iterator\";\n function f(U) {\n var q = U && (c && U[c] || U[m]);\n if (typeof q == \"function\")\n return q;\n }\n var b = \"<>\", x = {\n array: L(\"array\"),\n bigint: L(\"bigint\"),\n bool: L(\"boolean\"),\n func: L(\"function\"),\n number: L(\"number\"),\n object: L(\"object\"),\n string: L(\"string\"),\n symbol: L(\"symbol\"),\n any: M(),\n arrayOf: F,\n element: j(),\n elementType: B(),\n instanceOf: Q,\n node: Ve(),\n objectOf: ce,\n oneOf: we,\n oneOfType: se,\n shape: it,\n exact: dt\n };\n function P(U, q) {\n return U === q ? U !== 0 || 1 / U === 1 / q : U !== U && q !== q;\n }\n function I(U, q) {\n this.message = U, this.data = q && typeof q == \"object\" ? q : {}, this.stack = \"\";\n }\n I.prototype = Error.prototype;\n function D(U) {\n if (process.env.NODE_ENV !== \"production\")\n var q = {}, Ce = 0;\n function De(Qe, Fe, We, Je, nt, et, ht) {\n if (Je = Je || b, et = et || We, ht !== n) {\n if (d) {\n var he = new Error(\n \"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\"\n );\n throw he.name = \"Invariant Violation\", he;\n } else if (process.env.NODE_ENV !== \"production\" && typeof console < \"u\") {\n var It = Je + \":\" + We;\n !q[It] && // Avoid spamming the console because they are often not actionable except for lib authors\n Ce < 3 && (a(\n \"You are manually calling a React.PropTypes validation function for the `\" + et + \"` prop on `\" + Je + \"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.\"\n ), q[It] = !0, Ce++);\n }\n }\n return Fe[We] == null ? Qe ? Fe[We] === null ? new I(\"The \" + nt + \" `\" + et + \"` is marked as required \" + (\"in `\" + Je + \"`, but its value is `null`.\")) : new I(\"The \" + nt + \" `\" + et + \"` is marked as required in \" + (\"`\" + Je + \"`, but its value is `undefined`.\")) : null : U(Fe, We, Je, nt, et);\n }\n var Me = De.bind(null, !1);\n return Me.isRequired = De.bind(null, !0), Me;\n }\n function L(U) {\n function q(Ce, De, Me, Qe, Fe, We) {\n var Je = Ce[De], nt = Ee(Je);\n if (nt !== U) {\n var et = $(Je);\n return new I(\n \"Invalid \" + Qe + \" `\" + Fe + \"` of type \" + (\"`\" + et + \"` supplied to `\" + Me + \"`, expected \") + (\"`\" + U + \"`.\"),\n { expectedType: U }\n );\n }\n return null;\n }\n return D(q);\n }\n function M() {\n return D(o);\n }\n function F(U) {\n function q(Ce, De, Me, Qe, Fe) {\n if (typeof U != \"function\")\n return new I(\"Property `\" + Fe + \"` of component `\" + Me + \"` has invalid PropType notation inside arrayOf.\");\n var We = Ce[De];\n if (!Array.isArray(We)) {\n var Je = Ee(We);\n return new I(\"Invalid \" + Qe + \" `\" + Fe + \"` of type \" + (\"`\" + Je + \"` supplied to `\" + Me + \"`, expected an array.\"));\n }\n for (var nt = 0; nt < We.length; nt++) {\n var et = U(We, nt, Me, Qe, Fe + \"[\" + nt + \"]\", n);\n if (et instanceof Error)\n return et;\n }\n return null;\n }\n return D(q);\n }\n function j() {\n function U(q, Ce, De, Me, Qe) {\n var Fe = q[Ce];\n if (!l(Fe)) {\n var We = Ee(Fe);\n return new I(\"Invalid \" + Me + \" `\" + Qe + \"` of type \" + (\"`\" + We + \"` supplied to `\" + De + \"`, expected a single ReactElement.\"));\n }\n return null;\n }\n return D(U);\n }\n function B() {\n function U(q, Ce, De, Me, Qe) {\n var Fe = q[Ce];\n if (!e.isValidElementType(Fe)) {\n var We = Ee(Fe);\n return new I(\"Invalid \" + Me + \" `\" + Qe + \"` of type \" + (\"`\" + We + \"` supplied to `\" + De + \"`, expected a single ReactElement type.\"));\n }\n return null;\n }\n return D(U);\n }\n function Q(U) {\n function q(Ce, De, Me, Qe, Fe) {\n if (!(Ce[De] instanceof U)) {\n var We = U.name || b, Je = ft(Ce[De]);\n return new I(\"Invalid \" + Qe + \" `\" + Fe + \"` of type \" + (\"`\" + Je + \"` supplied to `\" + Me + \"`, expected \") + (\"instance of `\" + We + \"`.\"));\n }\n return null;\n }\n return D(q);\n }\n function we(U) {\n if (!Array.isArray(U))\n return process.env.NODE_ENV !== \"production\" && (arguments.length > 1 ? a(\n \"Invalid arguments supplied to oneOf, expected an array, got \" + arguments.length + \" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).\"\n ) : a(\"Invalid argument supplied to oneOf, expected an array.\")), o;\n function q(Ce, De, Me, Qe, Fe) {\n for (var We = Ce[De], Je = 0; Je < U.length; Je++)\n if (P(We, U[Je]))\n return null;\n var nt = JSON.stringify(U, function(ht, he) {\n var It = $(he);\n return It === \"symbol\" ? String(he) : he;\n });\n return new I(\"Invalid \" + Qe + \" `\" + Fe + \"` of value `\" + String(We) + \"` \" + (\"supplied to `\" + Me + \"`, expected one of \" + nt + \".\"));\n }\n return D(q);\n }\n function ce(U) {\n function q(Ce, De, Me, Qe, Fe) {\n if (typeof U != \"function\")\n return new I(\"Property `\" + Fe + \"` of component `\" + Me + \"` has invalid PropType notation inside objectOf.\");\n var We = Ce[De], Je = Ee(We);\n if (Je !== \"object\")\n return new I(\"Invalid \" + Qe + \" `\" + Fe + \"` of type \" + (\"`\" + Je + \"` supplied to `\" + Me + \"`, expected an object.\"));\n for (var nt in We)\n if (r(We, nt)) {\n var et = U(We, nt, Me, Qe, Fe + \".\" + nt, n);\n if (et instanceof Error)\n return et;\n }\n return null;\n }\n return D(q);\n }\n function se(U) {\n if (!Array.isArray(U))\n return process.env.NODE_ENV !== \"production\" && a(\"Invalid argument supplied to oneOfType, expected an instance of array.\"), o;\n for (var q = 0; q < U.length; q++) {\n var Ce = U[q];\n if (typeof Ce != \"function\")\n return a(\n \"Invalid argument supplied to oneOfType. Expected an array of check functions, but received \" + xe(Ce) + \" at index \" + q + \".\"\n ), o;\n }\n function De(Me, Qe, Fe, We, Je) {\n for (var nt = [], et = 0; et < U.length; et++) {\n var ht = U[et], he = ht(Me, Qe, Fe, We, Je, n);\n if (he == null)\n return null;\n he.data && r(he.data, \"expectedType\") && nt.push(he.data.expectedType);\n }\n var It = nt.length > 0 ? \", expected one of type [\" + nt.join(\", \") + \"]\" : \"\";\n return new I(\"Invalid \" + We + \" `\" + Je + \"` supplied to \" + (\"`\" + Fe + \"`\" + It + \".\"));\n }\n return D(De);\n }\n function Ve() {\n function U(q, Ce, De, Me, Qe) {\n return X(q[Ce]) ? null : new I(\"Invalid \" + Me + \" `\" + Qe + \"` supplied to \" + (\"`\" + De + \"`, expected a ReactNode.\"));\n }\n return D(U);\n }\n function st(U, q, Ce, De, Me) {\n return new I(\n (U || \"React class\") + \": \" + q + \" type `\" + Ce + \".\" + De + \"` is invalid; it must be a function, usually from the `prop-types` package, but received `\" + Me + \"`.\"\n );\n }\n function it(U) {\n function q(Ce, De, Me, Qe, Fe) {\n var We = Ce[De], Je = Ee(We);\n if (Je !== \"object\")\n return new I(\"Invalid \" + Qe + \" `\" + Fe + \"` of type `\" + Je + \"` \" + (\"supplied to `\" + Me + \"`, expected `object`.\"));\n for (var nt in U) {\n var et = U[nt];\n if (typeof et != \"function\")\n return st(Me, Qe, Fe, nt, $(et));\n var ht = et(We, nt, Me, Qe, Fe + \".\" + nt, n);\n if (ht)\n return ht;\n }\n return null;\n }\n return D(q);\n }\n function dt(U) {\n function q(Ce, De, Me, Qe, Fe) {\n var We = Ce[De], Je = Ee(We);\n if (Je !== \"object\")\n return new I(\"Invalid \" + Qe + \" `\" + Fe + \"` of type `\" + Je + \"` \" + (\"supplied to `\" + Me + \"`, expected `object`.\"));\n var nt = t({}, Ce[De], U);\n for (var et in nt) {\n var ht = U[et];\n if (r(U, et) && typeof ht != \"function\")\n return st(Me, Qe, Fe, et, $(ht));\n if (!ht)\n return new I(\n \"Invalid \" + Qe + \" `\" + Fe + \"` key `\" + et + \"` supplied to `\" + Me + \"`.\\nBad object: \" + JSON.stringify(Ce[De], null, \" \") + `\nValid keys: ` + JSON.stringify(Object.keys(U), null, \" \")\n );\n var he = ht(We, et, Me, Qe, Fe + \".\" + et, n);\n if (he)\n return he;\n }\n return null;\n }\n return D(q);\n }\n function X(U) {\n switch (typeof U) {\n case \"number\":\n case \"string\":\n case \"undefined\":\n return !0;\n case \"boolean\":\n return !U;\n case \"object\":\n if (Array.isArray(U))\n return U.every(X);\n if (U === null || l(U))\n return !0;\n var q = f(U);\n if (q) {\n var Ce = q.call(U), De;\n if (q !== U.entries) {\n for (; !(De = Ce.next()).done; )\n if (!X(De.value))\n return !1;\n } else\n for (; !(De = Ce.next()).done; ) {\n var Me = De.value;\n if (Me && !X(Me[1]))\n return !1;\n }\n } else\n return !1;\n return !0;\n default:\n return !1;\n }\n }\n function ie(U, q) {\n return U === \"symbol\" ? !0 : q ? q[\"@@toStringTag\"] === \"Symbol\" || typeof Symbol == \"function\" && q instanceof Symbol : !1;\n }\n function Ee(U) {\n var q = typeof U;\n return Array.isArray(U) ? \"array\" : U instanceof RegExp ? \"object\" : ie(q, U) ? \"symbol\" : q;\n }\n function $(U) {\n if (typeof U > \"u\" || U === null)\n return \"\" + U;\n var q = Ee(U);\n if (q === \"object\") {\n if (U instanceof Date)\n return \"date\";\n if (U instanceof RegExp)\n return \"regexp\";\n }\n return q;\n }\n function xe(U) {\n var q = $(U);\n switch (q) {\n case \"array\":\n case \"object\":\n return \"an \" + q;\n case \"boolean\":\n case \"date\":\n case \"regexp\":\n return \"a \" + q;\n default:\n return q;\n }\n }\n function ft(U) {\n return !U.constructor || !U.constructor.name ? b : U.constructor.name;\n }\n return x.checkPropTypes = i, x.resetWarningCache = i.resetWarningCache, x.PropTypes = x, x;\n }, ms;\n}\nvar hs, Wu;\nfunction Mh() {\n if (Wu)\n return hs;\n Wu = 1;\n var e = Ol();\n function t() {\n }\n function n() {\n }\n return n.resetWarningCache = t, hs = function() {\n function r(o, l, d, c, m, f) {\n if (f !== e) {\n var b = new Error(\n \"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\"\n );\n throw b.name = \"Invariant Violation\", b;\n }\n }\n r.isRequired = r;\n function i() {\n return r;\n }\n var a = {\n array: r,\n bigint: r,\n bool: r,\n func: r,\n number: r,\n object: r,\n string: r,\n symbol: r,\n any: r,\n arrayOf: i,\n element: r,\n elementType: r,\n instanceOf: i,\n node: r,\n objectOf: i,\n oneOf: i,\n oneOfType: i,\n shape: i,\n exact: i,\n checkPropTypes: n,\n resetWarningCache: t\n };\n return a.PropTypes = a, a;\n }, hs;\n}\nif (process.env.NODE_ENV !== \"production\") {\n var Fh = zf(), Bh = !0;\n Hs.exports = Ih()(Fh.isElement, Bh);\n} else\n Hs.exports = Mh()();\nvar kl = Hs.exports;\nconst ot = /* @__PURE__ */ jf(kl);\nfunction Uu(e, t) {\n var n = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var r = Object.getOwnPropertySymbols(e);\n t && (r = r.filter(function(i) {\n return Object.getOwnPropertyDescriptor(e, i).enumerable;\n })), n.push.apply(n, r);\n }\n return n;\n}\nfunction Pn(e) {\n for (var t = 1; t < arguments.length; t++) {\n var n = arguments[t] != null ? arguments[t] : {};\n t % 2 ? Uu(Object(n), !0).forEach(function(r) {\n cr(e, r, n[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Uu(Object(n)).forEach(function(r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));\n });\n }\n return e;\n}\nfunction _o(e) {\n \"@babel/helpers - typeof\";\n return _o = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(t) {\n return typeof t;\n } : function(t) {\n return t && typeof Symbol == \"function\" && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n }, _o(e);\n}\nfunction cr(e, t, n) {\n return t in e ? Object.defineProperty(e, t, {\n value: n,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[t] = n, e;\n}\nfunction Dh(e, t) {\n if (e == null)\n return {};\n var n = {}, r = Object.keys(e), i, a;\n for (a = 0; a < r.length; a++)\n i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);\n return n;\n}\nfunction Nh(e, t) {\n if (e == null)\n return {};\n var n = Dh(e, t), r, i;\n if (Object.getOwnPropertySymbols) {\n var a = Object.getOwnPropertySymbols(e);\n for (i = 0; i < a.length; i++)\n r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);\n }\n return n;\n}\nfunction Ws(e) {\n return Lh(e) || $h(e) || _h(e) || Vh();\n}\nfunction Lh(e) {\n if (Array.isArray(e))\n return Us(e);\n}\nfunction $h(e) {\n if (typeof Symbol < \"u\" && e[Symbol.iterator] != null || e[\"@@iterator\"] != null)\n return Array.from(e);\n}\nfunction _h(e, t) {\n if (e) {\n if (typeof e == \"string\")\n return Us(e, t);\n var n = Object.prototype.toString.call(e).slice(8, -1);\n if (n === \"Object\" && e.constructor && (n = e.constructor.name), n === \"Map\" || n === \"Set\")\n return Array.from(e);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))\n return Us(e, t);\n }\n}\nfunction Us(e, t) {\n (t == null || t > e.length) && (t = e.length);\n for (var n = 0, r = new Array(t); n < t; n++)\n r[n] = e[n];\n return r;\n}\nfunction Vh() {\n throw new TypeError(`Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);\n}\nfunction Gh(e) {\n var t, n = e.beat, r = e.fade, i = e.beatFade, a = e.bounce, o = e.shake, l = e.flash, d = e.spin, c = e.spinPulse, m = e.spinReverse, f = e.pulse, b = e.fixedWidth, x = e.inverse, P = e.border, I = e.listItem, D = e.flip, L = e.size, M = e.rotation, F = e.pull, j = (t = {\n \"fa-beat\": n,\n \"fa-fade\": r,\n \"fa-beat-fade\": i,\n \"fa-bounce\": a,\n \"fa-shake\": o,\n \"fa-flash\": l,\n \"fa-spin\": d,\n \"fa-spin-reverse\": m,\n \"fa-spin-pulse\": c,\n \"fa-pulse\": f,\n \"fa-fw\": b,\n \"fa-inverse\": x,\n \"fa-border\": P,\n \"fa-li\": I,\n \"fa-flip\": D === !0,\n \"fa-flip-horizontal\": D === \"horizontal\" || D === \"both\",\n \"fa-flip-vertical\": D === \"vertical\" || D === \"both\"\n }, cr(t, \"fa-\".concat(L), typeof L < \"u\" && L !== null), cr(t, \"fa-rotate-\".concat(M), typeof M < \"u\" && M !== null && M !== 0), cr(t, \"fa-pull-\".concat(F), typeof F < \"u\" && F !== null), cr(t, \"fa-swap-opacity\", e.swapOpacity), t);\n return Object.keys(j).map(function(B) {\n return j[B] ? B : null;\n }).filter(function(B) {\n return B;\n });\n}\nfunction jh(e) {\n return e = e - 0, e === e;\n}\nfunction Wf(e) {\n return jh(e) ? e : (e = e.replace(/[\\-_\\s]+(.)?/g, function(t, n) {\n return n ? n.toUpperCase() : \"\";\n }), e.substr(0, 1).toLowerCase() + e.substr(1));\n}\nvar zh = [\"style\"];\nfunction Hh(e) {\n return e.charAt(0).toUpperCase() + e.slice(1);\n}\nfunction Wh(e) {\n return e.split(\";\").map(function(t) {\n return t.trim();\n }).filter(function(t) {\n return t;\n }).reduce(function(t, n) {\n var r = n.indexOf(\":\"), i = Wf(n.slice(0, r)), a = n.slice(r + 1).trim();\n return i.startsWith(\"webkit\") ? t[Hh(i)] = a : t[i] = a, t;\n }, {});\n}\nfunction Uf(e, t) {\n var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};\n if (typeof t == \"string\")\n return t;\n var r = (t.children || []).map(function(d) {\n return Uf(e, d);\n }), i = Object.keys(t.attributes || {}).reduce(function(d, c) {\n var m = t.attributes[c];\n switch (c) {\n case \"class\":\n d.attrs.className = m, delete t.attributes.class;\n break;\n case \"style\":\n d.attrs.style = Wh(m);\n break;\n default:\n c.indexOf(\"aria-\") === 0 || c.indexOf(\"data-\") === 0 ? d.attrs[c.toLowerCase()] = m : d.attrs[Wf(c)] = m;\n }\n return d;\n }, {\n attrs: {}\n }), a = n.style, o = a === void 0 ? {} : a, l = Nh(n, zh);\n return i.attrs.style = Pn(Pn({}, i.attrs.style), o), e.apply(void 0, [t.tag, Pn(Pn({}, i.attrs), l)].concat(Ws(r)));\n}\nvar qf = !1;\ntry {\n qf = process.env.NODE_ENV === \"production\";\n} catch {\n}\nfunction Uh() {\n if (!qf && console && typeof console.error == \"function\") {\n var e;\n (e = console).error.apply(e, arguments);\n }\n}\nfunction qu(e) {\n if (e && _o(e) === \"object\" && e.prefix && e.iconName && e.icon)\n return e;\n if (zs.icon)\n return zs.icon(e);\n if (e === null)\n return null;\n if (e && _o(e) === \"object\" && e.prefix && e.iconName)\n return e;\n if (Array.isArray(e) && e.length === 2)\n return {\n prefix: e[0],\n iconName: e[1]\n };\n if (typeof e == \"string\")\n return {\n prefix: \"fas\",\n iconName: e\n };\n}\nfunction vs(e, t) {\n return Array.isArray(t) && t.length > 0 || !Array.isArray(t) && t ? cr({}, e, t) : {};\n}\nvar mt = /* @__PURE__ */ vn.forwardRef(function(e, t) {\n var n = e.icon, r = e.mask, i = e.symbol, a = e.className, o = e.title, l = e.titleId, d = e.maskId, c = qu(n), m = vs(\"classes\", [].concat(Ws(Gh(e)), Ws(a.split(\" \")))), f = vs(\"transform\", typeof e.transform == \"string\" ? zs.transform(e.transform) : e.transform), b = vs(\"mask\", qu(r)), x = Ph(c, Pn(Pn(Pn(Pn({}, m), f), b), {}, {\n symbol: i,\n title: o,\n titleId: l,\n maskId: d\n }));\n if (!x)\n return Uh(\"Could not find icon\", c), null;\n var P = x.abstract, I = {\n ref: t\n };\n return Object.keys(e).forEach(function(D) {\n mt.defaultProps.hasOwnProperty(D) || (I[D] = e[D]);\n }), qh(P[0], I);\n});\nmt.displayName = \"FontAwesomeIcon\";\nmt.propTypes = {\n beat: ot.bool,\n border: ot.bool,\n beatFade: ot.bool,\n bounce: ot.bool,\n className: ot.string,\n fade: ot.bool,\n flash: ot.bool,\n mask: ot.oneOfType([ot.object, ot.array, ot.string]),\n maskId: ot.string,\n fixedWidth: ot.bool,\n inverse: ot.bool,\n flip: ot.oneOf([!0, !1, \"horizontal\", \"vertical\", \"both\"]),\n icon: ot.oneOfType([ot.object, ot.array, ot.string]),\n listItem: ot.bool,\n pull: ot.oneOf([\"right\", \"left\"]),\n pulse: ot.bool,\n rotation: ot.oneOf([0, 90, 180, 270]),\n shake: ot.bool,\n size: ot.oneOf([\"2xs\", \"xs\", \"sm\", \"lg\", \"xl\", \"2xl\", \"1x\", \"2x\", \"3x\", \"4x\", \"5x\", \"6x\", \"7x\", \"8x\", \"9x\", \"10x\"]),\n spin: ot.bool,\n spinPulse: ot.bool,\n spinReverse: ot.bool,\n symbol: ot.oneOfType([ot.bool, ot.string]),\n title: ot.string,\n titleId: ot.string,\n transform: ot.oneOfType([ot.string, ot.object]),\n swapOpacity: ot.bool\n};\nmt.defaultProps = {\n border: !1,\n className: \"\",\n mask: null,\n maskId: null,\n fixedWidth: !1,\n inverse: !1,\n flip: !1,\n icon: null,\n listItem: !1,\n pull: null,\n pulse: !1,\n rotation: null,\n size: null,\n spin: !1,\n spinPulse: !1,\n spinReverse: !1,\n beat: !1,\n fade: !1,\n beatFade: !1,\n bounce: !1,\n shake: !1,\n symbol: !1,\n title: \"\",\n titleId: null,\n transform: null,\n swapOpacity: !1\n};\nvar qh = Uf.bind(null, vn.createElement), Yh = {\n prefix: \"fas\",\n iconName: \"chevron-up\",\n icon: [512, 512, [], \"f077\", \"M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z\"]\n}, Kh = {\n prefix: \"fas\",\n iconName: \"circle-check\",\n icon: [512, 512, [61533, \"check-circle\"], \"f058\", \"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z\"]\n}, Xh = Kh, Zh = {\n prefix: \"fas\",\n iconName: \"arrow-right\",\n icon: [448, 512, [8594], \"f061\", \"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z\"]\n}, Qh = {\n prefix: \"fas\",\n iconName: \"arrow-left\",\n icon: [448, 512, [8592], \"f060\", \"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z\"]\n}, Jh = {\n prefix: \"fas\",\n iconName: \"circle-info\",\n icon: [512, 512, [\"info-circle\"], \"f05a\", \"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z\"]\n}, ev = Jh, tv = {\n prefix: \"fas\",\n iconName: \"chevron-down\",\n icon: [512, 512, [], \"f078\", \"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z\"]\n}, nv = {\n prefix: \"fas\",\n iconName: \"circle-user\",\n icon: [512, 512, [62142, \"user-circle\"], \"f2bd\", \"M399 384.2C376.9 345.8 335.4 320 288 320H224c-47.4 0-88.9 25.8-111 64.2c35.2 39.2 86.2 63.8 143 63.8s107.8-24.7 143-63.8zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm256 16a72 72 0 1 0 0-144 72 72 0 1 0 0 144z\"]\n}, rv = nv, iv = {\n prefix: \"fas\",\n iconName: \"xmark\",\n icon: [384, 512, [128473, 10005, 10006, 10060, 215, \"close\", \"multiply\", \"remove\", \"times\"], \"f00d\", \"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"]\n}, Yf = iv, ov = {\n prefix: \"fas\",\n iconName: \"check\",\n icon: [448, 512, [10003, 10004], \"f00c\", \"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z\"]\n}, av = {\n prefix: \"fas\",\n iconName: \"triangle-exclamation\",\n icon: [512, 512, [9888, \"exclamation-triangle\", \"warning\"], \"f071\", \"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z\"]\n}, sv = av, lv = {\n prefix: \"fas\",\n iconName: \"circle-xmark\",\n icon: [512, 512, [61532, \"times-circle\", \"xmark-circle\"], \"f057\", \"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z\"]\n}, uv = lv;\nfunction Gt({\n title: e,\n color: t,\n className: n,\n icon: r,\n isDisabled: i,\n isIconAfterText: a,\n onClick: o,\n testId: l,\n text: d,\n variant: c = \"solid\",\n size: m = \"medium\"\n}) {\n function f(I) {\n I.preventDefault(), o && o();\n }\n const b = [\"cui-button\"];\n c && b.push(c), n && b.push(n), d && r && (a ? b.push(\"right\") : b.push(\"left\"));\n let x;\n m && b.push(m), t && (b.push(`is-color ${t}`), x = {\n \"--color\": `var(--${t})`,\n \"--color-10\": `var(--${t}-10)`,\n \"--color-10-border\": `var(--${t}-10-border)`,\n \"--color-30\": `var(--${t}-30)`,\n \"--color-45\": `var(--${t}-45)`,\n \"--color-55\": `var(--${t}-55)`,\n \"--color-75\": `var(--${t}-75)`,\n \"--color-90\": `var(--${t}-90)`\n });\n const P = b.join(\" \");\n return /* @__PURE__ */ Oe(\n \"button\",\n {\n type: \"button\",\n className: P,\n onClick: f,\n disabled: i,\n style: x,\n \"data-testid\": l,\n title: e,\n children: [\n r && !a && /* @__PURE__ */ T(\"span\", { className: \"icon\", children: r }),\n d && /* @__PURE__ */ T(\"span\", { className: \"label\", children: d }),\n r && a && /* @__PURE__ */ T(\"span\", { className: \"icon\", children: r })\n ]\n }\n );\n}\nfunction cv({\n children: e,\n label: t,\n defaultOpen: n = !1,\n testId: r\n}) {\n const [i, a] = jt(n);\n function o() {\n a(!i);\n }\n const l = i ? Yh : tv, d = r ? `${r}-button` : void 0;\n return /* @__PURE__ */ Oe(\"div\", { className: \"cui-accordion\", \"data-testid\": r, children: [\n /* @__PURE__ */ T(\"div\", { className: \"header\", children: /* @__PURE__ */ T(\n Gt,\n {\n icon: /* @__PURE__ */ T(mt, { icon: l }),\n isIconAfterText: !0,\n onClick: o,\n testId: d,\n text: t,\n variant: \"text\"\n }\n ) }),\n i && /* @__PURE__ */ T(\"div\", { className: \"content\", children: e }),\n /* @__PURE__ */ T(Up, { className: \"separator\", isSeparator: !0 })\n ] });\n}\nvar qs = { exports: {} }, er = {}, Ys = { exports: {} }, en = {}, Ks = { exports: {} };\n(function(e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.default = m;\n /*!\n * Adapted from jQuery UI core\n *\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/ui-core/\n */\n var n = \"none\", r = \"contents\", i = /input|select|textarea|button|object|iframe/;\n function a(f, b) {\n return b.getPropertyValue(\"overflow\") !== \"visible\" || // if 'overflow: visible' set, check if there is actually any overflow\n f.scrollWidth <= 0 && f.scrollHeight <= 0;\n }\n function o(f) {\n var b = f.offsetWidth <= 0 && f.offsetHeight <= 0;\n if (b && !f.innerHTML)\n return !0;\n try {\n var x = window.getComputedStyle(f), P = x.getPropertyValue(\"display\");\n return b ? P !== r && a(f, x) : P === n;\n } catch {\n return console.warn(\"Failed to inspect element style\"), !1;\n }\n }\n function l(f) {\n for (var b = f, x = f.getRootNode && f.getRootNode(); b && b !== document.body; ) {\n if (x && b === x && (b = x.host.parentNode), o(b))\n return !1;\n b = b.parentNode;\n }\n return !0;\n }\n function d(f, b) {\n var x = f.nodeName.toLowerCase(), P = i.test(x) && !f.disabled || x === \"a\" && f.href || b;\n return P && l(f);\n }\n function c(f) {\n var b = f.getAttribute(\"tabindex\");\n b === null && (b = void 0);\n var x = isNaN(b);\n return (x || b >= 0) && d(f, !x);\n }\n function m(f) {\n var b = [].slice.call(f.querySelectorAll(\"*\"), 0).reduce(function(x, P) {\n return x.concat(P.shadowRoot ? m(P.shadowRoot) : [P]);\n }, []);\n return b.filter(c);\n }\n e.exports = t.default;\n})(Ks, Ks.exports);\nvar Kf = Ks.exports;\nObject.defineProperty(en, \"__esModule\", {\n value: !0\n});\nen.resetState = mv;\nen.log = hv;\nen.handleBlur = ii;\nen.handleFocus = oi;\nen.markForFocusLater = vv;\nen.returnFocus = gv;\nen.popWithoutFocus = yv;\nen.setupScopedFocus = bv;\nen.teardownScopedFocus = wv;\nvar fv = Kf, dv = pv(fv);\nfunction pv(e) {\n return e && e.__esModule ? e : { default: e };\n}\nvar tr = [], fr = null, Xs = !1;\nfunction mv() {\n tr = [];\n}\nfunction hv() {\n process.env.NODE_ENV !== \"production\" && (console.log(\"focusManager ----------\"), tr.forEach(function(e) {\n var t = e || {};\n console.log(t.nodeName, t.className, t.id);\n }), console.log(\"end focusManager ----------\"));\n}\nfunction ii() {\n Xs = !0;\n}\nfunction oi() {\n if (Xs) {\n if (Xs = !1, !fr)\n return;\n setTimeout(function() {\n if (!fr.contains(document.activeElement)) {\n var e = (0, dv.default)(fr)[0] || fr;\n e.focus();\n }\n }, 0);\n }\n}\nfunction vv() {\n tr.push(document.activeElement);\n}\nfunction gv() {\n var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, t = null;\n try {\n tr.length !== 0 && (t = tr.pop(), t.focus({ preventScroll: e }));\n return;\n } catch {\n console.warn([\"You tried to return focus to\", t, \"but it is not in the DOM anymore\"].join(\" \"));\n }\n}\nfunction yv() {\n tr.length > 0 && tr.pop();\n}\nfunction bv(e) {\n fr = e, window.addEventListener ? (window.addEventListener(\"blur\", ii, !1), document.addEventListener(\"focus\", oi, !0)) : (window.attachEvent(\"onBlur\", ii), document.attachEvent(\"onFocus\", oi));\n}\nfunction wv() {\n fr = null, window.addEventListener ? (window.removeEventListener(\"blur\", ii), document.removeEventListener(\"focus\", oi)) : (window.detachEvent(\"onBlur\", ii), document.detachEvent(\"onFocus\", oi));\n}\nvar Zs = { exports: {} };\n(function(e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.default = o;\n var n = Kf, r = i(n);\n function i(l) {\n return l && l.__esModule ? l : { default: l };\n }\n function a() {\n var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;\n return l.activeElement.shadowRoot ? a(l.activeElement.shadowRoot) : l.activeElement;\n }\n function o(l, d) {\n var c = (0, r.default)(l);\n if (!c.length) {\n d.preventDefault();\n return;\n }\n var m = void 0, f = d.shiftKey, b = c[0], x = c[c.length - 1], P = a();\n if (l === P) {\n if (!f)\n return;\n m = x;\n }\n if (x === P && !f && (m = b), b === P && f && (m = x), m) {\n d.preventDefault(), m.focus();\n return;\n }\n var I = /(\\bChrome\\b|\\bSafari\\b)\\//.exec(navigator.userAgent), D = I != null && I[1] != \"Chrome\" && /\\biPod\\b|\\biPad\\b/g.exec(navigator.userAgent) == null;\n if (D) {\n var L = c.indexOf(P);\n if (L > -1 && (L += f ? -1 : 1), m = c[L], typeof m > \"u\") {\n d.preventDefault(), m = f ? x : b, m.focus();\n return;\n }\n d.preventDefault(), m.focus();\n }\n }\n e.exports = t.default;\n})(Zs, Zs.exports);\nvar xv = Zs.exports, tn = {}, Cv = process.env.NODE_ENV !== \"production\", Xf = function() {\n};\nif (Cv) {\n var Rv = function(t, n) {\n var r = arguments.length;\n n = new Array(r > 1 ? r - 1 : 0);\n for (var i = 1; i < r; i++)\n n[i - 1] = arguments[i];\n var a = 0, o = \"Warning: \" + t.replace(/%s/g, function() {\n return n[a++];\n });\n typeof console < \"u\" && console.error(o);\n try {\n throw new Error(o);\n } catch {\n }\n };\n Xf = function(e, t, n) {\n var r = arguments.length;\n n = new Array(r > 2 ? r - 2 : 0);\n for (var i = 2; i < r; i++)\n n[i - 2] = arguments[i];\n if (t === void 0)\n throw new Error(\n \"`warning(condition, format, ...args)` requires a warning message argument\"\n );\n e || Rv.apply(null, [t].concat(n));\n };\n}\nvar Sv = Xf, Qt = {}, Zf = { exports: {} };\n/*!\n Copyright (c) 2015 Jed Watson.\n Based on code that is Copyright 2013-2015, Facebook, Inc.\n All rights reserved.\n*/\n(function(e) {\n (function() {\n var t = !!(typeof window < \"u\" && window.document && window.document.createElement), n = {\n canUseDOM: t,\n canUseWorkers: typeof Worker < \"u\",\n canUseEventListeners: t && !!(window.addEventListener || window.attachEvent),\n canUseViewport: t && !!window.screen\n };\n e.exports ? e.exports = n : window.ExecutionEnvironment = n;\n })();\n})(Zf);\nvar Pv = Zf.exports;\nObject.defineProperty(Qt, \"__esModule\", {\n value: !0\n});\nQt.canUseDOM = Qt.SafeNodeList = Qt.SafeHTMLCollection = void 0;\nvar Tv = Pv, Av = Ev(Tv);\nfunction Ev(e) {\n return e && e.__esModule ? e : { default: e };\n}\nvar ia = Av.default, Ov = ia.canUseDOM ? window.HTMLElement : {};\nQt.SafeHTMLCollection = ia.canUseDOM ? window.HTMLCollection : {};\nQt.SafeNodeList = ia.canUseDOM ? window.NodeList : {};\nQt.canUseDOM = ia.canUseDOM;\nQt.default = Ov;\nObject.defineProperty(tn, \"__esModule\", {\n value: !0\n});\ntn.resetState = Bv;\ntn.log = Dv;\ntn.assertNodeList = Qf;\ntn.setElement = Nv;\ntn.validateElement = Il;\ntn.hide = Lv;\ntn.show = $v;\ntn.documentNotReadyOrSSRTesting = _v;\nvar kv = Sv, Iv = Fv(kv), Mv = Qt;\nfunction Fv(e) {\n return e && e.__esModule ? e : { default: e };\n}\nvar Ht = null;\nfunction Bv() {\n Ht && (Ht.removeAttribute ? Ht.removeAttribute(\"aria-hidden\") : Ht.length != null ? Ht.forEach(function(e) {\n return e.removeAttribute(\"aria-hidden\");\n }) : document.querySelectorAll(Ht).forEach(function(e) {\n return e.removeAttribute(\"aria-hidden\");\n })), Ht = null;\n}\nfunction Dv() {\n if (process.env.NODE_ENV !== \"production\") {\n var e = Ht || {};\n console.log(\"ariaAppHider ----------\"), console.log(e.nodeName, e.className, e.id), console.log(\"end ariaAppHider ----------\");\n }\n}\nfunction Qf(e, t) {\n if (!e || !e.length)\n throw new Error(\"react-modal: No elements were found for selector \" + t + \".\");\n}\nfunction Nv(e) {\n var t = e;\n if (typeof t == \"string\" && Mv.canUseDOM) {\n var n = document.querySelectorAll(t);\n Qf(n, t), t = n;\n }\n return Ht = t || Ht, Ht;\n}\nfunction Il(e) {\n var t = e || Ht;\n return t ? Array.isArray(t) || t instanceof HTMLCollection || t instanceof NodeList ? t : [t] : ((0, Iv.default)(!1, [\"react-modal: App element is not defined.\", \"Please use `Modal.setAppElement(el)` or set `appElement={el}`.\", \"This is needed so screen readers don't see main content\", \"when modal is opened. It is not recommended, but you can opt-out\", \"by setting `ariaHideApp={false}`.\"].join(\" \")), []);\n}\nfunction Lv(e) {\n var t = !0, n = !1, r = void 0;\n try {\n for (var i = Il(e)[Symbol.iterator](), a; !(t = (a = i.next()).done); t = !0) {\n var o = a.value;\n o.setAttribute(\"aria-hidden\", \"true\");\n }\n } catch (l) {\n n = !0, r = l;\n } finally {\n try {\n !t && i.return && i.return();\n } finally {\n if (n)\n throw r;\n }\n }\n}\nfunction $v(e) {\n var t = !0, n = !1, r = void 0;\n try {\n for (var i = Il(e)[Symbol.iterator](), a; !(t = (a = i.next()).done); t = !0) {\n var o = a.value;\n o.removeAttribute(\"aria-hidden\");\n }\n } catch (l) {\n n = !0, r = l;\n } finally {\n try {\n !t && i.return && i.return();\n } finally {\n if (n)\n throw r;\n }\n }\n}\nfunction _v() {\n Ht = null;\n}\nvar xr = {};\nObject.defineProperty(xr, \"__esModule\", {\n value: !0\n});\nxr.resetState = Vv;\nxr.log = Gv;\nvar Kn = {}, Xn = {};\nfunction Yu(e, t) {\n e.classList.remove(t);\n}\nfunction Vv() {\n var e = document.getElementsByTagName(\"html\")[0];\n for (var t in Kn)\n Yu(e, Kn[t]);\n var n = document.body;\n for (var r in Xn)\n Yu(n, Xn[r]);\n Kn = {}, Xn = {};\n}\nfunction Gv() {\n if (process.env.NODE_ENV !== \"production\") {\n var e = document.getElementsByTagName(\"html\")[0].className, t = `Show tracked classes:\n\n`;\n t += \" (\" + e + `):\n `;\n for (var n in Kn)\n t += \" \" + n + \" \" + Kn[n] + `\n `;\n e = document.body.className, t += `\n\ndoc.body (` + e + `):\n `;\n for (var r in Xn)\n t += \" \" + r + \" \" + Xn[r] + `\n `;\n t += `\n`, console.log(t);\n }\n}\nvar jv = function(t, n) {\n return t[n] || (t[n] = 0), t[n] += 1, n;\n}, zv = function(t, n) {\n return t[n] && (t[n] -= 1), n;\n}, Hv = function(t, n, r) {\n r.forEach(function(i) {\n jv(n, i), t.add(i);\n });\n}, Wv = function(t, n, r) {\n r.forEach(function(i) {\n zv(n, i), n[i] === 0 && t.remove(i);\n });\n};\nxr.add = function(t, n) {\n return Hv(t.classList, t.nodeName.toLowerCase() == \"html\" ? Kn : Xn, n.split(\" \"));\n};\nxr.remove = function(t, n) {\n return Wv(t.classList, t.nodeName.toLowerCase() == \"html\" ? Kn : Xn, n.split(\" \"));\n};\nvar Cr = {};\nObject.defineProperty(Cr, \"__esModule\", {\n value: !0\n});\nCr.log = qv;\nCr.resetState = Yv;\nfunction Uv(e, t) {\n if (!(e instanceof t))\n throw new TypeError(\"Cannot call a class as a function\");\n}\nvar Jf = function e() {\n var t = this;\n Uv(this, e), this.register = function(n) {\n if (t.openInstances.indexOf(n) !== -1) {\n process.env.NODE_ENV !== \"production\" && console.warn(\"React-Modal: Cannot register modal instance that's already open\");\n return;\n }\n t.openInstances.push(n), t.emit(\"register\");\n }, this.deregister = function(n) {\n var r = t.openInstances.indexOf(n);\n if (r === -1) {\n process.env.NODE_ENV !== \"production\" && console.warn(\"React-Modal: Unable to deregister \" + n + \" as it was never registered\");\n return;\n }\n t.openInstances.splice(r, 1), t.emit(\"deregister\");\n }, this.subscribe = function(n) {\n t.subscribers.push(n);\n }, this.emit = function(n) {\n t.subscribers.forEach(function(r) {\n return r(\n n,\n // shallow copy to avoid accidental mutation\n t.openInstances.slice()\n );\n });\n }, this.openInstances = [], this.subscribers = [];\n}, Vo = new Jf();\nfunction qv() {\n console.log(\"portalOpenInstances ----------\"), console.log(Vo.openInstances.length), Vo.openInstances.forEach(function(e) {\n return console.log(e);\n }), console.log(\"end portalOpenInstances ----------\");\n}\nfunction Yv() {\n Vo = new Jf();\n}\nCr.default = Vo;\nvar Ml = {};\nObject.defineProperty(Ml, \"__esModule\", {\n value: !0\n});\nMl.resetState = Qv;\nMl.log = Jv;\nvar Kv = Cr, Xv = Zv(Kv);\nfunction Zv(e) {\n return e && e.__esModule ? e : { default: e };\n}\nvar Bt = void 0, Xt = void 0, Zn = [];\nfunction Qv() {\n for (var e = [Bt, Xt], t = 0; t < e.length; t++) {\n var n = e[t];\n n && n.parentNode && n.parentNode.removeChild(n);\n }\n Bt = Xt = null, Zn = [];\n}\nfunction Jv() {\n console.log(\"bodyTrap ----------\"), console.log(Zn.length);\n for (var e = [Bt, Xt], t = 0; t < e.length; t++) {\n var n = e[t], r = n || {};\n console.log(r.nodeName, r.className, r.id);\n }\n console.log(\"edn bodyTrap ----------\");\n}\nfunction Ku() {\n if (Zn.length === 0) {\n process.env.NODE_ENV !== \"production\" && console.warn(\"React-Modal: Open instances > 0 expected\");\n return;\n }\n Zn[Zn.length - 1].focusContent();\n}\nfunction eg(e, t) {\n !Bt && !Xt && (Bt = document.createElement(\"div\"), Bt.setAttribute(\"data-react-modal-body-trap\", \"\"), Bt.style.position = \"absolute\", Bt.style.opacity = \"0\", Bt.setAttribute(\"tabindex\", \"0\"), Bt.addEventListener(\"focus\", Ku), Xt = Bt.cloneNode(), Xt.addEventListener(\"focus\", Ku)), Zn = t, Zn.length > 0 ? (document.body.firstChild !== Bt && document.body.insertBefore(Bt, document.body.firstChild), document.body.lastChild !== Xt && document.body.appendChild(Xt)) : (Bt.parentElement && Bt.parentElement.removeChild(Bt), Xt.parentElement && Xt.parentElement.removeChild(Xt));\n}\nXv.default.subscribe(eg);\n(function(e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n var n = Object.assign || function(X) {\n for (var ie = 1; ie < arguments.length; ie++) {\n var Ee = arguments[ie];\n for (var $ in Ee)\n Object.prototype.hasOwnProperty.call(Ee, $) && (X[$] = Ee[$]);\n }\n return X;\n }, r = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(X) {\n return typeof X;\n } : function(X) {\n return X && typeof Symbol == \"function\" && X.constructor === Symbol && X !== Symbol.prototype ? \"symbol\" : typeof X;\n }, i = function() {\n function X(ie, Ee) {\n for (var $ = 0; $ < Ee.length; $++) {\n var xe = Ee[$];\n xe.enumerable = xe.enumerable || !1, xe.configurable = !0, \"value\" in xe && (xe.writable = !0), Object.defineProperty(ie, xe.key, xe);\n }\n }\n return function(ie, Ee, $) {\n return Ee && X(ie.prototype, Ee), $ && X(ie, $), ie;\n };\n }(), a = vn, o = kl, l = B(o), d = en, c = j(d), m = xv, f = B(m), b = tn, x = j(b), P = xr, I = j(P), D = Qt, L = B(D), M = Cr, F = B(M);\n function j(X) {\n if (X && X.__esModule)\n return X;\n var ie = {};\n if (X != null)\n for (var Ee in X)\n Object.prototype.hasOwnProperty.call(X, Ee) && (ie[Ee] = X[Ee]);\n return ie.default = X, ie;\n }\n function B(X) {\n return X && X.__esModule ? X : { default: X };\n }\n function Q(X, ie) {\n if (!(X instanceof ie))\n throw new TypeError(\"Cannot call a class as a function\");\n }\n function we(X, ie) {\n if (!X)\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return ie && (typeof ie == \"object\" || typeof ie == \"function\") ? ie : X;\n }\n function ce(X, ie) {\n if (typeof ie != \"function\" && ie !== null)\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof ie);\n X.prototype = Object.create(ie && ie.prototype, { constructor: { value: X, enumerable: !1, writable: !0, configurable: !0 } }), ie && (Object.setPrototypeOf ? Object.setPrototypeOf(X, ie) : X.__proto__ = ie);\n }\n var se = {\n overlay: \"ReactModal__Overlay\",\n content: \"ReactModal__Content\"\n }, Ve = function(ie) {\n return ie.code === \"Tab\" || ie.keyCode === 9;\n }, st = function(ie) {\n return ie.code === \"Escape\" || ie.keyCode === 27;\n }, it = 0, dt = function(X) {\n ce(ie, X);\n function ie(Ee) {\n Q(this, ie);\n var $ = we(this, (ie.__proto__ || Object.getPrototypeOf(ie)).call(this, Ee));\n return $.setOverlayRef = function(xe) {\n $.overlay = xe, $.props.overlayRef && $.props.overlayRef(xe);\n }, $.setContentRef = function(xe) {\n $.content = xe, $.props.contentRef && $.props.contentRef(xe);\n }, $.afterClose = function() {\n var xe = $.props, ft = xe.appElement, U = xe.ariaHideApp, q = xe.htmlOpenClassName, Ce = xe.bodyOpenClassName, De = xe.parentSelector, Me = De && De().ownerDocument || document;\n Ce && I.remove(Me.body, Ce), q && I.remove(Me.getElementsByTagName(\"html\")[0], q), U && it > 0 && (it -= 1, it === 0 && x.show(ft)), $.props.shouldFocusAfterRender && ($.props.shouldReturnFocusAfterClose ? (c.returnFocus($.props.preventScroll), c.teardownScopedFocus()) : c.popWithoutFocus()), $.props.onAfterClose && $.props.onAfterClose(), F.default.deregister($);\n }, $.open = function() {\n $.beforeOpen(), $.state.afterOpen && $.state.beforeClose ? (clearTimeout($.closeTimer), $.setState({ beforeClose: !1 })) : ($.props.shouldFocusAfterRender && (c.setupScopedFocus($.node), c.markForFocusLater()), $.setState({ isOpen: !0 }, function() {\n $.openAnimationFrame = requestAnimationFrame(function() {\n $.setState({ afterOpen: !0 }), $.props.isOpen && $.props.onAfterOpen && $.props.onAfterOpen({\n overlayEl: $.overlay,\n contentEl: $.content\n });\n });\n }));\n }, $.close = function() {\n $.props.closeTimeoutMS > 0 ? $.closeWithTimeout() : $.closeWithoutTimeout();\n }, $.focusContent = function() {\n return $.content && !$.contentHasFocus() && $.content.focus({ preventScroll: !0 });\n }, $.closeWithTimeout = function() {\n var xe = Date.now() + $.props.closeTimeoutMS;\n $.setState({ beforeClose: !0, closesAt: xe }, function() {\n $.closeTimer = setTimeout($.closeWithoutTimeout, $.state.closesAt - Date.now());\n });\n }, $.closeWithoutTimeout = function() {\n $.setState({\n beforeClose: !1,\n isOpen: !1,\n afterOpen: !1,\n closesAt: null\n }, $.afterClose);\n }, $.handleKeyDown = function(xe) {\n Ve(xe) && (0, f.default)($.content, xe), $.props.shouldCloseOnEsc && st(xe) && (xe.stopPropagation(), $.requestClose(xe));\n }, $.handleOverlayOnClick = function(xe) {\n $.shouldClose === null && ($.shouldClose = !0), $.shouldClose && $.props.shouldCloseOnOverlayClick && ($.ownerHandlesClose() ? $.requestClose(xe) : $.focusContent()), $.shouldClose = null;\n }, $.handleContentOnMouseUp = function() {\n $.shouldClose = !1;\n }, $.handleOverlayOnMouseDown = function(xe) {\n !$.props.shouldCloseOnOverlayClick && xe.target == $.overlay && xe.preventDefault();\n }, $.handleContentOnClick = function() {\n $.shouldClose = !1;\n }, $.handleContentOnMouseDown = function() {\n $.shouldClose = !1;\n }, $.requestClose = function(xe) {\n return $.ownerHandlesClose() && $.props.onRequestClose(xe);\n }, $.ownerHandlesClose = function() {\n return $.props.onRequestClose;\n }, $.shouldBeClosed = function() {\n return !$.state.isOpen && !$.state.beforeClose;\n }, $.contentHasFocus = function() {\n return document.activeElement === $.content || $.content.contains(document.activeElement);\n }, $.buildClassName = function(xe, ft) {\n var U = (typeof ft > \"u\" ? \"undefined\" : r(ft)) === \"object\" ? ft : {\n base: se[xe],\n afterOpen: se[xe] + \"--after-open\",\n beforeClose: se[xe] + \"--before-close\"\n }, q = U.base;\n return $.state.afterOpen && (q = q + \" \" + U.afterOpen), $.state.beforeClose && (q = q + \" \" + U.beforeClose), typeof ft == \"string\" && ft ? q + \" \" + ft : q;\n }, $.attributesFromObject = function(xe, ft) {\n return Object.keys(ft).reduce(function(U, q) {\n return U[xe + \"-\" + q] = ft[q], U;\n }, {});\n }, $.state = {\n afterOpen: !1,\n beforeClose: !1\n }, $.shouldClose = null, $.moveFromContentToOverlay = null, $;\n }\n return i(ie, [{\n key: \"componentDidMount\",\n value: function() {\n this.props.isOpen && this.open();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function($, xe) {\n process.env.NODE_ENV !== \"production\" && ($.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: \"bodyOpenClassName\" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), $.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: \"htmlOpenClassName\" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !$.isOpen ? this.open() : !this.props.isOpen && $.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !xe.isOpen && this.focusContent();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function() {\n this.state.isOpen && this.afterClose(), clearTimeout(this.closeTimer), cancelAnimationFrame(this.openAnimationFrame);\n }\n }, {\n key: \"beforeOpen\",\n value: function() {\n var $ = this.props, xe = $.appElement, ft = $.ariaHideApp, U = $.htmlOpenClassName, q = $.bodyOpenClassName, Ce = $.parentSelector, De = Ce && Ce().ownerDocument || document;\n q && I.add(De.body, q), U && I.add(De.getElementsByTagName(\"html\")[0], U), ft && (it += 1, x.hide(xe)), F.default.register(this);\n }\n // Don't steal focus from inner elements\n }, {\n key: \"render\",\n value: function() {\n var $ = this.props, xe = $.id, ft = $.className, U = $.overlayClassName, q = $.defaultStyles, Ce = $.children, De = ft ? {} : q.content, Me = U ? {} : q.overlay;\n if (this.shouldBeClosed())\n return null;\n var Qe = {\n ref: this.setOverlayRef,\n className: this.buildClassName(\"overlay\", U),\n style: n({}, Me, this.props.style.overlay),\n onClick: this.handleOverlayOnClick,\n onMouseDown: this.handleOverlayOnMouseDown\n }, Fe = n({\n id: xe,\n ref: this.setContentRef,\n style: n({}, De, this.props.style.content),\n className: this.buildClassName(\"content\", ft),\n tabIndex: \"-1\",\n onKeyDown: this.handleKeyDown,\n onMouseDown: this.handleContentOnMouseDown,\n onMouseUp: this.handleContentOnMouseUp,\n onClick: this.handleContentOnClick,\n role: this.props.role,\n \"aria-label\": this.props.contentLabel\n }, this.attributesFromObject(\"aria\", n({ modal: !0 }, this.props.aria)), this.attributesFromObject(\"data\", this.props.data || {}), {\n \"data-testid\": this.props.testId\n }), We = this.props.contentElement(Fe, Ce);\n return this.props.overlayElement(Qe, We);\n }\n }]), ie;\n }(a.Component);\n dt.defaultProps = {\n style: {\n overlay: {},\n content: {}\n },\n defaultStyles: {}\n }, dt.propTypes = {\n isOpen: l.default.bool.isRequired,\n defaultStyles: l.default.shape({\n content: l.default.object,\n overlay: l.default.object\n }),\n style: l.default.shape({\n content: l.default.object,\n overlay: l.default.object\n }),\n className: l.default.oneOfType([l.default.string, l.default.object]),\n overlayClassName: l.default.oneOfType([l.default.string, l.default.object]),\n parentSelector: l.default.func,\n bodyOpenClassName: l.default.string,\n htmlOpenClassName: l.default.string,\n ariaHideApp: l.default.bool,\n appElement: l.default.oneOfType([l.default.instanceOf(L.default), l.default.instanceOf(D.SafeHTMLCollection), l.default.instanceOf(D.SafeNodeList), l.default.arrayOf(l.default.instanceOf(L.default))]),\n onAfterOpen: l.default.func,\n onAfterClose: l.default.func,\n onRequestClose: l.default.func,\n closeTimeoutMS: l.default.number,\n shouldFocusAfterRender: l.default.bool,\n shouldCloseOnOverlayClick: l.default.bool,\n shouldReturnFocusAfterClose: l.default.bool,\n preventScroll: l.default.bool,\n role: l.default.string,\n contentLabel: l.default.string,\n aria: l.default.object,\n data: l.default.object,\n children: l.default.node,\n shouldCloseOnEsc: l.default.bool,\n overlayRef: l.default.func,\n contentRef: l.default.func,\n id: l.default.string,\n overlayElement: l.default.func,\n contentElement: l.default.func,\n testId: l.default.string\n }, t.default = dt, e.exports = t.default;\n})(Ys, Ys.exports);\nvar tg = Ys.exports;\nfunction ed() {\n var e = this.constructor.getDerivedStateFromProps(this.props, this.state);\n e != null && this.setState(e);\n}\nfunction td(e) {\n function t(n) {\n var r = this.constructor.getDerivedStateFromProps(e, n);\n return r ?? null;\n }\n this.setState(t.bind(this));\n}\nfunction nd(e, t) {\n try {\n var n = this.props, r = this.state;\n this.props = e, this.state = t, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n n,\n r\n );\n } finally {\n this.props = n, this.state = r;\n }\n}\ned.__suppressDeprecationWarning = !0;\ntd.__suppressDeprecationWarning = !0;\nnd.__suppressDeprecationWarning = !0;\nfunction ng(e) {\n var t = e.prototype;\n if (!t || !t.isReactComponent)\n throw new Error(\"Can only polyfill class components\");\n if (typeof e.getDerivedStateFromProps != \"function\" && typeof t.getSnapshotBeforeUpdate != \"function\")\n return e;\n var n = null, r = null, i = null;\n if (typeof t.componentWillMount == \"function\" ? n = \"componentWillMount\" : typeof t.UNSAFE_componentWillMount == \"function\" && (n = \"UNSAFE_componentWillMount\"), typeof t.componentWillReceiveProps == \"function\" ? r = \"componentWillReceiveProps\" : typeof t.UNSAFE_componentWillReceiveProps == \"function\" && (r = \"UNSAFE_componentWillReceiveProps\"), typeof t.componentWillUpdate == \"function\" ? i = \"componentWillUpdate\" : typeof t.UNSAFE_componentWillUpdate == \"function\" && (i = \"UNSAFE_componentWillUpdate\"), n !== null || r !== null || i !== null) {\n var a = e.displayName || e.name, o = typeof e.getDerivedStateFromProps == \"function\" ? \"getDerivedStateFromProps()\" : \"getSnapshotBeforeUpdate()\";\n throw Error(\n `Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n` + a + \" uses \" + o + \" but also contains the following legacy lifecycles:\" + (n !== null ? `\n ` + n : \"\") + (r !== null ? `\n ` + r : \"\") + (i !== null ? `\n ` + i : \"\") + `\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks`\n );\n }\n if (typeof e.getDerivedStateFromProps == \"function\" && (t.componentWillMount = ed, t.componentWillReceiveProps = td), typeof t.getSnapshotBeforeUpdate == \"function\") {\n if (typeof t.componentDidUpdate != \"function\")\n throw new Error(\n \"Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype\"\n );\n t.componentWillUpdate = nd;\n var l = t.componentDidUpdate;\n t.componentDidUpdate = function(c, m, f) {\n var b = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : f;\n l.call(this, c, m, b);\n };\n }\n return e;\n}\nconst rg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n polyfill: ng\n}, Symbol.toStringTag, { value: \"Module\" })), ig = /* @__PURE__ */ Th(rg);\nObject.defineProperty(er, \"__esModule\", {\n value: !0\n});\ner.bodyOpenClassName = er.portalClassName = void 0;\nvar Xu = Object.assign || function(e) {\n for (var t = 1; t < arguments.length; t++) {\n var n = arguments[t];\n for (var r in n)\n Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);\n }\n return e;\n}, og = function() {\n function e(t, n) {\n for (var r = 0; r < n.length; r++) {\n var i = n[r];\n i.enumerable = i.enumerable || !1, i.configurable = !0, \"value\" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);\n }\n }\n return function(t, n, r) {\n return n && e(t.prototype, n), r && e(t, r), t;\n };\n}(), rd = vn, Go = di(rd), ag = Wp, jo = di(ag), sg = kl, Ze = di(sg), lg = tg, Zu = di(lg), ug = tn, cg = dg(ug), Tn = Qt, Qu = di(Tn), fg = ig;\nfunction dg(e) {\n if (e && e.__esModule)\n return e;\n var t = {};\n if (e != null)\n for (var n in e)\n Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);\n return t.default = e, t;\n}\nfunction di(e) {\n return e && e.__esModule ? e : { default: e };\n}\nfunction pg(e, t) {\n if (!(e instanceof t))\n throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction Ju(e, t) {\n if (!e)\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return t && (typeof t == \"object\" || typeof t == \"function\") ? t : e;\n}\nfunction mg(e, t) {\n if (typeof t != \"function\" && t !== null)\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof t);\n e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);\n}\nvar hg = er.portalClassName = \"ReactModalPortal\", vg = er.bodyOpenClassName = \"ReactModal__Body--open\", jn = Tn.canUseDOM && jo.default.createPortal !== void 0, Qs = function(t) {\n return document.createElement(t);\n}, ec = function() {\n return jn ? jo.default.createPortal : jo.default.unstable_renderSubtreeIntoContainer;\n};\nfunction Ro(e) {\n return e();\n}\nvar Rr = function(e) {\n mg(t, e);\n function t() {\n var n, r, i, a;\n pg(this, t);\n for (var o = arguments.length, l = Array(o), d = 0; d < o; d++)\n l[d] = arguments[d];\n return a = (r = (i = Ju(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(l))), i), i.removePortal = function() {\n !jn && jo.default.unmountComponentAtNode(i.node);\n var c = Ro(i.props.parentSelector);\n c && c.contains(i.node) ? c.removeChild(i.node) : console.warn('React-Modal: \"parentSelector\" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.');\n }, i.portalRef = function(c) {\n i.portal = c;\n }, i.renderPortal = function(c) {\n var m = ec(), f = m(i, Go.default.createElement(Zu.default, Xu({ defaultStyles: t.defaultStyles }, c)), i.node);\n i.portalRef(f);\n }, r), Ju(i, a);\n }\n return og(t, [{\n key: \"componentDidMount\",\n value: function() {\n if (Tn.canUseDOM) {\n jn || (this.node = Qs(\"div\")), this.node.className = this.props.portalClassName;\n var r = Ro(this.props.parentSelector);\n r.appendChild(this.node), !jn && this.renderPortal(this.props);\n }\n }\n }, {\n key: \"getSnapshotBeforeUpdate\",\n value: function(r) {\n var i = Ro(r.parentSelector), a = Ro(this.props.parentSelector);\n return { prevParent: i, nextParent: a };\n }\n }, {\n key: \"componentDidUpdate\",\n value: function(r, i, a) {\n if (Tn.canUseDOM) {\n var o = this.props, l = o.isOpen, d = o.portalClassName;\n r.portalClassName !== d && (this.node.className = d);\n var c = a.prevParent, m = a.nextParent;\n m !== c && (c.removeChild(this.node), m.appendChild(this.node)), !(!r.isOpen && !l) && !jn && this.renderPortal(this.props);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function() {\n if (!(!Tn.canUseDOM || !this.node || !this.portal)) {\n var r = this.portal.state, i = Date.now(), a = r.isOpen && this.props.closeTimeoutMS && (r.closesAt || i + this.props.closeTimeoutMS);\n a ? (r.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, a - i)) : this.removePortal();\n }\n }\n }, {\n key: \"render\",\n value: function() {\n if (!Tn.canUseDOM || !jn)\n return null;\n !this.node && jn && (this.node = Qs(\"div\"));\n var r = ec();\n return r(Go.default.createElement(Zu.default, Xu({\n ref: this.portalRef,\n defaultStyles: t.defaultStyles\n }, this.props)), this.node);\n }\n }], [{\n key: \"setAppElement\",\n value: function(r) {\n cg.setElement(r);\n }\n /* eslint-disable react/no-unused-prop-types */\n /* eslint-enable react/no-unused-prop-types */\n }]), t;\n}(rd.Component);\nRr.propTypes = {\n isOpen: Ze.default.bool.isRequired,\n style: Ze.default.shape({\n content: Ze.default.object,\n overlay: Ze.default.object\n }),\n portalClassName: Ze.default.string,\n bodyOpenClassName: Ze.default.string,\n htmlOpenClassName: Ze.default.string,\n className: Ze.default.oneOfType([Ze.default.string, Ze.default.shape({\n base: Ze.default.string.isRequired,\n afterOpen: Ze.default.string.isRequired,\n beforeClose: Ze.default.string.isRequired\n })]),\n overlayClassName: Ze.default.oneOfType([Ze.default.string, Ze.default.shape({\n base: Ze.default.string.isRequired,\n afterOpen: Ze.default.string.isRequired,\n beforeClose: Ze.default.string.isRequired\n })]),\n appElement: Ze.default.oneOfType([Ze.default.instanceOf(Qu.default), Ze.default.instanceOf(Tn.SafeHTMLCollection), Ze.default.instanceOf(Tn.SafeNodeList), Ze.default.arrayOf(Ze.default.instanceOf(Qu.default))]),\n onAfterOpen: Ze.default.func,\n onRequestClose: Ze.default.func,\n closeTimeoutMS: Ze.default.number,\n ariaHideApp: Ze.default.bool,\n shouldFocusAfterRender: Ze.default.bool,\n shouldCloseOnOverlayClick: Ze.default.bool,\n shouldReturnFocusAfterClose: Ze.default.bool,\n preventScroll: Ze.default.bool,\n parentSelector: Ze.default.func,\n aria: Ze.default.object,\n data: Ze.default.object,\n role: Ze.default.string,\n contentLabel: Ze.default.string,\n shouldCloseOnEsc: Ze.default.bool,\n overlayRef: Ze.default.func,\n contentRef: Ze.default.func,\n id: Ze.default.string,\n overlayElement: Ze.default.func,\n contentElement: Ze.default.func\n};\nRr.defaultProps = {\n isOpen: !1,\n portalClassName: hg,\n bodyOpenClassName: vg,\n role: \"dialog\",\n ariaHideApp: !0,\n closeTimeoutMS: 0,\n shouldFocusAfterRender: !0,\n shouldCloseOnEsc: !0,\n shouldCloseOnOverlayClick: !0,\n shouldReturnFocusAfterClose: !0,\n preventScroll: !1,\n parentSelector: function() {\n return document.body;\n },\n overlayElement: function(t, n) {\n return Go.default.createElement(\n \"div\",\n t,\n n\n );\n },\n contentElement: function(t, n) {\n return Go.default.createElement(\n \"div\",\n t,\n n\n );\n }\n};\nRr.defaultStyles = {\n overlay: {\n position: \"fixed\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: \"rgba(255, 255, 255, 0.75)\"\n },\n content: {\n position: \"absolute\",\n top: \"40px\",\n left: \"40px\",\n right: \"40px\",\n bottom: \"40px\",\n border: \"1px solid #ccc\",\n background: \"#fff\",\n overflow: \"auto\",\n WebkitOverflowScrolling: \"touch\",\n borderRadius: \"4px\",\n outline: \"none\",\n padding: \"20px\"\n }\n};\n(0, fg.polyfill)(Rr);\nprocess.env.NODE_ENV !== \"production\" && (Rr.setCreateHTMLElement = function(e) {\n return Qs = e;\n});\ner.default = Rr;\n(function(e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n var n = er, r = i(n);\n function i(a) {\n return a && a.__esModule ? a : { default: a };\n }\n t.default = r.default, e.exports = t.default;\n})(qs, qs.exports);\nvar gg = qs.exports;\nconst oa = /* @__PURE__ */ jf(gg);\nvar yg = {\n prefix: \"fal\",\n iconName: \"bars\",\n icon: [448, 512, [\"navicon\"], \"f0c9\", \"M0 80c0-8.8 7.2-16 16-16H432c8.8 0 16 7.2 16 16s-7.2 16-16 16H16C7.2 96 0 88.8 0 80zM0 240c0-8.8 7.2-16 16-16H432c8.8 0 16 7.2 16 16s-7.2 16-16 16H16c-8.8 0-16-7.2-16-16zM448 400c0 8.8-7.2 16-16 16H16c-8.8 0-16-7.2-16-16s7.2-16 16-16H432c8.8 0 16 7.2 16 16z\"]\n}, bg = {\n prefix: \"fal\",\n iconName: \"arrow-right-from-bracket\",\n icon: [512, 512, [\"sign-out\"], \"f08b\", \"M507.3 267.3c6.2-6.2 6.2-16.4 0-22.6l-128-128c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L457.4 240 176 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l281.4 0L356.7 372.7c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l128-128zM176 64c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 32C35.8 32 0 67.8 0 112L0 400c0 44.2 35.8 80 80 80l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-96 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l96 0z\"]\n}, wg = bg, xg = {\n prefix: \"fal\",\n iconName: \"chevron-up\",\n icon: [512, 512, [], \"f077\", \"M244.7 116.7c6.2-6.2 16.4-6.2 22.6 0l192 192c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L256 150.6 75.3 331.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l192-192z\"]\n}, Cg = {\n prefix: \"fal\",\n iconName: \"filter\",\n icon: [512, 512, [], \"f0b0\", \"M0 71.5C0 49.7 17.7 32 39.5 32H472.5C494.3 32 512 49.7 512 71.5c0 9.2-3.2 18.1-9.1 25.2L320 317.8V446.1c0 18.7-15.2 33.9-33.9 33.9c-7.5 0-14.8-2.5-20.8-7.1l-61-47.4c-7.8-6.1-12.4-15.4-12.4-25.3V317.8L9.1 96.7C3.2 89.6 0 80.7 0 71.5zM39.5 64c-4.2 0-7.5 3.4-7.5 7.5c0 1.8 .6 3.4 1.7 4.8L220.3 301.8c2.4 2.9 3.7 6.5 3.7 10.2v88.2l61 47.4c.3 .3 .7 .4 1.1 .4c1 0 1.9-.8 1.9-1.9V312c0-3.7 1.3-7.3 3.7-10.2L478.3 76.3c1.1-1.3 1.7-3 1.7-4.8c0-4.2-3.4-7.5-7.5-7.5H39.5z\"]\n}, Rg = {\n prefix: \"fal\",\n iconName: \"circle-question\",\n icon: [512, 512, [62108, \"question-circle\"], \"f059\", \"M480 256A224 224 0 1 0 32 256a224 224 0 1 0 448 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm168.7-86.2c6.5-24.6 28.7-41.8 54.2-41.8H280c35.5 0 64 29 64 64.3c0 24-13.4 46.2-34.9 57.2L272 268.3V288c0 8.8-7.2 16-16 16s-16-7.2-16-16V258.5c0-6 3.4-11.5 8.7-14.3l45.8-23.4c10.7-5.4 17.5-16.6 17.5-28.7c0-17.8-14.4-32.3-32-32.3H222.9c-10.9 0-20.5 7.4-23.2 17.9l-.2 .7c-2.2 8.5-11 13.7-19.5 11.4s-13.7-11-11.4-19.5l.2-.7zM232 352a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z\"]\n}, Sg = Rg, Pg = {\n prefix: \"fal\",\n iconName: \"angle-down\",\n icon: [448, 512, [8964], \"f107\", \"M212.7 331.3c6.2 6.2 16.4 6.2 22.6 0l160-160c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4 75.3 148.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l160 160z\"]\n}, Tg = {\n prefix: \"fal\",\n iconName: \"chevron-down\",\n icon: [512, 512, [], \"f078\", \"M267.3 395.3c-6.2 6.2-16.4 6.2-22.6 0l-192-192c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L256 361.4 436.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-192 192z\"]\n}, Ag = {\n prefix: \"fal\",\n iconName: \"xmark\",\n icon: [384, 512, [128473, 10005, 10006, 10060, 215, \"close\", \"multiply\", \"remove\", \"times\"], \"f00d\", \"M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256 347.1 123.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.5 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6 324.5 411.1z\"]\n}, Fl = Ag;\nlet mn = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, n) => (n &= 63, n < 36 ? t += n.toString(36) : n < 62 ? t += (n - 26).toString(36).toUpperCase() : n > 62 ? t += \"-\" : t += \"_\", t), \"\");\nfunction Eg({\n children: e,\n className: t,\n overlayClassName: n,\n title: r,\n isOpen: i,\n onAfterClose: a,\n onAfterOpen: o,\n onRequestClose: l,\n shouldCloseOnEsc: d = !0,\n shouldCloseOnOverlayClick: c = !0,\n showCloseButton: m = !0,\n size: f = \"auto\",\n testId: b\n}) {\n const x = Ot(() => mn(), []);\n function P(F) {\n F.preventDefault(), l();\n }\n const I = [`cui-modal size-${f}`];\n m && I.push(\"has-close-button\"), t && I.push(t);\n const D = I.join(\" \");\n let L = \"cui-modal-overlay\";\n n && (L = `${L} ${n}`);\n const M = b ? `${b}-button` : void 0;\n return /* @__PURE__ */ Oe(\n oa,\n {\n className: D,\n overlayClassName: L,\n closeTimeoutMS: 200,\n htmlOpenClassName: \"cui-modal__html-open\",\n bodyOpenClassName: \"cui-modal__body-open\",\n isOpen: i,\n onAfterOpen: o,\n onAfterClose: a,\n onRequestClose: l,\n shouldCloseOnEsc: d,\n shouldCloseOnOverlayClick: c,\n aria: { labelledby: r ? x : void 0 },\n testId: b,\n children: [\n (r || m) && /* @__PURE__ */ Oe(\"div\", { className: \"cui-modal-header-internal\", children: [\n r && /* @__PURE__ */ T(\"h2\", { id: x, children: r }),\n m && /* @__PURE__ */ T(\n \"button\",\n {\n type: \"button\",\n onClick: P,\n \"aria-label\": \"Close popup modal\",\n \"data-testid\": M,\n children: /* @__PURE__ */ T(mt, { icon: Fl })\n }\n )\n ] }),\n e\n ]\n }\n );\n}\nfunction Og(e) {\n oa.setAppElement(e);\n}\nEg.setAppElement = Og;\nfunction Y2({\n children: e,\n className: t,\n testId: n\n}) {\n let r = \"cui-modal-header\";\n return t && (r += ` ${t}`), /* @__PURE__ */ T(\"div\", { className: r, \"data-testid\": n, children: e });\n}\nfunction K2({\n children: e,\n className: t,\n testId: n\n}) {\n let r = \"cui-modal-content\";\n return t && (r += ` ${t}`), /* @__PURE__ */ T(\"div\", { className: r, \"data-testid\": n, children: e });\n}\nfunction X2({\n children: e,\n className: t,\n testId: n\n}) {\n let r = \"cui-modal-actions\";\n return t && (r = `${r} ${t}`), /* @__PURE__ */ T(\"div\", { className: r, \"data-testid\": n, children: e });\n}\nfunction Z2({\n children: e,\n className: t,\n testId: n\n}) {\n let r = \"cui-modal-footer\";\n return t && (r = `${r} ${t}`), /* @__PURE__ */ T(\"div\", { className: r, \"data-testid\": n, children: e });\n}\nfunction Bl({\n children: e,\n className: t,\n overlayClassName: n,\n title: r,\n isOpen: i,\n onAfterClose: a,\n onAfterOpen: o,\n onRequestClose: l,\n shouldCloseOnEsc: d = !0,\n shouldCloseOnOverlayClick: c = !0,\n showCloseButton: m = !0,\n testId: f,\n anchorSide: b = \"right\",\n size: x = \"small\"\n}) {\n const P = Ot(() => mn(), []);\n function I(j) {\n j.preventDefault(), l();\n }\n const D = [`cui-drawer ${x} side-${b}`];\n t && D.push(t);\n const L = D.join(\" \");\n let M = \"cui-drawer-overlay\";\n n && (M = `${M} ${n}`);\n const F = f ? `${f}-button` : void 0;\n return /* @__PURE__ */ Oe(\n oa,\n {\n className: L,\n overlayClassName: M,\n closeTimeoutMS: 200,\n htmlOpenClassName: \"cui-drawer__html-open\",\n bodyOpenClassName: \"cui-drawer__body-open\",\n isOpen: i,\n onAfterOpen: o,\n onAfterClose: a,\n onRequestClose: l,\n shouldCloseOnEsc: d,\n shouldCloseOnOverlayClick: c,\n aria: { labelledby: r ? P : void 0 },\n testId: f,\n children: [\n (r || m) && /* @__PURE__ */ Oe(\"div\", { className: \"cui-drawer-header-internal\", children: [\n r && /* @__PURE__ */ T(\"h2\", { id: P, children: r }),\n m && /* @__PURE__ */ T(\n \"button\",\n {\n type: \"button\",\n onClick: I,\n \"aria-label\": \"Close popup modal\",\n \"data-testid\": F,\n children: /* @__PURE__ */ T(mt, { icon: Fl })\n }\n )\n ] }),\n e\n ]\n }\n );\n}\nfunction kg(e) {\n oa.setAppElement(e);\n}\nBl.setAppElement = kg;\nfunction id({\n children: e,\n className: t,\n testId: n\n}) {\n let r = \"cui-drawer-actions\";\n return t && (r = `${r} ${t}`), /* @__PURE__ */ T(\"div\", { className: r, \"data-testid\": n, children: e });\n}\nfunction od({\n children: e,\n className: t,\n testId: n\n}) {\n let r = \"cui-drawer-content\";\n return t && (r += ` ${t}`), /* @__PURE__ */ T(\"div\", { className: r, \"data-testid\": n, children: e });\n}\nconst Ig = {\n close: Yf,\n check: ov\n};\nfunction Mg({\n className: e,\n isDismissible: t,\n dismissButtonVariant: n = \"close\",\n onDismissRequested: r,\n text: i,\n title: a,\n variant: o = \"outline\",\n color: l,\n size: d = \"small\",\n testId: c\n}) {\n const m = [\"cui-badge\"];\n o && m.push(o), e && m.push(e);\n function f(M) {\n M.preventDefault(), r && r();\n }\n let b = {};\n l && (m.push(`is-color ${l}`), b = {\n \"--color\": `var(--${l})`,\n \"--color-10\": `var(--${l}-10)`,\n \"--color-10-border\": `var(--${l}-10-border)`,\n \"--color-30\": `var(--${l}-30)`,\n \"--color-45\": `var(--${l}-45)`,\n \"--color-55\": `var(--${l}-55)`,\n \"--color-65\": `var(--${l}-65)`,\n \"--color-75\": `var(--${l}-75)`,\n \"--color-90\": `var(--${l}-90)`\n }), t && m.push(\"is-dismissible\"), d && m.push(d);\n const x = `${a}:`, P = m.join(\" \"), I = c ? `${c}-title` : void 0, D = c ? `${c}-label` : void 0, L = c ? `${c}-button` : void 0;\n return /* @__PURE__ */ Oe(\"div\", { className: P, \"data-testid\": c, style: b, children: [\n a && /* @__PURE__ */ T(\"span\", { \"data-testid\": I, className: \"title\", children: x }),\n /* @__PURE__ */ T(\"span\", { \"data-testid\": D, className: \"text\", children: i }),\n t && /* @__PURE__ */ T(\n \"button\",\n {\n onClick: f,\n \"data-testid\": L,\n \"aria-label\": `${n} badge`,\n children: /* @__PURE__ */ T(\n mt,\n {\n icon: Ig[n]\n }\n )\n }\n )\n ] });\n}\nfunction Q2({\n text: e = \"Non-Production System\",\n size: t = \"medium\",\n testId: n\n}) {\n const r = [\"cui-environment-indicator\"];\n t && r.push(t);\n const i = r.join(\" \");\n return /* @__PURE__ */ T(\"div\", { className: i, \"data-testid\": n, children: e });\n}\nconst Fg = [\"cui-avatar\"];\nfunction Bg(e, t, n) {\n return e.includes(t) || e.push(t), n && e.push(n), e.join(\" \");\n}\nfunction Dl({\n className: e,\n testId: t,\n children: n\n}) {\n const r = Bg(Fg, \"cui-avatar-svg\", e);\n return /* @__PURE__ */ T(\"div\", { className: r, \"data-testid\": t, children: /* @__PURE__ */ T(\n \"svg\",\n {\n className: \"svgIcon\",\n viewBox: \"0 0 100 100\",\n preserveAspectRatio: \"xMidYMid meet\",\n xmlns: \"http://www.w3.org/2000/svg\",\n \"aria-labelledby\": \"svg-description\",\n children: n\n }\n ) });\n}\nfunction Dg() {\n return /* @__PURE__ */ T(mt, { icon: rv, className: \"text-color\" });\n}\nfunction Ng(e) {\n const { className: t, testId: n } = e;\n return /* @__PURE__ */ T(Dl, { className: t, testId: n, children: /* @__PURE__ */ Oe(Qo, { children: [\n /* @__PURE__ */ T(\"desc\", { id: \"svg-description\", \"data-testid\": `${n}-icon`, children: \"Showing anonymous icon\" }),\n /* @__PURE__ */ T(Dg, {})\n ] }) });\n}\nfunction Lg(e) {\n return e.src !== void 0;\n}\nfunction $g(e) {\n const { className: t, testId: n, src: r, alt: i } = e;\n return /* @__PURE__ */ T(Dl, { className: t, testId: n, children: /* @__PURE__ */ Oe(Qo, { children: [\n /* @__PURE__ */ T(\"desc\", { id: \"svg-description\", children: `Photo of ${i}` }),\n /* @__PURE__ */ T(\"defs\", { children: /* @__PURE__ */ T(\"clipPath\", { id: \"avatarCircle\", children: /* @__PURE__ */ T(\"circle\", { cx: \"50\", cy: \"50\", r: \"50\", fill: \"#FFF\" }) }) }),\n /* @__PURE__ */ T(\n \"image\",\n {\n \"data-testid\": `${n}-image`,\n width: \"100\",\n height: \"100\",\n href: r,\n style: { clipPath: \"url(#avatarCircle)\" }\n }\n )\n ] }) });\n}\nfunction _g(e) {\n return e.initials !== void 0;\n}\nfunction Vg(e) {\n const { className: t, testId: n, alt: r, initials: i } = e;\n return /* @__PURE__ */ T(Dl, { className: t, testId: n, children: /* @__PURE__ */ Oe(Qo, { children: [\n /* @__PURE__ */ T(\"desc\", { id: \"svg-description\", children: `Initials of ${r}` }),\n /* @__PURE__ */ T(\"circle\", { cx: \"50\", cy: \"50\", r: \"50\", className: \"text-background\" }),\n /* @__PURE__ */ T(\n \"text\",\n {\n \"data-testid\": `${n}-text`,\n x: \"50%\",\n y: \"56%\",\n className: \"text\",\n textAnchor: \"middle\",\n alignmentBaseline: \"middle\",\n children: i\n }\n )\n ] }) });\n}\nfunction Gg(e) {\n return Lg(e) ? $g(e) : _g(e) ? Vg(e) : Ng(e);\n}\nconst jg = {\n danger: {\n icon: uv,\n statusText: \"Error:\"\n },\n success: {\n icon: Xh,\n statusText: \"Success:\"\n },\n caution: {\n icon: sv,\n statusText: \"Warning:\"\n },\n info: {\n icon: ev,\n statusText: \"\"\n }\n};\nfunction zg({\n onRequestDismiss: e,\n className: t,\n message: n,\n severity: r,\n title: i,\n icon: a,\n testId: o\n}) {\n const l = Vt(() => {\n e && e();\n }, [e]);\n let d = \"cui-alert\";\n const { icon: c, statusText: m } = r ? jg[r] : { icon: void 0, statusText: void 0 };\n let f;\n r && (t += ` is-color ${r}`, f = {\n \"--color\": `var(--${r})`,\n \"--color-10\": `var(--${r}-10)`,\n \"--color-10-border\": `var(--${r}-10-border)`,\n \"--color-30\": `var(--${r}-30)`,\n \"--color-45\": `var(--${r}-45)`,\n \"--color-55\": `var(--${r}-55)`,\n \"--color-75\": `var(--${r}-75)`,\n \"--color-90\": `var(--${r}-90)`\n }), t && (d += ` ${t}`);\n const b = i || m, x = a || (c ? /* @__PURE__ */ T(mt, { icon: c }) : null), P = o || \"alert\", I = `${P}-dismiss-button`, D = `${P}-title`, L = `${P}-message`, M = `${P}-icon`;\n return /* @__PURE__ */ Oe(\"div\", { className: d, role: \"alert\", style: f, \"data-testid\": P, children: [\n x && /* @__PURE__ */ T(\"span\", { className: \"icon\", \"data-testid\": M, children: x }),\n /* @__PURE__ */ Oe(\"div\", { className: \"content\", children: [\n /* @__PURE__ */ T(\"span\", { className: \"title\", \"data-testid\": D, children: b }),\n \" \",\n /* @__PURE__ */ T(\"span\", { className: \"message\", \"data-testid\": L, children: n })\n ] }),\n e && /* @__PURE__ */ T(\n \"button\",\n {\n \"data-testid\": I,\n className: \"dismiss-button\",\n onClick: l,\n onKeyDown: l,\n children: /* @__PURE__ */ T(mt, { icon: Yf })\n }\n )\n ] });\n}\nfunction J2({\n className: e,\n text: t,\n variant: n = \"outline\",\n color: r,\n size: i = \"small\",\n testId: a\n}) {\n const o = [\"cui-pill\"];\n n && o.push(n), e && o.push(e);\n let l = {};\n r && (o.push(`is-color ${r}`), l = {\n \"--color\": `var(--${r})`,\n \"--color-10\": `var(--${r}-10)`,\n \"--color-10-border\": `var(--${r}-10-border)`,\n \"--color-30\": `var(--${r}-30)`,\n \"--color-45\": `var(--${r}-45)`,\n \"--color-55\": `var(--${r}-55)`,\n \"--color-65\": `var(--${r}-65)`,\n \"--color-75\": `var(--${r}-75)`,\n \"--color-90\": `var(--${r}-90)`\n }), i && o.push(i);\n const d = o.join(\" \"), c = a ? `${a}-label` : void 0;\n return /* @__PURE__ */ T(\"div\", { className: d, \"data-testid\": a, style: l, children: /* @__PURE__ */ T(\"span\", { \"data-testid\": c, children: t }) });\n}\nfunction ex({ className: e }) {\n return /* @__PURE__ */ T(\n \"svg\",\n {\n className: e,\n viewBox: \"0 0 325.60923 176.28444\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ Oe(\"g\", { transform: \"translate(-48.646408,-39.355557)\", id: \"g274\", children: [\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 226.29,126.95 c 5.14,0 8.33,2.98 7.21,7.87 -1.26,5.52 -6.12,7.93 -10.82,7.93 -4.7,0 -8.46,-2.41 -7.2,-7.93 1.12,-4.89 5.67,-7.87 10.81,-7.87 m -20.05,51.96 7.69,-33.69 h 16.37 l -7.69,33.69 z\",\n fillRule: \"evenodd\",\n id: \"path142\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 162.9,178.91 12.54,-51.59 h 16.06 l -12.24,51.59 H 162.9\",\n id: \"path144\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 78.83,144.14 -1.9,8.31 h 1.71 c 3.05,0 6.46,-0.51 7.34,-4.38 0.85,-3.74 -2.65,-3.93 -5.51,-3.93 h -1.64 m -24.69,34.77 10.93,-47.84 h 22.02 c 11.17,0 18.11,5.71 15.4,17.57 -2.23,9.77 -9.71,15.86 -19.42,15.86 H 74.19 L 70.9,178.9 H 54.14 Z\",\n fillRule: \"evenodd\",\n id: \"path146\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 98.67,178.91 11.75,-51.46 h 16.37 l -3.25,14.21 -2.89,9.33 h 0.25 c 3.87,-3.62 7.65,-6.53 12.34,-6.53 8.37,0 9.91,6.34 8.21,13.77 l -4.72,20.68 h -15.99 l 3.97,-17.39 c 0.41,-1.78 0.66,-4 -1.69,-4 -2.54,0 -3.54,1.9 -4.02,4 l -3.97,17.39 H 98.67\",\n id: \"path148\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 161.03,126.95 c 5.14,0 8.33,2.98 7.21,7.87 -1.26,5.52 -6.12,7.93 -10.82,7.93 -4.7,0 -8.46,-2.41 -7.2,-7.93 1.11,-4.89 5.66,-7.87 10.81,-7.87 m -20.06,51.96 7.69,-33.69 h 16.37 l -7.69,33.69 z\",\n fillRule: \"evenodd\",\n id: \"path150\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 184.92,178.91 11.75,-51.46 h 16.37 l -11.75,51.46 h -16.37\",\n id: \"path152\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 268.22,175.6 6.05,-10.05 0.81,0.63 c 1.83,1.38 4.53,3.08 7.13,3.08 a 2.62,2.62 0 0 0 2.63,-1.82 c 0.39,-1.82 -1.43,-1.88 -2.62,-2.07 -4.92,-0.75 -9.16,-2.95 -7.82,-9.23 1.79,-8.35 10.42,-11.68 17.14,-11.68 3.89,0 8.56,0.81 11.55,2.82 l -5.7,9.23 a 9.772,9.772 0 0 0 -6.43,-2.76 c -0.94,0 -2.25,0.31 -2.51,1.51 -0.35,1.63 1.28,1.76 3.32,2.13 5.23,0.94 9.22,2.95 7.78,9.67 -1.86,8.66 -10.71,12.24 -17.8,12.24 a 29.976,29.976 0 0 1 -13.53,-3.7\",\n id: \"path154\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 250.52,145.22 -1.68,5.32 h 0.49 a 14.667,14.667 0 0 1 11.59,-6.08 c 9.19,0 11.66,8.87 9.79,17.29 -1.76,7.92 -8.78,17.86 -17.73,17.86 -3.58,0 -7.43,-2.09 -8.49,-5.38 h -0.43 l -0.46,5.38 -5.71,24.01 h -15.92 l 13.35,-58.4 h 15.2 m 1.4,12.03 c -2.65,0 -4.58,2.28 -5.13,4.75 -0.56,2.53 0.35,4.81 3,4.81 2.47,0 4.73,-2.66 5.23,-4.94 0.52,-2.34 -0.7,-4.62 -3.1,-4.62 z\",\n fillRule: \"evenodd\",\n id: \"path156\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 176.65,122.07 4.22,-17.45 c 0.4,-1.78 0.66,-4 -1.69,-4 -2.54,0 -3.54,1.9 -4.02,4 L 171.19,122 h -16.37 l 11.75,-49.4 h 16.37 l -3.25,12.15 -2.89,9.33 h 0.25 c 3.87,-3.62 7.65,-6.53 12.34,-6.53 8.38,0 9.91,6.34 8.21,13.77 l -4.91,20.75 z\",\n id: \"path158\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 214.86,100.96 h 6.93 c 0.47,-2.29 -0.59,-4.39 -2.71,-4.39 -2.23,0.01 -3.73,2.04 -4.22,4.39 m 20.03,7 h -21.46 c -0.56,2.73 -0.79,5.78 2.3,5.78 a 4.061,4.061 0 0 0 3.55,-2.8 h 14.37 c -3.62,8.14 -12.58,11.89 -19.56,11.89 -9.56,0 -17.19,-5.47 -14.8,-17.1 2.3,-11.19 11.52,-18.18 21.19,-18.18 10.82,0 17.76,7.76 14.41,20.41 z\",\n fillRule: \"evenodd\",\n id: \"path160\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 317.54,100.17 c -2.29,0 -4.27,2.19 -4.79,4.87 -0.51,2.62 0.82,4.56 2.95,4.56 2.13,0 4.22,-1.94 4.73,-4.56 0.53,-2.69 -0.59,-4.87 -2.89,-4.87 M 320,87.55 c 9.34,0 15.99,6.12 13.72,17.74 a 20.81,20.81 0 0 1 -20.49,16.92 c -8.86,0 -16.03,-5.93 -13.88,-16.92 2.27,-11.62 11.31,-17.74 20.65,-17.74 z\",\n fillRule: \"evenodd\",\n id: \"path162\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 160.71,75.66 -4.13,17.65 a 11.442,11.442 0 0 0 -8.85,-4.68 c -4.93,0 -9.85,4.14 -10.97,9.36 -1.14,5.28 2.25,9.36 7.18,9.36 a 14.887,14.887 0 0 0 10.23,-3.74 l -4.18,17.24 c -2.93,1.34 -9.18,1.91 -12.13,1.91 -12.92,0 -20.72,-10.63 -17.77,-24.32 3.02,-14.01 15.83,-25.21 29.11,-25.21 a 34.518,34.518 0 0 1 11.51,2.43\",\n id: \"path164\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 236.63,88.31 h 15.11 l 0.64,15.88 h 0.38 l 1.52,-4.11 5.32,-11.77 h 15.11 l -19.22,33.59 h -12.77 l -6.09,-33.59\",\n id: \"path166\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 302.53,88.05 -3.29,13.88 c -1.39,-1.02 -1.58,-1.85 -3.55,-1.85 -3.99,0 -6.56,2.55 -7.45,6.76 l -3.54,15.37 h -15.36 l 7.22,-33.9 h 15.36 l -1.32,4.53 h 0.36 c 3.68,-4.46 6.42,-4.92 11.57,-4.79\",\n id: \"path168\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 355.28,88.32 -1.78,5.43 h 0.36 c 3.83,-3.7 6.67,-6.19 11.7,-6.19 7.99,0 9.77,6.32 8.15,13.79 l -4.52,20.87 h -15.62 l 3.58,-16.53 c 0.43,-1.98 1.04,-4.79 -1.63,-4.79 -2.6,0 -3.21,2.81 -3.64,4.79 l -3.58,16.53 h -15.62 l 7.34,-33.9 h 15.26\",\n fillRule: \"evenodd\",\n id: \"path170\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 196.67,82.07 c 68.7,-19.75 108.27,-23.87 121.71,-24.8 27.38,-1.89 20.69,10.78 -16.12,28.6 0,0 76.61,-41.55 -105.59,-3.8 z\",\n fill: \"#ef3e33\",\n id: \"path172\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 196.67,82.07 c 68.7,-19.75 108.27,-23.87 121.71,-24.8 27.38,-1.89 20.69,10.78 -16.12,28.6 0,0 76.61,-41.55 -105.59,-3.8 z\",\n fill: \"#f5333f\",\n stroke: \"#f5333f\",\n strokeMiterlimit: \"3.864\",\n strokeWidth: \"0.058\",\n id: \"path174\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"M 80.64,79.73 C 191.6,47.83 255.5,41.19 277.21,39.69 c 26.3,-1.82 33.14,4.68 21.85,16.31 l -23,3.64 c -6.6,-8.89 -49.9,-10.06 -195.42,20.09 z\",\n fill: \"#000f9f\",\n stroke: \"#000f9f\",\n strokeMiterlimit: \"3.864\",\n strokeWidth: \"0.058\",\n id: \"path176\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"M 80.64,79.73 C 191.6,47.83 255.5,41.19 277.21,39.69 c 26.3,-1.82 33.14,4.68 21.85,16.31 l -23,3.64 c -6.6,-8.89 -49.9,-10.06 -195.42,20.09 z\",\n fill: \"none\",\n stroke: \"#004fa3\",\n strokeMiterlimit: \"3.864\",\n strokeWidth: \"0.062\",\n id: \"path178\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 278.27,71.38 c -7.46,4.51 -16.5,9.37 -27.09,14.5 0,0 12.06,-6.54 19.7,-13.69 z\",\n fill: \"#004fa3\",\n id: \"path180\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 278.27,71.38 c -7.46,4.51 -16.5,9.37 -27.09,14.5 0,0 12.06,-6.54 19.7,-13.69 z\",\n fill: \"#000f9f\",\n stroke: \"#000f9f\",\n strokeMiterlimit: \"3.864\",\n strokeWidth: \"0.058\",\n id: \"path182\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 68.72,193.62 a 3.733,3.733 0 0 0 -3.36,-1.77 c -4.27,0 -6.56,4.72 -7.44,8.06 -0.93,3.55 -1.07,8.06 3.04,8.06 a 7.834,7.834 0 0 0 4.86,-1.93 l -2.72,8.51 a 13.611,13.611 0 0 1 -5.25,1.09 c -6.73,0 -11.11,-5.12 -8.38,-15.52 3.58,-13.63 13.54,-15.93 17.53,-15.93 a 9.8,9.8 0 0 1 4,0.73 z\",\n id: \"path184\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 79.27,215.11 3.24,-12.34 H 78.6 l -3.24,12.34 h -8.23 l 8,-30.4 h 8.23 L 80.5,195.6 h 3.91 l 2.86,-10.89 h 8.23 l -7.99,30.4 z\",\n id: \"path186\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 99.56,184.71 h 15.28 l -1.89,7.18 h -7.06 l -1.11,4.23 h 6.33 l -1.89,7.18 h -6.33 l -1.22,4.64 h 7.06 l -1.89,7.18 H 91.57 Z\",\n id: \"path188\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"M 132.57,215.11 136.83,196 h -0.08 c -0.95,2.22 -1.81,4.43 -2.8,6.65 l -5.61,12.46 h -6.69 L 123.81,196 h -0.08 c -0.63,2.26 -1.18,4.47 -1.89,6.73 l -3.94,12.38 h -8.83 l 11.54,-30.4 h 10.24 l -1.91,16.17 h 0.08 c 0.74,-1.9 1.43,-3.75 2.29,-5.64 l 4.74,-10.52 h 10.12 l -5.05,30.4 h -8.55 z\",\n id: \"path190\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 143.33,215.11 8,-30.4 h 8.23 l -8,30.4 z\",\n id: \"path192\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 177.89,193.62 a 3.733,3.733 0 0 0 -3.36,-1.77 c -4.27,0 -6.56,4.72 -7.44,8.06 -0.93,3.55 -1.07,8.06 3.04,8.06 a 7.834,7.834 0 0 0 4.86,-1.93 l -2.72,8.51 a 13.611,13.611 0 0 1 -5.25,1.09 c -6.73,0 -11.11,-5.12 -8.38,-15.52 3.58,-13.63 13.54,-15.93 17.53,-15.93 a 9.8,9.8 0 0 1 4,0.73 z\",\n id: \"path194\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 189.5,215.11 0.42,-3.91 h -5.52 l -1.71,3.91 h -8.47 l 15.29,-30.4 h 10.04 l -1.54,30.4 z m 1.15,-10.36 0.97,-7.05 c 0.26,-1.9 0.6,-3.83 0.9,-5.73 h -0.08 c -0.74,1.9 -1.45,3.83 -2.27,5.73 l -2.98,7.05 z\",\n id: \"path196\"\n }\n ),\n /* @__PURE__ */ T(\n \"path\",\n {\n d: \"m 199.9,215.11 8,-30.4 h 8.23 l -6.11,23.22 h 6.17 l -1.89,7.18 z\",\n id: \"path198\"\n }\n )\n ] })\n }\n );\n}\nfunction ad({\n className: e,\n errorMessageId: t,\n inputType: n,\n isDisabled: r = !1,\n isInvalid: i = !1,\n isReadOnly: a = !1,\n isRequired: o = !1,\n leftIcon: l,\n showLeftIcon: d = !1,\n onChange: c,\n onPressEnter: m,\n placeholder: f,\n value: b,\n testId: x,\n allowLastpassIntegration: P = !1,\n descriptionId: I\n}) {\n function D(Q) {\n c && c(Q.currentTarget.value);\n }\n function L(Q) {\n Q.key === \"Enter\" && m && m();\n }\n const M = [\"cui-boxed-input\"];\n l && M.push(\"has-left-icon\"), d && M.push(\"show-left-icon\"), e && M.push(e), P || M.push(\"hide-lastpass\");\n const F = M.join(\" \"), j = x ? `${x}-icon` : void 0, B = x ? `${x}-input` : void 0;\n return /* @__PURE__ */ Oe(\"div\", { className: F, \"data-testid\": x, children: [\n /* @__PURE__ */ T(\n \"input\",\n {\n onKeyUp: L,\n disabled: r,\n required: o,\n type: n,\n onChange: D,\n placeholder: f,\n readOnly: a,\n value: b,\n \"aria-invalid\": i,\n \"aria-errormessage\": t,\n \"data-testid\": B,\n \"aria-describedby\": I\n }\n ),\n l && /* @__PURE__ */ T(\"div\", { className: \"left-icon\", \"data-testid\": j, children: l })\n ] });\n}\nfunction Hg({\n onChange: e,\n placeholder: t,\n value: n,\n isDisabled: r = !1,\n isReadOnly: i = !1,\n isRequired: a = !1,\n isInvalid: o = !1,\n isResizable: l = !1,\n rows: d = 3,\n errorMessage: c,\n errorMessageId: m,\n testId: f,\n descriptionId: b\n}) {\n c && (o = !0);\n function x(M) {\n M.preventDefault(), e(M.target.value);\n }\n const P = [\"cui-boxed-input\"];\n l && P.push(\"isResizable\");\n const I = P.join(\" \"), D = f ? `${f}-textarea` : void 0, L = Wg(l);\n return /* @__PURE__ */ T(\"div\", { className: I, \"data-testid\": f, children: /* @__PURE__ */ T(\n \"textarea\",\n {\n style: L,\n rows: d,\n disabled: r,\n required: a,\n placeholder: t,\n readOnly: i,\n value: n,\n \"data-testid\": D,\n onChange: x,\n \"aria-invalid\": o,\n \"aria-errormessage\": m,\n \"aria-describedby\": b\n }\n ) });\n}\nfunction Wg(e) {\n return e ? {\n resize: \"both\"\n } : {\n resize: \"none\",\n height: \"\",\n width: \"\"\n };\n}\nfunction Ug({\n value: e,\n testId: t,\n isMultiline: n,\n ...r\n}) {\n return n ? /* @__PURE__ */ T(Hg, { value: e, ...r, testId: t }) : /* @__PURE__ */ T(ad, { inputType: \"text\", value: e, ...r, testId: t });\n}\nfunction Nl({\n className: e,\n isInline: t = !1,\n isDisabled: n = !1,\n isHidden: r = !1,\n isRequired: i = !1,\n text: a,\n testId: o\n}) {\n const l = [\"cui-label\"];\n n && l.push(\"isDisabled\"), i && l.push(\"isRequired\"), t && l.push(\"isInline\"), r && l.push(\"isHidden\"), e && l.push(e);\n const d = l.join(\" \");\n return /* @__PURE__ */ T(\"div\", { className: d, \"data-testid\": o, children: a });\n}\nfunction qg({\n className: e,\n children: t,\n disableHover: n,\n leftIcon: r,\n rightIcon: i,\n testId: a,\n persistOpenMenu: o,\n onClick: l,\n handleCloseMenu: d\n}) {\n let c = \"cui-menu-item\";\n e && (c += ` ${e}`), n && (c += \" disable-hover\");\n function m() {\n l && l(), o || d();\n }\n return /* @__PURE__ */ Oe(\n \"div\",\n {\n className: c,\n onClick: m,\n role: \"presentation\",\n \"data-testid\": a,\n children: [\n r && /* @__PURE__ */ T(\"span\", { className: \"icon left\", children: r }),\n t,\n i && /* @__PURE__ */ T(\"span\", { className: \"icon right\", children: i })\n ]\n }\n );\n}\nfunction Yg({ ref: e, callback: t }) {\n Wt(() => {\n function n(i) {\n e.current && !e.current.contains(i.target) && t();\n }\n function r(i) {\n i.key === \"Escape\" && t();\n }\n return document.addEventListener(\"mousedown\", n), document.addEventListener(\"keydown\", r), () => {\n document.removeEventListener(\"mousedown\", n), document.removeEventListener(\"keydown\", r);\n };\n }, [e]);\n}\nfunction Ll({\n className: e,\n baseElement: t,\n testId: n,\n menuItems: r,\n disableActiveStyles: i\n}) {\n const [a, o] = jt(!1), l = Nt(null);\n Yg({ ref: l, callback: f });\n let d = \"content\", c = \"base\";\n e && (d += ` ${e}`), a && (d += \" is-active\", c += \" is-active\"), i && (c += \" disable-active-styles\");\n function m() {\n o(!a);\n }\n function f() {\n o(!1);\n }\n function b(I) {\n I.key === \"Escape\" && o(!1), I.key === \"Enter\" && o(!0);\n }\n const x = n ? `${n}-base` : void 0, P = n ? `${n}-content` : void 0;\n return /* @__PURE__ */ Oe(\"div\", { className: \"cui-menu\", ref: l, \"data-testid\": n, children: [\n /* @__PURE__ */ T(\n \"div\",\n {\n className: c,\n onClick: m,\n role: \"button\",\n tabIndex: 0,\n onKeyDown: b,\n \"data-testid\": x,\n children: t\n }\n ),\n /* @__PURE__ */ T(\"div\", { className: d, \"data-testid\": P, children: r && r.map(\n ({ key: I, content: D, isActive: L = !0, ...M }) => L ? /* @__PURE__ */ T(\n qg,\n {\n handleCloseMenu: f,\n ...M,\n children: D\n },\n I\n ) : null\n ) })\n ] });\n}\nconst Js = \"_\";\nfunction Kg({\n className: e,\n errorMessageId: t,\n isDisabled: n = !1,\n isInvalid: r = !1,\n isRequired: i = !1,\n options: a,\n onChange: o,\n value: l,\n testId: d,\n descriptionId: c\n}) {\n const [m, f] = jt(!1);\n function b() {\n f(!0);\n }\n function x() {\n f(!1);\n }\n function P(j) {\n o && o(j.currentTarget.value);\n }\n const I = [];\n (typeof l > \"u\" || l === null) && I.push(Qg(d));\n const D = d ? `${d}-options` : void 0;\n a.map((j) => {\n Xg(j) ? I.push(Zg(j, D)) : I.push(sd(j, D));\n });\n const L = [\"cui-boxed-input cui-select\"];\n Jg(l) && L.push(\"isUnselected\"), m && L.push(\"isActive\"), r && L.push(\"isInvalid\"), n && L.push(\"isDisabled\"), e && L.push(e);\n const M = L.join(\" \"), F = d ? `${d}-control` : void 0;\n return /* @__PURE__ */ T(\"div\", { className: M, \"data-testid\": d, children: /* @__PURE__ */ T(\n \"select\",\n {\n onBlur: x,\n onFocus: b,\n disabled: n,\n onChange: P,\n required: i,\n value: l ?? Js,\n \"aria-invalid\": r,\n \"aria-errormessage\": t,\n \"data-testid\": F,\n \"aria-describedby\": c,\n children: I\n }\n ) });\n}\nfunction Xg(e) {\n return e.options !== void 0;\n}\nfunction Zg(e, t) {\n const { key: n, label: r, options: i, isDisabled: a } = e, o = t ? `${t}-${n}` : void 0, l = i.map((d) => sd(d, o));\n return /* @__PURE__ */ T(\n \"optgroup\",\n {\n label: r,\n disabled: a,\n \"data-testid\": o,\n children: l\n },\n n\n );\n}\nfunction sd(e, t) {\n const { text: n, key: r, value: i, isDisabled: a } = e, o = t ? `${t}-${r}` : void 0;\n return /* @__PURE__ */ T(\n \"option\",\n {\n value: i,\n disabled: a,\n \"data-testid\": o,\n children: n\n },\n r\n );\n}\nfunction Qg(e) {\n const t = e ? `${e}-placeholder` : void 0;\n return /* @__PURE__ */ T(\n \"option\",\n {\n disabled: !0,\n hidden: !0,\n value: Js,\n \"data-testid\": t,\n children: \"Select an option\"\n },\n Js\n );\n}\nfunction Jg(e) {\n return typeof e > \"u\" || e === null;\n}\nfunction ey({\n className: e,\n size: t = \"medium\",\n testId: n\n}) {\n const r = n ? `${n}-solid-circle-svg-spinner` : void 0;\n return /* @__PURE__ */ T(\n \"svg\",\n {\n width: \"24\",\n height: \"24\",\n stroke: \"currentColor\",\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n className: `${e} ${t}`,\n \"aria-label\": \"circular loading spinner\",\n \"data-testid\": r,\n children: /* @__PURE__ */ Oe(\"g\", { children: [\n /* @__PURE__ */ Oe(\n \"circle\",\n {\n cx: \"12\",\n cy: \"12\",\n r: \"9.5\",\n fill: \"none\",\n strokeWidth: \"3\",\n strokeLinecap: \"round\",\n children: [\n /* @__PURE__ */ T(\n \"animate\",\n {\n attributeName: \"stroke-dasharray\",\n dur: \"1.5s\",\n calcMode: \"spline\",\n values: \"0 150;42 150;42 150;42 150\",\n keyTimes: \"0;0.475;0.95;1\",\n keySplines: \"0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1\",\n repeatCount: \"indefinite\"\n }\n ),\n /* @__PURE__ */ T(\n \"animate\",\n {\n attributeName: \"stroke-dashoffset\",\n dur: \"1.5s\",\n calcMode: \"spline\",\n values: \"0;-16;-59;-59\",\n keyTimes: \"0;0.475;0.95;1\",\n keySplines: \"0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1\",\n repeatCount: \"indefinite\"\n }\n )\n ]\n }\n ),\n /* @__PURE__ */ T(\n \"animateTransform\",\n {\n attributeName: \"transform\",\n type: \"rotate\",\n dur: \"2s\",\n values: \"0 12 12;360 12 12\",\n repeatCount: \"indefinite\"\n }\n )\n ] })\n }\n );\n}\nconst ty = {\n \"circle-solid\": ey\n};\nfunction tx({\n className: e = \"\",\n size: t = \"medium\",\n testId: n\n}) {\n const r = \"circle-solid\";\n let i = \"cui-spinner\";\n return e && (i += ` ${e}`), ty[r]({\n className: i,\n size: t,\n testId: n\n });\n}\nconst ld = Kt({\n theme: null,\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n setTheme: () => {\n },\n supportedThemes: []\n});\nfunction ny() {\n return wt(ld);\n}\nconst ud = \"cui-theme\";\nfunction ry() {\n return window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"light\";\n}\nfunction iy() {\n return localStorage.getItem(ud);\n}\nfunction oy(e) {\n localStorage.setItem(ud, e);\n}\nconst ay = \"theme\", gs = \"dark\";\nfunction sy(e) {\n const t = document.documentElement;\n t.setAttribute(ay, e.name), e.dark ? (t.setAttribute(gs, gs), t.style.setProperty(\"color-scheme\", \"dark\")) : (t.removeAttribute(gs), t.style.setProperty(\"color-scheme\", \"light\"));\n}\nconst ly = [\n {\n name: \"light\"\n },\n {\n name: \"dark\",\n dark: !0\n }\n];\nfunction nx({\n children: e,\n defaultTheme: t = null,\n supportedThemes: n = ly\n}) {\n const [r, i] = jt(t);\n Wt(() => {\n const o = uy(n, t);\n o && i(o.name);\n }, []), Wt(() => {\n if (r !== null) {\n const o = Yr(n, r);\n o && sy(o);\n }\n }, [r, n]);\n function a(o, l = !0) {\n Yr(n, o) && (l && oy(o), i(o));\n }\n return /* @__PURE__ */ T(\n ld.Provider,\n {\n value: {\n theme: r,\n setTheme: a,\n supportedThemes: n\n },\n children: e\n }\n );\n}\nfunction uy(e, t) {\n let n;\n return n = Yr(e, iy()), n || (n = Yr(e, t), n) || (n = Yr(e, ry()), n) ? n : e.length ? e[0] : null;\n}\nfunction Yr(e, t) {\n return t ? e.find((n) => n.name === t) : null;\n}\nconst cy = {\n top: [\n \"top\",\n \"bottom\",\n \"topRight\",\n \"topLeft\",\n \"bottomRight\",\n \"bottomLeft\",\n \"right\",\n \"left\"\n ],\n topLeft: [\n \"topLeft\",\n \"bottomLeft\",\n \"top\",\n \"topRight\",\n \"bottomRight\",\n \"bottom\",\n \"right\",\n \"left\"\n ],\n topRight: [\n \"topRight\",\n \"bottomRight\",\n \"top\",\n \"topLeft\",\n \"bottomLeft\",\n \"bottom\",\n \"right\",\n \"left\"\n ],\n bottom: [\n \"bottom\",\n \"top\",\n \"bottomRight\",\n \"bottomLeft\",\n \"topRight\",\n \"topLeft\",\n \"right\",\n \"left\"\n ],\n bottomLeft: [\n \"bottomLeft\",\n \"topLeft\",\n \"bottom\",\n \"bottomRight\",\n \"topRight\",\n \"top\",\n \"right\",\n \"left\"\n ],\n bottomRight: [\n \"bottomRight\",\n \"topRight\",\n \"bottom\",\n \"bottomLeft\",\n \"topLeft\",\n \"top\",\n \"right\",\n \"left\"\n ],\n left: [\n \"left\",\n \"right\",\n \"bottom\",\n \"top\",\n \"bottomLeft\",\n \"topLeft\",\n \"bottomRight\",\n \"topRight\"\n ],\n right: [\n \"right\",\n \"left\",\n \"bottom\",\n \"top\",\n \"bottomRight\",\n \"topRight\",\n \"bottomLeft\",\n \"topLeft\"\n ]\n};\nfunction fy({\n maxHeight: e,\n maxWidth: t,\n viewHeight: n,\n viewWidth: r,\n wrapperWidth: i,\n top: a,\n bottom: o,\n left: l,\n right: d\n}) {\n const c = [], x = e / 2, P = t / 2, I = i / 2, D = a - e - 8, L = n - (o + e + 8), M = a - x + 8, F = n - (o + x - 8), j = l - 10, B = d + 10, Q = l - (P - I), we = r - (d - I + P + 25), ce = d - t, se = r - (l + t + 10), Ve = l - t - 25, st = r - (d + t + 25);\n function it(dt, X, ie) {\n return dt > 8 && X > 8 && ie > 8;\n }\n return it(D, we, Q) && c.push(\"top\"), it(D, se, j) && c.push(\"topLeft\"), it(D, ce, B) && c.push(\"topRight\"), it(L, we, Q) && c.push(\"bottom\"), it(L, se, j) && c.push(\"bottomLeft\"), it(L, ce, B) && c.push(\"bottomRight\"), it(\n Ve,\n M,\n F\n ) && c.push(\"left\"), it(\n st,\n M,\n F\n ) && c.push(\"right\"), c;\n}\nfunction dy({\n className: e,\n content: t,\n side: n = \"bottomLeft\",\n enterDelay: r = \"zero\",\n leaveDelay: i = \"medium\",\n isAutoPositioning: a = !0,\n children: o,\n variant: l = \"default\",\n testId: d\n}) {\n const c = Nt(null), m = Ot(() => mn(), []), [f, b] = jt(n), x = d ? `${d}-tooltip` : void 0, P = d ? `${d}-tooltip-wrapper` : void 0;\n function I(B) {\n const Q = c.current;\n if (Q) {\n const we = Q.clientHeight, ce = Q.clientWidth, se = Math.max(\n document.documentElement.clientHeight,\n window.innerHeight\n ), Ve = Math.max(\n document.documentElement.clientWidth,\n window.innerWidth\n ), st = fy({\n maxHeight: we,\n maxWidth: ce,\n viewHeight: se,\n viewWidth: Ve,\n wrapperWidth: B.width,\n top: B.top,\n bottom: B.bottom,\n left: B.left,\n right: B.right\n });\n if (st.includes(n))\n b(n);\n else if (n) {\n const X = cy[n].filter(\n (ie) => st.includes(ie)\n )[0];\n b(X);\n }\n }\n }\n const D = (B) => {\n const Q = B.currentTarget;\n if (Q !== null && a) {\n const we = Q.getBoundingClientRect();\n I(we);\n }\n };\n let L = {};\n const M = {\n zero: 0,\n medium: 300,\n long: 500\n };\n L = {\n \"--enter-delay\": `${M[r]}ms`,\n \"--exit-delay\": `${M[i]}ms`\n };\n const [F, j] = py(e, f, l);\n return Wt(() => {\n b(n);\n }, [n]), /* @__PURE__ */ Oe(\n \"div\",\n {\n className: \"cui-tooltip-wrapper\",\n style: L,\n \"data-testid\": P,\n onMouseEnter: D,\n \"aria-describedby\": m,\n children: [\n o,\n /* @__PURE__ */ T(\"div\", { className: j, role: \"tooltip\", children: /* @__PURE__ */ T(\n \"span\",\n {\n ref: c,\n className: F,\n id: m,\n \"data-testid\": x,\n children: t\n }\n ) })\n ]\n }\n );\n}\nfunction py(e, t, n) {\n const r = [\"cui-tooltip\"];\n let i = \"\", a = \"\";\n const o = [\"cui-tooltip-positioning\"];\n return e && r.push(e), t && (r.push(t), o.push(t)), n && r.push(n), i = r.join(\" \"), a = o.join(\" \"), [i, a];\n}\nvar my = {\n prefix: \"far\",\n iconName: \"chevron-up\",\n icon: [512, 512, [], \"f077\", \"M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z\"]\n}, hy = {\n prefix: \"far\",\n iconName: \"circle-check\",\n icon: [512, 512, [61533, \"check-circle\"], \"f058\", \"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z\"]\n}, vy = hy, gy = {\n prefix: \"far\",\n iconName: \"circle-info\",\n icon: [512, 512, [\"info-circle\"], \"f05a\", \"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z\"]\n}, yy = gy, by = {\n prefix: \"far\",\n iconName: \"magnifying-glass\",\n icon: [512, 512, [128269, \"search\"], \"f002\", \"M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z\"]\n}, wy = by, xy = {\n prefix: \"far\",\n iconName: \"chevron-down\",\n icon: [512, 512, [], \"f078\", \"M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z\"]\n}, Cy = {\n prefix: \"far\",\n iconName: \"xmark\",\n icon: [384, 512, [128473, 10005, 10006, 10060, 215, \"close\", \"multiply\", \"remove\", \"times\"], \"f00d\", \"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z\"]\n}, cd = Cy, Ry = {\n prefix: \"far\",\n iconName: \"triangle-exclamation\",\n icon: [512, 512, [9888, \"exclamation-triangle\", \"warning\"], \"f071\", \"M248.4 84.3c1.6-2.7 4.5-4.3 7.6-4.3s6 1.6 7.6 4.3L461.9 410c1.4 2.3 2.1 4.9 2.1 7.5c0 8-6.5 14.5-14.5 14.5H62.5c-8 0-14.5-6.5-14.5-14.5c0-2.7 .7-5.3 2.1-7.5L248.4 84.3zm-41-25L9.1 385c-6 9.8-9.1 21-9.1 32.5C0 452 28 480 62.5 480h387c34.5 0 62.5-28 62.5-62.5c0-11.5-3.2-22.7-9.1-32.5L304.6 59.3C294.3 42.4 275.9 32 256 32s-38.3 10.4-48.6 27.3zM288 368a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-184c0-13.3-10.7-24-24-24s-24 10.7-24 24v96c0 13.3 10.7 24 24 24s24-10.7 24-24V184z\"]\n}, Sy = Ry, Py = {\n prefix: \"far\",\n iconName: \"circle-xmark\",\n icon: [512, 512, [61532, \"times-circle\", \"xmark-circle\"], \"f057\", \"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z\"]\n}, Ty = Py;\nconst zo = {\n danger: {\n icon: Ty,\n severityText: \"Danger!\"\n },\n success: {\n icon: vy,\n severityText: \"Success!\"\n },\n caution: {\n icon: Sy,\n severityText: \"Warning!\"\n },\n info: {\n icon: yy,\n severityText: \"Informational!\"\n }\n}, fd = Kt({\n transformPagePoint: (e) => e,\n isStatic: !1,\n reducedMotion: \"never\"\n}), aa = Kt({}), sa = Kt(null), la = typeof document < \"u\", $l = la ? Gp : Wt, dd = Kt({ strict: !1 }), _l = (e) => e.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase(), Ay = \"framerAppearId\", pd = \"data-\" + _l(Ay);\nfunction Ey(e, t, n, r) {\n const { visualElement: i } = wt(aa), a = wt(dd), o = wt(sa), l = wt(fd).reducedMotion, d = Nt();\n r = r || a.renderer, !d.current && r && (d.current = r(e, {\n visualState: t,\n parent: i,\n props: n,\n presenceContext: o,\n blockInitialAnimation: o ? o.initial === !1 : !1,\n reducedMotionConfig: l\n }));\n const c = d.current;\n df(() => {\n c && c.update(n, o);\n });\n const m = Nt(!!(n[pd] && !window.HandoffComplete));\n return $l(() => {\n c && (c.render(), m.current && c.animationState && c.animationState.animateChanges());\n }), Wt(() => {\n c && (c.updateFeatures(), !m.current && c.animationState && c.animationState.animateChanges(), m.current && (m.current = !1, window.HandoffComplete = !0));\n }), c;\n}\nfunction dr(e) {\n return typeof e == \"object\" && Object.prototype.hasOwnProperty.call(e, \"current\");\n}\nfunction Oy(e, t, n) {\n return Vt(\n (r) => {\n r && e.mount && e.mount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == \"function\" ? n(r) : dr(n) && (n.current = r));\n },\n /**\n * Only pass a new ref callback to React if we've received a visual element\n * factory. Otherwise we'll be mounting/remounting every time externalRef\n * or other dependencies change.\n */\n [t]\n );\n}\nfunction ai(e) {\n return typeof e == \"string\" || Array.isArray(e);\n}\nfunction ua(e) {\n return typeof e == \"object\" && typeof e.start == \"function\";\n}\nconst Vl = [\n \"animate\",\n \"whileInView\",\n \"whileFocus\",\n \"whileHover\",\n \"whileTap\",\n \"whileDrag\",\n \"exit\"\n], Gl = [\"initial\", ...Vl];\nfunction ca(e) {\n return ua(e.animate) || Gl.some((t) => ai(e[t]));\n}\nfunction md(e) {\n return !!(ca(e) || e.variants);\n}\nfunction ky(e, t) {\n if (ca(e)) {\n const { initial: n, animate: r } = e;\n return {\n initial: n === !1 || ai(n) ? n : void 0,\n animate: ai(r) ? r : void 0\n };\n }\n return e.inherit !== !1 ? t : {};\n}\nfunction Iy(e) {\n const { initial: t, animate: n } = ky(e, wt(aa));\n return Ot(() => ({ initial: t, animate: n }), [tc(t), tc(n)]);\n}\nfunction tc(e) {\n return Array.isArray(e) ? e.join(\" \") : e;\n}\nconst nc = {\n animation: [\n \"animate\",\n \"variants\",\n \"whileHover\",\n \"whileTap\",\n \"exit\",\n \"whileInView\",\n \"whileFocus\",\n \"whileDrag\"\n ],\n exit: [\"exit\"],\n drag: [\"drag\", \"dragControls\"],\n focus: [\"whileFocus\"],\n hover: [\"whileHover\", \"onHoverStart\", \"onHoverEnd\"],\n tap: [\"whileTap\", \"onTap\", \"onTapStart\", \"onTapCancel\"],\n pan: [\"onPan\", \"onPanStart\", \"onPanSessionStart\", \"onPanEnd\"],\n inView: [\"whileInView\", \"onViewportEnter\", \"onViewportLeave\"],\n layout: [\"layout\", \"layoutId\"]\n}, si = {};\nfor (const e in nc)\n si[e] = {\n isEnabled: (t) => nc[e].some((n) => !!t[n])\n };\nfunction My(e) {\n for (const t in e)\n si[t] = {\n ...si[t],\n ...e[t]\n };\n}\nconst jl = Kt({}), hd = Kt({}), Fy = Symbol.for(\"motionComponentSymbol\");\nfunction By({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {\n e && My(e);\n function a(l, d) {\n let c;\n const m = {\n ...wt(fd),\n ...l,\n layoutId: Dy(l)\n }, { isStatic: f } = m, b = Iy(l), x = r(l, f);\n if (!f && la) {\n b.visualElement = Ey(i, x, m, t);\n const P = wt(hd), I = wt(dd).strict;\n b.visualElement && (c = b.visualElement.loadFeatures(\n // Note: Pass the full new combined props to correctly re-render dynamic feature components.\n m,\n I,\n e,\n P\n ));\n }\n return _t.createElement(\n aa.Provider,\n { value: b },\n c && b.visualElement ? _t.createElement(c, { visualElement: b.visualElement, ...m }) : null,\n n(i, l, Oy(x, b.visualElement, d), x, f, b.visualElement)\n );\n }\n const o = jp(a);\n return o[Fy] = i, o;\n}\nfunction Dy({ layoutId: e }) {\n const t = wt(jl).id;\n return t && e !== void 0 ? t + \"-\" + e : e;\n}\nfunction Ny(e) {\n function t(r, i = {}) {\n return By(e(r, i));\n }\n if (typeof Proxy > \"u\")\n return t;\n const n = /* @__PURE__ */ new Map();\n return new Proxy(t, {\n /**\n * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.\n * The prop name is passed through as `key` and we can use that to generate a `motion`\n * DOM component with that name.\n */\n get: (r, i) => (n.has(i) || n.set(i, t(i)), n.get(i))\n });\n}\nconst Ly = [\n \"animate\",\n \"circle\",\n \"defs\",\n \"desc\",\n \"ellipse\",\n \"g\",\n \"image\",\n \"line\",\n \"filter\",\n \"marker\",\n \"mask\",\n \"metadata\",\n \"path\",\n \"pattern\",\n \"polygon\",\n \"polyline\",\n \"rect\",\n \"stop\",\n \"switch\",\n \"symbol\",\n \"svg\",\n \"text\",\n \"tspan\",\n \"use\",\n \"view\"\n];\nfunction zl(e) {\n return (\n /**\n * If it's not a string, it's a custom React component. Currently we only support\n * HTML custom React components.\n */\n typeof e != \"string\" || /**\n * If it contains a dash, the element is a custom HTML webcomponent.\n */\n e.includes(\"-\") ? !1 : (\n /**\n * If it's in our list of lowercase SVG tags, it's an SVG component\n */\n !!(Ly.indexOf(e) > -1 || /**\n * If it contains a capital letter, it's an SVG component\n */\n /[A-Z]/.test(e))\n )\n );\n}\nconst Ho = {};\nfunction $y(e) {\n Object.assign(Ho, e);\n}\nconst pi = [\n \"transformPerspective\",\n \"x\",\n \"y\",\n \"z\",\n \"translateX\",\n \"translateY\",\n \"translateZ\",\n \"scale\",\n \"scaleX\",\n \"scaleY\",\n \"rotate\",\n \"rotateX\",\n \"rotateY\",\n \"rotateZ\",\n \"skew\",\n \"skewX\",\n \"skewY\"\n], nr = new Set(pi);\nfunction vd(e, { layout: t, layoutId: n }) {\n return nr.has(e) || e.startsWith(\"origin\") || (t || n !== void 0) && (!!Ho[e] || e === \"opacity\");\n}\nconst zt = (e) => !!(e && e.getVelocity), _y = {\n x: \"translateX\",\n y: \"translateY\",\n z: \"translateZ\",\n transformPerspective: \"perspective\"\n}, Vy = pi.length;\nfunction Gy(e, { enableHardwareAcceleration: t = !0, allowTransformNone: n = !0 }, r, i) {\n let a = \"\";\n for (let o = 0; o < Vy; o++) {\n const l = pi[o];\n if (e[l] !== void 0) {\n const d = _y[l] || l;\n a += `${d}(${e[l]}) `;\n }\n }\n return t && !e.z && (a += \"translateZ(0)\"), a = a.trim(), i ? a = i(e, r ? \"\" : a) : n && r && (a = \"none\"), a;\n}\nconst gd = (e) => (t) => typeof t == \"string\" && t.startsWith(e), yd = gd(\"--\"), el = gd(\"var(--\"), jy = /var\\s*\\(\\s*--[\\w-]+(\\s*,\\s*(?:(?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)+)?\\s*\\)/g, zy = (e, t) => t && typeof e == \"number\" ? t.transform(e) : e, Mn = (e, t, n) => Math.min(Math.max(n, e), t), rr = {\n test: (e) => typeof e == \"number\",\n parse: parseFloat,\n transform: (e) => e\n}, Kr = {\n ...rr,\n transform: (e) => Mn(0, 1, e)\n}, So = {\n ...rr,\n default: 1\n}, Xr = (e) => Math.round(e * 1e5) / 1e5, fa = /(-)?([\\d]*\\.?[\\d])+/g, bd = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\\((-?[\\d\\.]+%?[,\\s]+){2}(-?[\\d\\.]+%?)\\s*[\\,\\/]?\\s*[\\d\\.]*%?\\))/gi, Hy = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\\((-?[\\d\\.]+%?[,\\s]+){2}(-?[\\d\\.]+%?)\\s*[\\,\\/]?\\s*[\\d\\.]*%?\\))$/i;\nfunction mi(e) {\n return typeof e == \"string\";\n}\nconst hi = (e) => ({\n test: (t) => mi(t) && t.endsWith(e) && t.split(\" \").length === 1,\n parse: parseFloat,\n transform: (t) => `${t}${e}`\n}), Rn = hi(\"deg\"), an = hi(\"%\"), ze = hi(\"px\"), Wy = hi(\"vh\"), Uy = hi(\"vw\"), rc = {\n ...an,\n parse: (e) => an.parse(e) / 100,\n transform: (e) => an.transform(e * 100)\n}, ic = {\n ...rr,\n transform: Math.round\n}, wd = {\n // Border props\n borderWidth: ze,\n borderTopWidth: ze,\n borderRightWidth: ze,\n borderBottomWidth: ze,\n borderLeftWidth: ze,\n borderRadius: ze,\n radius: ze,\n borderTopLeftRadius: ze,\n borderTopRightRadius: ze,\n borderBottomRightRadius: ze,\n borderBottomLeftRadius: ze,\n // Positioning props\n width: ze,\n maxWidth: ze,\n height: ze,\n maxHeight: ze,\n size: ze,\n top: ze,\n right: ze,\n bottom: ze,\n left: ze,\n // Spacing props\n padding: ze,\n paddingTop: ze,\n paddingRight: ze,\n paddingBottom: ze,\n paddingLeft: ze,\n margin: ze,\n marginTop: ze,\n marginRight: ze,\n marginBottom: ze,\n marginLeft: ze,\n // Transform props\n rotate: Rn,\n rotateX: Rn,\n rotateY: Rn,\n rotateZ: Rn,\n scale: So,\n scaleX: So,\n scaleY: So,\n scaleZ: So,\n skew: Rn,\n skewX: Rn,\n skewY: Rn,\n distance: ze,\n translateX: ze,\n translateY: ze,\n translateZ: ze,\n x: ze,\n y: ze,\n z: ze,\n perspective: ze,\n transformPerspective: ze,\n opacity: Kr,\n originX: rc,\n originY: rc,\n originZ: ze,\n // Misc\n zIndex: ic,\n // SVG\n fillOpacity: Kr,\n strokeOpacity: Kr,\n numOctaves: ic\n};\nfunction Hl(e, t, n, r) {\n const { style: i, vars: a, transform: o, transformOrigin: l } = e;\n let d = !1, c = !1, m = !0;\n for (const f in t) {\n const b = t[f];\n if (yd(f)) {\n a[f] = b;\n continue;\n }\n const x = wd[f], P = zy(b, x);\n if (nr.has(f)) {\n if (d = !0, o[f] = P, !m)\n continue;\n b !== (x.default || 0) && (m = !1);\n } else\n f.startsWith(\"origin\") ? (c = !0, l[f] = P) : i[f] = P;\n }\n if (t.transform || (d || r ? i.transform = Gy(e.transform, n, m, r) : i.transform && (i.transform = \"none\")), c) {\n const { originX: f = \"50%\", originY: b = \"50%\", originZ: x = 0 } = l;\n i.transformOrigin = `${f} ${b} ${x}`;\n }\n}\nconst Wl = () => ({\n style: {},\n transform: {},\n transformOrigin: {},\n vars: {}\n});\nfunction xd(e, t, n) {\n for (const r in t)\n !zt(t[r]) && !vd(r, n) && (e[r] = t[r]);\n}\nfunction qy({ transformTemplate: e }, t, n) {\n return Ot(() => {\n const r = Wl();\n return Hl(r, t, { enableHardwareAcceleration: !n }, e), Object.assign({}, r.vars, r.style);\n }, [t]);\n}\nfunction Yy(e, t, n) {\n const r = e.style || {}, i = {};\n return xd(i, r, e), Object.assign(i, qy(e, t, n)), e.transformValues ? e.transformValues(i) : i;\n}\nfunction Ky(e, t, n) {\n const r = {}, i = Yy(e, t, n);\n return e.drag && e.dragListener !== !1 && (r.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = \"none\", i.touchAction = e.drag === !0 ? \"none\" : `pan-${e.drag === \"x\" ? \"y\" : \"x\"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (r.tabIndex = 0), r.style = i, r;\n}\nconst Xy = /* @__PURE__ */ new Set([\n \"animate\",\n \"exit\",\n \"variants\",\n \"initial\",\n \"style\",\n \"values\",\n \"variants\",\n \"transition\",\n \"transformTemplate\",\n \"transformValues\",\n \"custom\",\n \"inherit\",\n \"onLayoutAnimationStart\",\n \"onLayoutAnimationComplete\",\n \"onLayoutMeasure\",\n \"onBeforeLayoutMeasure\",\n \"onAnimationStart\",\n \"onAnimationComplete\",\n \"onUpdate\",\n \"onDragStart\",\n \"onDrag\",\n \"onDragEnd\",\n \"onMeasureDragConstraints\",\n \"onDirectionLock\",\n \"onDragTransitionEnd\",\n \"_dragX\",\n \"_dragY\",\n \"onHoverStart\",\n \"onHoverEnd\",\n \"onViewportEnter\",\n \"onViewportLeave\",\n \"ignoreStrict\",\n \"viewport\"\n]);\nfunction Wo(e) {\n return e.startsWith(\"while\") || e.startsWith(\"drag\") && e !== \"draggable\" || e.startsWith(\"layout\") || e.startsWith(\"onTap\") || e.startsWith(\"onPan\") || Xy.has(e);\n}\nlet Cd = (e) => !Wo(e);\nfunction Zy(e) {\n e && (Cd = (t) => t.startsWith(\"on\") ? !Wo(t) : e(t));\n}\ntry {\n Zy(require(\"@emotion/is-prop-valid\").default);\n} catch {\n}\nfunction Qy(e, t, n) {\n const r = {};\n for (const i in e)\n i === \"values\" && typeof e.values == \"object\" || (Cd(i) || n === !0 && Wo(i) || !t && !Wo(i) || // If trying to use native HTML drag events, forward drag listeners\n e.draggable && i.startsWith(\"onDrag\")) && (r[i] = e[i]);\n return r;\n}\nfunction oc(e, t, n) {\n return typeof e == \"string\" ? e : ze.transform(t + n * e);\n}\nfunction Jy(e, t, n) {\n const r = oc(t, e.x, e.width), i = oc(n, e.y, e.height);\n return `${r} ${i}`;\n}\nconst e0 = {\n offset: \"stroke-dashoffset\",\n array: \"stroke-dasharray\"\n}, t0 = {\n offset: \"strokeDashoffset\",\n array: \"strokeDasharray\"\n};\nfunction n0(e, t, n = 1, r = 0, i = !0) {\n e.pathLength = 1;\n const a = i ? e0 : t0;\n e[a.offset] = ze.transform(-r);\n const o = ze.transform(t), l = ze.transform(n);\n e[a.array] = `${o} ${l}`;\n}\nfunction Ul(e, {\n attrX: t,\n attrY: n,\n attrScale: r,\n originX: i,\n originY: a,\n pathLength: o,\n pathSpacing: l = 1,\n pathOffset: d = 0,\n // This is object creation, which we try to avoid per-frame.\n ...c\n}, m, f, b) {\n if (Hl(e, c, m, b), f) {\n e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);\n return;\n }\n e.attrs = e.style, e.style = {};\n const { attrs: x, style: P, dimensions: I } = e;\n x.transform && (I && (P.transform = x.transform), delete x.transform), I && (i !== void 0 || a !== void 0 || P.transform) && (P.transformOrigin = Jy(I, i !== void 0 ? i : 0.5, a !== void 0 ? a : 0.5)), t !== void 0 && (x.x = t), n !== void 0 && (x.y = n), r !== void 0 && (x.scale = r), o !== void 0 && n0(x, o, l, d, !1);\n}\nconst Rd = () => ({\n ...Wl(),\n attrs: {}\n}), ql = (e) => typeof e == \"string\" && e.toLowerCase() === \"svg\";\nfunction r0(e, t, n, r) {\n const i = Ot(() => {\n const a = Rd();\n return Ul(a, t, { enableHardwareAcceleration: !1 }, ql(r), e.transformTemplate), {\n ...a.attrs,\n style: { ...a.style }\n };\n }, [t]);\n if (e.style) {\n const a = {};\n xd(a, e.style, e), i.style = { ...a, ...i.style };\n }\n return i;\n}\nfunction i0(e = !1) {\n return (n, r, i, { latestValues: a }, o) => {\n const d = (zl(n) ? r0 : Ky)(r, a, o, n), m = {\n ...Qy(r, typeof n == \"string\", e),\n ...d,\n ref: i\n }, { children: f } = r, b = Ot(() => zt(f) ? f.get() : f, [f]);\n return Jo(n, {\n ...m,\n children: b\n });\n };\n}\nfunction Sd(e, { style: t, vars: n }, r, i) {\n Object.assign(e.style, t, i && i.getProjectionStyles(r));\n for (const a in n)\n e.style.setProperty(a, n[a]);\n}\nconst Pd = /* @__PURE__ */ new Set([\n \"baseFrequency\",\n \"diffuseConstant\",\n \"kernelMatrix\",\n \"kernelUnitLength\",\n \"keySplines\",\n \"keyTimes\",\n \"limitingConeAngle\",\n \"markerHeight\",\n \"markerWidth\",\n \"numOctaves\",\n \"targetX\",\n \"targetY\",\n \"surfaceScale\",\n \"specularConstant\",\n \"specularExponent\",\n \"stdDeviation\",\n \"tableValues\",\n \"viewBox\",\n \"gradientTransform\",\n \"pathLength\",\n \"startOffset\",\n \"textLength\",\n \"lengthAdjust\"\n]);\nfunction Td(e, t, n, r) {\n Sd(e, t, void 0, r);\n for (const i in t.attrs)\n e.setAttribute(Pd.has(i) ? i : _l(i), t.attrs[i]);\n}\nfunction Yl(e, t) {\n const { style: n } = e, r = {};\n for (const i in n)\n (zt(n[i]) || t.style && zt(t.style[i]) || vd(i, e)) && (r[i] = n[i]);\n return r;\n}\nfunction Ad(e, t) {\n const n = Yl(e, t);\n for (const r in e)\n if (zt(e[r]) || zt(t[r])) {\n const i = pi.indexOf(r) !== -1 ? \"attr\" + r.charAt(0).toUpperCase() + r.substring(1) : r;\n n[i] = e[r];\n }\n return n;\n}\nfunction Kl(e, t, n, r = {}, i = {}) {\n return typeof t == \"function\" && (t = t(n !== void 0 ? n : e.custom, r, i)), typeof t == \"string\" && (t = e.variants && e.variants[t]), typeof t == \"function\" && (t = t(n !== void 0 ? n : e.custom, r, i)), t;\n}\nfunction Ed(e) {\n const t = Nt(null);\n return t.current === null && (t.current = e()), t.current;\n}\nconst Uo = (e) => Array.isArray(e), o0 = (e) => !!(e && typeof e == \"object\" && e.mix && e.toValue), a0 = (e) => Uo(e) ? e[e.length - 1] || 0 : e;\nfunction Fo(e) {\n const t = zt(e) ? e.get() : e;\n return o0(t) ? t.toValue() : t;\n}\nfunction s0({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: n }, r, i, a) {\n const o = {\n latestValues: l0(r, i, a, e),\n renderState: t()\n };\n return n && (o.mount = (l) => n(r, l, o)), o;\n}\nconst Od = (e) => (t, n) => {\n const r = wt(aa), i = wt(sa), a = () => s0(e, t, r, i);\n return n ? a() : Ed(a);\n};\nfunction l0(e, t, n, r) {\n const i = {}, a = r(e, {});\n for (const b in a)\n i[b] = Fo(a[b]);\n let { initial: o, animate: l } = e;\n const d = ca(e), c = md(e);\n t && c && !d && e.inherit !== !1 && (o === void 0 && (o = t.initial), l === void 0 && (l = t.animate));\n let m = n ? n.initial === !1 : !1;\n m = m || o === !1;\n const f = m ? l : o;\n return f && typeof f != \"boolean\" && !ua(f) && (Array.isArray(f) ? f : [f]).forEach((x) => {\n const P = Kl(e, x);\n if (!P)\n return;\n const { transitionEnd: I, transition: D, ...L } = P;\n for (const M in L) {\n let F = L[M];\n if (Array.isArray(F)) {\n const j = m ? F.length - 1 : 0;\n F = F[j];\n }\n F !== null && (i[M] = F);\n }\n for (const M in I)\n i[M] = I[M];\n }), i;\n}\nconst St = (e) => e;\nclass ac {\n constructor() {\n this.order = [], this.scheduled = /* @__PURE__ */ new Set();\n }\n add(t) {\n if (!this.scheduled.has(t))\n return this.scheduled.add(t), this.order.push(t), !0;\n }\n remove(t) {\n const n = this.order.indexOf(t);\n n !== -1 && (this.order.splice(n, 1), this.scheduled.delete(t));\n }\n clear() {\n this.order.length = 0, this.scheduled.clear();\n }\n}\nfunction u0(e) {\n let t = new ac(), n = new ac(), r = 0, i = !1, a = !1;\n const o = /* @__PURE__ */ new WeakSet(), l = {\n /**\n * Schedule a process to run on the next frame.\n */\n schedule: (d, c = !1, m = !1) => {\n const f = m && i, b = f ? t : n;\n return c && o.add(d), b.add(d) && f && i && (r = t.order.length), d;\n },\n /**\n * Cancel the provided callback from running on the next frame.\n */\n cancel: (d) => {\n n.remove(d), o.delete(d);\n },\n /**\n * Execute all schedule callbacks.\n */\n process: (d) => {\n if (i) {\n a = !0;\n return;\n }\n if (i = !0, [t, n] = [n, t], n.clear(), r = t.order.length, r)\n for (let c = 0; c < r; c++) {\n const m = t.order[c];\n m(d), o.has(m) && (l.schedule(m), e());\n }\n i = !1, a && (a = !1, l.process(d));\n }\n };\n return l;\n}\nconst Po = [\n \"prepare\",\n \"read\",\n \"update\",\n \"preRender\",\n \"render\",\n \"postRender\"\n], c0 = 40;\nfunction f0(e, t) {\n let n = !1, r = !0;\n const i = {\n delta: 0,\n timestamp: 0,\n isProcessing: !1\n }, a = Po.reduce((f, b) => (f[b] = u0(() => n = !0), f), {}), o = (f) => a[f].process(i), l = () => {\n const f = performance.now();\n n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(f - i.timestamp, c0), 1), i.timestamp = f, i.isProcessing = !0, Po.forEach(o), i.isProcessing = !1, n && t && (r = !1, e(l));\n }, d = () => {\n n = !0, r = !0, i.isProcessing || e(l);\n };\n return { schedule: Po.reduce((f, b) => {\n const x = a[b];\n return f[b] = (P, I = !1, D = !1) => (n || d(), x.schedule(P, I, D)), f;\n }, {}), cancel: (f) => Po.forEach((b) => a[b].cancel(f)), state: i, steps: a };\n}\nconst { schedule: gt, cancel: hn, state: Dt, steps: ys } = f0(typeof requestAnimationFrame < \"u\" ? requestAnimationFrame : St, !0), d0 = {\n useVisualState: Od({\n scrapeMotionValuesFromProps: Ad,\n createRenderState: Rd,\n onMount: (e, t, { renderState: n, latestValues: r }) => {\n gt.read(() => {\n try {\n n.dimensions = typeof t.getBBox == \"function\" ? t.getBBox() : t.getBoundingClientRect();\n } catch {\n n.dimensions = {\n x: 0,\n y: 0,\n width: 0,\n height: 0\n };\n }\n }), gt.render(() => {\n Ul(n, r, { enableHardwareAcceleration: !1 }, ql(t.tagName), e.transformTemplate), Td(t, n);\n });\n }\n })\n}, p0 = {\n useVisualState: Od({\n scrapeMotionValuesFromProps: Yl,\n createRenderState: Wl\n })\n};\nfunction m0(e, { forwardMotionProps: t = !1 }, n, r) {\n return {\n ...zl(e) ? d0 : p0,\n preloadedFeatures: n,\n useRender: i0(t),\n createVisualElement: r,\n Component: e\n };\n}\nfunction ln(e, t, n, r = { passive: !0 }) {\n return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);\n}\nconst kd = (e) => e.pointerType === \"mouse\" ? typeof e.button != \"number\" || e.button <= 0 : e.isPrimary !== !1;\nfunction da(e, t = \"page\") {\n return {\n point: {\n x: e[t + \"X\"],\n y: e[t + \"Y\"]\n }\n };\n}\nconst h0 = (e) => (t) => kd(t) && e(t, da(t));\nfunction un(e, t, n, r) {\n return ln(e, t, h0(n), r);\n}\nconst v0 = (e, t) => (n) => t(e(n)), An = (...e) => e.reduce(v0);\nfunction Id(e) {\n let t = null;\n return () => {\n const n = () => {\n t = null;\n };\n return t === null ? (t = e, n) : !1;\n };\n}\nconst sc = Id(\"dragHorizontal\"), lc = Id(\"dragVertical\");\nfunction Md(e) {\n let t = !1;\n if (e === \"y\")\n t = lc();\n else if (e === \"x\")\n t = sc();\n else {\n const n = sc(), r = lc();\n n && r ? t = () => {\n n(), r();\n } : (n && n(), r && r());\n }\n return t;\n}\nfunction Fd() {\n const e = Md(!0);\n return e ? (e(), !1) : !0;\n}\nclass Bn {\n constructor(t) {\n this.isMounted = !1, this.node = t;\n }\n update() {\n }\n}\nfunction uc(e, t) {\n const n = \"pointer\" + (t ? \"enter\" : \"leave\"), r = \"onHover\" + (t ? \"Start\" : \"End\"), i = (a, o) => {\n if (a.type === \"touch\" || Fd())\n return;\n const l = e.getProps();\n e.animationState && l.whileHover && e.animationState.setActive(\"whileHover\", t), l[r] && gt.update(() => l[r](a, o));\n };\n return un(e.current, n, i, {\n passive: !e.getProps()[r]\n });\n}\nclass g0 extends Bn {\n mount() {\n this.unmount = An(uc(this.node, !0), uc(this.node, !1));\n }\n unmount() {\n }\n}\nclass y0 extends Bn {\n constructor() {\n super(...arguments), this.isActive = !1;\n }\n onFocus() {\n let t = !1;\n try {\n t = this.node.current.matches(\":focus-visible\");\n } catch {\n t = !0;\n }\n !t || !this.node.animationState || (this.node.animationState.setActive(\"whileFocus\", !0), this.isActive = !0);\n }\n onBlur() {\n !this.isActive || !this.node.animationState || (this.node.animationState.setActive(\"whileFocus\", !1), this.isActive = !1);\n }\n mount() {\n this.unmount = An(ln(this.node.current, \"focus\", () => this.onFocus()), ln(this.node.current, \"blur\", () => this.onBlur()));\n }\n unmount() {\n }\n}\nconst Bd = (e, t) => t ? e === t ? !0 : Bd(e, t.parentElement) : !1;\nfunction bs(e, t) {\n if (!t)\n return;\n const n = new PointerEvent(\"pointer\" + e);\n t(n, da(n));\n}\nclass b0 extends Bn {\n constructor() {\n super(...arguments), this.removeStartListeners = St, this.removeEndListeners = St, this.removeAccessibleListeners = St, this.startPointerPress = (t, n) => {\n if (this.removeEndListeners(), this.isPressing)\n return;\n const r = this.node.getProps(), a = un(window, \"pointerup\", (l, d) => {\n if (!this.checkPressEnd())\n return;\n const { onTap: c, onTapCancel: m } = this.node.getProps();\n gt.update(() => {\n Bd(this.node.current, l.target) ? c && c(l, d) : m && m(l, d);\n });\n }, { passive: !(r.onTap || r.onPointerUp) }), o = un(window, \"pointercancel\", (l, d) => this.cancelPress(l, d), { passive: !(r.onTapCancel || r.onPointerCancel) });\n this.removeEndListeners = An(a, o), this.startPress(t, n);\n }, this.startAccessiblePress = () => {\n const t = (a) => {\n if (a.key !== \"Enter\" || this.isPressing)\n return;\n const o = (l) => {\n l.key !== \"Enter\" || !this.checkPressEnd() || bs(\"up\", (d, c) => {\n const { onTap: m } = this.node.getProps();\n m && gt.update(() => m(d, c));\n });\n };\n this.removeEndListeners(), this.removeEndListeners = ln(this.node.current, \"keyup\", o), bs(\"down\", (l, d) => {\n this.startPress(l, d);\n });\n }, n = ln(this.node.current, \"keydown\", t), r = () => {\n this.isPressing && bs(\"cancel\", (a, o) => this.cancelPress(a, o));\n }, i = ln(this.node.current, \"blur\", r);\n this.removeAccessibleListeners = An(n, i);\n };\n }\n startPress(t, n) {\n this.isPressing = !0;\n const { onTapStart: r, whileTap: i } = this.node.getProps();\n i && this.node.animationState && this.node.animationState.setActive(\"whileTap\", !0), r && gt.update(() => r(t, n));\n }\n checkPressEnd() {\n return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive(\"whileTap\", !1), !Fd();\n }\n cancelPress(t, n) {\n if (!this.checkPressEnd())\n return;\n const { onTapCancel: r } = this.node.getProps();\n r && gt.update(() => r(t, n));\n }\n mount() {\n const t = this.node.getProps(), n = un(this.node.current, \"pointerdown\", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), r = ln(this.node.current, \"focus\", this.startAccessiblePress);\n this.removeStartListeners = An(n, r);\n }\n unmount() {\n this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();\n }\n}\nconst tl = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), w0 = (e) => {\n const t = tl.get(e.target);\n t && t(e);\n}, x0 = (e) => {\n e.forEach(w0);\n};\nfunction C0({ root: e, ...t }) {\n const n = e || document;\n ws.has(n) || ws.set(n, {});\n const r = ws.get(n), i = JSON.stringify(t);\n return r[i] || (r[i] = new IntersectionObserver(x0, { root: e, ...t })), r[i];\n}\nfunction R0(e, t, n) {\n const r = C0(t);\n return tl.set(e, n), r.observe(e), () => {\n tl.delete(e), r.unobserve(e);\n };\n}\nconst S0 = {\n some: 0,\n all: 1\n};\nclass P0 extends Bn {\n constructor() {\n super(...arguments), this.hasEnteredView = !1, this.isInView = !1;\n }\n startObserver() {\n this.unmount();\n const { viewport: t = {} } = this.node.getProps(), { root: n, margin: r, amount: i = \"some\", once: a } = t, o = {\n root: n ? n.current : void 0,\n rootMargin: r,\n threshold: typeof i == \"number\" ? i : S0[i]\n }, l = (d) => {\n const { isIntersecting: c } = d;\n if (this.isInView === c || (this.isInView = c, a && !c && this.hasEnteredView))\n return;\n c && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive(\"whileInView\", c);\n const { onViewportEnter: m, onViewportLeave: f } = this.node.getProps(), b = c ? m : f;\n b && b(d);\n };\n return R0(this.node.current, o, l);\n }\n mount() {\n this.startObserver();\n }\n update() {\n if (typeof IntersectionObserver > \"u\")\n return;\n const { props: t, prevProps: n } = this.node;\n [\"amount\", \"margin\", \"root\"].some(T0(t, n)) && this.startObserver();\n }\n unmount() {\n }\n}\nfunction T0({ viewport: e = {} }, { viewport: t = {} } = {}) {\n return (n) => e[n] !== t[n];\n}\nconst A0 = {\n inView: {\n Feature: P0\n },\n tap: {\n Feature: b0\n },\n focus: {\n Feature: y0\n },\n hover: {\n Feature: g0\n }\n};\nfunction Dd(e, t) {\n if (!Array.isArray(t))\n return !1;\n const n = t.length;\n if (n !== e.length)\n return !1;\n for (let r = 0; r < n; r++)\n if (t[r] !== e[r])\n return !1;\n return !0;\n}\nfunction E0(e) {\n const t = {};\n return e.values.forEach((n, r) => t[r] = n.get()), t;\n}\nfunction O0(e) {\n const t = {};\n return e.values.forEach((n, r) => t[r] = n.getVelocity()), t;\n}\nfunction pa(e, t, n) {\n const r = e.getProps();\n return Kl(r, t, n !== void 0 ? n : r.custom, E0(e), O0(e));\n}\nlet vi = St, Jt = St;\nprocess.env.NODE_ENV !== \"production\" && (vi = (e, t) => {\n !e && typeof console < \"u\" && console.warn(t);\n}, Jt = (e, t) => {\n if (!e)\n throw new Error(t);\n});\nconst En = (e) => e * 1e3, cn = (e) => e / 1e3, k0 = {\n current: !1\n}, Nd = (e) => Array.isArray(e) && typeof e[0] == \"number\";\nfunction Ld(e) {\n return !!(!e || typeof e == \"string\" && $d[e] || Nd(e) || Array.isArray(e) && e.every(Ld));\n}\nconst Wr = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, $d = {\n linear: \"linear\",\n ease: \"ease\",\n easeIn: \"ease-in\",\n easeOut: \"ease-out\",\n easeInOut: \"ease-in-out\",\n circIn: Wr([0, 0.65, 0.55, 1]),\n circOut: Wr([0.55, 0, 1, 0.45]),\n backIn: Wr([0.31, 0.01, 0.66, -0.59]),\n backOut: Wr([0.33, 1.53, 0.69, 0.99])\n};\nfunction _d(e) {\n if (e)\n return Nd(e) ? Wr(e) : Array.isArray(e) ? e.map(_d) : $d[e];\n}\nfunction I0(e, t, n, { delay: r = 0, duration: i, repeat: a = 0, repeatType: o = \"loop\", ease: l, times: d } = {}) {\n const c = { [t]: n };\n d && (c.offset = d);\n const m = _d(l);\n return Array.isArray(m) && (c.easing = m), e.animate(c, {\n delay: r,\n duration: i,\n easing: Array.isArray(m) ? \"linear\" : m,\n fill: \"both\",\n iterations: a + 1,\n direction: o === \"reverse\" ? \"alternate\" : \"normal\"\n });\n}\nfunction M0(e, { repeat: t, repeatType: n = \"loop\" }) {\n const r = t && n !== \"loop\" && t % 2 === 1 ? 0 : e.length - 1;\n return e[r];\n}\nconst Vd = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, F0 = 1e-7, B0 = 12;\nfunction D0(e, t, n, r, i) {\n let a, o, l = 0;\n do\n o = t + (n - t) / 2, a = Vd(o, r, i) - e, a > 0 ? n = o : t = o;\n while (Math.abs(a) > F0 && ++l < B0);\n return o;\n}\nfunction gi(e, t, n, r) {\n if (e === t && n === r)\n return St;\n const i = (a) => D0(a, 0, 1, e, n);\n return (a) => a === 0 || a === 1 ? a : Vd(i(a), t, r);\n}\nconst N0 = gi(0.42, 0, 1, 1), L0 = gi(0, 0, 0.58, 1), Gd = gi(0.42, 0, 0.58, 1), $0 = (e) => Array.isArray(e) && typeof e[0] != \"number\", jd = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, zd = (e) => (t) => 1 - e(1 - t), Xl = (e) => 1 - Math.sin(Math.acos(e)), Hd = zd(Xl), _0 = jd(Xl), Wd = gi(0.33, 1.53, 0.69, 0.99), Zl = zd(Wd), V0 = jd(Zl), G0 = (e) => (e *= 2) < 1 ? 0.5 * Zl(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), cc = {\n linear: St,\n easeIn: N0,\n easeInOut: Gd,\n easeOut: L0,\n circIn: Xl,\n circInOut: _0,\n circOut: Hd,\n backIn: Zl,\n backInOut: V0,\n backOut: Wd,\n anticipate: G0\n}, fc = (e) => {\n if (Array.isArray(e)) {\n Jt(e.length === 4, \"Cubic bezier arrays must contain four numerical values.\");\n const [t, n, r, i] = e;\n return gi(t, n, r, i);\n } else if (typeof e == \"string\")\n return Jt(cc[e] !== void 0, `Invalid easing type '${e}'`), cc[e];\n return e;\n}, Ql = (e, t) => (n) => !!(mi(n) && Hy.test(n) && n.startsWith(e) || t && Object.prototype.hasOwnProperty.call(n, t)), Ud = (e, t, n) => (r) => {\n if (!mi(r))\n return r;\n const [i, a, o, l] = r.match(fa);\n return {\n [e]: parseFloat(i),\n [t]: parseFloat(a),\n [n]: parseFloat(o),\n alpha: l !== void 0 ? parseFloat(l) : 1\n };\n}, j0 = (e) => Mn(0, 255, e), xs = {\n ...rr,\n transform: (e) => Math.round(j0(e))\n}, Yn = {\n test: Ql(\"rgb\", \"red\"),\n parse: Ud(\"red\", \"green\", \"blue\"),\n transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => \"rgba(\" + xs.transform(e) + \", \" + xs.transform(t) + \", \" + xs.transform(n) + \", \" + Xr(Kr.transform(r)) + \")\"\n};\nfunction z0(e) {\n let t = \"\", n = \"\", r = \"\", i = \"\";\n return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {\n red: parseInt(t, 16),\n green: parseInt(n, 16),\n blue: parseInt(r, 16),\n alpha: i ? parseInt(i, 16) / 255 : 1\n };\n}\nconst nl = {\n test: Ql(\"#\"),\n parse: z0,\n transform: Yn.transform\n}, pr = {\n test: Ql(\"hsl\", \"hue\"),\n parse: Ud(\"hue\", \"saturation\", \"lightness\"),\n transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => \"hsla(\" + Math.round(e) + \", \" + an.transform(Xr(t)) + \", \" + an.transform(Xr(n)) + \", \" + Xr(Kr.transform(r)) + \")\"\n}, $t = {\n test: (e) => Yn.test(e) || nl.test(e) || pr.test(e),\n parse: (e) => Yn.test(e) ? Yn.parse(e) : pr.test(e) ? pr.parse(e) : nl.parse(e),\n transform: (e) => mi(e) ? e : e.hasOwnProperty(\"red\") ? Yn.transform(e) : pr.transform(e)\n}, xt = (e, t, n) => -n * e + n * t + e;\nfunction Cs(e, t, n) {\n return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;\n}\nfunction H0({ hue: e, saturation: t, lightness: n, alpha: r }) {\n e /= 360, t /= 100, n /= 100;\n let i = 0, a = 0, o = 0;\n if (!t)\n i = a = o = n;\n else {\n const l = n < 0.5 ? n * (1 + t) : n + t - n * t, d = 2 * n - l;\n i = Cs(d, l, e + 1 / 3), a = Cs(d, l, e), o = Cs(d, l, e - 1 / 3);\n }\n return {\n red: Math.round(i * 255),\n green: Math.round(a * 255),\n blue: Math.round(o * 255),\n alpha: r\n };\n}\nconst Rs = (e, t, n) => {\n const r = e * e;\n return Math.sqrt(Math.max(0, n * (t * t - r) + r));\n}, W0 = [nl, Yn, pr], U0 = (e) => W0.find((t) => t.test(e));\nfunction dc(e) {\n const t = U0(e);\n Jt(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`);\n let n = t.parse(e);\n return t === pr && (n = H0(n)), n;\n}\nconst qd = (e, t) => {\n const n = dc(e), r = dc(t), i = { ...n };\n return (a) => (i.red = Rs(n.red, r.red, a), i.green = Rs(n.green, r.green, a), i.blue = Rs(n.blue, r.blue, a), i.alpha = xt(n.alpha, r.alpha, a), Yn.transform(i));\n};\nfunction q0(e) {\n var t, n;\n return isNaN(e) && mi(e) && (((t = e.match(fa)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(bd)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;\n}\nconst Yd = {\n regex: jy,\n countKey: \"Vars\",\n token: \"${v}\",\n parse: St\n}, Kd = {\n regex: bd,\n countKey: \"Colors\",\n token: \"${c}\",\n parse: $t.parse\n}, Xd = {\n regex: fa,\n countKey: \"Numbers\",\n token: \"${n}\",\n parse: rr.parse\n};\nfunction Ss(e, { regex: t, countKey: n, token: r, parse: i }) {\n const a = e.tokenised.match(t);\n a && (e[\"num\" + n] = a.length, e.tokenised = e.tokenised.replace(t, r), e.values.push(...a.map(i)));\n}\nfunction qo(e) {\n const t = e.toString(), n = {\n value: t,\n tokenised: t,\n values: [],\n numVars: 0,\n numColors: 0,\n numNumbers: 0\n };\n return n.value.includes(\"var(--\") && Ss(n, Yd), Ss(n, Kd), Ss(n, Xd), n;\n}\nfunction Zd(e) {\n return qo(e).values;\n}\nfunction Qd(e) {\n const { values: t, numColors: n, numVars: r, tokenised: i } = qo(e), a = t.length;\n return (o) => {\n let l = i;\n for (let d = 0; d < a; d++)\n d < r ? l = l.replace(Yd.token, o[d]) : d < r + n ? l = l.replace(Kd.token, $t.transform(o[d])) : l = l.replace(Xd.token, Xr(o[d]));\n return l;\n };\n}\nconst Y0 = (e) => typeof e == \"number\" ? 0 : e;\nfunction K0(e) {\n const t = Zd(e);\n return Qd(e)(t.map(Y0));\n}\nconst Fn = {\n test: q0,\n parse: Zd,\n createTransformer: Qd,\n getAnimatableNone: K0\n}, Jd = (e, t) => (n) => `${n > 0 ? t : e}`;\nfunction ep(e, t) {\n return typeof e == \"number\" ? (n) => xt(e, t, n) : $t.test(e) ? qd(e, t) : e.startsWith(\"var(\") ? Jd(e, t) : np(e, t);\n}\nconst tp = (e, t) => {\n const n = [...e], r = n.length, i = e.map((a, o) => ep(a, t[o]));\n return (a) => {\n for (let o = 0; o < r; o++)\n n[o] = i[o](a);\n return n;\n };\n}, X0 = (e, t) => {\n const n = { ...e, ...t }, r = {};\n for (const i in n)\n e[i] !== void 0 && t[i] !== void 0 && (r[i] = ep(e[i], t[i]));\n return (i) => {\n for (const a in r)\n n[a] = r[a](i);\n return n;\n };\n}, np = (e, t) => {\n const n = Fn.createTransformer(t), r = qo(e), i = qo(t);\n return r.numVars === i.numVars && r.numColors === i.numColors && r.numNumbers >= i.numNumbers ? An(tp(r.values, i.values), n) : (vi(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Jd(e, t));\n}, li = (e, t, n) => {\n const r = t - e;\n return r === 0 ? 1 : (n - e) / r;\n}, pc = (e, t) => (n) => xt(e, t, n);\nfunction Z0(e) {\n return typeof e == \"number\" ? pc : typeof e == \"string\" ? $t.test(e) ? qd : np : Array.isArray(e) ? tp : typeof e == \"object\" ? X0 : pc;\n}\nfunction Q0(e, t, n) {\n const r = [], i = n || Z0(e[0]), a = e.length - 1;\n for (let o = 0; o < a; o++) {\n let l = i(e[o], e[o + 1]);\n if (t) {\n const d = Array.isArray(t) ? t[o] || St : t;\n l = An(d, l);\n }\n r.push(l);\n }\n return r;\n}\nfunction rp(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {\n const a = e.length;\n if (Jt(a === t.length, \"Both input and output ranges must be the same length\"), a === 1)\n return () => t[0];\n e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());\n const o = Q0(t, r, i), l = o.length, d = (c) => {\n let m = 0;\n if (l > 1)\n for (; m < e.length - 2 && !(c < e[m + 1]); m++)\n ;\n const f = li(e[m], e[m + 1], c);\n return o[m](f);\n };\n return n ? (c) => d(Mn(e[0], e[a - 1], c)) : d;\n}\nfunction J0(e, t) {\n const n = e[e.length - 1];\n for (let r = 1; r <= t; r++) {\n const i = li(0, t, r);\n e.push(xt(n, 1, i));\n }\n}\nfunction e1(e) {\n const t = [0];\n return J0(t, e.length - 1), t;\n}\nfunction t1(e, t) {\n return e.map((n) => n * t);\n}\nfunction n1(e, t) {\n return e.map(() => t || Gd).splice(0, e.length - 1);\n}\nfunction Yo({ duration: e = 300, keyframes: t, times: n, ease: r = \"easeInOut\" }) {\n const i = $0(r) ? r.map(fc) : fc(r), a = {\n done: !1,\n value: t[0]\n }, o = t1(\n // Only use the provided offsets if they're the correct length\n // TODO Maybe we should warn here if there's a length mismatch\n n && n.length === t.length ? n : e1(t),\n e\n ), l = rp(o, t, {\n ease: Array.isArray(i) ? i : n1(t, i)\n });\n return {\n calculatedDuration: e,\n next: (d) => (a.value = l(d), a.done = d >= e, a)\n };\n}\nfunction ip(e, t) {\n return t ? e * (1e3 / t) : 0;\n}\nconst r1 = 5;\nfunction op(e, t, n) {\n const r = Math.max(t - r1, 0);\n return ip(n - e(r), t - r);\n}\nconst Ps = 1e-3, i1 = 0.01, mc = 10, o1 = 0.05, a1 = 1;\nfunction s1({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1 }) {\n let i, a;\n vi(e <= En(mc), \"Spring duration must be 10 seconds or less\");\n let o = 1 - t;\n o = Mn(o1, a1, o), e = Mn(i1, mc, cn(e)), o < 1 ? (i = (c) => {\n const m = c * o, f = m * e, b = m - n, x = rl(c, o), P = Math.exp(-f);\n return Ps - b / x * P;\n }, a = (c) => {\n const f = c * o * e, b = f * n + n, x = Math.pow(o, 2) * Math.pow(c, 2) * e, P = Math.exp(-f), I = rl(Math.pow(c, 2), o);\n return (-i(c) + Ps > 0 ? -1 : 1) * ((b - x) * P) / I;\n }) : (i = (c) => {\n const m = Math.exp(-c * e), f = (c - n) * e + 1;\n return -Ps + m * f;\n }, a = (c) => {\n const m = Math.exp(-c * e), f = (n - c) * (e * e);\n return m * f;\n });\n const l = 5 / e, d = u1(i, a, l);\n if (e = En(e), isNaN(d))\n return {\n stiffness: 100,\n damping: 10,\n duration: e\n };\n {\n const c = Math.pow(d, 2) * r;\n return {\n stiffness: c,\n damping: o * 2 * Math.sqrt(r * c),\n duration: e\n };\n }\n}\nconst l1 = 12;\nfunction u1(e, t, n) {\n let r = n;\n for (let i = 1; i < l1; i++)\n r = r - e(r) / t(r);\n return r;\n}\nfunction rl(e, t) {\n return e * Math.sqrt(1 - t * t);\n}\nconst c1 = [\"duration\", \"bounce\"], f1 = [\"stiffness\", \"damping\", \"mass\"];\nfunction hc(e, t) {\n return t.some((n) => e[n] !== void 0);\n}\nfunction d1(e) {\n let t = {\n velocity: 0,\n stiffness: 100,\n damping: 10,\n mass: 1,\n isResolvedFromDuration: !1,\n ...e\n };\n if (!hc(e, f1) && hc(e, c1)) {\n const n = s1(e);\n t = {\n ...t,\n ...n,\n velocity: 0,\n mass: 1\n }, t.isResolvedFromDuration = !0;\n }\n return t;\n}\nfunction ap({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {\n const i = e[0], a = e[e.length - 1], o = { done: !1, value: i }, { stiffness: l, damping: d, mass: c, velocity: m, duration: f, isResolvedFromDuration: b } = d1(r), x = m ? -cn(m) : 0, P = d / (2 * Math.sqrt(l * c)), I = a - i, D = cn(Math.sqrt(l / c)), L = Math.abs(I) < 5;\n n || (n = L ? 0.01 : 2), t || (t = L ? 5e-3 : 0.5);\n let M;\n if (P < 1) {\n const F = rl(D, P);\n M = (j) => {\n const B = Math.exp(-P * D * j);\n return a - B * ((x + P * D * I) / F * Math.sin(F * j) + I * Math.cos(F * j));\n };\n } else if (P === 1)\n M = (F) => a - Math.exp(-D * F) * (I + (x + D * I) * F);\n else {\n const F = D * Math.sqrt(P * P - 1);\n M = (j) => {\n const B = Math.exp(-P * D * j), Q = Math.min(F * j, 300);\n return a - B * ((x + P * D * I) * Math.sinh(Q) + F * I * Math.cosh(Q)) / F;\n };\n }\n return {\n calculatedDuration: b && f || null,\n next: (F) => {\n const j = M(F);\n if (b)\n o.done = F >= f;\n else {\n let B = x;\n F !== 0 && (P < 1 ? B = op(M, F, j) : B = 0);\n const Q = Math.abs(B) <= n, we = Math.abs(a - j) <= t;\n o.done = Q && we;\n }\n return o.value = o.done ? a : j, o;\n }\n };\n}\nfunction vc({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: l, max: d, restDelta: c = 0.5, restSpeed: m }) {\n const f = e[0], b = {\n done: !1,\n value: f\n }, x = (ce) => l !== void 0 && ce < l || d !== void 0 && ce > d, P = (ce) => l === void 0 ? d : d === void 0 || Math.abs(l - ce) < Math.abs(d - ce) ? l : d;\n let I = n * t;\n const D = f + I, L = o === void 0 ? D : o(D);\n L !== D && (I = L - f);\n const M = (ce) => -I * Math.exp(-ce / r), F = (ce) => L + M(ce), j = (ce) => {\n const se = M(ce), Ve = F(ce);\n b.done = Math.abs(se) <= c, b.value = b.done ? L : Ve;\n };\n let B, Q;\n const we = (ce) => {\n x(b.value) && (B = ce, Q = ap({\n keyframes: [b.value, P(b.value)],\n velocity: op(F, ce, b.value),\n damping: i,\n stiffness: a,\n restDelta: c,\n restSpeed: m\n }));\n };\n return we(0), {\n calculatedDuration: null,\n next: (ce) => {\n let se = !1;\n return !Q && B === void 0 && (se = !0, j(ce), we(ce)), B !== void 0 && ce > B ? Q.next(ce - B) : (!se && j(ce), b);\n }\n };\n}\nconst p1 = (e) => {\n const t = ({ timestamp: n }) => e(n);\n return {\n start: () => gt.update(t, !0),\n stop: () => hn(t),\n /**\n * If we're processing this frame we can use the\n * framelocked timestamp to keep things in sync.\n */\n now: () => Dt.isProcessing ? Dt.timestamp : performance.now()\n };\n}, gc = 2e4;\nfunction yc(e) {\n let t = 0;\n const n = 50;\n let r = e.next(t);\n for (; !r.done && t < gc; )\n t += n, r = e.next(t);\n return t >= gc ? 1 / 0 : t;\n}\nconst m1 = {\n decay: vc,\n inertia: vc,\n tween: Yo,\n keyframes: Yo,\n spring: ap\n};\nfunction Ko({ autoplay: e = !0, delay: t = 0, driver: n = p1, keyframes: r, type: i = \"keyframes\", repeat: a = 0, repeatDelay: o = 0, repeatType: l = \"loop\", onPlay: d, onStop: c, onComplete: m, onUpdate: f, ...b }) {\n let x = 1, P = !1, I, D;\n const L = () => {\n D = new Promise((q) => {\n I = q;\n });\n };\n L();\n let M;\n const F = m1[i] || Yo;\n let j;\n F !== Yo && typeof r[0] != \"number\" && (j = rp([0, 100], r, {\n clamp: !1\n }), r = [0, 100]);\n const B = F({ ...b, keyframes: r });\n let Q;\n l === \"mirror\" && (Q = F({\n ...b,\n keyframes: [...r].reverse(),\n velocity: -(b.velocity || 0)\n }));\n let we = \"idle\", ce = null, se = null, Ve = null;\n B.calculatedDuration === null && a && (B.calculatedDuration = yc(B));\n const { calculatedDuration: st } = B;\n let it = 1 / 0, dt = 1 / 0;\n st !== null && (it = st + o, dt = it * (a + 1) - o);\n let X = 0;\n const ie = (q) => {\n if (se === null)\n return;\n x > 0 && (se = Math.min(se, q)), x < 0 && (se = Math.min(q - dt / x, se)), ce !== null ? X = ce : X = Math.round(q - se) * x;\n const Ce = X - t * (x >= 0 ? 1 : -1), De = x >= 0 ? Ce < 0 : Ce > dt;\n X = Math.max(Ce, 0), we === \"finished\" && ce === null && (X = dt);\n let Me = X, Qe = B;\n if (a) {\n const nt = X / it;\n let et = Math.floor(nt), ht = nt % 1;\n !ht && nt >= 1 && (ht = 1), ht === 1 && et--, et = Math.min(et, a + 1);\n const he = !!(et % 2);\n he && (l === \"reverse\" ? (ht = 1 - ht, o && (ht -= o / it)) : l === \"mirror\" && (Qe = Q));\n let It = Mn(0, 1, ht);\n X > dt && (It = l === \"reverse\" && he ? 1 : 0), Me = It * it;\n }\n const Fe = De ? { done: !1, value: r[0] } : Qe.next(Me);\n j && (Fe.value = j(Fe.value));\n let { done: We } = Fe;\n !De && st !== null && (We = x >= 0 ? X >= dt : X <= 0);\n const Je = ce === null && (we === \"finished\" || we === \"running\" && We);\n return f && f(Fe.value), Je && xe(), Fe;\n }, Ee = () => {\n M && M.stop(), M = void 0;\n }, $ = () => {\n we = \"idle\", Ee(), I(), L(), se = Ve = null;\n }, xe = () => {\n we = \"finished\", m && m(), Ee(), I();\n }, ft = () => {\n if (P)\n return;\n M || (M = n(ie));\n const q = M.now();\n d && d(), ce !== null ? se = q - ce : (!se || we === \"finished\") && (se = q), we === \"finished\" && L(), Ve = se, ce = null, we = \"running\", M.start();\n };\n e && ft();\n const U = {\n then(q, Ce) {\n return D.then(q, Ce);\n },\n get time() {\n return cn(X);\n },\n set time(q) {\n q = En(q), X = q, ce !== null || !M || x === 0 ? ce = q : se = M.now() - q / x;\n },\n get duration() {\n const q = B.calculatedDuration === null ? yc(B) : B.calculatedDuration;\n return cn(q);\n },\n get speed() {\n return x;\n },\n set speed(q) {\n q === x || !M || (x = q, U.time = cn(X));\n },\n get state() {\n return we;\n },\n play: ft,\n pause: () => {\n we = \"paused\", ce = X;\n },\n stop: () => {\n P = !0, we !== \"idle\" && (we = \"idle\", c && c(), $());\n },\n cancel: () => {\n Ve !== null && ie(Ve), $();\n },\n complete: () => {\n we = \"finished\";\n },\n sample: (q) => (se = 0, ie(q))\n };\n return U;\n}\nfunction h1(e) {\n let t;\n return () => (t === void 0 && (t = e()), t);\n}\nconst v1 = h1(() => Object.hasOwnProperty.call(Element.prototype, \"animate\")), g1 = /* @__PURE__ */ new Set([\n \"opacity\",\n \"clipPath\",\n \"filter\",\n \"transform\",\n \"backgroundColor\"\n]), To = 10, y1 = 2e4, b1 = (e, t) => t.type === \"spring\" || e === \"backgroundColor\" || !Ld(t.ease);\nfunction w1(e, t, { onUpdate: n, onComplete: r, ...i }) {\n if (!(v1() && g1.has(t) && !i.repeatDelay && i.repeatType !== \"mirror\" && i.damping !== 0 && i.type !== \"inertia\"))\n return !1;\n let o = !1, l, d;\n const c = () => {\n d = new Promise((M) => {\n l = M;\n });\n };\n c();\n let { keyframes: m, duration: f = 300, ease: b, times: x } = i;\n if (b1(t, i)) {\n const M = Ko({\n ...i,\n repeat: 0,\n delay: 0\n });\n let F = { done: !1, value: m[0] };\n const j = [];\n let B = 0;\n for (; !F.done && B < y1; )\n F = M.sample(B), j.push(F.value), B += To;\n x = void 0, m = j, f = B - To, b = \"linear\";\n }\n const P = I0(e.owner.current, t, m, {\n ...i,\n duration: f,\n /**\n * This function is currently not called if ease is provided\n * as a function so the cast is safe.\n *\n * However it would be possible for a future refinement to port\n * in easing pregeneration from Motion One for browsers that\n * support the upcoming `linear()` easing function.\n */\n ease: b,\n times: x\n }), I = () => P.cancel(), D = () => {\n gt.update(I), l(), c();\n };\n return P.onfinish = () => {\n e.set(M0(m, i)), r && r(), D();\n }, {\n then(M, F) {\n return d.then(M, F);\n },\n attachTimeline(M) {\n return P.timeline = M, P.onfinish = null, St;\n },\n get time() {\n return cn(P.currentTime || 0);\n },\n set time(M) {\n P.currentTime = En(M);\n },\n get speed() {\n return P.playbackRate;\n },\n set speed(M) {\n P.playbackRate = M;\n },\n get duration() {\n return cn(f);\n },\n play: () => {\n o || (P.play(), hn(I));\n },\n pause: () => P.pause(),\n stop: () => {\n if (o = !0, P.playState === \"idle\")\n return;\n const { currentTime: M } = P;\n if (M) {\n const F = Ko({\n ...i,\n autoplay: !1\n });\n e.setWithVelocity(F.sample(M - To).value, F.sample(M).value, To);\n }\n D();\n },\n complete: () => P.finish(),\n cancel: D\n };\n}\nfunction x1({ keyframes: e, delay: t, onUpdate: n, onComplete: r }) {\n const i = () => (n && n(e[e.length - 1]), r && r(), {\n time: 0,\n speed: 1,\n duration: 0,\n play: St,\n pause: St,\n stop: St,\n then: (a) => (a(), Promise.resolve()),\n cancel: St,\n complete: St\n });\n return t ? Ko({\n keyframes: [0, 1],\n duration: 0,\n delay: t,\n onComplete: i\n }) : i();\n}\nconst C1 = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10\n}, R1 = (e) => ({\n type: \"spring\",\n stiffness: 550,\n damping: e === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10\n}), S1 = {\n type: \"keyframes\",\n duration: 0.8\n}, P1 = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3\n}, T1 = (e, { keyframes: t }) => t.length > 2 ? S1 : nr.has(e) ? e.startsWith(\"scale\") ? R1(t[1]) : C1 : P1, il = (e, t) => e === \"zIndex\" ? !1 : !!(typeof t == \"number\" || Array.isArray(t) || typeof t == \"string\" && // It's animatable if we have a string\n(Fn.test(t) || t === \"0\") && // And it contains numbers and/or colors\n!t.startsWith(\"url(\")), A1 = /* @__PURE__ */ new Set([\"brightness\", \"contrast\", \"saturate\", \"opacity\"]);\nfunction E1(e) {\n const [t, n] = e.slice(0, -1).split(\"(\");\n if (t === \"drop-shadow\")\n return e;\n const [r] = n.match(fa) || [];\n if (!r)\n return e;\n const i = n.replace(r, \"\");\n let a = A1.has(t) ? 1 : 0;\n return r !== n && (a *= 100), t + \"(\" + a + i + \")\";\n}\nconst O1 = /([a-z-]*)\\(.*?\\)/g, ol = {\n ...Fn,\n getAnimatableNone: (e) => {\n const t = e.match(O1);\n return t ? t.map(E1).join(\" \") : e;\n }\n}, k1 = {\n ...wd,\n // Color props\n color: $t,\n backgroundColor: $t,\n outlineColor: $t,\n fill: $t,\n stroke: $t,\n // Border props\n borderColor: $t,\n borderTopColor: $t,\n borderRightColor: $t,\n borderBottomColor: $t,\n borderLeftColor: $t,\n filter: ol,\n WebkitFilter: ol\n}, Jl = (e) => k1[e];\nfunction sp(e, t) {\n let n = Jl(e);\n return n !== ol && (n = Fn), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;\n}\nconst lp = (e) => /^0[^.\\s]+$/.test(e);\nfunction I1(e) {\n if (typeof e == \"number\")\n return e === 0;\n if (e !== null)\n return e === \"none\" || e === \"0\" || lp(e);\n}\nfunction M1(e, t, n, r) {\n const i = il(t, n);\n let a;\n Array.isArray(n) ? a = [...n] : a = [null, n];\n const o = r.from !== void 0 ? r.from : e.get();\n let l;\n const d = [];\n for (let c = 0; c < a.length; c++)\n a[c] === null && (a[c] = c === 0 ? o : a[c - 1]), I1(a[c]) && d.push(c), typeof a[c] == \"string\" && a[c] !== \"none\" && a[c] !== \"0\" && (l = a[c]);\n if (i && d.length && l)\n for (let c = 0; c < d.length; c++) {\n const m = d[c];\n a[m] = sp(t, l);\n }\n return a;\n}\nfunction F1({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: a, repeatType: o, repeatDelay: l, from: d, elapsed: c, ...m }) {\n return !!Object.keys(m).length;\n}\nfunction eu(e, t) {\n return e[t] || e.default || e;\n}\nconst B1 = {\n skipAnimations: !1\n}, tu = (e, t, n, r = {}) => (i) => {\n const a = eu(r, e) || {}, o = a.delay || r.delay || 0;\n let { elapsed: l = 0 } = r;\n l = l - En(o);\n const d = M1(t, e, n, a), c = d[0], m = d[d.length - 1], f = il(e, c), b = il(e, m);\n vi(f === b, `You are trying to animate ${e} from \"${c}\" to \"${m}\". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${m} via the \\`style\\` property.`);\n let x = {\n keyframes: d,\n velocity: t.getVelocity(),\n ease: \"easeOut\",\n ...a,\n delay: -l,\n onUpdate: (P) => {\n t.set(P), a.onUpdate && a.onUpdate(P);\n },\n onComplete: () => {\n i(), a.onComplete && a.onComplete();\n }\n };\n if (F1(a) || (x = {\n ...x,\n ...T1(e, x)\n }), x.duration && (x.duration = En(x.duration)), x.repeatDelay && (x.repeatDelay = En(x.repeatDelay)), !f || !b || k0.current || a.type === !1 || B1.skipAnimations)\n return x1(x);\n if (\n /**\n * If this is a handoff animation, the optimised animation will be running via\n * WAAPI. Therefore, this animation must be JS to ensure it runs \"under\" the\n * optimised animation.\n */\n !r.isHandoff && t.owner && t.owner.current instanceof HTMLElement && /**\n * If we're outputting values to onUpdate then we can't use WAAPI as there's\n * no way to read the value from WAAPI every frame.\n */\n !t.owner.getProps().onUpdate\n ) {\n const P = w1(t, e, x);\n if (P)\n return P;\n }\n return Ko(x);\n};\nfunction Xo(e) {\n return !!(zt(e) && e.add);\n}\nconst up = (e) => /^\\-?\\d*\\.?\\d+$/.test(e);\nfunction nu(e, t) {\n e.indexOf(t) === -1 && e.push(t);\n}\nfunction ru(e, t) {\n const n = e.indexOf(t);\n n > -1 && e.splice(n, 1);\n}\nclass iu {\n constructor() {\n this.subscriptions = [];\n }\n add(t) {\n return nu(this.subscriptions, t), () => ru(this.subscriptions, t);\n }\n notify(t, n, r) {\n const i = this.subscriptions.length;\n if (i)\n if (i === 1)\n this.subscriptions[0](t, n, r);\n else\n for (let a = 0; a < i; a++) {\n const o = this.subscriptions[a];\n o && o(t, n, r);\n }\n }\n getSize() {\n return this.subscriptions.length;\n }\n clear() {\n this.subscriptions.length = 0;\n }\n}\nconst bc = /* @__PURE__ */ new Set();\nfunction ou(e, t, n) {\n e || bc.has(t) || (console.warn(t), n && console.warn(n), bc.add(t));\n}\nconst D1 = (e) => !isNaN(parseFloat(e));\nclass N1 {\n /**\n * @param init - The initiating value\n * @param config - Optional configuration options\n *\n * - `transformer`: A function to transform incoming values with.\n *\n * @internal\n */\n constructor(t, n = {}) {\n this.version = \"10.17.0\", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (r, i = !0) => {\n this.prev = this.current, this.current = r;\n const { delta: a, timestamp: o } = Dt;\n this.lastUpdated !== o && (this.timeDelta = a, this.lastUpdated = o, gt.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), i && this.events.renderRequest && this.events.renderRequest.notify(this.current);\n }, this.scheduleVelocityCheck = () => gt.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: r }) => {\n r !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));\n }, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = D1(this.current), this.owner = n.owner;\n }\n /**\n * Adds a function that will be notified when the `MotionValue` is updated.\n *\n * It returns a function that, when called, will cancel the subscription.\n *\n * When calling `onChange` inside a React component, it should be wrapped with the\n * `useEffect` hook. As it returns an unsubscribe function, this should be returned\n * from the `useEffect` function to ensure you don't add duplicate subscribers..\n *\n * ```jsx\n * export const MyComponent = () => {\n * const x = useMotionValue(0)\n * const y = useMotionValue(0)\n * const opacity = useMotionValue(1)\n *\n * useEffect(() => {\n * function updateOpacity() {\n * const maxXY = Math.max(x.get(), y.get())\n * const newOpacity = transform(maxXY, [0, 100], [1, 0])\n * opacity.set(newOpacity)\n * }\n *\n * const unsubscribeX = x.on(\"change\", updateOpacity)\n * const unsubscribeY = y.on(\"change\", updateOpacity)\n *\n * return () => {\n * unsubscribeX()\n * unsubscribeY()\n * }\n * }, [])\n *\n * return \n * }\n * ```\n *\n * @param subscriber - A function that receives the latest value.\n * @returns A function that, when called, will cancel this subscription.\n *\n * @deprecated\n */\n onChange(t) {\n return process.env.NODE_ENV !== \"production\" && ou(!1, 'value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback).'), this.on(\"change\", t);\n }\n on(t, n) {\n this.events[t] || (this.events[t] = new iu());\n const r = this.events[t].add(n);\n return t === \"change\" ? () => {\n r(), gt.read(() => {\n this.events.change.getSize() || this.stop();\n });\n } : r;\n }\n clearListeners() {\n for (const t in this.events)\n this.events[t].clear();\n }\n /**\n * Attaches a passive effect to the `MotionValue`.\n *\n * @internal\n */\n attach(t, n) {\n this.passiveEffect = t, this.stopPassiveEffect = n;\n }\n /**\n * Sets the state of the `MotionValue`.\n *\n * @remarks\n *\n * ```jsx\n * const x = useMotionValue(0)\n * x.set(10)\n * ```\n *\n * @param latest - Latest value to set.\n * @param render - Whether to notify render subscribers. Defaults to `true`\n *\n * @public\n */\n set(t, n = !0) {\n !n || !this.passiveEffect ? this.updateAndNotify(t, n) : this.passiveEffect(t, this.updateAndNotify);\n }\n setWithVelocity(t, n, r) {\n this.set(n), this.prev = t, this.timeDelta = r;\n }\n /**\n * Set the state of the `MotionValue`, stopping any active animations,\n * effects, and resets velocity to `0`.\n */\n jump(t) {\n this.updateAndNotify(t), this.prev = t, this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();\n }\n /**\n * Returns the latest state of `MotionValue`\n *\n * @returns - The latest state of `MotionValue`\n *\n * @public\n */\n get() {\n return this.current;\n }\n /**\n * @public\n */\n getPrevious() {\n return this.prev;\n }\n /**\n * Returns the latest velocity of `MotionValue`\n *\n * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.\n *\n * @public\n */\n getVelocity() {\n return this.canTrackVelocity ? (\n // These casts could be avoided if parseFloat would be typed better\n ip(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)\n ) : 0;\n }\n /**\n * Registers a new animation to control this `MotionValue`. Only one\n * animation can drive a `MotionValue` at one time.\n *\n * ```jsx\n * value.start()\n * ```\n *\n * @param animation - A function that starts the provided animation\n *\n * @internal\n */\n start(t) {\n return this.stop(), new Promise((n) => {\n this.hasAnimated = !0, this.animation = t(n), this.events.animationStart && this.events.animationStart.notify();\n }).then(() => {\n this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();\n });\n }\n /**\n * Stop the currently active animation.\n *\n * @public\n */\n stop() {\n this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();\n }\n /**\n * Returns `true` if this value is currently animating.\n *\n * @public\n */\n isAnimating() {\n return !!this.animation;\n }\n clearAnimation() {\n delete this.animation;\n }\n /**\n * Destroy and clean up subscribers to this `MotionValue`.\n *\n * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically\n * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually\n * created a `MotionValue` via the `motionValue` function.\n *\n * @public\n */\n destroy() {\n this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();\n }\n}\nfunction yr(e, t) {\n return new N1(e, t);\n}\nconst cp = (e) => (t) => t.test(e), L1 = {\n test: (e) => e === \"auto\",\n parse: (e) => e\n}, fp = [rr, ze, an, Rn, Uy, Wy, L1], jr = (e) => fp.find(cp(e)), $1 = [...fp, $t, Fn], _1 = (e) => $1.find(cp(e));\nfunction V1(e, t, n) {\n e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, yr(n));\n}\nfunction G1(e, t) {\n const n = pa(e, t);\n let { transitionEnd: r = {}, transition: i = {}, ...a } = n ? e.makeTargetAnimatable(n, !1) : {};\n a = { ...a, ...r };\n for (const o in a) {\n const l = a0(a[o]);\n V1(e, o, l);\n }\n}\nfunction j1(e, t, n) {\n var r, i;\n const a = Object.keys(t).filter((l) => !e.hasValue(l)), o = a.length;\n if (o)\n for (let l = 0; l < o; l++) {\n const d = a[l], c = t[d];\n let m = null;\n Array.isArray(c) && (m = c[0]), m === null && (m = (i = (r = n[d]) !== null && r !== void 0 ? r : e.readValue(d)) !== null && i !== void 0 ? i : t[d]), m != null && (typeof m == \"string\" && (up(m) || lp(m)) ? m = parseFloat(m) : !_1(m) && Fn.test(c) && (m = sp(d, c)), e.addValue(d, yr(m, { owner: e })), n[d] === void 0 && (n[d] = m), m !== null && e.setBaseTarget(d, m));\n }\n}\nfunction z1(e, t) {\n return t ? (t[e] || t.default || t).from : void 0;\n}\nfunction H1(e, t, n) {\n const r = {};\n for (const i in e) {\n const a = z1(i, t);\n if (a !== void 0)\n r[i] = a;\n else {\n const o = n.getValue(i);\n o && (r[i] = o.get());\n }\n }\n return r;\n}\nfunction W1({ protectedKeys: e, needsAnimating: t }, n) {\n const r = e.hasOwnProperty(n) && t[n] !== !0;\n return t[n] = !1, r;\n}\nfunction U1(e, t) {\n const n = e.get();\n if (Array.isArray(t)) {\n for (let r = 0; r < t.length; r++)\n if (t[r] !== n)\n return !0;\n } else\n return n !== t;\n}\nfunction dp(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {\n let { transition: a = e.getDefaultTransition(), transitionEnd: o, ...l } = e.makeTargetAnimatable(t);\n const d = e.getValue(\"willChange\");\n r && (a = r);\n const c = [], m = i && e.animationState && e.animationState.getState()[i];\n for (const f in l) {\n const b = e.getValue(f), x = l[f];\n if (!b || x === void 0 || m && W1(m, f))\n continue;\n const P = {\n delay: n,\n elapsed: 0,\n ...eu(a || {}, f)\n };\n if (window.HandoffAppearAnimations) {\n const L = e.getProps()[pd];\n if (L) {\n const M = window.HandoffAppearAnimations(L, f, b, gt);\n M !== null && (P.elapsed = M, P.isHandoff = !0);\n }\n }\n let I = !P.isHandoff && !U1(b, x);\n if (P.type === \"spring\" && (b.getVelocity() || P.velocity) && (I = !1), b.animation && (I = !1), I)\n continue;\n b.start(tu(f, b, x, e.shouldReduceMotion && nr.has(f) ? { type: !1 } : P));\n const D = b.animation;\n Xo(d) && (d.add(f), D.then(() => d.remove(f))), c.push(D);\n }\n return o && Promise.all(c).then(() => {\n o && G1(e, o);\n }), c;\n}\nfunction al(e, t, n = {}) {\n const r = pa(e, t, n.custom);\n let { transition: i = e.getDefaultTransition() || {} } = r || {};\n n.transitionOverride && (i = n.transitionOverride);\n const a = r ? () => Promise.all(dp(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (d = 0) => {\n const { delayChildren: c = 0, staggerChildren: m, staggerDirection: f } = i;\n return q1(e, t, c + d, m, f, n);\n } : () => Promise.resolve(), { when: l } = i;\n if (l) {\n const [d, c] = l === \"beforeChildren\" ? [a, o] : [o, a];\n return d().then(() => c());\n } else\n return Promise.all([a(), o(n.delay)]);\n}\nfunction q1(e, t, n = 0, r = 0, i = 1, a) {\n const o = [], l = (e.variantChildren.size - 1) * r, d = i === 1 ? (c = 0) => c * r : (c = 0) => l - c * r;\n return Array.from(e.variantChildren).sort(Y1).forEach((c, m) => {\n c.notify(\"AnimationStart\", t), o.push(al(c, t, {\n ...a,\n delay: n + d(m)\n }).then(() => c.notify(\"AnimationComplete\", t)));\n }), Promise.all(o);\n}\nfunction Y1(e, t) {\n return e.sortNodePosition(t);\n}\nfunction K1(e, t, n = {}) {\n e.notify(\"AnimationStart\", t);\n let r;\n if (Array.isArray(t)) {\n const i = t.map((a) => al(e, a, n));\n r = Promise.all(i);\n } else if (typeof t == \"string\")\n r = al(e, t, n);\n else {\n const i = typeof t == \"function\" ? pa(e, t, n.custom) : t;\n r = Promise.all(dp(e, i, n));\n }\n return r.then(() => e.notify(\"AnimationComplete\", t));\n}\nconst X1 = [...Vl].reverse(), Z1 = Vl.length;\nfunction Q1(e) {\n return (t) => Promise.all(t.map(({ animation: n, options: r }) => K1(e, n, r)));\n}\nfunction J1(e) {\n let t = Q1(e);\n const n = tb();\n let r = !0;\n const i = (d, c) => {\n const m = pa(e, c);\n if (m) {\n const { transition: f, transitionEnd: b, ...x } = m;\n d = { ...d, ...x, ...b };\n }\n return d;\n };\n function a(d) {\n t = d(e);\n }\n function o(d, c) {\n const m = e.getProps(), f = e.getVariantContext(!0) || {}, b = [], x = /* @__PURE__ */ new Set();\n let P = {}, I = 1 / 0;\n for (let L = 0; L < Z1; L++) {\n const M = X1[L], F = n[M], j = m[M] !== void 0 ? m[M] : f[M], B = ai(j), Q = M === c ? F.isActive : null;\n Q === !1 && (I = L);\n let we = j === f[M] && j !== m[M] && B;\n if (we && r && e.manuallyAnimateOnMount && (we = !1), F.protectedKeys = { ...P }, // If it isn't active and hasn't *just* been set as inactive\n !F.isActive && Q === null || // If we didn't and don't have any defined prop for this animation type\n !j && !F.prevProp || // Or if the prop doesn't define an animation\n ua(j) || typeof j == \"boolean\")\n continue;\n const ce = eb(F.prevProp, j);\n let se = ce || // If we're making this variant active, we want to always make it active\n M === c && F.isActive && !we && B || // If we removed a higher-priority variant (i is in reverse order)\n L > I && B;\n const Ve = Array.isArray(j) ? j : [j];\n let st = Ve.reduce(i, {});\n Q === !1 && (st = {});\n const { prevResolvedValues: it = {} } = F, dt = {\n ...it,\n ...st\n }, X = (ie) => {\n se = !0, x.delete(ie), F.needsAnimating[ie] = !0;\n };\n for (const ie in dt) {\n const Ee = st[ie], $ = it[ie];\n P.hasOwnProperty(ie) || (Ee !== $ ? Uo(Ee) && Uo($) ? !Dd(Ee, $) || ce ? X(ie) : F.protectedKeys[ie] = !0 : Ee !== void 0 ? X(ie) : x.add(ie) : Ee !== void 0 && x.has(ie) ? X(ie) : F.protectedKeys[ie] = !0);\n }\n F.prevProp = j, F.prevResolvedValues = st, F.isActive && (P = { ...P, ...st }), r && e.blockInitialAnimation && (se = !1), se && !we && b.push(...Ve.map((ie) => ({\n animation: ie,\n options: { type: M, ...d }\n })));\n }\n if (x.size) {\n const L = {};\n x.forEach((M) => {\n const F = e.getBaseTarget(M);\n F !== void 0 && (L[M] = F);\n }), b.push({ animation: L });\n }\n let D = !!b.length;\n return r && (m.initial === !1 || m.initial === m.animate) && !e.manuallyAnimateOnMount && (D = !1), r = !1, D ? t(b) : Promise.resolve();\n }\n function l(d, c, m) {\n var f;\n if (n[d].isActive === c)\n return Promise.resolve();\n (f = e.variantChildren) === null || f === void 0 || f.forEach((x) => {\n var P;\n return (P = x.animationState) === null || P === void 0 ? void 0 : P.setActive(d, c);\n }), n[d].isActive = c;\n const b = o(m, d);\n for (const x in n)\n n[x].protectedKeys = {};\n return b;\n }\n return {\n animateChanges: o,\n setActive: l,\n setAnimateFunction: a,\n getState: () => n\n };\n}\nfunction eb(e, t) {\n return typeof t == \"string\" ? t !== e : Array.isArray(t) ? !Dd(t, e) : !1;\n}\nfunction Gn(e = !1) {\n return {\n isActive: e,\n protectedKeys: {},\n needsAnimating: {},\n prevResolvedValues: {}\n };\n}\nfunction tb() {\n return {\n animate: Gn(!0),\n whileInView: Gn(),\n whileHover: Gn(),\n whileTap: Gn(),\n whileDrag: Gn(),\n whileFocus: Gn(),\n exit: Gn()\n };\n}\nclass nb extends Bn {\n /**\n * We dynamically generate the AnimationState manager as it contains a reference\n * to the underlying animation library. We only want to load that if we load this,\n * so people can optionally code split it out using the `m` component.\n */\n constructor(t) {\n super(t), t.animationState || (t.animationState = J1(t));\n }\n updateAnimationControlsSubscription() {\n const { animate: t } = this.node.getProps();\n this.unmount(), ua(t) && (this.unmount = t.subscribe(this.node));\n }\n /**\n * Subscribe any provided AnimationControls to the component's VisualElement\n */\n mount() {\n this.updateAnimationControlsSubscription();\n }\n update() {\n const { animate: t } = this.node.getProps(), { animate: n } = this.node.prevProps || {};\n t !== n && this.updateAnimationControlsSubscription();\n }\n unmount() {\n }\n}\nlet rb = 0;\nclass ib extends Bn {\n constructor() {\n super(...arguments), this.id = rb++;\n }\n update() {\n if (!this.node.presenceContext)\n return;\n const { isPresent: t, onExitComplete: n, custom: r } = this.node.presenceContext, { isPresent: i } = this.node.prevPresenceContext || {};\n if (!this.node.animationState || t === i)\n return;\n const a = this.node.animationState.setActive(\"exit\", !t, { custom: r ?? this.node.getProps().custom });\n n && !t && a.then(() => n(this.id));\n }\n mount() {\n const { register: t } = this.node.presenceContext || {};\n t && (this.unmount = t(this.id));\n }\n unmount() {\n }\n}\nconst ob = {\n animation: {\n Feature: nb\n },\n exit: {\n Feature: ib\n }\n}, wc = (e, t) => Math.abs(e - t);\nfunction ab(e, t) {\n const n = wc(e.x, t.x), r = wc(e.y, t.y);\n return Math.sqrt(n ** 2 + r ** 2);\n}\nclass pp {\n constructor(t, n, { transformPagePoint: r, contextWindow: i } = {}) {\n if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const m = As(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, b = ab(m.offset, { x: 0, y: 0 }) >= 3;\n if (!f && !b)\n return;\n const { point: x } = m, { timestamp: P } = Dt;\n this.history.push({ ...x, timestamp: P });\n const { onStart: I, onMove: D } = this.handlers;\n f || (I && I(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), D && D(this.lastMoveEvent, m);\n }, this.handlePointerMove = (m, f) => {\n this.lastMoveEvent = m, this.lastMoveEventInfo = Ts(f, this.transformPagePoint), gt.update(this.updatePoint, !0);\n }, this.handlePointerUp = (m, f) => {\n if (this.end(), !(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const { onEnd: b, onSessionEnd: x } = this.handlers, P = As(m.type === \"pointercancel\" ? this.lastMoveEventInfo : Ts(f, this.transformPagePoint), this.history);\n this.startEvent && b && b(m, P), x && x(m, P);\n }, !kd(t))\n return;\n this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;\n const a = da(t), o = Ts(a, this.transformPagePoint), { point: l } = o, { timestamp: d } = Dt;\n this.history = [{ ...l, timestamp: d }];\n const { onSessionStart: c } = n;\n c && c(t, As(o, this.history)), this.removeListeners = An(un(this.contextWindow, \"pointermove\", this.handlePointerMove), un(this.contextWindow, \"pointerup\", this.handlePointerUp), un(this.contextWindow, \"pointercancel\", this.handlePointerUp));\n }\n updateHandlers(t) {\n this.handlers = t;\n }\n end() {\n this.removeListeners && this.removeListeners(), hn(this.updatePoint);\n }\n}\nfunction Ts(e, t) {\n return t ? { point: t(e.point) } : e;\n}\nfunction xc(e, t) {\n return { x: e.x - t.x, y: e.y - t.y };\n}\nfunction As({ point: e }, t) {\n return {\n point: e,\n delta: xc(e, mp(t)),\n offset: xc(e, sb(t)),\n velocity: lb(t, 0.1)\n };\n}\nfunction sb(e) {\n return e[0];\n}\nfunction mp(e) {\n return e[e.length - 1];\n}\nfunction lb(e, t) {\n if (e.length < 2)\n return { x: 0, y: 0 };\n let n = e.length - 1, r = null;\n const i = mp(e);\n for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > En(t))); )\n n--;\n if (!r)\n return { x: 0, y: 0 };\n const a = cn(i.timestamp - r.timestamp);\n if (a === 0)\n return { x: 0, y: 0 };\n const o = {\n x: (i.x - r.x) / a,\n y: (i.y - r.y) / a\n };\n return o.x === 1 / 0 && (o.x = 0), o.y === 1 / 0 && (o.y = 0), o;\n}\nfunction Ut(e) {\n return e.max - e.min;\n}\nfunction sl(e, t = 0, n = 0.01) {\n return Math.abs(e - t) <= n;\n}\nfunction Cc(e, t, n, r = 0.5) {\n e.origin = r, e.originPoint = xt(t.min, t.max, e.origin), e.scale = Ut(n) / Ut(t), (sl(e.scale, 1, 1e-4) || isNaN(e.scale)) && (e.scale = 1), e.translate = xt(n.min, n.max, e.origin) - e.originPoint, (sl(e.translate) || isNaN(e.translate)) && (e.translate = 0);\n}\nfunction Zr(e, t, n, r) {\n Cc(e.x, t.x, n.x, r ? r.originX : void 0), Cc(e.y, t.y, n.y, r ? r.originY : void 0);\n}\nfunction Rc(e, t, n) {\n e.min = n.min + t.min, e.max = e.min + Ut(t);\n}\nfunction ub(e, t, n) {\n Rc(e.x, t.x, n.x), Rc(e.y, t.y, n.y);\n}\nfunction Sc(e, t, n) {\n e.min = t.min - n.min, e.max = e.min + Ut(t);\n}\nfunction Qr(e, t, n) {\n Sc(e.x, t.x, n.x), Sc(e.y, t.y, n.y);\n}\nfunction cb(e, { min: t, max: n }, r) {\n return t !== void 0 && e < t ? e = r ? xt(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? xt(n, e, r.max) : Math.min(e, n)), e;\n}\nfunction Pc(e, t, n) {\n return {\n min: t !== void 0 ? e.min + t : void 0,\n max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0\n };\n}\nfunction fb(e, { top: t, left: n, bottom: r, right: i }) {\n return {\n x: Pc(e.x, n, i),\n y: Pc(e.y, t, r)\n };\n}\nfunction Tc(e, t) {\n let n = t.min - e.min, r = t.max - e.max;\n return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), { min: n, max: r };\n}\nfunction db(e, t) {\n return {\n x: Tc(e.x, t.x),\n y: Tc(e.y, t.y)\n };\n}\nfunction pb(e, t) {\n let n = 0.5;\n const r = Ut(e), i = Ut(t);\n return i > r ? n = li(t.min, t.max - r, e.min) : r > i && (n = li(e.min, e.max - i, t.min)), Mn(0, 1, n);\n}\nfunction mb(e, t) {\n const n = {};\n return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;\n}\nconst ll = 0.35;\nfunction hb(e = ll) {\n return e === !1 ? e = 0 : e === !0 && (e = ll), {\n x: Ac(e, \"left\", \"right\"),\n y: Ac(e, \"top\", \"bottom\")\n };\n}\nfunction Ac(e, t, n) {\n return {\n min: Ec(e, t),\n max: Ec(e, n)\n };\n}\nfunction Ec(e, t) {\n return typeof e == \"number\" ? e : e[t] || 0;\n}\nconst Oc = () => ({\n translate: 0,\n scale: 1,\n origin: 0,\n originPoint: 0\n}), mr = () => ({\n x: Oc(),\n y: Oc()\n}), kc = () => ({ min: 0, max: 0 }), Tt = () => ({\n x: kc(),\n y: kc()\n});\nfunction rn(e) {\n return [e(\"x\"), e(\"y\")];\n}\nfunction hp({ top: e, left: t, right: n, bottom: r }) {\n return {\n x: { min: t, max: n },\n y: { min: e, max: r }\n };\n}\nfunction vb({ x: e, y: t }) {\n return { top: t.min, right: e.max, bottom: t.max, left: e.min };\n}\nfunction gb(e, t) {\n if (!t)\n return e;\n const n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom });\n return {\n top: n.y,\n left: n.x,\n bottom: r.y,\n right: r.x\n };\n}\nfunction Es(e) {\n return e === void 0 || e === 1;\n}\nfunction ul({ scale: e, scaleX: t, scaleY: n }) {\n return !Es(e) || !Es(t) || !Es(n);\n}\nfunction zn(e) {\n return ul(e) || vp(e) || e.z || e.rotate || e.rotateX || e.rotateY;\n}\nfunction vp(e) {\n return Ic(e.x) || Ic(e.y);\n}\nfunction Ic(e) {\n return e && e !== \"0%\";\n}\nfunction Zo(e, t, n) {\n const r = e - n, i = t * r;\n return n + i;\n}\nfunction Mc(e, t, n, r, i) {\n return i !== void 0 && (e = Zo(e, i, r)), Zo(e, n, r) + t;\n}\nfunction cl(e, t = 0, n = 1, r, i) {\n e.min = Mc(e.min, t, n, r, i), e.max = Mc(e.max, t, n, r, i);\n}\nfunction gp(e, { x: t, y: n }) {\n cl(e.x, t.translate, t.scale, t.originPoint), cl(e.y, n.translate, n.scale, n.originPoint);\n}\nfunction yb(e, t, n, r = !1) {\n const i = n.length;\n if (!i)\n return;\n t.x = t.y = 1;\n let a, o;\n for (let l = 0; l < i; l++) {\n a = n[l], o = a.projectionDelta;\n const d = a.instance;\n d && d.style && d.style.display === \"contents\" || (r && a.options.layoutScroll && a.scroll && a !== a.root && hr(e, {\n x: -a.scroll.offset.x,\n y: -a.scroll.offset.y\n }), o && (t.x *= o.x.scale, t.y *= o.y.scale, gp(e, o)), r && zn(a.latestValues) && hr(e, a.latestValues));\n }\n t.x = Fc(t.x), t.y = Fc(t.y);\n}\nfunction Fc(e) {\n return Number.isInteger(e) || e > 1.0000000000001 || e < 0.999999999999 ? e : 1;\n}\nfunction Sn(e, t) {\n e.min = e.min + t, e.max = e.max + t;\n}\nfunction Bc(e, t, [n, r, i]) {\n const a = t[i] !== void 0 ? t[i] : 0.5, o = xt(e.min, e.max, a);\n cl(e, t[n], t[r], o, t.scale);\n}\nconst bb = [\"x\", \"scaleX\", \"originX\"], wb = [\"y\", \"scaleY\", \"originY\"];\nfunction hr(e, t) {\n Bc(e.x, t, bb), Bc(e.y, t, wb);\n}\nfunction yp(e, t) {\n return hp(gb(e.getBoundingClientRect(), t));\n}\nfunction xb(e, t, n) {\n const r = yp(e, n), { scroll: i } = t;\n return i && (Sn(r.x, i.offset.x), Sn(r.y, i.offset.y)), r;\n}\nconst bp = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Cb = /* @__PURE__ */ new WeakMap();\nclass Rb {\n constructor(t) {\n this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Tt(), this.visualElement = t;\n }\n start(t, { snapToCursor: n = !1 } = {}) {\n const { presenceContext: r } = this.visualElement;\n if (r && r.isPresent === !1)\n return;\n const i = (d) => {\n this.stopAnimation(), n && this.snapToCursor(da(d, \"page\").point);\n }, a = (d, c) => {\n const { drag: m, dragPropagation: f, onDragStart: b } = this.getProps();\n if (m && !f && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Md(m), !this.openGlobalLock))\n return;\n this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), rn((P) => {\n let I = this.getAxisMotionValue(P).get() || 0;\n if (an.test(I)) {\n const { projection: D } = this.visualElement;\n if (D && D.layout) {\n const L = D.layout.layoutBox[P];\n L && (I = Ut(L) * (parseFloat(I) / 100));\n }\n }\n this.originPoint[P] = I;\n }), b && gt.update(() => b(d, c), !1, !0);\n const { animationState: x } = this.visualElement;\n x && x.setActive(\"whileDrag\", !0);\n }, o = (d, c) => {\n const { dragPropagation: m, dragDirectionLock: f, onDirectionLock: b, onDrag: x } = this.getProps();\n if (!m && !this.openGlobalLock)\n return;\n const { offset: P } = c;\n if (f && this.currentDirection === null) {\n this.currentDirection = Sb(P), this.currentDirection !== null && b && b(this.currentDirection);\n return;\n }\n this.updateAxis(\"x\", c.point, P), this.updateAxis(\"y\", c.point, P), this.visualElement.render(), x && x(d, c);\n }, l = (d, c) => this.stop(d, c);\n this.panSession = new pp(t, {\n onSessionStart: i,\n onStart: a,\n onMove: o,\n onSessionEnd: l\n }, {\n transformPagePoint: this.visualElement.getTransformPagePoint(),\n contextWindow: bp(this.visualElement)\n });\n }\n stop(t, n) {\n const r = this.isDragging;\n if (this.cancel(), !r)\n return;\n const { velocity: i } = n;\n this.startAnimation(i);\n const { onDragEnd: a } = this.getProps();\n a && gt.update(() => a(t, n));\n }\n cancel() {\n this.isDragging = !1;\n const { projection: t, animationState: n } = this.visualElement;\n t && (t.isAnimationBlocked = !1), this.panSession && this.panSession.end(), this.panSession = void 0;\n const { dragPropagation: r } = this.getProps();\n !r && this.openGlobalLock && (this.openGlobalLock(), this.openGlobalLock = null), n && n.setActive(\"whileDrag\", !1);\n }\n updateAxis(t, n, r) {\n const { drag: i } = this.getProps();\n if (!r || !Ao(t, i, this.currentDirection))\n return;\n const a = this.getAxisMotionValue(t);\n let o = this.originPoint[t] + r[t];\n this.constraints && this.constraints[t] && (o = cb(o, this.constraints[t], this.elastic[t])), a.set(o);\n }\n resolveConstraints() {\n var t;\n const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, a = this.constraints;\n n && dr(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = fb(i.layoutBox, n) : this.constraints = !1, this.elastic = hb(r), a !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && rn((o) => {\n this.getAxisMotionValue(o) && (this.constraints[o] = mb(i.layoutBox[o], this.constraints[o]));\n });\n }\n resolveRefConstraints() {\n const { dragConstraints: t, onMeasureDragConstraints: n } = this.getProps();\n if (!t || !dr(t))\n return !1;\n const r = t.current;\n Jt(r !== null, \"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.\");\n const { projection: i } = this.visualElement;\n if (!i || !i.layout)\n return !1;\n const a = xb(r, i.root, this.visualElement.getTransformPagePoint());\n let o = db(i.layout.layoutBox, a);\n if (n) {\n const l = n(vb(o));\n this.hasMutatedConstraints = !!l, l && (o = hp(l));\n }\n return o;\n }\n startAnimation(t) {\n const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: a, dragSnapToOrigin: o, onDragTransitionEnd: l } = this.getProps(), d = this.constraints || {}, c = rn((m) => {\n if (!Ao(m, n, this.currentDirection))\n return;\n let f = d && d[m] || {};\n o && (f = { min: 0, max: 0 });\n const b = i ? 200 : 1e6, x = i ? 40 : 1e7, P = {\n type: \"inertia\",\n velocity: r ? t[m] : 0,\n bounceStiffness: b,\n bounceDamping: x,\n timeConstant: 750,\n restDelta: 1,\n restSpeed: 10,\n ...a,\n ...f\n };\n return this.startAxisValueAnimation(m, P);\n });\n return Promise.all(c).then(l);\n }\n startAxisValueAnimation(t, n) {\n const r = this.getAxisMotionValue(t);\n return r.start(tu(t, r, 0, n));\n }\n stopAnimation() {\n rn((t) => this.getAxisMotionValue(t).stop());\n }\n /**\n * Drag works differently depending on which props are provided.\n *\n * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.\n * - Otherwise, we apply the delta to the x/y motion values.\n */\n getAxisMotionValue(t) {\n const n = \"_drag\" + t.toUpperCase(), r = this.visualElement.getProps(), i = r[n];\n return i || this.visualElement.getValue(t, (r.initial ? r.initial[t] : void 0) || 0);\n }\n snapToCursor(t) {\n rn((n) => {\n const { drag: r } = this.getProps();\n if (!Ao(n, r, this.currentDirection))\n return;\n const { projection: i } = this.visualElement, a = this.getAxisMotionValue(n);\n if (i && i.layout) {\n const { min: o, max: l } = i.layout.layoutBox[n];\n a.set(t[n] - xt(o, l, 0.5));\n }\n });\n }\n /**\n * When the viewport resizes we want to check if the measured constraints\n * have changed and, if so, reposition the element within those new constraints\n * relative to where it was before the resize.\n */\n scalePositionWithinConstraints() {\n if (!this.visualElement.current)\n return;\n const { drag: t, dragConstraints: n } = this.getProps(), { projection: r } = this.visualElement;\n if (!dr(n) || !r || !this.constraints)\n return;\n this.stopAnimation();\n const i = { x: 0, y: 0 };\n rn((o) => {\n const l = this.getAxisMotionValue(o);\n if (l) {\n const d = l.get();\n i[o] = pb({ min: d, max: d }, this.constraints[o]);\n }\n });\n const { transformTemplate: a } = this.visualElement.getProps();\n this.visualElement.current.style.transform = a ? a({}, \"\") : \"none\", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), rn((o) => {\n if (!Ao(o, t, null))\n return;\n const l = this.getAxisMotionValue(o), { min: d, max: c } = this.constraints[o];\n l.set(xt(d, c, i[o]));\n });\n }\n addListeners() {\n if (!this.visualElement.current)\n return;\n Cb.set(this.visualElement, this);\n const t = this.visualElement.current, n = un(t, \"pointerdown\", (d) => {\n const { drag: c, dragListener: m = !0 } = this.getProps();\n c && m && this.start(d);\n }), r = () => {\n const { dragConstraints: d } = this.getProps();\n dr(d) && (this.constraints = this.resolveRefConstraints());\n }, { projection: i } = this.visualElement, a = i.addEventListener(\"measure\", r);\n i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), r();\n const o = ln(window, \"resize\", () => this.scalePositionWithinConstraints()), l = i.addEventListener(\"didUpdate\", ({ delta: d, hasLayoutChanged: c }) => {\n this.isDragging && c && (rn((m) => {\n const f = this.getAxisMotionValue(m);\n f && (this.originPoint[m] += d[m].translate, f.set(f.get() + d[m].translate));\n }), this.visualElement.render());\n });\n return () => {\n o(), n(), a(), l && l();\n };\n }\n getProps() {\n const t = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: r = !1, dragPropagation: i = !1, dragConstraints: a = !1, dragElastic: o = ll, dragMomentum: l = !0 } = t;\n return {\n ...t,\n drag: n,\n dragDirectionLock: r,\n dragPropagation: i,\n dragConstraints: a,\n dragElastic: o,\n dragMomentum: l\n };\n }\n}\nfunction Ao(e, t, n) {\n return (t === !0 || t === e) && (n === null || n === e);\n}\nfunction Sb(e, t = 10) {\n let n = null;\n return Math.abs(e.y) > t ? n = \"y\" : Math.abs(e.x) > t && (n = \"x\"), n;\n}\nclass Pb extends Bn {\n constructor(t) {\n super(t), this.removeGroupControls = St, this.removeListeners = St, this.controls = new Rb(t);\n }\n mount() {\n const { dragControls: t } = this.node.getProps();\n t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || St;\n }\n unmount() {\n this.removeGroupControls(), this.removeListeners();\n }\n}\nconst Dc = (e) => (t, n) => {\n e && gt.update(() => e(t, n));\n};\nclass Tb extends Bn {\n constructor() {\n super(...arguments), this.removePointerDownListener = St;\n }\n onPointerDown(t) {\n this.session = new pp(t, this.createPanHandlers(), {\n transformPagePoint: this.node.getTransformPagePoint(),\n contextWindow: bp(this.node)\n });\n }\n createPanHandlers() {\n const { onPanSessionStart: t, onPanStart: n, onPan: r, onPanEnd: i } = this.node.getProps();\n return {\n onSessionStart: Dc(t),\n onStart: Dc(n),\n onMove: r,\n onEnd: (a, o) => {\n delete this.session, i && gt.update(() => i(a, o));\n }\n };\n }\n mount() {\n this.removePointerDownListener = un(this.node.current, \"pointerdown\", (t) => this.onPointerDown(t));\n }\n update() {\n this.session && this.session.updateHandlers(this.createPanHandlers());\n }\n unmount() {\n this.removePointerDownListener(), this.session && this.session.end();\n }\n}\nfunction Ab() {\n const e = wt(sa);\n if (e === null)\n return [!0, null];\n const { isPresent: t, onExitComplete: n, register: r } = e, i = hl();\n return Wt(() => r(i), []), !t && n ? [!1, () => n && n(i)] : [!0];\n}\nconst Bo = {\n /**\n * Global flag as to whether the tree has animated since the last time\n * we resized the window\n */\n hasAnimatedSinceResize: !0,\n /**\n * We set this to true once, on the first update. Any nodes added to the tree beyond that\n * update will be given a `data-projection-id` attribute.\n */\n hasEverUpdated: !1\n};\nfunction Nc(e, t) {\n return t.max === t.min ? 0 : e / (t.max - t.min) * 100;\n}\nconst zr = {\n correct: (e, t) => {\n if (!t.target)\n return e;\n if (typeof e == \"string\")\n if (ze.test(e))\n e = parseFloat(e);\n else\n return e;\n const n = Nc(e, t.target.x), r = Nc(e, t.target.y);\n return `${n}% ${r}%`;\n }\n}, Eb = {\n correct: (e, { treeScale: t, projectionDelta: n }) => {\n const r = e, i = Fn.parse(e);\n if (i.length > 5)\n return r;\n const a = Fn.createTransformer(e), o = typeof i[0] != \"number\" ? 1 : 0, l = n.x.scale * t.x, d = n.y.scale * t.y;\n i[0 + o] /= l, i[1 + o] /= d;\n const c = xt(l, d, 0.5);\n return typeof i[2 + o] == \"number\" && (i[2 + o] /= c), typeof i[3 + o] == \"number\" && (i[3 + o] /= c), a(i);\n }\n};\nclass Ob extends vn.Component {\n /**\n * This only mounts projection nodes for components that\n * need measuring, we might want to do it for all components\n * in order to incorporate transforms\n */\n componentDidMount() {\n const { visualElement: t, layoutGroup: n, switchLayoutGroup: r, layoutId: i } = this.props, { projection: a } = t;\n $y(kb), a && (n.group && n.group.add(a), r && r.register && i && r.register(a), a.root.didUpdate(), a.addEventListener(\"animationComplete\", () => {\n this.safeToRemove();\n }), a.setOptions({\n ...a.options,\n onExitComplete: () => this.safeToRemove()\n })), Bo.hasEverUpdated = !0;\n }\n getSnapshotBeforeUpdate(t) {\n const { layoutDependency: n, visualElement: r, drag: i, isPresent: a } = this.props, o = r.projection;\n return o && (o.isPresent = a, i || t.layoutDependency !== n || n === void 0 ? o.willUpdate() : this.safeToRemove(), t.isPresent !== a && (a ? o.promote() : o.relegate() || gt.postRender(() => {\n const l = o.getStack();\n (!l || !l.members.length) && this.safeToRemove();\n }))), null;\n }\n componentDidUpdate() {\n const { projection: t } = this.props.visualElement;\n t && (t.root.didUpdate(), queueMicrotask(() => {\n !t.currentAnimation && t.isLead() && this.safeToRemove();\n }));\n }\n componentWillUnmount() {\n const { visualElement: t, layoutGroup: n, switchLayoutGroup: r } = this.props, { projection: i } = t;\n i && (i.scheduleCheckAfterUnmount(), n && n.group && n.group.remove(i), r && r.deregister && r.deregister(i));\n }\n safeToRemove() {\n const { safeToRemove: t } = this.props;\n t && t();\n }\n render() {\n return null;\n }\n}\nfunction wp(e) {\n const [t, n] = Ab(), r = wt(jl);\n return vn.createElement(Ob, { ...e, layoutGroup: r, switchLayoutGroup: wt(hd), isPresent: t, safeToRemove: n });\n}\nconst kb = {\n borderRadius: {\n ...zr,\n applyTo: [\n \"borderTopLeftRadius\",\n \"borderTopRightRadius\",\n \"borderBottomLeftRadius\",\n \"borderBottomRightRadius\"\n ]\n },\n borderTopLeftRadius: zr,\n borderTopRightRadius: zr,\n borderBottomLeftRadius: zr,\n borderBottomRightRadius: zr,\n boxShadow: Eb\n}, xp = [\"TopLeft\", \"TopRight\", \"BottomLeft\", \"BottomRight\"], Ib = xp.length, Lc = (e) => typeof e == \"string\" ? parseFloat(e) : e, $c = (e) => typeof e == \"number\" || ze.test(e);\nfunction Mb(e, t, n, r, i, a) {\n i ? (e.opacity = xt(\n 0,\n // TODO Reinstate this if only child\n n.opacity !== void 0 ? n.opacity : 1,\n Fb(r)\n ), e.opacityExit = xt(t.opacity !== void 0 ? t.opacity : 1, 0, Bb(r))) : a && (e.opacity = xt(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));\n for (let o = 0; o < Ib; o++) {\n const l = `border${xp[o]}Radius`;\n let d = _c(t, l), c = _c(n, l);\n if (d === void 0 && c === void 0)\n continue;\n d || (d = 0), c || (c = 0), d === 0 || c === 0 || $c(d) === $c(c) ? (e[l] = Math.max(xt(Lc(d), Lc(c), r), 0), (an.test(c) || an.test(d)) && (e[l] += \"%\")) : e[l] = c;\n }\n (t.rotate || n.rotate) && (e.rotate = xt(t.rotate || 0, n.rotate || 0, r));\n}\nfunction _c(e, t) {\n return e[t] !== void 0 ? e[t] : e.borderRadius;\n}\nconst Fb = Cp(0, 0.5, Hd), Bb = Cp(0.5, 0.95, St);\nfunction Cp(e, t, n) {\n return (r) => r < e ? 0 : r > t ? 1 : n(li(e, t, r));\n}\nfunction Vc(e, t) {\n e.min = t.min, e.max = t.max;\n}\nfunction Yt(e, t) {\n Vc(e.x, t.x), Vc(e.y, t.y);\n}\nfunction Gc(e, t, n, r, i) {\n return e -= t, e = Zo(e, 1 / n, r), i !== void 0 && (e = Zo(e, 1 / i, r)), e;\n}\nfunction Db(e, t = 0, n = 1, r = 0.5, i, a = e, o = e) {\n if (an.test(t) && (t = parseFloat(t), t = xt(o.min, o.max, t / 100) - o.min), typeof t != \"number\")\n return;\n let l = xt(a.min, a.max, r);\n e === a && (l -= t), e.min = Gc(e.min, t, n, l, i), e.max = Gc(e.max, t, n, l, i);\n}\nfunction jc(e, t, [n, r, i], a, o) {\n Db(e, t[n], t[r], t[i], t.scale, a, o);\n}\nconst Nb = [\"x\", \"scaleX\", \"originX\"], Lb = [\"y\", \"scaleY\", \"originY\"];\nfunction zc(e, t, n, r) {\n jc(e.x, t, Nb, n ? n.x : void 0, r ? r.x : void 0), jc(e.y, t, Lb, n ? n.y : void 0, r ? r.y : void 0);\n}\nfunction Hc(e) {\n return e.translate === 0 && e.scale === 1;\n}\nfunction Rp(e) {\n return Hc(e.x) && Hc(e.y);\n}\nfunction $b(e, t) {\n return e.x.min === t.x.min && e.x.max === t.x.max && e.y.min === t.y.min && e.y.max === t.y.max;\n}\nfunction Sp(e, t) {\n return Math.round(e.x.min) === Math.round(t.x.min) && Math.round(e.x.max) === Math.round(t.x.max) && Math.round(e.y.min) === Math.round(t.y.min) && Math.round(e.y.max) === Math.round(t.y.max);\n}\nfunction Wc(e) {\n return Ut(e.x) / Ut(e.y);\n}\nclass _b {\n constructor() {\n this.members = [];\n }\n add(t) {\n nu(this.members, t), t.scheduleRender();\n }\n remove(t) {\n if (ru(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) {\n const n = this.members[this.members.length - 1];\n n && this.promote(n);\n }\n }\n relegate(t) {\n const n = this.members.findIndex((i) => t === i);\n if (n === 0)\n return !1;\n let r;\n for (let i = n; i >= 0; i--) {\n const a = this.members[i];\n if (a.isPresent !== !1) {\n r = a;\n break;\n }\n }\n return r ? (this.promote(r), !0) : !1;\n }\n promote(t, n) {\n const r = this.lead;\n if (t !== r && (this.prevLead = r, this.lead = t, t.show(), r)) {\n r.instance && r.scheduleRender(), t.scheduleRender(), t.resumeFrom = r, n && (t.resumeFrom.preserveOpacity = !0), r.snapshot && (t.snapshot = r.snapshot, t.snapshot.latestValues = r.animationValues || r.latestValues), t.root && t.root.isUpdating && (t.isLayoutDirty = !0);\n const { crossfade: i } = t.options;\n i === !1 && r.hide();\n }\n }\n exitAnimationComplete() {\n this.members.forEach((t) => {\n const { options: n, resumingFrom: r } = t;\n n.onExitComplete && n.onExitComplete(), r && r.options.onExitComplete && r.options.onExitComplete();\n });\n }\n scheduleRender() {\n this.members.forEach((t) => {\n t.instance && t.scheduleRender(!1);\n });\n }\n /**\n * Clear any leads that have been removed this render to prevent them from being\n * used in future animations and to prevent memory leaks\n */\n removeLeadSnapshot() {\n this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);\n }\n}\nfunction Uc(e, t, n) {\n let r = \"\";\n const i = e.x.translate / t.x, a = e.y.translate / t.y;\n if ((i || a) && (r = `translate3d(${i}px, ${a}px, 0) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {\n const { rotate: d, rotateX: c, rotateY: m } = n;\n d && (r += `rotate(${d}deg) `), c && (r += `rotateX(${c}deg) `), m && (r += `rotateY(${m}deg) `);\n }\n const o = e.x.scale * t.x, l = e.y.scale * t.y;\n return (o !== 1 || l !== 1) && (r += `scale(${o}, ${l})`), r || \"none\";\n}\nconst Vb = (e, t) => e.depth - t.depth;\nclass Gb {\n constructor() {\n this.children = [], this.isDirty = !1;\n }\n add(t) {\n nu(this.children, t), this.isDirty = !0;\n }\n remove(t) {\n ru(this.children, t), this.isDirty = !0;\n }\n forEach(t) {\n this.isDirty && this.children.sort(Vb), this.isDirty = !1, this.children.forEach(t);\n }\n}\nfunction jb(e, t) {\n const n = performance.now(), r = ({ timestamp: i }) => {\n const a = i - n;\n a >= t && (hn(r), e(a - t));\n };\n return gt.read(r, !0), () => hn(r);\n}\nfunction zb(e) {\n window.MotionDebug && window.MotionDebug.record(e);\n}\nfunction Hb(e) {\n return e instanceof SVGElement && e.tagName !== \"svg\";\n}\nfunction Wb(e, t, n) {\n const r = zt(e) ? e : yr(e);\n return r.start(tu(\"\", r, t, n)), r.animation;\n}\nconst qc = [\"\", \"X\", \"Y\", \"Z\"], Ub = { visibility: \"hidden\" }, Yc = 1e3;\nlet qb = 0;\nconst Hn = {\n type: \"projectionFrame\",\n totalNodes: 0,\n resolvedTargetDeltas: 0,\n recalculatedProjection: 0\n};\nfunction Pp({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {\n return class {\n constructor(o = {}, l = t == null ? void 0 : t()) {\n this.id = qb++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {\n this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());\n }, this.updateProjection = () => {\n this.projectionUpdateScheduled = !1, Hn.totalNodes = Hn.resolvedTargetDeltas = Hn.recalculatedProjection = 0, this.nodes.forEach(Xb), this.nodes.forEach(tw), this.nodes.forEach(nw), this.nodes.forEach(Zb), zb(Hn);\n }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = o, this.root = l ? l.root || l : this, this.path = l ? [...l.path, l] : [], this.parent = l, this.depth = l ? l.depth + 1 : 0;\n for (let d = 0; d < this.path.length; d++)\n this.path[d].shouldResetTransform = !0;\n this.root === this && (this.nodes = new Gb());\n }\n addEventListener(o, l) {\n return this.eventHandlers.has(o) || this.eventHandlers.set(o, new iu()), this.eventHandlers.get(o).add(l);\n }\n notifyListeners(o, ...l) {\n const d = this.eventHandlers.get(o);\n d && d.notify(...l);\n }\n hasListeners(o) {\n return this.eventHandlers.has(o);\n }\n /**\n * Lifecycles\n */\n mount(o, l = this.root.hasTreeAnimated) {\n if (this.instance)\n return;\n this.isSVG = Hb(o), this.instance = o;\n const { layoutId: d, layout: c, visualElement: m } = this.options;\n if (m && !m.current && m.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), l && (c || d) && (this.isLayoutDirty = !0), e) {\n let f;\n const b = () => this.root.updateBlockedByResize = !1;\n e(o, () => {\n this.root.updateBlockedByResize = !0, f && f(), f = jb(b, 250), Bo.hasAnimatedSinceResize && (Bo.hasAnimatedSinceResize = !1, this.nodes.forEach(Xc));\n });\n }\n d && this.root.registerSharedNode(d, this), this.options.animate !== !1 && m && (d || c) && this.addEventListener(\"didUpdate\", ({ delta: f, hasLayoutChanged: b, hasRelativeTargetChanged: x, layout: P }) => {\n if (this.isTreeAnimationBlocked()) {\n this.target = void 0, this.relativeTarget = void 0;\n return;\n }\n const I = this.options.transition || m.getDefaultTransition() || sw, { onLayoutAnimationStart: D, onLayoutAnimationComplete: L } = m.getProps(), M = !this.targetLayout || !Sp(this.targetLayout, P) || x, F = !b && x;\n if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || F || b && (M || !this.currentAnimation)) {\n this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, F);\n const j = {\n ...eu(I, \"layout\"),\n onPlay: D,\n onComplete: L\n };\n (m.shouldReduceMotion || this.options.layoutRoot) && (j.delay = 0, j.type = !1), this.startAnimation(j);\n } else\n b || Xc(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();\n this.targetLayout = P;\n });\n }\n unmount() {\n this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);\n const o = this.getStack();\n o && o.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, hn(this.updateProjection);\n }\n // only on the root\n blockUpdate() {\n this.updateManuallyBlocked = !0;\n }\n unblockUpdate() {\n this.updateManuallyBlocked = !1;\n }\n isUpdateBlocked() {\n return this.updateManuallyBlocked || this.updateBlockedByResize;\n }\n isTreeAnimationBlocked() {\n return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;\n }\n // Note: currently only running on root node\n startUpdate() {\n this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(rw), this.animationId++);\n }\n getTransformTemplate() {\n const { visualElement: o } = this.options;\n return o && o.getProps().transformTemplate;\n }\n willUpdate(o = !0) {\n if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {\n this.options.onExitComplete && this.options.onExitComplete();\n return;\n }\n if (!this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)\n return;\n this.isLayoutDirty = !0;\n for (let m = 0; m < this.path.length; m++) {\n const f = this.path[m];\n f.shouldResetTransform = !0, f.updateScroll(\"snapshot\"), f.options.layoutRoot && f.willUpdate(!1);\n }\n const { layoutId: l, layout: d } = this.options;\n if (l === void 0 && !d)\n return;\n const c = this.getTransformTemplate();\n this.prevTransformTemplateValue = c ? c(this.latestValues, \"\") : void 0, this.updateSnapshot(), o && this.notifyListeners(\"willUpdate\");\n }\n update() {\n if (this.updateScheduled = !1, this.isUpdateBlocked()) {\n this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Kc);\n return;\n }\n this.isUpdating || this.nodes.forEach(Jb), this.isUpdating = !1, this.nodes.forEach(ew), this.nodes.forEach(Yb), this.nodes.forEach(Kb), this.clearAllSnapshots();\n const l = performance.now();\n Dt.delta = Mn(0, 1e3 / 60, l - Dt.timestamp), Dt.timestamp = l, Dt.isProcessing = !0, ys.update.process(Dt), ys.preRender.process(Dt), ys.render.process(Dt), Dt.isProcessing = !1;\n }\n didUpdate() {\n this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update()));\n }\n clearAllSnapshots() {\n this.nodes.forEach(Qb), this.sharedNodes.forEach(iw);\n }\n scheduleUpdateProjection() {\n this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, gt.preRender(this.updateProjection, !1, !0));\n }\n scheduleCheckAfterUnmount() {\n gt.postRender(() => {\n this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();\n });\n }\n /**\n * Update measurements\n */\n updateSnapshot() {\n this.snapshot || !this.instance || (this.snapshot = this.measure());\n }\n updateLayout() {\n if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))\n return;\n if (this.resumeFrom && !this.resumeFrom.instance)\n for (let d = 0; d < this.path.length; d++)\n this.path[d].updateScroll();\n const o = this.layout;\n this.layout = this.measure(!1), this.layoutCorrected = Tt(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners(\"measure\", this.layout.layoutBox);\n const { visualElement: l } = this.options;\n l && l.notify(\"LayoutMeasure\", this.layout.layoutBox, o ? o.layoutBox : void 0);\n }\n updateScroll(o = \"measure\") {\n let l = !!(this.options.layoutScroll && this.instance);\n this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === o && (l = !1), l && (this.scroll = {\n animationId: this.root.animationId,\n phase: o,\n isRoot: r(this.instance),\n offset: n(this.instance)\n });\n }\n resetTransform() {\n if (!i)\n return;\n const o = this.isLayoutDirty || this.shouldResetTransform, l = this.projectionDelta && !Rp(this.projectionDelta), d = this.getTransformTemplate(), c = d ? d(this.latestValues, \"\") : void 0, m = c !== this.prevTransformTemplateValue;\n o && (l || zn(this.latestValues) || m) && (i(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());\n }\n measure(o = !0) {\n const l = this.measurePageBox();\n let d = this.removeElementScroll(l);\n return o && (d = this.removeTransform(d)), lw(d), {\n animationId: this.root.animationId,\n measuredBox: l,\n layoutBox: d,\n latestValues: {},\n source: this.id\n };\n }\n measurePageBox() {\n const { visualElement: o } = this.options;\n if (!o)\n return Tt();\n const l = o.measureViewportBox(), { scroll: d } = this.root;\n return d && (Sn(l.x, d.offset.x), Sn(l.y, d.offset.y)), l;\n }\n removeElementScroll(o) {\n const l = Tt();\n Yt(l, o);\n for (let d = 0; d < this.path.length; d++) {\n const c = this.path[d], { scroll: m, options: f } = c;\n if (c !== this.root && m && f.layoutScroll) {\n if (m.isRoot) {\n Yt(l, o);\n const { scroll: b } = this.root;\n b && (Sn(l.x, -b.offset.x), Sn(l.y, -b.offset.y));\n }\n Sn(l.x, m.offset.x), Sn(l.y, m.offset.y);\n }\n }\n return l;\n }\n applyTransform(o, l = !1) {\n const d = Tt();\n Yt(d, o);\n for (let c = 0; c < this.path.length; c++) {\n const m = this.path[c];\n !l && m.options.layoutScroll && m.scroll && m !== m.root && hr(d, {\n x: -m.scroll.offset.x,\n y: -m.scroll.offset.y\n }), zn(m.latestValues) && hr(d, m.latestValues);\n }\n return zn(this.latestValues) && hr(d, this.latestValues), d;\n }\n removeTransform(o) {\n const l = Tt();\n Yt(l, o);\n for (let d = 0; d < this.path.length; d++) {\n const c = this.path[d];\n if (!c.instance || !zn(c.latestValues))\n continue;\n ul(c.latestValues) && c.updateSnapshot();\n const m = Tt(), f = c.measurePageBox();\n Yt(m, f), zc(l, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, m);\n }\n return zn(this.latestValues) && zc(l, this.latestValues), l;\n }\n setTargetDelta(o) {\n this.targetDelta = o, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;\n }\n setOptions(o) {\n this.options = {\n ...this.options,\n ...o,\n crossfade: o.crossfade !== void 0 ? o.crossfade : !0\n };\n }\n clearMeasurements() {\n this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;\n }\n forceRelativeParentToResolveTarget() {\n this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== Dt.timestamp && this.relativeParent.resolveTargetDelta(!0);\n }\n resolveTargetDelta(o = !1) {\n var l;\n const d = this.getLead();\n this.isProjectionDirty || (this.isProjectionDirty = d.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = d.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = d.isSharedProjectionDirty);\n const c = !!this.resumingFrom || this !== d;\n if (!(o || c && this.isSharedProjectionDirty || this.isProjectionDirty || !((l = this.parent) === null || l === void 0) && l.isProjectionDirty || this.attemptToResolveRelativeTarget))\n return;\n const { layout: f, layoutId: b } = this.options;\n if (!(!this.layout || !(f || b))) {\n if (this.resolvedRelativeTargetAt = Dt.timestamp, !this.targetDelta && !this.relativeTarget) {\n const x = this.getClosestProjectingParent();\n x && x.layout && this.animationProgress !== 1 ? (this.relativeParent = x, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Tt(), this.relativeTargetOrigin = Tt(), Qr(this.relativeTargetOrigin, this.layout.layoutBox, x.layout.layoutBox), Yt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;\n }\n if (!(!this.relativeTarget && !this.targetDelta)) {\n if (this.target || (this.target = Tt(), this.targetWithTransforms = Tt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), ub(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Yt(this.target, this.layout.layoutBox), gp(this.target, this.targetDelta)) : Yt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {\n this.attemptToResolveRelativeTarget = !1;\n const x = this.getClosestProjectingParent();\n x && !!x.resumingFrom == !!this.resumingFrom && !x.options.layoutScroll && x.target && this.animationProgress !== 1 ? (this.relativeParent = x, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Tt(), this.relativeTargetOrigin = Tt(), Qr(this.relativeTargetOrigin, this.target, x.target), Yt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;\n }\n Hn.resolvedTargetDeltas++;\n }\n }\n }\n getClosestProjectingParent() {\n if (!(!this.parent || ul(this.parent.latestValues) || vp(this.parent.latestValues)))\n return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();\n }\n isProjecting() {\n return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);\n }\n calcProjection() {\n var o;\n const l = this.getLead(), d = !!this.resumingFrom || this !== l;\n let c = !0;\n if ((this.isProjectionDirty || !((o = this.parent) === null || o === void 0) && o.isProjectionDirty) && (c = !1), d && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === Dt.timestamp && (c = !1), c)\n return;\n const { layout: m, layoutId: f } = this.options;\n if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(m || f))\n return;\n Yt(this.layoutCorrected, this.layout.layoutBox);\n const b = this.treeScale.x, x = this.treeScale.y;\n yb(this.layoutCorrected, this.treeScale, this.path, d), l.layout && !l.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (l.target = l.layout.layoutBox);\n const { target: P } = l;\n if (!P) {\n this.projectionTransform && (this.projectionDelta = mr(), this.projectionTransform = \"none\", this.scheduleRender());\n return;\n }\n this.projectionDelta || (this.projectionDelta = mr(), this.projectionDeltaWithTransform = mr());\n const I = this.projectionTransform;\n Zr(this.projectionDelta, this.layoutCorrected, P, this.latestValues), this.projectionTransform = Uc(this.projectionDelta, this.treeScale), (this.projectionTransform !== I || this.treeScale.x !== b || this.treeScale.y !== x) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners(\"projectionUpdate\", P)), Hn.recalculatedProjection++;\n }\n hide() {\n this.isVisible = !1;\n }\n show() {\n this.isVisible = !0;\n }\n scheduleRender(o = !0) {\n if (this.options.scheduleRender && this.options.scheduleRender(), o) {\n const l = this.getStack();\n l && l.scheduleRender();\n }\n this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);\n }\n setAnimationOrigin(o, l = !1) {\n const d = this.snapshot, c = d ? d.latestValues : {}, m = { ...this.latestValues }, f = mr();\n (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !l;\n const b = Tt(), x = d ? d.source : void 0, P = this.layout ? this.layout.source : void 0, I = x !== P, D = this.getStack(), L = !D || D.members.length <= 1, M = !!(I && !L && this.options.crossfade === !0 && !this.path.some(aw));\n this.animationProgress = 0;\n let F;\n this.mixTargetDelta = (j) => {\n const B = j / 1e3;\n Zc(f.x, o.x, B), Zc(f.y, o.y, B), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Qr(b, this.layout.layoutBox, this.relativeParent.layout.layoutBox), ow(this.relativeTarget, this.relativeTargetOrigin, b, B), F && $b(this.relativeTarget, F) && (this.isProjectionDirty = !1), F || (F = Tt()), Yt(F, this.relativeTarget)), I && (this.animationValues = m, Mb(m, c, this.latestValues, B, M, L)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = B;\n }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);\n }\n startAnimation(o) {\n this.notifyListeners(\"animationStart\"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (hn(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = gt.update(() => {\n Bo.hasAnimatedSinceResize = !0, this.currentAnimation = Wb(0, Yc, {\n ...o,\n onUpdate: (l) => {\n this.mixTargetDelta(l), o.onUpdate && o.onUpdate(l);\n },\n onComplete: () => {\n o.onComplete && o.onComplete(), this.completeAnimation();\n }\n }), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;\n });\n }\n completeAnimation() {\n this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);\n const o = this.getStack();\n o && o.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners(\"animationComplete\");\n }\n finishAnimation() {\n this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Yc), this.currentAnimation.stop()), this.completeAnimation();\n }\n applyTransformsToTarget() {\n const o = this.getLead();\n let { targetWithTransforms: l, target: d, layout: c, latestValues: m } = o;\n if (!(!l || !d || !c)) {\n if (this !== o && this.layout && c && Tp(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {\n d = this.target || Tt();\n const f = Ut(this.layout.layoutBox.x);\n d.x.min = o.target.x.min, d.x.max = d.x.min + f;\n const b = Ut(this.layout.layoutBox.y);\n d.y.min = o.target.y.min, d.y.max = d.y.min + b;\n }\n Yt(l, d), hr(l, m), Zr(this.projectionDeltaWithTransform, this.layoutCorrected, l, m);\n }\n }\n registerSharedNode(o, l) {\n this.sharedNodes.has(o) || this.sharedNodes.set(o, new _b()), this.sharedNodes.get(o).add(l);\n const c = l.options.initialPromotionConfig;\n l.promote({\n transition: c ? c.transition : void 0,\n preserveFollowOpacity: c && c.shouldPreserveFollowOpacity ? c.shouldPreserveFollowOpacity(l) : void 0\n });\n }\n isLead() {\n const o = this.getStack();\n return o ? o.lead === this : !0;\n }\n getLead() {\n var o;\n const { layoutId: l } = this.options;\n return l ? ((o = this.getStack()) === null || o === void 0 ? void 0 : o.lead) || this : this;\n }\n getPrevLead() {\n var o;\n const { layoutId: l } = this.options;\n return l ? (o = this.getStack()) === null || o === void 0 ? void 0 : o.prevLead : void 0;\n }\n getStack() {\n const { layoutId: o } = this.options;\n if (o)\n return this.root.sharedNodes.get(o);\n }\n promote({ needsReset: o, transition: l, preserveFollowOpacity: d } = {}) {\n const c = this.getStack();\n c && c.promote(this, d), o && (this.projectionDelta = void 0, this.needsReset = !0), l && this.setOptions({ transition: l });\n }\n relegate() {\n const o = this.getStack();\n return o ? o.relegate(this) : !1;\n }\n resetRotation() {\n const { visualElement: o } = this.options;\n if (!o)\n return;\n let l = !1;\n const { latestValues: d } = o;\n if ((d.rotate || d.rotateX || d.rotateY || d.rotateZ) && (l = !0), !l)\n return;\n const c = {};\n for (let m = 0; m < qc.length; m++) {\n const f = \"rotate\" + qc[m];\n d[f] && (c[f] = d[f], o.setStaticValue(f, 0));\n }\n o.render();\n for (const m in c)\n o.setStaticValue(m, c[m]);\n o.scheduleRender();\n }\n getProjectionStyles(o) {\n var l, d;\n if (!this.instance || this.isSVG)\n return;\n if (!this.isVisible)\n return Ub;\n const c = {\n visibility: \"\"\n }, m = this.getTransformTemplate();\n if (this.needsReset)\n return this.needsReset = !1, c.opacity = \"\", c.pointerEvents = Fo(o == null ? void 0 : o.pointerEvents) || \"\", c.transform = m ? m(this.latestValues, \"\") : \"none\", c;\n const f = this.getLead();\n if (!this.projectionDelta || !this.layout || !f.target) {\n const I = {};\n return this.options.layoutId && (I.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, I.pointerEvents = Fo(o == null ? void 0 : o.pointerEvents) || \"\"), this.hasProjected && !zn(this.latestValues) && (I.transform = m ? m({}, \"\") : \"none\", this.hasProjected = !1), I;\n }\n const b = f.animationValues || f.latestValues;\n this.applyTransformsToTarget(), c.transform = Uc(this.projectionDeltaWithTransform, this.treeScale, b), m && (c.transform = m(b, c.transform));\n const { x, y: P } = this.projectionDelta;\n c.transformOrigin = `${x.origin * 100}% ${P.origin * 100}% 0`, f.animationValues ? c.opacity = f === this ? (d = (l = b.opacity) !== null && l !== void 0 ? l : this.latestValues.opacity) !== null && d !== void 0 ? d : 1 : this.preserveOpacity ? this.latestValues.opacity : b.opacityExit : c.opacity = f === this ? b.opacity !== void 0 ? b.opacity : \"\" : b.opacityExit !== void 0 ? b.opacityExit : 0;\n for (const I in Ho) {\n if (b[I] === void 0)\n continue;\n const { correct: D, applyTo: L } = Ho[I], M = c.transform === \"none\" ? b[I] : D(b[I], f);\n if (L) {\n const F = L.length;\n for (let j = 0; j < F; j++)\n c[L[j]] = M;\n } else\n c[I] = M;\n }\n return this.options.layoutId && (c.pointerEvents = f === this ? Fo(o == null ? void 0 : o.pointerEvents) || \"\" : \"none\"), c;\n }\n clearSnapshot() {\n this.resumeFrom = this.snapshot = void 0;\n }\n // Only run on root\n resetTree() {\n this.root.nodes.forEach((o) => {\n var l;\n return (l = o.currentAnimation) === null || l === void 0 ? void 0 : l.stop();\n }), this.root.nodes.forEach(Kc), this.root.sharedNodes.clear();\n }\n };\n}\nfunction Yb(e) {\n e.updateLayout();\n}\nfunction Kb(e) {\n var t;\n const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;\n if (e.isLead() && e.layout && n && e.hasListeners(\"didUpdate\")) {\n const { layoutBox: r, measuredBox: i } = e.layout, { animationType: a } = e.options, o = n.source !== e.layout.source;\n a === \"size\" ? rn((f) => {\n const b = o ? n.measuredBox[f] : n.layoutBox[f], x = Ut(b);\n b.min = r[f].min, b.max = b.min + x;\n }) : Tp(a, n.layoutBox, r) && rn((f) => {\n const b = o ? n.measuredBox[f] : n.layoutBox[f], x = Ut(r[f]);\n b.max = b.min + x, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[f].max = e.relativeTarget[f].min + x);\n });\n const l = mr();\n Zr(l, r, n.layoutBox);\n const d = mr();\n o ? Zr(d, e.applyTransform(i, !0), n.measuredBox) : Zr(d, r, n.layoutBox);\n const c = !Rp(l);\n let m = !1;\n if (!e.resumeFrom) {\n const f = e.getClosestProjectingParent();\n if (f && !f.resumeFrom) {\n const { snapshot: b, layout: x } = f;\n if (b && x) {\n const P = Tt();\n Qr(P, n.layoutBox, b.layoutBox);\n const I = Tt();\n Qr(I, r, x.layoutBox), Sp(P, I) || (m = !0), f.options.layoutRoot && (e.relativeTarget = I, e.relativeTargetOrigin = P, e.relativeParent = f);\n }\n }\n }\n e.notifyListeners(\"didUpdate\", {\n layout: r,\n snapshot: n,\n delta: d,\n layoutDelta: l,\n hasLayoutChanged: c,\n hasRelativeTargetChanged: m\n });\n } else if (e.isLead()) {\n const { onExitComplete: r } = e.options;\n r && r();\n }\n e.options.transition = void 0;\n}\nfunction Xb(e) {\n Hn.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));\n}\nfunction Zb(e) {\n e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;\n}\nfunction Qb(e) {\n e.clearSnapshot();\n}\nfunction Kc(e) {\n e.clearMeasurements();\n}\nfunction Jb(e) {\n e.isLayoutDirty = !1;\n}\nfunction ew(e) {\n const { visualElement: t } = e.options;\n t && t.getProps().onBeforeLayoutMeasure && t.notify(\"BeforeLayoutMeasure\"), e.resetTransform();\n}\nfunction Xc(e) {\n e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;\n}\nfunction tw(e) {\n e.resolveTargetDelta();\n}\nfunction nw(e) {\n e.calcProjection();\n}\nfunction rw(e) {\n e.resetRotation();\n}\nfunction iw(e) {\n e.removeLeadSnapshot();\n}\nfunction Zc(e, t, n) {\n e.translate = xt(t.translate, 0, n), e.scale = xt(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;\n}\nfunction Qc(e, t, n, r) {\n e.min = xt(t.min, n.min, r), e.max = xt(t.max, n.max, r);\n}\nfunction ow(e, t, n, r) {\n Qc(e.x, t.x, n.x, r), Qc(e.y, t.y, n.y, r);\n}\nfunction aw(e) {\n return e.animationValues && e.animationValues.opacityExit !== void 0;\n}\nconst sw = {\n duration: 0.45,\n ease: [0.4, 0, 0.1, 1]\n}, Jc = (e) => typeof navigator < \"u\" && navigator.userAgent.toLowerCase().includes(e), ef = Jc(\"applewebkit/\") && !Jc(\"chrome/\") ? Math.round : St;\nfunction tf(e) {\n e.min = ef(e.min), e.max = ef(e.max);\n}\nfunction lw(e) {\n tf(e.x), tf(e.y);\n}\nfunction Tp(e, t, n) {\n return e === \"position\" || e === \"preserve-aspect\" && !sl(Wc(t), Wc(n), 0.2);\n}\nconst uw = Pp({\n attachResizeListener: (e, t) => ln(e, \"resize\", t),\n measureScroll: () => ({\n x: document.documentElement.scrollLeft || document.body.scrollLeft,\n y: document.documentElement.scrollTop || document.body.scrollTop\n }),\n checkIsScrollRoot: () => !0\n}), Os = {\n current: void 0\n}, Ap = Pp({\n measureScroll: (e) => ({\n x: e.scrollLeft,\n y: e.scrollTop\n }),\n defaultParent: () => {\n if (!Os.current) {\n const e = new uw({});\n e.mount(window), e.setOptions({ layoutScroll: !0 }), Os.current = e;\n }\n return Os.current;\n },\n resetTransform: (e, t) => {\n e.style.transform = t !== void 0 ? t : \"none\";\n },\n checkIsScrollRoot: (e) => window.getComputedStyle(e).position === \"fixed\"\n}), cw = {\n pan: {\n Feature: Tb\n },\n drag: {\n Feature: Pb,\n ProjectionNode: Ap,\n MeasureLayout: wp\n }\n}, fw = /var\\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\\)/;\nfunction dw(e) {\n const t = fw.exec(e);\n if (!t)\n return [,];\n const [, n, r] = t;\n return [n, r];\n}\nconst pw = 4;\nfunction fl(e, t, n = 1) {\n Jt(n <= pw, `Max CSS variable fallback depth detected in property \"${e}\". This may indicate a circular fallback dependency.`);\n const [r, i] = dw(e);\n if (!r)\n return;\n const a = window.getComputedStyle(t).getPropertyValue(r);\n if (a) {\n const o = a.trim();\n return up(o) ? parseFloat(o) : o;\n } else\n return el(i) ? fl(i, t, n + 1) : i;\n}\nfunction mw(e, { ...t }, n) {\n const r = e.current;\n if (!(r instanceof Element))\n return { target: t, transitionEnd: n };\n n && (n = { ...n }), e.values.forEach((i) => {\n const a = i.get();\n if (!el(a))\n return;\n const o = fl(a, r);\n o && i.set(o);\n });\n for (const i in t) {\n const a = t[i];\n if (!el(a))\n continue;\n const o = fl(a, r);\n o && (t[i] = o, n || (n = {}), n[i] === void 0 && (n[i] = a));\n }\n return { target: t, transitionEnd: n };\n}\nconst hw = /* @__PURE__ */ new Set([\n \"width\",\n \"height\",\n \"top\",\n \"left\",\n \"right\",\n \"bottom\",\n \"x\",\n \"y\",\n \"translateX\",\n \"translateY\"\n]), Ep = (e) => hw.has(e), vw = (e) => Object.keys(e).some(Ep), Eo = (e) => e === rr || e === ze, nf = (e, t) => parseFloat(e.split(\", \")[t]), rf = (e, t) => (n, { transform: r }) => {\n if (r === \"none\" || !r)\n return 0;\n const i = r.match(/^matrix3d\\((.+)\\)$/);\n if (i)\n return nf(i[1], t);\n {\n const a = r.match(/^matrix\\((.+)\\)$/);\n return a ? nf(a[1], e) : 0;\n }\n}, gw = /* @__PURE__ */ new Set([\"x\", \"y\", \"z\"]), yw = pi.filter((e) => !gw.has(e));\nfunction bw(e) {\n const t = [];\n return yw.forEach((n) => {\n const r = e.getValue(n);\n r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith(\"scale\") ? 1 : 0));\n }), t.length && e.render(), t;\n}\nconst br = {\n // Dimensions\n width: ({ x: e }, { paddingLeft: t = \"0\", paddingRight: n = \"0\" }) => e.max - e.min - parseFloat(t) - parseFloat(n),\n height: ({ y: e }, { paddingTop: t = \"0\", paddingBottom: n = \"0\" }) => e.max - e.min - parseFloat(t) - parseFloat(n),\n top: (e, { top: t }) => parseFloat(t),\n left: (e, { left: t }) => parseFloat(t),\n bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),\n right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),\n // Transform\n x: rf(4, 13),\n y: rf(5, 14)\n};\nbr.translateX = br.x;\nbr.translateY = br.y;\nconst ww = (e, t, n) => {\n const r = t.measureViewportBox(), i = t.current, a = getComputedStyle(i), { display: o } = a, l = {};\n o === \"none\" && t.setStaticValue(\"display\", e.display || \"block\"), n.forEach((c) => {\n l[c] = br[c](r, a);\n }), t.render();\n const d = t.measureViewportBox();\n return n.forEach((c) => {\n const m = t.getValue(c);\n m && m.jump(l[c]), e[c] = br[c](d, a);\n }), e;\n}, xw = (e, t, n = {}, r = {}) => {\n t = { ...t }, r = { ...r };\n const i = Object.keys(t).filter(Ep);\n let a = [], o = !1;\n const l = [];\n if (i.forEach((d) => {\n const c = e.getValue(d);\n if (!e.hasValue(d))\n return;\n let m = n[d], f = jr(m);\n const b = t[d];\n let x;\n if (Uo(b)) {\n const P = b.length, I = b[0] === null ? 1 : 0;\n m = b[I], f = jr(m);\n for (let D = I; D < P && b[D] !== null; D++)\n x ? Jt(jr(b[D]) === x, \"All keyframes must be of the same type\") : (x = jr(b[D]), Jt(x === f || Eo(f) && Eo(x), \"Keyframes must be of the same dimension as the current value\"));\n } else\n x = jr(b);\n if (f !== x)\n if (Eo(f) && Eo(x)) {\n const P = c.get();\n typeof P == \"string\" && c.set(parseFloat(P)), typeof b == \"string\" ? t[d] = parseFloat(b) : Array.isArray(b) && x === ze && (t[d] = b.map(parseFloat));\n } else\n f != null && f.transform && (x != null && x.transform) && (m === 0 || b === 0) ? m === 0 ? c.set(x.transform(m)) : t[d] = f.transform(b) : (o || (a = bw(e), o = !0), l.push(d), r[d] = r[d] !== void 0 ? r[d] : t[d], c.jump(b));\n }), l.length) {\n const d = l.indexOf(\"height\") >= 0 ? window.pageYOffset : null, c = ww(t, e, l);\n return a.length && a.forEach(([m, f]) => {\n e.getValue(m).set(f);\n }), e.render(), la && d !== null && window.scrollTo({ top: d }), { target: c, transitionEnd: r };\n } else\n return { target: t, transitionEnd: r };\n};\nfunction Cw(e, t, n, r) {\n return vw(t) ? xw(e, t, n, r) : { target: t, transitionEnd: r };\n}\nconst Rw = (e, t, n, r) => {\n const i = mw(e, t, r);\n return t = i.target, r = i.transitionEnd, Cw(e, t, n, r);\n}, dl = { current: null }, Op = { current: !1 };\nfunction Sw() {\n if (Op.current = !0, !!la)\n if (window.matchMedia) {\n const e = window.matchMedia(\"(prefers-reduced-motion)\"), t = () => dl.current = e.matches;\n e.addListener(t), t();\n } else\n dl.current = !1;\n}\nfunction Pw(e, t, n) {\n const { willChange: r } = t;\n for (const i in t) {\n const a = t[i], o = n[i];\n if (zt(a))\n e.addValue(i, a), Xo(r) && r.add(i), process.env.NODE_ENV === \"development\" && ou(a.version === \"10.17.0\", `Attempting to mix Framer Motion versions ${a.version} with 10.17.0 may not work as expected.`);\n else if (zt(o))\n e.addValue(i, yr(a, { owner: e })), Xo(r) && r.remove(i);\n else if (o !== a)\n if (e.hasValue(i)) {\n const l = e.getValue(i);\n !l.hasAnimated && l.set(a);\n } else {\n const l = e.getStaticValue(i);\n e.addValue(i, yr(l !== void 0 ? l : a, { owner: e }));\n }\n }\n for (const i in n)\n t[i] === void 0 && e.removeValue(i);\n return t;\n}\nconst of = /* @__PURE__ */ new WeakMap(), kp = Object.keys(si), Tw = kp.length, af = [\n \"AnimationStart\",\n \"AnimationComplete\",\n \"Update\",\n \"BeforeLayoutMeasure\",\n \"LayoutMeasure\",\n \"LayoutAnimationStart\",\n \"LayoutAnimationComplete\"\n], Aw = Gl.length;\nclass Ew {\n constructor({ parent: t, props: n, presenceContext: r, reducedMotionConfig: i, visualState: a }, o = {}) {\n this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify(\"Update\", this.latestValues), this.render = () => {\n this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));\n }, this.scheduleRender = () => gt.render(this.render, !1, !0);\n const { latestValues: l, renderState: d } = a;\n this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = d, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.isControllingVariants = ca(n), this.isVariantNode = md(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);\n const { willChange: c, ...m } = this.scrapeMotionValuesFromProps(n, {});\n for (const f in m) {\n const b = m[f];\n l[f] !== void 0 && zt(b) && (b.set(l[f], !1), Xo(c) && c.add(f));\n }\n }\n /**\n * This method takes React props and returns found MotionValues. For example, HTML\n * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.\n *\n * This isn't an abstract method as it needs calling in the constructor, but it is\n * intended to be one.\n */\n scrapeMotionValuesFromProps(t, n) {\n return {};\n }\n mount(t) {\n this.current = t, of.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Op.current || Sw(), this.shouldReduceMotion = this.reducedMotionConfig === \"never\" ? !1 : this.reducedMotionConfig === \"always\" ? !0 : dl.current, process.env.NODE_ENV !== \"production\" && ou(this.shouldReduceMotion !== !0, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\"), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);\n }\n unmount() {\n of.delete(this.current), this.projection && this.projection.unmount(), hn(this.notifyUpdate), hn(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);\n for (const t in this.events)\n this.events[t].clear();\n for (const t in this.features)\n this.features[t].unmount();\n this.current = null;\n }\n bindToMotionValue(t, n) {\n const r = nr.has(t), i = n.on(\"change\", (o) => {\n this.latestValues[t] = o, this.props.onUpdate && gt.update(this.notifyUpdate, !1, !0), r && this.projection && (this.projection.isTransformDirty = !0);\n }), a = n.on(\"renderRequest\", this.scheduleRender);\n this.valueSubscriptions.set(t, () => {\n i(), a();\n });\n }\n sortNodePosition(t) {\n return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current);\n }\n loadFeatures({ children: t, ...n }, r, i, a) {\n let o, l;\n if (process.env.NODE_ENV !== \"production\" && i && r) {\n const d = \"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.\";\n n.ignoreStrict ? vi(!1, d) : Jt(!1, d);\n }\n for (let d = 0; d < Tw; d++) {\n const c = kp[d], { isEnabled: m, Feature: f, ProjectionNode: b, MeasureLayout: x } = si[c];\n b && (o = b), m(n) && (!this.features[c] && f && (this.features[c] = new f(this)), x && (l = x));\n }\n if (!this.projection && o) {\n this.projection = new o(this.latestValues, this.parent && this.parent.projection);\n const { layoutId: d, layout: c, drag: m, dragConstraints: f, layoutScroll: b, layoutRoot: x } = n;\n this.projection.setOptions({\n layoutId: d,\n layout: c,\n alwaysMeasureLayout: !!m || f && dr(f),\n visualElement: this,\n scheduleRender: () => this.scheduleRender(),\n /**\n * TODO: Update options in an effect. This could be tricky as it'll be too late\n * to update by the time layout animations run.\n * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,\n * ensuring it gets called if there's no potential layout animations.\n *\n */\n animationType: typeof c == \"string\" ? c : \"both\",\n initialPromotionConfig: a,\n layoutScroll: b,\n layoutRoot: x\n });\n }\n return l;\n }\n updateFeatures() {\n for (const t in this.features) {\n const n = this.features[t];\n n.isMounted ? n.update() : (n.mount(), n.isMounted = !0);\n }\n }\n triggerBuild() {\n this.build(this.renderState, this.latestValues, this.options, this.props);\n }\n /**\n * Measure the current viewport box with or without transforms.\n * Only measures axis-aligned boxes, rotate and skew must be manually\n * removed with a re-render to work.\n */\n measureViewportBox() {\n return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Tt();\n }\n getStaticValue(t) {\n return this.latestValues[t];\n }\n setStaticValue(t, n) {\n this.latestValues[t] = n;\n }\n /**\n * Make a target animatable by Popmotion. For instance, if we're\n * trying to animate width from 100px to 100vw we need to measure 100vw\n * in pixels to determine what we really need to animate to. This is also\n * pluggable to support Framer's custom value types like Color,\n * and CSS variables.\n */\n makeTargetAnimatable(t, n = !0) {\n return this.makeTargetAnimatableFromInstance(t, this.props, n);\n }\n /**\n * Update the provided props. Ensure any newly-added motion values are\n * added to our map, old ones removed, and listeners updated.\n */\n update(t, n) {\n (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;\n for (let r = 0; r < af.length; r++) {\n const i = af[r];\n this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);\n const a = t[\"on\" + i];\n a && (this.propEventSubscriptions[i] = this.on(i, a));\n }\n this.prevMotionValues = Pw(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();\n }\n getProps() {\n return this.props;\n }\n /**\n * Returns the variant definition with a given name.\n */\n getVariant(t) {\n return this.props.variants ? this.props.variants[t] : void 0;\n }\n /**\n * Returns the defined default transition on this component.\n */\n getDefaultTransition() {\n return this.props.transition;\n }\n getTransformPagePoint() {\n return this.props.transformPagePoint;\n }\n getClosestVariantNode() {\n return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;\n }\n getVariantContext(t = !1) {\n if (t)\n return this.parent ? this.parent.getVariantContext() : void 0;\n if (!this.isControllingVariants) {\n const r = this.parent ? this.parent.getVariantContext() || {} : {};\n return this.props.initial !== void 0 && (r.initial = this.props.initial), r;\n }\n const n = {};\n for (let r = 0; r < Aw; r++) {\n const i = Gl[r], a = this.props[i];\n (ai(a) || a === !1) && (n[i] = a);\n }\n return n;\n }\n /**\n * Add a child visual element to our set of children.\n */\n addVariantChild(t) {\n const n = this.getClosestVariantNode();\n if (n)\n return n.variantChildren && n.variantChildren.add(t), () => n.variantChildren.delete(t);\n }\n /**\n * Add a motion value and bind it to this visual element.\n */\n addValue(t, n) {\n n !== this.values.get(t) && (this.removeValue(t), this.bindToMotionValue(t, n)), this.values.set(t, n), this.latestValues[t] = n.get();\n }\n /**\n * Remove a motion value and unbind any active subscriptions.\n */\n removeValue(t) {\n this.values.delete(t);\n const n = this.valueSubscriptions.get(t);\n n && (n(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState);\n }\n /**\n * Check whether we have a motion value for this key\n */\n hasValue(t) {\n return this.values.has(t);\n }\n getValue(t, n) {\n if (this.props.values && this.props.values[t])\n return this.props.values[t];\n let r = this.values.get(t);\n return r === void 0 && n !== void 0 && (r = yr(n, { owner: this }), this.addValue(t, r)), r;\n }\n /**\n * If we're trying to animate to a previously unencountered value,\n * we need to check for it in our state and as a last resort read it\n * directly from the instance (which might have performance implications).\n */\n readValue(t) {\n var n;\n return this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (n = this.getBaseTargetFromProps(this.props, t)) !== null && n !== void 0 ? n : this.readValueFromInstance(this.current, t, this.options);\n }\n /**\n * Set the base target to later animate back to. This is currently\n * only hydrated on creation and when we first read a value.\n */\n setBaseTarget(t, n) {\n this.baseTarget[t] = n;\n }\n /**\n * Find the base target for a value thats been removed from all animation\n * props.\n */\n getBaseTarget(t) {\n var n;\n const { initial: r } = this.props, i = typeof r == \"string\" || typeof r == \"object\" ? (n = Kl(this.props, r)) === null || n === void 0 ? void 0 : n[t] : void 0;\n if (r && i !== void 0)\n return i;\n const a = this.getBaseTargetFromProps(this.props, t);\n return a !== void 0 && !zt(a) ? a : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];\n }\n on(t, n) {\n return this.events[t] || (this.events[t] = new iu()), this.events[t].add(n);\n }\n notify(t, ...n) {\n this.events[t] && this.events[t].notify(...n);\n }\n}\nclass Ip extends Ew {\n sortInstanceNodePosition(t, n) {\n return t.compareDocumentPosition(n) & 2 ? 1 : -1;\n }\n getBaseTargetFromProps(t, n) {\n return t.style ? t.style[n] : void 0;\n }\n removeValueFromRenderState(t, { vars: n, style: r }) {\n delete n[t], delete r[t];\n }\n makeTargetAnimatableFromInstance({ transition: t, transitionEnd: n, ...r }, { transformValues: i }, a) {\n let o = H1(r, t || {}, this);\n if (i && (n && (n = i(n)), r && (r = i(r)), o && (o = i(o))), a) {\n j1(this, r, o);\n const l = Rw(this, r, o, n);\n n = l.transitionEnd, r = l.target;\n }\n return {\n transition: t,\n transitionEnd: n,\n ...r\n };\n }\n}\nfunction Ow(e) {\n return window.getComputedStyle(e);\n}\nclass kw extends Ip {\n readValueFromInstance(t, n) {\n if (nr.has(n)) {\n const r = Jl(n);\n return r && r.default || 0;\n } else {\n const r = Ow(t), i = (yd(n) ? r.getPropertyValue(n) : r[n]) || 0;\n return typeof i == \"string\" ? i.trim() : i;\n }\n }\n measureInstanceViewportBox(t, { transformPagePoint: n }) {\n return yp(t, n);\n }\n build(t, n, r, i) {\n Hl(t, n, r, i.transformTemplate);\n }\n scrapeMotionValuesFromProps(t, n) {\n return Yl(t, n);\n }\n handleChildMotionValue() {\n this.childSubscription && (this.childSubscription(), delete this.childSubscription);\n const { children: t } = this.props;\n zt(t) && (this.childSubscription = t.on(\"change\", (n) => {\n this.current && (this.current.textContent = `${n}`);\n }));\n }\n renderInstance(t, n, r, i) {\n Sd(t, n, r, i);\n }\n}\nclass Iw extends Ip {\n constructor() {\n super(...arguments), this.isSVGTag = !1;\n }\n getBaseTargetFromProps(t, n) {\n return t[n];\n }\n readValueFromInstance(t, n) {\n if (nr.has(n)) {\n const r = Jl(n);\n return r && r.default || 0;\n }\n return n = Pd.has(n) ? n : _l(n), t.getAttribute(n);\n }\n measureInstanceViewportBox() {\n return Tt();\n }\n scrapeMotionValuesFromProps(t, n) {\n return Ad(t, n);\n }\n build(t, n, r, i) {\n Ul(t, n, r, this.isSVGTag, i.transformTemplate);\n }\n renderInstance(t, n, r, i) {\n Td(t, n, r, i);\n }\n mount(t) {\n this.isSVGTag = ql(t.tagName), super.mount(t);\n }\n}\nconst Mw = (e, t) => zl(e) ? new Iw(t, { enableHardwareAcceleration: !1 }) : new kw(t, { enableHardwareAcceleration: !0 }), Fw = {\n layout: {\n ProjectionNode: Ap,\n MeasureLayout: wp\n }\n}, Bw = {\n ...ob,\n ...A0,\n ...cw,\n ...Fw\n}, Dw = /* @__PURE__ */ Ny((e, t) => m0(e, t, Bw, Mw));\nfunction Mp() {\n const e = Nt(!1);\n return $l(() => (e.current = !0, () => {\n e.current = !1;\n }), []), e;\n}\nfunction Nw() {\n const e = Mp(), [t, n] = jt(0), r = Vt(() => {\n e.current && n(t + 1);\n }, [t]);\n return [Vt(() => gt.postRender(r), [r]), t];\n}\nclass Lw extends _t.Component {\n getSnapshotBeforeUpdate(t) {\n const n = this.props.childRef.current;\n if (n && t.isPresent && !this.props.isPresent) {\n const r = this.props.sizeRef.current;\n r.height = n.offsetHeight || 0, r.width = n.offsetWidth || 0, r.top = n.offsetTop, r.left = n.offsetLeft;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() {\n }\n render() {\n return this.props.children;\n }\n}\nfunction $w({ children: e, isPresent: t }) {\n const n = hl(), r = Nt(null), i = Nt({\n width: 0,\n height: 0,\n top: 0,\n left: 0\n });\n return df(() => {\n const { width: a, height: o, top: l, left: d } = i.current;\n if (t || !r.current || !a || !o)\n return;\n r.current.dataset.motionPopId = n;\n const c = document.createElement(\"style\");\n return document.head.appendChild(c), c.sheet && c.sheet.insertRule(`\n [data-motion-pop-id=\"${n}\"] {\n position: absolute !important;\n width: ${a}px !important;\n height: ${o}px !important;\n top: ${l}px !important;\n left: ${d}px !important;\n }\n `), () => {\n document.head.removeChild(c);\n };\n }, [t]), _t.createElement(Lw, { isPresent: t, childRef: r, sizeRef: i }, _t.cloneElement(e, { ref: r }));\n}\nconst ks = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o }) => {\n const l = Ed(_w), d = hl(), c = Ot(\n () => ({\n id: d,\n initial: t,\n isPresent: n,\n custom: i,\n onExitComplete: (m) => {\n l.set(m, !0);\n for (const f of l.values())\n if (!f)\n return;\n r && r();\n },\n register: (m) => (l.set(m, !1), () => l.delete(m))\n }),\n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n a ? void 0 : [n]\n );\n return Ot(() => {\n l.forEach((m, f) => l.set(f, !1));\n }, [n]), _t.useEffect(() => {\n !n && !l.size && r && r();\n }, [n]), o === \"popLayout\" && (e = _t.createElement($w, { isPresent: n }, e)), _t.createElement(sa.Provider, { value: c }, e);\n};\nfunction _w() {\n return /* @__PURE__ */ new Map();\n}\nfunction Vw(e) {\n return Wt(() => () => e(), []);\n}\nconst Wn = (e) => e.key || \"\";\nfunction Gw(e, t) {\n e.forEach((n) => {\n const r = Wn(n);\n t.set(r, n);\n });\n}\nfunction jw(e) {\n const t = [];\n return zp.forEach(e, (n) => {\n Hp(n) && t.push(n);\n }), t;\n}\nconst zw = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, exitBeforeEnter: i, presenceAffectsLayout: a = !0, mode: o = \"sync\" }) => {\n Jt(!i, \"Replace exitBeforeEnter with mode='wait'\");\n const l = wt(jl).forceRender || Nw()[0], d = Mp(), c = jw(e);\n let m = c;\n const f = Nt(/* @__PURE__ */ new Map()).current, b = Nt(m), x = Nt(/* @__PURE__ */ new Map()).current, P = Nt(!0);\n if ($l(() => {\n P.current = !1, Gw(c, x), b.current = m;\n }), Vw(() => {\n P.current = !0, x.clear(), f.clear();\n }), P.current)\n return _t.createElement(_t.Fragment, null, m.map((M) => _t.createElement(ks, { key: Wn(M), isPresent: !0, initial: n ? void 0 : !1, presenceAffectsLayout: a, mode: o }, M)));\n m = [...m];\n const I = b.current.map(Wn), D = c.map(Wn), L = I.length;\n for (let M = 0; M < L; M++) {\n const F = I[M];\n D.indexOf(F) === -1 && !f.has(F) && f.set(F, void 0);\n }\n return o === \"wait\" && f.size && (m = []), f.forEach((M, F) => {\n if (D.indexOf(F) !== -1)\n return;\n const j = x.get(F);\n if (!j)\n return;\n const B = I.indexOf(F);\n let Q = M;\n if (!Q) {\n const we = () => {\n f.delete(F);\n const ce = Array.from(x.keys()).filter((se) => !D.includes(se));\n if (ce.forEach((se) => x.delete(se)), b.current = c.filter((se) => {\n const Ve = Wn(se);\n return (\n // filter out the node exiting\n Ve === F || // filter out the leftover children\n ce.includes(Ve)\n );\n }), !f.size) {\n if (d.current === !1)\n return;\n l(), r && r();\n }\n };\n Q = _t.createElement(ks, { key: Wn(j), isPresent: !1, onExitComplete: we, custom: t, presenceAffectsLayout: a, mode: o }, j), f.set(F, Q);\n }\n m.splice(B, 0, Q);\n }), m = m.map((M) => {\n const F = M.key;\n return f.has(F) ? M : _t.createElement(ks, { key: Wn(M), isPresent: !0, presenceAffectsLayout: a, mode: o }, M);\n }), process.env.NODE_ENV !== \"production\" && o === \"wait\" && m.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`), _t.createElement(_t.Fragment, null, f.size ? m : m.map((M) => pf(M)));\n};\nfunction Hw({\n children: e,\n isVisible: t,\n layout: n = !0,\n key: r,\n className: i,\n testId: a\n}) {\n return /* @__PURE__ */ T(zw, { children: t && /* @__PURE__ */ T(\n Dw.div,\n {\n className: i,\n layout: n,\n initial: { opacity: 0 },\n animate: { opacity: 1 },\n exit: {\n opacity: 0\n },\n \"data-testid\": a,\n children: e\n },\n r\n ) });\n}\nfunction Ww({\n className: e,\n isActive: t = !0,\n severity: n,\n id: r,\n message: i,\n title: a,\n dismissable: o,\n onDismiss: l,\n onRemove: d,\n requestDismiss: c,\n testId: m\n}) {\n let f = \"cui-toast\";\n const b = function() {\n l(r);\n };\n Wt(() => {\n t && c && d(r);\n }, [r, t, d, c]);\n const { icon: x, severityText: P } = n ? zo[n] : zo.caution;\n let I;\n const D = n ? `${n}` : \"caution\";\n D && (f += ` is-color ${D}`, I = {\n \"--color\": `var(--${D})`,\n \"--color-10\": `var(--${D}-10)`,\n \"--color-10-border\": `var(--${D}-10-border)`,\n \"--color-30\": `var(--${D}-30)`,\n \"--color-45\": `var(--${D}-45)`,\n \"--color-55\": `var(--${D}-55)`,\n \"--color-75\": `var(--${D}-75)`,\n \"--color-90\": `var(--${D}-90)`\n }), e && (f += ` ${e}`);\n const L = a || P;\n let M = m ? `${m}` : \"toast\";\n return M = r ? `${M}-${r}` : M, /* @__PURE__ */ T(Hw, { isVisible: t, children: /* @__PURE__ */ Oe(\n \"div\",\n {\n className: f,\n role: \"status\",\n style: I,\n \"data-testid\": M,\n children: [\n x && /* @__PURE__ */ T(\"span\", { className: \"icon\", \"data-testid\": `${M}-icon`, children: /* @__PURE__ */ T(mt, { icon: x }) }),\n /* @__PURE__ */ T(\"p\", { className: \"title\", \"data-testid\": `${M}-title`, children: L }),\n o && /* @__PURE__ */ T(\n \"button\",\n {\n className: \"dismiss-button\",\n onClick: b,\n onKeyDown: b,\n \"data-testid\": `${M}-dismiss-button`,\n children: /* @__PURE__ */ T(mt, { icon: cd })\n }\n ),\n /* @__PURE__ */ T(\"p\", { className: \"message\", \"data-testid\": `${M}-message`, children: i })\n ]\n },\n r\n ) });\n}\nfunction Uw(e) {\n return {\n id: `id-${(/* @__PURE__ */ new Date()).getTime()}`,\n createdAt: /* @__PURE__ */ new Date(),\n ...e\n };\n}\nfunction qw(e, t) {\n return e.filter(\n (n) => n.id !== t\n );\n}\nfunction Yw(e, t) {\n const r = (t.getTime() - e.getTime()) / 1e3;\n if (r < 60)\n return \"Less than a minute ago\";\n const i = Math.round(r / 60);\n if (i < 60)\n return `${i} ${i === 1 ? \"minute\" : \"minutes\"} ago`;\n const a = Math.round(i / 60);\n return a < 24 ? `${a} ${a === 1 ? \"hour\" : \"hours\"} ago` : e.toLocaleDateString();\n}\nfunction Kw({\n className: e,\n severity: t,\n id: n,\n message: r,\n onDismiss: i,\n testId: a,\n createdAt: o = /* @__PURE__ */ new Date()\n}) {\n let l = \"cui-notification\";\n const d = Vt(() => {\n i && i(n);\n }, [n, i]), { icon: c, severityText: m } = t ? zo[t] : zo.caution, f = t ? `${t}` : \"caution\";\n let b;\n f && (l += ` is-color ${f}`, b = {\n \"--color\": `var(--${f})`,\n \"--color-10\": `var(--${f}-10)`,\n \"--color-10-border\": `var(--${f}-10-border)`,\n \"--color-30\": `var(--${f}-30)`,\n \"--color-45\": `var(--${f}-45)`,\n \"--color-55\": `var(--${f}-55)`,\n \"--color-75\": `var(--${f}-75)`,\n \"--color-90\": `var(--${f}-90)`\n }), e && (l += ` ${e}`);\n let x = a ? `${a}` : \"notification\";\n return x = n ? `${x}-${n}` : x, /* @__PURE__ */ Oe(\n \"div\",\n {\n className: l,\n role: \"status\",\n style: b,\n \"data-testid\": x,\n children: [\n /* @__PURE__ */ Oe(\"div\", { className: \"head\", \"data-testid\": `${x}-head`, children: [\n c && /* @__PURE__ */ T(\"span\", { className: \"icon\", \"data-testid\": `${x}-icon`, children: /* @__PURE__ */ T(mt, { icon: c }) }),\n /* @__PURE__ */ T(\"p\", { className: \"title\", \"data-testid\": `${x}-title`, children: m }),\n i && /* @__PURE__ */ T(\n \"button\",\n {\n className: \"dismiss-button\",\n onClick: d,\n onKeyDown: d,\n \"data-testid\": `${x}-dismiss-button`,\n children: /* @__PURE__ */ T(mt, { icon: cd })\n }\n )\n ] }),\n /* @__PURE__ */ T(\"div\", { className: \"content\", children: /* @__PURE__ */ T(\"p\", { className: \"message\", \"data-testid\": `${x}-message`, children: r }) }),\n /* @__PURE__ */ T(\"div\", { className: \"time\", \"data-testid\": `${x}-time`, children: Yw(o, /* @__PURE__ */ new Date()) })\n ]\n },\n n\n );\n}\nfunction Xw({\n isChecked: e,\n label: t,\n isDisabled: n = !1,\n isRequired: r = !1,\n testId: i,\n onChange: a\n}) {\n const o = () => {\n a(!e);\n };\n let l = \"cui-checkbox\";\n n && (l += \" isDisabled\"), r && (l += \" isRequired\");\n const d = i ? `${i}-input` : void 0, c = i ? `${i}-label` : void 0;\n return /* @__PURE__ */ Oe(\"label\", { className: l, \"data-testid\": i, children: [\n /* @__PURE__ */ T(\n \"input\",\n {\n type: \"checkbox\",\n checked: e,\n onChange: o,\n disabled: n,\n required: r,\n \"data-testid\": d\n }\n ),\n /* @__PURE__ */ Oe(\"span\", { className: \"inner\", children: [\n /* @__PURE__ */ T(\"svg\", { viewBox: \"0 0 100 100\", children: /* @__PURE__ */ T(\n \"path\",\n {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"13\",\n d: \"M12.1 52.1l24.4 24.4 53-53\"\n }\n ) }),\n t && /* @__PURE__ */ T(\n Nl,\n {\n className: \"label\",\n isRequired: r,\n isDisabled: n,\n text: t,\n isInline: !0,\n testId: c\n }\n )\n ] })\n ] });\n}\nfunction Zw({\n isChecked: e,\n label: t,\n isDisabled: n = !1,\n isRequired: r = !1,\n onChange: i,\n testId: a\n}) {\n const o = () => {\n i(!e);\n }, l = a ? `${a}-label` : void 0, d = a ? `${a}-input` : void 0;\n return /* @__PURE__ */ Oe(\"label\", { className: \"cui-switch\", \"data-testid\": a, children: [\n t && /* @__PURE__ */ T(\n Nl,\n {\n className: \"label\",\n text: t,\n isInline: !0,\n isDisabled: n,\n isRequired: r,\n testId: l\n }\n ),\n /* @__PURE__ */ T(\n \"input\",\n {\n type: \"checkbox\",\n role: \"switch\",\n onChange: o,\n disabled: n,\n checked: e,\n required: r,\n \"data-testid\": d\n }\n )\n ] });\n}\nfunction au({\n isDisabled: e = !1,\n isRequired: t = !1,\n isLabelHidden: n = !1,\n childrenTooltip: r,\n ...i\n}) {\n const {\n children: a,\n className: o,\n errorMessage: l,\n errorMessageId: d,\n description: c,\n label: m,\n testId: f,\n descriptionId: b\n } = i;\n let x = \"cui-field\";\n o && (x += ` ${o}`);\n const P = f ? `${f}-label` : void 0, I = f ? `${f}-error` : void 0, D = f ? `${f}-tooltip` : void 0;\n return /* @__PURE__ */ Oe(\"div\", { className: x, children: [\n /* @__PURE__ */ Oe(\"label\", { \"data-testid\": f, children: [\n /* @__PURE__ */ T(\n Nl,\n {\n isRequired: t,\n isDisabled: e,\n isHidden: n,\n text: m,\n testId: P\n }\n ),\n r ? /* @__PURE__ */ T(\n dy,\n {\n testId: D,\n content: r,\n side: \"bottomLeft\",\n isAutoPositioning: !1,\n leaveDelay: \"long\",\n children: a\n }\n ) : a\n ] }),\n c && /* @__PURE__ */ T(\"span\", { id: b, className: \"description\", children: c }),\n l && /* @__PURE__ */ T(\n \"span\",\n {\n id: d,\n className: \"errorMessage\",\n role: \"alert\",\n \"data-testid\": I,\n children: l\n }\n )\n ] });\n}\nfunction Qw({\n description: e,\n className: t,\n isDisabled: n = !1,\n isRequired: r = !1,\n options: i,\n errorMessage: a,\n label: o,\n isLabelHidden: l = !1,\n onChange: d,\n value: c,\n testId: m\n}) {\n const f = Ot(() => mn(), []), b = Ot(() => mn(), []);\n let x;\n a && (x = !0);\n let P = \"cui-select-field\";\n t && (P += ` ${t}`);\n function I(L) {\n d && d(L);\n }\n const D = m ? `${m}-select` : void 0;\n return /* @__PURE__ */ T(\n au,\n {\n className: P,\n errorMessage: a,\n isDisabled: n,\n isRequired: r,\n isLabelHidden: l,\n label: o,\n errorMessageId: x ? f : void 0,\n description: e,\n testId: m,\n descriptionId: e ? b : void 0,\n children: /* @__PURE__ */ T(\n Kg,\n {\n isDisabled: n,\n onChange: I,\n isRequired: r,\n value: c,\n isInvalid: x,\n errorMessageId: x ? f : void 0,\n options: i,\n testId: D,\n descriptionId: e ? b : void 0\n }\n )\n }\n );\n}\nfunction ix({\n description: e,\n errorMessage: t,\n label: n,\n onChange: r,\n onPressEnter: i,\n placeholder: a,\n value: o,\n isDisabled: l = !1,\n isLabelHidden: d = !1,\n isReadOnly: c = !1,\n isRequired: m = !1,\n isMultiline: f = !1,\n isResizable: b = !1,\n rows: x = 3,\n testId: P\n}) {\n const I = Ot(() => mn(), []), D = Ot(() => mn(), []);\n let L;\n t && (L = !0);\n const M = P ? `${P}-child` : void 0;\n return /* @__PURE__ */ T(\n au,\n {\n errorMessage: t,\n isDisabled: l,\n isLabelHidden: d,\n isRequired: m,\n label: n,\n description: e,\n errorMessageId: L ? I : void 0,\n testId: P,\n descriptionId: e ? D : void 0,\n children: /* @__PURE__ */ T(\n Ug,\n {\n isMultiline: f,\n isResizable: b,\n rows: x,\n isDisabled: l,\n isRequired: m,\n onChange: r,\n onPressEnter: i,\n placeholder: a,\n isReadOnly: c,\n value: o,\n isInvalid: L,\n errorMessageId: L ? I : void 0,\n testId: M,\n descriptionId: e ? D : void 0\n }\n )\n }\n );\n}\nconst su = Kt({\n currentAlert: null,\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onRequestCreate: () => {\n },\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onRequestDismiss: () => {\n }\n});\nfunction ox({\n children: e\n}) {\n const [t, n] = jt(null), r = Vt(() => {\n n(null);\n }, [n]);\n function i(a) {\n n(a);\n }\n return Wt(() => {\n let a;\n return t != null && t.autoDismiss && (a = setTimeout(\n r,\n (t == null ? void 0 : t.autoDismissDelay) || 5e3\n )), () => clearTimeout(a);\n }, [t, t == null ? void 0 : t.autoDismiss, t == null ? void 0 : t.autoDismissDelay, r]), /* @__PURE__ */ T(\n su.Provider,\n {\n value: {\n currentAlert: t,\n onRequestCreate: i,\n onRequestDismiss: r\n },\n children: e\n }\n );\n}\nfunction ax() {\n const { onRequestCreate: e, onRequestDismiss: t } = wt(su);\n return {\n createAlertBanner: e,\n dismissAlertBanner: t\n };\n}\nfunction sx({\n className: e\n}) {\n const { currentAlert: t, onRequestDismiss: n } = wt(su);\n return t ? /* @__PURE__ */ T(\n zg,\n {\n className: e,\n ...t,\n onRequestDismiss: t.dismissable ? n : void 0\n }\n ) : null;\n}\nfunction Jw({\n totalItems: e,\n displayAmount: t,\n siblingPages: n,\n currentPage: r\n}) {\n let i = [];\n const a = Math.ceil(e / t), o = n + 5, l = (M, F) => Array.from(Array(F - M + 1).keys()).map((j) => j + M), d = Math.max(r - n, 1), c = Math.min(\n r + n,\n a\n ), m = d > 2, f = c <= a - 2, b = 1, x = a, P = o > a, I = !m && f && a !== 5, D = m && !f && a !== 5, L = m && f;\n if (P)\n return i = i.concat(\n l(1, a)\n );\n if (I) {\n const M = 3 + 2 * n, F = l(1, M);\n return i = i.concat([\n ...F,\n \"...\",\n a\n ]);\n }\n if (D) {\n const M = 3 + 2 * n, F = l(\n a - M + 1,\n a\n );\n return i = i.concat([\n b,\n \"...\",\n ...F\n ]);\n }\n if (L) {\n const M = l(d, c);\n return i = i.concat([\n b,\n \"...\",\n ...M,\n \"...\",\n x\n ]);\n }\n return i;\n}\nconst e2 = [\n {\n key: \"10\",\n value: \"10\",\n text: \"10\"\n },\n {\n key: \"25\",\n value: \"25\",\n text: \"25\"\n },\n {\n key: \"50\",\n value: \"50\",\n text: \"50\"\n },\n {\n key: \"75\",\n value: \"75\",\n text: \"75\"\n },\n {\n key: \"100\",\n value: \"100\",\n text: \"100\"\n }\n];\nfunction lx({\n className: e,\n totalItems: t,\n currentPage: n = 1,\n siblingPages: r = 1,\n displayAmount: i = 10,\n onDisplayAmountChange: a,\n showItemsPerPageDropDown: o = !1,\n showDisplayAmountDescription: l = !1,\n goToPage: d,\n showNavigationText: c = !1,\n showTotalPagesIndex: m = !1,\n testId: f\n}) {\n const b = [\"cui-pagination\"];\n let x;\n const P = Jw({\n totalItems: t,\n displayAmount: i,\n siblingPages: r,\n currentPage: n\n });\n let I = 0;\n function D() {\n return I += 1;\n }\n P && (x = P[P.length - 1]), e && b.push(e);\n const L = b.join(\" \"), M = c ? \"-text\" : \"\", F = f ? `${f}-leftArrow${M}` : void 0, j = f ? `${f}-rightArrow${M}` : void 0, B = f ? `${f}-dropDown` : void 0, Q = f ? `${f}-dropdown-description` : void 0, we = f ? `${f}-pageCount` : void 0, ce = n !== 1, se = n !== x;\n return t <= 0 ? /* @__PURE__ */ T(\"nav\", { role: \"navigation\", \"aria-label\": \"Pagination Navigation\", children: /* @__PURE__ */ T(\"ul\", { className: L, \"data-testid\": f, children: /* @__PURE__ */ T(\n \"li\",\n {\n \"aria-label\": \"Goto Page 1\",\n \"aria-current\": n === 1 ? \"true\" : \"false\",\n children: /* @__PURE__ */ T(\n Gt,\n {\n color: \"primary\",\n variant: \"text\",\n onClick: () => d(1),\n text: 1,\n className: n === 1 ? \"selected\" : \"\"\n }\n )\n },\n 1\n ) }) }) : /* @__PURE__ */ T(\"nav\", { role: \"navigation\", \"aria-label\": \"Pagination Navigation\", children: /* @__PURE__ */ Oe(\"ul\", { className: L, \"data-testid\": f, children: [\n ce && /* @__PURE__ */ T(\n \"li\",\n {\n \"aria-label\": \"Goto Previous Page\",\n \"data-testid\": F,\n className: \"left-arrow\",\n children: /* @__PURE__ */ T(\n Gt,\n {\n color: \"primary\",\n variant: \"text\",\n icon: /* @__PURE__ */ T(mt, { icon: Qh }),\n onClick: () => d(n - 1),\n text: c ? \"Previous\" : \"\"\n },\n \"left-arrow\"\n )\n }\n ),\n P == null ? void 0 : P.map((Ve) => Ve === \"...\" ? /* @__PURE__ */ T(\n \"li\",\n {\n className: \"pagination-item dots\",\n children: \"…\"\n },\n `dots-${D()}`\n ) : /* @__PURE__ */ T(\n \"li\",\n {\n \"aria-label\": `Goto Page ${Ve}`,\n \"aria-current\": Ve === n ? \"true\" : \"false\",\n children: /* @__PURE__ */ T(\n Gt,\n {\n color: \"primary\",\n variant: \"text\",\n onClick: () => d(Ve),\n text: Ve,\n className: Ve === n ? \"selected\" : \"\"\n }\n )\n },\n Ve.toString()\n )),\n se && /* @__PURE__ */ T(\n \"li\",\n {\n \"aria-label\": \"Goto Next Page\",\n \"data-testid\": j,\n className: \"right-arrow\",\n children: /* @__PURE__ */ T(\n Gt,\n {\n color: \"primary\",\n variant: \"text\",\n icon: /* @__PURE__ */ T(mt, { icon: Zh }),\n onClick: () => d(n + 1),\n isIconAfterText: !0,\n text: c ? \"Next\" : \"\"\n },\n \"right-arrow\"\n )\n }\n ),\n o && /* @__PURE__ */ T(\n \"li\",\n {\n className: \"drop-down\",\n \"data-testid\": B,\n \"aria-label\": \"Change Amount of Displayed Items Per Page\",\n children: /* @__PURE__ */ T(\n Qw,\n {\n value: i.toString(),\n options: e2,\n onChange: a,\n isLabelHidden: !0,\n label: \"Amount of Items Per Page\"\n }\n )\n }\n ),\n l && /* @__PURE__ */ T(\n \"li\",\n {\n className: \"drop-down-description\",\n \"aria-label\": \"Description for Drop Down\",\n \"data-testid\": Q,\n children: /* @__PURE__ */ T(\"div\", { children: \"Items per page\" })\n }\n ),\n m && /* @__PURE__ */ T(\"li\", { className: \"page-count\", \"data-testid\": we, children: /* @__PURE__ */ Oe(\"div\", { children: [\n \"Page \",\n n,\n \" of \",\n x\n ] }) })\n ] }) });\n}\nfunction t2({ showThemeSelector: e, testId: t }) {\n const { theme: n, setTheme: r } = ny();\n function i(a) {\n r(a ? \"dark\" : \"light\");\n }\n return e ? /* @__PURE__ */ T(\n Zw,\n {\n isChecked: n !== \"light\",\n onChange: i,\n label: \"Dark Mode\",\n testId: t\n }\n ) : null;\n}\nfunction n2() {\n return /* @__PURE__ */ T(mt, { icon: wy });\n}\nfunction Fp({\n description: e,\n className: t,\n errorMessage: n,\n isDisabled: r,\n isLabelHidden: i,\n tooltip: a,\n label: o,\n testId: l,\n ...d\n}) {\n const c = [\"cui-searchbox\"], m = Ot(() => mn(), []), f = Ot(() => mn(), []);\n t && c.push(t);\n const b = c.join(\" \");\n let x;\n n && (x = !0);\n const P = l ? `${l}-searchbox` : void 0;\n return /* @__PURE__ */ T(\n au,\n {\n errorMessage: n,\n isDisabled: r,\n childrenTooltip: a,\n isLabelHidden: i,\n label: o,\n description: e,\n errorMessageId: x ? m : void 0,\n testId: l,\n descriptionId: e ? f : void 0,\n children: /* @__PURE__ */ T(\n ad,\n {\n className: b,\n inputType: \"search\",\n leftIcon: /* @__PURE__ */ T(n2, {}),\n isInvalid: x,\n isDisabled: r,\n ...d,\n errorMessageId: x ? m : void 0,\n testId: P,\n descriptionId: e ? f : void 0\n }\n )\n }\n );\n}\nconst Bp = Kt({\n /**\n * List of all active toasts.\n */\n toasts: [],\n /**\n * Requests to create a toast and add it to state with specified options.\n */\n onRequestCreate: () => \"\",\n /**\n * Requests to close a toast based on its id\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onRequestDismiss: () => {\n },\n /**\n * Requests to close all toasts at once.\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onRequestDismissAll: () => {\n }\n}), r2 = {\n dismissable: !0,\n autoDismiss: !0,\n autoDismissDelay: 3e3\n};\nfunction i2(e, t) {\n return {\n id: `id-${(/* @__PURE__ */ new Date()).getTime()}`,\n isActive: !0,\n message: e,\n ...r2,\n ...t\n };\n}\nfunction o2(e, t) {\n return e.filter((n) => n.id !== t);\n}\nfunction a2(e, t) {\n return e.map((n) => n.id === t ? {\n ...n,\n requestDismiss: !0,\n isActive: !1\n } : n);\n}\nclass s2 {\n constructor({ onUpdateToasts: t }) {\n fo(this, \"onUpdateToasts\");\n fo(this, \"_toasts\", []);\n fo(this, \"_timeouts\", {});\n this.onUpdateToasts = t;\n }\n get toasts() {\n return this._toasts;\n }\n set toasts(t) {\n this._toasts = t, this.onUpdateToasts(t);\n }\n get timeouts() {\n return this._timeouts;\n }\n set timeouts(t) {\n this._timeouts = t;\n }\n /**\n * Creates a new toast and adds it to state.\n */\n createToast(t, n) {\n const r = i2(t, n);\n this.createToastTimeout(r), this.toasts = [...this.toasts, r];\n }\n /**\n * Removes a toast from state based on its id.\n */\n removeToast(t) {\n this.toasts = o2(this.toasts, t), this.clearToastTimeout(t);\n }\n /**\n * Requests to close a toast based on its id.\n */\n onRequestDimissToast(t) {\n this.toasts = a2(this.toasts, t);\n }\n createToastTimeout(t) {\n this.timeouts[t.id] = setTimeout(\n () => this.onRequestDimissToast(t.id),\n t.autoDismissDelay\n );\n }\n clearToastTimeout(t) {\n const n = this.timeouts[t];\n clearTimeout(n);\n }\n /**\n * Removes all toasts from state.\n */\n removeAllToasts() {\n this.toasts = [];\n }\n /**\n * Clears all timeouts.\n */\n clearTimeouts() {\n Object.keys(this.timeouts).forEach((n) => clearTimeout(this.timeouts[n])), this.timeouts = {};\n }\n}\nfunction ux({\n children: e,\n testId: t\n}) {\n const [n, r] = jt([]), i = Vt((f) => {\n r(f);\n }, []), a = Nt(\n new s2({\n onUpdateToasts: i\n })\n ), o = Vt(\n (f, b) => {\n a.current.createToast(f, b);\n },\n []\n ), l = Vt((f) => {\n a.current.removeToast(f);\n }, []), d = Vt(async (f) => {\n a.current.onRequestDimissToast(f);\n }, []), c = Vt(() => {\n a.current.removeAllToasts();\n }, []);\n Wt(() => {\n function f(b) {\n b.removeAllToasts(), b.clearTimeouts();\n }\n return f(a.current);\n }, [a]);\n const m = n.map((f) => /* @__PURE__ */ T(\n Ww,\n {\n onDismiss: d,\n onRemove: l,\n testId: t ? `${t}-toast-${f.id}` : void 0,\n ...f\n },\n f.id\n ));\n return /* @__PURE__ */ Oe(\n Bp.Provider,\n {\n value: {\n toasts: n,\n onRequestCreate: o,\n onRequestDismiss: d,\n onRequestDismissAll: c\n },\n children: [\n e,\n /* @__PURE__ */ T(\n \"ul\",\n {\n className: \"cui-toast-list\",\n \"data-testid\": t ? `${t}-toast-list` : void 0,\n children: m\n }\n )\n ]\n }\n );\n}\nfunction cx() {\n const { onRequestCreate: e, onRequestDismiss: t, onRequestDismissAll: n, toasts: r } = wt(Bp);\n return {\n toasts: r,\n createToast: e,\n dismissToast: t,\n dismissAllToasts: n\n };\n}\nfunction l2(e) {\n const { testId: t, displayName: n, userName: r } = e;\n return {\n key: \"user-details\",\n content: /* @__PURE__ */ Oe(\"div\", { className: \"user-details\", children: [\n n && /* @__PURE__ */ T(\"p\", { className: \"display-name\", children: n }),\n r && /* @__PURE__ */ T(\"p\", { className: \"username\", children: r })\n ] }),\n disableHover: !0,\n className: \"user-details\",\n persistOpenMenu: !0,\n testId: `${t}-user-details`\n };\n}\nfunction u2(e) {\n const { testId: t, showThemeSelector: n } = e;\n return {\n key: \"themeToggle\",\n content: /* @__PURE__ */ T(t2, { showThemeSelector: n }),\n disableHover: !0,\n isActive: n,\n persistOpenMenu: !0,\n testId: `${t}-theme-selector`\n };\n}\nfunction c2() {\n return {\n key: \"divider\",\n content: /* @__PURE__ */ T(\"hr\", {}),\n disableHover: !0,\n className: \"horizontal-menu-separator\"\n };\n}\nfunction f2(e) {\n const { testId: t, onRequestLogout: n, showLogout: r } = e;\n return {\n key: \"logout\",\n content: \"Sign Out\",\n leftIcon: /* @__PURE__ */ T(mt, { icon: wg }),\n onClick: n,\n className: \"logout\",\n isActive: r,\n testId: `${t}-logout`\n };\n}\nfunction d2(e) {\n const t = [], { additionalMenuItems: n, showThemeSelector: r, showLogout: i } = e;\n return t.push(l2(e)), n && n.length > 0 && t.push(...n), r && t.push(u2(e)), i && (t.push(c2()), t.push(f2(e))), t;\n}\nfunction p2({\n testId: e,\n avatar: t,\n userName: n,\n displayName: r,\n showLogout: i,\n showAvatarGreeting: a,\n showThemeSelector: o,\n additionalMenuItems: l,\n onRequestLogout: d\n}) {\n const c = d2({\n testId: e,\n displayName: r,\n userName: n,\n additionalMenuItems: l,\n showThemeSelector: o,\n showLogout: i,\n onRequestLogout: d\n });\n return /* @__PURE__ */ T(\n Ll,\n {\n \"data-testid\": e,\n baseElement: /* @__PURE__ */ Oe(\"div\", { className: \"avatar\", children: [\n /* @__PURE__ */ T(Gg, { className: \"cui-appbar-avatar\", ...t }),\n a && /* @__PURE__ */ Oe(\"div\", { className: \"external-information\", children: [\n /* @__PURE__ */ Oe(\"div\", { children: [\n /* @__PURE__ */ Oe(\"div\", { className: \"external-user-detail\", children: [\n \"Hello \",\n r\n ] }),\n /* @__PURE__ */ T(\"div\", { className: \"external-user-settings\", children: /* @__PURE__ */ T(\"span\", { children: \"Account & Settings\" }) })\n ] }),\n /* @__PURE__ */ T(\"div\", { children: /* @__PURE__ */ T(\n Gt,\n {\n variant: \"text\",\n color: \"primary\",\n icon: /* @__PURE__ */ T(\n mt,\n {\n icon: Pg,\n color: \"primary\"\n }\n ),\n isIconAfterText: !0\n }\n ) })\n ] })\n ] }),\n menuItems: c,\n className: \"avatar-menu\",\n disableActiveStyles: !0\n }\n );\n}\nfunction m2({ helpMenuItems: e }) {\n return /* @__PURE__ */ T(\n Ll,\n {\n baseElement: /* @__PURE__ */ T(\n Gt,\n {\n color: \"primary\",\n variant: \"text\",\n className: \"help-menu-button\",\n icon: /* @__PURE__ */ T(\n mt,\n {\n icon: Sg,\n className: \"icon\"\n }\n )\n }\n ),\n menuItems: e,\n className: \"help-menu\"\n }\n );\n}\nfunction sf({\n className: e,\n icon: t,\n text: n,\n appBarMenuItems: r,\n isIconAfterText: i,\n onClick: a\n}) {\n return r ? /* @__PURE__ */ T(\n Ll,\n {\n baseElement: /* @__PURE__ */ T(\n Gt,\n {\n color: \"primary\",\n variant: \"text\",\n text: n,\n isIconAfterText: i,\n icon: t,\n size: \"large\"\n }\n ),\n menuItems: r,\n className: e\n }\n ) : /* @__PURE__ */ T(\n Gt,\n {\n variant: \"text\",\n color: \"primary\",\n size: \"large\",\n text: n,\n className: e,\n onClick: a,\n icon: t\n }\n );\n}\nfunction fx({\n avatarMenu: e,\n applicationName: t,\n className: n,\n icon: r,\n iconHref: i = \"/\",\n searchValue: a = \"\",\n showSearch: o = !1,\n hasThickBorder: l = !1,\n onSearchPressEnter: d,\n onSearchValueChange: c,\n onIconClick: m,\n showApplicationName: f = !0,\n leftAlignSeachAndMenus: b = !1,\n helpMenuItems: x,\n leftMenus: P,\n rightMenus: I,\n searchboxPlaceholderText: D = \"Search...\",\n searchTooltip: L,\n testId: M\n}) {\n let F = \"cui-app-bar\", j = \"app-bar-title\";\n const B = \"search\";\n let Q = \"\", we = \"\", ce = \"\", se = \"\";\n n && (F += ` ${n}`), l && (F += \" is-thick\"), b && (we = \"is-left-aligned\"), f || (j += \" is-label-hidden\"), (P || I) && (Q = \"app-bar-menu\"), P && (se = \"left-menu\"), I && (ce = \"right-menu\");\n function Ve(Ee) {\n Ee.preventDefault(), m && m();\n }\n const st = M ? `${M}-appbar-search` : void 0, it = M ? `${M}-appbar-left-menus` : void 0, dt = M ? `${M}-appbar-help-menus` : void 0, X = M ? `${M}-appbar-avatar-menus` : void 0, ie = M ? `${M}-appbar-right-menus` : void 0;\n return /* @__PURE__ */ Oe(\"header\", { className: F, \"data-testid\": M, children: [\n /* @__PURE__ */ T(\"div\", { className: \"imb\", children: /* @__PURE__ */ Oe(\"a\", { href: i, onClick: Ve, children: [\n /* @__PURE__ */ T(\"span\", { children: \"Home\" }),\n r\n ] }) }),\n /* @__PURE__ */ T(\"a\", { className: j, href: \"/\", children: t }),\n /* @__PURE__ */ Oe(\"div\", { className: `${B} ${we}`, children: [\n o && c && /* @__PURE__ */ T(\n Fp,\n {\n tooltip: L,\n onChange: c,\n onPressEnter: d,\n value: a,\n placeholder: D,\n label: \"Search\",\n isLabelHidden: !0,\n testId: st\n }\n ),\n P && P.map((Ee) => /* @__PURE__ */ T(\n \"div\",\n {\n className: `${Q} ${se} ${we}`,\n \"data-testid\": it,\n children: /* @__PURE__ */ T(sf, { ...Ee })\n },\n Ee.text\n ))\n ] }),\n x && /* @__PURE__ */ T(\"div\", { className: \"app-bar-help\", \"data-testid\": dt, children: /* @__PURE__ */ T(m2, { helpMenuItems: x }) }),\n e && /* @__PURE__ */ T(\"div\", { className: \"app-bar-avatar\", \"data-testid\": X, children: /* @__PURE__ */ T(p2, { ...e }) }),\n I && I.map((Ee) => /* @__PURE__ */ T(\n \"div\",\n {\n className: `${Q} ${ce}`,\n \"data-testid\": ie,\n children: /* @__PURE__ */ T(sf, { ...Ee })\n },\n Ee.text\n ))\n ] });\n}\nvar pl = { exports: {} }, Oo = { exports: {} }, lf;\nfunction h2() {\n return lf || (lf = 1, function(e, t) {\n (function(n, r) {\n r(t, vn);\n })(Gf, function(n, r) {\n function i(s, v, y, w, E, S, O) {\n try {\n var _ = s[S](O), G = _.value;\n } catch (z) {\n return void y(z);\n }\n _.done ? v(G) : Promise.resolve(G).then(w, E);\n }\n function a(s) {\n return function() {\n var v = this, y = arguments;\n return new Promise(function(w, E) {\n var S = s.apply(v, y);\n function O(G) {\n i(S, w, E, O, _, \"next\", G);\n }\n function _(G) {\n i(S, w, E, O, _, \"throw\", G);\n }\n O(void 0);\n });\n };\n }\n function o() {\n return (o = Object.assign || function(s) {\n for (var v = 1; v < arguments.length; v++) {\n var y = arguments[v];\n for (var w in y)\n Object.prototype.hasOwnProperty.call(y, w) && (s[w] = y[w]);\n }\n return s;\n }).apply(this, arguments);\n }\n function l(s, v) {\n if (s == null)\n return {};\n var y, w, E = {}, S = Object.keys(s);\n for (w = 0; w < S.length; w++)\n y = S[w], v.indexOf(y) >= 0 || (E[y] = s[y]);\n return E;\n }\n function d(s) {\n var v = function(y, w) {\n if (typeof y != \"object\" || y === null)\n return y;\n var E = y[Symbol.toPrimitive];\n if (E !== void 0) {\n var S = E.call(y, w || \"default\");\n if (typeof S != \"object\")\n return S;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (w === \"string\" ? String : Number)(y);\n }(s, \"string\");\n return typeof v == \"symbol\" ? v : String(v);\n }\n r = r && Object.prototype.hasOwnProperty.call(r, \"default\") ? r.default : r;\n var c = { init: \"init\" }, m = function(s) {\n var v = s.value;\n return v === void 0 ? \"\" : v;\n }, f = function() {\n return r.createElement(r.Fragment, null, \" \");\n }, b = { Cell: m, width: 150, minWidth: 0, maxWidth: Number.MAX_SAFE_INTEGER };\n function x() {\n for (var s = arguments.length, v = new Array(s), y = 0; y < s; y++)\n v[y] = arguments[y];\n return v.reduce(function(w, E) {\n var S = E.style, O = E.className;\n return w = o({}, w, {}, l(E, [\"style\", \"className\"])), S && (w.style = w.style ? o({}, w.style || {}, {}, S || {}) : S), O && (w.className = w.className ? w.className + \" \" + O : O), w.className === \"\" && delete w.className, w;\n }, {});\n }\n var P = function(s, v) {\n return v === void 0 && (v = {}), function(y) {\n return y === void 0 && (y = {}), [].concat(s, [y]).reduce(function(w, E) {\n return function S(O, _, G) {\n return typeof _ == \"function\" ? S({}, _(O, G)) : Array.isArray(_) ? x.apply(void 0, [O].concat(_)) : x(O, _);\n }(w, E, o({}, v, { userProps: y }));\n }, {});\n };\n }, I = function(s, v, y, w) {\n return y === void 0 && (y = {}), s.reduce(function(E, S) {\n return S(E, y);\n }, v);\n }, D = function(s, v, y) {\n return y === void 0 && (y = {}), s.forEach(function(w) {\n w(v, y);\n });\n };\n function L(s, v, y, w) {\n s.findIndex(function(E) {\n return E.pluginName === y;\n }), v.forEach(function(E) {\n s.findIndex(function(S) {\n return S.pluginName === E;\n });\n });\n }\n function M(s, v) {\n return typeof s == \"function\" ? s(v) : s;\n }\n function F(s) {\n var v = r.useRef();\n return v.current = s, r.useCallback(function() {\n return v.current;\n }, []);\n }\n var j = typeof document < \"u\" ? r.useLayoutEffect : r.useEffect;\n function B(s, v) {\n var y = r.useRef(!1);\n j(function() {\n y.current && s(), y.current = !0;\n }, v);\n }\n function Q(s, v, y) {\n return y === void 0 && (y = {}), function(w, E) {\n E === void 0 && (E = {});\n var S = typeof w == \"string\" ? v[w] : w;\n if (S === void 0)\n throw console.info(v), new Error(\"Renderer Error ☝️\");\n return we(S, o({}, s, { column: v }, y, {}, E));\n };\n }\n function we(s, v) {\n return function(w) {\n return typeof w == \"function\" && (E = Object.getPrototypeOf(w)).prototype && E.prototype.isReactComponent;\n var E;\n }(y = s) || typeof y == \"function\" || function(w) {\n return typeof w == \"object\" && typeof w.$$typeof == \"symbol\" && [\"react.memo\", \"react.forward_ref\"].includes(w.$$typeof.description);\n }(y) ? r.createElement(s, v) : s;\n var y;\n }\n function ce(s, v, y) {\n return y === void 0 && (y = 0), s.map(function(w) {\n return Ve(w = o({}, w, { parent: v, depth: y })), w.columns && (w.columns = ce(w.columns, w, y + 1)), w;\n });\n }\n function se(s) {\n return Ee(s, \"columns\");\n }\n function Ve(s) {\n var v = s.id, y = s.accessor, w = s.Header;\n if (typeof y == \"string\") {\n v = v || y;\n var E = y.split(\".\");\n y = function(S) {\n return function(O, _, G) {\n if (!_)\n return O;\n var z, ne = typeof _ == \"function\" ? _ : JSON.stringify(_), J = dt.get(ne) || function() {\n var ee = function(W) {\n return function Z(le, de) {\n if (de === void 0 && (de = []), Array.isArray(le))\n for (var Re = 0; Re < le.length; Re += 1)\n Z(le[Re], de);\n else\n de.push(le);\n return de;\n }(W).map(function(Z) {\n return String(Z).replace(\".\", \"_\");\n }).join(\".\").replace(Ce, \".\").replace(De, \"\").split(\".\");\n }(_);\n return dt.set(ne, ee), ee;\n }();\n try {\n z = J.reduce(function(ee, W) {\n return ee[W];\n }, O);\n } catch {\n }\n return z !== void 0 ? z : G;\n }(S, E);\n };\n }\n if (!v && typeof w == \"string\" && w && (v = w), !v && s.columns)\n throw console.error(s), new Error('A column ID (or unique \"Header\" value) is required!');\n if (!v)\n throw console.error(s), new Error(\"A column ID (or string accessor) is required!\");\n return Object.assign(s, { id: v, accessor: y }), s;\n }\n function st(s, v) {\n if (!v)\n throw new Error();\n return Object.assign(s, o({ Header: f, Footer: f }, b, {}, v, {}, s)), Object.assign(s, { originalWidth: s.width }), s;\n }\n function it(s, v, y) {\n y === void 0 && (y = function() {\n return {};\n });\n for (var w = [], E = s, S = 0, O = function() {\n return S++;\n }, _ = function() {\n var G = { headers: [] }, z = [], ne = E.some(function(J) {\n return J.parent;\n });\n E.forEach(function(J) {\n var ee, W = [].concat(z).reverse()[0];\n ne && (J.parent ? ee = o({}, J.parent, { originalId: J.parent.id, id: J.parent.id + \"_\" + O(), headers: [J] }, y(J)) : ee = st(o({ originalId: J.id + \"_placeholder\", id: J.id + \"_placeholder_\" + O(), placeholderOf: J, headers: [J] }, y(J)), v), W && W.originalId === ee.originalId ? W.headers.push(J) : z.push(ee)), G.headers.push(J);\n }), w.push(G), E = z;\n }; E.length; )\n _();\n return w.reverse();\n }\n var dt = /* @__PURE__ */ new Map();\n function X() {\n for (var s = arguments.length, v = new Array(s), y = 0; y < s; y++)\n v[y] = arguments[y];\n for (var w = 0; w < v.length; w += 1)\n if (v[w] !== void 0)\n return v[w];\n }\n function ie(s) {\n if (typeof s == \"function\")\n return s;\n }\n function Ee(s, v) {\n var y = [];\n return function w(E) {\n E.forEach(function(S) {\n S[v] ? w(S[v]) : y.push(S);\n });\n }(s), y;\n }\n function $(s, v) {\n var y = v.manualExpandedKey, w = v.expanded, E = v.expandSubRows, S = E === void 0 || E, O = [];\n return s.forEach(function(_) {\n return function G(z, ne) {\n ne === void 0 && (ne = !0), z.isExpanded = z.original && z.original[y] || w[z.id], z.canExpand = z.subRows && !!z.subRows.length, ne && O.push(z), z.subRows && z.subRows.length && z.isExpanded && z.subRows.forEach(function(J) {\n return G(J, S);\n });\n }(_);\n }), O;\n }\n function xe(s, v, y) {\n return ie(s) || v[s] || y[s] || y.text;\n }\n function ft(s, v, y) {\n return s ? s(v, y) : v === void 0;\n }\n function U() {\n throw new Error(\"React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.\");\n }\n var q = null, Ce = /\\[/g, De = /\\]/g, Me = function(s) {\n return o({ role: \"table\" }, s);\n }, Qe = function(s) {\n return o({ role: \"rowgroup\" }, s);\n }, Fe = function(s, v) {\n var y = v.column;\n return o({ key: \"header_\" + y.id, colSpan: y.totalVisibleHeaderCount, role: \"columnheader\" }, s);\n }, We = function(s, v) {\n var y = v.column;\n return o({ key: \"footer_\" + y.id, colSpan: y.totalVisibleHeaderCount }, s);\n }, Je = function(s, v) {\n return o({ key: \"headerGroup_\" + v.index, role: \"row\" }, s);\n }, nt = function(s, v) {\n return o({ key: \"footerGroup_\" + v.index }, s);\n }, et = function(s, v) {\n return o({ key: \"row_\" + v.row.id, role: \"row\" }, s);\n }, ht = function(s, v) {\n var y = v.cell;\n return o({ key: \"cell_\" + y.row.id + \"_\" + y.column.id, role: \"cell\" }, s);\n };\n function he() {\n return { useOptions: [], stateReducers: [], useControlledState: [], columns: [], columnsDeps: [], allColumns: [], allColumnsDeps: [], accessValue: [], materializedColumns: [], materializedColumnsDeps: [], useInstanceAfterData: [], visibleColumns: [], visibleColumnsDeps: [], headerGroups: [], headerGroupsDeps: [], useInstanceBeforeDimensions: [], useInstance: [], prepareRow: [], getTableProps: [Me], getTableBodyProps: [Qe], getHeaderGroupProps: [Je], getFooterGroupProps: [nt], getHeaderProps: [Fe], getFooterProps: [We], getRowProps: [et], getCellProps: [ht], useFinalInstance: [] };\n }\n c.resetHiddenColumns = \"resetHiddenColumns\", c.toggleHideColumn = \"toggleHideColumn\", c.setHiddenColumns = \"setHiddenColumns\", c.toggleHideAllColumns = \"toggleHideAllColumns\";\n var It = function(s) {\n s.getToggleHiddenProps = [sn], s.getToggleHideAllColumnsProps = [ir], s.stateReducers.push(ma), s.useInstanceBeforeDimensions.push(ha), s.headerGroupsDeps.push(function(v, y) {\n var w = y.instance;\n return [].concat(v, [w.state.hiddenColumns]);\n }), s.useInstance.push(va);\n };\n It.pluginName = \"useColumnVisibility\";\n var sn = function(s, v) {\n var y = v.column;\n return [s, { onChange: function(w) {\n y.toggleHidden(!w.target.checked);\n }, style: { cursor: \"pointer\" }, checked: y.isVisible, title: \"Toggle Column Visible\" }];\n }, ir = function(s, v) {\n var y = v.instance;\n return [s, { onChange: function(w) {\n y.toggleHideAllColumns(!w.target.checked);\n }, style: { cursor: \"pointer\" }, checked: !y.allColumnsHidden && !y.state.hiddenColumns.length, title: \"Toggle All Columns Hidden\", indeterminate: !y.allColumnsHidden && y.state.hiddenColumns.length }];\n };\n function ma(s, v, y, w) {\n if (v.type === c.init)\n return o({ hiddenColumns: [] }, s);\n if (v.type === c.resetHiddenColumns)\n return o({}, s, { hiddenColumns: w.initialState.hiddenColumns || [] });\n if (v.type === c.toggleHideColumn) {\n var E = (v.value !== void 0 ? v.value : !s.hiddenColumns.includes(v.columnId)) ? [].concat(s.hiddenColumns, [v.columnId]) : s.hiddenColumns.filter(function(S) {\n return S !== v.columnId;\n });\n return o({}, s, { hiddenColumns: E });\n }\n return v.type === c.setHiddenColumns ? o({}, s, { hiddenColumns: M(v.value, s.hiddenColumns) }) : v.type === c.toggleHideAllColumns ? o({}, s, { hiddenColumns: (v.value !== void 0 ? v.value : !s.hiddenColumns.length) ? w.allColumns.map(function(S) {\n return S.id;\n }) : [] }) : void 0;\n }\n function ha(s) {\n var v = s.headers, y = s.state.hiddenColumns;\n r.useRef(!1).current;\n var w = 0;\n v.forEach(function(E) {\n return w += function S(O, _) {\n O.isVisible = _ && !y.includes(O.id);\n var G = 0;\n return O.headers && O.headers.length ? O.headers.forEach(function(z) {\n return G += S(z, O.isVisible);\n }) : G = O.isVisible ? 1 : 0, O.totalVisibleHeaderCount = G, G;\n }(E, !0);\n });\n }\n function va(s) {\n var v = s.columns, y = s.flatHeaders, w = s.dispatch, E = s.allColumns, S = s.getHooks, O = s.state.hiddenColumns, _ = s.autoResetHiddenColumns, G = _ === void 0 || _, z = F(s), ne = E.length === O.length, J = r.useCallback(function(de, Re) {\n return w({ type: c.toggleHideColumn, columnId: de, value: Re });\n }, [w]), ee = r.useCallback(function(de) {\n return w({ type: c.setHiddenColumns, value: de });\n }, [w]), W = r.useCallback(function(de) {\n return w({ type: c.toggleHideAllColumns, value: de });\n }, [w]), Z = P(S().getToggleHideAllColumnsProps, { instance: z() });\n y.forEach(function(de) {\n de.toggleHidden = function(Re) {\n w({ type: c.toggleHideColumn, columnId: de.id, value: Re });\n }, de.getToggleHiddenProps = P(S().getToggleHiddenProps, { instance: z(), column: de });\n });\n var le = F(G);\n B(function() {\n le() && w({ type: c.resetHiddenColumns });\n }, [w, v]), Object.assign(s, { allColumnsHidden: ne, toggleHideColumn: J, setHiddenColumns: ee, toggleHideAllColumns: W, getToggleHideAllColumnsProps: Z });\n }\n var ga = {}, ya = {}, ba = function(s, v, y) {\n return s;\n }, wa = function(s, v) {\n return s.subRows || [];\n }, xa = function(s, v, y) {\n return \"\" + (y ? [y.id, v].join(\".\") : v);\n }, yi = function(s) {\n return s;\n };\n function bi(s) {\n var v = s.initialState, y = v === void 0 ? ga : v, w = s.defaultColumn, E = w === void 0 ? ya : w, S = s.getSubRows, O = S === void 0 ? wa : S, _ = s.getRowId, G = _ === void 0 ? xa : _, z = s.stateReducer, ne = z === void 0 ? ba : z, J = s.useControlledState, ee = J === void 0 ? yi : J;\n return o({}, l(s, [\"initialState\", \"defaultColumn\", \"getSubRows\", \"getRowId\", \"stateReducer\", \"useControlledState\"]), { initialState: y, defaultColumn: E, getSubRows: O, getRowId: G, stateReducer: ne, useControlledState: ee });\n }\n function wi(s, v) {\n v === void 0 && (v = 0);\n var y = 0, w = 0, E = 0, S = 0;\n return s.forEach(function(O) {\n var _ = O.headers;\n if (O.totalLeft = v, _ && _.length) {\n var G = wi(_, v), z = G[0], ne = G[1], J = G[2], ee = G[3];\n O.totalMinWidth = z, O.totalWidth = ne, O.totalMaxWidth = J, O.totalFlexWidth = ee;\n } else\n O.totalMinWidth = O.minWidth, O.totalWidth = Math.min(Math.max(O.minWidth, O.width), O.maxWidth), O.totalMaxWidth = O.maxWidth, O.totalFlexWidth = O.canResize ? O.totalWidth : 0;\n O.isVisible && (v += O.totalWidth, y += O.totalMinWidth, w += O.totalWidth, E += O.totalMaxWidth, S += O.totalFlexWidth);\n }), [y, w, E, S];\n }\n function Ca(s) {\n var v = s.data, y = s.rows, w = s.flatRows, E = s.rowsById, S = s.column, O = s.getRowId, _ = s.getSubRows, G = s.accessValueHooks, z = s.getInstance;\n v.forEach(function(ne, J) {\n return function ee(W, Z, le, de, Re) {\n le === void 0 && (le = 0);\n var Ue = W, Se = O(W, Z, de), re = E[Se];\n if (re)\n re.subRows && re.originalSubRows.forEach(function(ge, $e) {\n return ee(ge, $e, le + 1, re);\n });\n else if ((re = { id: Se, original: Ue, index: Z, depth: le, cells: [{}] }).cells.map = U, re.cells.filter = U, re.cells.forEach = U, re.cells[0].getCellProps = U, re.values = {}, Re.push(re), w.push(re), E[Se] = re, re.originalSubRows = _(W, Z), re.originalSubRows) {\n var je = [];\n re.originalSubRows.forEach(function(ge, $e) {\n return ee(ge, $e, le + 1, re, je);\n }), re.subRows = je;\n }\n S.accessor && (re.values[S.id] = S.accessor(W, Z, re, Re, v)), re.values[S.id] = I(G, re.values[S.id], { row: re, column: S, instance: z() });\n }(ne, J, 0, void 0, y);\n });\n }\n c.resetExpanded = \"resetExpanded\", c.toggleRowExpanded = \"toggleRowExpanded\", c.toggleAllRowsExpanded = \"toggleAllRowsExpanded\";\n var xi = function(s) {\n s.getToggleAllRowsExpandedProps = [Ra], s.getToggleRowExpandedProps = [Sa], s.stateReducers.push(Pa), s.useInstance.push(Ta), s.prepareRow.push(Aa);\n };\n xi.pluginName = \"useExpanded\";\n var Ra = function(s, v) {\n var y = v.instance;\n return [s, { onClick: function(w) {\n y.toggleAllRowsExpanded();\n }, style: { cursor: \"pointer\" }, title: \"Toggle All Rows Expanded\" }];\n }, Sa = function(s, v) {\n var y = v.row;\n return [s, { onClick: function() {\n y.toggleRowExpanded();\n }, style: { cursor: \"pointer\" }, title: \"Toggle Row Expanded\" }];\n };\n function Pa(s, v, y, w) {\n if (v.type === c.init)\n return o({ expanded: {} }, s);\n if (v.type === c.resetExpanded)\n return o({}, s, { expanded: w.initialState.expanded || {} });\n if (v.type === c.toggleAllRowsExpanded) {\n var E = v.value, S = w.rowsById, O = Object.keys(S).length === Object.keys(s.expanded).length;\n if (E !== void 0 ? E : !O) {\n var _ = {};\n return Object.keys(S).forEach(function(Z) {\n _[Z] = !0;\n }), o({}, s, { expanded: _ });\n }\n return o({}, s, { expanded: {} });\n }\n if (v.type === c.toggleRowExpanded) {\n var G, z = v.id, ne = v.value, J = s.expanded[z], ee = ne !== void 0 ? ne : !J;\n if (!J && ee)\n return o({}, s, { expanded: o({}, s.expanded, (G = {}, G[z] = !0, G)) });\n if (J && !ee) {\n var W = s.expanded;\n return W[z], o({}, s, { expanded: l(W, [z].map(d)) });\n }\n return s;\n }\n }\n function Ta(s) {\n var v = s.data, y = s.rows, w = s.rowsById, E = s.manualExpandedKey, S = E === void 0 ? \"expanded\" : E, O = s.paginateExpandedRows, _ = O === void 0 || O, G = s.expandSubRows, z = G === void 0 || G, ne = s.autoResetExpanded, J = ne === void 0 || ne, ee = s.getHooks, W = s.plugins, Z = s.state.expanded, le = s.dispatch;\n L(W, [\"useSortBy\", \"useGroupBy\", \"usePivotColumns\", \"useGlobalFilter\"], \"useExpanded\");\n var de = F(J), Re = !!(Object.keys(w).length && Object.keys(Z).length);\n Re && Object.keys(w).some(function(tt) {\n return !Z[tt];\n }) && (Re = !1), B(function() {\n de() && le({ type: c.resetExpanded });\n }, [le, v]);\n var Ue = r.useCallback(function(tt, ke) {\n le({ type: c.toggleRowExpanded, id: tt, value: ke });\n }, [le]), Se = r.useCallback(function(tt) {\n return le({ type: c.toggleAllRowsExpanded, value: tt });\n }, [le]), re = r.useMemo(function() {\n return _ ? $(y, { manualExpandedKey: S, expanded: Z, expandSubRows: z }) : y;\n }, [_, y, S, Z, z]), je = r.useMemo(function() {\n return function(tt) {\n var ke = 0;\n return Object.keys(tt).forEach(function(Ne) {\n var at = Ne.split(\".\");\n ke = Math.max(ke, at.length);\n }), ke;\n }(Z);\n }, [Z]), ge = F(s), $e = P(ee().getToggleAllRowsExpandedProps, { instance: ge() });\n Object.assign(s, { preExpandedRows: y, expandedRows: re, rows: re, expandedDepth: je, isAllRowsExpanded: Re, toggleRowExpanded: Ue, toggleAllRowsExpanded: Se, getToggleAllRowsExpandedProps: $e });\n }\n function Aa(s, v) {\n var y = v.instance.getHooks, w = v.instance;\n s.toggleRowExpanded = function(E) {\n return w.toggleRowExpanded(s.id, E);\n }, s.getToggleRowExpandedProps = P(y().getToggleRowExpandedProps, { instance: w, row: s });\n }\n var Ci = function(s, v, y) {\n return s = s.filter(function(w) {\n return v.some(function(E) {\n var S = w.values[E];\n return String(S).toLowerCase().includes(String(y).toLowerCase());\n });\n });\n };\n Ci.autoRemove = function(s) {\n return !s;\n };\n var Ri = function(s, v, y) {\n return s.filter(function(w) {\n return v.some(function(E) {\n var S = w.values[E];\n return S === void 0 || String(S).toLowerCase() === String(y).toLowerCase();\n });\n });\n };\n Ri.autoRemove = function(s) {\n return !s;\n };\n var Sr = function(s, v, y) {\n return s.filter(function(w) {\n return v.some(function(E) {\n var S = w.values[E];\n return S === void 0 || String(S) === String(y);\n });\n });\n };\n Sr.autoRemove = function(s) {\n return !s;\n };\n var Si = function(s, v, y) {\n return s.filter(function(w) {\n return v.some(function(E) {\n return w.values[E].includes(y);\n });\n });\n };\n Si.autoRemove = function(s) {\n return !s || !s.length;\n };\n var Pr = function(s, v, y) {\n return s.filter(function(w) {\n return v.some(function(E) {\n var S = w.values[E];\n return S && S.length && y.every(function(O) {\n return S.includes(O);\n });\n });\n });\n };\n Pr.autoRemove = function(s) {\n return !s || !s.length;\n };\n var Pi = function(s, v, y) {\n return s.filter(function(w) {\n return v.some(function(E) {\n var S = w.values[E];\n return S && S.length && y.some(function(O) {\n return S.includes(O);\n });\n });\n });\n };\n Pi.autoRemove = function(s) {\n return !s || !s.length;\n };\n var Tr = function(s, v, y) {\n return s.filter(function(w) {\n return v.some(function(E) {\n var S = w.values[E];\n return y.includes(S);\n });\n });\n };\n Tr.autoRemove = function(s) {\n return !s || !s.length;\n };\n var Ti = function(s, v, y) {\n return s.filter(function(w) {\n return v.some(function(E) {\n return w.values[E] === y;\n });\n });\n };\n Ti.autoRemove = function(s) {\n return s === void 0;\n };\n var Ai = function(s, v, y) {\n return s.filter(function(w) {\n return v.some(function(E) {\n return w.values[E] == y;\n });\n });\n };\n Ai.autoRemove = function(s) {\n return s == null;\n };\n var Ei = function(s, v, y) {\n var w = y || [], E = w[0], S = w[1];\n if ((E = typeof E == \"number\" ? E : -1 / 0) > (S = typeof S == \"number\" ? S : 1 / 0)) {\n var O = E;\n E = S, S = O;\n }\n return s.filter(function(_) {\n return v.some(function(G) {\n var z = _.values[G];\n return z >= E && z <= S;\n });\n });\n };\n Ei.autoRemove = function(s) {\n return !s || typeof s[0] != \"number\" && typeof s[1] != \"number\";\n };\n var Dn = Object.freeze({ __proto__: null, text: Ci, exactText: Ri, exactTextCase: Sr, includes: Si, includesAll: Pr, includesSome: Pi, includesValue: Tr, exact: Ti, equals: Ai, between: Ei });\n c.resetFilters = \"resetFilters\", c.setFilter = \"setFilter\", c.setAllFilters = \"setAllFilters\";\n var Oi = function(s) {\n s.stateReducers.push(Ea), s.useInstance.push(ki);\n };\n function Ea(s, v, y, w) {\n if (v.type === c.init)\n return o({ filters: [] }, s);\n if (v.type === c.resetFilters)\n return o({}, s, { filters: w.initialState.filters || [] });\n if (v.type === c.setFilter) {\n var E = v.columnId, S = v.filterValue, O = w.allColumns, _ = w.filterTypes, G = O.find(function(le) {\n return le.id === E;\n });\n if (!G)\n throw new Error(\"React-Table: Could not find a column with id: \" + E);\n var z = xe(G.filter, _ || {}, Dn), ne = s.filters.find(function(le) {\n return le.id === E;\n }), J = M(S, ne && ne.value);\n return ft(z.autoRemove, J, G) ? o({}, s, { filters: s.filters.filter(function(le) {\n return le.id !== E;\n }) }) : o({}, s, ne ? { filters: s.filters.map(function(le) {\n return le.id === E ? { id: E, value: J } : le;\n }) } : { filters: [].concat(s.filters, [{ id: E, value: J }]) });\n }\n if (v.type === c.setAllFilters) {\n var ee = v.filters, W = w.allColumns, Z = w.filterTypes;\n return o({}, s, { filters: M(ee, s.filters).filter(function(le) {\n var de = W.find(function(Re) {\n return Re.id === le.id;\n });\n return !ft(xe(de.filter, Z || {}, Dn).autoRemove, le.value, de);\n }) });\n }\n }\n function ki(s) {\n var v = s.data, y = s.rows, w = s.flatRows, E = s.rowsById, S = s.allColumns, O = s.filterTypes, _ = s.manualFilters, G = s.defaultCanFilter, z = G !== void 0 && G, ne = s.disableFilters, J = s.state.filters, ee = s.dispatch, W = s.autoResetFilters, Z = W === void 0 || W, le = r.useCallback(function(ge, $e) {\n ee({ type: c.setFilter, columnId: ge, filterValue: $e });\n }, [ee]), de = r.useCallback(function(ge) {\n ee({ type: c.setAllFilters, filters: ge });\n }, [ee]);\n S.forEach(function(ge) {\n var $e = ge.id, tt = ge.accessor, ke = ge.defaultCanFilter, Ne = ge.disableFilters;\n ge.canFilter = tt ? X(Ne !== !0 && void 0, ne !== !0 && void 0, !0) : X(ke, z, !1), ge.setFilter = function(Ge) {\n return le(ge.id, Ge);\n };\n var at = J.find(function(Ge) {\n return Ge.id === $e;\n });\n ge.filterValue = at && at.value;\n });\n var Re = r.useMemo(function() {\n if (_ || !J.length)\n return [y, w, E];\n var ge = [], $e = {};\n return [function tt(ke, Ne) {\n Ne === void 0 && (Ne = 0);\n var at = ke;\n return (at = J.reduce(function(Ge, rt) {\n var u = rt.id, p = rt.value, g = S.find(function(R) {\n return R.id === u;\n });\n if (!g)\n return Ge;\n Ne === 0 && (g.preFilteredRows = Ge);\n var h = xe(g.filter, O || {}, Dn);\n return h ? (g.filteredRows = h(Ge, [u], p), g.filteredRows) : (console.warn(\"Could not find a valid 'column.filter' for column with the ID: \" + g.id + \".\"), Ge);\n }, ke)).forEach(function(Ge) {\n ge.push(Ge), $e[Ge.id] = Ge, Ge.subRows && (Ge.subRows = Ge.subRows && Ge.subRows.length > 0 ? tt(Ge.subRows, Ne + 1) : Ge.subRows);\n }), at;\n }(y), ge, $e];\n }, [_, J, y, w, E, S, O]), Ue = Re[0], Se = Re[1], re = Re[2];\n r.useMemo(function() {\n S.filter(function(ge) {\n return !J.find(function($e) {\n return $e.id === ge.id;\n });\n }).forEach(function(ge) {\n ge.preFilteredRows = Ue, ge.filteredRows = Ue;\n });\n }, [Ue, J, S]);\n var je = F(Z);\n B(function() {\n je() && ee({ type: c.resetFilters });\n }, [ee, _ ? null : v]), Object.assign(s, { preFilteredRows: y, preFilteredFlatRows: w, preFilteredRowsById: E, filteredRows: Ue, filteredFlatRows: Se, filteredRowsById: re, rows: Ue, flatRows: Se, rowsById: re, setFilter: le, setAllFilters: de });\n }\n Oi.pluginName = \"useFilters\", c.resetGlobalFilter = \"resetGlobalFilter\", c.setGlobalFilter = \"setGlobalFilter\";\n var Ar = function(s) {\n s.stateReducers.push(Ii), s.useInstance.push(Mi);\n };\n function Ii(s, v, y, w) {\n if (v.type === c.resetGlobalFilter)\n return o({}, s, { globalFilter: w.initialState.globalFilter || void 0 });\n if (v.type === c.setGlobalFilter) {\n var E = v.filterValue, S = w.userFilterTypes, O = xe(w.globalFilter, S || {}, Dn), _ = M(E, s.globalFilter);\n return ft(O.autoRemove, _) ? (s.globalFilter, l(s, [\"globalFilter\"])) : o({}, s, { globalFilter: _ });\n }\n }\n function Mi(s) {\n var v = s.data, y = s.rows, w = s.flatRows, E = s.rowsById, S = s.allColumns, O = s.filterTypes, _ = s.globalFilter, G = s.manualGlobalFilter, z = s.state.globalFilter, ne = s.dispatch, J = s.autoResetGlobalFilter, ee = J === void 0 || J, W = s.disableGlobalFilter, Z = r.useCallback(function(re) {\n ne({ type: c.setGlobalFilter, filterValue: re });\n }, [ne]), le = r.useMemo(function() {\n if (G || z === void 0)\n return [y, w, E];\n var re = [], je = {}, ge = xe(_, O || {}, Dn);\n if (!ge)\n return console.warn(\"Could not find a valid 'globalFilter' option.\"), y;\n S.forEach(function(tt) {\n var ke = tt.disableGlobalFilter;\n tt.canFilter = X(ke !== !0 && void 0, W !== !0 && void 0, !0);\n });\n var $e = S.filter(function(tt) {\n return tt.canFilter === !0;\n });\n return [function tt(ke) {\n return (ke = ge(ke, $e.map(function(Ne) {\n return Ne.id;\n }), z)).forEach(function(Ne) {\n re.push(Ne), je[Ne.id] = Ne, Ne.subRows = Ne.subRows && Ne.subRows.length ? tt(Ne.subRows) : Ne.subRows;\n }), ke;\n }(y), re, je];\n }, [G, z, _, O, S, y, w, E, W]), de = le[0], Re = le[1], Ue = le[2], Se = F(ee);\n B(function() {\n Se() && ne({ type: c.resetGlobalFilter });\n }, [ne, G ? null : v]), Object.assign(s, { preGlobalFilteredRows: y, preGlobalFilteredFlatRows: w, preGlobalFilteredRowsById: E, globalFilteredRows: de, globalFilteredFlatRows: Re, globalFilteredRowsById: Ue, rows: de, flatRows: Re, rowsById: Ue, setGlobalFilter: Z, disableGlobalFilter: W });\n }\n function Er(s, v) {\n return v.reduce(function(y, w) {\n return y + (typeof w == \"number\" ? w : 0);\n }, 0);\n }\n Ar.pluginName = \"useGlobalFilter\";\n var Or = Object.freeze({ __proto__: null, sum: Er, min: function(s) {\n var v = s[0] || 0;\n return s.forEach(function(y) {\n typeof y == \"number\" && (v = Math.min(v, y));\n }), v;\n }, max: function(s) {\n var v = s[0] || 0;\n return s.forEach(function(y) {\n typeof y == \"number\" && (v = Math.max(v, y));\n }), v;\n }, minMax: function(s) {\n var v = s[0] || 0, y = s[0] || 0;\n return s.forEach(function(w) {\n typeof w == \"number\" && (v = Math.min(v, w), y = Math.max(y, w));\n }), v + \"..\" + y;\n }, average: function(s) {\n return Er(0, s) / s.length;\n }, median: function(s) {\n if (!s.length)\n return null;\n var v = Math.floor(s.length / 2), y = [].concat(s).sort(function(w, E) {\n return w - E;\n });\n return s.length % 2 != 0 ? y[v] : (y[v - 1] + y[v]) / 2;\n }, unique: function(s) {\n return Array.from(new Set(s).values());\n }, uniqueCount: function(s) {\n return new Set(s).size;\n }, count: function(s) {\n return s.length;\n } }), Fi = [], Bi = {};\n c.resetGroupBy = \"resetGroupBy\", c.setGroupBy = \"setGroupBy\", c.toggleGroupBy = \"toggleGroupBy\";\n var kr = function(s) {\n s.getGroupByToggleProps = [Di], s.stateReducers.push(Nn), s.visibleColumnsDeps.push(function(v, y) {\n var w = y.instance;\n return [].concat(v, [w.state.groupBy]);\n }), s.visibleColumns.push(Ni), s.useInstance.push(ka), s.prepareRow.push(Li);\n };\n kr.pluginName = \"useGroupBy\";\n var Di = function(s, v) {\n var y = v.header;\n return [s, { onClick: y.canGroupBy ? function(w) {\n w.persist(), y.toggleGroupBy();\n } : void 0, style: { cursor: y.canGroupBy ? \"pointer\" : void 0 }, title: \"Toggle GroupBy\" }];\n };\n function Nn(s, v, y, w) {\n if (v.type === c.init)\n return o({ groupBy: [] }, s);\n if (v.type === c.resetGroupBy)\n return o({}, s, { groupBy: w.initialState.groupBy || [] });\n if (v.type === c.setGroupBy)\n return o({}, s, { groupBy: v.value });\n if (v.type === c.toggleGroupBy) {\n var E = v.columnId, S = v.value, O = S !== void 0 ? S : !s.groupBy.includes(E);\n return o({}, s, O ? { groupBy: [].concat(s.groupBy, [E]) } : { groupBy: s.groupBy.filter(function(_) {\n return _ !== E;\n }) });\n }\n }\n function Ni(s, v) {\n var y = v.instance.state.groupBy, w = y.map(function(S) {\n return s.find(function(O) {\n return O.id === S;\n });\n }).filter(Boolean), E = s.filter(function(S) {\n return !y.includes(S.id);\n });\n return (s = [].concat(w, E)).forEach(function(S) {\n S.isGrouped = y.includes(S.id), S.groupedIndex = y.indexOf(S.id);\n }), s;\n }\n var Oa = {};\n function ka(s) {\n var v = s.data, y = s.rows, w = s.flatRows, E = s.rowsById, S = s.allColumns, O = s.flatHeaders, _ = s.groupByFn, G = _ === void 0 ? $i : _, z = s.manualGroupBy, ne = s.aggregations, J = ne === void 0 ? Oa : ne, ee = s.plugins, W = s.state.groupBy, Z = s.dispatch, le = s.autoResetGroupBy, de = le === void 0 || le, Re = s.disableGroupBy, Ue = s.defaultCanGroupBy, Se = s.getHooks;\n L(ee, [\"useColumnOrder\", \"useFilters\"], \"useGroupBy\");\n var re = F(s);\n S.forEach(function(g) {\n var h = g.accessor, R = g.defaultGroupBy, A = g.disableGroupBy;\n g.canGroupBy = h ? X(g.canGroupBy, A !== !0 && void 0, Re !== !0 && void 0, !0) : X(g.canGroupBy, R, Ue, !1), g.canGroupBy && (g.toggleGroupBy = function() {\n return s.toggleGroupBy(g.id);\n }), g.Aggregated = g.Aggregated || g.Cell;\n });\n var je = r.useCallback(function(g, h) {\n Z({ type: c.toggleGroupBy, columnId: g, value: h });\n }, [Z]), ge = r.useCallback(function(g) {\n Z({ type: c.setGroupBy, value: g });\n }, [Z]);\n O.forEach(function(g) {\n g.getGroupByToggleProps = P(Se().getGroupByToggleProps, { instance: re(), header: g });\n });\n var $e = r.useMemo(function() {\n if (z || !W.length)\n return [y, w, E, Fi, Bi, w, E];\n var g = W.filter(function(H) {\n return S.find(function(oe) {\n return oe.id === H;\n });\n }), h = [], R = {}, A = [], C = {}, k = [], N = {}, V = function H(oe, K, te) {\n if (K === void 0 && (K = 0), K === g.length)\n return oe.map(function(ve) {\n return o({}, ve, { depth: K });\n });\n var ae = g[K], Y = G(oe, ae);\n return Object.entries(Y).map(function(ve, Te) {\n var Be = ve[0], fe = ve[1], He = ae + \":\" + Be, Xe = H(fe, K + 1, He = te ? te + \">\" + He : He), pe = K ? Ee(fe, \"leafRows\") : fe, ue = function(Pe, qe, Ye) {\n var lt = {};\n return S.forEach(function(be) {\n if (g.includes(be.id))\n lt[be.id] = qe[0] ? qe[0].values[be.id] : null;\n else {\n var At = typeof be.aggregate == \"function\" ? be.aggregate : J[be.aggregate] || Or[be.aggregate];\n if (At) {\n var Ke = qe.map(function(_e) {\n return _e.values[be.id];\n }), Le = Pe.map(function(_e) {\n var pt = _e.values[be.id];\n if (!Ye && be.aggregateValue) {\n var Mt = typeof be.aggregateValue == \"function\" ? be.aggregateValue : J[be.aggregateValue] || Or[be.aggregateValue];\n if (!Mt)\n throw console.info({ column: be }), new Error(\"React Table: Invalid column.aggregateValue option for column listed above\");\n pt = Mt(pt, _e, be);\n }\n return pt;\n });\n lt[be.id] = At(Le, Ke);\n } else {\n if (be.aggregate)\n throw console.info({ column: be }), new Error(\"React Table: Invalid column.aggregate option for column listed above\");\n lt[be.id] = null;\n }\n }\n }), lt;\n }(pe, fe, K), me = { id: He, isGrouped: !0, groupByID: ae, groupByVal: Be, values: ue, subRows: Xe, leafRows: pe, depth: K, index: Te };\n return Xe.forEach(function(Pe) {\n h.push(Pe), R[Pe.id] = Pe, Pe.isGrouped ? (A.push(Pe), C[Pe.id] = Pe) : (k.push(Pe), N[Pe.id] = Pe);\n }), me;\n });\n }(y);\n return V.forEach(function(H) {\n h.push(H), R[H.id] = H, H.isGrouped ? (A.push(H), C[H.id] = H) : (k.push(H), N[H.id] = H);\n }), [V, h, R, A, C, k, N];\n }, [z, W, y, w, E, S, J, G]), tt = $e[0], ke = $e[1], Ne = $e[2], at = $e[3], Ge = $e[4], rt = $e[5], u = $e[6], p = F(de);\n B(function() {\n p() && Z({ type: c.resetGroupBy });\n }, [Z, z ? null : v]), Object.assign(s, { preGroupedRows: y, preGroupedFlatRow: w, preGroupedRowsById: E, groupedRows: tt, groupedFlatRows: ke, groupedRowsById: Ne, onlyGroupedFlatRows: at, onlyGroupedRowsById: Ge, nonGroupedFlatRows: rt, nonGroupedRowsById: u, rows: tt, flatRows: ke, rowsById: Ne, toggleGroupBy: je, setGroupBy: ge });\n }\n function Li(s) {\n s.allCells.forEach(function(v) {\n var y;\n v.isGrouped = v.column.isGrouped && v.column.id === s.groupByID, v.isPlaceholder = !v.isGrouped && v.column.isGrouped, v.isAggregated = !v.isGrouped && !v.isPlaceholder && ((y = s.subRows) == null ? void 0 : y.length);\n });\n }\n function $i(s, v) {\n return s.reduce(function(y, w, E) {\n var S = \"\" + w.values[v];\n return y[S] = Array.isArray(y[S]) ? y[S] : [], y[S].push(w), y;\n }, {});\n }\n var _i = /([0-9]+)/gm;\n function or(s, v) {\n return s === v ? 0 : s > v ? 1 : -1;\n }\n function Ln(s, v, y) {\n return [s.values[y], v.values[y]];\n }\n function Vi(s) {\n return typeof s == \"number\" ? isNaN(s) || s === 1 / 0 || s === -1 / 0 ? \"\" : String(s) : typeof s == \"string\" ? s : \"\";\n }\n var Ia = Object.freeze({ __proto__: null, alphanumeric: function(s, v, y) {\n var w = Ln(s, v, y), E = w[0], S = w[1];\n for (E = Vi(E), S = Vi(S), E = E.split(_i).filter(Boolean), S = S.split(_i).filter(Boolean); E.length && S.length; ) {\n var O = E.shift(), _ = S.shift(), G = parseInt(O, 10), z = parseInt(_, 10), ne = [G, z].sort();\n if (isNaN(ne[0])) {\n if (O > _)\n return 1;\n if (_ > O)\n return -1;\n } else {\n if (isNaN(ne[1]))\n return isNaN(G) ? -1 : 1;\n if (G > z)\n return 1;\n if (z > G)\n return -1;\n }\n }\n return E.length - S.length;\n }, datetime: function(s, v, y) {\n var w = Ln(s, v, y), E = w[0], S = w[1];\n return or(E = E.getTime(), S = S.getTime());\n }, basic: function(s, v, y) {\n var w = Ln(s, v, y);\n return or(w[0], w[1]);\n }, string: function(s, v, y) {\n var w = Ln(s, v, y), E = w[0], S = w[1];\n for (E = E.split(\"\").filter(Boolean), S = S.split(\"\").filter(Boolean); E.length && S.length; ) {\n var O = E.shift(), _ = S.shift(), G = O.toLowerCase(), z = _.toLowerCase();\n if (G > z)\n return 1;\n if (z > G)\n return -1;\n if (O > _)\n return 1;\n if (_ > O)\n return -1;\n }\n return E.length - S.length;\n }, number: function(s, v, y) {\n var w = Ln(s, v, y), E = w[0], S = w[1], O = /[^0-9.]/gi;\n return or(E = Number(String(E).replace(O, \"\")), S = Number(String(S).replace(O, \"\")));\n } });\n c.resetSortBy = \"resetSortBy\", c.setSortBy = \"setSortBy\", c.toggleSortBy = \"toggleSortBy\", c.clearSortBy = \"clearSortBy\", b.sortType = \"alphanumeric\", b.sortDescFirst = !1;\n var Gi = function(s) {\n s.getSortByToggleProps = [Ma], s.stateReducers.push(Fa), s.useInstance.push(Ba);\n };\n Gi.pluginName = \"useSortBy\";\n var Ma = function(s, v) {\n var y = v.instance, w = v.column, E = y.isMultiSortEvent, S = E === void 0 ? function(O) {\n return O.shiftKey;\n } : E;\n return [s, { onClick: w.canSort ? function(O) {\n O.persist(), w.toggleSortBy(void 0, !y.disableMultiSort && S(O));\n } : void 0, style: { cursor: w.canSort ? \"pointer\" : void 0 }, title: w.canSort ? \"Toggle SortBy\" : void 0 }];\n };\n function Fa(s, v, y, w) {\n if (v.type === c.init)\n return o({ sortBy: [] }, s);\n if (v.type === c.resetSortBy)\n return o({}, s, { sortBy: w.initialState.sortBy || [] });\n if (v.type === c.clearSortBy)\n return o({}, s, { sortBy: s.sortBy.filter(function(re) {\n return re.id !== v.columnId;\n }) });\n if (v.type === c.setSortBy)\n return o({}, s, { sortBy: v.sortBy });\n if (v.type === c.toggleSortBy) {\n var E, S = v.columnId, O = v.desc, _ = v.multi, G = w.allColumns, z = w.disableMultiSort, ne = w.disableSortRemove, J = w.disableMultiRemove, ee = w.maxMultiSortColCount, W = ee === void 0 ? Number.MAX_SAFE_INTEGER : ee, Z = s.sortBy, le = G.find(function(re) {\n return re.id === S;\n }).sortDescFirst, de = Z.find(function(re) {\n return re.id === S;\n }), Re = Z.findIndex(function(re) {\n return re.id === S;\n }), Ue = O != null, Se = [];\n return (E = !z && _ ? de ? \"toggle\" : \"add\" : Re !== Z.length - 1 || Z.length !== 1 ? \"replace\" : de ? \"toggle\" : \"replace\") != \"toggle\" || ne || Ue || _ && J || !(de && de.desc && !le || !de.desc && le) || (E = \"remove\"), E === \"replace\" ? Se = [{ id: S, desc: Ue ? O : le }] : E === \"add\" ? (Se = [].concat(Z, [{ id: S, desc: Ue ? O : le }])).splice(0, Se.length - W) : E === \"toggle\" ? Se = Z.map(function(re) {\n return re.id === S ? o({}, re, { desc: Ue ? O : !de.desc }) : re;\n }) : E === \"remove\" && (Se = Z.filter(function(re) {\n return re.id !== S;\n })), o({}, s, { sortBy: Se });\n }\n }\n function Ba(s) {\n var v = s.data, y = s.rows, w = s.flatRows, E = s.allColumns, S = s.orderByFn, O = S === void 0 ? ji : S, _ = s.sortTypes, G = s.manualSortBy, z = s.defaultCanSort, ne = s.disableSortBy, J = s.flatHeaders, ee = s.state.sortBy, W = s.dispatch, Z = s.plugins, le = s.getHooks, de = s.autoResetSortBy, Re = de === void 0 || de;\n L(Z, [\"useFilters\", \"useGlobalFilter\", \"useGroupBy\", \"usePivotColumns\"], \"useSortBy\");\n var Ue = r.useCallback(function(ke) {\n W({ type: c.setSortBy, sortBy: ke });\n }, [W]), Se = r.useCallback(function(ke, Ne, at) {\n W({ type: c.toggleSortBy, columnId: ke, desc: Ne, multi: at });\n }, [W]), re = F(s);\n J.forEach(function(ke) {\n var Ne = ke.accessor, at = ke.canSort, Ge = ke.disableSortBy, rt = ke.id, u = Ne ? X(Ge !== !0 && void 0, ne !== !0 && void 0, !0) : X(z, at, !1);\n ke.canSort = u, ke.canSort && (ke.toggleSortBy = function(g, h) {\n return Se(ke.id, g, h);\n }, ke.clearSortBy = function() {\n W({ type: c.clearSortBy, columnId: ke.id });\n }), ke.getSortByToggleProps = P(le().getSortByToggleProps, { instance: re(), column: ke });\n var p = ee.find(function(g) {\n return g.id === rt;\n });\n ke.isSorted = !!p, ke.sortedIndex = ee.findIndex(function(g) {\n return g.id === rt;\n }), ke.isSortedDesc = ke.isSorted ? p.desc : void 0;\n });\n var je = r.useMemo(function() {\n if (G || !ee.length)\n return [y, w];\n var ke = [], Ne = ee.filter(function(at) {\n return E.find(function(Ge) {\n return Ge.id === at.id;\n });\n });\n return [function at(Ge) {\n var rt = O(Ge, Ne.map(function(u) {\n var p = E.find(function(R) {\n return R.id === u.id;\n });\n if (!p)\n throw new Error(\"React-Table: Could not find a column with id: \" + u.id + \" while sorting\");\n var g = p.sortType, h = ie(g) || (_ || {})[g] || Ia[g];\n if (!h)\n throw new Error(\"React-Table: Could not find a valid sortType of '\" + g + \"' for column '\" + u.id + \"'.\");\n return function(R, A) {\n return h(R, A, u.id, u.desc);\n };\n }), Ne.map(function(u) {\n var p = E.find(function(g) {\n return g.id === u.id;\n });\n return p && p.sortInverted ? u.desc : !u.desc;\n }));\n return rt.forEach(function(u) {\n ke.push(u), u.subRows && u.subRows.length !== 0 && (u.subRows = at(u.subRows));\n }), rt;\n }(y), ke];\n }, [G, ee, y, w, E, O, _]), ge = je[0], $e = je[1], tt = F(Re);\n B(function() {\n tt() && W({ type: c.resetSortBy });\n }, [G ? null : v]), Object.assign(s, { preSortedRows: y, preSortedFlatRows: w, sortedRows: ge, sortedFlatRows: $e, rows: ge, flatRows: $e, setSortBy: Ue, toggleSortBy: Se });\n }\n function ji(s, v, y) {\n return [].concat(s).sort(function(w, E) {\n for (var S = 0; S < v.length; S += 1) {\n var O = v[S], _ = y[S] === !1 || y[S] === \"desc\", G = O(w, E);\n if (G !== 0)\n return _ ? -G : G;\n }\n return y[0] ? w.index - E.index : E.index - w.index;\n });\n }\n c.resetPage = \"resetPage\", c.gotoPage = \"gotoPage\", c.setPageSize = \"setPageSize\";\n var Ir = function(s) {\n s.stateReducers.push(Da), s.useInstance.push(Na);\n };\n function Da(s, v, y, w) {\n if (v.type === c.init)\n return o({ pageSize: 10, pageIndex: 0 }, s);\n if (v.type === c.resetPage)\n return o({}, s, { pageIndex: w.initialState.pageIndex || 0 });\n if (v.type === c.gotoPage) {\n var E = w.pageCount, S = w.page, O = M(v.pageIndex, s.pageIndex), _ = !1;\n return O > s.pageIndex ? _ = E === -1 ? S.length >= s.pageSize : O < E : O < s.pageIndex && (_ = O > -1), _ ? o({}, s, { pageIndex: O }) : s;\n }\n if (v.type === c.setPageSize) {\n var G = v.pageSize, z = s.pageSize * s.pageIndex;\n return o({}, s, { pageIndex: Math.floor(z / G), pageSize: G });\n }\n }\n function Na(s) {\n var v = s.rows, y = s.autoResetPage, w = y === void 0 || y, E = s.manualExpandedKey, S = E === void 0 ? \"expanded\" : E, O = s.plugins, _ = s.pageCount, G = s.paginateExpandedRows, z = G === void 0 || G, ne = s.expandSubRows, J = ne === void 0 || ne, ee = s.state, W = ee.pageSize, Z = ee.pageIndex, le = ee.expanded, de = ee.globalFilter, Re = ee.filters, Ue = ee.groupBy, Se = ee.sortBy, re = s.dispatch, je = s.data, ge = s.manualPagination;\n L(O, [\"useGlobalFilter\", \"useFilters\", \"useGroupBy\", \"useSortBy\", \"useExpanded\"], \"usePagination\");\n var $e = F(w);\n B(function() {\n $e() && re({ type: c.resetPage });\n }, [re, ge ? null : je, de, Re, Ue, Se]);\n var tt = ge ? _ : Math.ceil(v.length / W), ke = r.useMemo(function() {\n return tt > 0 ? [].concat(new Array(tt)).fill(null).map(function(h, R) {\n return R;\n }) : [];\n }, [tt]), Ne = r.useMemo(function() {\n var h;\n if (ge)\n h = v;\n else {\n var R = W * Z, A = R + W;\n h = v.slice(R, A);\n }\n return z ? h : $(h, { manualExpandedKey: S, expanded: le, expandSubRows: J });\n }, [J, le, S, ge, Z, W, z, v]), at = Z > 0, Ge = tt === -1 ? Ne.length >= W : Z < tt - 1, rt = r.useCallback(function(h) {\n re({ type: c.gotoPage, pageIndex: h });\n }, [re]), u = r.useCallback(function() {\n return rt(function(h) {\n return h - 1;\n });\n }, [rt]), p = r.useCallback(function() {\n return rt(function(h) {\n return h + 1;\n });\n }, [rt]), g = r.useCallback(function(h) {\n re({ type: c.setPageSize, pageSize: h });\n }, [re]);\n Object.assign(s, { pageOptions: ke, pageCount: tt, page: Ne, canPreviousPage: at, canNextPage: Ge, gotoPage: rt, previousPage: u, nextPage: p, setPageSize: g });\n }\n Ir.pluginName = \"usePagination\", c.resetPivot = \"resetPivot\", c.togglePivot = \"togglePivot\";\n var Mr = function(s) {\n s.getPivotToggleProps = [La], s.stateReducers.push($a), s.useInstanceAfterData.push(_a), s.allColumns.push(Va), s.accessValue.push(Ga), s.materializedColumns.push(Hi), s.materializedColumnsDeps.push(Wi), s.visibleColumns.push(ja), s.visibleColumnsDeps.push(za), s.useInstance.push(Ha), s.prepareRow.push(Wa);\n };\n Mr.pluginName = \"usePivotColumns\";\n var zi = [], La = function(s, v) {\n var y = v.header;\n return [s, { onClick: y.canPivot ? function(w) {\n w.persist(), y.togglePivot();\n } : void 0, style: { cursor: y.canPivot ? \"pointer\" : void 0 }, title: \"Toggle Pivot\" }];\n };\n function $a(s, v, y, w) {\n if (v.type === c.init)\n return o({ pivotColumns: zi }, s);\n if (v.type === c.resetPivot)\n return o({}, s, { pivotColumns: w.initialState.pivotColumns || zi });\n if (v.type === c.togglePivot) {\n var E = v.columnId, S = v.value, O = S !== void 0 ? S : !s.pivotColumns.includes(E);\n return o({}, s, O ? { pivotColumns: [].concat(s.pivotColumns, [E]) } : { pivotColumns: s.pivotColumns.filter(function(_) {\n return _ !== E;\n }) });\n }\n }\n function _a(s) {\n s.allColumns.forEach(function(v) {\n v.isPivotSource = s.state.pivotColumns.includes(v.id);\n });\n }\n function Va(s, v) {\n var y = v.instance;\n return s.forEach(function(w) {\n w.isPivotSource = y.state.pivotColumns.includes(w.id), w.uniqueValues = /* @__PURE__ */ new Set();\n }), s;\n }\n function Ga(s, v) {\n var y = v.column;\n return y.uniqueValues && s !== void 0 && y.uniqueValues.add(s), s;\n }\n function Hi(s, v) {\n var y = v.instance, w = y.allColumns, E = y.state;\n if (!E.pivotColumns.length || !E.groupBy || !E.groupBy.length)\n return s;\n var S = E.pivotColumns.map(function(G) {\n return w.find(function(z) {\n return z.id === G;\n });\n }).filter(Boolean), O = w.filter(function(G) {\n return !G.isPivotSource && !E.groupBy.includes(G.id) && !E.pivotColumns.includes(G.id);\n }), _ = se(function G(z, ne, J) {\n z === void 0 && (z = 0), J === void 0 && (J = []);\n var ee = S[z];\n return ee ? Array.from(ee.uniqueValues).sort().map(function(W) {\n var Z = o({}, ee, { Header: ee.PivotHeader || typeof ee.header == \"string\" ? ee.Header + \": \" + W : W, isPivotGroup: !0, parent: ne, depth: z, id: ne ? ne.id + \".\" + ee.id + \".\" + W : ee.id + \".\" + W, pivotValue: W });\n return Z.columns = G(z + 1, Z, [].concat(J, [function(le) {\n return le.values[ee.id] === W;\n }])), Z;\n }) : O.map(function(W) {\n return o({}, W, { canPivot: !1, isPivoted: !0, parent: ne, depth: z, id: \"\" + (ne ? ne.id + \".\" + W.id : W.id), accessor: function(Z, le, de) {\n if (J.every(function(Re) {\n return Re(de);\n }))\n return de.values[W.id];\n } });\n });\n }());\n return [].concat(s, _);\n }\n function Wi(s, v) {\n var y = v.instance.state, w = y.pivotColumns, E = y.groupBy;\n return [].concat(s, [w, E]);\n }\n function ja(s, v) {\n var y = v.instance.state;\n return s = s.filter(function(w) {\n return !w.isPivotSource;\n }), y.pivotColumns.length && y.groupBy && y.groupBy.length && (s = s.filter(function(w) {\n return w.isGrouped || w.isPivoted;\n })), s;\n }\n function za(s, v) {\n var y = v.instance;\n return [].concat(s, [y.state.pivotColumns, y.state.groupBy]);\n }\n function Ha(s) {\n var v = s.columns, y = s.allColumns, w = s.flatHeaders, E = s.getHooks, S = s.plugins, O = s.dispatch, _ = s.autoResetPivot, G = _ === void 0 || _, z = s.manaulPivot, ne = s.disablePivot, J = s.defaultCanPivot;\n L(S, [\"useGroupBy\"], \"usePivotColumns\");\n var ee = F(s);\n y.forEach(function(Z) {\n var le = Z.accessor, de = Z.defaultPivot, Re = Z.disablePivot;\n Z.canPivot = le ? X(Z.canPivot, Re !== !0 && void 0, ne !== !0 && void 0, !0) : X(Z.canPivot, de, J, !1), Z.canPivot && (Z.togglePivot = function() {\n return s.togglePivot(Z.id);\n }), Z.Aggregated = Z.Aggregated || Z.Cell;\n }), w.forEach(function(Z) {\n Z.getPivotToggleProps = P(E().getPivotToggleProps, { instance: ee(), header: Z });\n });\n var W = F(G);\n B(function() {\n W() && O({ type: c.resetPivot });\n }, [O, z ? null : v]), Object.assign(s, { togglePivot: function(Z, le) {\n O({ type: c.togglePivot, columnId: Z, value: le });\n } });\n }\n function Wa(s) {\n s.allCells.forEach(function(v) {\n v.isPivoted = v.column.isPivoted;\n });\n }\n c.resetSelectedRows = \"resetSelectedRows\", c.toggleAllRowsSelected = \"toggleAllRowsSelected\", c.toggleRowSelected = \"toggleRowSelected\", c.toggleAllPageRowsSelected = \"toggleAllPageRowsSelected\";\n var Ui = function(s) {\n s.getToggleRowSelectedProps = [Fr], s.getToggleAllRowsSelectedProps = [$n], s.getToggleAllPageRowsSelectedProps = [qi], s.stateReducers.push(Ua), s.useInstance.push(Yi), s.prepareRow.push(qa);\n };\n Ui.pluginName = \"useRowSelect\";\n var Fr = function(s, v) {\n var y = v.instance, w = v.row, E = y.manualRowSelectedKey, S = E === void 0 ? \"isSelected\" : E;\n return [s, { onChange: function(O) {\n w.toggleRowSelected(O.target.checked);\n }, style: { cursor: \"pointer\" }, checked: !(!w.original || !w.original[S]) || w.isSelected, title: \"Toggle Row Selected\", indeterminate: w.isSomeSelected }];\n }, $n = function(s, v) {\n var y = v.instance;\n return [s, { onChange: function(w) {\n y.toggleAllRowsSelected(w.target.checked);\n }, style: { cursor: \"pointer\" }, checked: y.isAllRowsSelected, title: \"Toggle All Rows Selected\", indeterminate: !!(!y.isAllRowsSelected && Object.keys(y.state.selectedRowIds).length) }];\n }, qi = function(s, v) {\n var y = v.instance;\n return [s, { onChange: function(w) {\n y.toggleAllPageRowsSelected(w.target.checked);\n }, style: { cursor: \"pointer\" }, checked: y.isAllPageRowsSelected, title: \"Toggle All Current Page Rows Selected\", indeterminate: !!(!y.isAllPageRowsSelected && y.page.some(function(w) {\n var E = w.id;\n return y.state.selectedRowIds[E];\n })) }];\n };\n function Ua(s, v, y, w) {\n if (v.type === c.init)\n return o({ selectedRowIds: {} }, s);\n if (v.type === c.resetSelectedRows)\n return o({}, s, { selectedRowIds: w.initialState.selectedRowIds || {} });\n if (v.type === c.toggleAllRowsSelected) {\n var E = v.value, S = w.isAllRowsSelected, O = w.rowsById, _ = w.nonGroupedRowsById, G = _ === void 0 ? O : _, z = E !== void 0 ? E : !S, ne = Object.assign({}, s.selectedRowIds);\n return z ? Object.keys(G).forEach(function(rt) {\n ne[rt] = !0;\n }) : Object.keys(G).forEach(function(rt) {\n delete ne[rt];\n }), o({}, s, { selectedRowIds: ne });\n }\n if (v.type === c.toggleRowSelected) {\n var J = v.id, ee = v.value, W = w.rowsById, Z = w.selectSubRows, le = Z === void 0 || Z, de = w.getSubRows, Re = s.selectedRowIds[J], Ue = ee !== void 0 ? ee : !Re;\n if (Re === Ue)\n return s;\n var Se = o({}, s.selectedRowIds);\n return function rt(u) {\n var p = W[u];\n if (p && (p.isGrouped || (Ue ? Se[u] = !0 : delete Se[u]), le && de(p)))\n return de(p).forEach(function(g) {\n return rt(g.id);\n });\n }(J), o({}, s, { selectedRowIds: Se });\n }\n if (v.type === c.toggleAllPageRowsSelected) {\n var re = v.value, je = w.page, ge = w.rowsById, $e = w.selectSubRows, tt = $e === void 0 || $e, ke = w.isAllPageRowsSelected, Ne = w.getSubRows, at = re !== void 0 ? re : !ke, Ge = o({}, s.selectedRowIds);\n return je.forEach(function(rt) {\n return function u(p) {\n var g = ge[p];\n if (g.isGrouped || (at ? Ge[p] = !0 : delete Ge[p]), tt && Ne(g))\n return Ne(g).forEach(function(h) {\n return u(h.id);\n });\n }(rt.id);\n }), o({}, s, { selectedRowIds: Ge });\n }\n return s;\n }\n function Yi(s) {\n var v = s.data, y = s.rows, w = s.getHooks, E = s.plugins, S = s.rowsById, O = s.nonGroupedRowsById, _ = O === void 0 ? S : O, G = s.autoResetSelectedRows, z = G === void 0 || G, ne = s.state.selectedRowIds, J = s.selectSubRows, ee = J === void 0 || J, W = s.dispatch, Z = s.page, le = s.getSubRows;\n L(E, [\"useFilters\", \"useGroupBy\", \"useSortBy\", \"useExpanded\", \"usePagination\"], \"useRowSelect\");\n var de = r.useMemo(function() {\n var Ne = [];\n return y.forEach(function(at) {\n var Ge = ee ? function rt(u, p, g) {\n if (p[u.id])\n return !0;\n var h = g(u);\n if (h && h.length) {\n var R = !0, A = !1;\n return h.forEach(function(C) {\n A && !R || (rt(C, p, g) ? A = !0 : R = !1);\n }), !!R || !!A && null;\n }\n return !1;\n }(at, ne, le) : !!ne[at.id];\n at.isSelected = !!Ge, at.isSomeSelected = Ge === null, Ge && Ne.push(at);\n }), Ne;\n }, [y, ee, ne, le]), Re = !!(Object.keys(_).length && Object.keys(ne).length), Ue = Re;\n Re && Object.keys(_).some(function(Ne) {\n return !ne[Ne];\n }) && (Re = !1), Re || Z && Z.length && Z.some(function(Ne) {\n var at = Ne.id;\n return !ne[at];\n }) && (Ue = !1);\n var Se = F(z);\n B(function() {\n Se() && W({ type: c.resetSelectedRows });\n }, [W, v]);\n var re = r.useCallback(function(Ne) {\n return W({ type: c.toggleAllRowsSelected, value: Ne });\n }, [W]), je = r.useCallback(function(Ne) {\n return W({ type: c.toggleAllPageRowsSelected, value: Ne });\n }, [W]), ge = r.useCallback(function(Ne, at) {\n return W({ type: c.toggleRowSelected, id: Ne, value: at });\n }, [W]), $e = F(s), tt = P(w().getToggleAllRowsSelectedProps, { instance: $e() }), ke = P(w().getToggleAllPageRowsSelectedProps, { instance: $e() });\n Object.assign(s, { selectedFlatRows: de, isAllRowsSelected: Re, isAllPageRowsSelected: Ue, toggleRowSelected: ge, toggleAllRowsSelected: re, getToggleAllRowsSelectedProps: tt, getToggleAllPageRowsSelectedProps: ke, toggleAllPageRowsSelected: je });\n }\n function qa(s, v) {\n var y = v.instance;\n s.toggleRowSelected = function(w) {\n return y.toggleRowSelected(s.id, w);\n }, s.getToggleRowSelectedProps = P(y.getHooks().getToggleRowSelectedProps, { instance: y, row: s });\n }\n var Ki = function(s) {\n return {};\n }, Xi = function(s) {\n return {};\n };\n c.setRowState = \"setRowState\", c.setCellState = \"setCellState\", c.resetRowState = \"resetRowState\";\n var Br = function(s) {\n s.stateReducers.push(Ya), s.useInstance.push(Zi), s.prepareRow.push(Ka);\n };\n function Ya(s, v, y, w) {\n var E = w.initialRowStateAccessor, S = E === void 0 ? Ki : E, O = w.initialCellStateAccessor, _ = O === void 0 ? Xi : O, G = w.rowsById;\n if (v.type === c.init)\n return o({ rowState: {} }, s);\n if (v.type === c.resetRowState)\n return o({}, s, { rowState: w.initialState.rowState || {} });\n if (v.type === c.setRowState) {\n var z, ne = v.rowId, J = v.value, ee = s.rowState[ne] !== void 0 ? s.rowState[ne] : S(G[ne]);\n return o({}, s, { rowState: o({}, s.rowState, (z = {}, z[ne] = M(J, ee), z)) });\n }\n if (v.type === c.setCellState) {\n var W, Z, le, de, Re, Ue = v.rowId, Se = v.columnId, re = v.value, je = s.rowState[Ue] !== void 0 ? s.rowState[Ue] : S(G[Ue]), ge = (je == null || (W = je.cellState) == null ? void 0 : W[Se]) !== void 0 ? je.cellState[Se] : _((Z = G[Ue]) == null || (le = Z.cells) == null ? void 0 : le.find(function($e) {\n return $e.column.id === Se;\n }));\n return o({}, s, { rowState: o({}, s.rowState, (Re = {}, Re[Ue] = o({}, je, { cellState: o({}, je.cellState || {}, (de = {}, de[Se] = M(re, ge), de)) }), Re)) });\n }\n }\n function Zi(s) {\n var v = s.autoResetRowState, y = v === void 0 || v, w = s.data, E = s.dispatch, S = r.useCallback(function(G, z) {\n return E({ type: c.setRowState, rowId: G, value: z });\n }, [E]), O = r.useCallback(function(G, z, ne) {\n return E({ type: c.setCellState, rowId: G, columnId: z, value: ne });\n }, [E]), _ = F(y);\n B(function() {\n _() && E({ type: c.resetRowState });\n }, [w]), Object.assign(s, { setRowState: S, setCellState: O });\n }\n function Ka(s, v) {\n var y = v.instance, w = y.initialRowStateAccessor, E = w === void 0 ? Ki : w, S = y.initialCellStateAccessor, O = S === void 0 ? Xi : S, _ = y.state.rowState;\n s && (s.state = _[s.id] !== void 0 ? _[s.id] : E(s), s.setState = function(G) {\n return y.setRowState(s.id, G);\n }, s.cells.forEach(function(G) {\n s.state.cellState || (s.state.cellState = {}), G.state = s.state.cellState[G.column.id] !== void 0 ? s.state.cellState[G.column.id] : O(G), G.setState = function(z) {\n return y.setCellState(s.id, G.column.id, z);\n };\n }));\n }\n Br.pluginName = \"useRowState\", c.resetColumnOrder = \"resetColumnOrder\", c.setColumnOrder = \"setColumnOrder\";\n var Qi = function(s) {\n s.stateReducers.push(Ji), s.visibleColumnsDeps.push(function(v, y) {\n var w = y.instance;\n return [].concat(v, [w.state.columnOrder]);\n }), s.visibleColumns.push(eo), s.useInstance.push(Xa);\n };\n function Ji(s, v, y, w) {\n return v.type === c.init ? o({ columnOrder: [] }, s) : v.type === c.resetColumnOrder ? o({}, s, { columnOrder: w.initialState.columnOrder || [] }) : v.type === c.setColumnOrder ? o({}, s, { columnOrder: M(v.columnOrder, s.columnOrder) }) : void 0;\n }\n function eo(s, v) {\n var y = v.instance.state.columnOrder;\n if (!y || !y.length)\n return s;\n for (var w = [].concat(y), E = [].concat(s), S = [], O = function() {\n var _ = w.shift(), G = E.findIndex(function(z) {\n return z.id === _;\n });\n G > -1 && S.push(E.splice(G, 1)[0]);\n }; E.length && w.length; )\n O();\n return [].concat(S, E);\n }\n function Xa(s) {\n var v = s.dispatch;\n s.setColumnOrder = r.useCallback(function(y) {\n return v({ type: c.setColumnOrder, columnOrder: y });\n }, [v]);\n }\n Qi.pluginName = \"useColumnOrder\", b.canResize = !0, c.columnStartResizing = \"columnStartResizing\", c.columnResizing = \"columnResizing\", c.columnDoneResizing = \"columnDoneResizing\", c.resetResize = \"resetResize\";\n var to = function(s) {\n s.getResizerProps = [Za], s.getHeaderProps.push({ style: { position: \"relative\" } }), s.stateReducers.push(Qa), s.useInstance.push(es), s.useInstanceBeforeDimensions.push(Ja);\n }, Za = function(s, v) {\n var y = v.instance, w = v.header, E = y.dispatch, S = function(O, _) {\n var G = !1;\n if (O.type === \"touchstart\") {\n if (O.touches && O.touches.length > 1)\n return;\n G = !0;\n }\n var z, ne, J = function(Se) {\n var re = [];\n return function je(ge) {\n ge.columns && ge.columns.length && ge.columns.map(je), re.push(ge);\n }(Se), re;\n }(_).map(function(Se) {\n return [Se.id, Se.totalWidth];\n }), ee = G ? Math.round(O.touches[0].clientX) : O.clientX, W = function() {\n window.cancelAnimationFrame(z), z = null, E({ type: c.columnDoneResizing });\n }, Z = function() {\n window.cancelAnimationFrame(z), z = null, E({ type: c.columnResizing, clientX: ne });\n }, le = function(Se) {\n ne = Se, z || (z = window.requestAnimationFrame(Z));\n }, de = { mouse: { moveEvent: \"mousemove\", moveHandler: function(Se) {\n return le(Se.clientX);\n }, upEvent: \"mouseup\", upHandler: function(Se) {\n document.removeEventListener(\"mousemove\", de.mouse.moveHandler), document.removeEventListener(\"mouseup\", de.mouse.upHandler), W();\n } }, touch: { moveEvent: \"touchmove\", moveHandler: function(Se) {\n return Se.cancelable && (Se.preventDefault(), Se.stopPropagation()), le(Se.touches[0].clientX), !1;\n }, upEvent: \"touchend\", upHandler: function(Se) {\n document.removeEventListener(de.touch.moveEvent, de.touch.moveHandler), document.removeEventListener(de.touch.upEvent, de.touch.moveHandler), W();\n } } }, Re = G ? de.touch : de.mouse, Ue = !!function() {\n if (typeof q == \"boolean\")\n return q;\n var Se = !1;\n try {\n var re = { get passive() {\n return Se = !0, !1;\n } };\n window.addEventListener(\"test\", null, re), window.removeEventListener(\"test\", null, re);\n } catch {\n Se = !1;\n }\n return q = Se;\n }() && { passive: !1 };\n document.addEventListener(Re.moveEvent, Re.moveHandler, Ue), document.addEventListener(Re.upEvent, Re.upHandler, Ue), E({ type: c.columnStartResizing, columnId: _.id, columnWidth: _.totalWidth, headerIdWidths: J, clientX: ee });\n };\n return [s, { onMouseDown: function(O) {\n return O.persist() || S(O, w);\n }, onTouchStart: function(O) {\n return O.persist() || S(O, w);\n }, style: { cursor: \"col-resize\" }, draggable: !1, role: \"separator\" }];\n };\n function Qa(s, v) {\n if (v.type === c.init)\n return o({ columnResizing: { columnWidths: {} } }, s);\n if (v.type === c.resetResize)\n return o({}, s, { columnResizing: { columnWidths: {} } });\n if (v.type === c.columnStartResizing) {\n var y = v.clientX, w = v.columnId, E = v.columnWidth, S = v.headerIdWidths;\n return o({}, s, { columnResizing: o({}, s.columnResizing, { startX: y, headerIdWidths: S, columnWidth: E, isResizingColumn: w }) });\n }\n if (v.type === c.columnResizing) {\n var O = v.clientX, _ = s.columnResizing, G = _.startX, z = _.columnWidth, ne = _.headerIdWidths, J = (O - G) / z, ee = {};\n return (ne === void 0 ? [] : ne).forEach(function(W) {\n var Z = W[0], le = W[1];\n ee[Z] = Math.max(le + le * J, 0);\n }), o({}, s, { columnResizing: o({}, s.columnResizing, { columnWidths: o({}, s.columnResizing.columnWidths, {}, ee) }) });\n }\n return v.type === c.columnDoneResizing ? o({}, s, { columnResizing: o({}, s.columnResizing, { startX: null, isResizingColumn: null }) }) : void 0;\n }\n to.pluginName = \"useResizeColumns\";\n var Ja = function(s) {\n var v = s.flatHeaders, y = s.disableResizing, w = s.getHooks, E = s.state.columnResizing, S = F(s);\n v.forEach(function(O) {\n var _ = X(O.disableResizing !== !0 && void 0, y !== !0 && void 0, !0);\n O.canResize = _, O.width = E.columnWidths[O.id] || O.originalWidth || O.width, O.isResizing = E.isResizingColumn === O.id, _ && (O.getResizerProps = P(w().getResizerProps, { instance: S(), header: O }));\n });\n };\n function es(s) {\n var v = s.plugins, y = s.dispatch, w = s.autoResetResize, E = w === void 0 || w, S = s.columns;\n L(v, [\"useAbsoluteLayout\"], \"useResizeColumns\");\n var O = F(E);\n B(function() {\n O() && y({ type: c.resetResize });\n }, [S]);\n var _ = r.useCallback(function() {\n return y({ type: c.resetResize });\n }, [y]);\n Object.assign(s, { resetResizing: _ });\n }\n var Dr = { position: \"absolute\", top: 0 }, no = function(s) {\n s.getTableBodyProps.push(ar), s.getRowProps.push(ar), s.getHeaderGroupProps.push(ar), s.getFooterGroupProps.push(ar), s.getHeaderProps.push(function(v, y) {\n var w = y.column;\n return [v, { style: o({}, Dr, { left: w.totalLeft + \"px\", width: w.totalWidth + \"px\" }) }];\n }), s.getCellProps.push(function(v, y) {\n var w = y.cell;\n return [v, { style: o({}, Dr, { left: w.column.totalLeft + \"px\", width: w.column.totalWidth + \"px\" }) }];\n }), s.getFooterProps.push(function(v, y) {\n var w = y.column;\n return [v, { style: o({}, Dr, { left: w.totalLeft + \"px\", width: w.totalWidth + \"px\" }) }];\n });\n };\n no.pluginName = \"useAbsoluteLayout\";\n var ar = function(s, v) {\n return [s, { style: { position: \"relative\", width: v.instance.totalColumnsWidth + \"px\" } }];\n }, Nr = { display: \"inline-block\", boxSizing: \"border-box\" }, Lr = function(s, v) {\n return [s, { style: { display: \"flex\", width: v.instance.totalColumnsWidth + \"px\" } }];\n }, ro = function(s) {\n s.getRowProps.push(Lr), s.getHeaderGroupProps.push(Lr), s.getFooterGroupProps.push(Lr), s.getHeaderProps.push(function(v, y) {\n var w = y.column;\n return [v, { style: o({}, Nr, { width: w.totalWidth + \"px\" }) }];\n }), s.getCellProps.push(function(v, y) {\n var w = y.cell;\n return [v, { style: o({}, Nr, { width: w.column.totalWidth + \"px\" }) }];\n }), s.getFooterProps.push(function(v, y) {\n var w = y.column;\n return [v, { style: o({}, Nr, { width: w.totalWidth + \"px\" }) }];\n });\n };\n function $r(s) {\n s.getTableProps.push(ts), s.getRowProps.push(_r), s.getHeaderGroupProps.push(_r), s.getFooterGroupProps.push(_r), s.getHeaderProps.push(ns), s.getCellProps.push(rs), s.getFooterProps.push(is);\n }\n ro.pluginName = \"useBlockLayout\", $r.pluginName = \"useFlexLayout\";\n var ts = function(s, v) {\n return [s, { style: { minWidth: v.instance.totalColumnsMinWidth + \"px\" } }];\n }, _r = function(s, v) {\n return [s, { style: { display: \"flex\", flex: \"1 0 auto\", minWidth: v.instance.totalColumnsMinWidth + \"px\" } }];\n }, ns = function(s, v) {\n var y = v.column;\n return [s, { style: { boxSizing: \"border-box\", flex: y.totalFlexWidth ? y.totalFlexWidth + \" 0 auto\" : void 0, minWidth: y.totalMinWidth + \"px\", width: y.totalWidth + \"px\" } }];\n }, rs = function(s, v) {\n var y = v.cell;\n return [s, { style: { boxSizing: \"border-box\", flex: y.column.totalFlexWidth + \" 0 auto\", minWidth: y.column.totalMinWidth + \"px\", width: y.column.totalWidth + \"px\" } }];\n }, is = function(s, v) {\n var y = v.column;\n return [s, { style: { boxSizing: \"border-box\", flex: y.totalFlexWidth ? y.totalFlexWidth + \" 0 auto\" : void 0, minWidth: y.totalMinWidth + \"px\", width: y.totalWidth + \"px\" } }];\n };\n function io(s) {\n s.stateReducers.push(lo), s.getTableProps.push(oo), s.getHeaderProps.push(ao), s.getRowProps.push(so);\n }\n c.columnStartResizing = \"columnStartResizing\", c.columnResizing = \"columnResizing\", c.columnDoneResizing = \"columnDoneResizing\", c.resetResize = \"resetResize\", io.pluginName = \"useGridLayout\";\n var oo = function(s, v) {\n var y = v.instance;\n return [s, { style: { display: \"grid\", gridTemplateColumns: y.visibleColumns.map(function(w) {\n var E;\n return y.state.gridLayout.columnWidths[w.id] ? y.state.gridLayout.columnWidths[w.id] + \"px\" : (E = y.state.columnResizing) != null && E.isResizingColumn ? y.state.gridLayout.startWidths[w.id] + \"px\" : typeof w.width == \"number\" ? w.width + \"px\" : w.width;\n }).join(\" \") } }];\n }, ao = function(s, v) {\n var y = v.column;\n return [s, { id: \"header-cell-\" + y.id, style: { position: \"sticky\", gridColumn: \"span \" + y.totalVisibleHeaderCount } }];\n }, so = function(s, v) {\n var y = v.row;\n return y.isExpanded ? [s, { style: { gridColumn: \"1 / \" + (y.cells.length + 1) } }] : [s, {}];\n };\n function lo(s, v, y, w) {\n if (v.type === c.init)\n return o({ gridLayout: { columnWidths: {} } }, s);\n if (v.type === c.resetResize)\n return o({}, s, { gridLayout: { columnWidths: {} } });\n if (v.type === c.columnStartResizing) {\n var E = v.columnId, S = v.headerIdWidths, O = Vr(E);\n if (O !== void 0) {\n var _ = w.visibleColumns.reduce(function(re, je) {\n var ge;\n return o({}, re, ((ge = {})[je.id] = Vr(je.id), ge));\n }, {}), G = w.visibleColumns.reduce(function(re, je) {\n var ge;\n return o({}, re, ((ge = {})[je.id] = je.minWidth, ge));\n }, {}), z = w.visibleColumns.reduce(function(re, je) {\n var ge;\n return o({}, re, ((ge = {})[je.id] = je.maxWidth, ge));\n }, {}), ne = S.map(function(re) {\n var je = re[0];\n return [je, Vr(je)];\n });\n return o({}, s, { gridLayout: o({}, s.gridLayout, { startWidths: _, minWidths: G, maxWidths: z, headerIdGridWidths: ne, columnWidth: O }) });\n }\n return s;\n }\n if (v.type === c.columnResizing) {\n var J = v.clientX, ee = s.columnResizing.startX, W = s.gridLayout, Z = W.columnWidth, le = W.minWidths, de = W.maxWidths, Re = W.headerIdGridWidths, Ue = (J - ee) / Z, Se = {};\n return (Re === void 0 ? [] : Re).forEach(function(re) {\n var je = re[0], ge = re[1];\n Se[je] = Math.min(Math.max(le[je], ge + ge * Ue), de[je]);\n }), o({}, s, { gridLayout: o({}, s.gridLayout, { columnWidths: o({}, s.gridLayout.columnWidths, {}, Se) }) });\n }\n return v.type === c.columnDoneResizing ? o({}, s, { gridLayout: o({}, s.gridLayout, { startWidths: {}, minWidths: {}, maxWidths: {} }) }) : void 0;\n }\n function Vr(s) {\n var v, y = (v = document.getElementById(\"header-cell-\" + s)) == null ? void 0 : v.offsetWidth;\n if (y !== void 0)\n return y;\n }\n n._UNSTABLE_usePivotColumns = Mr, n.actions = c, n.defaultColumn = b, n.defaultGroupByFn = $i, n.defaultOrderByFn = ji, n.defaultRenderer = m, n.emptyRenderer = f, n.ensurePluginOrder = L, n.flexRender = we, n.functionalUpdate = M, n.loopHooks = D, n.makePropGetter = P, n.makeRenderer = Q, n.reduceHooks = I, n.safeUseLayoutEffect = j, n.useAbsoluteLayout = no, n.useAsyncDebounce = function(s, v) {\n v === void 0 && (v = 0);\n var y = r.useRef({}), w = F(s), E = F(v);\n return r.useCallback(function() {\n var S = a(regeneratorRuntime.mark(function O() {\n var _, G, z, ne = arguments;\n return regeneratorRuntime.wrap(function(J) {\n for (; ; )\n switch (J.prev = J.next) {\n case 0:\n for (_ = ne.length, G = new Array(_), z = 0; z < _; z++)\n G[z] = ne[z];\n return y.current.promise || (y.current.promise = new Promise(function(ee, W) {\n y.current.resolve = ee, y.current.reject = W;\n })), y.current.timeout && clearTimeout(y.current.timeout), y.current.timeout = setTimeout(a(regeneratorRuntime.mark(function ee() {\n return regeneratorRuntime.wrap(function(W) {\n for (; ; )\n switch (W.prev = W.next) {\n case 0:\n return delete y.current.timeout, W.prev = 1, W.t0 = y.current, W.next = 5, w().apply(void 0, G);\n case 5:\n W.t1 = W.sent, W.t0.resolve.call(W.t0, W.t1), W.next = 12;\n break;\n case 9:\n W.prev = 9, W.t2 = W.catch(1), y.current.reject(W.t2);\n case 12:\n return W.prev = 12, delete y.current.promise, W.finish(12);\n case 15:\n case \"end\":\n return W.stop();\n }\n }, ee, null, [[1, 9, 12, 15]]);\n })), E()), J.abrupt(\"return\", y.current.promise);\n case 5:\n case \"end\":\n return J.stop();\n }\n }, O);\n }));\n return function() {\n return S.apply(this, arguments);\n };\n }(), [w, E]);\n }, n.useBlockLayout = ro, n.useColumnOrder = Qi, n.useExpanded = xi, n.useFilters = Oi, n.useFlexLayout = $r, n.useGetLatest = F, n.useGlobalFilter = Ar, n.useGridLayout = io, n.useGroupBy = kr, n.useMountedLayoutEffect = B, n.usePagination = Ir, n.useResizeColumns = to, n.useRowSelect = Ui, n.useRowState = Br, n.useSortBy = Gi, n.useTable = function(s) {\n for (var v = arguments.length, y = new Array(v > 1 ? v - 1 : 0), w = 1; w < v; w++)\n y[w - 1] = arguments[w];\n s = bi(s), y = [It].concat(y);\n var E = r.useRef({}), S = F(E.current);\n Object.assign(S(), o({}, s, { plugins: y, hooks: he() })), y.filter(Boolean).forEach(function(C) {\n C(S().hooks);\n });\n var O = F(S().hooks);\n S().getHooks = O, delete S().hooks, Object.assign(S(), I(O().useOptions, bi(s)));\n var _ = S(), G = _.data, z = _.columns, ne = _.initialState, J = _.defaultColumn, ee = _.getSubRows, W = _.getRowId, Z = _.stateReducer, le = _.useControlledState, de = F(Z), Re = r.useCallback(function(C, k) {\n if (!k.type)\n throw console.info({ action: k }), new Error(\"Unknown Action 👆\");\n return [].concat(O().stateReducers, Array.isArray(de()) ? de() : [de()]).reduce(function(N, V) {\n return V(N, k, C, S()) || N;\n }, C);\n }, [O, de, S]), Ue = r.useReducer(Re, void 0, function() {\n return Re(ne, { type: c.init });\n }), Se = Ue[0], re = Ue[1], je = I([].concat(O().useControlledState, [le]), Se, { instance: S() });\n Object.assign(S(), { state: je, dispatch: re });\n var ge = r.useMemo(function() {\n return ce(I(O().columns, z, { instance: S() }));\n }, [O, S, z].concat(I(O().columnsDeps, [], { instance: S() })));\n S().columns = ge;\n var $e = r.useMemo(function() {\n return I(O().allColumns, se(ge), { instance: S() }).map(Ve);\n }, [ge, O, S].concat(I(O().allColumnsDeps, [], { instance: S() })));\n S().allColumns = $e;\n var tt = r.useMemo(function() {\n for (var C = [], k = [], N = {}, V = [].concat($e); V.length; ) {\n var H = V.shift();\n Ca({ data: G, rows: C, flatRows: k, rowsById: N, column: H, getRowId: W, getSubRows: ee, accessValueHooks: O().accessValue, getInstance: S });\n }\n return [C, k, N];\n }, [$e, G, W, ee, O, S]), ke = tt[0], Ne = tt[1], at = tt[2];\n Object.assign(S(), { rows: ke, initialRows: [].concat(ke), flatRows: Ne, rowsById: at }), D(O().useInstanceAfterData, S());\n var Ge = r.useMemo(function() {\n return I(O().visibleColumns, $e, { instance: S() }).map(function(C) {\n return st(C, J);\n });\n }, [O, $e, S, J].concat(I(O().visibleColumnsDeps, [], { instance: S() })));\n $e = r.useMemo(function() {\n var C = [].concat(Ge);\n return $e.forEach(function(k) {\n C.find(function(N) {\n return N.id === k.id;\n }) || C.push(k);\n }), C;\n }, [$e, Ge]), S().allColumns = $e;\n var rt = r.useMemo(function() {\n return I(O().headerGroups, it(Ge, J), S());\n }, [O, Ge, J, S].concat(I(O().headerGroupsDeps, [], { instance: S() })));\n S().headerGroups = rt;\n var u = r.useMemo(function() {\n return rt.length ? rt[0].headers : [];\n }, [rt]);\n S().headers = u, S().flatHeaders = rt.reduce(function(C, k) {\n return [].concat(C, k.headers);\n }, []), D(O().useInstanceBeforeDimensions, S());\n var p = Ge.filter(function(C) {\n return C.isVisible;\n }).map(function(C) {\n return C.id;\n }).sort().join(\"_\");\n Ge = r.useMemo(function() {\n return Ge.filter(function(C) {\n return C.isVisible;\n });\n }, [Ge, p]), S().visibleColumns = Ge;\n var g = wi(u), h = g[0], R = g[1], A = g[2];\n return S().totalColumnsMinWidth = h, S().totalColumnsWidth = R, S().totalColumnsMaxWidth = A, D(O().useInstance, S()), [].concat(S().flatHeaders, S().allColumns).forEach(function(C) {\n C.render = Q(S(), C), C.getHeaderProps = P(O().getHeaderProps, { instance: S(), column: C }), C.getFooterProps = P(O().getFooterProps, { instance: S(), column: C });\n }), S().headerGroups = r.useMemo(function() {\n return rt.filter(function(C, k) {\n return C.headers = C.headers.filter(function(N) {\n return N.headers ? function V(H) {\n return H.filter(function(oe) {\n return oe.headers ? V(oe.headers) : oe.isVisible;\n }).length;\n }(N.headers) : N.isVisible;\n }), !!C.headers.length && (C.getHeaderGroupProps = P(O().getHeaderGroupProps, { instance: S(), headerGroup: C, index: k }), C.getFooterGroupProps = P(O().getFooterGroupProps, { instance: S(), headerGroup: C, index: k }), !0);\n });\n }, [rt, S, O]), S().footerGroups = [].concat(S().headerGroups).reverse(), S().prepareRow = r.useCallback(function(C) {\n C.getRowProps = P(O().getRowProps, { instance: S(), row: C }), C.allCells = $e.map(function(k) {\n var N = C.values[k.id], V = { column: k, row: C, value: N };\n return V.getCellProps = P(O().getCellProps, { instance: S(), cell: V }), V.render = Q(S(), k, { row: C, cell: V, value: N }), V;\n }), C.cells = Ge.map(function(k) {\n return C.allCells.find(function(N) {\n return N.column.id === k.id;\n });\n }), D(O().prepareRow, C, { instance: S() });\n }, [O, S, $e, Ge]), S().getTableProps = P(O().getTableProps, { instance: S() }), S().getTableBodyProps = P(O().getTableBodyProps, { instance: S() }), D(O().useFinalInstance, S()), S();\n }, Object.defineProperty(n, \"__esModule\", { value: !0 });\n });\n }(Oo, Oo.exports)), Oo.exports;\n}\nvar ko = { exports: {} }, uf;\nfunction v2() {\n return uf || (uf = 1, function(e, t) {\n (function(n, r) {\n r(t, vn);\n })(Gf, function(n, r) {\n r = r && Object.prototype.hasOwnProperty.call(r, \"default\") ? r.default : r;\n function i(u, p, g, h, R, A, C) {\n try {\n var k = u[A](C), N = k.value;\n } catch (V) {\n g(V);\n return;\n }\n k.done ? p(N) : Promise.resolve(N).then(h, R);\n }\n function a(u) {\n return function() {\n var p = this, g = arguments;\n return new Promise(function(h, R) {\n var A = u.apply(p, g);\n function C(N) {\n i(A, h, R, C, k, \"next\", N);\n }\n function k(N) {\n i(A, h, R, C, k, \"throw\", N);\n }\n C(void 0);\n });\n };\n }\n function o() {\n return o = Object.assign || function(u) {\n for (var p = 1; p < arguments.length; p++) {\n var g = arguments[p];\n for (var h in g)\n Object.prototype.hasOwnProperty.call(g, h) && (u[h] = g[h]);\n }\n return u;\n }, o.apply(this, arguments);\n }\n function l(u, p) {\n if (u == null)\n return {};\n var g = {}, h = Object.keys(u), R, A;\n for (A = 0; A < h.length; A++)\n R = h[A], !(p.indexOf(R) >= 0) && (g[R] = u[R]);\n return g;\n }\n function d(u, p) {\n if (typeof u != \"object\" || u === null)\n return u;\n var g = u[Symbol.toPrimitive];\n if (g !== void 0) {\n var h = g.call(u, p || \"default\");\n if (typeof h != \"object\")\n return h;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (p === \"string\" ? String : Number)(u);\n }\n function c(u) {\n var p = d(u, \"string\");\n return typeof p == \"symbol\" ? p : String(p);\n }\n var m = \"Renderer Error ☝️\", f = {\n init: \"init\"\n }, b = function(p) {\n var g = p.value, h = g === void 0 ? \"\" : g;\n return h;\n }, x = function() {\n return r.createElement(r.Fragment, null, \" \");\n }, P = {\n Cell: b,\n width: 150,\n minWidth: 0,\n maxWidth: Number.MAX_SAFE_INTEGER\n };\n function I() {\n for (var u = arguments.length, p = new Array(u), g = 0; g < u; g++)\n p[g] = arguments[g];\n return p.reduce(function(h, R) {\n var A = R.style, C = R.className, k = l(R, [\"style\", \"className\"]);\n return h = o({}, h, {}, k), A && (h.style = h.style ? o({}, h.style || {}, {}, A || {}) : A), C && (h.className = h.className ? h.className + \" \" + C : C), h.className === \"\" && delete h.className, h;\n }, {});\n }\n function D(u, p, g) {\n return typeof p == \"function\" ? D({}, p(u, g)) : Array.isArray(p) ? I.apply(void 0, [u].concat(p)) : I(u, p);\n }\n var L = function(p, g) {\n return g === void 0 && (g = {}), function(h) {\n return h === void 0 && (h = {}), [].concat(p, [h]).reduce(function(R, A) {\n return D(R, A, o({}, g, {\n userProps: h\n }));\n }, {});\n };\n }, M = function(p, g, h, R) {\n return h === void 0 && (h = {}), p.reduce(function(A, C) {\n var k = C(A, h);\n if (!R && typeof k > \"u\")\n throw console.info(C), new Error(\"React Table: A reducer hook ☝️ just returned undefined! This is not allowed.\");\n return k;\n }, g);\n }, F = function(p, g, h) {\n return h === void 0 && (h = {}), p.forEach(function(R) {\n var A = R(g, h);\n if (typeof A < \"u\")\n throw console.info(R, A), new Error(\"React Table: A loop-type hook ☝️ just returned a value! This is not allowed.\");\n });\n };\n function j(u, p, g, h) {\n if (h)\n throw new Error('Defining plugins in the \"after\" section of ensurePluginOrder is no longer supported (see plugin ' + g + \")\");\n var R = u.findIndex(function(A) {\n return A.pluginName === g;\n });\n if (R === -1)\n throw new Error('The plugin \"' + g + `\" was not found in the plugin list!\nThis usually means you need to need to name your plugin hook by setting the 'pluginName' property of the hook function, eg:\n\n ` + g + \".pluginName = '\" + g + `'\n`);\n p.forEach(function(A) {\n var C = u.findIndex(function(k) {\n return k.pluginName === A;\n });\n if (C > -1 && C > R)\n throw new Error(\"React Table: The \" + g + \" plugin hook must be placed after the \" + A + \" plugin hook!\");\n });\n }\n function B(u, p) {\n return typeof u == \"function\" ? u(p) : u;\n }\n function Q(u) {\n var p = r.useRef();\n return p.current = u, r.useCallback(function() {\n return p.current;\n }, []);\n }\n var we = typeof document < \"u\" ? r.useLayoutEffect : r.useEffect;\n function ce(u, p) {\n var g = r.useRef(!1);\n we(function() {\n g.current && u(), g.current = !0;\n }, p);\n }\n function se(u, p) {\n p === void 0 && (p = 0);\n var g = r.useRef({}), h = Q(u), R = Q(p);\n return r.useCallback(\n /* @__PURE__ */ function() {\n var A = a(\n /* @__PURE__ */ regeneratorRuntime.mark(function C() {\n var k, N, V, H = arguments;\n return regeneratorRuntime.wrap(function(K) {\n for (; ; )\n switch (K.prev = K.next) {\n case 0:\n for (k = H.length, N = new Array(k), V = 0; V < k; V++)\n N[V] = H[V];\n return g.current.promise || (g.current.promise = new Promise(function(te, ae) {\n g.current.resolve = te, g.current.reject = ae;\n })), g.current.timeout && clearTimeout(g.current.timeout), g.current.timeout = setTimeout(\n /* @__PURE__ */ a(\n /* @__PURE__ */ regeneratorRuntime.mark(function te() {\n return regeneratorRuntime.wrap(function(Y) {\n for (; ; )\n switch (Y.prev = Y.next) {\n case 0:\n return delete g.current.timeout, Y.prev = 1, Y.t0 = g.current, Y.next = 5, h().apply(void 0, N);\n case 5:\n Y.t1 = Y.sent, Y.t0.resolve.call(Y.t0, Y.t1), Y.next = 12;\n break;\n case 9:\n Y.prev = 9, Y.t2 = Y.catch(1), g.current.reject(Y.t2);\n case 12:\n return Y.prev = 12, delete g.current.promise, Y.finish(12);\n case 15:\n case \"end\":\n return Y.stop();\n }\n }, te, null, [[1, 9, 12, 15]]);\n })\n ),\n R()\n ), K.abrupt(\"return\", g.current.promise);\n case 5:\n case \"end\":\n return K.stop();\n }\n }, C);\n })\n );\n return function() {\n return A.apply(this, arguments);\n };\n }(),\n [h, R]\n );\n }\n function Ve(u, p, g) {\n return g === void 0 && (g = {}), function(h, R) {\n R === void 0 && (R = {});\n var A = typeof h == \"string\" ? p[h] : h;\n if (typeof A > \"u\")\n throw console.info(p), new Error(m);\n return st(A, o({}, u, {\n column: p\n }, g, {}, R));\n };\n }\n function st(u, p) {\n return it(u) ? r.createElement(u, p) : u;\n }\n function it(u) {\n return dt(u) || typeof u == \"function\" || X(u);\n }\n function dt(u) {\n return typeof u == \"function\" && function() {\n var p = Object.getPrototypeOf(u);\n return p.prototype && p.prototype.isReactComponent;\n }();\n }\n function X(u) {\n return typeof u == \"object\" && typeof u.$$typeof == \"symbol\" && [\"react.memo\", \"react.forward_ref\"].includes(u.$$typeof.description);\n }\n function ie(u, p, g) {\n return g === void 0 && (g = 0), u.map(function(h) {\n return h = o({}, h, {\n parent: p,\n depth: g\n }), $(h), h.columns && (h.columns = ie(h.columns, h, g + 1)), h;\n });\n }\n function Ee(u) {\n return Me(u, \"columns\");\n }\n function $(u) {\n var p = u.id, g = u.accessor, h = u.Header;\n if (typeof g == \"string\") {\n p = p || g;\n var R = g.split(\".\");\n g = function(C) {\n return q(C, R);\n };\n }\n if (!p && typeof h == \"string\" && h && (p = h), !p && u.columns)\n throw console.error(u), new Error('A column ID (or unique \"Header\" value) is required!');\n if (!p)\n throw console.error(u), new Error(\"A column ID (or string accessor) is required!\");\n return Object.assign(u, {\n id: p,\n accessor: g\n }), u;\n }\n function xe(u, p) {\n if (!p)\n throw new Error();\n return Object.assign(u, o({\n // Make sure there is a fallback header, just in case\n Header: x,\n Footer: x\n }, P, {}, p, {}, u)), Object.assign(u, {\n originalWidth: u.width\n }), u;\n }\n function ft(u, p, g) {\n g === void 0 && (g = function() {\n return {};\n });\n for (var h = [], R = u, A = 0, C = function() {\n return A++;\n }, k = function() {\n var V = {\n headers: []\n }, H = [], oe = R.some(function(K) {\n return K.parent;\n });\n R.forEach(function(K) {\n var te = [].concat(H).reverse()[0], ae;\n if (oe) {\n if (K.parent)\n ae = o({}, K.parent, {\n originalId: K.parent.id,\n id: K.parent.id + \"_\" + C(),\n headers: [K]\n }, g(K));\n else {\n var Y = K.id + \"_placeholder\";\n ae = xe(o({\n originalId: Y,\n id: K.id + \"_placeholder_\" + C(),\n placeholderOf: K,\n headers: [K]\n }, g(K)), p);\n }\n te && te.originalId === ae.originalId ? te.headers.push(K) : H.push(ae);\n }\n V.headers.push(K);\n }), h.push(V), R = H;\n }; R.length; )\n k();\n return h.reverse();\n }\n var U = /* @__PURE__ */ new Map();\n function q(u, p, g) {\n if (!p)\n return u;\n var h = typeof p == \"function\" ? p : JSON.stringify(p), R = U.get(h) || function() {\n var C = It(p);\n return U.set(h, C), C;\n }(), A;\n try {\n A = R.reduce(function(C, k) {\n return C[k];\n }, u);\n } catch {\n }\n return typeof A < \"u\" ? A : g;\n }\n function Ce() {\n for (var u = arguments.length, p = new Array(u), g = 0; g < u; g++)\n p[g] = arguments[g];\n for (var h = 0; h < p.length; h += 1)\n if (typeof p[h] < \"u\")\n return p[h];\n }\n function De(u) {\n if (typeof u == \"function\")\n return u;\n }\n function Me(u, p) {\n var g = [], h = function R(A) {\n A.forEach(function(C) {\n C[p] ? R(C[p]) : g.push(C);\n });\n };\n return h(u), g;\n }\n function Qe(u, p) {\n var g = p.manualExpandedKey, h = p.expanded, R = p.expandSubRows, A = R === void 0 ? !0 : R, C = [], k = function N(V, H) {\n H === void 0 && (H = !0), V.isExpanded = V.original && V.original[g] || h[V.id], V.canExpand = V.subRows && !!V.subRows.length, H && C.push(V), V.subRows && V.subRows.length && V.isExpanded && V.subRows.forEach(function(oe) {\n return N(oe, A);\n });\n };\n return u.forEach(function(N) {\n return k(N);\n }), C;\n }\n function Fe(u, p, g) {\n return De(u) || p[u] || g[u] || g.text;\n }\n function We(u, p, g) {\n return u ? u(p, g) : typeof p > \"u\";\n }\n function Je() {\n throw new Error(\"React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.\");\n }\n var nt = null;\n function et() {\n if (typeof nt == \"boolean\")\n return nt;\n var u = !1;\n try {\n var p = {\n get passive() {\n return u = !0, !1;\n }\n };\n window.addEventListener(\"test\", null, p), window.removeEventListener(\"test\", null, p);\n } catch {\n u = !1;\n }\n return nt = u, nt;\n }\n var ht = /\\[/g, he = /\\]/g;\n function It(u) {\n return sn(u).map(function(p) {\n return String(p).replace(\".\", \"_\");\n }).join(\".\").replace(ht, \".\").replace(he, \"\").split(\".\");\n }\n function sn(u, p) {\n if (p === void 0 && (p = []), !Array.isArray(u))\n p.push(u);\n else\n for (var g = 0; g < u.length; g += 1)\n sn(u[g], p);\n return p;\n }\n var ir = function(p) {\n return o({\n role: \"table\"\n }, p);\n }, ma = function(p) {\n return o({\n role: \"rowgroup\"\n }, p);\n }, ha = function(p, g) {\n var h = g.column;\n return o({\n key: \"header_\" + h.id,\n colSpan: h.totalVisibleHeaderCount,\n role: \"columnheader\"\n }, p);\n }, va = function(p, g) {\n var h = g.column;\n return o({\n key: \"footer_\" + h.id,\n colSpan: h.totalVisibleHeaderCount\n }, p);\n }, ga = function(p, g) {\n var h = g.index;\n return o({\n key: \"headerGroup_\" + h,\n role: \"row\"\n }, p);\n }, ya = function(p, g) {\n var h = g.index;\n return o({\n key: \"footerGroup_\" + h\n }, p);\n }, ba = function(p, g) {\n var h = g.row;\n return o({\n key: \"row_\" + h.id,\n role: \"row\"\n }, p);\n }, wa = function(p, g) {\n var h = g.cell;\n return o({\n key: \"cell_\" + h.row.id + \"_\" + h.column.id,\n role: \"cell\"\n }, p);\n };\n function xa() {\n return {\n useOptions: [],\n stateReducers: [],\n useControlledState: [],\n columns: [],\n columnsDeps: [],\n allColumns: [],\n allColumnsDeps: [],\n accessValue: [],\n materializedColumns: [],\n materializedColumnsDeps: [],\n useInstanceAfterData: [],\n visibleColumns: [],\n visibleColumnsDeps: [],\n headerGroups: [],\n headerGroupsDeps: [],\n useInstanceBeforeDimensions: [],\n useInstance: [],\n prepareRow: [],\n getTableProps: [ir],\n getTableBodyProps: [ma],\n getHeaderGroupProps: [ga],\n getFooterGroupProps: [ya],\n getHeaderProps: [ha],\n getFooterProps: [va],\n getRowProps: [ba],\n getCellProps: [wa],\n useFinalInstance: []\n };\n }\n f.resetHiddenColumns = \"resetHiddenColumns\", f.toggleHideColumn = \"toggleHideColumn\", f.setHiddenColumns = \"setHiddenColumns\", f.toggleHideAllColumns = \"toggleHideAllColumns\";\n var yi = function(p) {\n p.getToggleHiddenProps = [bi], p.getToggleHideAllColumnsProps = [wi], p.stateReducers.push(Ca), p.useInstanceBeforeDimensions.push(xi), p.headerGroupsDeps.push(function(g, h) {\n var R = h.instance;\n return [].concat(g, [R.state.hiddenColumns]);\n }), p.useInstance.push(Ra);\n };\n yi.pluginName = \"useColumnVisibility\";\n var bi = function(p, g) {\n var h = g.column;\n return [p, {\n onChange: function(A) {\n h.toggleHidden(!A.target.checked);\n },\n style: {\n cursor: \"pointer\"\n },\n checked: h.isVisible,\n title: \"Toggle Column Visible\"\n }];\n }, wi = function(p, g) {\n var h = g.instance;\n return [p, {\n onChange: function(A) {\n h.toggleHideAllColumns(!A.target.checked);\n },\n style: {\n cursor: \"pointer\"\n },\n checked: !h.allColumnsHidden && !h.state.hiddenColumns.length,\n title: \"Toggle All Columns Hidden\",\n indeterminate: !h.allColumnsHidden && h.state.hiddenColumns.length\n }];\n };\n function Ca(u, p, g, h) {\n if (p.type === f.init)\n return o({\n hiddenColumns: []\n }, u);\n if (p.type === f.resetHiddenColumns)\n return o({}, u, {\n hiddenColumns: h.initialState.hiddenColumns || []\n });\n if (p.type === f.toggleHideColumn) {\n var R = typeof p.value < \"u\" ? p.value : !u.hiddenColumns.includes(p.columnId), A = R ? [].concat(u.hiddenColumns, [p.columnId]) : u.hiddenColumns.filter(function(k) {\n return k !== p.columnId;\n });\n return o({}, u, {\n hiddenColumns: A\n });\n }\n if (p.type === f.setHiddenColumns)\n return o({}, u, {\n hiddenColumns: B(p.value, u.hiddenColumns)\n });\n if (p.type === f.toggleHideAllColumns) {\n var C = typeof p.value < \"u\" ? p.value : !u.hiddenColumns.length;\n return o({}, u, {\n hiddenColumns: C ? h.allColumns.map(function(k) {\n return k.id;\n }) : []\n });\n }\n }\n function xi(u) {\n var p = u.headers, g = u.state.hiddenColumns, h = r.useRef(!1);\n h.current;\n var R = function C(k, N) {\n k.isVisible = N && !g.includes(k.id);\n var V = 0;\n return k.headers && k.headers.length ? k.headers.forEach(function(H) {\n return V += C(H, k.isVisible);\n }) : V = k.isVisible ? 1 : 0, k.totalVisibleHeaderCount = V, V;\n }, A = 0;\n p.forEach(function(C) {\n return A += R(C, !0);\n });\n }\n function Ra(u) {\n var p = u.columns, g = u.flatHeaders, h = u.dispatch, R = u.allColumns, A = u.getHooks, C = u.state.hiddenColumns, k = u.autoResetHiddenColumns, N = k === void 0 ? !0 : k, V = Q(u), H = R.length === C.length, oe = r.useCallback(function(ve, Te) {\n return h({\n type: f.toggleHideColumn,\n columnId: ve,\n value: Te\n });\n }, [h]), K = r.useCallback(function(ve) {\n return h({\n type: f.setHiddenColumns,\n value: ve\n });\n }, [h]), te = r.useCallback(function(ve) {\n return h({\n type: f.toggleHideAllColumns,\n value: ve\n });\n }, [h]), ae = L(A().getToggleHideAllColumnsProps, {\n instance: V()\n });\n g.forEach(function(ve) {\n ve.toggleHidden = function(Te) {\n h({\n type: f.toggleHideColumn,\n columnId: ve.id,\n value: Te\n });\n }, ve.getToggleHiddenProps = L(A().getToggleHiddenProps, {\n instance: V(),\n column: ve\n });\n });\n var Y = Q(N);\n ce(function() {\n Y() && h({\n type: f.resetHiddenColumns\n });\n }, [h, p]), Object.assign(u, {\n allColumnsHidden: H,\n toggleHideColumn: oe,\n setHiddenColumns: K,\n toggleHideAllColumns: te,\n getToggleHideAllColumnsProps: ae\n });\n }\n var Sa = {}, Pa = {}, Ta = function(p, g, h) {\n return p;\n }, Aa = function(p, g) {\n return p.subRows || [];\n }, Ci = function(p, g, h) {\n return \"\" + (h ? [h.id, g].join(\".\") : g);\n }, Ri = function(p) {\n return p;\n };\n function Sr(u) {\n var p = u.initialState, g = p === void 0 ? Sa : p, h = u.defaultColumn, R = h === void 0 ? Pa : h, A = u.getSubRows, C = A === void 0 ? Aa : A, k = u.getRowId, N = k === void 0 ? Ci : k, V = u.stateReducer, H = V === void 0 ? Ta : V, oe = u.useControlledState, K = oe === void 0 ? Ri : oe, te = l(u, [\"initialState\", \"defaultColumn\", \"getSubRows\", \"getRowId\", \"stateReducer\", \"useControlledState\"]);\n return o({}, te, {\n initialState: g,\n defaultColumn: R,\n getSubRows: C,\n getRowId: N,\n stateReducer: H,\n useControlledState: K\n });\n }\n var Si = function(p) {\n for (var g = arguments.length, h = new Array(g > 1 ? g - 1 : 0), R = 1; R < g; R++)\n h[R - 1] = arguments[R];\n p = Sr(p), h = [yi].concat(h);\n var A = r.useRef({}), C = Q(A.current);\n Object.assign(C(), o({}, p, {\n plugins: h,\n hooks: xa()\n })), h.filter(Boolean).forEach(function(Ie) {\n Ie(C().hooks);\n });\n var k = Q(C().hooks);\n C().getHooks = k, delete C().hooks, Object.assign(C(), M(k().useOptions, Sr(p)));\n var N = C(), V = N.data, H = N.columns, oe = N.initialState, K = N.defaultColumn, te = N.getSubRows, ae = N.getRowId, Y = N.stateReducer, ve = N.useControlledState, Te = Q(Y), Be = r.useCallback(function(Ie, vt) {\n if (!vt.type)\n throw console.info({\n action: vt\n }), new Error(\"Unknown Action 👆\");\n return [].concat(k().stateReducers, Array.isArray(Te()) ? Te() : [Te()]).reduce(function(Pt, Lt) {\n return Lt(Pt, vt, Ie, C()) || Pt;\n }, Ie);\n }, [k, Te, C]), fe = r.useReducer(Be, void 0, function() {\n return Be(oe, {\n type: f.init\n });\n }), He = fe[0], Xe = fe[1], pe = M([].concat(k().useControlledState, [ve]), He, {\n instance: C()\n });\n Object.assign(C(), {\n state: pe,\n dispatch: Xe\n });\n var ue = r.useMemo(function() {\n return ie(M(k().columns, H, {\n instance: C()\n }));\n }, [k, C, H].concat(M(k().columnsDeps, [], {\n instance: C()\n })));\n C().columns = ue;\n var me = r.useMemo(function() {\n return M(k().allColumns, Ee(ue), {\n instance: C()\n }).map($);\n }, [ue, k, C].concat(M(k().allColumnsDeps, [], {\n instance: C()\n })));\n C().allColumns = me;\n var Pe = r.useMemo(function() {\n for (var Ie = [], vt = [], Pt = {}, Lt = [].concat(me); Lt.length; ) {\n var Et = Lt.shift();\n Pi({\n data: V,\n rows: Ie,\n flatRows: vt,\n rowsById: Pt,\n column: Et,\n getRowId: ae,\n getSubRows: te,\n accessValueHooks: k().accessValue,\n getInstance: C\n });\n }\n return [Ie, vt, Pt];\n }, [me, V, ae, te, k, C]), qe = Pe[0], Ye = Pe[1], lt = Pe[2];\n Object.assign(C(), {\n rows: qe,\n initialRows: [].concat(qe),\n flatRows: Ye,\n rowsById: lt\n // materializedColumns,\n }), F(k().useInstanceAfterData, C());\n var be = r.useMemo(function() {\n return M(k().visibleColumns, me, {\n instance: C()\n }).map(function(Ie) {\n return xe(Ie, K);\n });\n }, [k, me, C, K].concat(M(k().visibleColumnsDeps, [], {\n instance: C()\n })));\n me = r.useMemo(function() {\n var Ie = [].concat(be);\n return me.forEach(function(vt) {\n Ie.find(function(Pt) {\n return Pt.id === vt.id;\n }) || Ie.push(vt);\n }), Ie;\n }, [me, be]), C().allColumns = me;\n {\n var At = me.filter(function(Ie, vt) {\n return me.findIndex(function(Pt) {\n return Pt.id === Ie.id;\n }) !== vt;\n });\n if (At.length)\n throw console.info(me), new Error('Duplicate columns were found with ids: \"' + At.map(function(Ie) {\n return Ie.id;\n }).join(\", \") + '\" in the columns array above');\n }\n var Ke = r.useMemo(function() {\n return M(k().headerGroups, ft(be, K), C());\n }, [k, be, K, C].concat(M(k().headerGroupsDeps, [], {\n instance: C()\n })));\n C().headerGroups = Ke;\n var Le = r.useMemo(function() {\n return Ke.length ? Ke[0].headers : [];\n }, [Ke]);\n C().headers = Le, C().flatHeaders = Ke.reduce(function(Ie, vt) {\n return [].concat(Ie, vt.headers);\n }, []), F(k().useInstanceBeforeDimensions, C());\n var _e = be.filter(function(Ie) {\n return Ie.isVisible;\n }).map(function(Ie) {\n return Ie.id;\n }).sort().join(\"_\");\n be = r.useMemo(\n function() {\n return be.filter(function(Ie) {\n return Ie.isVisible;\n });\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [be, _e]\n ), C().visibleColumns = be;\n var pt = Pr(Le), Mt = pt[0], _n = pt[1], Gr = pt[2];\n return C().totalColumnsMinWidth = Mt, C().totalColumnsWidth = _n, C().totalColumnsMaxWidth = Gr, F(k().useInstance, C()), [].concat(C().flatHeaders, C().allColumns).forEach(function(Ie) {\n Ie.render = Ve(C(), Ie), Ie.getHeaderProps = L(k().getHeaderProps, {\n instance: C(),\n column: Ie\n }), Ie.getFooterProps = L(k().getFooterProps, {\n instance: C(),\n column: Ie\n });\n }), C().headerGroups = r.useMemo(function() {\n return Ke.filter(function(Ie, vt) {\n return Ie.headers = Ie.headers.filter(function(Pt) {\n var Lt = function Et(yn) {\n return yn.filter(function(Ft) {\n return Ft.headers ? Et(Ft.headers) : Ft.isVisible;\n }).length;\n };\n return Pt.headers ? Lt(Pt.headers) : Pt.isVisible;\n }), Ie.headers.length ? (Ie.getHeaderGroupProps = L(k().getHeaderGroupProps, {\n instance: C(),\n headerGroup: Ie,\n index: vt\n }), Ie.getFooterGroupProps = L(k().getFooterGroupProps, {\n instance: C(),\n headerGroup: Ie,\n index: vt\n }), !0) : !1;\n });\n }, [Ke, C, k]), C().footerGroups = [].concat(C().headerGroups).reverse(), C().prepareRow = r.useCallback(function(Ie) {\n Ie.getRowProps = L(k().getRowProps, {\n instance: C(),\n row: Ie\n }), Ie.allCells = me.map(function(vt) {\n var Pt = Ie.values[vt.id], Lt = {\n column: vt,\n row: Ie,\n value: Pt\n };\n return Lt.getCellProps = L(k().getCellProps, {\n instance: C(),\n cell: Lt\n }), Lt.render = Ve(C(), vt, {\n row: Ie,\n cell: Lt,\n value: Pt\n }), Lt;\n }), Ie.cells = be.map(function(vt) {\n return Ie.allCells.find(function(Pt) {\n return Pt.column.id === vt.id;\n });\n }), F(k().prepareRow, Ie, {\n instance: C()\n });\n }, [k, C, me, be]), C().getTableProps = L(k().getTableProps, {\n instance: C()\n }), C().getTableBodyProps = L(k().getTableBodyProps, {\n instance: C()\n }), F(k().useFinalInstance, C()), C();\n };\n function Pr(u, p) {\n p === void 0 && (p = 0);\n var g = 0, h = 0, R = 0, A = 0;\n return u.forEach(function(C) {\n var k = C.headers;\n if (C.totalLeft = p, k && k.length) {\n var N = Pr(k, p), V = N[0], H = N[1], oe = N[2], K = N[3];\n C.totalMinWidth = V, C.totalWidth = H, C.totalMaxWidth = oe, C.totalFlexWidth = K;\n } else\n C.totalMinWidth = C.minWidth, C.totalWidth = Math.min(Math.max(C.minWidth, C.width), C.maxWidth), C.totalMaxWidth = C.maxWidth, C.totalFlexWidth = C.canResize ? C.totalWidth : 0;\n C.isVisible && (p += C.totalWidth, g += C.totalMinWidth, h += C.totalWidth, R += C.totalMaxWidth, A += C.totalFlexWidth);\n }), [g, h, R, A];\n }\n function Pi(u) {\n var p = u.data, g = u.rows, h = u.flatRows, R = u.rowsById, A = u.column, C = u.getRowId, k = u.getSubRows, N = u.accessValueHooks, V = u.getInstance, H = function oe(K, te, ae, Y, ve) {\n ae === void 0 && (ae = 0);\n var Te = K, Be = C(K, te, Y), fe = R[Be];\n if (fe)\n fe.subRows && fe.originalSubRows.forEach(function(Xe, pe) {\n return oe(Xe, pe, ae + 1, fe);\n });\n else if (fe = {\n id: Be,\n original: Te,\n index: te,\n depth: ae,\n cells: [{}]\n // This is a dummy cell\n }, fe.cells.map = Je, fe.cells.filter = Je, fe.cells.forEach = Je, fe.cells[0].getCellProps = Je, fe.values = {}, ve.push(fe), h.push(fe), R[Be] = fe, fe.originalSubRows = k(K, te), fe.originalSubRows) {\n var He = [];\n fe.originalSubRows.forEach(function(Xe, pe) {\n return oe(Xe, pe, ae + 1, fe, He);\n }), fe.subRows = He;\n }\n A.accessor && (fe.values[A.id] = A.accessor(K, te, fe, ve, p)), fe.values[A.id] = M(N, fe.values[A.id], {\n row: fe,\n column: A,\n instance: V()\n }, !0);\n };\n p.forEach(function(oe, K) {\n return H(oe, K, 0, void 0, g);\n });\n }\n f.resetExpanded = \"resetExpanded\", f.toggleRowExpanded = \"toggleRowExpanded\", f.toggleAllRowsExpanded = \"toggleAllRowsExpanded\";\n var Tr = function(p) {\n p.getToggleAllRowsExpandedProps = [Ti], p.getToggleRowExpandedProps = [Ai], p.stateReducers.push(Ei), p.useInstance.push(Dn), p.prepareRow.push(Oi);\n };\n Tr.pluginName = \"useExpanded\";\n var Ti = function(p, g) {\n var h = g.instance;\n return [p, {\n onClick: function(A) {\n h.toggleAllRowsExpanded();\n },\n style: {\n cursor: \"pointer\"\n },\n title: \"Toggle All Rows Expanded\"\n }];\n }, Ai = function(p, g) {\n var h = g.row;\n return [p, {\n onClick: function() {\n h.toggleRowExpanded();\n },\n style: {\n cursor: \"pointer\"\n },\n title: \"Toggle Row Expanded\"\n }];\n };\n function Ei(u, p, g, h) {\n if (p.type === f.init)\n return o({\n expanded: {}\n }, u);\n if (p.type === f.resetExpanded)\n return o({}, u, {\n expanded: h.initialState.expanded || {}\n });\n if (p.type === f.toggleAllRowsExpanded) {\n var R = p.value, A = h.rowsById, C = Object.keys(A).length === Object.keys(u.expanded).length, k = typeof R < \"u\" ? R : !C;\n if (k) {\n var N = {};\n return Object.keys(A).forEach(function(ve) {\n N[ve] = !0;\n }), o({}, u, {\n expanded: N\n });\n }\n return o({}, u, {\n expanded: {}\n });\n }\n if (p.type === f.toggleRowExpanded) {\n var V = p.id, H = p.value, oe = u.expanded[V], K = typeof H < \"u\" ? H : !oe;\n if (!oe && K) {\n var te;\n return o({}, u, {\n expanded: o({}, u.expanded, (te = {}, te[V] = !0, te))\n });\n } else if (oe && !K) {\n var ae = u.expanded;\n ae[V];\n var Y = l(ae, [V].map(c));\n return o({}, u, {\n expanded: Y\n });\n } else\n return u;\n }\n }\n function Dn(u) {\n var p = u.data, g = u.rows, h = u.rowsById, R = u.manualExpandedKey, A = R === void 0 ? \"expanded\" : R, C = u.paginateExpandedRows, k = C === void 0 ? !0 : C, N = u.expandSubRows, V = N === void 0 ? !0 : N, H = u.autoResetExpanded, oe = H === void 0 ? !0 : H, K = u.getHooks, te = u.plugins, ae = u.state.expanded, Y = u.dispatch;\n j(te, [\"useSortBy\", \"useGroupBy\", \"usePivotColumns\", \"useGlobalFilter\"], \"useExpanded\");\n var ve = Q(oe), Te = !!(Object.keys(h).length && Object.keys(ae).length);\n Te && Object.keys(h).some(function(me) {\n return !ae[me];\n }) && (Te = !1), ce(function() {\n ve() && Y({\n type: f.resetExpanded\n });\n }, [Y, p]);\n var Be = r.useCallback(function(me, Pe) {\n Y({\n type: f.toggleRowExpanded,\n id: me,\n value: Pe\n });\n }, [Y]), fe = r.useCallback(function(me) {\n return Y({\n type: f.toggleAllRowsExpanded,\n value: me\n });\n }, [Y]), He = r.useMemo(function() {\n return k ? Qe(g, {\n manualExpandedKey: A,\n expanded: ae,\n expandSubRows: V\n }) : g;\n }, [k, g, A, ae, V]), Xe = r.useMemo(function() {\n return Ea(ae);\n }, [ae]), pe = Q(u), ue = L(K().getToggleAllRowsExpandedProps, {\n instance: pe()\n });\n Object.assign(u, {\n preExpandedRows: g,\n expandedRows: He,\n rows: He,\n expandedDepth: Xe,\n isAllRowsExpanded: Te,\n toggleRowExpanded: Be,\n toggleAllRowsExpanded: fe,\n getToggleAllRowsExpandedProps: ue\n });\n }\n function Oi(u, p) {\n var g = p.instance.getHooks, h = p.instance;\n u.toggleRowExpanded = function(R) {\n return h.toggleRowExpanded(u.id, R);\n }, u.getToggleRowExpandedProps = L(g().getToggleRowExpandedProps, {\n instance: h,\n row: u\n });\n }\n function Ea(u) {\n var p = 0;\n return Object.keys(u).forEach(function(g) {\n var h = g.split(\".\");\n p = Math.max(p, h.length);\n }), p;\n }\n var ki = function(p, g, h) {\n return p = p.filter(function(R) {\n return g.some(function(A) {\n var C = R.values[A];\n return String(C).toLowerCase().includes(String(h).toLowerCase());\n });\n }), p;\n };\n ki.autoRemove = function(u) {\n return !u;\n };\n var Ar = function(p, g, h) {\n return p.filter(function(R) {\n return g.some(function(A) {\n var C = R.values[A];\n return C !== void 0 ? String(C).toLowerCase() === String(h).toLowerCase() : !0;\n });\n });\n };\n Ar.autoRemove = function(u) {\n return !u;\n };\n var Ii = function(p, g, h) {\n return p.filter(function(R) {\n return g.some(function(A) {\n var C = R.values[A];\n return C !== void 0 ? String(C) === String(h) : !0;\n });\n });\n };\n Ii.autoRemove = function(u) {\n return !u;\n };\n var Mi = function(p, g, h) {\n return p.filter(function(R) {\n return g.some(function(A) {\n var C = R.values[A];\n return C.includes(h);\n });\n });\n };\n Mi.autoRemove = function(u) {\n return !u || !u.length;\n };\n var Er = function(p, g, h) {\n return p.filter(function(R) {\n return g.some(function(A) {\n var C = R.values[A];\n return C && C.length && h.every(function(k) {\n return C.includes(k);\n });\n });\n });\n };\n Er.autoRemove = function(u) {\n return !u || !u.length;\n };\n var Or = function(p, g, h) {\n return p.filter(function(R) {\n return g.some(function(A) {\n var C = R.values[A];\n return C && C.length && h.some(function(k) {\n return C.includes(k);\n });\n });\n });\n };\n Or.autoRemove = function(u) {\n return !u || !u.length;\n };\n var Fi = function(p, g, h) {\n return p.filter(function(R) {\n return g.some(function(A) {\n var C = R.values[A];\n return h.includes(C);\n });\n });\n };\n Fi.autoRemove = function(u) {\n return !u || !u.length;\n };\n var Bi = function(p, g, h) {\n return p.filter(function(R) {\n return g.some(function(A) {\n var C = R.values[A];\n return C === h;\n });\n });\n };\n Bi.autoRemove = function(u) {\n return typeof u > \"u\";\n };\n var kr = function(p, g, h) {\n return p.filter(function(R) {\n return g.some(function(A) {\n var C = R.values[A];\n return C == h;\n });\n });\n };\n kr.autoRemove = function(u) {\n return u == null;\n };\n var Di = function(p, g, h) {\n var R = h || [], A = R[0], C = R[1];\n if (A = typeof A == \"number\" ? A : -1 / 0, C = typeof C == \"number\" ? C : 1 / 0, A > C) {\n var k = A;\n A = C, C = k;\n }\n return p.filter(function(N) {\n return g.some(function(V) {\n var H = N.values[V];\n return H >= A && H <= C;\n });\n });\n };\n Di.autoRemove = function(u) {\n return !u || typeof u[0] != \"number\" && typeof u[1] != \"number\";\n };\n var Nn = /* @__PURE__ */ Object.freeze({\n __proto__: null,\n text: ki,\n exactText: Ar,\n exactTextCase: Ii,\n includes: Mi,\n includesAll: Er,\n includesSome: Or,\n includesValue: Fi,\n exact: Bi,\n equals: kr,\n between: Di\n });\n f.resetFilters = \"resetFilters\", f.setFilter = \"setFilter\", f.setAllFilters = \"setAllFilters\";\n var Ni = function(p) {\n p.stateReducers.push(Oa), p.useInstance.push(ka);\n };\n Ni.pluginName = \"useFilters\";\n function Oa(u, p, g, h) {\n if (p.type === f.init)\n return o({\n filters: []\n }, u);\n if (p.type === f.resetFilters)\n return o({}, u, {\n filters: h.initialState.filters || []\n });\n if (p.type === f.setFilter) {\n var R = p.columnId, A = p.filterValue, C = h.allColumns, k = h.filterTypes, N = C.find(function(Y) {\n return Y.id === R;\n });\n if (!N)\n throw new Error(\"React-Table: Could not find a column with id: \" + R);\n var V = Fe(N.filter, k || {}, Nn), H = u.filters.find(function(Y) {\n return Y.id === R;\n }), oe = B(A, H && H.value);\n return We(V.autoRemove, oe, N) ? o({}, u, {\n filters: u.filters.filter(function(Y) {\n return Y.id !== R;\n })\n }) : H ? o({}, u, {\n filters: u.filters.map(function(Y) {\n return Y.id === R ? {\n id: R,\n value: oe\n } : Y;\n })\n }) : o({}, u, {\n filters: [].concat(u.filters, [{\n id: R,\n value: oe\n }])\n });\n }\n if (p.type === f.setAllFilters) {\n var K = p.filters, te = h.allColumns, ae = h.filterTypes;\n return o({}, u, {\n // Filter out undefined values\n filters: B(K, u.filters).filter(function(Y) {\n var ve = te.find(function(Be) {\n return Be.id === Y.id;\n }), Te = Fe(ve.filter, ae || {}, Nn);\n return !We(Te.autoRemove, Y.value, ve);\n })\n });\n }\n }\n function ka(u) {\n var p = u.data, g = u.rows, h = u.flatRows, R = u.rowsById, A = u.allColumns, C = u.filterTypes, k = u.manualFilters, N = u.defaultCanFilter, V = N === void 0 ? !1 : N, H = u.disableFilters, oe = u.state.filters, K = u.dispatch, te = u.autoResetFilters, ae = te === void 0 ? !0 : te, Y = r.useCallback(function(pe, ue) {\n K({\n type: f.setFilter,\n columnId: pe,\n filterValue: ue\n });\n }, [K]), ve = r.useCallback(function(pe) {\n K({\n type: f.setAllFilters,\n filters: pe\n });\n }, [K]);\n A.forEach(function(pe) {\n var ue = pe.id, me = pe.accessor, Pe = pe.defaultCanFilter, qe = pe.disableFilters;\n pe.canFilter = me ? Ce(qe === !0 ? !1 : void 0, H === !0 ? !1 : void 0, !0) : Ce(Pe, V, !1), pe.setFilter = function(lt) {\n return Y(pe.id, lt);\n };\n var Ye = oe.find(function(lt) {\n return lt.id === ue;\n });\n pe.filterValue = Ye && Ye.value;\n });\n var Te = r.useMemo(function() {\n if (k || !oe.length)\n return [g, h, R];\n var pe = [], ue = {}, me = function Pe(qe, Ye) {\n Ye === void 0 && (Ye = 0);\n var lt = qe;\n return lt = oe.reduce(function(be, At) {\n var Ke = At.id, Le = At.value, _e = A.find(function(Mt) {\n return Mt.id === Ke;\n });\n if (!_e)\n return be;\n Ye === 0 && (_e.preFilteredRows = be);\n var pt = Fe(_e.filter, C || {}, Nn);\n return pt ? (_e.filteredRows = pt(be, [Ke], Le), _e.filteredRows) : (console.warn(\"Could not find a valid 'column.filter' for column with the ID: \" + _e.id + \".\"), be);\n }, qe), lt.forEach(function(be) {\n pe.push(be), ue[be.id] = be, be.subRows && (be.subRows = be.subRows && be.subRows.length > 0 ? Pe(be.subRows, Ye + 1) : be.subRows);\n }), lt;\n };\n return [me(g), pe, ue];\n }, [k, oe, g, h, R, A, C]), Be = Te[0], fe = Te[1], He = Te[2];\n r.useMemo(function() {\n var pe = A.filter(function(ue) {\n return !oe.find(function(me) {\n return me.id === ue.id;\n });\n });\n pe.forEach(function(ue) {\n ue.preFilteredRows = Be, ue.filteredRows = Be;\n });\n }, [Be, oe, A]);\n var Xe = Q(ae);\n ce(function() {\n Xe() && K({\n type: f.resetFilters\n });\n }, [K, k ? null : p]), Object.assign(u, {\n preFilteredRows: g,\n preFilteredFlatRows: h,\n preFilteredRowsById: R,\n filteredRows: Be,\n filteredFlatRows: fe,\n filteredRowsById: He,\n rows: Be,\n flatRows: fe,\n rowsById: He,\n setFilter: Y,\n setAllFilters: ve\n });\n }\n f.resetGlobalFilter = \"resetGlobalFilter\", f.setGlobalFilter = \"setGlobalFilter\";\n var Li = function(p) {\n p.stateReducers.push($i), p.useInstance.push(_i);\n };\n Li.pluginName = \"useGlobalFilter\";\n function $i(u, p, g, h) {\n if (p.type === f.resetGlobalFilter)\n return o({}, u, {\n globalFilter: h.initialState.globalFilter || void 0\n });\n if (p.type === f.setGlobalFilter) {\n var R = p.filterValue, A = h.userFilterTypes, C = Fe(h.globalFilter, A || {}, Nn), k = B(R, u.globalFilter);\n if (We(C.autoRemove, k)) {\n u.globalFilter;\n var N = l(u, [\"globalFilter\"]);\n return N;\n }\n return o({}, u, {\n globalFilter: k\n });\n }\n }\n function _i(u) {\n var p = u.data, g = u.rows, h = u.flatRows, R = u.rowsById, A = u.allColumns, C = u.filterTypes, k = u.globalFilter, N = u.manualGlobalFilter, V = u.state.globalFilter, H = u.dispatch, oe = u.autoResetGlobalFilter, K = oe === void 0 ? !0 : oe, te = u.disableGlobalFilter, ae = r.useCallback(function(He) {\n H({\n type: f.setGlobalFilter,\n filterValue: He\n });\n }, [H]), Y = r.useMemo(function() {\n if (N || typeof V > \"u\")\n return [g, h, R];\n var He = [], Xe = {}, pe = Fe(k, C || {}, Nn);\n if (!pe)\n return console.warn(\"Could not find a valid 'globalFilter' option.\"), g;\n A.forEach(function(Pe) {\n var qe = Pe.disableGlobalFilter;\n Pe.canFilter = Ce(qe === !0 ? !1 : void 0, te === !0 ? !1 : void 0, !0);\n });\n var ue = A.filter(function(Pe) {\n return Pe.canFilter === !0;\n }), me = function Pe(qe) {\n return qe = pe(qe, ue.map(function(Ye) {\n return Ye.id;\n }), V), qe.forEach(function(Ye) {\n He.push(Ye), Xe[Ye.id] = Ye, Ye.subRows = Ye.subRows && Ye.subRows.length ? Pe(Ye.subRows) : Ye.subRows;\n }), qe;\n };\n return [me(g), He, Xe];\n }, [N, V, k, C, A, g, h, R, te]), ve = Y[0], Te = Y[1], Be = Y[2], fe = Q(K);\n ce(function() {\n fe() && H({\n type: f.resetGlobalFilter\n });\n }, [H, N ? null : p]), Object.assign(u, {\n preGlobalFilteredRows: g,\n preGlobalFilteredFlatRows: h,\n preGlobalFilteredRowsById: R,\n globalFilteredRows: ve,\n globalFilteredFlatRows: Te,\n globalFilteredRowsById: Be,\n rows: ve,\n flatRows: Te,\n rowsById: Be,\n setGlobalFilter: ae,\n disableGlobalFilter: te\n });\n }\n function or(u, p) {\n return p.reduce(function(g, h) {\n return g + (typeof h == \"number\" ? h : 0);\n }, 0);\n }\n function Ln(u) {\n var p = u[0] || 0;\n return u.forEach(function(g) {\n typeof g == \"number\" && (p = Math.min(p, g));\n }), p;\n }\n function Vi(u) {\n var p = u[0] || 0;\n return u.forEach(function(g) {\n typeof g == \"number\" && (p = Math.max(p, g));\n }), p;\n }\n function Ia(u) {\n var p = u[0] || 0, g = u[0] || 0;\n return u.forEach(function(h) {\n typeof h == \"number\" && (p = Math.min(p, h), g = Math.max(g, h));\n }), p + \"..\" + g;\n }\n function Gi(u) {\n return or(null, u) / u.length;\n }\n function Ma(u) {\n if (!u.length)\n return null;\n var p = Math.floor(u.length / 2), g = [].concat(u).sort(function(h, R) {\n return h - R;\n });\n return u.length % 2 !== 0 ? g[p] : (g[p - 1] + g[p]) / 2;\n }\n function Fa(u) {\n return Array.from(new Set(u).values());\n }\n function Ba(u) {\n return new Set(u).size;\n }\n function ji(u) {\n return u.length;\n }\n var Ir = /* @__PURE__ */ Object.freeze({\n __proto__: null,\n sum: or,\n min: Ln,\n max: Vi,\n minMax: Ia,\n average: Gi,\n median: Ma,\n unique: Fa,\n uniqueCount: Ba,\n count: ji\n }), Da = [], Na = {};\n f.resetGroupBy = \"resetGroupBy\", f.setGroupBy = \"setGroupBy\", f.toggleGroupBy = \"toggleGroupBy\";\n var Mr = function(p) {\n p.getGroupByToggleProps = [zi], p.stateReducers.push(La), p.visibleColumnsDeps.push(function(g, h) {\n var R = h.instance;\n return [].concat(g, [R.state.groupBy]);\n }), p.visibleColumns.push($a), p.useInstance.push(Va), p.prepareRow.push(Ga);\n };\n Mr.pluginName = \"useGroupBy\";\n var zi = function(p, g) {\n var h = g.header;\n return [p, {\n onClick: h.canGroupBy ? function(R) {\n R.persist(), h.toggleGroupBy();\n } : void 0,\n style: {\n cursor: h.canGroupBy ? \"pointer\" : void 0\n },\n title: \"Toggle GroupBy\"\n }];\n };\n function La(u, p, g, h) {\n if (p.type === f.init)\n return o({\n groupBy: []\n }, u);\n if (p.type === f.resetGroupBy)\n return o({}, u, {\n groupBy: h.initialState.groupBy || []\n });\n if (p.type === f.setGroupBy) {\n var R = p.value;\n return o({}, u, {\n groupBy: R\n });\n }\n if (p.type === f.toggleGroupBy) {\n var A = p.columnId, C = p.value, k = typeof C < \"u\" ? C : !u.groupBy.includes(A);\n return k ? o({}, u, {\n groupBy: [].concat(u.groupBy, [A])\n }) : o({}, u, {\n groupBy: u.groupBy.filter(function(N) {\n return N !== A;\n })\n });\n }\n }\n function $a(u, p) {\n var g = p.instance.state.groupBy, h = g.map(function(A) {\n return u.find(function(C) {\n return C.id === A;\n });\n }).filter(Boolean), R = u.filter(function(A) {\n return !g.includes(A.id);\n });\n return u = [].concat(h, R), u.forEach(function(A) {\n A.isGrouped = g.includes(A.id), A.groupedIndex = g.indexOf(A.id);\n }), u;\n }\n var _a = {};\n function Va(u) {\n var p = u.data, g = u.rows, h = u.flatRows, R = u.rowsById, A = u.allColumns, C = u.flatHeaders, k = u.groupByFn, N = k === void 0 ? Hi : k, V = u.manualGroupBy, H = u.aggregations, oe = H === void 0 ? _a : H, K = u.plugins, te = u.state.groupBy, ae = u.dispatch, Y = u.autoResetGroupBy, ve = Y === void 0 ? !0 : Y, Te = u.disableGroupBy, Be = u.defaultCanGroupBy, fe = u.getHooks;\n j(K, [\"useColumnOrder\", \"useFilters\"], \"useGroupBy\");\n var He = Q(u);\n A.forEach(function(Le) {\n var _e = Le.accessor, pt = Le.defaultGroupBy, Mt = Le.disableGroupBy;\n Le.canGroupBy = _e ? Ce(Le.canGroupBy, Mt === !0 ? !1 : void 0, Te === !0 ? !1 : void 0, !0) : Ce(Le.canGroupBy, pt, Be, !1), Le.canGroupBy && (Le.toggleGroupBy = function() {\n return u.toggleGroupBy(Le.id);\n }), Le.Aggregated = Le.Aggregated || Le.Cell;\n });\n var Xe = r.useCallback(function(Le, _e) {\n ae({\n type: f.toggleGroupBy,\n columnId: Le,\n value: _e\n });\n }, [ae]), pe = r.useCallback(function(Le) {\n ae({\n type: f.setGroupBy,\n value: Le\n });\n }, [ae]);\n C.forEach(function(Le) {\n Le.getGroupByToggleProps = L(fe().getGroupByToggleProps, {\n instance: He(),\n header: Le\n });\n });\n var ue = r.useMemo(function() {\n if (V || !te.length)\n return [g, h, R, Da, Na, h, R];\n var Le = te.filter(function(Et) {\n return A.find(function(yn) {\n return yn.id === Et;\n });\n }), _e = function(yn, Ft, uo) {\n var bn = {};\n return A.forEach(function(Ct) {\n if (Le.includes(Ct.id)) {\n bn[Ct.id] = Ft[0] ? Ft[0].values[Ct.id] : null;\n return;\n }\n var co = typeof Ct.aggregate == \"function\" ? Ct.aggregate : oe[Ct.aggregate] || Ir[Ct.aggregate];\n if (co) {\n var sr = Ft.map(function(Vn) {\n return Vn.values[Ct.id];\n }), os = yn.map(function(Vn) {\n var wn = Vn.values[Ct.id];\n if (!uo && Ct.aggregateValue) {\n var xn = typeof Ct.aggregateValue == \"function\" ? Ct.aggregateValue : oe[Ct.aggregateValue] || Ir[Ct.aggregateValue];\n if (!xn)\n throw console.info({\n column: Ct\n }), new Error(\"React Table: Invalid column.aggregateValue option for column listed above\");\n wn = xn(wn, Vn, Ct);\n }\n return wn;\n });\n bn[Ct.id] = co(os, sr);\n } else {\n if (Ct.aggregate)\n throw console.info({\n column: Ct\n }), new Error(\"React Table: Invalid column.aggregate option for column listed above\");\n bn[Ct.id] = null;\n }\n }), bn;\n }, pt = [], Mt = {}, _n = [], Gr = {}, Ie = [], vt = {}, Pt = function Et(yn, Ft, uo) {\n if (Ft === void 0 && (Ft = 0), Ft === Le.length)\n return yn.map(function(sr) {\n return o({}, sr, {\n depth: Ft\n });\n });\n var bn = Le[Ft], Ct = N(yn, bn), co = Object.entries(Ct).map(function(sr, os) {\n var Vn = sr[0], wn = sr[1], xn = bn + \":\" + Vn;\n xn = uo ? uo + \">\" + xn : xn;\n var cu = Et(wn, Ft + 1, xn), fu = Ft ? Me(wn, \"leafRows\") : wn, Lp = _e(fu, wn, Ft), $p = {\n id: xn,\n isGrouped: !0,\n groupByID: bn,\n groupByVal: Vn,\n values: Lp,\n subRows: cu,\n leafRows: fu,\n depth: Ft,\n index: os\n };\n return cu.forEach(function(nn) {\n pt.push(nn), Mt[nn.id] = nn, nn.isGrouped ? (_n.push(nn), Gr[nn.id] = nn) : (Ie.push(nn), vt[nn.id] = nn);\n }), $p;\n });\n return co;\n }, Lt = Pt(g);\n return Lt.forEach(function(Et) {\n pt.push(Et), Mt[Et.id] = Et, Et.isGrouped ? (_n.push(Et), Gr[Et.id] = Et) : (Ie.push(Et), vt[Et.id] = Et);\n }), [Lt, pt, Mt, _n, Gr, Ie, vt];\n }, [V, te, g, h, R, A, oe, N]), me = ue[0], Pe = ue[1], qe = ue[2], Ye = ue[3], lt = ue[4], be = ue[5], At = ue[6], Ke = Q(ve);\n ce(function() {\n Ke() && ae({\n type: f.resetGroupBy\n });\n }, [ae, V ? null : p]), Object.assign(u, {\n preGroupedRows: g,\n preGroupedFlatRow: h,\n preGroupedRowsById: R,\n groupedRows: me,\n groupedFlatRows: Pe,\n groupedRowsById: qe,\n onlyGroupedFlatRows: Ye,\n onlyGroupedRowsById: lt,\n nonGroupedFlatRows: be,\n nonGroupedRowsById: At,\n rows: me,\n flatRows: Pe,\n rowsById: qe,\n toggleGroupBy: Xe,\n setGroupBy: pe\n });\n }\n function Ga(u) {\n u.allCells.forEach(function(p) {\n var g;\n p.isGrouped = p.column.isGrouped && p.column.id === u.groupByID, p.isPlaceholder = !p.isGrouped && p.column.isGrouped, p.isAggregated = !p.isGrouped && !p.isPlaceholder && ((g = u.subRows) == null ? void 0 : g.length);\n });\n }\n function Hi(u, p) {\n return u.reduce(function(g, h, R) {\n var A = \"\" + h.values[p];\n return g[A] = Array.isArray(g[A]) ? g[A] : [], g[A].push(h), g;\n }, {});\n }\n var Wi = /([0-9]+)/gm, ja = function(p, g, h) {\n var R = $n(p, g, h), A = R[0], C = R[1];\n for (A = qi(A), C = qi(C), A = A.split(Wi).filter(Boolean), C = C.split(Wi).filter(Boolean); A.length && C.length; ) {\n var k = A.shift(), N = C.shift(), V = parseInt(k, 10), H = parseInt(N, 10), oe = [V, H].sort();\n if (isNaN(oe[0])) {\n if (k > N)\n return 1;\n if (N > k)\n return -1;\n continue;\n }\n if (isNaN(oe[1]))\n return isNaN(V) ? -1 : 1;\n if (V > H)\n return 1;\n if (H > V)\n return -1;\n }\n return A.length - C.length;\n };\n function za(u, p, g) {\n var h = $n(u, p, g), R = h[0], A = h[1];\n return R = R.getTime(), A = A.getTime(), Fr(R, A);\n }\n function Ha(u, p, g) {\n var h = $n(u, p, g), R = h[0], A = h[1];\n return Fr(R, A);\n }\n function Wa(u, p, g) {\n var h = $n(u, p, g), R = h[0], A = h[1];\n for (R = R.split(\"\").filter(Boolean), A = A.split(\"\").filter(Boolean); R.length && A.length; ) {\n var C = R.shift(), k = A.shift(), N = C.toLowerCase(), V = k.toLowerCase();\n if (N > V)\n return 1;\n if (V > N)\n return -1;\n if (C > k)\n return 1;\n if (k > C)\n return -1;\n }\n return R.length - A.length;\n }\n function Ui(u, p, g) {\n var h = $n(u, p, g), R = h[0], A = h[1], C = /[^0-9.]/gi;\n return R = Number(String(R).replace(C, \"\")), A = Number(String(A).replace(C, \"\")), Fr(R, A);\n }\n function Fr(u, p) {\n return u === p ? 0 : u > p ? 1 : -1;\n }\n function $n(u, p, g) {\n return [u.values[g], p.values[g]];\n }\n function qi(u) {\n return typeof u == \"number\" ? isNaN(u) || u === 1 / 0 || u === -1 / 0 ? \"\" : String(u) : typeof u == \"string\" ? u : \"\";\n }\n var Ua = /* @__PURE__ */ Object.freeze({\n __proto__: null,\n alphanumeric: ja,\n datetime: za,\n basic: Ha,\n string: Wa,\n number: Ui\n });\n f.resetSortBy = \"resetSortBy\", f.setSortBy = \"setSortBy\", f.toggleSortBy = \"toggleSortBy\", f.clearSortBy = \"clearSortBy\", P.sortType = \"alphanumeric\", P.sortDescFirst = !1;\n var Yi = function(p) {\n p.getSortByToggleProps = [qa], p.stateReducers.push(Ki), p.useInstance.push(Xi);\n };\n Yi.pluginName = \"useSortBy\";\n var qa = function(p, g) {\n var h = g.instance, R = g.column, A = h.isMultiSortEvent, C = A === void 0 ? function(k) {\n return k.shiftKey;\n } : A;\n return [p, {\n onClick: R.canSort ? function(k) {\n k.persist(), R.toggleSortBy(void 0, !h.disableMultiSort && C(k));\n } : void 0,\n style: {\n cursor: R.canSort ? \"pointer\" : void 0\n },\n title: R.canSort ? \"Toggle SortBy\" : void 0\n }];\n };\n function Ki(u, p, g, h) {\n if (p.type === f.init)\n return o({\n sortBy: []\n }, u);\n if (p.type === f.resetSortBy)\n return o({}, u, {\n sortBy: h.initialState.sortBy || []\n });\n if (p.type === f.clearSortBy) {\n var R = u.sortBy, A = R.filter(function(me) {\n return me.id !== p.columnId;\n });\n return o({}, u, {\n sortBy: A\n });\n }\n if (p.type === f.setSortBy) {\n var C = p.sortBy;\n return o({}, u, {\n sortBy: C\n });\n }\n if (p.type === f.toggleSortBy) {\n var k = p.columnId, N = p.desc, V = p.multi, H = h.allColumns, oe = h.disableMultiSort, K = h.disableSortRemove, te = h.disableMultiRemove, ae = h.maxMultiSortColCount, Y = ae === void 0 ? Number.MAX_SAFE_INTEGER : ae, ve = u.sortBy, Te = H.find(function(me) {\n return me.id === k;\n }), Be = Te.sortDescFirst, fe = ve.find(function(me) {\n return me.id === k;\n }), He = ve.findIndex(function(me) {\n return me.id === k;\n }), Xe = typeof N < \"u\" && N !== null, pe = [], ue;\n return !oe && V ? fe ? ue = \"toggle\" : ue = \"add\" : He !== ve.length - 1 || ve.length !== 1 ? ue = \"replace\" : fe ? ue = \"toggle\" : ue = \"replace\", ue === \"toggle\" && // Must be toggling\n !K && // If disableSortRemove, disable in general\n !Xe && // Must not be setting desc\n (!V || !te) && // If multi, don't allow if disableMultiRemove\n (fe && // Finally, detect if it should indeed be removed\n fe.desc && !Be || !fe.desc && Be) && (ue = \"remove\"), ue === \"replace\" ? pe = [{\n id: k,\n desc: Xe ? N : Be\n }] : ue === \"add\" ? (pe = [].concat(ve, [{\n id: k,\n desc: Xe ? N : Be\n }]), pe.splice(0, pe.length - Y)) : ue === \"toggle\" ? pe = ve.map(function(me) {\n return me.id === k ? o({}, me, {\n desc: Xe ? N : !fe.desc\n }) : me;\n }) : ue === \"remove\" && (pe = ve.filter(function(me) {\n return me.id !== k;\n })), o({}, u, {\n sortBy: pe\n });\n }\n }\n function Xi(u) {\n var p = u.data, g = u.rows, h = u.flatRows, R = u.allColumns, A = u.orderByFn, C = A === void 0 ? Br : A, k = u.sortTypes, N = u.manualSortBy, V = u.defaultCanSort, H = u.disableSortBy, oe = u.flatHeaders, K = u.state.sortBy, te = u.dispatch, ae = u.plugins, Y = u.getHooks, ve = u.autoResetSortBy, Te = ve === void 0 ? !0 : ve;\n j(ae, [\"useFilters\", \"useGlobalFilter\", \"useGroupBy\", \"usePivotColumns\"], \"useSortBy\");\n var Be = r.useCallback(function(Pe) {\n te({\n type: f.setSortBy,\n sortBy: Pe\n });\n }, [te]), fe = r.useCallback(function(Pe, qe, Ye) {\n te({\n type: f.toggleSortBy,\n columnId: Pe,\n desc: qe,\n multi: Ye\n });\n }, [te]), He = Q(u);\n oe.forEach(function(Pe) {\n var qe = Pe.accessor, Ye = Pe.canSort, lt = Pe.disableSortBy, be = Pe.id, At = qe ? Ce(lt === !0 ? !1 : void 0, H === !0 ? !1 : void 0, !0) : Ce(V, Ye, !1);\n Pe.canSort = At, Pe.canSort && (Pe.toggleSortBy = function(Le, _e) {\n return fe(Pe.id, Le, _e);\n }, Pe.clearSortBy = function() {\n te({\n type: f.clearSortBy,\n columnId: Pe.id\n });\n }), Pe.getSortByToggleProps = L(Y().getSortByToggleProps, {\n instance: He(),\n column: Pe\n });\n var Ke = K.find(function(Le) {\n return Le.id === be;\n });\n Pe.isSorted = !!Ke, Pe.sortedIndex = K.findIndex(function(Le) {\n return Le.id === be;\n }), Pe.isSortedDesc = Pe.isSorted ? Ke.desc : void 0;\n });\n var Xe = r.useMemo(function() {\n if (N || !K.length)\n return [g, h];\n var Pe = [], qe = K.filter(function(lt) {\n return R.find(function(be) {\n return be.id === lt.id;\n });\n }), Ye = function lt(be) {\n var At = C(\n be,\n qe.map(function(Ke) {\n var Le = R.find(function(Mt) {\n return Mt.id === Ke.id;\n });\n if (!Le)\n throw new Error(\"React-Table: Could not find a column with id: \" + Ke.id + \" while sorting\");\n var _e = Le.sortType, pt = De(_e) || (k || {})[_e] || Ua[_e];\n if (!pt)\n throw new Error(\"React-Table: Could not find a valid sortType of '\" + _e + \"' for column '\" + Ke.id + \"'.\");\n return function(Mt, _n) {\n return pt(Mt, _n, Ke.id, Ke.desc);\n };\n }),\n // Map the directions\n qe.map(function(Ke) {\n var Le = R.find(function(_e) {\n return _e.id === Ke.id;\n });\n return Le && Le.sortInverted ? Ke.desc : !Ke.desc;\n })\n );\n return At.forEach(function(Ke) {\n Pe.push(Ke), !(!Ke.subRows || Ke.subRows.length === 0) && (Ke.subRows = lt(Ke.subRows));\n }), At;\n };\n return [Ye(g), Pe];\n }, [N, K, g, h, R, C, k]), pe = Xe[0], ue = Xe[1], me = Q(Te);\n ce(function() {\n me() && te({\n type: f.resetSortBy\n });\n }, [N ? null : p]), Object.assign(u, {\n preSortedRows: g,\n preSortedFlatRows: h,\n sortedRows: pe,\n sortedFlatRows: ue,\n rows: pe,\n flatRows: ue,\n setSortBy: Be,\n toggleSortBy: fe\n });\n }\n function Br(u, p, g) {\n return [].concat(u).sort(function(h, R) {\n for (var A = 0; A < p.length; A += 1) {\n var C = p[A], k = g[A] === !1 || g[A] === \"desc\", N = C(h, R);\n if (N !== 0)\n return k ? -N : N;\n }\n return g[0] ? h.index - R.index : R.index - h.index;\n });\n }\n var Ya = \"usePagination\";\n f.resetPage = \"resetPage\", f.gotoPage = \"gotoPage\", f.setPageSize = \"setPageSize\";\n var Zi = function(p) {\n p.stateReducers.push(Ka), p.useInstance.push(Qi);\n };\n Zi.pluginName = Ya;\n function Ka(u, p, g, h) {\n if (p.type === f.init)\n return o({\n pageSize: 10,\n pageIndex: 0\n }, u);\n if (p.type === f.resetPage)\n return o({}, u, {\n pageIndex: h.initialState.pageIndex || 0\n });\n if (p.type === f.gotoPage) {\n var R = h.pageCount, A = h.page, C = B(p.pageIndex, u.pageIndex), k = !1;\n return C > u.pageIndex ? k = R === -1 ? A.length >= u.pageSize : C < R : C < u.pageIndex && (k = C > -1), k ? o({}, u, {\n pageIndex: C\n }) : u;\n }\n if (p.type === f.setPageSize) {\n var N = p.pageSize, V = u.pageSize * u.pageIndex, H = Math.floor(V / N);\n return o({}, u, {\n pageIndex: H,\n pageSize: N\n });\n }\n }\n function Qi(u) {\n var p = u.rows, g = u.autoResetPage, h = g === void 0 ? !0 : g, R = u.manualExpandedKey, A = R === void 0 ? \"expanded\" : R, C = u.plugins, k = u.pageCount, N = u.paginateExpandedRows, V = N === void 0 ? !0 : N, H = u.expandSubRows, oe = H === void 0 ? !0 : H, K = u.state, te = K.pageSize, ae = K.pageIndex, Y = K.expanded, ve = K.globalFilter, Te = K.filters, Be = K.groupBy, fe = K.sortBy, He = u.dispatch, Xe = u.data, pe = u.manualPagination;\n j(C, [\"useGlobalFilter\", \"useFilters\", \"useGroupBy\", \"useSortBy\", \"useExpanded\"], \"usePagination\");\n var ue = Q(h);\n ce(function() {\n ue() && He({\n type: f.resetPage\n });\n }, [He, pe ? null : Xe, ve, Te, Be, fe]);\n var me = pe ? k : Math.ceil(p.length / te), Pe = r.useMemo(function() {\n return me > 0 ? [].concat(new Array(me)).fill(null).map(function(_e, pt) {\n return pt;\n }) : [];\n }, [me]), qe = r.useMemo(function() {\n var _e;\n if (pe)\n _e = p;\n else {\n var pt = te * ae, Mt = pt + te;\n _e = p.slice(pt, Mt);\n }\n return V ? _e : Qe(_e, {\n manualExpandedKey: A,\n expanded: Y,\n expandSubRows: oe\n });\n }, [oe, Y, A, pe, ae, te, V, p]), Ye = ae > 0, lt = me === -1 ? qe.length >= te : ae < me - 1, be = r.useCallback(function(_e) {\n He({\n type: f.gotoPage,\n pageIndex: _e\n });\n }, [He]), At = r.useCallback(function() {\n return be(function(_e) {\n return _e - 1;\n });\n }, [be]), Ke = r.useCallback(function() {\n return be(function(_e) {\n return _e + 1;\n });\n }, [be]), Le = r.useCallback(function(_e) {\n He({\n type: f.setPageSize,\n pageSize: _e\n });\n }, [He]);\n Object.assign(u, {\n pageOptions: Pe,\n pageCount: me,\n page: qe,\n canPreviousPage: Ye,\n canNextPage: lt,\n gotoPage: be,\n previousPage: At,\n nextPage: Ke,\n setPageSize: Le\n });\n }\n f.resetPivot = \"resetPivot\", f.togglePivot = \"togglePivot\";\n var Ji = function(p) {\n p.getPivotToggleProps = [Xa], p.stateReducers.push(to), p.useInstanceAfterData.push(Za), p.allColumns.push(Qa), p.accessValue.push(Ja), p.materializedColumns.push(es), p.materializedColumnsDeps.push(Dr), p.visibleColumns.push(no), p.visibleColumnsDeps.push(ar), p.useInstance.push(Nr), p.prepareRow.push(Lr);\n };\n Ji.pluginName = \"usePivotColumns\";\n var eo = [], Xa = function(p, g) {\n var h = g.header;\n return [p, {\n onClick: h.canPivot ? function(R) {\n R.persist(), h.togglePivot();\n } : void 0,\n style: {\n cursor: h.canPivot ? \"pointer\" : void 0\n },\n title: \"Toggle Pivot\"\n }];\n };\n function to(u, p, g, h) {\n if (p.type === f.init)\n return o({\n pivotColumns: eo\n }, u);\n if (p.type === f.resetPivot)\n return o({}, u, {\n pivotColumns: h.initialState.pivotColumns || eo\n });\n if (p.type === f.togglePivot) {\n var R = p.columnId, A = p.value, C = typeof A < \"u\" ? A : !u.pivotColumns.includes(R);\n return C ? o({}, u, {\n pivotColumns: [].concat(u.pivotColumns, [R])\n }) : o({}, u, {\n pivotColumns: u.pivotColumns.filter(function(k) {\n return k !== R;\n })\n });\n }\n }\n function Za(u) {\n u.allColumns.forEach(function(p) {\n p.isPivotSource = u.state.pivotColumns.includes(p.id);\n });\n }\n function Qa(u, p) {\n var g = p.instance;\n return u.forEach(function(h) {\n h.isPivotSource = g.state.pivotColumns.includes(h.id), h.uniqueValues = /* @__PURE__ */ new Set();\n }), u;\n }\n function Ja(u, p) {\n var g = p.column;\n return g.uniqueValues && typeof u < \"u\" && g.uniqueValues.add(u), u;\n }\n function es(u, p) {\n var g = p.instance, h = g.allColumns, R = g.state;\n if (!R.pivotColumns.length || !R.groupBy || !R.groupBy.length)\n return u;\n var A = R.pivotColumns.map(function(V) {\n return h.find(function(H) {\n return H.id === V;\n });\n }).filter(Boolean), C = h.filter(function(V) {\n return !V.isPivotSource && !R.groupBy.includes(V.id) && !R.pivotColumns.includes(V.id);\n }), k = function V(H, oe, K) {\n H === void 0 && (H = 0), K === void 0 && (K = []);\n var te = A[H];\n if (!te)\n return C.map(function(Y) {\n return o({}, Y, {\n canPivot: !1,\n isPivoted: !0,\n parent: oe,\n depth: H,\n id: \"\" + (oe ? oe.id + \".\" + Y.id : Y.id),\n accessor: function(Te, Be, fe) {\n if (K.every(function(He) {\n return He(fe);\n }))\n return fe.values[Y.id];\n }\n });\n });\n var ae = Array.from(te.uniqueValues).sort();\n return ae.map(function(Y) {\n var ve = o({}, te, {\n Header: te.PivotHeader || typeof te.header == \"string\" ? te.Header + \": \" + Y : Y,\n isPivotGroup: !0,\n parent: oe,\n depth: H,\n id: oe ? oe.id + \".\" + te.id + \".\" + Y : te.id + \".\" + Y,\n pivotValue: Y\n });\n return ve.columns = V(H + 1, ve, [].concat(K, [function(Te) {\n return Te.values[te.id] === Y;\n }])), ve;\n });\n }, N = Ee(k());\n return [].concat(u, N);\n }\n function Dr(u, p) {\n var g = p.instance.state, h = g.pivotColumns, R = g.groupBy;\n return [].concat(u, [h, R]);\n }\n function no(u, p) {\n var g = p.instance.state;\n return u = u.filter(function(h) {\n return !h.isPivotSource;\n }), g.pivotColumns.length && g.groupBy && g.groupBy.length && (u = u.filter(function(h) {\n return h.isGrouped || h.isPivoted;\n })), u;\n }\n function ar(u, p) {\n var g = p.instance;\n return [].concat(u, [g.state.pivotColumns, g.state.groupBy]);\n }\n function Nr(u) {\n var p = u.columns, g = u.allColumns, h = u.flatHeaders, R = u.getHooks, A = u.plugins, C = u.dispatch, k = u.autoResetPivot, N = k === void 0 ? !0 : k, V = u.manaulPivot, H = u.disablePivot, oe = u.defaultCanPivot;\n j(A, [\"useGroupBy\"], \"usePivotColumns\");\n var K = Q(u);\n g.forEach(function(Y) {\n var ve = Y.accessor, Te = Y.defaultPivot, Be = Y.disablePivot;\n Y.canPivot = ve ? Ce(Y.canPivot, Be === !0 ? !1 : void 0, H === !0 ? !1 : void 0, !0) : Ce(Y.canPivot, Te, oe, !1), Y.canPivot && (Y.togglePivot = function() {\n return u.togglePivot(Y.id);\n }), Y.Aggregated = Y.Aggregated || Y.Cell;\n });\n var te = function(ve, Te) {\n C({\n type: f.togglePivot,\n columnId: ve,\n value: Te\n });\n };\n h.forEach(function(Y) {\n Y.getPivotToggleProps = L(R().getPivotToggleProps, {\n instance: K(),\n header: Y\n });\n });\n var ae = Q(N);\n ce(function() {\n ae() && C({\n type: f.resetPivot\n });\n }, [C, V ? null : p]), Object.assign(u, {\n togglePivot: te\n });\n }\n function Lr(u) {\n u.allCells.forEach(function(p) {\n p.isPivoted = p.column.isPivoted;\n });\n }\n var ro = \"useRowSelect\";\n f.resetSelectedRows = \"resetSelectedRows\", f.toggleAllRowsSelected = \"toggleAllRowsSelected\", f.toggleRowSelected = \"toggleRowSelected\", f.toggleAllPageRowsSelected = \"toggleAllPageRowsSelected\";\n var $r = function(p) {\n p.getToggleRowSelectedProps = [ts], p.getToggleAllRowsSelectedProps = [_r], p.getToggleAllPageRowsSelectedProps = [ns], p.stateReducers.push(rs), p.useInstance.push(is), p.prepareRow.push(io);\n };\n $r.pluginName = ro;\n var ts = function(p, g) {\n var h = g.instance, R = g.row, A = h.manualRowSelectedKey, C = A === void 0 ? \"isSelected\" : A, k = !1;\n return R.original && R.original[C] ? k = !0 : k = R.isSelected, [p, {\n onChange: function(V) {\n R.toggleRowSelected(V.target.checked);\n },\n style: {\n cursor: \"pointer\"\n },\n checked: k,\n title: \"Toggle Row Selected\",\n indeterminate: R.isSomeSelected\n }];\n }, _r = function(p, g) {\n var h = g.instance;\n return [p, {\n onChange: function(A) {\n h.toggleAllRowsSelected(A.target.checked);\n },\n style: {\n cursor: \"pointer\"\n },\n checked: h.isAllRowsSelected,\n title: \"Toggle All Rows Selected\",\n indeterminate: !!(!h.isAllRowsSelected && Object.keys(h.state.selectedRowIds).length)\n }];\n }, ns = function(p, g) {\n var h = g.instance;\n return [p, {\n onChange: function(A) {\n h.toggleAllPageRowsSelected(A.target.checked);\n },\n style: {\n cursor: \"pointer\"\n },\n checked: h.isAllPageRowsSelected,\n title: \"Toggle All Current Page Rows Selected\",\n indeterminate: !!(!h.isAllPageRowsSelected && h.page.some(function(R) {\n var A = R.id;\n return h.state.selectedRowIds[A];\n }))\n }];\n };\n function rs(u, p, g, h) {\n if (p.type === f.init)\n return o({\n selectedRowIds: {}\n }, u);\n if (p.type === f.resetSelectedRows)\n return o({}, u, {\n selectedRowIds: h.initialState.selectedRowIds || {}\n });\n if (p.type === f.toggleAllRowsSelected) {\n var R = p.value, A = h.isAllRowsSelected, C = h.rowsById, k = h.nonGroupedRowsById, N = k === void 0 ? C : k, V = typeof R < \"u\" ? R : !A, H = Object.assign({}, u.selectedRowIds);\n return V ? Object.keys(N).forEach(function(Ke) {\n H[Ke] = !0;\n }) : Object.keys(N).forEach(function(Ke) {\n delete H[Ke];\n }), o({}, u, {\n selectedRowIds: H\n });\n }\n if (p.type === f.toggleRowSelected) {\n var oe = p.id, K = p.value, te = h.rowsById, ae = h.selectSubRows, Y = ae === void 0 ? !0 : ae, ve = h.getSubRows, Te = u.selectedRowIds[oe], Be = typeof K < \"u\" ? K : !Te;\n if (Te === Be)\n return u;\n var fe = o({}, u.selectedRowIds), He = function Ke(Le) {\n var _e = te[Le];\n if (_e && (_e.isGrouped || (Be ? fe[Le] = !0 : delete fe[Le]), Y && ve(_e)))\n return ve(_e).forEach(function(pt) {\n return Ke(pt.id);\n });\n };\n return He(oe), o({}, u, {\n selectedRowIds: fe\n });\n }\n if (p.type === f.toggleAllPageRowsSelected) {\n var Xe = p.value, pe = h.page, ue = h.rowsById, me = h.selectSubRows, Pe = me === void 0 ? !0 : me, qe = h.isAllPageRowsSelected, Ye = h.getSubRows, lt = typeof Xe < \"u\" ? Xe : !qe, be = o({}, u.selectedRowIds), At = function Ke(Le) {\n var _e = ue[Le];\n if (_e.isGrouped || (lt ? be[Le] = !0 : delete be[Le]), Pe && Ye(_e))\n return Ye(_e).forEach(function(pt) {\n return Ke(pt.id);\n });\n };\n return pe.forEach(function(Ke) {\n return At(Ke.id);\n }), o({}, u, {\n selectedRowIds: be\n });\n }\n return u;\n }\n function is(u) {\n var p = u.data, g = u.rows, h = u.getHooks, R = u.plugins, A = u.rowsById, C = u.nonGroupedRowsById, k = C === void 0 ? A : C, N = u.autoResetSelectedRows, V = N === void 0 ? !0 : N, H = u.state.selectedRowIds, oe = u.selectSubRows, K = oe === void 0 ? !0 : oe, te = u.dispatch, ae = u.page, Y = u.getSubRows;\n j(R, [\"useFilters\", \"useGroupBy\", \"useSortBy\", \"useExpanded\", \"usePagination\"], \"useRowSelect\");\n var ve = r.useMemo(function() {\n var qe = [];\n return g.forEach(function(Ye) {\n var lt = K ? oo(Ye, H, Y) : !!H[Ye.id];\n Ye.isSelected = !!lt, Ye.isSomeSelected = lt === null, lt && qe.push(Ye);\n }), qe;\n }, [g, K, H, Y]), Te = !!(Object.keys(k).length && Object.keys(H).length), Be = Te;\n Te && Object.keys(k).some(function(qe) {\n return !H[qe];\n }) && (Te = !1), Te || ae && ae.length && ae.some(function(qe) {\n var Ye = qe.id;\n return !H[Ye];\n }) && (Be = !1);\n var fe = Q(V);\n ce(function() {\n fe() && te({\n type: f.resetSelectedRows\n });\n }, [te, p]);\n var He = r.useCallback(function(qe) {\n return te({\n type: f.toggleAllRowsSelected,\n value: qe\n });\n }, [te]), Xe = r.useCallback(function(qe) {\n return te({\n type: f.toggleAllPageRowsSelected,\n value: qe\n });\n }, [te]), pe = r.useCallback(function(qe, Ye) {\n return te({\n type: f.toggleRowSelected,\n id: qe,\n value: Ye\n });\n }, [te]), ue = Q(u), me = L(h().getToggleAllRowsSelectedProps, {\n instance: ue()\n }), Pe = L(h().getToggleAllPageRowsSelectedProps, {\n instance: ue()\n });\n Object.assign(u, {\n selectedFlatRows: ve,\n isAllRowsSelected: Te,\n isAllPageRowsSelected: Be,\n toggleRowSelected: pe,\n toggleAllRowsSelected: He,\n getToggleAllRowsSelectedProps: me,\n getToggleAllPageRowsSelectedProps: Pe,\n toggleAllPageRowsSelected: Xe\n });\n }\n function io(u, p) {\n var g = p.instance;\n u.toggleRowSelected = function(h) {\n return g.toggleRowSelected(u.id, h);\n }, u.getToggleRowSelectedProps = L(g.getHooks().getToggleRowSelectedProps, {\n instance: g,\n row: u\n });\n }\n function oo(u, p, g) {\n if (p[u.id])\n return !0;\n var h = g(u);\n if (h && h.length) {\n var R = !0, A = !1;\n return h.forEach(function(C) {\n A && !R || (oo(C, p, g) ? A = !0 : R = !1);\n }), R ? !0 : A ? null : !1;\n }\n return !1;\n }\n var ao = function(p) {\n return {};\n }, so = function(p) {\n return {};\n };\n f.setRowState = \"setRowState\", f.setCellState = \"setCellState\", f.resetRowState = \"resetRowState\";\n var lo = function(p) {\n p.stateReducers.push(Vr), p.useInstance.push(s), p.prepareRow.push(v);\n };\n lo.pluginName = \"useRowState\";\n function Vr(u, p, g, h) {\n var R = h.initialRowStateAccessor, A = R === void 0 ? ao : R, C = h.initialCellStateAccessor, k = C === void 0 ? so : C, N = h.rowsById;\n if (p.type === f.init)\n return o({\n rowState: {}\n }, u);\n if (p.type === f.resetRowState)\n return o({}, u, {\n rowState: h.initialState.rowState || {}\n });\n if (p.type === f.setRowState) {\n var V, H = p.rowId, oe = p.value, K = typeof u.rowState[H] < \"u\" ? u.rowState[H] : A(N[H]);\n return o({}, u, {\n rowState: o({}, u.rowState, (V = {}, V[H] = B(oe, K), V))\n });\n }\n if (p.type === f.setCellState) {\n var te, ae, Y, ve, Te, Be = p.rowId, fe = p.columnId, He = p.value, Xe = typeof u.rowState[Be] < \"u\" ? u.rowState[Be] : A(N[Be]), pe = typeof (Xe == null || (te = Xe.cellState) == null ? void 0 : te[fe]) < \"u\" ? Xe.cellState[fe] : k((ae = N[Be]) == null || (Y = ae.cells) == null ? void 0 : Y.find(function(ue) {\n return ue.column.id === fe;\n }));\n return o({}, u, {\n rowState: o({}, u.rowState, (Te = {}, Te[Be] = o({}, Xe, {\n cellState: o({}, Xe.cellState || {}, (ve = {}, ve[fe] = B(He, pe), ve))\n }), Te))\n });\n }\n }\n function s(u) {\n var p = u.autoResetRowState, g = p === void 0 ? !0 : p, h = u.data, R = u.dispatch, A = r.useCallback(function(N, V) {\n return R({\n type: f.setRowState,\n rowId: N,\n value: V\n });\n }, [R]), C = r.useCallback(function(N, V, H) {\n return R({\n type: f.setCellState,\n rowId: N,\n columnId: V,\n value: H\n });\n }, [R]), k = Q(g);\n ce(function() {\n k() && R({\n type: f.resetRowState\n });\n }, [h]), Object.assign(u, {\n setRowState: A,\n setCellState: C\n });\n }\n function v(u, p) {\n var g = p.instance, h = g.initialRowStateAccessor, R = h === void 0 ? ao : h, A = g.initialCellStateAccessor, C = A === void 0 ? so : A, k = g.state.rowState;\n u && (u.state = typeof k[u.id] < \"u\" ? k[u.id] : R(u), u.setState = function(N) {\n return g.setRowState(u.id, N);\n }, u.cells.forEach(function(N) {\n u.state.cellState || (u.state.cellState = {}), N.state = typeof u.state.cellState[N.column.id] < \"u\" ? u.state.cellState[N.column.id] : C(N), N.setState = function(V) {\n return g.setCellState(u.id, N.column.id, V);\n };\n }));\n }\n f.resetColumnOrder = \"resetColumnOrder\", f.setColumnOrder = \"setColumnOrder\";\n var y = function(p) {\n p.stateReducers.push(w), p.visibleColumnsDeps.push(function(g, h) {\n var R = h.instance;\n return [].concat(g, [R.state.columnOrder]);\n }), p.visibleColumns.push(E), p.useInstance.push(S);\n };\n y.pluginName = \"useColumnOrder\";\n function w(u, p, g, h) {\n if (p.type === f.init)\n return o({\n columnOrder: []\n }, u);\n if (p.type === f.resetColumnOrder)\n return o({}, u, {\n columnOrder: h.initialState.columnOrder || []\n });\n if (p.type === f.setColumnOrder)\n return o({}, u, {\n columnOrder: B(p.columnOrder, u.columnOrder)\n });\n }\n function E(u, p) {\n var g = p.instance.state.columnOrder;\n if (!g || !g.length)\n return u;\n for (var h = [].concat(g), R = [].concat(u), A = [], C = function() {\n var N = h.shift(), V = R.findIndex(function(H) {\n return H.id === N;\n });\n V > -1 && A.push(R.splice(V, 1)[0]);\n }; R.length && h.length; )\n C();\n return [].concat(A, R);\n }\n function S(u) {\n var p = u.dispatch;\n u.setColumnOrder = r.useCallback(function(g) {\n return p({\n type: f.setColumnOrder,\n columnOrder: g\n });\n }, [p]);\n }\n P.canResize = !0, f.columnStartResizing = \"columnStartResizing\", f.columnResizing = \"columnResizing\", f.columnDoneResizing = \"columnDoneResizing\", f.resetResize = \"resetResize\";\n var O = function(p) {\n p.getResizerProps = [_], p.getHeaderProps.push({\n style: {\n position: \"relative\"\n }\n }), p.stateReducers.push(G), p.useInstance.push(ne), p.useInstanceBeforeDimensions.push(z);\n }, _ = function(p, g) {\n var h = g.instance, R = g.header, A = h.dispatch, C = function(N, V) {\n var H = !1;\n if (N.type === \"touchstart\") {\n if (N.touches && N.touches.length > 1)\n return;\n H = !0;\n }\n var oe = J(V), K = oe.map(function(pe) {\n return [pe.id, pe.totalWidth];\n }), te = H ? Math.round(N.touches[0].clientX) : N.clientX, ae, Y, ve = function() {\n window.cancelAnimationFrame(ae), ae = null, A({\n type: f.columnDoneResizing\n });\n }, Te = function() {\n window.cancelAnimationFrame(ae), ae = null, A({\n type: f.columnResizing,\n clientX: Y\n });\n }, Be = function(ue) {\n Y = ue, ae || (ae = window.requestAnimationFrame(Te));\n }, fe = {\n mouse: {\n moveEvent: \"mousemove\",\n moveHandler: function(ue) {\n return Be(ue.clientX);\n },\n upEvent: \"mouseup\",\n upHandler: function(ue) {\n document.removeEventListener(\"mousemove\", fe.mouse.moveHandler), document.removeEventListener(\"mouseup\", fe.mouse.upHandler), ve();\n }\n },\n touch: {\n moveEvent: \"touchmove\",\n moveHandler: function(ue) {\n return ue.cancelable && (ue.preventDefault(), ue.stopPropagation()), Be(ue.touches[0].clientX), !1;\n },\n upEvent: \"touchend\",\n upHandler: function(ue) {\n document.removeEventListener(fe.touch.moveEvent, fe.touch.moveHandler), document.removeEventListener(fe.touch.upEvent, fe.touch.moveHandler), ve();\n }\n }\n }, He = H ? fe.touch : fe.mouse, Xe = et() ? {\n passive: !1\n } : !1;\n document.addEventListener(He.moveEvent, He.moveHandler, Xe), document.addEventListener(He.upEvent, He.upHandler, Xe), A({\n type: f.columnStartResizing,\n columnId: V.id,\n columnWidth: V.totalWidth,\n headerIdWidths: K,\n clientX: te\n });\n };\n return [p, {\n onMouseDown: function(N) {\n return N.persist() || C(N, R);\n },\n onTouchStart: function(N) {\n return N.persist() || C(N, R);\n },\n style: {\n cursor: \"col-resize\"\n },\n draggable: !1,\n role: \"separator\"\n }];\n };\n O.pluginName = \"useResizeColumns\";\n function G(u, p) {\n if (p.type === f.init)\n return o({\n columnResizing: {\n columnWidths: {}\n }\n }, u);\n if (p.type === f.resetResize)\n return o({}, u, {\n columnResizing: {\n columnWidths: {}\n }\n });\n if (p.type === f.columnStartResizing) {\n var g = p.clientX, h = p.columnId, R = p.columnWidth, A = p.headerIdWidths;\n return o({}, u, {\n columnResizing: o({}, u.columnResizing, {\n startX: g,\n headerIdWidths: A,\n columnWidth: R,\n isResizingColumn: h\n })\n });\n }\n if (p.type === f.columnResizing) {\n var C = p.clientX, k = u.columnResizing, N = k.startX, V = k.columnWidth, H = k.headerIdWidths, oe = H === void 0 ? [] : H, K = C - N, te = K / V, ae = {};\n return oe.forEach(function(Y) {\n var ve = Y[0], Te = Y[1];\n ae[ve] = Math.max(Te + Te * te, 0);\n }), o({}, u, {\n columnResizing: o({}, u.columnResizing, {\n columnWidths: o({}, u.columnResizing.columnWidths, {}, ae)\n })\n });\n }\n if (p.type === f.columnDoneResizing)\n return o({}, u, {\n columnResizing: o({}, u.columnResizing, {\n startX: null,\n isResizingColumn: null\n })\n });\n }\n var z = function(p) {\n var g = p.flatHeaders, h = p.disableResizing, R = p.getHooks, A = p.state.columnResizing, C = Q(p);\n g.forEach(function(k) {\n var N = Ce(k.disableResizing === !0 ? !1 : void 0, h === !0 ? !1 : void 0, !0);\n k.canResize = N, k.width = A.columnWidths[k.id] || k.originalWidth || k.width, k.isResizing = A.isResizingColumn === k.id, N && (k.getResizerProps = L(R().getResizerProps, {\n instance: C(),\n header: k\n }));\n });\n };\n function ne(u) {\n var p = u.plugins, g = u.dispatch, h = u.autoResetResize, R = h === void 0 ? !0 : h, A = u.columns;\n j(p, [\"useAbsoluteLayout\"], \"useResizeColumns\");\n var C = Q(R);\n ce(function() {\n C() && g({\n type: f.resetResize\n });\n }, [A]);\n var k = r.useCallback(function() {\n return g({\n type: f.resetResize\n });\n }, [g]);\n Object.assign(u, {\n resetResizing: k\n });\n }\n function J(u) {\n var p = [], g = function h(R) {\n R.columns && R.columns.length && R.columns.map(h), p.push(R);\n };\n return g(u), p;\n }\n var ee = {\n position: \"absolute\",\n top: 0\n }, W = function(p) {\n p.getTableBodyProps.push(Z), p.getRowProps.push(Z), p.getHeaderGroupProps.push(Z), p.getFooterGroupProps.push(Z), p.getHeaderProps.push(function(g, h) {\n var R = h.column;\n return [g, {\n style: o({}, ee, {\n left: R.totalLeft + \"px\",\n width: R.totalWidth + \"px\"\n })\n }];\n }), p.getCellProps.push(function(g, h) {\n var R = h.cell;\n return [g, {\n style: o({}, ee, {\n left: R.column.totalLeft + \"px\",\n width: R.column.totalWidth + \"px\"\n })\n }];\n }), p.getFooterProps.push(function(g, h) {\n var R = h.column;\n return [g, {\n style: o({}, ee, {\n left: R.totalLeft + \"px\",\n width: R.totalWidth + \"px\"\n })\n }];\n });\n };\n W.pluginName = \"useAbsoluteLayout\";\n var Z = function(p, g) {\n var h = g.instance;\n return [p, {\n style: {\n position: \"relative\",\n width: h.totalColumnsWidth + \"px\"\n }\n }];\n }, le = {\n display: \"inline-block\",\n boxSizing: \"border-box\"\n }, de = function(p, g) {\n var h = g.instance;\n return [p, {\n style: {\n display: \"flex\",\n width: h.totalColumnsWidth + \"px\"\n }\n }];\n }, Re = function(p) {\n p.getRowProps.push(de), p.getHeaderGroupProps.push(de), p.getFooterGroupProps.push(de), p.getHeaderProps.push(function(g, h) {\n var R = h.column;\n return [g, {\n style: o({}, le, {\n width: R.totalWidth + \"px\"\n })\n }];\n }), p.getCellProps.push(function(g, h) {\n var R = h.cell;\n return [g, {\n style: o({}, le, {\n width: R.column.totalWidth + \"px\"\n })\n }];\n }), p.getFooterProps.push(function(g, h) {\n var R = h.column;\n return [g, {\n style: o({}, le, {\n width: R.totalWidth + \"px\"\n })\n }];\n });\n };\n Re.pluginName = \"useBlockLayout\";\n function Ue(u) {\n u.getTableProps.push(Se), u.getRowProps.push(re), u.getHeaderGroupProps.push(re), u.getFooterGroupProps.push(re), u.getHeaderProps.push(je), u.getCellProps.push(ge), u.getFooterProps.push($e);\n }\n Ue.pluginName = \"useFlexLayout\";\n var Se = function(p, g) {\n var h = g.instance;\n return [p, {\n style: {\n minWidth: h.totalColumnsMinWidth + \"px\"\n }\n }];\n }, re = function(p, g) {\n var h = g.instance;\n return [p, {\n style: {\n display: \"flex\",\n flex: \"1 0 auto\",\n minWidth: h.totalColumnsMinWidth + \"px\"\n }\n }];\n }, je = function(p, g) {\n var h = g.column;\n return [p, {\n style: {\n boxSizing: \"border-box\",\n flex: h.totalFlexWidth ? h.totalFlexWidth + \" 0 auto\" : void 0,\n minWidth: h.totalMinWidth + \"px\",\n width: h.totalWidth + \"px\"\n }\n }];\n }, ge = function(p, g) {\n var h = g.cell;\n return [p, {\n style: {\n boxSizing: \"border-box\",\n flex: h.column.totalFlexWidth + \" 0 auto\",\n minWidth: h.column.totalMinWidth + \"px\",\n width: h.column.totalWidth + \"px\"\n }\n }];\n }, $e = function(p, g) {\n var h = g.column;\n return [p, {\n style: {\n boxSizing: \"border-box\",\n flex: h.totalFlexWidth ? h.totalFlexWidth + \" 0 auto\" : void 0,\n minWidth: h.totalMinWidth + \"px\",\n width: h.totalWidth + \"px\"\n }\n }];\n };\n f.columnStartResizing = \"columnStartResizing\", f.columnResizing = \"columnResizing\", f.columnDoneResizing = \"columnDoneResizing\", f.resetResize = \"resetResize\";\n function tt(u) {\n u.stateReducers.push(Ge), u.getTableProps.push(ke), u.getHeaderProps.push(Ne), u.getRowProps.push(at);\n }\n tt.pluginName = \"useGridLayout\";\n var ke = function(p, g) {\n var h = g.instance, R = h.visibleColumns.map(function(A) {\n var C;\n return h.state.gridLayout.columnWidths[A.id] ? h.state.gridLayout.columnWidths[A.id] + \"px\" : (C = h.state.columnResizing) != null && C.isResizingColumn ? h.state.gridLayout.startWidths[A.id] + \"px\" : typeof A.width == \"number\" ? A.width + \"px\" : A.width;\n });\n return [p, {\n style: {\n display: \"grid\",\n gridTemplateColumns: R.join(\" \")\n }\n }];\n }, Ne = function(p, g) {\n var h = g.column;\n return [p, {\n id: \"header-cell-\" + h.id,\n style: {\n position: \"sticky\",\n //enables a scroll wrapper to be placed around the table and have sticky headers\n gridColumn: \"span \" + h.totalVisibleHeaderCount\n }\n }];\n }, at = function(p, g) {\n var h = g.row;\n return h.isExpanded ? [p, {\n style: {\n gridColumn: \"1 / \" + (h.cells.length + 1)\n }\n }] : [p, {}];\n };\n function Ge(u, p, g, h) {\n if (p.type === f.init)\n return o({\n gridLayout: {\n columnWidths: {}\n }\n }, u);\n if (p.type === f.resetResize)\n return o({}, u, {\n gridLayout: {\n columnWidths: {}\n }\n });\n if (p.type === f.columnStartResizing) {\n var R = p.columnId, A = p.headerIdWidths, C = rt(R);\n if (C !== void 0) {\n var k = h.visibleColumns.reduce(function(pe, ue) {\n var me;\n return o({}, pe, (me = {}, me[ue.id] = rt(ue.id), me));\n }, {}), N = h.visibleColumns.reduce(function(pe, ue) {\n var me;\n return o({}, pe, (me = {}, me[ue.id] = ue.minWidth, me));\n }, {}), V = h.visibleColumns.reduce(function(pe, ue) {\n var me;\n return o({}, pe, (me = {}, me[ue.id] = ue.maxWidth, me));\n }, {}), H = A.map(function(pe) {\n var ue = pe[0];\n return [ue, rt(ue)];\n });\n return o({}, u, {\n gridLayout: o({}, u.gridLayout, {\n startWidths: k,\n minWidths: N,\n maxWidths: V,\n headerIdGridWidths: H,\n columnWidth: C\n })\n });\n } else\n return u;\n }\n if (p.type === f.columnResizing) {\n var oe = p.clientX, K = u.columnResizing.startX, te = u.gridLayout, ae = te.columnWidth, Y = te.minWidths, ve = te.maxWidths, Te = te.headerIdGridWidths, Be = Te === void 0 ? [] : Te, fe = oe - K, He = fe / ae, Xe = {};\n return Be.forEach(function(pe) {\n var ue = pe[0], me = pe[1];\n Xe[ue] = Math.min(Math.max(Y[ue], me + me * He), ve[ue]);\n }), o({}, u, {\n gridLayout: o({}, u.gridLayout, {\n columnWidths: o({}, u.gridLayout.columnWidths, {}, Xe)\n })\n });\n }\n if (p.type === f.columnDoneResizing)\n return o({}, u, {\n gridLayout: o({}, u.gridLayout, {\n startWidths: {},\n minWidths: {},\n maxWidths: {}\n })\n });\n }\n function rt(u) {\n var p, g = (p = document.getElementById(\"header-cell-\" + u)) == null ? void 0 : p.offsetWidth;\n if (g !== void 0)\n return g;\n }\n n._UNSTABLE_usePivotColumns = Ji, n.actions = f, n.defaultColumn = P, n.defaultGroupByFn = Hi, n.defaultOrderByFn = Br, n.defaultRenderer = b, n.emptyRenderer = x, n.ensurePluginOrder = j, n.flexRender = st, n.functionalUpdate = B, n.loopHooks = F, n.makePropGetter = L, n.makeRenderer = Ve, n.reduceHooks = M, n.safeUseLayoutEffect = we, n.useAbsoluteLayout = W, n.useAsyncDebounce = se, n.useBlockLayout = Re, n.useColumnOrder = y, n.useExpanded = Tr, n.useFilters = Ni, n.useFlexLayout = Ue, n.useGetLatest = Q, n.useGlobalFilter = Li, n.useGridLayout = tt, n.useGroupBy = Mr, n.useMountedLayoutEffect = ce, n.usePagination = Zi, n.useResizeColumns = O, n.useRowSelect = $r, n.useRowState = lo, n.useSortBy = Yi, n.useTable = Si, Object.defineProperty(n, \"__esModule\", { value: !0 });\n });\n }(ko, ko.exports)), ko.exports;\n}\nprocess.env.NODE_ENV === \"production\" ? pl.exports = h2() : pl.exports = v2();\nvar Is = pl.exports;\nfunction g2({\n columns: e,\n data: t,\n isSortable: n,\n isFilterable: r\n}) {\n const i = [];\n r && i.push(Is.useFilters), n && i.push(Is.useSortBy);\n const a = Is.useTable(\n {\n columns: e,\n data: t\n },\n ...i\n ), {\n getTableProps: o,\n getTableBodyProps: l,\n headers: d,\n rows: c,\n prepareRow: m,\n state: f\n } = a, { filters: b } = f, x = d, { preFilteredRows: P, setAllFilters: I } = a;\n return {\n filters: b,\n getTableBodyProps: l,\n getTableProps: o,\n headers: x,\n preFilteredRows: P,\n prepareRow: m,\n rows: c,\n setFilters: I\n };\n}\nvar Do = /* @__PURE__ */ ((e) => (e.ASC = \"ascending\", e.DESC = \"descending\", e.WAIT = \"waiting to sort\", e.DISABLED = \"disabled\", e))(Do || {});\nfunction y2(e, t, n) {\n return e ? t ? n ? \"descending\" : \"ascending\" : \"waiting to sort\" : \"disabled\";\n}\nfunction b2({ sort: e, testId: t }) {\n let n = \"sorting-icon\";\n switch (e) {\n case Do.ASC:\n n += \" is-ascending\";\n break;\n case Do.DESC:\n n += \" is-descending\";\n break;\n case Do.WAIT:\n n += \" is-waiting\";\n break;\n }\n return /* @__PURE__ */ Oe(\"div\", { className: n, \"data-testid\": t, children: [\n /* @__PURE__ */ T(mt, { icon: xg, className: \"up-icon\" }),\n /* @__PURE__ */ T(mt, { icon: Tg, className: \"down-icon\" })\n ] });\n}\nfunction w2({\n column: e,\n isSortable: t,\n alignment: n = \"left\",\n testId: r\n}) {\n const a = t ? e.getSortByToggleProps() : e.getHeaderProps();\n t && (a[\"aria-sort\"] = e.isSorted ? e.isSortedDesc ? \"descending\" : \"ascending\" : \"none\", a.role = \"button\");\n const o = y2(\n e.canSort,\n e.isSorted,\n e.isSortedDesc\n ), l = r ? `${r}-sort-icon` : void 0;\n return /* @__PURE__ */ Jo(\n \"th\",\n {\n ...a,\n key: e.id,\n role: \"columnheader\",\n \"data-testid\": r\n },\n /* @__PURE__ */ Oe(\"div\", { className: `header-cell justify-${n}`, children: [\n /* @__PURE__ */ T(\"div\", { children: e.render(\"Header\") }),\n t && e.canSort && /* @__PURE__ */ T(\n b2,\n {\n sort: o,\n testId: l\n },\n `sort-icon-${e.id}`\n )\n ] })\n );\n}\nfunction x2({\n headers: e,\n sticky: t,\n isSortable: n,\n testId: r\n}) {\n let i = \"\";\n t && (i += \"is-sticky\");\n const a = r ? `${r}-headers` : void 0, o = r ? C2(r) : (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n (l) => {\n }\n );\n return /* @__PURE__ */ T(\"thead\", { className: i, \"data-testid\": a, children: /* @__PURE__ */ T(\"tr\", { children: e.map((l) => /* @__PURE__ */ T(\n w2,\n {\n column: l,\n isSortable: n,\n alignment: l.alignment,\n testId: o(l.id)\n },\n l.id\n )) }) });\n}\nfunction C2(e) {\n return (t) => `${e}-${t}-header`;\n}\nfunction R2({ preparedRow: e, testId: t }) {\n const n = t ? `${t}-${e.id}-row` : void 0;\n return /* @__PURE__ */ T(\"tr\", { ...e.getRowProps(), \"data-testid\": n, children: e.cells.map((r) => {\n const i = r.column, a = t ? `${t}-${e.id}-${r.column.id}` : void 0;\n return /* @__PURE__ */ Jo(\n \"td\",\n {\n className: `${i.alignment ?? \"left\"}`,\n ...r.getCellProps(),\n key: `${e.id}-${r.column.id}`,\n \"data-testid\": a\n },\n r.value instanceof Date ? r.value.toString() : r.render(\"Cell\")\n );\n }) });\n}\nfunction S2({\n getTableProps: e,\n headers: t,\n headerRenderer: n,\n getTableBodyProps: r,\n rows: i,\n rowRenderer: a,\n isSortable: o,\n emptyMessage: l,\n testId: d\n}) {\n const c = i.length === 0, m = i.map((x) => a(x, d)), f = d ? `${d}-table` : void 0, b = d ? `${d}-body` : void 0;\n return /* @__PURE__ */ Oe(\"table\", { ...e(), \"data-testid\": f, children: [\n n(t, o, d),\n /* @__PURE__ */ T(\"tbody\", { ...r(), \"data-testid\": b, children: c ? l : m })\n ] });\n}\nfunction P2({\n hasFilters: e = !1,\n columnSpan: t,\n emptyResultsRenderer: n,\n testId: r\n}) {\n const i = r ? `${r}-empty-message` : void 0, a = r ? `${r}-empty-filtered-message` : void 0;\n let o = null;\n return n && (o = n(e)), /* @__PURE__ */ T(\n \"tr\",\n {\n \"data-testid\": e ? a : i,\n children: /* @__PURE__ */ T(\"td\", { colSpan: t, children: o })\n }\n );\n}\nfunction T2(e, t) {\n return (n) => {\n const r = A2(e, n);\n t(r);\n };\n}\nfunction A2(e, t) {\n const n = { ...e }, r = n[t.id], i = !t.value || t.value.length === 0, a = r && !Array.isArray(r) || !Array.isArray(t.value);\n if (i)\n return delete n[t.id], n;\n if (!r || a)\n return n[t.id] = t.value, n;\n const o = E2(\n r,\n t.value\n );\n return n[t.id] = o, n;\n}\nfunction E2(e, t) {\n const n = e, r = [...n];\n return t.forEach((i) => {\n const a = n.indexOf(i);\n a === -1 ? r.push(i) : r.splice(a, 1);\n }), r;\n}\nfunction O2({\n handleClearFilter: e,\n title: t,\n filter: n,\n testId: r\n}) {\n function i() {\n e(n);\n }\n const a = r ? `${r}-${n.id}` : void 0, o = r ? `${a}-clearFilter` : void 0, l = Array.isArray(n.value) ? n.value.join(\", \") : n.value;\n return /* @__PURE__ */ Oe(\"div\", { className: \"cui-data-grid-filter-pill\", \"data-testid\": a, children: [\n /* @__PURE__ */ Oe(\"div\", { className: \"cui-data-grid-filter-pill-label\", children: [\n /* @__PURE__ */ T(\"span\", { className: \"title\", children: t }),\n /* @__PURE__ */ T(\"span\", { className: \"value\", children: l })\n ] }),\n /* @__PURE__ */ T(\n Gt,\n {\n icon: /* @__PURE__ */ T(mt, { icon: Fl }),\n onClick: i,\n variant: \"text\",\n testId: o\n }\n )\n ] });\n}\nfunction k2({\n columns: e,\n currentFilters: t,\n handleClearAllFilters: n,\n handleClearFilter: r,\n testId: i\n}) {\n const a = Ot(() => ((c) => c.reduce((m, f) => {\n const { filterLabel: b, id: x } = f;\n return b ? { ...m, [x]: b } : m;\n }, {}))(e), [e]), o = i ? `${i}-filter-pill` : void 0, l = i ? `${i}-clear-all-filters` : void 0;\n return /* @__PURE__ */ Oe(\"div\", { className: \"cui-data-grid-filter-pills\", \"data-testid\": i, children: [\n t.map((d) => {\n const { id: c } = d, m = a[c];\n return /* @__PURE__ */ T(\n O2,\n {\n title: m,\n filter: d,\n handleClearFilter: r,\n testId: o\n },\n c\n );\n }),\n /* @__PURE__ */ T(\n Gt,\n {\n onClick: n,\n testId: l,\n text: \"Clear Filters\",\n variant: \"text\",\n color: \"primary\"\n }\n )\n ] });\n}\nfunction ml(e) {\n return e.id || e.filterLabel;\n}\nconst cf = (e, t) => {\n const n = {};\n return e.filter((r) => r.filterRenderer).map((r) => ml(r)).forEach((r) => {\n n[r] = [];\n }), t != null && t.length && t.forEach(({ id: r, value: i }) => {\n n[r] = i;\n }), n;\n}, I2 = (e, t) => {\n const n = e.map((i) => i[t]);\n return [...new Set(n)].map((i) => ({ id: t, value: i }));\n};\nfunction M2({\n applyChanges: e,\n columns: t,\n currentFilters: n,\n preFilteredRows: r,\n testId: i\n}) {\n const [a, o] = jt(!1), [l, d] = jt(\n () => cf(t, n)\n ), c = () => o(!0), m = () => o(!1), f = Vt(() => {\n e(l), m();\n }, [l, e]), b = Vt(() => {\n const se = cf(t);\n d(se), e(se), m();\n }, [e, t]), x = Vt(\n ({ id: se }) => {\n const Ve = {\n ...l,\n [se]: []\n };\n d(Ve), e(Ve);\n },\n [e, l]\n ), P = T2(\n l,\n d\n ), I = (se) => l[se], D = (se) => {\n const Ve = ml(se), st = I2(r, Ve), it = {\n currentValue: I(Ve),\n id: Ve,\n label: se.filterLabel,\n options: st,\n setFilterValue: P,\n defaultOpen: se.filterIsOpen,\n testId: i ? `${i}-filter-${ml(se)}` : void 0\n };\n return se.filterRenderer(it);\n }, L = t.filter((se) => se.filterRenderer).map(\n (se) => vn.cloneElement(D(se), {\n key: `${se.accessor}-filter-control`\n })\n ), M = i ? `${i}-pills` : void 0, F = i ? `${i}-open-drawer-button` : void 0, j = i ? `${i}-drawer` : void 0, B = i ? `${i}-drawer-contents` : void 0, Q = i ? `${i}-clear-filters` : void 0, we = i ? `${i}-apply-filters` : void 0;\n return /* @__PURE__ */ Oe(\"div\", { className: \"cui-data-grid-filters\", \"data-testid\": i, children: [\n (() => n.length ? /* @__PURE__ */ T(\n k2,\n {\n columns: t,\n handleClearFilter: x,\n handleClearAllFilters: b,\n currentFilters: n,\n testId: M\n }\n ) : null)(),\n /* @__PURE__ */ T(\n Gt,\n {\n color: \"primary\",\n text: \"Filter\",\n onClick: c,\n icon: /* @__PURE__ */ T(mt, { icon: Cg }),\n testId: F\n }\n ),\n /* @__PURE__ */ Oe(\n Bl,\n {\n isOpen: a,\n onRequestClose: m,\n title: \"Filters\",\n testId: j,\n children: [\n /* @__PURE__ */ T(od, { testId: B, children: L }),\n /* @__PURE__ */ Oe(id, { children: [\n /* @__PURE__ */ T(\n Gt,\n {\n text: \"Clear Filters\",\n onClick: b,\n testId: Q\n }\n ),\n /* @__PURE__ */ T(\n Gt,\n {\n color: \"primary\",\n text: \"Apply Filters\",\n onClick: f,\n testId: we\n }\n )\n ] })\n ]\n }\n )\n ] });\n}\nfunction dx({\n columns: e,\n data: t,\n useStickyHeaders: n,\n isSortable: r,\n isFilterable: i,\n showResultCount: a,\n resultCountLabel: o,\n headerRenderer: l,\n rowRenderer: d,\n emptyResultsRenderer: c,\n testId: m\n}) {\n const f = e, {\n filters: b,\n getTableBodyProps: x,\n getTableProps: P,\n headers: I,\n preFilteredRows: D,\n prepareRow: L,\n rows: M,\n setFilters: F\n } = g2({\n columns: f,\n data: t,\n isSortable: r,\n isFilterable: i || !1\n });\n M.forEach((X) => {\n L(X);\n });\n const j = (b == null ? void 0 : b.length) > 0, B = M.length === 0;\n let Q = null;\n const we = f.length;\n (o || \"\").length === 0 && (o = \"Result\", t.length !== 1 && (o += \"s\")), B && (Q = P2({\n testId: m,\n hasFilters: j,\n columnSpan: we,\n emptyResultsRenderer: c\n }));\n const ce = {\n getTableProps: P,\n getTableBodyProps: x,\n rows: M,\n headers: I,\n emptyMessage: Q,\n headerRenderer: l ?? ((X, ie, Ee) => /* @__PURE__ */ T(\n x2,\n {\n headers: X,\n sticky: n,\n isSortable: ie,\n testId: Ee\n }\n )),\n rowRenderer: d ?? F2,\n isSortable: r,\n testId: m\n }, se = Vt(\n (X) => {\n const ie = Object.keys(X).map((Ee) => ({\n id: Ee,\n value: X[Ee]\n }));\n F(ie);\n },\n [F]\n ), Ve = m ? `${m}-grid-filters` : void 0, st = m ? `${m}-grid` : void 0, it = m ? `${m}-top-result-count` : void 0, dt = Ot(() => D ? D.map((ie) => ie.values) : [], [D]);\n return /* @__PURE__ */ Oe(\"div\", { className: \"cui-data-grid\", \"data-testid\": m, children: [\n /* @__PURE__ */ Oe(\"div\", { className: \"cui-data-grid-top-row\", children: [\n a && /* @__PURE__ */ T(\n \"div\",\n {\n className: \"cui-data-grid-top-result-count\",\n \"data-testid\": `${it}`,\n children: /* @__PURE__ */ Oe(\"div\", { children: [\n t.length.toLocaleString(),\n \" \",\n o\n ] })\n }\n ),\n i && /* @__PURE__ */ T(\n M2,\n {\n applyChanges: se,\n columns: f,\n currentFilters: b,\n testId: Ve,\n preFilteredRows: dt\n }\n )\n ] }),\n /* @__PURE__ */ T(S2, { ...ce, testId: st })\n ] });\n}\nfunction F2(e) {\n return /* @__PURE__ */ T(R2, { preparedRow: e });\n}\nfunction px({\n currentValue: e,\n id: t,\n label: n,\n options: r,\n setFilterValue: i,\n defaultOpen: a = !1,\n testId: o\n}) {\n const [l, d] = jt(\"\"), c = `Search for ${n}`, m = r.filter(({ value: I }) => {\n const D = new RegExp(l.toLowerCase()), L = (I == null ? void 0 : I.toString()) || \"\";\n return D.test(L.toLowerCase());\n }), f = e, b = o ? `${o}-accordion` : void 0, x = o ? `${o}-check-box` : void 0, P = o ? `${o}-search-box` : void 0;\n return /* @__PURE__ */ T(\n \"div\",\n {\n className: \"cui-data-grid-filter-input\",\n \"data-testid\": o,\n children: /* @__PURE__ */ Oe(\n cv,\n {\n label: n,\n testId: b,\n defaultOpen: a,\n children: [\n /* @__PURE__ */ T(\n Fp,\n {\n className: \"text-filter-input\",\n isLabelHidden: !0,\n label: \"\",\n onChange: d,\n placeholder: c,\n testId: P,\n value: l\n }\n ),\n /* @__PURE__ */ T(\"div\", { className: \"option-list\", children: m.map(({ value: I }) => {\n const D = I;\n return /* @__PURE__ */ T(\"span\", { children: /* @__PURE__ */ T(\n Xw,\n {\n isChecked: f.includes(\n D\n ),\n label: D,\n onChange: () => i({\n id: t,\n value: [D]\n }),\n testId: x\n }\n ) }, D);\n }) })\n ]\n }\n )\n },\n t\n );\n}\nconst lu = Kt(!1);\nfunction mx({\n children: e,\n onToggleClick: t,\n expandedWidth: n,\n collaspedWidth: r,\n isExpanded: i,\n className: a,\n testId: o\n}) {\n const l = [\"cui-side-bar\"];\n a && l.push(a), i && l.push(\"expanded\");\n function d(b) {\n b.preventDefault(), t();\n }\n const c = {\n ...n && {\n \"--expanded-width\": n\n },\n ...r && {\n \"--collasped-width\": r\n }\n }, m = o ? `${o}-toggle-button` : void 0, f = l.join(\" \");\n return /* @__PURE__ */ T(lu.Provider, { value: i, children: /* @__PURE__ */ Oe(\"div\", { className: f, style: c, \"data-testid\": o, children: [\n /* @__PURE__ */ T(\n \"button\",\n {\n className: \"toggle-button\",\n onClick: d,\n \"aria-label\": i ? \"Open Sidebar\" : \"Close Sidebar\",\n \"data-testid\": m,\n children: /* @__PURE__ */ T(\n mt,\n {\n title: \"Toggle Drawer\",\n className: \"fa-xl\",\n icon: yg\n }\n )\n }\n ),\n e\n ] }) });\n}\nfunction hx({ children: e, className: t, testId: n }) {\n const r = [\"cui-nav-menu-comp\"];\n t && r.push(t);\n const i = wt(lu);\n i && r.push(\"expanded\");\n const a = r.join(\" \");\n return /* @__PURE__ */ T(\n \"nav\",\n {\n className: a,\n \"data-testid\": i ? `${n}-expanded` : n,\n children: e\n }\n );\n}\nfunction vx({ label: e, icon: t, children: n, testId: r }) {\n const i = [\"cui-nav-group\"], [a, o] = jt(!1), l = wt(lu);\n a && l && i.push(\"expanded\"), t && i.push(\"has-icon\");\n function d(I) {\n I.preventDefault(), o(!a);\n }\n const c = a ? my : xy, m = r && a ? `${r}-chevron-up` : `${r}-chevron-down`, f = r ? `${r}-toggle-button` : void 0, b = r ? `${r}-icon` : void 0, x = r ? `${r}-label` : void 0, P = r ? m : void 0;\n return /* @__PURE__ */ Oe(\"div\", { className: i.join(\" \"), \"data-testid\": r, children: [\n /* @__PURE__ */ Oe(\n \"button\",\n {\n className: \"cui-nav-group-toggle\",\n \"aria-label\": e,\n \"aria-expanded\": a,\n onClick: d,\n \"data-testid\": f,\n children: [\n /* @__PURE__ */ Oe(\"div\", { className: \"cui-nav-group-icon-title\", children: [\n t && /* @__PURE__ */ T(\"span\", { className: \"icon\", \"data-testid\": b, children: t }),\n /* @__PURE__ */ T(\"span\", { className: \"label\", \"data-testid\": x, children: e })\n ] }),\n l && /* @__PURE__ */ T(\n \"span\",\n {\n className: \"chevron-container\",\n \"data-testid\": P,\n children: /* @__PURE__ */ T(\n mt,\n {\n className: \"chevron-icon\",\n icon: c\n }\n )\n }\n )\n ]\n }\n ),\n n\n ] });\n}\nfunction gx({ children: e, testId: t }) {\n return /* @__PURE__ */ T(\"ul\", { className: [\"cui-nav-items\"].join(\" \"), \"data-testid\": t, children: e });\n}\nfunction yx(e) {\n const { label: t, icon: n } = e, r = [\"cui-nav-item\"];\n n && r.push(\"has-icon\");\n const i = e.testId ? `${e.testId}-icon` : void 0, a = e.testId ? `${e.testId}-nav-item-anchor` : void 0, o = e.testId ? `${e.testId}-label` : void 0;\n return /* @__PURE__ */ T(\n \"li\",\n {\n className: r.join(\" \"),\n \"aria-label\": t,\n \"data-testid\": e.testId,\n children: e.children ? e.children : B2(\n e,\n n ? /* @__PURE__ */ Oe(Qo, { children: [\n /* @__PURE__ */ T(\"span\", { className: \"icon\", \"data-testid\": i, children: n }),\n /* @__PURE__ */ T(\"span\", { className: \"label\", \"data-testid\": o, children: t })\n ] }) : /* @__PURE__ */ T(\"span\", { className: \"label\", \"data-testid\": o, children: t }),\n a\n )\n }\n );\n}\nfunction B2(e, t, n) {\n if (D2(e) && ff(e))\n throw new Error(\"NavItem: Use either href or component, but not both.\");\n return ff(e) ? Jo(\n \"a\",\n {\n href: e.href,\n \"data-testid\": n\n },\n t\n ) : pf(e.component, {}, t);\n}\nfunction ff(e) {\n return e.href !== void 0;\n}\nfunction D2(e) {\n return e.component !== void 0;\n}\nfunction bx({ label: e, children: t, className: n, testId: r }) {\n const i = Nt(null);\n let a = \"cui-tablist\";\n n && (a += ` ${n}`);\n function o(l) {\n const { code: d } = l;\n let c = 0, m = !1, f = !1;\n d === \"ArrowRight\" ? c += 1 : d === \"ArrowLeft\" ? c -= 1 : d === \"Home\" ? m = !0 : d === \"End\" && (f = !0), (c !== 0 || m || f) && i.current && N2(c, m, f, i.current);\n }\n return /* @__PURE__ */ T(\n \"div\",\n {\n className: a,\n ref: i,\n role: \"tablist\",\n \"aria-orientation\": \"horizontal\",\n \"aria-label\": e,\n onKeyDown: o,\n tabIndex: 0,\n \"data-testid\": r,\n children: t\n }\n );\n}\nfunction N2(e, t, n, r) {\n const i = Array.from(\n r.querySelectorAll(\"[role='tab']\")\n );\n if (t)\n i[0].focus();\n else if (n)\n i[i.length - 1].focus();\n else {\n let a = 0;\n for (let l = 0; l < i.length; l++)\n if (i[l] === document.activeElement) {\n a = l;\n break;\n }\n let o = a + e;\n o >= i.length ? o = 0 : o < 0 && (o = i.length - 1), i[o].focus();\n }\n}\nconst uu = Kt({\n id: \"\",\n value: \"\",\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onChange: () => {\n }\n});\nfunction Dp(e, t) {\n const n = L2(t);\n return {\n tabId: $2(e, n),\n tabPanelId: _2(e, n)\n };\n}\nfunction L2(e) {\n return e.replace(/\\W/g, \"_\");\n}\nfunction $2(e, t) {\n return `${e}_tab_${t}`;\n}\nfunction _2(e, t) {\n return `${e}_tabpanel_${t}`;\n}\nfunction wx({ icon: e, label: t, badge: n, value: r, testId: i }) {\n const {\n id: a,\n onChange: o,\n value: l\n } = wt(uu), d = Nt(null), c = Nt(), m = l === r, { tabId: f, tabPanelId: b } = Ot(\n () => Dp(a, r),\n [a, r]\n );\n Wt(() => {\n typeof c.current < \"u\" && d.current && c.current === !1 && m && d.current.focus(), c.current = m;\n }, [m]);\n function x(P) {\n P.preventDefault(), o(r);\n }\n return /* @__PURE__ */ Oe(\n \"button\",\n {\n ref: d,\n role: \"tab\",\n id: f,\n \"aria-controls\": b,\n \"aria-selected\": m ? \"true\" : \"false\",\n tabIndex: m ? 0 : -1,\n onClick: x,\n value: r,\n \"data-testid\": i,\n children: [\n e && /* @__PURE__ */ T(\"span\", { className: \"icon\", children: e }),\n /* @__PURE__ */ T(\"span\", { className: \"label\", children: t }),\n n && /* @__PURE__ */ T(Mg, { ...n })\n ]\n }\n );\n}\nfunction xx({ children: e, className: t, tab: n, testId: r }) {\n const { id: i, value: a } = wt(uu), o = a !== n, { tabId: l, tabPanelId: d } = Ot(\n () => Dp(i, n),\n [i, n]\n );\n return /* @__PURE__ */ T(\n \"div\",\n {\n className: t,\n role: \"tabpanel\",\n id: d,\n \"aria-labelledby\": l,\n tabIndex: 0,\n hidden: o,\n \"data-testid\": r,\n children: e\n }\n );\n}\nfunction Cx({ className: e, children: t, testId: n }) {\n let r = \"cui-tabpanels\";\n return e && (r += ` ${e}`), /* @__PURE__ */ T(\"div\", { className: r, \"data-testid\": n, children: t });\n}\nfunction Rx({\n id: e,\n children: t,\n value: n,\n onChange: r\n}) {\n return /* @__PURE__ */ T(\n uu.Provider,\n {\n value: {\n id: e,\n value: n,\n onChange: r\n },\n children: t\n }\n );\n}\nfunction V2({\n isOpen: e,\n notifications: t,\n onRequestDismissAll: n,\n onRequestDismissNotification: r,\n onRequestClose: i,\n testId: a\n}) {\n return /* @__PURE__ */ Oe(\n Bl,\n {\n className: \"cui-notification-drawer\",\n title: \"Notifications\",\n isOpen: e,\n onRequestClose: i,\n \"data-testid\": a,\n overlayClassName: \"notification-drawer-overlay\",\n children: [\n /* @__PURE__ */ T(od, { children: t.map(({ id: l, severity: d, message: c, createdAt: m }) => /* @__PURE__ */ T(\n Kw,\n {\n id: l,\n message: c,\n severity: d,\n onDismiss: r,\n createdAt: m,\n testId: `${a}-${l}`\n },\n l\n )) }),\n /* @__PURE__ */ T(id, { className: \"actions\", children: /* @__PURE__ */ T(\n Gt,\n {\n onClick: n,\n text: \"CLEAR NOTIFICATIONS\",\n className: \"drawer-action-button\",\n variant: \"outline\"\n }\n ) })\n ]\n }\n );\n}\nconst Np = Kt({\n /**\n * List of all notifications.\n */\n notifications: [],\n /**\n * Numeral amount of notifications.\n */\n numberOfNotifications: 0,\n /**\n * Requests to open notification drawer.\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onRequestOpenDrawer: () => {\n },\n /**\n * Requests to close notification drawer.\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onRequestCloseDrawer: () => {\n },\n /**\n * Requests to create a toast and add it to state with specified options.\n */\n onRequestCreate: () => \"\",\n /**\n * Requests to dismiss a notification based on its id\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onRequestDismiss: () => {\n },\n /**\n * Requests to dismiss all notifications at once.\n */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onRequestDismissAll: () => {\n }\n});\nfunction Sx({\n children: e,\n maxNumOfNotifications: t = 30\n}) {\n const [n, r] = jt(\n []\n ), [i, a] = jt(!1);\n function o() {\n a(!1);\n }\n function l() {\n a(!0);\n }\n function d(f) {\n const b = Uw(f), x = [...n, b];\n x.length > t && x.shift(), r(x);\n }\n function c(f) {\n const b = qw(n, f);\n r(b);\n }\n function m() {\n r([]), a(!1);\n }\n return /* @__PURE__ */ Oe(\n Np.Provider,\n {\n value: {\n notifications: n,\n numberOfNotifications: n.length,\n onRequestOpenDrawer: l,\n onRequestCloseDrawer: o,\n onRequestCreate: d,\n onRequestDismiss: c,\n onRequestDismissAll: m\n },\n children: [\n e,\n /* @__PURE__ */ T(\n V2,\n {\n isOpen: i,\n notifications: n,\n onRequestClose: o,\n onRequestDismissAll: m,\n onRequestDismissNotification: c\n }\n )\n ]\n }\n );\n}\nfunction Px() {\n const {\n notifications: e,\n numberOfNotifications: t,\n onRequestOpenDrawer: n,\n onRequestCloseDrawer: r,\n onRequestCreate: i,\n onRequestDismiss: a,\n onRequestDismissAll: o\n } = wt(Np);\n return {\n notifications: e,\n numberOfNotifications: t,\n handleCloseDrawer: r,\n handleOpenDrawer: n,\n createNotification: i,\n dismissNotification: a,\n dismissAllNotifications: o\n };\n}\nfunction Tx(e) {\n const [t, n] = jt(!1);\n return Wt(() => {\n function r() {\n const { matches: a } = window.matchMedia(e);\n n(a);\n }\n const i = window.matchMedia(e);\n return r(), i.addEventListener(\"change\", r), () => {\n i.removeEventListener(\"change\", r);\n };\n }, [e]), t;\n}\nexport {\n cv as Accordion,\n Ig as ActionButtonVariant,\n zg as Alert,\n sx as AlertBanner,\n su as AlertBannerContext,\n ox as AlertBannerProvider,\n fx as AppBar,\n Gg as Avatar,\n Mg as Badge,\n Gt as Button,\n ex as CPChemLogo,\n W2 as Card,\n Xw as Checkbox,\n q2 as Container,\n dx as DataGrid,\n Up as Divider,\n Bl as Drawer,\n id as DrawerActions,\n od as DrawerContent,\n Q2 as EnvironmentIndicator,\n U2 as Grid,\n w2 as HeaderCell,\n Ll as Menu,\n Eg as Modal,\n X2 as ModalActions,\n K2 as ModalContent,\n Z2 as ModalFooter,\n Y2 as ModalHeader,\n vx as NavGroup,\n yx as NavItem,\n gx as NavItems,\n hx as NavMenu,\n Kw as Notification,\n V2 as NotificationDrawer,\n Sx as NotificationProvider,\n Np as NotificationsContext,\n lx as Pagination,\n J2 as Pill,\n Fp as SearchBox,\n Qw as Select,\n mx as SideBar,\n b2 as SortingIcon,\n tx as Spinner,\n Zw as Switch,\n wx as Tab,\n bx as TabList,\n xx as TabPanel,\n Cx as TabPanels,\n Rx as Tabs,\n uu as TabsContext,\n ix as TextField,\n px as TextFilterInput,\n ld as ThemeContext,\n nx as ThemeProvider,\n Ww as Toast,\n Bp as ToastContext,\n s2 as ToastEngine,\n ux as ToastProvider,\n t2 as ToggleTheme,\n dy as Tooltip,\n ax as useAlertBanner,\n Tx as useMediaQuery,\n Px as useNotifications,\n Jw as usePagination,\n ny as useTheme,\n cx as useToast\n};\n","/* eslint-disable @typescript-eslint/no-empty-function */\nimport React from \"react\";\n\nexport interface AppContextProps {\n applicationName: string;\n setApplicationName: (applicationName: string) => void;\n\n pageTitle: string | null;\n setPageTitle: (pageTitle: string | null) => void;\n\n applicationIcon: string | null;\n setApplicationIcon: (iconSrc: string) => void;\n}\n\nexport const AppContext = React.createContext({\n applicationName: \"\",\n setApplicationName: () => {},\n pageTitle: null,\n setPageTitle: () => {},\n applicationIcon: null,\n setApplicationIcon: () => {}\n});\n","import { useContext } from \"react\";\nimport { AppContext, AppContextProps } from \"./context\";\n\nexport function useApp(): AppContextProps {\n return useContext(AppContext);\n}\n","import React, { useEffect, useState } from \"react\";\nimport { AppContext } from \"./context\";\n\nexport interface AppProviderProps {\n children: React.ReactNode;\n applicationName: string;\n}\n\nexport function AppProvider({\n applicationName,\n children\n}: AppProviderProps): JSX.Element {\n const [currentApplicationName, setApplicationName] =\n useState(applicationName);\n const [pageTitle, setPageTitle] = useState(null);\n const [applicationIcon, setApplicationIcon] = useState(null);\n\n useEffect(() => {\n const parts = [];\n if (pageTitle) {\n parts.push(pageTitle);\n }\n if (currentApplicationName) {\n parts.push(currentApplicationName);\n }\n const docTitle = parts.join(\" - \");\n document.title = docTitle;\n }, [currentApplicationName, pageTitle]);\n\n return (\n \n {children}\n \n );\n}\n","/**\n * @remix-run/router v1.15.3\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Types and Constants\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Actions represent the type of change to a location value.\n */\nvar Action;\n(function (Action) {\n /**\n * A POP indicates a change to an arbitrary index in the history stack, such\n * as a back or forward navigation. It does not describe the direction of the\n * navigation, only that the current index changed.\n *\n * Note: This is the default action for newly created history objects.\n */\n Action[\"Pop\"] = \"POP\";\n /**\n * A PUSH indicates a new entry being added to the history stack, such as when\n * a link is clicked and a new page loads. When this happens, all subsequent\n * entries in the stack are lost.\n */\n Action[\"Push\"] = \"PUSH\";\n /**\n * A REPLACE indicates the entry at the current index in the history stack\n * being replaced by a new one.\n */\n Action[\"Replace\"] = \"REPLACE\";\n})(Action || (Action = {}));\nconst PopStateEventType = \"popstate\";\n/**\n * Memory history stores the current location in memory. It is designed for use\n * in stateful non-browser environments like tests and React Native.\n */\nfunction createMemoryHistory(options) {\n if (options === void 0) {\n options = {};\n }\n let {\n initialEntries = [\"/\"],\n initialIndex,\n v5Compat = false\n } = options;\n let entries; // Declare so we can access from createMemoryLocation\n entries = initialEntries.map((entry, index) => createMemoryLocation(entry, typeof entry === \"string\" ? null : entry.state, index === 0 ? \"default\" : undefined));\n let index = clampIndex(initialIndex == null ? entries.length - 1 : initialIndex);\n let action = Action.Pop;\n let listener = null;\n function clampIndex(n) {\n return Math.min(Math.max(n, 0), entries.length - 1);\n }\n function getCurrentLocation() {\n return entries[index];\n }\n function createMemoryLocation(to, state, key) {\n if (state === void 0) {\n state = null;\n }\n let location = createLocation(entries ? getCurrentLocation().pathname : \"/\", to, state, key);\n warning(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in memory history: \" + JSON.stringify(to));\n return location;\n }\n function createHref(to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n let history = {\n get index() {\n return index;\n },\n get action() {\n return action;\n },\n get location() {\n return getCurrentLocation();\n },\n createHref,\n createURL(to) {\n return new URL(createHref(to), \"http://localhost\");\n },\n encodeLocation(to) {\n let path = typeof to === \"string\" ? parsePath(to) : to;\n return {\n pathname: path.pathname || \"\",\n search: path.search || \"\",\n hash: path.hash || \"\"\n };\n },\n push(to, state) {\n action = Action.Push;\n let nextLocation = createMemoryLocation(to, state);\n index += 1;\n entries.splice(index, entries.length, nextLocation);\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 1\n });\n }\n },\n replace(to, state) {\n action = Action.Replace;\n let nextLocation = createMemoryLocation(to, state);\n entries[index] = nextLocation;\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 0\n });\n }\n },\n go(delta) {\n action = Action.Pop;\n let nextIndex = clampIndex(index + delta);\n let nextLocation = entries[nextIndex];\n index = nextIndex;\n if (listener) {\n listener({\n action,\n location: nextLocation,\n delta\n });\n }\n },\n listen(fn) {\n listener = fn;\n return () => {\n listener = null;\n };\n }\n };\n return history;\n}\n/**\n * Browser history stores the location in regular URLs. This is the standard for\n * most web apps, but it requires some configuration on the server to ensure you\n * serve the same app at multiple URLs.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory\n */\nfunction createBrowserHistory(options) {\n if (options === void 0) {\n options = {};\n }\n function createBrowserLocation(window, globalHistory) {\n let {\n pathname,\n search,\n hash\n } = window.location;\n return createLocation(\"\", {\n pathname,\n search,\n hash\n },\n // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n function createBrowserHref(window, to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);\n}\n/**\n * Hash history stores the location in window.location.hash. This makes it ideal\n * for situations where you don't want to send the location to the server for\n * some reason, either because you do cannot configure it or the URL space is\n * reserved for something else.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory\n */\nfunction createHashHistory(options) {\n if (options === void 0) {\n options = {};\n }\n function createHashLocation(window, globalHistory) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = parsePath(window.location.hash.substr(1));\n // Hash URL should always have a leading / just like window.location.pathname\n // does, so if an app ends up at a route like /#something then we add a\n // leading slash so all of our path-matching behaves the same as if it would\n // in a browser router. This is particularly important when there exists a\n // root splat route () since that matches internally against\n // \"/*\" and we'd expect /#something to 404 in a hash router app.\n if (!pathname.startsWith(\"/\") && !pathname.startsWith(\".\")) {\n pathname = \"/\" + pathname;\n }\n return createLocation(\"\", {\n pathname,\n search,\n hash\n },\n // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n function createHashHref(window, to) {\n let base = window.document.querySelector(\"base\");\n let href = \"\";\n if (base && base.getAttribute(\"href\")) {\n let url = window.location.href;\n let hashIndex = url.indexOf(\"#\");\n href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n }\n return href + \"#\" + (typeof to === \"string\" ? to : createPath(to));\n }\n function validateHashLocation(location, to) {\n warning(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in hash history.push(\" + JSON.stringify(to) + \")\");\n }\n return getUrlBasedHistory(createHashLocation, createHashHref, validateHashLocation, options);\n}\nfunction invariant(value, message) {\n if (value === false || value === null || typeof value === \"undefined\") {\n throw new Error(message);\n }\n}\nfunction warning(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n try {\n // Welcome to debugging history!\n //\n // This error is thrown as a convenience, so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message);\n // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\nfunction createKey() {\n return Math.random().toString(36).substr(2, 8);\n}\n/**\n * For browser-based histories, we combine the state and key into an object\n */\nfunction getHistoryState(location, index) {\n return {\n usr: location.state,\n key: location.key,\n idx: index\n };\n}\n/**\n * Creates a Location object with a unique key from the given Path\n */\nfunction createLocation(current, to, state, key) {\n if (state === void 0) {\n state = null;\n }\n let location = _extends({\n pathname: typeof current === \"string\" ? current : current.pathname,\n search: \"\",\n hash: \"\"\n }, typeof to === \"string\" ? parsePath(to) : to, {\n state,\n // TODO: This could be cleaned up. push/replace should probably just take\n // full Locations now and avoid the need to run through this flow at all\n // But that's a pretty big refactor to the current test suite so going to\n // keep as is for the time being and just let any incoming keys take precedence\n key: to && to.key || key || createKey()\n });\n return location;\n}\n/**\n * Creates a string URL path from the given pathname, search, and hash components.\n */\nfunction createPath(_ref) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = _ref;\n if (search && search !== \"?\") pathname += search.charAt(0) === \"?\" ? search : \"?\" + search;\n if (hash && hash !== \"#\") pathname += hash.charAt(0) === \"#\" ? hash : \"#\" + hash;\n return pathname;\n}\n/**\n * Parses a string URL path into its separate pathname, search, and hash components.\n */\nfunction parsePath(path) {\n let parsedPath = {};\n if (path) {\n let hashIndex = path.indexOf(\"#\");\n if (hashIndex >= 0) {\n parsedPath.hash = path.substr(hashIndex);\n path = path.substr(0, hashIndex);\n }\n let searchIndex = path.indexOf(\"?\");\n if (searchIndex >= 0) {\n parsedPath.search = path.substr(searchIndex);\n path = path.substr(0, searchIndex);\n }\n if (path) {\n parsedPath.pathname = path;\n }\n }\n return parsedPath;\n}\nfunction getUrlBasedHistory(getLocation, createHref, validateLocation, options) {\n if (options === void 0) {\n options = {};\n }\n let {\n window = document.defaultView,\n v5Compat = false\n } = options;\n let globalHistory = window.history;\n let action = Action.Pop;\n let listener = null;\n let index = getIndex();\n // Index should only be null when we initialize. If not, it's because the\n // user called history.pushState or history.replaceState directly, in which\n // case we should log a warning as it will result in bugs.\n if (index == null) {\n index = 0;\n globalHistory.replaceState(_extends({}, globalHistory.state, {\n idx: index\n }), \"\");\n }\n function getIndex() {\n let state = globalHistory.state || {\n idx: null\n };\n return state.idx;\n }\n function handlePop() {\n action = Action.Pop;\n let nextIndex = getIndex();\n let delta = nextIndex == null ? null : nextIndex - index;\n index = nextIndex;\n if (listener) {\n listener({\n action,\n location: history.location,\n delta\n });\n }\n }\n function push(to, state) {\n action = Action.Push;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex() + 1;\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n // try...catch because iOS limits us to 100 pushState calls :/\n try {\n globalHistory.pushState(historyState, \"\", url);\n } catch (error) {\n // If the exception is because `state` can't be serialized, let that throw\n // outwards just like a replace call would so the dev knows the cause\n // https://html.spec.whatwg.org/multipage/nav-history-apis.html#shared-history-push/replace-state-steps\n // https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal\n if (error instanceof DOMException && error.name === \"DataCloneError\") {\n throw error;\n }\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 1\n });\n }\n }\n function replace(to, state) {\n action = Action.Replace;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex();\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n globalHistory.replaceState(historyState, \"\", url);\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 0\n });\n }\n }\n function createURL(to) {\n // window.location.origin is \"null\" (the literal string value) in Firefox\n // under certain conditions, notably when serving from a local HTML file\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=878297\n let base = window.location.origin !== \"null\" ? window.location.origin : window.location.href;\n let href = typeof to === \"string\" ? to : createPath(to);\n // Treating this as a full URL will strip any trailing spaces so we need to\n // pre-encode them since they might be part of a matching splat param from\n // an ancestor route\n href = href.replace(/ $/, \"%20\");\n invariant(base, \"No window.location.(origin|href) available to create URL for href: \" + href);\n return new URL(href, base);\n }\n let history = {\n get action() {\n return action;\n },\n get location() {\n return getLocation(window, globalHistory);\n },\n listen(fn) {\n if (listener) {\n throw new Error(\"A history only accepts one active listener\");\n }\n window.addEventListener(PopStateEventType, handlePop);\n listener = fn;\n return () => {\n window.removeEventListener(PopStateEventType, handlePop);\n listener = null;\n };\n },\n createHref(to) {\n return createHref(window, to);\n },\n createURL,\n encodeLocation(to) {\n // Encode a Location the same way window.location would\n let url = createURL(to);\n return {\n pathname: url.pathname,\n search: url.search,\n hash: url.hash\n };\n },\n push,\n replace,\n go(n) {\n return globalHistory.go(n);\n }\n };\n return history;\n}\n//#endregion\n\nvar ResultType;\n(function (ResultType) {\n ResultType[\"data\"] = \"data\";\n ResultType[\"deferred\"] = \"deferred\";\n ResultType[\"redirect\"] = \"redirect\";\n ResultType[\"error\"] = \"error\";\n})(ResultType || (ResultType = {}));\nconst immutableRouteKeys = new Set([\"lazy\", \"caseSensitive\", \"path\", \"id\", \"index\", \"children\"]);\nfunction isIndexRoute(route) {\n return route.index === true;\n}\n// Walk the route tree generating unique IDs where necessary, so we are working\n// solely with AgnosticDataRouteObject's within the Router\nfunction convertRoutesToDataRoutes(routes, mapRouteProperties, parentPath, manifest) {\n if (parentPath === void 0) {\n parentPath = [];\n }\n if (manifest === void 0) {\n manifest = {};\n }\n return routes.map((route, index) => {\n let treePath = [...parentPath, index];\n let id = typeof route.id === \"string\" ? route.id : treePath.join(\"-\");\n invariant(route.index !== true || !route.children, \"Cannot specify children on an index route\");\n invariant(!manifest[id], \"Found a route id collision on id \\\"\" + id + \"\\\". Route \" + \"id's must be globally unique within Data Router usages\");\n if (isIndexRoute(route)) {\n let indexRoute = _extends({}, route, mapRouteProperties(route), {\n id\n });\n manifest[id] = indexRoute;\n return indexRoute;\n } else {\n let pathOrLayoutRoute = _extends({}, route, mapRouteProperties(route), {\n id,\n children: undefined\n });\n manifest[id] = pathOrLayoutRoute;\n if (route.children) {\n pathOrLayoutRoute.children = convertRoutesToDataRoutes(route.children, mapRouteProperties, treePath, manifest);\n }\n return pathOrLayoutRoute;\n }\n });\n}\n/**\n * Matches the given routes to a location and returns the match data.\n *\n * @see https://reactrouter.com/utils/match-routes\n */\nfunction matchRoutes(routes, locationArg, basename) {\n if (basename === void 0) {\n basename = \"/\";\n }\n let location = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n let pathname = stripBasename(location.pathname || \"/\", basename);\n if (pathname == null) {\n return null;\n }\n let branches = flattenRoutes(routes);\n rankRouteBranches(branches);\n let matches = null;\n for (let i = 0; matches == null && i < branches.length; ++i) {\n // Incoming pathnames are generally encoded from either window.location\n // or from router.navigate, but we want to match against the unencoded\n // paths in the route definitions. Memory router locations won't be\n // encoded here but there also shouldn't be anything to decode so this\n // should be a safe operation. This avoids needing matchRoutes to be\n // history-aware.\n let decoded = decodePath(pathname);\n matches = matchRouteBranch(branches[i], decoded);\n }\n return matches;\n}\nfunction convertRouteMatchToUiMatch(match, loaderData) {\n let {\n route,\n pathname,\n params\n } = match;\n return {\n id: route.id,\n pathname,\n params,\n data: loaderData[route.id],\n handle: route.handle\n };\n}\nfunction flattenRoutes(routes, branches, parentsMeta, parentPath) {\n if (branches === void 0) {\n branches = [];\n }\n if (parentsMeta === void 0) {\n parentsMeta = [];\n }\n if (parentPath === void 0) {\n parentPath = \"\";\n }\n let flattenRoute = (route, index, relativePath) => {\n let meta = {\n relativePath: relativePath === undefined ? route.path || \"\" : relativePath,\n caseSensitive: route.caseSensitive === true,\n childrenIndex: index,\n route\n };\n if (meta.relativePath.startsWith(\"/\")) {\n invariant(meta.relativePath.startsWith(parentPath), \"Absolute route path \\\"\" + meta.relativePath + \"\\\" nested under path \" + (\"\\\"\" + parentPath + \"\\\" is not valid. An absolute child route path \") + \"must start with the combined path of all its parent routes.\");\n meta.relativePath = meta.relativePath.slice(parentPath.length);\n }\n let path = joinPaths([parentPath, meta.relativePath]);\n let routesMeta = parentsMeta.concat(meta);\n // Add the children before adding this route to the array, so we traverse the\n // route tree depth-first and child routes appear before their parents in\n // the \"flattened\" version.\n if (route.children && route.children.length > 0) {\n invariant(\n // Our types know better, but runtime JS may not!\n // @ts-expect-error\n route.index !== true, \"Index routes must not have child routes. Please remove \" + (\"all child routes from route path \\\"\" + path + \"\\\".\"));\n flattenRoutes(route.children, branches, routesMeta, path);\n }\n // Routes without a path shouldn't ever match by themselves unless they are\n // index routes, so don't add them to the list of possible branches.\n if (route.path == null && !route.index) {\n return;\n }\n branches.push({\n path,\n score: computeScore(path, route.index),\n routesMeta\n });\n };\n routes.forEach((route, index) => {\n var _route$path;\n // coarse-grain check for optional params\n if (route.path === \"\" || !((_route$path = route.path) != null && _route$path.includes(\"?\"))) {\n flattenRoute(route, index);\n } else {\n for (let exploded of explodeOptionalSegments(route.path)) {\n flattenRoute(route, index, exploded);\n }\n }\n });\n return branches;\n}\n/**\n * Computes all combinations of optional path segments for a given path,\n * excluding combinations that are ambiguous and of lower priority.\n *\n * For example, `/one/:two?/three/:four?/:five?` explodes to:\n * - `/one/three`\n * - `/one/:two/three`\n * - `/one/three/:four`\n * - `/one/three/:five`\n * - `/one/:two/three/:four`\n * - `/one/:two/three/:five`\n * - `/one/three/:four/:five`\n * - `/one/:two/three/:four/:five`\n */\nfunction explodeOptionalSegments(path) {\n let segments = path.split(\"/\");\n if (segments.length === 0) return [];\n let [first, ...rest] = segments;\n // Optional path segments are denoted by a trailing `?`\n let isOptional = first.endsWith(\"?\");\n // Compute the corresponding required segment: `foo?` -> `foo`\n let required = first.replace(/\\?$/, \"\");\n if (rest.length === 0) {\n // Intepret empty string as omitting an optional segment\n // `[\"one\", \"\", \"three\"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three`\n return isOptional ? [required, \"\"] : [required];\n }\n let restExploded = explodeOptionalSegments(rest.join(\"/\"));\n let result = [];\n // All child paths with the prefix. Do this for all children before the\n // optional version for all children, so we get consistent ordering where the\n // parent optional aspect is preferred as required. Otherwise, we can get\n // child sections interspersed where deeper optional segments are higher than\n // parent optional segments, where for example, /:two would explode _earlier_\n // then /:one. By always including the parent as required _for all children_\n // first, we avoid this issue\n result.push(...restExploded.map(subpath => subpath === \"\" ? required : [required, subpath].join(\"/\")));\n // Then, if this is an optional value, add all child versions without\n if (isOptional) {\n result.push(...restExploded);\n }\n // for absolute paths, ensure `/` instead of empty segment\n return result.map(exploded => path.startsWith(\"/\") && exploded === \"\" ? \"/\" : exploded);\n}\nfunction rankRouteBranches(branches) {\n branches.sort((a, b) => a.score !== b.score ? b.score - a.score // Higher score first\n : compareIndexes(a.routesMeta.map(meta => meta.childrenIndex), b.routesMeta.map(meta => meta.childrenIndex)));\n}\nconst paramRe = /^:[\\w-]+$/;\nconst dynamicSegmentValue = 3;\nconst indexRouteValue = 2;\nconst emptySegmentValue = 1;\nconst staticSegmentValue = 10;\nconst splatPenalty = -2;\nconst isSplat = s => s === \"*\";\nfunction computeScore(path, index) {\n let segments = path.split(\"/\");\n let initialScore = segments.length;\n if (segments.some(isSplat)) {\n initialScore += splatPenalty;\n }\n if (index) {\n initialScore += indexRouteValue;\n }\n return segments.filter(s => !isSplat(s)).reduce((score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === \"\" ? emptySegmentValue : staticSegmentValue), initialScore);\n}\nfunction compareIndexes(a, b) {\n let siblings = a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]);\n return siblings ?\n // If two routes are siblings, we should try to match the earlier sibling\n // first. This allows people to have fine-grained control over the matching\n // behavior by simply putting routes with identical paths in the order they\n // want them tried.\n a[a.length - 1] - b[b.length - 1] :\n // Otherwise, it doesn't really make sense to rank non-siblings by index,\n // so they sort equally.\n 0;\n}\nfunction matchRouteBranch(branch, pathname) {\n let {\n routesMeta\n } = branch;\n let matchedParams = {};\n let matchedPathname = \"/\";\n let matches = [];\n for (let i = 0; i < routesMeta.length; ++i) {\n let meta = routesMeta[i];\n let end = i === routesMeta.length - 1;\n let remainingPathname = matchedPathname === \"/\" ? pathname : pathname.slice(matchedPathname.length) || \"/\";\n let match = matchPath({\n path: meta.relativePath,\n caseSensitive: meta.caseSensitive,\n end\n }, remainingPathname);\n if (!match) return null;\n Object.assign(matchedParams, match.params);\n let route = meta.route;\n matches.push({\n // TODO: Can this as be avoided?\n params: matchedParams,\n pathname: joinPaths([matchedPathname, match.pathname]),\n pathnameBase: normalizePathname(joinPaths([matchedPathname, match.pathnameBase])),\n route\n });\n if (match.pathnameBase !== \"/\") {\n matchedPathname = joinPaths([matchedPathname, match.pathnameBase]);\n }\n }\n return matches;\n}\n/**\n * Returns a path with params interpolated.\n *\n * @see https://reactrouter.com/utils/generate-path\n */\nfunction generatePath(originalPath, params) {\n if (params === void 0) {\n params = {};\n }\n let path = originalPath;\n if (path.endsWith(\"*\") && path !== \"*\" && !path.endsWith(\"/*\")) {\n warning(false, \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n path = path.replace(/\\*$/, \"/*\");\n }\n // ensure `/` is added at the beginning if the path is absolute\n const prefix = path.startsWith(\"/\") ? \"/\" : \"\";\n const stringify = p => p == null ? \"\" : typeof p === \"string\" ? p : String(p);\n const segments = path.split(/\\/+/).map((segment, index, array) => {\n const isLastSegment = index === array.length - 1;\n // only apply the splat if it's the last segment\n if (isLastSegment && segment === \"*\") {\n const star = \"*\";\n // Apply the splat\n return stringify(params[star]);\n }\n const keyMatch = segment.match(/^:([\\w-]+)(\\??)$/);\n if (keyMatch) {\n const [, key, optional] = keyMatch;\n let param = params[key];\n invariant(optional === \"?\" || param != null, \"Missing \\\":\" + key + \"\\\" param\");\n return stringify(param);\n }\n // Remove any optional markers from optional static segments\n return segment.replace(/\\?$/g, \"\");\n })\n // Remove empty segments\n .filter(segment => !!segment);\n return prefix + segments.join(\"/\");\n}\n/**\n * Performs pattern matching on a URL pathname and returns information about\n * the match.\n *\n * @see https://reactrouter.com/utils/match-path\n */\nfunction matchPath(pattern, pathname) {\n if (typeof pattern === \"string\") {\n pattern = {\n path: pattern,\n caseSensitive: false,\n end: true\n };\n }\n let [matcher, compiledParams] = compilePath(pattern.path, pattern.caseSensitive, pattern.end);\n let match = pathname.match(matcher);\n if (!match) return null;\n let matchedPathname = match[0];\n let pathnameBase = matchedPathname.replace(/(.)\\/+$/, \"$1\");\n let captureGroups = match.slice(1);\n let params = compiledParams.reduce((memo, _ref, index) => {\n let {\n paramName,\n isOptional\n } = _ref;\n // We need to compute the pathnameBase here using the raw splat value\n // instead of using params[\"*\"] later because it will be decoded then\n if (paramName === \"*\") {\n let splatValue = captureGroups[index] || \"\";\n pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\\/+$/, \"$1\");\n }\n const value = captureGroups[index];\n if (isOptional && !value) {\n memo[paramName] = undefined;\n } else {\n memo[paramName] = (value || \"\").replace(/%2F/g, \"/\");\n }\n return memo;\n }, {});\n return {\n params,\n pathname: matchedPathname,\n pathnameBase,\n pattern\n };\n}\nfunction compilePath(path, caseSensitive, end) {\n if (caseSensitive === void 0) {\n caseSensitive = false;\n }\n if (end === void 0) {\n end = true;\n }\n warning(path === \"*\" || !path.endsWith(\"*\") || path.endsWith(\"/*\"), \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n let params = [];\n let regexpSource = \"^\" + path.replace(/\\/*\\*?$/, \"\") // Ignore trailing / and /*, we'll handle it below\n .replace(/^\\/*/, \"/\") // Make sure it has a leading /\n .replace(/[\\\\.*+^${}|()[\\]]/g, \"\\\\$&\") // Escape special regex chars\n .replace(/\\/:([\\w-]+)(\\?)?/g, (_, paramName, isOptional) => {\n params.push({\n paramName,\n isOptional: isOptional != null\n });\n return isOptional ? \"/?([^\\\\/]+)?\" : \"/([^\\\\/]+)\";\n });\n if (path.endsWith(\"*\")) {\n params.push({\n paramName: \"*\"\n });\n regexpSource += path === \"*\" || path === \"/*\" ? \"(.*)$\" // Already matched the initial /, just match the rest\n : \"(?:\\\\/(.+)|\\\\/*)$\"; // Don't include the / in params[\"*\"]\n } else if (end) {\n // When matching to the end, ignore trailing slashes\n regexpSource += \"\\\\/*$\";\n } else if (path !== \"\" && path !== \"/\") {\n // If our path is non-empty and contains anything beyond an initial slash,\n // then we have _some_ form of path in our regex, so we should expect to\n // match only if we find the end of this path segment. Look for an optional\n // non-captured trailing slash (to match a portion of the URL) or the end\n // of the path (if we've matched to the end). We used to do this with a\n // word boundary but that gives false positives on routes like\n // /user-preferences since `-` counts as a word boundary.\n regexpSource += \"(?:(?=\\\\/|$))\";\n } else ;\n let matcher = new RegExp(regexpSource, caseSensitive ? undefined : \"i\");\n return [matcher, params];\n}\nfunction decodePath(value) {\n try {\n return value.split(\"/\").map(v => decodeURIComponent(v).replace(/\\//g, \"%2F\")).join(\"/\");\n } catch (error) {\n warning(false, \"The URL path \\\"\" + value + \"\\\" could not be decoded because it is is a \" + \"malformed URL segment. This is probably due to a bad percent \" + (\"encoding (\" + error + \").\"));\n return value;\n }\n}\n/**\n * @private\n */\nfunction stripBasename(pathname, basename) {\n if (basename === \"/\") return pathname;\n if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {\n return null;\n }\n // We want to leave trailing slash behavior in the user's control, so if they\n // specify a basename with a trailing slash, we should support it\n let startIndex = basename.endsWith(\"/\") ? basename.length - 1 : basename.length;\n let nextChar = pathname.charAt(startIndex);\n if (nextChar && nextChar !== \"/\") {\n // pathname does not start with basename/\n return null;\n }\n return pathname.slice(startIndex) || \"/\";\n}\n/**\n * Returns a resolved path object relative to the given pathname.\n *\n * @see https://reactrouter.com/utils/resolve-path\n */\nfunction resolvePath(to, fromPathname) {\n if (fromPathname === void 0) {\n fromPathname = \"/\";\n }\n let {\n pathname: toPathname,\n search = \"\",\n hash = \"\"\n } = typeof to === \"string\" ? parsePath(to) : to;\n let pathname = toPathname ? toPathname.startsWith(\"/\") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;\n return {\n pathname,\n search: normalizeSearch(search),\n hash: normalizeHash(hash)\n };\n}\nfunction resolvePathname(relativePath, fromPathname) {\n let segments = fromPathname.replace(/\\/+$/, \"\").split(\"/\");\n let relativeSegments = relativePath.split(\"/\");\n relativeSegments.forEach(segment => {\n if (segment === \"..\") {\n // Keep the root \"\" segment so the pathname starts at /\n if (segments.length > 1) segments.pop();\n } else if (segment !== \".\") {\n segments.push(segment);\n }\n });\n return segments.length > 1 ? segments.join(\"/\") : \"/\";\n}\nfunction getInvalidPathError(char, field, dest, path) {\n return \"Cannot include a '\" + char + \"' character in a manually specified \" + (\"`to.\" + field + \"` field [\" + JSON.stringify(path) + \"]. Please separate it out to the \") + (\"`to.\" + dest + \"` field. Alternatively you may provide the full path as \") + \"a string in and the router will parse it for you.\";\n}\n/**\n * @private\n *\n * When processing relative navigation we want to ignore ancestor routes that\n * do not contribute to the path, such that index/pathless layout routes don't\n * interfere.\n *\n * For example, when moving a route element into an index route and/or a\n * pathless layout route, relative link behavior contained within should stay\n * the same. Both of the following examples should link back to the root:\n *\n * \n * \n * \n *\n * \n * \n * }> // <-- Does not contribute\n * // <-- Does not contribute\n * \n * \n */\nfunction getPathContributingMatches(matches) {\n return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0);\n}\n// Return the array of pathnames for the current route matches - used to\n// generate the routePathnames input for resolveTo()\nfunction getResolveToMatches(matches, v7_relativeSplatPath) {\n let pathMatches = getPathContributingMatches(matches);\n // When v7_relativeSplatPath is enabled, use the full pathname for the leaf\n // match so we include splat values for \".\" links. See:\n // https://github.com/remix-run/react-router/issues/11052#issuecomment-1836589329\n if (v7_relativeSplatPath) {\n return pathMatches.map((match, idx) => idx === matches.length - 1 ? match.pathname : match.pathnameBase);\n }\n return pathMatches.map(match => match.pathnameBase);\n}\n/**\n * @private\n */\nfunction resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {\n if (isPathRelative === void 0) {\n isPathRelative = false;\n }\n let to;\n if (typeof toArg === \"string\") {\n to = parsePath(toArg);\n } else {\n to = _extends({}, toArg);\n invariant(!to.pathname || !to.pathname.includes(\"?\"), getInvalidPathError(\"?\", \"pathname\", \"search\", to));\n invariant(!to.pathname || !to.pathname.includes(\"#\"), getInvalidPathError(\"#\", \"pathname\", \"hash\", to));\n invariant(!to.search || !to.search.includes(\"#\"), getInvalidPathError(\"#\", \"search\", \"hash\", to));\n }\n let isEmptyPath = toArg === \"\" || to.pathname === \"\";\n let toPathname = isEmptyPath ? \"/\" : to.pathname;\n let from;\n // Routing is relative to the current pathname if explicitly requested.\n //\n // If a pathname is explicitly provided in `to`, it should be relative to the\n // route context. This is explained in `Note on `` values` in our\n // migration guide from v5 as a means of disambiguation between `to` values\n // that begin with `/` and those that do not. However, this is problematic for\n // `to` values that do not provide a pathname. `to` can simply be a search or\n // hash string, in which case we should assume that the navigation is relative\n // to the current location's pathname and *not* the route pathname.\n if (toPathname == null) {\n from = locationPathname;\n } else {\n let routePathnameIndex = routePathnames.length - 1;\n // With relative=\"route\" (the default), each leading .. segment means\n // \"go up one route\" instead of \"go up one URL segment\". This is a key\n // difference from how works and a major reason we call this a\n // \"to\" value instead of a \"href\".\n if (!isPathRelative && toPathname.startsWith(\"..\")) {\n let toSegments = toPathname.split(\"/\");\n while (toSegments[0] === \"..\") {\n toSegments.shift();\n routePathnameIndex -= 1;\n }\n to.pathname = toSegments.join(\"/\");\n }\n from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : \"/\";\n }\n let path = resolvePath(to, from);\n // Ensure the pathname has a trailing slash if the original \"to\" had one\n let hasExplicitTrailingSlash = toPathname && toPathname !== \"/\" && toPathname.endsWith(\"/\");\n // Or if this was a link to the current path which has a trailing slash\n let hasCurrentTrailingSlash = (isEmptyPath || toPathname === \".\") && locationPathname.endsWith(\"/\");\n if (!path.pathname.endsWith(\"/\") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {\n path.pathname += \"/\";\n }\n return path;\n}\n/**\n * @private\n */\nfunction getToPathname(to) {\n // Empty strings should be treated the same as / paths\n return to === \"\" || to.pathname === \"\" ? \"/\" : typeof to === \"string\" ? parsePath(to).pathname : to.pathname;\n}\n/**\n * @private\n */\nconst joinPaths = paths => paths.join(\"/\").replace(/\\/\\/+/g, \"/\");\n/**\n * @private\n */\nconst normalizePathname = pathname => pathname.replace(/\\/+$/, \"\").replace(/^\\/*/, \"/\");\n/**\n * @private\n */\nconst normalizeSearch = search => !search || search === \"?\" ? \"\" : search.startsWith(\"?\") ? search : \"?\" + search;\n/**\n * @private\n */\nconst normalizeHash = hash => !hash || hash === \"#\" ? \"\" : hash.startsWith(\"#\") ? hash : \"#\" + hash;\n/**\n * This is a shortcut for creating `application/json` responses. Converts `data`\n * to JSON and sets the `Content-Type` header.\n */\nconst json = function json(data, init) {\n if (init === void 0) {\n init = {};\n }\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n let headers = new Headers(responseInit.headers);\n if (!headers.has(\"Content-Type\")) {\n headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n }\n return new Response(JSON.stringify(data), _extends({}, responseInit, {\n headers\n }));\n};\nclass AbortedDeferredError extends Error {}\nclass DeferredData {\n constructor(data, responseInit) {\n this.pendingKeysSet = new Set();\n this.subscribers = new Set();\n this.deferredKeys = [];\n invariant(data && typeof data === \"object\" && !Array.isArray(data), \"defer() only accepts plain objects\");\n // Set up an AbortController + Promise we can race against to exit early\n // cancellation\n let reject;\n this.abortPromise = new Promise((_, r) => reject = r);\n this.controller = new AbortController();\n let onAbort = () => reject(new AbortedDeferredError(\"Deferred data aborted\"));\n this.unlistenAbortSignal = () => this.controller.signal.removeEventListener(\"abort\", onAbort);\n this.controller.signal.addEventListener(\"abort\", onAbort);\n this.data = Object.entries(data).reduce((acc, _ref2) => {\n let [key, value] = _ref2;\n return Object.assign(acc, {\n [key]: this.trackPromise(key, value)\n });\n }, {});\n if (this.done) {\n // All incoming values were resolved\n this.unlistenAbortSignal();\n }\n this.init = responseInit;\n }\n trackPromise(key, value) {\n if (!(value instanceof Promise)) {\n return value;\n }\n this.deferredKeys.push(key);\n this.pendingKeysSet.add(key);\n // We store a little wrapper promise that will be extended with\n // _data/_error props upon resolve/reject\n let promise = Promise.race([value, this.abortPromise]).then(data => this.onSettle(promise, key, undefined, data), error => this.onSettle(promise, key, error));\n // Register rejection listeners to avoid uncaught promise rejections on\n // errors or aborted deferred values\n promise.catch(() => {});\n Object.defineProperty(promise, \"_tracked\", {\n get: () => true\n });\n return promise;\n }\n onSettle(promise, key, error, data) {\n if (this.controller.signal.aborted && error instanceof AbortedDeferredError) {\n this.unlistenAbortSignal();\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n return Promise.reject(error);\n }\n this.pendingKeysSet.delete(key);\n if (this.done) {\n // Nothing left to abort!\n this.unlistenAbortSignal();\n }\n // If the promise was resolved/rejected with undefined, we'll throw an error as you\n // should always resolve with a value or null\n if (error === undefined && data === undefined) {\n let undefinedError = new Error(\"Deferred data for key \\\"\" + key + \"\\\" resolved/rejected with `undefined`, \" + \"you must resolve/reject with a value or `null`.\");\n Object.defineProperty(promise, \"_error\", {\n get: () => undefinedError\n });\n this.emit(false, key);\n return Promise.reject(undefinedError);\n }\n if (data === undefined) {\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n this.emit(false, key);\n return Promise.reject(error);\n }\n Object.defineProperty(promise, \"_data\", {\n get: () => data\n });\n this.emit(false, key);\n return data;\n }\n emit(aborted, settledKey) {\n this.subscribers.forEach(subscriber => subscriber(aborted, settledKey));\n }\n subscribe(fn) {\n this.subscribers.add(fn);\n return () => this.subscribers.delete(fn);\n }\n cancel() {\n this.controller.abort();\n this.pendingKeysSet.forEach((v, k) => this.pendingKeysSet.delete(k));\n this.emit(true);\n }\n async resolveData(signal) {\n let aborted = false;\n if (!this.done) {\n let onAbort = () => this.cancel();\n signal.addEventListener(\"abort\", onAbort);\n aborted = await new Promise(resolve => {\n this.subscribe(aborted => {\n signal.removeEventListener(\"abort\", onAbort);\n if (aborted || this.done) {\n resolve(aborted);\n }\n });\n });\n }\n return aborted;\n }\n get done() {\n return this.pendingKeysSet.size === 0;\n }\n get unwrappedData() {\n invariant(this.data !== null && this.done, \"Can only unwrap data on initialized and settled deferreds\");\n return Object.entries(this.data).reduce((acc, _ref3) => {\n let [key, value] = _ref3;\n return Object.assign(acc, {\n [key]: unwrapTrackedPromise(value)\n });\n }, {});\n }\n get pendingKeys() {\n return Array.from(this.pendingKeysSet);\n }\n}\nfunction isTrackedPromise(value) {\n return value instanceof Promise && value._tracked === true;\n}\nfunction unwrapTrackedPromise(value) {\n if (!isTrackedPromise(value)) {\n return value;\n }\n if (value._error) {\n throw value._error;\n }\n return value._data;\n}\nconst defer = function defer(data, init) {\n if (init === void 0) {\n init = {};\n }\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n return new DeferredData(data, responseInit);\n};\n/**\n * A redirect response. Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nconst redirect = function redirect(url, init) {\n if (init === void 0) {\n init = 302;\n }\n let responseInit = init;\n if (typeof responseInit === \"number\") {\n responseInit = {\n status: responseInit\n };\n } else if (typeof responseInit.status === \"undefined\") {\n responseInit.status = 302;\n }\n let headers = new Headers(responseInit.headers);\n headers.set(\"Location\", url);\n return new Response(null, _extends({}, responseInit, {\n headers\n }));\n};\n/**\n * A redirect response that will force a document reload to the new location.\n * Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nconst redirectDocument = (url, init) => {\n let response = redirect(url, init);\n response.headers.set(\"X-Remix-Reload-Document\", \"true\");\n return response;\n};\n/**\n * @private\n * Utility class we use to hold auto-unwrapped 4xx/5xx Response bodies\n *\n * We don't export the class for public use since it's an implementation\n * detail, but we export the interface above so folks can build their own\n * abstractions around instances via isRouteErrorResponse()\n */\nclass ErrorResponseImpl {\n constructor(status, statusText, data, internal) {\n if (internal === void 0) {\n internal = false;\n }\n this.status = status;\n this.statusText = statusText || \"\";\n this.internal = internal;\n if (data instanceof Error) {\n this.data = data.toString();\n this.error = data;\n } else {\n this.data = data;\n }\n }\n}\n/**\n * Check if the given error is an ErrorResponse generated from a 4xx/5xx\n * Response thrown from an action/loader\n */\nfunction isRouteErrorResponse(error) {\n return error != null && typeof error.status === \"number\" && typeof error.statusText === \"string\" && typeof error.internal === \"boolean\" && \"data\" in error;\n}\n\nconst validMutationMethodsArr = [\"post\", \"put\", \"patch\", \"delete\"];\nconst validMutationMethods = new Set(validMutationMethodsArr);\nconst validRequestMethodsArr = [\"get\", ...validMutationMethodsArr];\nconst validRequestMethods = new Set(validRequestMethodsArr);\nconst redirectStatusCodes = new Set([301, 302, 303, 307, 308]);\nconst redirectPreserveMethodStatusCodes = new Set([307, 308]);\nconst IDLE_NAVIGATION = {\n state: \"idle\",\n location: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined\n};\nconst IDLE_FETCHER = {\n state: \"idle\",\n data: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined\n};\nconst IDLE_BLOCKER = {\n state: \"unblocked\",\n proceed: undefined,\n reset: undefined,\n location: undefined\n};\nconst ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\nconst defaultMapRouteProperties = route => ({\n hasErrorBoundary: Boolean(route.hasErrorBoundary)\n});\nconst TRANSITIONS_STORAGE_KEY = \"remix-router-transitions\";\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createRouter\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Create a router and listen to history POP navigations\n */\nfunction createRouter(init) {\n const routerWindow = init.window ? init.window : typeof window !== \"undefined\" ? window : undefined;\n const isBrowser = typeof routerWindow !== \"undefined\" && typeof routerWindow.document !== \"undefined\" && typeof routerWindow.document.createElement !== \"undefined\";\n const isServer = !isBrowser;\n invariant(init.routes.length > 0, \"You must provide a non-empty routes array to createRouter\");\n let mapRouteProperties;\n if (init.mapRouteProperties) {\n mapRouteProperties = init.mapRouteProperties;\n } else if (init.detectErrorBoundary) {\n // If they are still using the deprecated version, wrap it with the new API\n let detectErrorBoundary = init.detectErrorBoundary;\n mapRouteProperties = route => ({\n hasErrorBoundary: detectErrorBoundary(route)\n });\n } else {\n mapRouteProperties = defaultMapRouteProperties;\n }\n // Routes keyed by ID\n let manifest = {};\n // Routes in tree format for matching\n let dataRoutes = convertRoutesToDataRoutes(init.routes, mapRouteProperties, undefined, manifest);\n let inFlightDataRoutes;\n let basename = init.basename || \"/\";\n // Config driven behavior flags\n let future = _extends({\n v7_fetcherPersist: false,\n v7_normalizeFormMethod: false,\n v7_partialHydration: false,\n v7_prependBasename: false,\n v7_relativeSplatPath: false\n }, init.future);\n // Cleanup function for history\n let unlistenHistory = null;\n // Externally-provided functions to call on all state changes\n let subscribers = new Set();\n // Externally-provided object to hold scroll restoration locations during routing\n let savedScrollPositions = null;\n // Externally-provided function to get scroll restoration keys\n let getScrollRestorationKey = null;\n // Externally-provided function to get current scroll position\n let getScrollPosition = null;\n // One-time flag to control the initial hydration scroll restoration. Because\n // we don't get the saved positions from until _after_\n // the initial render, we need to manually trigger a separate updateState to\n // send along the restoreScrollPosition\n // Set to true if we have `hydrationData` since we assume we were SSR'd and that\n // SSR did the initial scroll restoration.\n let initialScrollRestored = init.hydrationData != null;\n let initialMatches = matchRoutes(dataRoutes, init.history.location, basename);\n let initialErrors = null;\n if (initialMatches == null) {\n // If we do not match a user-provided-route, fall back to the root\n // to allow the error boundary to take over\n let error = getInternalRouterError(404, {\n pathname: init.history.location.pathname\n });\n let {\n matches,\n route\n } = getShortCircuitMatches(dataRoutes);\n initialMatches = matches;\n initialErrors = {\n [route.id]: error\n };\n }\n let initialized;\n let hasLazyRoutes = initialMatches.some(m => m.route.lazy);\n let hasLoaders = initialMatches.some(m => m.route.loader);\n if (hasLazyRoutes) {\n // All initialMatches need to be loaded before we're ready. If we have lazy\n // functions around still then we'll need to run them in initialize()\n initialized = false;\n } else if (!hasLoaders) {\n // If we've got no loaders to run, then we're good to go\n initialized = true;\n } else if (future.v7_partialHydration) {\n // If partial hydration is enabled, we're initialized so long as we were\n // provided with hydrationData for every route with a loader, and no loaders\n // were marked for explicit hydration\n let loaderData = init.hydrationData ? init.hydrationData.loaderData : null;\n let errors = init.hydrationData ? init.hydrationData.errors : null;\n let isRouteInitialized = m => {\n // No loader, nothing to initialize\n if (!m.route.loader) return true;\n // Explicitly opting-in to running on hydration\n if (m.route.loader.hydrate === true) return false;\n // Otherwise, initialized if hydrated with data or an error\n return loaderData && loaderData[m.route.id] !== undefined || errors && errors[m.route.id] !== undefined;\n };\n // If errors exist, don't consider routes below the boundary\n if (errors) {\n let idx = initialMatches.findIndex(m => errors[m.route.id] !== undefined);\n initialized = initialMatches.slice(0, idx + 1).every(isRouteInitialized);\n } else {\n initialized = initialMatches.every(isRouteInitialized);\n }\n } else {\n // Without partial hydration - we're initialized if we were provided any\n // hydrationData - which is expected to be complete\n initialized = init.hydrationData != null;\n }\n let router;\n let state = {\n historyAction: init.history.action,\n location: init.history.location,\n matches: initialMatches,\n initialized,\n navigation: IDLE_NAVIGATION,\n // Don't restore on initial updateState() if we were SSR'd\n restoreScrollPosition: init.hydrationData != null ? false : null,\n preventScrollReset: false,\n revalidation: \"idle\",\n loaderData: init.hydrationData && init.hydrationData.loaderData || {},\n actionData: init.hydrationData && init.hydrationData.actionData || null,\n errors: init.hydrationData && init.hydrationData.errors || initialErrors,\n fetchers: new Map(),\n blockers: new Map()\n };\n // -- Stateful internal variables to manage navigations --\n // Current navigation in progress (to be committed in completeNavigation)\n let pendingAction = Action.Pop;\n // Should the current navigation prevent the scroll reset if scroll cannot\n // be restored?\n let pendingPreventScrollReset = false;\n // AbortController for the active navigation\n let pendingNavigationController;\n // Should the current navigation enable document.startViewTransition?\n let pendingViewTransitionEnabled = false;\n // Store applied view transitions so we can apply them on POP\n let appliedViewTransitions = new Map();\n // Cleanup function for persisting applied transitions to sessionStorage\n let removePageHideEventListener = null;\n // We use this to avoid touching history in completeNavigation if a\n // revalidation is entirely uninterrupted\n let isUninterruptedRevalidation = false;\n // Use this internal flag to force revalidation of all loaders:\n // - submissions (completed or interrupted)\n // - useRevalidator()\n // - X-Remix-Revalidate (from redirect)\n let isRevalidationRequired = false;\n // Use this internal array to capture routes that require revalidation due\n // to a cancelled deferred on action submission\n let cancelledDeferredRoutes = [];\n // Use this internal array to capture fetcher loads that were cancelled by an\n // action navigation and require revalidation\n let cancelledFetcherLoads = [];\n // AbortControllers for any in-flight fetchers\n let fetchControllers = new Map();\n // Track loads based on the order in which they started\n let incrementingLoadId = 0;\n // Track the outstanding pending navigation data load to be compared against\n // the globally incrementing load when a fetcher load lands after a completed\n // navigation\n let pendingNavigationLoadId = -1;\n // Fetchers that triggered data reloads as a result of their actions\n let fetchReloadIds = new Map();\n // Fetchers that triggered redirect navigations\n let fetchRedirectIds = new Set();\n // Most recent href/match for fetcher.load calls for fetchers\n let fetchLoadMatches = new Map();\n // Ref-count mounted fetchers so we know when it's ok to clean them up\n let activeFetchers = new Map();\n // Fetchers that have requested a delete when using v7_fetcherPersist,\n // they'll be officially removed after they return to idle\n let deletedFetchers = new Set();\n // Store DeferredData instances for active route matches. When a\n // route loader returns defer() we stick one in here. Then, when a nested\n // promise resolves we update loaderData. If a new navigation starts we\n // cancel active deferreds for eliminated routes.\n let activeDeferreds = new Map();\n // Store blocker functions in a separate Map outside of router state since\n // we don't need to update UI state if they change\n let blockerFunctions = new Map();\n // Flag to ignore the next history update, so we can revert the URL change on\n // a POP navigation that was blocked by the user without touching router state\n let ignoreNextHistoryUpdate = false;\n // Initialize the router, all side effects should be kicked off from here.\n // Implemented as a Fluent API for ease of:\n // let router = createRouter(init).initialize();\n function initialize() {\n // If history informs us of a POP navigation, start the navigation but do not update\n // state. We'll update our own state once the navigation completes\n unlistenHistory = init.history.listen(_ref => {\n let {\n action: historyAction,\n location,\n delta\n } = _ref;\n // Ignore this event if it was just us resetting the URL from a\n // blocked POP navigation\n if (ignoreNextHistoryUpdate) {\n ignoreNextHistoryUpdate = false;\n return;\n }\n warning(blockerFunctions.size === 0 || delta != null, \"You are trying to use a blocker on a POP navigation to a location \" + \"that was not created by @remix-run/router. This will fail silently in \" + \"production. This can happen if you are navigating outside the router \" + \"via `window.history.pushState`/`window.location.hash` instead of using \" + \"router navigation APIs. This can also happen if you are using \" + \"createHashRouter and the user manually changes the URL.\");\n let blockerKey = shouldBlockNavigation({\n currentLocation: state.location,\n nextLocation: location,\n historyAction\n });\n if (blockerKey && delta != null) {\n // Restore the URL to match the current UI, but don't update router state\n ignoreNextHistoryUpdate = true;\n init.history.go(delta * -1);\n // Put the blocker into a blocked state\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location,\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location\n });\n // Re-do the same POP navigation we just blocked\n init.history.go(delta);\n },\n reset() {\n let blockers = new Map(state.blockers);\n blockers.set(blockerKey, IDLE_BLOCKER);\n updateState({\n blockers\n });\n }\n });\n return;\n }\n return startNavigation(historyAction, location);\n });\n if (isBrowser) {\n // FIXME: This feels gross. How can we cleanup the lines between\n // scrollRestoration/appliedTransitions persistance?\n restoreAppliedTransitions(routerWindow, appliedViewTransitions);\n let _saveAppliedTransitions = () => persistAppliedTransitions(routerWindow, appliedViewTransitions);\n routerWindow.addEventListener(\"pagehide\", _saveAppliedTransitions);\n removePageHideEventListener = () => routerWindow.removeEventListener(\"pagehide\", _saveAppliedTransitions);\n }\n // Kick off initial data load if needed. Use Pop to avoid modifying history\n // Note we don't do any handling of lazy here. For SPA's it'll get handled\n // in the normal navigation flow. For SSR it's expected that lazy modules are\n // resolved prior to router creation since we can't go into a fallbackElement\n // UI for SSR'd apps\n if (!state.initialized) {\n startNavigation(Action.Pop, state.location, {\n initialHydration: true\n });\n }\n return router;\n }\n // Clean up a router and it's side effects\n function dispose() {\n if (unlistenHistory) {\n unlistenHistory();\n }\n if (removePageHideEventListener) {\n removePageHideEventListener();\n }\n subscribers.clear();\n pendingNavigationController && pendingNavigationController.abort();\n state.fetchers.forEach((_, key) => deleteFetcher(key));\n state.blockers.forEach((_, key) => deleteBlocker(key));\n }\n // Subscribe to state updates for the router\n function subscribe(fn) {\n subscribers.add(fn);\n return () => subscribers.delete(fn);\n }\n // Update our state and notify the calling context of the change\n function updateState(newState, opts) {\n if (opts === void 0) {\n opts = {};\n }\n state = _extends({}, state, newState);\n // Prep fetcher cleanup so we can tell the UI which fetcher data entries\n // can be removed\n let completedFetchers = [];\n let deletedFetchersKeys = [];\n if (future.v7_fetcherPersist) {\n state.fetchers.forEach((fetcher, key) => {\n if (fetcher.state === \"idle\") {\n if (deletedFetchers.has(key)) {\n // Unmounted from the UI and can be totally removed\n deletedFetchersKeys.push(key);\n } else {\n // Returned to idle but still mounted in the UI, so semi-remains for\n // revalidations and such\n completedFetchers.push(key);\n }\n }\n });\n }\n // Iterate over a local copy so that if flushSync is used and we end up\n // removing and adding a new subscriber due to the useCallback dependencies,\n // we don't get ourselves into a loop calling the new subscriber immediately\n [...subscribers].forEach(subscriber => subscriber(state, {\n deletedFetchers: deletedFetchersKeys,\n unstable_viewTransitionOpts: opts.viewTransitionOpts,\n unstable_flushSync: opts.flushSync === true\n }));\n // Remove idle fetchers from state since we only care about in-flight fetchers.\n if (future.v7_fetcherPersist) {\n completedFetchers.forEach(key => state.fetchers.delete(key));\n deletedFetchersKeys.forEach(key => deleteFetcher(key));\n }\n }\n // Complete a navigation returning the state.navigation back to the IDLE_NAVIGATION\n // and setting state.[historyAction/location/matches] to the new route.\n // - Location is a required param\n // - Navigation will always be set to IDLE_NAVIGATION\n // - Can pass any other state in newState\n function completeNavigation(location, newState, _temp) {\n var _location$state, _location$state2;\n let {\n flushSync\n } = _temp === void 0 ? {} : _temp;\n // Deduce if we're in a loading/actionReload state:\n // - We have committed actionData in the store\n // - The current navigation was a mutation submission\n // - We're past the submitting state and into the loading state\n // - The location being loaded is not the result of a redirect\n let isActionReload = state.actionData != null && state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && state.navigation.state === \"loading\" && ((_location$state = location.state) == null ? void 0 : _location$state._isRedirect) !== true;\n let actionData;\n if (newState.actionData) {\n if (Object.keys(newState.actionData).length > 0) {\n actionData = newState.actionData;\n } else {\n // Empty actionData -> clear prior actionData due to an action error\n actionData = null;\n }\n } else if (isActionReload) {\n // Keep the current data if we're wrapping up the action reload\n actionData = state.actionData;\n } else {\n // Clear actionData on any other completed navigations\n actionData = null;\n }\n // Always preserve any existing loaderData from re-used routes\n let loaderData = newState.loaderData ? mergeLoaderData(state.loaderData, newState.loaderData, newState.matches || [], newState.errors) : state.loaderData;\n // On a successful navigation we can assume we got through all blockers\n // so we can start fresh\n let blockers = state.blockers;\n if (blockers.size > 0) {\n blockers = new Map(blockers);\n blockers.forEach((_, k) => blockers.set(k, IDLE_BLOCKER));\n }\n // Always respect the user flag. Otherwise don't reset on mutation\n // submission navigations unless they redirect\n let preventScrollReset = pendingPreventScrollReset === true || state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && ((_location$state2 = location.state) == null ? void 0 : _location$state2._isRedirect) !== true;\n if (inFlightDataRoutes) {\n dataRoutes = inFlightDataRoutes;\n inFlightDataRoutes = undefined;\n }\n if (isUninterruptedRevalidation) ; else if (pendingAction === Action.Pop) ; else if (pendingAction === Action.Push) {\n init.history.push(location, location.state);\n } else if (pendingAction === Action.Replace) {\n init.history.replace(location, location.state);\n }\n let viewTransitionOpts;\n // On POP, enable transitions if they were enabled on the original navigation\n if (pendingAction === Action.Pop) {\n // Forward takes precedence so they behave like the original navigation\n let priorPaths = appliedViewTransitions.get(state.location.pathname);\n if (priorPaths && priorPaths.has(location.pathname)) {\n viewTransitionOpts = {\n currentLocation: state.location,\n nextLocation: location\n };\n } else if (appliedViewTransitions.has(location.pathname)) {\n // If we don't have a previous forward nav, assume we're popping back to\n // the new location and enable if that location previously enabled\n viewTransitionOpts = {\n currentLocation: location,\n nextLocation: state.location\n };\n }\n } else if (pendingViewTransitionEnabled) {\n // Store the applied transition on PUSH/REPLACE\n let toPaths = appliedViewTransitions.get(state.location.pathname);\n if (toPaths) {\n toPaths.add(location.pathname);\n } else {\n toPaths = new Set([location.pathname]);\n appliedViewTransitions.set(state.location.pathname, toPaths);\n }\n viewTransitionOpts = {\n currentLocation: state.location,\n nextLocation: location\n };\n }\n updateState(_extends({}, newState, {\n actionData,\n loaderData,\n historyAction: pendingAction,\n location,\n initialized: true,\n navigation: IDLE_NAVIGATION,\n revalidation: \"idle\",\n restoreScrollPosition: getSavedScrollPosition(location, newState.matches || state.matches),\n preventScrollReset,\n blockers\n }), {\n viewTransitionOpts,\n flushSync: flushSync === true\n });\n // Reset stateful navigation vars\n pendingAction = Action.Pop;\n pendingPreventScrollReset = false;\n pendingViewTransitionEnabled = false;\n isUninterruptedRevalidation = false;\n isRevalidationRequired = false;\n cancelledDeferredRoutes = [];\n cancelledFetcherLoads = [];\n }\n // Trigger a navigation event, which can either be a numerical POP or a PUSH\n // replace with an optional submission\n async function navigate(to, opts) {\n if (typeof to === \"number\") {\n init.history.go(to);\n return;\n }\n let normalizedPath = normalizeTo(state.location, state.matches, basename, future.v7_prependBasename, to, future.v7_relativeSplatPath, opts == null ? void 0 : opts.fromRouteId, opts == null ? void 0 : opts.relative);\n let {\n path,\n submission,\n error\n } = normalizeNavigateOptions(future.v7_normalizeFormMethod, false, normalizedPath, opts);\n let currentLocation = state.location;\n let nextLocation = createLocation(state.location, path, opts && opts.state);\n // When using navigate as a PUSH/REPLACE we aren't reading an already-encoded\n // URL from window.location, so we need to encode it here so the behavior\n // remains the same as POP and non-data-router usages. new URL() does all\n // the same encoding we'd get from a history.pushState/window.location read\n // without having to touch history\n nextLocation = _extends({}, nextLocation, init.history.encodeLocation(nextLocation));\n let userReplace = opts && opts.replace != null ? opts.replace : undefined;\n let historyAction = Action.Push;\n if (userReplace === true) {\n historyAction = Action.Replace;\n } else if (userReplace === false) ; else if (submission != null && isMutationMethod(submission.formMethod) && submission.formAction === state.location.pathname + state.location.search) {\n // By default on submissions to the current location we REPLACE so that\n // users don't have to double-click the back button to get to the prior\n // location. If the user redirects to a different location from the\n // action/loader this will be ignored and the redirect will be a PUSH\n historyAction = Action.Replace;\n }\n let preventScrollReset = opts && \"preventScrollReset\" in opts ? opts.preventScrollReset === true : undefined;\n let flushSync = (opts && opts.unstable_flushSync) === true;\n let blockerKey = shouldBlockNavigation({\n currentLocation,\n nextLocation,\n historyAction\n });\n if (blockerKey) {\n // Put the blocker into a blocked state\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location: nextLocation,\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location: nextLocation\n });\n // Send the same navigation through\n navigate(to, opts);\n },\n reset() {\n let blockers = new Map(state.blockers);\n blockers.set(blockerKey, IDLE_BLOCKER);\n updateState({\n blockers\n });\n }\n });\n return;\n }\n return await startNavigation(historyAction, nextLocation, {\n submission,\n // Send through the formData serialization error if we have one so we can\n // render at the right error boundary after we match routes\n pendingError: error,\n preventScrollReset,\n replace: opts && opts.replace,\n enableViewTransition: opts && opts.unstable_viewTransition,\n flushSync\n });\n }\n // Revalidate all current loaders. If a navigation is in progress or if this\n // is interrupted by a navigation, allow this to \"succeed\" by calling all\n // loaders during the next loader round\n function revalidate() {\n interruptActiveLoads();\n updateState({\n revalidation: \"loading\"\n });\n // If we're currently submitting an action, we don't need to start a new\n // navigation, we'll just let the follow up loader execution call all loaders\n if (state.navigation.state === \"submitting\") {\n return;\n }\n // If we're currently in an idle state, start a new navigation for the current\n // action/location and mark it as uninterrupted, which will skip the history\n // update in completeNavigation\n if (state.navigation.state === \"idle\") {\n startNavigation(state.historyAction, state.location, {\n startUninterruptedRevalidation: true\n });\n return;\n }\n // Otherwise, if we're currently in a loading state, just start a new\n // navigation to the navigation.location but do not trigger an uninterrupted\n // revalidation so that history correctly updates once the navigation completes\n startNavigation(pendingAction || state.historyAction, state.navigation.location, {\n overrideNavigation: state.navigation\n });\n }\n // Start a navigation to the given action/location. Can optionally provide a\n // overrideNavigation which will override the normalLoad in the case of a redirect\n // navigation\n async function startNavigation(historyAction, location, opts) {\n // Abort any in-progress navigations and start a new one. Unset any ongoing\n // uninterrupted revalidations unless told otherwise, since we want this\n // new navigation to update history normally\n pendingNavigationController && pendingNavigationController.abort();\n pendingNavigationController = null;\n pendingAction = historyAction;\n isUninterruptedRevalidation = (opts && opts.startUninterruptedRevalidation) === true;\n // Save the current scroll position every time we start a new navigation,\n // and track whether we should reset scroll on completion\n saveScrollPosition(state.location, state.matches);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n pendingViewTransitionEnabled = (opts && opts.enableViewTransition) === true;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let loadingNavigation = opts && opts.overrideNavigation;\n let matches = matchRoutes(routesToUse, location, basename);\n let flushSync = (opts && opts.flushSync) === true;\n // Short circuit with a 404 on the root error boundary if we match nothing\n if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(routesToUse);\n // Cancel all pending deferred on 404s since we don't keep any routes\n cancelActiveDeferreds();\n completeNavigation(location, {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error\n }\n }, {\n flushSync\n });\n return;\n }\n // Short circuit if it's only a hash change and not a revalidation or\n // mutation submission.\n //\n // Ignore on initial page loads because since the initial load will always\n // be \"same hash\". For example, on /page#hash and submit a
\n // which will default to a navigation to /page\n if (state.initialized && !isRevalidationRequired && isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {\n completeNavigation(location, {\n matches\n }, {\n flushSync\n });\n return;\n }\n // Create a controller/Request for this navigation\n pendingNavigationController = new AbortController();\n let request = createClientSideRequest(init.history, location, pendingNavigationController.signal, opts && opts.submission);\n let pendingActionData;\n let pendingError;\n if (opts && opts.pendingError) {\n // If we have a pendingError, it means the user attempted a GET submission\n // with binary FormData so assign here and skip to handleLoaders. That\n // way we handle calling loaders above the boundary etc. It's not really\n // different from an actionError in that sense.\n pendingError = {\n [findNearestBoundary(matches).route.id]: opts.pendingError\n };\n } else if (opts && opts.submission && isMutationMethod(opts.submission.formMethod)) {\n // Call action if we received an action submission\n let actionOutput = await handleAction(request, location, opts.submission, matches, {\n replace: opts.replace,\n flushSync\n });\n if (actionOutput.shortCircuited) {\n return;\n }\n pendingActionData = actionOutput.pendingActionData;\n pendingError = actionOutput.pendingActionError;\n loadingNavigation = getLoadingNavigation(location, opts.submission);\n flushSync = false;\n // Create a GET request for the loaders\n request = new Request(request.url, {\n signal: request.signal\n });\n }\n // Call loaders\n let {\n shortCircuited,\n loaderData,\n errors\n } = await handleLoaders(request, location, matches, loadingNavigation, opts && opts.submission, opts && opts.fetcherSubmission, opts && opts.replace, opts && opts.initialHydration === true, flushSync, pendingActionData, pendingError);\n if (shortCircuited) {\n return;\n }\n // Clean up now that the action/loaders have completed. Don't clean up if\n // we short circuited because pendingNavigationController will have already\n // been assigned to a new controller for the next navigation\n pendingNavigationController = null;\n completeNavigation(location, _extends({\n matches\n }, pendingActionData ? {\n actionData: pendingActionData\n } : {}, {\n loaderData,\n errors\n }));\n }\n // Call the action matched by the leaf route for this navigation and handle\n // redirects/errors\n async function handleAction(request, location, submission, matches, opts) {\n if (opts === void 0) {\n opts = {};\n }\n interruptActiveLoads();\n // Put us in a submitting state\n let navigation = getSubmittingNavigation(location, submission);\n updateState({\n navigation\n }, {\n flushSync: opts.flushSync === true\n });\n // Call our action and get the result\n let result;\n let actionMatch = getTargetMatch(matches, location);\n if (!actionMatch.route.action && !actionMatch.route.lazy) {\n result = {\n type: ResultType.error,\n error: getInternalRouterError(405, {\n method: request.method,\n pathname: location.pathname,\n routeId: actionMatch.route.id\n })\n };\n } else {\n result = await callLoaderOrAction(\"action\", request, actionMatch, matches, manifest, mapRouteProperties, basename, future.v7_relativeSplatPath);\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n }\n }\n if (isRedirectResult(result)) {\n let replace;\n if (opts && opts.replace != null) {\n replace = opts.replace;\n } else {\n // If the user didn't explicity indicate replace behavior, replace if\n // we redirected to the exact same location we're currently at to avoid\n // double back-buttons\n replace = result.location === state.location.pathname + state.location.search;\n }\n await startRedirectNavigation(state, result, {\n submission,\n replace\n });\n return {\n shortCircuited: true\n };\n }\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n // By default, all submissions are REPLACE navigations, but if the\n // action threw an error that'll be rendered in an errorElement, we fall\n // back to PUSH so that the user can use the back button to get back to\n // the pre-submission form location to try again\n if ((opts && opts.replace) !== true) {\n pendingAction = Action.Push;\n }\n return {\n // Send back an empty object we can use to clear out any prior actionData\n pendingActionData: {},\n pendingActionError: {\n [boundaryMatch.route.id]: result.error\n }\n };\n }\n if (isDeferredResult(result)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n }\n return {\n pendingActionData: {\n [actionMatch.route.id]: result.data\n }\n };\n }\n // Call all applicable loaders for the given matches, handling redirects,\n // errors, etc.\n async function handleLoaders(request, location, matches, overrideNavigation, submission, fetcherSubmission, replace, initialHydration, flushSync, pendingActionData, pendingError) {\n // Figure out the right navigation we want to use for data loading\n let loadingNavigation = overrideNavigation || getLoadingNavigation(location, submission);\n // If this was a redirect from an action we don't have a \"submission\" but\n // we have it on the loading navigation so use that if available\n let activeSubmission = submission || fetcherSubmission || getSubmissionFromNavigation(loadingNavigation);\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, activeSubmission, location, future.v7_partialHydration && initialHydration === true, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionData, pendingError);\n // Cancel pending deferreds for no-longer-matched routes or routes we're\n // about to reload. Note that if this is an action reload we would have\n // already cancelled all pending deferreds so this would be a no-op\n cancelActiveDeferreds(routeId => !(matches && matches.some(m => m.route.id === routeId)) || matchesToLoad && matchesToLoad.some(m => m.route.id === routeId));\n pendingNavigationLoadId = ++incrementingLoadId;\n // Short circuit if we have no loaders to run\n if (matchesToLoad.length === 0 && revalidatingFetchers.length === 0) {\n let updatedFetchers = markFetchRedirectsDone();\n completeNavigation(location, _extends({\n matches,\n loaderData: {},\n // Commit pending error if we're short circuiting\n errors: pendingError || null\n }, pendingActionData ? {\n actionData: pendingActionData\n } : {}, updatedFetchers ? {\n fetchers: new Map(state.fetchers)\n } : {}), {\n flushSync\n });\n return {\n shortCircuited: true\n };\n }\n // If this is an uninterrupted revalidation, we remain in our current idle\n // state. If not, we need to switch to our loading state and load data,\n // preserving any new action data or existing action data (in the case of\n // a revalidation interrupting an actionReload)\n // If we have partialHydration enabled, then don't update the state for the\n // initial data load since it's not a \"navigation\"\n if (!isUninterruptedRevalidation && (!future.v7_partialHydration || !initialHydration)) {\n revalidatingFetchers.forEach(rf => {\n let fetcher = state.fetchers.get(rf.key);\n let revalidatingFetcher = getLoadingFetcher(undefined, fetcher ? fetcher.data : undefined);\n state.fetchers.set(rf.key, revalidatingFetcher);\n });\n let actionData = pendingActionData || state.actionData;\n updateState(_extends({\n navigation: loadingNavigation\n }, actionData ? Object.keys(actionData).length === 0 ? {\n actionData: null\n } : {\n actionData\n } : {}, revalidatingFetchers.length > 0 ? {\n fetchers: new Map(state.fetchers)\n } : {}), {\n flushSync\n });\n }\n revalidatingFetchers.forEach(rf => {\n if (fetchControllers.has(rf.key)) {\n abortFetcher(rf.key);\n }\n if (rf.controller) {\n // Fetchers use an independent AbortController so that aborting a fetcher\n // (via deleteFetcher) does not abort the triggering navigation that\n // triggered the revalidation\n fetchControllers.set(rf.key, rf.controller);\n }\n });\n // Proxy navigation abort through to revalidation fetchers\n let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach(f => abortFetcher(f.key));\n if (pendingNavigationController) {\n pendingNavigationController.signal.addEventListener(\"abort\", abortPendingFetchRevalidations);\n }\n let {\n results,\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, request);\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n }\n // Clean up _after_ loaders have completed. Don't clean up if we short\n // circuited because fetchControllers would have been aborted and\n // reassigned to new controllers for the next navigation\n if (pendingNavigationController) {\n pendingNavigationController.signal.removeEventListener(\"abort\", abortPendingFetchRevalidations);\n }\n revalidatingFetchers.forEach(rf => fetchControllers.delete(rf.key));\n // If any loaders returned a redirect Response, start a new REPLACE navigation\n let redirect = findRedirect(results);\n if (redirect) {\n if (redirect.idx >= matchesToLoad.length) {\n // If this redirect came from a fetcher make sure we mark it in\n // fetchRedirectIds so it doesn't get revalidated on the next set of\n // loader executions\n let fetcherKey = revalidatingFetchers[redirect.idx - matchesToLoad.length].key;\n fetchRedirectIds.add(fetcherKey);\n }\n await startRedirectNavigation(state, redirect.result, {\n replace\n });\n return {\n shortCircuited: true\n };\n }\n // Process and commit output from loaders\n let {\n loaderData,\n errors\n } = processLoaderData(state, matches, matchesToLoad, loaderResults, pendingError, revalidatingFetchers, fetcherResults, activeDeferreds);\n // Wire up subscribers to update loaderData as promises settle\n activeDeferreds.forEach((deferredData, routeId) => {\n deferredData.subscribe(aborted => {\n // Note: No need to updateState here since the TrackedPromise on\n // loaderData is stable across resolve/reject\n // Remove this instance if we were aborted or if promises have settled\n if (aborted || deferredData.done) {\n activeDeferreds.delete(routeId);\n }\n });\n });\n // During partial hydration, preserve SSR errors for routes that don't re-run\n if (future.v7_partialHydration && initialHydration && state.errors) {\n Object.entries(state.errors).filter(_ref2 => {\n let [id] = _ref2;\n return !matchesToLoad.some(m => m.route.id === id);\n }).forEach(_ref3 => {\n let [routeId, error] = _ref3;\n errors = Object.assign(errors || {}, {\n [routeId]: error\n });\n });\n }\n let updatedFetchers = markFetchRedirectsDone();\n let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId);\n let shouldUpdateFetchers = updatedFetchers || didAbortFetchLoads || revalidatingFetchers.length > 0;\n return _extends({\n loaderData,\n errors\n }, shouldUpdateFetchers ? {\n fetchers: new Map(state.fetchers)\n } : {});\n }\n // Trigger a fetcher load/submit for the given fetcher key\n function fetch(key, routeId, href, opts) {\n if (isServer) {\n throw new Error(\"router.fetch() was called during the server render, but it shouldn't be. \" + \"You are likely calling a useFetcher() method in the body of your component. \" + \"Try moving it to a useEffect or a callback.\");\n }\n if (fetchControllers.has(key)) abortFetcher(key);\n let flushSync = (opts && opts.unstable_flushSync) === true;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let normalizedPath = normalizeTo(state.location, state.matches, basename, future.v7_prependBasename, href, future.v7_relativeSplatPath, routeId, opts == null ? void 0 : opts.relative);\n let matches = matchRoutes(routesToUse, normalizedPath, basename);\n if (!matches) {\n setFetcherError(key, routeId, getInternalRouterError(404, {\n pathname: normalizedPath\n }), {\n flushSync\n });\n return;\n }\n let {\n path,\n submission,\n error\n } = normalizeNavigateOptions(future.v7_normalizeFormMethod, true, normalizedPath, opts);\n if (error) {\n setFetcherError(key, routeId, error, {\n flushSync\n });\n return;\n }\n let match = getTargetMatch(matches, path);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n if (submission && isMutationMethod(submission.formMethod)) {\n handleFetcherAction(key, routeId, path, match, matches, flushSync, submission);\n return;\n }\n // Store off the match so we can call it's shouldRevalidate on subsequent\n // revalidations\n fetchLoadMatches.set(key, {\n routeId,\n path\n });\n handleFetcherLoader(key, routeId, path, match, matches, flushSync, submission);\n }\n // Call the action for the matched fetcher.submit(), and then handle redirects,\n // errors, and revalidation\n async function handleFetcherAction(key, routeId, path, match, requestMatches, flushSync, submission) {\n interruptActiveLoads();\n fetchLoadMatches.delete(key);\n if (!match.route.action && !match.route.lazy) {\n let error = getInternalRouterError(405, {\n method: submission.formMethod,\n pathname: path,\n routeId: routeId\n });\n setFetcherError(key, routeId, error, {\n flushSync\n });\n return;\n }\n // Put this fetcher into it's submitting state\n let existingFetcher = state.fetchers.get(key);\n updateFetcherState(key, getSubmittingFetcher(submission, existingFetcher), {\n flushSync\n });\n // Call the action for the fetcher\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal, submission);\n fetchControllers.set(key, abortController);\n let originatingLoadId = incrementingLoadId;\n let actionResult = await callLoaderOrAction(\"action\", fetchRequest, match, requestMatches, manifest, mapRouteProperties, basename, future.v7_relativeSplatPath);\n if (fetchRequest.signal.aborted) {\n // We can delete this so long as we weren't aborted by our own fetcher\n // re-submit which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n return;\n }\n // When using v7_fetcherPersist, we don't want errors bubbling up to the UI\n // or redirects processed for unmounted fetchers so we just revert them to\n // idle\n if (future.v7_fetcherPersist && deletedFetchers.has(key)) {\n if (isRedirectResult(actionResult) || isErrorResult(actionResult)) {\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n }\n // Let SuccessResult's fall through for revalidation\n } else {\n if (isRedirectResult(actionResult)) {\n fetchControllers.delete(key);\n if (pendingNavigationLoadId > originatingLoadId) {\n // A new navigation was kicked off after our action started, so that\n // should take precedence over this redirect navigation. We already\n // set isRevalidationRequired so all loaders for the new route should\n // fire unless opted out via shouldRevalidate\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n } else {\n fetchRedirectIds.add(key);\n updateFetcherState(key, getLoadingFetcher(submission));\n return startRedirectNavigation(state, actionResult, {\n fetcherSubmission: submission\n });\n }\n }\n // Process any non-redirect errors thrown\n if (isErrorResult(actionResult)) {\n setFetcherError(key, routeId, actionResult.error);\n return;\n }\n }\n if (isDeferredResult(actionResult)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n }\n // Start the data load for current matches, or the next location if we're\n // in the middle of a navigation\n let nextLocation = state.navigation.location || state.location;\n let revalidationRequest = createClientSideRequest(init.history, nextLocation, abortController.signal);\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let matches = state.navigation.state !== \"idle\" ? matchRoutes(routesToUse, state.navigation.location, basename) : state.matches;\n invariant(matches, \"Didn't find any matches after fetcher action\");\n let loadId = ++incrementingLoadId;\n fetchReloadIds.set(key, loadId);\n let loadFetcher = getLoadingFetcher(submission, actionResult.data);\n state.fetchers.set(key, loadFetcher);\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, submission, nextLocation, false, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, {\n [match.route.id]: actionResult.data\n }, undefined // No need to send through errors since we short circuit above\n );\n // Put all revalidating fetchers into the loading state, except for the\n // current fetcher which we want to keep in it's current loading state which\n // contains it's action submission info + action data\n revalidatingFetchers.filter(rf => rf.key !== key).forEach(rf => {\n let staleKey = rf.key;\n let existingFetcher = state.fetchers.get(staleKey);\n let revalidatingFetcher = getLoadingFetcher(undefined, existingFetcher ? existingFetcher.data : undefined);\n state.fetchers.set(staleKey, revalidatingFetcher);\n if (fetchControllers.has(staleKey)) {\n abortFetcher(staleKey);\n }\n if (rf.controller) {\n fetchControllers.set(staleKey, rf.controller);\n }\n });\n updateState({\n fetchers: new Map(state.fetchers)\n });\n let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach(rf => abortFetcher(rf.key));\n abortController.signal.addEventListener(\"abort\", abortPendingFetchRevalidations);\n let {\n results,\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, revalidationRequest);\n if (abortController.signal.aborted) {\n return;\n }\n abortController.signal.removeEventListener(\"abort\", abortPendingFetchRevalidations);\n fetchReloadIds.delete(key);\n fetchControllers.delete(key);\n revalidatingFetchers.forEach(r => fetchControllers.delete(r.key));\n let redirect = findRedirect(results);\n if (redirect) {\n if (redirect.idx >= matchesToLoad.length) {\n // If this redirect came from a fetcher make sure we mark it in\n // fetchRedirectIds so it doesn't get revalidated on the next set of\n // loader executions\n let fetcherKey = revalidatingFetchers[redirect.idx - matchesToLoad.length].key;\n fetchRedirectIds.add(fetcherKey);\n }\n return startRedirectNavigation(state, redirect.result);\n }\n // Process and commit output from loaders\n let {\n loaderData,\n errors\n } = processLoaderData(state, state.matches, matchesToLoad, loaderResults, undefined, revalidatingFetchers, fetcherResults, activeDeferreds);\n // Since we let revalidations complete even if the submitting fetcher was\n // deleted, only put it back to idle if it hasn't been deleted\n if (state.fetchers.has(key)) {\n let doneFetcher = getDoneFetcher(actionResult.data);\n state.fetchers.set(key, doneFetcher);\n }\n abortStaleFetchLoads(loadId);\n // If we are currently in a navigation loading state and this fetcher is\n // more recent than the navigation, we want the newer data so abort the\n // navigation and complete it with the fetcher data\n if (state.navigation.state === \"loading\" && loadId > pendingNavigationLoadId) {\n invariant(pendingAction, \"Expected pending action\");\n pendingNavigationController && pendingNavigationController.abort();\n completeNavigation(state.navigation.location, {\n matches,\n loaderData,\n errors,\n fetchers: new Map(state.fetchers)\n });\n } else {\n // otherwise just update with the fetcher data, preserving any existing\n // loaderData for loaders that did not need to reload. We have to\n // manually merge here since we aren't going through completeNavigation\n updateState({\n errors,\n loaderData: mergeLoaderData(state.loaderData, loaderData, matches, errors),\n fetchers: new Map(state.fetchers)\n });\n isRevalidationRequired = false;\n }\n }\n // Call the matched loader for fetcher.load(), handling redirects, errors, etc.\n async function handleFetcherLoader(key, routeId, path, match, matches, flushSync, submission) {\n let existingFetcher = state.fetchers.get(key);\n updateFetcherState(key, getLoadingFetcher(submission, existingFetcher ? existingFetcher.data : undefined), {\n flushSync\n });\n // Call the loader for this fetcher route match\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal);\n fetchControllers.set(key, abortController);\n let originatingLoadId = incrementingLoadId;\n let result = await callLoaderOrAction(\"loader\", fetchRequest, match, matches, manifest, mapRouteProperties, basename, future.v7_relativeSplatPath);\n // Deferred isn't supported for fetcher loads, await everything and treat it\n // as a normal load. resolveDeferredData will return undefined if this\n // fetcher gets aborted, so we just leave result untouched and short circuit\n // below if that happens\n if (isDeferredResult(result)) {\n result = (await resolveDeferredData(result, fetchRequest.signal, true)) || result;\n }\n // We can delete this so long as we weren't aborted by our our own fetcher\n // re-load which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n if (fetchRequest.signal.aborted) {\n return;\n }\n // We don't want errors bubbling up or redirects followed for unmounted\n // fetchers, so short circuit here if it was removed from the UI\n if (deletedFetchers.has(key)) {\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n }\n // If the loader threw a redirect Response, start a new REPLACE navigation\n if (isRedirectResult(result)) {\n if (pendingNavigationLoadId > originatingLoadId) {\n // A new navigation was kicked off after our loader started, so that\n // should take precedence over this redirect navigation\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n } else {\n fetchRedirectIds.add(key);\n await startRedirectNavigation(state, result);\n return;\n }\n }\n // Process any non-redirect errors thrown\n if (isErrorResult(result)) {\n setFetcherError(key, routeId, result.error);\n return;\n }\n invariant(!isDeferredResult(result), \"Unhandled fetcher deferred data\");\n // Put the fetcher back into an idle state\n updateFetcherState(key, getDoneFetcher(result.data));\n }\n /**\n * Utility function to handle redirects returned from an action or loader.\n * Normally, a redirect \"replaces\" the navigation that triggered it. So, for\n * example:\n *\n * - user is on /a\n * - user clicks a link to /b\n * - loader for /b redirects to /c\n *\n * In a non-JS app the browser would track the in-flight navigation to /b and\n * then replace it with /c when it encountered the redirect response. In\n * the end it would only ever update the URL bar with /c.\n *\n * In client-side routing using pushState/replaceState, we aim to emulate\n * this behavior and we also do not update history until the end of the\n * navigation (including processed redirects). This means that we never\n * actually touch history until we've processed redirects, so we just use\n * the history action from the original navigation (PUSH or REPLACE).\n */\n async function startRedirectNavigation(state, redirect, _temp2) {\n let {\n submission,\n fetcherSubmission,\n replace\n } = _temp2 === void 0 ? {} : _temp2;\n if (redirect.revalidate) {\n isRevalidationRequired = true;\n }\n let redirectLocation = createLocation(state.location, redirect.location, {\n _isRedirect: true\n });\n invariant(redirectLocation, \"Expected a location on the redirect navigation\");\n if (isBrowser) {\n let isDocumentReload = false;\n if (redirect.reloadDocument) {\n // Hard reload if the response contained X-Remix-Reload-Document\n isDocumentReload = true;\n } else if (ABSOLUTE_URL_REGEX.test(redirect.location)) {\n const url = init.history.createURL(redirect.location);\n isDocumentReload =\n // Hard reload if it's an absolute URL to a new origin\n url.origin !== routerWindow.location.origin ||\n // Hard reload if it's an absolute URL that does not match our basename\n stripBasename(url.pathname, basename) == null;\n }\n if (isDocumentReload) {\n if (replace) {\n routerWindow.location.replace(redirect.location);\n } else {\n routerWindow.location.assign(redirect.location);\n }\n return;\n }\n }\n // There's no need to abort on redirects, since we don't detect the\n // redirect until the action/loaders have settled\n pendingNavigationController = null;\n let redirectHistoryAction = replace === true ? Action.Replace : Action.Push;\n // Use the incoming submission if provided, fallback on the active one in\n // state.navigation\n let {\n formMethod,\n formAction,\n formEncType\n } = state.navigation;\n if (!submission && !fetcherSubmission && formMethod && formAction && formEncType) {\n submission = getSubmissionFromNavigation(state.navigation);\n }\n // If this was a 307/308 submission we want to preserve the HTTP method and\n // re-submit the GET/POST/PUT/PATCH/DELETE as a submission navigation to the\n // redirected location\n let activeSubmission = submission || fetcherSubmission;\n if (redirectPreserveMethodStatusCodes.has(redirect.status) && activeSubmission && isMutationMethod(activeSubmission.formMethod)) {\n await startNavigation(redirectHistoryAction, redirectLocation, {\n submission: _extends({}, activeSubmission, {\n formAction: redirect.location\n }),\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset\n });\n } else {\n // If we have a navigation submission, we will preserve it through the\n // redirect navigation\n let overrideNavigation = getLoadingNavigation(redirectLocation, submission);\n await startNavigation(redirectHistoryAction, redirectLocation, {\n overrideNavigation,\n // Send fetcher submissions through for shouldRevalidate\n fetcherSubmission,\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset\n });\n }\n }\n async function callLoadersAndMaybeResolveData(currentMatches, matches, matchesToLoad, fetchersToLoad, request) {\n // Call all navigation loaders and revalidating fetcher loaders in parallel,\n // then slice off the results into separate arrays so we can handle them\n // accordingly\n let results = await Promise.all([...matchesToLoad.map(match => callLoaderOrAction(\"loader\", request, match, matches, manifest, mapRouteProperties, basename, future.v7_relativeSplatPath)), ...fetchersToLoad.map(f => {\n if (f.matches && f.match && f.controller) {\n return callLoaderOrAction(\"loader\", createClientSideRequest(init.history, f.path, f.controller.signal), f.match, f.matches, manifest, mapRouteProperties, basename, future.v7_relativeSplatPath);\n } else {\n let error = {\n type: ResultType.error,\n error: getInternalRouterError(404, {\n pathname: f.path\n })\n };\n return error;\n }\n })]);\n let loaderResults = results.slice(0, matchesToLoad.length);\n let fetcherResults = results.slice(matchesToLoad.length);\n await Promise.all([resolveDeferredResults(currentMatches, matchesToLoad, loaderResults, loaderResults.map(() => request.signal), false, state.loaderData), resolveDeferredResults(currentMatches, fetchersToLoad.map(f => f.match), fetcherResults, fetchersToLoad.map(f => f.controller ? f.controller.signal : null), true)]);\n return {\n results,\n loaderResults,\n fetcherResults\n };\n }\n function interruptActiveLoads() {\n // Every interruption triggers a revalidation\n isRevalidationRequired = true;\n // Cancel pending route-level deferreds and mark cancelled routes for\n // revalidation\n cancelledDeferredRoutes.push(...cancelActiveDeferreds());\n // Abort in-flight fetcher loads\n fetchLoadMatches.forEach((_, key) => {\n if (fetchControllers.has(key)) {\n cancelledFetcherLoads.push(key);\n abortFetcher(key);\n }\n });\n }\n function updateFetcherState(key, fetcher, opts) {\n if (opts === void 0) {\n opts = {};\n }\n state.fetchers.set(key, fetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n }, {\n flushSync: (opts && opts.flushSync) === true\n });\n }\n function setFetcherError(key, routeId, error, opts) {\n if (opts === void 0) {\n opts = {};\n }\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n deleteFetcher(key);\n updateState({\n errors: {\n [boundaryMatch.route.id]: error\n },\n fetchers: new Map(state.fetchers)\n }, {\n flushSync: (opts && opts.flushSync) === true\n });\n }\n function getFetcher(key) {\n if (future.v7_fetcherPersist) {\n activeFetchers.set(key, (activeFetchers.get(key) || 0) + 1);\n // If this fetcher was previously marked for deletion, unmark it since we\n // have a new instance\n if (deletedFetchers.has(key)) {\n deletedFetchers.delete(key);\n }\n }\n return state.fetchers.get(key) || IDLE_FETCHER;\n }\n function deleteFetcher(key) {\n let fetcher = state.fetchers.get(key);\n // Don't abort the controller if this is a deletion of a fetcher.submit()\n // in it's loading phase since - we don't want to abort the corresponding\n // revalidation and want them to complete and land\n if (fetchControllers.has(key) && !(fetcher && fetcher.state === \"loading\" && fetchReloadIds.has(key))) {\n abortFetcher(key);\n }\n fetchLoadMatches.delete(key);\n fetchReloadIds.delete(key);\n fetchRedirectIds.delete(key);\n deletedFetchers.delete(key);\n state.fetchers.delete(key);\n }\n function deleteFetcherAndUpdateState(key) {\n if (future.v7_fetcherPersist) {\n let count = (activeFetchers.get(key) || 0) - 1;\n if (count <= 0) {\n activeFetchers.delete(key);\n deletedFetchers.add(key);\n } else {\n activeFetchers.set(key, count);\n }\n } else {\n deleteFetcher(key);\n }\n updateState({\n fetchers: new Map(state.fetchers)\n });\n }\n function abortFetcher(key) {\n let controller = fetchControllers.get(key);\n invariant(controller, \"Expected fetch controller: \" + key);\n controller.abort();\n fetchControllers.delete(key);\n }\n function markFetchersDone(keys) {\n for (let key of keys) {\n let fetcher = getFetcher(key);\n let doneFetcher = getDoneFetcher(fetcher.data);\n state.fetchers.set(key, doneFetcher);\n }\n }\n function markFetchRedirectsDone() {\n let doneKeys = [];\n let updatedFetchers = false;\n for (let key of fetchRedirectIds) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n if (fetcher.state === \"loading\") {\n fetchRedirectIds.delete(key);\n doneKeys.push(key);\n updatedFetchers = true;\n }\n }\n markFetchersDone(doneKeys);\n return updatedFetchers;\n }\n function abortStaleFetchLoads(landedId) {\n let yeetedKeys = [];\n for (let [key, id] of fetchReloadIds) {\n if (id < landedId) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n if (fetcher.state === \"loading\") {\n abortFetcher(key);\n fetchReloadIds.delete(key);\n yeetedKeys.push(key);\n }\n }\n }\n markFetchersDone(yeetedKeys);\n return yeetedKeys.length > 0;\n }\n function getBlocker(key, fn) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n if (blockerFunctions.get(key) !== fn) {\n blockerFunctions.set(key, fn);\n }\n return blocker;\n }\n function deleteBlocker(key) {\n state.blockers.delete(key);\n blockerFunctions.delete(key);\n }\n // Utility function to update blockers, ensuring valid state transitions\n function updateBlocker(key, newBlocker) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n // Poor mans state machine :)\n // https://mermaid.live/edit#pako:eNqVkc9OwzAMxl8l8nnjAYrEtDIOHEBIgwvKJTReGy3_lDpIqO27k6awMG0XcrLlnz87nwdonESogKXXBuE79rq75XZO3-yHds0RJVuv70YrPlUrCEe2HfrORS3rubqZfuhtpg5C9wk5tZ4VKcRUq88q9Z8RS0-48cE1iHJkL0ugbHuFLus9L6spZy8nX9MP2CNdomVaposqu3fGayT8T8-jJQwhepo_UtpgBQaDEUom04dZhAN1aJBDlUKJBxE1ceB2Smj0Mln-IBW5AFU2dwUiktt_2Qaq2dBfaKdEup85UV7Yd-dKjlnkabl2Pvr0DTkTreM\n invariant(blocker.state === \"unblocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"proceeding\" || blocker.state === \"blocked\" && newBlocker.state === \"unblocked\" || blocker.state === \"proceeding\" && newBlocker.state === \"unblocked\", \"Invalid blocker state transition: \" + blocker.state + \" -> \" + newBlocker.state);\n let blockers = new Map(state.blockers);\n blockers.set(key, newBlocker);\n updateState({\n blockers\n });\n }\n function shouldBlockNavigation(_ref4) {\n let {\n currentLocation,\n nextLocation,\n historyAction\n } = _ref4;\n if (blockerFunctions.size === 0) {\n return;\n }\n // We ony support a single active blocker at the moment since we don't have\n // any compelling use cases for multi-blocker yet\n if (blockerFunctions.size > 1) {\n warning(false, \"A router only supports one blocker at a time\");\n }\n let entries = Array.from(blockerFunctions.entries());\n let [blockerKey, blockerFunction] = entries[entries.length - 1];\n let blocker = state.blockers.get(blockerKey);\n if (blocker && blocker.state === \"proceeding\") {\n // If the blocker is currently proceeding, we don't need to re-check\n // it and can let this navigation continue\n return;\n }\n // At this point, we know we're unblocked/blocked so we need to check the\n // user-provided blocker function\n if (blockerFunction({\n currentLocation,\n nextLocation,\n historyAction\n })) {\n return blockerKey;\n }\n }\n function cancelActiveDeferreds(predicate) {\n let cancelledRouteIds = [];\n activeDeferreds.forEach((dfd, routeId) => {\n if (!predicate || predicate(routeId)) {\n // Cancel the deferred - but do not remove from activeDeferreds here -\n // we rely on the subscribers to do that so our tests can assert proper\n // cleanup via _internalActiveDeferreds\n dfd.cancel();\n cancelledRouteIds.push(routeId);\n activeDeferreds.delete(routeId);\n }\n });\n return cancelledRouteIds;\n }\n // Opt in to capturing and reporting scroll positions during navigations,\n // used by the component\n function enableScrollRestoration(positions, getPosition, getKey) {\n savedScrollPositions = positions;\n getScrollPosition = getPosition;\n getScrollRestorationKey = getKey || null;\n // Perform initial hydration scroll restoration, since we miss the boat on\n // the initial updateState() because we've not yet rendered \n // and therefore have no savedScrollPositions available\n if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) {\n initialScrollRestored = true;\n let y = getSavedScrollPosition(state.location, state.matches);\n if (y != null) {\n updateState({\n restoreScrollPosition: y\n });\n }\n }\n return () => {\n savedScrollPositions = null;\n getScrollPosition = null;\n getScrollRestorationKey = null;\n };\n }\n function getScrollKey(location, matches) {\n if (getScrollRestorationKey) {\n let key = getScrollRestorationKey(location, matches.map(m => convertRouteMatchToUiMatch(m, state.loaderData)));\n return key || location.key;\n }\n return location.key;\n }\n function saveScrollPosition(location, matches) {\n if (savedScrollPositions && getScrollPosition) {\n let key = getScrollKey(location, matches);\n savedScrollPositions[key] = getScrollPosition();\n }\n }\n function getSavedScrollPosition(location, matches) {\n if (savedScrollPositions) {\n let key = getScrollKey(location, matches);\n let y = savedScrollPositions[key];\n if (typeof y === \"number\") {\n return y;\n }\n }\n return null;\n }\n function _internalSetRoutes(newRoutes) {\n manifest = {};\n inFlightDataRoutes = convertRoutesToDataRoutes(newRoutes, mapRouteProperties, undefined, manifest);\n }\n router = {\n get basename() {\n return basename;\n },\n get future() {\n return future;\n },\n get state() {\n return state;\n },\n get routes() {\n return dataRoutes;\n },\n get window() {\n return routerWindow;\n },\n initialize,\n subscribe,\n enableScrollRestoration,\n navigate,\n fetch,\n revalidate,\n // Passthrough to history-aware createHref used by useHref so we get proper\n // hash-aware URLs in DOM paths\n createHref: to => init.history.createHref(to),\n encodeLocation: to => init.history.encodeLocation(to),\n getFetcher,\n deleteFetcher: deleteFetcherAndUpdateState,\n dispose,\n getBlocker,\n deleteBlocker,\n _internalFetchControllers: fetchControllers,\n _internalActiveDeferreds: activeDeferreds,\n // TODO: Remove setRoutes, it's temporary to avoid dealing with\n // updating the tree while validating the update algorithm.\n _internalSetRoutes\n };\n return router;\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createStaticHandler\n////////////////////////////////////////////////////////////////////////////////\nconst UNSAFE_DEFERRED_SYMBOL = Symbol(\"deferred\");\nfunction createStaticHandler(routes, opts) {\n invariant(routes.length > 0, \"You must provide a non-empty routes array to createStaticHandler\");\n let manifest = {};\n let basename = (opts ? opts.basename : null) || \"/\";\n let mapRouteProperties;\n if (opts != null && opts.mapRouteProperties) {\n mapRouteProperties = opts.mapRouteProperties;\n } else if (opts != null && opts.detectErrorBoundary) {\n // If they are still using the deprecated version, wrap it with the new API\n let detectErrorBoundary = opts.detectErrorBoundary;\n mapRouteProperties = route => ({\n hasErrorBoundary: detectErrorBoundary(route)\n });\n } else {\n mapRouteProperties = defaultMapRouteProperties;\n }\n // Config driven behavior flags\n let future = _extends({\n v7_relativeSplatPath: false,\n v7_throwAbortReason: false\n }, opts ? opts.future : null);\n let dataRoutes = convertRoutesToDataRoutes(routes, mapRouteProperties, undefined, manifest);\n /**\n * The query() method is intended for document requests, in which we want to\n * call an optional action and potentially multiple loaders for all nested\n * routes. It returns a StaticHandlerContext object, which is very similar\n * to the router state (location, loaderData, actionData, errors, etc.) and\n * also adds SSR-specific information such as the statusCode and headers\n * from action/loaders Responses.\n *\n * It _should_ never throw and should report all errors through the\n * returned context.errors object, properly associating errors to their error\n * boundary. Additionally, it tracks _deepestRenderedBoundaryId which can be\n * used to emulate React error boundaries during SSr by performing a second\n * pass only down to the boundaryId.\n *\n * The one exception where we do not return a StaticHandlerContext is when a\n * redirect response is returned or thrown from any action/loader. We\n * propagate that out and return the raw Response so the HTTP server can\n * return it directly.\n */\n async function query(request, _temp3) {\n let {\n requestContext\n } = _temp3 === void 0 ? {} : _temp3;\n let url = new URL(request.url);\n let method = request.method;\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename);\n // SSR supports HEAD requests while SPA doesn't\n if (!isValidMethod(method) && method !== \"HEAD\") {\n let error = getInternalRouterError(405, {\n method\n });\n let {\n matches: methodNotAllowedMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: methodNotAllowedMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n } else if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: notFoundMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n let result = await queryImpl(request, location, matches, requestContext);\n if (isResponse(result)) {\n return result;\n }\n // When returning StaticHandlerContext, we patch back in the location here\n // since we need it for React Context. But this helps keep our submit and\n // loadRouteData operating on a Request instead of a Location\n return _extends({\n location,\n basename\n }, result);\n }\n /**\n * The queryRoute() method is intended for targeted route requests, either\n * for fetch ?_data requests or resource route requests. In this case, we\n * are only ever calling a single action or loader, and we are returning the\n * returned value directly. In most cases, this will be a Response returned\n * from the action/loader, but it may be a primitive or other value as well -\n * and in such cases the calling context should handle that accordingly.\n *\n * We do respect the throw/return differentiation, so if an action/loader\n * throws, then this method will throw the value. This is important so we\n * can do proper boundary identification in Remix where a thrown Response\n * must go to the Catch Boundary but a returned Response is happy-path.\n *\n * One thing to note is that any Router-initiated Errors that make sense\n * to associate with a status code will be thrown as an ErrorResponse\n * instance which include the raw Error, such that the calling context can\n * serialize the error as they see fit while including the proper response\n * code. Examples here are 404 and 405 errors that occur prior to reaching\n * any user-defined loaders.\n */\n async function queryRoute(request, _temp4) {\n let {\n routeId,\n requestContext\n } = _temp4 === void 0 ? {} : _temp4;\n let url = new URL(request.url);\n let method = request.method;\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename);\n // SSR supports HEAD requests while SPA doesn't\n if (!isValidMethod(method) && method !== \"HEAD\" && method !== \"OPTIONS\") {\n throw getInternalRouterError(405, {\n method\n });\n } else if (!matches) {\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n let match = routeId ? matches.find(m => m.route.id === routeId) : getTargetMatch(matches, location);\n if (routeId && !match) {\n throw getInternalRouterError(403, {\n pathname: location.pathname,\n routeId\n });\n } else if (!match) {\n // This should never hit I don't think?\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n let result = await queryImpl(request, location, matches, requestContext, match);\n if (isResponse(result)) {\n return result;\n }\n let error = result.errors ? Object.values(result.errors)[0] : undefined;\n if (error !== undefined) {\n // If we got back result.errors, that means the loader/action threw\n // _something_ that wasn't a Response, but it's not guaranteed/required\n // to be an `instanceof Error` either, so we have to use throw here to\n // preserve the \"error\" state outside of queryImpl.\n throw error;\n }\n // Pick off the right state value to return\n if (result.actionData) {\n return Object.values(result.actionData)[0];\n }\n if (result.loaderData) {\n var _result$activeDeferre;\n let data = Object.values(result.loaderData)[0];\n if ((_result$activeDeferre = result.activeDeferreds) != null && _result$activeDeferre[match.route.id]) {\n data[UNSAFE_DEFERRED_SYMBOL] = result.activeDeferreds[match.route.id];\n }\n return data;\n }\n return undefined;\n }\n async function queryImpl(request, location, matches, requestContext, routeMatch) {\n invariant(request.signal, \"query()/queryRoute() requests must contain an AbortController signal\");\n try {\n if (isMutationMethod(request.method.toLowerCase())) {\n let result = await submit(request, matches, routeMatch || getTargetMatch(matches, location), requestContext, routeMatch != null);\n return result;\n }\n let result = await loadRouteData(request, matches, requestContext, routeMatch);\n return isResponse(result) ? result : _extends({}, result, {\n actionData: null,\n actionHeaders: {}\n });\n } catch (e) {\n // If the user threw/returned a Response in callLoaderOrAction, we throw\n // it to bail out and then return or throw here based on whether the user\n // returned or threw\n if (isQueryRouteResponse(e)) {\n if (e.type === ResultType.error) {\n throw e.response;\n }\n return e.response;\n }\n // Redirects are always returned since they don't propagate to catch\n // boundaries\n if (isRedirectResponse(e)) {\n return e;\n }\n throw e;\n }\n }\n async function submit(request, matches, actionMatch, requestContext, isRouteRequest) {\n let result;\n if (!actionMatch.route.action && !actionMatch.route.lazy) {\n let error = getInternalRouterError(405, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: actionMatch.route.id\n });\n if (isRouteRequest) {\n throw error;\n }\n result = {\n type: ResultType.error,\n error\n };\n } else {\n result = await callLoaderOrAction(\"action\", request, actionMatch, matches, manifest, mapRouteProperties, basename, future.v7_relativeSplatPath, {\n isStaticRequest: true,\n isRouteRequest,\n requestContext\n });\n if (request.signal.aborted) {\n throwStaticHandlerAbortedError(request, isRouteRequest, future);\n }\n }\n if (isRedirectResult(result)) {\n // Uhhhh - this should never happen, we should always throw these from\n // callLoaderOrAction, but the type narrowing here keeps TS happy and we\n // can get back on the \"throw all redirect responses\" train here should\n // this ever happen :/\n throw new Response(null, {\n status: result.status,\n headers: {\n Location: result.location\n }\n });\n }\n if (isDeferredResult(result)) {\n let error = getInternalRouterError(400, {\n type: \"defer-action\"\n });\n if (isRouteRequest) {\n throw error;\n }\n result = {\n type: ResultType.error,\n error\n };\n }\n if (isRouteRequest) {\n // Note: This should only be non-Response values if we get here, since\n // isRouteRequest should throw any Response received in callLoaderOrAction\n if (isErrorResult(result)) {\n throw result.error;\n }\n return {\n matches: [actionMatch],\n loaderData: {},\n actionData: {\n [actionMatch.route.id]: result.data\n },\n errors: null,\n // Note: statusCode + headers are unused here since queryRoute will\n // return the raw Response or value\n statusCode: 200,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n let context = await loadRouteData(request, matches, requestContext, undefined, {\n [boundaryMatch.route.id]: result.error\n });\n // action status codes take precedence over loader status codes\n return _extends({}, context, {\n statusCode: isRouteErrorResponse(result.error) ? result.error.status : 500,\n actionData: null,\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n }\n // Create a GET request for the loaders\n let loaderRequest = new Request(request.url, {\n headers: request.headers,\n redirect: request.redirect,\n signal: request.signal\n });\n let context = await loadRouteData(loaderRequest, matches, requestContext);\n return _extends({}, context, result.statusCode ? {\n statusCode: result.statusCode\n } : {}, {\n actionData: {\n [actionMatch.route.id]: result.data\n },\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n }\n async function loadRouteData(request, matches, requestContext, routeMatch, pendingActionError) {\n let isRouteRequest = routeMatch != null;\n // Short circuit if we have no loaders to run (queryRoute())\n if (isRouteRequest && !(routeMatch != null && routeMatch.route.loader) && !(routeMatch != null && routeMatch.route.lazy)) {\n throw getInternalRouterError(400, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: routeMatch == null ? void 0 : routeMatch.route.id\n });\n }\n let requestMatches = routeMatch ? [routeMatch] : getLoaderMatchesUntilBoundary(matches, Object.keys(pendingActionError || {})[0]);\n let matchesToLoad = requestMatches.filter(m => m.route.loader || m.route.lazy);\n // Short circuit if we have no loaders to run (query())\n if (matchesToLoad.length === 0) {\n return {\n matches,\n // Add a null for all matched routes for proper revalidation on the client\n loaderData: matches.reduce((acc, m) => Object.assign(acc, {\n [m.route.id]: null\n }), {}),\n errors: pendingActionError || null,\n statusCode: 200,\n loaderHeaders: {},\n activeDeferreds: null\n };\n }\n let results = await Promise.all([...matchesToLoad.map(match => callLoaderOrAction(\"loader\", request, match, matches, manifest, mapRouteProperties, basename, future.v7_relativeSplatPath, {\n isStaticRequest: true,\n isRouteRequest,\n requestContext\n }))]);\n if (request.signal.aborted) {\n throwStaticHandlerAbortedError(request, isRouteRequest, future);\n }\n // Process and commit output from loaders\n let activeDeferreds = new Map();\n let context = processRouteLoaderData(matches, matchesToLoad, results, pendingActionError, activeDeferreds);\n // Add a null for any non-loader matches for proper revalidation on the client\n let executedLoaders = new Set(matchesToLoad.map(match => match.route.id));\n matches.forEach(match => {\n if (!executedLoaders.has(match.route.id)) {\n context.loaderData[match.route.id] = null;\n }\n });\n return _extends({}, context, {\n matches,\n activeDeferreds: activeDeferreds.size > 0 ? Object.fromEntries(activeDeferreds.entries()) : null\n });\n }\n return {\n dataRoutes,\n query,\n queryRoute\n };\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Helpers\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Given an existing StaticHandlerContext and an error thrown at render time,\n * provide an updated StaticHandlerContext suitable for a second SSR render\n */\nfunction getStaticContextFromError(routes, context, error) {\n let newContext = _extends({}, context, {\n statusCode: isRouteErrorResponse(error) ? error.status : 500,\n errors: {\n [context._deepestRenderedBoundaryId || routes[0].id]: error\n }\n });\n return newContext;\n}\nfunction throwStaticHandlerAbortedError(request, isRouteRequest, future) {\n if (future.v7_throwAbortReason && request.signal.reason !== undefined) {\n throw request.signal.reason;\n }\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(method + \"() call aborted: \" + request.method + \" \" + request.url);\n}\nfunction isSubmissionNavigation(opts) {\n return opts != null && (\"formData\" in opts && opts.formData != null || \"body\" in opts && opts.body !== undefined);\n}\nfunction normalizeTo(location, matches, basename, prependBasename, to, v7_relativeSplatPath, fromRouteId, relative) {\n let contextualMatches;\n let activeRouteMatch;\n if (fromRouteId) {\n // Grab matches up to the calling route so our route-relative logic is\n // relative to the correct source route\n contextualMatches = [];\n for (let match of matches) {\n contextualMatches.push(match);\n if (match.route.id === fromRouteId) {\n activeRouteMatch = match;\n break;\n }\n }\n } else {\n contextualMatches = matches;\n activeRouteMatch = matches[matches.length - 1];\n }\n // Resolve the relative path\n let path = resolveTo(to ? to : \".\", getResolveToMatches(contextualMatches, v7_relativeSplatPath), stripBasename(location.pathname, basename) || location.pathname, relative === \"path\");\n // When `to` is not specified we inherit search/hash from the current\n // location, unlike when to=\".\" and we just inherit the path.\n // See https://github.com/remix-run/remix/issues/927\n if (to == null) {\n path.search = location.search;\n path.hash = location.hash;\n }\n // Add an ?index param for matched index routes if we don't already have one\n if ((to == null || to === \"\" || to === \".\") && activeRouteMatch && activeRouteMatch.route.index && !hasNakedIndexQuery(path.search)) {\n path.search = path.search ? path.search.replace(/^\\?/, \"?index&\") : \"?index\";\n }\n // If we're operating within a basename, prepend it to the pathname. If\n // this is a root navigation, then just use the raw basename which allows\n // the basename to have full control over the presence of a trailing slash\n // on root actions\n if (prependBasename && basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n return createPath(path);\n}\n// Normalize navigation options by converting formMethod=GET formData objects to\n// URLSearchParams so they behave identically to links with query params\nfunction normalizeNavigateOptions(normalizeFormMethod, isFetcher, path, opts) {\n // Return location verbatim on non-submission navigations\n if (!opts || !isSubmissionNavigation(opts)) {\n return {\n path\n };\n }\n if (opts.formMethod && !isValidMethod(opts.formMethod)) {\n return {\n path,\n error: getInternalRouterError(405, {\n method: opts.formMethod\n })\n };\n }\n let getInvalidBodyError = () => ({\n path,\n error: getInternalRouterError(400, {\n type: \"invalid-body\"\n })\n });\n // Create a Submission on non-GET navigations\n let rawFormMethod = opts.formMethod || \"get\";\n let formMethod = normalizeFormMethod ? rawFormMethod.toUpperCase() : rawFormMethod.toLowerCase();\n let formAction = stripHashFromPath(path);\n if (opts.body !== undefined) {\n if (opts.formEncType === \"text/plain\") {\n // text only support POST/PUT/PATCH/DELETE submissions\n if (!isMutationMethod(formMethod)) {\n return getInvalidBodyError();\n }\n let text = typeof opts.body === \"string\" ? opts.body : opts.body instanceof FormData || opts.body instanceof URLSearchParams ?\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data\n Array.from(opts.body.entries()).reduce((acc, _ref5) => {\n let [name, value] = _ref5;\n return \"\" + acc + name + \"=\" + value + \"\\n\";\n }, \"\") : String(opts.body);\n return {\n path,\n submission: {\n formMethod,\n formAction,\n formEncType: opts.formEncType,\n formData: undefined,\n json: undefined,\n text\n }\n };\n } else if (opts.formEncType === \"application/json\") {\n // json only supports POST/PUT/PATCH/DELETE submissions\n if (!isMutationMethod(formMethod)) {\n return getInvalidBodyError();\n }\n try {\n let json = typeof opts.body === \"string\" ? JSON.parse(opts.body) : opts.body;\n return {\n path,\n submission: {\n formMethod,\n formAction,\n formEncType: opts.formEncType,\n formData: undefined,\n json,\n text: undefined\n }\n };\n } catch (e) {\n return getInvalidBodyError();\n }\n }\n }\n invariant(typeof FormData === \"function\", \"FormData is not available in this environment\");\n let searchParams;\n let formData;\n if (opts.formData) {\n searchParams = convertFormDataToSearchParams(opts.formData);\n formData = opts.formData;\n } else if (opts.body instanceof FormData) {\n searchParams = convertFormDataToSearchParams(opts.body);\n formData = opts.body;\n } else if (opts.body instanceof URLSearchParams) {\n searchParams = opts.body;\n formData = convertSearchParamsToFormData(searchParams);\n } else if (opts.body == null) {\n searchParams = new URLSearchParams();\n formData = new FormData();\n } else {\n try {\n searchParams = new URLSearchParams(opts.body);\n formData = convertSearchParamsToFormData(searchParams);\n } catch (e) {\n return getInvalidBodyError();\n }\n }\n let submission = {\n formMethod,\n formAction,\n formEncType: opts && opts.formEncType || \"application/x-www-form-urlencoded\",\n formData,\n json: undefined,\n text: undefined\n };\n if (isMutationMethod(submission.formMethod)) {\n return {\n path,\n submission\n };\n }\n // Flatten submission onto URLSearchParams for GET submissions\n let parsedPath = parsePath(path);\n // On GET navigation submissions we can drop the ?index param from the\n // resulting location since all loaders will run. But fetcher GET submissions\n // only run a single loader so we need to preserve any incoming ?index params\n if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) {\n searchParams.append(\"index\", \"\");\n }\n parsedPath.search = \"?\" + searchParams;\n return {\n path: createPath(parsedPath),\n submission\n };\n}\n// Filter out all routes below any caught error as they aren't going to\n// render so we don't need to load them\nfunction getLoaderMatchesUntilBoundary(matches, boundaryId) {\n let boundaryMatches = matches;\n if (boundaryId) {\n let index = matches.findIndex(m => m.route.id === boundaryId);\n if (index >= 0) {\n boundaryMatches = matches.slice(0, index);\n }\n }\n return boundaryMatches;\n}\nfunction getMatchesToLoad(history, state, matches, submission, location, isInitialLoad, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionData, pendingError) {\n let actionResult = pendingError ? Object.values(pendingError)[0] : pendingActionData ? Object.values(pendingActionData)[0] : undefined;\n let currentUrl = history.createURL(state.location);\n let nextUrl = history.createURL(location);\n // Pick navigation matches that are net-new or qualify for revalidation\n let boundaryId = pendingError ? Object.keys(pendingError)[0] : undefined;\n let boundaryMatches = getLoaderMatchesUntilBoundary(matches, boundaryId);\n let navigationMatches = boundaryMatches.filter((match, index) => {\n let {\n route\n } = match;\n if (route.lazy) {\n // We haven't loaded this route yet so we don't know if it's got a loader!\n return true;\n }\n if (route.loader == null) {\n return false;\n }\n if (isInitialLoad) {\n if (route.loader.hydrate) {\n return true;\n }\n return state.loaderData[route.id] === undefined && (\n // Don't re-run if the loader ran and threw an error\n !state.errors || state.errors[route.id] === undefined);\n }\n // Always call the loader on new route instances and pending defer cancellations\n if (isNewLoader(state.loaderData, state.matches[index], match) || cancelledDeferredRoutes.some(id => id === match.route.id)) {\n return true;\n }\n // This is the default implementation for when we revalidate. If the route\n // provides it's own implementation, then we give them full control but\n // provide this value so they can leverage it if needed after they check\n // their own specific use cases\n let currentRouteMatch = state.matches[index];\n let nextRouteMatch = match;\n return shouldRevalidateLoader(match, _extends({\n currentUrl,\n currentParams: currentRouteMatch.params,\n nextUrl,\n nextParams: nextRouteMatch.params\n }, submission, {\n actionResult,\n defaultShouldRevalidate:\n // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate\n isRevalidationRequired ||\n // Clicked the same link, resubmitted a GET form\n currentUrl.pathname + currentUrl.search === nextUrl.pathname + nextUrl.search ||\n // Search params affect all loaders\n currentUrl.search !== nextUrl.search || isNewRouteInstance(currentRouteMatch, nextRouteMatch)\n }));\n });\n // Pick fetcher.loads that need to be revalidated\n let revalidatingFetchers = [];\n fetchLoadMatches.forEach((f, key) => {\n // Don't revalidate:\n // - on initial load (shouldn't be any fetchers then anyway)\n // - if fetcher won't be present in the subsequent render\n // - no longer matches the URL (v7_fetcherPersist=false)\n // - was unmounted but persisted due to v7_fetcherPersist=true\n if (isInitialLoad || !matches.some(m => m.route.id === f.routeId) || deletedFetchers.has(key)) {\n return;\n }\n let fetcherMatches = matchRoutes(routesToUse, f.path, basename);\n // If the fetcher path no longer matches, push it in with null matches so\n // we can trigger a 404 in callLoadersAndMaybeResolveData. Note this is\n // currently only a use-case for Remix HMR where the route tree can change\n // at runtime and remove a route previously loaded via a fetcher\n if (!fetcherMatches) {\n revalidatingFetchers.push({\n key,\n routeId: f.routeId,\n path: f.path,\n matches: null,\n match: null,\n controller: null\n });\n return;\n }\n // Revalidating fetchers are decoupled from the route matches since they\n // load from a static href. They revalidate based on explicit revalidation\n // (submission, useRevalidator, or X-Remix-Revalidate)\n let fetcher = state.fetchers.get(key);\n let fetcherMatch = getTargetMatch(fetcherMatches, f.path);\n let shouldRevalidate = false;\n if (fetchRedirectIds.has(key)) {\n // Never trigger a revalidation of an actively redirecting fetcher\n shouldRevalidate = false;\n } else if (cancelledFetcherLoads.includes(key)) {\n // Always revalidate if the fetcher was cancelled\n shouldRevalidate = true;\n } else if (fetcher && fetcher.state !== \"idle\" && fetcher.data === undefined) {\n // If the fetcher hasn't ever completed loading yet, then this isn't a\n // revalidation, it would just be a brand new load if an explicit\n // revalidation is required\n shouldRevalidate = isRevalidationRequired;\n } else {\n // Otherwise fall back on any user-defined shouldRevalidate, defaulting\n // to explicit revalidations only\n shouldRevalidate = shouldRevalidateLoader(fetcherMatch, _extends({\n currentUrl,\n currentParams: state.matches[state.matches.length - 1].params,\n nextUrl,\n nextParams: matches[matches.length - 1].params\n }, submission, {\n actionResult,\n defaultShouldRevalidate: isRevalidationRequired\n }));\n }\n if (shouldRevalidate) {\n revalidatingFetchers.push({\n key,\n routeId: f.routeId,\n path: f.path,\n matches: fetcherMatches,\n match: fetcherMatch,\n controller: new AbortController()\n });\n }\n });\n return [navigationMatches, revalidatingFetchers];\n}\nfunction isNewLoader(currentLoaderData, currentMatch, match) {\n let isNew =\n // [a] -> [a, b]\n !currentMatch ||\n // [a, b] -> [a, c]\n match.route.id !== currentMatch.route.id;\n // Handle the case that we don't have data for a re-used route, potentially\n // from a prior error or from a cancelled pending deferred\n let isMissingData = currentLoaderData[match.route.id] === undefined;\n // Always load if this is a net-new route or we don't yet have data\n return isNew || isMissingData;\n}\nfunction isNewRouteInstance(currentMatch, match) {\n let currentPath = currentMatch.route.path;\n return (\n // param change for this match, /users/123 -> /users/456\n currentMatch.pathname !== match.pathname ||\n // splat param changed, which is not present in match.path\n // e.g. /files/images/avatar.jpg -> files/finances.xls\n currentPath != null && currentPath.endsWith(\"*\") && currentMatch.params[\"*\"] !== match.params[\"*\"]\n );\n}\nfunction shouldRevalidateLoader(loaderMatch, arg) {\n if (loaderMatch.route.shouldRevalidate) {\n let routeChoice = loaderMatch.route.shouldRevalidate(arg);\n if (typeof routeChoice === \"boolean\") {\n return routeChoice;\n }\n }\n return arg.defaultShouldRevalidate;\n}\n/**\n * Execute route.lazy() methods to lazily load route modules (loader, action,\n * shouldRevalidate) and update the routeManifest in place which shares objects\n * with dataRoutes so those get updated as well.\n */\nasync function loadLazyRouteModule(route, mapRouteProperties, manifest) {\n if (!route.lazy) {\n return;\n }\n let lazyRoute = await route.lazy();\n // If the lazy route function was executed and removed by another parallel\n // call then we can return - first lazy() to finish wins because the return\n // value of lazy is expected to be static\n if (!route.lazy) {\n return;\n }\n let routeToUpdate = manifest[route.id];\n invariant(routeToUpdate, \"No route found in manifest\");\n // Update the route in place. This should be safe because there's no way\n // we could yet be sitting on this route as we can't get there without\n // resolving lazy() first.\n //\n // This is different than the HMR \"update\" use-case where we may actively be\n // on the route being updated. The main concern boils down to \"does this\n // mutation affect any ongoing navigations or any current state.matches\n // values?\". If not, it should be safe to update in place.\n let routeUpdates = {};\n for (let lazyRouteProperty in lazyRoute) {\n let staticRouteValue = routeToUpdate[lazyRouteProperty];\n let isPropertyStaticallyDefined = staticRouteValue !== undefined &&\n // This property isn't static since it should always be updated based\n // on the route updates\n lazyRouteProperty !== \"hasErrorBoundary\";\n warning(!isPropertyStaticallyDefined, \"Route \\\"\" + routeToUpdate.id + \"\\\" has a static property \\\"\" + lazyRouteProperty + \"\\\" \" + \"defined but its lazy function is also returning a value for this property. \" + (\"The lazy route property \\\"\" + lazyRouteProperty + \"\\\" will be ignored.\"));\n if (!isPropertyStaticallyDefined && !immutableRouteKeys.has(lazyRouteProperty)) {\n routeUpdates[lazyRouteProperty] = lazyRoute[lazyRouteProperty];\n }\n }\n // Mutate the route with the provided updates. Do this first so we pass\n // the updated version to mapRouteProperties\n Object.assign(routeToUpdate, routeUpdates);\n // Mutate the `hasErrorBoundary` property on the route based on the route\n // updates and remove the `lazy` function so we don't resolve the lazy\n // route again.\n Object.assign(routeToUpdate, _extends({}, mapRouteProperties(routeToUpdate), {\n lazy: undefined\n }));\n}\nasync function callLoaderOrAction(type, request, match, matches, manifest, mapRouteProperties, basename, v7_relativeSplatPath, opts) {\n if (opts === void 0) {\n opts = {};\n }\n let resultType;\n let result;\n let onReject;\n let runHandler = handler => {\n // Setup a promise we can race against so that abort signals short circuit\n let reject;\n let abortPromise = new Promise((_, r) => reject = r);\n onReject = () => reject();\n request.signal.addEventListener(\"abort\", onReject);\n return Promise.race([handler({\n request,\n params: match.params,\n context: opts.requestContext\n }), abortPromise]);\n };\n try {\n let handler = match.route[type];\n if (match.route.lazy) {\n if (handler) {\n // Run statically defined handler in parallel with lazy()\n let handlerError;\n let values = await Promise.all([\n // If the handler throws, don't let it immediately bubble out,\n // since we need to let the lazy() execution finish so we know if this\n // route has a boundary that can handle the error\n runHandler(handler).catch(e => {\n handlerError = e;\n }), loadLazyRouteModule(match.route, mapRouteProperties, manifest)]);\n if (handlerError) {\n throw handlerError;\n }\n result = values[0];\n } else {\n // Load lazy route module, then run any returned handler\n await loadLazyRouteModule(match.route, mapRouteProperties, manifest);\n handler = match.route[type];\n if (handler) {\n // Handler still run even if we got interrupted to maintain consistency\n // with un-abortable behavior of handler execution on non-lazy or\n // previously-lazy-loaded routes\n result = await runHandler(handler);\n } else if (type === \"action\") {\n let url = new URL(request.url);\n let pathname = url.pathname + url.search;\n throw getInternalRouterError(405, {\n method: request.method,\n pathname,\n routeId: match.route.id\n });\n } else {\n // lazy() route has no loader to run. Short circuit here so we don't\n // hit the invariant below that errors on returning undefined.\n return {\n type: ResultType.data,\n data: undefined\n };\n }\n }\n } else if (!handler) {\n let url = new URL(request.url);\n let pathname = url.pathname + url.search;\n throw getInternalRouterError(404, {\n pathname\n });\n } else {\n result = await runHandler(handler);\n }\n invariant(result !== undefined, \"You defined \" + (type === \"action\" ? \"an action\" : \"a loader\") + \" for route \" + (\"\\\"\" + match.route.id + \"\\\" but didn't return anything from your `\" + type + \"` \") + \"function. Please return a value or `null`.\");\n } catch (e) {\n resultType = ResultType.error;\n result = e;\n } finally {\n if (onReject) {\n request.signal.removeEventListener(\"abort\", onReject);\n }\n }\n if (isResponse(result)) {\n let status = result.status;\n // Process redirects\n if (redirectStatusCodes.has(status)) {\n let location = result.headers.get(\"Location\");\n invariant(location, \"Redirects returned/thrown from loaders/actions must have a Location header\");\n // Support relative routing in internal redirects\n if (!ABSOLUTE_URL_REGEX.test(location)) {\n location = normalizeTo(new URL(request.url), matches.slice(0, matches.indexOf(match) + 1), basename, true, location, v7_relativeSplatPath);\n } else if (!opts.isStaticRequest) {\n // Strip off the protocol+origin for same-origin + same-basename absolute\n // redirects. If this is a static request, we can let it go back to the\n // browser as-is\n let currentUrl = new URL(request.url);\n let url = location.startsWith(\"//\") ? new URL(currentUrl.protocol + location) : new URL(location);\n let isSameBasename = stripBasename(url.pathname, basename) != null;\n if (url.origin === currentUrl.origin && isSameBasename) {\n location = url.pathname + url.search + url.hash;\n }\n }\n // Don't process redirects in the router during static requests requests.\n // Instead, throw the Response and let the server handle it with an HTTP\n // redirect. We also update the Location header in place in this flow so\n // basename and relative routing is taken into account\n if (opts.isStaticRequest) {\n result.headers.set(\"Location\", location);\n throw result;\n }\n return {\n type: ResultType.redirect,\n status,\n location,\n revalidate: result.headers.get(\"X-Remix-Revalidate\") !== null,\n reloadDocument: result.headers.get(\"X-Remix-Reload-Document\") !== null\n };\n }\n // For SSR single-route requests, we want to hand Responses back directly\n // without unwrapping. We do this with the QueryRouteResponse wrapper\n // interface so we can know whether it was returned or thrown\n if (opts.isRouteRequest) {\n let queryRouteResponse = {\n type: resultType === ResultType.error ? ResultType.error : ResultType.data,\n response: result\n };\n throw queryRouteResponse;\n }\n let data;\n try {\n let contentType = result.headers.get(\"Content-Type\");\n // Check between word boundaries instead of startsWith() due to the last\n // paragraph of https://httpwg.org/specs/rfc9110.html#field.content-type\n if (contentType && /\\bapplication\\/json\\b/.test(contentType)) {\n if (result.body == null) {\n data = null;\n } else {\n data = await result.json();\n }\n } else {\n data = await result.text();\n }\n } catch (e) {\n return {\n type: ResultType.error,\n error: e\n };\n }\n if (resultType === ResultType.error) {\n return {\n type: resultType,\n error: new ErrorResponseImpl(status, result.statusText, data),\n headers: result.headers\n };\n }\n return {\n type: ResultType.data,\n data,\n statusCode: result.status,\n headers: result.headers\n };\n }\n if (resultType === ResultType.error) {\n return {\n type: resultType,\n error: result\n };\n }\n if (isDeferredData(result)) {\n var _result$init, _result$init2;\n return {\n type: ResultType.deferred,\n deferredData: result,\n statusCode: (_result$init = result.init) == null ? void 0 : _result$init.status,\n headers: ((_result$init2 = result.init) == null ? void 0 : _result$init2.headers) && new Headers(result.init.headers)\n };\n }\n return {\n type: ResultType.data,\n data: result\n };\n}\n// Utility method for creating the Request instances for loaders/actions during\n// client-side navigations and fetches. During SSR we will always have a\n// Request instance from the static handler (query/queryRoute)\nfunction createClientSideRequest(history, location, signal, submission) {\n let url = history.createURL(stripHashFromPath(location)).toString();\n let init = {\n signal\n };\n if (submission && isMutationMethod(submission.formMethod)) {\n let {\n formMethod,\n formEncType\n } = submission;\n // Didn't think we needed this but it turns out unlike other methods, patch\n // won't be properly normalized to uppercase and results in a 405 error.\n // See: https://fetch.spec.whatwg.org/#concept-method\n init.method = formMethod.toUpperCase();\n if (formEncType === \"application/json\") {\n init.headers = new Headers({\n \"Content-Type\": formEncType\n });\n init.body = JSON.stringify(submission.json);\n } else if (formEncType === \"text/plain\") {\n // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n init.body = submission.text;\n } else if (formEncType === \"application/x-www-form-urlencoded\" && submission.formData) {\n // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n init.body = convertFormDataToSearchParams(submission.formData);\n } else {\n // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n init.body = submission.formData;\n }\n }\n return new Request(url, init);\n}\nfunction convertFormDataToSearchParams(formData) {\n let searchParams = new URLSearchParams();\n for (let [key, value] of formData.entries()) {\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs\n searchParams.append(key, typeof value === \"string\" ? value : value.name);\n }\n return searchParams;\n}\nfunction convertSearchParamsToFormData(searchParams) {\n let formData = new FormData();\n for (let [key, value] of searchParams.entries()) {\n formData.append(key, value);\n }\n return formData;\n}\nfunction processRouteLoaderData(matches, matchesToLoad, results, pendingError, activeDeferreds) {\n // Fill in loaderData/errors from our loaders\n let loaderData = {};\n let errors = null;\n let statusCode;\n let foundError = false;\n let loaderHeaders = {};\n // Process loader results into state.loaderData/state.errors\n results.forEach((result, index) => {\n let id = matchesToLoad[index].route.id;\n invariant(!isRedirectResult(result), \"Cannot handle redirect results in processLoaderData\");\n if (isErrorResult(result)) {\n // Look upwards from the matched route for the closest ancestor\n // error boundary, defaulting to the root match\n let boundaryMatch = findNearestBoundary(matches, id);\n let error = result.error;\n // If we have a pending action error, we report it at the highest-route\n // that throws a loader error, and then clear it out to indicate that\n // it was consumed\n if (pendingError) {\n error = Object.values(pendingError)[0];\n pendingError = undefined;\n }\n errors = errors || {};\n // Prefer higher error values if lower errors bubble to the same boundary\n if (errors[boundaryMatch.route.id] == null) {\n errors[boundaryMatch.route.id] = error;\n }\n // Clear our any prior loaderData for the throwing route\n loaderData[id] = undefined;\n // Once we find our first (highest) error, we set the status code and\n // prevent deeper status codes from overriding\n if (!foundError) {\n foundError = true;\n statusCode = isRouteErrorResponse(result.error) ? result.error.status : 500;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n } else {\n if (isDeferredResult(result)) {\n activeDeferreds.set(id, result.deferredData);\n loaderData[id] = result.deferredData.data;\n } else {\n loaderData[id] = result.data;\n }\n // Error status codes always override success status codes, but if all\n // loaders are successful we take the deepest status code.\n if (result.statusCode != null && result.statusCode !== 200 && !foundError) {\n statusCode = result.statusCode;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n }\n });\n // If we didn't consume the pending action error (i.e., all loaders\n // resolved), then consume it here. Also clear out any loaderData for the\n // throwing route\n if (pendingError) {\n errors = pendingError;\n loaderData[Object.keys(pendingError)[0]] = undefined;\n }\n return {\n loaderData,\n errors,\n statusCode: statusCode || 200,\n loaderHeaders\n };\n}\nfunction processLoaderData(state, matches, matchesToLoad, results, pendingError, revalidatingFetchers, fetcherResults, activeDeferreds) {\n let {\n loaderData,\n errors\n } = processRouteLoaderData(matches, matchesToLoad, results, pendingError, activeDeferreds);\n // Process results from our revalidating fetchers\n for (let index = 0; index < revalidatingFetchers.length; index++) {\n let {\n key,\n match,\n controller\n } = revalidatingFetchers[index];\n invariant(fetcherResults !== undefined && fetcherResults[index] !== undefined, \"Did not find corresponding fetcher result\");\n let result = fetcherResults[index];\n // Process fetcher non-redirect errors\n if (controller && controller.signal.aborted) {\n // Nothing to do for aborted fetchers\n continue;\n } else if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, match == null ? void 0 : match.route.id);\n if (!(errors && errors[boundaryMatch.route.id])) {\n errors = _extends({}, errors, {\n [boundaryMatch.route.id]: result.error\n });\n }\n state.fetchers.delete(key);\n } else if (isRedirectResult(result)) {\n // Should never get here, redirects should get processed above, but we\n // keep this to type narrow to a success result in the else\n invariant(false, \"Unhandled fetcher revalidation redirect\");\n } else if (isDeferredResult(result)) {\n // Should never get here, deferred data should be awaited for fetchers\n // in resolveDeferredResults\n invariant(false, \"Unhandled fetcher deferred data\");\n } else {\n let doneFetcher = getDoneFetcher(result.data);\n state.fetchers.set(key, doneFetcher);\n }\n }\n return {\n loaderData,\n errors\n };\n}\nfunction mergeLoaderData(loaderData, newLoaderData, matches, errors) {\n let mergedLoaderData = _extends({}, newLoaderData);\n for (let match of matches) {\n let id = match.route.id;\n if (newLoaderData.hasOwnProperty(id)) {\n if (newLoaderData[id] !== undefined) {\n mergedLoaderData[id] = newLoaderData[id];\n }\n } else if (loaderData[id] !== undefined && match.route.loader) {\n // Preserve existing keys not included in newLoaderData and where a loader\n // wasn't removed by HMR\n mergedLoaderData[id] = loaderData[id];\n }\n if (errors && errors.hasOwnProperty(id)) {\n // Don't keep any loader data below the boundary\n break;\n }\n }\n return mergedLoaderData;\n}\n// Find the nearest error boundary, looking upwards from the leaf route (or the\n// route specified by routeId) for the closest ancestor error boundary,\n// defaulting to the root match\nfunction findNearestBoundary(matches, routeId) {\n let eligibleMatches = routeId ? matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1) : [...matches];\n return eligibleMatches.reverse().find(m => m.route.hasErrorBoundary === true) || matches[0];\n}\nfunction getShortCircuitMatches(routes) {\n // Prefer a root layout route if present, otherwise shim in a route object\n let route = routes.length === 1 ? routes[0] : routes.find(r => r.index || !r.path || r.path === \"/\") || {\n id: \"__shim-error-route__\"\n };\n return {\n matches: [{\n params: {},\n pathname: \"\",\n pathnameBase: \"\",\n route\n }],\n route\n };\n}\nfunction getInternalRouterError(status, _temp5) {\n let {\n pathname,\n routeId,\n method,\n type\n } = _temp5 === void 0 ? {} : _temp5;\n let statusText = \"Unknown Server Error\";\n let errorMessage = \"Unknown @remix-run/router error\";\n if (status === 400) {\n statusText = \"Bad Request\";\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide a `loader` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (type === \"defer-action\") {\n errorMessage = \"defer() is not supported in actions\";\n } else if (type === \"invalid-body\") {\n errorMessage = \"Unable to encode submission body\";\n }\n } else if (status === 403) {\n statusText = \"Forbidden\";\n errorMessage = \"Route \\\"\" + routeId + \"\\\" does not match URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 404) {\n statusText = \"Not Found\";\n errorMessage = \"No route matches URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 405) {\n statusText = \"Method Not Allowed\";\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method.toUpperCase() + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide an `action` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (method) {\n errorMessage = \"Invalid request method \\\"\" + method.toUpperCase() + \"\\\"\";\n }\n }\n return new ErrorResponseImpl(status || 500, statusText, new Error(errorMessage), true);\n}\n// Find any returned redirect errors, starting from the lowest match\nfunction findRedirect(results) {\n for (let i = results.length - 1; i >= 0; i--) {\n let result = results[i];\n if (isRedirectResult(result)) {\n return {\n result,\n idx: i\n };\n }\n }\n}\nfunction stripHashFromPath(path) {\n let parsedPath = typeof path === \"string\" ? parsePath(path) : path;\n return createPath(_extends({}, parsedPath, {\n hash: \"\"\n }));\n}\nfunction isHashChangeOnly(a, b) {\n if (a.pathname !== b.pathname || a.search !== b.search) {\n return false;\n }\n if (a.hash === \"\") {\n // /page -> /page#hash\n return b.hash !== \"\";\n } else if (a.hash === b.hash) {\n // /page#hash -> /page#hash\n return true;\n } else if (b.hash !== \"\") {\n // /page#hash -> /page#other\n return true;\n }\n // If the hash is removed the browser will re-perform a request to the server\n // /page#hash -> /page\n return false;\n}\nfunction isDeferredResult(result) {\n return result.type === ResultType.deferred;\n}\nfunction isErrorResult(result) {\n return result.type === ResultType.error;\n}\nfunction isRedirectResult(result) {\n return (result && result.type) === ResultType.redirect;\n}\nfunction isDeferredData(value) {\n let deferred = value;\n return deferred && typeof deferred === \"object\" && typeof deferred.data === \"object\" && typeof deferred.subscribe === \"function\" && typeof deferred.cancel === \"function\" && typeof deferred.resolveData === \"function\";\n}\nfunction isResponse(value) {\n return value != null && typeof value.status === \"number\" && typeof value.statusText === \"string\" && typeof value.headers === \"object\" && typeof value.body !== \"undefined\";\n}\nfunction isRedirectResponse(result) {\n if (!isResponse(result)) {\n return false;\n }\n let status = result.status;\n let location = result.headers.get(\"Location\");\n return status >= 300 && status <= 399 && location != null;\n}\nfunction isQueryRouteResponse(obj) {\n return obj && isResponse(obj.response) && (obj.type === ResultType.data || obj.type === ResultType.error);\n}\nfunction isValidMethod(method) {\n return validRequestMethods.has(method.toLowerCase());\n}\nfunction isMutationMethod(method) {\n return validMutationMethods.has(method.toLowerCase());\n}\nasync function resolveDeferredResults(currentMatches, matchesToLoad, results, signals, isFetcher, currentLoaderData) {\n for (let index = 0; index < results.length; index++) {\n let result = results[index];\n let match = matchesToLoad[index];\n // If we don't have a match, then we can have a deferred result to do\n // anything with. This is for revalidating fetchers where the route was\n // removed during HMR\n if (!match) {\n continue;\n }\n let currentMatch = currentMatches.find(m => m.route.id === match.route.id);\n let isRevalidatingLoader = currentMatch != null && !isNewRouteInstance(currentMatch, match) && (currentLoaderData && currentLoaderData[match.route.id]) !== undefined;\n if (isDeferredResult(result) && (isFetcher || isRevalidatingLoader)) {\n // Note: we do not have to touch activeDeferreds here since we race them\n // against the signal in resolveDeferredData and they'll get aborted\n // there if needed\n let signal = signals[index];\n invariant(signal, \"Expected an AbortSignal for revalidating fetcher deferred result\");\n await resolveDeferredData(result, signal, isFetcher).then(result => {\n if (result) {\n results[index] = result || results[index];\n }\n });\n }\n }\n}\nasync function resolveDeferredData(result, signal, unwrap) {\n if (unwrap === void 0) {\n unwrap = false;\n }\n let aborted = await result.deferredData.resolveData(signal);\n if (aborted) {\n return;\n }\n if (unwrap) {\n try {\n return {\n type: ResultType.data,\n data: result.deferredData.unwrappedData\n };\n } catch (e) {\n // Handle any TrackedPromise._error values encountered while unwrapping\n return {\n type: ResultType.error,\n error: e\n };\n }\n }\n return {\n type: ResultType.data,\n data: result.deferredData.data\n };\n}\nfunction hasNakedIndexQuery(search) {\n return new URLSearchParams(search).getAll(\"index\").some(v => v === \"\");\n}\nfunction getTargetMatch(matches, location) {\n let search = typeof location === \"string\" ? parsePath(location).search : location.search;\n if (matches[matches.length - 1].route.index && hasNakedIndexQuery(search || \"\")) {\n // Return the leaf index route when index is present\n return matches[matches.length - 1];\n }\n // Otherwise grab the deepest \"path contributing\" match (ignoring index and\n // pathless layout routes)\n let pathMatches = getPathContributingMatches(matches);\n return pathMatches[pathMatches.length - 1];\n}\nfunction getSubmissionFromNavigation(navigation) {\n let {\n formMethod,\n formAction,\n formEncType,\n text,\n formData,\n json\n } = navigation;\n if (!formMethod || !formAction || !formEncType) {\n return;\n }\n if (text != null) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData: undefined,\n json: undefined,\n text\n };\n } else if (formData != null) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData,\n json: undefined,\n text: undefined\n };\n } else if (json !== undefined) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData: undefined,\n json,\n text: undefined\n };\n }\n}\nfunction getLoadingNavigation(location, submission) {\n if (submission) {\n let navigation = {\n state: \"loading\",\n location,\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text\n };\n return navigation;\n } else {\n let navigation = {\n state: \"loading\",\n location,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined\n };\n return navigation;\n }\n}\nfunction getSubmittingNavigation(location, submission) {\n let navigation = {\n state: \"submitting\",\n location,\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text\n };\n return navigation;\n}\nfunction getLoadingFetcher(submission, data) {\n if (submission) {\n let fetcher = {\n state: \"loading\",\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text,\n data\n };\n return fetcher;\n } else {\n let fetcher = {\n state: \"loading\",\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined,\n data\n };\n return fetcher;\n }\n}\nfunction getSubmittingFetcher(submission, existingFetcher) {\n let fetcher = {\n state: \"submitting\",\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text,\n data: existingFetcher ? existingFetcher.data : undefined\n };\n return fetcher;\n}\nfunction getDoneFetcher(data) {\n let fetcher = {\n state: \"idle\",\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined,\n data\n };\n return fetcher;\n}\nfunction restoreAppliedTransitions(_window, transitions) {\n try {\n let sessionPositions = _window.sessionStorage.getItem(TRANSITIONS_STORAGE_KEY);\n if (sessionPositions) {\n let json = JSON.parse(sessionPositions);\n for (let [k, v] of Object.entries(json || {})) {\n if (v && Array.isArray(v)) {\n transitions.set(k, new Set(v || []));\n }\n }\n }\n } catch (e) {\n // no-op, use default empty object\n }\n}\nfunction persistAppliedTransitions(_window, transitions) {\n if (transitions.size > 0) {\n let json = {};\n for (let [k, v] of transitions) {\n json[k] = [...v];\n }\n try {\n _window.sessionStorage.setItem(TRANSITIONS_STORAGE_KEY, JSON.stringify(json));\n } catch (error) {\n warning(false, \"Failed to save applied view transitions in sessionStorage (\" + error + \").\");\n }\n }\n}\n//#endregion\n\nexport { AbortedDeferredError, Action, IDLE_BLOCKER, IDLE_FETCHER, IDLE_NAVIGATION, UNSAFE_DEFERRED_SYMBOL, DeferredData as UNSAFE_DeferredData, ErrorResponseImpl as UNSAFE_ErrorResponseImpl, convertRouteMatchToUiMatch as UNSAFE_convertRouteMatchToUiMatch, convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes, getResolveToMatches as UNSAFE_getResolveToMatches, invariant as UNSAFE_invariant, warning as UNSAFE_warning, createBrowserHistory, createHashHistory, createMemoryHistory, createPath, createRouter, createStaticHandler, defer, generatePath, getStaticContextFromError, getToPathname, isDeferredData, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, parsePath, redirect, redirectDocument, resolvePath, resolveTo, stripBasename };\n//# sourceMappingURL=router.js.map\n","/**\n * React Router v6.22.3\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport * as React from 'react';\nimport { UNSAFE_invariant, joinPaths, matchPath, UNSAFE_getResolveToMatches, UNSAFE_warning, resolveTo, parsePath, matchRoutes, Action, UNSAFE_convertRouteMatchToUiMatch, stripBasename, IDLE_BLOCKER, isRouteErrorResponse, createMemoryHistory, AbortedDeferredError, createRouter } from '@remix-run/router';\nexport { AbortedDeferredError, Action as NavigationType, createPath, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, redirectDocument, resolvePath } from '@remix-run/router';\n\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n// Create react-specific types from the agnostic types in @remix-run/router to\n// export from react-router\nconst DataRouterContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterContext.displayName = \"DataRouter\";\n}\nconst DataRouterStateContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterStateContext.displayName = \"DataRouterState\";\n}\nconst AwaitContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n AwaitContext.displayName = \"Await\";\n}\n\n/**\n * A Navigator is a \"location changer\"; it's how you get to different locations.\n *\n * Every history instance conforms to the Navigator interface, but the\n * distinction is useful primarily when it comes to the low-level `` API\n * where both the location and a navigator must be provided separately in order\n * to avoid \"tearing\" that may occur in a suspense-enabled app if the action\n * and/or location were to be read directly from the history instance.\n */\n\nconst NavigationContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n NavigationContext.displayName = \"Navigation\";\n}\nconst LocationContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n LocationContext.displayName = \"Location\";\n}\nconst RouteContext = /*#__PURE__*/React.createContext({\n outlet: null,\n matches: [],\n isDataRoute: false\n});\nif (process.env.NODE_ENV !== \"production\") {\n RouteContext.displayName = \"Route\";\n}\nconst RouteErrorContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n RouteErrorContext.displayName = \"RouteError\";\n}\n\n/**\n * Returns the full href for the given \"to\" value. This is useful for building\n * custom links that are also accessible and preserve right-click behavior.\n *\n * @see https://reactrouter.com/hooks/use-href\n */\nfunction useHref(to, _temp) {\n let {\n relative\n } = _temp === void 0 ? {} : _temp;\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useHref() may be used only in the context of a component.\") : UNSAFE_invariant(false) : void 0;\n let {\n basename,\n navigator\n } = React.useContext(NavigationContext);\n let {\n hash,\n pathname,\n search\n } = useResolvedPath(to, {\n relative\n });\n let joinedPathname = pathname;\n\n // If we're operating within a basename, prepend it to the pathname prior\n // to creating the href. If this is a root navigation, then just use the raw\n // basename which allows the basename to have full control over the presence\n // of a trailing slash on root links\n if (basename !== \"/\") {\n joinedPathname = pathname === \"/\" ? basename : joinPaths([basename, pathname]);\n }\n return navigator.createHref({\n pathname: joinedPathname,\n search,\n hash\n });\n}\n\n/**\n * Returns true if this component is a descendant of a ``.\n *\n * @see https://reactrouter.com/hooks/use-in-router-context\n */\nfunction useInRouterContext() {\n return React.useContext(LocationContext) != null;\n}\n\n/**\n * Returns the current location object, which represents the current URL in web\n * browsers.\n *\n * Note: If you're using this it may mean you're doing some of your own\n * \"routing\" in your app, and we'd like to know what your use case is. We may\n * be able to provide something higher-level to better suit your needs.\n *\n * @see https://reactrouter.com/hooks/use-location\n */\nfunction useLocation() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useLocation() may be used only in the context of a component.\") : UNSAFE_invariant(false) : void 0;\n return React.useContext(LocationContext).location;\n}\n\n/**\n * Returns the current navigation action which describes how the router came to\n * the current location, either by a pop, push, or replace on the history stack.\n *\n * @see https://reactrouter.com/hooks/use-navigation-type\n */\nfunction useNavigationType() {\n return React.useContext(LocationContext).navigationType;\n}\n\n/**\n * Returns a PathMatch object if the given pattern matches the current URL.\n * This is useful for components that need to know \"active\" state, e.g.\n * ``.\n *\n * @see https://reactrouter.com/hooks/use-match\n */\nfunction useMatch(pattern) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useMatch() may be used only in the context of a component.\") : UNSAFE_invariant(false) : void 0;\n let {\n pathname\n } = useLocation();\n return React.useMemo(() => matchPath(pattern, pathname), [pathname, pattern]);\n}\n\n/**\n * The interface for the navigate() function returned from useNavigate().\n */\n\nconst navigateEffectWarning = \"You should call navigate() in a React.useEffect(), not when \" + \"your component is first rendered.\";\n\n// Mute warnings for calls to useNavigate in SSR environments\nfunction useIsomorphicLayoutEffect(cb) {\n let isStatic = React.useContext(NavigationContext).static;\n if (!isStatic) {\n // We should be able to get rid of this once react 18.3 is released\n // See: https://github.com/facebook/react/pull/26395\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useLayoutEffect(cb);\n }\n}\n\n/**\n * Returns an imperative method for changing the location. Used by ``s, but\n * may also be used by other elements to change the location.\n *\n * @see https://reactrouter.com/hooks/use-navigate\n */\nfunction useNavigate() {\n let {\n isDataRoute\n } = React.useContext(RouteContext);\n // Conditional usage is OK here because the usage of a data router is static\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return isDataRoute ? useNavigateStable() : useNavigateUnstable();\n}\nfunction useNavigateUnstable() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useNavigate() may be used only in the context of a component.\") : UNSAFE_invariant(false) : void 0;\n let dataRouterContext = React.useContext(DataRouterContext);\n let {\n basename,\n future,\n navigator\n } = React.useContext(NavigationContext);\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getResolveToMatches(matches, future.v7_relativeSplatPath));\n let activeRef = React.useRef(false);\n useIsomorphicLayoutEffect(() => {\n activeRef.current = true;\n });\n let navigate = React.useCallback(function (to, options) {\n if (options === void 0) {\n options = {};\n }\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(activeRef.current, navigateEffectWarning) : void 0;\n\n // Short circuit here since if this happens on first render the navigate\n // is useless because we haven't wired up our history listener yet\n if (!activeRef.current) return;\n if (typeof to === \"number\") {\n navigator.go(to);\n return;\n }\n let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === \"path\");\n\n // If we're operating within a basename, prepend it to the pathname prior\n // to handing off to history (but only if we're not in a data router,\n // otherwise it'll prepend the basename inside of the router).\n // If this is a root navigation, then we navigate to the raw basename\n // which allows the basename to have full control over the presence of a\n // trailing slash on root links\n if (dataRouterContext == null && basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n (!!options.replace ? navigator.replace : navigator.push)(path, options.state, options);\n }, [basename, navigator, routePathnamesJson, locationPathname, dataRouterContext]);\n return navigate;\n}\nconst OutletContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Returns the context (if provided) for the child route at this level of the route\n * hierarchy.\n * @see https://reactrouter.com/hooks/use-outlet-context\n */\nfunction useOutletContext() {\n return React.useContext(OutletContext);\n}\n\n/**\n * Returns the element for the child route at this level of the route\n * hierarchy. Used internally by `` to render child routes.\n *\n * @see https://reactrouter.com/hooks/use-outlet\n */\nfunction useOutlet(context) {\n let outlet = React.useContext(RouteContext).outlet;\n if (outlet) {\n return /*#__PURE__*/React.createElement(OutletContext.Provider, {\n value: context\n }, outlet);\n }\n return outlet;\n}\n\n/**\n * Returns an object of key/value pairs of the dynamic params from the current\n * URL that were matched by the route path.\n *\n * @see https://reactrouter.com/hooks/use-params\n */\nfunction useParams() {\n let {\n matches\n } = React.useContext(RouteContext);\n let routeMatch = matches[matches.length - 1];\n return routeMatch ? routeMatch.params : {};\n}\n\n/**\n * Resolves the pathname of the given `to` value against the current location.\n *\n * @see https://reactrouter.com/hooks/use-resolved-path\n */\nfunction useResolvedPath(to, _temp2) {\n let {\n relative\n } = _temp2 === void 0 ? {} : _temp2;\n let {\n future\n } = React.useContext(NavigationContext);\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getResolveToMatches(matches, future.v7_relativeSplatPath));\n return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === \"path\"), [to, routePathnamesJson, locationPathname, relative]);\n}\n\n/**\n * Returns the element of the route that matched the current location, prepared\n * with the correct context to render the remainder of the route tree. Route\n * elements in the tree must render an `` to render their child route's\n * element.\n *\n * @see https://reactrouter.com/hooks/use-routes\n */\nfunction useRoutes(routes, locationArg) {\n return useRoutesImpl(routes, locationArg);\n}\n\n// Internal implementation with accept optional param for RouterProvider usage\nfunction useRoutesImpl(routes, locationArg, dataRouterState, future) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useRoutes() may be used only in the context of a component.\") : UNSAFE_invariant(false) : void 0;\n let {\n navigator\n } = React.useContext(NavigationContext);\n let {\n matches: parentMatches\n } = React.useContext(RouteContext);\n let routeMatch = parentMatches[parentMatches.length - 1];\n let parentParams = routeMatch ? routeMatch.params : {};\n let parentPathname = routeMatch ? routeMatch.pathname : \"/\";\n let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : \"/\";\n let parentRoute = routeMatch && routeMatch.route;\n if (process.env.NODE_ENV !== \"production\") {\n // You won't get a warning about 2 different under a \n // without a trailing *, but this is a best-effort warning anyway since we\n // cannot even give the warning unless they land at the parent route.\n //\n // Example:\n //\n // \n // {/* This route path MUST end with /* because otherwise\n // it will never match /blog/post/123 */}\n // } />\n // } />\n // \n //\n // function Blog() {\n // return (\n // \n // } />\n // \n // );\n // }\n let parentPath = parentRoute && parentRoute.path || \"\";\n warningOnce(parentPathname, !parentRoute || parentPath.endsWith(\"*\"), \"You rendered descendant (or called `useRoutes()`) at \" + (\"\\\"\" + parentPathname + \"\\\" (under ) but the \") + \"parent route path has no trailing \\\"*\\\". This means if you navigate \" + \"deeper, the parent won't match anymore and therefore the child \" + \"routes will never render.\\n\\n\" + (\"Please change the parent to .\"));\n }\n let locationFromContext = useLocation();\n let location;\n if (locationArg) {\n var _parsedLocationArg$pa;\n let parsedLocationArg = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n !(parentPathnameBase === \"/\" || ((_parsedLocationArg$pa = parsedLocationArg.pathname) == null ? void 0 : _parsedLocationArg$pa.startsWith(parentPathnameBase))) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"When overriding the location using `` or `useRoutes(routes, location)`, \" + \"the location pathname must begin with the portion of the URL pathname that was \" + (\"matched by all parent routes. The current pathname base is \\\"\" + parentPathnameBase + \"\\\" \") + (\"but pathname \\\"\" + parsedLocationArg.pathname + \"\\\" was given in the `location` prop.\")) : UNSAFE_invariant(false) : void 0;\n location = parsedLocationArg;\n } else {\n location = locationFromContext;\n }\n let pathname = location.pathname || \"/\";\n let remainingPathname = pathname;\n if (parentPathnameBase !== \"/\") {\n // Determine the remaining pathname by removing the # of URL segments the\n // parentPathnameBase has, instead of removing based on character count.\n // This is because we can't guarantee that incoming/outgoing encodings/\n // decodings will match exactly.\n // We decode paths before matching on a per-segment basis with\n // decodeURIComponent(), but we re-encode pathnames via `new URL()` so they\n // match what `window.location.pathname` would reflect. Those don't 100%\n // align when it comes to encoded URI characters such as % and &.\n //\n // So we may end up with:\n // pathname: \"/descendant/a%25b/match\"\n // parentPathnameBase: \"/descendant/a%b\"\n //\n // And the direct substring removal approach won't work :/\n let parentSegments = parentPathnameBase.replace(/^\\//, \"\").split(\"/\");\n let segments = pathname.replace(/^\\//, \"\").split(\"/\");\n remainingPathname = \"/\" + segments.slice(parentSegments.length).join(\"/\");\n }\n let matches = matchRoutes(routes, {\n pathname: remainingPathname\n });\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(parentRoute || matches != null, \"No routes matched location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \") : void 0;\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(matches == null || matches[matches.length - 1].route.element !== undefined || matches[matches.length - 1].route.Component !== undefined || matches[matches.length - 1].route.lazy !== undefined, \"Matched leaf route at location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \" + \"does not have an element or Component. This means it will render an with a \" + \"null value by default resulting in an \\\"empty\\\" page.\") : void 0;\n }\n let renderedMatches = _renderMatches(matches && matches.map(match => Object.assign({}, match, {\n params: Object.assign({}, parentParams, match.params),\n pathname: joinPaths([parentPathnameBase,\n // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathname).pathname : match.pathname]),\n pathnameBase: match.pathnameBase === \"/\" ? parentPathnameBase : joinPaths([parentPathnameBase,\n // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathnameBase).pathname : match.pathnameBase])\n })), parentMatches, dataRouterState, future);\n\n // When a user passes in a `locationArg`, the associated routes need to\n // be wrapped in a new `LocationContext.Provider` in order for `useLocation`\n // to use the scoped location instead of the global location.\n if (locationArg && renderedMatches) {\n return /*#__PURE__*/React.createElement(LocationContext.Provider, {\n value: {\n location: _extends({\n pathname: \"/\",\n search: \"\",\n hash: \"\",\n state: null,\n key: \"default\"\n }, location),\n navigationType: Action.Pop\n }\n }, renderedMatches);\n }\n return renderedMatches;\n}\nfunction DefaultErrorComponent() {\n let error = useRouteError();\n let message = isRouteErrorResponse(error) ? error.status + \" \" + error.statusText : error instanceof Error ? error.message : JSON.stringify(error);\n let stack = error instanceof Error ? error.stack : null;\n let lightgrey = \"rgba(200,200,200, 0.5)\";\n let preStyles = {\n padding: \"0.5rem\",\n backgroundColor: lightgrey\n };\n let codeStyles = {\n padding: \"2px 4px\",\n backgroundColor: lightgrey\n };\n let devInfo = null;\n if (process.env.NODE_ENV !== \"production\") {\n console.error(\"Error handled by React Router default ErrorBoundary:\", error);\n devInfo = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"p\", null, \"\\uD83D\\uDCBF Hey developer \\uD83D\\uDC4B\"), /*#__PURE__*/React.createElement(\"p\", null, \"You can provide a way better UX than this when your app throws errors by providing your own \", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"ErrorBoundary\"), \" or\", \" \", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"errorElement\"), \" prop on your route.\"));\n }\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"h2\", null, \"Unexpected Application Error!\"), /*#__PURE__*/React.createElement(\"h3\", {\n style: {\n fontStyle: \"italic\"\n }\n }, message), stack ? /*#__PURE__*/React.createElement(\"pre\", {\n style: preStyles\n }, stack) : null, devInfo);\n}\nconst defaultErrorElement = /*#__PURE__*/React.createElement(DefaultErrorComponent, null);\nclass RenderErrorBoundary extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n location: props.location,\n revalidation: props.revalidation,\n error: props.error\n };\n }\n static getDerivedStateFromError(error) {\n return {\n error: error\n };\n }\n static getDerivedStateFromProps(props, state) {\n // When we get into an error state, the user will likely click \"back\" to the\n // previous page that didn't have an error. Because this wraps the entire\n // application, that will have no effect--the error page continues to display.\n // This gives us a mechanism to recover from the error when the location changes.\n //\n // Whether we're in an error state or not, we update the location in state\n // so that when we are in an error state, it gets reset when a new location\n // comes in and the user recovers from the error.\n if (state.location !== props.location || state.revalidation !== \"idle\" && props.revalidation === \"idle\") {\n return {\n error: props.error,\n location: props.location,\n revalidation: props.revalidation\n };\n }\n\n // If we're not changing locations, preserve the location but still surface\n // any new errors that may come through. We retain the existing error, we do\n // this because the error provided from the app state may be cleared without\n // the location changing.\n return {\n error: props.error !== undefined ? props.error : state.error,\n location: state.location,\n revalidation: props.revalidation || state.revalidation\n };\n }\n componentDidCatch(error, errorInfo) {\n console.error(\"React Router caught the following error during render\", error, errorInfo);\n }\n render() {\n return this.state.error !== undefined ? /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: this.props.routeContext\n }, /*#__PURE__*/React.createElement(RouteErrorContext.Provider, {\n value: this.state.error,\n children: this.props.component\n })) : this.props.children;\n }\n}\nfunction RenderedRoute(_ref) {\n let {\n routeContext,\n match,\n children\n } = _ref;\n let dataRouterContext = React.useContext(DataRouterContext);\n\n // Track how deep we got in our render pass to emulate SSR componentDidCatch\n // in a DataStaticRouter\n if (dataRouterContext && dataRouterContext.static && dataRouterContext.staticContext && (match.route.errorElement || match.route.ErrorBoundary)) {\n dataRouterContext.staticContext._deepestRenderedBoundaryId = match.route.id;\n }\n return /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: routeContext\n }, children);\n}\nfunction _renderMatches(matches, parentMatches, dataRouterState, future) {\n var _dataRouterState2;\n if (parentMatches === void 0) {\n parentMatches = [];\n }\n if (dataRouterState === void 0) {\n dataRouterState = null;\n }\n if (future === void 0) {\n future = null;\n }\n if (matches == null) {\n var _dataRouterState;\n if ((_dataRouterState = dataRouterState) != null && _dataRouterState.errors) {\n // Don't bail if we have data router errors so we can render them in the\n // boundary. Use the pre-matched (or shimmed) matches\n matches = dataRouterState.matches;\n } else {\n return null;\n }\n }\n let renderedMatches = matches;\n\n // If we have data errors, trim matches to the highest error boundary\n let errors = (_dataRouterState2 = dataRouterState) == null ? void 0 : _dataRouterState2.errors;\n if (errors != null) {\n let errorIndex = renderedMatches.findIndex(m => m.route.id && (errors == null ? void 0 : errors[m.route.id]));\n !(errorIndex >= 0) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"Could not find a matching route for errors on route IDs: \" + Object.keys(errors).join(\",\")) : UNSAFE_invariant(false) : void 0;\n renderedMatches = renderedMatches.slice(0, Math.min(renderedMatches.length, errorIndex + 1));\n }\n\n // If we're in a partial hydration mode, detect if we need to render down to\n // a given HydrateFallback while we load the rest of the hydration data\n let renderFallback = false;\n let fallbackIndex = -1;\n if (dataRouterState && future && future.v7_partialHydration) {\n for (let i = 0; i < renderedMatches.length; i++) {\n let match = renderedMatches[i];\n // Track the deepest fallback up until the first route without data\n if (match.route.HydrateFallback || match.route.hydrateFallbackElement) {\n fallbackIndex = i;\n }\n if (match.route.id) {\n let {\n loaderData,\n errors\n } = dataRouterState;\n let needsToRunLoader = match.route.loader && loaderData[match.route.id] === undefined && (!errors || errors[match.route.id] === undefined);\n if (match.route.lazy || needsToRunLoader) {\n // We found the first route that's not ready to render (waiting on\n // lazy, or has a loader that hasn't run yet). Flag that we need to\n // render a fallback and render up until the appropriate fallback\n renderFallback = true;\n if (fallbackIndex >= 0) {\n renderedMatches = renderedMatches.slice(0, fallbackIndex + 1);\n } else {\n renderedMatches = [renderedMatches[0]];\n }\n break;\n }\n }\n }\n }\n return renderedMatches.reduceRight((outlet, match, index) => {\n // Only data routers handle errors/fallbacks\n let error;\n let shouldRenderHydrateFallback = false;\n let errorElement = null;\n let hydrateFallbackElement = null;\n if (dataRouterState) {\n error = errors && match.route.id ? errors[match.route.id] : undefined;\n errorElement = match.route.errorElement || defaultErrorElement;\n if (renderFallback) {\n if (fallbackIndex < 0 && index === 0) {\n warningOnce(\"route-fallback\", false, \"No `HydrateFallback` element provided to render during initial hydration\");\n shouldRenderHydrateFallback = true;\n hydrateFallbackElement = null;\n } else if (fallbackIndex === index) {\n shouldRenderHydrateFallback = true;\n hydrateFallbackElement = match.route.hydrateFallbackElement || null;\n }\n }\n }\n let matches = parentMatches.concat(renderedMatches.slice(0, index + 1));\n let getChildren = () => {\n let children;\n if (error) {\n children = errorElement;\n } else if (shouldRenderHydrateFallback) {\n children = hydrateFallbackElement;\n } else if (match.route.Component) {\n // Note: This is a de-optimized path since React won't re-use the\n // ReactElement since it's identity changes with each new\n // React.createElement call. We keep this so folks can use\n // `` in `` but generally `Component`\n // usage is only advised in `RouterProvider` when we can convert it to\n // `element` ahead of time.\n children = /*#__PURE__*/React.createElement(match.route.Component, null);\n } else if (match.route.element) {\n children = match.route.element;\n } else {\n children = outlet;\n }\n return /*#__PURE__*/React.createElement(RenderedRoute, {\n match: match,\n routeContext: {\n outlet,\n matches,\n isDataRoute: dataRouterState != null\n },\n children: children\n });\n };\n // Only wrap in an error boundary within data router usages when we have an\n // ErrorBoundary/errorElement on this route. Otherwise let it bubble up to\n // an ancestor ErrorBoundary/errorElement\n return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /*#__PURE__*/React.createElement(RenderErrorBoundary, {\n location: dataRouterState.location,\n revalidation: dataRouterState.revalidation,\n component: errorElement,\n error: error,\n children: getChildren(),\n routeContext: {\n outlet: null,\n matches,\n isDataRoute: true\n }\n }) : getChildren();\n }, null);\n}\nvar DataRouterHook = /*#__PURE__*/function (DataRouterHook) {\n DataRouterHook[\"UseBlocker\"] = \"useBlocker\";\n DataRouterHook[\"UseRevalidator\"] = \"useRevalidator\";\n DataRouterHook[\"UseNavigateStable\"] = \"useNavigate\";\n return DataRouterHook;\n}(DataRouterHook || {});\nvar DataRouterStateHook = /*#__PURE__*/function (DataRouterStateHook) {\n DataRouterStateHook[\"UseBlocker\"] = \"useBlocker\";\n DataRouterStateHook[\"UseLoaderData\"] = \"useLoaderData\";\n DataRouterStateHook[\"UseActionData\"] = \"useActionData\";\n DataRouterStateHook[\"UseRouteError\"] = \"useRouteError\";\n DataRouterStateHook[\"UseNavigation\"] = \"useNavigation\";\n DataRouterStateHook[\"UseRouteLoaderData\"] = \"useRouteLoaderData\";\n DataRouterStateHook[\"UseMatches\"] = \"useMatches\";\n DataRouterStateHook[\"UseRevalidator\"] = \"useRevalidator\";\n DataRouterStateHook[\"UseNavigateStable\"] = \"useNavigate\";\n DataRouterStateHook[\"UseRouteId\"] = \"useRouteId\";\n return DataRouterStateHook;\n}(DataRouterStateHook || {});\nfunction getDataRouterConsoleError(hookName) {\n return hookName + \" must be used within a data router. See https://reactrouter.com/routers/picking-a-router.\";\n}\nfunction useDataRouterContext(hookName) {\n let ctx = React.useContext(DataRouterContext);\n !ctx ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n return ctx;\n}\nfunction useDataRouterState(hookName) {\n let state = React.useContext(DataRouterStateContext);\n !state ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n return state;\n}\nfunction useRouteContext(hookName) {\n let route = React.useContext(RouteContext);\n !route ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n return route;\n}\n\n// Internal version with hookName-aware debugging\nfunction useCurrentRouteId(hookName) {\n let route = useRouteContext(hookName);\n let thisRoute = route.matches[route.matches.length - 1];\n !thisRoute.route.id ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, hookName + \" can only be used on routes that contain a unique \\\"id\\\"\") : UNSAFE_invariant(false) : void 0;\n return thisRoute.route.id;\n}\n\n/**\n * Returns the ID for the nearest contextual route\n */\nfunction useRouteId() {\n return useCurrentRouteId(DataRouterStateHook.UseRouteId);\n}\n\n/**\n * Returns the current navigation, defaulting to an \"idle\" navigation when\n * no navigation is in progress\n */\nfunction useNavigation() {\n let state = useDataRouterState(DataRouterStateHook.UseNavigation);\n return state.navigation;\n}\n\n/**\n * Returns a revalidate function for manually triggering revalidation, as well\n * as the current state of any manual revalidations\n */\nfunction useRevalidator() {\n let dataRouterContext = useDataRouterContext(DataRouterHook.UseRevalidator);\n let state = useDataRouterState(DataRouterStateHook.UseRevalidator);\n return React.useMemo(() => ({\n revalidate: dataRouterContext.router.revalidate,\n state: state.revalidation\n }), [dataRouterContext.router.revalidate, state.revalidation]);\n}\n\n/**\n * Returns the active route matches, useful for accessing loaderData for\n * parent/child routes or the route \"handle\" property\n */\nfunction useMatches() {\n let {\n matches,\n loaderData\n } = useDataRouterState(DataRouterStateHook.UseMatches);\n return React.useMemo(() => matches.map(m => UNSAFE_convertRouteMatchToUiMatch(m, loaderData)), [matches, loaderData]);\n}\n\n/**\n * Returns the loader data for the nearest ancestor Route loader\n */\nfunction useLoaderData() {\n let state = useDataRouterState(DataRouterStateHook.UseLoaderData);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n if (state.errors && state.errors[routeId] != null) {\n console.error(\"You cannot `useLoaderData` in an errorElement (routeId: \" + routeId + \")\");\n return undefined;\n }\n return state.loaderData[routeId];\n}\n\n/**\n * Returns the loaderData for the given routeId\n */\nfunction useRouteLoaderData(routeId) {\n let state = useDataRouterState(DataRouterStateHook.UseRouteLoaderData);\n return state.loaderData[routeId];\n}\n\n/**\n * Returns the action data for the nearest ancestor Route action\n */\nfunction useActionData() {\n let state = useDataRouterState(DataRouterStateHook.UseActionData);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n return state.actionData ? state.actionData[routeId] : undefined;\n}\n\n/**\n * Returns the nearest ancestor Route error, which could be a loader/action\n * error or a render error. This is intended to be called from your\n * ErrorBoundary/errorElement to display a proper error message.\n */\nfunction useRouteError() {\n var _state$errors;\n let error = React.useContext(RouteErrorContext);\n let state = useDataRouterState(DataRouterStateHook.UseRouteError);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError);\n\n // If this was a render error, we put it in a RouteError context inside\n // of RenderErrorBoundary\n if (error !== undefined) {\n return error;\n }\n\n // Otherwise look for errors from our data router state\n return (_state$errors = state.errors) == null ? void 0 : _state$errors[routeId];\n}\n\n/**\n * Returns the happy-path data from the nearest ancestor `` value\n */\nfunction useAsyncValue() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._data;\n}\n\n/**\n * Returns the error from the nearest ancestor `` value\n */\nfunction useAsyncError() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._error;\n}\nlet blockerId = 0;\n\n/**\n * Allow the application to block navigations within the SPA and present the\n * user a confirmation dialog to confirm the navigation. Mostly used to avoid\n * using half-filled form data. This does not handle hard-reloads or\n * cross-origin navigations.\n */\nfunction useBlocker(shouldBlock) {\n let {\n router,\n basename\n } = useDataRouterContext(DataRouterHook.UseBlocker);\n let state = useDataRouterState(DataRouterStateHook.UseBlocker);\n let [blockerKey, setBlockerKey] = React.useState(\"\");\n let blockerFunction = React.useCallback(arg => {\n if (typeof shouldBlock !== \"function\") {\n return !!shouldBlock;\n }\n if (basename === \"/\") {\n return shouldBlock(arg);\n }\n\n // If they provided us a function and we've got an active basename, strip\n // it from the locations we expose to the user to match the behavior of\n // useLocation\n let {\n currentLocation,\n nextLocation,\n historyAction\n } = arg;\n return shouldBlock({\n currentLocation: _extends({}, currentLocation, {\n pathname: stripBasename(currentLocation.pathname, basename) || currentLocation.pathname\n }),\n nextLocation: _extends({}, nextLocation, {\n pathname: stripBasename(nextLocation.pathname, basename) || nextLocation.pathname\n }),\n historyAction\n });\n }, [basename, shouldBlock]);\n\n // This effect is in charge of blocker key assignment and deletion (which is\n // tightly coupled to the key)\n React.useEffect(() => {\n let key = String(++blockerId);\n setBlockerKey(key);\n return () => router.deleteBlocker(key);\n }, [router]);\n\n // This effect handles assigning the blockerFunction. This is to handle\n // unstable blocker function identities, and happens only after the prior\n // effect so we don't get an orphaned blockerFunction in the router with a\n // key of \"\". Until then we just have the IDLE_BLOCKER.\n React.useEffect(() => {\n if (blockerKey !== \"\") {\n router.getBlocker(blockerKey, blockerFunction);\n }\n }, [router, blockerKey, blockerFunction]);\n\n // Prefer the blocker from `state` not `router.state` since DataRouterContext\n // is memoized so this ensures we update on blocker state updates\n return blockerKey && state.blockers.has(blockerKey) ? state.blockers.get(blockerKey) : IDLE_BLOCKER;\n}\n\n/**\n * Stable version of useNavigate that is used when we are in the context of\n * a RouterProvider.\n */\nfunction useNavigateStable() {\n let {\n router\n } = useDataRouterContext(DataRouterHook.UseNavigateStable);\n let id = useCurrentRouteId(DataRouterStateHook.UseNavigateStable);\n let activeRef = React.useRef(false);\n useIsomorphicLayoutEffect(() => {\n activeRef.current = true;\n });\n let navigate = React.useCallback(function (to, options) {\n if (options === void 0) {\n options = {};\n }\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(activeRef.current, navigateEffectWarning) : void 0;\n\n // Short circuit here since if this happens on first render the navigate\n // is useless because we haven't wired up our router subscriber yet\n if (!activeRef.current) return;\n if (typeof to === \"number\") {\n router.navigate(to);\n } else {\n router.navigate(to, _extends({\n fromRouteId: id\n }, options));\n }\n }, [router, id]);\n return navigate;\n}\nconst alreadyWarned = {};\nfunction warningOnce(key, cond, message) {\n if (!cond && !alreadyWarned[key]) {\n alreadyWarned[key] = true;\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, message) : void 0;\n }\n}\n\n/**\n Webpack + React 17 fails to compile on any of the following because webpack\n complains that `startTransition` doesn't exist in `React`:\n * import { startTransition } from \"react\"\n * import * as React from from \"react\";\n \"startTransition\" in React ? React.startTransition(() => setState()) : setState()\n * import * as React from from \"react\";\n \"startTransition\" in React ? React[\"startTransition\"](() => setState()) : setState()\n\n Moving it to a constant such as the following solves the Webpack/React 17 issue:\n * import * as React from from \"react\";\n const START_TRANSITION = \"startTransition\";\n START_TRANSITION in React ? React[START_TRANSITION](() => setState()) : setState()\n\n However, that introduces webpack/terser minification issues in production builds\n in React 18 where minification/obfuscation ends up removing the call of\n React.startTransition entirely from the first half of the ternary. Grabbing\n this exported reference once up front resolves that issue.\n\n See https://github.com/remix-run/react-router/issues/10579\n*/\nconst START_TRANSITION = \"startTransition\";\nconst startTransitionImpl = React[START_TRANSITION];\n\n/**\n * Given a Remix Router instance, render the appropriate UI\n */\nfunction RouterProvider(_ref) {\n let {\n fallbackElement,\n router,\n future\n } = _ref;\n let [state, setStateImpl] = React.useState(router.state);\n let {\n v7_startTransition\n } = future || {};\n let setState = React.useCallback(newState => {\n if (v7_startTransition && startTransitionImpl) {\n startTransitionImpl(() => setStateImpl(newState));\n } else {\n setStateImpl(newState);\n }\n }, [setStateImpl, v7_startTransition]);\n\n // Need to use a layout effect here so we are subscribed early enough to\n // pick up on any render-driven redirects/navigations (useEffect/)\n React.useLayoutEffect(() => router.subscribe(setState), [router, setState]);\n React.useEffect(() => {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, \"`` is deprecated when using \" + \"`v7_partialHydration`, use a `HydrateFallback` component instead\") : void 0;\n // Only log this once on initial mount\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n let navigator = React.useMemo(() => {\n return {\n createHref: router.createHref,\n encodeLocation: router.encodeLocation,\n go: n => router.navigate(n),\n push: (to, state, opts) => router.navigate(to, {\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n }),\n replace: (to, state, opts) => router.navigate(to, {\n replace: true,\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n })\n };\n }, [router]);\n let basename = router.basename || \"/\";\n let dataRouterContext = React.useMemo(() => ({\n router,\n navigator,\n static: false,\n basename\n }), [router, navigator, basename]);\n\n // The fragment and {null} here are important! We need them to keep React 18's\n // useId happy when we are server-rendering since we may have a