{"version":3,"file":"index-6b375fc9.js","sources":["../../node_modules/react/cjs/react.production.min.js","../../node_modules/react/index.js","../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../node_modules/react/jsx-runtime.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/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","../../node_modules/axios/lib/helpers/bind.js","../../node_modules/axios/lib/utils.js","../../node_modules/axios/lib/core/AxiosError.js","../../node_modules/axios/lib/helpers/null.js","../../node_modules/axios/lib/helpers/toFormData.js","../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../../node_modules/axios/lib/helpers/buildURL.js","../../node_modules/axios/lib/core/InterceptorManager.js","../../node_modules/axios/lib/defaults/transitional.js","../../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../../node_modules/axios/lib/platform/browser/classes/FormData.js","../../node_modules/axios/lib/platform/browser/classes/Blob.js","../../node_modules/axios/lib/platform/browser/index.js","../../node_modules/axios/lib/platform/common/utils.js","../../node_modules/axios/lib/platform/index.js","../../node_modules/axios/lib/helpers/toURLEncodedForm.js","../../node_modules/axios/lib/helpers/formDataToJSON.js","../../node_modules/axios/lib/defaults/index.js","../../node_modules/axios/lib/helpers/parseHeaders.js","../../node_modules/axios/lib/core/AxiosHeaders.js","../../node_modules/axios/lib/core/transformData.js","../../node_modules/axios/lib/cancel/isCancel.js","../../node_modules/axios/lib/cancel/CanceledError.js","../../node_modules/axios/lib/core/settle.js","../../node_modules/axios/lib/helpers/cookies.js","../../node_modules/axios/lib/helpers/isAbsoluteURL.js","../../node_modules/axios/lib/helpers/combineURLs.js","../../node_modules/axios/lib/core/buildFullPath.js","../../node_modules/axios/lib/helpers/isURLSameOrigin.js","../../node_modules/axios/lib/helpers/parseProtocol.js","../../node_modules/axios/lib/helpers/speedometer.js","../../node_modules/axios/lib/adapters/xhr.js","../../node_modules/axios/lib/adapters/adapters.js","../../node_modules/axios/lib/core/dispatchRequest.js","../../node_modules/axios/lib/core/mergeConfig.js","../../node_modules/axios/lib/env/data.js","../../node_modules/axios/lib/helpers/validator.js","../../node_modules/axios/lib/core/Axios.js","../../node_modules/axios/lib/cancel/CancelToken.js","../../node_modules/axios/lib/helpers/spread.js","../../node_modules/axios/lib/helpers/isAxiosError.js","../../node_modules/axios/lib/helpers/HttpStatusCode.js","../../node_modules/axios/lib/axios.js","../../node_modules/axios/index.js","../../src/services/autogen/base.ts","../../src/services/autogen/common.ts","../../src/services/autogen/api.ts","../../src/services/autogen/configuration.ts","../../src/utils/config.ts","../../src/services/brain-api.service.ts","../../src/store/user.ts","../../src/store/store.ts","../../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/react-redux/es/utils/batch.js","../../node_modules/react-redux/es/components/Context.js","../../node_modules/@babel/runtime/helpers/esm/extends.js","../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../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/index.js","../../node_modules/posthog-js/dist/es.js","../../node_modules/@remix-run/router/dist/router.js","../../node_modules/react-router/dist/index.js","../../node_modules/react-router-dom/dist/index.js","../../node_modules/@clerk/clerk-react/dist/esm/chunk-3W5G4CYI.js","../../node_modules/@clerk/clerk-react/dist/esm/polyfills.js","../../node_modules/@clerk/shared/dist/chunk-TETGTEI2.mjs","../../node_modules/@clerk/shared/dist/chunk-IAZRYRAH.mjs","../../node_modules/@clerk/shared/dist/chunk-NDCDZYN6.mjs","../../node_modules/@clerk/shared/dist/chunk-IC4FGZI3.mjs","../../node_modules/@clerk/shared/dist/chunk-CU3XOCQH.mjs","../../node_modules/@clerk/clerk-react/dist/esm/errors.js","../../node_modules/@clerk/clerk-react/dist/esm/utils/errorThrower.js","../../node_modules/@clerk/clerk-react/dist/esm/utils/isConstructor.js","../../node_modules/@clerk/shared/dist/chunk-AOO6TJNL.mjs","../../node_modules/@clerk/shared/dist/chunk-MHVPBPEZ.mjs","../../node_modules/@clerk/shared/dist/chunk-XXB47WCL.mjs","../../node_modules/@clerk/clerk-react/dist/esm/utils/isDevOrStageUrl.js","../../node_modules/@clerk/clerk-react/dist/esm/utils/versionSelector.js","../../node_modules/@clerk/clerk-react/dist/esm/utils/loadClerkJsScript.js","../../node_modules/@clerk/clerk-react/dist/esm/utils/useMaxAllowedInstancesGuard.js","../../node_modules/@clerk/clerk-react/dist/esm/utils/useCustomElementPortal.js","../../node_modules/@clerk/shared/dist/chunk-TRWMHODU.mjs","../../node_modules/@clerk/shared/dist/chunk-LJ4R7M7R.mjs","../../node_modules/@clerk/shared/dist/index.mjs","../../node_modules/swr/_internal/dist/index.mjs","../../node_modules/swr/core/dist/index.mjs","../../node_modules/swr/infinite/dist/index.mjs","../../node_modules/@clerk/shared/dist/react/index.mjs","../../node_modules/@clerk/clerk-react/dist/esm/contexts/IsomorphicClerkContext.js","../../node_modules/@clerk/clerk-react/dist/esm/contexts/assertHelpers.js","../../node_modules/@clerk/clerk-react/dist/esm/contexts/StructureContext.js","../../node_modules/@clerk/clerk-react/dist/esm/components/withClerk.js","../../node_modules/@clerk/clerk-react/dist/esm/components/uiComponents.js","../../node_modules/@clerk/clerk-react/dist/esm/utils/useCustomPages.js","../../node_modules/@clerk/clerk-react/dist/esm/isomorphicClerk.js","../../node_modules/@clerk/clerk-react/dist/esm/utils/deriveState.js","../../node_modules/@clerk/clerk-react/dist/esm/contexts/AuthContext.js","../../node_modules/@clerk/clerk-react/dist/esm/contexts/ClerkContextProvider.js","../../node_modules/@clerk/clerk-react/dist/esm/contexts/ClerkProvider.js","../../node_modules/@radix-ui/primitive/dist/index.mjs","../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs","../../node_modules/@radix-ui/react-context/dist/index.mjs","../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs","../../node_modules/@radix-ui/react-id/dist/index.mjs","../../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs","../../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs","../../node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs","../../node_modules/@radix-ui/react-primitive/dist/index.mjs","../../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs","../../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs","../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs","../../node_modules/@radix-ui/react-portal/dist/index.mjs","../../node_modules/@radix-ui/react-presence/dist/index.mjs","../../node_modules/@radix-ui/react-focus-guards/dist/index.mjs","../../node_modules/tslib/tslib.es6.js","../../node_modules/react-remove-scroll-bar/dist/es2015/constants.js","../../node_modules/use-callback-ref/dist/es2015/assignRef.js","../../node_modules/use-callback-ref/dist/es2015/useRef.js","../../node_modules/use-callback-ref/dist/es2015/useMergeRef.js","../../node_modules/use-sidecar/dist/es2015/medium.js","../../node_modules/use-sidecar/dist/es2015/exports.js","../../node_modules/react-remove-scroll/dist/es2015/medium.js","../../node_modules/react-remove-scroll/dist/es2015/UI.js","../../node_modules/get-nonce/dist/es2015/index.js","../../node_modules/react-style-singleton/dist/es2015/singleton.js","../../node_modules/react-style-singleton/dist/es2015/hook.js","../../node_modules/react-style-singleton/dist/es2015/component.js","../../node_modules/react-remove-scroll-bar/dist/es2015/utils.js","../../node_modules/react-remove-scroll-bar/dist/es2015/component.js","../../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js","../../node_modules/react-remove-scroll/dist/es2015/handleScroll.js","../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js","../../node_modules/react-remove-scroll/dist/es2015/sidecar.js","../../node_modules/react-remove-scroll/dist/es2015/Combination.js","../../node_modules/aria-hidden/dist/es2015/index.js","../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs","../../node_modules/@radix-ui/react-dialog/dist/index.mjs","../../node_modules/@radix-ui/react-icons/dist/react-icons.esm.js","../../node_modules/clsx/dist/clsx.m.js","../../node_modules/tailwind-merge/dist/lib/tw-join.mjs","../../node_modules/tailwind-merge/dist/lib/class-utils.mjs","../../node_modules/tailwind-merge/dist/lib/lru-cache.mjs","../../node_modules/tailwind-merge/dist/lib/modifier-utils.mjs","../../node_modules/tailwind-merge/dist/lib/config-utils.mjs","../../node_modules/tailwind-merge/dist/lib/merge-classlist.mjs","../../node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs","../../node_modules/tailwind-merge/dist/lib/from-theme.mjs","../../node_modules/tailwind-merge/dist/lib/validators.mjs","../../node_modules/tailwind-merge/dist/lib/default-config.mjs","../../node_modules/tailwind-merge/dist/lib/tw-merge.mjs","../../node_modules/numeral/numeral.js","../../src/lib/utils.ts","../../src/components/ui/dialog.tsx","../../node_modules/sonner/dist/index.mjs","../../node_modules/lucide-react/dist/esm/defaultAttributes.js","../../node_modules/lucide-react/dist/esm/shared/src/utils.js","../../node_modules/lucide-react/dist/esm/createLucideIcon.js","../../node_modules/lucide-react/dist/esm/icons/external-link.js","../../node_modules/lucide-react/dist/esm/icons/flame.js","../../node_modules/lucide-react/dist/esm/icons/move-down.js","../../node_modules/lucide-react/dist/esm/icons/move-up.js","../../node_modules/lucide-react/dist/esm/icons/network.js","../../node_modules/lucide-react/dist/esm/icons/plus.js","../../node_modules/lucide-react/dist/esm/icons/search.js","../../node_modules/lucide-react/dist/esm/icons/square-arrow-up-right.js","../../node_modules/lucide-react/dist/esm/icons/store.js","../../node_modules/lucide-react/dist/esm/icons/x.js","../../node_modules/@radix-ui/react-avatar/dist/index.mjs","../../src/components/ui/avatar.tsx","../../node_modules/lodash/lodash.js","../../src/components/workflow-inputs/companyWebsiteAutocomplete.tsx","../../node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs","../../node_modules/@radix-ui/react-slot/dist/index.mjs","../../node_modules/class-variance-authority/dist/index.mjs","../../src/components/ui/button.tsx","../../node_modules/@tanstack/table-core/build/lib/index.mjs","../../node_modules/@tanstack/react-table/build/lib/index.mjs","../../src/components/company-lists/GiantTable/data-table.tsx","../../node_modules/@radix-ui/react-use-previous/dist/index.mjs","../../node_modules/@radix-ui/react-use-size/dist/index.mjs","../../node_modules/@radix-ui/react-checkbox/dist/index.mjs","../../src/components/ui/checkbox.tsx","../../node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.mjs","../../node_modules/@radix-ui/react-collection/dist/index.mjs","../../node_modules/@radix-ui/react-direction/dist/index.mjs","../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs","../../node_modules/@radix-ui/react-popper/dist/index.mjs","../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs","../../node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs","../../node_modules/@radix-ui/react-menu/dist/index.mjs","../../node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs","../../src/components/ui/dropdown-menu.tsx","../../node_modules/@phosphor-icons/react/dist/defs/Acorn.mjs","../../node_modules/@phosphor-icons/react/dist/defs/Broadcast.mjs","../../node_modules/@phosphor-icons/react/dist/defs/Building.mjs","../../node_modules/@phosphor-icons/react/dist/defs/City.mjs","../../node_modules/@phosphor-icons/react/dist/defs/Database.mjs","../../node_modules/@phosphor-icons/react/dist/defs/Handshake.mjs","../../node_modules/@phosphor-icons/react/dist/defs/Notepad.mjs","../../node_modules/@phosphor-icons/react/dist/defs/Target.mjs","../../node_modules/@phosphor-icons/react/dist/defs/TrendDown.mjs","../../node_modules/@phosphor-icons/react/dist/defs/TrendUp.mjs","../../node_modules/@phosphor-icons/react/dist/defs/Users.mjs","../../node_modules/@phosphor-icons/react/dist/lib/context.mjs","../../node_modules/@phosphor-icons/react/dist/lib/IconBase.mjs","../../node_modules/@phosphor-icons/react/dist/csr/Acorn.mjs","../../node_modules/@phosphor-icons/react/dist/csr/Broadcast.mjs","../../node_modules/@phosphor-icons/react/dist/csr/Building.mjs","../../node_modules/@phosphor-icons/react/dist/csr/City.mjs","../../node_modules/@phosphor-icons/react/dist/csr/Database.mjs","../../node_modules/@phosphor-icons/react/dist/csr/Handshake.mjs","../../node_modules/@phosphor-icons/react/dist/csr/Notepad.mjs","../../node_modules/@phosphor-icons/react/dist/csr/Target.mjs","../../node_modules/@phosphor-icons/react/dist/csr/TrendDown.mjs","../../node_modules/@phosphor-icons/react/dist/csr/TrendUp.mjs","../../node_modules/@phosphor-icons/react/dist/csr/Users.mjs","../../src/components/company-lists/GiantTable/CompanyListTableLight.tsx","../../node_modules/@radix-ui/react-aspect-ratio/node_modules/@radix-ui/react-primitive/dist/index.mjs","../../node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs","../../src/components/ui/aspect-ratio.tsx","../../src/components/ui/badge.tsx","../../src/components/ui/input.tsx","../../node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js","../../node_modules/use-latest/dist/use-latest.esm.js","../../node_modules/use-composed-ref/dist/use-composed-ref.esm.js","../../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js","../../src/components/ui/textarea.tsx","../../node_modules/@radix-ui/react-tabs/dist/index.mjs","../../src/pages/LandingPage.tsx","../../src/pages/FindSimilarPage.tsx","../../src/pages/ApiAccessRequest.tsx","../../src/pages/router.tsx","../../node_modules/@sentry/utils/esm/is.js","../../node_modules/@sentry/utils/esm/string.js","../../node_modules/@sentry/utils/esm/aggregate-errors.js","../../node_modules/@sentry/utils/esm/worldwide.js","../../node_modules/@sentry/utils/esm/browser.js","../../node_modules/@sentry/utils/esm/debug-build.js","../../node_modules/@sentry/utils/esm/logger.js","../../node_modules/@sentry/utils/esm/dsn.js","../../node_modules/@sentry/utils/esm/error.js","../../node_modules/@sentry/utils/esm/object.js","../../node_modules/@sentry/utils/esm/stacktrace.js","../../node_modules/@sentry/utils/esm/instrument/_handlers.js","../../node_modules/@sentry/utils/esm/instrument/console.js","../../node_modules/@sentry/utils/esm/misc.js","../../node_modules/@sentry/utils/esm/instrument/dom.js","../../node_modules/@sentry/utils/esm/supports.js","../../node_modules/@sentry/utils/esm/instrument/fetch.js","../../node_modules/@sentry/utils/esm/instrument/globalError.js","../../node_modules/@sentry/utils/esm/instrument/globalUnhandledRejection.js","../../node_modules/@sentry/utils/esm/vendor/supportsHistory.js","../../node_modules/@sentry/utils/esm/instrument/history.js","../../node_modules/@sentry/utils/esm/instrument/xhr.js","../../node_modules/@sentry/utils/esm/env.js","../../node_modules/@sentry/utils/esm/node.js","../../node_modules/@sentry/utils/esm/isBrowser.js","../../node_modules/@sentry/utils/esm/memo.js","../../node_modules/@sentry/utils/esm/normalize.js","../../node_modules/@sentry/utils/esm/syncpromise.js","../../node_modules/@sentry/utils/esm/promisebuffer.js","../../node_modules/@sentry/utils/esm/url.js","../../node_modules/@sentry/utils/esm/severity.js","../../node_modules/@sentry/utils/esm/time.js","../../node_modules/@sentry/utils/esm/baggage.js","../../node_modules/@sentry/utils/esm/tracing.js","../../node_modules/@sentry/utils/esm/envelope.js","../../node_modules/@sentry/utils/esm/clientreport.js","../../node_modules/@sentry/utils/esm/ratelimit.js","../../node_modules/@sentry/utils/esm/buildPolyfills/_nullishCoalesce.js","../../node_modules/@sentry/utils/esm/buildPolyfills/_optionalChain.js","../../node_modules/@sentry/core/esm/debug-build.js","../../node_modules/@sentry/core/esm/constants.js","../../node_modules/@sentry/core/esm/eventProcessors.js","../../node_modules/@sentry/core/esm/session.js","../../node_modules/@sentry/core/esm/utils/spanUtils.js","../../node_modules/@sentry/core/esm/utils/prepareEvent.js","../../node_modules/@sentry/core/esm/exports.js","../../node_modules/@sentry/core/esm/utils/getRootSpan.js","../../node_modules/@sentry/core/esm/tracing/dynamicSamplingContext.js","../../node_modules/@sentry/core/esm/utils/applyScopeDataToEvent.js","../../node_modules/@sentry/core/esm/scope.js","../../node_modules/@sentry/core/esm/version.js","../../node_modules/@sentry/core/esm/hub.js","../../node_modules/@sentry/core/esm/tracing/utils.js","../../node_modules/@sentry/core/esm/tracing/errors.js","../../node_modules/@sentry/core/esm/tracing/spanstatus.js","../../node_modules/@sentry/core/esm/utils/hasTracingEnabled.js","../../node_modules/@sentry/core/esm/tracing/trace.js","../../node_modules/@sentry/core/esm/semanticAttributes.js","../../node_modules/@sentry/core/esm/tracing/span.js","../../node_modules/@sentry/core/esm/tracing/transaction.js","../../node_modules/@sentry/core/esm/tracing/idletransaction.js","../../node_modules/@sentry/core/esm/tracing/sampling.js","../../node_modules/@sentry/core/esm/tracing/hubextensions.js","../../node_modules/@sentry/core/esm/tracing/measurement.js","../../node_modules/@sentry/core/esm/envelope.js","../../node_modules/@sentry/core/esm/api.js","../../node_modules/@sentry/core/esm/integration.js","../../node_modules/@sentry/core/esm/metrics/utils.js","../../node_modules/@sentry/core/esm/metrics/envelope.js","../../node_modules/@sentry/core/esm/baseclient.js","../../node_modules/@sentry/core/esm/sdk.js","../../node_modules/@sentry/core/esm/transports/base.js","../../node_modules/@sentry/core/esm/span.js","../../node_modules/@sentry/core/esm/utils/isSentryRequestUrl.js","../../node_modules/@sentry/core/esm/utils/sdkMetadata.js","../../node_modules/@sentry/core/esm/integrations/inboundfilters.js","../../node_modules/@sentry/core/esm/integrations/functiontostring.js","../../node_modules/@sentry-internal/tracing/esm/common/debug-build.js","../../node_modules/@sentry-internal/tracing/esm/browser/types.js","../../node_modules/@sentry-internal/tracing/esm/browser/backgroundtab.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/bindReporter.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/generateUniqueID.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/getNavigationEntry.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/getActivationStart.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/initMetric.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/observe.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/onHidden.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/getCLS.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/getVisibilityWatcher.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/getFID.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/lib/polyfills/interactionCountPolyfill.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/getINP.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/getLCP.js","../../node_modules/@sentry-internal/tracing/esm/browser/web-vitals/onTTFB.js","../../node_modules/@sentry-internal/tracing/esm/browser/instrument.js","../../node_modules/@sentry-internal/tracing/esm/browser/metrics/utils.js","../../node_modules/@sentry-internal/tracing/esm/browser/metrics/index.js","../../node_modules/@sentry-internal/tracing/esm/common/fetch.js","../../node_modules/@sentry-internal/tracing/esm/browser/request.js","../../node_modules/@sentry-internal/tracing/esm/browser/browserTracingIntegration.js","../../node_modules/@sentry/browser/esm/helpers.js","../../node_modules/@sentry/browser/esm/debug-build.js","../../node_modules/@sentry/browser/esm/eventbuilder.js","../../node_modules/@sentry/browser/esm/userfeedback.js","../../node_modules/@sentry/browser/esm/client.js","../../node_modules/@sentry/browser/esm/transports/utils.js","../../node_modules/@sentry/browser/esm/transports/fetch.js","../../node_modules/@sentry/browser/esm/transports/xhr.js","../../node_modules/@sentry/browser/esm/stack-parsers.js","../../node_modules/@sentry/browser/esm/integrations/breadcrumbs.js","../../node_modules/@sentry/browser/esm/integrations/dedupe.js","../../node_modules/@sentry/browser/esm/integrations/globalhandlers.js","../../node_modules/@sentry/browser/esm/integrations/httpcontext.js","../../node_modules/@sentry/browser/esm/integrations/linkederrors.js","../../node_modules/@sentry/browser/esm/integrations/trycatch.js","../../node_modules/@sentry/browser/esm/sdk.js","../../node_modules/@sentry/replay/esm/index.js","../../node_modules/@sentry/react/esm/sdk.js","../../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=31?r-1:0),e=1;e3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2)}function y(n){return null==n||\"object\"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return\"production\"===process.env.NODE_ENV||U||n(0),U}function j(n,r){r&&(b(\"Patches\"),n.u=[],n.s=[],n.v=r)}function g(n){O(n),n.p.forEach(S),n.p=null}function O(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b(\"ES5\").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b(\"Patches\").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b(\"Patches\").N(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s,v){if(\"production\"!==process.env.NODE_ENV&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function N(n,r,t){var e=s(r)?b(\"MapSet\").F(r,t):v(r)?b(\"MapSet\").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b(\"ES5\").J(r,t);return(t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b(\"ES5\").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return\"production\"!==process.env.NODE_ENV&&f(r),en.get(r,n)},set:function(r){var t=this[Q];\"production\"!==process.env.NODE_ENV&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e1?t-1:0),o=1;o1?t-1:0),o=1;o=0;e--){var i=t[e];if(0===i.path.length&&\"replace\"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b(\"Patches\").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);export default fn;export{un as Immer,pn as applyPatches,K as castDraft,$ as castImmutable,ln as createDraft,R as current,J as enableAllPlugins,F as enableES5,C as enableMapSet,T as enablePatches,dn as finishDraft,d as freeze,L as immerable,r as isDraft,t as isDraftable,H as nothing,e as original,fn as produce,cn as produceWithPatches,sn as setAutoFreeze,vn as setUseProxies};\n//# sourceMappingURL=immer.esm.js.map\n","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nexport default function _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}","import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';\n\n/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nfunction formatProdErrorMessage(code) {\n return \"Minified Redux error #\" + code + \"; visit https://redux.js.org/Errors?code=\" + code + \" for the full message or \" + 'use the non-minified dev environment for full errors. ';\n}\n\n// Inlined version of the `symbol-observable` polyfill\nvar $$observable = (function () {\n return typeof Symbol === 'function' && Symbol.observable || '@@observable';\n})();\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\nfunction miniKindOf(val) {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n var type = typeof val;\n\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n var constructorName = ctorName(val);\n\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n } // other\n\n\n return type.slice(8, -1).toLowerCase().replace(/\\s/g, '');\n}\n\nfunction ctorName(val) {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\n\nfunction isError(val) {\n return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';\n}\n\nfunction isDate(val) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';\n}\n\nfunction kindOf(val) {\n var typeOfVal = typeof val;\n\n if (process.env.NODE_ENV !== 'production') {\n typeOfVal = miniKindOf(val);\n }\n\n return typeOfVal;\n}\n\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(1) : \"Expected the enhancer to be a function. Instead, received: '\" + kindOf(enhancer) + \"'\");\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(2) : \"Expected the root reducer to be a function. Instead, received: '\" + kindOf(reducer) + \"'\");\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(4) : \"Expected the listener to be a function. Instead, received: '\" + kindOf(listener) + \"'\");\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(7) : \"Actions must be plain objects. Instead, the actual type was: '\" + kindOf(action) + \"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.\");\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(9) : 'Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(10) : \"Expected the nextReducer to be a function. Instead, received: '\" + kindOf(nextReducer));\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(11) : \"Expected the observer to be an object. Instead, received: '\" + kindOf(observer) + \"'\");\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nvar legacy_createStore = createStore;\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + kindOf(inputState) + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(12) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(13) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle '\" + ActionTypes.INIT + \"' or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var actionType = action && action.type;\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(14) : \"When called with an action of type \" + (actionType ? \"\\\"\" + String(actionType) + \"\\\"\" : '(unknown type)') + \", the slice reducer for key \\\"\" + _key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\");\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(16) : \"bindActionCreators expected an object or a function, but instead received: '\" + kindOf(actionCreators) + \"'. \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(15) : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread(_objectSpread({}, store), {}, {\n dispatch: _dispatch\n });\n };\n };\n}\n\nexport { ActionTypes as __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore, legacy_createStore };\n","/** A function that accepts a potential \"extra argument\" value to be injected later,\r\n * and returns an instance of the thunk middleware that uses that value\r\n */\nfunction createThunkMiddleware(extraArgument) {\n // Standard Redux middleware definition pattern:\n // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware\n var middleware = function middleware(_ref) {\n var dispatch = _ref.dispatch,\n getState = _ref.getState;\n return function (next) {\n return function (action) {\n // The thunk middleware looks for any functions that were passed to `store.dispatch`.\n // If this \"action\" is really a function, call it and return the result.\n if (typeof action === 'function') {\n // Inject the store's `dispatch` and `getState` methods, as well as any \"extra arg\"\n return action(dispatch, getState, extraArgument);\n } // Otherwise, pass the action down the middleware chain as usual\n\n\n return next(action);\n };\n };\n };\n\n return middleware;\n}\n\nvar thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version\n// with whatever \"extra arg\" they want to inject into their thunks\n\nthunk.withExtraArgument = createThunkMiddleware;\nexport default thunk;","var __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nvar __spreadArray = (this && this.__spreadArray) || function (to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n};\r\nvar __defProp = Object.defineProperty;\r\nvar __defProps = Object.defineProperties;\r\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\r\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\r\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\r\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\r\nvar __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };\r\nvar __spreadValues = function (a, b) {\r\n for (var prop in b || (b = {}))\r\n if (__hasOwnProp.call(b, prop))\r\n __defNormalProp(a, prop, b[prop]);\r\n if (__getOwnPropSymbols)\r\n for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {\r\n var prop = _c[_i];\r\n if (__propIsEnum.call(b, prop))\r\n __defNormalProp(a, prop, b[prop]);\r\n }\r\n return a;\r\n};\r\nvar __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };\r\nvar __async = function (__this, __arguments, generator) {\r\n return new Promise(function (resolve, reject) {\r\n var fulfilled = function (value) {\r\n try {\r\n step(generator.next(value));\r\n }\r\n catch (e) {\r\n reject(e);\r\n }\r\n };\r\n var rejected = function (value) {\r\n try {\r\n step(generator.throw(value));\r\n }\r\n catch (e) {\r\n reject(e);\r\n }\r\n };\r\n var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };\r\n step((generator = generator.apply(__this, __arguments)).next());\r\n });\r\n};\r\n// src/index.ts\r\nimport { enableES5 } from \"immer\";\r\nexport * from \"redux\";\r\nimport { default as default2, current as current2, freeze, original, isDraft as isDraft4 } from \"immer\";\r\nimport { createSelector as createSelector2 } from \"reselect\";\r\n// src/createDraftSafeSelector.ts\r\nimport { current, isDraft } from \"immer\";\r\nimport { createSelector } from \"reselect\";\r\nvar createDraftSafeSelector = function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var selector = createSelector.apply(void 0, args);\r\n var wrappedSelector = function (value) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return selector.apply(void 0, __spreadArray([isDraft(value) ? current(value) : value], rest));\r\n };\r\n return wrappedSelector;\r\n};\r\n// src/configureStore.ts\r\nimport { createStore, compose as compose2, applyMiddleware, combineReducers } from \"redux\";\r\n// src/devtoolsExtension.ts\r\nimport { compose } from \"redux\";\r\nvar composeWithDevTools = typeof window !== \"undefined\" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {\r\n if (arguments.length === 0)\r\n return void 0;\r\n if (typeof arguments[0] === \"object\")\r\n return compose;\r\n return compose.apply(null, arguments);\r\n};\r\nvar devToolsEnhancer = typeof window !== \"undefined\" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {\r\n return function (noop2) {\r\n return noop2;\r\n };\r\n};\r\n// src/isPlainObject.ts\r\nfunction isPlainObject(value) {\r\n if (typeof value !== \"object\" || value === null)\r\n return false;\r\n var proto = Object.getPrototypeOf(value);\r\n if (proto === null)\r\n return true;\r\n var baseProto = proto;\r\n while (Object.getPrototypeOf(baseProto) !== null) {\r\n baseProto = Object.getPrototypeOf(baseProto);\r\n }\r\n return proto === baseProto;\r\n}\r\n// src/getDefaultMiddleware.ts\r\nimport thunkMiddleware from \"redux-thunk\";\r\n// src/tsHelpers.ts\r\nvar hasMatchFunction = function (v) {\r\n return v && typeof v.match === \"function\";\r\n};\r\n// src/createAction.ts\r\nfunction createAction(type, prepareAction) {\r\n function actionCreator() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n if (prepareAction) {\r\n var prepared = prepareAction.apply(void 0, args);\r\n if (!prepared) {\r\n throw new Error(\"prepareAction did not return an object\");\r\n }\r\n return __spreadValues(__spreadValues({\r\n type: type,\r\n payload: prepared.payload\r\n }, \"meta\" in prepared && { meta: prepared.meta }), \"error\" in prepared && { error: prepared.error });\r\n }\r\n return { type: type, payload: args[0] };\r\n }\r\n actionCreator.toString = function () { return \"\" + type; };\r\n actionCreator.type = type;\r\n actionCreator.match = function (action) { return action.type === type; };\r\n return actionCreator;\r\n}\r\nfunction isAction(action) {\r\n return isPlainObject(action) && \"type\" in action;\r\n}\r\nfunction isActionCreator(action) {\r\n return typeof action === \"function\" && \"type\" in action && hasMatchFunction(action);\r\n}\r\nfunction isFSA(action) {\r\n return isAction(action) && typeof action.type === \"string\" && Object.keys(action).every(isValidKey);\r\n}\r\nfunction isValidKey(key) {\r\n return [\"type\", \"payload\", \"error\", \"meta\"].indexOf(key) > -1;\r\n}\r\nfunction getType(actionCreator) {\r\n return \"\" + actionCreator;\r\n}\r\n// src/actionCreatorInvariantMiddleware.ts\r\nfunction getMessage(type) {\r\n var splitType = type ? (\"\" + type).split(\"/\") : [];\r\n var actionName = splitType[splitType.length - 1] || \"actionCreator\";\r\n return \"Detected an action creator with type \\\"\" + (type || \"unknown\") + \"\\\" being dispatched. \\nMake sure you're calling the action creator before dispatching, i.e. `dispatch(\" + actionName + \"())` instead of `dispatch(\" + actionName + \")`. This is necessary even if the action has no payload.\";\r\n}\r\nfunction createActionCreatorInvariantMiddleware(options) {\r\n if (options === void 0) { options = {}; }\r\n if (process.env.NODE_ENV === \"production\") {\r\n return function () { return function (next) { return function (action) { return next(action); }; }; };\r\n }\r\n var _c = options.isActionCreator, isActionCreator2 = _c === void 0 ? isActionCreator : _c;\r\n return function () { return function (next) { return function (action) {\r\n if (isActionCreator2(action)) {\r\n console.warn(getMessage(action.type));\r\n }\r\n return next(action);\r\n }; }; };\r\n}\r\n// src/utils.ts\r\nimport createNextState, { isDraftable } from \"immer\";\r\nfunction getTimeMeasureUtils(maxDelay, fnName) {\r\n var elapsed = 0;\r\n return {\r\n measureTime: function (fn) {\r\n var started = Date.now();\r\n try {\r\n return fn();\r\n }\r\n finally {\r\n var finished = Date.now();\r\n elapsed += finished - started;\r\n }\r\n },\r\n warnIfExceeded: function () {\r\n if (elapsed > maxDelay) {\r\n console.warn(fnName + \" took \" + elapsed + \"ms, which is more than the warning threshold of \" + maxDelay + \"ms. \\nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\\nIt is disabled in production builds, so you don't need to worry about that.\");\r\n }\r\n }\r\n };\r\n}\r\nvar MiddlewareArray = /** @class */ (function (_super) {\r\n __extends(MiddlewareArray, _super);\r\n function MiddlewareArray() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var _this = _super.apply(this, args) || this;\r\n Object.setPrototypeOf(_this, MiddlewareArray.prototype);\r\n return _this;\r\n }\r\n Object.defineProperty(MiddlewareArray, Symbol.species, {\r\n get: function () {\r\n return MiddlewareArray;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n MiddlewareArray.prototype.concat = function () {\r\n var arr = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n arr[_i] = arguments[_i];\r\n }\r\n return _super.prototype.concat.apply(this, arr);\r\n };\r\n MiddlewareArray.prototype.prepend = function () {\r\n var arr = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n arr[_i] = arguments[_i];\r\n }\r\n if (arr.length === 1 && Array.isArray(arr[0])) {\r\n return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();\r\n }\r\n return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();\r\n };\r\n return MiddlewareArray;\r\n}(Array));\r\nvar EnhancerArray = /** @class */ (function (_super) {\r\n __extends(EnhancerArray, _super);\r\n function EnhancerArray() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var _this = _super.apply(this, args) || this;\r\n Object.setPrototypeOf(_this, EnhancerArray.prototype);\r\n return _this;\r\n }\r\n Object.defineProperty(EnhancerArray, Symbol.species, {\r\n get: function () {\r\n return EnhancerArray;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n EnhancerArray.prototype.concat = function () {\r\n var arr = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n arr[_i] = arguments[_i];\r\n }\r\n return _super.prototype.concat.apply(this, arr);\r\n };\r\n EnhancerArray.prototype.prepend = function () {\r\n var arr = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n arr[_i] = arguments[_i];\r\n }\r\n if (arr.length === 1 && Array.isArray(arr[0])) {\r\n return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();\r\n }\r\n return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();\r\n };\r\n return EnhancerArray;\r\n}(Array));\r\nfunction freezeDraftable(val) {\r\n return isDraftable(val) ? createNextState(val, function () {\r\n }) : val;\r\n}\r\n// src/immutableStateInvariantMiddleware.ts\r\nvar isProduction = process.env.NODE_ENV === \"production\";\r\nvar prefix = \"Invariant failed\";\r\nfunction invariant(condition, message) {\r\n if (condition) {\r\n return;\r\n }\r\n if (isProduction) {\r\n throw new Error(prefix);\r\n }\r\n throw new Error(prefix + \": \" + (message || \"\"));\r\n}\r\nfunction stringify(obj, serializer, indent, decycler) {\r\n return JSON.stringify(obj, getSerialize(serializer, decycler), indent);\r\n}\r\nfunction getSerialize(serializer, decycler) {\r\n var stack = [], keys = [];\r\n if (!decycler)\r\n decycler = function (_, value) {\r\n if (stack[0] === value)\r\n return \"[Circular ~]\";\r\n return \"[Circular ~.\" + keys.slice(0, stack.indexOf(value)).join(\".\") + \"]\";\r\n };\r\n return function (key, value) {\r\n if (stack.length > 0) {\r\n var thisPos = stack.indexOf(this);\r\n ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);\r\n ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);\r\n if (~stack.indexOf(value))\r\n value = decycler.call(this, key, value);\r\n }\r\n else\r\n stack.push(value);\r\n return serializer == null ? value : serializer.call(this, key, value);\r\n };\r\n}\r\nfunction isImmutableDefault(value) {\r\n return typeof value !== \"object\" || value == null || Object.isFrozen(value);\r\n}\r\nfunction trackForMutations(isImmutable, ignorePaths, obj) {\r\n var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);\r\n return {\r\n detectMutations: function () {\r\n return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);\r\n }\r\n };\r\n}\r\nfunction trackProperties(isImmutable, ignorePaths, obj, path, checkedObjects) {\r\n if (ignorePaths === void 0) { ignorePaths = []; }\r\n if (path === void 0) { path = \"\"; }\r\n if (checkedObjects === void 0) { checkedObjects = new Set(); }\r\n var tracked = { value: obj };\r\n if (!isImmutable(obj) && !checkedObjects.has(obj)) {\r\n checkedObjects.add(obj);\r\n tracked.children = {};\r\n for (var key in obj) {\r\n var childPath = path ? path + \".\" + key : key;\r\n if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {\r\n continue;\r\n }\r\n tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);\r\n }\r\n }\r\n return tracked;\r\n}\r\nfunction detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) {\r\n if (ignoredPaths === void 0) { ignoredPaths = []; }\r\n if (sameParentRef === void 0) { sameParentRef = false; }\r\n if (path === void 0) { path = \"\"; }\r\n var prevObj = trackedProperty ? trackedProperty.value : void 0;\r\n var sameRef = prevObj === obj;\r\n if (sameParentRef && !sameRef && !Number.isNaN(obj)) {\r\n return { wasMutated: true, path: path };\r\n }\r\n if (isImmutable(prevObj) || isImmutable(obj)) {\r\n return { wasMutated: false };\r\n }\r\n var keysToDetect = {};\r\n for (var key in trackedProperty.children) {\r\n keysToDetect[key] = true;\r\n }\r\n for (var key in obj) {\r\n keysToDetect[key] = true;\r\n }\r\n var hasIgnoredPaths = ignoredPaths.length > 0;\r\n var _loop_1 = function (key) {\r\n var nestedPath = path ? path + \".\" + key : key;\r\n if (hasIgnoredPaths) {\r\n var hasMatches = ignoredPaths.some(function (ignored) {\r\n if (ignored instanceof RegExp) {\r\n return ignored.test(nestedPath);\r\n }\r\n return nestedPath === ignored;\r\n });\r\n if (hasMatches) {\r\n return \"continue\";\r\n }\r\n }\r\n var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);\r\n if (result.wasMutated) {\r\n return { value: result };\r\n }\r\n };\r\n for (var key in keysToDetect) {\r\n var state_1 = _loop_1(key);\r\n if (typeof state_1 === \"object\")\r\n return state_1.value;\r\n }\r\n return { wasMutated: false };\r\n}\r\nfunction createImmutableStateInvariantMiddleware(options) {\r\n if (options === void 0) { options = {}; }\r\n if (process.env.NODE_ENV === \"production\") {\r\n return function () { return function (next) { return function (action) { return next(action); }; }; };\r\n }\r\n var _c = options.isImmutable, isImmutable = _c === void 0 ? isImmutableDefault : _c, ignoredPaths = options.ignoredPaths, _d = options.warnAfter, warnAfter = _d === void 0 ? 32 : _d, ignore = options.ignore;\r\n ignoredPaths = ignoredPaths || ignore;\r\n var track = trackForMutations.bind(null, isImmutable, ignoredPaths);\r\n return function (_c) {\r\n var getState = _c.getState;\r\n var state = getState();\r\n var tracker = track(state);\r\n var result;\r\n return function (next) { return function (action) {\r\n var measureUtils = getTimeMeasureUtils(warnAfter, \"ImmutableStateInvariantMiddleware\");\r\n measureUtils.measureTime(function () {\r\n state = getState();\r\n result = tracker.detectMutations();\r\n tracker = track(state);\r\n invariant(!result.wasMutated, \"A state mutation was detected between dispatches, in the path '\" + (result.path || \"\") + \"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)\");\r\n });\r\n var dispatchedAction = next(action);\r\n measureUtils.measureTime(function () {\r\n state = getState();\r\n result = tracker.detectMutations();\r\n tracker = track(state);\r\n result.wasMutated && invariant(!result.wasMutated, \"A state mutation was detected inside a dispatch, in the path: \" + (result.path || \"\") + \". Take a look at the reducer(s) handling the action \" + stringify(action) + \". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)\");\r\n });\r\n measureUtils.warnIfExceeded();\r\n return dispatchedAction;\r\n }; };\r\n };\r\n}\r\n// src/serializableStateInvariantMiddleware.ts\r\nfunction isPlain(val) {\r\n var type = typeof val;\r\n return val == null || type === \"string\" || type === \"boolean\" || type === \"number\" || Array.isArray(val) || isPlainObject(val);\r\n}\r\nfunction findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) {\r\n if (path === void 0) { path = \"\"; }\r\n if (isSerializable === void 0) { isSerializable = isPlain; }\r\n if (ignoredPaths === void 0) { ignoredPaths = []; }\r\n var foundNestedSerializable;\r\n if (!isSerializable(value)) {\r\n return {\r\n keyPath: path || \"\",\r\n value: value\r\n };\r\n }\r\n if (typeof value !== \"object\" || value === null) {\r\n return false;\r\n }\r\n if (cache == null ? void 0 : cache.has(value))\r\n return false;\r\n var entries = getEntries != null ? getEntries(value) : Object.entries(value);\r\n var hasIgnoredPaths = ignoredPaths.length > 0;\r\n var _loop_2 = function (key, nestedValue) {\r\n var nestedPath = path ? path + \".\" + key : key;\r\n if (hasIgnoredPaths) {\r\n var hasMatches = ignoredPaths.some(function (ignored) {\r\n if (ignored instanceof RegExp) {\r\n return ignored.test(nestedPath);\r\n }\r\n return nestedPath === ignored;\r\n });\r\n if (hasMatches) {\r\n return \"continue\";\r\n }\r\n }\r\n if (!isSerializable(nestedValue)) {\r\n return { value: {\r\n keyPath: nestedPath,\r\n value: nestedValue\r\n } };\r\n }\r\n if (typeof nestedValue === \"object\") {\r\n foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);\r\n if (foundNestedSerializable) {\r\n return { value: foundNestedSerializable };\r\n }\r\n }\r\n };\r\n for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {\r\n var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];\r\n var state_2 = _loop_2(key, nestedValue);\r\n if (typeof state_2 === \"object\")\r\n return state_2.value;\r\n }\r\n if (cache && isNestedFrozen(value))\r\n cache.add(value);\r\n return false;\r\n}\r\nfunction isNestedFrozen(value) {\r\n if (!Object.isFrozen(value))\r\n return false;\r\n for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) {\r\n var nestedValue = _c[_i];\r\n if (typeof nestedValue !== \"object\" || nestedValue === null)\r\n continue;\r\n if (!isNestedFrozen(nestedValue))\r\n return false;\r\n }\r\n return true;\r\n}\r\nfunction createSerializableStateInvariantMiddleware(options) {\r\n if (options === void 0) { options = {}; }\r\n if (process.env.NODE_ENV === \"production\") {\r\n return function () { return function (next) { return function (action) { return next(action); }; }; };\r\n }\r\n var _c = options.isSerializable, isSerializable = _c === void 0 ? isPlain : _c, getEntries = options.getEntries, _d = options.ignoredActions, ignoredActions = _d === void 0 ? [] : _d, _e = options.ignoredActionPaths, ignoredActionPaths = _e === void 0 ? [\"meta.arg\", \"meta.baseQueryMeta\"] : _e, _f = options.ignoredPaths, ignoredPaths = _f === void 0 ? [] : _f, _g = options.warnAfter, warnAfter = _g === void 0 ? 32 : _g, _h = options.ignoreState, ignoreState = _h === void 0 ? false : _h, _j = options.ignoreActions, ignoreActions = _j === void 0 ? false : _j, _k = options.disableCache, disableCache = _k === void 0 ? false : _k;\r\n var cache = !disableCache && WeakSet ? new WeakSet() : void 0;\r\n return function (storeAPI) { return function (next) { return function (action) {\r\n var result = next(action);\r\n var measureUtils = getTimeMeasureUtils(warnAfter, \"SerializableStateInvariantMiddleware\");\r\n if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {\r\n measureUtils.measureTime(function () {\r\n var foundActionNonSerializableValue = findNonSerializableValue(action, \"\", isSerializable, getEntries, ignoredActionPaths, cache);\r\n if (foundActionNonSerializableValue) {\r\n var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;\r\n console.error(\"A non-serializable value was detected in an action, in the path: `\" + keyPath + \"`. Value:\", value, \"\\nTake a look at the logic that dispatched this action: \", action, \"\\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)\", \"\\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)\");\r\n }\r\n });\r\n }\r\n if (!ignoreState) {\r\n measureUtils.measureTime(function () {\r\n var state = storeAPI.getState();\r\n var foundStateNonSerializableValue = findNonSerializableValue(state, \"\", isSerializable, getEntries, ignoredPaths, cache);\r\n if (foundStateNonSerializableValue) {\r\n var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;\r\n console.error(\"A non-serializable value was detected in the state, in the path: `\" + keyPath + \"`. Value:\", value, \"\\nTake a look at the reducer(s) handling this action type: \" + action.type + \".\\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)\");\r\n }\r\n });\r\n measureUtils.warnIfExceeded();\r\n }\r\n return result;\r\n }; }; };\r\n}\r\n// src/getDefaultMiddleware.ts\r\nfunction isBoolean(x) {\r\n return typeof x === \"boolean\";\r\n}\r\nfunction curryGetDefaultMiddleware() {\r\n return function curriedGetDefaultMiddleware(options) {\r\n return getDefaultMiddleware(options);\r\n };\r\n}\r\nfunction getDefaultMiddleware(options) {\r\n if (options === void 0) { options = {}; }\r\n var _c = options.thunk, thunk = _c === void 0 ? true : _c, _d = options.immutableCheck, immutableCheck = _d === void 0 ? true : _d, _e = options.serializableCheck, serializableCheck = _e === void 0 ? true : _e, _f = options.actionCreatorCheck, actionCreatorCheck = _f === void 0 ? true : _f;\r\n var middlewareArray = new MiddlewareArray();\r\n if (thunk) {\r\n if (isBoolean(thunk)) {\r\n middlewareArray.push(thunkMiddleware);\r\n }\r\n else {\r\n middlewareArray.push(thunkMiddleware.withExtraArgument(thunk.extraArgument));\r\n }\r\n }\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (immutableCheck) {\r\n var immutableOptions = {};\r\n if (!isBoolean(immutableCheck)) {\r\n immutableOptions = immutableCheck;\r\n }\r\n middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));\r\n }\r\n if (serializableCheck) {\r\n var serializableOptions = {};\r\n if (!isBoolean(serializableCheck)) {\r\n serializableOptions = serializableCheck;\r\n }\r\n middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));\r\n }\r\n if (actionCreatorCheck) {\r\n var actionCreatorOptions = {};\r\n if (!isBoolean(actionCreatorCheck)) {\r\n actionCreatorOptions = actionCreatorCheck;\r\n }\r\n middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions));\r\n }\r\n }\r\n return middlewareArray;\r\n}\r\n// src/configureStore.ts\r\nvar IS_PRODUCTION = process.env.NODE_ENV === \"production\";\r\nfunction configureStore(options) {\r\n var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();\r\n var _c = options || {}, _d = _c.reducer, reducer = _d === void 0 ? void 0 : _d, _e = _c.middleware, middleware = _e === void 0 ? curriedGetDefaultMiddleware() : _e, _f = _c.devTools, devTools = _f === void 0 ? true : _f, _g = _c.preloadedState, preloadedState = _g === void 0 ? void 0 : _g, _h = _c.enhancers, enhancers = _h === void 0 ? void 0 : _h;\r\n var rootReducer;\r\n if (typeof reducer === \"function\") {\r\n rootReducer = reducer;\r\n }\r\n else if (isPlainObject(reducer)) {\r\n rootReducer = combineReducers(reducer);\r\n }\r\n else {\r\n throw new Error('\"reducer\" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');\r\n }\r\n var finalMiddleware = middleware;\r\n if (typeof finalMiddleware === \"function\") {\r\n finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);\r\n if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {\r\n throw new Error(\"when using a middleware builder function, an array of middleware must be returned\");\r\n }\r\n }\r\n if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== \"function\"; })) {\r\n throw new Error(\"each middleware provided to configureStore must be a function\");\r\n }\r\n var middlewareEnhancer = applyMiddleware.apply(void 0, finalMiddleware);\r\n var finalCompose = compose2;\r\n if (devTools) {\r\n finalCompose = composeWithDevTools(__spreadValues({\r\n trace: !IS_PRODUCTION\r\n }, typeof devTools === \"object\" && devTools));\r\n }\r\n var defaultEnhancers = new EnhancerArray(middlewareEnhancer);\r\n var storeEnhancers = defaultEnhancers;\r\n if (Array.isArray(enhancers)) {\r\n storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);\r\n }\r\n else if (typeof enhancers === \"function\") {\r\n storeEnhancers = enhancers(defaultEnhancers);\r\n }\r\n var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);\r\n return createStore(rootReducer, preloadedState, composedEnhancer);\r\n}\r\n// src/createReducer.ts\r\nimport createNextState2, { isDraft as isDraft2, isDraftable as isDraftable2 } from \"immer\";\r\n// src/mapBuilders.ts\r\nfunction executeReducerBuilderCallback(builderCallback) {\r\n var actionsMap = {};\r\n var actionMatchers = [];\r\n var defaultCaseReducer;\r\n var builder = {\r\n addCase: function (typeOrActionCreator, reducer) {\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (actionMatchers.length > 0) {\r\n throw new Error(\"`builder.addCase` should only be called before calling `builder.addMatcher`\");\r\n }\r\n if (defaultCaseReducer) {\r\n throw new Error(\"`builder.addCase` should only be called before calling `builder.addDefaultCase`\");\r\n }\r\n }\r\n var type = typeof typeOrActionCreator === \"string\" ? typeOrActionCreator : typeOrActionCreator.type;\r\n if (!type) {\r\n throw new Error(\"`builder.addCase` cannot be called with an empty action type\");\r\n }\r\n if (type in actionsMap) {\r\n throw new Error(\"`builder.addCase` cannot be called with two reducers for the same action type\");\r\n }\r\n actionsMap[type] = reducer;\r\n return builder;\r\n },\r\n addMatcher: function (matcher, reducer) {\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (defaultCaseReducer) {\r\n throw new Error(\"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`\");\r\n }\r\n }\r\n actionMatchers.push({ matcher: matcher, reducer: reducer });\r\n return builder;\r\n },\r\n addDefaultCase: function (reducer) {\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (defaultCaseReducer) {\r\n throw new Error(\"`builder.addDefaultCase` can only be called once\");\r\n }\r\n }\r\n defaultCaseReducer = reducer;\r\n return builder;\r\n }\r\n };\r\n builderCallback(builder);\r\n return [actionsMap, actionMatchers, defaultCaseReducer];\r\n}\r\n// src/createReducer.ts\r\nfunction isStateFunction(x) {\r\n return typeof x === \"function\";\r\n}\r\nvar hasWarnedAboutObjectNotation = false;\r\nfunction createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {\r\n if (actionMatchers === void 0) { actionMatchers = []; }\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (typeof mapOrBuilderCallback === \"object\") {\r\n if (!hasWarnedAboutObjectNotation) {\r\n hasWarnedAboutObjectNotation = true;\r\n console.warn(\"The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer\");\r\n }\r\n }\r\n }\r\n var _c = typeof mapOrBuilderCallback === \"function\" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];\r\n var getInitialState;\r\n if (isStateFunction(initialState)) {\r\n getInitialState = function () { return freezeDraftable(initialState()); };\r\n }\r\n else {\r\n var frozenInitialState_1 = freezeDraftable(initialState);\r\n getInitialState = function () { return frozenInitialState_1; };\r\n }\r\n function reducer(state, action) {\r\n if (state === void 0) { state = getInitialState(); }\r\n var caseReducers = __spreadArray([\r\n actionsMap[action.type]\r\n ], finalActionMatchers.filter(function (_c) {\r\n var matcher = _c.matcher;\r\n return matcher(action);\r\n }).map(function (_c) {\r\n var reducer2 = _c.reducer;\r\n return reducer2;\r\n }));\r\n if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {\r\n caseReducers = [finalDefaultCaseReducer];\r\n }\r\n return caseReducers.reduce(function (previousState, caseReducer) {\r\n if (caseReducer) {\r\n if (isDraft2(previousState)) {\r\n var draft = previousState;\r\n var result = caseReducer(draft, action);\r\n if (result === void 0) {\r\n return previousState;\r\n }\r\n return result;\r\n }\r\n else if (!isDraftable2(previousState)) {\r\n var result = caseReducer(previousState, action);\r\n if (result === void 0) {\r\n if (previousState === null) {\r\n return previousState;\r\n }\r\n throw Error(\"A case reducer on a non-draftable value must not return undefined\");\r\n }\r\n return result;\r\n }\r\n else {\r\n return createNextState2(previousState, function (draft) {\r\n return caseReducer(draft, action);\r\n });\r\n }\r\n }\r\n return previousState;\r\n }, state);\r\n }\r\n reducer.getInitialState = getInitialState;\r\n return reducer;\r\n}\r\n// src/createSlice.ts\r\nvar hasWarnedAboutObjectNotation2 = false;\r\nfunction getType2(slice, actionKey) {\r\n return slice + \"/\" + actionKey;\r\n}\r\nfunction createSlice(options) {\r\n var name = options.name;\r\n if (!name) {\r\n throw new Error(\"`name` is a required option for createSlice\");\r\n }\r\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"development\") {\r\n if (options.initialState === void 0) {\r\n console.error(\"You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`\");\r\n }\r\n }\r\n var initialState = typeof options.initialState == \"function\" ? options.initialState : freezeDraftable(options.initialState);\r\n var reducers = options.reducers || {};\r\n var reducerNames = Object.keys(reducers);\r\n var sliceCaseReducersByName = {};\r\n var sliceCaseReducersByType = {};\r\n var actionCreators = {};\r\n reducerNames.forEach(function (reducerName) {\r\n var maybeReducerWithPrepare = reducers[reducerName];\r\n var type = getType2(name, reducerName);\r\n var caseReducer;\r\n var prepareCallback;\r\n if (\"reducer\" in maybeReducerWithPrepare) {\r\n caseReducer = maybeReducerWithPrepare.reducer;\r\n prepareCallback = maybeReducerWithPrepare.prepare;\r\n }\r\n else {\r\n caseReducer = maybeReducerWithPrepare;\r\n }\r\n sliceCaseReducersByName[reducerName] = caseReducer;\r\n sliceCaseReducersByType[type] = caseReducer;\r\n actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);\r\n });\r\n function buildReducer() {\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (typeof options.extraReducers === \"object\") {\r\n if (!hasWarnedAboutObjectNotation2) {\r\n hasWarnedAboutObjectNotation2 = true;\r\n console.warn(\"The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice\");\r\n }\r\n }\r\n }\r\n var _c = typeof options.extraReducers === \"function\" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers], _d = _c[0], extraReducers = _d === void 0 ? {} : _d, _e = _c[1], actionMatchers = _e === void 0 ? [] : _e, _f = _c[2], defaultCaseReducer = _f === void 0 ? void 0 : _f;\r\n var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);\r\n return createReducer(initialState, function (builder) {\r\n for (var key in finalCaseReducers) {\r\n builder.addCase(key, finalCaseReducers[key]);\r\n }\r\n for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) {\r\n var m = actionMatchers_1[_i];\r\n builder.addMatcher(m.matcher, m.reducer);\r\n }\r\n if (defaultCaseReducer) {\r\n builder.addDefaultCase(defaultCaseReducer);\r\n }\r\n });\r\n }\r\n var _reducer;\r\n return {\r\n name: name,\r\n reducer: function (state, action) {\r\n if (!_reducer)\r\n _reducer = buildReducer();\r\n return _reducer(state, action);\r\n },\r\n actions: actionCreators,\r\n caseReducers: sliceCaseReducersByName,\r\n getInitialState: function () {\r\n if (!_reducer)\r\n _reducer = buildReducer();\r\n return _reducer.getInitialState();\r\n }\r\n };\r\n}\r\n// src/entities/entity_state.ts\r\nfunction getInitialEntityState() {\r\n return {\r\n ids: [],\r\n entities: {}\r\n };\r\n}\r\nfunction createInitialStateFactory() {\r\n function getInitialState(additionalState) {\r\n if (additionalState === void 0) { additionalState = {}; }\r\n return Object.assign(getInitialEntityState(), additionalState);\r\n }\r\n return { getInitialState: getInitialState };\r\n}\r\n// src/entities/state_selectors.ts\r\nfunction createSelectorsFactory() {\r\n function getSelectors(selectState) {\r\n var selectIds = function (state) { return state.ids; };\r\n var selectEntities = function (state) { return state.entities; };\r\n var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });\r\n var selectId = function (_, id) { return id; };\r\n var selectById = function (entities, id) { return entities[id]; };\r\n var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });\r\n if (!selectState) {\r\n return {\r\n selectIds: selectIds,\r\n selectEntities: selectEntities,\r\n selectAll: selectAll,\r\n selectTotal: selectTotal,\r\n selectById: createDraftSafeSelector(selectEntities, selectId, selectById)\r\n };\r\n }\r\n var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);\r\n return {\r\n selectIds: createDraftSafeSelector(selectState, selectIds),\r\n selectEntities: selectGlobalizedEntities,\r\n selectAll: createDraftSafeSelector(selectState, selectAll),\r\n selectTotal: createDraftSafeSelector(selectState, selectTotal),\r\n selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)\r\n };\r\n }\r\n return { getSelectors: getSelectors };\r\n}\r\n// src/entities/state_adapter.ts\r\nimport createNextState3, { isDraft as isDraft3 } from \"immer\";\r\nfunction createSingleArgumentStateOperator(mutator) {\r\n var operator = createStateOperator(function (_, state) { return mutator(state); });\r\n return function operation(state) {\r\n return operator(state, void 0);\r\n };\r\n}\r\nfunction createStateOperator(mutator) {\r\n return function operation(state, arg) {\r\n function isPayloadActionArgument(arg2) {\r\n return isFSA(arg2);\r\n }\r\n var runMutator = function (draft) {\r\n if (isPayloadActionArgument(arg)) {\r\n mutator(arg.payload, draft);\r\n }\r\n else {\r\n mutator(arg, draft);\r\n }\r\n };\r\n if (isDraft3(state)) {\r\n runMutator(state);\r\n return state;\r\n }\r\n else {\r\n return createNextState3(state, runMutator);\r\n }\r\n };\r\n}\r\n// src/entities/utils.ts\r\nfunction selectIdValue(entity, selectId) {\r\n var key = selectId(entity);\r\n if (process.env.NODE_ENV !== \"production\" && key === void 0) {\r\n console.warn(\"The entity passed to the `selectId` implementation returned undefined.\", \"You should probably provide your own `selectId` implementation.\", \"The entity that was passed:\", entity, \"The `selectId` implementation:\", selectId.toString());\r\n }\r\n return key;\r\n}\r\nfunction ensureEntitiesArray(entities) {\r\n if (!Array.isArray(entities)) {\r\n entities = Object.values(entities);\r\n }\r\n return entities;\r\n}\r\nfunction splitAddedUpdatedEntities(newEntities, selectId, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n var added = [];\r\n var updated = [];\r\n for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {\r\n var entity = newEntities_1[_i];\r\n var id = selectIdValue(entity, selectId);\r\n if (id in state.entities) {\r\n updated.push({ id: id, changes: entity });\r\n }\r\n else {\r\n added.push(entity);\r\n }\r\n }\r\n return [added, updated];\r\n}\r\n// src/entities/unsorted_state_adapter.ts\r\nfunction createUnsortedStateAdapter(selectId) {\r\n function addOneMutably(entity, state) {\r\n var key = selectIdValue(entity, selectId);\r\n if (key in state.entities) {\r\n return;\r\n }\r\n state.ids.push(key);\r\n state.entities[key] = entity;\r\n }\r\n function addManyMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {\r\n var entity = newEntities_2[_i];\r\n addOneMutably(entity, state);\r\n }\r\n }\r\n function setOneMutably(entity, state) {\r\n var key = selectIdValue(entity, selectId);\r\n if (!(key in state.entities)) {\r\n state.ids.push(key);\r\n }\r\n state.entities[key] = entity;\r\n }\r\n function setManyMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {\r\n var entity = newEntities_3[_i];\r\n setOneMutably(entity, state);\r\n }\r\n }\r\n function setAllMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n state.ids = [];\r\n state.entities = {};\r\n addManyMutably(newEntities, state);\r\n }\r\n function removeOneMutably(key, state) {\r\n return removeManyMutably([key], state);\r\n }\r\n function removeManyMutably(keys, state) {\r\n var didMutate = false;\r\n keys.forEach(function (key) {\r\n if (key in state.entities) {\r\n delete state.entities[key];\r\n didMutate = true;\r\n }\r\n });\r\n if (didMutate) {\r\n state.ids = state.ids.filter(function (id) { return id in state.entities; });\r\n }\r\n }\r\n function removeAllMutably(state) {\r\n Object.assign(state, {\r\n ids: [],\r\n entities: {}\r\n });\r\n }\r\n function takeNewKey(keys, update, state) {\r\n var original2 = state.entities[update.id];\r\n var updated = Object.assign({}, original2, update.changes);\r\n var newKey = selectIdValue(updated, selectId);\r\n var hasNewKey = newKey !== update.id;\r\n if (hasNewKey) {\r\n keys[update.id] = newKey;\r\n delete state.entities[update.id];\r\n }\r\n state.entities[newKey] = updated;\r\n return hasNewKey;\r\n }\r\n function updateOneMutably(update, state) {\r\n return updateManyMutably([update], state);\r\n }\r\n function updateManyMutably(updates, state) {\r\n var newKeys = {};\r\n var updatesPerEntity = {};\r\n updates.forEach(function (update) {\r\n if (update.id in state.entities) {\r\n updatesPerEntity[update.id] = {\r\n id: update.id,\r\n changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)\r\n };\r\n }\r\n });\r\n updates = Object.values(updatesPerEntity);\r\n var didMutateEntities = updates.length > 0;\r\n if (didMutateEntities) {\r\n var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;\r\n if (didMutateIds) {\r\n state.ids = Object.keys(state.entities);\r\n }\r\n }\r\n }\r\n function upsertOneMutably(entity, state) {\r\n return upsertManyMutably([entity], state);\r\n }\r\n function upsertManyMutably(newEntities, state) {\r\n var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];\r\n updateManyMutably(updated, state);\r\n addManyMutably(added, state);\r\n }\r\n return {\r\n removeAll: createSingleArgumentStateOperator(removeAllMutably),\r\n addOne: createStateOperator(addOneMutably),\r\n addMany: createStateOperator(addManyMutably),\r\n setOne: createStateOperator(setOneMutably),\r\n setMany: createStateOperator(setManyMutably),\r\n setAll: createStateOperator(setAllMutably),\r\n updateOne: createStateOperator(updateOneMutably),\r\n updateMany: createStateOperator(updateManyMutably),\r\n upsertOne: createStateOperator(upsertOneMutably),\r\n upsertMany: createStateOperator(upsertManyMutably),\r\n removeOne: createStateOperator(removeOneMutably),\r\n removeMany: createStateOperator(removeManyMutably)\r\n };\r\n}\r\n// src/entities/sorted_state_adapter.ts\r\nfunction createSortedStateAdapter(selectId, sort) {\r\n var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;\r\n function addOneMutably(entity, state) {\r\n return addManyMutably([entity], state);\r\n }\r\n function addManyMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });\r\n if (models.length !== 0) {\r\n merge(models, state);\r\n }\r\n }\r\n function setOneMutably(entity, state) {\r\n return setManyMutably([entity], state);\r\n }\r\n function setManyMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n if (newEntities.length !== 0) {\r\n merge(newEntities, state);\r\n }\r\n }\r\n function setAllMutably(newEntities, state) {\r\n newEntities = ensureEntitiesArray(newEntities);\r\n state.entities = {};\r\n state.ids = [];\r\n addManyMutably(newEntities, state);\r\n }\r\n function updateOneMutably(update, state) {\r\n return updateManyMutably([update], state);\r\n }\r\n function updateManyMutably(updates, state) {\r\n var appliedUpdates = false;\r\n for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {\r\n var update = updates_1[_i];\r\n var entity = state.entities[update.id];\r\n if (!entity) {\r\n continue;\r\n }\r\n appliedUpdates = true;\r\n Object.assign(entity, update.changes);\r\n var newId = selectId(entity);\r\n if (update.id !== newId) {\r\n delete state.entities[update.id];\r\n state.entities[newId] = entity;\r\n }\r\n }\r\n if (appliedUpdates) {\r\n resortEntities(state);\r\n }\r\n }\r\n function upsertOneMutably(entity, state) {\r\n return upsertManyMutably([entity], state);\r\n }\r\n function upsertManyMutably(newEntities, state) {\r\n var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];\r\n updateManyMutably(updated, state);\r\n addManyMutably(added, state);\r\n }\r\n function areArraysEqual(a, b) {\r\n if (a.length !== b.length) {\r\n return false;\r\n }\r\n for (var i = 0; i < a.length && i < b.length; i++) {\r\n if (a[i] === b[i]) {\r\n continue;\r\n }\r\n return false;\r\n }\r\n return true;\r\n }\r\n function merge(models, state) {\r\n models.forEach(function (model) {\r\n state.entities[selectId(model)] = model;\r\n });\r\n resortEntities(state);\r\n }\r\n function resortEntities(state) {\r\n var allEntities = Object.values(state.entities);\r\n allEntities.sort(sort);\r\n var newSortedIds = allEntities.map(selectId);\r\n var ids = state.ids;\r\n if (!areArraysEqual(ids, newSortedIds)) {\r\n state.ids = newSortedIds;\r\n }\r\n }\r\n return {\r\n removeOne: removeOne,\r\n removeMany: removeMany,\r\n removeAll: removeAll,\r\n addOne: createStateOperator(addOneMutably),\r\n updateOne: createStateOperator(updateOneMutably),\r\n upsertOne: createStateOperator(upsertOneMutably),\r\n setOne: createStateOperator(setOneMutably),\r\n setMany: createStateOperator(setManyMutably),\r\n setAll: createStateOperator(setAllMutably),\r\n addMany: createStateOperator(addManyMutably),\r\n updateMany: createStateOperator(updateManyMutably),\r\n upsertMany: createStateOperator(upsertManyMutably)\r\n };\r\n}\r\n// src/entities/create_adapter.ts\r\nfunction createEntityAdapter(options) {\r\n if (options === void 0) { options = {}; }\r\n var _c = __spreadValues({\r\n sortComparer: false,\r\n selectId: function (instance) { return instance.id; }\r\n }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;\r\n var stateFactory = createInitialStateFactory();\r\n var selectorsFactory = createSelectorsFactory();\r\n var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);\r\n return __spreadValues(__spreadValues(__spreadValues({\r\n selectId: selectId,\r\n sortComparer: sortComparer\r\n }, stateFactory), selectorsFactory), stateAdapter);\r\n}\r\n// src/nanoid.ts\r\nvar urlAlphabet = \"ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW\";\r\nvar nanoid = function (size) {\r\n if (size === void 0) { size = 21; }\r\n var id = \"\";\r\n var i = size;\r\n while (i--) {\r\n id += urlAlphabet[Math.random() * 64 | 0];\r\n }\r\n return id;\r\n};\r\n// src/createAsyncThunk.ts\r\nvar commonProperties = [\r\n \"name\",\r\n \"message\",\r\n \"stack\",\r\n \"code\"\r\n];\r\nvar RejectWithValue = /** @class */ (function () {\r\n function RejectWithValue(payload, meta) {\r\n this.payload = payload;\r\n this.meta = meta;\r\n }\r\n return RejectWithValue;\r\n}());\r\nvar FulfillWithMeta = /** @class */ (function () {\r\n function FulfillWithMeta(payload, meta) {\r\n this.payload = payload;\r\n this.meta = meta;\r\n }\r\n return FulfillWithMeta;\r\n}());\r\nvar miniSerializeError = function (value) {\r\n if (typeof value === \"object\" && value !== null) {\r\n var simpleError = {};\r\n for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {\r\n var property = commonProperties_1[_i];\r\n if (typeof value[property] === \"string\") {\r\n simpleError[property] = value[property];\r\n }\r\n }\r\n return simpleError;\r\n }\r\n return { message: String(value) };\r\n};\r\nvar createAsyncThunk = (function () {\r\n function createAsyncThunk2(typePrefix, payloadCreator, options) {\r\n var fulfilled = createAction(typePrefix + \"/fulfilled\", function (payload, requestId, arg, meta) { return ({\r\n payload: payload,\r\n meta: __spreadProps(__spreadValues({}, meta || {}), {\r\n arg: arg,\r\n requestId: requestId,\r\n requestStatus: \"fulfilled\"\r\n })\r\n }); });\r\n var pending = createAction(typePrefix + \"/pending\", function (requestId, arg, meta) { return ({\r\n payload: void 0,\r\n meta: __spreadProps(__spreadValues({}, meta || {}), {\r\n arg: arg,\r\n requestId: requestId,\r\n requestStatus: \"pending\"\r\n })\r\n }); });\r\n var rejected = createAction(typePrefix + \"/rejected\", function (error, requestId, arg, payload, meta) { return ({\r\n payload: payload,\r\n error: (options && options.serializeError || miniSerializeError)(error || \"Rejected\"),\r\n meta: __spreadProps(__spreadValues({}, meta || {}), {\r\n arg: arg,\r\n requestId: requestId,\r\n rejectedWithValue: !!payload,\r\n requestStatus: \"rejected\",\r\n aborted: (error == null ? void 0 : error.name) === \"AbortError\",\r\n condition: (error == null ? void 0 : error.name) === \"ConditionError\"\r\n })\r\n }); });\r\n var displayedWarning = false;\r\n var AC = typeof AbortController !== \"undefined\" ? AbortController : /** @class */ (function () {\r\n function class_1() {\r\n this.signal = {\r\n aborted: false,\r\n addEventListener: function () {\r\n },\r\n dispatchEvent: function () {\r\n return false;\r\n },\r\n onabort: function () {\r\n },\r\n removeEventListener: function () {\r\n },\r\n reason: void 0,\r\n throwIfAborted: function () {\r\n }\r\n };\r\n }\r\n class_1.prototype.abort = function () {\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (!displayedWarning) {\r\n displayedWarning = true;\r\n console.info(\"This platform does not implement AbortController. \\nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.\");\r\n }\r\n }\r\n };\r\n return class_1;\r\n }());\r\n function actionCreator(arg) {\r\n return function (dispatch, getState, extra) {\r\n var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();\r\n var abortController = new AC();\r\n var abortReason;\r\n var started = false;\r\n function abort(reason) {\r\n abortReason = reason;\r\n abortController.abort();\r\n }\r\n var promise2 = function () {\r\n return __async(this, null, function () {\r\n var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n _c.trys.push([0, 4, , 5]);\r\n conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });\r\n if (!isThenable(conditionResult)) return [3 /*break*/, 2];\r\n return [4 /*yield*/, conditionResult];\r\n case 1:\r\n conditionResult = _c.sent();\r\n _c.label = 2;\r\n case 2:\r\n if (conditionResult === false || abortController.signal.aborted) {\r\n throw {\r\n name: \"ConditionError\",\r\n message: \"Aborted due to condition callback returning false.\"\r\n };\r\n }\r\n started = true;\r\n abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener(\"abort\", function () { return reject({\r\n name: \"AbortError\",\r\n message: abortReason || \"Aborted\"\r\n }); }); });\r\n dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, { requestId: requestId, arg: arg }, { getState: getState, extra: extra })));\r\n return [4 /*yield*/, Promise.race([\r\n abortedPromise,\r\n Promise.resolve(payloadCreator(arg, {\r\n dispatch: dispatch,\r\n getState: getState,\r\n extra: extra,\r\n requestId: requestId,\r\n signal: abortController.signal,\r\n abort: abort,\r\n rejectWithValue: function (value, meta) {\r\n return new RejectWithValue(value, meta);\r\n },\r\n fulfillWithValue: function (value, meta) {\r\n return new FulfillWithMeta(value, meta);\r\n }\r\n })).then(function (result) {\r\n if (result instanceof RejectWithValue) {\r\n throw result;\r\n }\r\n if (result instanceof FulfillWithMeta) {\r\n return fulfilled(result.payload, requestId, arg, result.meta);\r\n }\r\n return fulfilled(result, requestId, arg);\r\n })\r\n ])];\r\n case 3:\r\n finalAction = _c.sent();\r\n return [3 /*break*/, 5];\r\n case 4:\r\n err_1 = _c.sent();\r\n finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);\r\n return [3 /*break*/, 5];\r\n case 5:\r\n skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;\r\n if (!skipDispatch) {\r\n dispatch(finalAction);\r\n }\r\n return [2 /*return*/, finalAction];\r\n }\r\n });\r\n });\r\n }();\r\n return Object.assign(promise2, {\r\n abort: abort,\r\n requestId: requestId,\r\n arg: arg,\r\n unwrap: function () {\r\n return promise2.then(unwrapResult);\r\n }\r\n });\r\n };\r\n }\r\n return Object.assign(actionCreator, {\r\n pending: pending,\r\n rejected: rejected,\r\n fulfilled: fulfilled,\r\n typePrefix: typePrefix\r\n });\r\n }\r\n createAsyncThunk2.withTypes = function () { return createAsyncThunk2; };\r\n return createAsyncThunk2;\r\n})();\r\nfunction unwrapResult(action) {\r\n if (action.meta && action.meta.rejectedWithValue) {\r\n throw action.payload;\r\n }\r\n if (action.error) {\r\n throw action.error;\r\n }\r\n return action.payload;\r\n}\r\nfunction isThenable(value) {\r\n return value !== null && typeof value === \"object\" && typeof value.then === \"function\";\r\n}\r\n// src/matchers.ts\r\nvar matches = function (matcher, action) {\r\n if (hasMatchFunction(matcher)) {\r\n return matcher.match(action);\r\n }\r\n else {\r\n return matcher(action);\r\n }\r\n};\r\nfunction isAnyOf() {\r\n var matchers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n matchers[_i] = arguments[_i];\r\n }\r\n return function (action) {\r\n return matchers.some(function (matcher) { return matches(matcher, action); });\r\n };\r\n}\r\nfunction isAllOf() {\r\n var matchers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n matchers[_i] = arguments[_i];\r\n }\r\n return function (action) {\r\n return matchers.every(function (matcher) { return matches(matcher, action); });\r\n };\r\n}\r\nfunction hasExpectedRequestMetadata(action, validStatus) {\r\n if (!action || !action.meta)\r\n return false;\r\n var hasValidRequestId = typeof action.meta.requestId === \"string\";\r\n var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;\r\n return hasValidRequestId && hasValidRequestStatus;\r\n}\r\nfunction isAsyncThunkArray(a) {\r\n return typeof a[0] === \"function\" && \"pending\" in a[0] && \"fulfilled\" in a[0] && \"rejected\" in a[0];\r\n}\r\nfunction isPending() {\r\n var asyncThunks = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n asyncThunks[_i] = arguments[_i];\r\n }\r\n if (asyncThunks.length === 0) {\r\n return function (action) { return hasExpectedRequestMetadata(action, [\"pending\"]); };\r\n }\r\n if (!isAsyncThunkArray(asyncThunks)) {\r\n return isPending()(asyncThunks[0]);\r\n }\r\n return function (action) {\r\n var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });\r\n var combinedMatcher = isAnyOf.apply(void 0, matchers);\r\n return combinedMatcher(action);\r\n };\r\n}\r\nfunction isRejected() {\r\n var asyncThunks = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n asyncThunks[_i] = arguments[_i];\r\n }\r\n if (asyncThunks.length === 0) {\r\n return function (action) { return hasExpectedRequestMetadata(action, [\"rejected\"]); };\r\n }\r\n if (!isAsyncThunkArray(asyncThunks)) {\r\n return isRejected()(asyncThunks[0]);\r\n }\r\n return function (action) {\r\n var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });\r\n var combinedMatcher = isAnyOf.apply(void 0, matchers);\r\n return combinedMatcher(action);\r\n };\r\n}\r\nfunction isRejectedWithValue() {\r\n var asyncThunks = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n asyncThunks[_i] = arguments[_i];\r\n }\r\n var hasFlag = function (action) {\r\n return action && action.meta && action.meta.rejectedWithValue;\r\n };\r\n if (asyncThunks.length === 0) {\r\n return function (action) {\r\n var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);\r\n return combinedMatcher(action);\r\n };\r\n }\r\n if (!isAsyncThunkArray(asyncThunks)) {\r\n return isRejectedWithValue()(asyncThunks[0]);\r\n }\r\n return function (action) {\r\n var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);\r\n return combinedMatcher(action);\r\n };\r\n}\r\nfunction isFulfilled() {\r\n var asyncThunks = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n asyncThunks[_i] = arguments[_i];\r\n }\r\n if (asyncThunks.length === 0) {\r\n return function (action) { return hasExpectedRequestMetadata(action, [\"fulfilled\"]); };\r\n }\r\n if (!isAsyncThunkArray(asyncThunks)) {\r\n return isFulfilled()(asyncThunks[0]);\r\n }\r\n return function (action) {\r\n var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });\r\n var combinedMatcher = isAnyOf.apply(void 0, matchers);\r\n return combinedMatcher(action);\r\n };\r\n}\r\nfunction isAsyncThunkAction() {\r\n var asyncThunks = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n asyncThunks[_i] = arguments[_i];\r\n }\r\n if (asyncThunks.length === 0) {\r\n return function (action) { return hasExpectedRequestMetadata(action, [\"pending\", \"fulfilled\", \"rejected\"]); };\r\n }\r\n if (!isAsyncThunkArray(asyncThunks)) {\r\n return isAsyncThunkAction()(asyncThunks[0]);\r\n }\r\n return function (action) {\r\n var matchers = [];\r\n for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {\r\n var asyncThunk = asyncThunks_1[_i];\r\n matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);\r\n }\r\n var combinedMatcher = isAnyOf.apply(void 0, matchers);\r\n return combinedMatcher(action);\r\n };\r\n}\r\n// src/listenerMiddleware/utils.ts\r\nvar assertFunction = function (func, expected) {\r\n if (typeof func !== \"function\") {\r\n throw new TypeError(expected + \" is not a function\");\r\n }\r\n};\r\nvar noop = function () {\r\n};\r\nvar catchRejection = function (promise2, onError) {\r\n if (onError === void 0) { onError = noop; }\r\n promise2.catch(onError);\r\n return promise2;\r\n};\r\nvar addAbortSignalListener = function (abortSignal, callback) {\r\n abortSignal.addEventListener(\"abort\", callback, { once: true });\r\n return function () { return abortSignal.removeEventListener(\"abort\", callback); };\r\n};\r\nvar abortControllerWithReason = function (abortController, reason) {\r\n var signal = abortController.signal;\r\n if (signal.aborted) {\r\n return;\r\n }\r\n if (!(\"reason\" in signal)) {\r\n Object.defineProperty(signal, \"reason\", {\r\n enumerable: true,\r\n value: reason,\r\n configurable: true,\r\n writable: true\r\n });\r\n }\r\n ;\r\n abortController.abort(reason);\r\n};\r\n// src/listenerMiddleware/exceptions.ts\r\nvar task = \"task\";\r\nvar listener = \"listener\";\r\nvar completed = \"completed\";\r\nvar cancelled = \"cancelled\";\r\nvar taskCancelled = \"task-\" + cancelled;\r\nvar taskCompleted = \"task-\" + completed;\r\nvar listenerCancelled = listener + \"-\" + cancelled;\r\nvar listenerCompleted = listener + \"-\" + completed;\r\nvar TaskAbortError = /** @class */ (function () {\r\n function TaskAbortError(code) {\r\n this.code = code;\r\n this.name = \"TaskAbortError\";\r\n this.message = task + \" \" + cancelled + \" (reason: \" + code + \")\";\r\n }\r\n return TaskAbortError;\r\n}());\r\n// src/listenerMiddleware/task.ts\r\nvar validateActive = function (signal) {\r\n if (signal.aborted) {\r\n throw new TaskAbortError(signal.reason);\r\n }\r\n};\r\nfunction raceWithSignal(signal, promise2) {\r\n var cleanup = noop;\r\n return new Promise(function (resolve, reject) {\r\n var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };\r\n if (signal.aborted) {\r\n notifyRejection();\r\n return;\r\n }\r\n cleanup = addAbortSignalListener(signal, notifyRejection);\r\n promise2.finally(function () { return cleanup(); }).then(resolve, reject);\r\n }).finally(function () {\r\n cleanup = noop;\r\n });\r\n}\r\nvar runTask = function (task2, cleanUp) { return __async(void 0, null, function () {\r\n var value, error_1;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n _c.trys.push([0, 3, 4, 5]);\r\n return [4 /*yield*/, Promise.resolve()];\r\n case 1:\r\n _c.sent();\r\n return [4 /*yield*/, task2()];\r\n case 2:\r\n value = _c.sent();\r\n return [2 /*return*/, {\r\n status: \"ok\",\r\n value: value\r\n }];\r\n case 3:\r\n error_1 = _c.sent();\r\n return [2 /*return*/, {\r\n status: error_1 instanceof TaskAbortError ? \"cancelled\" : \"rejected\",\r\n error: error_1\r\n }];\r\n case 4:\r\n cleanUp == null ? void 0 : cleanUp();\r\n return [7 /*endfinally*/];\r\n case 5: return [2 /*return*/];\r\n }\r\n });\r\n}); };\r\nvar createPause = function (signal) {\r\n return function (promise2) {\r\n return catchRejection(raceWithSignal(signal, promise2).then(function (output) {\r\n validateActive(signal);\r\n return output;\r\n }));\r\n };\r\n};\r\nvar createDelay = function (signal) {\r\n var pause = createPause(signal);\r\n return function (timeoutMs) {\r\n return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));\r\n };\r\n};\r\n// src/listenerMiddleware/index.ts\r\nvar assign = Object.assign;\r\nvar INTERNAL_NIL_TOKEN = {};\r\nvar alm = \"listenerMiddleware\";\r\nvar createFork = function (parentAbortSignal, parentBlockingPromises) {\r\n var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };\r\n return function (taskExecutor, opts) {\r\n assertFunction(taskExecutor, \"taskExecutor\");\r\n var childAbortController = new AbortController();\r\n linkControllers(childAbortController);\r\n var result = runTask(function () { return __async(void 0, null, function () {\r\n var result2;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n validateActive(parentAbortSignal);\r\n validateActive(childAbortController.signal);\r\n return [4 /*yield*/, taskExecutor({\r\n pause: createPause(childAbortController.signal),\r\n delay: createDelay(childAbortController.signal),\r\n signal: childAbortController.signal\r\n })];\r\n case 1:\r\n result2 = _c.sent();\r\n validateActive(childAbortController.signal);\r\n return [2 /*return*/, result2];\r\n }\r\n });\r\n }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });\r\n if (opts == null ? void 0 : opts.autoJoin) {\r\n parentBlockingPromises.push(result);\r\n }\r\n return {\r\n result: createPause(parentAbortSignal)(result),\r\n cancel: function () {\r\n abortControllerWithReason(childAbortController, taskCancelled);\r\n }\r\n };\r\n };\r\n};\r\nvar createTakePattern = function (startListening, signal) {\r\n var take = function (predicate, timeout) { return __async(void 0, null, function () {\r\n var unsubscribe, tuplePromise, promises, output;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n validateActive(signal);\r\n unsubscribe = function () {\r\n };\r\n tuplePromise = new Promise(function (resolve, reject) {\r\n var stopListening = startListening({\r\n predicate: predicate,\r\n effect: function (action, listenerApi) {\r\n listenerApi.unsubscribe();\r\n resolve([\r\n action,\r\n listenerApi.getState(),\r\n listenerApi.getOriginalState()\r\n ]);\r\n }\r\n });\r\n unsubscribe = function () {\r\n stopListening();\r\n reject();\r\n };\r\n });\r\n promises = [\r\n tuplePromise\r\n ];\r\n if (timeout != null) {\r\n promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));\r\n }\r\n _c.label = 1;\r\n case 1:\r\n _c.trys.push([1, , 3, 4]);\r\n return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))];\r\n case 2:\r\n output = _c.sent();\r\n validateActive(signal);\r\n return [2 /*return*/, output];\r\n case 3:\r\n unsubscribe();\r\n return [7 /*endfinally*/];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n }); };\r\n return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };\r\n};\r\nvar getListenerEntryPropsFrom = function (options) {\r\n var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;\r\n if (type) {\r\n predicate = createAction(type).match;\r\n }\r\n else if (actionCreator) {\r\n type = actionCreator.type;\r\n predicate = actionCreator.match;\r\n }\r\n else if (matcher) {\r\n predicate = matcher;\r\n }\r\n else if (predicate) {\r\n }\r\n else {\r\n throw new Error(\"Creating or removing a listener requires one of the known fields for matching an action\");\r\n }\r\n assertFunction(effect, \"options.listener\");\r\n return { predicate: predicate, type: type, effect: effect };\r\n};\r\nvar createListenerEntry = function (options) {\r\n var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;\r\n var id = nanoid();\r\n var entry = {\r\n id: id,\r\n effect: effect,\r\n type: type,\r\n predicate: predicate,\r\n pending: new Set(),\r\n unsubscribe: function () {\r\n throw new Error(\"Unsubscribe not initialized\");\r\n }\r\n };\r\n return entry;\r\n};\r\nvar cancelActiveListeners = function (entry) {\r\n entry.pending.forEach(function (controller) {\r\n abortControllerWithReason(controller, listenerCancelled);\r\n });\r\n};\r\nvar createClearListenerMiddleware = function (listenerMap) {\r\n return function () {\r\n listenerMap.forEach(cancelActiveListeners);\r\n listenerMap.clear();\r\n };\r\n};\r\nvar safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {\r\n try {\r\n errorHandler(errorToNotify, errorInfo);\r\n }\r\n catch (errorHandlerError) {\r\n setTimeout(function () {\r\n throw errorHandlerError;\r\n }, 0);\r\n }\r\n};\r\nvar addListener = createAction(alm + \"/add\");\r\nvar clearAllListeners = createAction(alm + \"/removeAll\");\r\nvar removeListener = createAction(alm + \"/remove\");\r\nvar defaultErrorHandler = function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n console.error.apply(console, __spreadArray([alm + \"/error\"], args));\r\n};\r\nfunction createListenerMiddleware(middlewareOptions) {\r\n var _this = this;\r\n if (middlewareOptions === void 0) { middlewareOptions = {}; }\r\n var listenerMap = new Map();\r\n var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;\r\n assertFunction(onError, \"onError\");\r\n var insertEntry = function (entry) {\r\n entry.unsubscribe = function () { return listenerMap.delete(entry.id); };\r\n listenerMap.set(entry.id, entry);\r\n return function (cancelOptions) {\r\n entry.unsubscribe();\r\n if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {\r\n cancelActiveListeners(entry);\r\n }\r\n };\r\n };\r\n var findListenerEntry = function (comparator) {\r\n for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {\r\n var entry = _c[_i];\r\n if (comparator(entry)) {\r\n return entry;\r\n }\r\n }\r\n return void 0;\r\n };\r\n var startListening = function (options) {\r\n var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });\r\n if (!entry) {\r\n entry = createListenerEntry(options);\r\n }\r\n return insertEntry(entry);\r\n };\r\n var stopListening = function (options) {\r\n var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;\r\n var entry = findListenerEntry(function (entry2) {\r\n var matchPredicateOrType = typeof type === \"string\" ? entry2.type === type : entry2.predicate === predicate;\r\n return matchPredicateOrType && entry2.effect === effect;\r\n });\r\n if (entry) {\r\n entry.unsubscribe();\r\n if (options.cancelActive) {\r\n cancelActiveListeners(entry);\r\n }\r\n }\r\n return !!entry;\r\n };\r\n var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {\r\n var internalTaskController, take, autoJoinPromises, listenerError_1;\r\n return __generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n internalTaskController = new AbortController();\r\n take = createTakePattern(startListening, internalTaskController.signal);\r\n autoJoinPromises = [];\r\n _c.label = 1;\r\n case 1:\r\n _c.trys.push([1, 3, 4, 6]);\r\n entry.pending.add(internalTaskController);\r\n return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, {\r\n getOriginalState: getOriginalState,\r\n condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },\r\n take: take,\r\n delay: createDelay(internalTaskController.signal),\r\n pause: createPause(internalTaskController.signal),\r\n extra: extra,\r\n signal: internalTaskController.signal,\r\n fork: createFork(internalTaskController.signal, autoJoinPromises),\r\n unsubscribe: entry.unsubscribe,\r\n subscribe: function () {\r\n listenerMap.set(entry.id, entry);\r\n },\r\n cancelActiveListeners: function () {\r\n entry.pending.forEach(function (controller, _, set) {\r\n if (controller !== internalTaskController) {\r\n abortControllerWithReason(controller, listenerCancelled);\r\n set.delete(controller);\r\n }\r\n });\r\n }\r\n })))];\r\n case 2:\r\n _c.sent();\r\n return [3 /*break*/, 6];\r\n case 3:\r\n listenerError_1 = _c.sent();\r\n if (!(listenerError_1 instanceof TaskAbortError)) {\r\n safelyNotifyError(onError, listenerError_1, {\r\n raisedBy: \"effect\"\r\n });\r\n }\r\n return [3 /*break*/, 6];\r\n case 4: return [4 /*yield*/, Promise.allSettled(autoJoinPromises)];\r\n case 5:\r\n _c.sent();\r\n abortControllerWithReason(internalTaskController, listenerCompleted);\r\n entry.pending.delete(internalTaskController);\r\n return [7 /*endfinally*/];\r\n case 6: return [2 /*return*/];\r\n }\r\n });\r\n }); };\r\n var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);\r\n var middleware = function (api) { return function (next) { return function (action) {\r\n if (!isAction(action)) {\r\n return next(action);\r\n }\r\n if (addListener.match(action)) {\r\n return startListening(action.payload);\r\n }\r\n if (clearAllListeners.match(action)) {\r\n clearListenerMiddleware();\r\n return;\r\n }\r\n if (removeListener.match(action)) {\r\n return stopListening(action.payload);\r\n }\r\n var originalState = api.getState();\r\n var getOriginalState = function () {\r\n if (originalState === INTERNAL_NIL_TOKEN) {\r\n throw new Error(alm + \": getOriginalState can only be called synchronously\");\r\n }\r\n return originalState;\r\n };\r\n var result;\r\n try {\r\n result = next(action);\r\n if (listenerMap.size > 0) {\r\n var currentState = api.getState();\r\n var listenerEntries = Array.from(listenerMap.values());\r\n for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {\r\n var entry = listenerEntries_1[_i];\r\n var runListener = false;\r\n try {\r\n runListener = entry.predicate(action, currentState, originalState);\r\n }\r\n catch (predicateError) {\r\n runListener = false;\r\n safelyNotifyError(onError, predicateError, {\r\n raisedBy: \"predicate\"\r\n });\r\n }\r\n if (!runListener) {\r\n continue;\r\n }\r\n notifyListener(entry, action, api, getOriginalState);\r\n }\r\n }\r\n }\r\n finally {\r\n originalState = INTERNAL_NIL_TOKEN;\r\n }\r\n return result;\r\n }; }; };\r\n return {\r\n middleware: middleware,\r\n startListening: startListening,\r\n stopListening: stopListening,\r\n clearListeners: clearListenerMiddleware\r\n };\r\n}\r\n// src/autoBatchEnhancer.ts\r\nvar SHOULD_AUTOBATCH = \"RTK_autoBatch\";\r\nvar prepareAutoBatched = function () { return function (payload) {\r\n var _c;\r\n return ({\r\n payload: payload,\r\n meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c)\r\n });\r\n}; };\r\nvar promise;\r\nvar queueMicrotaskShim = typeof queueMicrotask === \"function\" ? queueMicrotask.bind(typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : globalThis) : function (cb) { return (promise || (promise = Promise.resolve())).then(cb).catch(function (err) { return setTimeout(function () {\r\n throw err;\r\n}, 0); }); };\r\nvar createQueueWithTimer = function (timeout) {\r\n return function (notify) {\r\n setTimeout(notify, timeout);\r\n };\r\n};\r\nvar rAF = typeof window !== \"undefined\" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);\r\nvar autoBatchEnhancer = function (options) {\r\n if (options === void 0) { options = { type: \"raf\" }; }\r\n return function (next) { return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var store = next.apply(void 0, args);\r\n var notifying = true;\r\n var shouldNotifyAtEndOfTick = false;\r\n var notificationQueued = false;\r\n var listeners = new Set();\r\n var queueCallback = options.type === \"tick\" ? queueMicrotaskShim : options.type === \"raf\" ? rAF : options.type === \"callback\" ? options.queueNotification : createQueueWithTimer(options.timeout);\r\n var notifyListeners = function () {\r\n notificationQueued = false;\r\n if (shouldNotifyAtEndOfTick) {\r\n shouldNotifyAtEndOfTick = false;\r\n listeners.forEach(function (l) { return l(); });\r\n }\r\n };\r\n return Object.assign({}, store, {\r\n subscribe: function (listener2) {\r\n var wrappedListener = function () { return notifying && listener2(); };\r\n var unsubscribe = store.subscribe(wrappedListener);\r\n listeners.add(listener2);\r\n return function () {\r\n unsubscribe();\r\n listeners.delete(listener2);\r\n };\r\n },\r\n dispatch: function (action) {\r\n var _a;\r\n try {\r\n notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]);\r\n shouldNotifyAtEndOfTick = !notifying;\r\n if (shouldNotifyAtEndOfTick) {\r\n if (!notificationQueued) {\r\n notificationQueued = true;\r\n queueCallback(notifyListeners);\r\n }\r\n }\r\n return store.dispatch(action);\r\n }\r\n finally {\r\n notifying = true;\r\n }\r\n }\r\n });\r\n }; };\r\n};\r\n// src/index.ts\r\nenableES5();\r\nexport { EnhancerArray, MiddlewareArray, SHOULD_AUTOBATCH, TaskAbortError, addListener, autoBatchEnhancer, clearAllListeners, configureStore, createAction, createActionCreatorInvariantMiddleware, createAsyncThunk, createDraftSafeSelector, createEntityAdapter, createImmutableStateInvariantMiddleware, createListenerMiddleware, default2 as createNextState, createReducer, createSelector2 as createSelector, createSerializableStateInvariantMiddleware, createSlice, current2 as current, findNonSerializableValue, freeze, getDefaultMiddleware, getType, isAction, isActionCreator, isAllOf, isAnyOf, isAsyncThunkAction, isDraft4 as isDraft, isFSA as isFluxStandardAction, isFulfilled, isImmutableDefault, isPending, isPlain, isPlainObject, isRejected, isRejectedWithValue, miniSerializeError, nanoid, original, prepareAutoBatched, removeListener, unwrapResult };\r\n//# sourceMappingURL=redux-toolkit.esm.js.map","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n let {responseType, withXSRFToken} = config;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if ((contentType = requestHeaders.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if(platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {\n // Add xsrf header\n const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","export const VERSION = \"1.6.8\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n} = axios;\n\nexport {\n axios as default,\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Meticulate Web Server - OpenAPI 3.0\n * Something something description\n *\n * The version of the OpenAPI document: 0.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"http://localhost:8000\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: AxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath || this.basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Meticulate Web Server - OpenAPI 3.0\n * Something something description\n *\n * The version of the OpenAPI document: 0.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"./configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};\n return axios.request(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Meticulate Web Server - OpenAPI 3.0\n * Something something description\n *\n * The version of the OpenAPI document: 0.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\nimport type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\nimport type { RequestArgs } from './base';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';\n\n/**\n * \n * @export\n * @interface BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest\n */\nexport interface BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest\n */\n 'company_list_id': string;\n /**\n * \n * @type {string}\n * @memberof BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest\n */\n 'market_map_image_base64_encoded': string;\n}\n/**\n * \n * @export\n * @interface BrainV1AddCompaniesToCompanyListPostRequest\n */\nexport interface BrainV1AddCompaniesToCompanyListPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1AddCompaniesToCompanyListPostRequest\n */\n 'company_list_id': string;\n /**\n * \n * @type {Array}\n * @memberof BrainV1AddCompaniesToCompanyListPostRequest\n */\n 'company_domains': Array;\n}\n/**\n * \n * @export\n * @interface BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest\n */\nexport interface BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest\n */\n 'workflow_id': string;\n /**\n * \n * @type {string}\n * @memberof BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest\n */\n 'company_domain': string;\n}\n/**\n * \n * @export\n * @interface BrainV1DeleteCompanyListPostRequest\n */\nexport interface BrainV1DeleteCompanyListPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1DeleteCompanyListPostRequest\n */\n 'company_list_id': string;\n}\n/**\n * \n * @export\n * @interface BrainV1DeletePeopleListPostRequest\n */\nexport interface BrainV1DeletePeopleListPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1DeletePeopleListPostRequest\n */\n 'people_list_id': string;\n}\n/**\n * \n * @export\n * @interface BrainV1FetchGenericWorkflowPostRequest\n */\nexport interface BrainV1FetchGenericWorkflowPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1FetchGenericWorkflowPostRequest\n */\n 'workflow_id': string;\n}\n/**\n * \n * @export\n * @interface BrainV1FindCompaniesInitialInputsToInputsPost200Response\n */\nexport interface BrainV1FindCompaniesInitialInputsToInputsPost200Response {\n /**\n * \n * @type {FindCompaniesV2Inputs}\n * @memberof BrainV1FindCompaniesInitialInputsToInputsPost200Response\n */\n 'final_inputs': FindCompaniesV2Inputs;\n /**\n * \n * @type {string}\n * @memberof BrainV1FindCompaniesInitialInputsToInputsPost200Response\n */\n 'error_explanation'?: string;\n}\n/**\n * \n * @export\n * @interface BrainV1FindSimilarCompaniesLightPostRequest\n */\nexport interface BrainV1FindSimilarCompaniesLightPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1FindSimilarCompaniesLightPostRequest\n */\n 'company_domain': string;\n /**\n * \n * @type {string}\n * @memberof BrainV1FindSimilarCompaniesLightPostRequest\n */\n 'user_id'?: string;\n}\n/**\n * \n * @export\n * @interface BrainV1GetCompanyContactsPostRequest\n */\nexport interface BrainV1GetCompanyContactsPostRequest {\n /**\n * \n * @type {Array}\n * @memberof BrainV1GetCompanyContactsPostRequest\n */\n 'company_domains': Array;\n /**\n * \n * @type {string}\n * @memberof BrainV1GetCompanyContactsPostRequest\n */\n 'persona_description': string;\n /**\n * \n * @type {number}\n * @memberof BrainV1GetCompanyContactsPostRequest\n */\n 'limit_contacts_per_company'?: number;\n}\n/**\n * \n * @export\n * @interface BrainV1GetCompanyProfilePostRequest\n */\nexport interface BrainV1GetCompanyProfilePostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1GetCompanyProfilePostRequest\n */\n 'company_domain': string;\n}\n/**\n * \n * @export\n * @interface BrainV1GetDocumentPdfPostRequest\n */\nexport interface BrainV1GetDocumentPdfPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1GetDocumentPdfPostRequest\n */\n 'document_id': string;\n}\n/**\n * \n * @export\n * @interface BrainV1GetIngestedCompaniesPost200Response\n */\nexport interface BrainV1GetIngestedCompaniesPost200Response {\n /**\n * \n * @type {Array}\n * @memberof BrainV1GetIngestedCompaniesPost200Response\n */\n 'ingested_companies'?: Array;\n /**\n * \n * @type {object}\n * @memberof BrainV1GetIngestedCompaniesPost200Response\n */\n 'assessment_framework'?: object;\n}\n/**\n * \n * @export\n * @interface BrainV1GetScoredCompaniesPostRequest\n */\nexport interface BrainV1GetScoredCompaniesPostRequest {\n /**\n * \n * @type {ScoredCompaniesRequest}\n * @memberof BrainV1GetScoredCompaniesPostRequest\n */\n 'request': ScoredCompaniesRequest;\n}\n/**\n * \n * @export\n * @interface BrainV1GetTaxonomyPostRequest\n */\nexport interface BrainV1GetTaxonomyPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1GetTaxonomyPostRequest\n */\n 'taxonomy_id': string;\n}\n/**\n * \n * @export\n * @interface BrainV1GetTearsheetEnrichmentPostRequest\n */\nexport interface BrainV1GetTearsheetEnrichmentPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1GetTearsheetEnrichmentPostRequest\n */\n 'company_domain': string;\n /**\n * \n * @type {TearsheetEnrichmentType}\n * @memberof BrainV1GetTearsheetEnrichmentPostRequest\n */\n 'enrichment_type': TearsheetEnrichmentType;\n}\n\n\n/**\n * \n * @export\n * @interface BrainV1GiveGenericWorkflowFeedbackPostRequest\n */\nexport interface BrainV1GiveGenericWorkflowFeedbackPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1GiveGenericWorkflowFeedbackPostRequest\n */\n 'workflow_id': string;\n /**\n * \n * @type {WorkflowFeedback}\n * @memberof BrainV1GiveGenericWorkflowFeedbackPostRequest\n */\n 'feedback': WorkflowFeedback;\n}\n/**\n * \n * @export\n * @interface BrainV1IngestDocumentPostRequest\n */\nexport interface BrainV1IngestDocumentPostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1IngestDocumentPostRequest\n */\n 'document_base64_encoded': string;\n}\n/**\n * \n * @export\n * @interface BrainV1IngestWebpagePostRequest\n */\nexport interface BrainV1IngestWebpagePostRequest {\n /**\n * \n * @type {string}\n * @memberof BrainV1IngestWebpagePostRequest\n */\n 'webpage_url': string;\n}\n/**\n * \n * @export\n * @interface BrainV1SetUserComingSoonUpvotePostRequest\n */\nexport interface BrainV1SetUserComingSoonUpvotePostRequest {\n /**\n * \n * @type {WorkflowType}\n * @memberof BrainV1SetUserComingSoonUpvotePostRequest\n */\n 'workflow_type'?: WorkflowType;\n /**\n * \n * @type {boolean}\n * @memberof BrainV1SetUserComingSoonUpvotePostRequest\n */\n 'upvoted'?: boolean;\n}\n\n\n/**\n * \n * @export\n * @interface BrainV1SetUserDefaultScopePostRequest\n */\nexport interface BrainV1SetUserDefaultScopePostRequest {\n /**\n * \n * @type {ImportableSearchScope}\n * @memberof BrainV1SetUserDefaultScopePostRequest\n */\n 'scope': ImportableSearchScope;\n}\n/**\n * \n * @export\n * @interface BrainV1SourceCompaniesInitialInputsToInputsPost200Response\n */\nexport interface BrainV1SourceCompaniesInitialInputsToInputsPost200Response {\n /**\n * \n * @type {SourceCompaniesInputs}\n * @memberof BrainV1SourceCompaniesInitialInputsToInputsPost200Response\n */\n 'final_inputs': SourceCompaniesInputs;\n /**\n * \n * @type {string}\n * @memberof BrainV1SourceCompaniesInitialInputsToInputsPost200Response\n */\n 'error_explanation'?: string;\n}\n/**\n * \n * @export\n * @interface BrainV1UpdateLastViewedCompanyIdsPostRequest\n */\nexport interface BrainV1UpdateLastViewedCompanyIdsPostRequest {\n /**\n * \n * @type {Array}\n * @memberof BrainV1UpdateLastViewedCompanyIdsPostRequest\n */\n 'company_ids': Array;\n}\n/**\n * \n * @export\n * @interface Business\n */\nexport interface Business {\n /**\n * \n * @type {string}\n * @memberof Business\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof Business\n */\n 'id': string;\n /**\n * \n * @type {TextWithSources}\n * @memberof Business\n */\n 'overview': TextWithSources;\n /**\n * \n * @type {string}\n * @memberof Business\n */\n 'domain': string;\n /**\n * \n * @type {string}\n * @memberof Business\n */\n 'linkedin_url'?: string;\n /**\n * \n * @type {string}\n * @memberof Business\n */\n 'logo'?: string;\n /**\n * \n * @type {Array}\n * @memberof Business\n */\n 'aliases'?: Array;\n /**\n * \n * @type {TextWithSources}\n * @memberof Business\n */\n 'employee_count'?: TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof Business\n */\n 'founded'?: TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof Business\n */\n 'headquarters'?: TextWithSources;\n /**\n * \n * @type {BusinessOwnershipType}\n * @memberof Business\n */\n 'ownership'?: BusinessOwnershipType;\n /**\n * \n * @type {BusinessSummary}\n * @memberof Business\n */\n 'summary': BusinessSummary;\n /**\n * \n * @type {TextWithSources}\n * @memberof Business\n */\n 'revenue'?: TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof Business\n */\n 'market_valuation'?: TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof Business\n */\n 'funds_raised'?: TextWithSources;\n /**\n * \n * @type {Array}\n * @memberof Business\n */\n 'investors'?: Array;\n /**\n * \n * @type {{ [key: string]: TextWithSources; }}\n * @memberof Business\n */\n 'research': { [key: string]: TextWithSources; };\n /**\n * \n * @type {CompFinderSimilarity}\n * @memberof Business\n */\n 'similarity'?: CompFinderSimilarity;\n /**\n * \n * @type {number}\n * @memberof Business\n */\n 'basic_research_timestamp'?: number;\n /**\n * \n * @type {number}\n * @memberof Business\n */\n 'provider_research_timestamp'?: number;\n /**\n * \n * @type {string}\n * @memberof Business\n */\n 'ticker'?: string;\n /**\n * \n * @type {string}\n * @memberof Business\n */\n 'industry'?: string;\n /**\n * \n * @type {ReportedMetric}\n * @memberof Business\n */\n 'ebitda'?: ReportedMetric;\n /**\n * \n * @type {number}\n * @memberof Business\n */\n 'market_cap'?: number;\n /**\n * \n * @type {ReportedMetric}\n * @memberof Business\n */\n 'enterprise_value'?: ReportedMetric;\n /**\n * \n * @type {ReportedMetric}\n * @memberof Business\n */\n 'earnings'?: ReportedMetric;\n /**\n * \n * @type {ReportedMetric}\n * @memberof Business\n */\n 'free_cash_flow'?: ReportedMetric;\n /**\n * \n * @type {ReportedMetric}\n * @memberof Business\n */\n 'revenue_growth'?: ReportedMetric;\n /**\n * \n * @type {ReportedMetric}\n * @memberof Business\n */\n 'gross_margin'?: ReportedMetric;\n /**\n * \n * @type {ReportedMetric}\n * @memberof Business\n */\n 'reported_employee_count'?: ReportedMetric;\n /**\n * \n * @type {ReportedMetric}\n * @memberof Business\n */\n 'reported_revenue'?: ReportedMetric;\n /**\n * \n * @type {MultiReportedMetric}\n * @memberof Business\n */\n 'ttm_revenue'?: MultiReportedMetric;\n /**\n * \n * @type {MultiReportedMetric}\n * @memberof Business\n */\n 'ttm_ebitda'?: MultiReportedMetric;\n /**\n * \n * @type {MultiReportedMetric}\n * @memberof Business\n */\n 'ttm_earnings'?: MultiReportedMetric;\n /**\n * \n * @type {MultiReportedMetric}\n * @memberof Business\n */\n 'ttm_free_cash_flow'?: MultiReportedMetric;\n /**\n * \n * @type {MultiReportedMetric}\n * @memberof Business\n */\n 'ttm_gross_margin'?: MultiReportedMetric;\n /**\n * \n * @type {MultiReportedMetric}\n * @memberof Business\n */\n 'ttm_ev_to_ebitda'?: MultiReportedMetric;\n /**\n * \n * @type {MetricWithSources}\n * @memberof Business\n */\n 'revenue_ttm'?: MetricWithSources;\n /**\n * \n * @type {MetricWithSources}\n * @memberof Business\n */\n 'ebitda_ttm'?: MetricWithSources;\n /**\n * \n * @type {MetricWithSources}\n * @memberof Business\n */\n 'earnings_ttm'?: MetricWithSources;\n /**\n * \n * @type {MetricWithSources}\n * @memberof Business\n */\n 'gross_margin_ttm'?: MetricWithSources;\n /**\n * \n * @type {MetricWithSources}\n * @memberof Business\n */\n 'free_cash_flow_ttm'?: MetricWithSources;\n /**\n * \n * @type {MetricWithSources}\n * @memberof Business\n */\n 'ev_to_ebitda_ttm'?: MetricWithSources;\n /**\n * \n * @type {MetricWithSources}\n * @memberof Business\n */\n 'ev_to_revenue_ttm'?: MetricWithSources;\n /**\n * \n * @type {Array}\n * @memberof Business\n */\n 'management'?: Array;\n /**\n * \n * @type {Array}\n * @memberof Business\n */\n 'recent_press'?: Array;\n /**\n * \n * @type {BusinessCommentary}\n * @memberof Business\n */\n 'commentary'?: BusinessCommentary;\n /**\n * \n * @type {BusinessSemanticFields}\n * @memberof Business\n */\n 'semantic_fields'?: BusinessSemanticFields;\n}\n/**\n * \n * @export\n * @interface BusinessCommentary\n */\nexport interface BusinessCommentary {\n /**\n * \n * @type {Array}\n * @memberof BusinessCommentary\n */\n 'advantages'?: Array;\n /**\n * \n * @type {Array}\n * @memberof BusinessCommentary\n */\n 'disadvantages'?: Array;\n /**\n * \n * @type {Array}\n * @memberof BusinessCommentary\n */\n 'differentiation'?: Array;\n}\n/**\n * \n * @export\n * @interface BusinessManagementItem\n */\nexport interface BusinessManagementItem {\n /**\n * \n * @type {string}\n * @memberof BusinessManagementItem\n */\n 'name'?: string;\n /**\n * \n * @type {string}\n * @memberof BusinessManagementItem\n */\n 'title'?: string;\n /**\n * \n * @type {string}\n * @memberof BusinessManagementItem\n */\n 'description'?: string;\n /**\n * \n * @type {string}\n * @memberof BusinessManagementItem\n */\n 'linkedin_url'?: string;\n /**\n * \n * @type {string}\n * @memberof BusinessManagementItem\n */\n 'image'?: string;\n}\n/**\n * \n * @export\n * @interface BusinessOwnershipType\n */\nexport interface BusinessOwnershipType {\n /**\n * \n * @type {string}\n * @memberof BusinessOwnershipType\n */\n 'value': BusinessOwnershipTypeValueEnum;\n /**\n * \n * @type {Array}\n * @memberof BusinessOwnershipType\n */\n 'sources': Array;\n}\n\nexport const BusinessOwnershipTypeValueEnum = {\n Public: 'public',\n Private: 'private',\n Subsidiary: 'subsidiary',\n JointVenture: 'joint_venture',\n Defunct: 'defunct',\n InvestmentFund: 'investment_fund'\n} as const;\n\nexport type BusinessOwnershipTypeValueEnum = typeof BusinessOwnershipTypeValueEnum[keyof typeof BusinessOwnershipTypeValueEnum];\n\n/**\n * \n * @export\n * @interface BusinessPressItem\n */\nexport interface BusinessPressItem {\n /**\n * \n * @type {string}\n * @memberof BusinessPressItem\n */\n 'title'?: string;\n /**\n * \n * @type {string}\n * @memberof BusinessPressItem\n */\n 'link': string;\n /**\n * \n * @type {string}\n * @memberof BusinessPressItem\n */\n 'summary': string;\n /**\n * \n * @type {string}\n * @memberof BusinessPressItem\n */\n 'source_name'?: string;\n /**\n * \n * @type {number}\n * @memberof BusinessPressItem\n */\n 'publish_timestamp'?: number;\n}\n/**\n * \n * @export\n * @interface BusinessSemanticFields\n */\nexport interface BusinessSemanticFields {\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSemanticFields\n */\n 'business_model'?: TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSemanticFields\n */\n 'main_offerings'?: TextWithSources;\n /**\n * \n * @type {Array}\n * @memberof BusinessSemanticFields\n */\n 'main_offerings_list'?: Array;\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSemanticFields\n */\n 'customer_segments'?: TextWithSources;\n /**\n * \n * @type {Array}\n * @memberof BusinessSemanticFields\n */\n 'customer_segments_list'?: Array;\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSemanticFields\n */\n 'geographies'?: TextWithSources;\n /**\n * \n * @type {Array}\n * @memberof BusinessSemanticFields\n */\n 'geographies_list'?: Array;\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSemanticFields\n */\n 'technologies'?: TextWithSources;\n /**\n * \n * @type {Array}\n * @memberof BusinessSemanticFields\n */\n 'technologies_list'?: Array;\n}\n/**\n * \n * @export\n * @interface BusinessShell\n */\nexport interface BusinessShell {\n /**\n * \n * @type {string}\n * @memberof BusinessShell\n */\n 'name': string;\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessShell\n */\n 'overview': TextWithSources;\n}\n/**\n * \n * @export\n * @interface BusinessShellWithDomain\n */\nexport interface BusinessShellWithDomain {\n /**\n * \n * @type {string}\n * @memberof BusinessShellWithDomain\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof BusinessShellWithDomain\n */\n 'overview': string;\n /**\n * \n * @type {string}\n * @memberof BusinessShellWithDomain\n */\n 'domain': string;\n}\n/**\n * \n * @export\n * @interface BusinessStore\n */\nexport interface BusinessStore {\n /**\n * \n * @type {{ [key: string]: Business; }}\n * @memberof BusinessStore\n */\n 'businesses': { [key: string]: Business; };\n}\n/**\n * \n * @export\n * @interface BusinessSummary\n */\nexport interface BusinessSummary {\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSummary\n */\n 'business_model'?: TextWithSources;\n /**\n * \n * @type {Array}\n * @memberof BusinessSummary\n */\n 'main_offerings'?: Array;\n /**\n * \n * @type {Array}\n * @memberof BusinessSummary\n */\n 'customer_groups'?: Array;\n /**\n * \n * @type {MaturityLevel}\n * @memberof BusinessSummary\n */\n 'maturity_level'?: MaturityLevel;\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSummary\n */\n 'geographies'?: TextWithSources;\n}\n/**\n * \n * @export\n * @interface BusinessSummaryFile\n */\nexport interface BusinessSummaryFile {\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSummaryFile\n */\n 'overview'?: TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSummaryFile\n */\n 'business_model'?: TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSummaryFile\n */\n 'main_offerings'?: TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSummaryFile\n */\n 'customer_groups'?: TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSummaryFile\n */\n 'geographies'?: TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof BusinessSummaryFile\n */\n 'scale'?: TextWithSources;\n}\n/**\n * \n * @export\n * @interface Category\n */\nexport interface Category {\n /**\n * \n * @type {string}\n * @memberof Category\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof Category\n */\n 'description': string;\n /**\n * \n * @type {Array}\n * @memberof Category\n */\n 'exemplars': Array;\n /**\n * \n * @type {Array}\n * @memberof Category\n */\n 'companies': Array;\n /**\n * \n * @type {Array}\n * @memberof Category\n */\n 'bespoke_questions': Array;\n}\n/**\n * \n * @export\n * @interface CategoryScoringResult\n */\nexport interface CategoryScoringResult {\n /**\n * \n * @type {number}\n * @memberof CategoryScoringResult\n */\n 'overall_score'?: number;\n /**\n * \n * @type {Array}\n * @memberof CategoryScoringResult\n */\n 'topic_results': Array;\n}\n/**\n * \n * @export\n * @interface CommercialDive\n */\nexport interface CommercialDive {\n /**\n * \n * @type {string}\n * @memberof CommercialDive\n */\n 'company_domain': string;\n /**\n * \n * @type {Array}\n * @memberof CommercialDive\n */\n 'customer_groups': Array;\n /**\n * \n * @type {Array}\n * @memberof CommercialDive\n */\n 'partners': Array;\n /**\n * \n * @type {Array}\n * @memberof CommercialDive\n */\n 'customers': Array;\n /**\n * \n * @type {Array}\n * @memberof CommercialDive\n */\n 'sales_motions': Array;\n /**\n * \n * @type {Array}\n * @memberof CommercialDive\n */\n 'customer_classes': Array;\n /**\n * \n * @type {Array}\n * @memberof CommercialDive\n */\n 'sources': Array;\n}\n/**\n * \n * @export\n * @interface CompFinderInputsV5\n */\nexport interface CompFinderInputsV5 {\n /**\n * \n * @type {string}\n * @memberof CompFinderInputsV5\n */\n 'name'?: string;\n /**\n * \n * @type {string}\n * @memberof CompFinderInputsV5\n */\n 'domain': string;\n /**\n * \n * @type {string}\n * @memberof CompFinderInputsV5\n */\n 'guidance'?: string;\n /**\n * \n * @type {string}\n * @memberof CompFinderInputsV5\n */\n 'user_email'?: string;\n /**\n * \n * @type {MarketMap}\n * @memberof CompFinderInputsV5\n */\n 'user_market_map'?: MarketMap;\n /**\n * \n * @type {string}\n * @memberof CompFinderInputsV5\n */\n 'target_business_id'?: string;\n}\n/**\n * \n * @export\n * @interface CompFinderOutputsV5\n */\nexport interface CompFinderOutputsV5 {\n /**\n * \n * @type {MarketMap}\n * @memberof CompFinderOutputsV5\n */\n 'market_map': MarketMap;\n /**\n * \n * @type {Array}\n * @memberof CompFinderOutputsV5\n */\n 'businesses': Array;\n /**\n * \n * @type {CompFinderOutputsV5Effort}\n * @memberof CompFinderOutputsV5\n */\n 'effort'?: CompFinderOutputsV5Effort;\n}\n/**\n * \n * @export\n * @interface CompFinderOutputsV5Effort\n */\nexport interface CompFinderOutputsV5Effort {\n /**\n * \n * @type {number}\n * @memberof CompFinderOutputsV5Effort\n */\n 'number_of_articles_read': number;\n /**\n * \n * @type {number}\n * @memberof CompFinderOutputsV5Effort\n */\n 'number_of_companies_researched': number;\n /**\n * \n * @type {number}\n * @memberof CompFinderOutputsV5Effort\n */\n 'number_of_llm_calls': number;\n}\n/**\n * \n * @export\n * @interface CompFinderSimilarity\n */\nexport interface CompFinderSimilarity {\n /**\n * \n * @type {number}\n * @memberof CompFinderSimilarity\n */\n 'overall_similarity'?: number;\n /**\n * \n * @type {number}\n * @memberof CompFinderSimilarity\n */\n 'business_model'?: number;\n /**\n * \n * @type {number}\n * @memberof CompFinderSimilarity\n */\n 'main_offerings'?: number;\n /**\n * \n * @type {number}\n * @memberof CompFinderSimilarity\n */\n 'customer_groups'?: number;\n /**\n * \n * @type {number}\n * @memberof CompFinderSimilarity\n */\n 'geographies'?: number;\n /**\n * \n * @type {number}\n * @memberof CompFinderSimilarity\n */\n 'maturity_level'?: number;\n}\n/**\n * \n * @export\n * @interface CompFinderWorkflowStubV5\n */\nexport interface CompFinderWorkflowStubV5 {\n /**\n * \n * @type {string}\n * @memberof CompFinderWorkflowStubV5\n */\n 'workflow_id': string;\n /**\n * \n * @type {TaskStatus}\n * @memberof CompFinderWorkflowStubV5\n */\n 'status': TaskStatus;\n /**\n * \n * @type {string}\n * @memberof CompFinderWorkflowStubV5\n */\n 'title': string;\n /**\n * \n * @type {boolean}\n * @memberof CompFinderWorkflowStubV5\n */\n 'hack_fill_out_market_map'?: boolean;\n}\n\n\n/**\n * \n * @export\n * @interface CompFinderWorkflowV5\n */\nexport interface CompFinderWorkflowV5 {\n /**\n * \n * @type {string}\n * @memberof CompFinderWorkflowV5\n */\n 'workflow_id': string;\n /**\n * \n * @type {TaskStatus}\n * @memberof CompFinderWorkflowV5\n */\n 'status': TaskStatus;\n /**\n * \n * @type {CompFinderInputsV5}\n * @memberof CompFinderWorkflowV5\n */\n 'inputs': CompFinderInputsV5;\n /**\n * \n * @type {CompFinderOutputsV5}\n * @memberof CompFinderWorkflowV5\n */\n 'outputs'?: CompFinderOutputsV5;\n /**\n * \n * @type {number}\n * @memberof CompFinderWorkflowV5\n */\n 'start_timestamp_seconds'?: number;\n /**\n * \n * @type {boolean}\n * @memberof CompFinderWorkflowV5\n */\n 'hack_fill_out_market_map'?: boolean;\n /**\n * \n * @type {WorkflowFeedback}\n * @memberof CompFinderWorkflowV5\n */\n 'feedback'?: WorkflowFeedback;\n}\n\n\n/**\n * \n * @export\n * @interface CompLandscapeCompany\n */\nexport interface CompLandscapeCompany {\n /**\n * \n * @type {FrontendCompany}\n * @memberof CompLandscapeCompany\n */\n 'company': FrontendCompany;\n /**\n * \n * @type {Array}\n * @memberof CompLandscapeCompany\n */\n 'categories_belonging': Array;\n}\n/**\n * \n * @export\n * @interface CompLandscapeInputs\n */\nexport interface CompLandscapeInputs {\n /**\n * \n * @type {string}\n * @memberof CompLandscapeInputs\n */\n 'company_website': string;\n /**\n * \n * @type {string}\n * @memberof CompLandscapeInputs\n */\n 'grouping_instructions'?: string;\n /**\n * \n * @type {MarketMap}\n * @memberof CompLandscapeInputs\n */\n 'market_map'?: MarketMap;\n}\n/**\n * \n * @export\n * @interface CompLandscapeOutputs\n */\nexport interface CompLandscapeOutputs {\n /**\n * \n * @type {MarketMap}\n * @memberof CompLandscapeOutputs\n */\n 'market_map': MarketMap;\n /**\n * \n * @type {Array}\n * @memberof CompLandscapeOutputs\n */\n 'companies': Array;\n}\n/**\n * \n * @export\n * @interface CompLandscapeV7Workflow\n */\nexport interface CompLandscapeV7Workflow {\n /**\n * \n * @type {CompLandscapeInputs}\n * @memberof CompLandscapeV7Workflow\n */\n 'inputs': CompLandscapeInputs;\n /**\n * \n * @type {CompLandscapeOutputs}\n * @memberof CompLandscapeV7Workflow\n */\n 'outputs'?: CompLandscapeOutputs;\n /**\n * \n * @type {string}\n * @memberof CompLandscapeV7Workflow\n */\n 'parse_helper': CompLandscapeV7WorkflowParseHelperEnum;\n}\n\nexport const CompLandscapeV7WorkflowParseHelperEnum = {\n CompLandscapeV7: 'comp_landscape_v7'\n} as const;\n\nexport type CompLandscapeV7WorkflowParseHelperEnum = typeof CompLandscapeV7WorkflowParseHelperEnum[keyof typeof CompLandscapeV7WorkflowParseHelperEnum];\n\n/**\n * \n * @export\n * @interface CompanyAssessment\n */\nexport interface CompanyAssessment {\n /**\n * \n * @type {Array}\n * @memberof CompanyAssessment\n */\n 'scoring_answers'?: Array;\n /**\n * \n * @type {number}\n * @memberof CompanyAssessment\n */\n 'overall_score'?: number;\n}\n/**\n * \n * @export\n * @interface CompanyCommentary\n */\nexport interface CompanyCommentary {\n /**\n * \n * @type {Array}\n * @memberof CompanyCommentary\n */\n 'talking_points': Array;\n /**\n * \n * @type {CompanyAssessment}\n * @memberof CompanyCommentary\n */\n 'assessment'?: CompanyAssessment;\n}\n/**\n * \n * @export\n * @interface CompanyCustomResearchAnswerSet\n */\nexport interface CompanyCustomResearchAnswerSet {\n /**\n * \n * @type {Business}\n * @memberof CompanyCustomResearchAnswerSet\n */\n 'business': Business;\n /**\n * \n * @type {Array}\n * @memberof CompanyCustomResearchAnswerSet\n */\n 'answers_to_subtopics': Array;\n}\n/**\n * \n * @export\n * @interface CompanyCustomResearchInputsV1\n */\nexport interface CompanyCustomResearchInputsV1 {\n /**\n * \n * @type {string}\n * @memberof CompanyCustomResearchInputsV1\n */\n 'topic': string;\n /**\n * \n * @type {Array}\n * @memberof CompanyCustomResearchInputsV1\n */\n 'businesses': Array;\n}\n/**\n * \n * @export\n * @interface CompanyCustomResearchOutputV1\n */\nexport interface CompanyCustomResearchOutputV1 {\n /**\n * \n * @type {Array}\n * @memberof CompanyCustomResearchOutputV1\n */\n 'subtopics': Array;\n /**\n * \n * @type {Array}\n * @memberof CompanyCustomResearchOutputV1\n */\n 'answer_sets': Array;\n}\n/**\n * \n * @export\n * @interface CompanyCustomResearchWorkflowV1\n */\nexport interface CompanyCustomResearchWorkflowV1 {\n /**\n * \n * @type {CompanyCustomResearchInputsV1}\n * @memberof CompanyCustomResearchWorkflowV1\n */\n 'inputs': CompanyCustomResearchInputsV1;\n /**\n * \n * @type {CompanyCustomResearchOutputV1}\n * @memberof CompanyCustomResearchWorkflowV1\n */\n 'outputs'?: CompanyCustomResearchOutputV1;\n /**\n * \n * @type {string}\n * @memberof CompanyCustomResearchWorkflowV1\n */\n 'parse_helper': CompanyCustomResearchWorkflowV1ParseHelperEnum;\n}\n\nexport const CompanyCustomResearchWorkflowV1ParseHelperEnum = {\n CompanyCustomResearch: 'company_custom_research'\n} as const;\n\nexport type CompanyCustomResearchWorkflowV1ParseHelperEnum = typeof CompanyCustomResearchWorkflowV1ParseHelperEnum[keyof typeof CompanyCustomResearchWorkflowV1ParseHelperEnum];\n\n/**\n * \n * @export\n * @interface CompanyList\n */\nexport interface CompanyList {\n /**\n * \n * @type {string}\n * @memberof CompanyList\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof CompanyList\n */\n 'title': string;\n /**\n * \n * @type {Array}\n * @memberof CompanyList\n */\n 'companies': Array;\n /**\n * \n * @type {Array}\n * @memberof CompanyList\n */\n 'input_images_base64_encoded'?: Array;\n}\n/**\n * \n * @export\n * @interface CompanyScoringResult\n */\nexport interface CompanyScoringResult {\n /**\n * \n * @type {number}\n * @memberof CompanyScoringResult\n */\n 'overall_score'?: number;\n /**\n * \n * @type {Array}\n * @memberof CompanyScoringResult\n */\n 'topic_results': Array;\n}\n/**\n * \n * @export\n * @interface CompanySummary\n */\nexport interface CompanySummary {\n /**\n * \n * @type {TextWithSources}\n * @memberof CompanySummary\n */\n 'overview': TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof CompanySummary\n */\n 'business_model': TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof CompanySummary\n */\n 'main_offerings': TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof CompanySummary\n */\n 'customer_segments': TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof CompanySummary\n */\n 'geographies': TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof CompanySummary\n */\n 'technologies': TextWithSources;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const CompanySummaryField = {\n BusinessModel: 'business_model',\n MainOfferings: 'main_offerings',\n CustomerGroups: 'customer_groups',\n Geographies: 'geographies',\n MaturityLevel: 'maturity_level',\n Technologies: 'technologies',\n Custom: 'custom'\n} as const;\n\nexport type CompanySummaryField = typeof CompanySummaryField[keyof typeof CompanySummaryField];\n\n\n/**\n * \n * @export\n * @interface CompanyTearsheet\n */\nexport interface CompanyTearsheet {\n /**\n * \n * @type {FrontendCompany}\n * @memberof CompanyTearsheet\n */\n 'company': FrontendCompany;\n /**\n * \n * @type {CommercialDive}\n * @memberof CompanyTearsheet\n */\n 'commercial_dive'?: CommercialDive;\n /**\n * \n * @type {OfferingsDive}\n * @memberof CompanyTearsheet\n */\n 'offerings_dive'?: OfferingsDive;\n /**\n * \n * @type {TeamDive}\n * @memberof CompanyTearsheet\n */\n 'team_dive'?: TeamDive;\n /**\n * \n * @type {RecentDevelopments}\n * @memberof CompanyTearsheet\n */\n 'recent_developments'?: RecentDevelopments;\n /**\n * \n * @type {FeaturedDocuments}\n * @memberof CompanyTearsheet\n */\n 'featured_documents'?: FeaturedDocuments;\n /**\n * \n * @type {RelatedCompanies}\n * @memberof CompanyTearsheet\n */\n 'related_companies'?: RelatedCompanies;\n /**\n * \n * @type {CompanyCommentary}\n * @memberof CompanyTearsheet\n */\n 'commentary'?: CompanyCommentary;\n /**\n * \n * @type {Array}\n * @memberof CompanyTearsheet\n */\n 'enrichments'?: Array;\n /**\n * \n * @type {DealcloudCompanyInfo}\n * @memberof CompanyTearsheet\n */\n 'dealcloud_company_info'?: DealcloudCompanyInfo;\n}\n/**\n * \n * @export\n * @interface CompanyTearsheetStreamingMessage\n */\nexport interface CompanyTearsheetStreamingMessage {\n /**\n * \n * @type {TaskStatus}\n * @memberof CompanyTearsheetStreamingMessage\n */\n 'status': TaskStatus;\n /**\n * \n * @type {CompanyTearsheet}\n * @memberof CompanyTearsheetStreamingMessage\n */\n 'tearsheet'?: CompanyTearsheet;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const CompanyType = {\n SmallPrivate: 'SmallPrivate',\n EarlyStageStartup: 'EarlyStageStartup',\n GrowthStageStartup: 'GrowthStageStartup',\n EstablishedPrivate: 'EstablishedPrivate',\n Public: 'Public',\n NotForProfit: 'NotForProfit',\n Subsidiary: 'Subsidiary',\n InvestmentFund: 'InvestmentFund',\n Defunct: 'Defunct'\n} as const;\n\nexport type CompanyType = typeof CompanyType[keyof typeof CompanyType];\n\n\n/**\n * \n * @export\n * @interface Confidence\n */\nexport interface Confidence {\n /**\n * \n * @type {number}\n * @memberof Confidence\n */\n 'overall': number;\n /**\n * \n * @type {number}\n * @memberof Confidence\n */\n 'sources'?: number;\n /**\n * \n * @type {number}\n * @memberof Confidence\n */\n 'understanding'?: number;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const CustomerClass = {\n LargeEnterprise: 'LargeEnterprise',\n MidMarket: 'MidMarket',\n Smb: 'SMB',\n GovernmentPublicSector: 'GovernmentPublicSector',\n Consumer: 'Consumer',\n Marketplace: 'Marketplace'\n} as const;\n\nexport type CustomerClass = typeof CustomerClass[keyof typeof CustomerClass];\n\n\n/**\n * \n * @export\n * @interface CustomerGroup\n */\nexport interface CustomerGroup {\n /**\n * \n * @type {string}\n * @memberof CustomerGroup\n */\n 'name': string;\n /**\n * \n * @type {Array}\n * @memberof CustomerGroup\n */\n 'buyer_personas': Array;\n}\n/**\n * \n * @export\n * @interface DataElement\n */\nexport interface DataElement {\n /**\n * \n * @type {Array}\n * @memberof DataElement\n */\n 'sources'?: Array;\n /**\n * \n * @type {Array}\n * @memberof DataElement\n */\n 'otherSources'?: Array;\n /**\n * \n * @type {Confidence}\n * @memberof DataElement\n */\n 'confidence'?: Confidence;\n /**\n * \n * @type {DataElementValue}\n * @memberof DataElement\n */\n 'value': DataElementValue;\n /**\n * \n * @type {string}\n * @memberof DataElement\n */\n 'origin'?: DataElementOriginEnum;\n}\n\nexport const DataElementOriginEnum = {\n User: 'user',\n Meticulate: 'meticulate',\n UserModified: 'user-modified'\n} as const;\n\nexport type DataElementOriginEnum = typeof DataElementOriginEnum[keyof typeof DataElementOriginEnum];\n\n/**\n * @type DataElementValue\n * @export\n */\nexport type DataElementValue = object | string;\n\n/**\n * \n * @export\n * @interface DealcloudCompanyInfo\n */\nexport interface DealcloudCompanyInfo {\n /**\n * \n * @type {string}\n * @memberof DealcloudCompanyInfo\n */\n 'entry_id': string;\n /**\n * \n * @type {string}\n * @memberof DealcloudCompanyInfo\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof DealcloudCompanyInfo\n */\n 'domain': string;\n /**\n * \n * @type {Array}\n * @memberof DealcloudCompanyInfo\n */\n 'interactions': Array;\n /**\n * \n * @type {Array}\n * @memberof DealcloudCompanyInfo\n */\n 'relationship_owners': Array;\n /**\n * \n * @type {Array}\n * @memberof DealcloudCompanyInfo\n */\n 'coverage_status': Array;\n /**\n * \n * @type {Array}\n * @memberof DealcloudCompanyInfo\n */\n 'company_type': Array;\n /**\n * \n * @type {Array}\n * @memberof DealcloudCompanyInfo\n */\n 'status': Array;\n /**\n * \n * @type {Array}\n * @memberof DealcloudCompanyInfo\n */\n 'priority': Array;\n /**\n * \n * @type {Array}\n * @memberof DealcloudCompanyInfo\n */\n 'deal_team_users': Array;\n /**\n * \n * @type {Array}\n * @memberof DealcloudCompanyInfo\n */\n 'related_companies'?: Array;\n}\n/**\n * \n * @export\n * @interface DealcloudCompanyInfoRelatedCompaniesInner\n */\nexport interface DealcloudCompanyInfoRelatedCompaniesInner {\n /**\n * \n * @type {FrontendCompany}\n * @memberof DealcloudCompanyInfoRelatedCompaniesInner\n */\n 'company'?: FrontendCompany;\n /**\n * \n * @type {Array}\n * @memberof DealcloudCompanyInfoRelatedCompaniesInner\n */\n 'users'?: Array;\n /**\n * \n * @type {Array}\n * @memberof DealcloudCompanyInfoRelatedCompaniesInner\n */\n 'interactions'?: Array;\n}\n/**\n * \n * @export\n * @interface DealcloudInteraction\n */\nexport interface DealcloudInteraction {\n /**\n * \n * @type {Array}\n * @memberof DealcloudInteraction\n */\n 'interaction_type'?: Array;\n /**\n * \n * @type {string}\n * @memberof DealcloudInteraction\n */\n 'date'?: string;\n /**\n * \n * @type {Array}\n * @memberof DealcloudInteraction\n */\n 'entered_by'?: Array;\n /**\n * \n * @type {Array}\n * @memberof DealcloudInteraction\n */\n 'initiator'?: Array;\n /**\n * \n * @type {string}\n * @memberof DealcloudInteraction\n */\n 'subject'?: string;\n}\n/**\n * \n * @export\n * @interface DealcloudUser\n */\nexport interface DealcloudUser {\n /**\n * \n * @type {number}\n * @memberof DealcloudUser\n */\n 'id'?: number;\n /**\n * \n * @type {string}\n * @memberof DealcloudUser\n */\n 'name'?: string;\n /**\n * \n * @type {string}\n * @memberof DealcloudUser\n */\n 'email'?: string;\n}\n/**\n * \n * @export\n * @interface DimensionGuidance\n */\nexport interface DimensionGuidance {\n /**\n * \n * @type {string}\n * @memberof DimensionGuidance\n */\n 'background'?: string;\n /**\n * \n * @type {string}\n * @memberof DimensionGuidance\n */\n 'positive_guidance'?: string;\n /**\n * \n * @type {string}\n * @memberof DimensionGuidance\n */\n 'negative_guidance'?: string;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const DocumentType = {\n CompanyPage: 'company_page',\n BlogPost: 'blog_post',\n News: 'news',\n Forum: 'forum',\n CompanyProfile: 'company_profile',\n PressRelease: 'press_release',\n Other: 'other',\n Cim: 'cim',\n IcMemo: 'ic_memo',\n TwoPager: 'two_pager',\n CallNotes: 'call_notes',\n ResearchReport: 'research_report',\n Qoe: 'qoe',\n CompanyPresentation: 'company_presentation',\n TermSheet: 'term_sheet'\n} as const;\n\nexport type DocumentType = typeof DocumentType[keyof typeof DocumentType];\n\n\n/**\n * \n * @export\n * @interface EnrichmentsAdminInfo\n */\nexport interface EnrichmentsAdminInfo {\n /**\n * \n * @type {Array}\n * @memberof EnrichmentsAdminInfo\n */\n 'last_pulled_enrichments': Array;\n /**\n * \n * @type {number}\n * @memberof EnrichmentsAdminInfo\n */\n 'total_pulled_enrichments': number;\n /**\n * \n * @type {Array}\n * @memberof EnrichmentsAdminInfo\n */\n 'enrichment_counts_by_user': Array;\n /**\n * \n * @type {Array}\n * @memberof EnrichmentsAdminInfo\n */\n 'enrichment_counts_by_type': Array;\n}\n/**\n * \n * @export\n * @interface EnrichmentsAdminInfoEnrichmentCountsByTypeInner\n */\nexport interface EnrichmentsAdminInfoEnrichmentCountsByTypeInner {\n /**\n * \n * @type {string}\n * @memberof EnrichmentsAdminInfoEnrichmentCountsByTypeInner\n */\n 'enrichment_type': string;\n /**\n * \n * @type {number}\n * @memberof EnrichmentsAdminInfoEnrichmentCountsByTypeInner\n */\n 'count': number;\n}\n/**\n * \n * @export\n * @interface EnrichmentsAdminInfoEnrichmentCountsByUserInner\n */\nexport interface EnrichmentsAdminInfoEnrichmentCountsByUserInner {\n /**\n * \n * @type {string}\n * @memberof EnrichmentsAdminInfoEnrichmentCountsByUserInner\n */\n 'user_id': string;\n /**\n * \n * @type {number}\n * @memberof EnrichmentsAdminInfoEnrichmentCountsByUserInner\n */\n 'count': number;\n}\n/**\n * \n * @export\n * @interface FeaturedDocuments\n */\nexport interface FeaturedDocuments {\n /**\n * \n * @type {Array}\n * @memberof FeaturedDocuments\n */\n 'common_mentioned': Array;\n /**\n * \n * @type {Array}\n * @memberof FeaturedDocuments\n */\n 'internal_documents'?: Array;\n}\n/**\n * \n * @export\n * @interface FindCompaniesInputsV1\n */\nexport interface FindCompaniesInputsV1 {\n /**\n * \n * @type {string}\n * @memberof FindCompaniesInputsV1\n */\n 'category_name': string;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesInputsV1\n */\n 'business_model': string;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesInputsV1\n */\n 'main_offerings': string;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesInputsV1\n */\n 'filters': Array;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesInputsV1\n */\n 'sample_business_domains': Array;\n}\n/**\n * \n * @export\n * @interface FindCompaniesInstructions\n */\nexport interface FindCompaniesInstructions {\n /**\n * \n * @type {string}\n * @memberof FindCompaniesInstructions\n */\n 'category_name': string;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesInstructions\n */\n 'business_model': string;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesInstructions\n */\n 'main_offerings': string;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesInstructions\n */\n 'sample_businesses': Array;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesInstructions\n */\n 'filters': Array;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesInstructions\n */\n 'customer_groups'?: string;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesInstructions\n */\n 'geographies'?: string;\n /**\n * \n * @type {{ [key: string]: string; }}\n * @memberof FindCompaniesInstructions\n */\n 'screening_dict'?: { [key: string]: string; };\n}\n/**\n * \n * @export\n * @interface FindCompaniesOutputsV1\n */\nexport interface FindCompaniesOutputsV1 {\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesOutputsV1\n */\n 'businesses': Array;\n}\n/**\n * \n * @export\n * @interface FindCompaniesOutputsV2\n */\nexport interface FindCompaniesOutputsV2 {\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesOutputsV2\n */\n 'companies': Array;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesOutputsV2\n */\n 'removed_company_domains'?: Array;\n}\n/**\n * \n * @export\n * @interface FindCompaniesV2InitialInputs\n */\nexport interface FindCompaniesV2InitialInputs {\n /**\n * \n * @type {string}\n * @memberof FindCompaniesV2InitialInputs\n */\n 'category_name'?: string;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesV2InitialInputs\n */\n 'exemplar_company_domains'?: Array;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesV2InitialInputs\n */\n 'filters'?: Array;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesV2InitialInputs\n */\n 'company_type_filter'?: Array;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesV2InitialInputs\n */\n 'hq_country_filter'?: Array;\n /**\n * \n * @type {number}\n * @memberof FindCompaniesV2InitialInputs\n */\n 'requested_number_of_companies'?: number;\n}\n/**\n * \n * @export\n * @interface FindCompaniesV2Inputs\n */\nexport interface FindCompaniesV2Inputs {\n /**\n * \n * @type {string}\n * @memberof FindCompaniesV2Inputs\n */\n 'category_name': string;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesV2Inputs\n */\n 'business_model'?: string;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesV2Inputs\n */\n 'main_offerings'?: string;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesV2Inputs\n */\n 'customer_segments'?: string;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesV2Inputs\n */\n 'geographies'?: string;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesV2Inputs\n */\n 'technologies'?: string;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesV2Inputs\n */\n 'exemplar_company_domains'?: Array;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesV2Inputs\n */\n 'filters'?: Array;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesV2Inputs\n */\n 'company_type_filter'?: Array;\n /**\n * \n * @type {Array}\n * @memberof FindCompaniesV2Inputs\n */\n 'hq_country_filter'?: Array;\n /**\n * \n * @type {number}\n * @memberof FindCompaniesV2Inputs\n */\n 'requested_number_of_companies'?: number;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesV2Inputs\n */\n 'market_map_image_base64_encoded'?: string;\n}\n/**\n * \n * @export\n * @interface FindCompaniesWorkflowV1\n */\nexport interface FindCompaniesWorkflowV1 {\n /**\n * \n * @type {FindCompaniesInputsV1}\n * @memberof FindCompaniesWorkflowV1\n */\n 'inputs': FindCompaniesInputsV1;\n /**\n * \n * @type {FindCompaniesOutputsV1}\n * @memberof FindCompaniesWorkflowV1\n */\n 'outputs'?: FindCompaniesOutputsV1;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesWorkflowV1\n */\n 'parse_helper': FindCompaniesWorkflowV1ParseHelperEnum;\n}\n\nexport const FindCompaniesWorkflowV1ParseHelperEnum = {\n FindCompanies: 'find_companies'\n} as const;\n\nexport type FindCompaniesWorkflowV1ParseHelperEnum = typeof FindCompaniesWorkflowV1ParseHelperEnum[keyof typeof FindCompaniesWorkflowV1ParseHelperEnum];\n\n/**\n * \n * @export\n * @interface FindCompaniesWorkflowV2\n */\nexport interface FindCompaniesWorkflowV2 {\n /**\n * \n * @type {string}\n * @memberof FindCompaniesWorkflowV2\n */\n 'input_generation_state'?: FindCompaniesWorkflowV2InputGenerationStateEnum;\n /**\n * \n * @type {FindCompaniesV2InitialInputs}\n * @memberof FindCompaniesWorkflowV2\n */\n 'frontend_initial_inputs'?: FindCompaniesV2InitialInputs;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesWorkflowV2\n */\n 'error_explanation'?: string;\n /**\n * \n * @type {FindCompaniesV2Inputs}\n * @memberof FindCompaniesWorkflowV2\n */\n 'inputs': FindCompaniesV2Inputs;\n /**\n * \n * @type {FindCompaniesOutputsV2}\n * @memberof FindCompaniesWorkflowV2\n */\n 'outputs'?: FindCompaniesOutputsV2;\n /**\n * \n * @type {string}\n * @memberof FindCompaniesWorkflowV2\n */\n 'parse_helper': FindCompaniesWorkflowV2ParseHelperEnum;\n}\n\nexport const FindCompaniesWorkflowV2InputGenerationStateEnum = {\n Initial: 'initial',\n Loading: 'loading',\n Final: 'final',\n UploadList: 'upload_list',\n FindSimilar: 'find_similar'\n} as const;\n\nexport type FindCompaniesWorkflowV2InputGenerationStateEnum = typeof FindCompaniesWorkflowV2InputGenerationStateEnum[keyof typeof FindCompaniesWorkflowV2InputGenerationStateEnum];\nexport const FindCompaniesWorkflowV2ParseHelperEnum = {\n FindCompaniesV2: 'find_companies_v2'\n} as const;\n\nexport type FindCompaniesWorkflowV2ParseHelperEnum = typeof FindCompaniesWorkflowV2ParseHelperEnum[keyof typeof FindCompaniesWorkflowV2ParseHelperEnum];\n\n/**\n * \n * @export\n * @interface FrontendAllocationAnswer\n */\nexport interface FrontendAllocationAnswer {\n /**\n * \n * @type {string}\n * @memberof FrontendAllocationAnswer\n */\n 'explanation'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendAllocationAnswer\n */\n 'answer'?: string;\n /**\n * \n * @type {number}\n * @memberof FrontendAllocationAnswer\n */\n 'choice_number'?: number;\n /**\n * \n * @type {number}\n * @memberof FrontendAllocationAnswer\n */\n 'confidence'?: number;\n /**\n * \n * @type {Array}\n * @memberof FrontendAllocationAnswer\n */\n 'sources': Array;\n /**\n * \n * @type {number}\n * @memberof FrontendAllocationAnswer\n */\n 'fit_level'?: number;\n}\n/**\n * \n * @export\n * @interface FrontendCompany\n */\nexport interface FrontendCompany {\n /**\n * \n * @type {string}\n * @memberof FrontendCompany\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof FrontendCompany\n */\n 'domain': string;\n /**\n * \n * @type {Array}\n * @memberof FrontendCompany\n */\n 'alternate_domains': Array;\n /**\n * \n * @type {CompanySummary}\n * @memberof FrontendCompany\n */\n 'summary': CompanySummary;\n /**\n * \n * @type {CompanyType}\n * @memberof FrontendCompany\n */\n 'company_type': CompanyType;\n /**\n * \n * @type {number}\n * @memberof FrontendCompany\n */\n 'hype_rating': number;\n /**\n * \n * @type {string}\n * @memberof FrontendCompany\n */\n 'linkedin_aid': string;\n /**\n * \n * @type {number}\n * @memberof FrontendCompany\n */\n 'linkedin_followers'?: number;\n /**\n * \n * @type {number}\n * @memberof FrontendCompany\n */\n 'linkedin_followers_90day_growth'?: number;\n /**\n * \n * @type {number}\n * @memberof FrontendCompany\n */\n 'employee_min'?: number;\n /**\n * \n * @type {number}\n * @memberof FrontendCompany\n */\n 'employee_max'?: number;\n /**\n * \n * @type {number}\n * @memberof FrontendCompany\n */\n 'employee_guess'?: number;\n /**\n * \n * @type {number}\n * @memberof FrontendCompany\n */\n 'employee_count_90day_growth'?: number;\n /**\n * \n * @type {number}\n * @memberof FrontendCompany\n */\n 'year_founded'?: number;\n /**\n * \n * @type {string}\n * @memberof FrontendCompany\n */\n 'stock_exchange'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendCompany\n */\n 'stock_ticker'?: string;\n /**\n * \n * @type {Array}\n * @memberof FrontendCompany\n */\n 'fundraises'?: Array;\n /**\n * \n * @type {Array}\n * @memberof FrontendCompany\n */\n 'management'?: Array;\n /**\n * \n * @type {Array}\n * @memberof FrontendCompany\n */\n 'recent_press'?: Array;\n /**\n * \n * @type {BusinessCommentary}\n * @memberof FrontendCompany\n */\n 'commentary'?: BusinessCommentary;\n /**\n * \n * @type {Array}\n * @memberof FrontendCompany\n */\n 'similar_companies'?: Array;\n /**\n * \n * @type {OfferingProductSynthesis}\n * @memberof FrontendCompany\n */\n 'product_synthesis'?: OfferingProductSynthesis;\n /**\n * \n * @type {string}\n * @memberof FrontendCompany\n */\n 'logo_url'?: string;\n /**\n * \n * @type {{ [key: string]: TextWithSources; }}\n * @memberof FrontendCompany\n */\n 'custom_research'?: { [key: string]: TextWithSources; };\n /**\n * \n * @type {Array}\n * @memberof FrontendCompany\n */\n 'list_of_investors'?: Array;\n /**\n * \n * @type {string}\n * @memberof FrontendCompany\n */\n 'hq_str'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendCompany\n */\n 'hq_city'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendCompany\n */\n 'hq_region'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendCompany\n */\n 'hq_country'?: string;\n /**\n * \n * @type {number}\n * @memberof FrontendCompany\n */\n 'last_known_fundraise_timestamp'?: number;\n /**\n * \n * @type {Fundraise}\n * @memberof FrontendCompany\n */\n 'total_known_fundraising'?: Fundraise;\n /**\n * \n * @type {WebTrafficSnapshot}\n * @memberof FrontendCompany\n */\n 'web_traffic'?: WebTrafficSnapshot;\n}\n\n\n/**\n * \n * @export\n * @interface FrontendCompanyStub\n */\nexport interface FrontendCompanyStub {\n /**\n * \n * @type {string}\n * @memberof FrontendCompanyStub\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof FrontendCompanyStub\n */\n 'domain': string;\n /**\n * \n * @type {string}\n * @memberof FrontendCompanyStub\n */\n 'linkedin_aid': string;\n /**\n * \n * @type {string}\n * @memberof FrontendCompanyStub\n */\n 'logo_url'?: string;\n}\n/**\n * \n * @export\n * @interface FrontendDocument\n */\nexport interface FrontendDocument {\n /**\n * \n * @type {string}\n * @memberof FrontendDocument\n */\n 'url': string;\n /**\n * \n * @type {Array}\n * @memberof FrontendDocument\n */\n 'company_domains'?: Array;\n /**\n * \n * @type {{ [key: string]: number; }}\n * @memberof FrontendDocument\n */\n 'company_prominences'?: { [key: string]: number; };\n /**\n * \n * @type {string}\n * @memberof FrontendDocument\n */\n 'source_name'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendDocument\n */\n 'title'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendDocument\n */\n 'summary'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendDocument\n */\n 'image'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendDocument\n */\n 'date_published'?: string;\n /**\n * \n * @type {DocumentType}\n * @memberof FrontendDocument\n */\n 'page_type'?: DocumentType;\n /**\n * \n * @type {number}\n * @memberof FrontendDocument\n */\n 'credibility_level'?: number;\n /**\n * \n * @type {number}\n * @memberof FrontendDocument\n */\n 'bias_level'?: number;\n /**\n * \n * @type {number}\n * @memberof FrontendDocument\n */\n 'information_level'?: number;\n}\n\n\n/**\n * \n * @export\n * @interface FrontendPerson\n */\nexport interface FrontendPerson {\n /**\n * \n * @type {string}\n * @memberof FrontendPerson\n */\n 'first_name': string;\n /**\n * \n * @type {string}\n * @memberof FrontendPerson\n */\n 'last_name'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendPerson\n */\n 'title'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendPerson\n */\n 'email'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendPerson\n */\n 'linkedin_url'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendPerson\n */\n 'image_url'?: string;\n /**\n * \n * @type {FrontendCompanyStub}\n * @memberof FrontendPerson\n */\n 'company_stub': FrontendCompanyStub;\n}\n/**\n * \n * @export\n * @interface FrontendTaxonomy\n */\nexport interface FrontendTaxonomy {\n /**\n * \n * @type {string}\n * @memberof FrontendTaxonomy\n */\n 'taxonomy_id': string;\n /**\n * \n * @type {FrontendTaxonomyNode}\n * @memberof FrontendTaxonomy\n */\n 'taxonomy_node': FrontendTaxonomyNode;\n /**\n * \n * @type {Array}\n * @memberof FrontendTaxonomy\n */\n 'entries': Array;\n}\n/**\n * \n * @export\n * @interface FrontendTaxonomyEntry\n */\nexport interface FrontendTaxonomyEntry {\n /**\n * \n * @type {FrontendCompany}\n * @memberof FrontendTaxonomyEntry\n */\n 'company': FrontendCompany;\n /**\n * \n * @type {Array}\n * @memberof FrontendTaxonomyEntry\n */\n 'traversal_path': Array;\n /**\n * \n * @type {CompanyScoringResult}\n * @memberof FrontendTaxonomyEntry\n */\n 'scoring_result'?: CompanyScoringResult;\n}\n/**\n * \n * @export\n * @interface FrontendTaxonomyNode\n */\nexport interface FrontendTaxonomyNode {\n /**\n * \n * @type {string}\n * @memberof FrontendTaxonomyNode\n */\n 'node_id': string;\n /**\n * \n * @type {string}\n * @memberof FrontendTaxonomyNode\n */\n 'node_title'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendTaxonomyNode\n */\n 'node_description'?: string;\n /**\n * \n * @type {string}\n * @memberof FrontendTaxonomyNode\n */\n 'subnode_question'?: string;\n /**\n * \n * @type {Array}\n * @memberof FrontendTaxonomyNode\n */\n 'subnodes': Array;\n /**\n * \n * @type {number}\n * @memberof FrontendTaxonomyNode\n */\n 'target_volume': number;\n /**\n * \n * @type {boolean}\n * @memberof FrontendTaxonomyNode\n */\n 'enable_multi_select': boolean;\n /**\n * \n * @type {boolean}\n * @memberof FrontendTaxonomyNode\n */\n 'allow_none_of_the_above': boolean;\n /**\n * \n * @type {CategoryScoringResult}\n * @memberof FrontendTaxonomyNode\n */\n 'category_scoring'?: CategoryScoringResult;\n /**\n * \n * @type {number}\n * @memberof FrontendTaxonomyNode\n */\n 'number_of_companies': number;\n}\n/**\n * \n * @export\n * @interface Fundraise\n */\nexport interface Fundraise {\n /**\n * \n * @type {number}\n * @memberof Fundraise\n */\n 'amount'?: number;\n /**\n * \n * @type {string}\n * @memberof Fundraise\n */\n 'currency'?: string;\n /**\n * \n * @type {string}\n * @memberof Fundraise\n */\n 'round_name'?: string;\n /**\n * \n * @type {Array}\n * @memberof Fundraise\n */\n 'investors'?: Array;\n /**\n * \n * @type {string}\n * @memberof Fundraise\n */\n 'date'?: string;\n}\n/**\n * \n * @export\n * @interface GenericWorkflow\n */\nexport interface GenericWorkflow {\n /**\n * \n * @type {string}\n * @memberof GenericWorkflow\n */\n 'workflow_id': string;\n /**\n * \n * @type {WorkflowType}\n * @memberof GenericWorkflow\n */\n 'workflow_type': WorkflowType;\n /**\n * \n * @type {string}\n * @memberof GenericWorkflow\n */\n 'title': string;\n /**\n * \n * @type {TaskStatus}\n * @memberof GenericWorkflow\n */\n 'status': TaskStatus;\n /**\n * \n * @type {WorkflowFeedback}\n * @memberof GenericWorkflow\n */\n 'feedback'?: WorkflowFeedback;\n /**\n * \n * @type {WorkflowEffort}\n * @memberof GenericWorkflow\n */\n 'effort'?: WorkflowEffort;\n /**\n * \n * @type {number}\n * @memberof GenericWorkflow\n */\n 'start_timestamp_seconds'?: number;\n /**\n * \n * @type {number}\n * @memberof GenericWorkflow\n */\n 'created_at'?: number;\n /**\n * \n * @type {boolean}\n * @memberof GenericWorkflow\n */\n 'viewed'?: boolean;\n /**\n * \n * @type {GenericWorkflowWorkflow}\n * @memberof GenericWorkflow\n */\n 'workflow': GenericWorkflowWorkflow;\n /**\n * \n * @type {string}\n * @memberof GenericWorkflow\n */\n 'error_message'?: string;\n}\n\n\n/**\n * @type GenericWorkflowWorkflow\n * @export\n */\nexport type GenericWorkflowWorkflow = CompFinderWorkflowV5 | CompLandscapeV7Workflow | CompanyCustomResearchWorkflowV1 | FindCompaniesWorkflowV1 | FindCompaniesWorkflowV2 | MarketMapWorkflow | OfferingDeepdiveWorkflowV1 | PressSearchWorkflowV1 | PublicCompsWorkflowV1 | SourceCompaniesWorkflow | TearSheetWorkflowV1;\n\n/**\n * \n * @export\n * @interface HardFilter\n */\nexport interface HardFilter {\n /**\n * \n * @type {HardMetric}\n * @memberof HardFilter\n */\n 'hard_metric': HardMetric;\n /**\n * \n * @type {number}\n * @memberof HardFilter\n */\n 'min'?: number;\n /**\n * \n * @type {number}\n * @memberof HardFilter\n */\n 'max'?: number;\n /**\n * \n * @type {boolean}\n * @memberof HardFilter\n */\n 'nones_allowed': boolean;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const HardMetric = {\n FoundedYear: 'founded_year',\n LastFundraiseDate: 'last_fundraise_date',\n EmployeeCount: 'employee_count',\n GrowthScore: 'growth_score',\n HypeScore: 'hype_score',\n ProductScore: 'product_score',\n TechScore: 'tech_score',\n Ebitda: 'ebitda',\n MarketCap: 'market_cap',\n Revenue: 'revenue',\n RevenueGrowth: 'revenue_growth',\n EnterpriseValue: 'enterprise_value',\n GrossMargin: 'gross_margin',\n Earnings: 'earnings',\n FreeCashFlow: 'free_cash_flow'\n} as const;\n\nexport type HardMetric = typeof HardMetric[keyof typeof HardMetric];\n\n\n/**\n * \n * @export\n * @interface ImportableSearchScope\n */\nexport interface ImportableSearchScope {\n /**\n * \n * @type {Array}\n * @memberof ImportableSearchScope\n */\n 'filters'?: Array;\n /**\n * \n * @type {Array}\n * @memberof ImportableSearchScope\n */\n 'company_type_filter'?: Array;\n /**\n * \n * @type {Array}\n * @memberof ImportableSearchScope\n */\n 'hq_country_filter'?: Array;\n /**\n * \n * @type {Array}\n * @memberof ImportableSearchScope\n */\n 'scoring_criteria'?: Array;\n}\n/**\n * \n * @export\n * @interface IngestedCompany\n */\nexport interface IngestedCompany {\n /**\n * \n * @type {FrontendCompany}\n * @memberof IngestedCompany\n */\n 'company': FrontendCompany;\n /**\n * \n * @type {boolean}\n * @memberof IngestedCompany\n */\n 'in_scope'?: boolean;\n /**\n * \n * @type {string}\n * @memberof IngestedCompany\n */\n 'out_of_scope_reason'?: string;\n /**\n * \n * @type {string}\n * @memberof IngestedCompany\n */\n 'added_at'?: string;\n /**\n * \n * @type {string}\n * @memberof IngestedCompany\n */\n 'added_from'?: string;\n /**\n * \n * @type {number}\n * @memberof IngestedCompany\n */\n 'evaluation_score'?: number;\n /**\n * \n * @type {string}\n * @memberof IngestedCompany\n */\n 'evaluation_score_reason'?: string;\n}\n/**\n * \n * @export\n * @interface LinkedinJob\n */\nexport interface LinkedinJob {\n /**\n * \n * @type {string}\n * @memberof LinkedinJob\n */\n 'title': string;\n /**\n * \n * @type {string}\n * @memberof LinkedinJob\n */\n 'location'?: string;\n /**\n * \n * @type {string}\n * @memberof LinkedinJob\n */\n 'type'?: string;\n /**\n * \n * @type {string}\n * @memberof LinkedinJob\n */\n 'description'?: string;\n /**\n * \n * @type {string}\n * @memberof LinkedinJob\n */\n 'date_posted'?: string;\n}\n/**\n * \n * @export\n * @interface MarketMap\n */\nexport interface MarketMap {\n /**\n * \n * @type {string}\n * @memberof MarketMap\n */\n 'title'?: string;\n /**\n * \n * @type {Array}\n * @memberof MarketMap\n */\n 'categories': Array;\n}\n/**\n * \n * @export\n * @interface MarketMapCategory\n */\nexport interface MarketMapCategory {\n /**\n * \n * @type {string}\n * @memberof MarketMapCategory\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof MarketMapCategory\n */\n 'description'?: string | null;\n /**\n * \n * @type {Array}\n * @memberof MarketMapCategory\n */\n 'businesses': Array;\n /**\n * \n * @type {Array}\n * @memberof MarketMapCategory\n */\n 'bespoke_research_topics': Array;\n /**\n * \n * @type {Array}\n * @memberof MarketMapCategory\n */\n 'subcategories': Array;\n /**\n * \n * @type {Array}\n * @memberof MarketMapCategory\n */\n 'exemplars': Array;\n /**\n * \n * @type {FindCompaniesInstructions}\n * @memberof MarketMapCategory\n */\n 'find_companies_instructions'?: FindCompaniesInstructions;\n}\n/**\n * \n * @export\n * @interface MarketMapInputs\n */\nexport interface MarketMapInputs {\n /**\n * \n * @type {MarketMap}\n * @memberof MarketMapInputs\n */\n 'market_map': MarketMap;\n}\n/**\n * \n * @export\n * @interface MarketMapOutputs\n */\nexport interface MarketMapOutputs {\n /**\n * \n * @type {MarketMap}\n * @memberof MarketMapOutputs\n */\n 'market_map': MarketMap;\n /**\n * \n * @type {Array}\n * @memberof MarketMapOutputs\n */\n 'companies': Array;\n}\n/**\n * \n * @export\n * @interface MarketMapSubcategory\n */\nexport interface MarketMapSubcategory {\n /**\n * \n * @type {string}\n * @memberof MarketMapSubcategory\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof MarketMapSubcategory\n */\n 'description'?: string;\n /**\n * \n * @type {Array}\n * @memberof MarketMapSubcategory\n */\n 'businesses': Array;\n /**\n * \n * @type {Array}\n * @memberof MarketMapSubcategory\n */\n 'bespoke_research_topics': Array;\n /**\n * \n * @type {Array}\n * @memberof MarketMapSubcategory\n */\n 'exemplars': Array;\n /**\n * \n * @type {FindCompaniesInstructions}\n * @memberof MarketMapSubcategory\n */\n 'find_companies_instructions'?: FindCompaniesInstructions;\n}\n/**\n * \n * @export\n * @interface MarketMapWorkflow\n */\nexport interface MarketMapWorkflow {\n /**\n * \n * @type {MarketMapInputs}\n * @memberof MarketMapWorkflow\n */\n 'inputs': MarketMapInputs;\n /**\n * \n * @type {MarketMapOutputs}\n * @memberof MarketMapWorkflow\n */\n 'outputs'?: MarketMapOutputs;\n /**\n * \n * @type {string}\n * @memberof MarketMapWorkflow\n */\n 'parse_helper': MarketMapWorkflowParseHelperEnum;\n}\n\nexport const MarketMapWorkflowParseHelperEnum = {\n MarketMapV2: 'market_map_v2'\n} as const;\n\nexport type MarketMapWorkflowParseHelperEnum = typeof MarketMapWorkflowParseHelperEnum[keyof typeof MarketMapWorkflowParseHelperEnum];\n\n/**\n * \n * @export\n * @interface Matrix\n */\nexport interface Matrix {\n /**\n * \n * @type {Array}\n * @memberof Matrix\n */\n 'rowHeaders': Array;\n /**\n * \n * @type {Array}\n * @memberof Matrix\n */\n 'colHeaders': Array;\n /**\n * \n * @type {Array}\n * @memberof Matrix\n */\n 'data': Array;\n}\n/**\n * \n * @export\n * @interface MatrixDataRow\n */\nexport interface MatrixDataRow {\n /**\n * \n * @type {Array}\n * @memberof MatrixDataRow\n */\n 'elements': Array;\n}\n/**\n * \n * @export\n * @interface MatrixHeader\n */\nexport interface MatrixHeader {\n /**\n * \n * @type {string}\n * @memberof MatrixHeader\n */\n 'shortText': string;\n /**\n * \n * @type {string}\n * @memberof MatrixHeader\n */\n 'longText'?: string;\n /**\n * \n * @type {string}\n * @memberof MatrixHeader\n */\n 'outputFormat'?: string;\n}\n/**\n * \n * @export\n * @interface MaturityLevel\n */\nexport interface MaturityLevel {\n /**\n * \n * @type {number}\n * @memberof MaturityLevel\n */\n 'value': number;\n /**\n * \n * @type {Array}\n * @memberof MaturityLevel\n */\n 'sources': Array;\n}\n/**\n * \n * @export\n * @interface MetricWithSources\n */\nexport interface MetricWithSources {\n /**\n * \n * @type {number}\n * @memberof MetricWithSources\n */\n 'value': number;\n /**\n * \n * @type {Array}\n * @memberof MetricWithSources\n */\n 'sources': Array;\n}\n/**\n * \n * @export\n * @interface MultiReportedMetric\n */\nexport interface MultiReportedMetric {\n /**\n * \n * @type {number}\n * @memberof MultiReportedMetric\n */\n 'value': number;\n /**\n * \n * @type {string}\n * @memberof MultiReportedMetric\n */\n 'period': string;\n /**\n * \n * @type {Array}\n * @memberof MultiReportedMetric\n */\n 'filingLinks'?: Array;\n}\n/**\n * \n * @export\n * @interface OfferingAspectAnalysis\n */\nexport interface OfferingAspectAnalysis {\n /**\n * \n * @type {string}\n * @memberof OfferingAspectAnalysis\n */\n 'topic': string;\n /**\n * \n * @type {TextWithSources}\n * @memberof OfferingAspectAnalysis\n */\n 'internal_perspective'?: TextWithSources;\n /**\n * \n * @type {TextWithSources}\n * @memberof OfferingAspectAnalysis\n */\n 'external_perspective'?: TextWithSources;\n /**\n * \n * @type {Array}\n * @memberof OfferingAspectAnalysis\n */\n 'reviews'?: Array;\n}\n/**\n * \n * @export\n * @interface OfferingDeepdiveInputsV1\n */\nexport interface OfferingDeepdiveInputsV1 {\n /**\n * \n * @type {string}\n * @memberof OfferingDeepdiveInputsV1\n */\n 'domain': string;\n}\n/**\n * \n * @export\n * @interface OfferingDeepdiveOutputsV1\n */\nexport interface OfferingDeepdiveOutputsV1 {\n /**\n * \n * @type {OfferingProductSynthesis}\n * @memberof OfferingDeepdiveOutputsV1\n */\n 'product_synthesis': OfferingProductSynthesis;\n /**\n * \n * @type {Array}\n * @memberof OfferingDeepdiveOutputsV1\n */\n 'aspect_analyses': Array;\n}\n/**\n * \n * @export\n * @interface OfferingDeepdiveWorkflowV1\n */\nexport interface OfferingDeepdiveWorkflowV1 {\n /**\n * \n * @type {OfferingDeepdiveInputsV1}\n * @memberof OfferingDeepdiveWorkflowV1\n */\n 'inputs': OfferingDeepdiveInputsV1;\n /**\n * \n * @type {OfferingDeepdiveOutputsV1}\n * @memberof OfferingDeepdiveWorkflowV1\n */\n 'outputs'?: OfferingDeepdiveOutputsV1;\n /**\n * \n * @type {string}\n * @memberof OfferingDeepdiveWorkflowV1\n */\n 'parse_helper': OfferingDeepdiveWorkflowV1ParseHelperEnum;\n}\n\nexport const OfferingDeepdiveWorkflowV1ParseHelperEnum = {\n OfferingDeepdive: 'offering_deepdive'\n} as const;\n\nexport type OfferingDeepdiveWorkflowV1ParseHelperEnum = typeof OfferingDeepdiveWorkflowV1ParseHelperEnum[keyof typeof OfferingDeepdiveWorkflowV1ParseHelperEnum];\n\n/**\n * \n * @export\n * @interface OfferingProductSynthesis\n */\nexport interface OfferingProductSynthesis {\n /**\n * \n * @type {string}\n * @memberof OfferingProductSynthesis\n */\n 'one_liner': string;\n /**\n * \n * @type {Array}\n * @memberof OfferingProductSynthesis\n */\n 'key_facts': Array;\n /**\n * \n * @type {Array}\n * @memberof OfferingProductSynthesis\n */\n 'sources': Array;\n}\n/**\n * \n * @export\n * @interface OfferingSummary\n */\nexport interface OfferingSummary {\n /**\n * \n * @type {string}\n * @memberof OfferingSummary\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof OfferingSummary\n */\n 'use_case_value_prop': string;\n /**\n * \n * @type {Array}\n * @memberof OfferingSummary\n */\n 'differentiators': Array;\n}\n/**\n * \n * @export\n * @interface OfferingsDive\n */\nexport interface OfferingsDive {\n /**\n * \n * @type {string}\n * @memberof OfferingsDive\n */\n 'company_domain': string;\n /**\n * \n * @type {Array}\n * @memberof OfferingsDive\n */\n 'offerings': Array;\n /**\n * \n * @type {Array}\n * @memberof OfferingsDive\n */\n 'review_quotes': Array;\n /**\n * \n * @type {ReviewSet}\n * @memberof OfferingsDive\n */\n 'g2_review_set'?: ReviewSet;\n /**\n * \n * @type {ReviewSet}\n * @memberof OfferingsDive\n */\n 'trustpilot_review_set'?: ReviewSet;\n /**\n * \n * @type {Array}\n * @memberof OfferingsDive\n */\n 'sources': Array;\n}\n/**\n * \n * @export\n * @interface Partner\n */\nexport interface Partner {\n /**\n * \n * @type {string}\n * @memberof Partner\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof Partner\n */\n 'relationship': string;\n}\n/**\n * \n * @export\n * @interface PeopleList\n */\nexport interface PeopleList {\n /**\n * \n * @type {string}\n * @memberof PeopleList\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof PeopleList\n */\n 'title': string;\n /**\n * \n * @type {Array}\n * @memberof PeopleList\n */\n 'people': Array;\n}\n/**\n * \n * @export\n * @interface PitchbookEnrichment\n */\nexport interface PitchbookEnrichment {\n /**\n * \n * @type {string}\n * @memberof PitchbookEnrichment\n */\n 'pitchbook_id': string;\n /**\n * \n * @type {string}\n * @memberof PitchbookEnrichment\n */\n 'pitchbook_url': string;\n /**\n * \n * @type {Array}\n * @memberof PitchbookEnrichment\n */\n 'fundraises': Array;\n /**\n * \n * @type {Array}\n * @memberof PitchbookEnrichment\n */\n 'list_of_investors'?: Array;\n /**\n * \n * @type {number}\n * @memberof PitchbookEnrichment\n */\n 'last_known_fundraise_timestamp'?: number;\n /**\n * \n * @type {Fundraise}\n * @memberof PitchbookEnrichment\n */\n 'total_known_fundraising'?: Fundraise;\n /**\n * \n * @type {number}\n * @memberof PitchbookEnrichment\n */\n 'pull_timestamp': number;\n /**\n * \n * @type {number}\n * @memberof PitchbookEnrichment\n */\n 'valuation_stepup'?: number;\n /**\n * \n * @type {number}\n * @memberof PitchbookEnrichment\n */\n 'post_money_valuation'?: number;\n /**\n * \n * @type {string}\n * @memberof PitchbookEnrichment\n */\n 'predicted_ipo_date'?: string;\n /**\n * \n * @type {number}\n * @memberof PitchbookEnrichment\n */\n 'financials_revenue'?: number;\n /**\n * \n * @type {number}\n * @memberof PitchbookEnrichment\n */\n 'financials_period'?: number;\n}\n/**\n * \n * @export\n * @interface Playbook\n */\nexport interface Playbook {\n /**\n * \n * @type {string}\n * @memberof Playbook\n */\n 'task_type': string;\n /**\n * \n * @type {string}\n * @memberof Playbook\n */\n 'title': string;\n /**\n * \n * @type {string}\n * @memberof Playbook\n */\n 'example_input'?: string;\n /**\n * \n * @type {string}\n * @memberof Playbook\n */\n 'example_explanation'?: string;\n /**\n * \n * @type {string}\n * @memberof Playbook\n */\n 'example_output': string;\n}\n/**\n * \n * @export\n * @interface PressItem\n */\nexport interface PressItem {\n /**\n * \n * @type {string}\n * @memberof PressItem\n */\n 'takeaway': string;\n /**\n * \n * @type {Array}\n * @memberof PressItem\n */\n 'quotes': Array;\n /**\n * \n * @type {boolean}\n * @memberof PressItem\n */\n 'featured': boolean;\n /**\n * \n * @type {Source}\n * @memberof PressItem\n */\n 'source': Source;\n}\n/**\n * \n * @export\n * @interface PressSearchInputV1\n */\nexport interface PressSearchInputV1 {\n /**\n * \n * @type {string}\n * @memberof PressSearchInputV1\n */\n 'company_domain'?: string;\n /**\n * \n * @type {string}\n * @memberof PressSearchInputV1\n */\n 'topic'?: string;\n}\n/**\n * \n * @export\n * @interface PressSearchOutputV1\n */\nexport interface PressSearchOutputV1 {\n /**\n * \n * @type {Array}\n * @memberof PressSearchOutputV1\n */\n 'press_items': Array;\n /**\n * \n * @type {Array}\n * @memberof PressSearchOutputV1\n */\n 'summary': Array;\n}\n/**\n * \n * @export\n * @interface PressSearchWorkflowV1\n */\nexport interface PressSearchWorkflowV1 {\n /**\n * \n * @type {PressSearchInputV1}\n * @memberof PressSearchWorkflowV1\n */\n 'inputs': PressSearchInputV1;\n /**\n * \n * @type {PressSearchOutputV1}\n * @memberof PressSearchWorkflowV1\n */\n 'outputs'?: PressSearchOutputV1;\n /**\n * \n * @type {string}\n * @memberof PressSearchWorkflowV1\n */\n 'parse_helper': PressSearchWorkflowV1ParseHelperEnum;\n}\n\nexport const PressSearchWorkflowV1ParseHelperEnum = {\n PressSearch: 'press_search'\n} as const;\n\nexport type PressSearchWorkflowV1ParseHelperEnum = typeof PressSearchWorkflowV1ParseHelperEnum[keyof typeof PressSearchWorkflowV1ParseHelperEnum];\n\n/**\n * \n * @export\n * @interface PublicCompsBusiness\n */\nexport interface PublicCompsBusiness {\n /**\n * \n * @type {Business}\n * @memberof PublicCompsBusiness\n */\n 'business': Business;\n /**\n * \n * @type {string}\n * @memberof PublicCompsBusiness\n */\n 'similarity_justification'?: string;\n /**\n * \n * @type {string}\n * @memberof PublicCompsBusiness\n */\n 'benchmark_variance_justification'?: string;\n /**\n * \n * @type {boolean}\n * @memberof PublicCompsBusiness\n */\n 'included_in_benchmark'?: boolean;\n}\n/**\n * \n * @export\n * @interface PublicCompsInputsV1\n */\nexport interface PublicCompsInputsV1 {\n /**\n * \n * @type {string}\n * @memberof PublicCompsInputsV1\n */\n 'name'?: string;\n /**\n * \n * @type {string}\n * @memberof PublicCompsInputsV1\n */\n 'domain': string;\n /**\n * \n * @type {string}\n * @memberof PublicCompsInputsV1\n */\n 'guidance'?: string;\n /**\n * \n * @type {string}\n * @memberof PublicCompsInputsV1\n */\n 'user_email'?: string;\n /**\n * \n * @type {string}\n * @memberof PublicCompsInputsV1\n */\n 'target_business_id'?: string;\n /**\n * \n * @type {Array}\n * @memberof PublicCompsInputsV1\n */\n 'filters'?: Array;\n}\n/**\n * \n * @export\n * @interface PublicCompsOutputsV1\n */\nexport interface PublicCompsOutputsV1 {\n /**\n * \n * @type {Array}\n * @memberof PublicCompsOutputsV1\n */\n 'businesses': Array;\n /**\n * \n * @type {CompFinderOutputsV5Effort}\n * @memberof PublicCompsOutputsV1\n */\n 'effort'?: CompFinderOutputsV5Effort;\n}\n/**\n * \n * @export\n * @interface PublicCompsWorkflowV1\n */\nexport interface PublicCompsWorkflowV1 {\n /**\n * \n * @type {string}\n * @memberof PublicCompsWorkflowV1\n */\n 'workflow_id'?: string;\n /**\n * \n * @type {PublicCompsInputsV1}\n * @memberof PublicCompsWorkflowV1\n */\n 'inputs': PublicCompsInputsV1;\n /**\n * \n * @type {PublicCompsOutputsV1}\n * @memberof PublicCompsWorkflowV1\n */\n 'outputs'?: PublicCompsOutputsV1;\n /**\n * \n * @type {string}\n * @memberof PublicCompsWorkflowV1\n */\n 'parse_helper': PublicCompsWorkflowV1ParseHelperEnum;\n}\n\nexport const PublicCompsWorkflowV1ParseHelperEnum = {\n PublicComps: 'public_comps'\n} as const;\n\nexport type PublicCompsWorkflowV1ParseHelperEnum = typeof PublicCompsWorkflowV1ParseHelperEnum[keyof typeof PublicCompsWorkflowV1ParseHelperEnum];\n\n/**\n * \n * @export\n * @interface RecentDevelopment\n */\nexport interface RecentDevelopment {\n /**\n * \n * @type {string}\n * @memberof RecentDevelopment\n */\n 'title': string;\n /**\n * \n * @type {string}\n * @memberof RecentDevelopment\n */\n 'description'?: string;\n /**\n * \n * @type {string}\n * @memberof RecentDevelopment\n */\n 'date': string;\n /**\n * \n * @type {Array}\n * @memberof RecentDevelopment\n */\n 'quotes': Array;\n /**\n * \n * @type {Array}\n * @memberof RecentDevelopment\n */\n 'sources': Array;\n}\n/**\n * \n * @export\n * @interface RecentDevelopments\n */\nexport interface RecentDevelopments {\n /**\n * \n * @type {string}\n * @memberof RecentDevelopments\n */\n 'company_domain': string;\n /**\n * \n * @type {Array}\n * @memberof RecentDevelopments\n */\n 'developments': Array;\n}\n/**\n * \n * @export\n * @interface RelatedCompanies\n */\nexport interface RelatedCompanies {\n /**\n * \n * @type {Array}\n * @memberof RelatedCompanies\n */\n 'similar'?: Array;\n}\n/**\n * \n * @export\n * @interface ReportedMetric\n */\nexport interface ReportedMetric {\n /**\n * \n * @type {number}\n * @memberof ReportedMetric\n */\n 'value': number;\n /**\n * \n * @type {string}\n * @memberof ReportedMetric\n */\n 'period': string;\n /**\n * \n * @type {string}\n * @memberof ReportedMetric\n */\n 'filingLink'?: string;\n}\n/**\n * \n * @export\n * @interface ReviewSet\n */\nexport interface ReviewSet {\n /**\n * \n * @type {number}\n * @memberof ReviewSet\n */\n 'aggregate_rating'?: number;\n /**\n * \n * @type {number}\n * @memberof ReviewSet\n */\n 'num_reviews'?: number;\n /**\n * \n * @type {Array}\n * @memberof ReviewSet\n */\n 'reviews': Array;\n /**\n * \n * @type {string}\n * @memberof ReviewSet\n */\n 'company_profile_link'?: string;\n}\n/**\n * \n * @export\n * @interface Rubric\n */\nexport interface Rubric {\n /**\n * \n * @type {string}\n * @memberof Rubric\n */\n 'rubric_id': string;\n /**\n * \n * @type {Array}\n * @memberof Rubric\n */\n 'dimensions': Array;\n}\n/**\n * \n * @export\n * @interface RubricDimension\n */\nexport interface RubricDimension {\n /**\n * \n * @type {RubricDimensionType}\n * @memberof RubricDimension\n */\n 'type': RubricDimensionType;\n /**\n * \n * @type {DimensionGuidance}\n * @memberof RubricDimension\n */\n 'guidance': DimensionGuidance;\n /**\n * \n * @type {number}\n * @memberof RubricDimension\n */\n 'weight': number;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const RubricDimensionType = {\n Presence: 'PRESENCE',\n ManagementTeam: 'MANAGEMENT_TEAM',\n InvestorQuality: 'INVESTOR_QUALITY',\n Tam: 'TAM',\n Differentiation: 'DIFFERENTIATION',\n FirmValueAdd: 'FIRM_VALUE_ADD',\n Competition: 'COMPETITION',\n Growth: 'GROWTH',\n MarketSize: 'MARKET_SIZE',\n MarketGrowth: 'MARKET_GROWTH',\n FragmentationCommodification: 'FRAGMENTATION_COMMODIFICATION',\n GreenfieldVsReplacement: 'GREENFIELD_VS_REPLACEMENT',\n RiskOfNewEntrants: 'RISK_OF_NEW_ENTRANTS',\n Seasonality: 'SEASONALITY',\n Cyclicality: 'CYCLICALITY',\n SalesCycles: 'SALES_CYCLES',\n DistributionChannels: 'DISTRIBUTION_CHANNELS',\n TechnologyTailwinds: 'TECHNOLOGY_TAILWINDS',\n SwitchingCosts: 'SWITCHING_COSTS',\n NetworkEffects: 'NETWORK_EFFECTS',\n CustomerSentiment: 'CUSTOMER_SENTIMENT',\n BlueChipCustomers: 'BLUE_CHIP_CUSTOMERS',\n WebPresence: 'WEB_PRESENCE',\n DiversificationOfCustomerBase: 'DIVERSIFICATION_OF_CUSTOMER_BASE',\n ChannelPartners: 'CHANNEL_PARTNERS',\n TechnicalComplexity: 'TECHNICAL_COMPLEXITY',\n CorneredResources: 'CORNERED_RESOURCES',\n LevelOfProductDifferentiation: 'LEVEL_OF_PRODUCT_DIFFERENTIATION',\n UniqueAdvantages: 'UNIQUE_ADVANTAGES',\n TrackRecord: 'TRACK_RECORD',\n RecentProductLaunches: 'RECENT_PRODUCT_LAUNCHES',\n RecentCommercialAnnouncements: 'RECENT_COMMERCIAL_ANNOUNCEMENTS',\n EmployeeGrowth: 'EMPLOYEE_GROWTH'\n} as const;\n\nexport type RubricDimensionType = typeof RubricDimensionType[keyof typeof RubricDimensionType];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const SalesMotion = {\n TopDown: 'TopDown',\n BottomUp: 'BottomUp',\n ChannelSales: 'ChannelSales',\n DistributorRetailer: 'DistributorRetailer'\n} as const;\n\nexport type SalesMotion = typeof SalesMotion[keyof typeof SalesMotion];\n\n\n/**\n * \n * @export\n * @interface ScoredCompaniesRequest\n */\nexport interface ScoredCompaniesRequest {\n /**\n * \n * @type {string}\n * @memberof ScoredCompaniesRequest\n */\n 'individual_filter'?: string;\n /**\n * \n * @type {string}\n * @memberof ScoredCompaniesRequest\n */\n 'pod_filter'?: string;\n /**\n * \n * @type {Rubric}\n * @memberof ScoredCompaniesRequest\n */\n 'rubric': Rubric;\n}\n/**\n * \n * @export\n * @interface ScoredDealcloudCompany\n */\nexport interface ScoredDealcloudCompany {\n /**\n * \n * @type {string}\n * @memberof ScoredDealcloudCompany\n */\n 'company_domain': string;\n /**\n * \n * @type {string}\n * @memberof ScoredDealcloudCompany\n */\n 'individual'?: string;\n /**\n * \n * @type {string}\n * @memberof ScoredDealcloudCompany\n */\n 'pod'?: string;\n /**\n * \n * @type {Array}\n * @memberof ScoredDealcloudCompany\n */\n 'scored_dimensions': Array;\n}\n/**\n * \n * @export\n * @interface ScoredRubric\n */\nexport interface ScoredRubric {\n /**\n * \n * @type {string}\n * @memberof ScoredRubric\n */\n 'rubric_id': string;\n /**\n * \n * @type {string}\n * @memberof ScoredRubric\n */\n 'company_domain': string;\n /**\n * \n * @type {Array}\n * @memberof ScoredRubric\n */\n 'scored_dimensions': Array;\n}\n/**\n * \n * @export\n * @interface ScoredRubricDimension\n */\nexport interface ScoredRubricDimension {\n /**\n * \n * @type {RubricDimensionType}\n * @memberof ScoredRubricDimension\n */\n 'type': RubricDimensionType;\n /**\n * \n * @type {number}\n * @memberof ScoredRubricDimension\n */\n 'score': number;\n /**\n * \n * @type {string}\n * @memberof ScoredRubricDimension\n */\n 'explanation': string;\n}\n\n\n/**\n * \n * @export\n * @interface ScoringAnswer\n */\nexport interface ScoringAnswer {\n /**\n * \n * @type {string}\n * @memberof ScoringAnswer\n */\n 'question': string;\n /**\n * \n * @type {TextWithSources}\n * @memberof ScoringAnswer\n */\n 'answer'?: TextWithSources;\n /**\n * \n * @type {number}\n * @memberof ScoringAnswer\n */\n 'score'?: number;\n}\n/**\n * \n * @export\n * @interface ScoringCriterion\n */\nexport interface ScoringCriterion {\n /**\n * \n * @type {string}\n * @memberof ScoringCriterion\n */\n 'question': string;\n /**\n * \n * @type {string}\n * @memberof ScoringCriterion\n */\n 'detail'?: string;\n /**\n * \n * @type {string}\n * @memberof ScoringCriterion\n */\n 'low_score_standard': string;\n /**\n * \n * @type {string}\n * @memberof ScoringCriterion\n */\n 'high_score_standard': string;\n /**\n * \n * @type {number}\n * @memberof ScoringCriterion\n */\n 'weight': number;\n}\n/**\n * \n * @export\n * @interface ScoringTopicResult\n */\nexport interface ScoringTopicResult {\n /**\n * \n * @type {string}\n * @memberof ScoringTopicResult\n */\n 'topic'?: string;\n /**\n * \n * @type {number}\n * @memberof ScoringTopicResult\n */\n 'score': number;\n /**\n * \n * @type {string}\n * @memberof ScoringTopicResult\n */\n 'explanation': string;\n}\n/**\n * \n * @export\n * @interface SearchStrategy\n */\nexport interface SearchStrategy {\n /**\n * \n * @type {string}\n * @memberof SearchStrategy\n */\n 'search_type': SearchStrategySearchTypeEnum;\n /**\n * \n * @type {string}\n * @memberof SearchStrategy\n */\n 'site'?: string;\n /**\n * \n * @type {string}\n * @memberof SearchStrategy\n */\n 'search_phrase': string;\n}\n\nexport const SearchStrategySearchTypeEnum = {\n Web: 'web',\n Xray: 'xray',\n Llm: 'llm'\n} as const;\n\nexport type SearchStrategySearchTypeEnum = typeof SearchStrategySearchTypeEnum[keyof typeof SearchStrategySearchTypeEnum];\n\n/**\n * \n * @export\n * @interface Source\n */\nexport interface Source {\n /**\n * \n * @type {string}\n * @memberof Source\n */\n 'title': string;\n /**\n * \n * @type {string}\n * @memberof Source\n */\n 'gateway'?: string;\n /**\n * \n * @type {string}\n * @memberof Source\n */\n 'link'?: string;\n /**\n * \n * @type {string}\n * @memberof Source\n */\n 'snippet'?: string;\n /**\n * \n * @type {string}\n * @memberof Source\n */\n 'source_name'?: string;\n /**\n * \n * @type {string}\n * @memberof Source\n */\n 'image'?: string;\n /**\n * \n * @type {string}\n * @memberof Source\n */\n 'date'?: string;\n}\n/**\n * \n * @export\n * @interface SourceCompaniesCompany\n */\nexport interface SourceCompaniesCompany {\n /**\n * \n * @type {FrontendCompany}\n * @memberof SourceCompaniesCompany\n */\n 'company': FrontendCompany;\n /**\n * \n * @type {number}\n * @memberof SourceCompaniesCompany\n */\n 'overall_score'?: number;\n /**\n * \n * @type {Array}\n * @memberof SourceCompaniesCompany\n */\n 'scoring_answers'?: Array;\n}\n/**\n * \n * @export\n * @interface SourceCompaniesInputs\n */\nexport interface SourceCompaniesInputs {\n /**\n * \n * @type {string}\n * @memberof SourceCompaniesInputs\n */\n 'category_name': string;\n /**\n * \n * @type {string}\n * @memberof SourceCompaniesInputs\n */\n 'business_model'?: string;\n /**\n * \n * @type {string}\n * @memberof SourceCompaniesInputs\n */\n 'main_offerings'?: string;\n /**\n * \n * @type {string}\n * @memberof SourceCompaniesInputs\n */\n 'customer_segments'?: string;\n /**\n * \n * @type {string}\n * @memberof SourceCompaniesInputs\n */\n 'geographies'?: string;\n /**\n * \n * @type {string}\n * @memberof SourceCompaniesInputs\n */\n 'technologies'?: string;\n /**\n * \n * @type {Array}\n * @memberof SourceCompaniesInputs\n */\n 'exemplar_company_domains'?: Array;\n /**\n * \n * @type {Array}\n * @memberof SourceCompaniesInputs\n */\n 'filters'?: Array;\n /**\n * \n * @type {Array}\n * @memberof SourceCompaniesInputs\n */\n 'company_type_filter'?: Array;\n /**\n * \n * @type {Array}\n * @memberof SourceCompaniesInputs\n */\n 'hq_country_filter'?: Array;\n /**\n * \n * @type {number}\n * @memberof SourceCompaniesInputs\n */\n 'requested_number_of_companies'?: number;\n /**\n * \n * @type {Array}\n * @memberof SourceCompaniesInputs\n */\n 'exemplar_domains'?: Array;\n /**\n * \n * @type {Array}\n * @memberof SourceCompaniesInputs\n */\n 'scoring_criteria'?: Array;\n}\n/**\n * \n * @export\n * @interface SourceCompaniesOutputs\n */\nexport interface SourceCompaniesOutputs {\n /**\n * \n * @type {Array}\n * @memberof SourceCompaniesOutputs\n */\n 'companies': Array;\n /**\n * \n * @type {Array}\n * @memberof SourceCompaniesOutputs\n */\n 'removed_companies'?: Array;\n}\n/**\n * \n * @export\n * @interface SourceCompaniesWorkflow\n */\nexport interface SourceCompaniesWorkflow {\n /**\n * \n * @type {string}\n * @memberof SourceCompaniesWorkflow\n */\n 'input_generation_state'?: SourceCompaniesWorkflowInputGenerationStateEnum;\n /**\n * \n * @type {SourceCompaniesInputs}\n * @memberof SourceCompaniesWorkflow\n */\n 'frontend_initial_inputs'?: SourceCompaniesInputs;\n /**\n * \n * @type {string}\n * @memberof SourceCompaniesWorkflow\n */\n 'error_explanation'?: string;\n /**\n * \n * @type {SourceCompaniesInputs}\n * @memberof SourceCompaniesWorkflow\n */\n 'inputs': SourceCompaniesInputs;\n /**\n * \n * @type {SourceCompaniesOutputs}\n * @memberof SourceCompaniesWorkflow\n */\n 'outputs'?: SourceCompaniesOutputs;\n /**\n * \n * @type {string}\n * @memberof SourceCompaniesWorkflow\n */\n 'parse_helper': SourceCompaniesWorkflowParseHelperEnum;\n}\n\nexport const SourceCompaniesWorkflowInputGenerationStateEnum = {\n Initial: 'initial',\n Loading: 'loading',\n Final: 'final'\n} as const;\n\nexport type SourceCompaniesWorkflowInputGenerationStateEnum = typeof SourceCompaniesWorkflowInputGenerationStateEnum[keyof typeof SourceCompaniesWorkflowInputGenerationStateEnum];\nexport const SourceCompaniesWorkflowParseHelperEnum = {\n SourceCompanies: 'source_companies'\n} as const;\n\nexport type SourceCompaniesWorkflowParseHelperEnum = typeof SourceCompaniesWorkflowParseHelperEnum[keyof typeof SourceCompaniesWorkflowParseHelperEnum];\n\n/**\n * \n * @export\n * @interface TalkingPoint\n */\nexport interface TalkingPoint {\n /**\n * \n * @type {string}\n * @memberof TalkingPoint\n */\n 'observation': string;\n /**\n * \n * @type {string}\n * @memberof TalkingPoint\n */\n 'implied_goal': string;\n /**\n * \n * @type {string}\n * @memberof TalkingPoint\n */\n 'proof_point': string;\n}\n/**\n * \n * @export\n * @interface TargetInfo\n */\nexport interface TargetInfo {\n /**\n * \n * @type {string}\n * @memberof TargetInfo\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof TargetInfo\n */\n 'website'?: string;\n /**\n * \n * @type {string}\n * @memberof TargetInfo\n */\n 'description'?: string;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const TaskStatus = {\n Created: 'created',\n Running: 'running',\n Completed: 'completed',\n InputModified: 'input_modified',\n OutputModified: 'output_modified',\n Incomplete: 'incomplete'\n} as const;\n\nexport type TaskStatus = typeof TaskStatus[keyof typeof TaskStatus];\n\n\n/**\n * \n * @export\n * @interface TeamDive\n */\nexport interface TeamDive {\n /**\n * \n * @type {string}\n * @memberof TeamDive\n */\n 'company_domain': string;\n /**\n * \n * @type {Array}\n * @memberof TeamDive\n */\n 'team_members': Array;\n /**\n * \n * @type {Array}\n * @memberof TeamDive\n */\n 'linkedin_jobs': Array;\n /**\n * \n * @type {Array}\n * @memberof TeamDive\n */\n 'sources': Array;\n}\n/**\n * \n * @export\n * @interface TeamMember\n */\nexport interface TeamMember {\n /**\n * \n * @type {string}\n * @memberof TeamMember\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof TeamMember\n */\n 'title'?: string;\n /**\n * \n * @type {string}\n * @memberof TeamMember\n */\n 'linkedin_url'?: string;\n /**\n * \n * @type {string}\n * @memberof TeamMember\n */\n 'background'?: string;\n /**\n * \n * @type {string}\n * @memberof TeamMember\n */\n 'location'?: string;\n}\n/**\n * \n * @export\n * @interface TearSheetInputsV1\n */\nexport interface TearSheetInputsV1 {\n /**\n * \n * @type {string}\n * @memberof TearSheetInputsV1\n */\n 'name'?: string;\n /**\n * \n * @type {string}\n * @memberof TearSheetInputsV1\n */\n 'domain': string;\n}\n/**\n * \n * @export\n * @interface TearSheetOutputsV1\n */\nexport interface TearSheetOutputsV1 {\n /**\n * \n * @type {Business}\n * @memberof TearSheetOutputsV1\n */\n 'business': Business;\n /**\n * \n * @type {OfferingProductSynthesis}\n * @memberof TearSheetOutputsV1\n */\n 'product_synthesis'?: OfferingProductSynthesis;\n}\n/**\n * \n * @export\n * @interface TearSheetWorkflowV1\n */\nexport interface TearSheetWorkflowV1 {\n /**\n * \n * @type {string}\n * @memberof TearSheetWorkflowV1\n */\n 'workflow_id'?: string;\n /**\n * \n * @type {TearSheetInputsV1}\n * @memberof TearSheetWorkflowV1\n */\n 'inputs': TearSheetInputsV1;\n /**\n * \n * @type {TearSheetOutputsV1}\n * @memberof TearSheetWorkflowV1\n */\n 'outputs'?: TearSheetOutputsV1;\n /**\n * \n * @type {string}\n * @memberof TearSheetWorkflowV1\n */\n 'comp_finder_reference_workflow_id'?: string;\n /**\n * \n * @type {string}\n * @memberof TearSheetWorkflowV1\n */\n 'public_comps_reference_workflow_id'?: string;\n /**\n * \n * @type {string}\n * @memberof TearSheetWorkflowV1\n */\n 'parse_helper': TearSheetWorkflowV1ParseHelperEnum;\n}\n\nexport const TearSheetWorkflowV1ParseHelperEnum = {\n TearSheet: 'tear_sheet'\n} as const;\n\nexport type TearSheetWorkflowV1ParseHelperEnum = typeof TearSheetWorkflowV1ParseHelperEnum[keyof typeof TearSheetWorkflowV1ParseHelperEnum];\n\n/**\n * \n * @export\n * @interface TearsheetEnrichment\n */\nexport interface TearsheetEnrichment {\n /**\n * \n * @type {string}\n * @memberof TearsheetEnrichment\n */\n 'company_domain': string;\n /**\n * \n * @type {TearsheetEnrichmentType}\n * @memberof TearsheetEnrichment\n */\n 'enrichment_type': TearsheetEnrichmentType;\n /**\n * \n * @type {TearsheetEnrichmentEnrichmentValue}\n * @memberof TearsheetEnrichment\n */\n 'enrichment_value': TearsheetEnrichmentEnrichmentValue;\n}\n\n\n/**\n * @type TearsheetEnrichmentEnrichmentValue\n * @export\n */\nexport type TearsheetEnrichmentEnrichmentValue = PitchbookEnrichment;\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const TearsheetEnrichmentType = {\n Pitchbook: 'pitchbook',\n Prequin: 'prequin'\n} as const;\n\nexport type TearsheetEnrichmentType = typeof TearsheetEnrichmentType[keyof typeof TearsheetEnrichmentType];\n\n\n/**\n * \n * @export\n * @interface TextWithSource\n */\nexport interface TextWithSource {\n /**\n * \n * @type {string}\n * @memberof TextWithSource\n */\n 'text': string;\n /**\n * \n * @type {Source}\n * @memberof TextWithSource\n */\n 'source': Source;\n}\n/**\n * \n * @export\n * @interface TextWithSources\n */\nexport interface TextWithSources {\n /**\n * \n * @type {string}\n * @memberof TextWithSources\n */\n 'text': string;\n /**\n * \n * @type {Array}\n * @memberof TextWithSources\n */\n 'sources': Array;\n}\n/**\n * \n * @export\n * @interface TextWithSourcesAndHeadline\n */\nexport interface TextWithSourcesAndHeadline {\n /**\n * \n * @type {string}\n * @memberof TextWithSourcesAndHeadline\n */\n 'text': string;\n /**\n * \n * @type {Array}\n * @memberof TextWithSourcesAndHeadline\n */\n 'sources': Array;\n /**\n * \n * @type {string}\n * @memberof TextWithSourcesAndHeadline\n */\n 'headline': string;\n}\n/**\n * \n * @export\n * @interface TextsWithSource\n */\nexport interface TextsWithSource {\n /**\n * \n * @type {Array}\n * @memberof TextsWithSource\n */\n 'texts': Array;\n /**\n * \n * @type {Source}\n * @memberof TextsWithSource\n */\n 'source': Source;\n}\n/**\n * \n * @export\n * @interface UnverifiedShell\n */\nexport interface UnverifiedShell {\n /**\n * \n * @type {string}\n * @memberof UnverifiedShell\n */\n 'name'?: string;\n /**\n * \n * @type {string}\n * @memberof UnverifiedShell\n */\n 'overview'?: string;\n /**\n * \n * @type {string}\n * @memberof UnverifiedShell\n */\n 'untruncated_domain'?: string;\n}\n/**\n * \n * @export\n * @interface WebTrafficSnapshot\n */\nexport interface WebTrafficSnapshot {\n /**\n * \n * @type {number}\n * @memberof WebTrafficSnapshot\n */\n 'visits_last_month': number;\n /**\n * \n * @type {number}\n * @memberof WebTrafficSnapshot\n */\n 'visit_growth_monthly'?: number;\n /**\n * \n * @type {Array}\n * @memberof WebTrafficSnapshot\n */\n 'visits_by_month'?: Array;\n}\n/**\n * \n * @export\n * @interface WorkflowEffort\n */\nexport interface WorkflowEffort {\n /**\n * \n * @type {number}\n * @memberof WorkflowEffort\n */\n 'number_of_articles_read': number;\n /**\n * \n * @type {number}\n * @memberof WorkflowEffort\n */\n 'number_of_companies_researched': number;\n /**\n * \n * @type {number}\n * @memberof WorkflowEffort\n */\n 'number_of_llm_calls': number;\n}\n/**\n * \n * @export\n * @interface WorkflowFeedback\n */\nexport interface WorkflowFeedback {\n /**\n * \n * @type {string}\n * @memberof WorkflowFeedback\n */\n 'rating'?: WorkflowFeedbackRatingEnum;\n}\n\nexport const WorkflowFeedbackRatingEnum = {\n Good: 'good',\n Bad: 'bad'\n} as const;\n\nexport type WorkflowFeedbackRatingEnum = typeof WorkflowFeedbackRatingEnum[keyof typeof WorkflowFeedbackRatingEnum];\n\n/**\n * \n * @export\n * @interface WorkflowStub\n */\nexport interface WorkflowStub {\n /**\n * \n * @type {string}\n * @memberof WorkflowStub\n */\n 'workflow_id': string;\n /**\n * \n * @type {TaskStatus}\n * @memberof WorkflowStub\n */\n 'status': TaskStatus;\n /**\n * \n * @type {string}\n * @memberof WorkflowStub\n */\n 'title': string;\n /**\n * \n * @type {WorkflowType}\n * @memberof WorkflowStub\n */\n 'workflow_type': WorkflowType;\n /**\n * \n * @type {number}\n * @memberof WorkflowStub\n */\n 'created_at'?: number;\n /**\n * \n * @type {boolean}\n * @memberof WorkflowStub\n */\n 'viewed'?: boolean;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const WorkflowType = {\n CompFinder: 'comp_finder',\n CompLandscapeV7: 'comp_landscape_v7',\n MarketMap: 'market_map',\n MarketMapV2: 'market_map_v2',\n PublicComps: 'public_comps',\n TearSheet: 'tear_sheet',\n FindCompanies: 'find_companies',\n FindCompaniesV2: 'find_companies_v2',\n PrecedentTransactions: 'precedent_transactions',\n CustomCompanyProfiles: 'custom_company_profiles',\n GeographicCoverage: 'geographic_coverage',\n ManagementProfiles: 'management_profiles',\n PressSearch: 'press_search',\n EarningsCallPressSnippets: 'earnings_call_press_snippets',\n OfferingComparison: 'offering_comparison',\n SentimentComparison: 'sentiment_comparison',\n CaseStudies: 'case_studies',\n RegulatorySnippets: 'regulatory_snippets',\n RegulatoryEnvironments: 'regulatory_environments',\n GtmComparison: 'gtm_comparison',\n GeographicExpansion: 'geographic_expansion',\n CustomerSegmentation: 'customer_segmentation',\n MarketTrends: 'market_trends',\n BottomUpMarketSizing: 'bottom_up_market_sizing',\n TopDownMarketSizing: 'top_down_market_sizing',\n OfferingDeepdive: 'offering_deepdive',\n CompanyCustomResearch: 'company_custom_research',\n SourceCompanies: 'source_companies'\n} as const;\n\nexport type WorkflowType = typeof WorkflowType[keyof typeof WorkflowType];\n\n\n\n/**\n * BillingApi - axios parameter creator\n * @export\n */\nexport const BillingApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1CheckActiveSubscriptionPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/check_active_subscription`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1CreateCheckoutSessionPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/create_checkout_session`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1CreateCustomerPortalSessionPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/create_customer_portal_session`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * BillingApi - functional programming interface\n * @export\n */\nexport const BillingApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = BillingApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1CheckActiveSubscriptionPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1CheckActiveSubscriptionPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1CreateCheckoutSessionPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1CreateCheckoutSessionPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1CreateCustomerPortalSessionPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1CreateCustomerPortalSessionPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * BillingApi - factory interface\n * @export\n */\nexport const BillingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = BillingApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1CheckActiveSubscriptionPost(options?: any): AxiosPromise {\n return localVarFp.brainV1CheckActiveSubscriptionPost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1CreateCheckoutSessionPost(options?: any): AxiosPromise {\n return localVarFp.brainV1CreateCheckoutSessionPost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1CreateCustomerPortalSessionPost(options?: any): AxiosPromise {\n return localVarFp.brainV1CreateCustomerPortalSessionPost(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * BillingApi - object-oriented interface\n * @export\n * @class BillingApi\n * @extends {BaseAPI}\n */\nexport class BillingApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof BillingApi\n */\n public brainV1CheckActiveSubscriptionPost(options?: AxiosRequestConfig) {\n return BillingApiFp(this.configuration).brainV1CheckActiveSubscriptionPost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof BillingApi\n */\n public brainV1CreateCheckoutSessionPost(options?: AxiosRequestConfig) {\n return BillingApiFp(this.configuration).brainV1CreateCheckoutSessionPost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof BillingApi\n */\n public brainV1CreateCustomerPortalSessionPost(options?: AxiosRequestConfig) {\n return BillingApiFp(this.configuration).brainV1CreateCustomerPortalSessionPost(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * CompanyApi - axios parameter creator\n * @export\n */\nexport const CompanyApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {BrainV1GetCompanyProfilePostRequest} [brainV1GetCompanyProfilePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetCompanyProfilePost: async (brainV1GetCompanyProfilePostRequest?: BrainV1GetCompanyProfilePostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_company_profile`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1GetCompanyProfilePostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * CompanyApi - functional programming interface\n * @export\n */\nexport const CompanyApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = CompanyApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {BrainV1GetCompanyProfilePostRequest} [brainV1GetCompanyProfilePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetCompanyProfilePost(brainV1GetCompanyProfilePostRequest?: BrainV1GetCompanyProfilePostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetCompanyProfilePost(brainV1GetCompanyProfilePostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * CompanyApi - factory interface\n * @export\n */\nexport const CompanyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = CompanyApiFp(configuration)\n return {\n /**\n * \n * @param {BrainV1GetCompanyProfilePostRequest} [brainV1GetCompanyProfilePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetCompanyProfilePost(brainV1GetCompanyProfilePostRequest?: BrainV1GetCompanyProfilePostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1GetCompanyProfilePost(brainV1GetCompanyProfilePostRequest, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * CompanyApi - object-oriented interface\n * @export\n * @class CompanyApi\n * @extends {BaseAPI}\n */\nexport class CompanyApi extends BaseAPI {\n /**\n * \n * @param {BrainV1GetCompanyProfilePostRequest} [brainV1GetCompanyProfilePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof CompanyApi\n */\n public brainV1GetCompanyProfilePost(brainV1GetCompanyProfilePostRequest?: BrainV1GetCompanyProfilePostRequest, options?: AxiosRequestConfig) {\n return CompanyApiFp(this.configuration).brainV1GetCompanyProfilePost(brainV1GetCompanyProfilePostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * CompanyListsApi - axios parameter creator\n * @export\n */\nexport const CompanyListsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest} [brainV1AddCompaniesFromMarketMapToCompanyListPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1AddCompaniesFromMarketMapToCompanyListPost: async (brainV1AddCompaniesFromMarketMapToCompanyListPostRequest?: BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/add_companies_from_market_map_to_company_list`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1AddCompaniesFromMarketMapToCompanyListPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1AddCompaniesToCompanyListPostRequest} [brainV1AddCompaniesToCompanyListPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1AddCompaniesToCompanyListPost: async (brainV1AddCompaniesToCompanyListPostRequest?: BrainV1AddCompaniesToCompanyListPostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/add_companies_to_company_list`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1AddCompaniesToCompanyListPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1DeleteCompanyListPostRequest} brainV1DeleteCompanyListPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1DeleteCompanyListPost: async (brainV1DeleteCompanyListPostRequest: BrainV1DeleteCompanyListPostRequest, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'brainV1DeleteCompanyListPostRequest' is not null or undefined\n assertParamExists('brainV1DeleteCompanyListPost', 'brainV1DeleteCompanyListPostRequest', brainV1DeleteCompanyListPostRequest)\n const localVarPath = `/brain/v1/delete_company_list`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1DeleteCompanyListPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {CompanyList} companyList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1ExportCompanyListToExcelPost: async (companyList: CompanyList, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'companyList' is not null or undefined\n assertParamExists('brainV1ExportCompanyListToExcelPost', 'companyList', companyList)\n const localVarPath = `/brain/v1/export_company_list_to_excel`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(companyList, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetCompanyListsPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_company_lists`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {CompanyList} companyList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UpdateCompanyListPost: async (companyList: CompanyList, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'companyList' is not null or undefined\n assertParamExists('brainV1UpdateCompanyListPost', 'companyList', companyList)\n const localVarPath = `/brain/v1/update_company_list`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(companyList, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * CompanyListsApi - functional programming interface\n * @export\n */\nexport const CompanyListsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = CompanyListsApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest} [brainV1AddCompaniesFromMarketMapToCompanyListPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1AddCompaniesFromMarketMapToCompanyListPost(brainV1AddCompaniesFromMarketMapToCompanyListPostRequest?: BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1AddCompaniesFromMarketMapToCompanyListPost(brainV1AddCompaniesFromMarketMapToCompanyListPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1AddCompaniesToCompanyListPostRequest} [brainV1AddCompaniesToCompanyListPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1AddCompaniesToCompanyListPost(brainV1AddCompaniesToCompanyListPostRequest?: BrainV1AddCompaniesToCompanyListPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1AddCompaniesToCompanyListPost(brainV1AddCompaniesToCompanyListPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1DeleteCompanyListPostRequest} brainV1DeleteCompanyListPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1DeleteCompanyListPost(brainV1DeleteCompanyListPostRequest: BrainV1DeleteCompanyListPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1DeleteCompanyListPost(brainV1DeleteCompanyListPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {CompanyList} companyList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1ExportCompanyListToExcelPost(companyList: CompanyList, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1ExportCompanyListToExcelPost(companyList, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetCompanyListsPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetCompanyListsPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {CompanyList} companyList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1UpdateCompanyListPost(companyList: CompanyList, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1UpdateCompanyListPost(companyList, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * CompanyListsApi - factory interface\n * @export\n */\nexport const CompanyListsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = CompanyListsApiFp(configuration)\n return {\n /**\n * \n * @param {BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest} [brainV1AddCompaniesFromMarketMapToCompanyListPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1AddCompaniesFromMarketMapToCompanyListPost(brainV1AddCompaniesFromMarketMapToCompanyListPostRequest?: BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1AddCompaniesFromMarketMapToCompanyListPost(brainV1AddCompaniesFromMarketMapToCompanyListPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1AddCompaniesToCompanyListPostRequest} [brainV1AddCompaniesToCompanyListPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1AddCompaniesToCompanyListPost(brainV1AddCompaniesToCompanyListPostRequest?: BrainV1AddCompaniesToCompanyListPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1AddCompaniesToCompanyListPost(brainV1AddCompaniesToCompanyListPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1DeleteCompanyListPostRequest} brainV1DeleteCompanyListPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1DeleteCompanyListPost(brainV1DeleteCompanyListPostRequest: BrainV1DeleteCompanyListPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1DeleteCompanyListPost(brainV1DeleteCompanyListPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {CompanyList} companyList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1ExportCompanyListToExcelPost(companyList: CompanyList, options?: any): AxiosPromise {\n return localVarFp.brainV1ExportCompanyListToExcelPost(companyList, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetCompanyListsPost(options?: any): AxiosPromise> {\n return localVarFp.brainV1GetCompanyListsPost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {CompanyList} companyList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UpdateCompanyListPost(companyList: CompanyList, options?: any): AxiosPromise {\n return localVarFp.brainV1UpdateCompanyListPost(companyList, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * CompanyListsApi - object-oriented interface\n * @export\n * @class CompanyListsApi\n * @extends {BaseAPI}\n */\nexport class CompanyListsApi extends BaseAPI {\n /**\n * \n * @param {BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest} [brainV1AddCompaniesFromMarketMapToCompanyListPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof CompanyListsApi\n */\n public brainV1AddCompaniesFromMarketMapToCompanyListPost(brainV1AddCompaniesFromMarketMapToCompanyListPostRequest?: BrainV1AddCompaniesFromMarketMapToCompanyListPostRequest, options?: AxiosRequestConfig) {\n return CompanyListsApiFp(this.configuration).brainV1AddCompaniesFromMarketMapToCompanyListPost(brainV1AddCompaniesFromMarketMapToCompanyListPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1AddCompaniesToCompanyListPostRequest} [brainV1AddCompaniesToCompanyListPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof CompanyListsApi\n */\n public brainV1AddCompaniesToCompanyListPost(brainV1AddCompaniesToCompanyListPostRequest?: BrainV1AddCompaniesToCompanyListPostRequest, options?: AxiosRequestConfig) {\n return CompanyListsApiFp(this.configuration).brainV1AddCompaniesToCompanyListPost(brainV1AddCompaniesToCompanyListPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1DeleteCompanyListPostRequest} brainV1DeleteCompanyListPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof CompanyListsApi\n */\n public brainV1DeleteCompanyListPost(brainV1DeleteCompanyListPostRequest: BrainV1DeleteCompanyListPostRequest, options?: AxiosRequestConfig) {\n return CompanyListsApiFp(this.configuration).brainV1DeleteCompanyListPost(brainV1DeleteCompanyListPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {CompanyList} companyList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof CompanyListsApi\n */\n public brainV1ExportCompanyListToExcelPost(companyList: CompanyList, options?: AxiosRequestConfig) {\n return CompanyListsApiFp(this.configuration).brainV1ExportCompanyListToExcelPost(companyList, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof CompanyListsApi\n */\n public brainV1GetCompanyListsPost(options?: AxiosRequestConfig) {\n return CompanyListsApiFp(this.configuration).brainV1GetCompanyListsPost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {CompanyList} companyList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof CompanyListsApi\n */\n public brainV1UpdateCompanyListPost(companyList: CompanyList, options?: AxiosRequestConfig) {\n return CompanyListsApiFp(this.configuration).brainV1UpdateCompanyListPost(companyList, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * DemoApi - axios parameter creator\n * @export\n */\nexport const DemoApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {BrainV1FindSimilarCompaniesLightPostRequest} [brainV1FindSimilarCompaniesLightPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FindSimilarCompaniesLightPost: async (brainV1FindSimilarCompaniesLightPostRequest?: BrainV1FindSimilarCompaniesLightPostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/find_similar_companies_light`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1FindSimilarCompaniesLightPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * DemoApi - functional programming interface\n * @export\n */\nexport const DemoApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = DemoApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {BrainV1FindSimilarCompaniesLightPostRequest} [brainV1FindSimilarCompaniesLightPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1FindSimilarCompaniesLightPost(brainV1FindSimilarCompaniesLightPostRequest?: BrainV1FindSimilarCompaniesLightPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1FindSimilarCompaniesLightPost(brainV1FindSimilarCompaniesLightPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * DemoApi - factory interface\n * @export\n */\nexport const DemoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = DemoApiFp(configuration)\n return {\n /**\n * \n * @param {BrainV1FindSimilarCompaniesLightPostRequest} [brainV1FindSimilarCompaniesLightPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FindSimilarCompaniesLightPost(brainV1FindSimilarCompaniesLightPostRequest?: BrainV1FindSimilarCompaniesLightPostRequest, options?: any): AxiosPromise> {\n return localVarFp.brainV1FindSimilarCompaniesLightPost(brainV1FindSimilarCompaniesLightPostRequest, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * DemoApi - object-oriented interface\n * @export\n * @class DemoApi\n * @extends {BaseAPI}\n */\nexport class DemoApi extends BaseAPI {\n /**\n * \n * @param {BrainV1FindSimilarCompaniesLightPostRequest} [brainV1FindSimilarCompaniesLightPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DemoApi\n */\n public brainV1FindSimilarCompaniesLightPost(brainV1FindSimilarCompaniesLightPostRequest?: BrainV1FindSimilarCompaniesLightPostRequest, options?: AxiosRequestConfig) {\n return DemoApiFp(this.configuration).brainV1FindSimilarCompaniesLightPost(brainV1FindSimilarCompaniesLightPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * DocumentsApi - axios parameter creator\n * @export\n */\nexport const DocumentsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {BrainV1GetDocumentPdfPostRequest} [brainV1GetDocumentPdfPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetDocumentPdfPost: async (brainV1GetDocumentPdfPostRequest?: BrainV1GetDocumentPdfPostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_document_pdf`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1GetDocumentPdfPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetInternalDocumentsPost: async (body?: object, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_internal_documents`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1IngestDocumentPostRequest} [brainV1IngestDocumentPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1IngestDocumentPost: async (brainV1IngestDocumentPostRequest?: BrainV1IngestDocumentPostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/ingest_document`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1IngestDocumentPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1IngestWebpagePostRequest} [brainV1IngestWebpagePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1IngestWebpagePost: async (brainV1IngestWebpagePostRequest?: BrainV1IngestWebpagePostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/ingest_webpage`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1IngestWebpagePostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * DocumentsApi - functional programming interface\n * @export\n */\nexport const DocumentsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = DocumentsApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {BrainV1GetDocumentPdfPostRequest} [brainV1GetDocumentPdfPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetDocumentPdfPost(brainV1GetDocumentPdfPostRequest?: BrainV1GetDocumentPdfPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetDocumentPdfPost(brainV1GetDocumentPdfPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetInternalDocumentsPost(body?: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetInternalDocumentsPost(body, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1IngestDocumentPostRequest} [brainV1IngestDocumentPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1IngestDocumentPost(brainV1IngestDocumentPostRequest?: BrainV1IngestDocumentPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1IngestDocumentPost(brainV1IngestDocumentPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1IngestWebpagePostRequest} [brainV1IngestWebpagePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1IngestWebpagePost(brainV1IngestWebpagePostRequest?: BrainV1IngestWebpagePostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1IngestWebpagePost(brainV1IngestWebpagePostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * DocumentsApi - factory interface\n * @export\n */\nexport const DocumentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = DocumentsApiFp(configuration)\n return {\n /**\n * \n * @param {BrainV1GetDocumentPdfPostRequest} [brainV1GetDocumentPdfPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetDocumentPdfPost(brainV1GetDocumentPdfPostRequest?: BrainV1GetDocumentPdfPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1GetDocumentPdfPost(brainV1GetDocumentPdfPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetInternalDocumentsPost(body?: object, options?: any): AxiosPromise> {\n return localVarFp.brainV1GetInternalDocumentsPost(body, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1IngestDocumentPostRequest} [brainV1IngestDocumentPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1IngestDocumentPost(brainV1IngestDocumentPostRequest?: BrainV1IngestDocumentPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1IngestDocumentPost(brainV1IngestDocumentPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1IngestWebpagePostRequest} [brainV1IngestWebpagePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1IngestWebpagePost(brainV1IngestWebpagePostRequest?: BrainV1IngestWebpagePostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1IngestWebpagePost(brainV1IngestWebpagePostRequest, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * DocumentsApi - object-oriented interface\n * @export\n * @class DocumentsApi\n * @extends {BaseAPI}\n */\nexport class DocumentsApi extends BaseAPI {\n /**\n * \n * @param {BrainV1GetDocumentPdfPostRequest} [brainV1GetDocumentPdfPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DocumentsApi\n */\n public brainV1GetDocumentPdfPost(brainV1GetDocumentPdfPostRequest?: BrainV1GetDocumentPdfPostRequest, options?: AxiosRequestConfig) {\n return DocumentsApiFp(this.configuration).brainV1GetDocumentPdfPost(brainV1GetDocumentPdfPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DocumentsApi\n */\n public brainV1GetInternalDocumentsPost(body?: object, options?: AxiosRequestConfig) {\n return DocumentsApiFp(this.configuration).brainV1GetInternalDocumentsPost(body, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1IngestDocumentPostRequest} [brainV1IngestDocumentPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DocumentsApi\n */\n public brainV1IngestDocumentPost(brainV1IngestDocumentPostRequest?: BrainV1IngestDocumentPostRequest, options?: AxiosRequestConfig) {\n return DocumentsApiFp(this.configuration).brainV1IngestDocumentPost(brainV1IngestDocumentPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1IngestWebpagePostRequest} [brainV1IngestWebpagePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DocumentsApi\n */\n public brainV1IngestWebpagePost(brainV1IngestWebpagePostRequest?: BrainV1IngestWebpagePostRequest, options?: AxiosRequestConfig) {\n return DocumentsApiFp(this.configuration).brainV1IngestWebpagePost(brainV1IngestWebpagePostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * EnrichmentApi - axios parameter creator\n * @export\n */\nexport const EnrichmentApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetEnrichmentsAdminInfoPost: async (body?: object, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_enrichments_admin_info`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1GetTearsheetEnrichmentPostRequest} [brainV1GetTearsheetEnrichmentPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetTearsheetEnrichmentPost: async (brainV1GetTearsheetEnrichmentPostRequest?: BrainV1GetTearsheetEnrichmentPostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_tearsheet_enrichment`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1GetTearsheetEnrichmentPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * EnrichmentApi - functional programming interface\n * @export\n */\nexport const EnrichmentApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = EnrichmentApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetEnrichmentsAdminInfoPost(body?: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetEnrichmentsAdminInfoPost(body, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1GetTearsheetEnrichmentPostRequest} [brainV1GetTearsheetEnrichmentPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetTearsheetEnrichmentPost(brainV1GetTearsheetEnrichmentPostRequest?: BrainV1GetTearsheetEnrichmentPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetTearsheetEnrichmentPost(brainV1GetTearsheetEnrichmentPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * EnrichmentApi - factory interface\n * @export\n */\nexport const EnrichmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = EnrichmentApiFp(configuration)\n return {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetEnrichmentsAdminInfoPost(body?: object, options?: any): AxiosPromise {\n return localVarFp.brainV1GetEnrichmentsAdminInfoPost(body, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1GetTearsheetEnrichmentPostRequest} [brainV1GetTearsheetEnrichmentPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetTearsheetEnrichmentPost(brainV1GetTearsheetEnrichmentPostRequest?: BrainV1GetTearsheetEnrichmentPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1GetTearsheetEnrichmentPost(brainV1GetTearsheetEnrichmentPostRequest, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * EnrichmentApi - object-oriented interface\n * @export\n * @class EnrichmentApi\n * @extends {BaseAPI}\n */\nexport class EnrichmentApi extends BaseAPI {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof EnrichmentApi\n */\n public brainV1GetEnrichmentsAdminInfoPost(body?: object, options?: AxiosRequestConfig) {\n return EnrichmentApiFp(this.configuration).brainV1GetEnrichmentsAdminInfoPost(body, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1GetTearsheetEnrichmentPostRequest} [brainV1GetTearsheetEnrichmentPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof EnrichmentApi\n */\n public brainV1GetTearsheetEnrichmentPost(brainV1GetTearsheetEnrichmentPostRequest?: BrainV1GetTearsheetEnrichmentPostRequest, options?: AxiosRequestConfig) {\n return EnrichmentApiFp(this.configuration).brainV1GetTearsheetEnrichmentPost(brainV1GetTearsheetEnrichmentPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * FindCompaniesV2Api - axios parameter creator\n * @export\n */\nexport const FindCompaniesV2ApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest} brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1AddSimilarCompaniesToFindCompaniesWorkflowPost: async (brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest: BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest' is not null or undefined\n assertParamExists('brainV1AddSimilarCompaniesToFindCompaniesWorkflowPost', 'brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest', brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest)\n const localVarPath = `/brain/v1/add_similar_companies_to_find_companies_workflow`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {FindCompaniesV2InitialInputs} findCompaniesV2InitialInputs \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FindCompaniesInitialInputsToInputsPost: async (findCompaniesV2InitialInputs: FindCompaniesV2InitialInputs, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'findCompaniesV2InitialInputs' is not null or undefined\n assertParamExists('brainV1FindCompaniesInitialInputsToInputsPost', 'findCompaniesV2InitialInputs', findCompaniesV2InitialInputs)\n const localVarPath = `/brain/v1/find_companies_initial_inputs_to_inputs`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(findCompaniesV2InitialInputs, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * FindCompaniesV2Api - functional programming interface\n * @export\n */\nexport const FindCompaniesV2ApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = FindCompaniesV2ApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest} brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1AddSimilarCompaniesToFindCompaniesWorkflowPost(brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest: BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1AddSimilarCompaniesToFindCompaniesWorkflowPost(brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {FindCompaniesV2InitialInputs} findCompaniesV2InitialInputs \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1FindCompaniesInitialInputsToInputsPost(findCompaniesV2InitialInputs: FindCompaniesV2InitialInputs, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1FindCompaniesInitialInputsToInputsPost(findCompaniesV2InitialInputs, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * FindCompaniesV2Api - factory interface\n * @export\n */\nexport const FindCompaniesV2ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = FindCompaniesV2ApiFp(configuration)\n return {\n /**\n * \n * @param {BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest} brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1AddSimilarCompaniesToFindCompaniesWorkflowPost(brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest: BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1AddSimilarCompaniesToFindCompaniesWorkflowPost(brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {FindCompaniesV2InitialInputs} findCompaniesV2InitialInputs \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FindCompaniesInitialInputsToInputsPost(findCompaniesV2InitialInputs: FindCompaniesV2InitialInputs, options?: any): AxiosPromise {\n return localVarFp.brainV1FindCompaniesInitialInputsToInputsPost(findCompaniesV2InitialInputs, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * FindCompaniesV2Api - object-oriented interface\n * @export\n * @class FindCompaniesV2Api\n * @extends {BaseAPI}\n */\nexport class FindCompaniesV2Api extends BaseAPI {\n /**\n * \n * @param {BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest} brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof FindCompaniesV2Api\n */\n public brainV1AddSimilarCompaniesToFindCompaniesWorkflowPost(brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest: BrainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest, options?: AxiosRequestConfig) {\n return FindCompaniesV2ApiFp(this.configuration).brainV1AddSimilarCompaniesToFindCompaniesWorkflowPost(brainV1AddSimilarCompaniesToFindCompaniesWorkflowPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {FindCompaniesV2InitialInputs} findCompaniesV2InitialInputs \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof FindCompaniesV2Api\n */\n public brainV1FindCompaniesInitialInputsToInputsPost(findCompaniesV2InitialInputs: FindCompaniesV2InitialInputs, options?: AxiosRequestConfig) {\n return FindCompaniesV2ApiFp(this.configuration).brainV1FindCompaniesInitialInputsToInputsPost(findCompaniesV2InitialInputs, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * GenericV1Api - axios parameter creator\n * @export\n */\nexport const GenericV1ApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1DeleteGenericWorkflowPost: async (brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'brainV1FetchGenericWorkflowPostRequest' is not null or undefined\n assertParamExists('brainV1DeleteGenericWorkflowPost', 'brainV1FetchGenericWorkflowPostRequest', brainV1FetchGenericWorkflowPostRequest)\n const localVarPath = `/brain/v1/delete_generic_workflow`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1FetchGenericWorkflowPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Generates an Excel file with some sample data and returns it for download.\n * @summary Generate an Excel file\n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1ExportWorkflowToExcelPost: async (genericWorkflow: GenericWorkflow, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'genericWorkflow' is not null or undefined\n assertParamExists('brainV1ExportWorkflowToExcelPost', 'genericWorkflow', genericWorkflow)\n const localVarPath = `/brain/v1/export_workflow_to_excel`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(genericWorkflow, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Generates an Powerpoint file with some sample data and returns it for download.\n * @summary Generate a powerpoint file\n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1ExportWorkflowToPptPost: async (genericWorkflow: GenericWorkflow, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'genericWorkflow' is not null or undefined\n assertParamExists('brainV1ExportWorkflowToPptPost', 'genericWorkflow', genericWorkflow)\n const localVarPath = `/brain/v1/export_workflow_to_ppt`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(genericWorkflow, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FetchAllGenericWorkflowsPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/fetch_all_generic_workflows`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FetchGenericWorkflowPost: async (brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'brainV1FetchGenericWorkflowPostRequest' is not null or undefined\n assertParamExists('brainV1FetchGenericWorkflowPost', 'brainV1FetchGenericWorkflowPostRequest', brainV1FetchGenericWorkflowPostRequest)\n const localVarPath = `/brain/v1/fetch_generic_workflow`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1FetchGenericWorkflowPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FetchLibraryGenericWorkflowStubsPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/fetch_library_generic_workflow_stubs`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FetchLibraryGenericWorkflowsPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/fetch_library_generic_workflows`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FetchWorkflowStubsPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/fetch_workflow_stubs`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1GiveGenericWorkflowFeedbackPostRequest} brainV1GiveGenericWorkflowFeedbackPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GiveGenericWorkflowFeedbackPost: async (brainV1GiveGenericWorkflowFeedbackPostRequest: BrainV1GiveGenericWorkflowFeedbackPostRequest, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'brainV1GiveGenericWorkflowFeedbackPostRequest' is not null or undefined\n assertParamExists('brainV1GiveGenericWorkflowFeedbackPost', 'brainV1GiveGenericWorkflowFeedbackPostRequest', brainV1GiveGenericWorkflowFeedbackPostRequest)\n const localVarPath = `/brain/v1/give_generic_workflow_feedback`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1GiveGenericWorkflowFeedbackPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1MarkWorkflowViewedPost: async (brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'brainV1FetchGenericWorkflowPostRequest' is not null or undefined\n assertParamExists('brainV1MarkWorkflowViewedPost', 'brainV1FetchGenericWorkflowPostRequest', brainV1FetchGenericWorkflowPostRequest)\n const localVarPath = `/brain/v1/mark_workflow_viewed`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1FetchGenericWorkflowPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1RefineGenericWorkflowPost: async (genericWorkflow: GenericWorkflow, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'genericWorkflow' is not null or undefined\n assertParamExists('brainV1RefineGenericWorkflowPost', 'genericWorkflow', genericWorkflow)\n const localVarPath = `/brain/v1/refine_generic_workflow`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(genericWorkflow, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1RunGenericWorkflowPost: async (genericWorkflow: GenericWorkflow, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'genericWorkflow' is not null or undefined\n assertParamExists('brainV1RunGenericWorkflowPost', 'genericWorkflow', genericWorkflow)\n const localVarPath = `/brain/v1/run_generic_workflow`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(genericWorkflow, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UpdateGenericWorkflowPost: async (genericWorkflow: GenericWorkflow, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'genericWorkflow' is not null or undefined\n assertParamExists('brainV1UpdateGenericWorkflowPost', 'genericWorkflow', genericWorkflow)\n const localVarPath = `/brain/v1/update_generic_workflow`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(genericWorkflow, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * GenericV1Api - functional programming interface\n * @export\n */\nexport const GenericV1ApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = GenericV1ApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1DeleteGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1DeleteGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Generates an Excel file with some sample data and returns it for download.\n * @summary Generate an Excel file\n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1ExportWorkflowToExcelPost(genericWorkflow: GenericWorkflow, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1ExportWorkflowToExcelPost(genericWorkflow, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Generates an Powerpoint file with some sample data and returns it for download.\n * @summary Generate a powerpoint file\n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1ExportWorkflowToPptPost(genericWorkflow: GenericWorkflow, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1ExportWorkflowToPptPost(genericWorkflow, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1FetchAllGenericWorkflowsPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1FetchAllGenericWorkflowsPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1FetchGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1FetchGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1FetchLibraryGenericWorkflowStubsPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1FetchLibraryGenericWorkflowStubsPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1FetchLibraryGenericWorkflowsPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1FetchLibraryGenericWorkflowsPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1FetchWorkflowStubsPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1FetchWorkflowStubsPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1GiveGenericWorkflowFeedbackPostRequest} brainV1GiveGenericWorkflowFeedbackPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GiveGenericWorkflowFeedbackPost(brainV1GiveGenericWorkflowFeedbackPostRequest: BrainV1GiveGenericWorkflowFeedbackPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GiveGenericWorkflowFeedbackPost(brainV1GiveGenericWorkflowFeedbackPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1MarkWorkflowViewedPost(brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1MarkWorkflowViewedPost(brainV1FetchGenericWorkflowPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1RefineGenericWorkflowPost(genericWorkflow: GenericWorkflow, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1RefineGenericWorkflowPost(genericWorkflow, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1RunGenericWorkflowPost(genericWorkflow: GenericWorkflow, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1RunGenericWorkflowPost(genericWorkflow, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1UpdateGenericWorkflowPost(genericWorkflow: GenericWorkflow, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1UpdateGenericWorkflowPost(genericWorkflow, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * GenericV1Api - factory interface\n * @export\n */\nexport const GenericV1ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = GenericV1ApiFp(configuration)\n return {\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1DeleteGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1DeleteGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * Generates an Excel file with some sample data and returns it for download.\n * @summary Generate an Excel file\n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1ExportWorkflowToExcelPost(genericWorkflow: GenericWorkflow, options?: any): AxiosPromise {\n return localVarFp.brainV1ExportWorkflowToExcelPost(genericWorkflow, options).then((request) => request(axios, basePath));\n },\n /**\n * Generates an Powerpoint file with some sample data and returns it for download.\n * @summary Generate a powerpoint file\n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1ExportWorkflowToPptPost(genericWorkflow: GenericWorkflow, options?: any): AxiosPromise {\n return localVarFp.brainV1ExportWorkflowToPptPost(genericWorkflow, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FetchAllGenericWorkflowsPost(options?: any): AxiosPromise> {\n return localVarFp.brainV1FetchAllGenericWorkflowsPost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FetchGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1FetchGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FetchLibraryGenericWorkflowStubsPost(options?: any): AxiosPromise> {\n return localVarFp.brainV1FetchLibraryGenericWorkflowStubsPost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FetchLibraryGenericWorkflowsPost(options?: any): AxiosPromise> {\n return localVarFp.brainV1FetchLibraryGenericWorkflowsPost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1FetchWorkflowStubsPost(options?: any): AxiosPromise> {\n return localVarFp.brainV1FetchWorkflowStubsPost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1GiveGenericWorkflowFeedbackPostRequest} brainV1GiveGenericWorkflowFeedbackPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GiveGenericWorkflowFeedbackPost(brainV1GiveGenericWorkflowFeedbackPostRequest: BrainV1GiveGenericWorkflowFeedbackPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1GiveGenericWorkflowFeedbackPost(brainV1GiveGenericWorkflowFeedbackPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1MarkWorkflowViewedPost(brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1MarkWorkflowViewedPost(brainV1FetchGenericWorkflowPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1RefineGenericWorkflowPost(genericWorkflow: GenericWorkflow, options?: any): AxiosPromise {\n return localVarFp.brainV1RefineGenericWorkflowPost(genericWorkflow, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1RunGenericWorkflowPost(genericWorkflow: GenericWorkflow, options?: any): AxiosPromise {\n return localVarFp.brainV1RunGenericWorkflowPost(genericWorkflow, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UpdateGenericWorkflowPost(genericWorkflow: GenericWorkflow, options?: any): AxiosPromise {\n return localVarFp.brainV1UpdateGenericWorkflowPost(genericWorkflow, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * GenericV1Api - object-oriented interface\n * @export\n * @class GenericV1Api\n * @extends {BaseAPI}\n */\nexport class GenericV1Api extends BaseAPI {\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1DeleteGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1DeleteGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Generates an Excel file with some sample data and returns it for download.\n * @summary Generate an Excel file\n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1ExportWorkflowToExcelPost(genericWorkflow: GenericWorkflow, options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1ExportWorkflowToExcelPost(genericWorkflow, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Generates an Powerpoint file with some sample data and returns it for download.\n * @summary Generate a powerpoint file\n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1ExportWorkflowToPptPost(genericWorkflow: GenericWorkflow, options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1ExportWorkflowToPptPost(genericWorkflow, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1FetchAllGenericWorkflowsPost(options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1FetchAllGenericWorkflowsPost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1FetchGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1FetchGenericWorkflowPost(brainV1FetchGenericWorkflowPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1FetchLibraryGenericWorkflowStubsPost(options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1FetchLibraryGenericWorkflowStubsPost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1FetchLibraryGenericWorkflowsPost(options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1FetchLibraryGenericWorkflowsPost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1FetchWorkflowStubsPost(options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1FetchWorkflowStubsPost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1GiveGenericWorkflowFeedbackPostRequest} brainV1GiveGenericWorkflowFeedbackPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1GiveGenericWorkflowFeedbackPost(brainV1GiveGenericWorkflowFeedbackPostRequest: BrainV1GiveGenericWorkflowFeedbackPostRequest, options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1GiveGenericWorkflowFeedbackPost(brainV1GiveGenericWorkflowFeedbackPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1FetchGenericWorkflowPostRequest} brainV1FetchGenericWorkflowPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1MarkWorkflowViewedPost(brainV1FetchGenericWorkflowPostRequest: BrainV1FetchGenericWorkflowPostRequest, options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1MarkWorkflowViewedPost(brainV1FetchGenericWorkflowPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1RefineGenericWorkflowPost(genericWorkflow: GenericWorkflow, options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1RefineGenericWorkflowPost(genericWorkflow, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1RunGenericWorkflowPost(genericWorkflow: GenericWorkflow, options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1RunGenericWorkflowPost(genericWorkflow, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {GenericWorkflow} genericWorkflow \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof GenericV1Api\n */\n public brainV1UpdateGenericWorkflowPost(genericWorkflow: GenericWorkflow, options?: AxiosRequestConfig) {\n return GenericV1ApiFp(this.configuration).brainV1UpdateGenericWorkflowPost(genericWorkflow, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * IngestedCompaniesApi - axios parameter creator\n * @export\n */\nexport const IngestedCompaniesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetIngestedCompaniesPost: async (body?: object, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_ingested_companies`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1GetCompanyProfilePostRequest} [brainV1GetCompanyProfilePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1IngestCompanyPost: async (brainV1GetCompanyProfilePostRequest?: BrainV1GetCompanyProfilePostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/ingest_company`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1GetCompanyProfilePostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * IngestedCompaniesApi - functional programming interface\n * @export\n */\nexport const IngestedCompaniesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = IngestedCompaniesApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetIngestedCompaniesPost(body?: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetIngestedCompaniesPost(body, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1GetCompanyProfilePostRequest} [brainV1GetCompanyProfilePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1IngestCompanyPost(brainV1GetCompanyProfilePostRequest?: BrainV1GetCompanyProfilePostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1IngestCompanyPost(brainV1GetCompanyProfilePostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * IngestedCompaniesApi - factory interface\n * @export\n */\nexport const IngestedCompaniesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = IngestedCompaniesApiFp(configuration)\n return {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetIngestedCompaniesPost(body?: object, options?: any): AxiosPromise {\n return localVarFp.brainV1GetIngestedCompaniesPost(body, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1GetCompanyProfilePostRequest} [brainV1GetCompanyProfilePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1IngestCompanyPost(brainV1GetCompanyProfilePostRequest?: BrainV1GetCompanyProfilePostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1IngestCompanyPost(brainV1GetCompanyProfilePostRequest, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * IngestedCompaniesApi - object-oriented interface\n * @export\n * @class IngestedCompaniesApi\n * @extends {BaseAPI}\n */\nexport class IngestedCompaniesApi extends BaseAPI {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof IngestedCompaniesApi\n */\n public brainV1GetIngestedCompaniesPost(body?: object, options?: AxiosRequestConfig) {\n return IngestedCompaniesApiFp(this.configuration).brainV1GetIngestedCompaniesPost(body, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1GetCompanyProfilePostRequest} [brainV1GetCompanyProfilePostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof IngestedCompaniesApi\n */\n public brainV1IngestCompanyPost(brainV1GetCompanyProfilePostRequest?: BrainV1GetCompanyProfilePostRequest, options?: AxiosRequestConfig) {\n return IngestedCompaniesApiFp(this.configuration).brainV1IngestCompanyPost(brainV1GetCompanyProfilePostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * PeopleListsApi - axios parameter creator\n * @export\n */\nexport const PeopleListsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {BrainV1DeletePeopleListPostRequest} brainV1DeletePeopleListPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1DeletePeopleListPost: async (brainV1DeletePeopleListPostRequest: BrainV1DeletePeopleListPostRequest, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'brainV1DeletePeopleListPostRequest' is not null or undefined\n assertParamExists('brainV1DeletePeopleListPost', 'brainV1DeletePeopleListPostRequest', brainV1DeletePeopleListPostRequest)\n const localVarPath = `/brain/v1/delete_people_list`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1DeletePeopleListPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Generates an Excel file with some sample data and returns it for download.\n * @summary Generate an Excel file\n * @param {PeopleList} peopleList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1ExportPeopleListToExcelPost: async (peopleList: PeopleList, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'peopleList' is not null or undefined\n assertParamExists('brainV1ExportPeopleListToExcelPost', 'peopleList', peopleList)\n const localVarPath = `/brain/v1/export_people_list_to_excel`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(peopleList, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1GetCompanyContactsPostRequest} [brainV1GetCompanyContactsPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetCompanyContactsPost: async (brainV1GetCompanyContactsPostRequest?: BrainV1GetCompanyContactsPostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_company_contacts`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1GetCompanyContactsPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetPeopleListsPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_people_lists`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {PeopleList} peopleList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UpdatePeopleListPost: async (peopleList: PeopleList, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'peopleList' is not null or undefined\n assertParamExists('brainV1UpdatePeopleListPost', 'peopleList', peopleList)\n const localVarPath = `/brain/v1/update_people_list`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(peopleList, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * PeopleListsApi - functional programming interface\n * @export\n */\nexport const PeopleListsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = PeopleListsApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {BrainV1DeletePeopleListPostRequest} brainV1DeletePeopleListPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1DeletePeopleListPost(brainV1DeletePeopleListPostRequest: BrainV1DeletePeopleListPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1DeletePeopleListPost(brainV1DeletePeopleListPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Generates an Excel file with some sample data and returns it for download.\n * @summary Generate an Excel file\n * @param {PeopleList} peopleList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1ExportPeopleListToExcelPost(peopleList: PeopleList, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1ExportPeopleListToExcelPost(peopleList, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1GetCompanyContactsPostRequest} [brainV1GetCompanyContactsPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetCompanyContactsPost(brainV1GetCompanyContactsPostRequest?: BrainV1GetCompanyContactsPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetCompanyContactsPost(brainV1GetCompanyContactsPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetPeopleListsPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetPeopleListsPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {PeopleList} peopleList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1UpdatePeopleListPost(peopleList: PeopleList, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1UpdatePeopleListPost(peopleList, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * PeopleListsApi - factory interface\n * @export\n */\nexport const PeopleListsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = PeopleListsApiFp(configuration)\n return {\n /**\n * \n * @param {BrainV1DeletePeopleListPostRequest} brainV1DeletePeopleListPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1DeletePeopleListPost(brainV1DeletePeopleListPostRequest: BrainV1DeletePeopleListPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1DeletePeopleListPost(brainV1DeletePeopleListPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * Generates an Excel file with some sample data and returns it for download.\n * @summary Generate an Excel file\n * @param {PeopleList} peopleList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1ExportPeopleListToExcelPost(peopleList: PeopleList, options?: any): AxiosPromise {\n return localVarFp.brainV1ExportPeopleListToExcelPost(peopleList, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1GetCompanyContactsPostRequest} [brainV1GetCompanyContactsPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetCompanyContactsPost(brainV1GetCompanyContactsPostRequest?: BrainV1GetCompanyContactsPostRequest, options?: any): AxiosPromise> {\n return localVarFp.brainV1GetCompanyContactsPost(brainV1GetCompanyContactsPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetPeopleListsPost(options?: any): AxiosPromise> {\n return localVarFp.brainV1GetPeopleListsPost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {PeopleList} peopleList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UpdatePeopleListPost(peopleList: PeopleList, options?: any): AxiosPromise {\n return localVarFp.brainV1UpdatePeopleListPost(peopleList, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * PeopleListsApi - object-oriented interface\n * @export\n * @class PeopleListsApi\n * @extends {BaseAPI}\n */\nexport class PeopleListsApi extends BaseAPI {\n /**\n * \n * @param {BrainV1DeletePeopleListPostRequest} brainV1DeletePeopleListPostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PeopleListsApi\n */\n public brainV1DeletePeopleListPost(brainV1DeletePeopleListPostRequest: BrainV1DeletePeopleListPostRequest, options?: AxiosRequestConfig) {\n return PeopleListsApiFp(this.configuration).brainV1DeletePeopleListPost(brainV1DeletePeopleListPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Generates an Excel file with some sample data and returns it for download.\n * @summary Generate an Excel file\n * @param {PeopleList} peopleList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PeopleListsApi\n */\n public brainV1ExportPeopleListToExcelPost(peopleList: PeopleList, options?: AxiosRequestConfig) {\n return PeopleListsApiFp(this.configuration).brainV1ExportPeopleListToExcelPost(peopleList, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1GetCompanyContactsPostRequest} [brainV1GetCompanyContactsPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PeopleListsApi\n */\n public brainV1GetCompanyContactsPost(brainV1GetCompanyContactsPostRequest?: BrainV1GetCompanyContactsPostRequest, options?: AxiosRequestConfig) {\n return PeopleListsApiFp(this.configuration).brainV1GetCompanyContactsPost(brainV1GetCompanyContactsPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PeopleListsApi\n */\n public brainV1GetPeopleListsPost(options?: AxiosRequestConfig) {\n return PeopleListsApiFp(this.configuration).brainV1GetPeopleListsPost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {PeopleList} peopleList \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PeopleListsApi\n */\n public brainV1UpdatePeopleListPost(peopleList: PeopleList, options?: AxiosRequestConfig) {\n return PeopleListsApiFp(this.configuration).brainV1UpdatePeopleListPost(peopleList, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * RubricApi - axios parameter creator\n * @export\n */\nexport const RubricApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetRubricPost: async (body?: object, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_rubric`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {Rubric} [rubric] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UpdateRubricPost: async (rubric?: Rubric, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/update_rubric`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(rubric, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * RubricApi - functional programming interface\n * @export\n */\nexport const RubricApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = RubricApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetRubricPost(body?: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetRubricPost(body, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {Rubric} [rubric] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1UpdateRubricPost(rubric?: Rubric, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1UpdateRubricPost(rubric, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * RubricApi - factory interface\n * @export\n */\nexport const RubricApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = RubricApiFp(configuration)\n return {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetRubricPost(body?: object, options?: any): AxiosPromise {\n return localVarFp.brainV1GetRubricPost(body, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {Rubric} [rubric] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UpdateRubricPost(rubric?: Rubric, options?: any): AxiosPromise {\n return localVarFp.brainV1UpdateRubricPost(rubric, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * RubricApi - object-oriented interface\n * @export\n * @class RubricApi\n * @extends {BaseAPI}\n */\nexport class RubricApi extends BaseAPI {\n /**\n * \n * @param {object} [body] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof RubricApi\n */\n public brainV1GetRubricPost(body?: object, options?: AxiosRequestConfig) {\n return RubricApiFp(this.configuration).brainV1GetRubricPost(body, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {Rubric} [rubric] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof RubricApi\n */\n public brainV1UpdateRubricPost(rubric?: Rubric, options?: AxiosRequestConfig) {\n return RubricApiFp(this.configuration).brainV1UpdateRubricPost(rubric, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * ScoringApi - axios parameter creator\n * @export\n */\nexport const ScoringApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {BrainV1GetScoredCompaniesPostRequest} [brainV1GetScoredCompaniesPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetScoredCompaniesPost: async (brainV1GetScoredCompaniesPostRequest?: BrainV1GetScoredCompaniesPostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_scored_companies`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1GetScoredCompaniesPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ScoringApi - functional programming interface\n * @export\n */\nexport const ScoringApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ScoringApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {BrainV1GetScoredCompaniesPostRequest} [brainV1GetScoredCompaniesPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetScoredCompaniesPost(brainV1GetScoredCompaniesPostRequest?: BrainV1GetScoredCompaniesPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetScoredCompaniesPost(brainV1GetScoredCompaniesPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * ScoringApi - factory interface\n * @export\n */\nexport const ScoringApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ScoringApiFp(configuration)\n return {\n /**\n * \n * @param {BrainV1GetScoredCompaniesPostRequest} [brainV1GetScoredCompaniesPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetScoredCompaniesPost(brainV1GetScoredCompaniesPostRequest?: BrainV1GetScoredCompaniesPostRequest, options?: any): AxiosPromise> {\n return localVarFp.brainV1GetScoredCompaniesPost(brainV1GetScoredCompaniesPostRequest, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * ScoringApi - object-oriented interface\n * @export\n * @class ScoringApi\n * @extends {BaseAPI}\n */\nexport class ScoringApi extends BaseAPI {\n /**\n * \n * @param {BrainV1GetScoredCompaniesPostRequest} [brainV1GetScoredCompaniesPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof ScoringApi\n */\n public brainV1GetScoredCompaniesPost(brainV1GetScoredCompaniesPostRequest?: BrainV1GetScoredCompaniesPostRequest, options?: AxiosRequestConfig) {\n return ScoringApiFp(this.configuration).brainV1GetScoredCompaniesPost(brainV1GetScoredCompaniesPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * SourceCompaniesApi - axios parameter creator\n * @export\n */\nexport const SourceCompaniesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {SourceCompaniesInputs} sourceCompaniesInputs \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1SourceCompaniesInitialInputsToInputsPost: async (sourceCompaniesInputs: SourceCompaniesInputs, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'sourceCompaniesInputs' is not null or undefined\n assertParamExists('brainV1SourceCompaniesInitialInputsToInputsPost', 'sourceCompaniesInputs', sourceCompaniesInputs)\n const localVarPath = `/brain/v1/source_companies_initial_inputs_to_inputs`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(sourceCompaniesInputs, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * SourceCompaniesApi - functional programming interface\n * @export\n */\nexport const SourceCompaniesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = SourceCompaniesApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {SourceCompaniesInputs} sourceCompaniesInputs \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1SourceCompaniesInitialInputsToInputsPost(sourceCompaniesInputs: SourceCompaniesInputs, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1SourceCompaniesInitialInputsToInputsPost(sourceCompaniesInputs, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * SourceCompaniesApi - factory interface\n * @export\n */\nexport const SourceCompaniesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = SourceCompaniesApiFp(configuration)\n return {\n /**\n * \n * @param {SourceCompaniesInputs} sourceCompaniesInputs \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1SourceCompaniesInitialInputsToInputsPost(sourceCompaniesInputs: SourceCompaniesInputs, options?: any): AxiosPromise {\n return localVarFp.brainV1SourceCompaniesInitialInputsToInputsPost(sourceCompaniesInputs, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * SourceCompaniesApi - object-oriented interface\n * @export\n * @class SourceCompaniesApi\n * @extends {BaseAPI}\n */\nexport class SourceCompaniesApi extends BaseAPI {\n /**\n * \n * @param {SourceCompaniesInputs} sourceCompaniesInputs \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof SourceCompaniesApi\n */\n public brainV1SourceCompaniesInitialInputsToInputsPost(sourceCompaniesInputs: SourceCompaniesInputs, options?: AxiosRequestConfig) {\n return SourceCompaniesApiFp(this.configuration).brainV1SourceCompaniesInitialInputsToInputsPost(sourceCompaniesInputs, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * TaxonomyApi - axios parameter creator\n * @export\n */\nexport const TaxonomyApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {BrainV1GetTaxonomyPostRequest} [brainV1GetTaxonomyPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetScoredTaxonomyPost: async (brainV1GetTaxonomyPostRequest?: BrainV1GetTaxonomyPostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_scored_taxonomy`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1GetTaxonomyPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1GetTaxonomyPostRequest} [brainV1GetTaxonomyPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetTaxonomyPost: async (brainV1GetTaxonomyPostRequest?: BrainV1GetTaxonomyPostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_taxonomy`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1GetTaxonomyPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * TaxonomyApi - functional programming interface\n * @export\n */\nexport const TaxonomyApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = TaxonomyApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {BrainV1GetTaxonomyPostRequest} [brainV1GetTaxonomyPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetScoredTaxonomyPost(brainV1GetTaxonomyPostRequest?: BrainV1GetTaxonomyPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetScoredTaxonomyPost(brainV1GetTaxonomyPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1GetTaxonomyPostRequest} [brainV1GetTaxonomyPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetTaxonomyPost(brainV1GetTaxonomyPostRequest?: BrainV1GetTaxonomyPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetTaxonomyPost(brainV1GetTaxonomyPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * TaxonomyApi - factory interface\n * @export\n */\nexport const TaxonomyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = TaxonomyApiFp(configuration)\n return {\n /**\n * \n * @param {BrainV1GetTaxonomyPostRequest} [brainV1GetTaxonomyPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetScoredTaxonomyPost(brainV1GetTaxonomyPostRequest?: BrainV1GetTaxonomyPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1GetScoredTaxonomyPost(brainV1GetTaxonomyPostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1GetTaxonomyPostRequest} [brainV1GetTaxonomyPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetTaxonomyPost(brainV1GetTaxonomyPostRequest?: BrainV1GetTaxonomyPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1GetTaxonomyPost(brainV1GetTaxonomyPostRequest, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * TaxonomyApi - object-oriented interface\n * @export\n * @class TaxonomyApi\n * @extends {BaseAPI}\n */\nexport class TaxonomyApi extends BaseAPI {\n /**\n * \n * @param {BrainV1GetTaxonomyPostRequest} [brainV1GetTaxonomyPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof TaxonomyApi\n */\n public brainV1GetScoredTaxonomyPost(brainV1GetTaxonomyPostRequest?: BrainV1GetTaxonomyPostRequest, options?: AxiosRequestConfig) {\n return TaxonomyApiFp(this.configuration).brainV1GetScoredTaxonomyPost(brainV1GetTaxonomyPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1GetTaxonomyPostRequest} [brainV1GetTaxonomyPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof TaxonomyApi\n */\n public brainV1GetTaxonomyPost(brainV1GetTaxonomyPostRequest?: BrainV1GetTaxonomyPostRequest, options?: AxiosRequestConfig) {\n return TaxonomyApiFp(this.configuration).brainV1GetTaxonomyPost(brainV1GetTaxonomyPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * UpvotesApi - axios parameter creator\n * @export\n */\nexport const UpvotesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetAllComingSoonUpvoteCountsPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_all_coming_soon_upvote_counts`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetUserComingSoonUpvotesPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_user_coming_soon_upvotes`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1SetUserComingSoonUpvotePostRequest} brainV1SetUserComingSoonUpvotePostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1SetUserComingSoonUpvotePost: async (brainV1SetUserComingSoonUpvotePostRequest: BrainV1SetUserComingSoonUpvotePostRequest, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'brainV1SetUserComingSoonUpvotePostRequest' is not null or undefined\n assertParamExists('brainV1SetUserComingSoonUpvotePost', 'brainV1SetUserComingSoonUpvotePostRequest', brainV1SetUserComingSoonUpvotePostRequest)\n const localVarPath = `/brain/v1/set_user_coming_soon_upvote`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1SetUserComingSoonUpvotePostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * UpvotesApi - functional programming interface\n * @export\n */\nexport const UpvotesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = UpvotesApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetAllComingSoonUpvoteCountsPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: number; }>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetAllComingSoonUpvoteCountsPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetUserComingSoonUpvotesPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: boolean; }>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetUserComingSoonUpvotesPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1SetUserComingSoonUpvotePostRequest} brainV1SetUserComingSoonUpvotePostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1SetUserComingSoonUpvotePost(brainV1SetUserComingSoonUpvotePostRequest: BrainV1SetUserComingSoonUpvotePostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1SetUserComingSoonUpvotePost(brainV1SetUserComingSoonUpvotePostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * UpvotesApi - factory interface\n * @export\n */\nexport const UpvotesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = UpvotesApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetAllComingSoonUpvoteCountsPost(options?: any): AxiosPromise<{ [key: string]: number; }> {\n return localVarFp.brainV1GetAllComingSoonUpvoteCountsPost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetUserComingSoonUpvotesPost(options?: any): AxiosPromise<{ [key: string]: boolean; }> {\n return localVarFp.brainV1GetUserComingSoonUpvotesPost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1SetUserComingSoonUpvotePostRequest} brainV1SetUserComingSoonUpvotePostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1SetUserComingSoonUpvotePost(brainV1SetUserComingSoonUpvotePostRequest: BrainV1SetUserComingSoonUpvotePostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1SetUserComingSoonUpvotePost(brainV1SetUserComingSoonUpvotePostRequest, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * UpvotesApi - object-oriented interface\n * @export\n * @class UpvotesApi\n * @extends {BaseAPI}\n */\nexport class UpvotesApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof UpvotesApi\n */\n public brainV1GetAllComingSoonUpvoteCountsPost(options?: AxiosRequestConfig) {\n return UpvotesApiFp(this.configuration).brainV1GetAllComingSoonUpvoteCountsPost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof UpvotesApi\n */\n public brainV1GetUserComingSoonUpvotesPost(options?: AxiosRequestConfig) {\n return UpvotesApiFp(this.configuration).brainV1GetUserComingSoonUpvotesPost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1SetUserComingSoonUpvotePostRequest} brainV1SetUserComingSoonUpvotePostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof UpvotesApi\n */\n public brainV1SetUserComingSoonUpvotePost(brainV1SetUserComingSoonUpvotePostRequest: BrainV1SetUserComingSoonUpvotePostRequest, options?: AxiosRequestConfig) {\n return UpvotesApiFp(this.configuration).brainV1SetUserComingSoonUpvotePost(brainV1SetUserComingSoonUpvotePostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * UsageApi - axios parameter creator\n * @export\n */\nexport const UsageApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UserContactCreditsAvailablePost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/user_contact_credits_available`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UserRunsAvailablePost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/user_runs_available`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * UsageApi - functional programming interface\n * @export\n */\nexport const UsageApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = UsageApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1UserContactCreditsAvailablePost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1UserContactCreditsAvailablePost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1UserRunsAvailablePost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1UserRunsAvailablePost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * UsageApi - factory interface\n * @export\n */\nexport const UsageApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = UsageApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UserContactCreditsAvailablePost(options?: any): AxiosPromise {\n return localVarFp.brainV1UserContactCreditsAvailablePost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UserRunsAvailablePost(options?: any): AxiosPromise {\n return localVarFp.brainV1UserRunsAvailablePost(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * UsageApi - object-oriented interface\n * @export\n * @class UsageApi\n * @extends {BaseAPI}\n */\nexport class UsageApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof UsageApi\n */\n public brainV1UserContactCreditsAvailablePost(options?: AxiosRequestConfig) {\n return UsageApiFp(this.configuration).brainV1UserContactCreditsAvailablePost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof UsageApi\n */\n public brainV1UserRunsAvailablePost(options?: AxiosRequestConfig) {\n return UsageApiFp(this.configuration).brainV1UserRunsAvailablePost(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n/**\n * UserApi - axios parameter creator\n * @export\n */\nexport const UserApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetLastViewedCompanyIdsPost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_last_viewed_company_ids`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetUserDefaultScopePost: async (options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/get_user_default_scope`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1SetUserDefaultScopePostRequest} brainV1SetUserDefaultScopePostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1SetUserDefaultScopePost: async (brainV1SetUserDefaultScopePostRequest: BrainV1SetUserDefaultScopePostRequest, options: AxiosRequestConfig = {}): Promise => {\n // verify required parameter 'brainV1SetUserDefaultScopePostRequest' is not null or undefined\n assertParamExists('brainV1SetUserDefaultScopePost', 'brainV1SetUserDefaultScopePostRequest', brainV1SetUserDefaultScopePostRequest)\n const localVarPath = `/brain/v1/set_user_default_scope`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1SetUserDefaultScopePostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {BrainV1UpdateLastViewedCompanyIdsPostRequest} [brainV1UpdateLastViewedCompanyIdsPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UpdateLastViewedCompanyIdsPost: async (brainV1UpdateLastViewedCompanyIdsPostRequest?: BrainV1UpdateLastViewedCompanyIdsPostRequest, options: AxiosRequestConfig = {}): Promise => {\n const localVarPath = `/brain/v1/update_last_viewed_company_ids`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(brainV1UpdateLastViewedCompanyIdsPostRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * UserApi - functional programming interface\n * @export\n */\nexport const UserApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetLastViewedCompanyIdsPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetLastViewedCompanyIdsPost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1GetUserDefaultScopePost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1GetUserDefaultScopePost(options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1SetUserDefaultScopePostRequest} brainV1SetUserDefaultScopePostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1SetUserDefaultScopePost(brainV1SetUserDefaultScopePostRequest: BrainV1SetUserDefaultScopePostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1SetUserDefaultScopePost(brainV1SetUserDefaultScopePostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * \n * @param {BrainV1UpdateLastViewedCompanyIdsPostRequest} [brainV1UpdateLastViewedCompanyIdsPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async brainV1UpdateLastViewedCompanyIdsPost(brainV1UpdateLastViewedCompanyIdsPostRequest?: BrainV1UpdateLastViewedCompanyIdsPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.brainV1UpdateLastViewedCompanyIdsPost(brainV1UpdateLastViewedCompanyIdsPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * UserApi - factory interface\n * @export\n */\nexport const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = UserApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetLastViewedCompanyIdsPost(options?: any): AxiosPromise> {\n return localVarFp.brainV1GetLastViewedCompanyIdsPost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1GetUserDefaultScopePost(options?: any): AxiosPromise {\n return localVarFp.brainV1GetUserDefaultScopePost(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1SetUserDefaultScopePostRequest} brainV1SetUserDefaultScopePostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1SetUserDefaultScopePost(brainV1SetUserDefaultScopePostRequest: BrainV1SetUserDefaultScopePostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1SetUserDefaultScopePost(brainV1SetUserDefaultScopePostRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {BrainV1UpdateLastViewedCompanyIdsPostRequest} [brainV1UpdateLastViewedCompanyIdsPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n brainV1UpdateLastViewedCompanyIdsPost(brainV1UpdateLastViewedCompanyIdsPostRequest?: BrainV1UpdateLastViewedCompanyIdsPostRequest, options?: any): AxiosPromise {\n return localVarFp.brainV1UpdateLastViewedCompanyIdsPost(brainV1UpdateLastViewedCompanyIdsPostRequest, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * UserApi - object-oriented interface\n * @export\n * @class UserApi\n * @extends {BaseAPI}\n */\nexport class UserApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof UserApi\n */\n public brainV1GetLastViewedCompanyIdsPost(options?: AxiosRequestConfig) {\n return UserApiFp(this.configuration).brainV1GetLastViewedCompanyIdsPost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof UserApi\n */\n public brainV1GetUserDefaultScopePost(options?: AxiosRequestConfig) {\n return UserApiFp(this.configuration).brainV1GetUserDefaultScopePost(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1SetUserDefaultScopePostRequest} brainV1SetUserDefaultScopePostRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof UserApi\n */\n public brainV1SetUserDefaultScopePost(brainV1SetUserDefaultScopePostRequest: BrainV1SetUserDefaultScopePostRequest, options?: AxiosRequestConfig) {\n return UserApiFp(this.configuration).brainV1SetUserDefaultScopePost(brainV1SetUserDefaultScopePostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {BrainV1UpdateLastViewedCompanyIdsPostRequest} [brainV1UpdateLastViewedCompanyIdsPostRequest] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof UserApi\n */\n public brainV1UpdateLastViewedCompanyIdsPost(brainV1UpdateLastViewedCompanyIdsPostRequest?: BrainV1UpdateLastViewedCompanyIdsPostRequest, options?: AxiosRequestConfig) {\n return UserApiFp(this.configuration).brainV1UpdateLastViewedCompanyIdsPost(brainV1UpdateLastViewedCompanyIdsPostRequest, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Meticulate Web Server - OpenAPI 3.0\n * Something something description\n *\n * The version of the OpenAPI document: 0.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);\n username?: string;\n password?: string;\n accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);\n basePath?: string;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n * @memberof Configuration\n */\n apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n username?: string;\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n * @memberof Configuration\n */\n accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);\n /**\n * override base path\n *\n * @type {string}\n * @memberof Configuration\n */\n basePath?: string;\n /**\n * base options for axios calls\n *\n * @type {any}\n * @memberof Configuration\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.basePath = param.basePath;\n this.baseOptions = param.baseOptions;\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n }\n}\n","// Note: Feature flags and other configuration\nconst websocketPath = import.meta.env.VITE_BRAIN_WEBSOCKET_PATH;\nexport const websocketBaseUrl = websocketPath + \"/ws/brain\";\n\nexport const brainServerPath = import.meta.env.VITE_BRAIN_SERVER_PATH;\n\nexport const enableDevWorkflows = import.meta.env.VITE_ENABLE_DEV_WORKFLOWS === \"true\";\n\nexport const signInRequired = import.meta.env.VITE_SIGN_IN_REQUIRED === \"true\";\n","import {\n Configuration,\n WorkflowFeedback,\n GenericV1ApiFactory,\n GenericWorkflow,\n FindCompaniesV2InitialInputs,\n FindCompaniesV2ApiFactory,\n SourceCompaniesInputs,\n SourceCompaniesApiFactory,\n CompanyApiFactory,\n UserApiFactory,\n ImportableSearchScope,\n CompanyListsApiFactory,\n CompanyList,\n DemoApiFactory\n} from \"./autogen\";\n\nimport { brainServerPath } from \"@/utils/config\";\n\nexport const config: Configuration = new Configuration({\n basePath: brainServerPath,\n baseOptions: {\n headers: {\n \"Content-Type\": \"application/json\"\n }\n }\n});\n\nexport function runGenericWorkflow(token: string, workflow: GenericWorkflow) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = GenericV1ApiFactory(config);\n return brainApi.brainV1RunGenericWorkflowPost(workflow);\n}\n\nexport function refineGenericWorkflow(token: string, workflow: GenericWorkflow) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = GenericV1ApiFactory(config);\n return brainApi.brainV1RefineGenericWorkflowPost(workflow);\n}\n\nexport function fetchAllWorkflowStubs(token: string) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = GenericV1ApiFactory(config);\n return brainApi.brainV1FetchWorkflowStubsPost();\n}\n\nexport function fetchAllGenericWorkflows(token: string) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = GenericV1ApiFactory(config);\n return brainApi.brainV1FetchAllGenericWorkflowsPost();\n}\n\nexport function deleteGenericWorkflow(token: string, workflow_id: string) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = GenericV1ApiFactory(config);\n return brainApi.brainV1DeleteGenericWorkflowPost({ workflow_id });\n}\n\nexport function fetchGenericWorkflow(workflow_id: string) {\n const brainApi = GenericV1ApiFactory(config);\n return brainApi.brainV1FetchGenericWorkflowPost({ workflow_id });\n}\n\nexport function giveGenericWorkflowFeedback(token: string, workflow_id: string, feedback: WorkflowFeedback) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = GenericV1ApiFactory(config);\n return brainApi.brainV1GiveGenericWorkflowFeedbackPost({ workflow_id, feedback });\n}\n\nexport function fetchLibraryGenericWorkflows() {\n const brainApi = GenericV1ApiFactory(config);\n return brainApi.brainV1FetchLibraryGenericWorkflowsPost();\n}\n\nexport function fetchLibraryGenericWorkflowStubs() {\n const brainApi = GenericV1ApiFactory(config);\n return brainApi.brainV1FetchLibraryGenericWorkflowStubsPost();\n}\n\nexport function exportWorkflowToExcel(token: string, workflow: GenericWorkflow) {\n const newConfig = new Configuration(config);\n newConfig.baseOptions = { ...newConfig.baseOptions, responseType: \"blob\" };\n newConfig.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = GenericV1ApiFactory(newConfig);\n return brainApi.brainV1ExportWorkflowToExcelPost(workflow);\n}\n\nexport function exportWorkflowToPpt(token: string, workflow: GenericWorkflow) {\n const newConfig = new Configuration(config);\n newConfig.baseOptions = { ...newConfig.baseOptions, responseType: \"blob\" };\n newConfig.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = GenericV1ApiFactory(newConfig);\n return brainApi.brainV1ExportWorkflowToPptPost(workflow);\n}\n\nexport function updateGenericWorkflow(token: string, workflow: GenericWorkflow) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = GenericV1ApiFactory(config);\n return brainApi.brainV1UpdateGenericWorkflowPost(workflow);\n}\n\nexport function markWorkflowViewed(token: string, workflow_id: string) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = GenericV1ApiFactory(config);\n return brainApi.brainV1MarkWorkflowViewedPost({ workflow_id });\n}\n\nexport function findCompaniesInitialInputsToInputs(token: string, initial_inputs: FindCompaniesV2InitialInputs) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = FindCompaniesV2ApiFactory(config);\n return brainApi.brainV1FindCompaniesInitialInputsToInputsPost(initial_inputs);\n}\n\nexport function addSimilarCompaniesToFindCompaniesWorkflow(token: string, workflow_id: string, company_domain: string) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = FindCompaniesV2ApiFactory(config);\n return brainApi.brainV1AddSimilarCompaniesToFindCompaniesWorkflowPost({ workflow_id, company_domain });\n}\n\nexport function sourceCompaniesInitialInputsToInputs(token: string, initial_inputs: SourceCompaniesInputs) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = SourceCompaniesApiFactory(config);\n return brainApi.brainV1SourceCompaniesInitialInputsToInputsPost(initial_inputs);\n}\n\nexport function getCompanyProfile(token: string, company_domain: string) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = CompanyApiFactory(config);\n return brainApi.brainV1GetCompanyProfilePost({ company_domain });\n}\n\nexport function getUserDefaultScope(token: string) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = UserApiFactory(config);\n return brainApi.brainV1GetUserDefaultScopePost();\n}\n\nexport function setUserDefaultScope(token: string, scope: ImportableSearchScope) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = UserApiFactory(config);\n return brainApi.brainV1SetUserDefaultScopePost({ scope });\n}\n\nexport function getCompanyLists(token: string) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = CompanyListsApiFactory(config);\n return brainApi.brainV1GetCompanyListsPost();\n}\n\nexport function updateCompanyList(token: string, companyList: CompanyList) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = CompanyListsApiFactory(config);\n return brainApi.brainV1UpdateCompanyListPost(companyList);\n}\n\nexport function addCompaniesFromMarketMapToCompanyList(token: string, company_list_id: string, market_map_image_base64_encoded: string) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = CompanyListsApiFactory(config);\n return brainApi.brainV1AddCompaniesFromMarketMapToCompanyListPost({ company_list_id, market_map_image_base64_encoded });\n}\n\nexport function deleteCompanyList(token: string, company_list_id: string) {\n config.baseOptions.headers = {\n ...config.baseOptions.headers,\n Authorization: `Bearer ${token}`\n };\n const brainApi = CompanyListsApiFactory(config);\n return brainApi.brainV1DeleteCompanyListPost({ company_list_id });\n}\n\nexport function findSimilarCompaniesLight(company_domain: string, user_id?: string) {\n const brainApi = DemoApiFactory(config);\n return brainApi.brainV1FindSimilarCompaniesLightPost({ company_domain, user_id });\n}\n","/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\nimport { ImportableSearchScope } from \"@/services/autogen\";\nimport { getUserDefaultScope } from \"@/services/brain-api.service\";\nimport { PayloadAction, createAsyncThunk, createSlice } from \"@reduxjs/toolkit\";\n\nexport type UserState = {\n defaultScope?: ImportableSearchScope;\n token?: string;\n};\n\nconst initialState: UserState = {};\n\nexport const loadUserDefaultScope = createAsyncThunk(\"loadUserDefaultScope\", async (thunkPayload: { token: string }, thunkAPI) => {\n const { token } = thunkPayload;\n getUserDefaultScope(token).then((response) => {\n if (response.status === 200) {\n const responseScope = response.data;\n thunkAPI.dispatch(userSlice.actions.setDefaultScope(responseScope));\n }\n });\n});\n\nexport const userSlice = createSlice({\n name: \"user\",\n initialState,\n reducers: {\n setDefaultScope: (state, action: PayloadAction) => {\n state.defaultScope = action.payload;\n },\n setUserToken: (state, action: PayloadAction) => {\n state.token = action.payload;\n }\n }\n});\n\n// Action creators are generated for each case reducer function\nexport const { setDefaultScope, setUserToken } = userSlice.actions;\n\nexport default userSlice.reducer;\n","import { configureStore } from \"@reduxjs/toolkit\";\n\nimport userReducer from \"./user\";\n\nexport const store = configureStore({\n reducer: {\n user: userReducer\n }\n});\n\n// Infer the `RootState` and `AppDispatch` types from the store itself\nexport type RootState = ReturnType;\n// Inferred type: {posts: PostsState, comments: CommentsState, users: UsersState}\nexport type AppDispatch = typeof store.dispatch;\n","/**\n * @license React\n * use-sync-external-store-shim.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 e=require(\"react\");function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k=\"function\"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c})},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c})})},[a]);p(d);return d}\nfunction r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return!k(a,d)}catch(f){return!0}}function t(a,b){return b()}var u=\"undefined\"===typeof window||\"undefined\"===typeof window.document||\"undefined\"===typeof window.document.createElement?t:q;exports.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.min.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","/**\n * @license React\n * use-sync-external-store-shim/with-selector.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 h=require(\"react\"),n=require(\"use-sync-external-store/shim\");function p(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var q=\"function\"===typeof Object.is?Object.is:p,r=n.useSyncExternalStore,t=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;\nexports.useSyncExternalStoreWithSelector=function(a,b,e,l,g){var c=t(null);if(null===c.current){var f={hasValue:!1,value:null};c.current=f}else f=c.current;c=v(function(){function a(a){if(!c){c=!0;d=a;a=l(a);if(void 0!==g&&f.hasValue){var b=f.value;if(g(b,a))return k=b}return k=a}b=k;if(q(d,a))return b;var e=l(a);if(void 0!==g&&g(b,e))return b;d=a;return k=e}var c=!1,d,k,m=void 0===e?null:e;return[function(){return a(b())},null===m?void 0:function(){return a(m())}]},[b,e,l,g]);var d=r(a,c[0],c[1]);\nu(function(){f.hasValue=!0;f.value=d},[d]);w(d);return d};\n","// Default to a dummy \"batch\" implementation that just runs the callback\nfunction defaultNoopBatch(callback) {\n callback();\n}\n\nlet batch = defaultNoopBatch; // Allow injecting another batching function later\n\nexport const setBatch = newBatch => 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;","export default function _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}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\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 */\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;","// 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';","function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var n=1;n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var i,r,s=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(s.push(i.value),!t||s.length!==t);o=!0);}catch(e){a=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw r}}return s}(e,t)||c(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function l(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function c(e,t){if(e){if(\"string\"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var s,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}var f={DEBUG:!1,LIB_VERSION:\"1.128.1\"},p=Array.isArray,v=Object.prototype,g=v.hasOwnProperty,_=v.toString,m=p||function(e){return\"[object Array]\"===_.call(e)},y=function(e){return\"function\"==typeof e},b=function(e){return e===Object(e)&&!m(e)},k=function(e){if(b(e)){for(var t in e)if(g.call(e,t))return!1;return!0}return!1},w=function(e){return void 0===e},S=function(e){return\"[object String]\"==_.call(e)},F=function(e){return null===e},E=function(e){return w(e)||F(e)},R=function(e){return\"[object Number]\"==_.call(e)},x=function(e){return\"[object Boolean]\"===_.call(e)},P=function(e){return e instanceof FormData},I=\"undefined\"!=typeof window?window:void 0,C=\"undefined\"!=typeof globalThis?globalThis:I,$=Array.prototype,T=$.forEach,M=$.indexOf,O=null==C?void 0:C.navigator,q=null==C?void 0:C.document,A=null==C?void 0:C.location,L=null==C?void 0:C.fetch,B=null!=C&&C.XMLHttpRequest&&\"withCredentials\"in new C.XMLHttpRequest?C.XMLHttpRequest:void 0,D=null==C?void 0:C.AbortController,N=null==O?void 0:O.userAgent,H=null!=I?I:{},j=\"[PostHog.js]\",U={_log:function(e){if(I&&(f.DEBUG||H.POSTHOG_DEBUG)&&!w(I.console)&&I.console){for(var t=(\"__rrweb_original__\"in I.console[e]?I.console[e].__rrweb_original__:I.console[e]),n=arguments.length,i=new Array(n>1?n-1:0),r=1;r1?t-1:0),i=1;i0&&(t[n]=e)})),t};function te(e,t){return n=e,i=function(e){return S(e)&&!F(t)?e.slice(0,t):e},r=new Set,function e(t,n){return t!==Object(t)?i?i(t,n):t:r.has(t)?void 0:(r.add(t),m(t)?(s=[],G(t,(function(t){s.push(e(t))}))):(s={},V(t,(function(t,n){r.has(t)||(s[n]=e(t,n))}))),s);var s}(n);var n,i,r}var ne,ie=function(e){var t,n,i,r,s=\"\";for(t=n=0,i=(e=(e+\"\").replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\")).length,r=0;r127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),F(a)||(n>t&&(s+=e.substring(t,n)),s+=a,t=n=r+1)}return n>t&&(s+=e.substring(t,e.length)),s},re=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,i,r,s){if(t)if(t.addEventListener&&!r)t.addEventListener(n,i,!!s);else{var o=\"on\"+n,a=t[o];t[o]=function(t,n,i){return function(r){if(r=r||e(null==I?void 0:I.event)){var s,o=!0;y(i)&&(s=i(r));var a=n.call(t,r);return!1!==s&&!1!==a||(o=!1),o}}}(t,i,a)}else U.error(\"No valid element provided to register_event\")}}();function se(e,t){var n=function(){if(!q)return t(\"document not found\");var n=q.createElement(\"script\");n.type=\"text/javascript\",n.src=e,n.onload=function(e){return t(void 0,e)},n.onerror=function(e){return t(e)};var i,r=q.querySelectorAll(\"body > script\");r.length>0?null===(i=r[0].parentNode)||void 0===i||i.insertBefore(n,r[0]):q.body.appendChild(n)};null!=q&&q.body?n():null==q||q.addEventListener(\"DOMContentLoaded\",n)}!function(e){e.GZipJS=\"gzip-js\",e.Base64=\"base64\"}(ne||(ne={}));var oe=\"$people_distinct_id\",ae=\"__alias\",ue=\"__timers\",le=\"$autocapture_disabled_server_side\",ce=\"$session_recording_enabled_server_side\",de=\"$console_log_recording_enabled_server_side\",he=\"$session_recording_network_payload_capture\",fe=\"$session_recording_canvas_recording\",pe=\"$replay_sample_rate\",ve=\"$replay_minimum_duration\",ge=\"$sesid\",_e=\"$session_is_sampled\",me=\"$enabled_feature_flags\",ye=\"$early_access_features\",be=\"$stored_person_properties\",ke=\"$stored_group_properties\",we=\"$surveys\",Se=\"$flag_call_reported\",Fe=\"$user_state\",Ee=\"$client_session_props\",Re=\"$capture_rate_limit\",xe=\"$initial_campaign_params\",Pe=\"$initial_referrer_info\",Ie=\"$epp\",Ce=[oe,ae,\"__cmpns\",ue,ce,ge,me,Fe,ye,ke,be,we,Se,Ee,Re,xe,Pe,Ie],$e=\"$active_feature_flags\",Te=\"$override_feature_flags\",Me=\"$feature_flag_payloads\",Oe=function(e){var t,n={},i=h(Y(e||{}));try{for(i.s();!(t=i.n()).done;){var r=u(t.value,2),s=r[0],o=r[1];o&&(n[s]=o)}}catch(e){i.e(e)}finally{i.f()}return n},qe=function(){function e(t){i(this,e),this.instance=t,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return s(e,[{key:\"getFlags\",value:function(){return Object.keys(this.getFlagVariants())}},{key:\"getFlagVariants\",value:function(){var e=this.instance.get_property(me),t=this.instance.get_property(Te);if(!t)return e||{};for(var n=Q({},e),i=Object.keys(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var n,i=this.getFlagVariants()[e],r=\"\".concat(i),s=this.instance.get_property(Se)||{};if(t.send_event||!(\"send_event\"in t))if(!(e in s)||!s[e].includes(r))m(s[e])?s[e].push(r):s[e]=[r],null===(n=this.instance.persistence)||void 0===n||n.register(o({},Se,s)),this.instance.capture(\"$feature_flag_called\",{$feature_flag:e,$feature_flag_response:i});return i}U.warn('getFeatureFlag for key \"'+e+\"\\\" failed. Feature flags didn't load in time.\")}},{key:\"getFeatureFlagPayload\",value:function(e){return this.getFlagPayloads()[e]}},{key:\"isFeatureEnabled\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(e,t);U.warn('isFeatureEnabled for key \"'+e+\"\\\" failed. Feature flags didn't load in time.\")}},{key:\"addFeatureFlagsHandler\",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:\"removeFeatureFlagsHandler\",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((function(t){return t!==e}))}},{key:\"receivedFeatureFlags\",value:function(e,n){if(this.instance.persistence){this.instance.decideEndpointWasHit=!0;var i=this.getFlagVariants(),r=this.getFlagPayloads();!function(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.featureFlags,u=e.featureFlagPayloads;if(a)if(m(a)){var l,c={};if(a)for(var d=0;d1&&void 0!==arguments[1]&&arguments[1],i=this.instance.get_property(ye);if(i&&!n)return e(i);this.instance._send_request({transport:\"XHR\",url:this.instance.requestRouter.endpointFor(\"api\",\"/api/early_access_features/?token=\".concat(this.instance.config.token)),method:\"GET\",callback:function(n){var i;if(n.json){var r=n.json.earlyAccessFeatures;return null===(i=t.instance.persistence)||void 0===i||i.register(o({},ye,r)),e(r)}}})}},{key:\"_prepareFeatureFlagsForCallbacks\",value:function(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((function(e){return t[e]})),flagVariants:Object.keys(t).filter((function(e){return t[e]})).reduce((function(e,n){return e[n]=t[n],e}),{})}}},{key:\"_fireFeatureFlagsCallbacks\",value:function(e){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,i=t.flagVariants;this.featureFlagEventHandlers.forEach((function(t){return t(n,i,{errorsLoading:e})}))}},{key:\"setPersonPropertiesForFlags\",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.instance.get_property(be)||{};this.instance.register(o({},be,t(t({},i),e))),n&&this.instance.reloadFeatureFlags()}},{key:\"resetPersonPropertiesForFlags\",value:function(){this.instance.unregister(be)}},{key:\"setGroupPropertiesForFlags\",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.instance.get_property(ke)||{};0!==Object.keys(i).length&&Object.keys(i).forEach((function(n){i[n]=t(t({},i[n]),e[n]),delete e[n]})),this.instance.register(o({},ke,t(t({},i),e))),n&&this.instance.reloadFeatureFlags()}},{key:\"resetGroupPropertiesForFlags\",value:function(e){if(e){var n=this.instance.get_property(ke)||{};this.instance.register(o({},ke,t(t({},n),{},o({},e,{}))))}else this.instance.unregister(ke)}}]),e}();Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return R(e)&&isFinite(e)&&Math.floor(e)===e});var Ae=\"0123456789abcdef\",Le=function(){function e(t){if(i(this,e),this.bytes=t,16!==t.length)throw new TypeError(\"not 128-bit length\")}return s(e,[{key:\"toString\",value:function(){for(var e=\"\",t=0;t>>4)+Ae.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+=\"-\");if(36!==e.length)throw new Error(\"Invalid UUIDv7 was generated\");return e}},{key:\"clone\",value:function(){return new e(this.bytes.slice(0))}},{key:\"equals\",value:function(e){return 0===this.compareTo(e)}},{key:\"compareTo\",value:function(e){for(var t=0;t<16;t++){var n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}}],[{key:\"fromFieldsV7\",value:function(t,n,i,r){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(i)||!Number.isInteger(r)||t<0||n<0||i<0||r<0||t>0xffffffffffff||n>4095||i>1073741823||r>4294967295)throw new RangeError(\"invalid field value\");var s=new Uint8Array(16);return s[0]=t/Math.pow(2,40),s[1]=t/Math.pow(2,32),s[2]=t/Math.pow(2,24),s[3]=t/Math.pow(2,16),s[4]=t/Math.pow(2,8),s[5]=t,s[6]=112|n>>>8,s[7]=n,s[8]=128|i>>>24,s[9]=i>>>16,s[10]=i>>>8,s[11]=i,s[12]=r>>>24,s[13]=r>>>16,s[14]=r>>>8,s[15]=r,new e(s)}}]),e}(),Be=function(){function e(){i(this,e),o(this,\"timestamp\",0),o(this,\"counter\",0),o(this,\"random\",new He)}return s(e,[{key:\"generate\",value:function(){var e=this.generateOrAbort();if(w(e)){this.timestamp=0;var t=this.generateOrAbort();if(w(t))throw new Error(\"Could not generate UUID after timestamp reset\");return t}return e}},{key:\"generateOrAbort\",value:function(){var e=Date.now();if(e>this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return Le.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:\"resetCounter\",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),De=function(e){if(\"undefined\"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error(\"no cryptographically strong RNG available\");for(var t=0;t=this.buffer.length&&(De(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),je=function(){return Ue().toString()},Ue=function(){return(Ne||(Ne=new Be)).generate()},We=\"Thu, 01 Jan 1970 00:00:00 GMT\",ze=\"\";var Ge=/[a-z0-9][a-z0-9-]+\\.[a-z]{2,}$/i;function Ve(e,t){if(t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;if(ze)return ze;if(!t)return\"\";if([\"localhost\",\"127.0.0.1\"].includes(e))return\"\";for(var n=e.split(\".\"),i=Math.min(n.length,8),r=\"dmn_chk_\"+je(),s=new RegExp(\"(^|;)\\\\s*\"+r+\"=1\");!ze&&i--;){var o=n.slice(i).join(\".\"),a=r+\"=1;domain=.\"+o;t.cookie=a,s.test(t.cookie)&&(t.cookie=a+\";expires=\"+We,ze=o)}return ze}(e);if(!n){var i=function(e){var t=e.match(Ge);return t?t[0]:\"\"}(e);i!==n&&U.info(\"Warning: cookie subdomain discovery mismatch\",i,n),n=i}return n?\"; domain=.\"+n:\"\"}return\"\"}var Qe,Je={is_supported:function(){return!!q},error:function(e){U.error(\"cookieStore error: \"+e)},get:function(e){if(q){try{for(var t=e+\"=\",n=q.cookie.split(\";\").filter((function(e){return e.length})),i=0;i3686.4&&U.warn(\"cookieStore warning: large cookie, len=\"+l.length),q.cookie=l,l}catch(e){return}},remove:function(e,t){try{Je.set(e,\"\",-1,t)}catch(e){return}}},Ye=null,Xe={is_supported:function(){if(!F(Ye))return Ye;var e=!0;if(w(I))e=!1;else try{var t=\"__mplssupport__\";Xe.set(t,\"xyz\"),'\"xyz\"'!==Xe.get(t)&&(e=!1),Xe.remove(t)}catch(t){e=!1}return e||U.error(\"localStorage unsupported; falling back to cookie store\"),Ye=e,e},error:function(e){U.error(\"localStorage error: \"+e)},get:function(e){try{return null==I?void 0:I.localStorage.getItem(e)}catch(e){Xe.error(e)}return null},parse:function(e){try{return JSON.parse(Xe.get(e))||{}}catch(e){}return null},set:function(e,t){try{null==I||I.localStorage.setItem(e,JSON.stringify(t))}catch(e){Xe.error(e)}},remove:function(e){try{null==I||I.localStorage.removeItem(e)}catch(e){Xe.error(e)}}},Ke=[\"distinct_id\",ge,_e,Ie],Ze=t(t({},Xe),{},{parse:function(e){try{var t={};try{t=Je.parse(e)||{}}catch(e){}var n=Q(t,JSON.parse(Xe.get(e)||\"{}\"));return Xe.set(e,n),n}catch(e){}return null},set:function(e,t,n,i,r){try{Xe.set(e,t);var s={};Ke.forEach((function(e){t[e]&&(s[e]=t[e])})),Object.keys(s).length&&Je.set(e,s,n,i,r)}catch(e){Xe.error(e)}},remove:function(e,t){try{null==I||I.localStorage.removeItem(e),Je.remove(e,t)}catch(e){Xe.error(e)}}}),et={},tt={is_supported:function(){return!0},error:function(e){U.error(\"memoryStorage error: \"+e)},get:function(e){return et[e]||null},parse:function(e){return et[e]||null},set:function(e,t){et[e]=t},remove:function(e){delete et[e]}},nt=null,it={is_supported:function(){if(!F(nt))return nt;if(nt=!0,w(I))nt=!1;else try{var e=\"__support__\";it.set(e,\"xyz\"),'\"xyz\"'!==it.get(e)&&(nt=!1),it.remove(e)}catch(e){nt=!1}return nt},error:function(e){U.error(\"sessionStorage error: \",e)},get:function(e){try{return null==I?void 0:I.sessionStorage.getItem(e)}catch(e){it.error(e)}return null},parse:function(e){try{return JSON.parse(it.get(e))||null}catch(e){}return null},set:function(e,t){try{null==I||I.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){it.error(e)}},remove:function(e){try{null==I||I.sessionStorage.removeItem(e)}catch(e){it.error(e)}}},rt=[\"localhost\",\"127.0.0.1\"],st=function(e){var t=null==q?void 0:q.createElement(\"a\");return w(t)?null:(t.href=e,t)},ot=function(e,t){return!!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(t)&&new RegExp(t).test(e)},at=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"&\",r=[];return V(e,(function(e,i){w(e)||w(i)||\"undefined\"===i||(t=encodeURIComponent(function(e){return e instanceof File}(e)?e.name:e.toString()),n=encodeURIComponent(i),r[r.length]=n+\"=\"+t)})),r.join(i)},ut=function(e,t){for(var n,i=((e.split(\"#\")[0]||\"\").split(\"?\")[1]||\"\").split(\"&\"),r=0;r=3&&(t=w(e[2])?e[3]:e[2]),[\"watchOS\",t]}],[new RegExp(\"(\"+ht+\" (\\\\d+)\\\\.(\\\\d+)\\\\.?(\\\\d+)?|\"+ht+\")\",\"i\"),function(e){if(e&&e[2]){var t=[e[2],e[3],e[4]||\"0\"];return[ht,t.join(\".\")]}return[ht,\"\"]}],[/Mac OS X (\\d+)[_.](\\d+)[_.]?(\\d+)?/i,function(e){var t=[\"Mac OS X\",\"\"];if(e&&e[1]){var n=[e[1],e[2],e[3]||\"0\"];t[1]=n.join(\".\")}return t}],[/Mac/i,[\"Mac OS X\",\"\"]],[/CrOS/,[Ft,\"\"]],[/Linux|debian/i,[\"Linux\",\"\"]]],sn=function(e){return Xt.test(e)?Ot:Yt.test(e)?qt:Jt.test(e)?At:new RegExp(jt,\"i\").test(e)?jt:new RegExp(\"(\"+Nt+\"|WPDesktop)\",\"i\").test(e)?Nt:/iPad/.test(e)?vt:/iPod/.test(e)?\"iPod Touch\":/iPhone/.test(e)?\"iPhone\":/(watch)(?: ?os[,/]|\\d,\\d\\/)[\\d.]+/i.test(e)?_t:Kt.test(e)?yt:/(kobo)\\s(ereader|touch)/i.test(e)?\"Kobo\":new RegExp(Ht,\"i\").test(e)?Ht:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i.test(e)||/(kf[a-z]+)( bui|\\)).+silk\\//i.test(e)?\"Kindle Fire\":/(Android|ZTE)/i.test(e)?!new RegExp(ct).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?ht:pt:ht:new RegExp(\"(pda|\"+ct+\")\",\"i\").test(e)?Wt:new RegExp(ft,\"i\").test(e)&&!new RegExp(ft+\" pc\",\"i\").test(e)?zt:\"\"},on=\"https?://(.*)\",an=[\"utm_source\",\"utm_medium\",\"utm_campaign\",\"utm_content\",\"utm_term\",\"gclid\",\"gad_source\",\"gclsrc\",\"dclid\",\"gbraid\",\"wbraid\",\"fbclid\",\"msclkid\",\"twclid\",\"li_fat_id\",\"mc_cid\",\"igshid\",\"ttclid\"],un={campaignParams:function(e){var t=an.concat(e||[]),n={};return V(t,(function(e){var t=q?ut(q.URL,e):\"\";t.length&&(n[e]=t)})),n},searchEngine:function(){var e=null==q?void 0:q.referrer;return e?0===e.search(on+\"google.([^/?]*)\")?\"google\":0===e.search(on+\"bing.com\")?\"bing\":0===e.search(on+\"yahoo.com\")?\"yahoo\":0===e.search(on+\"duckduckgo.com\")?\"duckduckgo\":null:null},searchInfo:function(){var e=un.searchEngine(),t=\"yahoo\"!=e?\"q\":\"p\",n={};if(!F(e)){n.$search_engine=e;var i=q?ut(q.referrer,t):\"\";i.length&&(n.ph_keyword=i)}return n},browser:tn,browserVersion:function(e,t){var n=tn(e,t),i=nn[n];if(w(i))return null;for(var r=0;r1e3?N.substring(0,997)+\"...\":N,$browser_version:un.browserVersion(N,navigator.vendor),$browser_language:un.browserLanguage(),$screen_height:null==I?void 0:I.screen.height,$screen_width:null==I?void 0:I.screen.width,$viewport_height:null==I?void 0:I.innerHeight,$viewport_width:null==I?void 0:I.innerWidth,$lib:\"web\",$lib_version:f.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:X()/1e3})},people_properties:function(){if(!N)return{};var e=u(un.os(N),2),t=e[0],n=e[1];return Q(ee({$os:t,$os_version:n,$browser:un.browser(N,navigator.vendor)}),{$browser_version:un.browserVersion(N,navigator.vendor)})}},ln=[\"cookie\",\"localstorage\",\"localstorage+cookie\",\"sessionstorage\",\"memory\"],cn=function(){function e(t){i(this,e),this.config=t,this.props={},this.campaign_params_saved=!1,this.name=function(e){var t=\"\";return e.token&&(t=e.token.replace(/\\+/g,\"PL\").replace(/\\//g,\"SL\").replace(/=/g,\"EQ\")),e.persistence_name?\"ph_\"+e.persistence_name:\"ph_\"+t+\"_posthog\"}(t),this.storage=this.buildStorage(t),this.load(),this.update_config(t,t),this.save()}return s(e,[{key:\"buildStorage\",value:function(e){-1===ln.indexOf(e.persistence.toLowerCase())&&(U.critical(\"Unknown persistence type \"+e.persistence+\"; falling back to localStorage+cookie\"),e.persistence=\"localStorage+cookie\");var t=e.persistence.toLowerCase();return\"localstorage\"===t&&Xe.is_supported()?Xe:\"localstorage+cookie\"===t&&Ze.is_supported()?Ze:\"sessionstorage\"===t&&it.is_supported()?it:\"memory\"===t?tt:\"cookie\"===t?Je:Ze.is_supported()?Ze:Je}},{key:\"properties\",value:function(){var e={};return V(this.props,(function(t,n){if(n===me&&b(t))for(var i=Object.keys(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),o(this,\"bucketSize\",100),o(this,\"refillRate\",10),o(this,\"mutationBuckets\",{}),o(this,\"loggedTracker\",{}),o(this,\"refillBuckets\",(function(){Object.keys(s.mutationBuckets).forEach((function(e){s.mutationBuckets[e]=s.mutationBuckets[e]+s.refillRate,s.mutationBuckets[e]>=s.bucketSize&&delete s.mutationBuckets[e]}))})),o(this,\"getNodeOrRelevantParent\",(function(e){var t=s.rrweb.mirror.getNode(e);if(\"svg\"!==(null==t?void 0:t.nodeName)&&t instanceof Element){var n=t.closest(\"svg\");if(n)return[s.rrweb.mirror.getId(n),n]}return[e,t]})),o(this,\"numberOfChanges\",(function(e){var t,n,i,r,s,o,a,u;return(null!==(t=null===(n=e.removes)||void 0===n?void 0:n.length)&&void 0!==t?t:0)+(null!==(i=null===(r=e.attributes)||void 0===r?void 0:r.length)&&void 0!==i?i:0)+(null!==(s=null===(o=e.texts)||void 0===o?void 0:o.length)&&void 0!==s?s:0)+(null!==(a=null===(u=e.adds)||void 0===u?void 0:u.length)&&void 0!==a?a:0)})),o(this,\"throttleMutations\",(function(e){if(3!==e.type||0!==e.data.source)return e;var t=e.data,n=s.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter((function(e){var t,n,i,r=u(s.getNodeOrRelevantParent(e.id),2),o=r[0],a=r[1];if(0===s.mutationBuckets[o])return!1;(s.mutationBuckets[o]=null!==(t=s.mutationBuckets[o])&&void 0!==t?t:s.bucketSize,s.mutationBuckets[o]=Math.max(s.mutationBuckets[o]-1,0),0===s.mutationBuckets[o])&&(s.loggedTracker[o]||(s.loggedTracker[o]=!0,null===(n=(i=s.options).onBlockedNode)||void 0===n||n.call(i,o,a)));return e})));var i=s.numberOfChanges(t);return 0!==i||n===i?e:void 0})),this.rrweb=t,this.options=a,this.refillRate=null!==(n=this.options.refillRate)&&void 0!==n?n:this.refillRate,this.bucketSize=null!==(r=this.options.bucketSize)&&void 0!==r?r:this.bucketSize,setInterval((function(){s.refillBuckets()}),1e3)})),pn=function(e){return e[e.DomContentLoaded=0]=\"DomContentLoaded\",e[e.Load=1]=\"Load\",e[e.FullSnapshot=2]=\"FullSnapshot\",e[e.IncrementalSnapshot=3]=\"IncrementalSnapshot\",e[e.Meta=4]=\"Meta\",e[e.Custom=5]=\"Custom\",e[e.Plugin=6]=\"Plugin\",e}(pn||{});function vn(e){return e?z(e).split(/\\s+/):[]}function gn(e){var t=\"\";switch(n(e.className)){case\"string\":t=e.className;break;case\"object\":t=(\"baseVal\"in e.className?e.className.baseVal:null)||e.getAttribute(\"class\")||\"\";break;default:t=\"\"}return vn(t)}function _n(e){return E(e)?null:z(e).split(/(\\s+)/).filter((function(e){return On(e)})).join(\"\").replace(/[\\r\\n]/g,\" \").replace(/[ ]+/g,\" \").substring(0,255)}function mn(e){var t=\"\";return Rn(e)&&!xn(e)&&e.childNodes&&e.childNodes.length&&V(e.childNodes,(function(e){var n;kn(e)&&e.textContent&&(t+=null!==(n=_n(e.textContent))&&void 0!==n?n:\"\")})),z(t)}function yn(e){return!!e&&1===e.nodeType}function bn(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function kn(e){return!!e&&3===e.nodeType}function wn(e){return!!e&&11===e.nodeType}var Sn=[\"a\",\"button\",\"form\",\"input\",\"select\",\"textarea\",\"label\"];function Fn(e){var t=e.parentNode;return!(!t||!yn(t))&&t}function En(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if(!I||!e||bn(e,\"html\")||!yn(e))return!1;if(null!=i&&i.url_allowlist){var o=I.location.href,a=i.url_allowlist;if(a&&!a.some((function(e){return o.match(e)})))return!1}if(null!=i&&i.dom_event_allowlist){var u=i.dom_event_allowlist;if(u&&!u.some((function(e){return t.type===e})))return!1}for(var l=!1,c=[e],d=!0,f=e;f.parentNode&&!bn(f,\"body\");)if(wn(f.parentNode))c.push(f.parentNode.host),f=f.parentNode.host;else{if(!(d=Fn(f)))break;if(r||Sn.indexOf(d.tagName.toLowerCase())>-1)l=!0;else{var p=I.getComputedStyle(d);p&&\"pointer\"===p.getPropertyValue(\"cursor\")&&(l=!0)}c.push(d),f=d}if(!function(e,t){var i=null==t?void 0:t.element_allowlist;if(w(i))return!0;var r,s=h(e);try{var o=function(){var e=r.value;if(i.some((function(t){return e.tagName.toLowerCase()===t})))return{v:!0}};for(s.s();!(r=s.n()).done;){var a=o();if(\"object\"===n(a))return a.v}}catch(e){s.e(e)}finally{s.f()}return!1}(c,i))return!1;if(!function(e,t){var i=null==t?void 0:t.css_selector_allowlist;if(w(i))return!0;var r,s=h(e);try{var o=function(){var e=r.value;if(i.some((function(t){return e.matches(t)})))return{v:!0}};for(s.s();!(r=s.n()).done;){var a=o();if(\"object\"===n(a))return a.v}}catch(e){s.e(e)}finally{s.f()}return!1}(c,i))return!1;var v=I.getComputedStyle(e);if(v&&\"pointer\"===v.getPropertyValue(\"cursor\")&&\"click\"===t.type)return!0;var g=e.tagName.toLowerCase();switch(g){case\"html\":return!1;case\"form\":return(s||[\"submit\"]).indexOf(t.type)>=0;case\"input\":case\"select\":case\"textarea\":return(s||[\"change\",\"click\"]).indexOf(t.type)>=0;default:return l?(s||[\"click\"]).indexOf(t.type)>=0:(s||[\"click\"]).indexOf(t.type)>=0&&(Sn.indexOf(g)>-1||\"true\"===e.getAttribute(\"contenteditable\"))}}function Rn(e){for(var t=e;t.parentNode&&!bn(t,\"body\");t=t.parentNode){var n=gn(t);if(J(n,\"ph-sensitive\")||J(n,\"ph-no-capture\"))return!1}if(J(gn(e),\"ph-include\"))return!0;var i=e.type||\"\";if(S(i))switch(i.toLowerCase()){case\"hidden\":case\"password\":return!1}var r=e.name||e.id||\"\";if(S(r)){if(/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(r.replace(/[^a-zA-Z0-9]/g,\"\")))return!1}return!0}function xn(e){return!!(bn(e,\"input\")&&![\"button\",\"checkbox\",\"submit\",\"reset\"].includes(e.type)||bn(e,\"select\")||bn(e,\"textarea\")||\"true\"===e.getAttribute(\"contenteditable\"))}var Pn=\"(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})\",In=new RegExp(\"^(?:\".concat(Pn,\")$\")),Cn=new RegExp(Pn),$n=\"\\\\d{3}-?\\\\d{2}-?\\\\d{4}\",Tn=new RegExp(\"^(\".concat($n,\")$\")),Mn=new RegExp(\"(\".concat($n,\")\"));function On(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(E(e))return!1;if(S(e)){if(e=z(e),(t?In:Cn).test((e||\"\").replace(/[- ]/g,\"\")))return!1;if((t?Tn:Mn).test(e))return!1}return!0}function qn(e){var t=mn(e);return On(t=\"\".concat(t,\" \").concat(An(e)).trim())?t:\"\"}function An(e){var t=\"\";return e&&e.childNodes&&e.childNodes.length&&V(e.childNodes,(function(e){var n;if(e&&\"span\"===(null===(n=e.tagName)||void 0===n?void 0:n.toLowerCase()))try{var i=mn(e);t=\"\".concat(t,\" \").concat(i).trim(),e.childNodes&&e.childNodes.length&&(t=\"\".concat(t,\" \").concat(An(e)).trim())}catch(e){U.error(e)}})),t}function Ln(e){return function(e){var n=e.map((function(e){var n,i,r=\"\";if(e.tag_name&&(r+=e.tag_name),e.attr_class){e.attr_class.sort();var s,o=h(e.attr_class);try{for(o.s();!(s=o.n()).done;){var a=s.value;r+=\".\".concat(a.replace(/\"/g,\"\"))}}catch(e){o.e(e)}finally{o.f()}}var l=t(t(t(t({},e.text?{text:e.text}:{}),{},{\"nth-child\":null!==(n=e.nth_child)&&void 0!==n?n:0,\"nth-of-type\":null!==(i=e.nth_of_type)&&void 0!==i?i:0},e.href?{href:e.href}:{}),e.attr_id?{attr_id:e.attr_id}:{}),e.attributes),c={};return Y(l).sort((function(e,t){var n=u(e,1)[0],i=u(t,1)[0];return n.localeCompare(i)})).forEach((function(e){var t=u(e,2),n=t[0],i=t[1];return c[Bn(n.toString())]=Bn(i.toString())})),r+=\":\",r+=Y(l).map((function(e){var t=u(e,2),n=t[0],i=t[1];return\"\".concat(n,'=\"').concat(i,'\"')})).join(\"\")}));return n.join(\";\")}(function(e){return e.map((function(e){var t,n,i={text:null===(t=e.$el_text)||void 0===t?void 0:t.slice(0,400),tag_name:e.tag_name,href:null===(n=e.attr__href)||void 0===n?void 0:n.slice(0,2048),attr_class:Dn(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return Y(e).filter((function(e){return 0===u(e,1)[0].indexOf(\"attr__\")})).forEach((function(e){var t=u(e,2),n=t[0],r=t[1];return i.attributes[n]=r})),i}))}(e))}function Bn(e){return e.replace(/\"|\\\\\"/g,'\\\\\"')}function Dn(e){var t=e.attr__class;return t?m(t)?t:vn(t):void 0}var Nn=\"[SessionRecording]\",Hn={initiatorTypes:[\"audio\",\"beacon\",\"body\",\"css\",\"early-hint\",\"embed\",\"fetch\",\"frame\",\"iframe\",\"icon\",\"image\",\"img\",\"input\",\"link\",\"navigation\",\"object\",\"ping\",\"script\",\"track\",\"video\",\"xmlhttprequest\"],maskRequestFn:function(e){return e},recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:[\"first-input\",\"navigation\",\"paint\",\"resource\"],payloadSizeLimitBytes:1e6},jn=[\"authorization\",\"x-forwarded-for\",\"authorization\",\"cookie\",\"set-cookie\",\"x-api-key\",\"x-real-ip\",\"remote-addr\",\"forwarded\",\"proxy-authorization\",\"x-csrf-token\",\"x-csrftoken\",\"x-xsrf-token\"],Un=[\"password\",\"secret\",\"passwd\",\"api_key\",\"apikey\",\"auth\",\"credentials\",\"mysql_pwd\",\"privatekey\",\"private_key\",\"token\"],Wn=[\"/s/\",\"/e/\",\"/i/\"];function zn(e,t,n,i){if(E(e))return e;var r=(null==t?void 0:t[\"content-length\"])||function(e){return new Blob([e]).size}(e);return S(r)&&(r=parseInt(r)),r>n?Nn+\" \".concat(i,\" body too large to record (\").concat(r,\" bytes)\"):e}function Gn(e,t){if(E(e))return e;var n=e;return On(n,!1)||(n=Nn+\" \"+t+\" body redacted\"),V(Un,(function(e){var i,r;null!==(i=n)&&void 0!==i&&i.length&&-1!==(null===(r=n)||void 0===r?void 0:r.indexOf(e))&&(n=Nn+\" \"+t+\" body redacted as might contain: \"+e)})),n}var Vn=function(e,n){var i,r,s,o={payloadSizeLimitBytes:Hn.payloadSizeLimitBytes,performanceEntryTypeToObserve:l(Hn.performanceEntryTypeToObserve)},a=!1!==e.session_recording.recordHeaders&&n.recordHeaders,u=!1!==e.session_recording.recordBody&&n.recordBody,c=!1!==e.capture_performance&&n.recordPerformance,d=(i=o,s=Math.min(1e6,null!==(r=i.payloadSizeLimitBytes)&&void 0!==r?r:1e6),function(e){return null!=e&&e.requestBody&&(e.requestBody=zn(e.requestBody,e.requestHeaders,s,\"Request\")),null!=e&&e.responseBody&&(e.responseBody=zn(e.responseBody,e.responseHeaders,s,\"Response\")),e}),h=function(e){return d(function(e){var t=st(e.name);if(!(t&&t.pathname&&Wn.some((function(e){return 0===t.pathname.indexOf(e)}))))return e}((t=e,V(Object.keys(null!==(n=t.requestHeaders)&&void 0!==n?n:{}),(function(e){var n;jn.includes(e.toLowerCase())&&(null===(n=t.requestHeaders)||void 0===n||delete n[e])})),t)));var t,n},f=y(e.session_recording.maskNetworkRequestFn);return f&&y(e.session_recording.maskCapturedNetworkRequestFn)&&U.warn(\"Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored.\"),f&&(e.session_recording.maskCapturedNetworkRequestFn=function(n){var i=e.session_recording.maskNetworkRequestFn({url:n.name});return t(t({},n),{},{name:null==i?void 0:i.url})}),o.maskRequestFn=y(e.session_recording.maskCapturedNetworkRequestFn)?function(t){var n,i,r,s=h(t);return s&&null!==(n=null===(i=(r=e.session_recording).maskCapturedNetworkRequestFn)||void 0===i?void 0:i.call(r,s))&&void 0!==n?n:void 0}:function(e){return function(e){if(!w(e))return e.requestBody=Gn(e.requestBody,\"Request\"),e.responseBody=Gn(e.responseBody,\"Response\"),e}(h(e))},t(t(t({},Hn),o),{},{recordHeaders:a,recordBody:u,recordPerformance:c,recordInitialRequests:c})},Qn=\"__ph_opt_in_out_\";function Jn(e,t){ii(!0,e,t)}function Yn(e,t){ii(!1,e,t)}function Xn(e,t){return\"1\"===ni(e,t)}function Kn(e,t){return!!function(e){if(e&&e.respectDnt){var t=e&&e.window||I,n=null==t?void 0:t.navigator,i=!1;return V([null==n?void 0:n.doNotTrack,n.msDoNotTrack,t.doNotTrack],(function(e){J([!0,1,\"1\",\"yes\"],e)&&(i=!0)})),i}return!1}(t)||\"0\"===ni(e,t)}function Zn(e,t){ei(t=t||{}).remove(ti(e,t),!!t.crossSubdomainCookie)}function ei(e){return\"localStorage\"===(e=e||{}).persistenceType?Xe:\"localStorage+cookie\"===e.persistenceType?Ze:Je}function ti(e,t){return((t=t||{}).persistencePrefix||Qn)+e}function ni(e,t){return ei(t).get(ti(e,t))}function ii(e,t,n){S(t)&&t.length?(ei(n=n||{}).set(ti(t,n),e?1:0,R(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||\"$opt_in\",n.captureProperties||{},{send_instantly:!0})):U.error(\"gdpr.\"+(e?\"optIn\":\"optOut\")+\" called with an invalid token\")}function ri(e){var t=!1;try{var n=e.config.token,i=e.config.respect_dnt,r=e.config.opt_out_capturing_persistence_type,s=e.config.opt_out_capturing_cookie_prefix||void 0,o=e.config.window;n&&(t=Kn(n,{respectDnt:i,persistenceType:r,persistencePrefix:s,window:o}))}catch(e){U.error(\"Unexpected error when checking capturing opt-out status: \"+e)}return t}var si,oi=3e5,ai=oi;!function(e){e[e.Mutation=0]=\"Mutation\",e[e.MouseMove=1]=\"MouseMove\",e[e.MouseInteraction=2]=\"MouseInteraction\",e[e.Scroll=3]=\"Scroll\",e[e.ViewportResize=4]=\"ViewportResize\",e[e.Input=5]=\"Input\",e[e.TouchMove=6]=\"TouchMove\",e[e.MediaInteraction=7]=\"MediaInteraction\",e[e.StyleSheetRule=8]=\"StyleSheetRule\",e[e.CanvasMutation=9]=\"CanvasMutation\",e[e.Font=10]=\"Font\",e[e.Log=11]=\"Log\",e[e.Drag=12]=\"Drag\",e[e.StyleDeclaration=13]=\"StyleDeclaration\",e[e.Selection=14]=\"Selection\",e[e.AdoptedStyleSheet=15]=\"AdoptedStyleSheet\"}(si||(si={}));var ui=[si.MouseMove,si.MouseInteraction,si.Scroll,si.ViewportResize,si.Input,si.TouchMove,si.MediaInteraction,si.Drag],li=function(e){return{rrwebMethod:e,enqueuedAt:Date.now(),attempt:1}},ci=\"[SessionRecording]\",di=function(){function e(t){var n=this;if(i(this,e),o(this,\"queuedRRWebEvents\",[]),o(this,\"isIdle\",!1),o(this,\"_linkedFlagSeen\",!1),o(this,\"_lastActivityTimestamp\",Date.now()),o(this,\"windowId\",null),o(this,\"sessionId\",null),o(this,\"_linkedFlag\",null),o(this,\"_forceAllowLocalhostNetworkCapture\",!1),o(this,\"_samplingSessionListener\",null),this.instance=t,this._captureStarted=!1,this._endpoint=\"/s/\",this.stopRrweb=void 0,this.receivedDecide=!1,null==I||I.addEventListener(\"beforeunload\",(function(){n._flushBuffer()})),null==I||I.addEventListener(\"offline\",(function(){n._tryAddCustomEvent(\"browser offline\",{})})),null==I||I.addEventListener(\"online\",(function(){n._tryAddCustomEvent(\"browser online\",{})})),null==I||I.addEventListener(\"visibilitychange\",(function(){if(null!=q&&q.visibilityState){var e=\"window \"+q.visibilityState;n._tryAddCustomEvent(e,{})}})),!this.instance.sessionManager)throw U.error(ci+\" started without valid sessionManager\"),new Error(ci+\" started without valid sessionManager. This is a bug.\");this.buffer=this.clearBuffer(),this._setupSampling()}return s(e,[{key:\"rrwebRecord\",get:function(){var e;return null==H||null===(e=H.rrweb)||void 0===e?void 0:e.record}},{key:\"started\",get:function(){return this._captureStarted}},{key:\"sessionManager\",get:function(){if(!this.instance.sessionManager)throw U.error(ci+\" started without valid sessionManager\"),new Error(ci+\" started without valid sessionManager. This is a bug.\");return this.instance.sessionManager}},{key:\"isSampled\",get:function(){var e=this.instance.get_property(_e);return x(e)?e:null}},{key:\"sessionDuration\",get:function(){var e,t,n=null===(e=this.buffer)||void 0===e?void 0:e.data[(null===(t=this.buffer)||void 0===t?void 0:t.data.length)-1],i=this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionStartTimestamp;return n?n.timestamp-i:null}},{key:\"isRecordingEnabled\",get:function(){var e=!!this.instance.get_property(ce),t=!this.instance.config.disable_session_recording;return I&&e&&t}},{key:\"isConsoleLogCaptureEnabled\",get:function(){var e=!!this.instance.get_property(de),t=this.instance.config.enable_recording_console_log;return null!=t?t:e}},{key:\"canvasRecording\",get:function(){var e=this.instance.get_property(fe);return e&&e.fps&&e.quality?{enabled:e.enabled,fps:e.fps,quality:e.quality}:void 0}},{key:\"networkPayloadCapture\",get:function(){var e,t,n=this.instance.get_property(he),i={recordHeaders:null===(e=this.instance.config.session_recording)||void 0===e?void 0:e.recordHeaders,recordBody:null===(t=this.instance.config.session_recording)||void 0===t?void 0:t.recordBody},r=(null==i?void 0:i.recordHeaders)||(null==n?void 0:n.recordHeaders),s=(null==i?void 0:i.recordBody)||(null==n?void 0:n.recordBody),o=this.instance.config.capture_performance||(null==n?void 0:n.capturePerformance);return r||s||o?{recordHeaders:r,recordBody:s,recordPerformance:o}:void 0}},{key:\"sampleRate\",get:function(){var e=this.instance.get_property(pe);return R(e)?e:null}},{key:\"minimumDuration\",get:function(){var e=this.instance.get_property(ve);return R(e)?e:null}},{key:\"status\",get:function(){return this.receivedDecide?this.isRecordingEnabled?E(this._linkedFlag)||this._linkedFlagSeen?x(this.isSampled)?this.isSampled?\"sampled\":\"disabled\":\"active\":\"buffering\":\"disabled\":\"buffering\"}},{key:\"startIfEnabledOrStop\",value:function(){this.isRecordingEnabled?(this._startCapture(),U.info(ci+\" started\")):(this.stopRecording(),this.clearBuffer())}},{key:\"stopRecording\",value:function(){this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1,U.info(ci+\" stopped\"))}},{key:\"makeSamplingDecision\",value:function(e){var t,n=this.sessionId!==e,i=this.sampleRate;if(R(i)){var r,s=this.isSampled,a=n||!x(s);if(a)r=Math.random()1&&void 0!==arguments[1]?arguments[1]:\"log\";null===(t=this.instance.sessionRecording)||void 0===t||t.onRRwebEmit({type:6,data:{plugin:\"rrweb/console@1\",payload:{level:n,trace:[],payload:[JSON.stringify(e)]}},timestamp:X()})}},{key:\"_startCapture\",value:function(){var e=this;w(Object.assign)||this._captureStarted||this.instance.config.disable_session_recording||ri(this.instance)||(this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId(),this.rrwebRecord?this._onScriptLoaded():se(this.instance.requestRouter.endpointFor(\"assets\",\"/static/recorder.js?v=\".concat(f.LIB_VERSION)),(function(t){if(t)return U.error(ci+\" could not load recorder.js\",t);e._onScriptLoaded()})))}},{key:\"isInteractiveEvent\",value:function(e){var t;return 3===e.type&&-1!==ui.indexOf(null===(t=e.data)||void 0===t?void 0:t.source)}},{key:\"_updateWindowAndSessionIds\",value:function(e){var t=this.isInteractiveEvent(e);t||this.isIdle||e.timestamp-this._lastActivityTimestamp>ai&&(this.isIdle=!0,this._tryAddCustomEvent(\"sessionIdle\",{reason:\"user inactivity\",timeSinceLastActive:e.timestamp-this._lastActivityTimestamp,threshold:ai}));var n=!1;if(t&&(this._lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryAddCustomEvent(\"sessionNoLongerIdle\",{reason:\"user activity\",type:e.type}),n=!0)),!this.isIdle){var i=this.sessionManager.checkAndGetSessionAndWindowId(!t,e.timestamp),r=i.windowId,s=i.sessionId,o=this.sessionId!==s,a=this.windowId!==r;this.windowId=r,this.sessionId=s,(n||-1===[dn,hn].indexOf(e.type)&&(a||o))&&this._tryTakeFullSnapshot()}}},{key:\"_tryRRWebMethod\",value:function(e){try{return e.rrwebMethod(),!0}catch(t){return this.queuedRRWebEvents.length<10?this.queuedRRWebEvents.push({enqueuedAt:e.enqueuedAt||Date.now(),attempt:e.attempt++,rrwebMethod:e.rrwebMethod}):U.warn(ci+\" could not emit queued rrweb event.\",t,e),!1}}},{key:\"_tryAddCustomEvent\",value:function(e,t){var n=this;return this._tryRRWebMethod(li((function(){return n.rrwebRecord.addCustomEvent(e,t)})))}},{key:\"_tryTakeFullSnapshot\",value:function(){var e=this;return this._tryRRWebMethod(li((function(){return e.rrwebRecord.takeFullSnapshot()})))}},{key:\"_onScriptLoaded\",value:function(){for(var e,n=this,i={blockClass:\"ph-no-capture\",blockSelector:void 0,ignoreClass:\"ph-ignore-input\",maskTextClass:\"ph-mask\",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},r=this.instance.config.session_recording,s=0,o=Object.entries(r||{});s10&&(t.data.payload.payload=t.data.payload.payload.slice(0,10),t.data.payload.payload.push(\"...[truncated]\"));for(var n=[],i=0;i2e3?n.push(t.data.payload.payload[i].slice(0,2e3)+\"...[truncated]\"):n.push(t.data.payload.payload[i]);return t.data.payload.payload=n,e}return e}(n),r=JSON.stringify(i).length;if(this._updateWindowAndSessionIds(i),!this.isIdle||i.type===pn.Custom){var s={$snapshot_bytes:r,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};\"disabled\"!==this.status?this._captureSnapshotBuffered(s):this.clearBuffer()}}}}},{key:\"_pageViewFallBack\",value:function(){if(!this.instance.config.capture_pageview&&I){var e=this._maskUrl(I.location.href);this._lastHref!==e&&(this._tryAddCustomEvent(\"$url_changed\",{href:e}),this._lastHref=e)}}},{key:\"_processQueuedEvents\",value:function(){var e=this;if(this.queuedRRWebEvents.length){var t=l(this.queuedRRWebEvents);this.queuedRRWebEvents=[],t.forEach((function(n){Date.now()-n.enqueuedAt>2e3?e._tryAddCustomEvent(\"rrwebQueueTimeout\",{enqueuedAt:n.enqueuedAt,attempt:n.attempt,queueLength:t.length}):e._tryRRWebMethod(n)&&e._tryAddCustomEvent(\"rrwebQueueSuccess\",{enqueuedAt:n.enqueuedAt,attempt:n.attempt,queueLength:t.length})}))}}},{key:\"_maskUrl\",value:function(e){var t=this.instance.config.session_recording;if(t.maskNetworkRequestFn){var n,i={url:e};return null===(n=i=t.maskNetworkRequestFn(i))||void 0===n?void 0:n.url}return e}},{key:\"clearBuffer\",value:function(){return this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:\"_flushBuffer\",value:function(){var e=this;this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0);var t=this.minimumDuration,n=this.sessionDuration,i=R(n)&&n>=0,r=R(t)&&i&&n943718.4||this.buffer.sessionId&&this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),F(this.buffer.sessionId)&&!F(this.sessionId)&&(this.buffer.sessionId=this.sessionId,this.buffer.windowId=this.windowId),this.buffer.size+=e.$snapshot_bytes,this.buffer.data.push(e.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout((function(){n._flushBuffer()}),2e3))}},{key:\"_captureSnapshot\",value:function(e){this.instance.capture(\"$snapshot\",e,{_url:this.instance.requestRouter.endpointFor(\"api\",this._endpoint),_noTruncate:!0,_batchKey:\"recordings\",_noHeatmaps:!0})}}]),e}(),hi=function(){function e(t){i(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return s(e,[{key:\"call\",value:function(){var e=this,t={token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(be),group_properties:this.instance.get_property(ke),disable_flags:this.instance.config.advanced_disable_feature_flags||this.instance.config.advanced_disable_feature_flags_on_first_load||void 0};this.instance._send_request({method:\"POST\",url:this.instance.requestRouter.endpointFor(\"api\",\"/decide/?v=3\"),data:t,compression:this.instance.config.disable_compression?void 0:ne.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:function(t){return e.parseDecideResponse(t.json)}})}},{key:\"parseDecideResponse\",value:function(e){var t=this;this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer();var n=!e;if(this.instance.config.advanced_disable_feature_flags_on_first_load||this.instance.config.advanced_disable_feature_flags||this.instance.featureFlags.receivedFeatureFlags(null!=e?e:{},n),n)U.error(\"Failed to fetch feature flags from PostHog.\");else{if(!q||!q.body)return U.info(\"document not ready yet, trying again in 500 milliseconds...\"),void setTimeout((function(){t.parseDecideResponse(e)}),500);this.instance._afterDecideResponse(e);var i=null==I?void 0:I.extendPostHogWithExceptionAutoCapture;if(e.autocaptureExceptions&&e.autocaptureExceptions&&w(i)&&se(this.instance.requestRouter.endpointFor(\"assets\",\"/static/exception-autocapture.js\"),(function(n){if(n)return U.error(\"Could not load exception autocapture script\",n);I.extendPostHogWithExceptionAutocapture(t.instance,e)})),e.siteApps)if(this.instance.config.opt_in_site_apps){var r,s=h(e.siteApps);try{var o=function(){var e=r.value,n=e.id,i=e.url,s=t.instance.requestRouter.endpointFor(\"api\",i);H[\"__$$ph_site_app_\".concat(n)]=t.instance,se(s,(function(e){e&&U.error(\"Error while initializing PostHog app with config id \".concat(n),e)}))};for(s.s();!(r=s.n()).done;)o()}catch(e){s.e(e)}finally{s.f()}}else e.siteApps.length>0&&U.error('PostHog site apps are disabled. Enable the \"opt_in_site_apps\" config to proceed.')}}}]),e}(),fi=null!=I&&I.location?lt(I.location.hash,\"__posthog\")||lt(location.hash,\"state\"):null,pi=\"_postHogToolbarParams\",vi=function(){function e(t){i(this,e),o(this,\"_toolbarScriptLoaded\",!1),this.instance=t}return s(e,[{key:\"maybeLoadToolbar\",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!I||!q)return!1;n=null!==(e=n)&&void 0!==e?e:I.location,r=null!==(t=r)&&void 0!==t?t:I.history;try{if(!i){try{I.localStorage.setItem(\"test\",\"test\"),I.localStorage.removeItem(\"test\")}catch(e){return!1}i=null==I?void 0:I.localStorage}var s,o=fi||lt(n.hash,\"__posthog\")||lt(n.hash,\"state\"),a=o?K((function(){return JSON.parse(atob(decodeURIComponent(o)))}))||K((function(){return JSON.parse(decodeURIComponent(o))})):null;return a&&\"ph_authorize\"===a.action?((s=a).source=\"url\",s&&Object.keys(s).length>0&&(a.desiredHash?n.hash=a.desiredHash:r?r.replaceState(\"\",q.title,n.pathname+n.search):n.hash=\"\")):((s=JSON.parse(i.getItem(pi)||\"{}\")).source=\"localstorage\",delete s.userIntent),!(!s.token||this.instance.config.token!==s.token)&&(this.loadToolbar(s),!0)}catch(e){return!1}}},{key:\"_callLoadToolbar\",value:function(e){(H.ph_load_toolbar||H.ph_load_editor)(e,this.instance)}},{key:\"loadToolbar\",value:function(e){var n=this;if(!I||I.localStorage.getItem(pi)&&this._toolbarScriptLoaded)return!1;var i=\"custom\"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,r=t(t({token:this.instance.config.token},e),{},{apiURL:this.instance.requestRouter.endpointFor(\"ui\")},i?{instrument:!1}:{});if(I.localStorage.setItem(pi,JSON.stringify(t(t({},r),{},{source:void 0}))),this._toolbarScriptLoaded)this._callLoadToolbar(r);else{this._toolbarScriptLoaded=!0;var s=3e5,o=Math.floor(Date.now()/s)*s;se(this.instance.requestRouter.endpointFor(\"assets\",\"/static/toolbar.js?t=\".concat(o)),(function(e){if(e)return U.error(\"Failed to load toolbar\",e),void(n._toolbarScriptLoaded=!1);n._callLoadToolbar(r)})),re(I,\"turbolinks:load\",(function(){n._toolbarScriptLoaded=!1,n.loadToolbar(r)}))}return!0}},{key:\"_loadEditor\",value:function(e){return this.loadToolbar(e)}},{key:\"maybeLoadEditor\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this.maybeLoadToolbar(e,t,n)}}]),e}(),gi=function(){function e(t){i(this,e),o(this,\"isPaused\",!0),o(this,\"queue\",[]),o(this,\"flushTimeoutMs\",3e3),this.sendRequest=t}return s(e,[{key:\"enqueue\",value:function(e){this.queue.push(e),this.flushTimeout||this.setFlushTimeout()}},{key:\"unload\",value:function(){var e=this;this.clearFlushTimeout();var n=this.queue.length>0?this.formatQueue():{},i=Object.values(n);[].concat(l(i.filter((function(e){return 0===e.url.indexOf(\"/e\")}))),l(i.filter((function(e){return 0!==e.url.indexOf(\"/e\")})))).map((function(n){e.sendRequest(t(t({},n),{},{transport:\"sendBeacon\"}))}))}},{key:\"enable\",value:function(){this.isPaused=!1,this.setFlushTimeout()}},{key:\"setFlushTimeout\",value:function(){var e=this;this.isPaused||(this.flushTimeout=setTimeout((function(){if(e.clearFlushTimeout(),e.queue.length>0){var t=e.formatQueue(),n=function(n){var i=t[n],r=(new Date).getTime();i.data&&m(i.data)&&V(i.data,(function(e){e.offset=Math.abs(e.timestamp-r),delete e.timestamp})),e.sendRequest(i)};for(var i in t)n(i)}}),this.flushTimeoutMs))}},{key:\"clearFlushTimeout\",value:function(){clearTimeout(this.flushTimeout),this.flushTimeout=void 0}},{key:\"formatQueue\",value:function(){var e={};return V(this.queue,(function(n){var i,r=n,s=(r?r.batchKey:null)||r.url;w(e[s])&&(e[s]=t(t({},r),{},{data:[]})),null===(i=e[s].data)||void 0===i||i.push(r.data)})),this.queue=[],e}}]),e}(),_i=Uint8Array,mi=Uint16Array,yi=Uint32Array,bi=new _i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ki=new _i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),wi=new _i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Si=function(e,t){for(var n=new mi(31),i=0;i<31;++i)n[i]=t+=1<>>1|(21845&Ii)<<1;Ci=(61680&(Ci=(52428&Ci)>>>2|(13107&Ci)<<2))>>>4|(3855&Ci)<<4,Pi[Ii]=((65280&Ci)>>>8|(255&Ci)<<8)>>>1}var $i=function(e,t,n){for(var i=e.length,r=0,s=new mi(t);r>>u]=l}else for(o=new mi(i),r=0;r>>15-e[r];return o},Ti=new _i(288);for(Ii=0;Ii<144;++Ii)Ti[Ii]=8;for(Ii=144;Ii<256;++Ii)Ti[Ii]=9;for(Ii=256;Ii<280;++Ii)Ti[Ii]=7;for(Ii=280;Ii<288;++Ii)Ti[Ii]=8;var Mi=new _i(32);for(Ii=0;Ii<32;++Ii)Mi[Ii]=5;var Oi=$i(Ti,9,0),qi=$i(Mi,5,0),Ai=function(e){return(e/8>>0)+(7&e&&1)},Li=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(e instanceof mi?mi:e instanceof yi?yi:_i)(n-t);return i.set(e.subarray(t,n)),i},Bi=function(e,t,n){n<<=7&t;var i=t/8>>0;e[i]|=n,e[i+1]|=n>>>8},Di=function(e,t,n){n<<=7&t;var i=t/8>>0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},Ni=function(e,t){for(var n=[],i=0;ih&&(h=s[i].s);var f=new mi(h+1),p=Hi(n[c-1],f,0);if(p>t){i=0;var v=0,g=p-t,_=1<t))break;v+=_-(1<>>=g;v>0;){var y=s[i].s;f[y]=0&&v;--i){var b=s[i].s;f[b]==t&&(--f[b],++v)}p=t}return[new _i(f),p]},Hi=function e(t,n,i){return-1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},ji=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new mi(++t),i=0,r=e[0],s=1,o=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++s;else{if(!r&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(r),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(r);s=1,r=e[a]}return[n.subarray(0,i),t]},Ui=function(e,t){for(var n=0,i=0;i>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var s=0;s4&&!R[wi[P-1]];--P);var I,C,$,T,M=l+5<<3,O=Ui(r,Ti)+Ui(s,Mi)+o,q=Ui(r,h)+Ui(s,v)+o+14+3*P+Ui(S,R)+(2*S[16]+3*S[17]+7*S[18]);if(M<=O&&M<=q)return Wi(t,c,e.subarray(u,u+l));if(Bi(t,c,1+(q15&&(Bi(t,c,D[F]>>>5&127),c+=D[F]>>>12)}}}else I=Oi,C=Ti,$=qi,T=Mi;for(F=0;F255){N=i[F]>>>18&31;Di(t,c,I[N+257]),c+=C[N+257],N>7&&(Bi(t,c,i[F]>>>23&31),c+=bi[N]);var H=31&i[F];Di(t,c,$[H]),c+=T[H],H>3&&(Di(t,c,i[F]>>>5&8191),c+=ki[H])}else Di(t,c,I[i[F]]),c+=C[i[F]];return Di(t,c,I[256]),c+C[256]},Gi=new yi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Vi=new _i(0),Qi=function(){for(var e=new yi(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),Ji=function(e,t,n,i,r){return function(e,t,n,i,r,s){var o=e.length,a=new _i(i+o+5*(1+Math.floor(o/7e3))+r),u=a.subarray(i,a.length-r),l=0;if(!t||o<8)for(var c=0;c<=o;c+=65535){var d=c+65535;d>>13,p=8191&h,v=(1<7e3||R>24576)&&T>423){l=zi(e,u,0,k,w,S,E,R,P,c-P,l),R=F=E=0,P=c;for(var M=0;M<286;++M)w[M]=0;for(M=0;M<30;++M)S[M]=0}var O=2,q=0,A=p,L=C-$&32767;if(T>2&&I==b(c-L))for(var B=Math.min(f,T)-1,D=Math.min(32767,c),N=Math.min(258,T);L<=D&&--A&&C!=$;){if(e[c+O]==e[c+O-L]){for(var H=0;HO){if(O=H,q=L,H>B)break;var j=Math.min(L,H-2),U=0;for(M=0;MU&&(U=z,$=W)}}}L+=(C=$)-($=g[C])+32768&32767}if(q){k[R++]=268435456|Ri[O]<<18|xi[q];var G=31&Ri[O],V=31&xi[q];E+=bi[G]+ki[V],++w[257+G],++S[V],x=c+O,++F}else k[R++]=e[c],++w[e[c]]}}l=zi(e,u,s,k,w,S,E,R,P,c-P,l),s||(l=Wi(u,l,Vi))}return Li(a,0,i+Ai(l)+r)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,i,!r)},Yi=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Xi(e,t){void 0===t&&(t={});var n=function(){var e=4294967295;return{p:function(t){for(var n=e,i=0;i>>8;e=n},d:function(){return 4294967295^e}}}(),i=e.length;n.p(e);var r,s=Ji(e,t,10+((r=t).filename&&r.filename.length+1||0),8),o=s.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Yi(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(s,t),Yi(s,o-8,n.d()),Yi(s,o-4,i),s}var Ki=!!B||!!L,Zi=\"text/plain\",er=function(e,n){var i=u(e.split(\"?\"),2),r=i[0],s=i[1],o=t({},n);null==s||s.split(\"&\").forEach((function(e){var t=u(e.split(\"=\"),1)[0];delete o[t]}));var a=at(o);return a=a?(s?s+\"&\":\"\")+a:s,\"\".concat(r,\"?\").concat(a)},tr=function(e){return\"data=\"+encodeURIComponent(\"string\"==typeof e?e:JSON.stringify(e))},nr=function(e){var t=e.data,n=e.compression;if(t){if(n===ne.GZipJS){var i=Xi(function(e,t){var n=e.length;if(!t&&\"undefined\"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var i=new _i(e.length+(e.length>>>1)),r=0,s=function(e){i[r++]=e},o=0;oi.length){var a=new _i(r+8+(n-o<<1));a.set(i),i=a}var u=e.charCodeAt(o);u<128||t?s(u):u<2048?(s(192|u>>>6),s(128|63&u)):u>55295&&u<57344?(s(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),s(128|u>>>12&63),s(128|u>>>6&63),s(128|63&u)):(s(224|u>>>12),s(128|u>>>6&63),s(128|63&u))}return Li(i,0,r)}(JSON.stringify(t)),{mtime:0});return{contentType:Zi,body:new Blob([i],{type:Zi})}}if(n===ne.Base64){var r=function(e){var t,n,i,r,s,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",a=0,u=0,l=\"\",c=[];if(!e)return e;e=ie(e);do{t=(s=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,n=s>>12&63,i=s>>6&63,r=63&s,c[u++]=o.charAt(t)+o.charAt(n)+o.charAt(i)+o.charAt(r)}while(a0&&(r.url=er(r.url,{retry_count:i})),this.instance._send_request(t(t({},r),{},{callback:function(e){var s;200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=i?i:0)<10?n.enqueue(t({},r)):null===(s=r.callback)||void 0===s||s.call(r,e)}}))}},{key:\"enqueue\",value:function(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var n=function(e){var t=3e3*Math.pow(2,e),n=t/2,i=Math.min(18e5,t),r=(Math.random()-.5)*(i-n);return Math.ceil(i+r)}(t),i=Date.now()+n;this.queue.push({retryAt:i,requestOptions:e});var r=\"Enqueued failed request for retry in \".concat(n);navigator.onLine||(r+=\" (Browser is offline)\"),U.warn(r),this.isPolling||(this.isPolling=!0,this.poll())}},{key:\"poll\",value:function(){var e=this;this.poller&&clearTimeout(this.poller),this.poller=setTimeout((function(){e.areWeOnline&&e.queue.length>0&&e.flush(),e.poll()}),this.pollIntervalMs)}},{key:\"flush\",value:function(){var e=Date.now(),t=[],n=this.queue.filter((function(n){return n.retryAt0){var i,r=h(n);try{for(r.s();!(i=r.n()).done;){var s=i.value.requestOptions;this.retriableRequest(s)}}catch(e){r.e(e)}finally{r.f()}}}},{key:\"unload\",value:function(){this.poller&&(clearTimeout(this.poller),this.poller=void 0);var e,n=h(this.queue);try{for(n.s();!(e=n.n()).done;){var i=e.value.requestOptions;try{this.instance._send_request(t(t({},i),{},{transport:\"sendBeacon\"}))}catch(e){U.error(e)}}}catch(e){n.e(e)}finally{n.f()}this.queue=[]}}]),e}(),cr=1800,dr=function(){function e(t,n,r,s){i(this,e),o(this,\"_sessionIdChangedHandlers\",[]),this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=r||je,this._windowIdGenerator=s||je;var a=t.persistence_name||t.token,u=t.session_idle_timeout_seconds||cr;if(R(u)?u>cr?U.warn(\"session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead.\"):u<60&&U.warn(\"session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead.\"):(U.warn(\"session_idle_timeout_seconds must be a number. Defaulting to 30 minutes.\"),u=cr),this._sessionTimeoutMs=1e3*Math.min(Math.max(u,60),cr),this._window_id_storage_key=\"ph_\"+a+\"_window_id\",this._primary_window_exists_storage_key=\"ph_\"+a+\"_primary_window_exists\",this._canUseSessionStorage()){var l=it.parse(this._window_id_storage_key),c=it.parse(this._primary_window_exists_storage_key);l&&!c?this._windowId=l:it.remove(this._window_id_storage_key),it.set(this._primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return s(e,[{key:\"onSessionId\",value:function(e){var t=this;return w(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(e),this._sessionId&&e(this._sessionId,this._windowId),function(){t._sessionIdChangedHandlers=t._sessionIdChangedHandlers.filter((function(t){return t!==e}))}}},{key:\"_canUseSessionStorage\",value:function(){return\"memory\"!==this.config.persistence&&!this.persistence.disabled&&it.is_supported()}},{key:\"_setWindowId\",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&it.set(this._window_id_storage_key,e))}},{key:\"_getWindowId\",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?it.parse(this._window_id_storage_key):null}},{key:\"_setSessionId\",value:function(e,t,n){e===this._sessionId&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this._sessionId=e,this.persistence.register(o({},ge,[t,e,n])))}},{key:\"_getSessionId\",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[ge];return m(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}},{key:\"resetSessionId\",value:function(){this._setSessionId(null,null,null)}},{key:\"_listenToReloadWindow\",value:function(){var e=this;null==I||I.addEventListener(\"beforeunload\",(function(){e._canUseSessionStorage()&&it.remove(e._primary_window_exists_storage_key)}))}},{key:\"checkAndGetSessionAndWindowId\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||(new Date).getTime(),n=u(this._getSessionId(),3),i=n[0],r=n[1],s=n[2],o=this._getWindowId(),a=s&&s>0&&Math.abs(t-s)>864e5,l=!1,c=!r,d=!e&&Math.abs(t-i)>this._sessionTimeoutMs;c||d||a?(r=this._sessionIdGenerator(),o=this._windowIdGenerator(),U.info(\"[SessionId] new session ID generated\",{sessionId:r,windowId:o,changeReason:{noSessionId:c,activityTimeout:d,sessionPastMaximumLength:a}}),s=t,l=!0):o||(o=this._windowIdGenerator(),l=!0);var h=0===i||!e||a?t:i,f=0===s?(new Date).getTime():s;return this._setWindowId(o),this._setSessionId(r,h,f),l&&this._sessionIdChangedHandlers.forEach((function(e){return e(r,o)})),{sessionId:r,windowId:o,sessionStartTimestamp:f}}}]),e}();!function(e){e.US=\"us\",e.EU=\"eu\",e.CUSTOM=\"custom\"}(ur||(ur={}));var hr=\"i.posthog.com\",fr=function(){function e(t){i(this,e),o(this,\"_regionCache\",{}),this.instance=t}return s(e,[{key:\"apiHost\",get:function(){return this.instance.config.api_host.trim().replace(/\\/$/,\"\")}},{key:\"uiHost\",get:function(){var e;return null===(e=this.instance.config.ui_host)||void 0===e?void 0:e.replace(/\\/$/,\"\")}},{key:\"region\",get:function(){return this._regionCache[this.apiHost]||(/https:\\/\\/(app|us|us-assets)(\\.i)?\\.posthog\\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=ur.US:/https:\\/\\/(eu|eu-assets)(\\.i)?\\.posthog\\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=ur.EU:this._regionCache[this.apiHost]=ur.CUSTOM),this._regionCache[this.apiHost]}},{key:\"endpointFor\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\";if(t&&(t=\"/\"===t[0]?t:\"/\".concat(t)),\"ui\"===e)return(this.uiHost||this.apiHost.replace(\".\".concat(hr),\".posthog.com\"))+t;if(this.region===ur.CUSTOM)return this.apiHost+t;var n=hr+t;switch(e){case\"assets\":return\"https://\".concat(this.region,\"-assets.\").concat(n);case\"api\":return\"https://\".concat(this.region,\".\").concat(n)}}}]),e}(),pr=s((function e(t,n,r,s){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[\"error\"];i(this,e),this.name=\"posthog-js\",this.setupOnce=function(e){e((function(e){var i,a,u,l,c;if(!(\"*\"===o||o.includes(e.level))||!t.__loaded)return e;e.tags||(e.tags={});var d=t.requestRouter.endpointFor(\"ui\",\"/project/\".concat(t.config.token,\"/person/\").concat(t.get_distinct_id()));e.tags[\"PostHog Person URL\"]=d,t.sessionRecordingStarted()&&(e.tags[\"PostHog Recording URL\"]=t.get_session_replay_url({withTimestamp:!0}));var h=(null===(i=e.exception)||void 0===i?void 0:i.values)||[],f={$exception_message:(null===(a=h[0])||void 0===a?void 0:a.value)||e.message,$exception_type:null===(u=h[0])||void 0===u?void 0:u.type,$exception_personURL:d,$sentry_event_id:e.event_id,$sentry_exception:e.exception,$sentry_exception_message:(null===(l=h[0])||void 0===l?void 0:l.value)||e.message,$sentry_exception_type:null===(c=h[0])||void 0===c?void 0:c.type,$sentry_tags:e.tags,$level:e.level};return n&&r&&(f.$sentry_url=(s||\"https://sentry.io/organizations/\")+n+\"/issues/?project=\"+r+\"&query=\"+e.event_id),t.capture(\"$exception\",f),e}))}}));function vr(e,t){var n=e.config.segment;if(!n)return t();!function(e,t){var n=e.config.segment;if(!n)return t();var i=function(n){var i=function(){return n.anonymousId()||je()};e.config.get_device_id=i,n.id()&&(e.register({distinct_id:n.id(),$device_id:i()}),e.persistence.set_property(Fe,\"identified\")),t()},r=n.user();\"then\"in r&&y(r.then)?r.then((function(e){return i(e)})):i(r)}(e,(function(){n.register(function(e){Promise&&Promise.resolve||U.warn(\"This browser does not have Promise support, and can not use the segment integration\");var t=function(t,n){var i;if(!n)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||e.reset(),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:t.event.userId}),e.reloadFeatureFlags());var r=e._calculate_event_properties(n,null!==(i=t.event.properties)&&void 0!==i?i:{});return t.event.properties=Object.assign({},r,t.event.properties),t};return{name:\"PostHog JS\",type:\"enrichment\",version:\"1.0.0\",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(e){return t(e,e.event.event)},page:function(e){return t(e,\"$pageview\")},identify:function(e){return t(e,\"$identify\")},screen:function(e){return t(e,\"$screen\")}}}(e)).then((function(){t()}))}))}var gr=function(){function e(t){i(this,e),this._instance=t}return s(e,[{key:\"doPageView\",value:function(){var e,t=this._previousScrollProperties();return this._currentPath=null!==(e=null==I?void 0:I.location.pathname)&&void 0!==e?e:\"\",this._instance.scrollManager.resetContext(),t}},{key:\"doPageLeave\",value:function(){return this._previousScrollProperties()}},{key:\"_previousScrollProperties\",value:function(){var e=this._currentPath,t=this._instance.scrollManager.getContext();if(!e||!t)return{};var n=t.maxScrollHeight,i=t.lastScrollY,r=t.maxScrollY,s=t.maxContentHeight,o=t.lastContentY,a=t.maxContentY;return w(n)||w(i)||w(r)||w(s)||w(o)||w(a)?{}:(n=Math.ceil(n),i=Math.ceil(i),r=Math.ceil(r),s=Math.ceil(s),o=Math.ceil(o),a=Math.ceil(a),{$prev_pageview_pathname:e,$prev_pageview_last_scroll:i,$prev_pageview_last_scroll_percentage:n<=1?1:_r(i/n,0,1),$prev_pageview_max_scroll:r,$prev_pageview_max_scroll_percentage:n<=1?1:_r(r/n,0,1),$prev_pageview_last_content:o,$prev_pageview_last_content_percentage:s<=1?1:_r(o/s,0,1),$prev_pageview_max_content:a,$prev_pageview_max_content_percentage:s<=1?1:_r(a/s,0,1)})}}]),e}();function _r(e,t,n){return Math.max(t,Math.min(e,n))}var mr={icontains:function(e){return!!I&&I.location.href.toLowerCase().indexOf(e.toLowerCase())>-1},regex:function(e){return!!I&&ot(I.location.href,e)},exact:function(e){return(null==I?void 0:I.location.href)===e}},yr=function(){function e(t){i(this,e),this.instance=t}return s(e,[{key:\"afterDecideResponse\",value:function(e){this._decideServerResponse=!!e.surveys,this.loadIfEnabled()}},{key:\"loadIfEnabled\",value:function(){var e=this,t=null==H?void 0:H.extendPostHogWithSurveys;this.instance.config.disable_surveys||!this._decideServerResponse||t||se(this.instance.requestRouter.endpointFor(\"assets\",\"/static/surveys.js\"),(function(t){if(t)return U.error(\"Could not load surveys script\",t);H.extendPostHogWithSurveys(e.instance)}))}},{key:\"getSurveys\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.instance.config.disable_surveys)return e([]);var i=this.instance.get_property(we);if(i&&!n)return e(i);this.instance._send_request({url:this.instance.requestRouter.endpointFor(\"api\",\"/api/surveys/?token=\".concat(this.instance.config.token)),method:\"GET\",transport:\"XHR\",callback:function(n){var i;if(200!==n.statusCode||!n.json)return e([]);var r=n.json.surveys||[];return null===(i=t.instance.persistence)||void 0===i||i.register(o({},we,r)),e(r)}})}},{key:\"getActiveMatchingSurveys\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.getSurveys((function(n){var i=n.filter((function(e){return!(!e.start_date||e.end_date)})).filter((function(e){var t,n,i,r;if(!e.conditions)return!0;var s=null===(t=e.conditions)||void 0===t||!t.url||mr[null!==(n=null===(i=e.conditions)||void 0===i?void 0:i.urlMatchType)&&void 0!==n?n:\"icontains\"](e.conditions.url),o=null===(r=e.conditions)||void 0===r||!r.selector||(null==q?void 0:q.querySelector(e.conditions.selector));return s&&o})).filter((function(e){if(!e.linked_flag_key&&!e.targeting_flag_key)return!0;var n=!e.linked_flag_key||t.instance.featureFlags.isFeatureEnabled(e.linked_flag_key),i=!e.targeting_flag_key||t.instance.featureFlags.isFeatureEnabled(e.targeting_flag_key);return n&&i}));return e(i)}),n)}}]),e}(),br=function(){function e(t){var n,r,s=this;i(this,e),o(this,\"serverLimits\",{}),o(this,\"lastEventRateLimited\",!1),o(this,\"checkForLimiting\",(function(e){var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach((function(e){U.info(\"[RateLimiter] \".concat(e||\"events\",\" is quota limited.\")),s.serverLimits[e]=(new Date).getTime()+6e4}))}catch(e){return void U.warn('[RateLimiter] could not rate limit - continuing. Error: \"'.concat(null==e?void 0:e.message,'\"'),{text:t})}})),this.instance=t,this.captureEventsPerSecond=(null===(n=t.config.rate_limiting)||void 0===n?void 0:n.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null===(r=t.config.rate_limiting)||void 0===r?void 0:r.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.isCaptureClientSideRateLimited(!0)}return s(e,[{key:\"isCaptureClientSideRateLimited\",value:function(){var e,t,n,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=(new Date).getTime(),s=null!==(e=null===(t=this.instance.persistence)||void 0===t?void 0:t.get_property(Re))&&void 0!==e?e:{tokens:this.captureEventsBurstLimit,last:r};s.tokens+=(r-s.last)/1e3*this.captureEventsPerSecond,s.last=r,s.tokens>this.captureEventsBurstLimit&&(s.tokens=this.captureEventsBurstLimit);var o=s.tokens<1;return o||i||(s.tokens=Math.max(0,s.tokens-1)),!o||this.lastEventRateLimited||i||this.instance.capture(\"$$client_ingestion_warning\",{$$client_ingestion_warning_message:\"posthog-js client rate limited. Config is set to \".concat(this.captureEventsPerSecond,\" events per second and \").concat(this.captureEventsBurstLimit,\" events burst limit.\")},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=o,null===(n=this.instance.persistence)||void 0===n||n.set_property(Re,s),o}},{key:\"isServerRateLimited\",value:function(e){var t=this.serverLimits[e||\"events\"]||!1;return!1!==t&&(new Date).getTime()e?t.slice(0,e)+\"...\":t}var $r=function(){function e(t){i(this,e),o(this,\"_initialized\",!1),o(this,\"_isDisabledServerSide\",null),o(this,\"rageclicks\",new Er),o(this,\"_elementsChainAsString\",!1),this.instance=t}return s(e,[{key:\"config\",get:function(){var e,t=b(this.instance.config.autocapture)?this.instance.config.autocapture:{};return t.url_allowlist=null===(e=t.url_allowlist)||void 0===e?void 0:e.map((function(e){return new RegExp(e)})),t}},{key:\"_addDomEventHandlers\",value:function(){var e=this;if(this.isBrowserSupported()){if(I&&q){var t=function(t){t=t||(null==I?void 0:I.event);try{e._captureEvent(t)}catch(e){U.error(\"Failed to capture event\",e)}},n=function(t){t=t||(null==I?void 0:I.event),e._captureEvent(t,Ir)};re(q,\"submit\",t,!1,!0),re(q,\"change\",t,!1,!0),re(q,\"click\",t,!1,!0),this.config.capture_copied_text&&(re(q,\"copy\",n,!1,!0),re(q,\"cut\",n,!1,!0))}}else U.info(\"Disabling Automatic Event Collection because this browser is not supported\")}},{key:\"startIfEnabled\",value:function(){this.isEnabled&&!this._initialized&&(this._addDomEventHandlers(),this._initialized=!0)}},{key:\"afterDecideResponse\",value:function(e){e.elementsChainAsString&&(this._elementsChainAsString=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register(o({},le,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this.startIfEnabled()}},{key:\"isEnabled\",get:function(){var e,t,n=null===(e=this.instance.persistence)||void 0===e?void 0:e.props[le],i=this._isDisabledServerSide;if(F(i)&&!x(n)&&!this.instance.config.advanced_disable_decide)return!1;var r=null!==(t=this._isDisabledServerSide)&&void 0!==t?t:!!n;return!!this.instance.config.autocapture&&!r}},{key:\"_previousElementSibling\",value:function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!yn(t));return t}},{key:\"_getAugmentPropertiesFromElement\",value:function(e){if(!Rn(e))return{};var t={};return V(e.attributes,(function(e){if(e.name&&0===e.name.indexOf(\"data-ph-capture-attribute\")){var n=e.name.replace(\"data-ph-capture-attribute-\",\"\"),i=e.value;n&&i&&On(i)&&(t[n]=i)}})),t}},{key:\"_getPropertiesFromElement\",value:function(e,t,n){var i,r=e.tagName.toLowerCase(),s={tag_name:r};Sn.indexOf(r)>-1&&!n&&(\"a\"===r.toLowerCase()||\"button\"===r.toLowerCase()?s.$el_text=Cr(1024,qn(e)):s.$el_text=Cr(1024,mn(e)));var o=gn(e);o.length>0&&(s.classes=o.filter((function(e){return\"\"!==e})));var a=null===(i=this.config)||void 0===i?void 0:i.element_attribute_ignorelist;V(e.attributes,(function(n){var i;if((!xn(e)||-1!==[\"name\",\"id\",\"class\",\"aria-label\"].indexOf(n.name))&&((null==a||!a.includes(n.name))&&!t&&On(n.value)&&(i=n.name,!S(i)||\"_ngcontent\"!==i.substring(0,10)&&\"_nghost\"!==i.substring(0,7)))){var r=n.value;\"class\"===n.name&&(r=vn(r).join(\" \")),s[\"attr__\"+n.name]=Cr(1024,r)}}));for(var u=1,l=1,c=e;c=this._previousElementSibling(c);)u++,c.tagName===e.tagName&&l++;return s.nth_child=u,s.nth_of_type=l,s}},{key:\"_getDefaultProperties\",value:function(e){return{$event_type:e,$ce_version:1}}},{key:\"_getEventTarget\",value:function(e){return w(e.target)?e.srcElement||null:null!==(t=e.target)&&void 0!==t&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}},{key:\"_captureEvent\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"$autocapture\";if(this.isEnabled){var i,r=this._getEventTarget(e);if(kn(r)&&(r=r.parentNode||null),\"$autocapture\"===n&&\"click\"===e.type&&e instanceof MouseEvent)this.instance.config.rageclick&&null!==(i=this.rageclicks)&&void 0!==i&&i.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._captureEvent(e,\"$rageclick\");var s=n===Ir;if(r&&En(r,e,this.config,s,s?[\"copy\",\"cut\"]:void 0)){for(var o,a,u=[r],l=r;l.parentNode&&!bn(l,\"body\");)wn(l.parentNode)?(u.push(l.parentNode.host),l=l.parentNode.host):(u.push(l.parentNode),l=l.parentNode);var c,d=[],h={},f=!1;if(V(u,(function(e){var n=Rn(e);\"a\"===e.tagName.toLowerCase()&&(c=e.getAttribute(\"href\"),c=n&&On(c)&&c),J(gn(e),\"ph-no-capture\")&&(f=!0),d.push(t._getPropertiesFromElement(e,t.instance.config.mask_all_element_attributes,t.instance.config.mask_all_text));var i=t._getAugmentPropertiesFromElement(e);Q(h,i)})),this.instance.config.mask_all_text||(\"a\"===r.tagName.toLowerCase()||\"button\"===r.tagName.toLowerCase()?d[0].$el_text=qn(r):d[0].$el_text=mn(r)),c&&(d[0].attr__href=c),f)return!1;var p=Q(this._getDefaultProperties(e.type),this._elementsChainAsString?{$elements_chain:Ln(d)}:{$elements:d},null!==(o=d[0])&&void 0!==o&&o.$el_text?{$el_text:null===(a=d[0])||void 0===a?void 0:a.$el_text}:{},h);if(n===Ir){var v,g=_n(null==I||null===(v=I.getSelection())||void 0===v?void 0:v.toString()),_=e.type||\"clipboard\";if(!g)return!1;p.$selected_content=g,p.$copy_type=_}return this.instance.capture(n,p),!0}}}},{key:\"isBrowserSupported\",value:function(){return y(null==q?void 0:q.querySelectorAll)}}]),e}(),Tr={},Mr=function(){},Or=\"posthog\",qr=!Ki&&-1===(null==N?void 0:N.indexOf(\"MSIE\"))&&-1===(null==N?void 0:N.indexOf(\"Mozilla\")),Ar=function(){var e,t,n;return{api_host:\"https://us.i.posthog.com\",api_transport:\"XHR\",ui_host:null,token:\"\",autocapture:!0,rageclick:!0,cross_subdomain_cookie:(t=null==q?void 0:q.location,n=null==t?void 0:t.hostname,!!S(n)&&\"herokuapp.com\"!==n.split(\".\").slice(-2).join(\".\")),persistence:\"localStorage+cookie\",persistence_name:\"\",loaded:Mr,store_google:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:!0,debug:A&&S(null==A?void 0:A.search)&&-1!==A.search.indexOf(\"__posthog_debug=true\")||!1,verbose:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_surveys:!1,enable_recording_console_log:void 0,secure_cookie:\"https:\"===(null==I||null===(e=I.location)||void 0===e?void 0:e.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:\"localStorage\",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},inapp_protocol:\"//\",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,on_request_error:function(e){var t=\"Bad HTTP status: \"+e.statusCode+\" \"+e.text;U.error(t)},get_device_id:function(e){return e},_onCapture:Mr,capture_performance:void 0,name:\"posthog\",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:\"always\"}},Lr=function(e){var t={};w(e.process_person)||(t.person_profiles=e.process_person),w(e.xhr_headers)||(t.request_headers=e.xhr_headers),w(e.cookie_name)||(t.persistence_name=e.cookie_name),w(e.disable_cookie)||(t.disable_persistence=e.disable_cookie);var n=Q({},t,e);return m(e.property_blacklist)&&(w(e.property_denylist)?n.property_denylist=e.property_blacklist:m(e.property_denylist)?n.property_denylist=[].concat(l(e.property_blacklist),l(e.property_denylist)):U.error(\"Invalid value for property_denylist config: \"+e.property_denylist)),n},Br=function(){function e(){i(this,e),o(this,\"__forceAllowLocalhost\",!1)}return s(e,[{key:\"_forceAllowLocalhost\",get:function(){return this.__forceAllowLocalhost},set:function(e){U.error(\"WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`\"),this.__forceAllowLocalhost=e}}]),e}(),Dr=function(){function e(){var t=this;i(this,e),o(this,\"webPerformance\",new Br),o(this,\"_debugEventEmitter\",new Pr),this.config=Ar(),this.decideEndpointWasHit=!1,this.SentryIntegration=pr,this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint=\"/e/\",this.featureFlags=new qe(this),this.toolbar=new vi(this),this.scrollManager=new xr(this),this.pageViewManager=new gr(this),this.surveys=new yr(this),this.rateLimiter=new br(this),this.requestRouter=new fr(this),this.people={set:function(e,n,i){var r=S(e)?o({},e,n):e;t.setPersonProperties(r),null==i||i({})},set_once:function(e,n,i){var r=S(e)?o({},e,n):e;t.setPersonProperties(void 0,r),null==i||i({})}},this.on(\"eventCaptured\",(function(e){return U.info(\"send\",e)}))}return s(e,[{key:\"init\",value:function(t,n,i){if(i&&i!==Or){var r,s=null!==(r=Tr[i])&&void 0!==r?r:new e;return s._init(t,n,i),Tr[i]=s,Tr[Or][i]=s,s}return this._init(t,n,i)}},{key:\"_init\",value:function(e){var n,i,r=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if(w(e)||function(e){return S(e)&&0===e.trim().length}(e))return U.critical(\"PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()\"),this;if(this.__loaded)return U.warn(\"You have already initialized PostHog! Re-initializing is a no-op\"),this;if(this.__loaded=!0,this.config={},this._triggered_notifs=[],this.set_config(Q({},Ar(),Lr(s),{name:o,token:e})),this.compression=s.disable_compression?void 0:ne.Base64,this.persistence=new cn(this.config),this.sessionPersistence=\"sessionStorage\"===this.config.persistence?this.persistence:new cn(t(t({},this.config),{},{persistence:\"sessionStorage\"})),this._requestQueue=new gi((function(e){return r._send_request(e)})),this._retryQueue=new lr(this),this.__request_queue=[],this.sessionManager=new dr(this.config,this.persistence),this.sessionPropsManager=new wr(this.sessionManager,this.persistence),this.sessionRecording=new di(this),this.sessionRecording.startIfEnabledOrStop(),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new $r(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new Rr(this),this.heatmaps.startIfEnabled(),f.DEBUG=f.DEBUG||this.config.debug,this._gdpr_init(),void 0!==(null===(n=s.bootstrap)||void 0===n?void 0:n.distinctID)){var a,u,l=this.config.get_device_id(je()),c=null!==(a=s.bootstrap)&&void 0!==a&&a.isIdentifiedID?l:s.bootstrap.distinctID;this.persistence.set_property(Fe,null!==(u=s.bootstrap)&&void 0!==u&&u.isIdentifiedID?\"identified\":\"anonymous\"),this.register({distinct_id:s.bootstrap.distinctID,$device_id:c})}if(this._hasBootstrappedFeatureFlags()){var d,h,p=Object.keys((null===(d=s.bootstrap)||void 0===d?void 0:d.featureFlags)||{}).filter((function(e){var t,n;return!(null===(t=s.bootstrap)||void 0===t||null===(n=t.featureFlags)||void 0===n||!n[e])})).reduce((function(e,t){var n,i;return e[t]=(null===(n=s.bootstrap)||void 0===n||null===(i=n.featureFlags)||void 0===i?void 0:i[t])||!1,e}),{}),v=Object.keys((null===(h=s.bootstrap)||void 0===h?void 0:h.featureFlagPayloads)||{}).filter((function(e){return p[e]})).reduce((function(e,t){var n,i,r,o;null!==(n=s.bootstrap)&&void 0!==n&&null!==(i=n.featureFlagPayloads)&&void 0!==i&&i[t]&&(e[t]=null===(r=s.bootstrap)||void 0===r||null===(o=r.featureFlagPayloads)||void 0===o?void 0:o[t]);return e}),{});this.featureFlags.receivedFeatureFlags({featureFlags:p,featureFlagPayloads:v})}if(!this.get_distinct_id()){var g=this.config.get_device_id(je());this.register_once({distinct_id:g,$device_id:g},\"\"),this.persistence.set_property(Fe,\"anonymous\")}return null==I||null===(i=I.addEventListener)||void 0===i||i.call(I,\"onpagehide\"in self?\"pagehide\":\"unload\",this._handle_unload.bind(this)),this.toolbar.maybeLoadToolbar(),s.segment?vr(this,(function(){return r._loaded()})):this._loaded(),y(this.config._onCapture)&&this.on(\"eventCaptured\",(function(e){return r.config._onCapture(e.event,e)})),this}},{key:\"_afterDecideResponse\",value:function(e){var t,n,i,r;this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=J(e.supportedCompression,ne.GZipJS)?ne.GZipJS:J(e.supportedCompression,ne.Base64)?ne.Base64:void 0),null!==(t=e.analytics)&&void 0!==t&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),null===(n=this.sessionRecording)||void 0===n||n.afterDecideResponse(e),null===(i=this.autocapture)||void 0===i||i.afterDecideResponse(e),null===(r=this.surveys)||void 0===r||r.afterDecideResponse(e)}},{key:\"_loaded\",value:function(){var e=this,t=this.config.advanced_disable_decide;t||this.featureFlags.setReloadingPaused(!0);try{this.config.loaded(this)}catch(e){U.critical(\"`loaded` function failed\",e)}this._start_queue_if_opted_in(),this.config.capture_pageview&&setTimeout((function(){q&&e.capture(\"$pageview\",{title:q.title},{send_instantly:!0})}),1),t||(new hi(this).call(),this.featureFlags.resetRequestQueue())}},{key:\"_start_queue_if_opted_in\",value:function(){var e;this.has_opted_out_capturing()||this.config.request_batching&&(null===(e=this._requestQueue)||void 0===e||e.enable())}},{key:\"_dom_loaded\",value:function(){var e=this;this.has_opted_out_capturing()||G(this.__request_queue,(function(t){return e._send_retriable_request(t)})),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:\"_handle_unload\",value:function(){var e,t;this.config.request_batching?(this.config.capture_pageview&&this.config.capture_pageleave&&this.capture(\"$pageleave\"),null===(e=this._requestQueue)||void 0===e||e.unload(),null===(t=this._retryQueue)||void 0===t||t.unload()):this.config.capture_pageview&&this.config.capture_pageleave&&this.capture(\"$pageleave\",null,{transport:\"sendBeacon\"})}},{key:\"_send_request\",value:function(e){var n=this;this.__loaded&&(qr?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=er(e.url,{ip:this.config.ip?1:0}),e.headers=this.config.request_headers,e.compression=\"best-available\"===e.compression?this.compression:e.compression,function(e){var n=t({},e);n.timeout=n.timeout||6e4,n.url=er(n.url,{_:(new Date).getTime().toString(),ver:f.LIB_VERSION,compression:n.compression}),\"sendBeacon\"===n.transport&&null!=O&&O.sendBeacon?sr(n):\"fetch\"===n.transport&&L?rr(n):B||!q?ir(n):or(n)}(t(t({},e),{},{callback:function(t){var i,r,s;(n.rateLimiter.checkForLimiting(t),t.statusCode>=400)&&(null===(r=(s=n.config).on_request_error)||void 0===r||r.call(s,t));null===(i=e.callback)||void 0===i||i.call(e,t)}}))))}},{key:\"_send_retriable_request\",value:function(e){this._retryQueue?this._retryQueue.retriableRequest(e):this._send_request(e)}},{key:\"_execute_array\",value:function(e){var t,n=this,i=[],r=[],s=[];G(e,(function(e){e&&(t=e[0],m(t)?s.push(e):y(e)?e.call(n):m(e)&&\"alias\"===t?i.push(e):m(e)&&-1!==t.indexOf(\"capture\")&&y(n[t])?s.push(e):r.push(e))}));var o=function(e,t){G(e,(function(e){if(m(e[0])){var n=t;V(e,(function(e){n=n[e[0]].apply(n,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};o(i,this),o(r,this),o(s,this)}},{key:\"_hasBootstrappedFeatureFlags\",value:function(){var e,t;return(null===(e=this.config.bootstrap)||void 0===e?void 0:e.featureFlags)&&Object.keys(null===(t=this.config.bootstrap)||void 0===t?void 0:t.featureFlags).length>0||!1}},{key:\"push\",value:function(e){this._execute_array([e])}},{key:\"capture\",value:function(e,n,i){var r;if(!(this.__loaded&&this.persistence&&this.sessionPersistence&&this._requestQueue))return U.uninitializedWarning(\"posthog.capture\");if(!ri(this))if(null!=i&&i.skip_client_rate_limiting||!this.rateLimiter.isCaptureClientSideRateLimited())if(!w(e)&&S(e)){if(!N||this.config.opt_out_useragent_filter||!Fr(N,this.config.custom_blocked_useragents)){this.sessionPersistence.update_search_keyword(),this.config.store_google&&(this.sessionPersistence.update_campaign_params(),this.persistence.set_initial_campaign_params()),this.config.save_referrer&&(this.sessionPersistence.update_referrer_info(),this.persistence.set_initial_referrer_info());var s={uuid:je(),event:e,properties:this._calculate_event_properties(e,n||{})};if(null==i||!i._noHeatmaps){var o,a=null===(o=this.heatmaps)||void 0===o?void 0:o.getAndClearBuffer();a&&(s.properties.$heatmap_data=a)}(null==i?void 0:i.$set)&&(s.$set=null==i?void 0:i.$set);var u=this._calculate_set_once_properties(null==i?void 0:i.$set_once);u&&(s.$set_once=u),(s=te(s,null!=i&&i._noTruncate?null:this.config.properties_string_max_length)).timestamp=(null==i?void 0:i.timestamp)||new Date,w(null==i?void 0:i.timestamp)||(s.properties.$event_time_override_provided=!0,s.properties.$event_time_override_system_time=new Date);var l=t(t({},s.properties.$set),s.$set);k(l)||this.setPersonPropertiesForFlags(l),this._debugEventEmitter.emit(\"eventCaptured\",s);var c={method:\"POST\",url:null!==(r=null==i?void 0:i._url)&&void 0!==r?r:this.requestRouter.endpointFor(\"api\",this.analyticsDefaultEndpoint),data:s,compression:\"best-available\",batchKey:null==i?void 0:i._batchKey};return!this.config.request_batching||i&&(null==i||!i._batchKey)||null!=i&&i.send_instantly?this._send_retriable_request(c):this._requestQueue.enqueue(c),s}}else U.error(\"No event name provided to posthog.capture\");else U.critical(\"This capture call is ignored due to client rate limiting.\")}},{key:\"_addCaptureHook\",value:function(e){this.on(\"eventCaptured\",(function(t){return e(t.event)}))}},{key:\"_calculate_event_properties\",value:function(e,n){if(!this.persistence||!this.sessionPersistence)return n;var i=this.persistence.remove_event_timer(e),r=t({},n);if(r.token=this.config.token,\"$snapshot\"===e){var s=t(t({},this.persistence.properties()),this.sessionPersistence.properties());return r.distinct_id=s.distinct_id,r}var o=un.properties();if(this.sessionManager){var a=this.sessionManager.checkAndGetSessionAndWindowId(),u=a.sessionId,l=a.windowId;r.$session_id=u,r.$window_id=l}if(this.requestRouter.region===ur.CUSTOM&&(r.$lib_custom_api_host=this.config.api_host),this.sessionPropsManager&&this.config.__preview_send_client_session_params&&(\"$pageview\"===e||\"$pageleave\"===e||\"$autocapture\"===e)){var c=this.sessionPropsManager.getSessionProps();r=Q(r,c)}if(!this.config.disable_scroll_properties){var d={};\"$pageview\"===e?d=this.pageViewManager.doPageView():\"$pageleave\"===e&&(d=this.pageViewManager.doPageLeave()),r=Q(r,d)}if(\"$pageview\"===e&&q&&(r.title=q.title),!w(i)){var h=(new Date).getTime()-i;r.$duration=parseFloat((h/1e3).toFixed(3))}N&&this.config.opt_out_useragent_filter&&(r.$browser_type=Fr(N,this.config.custom_blocked_useragents)?\"bot\":\"browser\"),(r=Q({},o,this.persistence.properties(),this.sessionPersistence.properties(),r)).$is_identified=this._isIdentified(),m(this.config.property_denylist)?V(this.config.property_denylist,(function(e){delete r[e]})):U.error(\"Invalid value for property_denylist config: \"+this.config.property_denylist+\" or property_blacklist config: \"+this.config.property_blacklist);var f=this.config.sanitize_properties;return f&&(r=f(r,e)),r.$process_person_profile=this._hasPersonProcessing(),r}},{key:\"_calculate_set_once_properties\",value:function(e){if(!this.persistence||!this._hasPersonProcessing())return e;var t=Q({},this.persistence.get_initial_props(),e||{});return k(t)?void 0:t}},{key:\"register\",value:function(e,t){var n;null===(n=this.persistence)||void 0===n||n.register(e,t)}},{key:\"register_once\",value:function(e,t,n){var i;null===(i=this.persistence)||void 0===i||i.register_once(e,t,n)}},{key:\"register_for_session\",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.register(e)}},{key:\"unregister\",value:function(e){var t;null===(t=this.persistence)||void 0===t||t.unregister(e)}},{key:\"unregister_for_session\",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.unregister(e)}},{key:\"_register_single\",value:function(e,t){this.register(o({},e,t))}},{key:\"getFeatureFlag\",value:function(e,t){return this.featureFlags.getFeatureFlag(e,t)}},{key:\"getFeatureFlagPayload\",value:function(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(e){return t}}},{key:\"isFeatureEnabled\",value:function(e,t){return this.featureFlags.isFeatureEnabled(e,t)}},{key:\"reloadFeatureFlags\",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:\"updateEarlyAccessFeatureEnrollment\",value:function(e,t){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t)}},{key:\"getEarlyAccessFeatures\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,t)}},{key:\"on\",value:function(e,t){return this._debugEventEmitter.on(e,t)}},{key:\"onFeatureFlags\",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:\"onSessionId\",value:function(e){var t,n;return null!==(t=null===(n=this.sessionManager)||void 0===n?void 0:n.onSessionId(e))&&void 0!==t?t:function(){}}},{key:\"getSurveys\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getSurveys(e,t)}},{key:\"getActiveMatchingSurveys\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getActiveMatchingSurveys(e,t)}},{key:\"identify\",value:function(e,t,n){if(!this.__loaded||!this.persistence)return U.uninitializedWarning(\"posthog.identify\");if(R(e)&&(e=e.toString(),U.warn(\"The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.\")),e){if([\"distinct_id\",\"distinctid\"].includes(e.toLowerCase()))U.critical('The string \"'.concat(e,'\" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'));else if(this._requirePersonProcessing(\"posthog.identify\")){var i=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property(\"$device_id\")){var r=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:r},\"\")}e!==i&&e!==this.get_property(ae)&&(this.unregister(ae),this.register({distinct_id:e}));var s=\"anonymous\"===(this.persistence.get_property(Fe)||\"anonymous\");e!==i&&s?(this.persistence.set_property(Fe,\"identified\"),this.setPersonPropertiesForFlags(t||{},!1),this.capture(\"$identify\",{distinct_id:e,$anon_distinct_id:i},{$set:t||{},$set_once:n||{}}),this.featureFlags.setAnonymousDistinctId(i)):(t||n)&&this.setPersonProperties(t,n),e!==i&&(this.reloadFeatureFlags(),this.unregister(Se))}}else U.error(\"Unique user id has not been set in posthog.identify\")}},{key:\"setPersonProperties\",value:function(e,t){(e||t)&&this._requirePersonProcessing(\"posthog.setPersonProperties\")&&(this.setPersonPropertiesForFlags(e||{}),this.capture(\"$set\",{$set:e||{},$set_once:t||{}}))}},{key:\"group\",value:function(e,n,i){if(e&&n){if(this._requirePersonProcessing(\"posthog.group\")){var r=this.getGroups();r[e]!==n&&this.resetGroupPropertiesForFlags(e),this.register({$groups:t(t({},r),{},o({},e,n))}),i&&(this.capture(\"$groupidentify\",{$group_type:e,$group_key:n,$group_set:i}),this.setGroupPropertiesForFlags(o({},e,i))),r[e]===n||i||this.reloadFeatureFlags()}}else U.error(\"posthog.group requires a group type and group key\")}},{key:\"resetGroups\",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:\"setPersonPropertiesForFlags\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing(\"posthog.setPersonPropertiesForFlags\")&&this.featureFlags.setPersonPropertiesForFlags(e,t)}},{key:\"resetPersonPropertiesForFlags\",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:\"setGroupPropertiesForFlags\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing(\"posthog.setGroupPropertiesForFlags\")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}},{key:\"resetGroupPropertiesForFlags\",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:\"reset\",value:function(e){var t,n,i,r;if(!this.__loaded)return U.uninitializedWarning(\"posthog.reset\");var s=this.get_property(\"$device_id\");null===(t=this.persistence)||void 0===t||t.clear(),null===(n=this.sessionPersistence)||void 0===n||n.clear(),null===(i=this.persistence)||void 0===i||i.set_property(Fe,\"anonymous\"),null===(r=this.sessionManager)||void 0===r||r.resetSessionId();var o=this.config.get_device_id(je());this.register_once({distinct_id:o,$device_id:e?o:s},\"\")}},{key:\"get_distinct_id\",value:function(){return this.get_property(\"distinct_id\")}},{key:\"getGroups\",value:function(){return this.get_property(\"$groups\")||{}}},{key:\"get_session_id\",value:function(){var e,t;return null!==(e=null===(t=this.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:\"\"}},{key:\"get_session_replay_url\",value:function(e){if(!this.sessionManager)return\"\";var t=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=t.sessionId,i=t.sessionStartTimestamp,r=this.requestRouter.endpointFor(\"ui\",\"/project/\".concat(this.config.token,\"/replay/\").concat(n));if(null!=e&&e.withTimestamp&&i){var s,o=null!==(s=e.timestampLookBack)&&void 0!==s?s:10;if(!i)return r;var a=Math.max(Math.floor(((new Date).getTime()-i)/1e3)-o,0);r+=\"?t=\".concat(a)}return r}},{key:\"alias\",value:function(e,t){return e===this.get_property(oe)?(U.critical(\"Attempting to create alias for existing People user - aborting.\"),-2):this._requirePersonProcessing(\"posthog.alias\")?(w(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(ae,e),this.capture(\"$create_alias\",{alias:e,distinct_id:t})):(U.warn(\"alias matches current distinct_id - skipping api call.\"),this.identify(e),-1)):void 0}},{key:\"set_config\",value:function(e){var n,i,r,s,o=t({},this.config);b(e)&&(Q(this.config,Lr(e)),null===(n=this.persistence)||void 0===n||n.update_config(this.config,o),this.sessionPersistence=\"sessionStorage\"===this.config.persistence?this.persistence:new cn(t(t({},this.config),{},{persistence:\"sessionStorage\"})),Xe.is_supported()&&\"true\"===Xe.get(\"ph_debug\")&&(this.config.debug=!0),this.config.debug&&(f.DEBUG=!0),null===(i=this.sessionRecording)||void 0===i||i.startIfEnabledOrStop(),null===(r=this.autocapture)||void 0===r||r.startIfEnabled(),null===(s=this.heatmaps)||void 0===s||s.startIfEnabled(),this.surveys.loadIfEnabled())}},{key:\"startSessionRecording\",value:function(e){if(null!=e&&e.sampling){var t,n,i=null===(t=this.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId();null===(n=this.persistence)||void 0===n||n.register(o({},_e,!0)),U.info(\"Session recording started with sampling override for session: \",null==i?void 0:i.sessionId)}this.set_config({disable_session_recording:!1})}},{key:\"stopSessionRecording\",value:function(){this.set_config({disable_session_recording:!0})}},{key:\"sessionRecordingStarted\",value:function(){var e;return!(null===(e=this.sessionRecording)||void 0===e||!e.started)}},{key:\"loadToolbar\",value:function(e){return this.toolbar.loadToolbar(e)}},{key:\"get_property\",value:function(e){var t;return null===(t=this.persistence)||void 0===t?void 0:t.props[e]}},{key:\"getSessionProperty\",value:function(e){var t;return null===(t=this.sessionPersistence)||void 0===t?void 0:t.props[e]}},{key:\"toString\",value:function(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:Or;return t!==Or&&(t=Or+\".\"+t),t}},{key:\"_isIdentified\",value:function(){var e,t;return\"identified\"===(null===(e=this.persistence)||void 0===e?void 0:e.get_property(Fe))||\"identified\"===(null===(t=this.sessionPersistence)||void 0===t?void 0:t.get_property(Fe))}},{key:\"_hasPersonProcessing\",value:function(){var e,t,n,i;return!(\"never\"===this.config.person_profiles||\"identified_only\"===this.config.person_profiles&&!this._isIdentified()&&k(this.getGroups())&&(null===(e=this.persistence)||void 0===e||null===(t=e.props)||void 0===t||!t[ae])&&(null===(n=this.persistence)||void 0===n||null===(i=n.props)||void 0===i||!i[Ie]))}},{key:\"_requirePersonProcessing\",value:function(e){return\"never\"===this.config.person_profiles?(U.error(e+' was called, but process_person is set to \"never\". This call will be ignored.'),!1):(this._register_single(Ie,!0),!0)}},{key:\"_gdpr_init\",value:function(){\"localStorage\"===this.config.opt_out_capturing_persistence_type&&Xe.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:\"cookie\"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:\"cookie\"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:\"cookie\",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.config.opt_out_capturing_by_default&&!Je.get(\"ph_optout\")||(Je.remove(\"ph_optout\"),this.opt_out_capturing({clear_persistence:this.config.opt_out_persistence_by_default}))}},{key:\"_gdpr_update_persistence\",value:function(e){var t,n,i,r,s;if(e&&e.clear_persistence)i=!0;else{if(!e||!e.enable_persistence)return;i=!1}this.config.disable_persistence||(null===(t=this.persistence)||void 0===t?void 0:t.disabled)===i||(null===(r=this.persistence)||void 0===r||r.set_disabled(i));this.config.disable_persistence||(null===(n=this.sessionPersistence)||void 0===n?void 0:n.disabled)===i||(null===(s=this.sessionPersistence)||void 0===s||s.set_disabled(i))}},{key:\"_gdpr_call_func\",value:function(e,t){return t=Q({capture:this.capture.bind(this),persistence_type:this.config.opt_out_capturing_persistence_type,cookie_prefix:this.config.opt_out_capturing_cookie_prefix,cookie_expiration:this.config.cookie_expiration,cross_subdomain_cookie:this.config.cross_subdomain_cookie,secure_cookie:this.config.secure_cookie},t||{}),Xe.is_supported()||\"localStorage\"!==t.persistence_type||(t.persistence_type=\"cookie\"),e(this.config.token,{capture:t.capture,captureEventName:t.capture_event_name,captureProperties:t.capture_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieExpiration:t.cookie_expiration,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie})}},{key:\"opt_in_capturing\",value:function(e){e=Q({enable_persistence:!0},e||{}),this._gdpr_call_func(Jn,e),this._gdpr_update_persistence(e)}},{key:\"opt_out_capturing\",value:function(e){var t=Q({clear_persistence:!0},e||{});this._gdpr_call_func(Yn,t),this._gdpr_update_persistence(t)}},{key:\"has_opted_in_capturing\",value:function(e){return this._gdpr_call_func(Xn,e)}},{key:\"has_opted_out_capturing\",value:function(e){return this._gdpr_call_func(Kn,e)}},{key:\"clear_opt_in_out_capturing\",value:function(e){var t=Q({enable_persistence:!0},null!=e?e:{});this._gdpr_call_func(Zn,t),this._gdpr_update_persistence(t)}},{key:\"debug\",value:function(e){!1===e?(null==I||I.console.log(\"You've disabled debug mode.\"),localStorage&&localStorage.removeItem(\"ph_debug\"),this.set_config({debug:!1})):(null==I||I.console.log(\"You're now in debug mode. All calls to PostHog will be logged in your console.\\nYou can disable this with `posthog.debug(false)`.\"),localStorage&&localStorage.setItem(\"ph_debug\",\"true\"),this.set_config({debug:!0}))}}]),e}();!function(e,t){for(var n=0;n 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