{
  "version": 3,
  "sources": ["../../../../node_modules/react-dom/client.js", "../../../../node_modules/rehackt/index.js", "../../../../node_modules/@contentful/rich-text-types/src/blocks.ts", "../../../../node_modules/@contentful/rich-text-types/src/inlines.ts", "../../../../node_modules/@contentful/rich-text-types/src/marks.ts", "../../../../node_modules/@contentful/rich-text-types/src/schemaConstraints.ts", "../../../../node_modules/@contentful/rich-text-types/src/emptyDocument.ts", "../../../../node_modules/@contentful/rich-text-types/src/helpers.ts", "../../../../node_modules/@contentful/rich-text-types/src/index.ts", "../../../../node_modules/@contentful/rich-text-plain-text-renderer/src/index.ts", "../../node_modules/cross-fetch/dist/browser-ponyfill.js", "../../../../node_modules/@snapchat/graphene/node_modules/long/src/long.js", "../../../../node_modules/@protobufjs/aspromise/index.js", "../../../../node_modules/@protobufjs/base64/index.js", "../../../../node_modules/@protobufjs/eventemitter/index.js", "../../../../node_modules/@protobufjs/float/index.js", "../../../../node_modules/@protobufjs/inquire/index.js", "../../../../node_modules/@protobufjs/utf8/index.js", "../../../../node_modules/@protobufjs/pool/index.js", "../../../../node_modules/protobufjs/src/util/longbits.js", "../../../../node_modules/protobufjs/src/util/minimal.js", "../../../../node_modules/protobufjs/src/writer.js", "../../../../node_modules/protobufjs/src/writer_buffer.js", "../../../../node_modules/protobufjs/src/reader.js", "../../../../node_modules/protobufjs/src/reader_buffer.js", "../../../../node_modules/protobufjs/src/rpc/service.js", "../../../../node_modules/protobufjs/src/rpc.js", "../../../../node_modules/protobufjs/src/roots.js", "../../../../node_modules/protobufjs/src/index-minimal.js", "../../../../node_modules/protobufjs/minimal.js", "../../../../node_modules/lodash/head.js", "../../../../node_modules/lodash/isUndefined.js", "../../../../node_modules/lodash/_baseIsMatch.js", "../../../../node_modules/lodash/_isStrictComparable.js", "../../../../node_modules/lodash/_getMatchData.js", "../../../../node_modules/lodash/_matchesStrictComparable.js", "../../../../node_modules/lodash/_baseMatches.js", "../../../../node_modules/lodash/get.js", "../../../../node_modules/lodash/_baseHasIn.js", "../../../../node_modules/lodash/_hasPath.js", "../../../../node_modules/lodash/hasIn.js", "../../../../node_modules/lodash/_baseMatchesProperty.js", "../../../../node_modules/lodash/_baseProperty.js", "../../../../node_modules/lodash/_basePropertyDeep.js", "../../../../node_modules/lodash/property.js", "../../../../node_modules/lodash/_baseIteratee.js", "../../../../node_modules/lodash/_baseSet.js", "../../../../node_modules/lodash/_basePickBy.js", "../../../../node_modules/lodash/pickBy.js", "../../node_modules/node_modules/escape-html/index.js", "../../node_modules/@contentful/rich-text-types/src/blocks.ts", "../../node_modules/@contentful/rich-text-types/src/inlines.ts", "../../node_modules/@contentful/rich-text-types/src/marks.ts", "../../node_modules/@contentful/rich-text-types/src/schemaConstraints.ts", "../../node_modules/@contentful/rich-text-types/src/emptyDocument.ts", "../../node_modules/@contentful/rich-text-types/src/helpers.ts", "../../node_modules/@contentful/rich-text-types/src/index.ts", "../../node_modules/@contentful/rich-text-html-renderer/src/index.ts", "../../../../node_modules/lodash/_arrayReduce.js", "../../../../node_modules/lodash/_basePropertyOf.js", "../../../../node_modules/lodash/_deburrLetter.js", "../../../../node_modules/lodash/deburr.js", "../../../../node_modules/lodash/_asciiWords.js", "../../../../node_modules/lodash/_hasUnicodeWord.js", "../../../../node_modules/lodash/_unicodeWords.js", "../../../../node_modules/lodash/words.js", "../../../../node_modules/lodash/_createCompounder.js", "../../../../node_modules/lodash/snakeCase.js", "../../../../node_modules/lodash/noop.js", "../../../../node_modules/multiselect-react-dropdown/node_modules/style-inject/dist/style-inject.es.js", "../../../../node_modules/multiselect-react-dropdown/src/multiselect/multiselect.component.tsx", "../../../../node_modules/multiselect-react-dropdown/dist/index.js", "../../../../node_modules/lodash/_createBaseFor.js", "../../../../node_modules/lodash/_baseFor.js", "../../../../node_modules/lodash/_baseForOwn.js", "../../../../node_modules/lodash/mapValues.js", "../../../../node_modules/react-fast-compare/index.js", "../../../../node_modules/invariant/browser.js", "../../../../node_modules/shallowequal/index.js", "../../../../node_modules/ms/index.js", "../../../../node_modules/debug/src/common.js", "../../../../node_modules/debug/src/browser.js", "../../../../node_modules/jsonp/index.js", "../../../../node_modules/lodash/isString.js", "../../../../node_modules/lodash/_asciiSize.js", "../../../../node_modules/lodash/_hasUnicode.js", "../../../../node_modules/lodash/_unicodeSize.js", "../../../../node_modules/lodash/_stringSize.js", "../../../../node_modules/lodash/size.js", "../../../../node_modules/isarray/index.js", "../../../../node_modules/react-router/node_modules/path-to-regexp/index.js", "../../../../node_modules/@contentful/rich-text-types/src/blocks.ts", "../../../../node_modules/@contentful/rich-text-types/src/inlines.ts", "../../../../node_modules/@contentful/rich-text-types/src/marks.ts", "../../../../node_modules/@contentful/rich-text-types/src/schemaConstraints.ts", "../../../../node_modules/@contentful/rich-text-types/dist/types.js", "../../../../node_modules/@contentful/rich-text-types/dist/nodeTypes.js", "../../../../node_modules/@contentful/rich-text-types/src/emptyDocument.ts", "../../../../node_modules/@contentful/rich-text-types/src/helpers.ts", "../../../../node_modules/@contentful/rich-text-types/src/schemas/index.ts", "../../../../node_modules/@contentful/rich-text-types/src/index.ts", "../../../../node_modules/lodash/_assignMergeValue.js", "../../../../node_modules/lodash/isArrayLikeObject.js", "../../../../node_modules/lodash/_safeGet.js", "../../../../node_modules/lodash/toPlainObject.js", "../../../../node_modules/lodash/_baseMergeDeep.js", "../../../../node_modules/lodash/_baseMerge.js", "../../../../node_modules/lodash/merge.js", "../../../../node_modules/lodash/_baseInverter.js", "../../../../node_modules/lodash/_createInverter.js", "../../../../node_modules/lodash/invert.js", "../../../../node_modules/lodash/cloneDeep.js", "../../../../node_modules/lodash/_createBaseEach.js", "../../../../node_modules/lodash/_baseEach.js", "../../../../node_modules/lodash/_castFunction.js", "../../../../node_modules/lodash/forEach.js", "../../../../node_modules/@contentful/rich-text-types/src/blocks.ts", "../../../../node_modules/@contentful/rich-text-types/src/inlines.ts", "../../../../node_modules/@contentful/rich-text-types/src/marks.ts", "../../../../node_modules/@contentful/rich-text-types/src/schemaConstraints.ts", "../../../../node_modules/@contentful/rich-text-types/src/emptyDocument.ts", "../../../../node_modules/@contentful/rich-text-types/src/helpers.ts", "../../../../node_modules/@contentful/rich-text-types/src/index.ts", "../../../../node_modules/@contentful/rich-text-react-renderer/src/util/appendKeyToValidElement.ts", "../../../../node_modules/@contentful/rich-text-react-renderer/src/util/nodeListToReactComponents.tsx", "../../../../node_modules/@contentful/rich-text-react-renderer/src/index.tsx", "../../../../node_modules/lodash/isNull.js", "../../../../node_modules/promise-memoize/lib/resolver.js", "../../../../node_modules/promise-memoize/lib/memoize.js", "../../../../node_modules/promise-memoize/index.js", "../../../../node_modules/@snapchat/async-data/src/asyncData.ts", "../../../../node_modules/@snapchat/client-hints-browser/src/ClientBrowserFeature.ts", "../../src/index.tsx", "../../../../node_modules/tslib/tslib.es6.mjs", "../../../../node_modules/ts-invariant/src/invariant.ts", "../../../../node_modules/@apollo/src/version.ts", "../../../../node_modules/@apollo/src/utilities/globals/maybe.ts", "../../../../node_modules/@apollo/src/utilities/globals/global.ts", "../../../../node_modules/@apollo/src/utilities/common/makeUniqueId.ts", "../../../../node_modules/@apollo/src/utilities/common/stringifyForDisplay.ts", "../../../../node_modules/@apollo/src/utilities/globals/invariantWrappers.ts", "../../../../node_modules/@apollo/src/utilities/globals/index.ts", "../../../../node_modules/graphql/jsutils/isObjectLike.mjs", "../../../../node_modules/graphql/polyfills/symbols.mjs", "../../../../node_modules/graphql/language/location.mjs", "../../../../node_modules/graphql/language/printLocation.mjs", "../../../../node_modules/graphql/error/GraphQLError.mjs", "../../../../node_modules/graphql/error/syntaxError.mjs", "../../../../node_modules/graphql/language/kinds.mjs", "../../../../node_modules/graphql/jsutils/invariant.mjs", "../../../../node_modules/graphql/jsutils/nodejsCustomInspectSymbol.mjs", "../../../../node_modules/graphql/jsutils/defineInspect.mjs", "../../../../node_modules/graphql/language/ast.mjs", "../../../../node_modules/graphql/language/tokenKind.mjs", "../../../../node_modules/graphql/jsutils/inspect.mjs", "../../../../node_modules/graphql/jsutils/devAssert.mjs", "../../../../node_modules/graphql/jsutils/instanceOf.mjs", "../../../../node_modules/graphql/language/source.mjs", "../../../../node_modules/graphql/language/directiveLocation.mjs", "../../../../node_modules/graphql/language/blockString.mjs", "../../../../node_modules/graphql/language/lexer.mjs", "../../../../node_modules/graphql/language/parser.mjs", "../../../../node_modules/graphql/language/visitor.mjs", "../../../../node_modules/graphql/language/printer.mjs", "../../../../node_modules/graphql/language/predicates.mjs", "../../../../node_modules/graphql/utilities/stripIgnoredCharacters.mjs", "../../../../node_modules/@apollo/src/utilities/graphql/directives.ts", "../../../../node_modules/@wry/trie/src/index.ts", "../../../../node_modules/@apollo/src/utilities/common/canUse.ts", "../../../../node_modules/@apollo/src/utilities/common/objects.ts", "../../../../node_modules/@apollo/src/utilities/graphql/fragments.ts", "../../../../node_modules/@wry/caches/src/strong.ts", "../../../../node_modules/@wry/caches/src/weak.ts", "../../../../node_modules/@apollo/src/utilities/caching/caches.ts", "../../../../node_modules/@apollo/src/utilities/caching/sizes.ts", "../../../../node_modules/@apollo/src/utilities/caching/getMemoryInternals.ts", "../../../../node_modules/@apollo/src/utilities/common/canonicalStringify.ts", "../../../../node_modules/@apollo/src/utilities/graphql/storeUtils.ts", "../../../../node_modules/@apollo/src/utilities/graphql/getFromAST.ts", "../../../../node_modules/@wry/context/src/slot.ts", "../../../../node_modules/@wry/context/src/index.ts", "../../../../node_modules/optimism/src/context.ts", "../../../../node_modules/optimism/src/helpers.ts", "../../../../node_modules/optimism/src/entry.ts", "../../../../node_modules/optimism/src/dep.ts", "../../../../node_modules/optimism/src/index.ts", "../../../../node_modules/@apollo/src/utilities/graphql/DocumentTransform.ts", "../../../../node_modules/@apollo/src/utilities/graphql/print.ts", "../../../../node_modules/@apollo/src/utilities/common/arrays.ts", "../../../../node_modules/@apollo/src/utilities/graphql/transform.ts", "../../../../node_modules/@apollo/src/utilities/common/mergeDeep.ts", "../../../../node_modules/zen-observable-ts/module.js", "../../../../node_modules/symbol-observable/es/ponyfill.js", "../../../../node_modules/symbol-observable/es/index.js", "../../../../node_modules/@apollo/src/utilities/observables/Observable.ts", "../../../../node_modules/@apollo/src/utilities/common/cloneDeep.ts", "../../../../node_modules/@apollo/src/utilities/common/maybeDeepFreeze.ts", "../../../../node_modules/@apollo/src/utilities/observables/iteration.ts", "../../../../node_modules/@apollo/src/utilities/observables/asyncMap.ts", "../../../../node_modules/@apollo/src/utilities/observables/subclassing.ts", "../../../../node_modules/@apollo/src/utilities/observables/Concast.ts", "../../../../node_modules/@apollo/src/utilities/common/incrementalResult.ts", "../../../../node_modules/@apollo/src/utilities/common/errorHandling.ts", "../../../../node_modules/@apollo/src/utilities/common/compact.ts", "../../../../node_modules/@apollo/src/utilities/common/mergeOptions.ts", "../../../../node_modules/@apollo/src/link/utils/fromError.ts", "../../../../node_modules/@apollo/src/link/utils/throwServerError.ts", "../../../../node_modules/@apollo/src/link/utils/validateOperation.ts", "../../../../node_modules/@apollo/src/link/utils/createOperation.ts", "../../../../node_modules/@apollo/src/link/utils/transformOperation.ts", "../../../../node_modules/@apollo/src/link/utils/filterOperationVariables.ts", "../../../../node_modules/@apollo/src/link/core/ApolloLink.ts", "../../../../node_modules/@apollo/src/link/core/execute.ts", "../../../../node_modules/@apollo/src/link/http/iterators/async.ts", "../../../../node_modules/@apollo/src/link/http/iterators/nodeStream.ts", "../../../../node_modules/@apollo/src/link/http/iterators/promise.ts", "../../../../node_modules/@apollo/src/link/http/iterators/reader.ts", "../../../../node_modules/@apollo/src/link/http/responseIterator.ts", "../../../../node_modules/@apollo/src/errors/index.ts", "../../../../node_modules/@apollo/src/link/http/parseAndCheckHttpResponse.ts", "../../../../node_modules/@apollo/src/link/http/serializeFetchParameter.ts", "../../../../node_modules/@apollo/src/link/http/selectHttpOptionsAndBody.ts", "../../../../node_modules/@apollo/src/link/http/checkFetcher.ts", "../../../../node_modules/@apollo/src/link/http/selectURI.ts", "../../../../node_modules/@apollo/src/link/http/rewriteURIForGET.ts", "../../../../node_modules/@apollo/src/link/http/createHttpLink.ts", "../../../../node_modules/@apollo/src/link/http/HttpLink.ts", "../../../../node_modules/@wry/equality/src/index.ts", "../../../../node_modules/@apollo/src/cache/core/cache.ts", "../../../../node_modules/@apollo/src/cache/core/types/common.ts", "../../../../node_modules/@apollo/src/cache/inmemory/helpers.ts", "../../../../node_modules/@apollo/src/cache/inmemory/entityStore.ts", "../../../../node_modules/@apollo/src/cache/inmemory/object-canon.ts", "../../../../node_modules/@apollo/src/cache/inmemory/readFromStore.ts", "../../../../node_modules/@apollo/src/cache/inmemory/reactiveVars.ts", "../../../../node_modules/@apollo/src/cache/inmemory/key-extractor.ts", "../../../../node_modules/@apollo/src/cache/inmemory/policies.ts", "../../../../node_modules/@apollo/src/cache/inmemory/writeToStore.ts", "../../../../node_modules/@apollo/src/cache/inmemory/inMemoryCache.ts", "../../../../node_modules/@apollo/src/core/networkStatus.ts", "../../../../node_modules/@apollo/src/core/equalByQuery.ts", "../../../../node_modules/@apollo/src/core/ObservableQuery.ts", "../../../../node_modules/@apollo/src/core/LocalState.ts", "../../../../node_modules/@apollo/src/core/QueryInfo.ts", "../../../../node_modules/@apollo/src/core/QueryManager.ts", "../../../../node_modules/@apollo/src/core/ApolloClient.ts", "../../../../node_modules/graphql-tag/src/index.ts", "../../../../node_modules/@apollo/src/core/index.ts", "../../../../node_modules/@apollo/src/react/context/ApolloContext.ts", "../../../../node_modules/@apollo/src/react/context/ApolloProvider.tsx", "../../../../node_modules/@apollo/src/react/hooks/useApolloClient.ts", "../../../../node_modules/@apollo/src/react/hooks/useQuery.ts", "../../../../node_modules/@apollo/src/react/hooks/useSyncExternalStore.ts", "../../../../node_modules/@apollo/src/react/parser/index.ts", "../../../../node_modules/@apollo/src/react/hooks/internal/wrapHook.ts", "../../../../node_modules/@snapchat/async-data-browser/src/useAsyncData.ts", "../../../global-components/src/analytics/Action.ts", "../../../global-components/src/components/Contentful/PlainRichText.tsx", "../../../global-components-schema/src/contentful/apolloLink.ts", "../../../global-components-schema/src/contentful/contentfulConstants.ts", "../../../global-components-schema/src/hooks/useGlobalComponentsContentfulQuery.ts", "../../../../node_modules/@snapchat/core/src/htmlEscape.ts", "../../../../node_modules/@snapchat/core/src/htmlUnescape.ts", "../../../../node_modules/@snapchat/core/src/jsonStringify.ts", "../../../../node_modules/@snapchat/core/src/parseError.ts", "../../../../node_modules/@snapchat/core/src/sets.ts", "../../../../node_modules/@snapchat/core/src/sleep.ts", "../../../../node_modules/@snapchat/core/src/waitFor.ts", "../../../../node_modules/@snapchat/metrics-utils/src/utils/isInBrowser.ts", "../../../../node_modules/@snapchat/metrics-utils/src/logger.ts", "../../../../node_modules/@snapchat/metrics-utils/src/BaseClient.ts", "../../../../node_modules/@snapchat/metrics-utils/src/auth/constants.ts", "../../../../node_modules/@snapchat/metrics-utils/src/auth/Authenticator.ts", "../../../../node_modules/@snapchat/metrics-utils/src/collector/MetricCollector.ts", "../../../../node_modules/@snapchat/metrics-utils/src/network/BaseNetworkHandler.ts", "../../../../node_modules/@snapchat/metrics-utils/src/network/FetchNetworkHandler.ts", "../../../../node_modules/@snapchat/metrics-utils/src/utils/computeMetricKey.ts", "../../../../node_modules/@snapchat/metrics-utils/src/utils/getRandomIntFromRange.ts", "../../../../node_modules/@snapchat/metrics-utils/src/utils/reservoirSample.ts", "../../../../node_modules/@snapchat/metrics-utils/src/utils/inlineBtoa.ts", "../../../../node_modules/@snapchat/graphene/src/index.ts", "../../../../node_modules/@snapchat/graphene/src/partition.ts", "../../../../node_modules/@snapchat/graphene/src/graphene.ts", "../../../../node_modules/@snapchat/graphene/src/ActivityDetector.ts", "../../../../node_modules/@snapchat/graphene/src/collector/WebMetricCollector.ts", "../../../../node_modules/@snapchat/graphene/src/generated/proto/metrics_web.ts", "../../../../node_modules/@snapchat/graphene/src/config/web.ts", "../../../../node_modules/@snapchat/graphene/src/auth/WebAuthenticator.ts", "../../../../node_modules/@snapchat/graphene/src/auth/computeWebAttestation.ts", "../../../../node_modules/@snapchat/hash/dist/chunk-G5GHKT7C.mjs", "../../../../node_modules/@snapchat/hash/src/hash.browser.ts", "../../../cookie-components/src/components/CookieModal/CookieModal.tsx", "../../../cookie-components/src/context/ContentfulContext.tsx", "../../../cookie-components/src/context/DesignSystemContext.tsx", "../../../cookie-components/src/generated/contentful-types.ts", "../../../cookie-components/src/helpers/logging/BrowserGrapheneClient.ts", "../../../cookie-components/src/utils/acceptCookieOptions.ts", "../../../cookie-components/src/utils/auditForUncategorizedCookies.ts", "../../../cookie-components/src/utils/createCookieMapping.ts", "../../../cookie-components/src/utils/fetchShouldDisplayModal.ts", "../../../cookie-components/src/utils/fetchUserLocation.ts", "../../../cookie-components/src/utils/getAllCookies.ts", "../../../cookie-components/src/utils/getCookieDomain.ts", "../../../cookie-components/src/utils/removeCookiesForNonacceptedCategories.ts", "../../../cookie-components/src/utils/setOptInCookies.ts", "../../../cookie-components/src/components/designAgnostic/DesignAgnosticButton.tsx", "../../../cookie-components/src/components/designAgnostic/DesignAgnosticLocaleDropdown.tsx", "../../../cookie-components/src/components/designAgnostic/DesignAgnosticModal.tsx", "../../../cookie-components/src/components/designAgnostic/DesignAgnosticSection.tsx", "../../../cookie-components/src/components/designAgnostic/DesignAgnosticToggle.tsx", "../../../cookie-components/src/components/ErrorBoundary/BrowserErrorBoundary.tsx", "../../../cookie-components/src/components/shared/CookieRichText.tsx", "../../../cookie-components/src/components/CookieModal/CookieModalFooter.tsx", "../../../cookie-components/src/components/CookieModal/CookieModalHeader.tsx", "../../../cookie-components/src/components/Logo/Ghost.tsx", "../../../cookie-components/src/components/CookieModal/CookieLandingScreen.tsx", "../../../cookie-components/src/components/shared/CookieCategories.tsx", "../../../cookie-components/src/components/CookieModal/CookieSettingsScreen.tsx", "../../../cookie-components/src/components/CookieProvider/CookieProvider.tsx", "../../../cookie-components/src/components/CookieSettings/CookieSettings.tsx", "../../../snap-design-system-marketing/src/components/Accordion/Accordion.tsx", "../../../snap-design-system-marketing/src/constants/alignment.ts", "../../../snap-design-system-marketing/src/constants/background.ts", "../../../snap-design-system-marketing/src/constants/fonts.ts", "../../../snap-design-system-marketing/src/constants/scrollbars.ts", "../../../snap-design-system-marketing/src/motif/MotifRoot.tsx", "../../../snap-design-system-marketing/src/components/Font/FontStylesheet.tsx", "../../../snap-design-system-marketing/src/utils/globalCss.ts", "../../../snap-design-system-marketing/src/motif/motifStyles.ts", "../../../snap-design-system-marketing/src/utils/alignment.ts", "../../../snap-design-system-marketing/src/utils/blockBackgroundColor.ts", "../../../snap-design-system-marketing/src/utils/date.ts", "../../../snap-design-system-marketing/src/utils/themeUtils.ts", "../../../snap-design-system-marketing/src/utils/tracking.ts", "../../../snap-design-system-marketing/src/utils/useWindowFocused.ts", "../../../snap-design-system-marketing/src/components/Accordion/AccordionContext.tsx", "../../../snap-design-system-marketing/src/components/Accordion/styles.ts", "../../../snap-design-system-marketing/src/components/Accordion/AccordionItem/AccordionItem.tsx", "../../../snap-design-system-marketing/src/hooks/useToggleState.ts", "../../../../node_modules/lodash-es/isNil.js", "../../../snap-design-system-marketing/src/components/DetailsSummary/DetailsSummary.tsx", "../../../snap-design-system-marketing/src/constants/animation.ts", "../../../snap-design-system-marketing/src/components/DetailsSummary/DetailsSummary.styles.tsx", "../../../snap-design-system-marketing/src/components/Accordion/AccordionItem/styles.ts", "../../../snap-design-system-marketing/src/hooks/useDisableBodyScroll.ts", "../../../snap-design-system-marketing/src/hooks/useOnScreen.ts", "../../../snap-design-system-marketing/src/components/AnimatedAccordion/Accordion/Accordion.tsx", "../../../snap-design-system-marketing/src/components/Media/Media.tsx", "../../../snap-design-system-marketing/src/utils/useCombinesRefs.ts", "../../../snap-design-system-marketing/src/components/Video/utils.ts", "../../../snap-design-system-marketing/src/components/Video/Video.tsx", "../../../snap-design-system-marketing/src/components/Tabs/TabsContext.tsx", "../../../snap-design-system-marketing/src/components/Video/styles.ts", "../../../snap-design-system-marketing/src/components/Media/LaptopWrapper.tsx", "../../../snap-design-system-marketing/src/components/Media/Media.styled.ts", "../../../snap-design-system-marketing/src/components/Media/PhoneWrapper.tsx", "../../../snap-design-system-marketing/src/components/AnimatedAccordion/Accordion/AccordionItem.tsx", "../../../snap-design-system-marketing/src/components/AnimatedAccordion/Accordion/ProgressIndicator.tsx", "../../../snap-design-system-marketing/src/components/AnimatedAccordion/Accordion/styles.ts", "../../../snap-design-system-marketing/src/components/AnimatedAccordion/AnimatedAccordionMobile/AnimatedAccordionMobile.tsx", "../../../snap-design-system-marketing/src/components/AnimatedAccordion/AnimatedAccordionMobile/ProgressIndicatorMobile.tsx", "../../../snap-design-system-marketing/src/components/AnimatedAccordion/AnimatedAccordionMobile/styles.ts", "../../../snap-design-system-marketing/src/components/AnimatedAccordion/AnimatedAccordionMobile/AnimatedAccordionControls.tsx", "../../../snap-design-system-marketing/src/components/AnimatedAccordion/AnimatedAccordion.tsx", "../../../snap-design-system-marketing/src/components/Animations/useAnimations.ts", "../../../snap-design-system-marketing/src/components/Animations/useGlobalAnimations.ts", "../../../snap-design-system-marketing/src/components/AuthorByline/styles.ts", "../../../snap-design-system-marketing/src/components/AuthorByline/AuthorByLine.tsx", "../../../snap-design-system-marketing/src/components/AutoComplete/AutoComplete.tsx", "../../../snap-design-system-marketing/src/components/IconButton/IconButton.tsx", "../../../snap-design-system-marketing/src/components/Primitives/PrimitiveTable/PrimitiveTable.tsx", "../../../snap-design-system-marketing/src/components/Primitives/PrimitiveTable/PrimitiveTable.styles.ts", "../../../snap-design-system-marketing/src/components/Primitives/PrimitiveTable/PrimitiveTableComponents.tsx", "../../../snap-design-system-marketing/src/components/IconButton/IconButton.style.ts", "../../../snap-design-system-marketing/src/components/AutoComplete/styles.ts", "../../../snap-design-system-marketing/src/components/Banner/Banner.tsx", "../../../snap-design-system-marketing/src/components/Banner/Banner.styles.ts", "../../../snap-design-system-marketing/src/components/Block/Block.tsx", "../../../snap-design-system-marketing/src/components/BlockBoundary/BlockBoundary.tsx", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalHeader.tsx", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalHeader.constants.ts", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalHeader.utils.ts", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalHeaderContext.ts", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalHeader.styles.ts", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalHeaderDesktop.tsx", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavScreen/GlobalNavScreen.constants.ts", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalHeaderMobile.tsx", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavGroup/GlobalNavGroup.tsx", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavItem/GlobalNavItem.styles.ts", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavGroup/GlobalNavGroup.styles.ts", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavHighlight/GlobalNavHighlight.tsx", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavHighlight/GlobalNavHighlight.styles.ts", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavHighlight/GlobalNavHighlightDesktop.tsx", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavHighlight/GlobalNavHighlightReel.tsx", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavItem/GlobalNavItem.tsx", "../../../snap-design-system-marketing/src/utils/domains.ts", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavScreen/GlobalNavScreen.tsx", "../../../snap-design-system-marketing/src/utils/scrollbarCss.ts", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavScreen/GlobalNavScreen.styles.ts", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavScreen/GlobalNavScreenDesktop.tsx", "../../../snap-design-system-marketing/src/components/GlobalHeader/GlobalNavScreen/GlobalNavScreenMobile.tsx", "../../../snap-design-system-marketing/src/components/Block/Block.styled.ts", "../../../snap-design-system-marketing/src/components/SideNavigation/styles.ts", "../../../snap-design-system-marketing/src/components/Page/Page.styled.ts", "../../../snap-design-system-marketing/src/components/Break/Break.styled.ts", "../../../snap-design-system-marketing/src/components/Break/templates/Head.tsx", "../../../snap-design-system-marketing/src/components/Break/templates/HeadFlipped.tsx", "../../../snap-design-system-marketing/src/components/Break/templates/Skirt.tsx", "../../../snap-design-system-marketing/src/components/Break/templates/Skirt2.tsx", "../../../snap-design-system-marketing/src/components/Break/templates/Straight.tsx", "../../../snap-design-system-marketing/src/components/Break/types.ts", "../../../snap-design-system-marketing/src/components/Break/utils.ts", "../../../snap-design-system-marketing/src/components/Break/Break.tsx", "../../../snap-design-system-marketing/src/components/Break/BreakSpacer.tsx", "../../../snap-design-system-marketing/src/components/CarouselV3/CarouselCardItem/CarouselCardItem.tsx", "../../../snap-design-system-marketing/src/components/CarouselV3/CarouselCardItem/CarouselCardItem.styles.ts", "../../../snap-design-system-marketing/src/components/CarouselV3/CarouselTextItem/CarouselTextItem.tsx", "../../../snap-design-system-marketing/src/components/CarouselV3/CarouselTextItem/CarouselTextItem.styles.ts", "../../../../node_modules/lodash-es/_baseClamp.js", "../../../../node_modules/lodash-es/clamp.js", "../../../../node_modules/lodash-es/_baseInRange.js", "../../../../node_modules/lodash-es/toFinite.js", "../../../../node_modules/lodash-es/inRange.js", "../../../snap-design-system-marketing/src/components/CarouselV3/CarouselV3.tsx", "../../../snap-design-system-marketing/src/components/CarouselV3/CarouselV3.styles.ts", "../../../snap-design-system-marketing/src/components/CarouselV3/Dots.tsx", "../../../snap-design-system-marketing/src/components/CarouselV3/utils.ts", "../../../snap-design-system-marketing/src/components/Category/styles.ts", "../../../snap-design-system-marketing/src/components/Category/Category.tsx", "../../../snap-design-system-marketing/src/components/Content/Content.tsx", "../../../snap-design-system-marketing/src/utils/styles.ts", "../../../snap-design-system-marketing/src/components/Content/Content.styled.ts", "../../../snap-design-system-marketing/src/components/Definition/Definition.tsx", "../../../snap-design-system-marketing/src/components/Definition/Definition.styles.ts", "../../../snap-design-system-marketing/src/components/visualizations/ChartToggle/styles.ts", "../../../snap-design-system-marketing/src/components/DropdownMenu/DropdownSkeleton.styles.ts", "../../../snap-design-system-marketing/src/components/DropdownMenu/DropdownSkeleton.tsx", "../../../snap-design-system-marketing/src/components/FilterDropdown/FilterDropdownMenu.tsx", "../../../snap-design-system-marketing/src/components/FilterDropdown/filterDropdownMenuStyles.ts", "../../../snap-design-system-marketing/src/components/FooterV2/FooterBar/styles.tsx", "../../../snap-design-system-marketing/src/components/FooterV2/FooterBar/FooterBar.tsx", "../../../snap-design-system-marketing/src/components/FooterV2/FooterColumns/FooterColumns.tsx", "../../../snap-design-system-marketing/src/components/FooterV2/FooterContext.tsx", "../../../snap-design-system-marketing/src/components/FooterV2/FooterColumns/styles.ts", "../../../snap-design-system-marketing/src/components/FooterV2/FooterColumns/FooterColumnsDesktop.tsx", "../../../snap-design-system-marketing/src/components/FooterV2/FooterColumns/FooterColumnsMobile.tsx", "../../../snap-design-system-marketing/src/components/FooterV2/FooterGroup/FooterGroup.tsx", "../../../snap-design-system-marketing/src/components/FooterV2/FooterGroup/styles.ts", "../../../snap-design-system-marketing/src/components/FooterV2/FooterItem/FooterItem.tsx", "../../../snap-design-system-marketing/src/components/FooterV2/FooterItem/styles.ts", "../../../snap-design-system-marketing/src/components/FooterV2/FooterSocial/styles.tsx", "../../../snap-design-system-marketing/src/components/FooterV2/FooterSocial/FooterSocial.tsx", "../../../snap-design-system-marketing/src/components/FooterV2/FooterV2.tsx", "../../../snap-design-system-marketing/src/components/Footnote/Footnote.styled.ts", "../../../snap-design-system-marketing/src/components/Footnote/Footnote.tsx", "../../../snap-design-system-marketing/src/components/FootnoteBlock/FootnoteBlock.tsx", "../../../snap-design-system-marketing/src/components/FootnoteBlock/FootnoteBlock.styles.ts", "../../../snap-design-system-marketing/src/components/Form/Form.tsx", "../../../snap-design-system-marketing/src/components/Form/FormContext.tsx", "../../../snap-design-system-marketing/src/components/Form/formReducer.ts", "../../../snap-design-system-marketing/src/components/Form/FormErrorMessage.tsx", "../../../snap-design-system-marketing/src/components/Form/styles.ts", "../../../snap-design-system-marketing/src/components/Form/FormRow.tsx", "../../../snap-design-system-marketing/src/components/Form/Input.tsx", "../../../snap-design-system-marketing/src/components/Form/Field.tsx", "../../../snap-design-system-marketing/src/components/Form/formUtils.ts", "../../../snap-design-system-marketing/src/components/Form/MultiSelectDropdown.tsx", "../../../snap-design-system-marketing/src/components/Form/Select.tsx", "../../../snap-design-system-marketing/src/components/Gallery/GalleryFiltersV2.tsx", "../../../snap-design-system-marketing/src/components/Tile/constants.ts", "../../../snap-design-system-marketing/src/components/Tile/types.ts", "../../../snap-design-system-marketing/src/components/Gallery/galleryFiltersV2Styles.ts", "../../../snap-design-system-marketing/src/components/Gallery/styles.ts", "../../../snap-design-system-marketing/src/components/Gallery/GalleryGridV2.tsx", "../../../../node_modules/lodash-es/_arraySome.js", "../../../../node_modules/lodash-es/_equalArrays.js", "../../../../node_modules/lodash-es/_equalByTag.js", "../../../../node_modules/lodash-es/_mapToArray.js", "../../../../node_modules/lodash-es/_equalObjects.js", "../../../../node_modules/lodash-es/_baseIsEqualDeep.js", "../../../../node_modules/lodash-es/_baseIsEqual.js", "../../../../node_modules/lodash-es/_baseIsMatch.js", "../../../../node_modules/lodash-es/_isStrictComparable.js", "../../../../node_modules/lodash-es/_getMatchData.js", "../../../../node_modules/lodash-es/_matchesStrictComparable.js", "../../../../node_modules/lodash-es/_baseMatches.js", "../../../../node_modules/lodash-es/_isKey.js", "../../../../node_modules/lodash-es/_memoizeCapped.js", "../../../../node_modules/lodash-es/_stringToPath.js", "../../../../node_modules/lodash-es/_castPath.js", "../../../../node_modules/lodash-es/_toKey.js", "../../../../node_modules/lodash-es/_baseGet.js", "../../../../node_modules/lodash-es/get.js", "../../../../node_modules/lodash-es/_baseHasIn.js", "../../../../node_modules/lodash-es/_hasPath.js", "../../../../node_modules/lodash-es/hasIn.js", "../../../../node_modules/lodash-es/_baseMatchesProperty.js", "../../../../node_modules/lodash-es/_baseProperty.js", "../../../../node_modules/lodash-es/_basePropertyDeep.js", "../../../../node_modules/lodash-es/property.js", "../../../../node_modules/lodash-es/_baseIteratee.js", "../../../../node_modules/lodash-es/_baseForOwn.js", "../../../../node_modules/lodash-es/_createBaseEach.js", "../../../../node_modules/lodash-es/_baseEach.js", "../../../../node_modules/lodash-es/_baseMap.js", "../../../../node_modules/lodash-es/map.js", "../../../../node_modules/lodash-es/_unescapeHtmlChar.js", "../../../../node_modules/lodash-es/unescape.js", "../../../../node_modules/react-helmet-async/src/constants.js", "../../../../node_modules/react-helmet-async/src/utils.js", "../../../../node_modules/react-helmet-async/src/server.js", "../../../../node_modules/react-helmet-async/src/HelmetData.js", "../../../../node_modules/react-helmet-async/src/Provider.js", "../../../../node_modules/react-helmet-async/src/client.js", "../../../../node_modules/react-helmet-async/src/Dispatcher.js", "../../../../node_modules/react-helmet-async/src/index.js", "../../../snap-design-system-marketing/src/components/Header/Header.tsx", "../../../../node_modules/lodash-es/isEmpty.js", "../../../snap-design-system-marketing/src/components/Hero/Hero.tsx", "../../../snap-design-system-marketing/src/components/Social/Social.tsx", "../../../../node_modules/react-share/src/hocs/createIcon.tsx", "../../../../node_modules/react-share/src/EmailIcon.ts", "../../../../node_modules/react-share/src/utils/objectToGetParams.ts", "../../../../node_modules/react-share/src/ShareButton.tsx", "../../../../node_modules/react-share/src/hocs/createShareButton.tsx", "../../../../node_modules/react-share/src/EmailShareButton.ts", "../../../../node_modules/react-share/src/FacebookIcon.ts", "../../../../node_modules/react-share/src/FacebookMessengerIcon.ts", "../../../../node_modules/react-share/src/FacebookMessengerShareButton.ts", "../../../../node_modules/react-share/src/utils/assert.ts", "../../../../node_modules/react-share/src/FacebookShareButton.ts", "../../../../node_modules/react-share/src/hooks/useIsMounted.ts", "../../../../node_modules/react-share/src/hocs/createShareCount.tsx", "../../../../node_modules/react-share/src/FacebookShareCount.ts", "../../../../node_modules/react-share/src/HatenaIcon.ts", "../../../../node_modules/react-share/src/HatenaShareButton.ts", "../../../../node_modules/react-share/src/HatenaShareCount.ts", "../../../../node_modules/react-share/src/InstapaperIcon.ts", "../../../../node_modules/react-share/src/InstapaperShareButton.ts", "../../../../node_modules/react-share/src/LineIcon.ts", "../../../../node_modules/react-share/src/LineShareButton.ts", "../../../../node_modules/react-share/src/LinkedinIcon.ts", "../../../../node_modules/react-share/src/LinkedinShareButton.ts", "../../../../node_modules/react-share/src/LivejournalIcon.ts", "../../../../node_modules/react-share/src/LivejournalShareButton.ts", "../../../../node_modules/react-share/src/MailruIcon.ts", "../../../../node_modules/react-share/src/MailruShareButton.ts", "../../../../node_modules/react-share/src/OKIcon.ts", "../../../../node_modules/react-share/src/OKShareButton.ts", "../../../../node_modules/react-share/src/OKShareCount.ts", "../../../../node_modules/react-share/src/PinterestIcon.ts", "../../../../node_modules/react-share/src/PinterestShareButton.ts", "../../../../node_modules/react-share/src/PinterestShareCount.ts", "../../../../node_modules/react-share/src/PocketIcon.ts", "../../../../node_modules/react-share/src/PocketShareButton.ts", "../../../../node_modules/react-share/src/RedditIcon.ts", "../../../../node_modules/react-share/src/RedditShareButton.ts", "../../../../node_modules/react-share/src/GabShareButton.ts", "../../../../node_modules/react-share/src/GabIcon.ts", "../../../../node_modules/react-share/src/RedditShareCount.ts", "../../../../node_modules/react-share/src/TelegramIcon.ts", "../../../../node_modules/react-share/src/TelegramShareButton.ts", "../../../../node_modules/react-share/src/TumblrIcon.ts", "../../../../node_modules/react-share/src/TumblrShareButton.ts", "../../../../node_modules/react-share/src/TumblrShareCount.ts", "../../../../node_modules/react-share/src/TwitterIcon.ts", "../../../../node_modules/react-share/src/TwitterShareButton.ts", "../../../../node_modules/react-share/src/ViberIcon.ts", "../../../../node_modules/react-share/src/ViberShareButton.ts", "../../../../node_modules/react-share/src/VKIcon.ts", "../../../../node_modules/react-share/src/VKShareButton.ts", "../../../../node_modules/react-share/src/VKShareCount.ts", "../../../../node_modules/react-share/src/WeiboIcon.ts", "../../../../node_modules/react-share/src/WeiboShareButton.ts", "../../../../node_modules/react-share/src/WhatsappIcon.ts", "../../../../node_modules/react-share/src/WhatsappShareButton.ts", "../../../../node_modules/react-share/src/WorkplaceIcon.ts", "../../../../node_modules/react-share/src/WorkplaceShareButton.ts", "../../../../node_modules/react-share/src/XIcon.ts", "../../../snap-design-system-marketing/src/components/Hero/Hero.styled.ts", "../../../snap-design-system-marketing/src/components/Hero/HeroHeader.styles.ts", "../../../snap-design-system-marketing/src/components/Hero/utils.ts", "../../../snap-design-system-marketing/src/components/Hero/HeroHeader.tsx", "../../../snap-design-system-marketing/src/components/Hero/HeroMedia/HeroMedia.tsx", "../../../snap-design-system-marketing/src/components/SummaryCard/SummaryCard.styled.ts", "../../../snap-design-system-marketing/src/components/SummaryCard/SkeletonSummaryCard.tsx", "../../../snap-design-system-marketing/src/components/SummaryCard/SummaryCard.tsx", "../../../snap-design-system-marketing/src/components/SummaryCard/utils.ts", "../../../snap-design-system-marketing/src/components/Hero/HeroMedia/HeroMedia.styles.ts", "../../../snap-design-system-marketing/src/components/Hyperlink/Hyperlink.tsx", "../../../snap-design-system-marketing/src/components/Hyperlink/Hyperlink.styled.ts", "../../../snap-design-system-marketing/src/components/ImageButton/ImageButton.tsx", "../../../snap-design-system-marketing/src/components/LatestPosts/styles.ts", "../../../snap-design-system-marketing/src/components/LatestPosts/LatestPosts.tsx", "../../../snap-design-system-marketing/src/components/LoadingBar/LoadingBar.tsx", "../../../snap-design-system-marketing/src/components/Logo/Logo.tsx", "../../../snap-design-system-marketing/src/components/Logo/Logo.styles.ts", "../../../snap-design-system-marketing/src/components/Logo/Logo.Ghost.tsx", "../../../snap-design-system-marketing/src/components/Logo/Logo.SnapInc.tsx", "../../../snap-design-system-marketing/src/components/Modal/Modal.tsx", "../../../snap-design-system-marketing/src/components/Modal/styles.ts", "../../../snap-design-system-marketing/src/components/Mosaic/Mosaic.tsx", "../../../snap-design-system-marketing/src/components/Mosaic/MosaicFilters.tsx", "../../../snap-design-system-marketing/src/components/Mosaic/styles.ts", "../../../snap-design-system-marketing/src/components/Mosaic/MosaicLightBox.tsx", "../../../snap-design-system-marketing/src/components/Mosaic/MosaicTile.tsx", "../../../snap-design-system-marketing/src/components/MultiVideoBlock/MultiVideoBlock.tsx", "../../../snap-design-system-marketing/src/components/MultiVideoBlock/styles.ts", "../../../snap-design-system-marketing/src/components/MultiVideoBlock/VideoItem.tsx", "../../../../node_modules/@szhsin/react-menu/dist/es/_virtual/_rollupPluginBabelHelpers.js", "../../../../node_modules/@szhsin/react-menu/dist/es/utils/utils.js", "../../../../node_modules/@szhsin/react-menu/dist/es/hooks/useBEM.js", "../../../../node_modules/@szhsin/react-menu/dist/es/utils/constants.js", "../../../../node_modules/@szhsin/react-menu/dist/es/hooks/useFlatStyles.js", "../../../../node_modules/@szhsin/react-menu/dist/es/utils/propTypes.js", "../../../../node_modules/@szhsin/react-menu/dist/es/components/ControlledMenu.js", "../../../../node_modules/@szhsin/react-menu/dist/es/components/MenuList.js", "../../../../node_modules/@szhsin/react-menu/dist/es/utils/cloneChildren.js", "../../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/getPositionHelpers.js", "../../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/positionContextMenu.js", "../../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/placeArrowVertical.js", "../../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/placeLeftorRight.js", "../../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/placeArrowHorizontal.js", "../../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/placeToporBottom.js", "../../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/positionMenu.js", "../../../../node_modules/@szhsin/react-menu/dist/es/hooks/useIsomorphicLayoutEffect.js", "../../../../node_modules/@szhsin/react-menu/dist/es/hooks/useCombinedRef.js", "../../../../node_modules/@szhsin/react-menu/dist/es/hooks/useMenuStateAndFocus.js", "../../../../node_modules/react-transition-state/dist/index.es.js", "../../../../node_modules/@szhsin/react-menu/dist/es/hooks/useMenuState.js", "../../../../node_modules/@szhsin/react-menu/dist/es/hooks/useMenuChange.js", "../../../../node_modules/@szhsin/react-menu/dist/es/components/SubMenu.js", "../../../../node_modules/@szhsin/react-menu/dist/es/utils/withHovering.js", "../../../../node_modules/@szhsin/react-menu/dist/es/hooks/useActiveState.js", "../../../../node_modules/@szhsin/react-menu/dist/es/components/MenuItem.js", "../../../../node_modules/@szhsin/react-menu/dist/es/hooks/useItemState.js", "../../../snap-design-system-marketing/src/components/Navigator/Item/ItemDesktop.tsx", "../../../snap-design-system-marketing/src/components/Navigator/Item/Item.styled.ts", "../../../snap-design-system-marketing/src/components/Navigator/Item/utils.tsx", "../../../snap-design-system-marketing/src/components/Page/ScrollSnapContainer.tsx", "../../../snap-design-system-marketing/src/components/Page/Page.tsx", "../../../snap-design-system-marketing/src/components/Pagination/Pagination.tsx", "../../../snap-design-system-marketing/src/components/Pagination/styles.ts", "../../../snap-design-system-marketing/src/components/Pagination/PaginationItem.tsx", "../../../snap-design-system-marketing/src/components/Pagination/utils.ts", "../../../snap-design-system-marketing/src/components/Quote/Quote.styled.ts", "../../../snap-design-system-marketing/src/components/Quote/Quote.tsx", "../../../snap-design-system-marketing/src/components/ScrollAnimatedSection/styles.ts", "../../../snap-design-system-marketing/src/components/ScrollAnimatedSection/ScrollAnimatedSection.tsx", "../../../snap-design-system-marketing/src/components/ScrollAnimatedVideo/ScrollAnimatedVideo.tsx", "../../../snap-design-system-marketing/src/components/SideNavigation/SideNavigation.tsx", "../../../snap-design-system-marketing/src/components/SideNavigation/SideNavigationLinks.tsx", "../../../snap-design-system-marketing/src/components/SideOverlay/SideOverlay.tsx", "../../../snap-design-system-marketing/src/components/SideOverlay/SideOverlay.styles.ts", "../../../snap-design-system-marketing/src/components/SnapchatEmbed/SnapchatEmbed.tsx", "../../../snap-design-system-marketing/src/components/SnapchatEmbed/SnapchatEmbed.styles.ts", "../../../snap-design-system-marketing/src/components/SplitBlock/SplitBlock.tsx", "../../../snap-design-system-marketing/src/components/SplitBlock/styles.ts", "../../../snap-design-system-marketing/src/components/SubNavigation/styles.ts", "../../../snap-design-system-marketing/src/components/SubNavigation/SubNavigation.tsx", "../../../snap-design-system-marketing/src/components/SubNavigation/SubNavigationItem.tsx", "../../../snap-design-system-marketing/src/components/Tabs/TabsV2.tsx", "../../../snap-design-system-marketing/src/components/Tabs/TabItems.tsx", "../../../snap-design-system-marketing/src/components/Tabs/styles.ts", "../../../snap-design-system-marketing/src/components/Tabs/TabArrows.tsx", "../../../snap-design-system-marketing/src/components/Tabs/TabsPanels.tsx", "../../../snap-design-system-marketing/src/components/visualizations/ChartSkeleton/styles.ts", "../../../snap-design-system-marketing/src/components/visualizations/ChartSkeleton/ChartSkeleton.tsx", "../../../snap-design-system-marketing/src/components/visualizations/ChartToggle/ChartToggle.tsx", "../../../snap-design-system-marketing/src/components/visualizations/ChartToggle/ChartToggleButton.tsx", "../../../snap-design-system-marketing/src/components/visualizations/ChartToggle/ChartToggleButtons.tsx", "../../../snap-design-system-marketing/src/components/visualizations/ChartToggle/ChartTogglePanels.tsx", "../../../snap-design-system-marketing/src/components/visualizations/ChartToggle/ChartTogglePanelsV2.tsx", "../../../snap-design-system-marketing/src/components/visualizations/ChartToggle/ChartToggleV2.tsx", "../../../snap-design-system-marketing/src/components/visualizations/ChartToggle/ChartToggleDropdowns.tsx", "../../../snap-design-system-marketing/src/components/visualizations/ChartToggle/ChartToggleWrapper.tsx", "../../../global-components/src/components/CookieModal/CookieModal.tsx", "../../../global-components/src/context/GlobalComponentsContext.tsx", "../../../global-components/src/components/CookieModal/analytics.ts", "../../../common/src/constants/ga4Properties.ts", "../../../common/src/constants/gdprCountries.ts", "../../../common/src/constants/localeMap.ts", "../../../common/src/constants/networking.ts", "../../../common/src/constants/productionDomains.ts", "../../../common/src/constants/stagingDomains.ts", "../../../common/src/geoHeaders/parseGeoHeaders.ts", "../../../common/src/storage/TypedLocalStorage.ts", "../../../global-components/src/components/LocaleDropdown/LocaleDropdown.tsx", "../../../global-components/src/components/LocaleDropdown/localeConstants.ts", "../../../global-components/src/components/LocaleDropdown/LocaleDropdown.styles.ts", "../../../global-components/src/components/CookieModal/SdsmCookieModal.tsx", "../../../global-components/src/components/CookieModal/SdsmCookieModal.styles.ts", "../../../global-components/src/components/CookieModal/SdsmComponents.tsx", "../../../global-components/src/components/CookieSettings/CookieSettings.tsx", "../../../../node_modules/lodash-es/head.js", "../../../global-components/src/components/FooterV3/FooterCollectionV3/FooterCollectionV3.tsx", "../../../global-components/src/generated/contentful-types.ts", "../../../../node_modules/lodash-es/snakeCase.js", "../../../global-components/src/components/FooterV3/FooterItemV3/FooterItemV3.tsx", "../../../global-components/src/components/FooterV3/FooterGroup/FooterGroup.tsx", "../../../global-components/src/components/FooterV3/FooterGroup/FooterGroup.styles.ts", "../../../global-components/src/components/FooterV3/FooterLocaleDropdown/FooterLocaleDropdown.styles.ts", "../../../global-components/src/components/FooterV3/FooterLocaleDropdown/FooterLocaleDropdown.tsx", "../../../global-components/src/components/FooterV3/FooterCollectionV3/utils.ts", "../../../global-components/src/components/GlobalFooter/GlobalFooter.tsx", "../../../global-components/src/components/GlobalHeader/GlobalHeader.tsx", "../../../global-components/src/components/GlobalNavHighlight/GlobalNavHighlight.tsx", "../../../global-components/src/components/CallToAction/CallToAction.tsx", "../../../global-components/src/components/Button/Button.tsx", "../../../global-components/src/components/CallToAction/useActivation.tsx", "../../../contentful-client/src/contentfulImageUtils.ts", "../../../contentful-client/src/getImageUrl.ts", "../../../contentful-client/src/useContentfulImages.ts", "../../../global-components/src/components/Media/Media.tsx", "../../../global-components/src/components/Media/mediaUtils.ts", "../../../global-components/src/components/GlobalNavScreen/GlobalNavScreen.tsx", "../../../../node_modules/lodash-es/_baseFilter.js", "../../../../node_modules/lodash-es/negate.js", "../../../../node_modules/lodash-es/reject.js", "../../../global-components/src/components/GlobalNavGroupCollection/GlobalNavGroupCollection.tsx", "../../../global-components/src/components/GlobalNavItem/GlobalNavItem.tsx", "../../../global-components/src/components/GlobalNavGroup/GlobalNavGroup.tsx", "../../../global-components/src/components/GlobalNavHighlightCollection/GlobalNavHighlightCollection.tsx", "../../../global-components/src/components/Media/useMediaPreload.ts", "../../../../node_modules/@apollo/src/link/retry/delayFunction.ts", "../../../../node_modules/@apollo/src/link/retry/retryFunction.ts", "../../../../node_modules/@apollo/src/link/retry/retryLink.ts", "../../src/App.tsx", "../../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js", "../../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js", "../../../../node_modules/resolve-pathname/esm/resolve-pathname.js", "../../../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js", "../../../../node_modules/history/esm/history.js", "../../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js", "../../../../node_modules/react-router/modules/miniCreateReactContext.js", "../../../../node_modules/react-router/modules/createContext.js", "../../../../node_modules/react-router/modules/createNamedContext.js", "../../../../node_modules/react-router/modules/HistoryContext.js", "../../../../node_modules/react-router/modules/RouterContext.js", "../../../../node_modules/react-router/modules/Router.js", "../../../../node_modules/react-router/modules/MemoryRouter.js", "../../../../node_modules/react-router/modules/Lifecycle.js", "../../../../node_modules/react-router/modules/Prompt.js", "../../../../node_modules/react-router/modules/generatePath.js", "../../../../node_modules/react-router/modules/Redirect.js", "../../../../node_modules/react-router/modules/matchPath.js", "../../../../node_modules/react-router/modules/Route.js", "../../../../node_modules/react-router/modules/StaticRouter.js", "../../../../node_modules/react-router/modules/Switch.js", "../../../../node_modules/react-router/modules/withRouter.js", "../../../../node_modules/react-router/modules/hooks.js", "../../../../node_modules/react-router/modules/index.js", "../../../../node_modules/react-router-dom/modules/BrowserRouter.js", "../../../../node_modules/react-router-dom/modules/HashRouter.js", "../../../../node_modules/react-router-dom/modules/utils/locationUtils.js", "../../../../node_modules/react-router-dom/modules/Link.js", "../../../../node_modules/react-router-dom/modules/NavLink.js", "../../src/AppContext.tsx", "../../src/components/Anchor/Anchor.tsx", "../../../contentful-schema/src/charts/helpers.ts", "../../../contentful-schema/src/constants/contentTokens.ts", "../../../contentful-schema/src/extractPageText/getPlainText.ts", "../../../contentful-schema/src/richtext/mergeRichText.ts", "../../../contentful-schema/src/spaceIds.ts", "../../../contentful-schema/src/tokenKeys.ts", "../../src/clientEnv.ts", "../../src/helpers/trackingCookies.ts", "../../src/sites/snap/styleConstants.ts", "../../src/sites/snap/snapConfig.ts", "../../src/config.ts", "../../src/helpers/getLocalPath.ts", "../../src/constants/urlParameters.ts", "../../src/helpers/redirectTo.ts", "../../src/components/FeatureFlags/useFeatureFlags.ts", "../../src/context/SitewideConfiguration/SitewideConfigurationContext.ts", "../../src/helpers/businessHelpUrl.ts", "../../src/helpers/uri.ts", "../../src/helpers/getLinkProps.ts", "../../src/hooks/useContentfulQuery.ts", "../../../../node_modules/@snapchat/polyfills/src/requestIdleCallback.ts", "../../../../node_modules/@snapchat/logging/src/AbstractEventListener.ts", "../../../../node_modules/@snapchat/logging/src/AbstractDataLayerEventListener.ts", "../../../../node_modules/@snapchat/logging/src/AbstractGrapheneEventListener.ts", "../../../../node_modules/@snapchat/logging/src/loggingTypes.ts", "../../../../node_modules/@snapchat/logging/src/AbstractSentryEventListener.ts", "../../../../node_modules/@snapchat/logging/src/ConsoleEventListener.ts", "../../../../node_modules/@snapchat/logging/src/LoggingEventBus.ts", "../../../../node_modules/@snapchat/logging/src/testing/TestEventListener.ts", "../../../../node_modules/@snapchat/logging/src/testing/testLogEvents.ts", "../../src/components/ContentfulLivePreview/ContentfulLivePreview.tsx", "../../src/helpers/logging/loggingInstance.ts", "../../src/components/useContentfulContext.ts", "../../src/utils/contentful/ContentfulContext.ts", "../../src/helpers/locale.ts", "../../src/components/ContentfulLivePreview/ContentfulLivePreviewContext.tsx", "../../../../node_modules/lodash-es/mapValues.js", "../../src/utils/contentful/convertNullsToUndefined.ts", "../../src/utils/contentful/contentfulQuery.ts", "../../src/components/Animations/query.ts", "../../src/components/Animations/GlobalAnimations.tsx", "../../src/components/Cart/Cart.tsx", "../../src/components/AddToCart/AddToCart.tsx", "../../src/components/ShopifyProvider/ShopifyProvider.tsx", "../../src/components/Cart/useCart.ts", "../../src/components/Cart/useCheckoutUrl.ts", "../../src/components/Cart/usePrice.ts", "../../src/components/ShopifyProvider/contentfulProductsQuery.ts", "../../src/styles/screenSizes.ts", "../../src/styles/mediaQueries.ts", "../../src/components/AddToCart/styles.ts", "../../src/components/ConsumerContextProvider/ConsumerContextProvider.tsx", "../../src/components/ConsumerContextProvider/utils.ts", "../../src/components/Cart/CartAccessory.tsx", "../../src/components/Cart/styles.ts", "../../src/components/Cart/CartItem.tsx", "../../src/components/Cart/Price.tsx", "../../src/components/Cart/CartIcon.tsx", "../../src/components/CookiePopup/CookiePopup.tsx", "../../src/components/DirectionDirective/DirectionDirective.tsx", "../../src/components/DirectionDirective/languageDirection.ts", "../../src/components/Media/Media.tsx", "../../src/utils/getFileInfo.ts", "../../src/utils/isElementInViewport.ts", "../../src/components/Video/utils.ts", "../../src/components/Media/query.ts", "../../src/components/Favicon/query.ts", "../../src/components/Favicon/Favicon.tsx", "../../src/components/FooterWrapper/Footer.tsx", "../../src/context/PageLayoutContext.ts", "../../src/components/CallToAction/CallToAction.tsx", "../../src/utils/contentful.ts", "../../src/utils/contentful/getContentfulInspectorProps.ts", "../../src/utils/renderText/renderRichText.ts", "../../src/components/Hyperlink/Hyperlink.tsx", "../../src/utils/renderText/NoHeadingRichTextComponents.tsx", "../../src/utils/renderText/renderText.tsx", "../../../../node_modules/lodash-es/_arrayAggregator.js", "../../../../node_modules/lodash-es/_baseAggregator.js", "../../../../node_modules/lodash-es/_createAggregator.js", "../../../../node_modules/lodash-es/keyBy.js", "../../src/components/Hyperlink/AssetEntryHyperlink.tsx", "../../src/components/SuspenseWrapper.tsx", "../../src/components/Code/Code.tsx", "../../src/components/Code/query.ts", "../../src/components/Definition/Definition.tsx", "../../src/components/Definition/DefinitionContext.tsx", "../../src/components/Definition/DefinitionOverlay.tsx", "../../src/components/FootnoteInline/FootnoteInline.styles.ts", "../../src/components/FootnoteInline/FootnoteInline.tsx", "../../src/utils/combineImageSources.ts", "../../src/utils/media.ts", "../../src/components/Image/Image.tsx", "../../src/components/Image/query.ts", "../../src/components/Image/utils.ts", "../../src/components/Quote/query.ts", "../../../../node_modules/lodash-es/isNull.js", "../../src/components/Quote/Quote.tsx", "../../src/components/SnapchatEmbed/SnapchatEmbed.query.ts", "../../src/components/SnapchatEmbed/SnapchatEmbed.tsx", "../../src/components/Video/query.ts", "../../src/components/Video/Video.tsx", "../../src/utils/contentfulComponentMap.tsx", "../../src/utils/renderText/RichTextComponents.tsx", "../../../../node_modules/lodash-es/_isFlattenable.js", "../../../../node_modules/lodash-es/_baseFlatten.js", "../../../../node_modules/lodash-es/flatMap.js", "../../src/utils/renderText/textUtils.tsx", "../../src/components/useConsumerContext.ts", "../../src/components/Button/Button.tsx", "../../src/components/Button/query.ts", "../../src/components/Analytics/query.ts", "../../src/components/CallToAction/query.ts", "../../src/components/Content/Content.tsx", "../../src/components/ImageButton/imageButtonQuery.ts", "../../src/components/ImageButton/LazyImageButton.tsx", "../../src/components/Content/Content.styles.ts", "../../src/components/Definition/query.ts", "../../src/components/Footnote/Footnote.tsx", "../../src/components/Footnote/query.ts", "../../src/components/Content/queries.ts", "../../src/components/Block/query.ts", "../../src/components/Experiment/experimentQuery.ts", "../../src/components/Experiment/useExperiments.ts", "../../src/hooks/useAbExperiments.ts", "../../src/utils/adler32.ts", "../../src/hooks/useSingleCallback.ts", "../../src/utils/singleCallback.ts", "../../src/components/FooterWrapper/Footer.styles.ts", "../../src/components/FooterWrapper/utils.ts", "../../src/components/HardcodedComponents/HardcodedComponents.tsx", "../../src/components/Header/Header.tsx", "../../src/components/NavigationCta/NavigationCta.tsx", "../../src/components/NavigationCta/query.ts", "../../src/components/GlobalHeaderCta/GlobalHeaderCta.tsx", "../../src/components/GlobalHeaderLogo/GlobalHeaderLogo.tsx", "../../src/components/GlobalHeaderSearch/GlobalHeaderSearch.tsx", "../../src/components/LocalNavDesktop/LocalNavDesktop.tsx", "../../src/components/LocalNavMobile/LocalNavMobile.tsx", "../../src/components/LocalNavMobile/LocalNavItemMobile.tsx", "../../src/components/Header/Header.styles.ts", "../../src/components/Header/headerPathUtils.ts", "../../src/components/Header/HeaderPortal.tsx", "../../src/components/Header/headerSizeUtils.ts", "../../src/components/IntlProvider/index.tsx", "../../src/components/IntlProvider/query.ts", "../../src/components/LanguageDirective/LanguageDirective.tsx", "../../src/components/LanguageDirective/language.ts", "../../src/components/LoadingBar/LoadingBar.tsx", "../../src/utils/fetch/customFetch.ts", "../../src/utils/tracing/noopTracer.ts", "../../src/utils/tracing/tracer.ts", "../../../../node_modules/@snapchat/core-browser/src/useImperativeEffect.ts", "../../src/components/logging/LogAdBlockUsage.tsx", "../../src/components/logging/LogCspViolation.tsx", "../../src/utils/url/sanitizeCspResource.ts", "../../../../node_modules/lodash-es/_baseSet.js", "../../../../node_modules/lodash-es/_basePickBy.js", "../../../../node_modules/lodash-es/_basePick.js", "../../../../node_modules/lodash-es/flatten.js", "../../../../node_modules/lodash-es/_flatRest.js", "../../../../node_modules/lodash-es/pick.js", "../../src/components/logging/LogPageLoad.tsx", "../../../../node_modules/lodash-es/throttle.js", "../../src/components/logging/LogScrollDepth.tsx", "../../src/components/MotifRootWrapper/MotifRootWrapper.tsx", "../../src/styles/customBlueMotif.ts", "../../src/styles/customGreenMotif.ts", "../../src/components/StyleHacks/StyleHacks.tsx", "../../src/components/Viewport/Viewport.tsx", "../../src/context/PageLayoutProvider.tsx", "../../src/components/FooterWrapper/query.ts", "../../src/components/Header/headerQuery.ts", "../../src/context/SitewideConfiguration/SitewideConfigurationQuery.ts", "../../src/context/SitewideConfiguration/SitewideConfigurationProvider.tsx", "../../src/ErrorBoundary.tsx", "../../src/pages/Error500/Error500.tsx", "../../src/helpers/FontChecker.tsx", "../../../../node_modules/@snapchat/import-tools/src/importDefault.ts", "../../../../node_modules/@snapchat/logging-browser/src/BlizzardClientEventListener.ts", "../../../../node_modules/@snapchat/logging-browser/src/ConsoleClientEventListener.ts", "../../../../node_modules/@snapchat/logging-browser/src/GoogleAnalytics4EventListener.ts", "../../../../node_modules/@snapchat/logging-browser/src/GoogleTagManagerClientEventListener.ts", "../../../../node_modules/@snapchat/logging-browser/src/GrapheneClientEventListener.ts", "../../../../node_modules/@snapchat/logging-browser/src/SentryClientEventListener.ts", "../../src/helpers/logging/google/GoogleEventListener.ts", "../../src/Routes.tsx", "../../src/components/Block/Block.tsx", "../../src/components/Accordion/query.ts", "../../src/components/Accordion/Accordion.tsx", "../../src/components/AnimatedAccordion/query.ts", "../../src/components/AnimatedAccordion/AnimatedAccordion.tsx", "../../src/components/CarouselV3/CarouselV3.tsx", "../../src/components/CarouselV3/CarouselV3ImageItem.tsx", "../../src/components/CarouselV3/CarouselV3TextItem.tsx", "../../src/components/CarouselV3/CarouselV3VideoItem.tsx", "../../src/components/CarouselV3/queries.ts", "../../src/components/Content/ContentShallow.tsx", "../../src/components/Form/Form.tsx", "../../src/hooks/useArkose.ts", "../../src/constants/arkose.ts", "../../src/components/Form/FieldByType.tsx", "../../../../node_modules/lodash-es/last.js", "../../../../node_modules/lodash-es/_parent.js", "../../../../node_modules/lodash-es/_baseUnset.js", "../../../../node_modules/lodash-es/_customOmitClone.js", "../../../../node_modules/lodash-es/omit.js", "../../src/components/Form/utils.ts", "../../src/components/Form/queries.ts", "../../src/components/Form/FormShallow.tsx", "../../src/components/Gallery/Gallery.tsx", "../../src/components/Gallery/constants.ts", "../../src/components/SummaryCard/SummaryCard.tsx", "../../src/hooks/useFormatDate.ts", "../../src/components/SummaryCard/SummaryCard.styled.ts", "../../src/components/Tile/query.ts", "../../src/components/Gallery/query.ts", "../../src/components/Gallery/styles.ts", "../../src/components/Gallery/LazyTiles.tsx", "../../src/components/Gallery/useGalleryTiles.ts", "../../src/components/Gallery/utils.ts", "../../src/components/Gallery/LazyGallery.tsx", "../../src/components/Mosaic/Mosaic.tsx", "../../src/components/Mosaic/query.ts", "../../src/components/Mosaic/MosaicShallow.tsx", "../../src/components/Slug/SlugContext.tsx", "../../src/components/Tabs/queries.ts", "../../src/components/Tabs/Tabs.tsx", "../../src/components/visualizations/BarChart/BarChart.tsx", "../../src/components/visualizations/query.ts", "../../src/components/visualizations/BarChart/query.ts", "../../src/components/visualizations/BarChart/BarChartShallow.tsx", "../../src/components/visualizations/ChartToggle/ChartToggle.tsx", "../../src/components/visualizations/GeoMap/GeoMap.tsx", "../../src/components/visualizations/GeoMap/query.ts", "../../src/components/visualizations/GeoMap/GeoMapShallow.tsx", "../../src/components/visualizations/LineChart/LineChart.tsx", "../../src/components/visualizations/LineChart/query.ts", "../../src/components/visualizations/LineChart/LineChartShallow.tsx", "../../src/components/visualizations/Table/query.ts", "../../src/components/visualizations/Table/Table.tsx", "../../src/components/visualizations/Table/TableShallow.tsx", "../../src/components/visualizations/ChartToggle/query.ts", "../../src/components/visualizations/ChartToggle/ChartToggleWrapper.tsx", "../../src/components/visualizations/MultiVisualization/MultiVisualization.tsx", "../../src/components/visualizations/MultiVisualization/query.ts", "../../src/components/Break/query.ts", "../../src/components/Hero/Hero.tsx", "../../src/utils/renderString.tsx", "../../src/components/Hero/getHeroHeaderComponent.tsx", "../../src/components/Hero/utils.ts", "../../src/components/Hero/query.ts", "../../src/components/Metas/Metas.tsx", "../../src/components/WebSchema/blogSchemaQuery.ts", "../../src/components/WebSchema/faqPageSchemaQuery.ts", "../../src/components/WebSchema/generateWebSchema.ts", "../../src/components/WebSchema/organizationSchemaQuery.ts", "../../src/components/WebSchema/WebSchemas.tsx", "../../src/components/Metas/query.ts", "../../src/components/ScrollAnimatedSection/query.ts", "../../src/components/SplitBlock/SplitBlock.query.ts", "../../src/components/SubNavigation/query.ts", "../../src/components/SubNavigation/SubNavigation.tsx", "../../src/components/Page/Page.tsx", "../../src/contexts/LayoutContext.tsx", "../../src/utils/direction.ts", "../../src/components/AlternateLang/AlternateLang.tsx", "../../src/components/Canonical/Canonical.tsx", "../../src/sites/snap/pages/SnapHome.tsx", "../../src/components/QuestionnaireBlock/queries.ts", "../../src/components/QuestionnaireBlock/QuestionnaireBlock.tsx", "../../src/components/customComponents.ts", "../../src/components/Hero/LatestPostHero.tsx", "../../src/components/Page/pageAssetQuery.ts", "../../src/components/Hero/latestPostQuery.ts", "../../src/components/LatestPostBlock/query.ts", "../../src/components/LatestPostBlock/LatestPostBlock.tsx", "../../src/components/MultiVideoBlock/query.ts", "../../src/components/MultiVideoBlock/MultiVideoBlock.tsx", "../../src/components/ScrollAnimatedSection/ScrollAnimatedSection.tsx", "../../src/components/Slug/Slug.styles.tsx", "../../src/components/SplitBlock/SplitBlock.tsx", "../../src/components/tracing/ActiveEventCountTracker.tsx", "../../src/components/Page/Page.styles.ts", "../../src/components/Page/PageBottomStickyPortal.tsx", "../../src/components/Page/pageStickyUtils.ts", "../../src/components/Page/pageQuery.ts", "../../src/components/Slug/allSideNavQuery.ts", "../../src/components/Slug/Slug.tsx", "../../src/components/SideNavigation/query.ts", "../../src/components/SideNavigation/SideNavigation.tsx", "../../src/components/SideNavigation/styles.ts", "../../src/components/Slug/SlugCollection.tsx", "../../src/pages/NoMatch/NoMatch.tsx", "../../src/components/Page/PageShallow.tsx", "../../src/utils/contentful/contentfulTypeQueries.ts", "../../src/utils/contentful/getQueryName.ts", "../../src/pages/NoMatch/NoMatchDefault.tsx", "../../src/pages/NoMatch/styles.ts", "../../src/pages/NoMatch/query.ts", "../../src/components/Redirect/Redirect.tsx", "../../src/components/Redirect/redirectQuery.ts", "../../src/components/Slug/slugQuery.ts", "../../src/components/Slug/slugCollectionQuery.ts", "../../src/components/Slug/slugNavigationQuery.ts", "../../src/components/Slug/useSlugToNavMap.ts", "../../src/pages/CookieSettings/CookieSettings.tsx", "../../src/pages/Search/Search.tsx", "../../src/components/Search/NoResultsFound/NoResultsFound.styles.ts", "../../src/components/Search/NoResultsFound/NoResultsFound.tsx", "../../src/components/Search/Search.types.ts", "../../src/components/Search/SearchResultItem/SearchResultItem.styled.ts", "../../src/components/Search/SearchResultItem/SearchResultItem.tsx", "../../src/hooks/useQueryParams.ts", "../../src/hooks/useSearchResults.ts", "../../src/pages/Search/styles.ts", "../../src/styles/getSiteMotif.ts", "../../../../node_modules/web-vitals/dist/web-vitals.js", "../../src/utils/initWebVitalsLogging.ts", "../../src/utils/userAgent/userAgentHints.ts", "../../src/clientonly/BrowserCookieManager.ts", "../../src/utils/cookies/CookieManager.ts", "../../src/clientonly/browserCreateUuidV4.ts", "../../../../node_modules/lodash-es/_createFind.js", "../../../../node_modules/lodash-es/toInteger.js", "../../../../node_modules/lodash-es/findLastIndex.js", "../../../../node_modules/lodash-es/findLast.js", "../../../../node_modules/lodash-es/isString.js", "../../../../node_modules/lodash-es/_asciiSize.js", "../../../../node_modules/lodash-es/_unicodeSize.js", "../../../../node_modules/lodash-es/_stringSize.js", "../../../../node_modules/lodash-es/size.js", "../../src/helpers/logging/blizzard/eventFormats/marketingWeb.ts", "../../src/helpers/logging/blizzard/eventFormats/forBusiness.ts", "../../src/helpers/logging/sentry/beforeSend.ts", "../../src/clientonly/ClientExportEventListener.ts", "../../src/clientonly/loggingInitClient.ts", "../../src/clientonly/loggingStartClient.ts", "../../../../node_modules/@apollo/src/link/error/index.ts", "../../src/utils/contentful/ContentfulCache.ts", "../../src/utils/contentful/RequestLatencyLogLink.ts", "../../src/utils/contentful/ContentfulProvider.tsx", "../../src/utils/contentful/ContentfulClientCache.ts", "../../src/utils/contentful/contentfulUrlOverrides.ts", "../../src/utils/contentful/generateFragmentTypes.ts", "../../src/utils/tracing/browserTracer.ts", "../../src/utils/webClientId/webClientIdConstants.ts", "../../src/utils/webClientId/webClientIdUtils.ts"],
  "sourcesContent": ["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n  exports.createRoot = m.createRoot;\n  exports.hydrateRoot = m.hydrateRoot;\n} else {\n  var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n  exports.createRoot = function(c, o) {\n    i.usingClientEntryPoint = true;\n    try {\n      return m.createRoot(c, o);\n    } finally {\n      i.usingClientEntryPoint = false;\n    }\n  };\n  exports.hydrateRoot = function(c, h, o) {\n    i.usingClientEntryPoint = true;\n    try {\n      return m.hydrateRoot(c, h, o);\n    } finally {\n      i.usingClientEntryPoint = false;\n    }\n  };\n}\n", "\"use strict\";\nif (0) {\n  // Trick cjs-module-lexer into adding named exports for all React exports.\n  // (if imported with `import()`, they will appear in `.default` as well.)\n  // This way, cjs-module-lexer will let all of react's (named) exports through unchanged.\n  module.exports = require(\"react\");\n}\n// We don't want bundlers to error when they encounter usage of any of these exports.\n// It's up to the package author to ensure that if they access React internals,\n// they do so in a safe way that won't break if React changes how they use these internals.\n// (e.g. only access them in development, and only in an optional way that won't\n// break if internals are not there or do not have the expected structure)\n// @ts-ignore\nmodule.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = undefined;\n// @ts-ignore\nmodule.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = undefined;\n// @ts-ignore\nmodule.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = undefined;\n// Here we actually pull in the React library and add everything\n// it exports to our own `module.exports`.\n// If React suddenly were to add one of the above \"polyfilled\" exports,\n// the React version would overwrite our version, so this should be\n// future-proof.\nObject.assign(module.exports, require(\"react\"));\n", "/**\n * Map of all Contentful block types. Blocks contain inline or block nodes.\n */\nexport enum BLOCKS {\n  DOCUMENT = 'document',\n  PARAGRAPH = 'paragraph',\n\n  HEADING_1 = 'heading-1',\n  HEADING_2 = 'heading-2',\n  HEADING_3 = 'heading-3',\n  HEADING_4 = 'heading-4',\n  HEADING_5 = 'heading-5',\n  HEADING_6 = 'heading-6',\n\n  OL_LIST = 'ordered-list',\n  UL_LIST = 'unordered-list',\n  LIST_ITEM = 'list-item',\n\n  HR = 'hr',\n  QUOTE = 'blockquote',\n\n  EMBEDDED_ENTRY = 'embedded-entry-block',\n  EMBEDDED_ASSET = 'embedded-asset-block',\n  EMBEDDED_RESOURCE = 'embedded-resource-block',\n\n  TABLE = 'table',\n  TABLE_ROW = 'table-row',\n  TABLE_CELL = 'table-cell',\n  TABLE_HEADER_CELL = 'table-header-cell',\n}\n", "/**\n * Map of all Contentful inline types. Inline contain inline or text nodes.\n */\nexport enum INLINES {\n  HYPERLINK = 'hyperlink',\n  ENTRY_HYPERLINK = 'entry-hyperlink',\n  ASSET_HYPERLINK = 'asset-hyperlink',\n  RESOURCE_HYPERLINK = 'resource-hyperlink',\n  EMBEDDED_ENTRY = 'embedded-entry-inline',\n  EMBEDDED_RESOURCE = 'embedded-resource-inline',\n}\n", "/**\n * Map of all Contentful marks.\n */\nexport enum MARKS {\n  BOLD = 'bold',\n  ITALIC = 'italic',\n  UNDERLINE = 'underline',\n  CODE = 'code',\n  SUPERSCRIPT = 'superscript',\n  SUBSCRIPT = 'subscript',\n}\n", "import { BLOCKS } from './blocks';\nimport { INLINES } from './inlines';\nimport { MARKS } from './marks';\n\nexport type TopLevelBlockEnum =\n  | BLOCKS.PARAGRAPH\n  | BLOCKS.HEADING_1\n  | BLOCKS.HEADING_2\n  | BLOCKS.HEADING_3\n  | BLOCKS.HEADING_4\n  | BLOCKS.HEADING_5\n  | BLOCKS.HEADING_6\n  | BLOCKS.OL_LIST\n  | BLOCKS.UL_LIST\n  | BLOCKS.HR\n  | BLOCKS.QUOTE\n  | BLOCKS.EMBEDDED_ENTRY\n  | BLOCKS.EMBEDDED_ASSET\n  | BLOCKS.EMBEDDED_RESOURCE\n  | BLOCKS.TABLE;\n\n/**\n * Array of all top level block types.\n * Only these block types can be the direct children of the document.\n */\nexport const TOP_LEVEL_BLOCKS: TopLevelBlockEnum[] = [\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n  BLOCKS.TABLE,\n];\n\nexport type ListItemBlockEnum =\n  | BLOCKS.PARAGRAPH\n  | BLOCKS.HEADING_1\n  | BLOCKS.HEADING_2\n  | BLOCKS.HEADING_3\n  | BLOCKS.HEADING_4\n  | BLOCKS.HEADING_5\n  | BLOCKS.HEADING_6\n  | BLOCKS.OL_LIST\n  | BLOCKS.UL_LIST\n  | BLOCKS.HR\n  | BLOCKS.QUOTE\n  | BLOCKS.EMBEDDED_ENTRY\n  | BLOCKS.EMBEDDED_ASSET\n  | BLOCKS.EMBEDDED_RESOURCE;\n\n/**\n * Array of all allowed block types inside list items\n */\nexport const LIST_ITEM_BLOCKS: TopLevelBlockEnum[] = [\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n];\n\nexport const TABLE_BLOCKS = [\n  BLOCKS.TABLE,\n  BLOCKS.TABLE_ROW,\n  BLOCKS.TABLE_CELL,\n  BLOCKS.TABLE_HEADER_CELL,\n];\n\n/**\n * Array of all void block types\n */\nexport const VOID_BLOCKS = [\n  BLOCKS.HR,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n];\n\n/**\n * Dictionary of all container block types, and the set block types they accept as children.\n *\n * Note: This does not include `[BLOCKS.DOCUMENT]: TOP_LEVEL_BLOCKS`\n */\nexport const CONTAINERS = {\n  [BLOCKS.OL_LIST]: [BLOCKS.LIST_ITEM],\n  [BLOCKS.UL_LIST]: [BLOCKS.LIST_ITEM],\n  [BLOCKS.LIST_ITEM]: LIST_ITEM_BLOCKS,\n  [BLOCKS.QUOTE]: [BLOCKS.PARAGRAPH],\n  [BLOCKS.TABLE]: [BLOCKS.TABLE_ROW],\n  [BLOCKS.TABLE_ROW]: [BLOCKS.TABLE_CELL, BLOCKS.TABLE_HEADER_CELL],\n  [BLOCKS.TABLE_CELL]: [BLOCKS.PARAGRAPH],\n  [BLOCKS.TABLE_HEADER_CELL]: [BLOCKS.PARAGRAPH],\n};\n\n/**\n * Array of all heading levels\n */\nexport const HEADINGS = [\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n];\n\n/**\n * Array of all block types that may contain text and inline nodes.\n */\nexport const TEXT_CONTAINERS = [BLOCKS.PARAGRAPH, ...HEADINGS];\n\n/**\n * Node types before `tables` release.\n */\nexport const V1_NODE_TYPES = [\n  BLOCKS.DOCUMENT,\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.LIST_ITEM,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  INLINES.HYPERLINK,\n  INLINES.ENTRY_HYPERLINK,\n  INLINES.ASSET_HYPERLINK,\n  INLINES.EMBEDDED_ENTRY,\n  'text',\n];\n\n/**\n * Marks before `superscript` & `subscript` release.\n */\nexport const V1_MARKS = [MARKS.BOLD, MARKS.CODE, MARKS.ITALIC, MARKS.UNDERLINE];\n", "import { Document } from './types';\nimport { BLOCKS } from './blocks';\n\n/**\n * A rich text document considered to be empty.\n * Any other document structure than this is not considered empty.\n */\nexport const EMPTY_DOCUMENT: Document = {\n  nodeType: BLOCKS.DOCUMENT,\n  data: {},\n  content: [\n    {\n      nodeType: BLOCKS.PARAGRAPH,\n      data: {},\n      content: [\n        {\n          nodeType: 'text',\n          value: '',\n          marks: [],\n          data: {},\n        },\n      ],\n    },\n  ],\n};\n", "import { Node, Block, Inline, Text } from './types';\nimport { BLOCKS } from './blocks';\nimport { INLINES } from './inlines';\n\n/**\n * Tiny replacement for Object.values(object).includes(key) to\n * avoid including CoreJS polyfills\n */\nfunction hasValue(obj: Record<string, unknown>, value: unknown) {\n  for (const key of Object.keys(obj)) {\n    if (value === obj[key]) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\n/**\n * Checks if the node is an instance of Inline.\n */\nexport function isInline(node: Node): node is Inline {\n  return hasValue(INLINES, node.nodeType);\n}\n\n/**\n * Checks if the node is an instance of Block.\n */\nexport function isBlock(node: Node): node is Block {\n  return hasValue(BLOCKS, node.nodeType);\n}\n\n/**\n * Checks if the node is an instance of Text.\n */\nexport function isText(node: Node): node is Text {\n  return node.nodeType === 'text';\n}\n", "export { BLOCKS } from './blocks';\nexport { INLINES } from './inlines';\nexport { MARKS } from './marks';\n\nexport * from './schemaConstraints';\n\nexport * from './types';\nexport * from './nodeTypes';\n\nexport { EMPTY_DOCUMENT } from './emptyDocument';\n\nimport * as helpers from './helpers';\nexport { helpers };\n", "import { Block, Inline, Node, helpers } from '@contentful/rich-text-types';\n\n/**\n * Returns the text value of a rich text document.\n *\n * NB: This can be applied to non text node of a structured text document,\n * hence the flexible typing.\n */\nexport function documentToPlainTextString(\n  rootNode: Block | Inline,\n  blockDivisor: string = ' ',\n): string {\n  if (!rootNode || !rootNode.content || !Array.isArray(rootNode.content)) {\n    /**\n     * Handles edge cases, such as when the value is not set in the CMA or the\n     * field has not been properly validated, e.g. because of a user extension.\n     * Note that we are nevertheless strictly type-casting `rootNode` as\n     * Block | Inline. Valid rich text documents (and their branch block nodes)\n     * should never lack a Node[] `content` property.\n     */\n    return '';\n  }\n\n  /**\n   * Algorithm notes: We only want to apply spacing when a node is part of a\n   * sequence. This is tricky because nodes can often be deeply nested within\n   * non-semantic content arrays. For example, to get the text value of an\n   * unordered list, we have to traverse like so:\n   *\n   * {\n   *   nodeType: BLOCKS.UL_LIST,\n   *   data: {},\n   *   content: [\n   *     {\n   *       nodeType: BLOCKS.LIST_ITEM,\n   *       data: {},\n   *       content: [{\n   *         nodeType: BLOCKS.PARAGRAPH,\n   *         data: {},\n   *         content: [\n   *           { nodeType: 'text', data: {}, value: 'List ', marks: [] },\n   *           { nodeType: 'text', data: {}, value: 'item', marks: [{ type: 'bold' }] }\n   *         ]\n   *       }]\n   *     },\n   *     {\n   *       nodeType: BLOCKS.LIST_ITEM,\n   *       data: {},\n   *       content: [{\n   *         nodeType: BLOCKS.PARAGRAPH,\n   *         data: {},\n   *         content: [\n   *           { nodeType: 'text', data: {}, value: 'Another list item', marks: [] }\n   *         ]\n   *       }]\n   *     },\n   *     {\n   *       nodeType: BLOCKS.LIST_ITEM,\n   *       data: {},\n   *       content: [{\n   *         nodeType: BLOCKS.HR,\n   *         data: {},\n   *         content: [],\n   *       }]\n   *     },\n   *     {\n   *       nodeType: BLOCKS.LIST_ITEM,\n   *       data: {},\n   *       content: [{\n   *         nodeType: BLOCKS.PARAGRAPH,\n   *         data:\n   *         content: [\n   *           { nodeType: 'text', data: {}, value: 'Yet another list item', marks: [] }\n   *         ]\n   *       }]\n   *     },\n   *   }]\n   * }\n   *\n   * We want there to be a space between 'List item' and 'Another list item' (to\n   * denote a visual line break, which conventionally appears between non-text\n   * node sequences) but not a redundant space between 'List ' and 'item'.\n   * Moreover, we want just a _singular_ space between 'Another list item' and\n   * 'Yet another list item' - the non-semantic HR between the two nodes should\n   * not denote an additional space.\n   */\n  return (rootNode as Block).content.reduce((acc: string, node: Node, i: number): string => {\n    let nodeTextValue: string;\n\n    if (helpers.isText(node)) {\n      nodeTextValue = node.value;\n    } else if (helpers.isBlock(node) || helpers.isInline(node)) {\n      nodeTextValue = documentToPlainTextString(node, blockDivisor);\n      if (!nodeTextValue.length) {\n        return acc;\n      }\n    }\n\n    const nextNode = rootNode.content[i + 1];\n    const isNextNodeBlock = nextNode && helpers.isBlock(nextNode);\n    const divisor = isNextNodeBlock ? blockDivisor : '';\n    return acc + nodeTextValue + divisor;\n  }, '');\n}\n", "// Save global object in a variable\nvar __global__ =\n(typeof globalThis !== 'undefined' && globalThis) ||\n(typeof self !== 'undefined' && self) ||\n(typeof global !== 'undefined' && global);\n// Create an object that extends from __global__ without the fetch function\nvar __globalThis__ = (function () {\nfunction F() {\nthis.fetch = false;\nthis.DOMException = __global__.DOMException\n}\nF.prototype = __global__; // Needed for feature detection on whatwg-fetch's code\nreturn new F();\n})();\n// Wraps whatwg-fetch with a function scope to hijack the global object\n// \"globalThis\" that's going to be patched\n(function(globalThis) {\n\nvar irrelevant = (function (exports) {\n\n  var global =\n    (typeof globalThis !== 'undefined' && globalThis) ||\n    (typeof self !== 'undefined' && self) ||\n    (typeof global !== 'undefined' && global);\n\n  var support = {\n    searchParams: 'URLSearchParams' in global,\n    iterable: 'Symbol' in global && 'iterator' in Symbol,\n    blob:\n      'FileReader' in global &&\n      'Blob' in global &&\n      (function() {\n        try {\n          new Blob();\n          return true\n        } catch (e) {\n          return false\n        }\n      })(),\n    formData: 'FormData' in global,\n    arrayBuffer: 'ArrayBuffer' in global\n  };\n\n  function isDataView(obj) {\n    return obj && DataView.prototype.isPrototypeOf(obj)\n  }\n\n  if (support.arrayBuffer) {\n    var viewClasses = [\n      '[object Int8Array]',\n      '[object Uint8Array]',\n      '[object Uint8ClampedArray]',\n      '[object Int16Array]',\n      '[object Uint16Array]',\n      '[object Int32Array]',\n      '[object Uint32Array]',\n      '[object Float32Array]',\n      '[object Float64Array]'\n    ];\n\n    var isArrayBufferView =\n      ArrayBuffer.isView ||\n      function(obj) {\n        return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n      };\n  }\n\n  function normalizeName(name) {\n    if (typeof name !== 'string') {\n      name = String(name);\n    }\n    if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n      throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n    }\n    return name.toLowerCase()\n  }\n\n  function normalizeValue(value) {\n    if (typeof value !== 'string') {\n      value = String(value);\n    }\n    return value\n  }\n\n  // Build a destructive iterator for the value list\n  function iteratorFor(items) {\n    var iterator = {\n      next: function() {\n        var value = items.shift();\n        return {done: value === undefined, value: value}\n      }\n    };\n\n    if (support.iterable) {\n      iterator[Symbol.iterator] = function() {\n        return iterator\n      };\n    }\n\n    return iterator\n  }\n\n  function Headers(headers) {\n    this.map = {};\n\n    if (headers instanceof Headers) {\n      headers.forEach(function(value, name) {\n        this.append(name, value);\n      }, this);\n    } else if (Array.isArray(headers)) {\n      headers.forEach(function(header) {\n        this.append(header[0], header[1]);\n      }, this);\n    } else if (headers) {\n      Object.getOwnPropertyNames(headers).forEach(function(name) {\n        this.append(name, headers[name]);\n      }, this);\n    }\n  }\n\n  Headers.prototype.append = function(name, value) {\n    name = normalizeName(name);\n    value = normalizeValue(value);\n    var oldValue = this.map[name];\n    this.map[name] = oldValue ? oldValue + ', ' + value : value;\n  };\n\n  Headers.prototype['delete'] = function(name) {\n    delete this.map[normalizeName(name)];\n  };\n\n  Headers.prototype.get = function(name) {\n    name = normalizeName(name);\n    return this.has(name) ? this.map[name] : null\n  };\n\n  Headers.prototype.has = function(name) {\n    return this.map.hasOwnProperty(normalizeName(name))\n  };\n\n  Headers.prototype.set = function(name, value) {\n    this.map[normalizeName(name)] = normalizeValue(value);\n  };\n\n  Headers.prototype.forEach = function(callback, thisArg) {\n    for (var name in this.map) {\n      if (this.map.hasOwnProperty(name)) {\n        callback.call(thisArg, this.map[name], name, this);\n      }\n    }\n  };\n\n  Headers.prototype.keys = function() {\n    var items = [];\n    this.forEach(function(value, name) {\n      items.push(name);\n    });\n    return iteratorFor(items)\n  };\n\n  Headers.prototype.values = function() {\n    var items = [];\n    this.forEach(function(value) {\n      items.push(value);\n    });\n    return iteratorFor(items)\n  };\n\n  Headers.prototype.entries = function() {\n    var items = [];\n    this.forEach(function(value, name) {\n      items.push([name, value]);\n    });\n    return iteratorFor(items)\n  };\n\n  if (support.iterable) {\n    Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\n  }\n\n  function consumed(body) {\n    if (body.bodyUsed) {\n      return Promise.reject(new TypeError('Already read'))\n    }\n    body.bodyUsed = true;\n  }\n\n  function fileReaderReady(reader) {\n    return new Promise(function(resolve, reject) {\n      reader.onload = function() {\n        resolve(reader.result);\n      };\n      reader.onerror = function() {\n        reject(reader.error);\n      };\n    })\n  }\n\n  function readBlobAsArrayBuffer(blob) {\n    var reader = new FileReader();\n    var promise = fileReaderReady(reader);\n    reader.readAsArrayBuffer(blob);\n    return promise\n  }\n\n  function readBlobAsText(blob) {\n    var reader = new FileReader();\n    var promise = fileReaderReady(reader);\n    reader.readAsText(blob);\n    return promise\n  }\n\n  function readArrayBufferAsText(buf) {\n    var view = new Uint8Array(buf);\n    var chars = new Array(view.length);\n\n    for (var i = 0; i < view.length; i++) {\n      chars[i] = String.fromCharCode(view[i]);\n    }\n    return chars.join('')\n  }\n\n  function bufferClone(buf) {\n    if (buf.slice) {\n      return buf.slice(0)\n    } else {\n      var view = new Uint8Array(buf.byteLength);\n      view.set(new Uint8Array(buf));\n      return view.buffer\n    }\n  }\n\n  function Body() {\n    this.bodyUsed = false;\n\n    this._initBody = function(body) {\n      /*\n        fetch-mock wraps the Response object in an ES6 Proxy to\n        provide useful test harness features such as flush. However, on\n        ES5 browsers without fetch or Proxy support pollyfills must be used;\n        the proxy-pollyfill is unable to proxy an attribute unless it exists\n        on the object before the Proxy is created. This change ensures\n        Response.bodyUsed exists on the instance, while maintaining the\n        semantic of setting Request.bodyUsed in the constructor before\n        _initBody is called.\n      */\n      this.bodyUsed = this.bodyUsed;\n      this._bodyInit = body;\n      if (!body) {\n        this._bodyText = '';\n      } else if (typeof body === 'string') {\n        this._bodyText = body;\n      } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n        this._bodyBlob = body;\n      } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n        this._bodyFormData = body;\n      } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n        this._bodyText = body.toString();\n      } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n        this._bodyArrayBuffer = bufferClone(body.buffer);\n        // IE 10-11 can't handle a DataView body.\n        this._bodyInit = new Blob([this._bodyArrayBuffer]);\n      } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n        this._bodyArrayBuffer = bufferClone(body);\n      } else {\n        this._bodyText = body = Object.prototype.toString.call(body);\n      }\n\n      if (!this.headers.get('content-type')) {\n        if (typeof body === 'string') {\n          this.headers.set('content-type', 'text/plain;charset=UTF-8');\n        } else if (this._bodyBlob && this._bodyBlob.type) {\n          this.headers.set('content-type', this._bodyBlob.type);\n        } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n          this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n        }\n      }\n    };\n\n    if (support.blob) {\n      this.blob = function() {\n        var rejected = consumed(this);\n        if (rejected) {\n          return rejected\n        }\n\n        if (this._bodyBlob) {\n          return Promise.resolve(this._bodyBlob)\n        } else if (this._bodyArrayBuffer) {\n          return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n        } else if (this._bodyFormData) {\n          throw new Error('could not read FormData body as blob')\n        } else {\n          return Promise.resolve(new Blob([this._bodyText]))\n        }\n      };\n\n      this.arrayBuffer = function() {\n        if (this._bodyArrayBuffer) {\n          var isConsumed = consumed(this);\n          if (isConsumed) {\n            return isConsumed\n          }\n          if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n            return Promise.resolve(\n              this._bodyArrayBuffer.buffer.slice(\n                this._bodyArrayBuffer.byteOffset,\n                this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n              )\n            )\n          } else {\n            return Promise.resolve(this._bodyArrayBuffer)\n          }\n        } else {\n          return this.blob().then(readBlobAsArrayBuffer)\n        }\n      };\n    }\n\n    this.text = function() {\n      var rejected = consumed(this);\n      if (rejected) {\n        return rejected\n      }\n\n      if (this._bodyBlob) {\n        return readBlobAsText(this._bodyBlob)\n      } else if (this._bodyArrayBuffer) {\n        return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n      } else if (this._bodyFormData) {\n        throw new Error('could not read FormData body as text')\n      } else {\n        return Promise.resolve(this._bodyText)\n      }\n    };\n\n    if (support.formData) {\n      this.formData = function() {\n        return this.text().then(decode)\n      };\n    }\n\n    this.json = function() {\n      return this.text().then(JSON.parse)\n    };\n\n    return this\n  }\n\n  // HTTP methods whose capitalization should be normalized\n  var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];\n\n  function normalizeMethod(method) {\n    var upcased = method.toUpperCase();\n    return methods.indexOf(upcased) > -1 ? upcased : method\n  }\n\n  function Request(input, options) {\n    if (!(this instanceof Request)) {\n      throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n    }\n\n    options = options || {};\n    var body = options.body;\n\n    if (input instanceof Request) {\n      if (input.bodyUsed) {\n        throw new TypeError('Already read')\n      }\n      this.url = input.url;\n      this.credentials = input.credentials;\n      if (!options.headers) {\n        this.headers = new Headers(input.headers);\n      }\n      this.method = input.method;\n      this.mode = input.mode;\n      this.signal = input.signal;\n      if (!body && input._bodyInit != null) {\n        body = input._bodyInit;\n        input.bodyUsed = true;\n      }\n    } else {\n      this.url = String(input);\n    }\n\n    this.credentials = options.credentials || this.credentials || 'same-origin';\n    if (options.headers || !this.headers) {\n      this.headers = new Headers(options.headers);\n    }\n    this.method = normalizeMethod(options.method || this.method || 'GET');\n    this.mode = options.mode || this.mode || null;\n    this.signal = options.signal || this.signal;\n    this.referrer = null;\n\n    if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n      throw new TypeError('Body not allowed for GET or HEAD requests')\n    }\n    this._initBody(body);\n\n    if (this.method === 'GET' || this.method === 'HEAD') {\n      if (options.cache === 'no-store' || options.cache === 'no-cache') {\n        // Search for a '_' parameter in the query string\n        var reParamSearch = /([?&])_=[^&]*/;\n        if (reParamSearch.test(this.url)) {\n          // If it already exists then set the value with the current time\n          this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime());\n        } else {\n          // Otherwise add a new '_' parameter to the end with the current time\n          var reQueryString = /\\?/;\n          this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime();\n        }\n      }\n    }\n  }\n\n  Request.prototype.clone = function() {\n    return new Request(this, {body: this._bodyInit})\n  };\n\n  function decode(body) {\n    var form = new FormData();\n    body\n      .trim()\n      .split('&')\n      .forEach(function(bytes) {\n        if (bytes) {\n          var split = bytes.split('=');\n          var name = split.shift().replace(/\\+/g, ' ');\n          var value = split.join('=').replace(/\\+/g, ' ');\n          form.append(decodeURIComponent(name), decodeURIComponent(value));\n        }\n      });\n    return form\n  }\n\n  function parseHeaders(rawHeaders) {\n    var headers = new Headers();\n    // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n    // https://tools.ietf.org/html/rfc7230#section-3.2\n    var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\n    // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n    // https://github.com/github/fetch/issues/748\n    // https://github.com/zloirock/core-js/issues/751\n    preProcessedHeaders\n      .split('\\r')\n      .map(function(header) {\n        return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n      })\n      .forEach(function(line) {\n        var parts = line.split(':');\n        var key = parts.shift().trim();\n        if (key) {\n          var value = parts.join(':').trim();\n          headers.append(key, value);\n        }\n      });\n    return headers\n  }\n\n  Body.call(Request.prototype);\n\n  function Response(bodyInit, options) {\n    if (!(this instanceof Response)) {\n      throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n    }\n    if (!options) {\n      options = {};\n    }\n\n    this.type = 'default';\n    this.status = options.status === undefined ? 200 : options.status;\n    this.ok = this.status >= 200 && this.status < 300;\n    this.statusText = options.statusText === undefined ? '' : '' + options.statusText;\n    this.headers = new Headers(options.headers);\n    this.url = options.url || '';\n    this._initBody(bodyInit);\n  }\n\n  Body.call(Response.prototype);\n\n  Response.prototype.clone = function() {\n    return new Response(this._bodyInit, {\n      status: this.status,\n      statusText: this.statusText,\n      headers: new Headers(this.headers),\n      url: this.url\n    })\n  };\n\n  Response.error = function() {\n    var response = new Response(null, {status: 0, statusText: ''});\n    response.type = 'error';\n    return response\n  };\n\n  var redirectStatuses = [301, 302, 303, 307, 308];\n\n  Response.redirect = function(url, status) {\n    if (redirectStatuses.indexOf(status) === -1) {\n      throw new RangeError('Invalid status code')\n    }\n\n    return new Response(null, {status: status, headers: {location: url}})\n  };\n\n  exports.DOMException = global.DOMException;\n  try {\n    new exports.DOMException();\n  } catch (err) {\n    exports.DOMException = function(message, name) {\n      this.message = message;\n      this.name = name;\n      var error = Error(message);\n      this.stack = error.stack;\n    };\n    exports.DOMException.prototype = Object.create(Error.prototype);\n    exports.DOMException.prototype.constructor = exports.DOMException;\n  }\n\n  function fetch(input, init) {\n    return new Promise(function(resolve, reject) {\n      var request = new Request(input, init);\n\n      if (request.signal && request.signal.aborted) {\n        return reject(new exports.DOMException('Aborted', 'AbortError'))\n      }\n\n      var xhr = new XMLHttpRequest();\n\n      function abortXhr() {\n        xhr.abort();\n      }\n\n      xhr.onload = function() {\n        var options = {\n          status: xhr.status,\n          statusText: xhr.statusText,\n          headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n        };\n        options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');\n        var body = 'response' in xhr ? xhr.response : xhr.responseText;\n        setTimeout(function() {\n          resolve(new Response(body, options));\n        }, 0);\n      };\n\n      xhr.onerror = function() {\n        setTimeout(function() {\n          reject(new TypeError('Network request failed'));\n        }, 0);\n      };\n\n      xhr.ontimeout = function() {\n        setTimeout(function() {\n          reject(new TypeError('Network request failed'));\n        }, 0);\n      };\n\n      xhr.onabort = function() {\n        setTimeout(function() {\n          reject(new exports.DOMException('Aborted', 'AbortError'));\n        }, 0);\n      };\n\n      function fixUrl(url) {\n        try {\n          return url === '' && global.location.href ? global.location.href : url\n        } catch (e) {\n          return url\n        }\n      }\n\n      xhr.open(request.method, fixUrl(request.url), true);\n\n      if (request.credentials === 'include') {\n        xhr.withCredentials = true;\n      } else if (request.credentials === 'omit') {\n        xhr.withCredentials = false;\n      }\n\n      if ('responseType' in xhr) {\n        if (support.blob) {\n          xhr.responseType = 'blob';\n        } else if (\n          support.arrayBuffer &&\n          request.headers.get('Content-Type') &&\n          request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n        ) {\n          xhr.responseType = 'arraybuffer';\n        }\n      }\n\n      if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n        Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n          xhr.setRequestHeader(name, normalizeValue(init.headers[name]));\n        });\n      } else {\n        request.headers.forEach(function(value, name) {\n          xhr.setRequestHeader(name, value);\n        });\n      }\n\n      if (request.signal) {\n        request.signal.addEventListener('abort', abortXhr);\n\n        xhr.onreadystatechange = function() {\n          // DONE (success or failure)\n          if (xhr.readyState === 4) {\n            request.signal.removeEventListener('abort', abortXhr);\n          }\n        };\n      }\n\n      xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);\n    })\n  }\n\n  fetch.polyfill = true;\n\n  if (!global.fetch) {\n    global.fetch = fetch;\n    global.Headers = Headers;\n    global.Request = Request;\n    global.Response = Response;\n  }\n\n  exports.Headers = Headers;\n  exports.Request = Request;\n  exports.Response = Response;\n  exports.fetch = fetch;\n\n  return exports;\n\n})({});\n})(__globalThis__);\n// This is a ponyfill, so...\n__globalThis__.fetch.ponyfill = true;\ndelete __globalThis__.fetch.polyfill;\n// Choose between native implementation (__global__) or custom implementation (__globalThis__)\nvar ctx = __global__.fetch ? __global__ : __globalThis__;\nexports = ctx.fetch // To enable: import fetch from 'cross-fetch'\nexports.default = ctx.fetch // For TypeScript consumers without esModuleInterop.\nexports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'\nexports.Headers = ctx.Headers\nexports.Request = ctx.Request\nexports.Response = ctx.Response\nmodule.exports = exports\n", "module.exports = Long;\r\n\r\n/**\r\n * wasm optimizations, to do native i64 multiplication and divide\r\n */\r\nvar wasm = null;\r\n\r\ntry {\r\n  wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([\r\n    0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11\r\n  ])), {}).exports;\r\n} catch (e) {\r\n  // no wasm support :(\r\n}\r\n\r\n/**\r\n * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.\r\n *  See the from* functions below for more convenient ways of constructing Longs.\r\n * @exports Long\r\n * @class A Long class for representing a 64 bit two's-complement integer value.\r\n * @param {number} low The low (signed) 32 bits of the long\r\n * @param {number} high The high (signed) 32 bits of the long\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @constructor\r\n */\r\nfunction Long(low, high, unsigned) {\r\n\r\n    /**\r\n     * The low 32 bits as a signed value.\r\n     * @type {number}\r\n     */\r\n    this.low = low | 0;\r\n\r\n    /**\r\n     * The high 32 bits as a signed value.\r\n     * @type {number}\r\n     */\r\n    this.high = high | 0;\r\n\r\n    /**\r\n     * Whether unsigned or not.\r\n     * @type {boolean}\r\n     */\r\n    this.unsigned = !!unsigned;\r\n}\r\n\r\n// The internal representation of a long is the two given signed, 32-bit values.\r\n// We use 32-bit pieces because these are the size of integers on which\r\n// Javascript performs bit-operations.  For operations like addition and\r\n// multiplication, we split each number into 16 bit pieces, which can easily be\r\n// multiplied within Javascript's floating-point representation without overflow\r\n// or change in sign.\r\n//\r\n// In the algorithms below, we frequently reduce the negative case to the\r\n// positive case by negating the input(s) and then post-processing the result.\r\n// Note that we must ALWAYS check specially whether those values are MIN_VALUE\r\n// (-2^63) because -MIN_VALUE == MIN_VALUE (since 2^63 cannot be represented as\r\n// a positive number, it overflows back into a negative).  Not handling this\r\n// case would often result in infinite recursion.\r\n//\r\n// Common constant values ZERO, ONE, NEG_ONE, etc. are defined below the from*\r\n// methods on which they depend.\r\n\r\n/**\r\n * An indicator used to reliably determine if an object is a Long or not.\r\n * @type {boolean}\r\n * @const\r\n * @private\r\n */\r\nLong.prototype.__isLong__;\r\n\r\nObject.defineProperty(Long.prototype, \"__isLong__\", { value: true });\r\n\r\n/**\r\n * @function\r\n * @param {*} obj Object\r\n * @returns {boolean}\r\n * @inner\r\n */\r\nfunction isLong(obj) {\r\n    return (obj && obj[\"__isLong__\"]) === true;\r\n}\r\n\r\n/**\r\n * Tests if the specified object is a Long.\r\n * @function\r\n * @param {*} obj Object\r\n * @returns {boolean}\r\n */\r\nLong.isLong = isLong;\r\n\r\n/**\r\n * A cache of the Long representations of small integer values.\r\n * @type {!Object}\r\n * @inner\r\n */\r\nvar INT_CACHE = {};\r\n\r\n/**\r\n * A cache of the Long representations of small unsigned integer values.\r\n * @type {!Object}\r\n * @inner\r\n */\r\nvar UINT_CACHE = {};\r\n\r\n/**\r\n * @param {number} value\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromInt(value, unsigned) {\r\n    var obj, cachedObj, cache;\r\n    if (unsigned) {\r\n        value >>>= 0;\r\n        if (cache = (0 <= value && value < 256)) {\r\n            cachedObj = UINT_CACHE[value];\r\n            if (cachedObj)\r\n                return cachedObj;\r\n        }\r\n        obj = fromBits(value, (value | 0) < 0 ? -1 : 0, true);\r\n        if (cache)\r\n            UINT_CACHE[value] = obj;\r\n        return obj;\r\n    } else {\r\n        value |= 0;\r\n        if (cache = (-128 <= value && value < 128)) {\r\n            cachedObj = INT_CACHE[value];\r\n            if (cachedObj)\r\n                return cachedObj;\r\n        }\r\n        obj = fromBits(value, value < 0 ? -1 : 0, false);\r\n        if (cache)\r\n            INT_CACHE[value] = obj;\r\n        return obj;\r\n    }\r\n}\r\n\r\n/**\r\n * Returns a Long representing the given 32 bit integer value.\r\n * @function\r\n * @param {number} value The 32 bit integer in question\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromInt = fromInt;\r\n\r\n/**\r\n * @param {number} value\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromNumber(value, unsigned) {\r\n    if (isNaN(value))\r\n        return unsigned ? UZERO : ZERO;\r\n    if (unsigned) {\r\n        if (value < 0)\r\n            return UZERO;\r\n        if (value >= TWO_PWR_64_DBL)\r\n            return MAX_UNSIGNED_VALUE;\r\n    } else {\r\n        if (value <= -TWO_PWR_63_DBL)\r\n            return MIN_VALUE;\r\n        if (value + 1 >= TWO_PWR_63_DBL)\r\n            return MAX_VALUE;\r\n    }\r\n    if (value < 0)\r\n        return fromNumber(-value, unsigned).neg();\r\n    return fromBits((value % TWO_PWR_32_DBL) | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);\r\n}\r\n\r\n/**\r\n * Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.\r\n * @function\r\n * @param {number} value The number in question\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromNumber = fromNumber;\r\n\r\n/**\r\n * @param {number} lowBits\r\n * @param {number} highBits\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromBits(lowBits, highBits, unsigned) {\r\n    return new Long(lowBits, highBits, unsigned);\r\n}\r\n\r\n/**\r\n * Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is\r\n *  assumed to use 32 bits.\r\n * @function\r\n * @param {number} lowBits The low 32 bits\r\n * @param {number} highBits The high 32 bits\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromBits = fromBits;\r\n\r\n/**\r\n * @function\r\n * @param {number} base\r\n * @param {number} exponent\r\n * @returns {number}\r\n * @inner\r\n */\r\nvar pow_dbl = Math.pow; // Used 4 times (4*8 to 15+4)\r\n\r\n/**\r\n * @param {string} str\r\n * @param {(boolean|number)=} unsigned\r\n * @param {number=} radix\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromString(str, unsigned, radix) {\r\n    if (str.length === 0)\r\n        throw Error('empty string');\r\n    if (str === \"NaN\" || str === \"Infinity\" || str === \"+Infinity\" || str === \"-Infinity\")\r\n        return ZERO;\r\n    if (typeof unsigned === 'number') {\r\n        // For goog.math.long compatibility\r\n        radix = unsigned,\r\n        unsigned = false;\r\n    } else {\r\n        unsigned = !! unsigned;\r\n    }\r\n    radix = radix || 10;\r\n    if (radix < 2 || 36 < radix)\r\n        throw RangeError('radix');\r\n\r\n    var p;\r\n    if ((p = str.indexOf('-')) > 0)\r\n        throw Error('interior hyphen');\r\n    else if (p === 0) {\r\n        return fromString(str.substring(1), unsigned, radix).neg();\r\n    }\r\n\r\n    // Do several (8) digits each time through the loop, so as to\r\n    // minimize the calls to the very expensive emulated div.\r\n    var radixToPower = fromNumber(pow_dbl(radix, 8));\r\n\r\n    var result = ZERO;\r\n    for (var i = 0; i < str.length; i += 8) {\r\n        var size = Math.min(8, str.length - i),\r\n            value = parseInt(str.substring(i, i + size), radix);\r\n        if (size < 8) {\r\n            var power = fromNumber(pow_dbl(radix, size));\r\n            result = result.mul(power).add(fromNumber(value));\r\n        } else {\r\n            result = result.mul(radixToPower);\r\n            result = result.add(fromNumber(value));\r\n        }\r\n    }\r\n    result.unsigned = unsigned;\r\n    return result;\r\n}\r\n\r\n/**\r\n * Returns a Long representation of the given string, written using the specified radix.\r\n * @function\r\n * @param {string} str The textual representation of the Long\r\n * @param {(boolean|number)=} unsigned Whether unsigned or not, defaults to signed\r\n * @param {number=} radix The radix in which the text is written (2-36), defaults to 10\r\n * @returns {!Long} The corresponding Long value\r\n */\r\nLong.fromString = fromString;\r\n\r\n/**\r\n * @function\r\n * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val\r\n * @param {boolean=} unsigned\r\n * @returns {!Long}\r\n * @inner\r\n */\r\nfunction fromValue(val, unsigned) {\r\n    if (typeof val === 'number')\r\n        return fromNumber(val, unsigned);\r\n    if (typeof val === 'string')\r\n        return fromString(val, unsigned);\r\n    // Throws for non-objects, converts non-instanceof Long:\r\n    return fromBits(val.low, val.high, typeof unsigned === 'boolean' ? unsigned : val.unsigned);\r\n}\r\n\r\n/**\r\n * Converts the specified value to a Long using the appropriate from* function for its type.\r\n * @function\r\n * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val Value\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {!Long}\r\n */\r\nLong.fromValue = fromValue;\r\n\r\n// NOTE: the compiler should inline these constant values below and then remove these variables, so there should be\r\n// no runtime penalty for these.\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_16_DBL = 1 << 16;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_24_DBL = 1 << 24;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;\r\n\r\n/**\r\n * @type {number}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;\r\n\r\n/**\r\n * @type {!Long}\r\n * @const\r\n * @inner\r\n */\r\nvar TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar ZERO = fromInt(0);\r\n\r\n/**\r\n * Signed zero.\r\n * @type {!Long}\r\n */\r\nLong.ZERO = ZERO;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar UZERO = fromInt(0, true);\r\n\r\n/**\r\n * Unsigned zero.\r\n * @type {!Long}\r\n */\r\nLong.UZERO = UZERO;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar ONE = fromInt(1);\r\n\r\n/**\r\n * Signed one.\r\n * @type {!Long}\r\n */\r\nLong.ONE = ONE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar UONE = fromInt(1, true);\r\n\r\n/**\r\n * Unsigned one.\r\n * @type {!Long}\r\n */\r\nLong.UONE = UONE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar NEG_ONE = fromInt(-1);\r\n\r\n/**\r\n * Signed negative one.\r\n * @type {!Long}\r\n */\r\nLong.NEG_ONE = NEG_ONE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar MAX_VALUE = fromBits(0xFFFFFFFF|0, 0x7FFFFFFF|0, false);\r\n\r\n/**\r\n * Maximum signed value.\r\n * @type {!Long}\r\n */\r\nLong.MAX_VALUE = MAX_VALUE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar MAX_UNSIGNED_VALUE = fromBits(0xFFFFFFFF|0, 0xFFFFFFFF|0, true);\r\n\r\n/**\r\n * Maximum unsigned value.\r\n * @type {!Long}\r\n */\r\nLong.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;\r\n\r\n/**\r\n * @type {!Long}\r\n * @inner\r\n */\r\nvar MIN_VALUE = fromBits(0, 0x80000000|0, false);\r\n\r\n/**\r\n * Minimum signed value.\r\n * @type {!Long}\r\n */\r\nLong.MIN_VALUE = MIN_VALUE;\r\n\r\n/**\r\n * @alias Long.prototype\r\n * @inner\r\n */\r\nvar LongPrototype = Long.prototype;\r\n\r\n/**\r\n * Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.\r\n * @returns {number}\r\n */\r\nLongPrototype.toInt = function toInt() {\r\n    return this.unsigned ? this.low >>> 0 : this.low;\r\n};\r\n\r\n/**\r\n * Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).\r\n * @returns {number}\r\n */\r\nLongPrototype.toNumber = function toNumber() {\r\n    if (this.unsigned)\r\n        return ((this.high >>> 0) * TWO_PWR_32_DBL) + (this.low >>> 0);\r\n    return this.high * TWO_PWR_32_DBL + (this.low >>> 0);\r\n};\r\n\r\n/**\r\n * Converts the Long to a string written in the specified radix.\r\n * @param {number=} radix Radix (2-36), defaults to 10\r\n * @returns {string}\r\n * @override\r\n * @throws {RangeError} If `radix` is out of range\r\n */\r\nLongPrototype.toString = function toString(radix) {\r\n    radix = radix || 10;\r\n    if (radix < 2 || 36 < radix)\r\n        throw RangeError('radix');\r\n    if (this.isZero())\r\n        return '0';\r\n    if (this.isNegative()) { // Unsigned Longs are never negative\r\n        if (this.eq(MIN_VALUE)) {\r\n            // We need to change the Long value before it can be negated, so we remove\r\n            // the bottom-most digit in this base and then recurse to do the rest.\r\n            var radixLong = fromNumber(radix),\r\n                div = this.div(radixLong),\r\n                rem1 = div.mul(radixLong).sub(this);\r\n            return div.toString(radix) + rem1.toInt().toString(radix);\r\n        } else\r\n            return '-' + this.neg().toString(radix);\r\n    }\r\n\r\n    // Do several (6) digits each time through the loop, so as to\r\n    // minimize the calls to the very expensive emulated div.\r\n    var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned),\r\n        rem = this;\r\n    var result = '';\r\n    while (true) {\r\n        var remDiv = rem.div(radixToPower),\r\n            intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0,\r\n            digits = intval.toString(radix);\r\n        rem = remDiv;\r\n        if (rem.isZero())\r\n            return digits + result;\r\n        else {\r\n            while (digits.length < 6)\r\n                digits = '0' + digits;\r\n            result = '' + digits + result;\r\n        }\r\n    }\r\n};\r\n\r\n/**\r\n * Gets the high 32 bits as a signed integer.\r\n * @returns {number} Signed high bits\r\n */\r\nLongPrototype.getHighBits = function getHighBits() {\r\n    return this.high;\r\n};\r\n\r\n/**\r\n * Gets the high 32 bits as an unsigned integer.\r\n * @returns {number} Unsigned high bits\r\n */\r\nLongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {\r\n    return this.high >>> 0;\r\n};\r\n\r\n/**\r\n * Gets the low 32 bits as a signed integer.\r\n * @returns {number} Signed low bits\r\n */\r\nLongPrototype.getLowBits = function getLowBits() {\r\n    return this.low;\r\n};\r\n\r\n/**\r\n * Gets the low 32 bits as an unsigned integer.\r\n * @returns {number} Unsigned low bits\r\n */\r\nLongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {\r\n    return this.low >>> 0;\r\n};\r\n\r\n/**\r\n * Gets the number of bits needed to represent the absolute value of this Long.\r\n * @returns {number}\r\n */\r\nLongPrototype.getNumBitsAbs = function getNumBitsAbs() {\r\n    if (this.isNegative()) // Unsigned Longs are never negative\r\n        return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();\r\n    var val = this.high != 0 ? this.high : this.low;\r\n    for (var bit = 31; bit > 0; bit--)\r\n        if ((val & (1 << bit)) != 0)\r\n            break;\r\n    return this.high != 0 ? bit + 33 : bit + 1;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals zero.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isZero = function isZero() {\r\n    return this.high === 0 && this.low === 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals zero. This is an alias of {@link Long#isZero}.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.eqz = LongPrototype.isZero;\r\n\r\n/**\r\n * Tests if this Long's value is negative.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isNegative = function isNegative() {\r\n    return !this.unsigned && this.high < 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is positive.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isPositive = function isPositive() {\r\n    return this.unsigned || this.high >= 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is odd.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isOdd = function isOdd() {\r\n    return (this.low & 1) === 1;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is even.\r\n * @returns {boolean}\r\n */\r\nLongPrototype.isEven = function isEven() {\r\n    return (this.low & 1) === 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.equals = function equals(other) {\r\n    if (!isLong(other))\r\n        other = fromValue(other);\r\n    if (this.unsigned !== other.unsigned && (this.high >>> 31) === 1 && (other.high >>> 31) === 1)\r\n        return false;\r\n    return this.high === other.high && this.low === other.low;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value equals the specified's. This is an alias of {@link Long#equals}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.eq = LongPrototype.equals;\r\n\r\n/**\r\n * Tests if this Long's value differs from the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.notEquals = function notEquals(other) {\r\n    return !this.eq(/* validates */ other);\r\n};\r\n\r\n/**\r\n * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.neq = LongPrototype.notEquals;\r\n\r\n/**\r\n * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.ne = LongPrototype.notEquals;\r\n\r\n/**\r\n * Tests if this Long's value is less than the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lessThan = function lessThan(other) {\r\n    return this.comp(/* validates */ other) < 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is less than the specified's. This is an alias of {@link Long#lessThan}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lt = LongPrototype.lessThan;\r\n\r\n/**\r\n * Tests if this Long's value is less than or equal the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {\r\n    return this.comp(/* validates */ other) <= 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.lte = LongPrototype.lessThanOrEqual;\r\n\r\n/**\r\n * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.le = LongPrototype.lessThanOrEqual;\r\n\r\n/**\r\n * Tests if this Long's value is greater than the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.greaterThan = function greaterThan(other) {\r\n    return this.comp(/* validates */ other) > 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is greater than the specified's. This is an alias of {@link Long#greaterThan}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.gt = LongPrototype.greaterThan;\r\n\r\n/**\r\n * Tests if this Long's value is greater than or equal the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {\r\n    return this.comp(/* validates */ other) >= 0;\r\n};\r\n\r\n/**\r\n * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.gte = LongPrototype.greaterThanOrEqual;\r\n\r\n/**\r\n * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {boolean}\r\n */\r\nLongPrototype.ge = LongPrototype.greaterThanOrEqual;\r\n\r\n/**\r\n * Compares this Long's value with the specified's.\r\n * @param {!Long|number|string} other Other value\r\n * @returns {number} 0 if they are the same, 1 if the this is greater and -1\r\n *  if the given one is greater\r\n */\r\nLongPrototype.compare = function compare(other) {\r\n    if (!isLong(other))\r\n        other = fromValue(other);\r\n    if (this.eq(other))\r\n        return 0;\r\n    var thisNeg = this.isNegative(),\r\n        otherNeg = other.isNegative();\r\n    if (thisNeg && !otherNeg)\r\n        return -1;\r\n    if (!thisNeg && otherNeg)\r\n        return 1;\r\n    // At this point the sign bits are the same\r\n    if (!this.unsigned)\r\n        return this.sub(other).isNegative() ? -1 : 1;\r\n    // Both are positive if at least one is unsigned\r\n    return (other.high >>> 0) > (this.high >>> 0) || (other.high === this.high && (other.low >>> 0) > (this.low >>> 0)) ? -1 : 1;\r\n};\r\n\r\n/**\r\n * Compares this Long's value with the specified's. This is an alias of {@link Long#compare}.\r\n * @function\r\n * @param {!Long|number|string} other Other value\r\n * @returns {number} 0 if they are the same, 1 if the this is greater and -1\r\n *  if the given one is greater\r\n */\r\nLongPrototype.comp = LongPrototype.compare;\r\n\r\n/**\r\n * Negates this Long's value.\r\n * @returns {!Long} Negated Long\r\n */\r\nLongPrototype.negate = function negate() {\r\n    if (!this.unsigned && this.eq(MIN_VALUE))\r\n        return MIN_VALUE;\r\n    return this.not().add(ONE);\r\n};\r\n\r\n/**\r\n * Negates this Long's value. This is an alias of {@link Long#negate}.\r\n * @function\r\n * @returns {!Long} Negated Long\r\n */\r\nLongPrototype.neg = LongPrototype.negate;\r\n\r\n/**\r\n * Returns the sum of this and the specified Long.\r\n * @param {!Long|number|string} addend Addend\r\n * @returns {!Long} Sum\r\n */\r\nLongPrototype.add = function add(addend) {\r\n    if (!isLong(addend))\r\n        addend = fromValue(addend);\r\n\r\n    // Divide each number into 4 chunks of 16 bits, and then sum the chunks.\r\n\r\n    var a48 = this.high >>> 16;\r\n    var a32 = this.high & 0xFFFF;\r\n    var a16 = this.low >>> 16;\r\n    var a00 = this.low & 0xFFFF;\r\n\r\n    var b48 = addend.high >>> 16;\r\n    var b32 = addend.high & 0xFFFF;\r\n    var b16 = addend.low >>> 16;\r\n    var b00 = addend.low & 0xFFFF;\r\n\r\n    var c48 = 0, c32 = 0, c16 = 0, c00 = 0;\r\n    c00 += a00 + b00;\r\n    c16 += c00 >>> 16;\r\n    c00 &= 0xFFFF;\r\n    c16 += a16 + b16;\r\n    c32 += c16 >>> 16;\r\n    c16 &= 0xFFFF;\r\n    c32 += a32 + b32;\r\n    c48 += c32 >>> 16;\r\n    c32 &= 0xFFFF;\r\n    c48 += a48 + b48;\r\n    c48 &= 0xFFFF;\r\n    return fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the difference of this and the specified Long.\r\n * @param {!Long|number|string} subtrahend Subtrahend\r\n * @returns {!Long} Difference\r\n */\r\nLongPrototype.subtract = function subtract(subtrahend) {\r\n    if (!isLong(subtrahend))\r\n        subtrahend = fromValue(subtrahend);\r\n    return this.add(subtrahend.neg());\r\n};\r\n\r\n/**\r\n * Returns the difference of this and the specified Long. This is an alias of {@link Long#subtract}.\r\n * @function\r\n * @param {!Long|number|string} subtrahend Subtrahend\r\n * @returns {!Long} Difference\r\n */\r\nLongPrototype.sub = LongPrototype.subtract;\r\n\r\n/**\r\n * Returns the product of this and the specified Long.\r\n * @param {!Long|number|string} multiplier Multiplier\r\n * @returns {!Long} Product\r\n */\r\nLongPrototype.multiply = function multiply(multiplier) {\r\n    if (this.isZero())\r\n        return ZERO;\r\n    if (!isLong(multiplier))\r\n        multiplier = fromValue(multiplier);\r\n\r\n    // use wasm support if present\r\n    if (wasm) {\r\n        var low = wasm.mul(this.low,\r\n                           this.high,\r\n                           multiplier.low,\r\n                           multiplier.high);\r\n        return fromBits(low, wasm.get_high(), this.unsigned);\r\n    }\r\n\r\n    if (multiplier.isZero())\r\n        return ZERO;\r\n    if (this.eq(MIN_VALUE))\r\n        return multiplier.isOdd() ? MIN_VALUE : ZERO;\r\n    if (multiplier.eq(MIN_VALUE))\r\n        return this.isOdd() ? MIN_VALUE : ZERO;\r\n\r\n    if (this.isNegative()) {\r\n        if (multiplier.isNegative())\r\n            return this.neg().mul(multiplier.neg());\r\n        else\r\n            return this.neg().mul(multiplier).neg();\r\n    } else if (multiplier.isNegative())\r\n        return this.mul(multiplier.neg()).neg();\r\n\r\n    // If both longs are small, use float multiplication\r\n    if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))\r\n        return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);\r\n\r\n    // Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.\r\n    // We can skip products that would overflow.\r\n\r\n    var a48 = this.high >>> 16;\r\n    var a32 = this.high & 0xFFFF;\r\n    var a16 = this.low >>> 16;\r\n    var a00 = this.low & 0xFFFF;\r\n\r\n    var b48 = multiplier.high >>> 16;\r\n    var b32 = multiplier.high & 0xFFFF;\r\n    var b16 = multiplier.low >>> 16;\r\n    var b00 = multiplier.low & 0xFFFF;\r\n\r\n    var c48 = 0, c32 = 0, c16 = 0, c00 = 0;\r\n    c00 += a00 * b00;\r\n    c16 += c00 >>> 16;\r\n    c00 &= 0xFFFF;\r\n    c16 += a16 * b00;\r\n    c32 += c16 >>> 16;\r\n    c16 &= 0xFFFF;\r\n    c16 += a00 * b16;\r\n    c32 += c16 >>> 16;\r\n    c16 &= 0xFFFF;\r\n    c32 += a32 * b00;\r\n    c48 += c32 >>> 16;\r\n    c32 &= 0xFFFF;\r\n    c32 += a16 * b16;\r\n    c48 += c32 >>> 16;\r\n    c32 &= 0xFFFF;\r\n    c32 += a00 * b32;\r\n    c48 += c32 >>> 16;\r\n    c32 &= 0xFFFF;\r\n    c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;\r\n    c48 &= 0xFFFF;\r\n    return fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the product of this and the specified Long. This is an alias of {@link Long#multiply}.\r\n * @function\r\n * @param {!Long|number|string} multiplier Multiplier\r\n * @returns {!Long} Product\r\n */\r\nLongPrototype.mul = LongPrototype.multiply;\r\n\r\n/**\r\n * Returns this Long divided by the specified. The result is signed if this Long is signed or\r\n *  unsigned if this Long is unsigned.\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Quotient\r\n */\r\nLongPrototype.divide = function divide(divisor) {\r\n    if (!isLong(divisor))\r\n        divisor = fromValue(divisor);\r\n    if (divisor.isZero())\r\n        throw Error('division by zero');\r\n\r\n    // use wasm support if present\r\n    if (wasm) {\r\n        // guard against signed division overflow: the largest\r\n        // negative number / -1 would be 1 larger than the largest\r\n        // positive number, due to two's complement.\r\n        if (!this.unsigned &&\r\n            this.high === -0x80000000 &&\r\n            divisor.low === -1 && divisor.high === -1) {\r\n            // be consistent with non-wasm code path\r\n            return this;\r\n        }\r\n        var low = (this.unsigned ? wasm.div_u : wasm.div_s)(\r\n            this.low,\r\n            this.high,\r\n            divisor.low,\r\n            divisor.high\r\n        );\r\n        return fromBits(low, wasm.get_high(), this.unsigned);\r\n    }\r\n\r\n    if (this.isZero())\r\n        return this.unsigned ? UZERO : ZERO;\r\n    var approx, rem, res;\r\n    if (!this.unsigned) {\r\n        // This section is only relevant for signed longs and is derived from the\r\n        // closure library as a whole.\r\n        if (this.eq(MIN_VALUE)) {\r\n            if (divisor.eq(ONE) || divisor.eq(NEG_ONE))\r\n                return MIN_VALUE;  // recall that -MIN_VALUE == MIN_VALUE\r\n            else if (divisor.eq(MIN_VALUE))\r\n                return ONE;\r\n            else {\r\n                // At this point, we have |other| >= 2, so |this/other| < |MIN_VALUE|.\r\n                var halfThis = this.shr(1);\r\n                approx = halfThis.div(divisor).shl(1);\r\n                if (approx.eq(ZERO)) {\r\n                    return divisor.isNegative() ? ONE : NEG_ONE;\r\n                } else {\r\n                    rem = this.sub(divisor.mul(approx));\r\n                    res = approx.add(rem.div(divisor));\r\n                    return res;\r\n                }\r\n            }\r\n        } else if (divisor.eq(MIN_VALUE))\r\n            return this.unsigned ? UZERO : ZERO;\r\n        if (this.isNegative()) {\r\n            if (divisor.isNegative())\r\n                return this.neg().div(divisor.neg());\r\n            return this.neg().div(divisor).neg();\r\n        } else if (divisor.isNegative())\r\n            return this.div(divisor.neg()).neg();\r\n        res = ZERO;\r\n    } else {\r\n        // The algorithm below has not been made for unsigned longs. It's therefore\r\n        // required to take special care of the MSB prior to running it.\r\n        if (!divisor.unsigned)\r\n            divisor = divisor.toUnsigned();\r\n        if (divisor.gt(this))\r\n            return UZERO;\r\n        if (divisor.gt(this.shru(1))) // 15 >>> 1 = 7 ; with divisor = 8 ; true\r\n            return UONE;\r\n        res = UZERO;\r\n    }\r\n\r\n    // Repeat the following until the remainder is less than other:  find a\r\n    // floating-point that approximates remainder / other *from below*, add this\r\n    // into the result, and subtract it from the remainder.  It is critical that\r\n    // the approximate value is less than or equal to the real value so that the\r\n    // remainder never becomes negative.\r\n    rem = this;\r\n    while (rem.gte(divisor)) {\r\n        // Approximate the result of division. This may be a little greater or\r\n        // smaller than the actual value.\r\n        approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));\r\n\r\n        // We will tweak the approximate result by changing it in the 48-th digit or\r\n        // the smallest non-fractional digit, whichever is larger.\r\n        var log2 = Math.ceil(Math.log(approx) / Math.LN2),\r\n            delta = (log2 <= 48) ? 1 : pow_dbl(2, log2 - 48),\r\n\r\n        // Decrease the approximation until it is smaller than the remainder.  Note\r\n        // that if it is too large, the product overflows and is negative.\r\n            approxRes = fromNumber(approx),\r\n            approxRem = approxRes.mul(divisor);\r\n        while (approxRem.isNegative() || approxRem.gt(rem)) {\r\n            approx -= delta;\r\n            approxRes = fromNumber(approx, this.unsigned);\r\n            approxRem = approxRes.mul(divisor);\r\n        }\r\n\r\n        // We know the answer can't be zero... and actually, zero would cause\r\n        // infinite recursion since we would make no progress.\r\n        if (approxRes.isZero())\r\n            approxRes = ONE;\r\n\r\n        res = res.add(approxRes);\r\n        rem = rem.sub(approxRem);\r\n    }\r\n    return res;\r\n};\r\n\r\n/**\r\n * Returns this Long divided by the specified. This is an alias of {@link Long#divide}.\r\n * @function\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Quotient\r\n */\r\nLongPrototype.div = LongPrototype.divide;\r\n\r\n/**\r\n * Returns this Long modulo the specified.\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Remainder\r\n */\r\nLongPrototype.modulo = function modulo(divisor) {\r\n    if (!isLong(divisor))\r\n        divisor = fromValue(divisor);\r\n\r\n    // use wasm support if present\r\n    if (wasm) {\r\n        var low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(\r\n            this.low,\r\n            this.high,\r\n            divisor.low,\r\n            divisor.high\r\n        );\r\n        return fromBits(low, wasm.get_high(), this.unsigned);\r\n    }\r\n\r\n    return this.sub(this.div(divisor).mul(divisor));\r\n};\r\n\r\n/**\r\n * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.\r\n * @function\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Remainder\r\n */\r\nLongPrototype.mod = LongPrototype.modulo;\r\n\r\n/**\r\n * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.\r\n * @function\r\n * @param {!Long|number|string} divisor Divisor\r\n * @returns {!Long} Remainder\r\n */\r\nLongPrototype.rem = LongPrototype.modulo;\r\n\r\n/**\r\n * Returns the bitwise NOT of this Long.\r\n * @returns {!Long}\r\n */\r\nLongPrototype.not = function not() {\r\n    return fromBits(~this.low, ~this.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the bitwise AND of this Long and the specified.\r\n * @param {!Long|number|string} other Other Long\r\n * @returns {!Long}\r\n */\r\nLongPrototype.and = function and(other) {\r\n    if (!isLong(other))\r\n        other = fromValue(other);\r\n    return fromBits(this.low & other.low, this.high & other.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the bitwise OR of this Long and the specified.\r\n * @param {!Long|number|string} other Other Long\r\n * @returns {!Long}\r\n */\r\nLongPrototype.or = function or(other) {\r\n    if (!isLong(other))\r\n        other = fromValue(other);\r\n    return fromBits(this.low | other.low, this.high | other.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns the bitwise XOR of this Long and the given one.\r\n * @param {!Long|number|string} other Other Long\r\n * @returns {!Long}\r\n */\r\nLongPrototype.xor = function xor(other) {\r\n    if (!isLong(other))\r\n        other = fromValue(other);\r\n    return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns this Long with bits shifted to the left by the given amount.\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shiftLeft = function shiftLeft(numBits) {\r\n    if (isLong(numBits))\r\n        numBits = numBits.toInt();\r\n    if ((numBits &= 63) === 0)\r\n        return this;\r\n    else if (numBits < 32)\r\n        return fromBits(this.low << numBits, (this.high << numBits) | (this.low >>> (32 - numBits)), this.unsigned);\r\n    else\r\n        return fromBits(0, this.low << (numBits - 32), this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns this Long with bits shifted to the left by the given amount. This is an alias of {@link Long#shiftLeft}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shl = LongPrototype.shiftLeft;\r\n\r\n/**\r\n * Returns this Long with bits arithmetically shifted to the right by the given amount.\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shiftRight = function shiftRight(numBits) {\r\n    if (isLong(numBits))\r\n        numBits = numBits.toInt();\r\n    if ((numBits &= 63) === 0)\r\n        return this;\r\n    else if (numBits < 32)\r\n        return fromBits((this.low >>> numBits) | (this.high << (32 - numBits)), this.high >> numBits, this.unsigned);\r\n    else\r\n        return fromBits(this.high >> (numBits - 32), this.high >= 0 ? 0 : -1, this.unsigned);\r\n};\r\n\r\n/**\r\n * Returns this Long with bits arithmetically shifted to the right by the given amount. This is an alias of {@link Long#shiftRight}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shr = LongPrototype.shiftRight;\r\n\r\n/**\r\n * Returns this Long with bits logically shifted to the right by the given amount.\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {\r\n    if (isLong(numBits))\r\n        numBits = numBits.toInt();\r\n    numBits &= 63;\r\n    if (numBits === 0)\r\n        return this;\r\n    else {\r\n        var high = this.high;\r\n        if (numBits < 32) {\r\n            var low = this.low;\r\n            return fromBits((low >>> numBits) | (high << (32 - numBits)), high >>> numBits, this.unsigned);\r\n        } else if (numBits === 32)\r\n            return fromBits(high, 0, this.unsigned);\r\n        else\r\n            return fromBits(high >>> (numBits - 32), 0, this.unsigned);\r\n    }\r\n};\r\n\r\n/**\r\n * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shru = LongPrototype.shiftRightUnsigned;\r\n\r\n/**\r\n * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.\r\n * @function\r\n * @param {number|!Long} numBits Number of bits\r\n * @returns {!Long} Shifted Long\r\n */\r\nLongPrototype.shr_u = LongPrototype.shiftRightUnsigned;\r\n\r\n/**\r\n * Converts this Long to signed.\r\n * @returns {!Long} Signed long\r\n */\r\nLongPrototype.toSigned = function toSigned() {\r\n    if (!this.unsigned)\r\n        return this;\r\n    return fromBits(this.low, this.high, false);\r\n};\r\n\r\n/**\r\n * Converts this Long to unsigned.\r\n * @returns {!Long} Unsigned long\r\n */\r\nLongPrototype.toUnsigned = function toUnsigned() {\r\n    if (this.unsigned)\r\n        return this;\r\n    return fromBits(this.low, this.high, true);\r\n};\r\n\r\n/**\r\n * Converts this Long to its byte representation.\r\n * @param {boolean=} le Whether little or big endian, defaults to big endian\r\n * @returns {!Array.<number>} Byte representation\r\n */\r\nLongPrototype.toBytes = function toBytes(le) {\r\n    return le ? this.toBytesLE() : this.toBytesBE();\r\n};\r\n\r\n/**\r\n * Converts this Long to its little endian byte representation.\r\n * @returns {!Array.<number>} Little endian byte representation\r\n */\r\nLongPrototype.toBytesLE = function toBytesLE() {\r\n    var hi = this.high,\r\n        lo = this.low;\r\n    return [\r\n        lo        & 0xff,\r\n        lo >>>  8 & 0xff,\r\n        lo >>> 16 & 0xff,\r\n        lo >>> 24       ,\r\n        hi        & 0xff,\r\n        hi >>>  8 & 0xff,\r\n        hi >>> 16 & 0xff,\r\n        hi >>> 24\r\n    ];\r\n};\r\n\r\n/**\r\n * Converts this Long to its big endian byte representation.\r\n * @returns {!Array.<number>} Big endian byte representation\r\n */\r\nLongPrototype.toBytesBE = function toBytesBE() {\r\n    var hi = this.high,\r\n        lo = this.low;\r\n    return [\r\n        hi >>> 24       ,\r\n        hi >>> 16 & 0xff,\r\n        hi >>>  8 & 0xff,\r\n        hi        & 0xff,\r\n        lo >>> 24       ,\r\n        lo >>> 16 & 0xff,\r\n        lo >>>  8 & 0xff,\r\n        lo        & 0xff\r\n    ];\r\n};\r\n\r\n/**\r\n * Creates a Long from its byte representation.\r\n * @param {!Array.<number>} bytes Byte representation\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @param {boolean=} le Whether little or big endian, defaults to big endian\r\n * @returns {Long} The corresponding Long value\r\n */\r\nLong.fromBytes = function fromBytes(bytes, unsigned, le) {\r\n    return le ? Long.fromBytesLE(bytes, unsigned) : Long.fromBytesBE(bytes, unsigned);\r\n};\r\n\r\n/**\r\n * Creates a Long from its little endian byte representation.\r\n * @param {!Array.<number>} bytes Little endian byte representation\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {Long} The corresponding Long value\r\n */\r\nLong.fromBytesLE = function fromBytesLE(bytes, unsigned) {\r\n    return new Long(\r\n        bytes[0]       |\r\n        bytes[1] <<  8 |\r\n        bytes[2] << 16 |\r\n        bytes[3] << 24,\r\n        bytes[4]       |\r\n        bytes[5] <<  8 |\r\n        bytes[6] << 16 |\r\n        bytes[7] << 24,\r\n        unsigned\r\n    );\r\n};\r\n\r\n/**\r\n * Creates a Long from its big endian byte representation.\r\n * @param {!Array.<number>} bytes Big endian byte representation\r\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\r\n * @returns {Long} The corresponding Long value\r\n */\r\nLong.fromBytesBE = function fromBytesBE(bytes, unsigned) {\r\n    return new Long(\r\n        bytes[4] << 24 |\r\n        bytes[5] << 16 |\r\n        bytes[6] <<  8 |\r\n        bytes[7],\r\n        bytes[0] << 24 |\r\n        bytes[1] << 16 |\r\n        bytes[2] <<  8 |\r\n        bytes[3],\r\n        unsigned\r\n    );\r\n};\r\n", "\"use strict\";\r\nmodule.exports = asPromise;\r\n\r\n/**\r\n * Callback as used by {@link util.asPromise}.\r\n * @typedef asPromiseCallback\r\n * @type {function}\r\n * @param {Error|null} error Error, if any\r\n * @param {...*} params Additional arguments\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Returns a promise from a node-style callback function.\r\n * @memberof util\r\n * @param {asPromiseCallback} fn Function to call\r\n * @param {*} ctx Function context\r\n * @param {...*} params Function arguments\r\n * @returns {Promise<*>} Promisified function\r\n */\r\nfunction asPromise(fn, ctx/*, varargs */) {\r\n    var params  = new Array(arguments.length - 1),\r\n        offset  = 0,\r\n        index   = 2,\r\n        pending = true;\r\n    while (index < arguments.length)\r\n        params[offset++] = arguments[index++];\r\n    return new Promise(function executor(resolve, reject) {\r\n        params[offset] = function callback(err/*, varargs */) {\r\n            if (pending) {\r\n                pending = false;\r\n                if (err)\r\n                    reject(err);\r\n                else {\r\n                    var params = new Array(arguments.length - 1),\r\n                        offset = 0;\r\n                    while (offset < params.length)\r\n                        params[offset++] = arguments[offset];\r\n                    resolve.apply(null, params);\r\n                }\r\n            }\r\n        };\r\n        try {\r\n            fn.apply(ctx || null, params);\r\n        } catch (err) {\r\n            if (pending) {\r\n                pending = false;\r\n                reject(err);\r\n            }\r\n        }\r\n    });\r\n}\r\n", "\"use strict\";\r\n\r\n/**\r\n * A minimal base64 implementation for number arrays.\r\n * @memberof util\r\n * @namespace\r\n */\r\nvar base64 = exports;\r\n\r\n/**\r\n * Calculates the byte length of a base64 encoded string.\r\n * @param {string} string Base64 encoded string\r\n * @returns {number} Byte length\r\n */\r\nbase64.length = function length(string) {\r\n    var p = string.length;\r\n    if (!p)\r\n        return 0;\r\n    var n = 0;\r\n    while (--p % 4 > 1 && string.charAt(p) === \"=\")\r\n        ++n;\r\n    return Math.ceil(string.length * 3) / 4 - n;\r\n};\r\n\r\n// Base64 encoding table\r\nvar b64 = new Array(64);\r\n\r\n// Base64 decoding table\r\nvar s64 = new Array(123);\r\n\r\n// 65..90, 97..122, 48..57, 43, 47\r\nfor (var i = 0; i < 64;)\r\n    s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;\r\n\r\n/**\r\n * Encodes a buffer to a base64 encoded string.\r\n * @param {Uint8Array} buffer Source buffer\r\n * @param {number} start Source start\r\n * @param {number} end Source end\r\n * @returns {string} Base64 encoded string\r\n */\r\nbase64.encode = function encode(buffer, start, end) {\r\n    var parts = null,\r\n        chunk = [];\r\n    var i = 0, // output index\r\n        j = 0, // goto index\r\n        t;     // temporary\r\n    while (start < end) {\r\n        var b = buffer[start++];\r\n        switch (j) {\r\n            case 0:\r\n                chunk[i++] = b64[b >> 2];\r\n                t = (b & 3) << 4;\r\n                j = 1;\r\n                break;\r\n            case 1:\r\n                chunk[i++] = b64[t | b >> 4];\r\n                t = (b & 15) << 2;\r\n                j = 2;\r\n                break;\r\n            case 2:\r\n                chunk[i++] = b64[t | b >> 6];\r\n                chunk[i++] = b64[b & 63];\r\n                j = 0;\r\n                break;\r\n        }\r\n        if (i > 8191) {\r\n            (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));\r\n            i = 0;\r\n        }\r\n    }\r\n    if (j) {\r\n        chunk[i++] = b64[t];\r\n        chunk[i++] = 61;\r\n        if (j === 1)\r\n            chunk[i++] = 61;\r\n    }\r\n    if (parts) {\r\n        if (i)\r\n            parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));\r\n        return parts.join(\"\");\r\n    }\r\n    return String.fromCharCode.apply(String, chunk.slice(0, i));\r\n};\r\n\r\nvar invalidEncoding = \"invalid encoding\";\r\n\r\n/**\r\n * Decodes a base64 encoded string to a buffer.\r\n * @param {string} string Source string\r\n * @param {Uint8Array} buffer Destination buffer\r\n * @param {number} offset Destination offset\r\n * @returns {number} Number of bytes written\r\n * @throws {Error} If encoding is invalid\r\n */\r\nbase64.decode = function decode(string, buffer, offset) {\r\n    var start = offset;\r\n    var j = 0, // goto index\r\n        t;     // temporary\r\n    for (var i = 0; i < string.length;) {\r\n        var c = string.charCodeAt(i++);\r\n        if (c === 61 && j > 1)\r\n            break;\r\n        if ((c = s64[c]) === undefined)\r\n            throw Error(invalidEncoding);\r\n        switch (j) {\r\n            case 0:\r\n                t = c;\r\n                j = 1;\r\n                break;\r\n            case 1:\r\n                buffer[offset++] = t << 2 | (c & 48) >> 4;\r\n                t = c;\r\n                j = 2;\r\n                break;\r\n            case 2:\r\n                buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;\r\n                t = c;\r\n                j = 3;\r\n                break;\r\n            case 3:\r\n                buffer[offset++] = (t & 3) << 6 | c;\r\n                j = 0;\r\n                break;\r\n        }\r\n    }\r\n    if (j === 1)\r\n        throw Error(invalidEncoding);\r\n    return offset - start;\r\n};\r\n\r\n/**\r\n * Tests if the specified string appears to be base64 encoded.\r\n * @param {string} string String to test\r\n * @returns {boolean} `true` if probably base64 encoded, otherwise false\r\n */\r\nbase64.test = function test(string) {\r\n    return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);\r\n};\r\n", "\"use strict\";\r\nmodule.exports = EventEmitter;\r\n\r\n/**\r\n * Constructs a new event emitter instance.\r\n * @classdesc A minimal event emitter.\r\n * @memberof util\r\n * @constructor\r\n */\r\nfunction EventEmitter() {\r\n\r\n    /**\r\n     * Registered listeners.\r\n     * @type {Object.<string,*>}\r\n     * @private\r\n     */\r\n    this._listeners = {};\r\n}\r\n\r\n/**\r\n * Registers an event listener.\r\n * @param {string} evt Event name\r\n * @param {function} fn Listener\r\n * @param {*} [ctx] Listener context\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.on = function on(evt, fn, ctx) {\r\n    (this._listeners[evt] || (this._listeners[evt] = [])).push({\r\n        fn  : fn,\r\n        ctx : ctx || this\r\n    });\r\n    return this;\r\n};\r\n\r\n/**\r\n * Removes an event listener or any matching listeners if arguments are omitted.\r\n * @param {string} [evt] Event name. Removes all listeners if omitted.\r\n * @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted.\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.off = function off(evt, fn) {\r\n    if (evt === undefined)\r\n        this._listeners = {};\r\n    else {\r\n        if (fn === undefined)\r\n            this._listeners[evt] = [];\r\n        else {\r\n            var listeners = this._listeners[evt];\r\n            for (var i = 0; i < listeners.length;)\r\n                if (listeners[i].fn === fn)\r\n                    listeners.splice(i, 1);\r\n                else\r\n                    ++i;\r\n        }\r\n    }\r\n    return this;\r\n};\r\n\r\n/**\r\n * Emits an event by calling its listeners with the specified arguments.\r\n * @param {string} evt Event name\r\n * @param {...*} args Arguments\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.emit = function emit(evt) {\r\n    var listeners = this._listeners[evt];\r\n    if (listeners) {\r\n        var args = [],\r\n            i = 1;\r\n        for (; i < arguments.length;)\r\n            args.push(arguments[i++]);\r\n        for (i = 0; i < listeners.length;)\r\n            listeners[i].fn.apply(listeners[i++].ctx, args);\r\n    }\r\n    return this;\r\n};\r\n", "\"use strict\";\r\n\r\nmodule.exports = factory(factory);\r\n\r\n/**\r\n * Reads / writes floats / doubles from / to buffers.\r\n * @name util.float\r\n * @namespace\r\n */\r\n\r\n/**\r\n * Writes a 32 bit float to a buffer using little endian byte order.\r\n * @name util.float.writeFloatLE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Writes a 32 bit float to a buffer using big endian byte order.\r\n * @name util.float.writeFloatBE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Reads a 32 bit float from a buffer using little endian byte order.\r\n * @name util.float.readFloatLE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Reads a 32 bit float from a buffer using big endian byte order.\r\n * @name util.float.readFloatBE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Writes a 64 bit double to a buffer using little endian byte order.\r\n * @name util.float.writeDoubleLE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Writes a 64 bit double to a buffer using big endian byte order.\r\n * @name util.float.writeDoubleBE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Reads a 64 bit double from a buffer using little endian byte order.\r\n * @name util.float.readDoubleLE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Reads a 64 bit double from a buffer using big endian byte order.\r\n * @name util.float.readDoubleBE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n// Factory function for the purpose of node-based testing in modified global environments\r\nfunction factory(exports) {\r\n\r\n    // float: typed array\r\n    if (typeof Float32Array !== \"undefined\") (function() {\r\n\r\n        var f32 = new Float32Array([ -0 ]),\r\n            f8b = new Uint8Array(f32.buffer),\r\n            le  = f8b[3] === 128;\r\n\r\n        function writeFloat_f32_cpy(val, buf, pos) {\r\n            f32[0] = val;\r\n            buf[pos    ] = f8b[0];\r\n            buf[pos + 1] = f8b[1];\r\n            buf[pos + 2] = f8b[2];\r\n            buf[pos + 3] = f8b[3];\r\n        }\r\n\r\n        function writeFloat_f32_rev(val, buf, pos) {\r\n            f32[0] = val;\r\n            buf[pos    ] = f8b[3];\r\n            buf[pos + 1] = f8b[2];\r\n            buf[pos + 2] = f8b[1];\r\n            buf[pos + 3] = f8b[0];\r\n        }\r\n\r\n        /* istanbul ignore next */\r\n        exports.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;\r\n        /* istanbul ignore next */\r\n        exports.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;\r\n\r\n        function readFloat_f32_cpy(buf, pos) {\r\n            f8b[0] = buf[pos    ];\r\n            f8b[1] = buf[pos + 1];\r\n            f8b[2] = buf[pos + 2];\r\n            f8b[3] = buf[pos + 3];\r\n            return f32[0];\r\n        }\r\n\r\n        function readFloat_f32_rev(buf, pos) {\r\n            f8b[3] = buf[pos    ];\r\n            f8b[2] = buf[pos + 1];\r\n            f8b[1] = buf[pos + 2];\r\n            f8b[0] = buf[pos + 3];\r\n            return f32[0];\r\n        }\r\n\r\n        /* istanbul ignore next */\r\n        exports.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;\r\n        /* istanbul ignore next */\r\n        exports.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;\r\n\r\n    // float: ieee754\r\n    })(); else (function() {\r\n\r\n        function writeFloat_ieee754(writeUint, val, buf, pos) {\r\n            var sign = val < 0 ? 1 : 0;\r\n            if (sign)\r\n                val = -val;\r\n            if (val === 0)\r\n                writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos);\r\n            else if (isNaN(val))\r\n                writeUint(2143289344, buf, pos);\r\n            else if (val > 3.4028234663852886e+38) // +-Infinity\r\n                writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);\r\n            else if (val < 1.1754943508222875e-38) // denormal\r\n                writeUint((sign << 31 | Math.round(val / 1.401298464324817e-45)) >>> 0, buf, pos);\r\n            else {\r\n                var exponent = Math.floor(Math.log(val) / Math.LN2),\r\n                    mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;\r\n                writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);\r\n            }\r\n        }\r\n\r\n        exports.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);\r\n        exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);\r\n\r\n        function readFloat_ieee754(readUint, buf, pos) {\r\n            var uint = readUint(buf, pos),\r\n                sign = (uint >> 31) * 2 + 1,\r\n                exponent = uint >>> 23 & 255,\r\n                mantissa = uint & 8388607;\r\n            return exponent === 255\r\n                ? mantissa\r\n                ? NaN\r\n                : sign * Infinity\r\n                : exponent === 0 // denormal\r\n                ? sign * 1.401298464324817e-45 * mantissa\r\n                : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);\r\n        }\r\n\r\n        exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE);\r\n        exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE);\r\n\r\n    })();\r\n\r\n    // double: typed array\r\n    if (typeof Float64Array !== \"undefined\") (function() {\r\n\r\n        var f64 = new Float64Array([-0]),\r\n            f8b = new Uint8Array(f64.buffer),\r\n            le  = f8b[7] === 128;\r\n\r\n        function writeDouble_f64_cpy(val, buf, pos) {\r\n            f64[0] = val;\r\n            buf[pos    ] = f8b[0];\r\n            buf[pos + 1] = f8b[1];\r\n            buf[pos + 2] = f8b[2];\r\n            buf[pos + 3] = f8b[3];\r\n            buf[pos + 4] = f8b[4];\r\n            buf[pos + 5] = f8b[5];\r\n            buf[pos + 6] = f8b[6];\r\n            buf[pos + 7] = f8b[7];\r\n        }\r\n\r\n        function writeDouble_f64_rev(val, buf, pos) {\r\n            f64[0] = val;\r\n            buf[pos    ] = f8b[7];\r\n            buf[pos + 1] = f8b[6];\r\n            buf[pos + 2] = f8b[5];\r\n            buf[pos + 3] = f8b[4];\r\n            buf[pos + 4] = f8b[3];\r\n            buf[pos + 5] = f8b[2];\r\n            buf[pos + 6] = f8b[1];\r\n            buf[pos + 7] = f8b[0];\r\n        }\r\n\r\n        /* istanbul ignore next */\r\n        exports.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;\r\n        /* istanbul ignore next */\r\n        exports.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;\r\n\r\n        function readDouble_f64_cpy(buf, pos) {\r\n            f8b[0] = buf[pos    ];\r\n            f8b[1] = buf[pos + 1];\r\n            f8b[2] = buf[pos + 2];\r\n            f8b[3] = buf[pos + 3];\r\n            f8b[4] = buf[pos + 4];\r\n            f8b[5] = buf[pos + 5];\r\n            f8b[6] = buf[pos + 6];\r\n            f8b[7] = buf[pos + 7];\r\n            return f64[0];\r\n        }\r\n\r\n        function readDouble_f64_rev(buf, pos) {\r\n            f8b[7] = buf[pos    ];\r\n            f8b[6] = buf[pos + 1];\r\n            f8b[5] = buf[pos + 2];\r\n            f8b[4] = buf[pos + 3];\r\n            f8b[3] = buf[pos + 4];\r\n            f8b[2] = buf[pos + 5];\r\n            f8b[1] = buf[pos + 6];\r\n            f8b[0] = buf[pos + 7];\r\n            return f64[0];\r\n        }\r\n\r\n        /* istanbul ignore next */\r\n        exports.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;\r\n        /* istanbul ignore next */\r\n        exports.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;\r\n\r\n    // double: ieee754\r\n    })(); else (function() {\r\n\r\n        function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {\r\n            var sign = val < 0 ? 1 : 0;\r\n            if (sign)\r\n                val = -val;\r\n            if (val === 0) {\r\n                writeUint(0, buf, pos + off0);\r\n                writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos + off1);\r\n            } else if (isNaN(val)) {\r\n                writeUint(0, buf, pos + off0);\r\n                writeUint(2146959360, buf, pos + off1);\r\n            } else if (val > 1.7976931348623157e+308) { // +-Infinity\r\n                writeUint(0, buf, pos + off0);\r\n                writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);\r\n            } else {\r\n                var mantissa;\r\n                if (val < 2.2250738585072014e-308) { // denormal\r\n                    mantissa = val / 5e-324;\r\n                    writeUint(mantissa >>> 0, buf, pos + off0);\r\n                    writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);\r\n                } else {\r\n                    var exponent = Math.floor(Math.log(val) / Math.LN2);\r\n                    if (exponent === 1024)\r\n                        exponent = 1023;\r\n                    mantissa = val * Math.pow(2, -exponent);\r\n                    writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);\r\n                    writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);\r\n                }\r\n            }\r\n        }\r\n\r\n        exports.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);\r\n        exports.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);\r\n\r\n        function readDouble_ieee754(readUint, off0, off1, buf, pos) {\r\n            var lo = readUint(buf, pos + off0),\r\n                hi = readUint(buf, pos + off1);\r\n            var sign = (hi >> 31) * 2 + 1,\r\n                exponent = hi >>> 20 & 2047,\r\n                mantissa = 4294967296 * (hi & 1048575) + lo;\r\n            return exponent === 2047\r\n                ? mantissa\r\n                ? NaN\r\n                : sign * Infinity\r\n                : exponent === 0 // denormal\r\n                ? sign * 5e-324 * mantissa\r\n                : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);\r\n        }\r\n\r\n        exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);\r\n        exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);\r\n\r\n    })();\r\n\r\n    return exports;\r\n}\r\n\r\n// uint helpers\r\n\r\nfunction writeUintLE(val, buf, pos) {\r\n    buf[pos    ] =  val        & 255;\r\n    buf[pos + 1] =  val >>> 8  & 255;\r\n    buf[pos + 2] =  val >>> 16 & 255;\r\n    buf[pos + 3] =  val >>> 24;\r\n}\r\n\r\nfunction writeUintBE(val, buf, pos) {\r\n    buf[pos    ] =  val >>> 24;\r\n    buf[pos + 1] =  val >>> 16 & 255;\r\n    buf[pos + 2] =  val >>> 8  & 255;\r\n    buf[pos + 3] =  val        & 255;\r\n}\r\n\r\nfunction readUintLE(buf, pos) {\r\n    return (buf[pos    ]\r\n          | buf[pos + 1] << 8\r\n          | buf[pos + 2] << 16\r\n          | buf[pos + 3] << 24) >>> 0;\r\n}\r\n\r\nfunction readUintBE(buf, pos) {\r\n    return (buf[pos    ] << 24\r\n          | buf[pos + 1] << 16\r\n          | buf[pos + 2] << 8\r\n          | buf[pos + 3]) >>> 0;\r\n}\r\n", "\"use strict\";\r\nmodule.exports = inquire;\r\n\r\n/**\r\n * Requires a module only if available.\r\n * @memberof util\r\n * @param {string} moduleName Module to require\r\n * @returns {?Object} Required module if available and not empty, otherwise `null`\r\n */\r\nfunction inquire(moduleName) {\r\n    try {\r\n        var mod = eval(\"quire\".replace(/^/,\"re\"))(moduleName); // eslint-disable-line no-eval\r\n        if (mod && (mod.length || Object.keys(mod).length))\r\n            return mod;\r\n    } catch (e) {} // eslint-disable-line no-empty\r\n    return null;\r\n}\r\n", "\"use strict\";\r\n\r\n/**\r\n * A minimal UTF8 implementation for number arrays.\r\n * @memberof util\r\n * @namespace\r\n */\r\nvar utf8 = exports;\r\n\r\n/**\r\n * Calculates the UTF8 byte length of a string.\r\n * @param {string} string String\r\n * @returns {number} Byte length\r\n */\r\nutf8.length = function utf8_length(string) {\r\n    var len = 0,\r\n        c = 0;\r\n    for (var i = 0; i < string.length; ++i) {\r\n        c = string.charCodeAt(i);\r\n        if (c < 128)\r\n            len += 1;\r\n        else if (c < 2048)\r\n            len += 2;\r\n        else if ((c & 0xFC00) === 0xD800 && (string.charCodeAt(i + 1) & 0xFC00) === 0xDC00) {\r\n            ++i;\r\n            len += 4;\r\n        } else\r\n            len += 3;\r\n    }\r\n    return len;\r\n};\r\n\r\n/**\r\n * Reads UTF8 bytes as a string.\r\n * @param {Uint8Array} buffer Source buffer\r\n * @param {number} start Source start\r\n * @param {number} end Source end\r\n * @returns {string} String read\r\n */\r\nutf8.read = function utf8_read(buffer, start, end) {\r\n    var len = end - start;\r\n    if (len < 1)\r\n        return \"\";\r\n    var parts = null,\r\n        chunk = [],\r\n        i = 0, // char offset\r\n        t;     // temporary\r\n    while (start < end) {\r\n        t = buffer[start++];\r\n        if (t < 128)\r\n            chunk[i++] = t;\r\n        else if (t > 191 && t < 224)\r\n            chunk[i++] = (t & 31) << 6 | buffer[start++] & 63;\r\n        else if (t > 239 && t < 365) {\r\n            t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 0x10000;\r\n            chunk[i++] = 0xD800 + (t >> 10);\r\n            chunk[i++] = 0xDC00 + (t & 1023);\r\n        } else\r\n            chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63;\r\n        if (i > 8191) {\r\n            (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));\r\n            i = 0;\r\n        }\r\n    }\r\n    if (parts) {\r\n        if (i)\r\n            parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));\r\n        return parts.join(\"\");\r\n    }\r\n    return String.fromCharCode.apply(String, chunk.slice(0, i));\r\n};\r\n\r\n/**\r\n * Writes a string as UTF8 bytes.\r\n * @param {string} string Source string\r\n * @param {Uint8Array} buffer Destination buffer\r\n * @param {number} offset Destination offset\r\n * @returns {number} Bytes written\r\n */\r\nutf8.write = function utf8_write(string, buffer, offset) {\r\n    var start = offset,\r\n        c1, // character 1\r\n        c2; // character 2\r\n    for (var i = 0; i < string.length; ++i) {\r\n        c1 = string.charCodeAt(i);\r\n        if (c1 < 128) {\r\n            buffer[offset++] = c1;\r\n        } else if (c1 < 2048) {\r\n            buffer[offset++] = c1 >> 6       | 192;\r\n            buffer[offset++] = c1       & 63 | 128;\r\n        } else if ((c1 & 0xFC00) === 0xD800 && ((c2 = string.charCodeAt(i + 1)) & 0xFC00) === 0xDC00) {\r\n            c1 = 0x10000 + ((c1 & 0x03FF) << 10) + (c2 & 0x03FF);\r\n            ++i;\r\n            buffer[offset++] = c1 >> 18      | 240;\r\n            buffer[offset++] = c1 >> 12 & 63 | 128;\r\n            buffer[offset++] = c1 >> 6  & 63 | 128;\r\n            buffer[offset++] = c1       & 63 | 128;\r\n        } else {\r\n            buffer[offset++] = c1 >> 12      | 224;\r\n            buffer[offset++] = c1 >> 6  & 63 | 128;\r\n            buffer[offset++] = c1       & 63 | 128;\r\n        }\r\n    }\r\n    return offset - start;\r\n};\r\n", "\"use strict\";\r\nmodule.exports = pool;\r\n\r\n/**\r\n * An allocator as used by {@link util.pool}.\r\n * @typedef PoolAllocator\r\n * @type {function}\r\n * @param {number} size Buffer size\r\n * @returns {Uint8Array} Buffer\r\n */\r\n\r\n/**\r\n * A slicer as used by {@link util.pool}.\r\n * @typedef PoolSlicer\r\n * @type {function}\r\n * @param {number} start Start offset\r\n * @param {number} end End offset\r\n * @returns {Uint8Array} Buffer slice\r\n * @this {Uint8Array}\r\n */\r\n\r\n/**\r\n * A general purpose buffer pool.\r\n * @memberof util\r\n * @function\r\n * @param {PoolAllocator} alloc Allocator\r\n * @param {PoolSlicer} slice Slicer\r\n * @param {number} [size=8192] Slab size\r\n * @returns {PoolAllocator} Pooled allocator\r\n */\r\nfunction pool(alloc, slice, size) {\r\n    var SIZE   = size || 8192;\r\n    var MAX    = SIZE >>> 1;\r\n    var slab   = null;\r\n    var offset = SIZE;\r\n    return function pool_alloc(size) {\r\n        if (size < 1 || size > MAX)\r\n            return alloc(size);\r\n        if (offset + size > SIZE) {\r\n            slab = alloc(SIZE);\r\n            offset = 0;\r\n        }\r\n        var buf = slice.call(slab, offset, offset += size);\r\n        if (offset & 7) // align to 32 bit\r\n            offset = (offset | 7) + 1;\r\n        return buf;\r\n    };\r\n}\r\n", "\"use strict\";\nmodule.exports = LongBits;\n\nvar util = require(\"../util/minimal\");\n\n/**\n * Constructs new long bits.\n * @classdesc Helper class for working with the low and high bits of a 64 bit value.\n * @memberof util\n * @constructor\n * @param {number} lo Low 32 bits, unsigned\n * @param {number} hi High 32 bits, unsigned\n */\nfunction LongBits(lo, hi) {\n\n    // note that the casts below are theoretically unnecessary as of today, but older statically\n    // generated converter code might still call the ctor with signed 32bits. kept for compat.\n\n    /**\n     * Low bits.\n     * @type {number}\n     */\n    this.lo = lo >>> 0;\n\n    /**\n     * High bits.\n     * @type {number}\n     */\n    this.hi = hi >>> 0;\n}\n\n/**\n * Zero bits.\n * @memberof util.LongBits\n * @type {util.LongBits}\n */\nvar zero = LongBits.zero = new LongBits(0, 0);\n\nzero.toNumber = function() { return 0; };\nzero.zzEncode = zero.zzDecode = function() { return this; };\nzero.length = function() { return 1; };\n\n/**\n * Zero hash.\n * @memberof util.LongBits\n * @type {string}\n */\nvar zeroHash = LongBits.zeroHash = \"\\0\\0\\0\\0\\0\\0\\0\\0\";\n\n/**\n * Constructs new long bits from the specified number.\n * @param {number} value Value\n * @returns {util.LongBits} Instance\n */\nLongBits.fromNumber = function fromNumber(value) {\n    if (value === 0)\n        return zero;\n    var sign = value < 0;\n    if (sign)\n        value = -value;\n    var lo = value >>> 0,\n        hi = (value - lo) / 4294967296 >>> 0;\n    if (sign) {\n        hi = ~hi >>> 0;\n        lo = ~lo >>> 0;\n        if (++lo > 4294967295) {\n            lo = 0;\n            if (++hi > 4294967295)\n                hi = 0;\n        }\n    }\n    return new LongBits(lo, hi);\n};\n\n/**\n * Constructs new long bits from a number, long or string.\n * @param {Long|number|string} value Value\n * @returns {util.LongBits} Instance\n */\nLongBits.from = function from(value) {\n    if (typeof value === \"number\")\n        return LongBits.fromNumber(value);\n    if (util.isString(value)) {\n        /* istanbul ignore else */\n        if (util.Long)\n            value = util.Long.fromString(value);\n        else\n            return LongBits.fromNumber(parseInt(value, 10));\n    }\n    return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;\n};\n\n/**\n * Converts this long bits to a possibly unsafe JavaScript number.\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {number} Possibly unsafe number\n */\nLongBits.prototype.toNumber = function toNumber(unsigned) {\n    if (!unsigned && this.hi >>> 31) {\n        var lo = ~this.lo + 1 >>> 0,\n            hi = ~this.hi     >>> 0;\n        if (!lo)\n            hi = hi + 1 >>> 0;\n        return -(lo + hi * 4294967296);\n    }\n    return this.lo + this.hi * 4294967296;\n};\n\n/**\n * Converts this long bits to a long.\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {Long} Long\n */\nLongBits.prototype.toLong = function toLong(unsigned) {\n    return util.Long\n        ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned))\n        /* istanbul ignore next */\n        : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) };\n};\n\nvar charCodeAt = String.prototype.charCodeAt;\n\n/**\n * Constructs new long bits from the specified 8 characters long hash.\n * @param {string} hash Hash\n * @returns {util.LongBits} Bits\n */\nLongBits.fromHash = function fromHash(hash) {\n    if (hash === zeroHash)\n        return zero;\n    return new LongBits(\n        ( charCodeAt.call(hash, 0)\n        | charCodeAt.call(hash, 1) << 8\n        | charCodeAt.call(hash, 2) << 16\n        | charCodeAt.call(hash, 3) << 24) >>> 0\n    ,\n        ( charCodeAt.call(hash, 4)\n        | charCodeAt.call(hash, 5) << 8\n        | charCodeAt.call(hash, 6) << 16\n        | charCodeAt.call(hash, 7) << 24) >>> 0\n    );\n};\n\n/**\n * Converts this long bits to a 8 characters long hash.\n * @returns {string} Hash\n */\nLongBits.prototype.toHash = function toHash() {\n    return String.fromCharCode(\n        this.lo        & 255,\n        this.lo >>> 8  & 255,\n        this.lo >>> 16 & 255,\n        this.lo >>> 24      ,\n        this.hi        & 255,\n        this.hi >>> 8  & 255,\n        this.hi >>> 16 & 255,\n        this.hi >>> 24\n    );\n};\n\n/**\n * Zig-zag encodes this long bits.\n * @returns {util.LongBits} `this`\n */\nLongBits.prototype.zzEncode = function zzEncode() {\n    var mask =   this.hi >> 31;\n    this.hi  = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0;\n    this.lo  = ( this.lo << 1                   ^ mask) >>> 0;\n    return this;\n};\n\n/**\n * Zig-zag decodes this long bits.\n * @returns {util.LongBits} `this`\n */\nLongBits.prototype.zzDecode = function zzDecode() {\n    var mask = -(this.lo & 1);\n    this.lo  = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0;\n    this.hi  = ( this.hi >>> 1                  ^ mask) >>> 0;\n    return this;\n};\n\n/**\n * Calculates the length of this longbits when encoded as a varint.\n * @returns {number} Length\n */\nLongBits.prototype.length = function length() {\n    var part0 =  this.lo,\n        part1 = (this.lo >>> 28 | this.hi << 4) >>> 0,\n        part2 =  this.hi >>> 24;\n    return part2 === 0\n         ? part1 === 0\n           ? part0 < 16384\n             ? part0 < 128 ? 1 : 2\n             : part0 < 2097152 ? 3 : 4\n           : part1 < 16384\n             ? part1 < 128 ? 5 : 6\n             : part1 < 2097152 ? 7 : 8\n         : part2 < 128 ? 9 : 10;\n};\n", "\"use strict\";\nvar util = exports;\n\n// used to return a Promise where callback is omitted\nutil.asPromise = require(\"@protobufjs/aspromise\");\n\n// converts to / from base64 encoded strings\nutil.base64 = require(\"@protobufjs/base64\");\n\n// base class of rpc.Service\nutil.EventEmitter = require(\"@protobufjs/eventemitter\");\n\n// float handling accross browsers\nutil.float = require(\"@protobufjs/float\");\n\n// requires modules optionally and hides the call from bundlers\nutil.inquire = require(\"@protobufjs/inquire\");\n\n// converts to / from utf8 encoded strings\nutil.utf8 = require(\"@protobufjs/utf8\");\n\n// provides a node-like buffer pool in the browser\nutil.pool = require(\"@protobufjs/pool\");\n\n// utility to work with the low and high bits of a 64 bit value\nutil.LongBits = require(\"./longbits\");\n\n/**\n * Whether running within node or not.\n * @memberof util\n * @type {boolean}\n */\nutil.isNode = Boolean(typeof global !== \"undefined\"\n                   && global\n                   && global.process\n                   && global.process.versions\n                   && global.process.versions.node);\n\n/**\n * Global object reference.\n * @memberof util\n * @type {Object}\n */\nutil.global = util.isNode && global\n           || typeof window !== \"undefined\" && window\n           || typeof self   !== \"undefined\" && self\n           || this; // eslint-disable-line no-invalid-this\n\n/**\n * An immuable empty array.\n * @memberof util\n * @type {Array.<*>}\n * @const\n */\nutil.emptyArray = Object.freeze ? Object.freeze([]) : /* istanbul ignore next */ []; // used on prototypes\n\n/**\n * An immutable empty object.\n * @type {Object}\n * @const\n */\nutil.emptyObject = Object.freeze ? Object.freeze({}) : /* istanbul ignore next */ {}; // used on prototypes\n\n/**\n * Tests if the specified value is an integer.\n * @function\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is an integer\n */\nutil.isInteger = Number.isInteger || /* istanbul ignore next */ function isInteger(value) {\n    return typeof value === \"number\" && isFinite(value) && Math.floor(value) === value;\n};\n\n/**\n * Tests if the specified value is a string.\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is a string\n */\nutil.isString = function isString(value) {\n    return typeof value === \"string\" || value instanceof String;\n};\n\n/**\n * Tests if the specified value is a non-null object.\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is a non-null object\n */\nutil.isObject = function isObject(value) {\n    return value && typeof value === \"object\";\n};\n\n/**\n * Checks if a property on a message is considered to be present.\n * This is an alias of {@link util.isSet}.\n * @function\n * @param {Object} obj Plain object or message instance\n * @param {string} prop Property name\n * @returns {boolean} `true` if considered to be present, otherwise `false`\n */\nutil.isset =\n\n/**\n * Checks if a property on a message is considered to be present.\n * @param {Object} obj Plain object or message instance\n * @param {string} prop Property name\n * @returns {boolean} `true` if considered to be present, otherwise `false`\n */\nutil.isSet = function isSet(obj, prop) {\n    var value = obj[prop];\n    if (value != null && obj.hasOwnProperty(prop)) // eslint-disable-line eqeqeq, no-prototype-builtins\n        return typeof value !== \"object\" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;\n    return false;\n};\n\n/**\n * Any compatible Buffer instance.\n * This is a minimal stand-alone definition of a Buffer instance. The actual type is that exported by node's typings.\n * @interface Buffer\n * @extends Uint8Array\n */\n\n/**\n * Node's Buffer class if available.\n * @type {Constructor<Buffer>}\n */\nutil.Buffer = (function() {\n    try {\n        var Buffer = util.inquire(\"buffer\").Buffer;\n        // refuse to use non-node buffers if not explicitly assigned (perf reasons):\n        return Buffer.prototype.utf8Write ? Buffer : /* istanbul ignore next */ null;\n    } catch (e) {\n        /* istanbul ignore next */\n        return null;\n    }\n})();\n\n// Internal alias of or polyfull for Buffer.from.\nutil._Buffer_from = null;\n\n// Internal alias of or polyfill for Buffer.allocUnsafe.\nutil._Buffer_allocUnsafe = null;\n\n/**\n * Creates a new buffer of whatever type supported by the environment.\n * @param {number|number[]} [sizeOrArray=0] Buffer size or number array\n * @returns {Uint8Array|Buffer} Buffer\n */\nutil.newBuffer = function newBuffer(sizeOrArray) {\n    /* istanbul ignore next */\n    return typeof sizeOrArray === \"number\"\n        ? util.Buffer\n            ? util._Buffer_allocUnsafe(sizeOrArray)\n            : new util.Array(sizeOrArray)\n        : util.Buffer\n            ? util._Buffer_from(sizeOrArray)\n            : typeof Uint8Array === \"undefined\"\n                ? sizeOrArray\n                : new Uint8Array(sizeOrArray);\n};\n\n/**\n * Array implementation used in the browser. `Uint8Array` if supported, otherwise `Array`.\n * @type {Constructor<Uint8Array>}\n */\nutil.Array = typeof Uint8Array !== \"undefined\" ? Uint8Array /* istanbul ignore next */ : Array;\n\n/**\n * Any compatible Long instance.\n * This is a minimal stand-alone definition of a Long instance. The actual type is that exported by long.js.\n * @interface Long\n * @property {number} low Low bits\n * @property {number} high High bits\n * @property {boolean} unsigned Whether unsigned or not\n */\n\n/**\n * Long.js's Long class if available.\n * @type {Constructor<Long>}\n */\nutil.Long = /* istanbul ignore next */ util.global.dcodeIO && /* istanbul ignore next */ util.global.dcodeIO.Long\n         || /* istanbul ignore next */ util.global.Long\n         || util.inquire(\"long\");\n\n/**\n * Regular expression used to verify 2 bit (`bool`) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key2Re = /^true|false|0|1$/;\n\n/**\n * Regular expression used to verify 32 bit (`int32` etc.) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key32Re = /^-?(?:0|[1-9][0-9]*)$/;\n\n/**\n * Regular expression used to verify 64 bit (`int64` etc.) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key64Re = /^(?:[\\\\x00-\\\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;\n\n/**\n * Converts a number or long to an 8 characters long hash string.\n * @param {Long|number} value Value to convert\n * @returns {string} Hash\n */\nutil.longToHash = function longToHash(value) {\n    return value\n        ? util.LongBits.from(value).toHash()\n        : util.LongBits.zeroHash;\n};\n\n/**\n * Converts an 8 characters long hash string to a long or number.\n * @param {string} hash Hash\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {Long|number} Original value\n */\nutil.longFromHash = function longFromHash(hash, unsigned) {\n    var bits = util.LongBits.fromHash(hash);\n    if (util.Long)\n        return util.Long.fromBits(bits.lo, bits.hi, unsigned);\n    return bits.toNumber(Boolean(unsigned));\n};\n\n/**\n * Merges the properties of the source object into the destination object.\n * @memberof util\n * @param {Object.<string,*>} dst Destination object\n * @param {Object.<string,*>} src Source object\n * @param {boolean} [ifNotSet=false] Merges only if the key is not already set\n * @returns {Object.<string,*>} Destination object\n */\nfunction merge(dst, src, ifNotSet) { // used by converters\n    for (var keys = Object.keys(src), i = 0; i < keys.length; ++i)\n        if (dst[keys[i]] === undefined || !ifNotSet)\n            dst[keys[i]] = src[keys[i]];\n    return dst;\n}\n\nutil.merge = merge;\n\n/**\n * Converts the first character of a string to lower case.\n * @param {string} str String to convert\n * @returns {string} Converted string\n */\nutil.lcFirst = function lcFirst(str) {\n    return str.charAt(0).toLowerCase() + str.substring(1);\n};\n\n/**\n * Creates a custom error constructor.\n * @memberof util\n * @param {string} name Error name\n * @returns {Constructor<Error>} Custom error constructor\n */\nfunction newError(name) {\n\n    function CustomError(message, properties) {\n\n        if (!(this instanceof CustomError))\n            return new CustomError(message, properties);\n\n        // Error.call(this, message);\n        // ^ just returns a new error instance because the ctor can be called as a function\n\n        Object.defineProperty(this, \"message\", { get: function() { return message; } });\n\n        /* istanbul ignore next */\n        if (Error.captureStackTrace) // node\n            Error.captureStackTrace(this, CustomError);\n        else\n            Object.defineProperty(this, \"stack\", { value: new Error().stack || \"\" });\n\n        if (properties)\n            merge(this, properties);\n    }\n\n    CustomError.prototype = Object.create(Error.prototype, {\n        constructor: {\n            value: CustomError,\n            writable: true,\n            enumerable: false,\n            configurable: true,\n        },\n        name: {\n            get: function get() { return name; },\n            set: undefined,\n            enumerable: false,\n            // configurable: false would accurately preserve the behavior of\n            // the original, but I'm guessing that was not intentional.\n            // For an actual error subclass, this property would\n            // be configurable.\n            configurable: true,\n        },\n        toString: {\n            value: function value() { return this.name + \": \" + this.message; },\n            writable: true,\n            enumerable: false,\n            configurable: true,\n        },\n    });\n\n    return CustomError;\n}\n\nutil.newError = newError;\n\n/**\n * Constructs a new protocol error.\n * @classdesc Error subclass indicating a protocol specifc error.\n * @memberof util\n * @extends Error\n * @template T extends Message<T>\n * @constructor\n * @param {string} message Error message\n * @param {Object.<string,*>} [properties] Additional properties\n * @example\n * try {\n *     MyMessage.decode(someBuffer); // throws if required fields are missing\n * } catch (e) {\n *     if (e instanceof ProtocolError && e.instance)\n *         console.log(\"decoded so far: \" + JSON.stringify(e.instance));\n * }\n */\nutil.ProtocolError = newError(\"ProtocolError\");\n\n/**\n * So far decoded message instance.\n * @name util.ProtocolError#instance\n * @type {Message<T>}\n */\n\n/**\n * A OneOf getter as returned by {@link util.oneOfGetter}.\n * @typedef OneOfGetter\n * @type {function}\n * @returns {string|undefined} Set field name, if any\n */\n\n/**\n * Builds a getter for a oneof's present field name.\n * @param {string[]} fieldNames Field names\n * @returns {OneOfGetter} Unbound getter\n */\nutil.oneOfGetter = function getOneOf(fieldNames) {\n    var fieldMap = {};\n    for (var i = 0; i < fieldNames.length; ++i)\n        fieldMap[fieldNames[i]] = 1;\n\n    /**\n     * @returns {string|undefined} Set field name, if any\n     * @this Object\n     * @ignore\n     */\n    return function() { // eslint-disable-line consistent-return\n        for (var keys = Object.keys(this), i = keys.length - 1; i > -1; --i)\n            if (fieldMap[keys[i]] === 1 && this[keys[i]] !== undefined && this[keys[i]] !== null)\n                return keys[i];\n    };\n};\n\n/**\n * A OneOf setter as returned by {@link util.oneOfSetter}.\n * @typedef OneOfSetter\n * @type {function}\n * @param {string|undefined} value Field name\n * @returns {undefined}\n */\n\n/**\n * Builds a setter for a oneof's present field name.\n * @param {string[]} fieldNames Field names\n * @returns {OneOfSetter} Unbound setter\n */\nutil.oneOfSetter = function setOneOf(fieldNames) {\n\n    /**\n     * @param {string} name Field name\n     * @returns {undefined}\n     * @this Object\n     * @ignore\n     */\n    return function(name) {\n        for (var i = 0; i < fieldNames.length; ++i)\n            if (fieldNames[i] !== name)\n                delete this[fieldNames[i]];\n    };\n};\n\n/**\n * Default conversion options used for {@link Message#toJSON} implementations.\n *\n * These options are close to proto3's JSON mapping with the exception that internal types like Any are handled just like messages. More precisely:\n *\n * - Longs become strings\n * - Enums become string keys\n * - Bytes become base64 encoded strings\n * - (Sub-)Messages become plain objects\n * - Maps become plain objects with all string keys\n * - Repeated fields become arrays\n * - NaN and Infinity for float and double fields become strings\n *\n * @type {IConversionOptions}\n * @see https://developers.google.com/protocol-buffers/docs/proto3?hl=en#json\n */\nutil.toJSONOptions = {\n    longs: String,\n    enums: String,\n    bytes: String,\n    json: true\n};\n\n// Sets up buffer utility according to the environment (called in index-minimal)\nutil._configure = function() {\n    var Buffer = util.Buffer;\n    /* istanbul ignore if */\n    if (!Buffer) {\n        util._Buffer_from = util._Buffer_allocUnsafe = null;\n        return;\n    }\n    // because node 4.x buffers are incompatible & immutable\n    // see: https://github.com/dcodeIO/protobuf.js/pull/665\n    util._Buffer_from = Buffer.from !== Uint8Array.from && Buffer.from ||\n        /* istanbul ignore next */\n        function Buffer_from(value, encoding) {\n            return new Buffer(value, encoding);\n        };\n    util._Buffer_allocUnsafe = Buffer.allocUnsafe ||\n        /* istanbul ignore next */\n        function Buffer_allocUnsafe(size) {\n            return new Buffer(size);\n        };\n};\n", "\"use strict\";\nmodule.exports = Writer;\n\nvar util      = require(\"./util/minimal\");\n\nvar BufferWriter; // cyclic\n\nvar LongBits  = util.LongBits,\n    base64    = util.base64,\n    utf8      = util.utf8;\n\n/**\n * Constructs a new writer operation instance.\n * @classdesc Scheduled writer operation.\n * @constructor\n * @param {function(*, Uint8Array, number)} fn Function to call\n * @param {number} len Value byte length\n * @param {*} val Value to write\n * @ignore\n */\nfunction Op(fn, len, val) {\n\n    /**\n     * Function to call.\n     * @type {function(Uint8Array, number, *)}\n     */\n    this.fn = fn;\n\n    /**\n     * Value byte length.\n     * @type {number}\n     */\n    this.len = len;\n\n    /**\n     * Next operation.\n     * @type {Writer.Op|undefined}\n     */\n    this.next = undefined;\n\n    /**\n     * Value to write.\n     * @type {*}\n     */\n    this.val = val; // type varies\n}\n\n/* istanbul ignore next */\nfunction noop() {} // eslint-disable-line no-empty-function\n\n/**\n * Constructs a new writer state instance.\n * @classdesc Copied writer state.\n * @memberof Writer\n * @constructor\n * @param {Writer} writer Writer to copy state from\n * @ignore\n */\nfunction State(writer) {\n\n    /**\n     * Current head.\n     * @type {Writer.Op}\n     */\n    this.head = writer.head;\n\n    /**\n     * Current tail.\n     * @type {Writer.Op}\n     */\n    this.tail = writer.tail;\n\n    /**\n     * Current buffer length.\n     * @type {number}\n     */\n    this.len = writer.len;\n\n    /**\n     * Next state.\n     * @type {State|null}\n     */\n    this.next = writer.states;\n}\n\n/**\n * Constructs a new writer instance.\n * @classdesc Wire format writer using `Uint8Array` if available, otherwise `Array`.\n * @constructor\n */\nfunction Writer() {\n\n    /**\n     * Current length.\n     * @type {number}\n     */\n    this.len = 0;\n\n    /**\n     * Operations head.\n     * @type {Object}\n     */\n    this.head = new Op(noop, 0, 0);\n\n    /**\n     * Operations tail\n     * @type {Object}\n     */\n    this.tail = this.head;\n\n    /**\n     * Linked forked states.\n     * @type {Object|null}\n     */\n    this.states = null;\n\n    // When a value is written, the writer calculates its byte length and puts it into a linked\n    // list of operations to perform when finish() is called. This both allows us to allocate\n    // buffers of the exact required size and reduces the amount of work we have to do compared\n    // to first calculating over objects and then encoding over objects. In our case, the encoding\n    // part is just a linked list walk calling operations with already prepared values.\n}\n\nvar create = function create() {\n    return util.Buffer\n        ? function create_buffer_setup() {\n            return (Writer.create = function create_buffer() {\n                return new BufferWriter();\n            })();\n        }\n        /* istanbul ignore next */\n        : function create_array() {\n            return new Writer();\n        };\n};\n\n/**\n * Creates a new writer.\n * @function\n * @returns {BufferWriter|Writer} A {@link BufferWriter} when Buffers are supported, otherwise a {@link Writer}\n */\nWriter.create = create();\n\n/**\n * Allocates a buffer of the specified size.\n * @param {number} size Buffer size\n * @returns {Uint8Array} Buffer\n */\nWriter.alloc = function alloc(size) {\n    return new util.Array(size);\n};\n\n// Use Uint8Array buffer pool in the browser, just like node does with buffers\n/* istanbul ignore else */\nif (util.Array !== Array)\n    Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);\n\n/**\n * Pushes a new operation to the queue.\n * @param {function(Uint8Array, number, *)} fn Function to call\n * @param {number} len Value byte length\n * @param {number} val Value to write\n * @returns {Writer} `this`\n * @private\n */\nWriter.prototype._push = function push(fn, len, val) {\n    this.tail = this.tail.next = new Op(fn, len, val);\n    this.len += len;\n    return this;\n};\n\nfunction writeByte(val, buf, pos) {\n    buf[pos] = val & 255;\n}\n\nfunction writeVarint32(val, buf, pos) {\n    while (val > 127) {\n        buf[pos++] = val & 127 | 128;\n        val >>>= 7;\n    }\n    buf[pos] = val;\n}\n\n/**\n * Constructs a new varint writer operation instance.\n * @classdesc Scheduled varint writer operation.\n * @extends Op\n * @constructor\n * @param {number} len Value byte length\n * @param {number} val Value to write\n * @ignore\n */\nfunction VarintOp(len, val) {\n    this.len = len;\n    this.next = undefined;\n    this.val = val;\n}\n\nVarintOp.prototype = Object.create(Op.prototype);\nVarintOp.prototype.fn = writeVarint32;\n\n/**\n * Writes an unsigned 32 bit value as a varint.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.uint32 = function write_uint32(value) {\n    // here, the call to this.push has been inlined and a varint specific Op subclass is used.\n    // uint32 is by far the most frequently used operation and benefits significantly from this.\n    this.len += (this.tail = this.tail.next = new VarintOp(\n        (value = value >>> 0)\n                < 128       ? 1\n        : value < 16384     ? 2\n        : value < 2097152   ? 3\n        : value < 268435456 ? 4\n        :                     5,\n    value)).len;\n    return this;\n};\n\n/**\n * Writes a signed 32 bit value as a varint.\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.int32 = function write_int32(value) {\n    return value < 0\n        ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) // 10 bytes per spec\n        : this.uint32(value);\n};\n\n/**\n * Writes a 32 bit value as a varint, zig-zag encoded.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.sint32 = function write_sint32(value) {\n    return this.uint32((value << 1 ^ value >> 31) >>> 0);\n};\n\nfunction writeVarint64(val, buf, pos) {\n    while (val.hi) {\n        buf[pos++] = val.lo & 127 | 128;\n        val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;\n        val.hi >>>= 7;\n    }\n    while (val.lo > 127) {\n        buf[pos++] = val.lo & 127 | 128;\n        val.lo = val.lo >>> 7;\n    }\n    buf[pos++] = val.lo;\n}\n\n/**\n * Writes an unsigned 64 bit value as a varint.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.uint64 = function write_uint64(value) {\n    var bits = LongBits.from(value);\n    return this._push(writeVarint64, bits.length(), bits);\n};\n\n/**\n * Writes a signed 64 bit value as a varint.\n * @function\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.int64 = Writer.prototype.uint64;\n\n/**\n * Writes a signed 64 bit value as a varint, zig-zag encoded.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.sint64 = function write_sint64(value) {\n    var bits = LongBits.from(value).zzEncode();\n    return this._push(writeVarint64, bits.length(), bits);\n};\n\n/**\n * Writes a boolish value as a varint.\n * @param {boolean} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.bool = function write_bool(value) {\n    return this._push(writeByte, 1, value ? 1 : 0);\n};\n\nfunction writeFixed32(val, buf, pos) {\n    buf[pos    ] =  val         & 255;\n    buf[pos + 1] =  val >>> 8   & 255;\n    buf[pos + 2] =  val >>> 16  & 255;\n    buf[pos + 3] =  val >>> 24;\n}\n\n/**\n * Writes an unsigned 32 bit value as fixed 32 bits.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.fixed32 = function write_fixed32(value) {\n    return this._push(writeFixed32, 4, value >>> 0);\n};\n\n/**\n * Writes a signed 32 bit value as fixed 32 bits.\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.sfixed32 = Writer.prototype.fixed32;\n\n/**\n * Writes an unsigned 64 bit value as fixed 64 bits.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.fixed64 = function write_fixed64(value) {\n    var bits = LongBits.from(value);\n    return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);\n};\n\n/**\n * Writes a signed 64 bit value as fixed 64 bits.\n * @function\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.sfixed64 = Writer.prototype.fixed64;\n\n/**\n * Writes a float (32 bit).\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.float = function write_float(value) {\n    return this._push(util.float.writeFloatLE, 4, value);\n};\n\n/**\n * Writes a double (64 bit float).\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.double = function write_double(value) {\n    return this._push(util.float.writeDoubleLE, 8, value);\n};\n\nvar writeBytes = util.Array.prototype.set\n    ? function writeBytes_set(val, buf, pos) {\n        buf.set(val, pos); // also works for plain array values\n    }\n    /* istanbul ignore next */\n    : function writeBytes_for(val, buf, pos) {\n        for (var i = 0; i < val.length; ++i)\n            buf[pos + i] = val[i];\n    };\n\n/**\n * Writes a sequence of bytes.\n * @param {Uint8Array|string} value Buffer or base64 encoded string to write\n * @returns {Writer} `this`\n */\nWriter.prototype.bytes = function write_bytes(value) {\n    var len = value.length >>> 0;\n    if (!len)\n        return this._push(writeByte, 1, 0);\n    if (util.isString(value)) {\n        var buf = Writer.alloc(len = base64.length(value));\n        base64.decode(value, buf, 0);\n        value = buf;\n    }\n    return this.uint32(len)._push(writeBytes, len, value);\n};\n\n/**\n * Writes a string.\n * @param {string} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.string = function write_string(value) {\n    var len = utf8.length(value);\n    return len\n        ? this.uint32(len)._push(utf8.write, len, value)\n        : this._push(writeByte, 1, 0);\n};\n\n/**\n * Forks this writer's state by pushing it to a stack.\n * Calling {@link Writer#reset|reset} or {@link Writer#ldelim|ldelim} resets the writer to the previous state.\n * @returns {Writer} `this`\n */\nWriter.prototype.fork = function fork() {\n    this.states = new State(this);\n    this.head = this.tail = new Op(noop, 0, 0);\n    this.len = 0;\n    return this;\n};\n\n/**\n * Resets this instance to the last state.\n * @returns {Writer} `this`\n */\nWriter.prototype.reset = function reset() {\n    if (this.states) {\n        this.head   = this.states.head;\n        this.tail   = this.states.tail;\n        this.len    = this.states.len;\n        this.states = this.states.next;\n    } else {\n        this.head = this.tail = new Op(noop, 0, 0);\n        this.len  = 0;\n    }\n    return this;\n};\n\n/**\n * Resets to the last state and appends the fork state's current write length as a varint followed by its operations.\n * @returns {Writer} `this`\n */\nWriter.prototype.ldelim = function ldelim() {\n    var head = this.head,\n        tail = this.tail,\n        len  = this.len;\n    this.reset().uint32(len);\n    if (len) {\n        this.tail.next = head.next; // skip noop\n        this.tail = tail;\n        this.len += len;\n    }\n    return this;\n};\n\n/**\n * Finishes the write operation.\n * @returns {Uint8Array} Finished buffer\n */\nWriter.prototype.finish = function finish() {\n    var head = this.head.next, // skip noop\n        buf  = this.constructor.alloc(this.len),\n        pos  = 0;\n    while (head) {\n        head.fn(head.val, buf, pos);\n        pos += head.len;\n        head = head.next;\n    }\n    // this.head = this.tail = null;\n    return buf;\n};\n\nWriter._configure = function(BufferWriter_) {\n    BufferWriter = BufferWriter_;\n    Writer.create = create();\n    BufferWriter._configure();\n};\n", "\"use strict\";\nmodule.exports = BufferWriter;\n\n// extends Writer\nvar Writer = require(\"./writer\");\n(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;\n\nvar util = require(\"./util/minimal\");\n\n/**\n * Constructs a new buffer writer instance.\n * @classdesc Wire format writer using node buffers.\n * @extends Writer\n * @constructor\n */\nfunction BufferWriter() {\n    Writer.call(this);\n}\n\nBufferWriter._configure = function () {\n    /**\n     * Allocates a buffer of the specified size.\n     * @function\n     * @param {number} size Buffer size\n     * @returns {Buffer} Buffer\n     */\n    BufferWriter.alloc = util._Buffer_allocUnsafe;\n\n    BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === \"set\"\n        ? function writeBytesBuffer_set(val, buf, pos) {\n          buf.set(val, pos); // faster than copy (requires node >= 4 where Buffers extend Uint8Array and set is properly inherited)\n          // also works for plain array values\n        }\n        /* istanbul ignore next */\n        : function writeBytesBuffer_copy(val, buf, pos) {\n          if (val.copy) // Buffer values\n            val.copy(buf, pos, 0, val.length);\n          else for (var i = 0; i < val.length;) // plain array values\n            buf[pos++] = val[i++];\n        };\n};\n\n\n/**\n * @override\n */\nBufferWriter.prototype.bytes = function write_bytes_buffer(value) {\n    if (util.isString(value))\n        value = util._Buffer_from(value, \"base64\");\n    var len = value.length >>> 0;\n    this.uint32(len);\n    if (len)\n        this._push(BufferWriter.writeBytesBuffer, len, value);\n    return this;\n};\n\nfunction writeStringBuffer(val, buf, pos) {\n    if (val.length < 40) // plain js is faster for short strings (probably due to redundant assertions)\n        util.utf8.write(val, buf, pos);\n    else if (buf.utf8Write)\n        buf.utf8Write(val, pos);\n    else\n        buf.write(val, pos);\n}\n\n/**\n * @override\n */\nBufferWriter.prototype.string = function write_string_buffer(value) {\n    var len = util.Buffer.byteLength(value);\n    this.uint32(len);\n    if (len)\n        this._push(writeStringBuffer, len, value);\n    return this;\n};\n\n\n/**\n * Finishes the write operation.\n * @name BufferWriter#finish\n * @function\n * @returns {Buffer} Finished buffer\n */\n\nBufferWriter._configure();\n", "\"use strict\";\nmodule.exports = Reader;\n\nvar util      = require(\"./util/minimal\");\n\nvar BufferReader; // cyclic\n\nvar LongBits  = util.LongBits,\n    utf8      = util.utf8;\n\n/* istanbul ignore next */\nfunction indexOutOfRange(reader, writeLength) {\n    return RangeError(\"index out of range: \" + reader.pos + \" + \" + (writeLength || 1) + \" > \" + reader.len);\n}\n\n/**\n * Constructs a new reader instance using the specified buffer.\n * @classdesc Wire format reader using `Uint8Array` if available, otherwise `Array`.\n * @constructor\n * @param {Uint8Array} buffer Buffer to read from\n */\nfunction Reader(buffer) {\n\n    /**\n     * Read buffer.\n     * @type {Uint8Array}\n     */\n    this.buf = buffer;\n\n    /**\n     * Read buffer position.\n     * @type {number}\n     */\n    this.pos = 0;\n\n    /**\n     * Read buffer length.\n     * @type {number}\n     */\n    this.len = buffer.length;\n}\n\nvar create_array = typeof Uint8Array !== \"undefined\"\n    ? function create_typed_array(buffer) {\n        if (buffer instanceof Uint8Array || Array.isArray(buffer))\n            return new Reader(buffer);\n        throw Error(\"illegal buffer\");\n    }\n    /* istanbul ignore next */\n    : function create_array(buffer) {\n        if (Array.isArray(buffer))\n            return new Reader(buffer);\n        throw Error(\"illegal buffer\");\n    };\n\nvar create = function create() {\n    return util.Buffer\n        ? function create_buffer_setup(buffer) {\n            return (Reader.create = function create_buffer(buffer) {\n                return util.Buffer.isBuffer(buffer)\n                    ? new BufferReader(buffer)\n                    /* istanbul ignore next */\n                    : create_array(buffer);\n            })(buffer);\n        }\n        /* istanbul ignore next */\n        : create_array;\n};\n\n/**\n * Creates a new reader using the specified buffer.\n * @function\n * @param {Uint8Array|Buffer} buffer Buffer to read from\n * @returns {Reader|BufferReader} A {@link BufferReader} if `buffer` is a Buffer, otherwise a {@link Reader}\n * @throws {Error} If `buffer` is not a valid buffer\n */\nReader.create = create();\n\nReader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */ util.Array.prototype.slice;\n\n/**\n * Reads a varint as an unsigned 32 bit value.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.uint32 = (function read_uint32_setup() {\n    var value = 4294967295; // optimizer type-hint, tends to deopt otherwise (?!)\n    return function read_uint32() {\n        value = (         this.buf[this.pos] & 127       ) >>> 0; if (this.buf[this.pos++] < 128) return value;\n        value = (value | (this.buf[this.pos] & 127) <<  7) >>> 0; if (this.buf[this.pos++] < 128) return value;\n        value = (value | (this.buf[this.pos] & 127) << 14) >>> 0; if (this.buf[this.pos++] < 128) return value;\n        value = (value | (this.buf[this.pos] & 127) << 21) >>> 0; if (this.buf[this.pos++] < 128) return value;\n        value = (value | (this.buf[this.pos] &  15) << 28) >>> 0; if (this.buf[this.pos++] < 128) return value;\n\n        /* istanbul ignore if */\n        if ((this.pos += 5) > this.len) {\n            this.pos = this.len;\n            throw indexOutOfRange(this, 10);\n        }\n        return value;\n    };\n})();\n\n/**\n * Reads a varint as a signed 32 bit value.\n * @returns {number} Value read\n */\nReader.prototype.int32 = function read_int32() {\n    return this.uint32() | 0;\n};\n\n/**\n * Reads a zig-zag encoded varint as a signed 32 bit value.\n * @returns {number} Value read\n */\nReader.prototype.sint32 = function read_sint32() {\n    var value = this.uint32();\n    return value >>> 1 ^ -(value & 1) | 0;\n};\n\n/* eslint-disable no-invalid-this */\n\nfunction readLongVarint() {\n    // tends to deopt with local vars for octet etc.\n    var bits = new LongBits(0, 0);\n    var i = 0;\n    if (this.len - this.pos > 4) { // fast route (lo)\n        for (; i < 4; ++i) {\n            // 1st..4th\n            bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;\n            if (this.buf[this.pos++] < 128)\n                return bits;\n        }\n        // 5th\n        bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0;\n        bits.hi = (bits.hi | (this.buf[this.pos] & 127) >>  4) >>> 0;\n        if (this.buf[this.pos++] < 128)\n            return bits;\n        i = 0;\n    } else {\n        for (; i < 3; ++i) {\n            /* istanbul ignore if */\n            if (this.pos >= this.len)\n                throw indexOutOfRange(this);\n            // 1st..3th\n            bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;\n            if (this.buf[this.pos++] < 128)\n                return bits;\n        }\n        // 4th\n        bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;\n        return bits;\n    }\n    if (this.len - this.pos > 4) { // fast route (hi)\n        for (; i < 5; ++i) {\n            // 6th..10th\n            bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;\n            if (this.buf[this.pos++] < 128)\n                return bits;\n        }\n    } else {\n        for (; i < 5; ++i) {\n            /* istanbul ignore if */\n            if (this.pos >= this.len)\n                throw indexOutOfRange(this);\n            // 6th..10th\n            bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;\n            if (this.buf[this.pos++] < 128)\n                return bits;\n        }\n    }\n    /* istanbul ignore next */\n    throw Error(\"invalid varint encoding\");\n}\n\n/* eslint-enable no-invalid-this */\n\n/**\n * Reads a varint as a signed 64 bit value.\n * @name Reader#int64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a varint as an unsigned 64 bit value.\n * @name Reader#uint64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a zig-zag encoded varint as a signed 64 bit value.\n * @name Reader#sint64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a varint as a boolean.\n * @returns {boolean} Value read\n */\nReader.prototype.bool = function read_bool() {\n    return this.uint32() !== 0;\n};\n\nfunction readFixed32_end(buf, end) { // note that this uses `end`, not `pos`\n    return (buf[end - 4]\n          | buf[end - 3] << 8\n          | buf[end - 2] << 16\n          | buf[end - 1] << 24) >>> 0;\n}\n\n/**\n * Reads fixed 32 bits as an unsigned 32 bit integer.\n * @returns {number} Value read\n */\nReader.prototype.fixed32 = function read_fixed32() {\n\n    /* istanbul ignore if */\n    if (this.pos + 4 > this.len)\n        throw indexOutOfRange(this, 4);\n\n    return readFixed32_end(this.buf, this.pos += 4);\n};\n\n/**\n * Reads fixed 32 bits as a signed 32 bit integer.\n * @returns {number} Value read\n */\nReader.prototype.sfixed32 = function read_sfixed32() {\n\n    /* istanbul ignore if */\n    if (this.pos + 4 > this.len)\n        throw indexOutOfRange(this, 4);\n\n    return readFixed32_end(this.buf, this.pos += 4) | 0;\n};\n\n/* eslint-disable no-invalid-this */\n\nfunction readFixed64(/* this: Reader */) {\n\n    /* istanbul ignore if */\n    if (this.pos + 8 > this.len)\n        throw indexOutOfRange(this, 8);\n\n    return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4));\n}\n\n/* eslint-enable no-invalid-this */\n\n/**\n * Reads fixed 64 bits.\n * @name Reader#fixed64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads zig-zag encoded fixed 64 bits.\n * @name Reader#sfixed64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a float (32 bit) as a number.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.float = function read_float() {\n\n    /* istanbul ignore if */\n    if (this.pos + 4 > this.len)\n        throw indexOutOfRange(this, 4);\n\n    var value = util.float.readFloatLE(this.buf, this.pos);\n    this.pos += 4;\n    return value;\n};\n\n/**\n * Reads a double (64 bit float) as a number.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.double = function read_double() {\n\n    /* istanbul ignore if */\n    if (this.pos + 8 > this.len)\n        throw indexOutOfRange(this, 4);\n\n    var value = util.float.readDoubleLE(this.buf, this.pos);\n    this.pos += 8;\n    return value;\n};\n\n/**\n * Reads a sequence of bytes preceeded by its length as a varint.\n * @returns {Uint8Array} Value read\n */\nReader.prototype.bytes = function read_bytes() {\n    var length = this.uint32(),\n        start  = this.pos,\n        end    = this.pos + length;\n\n    /* istanbul ignore if */\n    if (end > this.len)\n        throw indexOutOfRange(this, length);\n\n    this.pos += length;\n    if (Array.isArray(this.buf)) // plain array\n        return this.buf.slice(start, end);\n\n    if (start === end) { // fix for IE 10/Win8 and others' subarray returning array of size 1\n        var nativeBuffer = util.Buffer;\n        return nativeBuffer\n            ? nativeBuffer.alloc(0)\n            : new this.buf.constructor(0);\n    }\n    return this._slice.call(this.buf, start, end);\n};\n\n/**\n * Reads a string preceeded by its byte length as a varint.\n * @returns {string} Value read\n */\nReader.prototype.string = function read_string() {\n    var bytes = this.bytes();\n    return utf8.read(bytes, 0, bytes.length);\n};\n\n/**\n * Skips the specified number of bytes if specified, otherwise skips a varint.\n * @param {number} [length] Length if known, otherwise a varint is assumed\n * @returns {Reader} `this`\n */\nReader.prototype.skip = function skip(length) {\n    if (typeof length === \"number\") {\n        /* istanbul ignore if */\n        if (this.pos + length > this.len)\n            throw indexOutOfRange(this, length);\n        this.pos += length;\n    } else {\n        do {\n            /* istanbul ignore if */\n            if (this.pos >= this.len)\n                throw indexOutOfRange(this);\n        } while (this.buf[this.pos++] & 128);\n    }\n    return this;\n};\n\n/**\n * Skips the next element of the specified wire type.\n * @param {number} wireType Wire type received\n * @returns {Reader} `this`\n */\nReader.prototype.skipType = function(wireType) {\n    switch (wireType) {\n        case 0:\n            this.skip();\n            break;\n        case 1:\n            this.skip(8);\n            break;\n        case 2:\n            this.skip(this.uint32());\n            break;\n        case 3:\n            while ((wireType = this.uint32() & 7) !== 4) {\n                this.skipType(wireType);\n            }\n            break;\n        case 5:\n            this.skip(4);\n            break;\n\n        /* istanbul ignore next */\n        default:\n            throw Error(\"invalid wire type \" + wireType + \" at offset \" + this.pos);\n    }\n    return this;\n};\n\nReader._configure = function(BufferReader_) {\n    BufferReader = BufferReader_;\n    Reader.create = create();\n    BufferReader._configure();\n\n    var fn = util.Long ? \"toLong\" : /* istanbul ignore next */ \"toNumber\";\n    util.merge(Reader.prototype, {\n\n        int64: function read_int64() {\n            return readLongVarint.call(this)[fn](false);\n        },\n\n        uint64: function read_uint64() {\n            return readLongVarint.call(this)[fn](true);\n        },\n\n        sint64: function read_sint64() {\n            return readLongVarint.call(this).zzDecode()[fn](false);\n        },\n\n        fixed64: function read_fixed64() {\n            return readFixed64.call(this)[fn](true);\n        },\n\n        sfixed64: function read_sfixed64() {\n            return readFixed64.call(this)[fn](false);\n        }\n\n    });\n};\n", "\"use strict\";\nmodule.exports = BufferReader;\n\n// extends Reader\nvar Reader = require(\"./reader\");\n(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;\n\nvar util = require(\"./util/minimal\");\n\n/**\n * Constructs a new buffer reader instance.\n * @classdesc Wire format reader using node buffers.\n * @extends Reader\n * @constructor\n * @param {Buffer} buffer Buffer to read from\n */\nfunction BufferReader(buffer) {\n    Reader.call(this, buffer);\n\n    /**\n     * Read buffer.\n     * @name BufferReader#buf\n     * @type {Buffer}\n     */\n}\n\nBufferReader._configure = function () {\n    /* istanbul ignore else */\n    if (util.Buffer)\n        BufferReader.prototype._slice = util.Buffer.prototype.slice;\n};\n\n\n/**\n * @override\n */\nBufferReader.prototype.string = function read_string_buffer() {\n    var len = this.uint32(); // modifies pos\n    return this.buf.utf8Slice\n        ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len))\n        : this.buf.toString(\"utf-8\", this.pos, this.pos = Math.min(this.pos + len, this.len));\n};\n\n/**\n * Reads a sequence of bytes preceeded by its length as a varint.\n * @name BufferReader#bytes\n * @function\n * @returns {Buffer} Value read\n */\n\nBufferReader._configure();\n", "\"use strict\";\nmodule.exports = Service;\n\nvar util = require(\"../util/minimal\");\n\n// Extends EventEmitter\n(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;\n\n/**\n * A service method callback as used by {@link rpc.ServiceMethod|ServiceMethod}.\n *\n * Differs from {@link RPCImplCallback} in that it is an actual callback of a service method which may not return `response = null`.\n * @typedef rpc.ServiceMethodCallback\n * @template TRes extends Message<TRes>\n * @type {function}\n * @param {Error|null} error Error, if any\n * @param {TRes} [response] Response message\n * @returns {undefined}\n */\n\n/**\n * A service method part of a {@link rpc.Service} as created by {@link Service.create}.\n * @typedef rpc.ServiceMethod\n * @template TReq extends Message<TReq>\n * @template TRes extends Message<TRes>\n * @type {function}\n * @param {TReq|Properties<TReq>} request Request message or plain object\n * @param {rpc.ServiceMethodCallback<TRes>} [callback] Node-style callback called with the error, if any, and the response message\n * @returns {Promise<Message<TRes>>} Promise if `callback` has been omitted, otherwise `undefined`\n */\n\n/**\n * Constructs a new RPC service instance.\n * @classdesc An RPC service as returned by {@link Service#create}.\n * @exports rpc.Service\n * @extends util.EventEmitter\n * @constructor\n * @param {RPCImpl} rpcImpl RPC implementation\n * @param {boolean} [requestDelimited=false] Whether requests are length-delimited\n * @param {boolean} [responseDelimited=false] Whether responses are length-delimited\n */\nfunction Service(rpcImpl, requestDelimited, responseDelimited) {\n\n    if (typeof rpcImpl !== \"function\")\n        throw TypeError(\"rpcImpl must be a function\");\n\n    util.EventEmitter.call(this);\n\n    /**\n     * RPC implementation. Becomes `null` once the service is ended.\n     * @type {RPCImpl|null}\n     */\n    this.rpcImpl = rpcImpl;\n\n    /**\n     * Whether requests are length-delimited.\n     * @type {boolean}\n     */\n    this.requestDelimited = Boolean(requestDelimited);\n\n    /**\n     * Whether responses are length-delimited.\n     * @type {boolean}\n     */\n    this.responseDelimited = Boolean(responseDelimited);\n}\n\n/**\n * Calls a service method through {@link rpc.Service#rpcImpl|rpcImpl}.\n * @param {Method|rpc.ServiceMethod<TReq,TRes>} method Reflected or static method\n * @param {Constructor<TReq>} requestCtor Request constructor\n * @param {Constructor<TRes>} responseCtor Response constructor\n * @param {TReq|Properties<TReq>} request Request message or plain object\n * @param {rpc.ServiceMethodCallback<TRes>} callback Service callback\n * @returns {undefined}\n * @template TReq extends Message<TReq>\n * @template TRes extends Message<TRes>\n */\nService.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) {\n\n    if (!request)\n        throw TypeError(\"request must be specified\");\n\n    var self = this;\n    if (!callback)\n        return util.asPromise(rpcCall, self, method, requestCtor, responseCtor, request);\n\n    if (!self.rpcImpl) {\n        setTimeout(function() { callback(Error(\"already ended\")); }, 0);\n        return undefined;\n    }\n\n    try {\n        return self.rpcImpl(\n            method,\n            requestCtor[self.requestDelimited ? \"encodeDelimited\" : \"encode\"](request).finish(),\n            function rpcCallback(err, response) {\n\n                if (err) {\n                    self.emit(\"error\", err, method);\n                    return callback(err);\n                }\n\n                if (response === null) {\n                    self.end(/* endedByRPC */ true);\n                    return undefined;\n                }\n\n                if (!(response instanceof responseCtor)) {\n                    try {\n                        response = responseCtor[self.responseDelimited ? \"decodeDelimited\" : \"decode\"](response);\n                    } catch (err) {\n                        self.emit(\"error\", err, method);\n                        return callback(err);\n                    }\n                }\n\n                self.emit(\"data\", response, method);\n                return callback(null, response);\n            }\n        );\n    } catch (err) {\n        self.emit(\"error\", err, method);\n        setTimeout(function() { callback(err); }, 0);\n        return undefined;\n    }\n};\n\n/**\n * Ends this service and emits the `end` event.\n * @param {boolean} [endedByRPC=false] Whether the service has been ended by the RPC implementation.\n * @returns {rpc.Service} `this`\n */\nService.prototype.end = function end(endedByRPC) {\n    if (this.rpcImpl) {\n        if (!endedByRPC) // signal end to rpcImpl\n            this.rpcImpl(null, null, null);\n        this.rpcImpl = null;\n        this.emit(\"end\").off();\n    }\n    return this;\n};\n", "\"use strict\";\n\n/**\n * Streaming RPC helpers.\n * @namespace\n */\nvar rpc = exports;\n\n/**\n * RPC implementation passed to {@link Service#create} performing a service request on network level, i.e. by utilizing http requests or websockets.\n * @typedef RPCImpl\n * @type {function}\n * @param {Method|rpc.ServiceMethod<Message<{}>,Message<{}>>} method Reflected or static method being called\n * @param {Uint8Array} requestData Request data\n * @param {RPCImplCallback} callback Callback function\n * @returns {undefined}\n * @example\n * function rpcImpl(method, requestData, callback) {\n *     if (protobuf.util.lcFirst(method.name) !== \"myMethod\") // compatible with static code\n *         throw Error(\"no such method\");\n *     asynchronouslyObtainAResponse(requestData, function(err, responseData) {\n *         callback(err, responseData);\n *     });\n * }\n */\n\n/**\n * Node-style callback as used by {@link RPCImpl}.\n * @typedef RPCImplCallback\n * @type {function}\n * @param {Error|null} error Error, if any, otherwise `null`\n * @param {Uint8Array|null} [response] Response data or `null` to signal end of stream, if there hasn't been an error\n * @returns {undefined}\n */\n\nrpc.Service = require(\"./rpc/service\");\n", "\"use strict\";\nmodule.exports = {};\n\n/**\n * Named roots.\n * This is where pbjs stores generated structures (the option `-r, --root` specifies a name).\n * Can also be used manually to make roots available across modules.\n * @name roots\n * @type {Object.<string,Root>}\n * @example\n * // pbjs -r myroot -o compiled.js ...\n *\n * // in another module:\n * require(\"./compiled.js\");\n *\n * // in any subsequent module:\n * var root = protobuf.roots[\"myroot\"];\n */\n", "\"use strict\";\nvar protobuf = exports;\n\n/**\n * Build type, one of `\"full\"`, `\"light\"` or `\"minimal\"`.\n * @name build\n * @type {string}\n * @const\n */\nprotobuf.build = \"minimal\";\n\n// Serialization\nprotobuf.Writer       = require(\"./writer\");\nprotobuf.BufferWriter = require(\"./writer_buffer\");\nprotobuf.Reader       = require(\"./reader\");\nprotobuf.BufferReader = require(\"./reader_buffer\");\n\n// Utility\nprotobuf.util         = require(\"./util/minimal\");\nprotobuf.rpc          = require(\"./rpc\");\nprotobuf.roots        = require(\"./roots\");\nprotobuf.configure    = configure;\n\n/* istanbul ignore next */\n/**\n * Reconfigures the library according to the environment.\n * @returns {undefined}\n */\nfunction configure() {\n    protobuf.util._configure();\n    protobuf.Writer._configure(protobuf.BufferWriter);\n    protobuf.Reader._configure(protobuf.BufferReader);\n}\n\n// Set up buffer utility according to the environment\nconfigure();\n", "// minimal library entry point.\n\n\"use strict\";\nmodule.exports = require(\"./src/index-minimal\");\n", "/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n  return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n", "/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n  return value === undefined;\n}\n\nmodule.exports = isUndefined;\n", "var Stack = require('./_Stack'),\n    baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n  var index = matchData.length,\n      length = index,\n      noCustomizer = !customizer;\n\n  if (object == null) {\n    return !length;\n  }\n  object = Object(object);\n  while (index--) {\n    var data = matchData[index];\n    if ((noCustomizer && data[2])\n          ? data[1] !== object[data[0]]\n          : !(data[0] in object)\n        ) {\n      return false;\n    }\n  }\n  while (++index < length) {\n    data = matchData[index];\n    var key = data[0],\n        objValue = object[key],\n        srcValue = data[1];\n\n    if (noCustomizer && data[2]) {\n      if (objValue === undefined && !(key in object)) {\n        return false;\n      }\n    } else {\n      var stack = new Stack;\n      if (customizer) {\n        var result = customizer(objValue, srcValue, key, object, source, stack);\n      }\n      if (!(result === undefined\n            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n            : result\n          )) {\n        return false;\n      }\n    }\n  }\n  return true;\n}\n\nmodule.exports = baseIsMatch;\n", "var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n *  equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n  return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n", "var isStrictComparable = require('./_isStrictComparable'),\n    keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n  var result = keys(object),\n      length = result.length;\n\n  while (length--) {\n    var key = result[length],\n        value = object[key];\n\n    result[length] = [key, value, isStrictComparable(value)];\n  }\n  return result;\n}\n\nmodule.exports = getMatchData;\n", "/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n  return function(object) {\n    if (object == null) {\n      return false;\n    }\n    return object[key] === srcValue &&\n      (srcValue !== undefined || (key in Object(object)));\n  };\n}\n\nmodule.exports = matchesStrictComparable;\n", "var baseIsMatch = require('./_baseIsMatch'),\n    getMatchData = require('./_getMatchData'),\n    matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n  var matchData = getMatchData(source);\n  if (matchData.length == 1 && matchData[0][2]) {\n    return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n  }\n  return function(object) {\n    return object === source || baseIsMatch(object, source, matchData);\n  };\n}\n\nmodule.exports = baseMatches;\n", "var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n  var result = object == null ? undefined : baseGet(object, path);\n  return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n", "/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n  return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n", "var castPath = require('./_castPath'),\n    isArguments = require('./isArguments'),\n    isArray = require('./isArray'),\n    isIndex = require('./_isIndex'),\n    isLength = require('./isLength'),\n    toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n  path = castPath(path, object);\n\n  var index = -1,\n      length = path.length,\n      result = false;\n\n  while (++index < length) {\n    var key = toKey(path[index]);\n    if (!(result = object != null && hasFunc(object, key))) {\n      break;\n    }\n    object = object[key];\n  }\n  if (result || ++index != length) {\n    return result;\n  }\n  length = object == null ? 0 : object.length;\n  return !!length && isLength(length) && isIndex(key, length) &&\n    (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n", "var baseHasIn = require('./_baseHasIn'),\n    hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n  return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n", "var baseIsEqual = require('./_baseIsEqual'),\n    get = require('./get'),\n    hasIn = require('./hasIn'),\n    isKey = require('./_isKey'),\n    isStrictComparable = require('./_isStrictComparable'),\n    matchesStrictComparable = require('./_matchesStrictComparable'),\n    toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n  if (isKey(path) && isStrictComparable(srcValue)) {\n    return matchesStrictComparable(toKey(path), srcValue);\n  }\n  return function(object) {\n    var objValue = get(object, path);\n    return (objValue === undefined && objValue === srcValue)\n      ? hasIn(object, path)\n      : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n  };\n}\n\nmodule.exports = baseMatchesProperty;\n", "/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n  return function(object) {\n    return object == null ? undefined : object[key];\n  };\n}\n\nmodule.exports = baseProperty;\n", "var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n  return function(object) {\n    return baseGet(object, path);\n  };\n}\n\nmodule.exports = basePropertyDeep;\n", "var baseProperty = require('./_baseProperty'),\n    basePropertyDeep = require('./_basePropertyDeep'),\n    isKey = require('./_isKey'),\n    toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n *   { 'a': { 'b': 2 } },\n *   { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n", "var baseMatches = require('./_baseMatches'),\n    baseMatchesProperty = require('./_baseMatchesProperty'),\n    identity = require('./identity'),\n    isArray = require('./isArray'),\n    property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n  if (typeof value == 'function') {\n    return value;\n  }\n  if (value == null) {\n    return identity;\n  }\n  if (typeof value == 'object') {\n    return isArray(value)\n      ? baseMatchesProperty(value[0], value[1])\n      : baseMatches(value);\n  }\n  return property(value);\n}\n\nmodule.exports = baseIteratee;\n", "var assignValue = require('./_assignValue'),\n    castPath = require('./_castPath'),\n    isIndex = require('./_isIndex'),\n    isObject = require('./isObject'),\n    toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n  if (!isObject(object)) {\n    return object;\n  }\n  path = castPath(path, object);\n\n  var index = -1,\n      length = path.length,\n      lastIndex = length - 1,\n      nested = object;\n\n  while (nested != null && ++index < length) {\n    var key = toKey(path[index]),\n        newValue = value;\n\n    if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n      return object;\n    }\n\n    if (index != lastIndex) {\n      var objValue = nested[key];\n      newValue = customizer ? customizer(objValue, key, nested) : undefined;\n      if (newValue === undefined) {\n        newValue = isObject(objValue)\n          ? objValue\n          : (isIndex(path[index + 1]) ? [] : {});\n      }\n    }\n    assignValue(nested, key, newValue);\n    nested = nested[key];\n  }\n  return object;\n}\n\nmodule.exports = baseSet;\n", "var baseGet = require('./_baseGet'),\n    baseSet = require('./_baseSet'),\n    castPath = require('./_castPath');\n\n/**\n * The base implementation of  `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n  var index = -1,\n      length = paths.length,\n      result = {};\n\n  while (++index < length) {\n    var path = paths[index],\n        value = baseGet(object, path);\n\n    if (predicate(value, path)) {\n      baseSet(result, castPath(path, object), value);\n    }\n  }\n  return result;\n}\n\nmodule.exports = basePickBy;\n", "var arrayMap = require('./_arrayMap'),\n    baseIteratee = require('./_baseIteratee'),\n    basePickBy = require('./_basePickBy'),\n    getAllKeysIn = require('./_getAllKeysIn');\n\n/**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\nfunction pickBy(object, predicate) {\n  if (object == null) {\n    return {};\n  }\n  var props = arrayMap(getAllKeysIn(object), function(prop) {\n    return [prop];\n  });\n  predicate = baseIteratee(predicate);\n  return basePickBy(object, props, function(value, path) {\n    return predicate(value, path[0]);\n  });\n}\n\nmodule.exports = pickBy;\n", "/*!\n * escape-html\n * Copyright(c) 2012-2013 TJ Holowaychuk\n * Copyright(c) 2015 Andreas Lubbe\n * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = escapeHtml;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param  {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n  var str = '' + string;\n  var match = matchHtmlRegExp.exec(str);\n\n  if (!match) {\n    return str;\n  }\n\n  var escape;\n  var html = '';\n  var index = 0;\n  var lastIndex = 0;\n\n  for (index = match.index; index < str.length; index++) {\n    switch (str.charCodeAt(index)) {\n      case 34: // \"\n        escape = '&quot;';\n        break;\n      case 38: // &\n        escape = '&amp;';\n        break;\n      case 39: // '\n        escape = '&#39;';\n        break;\n      case 60: // <\n        escape = '&lt;';\n        break;\n      case 62: // >\n        escape = '&gt;';\n        break;\n      default:\n        continue;\n    }\n\n    if (lastIndex !== index) {\n      html += str.substring(lastIndex, index);\n    }\n\n    lastIndex = index + 1;\n    html += escape;\n  }\n\n  return lastIndex !== index\n    ? html + str.substring(lastIndex, index)\n    : html;\n}\n", "/**\n * Map of all Contentful block types. Blocks contain inline or block nodes.\n */\nexport enum BLOCKS {\n  DOCUMENT = 'document',\n  PARAGRAPH = 'paragraph',\n\n  HEADING_1 = 'heading-1',\n  HEADING_2 = 'heading-2',\n  HEADING_3 = 'heading-3',\n  HEADING_4 = 'heading-4',\n  HEADING_5 = 'heading-5',\n  HEADING_6 = 'heading-6',\n\n  OL_LIST = 'ordered-list',\n  UL_LIST = 'unordered-list',\n  LIST_ITEM = 'list-item',\n\n  HR = 'hr',\n  QUOTE = 'blockquote',\n\n  EMBEDDED_ENTRY = 'embedded-entry-block',\n  EMBEDDED_ASSET = 'embedded-asset-block',\n  EMBEDDED_RESOURCE = 'embedded-resource-block',\n\n  TABLE = 'table',\n  TABLE_ROW = 'table-row',\n  TABLE_CELL = 'table-cell',\n  TABLE_HEADER_CELL = 'table-header-cell',\n}\n", "/**\n * Map of all Contentful inline types. Inline contain inline or text nodes.\n */\nexport enum INLINES {\n  HYPERLINK = 'hyperlink',\n  ENTRY_HYPERLINK = 'entry-hyperlink',\n  ASSET_HYPERLINK = 'asset-hyperlink',\n  RESOURCE_HYPERLINK = 'resource-hyperlink',\n  EMBEDDED_ENTRY = 'embedded-entry-inline',\n  EMBEDDED_RESOURCE = 'embedded-resource-inline',\n}\n", "/**\n * Map of all Contentful marks.\n */\nexport enum MARKS {\n  BOLD = 'bold',\n  ITALIC = 'italic',\n  UNDERLINE = 'underline',\n  CODE = 'code',\n  SUPERSCRIPT = 'superscript',\n  SUBSCRIPT = 'subscript',\n}\n", "import { BLOCKS } from './blocks';\nimport { INLINES } from './inlines';\nimport { MARKS } from './marks';\n\nexport type TopLevelBlockEnum =\n  | BLOCKS.PARAGRAPH\n  | BLOCKS.HEADING_1\n  | BLOCKS.HEADING_2\n  | BLOCKS.HEADING_3\n  | BLOCKS.HEADING_4\n  | BLOCKS.HEADING_5\n  | BLOCKS.HEADING_6\n  | BLOCKS.OL_LIST\n  | BLOCKS.UL_LIST\n  | BLOCKS.HR\n  | BLOCKS.QUOTE\n  | BLOCKS.EMBEDDED_ENTRY\n  | BLOCKS.EMBEDDED_ASSET\n  | BLOCKS.EMBEDDED_RESOURCE\n  | BLOCKS.TABLE;\n\n/**\n * Array of all top level block types.\n * Only these block types can be the direct children of the document.\n */\nexport const TOP_LEVEL_BLOCKS: TopLevelBlockEnum[] = [\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n  BLOCKS.TABLE,\n];\n\nexport type ListItemBlockEnum =\n  | BLOCKS.PARAGRAPH\n  | BLOCKS.HEADING_1\n  | BLOCKS.HEADING_2\n  | BLOCKS.HEADING_3\n  | BLOCKS.HEADING_4\n  | BLOCKS.HEADING_5\n  | BLOCKS.HEADING_6\n  | BLOCKS.OL_LIST\n  | BLOCKS.UL_LIST\n  | BLOCKS.HR\n  | BLOCKS.QUOTE\n  | BLOCKS.EMBEDDED_ENTRY\n  | BLOCKS.EMBEDDED_ASSET\n  | BLOCKS.EMBEDDED_RESOURCE;\n\n/**\n * Array of all allowed block types inside list items\n */\nexport const LIST_ITEM_BLOCKS: TopLevelBlockEnum[] = [\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n];\n\nexport const TABLE_BLOCKS = [\n  BLOCKS.TABLE,\n  BLOCKS.TABLE_ROW,\n  BLOCKS.TABLE_CELL,\n  BLOCKS.TABLE_HEADER_CELL,\n];\n\n/**\n * Array of all void block types\n */\nexport const VOID_BLOCKS = [\n  BLOCKS.HR,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n];\n\n/**\n * Dictionary of all container block types, and the set block types they accept as children.\n *\n * Note: This does not include `[BLOCKS.DOCUMENT]: TOP_LEVEL_BLOCKS`\n */\nexport const CONTAINERS = {\n  [BLOCKS.OL_LIST]: [BLOCKS.LIST_ITEM],\n  [BLOCKS.UL_LIST]: [BLOCKS.LIST_ITEM],\n  [BLOCKS.LIST_ITEM]: LIST_ITEM_BLOCKS,\n  [BLOCKS.QUOTE]: [BLOCKS.PARAGRAPH],\n  [BLOCKS.TABLE]: [BLOCKS.TABLE_ROW],\n  [BLOCKS.TABLE_ROW]: [BLOCKS.TABLE_CELL, BLOCKS.TABLE_HEADER_CELL],\n  [BLOCKS.TABLE_CELL]: [BLOCKS.PARAGRAPH],\n  [BLOCKS.TABLE_HEADER_CELL]: [BLOCKS.PARAGRAPH],\n};\n\n/**\n * Array of all heading levels\n */\nexport const HEADINGS = [\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n];\n\n/**\n * Array of all block types that may contain text and inline nodes.\n */\nexport const TEXT_CONTAINERS = [BLOCKS.PARAGRAPH, ...HEADINGS];\n\n/**\n * Node types before `tables` release.\n */\nexport const V1_NODE_TYPES = [\n  BLOCKS.DOCUMENT,\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.LIST_ITEM,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  INLINES.HYPERLINK,\n  INLINES.ENTRY_HYPERLINK,\n  INLINES.ASSET_HYPERLINK,\n  INLINES.EMBEDDED_ENTRY,\n  'text',\n];\n\n/**\n * Marks before `superscript` & `subscript` release.\n */\nexport const V1_MARKS = [MARKS.BOLD, MARKS.CODE, MARKS.ITALIC, MARKS.UNDERLINE];\n", "import { Document } from './types';\nimport { BLOCKS } from './blocks';\n\n/**\n * A rich text document considered to be empty.\n * Any other document structure than this is not considered empty.\n */\nexport const EMPTY_DOCUMENT: Document = {\n  nodeType: BLOCKS.DOCUMENT,\n  data: {},\n  content: [\n    {\n      nodeType: BLOCKS.PARAGRAPH,\n      data: {},\n      content: [\n        {\n          nodeType: 'text',\n          value: '',\n          marks: [],\n          data: {},\n        },\n      ],\n    },\n  ],\n};\n", "import { Node, Block, Inline, Text } from './types';\nimport { BLOCKS } from './blocks';\nimport { INLINES } from './inlines';\n\n/**\n * Tiny replacement for Object.values(object).includes(key) to\n * avoid including CoreJS polyfills\n */\nfunction hasValue(obj: Record<string, unknown>, value: unknown) {\n  for (const key of Object.keys(obj)) {\n    if (value === obj[key]) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\n/**\n * Checks if the node is an instance of Inline.\n */\nexport function isInline(node: Node): node is Inline {\n  return hasValue(INLINES, node.nodeType);\n}\n\n/**\n * Checks if the node is an instance of Block.\n */\nexport function isBlock(node: Node): node is Block {\n  return hasValue(BLOCKS, node.nodeType);\n}\n\n/**\n * Checks if the node is an instance of Text.\n */\nexport function isText(node: Node): node is Text {\n  return node.nodeType === 'text';\n}\n", "export { BLOCKS } from './blocks';\nexport { INLINES } from './inlines';\nexport { MARKS } from './marks';\n\nexport * from './schemaConstraints';\n\nexport * from './types';\nexport * from './nodeTypes';\n\nexport { EMPTY_DOCUMENT } from './emptyDocument';\n\nimport * as helpers from './helpers';\nexport { helpers };\n", "import escape from 'escape-html';\nimport {\n  Document,\n  Mark,\n  Text,\n  BLOCKS,\n  MARKS,\n  INLINES,\n  Block,\n  Inline,\n  helpers,\n} from '@contentful/rich-text-types';\n\nconst attributeValue = (value: string) => `\"${value.replace(/\"/g, '&quot;')}\"`;\n\nconst defaultNodeRenderers: RenderNode = {\n  [BLOCKS.PARAGRAPH]: (node, next) => `<p>${next(node.content)}</p>`,\n  [BLOCKS.HEADING_1]: (node, next) => `<h1>${next(node.content)}</h1>`,\n  [BLOCKS.HEADING_2]: (node, next) => `<h2>${next(node.content)}</h2>`,\n  [BLOCKS.HEADING_3]: (node, next) => `<h3>${next(node.content)}</h3>`,\n  [BLOCKS.HEADING_4]: (node, next) => `<h4>${next(node.content)}</h4>`,\n  [BLOCKS.HEADING_5]: (node, next) => `<h5>${next(node.content)}</h5>`,\n  [BLOCKS.HEADING_6]: (node, next) => `<h6>${next(node.content)}</h6>`,\n  [BLOCKS.EMBEDDED_ENTRY]: (node, next) => `<div>${next(node.content)}</div>`,\n  [BLOCKS.EMBEDDED_RESOURCE]: (node, next) => `<div>${next(node.content)}</div>`,\n  [BLOCKS.UL_LIST]: (node, next) => `<ul>${next(node.content)}</ul>`,\n  [BLOCKS.OL_LIST]: (node, next) => `<ol>${next(node.content)}</ol>`,\n  [BLOCKS.LIST_ITEM]: (node, next) => `<li>${next(node.content)}</li>`,\n  [BLOCKS.QUOTE]: (node, next) => `<blockquote>${next(node.content)}</blockquote>`,\n  [BLOCKS.HR]: () => '<hr/>',\n  [BLOCKS.TABLE]: (node, next) => `<table>${next(node.content)}</table>`,\n  [BLOCKS.TABLE_ROW]: (node, next) => `<tr>${next(node.content)}</tr>`,\n  [BLOCKS.TABLE_HEADER_CELL]: (node, next) => `<th>${next(node.content)}</th>`,\n  [BLOCKS.TABLE_CELL]: (node, next) => `<td>${next(node.content)}</td>`,\n  [INLINES.ASSET_HYPERLINK]: (node) => defaultInline(INLINES.ASSET_HYPERLINK, node as Inline),\n  [INLINES.ENTRY_HYPERLINK]: (node) => defaultInline(INLINES.ENTRY_HYPERLINK, node as Inline),\n  [INLINES.RESOURCE_HYPERLINK]: (node) =>\n    defaultInlineResource(INLINES.RESOURCE_HYPERLINK, node as Inline),\n  [INLINES.EMBEDDED_ENTRY]: (node) => defaultInline(INLINES.EMBEDDED_ENTRY, node as Inline),\n  [INLINES.EMBEDDED_RESOURCE]: (node) =>\n    defaultInlineResource(INLINES.EMBEDDED_RESOURCE, node as Inline),\n  [INLINES.HYPERLINK]: (node, next) => {\n    const href = typeof node.data.uri === 'string' ? node.data.uri : '';\n    return `<a href=${attributeValue(href)}>${next(node.content)}</a>`;\n  },\n};\n\nconst defaultMarkRenderers: RenderMark = {\n  [MARKS.BOLD]: (text) => `<b>${text}</b>`,\n  [MARKS.ITALIC]: (text) => `<i>${text}</i>`,\n  [MARKS.UNDERLINE]: (text) => `<u>${text}</u>`,\n  [MARKS.CODE]: (text) => `<code>${text}</code>`,\n  [MARKS.SUPERSCRIPT]: (text) => `<sup>${text}</sup>`,\n  [MARKS.SUBSCRIPT]: (text) => `<sub>${text}</sub>`,\n};\n\nconst defaultInline = (type: string, node: Inline) =>\n  `<span>type: ${escape(type)} id: ${escape(node.data.target.sys.id)}</span>`;\n\nconst defaultInlineResource = (type: string, node: Inline) =>\n  `<span>type: ${escape(type)} urn: ${escape(node.data.target.sys.urn)}</span>`;\n\nexport type CommonNode = Text | Block | Inline;\n\nexport interface Next {\n  (nodes: CommonNode[]): string;\n}\n\nexport interface NodeRenderer {\n  (node: Block | Inline, next: Next): string;\n}\n\nexport interface RenderNode {\n  [k: string]: NodeRenderer;\n}\n\nexport interface RenderMark {\n  [k: string]: (text: string) => string;\n}\n\nexport interface Options {\n  /**\n   * Node renderers\n   */\n  renderNode?: RenderNode;\n  /**\n   * Mark renderers\n   */\n  renderMark?: RenderMark;\n  /**\n   * Keep line breaks and multiple spaces\n   */\n  preserveWhitespace?: boolean;\n}\n\n/**\n * Serialize a Contentful Rich Text `document` to an html string.\n */\nexport function documentToHtmlString(\n  richTextDocument: Document,\n  options: Partial<Options> = {},\n): string {\n  if (!richTextDocument || !richTextDocument.content) {\n    return '';\n  }\n\n  return nodeListToHtmlString(richTextDocument.content, {\n    renderNode: {\n      ...defaultNodeRenderers,\n      ...options.renderNode,\n    },\n    renderMark: {\n      ...defaultMarkRenderers,\n      ...options.renderMark,\n    },\n    preserveWhitespace: options.preserveWhitespace,\n  });\n}\n\nfunction nodeListToHtmlString(\n  nodes: CommonNode[],\n  { renderNode, renderMark, preserveWhitespace }: Options,\n): string {\n  return nodes\n    .map<string>((node) => nodeToHtmlString(node, { renderNode, renderMark, preserveWhitespace }))\n    .join('');\n}\n\nfunction nodeToHtmlString(\n  node: CommonNode,\n  { renderNode, renderMark, preserveWhitespace }: Options,\n): string {\n  if (helpers.isText(node)) {\n    let nodeValue = escape(node.value);\n\n    // If preserveWhitespace is true, handle line breaks and spaces.\n    if (preserveWhitespace) {\n      nodeValue = nodeValue\n        .replace(/\\n/g, '<br/>')\n        .replace(/ {2,}/g, (match) => '&nbsp;'.repeat(match.length));\n    }\n\n    if (node.marks.length > 0) {\n      return node.marks.reduce((value: string, mark: Mark) => {\n        if (!renderMark[mark.type]) {\n          return value;\n        }\n        return renderMark[mark.type](value);\n      }, nodeValue);\n    }\n\n    return nodeValue;\n  } else {\n    const nextNode: Next = (nodes) =>\n      nodeListToHtmlString(nodes, { renderMark, renderNode, preserveWhitespace });\n    if (!node.nodeType || !renderNode[node.nodeType]) {\n      // TODO: Figure what to return when passed an unrecognized node.\n      return '';\n    }\n    return renderNode[node.nodeType](node, nextNode);\n  }\n}\n", "/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n *  the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  if (initAccum && length) {\n    accumulator = array[++index];\n  }\n  while (++index < length) {\n    accumulator = iteratee(accumulator, array[index], index, array);\n  }\n  return accumulator;\n}\n\nmodule.exports = arrayReduce;\n", "/**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyOf(object) {\n  return function(key) {\n    return object == null ? undefined : object[key];\n  };\n}\n\nmodule.exports = basePropertyOf;\n", "var basePropertyOf = require('./_basePropertyOf');\n\n/** Used to map Latin Unicode letters to basic Latin letters. */\nvar deburredLetters = {\n  // Latin-1 Supplement block.\n  '\\xc0': 'A',  '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n  '\\xe0': 'a',  '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n  '\\xc7': 'C',  '\\xe7': 'c',\n  '\\xd0': 'D',  '\\xf0': 'd',\n  '\\xc8': 'E',  '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n  '\\xe8': 'e',  '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n  '\\xcc': 'I',  '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n  '\\xec': 'i',  '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n  '\\xd1': 'N',  '\\xf1': 'n',\n  '\\xd2': 'O',  '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n  '\\xf2': 'o',  '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n  '\\xd9': 'U',  '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n  '\\xf9': 'u',  '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n  '\\xdd': 'Y',  '\\xfd': 'y', '\\xff': 'y',\n  '\\xc6': 'Ae', '\\xe6': 'ae',\n  '\\xde': 'Th', '\\xfe': 'th',\n  '\\xdf': 'ss',\n  // Latin Extended-A block.\n  '\\u0100': 'A',  '\\u0102': 'A', '\\u0104': 'A',\n  '\\u0101': 'a',  '\\u0103': 'a', '\\u0105': 'a',\n  '\\u0106': 'C',  '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n  '\\u0107': 'c',  '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n  '\\u010e': 'D',  '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n  '\\u0112': 'E',  '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n  '\\u0113': 'e',  '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n  '\\u011c': 'G',  '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n  '\\u011d': 'g',  '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n  '\\u0124': 'H',  '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n  '\\u0128': 'I',  '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n  '\\u0129': 'i',  '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n  '\\u0134': 'J',  '\\u0135': 'j',\n  '\\u0136': 'K',  '\\u0137': 'k', '\\u0138': 'k',\n  '\\u0139': 'L',  '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n  '\\u013a': 'l',  '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n  '\\u0143': 'N',  '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n  '\\u0144': 'n',  '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n  '\\u014c': 'O',  '\\u014e': 'O', '\\u0150': 'O',\n  '\\u014d': 'o',  '\\u014f': 'o', '\\u0151': 'o',\n  '\\u0154': 'R',  '\\u0156': 'R', '\\u0158': 'R',\n  '\\u0155': 'r',  '\\u0157': 'r', '\\u0159': 'r',\n  '\\u015a': 'S',  '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n  '\\u015b': 's',  '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n  '\\u0162': 'T',  '\\u0164': 'T', '\\u0166': 'T',\n  '\\u0163': 't',  '\\u0165': 't', '\\u0167': 't',\n  '\\u0168': 'U',  '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n  '\\u0169': 'u',  '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n  '\\u0174': 'W',  '\\u0175': 'w',\n  '\\u0176': 'Y',  '\\u0177': 'y', '\\u0178': 'Y',\n  '\\u0179': 'Z',  '\\u017b': 'Z', '\\u017d': 'Z',\n  '\\u017a': 'z',  '\\u017c': 'z', '\\u017e': 'z',\n  '\\u0132': 'IJ', '\\u0133': 'ij',\n  '\\u0152': 'Oe', '\\u0153': 'oe',\n  '\\u0149': \"'n\", '\\u017f': 's'\n};\n\n/**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\nvar deburrLetter = basePropertyOf(deburredLetters);\n\nmodule.exports = deburrLetter;\n", "var deburrLetter = require('./_deburrLetter'),\n    toString = require('./toString');\n\n/** Used to match Latin Unicode letters (excluding mathematical operators). */\nvar reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n/** Used to compose unicode character classes. */\nvar rsComboMarksRange = '\\\\u0300-\\\\u036f',\n    reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n    rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;\n\n/** Used to compose unicode capture groups. */\nvar rsCombo = '[' + rsComboRange + ']';\n\n/**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\nvar reComboMark = RegExp(rsCombo, 'g');\n\n/**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('d\u00E9j\u00E0 vu');\n * // => 'deja vu'\n */\nfunction deburr(string) {\n  string = toString(string);\n  return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n}\n\nmodule.exports = deburr;\n", "/** Used to match words composed of alphanumeric characters. */\nvar reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n/**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction asciiWords(string) {\n  return string.match(reAsciiWord) || [];\n}\n\nmodule.exports = asciiWords;\n", "/** Used to detect strings that need a more robust regexp to match words. */\nvar reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n/**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\nfunction hasUnicodeWord(string) {\n  return reHasUnicodeWord.test(string);\n}\n\nmodule.exports = hasUnicodeWord;\n", "/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n    rsComboMarksRange = '\\\\u0300-\\\\u036f',\n    reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n    rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n    rsDingbatRange = '\\\\u2700-\\\\u27bf',\n    rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n    rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n    rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n    rsPunctuationRange = '\\\\u2000-\\\\u206f',\n    rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n    rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n    rsVarRange = '\\\\ufe0e\\\\ufe0f',\n    rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\",\n    rsBreak = '[' + rsBreakRange + ']',\n    rsCombo = '[' + rsComboRange + ']',\n    rsDigits = '\\\\d+',\n    rsDingbat = '[' + rsDingbatRange + ']',\n    rsLower = '[' + rsLowerRange + ']',\n    rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n    rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n    rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n    rsNonAstral = '[^' + rsAstralRange + ']',\n    rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n    rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n    rsUpper = '[' + rsUpperRange + ']',\n    rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n    rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n    rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n    rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n    reOptMod = rsModifier + '?',\n    rsOptVar = '[' + rsVarRange + ']?',\n    rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n    rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n    rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n    rsSeq = rsOptVar + reOptMod + rsOptJoin,\n    rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;\n\n/** Used to match complex or compound words. */\nvar reUnicodeWord = RegExp([\n  rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n  rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n  rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n  rsUpper + '+' + rsOptContrUpper,\n  rsOrdUpper,\n  rsOrdLower,\n  rsDigits,\n  rsEmoji\n].join('|'), 'g');\n\n/**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction unicodeWords(string) {\n  return string.match(reUnicodeWord) || [];\n}\n\nmodule.exports = unicodeWords;\n", "var asciiWords = require('./_asciiWords'),\n    hasUnicodeWord = require('./_hasUnicodeWord'),\n    toString = require('./toString'),\n    unicodeWords = require('./_unicodeWords');\n\n/**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\nfunction words(string, pattern, guard) {\n  string = toString(string);\n  pattern = guard ? undefined : pattern;\n\n  if (pattern === undefined) {\n    return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n  }\n  return string.match(pattern) || [];\n}\n\nmodule.exports = words;\n", "var arrayReduce = require('./_arrayReduce'),\n    deburr = require('./deburr'),\n    words = require('./words');\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\";\n\n/** Used to match apostrophes. */\nvar reApos = RegExp(rsApos, 'g');\n\n/**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\nfunction createCompounder(callback) {\n  return function(string) {\n    return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n  };\n}\n\nmodule.exports = createCompounder;\n", "var createCompounder = require('./_createCompounder');\n\n/**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\nvar snakeCase = createCompounder(function(result, word, index) {\n  return result + (index ? '_' : '') + word.toLowerCase();\n});\n\nmodule.exports = snakeCase;\n", "/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n  // No operation performed.\n}\n\nmodule.exports = noop;\n", "function styleInject(css, ref) {\n  if ( ref === void 0 ) ref = {};\n  var insertAt = ref.insertAt;\n\n  if (!css || typeof document === 'undefined') { return; }\n\n  var head = document.head || document.getElementsByTagName('head')[0];\n  var style = document.createElement('style');\n  style.type = 'text/css';\n\n  if (insertAt === 'top') {\n    if (head.firstChild) {\n      head.insertBefore(style, head.firstChild);\n    } else {\n      head.appendChild(style);\n    }\n  } else {\n    head.appendChild(style);\n  }\n\n  if (style.styleSheet) {\n    style.styleSheet.cssText = css;\n  } else {\n    style.appendChild(document.createTextNode(css));\n  }\n}\n\nexport default styleInject;\n", "// @ts-nocheck\nimport React, { useRef, useEffect } from \"react\";\nimport \"./styles.css\";\nimport CloseCircle from '../assets/svg/closeCircle.svg';\nimport CloseCircleDark from '../assets/svg/closeCircleDark.svg';\nimport CloseLine from '../assets/svg/closeLine.svg';\nimport CloseSquare from '../assets/svg/closeSquare.svg';\nimport DownArrow from '../assets/svg/downArrow.svg';\nimport {IMultiselectProps} from \"./interface\";\n\nconst closeIconTypes = {\n  circle: CloseCircleDark,\n  circle2: CloseCircle,\n  close: CloseSquare,\n  cancel: CloseLine\n};\n\nfunction useOutsideAlerter(ref, clickEvent) {\n  useEffect(() => {\n      function handleClickOutside(event) {\n          if (ref.current && !ref.current.contains(event.target)) {\n            clickEvent();\n          }\n      }\n\n      document.addEventListener(\"mousedown\", handleClickOutside);\n      return () => {\n          document.removeEventListener(\"mousedown\", handleClickOutside);\n      };\n  }, [ref]);\n}\n\n/**\n* Component that alerts if you click outside of it\n*/\nfunction OutsideAlerter(props) {\n  const wrapperRef = useRef(null);\n  useOutsideAlerter(wrapperRef, props.outsideClick);\n  return <div ref={wrapperRef}>{props.children}</div>;\n}\n\nexport class Multiselect extends React.Component<IMultiselectProps, any> {\n  static defaultProps: IMultiselectProps;\n  constructor(props) {\n    super(props);\n    this.state = {\n      inputValue: \"\",\n      options: props.options,\n      filteredOptions: props.options,\n      unfilteredOptions: props.options,\n      selectedValues: Object.assign([], props.selectedValues),\n      preSelectedValues: Object.assign([], props.selectedValues),\n      toggleOptionsList: false,\n      highlightOption: props.avoidHighlightFirstOption ? -1 : 0,\n\t\t\tshowCheckbox: props.showCheckbox,\n      keepSearchTerm: props.keepSearchTerm,\n      groupedObject: [],\n      closeIconType: closeIconTypes[props.closeIcon] || closeIconTypes['circle']\n    };\n    // @ts-ignore\n    this.optionTimeout = null;\n    // @ts-ignore\n\t\tthis.searchWrapper = React.createRef();\n    // @ts-ignore\n\t\tthis.searchBox = React.createRef();\n    this.onChange = this.onChange.bind(this);\n    this.onKeyPress = this.onKeyPress.bind(this);\n    this.onFocus = this.onFocus.bind(this);\n    this.onBlur = this.onBlur.bind(this);\n    this.renderMultiselectContainer = this.renderMultiselectContainer.bind(this);\n    this.renderSelectedList = this.renderSelectedList.bind(this);\n    this.onRemoveSelectedItem = this.onRemoveSelectedItem.bind(this);\n    this.toggelOptionList = this.toggelOptionList.bind(this);\n    this.onArrowKeyNavigation = this.onArrowKeyNavigation.bind(this);\n    this.onSelectItem = this.onSelectItem.bind(this);\n    this.filterOptionsByInput = this.filterOptionsByInput.bind(this);\n    this.removeSelectedValuesFromOptions = this.removeSelectedValuesFromOptions.bind(this);\n    this.isSelectedValue = this.isSelectedValue.bind(this);\n    this.fadeOutSelection = this.fadeOutSelection.bind(this);\n    this.isDisablePreSelectedValues = this.isDisablePreSelectedValues.bind(this);\n    this.renderGroupByOptions = this.renderGroupByOptions.bind(this);\n    this.renderNormalOption = this.renderNormalOption.bind(this);\n    this.listenerCallback = this.listenerCallback.bind(this);\n    this.resetSelectedValues = this.resetSelectedValues.bind(this);\n    this.getSelectedItems = this.getSelectedItems.bind(this);\n    this.getSelectedItemsCount = this.getSelectedItemsCount.bind(this);\n    this.hideOnClickOutside = this.hideOnClickOutside.bind(this);\n    this.onCloseOptionList = this.onCloseOptionList.bind(this);\n    this.isVisible = this.isVisible.bind(this);\n  }\n\n  initialSetValue() {\n    const { showCheckbox, groupBy, singleSelect } = this.props;\n\t\tconst { options } = this.state;\n    if (!showCheckbox && !singleSelect) {\n      this.removeSelectedValuesFromOptions(false);\n\t\t}\n    // if (singleSelect) {\n    //   this.hideOnClickOutside();\n    // }\n\t\tif (groupBy) {\n\t\t\tthis.groupByOptions(options);\n\t\t}\n  }\n\n  resetSelectedValues() {\n    const { unfilteredOptions } = this.state;\n    return new Promise((resolve) => {\n      this.setState({\n        selectedValues: [],\n        preSelectedValues: [],\n        options: unfilteredOptions,\n        filteredOptions: unfilteredOptions\n      }, () => {\n        // @ts-ignore\n        resolve();\n        this.initialSetValue();\n      });\n    });\n  }\n\n  getSelectedItems() {\n    return this.state.selectedValues;\n  }\n\n  getSelectedItemsCount() {\n    return this.state.selectedValues.length;\n  }\n\n  componentDidMount() {\n\t\tthis.initialSetValue();\n    // @ts-ignore\n    this.searchWrapper.current.addEventListener(\"click\", this.listenerCallback);\n  }\n\n  componentDidUpdate(prevProps) {\n    const { options, selectedValues } = this.props;\n    const { options: prevOptions, selectedValues: prevSelectedvalues } = prevProps;\n    if (JSON.stringify(prevOptions) !== JSON.stringify(options)) {\n      this.setState({ options, filteredOptions: options, unfilteredOptions: options }, this.initialSetValue);\n    }\n    if (JSON.stringify(prevSelectedvalues) !== JSON.stringify(selectedValues)) {\n      this.setState({ selectedValues: Object.assign([], selectedValues), preSelectedValues: Object.assign([], selectedValues) }, this.initialSetValue);\n    }\n  }\n\n  listenerCallback() {\n    // @ts-ignore\n    this.searchBox.current.focus();\n  }\n\n  componentWillUnmount() {\n    // @ts-ignore\n    if (this.optionTimeout) {\n      // @ts-ignore\n      clearTimeout(this.optionTimeout);\n    }\n    // @ts-ignore\n    this.searchWrapper.current.removeEventListener('click', this.listenerCallback);\n  }\n\n  // Skipcheck flag - value will be true when the func called from on deselect anything.\n  removeSelectedValuesFromOptions(skipCheck) {\n    const { isObject, displayValue, groupBy } = this.props;\n    const { selectedValues = [], unfilteredOptions, options } = this.state;\n    if (!skipCheck && groupBy) {\n      this.groupByOptions(options);\n    }\n    if (!selectedValues.length && !skipCheck) {\n      return;\n    }\n    if (isObject) {\n      let optionList = unfilteredOptions.filter(item => {\n        return selectedValues.findIndex(\n          v => v[displayValue] === item[displayValue]\n        ) === -1\n          ? true\n          : false;\n      });\n      if (groupBy) {\n        this.groupByOptions(optionList);\n      }\n      this.setState(\n        { options: optionList, filteredOptions: optionList },\n        this.filterOptionsByInput\n      );\n      return;\n    }\n    let optionList = unfilteredOptions.filter(\n      item => selectedValues.indexOf(item) === -1\n    );\n\n    this.setState(\n      { options: optionList, filteredOptions: optionList },\n      this.filterOptionsByInput\n    );\n  }\n\n  groupByOptions(options) {\n    const { groupBy } = this.props;\n    const groupedObject = options.reduce(function(r, a) {\n      const key = a[groupBy] || \"Others\";\n      r[key] = r[key] || [];\n      r[key].push(a);\n      return r;\n    }, Object.create({}));\n\n    this.setState({ groupedObject });\n  }\n\n  onChange(event) {\n    const { onSearch } = this.props;\n    this.setState(\n      { inputValue: event.target.value },\n      this.filterOptionsByInput\n    );\n    if (onSearch) {\n      onSearch(event.target.value);\n    }\n  }\n\n  onKeyPress(event) {\n    const { onKeyPressFn } = this.props;\n    if (onKeyPressFn) {\n        onKeyPressFn(event, event.target.value);\n    }\n  }\n\n  filterOptionsByInput() {\n    let { options, filteredOptions, inputValue } = this.state;\n    const { isObject, displayValue } = this.props;\n    if (isObject) {\n      options = filteredOptions.filter(i => this.matchValues(i[displayValue], inputValue))\n    } else {\n      options = filteredOptions.filter(i => this.matchValues(i, inputValue));\n    }\n    this.groupByOptions(options);\n    this.setState({ options });\n  }\n\n  matchValues(value, search) {\n    if (this.props.caseSensitiveSearch) {\n      return value.indexOf(search) > -1;\n    }\n    if (value.toLowerCase) {\n      return value.toLowerCase().indexOf(search.toLowerCase()) > -1;\n    }\n    return value.toString().indexOf(search) > -1;\n  }\n\n  onArrowKeyNavigation(e) {\n    const {\n      options,\n      highlightOption,\n      toggleOptionsList,\n      inputValue,\n      selectedValues\n    } = this.state;\n    const { disablePreSelectedValues } = this.props;\n    if (e.keyCode === 8 && !inputValue && !disablePreSelectedValues && selectedValues.length) {\n      this.onRemoveSelectedItem(selectedValues.length - 1);\n    }\n    if (!options.length) {\n      return;\n    }\n    if (e.keyCode === 38) {\n      if (highlightOption > 0) {\n        this.setState(previousState => ({\n          highlightOption: previousState.highlightOption - 1\n        }));\n      } else {\n        this.setState({ highlightOption: options.length - 1 });\n      }\n    } else if (e.keyCode === 40) {\n      if (highlightOption < options.length - 1) {\n        this.setState(previousState => ({\n          highlightOption: previousState.highlightOption + 1\n        }));\n      } else {\n        this.setState({ highlightOption: 0 });\n      }\n    } else if (e.key === \"Enter\" && options.length && toggleOptionsList) {\n      if (highlightOption === -1) {\n        return;\n      }\n      this.onSelectItem(options[highlightOption]);\n    }\n    // TODO: Instead of scrollIntoView need to find better soln for scroll the dropwdown container.\n    // setTimeout(() => {\n    //   const element = document.querySelector(\"ul.optionContainer .highlight\");\n    //   if (element) {\n    //     element.scrollIntoView();\n    //   }\n    // });\n  }\n\n  onRemoveSelectedItem(item) {\n\t\tlet { selectedValues, index = 0 } = this.state;\n\t\tconst { onRemove, showCheckbox, displayValue, isObject } = this.props;\n    if (isObject) {\n      index = selectedValues.findIndex(\n        i => i[displayValue] === item[displayValue]\n      );\n    } else {\n      index = selectedValues.indexOf(item);\n    }\n\t\tselectedValues.splice(index, 1);\n\t\tonRemove(selectedValues, item);\n    this.setState({ selectedValues }, () => {\n      if (!showCheckbox) {\n\t\t\t\tthis.removeSelectedValuesFromOptions(true);\n      }\n    });\n    if (!this.props.closeOnSelect) {\n      // @ts-ignore\n      this.searchBox.current.focus();\n    }\n  }\n\n  onSelectItem(item) {\n    const { selectedValues } = this.state;\n    const { selectionLimit, onSelect, singleSelect, showCheckbox } = this.props;\n    if (!this.state.keepSearchTerm){\n      this.setState({\n        inputValue: ''\n      });\n    }\n    if (singleSelect) {\n      this.onSingleSelect(item);\n      onSelect([item], item);\n      return;\n    }\n    if (this.isSelectedValue(item)) {\n      this.onRemoveSelectedItem(item);\n      return;\n    }\n    if (selectionLimit == selectedValues.length) {\n      return;\n    }\n\t\tselectedValues.push(item);\n\t\tonSelect(selectedValues, item);\n    this.setState({ selectedValues }, () => {\n      if (!showCheckbox) {\n\t\t\t\tthis.removeSelectedValuesFromOptions(true);\n      } else {\n        this.filterOptionsByInput();\n      }\n    });\n    if (!this.props.closeOnSelect) {\n      // @ts-ignore\n      this.searchBox.current.focus();\n    }\n  }\n\n  onSingleSelect(item) {\n    this.setState({ selectedValues: [item], toggleOptionsList: false });\n  }\n\n  isSelectedValue(item) {\n    const { isObject, displayValue } = this.props;\n    const { selectedValues } = this.state;\n    if (isObject) {\n      return (\n        selectedValues.filter(i => i[displayValue] === item[displayValue])\n          .length > 0\n      );\n    }\n    return selectedValues.filter(i => i === item).length > 0;\n  }\n\n  renderOptionList() {\n    const { groupBy, style, emptyRecordMsg, loading, loadingMessage = 'loading...' } = this.props;\n    const { options } = this.state;\n    if (loading) {\n      return (\n        <ul className={`optionContainer`} style={style['optionContainer']}>\n          {typeof loadingMessage === 'string' && <span style={style['loadingMessage']} className={`notFound`}>{loadingMessage}</span>}\n          {typeof loadingMessage !== 'string' && loadingMessage}\n        </ul>\n      );\n    }\n    return (\n      <ul className={`optionContainer`} style={style['optionContainer']}>\n        {options.length === 0 && <span style={style['notFound']} className={`notFound`}>{emptyRecordMsg}</span>}\n        {!groupBy ? this.renderNormalOption() : this.renderGroupByOptions()}\n      </ul>\n    );\n  }\n\n  renderGroupByOptions() {\n    const { isObject = false, displayValue, showCheckbox, style, singleSelect } = this.props;\n    const { groupedObject } = this.state;\n    return Object.keys(groupedObject).map(obj => {\n\t\t\treturn (\n\t\t\t\t<React.Fragment key={obj}>\n\t\t\t\t\t<li className=\"groupHeading\" style={style['groupHeading']}>{obj}</li>\n\t\t\t\t\t{groupedObject[obj].map((option, i) => {\n            const isSelected = this.isSelectedValue(option);\n            return (\n              <li\n                key={`option${i}`}\n                style={style['option']}\n                className={`groupChildEle option ${isSelected ? 'selected' : ''} ${this.fadeOutSelection(option) ? 'disableSelection' : ''} ${this.isDisablePreSelectedValues(option) ? 'disableSelection' : ''}`}\n                onClick={() => this.onSelectItem(option)}\n              >\n                {showCheckbox && !singleSelect && (\n                    <input\n                      type=\"checkbox\"\n                      className={'checkbox'}\n                      readOnly\n                      checked={isSelected}\n                    />\n                )}\n                {this.props.optionValueDecorator(isObject ? option[displayValue] : (option || '').toString(), option)}\n              </li>\n            )}\n          )}\n\t\t\t\t</React.Fragment>\n\t\t\t)\n\t\t});\n  }\n\n  renderNormalOption() {\n    const { isObject = false, displayValue, showCheckbox, style, singleSelect } = this.props;\n    const { highlightOption } = this.state;\n    return this.state.options.map((option, i) => {\n        const isSelected = this.isSelectedValue(option);\n        return (\n          <li\n            key={`option${i}`}\n            style={style['option']}\n            className={`option ${isSelected ? 'selected' : ''} ${highlightOption === i ? `highlightOption highlight` : \"\"} ${this.fadeOutSelection(option) ? 'disableSelection' : ''} ${this.isDisablePreSelectedValues(option) ? 'disableSelection' : ''}`}\n            onClick={() => this.onSelectItem(option)}\n          >\n            {showCheckbox && !singleSelect && (\n              <input\n                type=\"checkbox\"\n                readOnly\n                className={`checkbox`}\n                checked={isSelected}\n              />\n            )}\n            {this.props.optionValueDecorator(isObject ? option[displayValue] : (option || '').toString(), option)}\n          </li>\n      )\n    });\n  }\n\n  renderSelectedList() {\n    const { isObject = false, displayValue, style, singleSelect, customCloseIcon } = this.props;\n    const { selectedValues, closeIconType } = this.state;\n    return selectedValues.map((value, index) => (\n      <span className={`chip  ${singleSelect && 'singleChip'} ${this.isDisablePreSelectedValues(value) && 'disableSelection'}`} key={index} style={style['chips']}>\n        {this.props.selectedValueDecorator(!isObject ? (value || '').toString() : value[displayValue], value)}\n        {!this.isDisablePreSelectedValues(value) && (!customCloseIcon ? <img\n          className=\"icon_cancel closeIcon\"\n          src={closeIconType}\n          onClick={() => this.onRemoveSelectedItem(value)}\n        /> : <i className=\"custom-close\" onClick={() => this.onRemoveSelectedItem(value)}>{customCloseIcon}</i>)}\n      </span>\n    ));\n  }\n\n  isDisablePreSelectedValues(value) {\n    const { isObject, disablePreSelectedValues, displayValue } = this.props;\n    const { preSelectedValues } = this.state;\n    if (!disablePreSelectedValues || !preSelectedValues.length) {\n      return false;\n    }\n    if (isObject) {\n      return (\n        preSelectedValues.filter(i => i[displayValue] === value[displayValue])\n          .length > 0\n      );\n    }\n    return preSelectedValues.filter(i => i === value).length > 0;\n  }\n\n  fadeOutSelection(item) {\n    const { selectionLimit, showCheckbox, singleSelect } = this.props;\n    if (singleSelect) {\n      return;\n    }\n    const { selectedValues } = this.state;\n    if (selectionLimit == -1) {\n      return false;\n    }\n    if (selectionLimit != selectedValues.length) {\n      return false;\n    }\n    if (selectionLimit == selectedValues.length) {\n      if (!showCheckbox) {\n        return true;\n      } else {\n        if (this.isSelectedValue(item)) {\n          return false;\n        }\n        return true;\n      }\n    }\n  }\n\n  toggelOptionList() {\n    this.setState({\n      toggleOptionsList: !this.state.toggleOptionsList,\n      highlightOption: this.props.avoidHighlightFirstOption ? -1 : 0\n    });\n  }\n\n  onCloseOptionList() {\n    this.setState({\n      toggleOptionsList: false,\n      highlightOption: this.props.avoidHighlightFirstOption ? -1 : 0,\n      inputValue: ''\n    });\n  }\n\n  onFocus(){\n    if (this.state.toggleOptionsList) {\n      // @ts-ignore\n      clearTimeout(this.optionTimeout);\n    } else {\n      this.toggelOptionList();\n    }\n  }\n\n  onBlur(){\n    this.setState({ inputValue: '' }, this.filterOptionsByInput);\n    // @ts-ignore\n    this.optionTimeout = setTimeout(this.onCloseOptionList, 250);\n  }\n\n  isVisible(elem) {\n    return !!elem && !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length )\n  }\n\n  hideOnClickOutside() {\n    const element = document.getElementsByClassName('multiselect-container')[0];\n    const outsideClickListener = event => {\n        if (element && !element.contains(event.target) && this.isVisible(element)) {\n          this.toggelOptionList();\n        }\n    }\n    document.addEventListener('click', outsideClickListener)\n  }\n\n  renderMultiselectContainer() {\n    const { inputValue, toggleOptionsList, selectedValues } = this.state;\n    const { placeholder, style, singleSelect, id, name, hidePlaceholder, disable, showArrow, className, customArrow, hideSelectedList } = this.props;\n    return (\n      <div className={`multiselect-container multiSelectContainer ${disable ? `disable_ms` : ''} ${className || ''}`} id={id || 'multiselectContainerReact'} style={style['multiselectContainer']}>\n        <div className={`search-wrapper searchWrapper ${singleSelect ? 'singleSelect' : ''}`}\n          ref={this.searchWrapper} style={style['searchBox']}\n          onClick={singleSelect ? this.toggelOptionList : () => {}}\n        >\n          {!hideSelectedList && this.renderSelectedList()}\n          <input\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tref={this.searchBox}\n            className={`searchBox ${singleSelect && selectedValues.length ? 'display-none' : ''}`}\n            id={`${id || 'search'}_input`}\n\t          name={`${name || 'search_name'}_input`}\n            onChange={this.onChange}\n            onKeyPress={this.onKeyPress}\n            value={inputValue}\n            onFocus={this.onFocus}\n            onBlur={this.onBlur}\n            placeholder={((singleSelect && selectedValues.length) || (hidePlaceholder && selectedValues.length)) ? '' : placeholder}\n            onKeyDown={this.onArrowKeyNavigation}\n            style={style['inputField']}\n            autoComplete=\"off\"\n            disabled={singleSelect || disable}\n          />\n          {(singleSelect || showArrow) && (\n            <>\n              {customArrow ? <span className=\"icon_down_dir\">{customArrow}</span> : <img src={DownArrow} className={`icon_cancel icon_down_dir`} />}\n            </>\n          )}\n        </div>\n        <div\n          className={`optionListContainer ${\n            toggleOptionsList ? 'displayBlock' : 'displayNone'\n          }`}\n          onMouseDown={(e) => {\n            e.preventDefault();\n          }}\n        >\n          {this.renderOptionList()}\n        </div>\n      </div>\n    );\n  }\n\n  render() {\n    return (\n      <OutsideAlerter outsideClick={this.onCloseOptionList}>\n        {this.renderMultiselectContainer()}\n      </OutsideAlerter>\n    );\n  }\n}\n\nMultiselect.defaultProps = {\n  options: [],\n  disablePreSelectedValues: false,\n  selectedValues: [],\n  isObject: true,\n  displayValue: \"model\",\n  showCheckbox: false,\n  selectionLimit: -1,\n  placeholder: \"Select\",\n\tgroupBy: \"\",\n\tstyle: {},\n\temptyRecordMsg: \"No Options Available\",\n\tonSelect: () => {},\n  onRemove: () => {},\n  onKeyPressFn: () => {},\n  closeIcon: 'circle2',\n  singleSelect: false,\n  caseSensitiveSearch: false,\n  id: '',\n  name: '',\n  closeOnSelect: true,\n  avoidHighlightFirstOption: false,\n  hidePlaceholder: false,\n  showArrow: false,\n  keepSearchTerm: false,\n  customCloseIcon: '',\n  className: '',\n  customArrow: undefined,\n  selectedValueDecorator: v => v,\n  optionValueDecorator: v => v\n} as IMultiselectProps;\n", "\n'use strict'\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./multiselect-react-dropdown.cjs.production.min.js')\n} else {\n  module.exports = require('./multiselect-react-dropdown.cjs.development.js')\n}\n", "/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n  return function(object, iteratee, keysFunc) {\n    var index = -1,\n        iterable = Object(object),\n        props = keysFunc(object),\n        length = props.length;\n\n    while (length--) {\n      var key = props[fromRight ? length : ++index];\n      if (iteratee(iterable[key], key, iterable) === false) {\n        break;\n      }\n    }\n    return object;\n  };\n}\n\nmodule.exports = createBaseFor;\n", "var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n", "var baseFor = require('./_baseFor'),\n    keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n  return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n", "var baseAssignValue = require('./_baseAssignValue'),\n    baseForOwn = require('./_baseForOwn'),\n    baseIteratee = require('./_baseIteratee');\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n *   'fred':    { 'user': 'fred',    'age': 40 },\n *   'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n  var result = {};\n  iteratee = baseIteratee(iteratee, 3);\n\n  baseForOwn(object, function(value, key, object) {\n    baseAssignValue(result, key, iteratee(value, key, object));\n  });\n  return result;\n}\n\nmodule.exports = mapValues;\n", "/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */\n\nvar hasElementType = typeof Element !== 'undefined';\nvar hasMap = typeof Map === 'function';\nvar hasSet = typeof Set === 'function';\nvar hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;\n\n// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js\n\nfunction equal(a, b) {\n  // START: fast-deep-equal es6/index.js 3.1.3\n  if (a === b) return true;\n\n  if (a && b && typeof a == 'object' && typeof b == 'object') {\n    if (a.constructor !== b.constructor) return false;\n\n    var length, i, keys;\n    if (Array.isArray(a)) {\n      length = a.length;\n      if (length != b.length) return false;\n      for (i = length; i-- !== 0;)\n        if (!equal(a[i], b[i])) return false;\n      return true;\n    }\n\n    // START: Modifications:\n    // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code\n    //    to co-exist with es5.\n    // 2. Replace `for of` with es5 compliant iteration using `for`.\n    //    Basically, take:\n    //\n    //    ```js\n    //    for (i of a.entries())\n    //      if (!b.has(i[0])) return false;\n    //    ```\n    //\n    //    ... and convert to:\n    //\n    //    ```js\n    //    it = a.entries();\n    //    while (!(i = it.next()).done)\n    //      if (!b.has(i.value[0])) return false;\n    //    ```\n    //\n    //    **Note**: `i` access switches to `i.value`.\n    var it;\n    if (hasMap && (a instanceof Map) && (b instanceof Map)) {\n      if (a.size !== b.size) return false;\n      it = a.entries();\n      while (!(i = it.next()).done)\n        if (!b.has(i.value[0])) return false;\n      it = a.entries();\n      while (!(i = it.next()).done)\n        if (!equal(i.value[1], b.get(i.value[0]))) return false;\n      return true;\n    }\n\n    if (hasSet && (a instanceof Set) && (b instanceof Set)) {\n      if (a.size !== b.size) return false;\n      it = a.entries();\n      while (!(i = it.next()).done)\n        if (!b.has(i.value[0])) return false;\n      return true;\n    }\n    // END: Modifications\n\n    if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n      length = a.length;\n      if (length != b.length) return false;\n      for (i = length; i-- !== 0;)\n        if (a[i] !== b[i]) return false;\n      return true;\n    }\n\n    if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n    // START: Modifications:\n    // Apply guards for `Object.create(null)` handling. See:\n    // - https://github.com/FormidableLabs/react-fast-compare/issues/64\n    // - https://github.com/epoberezkin/fast-deep-equal/issues/49\n    if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();\n    if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();\n    // END: Modifications\n\n    keys = Object.keys(a);\n    length = keys.length;\n    if (length !== Object.keys(b).length) return false;\n\n    for (i = length; i-- !== 0;)\n      if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n    // END: fast-deep-equal\n\n    // START: react-fast-compare\n    // custom handling for DOM elements\n    if (hasElementType && a instanceof Element) return false;\n\n    // custom handling for React/Preact\n    for (i = length; i-- !== 0;) {\n      if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {\n        // React-specific: avoid traversing React elements' _owner\n        // Preact-specific: avoid traversing Preact elements' __v and __o\n        //    __v = $_original / $_vnode\n        //    __o = $_owner\n        // These properties contain circular references and are not needed when\n        // comparing the actual elements (and not their owners)\n        // .$$typeof and ._store on just reasonable markers of elements\n\n        continue;\n      }\n\n      // all other properties should be traversed as usual\n      if (!equal(a[keys[i]], b[keys[i]])) return false;\n    }\n    // END: react-fast-compare\n\n    // START: fast-deep-equal\n    return true;\n  }\n\n  return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function isEqual(a, b) {\n  try {\n    return equal(a, b);\n  } catch (error) {\n    if (((error.message || '').match(/stack|recursion/i))) {\n      // warn on circular references, don't crash\n      // browsers give this different errors name and messages:\n      // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n      // firefox: \"InternalError\", too much recursion\"\n      // edge: \"Error\", \"Out of stack space\"\n      console.warn('react-fast-compare cannot handle circular refs');\n      return false;\n    }\n    // some other error. we should definitely know about these\n    throw error;\n  }\n};\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\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';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n  if (process.env.NODE_ENV !== 'production') {\n    if (format === undefined) {\n      throw new Error('invariant requires an error message argument');\n    }\n  }\n\n  if (!condition) {\n    var error;\n    if (format === undefined) {\n      error = new Error(\n        'Minified exception occurred; use the non-minified dev environment ' +\n        'for the full error message and additional helpful warnings.'\n      );\n    } else {\n      var args = [a, b, c, d, e, f];\n      var argIndex = 0;\n      error = new Error(\n        format.replace(/%s/g, function() { return args[argIndex++]; })\n      );\n      error.name = 'Invariant Violation';\n    }\n\n    error.framesToPop = 1; // we don't care about invariant's own frame\n    throw error;\n  }\n};\n\nmodule.exports = invariant;\n", "//\n\nmodule.exports = function shallowEqual(objA, objB, compare, compareContext) {\n  var ret = compare ? compare.call(compareContext, objA, objB) : void 0;\n\n  if (ret !== void 0) {\n    return !!ret;\n  }\n\n  if (objA === objB) {\n    return true;\n  }\n\n  if (typeof objA !== \"object\" || !objA || typeof objB !== \"object\" || !objB) {\n    return false;\n  }\n\n  var keysA = Object.keys(objA);\n  var keysB = Object.keys(objB);\n\n  if (keysA.length !== keysB.length) {\n    return false;\n  }\n\n  var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);\n\n  // Test for A's keys different from B.\n  for (var idx = 0; idx < keysA.length; idx++) {\n    var key = keysA[idx];\n\n    if (!bHasOwnProperty(key)) {\n      return false;\n    }\n\n    var valueA = objA[key];\n    var valueB = objB[key];\n\n    ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;\n\n    if (ret === false || (ret === void 0 && valueA !== valueB)) {\n      return false;\n    }\n  }\n\n  return true;\n};\n", "/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n *  - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n  options = options || {};\n  var type = typeof val;\n  if (type === 'string' && val.length > 0) {\n    return parse(val);\n  } else if (type === 'number' && isFinite(val)) {\n    return options.long ? fmtLong(val) : fmtShort(val);\n  }\n  throw new Error(\n    'val is not a non-empty string or a valid number. val=' +\n      JSON.stringify(val)\n  );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n  str = String(str);\n  if (str.length > 100) {\n    return;\n  }\n  var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n    str\n  );\n  if (!match) {\n    return;\n  }\n  var n = parseFloat(match[1]);\n  var type = (match[2] || 'ms').toLowerCase();\n  switch (type) {\n    case 'years':\n    case 'year':\n    case 'yrs':\n    case 'yr':\n    case 'y':\n      return n * y;\n    case 'weeks':\n    case 'week':\n    case 'w':\n      return n * w;\n    case 'days':\n    case 'day':\n    case 'd':\n      return n * d;\n    case 'hours':\n    case 'hour':\n    case 'hrs':\n    case 'hr':\n    case 'h':\n      return n * h;\n    case 'minutes':\n    case 'minute':\n    case 'mins':\n    case 'min':\n    case 'm':\n      return n * m;\n    case 'seconds':\n    case 'second':\n    case 'secs':\n    case 'sec':\n    case 's':\n      return n * s;\n    case 'milliseconds':\n    case 'millisecond':\n    case 'msecs':\n    case 'msec':\n    case 'ms':\n      return n;\n    default:\n      return undefined;\n  }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n  var msAbs = Math.abs(ms);\n  if (msAbs >= d) {\n    return Math.round(ms / d) + 'd';\n  }\n  if (msAbs >= h) {\n    return Math.round(ms / h) + 'h';\n  }\n  if (msAbs >= m) {\n    return Math.round(ms / m) + 'm';\n  }\n  if (msAbs >= s) {\n    return Math.round(ms / s) + 's';\n  }\n  return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n  var msAbs = Math.abs(ms);\n  if (msAbs >= d) {\n    return plural(ms, msAbs, d, 'day');\n  }\n  if (msAbs >= h) {\n    return plural(ms, msAbs, h, 'hour');\n  }\n  if (msAbs >= m) {\n    return plural(ms, msAbs, m, 'minute');\n  }\n  if (msAbs >= s) {\n    return plural(ms, msAbs, s, 'second');\n  }\n  return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n  var isPlural = msAbs >= n * 1.5;\n  return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n", "\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n", "/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n", "/**\n * Module dependencies\n */\n\nvar debug = require('debug')('jsonp');\n\n/**\n * Module exports.\n */\n\nmodule.exports = jsonp;\n\n/**\n * Callback index.\n */\n\nvar count = 0;\n\n/**\n * Noop function.\n */\n\nfunction noop(){}\n\n/**\n * JSONP handler\n *\n * Options:\n *  - param {String} qs parameter (`callback`)\n *  - prefix {String} qs parameter (`__jp`)\n *  - name {String} qs parameter (`prefix` + incr)\n *  - timeout {Number} how long after a timeout error is emitted (`60000`)\n *\n * @param {String} url\n * @param {Object|Function} optional options / callback\n * @param {Function} optional callback\n */\n\nfunction jsonp(url, opts, fn){\n  if ('function' == typeof opts) {\n    fn = opts;\n    opts = {};\n  }\n  if (!opts) opts = {};\n\n  var prefix = opts.prefix || '__jp';\n\n  // use the callback name that was passed if one was provided.\n  // otherwise generate a unique name by incrementing our counter.\n  var id = opts.name || (prefix + (count++));\n\n  var param = opts.param || 'callback';\n  var timeout = null != opts.timeout ? opts.timeout : 60000;\n  var enc = encodeURIComponent;\n  var target = document.getElementsByTagName('script')[0] || document.head;\n  var script;\n  var timer;\n\n\n  if (timeout) {\n    timer = setTimeout(function(){\n      cleanup();\n      if (fn) fn(new Error('Timeout'));\n    }, timeout);\n  }\n\n  function cleanup(){\n    if (script.parentNode) script.parentNode.removeChild(script);\n    window[id] = noop;\n    if (timer) clearTimeout(timer);\n  }\n\n  function cancel(){\n    if (window[id]) {\n      cleanup();\n    }\n  }\n\n  window[id] = function(data){\n    debug('jsonp got', data);\n    cleanup();\n    if (fn) fn(null, data);\n  };\n\n  // add qs component\n  url += (~url.indexOf('?') ? '&' : '?') + param + '=' + enc(id);\n  url = url.replace('?&', '?');\n\n  debug('jsonp req \"%s\"', url);\n\n  // create script\n  script = document.createElement('script');\n  script.src = url;\n  target.parentNode.insertBefore(script, target);\n\n  return cancel;\n}\n", "var baseGetTag = require('./_baseGetTag'),\n    isArray = require('./isArray'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n  return typeof value == 'string' ||\n    (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n", "var baseProperty = require('./_baseProperty');\n\n/**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nvar asciiSize = baseProperty('length');\n\nmodule.exports = asciiSize;\n", "/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n    rsComboMarksRange = '\\\\u0300-\\\\u036f',\n    reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n    rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n    rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange  + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n  return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n", "/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n    rsComboMarksRange = '\\\\u0300-\\\\u036f',\n    reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n    rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n    rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n    rsCombo = '[' + rsComboRange + ']',\n    rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n    rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n    rsNonAstral = '[^' + rsAstralRange + ']',\n    rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n    rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n    rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n    rsOptVar = '[' + rsVarRange + ']?',\n    rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n    rsSeq = rsOptVar + reOptMod + rsOptJoin,\n    rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nfunction unicodeSize(string) {\n  var result = reUnicode.lastIndex = 0;\n  while (reUnicode.test(string)) {\n    ++result;\n  }\n  return result;\n}\n\nmodule.exports = unicodeSize;\n", "var asciiSize = require('./_asciiSize'),\n    hasUnicode = require('./_hasUnicode'),\n    unicodeSize = require('./_unicodeSize');\n\n/**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\nfunction stringSize(string) {\n  return hasUnicode(string)\n    ? unicodeSize(string)\n    : asciiSize(string);\n}\n\nmodule.exports = stringSize;\n", "var baseKeys = require('./_baseKeys'),\n    getTag = require('./_getTag'),\n    isArrayLike = require('./isArrayLike'),\n    isString = require('./isString'),\n    stringSize = require('./_stringSize');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n    setTag = '[object Set]';\n\n/**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\nfunction size(collection) {\n  if (collection == null) {\n    return 0;\n  }\n  if (isArrayLike(collection)) {\n    return isString(collection) ? stringSize(collection) : collection.length;\n  }\n  var tag = getTag(collection);\n  if (tag == mapTag || tag == setTag) {\n    return collection.size;\n  }\n  return baseKeys(collection).length;\n}\n\nmodule.exports = size;\n", "var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n  return toString.call(arr) == '[object Array]';\n};\n", "var isarray = require('isarray')\n\n/**\n * Expose `pathToRegexp`.\n */\nmodule.exports = pathToRegexp\nmodule.exports.parse = parse\nmodule.exports.compile = compile\nmodule.exports.tokensToFunction = tokensToFunction\nmodule.exports.tokensToRegExp = tokensToRegExp\n\n/**\n * The main path matching regexp utility.\n *\n * @type {RegExp}\n */\nvar PATH_REGEXP = new RegExp([\n  // Match escaped characters that would otherwise appear in future matches.\n  // This allows the user to escape special characters that won't transform.\n  '(\\\\\\\\.)',\n  // Match Express-style parameters and un-named parameters with a prefix\n  // and optional suffixes. Matches appear as:\n  //\n  // \"/:test(\\\\d+)?\" => [\"/\", \"test\", \"\\d+\", undefined, \"?\", undefined]\n  // \"/route(\\\\d+)\"  => [undefined, undefined, undefined, \"\\d+\", undefined, undefined]\n  // \"/*\"            => [\"/\", undefined, undefined, undefined, undefined, \"*\"]\n  '([\\\\/.])?(?:(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))([+*?])?|(\\\\*))'\n].join('|'), 'g')\n\n/**\n * Parse a string for the raw tokens.\n *\n * @param  {string}  str\n * @param  {Object=} options\n * @return {!Array}\n */\nfunction parse (str, options) {\n  var tokens = []\n  var key = 0\n  var index = 0\n  var path = ''\n  var defaultDelimiter = options && options.delimiter || '/'\n  var res\n\n  while ((res = PATH_REGEXP.exec(str)) != null) {\n    var m = res[0]\n    var escaped = res[1]\n    var offset = res.index\n    path += str.slice(index, offset)\n    index = offset + m.length\n\n    // Ignore already escaped sequences.\n    if (escaped) {\n      path += escaped[1]\n      continue\n    }\n\n    var next = str[index]\n    var prefix = res[2]\n    var name = res[3]\n    var capture = res[4]\n    var group = res[5]\n    var modifier = res[6]\n    var asterisk = res[7]\n\n    // Push the current path onto the tokens.\n    if (path) {\n      tokens.push(path)\n      path = ''\n    }\n\n    var partial = prefix != null && next != null && next !== prefix\n    var repeat = modifier === '+' || modifier === '*'\n    var optional = modifier === '?' || modifier === '*'\n    var delimiter = res[2] || defaultDelimiter\n    var pattern = capture || group\n\n    tokens.push({\n      name: name || key++,\n      prefix: prefix || '',\n      delimiter: delimiter,\n      optional: optional,\n      repeat: repeat,\n      partial: partial,\n      asterisk: !!asterisk,\n      pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')\n    })\n  }\n\n  // Match any characters still remaining.\n  if (index < str.length) {\n    path += str.substr(index)\n  }\n\n  // If the path exists, push it onto the end.\n  if (path) {\n    tokens.push(path)\n  }\n\n  return tokens\n}\n\n/**\n * Compile a string to a template function for the path.\n *\n * @param  {string}             str\n * @param  {Object=}            options\n * @return {!function(Object=, Object=)}\n */\nfunction compile (str, options) {\n  return tokensToFunction(parse(str, options), options)\n}\n\n/**\n * Prettier encoding of URI path segments.\n *\n * @param  {string}\n * @return {string}\n */\nfunction encodeURIComponentPretty (str) {\n  return encodeURI(str).replace(/[\\/?#]/g, function (c) {\n    return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n  })\n}\n\n/**\n * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.\n *\n * @param  {string}\n * @return {string}\n */\nfunction encodeAsterisk (str) {\n  return encodeURI(str).replace(/[?#]/g, function (c) {\n    return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n  })\n}\n\n/**\n * Expose a method for transforming tokens into the path function.\n */\nfunction tokensToFunction (tokens, options) {\n  // Compile all the tokens into regexps.\n  var matches = new Array(tokens.length)\n\n  // Compile all the patterns before compilation.\n  for (var i = 0; i < tokens.length; i++) {\n    if (typeof tokens[i] === 'object') {\n      matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options))\n    }\n  }\n\n  return function (obj, opts) {\n    var path = ''\n    var data = obj || {}\n    var options = opts || {}\n    var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent\n\n    for (var i = 0; i < tokens.length; i++) {\n      var token = tokens[i]\n\n      if (typeof token === 'string') {\n        path += token\n\n        continue\n      }\n\n      var value = data[token.name]\n      var segment\n\n      if (value == null) {\n        if (token.optional) {\n          // Prepend partial segment prefixes.\n          if (token.partial) {\n            path += token.prefix\n          }\n\n          continue\n        } else {\n          throw new TypeError('Expected \"' + token.name + '\" to be defined')\n        }\n      }\n\n      if (isarray(value)) {\n        if (!token.repeat) {\n          throw new TypeError('Expected \"' + token.name + '\" to not repeat, but received `' + JSON.stringify(value) + '`')\n        }\n\n        if (value.length === 0) {\n          if (token.optional) {\n            continue\n          } else {\n            throw new TypeError('Expected \"' + token.name + '\" to not be empty')\n          }\n        }\n\n        for (var j = 0; j < value.length; j++) {\n          segment = encode(value[j])\n\n          if (!matches[i].test(segment)) {\n            throw new TypeError('Expected all \"' + token.name + '\" to match \"' + token.pattern + '\", but received `' + JSON.stringify(segment) + '`')\n          }\n\n          path += (j === 0 ? token.prefix : token.delimiter) + segment\n        }\n\n        continue\n      }\n\n      segment = token.asterisk ? encodeAsterisk(value) : encode(value)\n\n      if (!matches[i].test(segment)) {\n        throw new TypeError('Expected \"' + token.name + '\" to match \"' + token.pattern + '\", but received \"' + segment + '\"')\n      }\n\n      path += token.prefix + segment\n    }\n\n    return path\n  }\n}\n\n/**\n * Escape a regular expression string.\n *\n * @param  {string} str\n * @return {string}\n */\nfunction escapeString (str) {\n  return str.replace(/([.+*?=^!:${}()[\\]|\\/\\\\])/g, '\\\\$1')\n}\n\n/**\n * Escape the capturing group by escaping special characters and meaning.\n *\n * @param  {string} group\n * @return {string}\n */\nfunction escapeGroup (group) {\n  return group.replace(/([=!:$\\/()])/g, '\\\\$1')\n}\n\n/**\n * Attach the keys as a property of the regexp.\n *\n * @param  {!RegExp} re\n * @param  {Array}   keys\n * @return {!RegExp}\n */\nfunction attachKeys (re, keys) {\n  re.keys = keys\n  return re\n}\n\n/**\n * Get the flags for a regexp from the options.\n *\n * @param  {Object} options\n * @return {string}\n */\nfunction flags (options) {\n  return options && options.sensitive ? '' : 'i'\n}\n\n/**\n * Pull out keys from a regexp.\n *\n * @param  {!RegExp} path\n * @param  {!Array}  keys\n * @return {!RegExp}\n */\nfunction regexpToRegexp (path, keys) {\n  // Use a negative lookahead to match only capturing groups.\n  var groups = path.source.match(/\\((?!\\?)/g)\n\n  if (groups) {\n    for (var i = 0; i < groups.length; i++) {\n      keys.push({\n        name: i,\n        prefix: null,\n        delimiter: null,\n        optional: false,\n        repeat: false,\n        partial: false,\n        asterisk: false,\n        pattern: null\n      })\n    }\n  }\n\n  return attachKeys(path, keys)\n}\n\n/**\n * Transform an array into a regexp.\n *\n * @param  {!Array}  path\n * @param  {Array}   keys\n * @param  {!Object} options\n * @return {!RegExp}\n */\nfunction arrayToRegexp (path, keys, options) {\n  var parts = []\n\n  for (var i = 0; i < path.length; i++) {\n    parts.push(pathToRegexp(path[i], keys, options).source)\n  }\n\n  var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))\n\n  return attachKeys(regexp, keys)\n}\n\n/**\n * Create a path regexp from string input.\n *\n * @param  {string}  path\n * @param  {!Array}  keys\n * @param  {!Object} options\n * @return {!RegExp}\n */\nfunction stringToRegexp (path, keys, options) {\n  return tokensToRegExp(parse(path, options), keys, options)\n}\n\n/**\n * Expose a function for taking tokens and returning a RegExp.\n *\n * @param  {!Array}          tokens\n * @param  {(Array|Object)=} keys\n * @param  {Object=}         options\n * @return {!RegExp}\n */\nfunction tokensToRegExp (tokens, keys, options) {\n  if (!isarray(keys)) {\n    options = /** @type {!Object} */ (keys || options)\n    keys = []\n  }\n\n  options = options || {}\n\n  var strict = options.strict\n  var end = options.end !== false\n  var route = ''\n\n  // Iterate over the tokens and create our regexp string.\n  for (var i = 0; i < tokens.length; i++) {\n    var token = tokens[i]\n\n    if (typeof token === 'string') {\n      route += escapeString(token)\n    } else {\n      var prefix = escapeString(token.prefix)\n      var capture = '(?:' + token.pattern + ')'\n\n      keys.push(token)\n\n      if (token.repeat) {\n        capture += '(?:' + prefix + capture + ')*'\n      }\n\n      if (token.optional) {\n        if (!token.partial) {\n          capture = '(?:' + prefix + '(' + capture + '))?'\n        } else {\n          capture = prefix + '(' + capture + ')?'\n        }\n      } else {\n        capture = prefix + '(' + capture + ')'\n      }\n\n      route += capture\n    }\n  }\n\n  var delimiter = escapeString(options.delimiter || '/')\n  var endsWithDelimiter = route.slice(-delimiter.length) === delimiter\n\n  // In non-strict mode we allow a slash at the end of match. If the path to\n  // match already ends with a slash, we remove it for consistency. The slash\n  // is valid at the end of a path match, not in the middle. This is important\n  // in non-ending mode, where \"/test/\" shouldn't match \"/test//route\".\n  if (!strict) {\n    route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'\n  }\n\n  if (end) {\n    route += '$'\n  } else {\n    // In non-ending mode, we need the capturing groups to match as much as\n    // possible by using a positive lookahead to the end or next path segment.\n    route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'\n  }\n\n  return attachKeys(new RegExp('^' + route, flags(options)), keys)\n}\n\n/**\n * Normalize the given path string, returning a regular expression.\n *\n * An empty array can be passed in for the keys, which will hold the\n * placeholder key descriptions. For example, using `/user/:id`, `keys` will\n * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.\n *\n * @param  {(string|RegExp|Array)} path\n * @param  {(Array|Object)=}       keys\n * @param  {Object=}               options\n * @return {!RegExp}\n */\nfunction pathToRegexp (path, keys, options) {\n  if (!isarray(keys)) {\n    options = /** @type {!Object} */ (keys || options)\n    keys = []\n  }\n\n  options = options || {}\n\n  if (path instanceof RegExp) {\n    return regexpToRegexp(path, /** @type {!Array} */ (keys))\n  }\n\n  if (isarray(path)) {\n    return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)\n  }\n\n  return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)\n}\n", "/**\n * Map of all Contentful block types. Blocks contain inline or block nodes.\n */\nexport enum BLOCKS {\n  DOCUMENT = 'document',\n  PARAGRAPH = 'paragraph',\n\n  HEADING_1 = 'heading-1',\n  HEADING_2 = 'heading-2',\n  HEADING_3 = 'heading-3',\n  HEADING_4 = 'heading-4',\n  HEADING_5 = 'heading-5',\n  HEADING_6 = 'heading-6',\n\n  OL_LIST = 'ordered-list',\n  UL_LIST = 'unordered-list',\n  LIST_ITEM = 'list-item',\n\n  HR = 'hr',\n  QUOTE = 'blockquote',\n\n  EMBEDDED_ENTRY = 'embedded-entry-block',\n  EMBEDDED_ASSET = 'embedded-asset-block',\n  EMBEDDED_RESOURCE = 'embedded-resource-block',\n\n  TABLE = 'table',\n  TABLE_ROW = 'table-row',\n  TABLE_CELL = 'table-cell',\n  TABLE_HEADER_CELL = 'table-header-cell',\n}\n", "/**\n * Map of all Contentful inline types. Inline contain inline or text nodes.\n *\n * @note This should be kept in alphabetical order since the\n * [validation package](https://github.com/contentful/content-stack/tree/master/packages/validation)\n *  relies on the values being in a predictable order.\n */\nexport enum INLINES {\n  ASSET_HYPERLINK = 'asset-hyperlink',\n  EMBEDDED_ENTRY = 'embedded-entry-inline',\n  EMBEDDED_RESOURCE = 'embedded-resource-inline',\n  ENTRY_HYPERLINK = 'entry-hyperlink',\n  HYPERLINK = 'hyperlink',\n  RESOURCE_HYPERLINK = 'resource-hyperlink',\n}\n", "/**\n * Map of all Contentful marks.\n */\nexport enum MARKS {\n  BOLD = 'bold',\n  ITALIC = 'italic',\n  UNDERLINE = 'underline',\n  CODE = 'code',\n  SUPERSCRIPT = 'superscript',\n  SUBSCRIPT = 'subscript',\n  STRIKETHROUGH = 'strikethrough',\n}\n", "import { BLOCKS } from './blocks';\nimport { INLINES } from './inlines';\nimport { MARKS } from './marks';\n\nexport type TopLevelBlockEnum =\n  | BLOCKS.PARAGRAPH\n  | BLOCKS.HEADING_1\n  | BLOCKS.HEADING_2\n  | BLOCKS.HEADING_3\n  | BLOCKS.HEADING_4\n  | BLOCKS.HEADING_5\n  | BLOCKS.HEADING_6\n  | BLOCKS.OL_LIST\n  | BLOCKS.UL_LIST\n  | BLOCKS.HR\n  | BLOCKS.QUOTE\n  | BLOCKS.EMBEDDED_ENTRY\n  | BLOCKS.EMBEDDED_ASSET\n  | BLOCKS.EMBEDDED_RESOURCE\n  | BLOCKS.TABLE;\n\n/**\n * Array of all top level block types.\n * Only these block types can be the direct children of the document.\n */\nexport const TOP_LEVEL_BLOCKS: TopLevelBlockEnum[] = [\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n  BLOCKS.TABLE,\n];\n\nexport type ListItemBlockEnum =\n  | BLOCKS.PARAGRAPH\n  | BLOCKS.HEADING_1\n  | BLOCKS.HEADING_2\n  | BLOCKS.HEADING_3\n  | BLOCKS.HEADING_4\n  | BLOCKS.HEADING_5\n  | BLOCKS.HEADING_6\n  | BLOCKS.OL_LIST\n  | BLOCKS.UL_LIST\n  | BLOCKS.HR\n  | BLOCKS.QUOTE\n  | BLOCKS.EMBEDDED_ENTRY\n  | BLOCKS.EMBEDDED_ASSET\n  | BLOCKS.EMBEDDED_RESOURCE;\n\n/**\n * Array of all allowed block types inside list items\n */\nexport const LIST_ITEM_BLOCKS: TopLevelBlockEnum[] = [\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n];\n\nexport const TABLE_BLOCKS = [\n  BLOCKS.TABLE,\n  BLOCKS.TABLE_ROW,\n  BLOCKS.TABLE_CELL,\n  BLOCKS.TABLE_HEADER_CELL,\n];\n\n/**\n * Array of all void block types\n */\nexport const VOID_BLOCKS = [\n  BLOCKS.HR,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n];\n\n/**\n * Dictionary of all container block types, and the set block types they accept as children.\n *\n * Note: This does not include `[BLOCKS.DOCUMENT]: TOP_LEVEL_BLOCKS`\n */\nexport const CONTAINERS = {\n  [BLOCKS.OL_LIST]: [BLOCKS.LIST_ITEM],\n  [BLOCKS.UL_LIST]: [BLOCKS.LIST_ITEM],\n  [BLOCKS.LIST_ITEM]: LIST_ITEM_BLOCKS,\n  [BLOCKS.QUOTE]: [BLOCKS.PARAGRAPH],\n  [BLOCKS.TABLE]: [BLOCKS.TABLE_ROW],\n  [BLOCKS.TABLE_ROW]: [BLOCKS.TABLE_CELL, BLOCKS.TABLE_HEADER_CELL],\n  [BLOCKS.TABLE_CELL]: [BLOCKS.PARAGRAPH, BLOCKS.UL_LIST, BLOCKS.OL_LIST],\n  [BLOCKS.TABLE_HEADER_CELL]: [BLOCKS.PARAGRAPH],\n};\n\n/**\n * Array of all heading levels\n */\nexport const HEADINGS = [\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n];\n\n/**\n * Array of all block types that may contain text and inline nodes.\n */\nexport const TEXT_CONTAINERS = [BLOCKS.PARAGRAPH, ...HEADINGS];\n\n/**\n * Node types before `tables` release.\n */\nexport const V1_NODE_TYPES = [\n  BLOCKS.DOCUMENT,\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.LIST_ITEM,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  INLINES.HYPERLINK,\n  INLINES.ENTRY_HYPERLINK,\n  INLINES.ASSET_HYPERLINK,\n  INLINES.EMBEDDED_ENTRY,\n  'text',\n];\n\n/**\n * Marks before `superscript` & `subscript` release.\n */\nexport const V1_MARKS = [MARKS.BOLD, MARKS.CODE, MARKS.ITALIC, MARKS.UNDERLINE];\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=types.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=nodeTypes.js.map", "import { BLOCKS } from './blocks';\nimport { Document } from './types';\n\n/**\n * A rich text document considered to be empty.\n * Any other document structure than this is not considered empty.\n */\nexport const EMPTY_DOCUMENT: Document = {\n  nodeType: BLOCKS.DOCUMENT,\n  data: {},\n  content: [\n    {\n      nodeType: BLOCKS.PARAGRAPH,\n      data: {},\n      content: [\n        {\n          nodeType: 'text',\n          value: '',\n          marks: [],\n          data: {},\n        },\n      ],\n    },\n  ],\n};\n", "import { BLOCKS } from './blocks';\nimport { INLINES } from './inlines';\nimport { Block, Inline, Node, Text } from './types';\n\n/**\n * Tiny replacement for Object.values(object).includes(key) to\n * avoid including CoreJS polyfills\n */\nfunction hasValue(obj: Record<string, unknown>, value: unknown) {\n  for (const key of Object.keys(obj)) {\n    if (value === obj[key]) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\n/**\n * Checks if the node is an instance of Inline.\n */\nexport function isInline(node: Node): node is Inline {\n  return hasValue(INLINES, node.nodeType);\n}\n\n/**\n * Checks if the node is an instance of Block.\n */\nexport function isBlock(node: Node): node is Block {\n  return hasValue(BLOCKS, node.nodeType);\n}\n\n/**\n * Checks if the node is an instance of Text.\n */\nexport function isText(node: Node): node is Text {\n  return node.nodeType === 'text';\n}\n", "export declare type PrimitiveType = number | boolean | string | null;\nexport declare type Definition = {\n  $ref?: string;\n  $schema?: string;\n  $id?: string;\n  description?: string;\n  allOf?: Definition[];\n  oneOf?: Definition[];\n  anyOf?: Definition[];\n  title?: string;\n  type?: string | string[];\n  definitions?: {\n    [key: string]: any;\n  };\n  format?: string;\n  items?: Definition | Definition[];\n  minItems?: number;\n  additionalItems?:\n    | {\n        anyOf: Definition[];\n      }\n    | Definition;\n  enum?: PrimitiveType[] | Definition[];\n  default?: PrimitiveType | Record<string, any>;\n  additionalProperties?: Definition | boolean;\n  required?: string[];\n  propertyOrder?: string[];\n  properties?: {\n    [key: string]: any;\n  };\n  defaultProperties?: string[];\n  patternProperties?: {\n    [pattern: string]: Definition;\n  };\n  typeof?: 'function';\n};\n\nexport function getSchemaWithNodeType(nodeType: string): Definition {\n  try {\n    return require(`./generated/${nodeType}.json`);\n  } catch (error) {\n    throw new Error(`Schema for nodeType \"${nodeType}\" was not found.`);\n  }\n}\n", "export { BLOCKS } from './blocks';\nexport { INLINES } from './inlines';\nexport { MARKS } from './marks';\n\nexport * from './schemaConstraints';\n\nexport * from './types';\nexport * from './nodeTypes';\n\nexport { EMPTY_DOCUMENT } from './emptyDocument';\n\nimport * as helpers from './helpers';\nexport { helpers };\n\nexport { getSchemaWithNodeType } from './schemas';\n", "var baseAssignValue = require('./_baseAssignValue'),\n    eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n  if ((value !== undefined && !eq(object[key], value)) ||\n      (value === undefined && !(key in object))) {\n    baseAssignValue(object, key, value);\n  }\n}\n\nmodule.exports = assignMergeValue;\n", "var isArrayLike = require('./isArrayLike'),\n    isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n *  else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n  return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n", "/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n  if (key === 'constructor' && typeof object[key] === 'function') {\n    return;\n  }\n\n  if (key == '__proto__') {\n    return;\n  }\n\n  return object[key];\n}\n\nmodule.exports = safeGet;\n", "var copyObject = require('./_copyObject'),\n    keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n *   this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n  return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n", "var assignMergeValue = require('./_assignMergeValue'),\n    cloneBuffer = require('./_cloneBuffer'),\n    cloneTypedArray = require('./_cloneTypedArray'),\n    copyArray = require('./_copyArray'),\n    initCloneObject = require('./_initCloneObject'),\n    isArguments = require('./isArguments'),\n    isArray = require('./isArray'),\n    isArrayLikeObject = require('./isArrayLikeObject'),\n    isBuffer = require('./isBuffer'),\n    isFunction = require('./isFunction'),\n    isObject = require('./isObject'),\n    isPlainObject = require('./isPlainObject'),\n    isTypedArray = require('./isTypedArray'),\n    safeGet = require('./_safeGet'),\n    toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n *  counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n  var objValue = safeGet(object, key),\n      srcValue = safeGet(source, key),\n      stacked = stack.get(srcValue);\n\n  if (stacked) {\n    assignMergeValue(object, key, stacked);\n    return;\n  }\n  var newValue = customizer\n    ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n    : undefined;\n\n  var isCommon = newValue === undefined;\n\n  if (isCommon) {\n    var isArr = isArray(srcValue),\n        isBuff = !isArr && isBuffer(srcValue),\n        isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n    newValue = srcValue;\n    if (isArr || isBuff || isTyped) {\n      if (isArray(objValue)) {\n        newValue = objValue;\n      }\n      else if (isArrayLikeObject(objValue)) {\n        newValue = copyArray(objValue);\n      }\n      else if (isBuff) {\n        isCommon = false;\n        newValue = cloneBuffer(srcValue, true);\n      }\n      else if (isTyped) {\n        isCommon = false;\n        newValue = cloneTypedArray(srcValue, true);\n      }\n      else {\n        newValue = [];\n      }\n    }\n    else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n      newValue = objValue;\n      if (isArguments(objValue)) {\n        newValue = toPlainObject(objValue);\n      }\n      else if (!isObject(objValue) || isFunction(objValue)) {\n        newValue = initCloneObject(srcValue);\n      }\n    }\n    else {\n      isCommon = false;\n    }\n  }\n  if (isCommon) {\n    // Recursively merge objects and arrays (susceptible to call stack limits).\n    stack.set(srcValue, newValue);\n    mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n    stack['delete'](srcValue);\n  }\n  assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n", "var Stack = require('./_Stack'),\n    assignMergeValue = require('./_assignMergeValue'),\n    baseFor = require('./_baseFor'),\n    baseMergeDeep = require('./_baseMergeDeep'),\n    isObject = require('./isObject'),\n    keysIn = require('./keysIn'),\n    safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n *  counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n  if (object === source) {\n    return;\n  }\n  baseFor(source, function(srcValue, key) {\n    stack || (stack = new Stack);\n    if (isObject(srcValue)) {\n      baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n    }\n    else {\n      var newValue = customizer\n        ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n        : undefined;\n\n      if (newValue === undefined) {\n        newValue = srcValue;\n      }\n      assignMergeValue(object, key, newValue);\n    }\n  }, keysIn);\n}\n\nmodule.exports = baseMerge;\n", "var baseMerge = require('./_baseMerge'),\n    createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n *   'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n *   'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n  baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n", "var baseForOwn = require('./_baseForOwn');\n\n/**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseInverter(object, setter, iteratee, accumulator) {\n  baseForOwn(object, function(value, key, object) {\n    setter(accumulator, iteratee(value), key, object);\n  });\n  return accumulator;\n}\n\nmodule.exports = baseInverter;\n", "var baseInverter = require('./_baseInverter');\n\n/**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\nfunction createInverter(setter, toIteratee) {\n  return function(object, iteratee) {\n    return baseInverter(object, setter, toIteratee(iteratee), {});\n  };\n}\n\nmodule.exports = createInverter;\n", "var constant = require('./constant'),\n    createInverter = require('./_createInverter'),\n    identity = require('./identity');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\nvar invert = createInverter(function(result, value, key) {\n  if (value != null &&\n      typeof value.toString != 'function') {\n    value = nativeObjectToString.call(value);\n  }\n\n  result[value] = key;\n}, constant(identity));\n\nmodule.exports = invert;\n", "var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n    CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n", "var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n  return function(collection, iteratee) {\n    if (collection == null) {\n      return collection;\n    }\n    if (!isArrayLike(collection)) {\n      return eachFunc(collection, iteratee);\n    }\n    var length = collection.length,\n        index = fromRight ? length : -1,\n        iterable = Object(collection);\n\n    while ((fromRight ? index-- : ++index < length)) {\n      if (iteratee(iterable[index], index, iterable) === false) {\n        break;\n      }\n    }\n    return collection;\n  };\n}\n\nmodule.exports = createBaseEach;\n", "var baseForOwn = require('./_baseForOwn'),\n    createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n", "var identity = require('./identity');\n\n/**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\nfunction castFunction(value) {\n  return typeof value == 'function' ? value : identity;\n}\n\nmodule.exports = castFunction;\n", "var arrayEach = require('./_arrayEach'),\n    baseEach = require('./_baseEach'),\n    castFunction = require('./_castFunction'),\n    isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n *   console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n *   console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\nfunction forEach(collection, iteratee) {\n  var func = isArray(collection) ? arrayEach : baseEach;\n  return func(collection, castFunction(iteratee));\n}\n\nmodule.exports = forEach;\n", "/**\n * Map of all Contentful block types. Blocks contain inline or block nodes.\n */\nexport enum BLOCKS {\n  DOCUMENT = 'document',\n  PARAGRAPH = 'paragraph',\n\n  HEADING_1 = 'heading-1',\n  HEADING_2 = 'heading-2',\n  HEADING_3 = 'heading-3',\n  HEADING_4 = 'heading-4',\n  HEADING_5 = 'heading-5',\n  HEADING_6 = 'heading-6',\n\n  OL_LIST = 'ordered-list',\n  UL_LIST = 'unordered-list',\n  LIST_ITEM = 'list-item',\n\n  HR = 'hr',\n  QUOTE = 'blockquote',\n\n  EMBEDDED_ENTRY = 'embedded-entry-block',\n  EMBEDDED_ASSET = 'embedded-asset-block',\n  EMBEDDED_RESOURCE = 'embedded-resource-block',\n\n  TABLE = 'table',\n  TABLE_ROW = 'table-row',\n  TABLE_CELL = 'table-cell',\n  TABLE_HEADER_CELL = 'table-header-cell',\n}\n", "/**\n * Map of all Contentful inline types. Inline contain inline or text nodes.\n */\nexport enum INLINES {\n  HYPERLINK = 'hyperlink',\n  ENTRY_HYPERLINK = 'entry-hyperlink',\n  ASSET_HYPERLINK = 'asset-hyperlink',\n  RESOURCE_HYPERLINK = 'resource-hyperlink',\n  EMBEDDED_ENTRY = 'embedded-entry-inline',\n  EMBEDDED_RESOURCE = 'embedded-resource-inline',\n}\n", "/**\n * Map of all Contentful marks.\n */\nexport enum MARKS {\n  BOLD = 'bold',\n  ITALIC = 'italic',\n  UNDERLINE = 'underline',\n  CODE = 'code',\n  SUPERSCRIPT = 'superscript',\n  SUBSCRIPT = 'subscript',\n}\n", "import { BLOCKS } from './blocks';\nimport { INLINES } from './inlines';\nimport { MARKS } from './marks';\n\nexport type TopLevelBlockEnum =\n  | BLOCKS.PARAGRAPH\n  | BLOCKS.HEADING_1\n  | BLOCKS.HEADING_2\n  | BLOCKS.HEADING_3\n  | BLOCKS.HEADING_4\n  | BLOCKS.HEADING_5\n  | BLOCKS.HEADING_6\n  | BLOCKS.OL_LIST\n  | BLOCKS.UL_LIST\n  | BLOCKS.HR\n  | BLOCKS.QUOTE\n  | BLOCKS.EMBEDDED_ENTRY\n  | BLOCKS.EMBEDDED_ASSET\n  | BLOCKS.EMBEDDED_RESOURCE\n  | BLOCKS.TABLE;\n\n/**\n * Array of all top level block types.\n * Only these block types can be the direct children of the document.\n */\nexport const TOP_LEVEL_BLOCKS: TopLevelBlockEnum[] = [\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n  BLOCKS.TABLE,\n];\n\nexport type ListItemBlockEnum =\n  | BLOCKS.PARAGRAPH\n  | BLOCKS.HEADING_1\n  | BLOCKS.HEADING_2\n  | BLOCKS.HEADING_3\n  | BLOCKS.HEADING_4\n  | BLOCKS.HEADING_5\n  | BLOCKS.HEADING_6\n  | BLOCKS.OL_LIST\n  | BLOCKS.UL_LIST\n  | BLOCKS.HR\n  | BLOCKS.QUOTE\n  | BLOCKS.EMBEDDED_ENTRY\n  | BLOCKS.EMBEDDED_ASSET\n  | BLOCKS.EMBEDDED_RESOURCE;\n\n/**\n * Array of all allowed block types inside list items\n */\nexport const LIST_ITEM_BLOCKS: TopLevelBlockEnum[] = [\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n];\n\nexport const TABLE_BLOCKS = [\n  BLOCKS.TABLE,\n  BLOCKS.TABLE_ROW,\n  BLOCKS.TABLE_CELL,\n  BLOCKS.TABLE_HEADER_CELL,\n];\n\n/**\n * Array of all void block types\n */\nexport const VOID_BLOCKS = [\n  BLOCKS.HR,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  BLOCKS.EMBEDDED_RESOURCE,\n];\n\n/**\n * Dictionary of all container block types, and the set block types they accept as children.\n *\n * Note: This does not include `[BLOCKS.DOCUMENT]: TOP_LEVEL_BLOCKS`\n */\nexport const CONTAINERS = {\n  [BLOCKS.OL_LIST]: [BLOCKS.LIST_ITEM],\n  [BLOCKS.UL_LIST]: [BLOCKS.LIST_ITEM],\n  [BLOCKS.LIST_ITEM]: LIST_ITEM_BLOCKS,\n  [BLOCKS.QUOTE]: [BLOCKS.PARAGRAPH],\n  [BLOCKS.TABLE]: [BLOCKS.TABLE_ROW],\n  [BLOCKS.TABLE_ROW]: [BLOCKS.TABLE_CELL, BLOCKS.TABLE_HEADER_CELL],\n  [BLOCKS.TABLE_CELL]: [BLOCKS.PARAGRAPH],\n  [BLOCKS.TABLE_HEADER_CELL]: [BLOCKS.PARAGRAPH],\n};\n\n/**\n * Array of all heading levels\n */\nexport const HEADINGS = [\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n];\n\n/**\n * Array of all block types that may contain text and inline nodes.\n */\nexport const TEXT_CONTAINERS = [BLOCKS.PARAGRAPH, ...HEADINGS];\n\n/**\n * Node types before `tables` release.\n */\nexport const V1_NODE_TYPES = [\n  BLOCKS.DOCUMENT,\n  BLOCKS.PARAGRAPH,\n  BLOCKS.HEADING_1,\n  BLOCKS.HEADING_2,\n  BLOCKS.HEADING_3,\n  BLOCKS.HEADING_4,\n  BLOCKS.HEADING_5,\n  BLOCKS.HEADING_6,\n  BLOCKS.OL_LIST,\n  BLOCKS.UL_LIST,\n  BLOCKS.LIST_ITEM,\n  BLOCKS.HR,\n  BLOCKS.QUOTE,\n  BLOCKS.EMBEDDED_ENTRY,\n  BLOCKS.EMBEDDED_ASSET,\n  INLINES.HYPERLINK,\n  INLINES.ENTRY_HYPERLINK,\n  INLINES.ASSET_HYPERLINK,\n  INLINES.EMBEDDED_ENTRY,\n  'text',\n];\n\n/**\n * Marks before `superscript` & `subscript` release.\n */\nexport const V1_MARKS = [MARKS.BOLD, MARKS.CODE, MARKS.ITALIC, MARKS.UNDERLINE];\n", "import { Document } from './types';\nimport { BLOCKS } from './blocks';\n\n/**\n * A rich text document considered to be empty.\n * Any other document structure than this is not considered empty.\n */\nexport const EMPTY_DOCUMENT: Document = {\n  nodeType: BLOCKS.DOCUMENT,\n  data: {},\n  content: [\n    {\n      nodeType: BLOCKS.PARAGRAPH,\n      data: {},\n      content: [\n        {\n          nodeType: 'text',\n          value: '',\n          marks: [],\n          data: {},\n        },\n      ],\n    },\n  ],\n};\n", "import { Node, Block, Inline, Text } from './types';\nimport { BLOCKS } from './blocks';\nimport { INLINES } from './inlines';\n\n/**\n * Tiny replacement for Object.values(object).includes(key) to\n * avoid including CoreJS polyfills\n */\nfunction hasValue(obj: Record<string, unknown>, value: unknown) {\n  for (const key of Object.keys(obj)) {\n    if (value === obj[key]) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\n/**\n * Checks if the node is an instance of Inline.\n */\nexport function isInline(node: Node): node is Inline {\n  return hasValue(INLINES, node.nodeType);\n}\n\n/**\n * Checks if the node is an instance of Block.\n */\nexport function isBlock(node: Node): node is Block {\n  return hasValue(BLOCKS, node.nodeType);\n}\n\n/**\n * Checks if the node is an instance of Text.\n */\nexport function isText(node: Node): node is Text {\n  return node.nodeType === 'text';\n}\n", "export { BLOCKS } from './blocks';\nexport { INLINES } from './inlines';\nexport { MARKS } from './marks';\n\nexport * from './schemaConstraints';\n\nexport * from './types';\nexport * from './nodeTypes';\n\nexport { EMPTY_DOCUMENT } from './emptyDocument';\n\nimport * as helpers from './helpers';\nexport { helpers };\n", "import { cloneElement, isValidElement, ReactNode } from 'react';\n\nexport function appendKeyToValidElement(element: ReactNode, key: number): ReactNode {\n  if (isValidElement(element) && element.key === null) {\n    return cloneElement(element, { key });\n  }\n  return element;\n}\n", "import React, { ReactNode } from 'react';\nimport { helpers, Mark } from '@contentful/rich-text-types';\nimport { CommonNode, Options } from '..';\nimport { appendKeyToValidElement } from './appendKeyToValidElement';\n\nexport function nodeListToReactComponents(nodes: CommonNode[], options: Options): ReactNode {\n  return nodes.map((node: CommonNode, index: number): ReactNode => {\n    return appendKeyToValidElement(nodeToReactComponent(node, options), index);\n  });\n}\n\nexport function nodeToReactComponent(node: CommonNode, options: Options): ReactNode {\n  const { renderNode, renderMark, renderText, preserveWhitespace } = options;\n\n  if (helpers.isText(node)) {\n    let nodeValue: ReactNode = renderText ? renderText(node.value) : node.value;\n\n    if (preserveWhitespace) {\n      // Preserve multiple spaces.\n      nodeValue = (nodeValue as string).replace(/ {2,}/g, (match) => '\\u00A0'.repeat(match.length));\n\n      // Preserve line breaks.\n      let lines = (nodeValue as string).split('\\n');\n      let jsxLines: (string | JSX.Element)[] = [];\n      lines.forEach((line, index) => {\n        jsxLines.push(line);\n        if (index !== lines.length - 1) {\n          jsxLines.push(<br />);\n        }\n      });\n      nodeValue = jsxLines;\n    }\n\n    return node.marks.reduce((value: ReactNode, mark: Mark): ReactNode => {\n      if (!renderMark[mark.type]) {\n        return value;\n      }\n      return renderMark[mark.type](value);\n    }, nodeValue);\n  } else {\n    const children: ReactNode = nodeListToReactComponents(node.content, options);\n    if (!node.nodeType || !renderNode[node.nodeType]) {\n      return <>{children}</>;\n    }\n    return renderNode[node.nodeType](node, children);\n  }\n}\n", "import React, { ReactNode } from 'react';\nimport { Block, BLOCKS, Document, Inline, INLINES, MARKS, Text } from '@contentful/rich-text-types';\nimport { nodeToReactComponent } from './util/nodeListToReactComponents';\n\nconst defaultNodeRenderers: RenderNode = {\n  [BLOCKS.DOCUMENT]: (node, children) => children,\n  [BLOCKS.PARAGRAPH]: (node, children) => <p>{children}</p>,\n  [BLOCKS.HEADING_1]: (node, children) => <h1>{children}</h1>,\n  [BLOCKS.HEADING_2]: (node, children) => <h2>{children}</h2>,\n  [BLOCKS.HEADING_3]: (node, children) => <h3>{children}</h3>,\n  [BLOCKS.HEADING_4]: (node, children) => <h4>{children}</h4>,\n  [BLOCKS.HEADING_5]: (node, children) => <h5>{children}</h5>,\n  [BLOCKS.HEADING_6]: (node, children) => <h6>{children}</h6>,\n  [BLOCKS.EMBEDDED_ENTRY]: (node, children) => <div>{children}</div>,\n  [BLOCKS.EMBEDDED_RESOURCE]: (node, children) => <div>{children}</div>,\n  [BLOCKS.UL_LIST]: (node, children) => <ul>{children}</ul>,\n  [BLOCKS.OL_LIST]: (node, children) => <ol>{children}</ol>,\n  [BLOCKS.LIST_ITEM]: (node, children) => <li>{children}</li>,\n  [BLOCKS.QUOTE]: (node, children) => <blockquote>{children}</blockquote>,\n  [BLOCKS.HR]: () => <hr />,\n  [BLOCKS.TABLE]: (node, children) => (\n    <table>\n      <tbody>{children}</tbody>\n    </table>\n  ),\n  [BLOCKS.TABLE_ROW]: (node, children) => <tr>{children}</tr>,\n  [BLOCKS.TABLE_HEADER_CELL]: (node, children) => <th>{children}</th>,\n  [BLOCKS.TABLE_CELL]: (node, children) => <td>{children}</td>,\n  [INLINES.ASSET_HYPERLINK]: (node) => defaultInline(INLINES.ASSET_HYPERLINK, node as Inline),\n  [INLINES.ENTRY_HYPERLINK]: (node) => defaultInline(INLINES.ENTRY_HYPERLINK, node as Inline),\n  [INLINES.RESOURCE_HYPERLINK]: (node) =>\n    defaultInlineResource(INLINES.RESOURCE_HYPERLINK, node as Inline),\n  [INLINES.EMBEDDED_ENTRY]: (node) => defaultInline(INLINES.EMBEDDED_ENTRY, node as Inline),\n  [INLINES.EMBEDDED_RESOURCE]: (node, children) =>\n    defaultInlineResource(INLINES.EMBEDDED_RESOURCE, node as Inline),\n  [INLINES.HYPERLINK]: (node, children) => <a href={node.data.uri}>{children}</a>,\n};\n\nconst defaultMarkRenderers: RenderMark = {\n  [MARKS.BOLD]: (text) => <b>{text}</b>,\n  [MARKS.ITALIC]: (text) => <i>{text}</i>,\n  [MARKS.UNDERLINE]: (text) => <u>{text}</u>,\n  [MARKS.CODE]: (text) => <code>{text}</code>,\n  [MARKS.SUPERSCRIPT]: (text) => <sup>{text}</sup>,\n  [MARKS.SUBSCRIPT]: (text) => <sub>{text}</sub>,\n};\n\nfunction defaultInline(type: string, node: Inline): ReactNode {\n  return (\n    <span key={node.data.target.sys.id}>\n      type: {node.nodeType} id: {node.data.target.sys.id}\n    </span>\n  );\n}\n\nfunction defaultInlineResource(type: string, node: Inline) {\n  return (\n    <span key={node.data.target.sys.urn}>\n      type: {node.nodeType} urn: {node.data.target.sys.urn}\n    </span>\n  );\n}\n\nexport type CommonNode = Text | Block | Inline;\n\nexport interface NodeRenderer {\n  (node: Block | Inline, children: ReactNode): ReactNode;\n}\n\nexport interface RenderNode {\n  [k: string]: NodeRenderer;\n}\n\nexport interface RenderMark {\n  [k: string]: (text: ReactNode) => ReactNode;\n}\n\nexport interface RenderText {\n  (text: string): ReactNode;\n}\n\nexport interface Options {\n  /**\n   * Node renderers\n   */\n  renderNode?: RenderNode;\n  /**\n   * Mark renderers\n   */\n  renderMark?: RenderMark;\n  /**\n   * Text renderer\n   */\n  renderText?: RenderText;\n  /**\n   * Keep line breaks and multiple spaces\n   */\n  preserveWhitespace?: boolean;\n}\n\n/**\n * Serialize a Contentful Rich Text `document` to React tree\n */\nexport function documentToReactComponents(\n  richTextDocument: Document,\n  options: Options = {},\n): ReactNode {\n  if (!richTextDocument) {\n    return null;\n  }\n\n  return nodeToReactComponent(richTextDocument, {\n    renderNode: {\n      ...defaultNodeRenderers,\n      ...options.renderNode,\n    },\n    renderMark: {\n      ...defaultMarkRenderers,\n      ...options.renderMark,\n    },\n    renderText: options.renderText,\n    preserveWhitespace: options.preserveWhitespace,\n  });\n}\n", "/**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\nfunction isNull(value) {\n  return value === null;\n}\n\nmodule.exports = isNull;\n", "'use strict';\n\n\nvar resolvers = {\n  simple: function (args) {\n    if (!args.length) return '\\u0001';\n\n    return args.join('\\u0002');\n  },\n\n  json: function (args) {\n    if (!args.length) return '\\u0001';\n\n    var res = [];\n\n    for (var i = args.length - 1; i >= 0; i--) {\n      res.push(JSON.stringify(args[i]));\n    }\n\n    return res.join('\\u0002');\n  }\n};\n\n\nfunction createFlexResolver(params) {\n  params.forEach(function (p) {\n    if (typeof p === 'string' && !resolvers.hasOwnProperty(p)) {\n      throw new Error('promise-memoize: unknown value \"' + p + '\" in resolve option');\n    }\n  });\n\n  return function (args) {\n    var max = Math.min(params.length, args.length);\n\n    if (!max) return '\\u0001';\n\n    var res = [];\n\n    for (var i = 0; i < max; i++) {\n      if (typeof params[i] === 'string') {\n        res.push(resolvers[params[i]]([ args[i] ]));\n      } else {\n        res.push(params[i](args[i]));\n      }\n    }\n\n    return res.join('\\u0002');\n  };\n}\n\n\nmodule.exports = function createResolver(how) {\n  if (typeof how === 'undefined') return resolvers.simple;\n\n  if (typeof how === 'string' && resolvers.hasOwnProperty(how)) return resolvers[how];\n\n  if (Array.isArray(how)) return createFlexResolver(how);\n\n  if (Object.prototype.toString.call(how) === '[object Function]') return how;\n\n  throw new Error('promise-memoize: invalid resolve option');\n};\n", "'use strict';\n\n\nvar resolver = require('./resolver');\n\n////////////////////////////////////////////////////////////////////////////////\n// Helpers\n\nfunction _toTrue()  { return true; }\nfunction _toFalse() { return false; }\n\nfunction pSuccess(promise) { return promise.then(_toTrue, _toFalse); }\n\nfunction _pass(data) { return data; }\nfunction _throw(err) { throw err; }\n\nfunction ensurePromise(thenable) {\n  return thenable.then(_pass, _throw);\n}\n\n////////////////////////////////////////////////////////////////////////////////\n\nfunction createCacheObj(result, args) {\n  return {\n    result:         result,\n    args:           args,\n    expire_id:      0,\n    prefetch_id:    0,\n    need_prefetch:  false\n  };\n}\n\n\nfunction destroyCacheObj(cache, key) {\n  if (!cache[key]) return; // Safeguard\n\n  clearTimeout(cache[key].expire_id);\n  clearTimeout(cache[key].prefetch_id);\n\n  delete cache[key];\n}\n\n\nfunction askPrefetch(cache, key) {\n  if (!cache[key]) return; // Safeguard\n\n  cache[key].need_prefetch = true;\n}\n\n\nfunction _track_proceed(args) {\n  // args = [ pSuccess(cache[key].result), cache, key, config ]\n  var success = args[0],\n      cache   = args[1],\n      key     = args[2],\n      config  = args[3];\n\n  if (!cache[key]) return; // Safeguard, if .clear() happens while fetch\n\n  if (success) {\n\n    if (!config.maxAge) return;\n\n    // Such call will not work in IE9 without polyfill.\n    // https://developer.mozilla.org/docs/Web/API/WindowTimers/setTimeout\n    cache[key].expire_id   = setTimeout(destroyCacheObj, config.maxAge, cache, key);\n    cache[key].prefetch_id = setTimeout(askPrefetch, config.maxAge * 0.7, cache, key);\n\n    /* istanbul ignore else */\n    if (cache[key].expire_id.unref) cache[key].expire_id.unref();\n\n    /* istanbul ignore else */\n    if (cache[key].prefetch_id.unref) cache[key].prefetch_id.unref();\n\n    return;\n  }\n\n  // on fail\n\n  if (!config.maxErrorAge) {\n    destroyCacheObj(cache, key);\n    return;\n  }\n\n  // Don't try to prefetch on error, for simplicity\n  cache[key].expire_id = setTimeout(destroyCacheObj, config.maxErrorAge, cache, key);\n\n  /* istanbul ignore else */\n  if (cache[key].expire_id.unref) cache[key].expire_id.unref();\n\n}\n\n\n// Wait for data & start timers, depending on result & options\nfunction trackCacheObj(cache, key, config) {\n  var P = cache[key].result.constructor;\n\n  P.all([\n    pSuccess(cache[key].result),\n    cache,\n    key,\n    config\n  ])\n    .then(_track_proceed);\n}\n\n\nfunction _prefetch_proceed(args) {\n  // args = [ pSuccess(cache[key].result), cache, key, config, [ result ] ]\n  var success = args[0],\n      cache   = args[1],\n      key     = args[2],\n      config  = args[3],\n      result  = args[4][0];\n\n  if (!cache[key]) return; // Safeguard, if .clear() happens while fetch\n\n  if (!success) return;\n\n  cache[key].result = result;\n  clearTimeout(cache[key].expire_id);\n\n  /*eslint-disable no-use-before-define*/\n  trackCacheObj(cache, key, config);\n}\n\n\nfunction doPrefetch(cache, key, config) {\n  var result = ensurePromise(config.fn.apply(null, cache[key].args)),\n      P      = result.constructor;\n\n  cache[key].need_prefetch = false;\n\n  // On success - substitute data & restart tracker.\n  // On fail - do nothing, data will be killed by expiration timer.\n  P.all([\n    pSuccess(result),\n    cache,\n    key,\n    config,\n    [ result ] // protect from resolve\n  ])\n    .then(_prefetch_proceed);\n}\n\n\nmodule.exports = function promiseMemoize(fn, options) {\n  var cache       = {},\n      _options    = options || {},\n      resolve     = resolver(_options.resolve),\n      config      = {\n        fn:          fn,\n        maxAge:      _options.maxAge || 0,\n        maxErrorAge: _options.maxErrorAge || 0\n      };\n\n  function memoizedFn() {\n    var args = new Array(arguments.length);\n\n    for (var i = 0; i < args.length; i++) args[i] = arguments[i];\n\n    var key = resolve(args);\n\n    if (cache[key]) {\n      if (cache[key].need_prefetch) doPrefetch(cache, key, config);\n\n    } else {\n      cache[key] = createCacheObj(\n        ensurePromise(config.fn.apply(null, args)),\n        config.maxAge || config.maxErrorAge ? args : null // Store args only if needed\n      );\n      trackCacheObj(cache, key, config);\n    }\n\n    return cache[key].result;\n  }\n\n  memoizedFn.clear = function () {\n    var keys = Object.keys(cache);\n\n    keys.forEach(function (key) { destroyCacheObj(cache, key); });\n\n    return keys.length; // Number of cleared keys, useful for tests\n  };\n\n  return memoizedFn;\n};\n", "'use strict';\n\n\nmodule.exports = require('./lib/memoize');\n", "/* eslint-disable import/no-unused-modules */\n/** State that is returned when something is registered to the async data controller. */\nexport interface AsyncDataState<T> {\n  data?: T;\n  error?: unknown;\n  isLoading: boolean;\n  hasLoaded: boolean;\n}\n/** Props for registering something to the async data controller */\nexport interface AsyncDataProps<T> {\n  /**\n   * The id used to store the related callbacks in the Map/Cache. Make sure this is shared only\n   * among things that are listening to the same promise, otherwise things will need their own\n   * unique dataId.\n   */\n  dataId: string;\n  /** The time to live in the cache. */\n  ttlMs?: number;\n  /**\n   * Async function that we want to track with the async data controller. Will not fire if entry is\n   * found in the cache.\n   */\n  dataAsync: () => Promise<T>;\n  /** Fires if the async function errors (or onData errors). */\n  onError?: (error: unknown) => void;\n  /** Fires when the async function resolves. */\n  onData?: (data: T) => void;\n}\n\nexport interface CacheEntry {\n  data?: unknown;\n  error?: unknown;\n  expiryTime: number;\n}\n\ntype DataListener<T = unknown> = (data: T) => void;\ntype ErrorListener = (error: unknown) => void;\n\n/**\n * Class that helps track the completion of multiple async functions. This can be used to make sure\n * all async calls have finished running on the server side before passing the html to the client.\n *\n * Also includes a simple cache to prevent re-fetching data that we already have.\n */\nexport class AsyncDataController {\n  private readonly clock: () => number;\n  private readonly resultCache: Map<string, CacheEntry>;\n  private readonly onDataListeners = new Map<string, Set<DataListener>>();\n  private readonly onErrorListeners = new Map<string, Set<ErrorListener>>();\n  private readonly unsettledPromises = new Map<string, Promise<unknown>>();\n  private readonly defaultExpiryTimeMs: number;\n  private readonly errorHandler: (e: unknown) => unknown;\n\n  constructor(props: {\n    clock?: () => number;\n    cache?: Map<string, CacheEntry>;\n    defaultExpiryTimeMs?: number;\n    errorHandler?: (e: unknown) => unknown;\n  }) {\n    this.clock = props.clock ?? Date.now;\n    this.resultCache = props.cache ?? new Map<string, CacheEntry>();\n    this.defaultExpiryTimeMs = props.defaultExpiryTimeMs ?? 30e3;\n    this.errorHandler = props.errorHandler ?? console.error;\n  }\n\n  /**\n   * Registers an async function to the AsyncDataController. This is used to tell the controller\n   * that this is an async call that we want to wait for. If the dataId is already found in the\n   * cache, it will return the data, otherwise it will return the loading state.\n   *\n   * TODO: https://jira.sc-corp.net/browse/ENTWEB-8313 Add Retry Capabilities !IMPORTANT!\n   *\n   * @param props List of props and options for registering an async function to the listener\n   * @returns The state of the function. If it is loading, it will return the loading state. If the\n   *   promise has resolved already, it will return the data found in the cache.\n   */\n  public register = <T>(props: AsyncDataProps<T>): AsyncDataState<T> => {\n    const now = this.clock();\n\n    // Check to see if data is in the store.\n    if (this.resultCache.has(props.dataId)) {\n      const cachedEntry = this.resultCache.get(props.dataId)!;\n\n      if (cachedEntry.expiryTime >= now) {\n        if (cachedEntry.error) {\n          return {\n            error: cachedEntry.error,\n            hasLoaded: true,\n            isLoading: false,\n          };\n        } else {\n          // Not checking for !!data because it's OK for it to be undefined.\n          return {\n            data: cachedEntry.data as T,\n            hasLoaded: true,\n            isLoading: false,\n          };\n        }\n      } else {\n        this.delete(props.dataId);\n      }\n    }\n\n    // Adds listeners for future events.\n    if (!this.onDataListeners.has(props.dataId)) this.onDataListeners.set(props.dataId, new Set());\n    if (!this.onErrorListeners.has(props.dataId))\n      this.onErrorListeners.set(props.dataId, new Set());\n\n    props.onData &&\n      (this.onDataListeners.get(props.dataId)! as Set<DataListener<T>>).add(props.onData);\n    props.onError && this.onErrorListeners.get(props.dataId)!.add(props.onError);\n\n    // If promise is already in progress, return is loading state.\n    if (this.unsettledPromises.has(props.dataId)) {\n      return {\n        hasLoaded: false,\n        isLoading: true,\n      };\n    }\n\n    const promise = props.dataAsync();\n    this.unsettledPromises.set(props.dataId, promise);\n\n    promise\n      .then(result => {\n        this.resultCache.set(props.dataId, {\n          data: result,\n          expiryTime: this.clock() + (props.ttlMs ?? this.defaultExpiryTimeMs),\n        });\n\n        const dataListeners = this.onDataListeners.get(props.dataId)!;\n\n        // Try catch the onData listeners because it shouldn't\n        // error out the whole promise.\n        dataListeners.forEach(listener => {\n          try {\n            listener(result);\n          } catch (e) {\n            this.errorHandler(e);\n          }\n        });\n\n        dataListeners.clear();\n        this.unsettledPromises.delete(props.dataId);\n      })\n      .catch(error => {\n        this.resultCache.set(props.dataId, {\n          error,\n          expiryTime: this.clock() + (props.ttlMs ?? 30e3),\n        });\n\n        const errorListeners = this.onErrorListeners.get(props.dataId)!;\n\n        // Try catch the onError listeners because it shouldn't\n        // error out the whole promise.\n        errorListeners.forEach(listener => {\n          try {\n            listener(error);\n          } catch (e) {\n            this.errorHandler(e);\n          }\n        });\n\n        errorListeners.clear();\n        this.unsettledPromises.delete(props.dataId);\n      });\n\n    return {\n      isLoading: true,\n      hasLoaded: false,\n    };\n  };\n\n  /** Returns the number of unsettledPromises */\n  public countUnsettledPromises = (): number => {\n    return this.unsettledPromises.size;\n  };\n\n  /** Returns the keys (dataId) of unsettledPromises */\n  public unawaitedPromiseKeys = (): string[] => {\n    return [...this.unsettledPromises.keys()];\n  };\n\n  /**\n   * Function that waits for all promises to finish. We do not return results as of right now,\n   * because there is no need to handle them at this level (since we attach onData or onError). We\n   * might need to return whether or not there were any rejections though. TBD.\n   *\n   * TODO: revisit how we handle errors at this level\n   *\n   * @returns A Promise that returns nothing\n   */\n  public allUnawaitedPromises = async (): Promise<void> => {\n    await Promise.allSettled(this.unsettledPromises.values());\n  };\n\n  /**\n   * Removes expired entries in cache and returns the cache.\n   *\n   * @returns Cached data.\n   */\n  public getCache = (): Map<string, CacheEntry> => {\n    this.cleanCache();\n    return this.resultCache;\n  };\n\n  /**\n   * Removes expired entries from the cache, and returns how many entries were removed.\n   *\n   * @returns Number of entries removed from the cache.\n   */\n  public cleanCache = (): number => {\n    let numDeleted = 0;\n\n    this.resultCache.forEach((value, key) => {\n      if (value.expiryTime < this.clock()) {\n        this.delete(key);\n        numDeleted++;\n      }\n    });\n\n    return numDeleted;\n  };\n\n  /**\n   * Deletes all listeners and the entry in the result cache if it exists.\n   *\n   * @param key DataId of the entry you want to clear\n   */\n  public delete = (key: string): void => {\n    this.resultCache.delete(key);\n    this.onDataListeners.delete(key);\n    this.onErrorListeners.delete(key);\n  };\n}\n\nexport const asyncDataController = new AsyncDataController({ clock: Date.now });\n", "import type {\n  BrowserBrand,\n  HighEntropyBrowserHints,\n  LowEntropyBrowserHints,\n} from '@snapchat/client-hints';\nimport {\n  AbstractBrowserFeature,\n  parseBrowserBrand,\n  parseMajorVersion,\n  parsePlatform,\n  parseUserAgent,\n} from '@snapchat/client-hints';\n\nimport type { BrowserFeaturesWindow, HighEntropyUserAgentValues } from './navigatorData';\n\n/**\n * Keys to the getHighEntropyValues function based on the client hints requested.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/getHighEntropyValues\n */\nconst highEntropyUserAgentHints: Partial<\n  Record<keyof HighEntropyBrowserHints, keyof HighEntropyUserAgentValues>\n> = {\n  platformVersion: 'platformVersion',\n  architecture: 'architecture',\n  bitness: 'bitness',\n  model: 'model',\n  fullBrowsers: 'fullVersionList',\n};\n\n/** Browser feature looking for the client. */\nexport class ClientBrowserFeature extends AbstractBrowserFeature {\n  private readonly featuresWindow: BrowserFeaturesWindow;\n\n  constructor(featuresWindow: BrowserFeaturesWindow = window as BrowserFeaturesWindow) {\n    super({\n      /* Nothing here. Can use window object. */\n    });\n    this.featuresWindow = featuresWindow;\n  }\n\n  /** @override */\n  protected computeLowEntropyHints(): LowEntropyBrowserHints {\n    const legacy = parseUserAgent(this.featuresWindow.navigator.userAgent);\n    const browsers = this.featuresWindow.navigator.userAgentData?.brands?.map(brand => ({\n      brand: parseBrowserBrand(brand.brand),\n      majorVersion: Number(parseMajorVersion(brand.version)),\n    }));\n\n    return {\n      browsers: browsers ?? legacy.browsers,\n      platform:\n        parsePlatform(this.featuresWindow.navigator.userAgentData?.platform) ?? legacy.platform,\n      isMobile: this.featuresWindow.navigator.userAgentData?.mobile ?? legacy.isMobile,\n      saveData: this.featuresWindow.navigator.connection?.saveData ?? legacy.isMobile,\n    };\n  }\n\n  /** @override */\n  protected async computeHighEntropyHintsAsync(\n    ...hints: Array<keyof HighEntropyBrowserHints>\n  ): Promise<HighEntropyBrowserHints> {\n    const highEntropyValues =\n      await this.featuresWindow.navigator.userAgentData?.getHighEntropyValues(\n        hints.map(hint => highEntropyUserAgentHints[hint]!).filter(Boolean)\n      );\n    const reduceMotion = this.featuresWindow.matchMedia('(prefers-reduced-motion: reduce)').matches;\n    const preferDark = this.featuresWindow.matchMedia('(prefers-color-scheme: dark)').matches;\n    const preferLight = this.featuresWindow.matchMedia('(prefers-color-scheme: light)').matches;\n    return {\n      viewportWidth: this.featuresWindow.innerWidth,\n      viewportHeight: this.featuresWindow.innerHeight,\n      fullBrowsers: highEntropyValues?.fullVersionList?.map(brand => ({\n        brand: brand.brand as BrowserBrand,\n        fullVersion: brand.version,\n      })),\n      model: highEntropyValues?.model,\n      downlinkMbps: this.featuresWindow.navigator.connection?.downlink,\n      devicePixelRatio: this.featuresWindow.devicePixelRatio,\n      connection: this.featuresWindow.navigator.connection?.effectiveType,\n      architecture: highEntropyValues?.architecture,\n      bitness: highEntropyValues?.bitness ? Number(highEntropyValues?.bitness) : undefined,\n      reduceMotion,\n      colorScheme: preferDark ? 'dark' : preferLight ? 'light' : undefined,\n      platformVersion: highEntropyValues?.platformVersion,\n    };\n  }\n}\n", "import type { NormalizedCacheObject } from '@apollo/client';\nimport createCache from '@emotion/cache';\nimport { CacheProvider as EmotionCacheProvider } from '@emotion/react';\nimport { AsyncDataController } from '@snapchat/async-data';\nimport { ClientBrowserFeature } from '@snapchat/client-hints-browser';\nimport { printWarning } from '@snapchat/self-xss-warning';\nimport type { History } from 'history';\nimport { createRoot, hydrateRoot } from 'react-dom/client';\nimport type { HelmetData } from 'react-helmet-async';\n\nimport type { AppProps } from './App';\nimport { App } from './App';\nimport type { RedirectOptions, UserInfo } from './AppContext';\nimport { defaultContext } from './AppContext';\nimport { BrowserCookieManager } from './clientonly/BrowserCookieManager';\nimport { createUuidV4Browser } from './clientonly/browserCreateUuidV4';\nimport { initializeClientLogging } from './clientonly/loggingInitClient';\nimport { startClientLogging } from './clientonly/loggingStartClient';\nimport { Config } from './config';\nimport { FooterView, HeaderView } from './context/PageLayoutContext';\nimport { defaultLocale } from './helpers/locale';\nimport type { SerializedAppProps } from './index.template';\nimport { getOrCreateApolloClient } from './utils/contentful/ContentfulClientCache';\nimport { applyUrlOverrides } from './utils/contentful/contentfulUrlOverrides';\nimport { generateFragmentTypes } from './utils/contentful/generateFragmentTypes';\nimport { setTracer } from './utils/tracing';\nimport { BrowserTracer } from './utils/tracing/browserTracer';\nimport { ensureWebClientId } from './utils/webClientId/webClientIdUtils';\n\ninterface EsBuildDevError {\n  errors: {\n    location: {\n      file: string;\n      line: string;\n      column: string;\n    };\n    text: string;\n  }[];\n  // TODO: Add warnings here if they're useful.\n}\n\nconst defaultState: SerializedAppProps = {\n  currentLocale: defaultContext.currentLocale,\n  supportedLocales: defaultContext.supportedLocales,\n  userLocation: defaultContext.userLocation,\n  pageLayoutContext: {\n    footerView: FooterView.FULL_FOOTER,\n    headerView: HeaderView.FULL_HEADER,\n  },\n};\n\n// TODO: Move this into src/browser\nasync function main() {\n  // ===========================================================================\n  // Initialize logging and tracing.\n  // ===========================================================================\n  initializeClientLogging(Config);\n  startClientLogging(Config);\n\n  setTracer(new BrowserTracer());\n\n  // ===========================================================================\n  // Read APP_STATE\n  // ===========================================================================\n  // Note: APP_STATE is exported when server uses renderHtml.tsx.\n  const state: SerializedAppProps = window.APP_STATE ?? defaultState;\n\n  // print xss warning in console\n  printWarning(state.currentLocale);\n\n  // ===========================================================================\n  // Locale prefix redirect.\n  // ===========================================================================\n\n  // We should be redirecting on the server, but we change the url here for redundancy.\n  if (window.location.pathname.startsWith(`/${state.currentLocale}`)) {\n    const url = new URL(window.location.href);\n    url.pathname = url.pathname.replace(`/${state.currentLocale}`, '');\n\n    if (state.currentLocale !== defaultLocale) {\n      url.searchParams.set('lang', state.currentLocale);\n    }\n    window.history.pushState({}, '', url);\n  }\n\n  // ===========================================================================\n  // Initialize Apollo Clients\n  // ===========================================================================\n\n  // Note: APOLLO_STATE and GLOBAL_APOLLO_STATE is exported when server uses renderHtml.tsx.\n  const apolloCache: NormalizedCacheObject = window.APOLLO_STATE; // OK to be undefined.\n  const globalApolloCache: NormalizedCacheObject = window.GLOBAL_APOLLO_STATE; // OK to be undefined.\n  const requestUrl = new URLSearchParams(window.location.search);\n  const contentfulConfigWithOverrides = applyUrlOverrides(Config.contentful, requestUrl);\n\n  // Note: APOLLO_FRAGMENTS is exported when server uses renderHtml.tsx.\n  const localApolloFragments =\n    window.APOLLO_FRAGMENTS && Object.keys(window.APOLLO_FRAGMENTS).length > 0\n      ? window.APOLLO_FRAGMENTS\n      : await generateFragmentTypes(contentfulConfigWithOverrides);\n\n  const globalApolloFragments =\n    window.GLOBAL_APOLLO_FRAGMENTS && Object.keys(window.GLOBAL_APOLLO_FRAGMENTS).length > 0\n      ? window.GLOBAL_APOLLO_FRAGMENTS\n      : await generateFragmentTypes(Config.contentfulGlobal);\n\n  const apolloClient = getOrCreateApolloClient(state.currentLocale, [\n    contentfulConfigWithOverrides,\n    localApolloFragments,\n    apolloCache,\n  ]);\n\n  const globalApolloClient = getOrCreateApolloClient(state.currentLocale, [\n    Config.contentfulGlobal,\n    globalApolloFragments,\n    globalApolloCache,\n  ]);\n\n  // ===========================================================================\n  // Initialize Async data controller\n  // ===========================================================================\n\n  let asyncDataControllerCache = new Map();\n\n  if (window.ASYNC_DATA_CONTROLLER_CACHE) {\n    asyncDataControllerCache = new Map(Object.entries(window.ASYNC_DATA_CONTROLLER_CACHE ?? {}));\n  }\n\n  const asyncDataController = new AsyncDataController({\n    cache: asyncDataControllerCache,\n    // 1 hour 30 second default expiry time so that cached results returned from CDN\n    // do not expire immediately.\n    defaultExpiryTimeMs: 3600e3 + 30e3,\n    clock: Date.now,\n  });\n\n  // ===========================================================================\n  // Initialize Web Client ID\n  // ===========================================================================\n\n  const cookieManager = new BrowserCookieManager();\n  const createUuidV4 = createUuidV4Browser;\n\n  // Getting the web-client-id will set it if it doesn't exist.\n  // We can't do this in the App because we don't want the setting to happen\n  // on the server-side (blocks contents from being cached in CDN).\n  const webClientId = ensureWebClientId({\n    cookieManager,\n    createUuidV4,\n    currentUrl: new URL(window.location.href),\n    userLocation: state.userLocation,\n  });\n\n  /**\n   * Implementation of UserInfo provider that may short-circuit getting the cookie from the server\n   * if it's already available on the client.\n   *\n   * TODO: If the complexity of the UserInfo increases, we may want to break out the experiment\n   * bucket source into a separate provider.\n   */\n  const getUserInfoClient = (): Promise<UserInfo> => {\n    if (webClientId) {\n      return Promise.resolve({ experimentBucket: { id: webClientId } });\n    }\n\n    // If the sc-wcid cookie is not available, we need to fetch the experiment\n    // bucket source (ip address) from the server.\n    return fetch('/api/userinfo')\n      .then(response => response.json())\n      .catch(() => ({ experimentBucket: { id: 'default' } }));\n  };\n\n  // ===========================================================================\n  // Initialize redirect logic\n  // ===========================================================================\n\n  const onRedirectClient = (location: string, options?: RedirectOptions) => {\n    // Short circuit full urls.\n    const newTab = options?.newTab;\n\n    if (location.startsWith('http')) {\n      window.open(location, newTab ? '_blank' : '_self');\n      return;\n    }\n\n    // If we have access to React history object, we can update the state without\n    // a full page reload.\n    if (history && !newTab) {\n      // For internal links, we can push the state to the react history object.\n      history.push(location);\n      // But we do also want to add an item to the browser history.\n      window.history.pushState(null, '', new URL(location, window.location.href));\n      return;\n    }\n    // no history so need to do full reload.\n    window.open(location, newTab ? '_blank' : '_self');\n  };\n\n  // ===========================================================================\n  // Initialize client-side App props\n  // ===========================================================================\n\n  const browserFeatures = new ClientBrowserFeature();\n\n  let history: History<unknown> | undefined;\n\n  const clientAppProps: AppProps = {\n    ...state,\n    getCurrentUrl: () => window.location.href,\n    routerContext: {},\n    helmetContext: {} as HelmetData,\n    apolloClient,\n    globalApolloClient,\n    onRedirect: onRedirectClient,\n    onHistory: capturedHistory => {\n      history = capturedHistory;\n    },\n    browserFeatures,\n    asyncDataController,\n    globalPrivacyControl: navigator.globalPrivacyControl,\n    cookieManager,\n    createUuidV4,\n    getUserInfo: getUserInfoClient,\n    singleCallbackCache: new Map(),\n  };\n\n  // ===========================================================================\n  // Render App\n  // ===========================================================================\n\n  // Reads the stylesheet from `<style data-emotion=\"marketing-web-emotion ...\">...</style>` */\n  const cache = createCache({ key: 'marketing-web-emotion' });\n\n  // Server should pre-render the initial body using SSR, so we can call hydrate instead of render\n  const jsx = (\n    <EmotionCacheProvider value={cache}>\n      <App {...clientAppProps} />\n    </EmotionCacheProvider>\n  );\n\n  // Note: <main> element is specified in index.ejs.\n  const rootElement = document.querySelector('main');\n\n  if (!rootElement) {\n    console.error('HTML must contain a <main> element.');\n  } else if (rootElement.hasChildNodes() ?? false) {\n    hydrateRoot(rootElement, jsx);\n  } else {\n    // If SSR failed, we render fully. Without this SSR failures result in blank pages.\n    createRoot(rootElement).render(jsx);\n  }\n\n  // ==========================================================================\n  // Client Recompile Dev Reload\n  // ==========================================================================\n\n  let errorCount = 0;\n\n  if (Config.isLocal && Config.compilationMode === 'development') {\n    const serverStatus = new EventSource('/esbuild', {});\n\n    serverStatus.addEventListener('error', () => {\n      console.error('/esbuild server disconnected.');\n      errorCount++;\n\n      if (errorCount > 1e3) {\n        serverStatus.close();\n\n        console.info(\n          'Esbuild could not connnect after a 1000 attempts. Closing connection. Please reload.'\n        );\n      }\n      // TODO: Figure out if we want to close this. I.e. calling serverStatus.close();\n      // But that breaks the live reload if you restart dev server which isn't desirable in all\n      // circumstances.\n    });\n\n    serverStatus.addEventListener('change', event => {\n      const data = JSON.parse(event.data) as EsBuildDevError;\n\n      if (data.errors?.length) {\n        data.errors.forEach(error => {\n          const location = error.location;\n          const path = `${location.file}:${location.line}:${location.column}`;\n\n          console.error(` 'Build failed. Not reloading.', ${error.text} (${path})`);\n        });\n      } else {\n        console.info('Served content changed. Reloading');\n        location.reload();\n      }\n    });\n  }\n}\n\nmain().catch(error => console.error(error));\n", "/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol */\n\nvar extendStatics = function(d, b) {\n  extendStatics = Object.setPrototypeOf ||\n      ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n      function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n  return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n  if (typeof b !== \"function\" && b !== null)\n      throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n  extendStatics(d, b);\n  function __() { this.constructor = d; }\n  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n  __assign = Object.assign || function __assign(t) {\n      for (var s, i = 1, n = arguments.length; i < n; i++) {\n          s = arguments[i];\n          for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n      }\n      return t;\n  }\n  return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n      t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n      for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n          if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n              t[p[i]] = s[p[i]];\n      }\n  return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n  return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n  function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n  var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n  var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n  var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n  var _, done = false;\n  for (var i = decorators.length - 1; i >= 0; i--) {\n      var context = {};\n      for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n      for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n      context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n      var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n      if (kind === \"accessor\") {\n          if (result === void 0) continue;\n          if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n          if (_ = accept(result.get)) descriptor.get = _;\n          if (_ = accept(result.set)) descriptor.set = _;\n          if (_ = accept(result.init)) initializers.unshift(_);\n      }\n      else if (_ = accept(result)) {\n          if (kind === \"field\") initializers.unshift(_);\n          else descriptor[key] = _;\n      }\n  }\n  if (target) Object.defineProperty(target, contextIn.name, descriptor);\n  done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n  var useValue = arguments.length > 2;\n  for (var i = 0; i < initializers.length; i++) {\n      value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n  }\n  return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n  return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n  if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n  return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n  if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n  return new (P || (P = Promise))(function (resolve, reject) {\n      function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n      function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n      function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n      step((generator = generator.apply(thisArg, _arguments || [])).next());\n  });\n}\n\nexport function __generator(thisArg, body) {\n  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n  return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n  function verb(n) { return function (v) { return step([n, v]); }; }\n  function step(op) {\n      if (f) throw new TypeError(\"Generator is already executing.\");\n      while (g && (g = 0, op[0] && (_ = 0)), _) try {\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;\n          if (y = 0, t) op = [op[0] & 2, t.value];\n          switch (op[0]) {\n              case 0: case 1: t = op; break;\n              case 4: _.label++; return { value: op[1], done: false };\n              case 5: _.label++; y = op[1]; op = [0]; continue;\n              case 7: op = _.ops.pop(); _.trys.pop(); continue;\n              default:\n                  if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                  if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                  if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                  if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                  if (t[2]) _.ops.pop();\n                  _.trys.pop(); continue;\n          }\n          op = body.call(thisArg, _);\n      } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n      if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n  }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  var desc = Object.getOwnPropertyDescriptor(m, k);\n  if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n  }\n  Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n  for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n  var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n  if (m) return m.call(o);\n  if (o && typeof o.length === \"number\") return {\n      next: function () {\n          if (o && i >= o.length) o = void 0;\n          return { value: o && o[i++], done: !o };\n      }\n  };\n  throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n  var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n  if (!m) return o;\n  var i = m.call(o), r, ar = [], e;\n  try {\n      while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n  }\n  catch (error) { e = { error: error }; }\n  finally {\n      try {\n          if (r && !r.done && (m = i[\"return\"])) m.call(i);\n      }\n      finally { if (e) throw e.error; }\n  }\n  return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n  for (var ar = [], i = 0; i < arguments.length; i++)\n      ar = ar.concat(__read(arguments[i]));\n  return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n  for (var r = Array(s), k = 0, i = 0; i < il; i++)\n      for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n          r[k] = a[j];\n  return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n      if (ar || !(i in from)) {\n          if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n          ar[i] = from[i];\n      }\n  }\n  return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n  return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n  if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n  var g = generator.apply(thisArg, _arguments || []), i, q = [];\n  return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n  function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n  function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n  function fulfill(value) { resume(\"next\", value); }\n  function reject(value) { resume(\"throw\", value); }\n  function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n  var i, p;\n  return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n  function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n  if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n  var m = o[Symbol.asyncIterator], i;\n  return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n  function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n  function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n  if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n  return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n  Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n  o[\"default\"] = v;\n};\n\nexport function __importStar(mod) {\n  if (mod && mod.__esModule) return mod;\n  var result = {};\n  if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n  __setModuleDefault(result, mod);\n  return result;\n}\n\nexport function __importDefault(mod) {\n  return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n  if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n  if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n  return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n  if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n  if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n  if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n  return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n  if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n  return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n  if (value !== null && value !== void 0) {\n    if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n    var dispose;\n    if (async) {\n        if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n        dispose = value[Symbol.asyncDispose];\n    }\n    if (dispose === void 0) {\n        if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n        dispose = value[Symbol.dispose];\n    }\n    if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n    env.stack.push({ value: value, dispose: dispose, async: async });\n  }\n  else if (async) {\n    env.stack.push({ async: true });\n  }\n  return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n  var e = new Error(message);\n  return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n  function fail(e) {\n    env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n    env.hasError = true;\n  }\n  function next() {\n    while (env.stack.length) {\n      var rec = env.stack.pop();\n      try {\n        var result = rec.dispose && rec.dispose.call(rec.value);\n        if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n      }\n      catch (e) {\n          fail(e);\n      }\n    }\n    if (env.hasError) throw env.error;\n  }\n  return next();\n}\n\nexport default {\n  __extends,\n  __assign,\n  __rest,\n  __decorate,\n  __param,\n  __metadata,\n  __awaiter,\n  __generator,\n  __createBinding,\n  __exportStar,\n  __values,\n  __read,\n  __spread,\n  __spreadArrays,\n  __spreadArray,\n  __await,\n  __asyncGenerator,\n  __asyncDelegator,\n  __asyncValues,\n  __makeTemplateObject,\n  __importStar,\n  __importDefault,\n  __classPrivateFieldGet,\n  __classPrivateFieldSet,\n  __classPrivateFieldIn,\n  __addDisposableResource,\n  __disposeResources,\n};\n", "const genericMessage = \"Invariant Violation\";\nconst {\n  setPrototypeOf = function (obj: any, proto: any) {\n    obj.__proto__ = proto;\n    return obj;\n  },\n} = Object as any;\n\nexport class InvariantError extends Error {\n  framesToPop = 1;\n  name = genericMessage;\n  constructor(message: string | number = genericMessage) {\n    super(\n      typeof message === \"number\"\n        ? `${genericMessage}: ${message} (see https://github.com/apollographql/invariant-packages)`\n        : message\n    );\n    setPrototypeOf(this, InvariantError.prototype);\n  }\n}\n\nexport function invariant(\n  condition: any,\n  message?: string | number,\n): asserts condition {\n  if (!condition) {\n    throw new InvariantError(message);\n  }\n}\n\nconst verbosityLevels = [\"debug\", \"log\", \"warn\", \"error\", \"silent\"] as const;\nexport type VerbosityLevel = (typeof verbosityLevels)[number];\nexport type ConsoleMethodName = Exclude<VerbosityLevel, \"silent\">;\nlet verbosityLevel = verbosityLevels.indexOf(\"log\");\n\nfunction wrapConsoleMethod<M extends ConsoleMethodName>(name: M) {\n  return function () {\n    if (verbosityLevels.indexOf(name) >= verbosityLevel) {\n      // Default to console.log if this host environment happens not to provide\n      // all the console.* methods we need.\n      const method = console[name] || console.log;\n      return method.apply(console, arguments as any);\n    }\n  } as (typeof console)[M];\n}\n\nexport namespace invariant {\n  export const debug = wrapConsoleMethod(\"debug\");\n  export const log = wrapConsoleMethod(\"log\");\n  export const warn = wrapConsoleMethod(\"warn\");\n  export const error = wrapConsoleMethod(\"error\");\n}\n\nexport function setVerbosity(level: VerbosityLevel): VerbosityLevel {\n  const old = verbosityLevels[verbosityLevel];\n  verbosityLevel = Math.max(0, verbosityLevels.indexOf(level));\n  return old;\n}\n\nexport default invariant;\n", "export const version = \"local\";\n", "export function maybe<T>(thunk: () => T): T | undefined {\n  try {\n    return thunk();\n  } catch {}\n}\n", "import { maybe } from \"./maybe.js\";\n\ndeclare global {\n  const __DEV__: boolean; // will be removed in `dist` by the `postprocessDist` script\n  interface Window {\n    __DEV__?: boolean;\n  }\n}\n\nexport default (maybe(() => globalThis) ||\n  maybe(() => window) ||\n  maybe(() => self) ||\n  maybe(() => global) ||\n  // We don't expect the Function constructor ever to be invoked at runtime, as\n  // long as at least one of globalThis, window, self, or global is defined, so\n  // we are under no obligation to make it easy for static analysis tools to\n  // detect syntactic usage of the Function constructor. If you think you can\n  // improve your static analysis to detect this obfuscation, think again. This\n  // is an arms race you cannot win, at least not in JavaScript.\n  maybe(function () {\n    return maybe.constructor(\"return this\")();\n  })) as typeof globalThis & Window;\n", "const prefixCounts = new Map<string, number>();\n\n// These IDs won't be globally unique, but they will be unique within this\n// process, thanks to the counter, and unguessable thanks to the random suffix.\nexport function makeUniqueId(prefix: string) {\n  const count = prefixCounts.get(prefix) || 1;\n  prefixCounts.set(prefix, count + 1);\n  return `${prefix}:${count}:${Math.random().toString(36).slice(2)}`;\n}\n", "import { makeUniqueId } from \"./makeUniqueId.js\";\n\nexport function stringifyForDisplay(value: any, space = 0): string {\n  const undefId = makeUniqueId(\"stringifyForDisplay\");\n  return JSON.stringify(\n    value,\n    (key, value) => {\n      return value === void 0 ? undefId : value;\n    },\n    space\n  )\n    .split(JSON.stringify(undefId))\n    .join(\"<undefined>\");\n}\n", "import { invariant as originalInvariant, InvariantError } from \"ts-invariant\";\nimport { version } from \"../../version.js\";\nimport global from \"./global.js\";\nimport type { ErrorCodes } from \"../../invariantErrorCodes.js\";\nimport { stringifyForDisplay } from \"../common/stringifyForDisplay.js\";\n\nfunction wrap(fn: (msg?: string, ...args: any[]) => void) {\n  return function (message?: string | number, ...args: any[]) {\n    if (typeof message === \"number\") {\n      const arg0 = message;\n      message = getHandledErrorMsg(arg0);\n      if (!message) {\n        message = getFallbackErrorMsg(arg0, args);\n        args = [];\n      }\n    }\n    fn(...[message].concat(args));\n  };\n}\n\ntype LogFunction = {\n  /**\n   * Logs a `$level` message if the user used `ts-invariant`'s `setVerbosity` to set\n   * a verbosity level of `$level` or lower. (defaults to `\"log\"`).\n   *\n   * The user will either be presented with a link to the documentation for the message,\n   * or they can use the `loadDevMessages` to add the message strings to the bundle.\n   * The documentation will display the message without argument substitution.\n   * Instead, the arguments will be printed on the console after the link.\n   *\n   * `message` can only be a string, a concatenation of strings, or a ternary statement\n   * that results in a string. This will be enforced on build, where the message will\n   * be replaced with a message number.\n   *\n   * String substitutions like %s, %o, %d or %f are supported.\n   */\n  (message?: any, ...optionalParams: unknown[]): void;\n};\n\ntype WrappedInvariant = {\n  /**\n   * Throws and InvariantError with the given message if the condition is false.\n   *\n   * `message` can only be a string, a concatenation of strings, or a ternary statement\n   * that results in a string. This will be enforced on build, where the message will\n   * be replaced with a message number.\n   *\n   * The user will either be presented with a link to the documentation for the message,\n   * or they can use the `loadErrorMessages` to add the message strings to the bundle.\n   * The documentation will display the message with the arguments substituted.\n   *\n   * String substitutions with %s are supported and will also return\n   * pretty-stringified objects.\n   * Excess `optionalParams` will be swallowed.\n   */\n  (\n    condition: any,\n    message?: string | number,\n    ...optionalParams: unknown[]\n  ): asserts condition;\n\n  debug: LogFunction;\n  log: LogFunction;\n  warn: LogFunction;\n  error: LogFunction;\n};\nconst invariant: WrappedInvariant = Object.assign(\n  function invariant(\n    condition: any,\n    message?: string | number,\n    ...args: unknown[]\n  ): asserts condition {\n    if (!condition) {\n      originalInvariant(\n        condition,\n        getHandledErrorMsg(message, args) || getFallbackErrorMsg(message, args)\n      );\n    }\n  },\n  {\n    debug: wrap(originalInvariant.debug),\n    log: wrap(originalInvariant.log),\n    warn: wrap(originalInvariant.warn),\n    error: wrap(originalInvariant.error),\n  }\n);\n\n/**\n * Returns an InvariantError.\n *\n * `message` can only be a string, a concatenation of strings, or a ternary statement\n * that results in a string. This will be enforced on build, where the message will\n * be replaced with a message number.\n * String substitutions with %s are supported and will also return\n * pretty-stringified objects.\n * Excess `optionalParams` will be swallowed.\n */\nfunction newInvariantError(\n  message?: string | number,\n  ...optionalParams: unknown[]\n) {\n  return new InvariantError(\n    getHandledErrorMsg(message, optionalParams) ||\n      getFallbackErrorMsg(message, optionalParams)\n  );\n}\n\nconst ApolloErrorMessageHandler = Symbol.for(\n  \"ApolloErrorMessageHandler_\" + version\n);\ndeclare global {\n  interface Window {\n    [ApolloErrorMessageHandler]?: {\n      (message: string | number, args: string[]): string | undefined;\n    } & ErrorCodes;\n  }\n}\n\nfunction stringify(arg: any) {\n  return typeof arg == \"string\" ? arg : (\n      stringifyForDisplay(arg, 2).slice(0, 1000)\n    );\n}\n\nfunction getHandledErrorMsg(\n  message?: string | number,\n  messageArgs: unknown[] = []\n) {\n  if (!message) return;\n  return (\n    global[ApolloErrorMessageHandler] &&\n    global[ApolloErrorMessageHandler](message, messageArgs.map(stringify))\n  );\n}\n\nfunction getFallbackErrorMsg(\n  message?: string | number,\n  messageArgs: unknown[] = []\n) {\n  if (!message) return;\n  return `An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(\n    JSON.stringify({\n      version,\n      message,\n      args: messageArgs.map(stringify),\n    })\n  )}`;\n}\n\nexport {\n  invariant,\n  InvariantError,\n  newInvariantError,\n  ApolloErrorMessageHandler,\n};\n", "import {\n  invariant,\n  newInvariantError,\n  InvariantError,\n} from \"./invariantWrappers.js\";\n\nexport { maybe } from \"./maybe.js\";\nexport { default as global } from \"./global.js\";\nexport { invariant, newInvariantError, InvariantError };\n\n/**\n * @deprecated we do not use this internally anymore,\n * it is just exported for backwards compatibility\n */\n// this file is extempt from automatic `__DEV__` replacement\n// so we have to write it out here\n// @ts-ignore\nexport const DEV = globalThis.__DEV__ !== false;\nexport { DEV as __DEV__ };\n", "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Return true if `value` is object-like. A value is object-like if it's not\n * `null` and has a `typeof` result of \"object\".\n */\nexport default function isObjectLike(value) {\n  return _typeof(value) == 'object' && value !== null;\n}\n", "// In ES2015 (or a polyfilled) environment, this will be Symbol.iterator\n// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\nexport var SYMBOL_ITERATOR = typeof Symbol === 'function' && Symbol.iterator != null ? Symbol.iterator : '@@iterator'; // In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator\n// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\nexport var SYMBOL_ASYNC_ITERATOR = typeof Symbol === 'function' && Symbol.asyncIterator != null ? Symbol.asyncIterator : '@@asyncIterator'; // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\nexport var SYMBOL_TO_STRING_TAG = typeof Symbol === 'function' && Symbol.toStringTag != null ? Symbol.toStringTag : '@@toStringTag';\n", "/**\n * Represents a location in a Source.\n */\n\n/**\n * Takes a Source and a UTF-8 character offset, and returns the corresponding\n * line and column as a SourceLocation.\n */\nexport function getLocation(source, position) {\n  var lineRegexp = /\\r\\n|[\\n\\r]/g;\n  var line = 1;\n  var column = position + 1;\n  var match;\n\n  while ((match = lineRegexp.exec(source.body)) && match.index < position) {\n    line += 1;\n    column = position + 1 - (match.index + match[0].length);\n  }\n\n  return {\n    line: line,\n    column: column\n  };\n}\n", "import { getLocation } from \"./location.mjs\";\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */\n\nexport function printLocation(location) {\n  return printSourceLocation(location.source, getLocation(location.source, location.start));\n}\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */\n\nexport function printSourceLocation(source, sourceLocation) {\n  var firstLineColumnOffset = source.locationOffset.column - 1;\n  var body = whitespace(firstLineColumnOffset) + source.body;\n  var lineIndex = sourceLocation.line - 1;\n  var lineOffset = source.locationOffset.line - 1;\n  var lineNum = sourceLocation.line + lineOffset;\n  var columnOffset = sourceLocation.line === 1 ? firstLineColumnOffset : 0;\n  var columnNum = sourceLocation.column + columnOffset;\n  var locationStr = \"\".concat(source.name, \":\").concat(lineNum, \":\").concat(columnNum, \"\\n\");\n  var lines = body.split(/\\r\\n|[\\n\\r]/g);\n  var locationLine = lines[lineIndex]; // Special case for minified documents\n\n  if (locationLine.length > 120) {\n    var subLineIndex = Math.floor(columnNum / 80);\n    var subLineColumnNum = columnNum % 80;\n    var subLines = [];\n\n    for (var i = 0; i < locationLine.length; i += 80) {\n      subLines.push(locationLine.slice(i, i + 80));\n    }\n\n    return locationStr + printPrefixedLines([[\"\".concat(lineNum), subLines[0]]].concat(subLines.slice(1, subLineIndex + 1).map(function (subLine) {\n      return ['', subLine];\n    }), [[' ', whitespace(subLineColumnNum - 1) + '^'], ['', subLines[subLineIndex + 1]]]));\n  }\n\n  return locationStr + printPrefixedLines([// Lines specified like this: [\"prefix\", \"string\"],\n  [\"\".concat(lineNum - 1), lines[lineIndex - 1]], [\"\".concat(lineNum), locationLine], ['', whitespace(columnNum - 1) + '^'], [\"\".concat(lineNum + 1), lines[lineIndex + 1]]]);\n}\n\nfunction printPrefixedLines(lines) {\n  var existingLines = lines.filter(function (_ref) {\n    var _ = _ref[0],\n        line = _ref[1];\n    return line !== undefined;\n  });\n  var padLen = Math.max.apply(Math, existingLines.map(function (_ref2) {\n    var prefix = _ref2[0];\n    return prefix.length;\n  }));\n  return existingLines.map(function (_ref3) {\n    var prefix = _ref3[0],\n        line = _ref3[1];\n    return leftPad(padLen, prefix) + (line ? ' | ' + line : ' |');\n  }).join('\\n');\n}\n\nfunction whitespace(len) {\n  return Array(len + 1).join(' ');\n}\n\nfunction leftPad(len, str) {\n  return whitespace(len - str.length) + str;\n}\n", "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\n\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nimport isObjectLike from \"../jsutils/isObjectLike.mjs\";\nimport { SYMBOL_TO_STRING_TAG } from \"../polyfills/symbols.mjs\";\nimport { getLocation } from \"../language/location.mjs\";\nimport { printLocation, printSourceLocation } from \"../language/printLocation.mjs\";\n/**\n * A GraphQLError describes an Error found during the parse, validate, or\n * execute phases of performing a GraphQL operation. In addition to a message\n * and stack trace, it also includes information about the locations in a\n * GraphQL document and/or execution result that correspond to the Error.\n */\n\nexport var GraphQLError = /*#__PURE__*/function (_Error) {\n  _inherits(GraphQLError, _Error);\n\n  var _super = _createSuper(GraphQLError);\n\n  /**\n   * An array of { line, column } locations within the source GraphQL document\n   * which correspond to this error.\n   *\n   * Errors during validation often contain multiple locations, for example to\n   * point out two things with the same name. Errors during execution include a\n   * single location, the field which produced the error.\n   *\n   * Enumerable, and appears in the result of JSON.stringify().\n   */\n\n  /**\n   * An array describing the JSON-path into the execution response which\n   * corresponds to this error. Only included for errors during execution.\n   *\n   * Enumerable, and appears in the result of JSON.stringify().\n   */\n\n  /**\n   * An array of GraphQL AST Nodes corresponding to this error.\n   */\n\n  /**\n   * The source GraphQL document for the first location of this error.\n   *\n   * Note that if this Error represents more than one node, the source may not\n   * represent nodes after the first node.\n   */\n\n  /**\n   * An array of character offsets within the source GraphQL document\n   * which correspond to this error.\n   */\n\n  /**\n   * The original error thrown from a field resolver during execution.\n   */\n\n  /**\n   * Extension fields to add to the formatted error.\n   */\n  function GraphQLError(message, nodes, source, positions, path, originalError, extensions) {\n    var _nodeLocations, _nodeLocations2, _nodeLocations3;\n\n    var _this;\n\n    _classCallCheck(this, GraphQLError);\n\n    _this = _super.call(this, message);\n    _this.name = 'GraphQLError';\n    _this.originalError = originalError !== null && originalError !== void 0 ? originalError : undefined; // Compute list of blame nodes.\n\n    _this.nodes = undefinedIfEmpty(Array.isArray(nodes) ? nodes : nodes ? [nodes] : undefined);\n    var nodeLocations = [];\n\n    for (var _i2 = 0, _ref3 = (_this$nodes = _this.nodes) !== null && _this$nodes !== void 0 ? _this$nodes : []; _i2 < _ref3.length; _i2++) {\n      var _this$nodes;\n\n      var _ref4 = _ref3[_i2];\n      var loc = _ref4.loc;\n\n      if (loc != null) {\n        nodeLocations.push(loc);\n      }\n    }\n\n    nodeLocations = undefinedIfEmpty(nodeLocations); // Compute locations in the source for the given nodes/positions.\n\n    _this.source = source !== null && source !== void 0 ? source : (_nodeLocations = nodeLocations) === null || _nodeLocations === void 0 ? void 0 : _nodeLocations[0].source;\n    _this.positions = positions !== null && positions !== void 0 ? positions : (_nodeLocations2 = nodeLocations) === null || _nodeLocations2 === void 0 ? void 0 : _nodeLocations2.map(function (loc) {\n      return loc.start;\n    });\n    _this.locations = positions && source ? positions.map(function (pos) {\n      return getLocation(source, pos);\n    }) : (_nodeLocations3 = nodeLocations) === null || _nodeLocations3 === void 0 ? void 0 : _nodeLocations3.map(function (loc) {\n      return getLocation(loc.source, loc.start);\n    });\n    _this.path = path !== null && path !== void 0 ? path : undefined;\n    var originalExtensions = originalError === null || originalError === void 0 ? void 0 : originalError.extensions;\n\n    if (extensions == null && isObjectLike(originalExtensions)) {\n      _this.extensions = _objectSpread({}, originalExtensions);\n    } else {\n      _this.extensions = extensions !== null && extensions !== void 0 ? extensions : {};\n    } // By being enumerable, JSON.stringify will include bellow properties in the resulting output.\n    // This ensures that the simplest possible GraphQL service adheres to the spec.\n\n\n    Object.defineProperties(_assertThisInitialized(_this), {\n      message: {\n        enumerable: true\n      },\n      locations: {\n        enumerable: _this.locations != null\n      },\n      path: {\n        enumerable: _this.path != null\n      },\n      extensions: {\n        enumerable: _this.extensions != null && Object.keys(_this.extensions).length > 0\n      },\n      name: {\n        enumerable: false\n      },\n      nodes: {\n        enumerable: false\n      },\n      source: {\n        enumerable: false\n      },\n      positions: {\n        enumerable: false\n      },\n      originalError: {\n        enumerable: false\n      }\n    }); // Include (non-enumerable) stack trace.\n\n    if (originalError !== null && originalError !== void 0 && originalError.stack) {\n      Object.defineProperty(_assertThisInitialized(_this), 'stack', {\n        value: originalError.stack,\n        writable: true,\n        configurable: true\n      });\n      return _possibleConstructorReturn(_this);\n    } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\n\n    if (Error.captureStackTrace) {\n      Error.captureStackTrace(_assertThisInitialized(_this), GraphQLError);\n    } else {\n      Object.defineProperty(_assertThisInitialized(_this), 'stack', {\n        value: Error().stack,\n        writable: true,\n        configurable: true\n      });\n    }\n\n    return _this;\n  }\n\n  _createClass(GraphQLError, [{\n    key: \"toString\",\n    value: function toString() {\n      return printError(this);\n    } // FIXME: workaround to not break chai comparisons, should be remove in v16\n    // $FlowFixMe[unsupported-syntax] Flow doesn't support computed properties yet\n\n  }, {\n    key: SYMBOL_TO_STRING_TAG,\n    get: function get() {\n      return 'Object';\n    }\n  }]);\n\n  return GraphQLError;\n}( /*#__PURE__*/_wrapNativeSuper(Error));\n\nfunction undefinedIfEmpty(array) {\n  return array === undefined || array.length === 0 ? undefined : array;\n}\n/**\n * Prints a GraphQLError to a string, representing useful location information\n * about the error's position in the source.\n */\n\n\nexport function printError(error) {\n  var output = error.message;\n\n  if (error.nodes) {\n    for (var _i4 = 0, _error$nodes2 = error.nodes; _i4 < _error$nodes2.length; _i4++) {\n      var node = _error$nodes2[_i4];\n\n      if (node.loc) {\n        output += '\\n\\n' + printLocation(node.loc);\n      }\n    }\n  } else if (error.source && error.locations) {\n    for (var _i6 = 0, _error$locations2 = error.locations; _i6 < _error$locations2.length; _i6++) {\n      var location = _error$locations2[_i6];\n      output += '\\n\\n' + printSourceLocation(error.source, location);\n    }\n  }\n\n  return output;\n}\n", "import { GraphQLError } from \"./GraphQLError.mjs\";\n/**\n * Produces a GraphQLError representing a syntax error, containing useful\n * descriptive information about the syntax error's position in the source.\n */\n\nexport function syntaxError(source, position, description) {\n  return new GraphQLError(\"Syntax Error: \".concat(description), undefined, source, [position]);\n}\n", "/**\n * The set of allowed kind values for AST nodes.\n */\nexport var Kind = Object.freeze({\n  // Name\n  NAME: 'Name',\n  // Document\n  DOCUMENT: 'Document',\n  OPERATION_DEFINITION: 'OperationDefinition',\n  VARIABLE_DEFINITION: 'VariableDefinition',\n  SELECTION_SET: 'SelectionSet',\n  FIELD: 'Field',\n  ARGUMENT: 'Argument',\n  // Fragments\n  FRAGMENT_SPREAD: 'FragmentSpread',\n  INLINE_FRAGMENT: 'InlineFragment',\n  FRAGMENT_DEFINITION: 'FragmentDefinition',\n  // Values\n  VARIABLE: 'Variable',\n  INT: 'IntValue',\n  FLOAT: 'FloatValue',\n  STRING: 'StringValue',\n  BOOLEAN: 'BooleanValue',\n  NULL: 'NullValue',\n  ENUM: 'EnumValue',\n  LIST: 'ListValue',\n  OBJECT: 'ObjectValue',\n  OBJECT_FIELD: 'ObjectField',\n  // Directives\n  DIRECTIVE: 'Directive',\n  // Types\n  NAMED_TYPE: 'NamedType',\n  LIST_TYPE: 'ListType',\n  NON_NULL_TYPE: 'NonNullType',\n  // Type System Definitions\n  SCHEMA_DEFINITION: 'SchemaDefinition',\n  OPERATION_TYPE_DEFINITION: 'OperationTypeDefinition',\n  // Type Definitions\n  SCALAR_TYPE_DEFINITION: 'ScalarTypeDefinition',\n  OBJECT_TYPE_DEFINITION: 'ObjectTypeDefinition',\n  FIELD_DEFINITION: 'FieldDefinition',\n  INPUT_VALUE_DEFINITION: 'InputValueDefinition',\n  INTERFACE_TYPE_DEFINITION: 'InterfaceTypeDefinition',\n  UNION_TYPE_DEFINITION: 'UnionTypeDefinition',\n  ENUM_TYPE_DEFINITION: 'EnumTypeDefinition',\n  ENUM_VALUE_DEFINITION: 'EnumValueDefinition',\n  INPUT_OBJECT_TYPE_DEFINITION: 'InputObjectTypeDefinition',\n  // Directive Definitions\n  DIRECTIVE_DEFINITION: 'DirectiveDefinition',\n  // Type System Extensions\n  SCHEMA_EXTENSION: 'SchemaExtension',\n  // Type Extensions\n  SCALAR_TYPE_EXTENSION: 'ScalarTypeExtension',\n  OBJECT_TYPE_EXTENSION: 'ObjectTypeExtension',\n  INTERFACE_TYPE_EXTENSION: 'InterfaceTypeExtension',\n  UNION_TYPE_EXTENSION: 'UnionTypeExtension',\n  ENUM_TYPE_EXTENSION: 'EnumTypeExtension',\n  INPUT_OBJECT_TYPE_EXTENSION: 'InputObjectTypeExtension'\n});\n/**\n * The enum type representing the possible kind values of AST nodes.\n */\n", "export default function invariant(condition, message) {\n  var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')\n\n  if (!booleanCondition) {\n    throw new Error(message != null ? message : 'Unexpected invariant triggered.');\n  }\n}\n", "// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\nvar nodejsCustomInspectSymbol = typeof Symbol === 'function' && typeof Symbol.for === 'function' ? Symbol.for('nodejs.util.inspect.custom') : undefined;\nexport default nodejsCustomInspectSymbol;\n", "import invariant from \"./invariant.mjs\";\nimport nodejsCustomInspectSymbol from \"./nodejsCustomInspectSymbol.mjs\";\n/**\n * The `defineInspect()` function defines `inspect()` prototype method as alias of `toJSON`\n */\n\nexport default function defineInspect(classObject) {\n  var fn = classObject.prototype.toJSON;\n  typeof fn === 'function' || invariant(0);\n  classObject.prototype.inspect = fn; // istanbul ignore else (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\n  if (nodejsCustomInspectSymbol) {\n    classObject.prototype[nodejsCustomInspectSymbol] = fn;\n  }\n}\n", "import defineInspect from \"../jsutils/defineInspect.mjs\";\n\n/**\n * Contains a range of UTF-8 character offsets and token references that\n * identify the region of the source from which the AST derived.\n */\nexport var Location = /*#__PURE__*/function () {\n  /**\n   * The character offset at which this Node begins.\n   */\n\n  /**\n   * The character offset at which this Node ends.\n   */\n\n  /**\n   * The Token at which this Node begins.\n   */\n\n  /**\n   * The Token at which this Node ends.\n   */\n\n  /**\n   * The Source document the AST represents.\n   */\n  function Location(startToken, endToken, source) {\n    this.start = startToken.start;\n    this.end = endToken.end;\n    this.startToken = startToken;\n    this.endToken = endToken;\n    this.source = source;\n  }\n\n  var _proto = Location.prototype;\n\n  _proto.toJSON = function toJSON() {\n    return {\n      start: this.start,\n      end: this.end\n    };\n  };\n\n  return Location;\n}(); // Print a simplified form when appearing in `inspect` and `util.inspect`.\n\ndefineInspect(Location);\n/**\n * Represents a range of characters represented by a lexical token\n * within a Source.\n */\n\nexport var Token = /*#__PURE__*/function () {\n  /**\n   * The kind of Token.\n   */\n\n  /**\n   * The character offset at which this Node begins.\n   */\n\n  /**\n   * The character offset at which this Node ends.\n   */\n\n  /**\n   * The 1-indexed line number on which this Token appears.\n   */\n\n  /**\n   * The 1-indexed column number at which this Token begins.\n   */\n\n  /**\n   * For non-punctuation tokens, represents the interpreted value of the token.\n   */\n\n  /**\n   * Tokens exist as nodes in a double-linked-list amongst all tokens\n   * including ignored tokens. <SOF> is always the first node and <EOF>\n   * the last.\n   */\n  function Token(kind, start, end, line, column, prev, value) {\n    this.kind = kind;\n    this.start = start;\n    this.end = end;\n    this.line = line;\n    this.column = column;\n    this.value = value;\n    this.prev = prev;\n    this.next = null;\n  }\n\n  var _proto2 = Token.prototype;\n\n  _proto2.toJSON = function toJSON() {\n    return {\n      kind: this.kind,\n      value: this.value,\n      line: this.line,\n      column: this.column\n    };\n  };\n\n  return Token;\n}(); // Print a simplified form when appearing in `inspect` and `util.inspect`.\n\ndefineInspect(Token);\n/**\n * @internal\n */\n\nexport function isNode(maybeNode) {\n  return maybeNode != null && typeof maybeNode.kind === 'string';\n}\n/**\n * The list of all possible AST node types.\n */\n", "/**\n * An exported enum describing the different kinds of tokens that the\n * lexer emits.\n */\nexport var TokenKind = Object.freeze({\n  SOF: '<SOF>',\n  EOF: '<EOF>',\n  BANG: '!',\n  DOLLAR: '$',\n  AMP: '&',\n  PAREN_L: '(',\n  PAREN_R: ')',\n  SPREAD: '...',\n  COLON: ':',\n  EQUALS: '=',\n  AT: '@',\n  BRACKET_L: '[',\n  BRACKET_R: ']',\n  BRACE_L: '{',\n  PIPE: '|',\n  BRACE_R: '}',\n  NAME: 'Name',\n  INT: 'Int',\n  FLOAT: 'Float',\n  STRING: 'String',\n  BLOCK_STRING: 'BlockString',\n  COMMENT: 'Comment'\n});\n/**\n * The enum type representing the token kinds values.\n */\n", "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/* eslint-disable flowtype/no-weak-types */\nimport nodejsCustomInspectSymbol from \"./nodejsCustomInspectSymbol.mjs\";\nvar MAX_ARRAY_LENGTH = 10;\nvar MAX_RECURSIVE_DEPTH = 2;\n/**\n * Used to print values in error messages.\n */\n\nexport default function inspect(value) {\n  return formatValue(value, []);\n}\n\nfunction formatValue(value, seenValues) {\n  switch (_typeof(value)) {\n    case 'string':\n      return JSON.stringify(value);\n\n    case 'function':\n      return value.name ? \"[function \".concat(value.name, \"]\") : '[function]';\n\n    case 'object':\n      if (value === null) {\n        return 'null';\n      }\n\n      return formatObjectValue(value, seenValues);\n\n    default:\n      return String(value);\n  }\n}\n\nfunction formatObjectValue(value, previouslySeenValues) {\n  if (previouslySeenValues.indexOf(value) !== -1) {\n    return '[Circular]';\n  }\n\n  var seenValues = [].concat(previouslySeenValues, [value]);\n  var customInspectFn = getCustomFn(value);\n\n  if (customInspectFn !== undefined) {\n    var customValue = customInspectFn.call(value); // check for infinite recursion\n\n    if (customValue !== value) {\n      return typeof customValue === 'string' ? customValue : formatValue(customValue, seenValues);\n    }\n  } else if (Array.isArray(value)) {\n    return formatArray(value, seenValues);\n  }\n\n  return formatObject(value, seenValues);\n}\n\nfunction formatObject(object, seenValues) {\n  var keys = Object.keys(object);\n\n  if (keys.length === 0) {\n    return '{}';\n  }\n\n  if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n    return '[' + getObjectTag(object) + ']';\n  }\n\n  var properties = keys.map(function (key) {\n    var value = formatValue(object[key], seenValues);\n    return key + ': ' + value;\n  });\n  return '{ ' + properties.join(', ') + ' }';\n}\n\nfunction formatArray(array, seenValues) {\n  if (array.length === 0) {\n    return '[]';\n  }\n\n  if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n    return '[Array]';\n  }\n\n  var len = Math.min(MAX_ARRAY_LENGTH, array.length);\n  var remaining = array.length - len;\n  var items = [];\n\n  for (var i = 0; i < len; ++i) {\n    items.push(formatValue(array[i], seenValues));\n  }\n\n  if (remaining === 1) {\n    items.push('... 1 more item');\n  } else if (remaining > 1) {\n    items.push(\"... \".concat(remaining, \" more items\"));\n  }\n\n  return '[' + items.join(', ') + ']';\n}\n\nfunction getCustomFn(object) {\n  var customInspectFn = object[String(nodejsCustomInspectSymbol)];\n\n  if (typeof customInspectFn === 'function') {\n    return customInspectFn;\n  }\n\n  if (typeof object.inspect === 'function') {\n    return object.inspect;\n  }\n}\n\nfunction getObjectTag(object) {\n  var tag = Object.prototype.toString.call(object).replace(/^\\[object /, '').replace(/]$/, '');\n\n  if (tag === 'Object' && typeof object.constructor === 'function') {\n    var name = object.constructor.name;\n\n    if (typeof name === 'string' && name !== '') {\n      return name;\n    }\n  }\n\n  return tag;\n}\n", "export default function devAssert(condition, message) {\n  var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')\n\n  if (!booleanCondition) {\n    throw new Error(message);\n  }\n}\n", "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport inspect from \"./inspect.mjs\";\n/**\n * A replacement for instanceof which includes an error warning when multi-realm\n * constructors are detected.\n */\n\n// See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production\n// See: https://webpack.js.org/guides/production/\nexport default process.env.NODE_ENV === 'production' ? // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n// eslint-disable-next-line no-shadow\nfunction instanceOf(value, constructor) {\n  return value instanceof constructor;\n} : // eslint-disable-next-line no-shadow\nfunction instanceOf(value, constructor) {\n  if (value instanceof constructor) {\n    return true;\n  }\n\n  if (_typeof(value) === 'object' && value !== null) {\n    var _value$constructor;\n\n    var className = constructor.prototype[Symbol.toStringTag];\n    var valueClassName = // We still need to support constructor's name to detect conflicts with older versions of this library.\n    Symbol.toStringTag in value ? value[Symbol.toStringTag] : (_value$constructor = value.constructor) === null || _value$constructor === void 0 ? void 0 : _value$constructor.name;\n\n    if (className === valueClassName) {\n      var stringifiedValue = inspect(value);\n      throw new Error(\"Cannot use \".concat(className, \" \\\"\").concat(stringifiedValue, \"\\\" from another module or realm.\\n\\nEnsure that there is only one instance of \\\"graphql\\\" in the node_modules\\ndirectory. If different versions of \\\"graphql\\\" are the dependencies of other\\nrelied on modules, use \\\"resolutions\\\" to ensure only one version is installed.\\n\\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\\n\\nDuplicate \\\"graphql\\\" modules cannot be used at the same time since different\\nversions may have different capabilities and behavior. The data from one\\nversion used in the function from another could produce confusing and\\nspurious results.\"));\n    }\n  }\n\n  return false;\n};\n", "function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { SYMBOL_TO_STRING_TAG } from \"../polyfills/symbols.mjs\";\nimport inspect from \"../jsutils/inspect.mjs\";\nimport devAssert from \"../jsutils/devAssert.mjs\";\nimport instanceOf from \"../jsutils/instanceOf.mjs\";\n\n/**\n * A representation of source input to GraphQL. The `name` and `locationOffset` parameters are\n * optional, but they are useful for clients who store GraphQL documents in source files.\n * For example, if the GraphQL input starts at line 40 in a file named `Foo.graphql`, it might\n * be useful for `name` to be `\"Foo.graphql\"` and location to be `{ line: 40, column: 1 }`.\n * The `line` and `column` properties in `locationOffset` are 1-indexed.\n */\nexport var Source = /*#__PURE__*/function () {\n  function Source(body) {\n    var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'GraphQL request';\n    var locationOffset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n      line: 1,\n      column: 1\n    };\n    typeof body === 'string' || devAssert(0, \"Body must be a string. Received: \".concat(inspect(body), \".\"));\n    this.body = body;\n    this.name = name;\n    this.locationOffset = locationOffset;\n    this.locationOffset.line > 0 || devAssert(0, 'line in locationOffset is 1-indexed and must be positive.');\n    this.locationOffset.column > 0 || devAssert(0, 'column in locationOffset is 1-indexed and must be positive.');\n  } // $FlowFixMe[unsupported-syntax] Flow doesn't support computed properties yet\n\n\n  _createClass(Source, [{\n    key: SYMBOL_TO_STRING_TAG,\n    get: function get() {\n      return 'Source';\n    }\n  }]);\n\n  return Source;\n}();\n/**\n * Test if the given value is a Source object.\n *\n * @internal\n */\n\n// eslint-disable-next-line no-redeclare\nexport function isSource(source) {\n  return instanceOf(source, Source);\n}\n", "/**\n * The set of allowed directive location values.\n */\nexport var DirectiveLocation = Object.freeze({\n  // Request Definitions\n  QUERY: 'QUERY',\n  MUTATION: 'MUTATION',\n  SUBSCRIPTION: 'SUBSCRIPTION',\n  FIELD: 'FIELD',\n  FRAGMENT_DEFINITION: 'FRAGMENT_DEFINITION',\n  FRAGMENT_SPREAD: 'FRAGMENT_SPREAD',\n  INLINE_FRAGMENT: 'INLINE_FRAGMENT',\n  VARIABLE_DEFINITION: 'VARIABLE_DEFINITION',\n  // Type System Definitions\n  SCHEMA: 'SCHEMA',\n  SCALAR: 'SCALAR',\n  OBJECT: 'OBJECT',\n  FIELD_DEFINITION: 'FIELD_DEFINITION',\n  ARGUMENT_DEFINITION: 'ARGUMENT_DEFINITION',\n  INTERFACE: 'INTERFACE',\n  UNION: 'UNION',\n  ENUM: 'ENUM',\n  ENUM_VALUE: 'ENUM_VALUE',\n  INPUT_OBJECT: 'INPUT_OBJECT',\n  INPUT_FIELD_DEFINITION: 'INPUT_FIELD_DEFINITION'\n});\n/**\n * The enum type representing the directive location values.\n */\n", "/**\n * Produces the value of a block string from its parsed raw value, similar to\n * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.\n *\n * This implements the GraphQL spec's BlockStringValue() static algorithm.\n *\n * @internal\n */\nexport function dedentBlockStringValue(rawString) {\n  // Expand a block string's raw value into independent lines.\n  var lines = rawString.split(/\\r\\n|[\\n\\r]/g); // Remove common indentation from all lines but first.\n\n  var commonIndent = getBlockStringIndentation(rawString);\n\n  if (commonIndent !== 0) {\n    for (var i = 1; i < lines.length; i++) {\n      lines[i] = lines[i].slice(commonIndent);\n    }\n  } // Remove leading and trailing blank lines.\n\n\n  var startLine = 0;\n\n  while (startLine < lines.length && isBlank(lines[startLine])) {\n    ++startLine;\n  }\n\n  var endLine = lines.length;\n\n  while (endLine > startLine && isBlank(lines[endLine - 1])) {\n    --endLine;\n  } // Return a string of the lines joined with U+000A.\n\n\n  return lines.slice(startLine, endLine).join('\\n');\n}\n\nfunction isBlank(str) {\n  for (var i = 0; i < str.length; ++i) {\n    if (str[i] !== ' ' && str[i] !== '\\t') {\n      return false;\n    }\n  }\n\n  return true;\n}\n/**\n * @internal\n */\n\n\nexport function getBlockStringIndentation(value) {\n  var _commonIndent;\n\n  var isFirstLine = true;\n  var isEmptyLine = true;\n  var indent = 0;\n  var commonIndent = null;\n\n  for (var i = 0; i < value.length; ++i) {\n    switch (value.charCodeAt(i)) {\n      case 13:\n        //  \\r\n        if (value.charCodeAt(i + 1) === 10) {\n          ++i; // skip \\r\\n as one symbol\n        }\n\n      // falls through\n\n      case 10:\n        //  \\n\n        isFirstLine = false;\n        isEmptyLine = true;\n        indent = 0;\n        break;\n\n      case 9: //   \\t\n\n      case 32:\n        //  <space>\n        ++indent;\n        break;\n\n      default:\n        if (isEmptyLine && !isFirstLine && (commonIndent === null || indent < commonIndent)) {\n          commonIndent = indent;\n        }\n\n        isEmptyLine = false;\n    }\n  }\n\n  return (_commonIndent = commonIndent) !== null && _commonIndent !== void 0 ? _commonIndent : 0;\n}\n/**\n * Print a block string in the indented block form by adding a leading and\n * trailing blank line. However, if a block string starts with whitespace and is\n * a single-line, adding a leading blank line would strip that whitespace.\n *\n * @internal\n */\n\nexport function printBlockString(value) {\n  var indentation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n  var preferMultipleLines = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n  var isSingleLine = value.indexOf('\\n') === -1;\n  var hasLeadingSpace = value[0] === ' ' || value[0] === '\\t';\n  var hasTrailingQuote = value[value.length - 1] === '\"';\n  var hasTrailingSlash = value[value.length - 1] === '\\\\';\n  var printAsMultipleLines = !isSingleLine || hasTrailingQuote || hasTrailingSlash || preferMultipleLines;\n  var result = ''; // Format a multi-line block quote to account for leading space.\n\n  if (printAsMultipleLines && !(isSingleLine && hasLeadingSpace)) {\n    result += '\\n' + indentation;\n  }\n\n  result += indentation ? value.replace(/\\n/g, '\\n' + indentation) : value;\n\n  if (printAsMultipleLines) {\n    result += '\\n';\n  }\n\n  return '\"\"\"' + result.replace(/\"\"\"/g, '\\\\\"\"\"') + '\"\"\"';\n}\n", "import { syntaxError } from \"../error/syntaxError.mjs\";\nimport { Token } from \"./ast.mjs\";\nimport { TokenKind } from \"./tokenKind.mjs\";\nimport { dedentBlockStringValue } from \"./blockString.mjs\";\n/**\n * Given a Source object, creates a Lexer for that source.\n * A Lexer is a stateful stream generator in that every time\n * it is advanced, it returns the next token in the Source. Assuming the\n * source lexes, the final Token emitted by the lexer will be of kind\n * EOF, after which the lexer will repeatedly return the same EOF token\n * whenever called.\n */\n\nexport var Lexer = /*#__PURE__*/function () {\n  /**\n   * The previously focused non-ignored token.\n   */\n\n  /**\n   * The currently focused non-ignored token.\n   */\n\n  /**\n   * The (1-indexed) line containing the current token.\n   */\n\n  /**\n   * The character offset at which the current line begins.\n   */\n  function Lexer(source) {\n    var startOfFileToken = new Token(TokenKind.SOF, 0, 0, 0, 0, null);\n    this.source = source;\n    this.lastToken = startOfFileToken;\n    this.token = startOfFileToken;\n    this.line = 1;\n    this.lineStart = 0;\n  }\n  /**\n   * Advances the token stream to the next non-ignored token.\n   */\n\n\n  var _proto = Lexer.prototype;\n\n  _proto.advance = function advance() {\n    this.lastToken = this.token;\n    var token = this.token = this.lookahead();\n    return token;\n  }\n  /**\n   * Looks ahead and returns the next non-ignored token, but does not change\n   * the state of Lexer.\n   */\n  ;\n\n  _proto.lookahead = function lookahead() {\n    var token = this.token;\n\n    if (token.kind !== TokenKind.EOF) {\n      do {\n        var _token$next;\n\n        // Note: next is only mutable during parsing, so we cast to allow this.\n        token = (_token$next = token.next) !== null && _token$next !== void 0 ? _token$next : token.next = readToken(this, token);\n      } while (token.kind === TokenKind.COMMENT);\n    }\n\n    return token;\n  };\n\n  return Lexer;\n}();\n/**\n * @internal\n */\n\nexport function isPunctuatorTokenKind(kind) {\n  return kind === TokenKind.BANG || kind === TokenKind.DOLLAR || kind === TokenKind.AMP || kind === TokenKind.PAREN_L || kind === TokenKind.PAREN_R || kind === TokenKind.SPREAD || kind === TokenKind.COLON || kind === TokenKind.EQUALS || kind === TokenKind.AT || kind === TokenKind.BRACKET_L || kind === TokenKind.BRACKET_R || kind === TokenKind.BRACE_L || kind === TokenKind.PIPE || kind === TokenKind.BRACE_R;\n}\n\nfunction printCharCode(code) {\n  return (// NaN/undefined represents access beyond the end of the file.\n    isNaN(code) ? TokenKind.EOF : // Trust JSON for ASCII.\n    code < 0x007f ? JSON.stringify(String.fromCharCode(code)) : // Otherwise print the escaped form.\n    \"\\\"\\\\u\".concat(('00' + code.toString(16).toUpperCase()).slice(-4), \"\\\"\")\n  );\n}\n/**\n * Gets the next token from the source starting at the given position.\n *\n * This skips over whitespace until it finds the next lexable token, then lexes\n * punctuators immediately or calls the appropriate helper function for more\n * complicated tokens.\n */\n\n\nfunction readToken(lexer, prev) {\n  var source = lexer.source;\n  var body = source.body;\n  var bodyLength = body.length;\n  var pos = prev.end;\n\n  while (pos < bodyLength) {\n    var code = body.charCodeAt(pos);\n    var _line = lexer.line;\n\n    var _col = 1 + pos - lexer.lineStart; // SourceCharacter\n\n\n    switch (code) {\n      case 0xfeff: // <BOM>\n\n      case 9: //   \\t\n\n      case 32: //  <space>\n\n      case 44:\n        //  ,\n        ++pos;\n        continue;\n\n      case 10:\n        //  \\n\n        ++pos;\n        ++lexer.line;\n        lexer.lineStart = pos;\n        continue;\n\n      case 13:\n        //  \\r\n        if (body.charCodeAt(pos + 1) === 10) {\n          pos += 2;\n        } else {\n          ++pos;\n        }\n\n        ++lexer.line;\n        lexer.lineStart = pos;\n        continue;\n\n      case 33:\n        //  !\n        return new Token(TokenKind.BANG, pos, pos + 1, _line, _col, prev);\n\n      case 35:\n        //  #\n        return readComment(source, pos, _line, _col, prev);\n\n      case 36:\n        //  $\n        return new Token(TokenKind.DOLLAR, pos, pos + 1, _line, _col, prev);\n\n      case 38:\n        //  &\n        return new Token(TokenKind.AMP, pos, pos + 1, _line, _col, prev);\n\n      case 40:\n        //  (\n        return new Token(TokenKind.PAREN_L, pos, pos + 1, _line, _col, prev);\n\n      case 41:\n        //  )\n        return new Token(TokenKind.PAREN_R, pos, pos + 1, _line, _col, prev);\n\n      case 46:\n        //  .\n        if (body.charCodeAt(pos + 1) === 46 && body.charCodeAt(pos + 2) === 46) {\n          return new Token(TokenKind.SPREAD, pos, pos + 3, _line, _col, prev);\n        }\n\n        break;\n\n      case 58:\n        //  :\n        return new Token(TokenKind.COLON, pos, pos + 1, _line, _col, prev);\n\n      case 61:\n        //  =\n        return new Token(TokenKind.EQUALS, pos, pos + 1, _line, _col, prev);\n\n      case 64:\n        //  @\n        return new Token(TokenKind.AT, pos, pos + 1, _line, _col, prev);\n\n      case 91:\n        //  [\n        return new Token(TokenKind.BRACKET_L, pos, pos + 1, _line, _col, prev);\n\n      case 93:\n        //  ]\n        return new Token(TokenKind.BRACKET_R, pos, pos + 1, _line, _col, prev);\n\n      case 123:\n        // {\n        return new Token(TokenKind.BRACE_L, pos, pos + 1, _line, _col, prev);\n\n      case 124:\n        // |\n        return new Token(TokenKind.PIPE, pos, pos + 1, _line, _col, prev);\n\n      case 125:\n        // }\n        return new Token(TokenKind.BRACE_R, pos, pos + 1, _line, _col, prev);\n\n      case 34:\n        //  \"\n        if (body.charCodeAt(pos + 1) === 34 && body.charCodeAt(pos + 2) === 34) {\n          return readBlockString(source, pos, _line, _col, prev, lexer);\n        }\n\n        return readString(source, pos, _line, _col, prev);\n\n      case 45: //  -\n\n      case 48: //  0\n\n      case 49: //  1\n\n      case 50: //  2\n\n      case 51: //  3\n\n      case 52: //  4\n\n      case 53: //  5\n\n      case 54: //  6\n\n      case 55: //  7\n\n      case 56: //  8\n\n      case 57:\n        //  9\n        return readNumber(source, pos, code, _line, _col, prev);\n\n      case 65: //  A\n\n      case 66: //  B\n\n      case 67: //  C\n\n      case 68: //  D\n\n      case 69: //  E\n\n      case 70: //  F\n\n      case 71: //  G\n\n      case 72: //  H\n\n      case 73: //  I\n\n      case 74: //  J\n\n      case 75: //  K\n\n      case 76: //  L\n\n      case 77: //  M\n\n      case 78: //  N\n\n      case 79: //  O\n\n      case 80: //  P\n\n      case 81: //  Q\n\n      case 82: //  R\n\n      case 83: //  S\n\n      case 84: //  T\n\n      case 85: //  U\n\n      case 86: //  V\n\n      case 87: //  W\n\n      case 88: //  X\n\n      case 89: //  Y\n\n      case 90: //  Z\n\n      case 95: //  _\n\n      case 97: //  a\n\n      case 98: //  b\n\n      case 99: //  c\n\n      case 100: // d\n\n      case 101: // e\n\n      case 102: // f\n\n      case 103: // g\n\n      case 104: // h\n\n      case 105: // i\n\n      case 106: // j\n\n      case 107: // k\n\n      case 108: // l\n\n      case 109: // m\n\n      case 110: // n\n\n      case 111: // o\n\n      case 112: // p\n\n      case 113: // q\n\n      case 114: // r\n\n      case 115: // s\n\n      case 116: // t\n\n      case 117: // u\n\n      case 118: // v\n\n      case 119: // w\n\n      case 120: // x\n\n      case 121: // y\n\n      case 122:\n        // z\n        return readName(source, pos, _line, _col, prev);\n    }\n\n    throw syntaxError(source, pos, unexpectedCharacterMessage(code));\n  }\n\n  var line = lexer.line;\n  var col = 1 + pos - lexer.lineStart;\n  return new Token(TokenKind.EOF, bodyLength, bodyLength, line, col, prev);\n}\n/**\n * Report a message that an unexpected character was encountered.\n */\n\n\nfunction unexpectedCharacterMessage(code) {\n  if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) {\n    return \"Cannot contain the invalid character \".concat(printCharCode(code), \".\");\n  }\n\n  if (code === 39) {\n    // '\n    return 'Unexpected single quote character (\\'), did you mean to use a double quote (\")?';\n  }\n\n  return \"Cannot parse the unexpected character \".concat(printCharCode(code), \".\");\n}\n/**\n * Reads a comment token from the source file.\n *\n * #[\\u0009\\u0020-\\uFFFF]*\n */\n\n\nfunction readComment(source, start, line, col, prev) {\n  var body = source.body;\n  var code;\n  var position = start;\n\n  do {\n    code = body.charCodeAt(++position);\n  } while (!isNaN(code) && ( // SourceCharacter but not LineTerminator\n  code > 0x001f || code === 0x0009));\n\n  return new Token(TokenKind.COMMENT, start, position, line, col, prev, body.slice(start + 1, position));\n}\n/**\n * Reads a number token from the source file, either a float\n * or an int depending on whether a decimal point appears.\n *\n * Int:   -?(0|[1-9][0-9]*)\n * Float: -?(0|[1-9][0-9]*)(\\.[0-9]+)?((E|e)(+|-)?[0-9]+)?\n */\n\n\nfunction readNumber(source, start, firstCode, line, col, prev) {\n  var body = source.body;\n  var code = firstCode;\n  var position = start;\n  var isFloat = false;\n\n  if (code === 45) {\n    // -\n    code = body.charCodeAt(++position);\n  }\n\n  if (code === 48) {\n    // 0\n    code = body.charCodeAt(++position);\n\n    if (code >= 48 && code <= 57) {\n      throw syntaxError(source, position, \"Invalid number, unexpected digit after 0: \".concat(printCharCode(code), \".\"));\n    }\n  } else {\n    position = readDigits(source, position, code);\n    code = body.charCodeAt(position);\n  }\n\n  if (code === 46) {\n    // .\n    isFloat = true;\n    code = body.charCodeAt(++position);\n    position = readDigits(source, position, code);\n    code = body.charCodeAt(position);\n  }\n\n  if (code === 69 || code === 101) {\n    // E e\n    isFloat = true;\n    code = body.charCodeAt(++position);\n\n    if (code === 43 || code === 45) {\n      // + -\n      code = body.charCodeAt(++position);\n    }\n\n    position = readDigits(source, position, code);\n    code = body.charCodeAt(position);\n  } // Numbers cannot be followed by . or NameStart\n\n\n  if (code === 46 || isNameStart(code)) {\n    throw syntaxError(source, position, \"Invalid number, expected digit but got: \".concat(printCharCode(code), \".\"));\n  }\n\n  return new Token(isFloat ? TokenKind.FLOAT : TokenKind.INT, start, position, line, col, prev, body.slice(start, position));\n}\n/**\n * Returns the new position in the source after reading digits.\n */\n\n\nfunction readDigits(source, start, firstCode) {\n  var body = source.body;\n  var position = start;\n  var code = firstCode;\n\n  if (code >= 48 && code <= 57) {\n    // 0 - 9\n    do {\n      code = body.charCodeAt(++position);\n    } while (code >= 48 && code <= 57); // 0 - 9\n\n\n    return position;\n  }\n\n  throw syntaxError(source, position, \"Invalid number, expected digit but got: \".concat(printCharCode(code), \".\"));\n}\n/**\n * Reads a string token from the source file.\n *\n * \"([^\"\\\\\\u000A\\u000D]|(\\\\(u[0-9a-fA-F]{4}|[\"\\\\/bfnrt])))*\"\n */\n\n\nfunction readString(source, start, line, col, prev) {\n  var body = source.body;\n  var position = start + 1;\n  var chunkStart = position;\n  var code = 0;\n  var value = '';\n\n  while (position < body.length && !isNaN(code = body.charCodeAt(position)) && // not LineTerminator\n  code !== 0x000a && code !== 0x000d) {\n    // Closing Quote (\")\n    if (code === 34) {\n      value += body.slice(chunkStart, position);\n      return new Token(TokenKind.STRING, start, position + 1, line, col, prev, value);\n    } // SourceCharacter\n\n\n    if (code < 0x0020 && code !== 0x0009) {\n      throw syntaxError(source, position, \"Invalid character within String: \".concat(printCharCode(code), \".\"));\n    }\n\n    ++position;\n\n    if (code === 92) {\n      // \\\n      value += body.slice(chunkStart, position - 1);\n      code = body.charCodeAt(position);\n\n      switch (code) {\n        case 34:\n          value += '\"';\n          break;\n\n        case 47:\n          value += '/';\n          break;\n\n        case 92:\n          value += '\\\\';\n          break;\n\n        case 98:\n          value += '\\b';\n          break;\n\n        case 102:\n          value += '\\f';\n          break;\n\n        case 110:\n          value += '\\n';\n          break;\n\n        case 114:\n          value += '\\r';\n          break;\n\n        case 116:\n          value += '\\t';\n          break;\n\n        case 117:\n          {\n            // uXXXX\n            var charCode = uniCharCode(body.charCodeAt(position + 1), body.charCodeAt(position + 2), body.charCodeAt(position + 3), body.charCodeAt(position + 4));\n\n            if (charCode < 0) {\n              var invalidSequence = body.slice(position + 1, position + 5);\n              throw syntaxError(source, position, \"Invalid character escape sequence: \\\\u\".concat(invalidSequence, \".\"));\n            }\n\n            value += String.fromCharCode(charCode);\n            position += 4;\n            break;\n          }\n\n        default:\n          throw syntaxError(source, position, \"Invalid character escape sequence: \\\\\".concat(String.fromCharCode(code), \".\"));\n      }\n\n      ++position;\n      chunkStart = position;\n    }\n  }\n\n  throw syntaxError(source, position, 'Unterminated string.');\n}\n/**\n * Reads a block string token from the source file.\n *\n * \"\"\"(\"?\"?(\\\\\"\"\"|\\\\(?!=\"\"\")|[^\"\\\\]))*\"\"\"\n */\n\n\nfunction readBlockString(source, start, line, col, prev, lexer) {\n  var body = source.body;\n  var position = start + 3;\n  var chunkStart = position;\n  var code = 0;\n  var rawValue = '';\n\n  while (position < body.length && !isNaN(code = body.charCodeAt(position))) {\n    // Closing Triple-Quote (\"\"\")\n    if (code === 34 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34) {\n      rawValue += body.slice(chunkStart, position);\n      return new Token(TokenKind.BLOCK_STRING, start, position + 3, line, col, prev, dedentBlockStringValue(rawValue));\n    } // SourceCharacter\n\n\n    if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) {\n      throw syntaxError(source, position, \"Invalid character within String: \".concat(printCharCode(code), \".\"));\n    }\n\n    if (code === 10) {\n      // new line\n      ++position;\n      ++lexer.line;\n      lexer.lineStart = position;\n    } else if (code === 13) {\n      // carriage return\n      if (body.charCodeAt(position + 1) === 10) {\n        position += 2;\n      } else {\n        ++position;\n      }\n\n      ++lexer.line;\n      lexer.lineStart = position;\n    } else if ( // Escape Triple-Quote (\\\"\"\")\n    code === 92 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34 && body.charCodeAt(position + 3) === 34) {\n      rawValue += body.slice(chunkStart, position) + '\"\"\"';\n      position += 4;\n      chunkStart = position;\n    } else {\n      ++position;\n    }\n  }\n\n  throw syntaxError(source, position, 'Unterminated string.');\n}\n/**\n * Converts four hexadecimal chars to the integer that the\n * string represents. For example, uniCharCode('0','0','0','f')\n * will return 15, and uniCharCode('0','0','f','f') returns 255.\n *\n * Returns a negative number on error, if a char was invalid.\n *\n * This is implemented by noting that char2hex() returns -1 on error,\n * which means the result of ORing the char2hex() will also be negative.\n */\n\n\nfunction uniCharCode(a, b, c, d) {\n  return char2hex(a) << 12 | char2hex(b) << 8 | char2hex(c) << 4 | char2hex(d);\n}\n/**\n * Converts a hex character to its integer value.\n * '0' becomes 0, '9' becomes 9\n * 'A' becomes 10, 'F' becomes 15\n * 'a' becomes 10, 'f' becomes 15\n *\n * Returns -1 on error.\n */\n\n\nfunction char2hex(a) {\n  return a >= 48 && a <= 57 ? a - 48 // 0-9\n  : a >= 65 && a <= 70 ? a - 55 // A-F\n  : a >= 97 && a <= 102 ? a - 87 // a-f\n  : -1;\n}\n/**\n * Reads an alphanumeric + underscore name from the source.\n *\n * [_A-Za-z][_0-9A-Za-z]*\n */\n\n\nfunction readName(source, start, line, col, prev) {\n  var body = source.body;\n  var bodyLength = body.length;\n  var position = start + 1;\n  var code = 0;\n\n  while (position !== bodyLength && !isNaN(code = body.charCodeAt(position)) && (code === 95 || // _\n  code >= 48 && code <= 57 || // 0-9\n  code >= 65 && code <= 90 || // A-Z\n  code >= 97 && code <= 122) // a-z\n  ) {\n    ++position;\n  }\n\n  return new Token(TokenKind.NAME, start, position, line, col, prev, body.slice(start, position));\n} // _ A-Z a-z\n\n\nfunction isNameStart(code) {\n  return code === 95 || code >= 65 && code <= 90 || code >= 97 && code <= 122;\n}\n", "import { syntaxError } from \"../error/syntaxError.mjs\";\nimport { Kind } from \"./kinds.mjs\";\nimport { Location } from \"./ast.mjs\";\nimport { TokenKind } from \"./tokenKind.mjs\";\nimport { Source, isSource } from \"./source.mjs\";\nimport { DirectiveLocation } from \"./directiveLocation.mjs\";\nimport { Lexer, isPunctuatorTokenKind } from \"./lexer.mjs\";\n/**\n * Configuration options to control parser behavior\n */\n\n/**\n * Given a GraphQL source, parses it into a Document.\n * Throws GraphQLError if a syntax error is encountered.\n */\nexport function parse(source, options) {\n  var parser = new Parser(source, options);\n  return parser.parseDocument();\n}\n/**\n * Given a string containing a GraphQL value (ex. `[42]`), parse the AST for\n * that value.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Values directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: valueFromAST().\n */\n\nexport function parseValue(source, options) {\n  var parser = new Parser(source, options);\n  parser.expectToken(TokenKind.SOF);\n  var value = parser.parseValueLiteral(false);\n  parser.expectToken(TokenKind.EOF);\n  return value;\n}\n/**\n * Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for\n * that type.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Types directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: typeFromAST().\n */\n\nexport function parseType(source, options) {\n  var parser = new Parser(source, options);\n  parser.expectToken(TokenKind.SOF);\n  var type = parser.parseTypeReference();\n  parser.expectToken(TokenKind.EOF);\n  return type;\n}\n/**\n * This class is exported only to assist people in implementing their own parsers\n * without duplicating too much code and should be used only as last resort for cases\n * such as experimental syntax or if certain features could not be contributed upstream.\n *\n * It is still part of the internal API and is versioned, so any changes to it are never\n * considered breaking changes. If you still need to support multiple versions of the\n * library, please use the `versionInfo` variable for version detection.\n *\n * @internal\n */\n\nexport var Parser = /*#__PURE__*/function () {\n  function Parser(source, options) {\n    var sourceObj = isSource(source) ? source : new Source(source);\n    this._lexer = new Lexer(sourceObj);\n    this._options = options;\n  }\n  /**\n   * Converts a name lex token into a name parse node.\n   */\n\n\n  var _proto = Parser.prototype;\n\n  _proto.parseName = function parseName() {\n    var token = this.expectToken(TokenKind.NAME);\n    return {\n      kind: Kind.NAME,\n      value: token.value,\n      loc: this.loc(token)\n    };\n  } // Implements the parsing rules in the Document section.\n\n  /**\n   * Document : Definition+\n   */\n  ;\n\n  _proto.parseDocument = function parseDocument() {\n    var start = this._lexer.token;\n    return {\n      kind: Kind.DOCUMENT,\n      definitions: this.many(TokenKind.SOF, this.parseDefinition, TokenKind.EOF),\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * Definition :\n   *   - ExecutableDefinition\n   *   - TypeSystemDefinition\n   *   - TypeSystemExtension\n   *\n   * ExecutableDefinition :\n   *   - OperationDefinition\n   *   - FragmentDefinition\n   */\n  ;\n\n  _proto.parseDefinition = function parseDefinition() {\n    if (this.peek(TokenKind.NAME)) {\n      switch (this._lexer.token.value) {\n        case 'query':\n        case 'mutation':\n        case 'subscription':\n          return this.parseOperationDefinition();\n\n        case 'fragment':\n          return this.parseFragmentDefinition();\n\n        case 'schema':\n        case 'scalar':\n        case 'type':\n        case 'interface':\n        case 'union':\n        case 'enum':\n        case 'input':\n        case 'directive':\n          return this.parseTypeSystemDefinition();\n\n        case 'extend':\n          return this.parseTypeSystemExtension();\n      }\n    } else if (this.peek(TokenKind.BRACE_L)) {\n      return this.parseOperationDefinition();\n    } else if (this.peekDescription()) {\n      return this.parseTypeSystemDefinition();\n    }\n\n    throw this.unexpected();\n  } // Implements the parsing rules in the Operations section.\n\n  /**\n   * OperationDefinition :\n   *  - SelectionSet\n   *  - OperationType Name? VariableDefinitions? Directives? SelectionSet\n   */\n  ;\n\n  _proto.parseOperationDefinition = function parseOperationDefinition() {\n    var start = this._lexer.token;\n\n    if (this.peek(TokenKind.BRACE_L)) {\n      return {\n        kind: Kind.OPERATION_DEFINITION,\n        operation: 'query',\n        name: undefined,\n        variableDefinitions: [],\n        directives: [],\n        selectionSet: this.parseSelectionSet(),\n        loc: this.loc(start)\n      };\n    }\n\n    var operation = this.parseOperationType();\n    var name;\n\n    if (this.peek(TokenKind.NAME)) {\n      name = this.parseName();\n    }\n\n    return {\n      kind: Kind.OPERATION_DEFINITION,\n      operation: operation,\n      name: name,\n      variableDefinitions: this.parseVariableDefinitions(),\n      directives: this.parseDirectives(false),\n      selectionSet: this.parseSelectionSet(),\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * OperationType : one of query mutation subscription\n   */\n  ;\n\n  _proto.parseOperationType = function parseOperationType() {\n    var operationToken = this.expectToken(TokenKind.NAME);\n\n    switch (operationToken.value) {\n      case 'query':\n        return 'query';\n\n      case 'mutation':\n        return 'mutation';\n\n      case 'subscription':\n        return 'subscription';\n    }\n\n    throw this.unexpected(operationToken);\n  }\n  /**\n   * VariableDefinitions : ( VariableDefinition+ )\n   */\n  ;\n\n  _proto.parseVariableDefinitions = function parseVariableDefinitions() {\n    return this.optionalMany(TokenKind.PAREN_L, this.parseVariableDefinition, TokenKind.PAREN_R);\n  }\n  /**\n   * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?\n   */\n  ;\n\n  _proto.parseVariableDefinition = function parseVariableDefinition() {\n    var start = this._lexer.token;\n    return {\n      kind: Kind.VARIABLE_DEFINITION,\n      variable: this.parseVariable(),\n      type: (this.expectToken(TokenKind.COLON), this.parseTypeReference()),\n      defaultValue: this.expectOptionalToken(TokenKind.EQUALS) ? this.parseValueLiteral(true) : undefined,\n      directives: this.parseDirectives(true),\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * Variable : $ Name\n   */\n  ;\n\n  _proto.parseVariable = function parseVariable() {\n    var start = this._lexer.token;\n    this.expectToken(TokenKind.DOLLAR);\n    return {\n      kind: Kind.VARIABLE,\n      name: this.parseName(),\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * SelectionSet : { Selection+ }\n   */\n  ;\n\n  _proto.parseSelectionSet = function parseSelectionSet() {\n    var start = this._lexer.token;\n    return {\n      kind: Kind.SELECTION_SET,\n      selections: this.many(TokenKind.BRACE_L, this.parseSelection, TokenKind.BRACE_R),\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * Selection :\n   *   - Field\n   *   - FragmentSpread\n   *   - InlineFragment\n   */\n  ;\n\n  _proto.parseSelection = function parseSelection() {\n    return this.peek(TokenKind.SPREAD) ? this.parseFragment() : this.parseField();\n  }\n  /**\n   * Field : Alias? Name Arguments? Directives? SelectionSet?\n   *\n   * Alias : Name :\n   */\n  ;\n\n  _proto.parseField = function parseField() {\n    var start = this._lexer.token;\n    var nameOrAlias = this.parseName();\n    var alias;\n    var name;\n\n    if (this.expectOptionalToken(TokenKind.COLON)) {\n      alias = nameOrAlias;\n      name = this.parseName();\n    } else {\n      name = nameOrAlias;\n    }\n\n    return {\n      kind: Kind.FIELD,\n      alias: alias,\n      name: name,\n      arguments: this.parseArguments(false),\n      directives: this.parseDirectives(false),\n      selectionSet: this.peek(TokenKind.BRACE_L) ? this.parseSelectionSet() : undefined,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * Arguments[Const] : ( Argument[?Const]+ )\n   */\n  ;\n\n  _proto.parseArguments = function parseArguments(isConst) {\n    var item = isConst ? this.parseConstArgument : this.parseArgument;\n    return this.optionalMany(TokenKind.PAREN_L, item, TokenKind.PAREN_R);\n  }\n  /**\n   * Argument[Const] : Name : Value[?Const]\n   */\n  ;\n\n  _proto.parseArgument = function parseArgument() {\n    var start = this._lexer.token;\n    var name = this.parseName();\n    this.expectToken(TokenKind.COLON);\n    return {\n      kind: Kind.ARGUMENT,\n      name: name,\n      value: this.parseValueLiteral(false),\n      loc: this.loc(start)\n    };\n  };\n\n  _proto.parseConstArgument = function parseConstArgument() {\n    var start = this._lexer.token;\n    return {\n      kind: Kind.ARGUMENT,\n      name: this.parseName(),\n      value: (this.expectToken(TokenKind.COLON), this.parseValueLiteral(true)),\n      loc: this.loc(start)\n    };\n  } // Implements the parsing rules in the Fragments section.\n\n  /**\n   * Corresponds to both FragmentSpread and InlineFragment in the spec.\n   *\n   * FragmentSpread : ... FragmentName Directives?\n   *\n   * InlineFragment : ... TypeCondition? Directives? SelectionSet\n   */\n  ;\n\n  _proto.parseFragment = function parseFragment() {\n    var start = this._lexer.token;\n    this.expectToken(TokenKind.SPREAD);\n    var hasTypeCondition = this.expectOptionalKeyword('on');\n\n    if (!hasTypeCondition && this.peek(TokenKind.NAME)) {\n      return {\n        kind: Kind.FRAGMENT_SPREAD,\n        name: this.parseFragmentName(),\n        directives: this.parseDirectives(false),\n        loc: this.loc(start)\n      };\n    }\n\n    return {\n      kind: Kind.INLINE_FRAGMENT,\n      typeCondition: hasTypeCondition ? this.parseNamedType() : undefined,\n      directives: this.parseDirectives(false),\n      selectionSet: this.parseSelectionSet(),\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * FragmentDefinition :\n   *   - fragment FragmentName on TypeCondition Directives? SelectionSet\n   *\n   * TypeCondition : NamedType\n   */\n  ;\n\n  _proto.parseFragmentDefinition = function parseFragmentDefinition() {\n    var _this$_options;\n\n    var start = this._lexer.token;\n    this.expectKeyword('fragment'); // Experimental support for defining variables within fragments changes\n    // the grammar of FragmentDefinition:\n    //   - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet\n\n    if (((_this$_options = this._options) === null || _this$_options === void 0 ? void 0 : _this$_options.experimentalFragmentVariables) === true) {\n      return {\n        kind: Kind.FRAGMENT_DEFINITION,\n        name: this.parseFragmentName(),\n        variableDefinitions: this.parseVariableDefinitions(),\n        typeCondition: (this.expectKeyword('on'), this.parseNamedType()),\n        directives: this.parseDirectives(false),\n        selectionSet: this.parseSelectionSet(),\n        loc: this.loc(start)\n      };\n    }\n\n    return {\n      kind: Kind.FRAGMENT_DEFINITION,\n      name: this.parseFragmentName(),\n      typeCondition: (this.expectKeyword('on'), this.parseNamedType()),\n      directives: this.parseDirectives(false),\n      selectionSet: this.parseSelectionSet(),\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * FragmentName : Name but not `on`\n   */\n  ;\n\n  _proto.parseFragmentName = function parseFragmentName() {\n    if (this._lexer.token.value === 'on') {\n      throw this.unexpected();\n    }\n\n    return this.parseName();\n  } // Implements the parsing rules in the Values section.\n\n  /**\n   * Value[Const] :\n   *   - [~Const] Variable\n   *   - IntValue\n   *   - FloatValue\n   *   - StringValue\n   *   - BooleanValue\n   *   - NullValue\n   *   - EnumValue\n   *   - ListValue[?Const]\n   *   - ObjectValue[?Const]\n   *\n   * BooleanValue : one of `true` `false`\n   *\n   * NullValue : `null`\n   *\n   * EnumValue : Name but not `true`, `false` or `null`\n   */\n  ;\n\n  _proto.parseValueLiteral = function parseValueLiteral(isConst) {\n    var token = this._lexer.token;\n\n    switch (token.kind) {\n      case TokenKind.BRACKET_L:\n        return this.parseList(isConst);\n\n      case TokenKind.BRACE_L:\n        return this.parseObject(isConst);\n\n      case TokenKind.INT:\n        this._lexer.advance();\n\n        return {\n          kind: Kind.INT,\n          value: token.value,\n          loc: this.loc(token)\n        };\n\n      case TokenKind.FLOAT:\n        this._lexer.advance();\n\n        return {\n          kind: Kind.FLOAT,\n          value: token.value,\n          loc: this.loc(token)\n        };\n\n      case TokenKind.STRING:\n      case TokenKind.BLOCK_STRING:\n        return this.parseStringLiteral();\n\n      case TokenKind.NAME:\n        this._lexer.advance();\n\n        switch (token.value) {\n          case 'true':\n            return {\n              kind: Kind.BOOLEAN,\n              value: true,\n              loc: this.loc(token)\n            };\n\n          case 'false':\n            return {\n              kind: Kind.BOOLEAN,\n              value: false,\n              loc: this.loc(token)\n            };\n\n          case 'null':\n            return {\n              kind: Kind.NULL,\n              loc: this.loc(token)\n            };\n\n          default:\n            return {\n              kind: Kind.ENUM,\n              value: token.value,\n              loc: this.loc(token)\n            };\n        }\n\n      case TokenKind.DOLLAR:\n        if (!isConst) {\n          return this.parseVariable();\n        }\n\n        break;\n    }\n\n    throw this.unexpected();\n  };\n\n  _proto.parseStringLiteral = function parseStringLiteral() {\n    var token = this._lexer.token;\n\n    this._lexer.advance();\n\n    return {\n      kind: Kind.STRING,\n      value: token.value,\n      block: token.kind === TokenKind.BLOCK_STRING,\n      loc: this.loc(token)\n    };\n  }\n  /**\n   * ListValue[Const] :\n   *   - [ ]\n   *   - [ Value[?Const]+ ]\n   */\n  ;\n\n  _proto.parseList = function parseList(isConst) {\n    var _this = this;\n\n    var start = this._lexer.token;\n\n    var item = function item() {\n      return _this.parseValueLiteral(isConst);\n    };\n\n    return {\n      kind: Kind.LIST,\n      values: this.any(TokenKind.BRACKET_L, item, TokenKind.BRACKET_R),\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * ObjectValue[Const] :\n   *   - { }\n   *   - { ObjectField[?Const]+ }\n   */\n  ;\n\n  _proto.parseObject = function parseObject(isConst) {\n    var _this2 = this;\n\n    var start = this._lexer.token;\n\n    var item = function item() {\n      return _this2.parseObjectField(isConst);\n    };\n\n    return {\n      kind: Kind.OBJECT,\n      fields: this.any(TokenKind.BRACE_L, item, TokenKind.BRACE_R),\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * ObjectField[Const] : Name : Value[?Const]\n   */\n  ;\n\n  _proto.parseObjectField = function parseObjectField(isConst) {\n    var start = this._lexer.token;\n    var name = this.parseName();\n    this.expectToken(TokenKind.COLON);\n    return {\n      kind: Kind.OBJECT_FIELD,\n      name: name,\n      value: this.parseValueLiteral(isConst),\n      loc: this.loc(start)\n    };\n  } // Implements the parsing rules in the Directives section.\n\n  /**\n   * Directives[Const] : Directive[?Const]+\n   */\n  ;\n\n  _proto.parseDirectives = function parseDirectives(isConst) {\n    var directives = [];\n\n    while (this.peek(TokenKind.AT)) {\n      directives.push(this.parseDirective(isConst));\n    }\n\n    return directives;\n  }\n  /**\n   * Directive[Const] : @ Name Arguments[?Const]?\n   */\n  ;\n\n  _proto.parseDirective = function parseDirective(isConst) {\n    var start = this._lexer.token;\n    this.expectToken(TokenKind.AT);\n    return {\n      kind: Kind.DIRECTIVE,\n      name: this.parseName(),\n      arguments: this.parseArguments(isConst),\n      loc: this.loc(start)\n    };\n  } // Implements the parsing rules in the Types section.\n\n  /**\n   * Type :\n   *   - NamedType\n   *   - ListType\n   *   - NonNullType\n   */\n  ;\n\n  _proto.parseTypeReference = function parseTypeReference() {\n    var start = this._lexer.token;\n    var type;\n\n    if (this.expectOptionalToken(TokenKind.BRACKET_L)) {\n      type = this.parseTypeReference();\n      this.expectToken(TokenKind.BRACKET_R);\n      type = {\n        kind: Kind.LIST_TYPE,\n        type: type,\n        loc: this.loc(start)\n      };\n    } else {\n      type = this.parseNamedType();\n    }\n\n    if (this.expectOptionalToken(TokenKind.BANG)) {\n      return {\n        kind: Kind.NON_NULL_TYPE,\n        type: type,\n        loc: this.loc(start)\n      };\n    }\n\n    return type;\n  }\n  /**\n   * NamedType : Name\n   */\n  ;\n\n  _proto.parseNamedType = function parseNamedType() {\n    var start = this._lexer.token;\n    return {\n      kind: Kind.NAMED_TYPE,\n      name: this.parseName(),\n      loc: this.loc(start)\n    };\n  } // Implements the parsing rules in the Type Definition section.\n\n  /**\n   * TypeSystemDefinition :\n   *   - SchemaDefinition\n   *   - TypeDefinition\n   *   - DirectiveDefinition\n   *\n   * TypeDefinition :\n   *   - ScalarTypeDefinition\n   *   - ObjectTypeDefinition\n   *   - InterfaceTypeDefinition\n   *   - UnionTypeDefinition\n   *   - EnumTypeDefinition\n   *   - InputObjectTypeDefinition\n   */\n  ;\n\n  _proto.parseTypeSystemDefinition = function parseTypeSystemDefinition() {\n    // Many definitions begin with a description and require a lookahead.\n    var keywordToken = this.peekDescription() ? this._lexer.lookahead() : this._lexer.token;\n\n    if (keywordToken.kind === TokenKind.NAME) {\n      switch (keywordToken.value) {\n        case 'schema':\n          return this.parseSchemaDefinition();\n\n        case 'scalar':\n          return this.parseScalarTypeDefinition();\n\n        case 'type':\n          return this.parseObjectTypeDefinition();\n\n        case 'interface':\n          return this.parseInterfaceTypeDefinition();\n\n        case 'union':\n          return this.parseUnionTypeDefinition();\n\n        case 'enum':\n          return this.parseEnumTypeDefinition();\n\n        case 'input':\n          return this.parseInputObjectTypeDefinition();\n\n        case 'directive':\n          return this.parseDirectiveDefinition();\n      }\n    }\n\n    throw this.unexpected(keywordToken);\n  };\n\n  _proto.peekDescription = function peekDescription() {\n    return this.peek(TokenKind.STRING) || this.peek(TokenKind.BLOCK_STRING);\n  }\n  /**\n   * Description : StringValue\n   */\n  ;\n\n  _proto.parseDescription = function parseDescription() {\n    if (this.peekDescription()) {\n      return this.parseStringLiteral();\n    }\n  }\n  /**\n   * SchemaDefinition : Description? schema Directives[Const]? { OperationTypeDefinition+ }\n   */\n  ;\n\n  _proto.parseSchemaDefinition = function parseSchemaDefinition() {\n    var start = this._lexer.token;\n    var description = this.parseDescription();\n    this.expectKeyword('schema');\n    var directives = this.parseDirectives(true);\n    var operationTypes = this.many(TokenKind.BRACE_L, this.parseOperationTypeDefinition, TokenKind.BRACE_R);\n    return {\n      kind: Kind.SCHEMA_DEFINITION,\n      description: description,\n      directives: directives,\n      operationTypes: operationTypes,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * OperationTypeDefinition : OperationType : NamedType\n   */\n  ;\n\n  _proto.parseOperationTypeDefinition = function parseOperationTypeDefinition() {\n    var start = this._lexer.token;\n    var operation = this.parseOperationType();\n    this.expectToken(TokenKind.COLON);\n    var type = this.parseNamedType();\n    return {\n      kind: Kind.OPERATION_TYPE_DEFINITION,\n      operation: operation,\n      type: type,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * ScalarTypeDefinition : Description? scalar Name Directives[Const]?\n   */\n  ;\n\n  _proto.parseScalarTypeDefinition = function parseScalarTypeDefinition() {\n    var start = this._lexer.token;\n    var description = this.parseDescription();\n    this.expectKeyword('scalar');\n    var name = this.parseName();\n    var directives = this.parseDirectives(true);\n    return {\n      kind: Kind.SCALAR_TYPE_DEFINITION,\n      description: description,\n      name: name,\n      directives: directives,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * ObjectTypeDefinition :\n   *   Description?\n   *   type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?\n   */\n  ;\n\n  _proto.parseObjectTypeDefinition = function parseObjectTypeDefinition() {\n    var start = this._lexer.token;\n    var description = this.parseDescription();\n    this.expectKeyword('type');\n    var name = this.parseName();\n    var interfaces = this.parseImplementsInterfaces();\n    var directives = this.parseDirectives(true);\n    var fields = this.parseFieldsDefinition();\n    return {\n      kind: Kind.OBJECT_TYPE_DEFINITION,\n      description: description,\n      name: name,\n      interfaces: interfaces,\n      directives: directives,\n      fields: fields,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * ImplementsInterfaces :\n   *   - implements `&`? NamedType\n   *   - ImplementsInterfaces & NamedType\n   */\n  ;\n\n  _proto.parseImplementsInterfaces = function parseImplementsInterfaces() {\n    var _this$_options2;\n\n    if (!this.expectOptionalKeyword('implements')) {\n      return [];\n    }\n\n    if (((_this$_options2 = this._options) === null || _this$_options2 === void 0 ? void 0 : _this$_options2.allowLegacySDLImplementsInterfaces) === true) {\n      var types = []; // Optional leading ampersand\n\n      this.expectOptionalToken(TokenKind.AMP);\n\n      do {\n        types.push(this.parseNamedType());\n      } while (this.expectOptionalToken(TokenKind.AMP) || this.peek(TokenKind.NAME));\n\n      return types;\n    }\n\n    return this.delimitedMany(TokenKind.AMP, this.parseNamedType);\n  }\n  /**\n   * FieldsDefinition : { FieldDefinition+ }\n   */\n  ;\n\n  _proto.parseFieldsDefinition = function parseFieldsDefinition() {\n    var _this$_options3;\n\n    // Legacy support for the SDL?\n    if (((_this$_options3 = this._options) === null || _this$_options3 === void 0 ? void 0 : _this$_options3.allowLegacySDLEmptyFields) === true && this.peek(TokenKind.BRACE_L) && this._lexer.lookahead().kind === TokenKind.BRACE_R) {\n      this._lexer.advance();\n\n      this._lexer.advance();\n\n      return [];\n    }\n\n    return this.optionalMany(TokenKind.BRACE_L, this.parseFieldDefinition, TokenKind.BRACE_R);\n  }\n  /**\n   * FieldDefinition :\n   *   - Description? Name ArgumentsDefinition? : Type Directives[Const]?\n   */\n  ;\n\n  _proto.parseFieldDefinition = function parseFieldDefinition() {\n    var start = this._lexer.token;\n    var description = this.parseDescription();\n    var name = this.parseName();\n    var args = this.parseArgumentDefs();\n    this.expectToken(TokenKind.COLON);\n    var type = this.parseTypeReference();\n    var directives = this.parseDirectives(true);\n    return {\n      kind: Kind.FIELD_DEFINITION,\n      description: description,\n      name: name,\n      arguments: args,\n      type: type,\n      directives: directives,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * ArgumentsDefinition : ( InputValueDefinition+ )\n   */\n  ;\n\n  _proto.parseArgumentDefs = function parseArgumentDefs() {\n    return this.optionalMany(TokenKind.PAREN_L, this.parseInputValueDef, TokenKind.PAREN_R);\n  }\n  /**\n   * InputValueDefinition :\n   *   - Description? Name : Type DefaultValue? Directives[Const]?\n   */\n  ;\n\n  _proto.parseInputValueDef = function parseInputValueDef() {\n    var start = this._lexer.token;\n    var description = this.parseDescription();\n    var name = this.parseName();\n    this.expectToken(TokenKind.COLON);\n    var type = this.parseTypeReference();\n    var defaultValue;\n\n    if (this.expectOptionalToken(TokenKind.EQUALS)) {\n      defaultValue = this.parseValueLiteral(true);\n    }\n\n    var directives = this.parseDirectives(true);\n    return {\n      kind: Kind.INPUT_VALUE_DEFINITION,\n      description: description,\n      name: name,\n      type: type,\n      defaultValue: defaultValue,\n      directives: directives,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * InterfaceTypeDefinition :\n   *   - Description? interface Name Directives[Const]? FieldsDefinition?\n   */\n  ;\n\n  _proto.parseInterfaceTypeDefinition = function parseInterfaceTypeDefinition() {\n    var start = this._lexer.token;\n    var description = this.parseDescription();\n    this.expectKeyword('interface');\n    var name = this.parseName();\n    var interfaces = this.parseImplementsInterfaces();\n    var directives = this.parseDirectives(true);\n    var fields = this.parseFieldsDefinition();\n    return {\n      kind: Kind.INTERFACE_TYPE_DEFINITION,\n      description: description,\n      name: name,\n      interfaces: interfaces,\n      directives: directives,\n      fields: fields,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * UnionTypeDefinition :\n   *   - Description? union Name Directives[Const]? UnionMemberTypes?\n   */\n  ;\n\n  _proto.parseUnionTypeDefinition = function parseUnionTypeDefinition() {\n    var start = this._lexer.token;\n    var description = this.parseDescription();\n    this.expectKeyword('union');\n    var name = this.parseName();\n    var directives = this.parseDirectives(true);\n    var types = this.parseUnionMemberTypes();\n    return {\n      kind: Kind.UNION_TYPE_DEFINITION,\n      description: description,\n      name: name,\n      directives: directives,\n      types: types,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * UnionMemberTypes :\n   *   - = `|`? NamedType\n   *   - UnionMemberTypes | NamedType\n   */\n  ;\n\n  _proto.parseUnionMemberTypes = function parseUnionMemberTypes() {\n    return this.expectOptionalToken(TokenKind.EQUALS) ? this.delimitedMany(TokenKind.PIPE, this.parseNamedType) : [];\n  }\n  /**\n   * EnumTypeDefinition :\n   *   - Description? enum Name Directives[Const]? EnumValuesDefinition?\n   */\n  ;\n\n  _proto.parseEnumTypeDefinition = function parseEnumTypeDefinition() {\n    var start = this._lexer.token;\n    var description = this.parseDescription();\n    this.expectKeyword('enum');\n    var name = this.parseName();\n    var directives = this.parseDirectives(true);\n    var values = this.parseEnumValuesDefinition();\n    return {\n      kind: Kind.ENUM_TYPE_DEFINITION,\n      description: description,\n      name: name,\n      directives: directives,\n      values: values,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * EnumValuesDefinition : { EnumValueDefinition+ }\n   */\n  ;\n\n  _proto.parseEnumValuesDefinition = function parseEnumValuesDefinition() {\n    return this.optionalMany(TokenKind.BRACE_L, this.parseEnumValueDefinition, TokenKind.BRACE_R);\n  }\n  /**\n   * EnumValueDefinition : Description? EnumValue Directives[Const]?\n   *\n   * EnumValue : Name\n   */\n  ;\n\n  _proto.parseEnumValueDefinition = function parseEnumValueDefinition() {\n    var start = this._lexer.token;\n    var description = this.parseDescription();\n    var name = this.parseName();\n    var directives = this.parseDirectives(true);\n    return {\n      kind: Kind.ENUM_VALUE_DEFINITION,\n      description: description,\n      name: name,\n      directives: directives,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * InputObjectTypeDefinition :\n   *   - Description? input Name Directives[Const]? InputFieldsDefinition?\n   */\n  ;\n\n  _proto.parseInputObjectTypeDefinition = function parseInputObjectTypeDefinition() {\n    var start = this._lexer.token;\n    var description = this.parseDescription();\n    this.expectKeyword('input');\n    var name = this.parseName();\n    var directives = this.parseDirectives(true);\n    var fields = this.parseInputFieldsDefinition();\n    return {\n      kind: Kind.INPUT_OBJECT_TYPE_DEFINITION,\n      description: description,\n      name: name,\n      directives: directives,\n      fields: fields,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * InputFieldsDefinition : { InputValueDefinition+ }\n   */\n  ;\n\n  _proto.parseInputFieldsDefinition = function parseInputFieldsDefinition() {\n    return this.optionalMany(TokenKind.BRACE_L, this.parseInputValueDef, TokenKind.BRACE_R);\n  }\n  /**\n   * TypeSystemExtension :\n   *   - SchemaExtension\n   *   - TypeExtension\n   *\n   * TypeExtension :\n   *   - ScalarTypeExtension\n   *   - ObjectTypeExtension\n   *   - InterfaceTypeExtension\n   *   - UnionTypeExtension\n   *   - EnumTypeExtension\n   *   - InputObjectTypeDefinition\n   */\n  ;\n\n  _proto.parseTypeSystemExtension = function parseTypeSystemExtension() {\n    var keywordToken = this._lexer.lookahead();\n\n    if (keywordToken.kind === TokenKind.NAME) {\n      switch (keywordToken.value) {\n        case 'schema':\n          return this.parseSchemaExtension();\n\n        case 'scalar':\n          return this.parseScalarTypeExtension();\n\n        case 'type':\n          return this.parseObjectTypeExtension();\n\n        case 'interface':\n          return this.parseInterfaceTypeExtension();\n\n        case 'union':\n          return this.parseUnionTypeExtension();\n\n        case 'enum':\n          return this.parseEnumTypeExtension();\n\n        case 'input':\n          return this.parseInputObjectTypeExtension();\n      }\n    }\n\n    throw this.unexpected(keywordToken);\n  }\n  /**\n   * SchemaExtension :\n   *  - extend schema Directives[Const]? { OperationTypeDefinition+ }\n   *  - extend schema Directives[Const]\n   */\n  ;\n\n  _proto.parseSchemaExtension = function parseSchemaExtension() {\n    var start = this._lexer.token;\n    this.expectKeyword('extend');\n    this.expectKeyword('schema');\n    var directives = this.parseDirectives(true);\n    var operationTypes = this.optionalMany(TokenKind.BRACE_L, this.parseOperationTypeDefinition, TokenKind.BRACE_R);\n\n    if (directives.length === 0 && operationTypes.length === 0) {\n      throw this.unexpected();\n    }\n\n    return {\n      kind: Kind.SCHEMA_EXTENSION,\n      directives: directives,\n      operationTypes: operationTypes,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * ScalarTypeExtension :\n   *   - extend scalar Name Directives[Const]\n   */\n  ;\n\n  _proto.parseScalarTypeExtension = function parseScalarTypeExtension() {\n    var start = this._lexer.token;\n    this.expectKeyword('extend');\n    this.expectKeyword('scalar');\n    var name = this.parseName();\n    var directives = this.parseDirectives(true);\n\n    if (directives.length === 0) {\n      throw this.unexpected();\n    }\n\n    return {\n      kind: Kind.SCALAR_TYPE_EXTENSION,\n      name: name,\n      directives: directives,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * ObjectTypeExtension :\n   *  - extend type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n   *  - extend type Name ImplementsInterfaces? Directives[Const]\n   *  - extend type Name ImplementsInterfaces\n   */\n  ;\n\n  _proto.parseObjectTypeExtension = function parseObjectTypeExtension() {\n    var start = this._lexer.token;\n    this.expectKeyword('extend');\n    this.expectKeyword('type');\n    var name = this.parseName();\n    var interfaces = this.parseImplementsInterfaces();\n    var directives = this.parseDirectives(true);\n    var fields = this.parseFieldsDefinition();\n\n    if (interfaces.length === 0 && directives.length === 0 && fields.length === 0) {\n      throw this.unexpected();\n    }\n\n    return {\n      kind: Kind.OBJECT_TYPE_EXTENSION,\n      name: name,\n      interfaces: interfaces,\n      directives: directives,\n      fields: fields,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * InterfaceTypeExtension :\n   *  - extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n   *  - extend interface Name ImplementsInterfaces? Directives[Const]\n   *  - extend interface Name ImplementsInterfaces\n   */\n  ;\n\n  _proto.parseInterfaceTypeExtension = function parseInterfaceTypeExtension() {\n    var start = this._lexer.token;\n    this.expectKeyword('extend');\n    this.expectKeyword('interface');\n    var name = this.parseName();\n    var interfaces = this.parseImplementsInterfaces();\n    var directives = this.parseDirectives(true);\n    var fields = this.parseFieldsDefinition();\n\n    if (interfaces.length === 0 && directives.length === 0 && fields.length === 0) {\n      throw this.unexpected();\n    }\n\n    return {\n      kind: Kind.INTERFACE_TYPE_EXTENSION,\n      name: name,\n      interfaces: interfaces,\n      directives: directives,\n      fields: fields,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * UnionTypeExtension :\n   *   - extend union Name Directives[Const]? UnionMemberTypes\n   *   - extend union Name Directives[Const]\n   */\n  ;\n\n  _proto.parseUnionTypeExtension = function parseUnionTypeExtension() {\n    var start = this._lexer.token;\n    this.expectKeyword('extend');\n    this.expectKeyword('union');\n    var name = this.parseName();\n    var directives = this.parseDirectives(true);\n    var types = this.parseUnionMemberTypes();\n\n    if (directives.length === 0 && types.length === 0) {\n      throw this.unexpected();\n    }\n\n    return {\n      kind: Kind.UNION_TYPE_EXTENSION,\n      name: name,\n      directives: directives,\n      types: types,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * EnumTypeExtension :\n   *   - extend enum Name Directives[Const]? EnumValuesDefinition\n   *   - extend enum Name Directives[Const]\n   */\n  ;\n\n  _proto.parseEnumTypeExtension = function parseEnumTypeExtension() {\n    var start = this._lexer.token;\n    this.expectKeyword('extend');\n    this.expectKeyword('enum');\n    var name = this.parseName();\n    var directives = this.parseDirectives(true);\n    var values = this.parseEnumValuesDefinition();\n\n    if (directives.length === 0 && values.length === 0) {\n      throw this.unexpected();\n    }\n\n    return {\n      kind: Kind.ENUM_TYPE_EXTENSION,\n      name: name,\n      directives: directives,\n      values: values,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * InputObjectTypeExtension :\n   *   - extend input Name Directives[Const]? InputFieldsDefinition\n   *   - extend input Name Directives[Const]\n   */\n  ;\n\n  _proto.parseInputObjectTypeExtension = function parseInputObjectTypeExtension() {\n    var start = this._lexer.token;\n    this.expectKeyword('extend');\n    this.expectKeyword('input');\n    var name = this.parseName();\n    var directives = this.parseDirectives(true);\n    var fields = this.parseInputFieldsDefinition();\n\n    if (directives.length === 0 && fields.length === 0) {\n      throw this.unexpected();\n    }\n\n    return {\n      kind: Kind.INPUT_OBJECT_TYPE_EXTENSION,\n      name: name,\n      directives: directives,\n      fields: fields,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * DirectiveDefinition :\n   *   - Description? directive @ Name ArgumentsDefinition? `repeatable`? on DirectiveLocations\n   */\n  ;\n\n  _proto.parseDirectiveDefinition = function parseDirectiveDefinition() {\n    var start = this._lexer.token;\n    var description = this.parseDescription();\n    this.expectKeyword('directive');\n    this.expectToken(TokenKind.AT);\n    var name = this.parseName();\n    var args = this.parseArgumentDefs();\n    var repeatable = this.expectOptionalKeyword('repeatable');\n    this.expectKeyword('on');\n    var locations = this.parseDirectiveLocations();\n    return {\n      kind: Kind.DIRECTIVE_DEFINITION,\n      description: description,\n      name: name,\n      arguments: args,\n      repeatable: repeatable,\n      locations: locations,\n      loc: this.loc(start)\n    };\n  }\n  /**\n   * DirectiveLocations :\n   *   - `|`? DirectiveLocation\n   *   - DirectiveLocations | DirectiveLocation\n   */\n  ;\n\n  _proto.parseDirectiveLocations = function parseDirectiveLocations() {\n    return this.delimitedMany(TokenKind.PIPE, this.parseDirectiveLocation);\n  }\n  /*\n   * DirectiveLocation :\n   *   - ExecutableDirectiveLocation\n   *   - TypeSystemDirectiveLocation\n   *\n   * ExecutableDirectiveLocation : one of\n   *   `QUERY`\n   *   `MUTATION`\n   *   `SUBSCRIPTION`\n   *   `FIELD`\n   *   `FRAGMENT_DEFINITION`\n   *   `FRAGMENT_SPREAD`\n   *   `INLINE_FRAGMENT`\n   *\n   * TypeSystemDirectiveLocation : one of\n   *   `SCHEMA`\n   *   `SCALAR`\n   *   `OBJECT`\n   *   `FIELD_DEFINITION`\n   *   `ARGUMENT_DEFINITION`\n   *   `INTERFACE`\n   *   `UNION`\n   *   `ENUM`\n   *   `ENUM_VALUE`\n   *   `INPUT_OBJECT`\n   *   `INPUT_FIELD_DEFINITION`\n   */\n  ;\n\n  _proto.parseDirectiveLocation = function parseDirectiveLocation() {\n    var start = this._lexer.token;\n    var name = this.parseName();\n\n    if (DirectiveLocation[name.value] !== undefined) {\n      return name;\n    }\n\n    throw this.unexpected(start);\n  } // Core parsing utility functions\n\n  /**\n   * Returns a location object, used to identify the place in the source that created a given parsed object.\n   */\n  ;\n\n  _proto.loc = function loc(startToken) {\n    var _this$_options4;\n\n    if (((_this$_options4 = this._options) === null || _this$_options4 === void 0 ? void 0 : _this$_options4.noLocation) !== true) {\n      return new Location(startToken, this._lexer.lastToken, this._lexer.source);\n    }\n  }\n  /**\n   * Determines if the next token is of a given kind\n   */\n  ;\n\n  _proto.peek = function peek(kind) {\n    return this._lexer.token.kind === kind;\n  }\n  /**\n   * If the next token is of the given kind, return that token after advancing the lexer.\n   * Otherwise, do not change the parser state and throw an error.\n   */\n  ;\n\n  _proto.expectToken = function expectToken(kind) {\n    var token = this._lexer.token;\n\n    if (token.kind === kind) {\n      this._lexer.advance();\n\n      return token;\n    }\n\n    throw syntaxError(this._lexer.source, token.start, \"Expected \".concat(getTokenKindDesc(kind), \", found \").concat(getTokenDesc(token), \".\"));\n  }\n  /**\n   * If the next token is of the given kind, return that token after advancing the lexer.\n   * Otherwise, do not change the parser state and return undefined.\n   */\n  ;\n\n  _proto.expectOptionalToken = function expectOptionalToken(kind) {\n    var token = this._lexer.token;\n\n    if (token.kind === kind) {\n      this._lexer.advance();\n\n      return token;\n    }\n\n    return undefined;\n  }\n  /**\n   * If the next token is a given keyword, advance the lexer.\n   * Otherwise, do not change the parser state and throw an error.\n   */\n  ;\n\n  _proto.expectKeyword = function expectKeyword(value) {\n    var token = this._lexer.token;\n\n    if (token.kind === TokenKind.NAME && token.value === value) {\n      this._lexer.advance();\n    } else {\n      throw syntaxError(this._lexer.source, token.start, \"Expected \\\"\".concat(value, \"\\\", found \").concat(getTokenDesc(token), \".\"));\n    }\n  }\n  /**\n   * If the next token is a given keyword, return \"true\" after advancing the lexer.\n   * Otherwise, do not change the parser state and return \"false\".\n   */\n  ;\n\n  _proto.expectOptionalKeyword = function expectOptionalKeyword(value) {\n    var token = this._lexer.token;\n\n    if (token.kind === TokenKind.NAME && token.value === value) {\n      this._lexer.advance();\n\n      return true;\n    }\n\n    return false;\n  }\n  /**\n   * Helper function for creating an error when an unexpected lexed token is encountered.\n   */\n  ;\n\n  _proto.unexpected = function unexpected(atToken) {\n    var token = atToken !== null && atToken !== void 0 ? atToken : this._lexer.token;\n    return syntaxError(this._lexer.source, token.start, \"Unexpected \".concat(getTokenDesc(token), \".\"));\n  }\n  /**\n   * Returns a possibly empty list of parse nodes, determined by the parseFn.\n   * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n   * Advances the parser to the next lex token after the closing token.\n   */\n  ;\n\n  _proto.any = function any(openKind, parseFn, closeKind) {\n    this.expectToken(openKind);\n    var nodes = [];\n\n    while (!this.expectOptionalToken(closeKind)) {\n      nodes.push(parseFn.call(this));\n    }\n\n    return nodes;\n  }\n  /**\n   * Returns a list of parse nodes, determined by the parseFn.\n   * It can be empty only if open token is missing otherwise it will always return non-empty list\n   * that begins with a lex token of openKind and ends with a lex token of closeKind.\n   * Advances the parser to the next lex token after the closing token.\n   */\n  ;\n\n  _proto.optionalMany = function optionalMany(openKind, parseFn, closeKind) {\n    if (this.expectOptionalToken(openKind)) {\n      var nodes = [];\n\n      do {\n        nodes.push(parseFn.call(this));\n      } while (!this.expectOptionalToken(closeKind));\n\n      return nodes;\n    }\n\n    return [];\n  }\n  /**\n   * Returns a non-empty list of parse nodes, determined by the parseFn.\n   * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n   * Advances the parser to the next lex token after the closing token.\n   */\n  ;\n\n  _proto.many = function many(openKind, parseFn, closeKind) {\n    this.expectToken(openKind);\n    var nodes = [];\n\n    do {\n      nodes.push(parseFn.call(this));\n    } while (!this.expectOptionalToken(closeKind));\n\n    return nodes;\n  }\n  /**\n   * Returns a non-empty list of parse nodes, determined by the parseFn.\n   * This list may begin with a lex token of delimiterKind followed by items separated by lex tokens of tokenKind.\n   * Advances the parser to the next lex token after last item in the list.\n   */\n  ;\n\n  _proto.delimitedMany = function delimitedMany(delimiterKind, parseFn) {\n    this.expectOptionalToken(delimiterKind);\n    var nodes = [];\n\n    do {\n      nodes.push(parseFn.call(this));\n    } while (this.expectOptionalToken(delimiterKind));\n\n    return nodes;\n  };\n\n  return Parser;\n}();\n/**\n * A helper function to describe a token as a string for debugging.\n */\n\nfunction getTokenDesc(token) {\n  var value = token.value;\n  return getTokenKindDesc(token.kind) + (value != null ? \" \\\"\".concat(value, \"\\\"\") : '');\n}\n/**\n * A helper function to describe a token kind as a string for debugging.\n */\n\n\nfunction getTokenKindDesc(kind) {\n  return isPunctuatorTokenKind(kind) ? \"\\\"\".concat(kind, \"\\\"\") : kind;\n}\n", "import inspect from \"../jsutils/inspect.mjs\";\nimport { isNode } from \"./ast.mjs\";\n/**\n * A visitor is provided to visit, it contains the collection of\n * relevant functions to be called during the visitor's traversal.\n */\n\nexport var QueryDocumentKeys = {\n  Name: [],\n  Document: ['definitions'],\n  OperationDefinition: ['name', 'variableDefinitions', 'directives', 'selectionSet'],\n  VariableDefinition: ['variable', 'type', 'defaultValue', 'directives'],\n  Variable: ['name'],\n  SelectionSet: ['selections'],\n  Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],\n  Argument: ['name', 'value'],\n  FragmentSpread: ['name', 'directives'],\n  InlineFragment: ['typeCondition', 'directives', 'selectionSet'],\n  FragmentDefinition: ['name', // Note: fragment variable definitions are experimental and may be changed\n  // or removed in the future.\n  'variableDefinitions', 'typeCondition', 'directives', 'selectionSet'],\n  IntValue: [],\n  FloatValue: [],\n  StringValue: [],\n  BooleanValue: [],\n  NullValue: [],\n  EnumValue: [],\n  ListValue: ['values'],\n  ObjectValue: ['fields'],\n  ObjectField: ['name', 'value'],\n  Directive: ['name', 'arguments'],\n  NamedType: ['name'],\n  ListType: ['type'],\n  NonNullType: ['type'],\n  SchemaDefinition: ['description', 'directives', 'operationTypes'],\n  OperationTypeDefinition: ['type'],\n  ScalarTypeDefinition: ['description', 'name', 'directives'],\n  ObjectTypeDefinition: ['description', 'name', 'interfaces', 'directives', 'fields'],\n  FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'],\n  InputValueDefinition: ['description', 'name', 'type', 'defaultValue', 'directives'],\n  InterfaceTypeDefinition: ['description', 'name', 'interfaces', 'directives', 'fields'],\n  UnionTypeDefinition: ['description', 'name', 'directives', 'types'],\n  EnumTypeDefinition: ['description', 'name', 'directives', 'values'],\n  EnumValueDefinition: ['description', 'name', 'directives'],\n  InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'],\n  DirectiveDefinition: ['description', 'name', 'arguments', 'locations'],\n  SchemaExtension: ['directives', 'operationTypes'],\n  ScalarTypeExtension: ['name', 'directives'],\n  ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n  InterfaceTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n  UnionTypeExtension: ['name', 'directives', 'types'],\n  EnumTypeExtension: ['name', 'directives', 'values'],\n  InputObjectTypeExtension: ['name', 'directives', 'fields']\n};\nexport var BREAK = Object.freeze({});\n/**\n * visit() will walk through an AST using a depth-first traversal, calling\n * the visitor's enter function at each node in the traversal, and calling the\n * leave function after visiting that node and all of its child nodes.\n *\n * By returning different values from the enter and leave functions, the\n * behavior of the visitor can be altered, including skipping over a sub-tree of\n * the AST (by returning false), editing the AST by returning a value or null\n * to remove the value, or to stop the whole traversal by returning BREAK.\n *\n * When using visit() to edit an AST, the original AST will not be modified, and\n * a new version of the AST with the changes applied will be returned from the\n * visit function.\n *\n *     const editedAST = visit(ast, {\n *       enter(node, key, parent, path, ancestors) {\n *         // @return\n *         //   undefined: no action\n *         //   false: skip visiting this node\n *         //   visitor.BREAK: stop visiting altogether\n *         //   null: delete this node\n *         //   any value: replace this node with the returned value\n *       },\n *       leave(node, key, parent, path, ancestors) {\n *         // @return\n *         //   undefined: no action\n *         //   false: no action\n *         //   visitor.BREAK: stop visiting altogether\n *         //   null: delete this node\n *         //   any value: replace this node with the returned value\n *       }\n *     });\n *\n * Alternatively to providing enter() and leave() functions, a visitor can\n * instead provide functions named the same as the kinds of AST nodes, or\n * enter/leave visitors at a named key, leading to four permutations of the\n * visitor API:\n *\n * 1) Named visitors triggered when entering a node of a specific kind.\n *\n *     visit(ast, {\n *       Kind(node) {\n *         // enter the \"Kind\" node\n *       }\n *     })\n *\n * 2) Named visitors that trigger upon entering and leaving a node of\n *    a specific kind.\n *\n *     visit(ast, {\n *       Kind: {\n *         enter(node) {\n *           // enter the \"Kind\" node\n *         }\n *         leave(node) {\n *           // leave the \"Kind\" node\n *         }\n *       }\n *     })\n *\n * 3) Generic visitors that trigger upon entering and leaving any node.\n *\n *     visit(ast, {\n *       enter(node) {\n *         // enter any node\n *       },\n *       leave(node) {\n *         // leave any node\n *       }\n *     })\n *\n * 4) Parallel visitors for entering and leaving nodes of a specific kind.\n *\n *     visit(ast, {\n *       enter: {\n *         Kind(node) {\n *           // enter the \"Kind\" node\n *         }\n *       },\n *       leave: {\n *         Kind(node) {\n *           // leave the \"Kind\" node\n *         }\n *       }\n *     })\n */\n\nexport function visit(root, visitor) {\n  var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys;\n\n  /* eslint-disable no-undef-init */\n  var stack = undefined;\n  var inArray = Array.isArray(root);\n  var keys = [root];\n  var index = -1;\n  var edits = [];\n  var node = undefined;\n  var key = undefined;\n  var parent = undefined;\n  var path = [];\n  var ancestors = [];\n  var newRoot = root;\n  /* eslint-enable no-undef-init */\n\n  do {\n    index++;\n    var isLeaving = index === keys.length;\n    var isEdited = isLeaving && edits.length !== 0;\n\n    if (isLeaving) {\n      key = ancestors.length === 0 ? undefined : path[path.length - 1];\n      node = parent;\n      parent = ancestors.pop();\n\n      if (isEdited) {\n        if (inArray) {\n          node = node.slice();\n        } else {\n          var clone = {};\n\n          for (var _i2 = 0, _Object$keys2 = Object.keys(node); _i2 < _Object$keys2.length; _i2++) {\n            var k = _Object$keys2[_i2];\n            clone[k] = node[k];\n          }\n\n          node = clone;\n        }\n\n        var editOffset = 0;\n\n        for (var ii = 0; ii < edits.length; ii++) {\n          var editKey = edits[ii][0];\n          var editValue = edits[ii][1];\n\n          if (inArray) {\n            editKey -= editOffset;\n          }\n\n          if (inArray && editValue === null) {\n            node.splice(editKey, 1);\n            editOffset++;\n          } else {\n            node[editKey] = editValue;\n          }\n        }\n      }\n\n      index = stack.index;\n      keys = stack.keys;\n      edits = stack.edits;\n      inArray = stack.inArray;\n      stack = stack.prev;\n    } else {\n      key = parent ? inArray ? index : keys[index] : undefined;\n      node = parent ? parent[key] : newRoot;\n\n      if (node === null || node === undefined) {\n        continue;\n      }\n\n      if (parent) {\n        path.push(key);\n      }\n    }\n\n    var result = void 0;\n\n    if (!Array.isArray(node)) {\n      if (!isNode(node)) {\n        throw new Error(\"Invalid AST Node: \".concat(inspect(node), \".\"));\n      }\n\n      var visitFn = getVisitFn(visitor, node.kind, isLeaving);\n\n      if (visitFn) {\n        result = visitFn.call(visitor, node, key, parent, path, ancestors);\n\n        if (result === BREAK) {\n          break;\n        }\n\n        if (result === false) {\n          if (!isLeaving) {\n            path.pop();\n            continue;\n          }\n        } else if (result !== undefined) {\n          edits.push([key, result]);\n\n          if (!isLeaving) {\n            if (isNode(result)) {\n              node = result;\n            } else {\n              path.pop();\n              continue;\n            }\n          }\n        }\n      }\n    }\n\n    if (result === undefined && isEdited) {\n      edits.push([key, node]);\n    }\n\n    if (isLeaving) {\n      path.pop();\n    } else {\n      var _visitorKeys$node$kin;\n\n      stack = {\n        inArray: inArray,\n        index: index,\n        keys: keys,\n        edits: edits,\n        prev: stack\n      };\n      inArray = Array.isArray(node);\n      keys = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];\n      index = -1;\n      edits = [];\n\n      if (parent) {\n        ancestors.push(parent);\n      }\n\n      parent = node;\n    }\n  } while (stack !== undefined);\n\n  if (edits.length !== 0) {\n    newRoot = edits[edits.length - 1][1];\n  }\n\n  return newRoot;\n}\n/**\n * Creates a new visitor instance which delegates to many visitors to run in\n * parallel. Each visitor will be visited for each node before moving on.\n *\n * If a prior visitor edits a node, no following visitors will see that node.\n */\n\nexport function visitInParallel(visitors) {\n  var skipping = new Array(visitors.length);\n  return {\n    enter: function enter(node) {\n      for (var i = 0; i < visitors.length; i++) {\n        if (skipping[i] == null) {\n          var fn = getVisitFn(visitors[i], node.kind,\n          /* isLeaving */\n          false);\n\n          if (fn) {\n            var result = fn.apply(visitors[i], arguments);\n\n            if (result === false) {\n              skipping[i] = node;\n            } else if (result === BREAK) {\n              skipping[i] = BREAK;\n            } else if (result !== undefined) {\n              return result;\n            }\n          }\n        }\n      }\n    },\n    leave: function leave(node) {\n      for (var i = 0; i < visitors.length; i++) {\n        if (skipping[i] == null) {\n          var fn = getVisitFn(visitors[i], node.kind,\n          /* isLeaving */\n          true);\n\n          if (fn) {\n            var result = fn.apply(visitors[i], arguments);\n\n            if (result === BREAK) {\n              skipping[i] = BREAK;\n            } else if (result !== undefined && result !== false) {\n              return result;\n            }\n          }\n        } else if (skipping[i] === node) {\n          skipping[i] = null;\n        }\n      }\n    }\n  };\n}\n/**\n * Given a visitor instance, if it is leaving or not, and a node kind, return\n * the function the visitor runtime should call.\n */\n\nexport function getVisitFn(visitor, kind, isLeaving) {\n  var kindVisitor = visitor[kind];\n\n  if (kindVisitor) {\n    if (!isLeaving && typeof kindVisitor === 'function') {\n      // { Kind() {} }\n      return kindVisitor;\n    }\n\n    var kindSpecificVisitor = isLeaving ? kindVisitor.leave : kindVisitor.enter;\n\n    if (typeof kindSpecificVisitor === 'function') {\n      // { Kind: { enter() {}, leave() {} } }\n      return kindSpecificVisitor;\n    }\n  } else {\n    var specificVisitor = isLeaving ? visitor.leave : visitor.enter;\n\n    if (specificVisitor) {\n      if (typeof specificVisitor === 'function') {\n        // { enter() {}, leave() {} }\n        return specificVisitor;\n      }\n\n      var specificKindVisitor = specificVisitor[kind];\n\n      if (typeof specificKindVisitor === 'function') {\n        // { enter: { Kind() {} }, leave: { Kind() {} } }\n        return specificKindVisitor;\n      }\n    }\n  }\n}\n", "import { visit } from \"./visitor.mjs\";\nimport { printBlockString } from \"./blockString.mjs\";\n/**\n * Converts an AST into a string, using one set of reasonable\n * formatting rules.\n */\n\nexport function print(ast) {\n  return visit(ast, {\n    leave: printDocASTReducer\n  });\n}\nvar MAX_LINE_LENGTH = 80; // TODO: provide better type coverage in future\n\nvar printDocASTReducer = {\n  Name: function Name(node) {\n    return node.value;\n  },\n  Variable: function Variable(node) {\n    return '$' + node.name;\n  },\n  // Document\n  Document: function Document(node) {\n    return join(node.definitions, '\\n\\n') + '\\n';\n  },\n  OperationDefinition: function OperationDefinition(node) {\n    var op = node.operation;\n    var name = node.name;\n    var varDefs = wrap('(', join(node.variableDefinitions, ', '), ')');\n    var directives = join(node.directives, ' ');\n    var selectionSet = node.selectionSet; // Anonymous queries with no directives or variable definitions can use\n    // the query short form.\n\n    return !name && !directives && !varDefs && op === 'query' ? selectionSet : join([op, join([name, varDefs]), directives, selectionSet], ' ');\n  },\n  VariableDefinition: function VariableDefinition(_ref) {\n    var variable = _ref.variable,\n        type = _ref.type,\n        defaultValue = _ref.defaultValue,\n        directives = _ref.directives;\n    return variable + ': ' + type + wrap(' = ', defaultValue) + wrap(' ', join(directives, ' '));\n  },\n  SelectionSet: function SelectionSet(_ref2) {\n    var selections = _ref2.selections;\n    return block(selections);\n  },\n  Field: function Field(_ref3) {\n    var alias = _ref3.alias,\n        name = _ref3.name,\n        args = _ref3.arguments,\n        directives = _ref3.directives,\n        selectionSet = _ref3.selectionSet;\n    var prefix = wrap('', alias, ': ') + name;\n    var argsLine = prefix + wrap('(', join(args, ', '), ')');\n\n    if (argsLine.length > MAX_LINE_LENGTH) {\n      argsLine = prefix + wrap('(\\n', indent(join(args, '\\n')), '\\n)');\n    }\n\n    return join([argsLine, join(directives, ' '), selectionSet], ' ');\n  },\n  Argument: function Argument(_ref4) {\n    var name = _ref4.name,\n        value = _ref4.value;\n    return name + ': ' + value;\n  },\n  // Fragments\n  FragmentSpread: function FragmentSpread(_ref5) {\n    var name = _ref5.name,\n        directives = _ref5.directives;\n    return '...' + name + wrap(' ', join(directives, ' '));\n  },\n  InlineFragment: function InlineFragment(_ref6) {\n    var typeCondition = _ref6.typeCondition,\n        directives = _ref6.directives,\n        selectionSet = _ref6.selectionSet;\n    return join(['...', wrap('on ', typeCondition), join(directives, ' '), selectionSet], ' ');\n  },\n  FragmentDefinition: function FragmentDefinition(_ref7) {\n    var name = _ref7.name,\n        typeCondition = _ref7.typeCondition,\n        variableDefinitions = _ref7.variableDefinitions,\n        directives = _ref7.directives,\n        selectionSet = _ref7.selectionSet;\n    return (// Note: fragment variable definitions are experimental and may be changed\n      // or removed in the future.\n      \"fragment \".concat(name).concat(wrap('(', join(variableDefinitions, ', '), ')'), \" \") + \"on \".concat(typeCondition, \" \").concat(wrap('', join(directives, ' '), ' ')) + selectionSet\n    );\n  },\n  // Value\n  IntValue: function IntValue(_ref8) {\n    var value = _ref8.value;\n    return value;\n  },\n  FloatValue: function FloatValue(_ref9) {\n    var value = _ref9.value;\n    return value;\n  },\n  StringValue: function StringValue(_ref10, key) {\n    var value = _ref10.value,\n        isBlockString = _ref10.block;\n    return isBlockString ? printBlockString(value, key === 'description' ? '' : '  ') : JSON.stringify(value);\n  },\n  BooleanValue: function BooleanValue(_ref11) {\n    var value = _ref11.value;\n    return value ? 'true' : 'false';\n  },\n  NullValue: function NullValue() {\n    return 'null';\n  },\n  EnumValue: function EnumValue(_ref12) {\n    var value = _ref12.value;\n    return value;\n  },\n  ListValue: function ListValue(_ref13) {\n    var values = _ref13.values;\n    return '[' + join(values, ', ') + ']';\n  },\n  ObjectValue: function ObjectValue(_ref14) {\n    var fields = _ref14.fields;\n    return '{' + join(fields, ', ') + '}';\n  },\n  ObjectField: function ObjectField(_ref15) {\n    var name = _ref15.name,\n        value = _ref15.value;\n    return name + ': ' + value;\n  },\n  // Directive\n  Directive: function Directive(_ref16) {\n    var name = _ref16.name,\n        args = _ref16.arguments;\n    return '@' + name + wrap('(', join(args, ', '), ')');\n  },\n  // Type\n  NamedType: function NamedType(_ref17) {\n    var name = _ref17.name;\n    return name;\n  },\n  ListType: function ListType(_ref18) {\n    var type = _ref18.type;\n    return '[' + type + ']';\n  },\n  NonNullType: function NonNullType(_ref19) {\n    var type = _ref19.type;\n    return type + '!';\n  },\n  // Type System Definitions\n  SchemaDefinition: addDescription(function (_ref20) {\n    var directives = _ref20.directives,\n        operationTypes = _ref20.operationTypes;\n    return join(['schema', join(directives, ' '), block(operationTypes)], ' ');\n  }),\n  OperationTypeDefinition: function OperationTypeDefinition(_ref21) {\n    var operation = _ref21.operation,\n        type = _ref21.type;\n    return operation + ': ' + type;\n  },\n  ScalarTypeDefinition: addDescription(function (_ref22) {\n    var name = _ref22.name,\n        directives = _ref22.directives;\n    return join(['scalar', name, join(directives, ' ')], ' ');\n  }),\n  ObjectTypeDefinition: addDescription(function (_ref23) {\n    var name = _ref23.name,\n        interfaces = _ref23.interfaces,\n        directives = _ref23.directives,\n        fields = _ref23.fields;\n    return join(['type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n  }),\n  FieldDefinition: addDescription(function (_ref24) {\n    var name = _ref24.name,\n        args = _ref24.arguments,\n        type = _ref24.type,\n        directives = _ref24.directives;\n    return name + (hasMultilineItems(args) ? wrap('(\\n', indent(join(args, '\\n')), '\\n)') : wrap('(', join(args, ', '), ')')) + ': ' + type + wrap(' ', join(directives, ' '));\n  }),\n  InputValueDefinition: addDescription(function (_ref25) {\n    var name = _ref25.name,\n        type = _ref25.type,\n        defaultValue = _ref25.defaultValue,\n        directives = _ref25.directives;\n    return join([name + ': ' + type, wrap('= ', defaultValue), join(directives, ' ')], ' ');\n  }),\n  InterfaceTypeDefinition: addDescription(function (_ref26) {\n    var name = _ref26.name,\n        interfaces = _ref26.interfaces,\n        directives = _ref26.directives,\n        fields = _ref26.fields;\n    return join(['interface', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n  }),\n  UnionTypeDefinition: addDescription(function (_ref27) {\n    var name = _ref27.name,\n        directives = _ref27.directives,\n        types = _ref27.types;\n    return join(['union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' ');\n  }),\n  EnumTypeDefinition: addDescription(function (_ref28) {\n    var name = _ref28.name,\n        directives = _ref28.directives,\n        values = _ref28.values;\n    return join(['enum', name, join(directives, ' '), block(values)], ' ');\n  }),\n  EnumValueDefinition: addDescription(function (_ref29) {\n    var name = _ref29.name,\n        directives = _ref29.directives;\n    return join([name, join(directives, ' ')], ' ');\n  }),\n  InputObjectTypeDefinition: addDescription(function (_ref30) {\n    var name = _ref30.name,\n        directives = _ref30.directives,\n        fields = _ref30.fields;\n    return join(['input', name, join(directives, ' '), block(fields)], ' ');\n  }),\n  DirectiveDefinition: addDescription(function (_ref31) {\n    var name = _ref31.name,\n        args = _ref31.arguments,\n        repeatable = _ref31.repeatable,\n        locations = _ref31.locations;\n    return 'directive @' + name + (hasMultilineItems(args) ? wrap('(\\n', indent(join(args, '\\n')), '\\n)') : wrap('(', join(args, ', '), ')')) + (repeatable ? ' repeatable' : '') + ' on ' + join(locations, ' | ');\n  }),\n  SchemaExtension: function SchemaExtension(_ref32) {\n    var directives = _ref32.directives,\n        operationTypes = _ref32.operationTypes;\n    return join(['extend schema', join(directives, ' '), block(operationTypes)], ' ');\n  },\n  ScalarTypeExtension: function ScalarTypeExtension(_ref33) {\n    var name = _ref33.name,\n        directives = _ref33.directives;\n    return join(['extend scalar', name, join(directives, ' ')], ' ');\n  },\n  ObjectTypeExtension: function ObjectTypeExtension(_ref34) {\n    var name = _ref34.name,\n        interfaces = _ref34.interfaces,\n        directives = _ref34.directives,\n        fields = _ref34.fields;\n    return join(['extend type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n  },\n  InterfaceTypeExtension: function InterfaceTypeExtension(_ref35) {\n    var name = _ref35.name,\n        interfaces = _ref35.interfaces,\n        directives = _ref35.directives,\n        fields = _ref35.fields;\n    return join(['extend interface', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n  },\n  UnionTypeExtension: function UnionTypeExtension(_ref36) {\n    var name = _ref36.name,\n        directives = _ref36.directives,\n        types = _ref36.types;\n    return join(['extend union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' ');\n  },\n  EnumTypeExtension: function EnumTypeExtension(_ref37) {\n    var name = _ref37.name,\n        directives = _ref37.directives,\n        values = _ref37.values;\n    return join(['extend enum', name, join(directives, ' '), block(values)], ' ');\n  },\n  InputObjectTypeExtension: function InputObjectTypeExtension(_ref38) {\n    var name = _ref38.name,\n        directives = _ref38.directives,\n        fields = _ref38.fields;\n    return join(['extend input', name, join(directives, ' '), block(fields)], ' ');\n  }\n};\n\nfunction addDescription(cb) {\n  return function (node) {\n    return join([node.description, cb(node)], '\\n');\n  };\n}\n/**\n * Given maybeArray, print an empty string if it is null or empty, otherwise\n * print all items together separated by separator if provided\n */\n\n\nfunction join(maybeArray) {\n  var _maybeArray$filter$jo;\n\n  var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n  return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter(function (x) {\n    return x;\n  }).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : '';\n}\n/**\n * Given array, print each item on its own line, wrapped in an\n * indented \"{ }\" block.\n */\n\n\nfunction block(array) {\n  return wrap('{\\n', indent(join(array, '\\n')), '\\n}');\n}\n/**\n * If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.\n */\n\n\nfunction wrap(start, maybeString) {\n  var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n  return maybeString != null && maybeString !== '' ? start + maybeString + end : '';\n}\n\nfunction indent(str) {\n  return wrap('  ', str.replace(/\\n/g, '\\n  '));\n}\n\nfunction isMultiline(str) {\n  return str.indexOf('\\n') !== -1;\n}\n\nfunction hasMultilineItems(maybeArray) {\n  return maybeArray != null && maybeArray.some(isMultiline);\n}\n", "import { Kind } from \"./kinds.mjs\";\nexport function isDefinitionNode(node) {\n  return isExecutableDefinitionNode(node) || isTypeSystemDefinitionNode(node) || isTypeSystemExtensionNode(node);\n}\nexport function isExecutableDefinitionNode(node) {\n  return node.kind === Kind.OPERATION_DEFINITION || node.kind === Kind.FRAGMENT_DEFINITION;\n}\nexport function isSelectionNode(node) {\n  return node.kind === Kind.FIELD || node.kind === Kind.FRAGMENT_SPREAD || node.kind === Kind.INLINE_FRAGMENT;\n}\nexport function isValueNode(node) {\n  return node.kind === Kind.VARIABLE || node.kind === Kind.INT || node.kind === Kind.FLOAT || node.kind === Kind.STRING || node.kind === Kind.BOOLEAN || node.kind === Kind.NULL || node.kind === Kind.ENUM || node.kind === Kind.LIST || node.kind === Kind.OBJECT;\n}\nexport function isTypeNode(node) {\n  return node.kind === Kind.NAMED_TYPE || node.kind === Kind.LIST_TYPE || node.kind === Kind.NON_NULL_TYPE;\n}\nexport function isTypeSystemDefinitionNode(node) {\n  return node.kind === Kind.SCHEMA_DEFINITION || isTypeDefinitionNode(node) || node.kind === Kind.DIRECTIVE_DEFINITION;\n}\nexport function isTypeDefinitionNode(node) {\n  return node.kind === Kind.SCALAR_TYPE_DEFINITION || node.kind === Kind.OBJECT_TYPE_DEFINITION || node.kind === Kind.INTERFACE_TYPE_DEFINITION || node.kind === Kind.UNION_TYPE_DEFINITION || node.kind === Kind.ENUM_TYPE_DEFINITION || node.kind === Kind.INPUT_OBJECT_TYPE_DEFINITION;\n}\nexport function isTypeSystemExtensionNode(node) {\n  return node.kind === Kind.SCHEMA_EXTENSION || isTypeExtensionNode(node);\n}\nexport function isTypeExtensionNode(node) {\n  return node.kind === Kind.SCALAR_TYPE_EXTENSION || node.kind === Kind.OBJECT_TYPE_EXTENSION || node.kind === Kind.INTERFACE_TYPE_EXTENSION || node.kind === Kind.UNION_TYPE_EXTENSION || node.kind === Kind.ENUM_TYPE_EXTENSION || node.kind === Kind.INPUT_OBJECT_TYPE_EXTENSION;\n}\n", "import { Source, isSource } from \"../language/source.mjs\";\nimport { TokenKind } from \"../language/tokenKind.mjs\";\nimport { Lexer, isPunctuatorTokenKind } from \"../language/lexer.mjs\";\nimport { dedentBlockStringValue, getBlockStringIndentation } from \"../language/blockString.mjs\";\n/**\n * Strips characters that are not significant to the validity or execution\n * of a GraphQL document:\n *   - UnicodeBOM\n *   - WhiteSpace\n *   - LineTerminator\n *   - Comment\n *   - Comma\n *   - BlockString indentation\n *\n * Note: It is required to have a delimiter character between neighboring\n * non-punctuator tokens and this function always uses single space as delimiter.\n *\n * It is guaranteed that both input and output documents if parsed would result\n * in the exact same AST except for nodes location.\n *\n * Warning: It is guaranteed that this function will always produce stable results.\n * However, it's not guaranteed that it will stay the same between different\n * releases due to bugfixes or changes in the GraphQL specification.\n *\n * Query example:\n *\n * query SomeQuery($foo: String!, $bar: String) {\n *   someField(foo: $foo, bar: $bar) {\n *     a\n *     b {\n *       c\n *       d\n *     }\n *   }\n * }\n *\n * Becomes:\n *\n * query SomeQuery($foo:String!$bar:String){someField(foo:$foo bar:$bar){a b{c d}}}\n *\n * SDL example:\n *\n * \"\"\"\n * Type description\n * \"\"\"\n * type Foo {\n *   \"\"\"\n *   Field description\n *   \"\"\"\n *   bar: String\n * }\n *\n * Becomes:\n *\n * \"\"\"Type description\"\"\" type Foo{\"\"\"Field description\"\"\" bar:String}\n */\n\nexport function stripIgnoredCharacters(source) {\n  var sourceObj = isSource(source) ? source : new Source(source);\n  var body = sourceObj.body;\n  var lexer = new Lexer(sourceObj);\n  var strippedBody = '';\n  var wasLastAddedTokenNonPunctuator = false;\n\n  while (lexer.advance().kind !== TokenKind.EOF) {\n    var currentToken = lexer.token;\n    var tokenKind = currentToken.kind;\n    /**\n     * Every two non-punctuator tokens should have space between them.\n     * Also prevent case of non-punctuator token following by spread resulting\n     * in invalid token (e.g. `1...` is invalid Float token).\n     */\n\n    var isNonPunctuator = !isPunctuatorTokenKind(currentToken.kind);\n\n    if (wasLastAddedTokenNonPunctuator) {\n      if (isNonPunctuator || currentToken.kind === TokenKind.SPREAD) {\n        strippedBody += ' ';\n      }\n    }\n\n    var tokenBody = body.slice(currentToken.start, currentToken.end);\n\n    if (tokenKind === TokenKind.BLOCK_STRING) {\n      strippedBody += dedentBlockString(tokenBody);\n    } else {\n      strippedBody += tokenBody;\n    }\n\n    wasLastAddedTokenNonPunctuator = isNonPunctuator;\n  }\n\n  return strippedBody;\n}\n\nfunction dedentBlockString(blockStr) {\n  // skip leading and trailing triple quotations\n  var rawStr = blockStr.slice(3, -3);\n  var body = dedentBlockStringValue(rawStr);\n\n  if (getBlockStringIndentation(body) > 0) {\n    body = '\\n' + body;\n  }\n\n  var lastChar = body[body.length - 1];\n  var hasTrailingQuote = lastChar === '\"' && body.slice(-4) !== '\\\\\"\"\"';\n\n  if (hasTrailingQuote || lastChar === '\\\\') {\n    body += '\\n';\n  }\n\n  return '\"\"\"' + body + '\"\"\"';\n}\n", "import { invariant } from \"../globals/index.js\";\n\n// Provides the methods that allow QueryManager to handle the `skip` and\n// `include` directives within GraphQL.\nimport type {\n  SelectionNode,\n  VariableNode,\n  BooleanValueNode,\n  DirectiveNode,\n  DocumentNode,\n  ArgumentNode,\n  ValueNode,\n  ASTNode,\n} from \"graphql\";\nimport { visit, BREAK } from \"graphql\";\n\nexport type DirectiveInfo = {\n  [fieldName: string]: { [argName: string]: any };\n};\n\nexport function shouldInclude(\n  { directives }: SelectionNode,\n  variables?: Record<string, any>\n): boolean {\n  if (!directives || !directives.length) {\n    return true;\n  }\n  return getInclusionDirectives(directives).every(\n    ({ directive, ifArgument }) => {\n      let evaledValue: boolean = false;\n      if (ifArgument.value.kind === \"Variable\") {\n        evaledValue =\n          variables && variables[(ifArgument.value as VariableNode).name.value];\n        invariant(\n          evaledValue !== void 0,\n          `Invalid variable referenced in @%s directive.`,\n          directive.name.value\n        );\n      } else {\n        evaledValue = (ifArgument.value as BooleanValueNode).value;\n      }\n      return directive.name.value === \"skip\" ? !evaledValue : evaledValue;\n    }\n  );\n}\n\nexport function getDirectiveNames(root: ASTNode) {\n  const names: string[] = [];\n\n  visit(root, {\n    Directive(node: DirectiveNode) {\n      names.push(node.name.value);\n    },\n  });\n\n  return names;\n}\n\nexport const hasAnyDirectives = (names: string[], root: ASTNode) =>\n  hasDirectives(names, root, false);\n\nexport const hasAllDirectives = (names: string[], root: ASTNode) =>\n  hasDirectives(names, root, true);\n\nexport function hasDirectives(names: string[], root: ASTNode, all?: boolean) {\n  const nameSet = new Set(names);\n  const uniqueCount = nameSet.size;\n\n  visit(root, {\n    Directive(node) {\n      if (nameSet.delete(node.name.value) && (!all || !nameSet.size)) {\n        return BREAK;\n      }\n    },\n  });\n\n  // If we found all the names, nameSet will be empty. If we only care about\n  // finding some of them, the < condition is sufficient.\n  return all ? !nameSet.size : nameSet.size < uniqueCount;\n}\n\nexport function hasClientExports(document: DocumentNode) {\n  return document && hasDirectives([\"client\", \"export\"], document, true);\n}\n\nexport type InclusionDirectives = Array<{\n  directive: DirectiveNode;\n  ifArgument: ArgumentNode;\n}>;\n\nfunction isInclusionDirective({ name: { value } }: DirectiveNode): boolean {\n  return value === \"skip\" || value === \"include\";\n}\n\nexport function getInclusionDirectives(\n  directives: ReadonlyArray<DirectiveNode>\n): InclusionDirectives {\n  const result: InclusionDirectives = [];\n\n  if (directives && directives.length) {\n    directives.forEach((directive) => {\n      if (!isInclusionDirective(directive)) return;\n\n      const directiveArguments = directive.arguments;\n      const directiveName = directive.name.value;\n\n      invariant(\n        directiveArguments && directiveArguments.length === 1,\n        `Incorrect number of arguments for the @%s directive.`,\n        directiveName\n      );\n\n      const ifArgument = directiveArguments![0];\n      invariant(\n        ifArgument.name && ifArgument.name.value === \"if\",\n        `Invalid argument for the @%s directive.`,\n        directiveName\n      );\n\n      const ifValue: ValueNode = ifArgument.value;\n\n      // means it has to be a variable value if this is a valid @skip or @include directive\n      invariant(\n        ifValue &&\n          (ifValue.kind === \"Variable\" || ifValue.kind === \"BooleanValue\"),\n        `Argument for the @%s directive must be a variable or a boolean value.`,\n        directiveName\n      );\n\n      result.push({ directive, ifArgument });\n    });\n  }\n\n  return result;\n}\n", "// A [trie](https://en.wikipedia.org/wiki/Trie) data structure that holds\n// object keys weakly, yet can also hold non-object keys, unlike the\n// native `WeakMap`.\n\n// If no makeData function is supplied, the looked-up data will be an empty,\n// null-prototype Object.\nconst defaultMakeData = () => Object.create(null);\n\n// Useful for processing arguments objects as well as arrays.\nconst { forEach, slice } = Array.prototype;\nconst { hasOwnProperty } = Object.prototype;\n\nexport class Trie<Data> {\n  // Since a `WeakMap` cannot hold primitive values as keys, we need a\n  // backup `Map` instance to hold primitive keys. Both `this._weakMap`\n  // and `this._strongMap` are lazily initialized.\n  private weak?: WeakMap<any, Trie<Data>>;\n  private strong?: Map<any, Trie<Data>>;\n  private data?: Data;\n\n  constructor(\n    private weakness = true,\n    private makeData: (array: any[]) => Data = defaultMakeData,\n  ) {}\n\n  public lookup<T extends any[]>(...array: T): Data;\n  public lookup(): Data {\n    return this.lookupArray(arguments);\n  }\n\n  public lookupArray<T extends IArguments | any[]>(array: T): Data {\n    let node: Trie<Data> = this;\n    forEach.call(array, key => node = node.getChildTrie(key));\n    return hasOwnProperty.call(node, \"data\")\n      ? node.data as Data\n      : node.data = this.makeData(slice.call(array));\n  }\n\n  public peek<T extends any[]>(...array: T): Data | undefined;\n  public peek(): Data | undefined {\n    return this.peekArray(arguments);\n  }\n\n  public peekArray<T extends IArguments | any[]>(array: T): Data | undefined {\n    let node: Trie<Data> | undefined = this;\n\n    for (let i = 0, len = array.length; node && i < len; ++i) {\n      const map = node.mapFor(array[i], false);\n      node = map && map.get(array[i]);\n    }\n\n    return node && node.data;\n  }\n\n  public remove(...array: any[]): Data | undefined;\n  public remove(): Data | undefined {\n    return this.removeArray(arguments);\n  }\n\n  public removeArray<T extends IArguments | any[]>(array: T): Data | undefined {\n    let data: Data | undefined;\n\n    if (array.length) {\n      const head = array[0];\n      const map = this.mapFor(head, false);\n      const child = map && map.get(head);\n      if (child) {\n        data = child.removeArray(slice.call(array, 1));\n        if (!child.data && !child.weak && !(child.strong && child.strong.size)) {\n          map.delete(head);\n        }\n      }\n    } else {\n      data = this.data;\n      delete this.data;\n    }\n\n    return data;\n  }\n\n  private getChildTrie(key: any) {\n    const map = this.mapFor(key, true)!;\n    let child = map.get(key);\n    if (!child) map.set(key, child = new Trie<Data>(this.weakness, this.makeData));\n    return child;\n  }\n\n  private mapFor(key: any, create: boolean): Trie<Data>[\"weak\" | \"strong\"] | undefined {\n    return this.weakness && isObjRef(key)\n      ? this.weak || (create ? this.weak = new WeakMap : void 0)\n      : this.strong || (create ? this.strong = new Map : void 0);\n  }\n}\n\nfunction isObjRef(value: any) {\n  switch (typeof value) {\n  case \"object\":\n    if (value === null) break;\n    // Fall through to return true...\n  case \"function\":\n    return true;\n  }\n  return false;\n}\n", "import { maybe } from \"../globals/index.js\";\n\nexport const canUseWeakMap =\n  typeof WeakMap === \"function\" &&\n  !maybe(\n    () => navigator.product == \"ReactNative\" && !(global as any).HermesInternal\n  );\n\nexport const canUseWeakSet = typeof WeakSet === \"function\";\n\nexport const canUseSymbol =\n  typeof Symbol === \"function\" && typeof Symbol.for === \"function\";\n\nexport const canUseAsyncIteratorSymbol = canUseSymbol && Symbol.asyncIterator;\n\nexport const canUseDOM =\n  typeof maybe(() => window.document.createElement) === \"function\";\n\nconst usingJSDOM: boolean =\n  // Following advice found in this comment from @domenic (maintainer of jsdom):\n  // https://github.com/jsdom/jsdom/issues/1537#issuecomment-229405327\n  //\n  // Since we control the version of Jest and jsdom used when running Apollo\n  // Client tests, and that version is recent enought to include \" jsdom/x.y.z\"\n  // at the end of the user agent string, I believe this case is all we need to\n  // check. Testing for \"Node.js\" was recommended for backwards compatibility\n  // with older version of jsdom, but we don't have that problem.\n  maybe(() => navigator.userAgent.indexOf(\"jsdom\") >= 0) || false;\n\n// Our tests should all continue to pass if we remove this !usingJSDOM\n// condition, thereby allowing useLayoutEffect when using jsdom. Unfortunately,\n// if we allow useLayoutEffect, then useSyncExternalStore generates many\n// warnings about useLayoutEffect doing nothing on the server. While these\n// warnings are harmless, this !usingJSDOM condition seems to be the best way to\n// prevent them (i.e. skipping useLayoutEffect when using jsdom).\nexport const canUseLayoutEffect = canUseDOM && !usingJSDOM;\n", "export function isNonNullObject(obj: any): obj is Record<string | number, any> {\n  return obj !== null && typeof obj === \"object\";\n}\n\nexport function isPlainObject(obj: any): obj is Record<string | number, any> {\n  return (\n    obj !== null &&\n    typeof obj === \"object\" &&\n    (Object.getPrototypeOf(obj) === Object.prototype ||\n      Object.getPrototypeOf(obj) === null)\n  );\n}\n", "import { invariant, newInvariantError } from \"../globals/index.js\";\n\nimport type {\n  DocumentNode,\n  FragmentDefinitionNode,\n  InlineFragmentNode,\n  SelectionNode,\n} from \"graphql\";\n\n// TODO(brian): A hack until this issue is resolved (https://github.com/graphql/graphql-js/issues/3356)\ntype Kind = any;\ntype OperationTypeNode = any;\n/**\n * Returns a query document which adds a single query operation that only\n * spreads the target fragment inside of it.\n *\n * So for example a document of:\n *\n * ```graphql\n * fragment foo on Foo { a b c }\n * ```\n *\n * Turns into:\n *\n * ```graphql\n * { ...foo }\n *\n * fragment foo on Foo { a b c }\n * ```\n *\n * The target fragment will either be the only fragment in the document, or a\n * fragment specified by the provided `fragmentName`. If there is more than one\n * fragment, but a `fragmentName` was not defined then an error will be thrown.\n */\nexport function getFragmentQueryDocument(\n  document: DocumentNode,\n  fragmentName?: string\n): DocumentNode {\n  let actualFragmentName = fragmentName;\n\n  // Build an array of all our fragment definitions that will be used for\n  // validations. We also do some validations on the other definitions in the\n  // document while building this list.\n  const fragments: Array<FragmentDefinitionNode> = [];\n  document.definitions.forEach((definition) => {\n    // Throw an error if we encounter an operation definition because we will\n    // define our own operation definition later on.\n    if (definition.kind === \"OperationDefinition\") {\n      throw newInvariantError(\n        `Found a %s operation%s. ` +\n          \"No operations are allowed when using a fragment as a query. Only fragments are allowed.\",\n        definition.operation,\n        definition.name ? ` named '${definition.name.value}'` : \"\"\n      );\n    }\n    // Add our definition to the fragments array if it is a fragment\n    // definition.\n    if (definition.kind === \"FragmentDefinition\") {\n      fragments.push(definition);\n    }\n  });\n\n  // If the user did not give us a fragment name then let us try to get a\n  // name from a single fragment in the definition.\n  if (typeof actualFragmentName === \"undefined\") {\n    invariant(\n      fragments.length === 1,\n      `Found %s fragments. \\`fragmentName\\` must be provided when there is not exactly 1 fragment.`,\n      fragments.length\n    );\n    actualFragmentName = fragments[0].name.value;\n  }\n\n  // Generate a query document with an operation that simply spreads the\n  // fragment inside of it.\n  const query: DocumentNode = {\n    ...document,\n    definitions: [\n      {\n        kind: \"OperationDefinition\" as Kind,\n        // OperationTypeNode is an enum\n        operation: \"query\" as OperationTypeNode,\n        selectionSet: {\n          kind: \"SelectionSet\" as Kind,\n          selections: [\n            {\n              kind: \"FragmentSpread\" as Kind,\n              name: {\n                kind: \"Name\" as Kind,\n                value: actualFragmentName,\n              },\n            },\n          ],\n        },\n      },\n      ...document.definitions,\n    ],\n  };\n\n  return query;\n}\n\n/**\n * This is an interface that describes a map from fragment names to fragment definitions.\n */\nexport interface FragmentMap {\n  [fragmentName: string]: FragmentDefinitionNode;\n}\n\nexport type FragmentMapFunction = (\n  fragmentName: string\n) => FragmentDefinitionNode | null;\n\n// Utility function that takes a list of fragment definitions and makes a hash out of them\n// that maps the name of the fragment to the fragment definition.\nexport function createFragmentMap(\n  fragments: FragmentDefinitionNode[] = []\n): FragmentMap {\n  const symTable: FragmentMap = {};\n  fragments.forEach((fragment) => {\n    symTable[fragment.name.value] = fragment;\n  });\n  return symTable;\n}\n\nexport function getFragmentFromSelection(\n  selection: SelectionNode,\n  fragmentMap?: FragmentMap | FragmentMapFunction\n): InlineFragmentNode | FragmentDefinitionNode | null {\n  switch (selection.kind) {\n    case \"InlineFragment\":\n      return selection;\n    case \"FragmentSpread\": {\n      const fragmentName = selection.name.value;\n      if (typeof fragmentMap === \"function\") {\n        return fragmentMap(fragmentName);\n      }\n      const fragment = fragmentMap && fragmentMap[fragmentName];\n      invariant(fragment, `No fragment named %s`, fragmentName);\n      return fragment || null;\n    }\n    default:\n      return null;\n  }\n}\n", "import type { CommonCache } from \"./common\";\n\ninterface Node<K, V> {\n  key: K;\n  value: V;\n  newer: Node<K, V> | null;\n  older: Node<K, V> | null;\n}\n\nfunction defaultDispose() {}\n\nexport class StrongCache<K = any, V = any> implements CommonCache<K, V> {\n  private map = new Map<K, Node<K, V>>();\n  private newest: Node<K, V> | null = null;\n  private oldest: Node<K, V> | null = null;\n\n  constructor(\n    private max = Infinity,\n    public dispose: (value: V, key: K) => void = defaultDispose,\n  ) {}\n\n  public has(key: K): boolean {\n    return this.map.has(key);\n  }\n\n  public get(key: K): V | undefined {\n    const node = this.getNode(key);\n    return node && node.value;\n  }\n\n  public get size() {\n    return this.map.size;\n  }\n\n  private getNode(key: K): Node<K, V> | undefined {\n    const node = this.map.get(key);\n\n    if (node && node !== this.newest) {\n      const { older, newer } = node;\n\n      if (newer) {\n        newer.older = older;\n      }\n\n      if (older) {\n        older.newer = newer;\n      }\n\n      node.older = this.newest;\n      node.older!.newer = node;\n\n      node.newer = null;\n      this.newest = node;\n\n      if (node === this.oldest) {\n        this.oldest = newer;\n      }\n    }\n\n    return node;\n  }\n\n  public set(key: K, value: V): V {\n    let node = this.getNode(key);\n    if (node) {\n      return node.value = value;\n    }\n\n    node = {\n      key,\n      value,\n      newer: null,\n      older: this.newest\n    };\n\n    if (this.newest) {\n      this.newest.newer = node;\n    }\n\n    this.newest = node;\n    this.oldest = this.oldest || node;\n\n    this.map.set(key, node);\n\n    return node.value;\n  }\n\n  public clean() {\n    while (this.oldest && this.map.size > this.max) {\n      this.delete(this.oldest.key);\n    }\n  }\n\n  public delete(key: K): boolean {\n    const node = this.map.get(key);\n    if (node) {\n      if (node === this.newest) {\n        this.newest = node.older;\n      }\n\n      if (node === this.oldest) {\n        this.oldest = node.newer;\n      }\n\n      if (node.newer) {\n        node.newer.older = node.older;\n      }\n\n      if (node.older) {\n        node.older.newer = node.newer;\n      }\n\n      this.map.delete(key);\n      this.dispose(node.value, key);\n\n      return true;\n    }\n\n    return false;\n  }\n}\n", "import type { CommonCache } from \"./common\";\n\ninterface PartialNode<K extends object, V> {\n  value: V;\n  newer: Node<K, V> | null;\n  older: Node<K, V> | null;\n}\n\ninterface UnfinalizedNode<K extends object, V> extends PartialNode<K, V> {\n  keyRef?: undefined;\n  key: K;\n}\n\ninterface FullNode<K extends object, V> extends PartialNode<K, V> {\n  keyRef: WeakRef<K>;\n  key?: undefined;\n}\n\ntype Node<K extends object, V> = FullNode<K, V> | UnfinalizedNode<K, V>;\n\nfunction noop() {}\nconst defaultDispose = noop;\n\nconst _WeakRef =\n  typeof WeakRef !== \"undefined\"\n    ? WeakRef\n    : (function <T>(value: T) {\n        return { deref: () => value } satisfies Omit<\n          WeakRef<any>,\n          typeof Symbol.toStringTag\n        >;\n      } as any as typeof WeakRef);\nconst _WeakMap = typeof WeakMap !== \"undefined\" ? WeakMap : Map;\nconst _FinalizationRegistry =\n  typeof FinalizationRegistry !== \"undefined\"\n    ? FinalizationRegistry\n    : (function <T>() {\n        return {\n          register: noop,\n          unregister: noop,\n        } satisfies Omit<FinalizationRegistry<T>, typeof Symbol.toStringTag>;\n      } as any as typeof FinalizationRegistry);\n\nconst finalizationBatchSize = 10024;\n\nexport class WeakCache<K extends object = any, V = any>\n  implements CommonCache<K, V>\n{\n  private map = new _WeakMap<K, Node<K, V>>();\n  private registry: FinalizationRegistry<Node<K, V>>;\n  private newest: Node<K, V> | null = null;\n  private oldest: Node<K, V> | null = null;\n  private unfinalizedNodes: Set<UnfinalizedNode<K, V>> = new Set();\n  private finalizationScheduled = false;\n  public size = 0;\n\n  constructor(\n    private max = Infinity,\n    public dispose: (value: V, key?: K) => void = defaultDispose\n  ) {\n    this.registry = new _FinalizationRegistry<Node<K, V>>(\n      this.deleteNode.bind(this)\n    );\n  }\n\n  public has(key: K): boolean {\n    return this.map.has(key);\n  }\n\n  public get(key: K): V | undefined {\n    const node = this.getNode(key);\n    return node && node.value;\n  }\n\n  private getNode(key: K): Node<K, V> | undefined {\n    const node = this.map.get(key);\n\n    if (node && node !== this.newest) {\n      const { older, newer } = node;\n\n      if (newer) {\n        newer.older = older;\n      }\n\n      if (older) {\n        older.newer = newer;\n      }\n\n      node.older = this.newest;\n      node.older!.newer = node;\n\n      node.newer = null;\n      this.newest = node;\n\n      if (node === this.oldest) {\n        this.oldest = newer;\n      }\n    }\n\n    return node;\n  }\n\n  public set(key: K, value: V): V {\n    let node = this.getNode(key);\n    if (node) {\n      return (node.value = value);\n    }\n\n    node = {\n      key,\n      value,\n      newer: null,\n      older: this.newest,\n    };\n\n    if (this.newest) {\n      this.newest.newer = node;\n    }\n\n    this.newest = node;\n    this.oldest = this.oldest || node;\n\n    this.scheduleFinalization(node);\n    this.map.set(key, node);\n    this.size++;\n\n    return node.value;\n  }\n\n  public clean() {\n    while (this.oldest && this.size > this.max) {\n      this.deleteNode(this.oldest);\n    }\n  }\n\n  private deleteNode(node: Node<K, V>) {\n    if (node === this.newest) {\n      this.newest = node.older;\n    }\n\n    if (node === this.oldest) {\n      this.oldest = node.newer;\n    }\n\n    if (node.newer) {\n      node.newer.older = node.older;\n    }\n\n    if (node.older) {\n      node.older.newer = node.newer;\n    }\n\n    this.size--;\n    const key = node.key || (node.keyRef && node.keyRef.deref());\n    this.dispose(node.value, key);\n    if (!node.keyRef) {\n      this.unfinalizedNodes.delete(node);\n    } else {\n      this.registry.unregister(node);\n    }\n    if (key) this.map.delete(key);\n  }\n\n  public delete(key: K): boolean {\n    const node = this.map.get(key);\n    if (node) {\n      this.deleteNode(node);\n\n      return true;\n    }\n\n    return false;\n  }\n\n  private scheduleFinalization(node: UnfinalizedNode<K, V>) {\n    this.unfinalizedNodes.add(node);\n    if (!this.finalizationScheduled) {\n      this.finalizationScheduled = true;\n      queueMicrotask(this.finalize);\n    }\n  }\n\n  private finalize = () => {\n    const iterator = this.unfinalizedNodes.values();\n    for (let i = 0; i < finalizationBatchSize; i++) {\n      const node = iterator.next().value;\n      if (!node) break;\n      this.unfinalizedNodes.delete(node);\n      const key = node.key;\n      delete (node as unknown as FullNode<K, V>).key;\n      (node as unknown as FullNode<K, V>).keyRef = new _WeakRef(key);\n      this.registry.register(key, node, node);\n    }\n    if (this.unfinalizedNodes.size > 0) {\n      queueMicrotask(this.finalize);\n    } else {\n      this.finalizationScheduled = false;\n    }\n  };\n}\n", "import { WeakCache, StrongCache } from \"@wry/caches\";\n\ninterface CleanableCache {\n  size: number;\n  max?: number;\n  clean: () => void;\n}\nconst scheduledCleanup = new WeakSet<CleanableCache>();\nfunction schedule(cache: CleanableCache) {\n  if (cache.size <= (cache.max || -1)) {\n    return;\n  }\n  if (!scheduledCleanup.has(cache)) {\n    scheduledCleanup.add(cache);\n    setTimeout(() => {\n      cache.clean();\n      scheduledCleanup.delete(cache);\n    }, 100);\n  }\n}\n/**\n * @internal\n * A version of WeakCache that will auto-schedule a cleanup of the cache when\n * a new item is added and the cache reached maximum size.\n * Throttled to once per 100ms.\n *\n * @privateRemarks\n * Should be used throughout the rest of the codebase instead of WeakCache,\n * with the notable exception of usage in `wrap` from `optimism` - that one\n * already handles cleanup and should remain a `WeakCache`.\n */\nexport const AutoCleanedWeakCache = function (\n  max?: number | undefined,\n  dispose?: ((value: any, key: any) => void) | undefined\n) {\n  /*\n  Some builds of `WeakCache` are function prototypes, some are classes.\n  This library still builds with an ES5 target, so we can't extend the\n  real classes.\n  Instead, we have to use this workaround until we switch to a newer build\n  target.\n  */\n  const cache = new WeakCache(max, dispose);\n  cache.set = function (key: any, value: any) {\n    const ret = WeakCache.prototype.set.call(this, key, value);\n    schedule(this as any as CleanableCache);\n    return ret;\n  };\n  return cache;\n} as any as typeof WeakCache;\n/**\n * @internal\n */\nexport type AutoCleanedWeakCache<K extends object, V> = WeakCache<K, V>;\n\n/**\n * @internal\n * A version of StrongCache that will auto-schedule a cleanup of the cache when\n * a new item is added and the cache reached maximum size.\n * Throttled to once per 100ms.\n *\n * @privateRemarks\n * Should be used throughout the rest of the codebase instead of StrongCache,\n * with the notable exception of usage in `wrap` from `optimism` - that one\n * already handles cleanup and should remain a `StrongCache`.\n */\nexport const AutoCleanedStrongCache = function (\n  max?: number | undefined,\n  dispose?: ((value: any, key: any) => void) | undefined\n) {\n  /*\n  Some builds of `StrongCache` are function prototypes, some are classes.\n  This library still builds with an ES5 target, so we can't extend the\n  real classes.\n  Instead, we have to use this workaround until we switch to a newer build\n  target.\n  */\n  const cache = new StrongCache(max, dispose);\n  cache.set = function (key: any, value: any) {\n    const ret = StrongCache.prototype.set.call(this, key, value);\n    schedule(this as any as CleanableCache);\n    return ret;\n  };\n  return cache;\n} as any as typeof StrongCache;\n/**\n * @internal\n */\nexport type AutoCleanedStrongCache<K, V> = StrongCache<K, V>;\n", "import { global } from \"../globals/index.js\";\n\ndeclare global {\n  interface Window {\n    [cacheSizeSymbol]?: Partial<CacheSizes>;\n  }\n}\n\n/**\n * The cache sizes used by various Apollo Client caches.\n *\n * @remarks\n * All configurable caches hold memoized values. If an item is\n * cache-collected, it incurs only a small performance impact and\n * doesn't cause data loss. A smaller cache size might save you memory.\n *\n * You should choose cache sizes appropriate for storing a reasonable\n * number of values rather than every value. To prevent too much recalculation,\n * choose cache sizes that are at least large enough to hold memoized values for\n * all hooks/queries on the screen at any given time.\n */\n/*\n * We assume a \"base value\" of 1000 here, which is already very generous.\n * In most applications, it will be very unlikely that 1000 different queries\n * are on screen at the same time.\n */\nexport interface CacheSizes {\n  /**\n   * Cache size for the [`print`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/graphql/print.ts) function.\n   *\n   * It is called with transformed `DocumentNode`s.\n   *\n   * @defaultValue\n   * Defaults to `2000`.\n   *\n   * @remarks\n   * This method is called to transform a GraphQL query AST parsed by `gql`\n   * back into a GraphQL string.\n   *\n   * @privateRemarks\n   * This method is called from the `QueryManager` and various `ApolloLink`s,\n   * always with the \"serverQuery\", so the server-facing part of a transformed\n   * `DocumentNode`.\n   */\n  print: number;\n  /**\n   * Cache size for the [`parser`](https://github.com/apollographql/apollo-client/blob/main/src/react/parser/index.ts) function.\n   *\n   * It is called with user-provided `DocumentNode`s.\n   *\n   * @defaultValue\n   * Defaults to `1000`.\n   *\n   * @remarks\n   * This method is called by HOCs and hooks.\n   *\n   * @privateRemarks\n   * This function is used directly in HOCs, and nowadays mainly accessed by\n   * calling `verifyDocumentType` from various hooks.\n   * It is called with a user-provided DocumentNode.\n   */\n  parser: number;\n  /**\n   * Cache size for the cache of [`DocumentTransform`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/graphql/DocumentTransform.ts)\n   * instances with the `cache` option set to `true`.\n   *\n   * Can be called with user-defined or already-transformed `DocumentNode`s.\n   *\n   * @defaultValue\n   * Defaults to `2000`.\n   *\n   * @remarks\n   * The cache size here should be chosen with other `DocumentTransform`s in mind.\n   * For example, if there was a `DocumentTransform` that would take `x` `DocumentNode`s,\n   * and returned a differently-transformed `DocumentNode` depending if the app is\n   * online or offline, then we assume that the cache returns `2*x` documents.\n   * If that were concatenated with another `DocumentTransform` that would\n   * also duplicate the cache size, you'd need to account for `4*x` documents\n   * returned by the second transform.\n   *\n   * Due to an implementation detail of Apollo Client, if you use custom document\n   * transforms you should always add `n` (the \"base\" number of user-provided\n   * Documents) to the resulting cache size.\n   *\n   * If we assume that the user-provided transforms receive `n` documents and\n   * return `n` documents, the cache size should be `2*n`.\n   *\n   * If we assume that the chain of user-provided transforms receive `n` documents and\n   * return `4*n` documents, the cache size should be `5*n`.\n   *\n   * This size should also then be used in every other cache that mentions that\n   * it operates on a \"transformed\" `DocumentNode`.\n   *\n   * @privateRemarks\n   * Cache size for the `performWork` method of each [`DocumentTransform`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/graphql/DocumentTransform.ts).\n   *\n   * No user-provided DocumentNode will actually be \"the last one\", as we run the\n   * `defaultDocumentTransform` before *and* after the user-provided transforms.\n   * For that reason, we need the extra `n` here - `n` for \"before transformation\"\n   * plus the actual maximum cache size of the user-provided transform chain.\n   *\n   * This method is called from `transformDocument`, which is called from\n   * `QueryManager` with a user-provided DocumentNode.\n   * It is also called with already-transformed DocumentNodes, assuming the\n   * user provided additional transforms.\n   *\n   */\n  \"documentTransform.cache\": number;\n  /**\n   * A cache inside of [`QueryManager`](https://github.com/apollographql/apollo-client/blob/main/src/core/QueryManager.ts).\n   *\n   * It is called with transformed `DocumentNode`s.\n   *\n   * @defaultValue\n   * Defaults to `2000`.\n   *\n   * @privateRemarks\n   * Cache size for the `transformCache` used in the `getDocumentInfo` method of `QueryManager`.\n   * Called throughout the `QueryManager` with transformed DocumentNodes.\n   */\n  \"queryManager.getDocumentInfo\": number;\n  /**\n   * A cache inside of [`PersistedQueryLink`](https://github.com/apollographql/apollo-client/blob/main/src/link/persisted-queries/index.ts).\n   *\n   * It is called with transformed `DocumentNode`s.\n   *\n   * @defaultValue\n   * Defaults to `2000`.\n   *\n   * @remarks\n   * This cache is used to cache the hashes of persisted queries.\n   *\n   * @privateRemarks\n   * Cache size for the `hashesByQuery` cache in the `PersistedQueryLink`.\n   */\n  \"PersistedQueryLink.persistedQueryHashes\": number;\n  /**\n   * Cache used by [`canonicalStringify`](https://github.com/apollographql/apollo-client/blob/main/src/utilities/common/canonicalStringify.ts).\n   *\n   * @defaultValue\n   * Defaults to `1000`.\n   *\n   * @remarks\n   * This cache contains the sorted keys of objects that are stringified by\n   * `canonicalStringify`.\n   * It uses the stringified unsorted keys of objects as keys.\n   * The cache will not grow beyond the size of different object **shapes**\n   * encountered in an application, no matter how much actual data gets stringified.\n   *\n   * @privateRemarks\n   * Cache size for the `sortingMap` in `canonicalStringify`.\n   */\n  canonicalStringify: number;\n  /**\n   * A cache inside of [`FragmentRegistry`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts).\n   *\n   * Can be called with user-defined or already-transformed `DocumentNode`s.\n   *\n   * @defaultValue\n   * Defaults to `2000`.\n   *\n   * @privateRemarks\n   *\n   * Cache size for the `transform` method of FragmentRegistry.\n   * This function is called as part of the `defaultDocumentTransform` which will be called with\n   * user-provided and already-transformed DocumentNodes.\n   *\n   */\n  \"fragmentRegistry.transform\": number;\n  /**\n   * A cache inside of [`FragmentRegistry`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts).\n   *\n   * This function is called with fragment names in the form of a string.\n   *\n   * @defaultValue\n   * Defaults to `1000`.\n   *\n   * @remarks\n   * The size of this case should be chosen with the number of fragments in\n   * your application in mind.\n   *\n   * Note:\n   * This function is a dependency of `fragmentRegistry.transform`, so having too small of a cache size here\n   * might involuntarily invalidate values in the `transform` cache.\n   *\n   * @privateRemarks\n   * Cache size for the `lookup` method of FragmentRegistry.\n   */\n  \"fragmentRegistry.lookup\": number;\n  /**\n   * Cache size for the `findFragmentSpreads` method of [`FragmentRegistry`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/fragmentRegistry.ts).\n   *\n   * This function is called with transformed `DocumentNode`s, as well as recursively\n   * with every fragment spread referenced within that, or a fragment referenced by a\n   * fragment spread.\n   *\n   * @defaultValue\n   * Defaults to `4000`.\n   *\n   * @remarks\n   *\n   * Note: This function is a dependency of `fragmentRegistry.transform`, so having too small of cache size here\n   * might involuntarily invalidate values in the `transform` cache.\n   */\n  \"fragmentRegistry.findFragmentSpreads\": number;\n  /**\n   * Cache size for the `getFragmentDoc` method of [`ApolloCache`](https://github.com/apollographql/apollo-client/blob/main/src/cache/core/cache.ts).\n   *\n   * This function is called with user-provided fragment definitions.\n   *\n   * @defaultValue\n   * Defaults to `1000`.\n   *\n   * @remarks\n   * This function is called from `readFragment` with user-provided fragment definitions.\n   */\n  \"cache.fragmentQueryDocuments\": number;\n  /**\n   * Cache used in [`removeTypenameFromVariables`](https://github.com/apollographql/apollo-client/blob/main/src/link/remove-typename/removeTypenameFromVariables.ts).\n   *\n   * This function is called transformed `DocumentNode`s.\n   *\n   * @defaultValue\n   * Defaults to `2000`.\n   *\n   * @privateRemarks\n   * Cache size for the `getVariableDefinitions` function of `removeTypenameFromVariables`.\n   */\n  \"removeTypenameFromVariables.getVariableDefinitions\": number;\n  /**\n   * Cache size for the `maybeBroadcastWatch` method on [`InMemoryCache`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/inMemoryCache.ts).\n   *\n   * Note: `maybeBroadcastWatch` will be set to the `resultCacheMaxSize` option and\n   * will fall back to this configuration value if the option is not set.\n   *\n   * @defaultValue\n   * Defaults to `5000`.\n   *\n   * @remarks\n   * This method is used for dependency tracking in the `InMemoryCache` and\n   * prevents from unnecessary re-renders.\n   * It is recommended to keep this value significantly higher than the number of\n   * possible subscribers you will have active at the same time in your application\n   * at any time.\n   */\n  \"inMemoryCache.maybeBroadcastWatch\": number;\n  /**\n   * Cache size for the `executeSelectionSet` method on [`StoreReader`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/readFromStore.ts).\n   *\n   * Note:\n   * `executeSelectionSet` will be set to the `resultCacheMaxSize` option and\n   * will fall back to this configuration value if the option is not set.\n   *\n   * @defaultValue\n   * Defaults to `10000`.\n   *\n   * @remarks\n   * Every object that is read from the cache will be cached here, so it is\n   * recommended to set this to a high value.\n   */\n  \"inMemoryCache.executeSelectionSet\": number;\n  /**\n   * Cache size for the `executeSubSelectedArray` method on [`StoreReader`](https://github.com/apollographql/apollo-client/blob/main/src/cache/inmemory/readFromStore.ts).\n   *\n   * Note:\n   * `executeSubSelectedArray` will be set to the `resultCacheMaxSize` option and\n   * will fall back to this configuration value if the option is not set.\n   *\n   * @defaultValue\n   * Defaults to `5000`.\n   *\n   * @remarks\n   * Every array that is read from the cache will be cached here, so it is\n   * recommended to set this to a high value.\n   */\n  \"inMemoryCache.executeSubSelectedArray\": number;\n}\n\nconst cacheSizeSymbol = Symbol.for(\"apollo.cacheSize\");\n/**\n *\n * The global cache size configuration for Apollo Client.\n *\n * @remarks\n *\n * You can directly modify this object, but any modification will\n * only have an effect on caches that are created after the modification.\n *\n * So for global caches, such as `parser`, `canonicalStringify` and `print`,\n * you might need to call `.reset` on them, which will essentially re-create them.\n *\n * Alternatively, you can set `globalThis[Symbol.for(\"apollo.cacheSize\")]` before\n * you load the Apollo Client package:\n *\n * @example\n * ```ts\n * globalThis[Symbol.for(\"apollo.cacheSize\")] = {\n *   parser: 100\n * } satisfies Partial<CacheSizes> // the `satisfies` is optional if using TypeScript\n * ```\n */\nexport const cacheSizes: Partial<CacheSizes> = { ...global[cacheSizeSymbol] };\n\nexport const enum defaultCacheSizes {\n  parser = 1000,\n  canonicalStringify = 1000,\n  print = 2000,\n  \"documentTransform.cache\" = 2000,\n  \"queryManager.getDocumentInfo\" = 2000,\n  \"PersistedQueryLink.persistedQueryHashes\" = 2000,\n  \"fragmentRegistry.transform\" = 2000,\n  \"fragmentRegistry.lookup\" = 1000,\n  \"fragmentRegistry.findFragmentSpreads\" = 4000,\n  \"cache.fragmentQueryDocuments\" = 1000,\n  \"removeTypenameFromVariables.getVariableDefinitions\" = 2000,\n  \"inMemoryCache.maybeBroadcastWatch\" = 5000,\n  \"inMemoryCache.executeSelectionSet\" = 50000,\n  \"inMemoryCache.executeSubSelectedArray\" = 10000,\n}\n", "import type { OptimisticWrapperFunction } from \"optimism\";\nimport type {\n  InMemoryCache,\n  DocumentTransform,\n  ApolloLink,\n  ApolloCache,\n} from \"../../core/index.js\";\nimport type { ApolloClient } from \"../../core/index.js\";\nimport type { CacheSizes } from \"./sizes.js\";\nimport { cacheSizes, defaultCacheSizes } from \"./sizes.js\";\n\nconst globalCaches: {\n  print?: () => number;\n  parser?: () => number;\n  canonicalStringify?: () => number;\n} = {};\n\nexport function registerGlobalCache(\n  name: keyof typeof globalCaches,\n  getSize: () => number\n) {\n  globalCaches[name] = getSize;\n}\n\n/**\n * Transformative helper type to turn a function of the form\n * ```ts\n * (this: any) => R\n * ```\n * into a function of the form\n * ```ts\n * () => R\n * ```\n * preserving the return type, but removing the `this` parameter.\n *\n * @remarks\n *\n * Further down in the definitions of `_getApolloClientMemoryInternals`,\n * `_getApolloCacheMemoryInternals` and `_getInMemoryCacheMemoryInternals`,\n * having the `this` parameter annotation is extremely useful for type checking\n * inside the function.\n *\n * If this is preserved in the exported types, though, it leads to a situation\n * where `ApolloCache.getMemoryInternals` is a function that requires a `this`\n * of the type `ApolloCache`, while the extending class `InMemoryCache` has a\n * `getMemoryInternals` function that requires a `this` of the type\n * `InMemoryCache`.\n * This is not compatible with TypeScript's inheritence system (although it is\n * perfectly correct), and so TypeScript will complain loudly.\n *\n * We still want to define our functions with the `this` annotation, though,\n * and have the return type inferred.\n * (This requirement for return type inference here makes it impossible to use\n * a function overload that is more explicit on the inner overload than it is\n * on the external overload.)\n *\n * So in the end, we use this helper to remove the `this` annotation from the\n * exported function types, while keeping it in the internal implementation.\n *\n */\ntype RemoveThis<T> = T extends (this: any) => infer R ? () => R : never;\n\n/**\n * For internal purposes only - please call `ApolloClient.getMemoryInternals` instead\n * @internal\n */\nexport const getApolloClientMemoryInternals =\n  __DEV__ ?\n    (_getApolloClientMemoryInternals as RemoveThis<\n      typeof _getApolloClientMemoryInternals\n    >)\n  : undefined;\n\n/**\n * For internal purposes only - please call `ApolloClient.getMemoryInternals` instead\n * @internal\n */\nexport const getInMemoryCacheMemoryInternals =\n  __DEV__ ?\n    (_getInMemoryCacheMemoryInternals as RemoveThis<\n      typeof _getInMemoryCacheMemoryInternals\n    >)\n  : undefined;\n\n/**\n * For internal purposes only - please call `ApolloClient.getMemoryInternals` instead\n * @internal\n */\nexport const getApolloCacheMemoryInternals =\n  __DEV__ ?\n    (_getApolloCacheMemoryInternals as RemoveThis<\n      typeof _getApolloCacheMemoryInternals\n    >)\n  : undefined;\n\nfunction getCurrentCacheSizes() {\n  // `defaultCacheSizes` is a `const enum` that will be inlined during build, so we have to reconstruct it's shape here\n  const defaults: Record<keyof CacheSizes, number> = {\n    parser: defaultCacheSizes[\"parser\"],\n    canonicalStringify: defaultCacheSizes[\"canonicalStringify\"],\n    print: defaultCacheSizes[\"print\"],\n    \"documentTransform.cache\": defaultCacheSizes[\"documentTransform.cache\"],\n    \"queryManager.getDocumentInfo\":\n      defaultCacheSizes[\"queryManager.getDocumentInfo\"],\n    \"PersistedQueryLink.persistedQueryHashes\":\n      defaultCacheSizes[\"PersistedQueryLink.persistedQueryHashes\"],\n    \"fragmentRegistry.transform\":\n      defaultCacheSizes[\"fragmentRegistry.transform\"],\n    \"fragmentRegistry.lookup\": defaultCacheSizes[\"fragmentRegistry.lookup\"],\n    \"fragmentRegistry.findFragmentSpreads\":\n      defaultCacheSizes[\"fragmentRegistry.findFragmentSpreads\"],\n    \"cache.fragmentQueryDocuments\":\n      defaultCacheSizes[\"cache.fragmentQueryDocuments\"],\n    \"removeTypenameFromVariables.getVariableDefinitions\":\n      defaultCacheSizes[\"removeTypenameFromVariables.getVariableDefinitions\"],\n    \"inMemoryCache.maybeBroadcastWatch\":\n      defaultCacheSizes[\"inMemoryCache.maybeBroadcastWatch\"],\n    \"inMemoryCache.executeSelectionSet\":\n      defaultCacheSizes[\"inMemoryCache.executeSelectionSet\"],\n    \"inMemoryCache.executeSubSelectedArray\":\n      defaultCacheSizes[\"inMemoryCache.executeSubSelectedArray\"],\n  };\n  return Object.fromEntries(\n    Object.entries(defaults).map(([k, v]) => [\n      k,\n      cacheSizes[k as keyof CacheSizes] || v,\n    ])\n  );\n}\n\nfunction _getApolloClientMemoryInternals(this: ApolloClient<any>) {\n  if (!__DEV__) throw new Error(\"only supported in development mode\");\n\n  return {\n    limits: getCurrentCacheSizes(),\n    sizes: {\n      print: globalCaches.print?.(),\n      parser: globalCaches.parser?.(),\n      canonicalStringify: globalCaches.canonicalStringify?.(),\n      links: linkInfo(this.link),\n      queryManager: {\n        getDocumentInfo: this[\"queryManager\"][\"transformCache\"].size,\n        documentTransforms: transformInfo(\n          this[\"queryManager\"].documentTransform\n        ),\n      },\n      ...(this.cache.getMemoryInternals?.() as Partial<\n        ReturnType<typeof _getApolloCacheMemoryInternals>\n      > &\n        Partial<ReturnType<typeof _getInMemoryCacheMemoryInternals>>),\n    },\n  };\n}\n\nfunction _getApolloCacheMemoryInternals(this: ApolloCache<any>) {\n  return {\n    cache: {\n      fragmentQueryDocuments: getWrapperInformation(this[\"getFragmentDoc\"]),\n    },\n  };\n}\n\nfunction _getInMemoryCacheMemoryInternals(this: InMemoryCache) {\n  const fragments = this.config.fragments as\n    | undefined\n    | {\n        findFragmentSpreads?: Function;\n        transform?: Function;\n        lookup?: Function;\n      };\n\n  return {\n    ..._getApolloCacheMemoryInternals.apply(this as any),\n    addTypenameDocumentTransform: transformInfo(this[\"addTypenameTransform\"]),\n    inMemoryCache: {\n      executeSelectionSet: getWrapperInformation(\n        this[\"storeReader\"][\"executeSelectionSet\"]\n      ),\n      executeSubSelectedArray: getWrapperInformation(\n        this[\"storeReader\"][\"executeSubSelectedArray\"]\n      ),\n      maybeBroadcastWatch: getWrapperInformation(this[\"maybeBroadcastWatch\"]),\n    },\n    fragmentRegistry: {\n      findFragmentSpreads: getWrapperInformation(\n        fragments?.findFragmentSpreads\n      ),\n      lookup: getWrapperInformation(fragments?.lookup),\n      transform: getWrapperInformation(fragments?.transform),\n    },\n  };\n}\n\nfunction isWrapper(f?: Function): f is OptimisticWrapperFunction<any, any> {\n  return !!f && \"dirtyKey\" in f;\n}\n\nfunction getWrapperInformation(f?: Function) {\n  return isWrapper(f) ? f.size : undefined;\n}\n\nfunction isDefined<T>(value: T | undefined | null): value is T {\n  return value != null;\n}\n\nfunction transformInfo(transform?: DocumentTransform) {\n  return recurseTransformInfo(transform).map((cache) => ({ cache }));\n}\n\nfunction recurseTransformInfo(transform?: DocumentTransform): number[] {\n  return transform ?\n      [\n        getWrapperInformation(transform?.[\"performWork\"]),\n        ...recurseTransformInfo(transform?.[\"left\"]),\n        ...recurseTransformInfo(transform?.[\"right\"]),\n      ].filter(isDefined)\n    : [];\n}\n\nfunction linkInfo(link?: ApolloLink): unknown[] {\n  return link ?\n      [\n        link?.getMemoryInternals?.(),\n        ...linkInfo(link?.left),\n        ...linkInfo(link?.right),\n      ].filter(isDefined)\n    : [];\n}\n", "import {\n  AutoCleanedStrongCache,\n  cacheSizes,\n  defaultCacheSizes,\n} from \"../../utilities/caching/index.js\";\nimport { registerGlobalCache } from \"../caching/getMemoryInternals.js\";\n\n/**\n * Like JSON.stringify, but with object keys always sorted in the same order.\n *\n * To achieve performant sorting, this function uses a Map from JSON-serialized\n * arrays of keys (in any order) to sorted arrays of the same keys, with a\n * single sorted array reference shared by all permutations of the keys.\n *\n * As a drawback, this function will add a little bit more memory for every\n * object encountered that has different (more, less, a different order of) keys\n * than in the past.\n *\n * In a typical application, this extra memory usage should not play a\n * significant role, as `canonicalStringify` will be called for only a limited\n * number of object shapes, and the cache will not grow beyond a certain point.\n * But in some edge cases, this could be a problem, so we provide\n * canonicalStringify.reset() as a way of clearing the cache.\n * */\nexport const canonicalStringify = Object.assign(\n  function canonicalStringify(value: any): string {\n    return JSON.stringify(value, stableObjectReplacer);\n  },\n  {\n    reset() {\n      // Clearing the sortingMap will reclaim all cached memory, without\n      // affecting the logical results of canonicalStringify, but potentially\n      // sacrificing performance until the cache is refilled.\n      sortingMap = new AutoCleanedStrongCache<string, readonly string[]>(\n        cacheSizes.canonicalStringify || defaultCacheSizes.canonicalStringify\n      );\n    },\n  }\n);\n\nif (__DEV__) {\n  registerGlobalCache(\"canonicalStringify\", () => sortingMap.size);\n}\n\n// Values are JSON-serialized arrays of object keys (in any order), and values\n// are sorted arrays of the same keys.\nlet sortingMap!: AutoCleanedStrongCache<string, readonly string[]>;\ncanonicalStringify.reset();\n\n// The JSON.stringify function takes an optional second argument called a\n// replacer function. This function is called for each key-value pair in the\n// object being stringified, and its return value is used instead of the\n// original value. If the replacer function returns a new value, that value is\n// stringified as JSON instead of the original value of the property.\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#the_replacer_parameter\nfunction stableObjectReplacer(key: string, value: any) {\n  if (value && typeof value === \"object\") {\n    const proto = Object.getPrototypeOf(value);\n    // We don't want to mess with objects that are not \"plain\" objects, which\n    // means their prototype is either Object.prototype or null. This check also\n    // prevents needlessly rearranging the indices of arrays.\n    if (proto === Object.prototype || proto === null) {\n      const keys = Object.keys(value);\n      // If keys is already sorted, let JSON.stringify serialize the original\n      // value instead of creating a new object with keys in the same order.\n      if (keys.every(everyKeyInOrder)) return value;\n      const unsortedKey = JSON.stringify(keys);\n      let sortedKeys = sortingMap.get(unsortedKey);\n      if (!sortedKeys) {\n        keys.sort();\n        const sortedKey = JSON.stringify(keys);\n        // Checking for sortedKey in the sortingMap allows us to share the same\n        // sorted array reference for all permutations of the same set of keys.\n        sortedKeys = sortingMap.get(sortedKey) || keys;\n        sortingMap.set(unsortedKey, sortedKeys);\n        sortingMap.set(sortedKey, sortedKeys);\n      }\n      const sortedObject = Object.create(proto);\n      // Reassigning the keys in sorted order will cause JSON.stringify to\n      // serialize them in sorted order.\n      sortedKeys.forEach((key) => {\n        sortedObject[key] = value[key];\n      });\n      return sortedObject;\n    }\n  }\n  return value;\n}\n\n// Since everything that happens in stableObjectReplacer benefits from being as\n// efficient as possible, we use a static function as the callback for\n// keys.every in order to test if the provided keys are already sorted without\n// allocating extra memory for a callback.\nfunction everyKeyInOrder(\n  key: string,\n  i: number,\n  keys: readonly string[]\n): boolean {\n  return i === 0 || keys[i - 1] <= key;\n}\n", "import { newInvariantError } from \"../globals/index.js\";\n\nimport type {\n  DirectiveNode,\n  FieldNode,\n  IntValueNode,\n  FloatValueNode,\n  StringValueNode,\n  BooleanValueNode,\n  ObjectValueNode,\n  ListValueNode,\n  EnumValueNode,\n  NullValueNode,\n  VariableNode,\n  InlineFragmentNode,\n  ValueNode,\n  SelectionNode,\n  NameNode,\n  SelectionSetNode,\n  DocumentNode,\n  FragmentSpreadNode,\n} from \"graphql\";\n\nimport { isNonNullObject } from \"../common/objects.js\";\nimport type { FragmentMap } from \"./fragments.js\";\nimport { getFragmentFromSelection } from \"./fragments.js\";\nimport { canonicalStringify } from \"../common/canonicalStringify.js\";\n\nexport interface Reference {\n  readonly __ref: string;\n}\n\nexport function makeReference(id: string): Reference {\n  return { __ref: String(id) };\n}\n\nexport function isReference(obj: any): obj is Reference {\n  return Boolean(\n    obj && typeof obj === \"object\" && typeof obj.__ref === \"string\"\n  );\n}\n\nexport type StoreValue =\n  | number\n  | string\n  | string[]\n  | Reference\n  | Reference[]\n  | null\n  | undefined\n  | void\n  | Object;\n\nexport interface StoreObject {\n  __typename?: string;\n  [storeFieldName: string]: StoreValue;\n}\n\n/**\n * Workaround for a TypeScript quirk:\n * types per default have an implicit index signature that makes them\n * assignable to `StoreObject`.\n * interfaces do not have that implicit index signature, so they cannot\n * be assigned to `StoreObject`.\n * This type just maps over a type or interface that is passed in,\n * implicitly adding the index signature.\n * That way, the result can be assigned to `StoreObject`.\n *\n * This is important if some user-defined interface is used e.g.\n * in cache.modify, where the `toReference` method expects a\n * `StoreObject` as input.\n */\nexport type AsStoreObject<T extends { __typename?: string }> = {\n  [K in keyof T]: T[K];\n};\n\nexport function isDocumentNode(value: any): value is DocumentNode {\n  return (\n    isNonNullObject(value) &&\n    (value as DocumentNode).kind === \"Document\" &&\n    Array.isArray((value as DocumentNode).definitions)\n  );\n}\n\nfunction isStringValue(value: ValueNode): value is StringValueNode {\n  return value.kind === \"StringValue\";\n}\n\nfunction isBooleanValue(value: ValueNode): value is BooleanValueNode {\n  return value.kind === \"BooleanValue\";\n}\n\nfunction isIntValue(value: ValueNode): value is IntValueNode {\n  return value.kind === \"IntValue\";\n}\n\nfunction isFloatValue(value: ValueNode): value is FloatValueNode {\n  return value.kind === \"FloatValue\";\n}\n\nfunction isVariable(value: ValueNode): value is VariableNode {\n  return value.kind === \"Variable\";\n}\n\nfunction isObjectValue(value: ValueNode): value is ObjectValueNode {\n  return value.kind === \"ObjectValue\";\n}\n\nfunction isListValue(value: ValueNode): value is ListValueNode {\n  return value.kind === \"ListValue\";\n}\n\nfunction isEnumValue(value: ValueNode): value is EnumValueNode {\n  return value.kind === \"EnumValue\";\n}\n\nfunction isNullValue(value: ValueNode): value is NullValueNode {\n  return value.kind === \"NullValue\";\n}\n\nexport function valueToObjectRepresentation(\n  argObj: any,\n  name: NameNode,\n  value: ValueNode,\n  variables?: Object\n) {\n  if (isIntValue(value) || isFloatValue(value)) {\n    argObj[name.value] = Number(value.value);\n  } else if (isBooleanValue(value) || isStringValue(value)) {\n    argObj[name.value] = value.value;\n  } else if (isObjectValue(value)) {\n    const nestedArgObj = {};\n    value.fields.map((obj) =>\n      valueToObjectRepresentation(nestedArgObj, obj.name, obj.value, variables)\n    );\n    argObj[name.value] = nestedArgObj;\n  } else if (isVariable(value)) {\n    const variableValue = (variables || ({} as any))[value.name.value];\n    argObj[name.value] = variableValue;\n  } else if (isListValue(value)) {\n    argObj[name.value] = value.values.map((listValue) => {\n      const nestedArgArrayObj = {};\n      valueToObjectRepresentation(\n        nestedArgArrayObj,\n        name,\n        listValue,\n        variables\n      );\n      return (nestedArgArrayObj as any)[name.value];\n    });\n  } else if (isEnumValue(value)) {\n    argObj[name.value] = (value as EnumValueNode).value;\n  } else if (isNullValue(value)) {\n    argObj[name.value] = null;\n  } else {\n    throw newInvariantError(\n      `The inline argument \"%s\" of kind \"%s\"` +\n        \"is not supported. Use variables instead of inline arguments to \" +\n        \"overcome this limitation.\",\n      name.value,\n      (value as any).kind\n    );\n  }\n}\n\nexport function storeKeyNameFromField(\n  field: FieldNode,\n  variables?: Object\n): string {\n  let directivesObj: any = null;\n  if (field.directives) {\n    directivesObj = {};\n    field.directives.forEach((directive) => {\n      directivesObj[directive.name.value] = {};\n\n      if (directive.arguments) {\n        directive.arguments.forEach(({ name, value }) =>\n          valueToObjectRepresentation(\n            directivesObj[directive.name.value],\n            name,\n            value,\n            variables\n          )\n        );\n      }\n    });\n  }\n\n  let argObj: any = null;\n  if (field.arguments && field.arguments.length) {\n    argObj = {};\n    field.arguments.forEach(({ name, value }) =>\n      valueToObjectRepresentation(argObj, name, value, variables)\n    );\n  }\n\n  return getStoreKeyName(field.name.value, argObj, directivesObj);\n}\n\nexport type Directives = {\n  [directiveName: string]: {\n    [argName: string]: any;\n  };\n};\n\nconst KNOWN_DIRECTIVES: string[] = [\n  \"connection\",\n  \"include\",\n  \"skip\",\n  \"client\",\n  \"rest\",\n  \"export\",\n  \"nonreactive\",\n];\n\n// Default stable JSON.stringify implementation used by getStoreKeyName. Can be\n// updated/replaced with something better by calling\n// getStoreKeyName.setStringify(newStringifyFunction).\nlet storeKeyNameStringify: (value: any) => string = canonicalStringify;\n\nexport const getStoreKeyName = Object.assign(\n  function (\n    fieldName: string,\n    args?: Record<string, any> | null,\n    directives?: Directives\n  ): string {\n    if (\n      args &&\n      directives &&\n      directives[\"connection\"] &&\n      directives[\"connection\"][\"key\"]\n    ) {\n      if (\n        directives[\"connection\"][\"filter\"] &&\n        (directives[\"connection\"][\"filter\"] as string[]).length > 0\n      ) {\n        const filterKeys =\n          directives[\"connection\"][\"filter\"] ?\n            (directives[\"connection\"][\"filter\"] as string[])\n          : [];\n        filterKeys.sort();\n\n        const filteredArgs = {} as { [key: string]: any };\n        filterKeys.forEach((key) => {\n          filteredArgs[key] = args[key];\n        });\n\n        return `${directives[\"connection\"][\"key\"]}(${storeKeyNameStringify(\n          filteredArgs\n        )})`;\n      } else {\n        return directives[\"connection\"][\"key\"];\n      }\n    }\n\n    let completeFieldName: string = fieldName;\n\n    if (args) {\n      // We can't use `JSON.stringify` here since it's non-deterministic,\n      // and can lead to different store key names being created even though\n      // the `args` object used during creation has the same properties/values.\n      const stringifiedArgs: string = storeKeyNameStringify(args);\n      completeFieldName += `(${stringifiedArgs})`;\n    }\n\n    if (directives) {\n      Object.keys(directives).forEach((key) => {\n        if (KNOWN_DIRECTIVES.indexOf(key) !== -1) return;\n        if (directives[key] && Object.keys(directives[key]).length) {\n          completeFieldName += `@${key}(${storeKeyNameStringify(\n            directives[key]\n          )})`;\n        } else {\n          completeFieldName += `@${key}`;\n        }\n      });\n    }\n\n    return completeFieldName;\n  },\n  {\n    setStringify(s: typeof storeKeyNameStringify) {\n      const previous = storeKeyNameStringify;\n      storeKeyNameStringify = s;\n      return previous;\n    },\n  }\n);\n\nexport function argumentsObjectFromField(\n  field: FieldNode | DirectiveNode,\n  variables?: Record<string, any>\n): Object | null {\n  if (field.arguments && field.arguments.length) {\n    const argObj: Object = {};\n    field.arguments.forEach(({ name, value }) =>\n      valueToObjectRepresentation(argObj, name, value, variables)\n    );\n    return argObj;\n  }\n  return null;\n}\n\nexport function resultKeyNameFromField(field: FieldNode): string {\n  return field.alias ? field.alias.value : field.name.value;\n}\n\nexport function getTypenameFromResult(\n  result: Record<string, any>,\n  selectionSet: SelectionSetNode,\n  fragmentMap?: FragmentMap\n): string | undefined {\n  let fragments: undefined | Array<InlineFragmentNode | FragmentSpreadNode>;\n  for (const selection of selectionSet.selections) {\n    if (isField(selection)) {\n      if (selection.name.value === \"__typename\") {\n        return result[resultKeyNameFromField(selection)];\n      }\n    } else if (fragments) {\n      fragments.push(selection);\n    } else {\n      fragments = [selection];\n    }\n  }\n  if (typeof result.__typename === \"string\") {\n    return result.__typename;\n  }\n  if (fragments) {\n    for (const selection of fragments) {\n      const typename = getTypenameFromResult(\n        result,\n        getFragmentFromSelection(selection, fragmentMap)!.selectionSet,\n        fragmentMap\n      );\n      if (typeof typename === \"string\") {\n        return typename;\n      }\n    }\n  }\n}\n\nexport function isField(selection: SelectionNode): selection is FieldNode {\n  return selection.kind === \"Field\";\n}\n\nexport function isInlineFragment(\n  selection: SelectionNode\n): selection is InlineFragmentNode {\n  return selection.kind === \"InlineFragment\";\n}\n\nexport type VariableValue = (node: VariableNode) => any;\n", "import { invariant, newInvariantError } from \"../globals/index.js\";\n\nimport type {\n  DocumentNode,\n  OperationDefinitionNode,\n  FragmentDefinitionNode,\n  ValueNode,\n} from \"graphql\";\n\nimport { valueToObjectRepresentation } from \"./storeUtils.js\";\n\ntype OperationDefinitionWithName = OperationDefinitionNode & {\n  name: NonNullable<OperationDefinitionNode[\"name\"]>;\n};\n\n// Checks the document for errors and throws an exception if there is an error.\nexport function checkDocument(doc: DocumentNode) {\n  invariant(\n    doc && doc.kind === \"Document\",\n    `Expecting a parsed GraphQL document. Perhaps you need to wrap the query \\\nstring in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql`\n  );\n\n  const operations = doc.definitions\n    .filter((d) => d.kind !== \"FragmentDefinition\")\n    .map((definition) => {\n      if (definition.kind !== \"OperationDefinition\") {\n        throw newInvariantError(\n          `Schema type definitions not allowed in queries. Found: \"%s\"`,\n          definition.kind\n        );\n      }\n      return definition;\n    });\n\n  invariant(\n    operations.length <= 1,\n    `Ambiguous GraphQL document: contains %s operations`,\n    operations.length\n  );\n\n  return doc;\n}\n\nexport function getOperationDefinition(\n  doc: DocumentNode\n): OperationDefinitionNode | undefined {\n  checkDocument(doc);\n  return doc.definitions.filter(\n    (definition): definition is OperationDefinitionNode =>\n      definition.kind === \"OperationDefinition\"\n  )[0];\n}\n\nexport function getOperationName(doc: DocumentNode): string | null {\n  return (\n    doc.definitions\n      .filter(\n        (definition): definition is OperationDefinitionWithName =>\n          definition.kind === \"OperationDefinition\" && !!definition.name\n      )\n      .map((x) => x.name.value)[0] || null\n  );\n}\n\n// Returns the FragmentDefinitions from a particular document as an array\nexport function getFragmentDefinitions(\n  doc: DocumentNode\n): FragmentDefinitionNode[] {\n  return doc.definitions.filter(\n    (definition): definition is FragmentDefinitionNode =>\n      definition.kind === \"FragmentDefinition\"\n  );\n}\n\nexport function getQueryDefinition(doc: DocumentNode): OperationDefinitionNode {\n  const queryDef = getOperationDefinition(doc)!;\n\n  invariant(\n    queryDef && queryDef.operation === \"query\",\n    \"Must contain a query definition.\"\n  );\n\n  return queryDef;\n}\n\nexport function getFragmentDefinition(\n  doc: DocumentNode\n): FragmentDefinitionNode {\n  invariant(\n    doc.kind === \"Document\",\n    `Expecting a parsed GraphQL document. Perhaps you need to wrap the query \\\nstring in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql`\n  );\n\n  invariant(\n    doc.definitions.length <= 1,\n    \"Fragment must have exactly one definition.\"\n  );\n\n  const fragmentDef = doc.definitions[0] as FragmentDefinitionNode;\n\n  invariant(\n    fragmentDef.kind === \"FragmentDefinition\",\n    \"Must be a fragment definition.\"\n  );\n\n  return fragmentDef as FragmentDefinitionNode;\n}\n\n/**\n * Returns the first operation definition found in this document.\n * If no operation definition is found, the first fragment definition will be returned.\n * If no definitions are found, an error will be thrown.\n */\nexport function getMainDefinition(\n  queryDoc: DocumentNode\n): OperationDefinitionNode | FragmentDefinitionNode {\n  checkDocument(queryDoc);\n\n  let fragmentDefinition;\n\n  for (let definition of queryDoc.definitions) {\n    if (definition.kind === \"OperationDefinition\") {\n      const operation = (definition as OperationDefinitionNode).operation;\n      if (\n        operation === \"query\" ||\n        operation === \"mutation\" ||\n        operation === \"subscription\"\n      ) {\n        return definition as OperationDefinitionNode;\n      }\n    }\n    if (definition.kind === \"FragmentDefinition\" && !fragmentDefinition) {\n      // we do this because we want to allow multiple fragment definitions\n      // to precede an operation definition.\n      fragmentDefinition = definition as FragmentDefinitionNode;\n    }\n  }\n\n  if (fragmentDefinition) {\n    return fragmentDefinition;\n  }\n\n  throw newInvariantError(\n    \"Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.\"\n  );\n}\n\nexport function getDefaultValues(\n  definition: OperationDefinitionNode | undefined\n): Record<string, any> {\n  const defaultValues = Object.create(null);\n  const defs = definition && definition.variableDefinitions;\n  if (defs && defs.length) {\n    defs.forEach((def) => {\n      if (def.defaultValue) {\n        valueToObjectRepresentation(\n          defaultValues,\n          def.variable.name,\n          def.defaultValue as ValueNode\n        );\n      }\n    });\n  }\n  return defaultValues;\n}\n", "type Context = {\n  parent: Context | null;\n  slots: { [slotId: string]: any };\n}\n\n// This currentContext variable will only be used if the makeSlotClass\n// function is called, which happens only if this is the first copy of the\n// @wry/context package to be imported.\nlet currentContext: Context | null = null;\n\n// This unique internal object is used to denote the absence of a value\n// for a given Slot, and is never exposed to outside code.\nconst MISSING_VALUE: any = {};\n\nlet idCounter = 1;\n\n// Although we can't do anything about the cost of duplicated code from\n// accidentally bundling multiple copies of the @wry/context package, we can\n// avoid creating the Slot class more than once using makeSlotClass.\nconst makeSlotClass = () => class Slot<TValue> {\n  // If you have a Slot object, you can find out its slot.id, but you cannot\n  // guess the slot.id of a Slot you don't have access to, thanks to the\n  // randomized suffix.\n  public readonly id = [\n    \"slot\",\n    idCounter++,\n    Date.now(),\n    Math.random().toString(36).slice(2),\n  ].join(\":\");\n\n  public hasValue() {\n    for (let context = currentContext; context; context = context.parent) {\n      // We use the Slot object iself as a key to its value, which means the\n      // value cannot be obtained without a reference to the Slot object.\n      if (this.id in context.slots) {\n        const value = context.slots[this.id];\n        if (value === MISSING_VALUE) break;\n        if (context !== currentContext) {\n          // Cache the value in currentContext.slots so the next lookup will\n          // be faster. This caching is safe because the tree of contexts and\n          // the values of the slots are logically immutable.\n          currentContext!.slots[this.id] = value;\n        }\n        return true;\n      }\n    }\n    if (currentContext) {\n      // If a value was not found for this Slot, it's never going to be found\n      // no matter how many times we look it up, so we might as well cache\n      // the absence of the value, too.\n      currentContext.slots[this.id] = MISSING_VALUE;\n    }\n    return false;\n  }\n\n  public getValue(): TValue | undefined {\n    if (this.hasValue()) {\n      return currentContext!.slots[this.id] as TValue;\n    }\n  }\n\n  public withValue<TResult, TArgs extends any[], TThis = any>(\n    value: TValue,\n    callback: (this: TThis, ...args: TArgs) => TResult,\n    // Given the prevalence of arrow functions, specifying arguments is likely\n    // to be much more common than specifying `this`, hence this ordering:\n    args?: TArgs,\n    thisArg?: TThis,\n  ): TResult {\n    const slots = {\n      __proto__: null,\n      [this.id]: value,\n    };\n    const parent = currentContext;\n    currentContext = { parent, slots };\n    try {\n      // Function.prototype.apply allows the arguments array argument to be\n      // omitted or undefined, so args! is fine here.\n      return callback.apply(thisArg!, args!);\n    } finally {\n      currentContext = parent;\n    }\n  }\n\n  // Capture the current context and wrap a callback function so that it\n  // reestablishes the captured context when called.\n  static bind<TArgs extends any[], TResult, TThis = any>(\n    callback: (this: TThis, ...args: TArgs) => TResult,\n  ) {\n    const context = currentContext;\n    return function (this: TThis) {\n      const saved = currentContext;\n      try {\n        currentContext = context;\n        return callback.apply(this, arguments as any);\n      } finally {\n        currentContext = saved;\n      }\n    } as typeof callback;\n  }\n\n  // Immediately run a callback function without any captured context.\n  static noContext<TResult, TArgs extends any[], TThis = any>(\n    callback: (this: TThis, ...args: TArgs) => TResult,\n    // Given the prevalence of arrow functions, specifying arguments is likely\n    // to be much more common than specifying `this`, hence this ordering:\n    args?: TArgs,\n    thisArg?: TThis,\n  ) {\n    if (currentContext) {\n      const saved = currentContext;\n      try {\n        currentContext = null;\n        // Function.prototype.apply allows the arguments array argument to be\n        // omitted or undefined, so args! is fine here.\n        return callback.apply(thisArg!, args!);\n      } finally {\n        currentContext = saved;\n      }\n    } else {\n      return callback.apply(thisArg!, args!);\n    }\n  }\n};\n\nfunction maybe<T>(fn: () => T): T | undefined {\n  try {\n    return fn();\n  } catch (ignored) {}\n}\n\n// We store a single global implementation of the Slot class as a permanent\n// non-enumerable property of the globalThis object. This obfuscation does\n// nothing to prevent access to the Slot class, but at least it ensures the\n// implementation (i.e. currentContext) cannot be tampered with, and all copies\n// of the @wry/context package (hopefully just one) will share the same Slot\n// implementation. Since the first copy of the @wry/context package to be\n// imported wins, this technique imposes a steep cost for any future breaking\n// changes to the Slot class.\nconst globalKey = \"@wry/context:Slot\";\n\nconst host =\n  // Prefer globalThis when available.\n  // https://github.com/benjamn/wryware/issues/347\n  maybe(() => globalThis) ||\n  // Fall back to global, which works in Node.js and may be converted by some\n  // bundlers to the appropriate identifier (window, self, ...) depending on the\n  // bundling target. https://github.com/endojs/endo/issues/576#issuecomment-1178515224\n  maybe(() => global) ||\n  // Otherwise, use a dummy host that's local to this module. We used to fall\n  // back to using the Array constructor as a namespace, but that was flagged in\n  // https://github.com/benjamn/wryware/issues/347, and can be avoided.\n  Object.create(null) as typeof Array;\n\n// Whichever globalHost we're using, make TypeScript happy about the additional\n// globalKey property.\nconst globalHost: typeof host & {\n  [globalKey]?: typeof Slot;\n} = host;\n\nexport const Slot: ReturnType<typeof makeSlotClass> =\n  globalHost[globalKey] ||\n  // Earlier versions of this package stored the globalKey property on the Array\n  // constructor, so we check there as well, to prevent Slot class duplication.\n  (Array as typeof globalHost)[globalKey] ||\n  (function (Slot) {\n    try {\n      Object.defineProperty(globalHost, globalKey, {\n        value: Slot,\n        enumerable: false,\n        writable: false,\n        // When it was possible for globalHost to be the Array constructor (a\n        // legacy Slot dedup strategy), it was important for the property to be\n        // configurable:true so it could be deleted. That does not seem to be as\n        // important when globalHost is the global object, but I don't want to\n        // cause similar problems again, and configurable:true seems safest.\n        // https://github.com/endojs/endo/issues/576#issuecomment-1178274008\n        configurable: true\n      });\n    } finally {\n      return Slot;\n    }\n  })(makeSlotClass());\n", "import { Slot } from \"./slot.js\";\nexport { Slot }\nexport const { bind, noContext } = Slot;\n\n// Relying on the @types/node declaration of global.setTimeout can make\n// things tricky for dowstream projects (see PR #7).\ndeclare function setTimeout(\n  callback: (...args: any[]) => any,\n  ms?: number,\n  ...args: any[]\n): any;\n\n// Like global.setTimeout, except the callback runs with captured context.\nexport { setTimeoutWithContext as setTimeout };\nfunction setTimeoutWithContext(callback: () => any, delay: number) {\n  return setTimeout(bind(callback), delay);\n}\n\n// Turn any generator function into an async function (using yield instead\n// of await), with context automatically preserved across yields.\nexport function asyncFromGen<\n  TArgs extends any[],\n  TYield = any,\n  TReturn = any,\n  TNext = any,\n>(\n  genFn: (...args: TArgs) => Generator<TYield, TReturn, TNext>\n) {\n  return function (this: any) {\n    const gen = genFn.apply(this, arguments as any);\n\n    type Method = (\n      this: Generator<TYield, TReturn, TNext>,\n      arg: any,\n    ) => IteratorResult<TYield, TReturn>;\n\n    const boundNext: Method = bind(gen.next);\n    const boundThrow: Method = bind(gen.throw!);\n\n    return new Promise((resolve, reject) => {\n      function invoke(method: Method, argument: any) {\n        try {\n          var result: any = method.call(gen, argument);\n        } catch (error) {\n          return reject(error);\n        }\n        const next = result.done ? resolve : invokeNext;\n        if (isPromiseLike(result.value)) {\n          result.value.then(next, result.done ? reject : invokeThrow);\n        } else {\n          next(result.value);\n        }\n      }\n      const invokeNext = (value?: any) => invoke(boundNext, value);\n      const invokeThrow = (error: any) => invoke(boundThrow, error);\n      invokeNext();\n    });\n  } as (...args: TArgs) => Promise<any>;\n}\n\nfunction isPromiseLike(value: any): value is PromiseLike<any> {\n  return value && typeof value.then === \"function\";\n}\n\n// If you use the fibers npm package to implement coroutines in Node.js,\n// you should call this function at least once to ensure context management\n// remains coherent across any yields.\nconst wrappedFibers: Function[] = [];\nexport function wrapYieldingFiberMethods<F extends Function>(Fiber: F): F {\n  // There can be only one implementation of Fiber per process, so this array\n  // should never grow longer than one element.\n  if (wrappedFibers.indexOf(Fiber) < 0) {\n    const wrap = (obj: any, method: string) => {\n      const fn = obj[method];\n      obj[method] = function () {\n        return noContext(fn, arguments as any, this);\n      };\n    }\n    // These methods can yield, according to\n    // https://github.com/laverdet/node-fibers/blob/ddebed9b8ae3883e57f822e2108e6943e5c8d2a8/fibers.js#L97-L100\n    wrap(Fiber, \"yield\");\n    wrap(Fiber.prototype, \"run\");\n    wrap(Fiber.prototype, \"throwInto\");\n    wrappedFibers.push(Fiber);\n  }\n  return Fiber;\n}\n", "import { Slot } from \"@wry/context\";\nimport { AnyEntry } from \"./entry.js\";\n\nexport const parentEntrySlot = new Slot<AnyEntry | undefined>();\n\nexport function nonReactive<R>(fn: () => R): R {\n  return parentEntrySlot.withValue(void 0, fn);\n}\n\nexport { Slot }\nexport {\n  bind as bindContext,\n  noContext,\n  setTimeout,\n  asyncFromGen,\n} from \"@wry/context\";\n", "export type NoInfer<T> = [T][T extends any ? 0 : never];\n\nexport const {\n  hasOwnProperty,\n} = Object.prototype;\n\nexport const arrayFromSet: <T>(set: Set<T>) => T[] =\n  Array.from ||\n  function (set) {\n    const array: any[] = [];\n    set.forEach(item => array.push(item));\n    return array;\n  };\n\nexport type Unsubscribable = {\n  unsubscribe?: void | (() => any);\n}\n\nexport function maybeUnsubscribe(entryOrDep: Unsubscribable) {\n  const { unsubscribe } = entryOrDep;\n  if (typeof unsubscribe === \"function\") {\n    entryOrDep.unsubscribe = void 0;\n    unsubscribe();\n  }\n}\n", "import { parentEntrySlot } from \"./context.js\";\nimport { OptimisticWrapOptions } from \"./index.js\";\nimport { Dep } from \"./dep.js\";\nimport { maybeUnsubscribe, arrayFromSet, Unsubscribable } from \"./helpers.js\";\n\nconst emptySetPool: Set<any>[] = [];\nconst POOL_TARGET_SIZE = 100;\n\n// Since this package might be used browsers, we should avoid using the\n// Node built-in assert module.\nfunction assert(condition: any, optionalMessage?: string) {\n  if (! condition) {\n    throw new Error(optionalMessage || \"assertion failure\");\n  }\n}\n\n// Since exceptions are cached just like normal values, we need an efficient\n// way of representing unknown, ordinary, and exceptional values.\ntype Value<T> =\n  | []           // unknown\n  | [T]          // known value\n  | [void, any]; // known exception\n\nfunction valueIs(a: Value<any>, b: Value<any>) {\n  const len = a.length;\n  return (\n    // Unknown values are not equal to each other.\n    len > 0 &&\n    // Both values must be ordinary (or both exceptional) to be equal.\n    len === b.length &&\n    // The underlying value or exception must be the same.\n    a[len - 1] === b[len - 1]\n  );\n}\n\nfunction valueGet<T>(value: Value<T>): T {\n  switch (value.length) {\n    case 0: throw new Error(\"unknown value\");\n    case 1: return value[0];\n    case 2: throw value[1];\n  }\n}\n\nfunction valueCopy<T>(value: Value<T>): Value<T> {\n  return value.slice(0) as Value<T>;\n}\n\nexport type AnyEntry = Entry<any, any>;\n\nexport class Entry<TArgs extends any[], TValue> {\n  public static count = 0;\n\n  public normalizeResult: OptimisticWrapOptions<TArgs, any, any, TValue>[\"normalizeResult\"];\n  public subscribe: OptimisticWrapOptions<TArgs>[\"subscribe\"];\n  public unsubscribe: Unsubscribable[\"unsubscribe\"];\n\n  public readonly parents = new Set<AnyEntry>();\n  public readonly childValues = new Map<AnyEntry, Value<any>>();\n\n  // When this Entry has children that are dirty, this property becomes\n  // a Set containing other Entry objects, borrowed from emptySetPool.\n  // When the set becomes empty, it gets recycled back to emptySetPool.\n  public dirtyChildren: Set<AnyEntry> | null = null;\n\n  public dirty = true;\n  public recomputing = false;\n  public readonly value: Value<TValue> = [];\n\n  constructor(\n    public readonly fn: (...args: TArgs) => TValue,\n  ) {\n    ++Entry.count;\n  }\n\n  public peek(): TValue | undefined {\n    if (this.value.length === 1 && !mightBeDirty(this)) {\n      rememberParent(this);\n      return this.value[0];\n    }\n  }\n\n  // This is the most important method of the Entry API, because it\n  // determines whether the cached this.value can be returned immediately,\n  // or must be recomputed. The overall performance of the caching system\n  // depends on the truth of the following observations: (1) this.dirty is\n  // usually false, (2) this.dirtyChildren is usually null/empty, and thus\n  // (3) valueGet(this.value) is usually returned without recomputation.\n  public recompute(args: TArgs): TValue {\n    assert(! this.recomputing, \"already recomputing\");\n    rememberParent(this);\n    return mightBeDirty(this)\n      ? reallyRecompute(this, args)\n      : valueGet(this.value);\n  }\n\n  public setDirty() {\n    if (this.dirty) return;\n    this.dirty = true;\n    reportDirty(this);\n    // We can go ahead and unsubscribe here, since any further dirty\n    // notifications we receive will be redundant, and unsubscribing may\n    // free up some resources, e.g. file watchers.\n    maybeUnsubscribe(this);\n  }\n\n  public dispose() {\n    this.setDirty();\n\n    // Sever any dependency relationships with our own children, so those\n    // children don't retain this parent Entry in their child.parents sets,\n    // thereby preventing it from being fully garbage collected.\n    forgetChildren(this);\n\n    // Because this entry has been kicked out of the cache (in index.js),\n    // we've lost the ability to find out if/when this entry becomes dirty,\n    // whether that happens through a subscription, because of a direct call\n    // to entry.setDirty(), or because one of its children becomes dirty.\n    // Because of this loss of future information, we have to assume the\n    // worst (that this entry might have become dirty very soon), so we must\n    // immediately mark this entry's parents as dirty. Normally we could\n    // just call entry.setDirty() rather than calling parent.setDirty() for\n    // each parent, but that would leave this entry in parent.childValues\n    // and parent.dirtyChildren, which would prevent the child from being\n    // truly forgotten.\n    eachParent(this, (parent, child) => {\n      parent.setDirty();\n      forgetChild(parent, this);\n    });\n  }\n\n  public forget() {\n    // The code that creates Entry objects in index.ts will replace this method\n    // with one that actually removes the Entry from the cache, which will also\n    // trigger the entry.dispose method.\n    this.dispose();\n  }\n\n  private deps: Set<Dep<any>> | null = null;\n\n  public dependOn(dep: Dep<any>) {\n    dep.add(this);\n    if (! this.deps) {\n      this.deps = emptySetPool.pop() || new Set<Set<AnyEntry>>();\n    }\n    this.deps.add(dep);\n  }\n\n  public forgetDeps() {\n    if (this.deps) {\n      arrayFromSet(this.deps).forEach(dep => dep.delete(this));\n      this.deps.clear();\n      emptySetPool.push(this.deps);\n      this.deps = null;\n    }\n  }\n}\n\nfunction rememberParent(child: AnyEntry) {\n  const parent = parentEntrySlot.getValue();\n  if (parent) {\n    child.parents.add(parent);\n\n    if (! parent.childValues.has(child)) {\n      parent.childValues.set(child, []);\n    }\n\n    if (mightBeDirty(child)) {\n      reportDirtyChild(parent, child);\n    } else {\n      reportCleanChild(parent, child);\n    }\n\n    return parent;\n  }\n}\n\nfunction reallyRecompute(entry: AnyEntry, args: any[]) {\n  forgetChildren(entry);\n\n  // Set entry as the parent entry while calling recomputeNewValue(entry).\n  parentEntrySlot.withValue(entry, recomputeNewValue, [entry, args]);\n\n  if (maybeSubscribe(entry, args)) {\n    // If we successfully recomputed entry.value and did not fail to\n    // (re)subscribe, then this Entry is no longer explicitly dirty.\n    setClean(entry);\n  }\n\n  return valueGet(entry.value);\n}\n\nfunction recomputeNewValue(entry: AnyEntry, args: any[]) {\n  entry.recomputing = true;\n\n  const { normalizeResult } = entry;\n  let oldValueCopy: Value<any> | undefined;\n  if (normalizeResult && entry.value.length === 1) {\n    oldValueCopy = valueCopy(entry.value);\n  }\n\n  // Make entry.value an empty array, representing an unknown value.\n  entry.value.length = 0;\n\n  try {\n    // If entry.fn succeeds, entry.value will become a normal Value.\n    entry.value[0] = entry.fn.apply(null, args);\n\n    // If we have a viable oldValueCopy to compare with the (successfully\n    // recomputed) new entry.value, and they are not already === identical, give\n    // normalizeResult a chance to pick/choose/reuse parts of oldValueCopy[0]\n    // and/or entry.value[0] to determine the final cached entry.value.\n    if (normalizeResult && oldValueCopy && !valueIs(oldValueCopy, entry.value)) {\n      try {\n        entry.value[0] = normalizeResult(entry.value[0], oldValueCopy[0]);\n      } catch {\n        // If normalizeResult throws, just use the newer value, rather than\n        // saving the exception as entry.value[1].\n      }\n    }\n\n  } catch (e) {\n    // If entry.fn throws, entry.value will hold that exception.\n    entry.value[1] = e;\n  }\n\n  // Either way, this line is always reached.\n  entry.recomputing = false;\n}\n\nfunction mightBeDirty(entry: AnyEntry) {\n  return entry.dirty || !!(entry.dirtyChildren && entry.dirtyChildren.size);\n}\n\nfunction setClean(entry: AnyEntry) {\n  entry.dirty = false;\n\n  if (mightBeDirty(entry)) {\n    // This Entry may still have dirty children, in which case we can't\n    // let our parents know we're clean just yet.\n    return;\n  }\n\n  reportClean(entry);\n}\n\nfunction reportDirty(child: AnyEntry) {\n  eachParent(child, reportDirtyChild);\n}\n\nfunction reportClean(child: AnyEntry) {\n  eachParent(child, reportCleanChild);\n}\n\nfunction eachParent(\n  child: AnyEntry,\n  callback: (parent: AnyEntry, child: AnyEntry) => any,\n) {\n  const parentCount = child.parents.size;\n  if (parentCount) {\n    const parents = arrayFromSet(child.parents);\n    for (let i = 0; i < parentCount; ++i) {\n      callback(parents[i], child);\n    }\n  }\n}\n\n// Let a parent Entry know that one of its children may be dirty.\nfunction reportDirtyChild(parent: AnyEntry, child: AnyEntry) {\n  // Must have called rememberParent(child) before calling\n  // reportDirtyChild(parent, child).\n  assert(parent.childValues.has(child));\n  assert(mightBeDirty(child));\n  const parentWasClean = !mightBeDirty(parent);\n\n  if (! parent.dirtyChildren) {\n    parent.dirtyChildren = emptySetPool.pop() || new Set;\n\n  } else if (parent.dirtyChildren.has(child)) {\n    // If we already know this child is dirty, then we must have already\n    // informed our own parents that we are dirty, so we can terminate\n    // the recursion early.\n    return;\n  }\n\n  parent.dirtyChildren.add(child);\n\n  // If parent was clean before, it just became (possibly) dirty (according to\n  // mightBeDirty), since we just added child to parent.dirtyChildren.\n  if (parentWasClean) {\n    reportDirty(parent);\n  }\n}\n\n// Let a parent Entry know that one of its children is no longer dirty.\nfunction reportCleanChild(parent: AnyEntry, child: AnyEntry) {\n  // Must have called rememberChild(child) before calling\n  // reportCleanChild(parent, child).\n  assert(parent.childValues.has(child));\n  assert(! mightBeDirty(child));\n\n  const childValue = parent.childValues.get(child)!;\n  if (childValue.length === 0) {\n    parent.childValues.set(child, valueCopy(child.value));\n  } else if (! valueIs(childValue, child.value)) {\n    parent.setDirty();\n  }\n\n  removeDirtyChild(parent, child);\n\n  if (mightBeDirty(parent)) {\n    return;\n  }\n\n  reportClean(parent);\n}\n\nfunction removeDirtyChild(parent: AnyEntry, child: AnyEntry) {\n  const dc = parent.dirtyChildren;\n  if (dc) {\n    dc.delete(child);\n    if (dc.size === 0) {\n      if (emptySetPool.length < POOL_TARGET_SIZE) {\n        emptySetPool.push(dc);\n      }\n      parent.dirtyChildren = null;\n    }\n  }\n}\n\n// Removes all children from this entry and returns an array of the\n// removed children.\nfunction forgetChildren(parent: AnyEntry) {\n  if (parent.childValues.size > 0) {\n    parent.childValues.forEach((_value, child) => {\n      forgetChild(parent, child);\n    });\n  }\n\n  // Remove this parent Entry from any sets to which it was added by the\n  // addToSet method.\n  parent.forgetDeps();\n\n  // After we forget all our children, this.dirtyChildren must be empty\n  // and therefore must have been reset to null.\n  assert(parent.dirtyChildren === null);\n}\n\nfunction forgetChild(parent: AnyEntry, child: AnyEntry) {\n  child.parents.delete(parent);\n  parent.childValues.delete(child);\n  removeDirtyChild(parent, child);\n}\n\nfunction maybeSubscribe(entry: AnyEntry, args: any[]) {\n  if (typeof entry.subscribe === \"function\") {\n    try {\n      maybeUnsubscribe(entry); // Prevent double subscriptions.\n      entry.unsubscribe = entry.subscribe.apply(null, args);\n    } catch (e) {\n      // If this Entry has a subscribe function and it threw an exception\n      // (or an unsubscribe function it previously returned now throws),\n      // return false to indicate that we were not able to subscribe (or\n      // unsubscribe), and this Entry should remain dirty.\n      entry.setDirty();\n      return false;\n    }\n  }\n\n  // Returning true indicates either that there was no entry.subscribe\n  // function or that it succeeded.\n  return true;\n}\n", "import { AnyEntry } from \"./entry.js\";\nimport { OptimisticWrapOptions } from \"./index.js\";\nimport { parentEntrySlot } from \"./context.js\";\nimport {\n  hasOwnProperty,\n  Unsubscribable,\n  maybeUnsubscribe,\n  arrayFromSet,\n } from \"./helpers.js\";\n\ntype EntryMethodName = keyof typeof EntryMethods;\nconst EntryMethods = {\n  setDirty: true, // Mark parent Entry as needing to be recomputed (default)\n  dispose: true,  // Detach parent Entry from parents and children, but leave in LRU cache\n  forget: true,   // Fully remove parent Entry from LRU cache and computation graph\n};\n\nexport type OptimisticDependencyFunction<TKey> =\n  ((key: TKey) => void) & {\n    dirty: (key: TKey, entryMethodName?: EntryMethodName) => void;\n  };\n\nexport type Dep<TKey> = Set<AnyEntry> & {\n  subscribe: OptimisticWrapOptions<[TKey]>[\"subscribe\"];\n} & Unsubscribable;\n\nexport function dep<TKey>(options?: {\n  subscribe: Dep<TKey>[\"subscribe\"];\n}) {\n  const depsByKey = new Map<TKey, Dep<TKey>>();\n  const subscribe = options && options.subscribe;\n\n  function depend(key: TKey) {\n    const parent = parentEntrySlot.getValue();\n    if (parent) {\n      let dep = depsByKey.get(key);\n      if (!dep) {\n        depsByKey.set(key, dep = new Set as Dep<TKey>);\n      }\n      parent.dependOn(dep);\n      if (typeof subscribe === \"function\") {\n        maybeUnsubscribe(dep);\n        dep.unsubscribe = subscribe(key);\n      }\n    }\n  }\n\n  depend.dirty = function dirty(\n    key: TKey,\n    entryMethodName?: EntryMethodName,\n  ) {\n    const dep = depsByKey.get(key);\n    if (dep) {\n      const m: EntryMethodName = (\n        entryMethodName &&\n        hasOwnProperty.call(EntryMethods, entryMethodName)\n      ) ? entryMethodName : \"setDirty\";\n      // We have to use arrayFromSet(dep).forEach instead of dep.forEach,\n      // because modifying a Set while iterating over it can cause elements in\n      // the Set to be removed from the Set before they've been iterated over.\n      arrayFromSet(dep).forEach(entry => entry[m]());\n      depsByKey.delete(key);\n      maybeUnsubscribe(dep);\n    }\n  };\n\n  return depend as OptimisticDependencyFunction<TKey>;\n}\n", "import { Trie } from \"@wry/trie\";\n\nimport { StrongCache, CommonCache } from \"@wry/caches\";\nimport { Entry, AnyEntry } from \"./entry.js\";\nimport { parentEntrySlot } from \"./context.js\";\nimport type { NoInfer } from \"./helpers.js\";\n\n// These helper functions are important for making optimism work with\n// asynchronous code. In order to register parent-child dependencies,\n// optimism needs to know about any currently active parent computations.\n// In ordinary synchronous code, the parent context is implicit in the\n// execution stack, but asynchronous code requires some extra guidance in\n// order to propagate context from one async task segment to the next.\nexport {\n  bindContext,\n  noContext,\n  nonReactive,\n  setTimeout,\n  asyncFromGen,\n  Slot,\n} from \"./context.js\";\n\n// A lighter-weight dependency, similar to OptimisticWrapperFunction, except\n// with only one argument, no makeCacheKey, no wrapped function to recompute,\n// and no result value. Useful for representing dependency leaves in the graph\n// of computation. Subscriptions are supported.\nexport { dep, OptimisticDependencyFunction } from \"./dep.js\";\n\n// The defaultMakeCacheKey function is remarkably powerful, because it gives\n// a unique object for any shallow-identical list of arguments. If you need\n// to implement a custom makeCacheKey function, you may find it helpful to\n// delegate the final work to defaultMakeCacheKey, which is why we export it\n// here. However, you may want to avoid defaultMakeCacheKey if your runtime\n// does not support WeakMap, or you have the ability to return a string key.\n// In those cases, just write your own custom makeCacheKey functions.\nlet defaultKeyTrie: Trie<object> | undefined;\nexport function defaultMakeCacheKey(...args: any[]): object {\n  const trie = defaultKeyTrie || (\n    defaultKeyTrie = new Trie(typeof WeakMap === \"function\")\n  );\n  return trie.lookupArray(args);\n}\n\n// If you're paranoid about memory leaks, or you want to avoid using WeakMap\n// under the hood, but you still need the behavior of defaultMakeCacheKey,\n// import this constructor to create your own tries.\nexport { Trie as KeyTrie }\n\nexport type OptimisticWrapperFunction<\n  TArgs extends any[],\n  TResult,\n  TKeyArgs extends any[] = TArgs,\n  TCacheKey = any,\n> = ((...args: TArgs) => TResult) & {\n  // Get the current number of Entry objects in the LRU cache.\n  readonly size: number;\n\n  // Snapshot of wrap options used to create this wrapper function.\n  options: OptionsWithCacheInstance<TArgs, TKeyArgs, TCacheKey>;\n\n  // \"Dirty\" any cached Entry stored for the given arguments, marking that Entry\n  // and its ancestors as potentially needing to be recomputed. The .dirty(...)\n  // method of an optimistic function takes the same parameter types as the\n  // original function by default, unless a keyArgs function is configured, and\n  // then it matters that .dirty takes TKeyArgs instead of TArgs.\n  dirty: (...args: TKeyArgs) => void;\n  // A version of .dirty that accepts a key returned by .getKey.\n  dirtyKey: (key: TCacheKey | undefined) => void;\n\n  // Examine the current value without recomputing it.\n  peek: (...args: TKeyArgs) => TResult | undefined;\n  // A version of .peek that accepts a key returned by .getKey.\n  peekKey: (key: TCacheKey | undefined) => TResult | undefined;\n\n  // Completely remove the entry from the cache, dirtying any parent entries.\n  forget: (...args: TKeyArgs) => boolean;\n  // A version of .forget that accepts a key returned by .getKey.\n  forgetKey: (key: TCacheKey | undefined) => boolean;\n\n  // In order to use the -Key version of the above functions, you need a key\n  // rather than the arguments used to compute the key. These two functions take\n  // TArgs or TKeyArgs and return the corresponding TCacheKey. If no keyArgs\n  // function has been configured, TArgs will be the same as TKeyArgs, and thus\n  // getKey and makeCacheKey will be synonymous.\n  getKey: (...args: TArgs) => TCacheKey | undefined;\n\n  // This property is equivalent to the makeCacheKey function provided in the\n  // OptimisticWrapOptions, or (if no options.makeCacheKey function is provided)\n  // a default implementation of makeCacheKey. This function is also exposed as\n  // optimistic.options.makeCacheKey, somewhat redundantly.\n  makeCacheKey: (...args: TKeyArgs) => TCacheKey | undefined;\n};\n\nexport { CommonCache }\nexport interface CommonCacheConstructor<TCacheKey, TResult, TArgs extends any[]> extends Function {\n  new <K extends TCacheKey, V extends Entry<TArgs, TResult>>(max?: number, dispose?: (value: V, key?: K) => void): CommonCache<K,V>;\n}\n\nexport type OptimisticWrapOptions<\n  TArgs extends any[],\n  TKeyArgs extends any[] = TArgs,\n  TCacheKey = any,\n  TResult = any,\n> = {\n  // The maximum number of cache entries that should be retained before the\n  // cache begins evicting the oldest ones.\n  max?: number;\n  // Transform the raw arguments to some other type of array, which will then\n  // be passed to makeCacheKey.\n  keyArgs?: (...args: TArgs) => TKeyArgs;\n  // The makeCacheKey function takes the same arguments that were passed to\n  // the wrapper function and returns a single value that can be used as a key\n  // in a Map to identify the cached result.\n  makeCacheKey?: (...args: NoInfer<TKeyArgs>) => TCacheKey | undefined;\n  // Called when a new value is computed to allow efficient normalization of\n  // results over time, for example by returning older if equal(newer, older).\n  normalizeResult?: (newer: TResult, older: TResult) => TResult;\n  // If provided, the subscribe function should either return an unsubscribe\n  // function or return nothing.\n  subscribe?: (...args: TArgs) => void | (() => any);\n  cache?: CommonCache<NoInfer<TCacheKey>, Entry<NoInfer<TArgs>, NoInfer<TResult>>>\n    | CommonCacheConstructor<NoInfer<TCacheKey>, NoInfer<TResult>, NoInfer<TArgs>>;\n};\n\nexport interface OptionsWithCacheInstance<\n  TArgs extends any[],\n  TKeyArgs extends any[] = TArgs,\n  TCacheKey = any,\n  TResult = any,\n> extends OptimisticWrapOptions<TArgs, TKeyArgs, TCacheKey, TResult> {\n  cache: CommonCache<NoInfer<TCacheKey>, Entry<NoInfer<TArgs>, NoInfer<TResult>>>;\n};\n\nconst caches = new Set<CommonCache<any, AnyEntry>>();\n\nexport function wrap<\n  TArgs extends any[],\n  TResult,\n  TKeyArgs extends any[] = TArgs,\n  TCacheKey = any,\n>(originalFunction: (...args: TArgs) => TResult, {\n  max = Math.pow(2, 16),\n  keyArgs,\n  makeCacheKey = (defaultMakeCacheKey as () => TCacheKey),\n  normalizeResult,\n  subscribe,\n  cache: cacheOption = StrongCache,\n}: OptimisticWrapOptions<TArgs, TKeyArgs, TCacheKey, TResult> = Object.create(null)) {\n  const cache: CommonCache<TCacheKey, Entry<TArgs, TResult>> =\n    typeof cacheOption === \"function\"\n      ? new cacheOption(max, entry => entry.dispose())\n      : cacheOption;\n\n  const optimistic = function (): TResult {\n    const key = makeCacheKey.apply(\n      null,\n      keyArgs ? keyArgs.apply(null, arguments as any) : arguments as any\n    );\n\n    if (key === void 0) {\n      return originalFunction.apply(null, arguments as any);\n    }\n\n    let entry = cache.get(key)!;\n    if (!entry) {\n      cache.set(key, entry = new Entry(originalFunction));\n      entry.normalizeResult = normalizeResult;\n      entry.subscribe = subscribe;\n      // Give the Entry the ability to trigger cache.delete(key), even though\n      // the Entry itself does not know about key or cache.\n      entry.forget = () => cache.delete(key);\n    }\n\n    const value = entry.recompute(\n      Array.prototype.slice.call(arguments) as TArgs,\n    );\n\n    // Move this entry to the front of the least-recently used queue,\n    // since we just finished computing its value.\n    cache.set(key, entry);\n\n    caches.add(cache);\n\n    // Clean up any excess entries in the cache, but only if there is no\n    // active parent entry, meaning we're not in the middle of a larger\n    // computation that might be flummoxed by the cleaning.\n    if (! parentEntrySlot.hasValue()) {\n      caches.forEach(cache => cache.clean());\n      caches.clear();\n    }\n\n    return value;\n  } as OptimisticWrapperFunction<TArgs, TResult, TKeyArgs, TCacheKey>;\n\n  Object.defineProperty(optimistic, \"size\", {\n    get: () => cache.size,\n    configurable: false,\n    enumerable: false,\n  });\n\n  Object.freeze(optimistic.options = {\n    max,\n    keyArgs,\n    makeCacheKey,\n    normalizeResult,\n    subscribe,\n    cache,\n  });\n\n  function dirtyKey(key: TCacheKey | undefined) {\n    const entry = key && cache.get(key);\n    if (entry) {\n      entry.setDirty();\n    }\n  }\n  optimistic.dirtyKey = dirtyKey;\n  optimistic.dirty = function dirty() {\n    dirtyKey(makeCacheKey.apply(null, arguments as any));\n  };\n\n  function peekKey(key: TCacheKey | undefined) {\n    const entry = key && cache.get(key);\n    if (entry) {\n      return entry.peek();\n    }\n  }\n  optimistic.peekKey = peekKey;\n  optimistic.peek = function peek() {\n    return peekKey(makeCacheKey.apply(null, arguments as any));\n  };\n\n  function forgetKey(key: TCacheKey | undefined) {\n    return key ? cache.delete(key) : false;\n  }\n  optimistic.forgetKey = forgetKey;\n  optimistic.forget = function forget() {\n    return forgetKey(makeCacheKey.apply(null, arguments as any));\n  };\n\n  optimistic.makeCacheKey = makeCacheKey;\n  optimistic.getKey = keyArgs ? function getKey() {\n    return makeCacheKey.apply(null, keyArgs.apply(null, arguments as any));\n  } : makeCacheKey as (...args: any[]) => TCacheKey | undefined;\n\n  return Object.freeze(optimistic);\n}\n", "import { Trie } from \"@wry/trie\";\nimport { canUseWeakMap, canUseWeakSet } from \"../common/canUse.js\";\nimport { checkDocument } from \"./getFromAST.js\";\nimport { invariant } from \"../globals/index.js\";\nimport type { DocumentNode } from \"graphql\";\nimport { WeakCache } from \"@wry/caches\";\nimport { wrap } from \"optimism\";\nimport { cacheSizes } from \"../caching/index.js\";\n\nexport type DocumentTransformCacheKey = ReadonlyArray<unknown>;\n\ntype TransformFn = (document: DocumentNode) => DocumentNode;\n\ninterface DocumentTransformOptions {\n  /**\n   * Determines whether to cache the transformed GraphQL document. Caching can speed up repeated calls to the document transform for the same input document. Set to `false` to completely disable caching for the document transform. When disabled, this option takes precedence over the [`getCacheKey`](#getcachekey) option.\n   *\n   * The default value is `true`.\n   */\n  cache?: boolean;\n  /**\n   * Defines a custom cache key for a GraphQL document that will determine whether to re-run the document transform when given the same input GraphQL document. Returns an array that defines the cache key. Return `undefined` to disable caching for that GraphQL document.\n   *\n   * > **Note:** The items in the array may be any type, but also need to be referentially stable to guarantee a stable cache key.\n   *\n   * The default implementation of this function returns the `document` as the cache key.\n   */\n  getCacheKey?: (\n    document: DocumentNode\n  ) => DocumentTransformCacheKey | undefined;\n}\n\nfunction identity(document: DocumentNode) {\n  return document;\n}\n\nexport class DocumentTransform {\n  private readonly transform: TransformFn;\n  private cached: boolean;\n\n  private readonly resultCache =\n    canUseWeakSet ? new WeakSet<DocumentNode>() : new Set<DocumentNode>();\n\n  // This default implementation of getCacheKey can be overridden by providing\n  // options.getCacheKey to the DocumentTransform constructor. In general, a\n  // getCacheKey function may either return an array of keys (often including\n  // the document) to be used as a cache key, or undefined to indicate the\n  // transform for this document should not be cached.\n  private getCacheKey(\n    document: DocumentNode\n  ): DocumentTransformCacheKey | undefined {\n    return [document];\n  }\n\n  static identity() {\n    // No need to cache this transform since it just returns the document\n    // unchanged. This should save a bit of memory that would otherwise be\n    // needed to populate the `documentCache` of this transform.\n    return new DocumentTransform(identity, { cache: false });\n  }\n\n  static split(\n    predicate: (document: DocumentNode) => boolean,\n    left: DocumentTransform,\n    right: DocumentTransform = DocumentTransform.identity()\n  ) {\n    return Object.assign(\n      new DocumentTransform(\n        (document) => {\n          const documentTransform = predicate(document) ? left : right;\n\n          return documentTransform.transformDocument(document);\n        },\n        // Reasonably assume both `left` and `right` transforms handle their own caching\n        { cache: false }\n      ),\n      { left, right }\n    );\n  }\n\n  constructor(\n    transform: TransformFn,\n    options: DocumentTransformOptions = Object.create(null)\n  ) {\n    this.transform = transform;\n\n    if (options.getCacheKey) {\n      // Override default `getCacheKey` function, which returns [document].\n      this.getCacheKey = options.getCacheKey;\n    }\n    this.cached = options.cache !== false;\n\n    this.resetCache();\n  }\n\n  /**\n   * Resets the internal cache of this transform, if it has one.\n   */\n  resetCache() {\n    if (this.cached) {\n      const stableCacheKeys = new Trie<WeakKey>(canUseWeakMap);\n      this.performWork = wrap(\n        DocumentTransform.prototype.performWork.bind(this),\n        {\n          makeCacheKey: (document) => {\n            const cacheKeys = this.getCacheKey(document);\n            if (cacheKeys) {\n              invariant(\n                Array.isArray(cacheKeys),\n                \"`getCacheKey` must return an array or undefined\"\n              );\n              return stableCacheKeys.lookupArray(cacheKeys);\n            }\n          },\n          max: cacheSizes[\"documentTransform.cache\"],\n          cache: WeakCache<any, any>,\n        }\n      );\n    }\n  }\n\n  private performWork(document: DocumentNode) {\n    checkDocument(document);\n    return this.transform(document);\n  }\n\n  transformDocument(document: DocumentNode) {\n    // If a user passes an already transformed result back to this function,\n    // immediately return it.\n    if (this.resultCache.has(document)) {\n      return document;\n    }\n\n    const transformedDocument = this.performWork(document);\n\n    this.resultCache.add(transformedDocument);\n\n    return transformedDocument;\n  }\n\n  concat(otherTransform: DocumentTransform): DocumentTransform {\n    return Object.assign(\n      new DocumentTransform(\n        (document) => {\n          return otherTransform.transformDocument(\n            this.transformDocument(document)\n          );\n        },\n        // Reasonably assume both transforms handle their own caching\n        { cache: false }\n      ),\n      {\n        left: this,\n        right: otherTransform,\n      }\n    );\n  }\n\n  /**\n   * @internal\n   * Used to iterate through all transforms that are concatenations or `split` links.\n   */\n  readonly left?: DocumentTransform;\n  /**\n   * @internal\n   * Used to iterate through all transforms that are concatenations or `split` links.\n   */\n  readonly right?: DocumentTransform;\n}\n", "import type { ASTNode } from \"graphql\";\nimport { print as origPrint } from \"graphql\";\nimport {\n  AutoCleanedWeakCache,\n  cacheSizes,\n  defaultCacheSizes,\n} from \"../caching/index.js\";\nimport { registerGlobalCache } from \"../caching/getMemoryInternals.js\";\n\nlet printCache!: AutoCleanedWeakCache<ASTNode, string>;\nexport const print = Object.assign(\n  (ast: ASTNode) => {\n    let result = printCache.get(ast);\n\n    if (!result) {\n      result = origPrint(ast);\n      printCache.set(ast, result);\n    }\n    return result;\n  },\n  {\n    reset() {\n      printCache = new AutoCleanedWeakCache<ASTNode, string>(\n        cacheSizes.print || defaultCacheSizes.print\n      );\n    },\n  }\n);\nprint.reset();\n\nif (__DEV__) {\n  registerGlobalCache(\"print\", () => (printCache ? printCache.size : 0));\n}\n", "// A version of Array.isArray that works better with readonly arrays.\nexport const isArray: (a: any) => a is any[] | readonly any[] = Array.isArray;\n\nexport function isNonEmptyArray<T>(value?: ArrayLike<T>): value is Array<T> {\n  return Array.isArray(value) && value.length > 0;\n}\n", "import { invariant } from \"../globals/index.js\";\n\nimport type {\n  DocumentNode,\n  SelectionNode,\n  SelectionSetNode,\n  OperationDefinitionNode,\n  FieldNode,\n  DirectiveNode,\n  FragmentDefinitionNode,\n  ArgumentNode,\n  FragmentSpreadNode,\n  VariableDefinitionNode,\n  ASTNode,\n  ASTVisitFn,\n  InlineFragmentNode,\n} from \"graphql\";\nimport { visit, Kind } from \"graphql\";\n\nimport {\n  checkDocument,\n  getOperationDefinition,\n  getFragmentDefinition,\n  getFragmentDefinitions,\n  getMainDefinition,\n} from \"./getFromAST.js\";\nimport { isField } from \"./storeUtils.js\";\nimport type { FragmentMap } from \"./fragments.js\";\nimport { createFragmentMap } from \"./fragments.js\";\nimport { isArray, isNonEmptyArray } from \"../common/arrays.js\";\n\n// https://github.com/graphql/graphql-js/blob/8d7c8fccf5a9846a50785de04abda58a7eb13fc0/src/language/visitor.ts#L20-L23\ninterface EnterLeaveVisitor<TVisitedNode extends ASTNode> {\n  readonly enter?: ASTVisitFn<TVisitedNode>;\n  readonly leave?: ASTVisitFn<TVisitedNode>;\n}\n\nexport type RemoveNodeConfig<N> = {\n  name?: string;\n  test?: (node: N) => boolean;\n  remove?: boolean;\n};\n\nexport type GetNodeConfig<N> = {\n  name?: string;\n  test?: (node: N) => boolean;\n};\n\nexport type RemoveDirectiveConfig = RemoveNodeConfig<DirectiveNode>;\nexport type GetDirectiveConfig = GetNodeConfig<DirectiveNode>;\nexport type RemoveArgumentsConfig = RemoveNodeConfig<ArgumentNode>;\nexport type GetFragmentSpreadConfig = GetNodeConfig<FragmentSpreadNode>;\nexport type RemoveFragmentSpreadConfig = RemoveNodeConfig<FragmentSpreadNode>;\nexport type RemoveFragmentDefinitionConfig =\n  RemoveNodeConfig<FragmentDefinitionNode>;\nexport type RemoveVariableDefinitionConfig =\n  RemoveNodeConfig<VariableDefinitionNode>;\n\nconst TYPENAME_FIELD: FieldNode = {\n  kind: Kind.FIELD,\n  name: {\n    kind: Kind.NAME,\n    value: \"__typename\",\n  },\n};\n\nfunction isEmpty(\n  op: OperationDefinitionNode | FragmentDefinitionNode,\n  fragmentMap: FragmentMap\n): boolean {\n  return (\n    !op ||\n    op.selectionSet.selections.every(\n      (selection) =>\n        selection.kind === Kind.FRAGMENT_SPREAD &&\n        isEmpty(fragmentMap[selection.name.value], fragmentMap)\n    )\n  );\n}\n\nfunction nullIfDocIsEmpty(doc: DocumentNode) {\n  return (\n      isEmpty(\n        getOperationDefinition(doc) || getFragmentDefinition(doc),\n        createFragmentMap(getFragmentDefinitions(doc))\n      )\n    ) ?\n      null\n    : doc;\n}\n\nfunction getDirectiveMatcher(\n  configs: (RemoveDirectiveConfig | GetDirectiveConfig)[]\n) {\n  const names = new Map<string, RemoveDirectiveConfig | GetDirectiveConfig>();\n\n  const tests = new Map<\n    (directive: DirectiveNode) => boolean,\n    RemoveDirectiveConfig | GetDirectiveConfig\n  >();\n\n  configs.forEach((directive) => {\n    if (directive) {\n      if (directive.name) {\n        names.set(directive.name, directive);\n      } else if (directive.test) {\n        tests.set(directive.test, directive);\n      }\n    }\n  });\n\n  return (directive: DirectiveNode) => {\n    let config = names.get(directive.name.value);\n    if (!config && tests.size) {\n      tests.forEach((testConfig, test) => {\n        if (test(directive)) {\n          config = testConfig;\n        }\n      });\n    }\n    return config;\n  };\n}\n\n// Helper interface and function used by removeDirectivesFromDocument to keep\n// track of variable references and fragments spreads found within a given\n// operation or fragment definition.\ninterface InternalInUseInfo {\n  variables: Set<string>;\n  fragmentSpreads: Set<string>;\n  // Set to true when we deliberately remove a fragment definition, so we can\n  // make sure also to remove dangling ...spreads that refer to it.\n  removed?: boolean;\n  // Populated by the populateTransitiveVars helper function below.\n  transitiveVars?: Set<string>;\n}\nfunction makeInUseGetterFunction<TKey>(defaultKey: TKey) {\n  const map = new Map<TKey, InternalInUseInfo>();\n\n  return function inUseGetterFunction(\n    key: TKey = defaultKey\n  ): InternalInUseInfo {\n    let inUse = map.get(key);\n    if (!inUse) {\n      map.set(\n        key,\n        (inUse = {\n          // Variable and fragment spread names used directly within this\n          // operation or fragment definition, as identified by key. These sets\n          // will be populated during the first traversal of the document in\n          // removeDirectivesFromDocument below.\n          variables: new Set(),\n          fragmentSpreads: new Set(),\n        })\n      );\n    }\n    return inUse;\n  };\n}\n\nexport function removeDirectivesFromDocument(\n  directives: RemoveDirectiveConfig[],\n  doc: DocumentNode\n): DocumentNode | null {\n  checkDocument(doc);\n\n  // Passing empty strings to makeInUseGetterFunction means we handle anonymous\n  // operations as if their names were \"\". Anonymous fragment definitions are\n  // not supposed to be possible, but the same default naming strategy seems\n  // appropriate for that case as well.\n  const getInUseByOperationName = makeInUseGetterFunction<string>(\"\");\n  const getInUseByFragmentName = makeInUseGetterFunction<string>(\"\");\n  const getInUse = (\n    ancestors: readonly (ASTNode | readonly ASTNode[])[]\n  ): InternalInUseInfo | null => {\n    for (\n      let p = 0, ancestor: ASTNode | readonly ASTNode[];\n      p < ancestors.length && (ancestor = ancestors[p]);\n      ++p\n    ) {\n      if (isArray(ancestor)) continue;\n      if (ancestor.kind === Kind.OPERATION_DEFINITION) {\n        // If an operation is anonymous, we use the empty string as its key.\n        return getInUseByOperationName(ancestor.name && ancestor.name.value);\n      }\n      if (ancestor.kind === Kind.FRAGMENT_DEFINITION) {\n        return getInUseByFragmentName(ancestor.name.value);\n      }\n    }\n    invariant.error(`Could not find operation or fragment`);\n    return null;\n  };\n\n  let operationCount = 0;\n  for (let i = doc.definitions.length - 1; i >= 0; --i) {\n    if (doc.definitions[i].kind === Kind.OPERATION_DEFINITION) {\n      ++operationCount;\n    }\n  }\n\n  const directiveMatcher = getDirectiveMatcher(directives);\n  const shouldRemoveField = (nodeDirectives: FieldNode[\"directives\"]) =>\n    isNonEmptyArray(nodeDirectives) &&\n    nodeDirectives\n      .map(directiveMatcher)\n      .some(\n        (config: RemoveDirectiveConfig | undefined) => config && config.remove\n      );\n\n  const originalFragmentDefsByPath = new Map<string, FragmentDefinitionNode>();\n\n  // Any time the first traversal of the document below makes a change like\n  // removing a fragment (by returning null), this variable should be set to\n  // true. Once it becomes true, it should never be set to false again. If this\n  // variable remains false throughout the traversal, then we can return the\n  // original doc immediately without any modifications.\n  let firstVisitMadeChanges = false;\n\n  const fieldOrInlineFragmentVisitor: EnterLeaveVisitor<\n    FieldNode | InlineFragmentNode\n  > = {\n    enter(node) {\n      if (shouldRemoveField(node.directives)) {\n        firstVisitMadeChanges = true;\n        return null;\n      }\n    },\n  };\n\n  const docWithoutDirectiveSubtrees = visit(doc, {\n    // These two AST node types share the same implementation, defined above.\n    Field: fieldOrInlineFragmentVisitor,\n    InlineFragment: fieldOrInlineFragmentVisitor,\n\n    VariableDefinition: {\n      enter() {\n        // VariableDefinition nodes do not count as variables in use, though\n        // they do contain Variable nodes that might be visited below. To avoid\n        // counting variable declarations as usages, we skip visiting the\n        // contents of this VariableDefinition node by returning false.\n        return false;\n      },\n    },\n\n    Variable: {\n      enter(node, _key, _parent, _path, ancestors) {\n        const inUse = getInUse(ancestors);\n        if (inUse) {\n          inUse.variables.add(node.name.value);\n        }\n      },\n    },\n\n    FragmentSpread: {\n      enter(node, _key, _parent, _path, ancestors) {\n        if (shouldRemoveField(node.directives)) {\n          firstVisitMadeChanges = true;\n          return null;\n        }\n        const inUse = getInUse(ancestors);\n        if (inUse) {\n          inUse.fragmentSpreads.add(node.name.value);\n        }\n        // We might like to remove this FragmentSpread by returning null here if\n        // the corresponding FragmentDefinition node is also going to be removed\n        // by the logic below, but we can't control the relative order of those\n        // events, so we have to postpone the removal of dangling FragmentSpread\n        // nodes until after the current visit of the document has finished.\n      },\n    },\n\n    FragmentDefinition: {\n      enter(node, _key, _parent, path) {\n        originalFragmentDefsByPath.set(JSON.stringify(path), node);\n      },\n      leave(node, _key, _parent, path) {\n        const originalNode = originalFragmentDefsByPath.get(\n          JSON.stringify(path)\n        );\n        if (node === originalNode) {\n          // If the FragmentNode received by this leave function is identical to\n          // the one received by the corresponding enter function (above), then\n          // the visitor must not have made any changes within this\n          // FragmentDefinition node. This fragment definition may still be\n          // removed if there are no ...spread references to it, but it won't be\n          // removed just because it has only a __typename field.\n          return node;\n        }\n\n        if (\n          // This logic applies only if the document contains one or more\n          // operations, since removing all fragments from a document containing\n          // only fragments makes the document useless.\n          operationCount > 0 &&\n          node.selectionSet.selections.every(\n            (selection) =>\n              selection.kind === Kind.FIELD &&\n              selection.name.value === \"__typename\"\n          )\n        ) {\n          // This is a somewhat opinionated choice: if a FragmentDefinition ends\n          // up having no fields other than __typename, we remove the whole\n          // fragment definition, and later prune ...spread references to it.\n          getInUseByFragmentName(node.name.value).removed = true;\n          firstVisitMadeChanges = true;\n          return null;\n        }\n      },\n    },\n\n    Directive: {\n      leave(node) {\n        // If a matching directive is found, remove the directive itself. Note\n        // that this does not remove the target (field, argument, etc) of the\n        // directive, but only the directive itself.\n        if (directiveMatcher(node)) {\n          firstVisitMadeChanges = true;\n          return null;\n        }\n      },\n    },\n  });\n\n  if (!firstVisitMadeChanges) {\n    // If our first pass did not change anything about the document, then there\n    // is no cleanup we need to do, and we can return the original doc.\n    return doc;\n  }\n\n  // Utility for making sure inUse.transitiveVars is recursively populated.\n  // Because this logic assumes inUse.fragmentSpreads has been completely\n  // populated and inUse.removed has been set if appropriate,\n  // populateTransitiveVars must be called after that information has been\n  // collected by the first traversal of the document.\n  const populateTransitiveVars = (inUse: InternalInUseInfo) => {\n    if (!inUse.transitiveVars) {\n      inUse.transitiveVars = new Set(inUse.variables);\n      if (!inUse.removed) {\n        inUse.fragmentSpreads.forEach((childFragmentName) => {\n          populateTransitiveVars(\n            getInUseByFragmentName(childFragmentName)\n          ).transitiveVars!.forEach((varName) => {\n            inUse.transitiveVars!.add(varName);\n          });\n        });\n      }\n    }\n    return inUse;\n  };\n\n  // Since we've been keeping track of fragment spreads used by particular\n  // operations and fragment definitions, we now need to compute the set of all\n  // spreads used (transitively) by any operations in the document.\n  const allFragmentNamesUsed = new Set<string>();\n  docWithoutDirectiveSubtrees.definitions.forEach((def) => {\n    if (def.kind === Kind.OPERATION_DEFINITION) {\n      populateTransitiveVars(\n        getInUseByOperationName(def.name && def.name.value)\n      ).fragmentSpreads.forEach((childFragmentName) => {\n        allFragmentNamesUsed.add(childFragmentName);\n      });\n    } else if (\n      def.kind === Kind.FRAGMENT_DEFINITION &&\n      // If there are no operations in the document, then all fragment\n      // definitions count as usages of their own fragment names. This heuristic\n      // prevents accidentally removing all fragment definitions from the\n      // document just because it contains no operations that use the fragments.\n      operationCount === 0 &&\n      !getInUseByFragmentName(def.name.value).removed\n    ) {\n      allFragmentNamesUsed.add(def.name.value);\n    }\n  });\n  // Now that we have added all fragment spreads used by operations to the\n  // allFragmentNamesUsed set, we can complete the set by transitively adding\n  // all fragment spreads used by those fragments, and so on.\n  allFragmentNamesUsed.forEach((fragmentName) => {\n    // Once all the childFragmentName strings added here have been seen already,\n    // the top-level allFragmentNamesUsed.forEach loop will terminate.\n    populateTransitiveVars(\n      getInUseByFragmentName(fragmentName)\n    ).fragmentSpreads.forEach((childFragmentName) => {\n      allFragmentNamesUsed.add(childFragmentName);\n    });\n  });\n\n  const fragmentWillBeRemoved = (fragmentName: string) =>\n    !!(\n      // A fragment definition will be removed if there are no spreads that refer\n      // to it, or the fragment was explicitly removed because it had no fields\n      // other than __typename.\n      (\n        !allFragmentNamesUsed.has(fragmentName) ||\n        getInUseByFragmentName(fragmentName).removed\n      )\n    );\n\n  const enterVisitor: EnterLeaveVisitor<\n    FragmentSpreadNode | FragmentDefinitionNode\n  > = {\n    enter(node) {\n      if (fragmentWillBeRemoved(node.name.value)) {\n        return null;\n      }\n    },\n  };\n\n  return nullIfDocIsEmpty(\n    visit(docWithoutDirectiveSubtrees, {\n      // If the fragment is going to be removed, then leaving any dangling\n      // FragmentSpread nodes with the same name would be a mistake.\n      FragmentSpread: enterVisitor,\n\n      // This is where the fragment definition is actually removed.\n      FragmentDefinition: enterVisitor,\n\n      OperationDefinition: {\n        leave(node) {\n          // Upon leaving each operation in the depth-first AST traversal, prune\n          // any variables that are declared by the operation but unused within.\n          if (node.variableDefinitions) {\n            const usedVariableNames = populateTransitiveVars(\n              // If an operation is anonymous, we use the empty string as its key.\n              getInUseByOperationName(node.name && node.name.value)\n            ).transitiveVars!;\n\n            // According to the GraphQL spec, all variables declared by an\n            // operation must either be used by that operation or used by some\n            // fragment included transitively into that operation:\n            // https://spec.graphql.org/draft/#sec-All-Variables-Used\n            //\n            // To stay on the right side of this validation rule, if/when we\n            // remove the last $var references from an operation or its fragments,\n            // we must also remove the corresponding $var declaration from the\n            // enclosing operation. This pruning applies only to operations and\n            // not fragment definitions, at the moment. Fragments may be able to\n            // declare variables eventually, but today they can only consume them.\n            if (usedVariableNames.size < node.variableDefinitions.length) {\n              return {\n                ...node,\n                variableDefinitions: node.variableDefinitions.filter((varDef) =>\n                  usedVariableNames.has(varDef.variable.name.value)\n                ),\n              };\n            }\n          }\n        },\n      },\n    })\n  );\n}\n\nexport const addTypenameToDocument = Object.assign(\n  function <TNode extends ASTNode>(doc: TNode): TNode {\n    return visit(doc, {\n      SelectionSet: {\n        enter(node, _key, parent) {\n          // Don't add __typename to OperationDefinitions.\n          if (\n            parent &&\n            (parent as OperationDefinitionNode).kind ===\n              Kind.OPERATION_DEFINITION\n          ) {\n            return;\n          }\n\n          // No changes if no selections.\n          const { selections } = node;\n          if (!selections) {\n            return;\n          }\n\n          // If selections already have a __typename, or are part of an\n          // introspection query, do nothing.\n          const skip = selections.some((selection) => {\n            return (\n              isField(selection) &&\n              (selection.name.value === \"__typename\" ||\n                selection.name.value.lastIndexOf(\"__\", 0) === 0)\n            );\n          });\n          if (skip) {\n            return;\n          }\n\n          // If this SelectionSet is @export-ed as an input variable, it should\n          // not have a __typename field (see issue #4691).\n          const field = parent as FieldNode;\n          if (\n            isField(field) &&\n            field.directives &&\n            field.directives.some((d) => d.name.value === \"export\")\n          ) {\n            return;\n          }\n\n          // Create and return a new SelectionSet with a __typename Field.\n          return {\n            ...node,\n            selections: [...selections, TYPENAME_FIELD],\n          };\n        },\n      },\n    });\n  },\n  {\n    added(field: FieldNode): boolean {\n      return field === TYPENAME_FIELD;\n    },\n  }\n);\n\nconst connectionRemoveConfig = {\n  test: (directive: DirectiveNode) => {\n    const willRemove = directive.name.value === \"connection\";\n    if (willRemove) {\n      if (\n        !directive.arguments ||\n        !directive.arguments.some((arg) => arg.name.value === \"key\")\n      ) {\n        invariant.warn(\n          \"Removing an @connection directive even though it does not have a key. \" +\n            \"You may want to use the key parameter to specify a store key.\"\n        );\n      }\n    }\n\n    return willRemove;\n  },\n};\n\nexport function removeConnectionDirectiveFromDocument(doc: DocumentNode) {\n  return removeDirectivesFromDocument(\n    [connectionRemoveConfig],\n    checkDocument(doc)\n  );\n}\n\nfunction hasDirectivesInSelectionSet(\n  directives: GetDirectiveConfig[],\n  selectionSet: SelectionSetNode | undefined,\n  nestedCheck = true\n): boolean {\n  return (\n    !!selectionSet &&\n    selectionSet.selections &&\n    selectionSet.selections.some((selection) =>\n      hasDirectivesInSelection(directives, selection, nestedCheck)\n    )\n  );\n}\n\nfunction hasDirectivesInSelection(\n  directives: GetDirectiveConfig[],\n  selection: SelectionNode,\n  nestedCheck = true\n): boolean {\n  if (!isField(selection)) {\n    return true;\n  }\n\n  if (!selection.directives) {\n    return false;\n  }\n\n  return (\n    selection.directives.some(getDirectiveMatcher(directives)) ||\n    (nestedCheck &&\n      hasDirectivesInSelectionSet(\n        directives,\n        selection.selectionSet,\n        nestedCheck\n      ))\n  );\n}\n\nfunction getArgumentMatcher(config: RemoveArgumentsConfig[]) {\n  return function argumentMatcher(argument: ArgumentNode) {\n    return config.some(\n      (aConfig: RemoveArgumentsConfig) =>\n        argument.value &&\n        argument.value.kind === Kind.VARIABLE &&\n        argument.value.name &&\n        (aConfig.name === argument.value.name.value ||\n          (aConfig.test && aConfig.test(argument)))\n    );\n  };\n}\n\nexport function removeArgumentsFromDocument(\n  config: RemoveArgumentsConfig[],\n  doc: DocumentNode\n): DocumentNode | null {\n  const argMatcher = getArgumentMatcher(config);\n\n  return nullIfDocIsEmpty(\n    visit(doc, {\n      OperationDefinition: {\n        enter(node) {\n          return {\n            ...node,\n            // Remove matching top level variables definitions.\n            variableDefinitions:\n              node.variableDefinitions ?\n                node.variableDefinitions.filter(\n                  (varDef) =>\n                    !config.some(\n                      (arg) => arg.name === varDef.variable.name.value\n                    )\n                )\n              : [],\n          };\n        },\n      },\n\n      Field: {\n        enter(node) {\n          // If `remove` is set to true for an argument, and an argument match\n          // is found for a field, remove the field as well.\n          const shouldRemoveField = config.some(\n            (argConfig) => argConfig.remove\n          );\n\n          if (shouldRemoveField) {\n            let argMatchCount = 0;\n            if (node.arguments) {\n              node.arguments.forEach((arg) => {\n                if (argMatcher(arg)) {\n                  argMatchCount += 1;\n                }\n              });\n            }\n\n            if (argMatchCount === 1) {\n              return null;\n            }\n          }\n        },\n      },\n\n      Argument: {\n        enter(node) {\n          // Remove all matching arguments.\n          if (argMatcher(node)) {\n            return null;\n          }\n        },\n      },\n    })\n  );\n}\n\nexport function removeFragmentSpreadFromDocument(\n  config: RemoveFragmentSpreadConfig[],\n  doc: DocumentNode\n): DocumentNode | null {\n  function enter(\n    node: FragmentSpreadNode | FragmentDefinitionNode\n  ): null | void {\n    if (config.some((def) => def.name === node.name.value)) {\n      return null;\n    }\n  }\n\n  return nullIfDocIsEmpty(\n    visit(doc, {\n      FragmentSpread: { enter },\n      FragmentDefinition: { enter },\n    })\n  );\n}\n\n// If the incoming document is a query, return it as is. Otherwise, build a\n// new document containing a query operation based on the selection set\n// of the previous main operation.\nexport function buildQueryFromSelectionSet(\n  document: DocumentNode\n): DocumentNode {\n  const definition = getMainDefinition(document);\n  const definitionOperation = (<OperationDefinitionNode>definition).operation;\n\n  if (definitionOperation === \"query\") {\n    // Already a query, so return the existing document.\n    return document;\n  }\n\n  // Build a new query using the selection set of the main operation.\n  const modifiedDoc = visit(document, {\n    OperationDefinition: {\n      enter(node) {\n        return {\n          ...node,\n          operation: \"query\",\n        };\n      },\n    },\n  });\n  return modifiedDoc;\n}\n\n// Remove fields / selection sets that include an @client directive.\nexport function removeClientSetsFromDocument(\n  document: DocumentNode\n): DocumentNode | null {\n  checkDocument(document);\n\n  let modifiedDoc = removeDirectivesFromDocument(\n    [\n      {\n        test: (directive: DirectiveNode) => directive.name.value === \"client\",\n        remove: true,\n      },\n    ],\n    document\n  );\n\n  return modifiedDoc;\n}\n", "import { isNonNullObject } from \"./objects.js\";\n\nconst { hasOwnProperty } = Object.prototype;\n\n// These mergeDeep and mergeDeepArray utilities merge any number of objects\n// together, sharing as much memory as possible with the source objects, while\n// remaining careful to avoid modifying any source objects.\n\n// Logically, the return type of mergeDeep should be the intersection of\n// all the argument types. The binary call signature is by far the most\n// common, but we support 0- through 5-ary as well. After that, the\n// resulting type is just the inferred array element type. Note to nerds:\n// there is a more clever way of doing this that converts the tuple type\n// first to a union type (easy enough: T[number]) and then converts the\n// union to an intersection type using distributive conditional type\n// inference, but that approach has several fatal flaws (boolean becomes\n// true & false, and the inferred type ends up as unknown in many cases),\n// in addition to being nearly impossible to explain/understand.\nexport type TupleToIntersection<T extends any[]> =\n  T extends [infer A] ? A\n  : T extends [infer A, infer B] ? A & B\n  : T extends [infer A, infer B, infer C] ? A & B & C\n  : T extends [infer A, infer B, infer C, infer D] ? A & B & C & D\n  : T extends [infer A, infer B, infer C, infer D, infer E] ? A & B & C & D & E\n  : T extends (infer U)[] ? U\n  : any;\n\nexport function mergeDeep<T extends any[]>(\n  ...sources: T\n): TupleToIntersection<T> {\n  return mergeDeepArray(sources);\n}\n\n// In almost any situation where you could succeed in getting the\n// TypeScript compiler to infer a tuple type for the sources array, you\n// could just use mergeDeep instead of mergeDeepArray, so instead of\n// trying to convert T[] to an intersection type we just infer the array\n// element type, which works perfectly when the sources array has a\n// consistent element type.\nexport function mergeDeepArray<T>(sources: T[]): T {\n  let target = sources[0] || ({} as T);\n  const count = sources.length;\n  if (count > 1) {\n    const merger = new DeepMerger();\n    for (let i = 1; i < count; ++i) {\n      target = merger.merge(target, sources[i]);\n    }\n  }\n  return target;\n}\n\nexport type ReconcilerFunction<TContextArgs extends any[]> = (\n  this: DeepMerger<TContextArgs>,\n  target: Record<string | number, any>,\n  source: Record<string | number, any>,\n  property: string | number,\n  ...context: TContextArgs\n) => any;\n\nconst defaultReconciler: ReconcilerFunction<any[]> = function (\n  target,\n  source,\n  property\n) {\n  return this.merge(target[property], source[property]);\n};\n\nexport class DeepMerger<TContextArgs extends any[]> {\n  constructor(\n    private reconciler: ReconcilerFunction<TContextArgs> = defaultReconciler as any as ReconcilerFunction<TContextArgs>\n  ) {}\n\n  public merge(target: any, source: any, ...context: TContextArgs): any {\n    if (isNonNullObject(source) && isNonNullObject(target)) {\n      Object.keys(source).forEach((sourceKey) => {\n        if (hasOwnProperty.call(target, sourceKey)) {\n          const targetValue = target[sourceKey];\n          if (source[sourceKey] !== targetValue) {\n            const result = this.reconciler(\n              target,\n              source,\n              sourceKey,\n              ...context\n            );\n            // A well-implemented reconciler may return targetValue to indicate\n            // the merge changed nothing about the structure of the target.\n            if (result !== targetValue) {\n              target = this.shallowCopyForMerge(target);\n              target[sourceKey] = result;\n            }\n          }\n        } else {\n          // If there is no collision, the target can safely share memory with\n          // the source, and the recursion can terminate here.\n          target = this.shallowCopyForMerge(target);\n          target[sourceKey] = source[sourceKey];\n        }\n      });\n\n      return target;\n    }\n\n    // If source (or target) is not an object, let source replace target.\n    return source;\n  }\n\n  public isObject = isNonNullObject;\n\n  private pastCopies = new Set<any>();\n\n  public shallowCopyForMerge<T>(value: T): T {\n    if (isNonNullObject(value)) {\n      if (!this.pastCopies.has(value)) {\n        if (Array.isArray(value)) {\n          value = (value as any).slice(0);\n        } else {\n          value = {\n            __proto__: Object.getPrototypeOf(value),\n            ...value,\n          };\n        }\n        this.pastCopies.add(value);\n      }\n    }\n    return value;\n  }\n}\n", "function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n// === Symbol Support ===\nvar hasSymbols = function () {\n  return typeof Symbol === 'function';\n};\n\nvar hasSymbol = function (name) {\n  return hasSymbols() && Boolean(Symbol[name]);\n};\n\nvar getSymbol = function (name) {\n  return hasSymbol(name) ? Symbol[name] : '@@' + name;\n};\n\nif (hasSymbols() && !hasSymbol('observable')) {\n  Symbol.observable = Symbol('observable');\n}\n\nvar SymbolIterator = getSymbol('iterator');\nvar SymbolObservable = getSymbol('observable');\nvar SymbolSpecies = getSymbol('species'); // === Abstract Operations ===\n\nfunction getMethod(obj, key) {\n  var value = obj[key];\n  if (value == null) return undefined;\n  if (typeof value !== 'function') throw new TypeError(value + ' is not a function');\n  return value;\n}\n\nfunction getSpecies(obj) {\n  var ctor = obj.constructor;\n\n  if (ctor !== undefined) {\n    ctor = ctor[SymbolSpecies];\n\n    if (ctor === null) {\n      ctor = undefined;\n    }\n  }\n\n  return ctor !== undefined ? ctor : Observable;\n}\n\nfunction isObservable(x) {\n  return x instanceof Observable; // SPEC: Brand check\n}\n\nfunction hostReportError(e) {\n  if (hostReportError.log) {\n    hostReportError.log(e);\n  } else {\n    setTimeout(function () {\n      throw e;\n    });\n  }\n}\n\nfunction enqueue(fn) {\n  Promise.resolve().then(function () {\n    try {\n      fn();\n    } catch (e) {\n      hostReportError(e);\n    }\n  });\n}\n\nfunction cleanupSubscription(subscription) {\n  var cleanup = subscription._cleanup;\n  if (cleanup === undefined) return;\n  subscription._cleanup = undefined;\n\n  if (!cleanup) {\n    return;\n  }\n\n  try {\n    if (typeof cleanup === 'function') {\n      cleanup();\n    } else {\n      var unsubscribe = getMethod(cleanup, 'unsubscribe');\n\n      if (unsubscribe) {\n        unsubscribe.call(cleanup);\n      }\n    }\n  } catch (e) {\n    hostReportError(e);\n  }\n}\n\nfunction closeSubscription(subscription) {\n  subscription._observer = undefined;\n  subscription._queue = undefined;\n  subscription._state = 'closed';\n}\n\nfunction flushSubscription(subscription) {\n  var queue = subscription._queue;\n\n  if (!queue) {\n    return;\n  }\n\n  subscription._queue = undefined;\n  subscription._state = 'ready';\n\n  for (var i = 0; i < queue.length; ++i) {\n    notifySubscription(subscription, queue[i].type, queue[i].value);\n    if (subscription._state === 'closed') break;\n  }\n}\n\nfunction notifySubscription(subscription, type, value) {\n  subscription._state = 'running';\n  var observer = subscription._observer;\n\n  try {\n    var m = getMethod(observer, type);\n\n    switch (type) {\n      case 'next':\n        if (m) m.call(observer, value);\n        break;\n\n      case 'error':\n        closeSubscription(subscription);\n        if (m) m.call(observer, value);else throw value;\n        break;\n\n      case 'complete':\n        closeSubscription(subscription);\n        if (m) m.call(observer);\n        break;\n    }\n  } catch (e) {\n    hostReportError(e);\n  }\n\n  if (subscription._state === 'closed') cleanupSubscription(subscription);else if (subscription._state === 'running') subscription._state = 'ready';\n}\n\nfunction onNotify(subscription, type, value) {\n  if (subscription._state === 'closed') return;\n\n  if (subscription._state === 'buffering') {\n    subscription._queue.push({\n      type: type,\n      value: value\n    });\n\n    return;\n  }\n\n  if (subscription._state !== 'ready') {\n    subscription._state = 'buffering';\n    subscription._queue = [{\n      type: type,\n      value: value\n    }];\n    enqueue(function () {\n      return flushSubscription(subscription);\n    });\n    return;\n  }\n\n  notifySubscription(subscription, type, value);\n}\n\nvar Subscription = /*#__PURE__*/function () {\n  function Subscription(observer, subscriber) {\n    // ASSERT: observer is an object\n    // ASSERT: subscriber is callable\n    this._cleanup = undefined;\n    this._observer = observer;\n    this._queue = undefined;\n    this._state = 'initializing';\n    var subscriptionObserver = new SubscriptionObserver(this);\n\n    try {\n      this._cleanup = subscriber.call(undefined, subscriptionObserver);\n    } catch (e) {\n      subscriptionObserver.error(e);\n    }\n\n    if (this._state === 'initializing') this._state = 'ready';\n  }\n\n  var _proto = Subscription.prototype;\n\n  _proto.unsubscribe = function unsubscribe() {\n    if (this._state !== 'closed') {\n      closeSubscription(this);\n      cleanupSubscription(this);\n    }\n  };\n\n  _createClass(Subscription, [{\n    key: \"closed\",\n    get: function () {\n      return this._state === 'closed';\n    }\n  }]);\n\n  return Subscription;\n}();\n\nvar SubscriptionObserver = /*#__PURE__*/function () {\n  function SubscriptionObserver(subscription) {\n    this._subscription = subscription;\n  }\n\n  var _proto2 = SubscriptionObserver.prototype;\n\n  _proto2.next = function next(value) {\n    onNotify(this._subscription, 'next', value);\n  };\n\n  _proto2.error = function error(value) {\n    onNotify(this._subscription, 'error', value);\n  };\n\n  _proto2.complete = function complete() {\n    onNotify(this._subscription, 'complete');\n  };\n\n  _createClass(SubscriptionObserver, [{\n    key: \"closed\",\n    get: function () {\n      return this._subscription._state === 'closed';\n    }\n  }]);\n\n  return SubscriptionObserver;\n}();\n\nvar Observable = /*#__PURE__*/function () {\n  function Observable(subscriber) {\n    if (!(this instanceof Observable)) throw new TypeError('Observable cannot be called as a function');\n    if (typeof subscriber !== 'function') throw new TypeError('Observable initializer must be a function');\n    this._subscriber = subscriber;\n  }\n\n  var _proto3 = Observable.prototype;\n\n  _proto3.subscribe = function subscribe(observer) {\n    if (typeof observer !== 'object' || observer === null) {\n      observer = {\n        next: observer,\n        error: arguments[1],\n        complete: arguments[2]\n      };\n    }\n\n    return new Subscription(observer, this._subscriber);\n  };\n\n  _proto3.forEach = function forEach(fn) {\n    var _this = this;\n\n    return new Promise(function (resolve, reject) {\n      if (typeof fn !== 'function') {\n        reject(new TypeError(fn + ' is not a function'));\n        return;\n      }\n\n      function done() {\n        subscription.unsubscribe();\n        resolve();\n      }\n\n      var subscription = _this.subscribe({\n        next: function (value) {\n          try {\n            fn(value, done);\n          } catch (e) {\n            reject(e);\n            subscription.unsubscribe();\n          }\n        },\n        error: reject,\n        complete: resolve\n      });\n    });\n  };\n\n  _proto3.map = function map(fn) {\n    var _this2 = this;\n\n    if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n    var C = getSpecies(this);\n    return new C(function (observer) {\n      return _this2.subscribe({\n        next: function (value) {\n          try {\n            value = fn(value);\n          } catch (e) {\n            return observer.error(e);\n          }\n\n          observer.next(value);\n        },\n        error: function (e) {\n          observer.error(e);\n        },\n        complete: function () {\n          observer.complete();\n        }\n      });\n    });\n  };\n\n  _proto3.filter = function filter(fn) {\n    var _this3 = this;\n\n    if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n    var C = getSpecies(this);\n    return new C(function (observer) {\n      return _this3.subscribe({\n        next: function (value) {\n          try {\n            if (!fn(value)) return;\n          } catch (e) {\n            return observer.error(e);\n          }\n\n          observer.next(value);\n        },\n        error: function (e) {\n          observer.error(e);\n        },\n        complete: function () {\n          observer.complete();\n        }\n      });\n    });\n  };\n\n  _proto3.reduce = function reduce(fn) {\n    var _this4 = this;\n\n    if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n    var C = getSpecies(this);\n    var hasSeed = arguments.length > 1;\n    var hasValue = false;\n    var seed = arguments[1];\n    var acc = seed;\n    return new C(function (observer) {\n      return _this4.subscribe({\n        next: function (value) {\n          var first = !hasValue;\n          hasValue = true;\n\n          if (!first || hasSeed) {\n            try {\n              acc = fn(acc, value);\n            } catch (e) {\n              return observer.error(e);\n            }\n          } else {\n            acc = value;\n          }\n        },\n        error: function (e) {\n          observer.error(e);\n        },\n        complete: function () {\n          if (!hasValue && !hasSeed) return observer.error(new TypeError('Cannot reduce an empty sequence'));\n          observer.next(acc);\n          observer.complete();\n        }\n      });\n    });\n  };\n\n  _proto3.concat = function concat() {\n    var _this5 = this;\n\n    for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {\n      sources[_key] = arguments[_key];\n    }\n\n    var C = getSpecies(this);\n    return new C(function (observer) {\n      var subscription;\n      var index = 0;\n\n      function startNext(next) {\n        subscription = next.subscribe({\n          next: function (v) {\n            observer.next(v);\n          },\n          error: function (e) {\n            observer.error(e);\n          },\n          complete: function () {\n            if (index === sources.length) {\n              subscription = undefined;\n              observer.complete();\n            } else {\n              startNext(C.from(sources[index++]));\n            }\n          }\n        });\n      }\n\n      startNext(_this5);\n      return function () {\n        if (subscription) {\n          subscription.unsubscribe();\n          subscription = undefined;\n        }\n      };\n    });\n  };\n\n  _proto3.flatMap = function flatMap(fn) {\n    var _this6 = this;\n\n    if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n    var C = getSpecies(this);\n    return new C(function (observer) {\n      var subscriptions = [];\n\n      var outer = _this6.subscribe({\n        next: function (value) {\n          if (fn) {\n            try {\n              value = fn(value);\n            } catch (e) {\n              return observer.error(e);\n            }\n          }\n\n          var inner = C.from(value).subscribe({\n            next: function (value) {\n              observer.next(value);\n            },\n            error: function (e) {\n              observer.error(e);\n            },\n            complete: function () {\n              var i = subscriptions.indexOf(inner);\n              if (i >= 0) subscriptions.splice(i, 1);\n              completeIfDone();\n            }\n          });\n          subscriptions.push(inner);\n        },\n        error: function (e) {\n          observer.error(e);\n        },\n        complete: function () {\n          completeIfDone();\n        }\n      });\n\n      function completeIfDone() {\n        if (outer.closed && subscriptions.length === 0) observer.complete();\n      }\n\n      return function () {\n        subscriptions.forEach(function (s) {\n          return s.unsubscribe();\n        });\n        outer.unsubscribe();\n      };\n    });\n  };\n\n  _proto3[SymbolObservable] = function () {\n    return this;\n  };\n\n  Observable.from = function from(x) {\n    var C = typeof this === 'function' ? this : Observable;\n    if (x == null) throw new TypeError(x + ' is not an object');\n    var method = getMethod(x, SymbolObservable);\n\n    if (method) {\n      var observable = method.call(x);\n      if (Object(observable) !== observable) throw new TypeError(observable + ' is not an object');\n      if (isObservable(observable) && observable.constructor === C) return observable;\n      return new C(function (observer) {\n        return observable.subscribe(observer);\n      });\n    }\n\n    if (hasSymbol('iterator')) {\n      method = getMethod(x, SymbolIterator);\n\n      if (method) {\n        return new C(function (observer) {\n          enqueue(function () {\n            if (observer.closed) return;\n\n            for (var _iterator = _createForOfIteratorHelperLoose(method.call(x)), _step; !(_step = _iterator()).done;) {\n              var item = _step.value;\n              observer.next(item);\n              if (observer.closed) return;\n            }\n\n            observer.complete();\n          });\n        });\n      }\n    }\n\n    if (Array.isArray(x)) {\n      return new C(function (observer) {\n        enqueue(function () {\n          if (observer.closed) return;\n\n          for (var i = 0; i < x.length; ++i) {\n            observer.next(x[i]);\n            if (observer.closed) return;\n          }\n\n          observer.complete();\n        });\n      });\n    }\n\n    throw new TypeError(x + ' is not observable');\n  };\n\n  Observable.of = function of() {\n    for (var _len2 = arguments.length, items = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      items[_key2] = arguments[_key2];\n    }\n\n    var C = typeof this === 'function' ? this : Observable;\n    return new C(function (observer) {\n      enqueue(function () {\n        if (observer.closed) return;\n\n        for (var i = 0; i < items.length; ++i) {\n          observer.next(items[i]);\n          if (observer.closed) return;\n        }\n\n        observer.complete();\n      });\n    });\n  };\n\n  _createClass(Observable, null, [{\n    key: SymbolSpecies,\n    get: function () {\n      return this;\n    }\n  }]);\n\n  return Observable;\n}();\n\nif (hasSymbols()) {\n  Object.defineProperty(Observable, Symbol('extensions'), {\n    value: {\n      symbol: SymbolObservable,\n      hostReportError: hostReportError\n    },\n    configurable: true\n  });\n}\n\nexport { Observable };\n", "export default function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\n\t\t\tif (typeof Symbol.for === 'function') {\n\t\t\t\t// This just needs to be something that won't trample other user's Symbol.for use\n\t\t\t\t// It also will guide people to the source of their issues, if this is problematic.\n\t\t\t\t// META: It's a resource locator!\n\t\t\t\tresult = Symbol.for('https://github.com/benlesh/symbol-observable');\n\t\t\t} else {\n\t\t\t\t// Symbol.for didn't exist! The best we can do at this point is a totally \n\t\t\t\t// unique symbol. Note that the string argument here is a descriptor, not\n\t\t\t\t// an identifier. This symbol is unique.\n\t\t\t\tresult = Symbol('https://github.com/benlesh/symbol-observable');\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tSymbol.observable = result;\n\t\t\t} catch (err) {\n\t\t\t\t// Do nothing. In some environments, users have frozen `Symbol` for security reasons,\n\t\t\t\t// if it is frozen assigning to it will throw. In this case, we don't care, because\n\t\t\t\t// they will need to use the returned value from the ponyfill.\n\t\t\t}\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n", "/* global window */\nimport ponyfill from './ponyfill.js';\n\nvar root;\n\nif (typeof self !== 'undefined') {\n  root = self;\n} else if (typeof window !== 'undefined') {\n  root = window;\n} else if (typeof global !== 'undefined') {\n  root = global;\n} else if (typeof module !== 'undefined') {\n  root = module;\n} else {\n  root = Function('return this')();\n}\n\nvar result = ponyfill(root);\nexport default result;\n", "import type {\n  Observer,\n  Subscription as ObservableSubscription,\n  Subscriber,\n} from \"zen-observable-ts\";\nimport { Observable } from \"zen-observable-ts\";\n\n// This simplified polyfill attempts to follow the ECMAScript Observable\n// proposal (https://github.com/zenparsing/es-observable)\nimport \"symbol-observable\";\n\nexport type { Observer, ObservableSubscription, Subscriber };\n\n// The zen-observable package defines Observable.prototype[Symbol.observable]\n// when Symbol is supported, but RxJS interop depends on also setting this fake\n// '@@observable' string as a polyfill for Symbol.observable.\nconst { prototype } = Observable;\nconst fakeObsSymbol = \"@@observable\" as keyof typeof prototype;\nif (!prototype[fakeObsSymbol]) {\n  // @ts-expect-error\n  prototype[fakeObsSymbol] = function () {\n    return this;\n  };\n}\n\nexport { Observable };\n", "const { toString } = Object.prototype;\n\n/**\n * Deeply clones a value to create a new instance.\n */\nexport function cloneDeep<T>(value: T): T {\n  return cloneDeepHelper(value);\n}\n\nfunction cloneDeepHelper<T>(val: T, seen?: Map<any, any>): T {\n  switch (toString.call(val)) {\n    case \"[object Array]\": {\n      seen = seen || new Map();\n      if (seen.has(val)) return seen.get(val);\n      const copy: T & any[] = (val as any).slice(0);\n      seen.set(val, copy);\n      copy.forEach(function (child, i) {\n        copy[i] = cloneDeepHelper(child, seen);\n      });\n      return copy;\n    }\n\n    case \"[object Object]\": {\n      seen = seen || new Map();\n      if (seen.has(val)) return seen.get(val);\n      // High fidelity polyfills of Object.create and Object.getPrototypeOf are\n      // possible in all JS environments, so we will assume they exist/work.\n      const copy = Object.create(Object.getPrototypeOf(val));\n      seen.set(val, copy);\n      Object.keys(val as T & Record<string, any>).forEach((key) => {\n        copy[key] = cloneDeepHelper((val as any)[key], seen);\n      });\n      return copy;\n    }\n\n    default:\n      return val;\n  }\n}\n", "import { isNonNullObject } from \"./objects.js\";\n\nfunction deepFreeze(value: any) {\n  const workSet = new Set([value]);\n  workSet.forEach((obj) => {\n    if (isNonNullObject(obj) && shallowFreeze(obj) === obj) {\n      Object.getOwnPropertyNames(obj).forEach((name) => {\n        if (isNonNullObject(obj[name])) workSet.add(obj[name]);\n      });\n    }\n  });\n  return value;\n}\n\nfunction shallowFreeze<T extends object>(obj: T): T | null {\n  if (__DEV__ && !Object.isFrozen(obj)) {\n    try {\n      Object.freeze(obj);\n    } catch (e) {\n      // Some types like Uint8Array and Node.js's Buffer cannot be frozen, but\n      // they all throw a TypeError when you try, so we re-throw any exceptions\n      // that are not TypeErrors, since that would be unexpected.\n      if (e instanceof TypeError) return null;\n      throw e;\n    }\n  }\n  return obj;\n}\n\nexport function maybeDeepFreeze<T>(obj: T): T {\n  if (__DEV__) {\n    deepFreeze(obj);\n  }\n  return obj;\n}\n", "import type { Observer } from \"./Observable.js\";\n\nexport function iterateObserversSafely<E, A>(\n  observers: Set<Observer<E>>,\n  method: keyof Observer<E>,\n  argument?: A\n) {\n  // In case observers is modified during iteration, we need to commit to the\n  // original elements, which also provides an opportunity to filter them down\n  // to just the observers with the given method.\n  const observersWithMethod: Observer<E>[] = [];\n  observers.forEach((obs) => obs[method] && observersWithMethod.push(obs));\n  observersWithMethod.forEach((obs) => (obs as any)[method](argument));\n}\n", "import type { Observer } from \"./Observable.js\";\nimport { Observable } from \"./Observable.js\";\n\n// Like Observable.prototype.map, except that the mapping function can\n// optionally return a Promise (or be async).\nexport function asyncMap<V, R>(\n  observable: Observable<V>,\n  mapFn: (value: V) => R | PromiseLike<R>,\n  catchFn?: (error: any) => R | PromiseLike<R>\n): Observable<R> {\n  return new Observable<R>((observer) => {\n    let promiseQueue = {\n      // Normally we would initialize promiseQueue to Promise.resolve(), but\n      // in this case, for backwards compatibility, we need to be careful to\n      // invoke the first callback synchronously.\n      then(callback: () => any) {\n        return new Promise((resolve) => resolve(callback()));\n      },\n    } as Promise<void>;\n\n    function makeCallback(\n      examiner: typeof mapFn | typeof catchFn,\n      key: \"next\" | \"error\"\n    ): (arg: any) => void {\n      return (arg) => {\n        if (examiner) {\n          const both = () =>\n            // If the observer is closed, we don't want to continue calling the\n            // mapping function - it's result will be swallowed anyways.\n            observer.closed ?\n              /* will be swallowed */ (0 as any)\n            : examiner(arg);\n\n          promiseQueue = promiseQueue.then(both, both).then(\n            (result) => observer.next(result),\n            (error) => observer.error(error)\n          );\n        } else {\n          observer[key](arg);\n        }\n      };\n    }\n\n    const handler: Observer<V> = {\n      next: makeCallback(mapFn, \"next\"),\n      error: makeCallback(catchFn, \"error\"),\n      complete() {\n        // no need to reassign `promiseQueue`, after `observer.complete`,\n        // the observer will be closed and short-circuit everything anyways\n        /*promiseQueue = */ promiseQueue.then(() => observer.complete());\n      },\n    };\n\n    const sub = observable.subscribe(handler);\n    return () => sub.unsubscribe();\n  });\n}\n", "import { Observable } from \"./Observable.js\";\nimport { canUseSymbol } from \"../common/canUse.js\";\n\n// Generic implementations of Observable.prototype methods like map and\n// filter need to know how to create a new Observable from an Observable\n// subclass (like Concast or ObservableQuery). Those methods assume\n// (perhaps unwisely?) that they can call the subtype's constructor with a\n// Subscriber function, even though the subclass constructor might expect\n// different parameters. Defining this static Symbol.species property on\n// the subclass is a hint to generic Observable code to use the default\n// constructor instead of trying to do `new Subclass(observer => ...)`.\nexport function fixObservableSubclass<\n  S extends new (...args: any[]) => Observable<any>,\n>(subclass: S): S {\n  function set(key: symbol | string) {\n    // Object.defineProperty is necessary because the Symbol.species\n    // property is a getter by default in modern JS environments, so we\n    // can't assign to it with a normal assignment expression.\n    Object.defineProperty(subclass, key, { value: Observable });\n  }\n  if (canUseSymbol && Symbol.species) {\n    set(Symbol.species);\n  }\n  // The \"@@species\" string is used as a fake Symbol.species value in some\n  // polyfill systems (including the SymbolSpecies variable used by\n  // zen-observable), so we should set it as well, to be safe.\n  set(\"@@species\");\n  return subclass;\n}\n", "import type {\n  Observer,\n  ObservableSubscription,\n  Subscriber,\n} from \"./Observable.js\";\nimport { Observable } from \"./Observable.js\";\nimport { iterateObserversSafely } from \"./iteration.js\";\nimport { fixObservableSubclass } from \"./subclassing.js\";\n\ntype MaybeAsync<T> = T | PromiseLike<T>;\n\nfunction isPromiseLike<T>(value: MaybeAsync<T>): value is PromiseLike<T> {\n  return value && typeof (value as any).then === \"function\";\n}\n\n// Any individual Source<T> can be an Observable<T> or a promise for one.\ntype Source<T> = MaybeAsync<Observable<T>>;\n\nexport type ConcastSourcesIterable<T> = Iterable<Source<T>>;\nexport type ConcastSourcesArray<T> = Array<Source<T>>;\n\n// A Concast<T> observable concatenates the given sources into a single\n// non-overlapping sequence of Ts, automatically unwrapping any promises,\n// and broadcasts the T elements of that sequence to any number of\n// subscribers, all without creating a bunch of intermediary Observable\n// wrapper objects.\n//\n// Even though any number of observers can subscribe to the Concast, each\n// source observable is guaranteed to receive at most one subscribe call,\n// and the results are multicast to all observers.\n//\n// In addition to broadcasting every next/error message to this.observers,\n// the Concast stores the most recent message using this.latest, so any\n// new observers can immediately receive the latest message, even if it\n// was originally delivered in the past. This behavior means we can assume\n// every active observer in this.observers has received the same most\n// recent message.\n//\n// With the exception of this.latest replay, a Concast is a \"hot\"\n// observable in the sense that it does not replay past results from the\n// beginning of time for each new observer.\n//\n// Could we have used some existing RxJS class instead? Concast<T> is\n// similar to a BehaviorSubject<T>, because it is multicast and redelivers\n// the latest next/error message to new subscribers. Unlike Subject<T>,\n// Concast<T> does not expose an Observer<T> interface (this.handlers is\n// intentionally private), since Concast<T> gets its inputs from the\n// concatenated sources. If we ever switch to RxJS, there may be some\n// value in reusing their code, but for now we use zen-observable, which\n// does not contain any Subject implementations.\nexport class Concast<T> extends Observable<T> {\n  // Active observers receiving broadcast messages. Thanks to this.latest,\n  // we can assume all observers in this Set have received the same most\n  // recent message, though possibly at different times in the past.\n  private observers = new Set<Observer<T>>();\n\n  // This property starts off undefined to indicate the initial\n  // subscription has not yet begun, then points to each source\n  // subscription in turn, and finally becomes null after the sources have\n  // been exhausted. After that, it stays null.\n  private sub?: ObservableSubscription | null;\n\n  // Not only can the individual elements of the iterable be promises, but\n  // also the iterable itself can be wrapped in a promise.\n  constructor(sources: MaybeAsync<ConcastSourcesIterable<T>> | Subscriber<T>) {\n    super((observer) => {\n      this.addObserver(observer);\n      return () => this.removeObserver(observer);\n    });\n\n    // Suppress rejection warnings for this.promise, since it's perfectly\n    // acceptable to pay no attention to this.promise if you're consuming\n    // the results through the normal observable API.\n    this.promise.catch((_) => {});\n\n    // If someone accidentally tries to create a Concast using a subscriber\n    // function, recover by creating an Observable from that subscriber and\n    // using it as the source.\n    if (typeof sources === \"function\") {\n      sources = [new Observable(sources)];\n    }\n\n    if (isPromiseLike(sources)) {\n      sources.then((iterable) => this.start(iterable), this.handlers.error);\n    } else {\n      this.start(sources);\n    }\n  }\n\n  // A consumable array of source observables, incrementally consumed each time\n  // this.handlers.complete is called. This private field is not initialized\n  // until the concast.start method is called, which can happen asynchronously\n  // if a Promise is passed to the Concast constructor, so undefined is a\n  // possible value for this.sources before concast.start is called.\n  private sources: Source<T>[] | undefined;\n\n  private start(sources: ConcastSourcesIterable<T>) {\n    if (this.sub !== void 0) return;\n\n    // In practice, sources is most often simply an Array of observables.\n    // TODO Consider using sources[Symbol.iterator]() to take advantage\n    // of the laziness of non-Array iterables.\n    this.sources = Array.from(sources);\n\n    // Calling this.handlers.complete() kicks off consumption of the first\n    // source observable. It's tempting to do this step lazily in\n    // addObserver, but this.promise can be accessed without calling\n    // addObserver, so consumption needs to begin eagerly.\n    this.handlers.complete();\n  }\n\n  private deliverLastMessage(observer: Observer<T>) {\n    if (this.latest) {\n      const nextOrError = this.latest[0];\n      const method = observer[nextOrError];\n      if (method) {\n        method.call(observer, this.latest[1]);\n      }\n      // If the subscription is already closed, and the last message was\n      // a 'next' message, simulate delivery of the final 'complete'\n      // message again.\n      if (this.sub === null && nextOrError === \"next\" && observer.complete) {\n        observer.complete();\n      }\n    }\n  }\n\n  public addObserver(observer: Observer<T>) {\n    if (!this.observers.has(observer)) {\n      // Immediately deliver the most recent message, so we can always\n      // be sure all observers have the latest information.\n      this.deliverLastMessage(observer);\n      this.observers.add(observer);\n    }\n  }\n\n  public removeObserver(observer: Observer<T>) {\n    if (this.observers.delete(observer) && this.observers.size < 1) {\n      // In case there are still any listeners in this.nextResultListeners, and\n      // no error or completion has been broadcast yet, make sure those\n      // observers have a chance to run and then remove themselves from\n      // this.observers.\n      this.handlers.complete();\n    }\n  }\n\n  // Any Concast object can be trivially converted to a Promise, without\n  // having to create a new wrapper Observable. This promise provides an\n  // easy way to observe the final state of the Concast.\n  private resolve!: (result?: T | PromiseLike<T>) => void;\n  private reject!: (reason: any) => void;\n  public readonly promise = new Promise<T | undefined>((resolve, reject) => {\n    this.resolve = resolve;\n    this.reject = reject;\n  });\n\n  // Name and argument of the most recently invoked observer method, used\n  // to deliver latest results immediately to new observers.\n  private latest?: [\"next\", T] | [\"error\", any];\n\n  // Bound handler functions that can be reused for every internal\n  // subscription.\n  private handlers = {\n    next: (result: T) => {\n      if (this.sub !== null) {\n        this.latest = [\"next\", result];\n        this.notify(\"next\", result);\n        iterateObserversSafely(this.observers, \"next\", result);\n      }\n    },\n\n    error: (error: any) => {\n      const { sub } = this;\n      if (sub !== null) {\n        // Delay unsubscribing from the underlying subscription slightly,\n        // so that immediately subscribing another observer can keep the\n        // subscription active.\n        if (sub) setTimeout(() => sub.unsubscribe());\n        this.sub = null;\n        this.latest = [\"error\", error];\n        this.reject(error);\n        this.notify(\"error\", error);\n        iterateObserversSafely(this.observers, \"error\", error);\n      }\n    },\n\n    complete: () => {\n      const { sub, sources = [] } = this;\n      if (sub !== null) {\n        // If complete is called before concast.start, this.sources may be\n        // undefined, so we use a default value of [] for sources. That works\n        // here because it falls into the if (!value) {...} block, which\n        // appropriately terminates the Concast, even if this.sources might\n        // eventually have been initialized to a non-empty array.\n        const value = sources.shift();\n        if (!value) {\n          if (sub) setTimeout(() => sub.unsubscribe());\n          this.sub = null;\n          if (this.latest && this.latest[0] === \"next\") {\n            this.resolve(this.latest[1]);\n          } else {\n            this.resolve();\n          }\n          this.notify(\"complete\");\n          // We do not store this.latest = [\"complete\"], because doing so\n          // discards useful information about the previous next (or\n          // error) message. Instead, if new observers subscribe after\n          // this Concast has completed, they will receive the final\n          // 'next' message (unless there was an error) immediately\n          // followed by a 'complete' message (see addObserver).\n          iterateObserversSafely(this.observers, \"complete\");\n        } else if (isPromiseLike(value)) {\n          value.then(\n            (obs) => (this.sub = obs.subscribe(this.handlers)),\n            this.handlers.error\n          );\n        } else {\n          this.sub = value.subscribe(this.handlers);\n        }\n      }\n    },\n  };\n\n  private nextResultListeners = new Set<NextResultListener>();\n\n  private notify(\n    method: Parameters<NextResultListener>[0],\n    arg?: Parameters<NextResultListener>[1]\n  ) {\n    const { nextResultListeners } = this;\n    if (nextResultListeners.size) {\n      // Replacing this.nextResultListeners first ensures it does not grow while\n      // we are iterating over it, potentially leading to infinite loops.\n      this.nextResultListeners = new Set();\n      nextResultListeners.forEach((listener) => listener(method, arg));\n    }\n  }\n\n  // We need a way to run callbacks just *before* the next result (or error or\n  // completion) is delivered by this Concast, so we can be sure any code that\n  // runs as a result of delivering that result/error observes the effects of\n  // running the callback(s). It was tempting to reuse the Observer type instead\n  // of introducing NextResultListener, but that messes with the sizing and\n  // maintenance of this.observers, and ends up being more code overall.\n  beforeNext(callback: NextResultListener) {\n    let called = false;\n    this.nextResultListeners.add((method, arg) => {\n      if (!called) {\n        called = true;\n        callback(method, arg);\n      }\n    });\n  }\n\n  // A public way to abort observation and broadcast.\n  public cancel = (reason: any) => {\n    this.reject(reason);\n    this.sources = [];\n    this.handlers.complete();\n  };\n}\n\ntype NextResultListener = (\n  method: \"next\" | \"error\" | \"complete\",\n  arg?: any\n) => any;\n\n// Necessary because the Concast constructor has a different signature\n// than the Observable constructor.\nfixObservableSubclass(Concast);\n", "import type {\n  ExecutionPatchIncrementalResult,\n  ExecutionPatchInitialResult,\n  ExecutionPatchResult,\n  ApolloPayloadResult,\n  FetchResult,\n} from \"../../link/core/index.js\";\nimport { isNonNullObject } from \"./objects.js\";\nimport { isNonEmptyArray } from \"./arrays.js\";\nimport { DeepMerger } from \"./mergeDeep.js\";\n\nexport function isExecutionPatchIncrementalResult<T>(\n  value: FetchResult<T>\n): value is ExecutionPatchIncrementalResult {\n  return \"incremental\" in value;\n}\n\nexport function isExecutionPatchInitialResult<T>(\n  value: FetchResult<T>\n): value is ExecutionPatchInitialResult<T> {\n  return \"hasNext\" in value && \"data\" in value;\n}\n\nexport function isExecutionPatchResult<T>(\n  value: FetchResult<T>\n): value is ExecutionPatchResult<T> {\n  return (\n    isExecutionPatchIncrementalResult(value) ||\n    isExecutionPatchInitialResult(value)\n  );\n}\n\n// This function detects an Apollo payload result before it is transformed\n// into a FetchResult via HttpLink; it cannot detect an ApolloPayloadResult\n// once it leaves the link chain.\nexport function isApolloPayloadResult(\n  value: unknown\n): value is ApolloPayloadResult {\n  return isNonNullObject(value) && \"payload\" in value;\n}\n\nexport function mergeIncrementalData<TData extends object>(\n  prevResult: TData,\n  result: ExecutionPatchResult<TData>\n) {\n  let mergedData = prevResult;\n  const merger = new DeepMerger();\n  if (\n    isExecutionPatchIncrementalResult(result) &&\n    isNonEmptyArray(result.incremental)\n  ) {\n    result.incremental.forEach(({ data, path }) => {\n      for (let i = path.length - 1; i >= 0; --i) {\n        const key = path[i];\n        const isNumericKey = !isNaN(+key);\n        const parent: Record<string | number, any> = isNumericKey ? [] : {};\n        parent[key] = data;\n        data = parent as typeof data;\n      }\n      mergedData = merger.merge(mergedData, data);\n    });\n  }\n  return mergedData as TData;\n}\n", "import type { FetchResult } from \"../../link/core/index.js\";\nimport { isNonEmptyArray } from \"./arrays.js\";\nimport { isExecutionPatchIncrementalResult } from \"./incrementalResult.js\";\n\nexport function graphQLResultHasError<T>(result: FetchResult<T>): boolean {\n  const errors = getGraphQLErrorsFromResult(result);\n  return isNonEmptyArray(errors);\n}\n\nexport function getGraphQLErrorsFromResult<T>(result: FetchResult<T>) {\n  const graphQLErrors =\n    isNonEmptyArray(result.errors) ? result.errors.slice(0) : [];\n\n  if (\n    isExecutionPatchIncrementalResult(result) &&\n    isNonEmptyArray(result.incremental)\n  ) {\n    result.incremental.forEach((incrementalResult) => {\n      if (incrementalResult.errors) {\n        graphQLErrors.push(...incrementalResult.errors);\n      }\n    });\n  }\n  return graphQLErrors;\n}\n", "import type { TupleToIntersection } from \"./mergeDeep.js\";\n\n/**\n * Merges the provided objects shallowly and removes\n * all properties with an `undefined` value\n */\nexport function compact<TArgs extends any[]>(\n  ...objects: TArgs\n): TupleToIntersection<TArgs> {\n  const result = Object.create(null);\n\n  objects.forEach((obj) => {\n    if (!obj) return;\n    Object.keys(obj).forEach((key) => {\n      const value = (obj as any)[key];\n      if (value !== void 0) {\n        result[key] = value;\n      }\n    });\n  });\n\n  return result;\n}\n", "import type {\n  QueryOptions,\n  WatchQueryOptions,\n  MutationOptions,\n  OperationVariables,\n} from \"../../core/index.js\";\n\nimport { compact } from \"./compact.js\";\n\ntype OptionsUnion<TData, TVariables extends OperationVariables, TContext> =\n  | WatchQueryOptions<TVariables, TData>\n  | QueryOptions<TVariables, TData>\n  | MutationOptions<TData, TVariables, TContext, any>;\n\nexport function mergeOptions<\n  TDefaultOptions extends Partial<OptionsUnion<any, any, any>>,\n  TOptions extends TDefaultOptions,\n>(\n  defaults: TDefaultOptions | Partial<TDefaultOptions> | undefined,\n  options: TOptions | Partial<TOptions>\n): TOptions & TDefaultOptions {\n  return compact(\n    defaults,\n    options,\n    options.variables && {\n      variables: compact({\n        ...(defaults && defaults.variables),\n        ...options.variables,\n      }),\n    }\n  );\n}\n", "import { Observable } from \"../../utilities/index.js\";\n\nexport function fromError<T>(errorValue: any): Observable<T> {\n  return new Observable<T>((observer) => {\n    observer.error(errorValue);\n  });\n}\n", "export type ServerError = Error & {\n  response: Response;\n  result: Record<string, any> | string;\n  statusCode: number;\n};\n\nexport const throwServerError = (\n  response: Response,\n  result: any,\n  message: string\n) => {\n  const error = new Error(message) as ServerError;\n  error.name = \"ServerError\";\n  error.response = response;\n  error.statusCode = response.status;\n  error.result = result;\n  throw error;\n};\n", "import { newInvariantError } from \"../../utilities/globals/index.js\";\nimport type { GraphQLRequest } from \"../core/index.js\";\n\nexport function validateOperation(operation: GraphQLRequest): GraphQLRequest {\n  const OPERATION_FIELDS = [\n    \"query\",\n    \"operationName\",\n    \"variables\",\n    \"extensions\",\n    \"context\",\n  ];\n  for (let key of Object.keys(operation)) {\n    if (OPERATION_FIELDS.indexOf(key) < 0) {\n      throw newInvariantError(`illegal argument: %s`, key);\n    }\n  }\n\n  return operation;\n}\n", "import type { GraphQLRequest, Operation } from \"../core/index.js\";\n\nexport function createOperation(\n  starting: any,\n  operation: GraphQLRequest\n): Operation {\n  let context = { ...starting };\n  const setContext: Operation[\"setContext\"] = (next) => {\n    if (typeof next === \"function\") {\n      context = { ...context, ...next(context) };\n    } else {\n      context = { ...context, ...next };\n    }\n  };\n  const getContext: Operation[\"getContext\"] = () => ({ ...context });\n\n  Object.defineProperty(operation, \"setContext\", {\n    enumerable: false,\n    value: setContext,\n  });\n\n  Object.defineProperty(operation, \"getContext\", {\n    enumerable: false,\n    value: getContext,\n  });\n\n  return operation as Operation;\n}\n", "import type { GraphQLRequest, Operation } from \"../core/index.js\";\nimport { getOperationName } from \"../../utilities/index.js\";\n\nexport function transformOperation(operation: GraphQLRequest): GraphQLRequest {\n  const transformedOperation: GraphQLRequest = {\n    variables: operation.variables || {},\n    extensions: operation.extensions || {},\n    operationName: operation.operationName,\n    query: operation.query,\n  };\n\n  // Best guess at an operation name\n  if (!transformedOperation.operationName) {\n    transformedOperation.operationName =\n      typeof transformedOperation.query !== \"string\" ?\n        getOperationName(transformedOperation.query) || undefined\n      : \"\";\n  }\n\n  return transformedOperation as Operation;\n}\n", "import type { VariableDefinitionNode, DocumentNode } from \"graphql\";\nimport { visit } from \"graphql\";\n\nexport function filterOperationVariables(\n  variables: Record<string, any>,\n  query: DocumentNode\n) {\n  const result = { ...variables };\n  const unusedNames = new Set(Object.keys(variables));\n  visit(query, {\n    Variable(node, _key, parent) {\n      // A variable type definition at the top level of a query is not\n      // enough to silence server-side errors about the variable being\n      // unused, so variable definitions do not count as usage.\n      // https://spec.graphql.org/draft/#sec-All-Variables-Used\n      if (\n        parent &&\n        (parent as VariableDefinitionNode).kind !== \"VariableDefinition\"\n      ) {\n        unusedNames.delete(node.name.value);\n      }\n    },\n  });\n  unusedNames.forEach((name) => {\n    delete result![name];\n  });\n  return result;\n}\n", "import { newInvariantError, invariant } from \"../../utilities/globals/index.js\";\n\nimport type { Observer } from \"../../utilities/index.js\";\nimport { Observable } from \"../../utilities/index.js\";\nimport type {\n  NextLink,\n  Operation,\n  RequestHandler,\n  FetchResult,\n  GraphQLRequest,\n} from \"./types.js\";\nimport {\n  validateOperation,\n  createOperation,\n  transformOperation,\n} from \"../utils/index.js\";\n\nfunction passthrough(op: Operation, forward: NextLink) {\n  return (forward ? forward(op) : Observable.of()) as Observable<FetchResult>;\n}\n\nfunction toLink(handler: RequestHandler | ApolloLink) {\n  return typeof handler === \"function\" ? new ApolloLink(handler) : handler;\n}\n\nfunction isTerminating(link: ApolloLink): boolean {\n  return link.request.length <= 1;\n}\n\nexport class ApolloLink {\n  public static empty(): ApolloLink {\n    return new ApolloLink(() => Observable.of());\n  }\n\n  public static from(links: (ApolloLink | RequestHandler)[]): ApolloLink {\n    if (links.length === 0) return ApolloLink.empty();\n    return links.map(toLink).reduce((x, y) => x.concat(y)) as ApolloLink;\n  }\n\n  public static split(\n    test: (op: Operation) => boolean,\n    left: ApolloLink | RequestHandler,\n    right?: ApolloLink | RequestHandler\n  ): ApolloLink {\n    const leftLink = toLink(left);\n    const rightLink = toLink(right || new ApolloLink(passthrough));\n\n    let ret: ApolloLink;\n    if (isTerminating(leftLink) && isTerminating(rightLink)) {\n      ret = new ApolloLink((operation) => {\n        return test(operation) ?\n            leftLink.request(operation) || Observable.of()\n          : rightLink.request(operation) || Observable.of();\n      });\n    } else {\n      ret = new ApolloLink((operation, forward) => {\n        return test(operation) ?\n            leftLink.request(operation, forward) || Observable.of()\n          : rightLink.request(operation, forward) || Observable.of();\n      });\n    }\n    return Object.assign(ret, { left: leftLink, right: rightLink });\n  }\n\n  public static execute(\n    link: ApolloLink,\n    operation: GraphQLRequest\n  ): Observable<FetchResult> {\n    return (\n      link.request(\n        createOperation(\n          operation.context,\n          transformOperation(validateOperation(operation))\n        )\n      ) || Observable.of()\n    );\n  }\n\n  public static concat(\n    first: ApolloLink | RequestHandler,\n    second: ApolloLink | RequestHandler\n  ) {\n    const firstLink = toLink(first);\n    if (isTerminating(firstLink)) {\n      invariant.warn(\n        `You are calling concat on a terminating link, which will have no effect %o`,\n        firstLink\n      );\n      return firstLink;\n    }\n    const nextLink = toLink(second);\n\n    let ret: ApolloLink;\n    if (isTerminating(nextLink)) {\n      ret = new ApolloLink(\n        (operation) =>\n          firstLink.request(\n            operation,\n            (op) => nextLink.request(op) || Observable.of()\n          ) || Observable.of()\n      );\n    } else {\n      ret = new ApolloLink((operation, forward) => {\n        return (\n          firstLink.request(operation, (op) => {\n            return nextLink.request(op, forward) || Observable.of();\n          }) || Observable.of()\n        );\n      });\n    }\n    return Object.assign(ret, { left: firstLink, right: nextLink });\n  }\n\n  constructor(request?: RequestHandler) {\n    if (request) this.request = request;\n  }\n\n  public split(\n    test: (op: Operation) => boolean,\n    left: ApolloLink | RequestHandler,\n    right?: ApolloLink | RequestHandler\n  ): ApolloLink {\n    return this.concat(\n      ApolloLink.split(test, left, right || new ApolloLink(passthrough))\n    );\n  }\n\n  public concat(next: ApolloLink | RequestHandler): ApolloLink {\n    return ApolloLink.concat(this, next);\n  }\n\n  public request(\n    operation: Operation,\n    forward?: NextLink\n  ): Observable<FetchResult> | null {\n    throw newInvariantError(\"request is not implemented\");\n  }\n\n  protected onError(\n    error: any,\n    observer?: Observer<FetchResult>\n  ): false | void {\n    if (observer && observer.error) {\n      observer.error(error);\n      // Returning false indicates that observer.error does not need to be\n      // called again, since it was already called (on the previous line).\n      // Calling observer.error again would not cause any real problems,\n      // since only the first call matters, but custom onError functions\n      // might have other reasons for wanting to prevent the default\n      // behavior by returning false.\n      return false;\n    }\n    // Throw errors will be passed to observer.error.\n    throw error;\n  }\n\n  public setOnError(fn: ApolloLink[\"onError\"]): this {\n    this.onError = fn;\n    return this;\n  }\n\n  /**\n   * @internal\n   * Used to iterate through all links that are concatenations or `split` links.\n   */\n  readonly left?: ApolloLink;\n  /**\n   * @internal\n   * Used to iterate through all links that are concatenations or `split` links.\n   */\n  readonly right?: ApolloLink;\n\n  /**\n   * @internal\n   * Can be provided by a link that has an internal cache to report it's memory details.\n   */\n  getMemoryInternals?: () => unknown;\n}\n", "import { ApolloLink } from \"./ApolloLink.js\";\n\nexport const execute = ApolloLink.execute;\n", "/**\n * Original source:\n * https://github.com/kmalakoff/response-iterator/blob/master/src/iterators/async.ts\n */\n\nexport default function asyncIterator<T>(\n  source: AsyncIterableIterator<T>\n): AsyncIterableIterator<T> {\n  const iterator = source[Symbol.asyncIterator]();\n  return {\n    next(): Promise<IteratorResult<T, boolean>> {\n      return iterator.next();\n    },\n    [Symbol.asyncIterator](): AsyncIterableIterator<T> {\n      return this;\n    },\n  };\n}\n", "/**\n * Original source:\n * https://github.com/kmalakoff/response-iterator/blob/master/src/iterators/nodeStream.ts\n */\n\nimport type { Readable as NodeReadableStream } from \"stream\";\nimport { canUseAsyncIteratorSymbol } from \"../../../utilities/index.js\";\n\ninterface NodeStreamIterator<T> {\n  next(): Promise<IteratorResult<T, boolean | undefined>>;\n  [Symbol.asyncIterator]?(): AsyncIterator<T>;\n}\n\nexport default function nodeStreamIterator<T>(\n  stream: NodeReadableStream\n): AsyncIterableIterator<T> {\n  let cleanup: (() => void) | null = null;\n  let error: Error | null = null;\n  let done = false;\n  const data: unknown[] = [];\n\n  const waiting: [\n    (\n      value:\n        | IteratorResult<T, boolean | undefined>\n        | PromiseLike<IteratorResult<T, boolean | undefined>>\n    ) => void,\n    (reason?: any) => void,\n  ][] = [];\n\n  function onData(chunk: any) {\n    if (error) return;\n    if (waiting.length) {\n      const shiftedArr = waiting.shift();\n      if (Array.isArray(shiftedArr) && shiftedArr[0]) {\n        return shiftedArr[0]({ value: chunk, done: false });\n      }\n    }\n    data.push(chunk);\n  }\n  function onError(err: Error) {\n    error = err;\n    const all = waiting.slice();\n    all.forEach(function (pair) {\n      pair[1](err);\n    });\n    !cleanup || cleanup();\n  }\n  function onEnd() {\n    done = true;\n    const all = waiting.slice();\n    all.forEach(function (pair) {\n      pair[0]({ value: undefined, done: true });\n    });\n    !cleanup || cleanup();\n  }\n\n  cleanup = function () {\n    cleanup = null;\n    stream.removeListener(\"data\", onData);\n    stream.removeListener(\"error\", onError);\n    stream.removeListener(\"end\", onEnd);\n    stream.removeListener(\"finish\", onEnd);\n    stream.removeListener(\"close\", onEnd);\n  };\n  stream.on(\"data\", onData);\n  stream.on(\"error\", onError);\n  stream.on(\"end\", onEnd);\n  stream.on(\"finish\", onEnd);\n  stream.on(\"close\", onEnd);\n\n  function getNext(): Promise<IteratorResult<T, boolean | undefined>> {\n    return new Promise(function (resolve, reject) {\n      if (error) return reject(error);\n      if (data.length)\n        return resolve({ value: data.shift() as T, done: false });\n      if (done) return resolve({ value: undefined, done: true });\n      waiting.push([resolve, reject]);\n    });\n  }\n\n  const iterator: NodeStreamIterator<T> = {\n    next(): Promise<IteratorResult<T, boolean | undefined>> {\n      return getNext();\n    },\n  };\n\n  if (canUseAsyncIteratorSymbol) {\n    iterator[Symbol.asyncIterator] = function (): AsyncIterator<T> {\n      return this;\n    };\n  }\n\n  return iterator as AsyncIterableIterator<T>;\n}\n", "/**\n * Original source:\n * https://github.com/kmalakoff/response-iterator/blob/master/src/iterators/promise.ts\n */\n\nimport { canUseAsyncIteratorSymbol } from \"../../../utilities/index.js\";\n\ninterface PromiseIterator<T> {\n  next(): Promise<IteratorResult<T, ArrayBuffer | undefined>>;\n  [Symbol.asyncIterator]?(): AsyncIterator<T>;\n}\n\nexport default function promiseIterator<T = ArrayBuffer>(\n  promise: Promise<ArrayBuffer>\n): AsyncIterableIterator<T> {\n  let resolved = false;\n\n  const iterator: PromiseIterator<T> = {\n    next(): Promise<IteratorResult<T, ArrayBuffer | undefined>> {\n      if (resolved)\n        return Promise.resolve({\n          value: undefined,\n          done: true,\n        });\n      resolved = true;\n      return new Promise(function (resolve, reject) {\n        promise\n          .then(function (value) {\n            resolve({ value: value as unknown as T, done: false });\n          })\n          .catch(reject);\n      });\n    },\n  };\n\n  if (canUseAsyncIteratorSymbol) {\n    iterator[Symbol.asyncIterator] = function (): AsyncIterator<T> {\n      return this;\n    };\n  }\n\n  return iterator as AsyncIterableIterator<T>;\n}\n", "/**\n * Original source:\n * https://github.com/kmalakoff/response-iterator/blob/master/src/iterators/reader.ts\n */\n\nimport { canUseAsyncIteratorSymbol } from \"../../../utilities/index.js\";\n\ninterface ReaderIterator<T> {\n  next(): Promise<IteratorResult<T, T | undefined>>;\n  [Symbol.asyncIterator]?(): AsyncIterator<T>;\n}\n\nexport default function readerIterator<T>(\n  reader: ReadableStreamDefaultReader<T>\n): AsyncIterableIterator<T> {\n  const iterator: ReaderIterator<T> = {\n    next() {\n      return reader.read() as Promise<\n        | ReadableStreamReadValueResult<T>\n        // DoneResult has `value` optional, which doesn't comply with an\n        // `IteratorResult`, so we assert it to `T | undefined` instead\n        | Required<ReadableStreamReadDoneResult<T | undefined>>\n      >;\n    },\n  };\n\n  if (canUseAsyncIteratorSymbol) {\n    iterator[Symbol.asyncIterator] = function (): AsyncIterator<\n      T,\n      T | undefined\n    > {\n      return this;\n    };\n  }\n\n  return iterator as AsyncIterableIterator<T>;\n}\n", "/**\n * Original source:\n * https://github.com/kmalakoff/response-iterator/blob/master/src/index.ts\n */\n\nimport type { Response as NodeResponse } from \"node-fetch\";\nimport type { Readable as NodeReadableStream } from \"stream\";\nimport { canUseAsyncIteratorSymbol } from \"../../utilities/index.js\";\n\nimport asyncIterator from \"./iterators/async.js\";\nimport nodeStreamIterator from \"./iterators/nodeStream.js\";\nimport promiseIterator from \"./iterators/promise.js\";\nimport readerIterator from \"./iterators/reader.js\";\n\nfunction isNodeResponse(value: any): value is NodeResponse {\n  return !!(value as NodeResponse).body;\n}\n\nfunction isReadableStream(value: any): value is ReadableStream<any> {\n  return !!(value as ReadableStream<any>).getReader;\n}\n\nfunction isAsyncIterableIterator(\n  value: any\n): value is AsyncIterableIterator<any> {\n  return !!(\n    canUseAsyncIteratorSymbol &&\n    (value as AsyncIterableIterator<any>)[Symbol.asyncIterator]\n  );\n}\n\nfunction isStreamableBlob(value: any): value is Blob {\n  return !!(value as Blob).stream;\n}\n\nfunction isBlob(value: any): value is Blob {\n  return !!(value as Blob).arrayBuffer;\n}\n\nfunction isNodeReadableStream(value: any): value is NodeReadableStream {\n  return !!(value as NodeReadableStream).pipe;\n}\n\nexport function responseIterator<T>(\n  response: Response | NodeResponse\n): AsyncIterableIterator<T> {\n  let body: unknown = response;\n\n  if (isNodeResponse(response)) body = response.body;\n\n  if (isAsyncIterableIterator(body)) return asyncIterator<T>(body);\n\n  if (isReadableStream(body)) return readerIterator<T>(body.getReader());\n\n  // this errors without casting to ReadableStream<T>\n  // because Blob.stream() returns a NodeJS ReadableStream\n  if (isStreamableBlob(body)) {\n    return readerIterator<T>(\n      (body.stream() as unknown as ReadableStream<T>).getReader()\n    );\n  }\n\n  if (isBlob(body)) return promiseIterator<T>(body.arrayBuffer());\n\n  if (isNodeReadableStream(body)) return nodeStreamIterator<T>(body);\n\n  throw new Error(\n    \"Unknown body type for responseIterator. Please pass a streamable response.\"\n  );\n}\n", "import \"../utilities/globals/index.js\";\n\nimport type { GraphQLError, GraphQLErrorExtensions } from \"graphql\";\n\nimport { isNonNullObject } from \"../utilities/index.js\";\nimport type { ServerParseError } from \"../link/http/index.js\";\nimport type { ServerError } from \"../link/utils/index.js\";\nimport type { FetchResult } from \"../link/core/index.js\";\n\n// This Symbol allows us to pass transport-specific errors from the link chain\n// into QueryManager/client internals without risking a naming collision within\n// extensions (which implementers can use as they see fit).\nexport const PROTOCOL_ERRORS_SYMBOL: unique symbol = Symbol();\n\ntype FetchResultWithSymbolExtensions<T> = FetchResult<T> & {\n  extensions: Record<string | symbol, any>;\n};\n\nexport interface ApolloErrorOptions {\n  graphQLErrors?: ReadonlyArray<GraphQLError>;\n  protocolErrors?: ReadonlyArray<{\n    message: string;\n    extensions?: GraphQLErrorExtensions[];\n  }>;\n  clientErrors?: ReadonlyArray<Error>;\n  networkError?: Error | ServerParseError | ServerError | null;\n  errorMessage?: string;\n  extraInfo?: any;\n}\n\nexport function graphQLResultHasProtocolErrors<T>(\n  result: FetchResult<T>\n): result is FetchResultWithSymbolExtensions<T> {\n  if (result.extensions) {\n    return Array.isArray(\n      (result as FetchResultWithSymbolExtensions<T>).extensions[\n        PROTOCOL_ERRORS_SYMBOL\n      ]\n    );\n  }\n  return false;\n}\n\nexport function isApolloError(err: Error): err is ApolloError {\n  return err.hasOwnProperty(\"graphQLErrors\");\n}\n\n// Sets the error message on this error according to the\n// the GraphQL and network errors that are present.\n// If the error message has already been set through the\n// constructor or otherwise, this function is a nop.\nconst generateErrorMessage = (err: ApolloError) => {\n  const errors = [\n    ...err.graphQLErrors,\n    ...err.clientErrors,\n    ...err.protocolErrors,\n  ];\n  if (err.networkError) errors.push(err.networkError);\n  return (\n    errors\n      // The rest of the code sometimes unsafely types non-Error objects as GraphQLErrors\n      .map(\n        (err) =>\n          (isNonNullObject(err) && err.message) || \"Error message not found.\"\n      )\n      .join(\"\\n\")\n  );\n};\n\nexport type GraphQLErrors = ReadonlyArray<GraphQLError>;\n\nexport type NetworkError = Error | ServerParseError | ServerError | null;\n\nexport class ApolloError extends Error {\n  public name: string;\n  public message: string;\n  public graphQLErrors: GraphQLErrors;\n  public protocolErrors: ReadonlyArray<{\n    message: string;\n    extensions?: GraphQLErrorExtensions[];\n  }>;\n  public clientErrors: ReadonlyArray<Error>;\n  public networkError: Error | ServerParseError | ServerError | null;\n\n  // An object that can be used to provide some additional information\n  // about an error, e.g. specifying the type of error this is. Used\n  // internally within Apollo Client.\n  public extraInfo: any;\n\n  // Constructs an instance of ApolloError given a GraphQLError\n  // or a network error. Note that one of these has to be a valid\n  // value or the constructed error will be meaningless.\n  constructor({\n    graphQLErrors,\n    protocolErrors,\n    clientErrors,\n    networkError,\n    errorMessage,\n    extraInfo,\n  }: ApolloErrorOptions) {\n    super(errorMessage);\n    this.name = \"ApolloError\";\n    this.graphQLErrors = graphQLErrors || [];\n    this.protocolErrors = protocolErrors || [];\n    this.clientErrors = clientErrors || [];\n    this.networkError = networkError || null;\n    this.message = errorMessage || generateErrorMessage(this);\n    this.extraInfo = extraInfo;\n\n    // We're not using `Object.setPrototypeOf` here as it isn't fully\n    // supported on Android (see issue #3236).\n    (this as any).__proto__ = ApolloError.prototype;\n  }\n}\n", "import { responseIterator } from \"./responseIterator.js\";\nimport type { Operation } from \"../core/index.js\";\nimport { throwServerError } from \"../utils/index.js\";\nimport { PROTOCOL_ERRORS_SYMBOL } from \"../../errors/index.js\";\nimport { isApolloPayloadResult } from \"../../utilities/common/incrementalResult.js\";\nimport type { SubscriptionObserver } from \"zen-observable-ts\";\n\nconst { hasOwnProperty } = Object.prototype;\n\nexport type ServerParseError = Error & {\n  response: Response;\n  statusCode: number;\n  bodyText: string;\n};\n\nexport async function readMultipartBody<\n  T extends object = Record<string, unknown>,\n>(response: Response, nextValue: (value: T) => void) {\n  if (TextDecoder === undefined) {\n    throw new Error(\n      \"TextDecoder must be defined in the environment: please import a polyfill.\"\n    );\n  }\n  const decoder = new TextDecoder(\"utf-8\");\n  const contentType = response.headers?.get(\"content-type\");\n  const delimiter = \"boundary=\";\n\n  // parse boundary value and ignore any subsequent name/value pairs after ;\n  // https://www.rfc-editor.org/rfc/rfc9110.html#name-parameters\n  // e.g. multipart/mixed;boundary=\"graphql\";deferSpec=20220824\n  // if no boundary is specified, default to -\n  const boundaryVal =\n    contentType?.includes(delimiter) ?\n      contentType\n        ?.substring(contentType?.indexOf(delimiter) + delimiter.length)\n        .replace(/['\"]/g, \"\")\n        .replace(/\\;(.*)/gm, \"\")\n        .trim()\n    : \"-\";\n\n  const boundary = `\\r\\n--${boundaryVal}`;\n  let buffer = \"\";\n  const iterator = responseIterator(response);\n  let running = true;\n\n  while (running) {\n    const { value, done } = await iterator.next();\n    const chunk = typeof value === \"string\" ? value : decoder.decode(value);\n    const searchFrom = buffer.length - boundary.length + 1;\n    running = !done;\n    buffer += chunk;\n    let bi = buffer.indexOf(boundary, searchFrom);\n\n    while (bi > -1) {\n      let message: string;\n      [message, buffer] = [\n        buffer.slice(0, bi),\n        buffer.slice(bi + boundary.length),\n      ];\n      const i = message.indexOf(\"\\r\\n\\r\\n\");\n      const headers = parseHeaders(message.slice(0, i));\n      const contentType = headers[\"content-type\"];\n      if (\n        contentType &&\n        contentType.toLowerCase().indexOf(\"application/json\") === -1\n      ) {\n        throw new Error(\n          \"Unsupported patch content type: application/json is required.\"\n        );\n      }\n      // nb: Technically you'd want to slice off the beginning \"\\r\\n\" but since\n      // this is going to be `JSON.parse`d there is no need.\n      const body = message.slice(i);\n\n      if (body) {\n        const result = parseJsonBody<T>(response, body);\n        if (\n          Object.keys(result).length > 1 ||\n          \"data\" in result ||\n          \"incremental\" in result ||\n          \"errors\" in result ||\n          \"payload\" in result\n        ) {\n          if (isApolloPayloadResult(result)) {\n            let next = {};\n            if (\"payload\" in result) {\n              if (Object.keys(result).length === 1 && result.payload === null) {\n                return;\n              }\n              next = { ...result.payload };\n            }\n            if (\"errors\" in result) {\n              next = {\n                ...next,\n                extensions: {\n                  ...(\"extensions\" in next ? next.extensions : (null as any)),\n                  [PROTOCOL_ERRORS_SYMBOL]: result.errors,\n                },\n              };\n            }\n            nextValue(next as T);\n          } else {\n            // for the last chunk with only `hasNext: false`\n            // we don't need to call observer.next as there is no data/errors\n            nextValue(result);\n          }\n        } else if (\n          // If the chunk contains only a \"hasNext: false\", we can call\n          // observer.complete() immediately.\n          Object.keys(result).length === 1 &&\n          \"hasNext\" in result &&\n          !result.hasNext\n        ) {\n          return;\n        }\n      }\n      bi = buffer.indexOf(boundary);\n    }\n  }\n}\n\nexport function parseHeaders(headerText: string): Record<string, string> {\n  const headersInit: Record<string, string> = {};\n  headerText.split(\"\\n\").forEach((line) => {\n    const i = line.indexOf(\":\");\n    if (i > -1) {\n      // normalize headers to lowercase\n      const name = line.slice(0, i).trim().toLowerCase();\n      const value = line.slice(i + 1).trim();\n      headersInit[name] = value;\n    }\n  });\n  return headersInit;\n}\n\nexport function parseJsonBody<T>(response: Response, bodyText: string): T {\n  if (response.status >= 300) {\n    // Network error\n    const getResult = (): Record<string, unknown> | string => {\n      try {\n        return JSON.parse(bodyText);\n      } catch (err) {\n        return bodyText;\n      }\n    };\n    throwServerError(\n      response,\n      getResult(),\n      `Response not successful: Received status code ${response.status}`\n    );\n  }\n\n  try {\n    return JSON.parse(bodyText) as T;\n  } catch (err) {\n    const parseError = err as ServerParseError;\n    parseError.name = \"ServerParseError\";\n    parseError.response = response;\n    parseError.statusCode = response.status;\n    parseError.bodyText = bodyText;\n    throw parseError;\n  }\n}\n\nexport function handleError(err: any, observer: SubscriptionObserver<any>) {\n  // if it is a network error, BUT there is graphql result info fire\n  // the next observer before calling error this gives apollo-client\n  // (and react-apollo) the `graphqlErrors` and `networkErrors` to\n  // pass to UI this should only happen if we *also* have data as\n  // part of the response key per the spec\n  if (err.result && err.result.errors && err.result.data) {\n    // if we don't call next, the UI can only show networkError\n    // because AC didn't get any graphqlErrors this is graphql\n    // execution result info (i.e errors and possibly data) this is\n    // because there is no formal spec how errors should translate to\n    // http status codes. So an auth error (401) could have both data\n    // from a public field, errors from a private field, and a status\n    // of 401\n    // {\n    //  user { // this will have errors\n    //    firstName\n    //  }\n    //  products { // this is public so will have data\n    //    cost\n    //  }\n    // }\n    //\n    // the result of above *could* look like this:\n    // {\n    //   data: { products: [{ cost: \"$10\" }] },\n    //   errors: [{\n    //      message: 'your session has timed out',\n    //      path: []\n    //   }]\n    // }\n    // status code of above would be a 401\n    // in the UI you want to show data where you can, errors as data where you can\n    // and use correct http status codes\n    observer.next(err.result);\n  }\n\n  observer.error(err);\n}\n\nexport function parseAndCheckHttpResponse(operations: Operation | Operation[]) {\n  return (response: Response) =>\n    response\n      .text()\n      .then((bodyText) => parseJsonBody(response, bodyText))\n      .then((result: any) => {\n        if (\n          !Array.isArray(result) &&\n          !hasOwnProperty.call(result, \"data\") &&\n          !hasOwnProperty.call(result, \"errors\")\n        ) {\n          // Data error\n          throwServerError(\n            response,\n            result,\n            `Server response was missing for query '${\n              Array.isArray(operations) ?\n                operations.map((op) => op.operationName)\n              : operations.operationName\n            }'.`\n          );\n        }\n        return result;\n      });\n}\n", "import { newInvariantError } from \"../../utilities/globals/index.js\";\nimport type { InvariantError } from \"../../utilities/globals/index.js\";\n\nexport type ClientParseError = InvariantError & {\n  parseError: Error;\n};\n\nexport const serializeFetchParameter = (p: any, label: string) => {\n  let serialized;\n  try {\n    serialized = JSON.stringify(p);\n  } catch (e: any) {\n    const parseError = newInvariantError(\n      `Network request failed. %s is not serializable: %s`,\n      label,\n      e.message\n    ) as ClientParseError;\n    parseError.parseError = e;\n    throw parseError;\n  }\n  return serialized;\n};\n", "import type { ASTNode } from \"graphql\";\nimport { print } from \"../../utilities/index.js\";\n\nimport type { Operation } from \"../core/index.js\";\n\nexport interface Printer {\n  (node: ASTNode, originalPrint: typeof print): string;\n}\n\nexport interface UriFunction {\n  (operation: Operation): string;\n}\n\nexport interface Body {\n  query?: string;\n  operationName?: string;\n  variables?: Record<string, any>;\n  extensions?: Record<string, any>;\n}\n\nexport interface HttpOptions {\n  /**\n   * The URI to use when fetching operations.\n   *\n   * Defaults to '/graphql'.\n   */\n  uri?: string | UriFunction;\n\n  /**\n   * Passes the extensions field to your graphql server.\n   *\n   * Defaults to false.\n   */\n  includeExtensions?: boolean;\n\n  /**\n   * A `fetch`-compatible API to use when making requests.\n   */\n  fetch?: typeof fetch;\n\n  /**\n   * An object representing values to be sent as headers on the request.\n   */\n  headers?: Record<string, string>;\n\n  /**\n   * If set to true, header names won't be automatically normalized to\n   * lowercase. This allows for non-http-spec-compliant servers that might\n   * expect capitalized header names.\n   */\n  preserveHeaderCase?: boolean;\n\n  /**\n   * The credentials policy you want to use for the fetch call.\n   */\n  credentials?: string;\n\n  /**\n   * Any overrides of the fetch options argument to pass to the fetch call.\n   */\n  fetchOptions?: any;\n\n  /**\n   * If set to true, use the HTTP GET method for query operations. Mutations\n   * will still use the method specified in fetchOptions.method (which defaults\n   * to POST).\n   */\n  useGETForQueries?: boolean;\n\n  /**\n   * If set to true, the default behavior of stripping unused variables\n   * from the request will be disabled.\n   *\n   * Unused variables are likely to trigger server-side validation errors,\n   * per https://spec.graphql.org/draft/#sec-All-Variables-Used, but this\n   * includeUnusedVariables option can be useful if your server deviates\n   * from the GraphQL specification by not strictly enforcing that rule.\n   */\n  includeUnusedVariables?: boolean;\n  /**\n   * A function to substitute for the default query print function. Can be\n   * used to apply changes to the results of the print function.\n   */\n  print?: Printer;\n}\n\nexport interface HttpQueryOptions {\n  includeQuery?: boolean;\n  includeExtensions?: boolean;\n  preserveHeaderCase?: boolean;\n}\n\nexport interface HttpConfig {\n  http?: HttpQueryOptions;\n  options?: any;\n  headers?: Record<string, string>;\n  credentials?: any;\n}\n\nconst defaultHttpOptions: HttpQueryOptions = {\n  includeQuery: true,\n  includeExtensions: false,\n  preserveHeaderCase: false,\n};\n\nconst defaultHeaders = {\n  // headers are case insensitive (https://stackoverflow.com/a/5259004)\n  accept: \"*/*\",\n  // The content-type header describes the type of the body of the request, and\n  // so it typically only is sent with requests that actually have bodies. One\n  // could imagine that Apollo Client would remove this header when constructing\n  // a GET request (which has no body), but we historically have not done that.\n  // This means that browsers will preflight all Apollo Client requests (even\n  // GET requests). Apollo Server's CSRF prevention feature (introduced in\n  // AS3.7) takes advantage of this fact and does not block requests with this\n  // header. If you want to drop this header from GET requests, then you should\n  // probably replace it with a `apollo-require-preflight` header, or servers\n  // with CSRF prevention enabled might block your GET request. See\n  // https://www.apollographql.com/docs/apollo-server/security/cors/#preventing-cross-site-request-forgery-csrf\n  // for more details.\n  \"content-type\": \"application/json\",\n};\n\nconst defaultOptions = {\n  method: \"POST\",\n};\n\nexport const fallbackHttpConfig = {\n  http: defaultHttpOptions,\n  headers: defaultHeaders,\n  options: defaultOptions,\n};\n\nexport const defaultPrinter: Printer = (ast, printer) => printer(ast);\n\nexport function selectHttpOptionsAndBody(\n  operation: Operation,\n  fallbackConfig: HttpConfig,\n  ...configs: Array<HttpConfig>\n) {\n  configs.unshift(fallbackConfig);\n  return selectHttpOptionsAndBodyInternal(\n    operation,\n    defaultPrinter,\n    ...configs\n  );\n}\n\nexport function selectHttpOptionsAndBodyInternal(\n  operation: Operation,\n  printer: Printer,\n  ...configs: HttpConfig[]\n) {\n  let options = {} as HttpConfig & Record<string, any>;\n  let http = {} as HttpQueryOptions;\n\n  configs.forEach((config) => {\n    options = {\n      ...options,\n      ...config.options,\n      headers: {\n        ...options.headers,\n        ...config.headers,\n      },\n    };\n\n    if (config.credentials) {\n      options.credentials = config.credentials;\n    }\n\n    http = {\n      ...http,\n      ...config.http,\n    };\n  });\n\n  if (options.headers) {\n    options.headers = removeDuplicateHeaders(\n      options.headers,\n      http.preserveHeaderCase\n    );\n  }\n\n  //The body depends on the http options\n  const { operationName, extensions, variables, query } = operation;\n  const body: Body = { operationName, variables };\n\n  if (http.includeExtensions) (body as any).extensions = extensions;\n\n  // not sending the query (i.e persisted queries)\n  if (http.includeQuery) (body as any).query = printer(query, print);\n\n  return {\n    options,\n    body,\n  };\n}\n\n// Remove potential duplicate header names, preserving last (by insertion order).\n// This is done to prevent unintentionally duplicating a header instead of\n// overwriting it (See #8447 and #8449).\nfunction removeDuplicateHeaders(\n  headers: Record<string, string>,\n  preserveHeaderCase: boolean | undefined\n): typeof headers {\n  // If we're not preserving the case, just remove duplicates w/ normalization.\n  if (!preserveHeaderCase) {\n    const normalizedHeaders = Object.create(null);\n    Object.keys(Object(headers)).forEach((name) => {\n      normalizedHeaders[name.toLowerCase()] = headers[name];\n    });\n    return normalizedHeaders;\n  }\n\n  // If we are preserving the case, remove duplicates w/ normalization,\n  // preserving the original name.\n  // This allows for non-http-spec-compliant servers that expect intentionally\n  // capitalized header names (See #6741).\n  const headerData = Object.create(null);\n  Object.keys(Object(headers)).forEach((name) => {\n    headerData[name.toLowerCase()] = {\n      originalName: name,\n      value: headers[name],\n    };\n  });\n\n  const normalizedHeaders = Object.create(null);\n  Object.keys(headerData).forEach((name) => {\n    normalizedHeaders[headerData[name].originalName] = headerData[name].value;\n  });\n  return normalizedHeaders;\n}\n", "import { newInvariantError } from \"../../utilities/globals/index.js\";\n\nexport const checkFetcher = (fetcher: typeof fetch | undefined) => {\n  if (!fetcher && typeof fetch === \"undefined\") {\n    throw newInvariantError(`\n\"fetch\" has not been found globally and no fetcher has been \\\nconfigured. To fix this, install a fetch package (like \\\nhttps://www.npmjs.com/package/cross-fetch), instantiate the \\\nfetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    `);\n  }\n};\n", "import type { Operation } from \"../core/index.js\";\n\nexport const selectURI = (\n  operation: Operation,\n  fallbackURI?: string | ((operation: Operation) => string)\n) => {\n  const context = operation.getContext();\n  const contextURI = context.uri;\n\n  if (contextURI) {\n    return contextURI;\n  } else if (typeof fallbackURI === \"function\") {\n    return fallbackURI(operation);\n  } else {\n    return (fallbackURI as string) || \"/graphql\";\n  }\n};\n", "import { serializeFetchParameter } from \"./serializeFetchParameter.js\";\nimport type { Body } from \"./selectHttpOptionsAndBody.js\";\n\n// For GET operations, returns the given URI rewritten with parameters, or a\n// parse error.\nexport function rewriteURIForGET(chosenURI: string, body: Body) {\n  // Implement the standard HTTP GET serialization, plus 'extensions'. Note\n  // the extra level of JSON serialization!\n  const queryParams: string[] = [];\n  const addQueryParam = (key: string, value: string) => {\n    queryParams.push(`${key}=${encodeURIComponent(value)}`);\n  };\n\n  if (\"query\" in body) {\n    addQueryParam(\"query\", body.query!);\n  }\n  if (body.operationName) {\n    addQueryParam(\"operationName\", body.operationName);\n  }\n  if (body.variables) {\n    let serializedVariables;\n    try {\n      serializedVariables = serializeFetchParameter(\n        body.variables,\n        \"Variables map\"\n      );\n    } catch (parseError) {\n      return { parseError };\n    }\n    addQueryParam(\"variables\", serializedVariables);\n  }\n  if (body.extensions) {\n    let serializedExtensions;\n    try {\n      serializedExtensions = serializeFetchParameter(\n        body.extensions,\n        \"Extensions map\"\n      );\n    } catch (parseError) {\n      return { parseError };\n    }\n    addQueryParam(\"extensions\", serializedExtensions);\n  }\n\n  // Reconstruct the URI with added query params.\n  // XXX This assumes that the URI is well-formed and that it doesn't\n  //     already contain any of these query params. We could instead use the\n  //     URL API and take a polyfill (whatwg-url@6) for older browsers that\n  //     don't support URLSearchParams. Note that some browsers (and\n  //     versions of whatwg-url) support URL but not URLSearchParams!\n  let fragment = \"\",\n    preFragment = chosenURI;\n  const fragmentStart = chosenURI.indexOf(\"#\");\n  if (fragmentStart !== -1) {\n    fragment = chosenURI.substr(fragmentStart);\n    preFragment = chosenURI.substr(0, fragmentStart);\n  }\n  const queryParamsPrefix = preFragment.indexOf(\"?\") === -1 ? \"?\" : \"&\";\n  const newURI =\n    preFragment + queryParamsPrefix + queryParams.join(\"&\") + fragment;\n  return { newURI };\n}\n", "import { invariant } from \"../../utilities/globals/index.js\";\n\nimport type { DefinitionNode } from \"graphql\";\n\nimport { ApolloLink } from \"../core/index.js\";\nimport { Observable, hasDirectives } from \"../../utilities/index.js\";\nimport { serializeFetchParameter } from \"./serializeFetchParameter.js\";\nimport { selectURI } from \"./selectURI.js\";\nimport {\n  handleError,\n  readMultipartBody,\n  parseAndCheckHttpResponse,\n} from \"./parseAndCheckHttpResponse.js\";\nimport { checkFetcher } from \"./checkFetcher.js\";\nimport type { HttpOptions } from \"./selectHttpOptionsAndBody.js\";\nimport {\n  selectHttpOptionsAndBodyInternal,\n  defaultPrinter,\n  fallbackHttpConfig,\n} from \"./selectHttpOptionsAndBody.js\";\nimport { rewriteURIForGET } from \"./rewriteURIForGET.js\";\nimport { fromError, filterOperationVariables } from \"../utils/index.js\";\nimport {\n  maybe,\n  getMainDefinition,\n  removeClientSetsFromDocument,\n} from \"../../utilities/index.js\";\n\nconst backupFetch = maybe(() => fetch);\n\nexport const createHttpLink = (linkOptions: HttpOptions = {}) => {\n  let {\n    uri = \"/graphql\",\n    // use default global fetch if nothing passed in\n    fetch: preferredFetch,\n    print = defaultPrinter,\n    includeExtensions,\n    preserveHeaderCase,\n    useGETForQueries,\n    includeUnusedVariables = false,\n    ...requestOptions\n  } = linkOptions;\n\n  if (__DEV__) {\n    // Make sure at least one of preferredFetch, window.fetch, or backupFetch is\n    // defined, so requests won't fail at runtime.\n    checkFetcher(preferredFetch || backupFetch);\n  }\n\n  const linkConfig = {\n    http: { includeExtensions, preserveHeaderCase },\n    options: requestOptions.fetchOptions,\n    credentials: requestOptions.credentials,\n    headers: requestOptions.headers,\n  };\n\n  return new ApolloLink((operation) => {\n    let chosenURI = selectURI(operation, uri);\n\n    const context = operation.getContext();\n\n    // `apollographql-client-*` headers are automatically set if a\n    // `clientAwareness` object is found in the context. These headers are\n    // set first, followed by the rest of the headers pulled from\n    // `context.headers`. If desired, `apollographql-client-*` headers set by\n    // the `clientAwareness` object can be overridden by\n    // `apollographql-client-*` headers set in `context.headers`.\n    const clientAwarenessHeaders: {\n      \"apollographql-client-name\"?: string;\n      \"apollographql-client-version\"?: string;\n    } = {};\n\n    if (context.clientAwareness) {\n      const { name, version } = context.clientAwareness;\n      if (name) {\n        clientAwarenessHeaders[\"apollographql-client-name\"] = name;\n      }\n      if (version) {\n        clientAwarenessHeaders[\"apollographql-client-version\"] = version;\n      }\n    }\n\n    const contextHeaders = { ...clientAwarenessHeaders, ...context.headers };\n\n    const contextConfig = {\n      http: context.http,\n      options: context.fetchOptions,\n      credentials: context.credentials,\n      headers: contextHeaders,\n    };\n\n    if (hasDirectives([\"client\"], operation.query)) {\n      const transformedQuery = removeClientSetsFromDocument(operation.query);\n\n      if (!transformedQuery) {\n        return fromError(\n          new Error(\n            \"HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`.\"\n          )\n        );\n      }\n\n      operation.query = transformedQuery;\n    }\n\n    //uses fallback, link, and then context to build options\n    const { options, body } = selectHttpOptionsAndBodyInternal(\n      operation,\n      print,\n      fallbackHttpConfig,\n      linkConfig,\n      contextConfig\n    );\n\n    if (body.variables && !includeUnusedVariables) {\n      body.variables = filterOperationVariables(\n        body.variables,\n        operation.query\n      );\n    }\n\n    let controller: AbortController | undefined;\n    if (!options.signal && typeof AbortController !== \"undefined\") {\n      controller = new AbortController();\n      options.signal = controller.signal;\n    }\n\n    // If requested, set method to GET if there are no mutations.\n    const definitionIsMutation = (d: DefinitionNode) => {\n      return d.kind === \"OperationDefinition\" && d.operation === \"mutation\";\n    };\n    const definitionIsSubscription = (d: DefinitionNode) => {\n      return d.kind === \"OperationDefinition\" && d.operation === \"subscription\";\n    };\n    const isSubscription = definitionIsSubscription(\n      getMainDefinition(operation.query)\n    );\n    // does not match custom directives beginning with @defer\n    const hasDefer = hasDirectives([\"defer\"], operation.query);\n    if (\n      useGETForQueries &&\n      !operation.query.definitions.some(definitionIsMutation)\n    ) {\n      options.method = \"GET\";\n    }\n\n    if (hasDefer || isSubscription) {\n      options.headers = options.headers || {};\n      let acceptHeader = \"multipart/mixed;\";\n      // Omit defer-specific headers if the user attempts to defer a selection\n      // set on a subscription and log a warning.\n      if (isSubscription && hasDefer) {\n        invariant.warn(\"Multipart-subscriptions do not support @defer\");\n      }\n\n      if (isSubscription) {\n        acceptHeader +=\n          \"boundary=graphql;subscriptionSpec=1.0,application/json\";\n      } else if (hasDefer) {\n        acceptHeader += \"deferSpec=20220824,application/json\";\n      }\n      options.headers.accept = acceptHeader;\n    }\n\n    if (options.method === \"GET\") {\n      const { newURI, parseError } = rewriteURIForGET(chosenURI, body);\n      if (parseError) {\n        return fromError(parseError);\n      }\n      chosenURI = newURI;\n    } else {\n      try {\n        (options as any).body = serializeFetchParameter(body, \"Payload\");\n      } catch (parseError) {\n        return fromError(parseError);\n      }\n    }\n\n    return new Observable((observer) => {\n      // Prefer linkOptions.fetch (preferredFetch) if provided, and otherwise\n      // fall back to the *current* global window.fetch function (see issue\n      // #7832), or (if all else fails) the backupFetch function we saved when\n      // this module was first evaluated. This last option protects against the\n      // removal of window.fetch, which is unlikely but not impossible.\n      const currentFetch = preferredFetch || maybe(() => fetch) || backupFetch;\n\n      const observerNext = observer.next.bind(observer);\n      currentFetch!(chosenURI, options)\n        .then((response) => {\n          operation.setContext({ response });\n          const ctype = response.headers?.get(\"content-type\");\n\n          if (ctype !== null && /^multipart\\/mixed/i.test(ctype)) {\n            return readMultipartBody(response, observerNext);\n          } else {\n            return parseAndCheckHttpResponse(operation)(response).then(\n              observerNext\n            );\n          }\n        })\n        .then(() => {\n          controller = undefined;\n          observer.complete();\n        })\n        .catch((err) => {\n          controller = undefined;\n          handleError(err, observer);\n        });\n\n      return () => {\n        // XXX support canceling this request\n        // https://developers.google.com/web/updates/2017/09/abortable-fetch\n        if (controller) controller.abort();\n      };\n    });\n  });\n};\n", "import { ApolloLink } from \"../core/index.js\";\nimport type { HttpOptions } from \"./selectHttpOptionsAndBody.js\";\nimport { createHttpLink } from \"./createHttpLink.js\";\n\nexport class HttpLink extends ApolloLink {\n  constructor(public options: HttpOptions = {}) {\n    super(createHttpLink(options).request);\n  }\n}\n", "const { toString, hasOwnProperty } = Object.prototype;\nconst fnToStr = Function.prototype.toString;\nconst previousComparisons = new Map<object, Set<object>>();\n\n/**\n * Performs a deep equality check on two JavaScript values, tolerating cycles.\n */\nexport function equal(a: any, b: any): boolean {\n  try {\n    return check(a, b);\n  } finally {\n    previousComparisons.clear();\n  }\n}\n\n// Allow default imports as well.\nexport default equal;\n\nfunction check(a: any, b: any): boolean {\n  // If the two values are strictly equal, our job is easy.\n  if (a === b) {\n    return true;\n  }\n\n  // Object.prototype.toString returns a representation of the runtime type of\n  // the given value that is considerably more precise than typeof.\n  const aTag = toString.call(a);\n  const bTag = toString.call(b);\n\n  // If the runtime types of a and b are different, they could maybe be equal\n  // under some interpretation of equality, but for simplicity and performance\n  // we just return false instead.\n  if (aTag !== bTag) {\n    return false;\n  }\n\n  switch (aTag) {\n    case '[object Array]':\n      // Arrays are a lot like other objects, but we can cheaply compare their\n      // lengths as a short-cut before comparing their elements.\n      if (a.length !== b.length) return false;\n      // Fall through to object case...\n    case '[object Object]': {\n      if (previouslyCompared(a, b)) return true;\n\n      const aKeys = definedKeys(a);\n      const bKeys = definedKeys(b);\n\n      // If `a` and `b` have a different number of enumerable keys, they\n      // must be different.\n      const keyCount = aKeys.length;\n      if (keyCount !== bKeys.length) return false;\n\n      // Now make sure they have the same keys.\n      for (let k = 0; k < keyCount; ++k) {\n        if (!hasOwnProperty.call(b, aKeys[k])) {\n          return false;\n        }\n      }\n\n      // Finally, check deep equality of all child properties.\n      for (let k = 0; k < keyCount; ++k) {\n        const key = aKeys[k];\n        if (!check(a[key], b[key])) {\n          return false;\n        }\n      }\n\n      return true;\n    }\n\n    case '[object Error]':\n      return a.name === b.name && a.message === b.message;\n\n    case '[object Number]':\n      // Handle NaN, which is !== itself.\n      if (a !== a) return b !== b;\n      // Fall through to shared +a === +b case...\n    case '[object Boolean]':\n    case '[object Date]':\n      return +a === +b;\n\n    case '[object RegExp]':\n    case '[object String]':\n      return a == `${b}`;\n\n    case '[object Map]':\n    case '[object Set]': {\n      if (a.size !== b.size) return false;\n      if (previouslyCompared(a, b)) return true;\n\n      const aIterator = a.entries();\n      const isMap = aTag === '[object Map]';\n\n      while (true) {\n        const info = aIterator.next();\n        if (info.done) break;\n\n        // If a instanceof Set, aValue === aKey.\n        const [aKey, aValue] = info.value;\n\n        // So this works the same way for both Set and Map.\n        if (!b.has(aKey)) {\n          return false;\n        }\n\n        // However, we care about deep equality of values only when dealing\n        // with Map structures.\n        if (isMap && !check(aValue, b.get(aKey))) {\n          return false;\n        }\n      }\n\n      return true;\n    }\n\n    case '[object Uint16Array]':\n    case '[object Uint8Array]': // Buffer, in Node.js.\n    case '[object Uint32Array]':\n    case '[object Int32Array]':\n    case '[object Int8Array]':\n    case '[object Int16Array]':\n    case '[object ArrayBuffer]':\n      // DataView doesn't need these conversions, but the equality check is\n      // otherwise the same.\n      a = new Uint8Array(a);\n      b = new Uint8Array(b);\n      // Fall through...\n    case '[object DataView]': {\n      let len = a.byteLength;\n      if (len === b.byteLength) {\n        while (len-- && a[len] === b[len]) {\n          // Keep looping as long as the bytes are equal.\n        }\n      }\n      return len === -1;\n    }\n\n    case '[object AsyncFunction]':\n    case '[object GeneratorFunction]':\n    case '[object AsyncGeneratorFunction]':\n    case '[object Function]': {\n      const aCode = fnToStr.call(a);\n      if (aCode !== fnToStr.call(b)) {\n        return false;\n      }\n\n      // We consider non-native functions equal if they have the same code\n      // (native functions require === because their code is censored).\n      // Note that this behavior is not entirely sound, since !== function\n      // objects with the same code can behave differently depending on\n      // their closure scope. However, any function can behave differently\n      // depending on the values of its input arguments (including this)\n      // and its calling context (including its closure scope), even\n      // though the function object is === to itself; and it is entirely\n      // possible for functions that are not === to behave exactly the\n      // same under all conceivable circumstances. Because none of these\n      // factors are statically decidable in JavaScript, JS function\n      // equality is not well-defined. This ambiguity allows us to\n      // consider the best possible heuristic among various imperfect\n      // options, and equating non-native functions that have the same\n      // code has enormous practical benefits, such as when comparing\n      // functions that are repeatedly passed as fresh function\n      // expressions within objects that are otherwise deeply equal. Since\n      // any function created from the same syntactic expression (in the\n      // same code location) will always stringify to the same code\n      // according to fnToStr.call, we can reasonably expect these\n      // repeatedly passed function expressions to have the same code, and\n      // thus behave \"the same\" (with all the caveats mentioned above),\n      // even though the runtime function objects are !== to one another.\n      return !endsWith(aCode, nativeCodeSuffix);\n    }\n  }\n\n  // Otherwise the values are not equal.\n  return false;\n}\n\nfunction definedKeys<TObject extends object>(obj: TObject) {\n  // Remember that the second argument to Array.prototype.filter will be\n  // used as `this` within the callback function.\n  return Object.keys(obj).filter(isDefinedKey, obj);\n}\nfunction isDefinedKey<TObject extends object>(\n  this: TObject,\n  key: keyof TObject,\n) {\n  return this[key] !== void 0;\n}\n\nconst nativeCodeSuffix = \"{ [native code] }\";\n\nfunction endsWith(full: string, suffix: string) {\n  const fromIndex = full.length - suffix.length;\n  return fromIndex >= 0 &&\n    full.indexOf(suffix, fromIndex) === fromIndex;\n}\n\nfunction previouslyCompared(a: object, b: object): boolean {\n  // Though cyclic references can make an object graph appear infinite from the\n  // perspective of a depth-first traversal, the graph still contains a finite\n  // number of distinct object references. We use the previousComparisons cache\n  // to avoid comparing the same pair of object references more than once, which\n  // guarantees termination (even if we end up comparing every object in one\n  // graph to every object in the other graph, which is extremely unlikely),\n  // while still allowing weird isomorphic structures (like rings with different\n  // lengths) a chance to pass the equality test.\n  let bSet = previousComparisons.get(a);\n  if (bSet) {\n    // Return true here because we can be sure false will be returned somewhere\n    // else if the objects are not equivalent.\n    if (bSet.has(b)) return true;\n  } else {\n    previousComparisons.set(a, bSet = new Set);\n  }\n  bSet.add(b);\n  return false;\n}\n", "import type { DocumentNode } from \"graphql\";\nimport { wrap } from \"optimism\";\n\nimport type {\n  StoreObject,\n  Reference,\n  DeepPartial,\n} from \"../../utilities/index.js\";\nimport {\n  Observable,\n  cacheSizes,\n  defaultCacheSizes,\n  getFragmentQueryDocument,\n  mergeDeepArray,\n} from \"../../utilities/index.js\";\nimport type { DataProxy } from \"./types/DataProxy.js\";\nimport type { Cache } from \"./types/Cache.js\";\nimport { WeakCache } from \"@wry/caches\";\nimport { getApolloCacheMemoryInternals } from \"../../utilities/caching/getMemoryInternals.js\";\nimport type {\n  OperationVariables,\n  TypedDocumentNode,\n} from \"../../core/types.js\";\nimport { equal } from \"@wry/equality\";\nimport type { MissingTree } from \"./types/common.js\";\n\nexport type Transaction<T> = (c: ApolloCache<T>) => void;\n\n/**\n * Watched fragment options.\n */\nexport interface WatchFragmentOptions<TData, TVars> {\n  /**\n   * A GraphQL fragment document parsed into an AST with the `gql`\n   * template literal.\n   *\n   * @docGroup 1. Required options\n   */\n  fragment: DocumentNode | TypedDocumentNode<TData, TVars>;\n  /**\n   * An object containing a `__typename` and primary key fields\n   * (such as `id`) identifying the entity object from which the fragment will\n   * be retrieved, or a `{ __ref: \"...\" }` reference, or a `string` ID\n   * (uncommon).\n   *\n   * @docGroup 1. Required options\n   */\n  from: StoreObject | Reference | string;\n  /**\n   * Any variables that the GraphQL fragment may depend on.\n   *\n   * @docGroup 2. Cache options\n   */\n  variables?: TVars;\n  /**\n   * The name of the fragment defined in the fragment document.\n   *\n   * Required if the fragment document includes more than one fragment,\n   * optional otherwise.\n   *\n   * @docGroup 2. Cache options\n   */\n  fragmentName?: string;\n  /**\n   * If `true`, `watchFragment` returns optimistic results.\n   *\n   * The default value is `true`.\n   *\n   * @docGroup 2. Cache options\n   */\n  optimistic?: boolean;\n  /**\n   * @deprecated\n   * Using `canonizeResults` can result in memory leaks so we generally do not\n   * recommend using this option anymore.\n   * A future version of Apollo Client will contain a similar feature.\n   *\n   * Whether to canonize cache results before returning them. Canonization\n   * takes some extra time, but it speeds up future deep equality comparisons.\n   * Defaults to false.\n   */\n  canonizeResults?: boolean;\n}\n\n/**\n * Watched fragment results.\n */\nexport type WatchFragmentResult<TData> =\n  | {\n      data: TData;\n      complete: true;\n      missing?: never;\n    }\n  | {\n      data: DeepPartial<TData>;\n      complete: false;\n      missing: MissingTree;\n    };\n\nexport abstract class ApolloCache<TSerialized> implements DataProxy {\n  public readonly assumeImmutableResults: boolean = false;\n\n  // required to implement\n  // core API\n  public abstract read<TData = any, TVariables = any>(\n    query: Cache.ReadOptions<TVariables, TData>\n  ): TData | null;\n  public abstract write<TData = any, TVariables = any>(\n    write: Cache.WriteOptions<TData, TVariables>\n  ): Reference | undefined;\n  public abstract diff<T>(query: Cache.DiffOptions): Cache.DiffResult<T>;\n  public abstract watch<TData = any, TVariables = any>(\n    watch: Cache.WatchOptions<TData, TVariables>\n  ): () => void;\n\n  // Empty the cache and restart all current watches (unless\n  // options.discardWatches is true).\n  public abstract reset(options?: Cache.ResetOptions): Promise<void>;\n\n  // Remove whole objects from the cache by passing just options.id, or\n  // specific fields by passing options.field and/or options.args. If no\n  // options.args are provided, all fields matching options.field (even\n  // those with arguments) will be removed. Returns true iff any data was\n  // removed from the cache.\n  public abstract evict(options: Cache.EvictOptions): boolean;\n\n  // initializer / offline / ssr API\n  /**\n   * Replaces existing state in the cache (if any) with the values expressed by\n   * `serializedState`.\n   *\n   * Called when hydrating a cache (server side rendering, or offline storage),\n   * and also (potentially) during hot reloads.\n   */\n  public abstract restore(\n    serializedState: TSerialized\n  ): ApolloCache<TSerialized>;\n\n  /**\n   * Exposes the cache's complete state, in a serializable format for later restoration.\n   */\n  public abstract extract(optimistic?: boolean): TSerialized;\n\n  // Optimistic API\n\n  public abstract removeOptimistic(id: string): void;\n\n  // Transactional API\n\n  // The batch method is intended to replace/subsume both performTransaction\n  // and recordOptimisticTransaction, but performTransaction came first, so we\n  // provide a default batch implementation that's just another way of calling\n  // performTransaction. Subclasses of ApolloCache (such as InMemoryCache) can\n  // override the batch method to do more interesting things with its options.\n  public batch<U>(options: Cache.BatchOptions<this, U>): U {\n    const optimisticId =\n      typeof options.optimistic === \"string\" ? options.optimistic\n      : options.optimistic === false ? null\n      : void 0;\n    let updateResult: U;\n    this.performTransaction(\n      () => (updateResult = options.update(this)),\n      optimisticId\n    );\n    return updateResult!;\n  }\n\n  public abstract performTransaction(\n    transaction: Transaction<TSerialized>,\n    // Although subclasses may implement recordOptimisticTransaction\n    // however they choose, the default implementation simply calls\n    // performTransaction with a string as the second argument, allowing\n    // performTransaction to handle both optimistic and non-optimistic\n    // (broadcast-batching) transactions. Passing null for optimisticId is\n    // also allowed, and indicates that performTransaction should apply\n    // the transaction non-optimistically (ignoring optimistic data).\n    optimisticId?: string | null\n  ): void;\n\n  public recordOptimisticTransaction(\n    transaction: Transaction<TSerialized>,\n    optimisticId: string\n  ) {\n    this.performTransaction(transaction, optimisticId);\n  }\n\n  // Optional API\n\n  // Called once per input document, allowing the cache to make static changes\n  // to the query, such as adding __typename fields.\n  public transformDocument(document: DocumentNode): DocumentNode {\n    return document;\n  }\n\n  // Called before each ApolloLink request, allowing the cache to make dynamic\n  // changes to the query, such as filling in missing fragment definitions.\n  public transformForLink(document: DocumentNode): DocumentNode {\n    return document;\n  }\n\n  public identify(object: StoreObject | Reference): string | undefined {\n    return;\n  }\n\n  public gc(): string[] {\n    return [];\n  }\n\n  public modify<Entity extends Record<string, any> = Record<string, any>>(\n    options: Cache.ModifyOptions<Entity>\n  ): boolean {\n    return false;\n  }\n\n  // DataProxy API\n  public readQuery<QueryType, TVariables = any>(\n    options: Cache.ReadQueryOptions<QueryType, TVariables>,\n    optimistic = !!options.optimistic\n  ): QueryType | null {\n    return this.read({\n      ...options,\n      rootId: options.id || \"ROOT_QUERY\",\n      optimistic,\n    });\n  }\n\n  /** {@inheritDoc @apollo/client!ApolloClient#watchFragment:member(1)} */\n  public watchFragment<TData = any, TVars = OperationVariables>(\n    options: WatchFragmentOptions<TData, TVars>\n  ): Observable<WatchFragmentResult<TData>> {\n    const { fragment, fragmentName, from, optimistic = true } = options;\n\n    const diffOptions: Cache.DiffOptions<TData, TVars> = {\n      returnPartialData: true,\n      id: typeof from === \"string\" ? from : this.identify(from),\n      query: this.getFragmentDoc(fragment, fragmentName),\n      optimistic,\n    };\n\n    let latestDiff: DataProxy.DiffResult<TData> | undefined;\n\n    return new Observable((observer) => {\n      return this.watch<TData, TVars>({\n        ...diffOptions,\n        immediate: true,\n        query: this.getFragmentDoc(fragment, fragmentName),\n        callback(diff) {\n          if (equal(diff, latestDiff)) {\n            return;\n          }\n\n          const result = {\n            data: diff.result as DeepPartial<TData>,\n            complete: !!diff.complete,\n          } as WatchFragmentResult<TData>;\n\n          if (diff.missing) {\n            result.missing = mergeDeepArray(\n              diff.missing.map((error) => error.missing)\n            );\n          }\n\n          latestDiff = diff;\n          observer.next(result);\n        },\n      });\n    });\n  }\n\n  // Make sure we compute the same (===) fragment query document every\n  // time we receive the same fragment in readFragment.\n  private getFragmentDoc = wrap(getFragmentQueryDocument, {\n    max:\n      cacheSizes[\"cache.fragmentQueryDocuments\"] ||\n      defaultCacheSizes[\"cache.fragmentQueryDocuments\"],\n    cache: WeakCache,\n  });\n\n  public readFragment<FragmentType, TVariables = any>(\n    options: Cache.ReadFragmentOptions<FragmentType, TVariables>,\n    optimistic = !!options.optimistic\n  ): FragmentType | null {\n    return this.read({\n      ...options,\n      query: this.getFragmentDoc(options.fragment, options.fragmentName),\n      rootId: options.id,\n      optimistic,\n    });\n  }\n\n  public writeQuery<TData = any, TVariables = any>({\n    id,\n    data,\n    ...options\n  }: Cache.WriteQueryOptions<TData, TVariables>): Reference | undefined {\n    return this.write(\n      Object.assign(options, {\n        dataId: id || \"ROOT_QUERY\",\n        result: data,\n      })\n    );\n  }\n\n  public writeFragment<TData = any, TVariables = any>({\n    id,\n    data,\n    fragment,\n    fragmentName,\n    ...options\n  }: Cache.WriteFragmentOptions<TData, TVariables>): Reference | undefined {\n    return this.write(\n      Object.assign(options, {\n        query: this.getFragmentDoc(fragment, fragmentName),\n        dataId: id,\n        result: data,\n      })\n    );\n  }\n\n  public updateQuery<TData = any, TVariables = any>(\n    options: Cache.UpdateQueryOptions<TData, TVariables>,\n    update: (data: TData | null) => TData | null | void\n  ): TData | null {\n    return this.batch({\n      update(cache) {\n        const value = cache.readQuery<TData, TVariables>(options);\n        const data = update(value);\n        if (data === void 0 || data === null) return value;\n        cache.writeQuery<TData, TVariables>({ ...options, data });\n        return data;\n      },\n    });\n  }\n\n  public updateFragment<TData = any, TVariables = any>(\n    options: Cache.UpdateFragmentOptions<TData, TVariables>,\n    update: (data: TData | null) => TData | null | void\n  ): TData | null {\n    return this.batch({\n      update(cache) {\n        const value = cache.readFragment<TData, TVariables>(options);\n        const data = update(value);\n        if (data === void 0 || data === null) return value;\n        cache.writeFragment<TData, TVariables>({ ...options, data });\n        return data;\n      },\n    });\n  }\n\n  /**\n   * @experimental\n   * @internal\n   * This is not a stable API - it is used in development builds to expose\n   * information to the DevTools.\n   * Use at your own risk!\n   */\n  public getMemoryInternals?: typeof getApolloCacheMemoryInternals;\n}\n\nif (__DEV__) {\n  ApolloCache.prototype.getMemoryInternals = getApolloCacheMemoryInternals;\n}\n", "import type { DocumentNode, FieldNode } from \"graphql\";\n\nimport type {\n  Reference,\n  StoreObject,\n  StoreValue,\n  isReference,\n  AsStoreObject,\n} from \"../../../utilities/index.js\";\n\nimport type { StorageType } from \"../../inmemory/policies.js\";\n\n// The Readonly<T> type only really works for object types, since it marks\n// all of the object's properties as readonly, but there are many cases when\n// a generic type parameter like TExisting might be a string or some other\n// primitive type, in which case we need to avoid wrapping it with Readonly.\n// SafeReadonly<string> collapses to just string, which makes string\n// assignable to SafeReadonly<any>, whereas string is not assignable to\n// Readonly<any>, somewhat surprisingly.\nexport type SafeReadonly<T> = T extends object ? Readonly<T> : T;\n\nexport type MissingTree =\n  | string\n  | {\n      readonly [key: string]: MissingTree;\n    };\n\nexport class MissingFieldError extends Error {\n  constructor(\n    public readonly message: string,\n    public readonly path: MissingTree | Array<string | number>,\n    public readonly query: DocumentNode,\n    public readonly variables?: Record<string, any>\n  ) {\n    // 'Error' breaks prototype chain here\n    super(message);\n\n    if (Array.isArray(this.path)) {\n      this.missing = this.message;\n      for (let i = this.path.length - 1; i >= 0; --i) {\n        this.missing = { [this.path[i]]: this.missing };\n      }\n    } else {\n      this.missing = this.path;\n    }\n\n    // We're not using `Object.setPrototypeOf` here as it isn't fully supported\n    // on Android (see issue #3236).\n    (this as any).__proto__ = MissingFieldError.prototype;\n  }\n\n  public readonly missing: MissingTree;\n}\n\nexport interface FieldSpecifier {\n  typename?: string;\n  fieldName: string;\n  field?: FieldNode;\n  args?: Record<string, any>;\n  variables?: Record<string, any>;\n}\n\nexport interface ReadFieldOptions extends FieldSpecifier {\n  from?: StoreObject | Reference;\n}\n\nexport interface ReadFieldFunction {\n  <V = StoreValue>(options: ReadFieldOptions): SafeReadonly<V> | undefined;\n  <V = StoreValue>(\n    fieldName: string,\n    from?: StoreObject | Reference\n  ): SafeReadonly<V> | undefined;\n}\n\nexport type ToReferenceFunction = (\n  objOrIdOrRef: StoreObject | string | Reference,\n  mergeIntoStore?: boolean\n) => Reference | undefined;\n\nexport type CanReadFunction = (value: StoreValue) => boolean;\n\ndeclare const _deleteModifier: unique symbol;\nexport interface DeleteModifier {\n  [_deleteModifier]: true;\n}\ndeclare const _invalidateModifier: unique symbol;\nexport interface InvalidateModifier {\n  [_invalidateModifier]: true;\n}\ndeclare const _ignoreModifier: unique symbol;\nexport interface IgnoreModifier {\n  [_ignoreModifier]: true;\n}\n\nexport type ModifierDetails = {\n  DELETE: DeleteModifier;\n  INVALIDATE: InvalidateModifier;\n  fieldName: string;\n  storeFieldName: string;\n  readField: ReadFieldFunction;\n  canRead: CanReadFunction;\n  isReference: typeof isReference;\n  toReference: ToReferenceFunction;\n  storage: StorageType;\n};\n\nexport type Modifier<T> = (\n  value: T,\n  details: ModifierDetails\n) => T | DeleteModifier | InvalidateModifier;\n\ntype StoreObjectValueMaybeReference<StoreVal> =\n  StoreVal extends Array<Record<string, any>> ?\n    StoreVal extends Array<infer Item> ?\n      Item extends Record<string, any> ?\n        ReadonlyArray<AsStoreObject<Item> | Reference>\n      : never\n    : never\n  : StoreVal extends Record<string, any> ? AsStoreObject<StoreVal> | Reference\n  : StoreVal;\n\nexport type AllFieldsModifier<Entity extends Record<string, any>> = Modifier<\n  Entity[keyof Entity] extends infer Value ?\n    StoreObjectValueMaybeReference<Exclude<Value, undefined>>\n  : never\n>;\n\nexport type Modifiers<T extends Record<string, any> = Record<string, unknown>> =\n  Partial<{\n    [FieldName in keyof T]: Modifier<\n      StoreObjectValueMaybeReference<Exclude<T[FieldName], undefined>>\n    >;\n  }>;\n", "import type {\n  DocumentNode,\n  FragmentDefinitionNode,\n  SelectionSetNode,\n} from \"graphql\";\n\nimport type { NormalizedCache, InMemoryCacheConfig } from \"./types.js\";\n\nimport type { KeyFieldsContext } from \"./policies.js\";\nimport type { FragmentRegistryAPI } from \"./fragmentRegistry.js\";\n\nimport type {\n  Reference,\n  StoreValue,\n  StoreObject,\n  FragmentMap,\n  FragmentMapFunction,\n} from \"../../utilities/index.js\";\nimport {\n  isReference,\n  isField,\n  DeepMerger,\n  resultKeyNameFromField,\n  shouldInclude,\n  isNonNullObject,\n  compact,\n  createFragmentMap,\n  getFragmentDefinitions,\n  isArray,\n} from \"../../utilities/index.js\";\n\nexport const { hasOwnProperty: hasOwn } = Object.prototype;\n\nexport function isNullish(value: any): value is null | undefined {\n  return value === null || value === void 0;\n}\n\nexport { isArray };\n\nexport function defaultDataIdFromObject(\n  { __typename, id, _id }: Readonly<StoreObject>,\n  context?: KeyFieldsContext\n): string | undefined {\n  if (typeof __typename === \"string\") {\n    if (context) {\n      context.keyObject =\n        !isNullish(id) ? { id }\n        : !isNullish(_id) ? { _id }\n        : void 0;\n    }\n\n    // If there is no object.id, fall back to object._id.\n    if (isNullish(id) && !isNullish(_id)) {\n      id = _id;\n    }\n\n    if (!isNullish(id)) {\n      return `${__typename}:${\n        typeof id === \"number\" || typeof id === \"string\" ?\n          id\n        : JSON.stringify(id)\n      }`;\n    }\n  }\n}\n\nconst defaultConfig = {\n  dataIdFromObject: defaultDataIdFromObject,\n  addTypename: true,\n  resultCaching: true,\n  // Thanks to the shouldCanonizeResults helper, this should be the only line\n  // you have to change to reenable canonization by default in the future.\n  canonizeResults: false,\n};\n\nexport function normalizeConfig(config: InMemoryCacheConfig) {\n  return compact(defaultConfig, config);\n}\n\nexport function shouldCanonizeResults(\n  config: Pick<InMemoryCacheConfig, \"canonizeResults\">\n): boolean {\n  const value = config.canonizeResults;\n  return value === void 0 ? defaultConfig.canonizeResults : value;\n}\n\nexport function getTypenameFromStoreObject(\n  store: NormalizedCache,\n  objectOrReference: StoreObject | Reference\n): string | undefined {\n  return isReference(objectOrReference) ?\n      (store.get(objectOrReference.__ref, \"__typename\") as string)\n    : objectOrReference && objectOrReference.__typename;\n}\n\nexport const TypeOrFieldNameRegExp = /^[_a-z][_0-9a-z]*/i;\n\nexport function fieldNameFromStoreName(storeFieldName: string): string {\n  const match = storeFieldName.match(TypeOrFieldNameRegExp);\n  return match ? match[0] : storeFieldName;\n}\n\nexport function selectionSetMatchesResult(\n  selectionSet: SelectionSetNode,\n  result: Record<string, any>,\n  variables?: Record<string, any>\n): boolean {\n  if (isNonNullObject(result)) {\n    return isArray(result) ?\n        result.every((item) =>\n          selectionSetMatchesResult(selectionSet, item, variables)\n        )\n      : selectionSet.selections.every((field) => {\n          if (isField(field) && shouldInclude(field, variables)) {\n            const key = resultKeyNameFromField(field);\n            return (\n              hasOwn.call(result, key) &&\n              (!field.selectionSet ||\n                selectionSetMatchesResult(\n                  field.selectionSet,\n                  result[key],\n                  variables\n                ))\n            );\n          }\n          // If the selection has been skipped with @skip(true) or\n          // @include(false), it should not count against the matching. If\n          // the selection is not a field, it must be a fragment (inline or\n          // named). We will determine if selectionSetMatchesResult for that\n          // fragment when we get to it, so for now we return true.\n          return true;\n        });\n  }\n  return false;\n}\n\nexport function storeValueIsStoreObject(\n  value: StoreValue\n): value is StoreObject {\n  return isNonNullObject(value) && !isReference(value) && !isArray(value);\n}\n\nexport function makeProcessedFieldsMerger() {\n  return new DeepMerger();\n}\n\nexport function extractFragmentContext(\n  document: DocumentNode,\n  fragments?: FragmentRegistryAPI\n): {\n  fragmentMap: FragmentMap;\n  lookupFragment: FragmentMapFunction;\n} {\n  // FragmentMap consisting only of fragments defined directly in document, not\n  // including other fragments registered in the FragmentRegistry.\n  const fragmentMap = createFragmentMap(getFragmentDefinitions(document));\n  return {\n    fragmentMap,\n    lookupFragment(name) {\n      let def: FragmentDefinitionNode | null = fragmentMap[name];\n      if (!def && fragments) {\n        def = fragments.lookup(name);\n      }\n      return def || null;\n    },\n  };\n}\n", "import { invariant } from \"../../utilities/globals/index.js\";\nimport type { OptimisticDependencyFunction } from \"optimism\";\nimport { dep } from \"optimism\";\nimport { equal } from \"@wry/equality\";\nimport { Trie } from \"@wry/trie\";\n\nimport type {\n  StoreValue,\n  StoreObject,\n  Reference,\n} from \"../../utilities/index.js\";\nimport {\n  isReference,\n  makeReference,\n  DeepMerger,\n  maybeDeepFreeze,\n  canUseWeakMap,\n  isNonNullObject,\n} from \"../../utilities/index.js\";\nimport type { NormalizedCache, NormalizedCacheObject } from \"./types.js\";\nimport { hasOwn, fieldNameFromStoreName } from \"./helpers.js\";\nimport type { Policies, StorageType } from \"./policies.js\";\nimport type { Cache } from \"../core/types/Cache.js\";\nimport type {\n  SafeReadonly,\n  Modifier,\n  Modifiers,\n  ReadFieldOptions,\n  ToReferenceFunction,\n  CanReadFunction,\n  InvalidateModifier,\n  DeleteModifier,\n  ModifierDetails,\n} from \"../core/types/common.js\";\nimport type { DocumentNode, FieldNode, SelectionSetNode } from \"graphql\";\n\nconst DELETE: DeleteModifier = Object.create(null);\nconst delModifier: Modifier<any> = () => DELETE;\nconst INVALIDATE: InvalidateModifier = Object.create(null);\n\nexport abstract class EntityStore implements NormalizedCache {\n  protected data: NormalizedCacheObject = Object.create(null);\n\n  constructor(\n    public readonly policies: Policies,\n    public readonly group: CacheGroup\n  ) {}\n\n  public abstract addLayer(\n    layerId: string,\n    replay: (layer: EntityStore) => any\n  ): Layer;\n\n  public abstract removeLayer(layerId: string): EntityStore;\n\n  // Although the EntityStore class is abstract, it contains concrete\n  // implementations of the various NormalizedCache interface methods that\n  // are inherited by the Root and Layer subclasses.\n\n  public toObject(): NormalizedCacheObject {\n    return { ...this.data };\n  }\n\n  public has(dataId: string): boolean {\n    return this.lookup(dataId, true) !== void 0;\n  }\n\n  public get(dataId: string, fieldName: string): StoreValue {\n    this.group.depend(dataId, fieldName);\n    if (hasOwn.call(this.data, dataId)) {\n      const storeObject = this.data[dataId];\n      if (storeObject && hasOwn.call(storeObject, fieldName)) {\n        return storeObject[fieldName];\n      }\n    }\n    if (\n      fieldName === \"__typename\" &&\n      hasOwn.call(this.policies.rootTypenamesById, dataId)\n    ) {\n      return this.policies.rootTypenamesById[dataId];\n    }\n    if (this instanceof Layer) {\n      return this.parent.get(dataId, fieldName);\n    }\n  }\n\n  protected lookup(\n    dataId: string,\n    dependOnExistence?: boolean\n  ): StoreObject | undefined {\n    // The has method (above) calls lookup with dependOnExistence = true, so\n    // that it can later be invalidated when we add or remove a StoreObject for\n    // this dataId. Any consumer who cares about the contents of the StoreObject\n    // should not rely on this dependency, since the contents could change\n    // without the object being added or removed.\n    if (dependOnExistence) this.group.depend(dataId, \"__exists\");\n\n    if (hasOwn.call(this.data, dataId)) {\n      return this.data[dataId];\n    }\n\n    if (this instanceof Layer) {\n      return this.parent.lookup(dataId, dependOnExistence);\n    }\n\n    if (this.policies.rootTypenamesById[dataId]) {\n      return Object.create(null);\n    }\n  }\n\n  public merge(older: string | StoreObject, newer: StoreObject | string): void {\n    let dataId: string | undefined;\n\n    // Convert unexpected references to ID strings.\n    if (isReference(older)) older = older.__ref;\n    if (isReference(newer)) newer = newer.__ref;\n\n    const existing: StoreObject | undefined =\n      typeof older === \"string\" ? this.lookup((dataId = older)) : older;\n\n    const incoming: StoreObject | undefined =\n      typeof newer === \"string\" ? this.lookup((dataId = newer)) : newer;\n\n    // If newer was a string ID, but that ID was not defined in this store,\n    // then there are no fields to be merged, so we're done.\n    if (!incoming) return;\n\n    invariant(typeof dataId === \"string\", \"store.merge expects a string ID\");\n\n    const merged: StoreObject = new DeepMerger(storeObjectReconciler).merge(\n      existing,\n      incoming\n    );\n\n    // Even if merged === existing, existing may have come from a lower\n    // layer, so we always need to set this.data[dataId] on this level.\n    this.data[dataId] = merged;\n\n    if (merged !== existing) {\n      delete this.refs[dataId];\n      if (this.group.caching) {\n        const fieldsToDirty: Record<string, 1> = Object.create(null);\n\n        // If we added a new StoreObject where there was previously none, dirty\n        // anything that depended on the existence of this dataId, such as the\n        // EntityStore#has method.\n        if (!existing) fieldsToDirty.__exists = 1;\n\n        // Now invalidate dependents who called getFieldValue for any fields\n        // that are changing as a result of this merge.\n        Object.keys(incoming).forEach((storeFieldName) => {\n          if (\n            !existing ||\n            existing[storeFieldName] !== merged[storeFieldName]\n          ) {\n            // Always dirty the full storeFieldName, which may include\n            // serialized arguments following the fieldName prefix.\n            fieldsToDirty[storeFieldName] = 1;\n\n            // Also dirty fieldNameFromStoreName(storeFieldName) if it's\n            // different from storeFieldName and this field does not have\n            // keyArgs configured, because that means the cache can't make\n            // any assumptions about how field values with the same field\n            // name but different arguments might be interrelated, so it\n            // must err on the side of invalidating all field values that\n            // share the same short fieldName, regardless of arguments.\n            const fieldName = fieldNameFromStoreName(storeFieldName);\n            if (\n              fieldName !== storeFieldName &&\n              !this.policies.hasKeyArgs(merged.__typename, fieldName)\n            ) {\n              fieldsToDirty[fieldName] = 1;\n            }\n\n            // If merged[storeFieldName] has become undefined, and this is the\n            // Root layer, actually delete the property from the merged object,\n            // which is guaranteed to have been created fresh in this method.\n            if (merged[storeFieldName] === void 0 && !(this instanceof Layer)) {\n              delete merged[storeFieldName];\n            }\n          }\n        });\n\n        if (\n          fieldsToDirty.__typename &&\n          !(existing && existing.__typename) &&\n          // Since we return default root __typename strings\n          // automatically from store.get, we don't need to dirty the\n          // ROOT_QUERY.__typename field if merged.__typename is equal\n          // to the default string (usually \"Query\").\n          this.policies.rootTypenamesById[dataId] === merged.__typename\n        ) {\n          delete fieldsToDirty.__typename;\n        }\n\n        Object.keys(fieldsToDirty).forEach((fieldName) =>\n          this.group.dirty(dataId as string, fieldName)\n        );\n      }\n    }\n  }\n\n  public modify(\n    dataId: string,\n    fields: Modifier<any> | Modifiers<Record<string, any>>\n  ): boolean {\n    const storeObject = this.lookup(dataId);\n\n    if (storeObject) {\n      const changedFields: Record<string, any> = Object.create(null);\n      let needToMerge = false;\n      let allDeleted = true;\n\n      const sharedDetails = {\n        DELETE,\n        INVALIDATE,\n        isReference,\n        toReference: this.toReference,\n        canRead: this.canRead,\n        readField: <V = StoreValue>(\n          fieldNameOrOptions: string | ReadFieldOptions,\n          from?: StoreObject | Reference\n        ) =>\n          this.policies.readField<V>(\n            typeof fieldNameOrOptions === \"string\" ?\n              {\n                fieldName: fieldNameOrOptions,\n                from: from || makeReference(dataId),\n              }\n            : fieldNameOrOptions,\n            { store: this }\n          ),\n      } satisfies Partial<ModifierDetails>;\n\n      Object.keys(storeObject).forEach((storeFieldName) => {\n        const fieldName = fieldNameFromStoreName(storeFieldName);\n        let fieldValue = storeObject[storeFieldName];\n        if (fieldValue === void 0) return;\n        const modify: Modifier<StoreValue> | undefined =\n          typeof fields === \"function\" ? fields : (\n            fields[storeFieldName] || fields[fieldName]\n          );\n        if (modify) {\n          let newValue =\n            modify === delModifier ? DELETE : (\n              modify(maybeDeepFreeze(fieldValue), {\n                ...sharedDetails,\n                fieldName,\n                storeFieldName,\n                storage: this.getStorage(dataId, storeFieldName),\n              })\n            );\n          if (newValue === INVALIDATE) {\n            this.group.dirty(dataId, storeFieldName);\n          } else {\n            if (newValue === DELETE) newValue = void 0;\n            if (newValue !== fieldValue) {\n              changedFields[storeFieldName] = newValue;\n              needToMerge = true;\n              fieldValue = newValue;\n\n              if (__DEV__) {\n                const checkReference = (ref: Reference) => {\n                  if (this.lookup(ref.__ref) === undefined) {\n                    invariant.warn(\n                      \"cache.modify: You are trying to write a Reference that is not part of the store: %o\\n\" +\n                        \"Please make sure to set the `mergeIntoStore` parameter to `true` when creating a Reference that is not part of the store yet:\\n\" +\n                        \"`toReference(object, true)`\",\n                      ref\n                    );\n                    return true;\n                  }\n                };\n                if (isReference(newValue)) {\n                  checkReference(newValue);\n                } else if (Array.isArray(newValue)) {\n                  // Warn about writing \"mixed\" arrays of Reference and non-Reference objects\n                  let seenReference: boolean = false;\n                  let someNonReference: unknown;\n                  for (const value of newValue) {\n                    if (isReference(value)) {\n                      seenReference = true;\n                      if (checkReference(value)) break;\n                    } else {\n                      // Do not warn on primitive values, since those could never be represented\n                      // by a reference. This is a valid (albeit uncommon) use case.\n                      if (typeof value === \"object\" && !!value) {\n                        const [id] = this.policies.identify(value);\n                        // check if object could even be referenced, otherwise we are not interested in it for this warning\n                        if (id) {\n                          someNonReference = value;\n                        }\n                      }\n                    }\n                    if (seenReference && someNonReference !== undefined) {\n                      invariant.warn(\n                        \"cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\\n\" +\n                          \"Please convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`.\",\n                        someNonReference\n                      );\n                      break;\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n        if (fieldValue !== void 0) {\n          allDeleted = false;\n        }\n      });\n\n      if (needToMerge) {\n        this.merge(dataId, changedFields);\n\n        if (allDeleted) {\n          if (this instanceof Layer) {\n            this.data[dataId] = void 0;\n          } else {\n            delete this.data[dataId];\n          }\n          this.group.dirty(dataId, \"__exists\");\n        }\n\n        return true;\n      }\n    }\n\n    return false;\n  }\n\n  // If called with only one argument, removes the entire entity\n  // identified by dataId. If called with a fieldName as well, removes all\n  // fields of that entity whose names match fieldName according to the\n  // fieldNameFromStoreName helper function. If called with a fieldName\n  // and variables, removes all fields of that entity whose names match fieldName\n  // and whose arguments when cached exactly match the variables passed.\n  public delete(\n    dataId: string,\n    fieldName?: string,\n    args?: Record<string, any>\n  ) {\n    const storeObject = this.lookup(dataId);\n    if (storeObject) {\n      const typename = this.getFieldValue<string>(storeObject, \"__typename\");\n      const storeFieldName =\n        fieldName && args ?\n          this.policies.getStoreFieldName({ typename, fieldName, args })\n        : fieldName;\n      return this.modify(\n        dataId,\n        storeFieldName ?\n          {\n            [storeFieldName]: delModifier,\n          }\n        : delModifier\n      );\n    }\n    return false;\n  }\n\n  public evict(options: Cache.EvictOptions, limit: EntityStore): boolean {\n    let evicted = false;\n    if (options.id) {\n      if (hasOwn.call(this.data, options.id)) {\n        evicted = this.delete(options.id, options.fieldName, options.args);\n      }\n      if (this instanceof Layer && this !== limit) {\n        evicted = this.parent.evict(options, limit) || evicted;\n      }\n      // Always invalidate the field to trigger rereading of watched\n      // queries, even if no cache data was modified by the eviction,\n      // because queries may depend on computed fields with custom read\n      // functions, whose values are not stored in the EntityStore.\n      if (options.fieldName || evicted) {\n        this.group.dirty(options.id, options.fieldName || \"__exists\");\n      }\n    }\n    return evicted;\n  }\n\n  public clear(): void {\n    this.replace(null);\n  }\n\n  public extract(): NormalizedCacheObject {\n    const obj = this.toObject();\n    const extraRootIds: string[] = [];\n    this.getRootIdSet().forEach((id) => {\n      if (!hasOwn.call(this.policies.rootTypenamesById, id)) {\n        extraRootIds.push(id);\n      }\n    });\n    if (extraRootIds.length) {\n      obj.__META = { extraRootIds: extraRootIds.sort() };\n    }\n    return obj;\n  }\n\n  public replace(newData: NormalizedCacheObject | null): void {\n    Object.keys(this.data).forEach((dataId) => {\n      if (!(newData && hasOwn.call(newData, dataId))) {\n        this.delete(dataId);\n      }\n    });\n    if (newData) {\n      const { __META, ...rest } = newData;\n      Object.keys(rest).forEach((dataId) => {\n        this.merge(dataId, rest[dataId] as StoreObject);\n      });\n      if (__META) {\n        __META.extraRootIds.forEach(this.retain, this);\n      }\n    }\n  }\n\n  public abstract getStorage(\n    idOrObj: string | StoreObject,\n    ...storeFieldNames: (string | number)[]\n  ): StorageType;\n\n  // Maps root entity IDs to the number of times they have been retained, minus\n  // the number of times they have been released. Retained entities keep other\n  // entities they reference (even indirectly) from being garbage collected.\n  private rootIds: {\n    [rootId: string]: number;\n  } = Object.create(null);\n\n  public retain(rootId: string): number {\n    return (this.rootIds[rootId] = (this.rootIds[rootId] || 0) + 1);\n  }\n\n  public release(rootId: string): number {\n    if (this.rootIds[rootId] > 0) {\n      const count = --this.rootIds[rootId];\n      if (!count) delete this.rootIds[rootId];\n      return count;\n    }\n    return 0;\n  }\n\n  // Return a Set<string> of all the ID strings that have been retained by\n  // this layer/root *and* any layers/roots beneath it.\n  public getRootIdSet(ids = new Set<string>()) {\n    Object.keys(this.rootIds).forEach(ids.add, ids);\n    if (this instanceof Layer) {\n      this.parent.getRootIdSet(ids);\n    } else {\n      // Official singleton IDs like ROOT_QUERY and ROOT_MUTATION are\n      // always considered roots for garbage collection, regardless of\n      // their retainment counts in this.rootIds.\n      Object.keys(this.policies.rootTypenamesById).forEach(ids.add, ids);\n    }\n    return ids;\n  }\n\n  // The goal of garbage collection is to remove IDs from the Root layer of the\n  // store that are no longer reachable starting from any IDs that have been\n  // explicitly retained (see retain and release, above). Returns an array of\n  // dataId strings that were removed from the store.\n  public gc() {\n    const ids = this.getRootIdSet();\n    const snapshot = this.toObject();\n    ids.forEach((id) => {\n      if (hasOwn.call(snapshot, id)) {\n        // Because we are iterating over an ECMAScript Set, the IDs we add here\n        // will be visited in later iterations of the forEach loop only if they\n        // were not previously contained by the Set.\n        Object.keys(this.findChildRefIds(id)).forEach(ids.add, ids);\n        // By removing IDs from the snapshot object here, we protect them from\n        // getting removed from the root store layer below.\n        delete snapshot[id];\n      }\n    });\n    const idsToRemove = Object.keys(snapshot);\n    if (idsToRemove.length) {\n      let root: EntityStore = this;\n      while (root instanceof Layer) root = root.parent;\n      idsToRemove.forEach((id) => root.delete(id));\n    }\n    return idsToRemove;\n  }\n\n  // Lazily tracks { __ref: <dataId> } strings contained by this.data[dataId].\n  private refs: {\n    [dataId: string]: Record<string, true>;\n  } = Object.create(null);\n\n  public findChildRefIds(dataId: string): Record<string, true> {\n    if (!hasOwn.call(this.refs, dataId)) {\n      const found = (this.refs[dataId] = Object.create(null));\n      const root = this.data[dataId];\n      if (!root) return found;\n\n      const workSet = new Set<Record<string | number, any>>([root]);\n      // Within the store, only arrays and objects can contain child entity\n      // references, so we can prune the traversal using this predicate:\n      workSet.forEach((obj) => {\n        if (isReference(obj)) {\n          found[obj.__ref] = true;\n          // In rare cases, a { __ref } Reference object may have other fields.\n          // This often indicates a mismerging of References with StoreObjects,\n          // but garbage collection should not be fooled by a stray __ref\n          // property in a StoreObject (ignoring all the other fields just\n          // because the StoreObject looks like a Reference). To avoid this\n          // premature termination of findChildRefIds recursion, we fall through\n          // to the code below, which will handle any other properties of obj.\n        }\n        if (isNonNullObject(obj)) {\n          Object.keys(obj).forEach((key) => {\n            const child = obj[key];\n            // No need to add primitive values to the workSet, since they cannot\n            // contain reference objects.\n            if (isNonNullObject(child)) {\n              workSet.add(child);\n            }\n          });\n        }\n      });\n    }\n    return this.refs[dataId];\n  }\n\n  // Used to compute cache keys specific to this.group.\n  /** overload for `InMemoryCache.maybeBroadcastWatch` */\n  public makeCacheKey(\n    document: DocumentNode,\n    callback: Cache.WatchCallback<any>,\n    details: string\n  ): object;\n  /** overload for `StoreReader.executeSelectionSet` */\n  public makeCacheKey(\n    selectionSet: SelectionSetNode,\n    parent: string /* = ( Reference.__ref ) */ | StoreObject,\n    varString: string | undefined,\n    canonizeResults: boolean\n  ): object;\n  /** overload for `StoreReader.executeSubSelectedArray` */\n  public makeCacheKey(\n    field: FieldNode,\n    array: readonly any[],\n    varString: string | undefined\n  ): object;\n  /** @deprecated This is only meant for internal usage,\n   * in your own code please use a `Trie` instance instead. */\n  public makeCacheKey(...args: any[]): object;\n  public makeCacheKey() {\n    return this.group.keyMaker.lookupArray(arguments);\n  }\n\n  // Bound function that can be passed around to provide easy access to fields\n  // of Reference objects as well as ordinary objects.\n  public getFieldValue = <T = StoreValue>(\n    objectOrReference: StoreObject | Reference | undefined,\n    storeFieldName: string\n  ) =>\n    maybeDeepFreeze(\n      isReference(objectOrReference) ?\n        this.get(objectOrReference.__ref, storeFieldName)\n      : objectOrReference && objectOrReference[storeFieldName]\n    ) as SafeReadonly<T>;\n\n  // Returns true for non-normalized StoreObjects and non-dangling\n  // References, indicating that readField(name, objOrRef) has a chance of\n  // working. Useful for filtering out dangling references from lists.\n  public canRead: CanReadFunction = (objOrRef) => {\n    return isReference(objOrRef) ?\n        this.has(objOrRef.__ref)\n      : typeof objOrRef === \"object\";\n  };\n\n  // Bound function that converts an id or an object with a __typename and\n  // primary key fields to a Reference object. If called with a Reference object,\n  // that same Reference object is returned. Pass true for mergeIntoStore to persist\n  // an object into the store.\n  public toReference: ToReferenceFunction = (objOrIdOrRef, mergeIntoStore) => {\n    if (typeof objOrIdOrRef === \"string\") {\n      return makeReference(objOrIdOrRef);\n    }\n\n    if (isReference(objOrIdOrRef)) {\n      return objOrIdOrRef;\n    }\n\n    const [id] = this.policies.identify(objOrIdOrRef);\n\n    if (id) {\n      const ref = makeReference(id);\n      if (mergeIntoStore) {\n        this.merge(id, objOrIdOrRef);\n      }\n      return ref;\n    }\n  };\n}\n\nexport type FieldValueGetter = EntityStore[\"getFieldValue\"];\n\n// A single CacheGroup represents a set of one or more EntityStore objects,\n// typically the Root store in a CacheGroup by itself, and all active Layer\n// stores in a group together. A single EntityStore object belongs to only\n// one CacheGroup, store.group. The CacheGroup is responsible for tracking\n// dependencies, so store.group is helpful for generating unique keys for\n// cached results that need to be invalidated when/if those dependencies\n// change. If we used the EntityStore objects themselves as cache keys (that\n// is, store rather than store.group), the cache would become unnecessarily\n// fragmented by all the different Layer objects. Instead, the CacheGroup\n// approach allows all optimistic Layer objects in the same linked list to\n// belong to one CacheGroup, with the non-optimistic Root object belonging\n// to another CacheGroup, allowing resultCaching dependencies to be tracked\n// separately for optimistic and non-optimistic entity data.\nclass CacheGroup {\n  private d: OptimisticDependencyFunction<string> | null = null;\n\n  // Used by the EntityStore#makeCacheKey method to compute cache keys\n  // specific to this CacheGroup.\n  public keyMaker!: Trie<object>;\n\n  constructor(\n    public readonly caching: boolean,\n    private parent: CacheGroup | null = null\n  ) {\n    this.resetCaching();\n  }\n\n  public resetCaching() {\n    this.d = this.caching ? dep<string>() : null;\n    this.keyMaker = new Trie(canUseWeakMap);\n  }\n\n  public depend(dataId: string, storeFieldName: string) {\n    if (this.d) {\n      this.d(makeDepKey(dataId, storeFieldName));\n      const fieldName = fieldNameFromStoreName(storeFieldName);\n      if (fieldName !== storeFieldName) {\n        // Fields with arguments that contribute extra identifying\n        // information to the fieldName (thus forming the storeFieldName)\n        // depend not only on the full storeFieldName but also on the\n        // short fieldName, so the field can be invalidated using either\n        // level of specificity.\n        this.d(makeDepKey(dataId, fieldName));\n      }\n      if (this.parent) {\n        this.parent.depend(dataId, storeFieldName);\n      }\n    }\n  }\n\n  public dirty(dataId: string, storeFieldName: string) {\n    if (this.d) {\n      this.d.dirty(\n        makeDepKey(dataId, storeFieldName),\n        // When storeFieldName === \"__exists\", that means the entity identified\n        // by dataId has either disappeared from the cache or was newly added,\n        // so the result caching system would do well to \"forget everything it\n        // knows\" about that object. To achieve that kind of invalidation, we\n        // not only dirty the associated result cache entry, but also remove it\n        // completely from the dependency graph. For the optimism implementation\n        // details, see https://github.com/benjamn/optimism/pull/195.\n        storeFieldName === \"__exists\" ? \"forget\" : \"setDirty\"\n      );\n    }\n  }\n}\n\nfunction makeDepKey(dataId: string, storeFieldName: string) {\n  // Since field names cannot have '#' characters in them, this method\n  // of joining the field name and the ID should be unambiguous, and much\n  // cheaper than JSON.stringify([dataId, fieldName]).\n  return storeFieldName + \"#\" + dataId;\n}\n\nexport function maybeDependOnExistenceOfEntity(\n  store: NormalizedCache,\n  entityId: string\n) {\n  if (supportsResultCaching(store)) {\n    // We use this pseudo-field __exists elsewhere in the EntityStore code to\n    // represent changes in the existence of the entity object identified by\n    // entityId. This dependency gets reliably dirtied whenever an object with\n    // this ID is deleted (or newly created) within this group, so any result\n    // cache entries (for example, StoreReader#executeSelectionSet results) that\n    // depend on __exists for this entityId will get dirtied as well, leading to\n    // the eventual recomputation (instead of reuse) of those result objects the\n    // next time someone reads them from the cache.\n    store.group.depend(entityId, \"__exists\");\n  }\n}\n\nexport namespace EntityStore {\n  // Refer to this class as EntityStore.Root outside this namespace.\n  export class Root extends EntityStore {\n    constructor({\n      policies,\n      resultCaching = true,\n      seed,\n    }: {\n      policies: Policies;\n      resultCaching?: boolean;\n      seed?: NormalizedCacheObject;\n    }) {\n      super(policies, new CacheGroup(resultCaching));\n      if (seed) this.replace(seed);\n    }\n\n    public readonly stump = new Stump(this);\n\n    public addLayer(\n      layerId: string,\n      replay: (layer: EntityStore) => any\n    ): Layer {\n      // Adding an optimistic Layer on top of the Root actually adds the Layer\n      // on top of the Stump, so the Stump always comes between the Root and\n      // any Layer objects that we've added.\n      return this.stump.addLayer(layerId, replay);\n    }\n\n    public removeLayer(): Root {\n      // Never remove the root layer.\n      return this;\n    }\n\n    public readonly storageTrie = new Trie<StorageType>(canUseWeakMap);\n    public getStorage(): StorageType {\n      return this.storageTrie.lookupArray(arguments);\n    }\n  }\n}\n\n// Not exported, since all Layer instances are created by the addLayer method\n// of the EntityStore.Root class.\nclass Layer extends EntityStore {\n  constructor(\n    public readonly id: string,\n    public readonly parent: EntityStore,\n    public readonly replay: (layer: EntityStore) => any,\n    public readonly group: CacheGroup\n  ) {\n    super(parent.policies, group);\n    replay(this);\n  }\n\n  public addLayer(layerId: string, replay: (layer: EntityStore) => any): Layer {\n    return new Layer(layerId, this, replay, this.group);\n  }\n\n  public removeLayer(layerId: string): EntityStore {\n    // Remove all instances of the given id, not just the first one.\n    const parent = this.parent.removeLayer(layerId);\n\n    if (layerId === this.id) {\n      if (this.group.caching) {\n        // Dirty every ID we're removing. Technically we might be able to avoid\n        // dirtying fields that have values in higher layers, but we don't have\n        // easy access to higher layers here, and we're about to recreate those\n        // layers anyway (see parent.addLayer below).\n        Object.keys(this.data).forEach((dataId) => {\n          const ownStoreObject = this.data[dataId];\n          const parentStoreObject = parent[\"lookup\"](dataId);\n          if (!parentStoreObject) {\n            // The StoreObject identified by dataId was defined in this layer\n            // but will be undefined in the parent layer, so we can delete the\n            // whole entity using this.delete(dataId). Since we're about to\n            // throw this layer away, the only goal of this deletion is to dirty\n            // the removed fields.\n            this.delete(dataId);\n          } else if (!ownStoreObject) {\n            // This layer had an entry for dataId but it was undefined, which\n            // means the entity was deleted in this layer, and it's about to\n            // become undeleted when we remove this layer, so we need to dirty\n            // all fields that are about to be reexposed.\n            this.group.dirty(dataId, \"__exists\");\n            Object.keys(parentStoreObject).forEach((storeFieldName) => {\n              this.group.dirty(dataId, storeFieldName);\n            });\n          } else if (ownStoreObject !== parentStoreObject) {\n            // If ownStoreObject is not exactly the same as parentStoreObject,\n            // dirty any fields whose values will change as a result of this\n            // removal.\n            Object.keys(ownStoreObject).forEach((storeFieldName) => {\n              if (\n                !equal(\n                  ownStoreObject[storeFieldName],\n                  parentStoreObject[storeFieldName]\n                )\n              ) {\n                this.group.dirty(dataId, storeFieldName);\n              }\n            });\n          }\n        });\n      }\n\n      return parent;\n    }\n\n    // No changes are necessary if the parent chain remains identical.\n    if (parent === this.parent) return this;\n\n    // Recreate this layer on top of the new parent.\n    return parent.addLayer(this.id, this.replay);\n  }\n\n  public toObject(): NormalizedCacheObject {\n    return {\n      ...this.parent.toObject(),\n      ...this.data,\n    };\n  }\n\n  public findChildRefIds(dataId: string): Record<string, true> {\n    const fromParent = this.parent.findChildRefIds(dataId);\n    return hasOwn.call(this.data, dataId) ?\n        {\n          ...fromParent,\n          ...super.findChildRefIds(dataId),\n        }\n      : fromParent;\n  }\n\n  public getStorage(): StorageType {\n    let p: EntityStore = this.parent;\n    while ((p as Layer).parent) p = (p as Layer).parent;\n    return p.getStorage.apply(\n      p,\n      // @ts-expect-error\n      arguments\n    );\n  }\n}\n\n// Represents a Layer permanently installed just above the Root, which allows\n// reading optimistically (and registering optimistic dependencies) even when\n// no optimistic layers are currently active. The stump.group CacheGroup object\n// is shared by any/all Layer objects added on top of the Stump.\nclass Stump extends Layer {\n  constructor(root: EntityStore.Root) {\n    super(\n      \"EntityStore.Stump\",\n      root,\n      () => {},\n      new CacheGroup(root.group.caching, root.group)\n    );\n  }\n\n  public removeLayer() {\n    // Never remove the Stump layer.\n    return this;\n  }\n\n  public merge(older: string | StoreObject, newer: string | StoreObject) {\n    // We never want to write any data into the Stump, so we forward any merge\n    // calls to the Root instead. Another option here would be to throw an\n    // exception, but the toReference(object, true) function can sometimes\n    // trigger Stump writes (which used to be Root writes, before the Stump\n    // concept was introduced).\n    return this.parent.merge(older, newer);\n  }\n}\n\nfunction storeObjectReconciler(\n  existingObject: StoreObject,\n  incomingObject: StoreObject,\n  property: string | number\n): StoreValue {\n  const existingValue = existingObject[property];\n  const incomingValue = incomingObject[property];\n  // Wherever there is a key collision, prefer the incoming value, unless\n  // it is deeply equal to the existing value. It's worth checking deep\n  // equality here (even though blindly returning incoming would be\n  // logically correct) because preserving the referential identity of\n  // existing data can prevent needless rereading and rerendering.\n  return equal(existingValue, incomingValue) ? existingValue : incomingValue;\n}\n\nexport function supportsResultCaching(store: any): store is EntityStore {\n  // When result caching is disabled, store.depend will be null.\n  return !!(store instanceof EntityStore && store.group.caching);\n}\n", "import { Trie } from \"@wry/trie\";\nimport {\n  canUseWeakMap,\n  canUseWeakSet,\n  isNonNullObject as isObjectOrArray,\n} from \"../../utilities/index.js\";\nimport { isArray } from \"./helpers.js\";\n\nfunction shallowCopy<T>(value: T): T {\n  if (isObjectOrArray(value)) {\n    return isArray(value) ?\n        (value.slice(0) as any as T)\n      : { __proto__: Object.getPrototypeOf(value), ...value };\n  }\n  return value;\n}\n\n// When programmers talk about the \"canonical form\" of an object, they\n// usually have the following meaning in mind, which I've copied from\n// https://en.wiktionary.org/wiki/canonical_form:\n//\n// 1. A standard or normal presentation of a mathematical entity [or\n//    object]. A canonical form is an element of a set of representatives\n//    of equivalence classes of forms such that there is a function or\n//    procedure which projects every element of each equivalence class\n//    onto that one element, the canonical form of that equivalence\n//    class. The canonical form is expected to be simpler than the rest of\n//    the forms in some way.\n//\n// That's a long-winded way of saying any two objects that have the same\n// canonical form may be considered equivalent, even if they are !==,\n// which usually means the objects are structurally equivalent (deeply\n// equal), but don't necessarily use the same memory.\n//\n// Like a literary or musical canon, this ObjectCanon class represents a\n// collection of unique canonical items (JavaScript objects), with the\n// important property that canon.admit(a) === canon.admit(b) if a and b\n// are deeply equal to each other. In terms of the definition above, the\n// canon.admit method is the \"function or procedure which projects every\"\n// object \"onto that one element, the canonical form.\"\n//\n// In the worst case, the canonicalization process may involve looking at\n// every property in the provided object tree, so it takes the same order\n// of time as deep equality checking. Fortunately, already-canonicalized\n// objects are returned immediately from canon.admit, so the presence of\n// canonical subtrees tends to speed up canonicalization.\n//\n// Since consumers of canonical objects can check for deep equality in\n// constant time, canonicalizing cache results can massively improve the\n// performance of application code that skips re-rendering unchanged\n// results, such as \"pure\" UI components in a framework like React.\n//\n// Of course, since canonical objects may be shared widely between\n// unrelated consumers, it's important to think of them as immutable, even\n// though they are not actually frozen with Object.freeze in production,\n// due to the extra performance overhead that comes with frozen objects.\n//\n// Custom scalar objects whose internal class name is neither Array nor\n// Object can be included safely in the admitted tree, but they will not\n// be replaced with a canonical version (to put it another way, they are\n// assumed to be canonical already).\n//\n// If we ignore custom objects, no detection of cycles or repeated object\n// references is currently required by the StoreReader class, since\n// GraphQL result objects are JSON-serializable trees (and thus contain\n// neither cycles nor repeated subtrees), so we can avoid the complexity\n// of keeping track of objects we've already seen during the recursion of\n// the admit method.\n//\n// In the future, we may consider adding additional cases to the switch\n// statement to handle other common object types, such as \"[object Date]\"\n// objects, as needed.\nexport class ObjectCanon {\n  // Set of all canonical objects this ObjectCanon has admitted, allowing\n  // canon.admit to return previously-canonicalized objects immediately.\n  private known = new (canUseWeakSet ? WeakSet : Set)<object>();\n\n  // Efficient storage/lookup structure for canonical objects.\n  private pool = new Trie<{\n    array?: any[];\n    object?: Record<string, any>;\n    keys?: SortedKeysInfo;\n  }>(canUseWeakMap);\n\n  public isKnown(value: any): boolean {\n    return isObjectOrArray(value) && this.known.has(value);\n  }\n\n  // Make the ObjectCanon assume this value has already been\n  // canonicalized.\n  private passes = new WeakMap<object, object>();\n  public pass<T>(value: T): T;\n  public pass(value: any) {\n    if (isObjectOrArray(value)) {\n      const copy = shallowCopy(value);\n      this.passes.set(copy, value);\n      return copy;\n    }\n    return value;\n  }\n\n  // Returns the canonical version of value.\n  public admit<T>(value: T): T;\n  public admit(value: any) {\n    if (isObjectOrArray(value)) {\n      const original = this.passes.get(value);\n      if (original) return original;\n\n      const proto = Object.getPrototypeOf(value);\n      switch (proto) {\n        case Array.prototype: {\n          if (this.known.has(value)) return value;\n          const array: any[] = (value as any[]).map(this.admit, this);\n          // Arrays are looked up in the Trie using their recursively\n          // canonicalized elements, and the known version of the array is\n          // preserved as node.array.\n          const node = this.pool.lookupArray(array);\n          if (!node.array) {\n            this.known.add((node.array = array));\n            // Since canonical arrays may be shared widely between\n            // unrelated consumers, it's important to regard them as\n            // immutable, even if they are not frozen in production.\n            if (__DEV__) {\n              Object.freeze(array);\n            }\n          }\n          return node.array;\n        }\n\n        case null:\n        case Object.prototype: {\n          if (this.known.has(value)) return value;\n          const proto = Object.getPrototypeOf(value);\n          const array = [proto];\n          const keys = this.sortedKeys(value);\n          array.push(keys.json);\n          const firstValueIndex = array.length;\n          keys.sorted.forEach((key) => {\n            array.push(this.admit((value as any)[key]));\n          });\n          // Objects are looked up in the Trie by their prototype (which\n          // is *not* recursively canonicalized), followed by a JSON\n          // representation of their (sorted) keys, followed by the\n          // sequence of recursively canonicalized values corresponding to\n          // those keys. To keep the final results unambiguous with other\n          // sequences (such as arrays that just happen to contain [proto,\n          // keys.json, value1, value2, ...]), the known version of the\n          // object is stored as node.object.\n          const node = this.pool.lookupArray(array);\n          if (!node.object) {\n            const obj = (node.object = Object.create(proto));\n            this.known.add(obj);\n            keys.sorted.forEach((key, i) => {\n              obj[key] = array[firstValueIndex + i];\n            });\n            // Since canonical objects may be shared widely between\n            // unrelated consumers, it's important to regard them as\n            // immutable, even if they are not frozen in production.\n            if (__DEV__) {\n              Object.freeze(obj);\n            }\n          }\n          return node.object;\n        }\n      }\n    }\n    return value;\n  }\n\n  // It's worthwhile to cache the sorting of arrays of strings, since the\n  // same initial unsorted arrays tend to be encountered many times.\n  // Fortunately, we can reuse the Trie machinery to look up the sorted\n  // arrays in linear time (which is faster than sorting large arrays).\n  private sortedKeys(obj: object) {\n    const keys = Object.keys(obj);\n    const node = this.pool.lookupArray(keys);\n    if (!node.keys) {\n      keys.sort();\n      const json = JSON.stringify(keys);\n      if (!(node.keys = this.keysByJSON.get(json))) {\n        this.keysByJSON.set(json, (node.keys = { sorted: keys, json }));\n      }\n    }\n    return node.keys;\n  }\n  // Arrays that contain the same elements in a different order can share\n  // the same SortedKeysInfo object, to save memory.\n  private keysByJSON = new Map<string, SortedKeysInfo>();\n\n  // This has to come last because it depends on keysByJSON.\n  public readonly empty = this.admit({});\n}\n\ntype SortedKeysInfo = {\n  sorted: string[];\n  json: string;\n};\n", "import { invariant, newInvariantError } from \"../../utilities/globals/index.js\";\n\nimport type { DocumentNode, FieldNode, SelectionSetNode } from \"graphql\";\nimport { Kind } from \"graphql\";\nimport type { OptimisticWrapperFunction } from \"optimism\";\nimport { wrap } from \"optimism\";\n\nimport type {\n  Reference,\n  StoreObject,\n  FragmentMap,\n  FragmentMapFunction,\n} from \"../../utilities/index.js\";\nimport {\n  isField,\n  resultKeyNameFromField,\n  isReference,\n  makeReference,\n  shouldInclude,\n  addTypenameToDocument,\n  getDefaultValues,\n  getMainDefinition,\n  getQueryDefinition,\n  getFragmentFromSelection,\n  maybeDeepFreeze,\n  mergeDeepArray,\n  DeepMerger,\n  isNonNullObject,\n  canUseWeakMap,\n  compact,\n  canonicalStringify,\n  cacheSizes,\n  defaultCacheSizes,\n} from \"../../utilities/index.js\";\nimport type { Cache } from \"../core/types/Cache.js\";\nimport type {\n  DiffQueryAgainstStoreOptions,\n  InMemoryCacheConfig,\n  NormalizedCache,\n  ReadMergeModifyContext,\n} from \"./types.js\";\nimport {\n  maybeDependOnExistenceOfEntity,\n  supportsResultCaching,\n} from \"./entityStore.js\";\nimport {\n  isArray,\n  extractFragmentContext,\n  getTypenameFromStoreObject,\n  shouldCanonizeResults,\n} from \"./helpers.js\";\nimport type { Policies } from \"./policies.js\";\nimport type { InMemoryCache } from \"./inMemoryCache.js\";\nimport type { MissingTree } from \"../core/types/common.js\";\nimport { MissingFieldError } from \"../core/types/common.js\";\nimport { ObjectCanon } from \"./object-canon.js\";\n\nexport type VariableMap = { [name: string]: any };\n\ninterface ReadContext extends ReadMergeModifyContext {\n  query: DocumentNode;\n  policies: Policies;\n  canonizeResults: boolean;\n  fragmentMap: FragmentMap;\n  lookupFragment: FragmentMapFunction;\n}\n\nexport type ExecResult<R = any> = {\n  result: R;\n  missing?: MissingTree;\n};\n\ntype ExecSelectionSetOptions = {\n  selectionSet: SelectionSetNode;\n  objectOrReference: StoreObject | Reference;\n  enclosingRef: Reference;\n  context: ReadContext;\n};\n\ntype ExecSubSelectedArrayOptions = {\n  field: FieldNode;\n  array: readonly any[];\n  enclosingRef: Reference;\n  context: ReadContext;\n};\n\nexport interface StoreReaderConfig {\n  cache: InMemoryCache;\n  addTypename?: boolean;\n  resultCacheMaxSize?: number;\n  canonizeResults?: boolean;\n  canon?: ObjectCanon;\n  fragments?: InMemoryCacheConfig[\"fragments\"];\n}\n\n// Arguments type after keyArgs translation.\ntype ExecSelectionSetKeyArgs = [\n  SelectionSetNode,\n  StoreObject | Reference,\n  ReadMergeModifyContext,\n  boolean,\n];\n\nfunction execSelectionSetKeyArgs(\n  options: ExecSelectionSetOptions\n): ExecSelectionSetKeyArgs {\n  return [\n    options.selectionSet,\n    options.objectOrReference,\n    options.context,\n    // We split out this property so we can pass different values\n    // independently without modifying options.context itself.\n    options.context.canonizeResults,\n  ];\n}\n\nexport class StoreReader {\n  // cached version of executeSelectionSet\n  private executeSelectionSet: OptimisticWrapperFunction<\n    [ExecSelectionSetOptions], // Actual arguments tuple type.\n    ExecResult, // Actual return type.\n    ExecSelectionSetKeyArgs\n  >;\n\n  // cached version of executeSubSelectedArray\n  private executeSubSelectedArray: OptimisticWrapperFunction<\n    [ExecSubSelectedArrayOptions],\n    ExecResult<any>,\n    [ExecSubSelectedArrayOptions]\n  >;\n\n  private config: {\n    cache: InMemoryCache;\n    addTypename: boolean;\n    resultCacheMaxSize?: number;\n    canonizeResults: boolean;\n    fragments?: InMemoryCacheConfig[\"fragments\"];\n  };\n\n  private knownResults = new (canUseWeakMap ? WeakMap : Map)<\n    Record<string, any>,\n    SelectionSetNode\n  >();\n\n  public canon: ObjectCanon;\n  public resetCanon() {\n    this.canon = new ObjectCanon();\n  }\n\n  constructor(config: StoreReaderConfig) {\n    this.config = compact(config, {\n      addTypename: config.addTypename !== false,\n      canonizeResults: shouldCanonizeResults(config),\n    });\n\n    this.canon = config.canon || new ObjectCanon();\n\n    // memoized functions in this class will be \"garbage-collected\"\n    // by recreating the whole `StoreReader` in\n    // `InMemoryCache.resetResultsCache`\n    // (triggered from `InMemoryCache.gc` with `resetResultCache: true`)\n    this.executeSelectionSet = wrap(\n      (options) => {\n        const { canonizeResults } = options.context;\n\n        const peekArgs = execSelectionSetKeyArgs(options);\n\n        // Negate this boolean option so we can find out if we've already read\n        // this result using the other boolean value.\n        peekArgs[3] = !canonizeResults;\n\n        const other = this.executeSelectionSet.peek(...peekArgs);\n\n        if (other) {\n          if (canonizeResults) {\n            return {\n              ...other,\n              // If we previously read this result without canonizing it, we can\n              // reuse that result simply by canonizing it now.\n              result: this.canon.admit(other.result),\n            };\n          }\n          // If we previously read this result with canonization enabled, we can\n          // return that canonized result as-is.\n          return other;\n        }\n\n        maybeDependOnExistenceOfEntity(\n          options.context.store,\n          options.enclosingRef.__ref\n        );\n\n        // Finally, if we didn't find any useful previous results, run the real\n        // execSelectionSetImpl method with the given options.\n        return this.execSelectionSetImpl(options);\n      },\n      {\n        max:\n          this.config.resultCacheMaxSize ||\n          cacheSizes[\"inMemoryCache.executeSelectionSet\"] ||\n          defaultCacheSizes[\"inMemoryCache.executeSelectionSet\"],\n        keyArgs: execSelectionSetKeyArgs,\n        // Note that the parameters of makeCacheKey are determined by the\n        // array returned by keyArgs.\n        makeCacheKey(selectionSet, parent, context, canonizeResults) {\n          if (supportsResultCaching(context.store)) {\n            return context.store.makeCacheKey(\n              selectionSet,\n              isReference(parent) ? parent.__ref : parent,\n              context.varString,\n              canonizeResults\n            );\n          }\n        },\n      }\n    );\n\n    this.executeSubSelectedArray = wrap(\n      (options: ExecSubSelectedArrayOptions) => {\n        maybeDependOnExistenceOfEntity(\n          options.context.store,\n          options.enclosingRef.__ref\n        );\n        return this.execSubSelectedArrayImpl(options);\n      },\n      {\n        max:\n          this.config.resultCacheMaxSize ||\n          cacheSizes[\"inMemoryCache.executeSubSelectedArray\"] ||\n          defaultCacheSizes[\"inMemoryCache.executeSubSelectedArray\"],\n        makeCacheKey({ field, array, context }) {\n          if (supportsResultCaching(context.store)) {\n            return context.store.makeCacheKey(field, array, context.varString);\n          }\n        },\n      }\n    );\n  }\n\n  /**\n   * Given a store and a query, return as much of the result as possible and\n   * identify if any data was missing from the store.\n   */\n  public diffQueryAgainstStore<T>({\n    store,\n    query,\n    rootId = \"ROOT_QUERY\",\n    variables,\n    returnPartialData = true,\n    canonizeResults = this.config.canonizeResults,\n  }: DiffQueryAgainstStoreOptions): Cache.DiffResult<T> {\n    const policies = this.config.cache.policies;\n\n    variables = {\n      ...getDefaultValues(getQueryDefinition(query)),\n      ...variables!,\n    };\n\n    const rootRef = makeReference(rootId);\n    const execResult = this.executeSelectionSet({\n      selectionSet: getMainDefinition(query).selectionSet,\n      objectOrReference: rootRef,\n      enclosingRef: rootRef,\n      context: {\n        store,\n        query,\n        policies,\n        variables,\n        varString: canonicalStringify(variables),\n        canonizeResults,\n        ...extractFragmentContext(query, this.config.fragments),\n      },\n    });\n\n    let missing: MissingFieldError[] | undefined;\n    if (execResult.missing) {\n      // For backwards compatibility we still report an array of\n      // MissingFieldError objects, even though there will only ever be at most\n      // one of them, now that all missing field error messages are grouped\n      // together in the execResult.missing tree.\n      missing = [\n        new MissingFieldError(\n          firstMissing(execResult.missing)!,\n          execResult.missing,\n          query,\n          variables\n        ),\n      ];\n      if (!returnPartialData) {\n        throw missing[0];\n      }\n    }\n\n    return {\n      result: execResult.result,\n      complete: !missing,\n      missing,\n    };\n  }\n\n  public isFresh(\n    result: Record<string, any>,\n    parent: StoreObject | Reference,\n    selectionSet: SelectionSetNode,\n    context: ReadMergeModifyContext\n  ): boolean {\n    if (\n      supportsResultCaching(context.store) &&\n      this.knownResults.get(result) === selectionSet\n    ) {\n      const latest = this.executeSelectionSet.peek(\n        selectionSet,\n        parent,\n        context,\n        // If result is canonical, then it could only have been previously\n        // cached by the canonizing version of executeSelectionSet, so we can\n        // avoid checking both possibilities here.\n        this.canon.isKnown(result)\n      );\n      if (latest && result === latest.result) {\n        return true;\n      }\n    }\n    return false;\n  }\n\n  // Uncached version of executeSelectionSet.\n  private execSelectionSetImpl({\n    selectionSet,\n    objectOrReference,\n    enclosingRef,\n    context,\n  }: ExecSelectionSetOptions): ExecResult {\n    if (\n      isReference(objectOrReference) &&\n      !context.policies.rootTypenamesById[objectOrReference.__ref] &&\n      !context.store.has(objectOrReference.__ref)\n    ) {\n      return {\n        result: this.canon.empty,\n        missing: `Dangling reference to missing ${objectOrReference.__ref} object`,\n      };\n    }\n\n    const { variables, policies, store } = context;\n    const typename = store.getFieldValue<string>(\n      objectOrReference,\n      \"__typename\"\n    );\n\n    const objectsToMerge: Record<string, any>[] = [];\n    let missing: MissingTree | undefined;\n    const missingMerger = new DeepMerger();\n\n    if (\n      this.config.addTypename &&\n      typeof typename === \"string\" &&\n      !policies.rootIdsByTypename[typename]\n    ) {\n      // Ensure we always include a default value for the __typename\n      // field, if we have one, and this.config.addTypename is true. Note\n      // that this field can be overridden by other merged objects.\n      objectsToMerge.push({ __typename: typename });\n    }\n\n    function handleMissing<T>(result: ExecResult<T>, resultName: string): T {\n      if (result.missing) {\n        missing = missingMerger.merge(missing, {\n          [resultName]: result.missing,\n        });\n      }\n      return result.result;\n    }\n\n    const workSet = new Set(selectionSet.selections);\n\n    workSet.forEach((selection) => {\n      // Omit fields with directives @skip(if: <truthy value>) or\n      // @include(if: <falsy value>).\n      if (!shouldInclude(selection, variables)) return;\n\n      if (isField(selection)) {\n        let fieldValue = policies.readField(\n          {\n            fieldName: selection.name.value,\n            field: selection,\n            variables: context.variables,\n            from: objectOrReference,\n          },\n          context\n        );\n\n        const resultName = resultKeyNameFromField(selection);\n\n        if (fieldValue === void 0) {\n          if (!addTypenameToDocument.added(selection)) {\n            missing = missingMerger.merge(missing, {\n              [resultName]: `Can't find field '${selection.name.value}' on ${\n                isReference(objectOrReference) ?\n                  objectOrReference.__ref + \" object\"\n                : \"object \" + JSON.stringify(objectOrReference, null, 2)\n              }`,\n            });\n          }\n        } else if (isArray(fieldValue)) {\n          if (fieldValue.length > 0) {\n            fieldValue = handleMissing(\n              this.executeSubSelectedArray({\n                field: selection,\n                array: fieldValue,\n                enclosingRef,\n                context,\n              }),\n              resultName\n            );\n          }\n        } else if (!selection.selectionSet) {\n          // If the field does not have a selection set, then we handle it\n          // as a scalar value. To keep this.canon from canonicalizing\n          // this value, we use this.canon.pass to wrap fieldValue in a\n          // Pass object that this.canon.admit will later unwrap as-is.\n          if (context.canonizeResults) {\n            fieldValue = this.canon.pass(fieldValue);\n          }\n        } else if (fieldValue != null) {\n          // In this case, because we know the field has a selection set,\n          // it must be trying to query a GraphQLObjectType, which is why\n          // fieldValue must be != null.\n          fieldValue = handleMissing(\n            this.executeSelectionSet({\n              selectionSet: selection.selectionSet,\n              objectOrReference: fieldValue as StoreObject | Reference,\n              enclosingRef: isReference(fieldValue) ? fieldValue : enclosingRef,\n              context,\n            }),\n            resultName\n          );\n        }\n\n        if (fieldValue !== void 0) {\n          objectsToMerge.push({ [resultName]: fieldValue });\n        }\n      } else {\n        const fragment = getFragmentFromSelection(\n          selection,\n          context.lookupFragment\n        );\n\n        if (!fragment && selection.kind === Kind.FRAGMENT_SPREAD) {\n          throw newInvariantError(`No fragment named %s`, selection.name.value);\n        }\n\n        if (fragment && policies.fragmentMatches(fragment, typename)) {\n          fragment.selectionSet.selections.forEach(workSet.add, workSet);\n        }\n      }\n    });\n\n    const result = mergeDeepArray(objectsToMerge);\n    const finalResult: ExecResult = { result, missing };\n    const frozen =\n      context.canonizeResults ?\n        this.canon.admit(finalResult)\n        // Since this.canon is normally responsible for freezing results (only in\n        // development), freeze them manually if canonization is disabled.\n      : maybeDeepFreeze(finalResult);\n\n    // Store this result with its selection set so that we can quickly\n    // recognize it again in the StoreReader#isFresh method.\n    if (frozen.result) {\n      this.knownResults.set(frozen.result, selectionSet);\n    }\n\n    return frozen;\n  }\n\n  // Uncached version of executeSubSelectedArray.\n  private execSubSelectedArrayImpl({\n    field,\n    array,\n    enclosingRef,\n    context,\n  }: ExecSubSelectedArrayOptions): ExecResult {\n    let missing: MissingTree | undefined;\n    let missingMerger = new DeepMerger<MissingTree[]>();\n\n    function handleMissing<T>(childResult: ExecResult<T>, i: number): T {\n      if (childResult.missing) {\n        missing = missingMerger.merge(missing, { [i]: childResult.missing });\n      }\n      return childResult.result;\n    }\n\n    if (field.selectionSet) {\n      array = array.filter(context.store.canRead);\n    }\n\n    array = array.map((item, i) => {\n      // null value in array\n      if (item === null) {\n        return null;\n      }\n\n      // This is a nested array, recurse\n      if (isArray(item)) {\n        return handleMissing(\n          this.executeSubSelectedArray({\n            field,\n            array: item,\n            enclosingRef,\n            context,\n          }),\n          i\n        );\n      }\n\n      // This is an object, run the selection set on it\n      if (field.selectionSet) {\n        return handleMissing(\n          this.executeSelectionSet({\n            selectionSet: field.selectionSet,\n            objectOrReference: item,\n            enclosingRef: isReference(item) ? item : enclosingRef,\n            context,\n          }),\n          i\n        );\n      }\n\n      if (__DEV__) {\n        assertSelectionSetForIdValue(context.store, field, item);\n      }\n\n      return item;\n    });\n\n    return {\n      result: context.canonizeResults ? this.canon.admit(array) : array,\n      missing,\n    };\n  }\n}\n\nfunction firstMissing(tree: MissingTree): string | undefined {\n  try {\n    JSON.stringify(tree, (_, value) => {\n      if (typeof value === \"string\") throw value;\n      return value;\n    });\n  } catch (result) {\n    return result as string;\n  }\n}\n\nfunction assertSelectionSetForIdValue(\n  store: NormalizedCache,\n  field: FieldNode,\n  fieldValue: any\n) {\n  if (!field.selectionSet) {\n    const workSet = new Set([fieldValue]);\n    workSet.forEach((value) => {\n      if (isNonNullObject(value)) {\n        invariant(\n          !isReference(value),\n          `Missing selection set for object of type %s returned for query field %s`,\n          getTypenameFromStoreObject(store, value),\n          field.name.value\n        );\n        Object.values(value).forEach(workSet.add, workSet);\n      }\n    });\n  }\n}\n", "import type { OptimisticDependencyFunction } from \"optimism\";\nimport { dep, Slot } from \"optimism\";\nimport type { InMemoryCache } from \"./inMemoryCache.js\";\nimport type { ApolloCache } from \"../../core/index.js\";\n\nexport interface ReactiveVar<T> {\n  (newValue?: T): T;\n  onNextChange(listener: ReactiveListener<T>): () => void;\n  attachCache(cache: ApolloCache<any>): this;\n  forgetCache(cache: ApolloCache<any>): boolean;\n}\n\nexport type ReactiveListener<T> = (value: T) => any;\n\n// Contextual Slot that acquires its value when custom read functions are\n// called in Policies#readField.\nexport const cacheSlot = new Slot<ApolloCache<any>>();\n\nconst cacheInfoMap = new WeakMap<\n  ApolloCache<any>,\n  {\n    vars: Set<ReactiveVar<any>>;\n    dep: OptimisticDependencyFunction<ReactiveVar<any>>;\n  }\n>();\n\nfunction getCacheInfo(cache: ApolloCache<any>) {\n  let info = cacheInfoMap.get(cache)!;\n  if (!info) {\n    cacheInfoMap.set(\n      cache,\n      (info = {\n        vars: new Set(),\n        dep: dep(),\n      })\n    );\n  }\n  return info;\n}\n\nexport function forgetCache(cache: ApolloCache<any>) {\n  getCacheInfo(cache).vars.forEach((rv) => rv.forgetCache(cache));\n}\n\n// Calling forgetCache(cache) serves to silence broadcasts and allows the\n// cache to be garbage collected. However, the varsByCache WeakMap\n// preserves the set of reactive variables that were previously associated\n// with this cache, which makes it possible to \"recall\" the cache at a\n// later time, by reattaching it to those variables. If the cache has been\n// garbage collected in the meantime, because it is no longer reachable,\n// you won't be able to call recallCache(cache), and the cache will\n// automatically disappear from the varsByCache WeakMap.\nexport function recallCache(cache: ApolloCache<any>) {\n  getCacheInfo(cache).vars.forEach((rv) => rv.attachCache(cache));\n}\n\nexport function makeVar<T>(value: T): ReactiveVar<T> {\n  const caches = new Set<ApolloCache<any>>();\n  const listeners = new Set<ReactiveListener<T>>();\n\n  const rv: ReactiveVar<T> = function (newValue) {\n    if (arguments.length > 0) {\n      if (value !== newValue) {\n        value = newValue!;\n        caches.forEach((cache) => {\n          // Invalidate any fields with custom read functions that\n          // consumed this variable, so query results involving those\n          // fields will be recomputed the next time we read them.\n          getCacheInfo(cache).dep.dirty(rv);\n          // Broadcast changes to any caches that have previously read\n          // from this variable.\n          broadcast(cache);\n        });\n        // Finally, notify any listeners added via rv.onNextChange.\n        const oldListeners = Array.from(listeners);\n        listeners.clear();\n        oldListeners.forEach((listener) => listener(value));\n      }\n    } else {\n      // When reading from the variable, obtain the current cache from\n      // context via cacheSlot. This isn't entirely foolproof, but it's\n      // the same system that powers varDep.\n      const cache = cacheSlot.getValue();\n      if (cache) {\n        attach(cache);\n        getCacheInfo(cache).dep(rv);\n      }\n    }\n\n    return value;\n  };\n\n  rv.onNextChange = (listener) => {\n    listeners.add(listener);\n    return () => {\n      listeners.delete(listener);\n    };\n  };\n\n  const attach = (rv.attachCache = (cache) => {\n    caches.add(cache);\n    getCacheInfo(cache).vars.add(rv);\n    return rv;\n  });\n\n  rv.forgetCache = (cache) => caches.delete(cache);\n\n  return rv;\n}\n\ntype Broadcastable = ApolloCache<any> & {\n  // This method is protected in InMemoryCache, which we are ignoring, but\n  // we still want some semblance of type safety when we call it.\n  broadcastWatches?: InMemoryCache[\"broadcastWatches\"];\n};\n\nfunction broadcast(cache: Broadcastable) {\n  if (cache.broadcastWatches) {\n    cache.broadcastWatches();\n  }\n}\n", "import { invariant } from \"../../utilities/globals/index.js\";\n\nimport {\n  argumentsObjectFromField,\n  DeepMerger,\n  isNonEmptyArray,\n  isNonNullObject,\n} from \"../../utilities/index.js\";\n\nimport { hasOwn, isArray } from \"./helpers.js\";\nimport type {\n  KeySpecifier,\n  KeyFieldsFunction,\n  KeyArgsFunction,\n} from \"./policies.js\";\n\n// Mapping from JSON-encoded KeySpecifier strings to associated information.\nconst specifierInfoCache: Record<\n  string,\n  {\n    paths?: string[][];\n    keyFieldsFn?: KeyFieldsFunction;\n    keyArgsFn?: KeyArgsFunction;\n  }\n> = Object.create(null);\n\nfunction lookupSpecifierInfo(spec: KeySpecifier) {\n  // It's safe to encode KeySpecifier arrays with JSON.stringify, since they're\n  // just arrays of strings or nested KeySpecifier arrays, and the order of the\n  // array elements is important (and suitably preserved by JSON.stringify).\n  const cacheKey = JSON.stringify(spec);\n  return (\n    specifierInfoCache[cacheKey] ||\n    (specifierInfoCache[cacheKey] = Object.create(null))\n  );\n}\n\nexport function keyFieldsFnFromSpecifier(\n  specifier: KeySpecifier\n): KeyFieldsFunction {\n  const info = lookupSpecifierInfo(specifier);\n\n  return (\n    info.keyFieldsFn ||\n    (info.keyFieldsFn = (object, context) => {\n      const extract: typeof extractKey = (from, key) =>\n        context.readField(key, from);\n\n      const keyObject = (context.keyObject = collectSpecifierPaths(\n        specifier,\n        (schemaKeyPath) => {\n          let extracted = extractKeyPath(\n            context.storeObject,\n            schemaKeyPath,\n            // Using context.readField to extract paths from context.storeObject\n            // allows the extraction to see through Reference objects and respect\n            // custom read functions.\n            extract\n          );\n\n          if (\n            extracted === void 0 &&\n            object !== context.storeObject &&\n            hasOwn.call(object, schemaKeyPath[0])\n          ) {\n            // If context.storeObject fails to provide a value for the requested\n            // path, fall back to the raw result object, if it has a top-level key\n            // matching the first key in the path (schemaKeyPath[0]). This allows\n            // key fields included in the written data to be saved in the cache\n            // even if they are not selected explicitly in context.selectionSet.\n            // Not being mentioned by context.selectionSet is convenient here,\n            // since it means these extra fields cannot be affected by field\n            // aliasing, which is why we can use extractKey instead of\n            // context.readField for this extraction.\n            extracted = extractKeyPath(object, schemaKeyPath, extractKey);\n          }\n\n          invariant(\n            extracted !== void 0,\n            `Missing field '%s' while extracting keyFields from %s`,\n            schemaKeyPath.join(\".\"),\n            object\n          );\n\n          return extracted;\n        }\n      ));\n\n      return `${context.typename}:${JSON.stringify(keyObject)}`;\n    })\n  );\n}\n\n// The keyArgs extraction process is roughly analogous to keyFields extraction,\n// but there are no aliases involved, missing fields are tolerated (by merely\n// omitting them from the key), and drawing from field.directives or variables\n// is allowed (in addition to drawing from the field's arguments object).\n// Concretely, these differences mean passing a different key path extractor\n// function to collectSpecifierPaths, reusing the shared extractKeyPath helper\n// wherever possible.\nexport function keyArgsFnFromSpecifier(\n  specifier: KeySpecifier\n): KeyArgsFunction {\n  const info = lookupSpecifierInfo(specifier);\n\n  return (\n    info.keyArgsFn ||\n    (info.keyArgsFn = (args, { field, variables, fieldName }) => {\n      const collected = collectSpecifierPaths(specifier, (keyPath) => {\n        const firstKey = keyPath[0];\n        const firstChar = firstKey.charAt(0);\n\n        if (firstChar === \"@\") {\n          if (field && isNonEmptyArray(field.directives)) {\n            const directiveName = firstKey.slice(1);\n            // If the directive appears multiple times, only the first\n            // occurrence's arguments will be used. TODO Allow repetition?\n            // TODO Cache this work somehow, a la aliasMap?\n            const d = field.directives.find(\n              (d) => d.name.value === directiveName\n            );\n            // Fortunately argumentsObjectFromField works for DirectiveNode!\n            const directiveArgs = d && argumentsObjectFromField(d, variables);\n            // For directives without arguments (d defined, but directiveArgs ===\n            // null), the presence or absence of the directive still counts as\n            // part of the field key, so we return null in those cases. If no\n            // directive with this name was found for this field (d undefined and\n            // thus directiveArgs undefined), we return undefined, which causes\n            // this value to be omitted from the key object returned by\n            // collectSpecifierPaths.\n            return (\n              directiveArgs &&\n              extractKeyPath(\n                directiveArgs,\n                // If keyPath.length === 1, this code calls extractKeyPath with an\n                // empty path, which works because it uses directiveArgs as the\n                // extracted value.\n                keyPath.slice(1)\n              )\n            );\n          }\n          // If the key started with @ but there was no corresponding directive,\n          // we want to omit this value from the key object, not fall through to\n          // treating @whatever as a normal argument name.\n          return;\n        }\n\n        if (firstChar === \"$\") {\n          const variableName = firstKey.slice(1);\n          if (variables && hasOwn.call(variables, variableName)) {\n            const varKeyPath = keyPath.slice(0);\n            varKeyPath[0] = variableName;\n            return extractKeyPath(variables, varKeyPath);\n          }\n          // If the key started with $ but there was no corresponding variable, we\n          // want to omit this value from the key object, not fall through to\n          // treating $whatever as a normal argument name.\n          return;\n        }\n\n        if (args) {\n          return extractKeyPath(args, keyPath);\n        }\n      });\n\n      const suffix = JSON.stringify(collected);\n\n      // If no arguments were passed to this field, and it didn't have any other\n      // field key contributions from directives or variables, hide the empty\n      // :{} suffix from the field key. However, a field passed no arguments can\n      // still end up with a non-empty :{...} suffix if its key configuration\n      // refers to directives or variables.\n      if (args || suffix !== \"{}\") {\n        fieldName += \":\" + suffix;\n      }\n\n      return fieldName;\n    })\n  );\n}\n\nexport function collectSpecifierPaths(\n  specifier: KeySpecifier,\n  extractor: (path: string[]) => any\n): Record<string, any> {\n  // For each path specified by specifier, invoke the extractor, and repeatedly\n  // merge the results together, with appropriate ancestor context.\n  const merger = new DeepMerger();\n  return getSpecifierPaths(specifier).reduce((collected, path) => {\n    let toMerge = extractor(path);\n    if (toMerge !== void 0) {\n      // This path is not expected to contain array indexes, so the toMerge\n      // reconstruction will not contain arrays. TODO Fix this?\n      for (let i = path.length - 1; i >= 0; --i) {\n        toMerge = { [path[i]]: toMerge };\n      }\n      collected = merger.merge(collected, toMerge);\n    }\n    return collected;\n  }, Object.create(null));\n}\n\nexport function getSpecifierPaths(spec: KeySpecifier): string[][] {\n  const info = lookupSpecifierInfo(spec);\n\n  if (!info.paths) {\n    const paths: string[][] = (info.paths = []);\n    const currentPath: string[] = [];\n\n    spec.forEach((s, i) => {\n      if (isArray(s)) {\n        getSpecifierPaths(s).forEach((p) => paths.push(currentPath.concat(p)));\n        currentPath.length = 0;\n      } else {\n        currentPath.push(s);\n        if (!isArray(spec[i + 1])) {\n          paths.push(currentPath.slice(0));\n          currentPath.length = 0;\n        }\n      }\n    });\n  }\n\n  return info.paths!;\n}\n\nfunction extractKey<TObj extends Record<string, any>, TKey extends string>(\n  object: TObj,\n  key: TKey\n): TObj[TKey] | undefined {\n  return object[key];\n}\n\nexport function extractKeyPath(\n  object: Record<string, any>,\n  path: string[],\n  extract?: typeof extractKey\n): any {\n  // For each key in path, extract the corresponding child property from obj,\n  // flattening arrays if encountered (uncommon for keyFields and keyArgs, but\n  // possible). The final result of path.reduce is normalized so unexpected leaf\n  // objects have their keys safely sorted. That final result is difficult to\n  // type as anything other than any. You're welcome to try to improve the\n  // return type, but keep in mind extractKeyPath is not a public function\n  // (exported only for testing), so the effort may not be worthwhile unless the\n  // limited set of actual callers (see above) pass arguments that TypeScript\n  // can statically type. If we know only that path is some array of strings\n  // (and not, say, a specific tuple of statically known strings), any (or\n  // possibly unknown) is the honest answer.\n  extract = extract || extractKey;\n  return normalize(\n    path.reduce(function reducer(obj, key): any {\n      return isArray(obj) ?\n          obj.map((child) => reducer(child, key))\n        : obj && extract!(obj, key);\n    }, object)\n  );\n}\n\nfunction normalize<T>(value: T): T {\n  // Usually the extracted value will be a scalar value, since most primary\n  // key fields are scalar, but just in case we get an object or an array, we\n  // need to do some normalization of the order of (nested) keys.\n  if (isNonNullObject(value)) {\n    if (isArray(value)) {\n      return value.map(normalize) as any;\n    }\n    return collectSpecifierPaths(Object.keys(value).sort(), (path) =>\n      extractKeyPath(value, path)\n    ) as T;\n  }\n  return value;\n}\n", "import { invariant, newInvariantError } from \"../../utilities/globals/index.js\";\n\nimport type {\n  InlineFragmentNode,\n  FragmentDefinitionNode,\n  SelectionSetNode,\n  FieldNode,\n} from \"graphql\";\n\nimport type {\n  FragmentMap,\n  StoreValue,\n  StoreObject,\n  Reference,\n} from \"../../utilities/index.js\";\nimport {\n  storeKeyNameFromField,\n  argumentsObjectFromField,\n  isReference,\n  getStoreKeyName,\n  isNonNullObject,\n  stringifyForDisplay,\n} from \"../../utilities/index.js\";\nimport type {\n  IdGetter,\n  MergeInfo,\n  NormalizedCache,\n  ReadMergeModifyContext,\n} from \"./types.js\";\nimport {\n  hasOwn,\n  fieldNameFromStoreName,\n  storeValueIsStoreObject,\n  selectionSetMatchesResult,\n  TypeOrFieldNameRegExp,\n  defaultDataIdFromObject,\n  isArray,\n} from \"./helpers.js\";\nimport { cacheSlot } from \"./reactiveVars.js\";\nimport type { InMemoryCache } from \"./inMemoryCache.js\";\nimport type {\n  SafeReadonly,\n  FieldSpecifier,\n  ToReferenceFunction,\n  ReadFieldFunction,\n  ReadFieldOptions,\n  CanReadFunction,\n} from \"../core/types/common.js\";\nimport type { WriteContext } from \"./writeToStore.js\";\n\nimport {\n  keyArgsFnFromSpecifier,\n  keyFieldsFnFromSpecifier,\n} from \"./key-extractor.js\";\n\nexport type TypePolicies = {\n  [__typename: string]: TypePolicy;\n};\n\n// TypeScript 3.7 will allow recursive type aliases, so this should work:\n// type KeySpecifier = (string | KeySpecifier)[]\nexport type KeySpecifier = ReadonlyArray<string | KeySpecifier>;\n\nexport type KeyFieldsContext = {\n  // The __typename of the incoming object, even if the __typename field was\n  // aliased to another name in the raw result object. May be undefined when\n  // dataIdFromObject is called for objects without __typename fields.\n  typename: string | undefined;\n\n  // The object to be identified, after processing to remove aliases and\n  // normalize identifiable child objects with references.\n  storeObject: StoreObject;\n\n  // Handy tool for reading additional fields from context.storeObject, either\n  // readField(\"fieldName\") to read storeObject[fieldName], or readField(\"name\",\n  // objectOrReference) to read from another object or Reference. If you read a\n  // field with a read function, that function will be invoked.\n  readField: ReadFieldFunction;\n\n  // If you are writing a custom keyFields function, and you plan to use the raw\n  // result object passed as the first argument, you may also need access to the\n  // selection set and available fragments for this object, just in case any\n  // fields have aliases. Since this logic is tricky to get right, and these\n  // context properties are not even always provided (for example, they are\n  // omitted when calling cache.identify(object), where object is assumed to be\n  // a StoreObject), we recommend you use context.storeObject (which has already\n  // been de-aliased) and context.readField (which can read from references as\n  // well as objects) instead of the raw result object in your keyFields\n  // functions, or just rely on the internal implementation of keyFields:[...]\n  // syntax to get these details right for you.\n  selectionSet?: SelectionSetNode;\n  fragmentMap?: FragmentMap;\n\n  // Internal. May be set by the KeyFieldsFunction to report fields that were\n  // involved in computing the ID. Never passed in by the caller.\n  keyObject?: Record<string, any>;\n};\n\nexport type KeyFieldsFunction = (\n  object: Readonly<StoreObject>,\n  context: KeyFieldsContext\n) => KeySpecifier | false | ReturnType<IdGetter>;\n\ntype KeyFieldsResult = Exclude<ReturnType<KeyFieldsFunction>, KeySpecifier>;\n\n// TODO Should TypePolicy be a generic type, with a TObject or TEntity\n// type parameter?\nexport type TypePolicy = {\n  // Allows defining the primary key fields for this type, either using an\n  // array of field names or a function that returns an arbitrary string.\n  keyFields?: KeySpecifier | KeyFieldsFunction | false;\n\n  // Allows defining a merge function (or merge:true/false shorthand) to\n  // be used for merging objects of this type wherever they appear, unless\n  // the parent field also defines a merge function/boolean (that is,\n  // parent field merge functions take precedence over type policy merge\n  // functions). In many cases, defining merge:true for a given type\n  // policy can save you from specifying merge:true for all the field\n  // policies where that type might be encountered.\n  merge?: FieldMergeFunction | boolean;\n\n  // In the rare event that your schema happens to use a different\n  // __typename for the root Query, Mutation, and/or Schema types, you can\n  // express your deviant preferences by enabling one of these options.\n  queryType?: true;\n  mutationType?: true;\n  subscriptionType?: true;\n\n  fields?: {\n    [fieldName: string]: FieldPolicy<any> | FieldReadFunction<any>;\n  };\n};\n\nexport type KeyArgsFunction = (\n  args: Record<string, any> | null,\n  context: {\n    typename: string;\n    fieldName: string;\n    field: FieldNode | null;\n    variables?: Record<string, any>;\n  }\n) => KeySpecifier | false | ReturnType<IdGetter>;\n\nexport type FieldPolicy<\n  // The internal representation used to store the field's data in the\n  // cache. Must be JSON-serializable if you plan to serialize the result\n  // of cache.extract() using JSON.\n  TExisting = any,\n  // The type of the incoming parameter passed to the merge function,\n  // typically matching the GraphQL response format, but with Reference\n  // objects substituted for any identifiable child objects. Often the\n  // same as TExisting, but not necessarily.\n  TIncoming = TExisting,\n  // The type that the read function actually returns, using TExisting\n  // data and options.args as input. Usually the same as TIncoming.\n  TReadResult = TIncoming,\n  // Allows FieldFunctionOptions definition to be overwritten by the\n  // developer\n  TOptions extends FieldFunctionOptions = FieldFunctionOptions,\n> = {\n  keyArgs?: KeySpecifier | KeyArgsFunction | false;\n  read?: FieldReadFunction<TExisting, TReadResult, TOptions>;\n  merge?: FieldMergeFunction<TExisting, TIncoming, TOptions> | boolean;\n};\n\nexport type StorageType = Record<string, any>;\n\nfunction argsFromFieldSpecifier(spec: FieldSpecifier) {\n  return (\n    spec.args !== void 0 ? spec.args\n    : spec.field ? argumentsObjectFromField(spec.field, spec.variables)\n    : null\n  );\n}\n\nexport interface FieldFunctionOptions<\n  TArgs = Record<string, any>,\n  TVars = Record<string, any>,\n> {\n  args: TArgs | null;\n\n  // The name of the field, equal to options.field.name.value when\n  // options.field is available. Useful if you reuse the same function for\n  // multiple fields, and you need to know which field you're currently\n  // processing. Always a string, even when options.field is null.\n  fieldName: string;\n\n  // The full field key used internally, including serialized key arguments.\n  storeFieldName: string;\n\n  // The FieldNode object used to read this field. Useful if you need to\n  // know about other attributes of the field, such as its directives. This\n  // option will be null when a string was passed to options.readField.\n  field: FieldNode | null;\n\n  variables?: TVars;\n\n  // Utilities for dealing with { __ref } objects.\n  isReference: typeof isReference;\n  toReference: ToReferenceFunction;\n\n  // A handy place to put field-specific data that you want to survive\n  // across multiple read function calls. Useful for field-level caching,\n  // if your read function does any expensive work.\n  storage: StorageType;\n\n  cache: InMemoryCache;\n\n  // Helper function for reading other fields within the current object.\n  // If a foreign object or reference is provided, the field will be read\n  // from that object instead of the current object, so this function can\n  // be used (together with isReference) to examine the cache outside the\n  // current object. If a FieldNode is passed instead of a string, and\n  // that FieldNode has arguments, the same options.variables will be used\n  // to compute the argument values. Note that this function will invoke\n  // custom read functions for other fields, if defined. Always returns\n  // immutable data (enforced with Object.freeze in development).\n  readField: ReadFieldFunction;\n\n  // Returns true for non-normalized StoreObjects and non-dangling\n  // References, indicating that readField(name, objOrRef) has a chance of\n  // working. Useful for filtering out dangling references from lists.\n  canRead: CanReadFunction;\n\n  // Instead of just merging objects with { ...existing, ...incoming }, this\n  // helper function can be used to merge objects in a way that respects any\n  // custom merge functions defined for their fields.\n  mergeObjects: MergeObjectsFunction;\n}\n\ntype MergeObjectsFunction = <T extends StoreObject | Reference>(\n  existing: T,\n  incoming: T\n) => T;\n\nexport type FieldReadFunction<\n  TExisting = any,\n  TReadResult = TExisting,\n  TOptions extends FieldFunctionOptions = FieldFunctionOptions,\n> = (\n  // When reading a field, one often needs to know about any existing\n  // value stored for that field. If the field is read before any value\n  // has been written to the cache, this existing parameter will be\n  // undefined, which makes it easy to use a default parameter expression\n  // to supply the initial value. This parameter is positional (rather\n  // than one of the named options) because that makes it possible for the\n  // developer to annotate it with a type, without also having to provide\n  // a whole new type for the options object.\n  existing: SafeReadonly<TExisting> | undefined,\n  options: TOptions\n) => TReadResult | undefined;\n\nexport type FieldMergeFunction<\n  TExisting = any,\n  TIncoming = TExisting,\n  // Passing the whole FieldFunctionOptions makes the current definition\n  // independent from its implementation\n  TOptions extends FieldFunctionOptions = FieldFunctionOptions,\n> = (\n  existing: SafeReadonly<TExisting> | undefined,\n  // The incoming parameter needs to be positional as well, for the same\n  // reasons discussed in FieldReadFunction above.\n  incoming: SafeReadonly<TIncoming>,\n  options: TOptions\n) => SafeReadonly<TExisting>;\n\nconst nullKeyFieldsFn: KeyFieldsFunction = () => void 0;\nconst simpleKeyArgsFn: KeyArgsFunction = (_args, context) => context.fieldName;\n\n// These merge functions can be selected by specifying merge:true or\n// merge:false in a field policy.\nconst mergeTrueFn: FieldMergeFunction<any> = (\n  existing,\n  incoming,\n  { mergeObjects }\n) => mergeObjects(existing, incoming);\nconst mergeFalseFn: FieldMergeFunction<any> = (_, incoming) => incoming;\n\nexport type PossibleTypesMap = {\n  [supertype: string]: string[];\n};\n\nexport class Policies {\n  private typePolicies: {\n    [__typename: string]: {\n      keyFn?: KeyFieldsFunction;\n      merge?: FieldMergeFunction<any>;\n      fields: {\n        [fieldName: string]: {\n          keyFn?: KeyArgsFunction;\n          read?: FieldReadFunction<any>;\n          merge?: FieldMergeFunction<any>;\n        };\n      };\n    };\n  } = Object.create(null);\n\n  private toBeAdded: {\n    [__typename: string]: TypePolicy[];\n  } = Object.create(null);\n\n  // Map from subtype names to sets of supertype names. Note that this\n  // representation inverts the structure of possibleTypes (whose keys are\n  // supertypes and whose values are arrays of subtypes) because it tends\n  // to be much more efficient to search upwards than downwards.\n  private supertypeMap = new Map<string, Set<string>>();\n\n  // Any fuzzy subtypes specified by possibleTypes will be converted to\n  // RegExp objects and recorded here. Every key of this map can also be\n  // found in supertypeMap. In many cases this Map will be empty, which\n  // means no fuzzy subtype checking will happen in fragmentMatches.\n  private fuzzySubtypes = new Map<string, RegExp>();\n\n  public readonly cache: InMemoryCache;\n\n  public readonly rootIdsByTypename: Record<string, string> =\n    Object.create(null);\n  public readonly rootTypenamesById: Record<string, string> =\n    Object.create(null);\n\n  public readonly usingPossibleTypes = false;\n\n  constructor(\n    private config: {\n      cache: InMemoryCache;\n      dataIdFromObject?: KeyFieldsFunction;\n      possibleTypes?: PossibleTypesMap;\n      typePolicies?: TypePolicies;\n    }\n  ) {\n    this.config = {\n      dataIdFromObject: defaultDataIdFromObject,\n      ...config,\n    };\n\n    this.cache = this.config.cache;\n\n    this.setRootTypename(\"Query\");\n    this.setRootTypename(\"Mutation\");\n    this.setRootTypename(\"Subscription\");\n\n    if (config.possibleTypes) {\n      this.addPossibleTypes(config.possibleTypes);\n    }\n\n    if (config.typePolicies) {\n      this.addTypePolicies(config.typePolicies);\n    }\n  }\n\n  public identify(\n    object: StoreObject,\n    partialContext?: Partial<KeyFieldsContext>\n  ): [string?, StoreObject?] {\n    const policies = this;\n\n    const typename =\n      (partialContext &&\n        (partialContext.typename || partialContext.storeObject?.__typename)) ||\n      object.__typename;\n\n    // It should be possible to write root Query fields with writeFragment,\n    // using { __typename: \"Query\", ... } as the data, but it does not make\n    // sense to allow the same identification behavior for the Mutation and\n    // Subscription types, since application code should never be writing\n    // directly to (or reading directly from) those root objects.\n    if (typename === this.rootTypenamesById.ROOT_QUERY) {\n      return [\"ROOT_QUERY\"];\n    }\n\n    // Default context.storeObject to object if not otherwise provided.\n    const storeObject =\n      (partialContext && partialContext.storeObject) || object;\n\n    const context: KeyFieldsContext = {\n      ...partialContext,\n      typename,\n      storeObject,\n      readField:\n        (partialContext && partialContext.readField) ||\n        function () {\n          const options = normalizeReadFieldOptions(arguments, storeObject);\n          return policies.readField(options, {\n            store: policies.cache[\"data\"],\n            variables: options.variables,\n          });\n        },\n    };\n\n    let id: KeyFieldsResult;\n\n    const policy = typename && this.getTypePolicy(typename);\n    let keyFn = (policy && policy.keyFn) || this.config.dataIdFromObject;\n    while (keyFn) {\n      const specifierOrId = keyFn({ ...object, ...storeObject }, context);\n      if (isArray(specifierOrId)) {\n        keyFn = keyFieldsFnFromSpecifier(specifierOrId);\n      } else {\n        id = specifierOrId;\n        break;\n      }\n    }\n\n    id = id ? String(id) : void 0;\n    return context.keyObject ? [id, context.keyObject] : [id];\n  }\n\n  public addTypePolicies(typePolicies: TypePolicies) {\n    Object.keys(typePolicies).forEach((typename) => {\n      const { queryType, mutationType, subscriptionType, ...incoming } =\n        typePolicies[typename];\n\n      // Though {query,mutation,subscription}Type configurations are rare,\n      // it's important to call setRootTypename as early as possible,\n      // since these configurations should apply consistently for the\n      // entire lifetime of the cache. Also, since only one __typename can\n      // qualify as one of these root types, these three properties cannot\n      // be inherited, unlike the rest of the incoming properties. That\n      // restriction is convenient, because the purpose of this.toBeAdded\n      // is to delay the processing of type/field policies until the first\n      // time they're used, allowing policies to be added in any order as\n      // long as all relevant policies (including policies for supertypes)\n      // have been added by the time a given policy is used for the first\n      // time. In other words, since inheritance doesn't matter for these\n      // properties, there's also no need to delay their processing using\n      // the this.toBeAdded queue.\n      if (queryType) this.setRootTypename(\"Query\", typename);\n      if (mutationType) this.setRootTypename(\"Mutation\", typename);\n      if (subscriptionType) this.setRootTypename(\"Subscription\", typename);\n\n      if (hasOwn.call(this.toBeAdded, typename)) {\n        this.toBeAdded[typename].push(incoming);\n      } else {\n        this.toBeAdded[typename] = [incoming];\n      }\n    });\n  }\n\n  private updateTypePolicy(typename: string, incoming: TypePolicy) {\n    const existing = this.getTypePolicy(typename);\n    const { keyFields, fields } = incoming;\n\n    function setMerge(\n      existing: { merge?: FieldMergeFunction | boolean },\n      merge?: FieldMergeFunction | boolean\n    ) {\n      existing.merge =\n        typeof merge === \"function\" ? merge\n          // Pass merge:true as a shorthand for a merge implementation\n          // that returns options.mergeObjects(existing, incoming).\n        : merge === true ? mergeTrueFn\n          // Pass merge:false to make incoming always replace existing\n          // without any warnings about data clobbering.\n        : merge === false ? mergeFalseFn\n        : existing.merge;\n    }\n\n    // Type policies can define merge functions, as an alternative to\n    // using field policies to merge child objects.\n    setMerge(existing, incoming.merge);\n\n    existing.keyFn =\n      // Pass false to disable normalization for this typename.\n      keyFields === false ? nullKeyFieldsFn\n        // Pass an array of strings to use those fields to compute a\n        // composite ID for objects of this typename.\n      : isArray(keyFields) ? keyFieldsFnFromSpecifier(keyFields)\n        // Pass a function to take full control over identification.\n      : typeof keyFields === \"function\" ? keyFields\n        // Leave existing.keyFn unchanged if above cases fail.\n      : existing.keyFn;\n\n    if (fields) {\n      Object.keys(fields).forEach((fieldName) => {\n        const existing = this.getFieldPolicy(typename, fieldName, true)!;\n        const incoming = fields[fieldName];\n\n        if (typeof incoming === \"function\") {\n          existing.read = incoming;\n        } else {\n          const { keyArgs, read, merge } = incoming;\n\n          existing.keyFn =\n            // Pass false to disable argument-based differentiation of\n            // field identities.\n            keyArgs === false ? simpleKeyArgsFn\n              // Pass an array of strings to use named arguments to\n              // compute a composite identity for the field.\n            : isArray(keyArgs) ? keyArgsFnFromSpecifier(keyArgs)\n              // Pass a function to take full control over field identity.\n            : typeof keyArgs === \"function\" ? keyArgs\n              // Leave existing.keyFn unchanged if above cases fail.\n            : existing.keyFn;\n\n          if (typeof read === \"function\") {\n            existing.read = read;\n          }\n\n          setMerge(existing, merge);\n        }\n\n        if (existing.read && existing.merge) {\n          // If we have both a read and a merge function, assume\n          // keyArgs:false, because read and merge together can take\n          // responsibility for interpreting arguments in and out. This\n          // default assumption can always be overridden by specifying\n          // keyArgs explicitly in the FieldPolicy.\n          existing.keyFn = existing.keyFn || simpleKeyArgsFn;\n        }\n      });\n    }\n  }\n\n  private setRootTypename(\n    which: \"Query\" | \"Mutation\" | \"Subscription\",\n    typename: string = which\n  ) {\n    const rootId = \"ROOT_\" + which.toUpperCase();\n    const old = this.rootTypenamesById[rootId];\n    if (typename !== old) {\n      invariant(\n        !old || old === which,\n        `Cannot change root %s __typename more than once`,\n        which\n      );\n      // First, delete any old __typename associated with this rootId from\n      // rootIdsByTypename.\n      if (old) delete this.rootIdsByTypename[old];\n      // Now make this the only __typename that maps to this rootId.\n      this.rootIdsByTypename[typename] = rootId;\n      // Finally, update the __typename associated with this rootId.\n      this.rootTypenamesById[rootId] = typename;\n    }\n  }\n\n  public addPossibleTypes(possibleTypes: PossibleTypesMap) {\n    (this.usingPossibleTypes as boolean) = true;\n    Object.keys(possibleTypes).forEach((supertype) => {\n      // Make sure all types have an entry in this.supertypeMap, even if\n      // their supertype set is empty, so we can return false immediately\n      // from policies.fragmentMatches for unknown supertypes.\n      this.getSupertypeSet(supertype, true);\n\n      possibleTypes[supertype].forEach((subtype) => {\n        this.getSupertypeSet(subtype, true)!.add(supertype);\n        const match = subtype.match(TypeOrFieldNameRegExp);\n        if (!match || match[0] !== subtype) {\n          // TODO Don't interpret just any invalid typename as a RegExp.\n          this.fuzzySubtypes.set(subtype, new RegExp(subtype));\n        }\n      });\n    });\n  }\n\n  private getTypePolicy(typename: string): Policies[\"typePolicies\"][string] {\n    if (!hasOwn.call(this.typePolicies, typename)) {\n      const policy: Policies[\"typePolicies\"][string] = (this.typePolicies[\n        typename\n      ] = Object.create(null));\n      policy.fields = Object.create(null);\n\n      // When the TypePolicy for typename is first accessed, instead of\n      // starting with an empty policy object, inherit any properties or\n      // fields from the type policies of the supertypes of typename.\n      //\n      // Any properties or fields defined explicitly within the TypePolicy\n      // for typename will take precedence, and if there are multiple\n      // supertypes, the properties of policies whose types were added\n      // later via addPossibleTypes will take precedence over those of\n      // earlier supertypes. TODO Perhaps we should warn about these\n      // conflicts in development, and recommend defining the property\n      // explicitly in the subtype policy?\n      //\n      // Field policy inheritance is atomic/shallow: you can't inherit a\n      // field policy and then override just its read function, since read\n      // and merge functions often need to cooperate, so changing only one\n      // of them would be a recipe for inconsistency.\n      //\n      // Once the TypePolicy for typename has been accessed, its properties can\n      // still be updated directly using addTypePolicies, but future changes to\n      // inherited supertype policies will not be reflected in this subtype\n      // policy, because this code runs at most once per typename.\n      let supertypes = this.supertypeMap.get(typename);\n      if (!supertypes && this.fuzzySubtypes.size) {\n        // To make the inheritance logic work for unknown typename strings that\n        // may have fuzzy supertypes, we give this typename an empty supertype\n        // set and then populate it with any fuzzy supertypes that match.\n        supertypes = this.getSupertypeSet(typename, true)!;\n        // This only works for typenames that are directly matched by a fuzzy\n        // supertype. What if there is an intermediate chain of supertypes?\n        // While possible, that situation can only be solved effectively by\n        // specifying the intermediate relationships via possibleTypes, manually\n        // and in a non-fuzzy way.\n        this.fuzzySubtypes.forEach((regExp, fuzzy) => {\n          if (regExp.test(typename)) {\n            // The fuzzy parameter is just the original string version of regExp\n            // (not a valid __typename string), but we can look up the\n            // associated supertype(s) in this.supertypeMap.\n            const fuzzySupertypes = this.supertypeMap.get(fuzzy);\n            if (fuzzySupertypes) {\n              fuzzySupertypes.forEach((supertype) =>\n                supertypes!.add(supertype)\n              );\n            }\n          }\n        });\n      }\n      if (supertypes && supertypes.size) {\n        supertypes.forEach((supertype) => {\n          const { fields, ...rest } = this.getTypePolicy(supertype);\n          Object.assign(policy, rest);\n          Object.assign(policy.fields, fields);\n        });\n      }\n    }\n\n    const inbox = this.toBeAdded[typename];\n    if (inbox && inbox.length) {\n      // Merge the pending policies into this.typePolicies, in the order they\n      // were originally passed to addTypePolicy.\n      inbox.splice(0).forEach((policy) => {\n        this.updateTypePolicy(typename, policy);\n      });\n    }\n\n    return this.typePolicies[typename];\n  }\n\n  private getFieldPolicy(\n    typename: string | undefined,\n    fieldName: string,\n    createIfMissing: boolean\n  ):\n    | {\n        keyFn?: KeyArgsFunction;\n        read?: FieldReadFunction<any>;\n        merge?: FieldMergeFunction<any>;\n      }\n    | undefined {\n    if (typename) {\n      const fieldPolicies = this.getTypePolicy(typename).fields;\n      return (\n        fieldPolicies[fieldName] ||\n        (createIfMissing && (fieldPolicies[fieldName] = Object.create(null)))\n      );\n    }\n  }\n\n  private getSupertypeSet(\n    subtype: string,\n    createIfMissing: boolean\n  ): Set<string> | undefined {\n    let supertypeSet = this.supertypeMap.get(subtype);\n    if (!supertypeSet && createIfMissing) {\n      this.supertypeMap.set(subtype, (supertypeSet = new Set<string>()));\n    }\n    return supertypeSet;\n  }\n\n  public fragmentMatches(\n    fragment: InlineFragmentNode | FragmentDefinitionNode,\n    typename: string | undefined,\n    result?: Record<string, any>,\n    variables?: Record<string, any>\n  ): boolean {\n    if (!fragment.typeCondition) return true;\n\n    // If the fragment has a type condition but the object we're matching\n    // against does not have a __typename, the fragment cannot match.\n    if (!typename) return false;\n\n    const supertype = fragment.typeCondition.name.value;\n    // Common case: fragment type condition and __typename are the same.\n    if (typename === supertype) return true;\n\n    if (this.usingPossibleTypes && this.supertypeMap.has(supertype)) {\n      const typenameSupertypeSet = this.getSupertypeSet(typename, true)!;\n      const workQueue = [typenameSupertypeSet];\n      const maybeEnqueue = (subtype: string) => {\n        const supertypeSet = this.getSupertypeSet(subtype, false);\n        if (\n          supertypeSet &&\n          supertypeSet.size &&\n          workQueue.indexOf(supertypeSet) < 0\n        ) {\n          workQueue.push(supertypeSet);\n        }\n      };\n\n      // We need to check fuzzy subtypes only if we encountered fuzzy\n      // subtype strings in addPossibleTypes, and only while writing to\n      // the cache, since that's when selectionSetMatchesResult gives a\n      // strong signal of fragment matching. The StoreReader class calls\n      // policies.fragmentMatches without passing a result object, so\n      // needToCheckFuzzySubtypes is always false while reading.\n      let needToCheckFuzzySubtypes = !!(result && this.fuzzySubtypes.size);\n      let checkingFuzzySubtypes = false;\n\n      // It's important to keep evaluating workQueue.length each time through\n      // the loop, because the queue can grow while we're iterating over it.\n      for (let i = 0; i < workQueue.length; ++i) {\n        const supertypeSet = workQueue[i];\n\n        if (supertypeSet.has(supertype)) {\n          if (!typenameSupertypeSet.has(supertype)) {\n            if (checkingFuzzySubtypes) {\n              invariant.warn(\n                `Inferring subtype %s of supertype %s`,\n                typename,\n                supertype\n              );\n            }\n            // Record positive results for faster future lookup.\n            // Unfortunately, we cannot safely cache negative results,\n            // because new possibleTypes data could always be added to the\n            // Policies class.\n            typenameSupertypeSet.add(supertype);\n          }\n          return true;\n        }\n\n        supertypeSet.forEach(maybeEnqueue);\n\n        if (\n          needToCheckFuzzySubtypes &&\n          // Start checking fuzzy subtypes only after exhausting all\n          // non-fuzzy subtypes (after the final iteration of the loop).\n          i === workQueue.length - 1 &&\n          // We could wait to compare fragment.selectionSet to result\n          // after we verify the supertype, but this check is often less\n          // expensive than that search, and we will have to do the\n          // comparison anyway whenever we find a potential match.\n          selectionSetMatchesResult(fragment.selectionSet, result!, variables)\n        ) {\n          // We don't always need to check fuzzy subtypes (if no result\n          // was provided, or !this.fuzzySubtypes.size), but, when we do,\n          // we only want to check them once.\n          needToCheckFuzzySubtypes = false;\n          checkingFuzzySubtypes = true;\n\n          // If we find any fuzzy subtypes that match typename, extend the\n          // workQueue to search through the supertypes of those fuzzy\n          // subtypes. Otherwise the for-loop will terminate and we'll\n          // return false below.\n          this.fuzzySubtypes.forEach((regExp, fuzzyString) => {\n            const match = typename.match(regExp);\n            if (match && match[0] === typename) {\n              maybeEnqueue(fuzzyString);\n            }\n          });\n        }\n      }\n    }\n\n    return false;\n  }\n\n  public hasKeyArgs(typename: string | undefined, fieldName: string) {\n    const policy = this.getFieldPolicy(typename, fieldName, false);\n    return !!(policy && policy.keyFn);\n  }\n\n  public getStoreFieldName(fieldSpec: FieldSpecifier): string {\n    const { typename, fieldName } = fieldSpec;\n    const policy = this.getFieldPolicy(typename, fieldName, false);\n    let storeFieldName: Exclude<ReturnType<KeyArgsFunction>, KeySpecifier>;\n\n    let keyFn = policy && policy.keyFn;\n    if (keyFn && typename) {\n      const context: Parameters<KeyArgsFunction>[1] = {\n        typename,\n        fieldName,\n        field: fieldSpec.field || null,\n        variables: fieldSpec.variables,\n      };\n      const args = argsFromFieldSpecifier(fieldSpec);\n      while (keyFn) {\n        const specifierOrString = keyFn(args, context);\n        if (isArray(specifierOrString)) {\n          keyFn = keyArgsFnFromSpecifier(specifierOrString);\n        } else {\n          // If the custom keyFn returns a falsy value, fall back to\n          // fieldName instead.\n          storeFieldName = specifierOrString || fieldName;\n          break;\n        }\n      }\n    }\n\n    if (storeFieldName === void 0) {\n      storeFieldName =\n        fieldSpec.field ?\n          storeKeyNameFromField(fieldSpec.field, fieldSpec.variables)\n        : getStoreKeyName(fieldName, argsFromFieldSpecifier(fieldSpec));\n    }\n\n    // Returning false from a keyArgs function is like configuring\n    // keyArgs: false, but more dynamic.\n    if (storeFieldName === false) {\n      return fieldName;\n    }\n\n    // Make sure custom field names start with the actual field.name.value\n    // of the field, so we can always figure out which properties of a\n    // StoreObject correspond to which original field names.\n    return fieldName === fieldNameFromStoreName(storeFieldName) ? storeFieldName\n      : fieldName + \":\" + storeFieldName;\n  }\n\n  public readField<V = StoreValue>(\n    options: ReadFieldOptions,\n    context: ReadMergeModifyContext\n  ): SafeReadonly<V> | undefined {\n    const objectOrReference = options.from;\n    if (!objectOrReference) return;\n\n    const nameOrField = options.field || options.fieldName;\n    if (!nameOrField) return;\n\n    if (options.typename === void 0) {\n      const typename = context.store.getFieldValue<string>(\n        objectOrReference,\n        \"__typename\"\n      );\n      if (typename) options.typename = typename;\n    }\n\n    const storeFieldName = this.getStoreFieldName(options);\n    const fieldName = fieldNameFromStoreName(storeFieldName);\n    const existing = context.store.getFieldValue<V>(\n      objectOrReference,\n      storeFieldName\n    );\n    const policy = this.getFieldPolicy(options.typename, fieldName, false);\n    const read = policy && policy.read;\n\n    if (read) {\n      const readOptions = makeFieldFunctionOptions(\n        this,\n        objectOrReference,\n        options,\n        context,\n        context.store.getStorage(\n          isReference(objectOrReference) ?\n            objectOrReference.__ref\n          : objectOrReference,\n          storeFieldName\n        )\n      );\n\n      // Call read(existing, readOptions) with cacheSlot holding this.cache.\n      return cacheSlot.withValue(this.cache, read, [\n        existing,\n        readOptions,\n      ]) as SafeReadonly<V>;\n    }\n\n    return existing;\n  }\n\n  public getReadFunction(\n    typename: string | undefined,\n    fieldName: string\n  ): FieldReadFunction | undefined {\n    const policy = this.getFieldPolicy(typename, fieldName, false);\n    return policy && policy.read;\n  }\n\n  public getMergeFunction(\n    parentTypename: string | undefined,\n    fieldName: string,\n    childTypename: string | undefined\n  ): FieldMergeFunction | undefined {\n    let policy:\n      | Policies[\"typePolicies\"][string]\n      | Policies[\"typePolicies\"][string][\"fields\"][string]\n      | undefined = this.getFieldPolicy(parentTypename, fieldName, false);\n    let merge = policy && policy.merge;\n    if (!merge && childTypename) {\n      policy = this.getTypePolicy(childTypename);\n      merge = policy && policy.merge;\n    }\n    return merge;\n  }\n\n  public runMergeFunction(\n    existing: StoreValue,\n    incoming: StoreValue,\n    { field, typename, merge }: MergeInfo,\n    context: WriteContext,\n    storage?: StorageType\n  ) {\n    if (merge === mergeTrueFn) {\n      // Instead of going to the trouble of creating a full\n      // FieldFunctionOptions object and calling mergeTrueFn, we can\n      // simply call mergeObjects, as mergeTrueFn would.\n      return makeMergeObjectsFunction(context.store)(\n        existing as StoreObject,\n        incoming as StoreObject\n      );\n    }\n\n    if (merge === mergeFalseFn) {\n      // Likewise for mergeFalseFn, whose implementation is even simpler.\n      return incoming;\n    }\n\n    // If cache.writeQuery or cache.writeFragment was called with\n    // options.overwrite set to true, we still call merge functions, but\n    // the existing data is always undefined, so the merge function will\n    // not attempt to combine the incoming data with the existing data.\n    if (context.overwrite) {\n      existing = void 0;\n    }\n\n    return merge(\n      existing,\n      incoming,\n      makeFieldFunctionOptions(\n        this,\n        // Unlike options.readField for read functions, we do not fall\n        // back to the current object if no foreignObjOrRef is provided,\n        // because it's not clear what the current object should be for\n        // merge functions: the (possibly undefined) existing object, or\n        // the incoming object? If you think your merge function needs\n        // to read sibling fields in order to produce a new value for\n        // the current field, you might want to rethink your strategy,\n        // because that's a recipe for making merge behavior sensitive\n        // to the order in which fields are written into the cache.\n        // However, readField(name, ref) is useful for merge functions\n        // that need to deduplicate child objects and references.\n        void 0,\n        {\n          typename,\n          fieldName: field.name.value,\n          field,\n          variables: context.variables,\n        },\n        context,\n        storage || Object.create(null)\n      )\n    );\n  }\n}\n\nfunction makeFieldFunctionOptions(\n  policies: Policies,\n  objectOrReference: StoreObject | Reference | undefined,\n  fieldSpec: FieldSpecifier,\n  context: ReadMergeModifyContext,\n  storage: StorageType\n): FieldFunctionOptions {\n  const storeFieldName = policies.getStoreFieldName(fieldSpec);\n  const fieldName = fieldNameFromStoreName(storeFieldName);\n  const variables = fieldSpec.variables || context.variables;\n  const { toReference, canRead } = context.store;\n\n  return {\n    args: argsFromFieldSpecifier(fieldSpec),\n    field: fieldSpec.field || null,\n    fieldName,\n    storeFieldName,\n    variables,\n    isReference,\n    toReference,\n    storage,\n    cache: policies.cache,\n    canRead,\n    readField<T>() {\n      return policies.readField<T>(\n        normalizeReadFieldOptions(arguments, objectOrReference, variables),\n        context\n      );\n    },\n    mergeObjects: makeMergeObjectsFunction(context.store),\n  };\n}\n\nexport function normalizeReadFieldOptions(\n  readFieldArgs: IArguments,\n  objectOrReference: StoreObject | Reference | undefined,\n  variables?: ReadMergeModifyContext[\"variables\"]\n): ReadFieldOptions {\n  const { 0: fieldNameOrOptions, 1: from, length: argc } = readFieldArgs;\n\n  let options: ReadFieldOptions;\n\n  if (typeof fieldNameOrOptions === \"string\") {\n    options = {\n      fieldName: fieldNameOrOptions,\n      // Default to objectOrReference only when no second argument was\n      // passed for the from parameter, not when undefined is explicitly\n      // passed as the second argument.\n      from: argc > 1 ? from : objectOrReference,\n    };\n  } else {\n    options = { ...fieldNameOrOptions };\n    // Default to objectOrReference only when fieldNameOrOptions.from is\n    // actually omitted, rather than just undefined.\n    if (!hasOwn.call(options, \"from\")) {\n      options.from = objectOrReference;\n    }\n  }\n\n  if (__DEV__ && options.from === void 0) {\n    invariant.warn(\n      `Undefined 'from' passed to readField with arguments %s`,\n      stringifyForDisplay(Array.from(readFieldArgs))\n    );\n  }\n\n  if (void 0 === options.variables) {\n    options.variables = variables;\n  }\n\n  return options;\n}\n\nfunction makeMergeObjectsFunction(\n  store: NormalizedCache\n): MergeObjectsFunction {\n  return function mergeObjects(existing, incoming) {\n    if (isArray(existing) || isArray(incoming)) {\n      throw newInvariantError(\"Cannot automatically merge arrays\");\n    }\n\n    // These dynamic checks are necessary because the parameters of a\n    // custom merge function can easily have the any type, so the type\n    // system cannot always enforce the StoreObject | Reference parameter\n    // types of options.mergeObjects.\n    if (isNonNullObject(existing) && isNonNullObject(incoming)) {\n      const eType = store.getFieldValue(existing, \"__typename\");\n      const iType = store.getFieldValue(incoming, \"__typename\");\n      const typesDiffer = eType && iType && eType !== iType;\n\n      if (typesDiffer) {\n        return incoming;\n      }\n\n      if (isReference(existing) && storeValueIsStoreObject(incoming)) {\n        // Update the normalized EntityStore for the entity identified by\n        // existing.__ref, preferring/overwriting any fields contributed by the\n        // newer incoming StoreObject.\n        store.merge(existing.__ref, incoming);\n        return existing;\n      }\n\n      if (storeValueIsStoreObject(existing) && isReference(incoming)) {\n        // Update the normalized EntityStore for the entity identified by\n        // incoming.__ref, taking fields from the older existing object only if\n        // those fields are not already present in the newer StoreObject\n        // identified by incoming.__ref.\n        store.merge(existing, incoming.__ref);\n        return incoming;\n      }\n\n      if (\n        storeValueIsStoreObject(existing) &&\n        storeValueIsStoreObject(incoming)\n      ) {\n        return { ...existing, ...incoming };\n      }\n    }\n\n    return incoming;\n  };\n}\n", "import { invariant, newInvariantError } from \"../../utilities/globals/index.js\";\nimport { equal } from \"@wry/equality\";\nimport { Trie } from \"@wry/trie\";\nimport type { SelectionSetNode, FieldNode } from \"graphql\";\nimport { Kind } from \"graphql\";\n\nimport type {\n  FragmentMap,\n  FragmentMapFunction,\n  StoreValue,\n  StoreObject,\n  Reference,\n} from \"../../utilities/index.js\";\nimport {\n  getFragmentFromSelection,\n  getDefaultValues,\n  getOperationDefinition,\n  getTypenameFromResult,\n  makeReference,\n  isField,\n  resultKeyNameFromField,\n  isReference,\n  shouldInclude,\n  cloneDeep,\n  addTypenameToDocument,\n  isNonEmptyArray,\n  argumentsObjectFromField,\n  canonicalStringify,\n} from \"../../utilities/index.js\";\n\nimport type {\n  NormalizedCache,\n  ReadMergeModifyContext,\n  MergeTree,\n  InMemoryCacheConfig,\n} from \"./types.js\";\nimport {\n  isArray,\n  makeProcessedFieldsMerger,\n  fieldNameFromStoreName,\n  storeValueIsStoreObject,\n  extractFragmentContext,\n} from \"./helpers.js\";\nimport type { StoreReader } from \"./readFromStore.js\";\nimport type { InMemoryCache } from \"./inMemoryCache.js\";\nimport type { EntityStore } from \"./entityStore.js\";\nimport type { Cache } from \"../../core/index.js\";\nimport { normalizeReadFieldOptions } from \"./policies.js\";\nimport type { ReadFieldFunction } from \"../core/types/common.js\";\n\nexport interface WriteContext extends ReadMergeModifyContext {\n  readonly written: {\n    [dataId: string]: SelectionSetNode[];\n  };\n  readonly fragmentMap: FragmentMap;\n  lookupFragment: FragmentMapFunction;\n  // General-purpose deep-merge function for use during writes.\n  merge<T>(existing: T, incoming: T): T;\n  // If true, merge functions will be called with undefined existing data.\n  overwrite: boolean;\n  incomingById: Map<\n    string,\n    {\n      storeObject: StoreObject;\n      mergeTree?: MergeTree;\n      fieldNodeSet: Set<FieldNode>;\n    }\n  >;\n  // Directive metadata for @client and @defer. We could use a bitfield for this\n  // information to save some space, and use that bitfield number as the keys in\n  // the context.flavors Map.\n  clientOnly: boolean;\n  deferred: boolean;\n  flavors: Map<string, FlavorableWriteContext>;\n}\n\ntype FlavorableWriteContext = Pick<\n  WriteContext,\n  \"clientOnly\" | \"deferred\" | \"flavors\"\n>;\n\n// Since there are only four possible combinations of context.clientOnly and\n// context.deferred values, we should need at most four \"flavors\" of any given\n// WriteContext. To avoid creating multiple copies of the same context, we cache\n// the contexts in the context.flavors Map (shared by all flavors) according to\n// their clientOnly and deferred values (always in that order).\nfunction getContextFlavor<TContext extends FlavorableWriteContext>(\n  context: TContext,\n  clientOnly: TContext[\"clientOnly\"],\n  deferred: TContext[\"deferred\"]\n): TContext {\n  const key = `${clientOnly}${deferred}`;\n  let flavored = context.flavors.get(key);\n  if (!flavored) {\n    context.flavors.set(\n      key,\n      (flavored =\n        context.clientOnly === clientOnly && context.deferred === deferred ?\n          context\n        : {\n            ...context,\n            clientOnly,\n            deferred,\n          })\n    );\n  }\n  return flavored as TContext;\n}\n\ninterface ProcessSelectionSetOptions {\n  dataId?: string;\n  result: Record<string, any>;\n  selectionSet: SelectionSetNode;\n  context: WriteContext;\n  mergeTree: MergeTree;\n}\n\nexport class StoreWriter {\n  constructor(\n    public readonly cache: InMemoryCache,\n    private reader?: StoreReader,\n    private fragments?: InMemoryCacheConfig[\"fragments\"]\n  ) {}\n\n  public writeToStore(\n    store: NormalizedCache,\n    { query, result, dataId, variables, overwrite }: Cache.WriteOptions\n  ): Reference | undefined {\n    const operationDefinition = getOperationDefinition(query)!;\n    const merger = makeProcessedFieldsMerger();\n\n    variables = {\n      ...getDefaultValues(operationDefinition),\n      ...variables!,\n    };\n\n    const context: WriteContext = {\n      store,\n      written: Object.create(null),\n      merge<T>(existing: T, incoming: T) {\n        return merger.merge(existing, incoming) as T;\n      },\n      variables,\n      varString: canonicalStringify(variables),\n      ...extractFragmentContext(query, this.fragments),\n      overwrite: !!overwrite,\n      incomingById: new Map(),\n      clientOnly: false,\n      deferred: false,\n      flavors: new Map(),\n    };\n\n    const ref = this.processSelectionSet({\n      result: result || Object.create(null),\n      dataId,\n      selectionSet: operationDefinition.selectionSet,\n      mergeTree: { map: new Map() },\n      context,\n    });\n\n    if (!isReference(ref)) {\n      throw newInvariantError(`Could not identify object %s`, result);\n    }\n\n    // So far, the store has not been modified, so now it's time to process\n    // context.incomingById and merge those incoming fields into context.store.\n    context.incomingById.forEach(\n      ({ storeObject, mergeTree, fieldNodeSet }, dataId) => {\n        const entityRef = makeReference(dataId);\n\n        if (mergeTree && mergeTree.map.size) {\n          const applied = this.applyMerges(\n            mergeTree,\n            entityRef,\n            storeObject,\n            context\n          );\n          if (isReference(applied)) {\n            // Assume References returned by applyMerges have already been merged\n            // into the store. See makeMergeObjectsFunction in policies.ts for an\n            // example of how this can happen.\n            return;\n          }\n          // Otherwise, applyMerges returned a StoreObject, whose fields we should\n          // merge into the store (see store.merge statement below).\n          storeObject = applied;\n        }\n\n        if (__DEV__ && !context.overwrite) {\n          const fieldsWithSelectionSets: Record<string, true> =\n            Object.create(null);\n          fieldNodeSet.forEach((field) => {\n            if (field.selectionSet) {\n              fieldsWithSelectionSets[field.name.value] = true;\n            }\n          });\n\n          const hasSelectionSet = (storeFieldName: string) =>\n            fieldsWithSelectionSets[fieldNameFromStoreName(storeFieldName)] ===\n            true;\n\n          const hasMergeFunction = (storeFieldName: string) => {\n            const childTree = mergeTree && mergeTree.map.get(storeFieldName);\n            return Boolean(childTree && childTree.info && childTree.info.merge);\n          };\n\n          Object.keys(storeObject).forEach((storeFieldName) => {\n            // If a merge function was defined for this field, trust that it\n            // did the right thing about (not) clobbering data. If the field\n            // has no selection set, it's a scalar field, so it doesn't need\n            // a merge function (even if it's an object, like JSON data).\n            if (\n              hasSelectionSet(storeFieldName) &&\n              !hasMergeFunction(storeFieldName)\n            ) {\n              warnAboutDataLoss(\n                entityRef,\n                storeObject,\n                storeFieldName,\n                context.store\n              );\n            }\n          });\n        }\n\n        store.merge(dataId, storeObject);\n      }\n    );\n\n    // Any IDs written explicitly to the cache will be retained as\n    // reachable root IDs for garbage collection purposes. Although this\n    // logic includes root IDs like ROOT_QUERY and ROOT_MUTATION, their\n    // retainment counts are effectively ignored because cache.gc() always\n    // includes them in its root ID set.\n    store.retain(ref.__ref);\n\n    return ref;\n  }\n\n  private processSelectionSet({\n    dataId,\n    result,\n    selectionSet,\n    context,\n    // This object allows processSelectionSet to report useful information\n    // to its callers without explicitly returning that information.\n    mergeTree,\n  }: ProcessSelectionSetOptions): StoreObject | Reference {\n    const { policies } = this.cache;\n\n    // This variable will be repeatedly updated using context.merge to\n    // accumulate all fields that need to be written into the store.\n    let incoming: StoreObject = Object.create(null);\n\n    // If typename was not passed in, infer it. Note that typename is\n    // always passed in for tricky-to-infer cases such as \"Query\" for\n    // ROOT_QUERY.\n    const typename: string | undefined =\n      (dataId && policies.rootTypenamesById[dataId]) ||\n      getTypenameFromResult(result, selectionSet, context.fragmentMap) ||\n      (dataId && (context.store.get(dataId, \"__typename\") as string));\n\n    if (\"string\" === typeof typename) {\n      incoming.__typename = typename;\n    }\n\n    // This readField function will be passed as context.readField in the\n    // KeyFieldsContext object created within policies.identify (called below).\n    // In addition to reading from the existing context.store (thanks to the\n    // policies.readField(options, context) line at the very bottom), this\n    // version of readField can read from Reference objects that are currently\n    // pending in context.incomingById, which is important whenever keyFields\n    // need to be extracted from a child object that processSelectionSet has\n    // turned into a Reference.\n    const readField: ReadFieldFunction = function (this: void) {\n      const options = normalizeReadFieldOptions(\n        arguments,\n        incoming,\n        context.variables\n      );\n\n      if (isReference(options.from)) {\n        const info = context.incomingById.get(options.from.__ref);\n        if (info) {\n          const result = policies.readField(\n            {\n              ...options,\n              from: info.storeObject,\n            },\n            context\n          );\n\n          if (result !== void 0) {\n            return result;\n          }\n        }\n      }\n\n      return policies.readField(options, context);\n    };\n\n    const fieldNodeSet = new Set<FieldNode>();\n\n    this.flattenFields(\n      selectionSet,\n      result,\n      // This WriteContext will be the default context value for fields returned\n      // by the flattenFields method, but some fields may be assigned a modified\n      // context, depending on the presence of @client and other directives.\n      context,\n      typename\n    ).forEach((context, field) => {\n      const resultFieldKey = resultKeyNameFromField(field);\n      const value = result[resultFieldKey];\n\n      fieldNodeSet.add(field);\n\n      if (value !== void 0) {\n        const storeFieldName = policies.getStoreFieldName({\n          typename,\n          fieldName: field.name.value,\n          field,\n          variables: context.variables,\n        });\n\n        const childTree = getChildMergeTree(mergeTree, storeFieldName);\n\n        let incomingValue = this.processFieldValue(\n          value,\n          field,\n          // Reset context.clientOnly and context.deferred to their default\n          // values before processing nested selection sets.\n          field.selectionSet ?\n            getContextFlavor(context, false, false)\n          : context,\n          childTree\n        );\n\n        // To determine if this field holds a child object with a merge function\n        // defined in its type policy (see PR #7070), we need to figure out the\n        // child object's __typename.\n        let childTypename: string | undefined;\n\n        // The field's value can be an object that has a __typename only if the\n        // field has a selection set. Otherwise incomingValue is scalar.\n        if (\n          field.selectionSet &&\n          (isReference(incomingValue) || storeValueIsStoreObject(incomingValue))\n        ) {\n          childTypename = readField<string>(\"__typename\", incomingValue);\n        }\n\n        const merge = policies.getMergeFunction(\n          typename,\n          field.name.value,\n          childTypename\n        );\n\n        if (merge) {\n          childTree.info = {\n            // TODO Check compatibility against any existing childTree.field?\n            field,\n            typename,\n            merge,\n          };\n        } else {\n          maybeRecycleChildMergeTree(mergeTree, storeFieldName);\n        }\n\n        incoming = context.merge(incoming, {\n          [storeFieldName]: incomingValue,\n        });\n      } else if (\n        __DEV__ &&\n        !context.clientOnly &&\n        !context.deferred &&\n        !addTypenameToDocument.added(field) &&\n        // If the field has a read function, it may be a synthetic field or\n        // provide a default value, so its absence from the written data should\n        // not be cause for alarm.\n        !policies.getReadFunction(typename, field.name.value)\n      ) {\n        invariant.error(\n          `Missing field '%s' while writing result %o`,\n          resultKeyNameFromField(field),\n          result\n        );\n      }\n    });\n\n    // Identify the result object, even if dataId was already provided,\n    // since we always need keyObject below.\n    try {\n      const [id, keyObject] = policies.identify(result, {\n        typename,\n        selectionSet,\n        fragmentMap: context.fragmentMap,\n        storeObject: incoming,\n        readField,\n      });\n\n      // If dataId was not provided, fall back to the id just generated by\n      // policies.identify.\n      dataId = dataId || id;\n\n      // Write any key fields that were used during identification, even if\n      // they were not mentioned in the original query.\n      if (keyObject) {\n        // TODO Reverse the order of the arguments?\n        incoming = context.merge(incoming, keyObject);\n      }\n    } catch (e) {\n      // If dataId was provided, tolerate failure of policies.identify.\n      if (!dataId) throw e;\n    }\n\n    if (\"string\" === typeof dataId) {\n      const dataRef = makeReference(dataId);\n\n      // Avoid processing the same entity object using the same selection\n      // set more than once. We use an array instead of a Set since most\n      // entity IDs will be written using only one selection set, so the\n      // size of this array is likely to be very small, meaning indexOf is\n      // likely to be faster than Set.prototype.has.\n      const sets = context.written[dataId] || (context.written[dataId] = []);\n      if (sets.indexOf(selectionSet) >= 0) return dataRef;\n      sets.push(selectionSet);\n\n      // If we're about to write a result object into the store, but we\n      // happen to know that the exact same (===) result object would be\n      // returned if we were to reread the result with the same inputs,\n      // then we can skip the rest of the processSelectionSet work for\n      // this object, and immediately return a Reference to it.\n      if (\n        this.reader &&\n        this.reader.isFresh(result, dataRef, selectionSet, context)\n      ) {\n        return dataRef;\n      }\n\n      const previous = context.incomingById.get(dataId);\n      if (previous) {\n        previous.storeObject = context.merge(previous.storeObject, incoming);\n        previous.mergeTree = mergeMergeTrees(previous.mergeTree, mergeTree);\n        fieldNodeSet.forEach((field) => previous.fieldNodeSet.add(field));\n      } else {\n        context.incomingById.set(dataId, {\n          storeObject: incoming,\n          // Save a reference to mergeTree only if it is not empty, because\n          // empty MergeTrees may be recycled by maybeRecycleChildMergeTree and\n          // reused for entirely different parts of the result tree.\n          mergeTree: mergeTreeIsEmpty(mergeTree) ? void 0 : mergeTree,\n          fieldNodeSet,\n        });\n      }\n\n      return dataRef;\n    }\n\n    return incoming;\n  }\n\n  private processFieldValue(\n    value: any,\n    field: FieldNode,\n    context: WriteContext,\n    mergeTree: MergeTree\n  ): StoreValue {\n    if (!field.selectionSet || value === null) {\n      // In development, we need to clone scalar values so that they can be\n      // safely frozen with maybeDeepFreeze in readFromStore.ts. In production,\n      // it's cheaper to store the scalar values directly in the cache.\n      return __DEV__ ? cloneDeep(value) : value;\n    }\n\n    if (isArray(value)) {\n      return value.map((item, i) => {\n        const value = this.processFieldValue(\n          item,\n          field,\n          context,\n          getChildMergeTree(mergeTree, i)\n        );\n        maybeRecycleChildMergeTree(mergeTree, i);\n        return value;\n      });\n    }\n\n    return this.processSelectionSet({\n      result: value,\n      selectionSet: field.selectionSet,\n      context,\n      mergeTree,\n    });\n  }\n\n  // Implements https://spec.graphql.org/draft/#sec-Field-Collection, but with\n  // some additions for tracking @client and @defer directives.\n  private flattenFields<\n    TContext extends Pick<\n      WriteContext,\n      | \"clientOnly\"\n      | \"deferred\"\n      | \"flavors\"\n      | \"fragmentMap\"\n      | \"lookupFragment\"\n      | \"variables\"\n    >,\n  >(\n    selectionSet: SelectionSetNode,\n    result: Record<string, any>,\n    context: TContext,\n    typename = getTypenameFromResult(result, selectionSet, context.fragmentMap)\n  ): Map<FieldNode, TContext> {\n    const fieldMap = new Map<FieldNode, TContext>();\n    const { policies } = this.cache;\n\n    const limitingTrie = new Trie<{\n      // Tracks whether (selectionSet, clientOnly, deferred) has been flattened\n      // before. The GraphQL specification only uses the fragment name for\n      // skipping previously visited fragments, but the top-level fragment\n      // selection set corresponds 1:1 with the fagment name (and is slightly\n      // easier too work with), and we need to consider clientOnly and deferred\n      // values as well, potentially revisiting selection sets that were\n      // previously visited with different inherited configurations of those\n      // directives.\n      visited?: boolean;\n    }>(false); // No need for WeakMap, since limitingTrie does not escape.\n\n    (function flatten(\n      this: void,\n      selectionSet: SelectionSetNode,\n      inheritedContext: TContext\n    ) {\n      const visitedNode = limitingTrie.lookup(\n        selectionSet,\n        // Because we take inheritedClientOnly and inheritedDeferred into\n        // consideration here (in addition to selectionSet), it's possible for\n        // the same selection set to be flattened more than once, if it appears\n        // in the query with different @client and/or @directive configurations.\n        inheritedContext.clientOnly,\n        inheritedContext.deferred\n      );\n      if (visitedNode.visited) return;\n      visitedNode.visited = true;\n\n      selectionSet.selections.forEach((selection) => {\n        if (!shouldInclude(selection, context.variables)) return;\n\n        let { clientOnly, deferred } = inheritedContext;\n        if (\n          // Since the presence of @client or @defer on this field can only\n          // cause clientOnly or deferred to become true, we can skip the\n          // forEach loop if both clientOnly and deferred are already true.\n          !(clientOnly && deferred) &&\n          isNonEmptyArray(selection.directives)\n        ) {\n          selection.directives.forEach((dir) => {\n            const name = dir.name.value;\n            if (name === \"client\") clientOnly = true;\n            if (name === \"defer\") {\n              const args = argumentsObjectFromField(dir, context.variables);\n              // The @defer directive takes an optional args.if boolean\n              // argument, similar to @include(if: boolean). Note that\n              // @defer(if: false) does not make context.deferred false, but\n              // instead behaves as if there was no @defer directive.\n              if (!args || (args as { if?: boolean }).if !== false) {\n                deferred = true;\n              }\n              // TODO In the future, we may want to record args.label using\n              // context.deferred, if a label is specified.\n            }\n          });\n        }\n\n        if (isField(selection)) {\n          const existing = fieldMap.get(selection);\n          if (existing) {\n            // If this field has been visited along another recursive path\n            // before, the final context should have clientOnly or deferred set\n            // to true only if *all* paths have the directive (hence the &&).\n            clientOnly = clientOnly && existing.clientOnly;\n            deferred = deferred && existing.deferred;\n          }\n\n          fieldMap.set(\n            selection,\n            getContextFlavor(context, clientOnly, deferred)\n          );\n        } else {\n          const fragment = getFragmentFromSelection(\n            selection,\n            context.lookupFragment\n          );\n\n          if (!fragment && selection.kind === Kind.FRAGMENT_SPREAD) {\n            throw newInvariantError(\n              `No fragment named %s`,\n              selection.name.value\n            );\n          }\n\n          if (\n            fragment &&\n            policies.fragmentMatches(\n              fragment,\n              typename,\n              result,\n              context.variables\n            )\n          ) {\n            flatten(\n              fragment.selectionSet,\n              getContextFlavor(context, clientOnly, deferred)\n            );\n          }\n        }\n      });\n    })(selectionSet, context);\n\n    return fieldMap;\n  }\n\n  private applyMerges<T extends StoreValue>(\n    mergeTree: MergeTree,\n    existing: StoreValue,\n    incoming: T,\n    context: WriteContext,\n    getStorageArgs?: Parameters<EntityStore[\"getStorage\"]>\n  ): T | Reference {\n    if (mergeTree.map.size && !isReference(incoming)) {\n      const e: StoreObject | Reference | undefined =\n        // Items in the same position in different arrays are not\n        // necessarily related to each other, so when incoming is an array\n        // we process its elements as if there was no existing data.\n        (\n          !isArray(incoming) &&\n          // Likewise, existing must be either a Reference or a StoreObject\n          // in order for its fields to be safe to merge with the fields of\n          // the incoming object.\n          (isReference(existing) || storeValueIsStoreObject(existing))\n        ) ?\n          existing\n        : void 0;\n\n      // This narrowing is implied by mergeTree.map.size > 0 and\n      // !isReference(incoming), though TypeScript understandably cannot\n      // hope to infer this type.\n      const i = incoming as StoreObject | StoreValue[];\n\n      // The options.storage objects provided to read and merge functions\n      // are derived from the identity of the parent object plus a\n      // sequence of storeFieldName strings/numbers identifying the nested\n      // field name path of each field value to be merged.\n      if (e && !getStorageArgs) {\n        getStorageArgs = [isReference(e) ? e.__ref : e];\n      }\n\n      // It's possible that applying merge functions to this subtree will\n      // not change the incoming data, so this variable tracks the fields\n      // that did change, so we can create a new incoming object when (and\n      // only when) at least one incoming field has changed. We use a Map\n      // to preserve the type of numeric keys.\n      let changedFields: Map<string | number, StoreValue> | undefined;\n\n      const getValue = (\n        from: typeof e | typeof i,\n        name: string | number\n      ): StoreValue => {\n        return (\n          isArray(from) ?\n            typeof name === \"number\" ?\n              from[name]\n            : void 0\n          : context.store.getFieldValue(from, String(name))\n        );\n      };\n\n      mergeTree.map.forEach((childTree, storeFieldName) => {\n        const eVal = getValue(e, storeFieldName);\n        const iVal = getValue(i, storeFieldName);\n        // If we have no incoming data, leave any existing data untouched.\n        if (void 0 === iVal) return;\n        if (getStorageArgs) {\n          getStorageArgs.push(storeFieldName);\n        }\n        const aVal = this.applyMerges(\n          childTree,\n          eVal,\n          iVal,\n          context,\n          getStorageArgs\n        );\n        if (aVal !== iVal) {\n          changedFields = changedFields || new Map();\n          changedFields.set(storeFieldName, aVal);\n        }\n        if (getStorageArgs) {\n          invariant(getStorageArgs.pop() === storeFieldName);\n        }\n      });\n\n      if (changedFields) {\n        // Shallow clone i so we can add changed fields to it.\n        incoming = (isArray(i) ? i.slice(0) : { ...i }) as T;\n        changedFields.forEach((value, name) => {\n          (incoming as any)[name] = value;\n        });\n      }\n    }\n\n    if (mergeTree.info) {\n      return this.cache.policies.runMergeFunction(\n        existing,\n        incoming,\n        mergeTree.info,\n        context,\n        getStorageArgs && context.store.getStorage(...getStorageArgs)\n      );\n    }\n\n    return incoming;\n  }\n}\n\nconst emptyMergeTreePool: MergeTree[] = [];\n\nfunction getChildMergeTree(\n  { map }: MergeTree,\n  name: string | number\n): MergeTree {\n  if (!map.has(name)) {\n    map.set(name, emptyMergeTreePool.pop() || { map: new Map() });\n  }\n  return map.get(name)!;\n}\n\nfunction mergeMergeTrees(\n  left: MergeTree | undefined,\n  right: MergeTree | undefined\n): MergeTree {\n  if (left === right || !right || mergeTreeIsEmpty(right)) return left!;\n  if (!left || mergeTreeIsEmpty(left)) return right;\n\n  const info =\n    left.info && right.info ?\n      {\n        ...left.info,\n        ...right.info,\n      }\n    : left.info || right.info;\n\n  const needToMergeMaps = left.map.size && right.map.size;\n  const map =\n    needToMergeMaps ? new Map()\n    : left.map.size ? left.map\n    : right.map;\n\n  const merged = { info, map };\n\n  if (needToMergeMaps) {\n    const remainingRightKeys = new Set(right.map.keys());\n\n    left.map.forEach((leftTree, key) => {\n      merged.map.set(key, mergeMergeTrees(leftTree, right.map.get(key)));\n      remainingRightKeys.delete(key);\n    });\n\n    remainingRightKeys.forEach((key) => {\n      merged.map.set(\n        key,\n        mergeMergeTrees(right.map.get(key), left.map.get(key))\n      );\n    });\n  }\n\n  return merged;\n}\n\nfunction mergeTreeIsEmpty(tree: MergeTree | undefined): boolean {\n  return !tree || !(tree.info || tree.map.size);\n}\n\nfunction maybeRecycleChildMergeTree({ map }: MergeTree, name: string | number) {\n  const childTree = map.get(name);\n  if (childTree && mergeTreeIsEmpty(childTree)) {\n    emptyMergeTreePool.push(childTree);\n    map.delete(name);\n  }\n}\n\nconst warnings = new Set<string>();\n\n// Note that this function is unused in production, and thus should be\n// pruned by any well-configured minifier.\nfunction warnAboutDataLoss(\n  existingRef: Reference,\n  incomingObj: StoreObject,\n  storeFieldName: string,\n  store: NormalizedCache\n) {\n  const getChild = (objOrRef: StoreObject | Reference): StoreObject | false => {\n    const child = store.getFieldValue<StoreObject>(objOrRef, storeFieldName);\n    return typeof child === \"object\" && child;\n  };\n\n  const existing = getChild(existingRef);\n  if (!existing) return;\n\n  const incoming = getChild(incomingObj);\n  if (!incoming) return;\n\n  // It's always safe to replace a reference, since it refers to data\n  // safely stored elsewhere.\n  if (isReference(existing)) return;\n\n  // If the values are structurally equivalent, we do not need to worry\n  // about incoming replacing existing.\n  if (equal(existing, incoming)) return;\n\n  // If we're replacing every key of the existing object, then the\n  // existing data would be overwritten even if the objects were\n  // normalized, so warning would not be helpful here.\n  if (\n    Object.keys(existing).every(\n      (key) => store.getFieldValue(incoming, key) !== void 0\n    )\n  ) {\n    return;\n  }\n\n  const parentType =\n    store.getFieldValue<string>(existingRef, \"__typename\") ||\n    store.getFieldValue<string>(incomingObj, \"__typename\");\n  const fieldName = fieldNameFromStoreName(storeFieldName);\n  const typeDotName = `${parentType}.${fieldName}`;\n  // Avoid warning more than once for the same type and field name.\n  if (warnings.has(typeDotName)) return;\n  warnings.add(typeDotName);\n\n  const childTypenames: string[] = [];\n  // Arrays do not have __typename fields, and always need a custom merge\n  // function, even if their elements are normalized entities.\n  if (!isArray(existing) && !isArray(incoming)) {\n    [existing, incoming].forEach((child) => {\n      const typename = store.getFieldValue(child, \"__typename\");\n      if (typeof typename === \"string\" && !childTypenames.includes(typename)) {\n        childTypenames.push(typename);\n      }\n    });\n  }\n\n  invariant.warn(\n    `Cache data may be lost when replacing the %s field of a %s object.\n\nThis could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.\n\nTo address this problem (which is not a bug in Apollo Client), %sdefine a custom merge function for the %s field, so InMemoryCache can safely merge these objects:\n\n  existing: %o\n  incoming: %o\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n`,\n    fieldName,\n    parentType,\n    childTypenames.length ?\n      \"either ensure all objects of type \" +\n        childTypenames.join(\" and \") +\n        \" have an ID or a custom merge function, or \"\n    : \"\",\n    typeDotName,\n    existing,\n    incoming\n  );\n}\n", "import { invariant } from \"../../utilities/globals/index.js\";\n\n// Make builtins like Map and Set safe to use with non-extensible objects.\nimport \"./fixPolyfills.js\";\n\nimport type { DocumentNode } from \"graphql\";\nimport type { OptimisticWrapperFunction } from \"optimism\";\nimport { wrap } from \"optimism\";\nimport { equal } from \"@wry/equality\";\n\nimport { ApolloCache } from \"../core/cache.js\";\nimport type { Cache } from \"../core/types/Cache.js\";\nimport { MissingFieldError } from \"../core/types/common.js\";\nimport type { StoreObject, Reference } from \"../../utilities/index.js\";\nimport {\n  addTypenameToDocument,\n  isReference,\n  DocumentTransform,\n  canonicalStringify,\n  print,\n  cacheSizes,\n  defaultCacheSizes,\n} from \"../../utilities/index.js\";\nimport type { InMemoryCacheConfig, NormalizedCacheObject } from \"./types.js\";\nimport { StoreReader } from \"./readFromStore.js\";\nimport { StoreWriter } from \"./writeToStore.js\";\nimport { EntityStore, supportsResultCaching } from \"./entityStore.js\";\nimport { makeVar, forgetCache, recallCache } from \"./reactiveVars.js\";\nimport { Policies } from \"./policies.js\";\nimport { hasOwn, normalizeConfig, shouldCanonizeResults } from \"./helpers.js\";\nimport type { OperationVariables } from \"../../core/index.js\";\nimport { getInMemoryCacheMemoryInternals } from \"../../utilities/caching/getMemoryInternals.js\";\n\ntype BroadcastOptions = Pick<\n  Cache.BatchOptions<InMemoryCache>,\n  \"optimistic\" | \"onWatchUpdated\"\n>;\n\nexport class InMemoryCache extends ApolloCache<NormalizedCacheObject> {\n  private data!: EntityStore;\n  private optimisticData!: EntityStore;\n\n  protected config: InMemoryCacheConfig;\n  private watches = new Set<Cache.WatchOptions>();\n  private addTypename: boolean;\n\n  private storeReader!: StoreReader;\n  private storeWriter!: StoreWriter;\n  private addTypenameTransform = new DocumentTransform(addTypenameToDocument);\n\n  private maybeBroadcastWatch!: OptimisticWrapperFunction<\n    [Cache.WatchOptions, BroadcastOptions?],\n    any,\n    [Cache.WatchOptions]\n  >;\n\n  // Override the default value, since InMemoryCache result objects are frozen\n  // in development and expected to remain logically immutable in production.\n  public readonly assumeImmutableResults = true;\n\n  // Dynamically imported code can augment existing typePolicies or\n  // possibleTypes by calling cache.policies.addTypePolicies or\n  // cache.policies.addPossibletypes.\n  public readonly policies: Policies;\n\n  public readonly makeVar = makeVar;\n\n  constructor(config: InMemoryCacheConfig = {}) {\n    super();\n    this.config = normalizeConfig(config);\n    this.addTypename = !!this.config.addTypename;\n\n    this.policies = new Policies({\n      cache: this,\n      dataIdFromObject: this.config.dataIdFromObject,\n      possibleTypes: this.config.possibleTypes,\n      typePolicies: this.config.typePolicies,\n    });\n\n    this.init();\n  }\n\n  private init() {\n    // Passing { resultCaching: false } in the InMemoryCache constructor options\n    // will completely disable dependency tracking, which will improve memory\n    // usage but worsen the performance of repeated reads.\n    const rootStore = (this.data = new EntityStore.Root({\n      policies: this.policies,\n      resultCaching: this.config.resultCaching,\n    }));\n\n    // When no optimistic writes are currently active, cache.optimisticData ===\n    // cache.data, so there are no additional layers on top of the actual data.\n    // When an optimistic update happens, this.optimisticData will become a\n    // linked list of EntityStore Layer objects that terminates with the\n    // original this.data cache object.\n    this.optimisticData = rootStore.stump;\n\n    this.resetResultCache();\n  }\n\n  private resetResultCache(resetResultIdentities?: boolean) {\n    const previousReader = this.storeReader;\n    const { fragments } = this.config;\n\n    // The StoreWriter is mostly stateless and so doesn't really need to be\n    // reset, but it does need to have its writer.storeReader reference updated,\n    // so it's simpler to update this.storeWriter as well.\n    this.storeWriter = new StoreWriter(\n      this,\n      (this.storeReader = new StoreReader({\n        cache: this,\n        addTypename: this.addTypename,\n        resultCacheMaxSize: this.config.resultCacheMaxSize,\n        canonizeResults: shouldCanonizeResults(this.config),\n        canon:\n          resetResultIdentities ? void 0 : (\n            previousReader && previousReader.canon\n          ),\n        fragments,\n      })),\n      fragments\n    );\n\n    this.maybeBroadcastWatch = wrap(\n      (c: Cache.WatchOptions, options?: BroadcastOptions) => {\n        return this.broadcastWatch(c, options);\n      },\n      {\n        max:\n          this.config.resultCacheMaxSize ||\n          cacheSizes[\"inMemoryCache.maybeBroadcastWatch\"] ||\n          defaultCacheSizes[\"inMemoryCache.maybeBroadcastWatch\"],\n        makeCacheKey: (c: Cache.WatchOptions) => {\n          // Return a cache key (thus enabling result caching) only if we're\n          // currently using a data store that can track cache dependencies.\n          const store = c.optimistic ? this.optimisticData : this.data;\n          if (supportsResultCaching(store)) {\n            const { optimistic, id, variables } = c;\n            return store.makeCacheKey(\n              c.query,\n              // Different watches can have the same query, optimistic\n              // status, rootId, and variables, but if their callbacks are\n              // different, the (identical) result needs to be delivered to\n              // each distinct callback. The easiest way to achieve that\n              // separation is to include c.callback in the cache key for\n              // maybeBroadcastWatch calls. See issue #5733.\n              c.callback,\n              canonicalStringify({ optimistic, id, variables })\n            );\n          }\n        },\n      }\n    );\n\n    // Since we have thrown away all the cached functions that depend on the\n    // CacheGroup dependencies maintained by EntityStore, we should also reset\n    // all CacheGroup dependency information.\n    new Set([this.data.group, this.optimisticData.group]).forEach((group) =>\n      group.resetCaching()\n    );\n  }\n\n  public restore(data: NormalizedCacheObject): this {\n    this.init();\n    // Since calling this.init() discards/replaces the entire StoreReader, along\n    // with the result caches it maintains, this.data.replace(data) won't have\n    // to bother deleting the old data.\n    if (data) this.data.replace(data);\n    return this;\n  }\n\n  public extract(optimistic: boolean = false): NormalizedCacheObject {\n    return (optimistic ? this.optimisticData : this.data).extract();\n  }\n\n  public read<T>(options: Cache.ReadOptions): T | null {\n    const {\n      // Since read returns data or null, without any additional metadata\n      // about whether/where there might have been missing fields, the\n      // default behavior cannot be returnPartialData = true (like it is\n      // for the diff method), since defaulting to true would violate the\n      // integrity of the T in the return type. However, partial data may\n      // be useful in some cases, so returnPartialData:true may be\n      // specified explicitly.\n      returnPartialData = false,\n    } = options;\n    try {\n      return (\n        this.storeReader.diffQueryAgainstStore<T>({\n          ...options,\n          store: options.optimistic ? this.optimisticData : this.data,\n          config: this.config,\n          returnPartialData,\n        }).result || null\n      );\n    } catch (e) {\n      if (e instanceof MissingFieldError) {\n        // Swallow MissingFieldError and return null, so callers do not need to\n        // worry about catching \"normal\" exceptions resulting from incomplete\n        // cache data. Unexpected errors will be re-thrown. If you need more\n        // information about which fields were missing, use cache.diff instead,\n        // and examine diffResult.missing.\n        return null;\n      }\n      throw e;\n    }\n  }\n\n  public write(options: Cache.WriteOptions): Reference | undefined {\n    try {\n      ++this.txCount;\n      return this.storeWriter.writeToStore(this.data, options);\n    } finally {\n      if (!--this.txCount && options.broadcast !== false) {\n        this.broadcastWatches();\n      }\n    }\n  }\n\n  public modify<Entity extends Record<string, any> = Record<string, any>>(\n    options: Cache.ModifyOptions<Entity>\n  ): boolean {\n    if (hasOwn.call(options, \"id\") && !options.id) {\n      // To my knowledge, TypeScript does not currently provide a way to\n      // enforce that an optional property?:type must *not* be undefined\n      // when present. That ability would be useful here, because we want\n      // options.id to default to ROOT_QUERY only when no options.id was\n      // provided. If the caller attempts to pass options.id with a\n      // falsy/undefined value (perhaps because cache.identify failed), we\n      // should not assume the goal was to modify the ROOT_QUERY object.\n      // We could throw, but it seems natural to return false to indicate\n      // that nothing was modified.\n      return false;\n    }\n    const store =\n      (\n        options.optimistic // Defaults to false.\n      ) ?\n        this.optimisticData\n      : this.data;\n    try {\n      ++this.txCount;\n      return store.modify(options.id || \"ROOT_QUERY\", options.fields);\n    } finally {\n      if (!--this.txCount && options.broadcast !== false) {\n        this.broadcastWatches();\n      }\n    }\n  }\n\n  public diff<TData, TVariables extends OperationVariables = any>(\n    options: Cache.DiffOptions<TData, TVariables>\n  ): Cache.DiffResult<TData> {\n    return this.storeReader.diffQueryAgainstStore({\n      ...options,\n      store: options.optimistic ? this.optimisticData : this.data,\n      rootId: options.id || \"ROOT_QUERY\",\n      config: this.config,\n    });\n  }\n\n  public watch<TData = any, TVariables = any>(\n    watch: Cache.WatchOptions<TData, TVariables>\n  ): () => void {\n    if (!this.watches.size) {\n      // In case we previously called forgetCache(this) because\n      // this.watches became empty (see below), reattach this cache to any\n      // reactive variables on which it previously depended. It might seem\n      // paradoxical that we're able to recall something we supposedly\n      // forgot, but the point of calling forgetCache(this) is to silence\n      // useless broadcasts while this.watches is empty, and to allow the\n      // cache to be garbage collected. If, however, we manage to call\n      // recallCache(this) here, this cache object must not have been\n      // garbage collected yet, and should resume receiving updates from\n      // reactive variables, now that it has a watcher to notify.\n      recallCache(this);\n    }\n    this.watches.add(watch);\n    if (watch.immediate) {\n      this.maybeBroadcastWatch(watch);\n    }\n    return () => {\n      // Once we remove the last watch from this.watches, cache.broadcastWatches\n      // no longer does anything, so we preemptively tell the reactive variable\n      // system to exclude this cache from future broadcasts.\n      if (this.watches.delete(watch) && !this.watches.size) {\n        forgetCache(this);\n      }\n      // Remove this watch from the LRU cache managed by the\n      // maybeBroadcastWatch OptimisticWrapperFunction, to prevent memory\n      // leaks involving the closure of watch.callback.\n      this.maybeBroadcastWatch.forget(watch);\n    };\n  }\n\n  public gc(options?: {\n    // If true, also free non-essential result cache memory by bulk-releasing\n    // this.{store{Reader,Writer},maybeBroadcastWatch}. Defaults to false.\n    resetResultCache?: boolean;\n    // If resetResultCache is true, this.storeReader.canon will be preserved by\n    // default, but can also be discarded by passing resetResultIdentities:true.\n    // Defaults to false.\n    resetResultIdentities?: boolean;\n  }) {\n    canonicalStringify.reset();\n    print.reset();\n    this.addTypenameTransform.resetCache();\n    this.config.fragments?.resetCaches();\n    const ids = this.optimisticData.gc();\n    if (options && !this.txCount) {\n      if (options.resetResultCache) {\n        this.resetResultCache(options.resetResultIdentities);\n      } else if (options.resetResultIdentities) {\n        this.storeReader.resetCanon();\n      }\n    }\n    return ids;\n  }\n\n  // Call this method to ensure the given root ID remains in the cache after\n  // garbage collection, along with its transitive child entities. Note that\n  // the cache automatically retains all directly written entities. By default,\n  // the retainment persists after optimistic updates are removed. Pass true\n  // for the optimistic argument if you would prefer for the retainment to be\n  // discarded when the top-most optimistic layer is removed. Returns the\n  // resulting (non-negative) retainment count.\n  public retain(rootId: string, optimistic?: boolean): number {\n    return (optimistic ? this.optimisticData : this.data).retain(rootId);\n  }\n\n  // Call this method to undo the effect of the retain method, above. Once the\n  // retainment count falls to zero, the given ID will no longer be preserved\n  // during garbage collection, though it may still be preserved by other safe\n  // entities that refer to it. Returns the resulting (non-negative) retainment\n  // count, in case that's useful.\n  public release(rootId: string, optimistic?: boolean): number {\n    return (optimistic ? this.optimisticData : this.data).release(rootId);\n  }\n\n  // Returns the canonical ID for a given StoreObject, obeying typePolicies\n  // and keyFields (and dataIdFromObject, if you still use that). At minimum,\n  // the object must contain a __typename and any primary key fields required\n  // to identify entities of that type. If you pass a query result object, be\n  // sure that none of the primary key fields have been renamed by aliasing.\n  // If you pass a Reference object, its __ref ID string will be returned.\n  public identify(object: StoreObject | Reference): string | undefined {\n    if (isReference(object)) return object.__ref;\n    try {\n      return this.policies.identify(object)[0];\n    } catch (e) {\n      invariant.warn(e);\n    }\n  }\n\n  public evict(options: Cache.EvictOptions): boolean {\n    if (!options.id) {\n      if (hasOwn.call(options, \"id\")) {\n        // See comment in modify method about why we return false when\n        // options.id exists but is falsy/undefined.\n        return false;\n      }\n      options = { ...options, id: \"ROOT_QUERY\" };\n    }\n    try {\n      // It's unlikely that the eviction will end up invoking any other\n      // cache update operations while it's running, but {in,de}crementing\n      // this.txCount still seems like a good idea, for uniformity with\n      // the other update methods.\n      ++this.txCount;\n      // Pass this.data as a limit on the depth of the eviction, so evictions\n      // during optimistic updates (when this.data is temporarily set equal to\n      // this.optimisticData) do not escape their optimistic Layer.\n      return this.optimisticData.evict(options, this.data);\n    } finally {\n      if (!--this.txCount && options.broadcast !== false) {\n        this.broadcastWatches();\n      }\n    }\n  }\n\n  public reset(options?: Cache.ResetOptions): Promise<void> {\n    this.init();\n\n    canonicalStringify.reset();\n\n    if (options && options.discardWatches) {\n      // Similar to what happens in the unsubscribe function returned by\n      // cache.watch, applied to all current watches.\n      this.watches.forEach((watch) => this.maybeBroadcastWatch.forget(watch));\n      this.watches.clear();\n      forgetCache(this);\n    } else {\n      // Calling this.init() above unblocks all maybeBroadcastWatch caching, so\n      // this.broadcastWatches() triggers a broadcast to every current watcher\n      // (letting them know their data is now missing). This default behavior is\n      // convenient because it means the watches do not have to be manually\n      // reestablished after resetting the cache. To prevent this broadcast and\n      // cancel all watches, pass true for options.discardWatches.\n      this.broadcastWatches();\n    }\n\n    return Promise.resolve();\n  }\n\n  public removeOptimistic(idToRemove: string) {\n    const newOptimisticData = this.optimisticData.removeLayer(idToRemove);\n    if (newOptimisticData !== this.optimisticData) {\n      this.optimisticData = newOptimisticData;\n      this.broadcastWatches();\n    }\n  }\n\n  private txCount = 0;\n\n  public batch<TUpdateResult>(\n    options: Cache.BatchOptions<InMemoryCache, TUpdateResult>\n  ): TUpdateResult {\n    const {\n      update,\n      optimistic = true,\n      removeOptimistic,\n      onWatchUpdated,\n    } = options;\n\n    let updateResult: TUpdateResult;\n    const perform = (layer?: EntityStore): TUpdateResult => {\n      const { data, optimisticData } = this;\n      ++this.txCount;\n      if (layer) {\n        this.data = this.optimisticData = layer;\n      }\n      try {\n        return (updateResult = update(this));\n      } finally {\n        --this.txCount;\n        this.data = data;\n        this.optimisticData = optimisticData;\n      }\n    };\n\n    const alreadyDirty = new Set<Cache.WatchOptions>();\n\n    if (onWatchUpdated && !this.txCount) {\n      // If an options.onWatchUpdated callback is provided, we want to call it\n      // with only the Cache.WatchOptions objects affected by options.update,\n      // but there might be dirty watchers already waiting to be broadcast that\n      // have nothing to do with the update. To prevent including those watchers\n      // in the post-update broadcast, we perform this initial broadcast to\n      // collect the dirty watchers, so we can re-dirty them later, after the\n      // post-update broadcast, allowing them to receive their pending\n      // broadcasts the next time broadcastWatches is called, just as they would\n      // if we never called cache.batch.\n      this.broadcastWatches({\n        ...options,\n        onWatchUpdated(watch) {\n          alreadyDirty.add(watch);\n          return false;\n        },\n      });\n    }\n\n    if (typeof optimistic === \"string\") {\n      // Note that there can be multiple layers with the same optimistic ID.\n      // When removeOptimistic(id) is called for that id, all matching layers\n      // will be removed, and the remaining layers will be reapplied.\n      this.optimisticData = this.optimisticData.addLayer(optimistic, perform);\n    } else if (optimistic === false) {\n      // Ensure both this.data and this.optimisticData refer to the root\n      // (non-optimistic) layer of the cache during the update. Note that\n      // this.data could be a Layer if we are currently executing an optimistic\n      // update function, but otherwise will always be an EntityStore.Root\n      // instance.\n      perform(this.data);\n    } else {\n      // Otherwise, leave this.data and this.optimisticData unchanged and run\n      // the update with broadcast batching.\n      perform();\n    }\n\n    if (typeof removeOptimistic === \"string\") {\n      this.optimisticData = this.optimisticData.removeLayer(removeOptimistic);\n    }\n\n    // Note: if this.txCount > 0, then alreadyDirty.size === 0, so this code\n    // takes the else branch and calls this.broadcastWatches(options), which\n    // does nothing when this.txCount > 0.\n    if (onWatchUpdated && alreadyDirty.size) {\n      this.broadcastWatches({\n        ...options,\n        onWatchUpdated(watch, diff) {\n          const result = onWatchUpdated.call(this, watch, diff);\n          if (result !== false) {\n            // Since onWatchUpdated did not return false, this diff is\n            // about to be broadcast to watch.callback, so we don't need\n            // to re-dirty it with the other alreadyDirty watches below.\n            alreadyDirty.delete(watch);\n          }\n          return result;\n        },\n      });\n      // Silently re-dirty any watches that were already dirty before the update\n      // was performed, and were not broadcast just now.\n      if (alreadyDirty.size) {\n        alreadyDirty.forEach((watch) => this.maybeBroadcastWatch.dirty(watch));\n      }\n    } else {\n      // If alreadyDirty is empty or we don't have an onWatchUpdated\n      // function, we don't need to go to the trouble of wrapping\n      // options.onWatchUpdated.\n      this.broadcastWatches(options);\n    }\n\n    return updateResult!;\n  }\n\n  public performTransaction(\n    update: (cache: InMemoryCache) => any,\n    optimisticId?: string | null\n  ) {\n    return this.batch({\n      update,\n      optimistic: optimisticId || optimisticId !== null,\n    });\n  }\n\n  public transformDocument(document: DocumentNode): DocumentNode {\n    return this.addTypenameToDocument(this.addFragmentsToDocument(document));\n  }\n\n  protected broadcastWatches(options?: BroadcastOptions) {\n    if (!this.txCount) {\n      this.watches.forEach((c) => this.maybeBroadcastWatch(c, options));\n    }\n  }\n\n  private addFragmentsToDocument(document: DocumentNode) {\n    const { fragments } = this.config;\n    return fragments ? fragments.transform(document) : document;\n  }\n\n  private addTypenameToDocument(document: DocumentNode) {\n    if (this.addTypename) {\n      return this.addTypenameTransform.transformDocument(document);\n    }\n    return document;\n  }\n\n  // This method is wrapped by maybeBroadcastWatch, which is called by\n  // broadcastWatches, so that we compute and broadcast results only when\n  // the data that would be broadcast might have changed. It would be\n  // simpler to check for changes after recomputing a result but before\n  // broadcasting it, but this wrapping approach allows us to skip both\n  // the recomputation and the broadcast, in most cases.\n  private broadcastWatch(c: Cache.WatchOptions, options?: BroadcastOptions) {\n    const { lastDiff } = c;\n\n    // Both WatchOptions and DiffOptions extend ReadOptions, and DiffOptions\n    // currently requires no additional properties, so we can use c (a\n    // WatchOptions object) as DiffOptions, without having to allocate a new\n    // object, and without having to enumerate the relevant properties (query,\n    // variables, etc.) explicitly. There will be some additional properties\n    // (lastDiff, callback, etc.), but cache.diff ignores them.\n    const diff = this.diff<any>(c);\n\n    if (options) {\n      if (c.optimistic && typeof options.optimistic === \"string\") {\n        diff.fromOptimisticTransaction = true;\n      }\n\n      if (\n        options.onWatchUpdated &&\n        options.onWatchUpdated.call(this, c, diff, lastDiff) === false\n      ) {\n        // Returning false from the onWatchUpdated callback will prevent\n        // calling c.callback(diff) for this watcher.\n        return;\n      }\n    }\n\n    if (!lastDiff || !equal(lastDiff.result, diff.result)) {\n      c.callback((c.lastDiff = diff), lastDiff);\n    }\n  }\n\n  /**\n   * @experimental\n   * @internal\n   * This is not a stable API - it is used in development builds to expose\n   * information to the DevTools.\n   * Use at your own risk!\n   */\n  public getMemoryInternals?: typeof getInMemoryCacheMemoryInternals;\n}\n\nif (__DEV__) {\n  InMemoryCache.prototype.getMemoryInternals = getInMemoryCacheMemoryInternals;\n}\n", "/**\n * The current status of a query’s execution in our system.\n */\nexport enum NetworkStatus {\n  /**\n   * The query has never been run before and the query is now currently running. A query will still\n   * have this network status even if a partial data result was returned from the cache, but a\n   * query was dispatched anyway.\n   */\n  loading = 1,\n\n  /**\n   * If `setVariables` was called and a query was fired because of that then the network status\n   * will be `setVariables` until the result of that query comes back.\n   */\n  setVariables = 2,\n\n  /**\n   * Indicates that `fetchMore` was called on this query and that the query created is currently in\n   * flight.\n   */\n  fetchMore = 3,\n\n  /**\n   * Similar to the `setVariables` network status. It means that `refetch` was called on a query\n   * and the refetch request is currently in flight.\n   */\n  refetch = 4,\n\n  /**\n   * Indicates that a polling query is currently in flight. So for example if you are polling a\n   * query every 10 seconds then the network status will switch to `poll` every 10 seconds whenever\n   * a poll request has been sent but not resolved.\n   */\n  poll = 6,\n\n  /**\n   * No request is in flight for this query, and no errors happened. Everything is OK.\n   */\n  ready = 7,\n\n  /**\n   * No request is in flight for this query, but one or more errors were detected.\n   */\n  error = 8,\n}\n\n/**\n * Returns true if there is currently a network request in flight according to a given network\n * status.\n */\nexport function isNetworkRequestInFlight(\n  networkStatus?: NetworkStatus\n): boolean {\n  return networkStatus ? networkStatus < 7 : false;\n}\n\n/**\n * Returns true if the network request is in ready or error state according to a given network\n * status.\n */\nexport function isNetworkRequestSettled(\n  networkStatus?: NetworkStatus\n): boolean {\n  return networkStatus === 7 || networkStatus === 8;\n}\n", "import equal from \"@wry/equality\";\n\nimport type {\n  DirectiveNode,\n  DocumentNode,\n  FieldNode,\n  FragmentDefinitionNode,\n  FragmentSpreadNode,\n  InlineFragmentNode,\n  SelectionNode,\n  SelectionSetNode,\n} from \"graphql\";\n\nimport type { ApolloQueryResult, OperationVariables } from \"./types.js\";\n\nimport type { FragmentMap } from \"../utilities/index.js\";\nimport {\n  createFragmentMap,\n  getFragmentDefinitions,\n  getFragmentFromSelection,\n  getMainDefinition,\n  isField,\n  resultKeyNameFromField,\n  shouldInclude,\n} from \"../utilities/index.js\";\n\n// Returns true if aResult and bResult are deeply equal according to the fields\n// selected by the given query, ignoring any fields marked as @nonreactive.\nexport function equalByQuery(\n  query: DocumentNode,\n  { data: aData, ...aRest }: Partial<ApolloQueryResult<unknown>>,\n  { data: bData, ...bRest }: Partial<ApolloQueryResult<unknown>>,\n  variables?: OperationVariables\n): boolean {\n  return (\n    equal(aRest, bRest) &&\n    equalBySelectionSet(getMainDefinition(query).selectionSet, aData, bData, {\n      fragmentMap: createFragmentMap(getFragmentDefinitions(query)),\n      variables,\n    })\n  );\n}\n\n// Encapsulates the information used by equalBySelectionSet that does not change\n// during the recursion.\ninterface CompareContext<TVariables> {\n  fragmentMap: FragmentMap;\n  variables: TVariables | undefined;\n}\n\nfunction equalBySelectionSet(\n  selectionSet: SelectionSetNode,\n  aResult: any,\n  bResult: any,\n  context: CompareContext<OperationVariables>\n): boolean {\n  if (aResult === bResult) {\n    return true;\n  }\n\n  const seenSelections = new Set<SelectionNode>();\n\n  // Returning true from this Array.prototype.every callback function skips the\n  // current field/subtree. Returning false aborts the entire traversal\n  // immediately, causing equalBySelectionSet to return false.\n  return selectionSet.selections.every((selection) => {\n    // Avoid re-processing the same selection at the same level of recursion, in\n    // case the same field gets included via multiple indirect fragment spreads.\n    if (seenSelections.has(selection)) return true;\n    seenSelections.add(selection);\n\n    // Ignore @skip(if: true) and @include(if: false) fields.\n    if (!shouldInclude(selection, context.variables)) return true;\n\n    // If the field or (named) fragment spread has a @nonreactive directive on\n    // it, we don't care if it's different, so we pretend it's the same.\n    if (selectionHasNonreactiveDirective(selection)) return true;\n\n    if (isField(selection)) {\n      const resultKey = resultKeyNameFromField(selection);\n      const aResultChild = aResult && aResult[resultKey];\n      const bResultChild = bResult && bResult[resultKey];\n      const childSelectionSet = selection.selectionSet;\n\n      if (!childSelectionSet) {\n        // These are scalar values, so we can compare them with deep equal\n        // without redoing the main recursive work.\n        return equal(aResultChild, bResultChild);\n      }\n\n      const aChildIsArray = Array.isArray(aResultChild);\n      const bChildIsArray = Array.isArray(bResultChild);\n      if (aChildIsArray !== bChildIsArray) return false;\n      if (aChildIsArray && bChildIsArray) {\n        const length = aResultChild.length;\n        if (bResultChild.length !== length) {\n          return false;\n        }\n        for (let i = 0; i < length; ++i) {\n          if (\n            !equalBySelectionSet(\n              childSelectionSet,\n              aResultChild[i],\n              bResultChild[i],\n              context\n            )\n          ) {\n            return false;\n          }\n        }\n        return true;\n      }\n\n      return equalBySelectionSet(\n        childSelectionSet,\n        aResultChild,\n        bResultChild,\n        context\n      );\n    } else {\n      const fragment = getFragmentFromSelection(selection, context.fragmentMap);\n      if (fragment) {\n        // The fragment might === selection if it's an inline fragment, but\n        // could be !== if it's a named fragment ...spread.\n        if (selectionHasNonreactiveDirective(fragment)) return true;\n\n        return equalBySelectionSet(\n          fragment.selectionSet,\n          // Notice that we reuse the same aResult and bResult values here,\n          // since the fragment ...spread does not specify a field name, but\n          // consists of multiple fields (within the fragment's selection set)\n          // that should be applied to the current result value(s).\n          aResult,\n          bResult,\n          context\n        );\n      }\n    }\n  });\n}\n\nfunction selectionHasNonreactiveDirective(\n  selection:\n    | FieldNode\n    | InlineFragmentNode\n    | FragmentSpreadNode\n    | FragmentDefinitionNode\n): boolean {\n  return (\n    !!selection.directives && selection.directives.some(directiveIsNonreactive)\n  );\n}\n\nfunction directiveIsNonreactive(dir: DirectiveNode): boolean {\n  return dir.name.value === \"nonreactive\";\n}\n", "import { invariant } from \"../utilities/globals/index.js\";\nimport type { DocumentNode } from \"graphql\";\nimport { equal } from \"@wry/equality\";\n\nimport { NetworkStatus, isNetworkRequestInFlight } from \"./networkStatus.js\";\nimport type {\n  Concast,\n  Observer,\n  ObservableSubscription,\n} from \"../utilities/index.js\";\nimport {\n  cloneDeep,\n  compact,\n  getOperationDefinition,\n  Observable,\n  iterateObserversSafely,\n  fixObservableSubclass,\n  getQueryDefinition,\n} from \"../utilities/index.js\";\nimport type { ApolloError } from \"../errors/index.js\";\nimport type { QueryManager } from \"./QueryManager.js\";\nimport type {\n  ApolloQueryResult,\n  OperationVariables,\n  TypedDocumentNode,\n} from \"./types.js\";\nimport type {\n  WatchQueryOptions,\n  FetchMoreQueryOptions,\n  SubscribeToMoreOptions,\n  NextFetchPolicyContext,\n  WatchQueryFetchPolicy,\n} from \"./watchQueryOptions.js\";\nimport type { QueryInfo } from \"./QueryInfo.js\";\nimport type { MissingFieldError } from \"../cache/index.js\";\nimport type { MissingTree } from \"../cache/core/types/common.js\";\nimport { equalByQuery } from \"./equalByQuery.js\";\nimport type { TODO } from \"../utilities/types/TODO.js\";\n\nconst { assign, hasOwnProperty } = Object;\n\nexport interface FetchMoreOptions<\n  TData = any,\n  TVariables = OperationVariables,\n> {\n  updateQuery?: (\n    previousQueryResult: TData,\n    options: {\n      fetchMoreResult?: TData;\n      variables?: TVariables;\n    }\n  ) => TData;\n}\n\nexport interface UpdateQueryOptions<TVariables> {\n  variables?: TVariables;\n}\n\ninterface Last<TData, TVariables> {\n  result: ApolloQueryResult<TData>;\n  variables?: TVariables;\n  error?: ApolloError;\n}\n\nexport class ObservableQuery<\n  TData = any,\n  TVariables extends OperationVariables = OperationVariables,\n> extends Observable<ApolloQueryResult<TData>> {\n  public readonly options: WatchQueryOptions<TVariables, TData>;\n  public readonly queryId: string;\n  public readonly queryName?: string;\n\n  // The `query` computed property will always reflect the document transformed\n  // by the last run query. `this.options.query` will always reflect the raw\n  // untransformed query to ensure document transforms with runtime conditionals\n  // are run on the original document.\n  public get query(): TypedDocumentNode<TData, TVariables> {\n    return this.lastQuery || this.options.query;\n  }\n\n  // Computed shorthand for this.options.variables, preserved for\n  // backwards compatibility.\n  /**\n   * An object containing the variables that were provided for the query.\n   */\n  public get variables(): TVariables | undefined {\n    return this.options.variables;\n  }\n\n  private isTornDown: boolean;\n  private queryManager: QueryManager<any>;\n  private observers = new Set<Observer<ApolloQueryResult<TData>>>();\n  private subscriptions = new Set<ObservableSubscription>();\n\n  private waitForOwnResult: boolean;\n  private last?: Last<TData, TVariables>;\n  private lastQuery?: DocumentNode;\n\n  private queryInfo: QueryInfo;\n\n  // When this.concast is defined, this.observer is the Observer currently\n  // subscribed to that Concast.\n  private concast?: Concast<ApolloQueryResult<TData>>;\n  private observer?: Observer<ApolloQueryResult<TData>>;\n\n  private pollingInfo?: {\n    interval: number;\n    timeout: ReturnType<typeof setTimeout>;\n  };\n\n  constructor({\n    queryManager,\n    queryInfo,\n    options,\n  }: {\n    queryManager: QueryManager<any>;\n    queryInfo: QueryInfo;\n    options: WatchQueryOptions<TVariables, TData>;\n  }) {\n    super((observer: Observer<ApolloQueryResult<TData>>) => {\n      // Zen Observable has its own error function, so in order to log correctly\n      // we need to provide a custom error callback.\n      try {\n        var subObserver = (observer as any)._subscription._observer;\n        if (subObserver && !subObserver.error) {\n          subObserver.error = defaultSubscriptionObserverErrorCallback;\n        }\n      } catch {}\n\n      const first = !this.observers.size;\n      this.observers.add(observer);\n\n      // Deliver most recent error or result.\n      const last = this.last;\n      if (last && last.error) {\n        observer.error && observer.error(last.error);\n      } else if (last && last.result) {\n        observer.next && observer.next(last.result);\n      }\n\n      // Initiate observation of this query if it hasn't been reported to\n      // the QueryManager yet.\n      if (first) {\n        // Blindly catching here prevents unhandled promise rejections,\n        // and is safe because the ObservableQuery handles this error with\n        // this.observer.error, so we're not just swallowing the error by\n        // ignoring it here.\n        this.reobserve().catch(() => {});\n      }\n\n      return () => {\n        if (this.observers.delete(observer) && !this.observers.size) {\n          this.tearDownQuery();\n        }\n      };\n    });\n\n    // related classes\n    this.queryInfo = queryInfo;\n    this.queryManager = queryManager;\n\n    // active state\n    this.waitForOwnResult = skipCacheDataFor(options.fetchPolicy);\n    this.isTornDown = false;\n\n    const {\n      watchQuery: { fetchPolicy: defaultFetchPolicy = \"cache-first\" } = {},\n    } = queryManager.defaultOptions;\n\n    const {\n      fetchPolicy = defaultFetchPolicy,\n      // Make sure we don't store \"standby\" as the initialFetchPolicy.\n      initialFetchPolicy = fetchPolicy === \"standby\" ? defaultFetchPolicy : (\n        fetchPolicy\n      ),\n    } = options;\n\n    this.options = {\n      ...options,\n\n      // Remember the initial options.fetchPolicy so we can revert back to this\n      // policy when variables change. This information can also be specified\n      // (or overridden) by providing options.initialFetchPolicy explicitly.\n      initialFetchPolicy,\n\n      // This ensures this.options.fetchPolicy always has a string value, in\n      // case options.fetchPolicy was not provided.\n      fetchPolicy,\n    };\n\n    this.queryId = queryInfo.queryId || queryManager.generateQueryId();\n\n    const opDef = getOperationDefinition(this.query);\n    this.queryName = opDef && opDef.name && opDef.name.value;\n  }\n\n  public result(): Promise<ApolloQueryResult<TData>> {\n    return new Promise((resolve, reject) => {\n      // TODO: this code doesn’t actually make sense insofar as the observer\n      // will never exist in this.observers due how zen-observable wraps observables.\n      // https://github.com/zenparsing/zen-observable/blob/master/src/Observable.js#L169\n      const observer: Observer<ApolloQueryResult<TData>> = {\n        next: (result: ApolloQueryResult<TData>) => {\n          resolve(result);\n\n          // Stop the query within the QueryManager if we can before\n          // this function returns.\n          //\n          // We do this in order to prevent observers piling up within\n          // the QueryManager. Notice that we only fully unsubscribe\n          // from the subscription in a setTimeout(..., 0)  call. This call can\n          // actually be handled by the browser at a much later time. If queries\n          // are fired in the meantime, observers that should have been removed\n          // from the QueryManager will continue to fire, causing an unnecessary\n          // performance hit.\n          this.observers.delete(observer);\n          if (!this.observers.size) {\n            this.queryManager.removeQuery(this.queryId);\n          }\n\n          setTimeout(() => {\n            subscription.unsubscribe();\n          }, 0);\n        },\n        error: reject,\n      };\n      const subscription = this.subscribe(observer);\n    });\n  }\n\n  /** @internal */\n  public resetDiff() {\n    this.queryInfo.resetDiff();\n  }\n\n  public getCurrentResult(saveAsLastResult = true): ApolloQueryResult<TData> {\n    // Use the last result as long as the variables match this.variables.\n    const lastResult = this.getLastResult(true);\n\n    const networkStatus =\n      this.queryInfo.networkStatus ||\n      (lastResult && lastResult.networkStatus) ||\n      NetworkStatus.ready;\n\n    const result = {\n      ...lastResult,\n      loading: isNetworkRequestInFlight(networkStatus),\n      networkStatus,\n    } as ApolloQueryResult<TData>;\n\n    const { fetchPolicy = \"cache-first\" } = this.options;\n    if (\n      // These fetch policies should never deliver data from the cache, unless\n      // redelivering a previously delivered result.\n      skipCacheDataFor(fetchPolicy) ||\n      // If this.options.query has @client(always: true) fields, we cannot\n      // trust diff.result, since it was read from the cache without running\n      // local resolvers (and it's too late to run resolvers now, since we must\n      // return a result synchronously).\n      this.queryManager.getDocumentInfo(this.query).hasForcedResolvers\n    ) {\n      // Fall through.\n    } else if (this.waitForOwnResult) {\n      // This would usually be a part of `QueryInfo.getDiff()`.\n      // which we skip in the waitForOwnResult case since we are not\n      // interested in the diff.\n      this.queryInfo[\"updateWatch\"]();\n    } else {\n      const diff = this.queryInfo.getDiff();\n\n      if (diff.complete || this.options.returnPartialData) {\n        result.data = diff.result;\n      }\n\n      if (equal(result.data, {})) {\n        result.data = void 0 as any;\n      }\n\n      if (diff.complete) {\n        // Similar to setting result.partial to false, but taking advantage of the\n        // falsiness of missing fields.\n        delete result.partial;\n\n        // If the diff is complete, and we're using a FetchPolicy that\n        // terminates after a complete cache read, we can assume the next result\n        // we receive will have NetworkStatus.ready and !loading.\n        if (\n          diff.complete &&\n          result.networkStatus === NetworkStatus.loading &&\n          (fetchPolicy === \"cache-first\" || fetchPolicy === \"cache-only\")\n        ) {\n          result.networkStatus = NetworkStatus.ready;\n          result.loading = false;\n        }\n      } else {\n        result.partial = true;\n      }\n\n      if (\n        __DEV__ &&\n        !diff.complete &&\n        !this.options.partialRefetch &&\n        !result.loading &&\n        !result.data &&\n        !result.error\n      ) {\n        logMissingFieldErrors(diff.missing);\n      }\n    }\n\n    if (saveAsLastResult) {\n      this.updateLastResult(result);\n    }\n\n    return result;\n  }\n\n  // Compares newResult to the snapshot we took of this.lastResult when it was\n  // first received.\n  public isDifferentFromLastResult(\n    newResult: ApolloQueryResult<TData>,\n    variables?: TVariables\n  ) {\n    if (!this.last) {\n      return true;\n    }\n\n    const resultIsDifferent =\n      this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective ?\n        !equalByQuery(this.query, this.last.result, newResult, this.variables)\n      : !equal(this.last.result, newResult);\n\n    return (\n      resultIsDifferent || (variables && !equal(this.last.variables, variables))\n    );\n  }\n\n  private getLast<K extends keyof Last<TData, TVariables>>(\n    key: K,\n    variablesMustMatch?: boolean\n  ) {\n    const last = this.last;\n    if (\n      last &&\n      last[key] &&\n      (!variablesMustMatch || equal(last.variables, this.variables))\n    ) {\n      return last[key];\n    }\n  }\n\n  public getLastResult(\n    variablesMustMatch?: boolean\n  ): ApolloQueryResult<TData> | undefined {\n    return this.getLast(\"result\", variablesMustMatch);\n  }\n\n  public getLastError(variablesMustMatch?: boolean): ApolloError | undefined {\n    return this.getLast(\"error\", variablesMustMatch);\n  }\n\n  public resetLastResults(): void {\n    delete this.last;\n    this.isTornDown = false;\n  }\n\n  public resetQueryStoreErrors() {\n    this.queryManager.resetErrors(this.queryId);\n  }\n\n  /**\n   * Update the variables of this observable query, and fetch the new results.\n   * This method should be preferred over `setVariables` in most use cases.\n   *\n   * @param variables - The new set of variables. If there are missing variables,\n   * the previous values of those variables will be used.\n   */\n  public refetch(\n    variables?: Partial<TVariables>\n  ): Promise<ApolloQueryResult<TData>> {\n    const reobserveOptions: Partial<WatchQueryOptions<TVariables, TData>> = {\n      // Always disable polling for refetches.\n      pollInterval: 0,\n    };\n\n    // Unless the provided fetchPolicy always consults the network\n    // (no-cache, network-only, or cache-and-network), override it with\n    // network-only to force the refetch for this fetchQuery call.\n    const { fetchPolicy } = this.options;\n    if (fetchPolicy === \"cache-and-network\") {\n      reobserveOptions.fetchPolicy = fetchPolicy;\n    } else if (fetchPolicy === \"no-cache\") {\n      reobserveOptions.fetchPolicy = \"no-cache\";\n    } else {\n      reobserveOptions.fetchPolicy = \"network-only\";\n    }\n\n    if (__DEV__ && variables && hasOwnProperty.call(variables, \"variables\")) {\n      const queryDef = getQueryDefinition(this.query);\n      const vars = queryDef.variableDefinitions;\n      if (!vars || !vars.some((v) => v.variable.name.value === \"variables\")) {\n        invariant.warn(\n          `Called refetch(%o) for query %o, which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?`,\n          variables,\n          queryDef.name?.value || queryDef\n        );\n      }\n    }\n\n    if (variables && !equal(this.options.variables, variables)) {\n      // Update the existing options with new variables\n      reobserveOptions.variables = this.options.variables = {\n        ...this.options.variables,\n        ...variables,\n      } as TVariables;\n    }\n\n    this.queryInfo.resetLastWrite();\n    return this.reobserve(reobserveOptions, NetworkStatus.refetch);\n  }\n\n  /**\n   * A function that helps you fetch the next set of results for a [paginated list field](https://www.apollographql.com/docs/react/pagination/core-api/).\n   */\n  public fetchMore<\n    TFetchData = TData,\n    TFetchVars extends OperationVariables = TVariables,\n  >(\n    fetchMoreOptions: FetchMoreQueryOptions<TFetchVars, TFetchData> & {\n      updateQuery?: (\n        previousQueryResult: TData,\n        options: {\n          fetchMoreResult: TFetchData;\n          variables: TFetchVars;\n        }\n      ) => TData;\n    }\n  ): Promise<ApolloQueryResult<TFetchData>> {\n    const combinedOptions = {\n      ...(fetchMoreOptions.query ? fetchMoreOptions : (\n        {\n          ...this.options,\n          query: this.options.query,\n          ...fetchMoreOptions,\n          variables: {\n            ...this.options.variables,\n            ...fetchMoreOptions.variables,\n          },\n        }\n      )),\n      // The fetchMore request goes immediately to the network and does\n      // not automatically write its result to the cache (hence no-cache\n      // instead of network-only), because we allow the caller of\n      // fetchMore to provide an updateQuery callback that determines how\n      // the data gets written to the cache.\n      fetchPolicy: \"no-cache\",\n    } as WatchQueryOptions<TFetchVars, TFetchData>;\n\n    combinedOptions.query = this.transformDocument(combinedOptions.query);\n\n    const qid = this.queryManager.generateQueryId();\n\n    // If a temporary query is passed to `fetchMore`, we don't want to store\n    // it as the last query result since it may be an optimized query for\n    // pagination. We will however run the transforms on the original document\n    // as well as the document passed in `fetchMoreOptions` to ensure the cache\n    // uses the most up-to-date document which may rely on runtime conditionals.\n    this.lastQuery =\n      fetchMoreOptions.query ?\n        this.transformDocument(this.options.query)\n      : combinedOptions.query;\n\n    // Simulate a loading result for the original query with\n    // result.networkStatus === NetworkStatus.fetchMore.\n    const { queryInfo } = this;\n    const originalNetworkStatus = queryInfo.networkStatus;\n    queryInfo.networkStatus = NetworkStatus.fetchMore;\n    if (combinedOptions.notifyOnNetworkStatusChange) {\n      this.observe();\n    }\n\n    const updatedQuerySet = new Set<DocumentNode>();\n\n    return this.queryManager\n      .fetchQuery(qid, combinedOptions, NetworkStatus.fetchMore)\n      .then((fetchMoreResult) => {\n        this.queryManager.removeQuery(qid);\n\n        if (queryInfo.networkStatus === NetworkStatus.fetchMore) {\n          queryInfo.networkStatus = originalNetworkStatus;\n        }\n\n        // Performing this cache update inside a cache.batch transaction ensures\n        // any affected cache.watch watchers are notified at most once about any\n        // updates. Most watchers will be using the QueryInfo class, which\n        // responds to notifications by calling reobserveCacheFirst to deliver\n        // fetchMore cache results back to this ObservableQuery.\n        this.queryManager.cache.batch({\n          update: (cache) => {\n            const { updateQuery } = fetchMoreOptions;\n            if (updateQuery) {\n              cache.updateQuery(\n                {\n                  query: this.query,\n                  variables: this.variables,\n                  returnPartialData: true,\n                  optimistic: false,\n                },\n                (previous) =>\n                  updateQuery(previous!, {\n                    fetchMoreResult: fetchMoreResult.data,\n                    variables: combinedOptions.variables as TFetchVars,\n                  })\n              );\n            } else {\n              // If we're using a field policy instead of updateQuery, the only\n              // thing we need to do is write the new data to the cache using\n              // combinedOptions.variables (instead of this.variables, which is\n              // what this.updateQuery uses, because it works by abusing the\n              // original field value, keyed by the original variables).\n              cache.writeQuery({\n                query: combinedOptions.query,\n                variables: combinedOptions.variables,\n                data: fetchMoreResult.data,\n              });\n            }\n          },\n\n          onWatchUpdated: (watch) => {\n            // Record the DocumentNode associated with any watched query whose\n            // data were updated by the cache writes above.\n            updatedQuerySet.add(watch.query);\n          },\n        });\n\n        return fetchMoreResult;\n      })\n      .finally(() => {\n        // In case the cache writes above did not generate a broadcast\n        // notification (which would have been intercepted by onWatchUpdated),\n        // likely because the written data were the same as what was already in\n        // the cache, we still want fetchMore to deliver its final loading:false\n        // result with the unchanged data.\n        if (!updatedQuerySet.has(this.query)) {\n          reobserveCacheFirst(this);\n        }\n      });\n  }\n\n  // XXX the subscription variables are separate from the query variables.\n  // if you want to update subscription variables, right now you have to do that separately,\n  // and you can only do it by stopping the subscription and then subscribing again with new variables.\n  /**\n   * A function that enables you to execute a [subscription](https://www.apollographql.com/docs/react/data/subscriptions/), usually to subscribe to specific fields that were included in the query.\n   *\n   * This function returns _another_ function that you can call to terminate the subscription.\n   */\n  public subscribeToMore<\n    TSubscriptionData = TData,\n    TSubscriptionVariables extends OperationVariables = TVariables,\n  >(\n    options: SubscribeToMoreOptions<\n      TData,\n      TSubscriptionVariables,\n      TSubscriptionData\n    >\n  ) {\n    const subscription = this.queryManager\n      .startGraphQLSubscription({\n        query: options.document,\n        variables: options.variables,\n        context: options.context,\n      })\n      .subscribe({\n        next: (subscriptionData: { data: TSubscriptionData }) => {\n          const { updateQuery } = options;\n          if (updateQuery) {\n            this.updateQuery<TSubscriptionVariables>(\n              (previous, { variables }) =>\n                updateQuery(previous, {\n                  subscriptionData,\n                  variables,\n                })\n            );\n          }\n        },\n        error: (err: any) => {\n          if (options.onError) {\n            options.onError(err);\n            return;\n          }\n          invariant.error(\"Unhandled GraphQL subscription error\", err);\n        },\n      });\n\n    this.subscriptions.add(subscription);\n\n    return () => {\n      if (this.subscriptions.delete(subscription)) {\n        subscription.unsubscribe();\n      }\n    };\n  }\n\n  public setOptions(\n    newOptions: Partial<WatchQueryOptions<TVariables, TData>>\n  ): Promise<ApolloQueryResult<TData>> {\n    return this.reobserve(newOptions);\n  }\n\n  public silentSetOptions(\n    newOptions: Partial<WatchQueryOptions<TVariables, TData>>\n  ) {\n    const mergedOptions = compact(this.options, newOptions || {});\n    assign(this.options, mergedOptions);\n  }\n\n  /**\n   * Update the variables of this observable query, and fetch the new results\n   * if they've changed. Most users should prefer `refetch` instead of\n   * `setVariables` in order to to be properly notified of results even when\n   * they come from the cache.\n   *\n   * Note: the `next` callback will *not* fire if the variables have not changed\n   * or if the result is coming from cache.\n   *\n   * Note: the promise will return the old results immediately if the variables\n   * have not changed.\n   *\n   * Note: the promise will return null immediately if the query is not active\n   * (there are no subscribers).\n   *\n   * @param variables - The new set of variables. If there are missing variables,\n   * the previous values of those variables will be used.\n   */\n  public setVariables(\n    variables: TVariables\n  ): Promise<ApolloQueryResult<TData> | void> {\n    if (equal(this.variables, variables)) {\n      // If we have no observers, then we don't actually want to make a network\n      // request. As soon as someone observes the query, the request will kick\n      // off. For now, we just store any changes. (See #1077)\n      return this.observers.size ? this.result() : Promise.resolve();\n    }\n\n    this.options.variables = variables;\n\n    // See comment above\n    if (!this.observers.size) {\n      return Promise.resolve();\n    }\n\n    return this.reobserve(\n      {\n        // Reset options.fetchPolicy to its original value.\n        fetchPolicy: this.options.initialFetchPolicy,\n        variables,\n      },\n      NetworkStatus.setVariables\n    );\n  }\n\n  /**\n   * A function that enables you to update the query's cached result without executing a followup GraphQL operation.\n   *\n   * See [using updateQuery and updateFragment](https://www.apollographql.com/docs/react/caching/cache-interaction/#using-updatequery-and-updatefragment) for additional information.\n   */\n  public updateQuery<TVars extends OperationVariables = TVariables>(\n    mapFn: (\n      previousQueryResult: TData,\n      options: Pick<WatchQueryOptions<TVars, TData>, \"variables\">\n    ) => TData\n  ): void {\n    const { queryManager } = this;\n    const { result } = queryManager.cache.diff<TData>({\n      query: this.options.query,\n      variables: this.variables,\n      returnPartialData: true,\n      optimistic: false,\n    });\n\n    const newResult = mapFn(result!, {\n      variables: (this as any).variables,\n    });\n\n    if (newResult) {\n      queryManager.cache.writeQuery({\n        query: this.options.query,\n        data: newResult,\n        variables: this.variables,\n      });\n\n      queryManager.broadcastQueries();\n    }\n  }\n\n  /**\n   * A function that instructs the query to begin re-executing at a specified interval (in milliseconds).\n   */\n  public startPolling(pollInterval: number) {\n    this.options.pollInterval = pollInterval;\n    this.updatePolling();\n  }\n\n  /**\n   * A function that instructs the query to stop polling after a previous call to `startPolling`.\n   */\n  public stopPolling() {\n    this.options.pollInterval = 0;\n    this.updatePolling();\n  }\n\n  // Update options.fetchPolicy according to options.nextFetchPolicy.\n  private applyNextFetchPolicy(\n    reason: NextFetchPolicyContext<TData, TVariables>[\"reason\"],\n    // It's possible to use this method to apply options.nextFetchPolicy to\n    // options.fetchPolicy even if options !== this.options, though that happens\n    // most often when the options are temporary, used for only one request and\n    // then thrown away, so nextFetchPolicy may not end up mattering.\n    options: WatchQueryOptions<TVariables, TData>\n  ) {\n    if (options.nextFetchPolicy) {\n      const { fetchPolicy = \"cache-first\", initialFetchPolicy = fetchPolicy } =\n        options;\n\n      if (fetchPolicy === \"standby\") {\n        // Do nothing, leaving options.fetchPolicy unchanged.\n      } else if (typeof options.nextFetchPolicy === \"function\") {\n        // When someone chooses \"cache-and-network\" or \"network-only\" as their\n        // initial FetchPolicy, they often do not want future cache updates to\n        // trigger unconditional network requests, which is what repeatedly\n        // applying the \"cache-and-network\" or \"network-only\" policies would\n        // seem to imply. Instead, when the cache reports an update after the\n        // initial network request, it may be desirable for subsequent network\n        // requests to be triggered only if the cache result is incomplete. To\n        // that end, the options.nextFetchPolicy option provides an easy way to\n        // update options.fetchPolicy after the initial network request, without\n        // having to call observableQuery.setOptions.\n        options.fetchPolicy = options.nextFetchPolicy(fetchPolicy, {\n          reason,\n          options,\n          observable: this,\n          initialFetchPolicy,\n        });\n      } else if (reason === \"variables-changed\") {\n        options.fetchPolicy = initialFetchPolicy;\n      } else {\n        options.fetchPolicy = options.nextFetchPolicy;\n      }\n    }\n\n    return options.fetchPolicy;\n  }\n\n  private fetch(\n    options: WatchQueryOptions<TVariables, TData>,\n    newNetworkStatus?: NetworkStatus,\n    query?: DocumentNode\n  ) {\n    // TODO Make sure we update the networkStatus (and infer fetchVariables)\n    // before actually committing to the fetch.\n    this.queryManager.setObservableQuery(this);\n    return this.queryManager[\"fetchConcastWithInfo\"](\n      this.queryId,\n      options,\n      newNetworkStatus,\n      query\n    );\n  }\n\n  // Turns polling on or off based on this.options.pollInterval.\n  private updatePolling() {\n    // Avoid polling in SSR mode\n    if (this.queryManager.ssrMode) {\n      return;\n    }\n\n    const {\n      pollingInfo,\n      options: { pollInterval },\n    } = this;\n\n    if (!pollInterval) {\n      if (pollingInfo) {\n        clearTimeout(pollingInfo.timeout);\n        delete this.pollingInfo;\n      }\n      return;\n    }\n\n    if (pollingInfo && pollingInfo.interval === pollInterval) {\n      return;\n    }\n\n    invariant(\n      pollInterval,\n      \"Attempted to start a polling query without a polling interval.\"\n    );\n\n    const info = pollingInfo || (this.pollingInfo = {} as any);\n    info.interval = pollInterval;\n\n    const maybeFetch = () => {\n      if (this.pollingInfo) {\n        if (\n          !isNetworkRequestInFlight(this.queryInfo.networkStatus) &&\n          !this.options.skipPollAttempt?.()\n        ) {\n          this.reobserve(\n            {\n              // Most fetchPolicy options don't make sense to use in a polling context, as\n              // users wouldn't want to be polling the cache directly. However, network-only and\n              // no-cache are both useful for when the user wants to control whether or not the\n              // polled results are written to the cache.\n              fetchPolicy:\n                this.options.initialFetchPolicy === \"no-cache\" ?\n                  \"no-cache\"\n                : \"network-only\",\n            },\n            NetworkStatus.poll\n          ).then(poll, poll);\n        } else {\n          poll();\n        }\n      }\n    };\n\n    const poll = () => {\n      const info = this.pollingInfo;\n      if (info) {\n        clearTimeout(info.timeout);\n        info.timeout = setTimeout(maybeFetch, info.interval);\n      }\n    };\n\n    poll();\n  }\n\n  private updateLastResult(\n    newResult: ApolloQueryResult<TData>,\n    variables = this.variables\n  ) {\n    let error: ApolloError | undefined = this.getLastError();\n    // Preserve this.last.error unless the variables have changed.\n    if (error && this.last && !equal(variables, this.last.variables)) {\n      error = void 0;\n    }\n    return (this.last = {\n      result:\n        this.queryManager.assumeImmutableResults ?\n          newResult\n        : cloneDeep(newResult),\n      variables,\n      ...(error ? { error } : null),\n    });\n  }\n\n  public reobserveAsConcast(\n    newOptions?: Partial<WatchQueryOptions<TVariables, TData>>,\n    newNetworkStatus?: NetworkStatus\n  ): Concast<ApolloQueryResult<TData>> {\n    this.isTornDown = false;\n\n    const useDisposableConcast =\n      // Refetching uses a disposable Concast to allow refetches using different\n      // options/variables, without permanently altering the options of the\n      // original ObservableQuery.\n      newNetworkStatus === NetworkStatus.refetch ||\n      // The fetchMore method does not actually call the reobserve method, but,\n      // if it did, it would definitely use a disposable Concast.\n      newNetworkStatus === NetworkStatus.fetchMore ||\n      // Polling uses a disposable Concast so the polling options (which force\n      // fetchPolicy to be \"network-only\" or \"no-cache\") won't override the original options.\n      newNetworkStatus === NetworkStatus.poll;\n\n    // Save the old variables, since Object.assign may modify them below.\n    const oldVariables = this.options.variables;\n    const oldFetchPolicy = this.options.fetchPolicy;\n\n    const mergedOptions = compact(this.options, newOptions || {});\n    const options =\n      useDisposableConcast ?\n        // Disposable Concast fetches receive a shallow copy of this.options\n        // (merged with newOptions), leaving this.options unmodified.\n        mergedOptions\n      : assign(this.options, mergedOptions);\n\n    // Don't update options.query with the transformed query to avoid\n    // overwriting this.options.query when we aren't using a disposable concast.\n    // We want to ensure we can re-run the custom document transforms the next\n    // time a request is made against the original query.\n    const query = this.transformDocument(options.query);\n\n    this.lastQuery = query;\n\n    if (!useDisposableConcast) {\n      // We can skip calling updatePolling if we're not changing this.options.\n      this.updatePolling();\n\n      // Reset options.fetchPolicy to its original value when variables change,\n      // unless a new fetchPolicy was provided by newOptions.\n      if (\n        newOptions &&\n        newOptions.variables &&\n        !equal(newOptions.variables, oldVariables) &&\n        // Don't mess with the fetchPolicy if it's currently \"standby\".\n        options.fetchPolicy !== \"standby\" &&\n        // If we're changing the fetchPolicy anyway, don't try to change it here\n        // using applyNextFetchPolicy. The explicit options.fetchPolicy wins.\n        options.fetchPolicy === oldFetchPolicy\n      ) {\n        this.applyNextFetchPolicy(\"variables-changed\", options);\n        if (newNetworkStatus === void 0) {\n          newNetworkStatus = NetworkStatus.setVariables;\n        }\n      }\n    }\n\n    this.waitForOwnResult &&= skipCacheDataFor(options.fetchPolicy);\n    const finishWaitingForOwnResult = () => {\n      if (this.concast === concast) {\n        this.waitForOwnResult = false;\n      }\n    };\n\n    const variables = options.variables && { ...options.variables };\n    const { concast, fromLink } = this.fetch(options, newNetworkStatus, query);\n    const observer: Observer<ApolloQueryResult<TData>> = {\n      next: (result) => {\n        if (equal(this.variables, variables)) {\n          finishWaitingForOwnResult();\n          this.reportResult(result, variables);\n        }\n      },\n      error: (error) => {\n        if (equal(this.variables, variables)) {\n          finishWaitingForOwnResult();\n          this.reportError(error, variables);\n        }\n      },\n    };\n\n    if (!useDisposableConcast && (fromLink || !this.concast)) {\n      // We use the {add,remove}Observer methods directly to avoid wrapping\n      // observer with an unnecessary SubscriptionObserver object.\n      if (this.concast && this.observer) {\n        this.concast.removeObserver(this.observer);\n      }\n\n      this.concast = concast;\n      this.observer = observer;\n    }\n\n    concast.addObserver(observer);\n\n    return concast;\n  }\n\n  public reobserve(\n    newOptions?: Partial<WatchQueryOptions<TVariables, TData>>,\n    newNetworkStatus?: NetworkStatus\n  ): Promise<ApolloQueryResult<TData>> {\n    return this.reobserveAsConcast(newOptions, newNetworkStatus)\n      .promise as TODO;\n  }\n\n  public resubscribeAfterError(\n    onNext: (value: ApolloQueryResult<TData>) => void,\n    onError?: (error: any) => void,\n    onComplete?: () => void\n  ): ObservableSubscription;\n\n  public resubscribeAfterError(\n    observer: Observer<ApolloQueryResult<TData>>\n  ): ObservableSubscription;\n\n  public resubscribeAfterError(...args: [any, any?, any?]) {\n    // If `lastError` is set in the current when the subscription is re-created,\n    // the subscription will immediately receive the error, which will\n    // cause it to terminate again. To avoid this, we first clear\n    // the last error/result from the `observableQuery` before re-starting\n    // the subscription, and restore the last value afterwards so that the\n    // subscription has a chance to stay open.\n    const last = this.last;\n    this.resetLastResults();\n\n    const subscription = this.subscribe(...args);\n    this.last = last;\n\n    return subscription;\n  }\n\n  // (Re)deliver the current result to this.observers without applying fetch\n  // policies or making network requests.\n  private observe() {\n    this.reportResult(\n      // Passing false is important so that this.getCurrentResult doesn't\n      // save the fetchMore result as this.lastResult, causing it to be\n      // ignored due to the this.isDifferentFromLastResult check in\n      // this.reportResult.\n      this.getCurrentResult(false),\n      this.variables\n    );\n  }\n\n  private reportResult(\n    result: ApolloQueryResult<TData>,\n    variables: TVariables | undefined\n  ) {\n    const lastError = this.getLastError();\n    const isDifferent = this.isDifferentFromLastResult(result, variables);\n    // Update the last result even when isDifferentFromLastResult returns false,\n    // because the query may be using the @nonreactive directive, and we want to\n    // save the the latest version of any nonreactive subtrees (in case\n    // getCurrentResult is called), even though we skip broadcasting changes.\n    if (lastError || !result.partial || this.options.returnPartialData) {\n      this.updateLastResult(result, variables);\n    }\n    if (lastError || isDifferent) {\n      iterateObserversSafely(this.observers, \"next\", result);\n    }\n  }\n\n  private reportError(error: ApolloError, variables: TVariables | undefined) {\n    // Since we don't get the current result on errors, only the error, we\n    // must mirror the updates that occur in QueryStore.markQueryError here\n    const errorResult = {\n      ...this.getLastResult(),\n      error,\n      errors: error.graphQLErrors,\n      networkStatus: NetworkStatus.error,\n      loading: false,\n    } as ApolloQueryResult<TData>;\n\n    this.updateLastResult(errorResult, variables);\n\n    iterateObserversSafely(this.observers, \"error\", (this.last!.error = error));\n  }\n\n  public hasObservers() {\n    return this.observers.size > 0;\n  }\n\n  private tearDownQuery() {\n    if (this.isTornDown) return;\n    if (this.concast && this.observer) {\n      this.concast.removeObserver(this.observer);\n      delete this.concast;\n      delete this.observer;\n    }\n\n    this.stopPolling();\n    // stop all active GraphQL subscriptions\n    this.subscriptions.forEach((sub) => sub.unsubscribe());\n    this.subscriptions.clear();\n    this.queryManager.stopQuery(this.queryId);\n    this.observers.clear();\n    this.isTornDown = true;\n  }\n\n  private transformDocument(document: DocumentNode) {\n    return this.queryManager.transform(document);\n  }\n}\n\n// Necessary because the ObservableQuery constructor has a different\n// signature than the Observable constructor.\nfixObservableSubclass(ObservableQuery);\n\n// Reobserve with fetchPolicy effectively set to \"cache-first\", triggering\n// delivery of any new data from the cache, possibly falling back to the network\n// if any cache data are missing. This allows _complete_ cache results to be\n// delivered without also kicking off unnecessary network requests when\n// this.options.fetchPolicy is \"cache-and-network\" or \"network-only\". When\n// this.options.fetchPolicy is any other policy (\"cache-first\", \"cache-only\",\n// \"standby\", or \"no-cache\"), we call this.reobserve() as usual.\nexport function reobserveCacheFirst<TData, TVars extends OperationVariables>(\n  obsQuery: ObservableQuery<TData, TVars>\n) {\n  const { fetchPolicy, nextFetchPolicy } = obsQuery.options;\n\n  if (fetchPolicy === \"cache-and-network\" || fetchPolicy === \"network-only\") {\n    return obsQuery.reobserve({\n      fetchPolicy: \"cache-first\",\n      // Use a temporary nextFetchPolicy function that replaces itself with the\n      // previous nextFetchPolicy value and returns the original fetchPolicy.\n      nextFetchPolicy(\n        this: WatchQueryOptions<TVars, TData>,\n        currentFetchPolicy: WatchQueryFetchPolicy,\n        context: NextFetchPolicyContext<TData, TVars>\n      ) {\n        // Replace this nextFetchPolicy function in the options object with the\n        // original this.options.nextFetchPolicy value.\n        this.nextFetchPolicy = nextFetchPolicy;\n        // If the original nextFetchPolicy value was a function, give it a\n        // chance to decide what happens here.\n        if (typeof this.nextFetchPolicy === \"function\") {\n          return this.nextFetchPolicy(currentFetchPolicy, context);\n        }\n        // Otherwise go back to the original this.options.fetchPolicy.\n        return fetchPolicy!;\n      },\n    });\n  }\n\n  return obsQuery.reobserve();\n}\n\nfunction defaultSubscriptionObserverErrorCallback(error: ApolloError) {\n  invariant.error(\"Unhandled error\", error.message, error.stack);\n}\n\nexport function logMissingFieldErrors(\n  missing: MissingFieldError[] | MissingTree | undefined\n) {\n  if (__DEV__ && missing) {\n    invariant.debug(`Missing cache result fields: %o`, missing);\n  }\n}\n\nfunction skipCacheDataFor(\n  fetchPolicy?: WatchQueryFetchPolicy /* `undefined` would mean `\"cache-first\"` */\n) {\n  return (\n    fetchPolicy === \"network-only\" ||\n    fetchPolicy === \"no-cache\" ||\n    fetchPolicy === \"standby\"\n  );\n}\n", "import { invariant } from \"../utilities/globals/index.js\";\n\nimport type {\n  DocumentNode,\n  OperationDefinitionNode,\n  SelectionSetNode,\n  SelectionNode,\n  InlineFragmentNode,\n  FragmentDefinitionNode,\n  FieldNode,\n  ASTNode,\n  DirectiveNode,\n  FragmentSpreadNode,\n  ExecutableDefinitionNode,\n} from \"graphql\";\nimport { visit, BREAK, isSelectionNode } from \"graphql\";\n\nimport type { ApolloCache } from \"../cache/index.js\";\nimport type { FragmentMap, StoreObject } from \"../utilities/index.js\";\nimport {\n  argumentsObjectFromField,\n  buildQueryFromSelectionSet,\n  createFragmentMap,\n  getFragmentDefinitions,\n  getMainDefinition,\n  hasDirectives,\n  isField,\n  isInlineFragment,\n  mergeDeep,\n  mergeDeepArray,\n  removeClientSetsFromDocument,\n  resultKeyNameFromField,\n  shouldInclude,\n} from \"../utilities/index.js\";\nimport type { ApolloClient } from \"./ApolloClient.js\";\nimport type { Resolvers, OperationVariables } from \"./types.js\";\nimport type { FetchResult } from \"../link/core/index.js\";\nimport { cacheSlot } from \"../cache/index.js\";\n\nexport type Resolver = (\n  rootValue?: any,\n  args?: any,\n  context?: any,\n  info?: {\n    field: FieldNode;\n    fragmentMap: FragmentMap;\n  }\n) => any;\n\nexport type VariableMap = { [name: string]: any };\n\nexport type FragmentMatcher = (\n  rootValue: any,\n  typeCondition: string,\n  context: any\n) => boolean;\n\nexport type ExecContext = {\n  fragmentMap: FragmentMap;\n  context: any;\n  variables: VariableMap;\n  fragmentMatcher: FragmentMatcher;\n  defaultOperationType: string;\n  exportedVariables: Record<string, any>;\n  onlyRunForcedResolvers: boolean;\n  selectionsToResolve: Set<SelectionNode>;\n};\n\nexport type LocalStateOptions<TCacheShape> = {\n  cache: ApolloCache<TCacheShape>;\n  client?: ApolloClient<TCacheShape>;\n  resolvers?: Resolvers | Resolvers[];\n  fragmentMatcher?: FragmentMatcher;\n};\n\nexport class LocalState<TCacheShape> {\n  private cache: ApolloCache<TCacheShape>;\n  private client?: ApolloClient<TCacheShape>;\n  private resolvers?: Resolvers;\n  private fragmentMatcher?: FragmentMatcher;\n  private selectionsToResolveCache = new WeakMap<\n    ExecutableDefinitionNode,\n    Set<SelectionNode>\n  >();\n\n  constructor({\n    cache,\n    client,\n    resolvers,\n    fragmentMatcher,\n  }: LocalStateOptions<TCacheShape>) {\n    this.cache = cache;\n\n    if (client) {\n      this.client = client;\n    }\n\n    if (resolvers) {\n      this.addResolvers(resolvers);\n    }\n\n    if (fragmentMatcher) {\n      this.setFragmentMatcher(fragmentMatcher);\n    }\n  }\n\n  public addResolvers(resolvers: Resolvers | Resolvers[]) {\n    this.resolvers = this.resolvers || {};\n    if (Array.isArray(resolvers)) {\n      resolvers.forEach((resolverGroup) => {\n        this.resolvers = mergeDeep(this.resolvers, resolverGroup);\n      });\n    } else {\n      this.resolvers = mergeDeep(this.resolvers, resolvers);\n    }\n  }\n\n  public setResolvers(resolvers: Resolvers | Resolvers[]) {\n    this.resolvers = {};\n    this.addResolvers(resolvers);\n  }\n\n  public getResolvers() {\n    return this.resolvers || {};\n  }\n\n  // Run local client resolvers against the incoming query and remote data.\n  // Locally resolved field values are merged with the incoming remote data,\n  // and returned. Note that locally resolved fields will overwrite\n  // remote data using the same field name.\n  public async runResolvers<TData>({\n    document,\n    remoteResult,\n    context,\n    variables,\n    onlyRunForcedResolvers = false,\n  }: {\n    document: DocumentNode | null;\n    remoteResult: FetchResult<TData>;\n    context?: Record<string, any>;\n    variables?: Record<string, any>;\n    onlyRunForcedResolvers?: boolean;\n  }): Promise<FetchResult<TData>> {\n    if (document) {\n      return this.resolveDocument(\n        document,\n        remoteResult.data,\n        context,\n        variables,\n        this.fragmentMatcher,\n        onlyRunForcedResolvers\n      ).then((localResult) => ({\n        ...remoteResult,\n        data: localResult.result,\n      }));\n    }\n\n    return remoteResult;\n  }\n\n  public setFragmentMatcher(fragmentMatcher: FragmentMatcher) {\n    this.fragmentMatcher = fragmentMatcher;\n  }\n\n  public getFragmentMatcher(): FragmentMatcher | undefined {\n    return this.fragmentMatcher;\n  }\n\n  // Client queries contain everything in the incoming document (if a @client\n  // directive is found).\n  public clientQuery(document: DocumentNode) {\n    if (hasDirectives([\"client\"], document)) {\n      if (this.resolvers) {\n        return document;\n      }\n    }\n    return null;\n  }\n\n  // Server queries are stripped of all @client based selection sets.\n  public serverQuery(document: DocumentNode) {\n    return removeClientSetsFromDocument(document);\n  }\n\n  public prepareContext(context?: Record<string, any>) {\n    const { cache } = this;\n    return {\n      ...context,\n      cache,\n      // Getting an entry's cache key is useful for local state resolvers.\n      getCacheKey(obj: StoreObject) {\n        return cache.identify(obj);\n      },\n    };\n  }\n\n  // To support `@client @export(as: \"someVar\")` syntax, we'll first resolve\n  // @client @export fields locally, then pass the resolved values back to be\n  // used alongside the original operation variables.\n  public async addExportedVariables<TVars extends OperationVariables>(\n    document: DocumentNode,\n    variables: TVars = {} as TVars,\n    context = {}\n  ): /* returns at least the variables that were passed in */ Promise<TVars> {\n    if (document) {\n      return this.resolveDocument(\n        document,\n        this.buildRootValueFromCache(document, variables) || {},\n        this.prepareContext(context),\n        variables\n      ).then((data) => ({\n        ...variables,\n        ...data.exportedVariables,\n      }));\n    }\n\n    return {\n      ...variables,\n    };\n  }\n\n  public shouldForceResolvers(document: ASTNode) {\n    let forceResolvers = false;\n    visit(document, {\n      Directive: {\n        enter(node) {\n          if (node.name.value === \"client\" && node.arguments) {\n            forceResolvers = node.arguments.some(\n              (arg) =>\n                arg.name.value === \"always\" &&\n                arg.value.kind === \"BooleanValue\" &&\n                arg.value.value === true\n            );\n            if (forceResolvers) {\n              return BREAK;\n            }\n          }\n        },\n      },\n    });\n    return forceResolvers;\n  }\n\n  // Query the cache and return matching data.\n  private buildRootValueFromCache(\n    document: DocumentNode,\n    variables?: Record<string, any>\n  ) {\n    return this.cache.diff({\n      query: buildQueryFromSelectionSet(document),\n      variables,\n      returnPartialData: true,\n      optimistic: false,\n    }).result;\n  }\n\n  private async resolveDocument<TData>(\n    document: DocumentNode,\n    rootValue: TData,\n    context: any = {},\n    variables: VariableMap = {},\n    fragmentMatcher: FragmentMatcher = () => true,\n    onlyRunForcedResolvers: boolean = false\n  ) {\n    const mainDefinition = getMainDefinition(\n      document\n    ) as OperationDefinitionNode;\n    const fragments = getFragmentDefinitions(document);\n    const fragmentMap = createFragmentMap(fragments);\n    const selectionsToResolve = this.collectSelectionsToResolve(\n      mainDefinition,\n      fragmentMap\n    );\n\n    const definitionOperation = mainDefinition.operation;\n\n    const defaultOperationType =\n      definitionOperation ?\n        definitionOperation.charAt(0).toUpperCase() +\n        definitionOperation.slice(1)\n      : \"Query\";\n\n    const { cache, client } = this;\n    const execContext: ExecContext = {\n      fragmentMap,\n      context: {\n        ...context,\n        cache,\n        client,\n      },\n      variables,\n      fragmentMatcher,\n      defaultOperationType,\n      exportedVariables: {},\n      selectionsToResolve,\n      onlyRunForcedResolvers,\n    };\n    const isClientFieldDescendant = false;\n\n    return this.resolveSelectionSet(\n      mainDefinition.selectionSet,\n      isClientFieldDescendant,\n      rootValue,\n      execContext\n    ).then((result) => ({\n      result,\n      exportedVariables: execContext.exportedVariables,\n    }));\n  }\n\n  private async resolveSelectionSet<TData>(\n    selectionSet: SelectionSetNode,\n    isClientFieldDescendant: boolean,\n    rootValue: TData,\n    execContext: ExecContext\n  ) {\n    const { fragmentMap, context, variables } = execContext;\n    const resultsToMerge: TData[] = [rootValue];\n\n    const execute = async (selection: SelectionNode): Promise<void> => {\n      if (\n        !isClientFieldDescendant &&\n        !execContext.selectionsToResolve.has(selection)\n      ) {\n        // Skip selections without @client directives\n        // (still processing if one of the ancestors or one of the child fields has @client directive)\n        return;\n      }\n      if (!shouldInclude(selection, variables)) {\n        // Skip this entirely.\n        return;\n      }\n\n      if (isField(selection)) {\n        return this.resolveField(\n          selection,\n          isClientFieldDescendant,\n          rootValue,\n          execContext\n        ).then((fieldResult) => {\n          if (typeof fieldResult !== \"undefined\") {\n            resultsToMerge.push({\n              [resultKeyNameFromField(selection)]: fieldResult,\n            } as TData);\n          }\n        });\n      }\n\n      let fragment: InlineFragmentNode | FragmentDefinitionNode;\n\n      if (isInlineFragment(selection)) {\n        fragment = selection;\n      } else {\n        // This is a named fragment.\n        fragment = fragmentMap[selection.name.value];\n        invariant(fragment, `No fragment named %s`, selection.name.value);\n      }\n\n      if (fragment && fragment.typeCondition) {\n        const typeCondition = fragment.typeCondition.name.value;\n        if (execContext.fragmentMatcher(rootValue, typeCondition, context)) {\n          return this.resolveSelectionSet(\n            fragment.selectionSet,\n            isClientFieldDescendant,\n            rootValue,\n            execContext\n          ).then((fragmentResult) => {\n            resultsToMerge.push(fragmentResult);\n          });\n        }\n      }\n    };\n\n    return Promise.all(selectionSet.selections.map(execute)).then(function () {\n      return mergeDeepArray(resultsToMerge);\n    });\n  }\n\n  private async resolveField(\n    field: FieldNode,\n    isClientFieldDescendant: boolean,\n    rootValue: any,\n    execContext: ExecContext\n  ): Promise<any> {\n    if (!rootValue) {\n      return null;\n    }\n\n    const { variables } = execContext;\n    const fieldName = field.name.value;\n    const aliasedFieldName = resultKeyNameFromField(field);\n    const aliasUsed = fieldName !== aliasedFieldName;\n    const defaultResult = rootValue[aliasedFieldName] || rootValue[fieldName];\n    let resultPromise = Promise.resolve(defaultResult);\n\n    // Usually all local resolvers are run when passing through here, but\n    // if we've specifically identified that we only want to run forced\n    // resolvers (that is, resolvers for fields marked with\n    // `@client(always: true)`), then we'll skip running non-forced resolvers.\n    if (\n      !execContext.onlyRunForcedResolvers ||\n      this.shouldForceResolvers(field)\n    ) {\n      const resolverType =\n        rootValue.__typename || execContext.defaultOperationType;\n      const resolverMap = this.resolvers && this.resolvers[resolverType];\n      if (resolverMap) {\n        const resolve = resolverMap[aliasUsed ? fieldName : aliasedFieldName];\n        if (resolve) {\n          resultPromise = Promise.resolve(\n            // In case the resolve function accesses reactive variables,\n            // set cacheSlot to the current cache instance.\n            cacheSlot.withValue(this.cache, resolve, [\n              rootValue,\n              argumentsObjectFromField(field, variables),\n              execContext.context,\n              { field, fragmentMap: execContext.fragmentMap },\n            ])\n          );\n        }\n      }\n    }\n\n    return resultPromise.then((result = defaultResult) => {\n      // If an @export directive is associated with the current field, store\n      // the `as` export variable name and current result for later use.\n      if (field.directives) {\n        field.directives.forEach((directive) => {\n          if (directive.name.value === \"export\" && directive.arguments) {\n            directive.arguments.forEach((arg) => {\n              if (arg.name.value === \"as\" && arg.value.kind === \"StringValue\") {\n                execContext.exportedVariables[arg.value.value] = result;\n              }\n            });\n          }\n        });\n      }\n\n      // Handle all scalar types here.\n      if (!field.selectionSet) {\n        return result;\n      }\n\n      // From here down, the field has a selection set, which means it's trying\n      // to query a GraphQLObjectType.\n      if (result == null) {\n        // Basically any field in a GraphQL response can be null, or missing\n        return result;\n      }\n\n      const isClientField =\n        field.directives?.some((d) => d.name.value === \"client\") ?? false;\n\n      if (Array.isArray(result)) {\n        return this.resolveSubSelectedArray(\n          field,\n          isClientFieldDescendant || isClientField,\n          result,\n          execContext\n        );\n      }\n\n      // Returned value is an object, and the query has a sub-selection. Recurse.\n      if (field.selectionSet) {\n        return this.resolveSelectionSet(\n          field.selectionSet,\n          isClientFieldDescendant || isClientField,\n          result,\n          execContext\n        );\n      }\n    });\n  }\n\n  private resolveSubSelectedArray(\n    field: FieldNode,\n    isClientFieldDescendant: boolean,\n    result: any[],\n    execContext: ExecContext\n  ): any {\n    return Promise.all(\n      result.map((item) => {\n        if (item === null) {\n          return null;\n        }\n\n        // This is a nested array, recurse.\n        if (Array.isArray(item)) {\n          return this.resolveSubSelectedArray(\n            field,\n            isClientFieldDescendant,\n            item,\n            execContext\n          );\n        }\n\n        // This is an object, run the selection set on it.\n        if (field.selectionSet) {\n          return this.resolveSelectionSet(\n            field.selectionSet,\n            isClientFieldDescendant,\n            item,\n            execContext\n          );\n        }\n      })\n    );\n  }\n\n  // Collect selection nodes on paths from document root down to all @client directives.\n  // This function takes into account transitive fragment spreads.\n  // Complexity equals to a single `visit` over the full document.\n  private collectSelectionsToResolve(\n    mainDefinition: OperationDefinitionNode,\n    fragmentMap: FragmentMap\n  ): Set<SelectionNode> {\n    const isSingleASTNode = (\n      node: ASTNode | readonly ASTNode[]\n    ): node is ASTNode => !Array.isArray(node);\n    const selectionsToResolveCache = this.selectionsToResolveCache;\n\n    function collectByDefinition(\n      definitionNode: ExecutableDefinitionNode\n    ): Set<SelectionNode> {\n      if (!selectionsToResolveCache.has(definitionNode)) {\n        const matches = new Set<SelectionNode>();\n        selectionsToResolveCache.set(definitionNode, matches);\n\n        visit(definitionNode, {\n          Directive(node: DirectiveNode, _, __, ___, ancestors) {\n            if (node.name.value === \"client\") {\n              ancestors.forEach((node) => {\n                if (isSingleASTNode(node) && isSelectionNode(node)) {\n                  matches.add(node);\n                }\n              });\n            }\n          },\n          FragmentSpread(spread: FragmentSpreadNode, _, __, ___, ancestors) {\n            const fragment = fragmentMap[spread.name.value];\n            invariant(fragment, `No fragment named %s`, spread.name.value);\n\n            const fragmentSelections = collectByDefinition(fragment);\n            if (fragmentSelections.size > 0) {\n              // Fragment for this spread contains @client directive (either directly or transitively)\n              // Collect selection nodes on paths from the root down to fields with the @client directive\n              ancestors.forEach((node) => {\n                if (isSingleASTNode(node) && isSelectionNode(node)) {\n                  matches.add(node);\n                }\n              });\n              matches.add(spread);\n              fragmentSelections.forEach((selection) => {\n                matches.add(selection);\n              });\n            }\n          },\n        });\n      }\n      return selectionsToResolveCache.get(definitionNode)!;\n    }\n    return collectByDefinition(mainDefinition);\n  }\n}\n", "import type { DocumentNode, GraphQLError } from \"graphql\";\nimport { equal } from \"@wry/equality\";\n\nimport type { Cache, ApolloCache } from \"../cache/index.js\";\nimport { DeepMerger } from \"../utilities/index.js\";\nimport { mergeIncrementalData } from \"../utilities/index.js\";\nimport type { WatchQueryOptions, ErrorPolicy } from \"./watchQueryOptions.js\";\nimport type { ObservableQuery } from \"./ObservableQuery.js\";\nimport { reobserveCacheFirst } from \"./ObservableQuery.js\";\nimport type { QueryListener } from \"./types.js\";\nimport type { FetchResult } from \"../link/core/index.js\";\nimport {\n  isNonEmptyArray,\n  graphQLResultHasError,\n  canUseWeakMap,\n} from \"../utilities/index.js\";\nimport { NetworkStatus, isNetworkRequestInFlight } from \"./networkStatus.js\";\nimport type { ApolloError } from \"../errors/index.js\";\nimport type { QueryManager } from \"./QueryManager.js\";\n\nexport type QueryStoreValue = Pick<\n  QueryInfo,\n  \"variables\" | \"networkStatus\" | \"networkError\" | \"graphQLErrors\"\n>;\n\nexport const enum CacheWriteBehavior {\n  FORBID,\n  OVERWRITE,\n  MERGE,\n}\n\nconst destructiveMethodCounts = new (canUseWeakMap ? WeakMap : Map)<\n  ApolloCache<any>,\n  number\n>();\n\nfunction wrapDestructiveCacheMethod(\n  cache: ApolloCache<any>,\n  methodName: \"evict\" | \"modify\" | \"reset\"\n) {\n  const original = cache[methodName];\n  if (typeof original === \"function\") {\n    // @ts-expect-error this is just too generic to be typed correctly\n    cache[methodName] = function () {\n      destructiveMethodCounts.set(\n        cache,\n        // The %1e15 allows the count to wrap around to 0 safely every\n        // quadrillion evictions, so there's no risk of overflow. To be\n        // clear, this is more of a pedantic principle than something\n        // that matters in any conceivable practical scenario.\n        (destructiveMethodCounts.get(cache)! + 1) % 1e15\n      );\n      // @ts-expect-error this is just too generic to be typed correctly\n      return original.apply(this, arguments);\n    };\n  }\n}\n\nfunction cancelNotifyTimeout(info: QueryInfo) {\n  if (info[\"notifyTimeout\"]) {\n    clearTimeout(info[\"notifyTimeout\"]);\n    info[\"notifyTimeout\"] = void 0;\n  }\n}\n\n// A QueryInfo object represents a single query managed by the\n// QueryManager, which tracks all QueryInfo objects by queryId in its\n// this.queries Map. QueryInfo objects store the latest results and errors\n// for the given query, and are responsible for reporting those results to\n// the corresponding ObservableQuery, via the QueryInfo.notify method.\n// Results are reported asynchronously whenever setDiff marks the\n// QueryInfo object as dirty, though a call to the QueryManager's\n// broadcastQueries method may trigger the notification before it happens\n// automatically. This class used to be a simple interface type without\n// any field privacy or meaningful methods, which is why it still has so\n// many public fields. The effort to lock down and simplify the QueryInfo\n// interface is ongoing, and further improvements are welcome.\nexport class QueryInfo {\n  listeners = new Set<QueryListener>();\n  document: DocumentNode | null = null;\n  lastRequestId = 1;\n  variables?: Record<string, any>;\n  networkStatus?: NetworkStatus;\n  networkError?: Error | null;\n  graphQLErrors?: ReadonlyArray<GraphQLError>;\n  stopped = false;\n\n  private cache: ApolloCache<any>;\n\n  constructor(\n    queryManager: QueryManager<any>,\n    public readonly queryId = queryManager.generateQueryId()\n  ) {\n    const cache = (this.cache = queryManager.cache);\n\n    // Track how often cache.evict is called, since we want eviction to\n    // override the feud-stopping logic in the markResult method, by\n    // causing shouldWrite to return true. Wrapping the cache.evict method\n    // is a bit of a hack, but it saves us from having to make eviction\n    // counting an official part of the ApolloCache API.\n    if (!destructiveMethodCounts.has(cache)) {\n      destructiveMethodCounts.set(cache, 0);\n      wrapDestructiveCacheMethod(cache, \"evict\");\n      wrapDestructiveCacheMethod(cache, \"modify\");\n      wrapDestructiveCacheMethod(cache, \"reset\");\n    }\n  }\n\n  public init(query: {\n    document: DocumentNode;\n    variables: Record<string, any> | undefined;\n    // The initial networkStatus for this fetch, most often\n    // NetworkStatus.loading, but also possibly fetchMore, poll, refetch,\n    // or setVariables.\n    networkStatus?: NetworkStatus;\n    observableQuery?: ObservableQuery<any, any>;\n    lastRequestId?: number;\n  }): this {\n    let networkStatus = query.networkStatus || NetworkStatus.loading;\n    if (\n      this.variables &&\n      this.networkStatus !== NetworkStatus.loading &&\n      !equal(this.variables, query.variables)\n    ) {\n      networkStatus = NetworkStatus.setVariables;\n    }\n\n    if (!equal(query.variables, this.variables)) {\n      this.lastDiff = void 0;\n    }\n\n    Object.assign(this, {\n      document: query.document,\n      variables: query.variables,\n      networkError: null,\n      graphQLErrors: this.graphQLErrors || [],\n      networkStatus,\n    });\n\n    if (query.observableQuery) {\n      this.setObservableQuery(query.observableQuery);\n    }\n\n    if (query.lastRequestId) {\n      this.lastRequestId = query.lastRequestId;\n    }\n\n    return this;\n  }\n\n  private dirty: boolean = false;\n\n  private notifyTimeout?: ReturnType<typeof setTimeout>;\n\n  reset() {\n    cancelNotifyTimeout(this);\n    this.dirty = false;\n  }\n\n  resetDiff() {\n    this.lastDiff = void 0;\n  }\n\n  getDiff(): Cache.DiffResult<any> {\n    const options = this.getDiffOptions();\n\n    if (this.lastDiff && equal(options, this.lastDiff.options)) {\n      return this.lastDiff.diff;\n    }\n\n    this.updateWatch(this.variables);\n\n    const oq = this.observableQuery;\n    if (oq && oq.options.fetchPolicy === \"no-cache\") {\n      return { complete: false };\n    }\n\n    const diff = this.cache.diff(options);\n    this.updateLastDiff(diff, options);\n    return diff;\n  }\n\n  private lastDiff?: {\n    diff: Cache.DiffResult<any>;\n    options: Cache.DiffOptions;\n  };\n\n  private updateLastDiff(\n    diff: Cache.DiffResult<any> | null,\n    options?: Cache.DiffOptions\n  ) {\n    this.lastDiff =\n      diff ?\n        {\n          diff,\n          options: options || this.getDiffOptions(),\n        }\n      : void 0;\n  }\n\n  private getDiffOptions(variables = this.variables): Cache.DiffOptions {\n    return {\n      query: this.document!,\n      variables,\n      returnPartialData: true,\n      optimistic: true,\n      canonizeResults: this.observableQuery?.options.canonizeResults,\n    };\n  }\n\n  setDiff(diff: Cache.DiffResult<any> | null) {\n    const oldDiff = this.lastDiff && this.lastDiff.diff;\n\n    // If we do not tolerate partial results, skip this update to prevent it\n    // from being reported. This prevents a situtuation where a query that\n    // errors and another succeeds with overlapping data does not report the\n    // partial data result to the errored query.\n    //\n    // See https://github.com/apollographql/apollo-client/issues/11400 for more\n    // information on this issue.\n    if (\n      diff &&\n      !diff.complete &&\n      !this.observableQuery?.options.returnPartialData &&\n      // In the case of a cache eviction, the diff will become partial so we\n      // schedule a notification to send a network request (this.oqListener) to\n      // go and fetch the missing data.\n      !(oldDiff && oldDiff.complete)\n    ) {\n      return;\n    }\n\n    this.updateLastDiff(diff);\n\n    if (!this.dirty && !equal(oldDiff && oldDiff.result, diff && diff.result)) {\n      this.dirty = true;\n      if (!this.notifyTimeout) {\n        this.notifyTimeout = setTimeout(() => this.notify(), 0);\n      }\n    }\n  }\n\n  public readonly observableQuery: ObservableQuery<any, any> | null = null;\n  private oqListener?: QueryListener;\n\n  setObservableQuery(oq: ObservableQuery<any, any> | null) {\n    if (oq === this.observableQuery) return;\n\n    if (this.oqListener) {\n      this.listeners.delete(this.oqListener);\n    }\n\n    (this as any).observableQuery = oq;\n\n    if (oq) {\n      oq[\"queryInfo\"] = this;\n      this.listeners.add(\n        (this.oqListener = () => {\n          const diff = this.getDiff();\n          if (diff.fromOptimisticTransaction) {\n            // If this diff came from an optimistic transaction, deliver the\n            // current cache data to the ObservableQuery, but don't perform a\n            // reobservation, since oq.reobserveCacheFirst might make a network\n            // request, and we never want to trigger network requests in the\n            // middle of optimistic updates.\n            oq[\"observe\"]();\n          } else {\n            // Otherwise, make the ObservableQuery \"reobserve\" the latest data\n            // using a temporary fetch policy of \"cache-first\", so complete cache\n            // results have a chance to be delivered without triggering additional\n            // network requests, even when options.fetchPolicy is \"network-only\"\n            // or \"cache-and-network\". All other fetch policies are preserved by\n            // this method, and are handled by calling oq.reobserve(). If this\n            // reobservation is spurious, isDifferentFromLastResult still has a\n            // chance to catch it before delivery to ObservableQuery subscribers.\n            reobserveCacheFirst(oq);\n          }\n        })\n      );\n    } else {\n      delete this.oqListener;\n    }\n  }\n\n  notify() {\n    cancelNotifyTimeout(this);\n\n    if (this.shouldNotify()) {\n      this.listeners.forEach((listener) => listener(this));\n    }\n\n    this.dirty = false;\n  }\n\n  private shouldNotify() {\n    if (!this.dirty || !this.listeners.size) {\n      return false;\n    }\n\n    if (isNetworkRequestInFlight(this.networkStatus) && this.observableQuery) {\n      const { fetchPolicy } = this.observableQuery.options;\n      if (fetchPolicy !== \"cache-only\" && fetchPolicy !== \"cache-and-network\") {\n        return false;\n      }\n    }\n\n    return true;\n  }\n\n  public stop() {\n    if (!this.stopped) {\n      this.stopped = true;\n\n      // Cancel the pending notify timeout\n      this.reset();\n\n      this.cancel();\n      // Revert back to the no-op version of cancel inherited from\n      // QueryInfo.prototype.\n      this.cancel = QueryInfo.prototype.cancel;\n\n      const oq = this.observableQuery;\n      if (oq) oq.stopPolling();\n    }\n  }\n\n  // This method is a no-op by default, until/unless overridden by the\n  // updateWatch method.\n  private cancel() {}\n\n  private lastWatch?: Cache.WatchOptions;\n\n  private updateWatch(variables = this.variables) {\n    const oq = this.observableQuery;\n    if (oq && oq.options.fetchPolicy === \"no-cache\") {\n      return;\n    }\n\n    const watchOptions: Cache.WatchOptions = {\n      // Although this.getDiffOptions returns Cache.DiffOptions instead of\n      // Cache.WatchOptions, all the overlapping options should be the same, so\n      // we can reuse getDiffOptions here, for consistency.\n      ...this.getDiffOptions(variables),\n      watcher: this,\n      callback: (diff) => this.setDiff(diff),\n    };\n\n    if (!this.lastWatch || !equal(watchOptions, this.lastWatch)) {\n      this.cancel();\n      this.cancel = this.cache.watch((this.lastWatch = watchOptions));\n    }\n  }\n\n  private lastWrite?: {\n    result: FetchResult<any>;\n    variables: WatchQueryOptions[\"variables\"];\n    dmCount: number | undefined;\n  };\n\n  public resetLastWrite() {\n    this.lastWrite = void 0;\n  }\n\n  private shouldWrite(\n    result: FetchResult<any>,\n    variables: WatchQueryOptions[\"variables\"]\n  ) {\n    const { lastWrite } = this;\n    return !(\n      lastWrite &&\n      // If cache.evict has been called since the last time we wrote this\n      // data into the cache, there's a chance writing this result into\n      // the cache will repair what was evicted.\n      lastWrite.dmCount === destructiveMethodCounts.get(this.cache) &&\n      equal(variables, lastWrite.variables) &&\n      equal(result.data, lastWrite.result.data)\n    );\n  }\n\n  public markResult<T>(\n    result: FetchResult<T>,\n    document: DocumentNode,\n    options: Pick<\n      WatchQueryOptions,\n      \"variables\" | \"fetchPolicy\" | \"errorPolicy\"\n    >,\n    cacheWriteBehavior: CacheWriteBehavior\n  ) {\n    const merger = new DeepMerger();\n    const graphQLErrors =\n      isNonEmptyArray(result.errors) ? result.errors.slice(0) : [];\n\n    // Cancel the pending notify timeout (if it exists) to prevent extraneous network\n    // requests. To allow future notify timeouts, diff and dirty are reset as well.\n    this.reset();\n\n    if (\"incremental\" in result && isNonEmptyArray(result.incremental)) {\n      const mergedData = mergeIncrementalData(this.getDiff().result, result);\n      result.data = mergedData;\n\n      // Detect the first chunk of a deferred query and merge it with existing\n      // cache data. This ensures a `cache-first` fetch policy that returns\n      // partial cache data or a `cache-and-network` fetch policy that already\n      // has full data in the cache does not complain when trying to merge the\n      // initial deferred server data with existing cache data.\n    } else if (\"hasNext\" in result && result.hasNext) {\n      const diff = this.getDiff();\n      result.data = merger.merge(diff.result, result.data);\n    }\n\n    this.graphQLErrors = graphQLErrors;\n\n    if (options.fetchPolicy === \"no-cache\") {\n      this.updateLastDiff(\n        { result: result.data, complete: true },\n        this.getDiffOptions(options.variables)\n      );\n    } else if (cacheWriteBehavior !== CacheWriteBehavior.FORBID) {\n      if (shouldWriteResult(result, options.errorPolicy)) {\n        // Using a transaction here so we have a chance to read the result\n        // back from the cache before the watch callback fires as a result\n        // of writeQuery, so we can store the new diff quietly and ignore\n        // it when we receive it redundantly from the watch callback.\n        this.cache.performTransaction((cache) => {\n          if (this.shouldWrite(result, options.variables)) {\n            cache.writeQuery({\n              query: document,\n              data: result.data as T,\n              variables: options.variables,\n              overwrite: cacheWriteBehavior === CacheWriteBehavior.OVERWRITE,\n            });\n\n            this.lastWrite = {\n              result,\n              variables: options.variables,\n              dmCount: destructiveMethodCounts.get(this.cache),\n            };\n          } else {\n            // If result is the same as the last result we received from\n            // the network (and the variables match too), avoid writing\n            // result into the cache again. The wisdom of skipping this\n            // cache write is far from obvious, since any cache write\n            // could be the one that puts the cache back into a desired\n            // state, fixing corruption or missing data. However, if we\n            // always write every network result into the cache, we enable\n            // feuds between queries competing to update the same data in\n            // incompatible ways, which can lead to an endless cycle of\n            // cache broadcasts and useless network requests. As with any\n            // feud, eventually one side must step back from the brink,\n            // letting the other side(s) have the last word(s). There may\n            // be other points where we could break this cycle, such as\n            // silencing the broadcast for cache.writeQuery (not a good\n            // idea, since it just delays the feud a bit) or somehow\n            // avoiding the network request that just happened (also bad,\n            // because the server could return useful new data). All\n            // options considered, skipping this cache write seems to be\n            // the least damaging place to break the cycle, because it\n            // reflects the intuition that we recently wrote this exact\n            // result into the cache, so the cache *should* already/still\n            // contain this data. If some other query has clobbered that\n            // data in the meantime, that's too bad, but there will be no\n            // winners if every query blindly reverts to its own version\n            // of the data. This approach also gives the network a chance\n            // to return new data, which will be written into the cache as\n            // usual, notifying only those queries that are directly\n            // affected by the cache updates, as usual. In the future, an\n            // even more sophisticated cache could perhaps prevent or\n            // mitigate the clobbering somehow, but that would make this\n            // particular cache write even less important, and thus\n            // skipping it would be even safer than it is today.\n            if (this.lastDiff && this.lastDiff.diff.complete) {\n              // Reuse data from the last good (complete) diff that we\n              // received, when possible.\n              result.data = this.lastDiff.diff.result;\n              return;\n            }\n            // If the previous this.diff was incomplete, fall through to\n            // re-reading the latest data with cache.diff, below.\n          }\n\n          const diffOptions = this.getDiffOptions(options.variables);\n          const diff = cache.diff<T>(diffOptions);\n\n          // In case the QueryManager stops this QueryInfo before its\n          // results are delivered, it's important to avoid restarting the\n          // cache watch when markResult is called. We also avoid updating\n          // the watch if we are writing a result that doesn't match the current\n          // variables to avoid race conditions from broadcasting the wrong\n          // result.\n          if (!this.stopped && equal(this.variables, options.variables)) {\n            // Any time we're about to update this.diff, we need to make\n            // sure we've started watching the cache.\n            this.updateWatch(options.variables);\n          }\n\n          // If we're allowed to write to the cache, and we can read a\n          // complete result from the cache, update result.data to be the\n          // result from the cache, rather than the raw network result.\n          // Set without setDiff to avoid triggering a notify call, since\n          // we have other ways of notifying for this result.\n          this.updateLastDiff(diff, diffOptions);\n          if (diff.complete) {\n            result.data = diff.result;\n          }\n        });\n      } else {\n        this.lastWrite = void 0;\n      }\n    }\n  }\n\n  public markReady() {\n    this.networkError = null;\n    return (this.networkStatus = NetworkStatus.ready);\n  }\n\n  public markError(error: ApolloError) {\n    this.networkStatus = NetworkStatus.error;\n    this.lastWrite = void 0;\n\n    this.reset();\n\n    if (error.graphQLErrors) {\n      this.graphQLErrors = error.graphQLErrors;\n    }\n\n    if (error.networkError) {\n      this.networkError = error.networkError;\n    }\n\n    return error;\n  }\n}\n\nexport function shouldWriteResult<T>(\n  result: FetchResult<T>,\n  errorPolicy: ErrorPolicy = \"none\"\n) {\n  const ignoreErrors = errorPolicy === \"ignore\" || errorPolicy === \"all\";\n  let writeWithErrors = !graphQLResultHasError(result);\n  if (!writeWithErrors && ignoreErrors && result.data) {\n    writeWithErrors = true;\n  }\n  return writeWithErrors;\n}\n", "import { invariant, newInvariantError } from \"../utilities/globals/index.js\";\n\nimport type { DocumentNode } from \"graphql\";\n// TODO(brian): A hack until this issue is resolved (https://github.com/graphql/graphql-js/issues/3356)\ntype OperationTypeNode = any;\nimport { equal } from \"@wry/equality\";\n\nimport type { ApolloLink, FetchResult } from \"../link/core/index.js\";\nimport { execute } from \"../link/core/index.js\";\nimport {\n  defaultCacheSizes,\n  hasDirectives,\n  isExecutionPatchIncrementalResult,\n  isExecutionPatchResult,\n  removeDirectivesFromDocument,\n} from \"../utilities/index.js\";\nimport type { Cache, ApolloCache } from \"../cache/index.js\";\nimport { canonicalStringify } from \"../cache/index.js\";\n\nimport type {\n  ObservableSubscription,\n  ConcastSourcesArray,\n} from \"../utilities/index.js\";\nimport {\n  getDefaultValues,\n  getOperationDefinition,\n  getOperationName,\n  hasClientExports,\n  graphQLResultHasError,\n  getGraphQLErrorsFromResult,\n  Observable,\n  asyncMap,\n  isNonEmptyArray,\n  Concast,\n  makeUniqueId,\n  isDocumentNode,\n  isNonNullObject,\n  DocumentTransform,\n} from \"../utilities/index.js\";\nimport { mergeIncrementalData } from \"../utilities/common/incrementalResult.js\";\nimport {\n  ApolloError,\n  isApolloError,\n  graphQLResultHasProtocolErrors,\n} from \"../errors/index.js\";\nimport type {\n  QueryOptions,\n  WatchQueryOptions,\n  SubscriptionOptions,\n  MutationOptions,\n  ErrorPolicy,\n  MutationFetchPolicy,\n} from \"./watchQueryOptions.js\";\nimport { ObservableQuery, logMissingFieldErrors } from \"./ObservableQuery.js\";\nimport { NetworkStatus, isNetworkRequestInFlight } from \"./networkStatus.js\";\nimport type {\n  ApolloQueryResult,\n  OperationVariables,\n  MutationUpdaterFunction,\n  OnQueryUpdated,\n  InternalRefetchQueriesInclude,\n  InternalRefetchQueriesOptions,\n  InternalRefetchQueriesResult,\n  InternalRefetchQueriesMap,\n  DefaultContext,\n} from \"./types.js\";\nimport { LocalState } from \"./LocalState.js\";\n\nimport type { QueryStoreValue } from \"./QueryInfo.js\";\nimport {\n  QueryInfo,\n  shouldWriteResult,\n  CacheWriteBehavior,\n} from \"./QueryInfo.js\";\nimport type { ApolloErrorOptions } from \"../errors/index.js\";\nimport { PROTOCOL_ERRORS_SYMBOL } from \"../errors/index.js\";\nimport { print } from \"../utilities/index.js\";\nimport type { IgnoreModifier } from \"../cache/core/types/common.js\";\nimport type { TODO } from \"../utilities/types/TODO.js\";\n\nconst { hasOwnProperty } = Object.prototype;\n\nconst IGNORE: IgnoreModifier = Object.create(null);\n\ninterface MutationStoreValue {\n  mutation: DocumentNode;\n  variables: Record<string, any>;\n  loading: boolean;\n  error: Error | null;\n}\n\ntype UpdateQueries<TData> = MutationOptions<TData, any, any>[\"updateQueries\"];\n\ninterface TransformCacheEntry {\n  hasClientExports: boolean;\n  hasForcedResolvers: boolean;\n  hasNonreactiveDirective: boolean;\n  clientQuery: DocumentNode | null;\n  serverQuery: DocumentNode | null;\n  defaultVars: OperationVariables;\n  asQuery: DocumentNode;\n}\n\nimport type { DefaultOptions } from \"./ApolloClient.js\";\nimport { Trie } from \"@wry/trie\";\nimport { AutoCleanedWeakCache, cacheSizes } from \"../utilities/index.js\";\n\nexport class QueryManager<TStore> {\n  public cache: ApolloCache<TStore>;\n  public link: ApolloLink;\n  public defaultOptions: DefaultOptions;\n\n  public readonly assumeImmutableResults: boolean;\n  public readonly documentTransform: DocumentTransform;\n  public readonly ssrMode: boolean;\n  public readonly defaultContext: Partial<DefaultContext>;\n\n  private queryDeduplication: boolean;\n  private clientAwareness: Record<string, string> = {};\n  private localState: LocalState<TStore>;\n\n  private onBroadcast?: () => void;\n  public mutationStore?: {\n    [mutationId: string]: MutationStoreValue;\n  };\n\n  // All the queries that the QueryManager is currently managing (not\n  // including mutations and subscriptions).\n  private queries = new Map<string, QueryInfo>();\n\n  // Maps from queryId strings to Promise rejection functions for\n  // currently active queries and fetches.\n  // Use protected instead of private field so\n  // @apollo/experimental-nextjs-app-support can access type info.\n  protected fetchCancelFns = new Map<string, (error: any) => any>();\n\n  constructor({\n    cache,\n    link,\n    defaultOptions,\n    documentTransform,\n    queryDeduplication = false,\n    onBroadcast,\n    ssrMode = false,\n    clientAwareness = {},\n    localState,\n    assumeImmutableResults = !!cache.assumeImmutableResults,\n    defaultContext,\n  }: {\n    cache: ApolloCache<TStore>;\n    link: ApolloLink;\n    defaultOptions?: DefaultOptions;\n    documentTransform?: DocumentTransform;\n    queryDeduplication?: boolean;\n    onBroadcast?: () => void;\n    ssrMode?: boolean;\n    clientAwareness?: Record<string, string>;\n    localState?: LocalState<TStore>;\n    assumeImmutableResults?: boolean;\n    defaultContext?: Partial<DefaultContext>;\n  }) {\n    const defaultDocumentTransform = new DocumentTransform(\n      (document) => this.cache.transformDocument(document),\n      // Allow the apollo cache to manage its own transform caches\n      { cache: false }\n    );\n\n    this.cache = cache;\n    this.link = link;\n    this.defaultOptions = defaultOptions || Object.create(null);\n    this.queryDeduplication = queryDeduplication;\n    this.clientAwareness = clientAwareness;\n    this.localState = localState || new LocalState({ cache });\n    this.ssrMode = ssrMode;\n    this.assumeImmutableResults = assumeImmutableResults;\n    this.documentTransform =\n      documentTransform ?\n        defaultDocumentTransform\n          .concat(documentTransform)\n          // The custom document transform may add new fragment spreads or new\n          // field selections, so we want to give the cache a chance to run\n          // again. For example, the InMemoryCache adds __typename to field\n          // selections and fragments from the fragment registry.\n          .concat(defaultDocumentTransform)\n      : defaultDocumentTransform;\n    this.defaultContext = defaultContext || Object.create(null);\n\n    if ((this.onBroadcast = onBroadcast)) {\n      this.mutationStore = Object.create(null);\n    }\n  }\n\n  /**\n   * Call this method to terminate any active query processes, making it safe\n   * to dispose of this QueryManager instance.\n   */\n  public stop() {\n    this.queries.forEach((_info, queryId) => {\n      this.stopQueryNoBroadcast(queryId);\n    });\n\n    this.cancelPendingFetches(\n      newInvariantError(\"QueryManager stopped while query was in flight\")\n    );\n  }\n\n  private cancelPendingFetches(error: Error) {\n    this.fetchCancelFns.forEach((cancel) => cancel(error));\n    this.fetchCancelFns.clear();\n  }\n\n  public async mutate<\n    TData,\n    TVariables extends OperationVariables,\n    TContext extends Record<string, any>,\n    TCache extends ApolloCache<any>,\n  >({\n    mutation,\n    variables,\n    optimisticResponse,\n    updateQueries,\n    refetchQueries = [],\n    awaitRefetchQueries = false,\n    update: updateWithProxyFn,\n    onQueryUpdated,\n    fetchPolicy = this.defaultOptions.mutate?.fetchPolicy || \"network-only\",\n    errorPolicy = this.defaultOptions.mutate?.errorPolicy || \"none\",\n    keepRootFields,\n    context,\n  }: MutationOptions<TData, TVariables, TContext>): Promise<\n    FetchResult<TData>\n  > {\n    invariant(\n      mutation,\n      \"mutation option is required. You must specify your GraphQL document in the mutation option.\"\n    );\n\n    invariant(\n      fetchPolicy === \"network-only\" || fetchPolicy === \"no-cache\",\n      \"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write.\"\n    );\n\n    const mutationId = this.generateMutationId();\n\n    mutation = this.cache.transformForLink(this.transform(mutation));\n    const { hasClientExports } = this.getDocumentInfo(mutation);\n\n    variables = this.getVariables(mutation, variables) as TVariables;\n    if (hasClientExports) {\n      variables = (await this.localState.addExportedVariables(\n        mutation,\n        variables,\n        context\n      )) as TVariables;\n    }\n\n    const mutationStoreValue =\n      this.mutationStore &&\n      (this.mutationStore[mutationId] = {\n        mutation,\n        variables,\n        loading: true,\n        error: null,\n      } as MutationStoreValue);\n\n    const isOptimistic =\n      optimisticResponse &&\n      this.markMutationOptimistic<TData, TVariables, TContext, TCache>(\n        optimisticResponse,\n        {\n          mutationId,\n          document: mutation,\n          variables,\n          fetchPolicy,\n          errorPolicy,\n          context,\n          updateQueries,\n          update: updateWithProxyFn,\n          keepRootFields,\n        }\n      );\n\n    this.broadcastQueries();\n\n    const self = this;\n\n    return new Promise((resolve, reject) => {\n      return asyncMap(\n        self.getObservableFromLink(\n          mutation,\n          {\n            ...context,\n            optimisticResponse: isOptimistic ? optimisticResponse : void 0,\n          },\n          variables,\n          false\n        ),\n\n        (result: FetchResult<TData>) => {\n          if (graphQLResultHasError(result) && errorPolicy === \"none\") {\n            throw new ApolloError({\n              graphQLErrors: getGraphQLErrorsFromResult(result),\n            });\n          }\n\n          if (mutationStoreValue) {\n            mutationStoreValue.loading = false;\n            mutationStoreValue.error = null;\n          }\n\n          const storeResult: typeof result = { ...result };\n\n          if (typeof refetchQueries === \"function\") {\n            refetchQueries = refetchQueries(storeResult);\n          }\n\n          if (errorPolicy === \"ignore\" && graphQLResultHasError(storeResult)) {\n            delete storeResult.errors;\n          }\n\n          return self.markMutationResult<TData, TVariables, TContext, TCache>({\n            mutationId,\n            result: storeResult,\n            document: mutation,\n            variables,\n            fetchPolicy,\n            errorPolicy,\n            context,\n            update: updateWithProxyFn,\n            updateQueries,\n            awaitRefetchQueries,\n            refetchQueries,\n            removeOptimistic: isOptimistic ? mutationId : void 0,\n            onQueryUpdated,\n            keepRootFields,\n          });\n        }\n      ).subscribe({\n        next(storeResult) {\n          self.broadcastQueries();\n\n          // Since mutations might receive multiple payloads from the\n          // ApolloLink chain (e.g. when used with @defer),\n          // we resolve with a SingleExecutionResult or after the final\n          // ExecutionPatchResult has arrived and we have assembled the\n          // multipart response into a single result.\n          if (!(\"hasNext\" in storeResult) || storeResult.hasNext === false) {\n            resolve(storeResult);\n          }\n        },\n\n        error(err: Error) {\n          if (mutationStoreValue) {\n            mutationStoreValue.loading = false;\n            mutationStoreValue.error = err;\n          }\n\n          if (isOptimistic) {\n            self.cache.removeOptimistic(mutationId);\n          }\n\n          self.broadcastQueries();\n\n          reject(\n            err instanceof ApolloError ? err : (\n              new ApolloError({\n                networkError: err,\n              })\n            )\n          );\n        },\n      });\n    });\n  }\n\n  public markMutationResult<\n    TData,\n    TVariables,\n    TContext,\n    TCache extends ApolloCache<any>,\n  >(\n    mutation: {\n      mutationId: string;\n      result: FetchResult<TData>;\n      document: DocumentNode;\n      variables?: TVariables;\n      fetchPolicy?: MutationFetchPolicy;\n      errorPolicy: ErrorPolicy;\n      context?: TContext;\n      updateQueries: UpdateQueries<TData>;\n      update?: MutationUpdaterFunction<TData, TVariables, TContext, TCache>;\n      awaitRefetchQueries?: boolean;\n      refetchQueries?: InternalRefetchQueriesInclude;\n      removeOptimistic?: string;\n      onQueryUpdated?: OnQueryUpdated<any>;\n      keepRootFields?: boolean;\n    },\n    cache = this.cache\n  ): Promise<FetchResult<TData>> {\n    let { result } = mutation;\n    const cacheWrites: Cache.WriteOptions[] = [];\n    const skipCache = mutation.fetchPolicy === \"no-cache\";\n\n    if (!skipCache && shouldWriteResult(result, mutation.errorPolicy)) {\n      if (!isExecutionPatchIncrementalResult(result)) {\n        cacheWrites.push({\n          result: result.data,\n          dataId: \"ROOT_MUTATION\",\n          query: mutation.document,\n          variables: mutation.variables,\n        });\n      }\n      if (\n        isExecutionPatchIncrementalResult(result) &&\n        isNonEmptyArray(result.incremental)\n      ) {\n        const diff = cache.diff<TData>({\n          id: \"ROOT_MUTATION\",\n          // The cache complains if passed a mutation where it expects a\n          // query, so we transform mutations and subscriptions to queries\n          // (only once, thanks to this.transformCache).\n          query: this.getDocumentInfo(mutation.document).asQuery,\n          variables: mutation.variables,\n          optimistic: false,\n          returnPartialData: true,\n        });\n        let mergedData;\n        if (diff.result) {\n          mergedData = mergeIncrementalData(diff.result, result);\n        }\n        if (typeof mergedData !== \"undefined\") {\n          // cast the ExecutionPatchResult to FetchResult here since\n          // ExecutionPatchResult never has `data` when returned from the server\n          (result as FetchResult).data = mergedData;\n          cacheWrites.push({\n            result: mergedData,\n            dataId: \"ROOT_MUTATION\",\n            query: mutation.document,\n            variables: mutation.variables,\n          });\n        }\n      }\n\n      const { updateQueries } = mutation;\n      if (updateQueries) {\n        this.queries.forEach(({ observableQuery }, queryId) => {\n          const queryName = observableQuery && observableQuery.queryName;\n          if (!queryName || !hasOwnProperty.call(updateQueries, queryName)) {\n            return;\n          }\n          const updater = updateQueries[queryName];\n          const { document, variables } = this.queries.get(queryId)!;\n\n          // Read the current query result from the store.\n          const { result: currentQueryResult, complete } = cache.diff<TData>({\n            query: document!,\n            variables,\n            returnPartialData: true,\n            optimistic: false,\n          });\n\n          if (complete && currentQueryResult) {\n            // Run our reducer using the current query result and the mutation result.\n            const nextQueryResult = updater(currentQueryResult, {\n              mutationResult: result,\n              queryName: (document && getOperationName(document)) || void 0,\n              queryVariables: variables!,\n            });\n\n            // Write the modified result back into the store if we got a new result.\n            if (nextQueryResult) {\n              cacheWrites.push({\n                result: nextQueryResult,\n                dataId: \"ROOT_QUERY\",\n                query: document!,\n                variables,\n              });\n            }\n          }\n        });\n      }\n    }\n\n    if (\n      cacheWrites.length > 0 ||\n      (mutation.refetchQueries || \"\").length > 0 ||\n      mutation.update ||\n      mutation.onQueryUpdated ||\n      mutation.removeOptimistic\n    ) {\n      const results: any[] = [];\n\n      this.refetchQueries({\n        updateCache: (cache) => {\n          if (!skipCache) {\n            cacheWrites.forEach((write) => cache.write(write));\n          }\n\n          // If the mutation has some writes associated with it then we need to\n          // apply those writes to the store by running this reducer again with\n          // a write action.\n          const { update } = mutation;\n          // Determine whether result is a SingleExecutionResult,\n          // or the final ExecutionPatchResult.\n          const isFinalResult =\n            !isExecutionPatchResult(result) ||\n            (isExecutionPatchIncrementalResult(result) && !result.hasNext);\n\n          if (update) {\n            if (!skipCache) {\n              // Re-read the ROOT_MUTATION data we just wrote into the cache\n              // (the first cache.write call in the cacheWrites.forEach loop\n              // above), so field read functions have a chance to run for\n              // fields within mutation result objects.\n              const diff = cache.diff<TData>({\n                id: \"ROOT_MUTATION\",\n                // The cache complains if passed a mutation where it expects a\n                // query, so we transform mutations and subscriptions to queries\n                // (only once, thanks to this.transformCache).\n                query: this.getDocumentInfo(mutation.document).asQuery,\n                variables: mutation.variables,\n                optimistic: false,\n                returnPartialData: true,\n              });\n\n              if (diff.complete) {\n                result = { ...(result as FetchResult), data: diff.result };\n                if (\"incremental\" in result) {\n                  delete result.incremental;\n                }\n                if (\"hasNext\" in result) {\n                  delete result.hasNext;\n                }\n              }\n            }\n\n            // If we've received the whole response,\n            // either a SingleExecutionResult or the final ExecutionPatchResult,\n            // call the update function.\n            if (isFinalResult) {\n              update(cache as TCache, result, {\n                context: mutation.context,\n                variables: mutation.variables,\n              });\n            }\n          }\n\n          // TODO Do this with cache.evict({ id: 'ROOT_MUTATION' }) but make it\n          // shallow to allow rolling back optimistic evictions.\n          if (!skipCache && !mutation.keepRootFields && isFinalResult) {\n            cache.modify({\n              id: \"ROOT_MUTATION\",\n              fields(value, { fieldName, DELETE }) {\n                return fieldName === \"__typename\" ? value : DELETE;\n              },\n            });\n          }\n        },\n\n        include: mutation.refetchQueries,\n\n        // Write the final mutation.result to the root layer of the cache.\n        optimistic: false,\n\n        // Remove the corresponding optimistic layer at the same time as we\n        // write the final non-optimistic result.\n        removeOptimistic: mutation.removeOptimistic,\n\n        // Let the caller of client.mutate optionally determine the refetching\n        // behavior for watched queries after the mutation.update function runs.\n        // If no onQueryUpdated function was provided for this mutation, pass\n        // null instead of undefined to disable the default refetching behavior.\n        onQueryUpdated: mutation.onQueryUpdated || null,\n      }).forEach((result) => results.push(result));\n\n      if (mutation.awaitRefetchQueries || mutation.onQueryUpdated) {\n        // Returning a promise here makes the mutation await that promise, so we\n        // include results in that promise's work if awaitRefetchQueries or an\n        // onQueryUpdated function was specified.\n        return Promise.all(results).then(() => result);\n      }\n    }\n\n    return Promise.resolve(result);\n  }\n\n  public markMutationOptimistic<\n    TData,\n    TVariables,\n    TContext,\n    TCache extends ApolloCache<any>,\n  >(\n    optimisticResponse: any,\n    mutation: {\n      mutationId: string;\n      document: DocumentNode;\n      variables?: TVariables;\n      fetchPolicy?: MutationFetchPolicy;\n      errorPolicy: ErrorPolicy;\n      context?: TContext;\n      updateQueries: UpdateQueries<TData>;\n      update?: MutationUpdaterFunction<TData, TVariables, TContext, TCache>;\n      keepRootFields?: boolean;\n    }\n  ) {\n    const data =\n      typeof optimisticResponse === \"function\" ?\n        optimisticResponse(mutation.variables, { IGNORE })\n      : optimisticResponse;\n\n    if (data === IGNORE) {\n      return false;\n    }\n\n    this.cache.recordOptimisticTransaction((cache) => {\n      try {\n        this.markMutationResult<TData, TVariables, TContext, TCache>(\n          {\n            ...mutation,\n            result: { data },\n          },\n          cache\n        );\n      } catch (error) {\n        invariant.error(error);\n      }\n    }, mutation.mutationId);\n\n    return true;\n  }\n\n  public fetchQuery<TData, TVars extends OperationVariables>(\n    queryId: string,\n    options: WatchQueryOptions<TVars, TData>,\n    networkStatus?: NetworkStatus\n  ): Promise<ApolloQueryResult<TData>> {\n    return this.fetchConcastWithInfo(queryId, options, networkStatus).concast\n      .promise as TODO;\n  }\n\n  public getQueryStore() {\n    const store: Record<string, QueryStoreValue> = Object.create(null);\n    this.queries.forEach((info, queryId) => {\n      store[queryId] = {\n        variables: info.variables,\n        networkStatus: info.networkStatus,\n        networkError: info.networkError,\n        graphQLErrors: info.graphQLErrors,\n      };\n    });\n    return store;\n  }\n\n  public resetErrors(queryId: string) {\n    const queryInfo = this.queries.get(queryId);\n    if (queryInfo) {\n      queryInfo.networkError = undefined;\n      queryInfo.graphQLErrors = [];\n    }\n  }\n\n  public transform(document: DocumentNode) {\n    return this.documentTransform.transformDocument(document);\n  }\n\n  private transformCache = new AutoCleanedWeakCache<\n    DocumentNode,\n    TransformCacheEntry\n  >(\n    cacheSizes[\"queryManager.getDocumentInfo\"] ||\n      defaultCacheSizes[\"queryManager.getDocumentInfo\"]\n  );\n\n  public getDocumentInfo(document: DocumentNode) {\n    const { transformCache } = this;\n\n    if (!transformCache.has(document)) {\n      const cacheEntry: TransformCacheEntry = {\n        // TODO These three calls (hasClientExports, shouldForceResolvers, and\n        // usesNonreactiveDirective) are performing independent full traversals\n        // of the transformed document. We should consider merging these\n        // traversals into a single pass in the future, though the work is\n        // cached after the first time.\n        hasClientExports: hasClientExports(document),\n        hasForcedResolvers: this.localState.shouldForceResolvers(document),\n        hasNonreactiveDirective: hasDirectives([\"nonreactive\"], document),\n        clientQuery: this.localState.clientQuery(document),\n        serverQuery: removeDirectivesFromDocument(\n          [\n            { name: \"client\", remove: true },\n            { name: \"connection\" },\n            { name: \"nonreactive\" },\n          ],\n          document\n        ),\n        defaultVars: getDefaultValues(\n          getOperationDefinition(document)\n        ) as OperationVariables,\n        // Transform any mutation or subscription operations to query operations\n        // so we can read/write them from/to the cache.\n        asQuery: {\n          ...document,\n          definitions: document.definitions.map((def) => {\n            if (\n              def.kind === \"OperationDefinition\" &&\n              def.operation !== \"query\"\n            ) {\n              return { ...def, operation: \"query\" as OperationTypeNode };\n            }\n            return def;\n          }),\n        },\n      };\n\n      transformCache.set(document, cacheEntry);\n    }\n\n    return transformCache.get(document)!;\n  }\n\n  private getVariables<TVariables>(\n    document: DocumentNode,\n    variables?: TVariables\n  ): OperationVariables {\n    return {\n      ...this.getDocumentInfo(document).defaultVars,\n      ...variables,\n    };\n  }\n\n  public watchQuery<\n    T,\n    TVariables extends OperationVariables = OperationVariables,\n  >(options: WatchQueryOptions<TVariables, T>): ObservableQuery<T, TVariables> {\n    const query = this.transform(options.query);\n\n    // assign variable default values if supplied\n    // NOTE: We don't modify options.query here with the transformed query to\n    // ensure observable.options.query is set to the raw untransformed query.\n    options = {\n      ...options,\n      variables: this.getVariables(query, options.variables) as TVariables,\n    };\n\n    if (typeof options.notifyOnNetworkStatusChange === \"undefined\") {\n      options.notifyOnNetworkStatusChange = false;\n    }\n\n    const queryInfo = new QueryInfo(this);\n    const observable = new ObservableQuery<T, TVariables>({\n      queryManager: this,\n      queryInfo,\n      options,\n    });\n    observable[\"lastQuery\"] = query;\n\n    this.queries.set(observable.queryId, queryInfo);\n\n    // We give queryInfo the transformed query to ensure the first cache diff\n    // uses the transformed query instead of the raw query\n    queryInfo.init({\n      document: query,\n      observableQuery: observable,\n      variables: observable.variables,\n    });\n\n    return observable;\n  }\n\n  public query<TData, TVars extends OperationVariables = OperationVariables>(\n    options: QueryOptions<TVars, TData>,\n    queryId = this.generateQueryId()\n  ): Promise<ApolloQueryResult<TData>> {\n    invariant(\n      options.query,\n      \"query option is required. You must specify your GraphQL document \" +\n        \"in the query option.\"\n    );\n\n    invariant(\n      options.query.kind === \"Document\",\n      'You must wrap the query string in a \"gql\" tag.'\n    );\n\n    invariant(\n      !(options as any).returnPartialData,\n      \"returnPartialData option only supported on watchQuery.\"\n    );\n\n    invariant(\n      !(options as any).pollInterval,\n      \"pollInterval option only supported on watchQuery.\"\n    );\n\n    return this.fetchQuery<TData, TVars>(queryId, {\n      ...options,\n      query: this.transform(options.query),\n    }).finally(() => this.stopQuery(queryId));\n  }\n\n  private queryIdCounter = 1;\n  public generateQueryId() {\n    return String(this.queryIdCounter++);\n  }\n\n  private requestIdCounter = 1;\n  public generateRequestId() {\n    return this.requestIdCounter++;\n  }\n\n  private mutationIdCounter = 1;\n  public generateMutationId() {\n    return String(this.mutationIdCounter++);\n  }\n\n  public stopQueryInStore(queryId: string) {\n    this.stopQueryInStoreNoBroadcast(queryId);\n    this.broadcastQueries();\n  }\n\n  private stopQueryInStoreNoBroadcast(queryId: string) {\n    const queryInfo = this.queries.get(queryId);\n    if (queryInfo) queryInfo.stop();\n  }\n\n  public clearStore(\n    options: Cache.ResetOptions = {\n      discardWatches: true,\n    }\n  ): Promise<void> {\n    // Before we have sent the reset action to the store, we can no longer\n    // rely on the results returned by in-flight requests since these may\n    // depend on values that previously existed in the data portion of the\n    // store. So, we cancel the promises and observers that we have issued\n    // so far and not yet resolved (in the case of queries).\n    this.cancelPendingFetches(\n      newInvariantError(\n        \"Store reset while query was in flight (not completed in link chain)\"\n      )\n    );\n\n    this.queries.forEach((queryInfo) => {\n      if (queryInfo.observableQuery) {\n        // Set loading to true so listeners don't trigger unless they want\n        // results with partial data.\n        queryInfo.networkStatus = NetworkStatus.loading;\n      } else {\n        queryInfo.stop();\n      }\n    });\n\n    if (this.mutationStore) {\n      this.mutationStore = Object.create(null);\n    }\n\n    // begin removing data from the store\n    return this.cache.reset(options);\n  }\n\n  public getObservableQueries(\n    include: InternalRefetchQueriesInclude = \"active\"\n  ) {\n    const queries = new Map<string, ObservableQuery<any>>();\n    const queryNamesAndDocs = new Map<string | DocumentNode, boolean>();\n    const legacyQueryOptions = new Set<QueryOptions>();\n\n    if (Array.isArray(include)) {\n      include.forEach((desc) => {\n        if (typeof desc === \"string\") {\n          queryNamesAndDocs.set(desc, false);\n        } else if (isDocumentNode(desc)) {\n          queryNamesAndDocs.set(this.transform(desc), false);\n        } else if (isNonNullObject(desc) && desc.query) {\n          legacyQueryOptions.add(desc);\n        }\n      });\n    }\n\n    this.queries.forEach(({ observableQuery: oq, document }, queryId) => {\n      if (oq) {\n        if (include === \"all\") {\n          queries.set(queryId, oq);\n          return;\n        }\n\n        const {\n          queryName,\n          options: { fetchPolicy },\n        } = oq;\n\n        if (\n          fetchPolicy === \"standby\" ||\n          (include === \"active\" && !oq.hasObservers())\n        ) {\n          return;\n        }\n\n        if (\n          include === \"active\" ||\n          (queryName && queryNamesAndDocs.has(queryName)) ||\n          (document && queryNamesAndDocs.has(document))\n        ) {\n          queries.set(queryId, oq);\n          if (queryName) queryNamesAndDocs.set(queryName, true);\n          if (document) queryNamesAndDocs.set(document, true);\n        }\n      }\n    });\n\n    if (legacyQueryOptions.size) {\n      legacyQueryOptions.forEach((options: QueryOptions) => {\n        // We will be issuing a fresh network request for this query, so we\n        // pre-allocate a new query ID here, using a special prefix to enable\n        // cleaning up these temporary queries later, after fetching.\n        const queryId = makeUniqueId(\"legacyOneTimeQuery\");\n        const queryInfo = this.getQuery(queryId).init({\n          document: options.query,\n          variables: options.variables,\n        });\n        const oq = new ObservableQuery({\n          queryManager: this,\n          queryInfo,\n          options: {\n            ...options,\n            fetchPolicy: \"network-only\",\n          },\n        });\n        invariant(oq.queryId === queryId);\n        queryInfo.setObservableQuery(oq);\n        queries.set(queryId, oq);\n      });\n    }\n\n    if (__DEV__ && queryNamesAndDocs.size) {\n      queryNamesAndDocs.forEach((included, nameOrDoc) => {\n        if (!included) {\n          invariant.warn(\n            typeof nameOrDoc === \"string\" ?\n              `Unknown query named \"%s\" requested in refetchQueries options.include array`\n            : `Unknown query %o requested in refetchQueries options.include array`,\n            nameOrDoc\n          );\n        }\n      });\n    }\n\n    return queries;\n  }\n\n  public reFetchObservableQueries(\n    includeStandby: boolean = false\n  ): Promise<ApolloQueryResult<any>[]> {\n    const observableQueryPromises: Promise<ApolloQueryResult<any>>[] = [];\n\n    this.getObservableQueries(includeStandby ? \"all\" : \"active\").forEach(\n      (observableQuery, queryId) => {\n        const { fetchPolicy } = observableQuery.options;\n        observableQuery.resetLastResults();\n        if (\n          includeStandby ||\n          (fetchPolicy !== \"standby\" && fetchPolicy !== \"cache-only\")\n        ) {\n          observableQueryPromises.push(observableQuery.refetch());\n        }\n        this.getQuery(queryId).setDiff(null);\n      }\n    );\n\n    this.broadcastQueries();\n\n    return Promise.all(observableQueryPromises);\n  }\n\n  public setObservableQuery(observableQuery: ObservableQuery<any, any>) {\n    this.getQuery(observableQuery.queryId).setObservableQuery(observableQuery);\n  }\n\n  public startGraphQLSubscription<T = any>({\n    query,\n    fetchPolicy,\n    errorPolicy = \"none\",\n    variables,\n    context = {},\n  }: SubscriptionOptions): Observable<FetchResult<T>> {\n    query = this.transform(query);\n    variables = this.getVariables(query, variables);\n\n    const makeObservable = (variables: OperationVariables) =>\n      this.getObservableFromLink<T>(query, context, variables).map((result) => {\n        if (fetchPolicy !== \"no-cache\") {\n          // the subscription interface should handle not sending us results we no longer subscribe to.\n          // XXX I don't think we ever send in an object with errors, but we might in the future...\n          if (shouldWriteResult(result, errorPolicy)) {\n            this.cache.write({\n              query,\n              result: result.data,\n              dataId: \"ROOT_SUBSCRIPTION\",\n              variables: variables,\n            });\n          }\n\n          this.broadcastQueries();\n        }\n\n        const hasErrors = graphQLResultHasError(result);\n        const hasProtocolErrors = graphQLResultHasProtocolErrors(result);\n        if (hasErrors || hasProtocolErrors) {\n          const errors: ApolloErrorOptions = {};\n          if (hasErrors) {\n            errors.graphQLErrors = result.errors;\n          }\n          if (hasProtocolErrors) {\n            errors.protocolErrors = result.extensions[PROTOCOL_ERRORS_SYMBOL];\n          }\n\n          // `errorPolicy` is a mechanism for handling GraphQL errors, according\n          // to our documentation, so we throw protocol errors regardless of the\n          // set error policy.\n          if (errorPolicy === \"none\" || hasProtocolErrors) {\n            throw new ApolloError(errors);\n          }\n        }\n\n        if (errorPolicy === \"ignore\") {\n          delete result.errors;\n        }\n\n        return result;\n      });\n\n    if (this.getDocumentInfo(query).hasClientExports) {\n      const observablePromise = this.localState\n        .addExportedVariables(query, variables, context)\n        .then(makeObservable);\n\n      return new Observable<FetchResult<T>>((observer) => {\n        let sub: ObservableSubscription | null = null;\n        observablePromise.then(\n          (observable) => (sub = observable.subscribe(observer)),\n          observer.error\n        );\n        return () => sub && sub.unsubscribe();\n      });\n    }\n\n    return makeObservable(variables);\n  }\n\n  public stopQuery(queryId: string) {\n    this.stopQueryNoBroadcast(queryId);\n    this.broadcastQueries();\n  }\n\n  private stopQueryNoBroadcast(queryId: string) {\n    this.stopQueryInStoreNoBroadcast(queryId);\n    this.removeQuery(queryId);\n  }\n\n  public removeQuery(queryId: string) {\n    // teardown all links\n    // Both `QueryManager.fetchRequest` and `QueryManager.query` create separate promises\n    // that each add their reject functions to fetchCancelFns.\n    // A query created with `QueryManager.query()` could trigger a `QueryManager.fetchRequest`.\n    // The same queryId could have two rejection fns for two promises\n    this.fetchCancelFns.delete(queryId);\n    if (this.queries.has(queryId)) {\n      this.getQuery(queryId).stop();\n      this.queries.delete(queryId);\n    }\n  }\n\n  public broadcastQueries() {\n    if (this.onBroadcast) this.onBroadcast();\n    this.queries.forEach((info) => info.notify());\n  }\n\n  public getLocalState(): LocalState<TStore> {\n    return this.localState;\n  }\n\n  // Use protected instead of private field so\n  // @apollo/experimental-nextjs-app-support can access type info.\n  protected inFlightLinkObservables = new Trie<{\n    observable?: Observable<FetchResult<any>>;\n  }>(false);\n\n  private getObservableFromLink<T = any>(\n    query: DocumentNode,\n    context: any,\n    variables?: OperationVariables,\n    // Prefer context.queryDeduplication if specified.\n    deduplication: boolean = context?.queryDeduplication ??\n      this.queryDeduplication\n  ): Observable<FetchResult<T>> {\n    let observable: Observable<FetchResult<T>> | undefined;\n\n    const { serverQuery, clientQuery } = this.getDocumentInfo(query);\n    if (serverQuery) {\n      const { inFlightLinkObservables, link } = this;\n\n      const operation = {\n        query: serverQuery,\n        variables,\n        operationName: getOperationName(serverQuery) || void 0,\n        context: this.prepareContext({\n          ...context,\n          forceFetch: !deduplication,\n        }),\n      };\n\n      context = operation.context;\n\n      if (deduplication) {\n        const printedServerQuery = print(serverQuery);\n        const varJson = canonicalStringify(variables);\n\n        const entry = inFlightLinkObservables.lookup(\n          printedServerQuery,\n          varJson\n        );\n\n        observable = entry.observable;\n        if (!observable) {\n          const concast = new Concast([\n            execute(link, operation) as Observable<FetchResult<T>>,\n          ]);\n          observable = entry.observable = concast;\n\n          concast.beforeNext(() => {\n            inFlightLinkObservables.remove(printedServerQuery, varJson);\n          });\n        }\n      } else {\n        observable = new Concast([\n          execute(link, operation) as Observable<FetchResult<T>>,\n        ]);\n      }\n    } else {\n      observable = new Concast([Observable.of({ data: {} } as FetchResult<T>)]);\n      context = this.prepareContext(context);\n    }\n\n    if (clientQuery) {\n      observable = asyncMap(observable, (result) => {\n        return this.localState.runResolvers({\n          document: clientQuery,\n          remoteResult: result,\n          context,\n          variables,\n        });\n      });\n    }\n\n    return observable;\n  }\n\n  private getResultsFromLink<TData, TVars extends OperationVariables>(\n    queryInfo: QueryInfo,\n    cacheWriteBehavior: CacheWriteBehavior,\n    options: Pick<\n      WatchQueryOptions<TVars, TData>,\n      \"query\" | \"variables\" | \"context\" | \"fetchPolicy\" | \"errorPolicy\"\n    >\n  ): Observable<ApolloQueryResult<TData>> {\n    const requestId = (queryInfo.lastRequestId = this.generateRequestId());\n\n    // Performing transformForLink here gives this.cache a chance to fill in\n    // missing fragment definitions (for example) before sending this document\n    // through the link chain.\n    const linkDocument = this.cache.transformForLink(options.query);\n\n    return asyncMap(\n      this.getObservableFromLink(\n        linkDocument,\n        options.context,\n        options.variables\n      ),\n\n      (result) => {\n        const graphQLErrors = getGraphQLErrorsFromResult(result);\n        const hasErrors = graphQLErrors.length > 0;\n\n        // If we interrupted this request by calling getResultsFromLink again\n        // with the same QueryInfo object, we ignore the old results.\n        if (requestId >= queryInfo.lastRequestId) {\n          if (hasErrors && options.errorPolicy === \"none\") {\n            // Throwing here effectively calls observer.error.\n            throw queryInfo.markError(\n              new ApolloError({\n                graphQLErrors,\n              })\n            );\n          }\n          // Use linkDocument rather than queryInfo.document so the\n          // operation/fragments used to write the result are the same as the\n          // ones used to obtain it from the link.\n          queryInfo.markResult(\n            result,\n            linkDocument,\n            options,\n            cacheWriteBehavior\n          );\n          queryInfo.markReady();\n        }\n\n        const aqr: ApolloQueryResult<TData> = {\n          data: result.data,\n          loading: false,\n          networkStatus: NetworkStatus.ready,\n        };\n\n        if (hasErrors && options.errorPolicy !== \"ignore\") {\n          aqr.errors = graphQLErrors;\n          aqr.networkStatus = NetworkStatus.error;\n        }\n\n        return aqr;\n      },\n\n      (networkError) => {\n        const error =\n          isApolloError(networkError) ? networkError : (\n            new ApolloError({ networkError })\n          );\n\n        // Avoid storing errors from older interrupted queries.\n        if (requestId >= queryInfo.lastRequestId) {\n          queryInfo.markError(error);\n        }\n\n        throw error;\n      }\n    );\n  }\n\n  private fetchConcastWithInfo<TData, TVars extends OperationVariables>(\n    queryId: string,\n    options: WatchQueryOptions<TVars, TData>,\n    // The initial networkStatus for this fetch, most often\n    // NetworkStatus.loading, but also possibly fetchMore, poll, refetch,\n    // or setVariables.\n    networkStatus = NetworkStatus.loading,\n    query = options.query\n  ): ConcastAndInfo<TData> {\n    const variables = this.getVariables(query, options.variables) as TVars;\n    const queryInfo = this.getQuery(queryId);\n\n    const defaults = this.defaultOptions.watchQuery;\n    let {\n      fetchPolicy = (defaults && defaults.fetchPolicy) || \"cache-first\",\n      errorPolicy = (defaults && defaults.errorPolicy) || \"none\",\n      returnPartialData = false,\n      notifyOnNetworkStatusChange = false,\n      context = {},\n    } = options;\n\n    const normalized = Object.assign({}, options, {\n      query,\n      variables,\n      fetchPolicy,\n      errorPolicy,\n      returnPartialData,\n      notifyOnNetworkStatusChange,\n      context,\n    });\n\n    const fromVariables = (variables: TVars) => {\n      // Since normalized is always a fresh copy of options, it's safe to\n      // modify its properties here, rather than creating yet another new\n      // WatchQueryOptions object.\n      normalized.variables = variables;\n\n      const sourcesWithInfo = this.fetchQueryByPolicy<TData, TVars>(\n        queryInfo,\n        normalized,\n        networkStatus\n      );\n\n      if (\n        // If we're in standby, postpone advancing options.fetchPolicy using\n        // applyNextFetchPolicy.\n        normalized.fetchPolicy !== \"standby\" &&\n        // The \"standby\" policy currently returns [] from fetchQueryByPolicy, so\n        // this is another way to detect when nothing was done/fetched.\n        sourcesWithInfo.sources.length > 0 &&\n        queryInfo.observableQuery\n      ) {\n        queryInfo.observableQuery[\"applyNextFetchPolicy\"](\n          \"after-fetch\",\n          options\n        );\n      }\n\n      return sourcesWithInfo;\n    };\n\n    // This cancel function needs to be set before the concast is created,\n    // in case concast creation synchronously cancels the request.\n    const cleanupCancelFn = () => this.fetchCancelFns.delete(queryId);\n    this.fetchCancelFns.set(queryId, (reason) => {\n      cleanupCancelFn();\n      // This delay ensures the concast variable has been initialized.\n      setTimeout(() => concast.cancel(reason));\n    });\n\n    let concast: Concast<ApolloQueryResult<TData>>,\n      containsDataFromLink: boolean;\n    // If the query has @export(as: ...) directives, then we need to\n    // process those directives asynchronously. When there are no\n    // @export directives (the common case), we deliberately avoid\n    // wrapping the result of this.fetchQueryByPolicy in a Promise,\n    // since the timing of result delivery is (unfortunately) important\n    // for backwards compatibility. TODO This code could be simpler if\n    // we deprecated and removed LocalState.\n    if (this.getDocumentInfo(normalized.query).hasClientExports) {\n      concast = new Concast(\n        this.localState\n          .addExportedVariables(\n            normalized.query,\n            normalized.variables,\n            normalized.context\n          )\n          .then(fromVariables)\n          .then((sourcesWithInfo) => sourcesWithInfo.sources)\n      );\n      // there is just no way we can synchronously get the *right* value here,\n      // so we will assume `true`, which is the behaviour before the bug fix in\n      // #10597. This means that bug is not fixed in that case, and is probably\n      // un-fixable with reasonable effort for the edge case of @export as\n      // directives.\n      containsDataFromLink = true;\n    } else {\n      const sourcesWithInfo = fromVariables(normalized.variables);\n      containsDataFromLink = sourcesWithInfo.fromLink;\n      concast = new Concast(sourcesWithInfo.sources);\n    }\n\n    concast.promise.then(cleanupCancelFn, cleanupCancelFn);\n\n    return {\n      concast,\n      fromLink: containsDataFromLink,\n    };\n  }\n\n  public refetchQueries<TResult>({\n    updateCache,\n    include,\n    optimistic = false,\n    removeOptimistic = optimistic ? makeUniqueId(\"refetchQueries\") : void 0,\n    onQueryUpdated,\n  }: InternalRefetchQueriesOptions<\n    ApolloCache<TStore>,\n    TResult\n  >): InternalRefetchQueriesMap<TResult> {\n    const includedQueriesById = new Map<\n      string,\n      {\n        oq: ObservableQuery<any>;\n        lastDiff?: Cache.DiffResult<any>;\n        diff?: Cache.DiffResult<any>;\n      }\n    >();\n\n    if (include) {\n      this.getObservableQueries(include).forEach((oq, queryId) => {\n        includedQueriesById.set(queryId, {\n          oq,\n          lastDiff: this.getQuery(queryId).getDiff(),\n        });\n      });\n    }\n\n    const results: InternalRefetchQueriesMap<TResult> = new Map();\n\n    if (updateCache) {\n      this.cache.batch({\n        update: updateCache,\n\n        // Since you can perform any combination of cache reads and/or writes in\n        // the cache.batch update function, its optimistic option can be either\n        // a boolean or a string, representing three distinct modes of\n        // operation:\n        //\n        // * false: read/write only the root layer\n        // * true: read/write the topmost layer\n        // * string: read/write a fresh optimistic layer with that ID string\n        //\n        // When typeof optimistic === \"string\", a new optimistic layer will be\n        // temporarily created within cache.batch with that string as its ID. If\n        // we then pass that same string as the removeOptimistic option, we can\n        // make cache.batch immediately remove the optimistic layer after\n        // running the updateCache function, triggering only one broadcast.\n        //\n        // However, the refetchQueries method accepts only true or false for its\n        // optimistic option (not string). We interpret true to mean a temporary\n        // optimistic layer should be created, to allow efficiently rolling back\n        // the effect of the updateCache function, which involves passing a\n        // string instead of true as the optimistic option to cache.batch, when\n        // refetchQueries receives optimistic: true.\n        //\n        // In other words, we are deliberately not supporting the use case of\n        // writing to an *existing* optimistic layer (using the refetchQueries\n        // updateCache function), since that would potentially interfere with\n        // other optimistic updates in progress. Instead, you can read/write\n        // only the root layer by passing optimistic: false to refetchQueries,\n        // or you can read/write a brand new optimistic layer that will be\n        // automatically removed by passing optimistic: true.\n        optimistic: (optimistic && removeOptimistic) || false,\n\n        // The removeOptimistic option can also be provided by itself, even if\n        // optimistic === false, to remove some previously-added optimistic\n        // layer safely and efficiently, like we do in markMutationResult.\n        //\n        // If an explicit removeOptimistic string is provided with optimistic:\n        // true, the removeOptimistic string will determine the ID of the\n        // temporary optimistic layer, in case that ever matters.\n        removeOptimistic,\n\n        onWatchUpdated(watch, diff, lastDiff) {\n          const oq =\n            watch.watcher instanceof QueryInfo && watch.watcher.observableQuery;\n\n          if (oq) {\n            if (onQueryUpdated) {\n              // Since we're about to handle this query now, remove it from\n              // includedQueriesById, in case it was added earlier because of\n              // options.include.\n              includedQueriesById.delete(oq.queryId);\n\n              let result: TResult | boolean | Promise<ApolloQueryResult<any>> =\n                onQueryUpdated(oq, diff, lastDiff);\n\n              if (result === true) {\n                // The onQueryUpdated function requested the default refetching\n                // behavior by returning true.\n                result = oq.refetch();\n              }\n\n              // Record the result in the results Map, as long as onQueryUpdated\n              // did not return false to skip/ignore this result.\n              if (result !== false) {\n                results.set(\n                  oq,\n                  result as InternalRefetchQueriesResult<TResult>\n                );\n              }\n\n              // Allow the default cache broadcast to happen, except when\n              // onQueryUpdated returns false.\n              return result;\n            }\n\n            if (onQueryUpdated !== null) {\n              // If we don't have an onQueryUpdated function, and onQueryUpdated\n              // was not disabled by passing null, make sure this query is\n              // \"included\" like any other options.include-specified query.\n              includedQueriesById.set(oq.queryId, { oq, lastDiff, diff });\n            }\n          }\n        },\n      });\n    }\n\n    if (includedQueriesById.size) {\n      includedQueriesById.forEach(({ oq, lastDiff, diff }, queryId) => {\n        let result:\n          | TResult\n          | boolean\n          | Promise<ApolloQueryResult<any>>\n          | undefined;\n\n        // If onQueryUpdated is provided, we want to use it for all included\n        // queries, even the QueryOptions ones.\n        if (onQueryUpdated) {\n          if (!diff) {\n            const info = oq[\"queryInfo\"];\n            info.reset(); // Force info.getDiff() to read from cache.\n            diff = info.getDiff();\n          }\n          result = onQueryUpdated(oq, diff, lastDiff);\n        }\n\n        // Otherwise, we fall back to refetching.\n        if (!onQueryUpdated || result === true) {\n          result = oq.refetch();\n        }\n\n        if (result !== false) {\n          results.set(oq, result as InternalRefetchQueriesResult<TResult>);\n        }\n\n        if (queryId.indexOf(\"legacyOneTimeQuery\") >= 0) {\n          this.stopQueryNoBroadcast(queryId);\n        }\n      });\n    }\n\n    if (removeOptimistic) {\n      // In case no updateCache callback was provided (so cache.batch was not\n      // called above, and thus did not already remove the optimistic layer),\n      // remove it here. Since this is a no-op when the layer has already been\n      // removed, we do it even if we called cache.batch above, since it's\n      // possible this.cache is an instance of some ApolloCache subclass other\n      // than InMemoryCache, and does not fully support the removeOptimistic\n      // option for cache.batch.\n      this.cache.removeOptimistic(removeOptimistic);\n    }\n\n    return results;\n  }\n\n  private fetchQueryByPolicy<TData, TVars extends OperationVariables>(\n    queryInfo: QueryInfo,\n    {\n      query,\n      variables,\n      fetchPolicy,\n      refetchWritePolicy,\n      errorPolicy,\n      returnPartialData,\n      context,\n      notifyOnNetworkStatusChange,\n    }: WatchQueryOptions<TVars, TData>,\n    // The initial networkStatus for this fetch, most often\n    // NetworkStatus.loading, but also possibly fetchMore, poll, refetch,\n    // or setVariables.\n    networkStatus: NetworkStatus\n  ): SourcesAndInfo<TData> {\n    const oldNetworkStatus = queryInfo.networkStatus;\n\n    queryInfo.init({\n      document: query,\n      variables,\n      networkStatus,\n    });\n\n    const readCache = () => queryInfo.getDiff();\n\n    const resultsFromCache = (\n      diff: Cache.DiffResult<TData>,\n      networkStatus = queryInfo.networkStatus || NetworkStatus.loading\n    ) => {\n      const data = diff.result;\n\n      if (__DEV__ && !returnPartialData && !equal(data, {})) {\n        logMissingFieldErrors(diff.missing);\n      }\n\n      const fromData = (data: TData | undefined) =>\n        Observable.of({\n          data,\n          loading: isNetworkRequestInFlight(networkStatus),\n          networkStatus,\n          ...(diff.complete ? null : { partial: true }),\n        } as ApolloQueryResult<TData>);\n\n      if (data && this.getDocumentInfo(query).hasForcedResolvers) {\n        return this.localState\n          .runResolvers({\n            document: query,\n            remoteResult: { data },\n            context,\n            variables,\n            onlyRunForcedResolvers: true,\n          })\n          .then((resolved) => fromData(resolved.data || void 0));\n      }\n\n      // Resolves https://github.com/apollographql/apollo-client/issues/10317.\n      // If errorPolicy is 'none' and notifyOnNetworkStatusChange is true,\n      // data was incorrectly returned from the cache on refetch:\n      // if diff.missing exists, we should not return cache data.\n      if (\n        errorPolicy === \"none\" &&\n        networkStatus === NetworkStatus.refetch &&\n        Array.isArray(diff.missing)\n      ) {\n        return fromData(void 0);\n      }\n\n      return fromData(data);\n    };\n\n    const cacheWriteBehavior =\n      fetchPolicy === \"no-cache\" ? CacheWriteBehavior.FORBID\n        // Watched queries must opt into overwriting existing data on refetch,\n        // by passing refetchWritePolicy: \"overwrite\" in their WatchQueryOptions.\n      : (\n        networkStatus === NetworkStatus.refetch &&\n        refetchWritePolicy !== \"merge\"\n      ) ?\n        CacheWriteBehavior.OVERWRITE\n      : CacheWriteBehavior.MERGE;\n\n    const resultsFromLink = () =>\n      this.getResultsFromLink<TData, TVars>(queryInfo, cacheWriteBehavior, {\n        query,\n        variables,\n        context,\n        fetchPolicy,\n        errorPolicy,\n      });\n\n    const shouldNotify =\n      notifyOnNetworkStatusChange &&\n      typeof oldNetworkStatus === \"number\" &&\n      oldNetworkStatus !== networkStatus &&\n      isNetworkRequestInFlight(networkStatus);\n\n    switch (fetchPolicy) {\n      default:\n      case \"cache-first\": {\n        const diff = readCache();\n\n        if (diff.complete) {\n          return {\n            fromLink: false,\n            sources: [resultsFromCache(diff, queryInfo.markReady())],\n          };\n        }\n\n        if (returnPartialData || shouldNotify) {\n          return {\n            fromLink: true,\n            sources: [resultsFromCache(diff), resultsFromLink()],\n          };\n        }\n\n        return { fromLink: true, sources: [resultsFromLink()] };\n      }\n\n      case \"cache-and-network\": {\n        const diff = readCache();\n\n        if (diff.complete || returnPartialData || shouldNotify) {\n          return {\n            fromLink: true,\n            sources: [resultsFromCache(diff), resultsFromLink()],\n          };\n        }\n\n        return { fromLink: true, sources: [resultsFromLink()] };\n      }\n\n      case \"cache-only\":\n        return {\n          fromLink: false,\n          sources: [resultsFromCache(readCache(), queryInfo.markReady())],\n        };\n\n      case \"network-only\":\n        if (shouldNotify) {\n          return {\n            fromLink: true,\n            sources: [resultsFromCache(readCache()), resultsFromLink()],\n          };\n        }\n\n        return { fromLink: true, sources: [resultsFromLink()] };\n\n      case \"no-cache\":\n        if (shouldNotify) {\n          return {\n            fromLink: true,\n            // Note that queryInfo.getDiff() for no-cache queries does not call\n            // cache.diff, but instead returns a { complete: false } stub result\n            // when there is no queryInfo.diff already defined.\n            sources: [resultsFromCache(queryInfo.getDiff()), resultsFromLink()],\n          };\n        }\n\n        return { fromLink: true, sources: [resultsFromLink()] };\n\n      case \"standby\":\n        return { fromLink: false, sources: [] };\n    }\n  }\n\n  private getQuery(queryId: string): QueryInfo {\n    if (queryId && !this.queries.has(queryId)) {\n      this.queries.set(queryId, new QueryInfo(this, queryId));\n    }\n    return this.queries.get(queryId)!;\n  }\n\n  private prepareContext(context = {}) {\n    const newContext = this.localState.prepareContext(context);\n    return {\n      ...this.defaultContext,\n      ...newContext,\n      clientAwareness: this.clientAwareness,\n    };\n  }\n}\n\n// Return types used by fetchQueryByPolicy and other private methods above.\ninterface FetchConcastInfo {\n  // Metadata properties that can be returned in addition to the Concast.\n  fromLink: boolean;\n}\ninterface SourcesAndInfo<TData> extends FetchConcastInfo {\n  sources: ConcastSourcesArray<ApolloQueryResult<TData>>;\n}\ninterface ConcastAndInfo<TData> extends FetchConcastInfo {\n  concast: Concast<ApolloQueryResult<TData>>;\n}\n", "import { invariant, newInvariantError } from \"../utilities/globals/index.js\";\n\nimport type { ExecutionResult, DocumentNode } from \"graphql\";\n\nimport type { FetchResult, GraphQLRequest } from \"../link/core/index.js\";\nimport { ApolloLink, execute } from \"../link/core/index.js\";\nimport type { ApolloCache, DataProxy, Reference } from \"../cache/index.js\";\nimport type { DocumentTransform, Observable } from \"../utilities/index.js\";\nimport { version } from \"../version.js\";\nimport type { UriFunction } from \"../link/http/index.js\";\nimport { HttpLink } from \"../link/http/index.js\";\n\nimport { QueryManager } from \"./QueryManager.js\";\nimport type { ObservableQuery } from \"./ObservableQuery.js\";\n\nimport type {\n  ApolloQueryResult,\n  DefaultContext,\n  OperationVariables,\n  Resolvers,\n  RefetchQueriesOptions,\n  RefetchQueriesResult,\n  InternalRefetchQueriesResult,\n  RefetchQueriesInclude,\n} from \"./types.js\";\n\nimport type {\n  QueryOptions,\n  WatchQueryOptions,\n  MutationOptions,\n  SubscriptionOptions,\n  WatchQueryFetchPolicy,\n} from \"./watchQueryOptions.js\";\n\nimport type { FragmentMatcher } from \"./LocalState.js\";\nimport { LocalState } from \"./LocalState.js\";\n\nexport interface DefaultOptions {\n  watchQuery?: Partial<WatchQueryOptions<any, any>>;\n  query?: Partial<QueryOptions<any, any>>;\n  mutate?: Partial<MutationOptions<any, any, any>>;\n}\n\nlet hasSuggestedDevtools = false;\n\nexport interface ApolloClientOptions<TCacheShape> {\n  /**\n   * The URI of the GraphQL endpoint that Apollo Client will communicate with.\n   *\n   * One of `uri` or `link` is **required**. If you provide both, `link` takes precedence.\n   */\n  uri?: string | UriFunction;\n  credentials?: string;\n  /**\n   * An object representing headers to include in every HTTP request, such as `{Authorization: 'Bearer 1234'}`\n   *\n   * This value will be ignored when using the `link` option.\n   */\n  headers?: Record<string, string>;\n  /**\n   * You can provide an `ApolloLink` instance to serve as Apollo Client's network layer. For more information, see [Advanced HTTP networking](https://www.apollographql.com/docs/react/networking/advanced-http-networking/).\n   *\n   * One of `uri` or `link` is **required**. If you provide both, `link` takes precedence.\n   */\n  link?: ApolloLink;\n  /**\n   * The cache that Apollo Client should use to store query results locally. The recommended cache is `InMemoryCache`, which is provided by the `@apollo/client` package.\n   *\n   * For more information, see [Configuring the cache](https://www.apollographql.com/docs/react/caching/cache-configuration/).\n   */\n  cache: ApolloCache<TCacheShape>;\n  /**\n   * The time interval (in milliseconds) before Apollo Client force-fetches queries after a server-side render.\n   *\n   * @defaultValue `0` (no delay)\n   */\n  ssrForceFetchDelay?: number;\n  /**\n   * When using Apollo Client for [server-side rendering](https://www.apollographql.com/docs/react/performance/server-side-rendering/), set this to `true` so that the [`getDataFromTree` function](../react/ssr/#getdatafromtree) can work effectively.\n   *\n   * @defaultValue `false`\n   */\n  ssrMode?: boolean;\n  /**\n   * If `true`, the [Apollo Client Devtools](https://www.apollographql.com/docs/react/development-testing/developer-tooling/#apollo-client-devtools) browser extension can connect to Apollo Client.\n   *\n   * The default value is `false` in production and `true` in development (if there is a `window` object).\n   */\n  connectToDevTools?: boolean;\n  /**\n   * If `false`, Apollo Client sends every created query to the server, even if a _completely_ identical query (identical in terms of query string, variable values, and operationName) is already in flight.\n   *\n   * @defaultValue `true`\n   */\n  queryDeduplication?: boolean;\n  /**\n   * Provide this object to set application-wide default values for options you can provide to the `watchQuery`, `query`, and `mutate` functions. See below for an example object.\n   *\n   * See this [example object](https://www.apollographql.com/docs/react/api/core/ApolloClient#example-defaultoptions-object).\n   */\n  defaultOptions?: DefaultOptions;\n  defaultContext?: Partial<DefaultContext>;\n  /**\n   * If `true`, Apollo Client will assume results read from the cache are never mutated by application code, which enables substantial performance optimizations.\n   *\n   * @defaultValue `false`\n   */\n  assumeImmutableResults?: boolean;\n  resolvers?: Resolvers | Resolvers[];\n  typeDefs?: string | string[] | DocumentNode | DocumentNode[];\n  fragmentMatcher?: FragmentMatcher;\n  /**\n   * A custom name (e.g., `iOS`) that identifies this particular client among your set of clients. Apollo Server and Apollo Studio use this property as part of the [client awareness](https://www.apollographql.com/docs/apollo-server/monitoring/metrics#identifying-distinct-clients) feature.\n   */\n  name?: string;\n  /**\n   * A custom version that identifies the current version of this particular client (e.g., `1.2`). Apollo Server and Apollo Studio use this property as part of the [client awareness](https://www.apollographql.com/docs/apollo-server/monitoring/metrics#identifying-distinct-clients) feature.\n   *\n   * This is **not** the version of Apollo Client that you are using, but rather any version string that helps you differentiate between versions of your client.\n   */\n  version?: string;\n  documentTransform?: DocumentTransform;\n}\n\n// Though mergeOptions now resides in @apollo/client/utilities, it was\n// previously declared and exported from this module, and then reexported from\n// @apollo/client/core. Since we need to preserve that API anyway, the easiest\n// solution is to reexport mergeOptions where it was previously declared (here).\nimport { mergeOptions } from \"../utilities/index.js\";\nimport { getApolloClientMemoryInternals } from \"../utilities/caching/getMemoryInternals.js\";\nimport type {\n  WatchFragmentOptions,\n  WatchFragmentResult,\n} from \"../cache/core/cache.js\";\nexport { mergeOptions };\n\n/**\n * This is the primary Apollo Client class. It is used to send GraphQL documents (i.e. queries\n * and mutations) to a GraphQL spec-compliant server over an `ApolloLink` instance,\n * receive results from the server and cache the results in a store. It also delivers updates\n * to GraphQL queries through `Observable` instances.\n */\nexport class ApolloClient<TCacheShape> implements DataProxy {\n  public link: ApolloLink;\n  public cache: ApolloCache<TCacheShape>;\n  public disableNetworkFetches: boolean;\n  public version: string;\n  public queryDeduplication: boolean;\n  public defaultOptions: DefaultOptions;\n  public readonly typeDefs: ApolloClientOptions<TCacheShape>[\"typeDefs\"];\n\n  private queryManager: QueryManager<TCacheShape>;\n  private devToolsHookCb?: Function;\n  private resetStoreCallbacks: Array<() => Promise<any>> = [];\n  private clearStoreCallbacks: Array<() => Promise<any>> = [];\n  private localState: LocalState<TCacheShape>;\n\n  /**\n   * Constructs an instance of `ApolloClient`.\n   *\n   * @example\n   * ```js\n   * import { ApolloClient, InMemoryCache } from '@apollo/client';\n   *\n   * const cache = new InMemoryCache();\n   *\n   * const client = new ApolloClient({\n   *   // Provide required constructor fields\n   *   cache: cache,\n   *   uri: 'http://localhost:4000/',\n   *\n   *   // Provide some optional constructor fields\n   *   name: 'react-web-client',\n   *   version: '1.3',\n   *   queryDeduplication: false,\n   *   defaultOptions: {\n   *     watchQuery: {\n   *       fetchPolicy: 'cache-and-network',\n   *     },\n   *   },\n   * });\n   * ```\n   */\n  constructor(options: ApolloClientOptions<TCacheShape>) {\n    if (!options.cache) {\n      throw newInvariantError(\n        \"To initialize Apollo Client, you must specify a 'cache' property \" +\n          \"in the options object. \\n\" +\n          \"For more information, please visit: https://go.apollo.dev/c/docs\"\n      );\n    }\n\n    const {\n      uri,\n      credentials,\n      headers,\n      cache,\n      documentTransform,\n      ssrMode = false,\n      ssrForceFetchDelay = 0,\n      // Expose the client instance as window.__APOLLO_CLIENT__ and call\n      // onBroadcast in queryManager.broadcastQueries to enable browser\n      // devtools, but disable them by default in production.\n      connectToDevTools = typeof window === \"object\" &&\n        !(window as any).__APOLLO_CLIENT__ &&\n        __DEV__,\n      queryDeduplication = true,\n      defaultOptions,\n      defaultContext,\n      assumeImmutableResults = cache.assumeImmutableResults,\n      resolvers,\n      typeDefs,\n      fragmentMatcher,\n      name: clientAwarenessName,\n      version: clientAwarenessVersion,\n    } = options;\n\n    let { link } = options;\n\n    if (!link) {\n      link =\n        uri ? new HttpLink({ uri, credentials, headers }) : ApolloLink.empty();\n    }\n\n    this.link = link;\n    this.cache = cache;\n    this.disableNetworkFetches = ssrMode || ssrForceFetchDelay > 0;\n    this.queryDeduplication = queryDeduplication;\n    this.defaultOptions = defaultOptions || Object.create(null);\n    this.typeDefs = typeDefs;\n\n    if (ssrForceFetchDelay) {\n      setTimeout(\n        () => (this.disableNetworkFetches = false),\n        ssrForceFetchDelay\n      );\n    }\n\n    this.watchQuery = this.watchQuery.bind(this);\n    this.query = this.query.bind(this);\n    this.mutate = this.mutate.bind(this);\n    this.watchFragment = this.watchFragment.bind(this);\n    this.resetStore = this.resetStore.bind(this);\n    this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this);\n\n    this.version = version;\n\n    this.localState = new LocalState({\n      cache,\n      client: this,\n      resolvers,\n      fragmentMatcher,\n    });\n\n    this.queryManager = new QueryManager({\n      cache: this.cache,\n      link: this.link,\n      defaultOptions: this.defaultOptions,\n      defaultContext,\n      documentTransform,\n      queryDeduplication,\n      ssrMode,\n      clientAwareness: {\n        name: clientAwarenessName!,\n        version: clientAwarenessVersion!,\n      },\n      localState: this.localState,\n      assumeImmutableResults,\n      onBroadcast:\n        connectToDevTools ?\n          () => {\n            if (this.devToolsHookCb) {\n              this.devToolsHookCb({\n                action: {},\n                state: {\n                  queries: this.queryManager.getQueryStore(),\n                  mutations: this.queryManager.mutationStore || {},\n                },\n                dataWithOptimisticResults: this.cache.extract(true),\n              });\n            }\n          }\n        : void 0,\n    });\n\n    if (connectToDevTools) this.connectToDevTools();\n  }\n\n  private connectToDevTools() {\n    if (typeof window === \"object\") {\n      type DevToolsConnector = {\n        push(client: ApolloClient<any>): void;\n      };\n      const windowWithDevTools = window as Window & {\n        [devtoolsSymbol]?: DevToolsConnector;\n        __APOLLO_CLIENT__?: ApolloClient<any>;\n      };\n      const devtoolsSymbol = Symbol.for(\"apollo.devtools\");\n      (windowWithDevTools[devtoolsSymbol] =\n        windowWithDevTools[devtoolsSymbol] || ([] as DevToolsConnector)).push(\n        this\n      );\n      windowWithDevTools.__APOLLO_CLIENT__ = this;\n    }\n\n    /**\n     * Suggest installing the devtools for developers who don't have them\n     */\n    if (!hasSuggestedDevtools && __DEV__) {\n      hasSuggestedDevtools = true;\n      setTimeout(() => {\n        if (\n          typeof window !== \"undefined\" &&\n          window.document &&\n          window.top === window.self &&\n          !(window as any).__APOLLO_DEVTOOLS_GLOBAL_HOOK__\n        ) {\n          const nav = window.navigator;\n          const ua = nav && nav.userAgent;\n          let url: string | undefined;\n          if (typeof ua === \"string\") {\n            if (ua.indexOf(\"Chrome/\") > -1) {\n              url =\n                \"https://chrome.google.com/webstore/detail/\" +\n                \"apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm\";\n            } else if (ua.indexOf(\"Firefox/\") > -1) {\n              url =\n                \"https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/\";\n            }\n          }\n          if (url) {\n            invariant.log(\n              \"Download the Apollo DevTools for a better development \" +\n                \"experience: %s\",\n              url\n            );\n          }\n        }\n      }, 10000);\n    }\n  }\n\n  /**\n   * The `DocumentTransform` used to modify GraphQL documents before a request\n   * is made. If a custom `DocumentTransform` is not provided, this will be the\n   * default document transform.\n   */\n  get documentTransform() {\n    return this.queryManager.documentTransform;\n  }\n\n  /**\n   * Call this method to terminate any active client processes, making it safe\n   * to dispose of this `ApolloClient` instance.\n   */\n  public stop() {\n    this.queryManager.stop();\n  }\n\n  /**\n   * This watches the cache store of the query according to the options specified and\n   * returns an `ObservableQuery`. We can subscribe to this `ObservableQuery` and\n   * receive updated results through an observer when the cache store changes.\n   *\n   * Note that this method is not an implementation of GraphQL subscriptions. Rather,\n   * it uses Apollo's store in order to reactively deliver updates to your query results.\n   *\n   * For example, suppose you call watchQuery on a GraphQL query that fetches a person's\n   * first and last name and this person has a particular object identifier, provided by\n   * dataIdFromObject. Later, a different query fetches that same person's\n   * first and last name and the first name has now changed. Then, any observers associated\n   * with the results of the first query will be updated with a new result object.\n   *\n   * Note that if the cache does not change, the subscriber will *not* be notified.\n   *\n   * See [here](https://medium.com/apollo-stack/the-concepts-of-graphql-bc68bd819be3#.3mb0cbcmc) for\n   * a description of store reactivity.\n   */\n  public watchQuery<\n    T = any,\n    TVariables extends OperationVariables = OperationVariables,\n  >(options: WatchQueryOptions<TVariables, T>): ObservableQuery<T, TVariables> {\n    if (this.defaultOptions.watchQuery) {\n      options = mergeOptions(this.defaultOptions.watchQuery, options);\n    }\n\n    // XXX Overwriting options is probably not the best way to do this long term...\n    if (\n      this.disableNetworkFetches &&\n      (options.fetchPolicy === \"network-only\" ||\n        options.fetchPolicy === \"cache-and-network\")\n    ) {\n      options = { ...options, fetchPolicy: \"cache-first\" };\n    }\n\n    return this.queryManager.watchQuery<T, TVariables>(options);\n  }\n\n  /**\n   * This resolves a single query according to the options specified and\n   * returns a `Promise` which is either resolved with the resulting data\n   * or rejected with an error.\n   *\n   * @param options - An object of type `QueryOptions` that allows us to\n   * describe how this query should be treated e.g. whether it should hit the\n   * server at all or just resolve from the cache, etc.\n   */\n  public query<\n    T = any,\n    TVariables extends OperationVariables = OperationVariables,\n  >(options: QueryOptions<TVariables, T>): Promise<ApolloQueryResult<T>> {\n    if (this.defaultOptions.query) {\n      options = mergeOptions(this.defaultOptions.query, options);\n    }\n\n    invariant(\n      (options.fetchPolicy as WatchQueryFetchPolicy) !== \"cache-and-network\",\n      \"The cache-and-network fetchPolicy does not work with client.query, because \" +\n        \"client.query can only return a single result. Please use client.watchQuery \" +\n        \"to receive multiple results from the cache and the network, or consider \" +\n        \"using a different fetchPolicy, such as cache-first or network-only.\"\n    );\n\n    if (this.disableNetworkFetches && options.fetchPolicy === \"network-only\") {\n      options = { ...options, fetchPolicy: \"cache-first\" };\n    }\n\n    return this.queryManager.query<T, TVariables>(options);\n  }\n\n  /**\n   * This resolves a single mutation according to the options specified and returns a\n   * Promise which is either resolved with the resulting data or rejected with an\n   * error. In some cases both `data` and `errors` might be undefined, for example\n   * when `errorPolicy` is set to `'ignore'`.\n   *\n   * It takes options as an object with the following keys and values:\n   */\n  public mutate<\n    TData = any,\n    TVariables extends OperationVariables = OperationVariables,\n    TContext extends Record<string, any> = DefaultContext,\n    TCache extends ApolloCache<any> = ApolloCache<any>,\n  >(\n    options: MutationOptions<TData, TVariables, TContext>\n  ): Promise<FetchResult<TData>> {\n    if (this.defaultOptions.mutate) {\n      options = mergeOptions(this.defaultOptions.mutate, options);\n    }\n    return this.queryManager.mutate<TData, TVariables, TContext, TCache>(\n      options\n    );\n  }\n\n  /**\n   * This subscribes to a graphql subscription according to the options specified and returns an\n   * `Observable` which either emits received data or an error.\n   */\n  public subscribe<\n    T = any,\n    TVariables extends OperationVariables = OperationVariables,\n  >(options: SubscriptionOptions<TVariables, T>): Observable<FetchResult<T>> {\n    return this.queryManager.startGraphQLSubscription<T>(options);\n  }\n\n  /**\n   * Tries to read some data from the store in the shape of the provided\n   * GraphQL query without making a network request. This method will start at\n   * the root query. To start at a specific id returned by `dataIdFromObject`\n   * use `readFragment`.\n   *\n   * @param optimistic - Set to `true` to allow `readQuery` to return\n   * optimistic results. Is `false` by default.\n   */\n  public readQuery<T = any, TVariables = OperationVariables>(\n    options: DataProxy.Query<TVariables, T>,\n    optimistic: boolean = false\n  ): T | null {\n    return this.cache.readQuery<T, TVariables>(options, optimistic);\n  }\n\n  /**\n   * Watches the cache store of the fragment according to the options specified\n   * and returns an `Observable`. We can subscribe to this\n   * `Observable` and receive updated results through an\n   * observer when the cache store changes.\n   *\n   * You must pass in a GraphQL document with a single fragment or a document\n   * with multiple fragments that represent what you are reading. If you pass\n   * in a document with multiple fragments then you must also specify a\n   * `fragmentName`.\n   *\n   * @since 3.10.0\n   * @param options - An object of type `WatchFragmentOptions` that allows\n   * the cache to identify the fragment and optionally specify whether to react\n   * to optimistic updates.\n   */\n\n  public watchFragment<\n    TFragmentData = unknown,\n    TVariables = OperationVariables,\n  >(\n    options: WatchFragmentOptions<TFragmentData, TVariables>\n  ): Observable<WatchFragmentResult<TFragmentData>> {\n    return this.cache.watchFragment<TFragmentData, TVariables>(options);\n  }\n\n  /**\n   * Tries to read some data from the store in the shape of the provided\n   * GraphQL fragment without making a network request. This method will read a\n   * GraphQL fragment from any arbitrary id that is currently cached, unlike\n   * `readQuery` which will only read from the root query.\n   *\n   * You must pass in a GraphQL document with a single fragment or a document\n   * with multiple fragments that represent what you are reading. If you pass\n   * in a document with multiple fragments then you must also specify a\n   * `fragmentName`.\n   *\n   * @param optimistic - Set to `true` to allow `readFragment` to return\n   * optimistic results. Is `false` by default.\n   */\n  public readFragment<T = any, TVariables = OperationVariables>(\n    options: DataProxy.Fragment<TVariables, T>,\n    optimistic: boolean = false\n  ): T | null {\n    return this.cache.readFragment<T, TVariables>(options, optimistic);\n  }\n\n  /**\n   * Writes some data in the shape of the provided GraphQL query directly to\n   * the store. This method will start at the root query. To start at a\n   * specific id returned by `dataIdFromObject` then use `writeFragment`.\n   */\n  public writeQuery<TData = any, TVariables = OperationVariables>(\n    options: DataProxy.WriteQueryOptions<TData, TVariables>\n  ): Reference | undefined {\n    const ref = this.cache.writeQuery<TData, TVariables>(options);\n\n    if (options.broadcast !== false) {\n      this.queryManager.broadcastQueries();\n    }\n\n    return ref;\n  }\n\n  /**\n   * Writes some data in the shape of the provided GraphQL fragment directly to\n   * the store. This method will write to a GraphQL fragment from any arbitrary\n   * id that is currently cached, unlike `writeQuery` which will only write\n   * from the root query.\n   *\n   * You must pass in a GraphQL document with a single fragment or a document\n   * with multiple fragments that represent what you are writing. If you pass\n   * in a document with multiple fragments then you must also specify a\n   * `fragmentName`.\n   */\n  public writeFragment<TData = any, TVariables = OperationVariables>(\n    options: DataProxy.WriteFragmentOptions<TData, TVariables>\n  ): Reference | undefined {\n    const ref = this.cache.writeFragment<TData, TVariables>(options);\n\n    if (options.broadcast !== false) {\n      this.queryManager.broadcastQueries();\n    }\n\n    return ref;\n  }\n\n  public __actionHookForDevTools(cb: () => any) {\n    this.devToolsHookCb = cb;\n  }\n\n  public __requestRaw(payload: GraphQLRequest): Observable<ExecutionResult> {\n    return execute(this.link, payload);\n  }\n\n  /**\n   * Resets your entire store by clearing out your cache and then re-executing\n   * all of your active queries. This makes it so that you may guarantee that\n   * there is no data left in your store from a time before you called this\n   * method.\n   *\n   * `resetStore()` is useful when your user just logged out. You’ve removed the\n   * user session, and you now want to make sure that any references to data you\n   * might have fetched while the user session was active is gone.\n   *\n   * It is important to remember that `resetStore()` *will* refetch any active\n   * queries. This means that any components that might be mounted will execute\n   * their queries again using your network interface. If you do not want to\n   * re-execute any queries then you should make sure to stop watching any\n   * active queries.\n   */\n  public resetStore(): Promise<ApolloQueryResult<any>[] | null> {\n    return Promise.resolve()\n      .then(() =>\n        this.queryManager.clearStore({\n          discardWatches: false,\n        })\n      )\n      .then(() => Promise.all(this.resetStoreCallbacks.map((fn) => fn())))\n      .then(() => this.reFetchObservableQueries());\n  }\n\n  /**\n   * Remove all data from the store. Unlike `resetStore`, `clearStore` will\n   * not refetch any active queries.\n   */\n  public clearStore(): Promise<any[]> {\n    return Promise.resolve()\n      .then(() =>\n        this.queryManager.clearStore({\n          discardWatches: true,\n        })\n      )\n      .then(() => Promise.all(this.clearStoreCallbacks.map((fn) => fn())));\n  }\n\n  /**\n   * Allows callbacks to be registered that are executed when the store is\n   * reset. `onResetStore` returns an unsubscribe function that can be used\n   * to remove registered callbacks.\n   */\n  public onResetStore(cb: () => Promise<any>): () => void {\n    this.resetStoreCallbacks.push(cb);\n    return () => {\n      this.resetStoreCallbacks = this.resetStoreCallbacks.filter(\n        (c) => c !== cb\n      );\n    };\n  }\n\n  /**\n   * Allows callbacks to be registered that are executed when the store is\n   * cleared. `onClearStore` returns an unsubscribe function that can be used\n   * to remove registered callbacks.\n   */\n  public onClearStore(cb: () => Promise<any>): () => void {\n    this.clearStoreCallbacks.push(cb);\n    return () => {\n      this.clearStoreCallbacks = this.clearStoreCallbacks.filter(\n        (c) => c !== cb\n      );\n    };\n  }\n\n  /**\n   * Refetches all of your active queries.\n   *\n   * `reFetchObservableQueries()` is useful if you want to bring the client back to proper state in case of a network outage\n   *\n   * It is important to remember that `reFetchObservableQueries()` *will* refetch any active\n   * queries. This means that any components that might be mounted will execute\n   * their queries again using your network interface. If you do not want to\n   * re-execute any queries then you should make sure to stop watching any\n   * active queries.\n   * Takes optional parameter `includeStandby` which will include queries in standby-mode when refetching.\n   */\n  public reFetchObservableQueries(\n    includeStandby?: boolean\n  ): Promise<ApolloQueryResult<any>[]> {\n    return this.queryManager.reFetchObservableQueries(includeStandby);\n  }\n\n  /**\n   * Refetches specified active queries. Similar to \"reFetchObservableQueries()\" but with a specific list of queries.\n   *\n   * `refetchQueries()` is useful for use cases to imperatively refresh a selection of queries.\n   *\n   * It is important to remember that `refetchQueries()` *will* refetch specified active\n   * queries. This means that any components that might be mounted will execute\n   * their queries again using your network interface. If you do not want to\n   * re-execute any queries then you should make sure to stop watching any\n   * active queries.\n   */\n  public refetchQueries<\n    TCache extends ApolloCache<any> = ApolloCache<TCacheShape>,\n    TResult = Promise<ApolloQueryResult<any>>,\n  >(\n    options: RefetchQueriesOptions<TCache, TResult>\n  ): RefetchQueriesResult<TResult> {\n    const map = this.queryManager.refetchQueries(\n      options as RefetchQueriesOptions<ApolloCache<TCacheShape>, TResult>\n    );\n    const queries: ObservableQuery<any>[] = [];\n    const results: InternalRefetchQueriesResult<TResult>[] = [];\n\n    map.forEach((result, obsQuery) => {\n      queries.push(obsQuery);\n      results.push(result);\n    });\n\n    const result = Promise.all<TResult>(\n      results as TResult[]\n    ) as RefetchQueriesResult<TResult>;\n\n    // In case you need the raw results immediately, without awaiting\n    // Promise.all(results):\n    result.queries = queries;\n    result.results = results;\n\n    // If you decide to ignore the result Promise because you're using\n    // result.queries and result.results instead, you shouldn't have to worry\n    // about preventing uncaught rejections for the Promise.all result.\n    result.catch((error) => {\n      invariant.debug(\n        `In client.refetchQueries, Promise.all promise rejected with error %o`,\n        error\n      );\n    });\n\n    return result;\n  }\n\n  /**\n   * Get all currently active `ObservableQuery` objects, in a `Map` keyed by\n   * query ID strings.\n   *\n   * An \"active\" query is one that has observers and a `fetchPolicy` other than\n   * \"standby\" or \"cache-only\".\n   *\n   * You can include all `ObservableQuery` objects (including the inactive ones)\n   * by passing \"all\" instead of \"active\", or you can include just a subset of\n   * active queries by passing an array of query names or DocumentNode objects.\n   */\n  public getObservableQueries(\n    include: RefetchQueriesInclude = \"active\"\n  ): Map<string, ObservableQuery<any>> {\n    return this.queryManager.getObservableQueries(include);\n  }\n\n  /**\n   * Exposes the cache's complete state, in a serializable format for later restoration.\n   */\n  public extract(optimistic?: boolean): TCacheShape {\n    return this.cache.extract(optimistic);\n  }\n\n  /**\n   * Replaces existing state in the cache (if any) with the values expressed by\n   * `serializedState`.\n   *\n   * Called when hydrating a cache (server side rendering, or offline storage),\n   * and also (potentially) during hot reloads.\n   */\n  public restore(serializedState: TCacheShape): ApolloCache<TCacheShape> {\n    return this.cache.restore(serializedState);\n  }\n\n  /**\n   * Add additional local resolvers.\n   */\n  public addResolvers(resolvers: Resolvers | Resolvers[]) {\n    this.localState.addResolvers(resolvers);\n  }\n\n  /**\n   * Set (override existing) local resolvers.\n   */\n  public setResolvers(resolvers: Resolvers | Resolvers[]) {\n    this.localState.setResolvers(resolvers);\n  }\n\n  /**\n   * Get all registered local resolvers.\n   */\n  public getResolvers() {\n    return this.localState.getResolvers();\n  }\n\n  /**\n   * Set a custom local state fragment matcher.\n   */\n  public setLocalStateFragmentMatcher(fragmentMatcher: FragmentMatcher) {\n    this.localState.setFragmentMatcher(fragmentMatcher);\n  }\n\n  /**\n   * Define a new ApolloLink (or link chain) that Apollo Client will use.\n   */\n  public setLink(newLink: ApolloLink) {\n    this.link = this.queryManager.link = newLink;\n  }\n\n  public get defaultContext() {\n    return this.queryManager.defaultContext;\n  }\n\n  /**\n   * @experimental\n   * This is not a stable API - it is used in development builds to expose\n   * information to the DevTools.\n   * Use at your own risk!\n   * For more details, see [Memory Management](https://www.apollographql.com/docs/react/caching/memory-management/#measuring-cache-usage)\n   *\n   * @example\n   * ```ts\n   * console.log(client.getMemoryInternals())\n   * ```\n   * Logs output in the following JSON format:\n   * @example\n   * ```json\n   *{\n   *  limits:     {\n   *    parser: 1000,\n   *    canonicalStringify: 1000,\n   *    print: 2000,\n   *    'documentTransform.cache': 2000,\n   *    'queryManager.getDocumentInfo': 2000,\n   *    'PersistedQueryLink.persistedQueryHashes': 2000,\n   *    'fragmentRegistry.transform': 2000,\n   *    'fragmentRegistry.lookup': 1000,\n   *    'fragmentRegistry.findFragmentSpreads': 4000,\n   *    'cache.fragmentQueryDocuments': 1000,\n   *    'removeTypenameFromVariables.getVariableDefinitions': 2000,\n   *    'inMemoryCache.maybeBroadcastWatch': 5000,\n   *    'inMemoryCache.executeSelectionSet': 10000,\n   *    'inMemoryCache.executeSubSelectedArray': 5000\n   *  },\n   *  sizes: {\n   *    parser: 26,\n   *    canonicalStringify: 4,\n   *    print: 14,\n   *    addTypenameDocumentTransform: [\n   *      {\n   *        cache: 14,\n   *      },\n   *    ],\n   *    queryManager: {\n   *      getDocumentInfo: 14,\n   *      documentTransforms: [\n   *        {\n   *          cache: 14,\n   *        },\n   *        {\n   *          cache: 14,\n   *        },\n   *      ],\n   *    },\n   *    fragmentRegistry: {\n   *      findFragmentSpreads: 34,\n   *      lookup: 20,\n   *      transform: 14,\n   *    },\n   *    cache: {\n   *      fragmentQueryDocuments: 22,\n   *    },\n   *    inMemoryCache: {\n   *      executeSelectionSet: 4345,\n   *      executeSubSelectedArray: 1206,\n   *      maybeBroadcastWatch: 32,\n   *    },\n   *    links: [\n   *      {\n   *        PersistedQueryLink: {\n   *          persistedQueryHashes: 14,\n   *        },\n   *      },\n   *      {\n   *        removeTypenameFromVariables: {\n   *          getVariableDefinitions: 14,\n   *        },\n   *      },\n   *    ],\n   *  },\n   * }\n   *```\n   */\n  public getMemoryInternals?: typeof getApolloClientMemoryInternals;\n}\n\nif (__DEV__) {\n  ApolloClient.prototype.getMemoryInternals = getApolloClientMemoryInternals;\n}\n", "import { parse } from 'graphql';\n\nimport {\n  DocumentNode,\n  DefinitionNode,\n  Location,\n} from 'graphql/language/ast';\n\n// A map docString -> graphql document\nconst docCache = new Map<string, DocumentNode>();\n\n// A map fragmentName -> [normalized source]\nconst fragmentSourceMap = new Map<string, Set<string>>();\n\nlet printFragmentWarnings = true;\nlet experimentalFragmentVariables = false;\n\n// Strip insignificant whitespace\n// Note that this could do a lot more, such as reorder fields etc.\nfunction normalize(string: string) {\n  return string.replace(/[\\s,]+/g, ' ').trim();\n}\n\nfunction cacheKeyFromLoc(loc: Location) {\n  return normalize(loc.source.body.substring(loc.start, loc.end));\n}\n\n// Take a unstripped parsed document (query/mutation or even fragment), and\n// check all fragment definitions, checking for name->source uniqueness.\n// We also want to make sure only unique fragments exist in the document.\nfunction processFragments(ast: DocumentNode) {\n  const seenKeys = new Set<string>();\n  const definitions: DefinitionNode[] = [];\n\n  ast.definitions.forEach(fragmentDefinition => {\n    if (fragmentDefinition.kind === 'FragmentDefinition') {\n      var fragmentName = fragmentDefinition.name.value;\n      var sourceKey = cacheKeyFromLoc(fragmentDefinition.loc!);\n\n      // We know something about this fragment\n      let sourceKeySet = fragmentSourceMap.get(fragmentName)!;\n      if (sourceKeySet && !sourceKeySet.has(sourceKey)) {\n        // this is a problem because the app developer is trying to register another fragment with\n        // the same name as one previously registered. So, we tell them about it.\n        if (printFragmentWarnings) {\n          console.warn(\"Warning: fragment with name \" + fragmentName + \" already exists.\\n\"\n            + \"graphql-tag enforces all fragment names across your application to be unique; read more about\\n\"\n            + \"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names\");\n        }\n      } else if (!sourceKeySet) {\n        fragmentSourceMap.set(fragmentName, sourceKeySet = new Set);\n      }\n\n      sourceKeySet.add(sourceKey);\n\n      if (!seenKeys.has(sourceKey)) {\n        seenKeys.add(sourceKey);\n        definitions.push(fragmentDefinition);\n      }\n    } else {\n      definitions.push(fragmentDefinition);\n    }\n  });\n\n  return {\n    ...ast,\n    definitions,\n  };\n}\n\nfunction stripLoc(doc: DocumentNode) {\n  const workSet = new Set<Record<string, any>>(doc.definitions);\n\n  workSet.forEach(node => {\n    if (node.loc) delete node.loc;\n    Object.keys(node).forEach(key => {\n      const value = node[key];\n      if (value && typeof value === 'object') {\n        workSet.add(value);\n      }\n    });\n  });\n\n  const loc = doc.loc as Record<string, any>;\n  if (loc) {\n    delete loc.startToken;\n    delete loc.endToken;\n  }\n\n  return doc;\n}\n\nfunction parseDocument(source: string) {\n  var cacheKey = normalize(source);\n  if (!docCache.has(cacheKey)) {\n    const parsed = parse(source, {\n      experimentalFragmentVariables,\n      allowLegacyFragmentVariables: experimentalFragmentVariables,\n    } as any);\n    if (!parsed || parsed.kind !== 'Document') {\n      throw new Error('Not a valid GraphQL document.');\n    }\n    docCache.set(\n      cacheKey,\n      // check that all \"new\" fragments inside the documents are consistent with\n      // existing fragments of the same name\n      stripLoc(processFragments(parsed)),\n    );\n  }\n  return docCache.get(cacheKey)!;\n}\n\n// XXX This should eventually disallow arbitrary string interpolation, like Relay does\nexport function gql(\n  literals: string | readonly string[],\n  ...args: any[]\n) {\n\n  if (typeof literals === 'string') {\n    literals = [literals];\n  }\n\n  let result = literals[0];\n\n  args.forEach((arg, i) => {\n    if (arg && arg.kind === 'Document') {\n      result += arg.loc.source.body;\n    } else {\n      result += arg;\n    }\n    result += literals[i + 1];\n  });\n\n  return parseDocument(result);\n}\n\nexport function resetCaches() {\n  docCache.clear();\n  fragmentSourceMap.clear();\n}\n\nexport function disableFragmentWarnings() {\n  printFragmentWarnings = false;\n}\n\nexport function enableExperimentalFragmentVariables() {\n  experimentalFragmentVariables = true;\n}\n\nexport function disableExperimentalFragmentVariables() {\n  experimentalFragmentVariables = false;\n}\n\nconst extras = {\n  gql,\n  resetCaches,\n  disableFragmentWarnings,\n  enableExperimentalFragmentVariables,\n  disableExperimentalFragmentVariables,\n};\n\nexport namespace gql {\n  export const {\n    gql,\n    resetCaches,\n    disableFragmentWarnings,\n    enableExperimentalFragmentVariables,\n    disableExperimentalFragmentVariables,\n  } = extras;\n}\n\ngql.default = gql;\n\nexport default gql;\n", "/* Core */\n\nexport type { ApolloClientOptions, DefaultOptions } from \"./ApolloClient.js\";\nexport { ApolloClient, mergeOptions } from \"./ApolloClient.js\";\nexport type {\n  FetchMoreOptions,\n  UpdateQueryOptions,\n} from \"./ObservableQuery.js\";\nexport { ObservableQuery } from \"./ObservableQuery.js\";\nexport type {\n  QueryOptions,\n  WatchQueryOptions,\n  MutationOptions,\n  SubscriptionOptions,\n  FetchPolicy,\n  WatchQueryFetchPolicy,\n  MutationFetchPolicy,\n  RefetchWritePolicy,\n  ErrorPolicy,\n  FetchMoreQueryOptions,\n  SubscribeToMoreOptions,\n} from \"./watchQueryOptions.js\";\nexport { NetworkStatus, isNetworkRequestSettled } from \"./networkStatus.js\";\nexport * from \"./types.js\";\nexport type { Resolver, FragmentMatcher } from \"./LocalState.js\";\nexport { isApolloError, ApolloError } from \"../errors/index.js\";\n/* Cache */\n\nexport type {\n  // All the exports (types) from ../cache, minus cacheSlot,\n  // which we want to keep semi-private.\n  Transaction,\n  DataProxy,\n  InMemoryCacheConfig,\n  ReactiveVar,\n  TypePolicies,\n  TypePolicy,\n  FieldPolicy,\n  FieldReadFunction,\n  FieldMergeFunction,\n  FieldFunctionOptions,\n  PossibleTypesMap,\n  WatchFragmentOptions,\n  WatchFragmentResult,\n} from \"../cache/index.js\";\nexport {\n  Cache,\n  ApolloCache,\n  InMemoryCache,\n  MissingFieldError,\n  defaultDataIdFromObject,\n  makeVar,\n} from \"../cache/index.js\";\n\nexport * from \"../cache/inmemory/types.js\";\n\n/* Link */\n\nexport * from \"../link/core/index.js\";\nexport * from \"../link/http/index.js\";\nexport type { ServerError } from \"../link/utils/index.js\";\nexport {\n  fromError,\n  toPromise,\n  fromPromise,\n  throwServerError,\n} from \"../link/utils/index.js\";\n\n/* Utilities */\n\nexport type {\n  DocumentTransformCacheKey,\n  Observer,\n  ObservableSubscription,\n  Reference,\n  StoreObject,\n} from \"../utilities/index.js\";\nexport {\n  DocumentTransform,\n  Observable,\n  isReference,\n  makeReference,\n} from \"../utilities/index.js\";\n\n/* Supporting */\n\n// The verbosity of invariant.{log,warn,error} can be controlled globally\n// (for anyone using the same ts-invariant package) by passing \"log\",\n// \"warn\", \"error\", or \"silent\" to setVerbosity (\"log\" is the default).\n// Note that all invariant.* logging is hidden in production.\nimport { setVerbosity } from \"ts-invariant\";\nexport { setVerbosity as setLogVerbosity };\nsetVerbosity(__DEV__ ? \"log\" : \"silent\");\n\n// Note that importing `gql` by itself, then destructuring\n// additional properties separately before exporting, is intentional.\n// Due to the way the `graphql-tag` library is setup, certain bundlers\n// can't find the properties added to the exported `gql` function without\n// additional guidance (e.g. Rollup - see\n// https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module).\n// Instead of having people that are using bundlers with `@apollo/client` add\n// extra bundler config to help `graphql-tag` exports be found (which would be\n// awkward since they aren't importing `graphql-tag` themselves), this\n// workaround of pulling the extra properties off the `gql` function,\n// then re-exporting them separately, helps keeps bundlers happy without any\n// additional config changes.\nexport {\n  gql,\n  resetCaches,\n  disableFragmentWarnings,\n  enableExperimentalFragmentVariables,\n  disableExperimentalFragmentVariables,\n} from \"graphql-tag\";\n", "import * as React from \"rehackt\";\nimport type * as ReactTypes from \"react\";\nimport type { ApolloClient } from \"../../core/index.js\";\nimport { canUseSymbol } from \"../../utilities/index.js\";\nimport type { RenderPromises } from \"../ssr/index.js\";\nimport { invariant } from \"../../utilities/globals/index.js\";\n\nexport interface ApolloContextValue {\n  client?: ApolloClient<object>;\n  renderPromises?: RenderPromises;\n}\n\n// To make sure Apollo Client doesn't create more than one React context\n// (which can lead to problems like having an Apollo Client instance added\n// in one context, then attempting to retrieve it from another different\n// context), a single Apollo context is created and tracked in global state.\nconst contextKey =\n  canUseSymbol ? Symbol.for(\"__APOLLO_CONTEXT__\") : \"__APOLLO_CONTEXT__\";\n\nexport function getApolloContext(): ReactTypes.Context<ApolloContextValue> {\n  invariant(\n    \"createContext\" in React,\n    \"Invoking `getApolloContext` in an environment where `React.createContext` is not available.\\n\" +\n      \"The Apollo Client functionality you are trying to use is only available in React Client Components.\\n\" +\n      'Please make sure to add \"use client\" at the top of your file.\\n' +\n      // TODO: change to React documentation once React documentation contains information about Client Components\n      \"For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components\"\n  );\n\n  let context = (React.createContext as any)[\n    contextKey\n  ] as React.Context<ApolloContextValue>;\n  if (!context) {\n    Object.defineProperty(React.createContext, contextKey, {\n      value: (context = React.createContext<ApolloContextValue>({})),\n      enumerable: false,\n      writable: false,\n      configurable: true,\n    });\n    context.displayName = \"ApolloContext\";\n  }\n  return context;\n}\n\n/**\n * @deprecated This function has no \"resetting\" effect since Apollo Client 3.4.12,\n * and will be removed in the next major version of Apollo Client.\n * If you want to get the Apollo Context, use `getApolloContext` instead.\n */\nexport const resetApolloContext = getApolloContext;\n", "import { invariant } from \"../../utilities/globals/index.js\";\n\nimport * as React from \"rehackt\";\nimport type * as ReactTypes from \"react\";\n\nimport type { ApolloClient } from \"../../core/index.js\";\nimport { getApolloContext } from \"./ApolloContext.js\";\n\nexport interface ApolloProviderProps<TCache> {\n  client: ApolloClient<TCache>;\n  children: ReactTypes.ReactNode | ReactTypes.ReactNode[] | null;\n}\n\nexport const ApolloProvider: ReactTypes.FC<ApolloProviderProps<any>> = ({\n  client,\n  children,\n}) => {\n  const ApolloContext = getApolloContext();\n  const parentContext = React.useContext(ApolloContext);\n\n  const context = React.useMemo(() => {\n    return {\n      ...parentContext,\n      client: client || parentContext.client,\n    };\n  }, [parentContext, client]);\n\n  invariant(\n    context.client,\n    \"ApolloProvider was not passed a client instance. Make \" +\n      'sure you pass in your client via the \"client\" prop.'\n  );\n\n  return (\n    <ApolloContext.Provider value={context}>{children}</ApolloContext.Provider>\n  );\n};\n", "import { invariant } from \"../../utilities/globals/index.js\";\nimport * as React from \"rehackt\";\nimport type { ApolloClient } from \"../../core/index.js\";\nimport { getApolloContext } from \"../context/index.js\";\n\n/**\n * @example\n * ```jsx\n * import { useApolloClient } from '@apollo/client';\n *\n * function SomeComponent() {\n *   const client = useApolloClient();\n *   // `client` is now set to the `ApolloClient` instance being used by the\n *   // application (that was configured using something like `ApolloProvider`)\n * }\n * ```\n *\n * @since 3.0.0\n * @returns The `ApolloClient` instance being used by the application.\n */\nexport function useApolloClient(\n  override?: ApolloClient<object>\n): ApolloClient<object> {\n  const context = React.useContext(getApolloContext());\n  const client = override || context.client;\n  invariant(\n    !!client,\n    'Could not find \"client\" in the context or passed in as an option. ' +\n      \"Wrap the root component in an <ApolloProvider>, or pass an ApolloClient \" +\n      \"instance in via options.\"\n  );\n\n  return client;\n}\n", "import { invariant } from \"../../utilities/globals/index.js\";\n\nimport * as React from \"rehackt\";\nimport { useSyncExternalStore } from \"./useSyncExternalStore.js\";\nimport { equal } from \"@wry/equality\";\n\nimport type {\n  OperationVariables,\n  WatchQueryFetchPolicy,\n} from \"../../core/index.js\";\nimport { mergeOptions } from \"../../utilities/index.js\";\nimport type { ApolloContextValue } from \"../context/index.js\";\nimport { getApolloContext } from \"../context/index.js\";\nimport { ApolloError } from \"../../errors/index.js\";\nimport type {\n  ApolloClient,\n  ApolloQueryResult,\n  ObservableQuery,\n  DocumentNode,\n  TypedDocumentNode,\n  WatchQueryOptions,\n} from \"../../core/index.js\";\nimport { NetworkStatus } from \"../../core/index.js\";\nimport type {\n  QueryHookOptions,\n  QueryResult,\n  ObservableQueryFields,\n  NoInfer,\n} from \"../types/types.js\";\n\nimport { DocumentType, verifyDocumentType } from \"../parser/index.js\";\nimport { useApolloClient } from \"./useApolloClient.js\";\nimport {\n  canUseWeakMap,\n  compact,\n  isNonEmptyArray,\n  maybeDeepFreeze,\n} from \"../../utilities/index.js\";\nimport { wrapHook } from \"./internal/index.js\";\n\nconst {\n  prototype: { hasOwnProperty },\n} = Object;\n\n/**\n * A hook for executing queries in an Apollo application.\n *\n * To run a query within a React component, call `useQuery` and pass it a GraphQL query document.\n *\n * When your component renders, `useQuery` returns an object from Apollo Client that contains `loading`, `error`, and `data` properties you can use to render your UI.\n *\n * > Refer to the [Queries](https://www.apollographql.com/docs/react/data/queries) section for a more in-depth overview of `useQuery`.\n *\n * @example\n * ```jsx\n * import { gql, useQuery } from '@apollo/client';\n *\n * const GET_GREETING = gql`\n *   query GetGreeting($language: String!) {\n *     greeting(language: $language) {\n *       message\n *     }\n *   }\n * `;\n *\n * function Hello() {\n *   const { loading, error, data } = useQuery(GET_GREETING, {\n *     variables: { language: 'english' },\n *   });\n *   if (loading) return <p>Loading ...</p>;\n *   return <h1>Hello {data.greeting.message}!</h1>;\n * }\n * ```\n * @since 3.0.0\n * @param query - A GraphQL query document parsed into an AST by `gql`.\n * @param options - Options to control how the query is executed.\n * @returns Query result object\n */\nexport function useQuery<\n  TData = any,\n  TVariables extends OperationVariables = OperationVariables,\n>(\n  query: DocumentNode | TypedDocumentNode<TData, TVariables>,\n  options: QueryHookOptions<\n    NoInfer<TData>,\n    NoInfer<TVariables>\n  > = Object.create(null)\n): QueryResult<TData, TVariables> {\n  return wrapHook(\n    \"useQuery\",\n    _useQuery,\n    useApolloClient(options && options.client)\n  )(query, options);\n}\n\nfunction _useQuery<\n  TData = any,\n  TVariables extends OperationVariables = OperationVariables,\n>(\n  query: DocumentNode | TypedDocumentNode<TData, TVariables>,\n  options: QueryHookOptions<NoInfer<TData>, NoInfer<TVariables>>\n) {\n  return useInternalState(useApolloClient(options.client), query).useQuery(\n    options\n  );\n}\n\nexport function useInternalState<TData, TVariables extends OperationVariables>(\n  client: ApolloClient<any>,\n  query: DocumentNode | TypedDocumentNode<TData, TVariables>\n): InternalState<TData, TVariables> {\n  const stateRef = React.useRef<InternalState<TData, TVariables>>();\n  if (\n    !stateRef.current ||\n    client !== stateRef.current.client ||\n    query !== stateRef.current.query\n  ) {\n    stateRef.current = new InternalState(client, query, stateRef.current);\n  }\n  const state = stateRef.current;\n\n  // By default, InternalState.prototype.forceUpdate is an empty function, but\n  // we replace it here (before anyone has had a chance to see this state yet)\n  // with a function that unconditionally forces an update, using the latest\n  // setTick function. Updating this state by calling state.forceUpdate is the\n  // only way we trigger React component updates (no other useState calls within\n  // the InternalState class).\n  state.forceUpdateState = React.useReducer((tick) => tick + 1, 0)[1];\n\n  return state;\n}\n\nclass InternalState<TData, TVariables extends OperationVariables> {\n  constructor(\n    public readonly client: ReturnType<typeof useApolloClient>,\n    public readonly query: DocumentNode | TypedDocumentNode<TData, TVariables>,\n    previous?: InternalState<TData, TVariables>\n  ) {\n    verifyDocumentType(query, DocumentType.Query);\n\n    // Reuse previousData from previous InternalState (if any) to provide\n    // continuity of previousData even if/when the query or client changes.\n    const previousResult = previous && previous.result;\n    const previousData = previousResult && previousResult.data;\n    if (previousData) {\n      this.previousData = previousData;\n    }\n  }\n\n  /**\n   * Forces an update using local component state.\n   * As this is not batched with `useSyncExternalStore` updates,\n   * this is only used as a fallback if the `useSyncExternalStore` \"force update\"\n   * method is not registered at the moment.\n   * See https://github.com/facebook/react/issues/25191\n   *  */\n  forceUpdateState() {\n    // Replaced (in useInternalState) with a method that triggers an update.\n    invariant.warn(\n      \"Calling default no-op implementation of InternalState#forceUpdate\"\n    );\n  }\n\n  /**\n   * Will be overwritten by the `useSyncExternalStore` \"force update\" method\n   * whenever it is available and reset to `forceUpdateState` when it isn't.\n   */\n  forceUpdate = () => this.forceUpdateState();\n\n  executeQuery(\n    options: QueryHookOptions<TData, TVariables> & {\n      query?: DocumentNode;\n    }\n  ) {\n    if (options.query) {\n      Object.assign(this, { query: options.query });\n    }\n\n    this.watchQueryOptions = this.createWatchQueryOptions(\n      (this.queryHookOptions = options)\n    );\n\n    const concast = this.observable.reobserveAsConcast(\n      this.getObsQueryOptions()\n    );\n\n    // Make sure getCurrentResult returns a fresh ApolloQueryResult<TData>,\n    // but save the current data as this.previousData, just like setResult\n    // usually does.\n    this.previousData = this.result?.data || this.previousData;\n    this.result = void 0;\n    this.forceUpdate();\n\n    return new Promise<QueryResult<TData, TVariables>>((resolve) => {\n      let result: ApolloQueryResult<TData>;\n\n      // Subscribe to the concast independently of the ObservableQuery in case\n      // the component gets unmounted before the promise resolves. This prevents\n      // the concast from terminating early and resolving with `undefined` when\n      // there are no more subscribers for the concast.\n      concast.subscribe({\n        next: (value) => {\n          result = value;\n        },\n        error: () => {\n          resolve(this.toQueryResult(this.observable.getCurrentResult()));\n        },\n        complete: () => {\n          resolve(this.toQueryResult(result));\n        },\n      });\n    });\n  }\n\n  // Methods beginning with use- should be called according to the standard\n  // rules of React hooks: only at the top level of the calling function, and\n  // without any dynamic conditional logic.\n  useQuery(options: QueryHookOptions<TData, TVariables>) {\n    // The renderPromises field gets initialized here in the useQuery method, at\n    // the beginning of everything (for a given component rendering, at least),\n    // so we can safely use this.renderPromises in other/later InternalState\n    // methods without worrying it might be uninitialized. Even after\n    // initialization, this.renderPromises is usually undefined (unless SSR is\n    // happening), but that's fine as long as it has been initialized that way,\n    // rather than left uninitialized.\n    this.renderPromises = React.useContext(getApolloContext()).renderPromises;\n\n    this.useOptions(options);\n\n    const obsQuery = this.useObservableQuery();\n\n    const result = useSyncExternalStore(\n      React.useCallback(\n        (handleStoreChange) => {\n          if (this.renderPromises) {\n            return () => {};\n          }\n\n          this.forceUpdate = handleStoreChange;\n\n          const onNext = () => {\n            const previousResult = this.result;\n            // We use `getCurrentResult()` instead of the onNext argument because\n            // the values differ slightly. Specifically, loading results will have\n            // an empty object for data instead of `undefined` for some reason.\n            const result = obsQuery.getCurrentResult();\n            // Make sure we're not attempting to re-render similar results\n            if (\n              previousResult &&\n              previousResult.loading === result.loading &&\n              previousResult.networkStatus === result.networkStatus &&\n              equal(previousResult.data, result.data)\n            ) {\n              return;\n            }\n\n            this.setResult(result);\n          };\n\n          const onError = (error: Error) => {\n            subscription.unsubscribe();\n            subscription = obsQuery.resubscribeAfterError(onNext, onError);\n\n            if (!hasOwnProperty.call(error, \"graphQLErrors\")) {\n              // The error is not a GraphQL error\n              throw error;\n            }\n\n            const previousResult = this.result;\n            if (\n              !previousResult ||\n              (previousResult && previousResult.loading) ||\n              !equal(error, previousResult.error)\n            ) {\n              this.setResult({\n                data: (previousResult && previousResult.data) as TData,\n                error: error as ApolloError,\n                loading: false,\n                networkStatus: NetworkStatus.error,\n              });\n            }\n          };\n\n          let subscription = obsQuery.subscribe(onNext, onError);\n\n          // Do the \"unsubscribe\" with a short delay.\n          // This way, an existing subscription can be reused without an additional\n          // request if \"unsubscribe\"  and \"resubscribe\" to the same ObservableQuery\n          // happen in very fast succession.\n          return () => {\n            setTimeout(() => subscription.unsubscribe());\n            this.forceUpdate = () => this.forceUpdateState();\n          };\n        },\n        [\n          // We memoize the subscribe function using useCallback and the following\n          // dependency keys, because the subscribe function reference is all that\n          // useSyncExternalStore uses internally as a dependency key for the\n          // useEffect ultimately responsible for the subscription, so we are\n          // effectively passing this dependency array to that useEffect buried\n          // inside useSyncExternalStore, as desired.\n          obsQuery,\n          this.renderPromises,\n          this.client.disableNetworkFetches,\n        ]\n      ),\n\n      () => this.getCurrentResult(),\n      () => this.getCurrentResult()\n    );\n\n    // TODO Remove this method when we remove support for options.partialRefetch.\n    this.unsafeHandlePartialRefetch(result);\n\n    return this.toQueryResult(result);\n  }\n\n  // These members (except for renderPromises) are all populated by the\n  // useOptions method, which is called unconditionally at the beginning of the\n  // useQuery method, so we can safely use these members in other/later methods\n  // without worrying they might be uninitialized.\n  private renderPromises: ApolloContextValue[\"renderPromises\"];\n  private queryHookOptions!: QueryHookOptions<TData, TVariables>;\n  private watchQueryOptions!: WatchQueryOptions<TVariables, TData>;\n\n  private useOptions(options: QueryHookOptions<TData, TVariables>) {\n    const watchQueryOptions = this.createWatchQueryOptions(\n      (this.queryHookOptions = options)\n    );\n\n    // Update this.watchQueryOptions, but only when they have changed, which\n    // allows us to depend on the referential stability of\n    // this.watchQueryOptions elsewhere.\n    const currentWatchQueryOptions = this.watchQueryOptions;\n\n    if (!equal(watchQueryOptions, currentWatchQueryOptions)) {\n      this.watchQueryOptions = watchQueryOptions;\n\n      if (currentWatchQueryOptions && this.observable) {\n        // Though it might be tempting to postpone this reobserve call to the\n        // useEffect block, we need getCurrentResult to return an appropriate\n        // loading:true result synchronously (later within the same call to\n        // useQuery). Since we already have this.observable here (not true for\n        // the very first call to useQuery), we are not initiating any new\n        // subscriptions, though it does feel less than ideal that reobserve\n        // (potentially) kicks off a network request (for example, when the\n        // variables have changed), which is technically a side-effect.\n        this.observable.reobserve(this.getObsQueryOptions());\n\n        // Make sure getCurrentResult returns a fresh ApolloQueryResult<TData>,\n        // but save the current data as this.previousData, just like setResult\n        // usually does.\n        this.previousData = this.result?.data || this.previousData;\n        this.result = void 0;\n      }\n    }\n\n    // Make sure state.onCompleted and state.onError always reflect the latest\n    // options.onCompleted and options.onError callbacks provided to useQuery,\n    // since those functions are often recreated every time useQuery is called.\n    // Like the forceUpdate method, the versions of these methods inherited from\n    // InternalState.prototype are empty no-ops, but we can override them on the\n    // base state object (without modifying the prototype).\n    this.onCompleted =\n      options.onCompleted || InternalState.prototype.onCompleted;\n    this.onError = options.onError || InternalState.prototype.onError;\n\n    if (\n      (this.renderPromises || this.client.disableNetworkFetches) &&\n      this.queryHookOptions.ssr === false &&\n      !this.queryHookOptions.skip\n    ) {\n      // If SSR has been explicitly disabled, and this function has been called\n      // on the server side, return the default loading state.\n      this.result = this.ssrDisabledResult;\n    } else if (\n      this.queryHookOptions.skip ||\n      this.watchQueryOptions.fetchPolicy === \"standby\"\n    ) {\n      // When skipping a query (ie. we're not querying for data but still want to\n      // render children), make sure the `data` is cleared out and `loading` is\n      // set to `false` (since we aren't loading anything).\n      //\n      // NOTE: We no longer think this is the correct behavior. Skipping should\n      // not automatically set `data` to `undefined`, but instead leave the\n      // previous data in place. In other words, skipping should not mandate that\n      // previously received data is all of a sudden removed. Unfortunately,\n      // changing this is breaking, so we'll have to wait until Apollo Client 4.0\n      // to address this.\n      this.result = this.skipStandbyResult;\n    } else if (\n      this.result === this.ssrDisabledResult ||\n      this.result === this.skipStandbyResult\n    ) {\n      this.result = void 0;\n    }\n  }\n\n  private getObsQueryOptions(): WatchQueryOptions<TVariables, TData> {\n    const toMerge: Array<Partial<WatchQueryOptions<TVariables, TData>>> = [];\n\n    const globalDefaults = this.client.defaultOptions.watchQuery;\n    if (globalDefaults) toMerge.push(globalDefaults);\n\n    if (this.queryHookOptions.defaultOptions) {\n      toMerge.push(this.queryHookOptions.defaultOptions);\n    }\n\n    // We use compact rather than mergeOptions for this part of the merge,\n    // because we want watchQueryOptions.variables (if defined) to replace\n    // this.observable.options.variables whole. This replacement allows\n    // removing variables by removing them from the variables input to\n    // useQuery. If the variables were always merged together (rather than\n    // replaced), there would be no way to remove existing variables.\n    // However, the variables from options.defaultOptions and globalDefaults\n    // (if provided) should be merged, to ensure individual defaulted\n    // variables always have values, if not otherwise defined in\n    // observable.options or watchQueryOptions.\n    toMerge.push(\n      compact(\n        this.observable && this.observable.options,\n        this.watchQueryOptions\n      )\n    );\n\n    return toMerge.reduce(mergeOptions) as WatchQueryOptions<TVariables, TData>;\n  }\n\n  private ssrDisabledResult = maybeDeepFreeze({\n    loading: true,\n    data: void 0 as unknown as TData,\n    error: void 0,\n    networkStatus: NetworkStatus.loading,\n  });\n\n  private skipStandbyResult = maybeDeepFreeze({\n    loading: false,\n    data: void 0 as unknown as TData,\n    error: void 0,\n    networkStatus: NetworkStatus.ready,\n  });\n\n  // A function to massage options before passing them to ObservableQuery.\n  private createWatchQueryOptions({\n    skip,\n    ssr,\n    onCompleted,\n    onError,\n    defaultOptions,\n    // The above options are useQuery-specific, so this ...otherOptions spread\n    // makes otherOptions almost a WatchQueryOptions object, except for the\n    // query property that we add below.\n    ...otherOptions\n  }: QueryHookOptions<TData, TVariables> = {}): WatchQueryOptions<\n    TVariables,\n    TData\n  > {\n    // This Object.assign is safe because otherOptions is a fresh ...rest object\n    // that did not exist until just now, so modifications are still allowed.\n    const watchQueryOptions: WatchQueryOptions<TVariables, TData> =\n      Object.assign(otherOptions, { query: this.query });\n\n    if (\n      this.renderPromises &&\n      (watchQueryOptions.fetchPolicy === \"network-only\" ||\n        watchQueryOptions.fetchPolicy === \"cache-and-network\")\n    ) {\n      // this behavior was added to react-apollo without explanation in this PR\n      // https://github.com/apollographql/react-apollo/pull/1579\n      watchQueryOptions.fetchPolicy = \"cache-first\";\n    }\n\n    if (!watchQueryOptions.variables) {\n      watchQueryOptions.variables = {} as TVariables;\n    }\n\n    if (skip) {\n      const {\n        fetchPolicy = this.getDefaultFetchPolicy(),\n        initialFetchPolicy = fetchPolicy,\n      } = watchQueryOptions;\n\n      // When skipping, we set watchQueryOptions.fetchPolicy initially to\n      // \"standby\", but we also need/want to preserve the initial non-standby\n      // fetchPolicy that would have been used if not skipping.\n      Object.assign(watchQueryOptions, {\n        initialFetchPolicy,\n        fetchPolicy: \"standby\",\n      });\n    } else if (!watchQueryOptions.fetchPolicy) {\n      watchQueryOptions.fetchPolicy =\n        this.observable?.options.initialFetchPolicy ||\n        this.getDefaultFetchPolicy();\n    }\n\n    return watchQueryOptions;\n  }\n\n  getDefaultFetchPolicy(): WatchQueryFetchPolicy {\n    return (\n      this.queryHookOptions.defaultOptions?.fetchPolicy ||\n      this.client.defaultOptions.watchQuery?.fetchPolicy ||\n      \"cache-first\"\n    );\n  }\n\n  // Defining these methods as no-ops on the prototype allows us to call\n  // state.onCompleted and/or state.onError without worrying about whether a\n  // callback was provided.\n  private onCompleted(data: TData) {}\n  private onError(error: ApolloError) {}\n\n  private observable!: ObservableQuery<TData, TVariables>;\n  private obsQueryFields!: Omit<\n    ObservableQueryFields<TData, TVariables>,\n    \"variables\"\n  >;\n\n  private useObservableQuery() {\n    // See if there is an existing observable that was used to fetch the same\n    // data and if so, use it instead since it will contain the proper queryId\n    // to fetch the result set. This is used during SSR.\n    const obsQuery = (this.observable =\n      (this.renderPromises &&\n        this.renderPromises.getSSRObservable(this.watchQueryOptions)) ||\n      this.observable || // Reuse this.observable if possible (and not SSR)\n      this.client.watchQuery(this.getObsQueryOptions()));\n\n    this.obsQueryFields = React.useMemo(\n      () => ({\n        refetch: obsQuery.refetch.bind(obsQuery),\n        reobserve: obsQuery.reobserve.bind(obsQuery),\n        fetchMore: obsQuery.fetchMore.bind(obsQuery),\n        updateQuery: obsQuery.updateQuery.bind(obsQuery),\n        startPolling: obsQuery.startPolling.bind(obsQuery),\n        stopPolling: obsQuery.stopPolling.bind(obsQuery),\n        subscribeToMore: obsQuery.subscribeToMore.bind(obsQuery),\n      }),\n      [obsQuery]\n    );\n\n    const ssrAllowed = !(\n      this.queryHookOptions.ssr === false || this.queryHookOptions.skip\n    );\n\n    if (this.renderPromises && ssrAllowed) {\n      this.renderPromises.registerSSRObservable(obsQuery);\n\n      if (obsQuery.getCurrentResult().loading) {\n        // TODO: This is a legacy API which could probably be cleaned up\n        this.renderPromises.addObservableQueryPromise(obsQuery);\n      }\n    }\n\n    return obsQuery;\n  }\n\n  // These members are populated by getCurrentResult and setResult, and it's\n  // okay/normal for them to be initially undefined.\n  private result: undefined | ApolloQueryResult<TData>;\n  private previousData: undefined | TData;\n\n  private setResult(nextResult: ApolloQueryResult<TData>) {\n    const previousResult = this.result;\n    if (previousResult && previousResult.data) {\n      this.previousData = previousResult.data;\n    }\n    this.result = nextResult;\n    // Calling state.setResult always triggers an update, though some call sites\n    // perform additional equality checks before committing to an update.\n    this.forceUpdate();\n    this.handleErrorOrCompleted(nextResult, previousResult);\n  }\n\n  private handleErrorOrCompleted(\n    result: ApolloQueryResult<TData>,\n    previousResult?: ApolloQueryResult<TData>\n  ) {\n    if (!result.loading) {\n      const error = this.toApolloError(result);\n\n      // wait a tick in case we are in the middle of rendering a component\n      Promise.resolve()\n        .then(() => {\n          if (error) {\n            this.onError(error);\n          } else if (\n            result.data &&\n            previousResult?.networkStatus !== result.networkStatus &&\n            result.networkStatus === NetworkStatus.ready\n          ) {\n            this.onCompleted(result.data);\n          }\n        })\n        .catch((error) => {\n          invariant.warn(error);\n        });\n    }\n  }\n\n  private toApolloError(\n    result: ApolloQueryResult<TData>\n  ): ApolloError | undefined {\n    return isNonEmptyArray(result.errors) ?\n        new ApolloError({ graphQLErrors: result.errors })\n      : result.error;\n  }\n\n  private getCurrentResult(): ApolloQueryResult<TData> {\n    // Using this.result as a cache ensures getCurrentResult continues returning\n    // the same (===) result object, unless state.setResult has been called, or\n    // we're doing server rendering and therefore override the result below.\n    if (!this.result) {\n      this.handleErrorOrCompleted(\n        (this.result = this.observable.getCurrentResult())\n      );\n    }\n    return this.result;\n  }\n\n  // This cache allows the referential stability of this.result (as returned by\n  // getCurrentResult) to translate into referential stability of the resulting\n  // QueryResult object returned by toQueryResult.\n  private toQueryResultCache = new (canUseWeakMap ? WeakMap : Map)<\n    ApolloQueryResult<TData>,\n    QueryResult<TData, TVariables>\n  >();\n\n  toQueryResult(\n    result: ApolloQueryResult<TData>\n  ): QueryResult<TData, TVariables> {\n    let queryResult = this.toQueryResultCache.get(result);\n    if (queryResult) return queryResult;\n\n    const { data, partial, ...resultWithoutPartial } = result;\n    this.toQueryResultCache.set(\n      result,\n      (queryResult = {\n        data, // Ensure always defined, even if result.data is missing.\n        ...resultWithoutPartial,\n        ...this.obsQueryFields,\n        client: this.client,\n        observable: this.observable,\n        variables: this.observable.variables,\n        called: !this.queryHookOptions.skip,\n        previousData: this.previousData,\n      })\n    );\n\n    if (!queryResult.error && isNonEmptyArray(result.errors)) {\n      // Until a set naming convention for networkError and graphQLErrors is\n      // decided upon, we map errors (graphQLErrors) to the error options.\n      // TODO: Is it possible for both result.error and result.errors to be\n      // defined here?\n      queryResult.error = new ApolloError({ graphQLErrors: result.errors });\n    }\n\n    return queryResult;\n  }\n\n  private unsafeHandlePartialRefetch(result: ApolloQueryResult<TData>) {\n    // WARNING: SIDE-EFFECTS IN THE RENDER FUNCTION\n    //\n    // TODO: This code should be removed when the partialRefetch option is\n    // removed. I was unable to get this hook to behave reasonably in certain\n    // edge cases when this block was put in an effect.\n    if (\n      result.partial &&\n      this.queryHookOptions.partialRefetch &&\n      !result.loading &&\n      (!result.data || Object.keys(result.data).length === 0) &&\n      this.observable.options.fetchPolicy !== \"cache-only\"\n    ) {\n      Object.assign(result, {\n        loading: true,\n        networkStatus: NetworkStatus.refetch,\n      });\n      this.observable.refetch();\n    }\n  }\n}\n", "import { invariant } from \"../../utilities/globals/index.js\";\nimport * as React from \"rehackt\";\n\nimport { canUseLayoutEffect } from \"../../utilities/index.js\";\n\nlet didWarnUncachedGetSnapshot = false;\n\ntype RealUseSESHookType =\n  // This import depends only on the @types/use-sync-external-store package, not\n  // the actual use-sync-external-store package, which is not installed. It\n  // might be nice to get this type from React 18, but it still needs to work\n  // when only React 17 or earlier is installed.\n  typeof import(\"use-sync-external-store\").useSyncExternalStore;\n\n// Prevent webpack from complaining about our feature detection of the\n// useSyncExternalStore property of the React namespace, which is expected not\n// to exist when using React 17 and earlier, and that's fine.\nconst uSESKey = \"useSyncExternalStore\" as keyof typeof React;\nconst realHook = React[uSESKey] as RealUseSESHookType | undefined;\n\n// Adapted from https://www.npmjs.com/package/use-sync-external-store, with\n// Apollo Client deviations called out by \"// DEVIATION ...\" comments.\n\n// When/if React.useSyncExternalStore is defined, delegate fully to it.\nexport const useSyncExternalStore: RealUseSESHookType =\n  realHook ||\n  ((subscribe, getSnapshot, getServerSnapshot) => {\n    // Read the current snapshot from the store on every render. Again, this\n    // breaks the rules of React, and only works here because of specific\n    // implementation details, most importantly that updates are\n    // always synchronous.\n    const value = getSnapshot();\n    if (\n      // DEVIATION: Using __DEV__\n      __DEV__ &&\n      !didWarnUncachedGetSnapshot &&\n      // DEVIATION: Not using Object.is because we know our snapshots will never\n      // be exotic primitive values like NaN, which is !== itself.\n      value !== getSnapshot()\n    ) {\n      didWarnUncachedGetSnapshot = true;\n      // DEVIATION: Using invariant.error instead of console.error directly.\n      invariant.error(\n        \"The result of getSnapshot should be cached to avoid an infinite loop\"\n      );\n    }\n\n    // Because updates are synchronous, we don't queue them. Instead we force a\n    // re-render whenever the subscribed state changes by updating an some\n    // arbitrary useState hook. Then, during render, we call getSnapshot to read\n    // the current value.\n    //\n    // Because we don't actually use the state returned by the useState hook, we\n    // can save a bit of memory by storing other stuff in that slot.\n    //\n    // To implement the early bailout, we need to track some things on a mutable\n    // object. Usually, we would put that in a useRef hook, but we can stash it in\n    // our useState hook instead.\n    //\n    // To force a re-render, we call forceUpdate({inst}). That works because the\n    // new object always fails an equality check.\n    const [{ inst }, forceUpdate] = React.useState({\n      inst: { value, getSnapshot },\n    });\n\n    // Track the latest getSnapshot function with a ref. This needs to be updated\n    // in the layout phase so we can access it during the tearing check that\n    // happens on subscribe.\n    if (canUseLayoutEffect) {\n      // DEVIATION: We avoid calling useLayoutEffect when !canUseLayoutEffect,\n      // which may seem like a conditional hook, but this code ends up behaving\n      // unconditionally (one way or the other) because canUseLayoutEffect is\n      // constant.\n      React.useLayoutEffect(() => {\n        Object.assign(inst, { value, getSnapshot });\n        // Whenever getSnapshot or subscribe changes, we need to check in the\n        // commit phase if there was an interleaved mutation. In concurrent mode\n        // this can happen all the time, but even in synchronous mode, an earlier\n        // effect may have mutated the store.\n        if (checkIfSnapshotChanged(inst)) {\n          // Force a re-render.\n          forceUpdate({ inst });\n        }\n      }, [subscribe, value, getSnapshot]);\n    } else {\n      Object.assign(inst, { value, getSnapshot });\n    }\n\n    React.useEffect(() => {\n      // Check for changes right before subscribing. Subsequent changes will be\n      // detected in the subscription handler.\n      if (checkIfSnapshotChanged(inst)) {\n        // Force a re-render.\n        forceUpdate({ inst });\n      }\n\n      // Subscribe to the store and return a clean-up function.\n      return subscribe(function handleStoreChange() {\n        // TODO: Because there is no cross-renderer API for batching updates, it's\n        // up to the consumer of this library to wrap their subscription event\n        // with unstable_batchedUpdates. Should we try to detect when this isn't\n        // the case and print a warning in development?\n\n        // The store changed. Check if the snapshot changed since the last time we\n        // read from the store.\n        if (checkIfSnapshotChanged(inst)) {\n          // Force a re-render.\n          forceUpdate({ inst });\n        }\n      });\n    }, [subscribe]);\n\n    return value;\n  });\n\nfunction checkIfSnapshotChanged<Snapshot>({\n  value,\n  getSnapshot,\n}: {\n  value: Snapshot;\n  getSnapshot: () => Snapshot;\n}): boolean {\n  try {\n    return value !== getSnapshot();\n  } catch {\n    return true;\n  }\n}\n", "import { invariant } from \"../../utilities/globals/index.js\";\n\nimport type {\n  DocumentNode,\n  DefinitionNode,\n  VariableDefinitionNode,\n  OperationDefinitionNode,\n} from \"graphql\";\nimport {\n  AutoCleanedWeakCache,\n  cacheSizes,\n  defaultCacheSizes,\n} from \"../../utilities/index.js\";\nimport { registerGlobalCache } from \"../../utilities/caching/getMemoryInternals.js\";\n\nexport enum DocumentType {\n  Query,\n  Mutation,\n  Subscription,\n}\n\nexport interface IDocumentDefinition {\n  type: DocumentType;\n  name: string;\n  variables: ReadonlyArray<VariableDefinitionNode>;\n}\n\nlet cache:\n  | undefined\n  | AutoCleanedWeakCache<\n      DocumentNode,\n      {\n        name: string;\n        type: DocumentType;\n        variables: readonly VariableDefinitionNode[];\n      }\n    >;\n\nexport function operationName(type: DocumentType) {\n  let name;\n  switch (type) {\n    case DocumentType.Query:\n      name = \"Query\";\n      break;\n    case DocumentType.Mutation:\n      name = \"Mutation\";\n      break;\n    case DocumentType.Subscription:\n      name = \"Subscription\";\n      break;\n  }\n  return name;\n}\n\n// This parser is mostly used to safety check incoming documents.\nexport function parser(document: DocumentNode): IDocumentDefinition {\n  if (!cache) {\n    cache = new AutoCleanedWeakCache(\n      cacheSizes.parser || defaultCacheSizes.parser\n    );\n  }\n  const cached = cache.get(document);\n  if (cached) return cached;\n\n  let variables, type, name;\n\n  invariant(\n    !!document && !!document.kind,\n    `Argument of %s passed to parser was not a valid GraphQL ` +\n      `DocumentNode. You may need to use 'graphql-tag' or another method ` +\n      `to convert your operation into a document`,\n    document\n  );\n\n  const fragments: DefinitionNode[] = [];\n  const queries: DefinitionNode[] = [];\n  const mutations: DefinitionNode[] = [];\n  const subscriptions: DefinitionNode[] = [];\n\n  for (const x of document.definitions) {\n    if (x.kind === \"FragmentDefinition\") {\n      fragments.push(x);\n      continue;\n    }\n\n    if (x.kind === \"OperationDefinition\") {\n      switch (x.operation) {\n        case \"query\":\n          queries.push(x);\n          break;\n        case \"mutation\":\n          mutations.push(x);\n          break;\n        case \"subscription\":\n          subscriptions.push(x);\n          break;\n      }\n    }\n  }\n\n  invariant(\n    !fragments.length ||\n      queries.length ||\n      mutations.length ||\n      subscriptions.length,\n    `Passing only a fragment to 'graphql' is not yet supported. ` +\n      `You must include a query, subscription or mutation as well`\n  );\n\n  invariant(\n    queries.length + mutations.length + subscriptions.length <= 1,\n    `react-apollo only supports a query, subscription, or a mutation per HOC. ` +\n      `%s had %s queries, %s ` +\n      `subscriptions and %s mutations. ` +\n      `You can use 'compose' to join multiple operation types to a component`,\n    document,\n    queries.length,\n    subscriptions.length,\n    mutations.length\n  );\n\n  type = queries.length ? DocumentType.Query : DocumentType.Mutation;\n  if (!queries.length && !mutations.length) type = DocumentType.Subscription;\n\n  const definitions =\n    queries.length ? queries\n    : mutations.length ? mutations\n    : subscriptions;\n\n  invariant(\n    definitions.length === 1,\n    `react-apollo only supports one definition per HOC. %s had ` +\n      `%s definitions. ` +\n      `You can use 'compose' to join multiple operation types to a component`,\n    document,\n    definitions.length\n  );\n\n  const definition = definitions[0] as OperationDefinitionNode;\n  variables = definition.variableDefinitions || [];\n\n  if (definition.name && definition.name.kind === \"Name\") {\n    name = definition.name.value;\n  } else {\n    name = \"data\"; // fallback to using data if no name\n  }\n\n  const payload = { name, type, variables };\n  cache.set(document, payload);\n  return payload;\n}\n\nparser.resetCache = () => {\n  cache = undefined;\n};\n\nif (__DEV__) {\n  registerGlobalCache(\"parser\", () => (cache ? cache.size : 0));\n}\n\nexport function verifyDocumentType(document: DocumentNode, type: DocumentType) {\n  const operation = parser(document);\n  const requiredOperationName = operationName(type);\n  const usedOperationName = operationName(operation.type);\n  invariant(\n    operation.type === type,\n    `Running a %s requires a graphql ` + `%s, but a %s was used instead.`,\n    requiredOperationName,\n    requiredOperationName,\n    usedOperationName\n  );\n}\n", "import type {\n  useQuery,\n  useSuspenseQuery,\n  useBackgroundQuery,\n  useReadQuery,\n  useFragment,\n  useQueryRefHandlers,\n} from \"../index.js\";\nimport type { QueryManager } from \"../../../core/QueryManager.js\";\nimport type { ApolloClient } from \"../../../core/ApolloClient.js\";\nimport type { ObservableQuery } from \"../../../core/ObservableQuery.js\";\n\nconst wrapperSymbol = Symbol.for(\"apollo.hook.wrappers\");\n\ninterface WrappableHooks {\n  useQuery: typeof useQuery;\n  useSuspenseQuery: typeof useSuspenseQuery;\n  useBackgroundQuery: typeof useBackgroundQuery;\n  useReadQuery: typeof useReadQuery;\n  useFragment: typeof useFragment;\n  useQueryRefHandlers: typeof useQueryRefHandlers;\n}\n\n/**\n * @internal\n * Can be used to correctly type the [Symbol.for(\"apollo.hook.wrappers\")] property of\n * `QueryManager`, to override/wrap hook functionality.\n */\nexport type HookWrappers = {\n  [K in keyof WrappableHooks]?: (\n    originalHook: WrappableHooks[K]\n  ) => WrappableHooks[K];\n};\n\ninterface QueryManagerWithWrappers<T> extends QueryManager<T> {\n  [wrapperSymbol]?: HookWrappers;\n}\n\n/**\n * @internal\n *\n * Makes an Apollo Client hook \"wrappable\".\n * That means that the Apollo Client instance can expose a \"wrapper\" that will be\n * used to wrap the original hook implementation with additional logic.\n * @example\n * ```tsx\n * // this is already done in `@apollo/client` for all wrappable hooks (see `WrappableHooks`)\n * // following this pattern\n * function useQuery() {\n *   return wrapHook('useQuery', _useQuery, options.client)(query, options);\n * }\n * function _useQuery(query, options) {\n *   // original implementation\n * }\n *\n * // this is what a library like `@apollo/client-react-streaming` would do\n * class ApolloClientWithStreaming extends ApolloClient {\n *   constructor(options) {\n *     super(options);\n *     this.queryManager[Symbol.for(\"apollo.hook.wrappers\")] = {\n *       useQuery: (original) => (query, options) => {\n *         console.log(\"useQuery was called with options\", options);\n *         return original(query, options);\n *       }\n *     }\n *   }\n * }\n *\n * // this will now log the options and then call the original `useQuery`\n * const client = new ApolloClientWithStreaming({ ... });\n * useQuery(query, { client });\n * ```\n */\nexport function wrapHook<Hook extends (...args: any[]) => any>(\n  hookName: keyof WrappableHooks,\n  useHook: Hook,\n  clientOrObsQuery: ObservableQuery<any> | ApolloClient<any>\n): Hook {\n  const queryManager = (\n    clientOrObsQuery as unknown as {\n      // both `ApolloClient` and `ObservableQuery` have a `queryManager` property\n      // but they're both `private`, so we have to cast around for a bit here.\n      queryManager: QueryManagerWithWrappers<any>;\n    }\n  )[\"queryManager\"];\n  const wrappers = queryManager && queryManager[wrapperSymbol];\n  const wrapper: undefined | ((wrap: Hook) => Hook) =\n    wrappers && (wrappers[hookName] as any);\n  return wrapper ? wrapper(useHook) : useHook;\n}\n", "import type { AsyncDataController, AsyncDataProps, AsyncDataState } from '@snapchat/async-data';\nimport { asyncDataController } from '@snapchat/async-data';\nimport { createContext, useCallback, useContext, useState } from 'react';\n\ninterface AsyncDataContextProps {\n  controller: AsyncDataController;\n}\n\nexport const AsyncDataContext = createContext<AsyncDataContextProps>({\n  controller: asyncDataController,\n});\n\nexport interface UseAsyncDataProps<T> extends AsyncDataProps<T> {\n  /** Turns off calling the async data and always returns 'undefined'. */\n  skip?: boolean;\n}\n\n/**\n * Helper hook to interface with the asyncData controller.\n *\n * Can exclude from test coverage, since this is a very simple hook that interfaces with\n * asyncDataController. Low ROI on testing this since it's really only testing one line.\n *\n * @returns {data, error, isLoading, hasLoaded} From registering the request to the async data\n *   controller\n */\nexport function useAsyncData<T>(\n  props: UseAsyncDataProps<T>\n): Pick<AsyncDataState<T>, 'data' | 'error' | 'isLoading' | 'hasLoaded'> {\n  const { controller } = useContext(AsyncDataContext);\n\n  const [_invariant, setInvariant] = useState<number>(0);\n\n  // biome-ignore lint/correctness/useExhaustiveDependencies: We do want the invariant to trigger change.\n  const onData = useCallback(\n    (data: T) => {\n      props.onData?.(data);\n      setInvariant(invariant => invariant + 1);\n    },\n    // Skipping deps on ALL props.\n    [setInvariant, props.onData]\n  );\n\n  // biome-ignore lint/correctness/useExhaustiveDependencies: We do want the invariant to trigger change.\n  const onError = useCallback(\n    (error: unknown) => {\n      props.onError?.(error);\n      setInvariant(invariant => invariant + 1);\n    },\n    // Skipping deps on ALL props.\n    [setInvariant, props.onError]\n  );\n\n  // Do nothing if there's an explicit skip.\n  if (props.skip) {\n    return {\n      hasLoaded: true,\n      isLoading: false,\n    };\n  }\n\n  return controller.register({\n    ...props,\n    onError,\n    onData,\n  });\n}\n", "import type { ValueOf } from '../types/ValueOf';\n\n/**\n * Actions that we track that the user can do.\n *\n * These have to be context-free. I.e. \"Click\" instead of \"HeaderClick\" or \"Scroll\" instead of\n * \"FooScroll\"\n */\nexport const Action = {\n  Click: 'Click',\n  Warning: 'Warning',\n  LocaleSelect: 'LocaleSelect',\n} as const;\n\nexport type Action = ValueOf<typeof Action>;\n", "import { documentToPlainTextString } from '@contentful/rich-text-plain-text-renderer';\nimport type { Document } from '@contentful/rich-text-types';\nimport type { FC } from 'react';\n\n/**\n * Returns just the text from the RichText. This is useful if you want to get the text value without\n * any wrapping elements like <p>s or <span>s.\n *\n * If you do want rendered HTML, use <HtmlRichText document={field.json} />.\n */\nexport const PlainRichText: FC<{ document: string | Record<string, unknown> | Document }> = ({\n  document,\n}) => {\n  if (typeof document === 'string') {\n    return <>{document}</>;\n  }\n\n  return <>{documentToPlainTextString(document as unknown as Document)}</>;\n};\n\nPlainRichText.displayName = 'PlainRichText';\n", "import { createHttpLink } from '@apollo/client';\nimport { fetch } from 'cross-fetch';\n\nimport {\n  globalComponentsAccessToken,\n  globalComponentsEnvName,\n  globalComponentsSpaceId,\n} from './contentfulConstants';\n\n/**\n * Default Link for the global components apollo.\n *\n * Use this when you don't already have an apollo client installed.\n *\n * Usage:\n *\n * <ApolloProvider client={new ApolloClient({ link: globalComponentsApolloLink, cache: new\n * InMemoryCache() })}> ... </ApolloProvider>\n */\nexport const globalComponentsApolloLink = createHttpLink({\n  uri: `https://graphql.contentful.com/content/v1/spaces/${globalComponentsSpaceId}/environments/${globalComponentsEnvName}`,\n  credentials: 'same-origin',\n  headers: {\n    Authorization: `Bearer ${globalComponentsAccessToken}`,\n  },\n  fetch,\n});\n", "export const globalComponentsAccessToken = 'dpk-7L7rGYzkKk-jZwtIDnyhui6DgLq6VTapJNI7W44';\n\nexport const globalComponentsSpaceId = 'kp51zybwznx4';\n\nexport const globalComponentsEnvName = 'master';\n\nexport const globalComponentsClientName = 'global';\n", "import type {\n  DocumentNode,\n  OperationVariables,\n  QueryHookOptions,\n  QueryResult,\n  TypedDocumentNode,\n} from '@apollo/client';\nimport { useQuery } from '@apollo/client';\n\nimport { globalComponentsClientName } from '../contentful/contentfulConstants';\n\nexport interface ContentfulContext {\n  currentLocale: string;\n  isPreview: boolean;\n  isSSR: boolean;\n}\n\n/**\n * Wrapper around `useQuery` hook that adds variables from the GlobalComponentsContext and adds a\n * query context with `clientName` set to `global`.\n */\nexport function useGlobalComponentsContentfulQuery<\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  TData = any,\n  TVariables extends OperationVariables = OperationVariables\n>(\n  query: DocumentNode | TypedDocumentNode<TData, TVariables>,\n  context: ContentfulContext,\n  options?: QueryHookOptions<TData, Omit<TVariables, 'locale' | 'preview'>>\n): QueryResult<TData, TVariables> {\n  const { currentLocale, isPreview, isSSR } = context;\n\n  const mergedOptions: QueryHookOptions<TData, TVariables> = {\n    ...options,\n    context: { clientName: globalComponentsClientName, ...options?.context },\n    // @ts-ignore: We assume that all queries require a 'locale' and 'preview' vars.\n    variables: {\n      locale: currentLocale,\n      preview: isPreview,\n      ...options?.variables,\n    },\n    ssr: isSSR ?? options?.ssr,\n  };\n\n  return useQuery(query, mergedOptions);\n}\n", "const escapedChars = /[\\u00A0-\\u9999<>&]/g;\n\n/**\n * Replaces weird UTF characters with HTML entitites. Useful for escaping user input. Based on:\n * https://stackoverflow.com/questions/18749591/encode-html-entities-in-javascript\n */\nexport const htmlEscape = (value: string): string =>\n  value.replace(escapedChars, c => `&#${c.charCodeAt(0)};`);\n", "/**\n * Pattern to retrieve escaped Unicode values from the `htmlEscape` function. Includes a negative\n * lookahead to filter out character codes that we do not want to reverse: <>& Includes a capture\n * group (position 2) to extract the character code value Example: \u670B\u53CB => \u670B\u53CB\n */\nconst unicodePatternsToReverse = /&#(?!(38|60|62);)([\\d]{1,5});/g;\n\n/**\n * Pattern to retrieve escaped Unicode values from the `htmlEscape` function. Does NOT a filter for\n * dangerous character codes: `<>&`, instead includes a meaningless capture group so that it has the\n * same output structure as`unicodePatternsToReverse`. Includes a capture group (position 2) to\n * extract the character code value Example: \u670B\u53CB => \u670B\u53CB\n */\nconst unsafeUnicodePatternsToReverse = /(&#)([\\d]{1,5});/g;\n\n/**\n * Reverses output of htmlEscape function for most unicode characters, excluding known html related\n * characters. Used for specific cases where rendering the utf codes is insufficient, such as safely\n * rendering form input fields from query string parameters.\n *\n * @param value Value to process\n * @param undoDangerousCharacters Optional, enables reversal of dangerous characters: `<>&`\n */\nexport const htmlUnescape = (value: string, undoDangerousCharacters = false): string => {\n  const pattern = undoDangerousCharacters\n    ? unsafeUnicodePatternsToReverse\n    : unicodePatternsToReverse;\n\n  return value.replaceAll(pattern, (_1, _2, characterCode) => {\n    // uses capture group 2 to extract character code value\n    const code = Number.parseInt(characterCode);\n    return String.fromCharCode(code);\n  });\n};\n", "/**\n * A helper function that returns a string representation of an object.\n *\n * @param [detectCycles=false] If set to true will keep a reference to every object in the value and\n *   will not expand duplicates. Default is `false`\n */\nexport function jsonStringify(\n  value: unknown,\n  detectCycles = false,\n  space: number | undefined = 2\n): string {\n  if (!detectCycles) {\n    return JSON.stringify(value, null, space);\n  }\n\n  const visited = new Set<unknown>();\n\n  function replacer(_key: string, value: unknown) {\n    if (visited.has(value)) return null;\n    visited.add(value);\n    return value;\n  }\n\n  return JSON.stringify(value, replacer, space);\n}\n", "/** Parses an unknown error into an Error object. */\nexport function parseError(error: unknown): Error {\n  // Empty error.\n  if (!error) {\n    return new Error();\n  }\n\n  // Already defined error.\n  if (error instanceof Error) {\n    return error;\n  }\n\n  // A string error.\n  if (typeof error === 'string') {\n    return new Error(error);\n  }\n\n  // For other values, initialize a return value.\n  let errorString: string | undefined;\n\n  // An object of shape { message: ... }.\n  if (typeof error === 'object') {\n    const errorObject = error as Record<string, unknown>;\n\n    if (errorObject.message) {\n      errorString = String(errorObject.message);\n    } else {\n      errorString = JSON.stringify(errorObject);\n    }\n  } else {\n    errorString = String(error);\n  }\n\n  if (errorString.length > 100) {\n    errorString = `${errorString.substring(0, 100)}...`;\n  }\n\n  return new Error(errorString);\n}\n", "/**\n * Returns the union (combination) of all the iterables into one set. Useful for deduplicating\n * multiple collections.\n */\nexport const unionSet = <T>(...iterables: Iterable<T>[]): Set<T> => {\n  const set = new Set<T>();\n\n  for (const iterable of iterables) {\n    for (const value of iterable) {\n      set.add(value);\n    }\n  }\n\n  return set;\n};\n\n/**\n * Returns the difference of minuend set and subtrahend set.\n *\n * Note that duplicates are removed from the minuend even if they aren't in the subtrahend. E.g. [\n * 1, 2, 2, 3, 4 ] - [3, 4, 5] = { 1, 2 }\n */\nexport const differenceSet = <T>(minuend: Iterable<T>, subtrahend: Iterable<T>): Set<T> => {\n  const set = new Set<T>(minuend);\n\n  for (const value of subtrahend) {\n    set.delete(value);\n  }\n\n  return set;\n};\n", "/** Helper function to make Node/Browser wait for a period of time. */\nexport const sleep = (timeoutMs: number): Promise<void> =>\n  // NOTE: Node runner seems to be rounding so it's possible to wait timeoutMs - .5 which technically\n  // isn't sleeping at least timeoutMs.\n  new Promise(resolve => setTimeout(resolve, timeoutMs + 1));\n", "import { parseError } from './parseError';\nimport { sleep } from './sleep';\n\nexport interface WaitForOptions<T> {\n  timeoutMs?: number;\n  intervalMs?: number;\n  /* Clock. Use Date.now or performance.now for sub-ms precision. Defaults to Date.now */\n  clockMs?: () => number;\n  /** Sleeping function. Defaults to setTimeout. */\n  sleepMs?: (amount: number) => Promise<void>;\n  /**\n   * Test for the validity of a value. If this is provided and fails on a value, The waiter will\n   * retry.\n   */\n  valueTest?: (item: T) => boolean;\n  /** Callback if an error occurs when the value is read. Optional. */\n  onAttemptError?: (error: Error) => void;\n  /** Callback if the wait exceeds. Throws an error if this isn't specified. */\n  onTimeout?: (error?: Error) => void;\n}\n\n/**\n * Waits for an attempt to return without throwing an error and return a value that passes a value\n * check.\n *\n * Retries every intervalMs until timeoutMs at which point it throws an error or returns a null if\n * onTimeout callback is provided.\n */\nexport async function waitFor<T>(\n  attempt: () => Promise<T>,\n  options: WaitForOptions<T> = {}\n): Promise<T | null> {\n  const {\n    timeoutMs = 5e3,\n    intervalMs = 100,\n    clockMs = Date.now,\n    sleepMs = sleep,\n    valueTest,\n    onAttemptError: onEveryError,\n    onTimeout,\n  } = options;\n  const startMs = clockMs();\n\n  let lastError: Error | undefined;\n\n  while (clockMs() < startMs + timeoutMs) {\n    try {\n      const latest = await attempt();\n\n      if (!valueTest || valueTest(latest)) {\n        return latest;\n      }\n    } catch (error) {\n      lastError = parseError(error);\n      onEveryError?.(lastError);\n    }\n\n    // Wait until next attempt.\n    await sleepMs(intervalMs);\n  }\n\n  if (!onTimeout) {\n    if (!lastError) lastError = new Error(`Timeout of ${(timeoutMs / 1e3).toFixed(1)}s exceeded`);\n    throw lastError;\n  } else {\n    onTimeout(lastError);\n    return null;\n  }\n}\n", "export const isInWindow = (): boolean => typeof window !== 'undefined';\nexport const isInWorker = (): boolean => typeof WorkerGlobalScope !== 'undefined';\nexport const isInBrowser = (): boolean => isInWindow() || isInWorker();\n", "/**\n * Wrapper around `console.info` that can be turned on globally via:\n *\n *     logger.setDebugMode(true);\n */\nexport class Logger {\n  private debugMode = false;\n\n  setDebugMode(debugMode: boolean): void {\n    this.debugMode = debugMode;\n  }\n\n  /** Internal console log function */\n  log = (...message: unknown[]): void => {\n    if (this.debugMode) {\n      console.info('[Metrics SDK]', ...message);\n    }\n  };\n}\n\nexport const logger = new Logger();\n", "import { isInWindow } from './utils/isInBrowser';\nimport type { MetricCollector } from './collector/MetricCollector';\nimport { logger } from './logger';\nimport type { BaseNetworkHandler } from './network/BaseNetworkHandler';\nimport type { HistogramMetric, IncrementMetric, InitializeProps, TimerMetric } from './types';\nimport type { MetricsMap } from './collector/types';\n\n// TODO: This needs to have types to add types to the MetricCollector!\nexport abstract class BaseClient {\n  isInitialized = false;\n  timerId?: NodeJS.Timeout;\n  heartBeatId?: NodeJS.Timeout;\n  protected networkHandler?: BaseNetworkHandler;\n  protected metricCollector?: MetricCollector;\n  private onIncrement?: (param: IncrementMetric) => IncrementMetric[];\n  private onAddHistogram?: (param: HistogramMetric) => HistogramMetric[];\n  private onAddTimer?: (param: TimerMetric) => TimerMetric[];\n\n  abstract sendHeartBeatCounter(version: string): void;\n\n  // Initialize SDK instance\n  initialize(props: InitializeProps): void {\n    const {\n      debugMode = false,\n      logTimeInterval = 5 * 1000, // By default, flush all events every 5 secs\n      onIncrement = (v: IncrementMetric) => [v],\n      onAddHistogram = (v: HistogramMetric) => [v],\n      onAddTimer = (v: TimerMetric) => [v],\n    } = props;\n\n    logger.setDebugMode(debugMode);\n    this.networkHandler = props.networkHandler;\n    this.metricCollector = this.networkHandler?.config.collector;\n\n    this.onIncrement = onIncrement;\n    this.onAddHistogram = onAddHistogram;\n    this.onAddTimer = onAddTimer;\n\n    // Set a interval job to flush all events\n    this.timerId = setInterval(this.flush, logTimeInterval);\n\n    // Trying to flush all events before leaving the page\n    // Note that this is not guaranteed to completed before browser cancels the request\n    // because blocking users from leaving current page is not a proper design\n    // TODO: might consider using Web Worker\n    if (isInWindow()) {\n      window.addEventListener('beforeunload', this.flush);\n    }\n\n    this.isInitialized = true;\n    logger.log('initializing SDK with config', props);\n  }\n\n  // Cancel the interval timer and reset metrics\n  destroy(): void {\n    logger.log('destroying SDK.');\n    if (this.timerId) {\n      clearInterval(this.timerId);\n    }\n    if (this.heartBeatId) {\n      clearInterval(this.heartBeatId);\n    }\n    this.isInitialized = false;\n    this.metricCollector?.clearMetrics();\n    if (isInWindow()) {\n      window.removeEventListener('beforeunload', this.flush);\n    }\n  }\n\n  isReady(): boolean {\n    return this.isInitialized;\n  }\n\n  // Increment counter value\n  increment(metric: IncrementMetric): void {\n    if (!this.isInitialized || !this.metricCollector) {\n      return;\n    }\n    for (const mappedMetric of this.onIncrement?.(metric) ?? []) {\n      const { metricsName, dimensions, value = 1 } = mappedMetric;\n      if (!Number.isInteger(value)) {\n        throw new Error('value must be an integer in increment.');\n      }\n      this.metricCollector.increment({ metricsName, dimensions, value });\n      logger.log(\n        `increment counter ${metricsName} with dimension `,\n        dimensions,\n        ' with value ',\n        value\n      );\n    }\n  }\n\n  addHistogram(metric: HistogramMetric): void {\n    if (!this.isInitialized || !this.metricCollector) {\n      return;\n    }\n    for (const mappedMetric of this.onAddHistogram?.(metric) ?? []) {\n      const { metricsName, dimensions, value } = mappedMetric;\n      this.metricCollector.addHistogram({ metricsName, dimensions, value });\n      logger.log(\n        `addHistogram level ${metricsName} with dimension `,\n        dimensions,\n        ' with value ',\n        value\n      );\n    }\n  }\n\n  addTimer(metric: TimerMetric): void {\n    if (!this.isInitialized || !this.metricCollector) {\n      return;\n    }\n\n    for (const mappedMetric of this.onAddTimer?.(metric) ?? []) {\n      const { metricsName, dimensions, milliSec } = mappedMetric;\n      // From https://wiki.sc-corp.net/display/INF/Realtime+Metrics+At+Snap\n      // \"Must be non-negative integer with upper limit of 360 Million\"\n      // Round to be able to support adding floating point numbers. Useful example:\n      // Graphene.addTimer({metricsName, millSec: performance.now() - startTime});\n      const roundedMilliSec = Math.round(milliSec);\n\n      this.metricCollector.addTimer({ metricsName, dimensions, milliSec: roundedMilliSec });\n      logger.log(\n        `addTimer timer ${metricsName} with dimension `,\n        dimensions,\n        ' with milliSec ',\n        roundedMilliSec\n      );\n    }\n  }\n\n  /** Return all collected metrics */\n  getCollectedMetrics(): MetricsMap<unknown, unknown, unknown> | undefined {\n    return this.metricCollector?.metrics;\n  }\n\n  /** Whether SDK has any metrics. Return true, if there is no metrics to flush out. */\n  isMetricEmpty = (): boolean => !this.metricCollector || this.metricCollector.isEmpty();\n\n  /** Flush out and send all collected metrics */\n  flush = (): Promise<void> => {\n    if (!this.metricCollector || !this.networkHandler || this.metricCollector.isEmpty()) {\n      return Promise.resolve();\n    }\n    logger.log('flushing metrics', this.metricCollector.metrics);\n    const binaryPayload = this.metricCollector.getPayload();\n    this.metricCollector.clearMetrics();\n    return this.networkHandler.sendRequest(binaryPayload);\n  };\n}\n", "export const AuthType = {\n  Lca: 'lca',\n  WebAttestation: 'webAttestation',\n  None: 'none',\n} as const;\nexport type AuthType = (typeof AuthType)[keyof typeof AuthType];\n", "import type { HeaderMap } from '../types';\nimport type { AuthType } from './constants';\n\nexport abstract class Authenticator {\n  abstract authRequest(\n    authType: AuthType,\n    payload: Uint8Array,\n    headers: HeaderMap\n  ): Promise<HeaderMap>;\n}\n", "import type { BaseLogParam } from '../types';\nimport type { MetricsMap } from './types';\n\nexport abstract class MetricCollector<T1 = unknown, T2 = T1, T3 = T1> {\n  metrics: MetricsMap<T1, T2, T3>;\n\n  constructor() {\n    this.metrics = this.getFreshMetrics();\n  }\n\n  getFreshMetrics(): MetricsMap<T1, T2, T3> {\n    return {\n      counters: {},\n      timers: {},\n      levels: {},\n    };\n  }\n\n  isEmpty(): boolean {\n    return (\n      !Object.keys(this.metrics.counters).length &&\n      !Object.keys(this.metrics.timers).length &&\n      !Object.keys(this.metrics.levels).length\n    );\n  }\n\n  /** Clear out all stored metrics */\n  clearMetrics(): void {\n    this.metrics = this.getFreshMetrics();\n  }\n\n  abstract addHistogram({ metricsName, dimensions, value }: BaseLogParam & { value: number }): void;\n  abstract addTimer({\n    metricsName,\n    dimensions,\n    milliSec,\n  }: BaseLogParam & { milliSec: number }): void;\n  abstract getPayload(): Uint8Array;\n  abstract increment({ metricsName, dimensions, value }: BaseLogParam & { value: number }): void;\n}\n", "import type { Config } from '../config/types';\n\nexport abstract class BaseNetworkHandler {\n  readonly config: Config;\n\n  constructor(options: Config) {\n    this.config = options;\n  }\n\n  abstract sendRequest(payload: Uint8Array): Promise<void>;\n}\n", "import { logger } from '../logger';\nimport { BaseNetworkHandler } from './BaseNetworkHandler';\n\nexport class FetchError extends Error {\n  public status: number;\n  public statusText: string;\n  constructor(args: { status: number; statusText: string }) {\n    super(`Fetch error: ${args.status} - ${args.statusText}`);\n    this.status = args.status;\n    this.statusText = args.statusText;\n  }\n}\n\n/** A network handler that uses the fetch API. */\nexport class FetchNetworkHandler extends BaseNetworkHandler {\n  sendRequest(payload: Uint8Array): Promise<void> {\n    const { authType, authenticator, protocol, host, path, headers } = this.config;\n\n    return authenticator\n      .authRequest(authType, payload, headers)\n      .then(\n        authedHeaders =>\n          new Promise<void>((resolve, reject) => {\n            const url = `${protocol}//${host}${path}`;\n            return fetch(url, {\n              method: 'POST',\n              headers: authedHeaders,\n              body: payload,\n            })\n              .then(response => {\n                logger.log(\n                  'Received response from metrics server. Status code:',\n                  response.status,\n                  response.statusText\n                );\n                if (response.ok) {\n                  resolve();\n                } else {\n                  reject(\n                    new FetchError({\n                      status: response.status,\n                      statusText: response.statusText,\n                    })\n                  );\n                }\n              })\n              .catch((reason: DOMException | TypeError) => {\n                reject(\n                  new FetchError({\n                    status: -1,\n                    statusText: reason.message,\n                  })\n                );\n              });\n          })\n      )\n      .catch(e => {\n        logger.log('Got error when sending request:', e);\n      });\n  }\n}\n", "import type { BaseLogParam } from '../types';\n\n/**\n * Computes the metric key based on the provided parameters.\n *\n * @param metricsName - The name of the metric.\n * @param dimensions - The dimensions associated with the metric.\n * @param prefixes - Optional prefixes to be added to the metric key.\n * @returns The computed metric key.\n */\nexport const computeMetricKey = ({\n  metricsName,\n  dimensions,\n  prefixes = [],\n}: BaseLogParam & { prefixes?: string[] }): string => {\n  const metricNameFragments = [...prefixes];\n  metricNameFragments.push(metricsName);\n  if (dimensions) {\n    // sort the dimension keys to get stable key\n    Object.keys(dimensions)\n      .sort()\n      .forEach((key: string) => {\n        const value: string = dimensions[key];\n        metricNameFragments.push(key, value);\n      });\n  }\n  return metricNameFragments.join('.');\n};\n", "/**\n * Generate random number in a range (inclusive)\n *\n * @param min {number}: Min bound\n * @param max {number}: Max bound\n * @returns {number} A random integer in [min, max]\n */\nexport const getRandomIntFromRange = (min: number, max: number): number =>\n  Math.floor(Math.random() * (max - min + 1)) + min;\n", "import { getRandomIntFromRange } from './getRandomIntFromRange';\n\n/**\n * Use Reservoir Sampling to sample at most maxSize elements from given array\n *\n * @param array {T[]}: An array of elements to be sampled from\n * @param maxSize {number}: Max number of elements to be chosen\n * @returns {T[]} An array of element chosen randomly\n */\nexport const reservoirSample = <T>(array: T[], maxSize: number): T[] => {\n  if (array.length <= maxSize) {\n    return array;\n  }\n  const newValueList = array.slice(0, maxSize);\n  for (let i = maxSize; i < array.length; i++) {\n    const nextIndex = getRandomIntFromRange(0, i);\n    if (nextIndex < maxSize) {\n      newValueList[nextIndex] = array[i];\n    }\n  }\n  return newValueList;\n};\n", "/**\n * Encodes a string using base64 encoding.\n *\n * @param str - The string to be encoded.\n * @returns The base64 encoded string.\n */\nexport const inlineBtoa = (str: string): string => Buffer.from(str, 'binary').toString('base64');\n", "// TODO: Remove exports from @snapchat/metrics-utils so users who can import\n// directly from it.\nexport type {\n  MetricsMap,\n  Config,\n  BaseLogParam,\n  Dimensions,\n  HeaderMap,\n  HistogramMetric,\n  IncrementMetric,\n  InitializeProps,\n  TimerMetric,\n} from '@snapchat/metrics-utils';\nexport {\n  logger,\n  AuthType,\n  Authenticator,\n  MetricCollector,\n  FetchNetworkHandler,\n  BaseNetworkHandler,\n} from '@snapchat/metrics-utils';\n\nexport { Partition as PARTITION } from './partition'; // For backwards compatibility with 7.x.x\nexport { Partition } from './partition';\nexport { graphene, Graphene } from './graphene';\nexport { WebMetricCollector, type WebMetricCollectorOptions } from './collector/WebMetricCollector';\nexport { getWebConfig } from './config/web';\n", "/**\n * Define partition name here. Similar with\n * https://github.sc-corp.net/Snapchat/android/blob/master/snapchat/platform/analytics/graphene/api/src/main/java/com/snap/graphene/schema/Partition.java\n */\nexport enum Partition {\n  UNDEFINED = 'undefined',\n  ADS_LIBRARY = 'ads_library',\n  ADS_MANAGER = 'ads_manager',\n  BUSINESS_MANAGER = 'business_manager',\n  PROFILE_MANAGER = 'profile_manager',\n  REVIEW_TOOL = 'review_tool',\n  SNAP_MAPS = 'snap_maps',\n  FOR_BUSINESS = 'for_business',\n  ADFORMATS_WEB = 'adformats_web',\n  DISCOVER_CMS = 'discover_cms',\n  SNAP_WEB = 'snap_web',\n  NEWSROOM = 'newsroom',\n  YELLOW_LA = 'yellow_la',\n  CITIZEN_SNAP = 'citizen_snap',\n  SNAP_FOUNDATION = 'snap_foundation',\n  ENG_BLOG = 'eng_blog',\n  RESEARCH_SNAP = 'research_snap',\n  MY_LENSES = 'my_lenses',\n  PLAYCANVAS = 'playcanvas',\n  MEASUREMENT_PORTAL = 'measurement_portal',\n  TRUST = 'trust',\n  CHEERIOS = 'cheerios',\n  SPS = 'sps',\n  // added partitions by Bynd team\n  AR_SNAP = 'ar_snap',\n  DEVELOPER_SNAP = 'developer_snap',\n  DANDELION = 'dandelion',\n  CREATORS_SNAP = 'creators_snap',\n  DIVERSITY = 'diversity',\n  // to be used for snapchat on the web, including web sharing and story.snapchat.com\n  SNAPCHAT_WEB = 'snapchat_web',\n  EMBEDDED_WEBVIEW_ADS = 'embedded_webview_ads',\n  METRICS_MONITOR = 'metrics_monitor',\n  SNAPGRAPH = 'snapgraph',\n  MEASUREMENT_RESONANCE_SURVEY = 'measurement_resonance_survey',\n  MEASUREMENT_MR_SURVEY = 'measurement_mr_survey',\n  MEASUREMENT_COLLECTION_SURVEY = 'measurement_collection_survey',\n  // used for story studio lite (my.snapchat.com) - https://snapchat.quip.com/LRWmAVmV90zp\n  STORY_STUDIO_LITE = 'story_studio_lite',\n  // used for metrics within the web_self_serve_ads monorepo https://github.sc-corp.net/Snapchat/web-self-serve-ads\n  WEB_SELF_SERVE_ADS = 'web_self_serve_ads',\n  ARCADIA = 'arcadia',\n  SNAP_523 = 'snap_523',\n  ORIGINALS = 'originals',\n  // used for the law enforcement operations (LEO) internal web tool repo: https://github.sc-corp.net/Snapchat/leo-portal\n  LEO_WEB = 'leo_web',\n  // used for desktop web snapchat client\n  DWEB = 'dweb',\n  SCN_CONTENT_MANAGER = 'scn_content_manager',\n  ADVERTISER_360 = 'advertiser_360',\n  CAREERS = 'careers',\n  PRIVACY_INFRA = 'privacy_infra',\n  BLIZZARD = 'blizzard',\n  // used for the Snap cookie modal and related settings page used across website properties\n  COOKIE_MODAL_COMPONENTS = 'cookie_modal_components',\n  // used for content tools projects (storyteller, BIB) https://github.sc-corp.net/Snapchat/search/tree/master/ranking/snapgraph/web\n  CONTENT_TOOLS = 'content_tools',\n  WEB_ACCOUNTS = 'web_accounts',\n  // used for metrics within the marketing-web monorepo - https://github.sc-corp.net/Snapchat/marketing-web\n  MARKETING_WEB_PLATFORM = 'marketing_web_platform',\n  // added by AR Enterprise Shopping for off-platform web experiences through our SDK\n  ARES_SDK = 'ares_sdk',\n  // used for metrics on SnapOrca - https://github.sc-corp.net/Snapchat/snap-orca/\n  SNAP_ORCA = 'snap_orca',\n  // used for metrics on Safety Review Tool - https://github.sc-corp.net/Snapchat/safety-review-tool\n  SAFETY_REVIEW_TOOL = 'safety_review_tool',\n  // used for adding metrics to the Reporting-Service SDK\n  REPORTING_SERVICE = 'reporting_service',\n  // used for calling\n  SCN_ADDLIVE = 'scn_addlive',\n  // Used for Quality Org tooling\n  QUALITY = 'quality',\n  // used by parents.snapchat.com MWP microsite\n  PARENTS = 'parents',\n  // used by enterprise manager\n  ENTERPRISE_MANAGER = 'enterprise_manager',\n  // used by digital asset manager\n  DIGITAL_ASSET_MANAGER = 'digital_asset_manager',\n  // used by lens web builder - https://github.sc-corp.net/Snapchat/Lens-web-builder\n  LENS_WEB_BUILDER = 'lens_web_builder',\n  // used by Snapchat Camera for web (browser extension)\n  SNAPCHAT_CAMERA_BROWSER_EXTENSION = 'snapchat_camera_browser_extension',\n  // used by web ar player https://github.sc-corp.net/Snapchat/web-ar-player\n  WEB_AR_PLAYER = 'web_ar_player',\n  // Used by any web product that is using standard logging without a need for a special partition.\n  // https://wiki.sc-corp.net/pages/viewpage.action?pageId=292521031\n  WEB_COMMON = 'web_common',\n  // used for metrics in hosted lenses - https://github.sc-corp.net/Snapchat/hosted-lenses-ui\n  HOSTED_LENSES = 'hosted_lenses',\n  AVALON = 'avalon',\n  // our in-house attestation solution - currently https://github.sc-corp.net/Snapchat/kameleon\n  ATTESTATION = 'attestation',\n  EXPERIENCE = 'experience',\n  // used by lens services team for work on the ar.snap.com/download page\n  AR_WEB = 'ar_web',\n  // used by LEO's Law Enforcement Operations Portal (LESS) - https://github.sc-corp.net/Snapchat/less\n  SNAP_LESS = 'snap-less',\n  // used by the data protection team\n  SNAP_IAM_WEB = 'snap_iam_web',\n  // My AI Enterprise\n  MY_AI_ENTERPRISE = 'my_ai_enterprise',\n}\n", "import { isInWindow, BaseClient, type InitializeProps } from '@snapchat/metrics-utils';\nimport { ActivityDetector } from './ActivityDetector';\n\n// By default if user don't have any activity in 60 second, then it is inactive\nexport const defaultInactiveThreshold = 60;\n\nexport class Graphene extends BaseClient {\n  activityDetector?: ActivityDetector;\n\n  // Initialize graphene instance\n  initialize(props: InitializeProps): void {\n    if (this.isInitialized) {\n      throw new Error(\"this instance has been initialized. Can't re-initialize it.\");\n    }\n    super.initialize(props);\n\n    const { inactiveThresholdInSecond = defaultInactiveThreshold } = props;\n\n    if (isInWindow()) {\n      this.activityDetector = new ActivityDetector(inactiveThresholdInSecond);\n      // Trying to flush all events before leaving the page\n      // Note that this is not guaranteed to completed before browser cancels the request\n      // because blocking users from leaving current page is not a proper design\n      window.addEventListener('beforeunload', this.flush);\n    }\n  }\n\n  // send heart beat event\n  sendHeartBeatCounter = (version: string): void => {\n    if (!this.isInitialized) {\n      return;\n    }\n    const heartBeatDuration = 60000;\n    const sendHeartBeatEvent = () => {\n      const active = this.activityDetector?.getIsActive() ? 'active' : 'inactive';\n      this.increment({ metricsName: 'heart_beat', dimensions: { version, active } });\n    };\n    sendHeartBeatEvent();\n    this.heartBeatId = setInterval(sendHeartBeatEvent, heartBeatDuration);\n  };\n\n  // Cancel the interval timer and reset metrics\n  destroy(): void {\n    super.destroy();\n    if (isInWindow()) {\n      window.removeEventListener('beforeunload', this.flush);\n    }\n    if (this.activityDetector) {\n      this.activityDetector.destroy();\n    }\n  }\n}\n\n/** Default Graphene instance. If you need more clients, create them using `new Graphene()`. */\nexport const graphene = new Graphene();\n", "const activityEvents: string[] = ['mousedown', 'mousemove', 'keydown', 'scroll', 'touchstart'];\n\n/**\n * Represents an activity detector that tracks user activity and determines if the current browser\n * tab is inactive.\n */\nexport class ActivityDetector {\n  private lastActivityTimestamp: number;\n  private readonly inactiveThresholdInSecond: number;\n\n  /**\n   * Creates an instance of ActivityDetector.\n   *\n   * @param inactiveThresholdInSecond - The threshold in seconds to consider the browser tab as\n   *   inactive.\n   */\n  constructor(inactiveThresholdInSecond: number) {\n    this.lastActivityTimestamp = Date.now();\n    this.inactiveThresholdInSecond = inactiveThresholdInSecond;\n    this.registerListeners();\n  }\n\n  destroy = (): void => {\n    activityEvents.forEach((eventName): void => {\n      document.removeEventListener(eventName, this.onActivity, true);\n    });\n  };\n\n  /** Callback when user has any activity */\n  onActivity = (): void => {\n    // reset the timer\n    this.lastActivityTimestamp = Date.now();\n  };\n\n  /** Register all DOM events listeners tied to user activity */\n  registerListeners = (): void => {\n    activityEvents.forEach((eventName): void => {\n      document.addEventListener(eventName, this.onActivity, true);\n    });\n  };\n\n  /** Return seconds since last activity. */\n  getSecondsSinceLastActivity = (): number =>\n    Math.round((Date.now() - this.lastActivityTimestamp) / 1000);\n\n  /** Whether current browser tab is inactive. */\n  getIsActive = (): boolean => this.getSecondsSinceLastActivity() < this.inactiveThresholdInSecond;\n}\n", "import { Partition } from '../partition';\nimport {\n  MetricCollector,\n  type MetricsMap,\n  type BaseLogParam,\n  type Dimensions,\n  reservoirSample,\n  computeMetricKey,\n} from '@snapchat/metrics-utils';\n\n// TODO: See if we can use '@snapchat/ts-protos/graphene/metrics', but they\n// use `string` for uint64 encoding.\nimport {\n  MetricFrame,\n  Metric,\n  AppVersion,\n  type AppVersion_VersionNumber,\n  OsType,\n} from '../generated/proto/metrics_web';\n\nexport interface WebMetricCollectorOptions {\n  // build flavor, e.g., local, stage, prod\n  flavor?: string;\n  // Max size per metric\n  maxSizePerMetric?: number;\n  // use project name\n  partitionName: Partition;\n  // SNAPSHOT, OG, MUSHROOM see Blizzard Schema's AppVariantType https://snapchat.quip.com/UVHDA0J59IDz\n  variant?: string;\n  // Sematic version of the app\n  versionNumber?: AppVersion_VersionNumber;\n  // dimensions that'll be added to each metric.\n  defaultDimensions?: Dimensions;\n}\n\ntype WebMetricsMap = MetricsMap<Metric>;\n\n/** Dedicated for frontend use case. Collect and process metrics. */\nexport class WebMetricCollector extends MetricCollector<Metric> {\n  partitionName: Partition;\n  private flavor?: string;\n  private variant?: string;\n  private versionNumber?: AppVersion_VersionNumber;\n  private maxSizePerMetric: number;\n  private defaultDimensions?: Dimensions;\n\n  constructor(options: WebMetricCollectorOptions) {\n    super();\n    if (\n      !options.partitionName ||\n      !Partition[options.partitionName.toUpperCase() as keyof typeof Partition]\n    ) {\n      throw new Error('Partition is not defined!');\n    }\n    this.partitionName = options.partitionName;\n    this.flavor = options.flavor;\n    this.variant = options.variant;\n    this.versionNumber = options.versionNumber;\n    this.maxSizePerMetric = options.maxSizePerMetric || 50;\n    this.defaultDimensions = options.defaultDimensions;\n  }\n\n  increment({ metricsName, dimensions, value }: BaseLogParam & { value: number }): void {\n    const metricKey = computeMetricKey({ metricsName, dimensions });\n    const prevMetricObject = this.metrics.counters[metricKey];\n    this.metrics.counters[metricKey] = this.updateMetricObject({\n      prevMetricObject,\n      metricsName,\n      dimensions: this._decorateDimensions(dimensions),\n      value,\n      shouldAggregate: true,\n    });\n  }\n\n  addHistogram({ metricsName, dimensions, value }: BaseLogParam & { value: number }): void {\n    const metricKey = computeMetricKey({ metricsName, dimensions });\n    const prevMetricObject = this.metrics.levels[metricKey];\n    this.metrics.levels[metricKey] = this.updateMetricObject({\n      prevMetricObject,\n      metricsName,\n      dimensions: this._decorateDimensions(dimensions),\n      value,\n      shouldAggregate: false,\n    });\n  }\n\n  addTimer({ metricsName, dimensions, milliSec }: BaseLogParam & { milliSec: number }): void {\n    const metricKey = computeMetricKey({ metricsName, dimensions });\n    const prevMetricObject = this.metrics.timers[metricKey];\n    this.metrics.timers[metricKey] = this.updateMetricObject({\n      prevMetricObject,\n      metricsName,\n      dimensions: this._decorateDimensions(dimensions),\n      value: milliSec,\n      shouldAggregate: false,\n    });\n  }\n\n  getPayload(): Uint8Array {\n    const frame = this.convertToMetricFrame(this.metrics);\n    return MetricFrame.encode(frame).finish();\n  }\n\n  updateMetricObject({\n    prevMetricObject,\n    metricsName,\n    dimensions = {},\n    value,\n    shouldAggregate = false,\n  }: BaseLogParam & {\n    prevMetricObject: Metric | undefined;\n    value: number;\n    shouldAggregate?: boolean;\n  }): Metric {\n    let metricObject = prevMetricObject;\n    // If there was no metric object, then create a new one\n    if (!metricObject) {\n      metricObject = Metric.fromPartial({\n        partitionName: this.partitionName,\n        metricName: metricsName,\n        customDimensions: dimensions,\n      });\n    }\n\n    // if aggregate, then sum up the value into single value\n    // otherwise, append new metric in the value list\n    if (shouldAggregate) {\n      const existingValueList = metricObject.values;\n      const newValue = value + (Number(existingValueList[0]) || 0);\n      metricObject.values = [newValue];\n    } else {\n      metricObject.values.push(value);\n    }\n    return metricObject;\n  }\n\n  // convert metrics into MetricFrame which is protobuf format\n  convertToMetricFrame(metricsToConvert: WebMetricsMap): MetricFrame {\n    const frame = MetricFrame.create();\n    frame.clientOsType = OsType.OS_WEB;\n\n    // If app version related values are set, then set app version\n    if (this.flavor || this.variant || this.versionNumber) {\n      const appVersion = AppVersion.create();\n      if (this.flavor) {\n        appVersion.flavor = this.flavor;\n      }\n      if (this.variant) {\n        appVersion.variant = this.variant;\n      }\n      if (this.versionNumber) {\n        appVersion.versionNumber = this.versionNumber;\n      }\n      frame.appVersion = appVersion;\n    }\n\n    Object.keys(metricsToConvert.counters).forEach(key => {\n      const metric = metricsToConvert.counters[key];\n      frame.counters.push(metric);\n    });\n    Object.keys(metricsToConvert.timers).forEach(key => {\n      const metric = this.sampleMetricValues(metricsToConvert.timers[key]);\n      frame.timers.push(metric);\n    });\n    Object.keys(metricsToConvert.levels).forEach(key => {\n      const metric = this.sampleMetricValues(metricsToConvert.levels[key]);\n      frame.levels.push(metric);\n    });\n    return frame;\n  }\n\n  // Reservoir Sampling on metric value list\n  sampleMetricValues(metricObject: Metric): Metric {\n    metricObject.values = reservoirSample(metricObject.values, this.maxSizePerMetric);\n    return metricObject;\n  }\n\n  _decorateDimensions(dimensions: Dimensions | undefined): Dimensions | undefined {\n    if (!this.defaultDimensions) {\n      return dimensions;\n    }\n    return {\n      ...this.defaultDimensions,\n      ...(dimensions ?? {}),\n    };\n  }\n}\n", "// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n//   protoc-gen-ts_proto  v1.181.1\n//   protoc               v5.28.3\n// source: proto/metrics_web.proto\n\n/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal.js\";\n\n/** Operating system type - prefixed with OS_ to avoid NDK definition conflict. */\nexport enum OsType {\n  UNKNOWN_OS_TYPE = 0,\n  OS_IOS = 1,\n  OS_ANDROID = 2,\n  OS_WEB = 3,\n  UNRECOGNIZED = -1,\n}\n\nexport function osTypeFromJSON(object: any): OsType {\n  switch (object) {\n    case 0:\n    case \"UNKNOWN_OS_TYPE\":\n      return OsType.UNKNOWN_OS_TYPE;\n    case 1:\n    case \"OS_IOS\":\n      return OsType.OS_IOS;\n    case 2:\n    case \"OS_ANDROID\":\n      return OsType.OS_ANDROID;\n    case 3:\n    case \"OS_WEB\":\n      return OsType.OS_WEB;\n    case -1:\n    case \"UNRECOGNIZED\":\n    default:\n      return OsType.UNRECOGNIZED;\n  }\n}\n\nexport function osTypeToJSON(object: OsType): string {\n  switch (object) {\n    case OsType.UNKNOWN_OS_TYPE:\n      return \"UNKNOWN_OS_TYPE\";\n    case OsType.OS_IOS:\n      return \"OS_IOS\";\n    case OsType.OS_ANDROID:\n      return \"OS_ANDROID\";\n    case OsType.OS_WEB:\n      return \"OS_WEB\";\n    case OsType.UNRECOGNIZED:\n    default:\n      return \"UNRECOGNIZED\";\n  }\n}\n\nexport interface AppVersion {\n  versionNumber:\n    | AppVersion_VersionNumber\n    | undefined;\n  /** build flavor DEBUG, CANARY, ALPHA, MASTER */\n  flavor: string;\n  /** SNAPSHOT, OG, MUSHROOM see Blizzard Schema's AppVariantType https://snapchat.quip.com/UVHDA0J59IDz */\n  variant: string;\n}\n\n/** Deconstructed app version values (e.g 10.32.0.41512) */\nexport interface AppVersion_VersionNumber {\n  major: number;\n  minor: number;\n  patch: number;\n  build: number;\n}\n\n/** Used to represent multi-value collections - i.e buffers of timers/histograms (levels) */\nexport interface Metric {\n  /** key string (32 bytes max) */\n  partitionName: string;\n  /** value string (32 bytes max) */\n  metricName: string;\n  /** max 5 custom dimensions (32 bytes key to 100 byte mapping) */\n  customDimensions: { [key: string]: string };\n  /**\n   * Bound collection of values\n   * Units unspecified in transit - this depends on interpretation by the consumer/producer\n   * Scalar aggregate outputs i.e will have only 1 value (i.e summed up counter values)\n   */\n  values: number[];\n}\n\nexport interface Metric_CustomDimensionsEntry {\n  key: string;\n  value: string;\n}\n\n/** Frames may be flushed abitrarily on the client depending on client buffer size/timing */\nexport interface MetricFrame {\n  timers: Metric[];\n  counters: Metric[];\n  levels: Metric[];\n  /** protocol version of client measure - this is a compile time constant */\n  protocolVersion: number;\n  /**\n   * timestamp of first sampled metric in frame.\n   * milliseconds since epoch.\n   */\n  bufferStartTimestampMillis: number;\n  /**\n   * timestamp of last sampled metric in frame.\n   * milliseconds since epoch.\n   */\n  bufferEndTimestampMillis: number;\n  /** App Version encoded - this value will be the same on all requests from the same client binary */\n  appVersion:\n    | AppVersion\n    | undefined;\n  /** Client identifer - this value will be the same on all requests from the same client binary */\n  clientOsType: OsType;\n  /** User ID - Used for Graphene / Easy AB integration */\n  userId: string;\n}\n\nfunction createBaseAppVersion(): AppVersion {\n  return { versionNumber: undefined, flavor: \"\", variant: \"\" };\n}\n\nexport const AppVersion = {\n  encode(message: AppVersion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n    if (message.versionNumber !== undefined) {\n      AppVersion_VersionNumber.encode(message.versionNumber, writer.uint32(10).fork()).ldelim();\n    }\n    if (message.flavor !== \"\") {\n      writer.uint32(18).string(message.flavor);\n    }\n    if (message.variant !== \"\") {\n      writer.uint32(26).string(message.variant);\n    }\n    return writer;\n  },\n\n  decode(input: _m0.Reader | Uint8Array, length?: number): AppVersion {\n    const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);\n    let end = length === undefined ? reader.len : reader.pos + length;\n    const message = createBaseAppVersion();\n    while (reader.pos < end) {\n      const tag = reader.uint32();\n      switch (tag >>> 3) {\n        case 1:\n          if (tag !== 10) {\n            break;\n          }\n\n          message.versionNumber = AppVersion_VersionNumber.decode(reader, reader.uint32());\n          continue;\n        case 2:\n          if (tag !== 18) {\n            break;\n          }\n\n          message.flavor = reader.string();\n          continue;\n        case 3:\n          if (tag !== 26) {\n            break;\n          }\n\n          message.variant = reader.string();\n          continue;\n      }\n      if ((tag & 7) === 4 || tag === 0) {\n        break;\n      }\n      reader.skipType(tag & 7);\n    }\n    return message;\n  },\n\n  fromJSON(object: any): AppVersion {\n    return {\n      versionNumber: isSet(object.versionNumber) ? AppVersion_VersionNumber.fromJSON(object.versionNumber) : undefined,\n      flavor: isSet(object.flavor) ? globalThis.String(object.flavor) : \"\",\n      variant: isSet(object.variant) ? globalThis.String(object.variant) : \"\",\n    };\n  },\n\n  toJSON(message: AppVersion): unknown {\n    const obj: any = {};\n    if (message.versionNumber !== undefined) {\n      obj.versionNumber = AppVersion_VersionNumber.toJSON(message.versionNumber);\n    }\n    if (message.flavor !== \"\") {\n      obj.flavor = message.flavor;\n    }\n    if (message.variant !== \"\") {\n      obj.variant = message.variant;\n    }\n    return obj;\n  },\n\n  create<I extends Exact<DeepPartial<AppVersion>, I>>(base?: I): AppVersion {\n    return AppVersion.fromPartial(base ?? ({} as any));\n  },\n  fromPartial<I extends Exact<DeepPartial<AppVersion>, I>>(object: I): AppVersion {\n    const message = createBaseAppVersion();\n    message.versionNumber = (object.versionNumber !== undefined && object.versionNumber !== null)\n      ? AppVersion_VersionNumber.fromPartial(object.versionNumber)\n      : undefined;\n    message.flavor = object.flavor ?? \"\";\n    message.variant = object.variant ?? \"\";\n    return message;\n  },\n};\n\nfunction createBaseAppVersion_VersionNumber(): AppVersion_VersionNumber {\n  return { major: 0, minor: 0, patch: 0, build: 0 };\n}\n\nexport const AppVersion_VersionNumber = {\n  encode(message: AppVersion_VersionNumber, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n    if (message.major !== 0) {\n      writer.uint32(8).int32(message.major);\n    }\n    if (message.minor !== 0) {\n      writer.uint32(16).int32(message.minor);\n    }\n    if (message.patch !== 0) {\n      writer.uint32(24).int32(message.patch);\n    }\n    if (message.build !== 0) {\n      writer.uint32(32).int32(message.build);\n    }\n    return writer;\n  },\n\n  decode(input: _m0.Reader | Uint8Array, length?: number): AppVersion_VersionNumber {\n    const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);\n    let end = length === undefined ? reader.len : reader.pos + length;\n    const message = createBaseAppVersion_VersionNumber();\n    while (reader.pos < end) {\n      const tag = reader.uint32();\n      switch (tag >>> 3) {\n        case 1:\n          if (tag !== 8) {\n            break;\n          }\n\n          message.major = reader.int32();\n          continue;\n        case 2:\n          if (tag !== 16) {\n            break;\n          }\n\n          message.minor = reader.int32();\n          continue;\n        case 3:\n          if (tag !== 24) {\n            break;\n          }\n\n          message.patch = reader.int32();\n          continue;\n        case 4:\n          if (tag !== 32) {\n            break;\n          }\n\n          message.build = reader.int32();\n          continue;\n      }\n      if ((tag & 7) === 4 || tag === 0) {\n        break;\n      }\n      reader.skipType(tag & 7);\n    }\n    return message;\n  },\n\n  fromJSON(object: any): AppVersion_VersionNumber {\n    return {\n      major: isSet(object.major) ? globalThis.Number(object.major) : 0,\n      minor: isSet(object.minor) ? globalThis.Number(object.minor) : 0,\n      patch: isSet(object.patch) ? globalThis.Number(object.patch) : 0,\n      build: isSet(object.build) ? globalThis.Number(object.build) : 0,\n    };\n  },\n\n  toJSON(message: AppVersion_VersionNumber): unknown {\n    const obj: any = {};\n    if (message.major !== 0) {\n      obj.major = Math.round(message.major);\n    }\n    if (message.minor !== 0) {\n      obj.minor = Math.round(message.minor);\n    }\n    if (message.patch !== 0) {\n      obj.patch = Math.round(message.patch);\n    }\n    if (message.build !== 0) {\n      obj.build = Math.round(message.build);\n    }\n    return obj;\n  },\n\n  create<I extends Exact<DeepPartial<AppVersion_VersionNumber>, I>>(base?: I): AppVersion_VersionNumber {\n    return AppVersion_VersionNumber.fromPartial(base ?? ({} as any));\n  },\n  fromPartial<I extends Exact<DeepPartial<AppVersion_VersionNumber>, I>>(object: I): AppVersion_VersionNumber {\n    const message = createBaseAppVersion_VersionNumber();\n    message.major = object.major ?? 0;\n    message.minor = object.minor ?? 0;\n    message.patch = object.patch ?? 0;\n    message.build = object.build ?? 0;\n    return message;\n  },\n};\n\nfunction createBaseMetric(): Metric {\n  return { partitionName: \"\", metricName: \"\", customDimensions: {}, values: [] };\n}\n\nexport const Metric = {\n  encode(message: Metric, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n    if (message.partitionName !== \"\") {\n      writer.uint32(10).string(message.partitionName);\n    }\n    if (message.metricName !== \"\") {\n      writer.uint32(18).string(message.metricName);\n    }\n    Object.entries(message.customDimensions).forEach(([key, value]) => {\n      Metric_CustomDimensionsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).ldelim();\n    });\n    writer.uint32(34).fork();\n    for (const v of message.values) {\n      writer.int64(v);\n    }\n    writer.ldelim();\n    return writer;\n  },\n\n  decode(input: _m0.Reader | Uint8Array, length?: number): Metric {\n    const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);\n    let end = length === undefined ? reader.len : reader.pos + length;\n    const message = createBaseMetric();\n    while (reader.pos < end) {\n      const tag = reader.uint32();\n      switch (tag >>> 3) {\n        case 1:\n          if (tag !== 10) {\n            break;\n          }\n\n          message.partitionName = reader.string();\n          continue;\n        case 2:\n          if (tag !== 18) {\n            break;\n          }\n\n          message.metricName = reader.string();\n          continue;\n        case 3:\n          if (tag !== 26) {\n            break;\n          }\n\n          const entry3 = Metric_CustomDimensionsEntry.decode(reader, reader.uint32());\n          if (entry3.value !== undefined) {\n            message.customDimensions[entry3.key] = entry3.value;\n          }\n          continue;\n        case 4:\n          if (tag === 32) {\n            message.values.push(longToNumber(reader.int64() as Long));\n\n            continue;\n          }\n\n          if (tag === 34) {\n            const end2 = reader.uint32() + reader.pos;\n            while (reader.pos < end2) {\n              message.values.push(longToNumber(reader.int64() as Long));\n            }\n\n            continue;\n          }\n\n          break;\n      }\n      if ((tag & 7) === 4 || tag === 0) {\n        break;\n      }\n      reader.skipType(tag & 7);\n    }\n    return message;\n  },\n\n  fromJSON(object: any): Metric {\n    return {\n      partitionName: isSet(object.partitionName) ? globalThis.String(object.partitionName) : \"\",\n      metricName: isSet(object.metricName) ? globalThis.String(object.metricName) : \"\",\n      customDimensions: isObject(object.customDimensions)\n        ? Object.entries(object.customDimensions).reduce<{ [key: string]: string }>((acc, [key, value]) => {\n          acc[key] = String(value);\n          return acc;\n        }, {})\n        : {},\n      values: globalThis.Array.isArray(object?.values) ? object.values.map((e: any) => globalThis.Number(e)) : [],\n    };\n  },\n\n  toJSON(message: Metric): unknown {\n    const obj: any = {};\n    if (message.partitionName !== \"\") {\n      obj.partitionName = message.partitionName;\n    }\n    if (message.metricName !== \"\") {\n      obj.metricName = message.metricName;\n    }\n    if (message.customDimensions) {\n      const entries = Object.entries(message.customDimensions);\n      if (entries.length > 0) {\n        obj.customDimensions = {};\n        entries.forEach(([k, v]) => {\n          obj.customDimensions[k] = v;\n        });\n      }\n    }\n    if (message.values?.length) {\n      obj.values = message.values.map((e) => Math.round(e));\n    }\n    return obj;\n  },\n\n  create<I extends Exact<DeepPartial<Metric>, I>>(base?: I): Metric {\n    return Metric.fromPartial(base ?? ({} as any));\n  },\n  fromPartial<I extends Exact<DeepPartial<Metric>, I>>(object: I): Metric {\n    const message = createBaseMetric();\n    message.partitionName = object.partitionName ?? \"\";\n    message.metricName = object.metricName ?? \"\";\n    message.customDimensions = Object.entries(object.customDimensions ?? {}).reduce<{ [key: string]: string }>(\n      (acc, [key, value]) => {\n        if (value !== undefined) {\n          acc[key] = globalThis.String(value);\n        }\n        return acc;\n      },\n      {},\n    );\n    message.values = object.values?.map((e) => e) || [];\n    return message;\n  },\n};\n\nfunction createBaseMetric_CustomDimensionsEntry(): Metric_CustomDimensionsEntry {\n  return { key: \"\", value: \"\" };\n}\n\nexport const Metric_CustomDimensionsEntry = {\n  encode(message: Metric_CustomDimensionsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n    if (message.key !== \"\") {\n      writer.uint32(10).string(message.key);\n    }\n    if (message.value !== \"\") {\n      writer.uint32(18).string(message.value);\n    }\n    return writer;\n  },\n\n  decode(input: _m0.Reader | Uint8Array, length?: number): Metric_CustomDimensionsEntry {\n    const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);\n    let end = length === undefined ? reader.len : reader.pos + length;\n    const message = createBaseMetric_CustomDimensionsEntry();\n    while (reader.pos < end) {\n      const tag = reader.uint32();\n      switch (tag >>> 3) {\n        case 1:\n          if (tag !== 10) {\n            break;\n          }\n\n          message.key = reader.string();\n          continue;\n        case 2:\n          if (tag !== 18) {\n            break;\n          }\n\n          message.value = reader.string();\n          continue;\n      }\n      if ((tag & 7) === 4 || tag === 0) {\n        break;\n      }\n      reader.skipType(tag & 7);\n    }\n    return message;\n  },\n\n  fromJSON(object: any): Metric_CustomDimensionsEntry {\n    return {\n      key: isSet(object.key) ? globalThis.String(object.key) : \"\",\n      value: isSet(object.value) ? globalThis.String(object.value) : \"\",\n    };\n  },\n\n  toJSON(message: Metric_CustomDimensionsEntry): unknown {\n    const obj: any = {};\n    if (message.key !== \"\") {\n      obj.key = message.key;\n    }\n    if (message.value !== \"\") {\n      obj.value = message.value;\n    }\n    return obj;\n  },\n\n  create<I extends Exact<DeepPartial<Metric_CustomDimensionsEntry>, I>>(base?: I): Metric_CustomDimensionsEntry {\n    return Metric_CustomDimensionsEntry.fromPartial(base ?? ({} as any));\n  },\n  fromPartial<I extends Exact<DeepPartial<Metric_CustomDimensionsEntry>, I>>(object: I): Metric_CustomDimensionsEntry {\n    const message = createBaseMetric_CustomDimensionsEntry();\n    message.key = object.key ?? \"\";\n    message.value = object.value ?? \"\";\n    return message;\n  },\n};\n\nfunction createBaseMetricFrame(): MetricFrame {\n  return {\n    timers: [],\n    counters: [],\n    levels: [],\n    protocolVersion: 0,\n    bufferStartTimestampMillis: 0,\n    bufferEndTimestampMillis: 0,\n    appVersion: undefined,\n    clientOsType: 0,\n    userId: \"\",\n  };\n}\n\nexport const MetricFrame = {\n  encode(message: MetricFrame, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n    for (const v of message.timers) {\n      Metric.encode(v!, writer.uint32(10).fork()).ldelim();\n    }\n    for (const v of message.counters) {\n      Metric.encode(v!, writer.uint32(18).fork()).ldelim();\n    }\n    for (const v of message.levels) {\n      Metric.encode(v!, writer.uint32(26).fork()).ldelim();\n    }\n    if (message.protocolVersion !== 0) {\n      writer.uint32(32).uint32(message.protocolVersion);\n    }\n    if (message.bufferStartTimestampMillis !== 0) {\n      writer.uint32(40).uint64(message.bufferStartTimestampMillis);\n    }\n    if (message.bufferEndTimestampMillis !== 0) {\n      writer.uint32(48).uint64(message.bufferEndTimestampMillis);\n    }\n    if (message.appVersion !== undefined) {\n      AppVersion.encode(message.appVersion, writer.uint32(58).fork()).ldelim();\n    }\n    if (message.clientOsType !== 0) {\n      writer.uint32(64).int32(message.clientOsType);\n    }\n    if (message.userId !== \"\") {\n      writer.uint32(74).string(message.userId);\n    }\n    return writer;\n  },\n\n  decode(input: _m0.Reader | Uint8Array, length?: number): MetricFrame {\n    const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);\n    let end = length === undefined ? reader.len : reader.pos + length;\n    const message = createBaseMetricFrame();\n    while (reader.pos < end) {\n      const tag = reader.uint32();\n      switch (tag >>> 3) {\n        case 1:\n          if (tag !== 10) {\n            break;\n          }\n\n          message.timers.push(Metric.decode(reader, reader.uint32()));\n          continue;\n        case 2:\n          if (tag !== 18) {\n            break;\n          }\n\n          message.counters.push(Metric.decode(reader, reader.uint32()));\n          continue;\n        case 3:\n          if (tag !== 26) {\n            break;\n          }\n\n          message.levels.push(Metric.decode(reader, reader.uint32()));\n          continue;\n        case 4:\n          if (tag !== 32) {\n            break;\n          }\n\n          message.protocolVersion = reader.uint32();\n          continue;\n        case 5:\n          if (tag !== 40) {\n            break;\n          }\n\n          message.bufferStartTimestampMillis = longToNumber(reader.uint64() as Long);\n          continue;\n        case 6:\n          if (tag !== 48) {\n            break;\n          }\n\n          message.bufferEndTimestampMillis = longToNumber(reader.uint64() as Long);\n          continue;\n        case 7:\n          if (tag !== 58) {\n            break;\n          }\n\n          message.appVersion = AppVersion.decode(reader, reader.uint32());\n          continue;\n        case 8:\n          if (tag !== 64) {\n            break;\n          }\n\n          message.clientOsType = reader.int32() as any;\n          continue;\n        case 9:\n          if (tag !== 74) {\n            break;\n          }\n\n          message.userId = reader.string();\n          continue;\n      }\n      if ((tag & 7) === 4 || tag === 0) {\n        break;\n      }\n      reader.skipType(tag & 7);\n    }\n    return message;\n  },\n\n  fromJSON(object: any): MetricFrame {\n    return {\n      timers: globalThis.Array.isArray(object?.timers) ? object.timers.map((e: any) => Metric.fromJSON(e)) : [],\n      counters: globalThis.Array.isArray(object?.counters) ? object.counters.map((e: any) => Metric.fromJSON(e)) : [],\n      levels: globalThis.Array.isArray(object?.levels) ? object.levels.map((e: any) => Metric.fromJSON(e)) : [],\n      protocolVersion: isSet(object.protocolVersion) ? globalThis.Number(object.protocolVersion) : 0,\n      bufferStartTimestampMillis: isSet(object.bufferStartTimestampMillis)\n        ? globalThis.Number(object.bufferStartTimestampMillis)\n        : 0,\n      bufferEndTimestampMillis: isSet(object.bufferEndTimestampMillis)\n        ? globalThis.Number(object.bufferEndTimestampMillis)\n        : 0,\n      appVersion: isSet(object.appVersion) ? AppVersion.fromJSON(object.appVersion) : undefined,\n      clientOsType: isSet(object.clientOsType) ? osTypeFromJSON(object.clientOsType) : 0,\n      userId: isSet(object.userId) ? globalThis.String(object.userId) : \"\",\n    };\n  },\n\n  toJSON(message: MetricFrame): unknown {\n    const obj: any = {};\n    if (message.timers?.length) {\n      obj.timers = message.timers.map((e) => Metric.toJSON(e));\n    }\n    if (message.counters?.length) {\n      obj.counters = message.counters.map((e) => Metric.toJSON(e));\n    }\n    if (message.levels?.length) {\n      obj.levels = message.levels.map((e) => Metric.toJSON(e));\n    }\n    if (message.protocolVersion !== 0) {\n      obj.protocolVersion = Math.round(message.protocolVersion);\n    }\n    if (message.bufferStartTimestampMillis !== 0) {\n      obj.bufferStartTimestampMillis = Math.round(message.bufferStartTimestampMillis);\n    }\n    if (message.bufferEndTimestampMillis !== 0) {\n      obj.bufferEndTimestampMillis = Math.round(message.bufferEndTimestampMillis);\n    }\n    if (message.appVersion !== undefined) {\n      obj.appVersion = AppVersion.toJSON(message.appVersion);\n    }\n    if (message.clientOsType !== 0) {\n      obj.clientOsType = osTypeToJSON(message.clientOsType);\n    }\n    if (message.userId !== \"\") {\n      obj.userId = message.userId;\n    }\n    return obj;\n  },\n\n  create<I extends Exact<DeepPartial<MetricFrame>, I>>(base?: I): MetricFrame {\n    return MetricFrame.fromPartial(base ?? ({} as any));\n  },\n  fromPartial<I extends Exact<DeepPartial<MetricFrame>, I>>(object: I): MetricFrame {\n    const message = createBaseMetricFrame();\n    message.timers = object.timers?.map((e) => Metric.fromPartial(e)) || [];\n    message.counters = object.counters?.map((e) => Metric.fromPartial(e)) || [];\n    message.levels = object.levels?.map((e) => Metric.fromPartial(e)) || [];\n    message.protocolVersion = object.protocolVersion ?? 0;\n    message.bufferStartTimestampMillis = object.bufferStartTimestampMillis ?? 0;\n    message.bufferEndTimestampMillis = object.bufferEndTimestampMillis ?? 0;\n    message.appVersion = (object.appVersion !== undefined && object.appVersion !== null)\n      ? AppVersion.fromPartial(object.appVersion)\n      : undefined;\n    message.clientOsType = object.clientOsType ?? 0;\n    message.userId = object.userId ?? \"\";\n    return message;\n  },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype DeepPartial<T> = T extends Builtin ? T\n  : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n  : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n  : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n  : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\ntype Exact<P, I extends P> = P extends Builtin ? P\n  : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };\n\nfunction longToNumber(long: Long): number {\n  if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {\n    throw new globalThis.Error(\"Value is larger than Number.MAX_SAFE_INTEGER\");\n  }\n  if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {\n    throw new globalThis.Error(\"Value is smaller than Number.MIN_SAFE_INTEGER\");\n  }\n  return long.toNumber();\n}\n\nif (_m0.util.Long !== Long) {\n  _m0.util.Long = Long as any;\n  _m0.configure();\n}\n\nfunction isObject(value: any): boolean {\n  return typeof value === \"object\" && value !== null;\n}\n\nfunction isSet(value: any): boolean {\n  return value !== null && value !== undefined;\n}\n", "import { AuthType, type Config } from '@snapchat/metrics-utils';\nimport { WebAuthenticator } from '../auth/WebAuthenticator';\nimport {\n  WebMetricCollector,\n  type WebMetricCollectorOptions,\n} from '../collector/WebMetricCollector';\n\n/** Network config for RTAM server (for web metrics) */\nexport const getWebConfig = (collectorOptions: WebMetricCollectorOptions): Config => ({\n  protocol: 'https:',\n  host: 'gcp.api.snapchat.com',\n  path: '/web/metrics',\n  headers: {\n    'Content-Type': 'application/x-protobuf',\n  },\n  authType: AuthType.WebAttestation,\n  authenticator: new WebAuthenticator(),\n  collector: new WebMetricCollector(collectorOptions),\n});\n", "import { Authenticator, AuthType, type HeaderMap } from '@snapchat/metrics-utils';\nimport { computeWebAttestation } from './computeWebAttestation';\n\nexport const webAttestationHeader = 'X-Snapchat-Web-Client-Auth';\n\nexport class WebAuthenticator extends Authenticator {\n  async authRequest(\n    authType: AuthType,\n    payload: Uint8Array,\n    headers: HeaderMap\n  ): Promise<HeaderMap> {\n    switch (authType) {\n      case AuthType.None: {\n        return headers;\n      }\n      case AuthType.WebAttestation: {\n        const webAttestationHeaderBase64 = await computeWebAttestation(payload);\n        return {\n          ...headers,\n          [webAttestationHeader]: webAttestationHeaderBase64,\n        };\n      }\n      default: {\n        throw new Error(`Unsupported auth type: ${authType}`);\n      }\n    }\n  }\n}\n", "import { isInBrowser, inlineBtoa } from '@snapchat/metrics-utils';\nimport { sha256 } from '@snapchat/hash';\n\n/**\n * Convert unsigned byte array into SHA-256 hashed string\n *\n * @param binaryPayload: Uint8Array unsigned byte array\n * @returns String. Base64 encoded SHA-256 Hash based on the byte array + `:<current_timestamp>`.\n */\nexport const computeWebAttestation = async (binaryPayload: Uint8Array): Promise<string> => {\n  const hashString = await sha256(binaryPayload);\n  const headerString = `${hashString}:${Date.now()}`;\n  return isInBrowser() ? btoa(headerString) : inlineBtoa(headerString);\n};\n", "var __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\nexport {\n  __name\n};\n//# sourceMappingURL=chunk-G5GHKT7C.mjs.map\n", "import type { Sha256 } from './hash.types';\n\n/**\n * Calculates the SHA-256 hash of the given data using the browser's built-in crypto API.\n *\n * @param data - The data to be hashed.\n * @returns A promise that resolves to the hexadecimal representation of the SHA-256 hash.\n */\nexport const sha256: Sha256 = async (data: Uint8Array): Promise<string> => {\n  const hash = await window.crypto.subtle.digest('SHA-256', data);\n  return bufferToHex(hash);\n};\n\n/**\n * Converts an ArrayBuffer to a hexadecimal string representation.\n *\n * @param buffer - The ArrayBuffer to convert.\n * @returns The hexadecimal string representation of the buffer.\n */\nfunction bufferToHex(buffer: ArrayBuffer): string {\n  return Array.from(new Uint8Array(buffer))\n    .map(b => b.toString(16).padStart(2, '0'))\n    .join('');\n}\n", "import { parseError } from '@snapchat/core';\nimport type { Dimensions } from '@snapchat/graphene';\nimport { Partition } from '@snapchat/graphene';\nimport { useGlobalComponentsContentfulQuery } from '@snapchat/mw-global-components-schema';\nimport clone from 'lodash/clone.js';\nimport head from 'lodash/head.js';\nimport isUndefined from 'lodash/isUndefined.js';\nimport pickBy from 'lodash/pickBy.js';\nimport type { FC } from 'react';\nimport { useCallback, useContext, useEffect, useMemo, useState } from 'react';\n\nimport { ContentfulContext } from '../../context';\nimport type { CookieModalType } from '../../generated/contentful-types';\nimport { CookieModalQueryDocumentType } from '../../generated/contentful-types';\nimport { BrowserGrapheneClient, DevelopmentDomains } from '../../helpers/logging';\nimport type { CategorizedCookie } from '../../utils';\nimport {\n  acceptAllCookies,\n  acceptCustomCookies,\n  auditForUncategorizedCookies,\n  createCookieMapping,\n  essentialOnlyCookies,\n  fetchShouldDisplayModal,\n  fetchUserLocation,\n  getAllCookies,\n  getCookieDomain,\n  removeCookiesForNonacceptedCategories,\n  setOptInCookies,\n} from '../../utils';\nimport { DesignAgnosticModal } from '../designAgnostic';\nimport type { WithOnError } from '../ErrorBoundary';\nimport { withErrorBoundary } from '../ErrorBoundary';\nimport type { CookieAcceptance, LocaleOption } from '../types';\nimport { BackgroundType, CategoryOptInCookie, CookieScreen, EventAction } from '../types';\nimport { CookieLandingScreen } from './CookieLandingScreen';\nimport { CookieSettingsScreen } from './CookieSettingsScreen';\n\ninterface OnCompleteEvent {\n  /**\n   * User's location per API endpoint. Included as a convenience for consuming applications to avoid\n   * multiple calls to that endpoint if configuring GTM/GA, etc.\n   */\n  userLocation: string;\n  /** Whether the modal shown to the user. */\n  didUserInteract: boolean;\n  /** Category Cookies and acceptance state for the user. */\n  cookieAcceptance: CookieAcceptance;\n  /** Whether cookies were changed based on global privacy control */\n  isGlobalPrivacyControlApplied: boolean;\n}\n\nexport interface CookieModalProps extends WithOnError {\n  supportedLocales: Record<string, LocaleOption>;\n  /** If not specified, defaults to the top level domain of the current location */\n  cookieDomain?: string;\n  /** Optional, use to specify parent element within which to render the modal */\n  portalRoot?: HTMLElement;\n  /** If not specified, defaults to `LightMode` */\n  backgroundType?: BackgroundType;\n  /** On change listener for Locale Dropdown */\n  onLocaleChange?: (locale: string) => void;\n  /**\n   * Fires whenever the modal interaction is complete (whether it was visually shown or not). This\n   * event hook is used to enable/disable features per user cookie acceptance.\n   */\n  onComplete?: (event: OnCompleteEvent) => void;\n  /** On event listener for modal actions */\n  onEvent?: (event: { component: string; label: string; action: EventAction }) => void;\n  /** Fires whenever global privacy control is in place */\n  onGlobalPrivacyControlSet?: () => void;\n  /** Whether to force the modal to be visible (for testing) */\n  forceVisible?: boolean;\n  /** Whether the user has enabled Global Privacy Control */\n  globalPrivacyControl?: boolean;\n}\n\nconst displayName = 'CookieModal';\n\nconst CookieModal: FC<CookieModalProps> = ({\n  supportedLocales,\n  cookieDomain: inputCookieDomain,\n  portalRoot,\n  backgroundType = BackgroundType.LightMode,\n  onLocaleChange,\n  onComplete,\n  onEvent,\n  onGlobalPrivacyControlSet,\n  globalPrivacyControl,\n  forceVisible,\n}) => {\n  // ==============================================================================================\n  // Fetch content from Contentful\n  // ==============================================================================================\n\n  const context = useContext(ContentfulContext);\n  const { data } = useGlobalComponentsContentfulQuery(CookieModalQueryDocumentType, context, {\n    client: context.client,\n  });\n  const config = head(data?.cookieModalCollection.items) as CookieModalType | undefined;\n\n  const gpcLocations = config?.gpcLocations;\n  // Convert configuration into optimized data structures\n  const { categorySettings, cookieCategoryMap, enableCookieDeletion } = useMemo(() => {\n    if (!config?.cookieCategoriesCollection?.items?.length)\n      return {\n        categorySettings: undefined,\n        cookieCategoryMap: undefined,\n        enableCookieDeletion: false,\n      };\n\n    // Settings for generating UI, storing user selections\n    const categorySettings = config.cookieCategoriesCollection.items;\n\n    // Map of related cookies by category, used for deleting after opt out\n    const cookieCategoryMap = createCookieMapping(config.cookieCategoriesCollection.items);\n\n    // Settings for cookie deletion\n    const { enableCookieDeletion } = config;\n\n    return { categorySettings, cookieCategoryMap, enableCookieDeletion };\n  }, [config]);\n\n  // ==============================================================================================\n  // Internal State\n  // ==============================================================================================\n  const cookieDomain = getCookieDomain(inputCookieDomain);\n\n  const [isInModalRequiredRegion, setIsInModalRequiredRegion] = useState<boolean>();\n  const [userLocation, setUserLocation] = useState('Unknown');\n  const [isDisplayed, setIsDisplayed] = useState(false);\n\n  const [categoryState, setCategoryState] = useState<CookieAcceptance>({});\n\n  const updateCategoryState = (key: CategoryOptInCookie, value: boolean) => {\n    const newState = clone(categoryState);\n    newState[key] = value;\n    setCategoryState(newState);\n  };\n\n  const [isLoaded, setIsLoaded] = useState(false);\n  const [activeScreen, setActiveScreen] = useState(CookieScreen.LANDING);\n\n  const [grapheneClient, setGrapheneClient] = useState<BrowserGrapheneClient>();\n\n  // @ts-ignore navigator does have globalPrivacyControl\n  const hasGlobalPrivacyControl = window?.navigator?.globalPrivacyControl || globalPrivacyControl;\n\n  const isGlobalPrivacyControlApplied = !!(\n    hasGlobalPrivacyControl &&\n    cookieCategoryMap &&\n    // If the user location is not in the list of locations that require GPC, then GPC is not applied.\n    // Alternatively if no locations are set in contentful GPC is applied by default.\n    (gpcLocations?.includes(userLocation) || gpcLocations?.length === 0 || !gpcLocations)\n  );\n  // ==============================================================================================\n  // Helper Functions\n  // ==============================================================================================\n\n  /** Detect and log uncategorized cookies */\n  const logUncategorizedCookies = useCallback(\n    (cookieCategoryMap: Map<string, Set<CategorizedCookie>>) => {\n      const isProductionDomain = !DevelopmentDomains.has(cookieDomain);\n      if (!isProductionDomain) return; // noop for Development environments\n\n      const uncategorizedCookies = auditForUncategorizedCookies(cookieCategoryMap);\n\n      for (const cookieName of uncategorizedCookies) {\n        const dimensions: Dimensions = {\n          cookieName,\n          userLocation,\n        };\n\n        grapheneClient?.logMetric('modal_uncategorized_cookie', dimensions);\n      }\n    },\n    [grapheneClient, cookieDomain, userLocation]\n  );\n\n  /**\n   * Centralized function for setting cookies and triggering callback functions. The optional\n   * `existingCookies` parameter controls whether update all setting cookies or apply changes only.\n   */\n  const updateUserCookies = useCallback(\n    (cookiesToSet: CookieAcceptance, existingCookies?: CookieAcceptance) => {\n      // If mappings have not been loaded, treat as noop\n      if (!cookieCategoryMap || !categorySettings) return;\n\n      const filterToChanges = (\n        cookiesToSet: CookieAcceptance,\n        existingCookies: CookieAcceptance = {}\n      ): CookieAcceptance => {\n        return pickBy(\n          cookiesToSet,\n          // @ts-ignore TODO: Fix types.\n          (value, key) => isUndefined(existingCookies[key]) || existingCookies[key] !== value\n        );\n      };\n\n      // Apply user settings to Cookies\n      const changesToApply = filterToChanges(cookiesToSet, existingCookies);\n\n      setOptInCookies(cookieDomain, changesToApply);\n\n      const results = removeCookiesForNonacceptedCategories(\n        cookieDomain,\n        cookiesToSet,\n        cookieCategoryMap,\n        enableCookieDeletion\n      );\n\n      // log any cookie removals that were incomplete (indicates misconfiguration of cookie attributes)\n      for (const cookieName in results) {\n        // removal was successful, noop\n        if (results[cookieName]?.wasRemoved) continue;\n\n        // otherwise log so we can review the configuration.  Graphene doesn't support enough dimensions\n        // for us to store the full configuration, so domain and cookieName will have to do.\n        const dimensions: Dimensions = {\n          cookieName,\n          userLocation,\n        };\n        grapheneClient?.logMetric('tracking_cookie_misconfiguration', dimensions);\n      }\n\n      logUncategorizedCookies(cookieCategoryMap);\n\n      // Fire onComplete event hook\n      onComplete?.({\n        didUserInteract: isDisplayed,\n        userLocation,\n        cookieAcceptance: cookiesToSet,\n        isGlobalPrivacyControlApplied,\n      });\n\n      setIsDisplayed(false);\n    },\n    [\n      cookieDomain,\n      cookieCategoryMap,\n      categorySettings,\n      grapheneClient,\n      isDisplayed,\n      onComplete,\n      userLocation,\n      setIsDisplayed,\n      logUncategorizedCookies,\n      isGlobalPrivacyControlApplied,\n      enableCookieDeletion,\n    ]\n  );\n\n  // ==============================================================================================\n  // useEffect calls\n  // ==============================================================================================\n\n  useEffect(() => {\n    const host = window.location.hostname;\n    const client = new BrowserGrapheneClient(Partition.COOKIE_MODAL_COMPONENTS, host);\n    setGrapheneClient(client);\n  }, [setGrapheneClient]);\n\n  // Determine whether user is in GDPR region and should display modal\n  useEffect(() => {\n    // Wait for grapheneClient to initialize before executing\n    if (!grapheneClient) return;\n\n    const getIsInModalRequiredRegion = async () => {\n      try {\n        const shouldDisplayModal = await fetchShouldDisplayModal();\n        setIsInModalRequiredRegion(shouldDisplayModal);\n      } catch (unknownError) {\n        const error = parseError(unknownError);\n        grapheneClient.logError(displayName, 'shouldDisplayModal', error);\n        // Failure of security or network connection prompts the popup to show\n        setIsInModalRequiredRegion(true);\n      }\n    };\n    void getIsInModalRequiredRegion();\n  }, [grapheneClient, setIsInModalRequiredRegion]);\n\n  // Retrieve user's location\n  useEffect(() => {\n    // Wait for grapheneClient to initialize before executing\n    if (!grapheneClient) return;\n\n    const fetchUserRegion = async () => {\n      try {\n        const userLocation = await fetchUserLocation();\n        setUserLocation(userLocation);\n      } catch (unknownError) {\n        const error = parseError(unknownError);\n        grapheneClient.logError(displayName, 'userLocation', error);\n      }\n    };\n    void fetchUserRegion();\n  }, [grapheneClient, setUserLocation]);\n\n  // Set default categoryState - ensures toggles for essential categories default to enabled.\n  useEffect(() => {\n    if (!categorySettings) return;\n\n    const defaultState = essentialOnlyCookies(categorySettings);\n    setCategoryState(defaultState);\n  }, [categorySettings, setCategoryState]);\n\n  // Business logic for whether to render the Cookie Modal, trigger callbacks, etc.\n  // Defers execution until all async data calls are complete.\n  useEffect(() => {\n    // Wait for async data fetches to complete before executing\n    if (isUndefined(isInModalRequiredRegion) || !cookieCategoryMap || !categorySettings) return;\n\n    // Ensure this useEffect function fires only once\n    if (isLoaded) return;\n    setIsLoaded(true);\n\n    // fetch current cookie values (outside GDPR region: default to true, inside of GDPR region: default to false)\n    const retrievedCookies = getAllCookies(categorySettings);\n    const hasPreviouslyAcceptedCookies = retrievedCookies[CategoryOptInCookie.Essential];\n    const gpcDimensions = {\n      userLocation,\n      cookieDomain,\n    };\n\n    // Scenario 1: Returning user outside of GDPR, recreate missing cookies (default true), and trigger callback functions\n    // Scenario 2: Returning user inside of GDPR, recreate missing cookies (default false), and trigger callback functions\n    // Edge case: if user manually deleted one of the necessary cookies (e.g. Performance, Marketing, etc.), this will recreate them.\n    if (hasPreviouslyAcceptedCookies) {\n      const defaultCookies = !isInModalRequiredRegion\n        ? acceptAllCookies(categorySettings) // Scenario 1\n        : essentialOnlyCookies(categorySettings); // Scenario 2\n\n      const cookiesToRecreate = { ...defaultCookies, ...retrievedCookies };\n\n      if (isGlobalPrivacyControlApplied && retrievedCookies[CategoryOptInCookie.Marketing]) {\n        updateUserCookies(\n          { ...cookiesToRecreate, [CategoryOptInCookie.Marketing]: false },\n          retrievedCookies\n        );\n\n        onGlobalPrivacyControlSet?.();\n        grapheneClient?.logMetric('global_privacy_control', gpcDimensions);\n      } else {\n        updateUserCookies(cookiesToRecreate, retrievedCookies);\n      }\n\n      return;\n    }\n\n    if (!isInModalRequiredRegion) {\n      // Scenario 3: First time user located outside GDPR region, auto-accept all cookie categories and trigger callback functions.\n      const acceptAll = acceptAllCookies(categorySettings);\n\n      if (isGlobalPrivacyControlApplied) {\n        updateUserCookies({ ...acceptAll, [CategoryOptInCookie.Marketing]: false });\n        onGlobalPrivacyControlSet?.();\n        grapheneClient?.logMetric('global_privacy_control', gpcDimensions);\n      } else {\n        updateUserCookies(acceptAll);\n      }\n    } else {\n      // Scenario 4: First time user located inside GDPR region, display modal\n      setIsDisplayed(true);\n    }\n  }, [\n    isLoaded,\n    isInModalRequiredRegion,\n    cookieCategoryMap,\n    categorySettings,\n    setIsLoaded,\n    setIsDisplayed,\n    updateUserCookies,\n    globalPrivacyControl,\n    userLocation,\n    isGlobalPrivacyControlApplied,\n    cookieDomain,\n    grapheneClient,\n    onGlobalPrivacyControlSet,\n  ]);\n\n  // ==============================================================================================\n  // User Interaction handlers\n  // ==============================================================================================\n\n  const acceptAll = () => {\n    // If mappings have not been loaded, treat as noop\n    if (!categorySettings) return;\n\n    const cookiesToSet = acceptAllCookies(categorySettings);\n    updateUserCookies(cookiesToSet);\n    logUserAction('accept_all', cookiesToSet);\n  };\n\n  const logUserAction = (label: string, cookieCategories: CookieAcceptance) => {\n    // Log event to event listener prop\n    onEvent?.({ component: displayName, action: EventAction.Click, label });\n\n    // Also log event to dedicated CookieComponents Graphene Partition\n    const dimensions: Dimensions = {\n      preferences: `${cookieCategories[CategoryOptInCookie.Preferences] ?? false}`,\n      performance: `${cookieCategories[CategoryOptInCookie.Performance] ?? false}`,\n      marketing: `${cookieCategories[CategoryOptInCookie.Marketing] ?? false}`,\n      userLocation,\n    };\n    grapheneClient?.logMetric(`${label}_clicks_modal`, dimensions);\n  };\n\n  const acceptEssential = () => {\n    // If mappings have not been loaded, treat as noop\n    if (!categorySettings) return;\n\n    const cookiesToSet = essentialOnlyCookies(categorySettings);\n    updateUserCookies(cookiesToSet);\n    logUserAction('accept_essential', cookiesToSet);\n  };\n\n  const acceptSelected = () => {\n    // If mappings have not been loaded, treat as noop\n    if (!categorySettings) return;\n\n    const cookiesToSet = acceptCustomCookies(categorySettings, categoryState);\n    updateUserCookies(cookiesToSet);\n    logUserAction('accept_selected', cookiesToSet);\n  };\n\n  // ==============================================================================================\n  // Render\n  // ==============================================================================================\n\n  if (!config) {\n    return null;\n  }\n\n  return (\n    <DesignAgnosticModal\n      isDisplayed={forceVisible ?? isDisplayed}\n      backgroundType={backgroundType}\n      portalRoot={portalRoot}\n    >\n      {activeScreen === CookieScreen.LANDING && (\n        <CookieLandingScreen\n          backgroundType={backgroundType}\n          supportedLocales={supportedLocales}\n          title={config.landingScreenTitle}\n          content={config.content.json}\n          settingsButtonText={config.settingsButtonText}\n          onSettingsbuttonClick={() => setActiveScreen(CookieScreen.SETTINGS)}\n          acceptAllButtonText={config.acceptAllButtonText}\n          onAcceptAllButtonClick={acceptAll}\n          essentialOnlyButtonText={config.essentialOnlyButtonText}\n          onAcceptEssentialButtonClick={acceptEssential}\n          onLocaleChange={onLocaleChange}\n        />\n      )}\n      {activeScreen === CookieScreen.SETTINGS && (\n        <CookieSettingsScreen\n          backgroundType={backgroundType}\n          supportedLocales={supportedLocales}\n          title={config.landingScreenTitle}\n          cookieCategories={config.cookieCategoriesCollection.items}\n          activeToggleLabel={config.toggleEnabledText}\n          inactiveToggleLabel={config.toggleDisabledText}\n          categoriesState={categoryState}\n          updateCategoriesState={updateCategoryState}\n          acceptAllButtonText={config.acceptAllButtonText}\n          essentialOnlyButtonText={config.essentialOnlyButtonText}\n          acceptSelectedButtonText={config.acceptSelectedButtonText}\n          onAcceptAllButtonClick={acceptAll}\n          onAcceptEssentialButtonClick={acceptEssential}\n          onAcceptSelectedButtonClick={acceptSelected}\n          onLocaleChange={onLocaleChange}\n        />\n      )}\n    </DesignAgnosticModal>\n  );\n};\n\n// NOTE: for some reason displayName is not automatically deetected by ErrorBoundary.  Need to explicitly set it.\nCookieModal.displayName = displayName;\n\nconst wrapped = withErrorBoundary(CookieModal, Partition.COOKIE_MODAL_COMPONENTS);\n\nexport { wrapped as CookieModal };\n", "import type { ApolloClient } from '@apollo/client';\nimport { createContext } from 'react';\n\nexport interface ContentfulProps {\n  isPreview: boolean;\n  isSSR: boolean;\n  currentLocale: string;\n  /**\n   * Optional: if defined, will use the provided Apollo client. Otherwise one will be created using\n   * default settings.\n   */\n  client?: ApolloClient<object>;\n}\n\n/** Context used to configure Contentful Client */\nexport const ContentfulContext = createContext<ContentfulProps>({\n  isPreview: false,\n  isSSR: false,\n  currentLocale: 'en-US',\n});\n", "import type { FC } from 'react';\nimport { createContext } from 'react';\n\nimport type {\n  DesignAgnosticButtonProps,\n  DesignAgnosticLocaleDropdownProps,\n  DesignAgnosticModalProps,\n  DesignAgnosticSectionProps,\n  DesignAgnosticToggleProps,\n} from '../components/designAgnostic';\n\nexport interface DesignSystemProps {\n  buttonComponent: FC<DesignAgnosticButtonProps>;\n  localeDropdownComponent: FC<DesignAgnosticLocaleDropdownProps>;\n  modalComponent: FC<DesignAgnosticModalProps>;\n  sectionComponent: FC<DesignAgnosticSectionProps>;\n  toggleComponent: FC<DesignAgnosticToggleProps>;\n}\n\ninterface NotImplementedProps {\n  component: string;\n}\n\nconst NotImplemented: FC<NotImplementedProps> = ({ component }) => {\n  console.error(`${component} not implemented! This must be specified via DesignSystemContext.`);\n  return null;\n};\n\n/** Context used by consumers to define UI implementations used to render Cookie Components. */\nexport const DesignSystemContext = createContext<DesignSystemProps>({\n  buttonComponent: () => <NotImplemented component=\"buttonComponent\" />,\n  localeDropdownComponent: () => <NotImplemented component=\"localeDropdownComponent\" />,\n  modalComponent: () => <NotImplemented component=\"modalComponent\" />,\n  sectionComponent: () => <NotImplemented component=\"sectionComponent\" />,\n  toggleComponent: () => <NotImplemented component=\"toggleComponent\" />,\n});\n", "import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type Maybe<T> = T;\nexport type InputMaybe<T> = T;\nexport type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n  ID: string;\n  String: string;\n  Boolean: boolean;\n  Int: number;\n  Float: number;\n  /**\n   * A date-time string at UTC, such as 2007-12-03T10:15:30Z,\n   *     compliant with the 'date-time' format outlined in section 5.6 of\n   *     the RFC 3339 profile of the ISO 8601 standard for representation\n   *     of dates and times using the Gregorian calendar.\n   */\n  DateTime: string;\n  /** The 'Dimension' type represents dimensions as whole numeric values between `1` and `4000`. */\n  Dimension: number;\n  /** The 'Quality' type represents quality as whole numeric values between `1` and `100`. */\n  Quality: number;\n  /** The 'HexColor' type represents color in `rgb:ffffff` string format. */\n  HexColor: string;\n  /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */\n  JSON: Record<string, unknown>;\n};\n\nexport type QueryType = {\n  readonly __typename?: 'Query';\n  readonly asset: Maybe<AssetType>;\n  readonly assetCollection: Maybe<AssetCollectionType>;\n  readonly globalNavConfig: Maybe<GlobalNavConfigType>;\n  readonly globalNavConfigCollection: Maybe<GlobalNavConfigCollectionType>;\n  readonly cookieModal: Maybe<CookieModalType>;\n  readonly cookieModalCollection: Maybe<CookieModalCollectionType>;\n  readonly trackingCookie: Maybe<TrackingCookieType>;\n  readonly trackingCookieCollection: Maybe<TrackingCookieCollectionType>;\n  readonly image: Maybe<ImageType>;\n  readonly imageCollection: Maybe<ImageCollectionType>;\n  readonly globalNavHighlight: Maybe<GlobalNavHighlightType>;\n  readonly globalNavHighlightCollection: Maybe<GlobalNavHighlightCollectionType>;\n  readonly globalNav: Maybe<GlobalNavType>;\n  readonly globalNavCollection: Maybe<GlobalNavCollectionType>;\n  readonly cookieCategory: Maybe<CookieCategoryType>;\n  readonly cookieCategoryCollection: Maybe<CookieCategoryCollectionType>;\n  readonly footerV3: Maybe<FooterV3Type>;\n  readonly footerV3Collection: Maybe<FooterV3CollectionType>;\n  readonly footerItemV3: Maybe<FooterItemV3Type>;\n  readonly footerItemV3Collection: Maybe<FooterItemV3CollectionType>;\n  readonly footerLocaleDropdown: Maybe<FooterLocaleDropdownType>;\n  readonly footerLocaleDropdownCollection: Maybe<FooterLocaleDropdownCollectionType>;\n  readonly footerCookiesSettingsLink: Maybe<FooterCookiesSettingsLinkType>;\n  readonly footerCookiesSettingsLinkCollection: Maybe<FooterCookiesSettingsLinkCollectionType>;\n  readonly footerGroup: Maybe<FooterGroupType>;\n  readonly footerGroupCollection: Maybe<FooterGroupCollectionType>;\n  readonly cookieBanner: Maybe<CookieBannerType>;\n  readonly cookieBannerCollection: Maybe<CookieBannerCollectionType>;\n  readonly footer: Maybe<FooterType>;\n  readonly footerCollection: Maybe<FooterCollectionType>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly analyticsCollection: Maybe<AnalyticsCollectionType>;\n  readonly globalNavItem: Maybe<GlobalNavItemType>;\n  readonly globalNavItemCollection: Maybe<GlobalNavItemCollectionType>;\n  readonly button: Maybe<ButtonType>;\n  readonly buttonCollection: Maybe<ButtonCollectionType>;\n  readonly callToAction: Maybe<CallToActionType>;\n  readonly callToActionCollection: Maybe<CallToActionCollectionType>;\n  readonly message: Maybe<MessageType>;\n  readonly messageCollection: Maybe<MessageCollectionType>;\n  readonly legalMessage: Maybe<LegalMessageType>;\n  readonly legalMessageCollection: Maybe<LegalMessageCollectionType>;\n  readonly video: Maybe<VideoType>;\n  readonly videoCollection: Maybe<VideoCollectionType>;\n  readonly footerItem: Maybe<FooterItemType>;\n  readonly footerItemCollection: Maybe<FooterItemCollectionType>;\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly _node: Maybe<_NodeType>;\n};\n\n\nexport type QueryAssetArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryAssetCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AssetFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AssetOrderType>>>;\n};\n\n\nexport type QueryGlobalNavConfigArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryGlobalNavConfigCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavConfigFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavConfigOrderType>>>;\n};\n\n\nexport type QueryCookieModalArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryCookieModalCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CookieModalFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieModalOrderType>>>;\n};\n\n\nexport type QueryTrackingCookieArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryTrackingCookieCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<TrackingCookieFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<TrackingCookieOrderType>>>;\n};\n\n\nexport type QueryImageArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryImageCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<ImageFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<ImageOrderType>>>;\n};\n\n\nexport type QueryGlobalNavHighlightArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryGlobalNavHighlightCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavHighlightFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavHighlightOrderType>>>;\n};\n\n\nexport type QueryGlobalNavArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryGlobalNavCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavOrderType>>>;\n};\n\n\nexport type QueryCookieCategoryArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryCookieCategoryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CookieCategoryFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieCategoryOrderType>>>;\n};\n\n\nexport type QueryFooterV3ArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterV3CollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterV3FilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterV3OrderType>>>;\n};\n\n\nexport type QueryFooterItemV3ArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterItemV3CollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterItemV3FilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemV3OrderType>>>;\n};\n\n\nexport type QueryFooterLocaleDropdownArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterLocaleDropdownCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterLocaleDropdownFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterLocaleDropdownOrderType>>>;\n};\n\n\nexport type QueryFooterCookiesSettingsLinkArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterCookiesSettingsLinkCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterCookiesSettingsLinkFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterCookiesSettingsLinkOrderType>>>;\n};\n\n\nexport type QueryFooterGroupArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterGroupCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterGroupFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupOrderType>>>;\n};\n\n\nexport type QueryCookieBannerArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryCookieBannerCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CookieBannerFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieBannerOrderType>>>;\n};\n\n\nexport type QueryFooterArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterOrderType>>>;\n};\n\n\nexport type QueryAnalyticsArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryAnalyticsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsOrderType>>>;\n};\n\n\nexport type QueryGlobalNavItemArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryGlobalNavItemCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavItemOrderType>>>;\n};\n\n\nexport type QueryButtonArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryButtonCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<ButtonFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<ButtonOrderType>>>;\n};\n\n\nexport type QueryCallToActionArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryCallToActionCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CallToActionFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CallToActionOrderType>>>;\n};\n\n\nexport type QueryMessageArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryMessageCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<MessageFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<MessageOrderType>>>;\n};\n\n\nexport type QueryLegalMessageArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryLegalMessageCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<LegalMessageFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<LegalMessageOrderType>>>;\n};\n\n\nexport type QueryVideoArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryVideoCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<VideoFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<VideoOrderType>>>;\n};\n\n\nexport type QueryFooterItemArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterItemCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemOrderType>>>;\n};\n\n\nexport type QueryEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<EntryFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<EntryOrderType>>>;\n};\n\n\nexport type Query_NodeArgsType = {\n  id: Scalars['ID'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetType = {\n  readonly __typename?: 'Asset';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly title: Maybe<Scalars['String']>;\n  readonly description: Maybe<Scalars['String']>;\n  readonly contentType: Maybe<Scalars['String']>;\n  readonly fileName: Maybe<Scalars['String']>;\n  readonly size: Maybe<Scalars['Int']>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly width: Maybe<Scalars['Int']>;\n  readonly height: Maybe<Scalars['Int']>;\n  readonly linkedFrom: Maybe<AssetLinkingCollectionsType>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetContentTypeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetFileNameArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetSizeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetUrlArgsType = {\n  transform: InputMaybe<ImageTransformOptionsType>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetWidthArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetHeightArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\nexport type SysType = {\n  readonly __typename?: 'Sys';\n  readonly id: Scalars['String'];\n  readonly spaceId: Scalars['String'];\n  readonly environmentId: Scalars['String'];\n  readonly publishedAt: Maybe<Scalars['DateTime']>;\n  readonly firstPublishedAt: Maybe<Scalars['DateTime']>;\n  readonly publishedVersion: Maybe<Scalars['Int']>;\n  /** The locale that was requested. */\n  readonly locale: Maybe<Scalars['String']>;\n};\n\nexport type ContentfulMetadataType = {\n  readonly __typename?: 'ContentfulMetadata';\n  readonly tags: ReadonlyArray<Maybe<ContentfulTagType>>;\n  readonly concepts: ReadonlyArray<Maybe<TaxonomyConceptType>>;\n};\n\n/**\n * Represents a tag entity for finding and organizing content easily.\n *         Find out more here: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/content-concepts\n */\nexport type TaxonomyConceptType = {\n  readonly __typename?: 'TaxonomyConcept';\n  readonly id: Maybe<Scalars['String']>;\n};\n\n/**\n * Represents a tag entity for finding and organizing content easily.\n *       Find out more here: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/content-tags\n */\nexport type ContentfulTagType = {\n  readonly __typename?: 'ContentfulTag';\n  readonly id: Maybe<Scalars['String']>;\n  readonly name: Maybe<Scalars['String']>;\n};\n\nexport type ImageTransformOptionsType = {\n  /** Desired width in pixels. Defaults to the original image width. */\n  readonly width: InputMaybe<Scalars['Dimension']>;\n  /** Desired height in pixels. Defaults to the original image height. */\n  readonly height: InputMaybe<Scalars['Dimension']>;\n  /**\n   * Desired quality of the image in percents.\n   *         Used for `PNG8`, `JPG`, `JPG_PROGRESSIVE` and `WEBP` formats.\n   */\n  readonly quality: InputMaybe<Scalars['Quality']>;\n  /**\n   * Desired corner radius in pixels.\n   *         Results in an image with rounded corners (pass `-1` for a full circle/ellipse).\n   *         Defaults to `0`. Uses desired background color as padding color,\n   *         unless the format is `JPG` or `JPG_PROGRESSIVE` and resize strategy is `PAD`, then defaults to white.\n   */\n  readonly cornerRadius: InputMaybe<Scalars['Int']>;\n  /** Desired resize strategy. Defaults to `FIT`. */\n  readonly resizeStrategy: InputMaybe<ImageResizeStrategyType>;\n  /** Desired resize focus area. Defaults to `CENTER`. */\n  readonly resizeFocus: InputMaybe<ImageResizeFocusType>;\n  /**\n   * Desired background color, used with corner radius or `PAD` resize strategy.\n   *         Defaults to transparent (for `PNG`, `PNG8` and `WEBP`) or white (for `JPG` and `JPG_PROGRESSIVE`).\n   */\n  readonly backgroundColor: InputMaybe<Scalars['HexColor']>;\n  /** Desired image format. Defaults to the original image format. */\n  readonly format: InputMaybe<ImageFormatType>;\n};\n\nexport enum ImageResizeStrategyType {\n  /** Resizes the image to fit into the specified dimensions. */\n  FitType = 'FIT',\n  /**\n   * Resizes the image to the specified dimensions, padding the image if needed.\n   *         Uses desired background color as padding color.\n   */\n  PadType = 'PAD',\n  /** Resizes the image to the specified dimensions, cropping the image if needed. */\n  FillType = 'FILL',\n  /** Resizes the image to the specified dimensions, changing the original aspect ratio if needed. */\n  ScaleType = 'SCALE',\n  /** Crops a part of the original image to fit into the specified dimensions. */\n  CropType = 'CROP',\n  /** Creates a thumbnail from the image. */\n  ThumbType = 'THUMB'\n}\n\nexport enum ImageResizeFocusType {\n  /** Focus the resizing on the center. */\n  CenterType = 'CENTER',\n  /** Focus the resizing on the top. */\n  TopType = 'TOP',\n  /** Focus the resizing on the top right. */\n  TopRightType = 'TOP_RIGHT',\n  /** Focus the resizing on the right. */\n  RightType = 'RIGHT',\n  /** Focus the resizing on the bottom right. */\n  BottomRightType = 'BOTTOM_RIGHT',\n  /** Focus the resizing on the bottom. */\n  BottomType = 'BOTTOM',\n  /** Focus the resizing on the bottom left. */\n  BottomLeftType = 'BOTTOM_LEFT',\n  /** Focus the resizing on the left. */\n  LeftType = 'LEFT',\n  /** Focus the resizing on the top left. */\n  TopLeftType = 'TOP_LEFT',\n  /** Focus the resizing on the largest face. */\n  FaceType = 'FACE',\n  /** Focus the resizing on the area containing all the faces. */\n  FacesType = 'FACES'\n}\n\nexport enum ImageFormatType {\n  /** JPG image format. */\n  JpgType = 'JPG',\n  /**\n   * Progressive JPG format stores multiple passes of an image in progressively higher detail.\n   *         When a progressive image is loading, the viewer will first see a lower quality pixelated version which\n   *         will gradually improve in detail, until the image is fully downloaded. This is to display an image as\n   *         early as possible to make the layout look as designed.\n   */\n  JpgProgressiveType = 'JPG_PROGRESSIVE',\n  /** PNG image format */\n  PngType = 'PNG',\n  /**\n   * 8-bit PNG images support up to 256 colors and weigh less than the standard 24-bit PNG equivalent.\n   *         The 8-bit PNG format is mostly used for simple images, such as icons or logos.\n   */\n  Png8Type = 'PNG8',\n  /** WebP image format. */\n  WebpType = 'WEBP',\n  AvifType = 'AVIF'\n}\n\nexport type AssetLinkingCollectionsType = {\n  readonly __typename?: 'AssetLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly imageCollection: Maybe<ImageCollectionType>;\n  readonly globalNavHighlightCollection: Maybe<GlobalNavHighlightCollectionType>;\n  readonly cookieBannerCollection: Maybe<CookieBannerCollectionType>;\n  readonly videoCollection: Maybe<VideoCollectionType>;\n};\n\n\nexport type AssetLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type AssetLinkingCollectionsImageCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type AssetLinkingCollectionsGlobalNavHighlightCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type AssetLinkingCollectionsCookieBannerCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type AssetLinkingCollectionsVideoCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type EntryCollectionType = {\n  readonly __typename?: 'EntryCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type EntryType = {\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n};\n\nexport type ImageCollectionType = {\n  readonly __typename?: 'ImageCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<ImageType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/image) */\nexport type ImageType = EntryType & _NodeType & {\n  readonly __typename?: 'Image';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<ImageLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly media: Maybe<AssetType>;\n  readonly wrap: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/image) */\nexport type ImageLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/image) */\nexport type ImageContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/image) */\nexport type ImageMediaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/image) */\nexport type ImageWrapArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type _NodeType = {\n  readonly _id: Scalars['ID'];\n};\n\nexport type ImageLinkingCollectionsType = {\n  readonly __typename?: 'ImageLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerV3Collection: Maybe<FooterV3CollectionType>;\n  readonly buttonCollection: Maybe<ButtonCollectionType>;\n};\n\n\nexport type ImageLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type ImageLinkingCollectionsFooterV3CollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<ImageLinkingCollectionsFooterV3CollectionOrderType>>>;\n};\n\n\nexport type ImageLinkingCollectionsButtonCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<ImageLinkingCollectionsButtonCollectionOrderType>>>;\n};\n\nexport type FooterV3CollectionType = {\n  readonly __typename?: 'FooterV3Collection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterV3Type>>;\n};\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3Type = EntryType & _NodeType & {\n  readonly __typename?: 'FooterV3';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterV3LinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly columnsCollection: Maybe<FooterV3ColumnsCollectionType>;\n  readonly barCollection: Maybe<FooterV3BarCollectionType>;\n  readonly logo: Maybe<ImageType>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly hideLogoOnDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3LinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3ContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3ColumnsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterGroupFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterV3ColumnsCollectionOrderType>>>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3BarCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterGroupFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterV3BarCollectionOrderType>>>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3LogoArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<ImageFilterType>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3UrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3HideLogoOnDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterV3LinkingCollectionsType = {\n  readonly __typename?: 'FooterV3LinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type FooterV3LinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterV3ColumnsCollectionType = {\n  readonly __typename?: 'FooterV3ColumnsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterGroupType>>;\n};\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupType = EntryType & _NodeType & {\n  readonly __typename?: 'FooterGroup';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterGroupLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly title: Maybe<Scalars['String']>;\n  readonly groupKey: Maybe<Scalars['String']>;\n  readonly itemsCollection: Maybe<FooterGroupItemsCollectionType>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly hideOnDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupGroupKeyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupItemsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterGroupItemsFilterType>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupAnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupHideOnDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterGroupLinkingCollectionsType = {\n  readonly __typename?: 'FooterGroupLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerV3Collection: Maybe<FooterV3CollectionType>;\n};\n\n\nexport type FooterGroupLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type FooterGroupLinkingCollectionsFooterV3CollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupLinkingCollectionsFooterV3CollectionOrderType>>>;\n};\n\nexport enum FooterGroupLinkingCollectionsFooterV3CollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterGroupItemsCollectionType = {\n  readonly __typename?: 'FooterGroupItemsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterGroupItemsItemType>>;\n};\n\nexport type FooterGroupItemsItemType = FooterCookiesSettingsLinkType | FooterItemV3Type | FooterLocaleDropdownType;\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkType = EntryType & _NodeType & {\n  readonly __typename?: 'FooterCookiesSettingsLink';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterCookiesSettingsLinkLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly title: Maybe<Scalars['String']>;\n  readonly hideOnDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n  readonly analytics: Maybe<AnalyticsType>;\n};\n\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkHideOnDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkAnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\nexport type FooterCookiesSettingsLinkLinkingCollectionsType = {\n  readonly __typename?: 'FooterCookiesSettingsLinkLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerGroupCollection: Maybe<FooterGroupCollectionType>;\n};\n\n\nexport type FooterCookiesSettingsLinkLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type FooterCookiesSettingsLinkLinkingCollectionsFooterGroupCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterCookiesSettingsLinkLinkingCollectionsFooterGroupCollectionOrderType>>>;\n};\n\nexport type FooterGroupCollectionType = {\n  readonly __typename?: 'FooterGroupCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterGroupType>>;\n};\n\nexport enum FooterCookiesSettingsLinkLinkingCollectionsFooterGroupCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/analytics) */\nexport type AnalyticsType = EntryType & _NodeType & {\n  readonly __typename?: 'Analytics';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<AnalyticsLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly label: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/analytics) */\nexport type AnalyticsLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/analytics) */\nexport type AnalyticsLabelArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type AnalyticsLinkingCollectionsType = {\n  readonly __typename?: 'AnalyticsLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerItemV3Collection: Maybe<FooterItemV3CollectionType>;\n  readonly footerCookiesSettingsLinkCollection: Maybe<FooterCookiesSettingsLinkCollectionType>;\n  readonly footerGroupCollection: Maybe<FooterGroupCollectionType>;\n  readonly globalNavItemCollection: Maybe<GlobalNavItemCollectionType>;\n  readonly callToActionCollection: Maybe<CallToActionCollectionType>;\n  readonly footerItemCollection: Maybe<FooterItemCollectionType>;\n};\n\n\nexport type AnalyticsLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type AnalyticsLinkingCollectionsFooterItemV3CollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsFooterItemV3CollectionOrderType>>>;\n};\n\n\nexport type AnalyticsLinkingCollectionsFooterCookiesSettingsLinkCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsFooterCookiesSettingsLinkCollectionOrderType>>>;\n};\n\n\nexport type AnalyticsLinkingCollectionsFooterGroupCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsFooterGroupCollectionOrderType>>>;\n};\n\n\nexport type AnalyticsLinkingCollectionsGlobalNavItemCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsGlobalNavItemCollectionOrderType>>>;\n};\n\n\nexport type AnalyticsLinkingCollectionsCallToActionCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsCallToActionCollectionOrderType>>>;\n};\n\n\nexport type AnalyticsLinkingCollectionsFooterItemCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsFooterItemCollectionOrderType>>>;\n};\n\nexport type FooterItemV3CollectionType = {\n  readonly __typename?: 'FooterItemV3Collection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterItemV3Type>>;\n};\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3Type = EntryType & _NodeType & {\n  readonly __typename?: 'FooterItemV3';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterItemV3LinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly title: Maybe<Scalars['String']>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly hideOnDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3LinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3ContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3TitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3UrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3AnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3HideOnDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterItemV3LinkingCollectionsType = {\n  readonly __typename?: 'FooterItemV3LinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerGroupCollection: Maybe<FooterGroupCollectionType>;\n};\n\n\nexport type FooterItemV3LinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type FooterItemV3LinkingCollectionsFooterGroupCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemV3LinkingCollectionsFooterGroupCollectionOrderType>>>;\n};\n\nexport enum FooterItemV3LinkingCollectionsFooterGroupCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type AnalyticsFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly label_exists: InputMaybe<Scalars['Boolean']>;\n  readonly label: InputMaybe<Scalars['String']>;\n  readonly label_not: InputMaybe<Scalars['String']>;\n  readonly label_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly label_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly label_contains: InputMaybe<Scalars['String']>;\n  readonly label_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsFilterType>>>;\n};\n\nexport type SysFilterType = {\n  readonly id_exists: InputMaybe<Scalars['Boolean']>;\n  readonly id: InputMaybe<Scalars['String']>;\n  readonly id_not: InputMaybe<Scalars['String']>;\n  readonly id_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains: InputMaybe<Scalars['String']>;\n  readonly id_not_contains: InputMaybe<Scalars['String']>;\n  readonly publishedAt_exists: InputMaybe<Scalars['Boolean']>;\n  readonly publishedAt: InputMaybe<Scalars['DateTime']>;\n  readonly publishedAt_not: InputMaybe<Scalars['DateTime']>;\n  readonly publishedAt_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['DateTime']>>>;\n  readonly publishedAt_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['DateTime']>>>;\n  readonly publishedAt_gt: InputMaybe<Scalars['DateTime']>;\n  readonly publishedAt_gte: InputMaybe<Scalars['DateTime']>;\n  readonly publishedAt_lt: InputMaybe<Scalars['DateTime']>;\n  readonly publishedAt_lte: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_exists: InputMaybe<Scalars['Boolean']>;\n  readonly firstPublishedAt: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_not: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['DateTime']>>>;\n  readonly firstPublishedAt_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['DateTime']>>>;\n  readonly firstPublishedAt_gt: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_gte: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_lt: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_lte: InputMaybe<Scalars['DateTime']>;\n  readonly publishedVersion_exists: InputMaybe<Scalars['Boolean']>;\n  readonly publishedVersion: InputMaybe<Scalars['Float']>;\n  readonly publishedVersion_not: InputMaybe<Scalars['Float']>;\n  readonly publishedVersion_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Float']>>>;\n  readonly publishedVersion_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Float']>>>;\n  readonly publishedVersion_gt: InputMaybe<Scalars['Float']>;\n  readonly publishedVersion_gte: InputMaybe<Scalars['Float']>;\n  readonly publishedVersion_lt: InputMaybe<Scalars['Float']>;\n  readonly publishedVersion_lte: InputMaybe<Scalars['Float']>;\n};\n\nexport type ContentfulMetadataFilterType = {\n  readonly tags_exists: InputMaybe<Scalars['Boolean']>;\n  readonly tags: InputMaybe<ContentfulMetadataTagsFilterType>;\n  readonly concepts_exists: InputMaybe<Scalars['Boolean']>;\n  readonly concepts: InputMaybe<ContentfulMetadataConceptsFilterType>;\n};\n\nexport type ContentfulMetadataConceptsFilterType = {\n  readonly id_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly descendants: InputMaybe<ContentfulMetadataConceptsDescendantsFilterType>;\n};\n\nexport type ContentfulMetadataConceptsDescendantsFilterType = {\n  readonly id_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\nexport type ContentfulMetadataTagsFilterType = {\n  readonly id_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\nexport enum AnalyticsLinkingCollectionsFooterItemV3CollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterCookiesSettingsLinkCollectionType = {\n  readonly __typename?: 'FooterCookiesSettingsLinkCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterCookiesSettingsLinkType>>;\n};\n\nexport enum AnalyticsLinkingCollectionsFooterCookiesSettingsLinkCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum AnalyticsLinkingCollectionsFooterGroupCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type GlobalNavItemCollectionType = {\n  readonly __typename?: 'GlobalNavItemCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavItemType>>;\n};\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemType = EntryType & _NodeType & {\n  readonly __typename?: 'GlobalNavItem';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<GlobalNavItemLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly hideHostnameRegex: Maybe<Scalars['String']>;\n};\n\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemUrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemAnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemHideHostnameRegexArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type GlobalNavItemLinkingCollectionsType = {\n  readonly __typename?: 'GlobalNavItemLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly globalNavCollection: Maybe<GlobalNavCollectionType>;\n};\n\n\nexport type GlobalNavItemLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type GlobalNavItemLinkingCollectionsGlobalNavCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavItemLinkingCollectionsGlobalNavCollectionOrderType>>>;\n};\n\nexport type GlobalNavCollectionType = {\n  readonly __typename?: 'GlobalNavCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavType>>;\n};\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavType = EntryType & _NodeType & {\n  readonly __typename?: 'GlobalNav';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<GlobalNavLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly groupKey: Maybe<Scalars['String']>;\n  readonly highlight: Maybe<GlobalNavHighlightType>;\n  readonly itemsCollection: Maybe<GlobalNavItemsCollectionType>;\n  readonly primaryHostnameRegex: Maybe<Scalars['String']>;\n  readonly hideHostnameRegex: Maybe<Scalars['String']>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavGroupKeyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavHighlightArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavHighlightFilterType>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavItemsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavItemsCollectionOrderType>>>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavPrimaryHostnameRegexArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavHideHostnameRegexArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type GlobalNavLinkingCollectionsType = {\n  readonly __typename?: 'GlobalNavLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly globalNavConfigCollection: Maybe<GlobalNavConfigCollectionType>;\n};\n\n\nexport type GlobalNavLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type GlobalNavLinkingCollectionsGlobalNavConfigCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavLinkingCollectionsGlobalNavConfigCollectionOrderType>>>;\n};\n\nexport type GlobalNavConfigCollectionType = {\n  readonly __typename?: 'GlobalNavConfigCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavConfigType>>;\n};\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigType = EntryType & _NodeType & {\n  readonly __typename?: 'GlobalNavConfig';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<GlobalNavConfigLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly globalNavGroupsCollection: Maybe<GlobalNavConfigGlobalNavGroupsCollectionType>;\n  readonly globalNavLabel: Maybe<Scalars['String']>;\n  readonly globalNavButtonAriaLabel: Maybe<Scalars['String']>;\n};\n\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigGlobalNavGroupsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavConfigGlobalNavGroupsCollectionOrderType>>>;\n};\n\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigGlobalNavLabelArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigGlobalNavButtonAriaLabelArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type GlobalNavConfigLinkingCollectionsType = {\n  readonly __typename?: 'GlobalNavConfigLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type GlobalNavConfigLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type GlobalNavConfigGlobalNavGroupsCollectionType = {\n  readonly __typename?: 'GlobalNavConfigGlobalNavGroupsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavType>>;\n};\n\nexport type GlobalNavFilterType = {\n  readonly highlight: InputMaybe<CfGlobalNavHighlightNestedFilterType>;\n  readonly items: InputMaybe<CfGlobalNavItemNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_exists: InputMaybe<Scalars['Boolean']>;\n  readonly groupKey: InputMaybe<Scalars['String']>;\n  readonly groupKey_not: InputMaybe<Scalars['String']>;\n  readonly groupKey_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_not_contains: InputMaybe<Scalars['String']>;\n  readonly highlight_exists: InputMaybe<Scalars['Boolean']>;\n  readonly itemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly primaryHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly primaryHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly primaryHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly primaryHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavFilterType>>>;\n};\n\nexport type CfGlobalNavHighlightNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly cta_exists: InputMaybe<Scalars['Boolean']>;\n  readonly background_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitleV2_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitleV2: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_not: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardTitleV2_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardTitleV2_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardBodyV2: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_not: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardBodyV2_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardBodyV2_contains: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardContent_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardContent_contains: InputMaybe<Scalars['String']>;\n  readonly cardContent_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitle_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitle_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardBody_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardBody_contains: InputMaybe<Scalars['String']>;\n  readonly cardBody_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavHighlightNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavHighlightNestedFilterType>>>;\n};\n\nexport type CfGlobalNavItemNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavItemNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavItemNestedFilterType>>>;\n};\n\nexport enum GlobalNavConfigGlobalNavGroupsCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  PrimaryHostnameRegexAscType = 'primaryHostnameRegex_ASC',\n  PrimaryHostnameRegexDescType = 'primaryHostnameRegex_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum GlobalNavLinkingCollectionsGlobalNavConfigCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GlobalNavLabelAscType = 'globalNavLabel_ASC',\n  GlobalNavLabelDescType = 'globalNavLabel_DESC',\n  GlobalNavButtonAriaLabelAscType = 'globalNavButtonAriaLabel_ASC',\n  GlobalNavButtonAriaLabelDescType = 'globalNavButtonAriaLabel_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightType = EntryType & _NodeType & {\n  readonly __typename?: 'GlobalNavHighlight';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<GlobalNavHighlightLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly cta: Maybe<CallToActionType>;\n  readonly background: Maybe<AssetType>;\n  readonly cardTitleV2: Maybe<Scalars['String']>;\n  readonly cardBodyV2: Maybe<Scalars['String']>;\n  readonly cardContent: Maybe<GlobalNavHighlightCardContentType>;\n  readonly cardTitle: Maybe<GlobalNavHighlightCardTitleType>;\n  readonly cardBody: Maybe<GlobalNavHighlightCardBodyType>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCtaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CallToActionFilterType>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightBackgroundArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCardTitleV2ArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCardBodyV2ArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCardContentArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCardTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCardBodyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type GlobalNavHighlightLinkingCollectionsType = {\n  readonly __typename?: 'GlobalNavHighlightLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly globalNavCollection: Maybe<GlobalNavCollectionType>;\n};\n\n\nexport type GlobalNavHighlightLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type GlobalNavHighlightLinkingCollectionsGlobalNavCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavHighlightLinkingCollectionsGlobalNavCollectionOrderType>>>;\n};\n\nexport enum GlobalNavHighlightLinkingCollectionsGlobalNavCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  PrimaryHostnameRegexAscType = 'primaryHostnameRegex_ASC',\n  PrimaryHostnameRegexDescType = 'primaryHostnameRegex_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionType = EntryType & _NodeType & {\n  readonly __typename?: 'CallToAction';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<CallToActionLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly presentation: Maybe<CallToActionPresentationType>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly url: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionPresentationArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionAnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionUrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type CallToActionLinkingCollectionsType = {\n  readonly __typename?: 'CallToActionLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly globalNavHighlightCollection: Maybe<GlobalNavHighlightCollectionType>;\n};\n\n\nexport type CallToActionLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type CallToActionLinkingCollectionsGlobalNavHighlightCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CallToActionLinkingCollectionsGlobalNavHighlightCollectionOrderType>>>;\n};\n\nexport type GlobalNavHighlightCollectionType = {\n  readonly __typename?: 'GlobalNavHighlightCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavHighlightType>>;\n};\n\nexport enum CallToActionLinkingCollectionsGlobalNavHighlightCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  CardTitleV2AscType = 'cardTitleV2_ASC',\n  CardTitleV2DescType = 'cardTitleV2_DESC',\n  CardBodyV2AscType = 'cardBodyV2_ASC',\n  CardBodyV2DescType = 'cardBodyV2_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CallToActionPresentationType = ButtonType;\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonType = EntryType & _NodeType & {\n  readonly __typename?: 'Button';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<ButtonLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly title: Maybe<ButtonTitleType>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly size: Maybe<Scalars['String']>;\n  readonly theme: Maybe<Scalars['String']>;\n  readonly buttonType: Maybe<Scalars['String']>;\n  readonly image: Maybe<ImageType>;\n  readonly iconName: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonUrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonSizeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonThemeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonButtonTypeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonImageArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<ImageFilterType>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonIconNameArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type ButtonLinkingCollectionsType = {\n  readonly __typename?: 'ButtonLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly callToActionCollection: Maybe<CallToActionCollectionType>;\n};\n\n\nexport type ButtonLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type ButtonLinkingCollectionsCallToActionCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<ButtonLinkingCollectionsCallToActionCollectionOrderType>>>;\n};\n\nexport type CallToActionCollectionType = {\n  readonly __typename?: 'CallToActionCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<CallToActionType>>;\n};\n\nexport enum ButtonLinkingCollectionsCallToActionCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type ButtonTitleType = {\n  readonly __typename?: 'ButtonTitle';\n  readonly json: Scalars['JSON'];\n  readonly links: ButtonTitleLinksType;\n};\n\nexport type ButtonTitleLinksType = {\n  readonly __typename?: 'ButtonTitleLinks';\n  readonly entries: ButtonTitleEntriesType;\n  readonly assets: ButtonTitleAssetsType;\n  readonly resources: ButtonTitleResourcesType;\n};\n\nexport type ButtonTitleEntriesType = {\n  readonly __typename?: 'ButtonTitleEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type ButtonTitleAssetsType = {\n  readonly __typename?: 'ButtonTitleAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type ButtonTitleResourcesType = {\n  readonly __typename?: 'ButtonTitleResources';\n  readonly block: ReadonlyArray<ButtonTitleResourcesBlockType>;\n  readonly inline: ReadonlyArray<ButtonTitleResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<ButtonTitleResourcesHyperlinkType>;\n};\n\nexport type ButtonTitleResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'ButtonTitleResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type ResourceLinkType = {\n  readonly sys: ResourceSysType;\n};\n\nexport type ResourceSysType = {\n  readonly __typename?: 'ResourceSys';\n  readonly urn: Scalars['String'];\n  readonly linkType: Scalars['String'];\n};\n\nexport type ButtonTitleResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'ButtonTitleResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type ButtonTitleResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'ButtonTitleResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type ImageFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly media_exists: InputMaybe<Scalars['Boolean']>;\n  readonly wrap_exists: InputMaybe<Scalars['Boolean']>;\n  readonly wrap: InputMaybe<Scalars['String']>;\n  readonly wrap_not: InputMaybe<Scalars['String']>;\n  readonly wrap_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_contains: InputMaybe<Scalars['String']>;\n  readonly wrap_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<ImageFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<ImageFilterType>>>;\n};\n\nexport type CallToActionFilterType = {\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly presentation_exists: InputMaybe<Scalars['Boolean']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CallToActionFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CallToActionFilterType>>>;\n};\n\nexport type CfAnalyticsNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly label_exists: InputMaybe<Scalars['Boolean']>;\n  readonly label: InputMaybe<Scalars['String']>;\n  readonly label_not: InputMaybe<Scalars['String']>;\n  readonly label_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly label_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly label_contains: InputMaybe<Scalars['String']>;\n  readonly label_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfAnalyticsNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfAnalyticsNestedFilterType>>>;\n};\n\nexport type GlobalNavHighlightCardContentType = {\n  readonly __typename?: 'GlobalNavHighlightCardContent';\n  readonly json: Scalars['JSON'];\n  readonly links: GlobalNavHighlightCardContentLinksType;\n};\n\nexport type GlobalNavHighlightCardContentLinksType = {\n  readonly __typename?: 'GlobalNavHighlightCardContentLinks';\n  readonly entries: GlobalNavHighlightCardContentEntriesType;\n  readonly assets: GlobalNavHighlightCardContentAssetsType;\n  readonly resources: GlobalNavHighlightCardContentResourcesType;\n};\n\nexport type GlobalNavHighlightCardContentEntriesType = {\n  readonly __typename?: 'GlobalNavHighlightCardContentEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type GlobalNavHighlightCardContentAssetsType = {\n  readonly __typename?: 'GlobalNavHighlightCardContentAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type GlobalNavHighlightCardContentResourcesType = {\n  readonly __typename?: 'GlobalNavHighlightCardContentResources';\n  readonly block: ReadonlyArray<GlobalNavHighlightCardContentResourcesBlockType>;\n  readonly inline: ReadonlyArray<GlobalNavHighlightCardContentResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<GlobalNavHighlightCardContentResourcesHyperlinkType>;\n};\n\nexport type GlobalNavHighlightCardContentResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardContentResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardContentResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardContentResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardContentResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardContentResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardTitleType = {\n  readonly __typename?: 'GlobalNavHighlightCardTitle';\n  readonly json: Scalars['JSON'];\n  readonly links: GlobalNavHighlightCardTitleLinksType;\n};\n\nexport type GlobalNavHighlightCardTitleLinksType = {\n  readonly __typename?: 'GlobalNavHighlightCardTitleLinks';\n  readonly entries: GlobalNavHighlightCardTitleEntriesType;\n  readonly assets: GlobalNavHighlightCardTitleAssetsType;\n  readonly resources: GlobalNavHighlightCardTitleResourcesType;\n};\n\nexport type GlobalNavHighlightCardTitleEntriesType = {\n  readonly __typename?: 'GlobalNavHighlightCardTitleEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type GlobalNavHighlightCardTitleAssetsType = {\n  readonly __typename?: 'GlobalNavHighlightCardTitleAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type GlobalNavHighlightCardTitleResourcesType = {\n  readonly __typename?: 'GlobalNavHighlightCardTitleResources';\n  readonly block: ReadonlyArray<GlobalNavHighlightCardTitleResourcesBlockType>;\n  readonly inline: ReadonlyArray<GlobalNavHighlightCardTitleResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<GlobalNavHighlightCardTitleResourcesHyperlinkType>;\n};\n\nexport type GlobalNavHighlightCardTitleResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardTitleResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardTitleResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardTitleResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardTitleResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardTitleResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardBodyType = {\n  readonly __typename?: 'GlobalNavHighlightCardBody';\n  readonly json: Scalars['JSON'];\n  readonly links: GlobalNavHighlightCardBodyLinksType;\n};\n\nexport type GlobalNavHighlightCardBodyLinksType = {\n  readonly __typename?: 'GlobalNavHighlightCardBodyLinks';\n  readonly entries: GlobalNavHighlightCardBodyEntriesType;\n  readonly assets: GlobalNavHighlightCardBodyAssetsType;\n  readonly resources: GlobalNavHighlightCardBodyResourcesType;\n};\n\nexport type GlobalNavHighlightCardBodyEntriesType = {\n  readonly __typename?: 'GlobalNavHighlightCardBodyEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type GlobalNavHighlightCardBodyAssetsType = {\n  readonly __typename?: 'GlobalNavHighlightCardBodyAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type GlobalNavHighlightCardBodyResourcesType = {\n  readonly __typename?: 'GlobalNavHighlightCardBodyResources';\n  readonly block: ReadonlyArray<GlobalNavHighlightCardBodyResourcesBlockType>;\n  readonly inline: ReadonlyArray<GlobalNavHighlightCardBodyResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<GlobalNavHighlightCardBodyResourcesHyperlinkType>;\n};\n\nexport type GlobalNavHighlightCardBodyResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardBodyResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardBodyResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardBodyResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardBodyResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardBodyResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightFilterType = {\n  readonly cta: InputMaybe<CfCallToActionNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly cta_exists: InputMaybe<Scalars['Boolean']>;\n  readonly background_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitleV2_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitleV2: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_not: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardTitleV2_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardTitleV2_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardBodyV2: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_not: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardBodyV2_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardBodyV2_contains: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardContent_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardContent_contains: InputMaybe<Scalars['String']>;\n  readonly cardContent_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitle_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitle_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardBody_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardBody_contains: InputMaybe<Scalars['String']>;\n  readonly cardBody_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavHighlightFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavHighlightFilterType>>>;\n};\n\nexport type CfCallToActionNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly presentation_exists: InputMaybe<Scalars['Boolean']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfCallToActionNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfCallToActionNestedFilterType>>>;\n};\n\nexport type GlobalNavItemsCollectionType = {\n  readonly __typename?: 'GlobalNavItemsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavItemType>>;\n};\n\nexport type GlobalNavItemFilterType = {\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavItemFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavItemFilterType>>>;\n};\n\nexport enum GlobalNavItemsCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum GlobalNavItemLinkingCollectionsGlobalNavCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  PrimaryHostnameRegexAscType = 'primaryHostnameRegex_ASC',\n  PrimaryHostnameRegexDescType = 'primaryHostnameRegex_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum AnalyticsLinkingCollectionsGlobalNavItemCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum AnalyticsLinkingCollectionsCallToActionCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterItemCollectionType = {\n  readonly __typename?: 'FooterItemCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterItemType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemType = EntryType & _NodeType & {\n  readonly __typename?: 'FooterItem';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterItemLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly footerItemsCollection: Maybe<FooterItemFooterItemsCollectionType>;\n  readonly globalOnly: Maybe<Scalars['Boolean']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemUrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemAnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemFooterItemsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemFooterItemsCollectionOrderType>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemGlobalOnlyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterItemLinkingCollectionsType = {\n  readonly __typename?: 'FooterItemLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerCollection: Maybe<FooterCollectionType>;\n  readonly footerItemCollection: Maybe<FooterItemCollectionType>;\n};\n\n\nexport type FooterItemLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type FooterItemLinkingCollectionsFooterCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemLinkingCollectionsFooterCollectionOrderType>>>;\n};\n\n\nexport type FooterItemLinkingCollectionsFooterItemCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemLinkingCollectionsFooterItemCollectionOrderType>>>;\n};\n\nexport type FooterCollectionType = {\n  readonly __typename?: 'FooterCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterType = EntryType & _NodeType & {\n  readonly __typename?: 'Footer';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly footerColumnCollection: Maybe<FooterFooterColumnCollectionType>;\n  readonly footerBarCollection: Maybe<FooterFooterBarCollectionType>;\n  readonly globalOnly: Maybe<Scalars['Boolean']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterFooterColumnCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterFooterColumnCollectionOrderType>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterFooterBarCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterFooterBarCollectionOrderType>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterGlobalOnlyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterLinkingCollectionsType = {\n  readonly __typename?: 'FooterLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type FooterLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterFooterColumnCollectionType = {\n  readonly __typename?: 'FooterFooterColumnCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterItemType>>;\n};\n\nexport type FooterItemFilterType = {\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly footerItems: InputMaybe<CfFooterItemNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly footerItemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_not: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterItemFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterItemFilterType>>>;\n};\n\nexport type CfFooterItemNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly footerItemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_not: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfFooterItemNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfFooterItemNestedFilterType>>>;\n};\n\nexport enum FooterFooterColumnCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterFooterBarCollectionType = {\n  readonly __typename?: 'FooterFooterBarCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterItemType>>;\n};\n\nexport enum FooterFooterBarCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum FooterItemLinkingCollectionsFooterCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum FooterItemLinkingCollectionsFooterItemCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterItemFooterItemsCollectionType = {\n  readonly __typename?: 'FooterItemFooterItemsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterItemType>>;\n};\n\nexport enum FooterItemFooterItemsCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum AnalyticsLinkingCollectionsFooterItemCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** Footer Locale Dropdown model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerLocaleDropdown) */\nexport type FooterLocaleDropdownType = EntryType & _NodeType & {\n  readonly __typename?: 'FooterLocaleDropdown';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterLocaleDropdownLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly title: Maybe<Scalars['String']>;\n  readonly hideOnDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n};\n\n\n/** Footer Locale Dropdown model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerLocaleDropdown) */\nexport type FooterLocaleDropdownLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Footer Locale Dropdown model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerLocaleDropdown) */\nexport type FooterLocaleDropdownContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer Locale Dropdown model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerLocaleDropdown) */\nexport type FooterLocaleDropdownTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer Locale Dropdown model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerLocaleDropdown) */\nexport type FooterLocaleDropdownHideOnDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterLocaleDropdownLinkingCollectionsType = {\n  readonly __typename?: 'FooterLocaleDropdownLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerGroupCollection: Maybe<FooterGroupCollectionType>;\n};\n\n\nexport type FooterLocaleDropdownLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type FooterLocaleDropdownLinkingCollectionsFooterGroupCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterLocaleDropdownLinkingCollectionsFooterGroupCollectionOrderType>>>;\n};\n\nexport enum FooterLocaleDropdownLinkingCollectionsFooterGroupCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterGroupItemsFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupItemsFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupItemsFilterType>>>;\n};\n\nexport type FooterGroupFilterType = {\n  readonly items: InputMaybe<CfitemsMultiTypeNestedFilterType>;\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_exists: InputMaybe<Scalars['Boolean']>;\n  readonly groupKey: InputMaybe<Scalars['String']>;\n  readonly groupKey_not: InputMaybe<Scalars['String']>;\n  readonly groupKey_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_not_contains: InputMaybe<Scalars['String']>;\n  readonly itemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupFilterType>>>;\n};\n\nexport type CfitemsMultiTypeNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfitemsMultiTypeNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfitemsMultiTypeNestedFilterType>>>;\n};\n\nexport enum FooterV3ColumnsCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterV3BarCollectionType = {\n  readonly __typename?: 'FooterV3BarCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterGroupType>>;\n};\n\nexport enum FooterV3BarCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum ImageLinkingCollectionsFooterV3CollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type ButtonCollectionType = {\n  readonly __typename?: 'ButtonCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<ButtonType>>;\n};\n\nexport enum ImageLinkingCollectionsButtonCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SizeAscType = 'size_ASC',\n  SizeDescType = 'size_DESC',\n  ThemeAscType = 'theme_ASC',\n  ThemeDescType = 'theme_DESC',\n  ButtonTypeAscType = 'buttonType_ASC',\n  ButtonTypeDescType = 'buttonType_DESC',\n  IconNameAscType = 'iconName_ASC',\n  IconNameDescType = 'iconName_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CookieBannerCollectionType = {\n  readonly __typename?: 'CookieBannerCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<CookieBannerType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerType = EntryType & _NodeType & {\n  readonly __typename?: 'CookieBanner';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<CookieBannerLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly leftMedia: Maybe<AssetType>;\n  readonly rightMedia: Maybe<AssetType>;\n  readonly body: Maybe<CookieBannerBodyType>;\n  readonly acceptCookiesButton: Maybe<Scalars['String']>;\n  readonly cookieSettingsButtonText: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerLeftMediaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerRightMediaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerBodyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerAcceptCookiesButtonArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerCookieSettingsButtonTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type CookieBannerLinkingCollectionsType = {\n  readonly __typename?: 'CookieBannerLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type CookieBannerLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type CookieBannerBodyType = {\n  readonly __typename?: 'CookieBannerBody';\n  readonly json: Scalars['JSON'];\n  readonly links: CookieBannerBodyLinksType;\n};\n\nexport type CookieBannerBodyLinksType = {\n  readonly __typename?: 'CookieBannerBodyLinks';\n  readonly entries: CookieBannerBodyEntriesType;\n  readonly assets: CookieBannerBodyAssetsType;\n  readonly resources: CookieBannerBodyResourcesType;\n};\n\nexport type CookieBannerBodyEntriesType = {\n  readonly __typename?: 'CookieBannerBodyEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type CookieBannerBodyAssetsType = {\n  readonly __typename?: 'CookieBannerBodyAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type CookieBannerBodyResourcesType = {\n  readonly __typename?: 'CookieBannerBodyResources';\n  readonly block: ReadonlyArray<CookieBannerBodyResourcesBlockType>;\n  readonly inline: ReadonlyArray<CookieBannerBodyResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<CookieBannerBodyResourcesHyperlinkType>;\n};\n\nexport type CookieBannerBodyResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'CookieBannerBodyResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieBannerBodyResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'CookieBannerBodyResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieBannerBodyResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'CookieBannerBodyResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type VideoCollectionType = {\n  readonly __typename?: 'VideoCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<VideoType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoType = EntryType & _NodeType & {\n  readonly __typename?: 'Video';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<VideoLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly media: Maybe<AssetType>;\n  readonly thumbnailMedia: Maybe<AssetType>;\n  readonly autoPlay: Maybe<Scalars['Boolean']>;\n  readonly wrap: Maybe<Scalars['String']>;\n  readonly captions: Maybe<AssetType>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoMediaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoThumbnailMediaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoAutoPlayArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoWrapArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoCaptionsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type VideoLinkingCollectionsType = {\n  readonly __typename?: 'VideoLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type VideoLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type AssetCollectionType = {\n  readonly __typename?: 'AssetCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type AssetFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly description_exists: InputMaybe<Scalars['Boolean']>;\n  readonly description: InputMaybe<Scalars['String']>;\n  readonly description_not: InputMaybe<Scalars['String']>;\n  readonly description_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly description_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly description_contains: InputMaybe<Scalars['String']>;\n  readonly description_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly size_exists: InputMaybe<Scalars['Boolean']>;\n  readonly size: InputMaybe<Scalars['Int']>;\n  readonly size_not: InputMaybe<Scalars['Int']>;\n  readonly size_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly size_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly size_gt: InputMaybe<Scalars['Int']>;\n  readonly size_gte: InputMaybe<Scalars['Int']>;\n  readonly size_lt: InputMaybe<Scalars['Int']>;\n  readonly size_lte: InputMaybe<Scalars['Int']>;\n  readonly contentType_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentType: InputMaybe<Scalars['String']>;\n  readonly contentType_not: InputMaybe<Scalars['String']>;\n  readonly contentType_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentType_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentType_contains: InputMaybe<Scalars['String']>;\n  readonly contentType_not_contains: InputMaybe<Scalars['String']>;\n  readonly fileName_exists: InputMaybe<Scalars['Boolean']>;\n  readonly fileName: InputMaybe<Scalars['String']>;\n  readonly fileName_not: InputMaybe<Scalars['String']>;\n  readonly fileName_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly fileName_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly fileName_contains: InputMaybe<Scalars['String']>;\n  readonly fileName_not_contains: InputMaybe<Scalars['String']>;\n  readonly width_exists: InputMaybe<Scalars['Boolean']>;\n  readonly width: InputMaybe<Scalars['Int']>;\n  readonly width_not: InputMaybe<Scalars['Int']>;\n  readonly width_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly width_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly width_gt: InputMaybe<Scalars['Int']>;\n  readonly width_gte: InputMaybe<Scalars['Int']>;\n  readonly width_lt: InputMaybe<Scalars['Int']>;\n  readonly width_lte: InputMaybe<Scalars['Int']>;\n  readonly height_exists: InputMaybe<Scalars['Boolean']>;\n  readonly height: InputMaybe<Scalars['Int']>;\n  readonly height_not: InputMaybe<Scalars['Int']>;\n  readonly height_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly height_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly height_gt: InputMaybe<Scalars['Int']>;\n  readonly height_gte: InputMaybe<Scalars['Int']>;\n  readonly height_lt: InputMaybe<Scalars['Int']>;\n  readonly height_lte: InputMaybe<Scalars['Int']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<AssetFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<AssetFilterType>>>;\n};\n\nexport enum AssetOrderType {\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SizeAscType = 'size_ASC',\n  SizeDescType = 'size_DESC',\n  ContentTypeAscType = 'contentType_ASC',\n  ContentTypeDescType = 'contentType_DESC',\n  FileNameAscType = 'fileName_ASC',\n  FileNameDescType = 'fileName_DESC',\n  WidthAscType = 'width_ASC',\n  WidthDescType = 'width_DESC',\n  HeightAscType = 'height_ASC',\n  HeightDescType = 'height_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type GlobalNavConfigFilterType = {\n  readonly globalNavGroups: InputMaybe<CfGlobalNavNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly globalNavGroupsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalNavLabel_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalNavLabel: InputMaybe<Scalars['String']>;\n  readonly globalNavLabel_not: InputMaybe<Scalars['String']>;\n  readonly globalNavLabel_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly globalNavLabel_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly globalNavLabel_contains: InputMaybe<Scalars['String']>;\n  readonly globalNavLabel_not_contains: InputMaybe<Scalars['String']>;\n  readonly globalNavButtonAriaLabel_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalNavButtonAriaLabel: InputMaybe<Scalars['String']>;\n  readonly globalNavButtonAriaLabel_not: InputMaybe<Scalars['String']>;\n  readonly globalNavButtonAriaLabel_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly globalNavButtonAriaLabel_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly globalNavButtonAriaLabel_contains: InputMaybe<Scalars['String']>;\n  readonly globalNavButtonAriaLabel_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavConfigFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavConfigFilterType>>>;\n};\n\nexport type CfGlobalNavNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_exists: InputMaybe<Scalars['Boolean']>;\n  readonly groupKey: InputMaybe<Scalars['String']>;\n  readonly groupKey_not: InputMaybe<Scalars['String']>;\n  readonly groupKey_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_not_contains: InputMaybe<Scalars['String']>;\n  readonly highlight_exists: InputMaybe<Scalars['Boolean']>;\n  readonly itemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly primaryHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly primaryHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly primaryHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly primaryHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavNestedFilterType>>>;\n};\n\nexport enum GlobalNavConfigOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GlobalNavLabelAscType = 'globalNavLabel_ASC',\n  GlobalNavLabelDescType = 'globalNavLabel_DESC',\n  GlobalNavButtonAriaLabelAscType = 'globalNavButtonAriaLabel_ASC',\n  GlobalNavButtonAriaLabelDescType = 'globalNavButtonAriaLabel_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalType = EntryType & _NodeType & {\n  readonly __typename?: 'CookieModal';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<CookieModalLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly landingScreenTitle: Maybe<Scalars['String']>;\n  readonly content: Maybe<CookieModalContentType>;\n  readonly acceptAllButtonText: Maybe<Scalars['String']>;\n  readonly essentialOnlyButtonText: Maybe<Scalars['String']>;\n  readonly settingsButtonText: Maybe<Scalars['String']>;\n  readonly settingsScreenTitle: Maybe<Scalars['String']>;\n  readonly acceptSelectedButtonText: Maybe<Scalars['String']>;\n  readonly saveChangesText: Maybe<Scalars['String']>;\n  readonly changesSavedText: Maybe<Scalars['String']>;\n  readonly toggleEnabledText: Maybe<Scalars['String']>;\n  readonly toggleDisabledText: Maybe<Scalars['String']>;\n  readonly cookieCategoriesCollection: Maybe<CookieModalCookieCategoriesCollectionType>;\n  readonly gpcLocations: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n  readonly enableCookieDeletion: Maybe<Scalars['Boolean']>;\n  readonly logCookieDeletion: Maybe<Scalars['Boolean']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalLandingScreenTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalContentArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalAcceptAllButtonTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalEssentialOnlyButtonTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalSettingsButtonTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalSettingsScreenTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalAcceptSelectedButtonTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalSaveChangesTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalChangesSavedTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalToggleEnabledTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalToggleDisabledTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalCookieCategoriesCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CookieCategoryFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieModalCookieCategoriesCollectionOrderType>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalGpcLocationsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalEnableCookieDeletionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalLogCookieDeletionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type CookieModalLinkingCollectionsType = {\n  readonly __typename?: 'CookieModalLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type CookieModalLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type CookieModalContentType = {\n  readonly __typename?: 'CookieModalContent';\n  readonly json: Scalars['JSON'];\n  readonly links: CookieModalContentLinksType;\n};\n\nexport type CookieModalContentLinksType = {\n  readonly __typename?: 'CookieModalContentLinks';\n  readonly entries: CookieModalContentEntriesType;\n  readonly assets: CookieModalContentAssetsType;\n  readonly resources: CookieModalContentResourcesType;\n};\n\nexport type CookieModalContentEntriesType = {\n  readonly __typename?: 'CookieModalContentEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type CookieModalContentAssetsType = {\n  readonly __typename?: 'CookieModalContentAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type CookieModalContentResourcesType = {\n  readonly __typename?: 'CookieModalContentResources';\n  readonly block: ReadonlyArray<CookieModalContentResourcesBlockType>;\n  readonly inline: ReadonlyArray<CookieModalContentResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<CookieModalContentResourcesHyperlinkType>;\n};\n\nexport type CookieModalContentResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'CookieModalContentResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieModalContentResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'CookieModalContentResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieModalContentResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'CookieModalContentResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieModalCookieCategoriesCollectionType = {\n  readonly __typename?: 'CookieModalCookieCategoriesCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<CookieCategoryType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryType = EntryType & _NodeType & {\n  readonly __typename?: 'CookieCategory';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<CookieCategoryLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly description: Maybe<CookieCategoryDescriptionType>;\n  readonly categoryCookieName: Maybe<Scalars['String']>;\n  readonly displayMode: Maybe<Scalars['String']>;\n  readonly isEssential: Maybe<Scalars['Boolean']>;\n  readonly enableToggle: Maybe<Scalars['Boolean']>;\n  readonly cookiesCollection: Maybe<CookieCategoryCookiesCollectionType>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryCategoryCookieNameArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryDisplayModeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryIsEssentialArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryEnableToggleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryCookiesCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<TrackingCookieFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieCategoryCookiesCollectionOrderType>>>;\n};\n\nexport type CookieCategoryLinkingCollectionsType = {\n  readonly __typename?: 'CookieCategoryLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly cookieModalCollection: Maybe<CookieModalCollectionType>;\n};\n\n\nexport type CookieCategoryLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type CookieCategoryLinkingCollectionsCookieModalCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieCategoryLinkingCollectionsCookieModalCollectionOrderType>>>;\n};\n\nexport type CookieModalCollectionType = {\n  readonly __typename?: 'CookieModalCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<CookieModalType>>;\n};\n\nexport enum CookieCategoryLinkingCollectionsCookieModalCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  LandingScreenTitleAscType = 'landingScreenTitle_ASC',\n  LandingScreenTitleDescType = 'landingScreenTitle_DESC',\n  AcceptAllButtonTextAscType = 'acceptAllButtonText_ASC',\n  AcceptAllButtonTextDescType = 'acceptAllButtonText_DESC',\n  EssentialOnlyButtonTextAscType = 'essentialOnlyButtonText_ASC',\n  EssentialOnlyButtonTextDescType = 'essentialOnlyButtonText_DESC',\n  SettingsButtonTextAscType = 'settingsButtonText_ASC',\n  SettingsButtonTextDescType = 'settingsButtonText_DESC',\n  SettingsScreenTitleAscType = 'settingsScreenTitle_ASC',\n  SettingsScreenTitleDescType = 'settingsScreenTitle_DESC',\n  AcceptSelectedButtonTextAscType = 'acceptSelectedButtonText_ASC',\n  AcceptSelectedButtonTextDescType = 'acceptSelectedButtonText_DESC',\n  SaveChangesTextAscType = 'saveChangesText_ASC',\n  SaveChangesTextDescType = 'saveChangesText_DESC',\n  ChangesSavedTextAscType = 'changesSavedText_ASC',\n  ChangesSavedTextDescType = 'changesSavedText_DESC',\n  ToggleEnabledTextAscType = 'toggleEnabledText_ASC',\n  ToggleEnabledTextDescType = 'toggleEnabledText_DESC',\n  ToggleDisabledTextAscType = 'toggleDisabledText_ASC',\n  ToggleDisabledTextDescType = 'toggleDisabledText_DESC',\n  EnableCookieDeletionAscType = 'enableCookieDeletion_ASC',\n  EnableCookieDeletionDescType = 'enableCookieDeletion_DESC',\n  LogCookieDeletionAscType = 'logCookieDeletion_ASC',\n  LogCookieDeletionDescType = 'logCookieDeletion_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CookieCategoryDescriptionType = {\n  readonly __typename?: 'CookieCategoryDescription';\n  readonly json: Scalars['JSON'];\n  readonly links: CookieCategoryDescriptionLinksType;\n};\n\nexport type CookieCategoryDescriptionLinksType = {\n  readonly __typename?: 'CookieCategoryDescriptionLinks';\n  readonly entries: CookieCategoryDescriptionEntriesType;\n  readonly assets: CookieCategoryDescriptionAssetsType;\n  readonly resources: CookieCategoryDescriptionResourcesType;\n};\n\nexport type CookieCategoryDescriptionEntriesType = {\n  readonly __typename?: 'CookieCategoryDescriptionEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type CookieCategoryDescriptionAssetsType = {\n  readonly __typename?: 'CookieCategoryDescriptionAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type CookieCategoryDescriptionResourcesType = {\n  readonly __typename?: 'CookieCategoryDescriptionResources';\n  readonly block: ReadonlyArray<CookieCategoryDescriptionResourcesBlockType>;\n  readonly inline: ReadonlyArray<CookieCategoryDescriptionResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<CookieCategoryDescriptionResourcesHyperlinkType>;\n};\n\nexport type CookieCategoryDescriptionResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'CookieCategoryDescriptionResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieCategoryDescriptionResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'CookieCategoryDescriptionResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieCategoryDescriptionResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'CookieCategoryDescriptionResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieCategoryCookiesCollectionType = {\n  readonly __typename?: 'CookieCategoryCookiesCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<TrackingCookieType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieType = EntryType & _NodeType & {\n  readonly __typename?: 'TrackingCookie';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<TrackingCookieLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly name: Maybe<Scalars['String']>;\n  readonly provider: Maybe<TrackingCookieProviderType>;\n  readonly domains: Maybe<TrackingCookieDomainsType>;\n  readonly purpose: Maybe<TrackingCookiePurposeType>;\n  readonly expiration: Maybe<TrackingCookieExpirationType>;\n  readonly pattern: Maybe<Scalars['String']>;\n  readonly subDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n  readonly path: Maybe<Scalars['String']>;\n  readonly secure: Maybe<Scalars['Boolean']>;\n  readonly sameSite: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieNameArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieProviderArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookiePurposeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieExpirationArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookiePatternArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieSubDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookiePathArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieSecureArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieSameSiteArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type TrackingCookieLinkingCollectionsType = {\n  readonly __typename?: 'TrackingCookieLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly cookieCategoryCollection: Maybe<CookieCategoryCollectionType>;\n};\n\n\nexport type TrackingCookieLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type TrackingCookieLinkingCollectionsCookieCategoryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<TrackingCookieLinkingCollectionsCookieCategoryCollectionOrderType>>>;\n};\n\nexport type CookieCategoryCollectionType = {\n  readonly __typename?: 'CookieCategoryCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<CookieCategoryType>>;\n};\n\nexport enum TrackingCookieLinkingCollectionsCookieCategoryCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  CategoryCookieNameAscType = 'categoryCookieName_ASC',\n  CategoryCookieNameDescType = 'categoryCookieName_DESC',\n  DisplayModeAscType = 'displayMode_ASC',\n  DisplayModeDescType = 'displayMode_DESC',\n  IsEssentialAscType = 'isEssential_ASC',\n  IsEssentialDescType = 'isEssential_DESC',\n  EnableToggleAscType = 'enableToggle_ASC',\n  EnableToggleDescType = 'enableToggle_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type TrackingCookieProviderType = {\n  readonly __typename?: 'TrackingCookieProvider';\n  readonly json: Scalars['JSON'];\n  readonly links: TrackingCookieProviderLinksType;\n};\n\nexport type TrackingCookieProviderLinksType = {\n  readonly __typename?: 'TrackingCookieProviderLinks';\n  readonly entries: TrackingCookieProviderEntriesType;\n  readonly assets: TrackingCookieProviderAssetsType;\n  readonly resources: TrackingCookieProviderResourcesType;\n};\n\nexport type TrackingCookieProviderEntriesType = {\n  readonly __typename?: 'TrackingCookieProviderEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type TrackingCookieProviderAssetsType = {\n  readonly __typename?: 'TrackingCookieProviderAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type TrackingCookieProviderResourcesType = {\n  readonly __typename?: 'TrackingCookieProviderResources';\n  readonly block: ReadonlyArray<TrackingCookieProviderResourcesBlockType>;\n  readonly inline: ReadonlyArray<TrackingCookieProviderResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<TrackingCookieProviderResourcesHyperlinkType>;\n};\n\nexport type TrackingCookieProviderResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieProviderResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieProviderResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieProviderResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieProviderResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieProviderResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieDomainsType = {\n  readonly __typename?: 'TrackingCookieDomains';\n  readonly json: Scalars['JSON'];\n  readonly links: TrackingCookieDomainsLinksType;\n};\n\nexport type TrackingCookieDomainsLinksType = {\n  readonly __typename?: 'TrackingCookieDomainsLinks';\n  readonly entries: TrackingCookieDomainsEntriesType;\n  readonly assets: TrackingCookieDomainsAssetsType;\n  readonly resources: TrackingCookieDomainsResourcesType;\n};\n\nexport type TrackingCookieDomainsEntriesType = {\n  readonly __typename?: 'TrackingCookieDomainsEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type TrackingCookieDomainsAssetsType = {\n  readonly __typename?: 'TrackingCookieDomainsAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type TrackingCookieDomainsResourcesType = {\n  readonly __typename?: 'TrackingCookieDomainsResources';\n  readonly block: ReadonlyArray<TrackingCookieDomainsResourcesBlockType>;\n  readonly inline: ReadonlyArray<TrackingCookieDomainsResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<TrackingCookieDomainsResourcesHyperlinkType>;\n};\n\nexport type TrackingCookieDomainsResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieDomainsResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieDomainsResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieDomainsResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieDomainsResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieDomainsResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookiePurposeType = {\n  readonly __typename?: 'TrackingCookiePurpose';\n  readonly json: Scalars['JSON'];\n  readonly links: TrackingCookiePurposeLinksType;\n};\n\nexport type TrackingCookiePurposeLinksType = {\n  readonly __typename?: 'TrackingCookiePurposeLinks';\n  readonly entries: TrackingCookiePurposeEntriesType;\n  readonly assets: TrackingCookiePurposeAssetsType;\n  readonly resources: TrackingCookiePurposeResourcesType;\n};\n\nexport type TrackingCookiePurposeEntriesType = {\n  readonly __typename?: 'TrackingCookiePurposeEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type TrackingCookiePurposeAssetsType = {\n  readonly __typename?: 'TrackingCookiePurposeAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type TrackingCookiePurposeResourcesType = {\n  readonly __typename?: 'TrackingCookiePurposeResources';\n  readonly block: ReadonlyArray<TrackingCookiePurposeResourcesBlockType>;\n  readonly inline: ReadonlyArray<TrackingCookiePurposeResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<TrackingCookiePurposeResourcesHyperlinkType>;\n};\n\nexport type TrackingCookiePurposeResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookiePurposeResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookiePurposeResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookiePurposeResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookiePurposeResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookiePurposeResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieExpirationType = {\n  readonly __typename?: 'TrackingCookieExpiration';\n  readonly json: Scalars['JSON'];\n  readonly links: TrackingCookieExpirationLinksType;\n};\n\nexport type TrackingCookieExpirationLinksType = {\n  readonly __typename?: 'TrackingCookieExpirationLinks';\n  readonly entries: TrackingCookieExpirationEntriesType;\n  readonly assets: TrackingCookieExpirationAssetsType;\n  readonly resources: TrackingCookieExpirationResourcesType;\n};\n\nexport type TrackingCookieExpirationEntriesType = {\n  readonly __typename?: 'TrackingCookieExpirationEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type TrackingCookieExpirationAssetsType = {\n  readonly __typename?: 'TrackingCookieExpirationAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type TrackingCookieExpirationResourcesType = {\n  readonly __typename?: 'TrackingCookieExpirationResources';\n  readonly block: ReadonlyArray<TrackingCookieExpirationResourcesBlockType>;\n  readonly inline: ReadonlyArray<TrackingCookieExpirationResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<TrackingCookieExpirationResourcesHyperlinkType>;\n};\n\nexport type TrackingCookieExpirationResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieExpirationResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieExpirationResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieExpirationResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieExpirationResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieExpirationResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly name_exists: InputMaybe<Scalars['Boolean']>;\n  readonly name: InputMaybe<Scalars['String']>;\n  readonly name_not: InputMaybe<Scalars['String']>;\n  readonly name_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly name_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly name_contains: InputMaybe<Scalars['String']>;\n  readonly name_not_contains: InputMaybe<Scalars['String']>;\n  readonly provider_exists: InputMaybe<Scalars['Boolean']>;\n  readonly provider_contains: InputMaybe<Scalars['String']>;\n  readonly provider_not_contains: InputMaybe<Scalars['String']>;\n  readonly domains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly domains_contains: InputMaybe<Scalars['String']>;\n  readonly domains_not_contains: InputMaybe<Scalars['String']>;\n  readonly purpose_exists: InputMaybe<Scalars['Boolean']>;\n  readonly purpose_contains: InputMaybe<Scalars['String']>;\n  readonly purpose_not_contains: InputMaybe<Scalars['String']>;\n  readonly expiration_exists: InputMaybe<Scalars['Boolean']>;\n  readonly expiration_contains: InputMaybe<Scalars['String']>;\n  readonly expiration_not_contains: InputMaybe<Scalars['String']>;\n  readonly pattern_exists: InputMaybe<Scalars['Boolean']>;\n  readonly pattern: InputMaybe<Scalars['String']>;\n  readonly pattern_not: InputMaybe<Scalars['String']>;\n  readonly pattern_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly pattern_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly pattern_contains: InputMaybe<Scalars['String']>;\n  readonly pattern_not_contains: InputMaybe<Scalars['String']>;\n  readonly subDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly subDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly subDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly subDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_exists: InputMaybe<Scalars['Boolean']>;\n  readonly path: InputMaybe<Scalars['String']>;\n  readonly path_not: InputMaybe<Scalars['String']>;\n  readonly path_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_contains: InputMaybe<Scalars['String']>;\n  readonly path_not_contains: InputMaybe<Scalars['String']>;\n  readonly secure_exists: InputMaybe<Scalars['Boolean']>;\n  readonly secure: InputMaybe<Scalars['Boolean']>;\n  readonly secure_not: InputMaybe<Scalars['Boolean']>;\n  readonly sameSite_exists: InputMaybe<Scalars['Boolean']>;\n  readonly sameSite: InputMaybe<Scalars['String']>;\n  readonly sameSite_not: InputMaybe<Scalars['String']>;\n  readonly sameSite_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly sameSite_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly sameSite_contains: InputMaybe<Scalars['String']>;\n  readonly sameSite_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<TrackingCookieFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<TrackingCookieFilterType>>>;\n};\n\nexport enum CookieCategoryCookiesCollectionOrderType {\n  NameAscType = 'name_ASC',\n  NameDescType = 'name_DESC',\n  PatternAscType = 'pattern_ASC',\n  PatternDescType = 'pattern_DESC',\n  PathAscType = 'path_ASC',\n  PathDescType = 'path_DESC',\n  SecureAscType = 'secure_ASC',\n  SecureDescType = 'secure_DESC',\n  SameSiteAscType = 'sameSite_ASC',\n  SameSiteDescType = 'sameSite_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CookieCategoryFilterType = {\n  readonly cookies: InputMaybe<CfTrackingCookieNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly description_exists: InputMaybe<Scalars['Boolean']>;\n  readonly description_contains: InputMaybe<Scalars['String']>;\n  readonly description_not_contains: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_exists: InputMaybe<Scalars['Boolean']>;\n  readonly categoryCookieName: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_not: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly categoryCookieName_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly categoryCookieName_contains: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_not_contains: InputMaybe<Scalars['String']>;\n  readonly displayMode_exists: InputMaybe<Scalars['Boolean']>;\n  readonly displayMode: InputMaybe<Scalars['String']>;\n  readonly displayMode_not: InputMaybe<Scalars['String']>;\n  readonly displayMode_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly displayMode_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly displayMode_contains: InputMaybe<Scalars['String']>;\n  readonly displayMode_not_contains: InputMaybe<Scalars['String']>;\n  readonly isEssential_exists: InputMaybe<Scalars['Boolean']>;\n  readonly isEssential: InputMaybe<Scalars['Boolean']>;\n  readonly isEssential_not: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle_not: InputMaybe<Scalars['Boolean']>;\n  readonly cookiesCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CookieCategoryFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CookieCategoryFilterType>>>;\n};\n\nexport type CfTrackingCookieNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly name_exists: InputMaybe<Scalars['Boolean']>;\n  readonly name: InputMaybe<Scalars['String']>;\n  readonly name_not: InputMaybe<Scalars['String']>;\n  readonly name_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly name_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly name_contains: InputMaybe<Scalars['String']>;\n  readonly name_not_contains: InputMaybe<Scalars['String']>;\n  readonly provider_exists: InputMaybe<Scalars['Boolean']>;\n  readonly provider_contains: InputMaybe<Scalars['String']>;\n  readonly provider_not_contains: InputMaybe<Scalars['String']>;\n  readonly domains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly domains_contains: InputMaybe<Scalars['String']>;\n  readonly domains_not_contains: InputMaybe<Scalars['String']>;\n  readonly purpose_exists: InputMaybe<Scalars['Boolean']>;\n  readonly purpose_contains: InputMaybe<Scalars['String']>;\n  readonly purpose_not_contains: InputMaybe<Scalars['String']>;\n  readonly expiration_exists: InputMaybe<Scalars['Boolean']>;\n  readonly expiration_contains: InputMaybe<Scalars['String']>;\n  readonly expiration_not_contains: InputMaybe<Scalars['String']>;\n  readonly pattern_exists: InputMaybe<Scalars['Boolean']>;\n  readonly pattern: InputMaybe<Scalars['String']>;\n  readonly pattern_not: InputMaybe<Scalars['String']>;\n  readonly pattern_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly pattern_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly pattern_contains: InputMaybe<Scalars['String']>;\n  readonly pattern_not_contains: InputMaybe<Scalars['String']>;\n  readonly subDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly subDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly subDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly subDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_exists: InputMaybe<Scalars['Boolean']>;\n  readonly path: InputMaybe<Scalars['String']>;\n  readonly path_not: InputMaybe<Scalars['String']>;\n  readonly path_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_contains: InputMaybe<Scalars['String']>;\n  readonly path_not_contains: InputMaybe<Scalars['String']>;\n  readonly secure_exists: InputMaybe<Scalars['Boolean']>;\n  readonly secure: InputMaybe<Scalars['Boolean']>;\n  readonly secure_not: InputMaybe<Scalars['Boolean']>;\n  readonly sameSite_exists: InputMaybe<Scalars['Boolean']>;\n  readonly sameSite: InputMaybe<Scalars['String']>;\n  readonly sameSite_not: InputMaybe<Scalars['String']>;\n  readonly sameSite_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly sameSite_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly sameSite_contains: InputMaybe<Scalars['String']>;\n  readonly sameSite_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfTrackingCookieNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfTrackingCookieNestedFilterType>>>;\n};\n\nexport enum CookieModalCookieCategoriesCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  CategoryCookieNameAscType = 'categoryCookieName_ASC',\n  CategoryCookieNameDescType = 'categoryCookieName_DESC',\n  DisplayModeAscType = 'displayMode_ASC',\n  DisplayModeDescType = 'displayMode_DESC',\n  IsEssentialAscType = 'isEssential_ASC',\n  IsEssentialDescType = 'isEssential_DESC',\n  EnableToggleAscType = 'enableToggle_ASC',\n  EnableToggleDescType = 'enableToggle_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CookieModalFilterType = {\n  readonly cookieCategories: InputMaybe<CfCookieCategoryNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly landingScreenTitle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly landingScreenTitle: InputMaybe<Scalars['String']>;\n  readonly landingScreenTitle_not: InputMaybe<Scalars['String']>;\n  readonly landingScreenTitle_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly landingScreenTitle_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly landingScreenTitle_contains: InputMaybe<Scalars['String']>;\n  readonly landingScreenTitle_not_contains: InputMaybe<Scalars['String']>;\n  readonly content_exists: InputMaybe<Scalars['Boolean']>;\n  readonly content_contains: InputMaybe<Scalars['String']>;\n  readonly content_not_contains: InputMaybe<Scalars['String']>;\n  readonly acceptAllButtonText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly acceptAllButtonText: InputMaybe<Scalars['String']>;\n  readonly acceptAllButtonText_not: InputMaybe<Scalars['String']>;\n  readonly acceptAllButtonText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptAllButtonText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptAllButtonText_contains: InputMaybe<Scalars['String']>;\n  readonly acceptAllButtonText_not_contains: InputMaybe<Scalars['String']>;\n  readonly essentialOnlyButtonText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly essentialOnlyButtonText: InputMaybe<Scalars['String']>;\n  readonly essentialOnlyButtonText_not: InputMaybe<Scalars['String']>;\n  readonly essentialOnlyButtonText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly essentialOnlyButtonText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly essentialOnlyButtonText_contains: InputMaybe<Scalars['String']>;\n  readonly essentialOnlyButtonText_not_contains: InputMaybe<Scalars['String']>;\n  readonly settingsButtonText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly settingsButtonText: InputMaybe<Scalars['String']>;\n  readonly settingsButtonText_not: InputMaybe<Scalars['String']>;\n  readonly settingsButtonText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly settingsButtonText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly settingsButtonText_contains: InputMaybe<Scalars['String']>;\n  readonly settingsButtonText_not_contains: InputMaybe<Scalars['String']>;\n  readonly settingsScreenTitle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly settingsScreenTitle: InputMaybe<Scalars['String']>;\n  readonly settingsScreenTitle_not: InputMaybe<Scalars['String']>;\n  readonly settingsScreenTitle_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly settingsScreenTitle_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly settingsScreenTitle_contains: InputMaybe<Scalars['String']>;\n  readonly settingsScreenTitle_not_contains: InputMaybe<Scalars['String']>;\n  readonly acceptSelectedButtonText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly acceptSelectedButtonText: InputMaybe<Scalars['String']>;\n  readonly acceptSelectedButtonText_not: InputMaybe<Scalars['String']>;\n  readonly acceptSelectedButtonText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptSelectedButtonText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptSelectedButtonText_contains: InputMaybe<Scalars['String']>;\n  readonly acceptSelectedButtonText_not_contains: InputMaybe<Scalars['String']>;\n  readonly saveChangesText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly saveChangesText: InputMaybe<Scalars['String']>;\n  readonly saveChangesText_not: InputMaybe<Scalars['String']>;\n  readonly saveChangesText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly saveChangesText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly saveChangesText_contains: InputMaybe<Scalars['String']>;\n  readonly saveChangesText_not_contains: InputMaybe<Scalars['String']>;\n  readonly changesSavedText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly changesSavedText: InputMaybe<Scalars['String']>;\n  readonly changesSavedText_not: InputMaybe<Scalars['String']>;\n  readonly changesSavedText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly changesSavedText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly changesSavedText_contains: InputMaybe<Scalars['String']>;\n  readonly changesSavedText_not_contains: InputMaybe<Scalars['String']>;\n  readonly toggleEnabledText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly toggleEnabledText: InputMaybe<Scalars['String']>;\n  readonly toggleEnabledText_not: InputMaybe<Scalars['String']>;\n  readonly toggleEnabledText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly toggleEnabledText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly toggleEnabledText_contains: InputMaybe<Scalars['String']>;\n  readonly toggleEnabledText_not_contains: InputMaybe<Scalars['String']>;\n  readonly toggleDisabledText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly toggleDisabledText: InputMaybe<Scalars['String']>;\n  readonly toggleDisabledText_not: InputMaybe<Scalars['String']>;\n  readonly toggleDisabledText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly toggleDisabledText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly toggleDisabledText_contains: InputMaybe<Scalars['String']>;\n  readonly toggleDisabledText_not_contains: InputMaybe<Scalars['String']>;\n  readonly cookieCategoriesCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly gpcLocations_exists: InputMaybe<Scalars['Boolean']>;\n  readonly gpcLocations_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly gpcLocations_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly gpcLocations_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly enableCookieDeletion_exists: InputMaybe<Scalars['Boolean']>;\n  readonly enableCookieDeletion: InputMaybe<Scalars['Boolean']>;\n  readonly enableCookieDeletion_not: InputMaybe<Scalars['Boolean']>;\n  readonly logCookieDeletion_exists: InputMaybe<Scalars['Boolean']>;\n  readonly logCookieDeletion: InputMaybe<Scalars['Boolean']>;\n  readonly logCookieDeletion_not: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CookieModalFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CookieModalFilterType>>>;\n};\n\nexport type CfCookieCategoryNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly description_exists: InputMaybe<Scalars['Boolean']>;\n  readonly description_contains: InputMaybe<Scalars['String']>;\n  readonly description_not_contains: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_exists: InputMaybe<Scalars['Boolean']>;\n  readonly categoryCookieName: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_not: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly categoryCookieName_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly categoryCookieName_contains: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_not_contains: InputMaybe<Scalars['String']>;\n  readonly displayMode_exists: InputMaybe<Scalars['Boolean']>;\n  readonly displayMode: InputMaybe<Scalars['String']>;\n  readonly displayMode_not: InputMaybe<Scalars['String']>;\n  readonly displayMode_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly displayMode_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly displayMode_contains: InputMaybe<Scalars['String']>;\n  readonly displayMode_not_contains: InputMaybe<Scalars['String']>;\n  readonly isEssential_exists: InputMaybe<Scalars['Boolean']>;\n  readonly isEssential: InputMaybe<Scalars['Boolean']>;\n  readonly isEssential_not: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle_not: InputMaybe<Scalars['Boolean']>;\n  readonly cookiesCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfCookieCategoryNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfCookieCategoryNestedFilterType>>>;\n};\n\nexport enum CookieModalOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  LandingScreenTitleAscType = 'landingScreenTitle_ASC',\n  LandingScreenTitleDescType = 'landingScreenTitle_DESC',\n  AcceptAllButtonTextAscType = 'acceptAllButtonText_ASC',\n  AcceptAllButtonTextDescType = 'acceptAllButtonText_DESC',\n  EssentialOnlyButtonTextAscType = 'essentialOnlyButtonText_ASC',\n  EssentialOnlyButtonTextDescType = 'essentialOnlyButtonText_DESC',\n  SettingsButtonTextAscType = 'settingsButtonText_ASC',\n  SettingsButtonTextDescType = 'settingsButtonText_DESC',\n  SettingsScreenTitleAscType = 'settingsScreenTitle_ASC',\n  SettingsScreenTitleDescType = 'settingsScreenTitle_DESC',\n  AcceptSelectedButtonTextAscType = 'acceptSelectedButtonText_ASC',\n  AcceptSelectedButtonTextDescType = 'acceptSelectedButtonText_DESC',\n  SaveChangesTextAscType = 'saveChangesText_ASC',\n  SaveChangesTextDescType = 'saveChangesText_DESC',\n  ChangesSavedTextAscType = 'changesSavedText_ASC',\n  ChangesSavedTextDescType = 'changesSavedText_DESC',\n  ToggleEnabledTextAscType = 'toggleEnabledText_ASC',\n  ToggleEnabledTextDescType = 'toggleEnabledText_DESC',\n  ToggleDisabledTextAscType = 'toggleDisabledText_ASC',\n  ToggleDisabledTextDescType = 'toggleDisabledText_DESC',\n  EnableCookieDeletionAscType = 'enableCookieDeletion_ASC',\n  EnableCookieDeletionDescType = 'enableCookieDeletion_DESC',\n  LogCookieDeletionAscType = 'logCookieDeletion_ASC',\n  LogCookieDeletionDescType = 'logCookieDeletion_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type TrackingCookieCollectionType = {\n  readonly __typename?: 'TrackingCookieCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<TrackingCookieType>>;\n};\n\nexport enum TrackingCookieOrderType {\n  NameAscType = 'name_ASC',\n  NameDescType = 'name_DESC',\n  PatternAscType = 'pattern_ASC',\n  PatternDescType = 'pattern_DESC',\n  PathAscType = 'path_ASC',\n  PathDescType = 'path_DESC',\n  SecureAscType = 'secure_ASC',\n  SecureDescType = 'secure_DESC',\n  SameSiteAscType = 'sameSite_ASC',\n  SameSiteDescType = 'sameSite_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum ImageOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  WrapAscType = 'wrap_ASC',\n  WrapDescType = 'wrap_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum GlobalNavHighlightOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  CardTitleV2AscType = 'cardTitleV2_ASC',\n  CardTitleV2DescType = 'cardTitleV2_DESC',\n  CardBodyV2AscType = 'cardBodyV2_ASC',\n  CardBodyV2DescType = 'cardBodyV2_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum GlobalNavOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  PrimaryHostnameRegexAscType = 'primaryHostnameRegex_ASC',\n  PrimaryHostnameRegexDescType = 'primaryHostnameRegex_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum CookieCategoryOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  CategoryCookieNameAscType = 'categoryCookieName_ASC',\n  CategoryCookieNameDescType = 'categoryCookieName_DESC',\n  DisplayModeAscType = 'displayMode_ASC',\n  DisplayModeDescType = 'displayMode_DESC',\n  IsEssentialAscType = 'isEssential_ASC',\n  IsEssentialDescType = 'isEssential_DESC',\n  EnableToggleAscType = 'enableToggle_ASC',\n  EnableToggleDescType = 'enableToggle_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterV3FilterType = {\n  readonly columns: InputMaybe<CfFooterGroupNestedFilterType>;\n  readonly bar: InputMaybe<CfFooterGroupNestedFilterType>;\n  readonly logo: InputMaybe<CfImageNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly columnsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly barCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly logo_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideLogoOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideLogoOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideLogoOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideLogoOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterV3FilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterV3FilterType>>>;\n};\n\nexport type CfFooterGroupNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_exists: InputMaybe<Scalars['Boolean']>;\n  readonly groupKey: InputMaybe<Scalars['String']>;\n  readonly groupKey_not: InputMaybe<Scalars['String']>;\n  readonly groupKey_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_not_contains: InputMaybe<Scalars['String']>;\n  readonly itemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfFooterGroupNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfFooterGroupNestedFilterType>>>;\n};\n\nexport type CfImageNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly media_exists: InputMaybe<Scalars['Boolean']>;\n  readonly wrap_exists: InputMaybe<Scalars['Boolean']>;\n  readonly wrap: InputMaybe<Scalars['String']>;\n  readonly wrap_not: InputMaybe<Scalars['String']>;\n  readonly wrap_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_contains: InputMaybe<Scalars['String']>;\n  readonly wrap_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfImageNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfImageNestedFilterType>>>;\n};\n\nexport enum FooterV3OrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterItemV3FilterType = {\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterItemV3FilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterItemV3FilterType>>>;\n};\n\nexport enum FooterItemV3OrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterLocaleDropdownCollectionType = {\n  readonly __typename?: 'FooterLocaleDropdownCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterLocaleDropdownType>>;\n};\n\nexport type FooterLocaleDropdownFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterLocaleDropdownFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterLocaleDropdownFilterType>>>;\n};\n\nexport enum FooterLocaleDropdownOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterCookiesSettingsLinkFilterType = {\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterCookiesSettingsLinkFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterCookiesSettingsLinkFilterType>>>;\n};\n\nexport enum FooterCookiesSettingsLinkOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum FooterGroupOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CookieBannerFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly leftMedia_exists: InputMaybe<Scalars['Boolean']>;\n  readonly rightMedia_exists: InputMaybe<Scalars['Boolean']>;\n  readonly body_exists: InputMaybe<Scalars['Boolean']>;\n  readonly body_contains: InputMaybe<Scalars['String']>;\n  readonly body_not_contains: InputMaybe<Scalars['String']>;\n  readonly acceptCookiesButton_exists: InputMaybe<Scalars['Boolean']>;\n  readonly acceptCookiesButton: InputMaybe<Scalars['String']>;\n  readonly acceptCookiesButton_not: InputMaybe<Scalars['String']>;\n  readonly acceptCookiesButton_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptCookiesButton_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptCookiesButton_contains: InputMaybe<Scalars['String']>;\n  readonly acceptCookiesButton_not_contains: InputMaybe<Scalars['String']>;\n  readonly cookieSettingsButtonText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cookieSettingsButtonText: InputMaybe<Scalars['String']>;\n  readonly cookieSettingsButtonText_not: InputMaybe<Scalars['String']>;\n  readonly cookieSettingsButtonText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cookieSettingsButtonText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cookieSettingsButtonText_contains: InputMaybe<Scalars['String']>;\n  readonly cookieSettingsButtonText_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CookieBannerFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CookieBannerFilterType>>>;\n};\n\nexport enum CookieBannerOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  AcceptCookiesButtonAscType = 'acceptCookiesButton_ASC',\n  AcceptCookiesButtonDescType = 'acceptCookiesButton_DESC',\n  CookieSettingsButtonTextAscType = 'cookieSettingsButtonText_ASC',\n  CookieSettingsButtonTextDescType = 'cookieSettingsButtonText_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterFilterType = {\n  readonly footerColumn: InputMaybe<CfFooterItemNestedFilterType>;\n  readonly footerBar: InputMaybe<CfFooterItemNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly footerColumnCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly footerBarCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_not: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterFilterType>>>;\n};\n\nexport enum FooterOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type AnalyticsCollectionType = {\n  readonly __typename?: 'AnalyticsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<AnalyticsType>>;\n};\n\nexport enum AnalyticsOrderType {\n  LabelAscType = 'label_ASC',\n  LabelDescType = 'label_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum GlobalNavItemOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type ButtonFilterType = {\n  readonly image: InputMaybe<CfImageNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly size_exists: InputMaybe<Scalars['Boolean']>;\n  readonly size: InputMaybe<Scalars['String']>;\n  readonly size_not: InputMaybe<Scalars['String']>;\n  readonly size_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly size_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly size_contains: InputMaybe<Scalars['String']>;\n  readonly size_not_contains: InputMaybe<Scalars['String']>;\n  readonly theme_exists: InputMaybe<Scalars['Boolean']>;\n  readonly theme: InputMaybe<Scalars['String']>;\n  readonly theme_not: InputMaybe<Scalars['String']>;\n  readonly theme_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly theme_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly theme_contains: InputMaybe<Scalars['String']>;\n  readonly theme_not_contains: InputMaybe<Scalars['String']>;\n  readonly buttonType_exists: InputMaybe<Scalars['Boolean']>;\n  readonly buttonType: InputMaybe<Scalars['String']>;\n  readonly buttonType_not: InputMaybe<Scalars['String']>;\n  readonly buttonType_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly buttonType_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly buttonType_contains: InputMaybe<Scalars['String']>;\n  readonly buttonType_not_contains: InputMaybe<Scalars['String']>;\n  readonly image_exists: InputMaybe<Scalars['Boolean']>;\n  readonly iconName_exists: InputMaybe<Scalars['Boolean']>;\n  readonly iconName: InputMaybe<Scalars['String']>;\n  readonly iconName_not: InputMaybe<Scalars['String']>;\n  readonly iconName_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly iconName_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly iconName_contains: InputMaybe<Scalars['String']>;\n  readonly iconName_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<ButtonFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<ButtonFilterType>>>;\n};\n\nexport enum ButtonOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SizeAscType = 'size_ASC',\n  SizeDescType = 'size_DESC',\n  ThemeAscType = 'theme_ASC',\n  ThemeDescType = 'theme_DESC',\n  ButtonTypeAscType = 'buttonType_ASC',\n  ButtonTypeDescType = 'buttonType_DESC',\n  IconNameAscType = 'iconName_ASC',\n  IconNameDescType = 'iconName_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum CallToActionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/message) */\nexport type MessageType = EntryType & _NodeType & {\n  readonly __typename?: 'Message';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<MessageLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly key: Maybe<Scalars['String']>;\n  readonly value: Maybe<Scalars['String']>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/message) */\nexport type MessageLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/message) */\nexport type MessageTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/message) */\nexport type MessageKeyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/message) */\nexport type MessageValueArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type MessageLinkingCollectionsType = {\n  readonly __typename?: 'MessageLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type MessageLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type MessageCollectionType = {\n  readonly __typename?: 'MessageCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<MessageType>>;\n};\n\nexport type MessageFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly key_exists: InputMaybe<Scalars['Boolean']>;\n  readonly key: InputMaybe<Scalars['String']>;\n  readonly key_not: InputMaybe<Scalars['String']>;\n  readonly key_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly key_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly key_contains: InputMaybe<Scalars['String']>;\n  readonly key_not_contains: InputMaybe<Scalars['String']>;\n  readonly value_exists: InputMaybe<Scalars['Boolean']>;\n  readonly value: InputMaybe<Scalars['String']>;\n  readonly value_not: InputMaybe<Scalars['String']>;\n  readonly value_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly value_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly value_contains: InputMaybe<Scalars['String']>;\n  readonly value_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<MessageFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<MessageFilterType>>>;\n};\n\nexport enum MessageOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  KeyAscType = 'key_ASC',\n  KeyDescType = 'key_DESC',\n  ValueAscType = 'value_ASC',\n  ValueDescType = 'value_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/legalMessage) */\nexport type LegalMessageType = EntryType & _NodeType & {\n  readonly __typename?: 'LegalMessage';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<LegalMessageLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly key: Maybe<Scalars['String']>;\n  readonly value: Maybe<Scalars['String']>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/legalMessage) */\nexport type LegalMessageLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/legalMessage) */\nexport type LegalMessageKeyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/legalMessage) */\nexport type LegalMessageValueArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type LegalMessageLinkingCollectionsType = {\n  readonly __typename?: 'LegalMessageLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type LegalMessageLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type LegalMessageCollectionType = {\n  readonly __typename?: 'LegalMessageCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<LegalMessageType>>;\n};\n\nexport type LegalMessageFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly key_exists: InputMaybe<Scalars['Boolean']>;\n  readonly key: InputMaybe<Scalars['String']>;\n  readonly key_not: InputMaybe<Scalars['String']>;\n  readonly key_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly key_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly key_contains: InputMaybe<Scalars['String']>;\n  readonly key_not_contains: InputMaybe<Scalars['String']>;\n  readonly value_exists: InputMaybe<Scalars['Boolean']>;\n  readonly value: InputMaybe<Scalars['String']>;\n  readonly value_not: InputMaybe<Scalars['String']>;\n  readonly value_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly value_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly value_contains: InputMaybe<Scalars['String']>;\n  readonly value_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<LegalMessageFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<LegalMessageFilterType>>>;\n};\n\nexport enum LegalMessageOrderType {\n  KeyAscType = 'key_ASC',\n  KeyDescType = 'key_DESC',\n  ValueAscType = 'value_ASC',\n  ValueDescType = 'value_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type VideoFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly media_exists: InputMaybe<Scalars['Boolean']>;\n  readonly thumbnailMedia_exists: InputMaybe<Scalars['Boolean']>;\n  readonly autoPlay_exists: InputMaybe<Scalars['Boolean']>;\n  readonly autoPlay: InputMaybe<Scalars['Boolean']>;\n  readonly autoPlay_not: InputMaybe<Scalars['Boolean']>;\n  readonly wrap_exists: InputMaybe<Scalars['Boolean']>;\n  readonly wrap: InputMaybe<Scalars['String']>;\n  readonly wrap_not: InputMaybe<Scalars['String']>;\n  readonly wrap_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_contains: InputMaybe<Scalars['String']>;\n  readonly wrap_not_contains: InputMaybe<Scalars['String']>;\n  readonly captions_exists: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<VideoFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<VideoFilterType>>>;\n};\n\nexport enum VideoOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  AutoPlayAscType = 'autoPlay_ASC',\n  AutoPlayDescType = 'autoPlay_DESC',\n  WrapAscType = 'wrap_ASC',\n  WrapDescType = 'wrap_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum FooterItemOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type EntryFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<EntryFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<EntryFilterType>>>;\n};\n\nexport enum EntryOrderType {\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CookieModalQueryVariablesType = Exact<{\n  preview: Scalars['Boolean'];\n  locale: Scalars['String'];\n}>;\n\n\nexport type CookieModalQueryType = { readonly __typename?: 'Query', readonly cookieModalCollection: { readonly __typename?: 'CookieModalCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'CookieModal', readonly landingScreenTitle: string, readonly acceptAllButtonText: string, readonly essentialOnlyButtonText: string, readonly settingsButtonText: string, readonly settingsScreenTitle: string, readonly acceptSelectedButtonText: string, readonly saveChangesText: string, readonly changesSavedText: string, readonly toggleEnabledText: string, readonly toggleDisabledText: string, readonly gpcLocations: ReadonlyArray<string>, readonly enableCookieDeletion: boolean, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly content: { readonly __typename?: 'CookieModalContent', readonly json: Record<string, unknown> }, readonly cookieCategoriesCollection: { readonly __typename?: 'CookieModalCookieCategoriesCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'CookieCategory', readonly title: string, readonly categoryCookieName: string, readonly displayMode: string, readonly isEssential: boolean, readonly enableToggle: boolean, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly description: { readonly __typename?: 'CookieCategoryDescription', readonly json: Record<string, unknown> }, readonly cookiesCollection: { readonly __typename?: 'CookieCategoryCookiesCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'TrackingCookie', readonly name: string, readonly pattern: string, readonly subDomains: ReadonlyArray<string>, readonly path: string, readonly secure: boolean, readonly sameSite: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly provider: { readonly __typename?: 'TrackingCookieProvider', readonly json: Record<string, unknown> }, readonly domains: { readonly __typename?: 'TrackingCookieDomains', readonly json: Record<string, unknown> }, readonly purpose: { readonly __typename?: 'TrackingCookiePurpose', readonly json: Record<string, unknown> }, readonly expiration: { readonly __typename?: 'TrackingCookieExpiration', readonly json: Record<string, unknown> } }> } }> } }> } };\n\nexport type CookieModalAllType = { readonly __typename?: 'CookieModal', readonly landingScreenTitle: string, readonly acceptAllButtonText: string, readonly essentialOnlyButtonText: string, readonly settingsButtonText: string, readonly settingsScreenTitle: string, readonly acceptSelectedButtonText: string, readonly saveChangesText: string, readonly changesSavedText: string, readonly toggleEnabledText: string, readonly toggleDisabledText: string, readonly gpcLocations: ReadonlyArray<string>, readonly enableCookieDeletion: boolean, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly content: { readonly __typename?: 'CookieModalContent', readonly json: Record<string, unknown> }, readonly cookieCategoriesCollection: { readonly __typename?: 'CookieModalCookieCategoriesCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'CookieCategory', readonly title: string, readonly categoryCookieName: string, readonly displayMode: string, readonly isEssential: boolean, readonly enableToggle: boolean, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly description: { readonly __typename?: 'CookieCategoryDescription', readonly json: Record<string, unknown> }, readonly cookiesCollection: { readonly __typename?: 'CookieCategoryCookiesCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'TrackingCookie', readonly name: string, readonly pattern: string, readonly subDomains: ReadonlyArray<string>, readonly path: string, readonly secure: boolean, readonly sameSite: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly provider: { readonly __typename?: 'TrackingCookieProvider', readonly json: Record<string, unknown> }, readonly domains: { readonly __typename?: 'TrackingCookieDomains', readonly json: Record<string, unknown> }, readonly purpose: { readonly __typename?: 'TrackingCookiePurpose', readonly json: Record<string, unknown> }, readonly expiration: { readonly __typename?: 'TrackingCookieExpiration', readonly json: Record<string, unknown> } }> } }> } };\n\nexport type CookieCategoryAllType = { readonly __typename?: 'CookieCategory', readonly title: string, readonly categoryCookieName: string, readonly displayMode: string, readonly isEssential: boolean, readonly enableToggle: boolean, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly description: { readonly __typename?: 'CookieCategoryDescription', readonly json: Record<string, unknown> }, readonly cookiesCollection: { readonly __typename?: 'CookieCategoryCookiesCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'TrackingCookie', readonly name: string, readonly pattern: string, readonly subDomains: ReadonlyArray<string>, readonly path: string, readonly secure: boolean, readonly sameSite: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly provider: { readonly __typename?: 'TrackingCookieProvider', readonly json: Record<string, unknown> }, readonly domains: { readonly __typename?: 'TrackingCookieDomains', readonly json: Record<string, unknown> }, readonly purpose: { readonly __typename?: 'TrackingCookiePurpose', readonly json: Record<string, unknown> }, readonly expiration: { readonly __typename?: 'TrackingCookieExpiration', readonly json: Record<string, unknown> } }> } };\n\nexport type TrackingCookieAllType = { readonly __typename?: 'TrackingCookie', readonly name: string, readonly pattern: string, readonly subDomains: ReadonlyArray<string>, readonly path: string, readonly secure: boolean, readonly sameSite: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly provider: { readonly __typename?: 'TrackingCookieProvider', readonly json: Record<string, unknown> }, readonly domains: { readonly __typename?: 'TrackingCookieDomains', readonly json: Record<string, unknown> }, readonly purpose: { readonly __typename?: 'TrackingCookiePurpose', readonly json: Record<string, unknown> }, readonly expiration: { readonly __typename?: 'TrackingCookieExpiration', readonly json: Record<string, unknown> } };\n\nexport const TrackingCookieAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"TrackingCookieAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"TrackingCookie\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"provider\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"json\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"domains\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"json\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"purpose\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"json\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"expiration\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"json\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pattern\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"subDomains\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"path\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"secure\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sameSite\"}}]}}]} as unknown as DocumentNode<TrackingCookieAllType, unknown>;\nexport const CookieCategoryAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"CookieCategoryAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"CookieCategory\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"json\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"categoryCookieName\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"displayMode\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isEssential\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"enableToggle\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"cookiesCollection\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"IntValue\",\"value\":\"200\"}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"items\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"TrackingCookieAll\"}}]}}]}}]}}]} as unknown as DocumentNode<CookieCategoryAllType, unknown>;\nexport const CookieModalAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"CookieModalAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"CookieModal\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"landingScreenTitle\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"content\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"json\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"acceptAllButtonText\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"essentialOnlyButtonText\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"settingsButtonText\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"settingsScreenTitle\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"cookieCategoriesCollection\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"IntValue\",\"value\":\"10\"}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"items\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"CookieCategoryAll\"}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"acceptSelectedButtonText\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"saveChangesText\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"changesSavedText\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"toggleEnabledText\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"toggleDisabledText\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"gpcLocations\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"enableCookieDeletion\"}}]}}]} as unknown as DocumentNode<CookieModalAllType, unknown>;\nexport const CookieModalQueryDocumentType = {\"kind\":\"Document\", \"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"CookieModalQuery\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"cookieModalCollection\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"IntValue\",\"value\":\"1\"}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"items\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"CookieModalAll\"}}]}}]}}]}},...CookieModalAllType.definitions,...CookieCategoryAllType.definitions,...TrackingCookieAllType.definitions]} as unknown as DocumentNode<CookieModalQueryType, CookieModalQueryVariablesType>;", "import type { Dimensions, Partition } from '@snapchat/graphene';\nimport { FetchNetworkHandler, getWebConfig, Graphene } from '@snapchat/graphene';\nimport { getTopLevelDomain } from '@snapchat/parse-domain';\n\nexport const DevelopmentDomains = new Set<string>([\n  'localhost', // local dev\n  'sc-corp.net', // hosted dev / staging\n  'appspot.com', // preproduction\n]);\n\n/**\n * Wrapper around the @snapchat/graphene client used for Cookie Components. Formats logs and errors\n * for delivery to specified Graphene partition. This occurs outside the normal Event and Error\n * logging workflow so we have visibility into how these components function across all websites.\n *\n * Major change vs `global-components` implementation: Dropped support for server side logging. This\n * was causing build issues and since we don't expect to log anything server side it wasn't\n * necessary.\n */\nexport class BrowserGrapheneClient {\n  private readonly client: Graphene;\n\n  constructor(partition: Partition, host: string) {\n    this.client = this.initializeClient(partition, host);\n  }\n  /** Initializes Graphene Client */\n  private initializeClient = (partition: Partition, host: string) => {\n    const client = new Graphene();\n    const flavor = this.getGrapheneFlavor(host);\n    const variant = this.getGrapheneFriendlyString(host);\n    const config = getWebConfig({\n      partitionName: partition,\n      flavor,\n      variant,\n    });\n\n    client.initialize({\n      networkHandler: new FetchNetworkHandler(config),\n      debugMode: false,\n      logTimeInterval: 5e3,\n    });\n\n    return client;\n  };\n\n  private getGrapheneFlavor = (host: string): 'development' | 'production' => {\n    const topLevelDomain = getTopLevelDomain(host);\n    return DevelopmentDomains.has(topLevelDomain) ? 'development' : 'production';\n  };\n\n  /**\n   * Graphene doesn't support empty strings, so replace with 'Unknown'. Also replace any whitespace\n   * or periods in the input string with underscores, this avoids issues finding the logs later due\n   * to the partitions not matching expectations. Example: convert '523.snap.com' to '523_snap_com'\n   * since periods represent partitions in Graphene.\n   */\n  private getGrapheneFriendlyString = (input: string): string => {\n    if (!input) return 'Unknown';\n\n    const pattern = /[\\s.]+/g;\n    return input.replace(pattern, '_');\n  };\n\n  public logMetric = (metric: string, dimensions: Dimensions): void => {\n    this.client.increment({ metricsName: metric, dimensions });\n  };\n\n  public logError = (component: string, description: string, error: Error): void => {\n    const dimensions: Dimensions = {\n      description: this.getGrapheneFriendlyString(description),\n      error: this.getGrapheneFriendlyString(error.name),\n    };\n    this.client.increment({ metricsName: `error_${component}`, dimensions });\n  };\n}\n", "import type { CookieCategoryType } from '../generated/contentful-types';\n\n/** Helper function that returns a cookie state where user has accepted all cookie categories. */\nexport const acceptAllCookies = (\n  categories: readonly CookieCategoryType[]\n): Record<string, boolean> => {\n  const output: Record<string, boolean> = {};\n\n  for (const category of categories) {\n    const { categoryCookieName } = category;\n    output[categoryCookieName] = true;\n  }\n\n  return output;\n};\n\n/**\n * Helper function that returns a cookie state where user has accepted only the essential cookie\n * categories.\n */\nexport const essentialOnlyCookies = (\n  categories: readonly CookieCategoryType[]\n): Record<string, boolean> => {\n  const output: Record<string, boolean> = {};\n\n  for (const category of categories) {\n    const { categoryCookieName, isEssential } = category;\n    output[categoryCookieName] = isEssential;\n  }\n\n  return output;\n};\n\n/**\n * Helper function that returns a cookie state where user has a opted into some categories but not\n * others. Includes logic to default to opting out of cookie categories if not explicitly set in the\n * custom settings.\n */\nexport const acceptCustomCookies = (\n  categories: readonly CookieCategoryType[],\n  custom: Record<string, boolean>\n): Record<string, boolean> => {\n  const baseline = essentialOnlyCookies(categories);\n  const merged = { ...baseline, ...custom };\n  return merged;\n};\n", "import Cookies from 'js-cookie';\n\nimport type { CategorizedCookie } from './createCookieMapping';\n\n/**\n * Helper function that detects cookies that are not mapped to a known cookie category.\n *\n * @param cookieMappings A map where the key is the cookie category and the value is a set of all\n *   registered tracking cookies for that category.\n * @returns A string array containing the names of all uncategorized cookies.\n */\nexport const auditForUncategorizedCookies = (\n  cookieMappings: Map<string, Set<CategorizedCookie>>\n): string[] => {\n  const currentCookies: Record<string, string> = Cookies.get();\n\n  // convert categorized cookies to formats for easy checking\n  const allStaticCookieNames = new Set<string>();\n  const allCookieRegexPatterns: RegExp[] = [];\n\n  for (const [_, categoryCookies] of cookieMappings) {\n    for (const { name, regex } of categoryCookies) {\n      if (regex) {\n        allCookieRegexPatterns.push(regex);\n      } else {\n        allStaticCookieNames.add(name);\n      }\n    }\n  }\n\n  const uncategorizedCookies: string[] = [];\n\n  for (const cookieName in currentCookies) {\n    if (allStaticCookieNames.has(cookieName)) continue;\n\n    if (allCookieRegexPatterns.some(regex => regex.test(cookieName))) continue;\n\n    uncategorizedCookies.push(cookieName);\n  }\n\n  return uncategorizedCookies;\n};\n", "import type Cookies from 'js-cookie';\n\nimport type { CookieCategoryType, TrackingCookieType } from '../generated/contentful-types';\n\n/** Settings for a categorized cookie (set by Privacy team in Contentful) */\nexport interface CategorizedCookie extends Cookies.CookieAttributes {\n  name: string;\n  regex?: RegExp;\n}\n\n/**\n * Helper function to parse Contentful entries for relevant attributes for a given cookie. Note that\n * we only want to set attributes that have values so that JS Cookie can merge these settings with\n * the default configuration.\n */\nconst convertToCategorizedCookie = (\n  hostName: string,\n  input: TrackingCookieType\n): CategorizedCookie => {\n  const { sys, name, pattern, subDomains, path, secure, sameSite } = input;\n\n  const output: CategorizedCookie = {\n    id: sys.id,\n    name,\n  };\n\n  // regex pattern for the cookie (e.g. for the `_ga_{container}` cookie)\n  if (pattern) output.regex = new RegExp(pattern);\n\n  // Cookies may be set on the top level domain or the sub domain.\n  // If the latter, privacy will list the subdomain in the `subDomains` array.\n  // If a value matching the current domain exists, set the value to an empty string.\n  // This triggers configures the cookie deletion on the current domain rather than the cookie domain\n  if (subDomains?.includes(hostName)) output.domain = '';\n\n  if (path) output.path = path;\n\n  if (secure) output.secure = true;\n\n  // @ts-ignore: Contentful types do not reflect validations, users are restricted to valid values\n  if (sameSite) output.sameSite = sameSite;\n\n  return output;\n};\n\n/**\n * Helper function that converts an input array of Contentful `CookieCategory` elements to a Map\n * data structure\n *\n * @param categories Array of `CookieCategory` elements from Contentful\n * @returns A map where the key is the cookie category and the value is a set of all registered\n *   tracking cookies for that category.\n */\nexport const createCookieMapping = (\n  categories: readonly CookieCategoryType[]\n): Map<string, Set<CategorizedCookie>> => {\n  const cookieMapping = new Map<string, Set<CategorizedCookie>>();\n  const hostName = (window?.location?.hostname ?? '').toLowerCase();\n\n  for (const category of categories) {\n    const cookieSet = new Set<CategorizedCookie>();\n    const cookieName = category.categoryCookieName;\n\n    for (const trackingCookie of category.cookiesCollection.items) {\n      const categorizedCookie = convertToCategorizedCookie(hostName, trackingCookie);\n      cookieSet.add(categorizedCookie);\n    }\n    cookieMapping.set(cookieName, cookieSet);\n  }\n\n  return cookieMapping;\n};\n", "interface IsPopUpEligibleResponse {\n  popupEnabled: boolean;\n}\n\n// TODO: Switch to 'https://web-platform.snap.com/cookies/is_cookie_popup_eligible'\nconst cookiesApiPopupEligibleEndpoint =\n  'https://www.snapchat.com/cookies/api/is_cookie_popup_eligible';\n\n/**\n * Helper function that calls relevant API endpoint to determine whether the Modal should be\n * displayed\n *\n * @returns Boolean, True if client device is in a location where Modal should display\n */\nexport const fetchShouldDisplayModal = async (): Promise<boolean> => {\n  const response = await fetch(cookiesApiPopupEligibleEndpoint);\n\n  if (response.status !== 200) {\n    const { status, statusText } = response;\n    throw new Error(`${status} : ${statusText}`);\n  }\n  const data: IsPopUpEligibleResponse = await response.json();\n  return data.popupEnabled;\n};\n", "interface RetrievedCountryRegion {\n  country: string;\n  region: string;\n}\n\n// TODO: Switch to 'https://web-platform.snap.com/cookies/user_location'\nconst cookiesApiUserLocationEndpoint = 'https://www.snapchat.com/cookies/api/user_location';\n\n/**\n * Helper function that calls relevant API endpoint to retrieve the client device location. Used to\n * determine whether in GPC region and as a dimension for logging.\n *\n * @returns String, {Two Character Country Code (upper case)}-{region (lower case)} example: `US-ca`\n */\nexport const fetchUserLocation = async (): Promise<string> => {\n  const data = await fetch(cookiesApiUserLocationEndpoint);\n\n  if (data.status !== 200) {\n    const { status, statusText } = data;\n    throw new Error(`${status} : ${statusText}`);\n  }\n  const json: RetrievedCountryRegion = await data.json();\n  const country = json.country;\n  const region = json.region;\n  return `${country}-${region}`;\n};\n", "import Cookies from 'js-cookie';\n\nimport type { CookieCategoryType } from '../generated/contentful-types';\n\nexport const getCookie = (name: string): string | undefined => {\n  return Cookies.get(name);\n};\n\n/**\n * Function that retrieves Category Cookie values (e.g. Marketing, Performance, etc. cookies).\n * Converts values to boolean to represent whether user opted in for that category.\n *\n * @param categories Array of Cookie Categories\n * @returns Record where key is the cookie category name, value is the boolean of whether a user has\n *   opted in.\n */\nexport const getAllCookies = (\n  categories: readonly CookieCategoryType[]\n): Record<string, boolean> => {\n  const output: Record<string, boolean> = {};\n\n  for (const category of categories) {\n    const { categoryCookieName } = category;\n\n    // Only set value if cookie exists\n    const cookieValue = getCookie(categoryCookieName);\n\n    if (cookieValue) {\n      output[categoryCookieName] = cookieValue === 'true';\n    }\n  }\n\n  return output;\n};\n", "import { getTopLevelDomain } from '@snapchat/parse-domain';\n\n/**\n * Function retrieves the the top level domain for the input value (if specified) or based on the\n * current window location. Otherwise returns the input value.\n *\n * NOTE: the browser default is not inheritable by subdomains.\n *\n * @param inputCookieDomain [Optional] if specified, uses this rather than the window location to\n *   determine top level domain.\n * @returns String, the parsed top level domain for the window location or input parameter. Example:\n *   ar.snap.com => snap.com\n */\nexport const getCookieDomain = (inputCookieDomain?: string): string => {\n  // if input value is an empty string, use window location instead\n  const hostName = inputCookieDomain || (window?.location?.hostname ?? '').toLowerCase();\n  // Return top level domain (ar.snap.com => snap.com) or empty string\n  return getTopLevelDomain(hostName);\n};\n", "import Cookies from 'js-cookie';\n\nimport { CategoryOptInCookie } from '../components/types';\nimport type { CategorizedCookie } from './createCookieMapping';\n\n/** Output of the removeCookiesForNonacceptedCategories() function */\ninterface CookieRemovalResults {\n  [cookieName: string]: {\n    value: string;\n    wasRemoved?: boolean;\n  };\n}\n\n/** Helper function to encapsulate logic for cookie deletion. */\nconst removeCookie = (\n  cookie: CategorizedCookie,\n  cookieDomain: string,\n  currentCookies: Record<string, string>,\n  removedCookies: CookieRemovalResults\n) => {\n  const deleteOptions: Cookies.CookieAttributes = {\n    domain: cookie.domain ?? cookieDomain,\n    path: cookie.path,\n    secure: cookie.secure,\n    sameSite: cookie.sameSite,\n  };\n\n  if (cookie.regex) {\n    // find all matching cookies by REGEX pattern\n    // use case: multiple `_ga_{container}` cookies may exist under a single top level domain\n    for (const cookieName of Object.keys(currentCookies)) {\n      if (!cookie.regex!.test(cookieName)) continue;\n\n      Cookies.remove(cookieName, deleteOptions);\n      removedCookies[cookieName] = { value: currentCookies[cookieName] ?? '' };\n    }\n  } else if (cookie.name in currentCookies) {\n    // remove the cookie by name\n    Cookies.remove(cookie.name, deleteOptions);\n    removedCookies[cookie.name] = { value: currentCookies[cookie.name] ?? '' };\n  }\n\n  // otherwise do nothing\n};\n\nconst removeRelevantCookies = (\n  cookieDomain: string,\n  cookieType: string,\n  currentCookies: Record<string, string>,\n  cookieMappings: Map<string, Set<CategorizedCookie>>,\n  removedCookies: CookieRemovalResults\n): void => {\n  // We do not delete Essential cookies\n  if (cookieType === CategoryOptInCookie.Essential) return;\n\n  const relevantCookies = cookieMappings.get(cookieType);\n\n  if (relevantCookies) {\n    for (const cookie of relevantCookies) {\n      removeCookie(cookie, cookieDomain, currentCookies, removedCookies);\n    }\n  }\n};\n\n/**\n * Helper function that checks the user's current cookies and removes any known tracking cookies\n * that are mapped to a category that was opted out. Returns an object representing removal attempts\n * and successes for later logging.\n *\n * @param cookieDomain String, domain attribute used for deletion commands\n * @param newState Record, represents the users opt in state for each cookie category\n * @param cookieMappings A map where the key is the cookie category and the value is a set of all\n *   registered tracking cookies for that category.\n * @param enableCookieDeletion Boolean, feature flag that gates whether to delete tracking cookies\n * @returns Record, An object that tracks the cookies that were attempted to be removed, and which\n *   were successfully removed.\n */\nexport const removeCookiesForNonacceptedCategories = (\n  cookieDomain: string,\n  newState: Record<string, boolean>,\n  cookieMappings: Map<string, Set<CategorizedCookie>>,\n  enableCookieDeletion = false\n): CookieRemovalResults => {\n  const currentCookies = Cookies.get();\n\n  const removedCookies: CookieRemovalResults = {};\n\n  for (const cookieType in newState) {\n    // user is opted into the category, noop\n    if (newState[cookieType]) continue;\n\n    // cookie deletion is not enabled, noop\n    if (!enableCookieDeletion) continue;\n\n    removeRelevantCookies(cookieDomain, cookieType, currentCookies, cookieMappings, removedCookies);\n  }\n\n  // get a second snapshot of active cookies and compare to identify what was successfully removed.\n  const updatedCookies = Cookies.get();\n\n  for (const cookieName in removedCookies) {\n    removedCookies[cookieName]!.wasRemoved = !updatedCookies[cookieName];\n  }\n\n  return removedCookies;\n};\n", "import Cookies from 'js-cookie';\n\nconst setCookie = (name: string, value: string, domain = ''): void => {\n  Cookies.set(name, value, { expires: 365, secure: true, domain });\n};\n\n/**\n * Helper function that saves the user's Opt in state for each Cookie Category as cookies on the\n * specified `cookieDomain`.\n *\n * @param cookieDomain String, domain attribute used when setting each cookie\n * @param cookieStatus Record, represents the users opt in state for each cookie category\n */\nexport const setOptInCookies = (\n  cookieDomain: string,\n  cookieStatus: Record<string, boolean>\n): void => {\n  for (const key in cookieStatus) {\n    setCookie(key, (cookieStatus[key] as boolean).toString(), cookieDomain);\n  }\n};\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { DesignSystemContext } from '../../context/DesignSystemContext';\n\nexport interface DesignAgnosticButtonProps {\n  testId?: string;\n  text: string;\n  isPrimary?: boolean;\n  isDisabled?: boolean;\n  onClick?: () => void;\n}\n\nexport const DesignAgnosticButton: FC<DesignAgnosticButtonProps> = props => {\n  const { buttonComponent } = useContext(DesignSystemContext);\n  return buttonComponent(props);\n};\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { DesignSystemContext } from '../../context/DesignSystemContext';\nimport type { LocaleOption } from '../types';\n\nexport interface DesignAgnosticLocaleDropdownProps {\n  currentLocale: LocaleOption;\n  supportedLocales: Record<string, LocaleOption>;\n  onLocaleChange?: (locale: string) => void;\n  /**\n   * If specified, renders the dropdown's popup in the specified element rather than the default\n   * placement.\n   */\n  containerProvider?: (node: HTMLElement) => HTMLElement;\n}\n\nexport const DesignAgnosticLocaleDropdown: FC<DesignAgnosticLocaleDropdownProps> = props => {\n  const { localeDropdownComponent } = useContext(DesignSystemContext);\n  return localeDropdownComponent(props);\n};\n", "import type { FC, PropsWithChildren } from 'react';\nimport { useContext } from 'react';\n\nimport { DesignSystemContext } from '../../context/DesignSystemContext';\nimport type { BackgroundType } from '../types';\n\nexport interface DesignAgnosticModalProps extends PropsWithChildren {\n  backgroundType?: BackgroundType;\n  className?: string;\n  isDisplayed?: boolean;\n  portalRoot?: HTMLElement;\n}\n\nexport const DesignAgnosticModal: FC<DesignAgnosticModalProps> = props => {\n  const { modalComponent } = useContext(DesignSystemContext);\n  return modalComponent(props);\n};\n", "import type { FC, PropsWithChildren } from 'react';\nimport { useContext } from 'react';\n\nimport { DesignSystemContext } from '../../context/DesignSystemContext';\nimport type { BackgroundType } from '../types';\n\nexport interface DesignAgnosticSectionProps extends PropsWithChildren {\n  backgroundType?: BackgroundType;\n  className?: string;\n}\n\nexport const DesignAgnosticSection: FC<DesignAgnosticSectionProps> = props => {\n  const { sectionComponent } = useContext(DesignSystemContext);\n  return sectionComponent(props);\n};\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { DesignSystemContext } from '../../context/DesignSystemContext';\n\nexport interface DesignAgnosticToggleProps {\n  id: string;\n  isChecked: boolean;\n  onToggle?: () => void;\n}\n\nexport const DesignAgnosticToggle: FC<DesignAgnosticToggleProps> = props => {\n  const { toggleComponent } = useContext(DesignSystemContext);\n  return toggleComponent(props);\n};\n", "import type { WithConditionalCSSProp } from '@emotion/react/types/jsx-namespace';\nimport type { Partition } from '@snapchat/graphene';\nimport type { ComponentType, FC, PropsWithChildren, ReactNode } from 'react';\nimport { Component } from 'react';\n\nimport { BrowserGrapheneClient } from '../../helpers/logging/BrowserGrapheneClient';\n\ninterface Props extends PropsWithChildren {\n  component: string;\n  hostname: string;\n  partition: Partition;\n  onError?: (error: Error | string) => void;\n  renderInstead?: ReactNode;\n}\n\ninterface State {\n  hasError: boolean;\n  grapheneClient?: BrowserGrapheneClient;\n}\n\n/**\n * ErrorBoundary used for the Cookie components. Ensures unhandled errors are logged to Graphene and\n * triggers onError callback if specified. NOTE: must be implemented as a class component. See this\n * page for details: https://reactjs.org/docs/error-boundaries.html\n *\n * Major change vs `global-components` implementation: Dropped support for server side logging. This\n * was causing build issues and since we don't expect to log anything server side it wasn't\n * necessary.\n */\nexport class BrowserErrorBoundary extends Component<Props, State> {\n  constructor(props: Props) {\n    super(props);\n\n    const { partition, hostname } = props;\n    const client = partition && new BrowserGrapheneClient(partition, hostname);\n\n    this.state = {\n      hasError: false,\n      grapheneClient: client,\n    };\n  }\n\n  componentDidCatch(error: Error): void {\n    this.setState({\n      hasError: true,\n    });\n\n    // Log error to Graphene\n    this.state.grapheneClient?.logError(this.props.component, 'unhandled', error);\n\n    // If error handler is specified, pass the error to the handler\n    if (this.props.onError) {\n      this.props.onError(error);\n    }\n  }\n\n  render(): React.ReactNode {\n    const { children, renderInstead } = this.props;\n    const { hasError } = this.state;\n\n    if (hasError) {\n      // If there is an error, render the replacement content (renders nothing if not specified)\n      return renderInstead ?? null;\n    }\n\n    return children;\n  }\n}\n\n/** Base Type that component props must inherit when using the `withErrorBoundary` function. */\nexport interface WithOnError {\n  onError?: (error: Error | string) => void;\n}\n\n/**\n * Type used to get decorator function to pass typechecks. TODO: determine why this is necessary and\n * find a better workaround. This is UGLY. relevant github threads:\n * https://github.com/emotion-js/emotion/issues/2169\n * https://github.com/microsoft/TypeScript/issues/42240\n *\n * NOTE: might just be a matter of updating emotion and typescript versions?\n */\ntype WithEmotionProps<Props> = Props & WithConditionalCSSProp<Props> & JSX.IntrinsicAttributes;\n\n/** Helper function for wrapping a single Component in the ErrorBoundary. */\nexport function withErrorBoundary<WrappedComponentProps extends WithOnError>(\n  /** Component to wrap in the error boundary. */\n  WrappedComponent: ComponentType<WrappedComponentProps>,\n  /** Specifies the Graphene partition that unhandled errors will be logged to. */\n  partition: Partition,\n  /** Optional: if specified, renders this instead of the WrappedComponent when an error occurs. */\n  renderInstead?: ReactNode\n): FC<WithEmotionProps<WrappedComponentProps>> {\n  const displayName = WrappedComponent.displayName ?? 'UnknownComponent';\n\n  const ComponentWithBrowserErrorBoundary = (props: WithEmotionProps<WrappedComponentProps>) => {\n    const hostname = (window?.location?.hostname ?? 'unknown').toLowerCase();\n    const { onError } = props;\n    return (\n      <BrowserErrorBoundary\n        hostname={hostname}\n        partition={partition}\n        component={displayName}\n        onError={onError}\n        renderInstead={renderInstead}\n      >\n        <WrappedComponent {...props} />\n      </BrowserErrorBoundary>\n    );\n  };\n\n  return ComponentWithBrowserErrorBoundary;\n}\n", "import { documentToHtmlString } from '@contentful/rich-text-html-renderer';\nimport type { Document } from '@contentful/rich-text-types';\nimport type { ClassNamesArg } from '@emotion/css';\nimport { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { ContentfulContext } from '../../context';\n\ninterface Props {\n  document: string | Record<string, unknown> | Document;\n  className?: ClassNamesArg;\n}\n\n/**\n * Custom Component based on the existing `PlainRichText` component. This component is meant for use\n * ONLY with Cookie components and includes the following custom behaviors:\n *\n * - Renders with a wrapping `div` element\n * - Renders `hyperlinks` to open in a new tab\n * - Accepts a className prop for setting styles on the rendered HTML\n */\nexport const CookieRichText: FC<Props> = ({ document, className }) => {\n  // Used when rendering hyperlinks to append the `lang` query parameter\n  const { currentLocale } = useContext(ContentfulContext);\n\n  const renderUri = (targetUrl: string) => {\n    const uri = new URL(targetUrl);\n\n    // specify this first so it can be overridden if explicitly set in targetUrl\n    if (!uri.searchParams.has('lang')) {\n      uri.searchParams.set('lang', currentLocale);\n    }\n\n    return uri.href;\n  };\n\n  return (\n    <div\n      data-testid=\"mwp-cookie-rich-text\"\n      className={cx('contentful-rich-text', className)}\n      // biome-ignore lint/security/noDangerouslySetInnerHtml: Safe here because we use official renderer.\n      dangerouslySetInnerHTML={{\n        __html: documentToHtmlString(document as unknown as Document, {\n          renderNode: {\n            hyperlink: node => {\n              const text = node.content\n                .map(current => {\n                  // NOTE: For now, we won't support text styles in the Hyperlink\n                  if (!current || current.nodeType !== 'text') return;\n                  return current.value;\n                }, [])\n                .join('');\n\n              const uri = renderUri(node.data.uri);\n              return `<a href=\"${uri}\" target=\"_blank\" rel=\"noopener\">${text}</a>`;\n            },\n          },\n        }),\n      }}\n    />\n  );\n};\n", "import type { FC, PropsWithChildren } from 'react';\n\nexport const CookieModalFooter: FC<PropsWithChildren> = ({ children }) => {\n  /* render buttons in reverse order so that when we wrap on smaller screens the break happens on 1st, rather than last element.\n     NOTE: requires `flex-direction: row-reverse|column-reverse` style be applied.\n  */\n  const cookieFooter = <div className=\"modal-footer\">{children}</div>;\n  return cookieFooter;\n};\n", "import type React from 'react';\nimport { useContext, useRef } from 'react';\n\nimport { ContentfulContext } from '../../context';\nimport { DesignAgnosticLocaleDropdown } from '../designAgnostic';\nimport { GhostLogo } from '../Logo/Ghost';\nimport type { BackgroundType, LocaleOption } from '../types';\n\ninterface Props {\n  backgroundType: BackgroundType;\n  supportedLocales: Record<string, LocaleOption>;\n  onLocaleChange?: (locale: string) => void;\n}\n\nexport const CookieModalHeader: React.FC<Props> = ({\n  backgroundType,\n  supportedLocales,\n  onLocaleChange,\n}) => {\n  const { currentLocale } = useContext(ContentfulContext);\n\n  const headerRef = useRef<HTMLDivElement>(null);\n  // NOTE: headerRef.current is guaranteed to exist prior to when containerProvider is called.\n  const containerProvider = () => headerRef.current!;\n  return (\n    <div data-testid=\"mwp-cookie-modal-header\" className=\"modal-header\" ref={headerRef}>\n      <div className=\"logo-container\">\n        <GhostLogo width={24} height={24} backgroundType={backgroundType} />\n      </div>\n      <div className=\"locale-container\">\n        <DesignAgnosticLocaleDropdown\n          supportedLocales={supportedLocales}\n          currentLocale={supportedLocales[currentLocale] as LocaleOption}\n          onLocaleChange={onLocaleChange}\n          // Specify container to ensure dropdown popup sticks to modal\n          containerProvider={containerProvider}\n        />\n      </div>\n    </div>\n  );\n};\n", "import type { FC } from 'react';\n\nimport { BackgroundType } from '../types';\n\ninterface Props {\n  className?: string;\n  width: number;\n  height: number;\n  backgroundType: BackgroundType;\n}\n\n/**\n * Renders the Ghost Logo Copied from:\n * snap-design-system/packages/snap-design-system-marketing/src/components/Navigator/Ghost/Logo.tsx\n * Moving this here to avoid a dependency on SDS-M when rendering the Cookie Modal with SDS-E\n * components.\n */\nexport const GhostLogo: FC<Props> = ({\n  className,\n  width,\n  height,\n  backgroundType = BackgroundType.LightMode,\n}) => {\n  const fillColor = backgroundType !== BackgroundType.DarkMode ? '#FFFFFF' : undefined;\n  const outlineColor = backgroundType === BackgroundType.DarkMode ? '#FFFFFF' : undefined;\n  return (\n    <svg\n      version=\"1.1\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      x=\"0px\"\n      y=\"0px\"\n      viewBox=\"0 0 500 500\"\n      className={className}\n      width={width}\n      height={height}\n    >\n      <g id=\"Layer_1\">\n        <g>\n          <g>\n            <path\n              style={{\n                fill: fillColor,\n              }}\n              d=\"M484.6,369.3c-2-6.8-11.9-11.6-11.9-11.6l0,0c-0.9-0.5-1.7-0.9-2.4-1.3c-16.4-7.9-30.8-17.4-43.1-28.2\n                c-9.8-8.7-18.2-18.2-25-28.4c-8.2-12.4-12.1-22.8-13.8-28.4c-0.9-3.7-0.8-5.1,0-7c0.6-1.6,2.5-3.1,3.4-3.8\n                c5.5-3.9,14.4-9.7,19.9-13.2c4.7-3.1,8.8-5.7,11.2-7.4c7.7-5.4,12.9-10.8,16-16.7c4-7.6,4.5-16,1.4-24.3\n                c-4.2-11.1-14.6-17.8-27.8-17.8c-2.9,0-6,0.3-9,1c-7.6,1.6-14.8,4.3-20.8,6.7c-0.4,0.2-0.9-0.2-0.9-0.6\n                c0.6-14.9,1.3-34.9-0.3-53.9c-1.5-17.2-5-31.7-10.8-44.3c-5.8-12.7-13.4-22.1-19.3-28.9c-5.7-6.5-15.5-16-30.5-24.5\n                c-21-12-45-18.1-71.1-18.1c-26.1,0-50,6.1-71.1,18.1c-15.8,9-25.9,19.2-30.5,24.5c-5.9,6.8-13.5,16.2-19.3,28.9\n                c-5.8,12.6-9.3,27.1-10.8,44.3c-1.6,19.1-1,37.5-0.3,53.9c0,0.5-0.5,0.8-0.9,0.6c-6-2.3-13.2-5-20.7-6.7c-3-0.7-6-1-9-1\n                c-13.2,0-23.6,6.7-27.8,17.8c-3.1,8.3-2.7,16.7,1.4,24.3c3.1,5.9,8.4,11.4,16,16.7c2.4,1.7,6.4,4.3,11.2,7.4\n                c5.3,3.5,14,9.1,19.5,13c0.7,0.5,3,2.3,3.8,4.1c0.8,2,0.9,3.4-0.1,7.3c-1.7,5.7-5.6,15.9-13.7,28.1c-6.8,10.2-15.2,19.7-25,28.4\n                C60.5,339,46,348.5,29.7,356.5c-0.8,0.4-1.7,0.8-2.7,1.4l0,0c0,0-9.8,5-11.6,11.4c-2.7,9.5,4.5,18.4,11.9,23.2\n                c12.1,7.8,26.9,12,35.4,14.3c2.4,0.6,4.5,1.2,6.5,1.8c1.2,0.4,4.3,1.6,5.6,3.3c1.7,2.1,1.9,4.8,2.5,7.8v0c0.9,5,3,11.2,9.2,15.5\n                c6.8,4.7,15.5,5,26.4,5.5c11.5,0.4,25.8,1,42.1,6.4c7.6,2.5,14.4,6.7,22.4,11.6c16.6,10.2,37.2,22.9,72.5,22.9\n                c35.3,0,56.1-12.8,72.8-23c7.9-4.8,14.7-9,22.1-11.5c16.3-5.4,30.6-5.9,42.1-6.4c11-0.4,19.6-0.7,26.4-5.5\n                c6.6-4.6,8.6-11.4,9.4-16.6c0.5-2.5,0.8-4.8,2.3-6.7c1.2-1.6,4.1-2.7,5.4-3.2c2-0.6,4.2-1.2,6.7-1.9c8.6-2.3,19.3-5,32.3-12.4\n                C485.2,385.6,486.3,374.7,484.6,369.3z\"\n            />\n          </g>\n          <path\n            style={{\n              fill: outlineColor,\n            }}\n            d=\"M498.2,364c-3.5-9.5-10.1-14.5-17.6-18.7c-1.4-0.8-2.7-1.5-3.8-2c-2.2-1.2-4.5-2.3-6.8-3.5\n              c-23.5-12.5-41.8-28.2-54.6-46.8c-4.3-6.3-7.3-12-9.4-16.6c-1.1-3.1-1-4.9-0.3-6.5c0.6-1.2,2.2-2.5,3-3.1c4-2.7,8.2-5.4,11-7.2\n              c5-3.3,9-5.8,11.6-7.6c9.6-6.7,16.4-13.9,20.6-21.9c5.9-11.3,6.7-24.2,2.1-36.3c-6.4-16.8-22.3-27.3-41.5-27.3\n              c-4,0-8,0.4-12.1,1.3c-1.1,0.2-2.1,0.5-3.1,0.7c0.2-11.4-0.1-23.6-1.1-35.6c-3.6-42-18.3-64-33.7-81.6c-6.4-7.3-17.5-18-34.2-27.6\n              C305.1,10.6,278.8,3.9,250,3.9c-28.7,0-55,6.7-78.3,20c-16.8,9.6-27.9,20.3-34.3,27.6c-15.3,17.5-30,39.6-33.7,81.6\n              c-1,11.9-1.3,24.1-1.1,35.6c-1-0.3-2.1-0.5-3.1-0.7c-4-0.9-8.1-1.3-12.1-1.3c-19.3,0-35.2,10.4-41.5,27.3\n              c-4.6,12.1-3.8,25,2.1,36.3c4.2,8,11,15.2,20.6,21.9c2.6,1.8,6.6,4.4,11.6,7.6c2.7,1.8,6.7,4.3,10.6,6.9c0.6,0.4,2.7,1.9,3.4,3.4\n              c0.8,1.7,0.8,3.5-0.4,6.8c-2.1,4.6-5,10.1-9.2,16.3c-12.4,18.2-30.3,33.6-53,46c-12,6.4-24.6,10.6-29.9,25\n              c-4,10.9-1.4,23.2,8.8,33.6l0,0c3.3,3.6,7.5,6.8,12.8,9.7c12.4,6.9,23,10.2,31.3,12.5c1.5,0.4,4.8,1.5,6.3,2.8\n              c3.7,3.2,3.2,8.1,8.1,15.2c3,4.4,6.4,7.4,9.2,9.4c10.3,7.1,21.9,7.6,34.2,8c11.1,0.4,23.7,0.9,38.1,5.7c6,2,12.1,5.8,19.3,10.2\n              c17.2,10.6,40.8,25,80.2,25c39.4,0,63.1-14.5,80.5-25.2c7.1-4.4,13.3-8.1,19-10c14.4-4.7,27-5.2,38.1-5.7\n              c12.3-0.5,23.9-0.9,34.2-8c3.2-2.2,7.3-5.9,10.5-11.5c3.5-6,3.4-10.2,6.8-13.2c1.4-1.2,4.3-2.2,5.9-2.7\n              c8.4-2.3,19.1-5.7,31.7-12.6c5.6-3.1,10-6.5,13.4-10.3c0,0,0.1-0.1,0.1-0.1C499.7,386.6,502.1,374.6,498.2,364z M463.2,382.8\n              c-21.4,11.8-35.6,10.5-46.6,17.7c-9.4,6-3.8,19.1-10.7,23.8c-8.4,5.8-33.2-0.4-65.1,10.2c-26.4,8.7-43.2,33.8-90.7,33.8\n              c-47.6,0-64-25-90.7-33.8c-32-10.6-56.8-4.4-65.1-10.2c-6.8-4.7-1.3-17.7-10.7-23.8c-11-7.1-25.3-5.9-46.6-17.7\n              c-13.6-7.5-5.9-12.2-1.4-14.4c77.4-37.5,89.8-95.4,90.3-99.7c0.7-5.2,1.4-9.3-4.3-14.6c-5.5-5.1-30.1-20.3-36.9-25\n              c-11.3-7.9-16.2-15.7-12.6-25.4c2.5-6.7,8.8-9.2,15.4-9.2c2,0,4.1,0.2,6.1,0.7c12.4,2.7,24.4,8.9,31.3,10.6c1,0.2,1.8,0.3,2.6,0.3\n              c3.7,0,5-1.9,4.8-6.1c-0.8-13.5-2.7-39.9-0.6-64.5c2.9-33.9,13.9-50.7,26.9-65.6c6.2-7.1,35.5-38.1,91.6-38.1\n              c56.2,0,85.3,30.9,91.6,38.1c13,14.9,23.9,31.7,26.9,65.6c2.1,24.6,0.3,51-0.6,64.5c-0.3,4.5,1.1,6.1,4.8,6.1\n              c0.8,0,1.6-0.1,2.6-0.3c6.9-1.7,19-7.9,31.3-10.6c2-0.4,4.1-0.7,6.1-0.7c6.6,0,12.8,2.5,15.4,9.2c3.7,9.7-1.3,17.5-12.6,25.4\n              c-6.8,4.7-31.3,19.9-36.9,25c-5.7,5.3-5,9.4-4.3,14.6c0.6,4.4,12.9,62.2,90.3,99.7C469.1,370.6,476.8,375.3,463.2,382.8z\"\n          />\n        </g>\n      </g>\n    </svg>\n  );\n};\n", "import type React from 'react';\n\nimport { DesignAgnosticButton } from '../designAgnostic';\nimport { CookieRichText } from '../shared/CookieRichText';\nimport type { BackgroundType, LocaleOption } from '../types';\nimport { CookieModalFooter } from './CookieModalFooter';\nimport { CookieModalHeader } from './CookieModalHeader';\n\ninterface Props {\n  backgroundType: BackgroundType;\n  supportedLocales: Record<string, LocaleOption>;\n  title: string;\n  content: Record<string, unknown>;\n  acceptAllButtonText: string;\n  essentialOnlyButtonText: string;\n  settingsButtonText: string;\n  onAcceptAllButtonClick: () => void;\n  onAcceptEssentialButtonClick: () => void;\n  onSettingsbuttonClick: () => void;\n  onLocaleChange?: (locale: string) => void;\n}\n\nexport const CookieLandingScreen: React.FC<Props> = ({\n  backgroundType,\n  supportedLocales,\n  title,\n  content,\n  settingsButtonText,\n  acceptAllButtonText,\n  essentialOnlyButtonText,\n  onSettingsbuttonClick,\n  onAcceptAllButtonClick,\n  onAcceptEssentialButtonClick,\n  onLocaleChange,\n}) => (\n  <div data-testid=\"mwp-cookie-landing-screen\" className=\"cookie-landing-screen\">\n    <CookieModalHeader\n      backgroundType={backgroundType}\n      supportedLocales={supportedLocales}\n      onLocaleChange={onLocaleChange}\n    />\n    <div data-testid=\"mwp-cookie-modal-body\" className=\"modal-body\">\n      <h2 className=\"cookie-title\">{title}</h2>\n      <CookieRichText document={content} className=\"landing-content\" />\n    </div>\n    <CookieModalFooter>\n      <DesignAgnosticButton\n        isPrimary={true}\n        text={essentialOnlyButtonText}\n        onClick={onAcceptEssentialButtonClick}\n      />\n      <DesignAgnosticButton\n        isPrimary={true}\n        text={acceptAllButtonText}\n        onClick={onAcceptAllButtonClick}\n      />\n      <DesignAgnosticButton\n        isPrimary={false}\n        text={settingsButtonText}\n        onClick={onSettingsbuttonClick}\n      />\n    </CookieModalFooter>\n  </div>\n);\n", "import type { CookieCategoryType } from '../../generated/contentful-types';\nimport { DesignAgnosticToggle } from '../designAgnostic';\nimport type { CategoryOptInCookie, CookieAcceptance } from '../types';\nimport { CategoryDisplayMode } from '../types';\nimport { CookieRichText } from './CookieRichText';\n\ninterface Props {\n  title: string;\n  cookieCategories: readonly CookieCategoryType[];\n  categoriesState: CookieAcceptance;\n  updateCategoriesState: (key: CategoryOptInCookie, value: boolean) => void;\n  activeToggleLabel: string;\n  inactiveToggleLabel: string;\n  /** Flag to control rendering categories - some are only visible on the settings page. */\n  isModal?: boolean;\n}\n\nexport const CookieCategories: React.FC<Props> = ({\n  title,\n  cookieCategories,\n  categoriesState,\n  updateCategoriesState,\n  activeToggleLabel,\n  inactiveToggleLabel,\n  isModal,\n}) => {\n  return (\n    <>\n      <h2 className=\"cookie-title\">{title}</h2>\n      {cookieCategories.map(category => {\n        if (isModal && category.displayMode === CategoryDisplayMode.SettingsOnly) {\n          return null;\n        }\n\n        const cookieCategory = category.categoryCookieName as CategoryOptInCookie;\n        // Show inactive text by default\n        let categoryLabel = inactiveToggleLabel;\n        // For essential categories that users can't disable - show active text\n        if (category.isEssential && !category.enableToggle) categoryLabel = activeToggleLabel;\n        // User has enabled the toggle - show active text\n        if (categoriesState[cookieCategory]) categoryLabel = activeToggleLabel;\n        return (\n          <div data-testid=\"mwp-cookie-category-description\" key={category.sys.id}>\n            <div className=\"category-border\">\n              <div className=\"category-title-container\">\n                <h5 className=\"category-title\">{category.title}</h5>\n                <p className=\"category-status\">{categoryLabel}</p>\n                {category.enableToggle === true && (\n                  <div className=\"category-toggle\">\n                    <DesignAgnosticToggle\n                      id={`${category.sys.id}-slider`}\n                      isChecked={!!categoriesState[cookieCategory]}\n                      onToggle={() =>\n                        updateCategoriesState(cookieCategory, !categoriesState[cookieCategory])\n                      }\n                    />\n                  </div>\n                )}\n              </div>\n              <CookieRichText\n                className=\"category-description\"\n                document={category.description.json}\n              />\n            </div>\n          </div>\n        );\n      })}\n    </>\n  );\n};\n", "import type React from 'react';\n\nimport type { CookieCategoryType } from '../../generated/contentful-types';\nimport { DesignAgnosticButton } from '../designAgnostic';\nimport { CookieCategories } from '../shared/CookieCategories';\nimport type { BackgroundType, CategoryOptInCookie, CookieAcceptance, LocaleOption } from '../types';\nimport { CookieModalFooter } from './CookieModalFooter';\nimport { CookieModalHeader } from './CookieModalHeader';\n\ninterface Props {\n  backgroundType: BackgroundType;\n  supportedLocales: Record<string, LocaleOption>;\n  title: string;\n  cookieCategories: readonly CookieCategoryType[];\n  activeToggleLabel: string;\n  inactiveToggleLabel: string;\n  categoriesState: CookieAcceptance;\n  updateCategoriesState: (key: CategoryOptInCookie, value: boolean) => void;\n  acceptAllButtonText: string;\n  essentialOnlyButtonText: string;\n  acceptSelectedButtonText: string;\n  onAcceptAllButtonClick: () => void;\n  onAcceptEssentialButtonClick: () => void;\n  onAcceptSelectedButtonClick: () => void;\n  onLocaleChange?: (locale: string) => void;\n}\n\nexport const CookieSettingsScreen: React.FC<Props> = ({\n  backgroundType,\n  supportedLocales,\n  onLocaleChange,\n  title,\n  cookieCategories,\n  activeToggleLabel,\n  inactiveToggleLabel,\n  categoriesState,\n  updateCategoriesState,\n  acceptAllButtonText,\n  essentialOnlyButtonText,\n  acceptSelectedButtonText,\n  onAcceptAllButtonClick,\n  onAcceptEssentialButtonClick,\n  onAcceptSelectedButtonClick,\n}) => {\n  const settingScreen = (\n    <div data-testid=\"mwp-cookie-modal-settings-screen\" className=\"cookie-settings-screen\">\n      <CookieModalHeader\n        backgroundType={backgroundType}\n        supportedLocales={supportedLocales}\n        onLocaleChange={onLocaleChange}\n      />\n      <div className=\"modal-body\">\n        <CookieCategories\n          title={title}\n          cookieCategories={cookieCategories}\n          categoriesState={categoriesState}\n          updateCategoriesState={updateCategoriesState}\n          activeToggleLabel={activeToggleLabel}\n          inactiveToggleLabel={inactiveToggleLabel}\n          isModal={true}\n        />\n      </div>\n      <CookieModalFooter>\n        <DesignAgnosticButton\n          isPrimary={true}\n          text={essentialOnlyButtonText}\n          onClick={onAcceptEssentialButtonClick}\n        />\n        <DesignAgnosticButton\n          isPrimary={true}\n          text={acceptAllButtonText}\n          onClick={onAcceptAllButtonClick}\n        />\n        <DesignAgnosticButton\n          isPrimary={true}\n          text={acceptSelectedButtonText}\n          onClick={onAcceptSelectedButtonClick}\n        />\n      </CookieModalFooter>\n    </div>\n  );\n\n  return settingScreen;\n};\n", "import { ApolloClient, ApolloProvider, InMemoryCache } from '@apollo/client';\nimport { globalComponentsApolloLink } from '@snapchat/mw-global-components-schema';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport type { ContentfulProps } from '../../context/ContentfulContext';\nimport { ContentfulContext } from '../../context/ContentfulContext';\nimport type { DesignSystemProps } from '../../context/DesignSystemContext';\nimport { DesignSystemContext } from '../../context/DesignSystemContext';\n\nexport type CookieProviderProps = Partial<ContentfulProps> & DesignSystemProps & PropsWithChildren;\n\nexport const CookieProvider: FC<CookieProviderProps> = ({ children, client, ...otherProps }) => {\n  const { isPreview = false, isSSR = false, currentLocale = 'en-US' } = otherProps;\n  const contentfulContext: ContentfulProps = {\n    isPreview,\n    isSSR,\n    currentLocale,\n    client,\n  };\n\n  const wrappedWithContext = (\n    <ContentfulContext.Provider value={contentfulContext}>\n      <DesignSystemContext.Provider value={otherProps}>{children}</DesignSystemContext.Provider>\n    </ContentfulContext.Provider>\n  );\n\n  if (client) {\n    return wrappedWithContext;\n  }\n\n  // If a client was not provided, wrap with ApolloProvider with default settings\n  const defaultClient = new ApolloClient({\n    link: globalComponentsApolloLink,\n    cache: new InMemoryCache(),\n  });\n\n  return <ApolloProvider client={defaultClient}>{wrappedWithContext}</ApolloProvider>;\n};\n", "import { parseError } from '@snapchat/core';\nimport type { Dimensions } from '@snapchat/graphene';\nimport { Partition } from '@snapchat/graphene';\nimport { useGlobalComponentsContentfulQuery } from '@snapchat/mw-global-components-schema';\nimport clone from 'lodash/clone.js';\nimport head from 'lodash/head.js';\nimport type { FC } from 'react';\nimport { useCallback, useContext, useEffect, useMemo, useState } from 'react';\n\nimport { ContentfulContext } from '../../context';\nimport type { CookieModalType } from '../../generated/contentful-types';\nimport { CookieModalQueryDocumentType } from '../../generated/contentful-types';\nimport { BrowserGrapheneClient } from '../../helpers/logging';\nimport {\n  acceptCustomCookies,\n  createCookieMapping,\n  fetchUserLocation,\n  getAllCookies,\n  getCookieDomain,\n  removeCookiesForNonacceptedCategories,\n  setOptInCookies,\n} from '../../utils';\nimport type { DesignAgnosticButtonProps } from '../designAgnostic';\nimport { DesignAgnosticButton, DesignAgnosticSection } from '../designAgnostic';\nimport type { WithOnError } from '../ErrorBoundary';\nimport { withErrorBoundary } from '../ErrorBoundary';\nimport { CookieCategories } from '../shared/CookieCategories';\nimport { BackgroundType, CategoryOptInCookie, EventAction } from '../types';\n\ninterface OnSubmitEvent {\n  /**\n   * User's location per API endpoint. Included as a convenience for consuming applications to avoid\n   * multiple calls to that endpoint if configuring GTM/GA, etc.\n   */\n  userLocation: string;\n  /** Category Cookies and acceptance state for the user. */\n  cookieAcceptance: Record<string, boolean>;\n}\n\nexport interface CookieSettingsProps extends WithOnError {\n  backgroundType?: BackgroundType;\n  cookieDomain?: string;\n  /**\n   * Fires when a user submits changes to their cookie settings. This event hook is used to\n   * enable/disable features per user cookie acceptance.\n   */\n  onSubmit?: (event: OnSubmitEvent) => void;\n  /** On event listener for user actions */\n  onEvent?: (event: { component: string; label: string; action: EventAction }) => void;\n}\n\nenum ButtonStates {\n  Disabled = 'Disabled',\n  Enabled = 'Enabled',\n  Saved = 'Saved',\n}\n\nconst displayName = 'CookieSettings';\n\nconst CookieSettings: FC<CookieSettingsProps> = ({\n  backgroundType = BackgroundType.LightMode,\n  cookieDomain: inputCookieDomain,\n  onSubmit,\n  onEvent,\n}) => {\n  // ==============================================================================================\n  // Fetch content from Contentful\n  // ==============================================================================================\n  const context = useContext(ContentfulContext);\n  const { data } = useGlobalComponentsContentfulQuery(CookieModalQueryDocumentType, context, {\n    client: context.client,\n  });\n  const config = head(data?.cookieModalCollection.items) as CookieModalType | undefined;\n  const { categorySettings, cookieCategoryMap, enableCookieDeletion } = useMemo(() => {\n    if (!config?.cookieCategoriesCollection?.items)\n      return {\n        categorySettings: undefined,\n        cookieCategoryMap: undefined,\n        enableCookieDeletion: false,\n      };\n\n    const categorySettings = config.cookieCategoriesCollection.items;\n\n    const cookieCategoryMap = createCookieMapping(config.cookieCategoriesCollection.items);\n\n    // Settings for cookie deletion\n    const { enableCookieDeletion } = config;\n\n    return { categorySettings, cookieCategoryMap, enableCookieDeletion };\n  }, [config]);\n\n  // ==============================================================================================\n  // Internal State\n  // ==============================================================================================\n  const cookieDomain = getCookieDomain(inputCookieDomain);\n\n  const [userLocation, setUserLocation] = useState<string>('Unknown');\n\n  const [categoryState, setCategoryState] = useState<Record<string, boolean>>({});\n\n  const updateCategoryState = (key: string, value: boolean) => {\n    const newState = clone(categoryState);\n    newState[key] = value;\n    setCategoryState(newState);\n    setSaveButtonState(ButtonStates.Enabled);\n  };\n\n  const [saveButtonState, setSaveButtonState] = useState<ButtonStates>(ButtonStates.Disabled);\n\n  const updateSaveButton = () => {\n    setSaveButtonState(ButtonStates.Saved);\n\n    setTimeout(() => {\n      setSaveButtonState(ButtonStates.Disabled);\n    }, 3000);\n  };\n\n  const [grapheneClient, setGrapheneClient] = useState<BrowserGrapheneClient>();\n\n  // ==============================================================================================\n  // Helper Functions\n  // ==============================================================================================\n  const updateUserCookies = useCallback(\n    (cookiesToSet: Record<string, boolean>) => {\n      // If mappings have not been loaded, treat as noop\n      if (!cookieCategoryMap || !categorySettings) return;\n\n      setOptInCookies(cookieDomain, cookiesToSet);\n\n      const results = removeCookiesForNonacceptedCategories(\n        cookieDomain,\n        cookiesToSet,\n        cookieCategoryMap,\n        enableCookieDeletion\n      );\n\n      // log any cookie removals that were incomplete (indicates misconfiguration of cookie attributes)\n      for (const cookieName in results) {\n        // removal was successful, noop\n        if (results[cookieName]?.wasRemoved) continue;\n\n        // otherwise log so we can review the configuration.  Graphene doesn't support enough dimensions\n        // for us to store the full configuration, so domain and cookieName will have to do.\n        const dimensions: Dimensions = {\n          cookieName,\n          userLocation,\n        };\n        grapheneClient?.logMetric('tracking_cookie_misconfiguration', dimensions);\n      }\n    },\n    [\n      cookieDomain,\n      userLocation,\n      cookieCategoryMap,\n      categorySettings,\n      grapheneClient,\n      enableCookieDeletion,\n    ]\n  );\n\n  // ==============================================================================================\n  // useEffect calls\n  // ==============================================================================================\n\n  useEffect(() => {\n    const host = window.location.hostname;\n    const client = new BrowserGrapheneClient(Partition.COOKIE_MODAL_COMPONENTS, host);\n    setGrapheneClient(client);\n  }, [setGrapheneClient]);\n\n  useEffect(() => {\n    // If mappings have not been loaded, treat as noop\n    if (!categorySettings) return;\n\n    const retrieveUserCookies = () => {\n      // Calling getAllCookies in order to check current Cookies and to help set default values\n      const retrievedCookies = getAllCookies(categorySettings);\n      const hasPreviouslyAcceptedCookies = retrievedCookies[CategoryOptInCookie.Essential];\n\n      if (hasPreviouslyAcceptedCookies) {\n        setCategoryState(retrievedCookies);\n        clearInterval(interval);\n      }\n    };\n    const interval = setInterval(retrieveUserCookies, 1000);\n\n    // call immediately rather than awaiting the interval period\n    retrieveUserCookies();\n\n    return () => clearInterval(interval);\n  }, [categorySettings, setCategoryState]);\n\n  // Retrieve user's location\n  useEffect(() => {\n    // Wait for grapheneClient to initialize before executing\n    if (!grapheneClient) return;\n\n    // Retrieving user's country and region\n    const fetchUserRegion = async () => {\n      try {\n        const userLocation = await fetchUserLocation();\n        setUserLocation(userLocation);\n      } catch (unknownError) {\n        const error = parseError(unknownError);\n        grapheneClient.logError(displayName, 'userLocation', error);\n      }\n    };\n    void fetchUserRegion();\n  }, [setUserLocation, grapheneClient]);\n\n  // ==============================================================================================\n  // User Interaction handlers\n  // ==============================================================================================\n\n  const acceptSelected = () => {\n    // If mappings have not been loaded, treat as noop\n    if (!categorySettings) return;\n\n    const cookiesToSet = acceptCustomCookies(categorySettings, categoryState);\n    updateUserCookies(cookiesToSet);\n    updateSaveButton();\n    logUserAction('save_changes', cookiesToSet);\n\n    // Fire onSubmit event hook\n    onSubmit?.({\n      userLocation,\n      cookieAcceptance: cookiesToSet,\n    });\n  };\n\n  const logUserAction = (label: string, cookieCategories: Record<string, boolean>) => {\n    // Log event to event listener from GlobalComponentsContext\n    onEvent?.({\n      component: displayName,\n      action: EventAction.Click,\n      label,\n    });\n\n    // Also log event to dedicated CookieComponents Graphene Partition\n    const dimensions: Dimensions = {\n      preferences: `${cookieCategories[CategoryOptInCookie.Preferences] ?? false}`,\n      performance: `${cookieCategories[CategoryOptInCookie.Performance] ?? false}`,\n      marketing: `${cookieCategories[CategoryOptInCookie.Marketing] ?? false}`,\n      userLocation,\n    };\n    grapheneClient?.logMetric(`${label}_clicks_settings`, dimensions);\n  };\n\n  if (!config) {\n    return null;\n  }\n\n  const buttonProps: DesignAgnosticButtonProps = {\n    isDisabled: saveButtonState === ButtonStates.Disabled,\n    isPrimary: saveButtonState !== ButtonStates.Saved,\n    testId: 'mwp-cookie-settings-save-btn',\n    text: saveButtonState === ButtonStates.Saved ? config.changesSavedText : config.saveChangesText,\n    onClick: acceptSelected,\n  };\n\n  return (\n    <DesignAgnosticSection backgroundType={backgroundType}>\n      <div data-testid=\"mwp-cookie-settings-page-body\" className=\"settings-page-body\">\n        <CookieCategories\n          title={config.settingsScreenTitle}\n          cookieCategories={config.cookieCategoriesCollection.items}\n          categoriesState={categoryState}\n          updateCategoriesState={updateCategoryState}\n          activeToggleLabel={config.toggleEnabledText}\n          inactiveToggleLabel={config.toggleDisabledText}\n        />\n      </div>\n      <div data-test-id=\"mwp-cookie-settings-page-footer\" className=\"settings-page-footer\">\n        <DesignAgnosticButton {...buttonProps} />\n      </div>\n    </DesignAgnosticSection>\n  );\n};\n\n// NOTE: for some reason displayName is not automatically deetected by ErrorBoundary.  Need to explicitly set it.\nCookieSettings.displayName = displayName;\n\nconst wrapped = withErrorBoundary(CookieSettings, Partition.COOKIE_MODAL_COMPONENTS);\n\nexport { wrapped as CookieSettings };\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useState } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { dataSetToAttributes } from '../../utils';\nimport { AccordionContext } from './AccordionContext';\nimport { accordionCss, titleCss } from './styles';\nimport type { AccordionProps } from './types';\n\nexport const Accordion: FC<AccordionProps> = ({\n  children,\n  multipleOpen = false,\n  title,\n  titleDataset,\n}) => {\n  useMotifStyles(MotifComponent.ACCORDION);\n\n  const [openIds, setOpenIds] = useState<string[]>([]);\n\n  return (\n    <AccordionContext.Provider\n      value={{\n        multipleOpen,\n        openIds,\n        setOpenIds,\n      }}\n    >\n      <div data-testid=\"accordion\" className={cx(MotifComponent.ACCORDION, accordionCss)}>\n        {title ? (\n          <h4 className={titleCss} {...dataSetToAttributes(titleDataset)}>\n            {title}\n          </h4>\n        ) : null}\n        {children}\n      </div>\n    </AccordionContext.Provider>\n  );\n};\n", "import type { ValueOf } from '../types';\n\nexport const Alignment = {\n  Left: 'Left',\n  Start: 'Start',\n  Center: 'Center',\n  End: 'End',\n  Right: 'Right',\n} as const;\n\nexport type Alignment = ValueOf<typeof Alignment>;\n\nexport const VerticalAlignment = {\n  Top: 'Top',\n  Middle: 'Middle',\n  Bottom: 'Bottom',\n};\n\nexport type VerticalAlignment = ValueOf<typeof VerticalAlignment>;\n\nexport const VideoPanelAlignment = {\n  TopRight: 'TopRight',\n  TopLeft: 'TopLeft',\n  TopCenter: 'TopCenter',\n  BottomLeft: 'BottomLeft',\n  BottomRight: 'BottomRight',\n  BottomCenter: 'BottomCenter',\n};\n\nexport type VideoPanelAlignment = ValueOf<typeof VideoPanelAlignment>;\n", "import type { ValueOf } from '../types';\n\nexport const BackgroundSize = {\n  Cover: 'cover',\n  Contain: 'contain',\n} as const;\n\nexport type BackgroundSize = ValueOf<typeof BackgroundSize>;\n\nexport const BackgroundRepeat = {\n  Repeat: 'repeat',\n  RepeatX: 'repeat-x',\n  RepeatY: 'repeat-y',\n  Space: 'space',\n  Round: 'round',\n  NoRepeat: 'no-repeat',\n};\n\nexport type BackgroundRepeat = ValueOf<typeof BackgroundRepeat>;\n\nexport const BackgroundPosition = {\n  Top: 'top',\n  Bottom: 'bottom',\n  Left: 'left',\n  Right: 'right',\n  Center: 'center',\n};\n\nexport type BackgroundPosition = ValueOf<typeof BackgroundPosition>;\n\n// This is not meant to be CSS styling but an enum for predefined styles\n// for the background media\nexport const BackgroundStyle = {\n  Normal: 'Normal',\n  Fixed: 'Fixed',\n} as const;\n\nexport type BackgroundStyle = ValueOf<typeof BackgroundStyle>;\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery } from './layout';\n\n/**\n * @deprecated Use `<h*>` tags or h*Css classname instead.\n *\n *   Tracking: https://jira.sc-corp.net/browse/ENTWEB-8939\n */\nexport const MobileHeading = {\n  M100: css`\n    font-size: 36px;\n    line-height: 42px;\n    font-weight: 600;\n  `,\n  M200: css`\n    font-size: 32px;\n    line-height: 40px;\n    font-weight: 600;\n  `,\n  M300: css`\n    font-size: 24px;\n    line-height: 28px;\n    font-weight: 500;\n  `,\n  M400: css`\n    font-size: 20px;\n    font-weight: 600;\n    line-height: 23px;\n  `,\n  M500: css`\n    font-size: 18px;\n    font-weight: 400;\n    line-height: 28px;\n  `,\n  M600: css`\n    font-size: 16px;\n    font-weight: 500;\n    line-height: 19px;\n  `,\n  M700: css`\n    font-size: 12px;\n    font-weight: 600;\n    line-height: 14px;\n  `,\n};\n\n/**\n * @deprecated Use `<h*>` tags or h*Css classname instead.\n *\n *   Tracking: https://jira.sc-corp.net/browse/ENTWEB-8939\n */\nexport const Heading = {\n  H100: css`\n    font-size: 64px;\n    font-weight: 600;\n    line-height: 70px;\n    ${mobileMediaQuery} {\n      ${MobileHeading.M100}\n    }\n  `,\n  H200: css`\n    font-size: 48px;\n    font-weight: 600;\n    line-height: 64px;\n    ${mobileMediaQuery} {\n      ${MobileHeading.M200}\n    }\n  `,\n  H300: css`\n    font-size: 28px;\n    font-weight: 500;\n    line-height: 34px;\n    ${mobileMediaQuery} {\n      ${MobileHeading.M300}\n    }\n  `,\n  H400: css`\n    font-size: 24px;\n    font-weight: 500;\n    line-height: 29px;\n    ${mobileMediaQuery} {\n      ${MobileHeading.M400}\n    }\n  `,\n  H500: css`\n    font-size: 20px;\n    font-weight: 500;\n    line-height: 28px;\n    ${mobileMediaQuery} {\n      ${MobileHeading.M500}\n    }\n  `,\n  H600: css`\n    font-size: 16px;\n    font-weight: 500;\n    line-height: 19px;\n    ${mobileMediaQuery} {\n      ${MobileHeading.M600}\n    }\n  `,\n  H700: css`\n    font-size: 12px;\n    font-weight: 600;\n    line-height: 14px;\n    ${mobileMediaQuery} {\n      ${MobileHeading.M700}\n    }\n  `,\n};\n\n/** @deprecated Use p2Css instead. */\nexport const FontParagraph = {\n  P100: css`\n    font-size: 16px;\n    font-weight: 400;\n    line-height: 26px;\n  `,\n};\n", "import { css } from '@emotion/css';\n\nexport const noHorizontalScrollbarsCss = css`\n  overflow: -moz-scrollbars-none; /* Hide scroll bar in Firefox */\n  -ms-overflow-style: none; /* Hide scroll bar in IE */\n  ::-webkit-scrollbar {\n    width: 0 !important; /* Hide scrollbar in Webkit browsers */\n  }\n`;\n", "import { cx, injectGlobal } from '@emotion/css';\nimport type { FC, HTMLAttributes, PropsWithChildren } from 'react';\nimport { createElement, useContext } from 'react';\n\nimport { FontStylesheet } from '../components/Font/FontStylesheet';\nimport { defaultMotif } from './defaultMotif';\nimport { MotifComponent } from './motifConstants';\nimport { MotifContext, useMotifStyles } from './motifReactUtils';\nimport { globalMotifCss } from './motifStyles';\nimport type { Motif } from './motifTypes';\nimport { getMotifName, setMotif } from './motifUtils';\n\ninjectGlobal(globalMotifCss);\n\nexport interface MotifRootProps extends PropsWithChildren, HTMLAttributes<unknown> {\n  motif?: Motif;\n  tag?: 'main' | 'section';\n}\n\n/**\n * Wrapper that sets the Motif and servers as motif root.\n *\n * This is a convenience component and the few lines in it can safely be used in other fashions. I.e\n * if you want to append some styles to the `body` and don't want to introduce extra nesting.\n */\nexport const MotifRoot: FC<MotifRootProps> = ({\n  motif = defaultMotif,\n  tag = 'main',\n  children,\n  className,\n  ...passThroughProps\n}) => {\n  const { injectedStyles } = useContext(MotifContext);\n\n  // Has to be the first thing.\n  if (getMotifName() !== motif.name) {\n    setMotif(motif);\n    injectedStyles.clear();\n  }\n\n  // Inject root styles.\n  useMotifStyles(MotifComponent.ROOT);\n\n  return (\n    <>\n      <FontStylesheet fontFamily={motif.fontFamily} />\n      {createElement(\n        tag,\n        {\n          className: cx(MotifComponent.ROOT, className),\n          'data-test-id': 'sdsm-motif-root',\n          ...passThroughProps,\n        },\n        children\n      )}\n    </>\n  );\n};\n", "import type { FC } from 'react';\n\nimport type { FontFamily } from './fontConstants';\nimport { fontDefinitionFiles, fontLinkIdFn } from './fontConstants';\n\ninterface Props {\n  fontFamily: FontFamily;\n}\n\n/**\n * Component that inserts the font stylesheet for a given font-family.\n *\n * Use this for websites that use `Helmet` or construct the `<head>` element in JSX.\n */\nexport const FontStylesheet: FC<Props> = ({ fontFamily }) => {\n  return (\n    <link rel=\"stylesheet\" id={fontLinkIdFn(fontFamily)} href={fontDefinitionFiles[fontFamily]} />\n  );\n};\n", "/**\n * Tags raw CSS string so it can be optimized when bundling.\n *\n * Typically used for global CSS injection since we can't use css`..global..`.\n */\nexport function globalCss(strings: TemplateStringsArray, ...values: unknown[]): string {\n  return String.raw({ raw: strings }, ...values);\n}\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery } from '../constants';\nimport { globalCss } from '../utils/globalCss';\nimport { m } from './m';\nimport { MotifComponent } from './motifConstants';\n\n/** Default font */\nconst textStyles = globalCss`\n  /* Required to be listed. I.e. body.sdsm { font-family: ... } */\n  font-family: ${m('--font-family')};\n\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--text-desktop-font-size')};\n    line-height: ${m('--text-desktop-font-line-height')};\n    font-weight: ${m('--text-desktop-font-weight')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--text-mobile-font-size')};\n    line-height: ${m('--text-mobile-font-line-height')};\n    font-weight: ${m('--text-mobile-font-weight')};\n  }\n`;\n\nconst h1Styles = globalCss`\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--h1-desktop-font-size')};\n    line-height: ${m('--h1-desktop-font-line-height')};\n    font-weight: ${m('--h1-desktop-font-weight')};\n    font-stretch: ${m('--h1-desktop-font-stretch')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--h1-mobile-font-size')};\n    line-height: ${m('--h1-mobile-font-line-height')};\n    font-weight: ${m('--h1-mobile-font-weight')};\n    font-stretch: ${m('--h1-mobile-font-stretch')};\n  }\n`;\n\nconst h2Styles = globalCss`\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--h2-desktop-font-size')};\n    line-height: ${m('--h2-desktop-font-line-height')};\n    font-weight: ${m('--h2-desktop-font-weight')};\n    font-stretch: ${m('--h2-desktop-font-stretch')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--h2-mobile-font-size')};\n    line-height: ${m('--h2-mobile-font-line-height')};\n    font-weight: ${m('--h2-mobile-font-weight')};\n    font-stretch: ${m('--h2-mobile-font-stretch')};\n  }\n`;\n\nconst h3Styles = globalCss`\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--h3-desktop-font-size')};\n    line-height: ${m('--h3-desktop-font-line-height')};\n    font-weight: ${m('--h3-desktop-font-weight')};\n    font-stretch: ${m('--h3-desktop-font-stretch')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--h3-mobile-font-size')};\n    line-height: ${m('--h3-mobile-font-line-height')};\n    font-weight: ${m('--h3-mobile-font-weight')};\n    font-stretch: ${m('--h3-mobile-font-stretch')};\n  }\n`;\n\nconst h4Styles = globalCss`\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--h4-desktop-font-size')};\n    line-height: ${m('--h4-desktop-font-line-height')};\n    font-weight: ${m('--h4-desktop-font-weight')};\n    font-stretch: ${m('--h4-desktop-font-stretch')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--h4-mobile-font-size')};\n    line-height: ${m('--h4-mobile-font-line-height')};\n    font-weight: ${m('--h4-mobile-font-weight')};\n    font-stretch: ${m('--h4-mobile-font-stretch')};\n  }\n`;\n\nconst h5Styles = globalCss`\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--h5-desktop-font-size')};\n    line-height: ${m('--h5-desktop-font-line-height')};\n    font-weight: ${m('--h5-desktop-font-weight')};\n    font-stretch: ${m('--h5-desktop-font-stretch')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--h5-mobile-font-size')};\n    line-height: ${m('--h5-mobile-font-line-height')};\n    font-weight: ${m('--h5-mobile-font-weight')};\n    font-stretch: ${m('--h5-mobile-font-stretch')};\n  }\n`;\n\nconst h6Styles = globalCss`\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--h6-desktop-font-size')};\n    line-height: ${m('--h6-desktop-font-line-height')};\n    font-weight: ${m('--h6-desktop-font-weight')};\n    font-stretch: ${m('--h6-desktop-font-stretch')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--h6-mobile-font-size')};\n    line-height: ${m('--h6-mobile-font-line-height')};\n    font-weight: ${m('--h6-mobile-font-weight')};\n    font-stretch: ${m('--h6-mobile-font-stretch')};\n  }\n`;\n\n/**\n * Global CSS for styling raw tags in SDS-M components\n *\n * Note: this only applies to scope tagged with `.sdsm` so that it can be dropped onto other\n * websites without breaking CSS.\n *\n * TODO: It would be nice to just put in values here instead of using variables for all of the\n * values, however that would take away the ability to override things globally, like changing the\n * font-stretch for all headings in Arcadia. Though we could do this via other means, it would mean\n * a refactor.\n */\nexport const globalMotifCss = globalCss`\n  .${MotifComponent.ROOT},\n  .${MotifComponent.ROOT} * {\n      box-sizing: border-box;\n  }\n\n  .${MotifComponent.ROOT} {\n    ${textStyles}\n    margin: 0;\n    padding: 0;\n  }\n\n  .${MotifComponent.ROOT} h1, h1.${MotifComponent.ROOT} { ${h1Styles} }\n  .${MotifComponent.ROOT} h2, h2.${MotifComponent.ROOT} { ${h2Styles} }\n  .${MotifComponent.ROOT} h3, h3.${MotifComponent.ROOT} { ${h3Styles} }\n  .${MotifComponent.ROOT} h4, h4.${MotifComponent.ROOT} { ${h4Styles} }\n  .${MotifComponent.ROOT} h5, h5.${MotifComponent.ROOT} { ${h5Styles} }\n  .${MotifComponent.ROOT} h6, h6.${MotifComponent.ROOT} { ${h6Styles} }\n`;\n\nexport const textCss = css(textStyles);\nexport const h1Css = css(h1Styles);\nexport const h2Css = css(h2Styles);\nexport const h3Css = css(h3Styles);\nexport const h4Css = css(h4Styles);\nexport const h5Css = css(h5Styles);\nexport const h6Css = css(h6Styles);\n\nexport const p1Css = css`\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--p1-desktop-font-size')};\n    line-height: ${m('--p1-desktop-font-line-height')};\n    font-weight: ${m('--p1-desktop-font-weight')};\n    font-stretch: ${m('--p1-desktop-font-stretch')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--p1-mobile-font-size')};\n    line-height: ${m('--p1-mobile-font-line-height')};\n    font-weight: ${m('--p1-mobile-font-weight')};\n    font-stretch: ${m('--p1-mobile-font-stretch')};\n  }\n`;\n\nexport const p2Css = css`\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--p2-desktop-font-size')};\n    line-height: ${m('--p2-desktop-font-line-height')};\n    font-weight: ${m('--p2-desktop-font-weight')};\n    font-stretch: ${m('--p2-desktop-font-stretch')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--p2-mobile-font-size')};\n    line-height: ${m('--p2-mobile-font-line-height')};\n    font-weight: ${m('--p2-mobile-font-weight')};\n    font-stretch: ${m('--p2-mobile-font-stretch')};\n  }\n`;\n\nexport const p3Css = css`\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--p3-desktop-font-size')};\n    line-height: ${m('--p3-desktop-font-line-height')};\n    font-weight: ${m('--p3-desktop-font-weight')};\n    font-stretch: ${m('--p3-desktop-font-stretch')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--p3-mobile-font-size')};\n    line-height: ${m('--p3-mobile-font-line-height')};\n    font-weight: ${m('--p3-mobile-font-weight')};\n    font-stretch: ${m('--p3-mobile-font-stretch')};\n  }\n`;\n\nexport const p4Css = css`\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--p4-desktop-font-size')};\n    line-height: ${m('--p4-desktop-font-line-height')};\n    font-weight: ${m('--p4-desktop-font-weight')};\n    font-stretch: ${m('--p4-desktop-font-stretch')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--p4-mobile-font-size')};\n    line-height: ${m('--p4-mobile-font-line-height')};\n    font-weight: ${m('--p4-mobile-font-weight')};\n    font-stretch: ${m('--p4-mobile-font-stretch')};\n  }\n`;\n\n/** A generic style for all clickable elements. */\nexport const actionCss = css`\n  color: ${m('--action-default-color')};\n  :hover {\n    color: ${m('--action-hover-color')};\n  }\n  :active {\n    color: ${m('--action-active-color')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--action-mobile-font-size')};\n    line-height: ${m('--action-mobile-font-line-height')};\n    font-weight: ${m('--action-mobile-font-weight')};\n  }\n\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--action-desktop-font-size')};\n    line-height: ${m('--action-desktop-font-line-height')};\n    font-weight: ${m('--action-desktop-font-weight')};\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport { Alignment, mobileMediaQuery } from '../constants';\n\nexport const getTextAlignValue = (alignment: Alignment): 'center' | 'start' | 'end' => {\n  switch (alignment) {\n    case Alignment.Center:\n      return 'center';\n    case Alignment.Start:\n    case Alignment.Left:\n      return 'start';\n    case Alignment.End:\n    case Alignment.Right:\n      return 'end';\n    default:\n      throw new Error(`specified alignment: ${alignment} is not accounted for!`);\n  }\n};\n\nexport const getFlexAlignValue = (alignment: Alignment): 'center' | 'flex-start' | 'flex-end' => {\n  switch (alignment) {\n    case Alignment.Center:\n      return 'center';\n    case Alignment.Start:\n    case Alignment.Left:\n      return 'flex-start';\n    case Alignment.End:\n    case Alignment.Right:\n      return 'flex-end';\n    default:\n      throw new Error(`specified alignment: ${alignment} is not accounted for!`);\n  }\n};\n\nconst allAlignments: Alignment[] = Object.values(Alignment);\n\n/** Precomputed lookup for the text alignment css. */\nexport const textAlignmentCss = Object.fromEntries(\n  allAlignments.map(alignment => [\n    alignment,\n    css`\n      text-align: ${getTextAlignValue(alignment)};\n    `,\n  ])\n) as Record<Alignment, string>;\n\n/** Precomputed lookup for the flex alignment css. */\nexport const alignItemsCss = Object.fromEntries(\n  allAlignments.map(alignment => [\n    alignment,\n    css`\n      align-items: ${getFlexAlignValue(alignment)};\n    `,\n  ])\n) as Record<Alignment, string>;\n\n/** Precomputed lookup for the grid alignment css. */\nexport const justifyItemsCss = Object.fromEntries(\n  allAlignments.map(alignment => [\n    alignment,\n    css`\n      justify-items: ${getFlexAlignValue(alignment)};\n    `,\n  ])\n) as Record<Alignment, string>;\n\n/** Precomputed lookup for the flex-column alignment. */\nexport const justifyContentCss = Object.fromEntries(\n  allAlignments.map(alignment => [\n    alignment,\n    css`\n      justify-content: ${getFlexAlignValue(alignment)};\n    `,\n  ])\n) as Record<Alignment, string>;\n\n/** Precomputed lookup for the flex-column alignment on mobile. */\nexport const justifyContentMobileCss = Object.fromEntries(\n  allAlignments.map(alignment => [\n    alignment,\n    css`\n      ${mobileMediaQuery} {\n        justify-content: ${getFlexAlignValue(alignment)};\n      }\n    `,\n  ])\n) as Record<Alignment, string>;\n\n/** Precomputed lookup for the text and flex alignment css. */\nexport const alignmentCss = Object.fromEntries(\n  allAlignments.map(alignment => [\n    alignment,\n    css`\n      text-align: ${getTextAlignValue(alignment)};\n      align-items: ${getFlexAlignValue(alignment)};\n      justify-items: ${getFlexAlignValue(alignment)};\n      justify-content: ${getFlexAlignValue(alignment)};\n    `,\n  ])\n) as Record<Alignment, string>;\n\n/** Precomputed lookup for the mobile text and flex alignment css. */\nexport const mobileAlignmentCss = Object.fromEntries(\n  allAlignments.map(alignment => [\n    alignment,\n    css`\n      ${mobileMediaQuery} {\n        text-align: ${getTextAlignValue(alignment)};\n        align-items: ${getFlexAlignValue(alignment)};\n        justify-items: ${getFlexAlignValue(alignment)};\n        justify-content: ${getFlexAlignValue(alignment)};\n      }\n    `,\n  ])\n) as Record<Alignment, string>;\n", "import { createContext } from 'react';\n\nimport type { BackgroundColor } from '../constants';\n\nexport const BlockBackgroundColorContext = createContext<BackgroundColor | undefined>(undefined);\n", "export const formatDateToDatetime = (date?: Date): string | undefined => {\n  if (!date || Number.isNaN(date.getTime())) return undefined;\n  return date.toISOString().substring(0, 10);\n};\n", "import type { BackgroundColor } from '../constants';\nimport type { MotifScheme } from '../motif';\nimport { getMotifSchemeForLegacyBackgroundColor } from '../motif';\n\n/**\n * Class name within which theme variables will be applied.\n *\n * Themes are toggled based on the background color.\n *\n * @deprecated Use `MotifScheme` directly instead.\n */\nexport const getBackgroundClassName = (\n  backgroundColor?: BackgroundColor | MotifScheme\n): string | undefined =>\n  backgroundColor ? getMotifSchemeForLegacyBackgroundColor(backgroundColor) : undefined;\n", "// See https://support.google.com/analytics/answer/1033981\nexport interface TrackingParameters {\n  utm_source: string;\n  utm_medium?: string;\n  utm_campaign?: string;\n  utm_content?: string;\n}\n\n// Based on https://stackoverflow.com/questions/10687099/how-to-test-if-a-url-string-is-absolute-or-relative\nexport const isAbsoluteUrl = /^(?:[a-z]+:)?\\/\\//i;\n\n/**\n * Appends tracking parameters to the URL.\n *\n * Does nothing if the URL is empty or is relative.\n */\nexport const appendTrackingParameters = (\n  href: string | undefined,\n  parameters: TrackingParameters\n): string | undefined => {\n  if (!href || !isAbsoluteUrl.test(href)) {\n    return href;\n  }\n\n  try {\n    const url = new URL(href);\n\n    Object.entries(parameters).forEach(([key, value]) => {\n      url.searchParams.set(key, value);\n    });\n\n    return url.toString();\n  } catch {\n    return undefined;\n  }\n};\n", "import { useEffect, useState } from 'react';\n\n/**\n * Represents the window focus state.\n *\n * @property {boolean} isFocused - Indicates whether the window is currently focused (true) or\n *   blurred (false).\n * @interface WindowFocused\n */\nexport interface WindowFocused {\n  isFocused: boolean;\n}\n\n/**\n * Hook to track the focus state of the window.\n *\n * @function useWindowFocused\n * @param {boolean} enabled - Indicates whether to enable focus tracking.\n * @returns {WindowFocused} An object containing the window focus state.\n */\nexport function useWindowFocused(enabled: boolean): WindowFocused {\n  const [isFocused, setIsFocused] = useState(true);\n\n  useEffect(() => {\n    const handleBlur = () => setIsFocused(false);\n    const handleFocus = () => setIsFocused(true);\n\n    if (enabled) {\n      window.addEventListener('blur', handleBlur);\n      window.addEventListener('focus', handleFocus);\n    } else {\n      window.removeEventListener('blur', handleBlur);\n      window.removeEventListener('focus', handleBlur);\n    }\n\n    return () => {\n      window.removeEventListener('blur', handleBlur);\n      window.removeEventListener('focus', handleBlur);\n    };\n  }, [enabled]);\n\n  return {\n    isFocused,\n  };\n}\n", "import { createContext } from 'react';\n\ninterface AccordionContextProps {\n  multipleOpen: boolean;\n  openIds: string[];\n  setOpenIds: (ids: string[]) => void;\n}\n\nexport const AccordionContext = createContext<AccordionContextProps>({\n  multipleOpen: false,\n  openIds: [],\n  setOpenIds: () => null,\n});\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery } from '../../constants';\nimport { m } from '../../motif/m';\n\nexport const accordionCss = css`\n  padding-bottom: ${m('--spacing-l')};\n`;\n\nexport const titleCss = css`\n  border-bottom: 1px solid ${m('--accordion-divider-border-color')};\n  color: ${m('--accordion-header-color')};\n  margin-block: 0;\n  padding: ${m('--accordion-header-padding')} 0;\n\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--accordion-header-desktop-font-size')};\n    font-weight: ${m('--accordion-header-desktop-font-weight')};\n    line-height: ${m('--accordion-header-desktop-font-line-height')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--accordion-header-mobile-font-size')};\n    font-weight: ${m('--accordion-header-mobile-font-weight')};\n    line-height: ${m('--accordion-header-mobile-font-line-height')};\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useCallback, useContext, useEffect, useRef } from 'react';\n\nimport { ToggleTarget } from '../../../hooks/useToggleState';\nimport { m } from '../../../motif';\nimport { DetailsSummary } from '../../DetailsSummary';\nimport { AccordionContext } from '../AccordionContext';\nimport { accordionItemCss, itemChevronCss, summaryCss } from './styles';\nimport type { AccordionItemProps } from './types';\n\n// TODO: Move these into constants\nconst duration = 400;\nconst easing = 'ease-out';\n\nexport const AccordionItem: FC<AccordionItemProps> = ({\n  id,\n  title,\n  children,\n  titleDataset,\n  className,\n  summaryClassName,\n}) => {\n  const { multipleOpen, openIds, setOpenIds } = useContext(AccordionContext);\n\n  const detailsRef = useRef<HTMLDetailsElement | null>(null);\n  const summaryRef = useRef<HTMLElement | null>(null);\n\n  const animation = useRef<Animation | null>(null);\n  const isClosing = useRef(false);\n  const isExpanding = useRef(false);\n\n  const isOpen = openIds.includes(id);\n\n  // syncs the intial state of the two components per DetailsSummary comment on line 81\n  useEffect(() => {\n    if (!detailsRef.current) {\n      return;\n    }\n\n    if (isOpen !== detailsRef.current.open) {\n      detailsRef.current.open = isOpen;\n    }\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  const shrink = useCallback(() => {\n    isClosing.current = true;\n\n    if (!detailsRef?.current || !summaryRef?.current) {\n      return;\n    }\n\n    detailsRef.current.style.overflow = 'hidden';\n\n    const startHeight = `${detailsRef.current.offsetHeight}px`;\n    const endHeight = `${summaryRef.current.offsetHeight}px`;\n\n    if (animation.current) {\n      animation.current.cancel();\n    }\n\n    animation.current = detailsRef.current.animate?.(\n      { height: [startHeight, endHeight] },\n      { duration, easing }\n    );\n\n    animation.current?.finished\n      .then(() => onAnimationFinish(false))\n      .catch(() => {\n        isClosing.current = false;\n      });\n  }, []);\n\n  // syncs visual state with actual state if item is closed by another source (e.g. multiple open not allowed, anotehr item opened)\n  useEffect(() => {\n    if (isOpen) {\n      return;\n    }\n\n    if (detailsRef.current?.open) {\n      shrink();\n    }\n  }, [isOpen, shrink]);\n\n  const expand = useCallback(() => {\n    isExpanding.current = true;\n\n    if (!detailsRef.current || !summaryRef.current) {\n      return;\n    }\n\n    detailsRef.current.style.overflow = 'hidden';\n\n    const startHeight = `${detailsRef.current.offsetHeight}px`;\n    const endHeight = `${\n      summaryRef.current.offsetHeight +\n      detailsRef.current.scrollHeight -\n      summaryRef.current.offsetHeight\n    }px`;\n\n    if (animation.current) {\n      animation.current.cancel();\n    }\n\n    animation.current = detailsRef.current.animate?.(\n      { height: [startHeight, endHeight] },\n      { duration, easing }\n    );\n\n    animation.current?.finished\n      .then(() => onAnimationFinish(true))\n      .catch(() => {\n        isExpanding.current = false;\n      });\n  }, []);\n\n  const open = useCallback(() => {\n    if (!detailsRef.current) {\n      return;\n    }\n\n    detailsRef.current.style.height = `${detailsRef.current.offsetHeight}px`;\n    detailsRef.current.open = true;\n    window.requestAnimationFrame(expand);\n  }, [expand]);\n\n  const onToggle = useCallback(\n    (toggle: ToggleTarget) => {\n      if (multipleOpen) {\n        setOpenIds(toggle === ToggleTarget.OFF ? openIds.filter(o => o !== id) : [...openIds, id]);\n      } else {\n        setOpenIds(toggle === ToggleTarget.OFF ? [] : [id]);\n      }\n\n      if (!detailsRef.current) {\n        return;\n      }\n\n      if (toggle === ToggleTarget.ON) {\n        open();\n      } else {\n        shrink();\n      }\n    },\n    [multipleOpen, setOpenIds, openIds, id, open, shrink]\n  );\n\n  const onAnimationFinish = (open: boolean) => {\n    if (!detailsRef.current) {\n      return;\n    }\n\n    detailsRef.current.open = open;\n    detailsRef.current.style.height = '';\n    detailsRef.current.style.overflow = '';\n    isExpanding.current = false;\n    isClosing.current = false;\n    animation.current = null;\n  };\n\n  return (\n    <DetailsSummary\n      detailsRef={detailsRef}\n      summaryRef={summaryRef}\n      summary={title}\n      chevronProps={{ className: itemChevronCss, fill: m('--icon-color') }}\n      className={cx(accordionItemCss, className)}\n      onToggle={onToggle}\n      summaryProps={{\n        dataset: titleDataset,\n        className: cx(summaryCss, summaryClassName),\n      }}\n      transitionDurationMs={duration}\n      open={isOpen}\n    >\n      {children}\n    </DetailsSummary>\n  );\n};\n", "/* eslint-disable no-console */\nimport noop from 'lodash-es/noop';\nimport { useCallback, useEffect, useState } from 'react';\n\n/**\n * Enum for different states for a toggle attribute.\n *\n * Useful for state management like collapse/expand toggles where the transition state matters.\n */\nexport enum ToggleState {\n  OFF = 'off',\n  ON = 'on',\n  TURNING_OFF = 'turning-off',\n  TURNING_ON = 'turning-on',\n}\n\n/** Enum for target state that may be passed into the 'toggle' function. */\nexport enum ToggleTarget {\n  OFF = 'off',\n  ON = 'on',\n  TOGGLE = 'toggle',\n}\n\nexport interface UseToggleStateInit {\n  initialValue?: ToggleState;\n\n  /** Callback for when the state changes. */\n  onToggle?: (newState: ToggleState, previousState: ToggleState) => void;\n\n  /** Delay from TURNING_ON -> ON and TURNING_OFF -> OFF */\n  transitionDurationMs?: number;\n}\n\nconst defaultUseToggleStateInit: Required<UseToggleStateInit> = {\n  initialValue: ToggleState.OFF,\n  onToggle: noop,\n  transitionDurationMs: 250,\n};\n\nexport interface UseToggleStateExport {\n  state: ToggleState;\n  toggle: (target?: ToggleTarget) => void;\n}\n\n/**\n * Hook for being able to set a value to ON/OFF and get notified while transitions happen.\n *\n * Sample usage:\n *\n * ```typescript\n * const { state: myState, toggle: toggleMyState } = useToggleState({\n *   initialValue: myIntialBooleanValue ? ToggleState.ON : ToggleState.OFF,\n *   onToggle: (newState, _oldState) => {\n *     switch (newState) {\n *       case ToggleState.ON:\n *         break;\n *       case ToggleState.TURNING_ON:\n *         break;\n *       case ToggleState.OFF:\n *         break;\n *       case ToggleState.TURNING_OFF:\n *         break;\n *       default:\n *         break;\n *     }\n *   },\n * });\n * ```\n */\nexport const useToggleState = (init: UseToggleStateInit): UseToggleStateExport => {\n  const { initialValue, onToggle, transitionDurationMs } = {\n    ...defaultUseToggleStateInit,\n    ...init,\n  };\n\n  const [state, setState] = useState<ToggleState>(initialValue);\n\n  /** Helper function for updating internal state and notifying listeners that state updated. */\n  const setStateAndNotify = useCallback(\n    (newState: ToggleState, oldState: ToggleState) => {\n      if (newState === oldState) {\n        return;\n      }\n\n      setState(newState);\n      onToggle(newState, oldState);\n    },\n    [onToggle, setState]\n  );\n\n  /** Effect that schedules changes from TURNING_OFF -> OFF and TURNING_ON -> ON. */\n  useEffect(() => {\n    let transitionTimeout: ReturnType<typeof setTimeout>;\n\n    if (state === ToggleState.TURNING_OFF) {\n      transitionTimeout = setTimeout(\n        setStateAndNotify.bind(this, ToggleState.OFF, ToggleState.TURNING_OFF),\n        transitionDurationMs\n      );\n    }\n\n    if (state === ToggleState.TURNING_ON) {\n      transitionTimeout = setTimeout(\n        setStateAndNotify.bind(this, ToggleState.ON, ToggleState.TURNING_ON),\n        transitionDurationMs\n      );\n    }\n\n    return () => {\n      transitionTimeout && clearTimeout(transitionTimeout);\n    };\n  }, [state, transitionDurationMs, setStateAndNotify]);\n\n  const turnOn = () => {\n    if (state !== ToggleState.OFF) {\n      return;\n    }\n\n    setStateAndNotify(ToggleState.TURNING_ON, state);\n  };\n\n  const turnOff = () => {\n    if (state !== ToggleState.ON) {\n      return;\n    }\n\n    setStateAndNotify(ToggleState.TURNING_OFF, state);\n  };\n\n  const toggle = (target = ToggleTarget.TOGGLE) => {\n    if (target === ToggleTarget.ON) {\n      turnOn();\n    } else if (target === ToggleTarget.OFF) {\n      turnOff();\n    } else {\n      const isOff = state === ToggleState.TURNING_OFF || state === ToggleState.OFF;\n      isOff ? turnOn() : turnOff();\n    }\n  };\n\n  return { state, toggle };\n};\n", "/**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\nfunction isNil(value) {\n  return value == null;\n}\n\nexport default isNil;\n", "/* eslint-disable no-console */\nimport { cx } from '@emotion/css';\nimport isNil from 'lodash-es/isNil';\nimport type { CSSProperties, FC, MouseEventHandler, PropsWithChildren, ReactNode } from 'react';\nimport { useCallback, useEffect, useRef } from 'react';\n\nimport { ToggleState, ToggleTarget, useToggleState } from '../../hooks/useToggleState';\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { dataSetToAttributes } from '../../utils';\nimport { Icon } from '../Icon';\nimport {\n  chevronCss,\n  detailsAnimationCss,\n  detailsCss,\n  detailsSummaryAnimationDurationCssVar,\n  summaryCss,\n} from './DetailsSummary.styles';\nimport type { DetailsSummaryProps } from './types';\n\nexport const DetailsSummary: FC<PropsWithChildren<DetailsSummaryProps>> = ({\n  showChevron = true,\n  chevronProps,\n  onToggle,\n  summary,\n  summaryProps,\n  children,\n  className: detailsClassName,\n  fadeInAnimation = true,\n  transitionDurationMs,\n  open: forceOpen,\n  detailsRef: parentDetailsRef,\n  summaryRef,\n  disableScrollToOnOpen,\n  forceOpenAttribute,\n  ...detailsProps\n}) => {\n  // If the 'forceOpen' is set it effectively takes state control away from this component.\n  const parentHasStateControl = !isNil(forceOpen);\n  useMotifStyles(MotifComponent.DETAIL_SUMMARY);\n\n  const scrollTimeoutRef = useRef<ReturnType<typeof setTimeout>>();\n  // we need this for scrolling into view on click\n  const internalDetailsRef = useRef<HTMLDetailsElement | null>(null);\n\n  // assignign details to two refs because the prop ref\n  // isn't always available when we need it in the scrollTo handler\n  const setDetailRefs = useCallback(\n    (el: HTMLDetailsElement) => {\n      if (parentDetailsRef) {\n        parentDetailsRef.current = el;\n      }\n      internalDetailsRef.current = el;\n    },\n    [parentDetailsRef]\n  );\n\n  const { state: isOpenState, toggle: toggleIsOpenInternal } = useToggleState({\n    initialValue: parentHasStateControl && forceOpen ? ToggleState.ON : ToggleState.OFF,\n    transitionDurationMs,\n  });\n\n  // If parent controls the open state, then we need to update internal state to match.\n  useEffect(() => {\n    if (!parentHasStateControl) {\n      return;\n    }\n\n    toggleIsOpenInternal(forceOpen ? ToggleTarget.ON : ToggleTarget.OFF);\n  }, [parentHasStateControl, forceOpen, toggleIsOpenInternal]);\n\n  // If parent has no control, then only notify 'onToggle'.\n  useEffect(() => {\n    if (parentHasStateControl || !onToggle) {\n      return;\n    }\n\n    onToggle(isOpenState === ToggleState.ON ? ToggleTarget.ON : ToggleTarget.OFF);\n  }, [onToggle, isOpenState, parentHasStateControl]);\n\n  const toggleWithAnimation: MouseEventHandler<HTMLDetailsElement> = event => {\n    // Stop the toggle event from happening. We fire it off manually later.\n    event.preventDefault();\n\n    // This notifies the parent of a click event and doesn't change internal state.\n    if (parentHasStateControl) {\n      onToggle?.(forceOpen ? ToggleTarget.OFF : ToggleTarget.ON);\n    } else {\n      toggleIsOpenInternal();\n      // NOTE: 'onToggle' is notified separately (see above).\n    }\n\n    if (!disableScrollToOnOpen) {\n      // clears any existing timeouts so we dont scroll when user clicks quickly\n      clearTimeout(scrollTimeoutRef.current);\n\n      // this is fired during the onClick, and we only need to scroll if the target\n      const needsScroll = parentHasStateControl ? !forceOpen : !internalDetailsRef?.current?.open;\n\n      if (needsScroll) {\n        scrollTimeoutRef.current = setTimeout(() => {\n          internalDetailsRef?.current?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });\n        }, transitionDurationMs);\n      }\n    }\n  };\n\n  /**\n   * Keeps details open of forceOpenAttribute is set. The parent should be responsible for\n   * controlling the open attribute in this case since they may have animations that rely on the\n   * open attribute.\n   *\n   * Otherwise, it is not a controlled component and the native open should just match the internal\n   * toggle state.\n   */\n  const isNativeOpen = forceOpenAttribute || isOpenState !== ToggleState.OFF;\n\n  const { className: summaryClassName, dataset, ...otherSummaryProps } = summaryProps ?? {};\n\n  const getTitle = (summary: ReactNode) => {\n    if (typeof summary !== 'string') return undefined;\n\n    return summary;\n  };\n\n  return (\n    <details\n      ref={setDetailRefs}\n      className={cx(MotifComponent.DETAIL_SUMMARY, detailsCss, detailsClassName, {\n        [detailsAnimationCss]: fadeInAnimation,\n      })}\n      open={isNativeOpen}\n      data-state={isOpenState}\n      {...detailsProps}\n      style={\n        {\n          ...detailsProps.style,\n          [detailsSummaryAnimationDurationCssVar]: `${transitionDurationMs ?? 250}ms`,\n        } as CSSProperties\n      }\n    >\n      <summary\n        ref={summaryRef}\n        role=\"button\"\n        tabIndex={0}\n        title={getTitle(summary)}\n        className={cx(summaryCss, summaryClassName)}\n        onClick={toggleWithAnimation}\n        {...dataSetToAttributes(dataset)}\n        {...otherSummaryProps}\n      >\n        {summary}\n        {showChevron && (\n          <Icon\n            className={cx(chevronCss, chevronProps?.className)}\n            name=\"chevron-down\"\n            fill={chevronProps?.fill}\n          />\n        )}\n      </summary>\n      {children}\n    </details>\n  );\n};\nDetailsSummary.displayName = 'DetailsSummary';\n", "import { css, keyframes } from '@emotion/css';\n\n// TODO: Optimization: Inject the keyframe into global once.\n\nexport interface AnimationProps {\n  duration?: string;\n  curve?: string;\n  delay?: string;\n  iterationCount?: number;\n  direction?: 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';\n  fillMode?: 'forwards' | 'backwards' | 'both';\n  playState?: 'paused' | 'running';\n}\n\n/** Keyframes for fading in an element. */\nexport const fadeInKeyframes = keyframes`\n    0% {\n      opacity: 0;\n    }\n    100% {\n      opacity: 1;\n    }\n`;\n\n/** Keyframes for fading out an element. */\nexport const fadeOutKeyframes = keyframes`\n    0% {\n      opacity: 1;\n    }\n    100% {\n      opacity: 0;\n    }\n`;\n\nconst animationPropsToCssProp = (props: AnimationProps): string => {\n  const keysInOrder: Array<keyof AnimationProps> = [\n    'duration',\n    'curve',\n    'delay',\n    'iterationCount',\n    'direction',\n    'fillMode',\n    'playState',\n  ];\n  const valuesInOrder = keysInOrder.map(key => props[key]).filter(value => !!value);\n  return valuesInOrder.join(' ');\n};\n\nexport const opacityFadeInCss = (\n  animationProps: AnimationProps = { duration: '250ms', curve: 'ease-out' }\n): string => css`\n  animation: ${fadeInKeyframes} ${animationPropsToCssProp(animationProps)};\n`;\n\nexport const opacityFadeOutCss = (\n  animationProps: AnimationProps = { duration: '250ms', curve: 'ease-out' }\n): string => css`\n  animation: ${fadeOutKeyframes} ${animationPropsToCssProp(animationProps)};\n`;\n\nexport const rotateCss = (\n  startDegrees = 0,\n  endDegrees = 360,\n  animationProps: AnimationProps = { duration: '250ms', curve: 'linear' }\n): string => css`\n  @keyframes rotate {\n    0% {\n      transform: rotate(${startDegrees}deg);\n    }\n    100% {\n      transform: rotate(${endDegrees}deg);\n    }\n  }\n\n  animation: rotate ${animationPropsToCssProp(animationProps)};\n`;\n\n/** Rip of android's FastOutSlowInInterpolator curve. See https://cubic-bezier.com/#.4,0,.2,1 */\nexport const androidFastOutSlowInCurve = 'cubic-bezier(0.4, 0.0, 0.2, 1)';\n/** Rip of android's LinearOutSlowInInterpolator curve. See https://cubic-bezier.com/#0,0,.2,1 */\nexport const androidLinearOutSlowIn = 'cubic-bezier(0.0, 0.0, 0.2, 1)';\n\nexport const slideUpCss = (\n  animationProps: AnimationProps = { duration: '250ms', curve: androidFastOutSlowInCurve }\n): string => css`\n  @keyframes slideUp {\n    0% {\n      transform: translateY(100vh);\n    }\n    100% {\n      transform: translateY(0);\n    }\n  }\n\n  animation: slideUp ${animationPropsToCssProp(animationProps)};\n`;\n\nexport const slideDownCss = (\n  animationProps: AnimationProps = {\n    duration: '250ms',\n    curve: androidLinearOutSlowIn,\n  }\n): string => css`\n  @keyframes slideDown {\n    0% {\n      transform: translateY(0);\n    }\n    100% {\n      transform: translateY(100vh);\n    }\n  }\n\n  animation: slideDown ${animationPropsToCssProp(animationProps)};\n`;\n", "import { css } from '@emotion/css';\n\nimport { fadeInKeyframes, fadeOutKeyframes } from '../../constants/animation';\n\nexport const detailsSummaryAnimationDurationCssVar = '--animation-duration';\n\nexport const detailsCss = css`\n  & > summary {\n    /* Prevents selection when rapidly expanding and collapsing the content */\n    user-select: none;\n\n    cursor: pointer;\n  }\n\n  scroll-margin: 40px;\n\n  /* Prevents keyboard selection of focusable elements that the panel is collapsed. */\n  &[data-state='off'] > summary + * {\n    visibility: hidden;\n  }\n`;\n\nexport const detailsAnimationCss = css`\n  &[data-state='turning-on'] > summary + * {\n    animation: ${fadeInKeyframes} var(${detailsSummaryAnimationDurationCssVar}) ease-out;\n  }\n\n  &[data-state='turning-off'] > summary + * {\n    animation: ${fadeOutKeyframes} var(${detailsSummaryAnimationDurationCssVar}) ease-out;\n  }\n`;\n\nexport const chevronCss = css`\n  justify-self: center;\n  width: 12px;\n  height: 12px;\n\n  transform: rotate(0deg); /* 'up' */\n  transition: transform 250ms;\n\n  details[data-state='on'] > summary > &,\n  details[data-state='turning-on'] > summary > & {\n    transform: rotate(180deg); /* 'down', ccw */\n  }\n\n  *[dir='rtl'] details[data-state='on'] > summary > &,\n  *[dir='rtl'] details[data-state='turning-on'] > summary > & {\n    transform: rotate(-180deg); /* 'down', clockwise */\n  }\n  position: absolute;\n  right: 0;\n\n  /* stylelint-disable-next-line no-descending-specificity */\n  *[dir='rtl'] & {\n    right: unset;\n    left: 0;\n  }\n`;\n\nexport const summaryCss = css`\n  margin: 0;\n  position: relative; /* To position the chveron absolutely. */\n\n  /* In webkit the arrow is rendered as a list icon; so we hide that, too. */\n  /* We add our own arrow so we need to hid the default one. */\n  ::-webkit-details-marker {\n    display: none;\n  }\n  list-style-type: none;\n\n  display: flex;\n  align-items: center;\n`;\n", "import { css } from '@emotion/css';\n\nimport { MobileHeading } from '../../../constants';\nimport { m } from '../../../motif';\n\nexport const accordionItemCss = css`\n  border-bottom: 1px solid ${m('--accordion-divider-border-color')};\n  scroll-margin: 40px;\n  overflow-y: hidden;\n  overflow-x: auto;\n\n  section {\n    margin-bottom: 0;\n    padding: ${m('--spacing-xs')} ${m('--spacing-xxxl')} ${m('--spacing-l')} ${m('--spacing-m')};\n  }\n`;\n\nexport const summaryCss = css`\n  ${MobileHeading.M500}\n  align-items: center;\n  cursor: pointer;\n  display: flex;\n  font-weight: 500;\n  justify-content: space-between;\n  margin: 0;\n  padding-block: ${m('--spacing-m')};\n  padding-inline: ${m('--spacing-m')} 52px;\n  user-select: none;\n\n  /* Prevents keyboard selection of focusable elements that the panel is collapsed. */\n  &[data-state='off'] + * {\n    visibility: hidden;\n  }\n\n  /* In webkit the arrow is rendered as a list icon; so we hide that, too. */\n  /* We add our own arrow so we need to hid the default one. */\n  ::-webkit-details-marker {\n    display: none;\n  }\n  list-style-type: none;\n\n  > svg {\n    right: ${m('--spacing-m')};\n  }\n\n  *[dir='rtl'] & svg {\n    left: ${m('--spacing-m')};\n    right: unset;\n  }\n`;\n\nexport const itemChevronCss = css`\n  width: 20px;\n  height: 20px;\n  /* we override top here since its already centered by flex */\n  top: unset;\n`;\n", "import { useEffect } from 'react';\n\nconst canUseTouchEvent = typeof TouchEvent !== 'undefined';\n\n/**\n * Stops the scroll events outside of the target element.\n *\n * Useful for when you want to prevent scrolling behind full-screen popups.\n *\n * Note that we tried doing this using CSS (to remove the scrollbar etc), but ultimately it was full\n * of unintended consequerences like: scrollbar appearing and disappearing, page scroll flashing\n * during css transitions etc. Disabling scroll events seems to be the better way.\n *\n * Implementation here disables the 'wheel' event if no element has anywhere to scroll between event\n * target and 'allowScrollParent'\n *\n * 'shouldAllowScrollEvent' callback allows consumer to prevent a scroll event from being cancelled\n * on a case by case basis.\n */\nexport function useDisableScrollOutside(\n  allowScrollParent: HTMLElement | null,\n  inTransition?: boolean,\n  shouldAllowScrollEvent?: (event: Event) => boolean\n): void {\n  useEffect(() => {\n    // Save the scroll position;\n    const previousScrollX = window.scrollX;\n    const previousScrollY = window.scrollY;\n\n    let lastTouchStartY: number;\n\n    const captureTouchStart: EventListener = event => {\n      // Short circuit if touch events are not supported.This is separate\n      // from the next if statement for typescript inference.\n      if (!canUseTouchEvent) {\n        return;\n      }\n\n      if (!(event instanceof TouchEvent)) {\n        return;\n      }\n\n      // Skip multi-touch (zoom etc).\n      if (event.changedTouches.length > 1) {\n        return;\n      }\n\n      lastTouchStartY = event.changedTouches[0]!.clientY;\n    };\n\n    // Create event listener that prevents the default event behavior unless scroll is allowed.\n    const preventScrollEvent: EventListener = event => {\n      if (shouldAllowScrollEvent?.(event)) {\n        return;\n      }\n\n      // We can't prevent non-cancelable events. Do nothing. I.e. faster scroll while scrolling.\n      if (!event.cancelable) {\n        return;\n      }\n\n      // This is for type-script inference.\n      if (!(event.target instanceof HTMLElement)) {\n        return;\n      }\n\n      // Parent isn't attached to dom yet. Wait.\n      if (!allowScrollParent) {\n        return;\n      }\n\n      // Skip multi-touch (zoom etc). Just let this happen.\n      if (canUseTouchEvent && event instanceof TouchEvent && event.changedTouches.length > 1) {\n        return;\n      }\n\n      // Deduce scroll direction.\n      let scrollYDirection: 'down' | 'up' = 'down';\n\n      if (event instanceof WheelEvent) {\n        scrollYDirection = event.deltaY > 0 ? 'down' : 'up';\n      }\n\n      if (canUseTouchEvent && event instanceof TouchEvent) {\n        scrollYDirection = lastTouchStartY > event.changedTouches[0]!.clientY ? 'down' : 'up';\n      }\n\n      let current: HTMLElement | null = event.target;\n      let isInAllowedArea = false;\n      let hasRoomToScroll = false;\n\n      while (current) {\n        // Not descendant of allowed area. Continue to prevent scroll event.\n        if (current === document.body) {\n          break;\n        }\n\n        // Look for any room to scroll.\n        const scrollRoom = current.scrollHeight - current.offsetHeight;\n        const canScrollUp = scrollYDirection === 'up' && current.scrollTop > 0;\n        const canScrollDown = scrollYDirection === 'down' && current.scrollTop < scrollRoom;\n\n        if (scrollRoom > 0 && (canScrollDown || canScrollUp)) {\n          hasRoomToScroll = true;\n        }\n\n        // Check scope (after checking scroll).\n        if (current === allowScrollParent) {\n          isInAllowedArea = true;\n          break;\n        }\n\n        current = current?.parentElement;\n      }\n\n      if (isInAllowedArea && hasRoomToScroll) {\n        return;\n      }\n\n      // Cancelling this event stops the \"scroll\" event from ever happening.\n      event.preventDefault();\n    };\n\n    // Options that ignore passive events to prevent exceptions trying to prevent passive events.\n    // They aren't preventable.\n    const activeListenerOptions: AddEventListenerOptions = { passive: false, capture: false };\n\n    document.body.addEventListener('wheel', preventScrollEvent, activeListenerOptions);\n    document.body.addEventListener('touchstart', captureTouchStart /* passiveOK */);\n    document.body.addEventListener('touchmove', preventScrollEvent, activeListenerOptions);\n\n    return () => {\n      // Secondary scroll prevention measure. If scroll changes on the body via some other means\n      // no supported here (like zooming out and zooming in to another place), we restore the\n      // scroll to prevent unexepected UI change. This might cause flicker but avoid the \"broken\"\n      // feeling.\n      // In transition cases (such as navigation open and closing) we dont want to update scroll position.\n      if (!inTransition) {\n        window.scrollTo(previousScrollX, previousScrollY);\n      }\n\n      document.body.removeEventListener('wheel', preventScrollEvent, activeListenerOptions);\n      document.body.removeEventListener('touchstart', captureTouchStart /* passiveOK */);\n      document.body.removeEventListener('touchmove', preventScrollEvent, activeListenerOptions);\n    };\n  }, [allowScrollParent, inTransition, shouldAllowScrollEvent]);\n}\n", "import type { RefObject } from 'react';\nimport { useEffect, useState } from 'react';\n\nexport function useOnScreen(ref?: RefObject<HTMLElement>): boolean {\n  const [isIntersecting, setIntersecting] = useState(false);\n\n  useEffect(() => {\n    if (!ref?.current) return;\n\n    const observer = new IntersectionObserver(([entry]) => {\n      setIntersecting((entry as IntersectionObserverEntry).isIntersecting);\n    });\n\n    observer.observe(ref.current);\n\n    return () => {\n      observer.disconnect();\n    };\n  }, [ref]);\n\n  return isIntersecting;\n}\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useEffect, useRef, useState } from 'react';\n\nimport { useOnScreen } from '../../../hooks';\nimport { Media } from '../../Media';\nimport { AnimatedAccordionMediaDirection } from '../AnimatedAccordion';\nimport { AccordionItem } from './AccordionItem';\nimport {\n  accordionContainerCss,\n  imageActiveCss,\n  imageAspectRatioWrapperCss,\n  imageCss,\n  imagesContainerCss,\n  layoutCss,\n  layoutReverseCss,\n} from './styles';\nimport type { AccordionProps } from './types';\n\nexport const Accordion: FC<AccordionProps> = ({ items = [], mediaDirection, autoPlaySpeedMs }) => {\n  const allowAnimation = items.length > 1; // No need to animate if only 1 item\n  const accordionRef = useRef<HTMLDivElement>(null);\n  const isOnScreen = useOnScreen(accordionRef);\n\n  // Start 'activeItem' at -1 so that all items appear closed initially.\n  // This is to prevent an initial flash of the first item appearing open without\n  // visibility due to functionality of the underlying 'DetailSummary' component\n  // from SDS-M which is used inside the 'AccordionItem' component.\n  const [activeItem, setActiveItem] = useState(-1);\n  const [isPaused, setIsPaused] = useState(true);\n\n  const handleOnAnimationComplete = () => {\n    setActiveItem(prevActiveItem => {\n      if (prevActiveItem >= items.length - 1) {\n        return 0;\n      }\n\n      return prevActiveItem + 1;\n    });\n  };\n\n  // When component first enters the screen, activate/open the first item\n  useEffect(() => {\n    if (allowAnimation) {\n      setIsPaused(false);\n    }\n\n    setActiveItem(0);\n  }, [allowAnimation, setIsPaused, setActiveItem]);\n\n  // Pause/resume auto-rotation when component leaves/enters screen\n  useEffect(() => {\n    if (!allowAnimation) {\n      return;\n    }\n\n    if (isOnScreen) {\n      setIsPaused(false);\n    } else {\n      setIsPaused(true);\n    }\n  }, [isOnScreen, allowAnimation, setIsPaused]);\n\n  return (\n    <div\n      className={cx(layoutCss, {\n        [layoutReverseCss]: mediaDirection === AnimatedAccordionMediaDirection.Start,\n      })}\n    >\n      <div ref={accordionRef} className={accordionContainerCss}>\n        {items.map((item, i) => (\n          <AccordionItem\n            key={`${item.title}${i}`}\n            isOpen={i === activeItem}\n            isPaused={isPaused || i !== activeItem}\n            progressIndicatorDurationMs={autoPlaySpeedMs}\n            title={item.title}\n            body={item.body}\n            onToggle={() => {\n              if (i === activeItem || !allowAnimation) return;\n              setIsPaused(false);\n              setActiveItem(i);\n            }}\n            onMouseOver={() => {\n              if (i !== activeItem || !allowAnimation) return;\n              setIsPaused(true);\n            }}\n            onMouseLeave={() => {\n              if (i !== activeItem || !allowAnimation) return;\n              setIsPaused(false);\n            }}\n            onAnimationComplete={handleOnAnimationComplete}\n          />\n        ))}\n      </div>\n      <div className={imagesContainerCss}>\n        <div className={imageAspectRatioWrapperCss}>\n          {items.map((item, i) => {\n            return (\n              <Media\n                key={`${item.title}${i}`}\n                className={cx(imageCss, {\n                  [imageActiveCss]: i === activeItem,\n                })}\n                imgSrcs={item.imgSrcs}\n                altText={item.imageAltText}\n              />\n            );\n          })}\n        </div>\n      </div>\n    </div>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { CSSProperties, ReactEventHandler, ReactNode } from 'react';\nimport { forwardRef, useContext, useRef } from 'react';\n\nimport { BrowserFeaturesContext } from '../../BrowserFeatures/BrowserFeaturesContextProvider';\nimport { Device } from '../../constants';\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps, ImageSources } from '../../types';\nimport { combineRefs } from '../../utils/useCombinesRefs';\nimport { Picture } from '../Picture';\nimport { Video } from '../Video';\nimport { LaptopWrapper } from './LaptopWrapper';\nimport {\n  divStyleCss,\n  macSafariCss,\n  noWrapBackgroundVideoCss,\n  noWrapImageCss,\n  noWrapVideoCss,\n  phoneContainerCss,\n  phoneVideoCss,\n  shadowContainerCss,\n  wrappedBackgroundVideoCss,\n  wrappedImageCss,\n  wrappedVideoCss,\n} from './Media.styled';\nimport { PhoneWrapper } from './PhoneWrapper';\n\nexport interface MediaProps extends BaseComponentProps {\n  /** @deprecated Use imgSrcs instead */\n  imageSource?: string;\n\n  /** @deprecated. Does nothing. Apply styles using className. */\n  marginBottom?: unknown;\n\n  altText?: string;\n  maxHeight?: number;\n  maxWidth?: number;\n  height?: number;\n  width?: number;\n  videoSource?: string;\n  mobileVideoSource?: string;\n  sourceType?: string;\n  wrap?: Device;\n  className?: string;\n\n  // TODO: Consider expanding this into multiple parameters since it controls\n  // auto play behavior and others.\n  showVideoControls?: boolean;\n  autoplay?: boolean;\n\n  posterSource?: string;\n  onPlay?: ReactEventHandler<HTMLVideoElement>;\n  captionsSource?: string;\n  isBackgroundVideo?: boolean;\n  onTimeUpdate?: ReactEventHandler<HTMLVideoElement>;\n  imgSrcs?: ImageSources;\n  isDraggable?: boolean;\n}\n\nconst mediaWrapperClassName = 'sdsm-media-wrapper';\n\nexport const Media = forwardRef<HTMLElement, MediaProps>((props, ref) => {\n  const {\n    className,\n    altText,\n    imageSource,\n    maxHeight,\n    maxWidth,\n    videoSource,\n    mobileVideoSource,\n    sourceType,\n    wrap = Device.None,\n    // Don't expect this to work unless you're passing a video\n    showVideoControls = false,\n    autoplay = !showVideoControls,\n    posterSource,\n    onPlay,\n    captionsSource,\n    isBackgroundVideo,\n    onTimeUpdate,\n    imgSrcs,\n    dataset,\n    height,\n    width,\n    isDraggable,\n  } = props;\n\n  useMotifStyles(MotifComponent.MEDIA);\n\n  let unwrapped: ReactNode = null;\n  const { getLowEntropyHints } = useContext(BrowserFeaturesContext);\n  const mediaRef = useRef<HTMLElement>(null);\n  const clientHints = getLowEntropyHints();\n  const isMacSafari = !!(\n    clientHints.platform === 'macOS' &&\n    clientHints.browsers.find(browser => browser.brand === 'Safari')\n  );\n  const applyMacSafariStyles = isMacSafari && wrap === Device.Phone;\n\n  const isDevice = wrap === Device.Laptop || wrap === Device.Phone;\n\n  const sizeStyles: CSSProperties = {\n    maxHeight: maxHeight && !isDevice ? `${maxHeight}px` : undefined,\n    maxWidth: maxWidth && !isDevice ? `${maxWidth}px` : undefined,\n  };\n\n  if (imageSource || imgSrcs) {\n    const imgClassName = cx(\n      {\n        [wrappedImageCss]: isDevice,\n        [noWrapImageCss]: !isDevice,\n\n        [phoneContainerCss]: wrap === Device.Phone,\n        [shadowContainerCss]: wrap === Device.Shadow,\n      },\n      // Comes last to do overrides.\n      className\n    );\n\n    if (imgSrcs) {\n      unwrapped = (\n        <Picture\n          className={MotifComponent.MEDIA}\n          imgSrcs={imgSrcs}\n          altText={altText}\n          imgClassName={imgClassName}\n          style={sizeStyles}\n          dataset={dataset}\n          height={height}\n          width={width}\n          isDraggable={isDraggable}\n        />\n      );\n    } else if (imageSource) {\n      // if the image will not be wrapped inside a media wrapper, use the height\n      // here. Otherwise, the wrapper will implement the height\n      unwrapped = (\n        <Picture\n          className={MotifComponent.MEDIA}\n          altText={altText}\n          imgClassName={imgClassName}\n          style={sizeStyles}\n          defaultSrc={imageSource}\n          dataset={dataset}\n          height={height}\n          width={width}\n          isDraggable={isDraggable}\n        />\n      );\n    }\n  } else if (videoSource) {\n    const wrappedVideo2Css = isBackgroundVideo ? wrappedBackgroundVideoCss : wrappedVideoCss;\n    const noWrapVideo2Css = isBackgroundVideo ? noWrapBackgroundVideoCss : noWrapVideoCss;\n    const videoClassName = cx(\n      {\n        [phoneVideoCss]: wrap === Device.Phone,\n        [wrappedVideo2Css]: isDevice,\n        [macSafariCss]: wrap === Device.Phone && applyMacSafariStyles,\n        [noWrapVideo2Css]: !isDevice,\n        [shadowContainerCss]: wrap === Device.Shadow,\n      },\n      className\n    );\n\n    unwrapped = (\n      <Video\n        key={videoSource}\n        source={videoSource}\n        mobileSource={mobileVideoSource}\n        sourceType={sourceType}\n        altText={altText}\n        className={cx(MotifComponent.MEDIA, videoClassName)}\n        style={sizeStyles}\n        autoPlay={autoplay}\n        playsInline={!showVideoControls}\n        loop={!showVideoControls}\n        muted={!showVideoControls}\n        controls={showVideoControls}\n        posterSource={posterSource}\n        onPlay={onPlay}\n        captionsSource={captionsSource}\n        onTimeUpdate={onTimeUpdate}\n        isBackgroundVideo={isBackgroundVideo}\n        dataset={dataset}\n        ref={combineRefs(mediaRef, ref)}\n      />\n    );\n\n    if (applyMacSafariStyles) {\n      unwrapped = (\n        <div data-testid=\"sdsm-media-safari-wrapper\" className={divStyleCss}>\n          {unwrapped}\n        </div>\n      );\n    }\n  } else {\n    // early escape in case there is no media\n    return null;\n  }\n\n  if (wrap === Device.Laptop) {\n    return (\n      <LaptopWrapper className={mediaWrapperClassName} maxHeight={maxHeight}>\n        {unwrapped}\n      </LaptopWrapper>\n    );\n  }\n\n  if (wrap === Device.Phone) {\n    return (\n      <PhoneWrapper className={mediaWrapperClassName} maxHeight={maxHeight}>\n        {unwrapped}\n      </PhoneWrapper>\n    );\n  }\n\n  return (\n    // TODO: Delete this nonsense div. It serves no purpose.\n    <div className={cx(mediaWrapperClassName)} data-testid=\"no-device-wrapper\">\n      {unwrapped}\n    </div>\n  );\n});\n\nMedia.displayName = 'Media';\n", "export const combineRefs = <T extends HTMLElement>(\n  innerRef: React.MutableRefObject<T | null>,\n  fwdRef: React.ForwardedRef<T>\n) => {\n  // TODO no idea what the return type is for this.\n  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n  return (element: T | null) => {\n    [innerRef, fwdRef].forEach(ref => {\n      if (ref) {\n        if (typeof ref === 'function') {\n          ref(element);\n        } else {\n          ref.current = element;\n        }\n      }\n    });\n  };\n};\n", "/**\n * Utility function that checks if a video element is playing. Logic grabbed from this thread:\n * https://stackoverflow.com/questions/6877403/how-to-tell-if-a-video-element-is-currently-playing/6877530#6877530\n */\nexport const isVideoPlaying = (video?: HTMLVideoElement): boolean => {\n  if (!video) {\n    return false;\n  }\n\n  return !!(video.currentTime > 0 && !video.paused && !video.ended && video.readyState > 2);\n};\n", "import { cx } from '@emotion/css';\nimport type { ReactEventHandler } from 'react';\nimport { forwardRef, useContext, useEffect, useRef } from 'react';\n\nimport { BrowserFeaturesContext } from '../../BrowserFeatures';\nimport type { BaseComponentProps } from '../../types';\nimport { dataSetToAttributes } from '../../utils';\nimport { combineRefs } from '../../utils/useCombinesRefs';\nimport { TabsContext } from '../Tabs/TabsContext';\nimport { getObjectFit, videoCss } from './styles';\nimport { isVideoPlaying } from './utils';\n\nexport interface VideoProps extends BaseComponentProps {\n  source: string;\n  mobileSource?: string;\n  sourceType?: string;\n  mobileSourceType?: string;\n  posterSource?: string;\n  altText?: string;\n  muted?: boolean;\n  autoPlay?: boolean;\n  loop?: boolean;\n  controls?: boolean;\n  playsInline?: boolean;\n  onPlay?: ReactEventHandler<HTMLVideoElement>;\n  captionsSource?: string;\n  isBackgroundVideo?: boolean;\n  onTimeUpdate?: ReactEventHandler<HTMLVideoElement>;\n}\n\nexport const Video = forwardRef<HTMLElement, VideoProps>((props, ref) => {\n  const {\n    source,\n    mobileSource,\n    sourceType = 'video/mp4',\n    mobileSourceType = 'video/mp4',\n    posterSource,\n    altText,\n    className,\n    style,\n    muted = true,\n    autoPlay = true,\n    loop = true,\n    controls = false,\n    playsInline = true,\n    onPlay,\n    captionsSource,\n    isBackgroundVideo,\n    onTimeUpdate,\n    dataset,\n  } = props;\n\n  const videoRef = useRef<HTMLVideoElement>(null);\n  const { getLowEntropyHints } = useContext(BrowserFeaturesContext);\n  const clientHints = getLowEntropyHints();\n\n  useEffect(() => {\n    const currentTrack = videoRef.current?.querySelector('track');\n\n    if (videoRef.current && captionsSource && !currentTrack) {\n      const track = document.createElement('track');\n      track.setAttribute('src', captionsSource);\n      track.setAttribute('kind', 'captions');\n      track.setAttribute('srclang', 'en');\n      track.setAttribute('label', 'English');\n      videoRef.current.appendChild(track);\n    }\n  }, [captionsSource]);\n\n  // Workaround for when videos don't autoplay even though they should. Mobile Chrome has issues with\n  // loading more than ~4 autoplaying videos on the same page. This shouldn't happen, so we should\n  // still address it. Tech debt ticket: https://jira.sc-corp.net/browse/ENTWEB-9038\n  useEffect(() => {\n    function forceAutoplay() {\n      if (!videoRef.current) return;\n\n      const videoEl = videoRef.current;\n      const isPlaying =\n        videoEl.currentTime > 0 &&\n        !videoEl.paused &&\n        !videoEl.ended &&\n        videoEl.readyState > videoEl.HAVE_CURRENT_DATA;\n\n      if (autoPlay && muted && !controls && !isPlaying) {\n        videoEl\n          .play()\n          .then(() => {}) // For some reason `await` doesn't work\n          .catch(console.debug); // It's probably because the browser is objecting to play() without user interaction - but it still works\n      }\n    }\n\n    forceAutoplay();\n  }, [autoPlay, controls, muted]);\n\n  const { addOnTabChangeListener, removeOnTabChangeListener } = useContext(TabsContext);\n\n  // Handle when tabs have changed to pause videos\n  useEffect(() => {\n    // only pause videos that have sound / autoplay\n    if (!videoRef.current || muted || autoPlay) {\n      return;\n    }\n\n    const onTabChange = () => {\n      if (isVideoPlaying(videoRef.current || undefined)) {\n        videoRef.current?.pause();\n      }\n    };\n    addOnTabChangeListener?.(onTabChange);\n    return () => removeOnTabChangeListener?.(onTabChange);\n  }, [addOnTabChangeListener, removeOnTabChangeListener, videoRef, muted, autoPlay]);\n\n  const objectFitStyle = getObjectFit(isBackgroundVideo);\n\n  // Preload determines how much of the video to load.\n  // 'none' - don't load anything\n  // 'auto' - load the whole video\n  // 'metadata' - load only the necessary metadata to display the video (thumbnail, video duration)\n  const preload = posterSource ? 'none' : autoPlay ? 'auto' : 'metadata';\n  const isSafari = clientHints.browsers.find(browser => browser.brand === 'Safari');\n\n  // This is a workaround for Safari not loading the first frame to use as the thumbnail image.\n  // This sets the video starting position to 0.01 seconds into the video, which forces a frame to load\n  // See: https://stackoverflow.com/questions/56428378/no-way-to-preload-first-video-frame-on-ios-safari\n  const videoSource = isSafari && preload === 'metadata' ? `${source}#t=0.01` : source;\n  const mobileVideoSource =\n    mobileSource && isSafari && preload === 'metadata' ? `${mobileSource}#t=0.01` : mobileSource;\n\n  return (\n    <video\n      className={cx('video', videoCss, objectFitStyle, className)}\n      style={style}\n      poster={posterSource}\n      autoPlay={autoPlay}\n      loop={loop}\n      muted={muted}\n      controls={controls}\n      playsInline={playsInline}\n      onPlay={onPlay}\n      preload={preload}\n      // See: https://www.w3.org/WAI/PF/HTML/wiki/Media_Alt_Technologies\n      aria-describedby={altText}\n      ref={combineRefs(videoRef, ref)}\n      // See: https://stackoverflow.com/questions/55645393/issue-with-loading-vtt-from-cross-domain\n      crossOrigin=\"anonymous\"\n      key={source}\n      onTimeUpdate={onTimeUpdate}\n      {...dataSetToAttributes(dataset)}\n    >\n      {mobileVideoSource && (\n        <source src={mobileSource} type={mobileSourceType} media=\"(max-width: 768px)\" />\n      )}\n      <source src={videoSource} type={sourceType} />\n    </video>\n  );\n});\n\nVideo.displayName = 'Video';\n", "import { createContext } from 'react';\n\ninterface TabsContextProps {\n  addOnTabChangeListener?: (listener: () => void) => void;\n  removeOnTabChangeListener?: (listener: () => void) => void;\n}\n\nexport const TabsContext = createContext<TabsContextProps>({});\n", "import { css } from '@emotion/css';\n\nexport const videoCss = css`\n  width: 100%;\n  height: 100%;\n  display: block;\n`;\n\nconst objectFitCoverCss = css`\n  object-fit: cover;\n`;\n\nconst objectFitContainCss = css`\n  object-fit: contain;\n`;\n\nexport const getObjectFit = (isBackgroundVideo?: boolean): string => {\n  return isBackgroundVideo ? objectFitCoverCss : objectFitContainCss;\n};\n", "import { css, cx } from '@emotion/css';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport type { WrapperProps } from './types';\n\nexport const LaptopWrapper: FC<PropsWithChildren<WrapperProps>> = ({\n  children,\n  className,\n  maxHeight,\n}) => {\n  const styleCss = css`\n    ${maxHeight ? `max-height: ${maxHeight}px;` : ''}\n    width: 100%;\n    & > svg {\n      /* Scaling the SVG */\n      width: 100%;\n    }\n  `;\n\n  return (\n    <div className={cx(styleCss, className)}>\n      <svg\n        viewBox=\"0 0 654 366\"\n        width=\"654\"\n        height=\"366\"\n        fill=\"none\"\n        xmlns=\"http://www.w3.org/2000/svg\"\n        data-testid=\"laptop-wrapper\"\n      >\n        <g filter=\"url(#J)\" fillRule=\"evenodd\">\n          <path\n            d=\"M95.626 1.127L104.459 1h444.227l8.834.127c9.637.157 17.141 7.735 \n          17.096 17.253.045-.115.285 5.943.285 8.833v292.992c0 1.781-.092 4.779-.172 \n          6.782-.05 1.237-.152 3.513-.238 4.224-1.023 8.479-8.201 14.964-16.971 \n          14.923.086.045-5.974.285-8.834.285H104.459c-2.861 0-8.92-.24-8.833-.285\n          -8.359.039-15.272-5.851-16.788-13.745-.208-1.083-.314-2.203-.309-3.351\n          -.045.114-.285-5.944-.285-8.833V27.214c0-2.876.24-8.948.285-8.833-.045-9.518 \n          7.591-17.299 17.097-17.253z\"\n            fill=\"#303030\"\n          />\n        </g>\n        <g filter=\"url(#L)\" fillRule=\"evenodd\">\n          <path\n            d=\"M572.337 27.499l-.285-8.833c.045-7.935-6.31-14.449-14.247-14.404\n          -1.411-.051-6.09-.127-8.834-.127H104.459c-2.752 0-6.258.083-8.833.127\n          -7.937-.045-14.292 6.469-14.247 14.404-.057.246-.285 6.117-.285 8.833V322.12c0 \n          .889.037 2.314.088 3.582.059 1.457.223 3.895.304 4.478.768 5.534 5.499 9.421 \n          11.29 9.321-.039.112 4.331.285 6.269.285h454.77c2.043 0 6.421-.173 6.554-.285 \n          6.229.11 11.335-4.713 11.398-11.112-.06.036.112-4.348 0-6.269l.57-294.621z\"\n            fill=\"#272727\"\n          />\n        </g>\n        <g fillRule=\"evenodd\">\n          <path\n            d=\"M574.988 216.885v103.069l-.144 6.217-.393 5.834c-1.491 7.885-8.427 \n          13.848-16.758 13.848l-8.884.24H104.133c-2.82 0-8.879-.24-8.879-.24-8.499 0\n          -15.286-6.207-16.53-14.328-.135-.879-.445-9.574-.445-11.552v-103.05l496.709\n          -.038z\"\n            fill=\"url(#O)\"\n            fillOpacity=\".03\"\n          />\n          <path\n            d=\"M93.346 24.365h466.453c.355 0 .57.215.57.569v291.203a.52.52 0 0 1\n          -.57.569H93.346a.52.52 0 0 1-.57-.569V24.934c0-.355.215-.569.57-.569z\"\n            fill=\"#111112\"\n          />\n          <path\n            d=\"M272.029 350.802H100.508l-37.081-.284c-33.91.284-43.031-3.773-43.026\n          -4.748v-1.425h252.054l107.667.096h252.054v1.424c.004.976-9.117 5.033-43.027 \n          4.749-.622.019-37.081.284-37.081.284H380.546l-108.517-.096z\"\n            fill=\"#1c1b1b\"\n          />\n        </g>\n        <path\n          d=\"M21.255 336.082H631.32c.532 0 .855.313.855.57v9.118c0 .256-.323.57\n        -.855.57H21.255c-.532 0-.855-.314-.855-.57v-9.118c0-.257.322-.57.855-.57z\"\n          fill=\"#1d1c1c\"\n          fillRule=\"evenodd\"\n        />\n        <foreignObject\n          x=\"92\"\n          y=\"24\"\n          width=\"468\"\n          height=\"293\"\n          requiredFeatures=\"http://www.w3.org/TR/SVG11/feature#Extensibility\"\n        >\n          {children}\n        </foreignObject>\n        <defs>\n          <filter\n            id=\"J\"\n            x=\"77.244\"\n            y=\"0\"\n            width=\"498.657\"\n            height=\"347.42\"\n            filterUnits=\"userSpaceOnUse\"\n            colorInterpolationFilters=\"sRGB\"\n          >\n            <feGaussianBlur stdDeviation=\".5\" />\n            <feBlend in=\"SourceGraphic\" result=\"C\" />\n            <feColorMatrix\n              in=\"SourceAlpha\"\n              values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n              result=\"D\"\n            />\n            <feGaussianBlur stdDeviation=\"1.5\" />\n            <feComposite in2=\"D\" operator=\"arithmetic\" k2=\"-1\" k3=\"1\" />\n            <feBlend in2=\"C\" />\n          </filter>\n          <filter\n            id=\"L\"\n            x=\"79.093\"\n            y=\"2.134\"\n            width=\"495.243\"\n            height=\"339.652\"\n            filterUnits=\"userSpaceOnUse\"\n            colorInterpolationFilters=\"sRGB\"\n          >\n            <feBlend in=\"SourceGraphic\" result=\"C\" />\n            <feColorMatrix\n              in=\"SourceAlpha\"\n              values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n              result=\"D\"\n            />\n            <feGaussianBlur stdDeviation=\"2\" />\n            <feComposite in2=\"D\" operator=\"arithmetic\" k2=\"-1\" k3=\"1\" />\n            <feBlend in2=\"C\" result=\"E\" />\n            <feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0\" />\n            <feBlend in2=\"E\" />\n          </filter>\n          <linearGradient\n            id=\"O\"\n            x1=\"111.017\"\n            y1=\"227.897\"\n            x2=\"111.017\"\n            y2=\"340.072\"\n            gradientUnits=\"userSpaceOnUse\"\n          >\n            <stop stopOpacity=\".01\" />\n            <stop offset=\"1\" />\n          </linearGradient>\n        </defs>\n      </svg>\n    </div>\n  );\n};\n\nLaptopWrapper.displayName = 'LaptopWrapper';\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, smallMobileMediaQuery } from '../../constants';\nimport { m } from '../../motif';\n\n// TODO(jm) -- these are styles, not classnames...\nconst baseImageCss = css`\n  display: block;\n  object-fit: cover;\n`;\n\nexport const noWrapImageCss = css`\n  ${baseImageCss}\n  border-width: ${m('--media-border-width')};\n  border-radius: ${m('--media-border-radius')};\n  border-color: ${m('--media-border-color')};\n  border-style: solid;\n  height: auto;\n  margin: auto;\n  max-width: 100%;\n  overflow: hidden;\n  width: auto;\n`;\n\nexport const wrappedImageCss = css`\n  ${baseImageCss}\n  height: 100%;\n  width: 100%;\n`;\n\nexport const wrappedVideoCss = css`\n  ${wrappedImageCss}\n  object-fit: contain;\n`;\n\nexport const noWrapVideoCss = css`\n  ${noWrapImageCss}\n  object-fit: contain;\n`;\n\nexport const wrappedBackgroundVideoCss = wrappedImageCss;\n\nexport const noWrapBackgroundVideoCss = noWrapImageCss;\n\nexport const phoneVideoCss = css`\n  ${mobileMediaQuery} {\n    margin-top: 0;\n  }\n  ${smallMobileMediaQuery} {\n    margin-top: 0;\n  }\n`;\n\nexport const divStyleCss = css`\n  position: fixed;\n`;\n\nexport const macSafariCss = css`\n  width: 297px;\n  height: 550px;\n`;\n\nexport const phoneContainerCss = css`\n  border-radius: ${m('--media-border-radius')};\n`;\n\nexport const shadowContainerCss = css`\n  box-shadow: ${m('--box-shadow-xl')};\n  border-radius: ${m('--media-border-radius')};\n`;\n", "import { css, cx } from '@emotion/css';\nimport type { FC, PropsWithChildren } from 'react';\ninterface Props {\n  maxHeight?: number;\n  className?: string;\n}\n\nexport const phoneWrapperCss = css`\n  display: flex;\n  justify-content: center;\n`;\n\nexport const phoneWrapperBgCss = css`\n  background-image: url('https://images.ctfassets.net/kp51zybwznx4/5MBQ096OLy837zpHXtGsIa/0b35a1eadad459a767f935297483854c/iPhone.png');\n  width: 250px;\n  height: 530px;\n  background-size: 100%;\n  background-repeat: no-repeat;\n  position: relative;\n  margin-bottom: 20px;\n  padding: 14px;\n`;\n\nexport const PhoneWrapper: FC<PropsWithChildren<Props>> = ({ children }) => (\n  <div className={cx('phone-wrapper', phoneWrapperCss)} data-testid=\"phone-wrapper\">\n    <div className={phoneWrapperBgCss}>{children}</div>\n  </div>\n);\n\nPhoneWrapper.displayName = 'PhoneWrapper';\n", "import { cx } from '@emotion/css';\nimport { useBrowserLayoutEffect } from '@snapchat/mw-common/client';\nimport type { FC } from 'react';\nimport { useCallback, useRef, useState } from 'react';\n\nimport { DetailsSummary as DetailsSummarySDS } from '../../DetailsSummary';\nimport { ProgressIndicator } from './ProgressIndicator';\nimport {\n  accordionItemCss,\n  accordionItemDetailContentActiveCss,\n  accordionItemDetailContentCss,\n  accordionItemDetailCss,\n  accordionItemSummaryCss,\n} from './styles';\nimport type { AccordionItemProps } from './types';\n\nconst animationOptions = {\n  duration: 400, // ms\n  easing: 'ease-out',\n};\n\nexport const AccordionItem: FC<AccordionItemProps> = ({\n  isOpen,\n  isPaused,\n  progressIndicatorDurationMs,\n  title,\n  body,\n  onToggle,\n  onMouseOver,\n  onMouseLeave,\n  onAnimationComplete,\n}) => {\n  const detailsRef = useRef<HTMLDetailsElement>(null);\n  const summaryRef = useRef<HTMLElement>(null);\n\n  const animation = useRef<Animation | null>(null);\n  const [isClosing, setIsClosing] = useState(false);\n  const [isExpanding, setIsExpanding] = useState(false);\n\n  const shrink = useCallback(() => {\n    if (!detailsRef?.current || !summaryRef?.current) {\n      return;\n    }\n\n    setIsClosing(true);\n\n    detailsRef.current.style.overflow = 'hidden';\n\n    const startHeight = `${detailsRef.current.offsetHeight}px`;\n    const endHeight = `${summaryRef.current.offsetHeight}px`;\n\n    if (animation.current) {\n      animation.current.cancel();\n    }\n\n    animation.current = detailsRef.current.animate?.(\n      { height: [startHeight, endHeight] },\n      animationOptions\n    );\n\n    animation.current?.finished\n      ?.then(() => onAnimationFinish(false))\n      .catch(() => setIsClosing(false));\n  }, []);\n\n  const expand = useCallback(() => {\n    if (!detailsRef.current || !summaryRef.current) {\n      return;\n    }\n\n    setIsExpanding(true);\n\n    detailsRef.current.style.height = `${detailsRef.current.offsetHeight}px`;\n    detailsRef.current.style.overflow = 'hidden';\n    detailsRef.current.open = true;\n\n    const startHeight = `${detailsRef.current.offsetHeight}px`;\n    const endHeight = `${detailsRef.current.scrollHeight}px`;\n\n    if (animation.current) {\n      animation.current.cancel();\n    }\n\n    animation.current = detailsRef.current.animate?.(\n      { height: [startHeight, endHeight] },\n      animationOptions\n    );\n\n    animation.current?.finished\n      .then(() => onAnimationFinish(true))\n      .catch(() => setIsExpanding(false));\n  }, []);\n\n  const onAnimationFinish = (open: boolean) => {\n    if (!detailsRef.current) return;\n\n    detailsRef.current.open = open;\n    detailsRef.current.style.height = '';\n    detailsRef.current.style.overflow = '';\n    animation.current = null;\n    setIsExpanding(false);\n    setIsClosing(false);\n  };\n\n  // Sync intial state of DetailsSummarySDS component with 'isOpen' prop\n  useBrowserLayoutEffect(() => {\n    if (!detailsRef.current) {\n      return;\n    }\n\n    if (isOpen !== detailsRef.current.open) {\n      detailsRef.current.open = isOpen;\n    }\n  }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n  // Expand/shrink DetailsSummarySDS component when 'isOpen' prop changes\n  useBrowserLayoutEffect(() => {\n    window.requestAnimationFrame(isOpen ? expand : shrink);\n  }, [isOpen, expand, shrink]);\n\n  return (\n    <div\n      className={accordionItemCss}\n      onMouseOver={onMouseOver}\n      onFocus={onMouseOver}\n      onMouseLeave={onMouseLeave}\n      onBlur={onMouseLeave}\n    >\n      <ProgressIndicator\n        durationMs={progressIndicatorDurationMs}\n        isActive={isOpen}\n        isPaused={isPaused}\n        onAnimationComplete={onAnimationComplete}\n      />\n      <DetailsSummarySDS\n        disableScrollToOnOpen\n        detailsRef={detailsRef}\n        summaryRef={summaryRef}\n        summary={title}\n        showChevron={false}\n        className={accordionItemDetailCss}\n        onToggle={onToggle}\n        summaryProps={{ className: accordionItemSummaryCss }}\n        transitionDurationMs={animationOptions.duration}\n        open={isOpen}\n      >\n        <div\n          className={cx(accordionItemDetailContentCss, {\n            [accordionItemDetailContentActiveCss]: isOpen || isExpanding || isClosing,\n          })}\n        >\n          {body}\n        </div>\n      </DetailsSummarySDS>\n    </div>\n  );\n};\n", "import type { FC } from 'react';\nimport { useEffect, useRef } from 'react';\n\nimport { progressIndicatorBarCss, progressIndicatorCss } from './styles';\nimport type { ProgressIndicatorProps } from './types';\n\nexport const ProgressIndicator: FC<ProgressIndicatorProps> = ({\n  durationMs,\n  isActive,\n  isPaused,\n  onAnimationComplete,\n}) => {\n  const barRef = useRef<HTMLDivElement>(null);\n  const animation = useRef<Animation>();\n\n  // biome-ignore lint/correctness/useExhaustiveDependencies: This effect does not need to run when the component updates\n  useEffect(() => {\n    if (!barRef.current) {\n      return;\n    }\n\n    animation.current = barRef.current.animate(\n      [{ transform: 'scaleY(0)' }, { transform: 'scaleY(1)' }],\n      {\n        duration: durationMs,\n        iterations: 1,\n        fill: 'forwards',\n      }\n    );\n\n    animation.current.pause();\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  useEffect(() => {\n    if (!animation.current) return;\n\n    if (isActive) {\n      if (isPaused) {\n        animation.current.pause();\n      } else {\n        animation.current.play();\n\n        // Re-apply \"onfinish\" handler for each play request to ensure it\n        // fires, and with the correct \"onAnimationComplete\" reference\n        animation.current.onfinish = () => onAnimationComplete?.();\n      }\n    } else {\n      animation.current.pause();\n      animation.current.currentTime = 0;\n    }\n  }, [isPaused, isActive, onAnimationComplete]);\n\n  return (\n    <div className={progressIndicatorCss}>\n      <div ref={barRef} className={progressIndicatorBarCss} />\n    </div>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { Gray, maxWidth, Spacing } from '../../../constants';\nimport { m } from '../../../motif';\nimport { mediaQueryForRange } from '../../../utils';\n\nconst extraLargeDesktopMediaQuery = mediaQueryForRange({ min: maxWidth });\n\nexport const layoutCss = css`\n  align-items: center;\n  display: flex;\n  gap: ${Spacing['3XL']}px;\n  margin: 0 auto;\n  max-width: ${maxWidth}px;\n  padding: 0 ${Spacing['3XL']}px ${Spacing['4XL']}px;\n  width: 100%;\n`;\n\nexport const layoutReverseCss = css`\n  flex-direction: row-reverse;\n`;\n\nexport const accordionContainerCss = css`\n  max-width: 50%;\n  width: 50%;\n\n  ${extraLargeDesktopMediaQuery} {\n    flex: 1;\n    max-width: none;\n    width: auto;\n  }\n`;\n\nexport const imagesContainerCss = css`\n  max-width: 50%;\n  width: 50%;\n\n  ${extraLargeDesktopMediaQuery} {\n    /* This width value is specified in the designs. The accordion will fill the remaining horizontal space. */\n    max-width: 416px;\n    min-width: 416px;\n    width: 416px;\n  }\n`;\n\nexport const accordionItemCss = css`\n  margin-bottom: ${Spacing.XL}px;\n  padding-inline-start: ${Spacing.MD}px;\n  position: relative;\n\n  &:last-child {\n    margin-bottom: 0;\n  }\n`;\n\nexport const accordionItemDetailCss = css`\n  scroll-margin: 40px;\n  overflow-y: hidden;\n  overflow-x: auto;\n`;\n\nexport const accordionItemDetailContentCss = css`\n  font-size: 16px;\n  letter-spacing: 0.01em;\n  line-height: 26px;\n\n  /* Restrict height of content when not active to prevent initial flash\n     of items appearing open without visibility due to functionality of\n     the underlying 'DetailSummary' component from SDS-M.\n  */\n  max-height: 0;\n`;\n\nexport const accordionItemDetailContentActiveCss = css`\n  max-height: none;\n  padding-top: ${Spacing.MD}px;\n`;\n\nexport const accordionItemSummaryCss = css`\n  align-items: center;\n  cursor: pointer;\n  display: flex;\n  font-size: 18px;\n  font-weight: 500;\n  justify-content: space-between;\n  line-height: 28px;\n  margin: 0;\n  user-select: none;\n`;\n\nexport const progressIndicatorCss = css`\n  background: ${Gray.V300}80; /* 80 = 50% opacity using #RRGGBBAA */\n  border-radius: 4px;\n  height: 100%;\n  inset-block-start: 0;\n  inset-inline-start: 0;\n  overflow: hidden;\n  position: absolute;\n  width: 4px;\n`;\n\nexport const progressIndicatorBarCss = css`\n  background: ${m('--foreground-color')};\n  width: 100%;\n  height: 100%;\n  transform-origin: center top;\n  transform: scaleY(0);\n`;\n\nexport const imageAspectRatioWrapperCss = css`\n  padding-top: 100%;\n  position: relative;\n  width: 100%;\n`;\n\nexport const imageCss = css`\n  height: 100%;\n  left: 50%;\n  object-fit: contain;\n  opacity: 0;\n  position: absolute;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  transition: opacity 0.2s linear;\n  width: 100%;\n`;\n\nexport const imageActiveCss = css`\n  opacity: 1;\n`;\n", "import { cx } from '@emotion/css';\nimport { type FC, useEffect, useRef, useState } from 'react';\n\nimport { Alignment } from '../../../constants';\nimport { Media } from '../../Media';\nimport { AnimatedAccordionControls } from './AnimatedAccordionControls';\nimport {\n  accordionItemAlignCenterCss,\n  accordionItemAlignEndCss,\n  accordionItemAlignStartCss,\n  accordionItemContainerCss,\n  contentBodyCss,\n  contentContainerCss,\n  contentTitleCss,\n  fadeInAnimationCss,\n  hiddenAccordionItemCss,\n  imageCss,\n  mediaContainerCss,\n  minHeightVariable,\n} from './styles';\nimport type { AnimatedAccordionMobileProps } from './types';\n\nexport const AnimatedAccordionMobile: FC<AnimatedAccordionMobileProps> = props => {\n  const { items, textAlignment = 'Start' } = props;\n  const allowAnimation = items.length > 1;\n  const itemsRefs = useRef<HTMLDivElement[]>([]);\n\n  const [activeItem, setActiveItem] = useState<number>(-1);\n  const [isPaused, setIsPaused] = useState<boolean>(true);\n  const [touchStartX, setTouchStartX] = useState<number | null>(0);\n  const [isSwipping, setIsSwipping] = useState<boolean>(false);\n  const [swipeOffset, setSwipeOffset] = useState<number>(0);\n  const [maxHeight, setMaxHeight] = useState<number>(0);\n  const isMaxHeightSet = maxHeight > 0;\n\n  // Animation handling\n  const handleOnAnimationComplete = () => {\n    setActiveItem(prevActiveItem => {\n      if (prevActiveItem >= items.length - 1) {\n        return 0;\n      }\n\n      return prevActiveItem + 1;\n    });\n  };\n\n  useEffect(() => {\n    if (allowAnimation) {\n      setIsPaused(false);\n    }\n\n    setActiveItem(0);\n  }, [allowAnimation]);\n\n  // Item swipe handling; users can move back and forward through accordion items\n  const handleTouchStart = (event: React.TouchEvent<HTMLDivElement>) => {\n    setTouchStartX(event.touches[0]?.clientX as number);\n    setIsSwipping(true);\n  };\n\n  const handleTouchMove = (event: React.TouchEvent<HTMLDivElement>) => {\n    if (touchStartX === null || !isSwipping) return;\n\n    const touchEndx = event.touches[0]?.clientX as number;\n    const deltaX = touchEndx - touchStartX;\n\n    setSwipeOffset(deltaX);\n  };\n\n  const handleTouchEnd = () => {\n    if (touchStartX === null) return;\n\n    const threshold = 50;\n\n    if (Math.abs(swipeOffset) > threshold) {\n      if (swipeOffset > 0) {\n        previousAccordionItem();\n      } else {\n        nextAccordionItem();\n      }\n    }\n\n    setIsSwipping(false);\n    setSwipeOffset(0);\n    setTouchStartX(null);\n  };\n\n  const nextAccordionItem = () => {\n    setActiveItem(prevActiveItem => (prevActiveItem + 1) % items.length);\n  };\n\n  const previousAccordionItem = () => {\n    setActiveItem(prevActiveItem => (prevActiveItem === 0 ? items.length - 1 : prevActiveItem - 1));\n  };\n\n  // Item's height handling; all accordion items must have the same height to prevent layout shifts due to content length differences\n  useEffect(() => {\n    if (!isMaxHeightSet && allowAnimation) {\n      const heights = itemsRefs.current.map(item => item.clientHeight);\n      setMaxHeight(Math.max(...heights));\n    }\n  }, [allowAnimation, isMaxHeightSet, maxHeight]);\n\n  // Set the tallest item height as a CSS variable to allow for a dynamic height property\n  const maxHeightVariableStyles = {\n    [minHeightVariable]: `${maxHeight}px`,\n  } as React.CSSProperties;\n\n  return (\n    <div\n      onTouchStart={handleTouchStart}\n      onTouchMove={handleTouchMove}\n      onTouchEnd={handleTouchEnd}\n      style={maxHeightVariableStyles}\n    >\n      {items?.map((item, itemIndex) => (\n        <div\n          key={itemIndex}\n          className={cx(accordionItemContainerCss, {\n            [accordionItemAlignStartCss]: textAlignment === Alignment.Start,\n            [accordionItemAlignCenterCss]: textAlignment === Alignment.Center,\n            [accordionItemAlignEndCss]: textAlignment === Alignment.End,\n            [hiddenAccordionItemCss]: allowAnimation && itemIndex !== activeItem && isMaxHeightSet,\n          })}\n          ref={element => {\n            itemsRefs.current[itemIndex] = element as HTMLDivElement;\n          }}\n          // Allow play/pause animation by clicking anywhere besides the play button\n          onClick={() => setIsPaused(!isPaused)}\n        >\n          <div className={cx(mediaContainerCss, fadeInAnimationCss)}>\n            <Media className={imageCss} imgSrcs={item.imgSrcs} altText={item.imageAltText} />\n          </div>\n          {allowAnimation && (\n            <AnimatedAccordionControls\n              currentItemIndex={itemIndex}\n              isActive={itemIndex === activeItem && swipeOffset === 0}\n              isPaused={isPaused}\n              itemsCount={items.length}\n              onPause={() => setIsPaused(!isPaused)}\n              onAnimationComplete={handleOnAnimationComplete}\n            />\n          )}\n          <div className={cx(contentContainerCss, fadeInAnimationCss)}>\n            <h6 className={contentTitleCss}>{item.title}</h6>\n            <section className={contentBodyCss}>{item.body}</section>\n          </div>\n        </div>\n      ))}\n    </div>\n  );\n};\n", "import type { FC } from 'react';\nimport { useEffect, useRef } from 'react';\n\nimport { progressIndicatorBarCss, progressIndicatorCss, progressIndicatorWidth } from './styles';\nimport type { ProgressIndicatorMobileProps } from './types';\n\nexport const ProgressIndicatorMobile: FC<ProgressIndicatorMobileProps> = ({\n  durationMs,\n  isActive,\n  isPaused,\n  onAnimationComplete,\n}) => {\n  const barRef = useRef<HTMLDivElement>(null);\n  const animation = useRef<Animation>();\n\n  // biome-ignore lint/correctness/useExhaustiveDependencies: This effect does not need to run when the component updates\n  useEffect(() => {\n    if (!barRef.current) {\n      return;\n    }\n\n    animation.current = barRef.current.animate(\n      [{ translate: `-${progressIndicatorWidth}` }, { translate: '0' }],\n      {\n        duration: durationMs,\n        iterations: 1,\n        fill: 'forwards',\n      }\n    );\n\n    animation.current.pause();\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  useEffect(() => {\n    if (!animation.current) return;\n\n    if (isActive) {\n      if (isPaused) {\n        animation.current.pause();\n      } else {\n        animation.current.play();\n\n        // Re-apply \"onfinish\" handler for each play request to ensure it\n        // fires, and with the correct \"onAnimationComplete\" reference\n        animation.current.onfinish = () => onAnimationComplete?.();\n      }\n    } else {\n      animation.current.pause();\n      animation.current.currentTime = 0;\n    }\n  }, [isPaused, isActive, onAnimationComplete]);\n\n  return (\n    <div className={progressIndicatorCss}>\n      <div ref={barRef} className={progressIndicatorBarCss} />\n    </div>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { Gray } from '../../../constants';\nimport { m } from '../../../motif';\n\nexport const minHeightVariable = '--item-min-height';\nexport const progressIndicatorWidth = '32px'; // Value set by design\n\nexport const accordionItemAlignStartCss = css`\n  text-align: start;\n`;\n\nexport const accordionItemAlignCenterCss = css`\n  text-align: center;\n`;\n\nexport const accordionItemAlignEndCss = css`\n  text-align: end;\n`;\n\nexport const hiddenAccordionItemCss = css`\n  display: none;\n`;\n\nexport const fadeInAnimationCss = css`\n  animation: fade-in 1s;\n\n  @keyframes fade-in {\n    from {\n      opacity: 0.4;\n    }\n    to {\n      opacity: 1;\n    }\n  }\n`;\n\nexport const accordionItemContainerCss = css`\n  align-items: flex-start;\n  display: flex;\n  flex-direction: column;\n  gap: ${m('--spacing-l')};\n  margin-block: ${m('--spacing-m')};\n  min-height: var(${minHeightVariable});\n\n  &.dragging {\n    a {\n      pointer-events: none;\n    }\n  }\n`;\n\nexport const mediaContainerCss = css`\n  aspect-ratio: 3/2;\n  position: relative;\n  width: 100%;\n`;\n\nexport const imageCss = css`\n  height: 100%;\n  left: 50%;\n  object-fit: contain;\n  position: absolute;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  transition: opacity 0.2s linear;\n  width: 100%;\n`;\n\nexport const accordionControlsContainerCss = css`\n  align-self: stretch;\n  display: flex;\n  flex-direction: row;\n  gap: ${m('--spacing-xs')};\n  justify-content: center;\n  overflow: hidden;\n`;\n\nexport const navDotsContainerCss = css`\n  align-items: center;\n  display: flex;\n  justify-content: center;\n`;\n\nexport const progressIndicatorContainerCss = css`\n  align-items: center;\n  align-self: stretch;\n  display: flex;\n  flex-direction: column;\n  gap: ${m('--spacing-xs')};\n  justify-content: center;\n  padding: 0 ${m('--spacing-s')};\n`;\n\nexport const progressIndicatorCss = css`\n  background: ${Gray.V250};\n  border-radius: ${m('--spacing-xxs')};\n  height: ${m('--spacing-xs')};\n  inset-block-start: 0;\n  inset-inline-start: 0;\n  overflow: hidden;\n  width: ${progressIndicatorWidth};\n`;\n\nexport const progressIndicatorBarCss = css`\n  background: ${m('--foreground-color')};\n  border-radius: ${m('--spacing-xxs')};\n  height: 100%;\n  transform-origin: center left;\n  width: 100%;\n`;\n\nexport const dotContainerCss = css`\n  align-items: center;\n  display: flex;\n  gap: ${m('--spacing-xs')};\n  justify-content: center;\n  padding: ${m('--spacing-m')} ${m('--spacing-s')};\n`;\n\nexport const dotCss = css`\n  align-items: center;\n  background: ${Gray.V250};\n  border-radius: ${m('--spacing-xxs')};\n  display: flex;\n  height: ${m('--spacing-xs')};\n  justify-content: flex-end;\n  width: ${m('--spacing-xs')};\n`;\n\nexport const navButtonCss = css`\n  align-items: center;\n  background: ${Gray.V200};\n  border-radius: 80px;\n  cursor: pointer;\n  display: flex;\n  gap: ${m('--spacing-xs')};\n  height: ${m('--spacing-xxl')};\n  justify-content: center;\n  padding: ${m('--spacing-s')};\n  width: ${m('--spacing-xxl')};\n\n  &:hover {\n    background: ${Gray.V250};\n  }\n`;\n\nexport const contentContainerCss = css`\n  align-items: flex-start;\n  align-self: stretch;\n  display: flex;\n  flex-direction: column;\n  gap: ${m('--spacing-m')};\n`;\n\nexport const contentTitleCss = css`\n  align-self: stretch;\n\n  && {\n    font-size: ${m('--h6-mobile-font-size')};\n    font-weight: ${m('--h6-mobile-font-weight')};\n    line-height: 120%;\n    margin: 0;\n    padding: 0;\n  }\n`;\n\nexport const contentBodyCss = css`\n  align-self: stretch;\n  font-size: ${m('--p2-mobile-font-size')};\n  font-weight: ${m('--p2-mobile-font-weight')};\n  padding-bottom: auto;\n`;\n", "import { PauseIcon, PlayFilledIcon } from '@snapchat/snap-design-system-icons';\nimport type { FC } from 'react';\n\nimport { ProgressIndicatorMobile } from './ProgressIndicatorMobile';\nimport {\n  accordionControlsContainerCss,\n  dotContainerCss,\n  dotCss,\n  navButtonCss,\n  navDotsContainerCss,\n  progressIndicatorContainerCss,\n} from './styles';\nimport type { AnimatedAccordionControlsProps } from './types';\n\nexport const AnimatedAccordionControls: FC<AnimatedAccordionControlsProps> = props => {\n  const {\n    currentItemIndex,\n    durationMs = 7000, // Default duration is set by design (7 secs)\n    isActive,\n    isPaused,\n    itemsCount,\n    onAnimationComplete,\n    onPause,\n  } = props;\n\n  return (\n    <div className={accordionControlsContainerCss}>\n      <div className={navDotsContainerCss}>\n        {Array.from({ length: itemsCount }).map((_, index) => {\n          if (currentItemIndex === index) {\n            return (\n              <div key={index} className={progressIndicatorContainerCss}>\n                <ProgressIndicatorMobile\n                  durationMs={durationMs}\n                  isActive={isActive}\n                  isPaused={isPaused}\n                  onAnimationComplete={onAnimationComplete}\n                />\n              </div>\n            );\n          }\n\n          return (\n            <div key={index} className={dotContainerCss}>\n              <div className={dotCss} />\n            </div>\n          );\n        })}\n      </div>\n      <button className={navButtonCss} onClick={() => onPause()}>\n        {isPaused ? <PlayFilledIcon /> : <PauseIcon />}\n      </button>\n    </div>\n  );\n};\n", "import type { FC } from 'react';\n\nimport { Alignment, MediaMode } from '../../constants';\nimport { useMediaMode } from '../../hooks';\nimport { Accordion } from './/Accordion/Accordion';\nimport type { AnimatedAccordionItem } from './AnimatedAccordionCarousel/types';\nimport { AnimatedAccordionMobile } from './AnimatedAccordionMobile/AnimatedAccordionMobile';\n\n/** Props for the AnimatedAccordion component. */\ninterface AnimatedAccordionProps {\n  /** The items to be displayed in the accordion. */\n  items?: AnimatedAccordionItem[];\n\n  /** The direction of the media in the accordion. */\n  mediaDirection?: AnimatedAccordionMediaDirection;\n\n  /** The speed in seconds at which the accordion automatically plays. */\n  autoPlaySpeed?: number;\n\n  /** The alignment of the text on mobile. */\n  textAlignmentMobile?: Alignment;\n}\n\nexport enum AnimatedAccordionMediaDirection {\n  End = 'End',\n  Start = 'Start',\n}\n\nexport const AnimatedAccordion: FC<AnimatedAccordionProps> = props => {\n  const mode = useMediaMode();\n  const isMobile = mode === MediaMode.Mobile;\n\n  const {\n    mediaDirection = AnimatedAccordionMediaDirection.Start,\n    autoPlaySpeed = 10,\n    textAlignmentMobile = Alignment.Start,\n    items = [],\n  } = props;\n\n  if (isMobile) {\n    return <AnimatedAccordionMobile items={items} textAlignment={textAlignmentMobile} />;\n  }\n\n  return (\n    <Accordion\n      items={items}\n      mediaDirection={mediaDirection}\n      autoPlaySpeedMs={autoPlaySpeed * 1000}\n    />\n  );\n};\n", "import { css } from '@emotion/css';\nimport type { RefObject } from 'react';\nimport { useEffect } from 'react';\n\nimport type { Animation } from './types';\n\nlet staticObserver: IntersectionObserver;\n\nconst getObserver = () => {\n  if (staticObserver) return staticObserver;\n\n  staticObserver = new IntersectionObserver(entries => {\n    entries.forEach(entry => {\n      const target = entry.target;\n\n      if (entry.isIntersecting && target instanceof HTMLElement) {\n        // Note: using a data-animation-delay attribute because window.computedStyles have SSR issues\n        const delayAttr = target.getAttribute('data-animation-delay');\n\n        let delay = 0;\n\n        if (delayAttr) {\n          delay = delayAttr.endsWith('ms')\n            ? Number.parseFloat(delayAttr)\n            : Number.parseFloat(delayAttr) * 1000;\n        }\n\n        setTimeout(() => {\n          // Note: removing the animationName style previously inserted\n          // to trigger the interception observer if the initial animation\n          // style has a transform and puts the element outside of the viewport\n          target.style.animationName = '';\n          target.style.animationPlayState = 'running';\n        }, delay);\n\n        staticObserver.unobserve(target);\n      }\n    });\n\n    return staticObserver;\n  });\n\n  return staticObserver;\n};\n\nconst getAnimationClassName = (animation: Animation) =>\n  css`\n    animation-play-state: paused;\n    animation-name: animation-${animation.name};\n    animation-duration: ${animation.duration};\n    animation-timing-function: ${animation.timingFunction};\n    animation-iteration-count: ${animation.iterationCount};\n    animation-direction: ${animation.direction};\n    transform-origin: ${animation.transformOrigin};\n  `;\n\nconst containerTargetKey = 'container';\n\n/**\n * Hook for animations using a static IntersectionObserver for starting the animation\n *\n * @param ref Reference to the main animatable container\n * @param animations Animations array\n * @param componentName Name of the component using this hook used as a prefix to avoid clashes\n * @returns Object with keys being the target of the animation and values being the className\n *   Example: { container: 'classname-1', cta: 'classname-2', title: 'classname-3' }\n *\n *   Usage:\n *\n *       const animationsClassNames = useAnimations(ref, animationsArray, 'content');\n */\nexport function useAnimations(\n  ref: RefObject<HTMLElement | undefined>,\n  animations: Animation[] | undefined,\n  componentName: string\n): Record<string, Record<string, string | undefined>> | undefined {\n  useEffect(() => {\n    if (!animations || animations.length === 0) {\n      return undefined;\n    }\n\n    const observer = getObserver();\n    const toObserve: Array<HTMLElement> = [];\n\n    animations.forEach(animation => {\n      const targetRef = animation.target\n        ? (ref.current?.querySelector(\n            `*[data-animation-id=\"${componentName}-${animation.target}\"]`\n          ) as HTMLElement)\n        : ref.current;\n\n      if (!targetRef) {\n        return;\n      }\n\n      // Note: adding animationName style with a global animation 'no-animation'\n      // with transform: none, to trigger the interception observer if the initial\n      // animation style has a transform and puts the element outside of the viewport\n      targetRef.style.animationName = `animation-${animation.name}, no-animation`;\n\n      observer.observe(targetRef);\n      toObserve.push(targetRef);\n    });\n\n    return () => {\n      toObserve.forEach(element => observer.unobserve(element));\n    };\n  }, [animations, ref, componentName]);\n\n  const animationsProps: Record<string, Record<string, string | undefined>> = {};\n\n  animations?.forEach(item => {\n    animationsProps[item.target ?? containerTargetKey] = {\n      className: getAnimationClassName(item),\n      delay: item.delay,\n    };\n  });\n\n  return animationsProps;\n}\n", "import { injectGlobal } from '@emotion/css';\n\nimport { globalCss } from '../../utils/globalCss';\nimport type { GlobalAnimation } from './types';\n\n/**\n * Hook to load global animations using injectGlobal from emotion\n *\n * @param animations Animations array\n * @returns Null\n *\n *   Usage:\n *\n *       useAnimations([{ name: 'fadeIn', keyframes: 'from { opacity: 0; } to { opacity: 1; }' }]);\n */\n\nexport function useGlobalAnimations(animations: GlobalAnimation[] | undefined): null {\n  if (!animations || animations.length === 0) {\n    return null;\n  }\n\n  const globalAnimationStyles = animations\n    .filter(item => item.keyframes)\n    .map(\n      item =>\n        `@keyframes animation-${item.name} {\n${item.keyframes}\n}`\n    )\n    .join('\\n');\n\n  // Note: adding a global animation 'no-animation' to trigger the interception\n  // observer if the initial animation style has a transform and puts the element\n  // outside of the viewport\n  injectGlobal(\n    globalCss`${globalAnimationStyles} @keyframes no-animation { from { transform: none; } to {} }`\n  );\n\n  return null;\n}\n", "import { css } from '@emotion/css';\n\nimport { Spacing } from '../../constants';\n\nexport const authorBylineContainerCss = css`\n  line-height: ${Spacing.XL}px;\n  margin: ${Spacing.XS}px 0;\n`;\n\nexport const authorBylineAuthorCss = css`\n  display: block;\n`;\n", "import type { FC, ReactNode } from 'react';\n\nimport { authorBylineContainerCss } from './styles';\n\nexport interface AuthorBylineProps {\n  author?: string | ReactNode;\n  date?: string | ReactNode;\n}\n\nexport const AuthorByline: FC<AuthorBylineProps> = ({ author, date }) => {\n  if (!author && !date) return null;\n\n  return (\n    <div className={authorBylineContainerCss}>\n      {author}\n      {author && date && <br />}\n      {date}\n    </div>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type React from 'react';\nimport type { ChangeEventHandler, ReactElement } from 'react';\nimport { useEffect, useRef, useState } from 'react';\n\nimport { Black, Gray } from '../../constants';\nimport { Icon } from '../Icon';\nimport { IconButton } from '../IconButton';\nimport { IconButtonSize } from '../IconButton/IconButton.types';\nimport {\n  autoCompleteContainerCss,\n  autocompleteListItemCss,\n  cancelButtonCss,\n  inputCss,\n  resultsContainerNoResultsCss,\n  resultsContainerWithResultsCss,\n  rowCss,\n  searchButtonCss,\n  searchIconCss,\n  seeResultsCss,\n} from './styles';\n\nconst selectedStyle = { background: `${Gray.V100}`, color: `${Black.V150}` };\n\ntype AutocompleteSuggestionProps<ResultType = string> = {\n  term: ResultType;\n  onClick: (term: ResultType) => void;\n  setSelectedIndex: (index: number) => void;\n  resultAccessor?: (item: ResultType) => string;\n  isActive: boolean;\n  index: number;\n  listItemStyles?: string;\n  loadingAutocompleteTerms?: boolean;\n  loadingMessage?: string;\n};\n\nexport function AutocompleteSuggestion<ResultType = string>({\n  term,\n  onClick,\n  setSelectedIndex,\n  isActive,\n  listItemStyles,\n  resultAccessor,\n  loadingAutocompleteTerms,\n  loadingMessage,\n}: AutocompleteSuggestionProps<ResultType>): ReactElement {\n  const ref = useRef<HTMLLIElement>(null);\n\n  useEffect(() => {\n    if (isActive) {\n      ref.current?.scrollIntoView({\n        behavior: 'smooth',\n        block: 'nearest',\n        inline: 'start',\n      });\n    }\n  }, [isActive]);\n\n  if (loadingAutocompleteTerms) {\n    return <li className={autocompleteListItemCss}>{loadingMessage ?? 'Loading...'}</li>;\n  }\n\n  return (\n    <li\n      className={cx(autocompleteListItemCss, listItemStyles)}\n      ref={ref}\n      style={isActive ? selectedStyle : {}}\n      key={typeof term === 'string' ? term : resultAccessor?.(term)}\n      onMouseLeave={() => setSelectedIndex(-1)}\n      onClick={e => {\n        e.stopPropagation();\n        onClick(term);\n      }}\n    >\n      {resultAccessor ? resultAccessor(term) : String(term)}\n    </li>\n  );\n}\n\ntype AutoCompleteProps<ResultType = string> = {\n  onSelect: (terms: ResultType) => void;\n  onChange: (term: string) => void;\n  onKeyDown?: (event: React.KeyboardEvent) => void;\n  onSeeResults?: (term: string) => void;\n  onCollapseChange?: (open: boolean) => void;\n  resultAccessor?: (item: ResultType) => string;\n  autocompleteResults: ResultType[];\n  loadingAutocompleteTerms: boolean;\n  placeholder: string;\n  cancelMessage?: string;\n  loadingMessage?: string;\n  seeResultsMessage?: string;\n  noResultsMessage?: string;\n  initialText?: string;\n  containerStyles?: string;\n  inputStyles?: string;\n  listItemStyles?: string;\n  collapsible?: boolean;\n  disabled?: boolean;\n  shortBar?: boolean;\n  hideSuggestions?: boolean;\n  hideCancelButton?: boolean;\n};\n\nexport function AutoComplete<ResultType = string>({\n  onSelect,\n  onChange,\n  onKeyDown,\n  onSeeResults,\n  onCollapseChange,\n  resultAccessor,\n  autocompleteResults,\n  loadingAutocompleteTerms,\n  placeholder,\n  cancelMessage,\n  loadingMessage,\n  seeResultsMessage,\n  noResultsMessage,\n  initialText,\n  containerStyles,\n  inputStyles,\n  listItemStyles,\n  collapsible,\n  shortBar,\n  disabled,\n  hideSuggestions,\n  hideCancelButton,\n}: AutoCompleteProps<ResultType>): ReactElement {\n  const [currentSearchTerm, setCurrentSearchTerm] = useState(initialText ?? '');\n  const [collapsedState, setCollapsedState] = useState(true);\n  const [showSuggestions, setShowSuggestions] = useState(\n    hideSuggestions ? !hideSuggestions : false\n  );\n  const [selectedIndex, setSelectedIndex] = useState(-1);\n  const inputEl = useRef<HTMLInputElement>(null);\n\n  useEffect(() => {\n    if (collapsedState === false) {\n      inputEl.current?.focus();\n    }\n  }, [collapsedState]);\n\n  const setShowSearchSuggestions = (show: boolean) => {\n    if (!hideSuggestions) {\n      setShowSuggestions(show);\n    }\n  };\n\n  const collapseChange = (state: boolean) => {\n    if (!state) {\n      setShowSearchSuggestions(false);\n    }\n    setCollapsedState(state);\n\n    if (collapsible && onCollapseChange) {\n      onCollapseChange(collapsedState);\n    }\n  };\n\n  const onInputChange: ChangeEventHandler<HTMLInputElement> = e => {\n    onChange(e.target.value);\n\n    setCurrentSearchTerm(e.target.value);\n    const term = e.target.value.trimStart();\n    setShowSearchSuggestions(term.length > 0);\n\n    // don't search on just spaces\n    if (term.length > 0) {\n      setSelectedIndex(-1);\n    }\n  };\n\n  const onClick = (term: ResultType) => {\n    if (collapsible) {\n      collapseChange(true);\n    }\n\n    if (showSuggestions) {\n      setCurrentSearchTerm('');\n      setSelectedIndex(-1);\n    }\n\n    onSelect(term);\n  };\n\n  const onCancel = () => {\n    collapseChange(true);\n    setCurrentSearchTerm('');\n    setSelectedIndex(-1);\n  };\n\n  const onSeeResultsHandler = () => {\n    if (collapsible) {\n      collapseChange(true);\n    }\n\n    if (showSuggestions) {\n      setCurrentSearchTerm('');\n      setSelectedIndex(-1);\n    }\n\n    onSeeResults?.(currentSearchTerm);\n  };\n\n  const handleKeyDown: React.KeyboardEventHandler<HTMLInputElement> = event => {\n    const autocompleteLength = autocompleteResults.length;\n\n    if (event.key === 'Escape') {\n      setShowSearchSuggestions(false);\n    } else if (event.key === 'ArrowUp') {\n      const newSelectedIndex = Math.max(selectedIndex - 1, 0) % autocompleteLength;\n      setSelectedIndex(newSelectedIndex);\n      event.preventDefault();\n    } else if (event.key === 'ArrowDown') {\n      const newSelectedIndex =\n        Math.min(selectedIndex + 1, autocompleteLength - 1) % autocompleteLength;\n      setSelectedIndex(newSelectedIndex);\n      event.preventDefault();\n    } else if (event.key === 'Enter') {\n      if (autocompleteResults.length > 0 || hideSuggestions) {\n        if (selectedIndex < 0 && onSeeResults) {\n          return onSeeResultsHandler();\n        }\n\n        selectedIndex < 0\n          ? onClick(autocompleteResults[0]!)\n          : onClick(autocompleteResults[selectedIndex]!);\n      }\n      setSelectedIndex(0);\n    }\n\n    onKeyDown?.(event);\n  };\n\n  const renderSuggestions = () => (\n    <div\n      className={\n        autocompleteResults.length === 0 || loadingAutocompleteTerms\n          ? resultsContainerWithResultsCss\n          : resultsContainerNoResultsCss\n      }\n    >\n      {autocompleteResults.length > 0 ? (\n        autocompleteResults.map((result: ResultType, index: number) => (\n          <AutocompleteSuggestion<ResultType>\n            term={result}\n            onClick={onClick}\n            index={index}\n            // would have preferred this way but compiler forced me. Is there a better way? key={resultAccessor?.(result) ?? result}\n            key={typeof result === 'string' ? result : resultAccessor?.(result)}\n            isActive={selectedIndex === index}\n            setSelectedIndex={setSelectedIndex}\n            listItemStyles={listItemStyles}\n            resultAccessor={resultAccessor}\n            loadingAutocompleteTerms={loadingAutocompleteTerms}\n            loadingMessage={loadingMessage}\n          />\n        ))\n      ) : (\n        <li className={autocompleteListItemCss}>{noResultsMessage ?? 'No results returned.'}</li>\n      )}\n    </div>\n  );\n\n  if (collapsible && collapsedState) {\n    return (\n      <IconButton\n        size={IconButtonSize.LARGE}\n        iconName=\"search\"\n        disabled={disabled}\n        className={searchButtonCss}\n        onClick={() => collapseChange(false)}\n      />\n    );\n  }\n\n  const showSeeResults =\n    showSuggestions &&\n    !loadingAutocompleteTerms &&\n    seeResultsMessage &&\n    autocompleteResults.length > 0;\n\n  return (\n    <div\n      className={cx(autoCompleteContainerCss(showSuggestions, shortBar), containerStyles)}\n      onClick={() => {\n        setShowSearchSuggestions(currentSearchTerm.length > 0);\n        inputEl.current?.focus();\n      }}\n    >\n      <div className={rowCss}>\n        <Icon size={20} className={searchIconCss} name=\"search\" />\n        <input\n          className={cx(inputCss, inputStyles)}\n          ref={inputEl}\n          onChange={onInputChange}\n          onKeyDown={handleKeyDown}\n          value={currentSearchTerm}\n          placeholder={placeholder}\n        />\n        {collapsible && !hideCancelButton && (\n          <button onClick={onCancel} className={cancelButtonCss}>\n            {cancelMessage}\n          </button>\n        )}\n      </div>\n      {showSuggestions ? renderSuggestions() : undefined}\n      {showSeeResults ? (\n        <button\n          onClick={onSeeResultsHandler}\n          className={seeResultsCss}\n        >{`${seeResultsMessage} \"${currentSearchTerm}\"`}</button>\n      ) : undefined}\n    </div>\n  );\n}\n", "import { cx } from '@emotion/css';\nimport type { ForwardedRef } from 'react';\nimport { forwardRef, useCallback, useContext } from 'react';\n\nimport { m, MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseInteractiveComponentProps } from '../../types';\nimport type { OnActivateHandler } from '../../types/activationEvents';\nimport type { IconName } from '../Icon/Icon';\nimport { Icon } from '../Icon/Icon';\nimport { PrimitivesContext } from '../Primitives';\nimport { containerCss } from './IconButton.style';\nimport { IconButtonSize } from './IconButton.types';\n\ninterface IconButtonProps\n  extends BaseInteractiveComponentProps<HTMLButtonElement | HTMLAnchorElement> {\n  iconName: IconName;\n  url?: string;\n  onClick?: OnActivateHandler;\n  iconClassName?: string;\n  disabled?: boolean;\n  size?: IconButtonSize;\n}\n\n/** Componen that shows a round button with an icon inside. */\nexport const IconButton = forwardRef<HTMLButtonElement | HTMLAnchorElement, IconButtonProps>(\n  (props, ref) => {\n    const {\n      url,\n      iconName,\n      className,\n      iconClassName,\n      onClick,\n      disabled,\n      size = IconButtonSize.MEDIUM,\n      ...passThrough\n    } = props;\n\n    useMotifStyles(MotifComponent.ICON_BUTTON);\n    const { Anchor } = useContext(PrimitivesContext);\n\n    const containerClassName = cx(\n      MotifComponent.ICON_BUTTON,\n      containerCss,\n      size,\n      { disabled },\n      className\n    );\n    const icon = (\n      <Icon\n        name={iconName}\n        size={24}\n        fill={m('--icon-color')}\n        className={cx('icon', iconClassName)}\n      />\n    );\n\n    const onActivate = useCallback(() => {\n      if (disabled) return;\n      onClick?.();\n    }, [disabled, onClick]);\n\n    return url ? (\n      <Anchor\n        href={url}\n        ref={ref as ForwardedRef<HTMLAnchorElement>}\n        className={containerClassName}\n        onClick={onActivate}\n        {...passThrough}\n      >\n        {icon}\n      </Anchor>\n    ) : (\n      <button\n        ref={ref as ForwardedRef<HTMLButtonElement>}\n        disabled={disabled}\n        className={containerClassName}\n        onClick={onActivate}\n        {...passThrough}\n      >\n        {icon}\n      </button>\n    );\n  }\n);\n", "import { cx } from '@emotion/css';\nimport {\n  type FC,\n  type PropsWithChildren,\n  type ReactElement,\n  type ReactNode,\n  Children,\n  isValidElement,\n} from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../../motif';\nimport {\n  collapsedMobileTableCss,\n  columnCountVariable,\n  overflowOnMobileCss,\n  tableCss,\n  tableWithHeadersClassName,\n  tableWrapperCss,\n} from './PrimitiveTable.styles';\nimport {\n  PrimitiveTableCell,\n  PrimitiveTableHeader,\n  PrimitiveTableRow,\n} from './PrimitiveTableComponents';\n\nexport type PrimitiveTableProps = {\n  children?: ReactNode | undefined;\n  collapseMobileTable?: boolean;\n};\n\n/** PrimitiveTable is a wrapper around an HTML div table element adding Snap's design system styles. */\nexport const PrimitiveTable: FC<PrimitiveTableProps> = ({\n  children,\n  collapseMobileTable = false,\n}) => {\n  useMotifStyles(MotifComponent.PRIMITIVE_TABLE);\n\n  const childrenArray = Children.toArray(children) as ReactElement[];\n  const firstTableRow = childrenArray.find(\n    child => isValidElement(child) && child.type === PrimitiveTableRow\n  );\n  const columnCount = firstTableRow\n    ? Children.toArray(firstTableRow.props.children).filter(\n        child =>\n          isValidElement(child) &&\n          (child.type === PrimitiveTableHeader || child.type === PrimitiveTableCell)\n      ).length\n    : 0;\n  const hasTableHeaders = firstTableRow\n    ? Children.toArray(firstTableRow.props.children).some(\n        child => isValidElement(child) && child.type === PrimitiveTableHeader\n      )\n    : false;\n\n  // Set the column count as a CSS variable to allow for a dynamic grid-template-columns property\n  const columnCountVariableStyles = {\n    [columnCountVariable]: columnCount,\n  } as React.CSSProperties;\n\n  return (\n    // A wrapper is needed to make the table horizontally scrollable\n    <article\n      style={columnCountVariableStyles}\n      className={cx(tableWrapperCss, 'sdsm-primitive-table')}\n    >\n      <div\n        aria-label=\"Table\"\n        role=\"table\"\n        className={cx(MotifComponent.PRIMITIVE_TABLE, tableCss, {\n          [collapsedMobileTableCss]: collapseMobileTable && !hasTableHeaders,\n          [tableWithHeadersClassName]: hasTableHeaders,\n          [overflowOnMobileCss]:\n            (hasTableHeaders && columnCount >= 2) || (columnCount >= 2 && !collapseMobileTable),\n        })}\n      >\n        {children}\n      </div>\n    </article>\n  );\n};\n\nexport const CollapseTableMobile: FC<PropsWithChildren> = ({ children }) => (\n  <PrimitiveTable collapseMobileTable>{children}</PrimitiveTable>\n);\n\nexport const NoCollapseTableMobile = PrimitiveTable;\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery } from '../../../constants';\nimport { m } from '../../../motif/m';\nimport { primitiveElementClassNames } from '../Primitives.styles';\n\nexport const tableWithHeadersClassName = 'table-with-headers';\nexport const columnCountVariable = '--column-count';\n\nexport const tableWrapperCss = css`\n  background-color: ${m('--table-background-color')};\n  border-radius: ${m('--border-radius-s')};\n  margin-bottom: ${m('--spacing-m')};\n  overflow-x: auto;\n\n  /* Paragraph margins in table cells look like extra padding, so we remove them for tables */\n  .${primitiveElementClassNames.p} {\n    margin-bottom: 0;\n    overflow-wrap: break-word;\n  }\n`;\n\n/**\n * Base CSS for table. Note that grid-template-columns is calculated and set inline to avoid\n * performance hit from using emotion/css in the render path since it is dependent on the number of\n * columns in the table which we can only determine at runtime.\n */\nexport const tableCss = css`\n  /* Allow table to scroll horizontally on smaller viewpoints */\n  border-collapse: collapse;\n  display: grid;\n  grid-template-columns: repeat(\n    var(${columnCountVariable}),\n    minmax(${m('--table-cell-min-width')}, 1fr)\n  );\n  grid-row-gap: ${m('--table-desktop-row-gap')};\n  min-width: ${m('--table-cell-min-width')};\n  overflow-x: auto;\n  width: 100%;\n  padding: ${m('--spacing-m')} 0;\n\n  div[role='cell'] {\n    padding: ${m('--table-cell-desktop-padding')};\n  }\n\n  &.${tableWithHeadersClassName} {\n    padding: unset;\n    grid-template-columns: repeat(\n      var(${columnCountVariable}),\n      minmax(${m('--table-cell-min-width')}, 1fr)\n    );\n\n    div[role='cell'] {\n      border-bottom: 1px solid ${m('--table-border-color')};\n      padding: ${m('--spacing-m')};\n    }\n  }\n`;\n\nexport const overflowOnMobileCss = css`\n  ${mobileMediaQuery} {\n    overflow-x: scroll;\n  }\n`;\n\nexport const collapsedMobileTableCss = css`\n  grid-template-columns:\n    minmax(${m('--table-cell-min-width')}, ${m('--table-first-column-max-width')})\n    repeat(calc(var(${columnCountVariable}) - 1), minmax(${m('--table-cell-min-width')}, 1fr));\n\n  /** mobile media query single column layout */\n  div[role='cell'] {\n    padding: ${m('--table-cell-desktop-padding')};\n  }\n\n  ${mobileMediaQuery} {\n    grid-row-gap: ${m('--table-mobile-row-gap')};\n    grid-auto-flow: row;\n    grid-template-columns: minmax(0, 1fr);\n    div[role='row'] {\n      display: block;\n    }\n    div[role='cell'] {\n      padding: ${m('--table-cell-mobile-padding')};\n    }\n  }\n`;\n\nexport const tableCellCss = css`\n  background-color: ${m('--table-cell-body-bg-color')};\n  color: ${m('--table-cell-fg-color')};\n`;\n\nexport const tableHeaderCss = css`\n  background-color: ${m('--table-cell-header-bg-color')};\n  border-bottom: 1px solid ${m('--table-border-color')};\n  color: ${m('--table-cell-fg-color')};\n  padding: ${m('--spacing-m')};\n`;\n\nexport const tableRowCss = css`\n  display: contents;\n`;\n", "import type { FC, PropsWithChildren } from 'react';\n\nimport { tableCellCss, tableHeaderCss, tableRowCss } from './PrimitiveTable.styles';\n\n// =============================================================================\n// PrimitiveTableCell\n// =============================================================================\n\nexport const PrimitiveTableCell: FC<PropsWithChildren> = ({ children }) => {\n  return (\n    <div role=\"cell\" className={tableCellCss}>\n      {children}\n    </div>\n  );\n};\n\n// =============================================================================\n// PrimitiveTableHeader\n// =============================================================================\n\nexport const PrimitiveTableHeader: FC<PropsWithChildren> = ({ children }) => {\n  return (\n    <div role=\"columnheader\" className={tableHeaderCss}>\n      {children}\n    </div>\n  );\n};\n\n// =============================================================================\n// PrimitiveTableRow\n// =============================================================================\n\nexport const PrimitiveTableRow: FC<PropsWithChildren> = ({ children }) => {\n  return (\n    <div role=\"row\" className={tableRowCss}>\n      {children}\n    </div>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { m } from '../../motif/m';\n\nexport const containerCss = css`\n  &.small {\n    --size: 28px;\n    --icon-size: 24px;\n  }\n  &.medium {\n    --size: 32px;\n    --icon-size: 24px;\n  }\n  &.large {\n    --size: 40px;\n    --icon-size: 24px;\n  }\n  &.extra_large {\n    --size: 64px;\n    --icon-size: 40px;\n  }\n\n  /* These are meant to be easily overridable via className prop. */\n  width: var(--size);\n  height: var(--size);\n\n  cursor: pointer;\n  transition: transform 0.2s linear;\n\n  border-radius: 50%;\n  box-shadow: ${m('--box-shadow-xs')};\n\n  /* Center */\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  --icon-color: ${m('--icon-button-fg-color')};\n  background: ${m('--icon-button-bg-color')};\n  border: ${m('--icon-button-border-width')} solid ${m('--icon-button-border-color')};\n\n  :hover {\n    background: ${m('--icon-button-hover-bg-color')};\n    border: ${m('--icon-button-border-width')} solid ${m('--icon-button-hover-border-color')};\n    transform: translate(0, -1px);\n  }\n\n  :active,\n  .active {\n    transform: translate(0, 1px);\n  }\n\n  :disabled,\n  .disabled {\n    cursor: not-allowed;\n    transform: none;\n    --icon-color: ${m('--icon-button-disabled-fg-color')};\n    background: ${m('--icon-button-disabled-bg-color')};\n    border: ${m('--icon-button-border-width')} solid ${m('--icon-button-disabled-border-color')};\n  }\n\n  > .icon {\n    width: var(--icon-size);\n    height: var(--icon-size);\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport { BackgroundColor, Black, Blue, Gray, nonMobileMediaQuery } from '../../constants';\nimport { m } from '../../motif/m';\n\nexport const autoCompleteContainerCss = (open: boolean, setMaxWidth?: boolean): string => css`\n  align-self: center;\n  background: ${BackgroundColor.White};\n  border-radius: ${m('--border-radius-l')};\n  border-bottom: ${!open ? undefined : '0px'};\n  border-bottom-left-radius: ${!open ? `${m('--border-radius-l')}` : '0px'};\n  border-bottom-right-radius: ${!open ? `${m('--border-radius-l')}` : '0px'};\n  border: 1px solid ${Gray.V150};\n  box-shadow: ${m('--box-shadow-s')};\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: column;\n  margin: 0;\n  min-height: 52px;\n  position: relative;\n  width: 100%;\n  z-index: 20;\n  max-width: ${setMaxWidth ? '400px' : undefined};\n  margin-inline-start: ${setMaxWidth ? 'auto' : undefined};\n\n  :has(input:focus) {\n    border: 1px solid ${Black.V150};\n  }\n`;\n\nexport const inputCss = css`\n  border-style: none;\n  box-sizing: border-box;\n  color: ${Black.V150};\n  font-family: 'Graphik', Helvetica, sans-serif;\n  font-size: ${m('--p2-mobile-font-size')};\n  font-weight: ${m('--p2-mobile-font-weight')};\n  height: 25px;\n  margin: ${m('--spacing-s')} 0;\n  outline: none;\n  padding: 0;\n  vertical-align: middle;\n  width: 100%;\n  *[dir='rtl'] & {\n    text-align: right;\n  }\n\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--p2-desktop-font-size')};\n    font-weight: ${m('--p2-desktop-font-weight')};\n  }\n`;\n\nconst resultsContainerCss = (noResults: boolean) =>\n  css`\n    top: 41px;\n    /** Because container is absolute positioned when adding a border 1px it was 1px inside of the parent container below fixed */\n    left: -1px;\n    width: calc(100% + 2px);\n    position: absolute;\n    list-style: none;\n    margin-top: ${m('--spacing-xs')};\n    max-height: 175px;\n    overflow-y: auto;\n    padding-left: 0;\n    background: ${BackgroundColor.White};\n    z-index: 20;\n    border: 1px solid ${Black.V150};\n    box-sizing: border-box;\n    border-top: 0px;\n    border-bottom: ${noResults ? undefined : '0px'};\n    border-bottom-right-radius: ${!noResults ? undefined : `${m('--spacing-s')};`};\n    border-bottom-left-radius: ${!noResults ? undefined : `${m('--spacing-s')};`};\n    webkit-scrollbar {\n      width: 7px;\n    }\n    webkit-scrollbar-thumb {\n      background-clip: padding-box;\n      border-right: 2px ${BackgroundColor.White} solid;\n      background-color: ${Gray.V100};\n      border-radius: ${m('--border-radius-s')};\n    }\n    :before {\n      content: '';\n      background: ${Gray.V100};\n      position: absolute;\n      top: 0;\n      left: ${m('--spacing-m')};\n      height: 1px;\n      width: calc(100% - ${m('--spacing-xl')};);\n    }\n  `;\n\nexport const resultsContainerWithResultsCss = resultsContainerCss(true);\nexport const resultsContainerNoResultsCss = resultsContainerCss(false);\n\nexport const autocompleteListItemCss = css`\n  cursor: pointer;\n  padding: ${m('--spacing-s')} ${m('--spacing-xl')};\n  margin: 0 ${m('--spacing-m')} 0 ${m('--spacing-m')};\n  font-size: 18px;\n  color: ${Gray.V300};\n  line-height: 20px;\n  border-radius: 6px;\n  :hover {\n    background: ${Gray.V100};\n    color: ${Black.V150};\n  }\n`;\n\nexport const searchIconCss = css`\n  margin-block: ${m('--spacing-m')} ${m('--spacing-s')};\n  margin-inline: ${m('--spacing-m')} ${m('--spacing-s')};\n  min-width: 20px;\n`;\n\nexport const cancelButtonCss = css`\n  background: transparent;\n  border: none;\n  color: ${Blue.V200};\n  cursor: pointer;\n  font-family: 'Graphik', Helvetica, sans-serif;\n  font-size: ${m('--action-mobile-font-size')};\n  font-weight: ${m('--action-mobile-font-weight')};\n  line-height: ${m('--action-mobile-font-line-height')};\n  margin-block: auto;\n  margin-inline: ${m('--spacing-s')} ${m('--spacing-m')};\n  padding-inline: 0;\n  white-space: nowrap;\n\n  :hover,\n  :focus {\n    color: ${Black.V150};\n  }\n\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--action-desktop-font-size')};\n    font-weight: ${m('--action-desktop-font-weight')};\n    line-height: ${m('--action-desktop-font-line-height')};\n    margin-inline: ${m('--spacing-m')} ${m('--spacing-l')};\n  }\n`;\n\nexport const searchButtonCss = css`\n  background: transparent;\n  border: 1px solid ${m('--foreground-color')};\n  :hover {\n    background: transparent;\n  }\n\n  /* Overrides for the icon button style */\n  box-shadow: none;\n\n  && {\n    --icon-size: 16px;\n    --icon-color: ${m('--foreground-color')};\n  }\n\n  /* Overrides for the icon button hover styles */\n  @media (hover: hover) {\n    &:hover {\n      --icon-color: ${m('--global-header-bg-color')};\n      background: ${m('--foreground-color')};\n      border: 1px solid ${m('--foreground-color')};\n      transform: none;\n    }\n  }\n`;\n\nexport const rowCss = css`\n  display: flex;\n\n  svg {\n    path {\n      fill: ${Gray.V300};\n    }\n  }\n`;\n\nexport const seeResultsCss = css`\n  padding: ${m('--spacing-s')} ${m('--spacing-xxl')} ${m('--spacing-l')};\n  font-size: ${m('--text-mobile-font-size')};\n  line-height: 20px;\n  color: ${Blue.V200};\n  background: white;\n  cursor: pointer;\n  /** Because container is absolute positioned when adding a border 1px it was 1px inside of the parent container below fixed */\n  left: -1px;\n  width: calc(100% + 2px);\n  position: absolute;\n  top: 224px;\n  border: 1px solid ${Black.V150};\n  border-top: 0px;\n  border-bottom-right-radius: ${m('--spacing-s')};\n  border-bottom-left-radius: ${m('--spacing-s')};\n  text-align: start;\n  z-index: 20;\n\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--text-desktop-font-size')};\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport { CrossIcon } from '@snapchat/snap-design-system-icons';\nimport type { FC, PropsWithChildren } from 'react';\nimport { useState } from 'react';\n\nimport type { BackgroundColor } from '../../constants';\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { dataSetToAttributes, getBackgroundClassName } from '../../utils';\nimport {\n  globalHeaderBannerButtonDivCss,\n  globalHeaderBannerButtonStylesCss,\n  globalHeaderBannerContentContainerCss,\n  globalHeaderBannerCss,\n} from './Banner.styles';\n\ninterface BannerProps extends PropsWithChildren {\n  className?: string;\n  contentClassName?: string;\n  backgroundColor?: BackgroundColor;\n  dataset?: DOMStringMap;\n}\n\nexport const Banner: FC<BannerProps> = ({\n  backgroundColor = 'Yellow',\n  className,\n  children,\n  contentClassName,\n  dataset,\n}) => {\n  useMotifStyles(MotifComponent.BANNER);\n  const [show, setShow] = useState(true);\n\n  if (!show) {\n    return null;\n  }\n\n  return (\n    <div\n      className={cx(\n        MotifComponent.BANNER,\n        globalHeaderBannerCss,\n        className,\n        getBackgroundClassName(backgroundColor)\n      )}\n      {...dataSetToAttributes(dataset)}\n    >\n      <div className={cx(globalHeaderBannerContentContainerCss, contentClassName)}>{children}</div>\n      <div className={globalHeaderBannerButtonDivCss}>\n        <button className={globalHeaderBannerButtonStylesCss} onClick={() => setShow(false)}>\n          <CrossIcon size={24} />\n        </button>\n      </div>\n    </div>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery } from '../../constants';\nimport { m } from '../../motif';\nimport { bannerMinHeight } from './Banner.constants';\n\nexport const globalHeaderBannerCss = css`\n  padding: 16px 60px;\n  font-size: ${m('--banner-font-size')};\n  background-color: ${m('--banner-bg-color')};\n  color: ${m('--banner-fg-color')};\n  min-height: ${bannerMinHeight}px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  position: relative;\n  line-height: ${m('--banner-font-line-height')};\n  box-sizing: border-box;\n\n  ${mobileMediaQuery} {\n    padding: 16px 32px 16px 20px;\n  }\n`;\n\nexport const globalHeaderBannerContentContainerCss = css`\n  flex: 1;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n`;\n\nexport const globalHeaderBannerButtonDivCss = css`\n  width: 60px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-shrink: 0;\n  position: absolute;\n  right: 0;\n\n  ${mobileMediaQuery} {\n    width: 44px;\n  }\n`;\n\nexport const globalHeaderBannerButtonStylesCss = css`\n  background: none;\n  border: none;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  cursor: pointer;\n  /* 44 x 44 for a11y */\n  width: 44px;\n  height: 44px;\n\n  /* search icon */\n  .sds-icon-cross {\n    fill: ${m('--banner-fg-color')};\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC, PropsWithChildren, ReactNode } from 'react';\nimport { Children } from 'react';\n\nimport type { BackgroundColor } from '../../constants';\nimport { Alignment } from '../../constants';\nimport type {\n  BackgroundPosition,\n  BackgroundRepeat,\n  BackgroundSize,\n} from '../../constants/background';\nimport { p1Css } from '../../motif';\nimport { MotifComponent } from '../../motif/motifConstants';\nimport { useMotifStyles } from '../../motif/motifReactUtils';\nimport type { BaseComponentProps, Buttons, ImageSources } from '../../types';\nimport {\n  alignmentCss,\n  BlockBackgroundColorContext,\n  dataSetToAttributes,\n  getBackgroundClassName,\n  mobileAlignmentCss,\n} from '../../utils';\nimport type { WidthType } from '../BlockBoundary';\nimport { BlockBoundary } from '../BlockBoundary';\nimport type { ContentProps } from '../Content';\nimport { Picture } from '../Picture';\nimport { Video } from '../Video';\nimport {\n  backgroundCss,\n  blockCss,\n  blockScrollMarginCss,\n  boundaryCss,\n  callsToActionWrapperCss,\n  contentContainerCss,\n  contentContainerStyle1ColumnCss,\n  contentContainerStyle2ColumnCss,\n  contentContainerStyle3ColumnCss,\n  contentContainerStyle4ColumnCss,\n  curtainCss,\n  eyebrowCss,\n  fullHeightBlockCss,\n  headerCss,\n  subtitleCss,\n  titleCss,\n} from './Block.styled';\n\nexport interface BlockProps extends BaseComponentProps {\n  mobileBackgroundVideoSource?: string;\n  backgroundImageSources?: ImageSources;\n  /** @deprecated Pass styles through className */\n  backgroundImageSource?: ImageSources;\n  /** @deprecated Pass styles through className */\n  bgImgClassName?: string;\n  /** @deprecated Pass styles through className */\n  backgroundRepeat?: BackgroundRepeat;\n  /** @deprecated Pass styles through className */\n  backgroundSize?: BackgroundSize;\n  /** @deprecated Pass styles through className */\n  backgroundPosition?: BackgroundPosition;\n  /** @deprecated. Break templates aren't controlled on the block level anymore. */\n  skipBreakTemplate?: boolean;\n  /** @deprecated Use widthStyle instead. */\n  isNarrow?: boolean;\n  /** @deprecated Breaks are managed separately */\n  isPreviousSameBackgroundColor?: boolean;\n  /** @deprecated Breaks are managed separately */\n  isNextSameBackgroundColor?: boolean;\n  /** @deprecated Provide style overrides w/ className */\n  isCustom?: boolean;\n  /** @deprecated. Use children */\n  contentsCollection?: {\n    items: Array<ContentProps>;\n  };\n  showCurtain?: boolean;\n  backgroundVideoSource?: string;\n  callsToAction?: Buttons;\n  anchorId?: string;\n  maxColumns?: 1 | 2 | 3 | 4;\n  backgroundColor?: BackgroundColor;\n  eyebrow?: ReactNode;\n  title?: ReactNode;\n  subtitle?: ReactNode;\n  titleAlignment?: Alignment;\n  titleAlignmentMobile?: Alignment;\n  widthStyle?: WidthType;\n  fullHeight?: boolean;\n  className?: string;\n  eyebrowDataset?: DOMStringMap;\n  titleDataset?: DOMStringMap;\n  subtitleDataset?: DOMStringMap;\n  preChildren?: ReactNode;\n  postChildren?: ReactNode;\n}\n\nexport const Block: FC<PropsWithChildren<BlockProps>> = ({\n  showCurtain,\n  backgroundVideoSource,\n  mobileBackgroundVideoSource,\n  backgroundImageSources,\n  callsToAction,\n  children,\n  anchorId,\n  maxColumns = 4,\n  backgroundColor,\n  eyebrow,\n  title,\n  subtitle,\n  titleAlignment = Alignment.Center,\n  titleAlignmentMobile = Alignment.Start,\n  widthStyle = 'full',\n  fullHeight = false,\n  className,\n  style,\n  eyebrowDataset,\n  titleDataset,\n  subtitleDataset,\n  preChildren,\n  postChildren,\n}) => {\n  useMotifStyles(MotifComponent.BLOCK);\n\n  const hasHeader = !!eyebrow || !!title || !!subtitle;\n  /**\n   * NOTE: Not using Children.count() because it returns 1 more since it counts `null` as a child,\n   * `false` as a child and empty fragments as children. See\n   * https://www.agney.dev/blog/react-children-count\n   */\n  const numChildren = Children.toArray(children).length;\n  const callsToActionCount = Children.count(callsToAction);\n\n  // Ensure that maxColumns is between 1 and 4, but not more than children count.\n  // @ts-ignore \u2014 cast number\n  maxColumns = Math.max(1, Math.min(numChildren, maxColumns));\n\n  return (\n    <article\n      id={anchorId}\n      className={cx(\n        MotifComponent.BLOCK,\n        getBackgroundClassName(backgroundColor),\n        blockCss,\n        blockScrollMarginCss,\n        {\n          [fullHeightBlockCss]: fullHeight,\n        },\n        className\n      )}\n      style={style}\n    >\n      {preChildren}\n      {showCurtain && (\n        <div data-test-id=\"sdsm-block-curtain\" className={cx(curtainCss, backgroundCss)} />\n      )}\n      {backgroundImageSources && (\n        <Picture\n          imgSrcs={backgroundImageSources}\n          imgClassName={backgroundCss}\n          fetchPriority=\"auto\"\n        />\n      )}\n      {backgroundVideoSource && (\n        <Video\n          mobileSource={mobileBackgroundVideoSource}\n          source={backgroundVideoSource}\n          className={cx(backgroundCss)}\n          isBackgroundVideo\n        />\n      )}\n      <BlockBackgroundColorContext.Provider value={backgroundColor}>\n        <BlockBoundary\n          data-testid=\"sdsm-block-boundary\"\n          widthStyle={widthStyle}\n          className={boundaryCss}\n        >\n          {hasHeader && (\n            <section\n              data-test-id=\"sdsm-block-title\"\n              className={cx(\n                headerCss,\n                alignmentCss[titleAlignment],\n                mobileAlignmentCss[titleAlignmentMobile]\n              )}\n            >\n              {eyebrow && (\n                <div className={eyebrowCss} {...dataSetToAttributes(eyebrowDataset)}>\n                  {eyebrow}\n                </div>\n              )}\n              {title && (\n                <h2\n                  data-test-id=\"sdsm-block-title\"\n                  className={cx(titleCss)}\n                  {...dataSetToAttributes(titleDataset)}\n                >\n                  {title}\n                </h2>\n              )}\n              {subtitle && (\n                <div\n                  data-test-id=\"sdsm-block-subtitle\"\n                  className={cx(p1Css, subtitleCss)}\n                  {...dataSetToAttributes(subtitleDataset)}\n                >\n                  {subtitle}\n                </div>\n              )}\n            </section>\n          )}\n          {children && (\n            <section\n              data-test-id=\"sdsm-block-children\"\n              data-max-columns={maxColumns}\n              className={cx(contentContainerCss, {\n                [contentContainerStyle1ColumnCss]: maxColumns === 1,\n                [contentContainerStyle2ColumnCss]: maxColumns === 2,\n                [contentContainerStyle3ColumnCss]: maxColumns === 3,\n                [contentContainerStyle4ColumnCss]: maxColumns === 4,\n              })}\n            >\n              {children}\n            </section>\n          )}\n          {callsToActionCount > 0 && (\n            <section\n              data-test-id=\"sdsm-block-ctas\"\n              className={cx(\n                alignmentCss[titleAlignment],\n                mobileAlignmentCss[titleAlignmentMobile],\n                callsToActionWrapperCss\n              )}\n            >\n              {callsToAction}\n            </section>\n          )}\n        </BlockBoundary>\n      </BlockBackgroundColorContext.Provider>\n      {postChildren}\n    </article>\n  );\n};\n\nBlock.displayName = 'Block';\n", "import { css, cx } from '@emotion/css';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport { maxWidth, narrowWidth, nonMobileMediaQuery, reducedWidth } from '../../constants';\nimport { MotifComponent } from '../../motif/motifConstants';\nimport { useMotifStyles } from '../../motif/motifReactUtils';\nimport type { BaseComponentProps } from '../../types';\n\nexport type WidthType = 'reduced' | 'narrow' | 'full';\n\nconst styleCss = css`\n  margin: auto;\n  max-width: ${maxWidth}px;\n`;\n\n// TODO: update styles to match button styling css.\nconst styleReducedCss = css`\n  ${nonMobileMediaQuery} {\n    max-width: ${reducedWidth}px;\n    width: 80%;\n  }\n`;\n\nconst styleNarrowCss = css`\n  max-width: ${narrowWidth}px;\n`;\n\ninterface Props extends BaseComponentProps {\n  /** @deprecated Use widthStyle instead. */\n  isNarrow?: boolean;\n  widthStyle?: WidthType;\n}\n\n/** Container for block elements that ensures that they don't get too wide. */\nexport const BlockBoundary: FC<PropsWithChildren<Props>> = ({\n  children,\n  className,\n  isNarrow,\n  widthStyle,\n  ...passThroughProps\n}) => {\n  useMotifStyles(MotifComponent.BLOCK_BOUNDARY);\n\n  // TODO: Keep is isNarrow field for now to keep forBiz in tact until we fully\n  // migrate it to marketing-web\n  className = cx(\n    MotifComponent.BLOCK_BOUNDARY,\n    styleCss, // Has to come first so that later classnames can override\n    {\n      [styleReducedCss]: widthStyle === 'reduced',\n      [styleNarrowCss]: isNarrow || widthStyle === 'narrow',\n    },\n    className\n  );\n\n  return (\n    <div {...passThroughProps} className={className}>\n      {children}\n    </div>\n  );\n};\n\nBlockBoundary.displayName = 'BlockBoundary';\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useEffect, useMemo, useState } from 'react';\n\nimport { MediaMode } from '../../constants';\nimport { useMediaMode } from '../../hooks/useMediaMode';\nimport { ToggleState, ToggleTarget, useToggleState } from '../../hooks/useToggleState';\nimport { MotifComponent } from '../../motif/motifConstants';\nimport { useMotifStyles } from '../../motif/motifReactUtils';\nimport { getBackgroundClassName } from '../../utils';\nimport { globalHeaderTransitionDuration, testIds } from './GlobalHeader.constants';\nimport { getNavigationBreadcrumbs } from './GlobalHeader.utils';\nimport { GlobalHeaderContext } from './GlobalHeaderContext';\nimport { GlobalHeaderDesktop } from './GlobalHeaderDesktop';\nimport { GlobalHeaderMobile } from './GlobalHeaderMobile';\nimport type { GlobalHeaderProps } from './types';\n\n/** Synthetic group key for the local nav as displayed on the mobile nav screen. */\nexport const defaultGlobalNavMobileGroupKey = 'home';\n\n// npm run test -- --testPathPattern=GlobalHeader\nexport const GlobalHeader: FC<GlobalHeaderProps> = ({\n  backgroundColor,\n  className,\n  defaultGroupKey,\n  children,\n  displayed,\n  onToggleExpanded,\n  stayOpenInvariant,\n  trackingSiteName,\n  showNavScreen = true,\n  dataset,\n  isUrlCurrent,\n  headerNavigationTree,\n  buttonAriaLabel,\n  ...otherHeaderProps\n}) => {\n  useMotifStyles(MotifComponent.HEADER);\n\n  const mode = useMediaMode();\n  const navigationBreadcrumbs = useMemo(() => {\n    return getNavigationBreadcrumbs(headerNavigationTree ?? [], isUrlCurrent);\n  }, [headerNavigationTree, isUrlCurrent]);\n\n  const { state: isExpandedState, toggle: toggleExpanded } = useToggleState({\n    transitionDurationMs: globalHeaderTransitionDuration,\n    onToggle: (newState, _oldState) => {\n      if (onToggleExpanded) {\n        // Immediately show screen turning on begins.\n        if (newState === ToggleState.TURNING_ON) {\n          onToggleExpanded(true);\n        }\n\n        // Hide the screen when turning off animation finishes.\n        if (newState === ToggleState.OFF) {\n          onToggleExpanded(false);\n        }\n      }\n\n      // Lose focus on the toggle button in case it was triggered via keyboard.\n      const activeElement = document?.activeElement as HTMLElement;\n      activeElement?.blur();\n    },\n  });\n\n  // Close the open nav if the open-invariant deviates or if the mobile/desktop mode changes.\n  // Note that we not want to trigger this when `toggleExpanded` changes.\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  useEffect(() => toggleExpanded(ToggleTarget.OFF), [mode, stayOpenInvariant]);\n\n  const [groupKey, setGroupKey] = useState<string>(\n    mode === MediaMode.Mobile ? defaultGlobalNavMobileGroupKey : defaultGroupKey ?? ''\n  );\n\n  const isVisible = displayed ?? true;\n  const classNameWithTheme = cx(\n    MotifComponent.HEADER,\n    backgroundColor ? getBackgroundClassName(backgroundColor) : null,\n    isVisible ? null : 'hidden',\n    className\n  );\n\n  if (!dataset?.testid) {\n    dataset = { ...dataset, testid: testIds.headerTopLevel } as DOMStringMap;\n  }\n\n  const isExpanded = isExpandedState !== ToggleState.OFF;\n  const GlobalHeaderImpl = mode === MediaMode.Mobile ? GlobalHeaderMobile : GlobalHeaderDesktop;\n  return (\n    <GlobalHeaderContext.Provider\n      value={{\n        mode,\n        groupKey,\n        setGroupKey,\n        toggleExpanded,\n        screenState: isExpandedState,\n        trackingSiteName,\n        navigationBreadcrumbs,\n      }}\n    >\n      <GlobalHeaderImpl\n        {...otherHeaderProps}\n        isExpanded={isExpanded}\n        toggleExpanded={toggleExpanded}\n        className={classNameWithTheme}\n        showNavScreen={showNavScreen}\n        buttonAriaLabel={buttonAriaLabel}\n        dataset={dataset}\n      />\n      {isExpanded && showNavScreen && children}\n    </GlobalHeaderContext.Provider>\n  );\n};\n\nGlobalHeader.displayName = 'GlobalHeader';\n", "export const globalNavOuterMargin = 'min(8vw, 112px)';\nexport const globalLinksClassName = 'global-links';\nexport const globalNavMobileLocalNavClassName = 'local-nav';\n\n/** Height of the mobile header. Needs to be updated manually if off. */\nexport const mobileHeaderHeight = 64;\nexport const navHeaderShadowSize = 5;\n\nexport const globalHeaderHeight = 64;\nexport const globalHeaderAnimationDuration = 500;\n/**\n * Duration for the transition between ON -> OFF states and vice-versa. This is slightly lower than\n * `globalHeaderAnimationDuration` so the animation would still play out during the React state\n * update to avoid flicker.\n */\nexport const globalHeaderTransitionDuration = 450;\n\nexport const globalNavNegativeOuterMargin = 'max(-8vw, -112px)';\n\nexport const globalNavGroupAnimationDurationMs = 300;\n\nexport const globalNavLevelClassName = 'level-tracker';\nexport const nextLevelLineHeightCssVar = '--next-level-line-height';\n\nexport const slideAnimationTiming = 'cubic-bezier(.04,.49,.54,.96)';\n\nexport const testIds = {\n  headerTopLevel: 'sdsm-global-header',\n  openButton: 'sdsm-global-header-open',\n  navItems: 'sdsm-global-header-local-nav-items',\n  siteName: 'sdsm-global-header-site-name',\n  endContents: 'sdsm-global-header-end-contents',\n};\n", "import type { NavigationItem } from './types';\n/**\n * Checks if the destination URL matches with the current url as in window.location. This is the\n * default function for checking if a navigation item should be highlighted in the breadcrumb.\n */\n\nexport function defaultIsUrlCurrent(location?: Location): (url: string) => boolean {\n  return (destinationUrl: string): boolean => {\n    if (!location) {\n      return false;\n    }\n\n    try {\n      const base = `${location.protocol}//${location.hostname}`;\n      const destUrl = new URL(destinationUrl, base);\n\n      const currentUrlHost = location.hostname;\n      const currentUrlPath = location.pathname;\n\n      return currentUrlHost === destUrl.hostname && currentUrlPath === destUrl.pathname;\n    } catch (_error) {\n      return false;\n    }\n  };\n}\n\nexport function getNavigationBreadcrumbs(\n  navigationTree: NavigationItem[],\n  isUrlCurrent: (url: string) => boolean = defaultIsUrlCurrent(\n    typeof window === 'undefined' ? undefined : window?.location\n  )\n): Set<string> {\n  const results = new Set<string>();\n\n  navigationTree.map(node => traverseTree(results, node, isUrlCurrent));\n\n  return results;\n}\n\n/** Helper function to traverse navigation tree and add active nodes & ancestors to output */\nconst traverseTree = (\n  output: Set<string>,\n  item: NavigationItem,\n  isUrlCurrent?: (url: string) => boolean,\n  parents: NavigationItem[] = []\n): void => {\n  // handle leaf node\n  if (!item.subItems?.length) {\n    const isSelected = item.url && isUrlCurrent?.(item.url);\n\n    // add node and ancestors to output\n    if (isSelected) {\n      output.add(item.id);\n      parents.map(parent => output.add(parent.id));\n    }\n\n    return;\n  }\n\n  // handle trunk node\n  for (const child of item.subItems) {\n    const ancestors = [...parents, item];\n    traverseTree(output, child, isUrlCurrent, ancestors);\n  }\n};\n", "import { createContext } from 'react';\n\nimport type { MediaMode } from '../../constants';\nimport type { ToggleState } from '../../hooks/useToggleState';\n\ninterface GlobalHeaderContextProps {\n  /** Narrow (Mobile) or Wide (Desktop) display mode. */\n  mode?: MediaMode;\n\n  /** Selected group key. Controls the highlight, highlight CTA and active indicator. */\n  groupKey?: string;\n  setGroupKey?: (groupKey: string) => void;\n\n  /** Handler for the open/close buttons to display the nav. */\n  toggleExpanded?: () => void;\n\n  /** State of the expansion; useful for animation tracking. */\n  screenState?: ToggleState;\n\n  /** Name of the site as visible as UTM source parameter for outgoing link tracking. */\n  trackingSiteName?: string;\n\n  /** A set of urls from the navigation tree that should be highlighted */\n  navigationBreadcrumbs?: Set<string>;\n}\n\nexport const GlobalHeaderContext = createContext<GlobalHeaderContextProps>({});\n", "import { css } from '@emotion/css';\n\nimport { Gray, maxWidth, mobileMediaQuery, Spacing } from '../../constants';\nimport { ZIndex } from '../../constants/zIndex';\nimport { m, MotifComponent } from '../../motif';\nimport { globalHeaderHeight } from './GlobalHeader.constants';\n\n/**\n * Inserts margin onto children.\n *\n * Outer children start and end with {@link outerMargin} and inbetween an {@link innerMargin} is\n * inserted.\n *\n * TODO: Rewrite using `grid-gap` when we start using grid.\n */\nconst childrenMarginCss = (outerMargin: number, innerMargin: number) => css`\n  & > * {\n    margin-left: ${innerMargin / 2}px;\n    margin-right: ${innerMargin / 2}px;\n  }\n\n  & > *:first-child {\n    margin-left: ${outerMargin}px;\n    margin-right: ${innerMargin / 2}px;\n\n    *[dir='rtl'] & {\n      margin-right: ${outerMargin}px;\n      margin-left: ${innerMargin / 2}px;\n    }\n  }\n\n  /* stylelint-disable-next-line no-descending-specificity */\n  & > *:last-child {\n    margin-left: ${innerMargin / 2}px;\n    margin-right: ${outerMargin}px;\n\n    *[dir='rtl'] & {\n      margin-right: ${innerMargin / 2}px;\n      margin-left: ${outerMargin}px;\n    }\n  }\n`;\n\nconst globalHeaderCss = css`\n  height: ${globalHeaderHeight}px;\n  max-height: ${globalHeaderHeight}px;\n\n  /* TODO: this doesnt really show well, and needs to work with subnav/banners. */\n  /* box-shadow: ${m('--box-shadow-m')}; */\n\n  color: ${m('--global-header-fg-color')};\n  background-color: ${m('--global-header-bg-color')};\n\n  /* Prevent the header from expanding the body to fit its contents. */\n  max-width: 100vw;\n  overflow-x: clip;\n  overflow-y: revert;\n\n  /* Stretch the header to the sides and ensure it's visible. */\n  position: sticky;\n  top: 0;\n  left: 0;\n  right: 0;\n  z-index: ${ZIndex.NAVIGATOR};\n\n  opacity: 1;\n  &.hidden {\n    opacity: 0;\n    transform: translateY(-100%);\n  }\n  transition: opacity 250ms ease-in, transform 250ms ease-out;\n`;\n\n/**\n * Style for the desktop header. Assumes there are 4 elements: [logo, menu, nav, cta].\n *\n * The nav is the only one that expands.\n */\nexport const globalHeaderDesktopCss = css`\n  ${globalHeaderCss}\n  /* Prevent the header from expanding the body to fit its contents. */\n  max-width: 100vw;\n  overflow-x: clip;\n\n  /* Stretch the header to the sides and ensure it's visible. */\n  position: sticky;\n  top: 0;\n  left: 0;\n  right: 0;\n  z-index: ${ZIndex.NAVIGATOR};\n\n  opacity: 1;\n  &.hidden {\n    opacity: 0;\n    transform: translateY(-100%);\n  }\n  transition: opacity 250ms ease-in, transform 250ms ease-out;\n`;\n\n/**\n * Override user defined justification for ultrawide screens. This is to ensure that the nav menu is\n * not rendered far away from the parent nav item.\n *\n * Handles edge case:\n *\n * - User is on a a ultra-wide device\n * - Site uses Nav Menu\n * - User hovers over a Nav Item that renders a menu\n * - User should be able to move their mouse to the menu without the menu closing due to it being a\n *   long distance from the parent element.\n */\nexport const globalHeaderDesktopNavItemsUltraWideAlignCss = css`\n  && {\n    @media (min-width: ${maxWidth}px) {\n      justify-content: center;\n    }\n  }\n`;\n\n/** Double selector so the style is not overridden by `globalHeaderMobileCss` */\nexport const globalHeaderDesktopNavItemsStartAlignCss = css`\n  && {\n    justify-content: flex-start;\n  }\n`;\n\n/** Double selector so the style is not overridden by `globalHeaderMobileCss` */\nexport const globalHeaderDesktopNavItemsCenterAlignCss = css`\n  && {\n    justify-content: center;\n  }\n`;\n\n/** Double selector so the style is not overridden by `globalHeaderMobileCss` */\nexport const globalHeaderDesktopNavItemsEndAlignCss = css`\n  && {\n    justify-content: flex-end;\n  }\n`;\n\n/** Style for the mobile header. Assumes there are 3 elements: [menu, logo, cta] */\nexport const globalHeaderMobileCss = css`\n  ${globalHeaderCss}\n  display: flex;\n  align-items: center;\n  ${childrenMarginCss(20, Spacing.MD)}\n  & > *:first-child,\n  & > *:last-child {\n    display: flex;\n    flex-grow: 1;\n    flex-basis: 100px;\n  }\n\n  & > *:first-child {\n    justify-content: flex-start;\n  }\n\n  & > *:last-child {\n    justify-content: flex-end;\n  }\n`;\n\n// NOTE: This uses triple specific selection to override the double specific\n// button styles like `.css-ymmsc2.button-secondary:hover`.\nexport const globalHeaderDesktopNavButtonCss = css`\n  > svg {\n    fill: ${m('--global-header-item-color')};\n    transition: all 0.15s ease-out;\n  }\n\n  &&& {\n    background: transparent;\n    border: 2px solid ${m('--global-header-item-color')};\n    padding: 0 7px; /* Must override the padding on button. */\n  }\n\n  &&&:hover {\n    border-color: ${m('--global-header-item-hover-color')};\n\n    /* Clearing out styles from the regular button. */\n    box-shadow: none;\n    transform: none;\n\n    > svg {\n      fill: ${m('--global-header-item-hover-color')};\n    }\n  }\n`;\n\nexport const globalHeaderMobileNavButtonCss = css`\n  background-color: transparent;\n  border: none;\n  color: ${m('--foreground-color')};\n  padding: 4px 8px;\n  cursor: pointer;\n`;\n\nexport const globalHeaderCtaDesktopCss = css`\n  display: flex;\n  align-items: center;\n\n  ${childrenMarginCss(0, Spacing.MD)}\n`;\n\n/** Styles for all buttons in Global Header */\nexport const globalHeaderButtonCss = css`\n  box-shadow: none;\n  /* Hack to hide icons in CTAs. */\n  i[class^='icon-'],\n  img,\n  svg {\n    display: none;\n  }\n`;\n\n/** In mobile layout we want to display flat button style with smaller font. This enables that. */\nexport const globalHeaderCtaMobileCss = css`\n  & > *:not(:first-child) {\n    margin-left: 16px;\n    *[dir='rtl'] & {\n      margin-left: unset;\n      margin-right: 16px;\n    }\n  }\n\n  /* NOTE: Triple specific selector to override button's double-specific styles. */\n  & .${MotifComponent.BUTTON}.${MotifComponent.BUTTON}.${MotifComponent.BUTTON} {\n    ${globalHeaderButtonCss}\n    font-size: smaller;\n    margin-right: 0;\n    padding: 4px;\n    width: inherit; /* buttons on mobile render full width by default which we don't want here */\n    *[dir='rtl'] & {\n      margin-right: unset;\n      margin-left: 0;\n    }\n  }\n`;\n\nexport const globalHeaderNavButtonCss = css`\n  width: 40px;\n  height: 40px;\n  border: 1px solid ${Gray.V250};\n  border-radius: 50%;\n  background-color: transparent;\n`;\n// We moved the styles into the div inside the header to fix the\n// Safari 16.2 dropdown bug where the dropdowns where hidden\nexport const globalHeaderDesktopContainerCss = css`\n  height: ${globalHeaderHeight}px;\n  max-height: ${globalHeaderHeight}px;\n  display: flex;\n  align-items: center;\n  padding: 0 40px;\n  ${childrenMarginCss(20, Spacing.MD)}\n\n  /**\n   * We are overriding the overflow from globalHeaderCss because of a bug\n   * on Safari 16.2. Not sure why this works so this is a bandaid. Ideally we don't do this\n   */\n  overflow: visible;\n\n  & > nav {\n    flex-grow: 1;\n    display: flex;\n    justify-content: flex-end;\n  }\n\n  span {\n    font-weight: ${m('--action-desktop-font-weight')};\n    font-size: ${m('--action-desktop-font-size')};\n    margin: 0 ${m('--spacing-xs')};\n\n    ${mobileMediaQuery} {\n      font-weight: ${m('--action-mobile-font-weight')};\n      font-size: ${m('--action-mobile-font-size')};\n    }\n  }\n`;\n\nexport const globalHeaderMobileBarCss = css`\n  margin: -7.5px -5px;\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { dataSetToAttributes } from '../../utils';\nimport { IconButton } from '../IconButton';\nimport { IconButtonSize } from '../IconButton/IconButton.types';\nimport { testIds } from './GlobalHeader.constants';\nimport {\n  globalHeaderCtaDesktopCss,\n  globalHeaderDesktopContainerCss,\n  globalHeaderDesktopCss,\n  globalHeaderDesktopNavButtonCss,\n  globalHeaderDesktopNavItemsCenterAlignCss,\n  globalHeaderDesktopNavItemsEndAlignCss,\n  globalHeaderDesktopNavItemsStartAlignCss,\n  globalHeaderDesktopNavItemsUltraWideAlignCss,\n} from './GlobalHeader.styles';\nimport type { GlobalHeaderDesktopProps, GlobalHeaderNavItemAlignment } from './types';\n\nconst alignmentToNavItemsCss = new Map<GlobalHeaderNavItemAlignment, string>([\n  ['left', globalHeaderDesktopNavItemsStartAlignCss],\n  ['center', globalHeaderDesktopNavItemsCenterAlignCss],\n  ['right', globalHeaderDesktopNavItemsEndAlignCss],\n]);\n\nexport const GlobalHeaderDesktop: FC<GlobalHeaderDesktopProps> = ({\n  logo,\n  siteName,\n  className,\n  cta,\n  endChildrenClassName,\n  localNavDesktop,\n  toggleExpanded,\n  showNavScreen,\n  showGlobalLinks = true,\n  navItemAlignment = 'right',\n  buttonAriaLabel,\n  dataset,\n}) => (\n  <header className={cx(globalHeaderDesktopCss, className)} {...dataSetToAttributes(dataset)}>\n    {/* // HACK: we move everything inside a div with overflow visible, and do the clip on the header parent */}\n    <div className={globalHeaderDesktopContainerCss}>\n      {showGlobalLinks && showNavScreen && (\n        <IconButton\n          size={IconButtonSize.LARGE}\n          className={globalHeaderDesktopNavButtonCss}\n          iconName=\"waffle\"\n          onClick={toggleExpanded}\n          data-testid={testIds.openButton}\n          aria-label={buttonAriaLabel}\n        />\n      )}\n      {logo}\n      <span>{siteName}</span>\n\n      <nav\n        className={cx(\n          alignmentToNavItemsCss.get(navItemAlignment),\n          globalHeaderDesktopNavItemsUltraWideAlignCss\n        )}\n        data-testid={testIds.navItems}\n      >\n        {localNavDesktop}\n      </nav>\n      <aside\n        className={endChildrenClassName ?? globalHeaderCtaDesktopCss}\n        data-testid={testIds.endContents}\n      >\n        {cta}\n      </aside>\n    </div>\n  </header>\n);\n\nGlobalHeaderDesktop.displayName = 'GlobalHeaderDesktop';\n", "export const testIds = {\n  navTopLevel: 'sdsm-global-nav-screen',\n  closeButton: 'sdsm-global-nav-screen-close',\n  navItems: 'sdsm-global-nav-screen-items',\n  navHighlights: 'sdsm-global-nav-screen-highlights',\n};\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { m } from '../../motif/m';\nimport { dataSetToAttributes } from '../../utils';\nimport { Icon } from '../Icon';\nimport { testIds } from './GlobalHeader.constants';\nimport {\n  globalHeaderCtaMobileCss,\n  globalHeaderMobileBarCss,\n  globalHeaderMobileCss,\n  globalHeaderMobileNavButtonCss,\n} from './GlobalHeader.styles';\nimport { testIds as navScreenTestIds } from './GlobalNavScreen/GlobalNavScreen.constants';\nimport type { GlobalHeaderMobileProps } from './types';\n\nexport const GlobalHeaderMobile: FC<GlobalHeaderMobileProps> = ({\n  logo,\n  cta,\n  className,\n  isExpanded,\n  toggleExpanded,\n  showNavScreen,\n  endChildrenClassName,\n  buttonAriaLabel,\n  dataset,\n}) => (\n  <header className={cx(globalHeaderMobileCss, className)} {...dataSetToAttributes(dataset)}>\n    {showNavScreen && (\n      <button\n        onClick={toggleExpanded}\n        className={globalHeaderMobileNavButtonCss}\n        data-testid={isExpanded ? navScreenTestIds.closeButton : testIds.openButton}\n        aria-label={buttonAriaLabel}\n      >\n        {isExpanded ? (\n          <Icon name=\"cross\" size={23} fill={m('--foreground-color')} />\n        ) : (\n          <Icon\n            name=\"bars\"\n            className={globalHeaderMobileBarCss}\n            size={30}\n            fill={m('--foreground-color')}\n          />\n        )}\n      </button>\n    )}\n    {logo}\n    <aside\n      className={endChildrenClassName ?? globalHeaderCtaMobileCss}\n      data-testid={testIds.endContents}\n    >\n      {cta}\n    </aside>\n  </header>\n);\n\nGlobalHeaderMobile.displayName = 'GlobalHeaderMobile';\n", "import { cx } from '@emotion/css';\nimport type { CSSProperties, FC } from 'react';\nimport { Children, useContext, useEffect, useState } from 'react';\n\nimport { MediaMode } from '../../../constants/media';\nimport { ToggleState, ToggleTarget } from '../../../hooks/useToggleState';\nimport { DetailsSummary } from '../../DetailsSummary';\nimport {\n  globalNavGroupAnimationDurationMs,\n  globalNavLevelClassName,\n} from '../GlobalHeader.constants';\nimport { GlobalHeaderContext } from '../GlobalHeaderContext';\nimport { globalNavItemChevronCss } from '../GlobalNavItem/GlobalNavItem.styles';\nimport {\n  childrenCountCssVarName,\n  detailsHeightAnimationDesktopCss,\n  globalNavGroupCss,\n  itemListCss,\n} from './GlobalNavGroup.styles';\nimport type { GlobalNavGroupProps } from './types';\n\nexport const GlobalNavGroup: FC<GlobalNavGroupProps> = ({\n  navGroupKey,\n  title,\n  mobileHighlight,\n  children,\n}) => {\n  const { groupKey, setGroupKey, mode, screenState } = useContext(GlobalHeaderContext);\n\n  const [isOpen, setIsOpen] = useState<boolean>(groupKey === navGroupKey);\n\n  useEffect(\n    () => {\n      const newIsOpen = groupKey === navGroupKey;\n\n      // Do nothing if there's no state update.\n      if (isOpen === newIsOpen) {\n        return;\n      }\n\n      let timeoutRef: ReturnType<typeof setTimeout>;\n\n      if (newIsOpen && screenState === ToggleState.ON) {\n        timeoutRef = setTimeout(setIsOpen.bind(null, newIsOpen), globalNavGroupAnimationDurationMs);\n      } else {\n        setIsOpen(newIsOpen);\n      }\n\n      return () => {\n        timeoutRef && clearTimeout(timeoutRef);\n      };\n    },\n    // Skip 'screenState' because changes shouldn't re-trigger animations.\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    [groupKey, navGroupKey]\n  );\n\n  const wrappedChildren = (\n    <ol className={itemListCss} role=\"menu\">\n      {Children.map(children, (child, index) => {\n        // biome-ignore lint/suspicious/noArrayIndexKey: Only index available\n        return <li key={`list-item-${index}`}>{child}</li>;\n      })}\n    </ol>\n  );\n\n  const setGroupKeyOnToggleOn = (target: ToggleTarget) => {\n    if (target === ToggleTarget.ON) {\n      setGroupKey?.(navGroupKey);\n    }\n  };\n\n  const isMobile = mode === MediaMode.Mobile;\n\n  return (\n    <DetailsSummary\n      forceOpenAttribute={isMobile ? undefined : true}\n      showChevron={mode === MediaMode.Mobile}\n      onToggle={setGroupKeyOnToggleOn}\n      open={isMobile ? undefined : isOpen} // Do not force state on mobile.\n      summary={title}\n      chevronProps={{ className: globalNavItemChevronCss }}\n      className={cx(\n        globalNavLevelClassName,\n        isMobile ? undefined : detailsHeightAnimationDesktopCss,\n\n        globalNavGroupCss\n      )}\n      fadeInAnimation={isMobile} // Use default fade-in animations on mobile. They're faster.\n      transitionDurationMs={globalNavGroupAnimationDurationMs}\n      data-testid={`group-${navGroupKey}`}\n      style={\n        {\n          [childrenCountCssVarName]: Children.count(children),\n        } as CSSProperties\n      }\n    >\n      {wrappedChildren}\n      {isMobile && mobileHighlight}\n    </DetailsSummary>\n  );\n};\n\nGlobalNavGroup.displayName = 'GlobalNavGroup';\n", "import { css } from '@emotion/css';\n\nimport { m } from '../../../motif/m';\n\nexport const globalNavItemCss = css`\n  display: flex;\n  justify-content: space-between;\n\n  & > .icon-external-link {\n    color: ${m('--global-header-item-color')};\n    font-size: 16px;\n    vertical-align: middle;\n    align-self: center;\n  }\n\n  & > a {\n    position: relative;\n  }\n\n  & a.selected {\n    color: ${m('--global-header-item-active-color')};\n  }\n\n  padding: 0;\n`;\n\nexport const globalNavItemWithChildrenCss = css`\n  summary.selected {\n    color: ${m('--global-header-item-active-color')};\n  }\n`;\n\nexport const externalIconCss = css`\n  &.icon-external-link {\n    color: ${m('--global-header-item-color')};\n    font-size: 14px;\n    margin: 0 9px;\n  }\n`;\n\nexport const globalNavItemChevronCss = css`\n  width: 20px;\n  height: 20px;\n  fill: ${m('--global-header-item-color')};\n\n  summary.selected > & {\n    fill: ${m('--global-header-item-active-color')};\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport { nonMobileMediaQuery } from '../../../constants';\nimport { androidLinearOutSlowIn } from '../../../constants/animation';\nimport { m } from '../../../motif/m';\nimport {\n  globalNavGroupAnimationDurationMs,\n  globalNavNegativeOuterMargin,\n  globalNavOuterMargin,\n  nextLevelLineHeightCssVar,\n} from '../GlobalHeader.constants';\n\nexport const childrenCountCssVarName = '--children-count';\nconst animateInDetailsCss = css`\n  overflow: hidden;\n\n  height: 0;\n  opacity: 0;\n\n  transition-property: opacity, height;\n  transition-duration: ${globalNavGroupAnimationDurationMs}ms;\n  transition-timing-function: ease-in;\n\n  details[data-state='on'] &,\n  details[data-state='turning-on'] & {\n    height: calc(var(${nextLevelLineHeightCssVar}) * var(${childrenCountCssVarName}));\n    opacity: 1;\n\n    transition-timing-function: ${androidLinearOutSlowIn};\n  }\n`;\n\nexport const itemListCss = css`\n  list-style-type: none;\n  padding: 0 0 0 16px;\n  margin: 0;\n\n  *[dir='rtl'] & {\n    padding-left: initial;\n    padding-right: 12px;\n  }\n\n  ${nonMobileMediaQuery} {\n    ${animateInDetailsCss}\n  }\n`;\n\nexport const globalNavGroupCss = css`\n  transition: color 0.125s;\n  white-space: nowrap;\n  scroll-margin: ${globalNavOuterMargin};\n\n  /* Hide the text that doesn't fit. */\n  > summary {\n    text-overflow: ellipsis;\n    overflow: hidden;\n  }\n\n  &:hover,\n  &:active,\n  &:focus-within,\n  [data-state='on'] > summary {\n    color: ${m('--global-header-item-hover-color')};\n  }\n\n  /** Displays the knob on active and hover in desktop mode only */\n  ${nonMobileMediaQuery} {\n    /* Move the summary over so we can position the knob inside */\n    left: ${globalNavNegativeOuterMargin};\n    padding-left: ${globalNavOuterMargin};\n    width: calc(${globalNavOuterMargin} + 100%);\n\n    *[dir='rtl'] & {\n      left: unset;\n      padding-left: unset;\n      right: ${globalNavNegativeOuterMargin};\n      padding-right: ${globalNavOuterMargin};\n    }\n\n    &::before {\n      content: ' ';\n      background-color: ${m('--global-header-item-hover-color')};\n      position: absolute;\n      left: 0;\n      top: 10px;\n      width: 7px;\n      height: 32px;\n      border-radius: ${m('--border-radius-xs')};\n      visibility: hidden;\n    }\n\n    *[dir='rtl'] &::before {\n      left: unset;\n      right: 0;\n    }\n\n    &:focus-within::before,\n    &:hover::before,\n    &:active::before,\n    details[data-state='on'] > &::before {\n      visibility: visible;\n    }\n  }\n`;\n\nexport const detailsHeightAnimationDesktopCss = css`\n  position: relative;\n`;\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { MediaMode } from '../../../constants';\nimport { GlobalHeaderContext } from '../GlobalHeaderContext';\nimport { GlobalNavHighlightDesktop } from './GlobalNavHighlightDesktop';\nimport type { GlobalNavHighlightProps } from './types';\n\nexport const GlobalNavHighlight: FC<GlobalNavHighlightProps> = props => {\n  const headerContext = useContext(GlobalHeaderContext);\n  const isMobile = headerContext.mode === MediaMode.Mobile;\n  // only showing highlights on desktop\n  return isMobile ? null : <GlobalNavHighlightDesktop {...props} />;\n};\n\nGlobalNavHighlight.displayName = 'GlobalNavHighlight';\n", "import { css } from '@emotion/css';\n\nimport { Black } from '../../../constants';\nimport { androidFastOutSlowInCurve } from '../../../constants/animation';\nimport { m } from '../../../motif/m';\nimport { MotifComponent } from '../../../motif/motifConstants';\nimport { globalHeaderAnimationDuration } from '../GlobalHeader.constants';\n\nexport const highlightTextClassName = 'highlight-text';\nexport const highlightTextTitleClassName = 'highlight-text-title';\nexport const highlightTextBodyClassName = 'highlight-text-body';\nexport const highlightMediaMobileClassName = 'highlight-media-mobile';\nexport const highlightMediaDesktopClassName = 'highlight-media-desktop';\nexport const highlightCtaClassName = 'cta';\n\nconst highlightMediaCss = (className: string) => css`\n  box-sizing: border-box;\n\n  /* Make the image/video cover the media space. These selectors are deep to account for any wrapper elements. */\n  & > .${className} * {\n    width: 100%;\n    height: 100%;\n  }\n  & > .${className} img,\n  & > .${className} video {\n    object-fit: cover;\n    border-radius: ${m('--border-radius-l')};\n  }\n\n  & > .${highlightMediaMobileClassName} img {\n    width: 90%;\n    margin: 0;\n  }\n`;\n\nexport const highlightDesktopCss = css`\n  position: relative; /* For positioning the card */\n  filter: drop-shadow(0px 0px 32px rgba(0, 0, 0, 0.12)); /* Faint highlight shadow */\n\n  & > .${highlightMediaDesktopClassName} {\n    margin: 0;\n    width: 100%;\n    height: 100%;\n  }\n\n  ${highlightMediaCss(highlightMediaDesktopClassName)}\n`;\n\n/**\n * Css for clamping multiple lines (counted in the vertical direction).\n *\n * Properties below work on Webkit AND Gecko. 96% browser support as of 2020-04. Note that vendor\n * auto-prefixing does not work here, so '-webkit-' is required.\n */\nconst lineClampCss = (lines: number): string => css`\n  /* stylelint-disable-next-line */\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: ${lines};\n`;\n\nconst highlightCardCss = css`\n  box-sizing: border-box;\n  color: ${m('--foreground-color')};\n  background-color: ${m('--background-color')};\n\n  padding: 0;\n  border-radius: ${m('--border-radius-m')};\n  box-shadow: ${m('--box-shadow-m')};\n  border: 1px solid rgb(233, 234, 235);\n\n  & > .${highlightTextClassName} {\n    & > .${highlightTextTitleClassName} {\n      color: ${Black.V150};\n\n      font-weight: 500;\n      font-size: 18px;\n      line-height: 20px;\n      white-space: nowrap;\n\n      display: inline-block;\n\n      max-width: 100%;\n\n      overflow: hidden;\n      text-overflow: ellipsis;\n\n      /* The line height here is greater than in body, so we move it slightly so the top margin\n         looks proportional to the card border. */\n      position: relative;\n      bottom: 1px;\n    }\n\n    & > .${highlightTextBodyClassName} {\n      /* Default <p> sets margin to 1em which is larger than what we want. */\n      margin-block-start: 2px;\n      margin-block-end: 2px;\n\n      font-size: 12px;\n      line-height: 16px;\n      font-weight: 400;\n\n      color: ${Black.V50};\n\n      ${lineClampCss(3)}\n      overflow: hidden;\n      text-overflow: ellipsis;\n    }\n  }\n`;\n\nconst highlightCardOuterMargin = 65;\nconst highlightCtaMargin = 16;\n\nconst highlightCardWideDesktopCss = css`\n  width: 35%;\n  min-width: 500px;\n  padding: 0 16px;\n\n  *[dir='rtl'] & {\n    right: unset;\n    left: ${highlightCardOuterMargin}px;\n  }\n\n  .${highlightCtaClassName} {\n    margin-left: 0;\n  }\n\n  *[dir='rtl'] & .${highlightCtaClassName} {\n    margin-left: ${highlightCtaMargin}px;\n    margin-right: 0;\n  }\n`;\n\nconst highlightCardNarrowDesktopCss = css`\n  width: calc(100% - ${highlightCardOuterMargin * 2}px);\n\n  &,\n  & > .${highlightCtaClassName}, & > .${highlightCtaClassName} .${MotifComponent.BUTTON} {\n    display: flex;\n    flex-direction: column;\n  }\n\n  & > .${highlightCtaClassName} {\n    margin-top: 0;\n  }\n`;\n\nconst highlightCardBreakDesktopWidth = 1040;\nexport const highlightCardDesktopCss = css`\n  ${highlightCardCss}\n\n  display: flex;\n  align-items: center;\n\n  & > .${highlightCtaClassName} {\n    flex-grow: 0;\n  }\n\n  & > .${highlightTextClassName} {\n    flex-grow: 1;\n  }\n\n  & > .${highlightTextClassName}, & > .${highlightCtaClassName} {\n    margin: 16px;\n  }\n\n  position: absolute;\n  right: ${highlightCardOuterMargin}px;\n  bottom: 30px;\n\n  @media screen and (min-width: ${highlightCardBreakDesktopWidth}px) {\n    ${highlightCardWideDesktopCss}\n  }\n\n  @media screen and (max-width: ${highlightCardBreakDesktopWidth}px) {\n    ${highlightCardNarrowDesktopCss}\n  }\n`;\n\nexport const highlightCardMobileCss = css`\n  width: 100%;\n  cursor: pointer;\n  margin-top: 15px;\n  margin-bottom: 50px;\n\n  /**\n   * NOTE: These values are important!\n   * This first value is the height of the highlight.\n   * The second is the height of the highlight description. The content is too tall\n   * So we clip it after this size (1-line roughly)\n   */\n  display: grid;\n  grid-template-rows: 40vw 20px;\n\n  & > * {\n    user-select: none;\n  }\n\n  & > .${highlightTextClassName} {\n    font-weight: 400;\n    font-size: 14px;\n    line-height: 40px;\n    margin: 0 12px;\n  }\n\n  & > .${highlightMediaMobileClassName} {\n    border-radius: ${m('--border-radius-m')};\n    margin: 0 20px 0 12px;\n  }\n\n  [dir='rtl'] & > .${highlightMediaMobileClassName} {\n    margin: 0 12px 0 20px;\n  }\n\n  ${highlightMediaCss(highlightMediaMobileClassName)}\n`;\n/** This is the amount by which other slides pertrude, and half the margin between slides. */\nconst highlightSpace = 10;\nexport const reelDesktopCss = css`\n  transition: transform ${globalHeaderAnimationDuration}ms ${androidFastOutSlowInCurve};\n  transform: translateY(\n    calc(((-100% + ${highlightSpace * 5}px) * var(--selected-index) + ${highlightSpace * 3}px))\n  );\n  height: 100%;\n\n  margin: 0 32px 0 20px;\n\n  *[dir='rtl'] & {\n    margin: 0 20px 0 32px;\n  }\n\n  & > * {\n    margin-top: 0;\n    margin-bottom: ${highlightSpace * 2}px;\n    height: calc(100% - ${highlightSpace * 7}px);\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { BackgroundColor } from '../../../constants/backgroundColor';\nimport { getBackgroundClassName } from '../../../utils';\nimport {\n  highlightCardDesktopCss,\n  highlightCtaClassName,\n  highlightDesktopCss,\n  highlightMediaDesktopClassName,\n  highlightTextBodyClassName,\n  highlightTextClassName,\n  highlightTextTitleClassName,\n} from './GlobalNavHighlight.styles';\nimport type { GlobalNavHighlightProps } from './types';\n\nexport const GlobalNavHighlightDesktop: FC<GlobalNavHighlightProps> = ({\n  background,\n  callToAction,\n  cardTitleV2,\n  cardBodyV2,\n  cardTitle,\n  cardBody,\n}) => {\n  return (\n    <section className={highlightDesktopCss}>\n      <figure className={highlightMediaDesktopClassName}>{background}</figure>\n      <article\n        className={cx(getBackgroundClassName(BackgroundColor.White), highlightCardDesktopCss)}\n      >\n        <figcaption className={highlightTextClassName}>\n          <label className={highlightTextTitleClassName}>{cardTitleV2 ?? cardTitle}</label>\n          <p className={highlightTextBodyClassName}>{cardBodyV2 ?? cardBody}</p>\n        </figcaption>\n        <div className={highlightCtaClassName}>{callToAction}</div>\n      </article>\n    </section>\n  );\n};\nGlobalNavHighlightDesktop.displayName = 'GlobalNavHighlightDesktop';\n", "import { css, cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { Children, useContext, useEffect, useState } from 'react';\n\nimport { MediaMode } from '../../../constants';\nimport { GlobalHeaderContext } from '../GlobalHeaderContext';\nimport { reelDesktopCss } from './GlobalNavHighlight.styles';\nimport type { GlobalNavHighlightReelProps } from './types';\n\nexport const GlobalNavHighlightReel: FC<GlobalNavHighlightReelProps> = ({\n  className,\n  highlights,\n}) => {\n  const headerContext = useContext(GlobalHeaderContext);\n  const isMobile = headerContext.mode === MediaMode.Mobile;\n\n  const [selectedIndex, setSelectedIndex] = useState(0);\n\n  const nonNullHighlights = Object.fromEntries(\n    [...highlights.entries()].filter(([_groupKey, highlight]) => !!highlight)\n  );\n\n  useEffect(() => {\n    const allKeys = Object.keys(nonNullHighlights);\n    const index = allKeys.indexOf(headerContext.groupKey ?? '');\n\n    if (index !== -1 && index !== selectedIndex) {\n      setSelectedIndex(index);\n    }\n  }, [headerContext.groupKey, nonNullHighlights, selectedIndex]);\n\n  // Currently we don't show any highlight in the mobile view.\n  // This is to be re-implemented once we have a design that works for mobile and does not look\n  // like advertising.\n  if (isMobile) {\n    return null;\n  }\n\n  const selectedCss = css`\n    --selected-index: ${selectedIndex};\n  `;\n\n  return (\n    <section className={cx(selectedCss, reelDesktopCss, className)}>\n      {Children.toArray(Object.values(nonNullHighlights))}\n    </section>\n  );\n};\n", "// Note that we allow referrers here so we can track usage.\n// See https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md#when-to-override-it\n/* eslint-disable react/jsx-no-target-blank */ // Placed here because it doesn't work inside JSX.\nimport { cx } from '@emotion/css';\nimport snakeCase from 'lodash/snakeCase.js';\nimport type { FC, MouseEventHandler, PropsWithChildren } from 'react';\nimport { Children, useContext } from 'react';\n\nimport { dataSetToAttributes } from '../../../utils';\nimport { isExternal } from '../../../utils/domains';\nimport type { TrackingParameters } from '../../../utils/tracking';\nimport { appendTrackingParameters } from '../../../utils/tracking';\nimport { DetailsSummary } from '../../DetailsSummary';\nimport { Icon } from '../../Icon';\nimport { PrimitivesContext } from '../../Primitives';\nimport { globalHeaderAnimationDuration, globalNavLevelClassName } from '../GlobalHeader.constants';\nimport { GlobalHeaderContext } from '../GlobalHeaderContext';\nimport { itemListCss } from '../GlobalNavGroup/GlobalNavGroup.styles';\nimport {\n  externalIconCss,\n  globalNavItemChevronCss,\n  globalNavItemCss,\n  globalNavItemWithChildrenCss,\n} from './GlobalNavItem.styles';\nimport type { GlobalNavItemProps } from './types';\n\nconst defaultTrackingParameters: TrackingParameters = {\n  utm_source: 'global_nav',\n  utm_medium: 'referral',\n  utm_content: 'global_nav_item',\n  utm_campaign: 'universal_navigation',\n};\n\nconst GlobalNavItemWithChildren: FC<PropsWithChildren<GlobalNavItemProps>> = ({\n  title,\n  children,\n  isSelected,\n}) => {\n  return (\n    <DetailsSummary\n      summary={title}\n      summaryProps={{ className: cx({ selected: isSelected }) }}\n      chevronProps={{ className: globalNavItemChevronCss }}\n      className={cx(globalNavLevelClassName, globalNavItemWithChildrenCss)}\n    >\n      <ol className={itemListCss}>\n        {Children.map(children, child => (\n          <li>{child}</li>\n        ))}\n      </ol>\n    </DetailsSummary>\n  );\n};\nGlobalNavItemWithChildren.displayName = 'GlobalNavItemWithChildren';\n\nexport const GlobalNavItem: FC<GlobalNavItemProps> = ({\n  title,\n  href,\n  showExternalIcon,\n  children,\n  onClick,\n  isSelected,\n  dataset,\n  addTrackingParams = true,\n}) => {\n  const { Anchor } = useContext(PrimitivesContext);\n\n  const { navigationBreadcrumbs, toggleExpanded, trackingSiteName } =\n    useContext(GlobalHeaderContext);\n  const isSelectedBreadcrumb = href ? !!navigationBreadcrumbs?.has(href) : false;\n\n  const shouldSelect = isSelected === undefined ? isSelectedBreadcrumb : isSelected;\n\n  if (children && (!Array.isArray(children) || children.length)) {\n    return (\n      <GlobalNavItemWithChildren title={title} isSelected={isSelected}>\n        {children}\n      </GlobalNavItemWithChildren>\n    );\n  }\n\n  const trackingParameters = trackingSiteName\n    ? { ...defaultTrackingParameters, utm_source: snakeCase(trackingSiteName) }\n    : defaultTrackingParameters;\n\n  const trackedHref = appendTrackingParameters(href, trackingParameters);\n  const isLinkExternal = isExternal(href);\n\n  const onLinkActivate: MouseEventHandler<HTMLElement> = event => {\n    onClick?.(event);\n\n    // We close the nav if the link is internal AND CTRL isn't pressed.\n    // The later is to allow multiple local links to be opened in a new tab.\n    // And scroll to the top. New pages should start from the top.\n    if (!isLinkExternal && !event.ctrlKey) {\n      toggleExpanded?.();\n      // Wait for globalHeader to close before scrolling back top of page\n      setTimeout(() => window.scrollTo(0, 0), globalHeaderAnimationDuration);\n    }\n  };\n\n  return (\n    <div className={globalNavItemCss} {...dataSetToAttributes(dataset)}>\n      <Anchor\n        className={cx(globalNavLevelClassName, { selected: shouldSelect })}\n        href={isLinkExternal && addTrackingParams ? trackedHref : href}\n        onClick={onLinkActivate}\n        target={isLinkExternal ? '_blank' : '_self'}\n        rel=\"noopener\"\n      >\n        {title}\n      </Anchor>\n      {showExternalIcon && isLinkExternal && (\n        <Icon className={externalIconCss} name=\"external-link\" />\n      )}\n    </div>\n  );\n};\n\nGlobalNavItem.displayName = 'GlobalNavItem';\n", "import { isAbsoluteUrl } from './tracking';\n\nexport const isExternal = (link?: string): boolean => {\n  if (!link) {\n    return false;\n  }\n\n  if (!isAbsoluteUrl.test(link)) {\n    return false;\n  }\n\n  try {\n    const parsedUrl = new URL(link);\n    return parsedUrl.hostname !== window?.location.hostname;\n  } catch {\n    // eslint-disable-next-line no-console\n    console.warn(`Unable to parse URL '${link}'. It is invalid.`);\n    return false;\n  }\n};\n", "import type React from 'react';\nimport { useContext } from 'react';\n\nimport { MediaMode } from '../../../constants';\nimport { ToggleState } from '../../../hooks/useToggleState';\nimport { GlobalHeaderContext } from '../GlobalHeaderContext';\nimport { screenStateClassName } from './GlobalNavScreen.styles';\nimport { GlobalNavScreenDesktop } from './GlobalNavScreenDesktop';\nimport { GlobalNavScreenMobile } from './GlobalNavScreenMobile';\nimport type { GlobalNavScreenProps } from './types';\n\nexport const GlobalNavScreen: React.FC<GlobalNavScreenProps> = props => {\n  const { screenState, mode } = useContext(GlobalHeaderContext);\n\n  if (screenState === ToggleState.OFF) {\n    return null;\n  }\n\n  const isMobile = mode === MediaMode.Mobile;\n  return isMobile ? (\n    <GlobalNavScreenMobile\n      {...props}\n      className={screenStateClassName(screenState!)}\n      screenState={screenState}\n    />\n  ) : (\n    <GlobalNavScreenDesktop\n      {...props}\n      className={screenStateClassName(screenState!)}\n      screenState={screenState}\n    />\n  );\n};\n\nGlobalNavScreen.displayName = 'GlobalNavScreen';\n", "import { css } from '@emotion/css';\n\nimport { Transparent } from '../constants';\n\nexport interface ScrollbarProps {\n  backgroundColor: string;\n  thumbColor: string;\n  trackWidth: string;\n}\n\nexport const scrollbarCss = ({\n  backgroundColor,\n  thumbColor,\n  trackWidth,\n}: ScrollbarProps): string => css`\n  /* Firefox. See developer.mozilla.org/en-US/docs/Web/CSS/CSS_Scrollbars */\n  scrollbar-width: ${trackWidth};\n  scrollbar-color: ${thumbColor} ${backgroundColor};\n\n  /* Edge / Chrome / Safari. See css-tricks.com/custom-scrollbars-in-webkit/ */\n  ::-webkit-scrollbar {\n    width: ${trackWidth};\n    background-color: ${backgroundColor};\n  }\n\n  ::-webkit-scrollbar-thumb {\n    background-color: ${thumbColor};\n    border-radius: calc(${trackWidth} / 2);\n    /* Can't control the width, so we add a border to introduce margin. */\n    border: 2px solid ${backgroundColor};\n  }\n\n  ::-webkit-scrollbar-track {\n    background-color: ${Transparent};\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport { Spacing } from '../../../constants';\nimport {\n  opacityFadeInCss,\n  opacityFadeOutCss,\n  slideDownCss,\n  slideUpCss,\n} from '../../../constants/animation';\nimport { ZIndex } from '../../../constants/zIndex';\nimport { ToggleState } from '../../../hooks/useToggleState';\nimport { m } from '../../../motif/m';\nimport { scrollbarCss } from '../../../utils/scrollbarCss';\nimport {\n  globalHeaderAnimationDuration,\n  globalHeaderHeight,\n  globalLinksClassName,\n  globalNavLevelClassName,\n  globalNavMobileLocalNavClassName,\n  globalNavOuterMargin,\n  mobileHeaderHeight,\n  navHeaderShadowSize,\n  nextLevelLineHeightCssVar,\n} from '../GlobalHeader.constants';\n\n// NOTE: This component is NOT themable. We use constants here directly without going through the\n// theme.\n\nexport const screenStateClassName = (state: ToggleState): string => `screen-state-${state}`;\n\nconst globalNavCss = css`\n  background-color: ${m('--global-header-nav-screen-bg-color')};\n  color: ${m('--global-header-nav-screen-fg-color')};\n\n  box-sizing: border-box;\n  position: fixed;\n  left: 0;\n  top: 0;\n  z-index: ${ZIndex.NAVIGATOR};\n\n  & header {\n    height: ${globalHeaderHeight}px;\n    padding: 0 60px;\n    display: flex;\n    align-items: center;\n    background-image: linear-gradient(\n      0deg,\n      transparent 0,\n      ${m('--global-header-nav-screen-bg-color')} ${navHeaderShadowSize}px\n    );\n    margin-bottom: -${navHeaderShadowSize}px;\n    z-index: ${ZIndex.NAVIGATOR_HEADER};\n\n    &.sticky {\n      position: sticky;\n      top: 0;\n    }\n  }\n`;\n\n/**\n * Styles for the items and headings in global nav.\n *\n * I (Alex) had a hard time keeping CSS straight between 3 different levels where some are links and\n * others aren't, and local nav on mobile being a headless list of nav items without a container\n * group. And with mocks changing frequently it made it hard to prevent styles bleeding without\n * figuring out what level they are at. So this styles is structured to work with the level tracking\n * class attribution.\n */\n\nconst levelSelector = (level: 1 | 2 | 3): string => `.${globalNavLevelClassName} `.repeat(level);\nexport const globalNavDesktopFontCss = css`\n  & a {\n    color: ${m('--global-header-item-color')};\n    text-decoration: none;\n    position: relative;\n\n    &::after {\n      left: 0;\n      content: ' ';\n      position: absolute;\n      bottom: 5px;\n      height: 0;\n      width: 100%;\n      border-bottom: 2px ${m('--global-header-item-hover-color')} solid;\n\n      transition: ease-in-out;\n      transition-duration: 100ms;\n      opacity: 0;\n    }\n  }\n\n  & a:hover,\n  & a:focus {\n    color: ${m('--global-header-item-hover-color')};\n\n    &::after {\n      opacity: 1;\n    }\n  }\n\n  & ${levelSelector(1)} {\n    font-size: 26px;\n    line-height: 54px;\n    font-weight: 600;\n    ${nextLevelLineHeightCssVar}: 36px;\n  }\n\n  & ${levelSelector(2)} {\n    font-size: 18px;\n    line-height: 36px;\n    font-weight: 400;\n    ${nextLevelLineHeightCssVar}: 16px;\n  }\n\n  & ${levelSelector(3)} {\n    font-size: 16px;\n    font-weight: 400;\n    line-height: 40px;\n  }\n`;\n\nexport const globalNavMobileFontCss = css`\n  & a {\n    color: ${m('--global-header-item-color')};\n    text-decoration: none;\n  }\n  & a:hover {\n    color: ${m('--global-header-item-hover-color')};\n  }\n\n  .${globalNavLevelClassName} {\n    font-size: ${m('--h6-desktop-font-size')};\n    font-weight: 500;\n    line-height: 40px;\n  }\n\n  & ${levelSelector(2)}, & ${levelSelector(3)} {\n    font-weight: 400;\n  }\n`;\n\n/** Style for the desktop full screen navigation. */\nconst leftNavWidth = 400;\nexport const globalNavHighlightClassName = 'highlight';\nexport const globalNavNoScrollClassName = 'no-scroll';\nexport const globalNavLeftNavClassName = 'left-nav';\nexport const globalNavDesktopCss = css`\n  ${globalNavCss}\n\n  ${slideDownCss({ duration: `${globalHeaderAnimationDuration}ms` })}\n  &.${screenStateClassName(ToggleState.ON)},\n  &.${screenStateClassName(ToggleState.TURNING_ON)} {\n    ${slideUpCss({ duration: `${globalHeaderAnimationDuration}ms` })}\n  }\n\n  width: 100vw;\n  max-width: 100vw;\n  height: 100vh;\n  max-height: 100vh;\n\n  box-sizing: border-box;\n  overflow: hidden;\n\n  & > .${globalNavLeftNavClassName} {\n    height: 100%;\n    width: ${leftNavWidth}px;\n    max-height: 100%;\n    overflow-y: scroll;\n    overflow-x: hidden;\n\n    ${globalNavDesktopFontCss}\n\n    /* Styling scrollbar */\n    ${scrollbarCss({\n      thumbColor: m('--global-header-item-color'),\n      backgroundColor: m('--global-header-nav-screen-bg-color'),\n      trackWidth: '10px',\n    })}\n  }\n\n  & > .${globalNavLeftNavClassName}.${globalNavNoScrollClassName} {\n    ${scrollbarCss({\n      thumbColor: m('--global-header-nav-screen-bg-color'),\n      backgroundColor: m('--global-header-nav-screen-bg-color'),\n      trackWidth: '10px',\n    })}\n  }\n\n  & .menu {\n    padding: 0px 20px 0px ${globalNavOuterMargin};\n    box-sizing: border-box;\n  }\n\n  *[dir='rtl'] & .menu {\n    padding: 0px ${globalNavOuterMargin} 0px 20px;\n  }\n\n  & > .${globalNavHighlightClassName} {\n    position: absolute;\n    right: 0;\n    top: 0;\n    height: 100%;\n    width: calc(100% - ${leftNavWidth}px);\n    z-index: ${ZIndex.NAVIGATOR_HIGHLIGHT};\n\n    *[dir='rtl'] & {\n      right: unset;\n      left: 0;\n    }\n  }\n\n  & .close {\n    position: relative;\n  }\n`;\n\n/** Style for the mobile full screen header. */\nexport const globalNavMobileCss = css`\n  ${globalNavCss}\n  ${globalNavMobileFontCss}\n\n  ${opacityFadeInCss({ duration: `${globalHeaderAnimationDuration}ms`, curve: 'ease-out' })}\n\n  &.${screenStateClassName(ToggleState.TURNING_OFF)} {\n    ${opacityFadeOutCss({ duration: `${globalHeaderAnimationDuration}ms`, curve: 'ease-out' })}\n  }\n\n  overflow: hidden scroll;\n  display: flex;\n  flex-direction: column;\n\n  & > .${globalNavMobileLocalNavClassName} {\n    padding: 0 20px 20px 20px;\n    scroll-margin-top: 5px;\n  }\n\n  & > .${globalLinksClassName} {\n    background-color: ${m('--global-header-nav-screen-bg-color')};\n    color: ${m('--global-header-nav-screen-fg-color')};\n    padding: 20px 20px 40px 20px;\n    margin-bottom: -20px; /* Pushing background under the gradient in .highlight. */\n    flex-grow: 1; /* Pushes the gray background to the bottom for long pages. */\n  }\n\n  & hr {\n    border-style: inset;\n    border-width: 1px;\n    margin-block-start: ${Spacing.MD}px;\n    margin-block-end: ${Spacing.MD}px;\n  }\n\n  /* On mobile we show the header regardless, so we display the nav below it. */\n  /* NOTE: Reducing so that at 75% zoom a sliver of background doesn't show. */\n  top: ${mobileHeaderHeight - 0.75}px;\n  /* On mobile we need to subtract the header size. */\n  max-height: calc(100vh - ${mobileHeaderHeight}px);\n  height: calc(100vh - ${mobileHeaderHeight}px);\n  /* stylelint-disable-next-line declaration-block-no-duplicate-properties */\n  max-height: calc(100dvh - ${mobileHeaderHeight}px);\n  height: calc(100dvh - ${mobileHeaderHeight}px);\n\n  width: 100vw;\n  max-width: 100vw;\n`;\n\nexport const globalNavMobileHeadingCss = css`\n  font-size: 14px;\n  line-height: 40px;\n  font-weight: 500;\n  display: block;\n`;\n", "import { cx } from '@emotion/css';\nimport type React from 'react';\nimport { useEffect, useRef } from 'react';\n\nimport { useDisableScrollOutside } from '../../../hooks/useDisableBodyScroll';\nimport { ToggleState } from '../../../hooks/useToggleState';\nimport { MotifComponent } from '../../../motif/motifConstants';\nimport { dataSetToAttributes, getBackgroundClassName } from '../../../utils';\nimport { IconButton } from '../../IconButton';\nimport { IconButtonSize } from '../../IconButton/IconButton.types';\nimport { globalHeaderDesktopNavButtonCss } from '../GlobalHeader.styles';\nimport { testIds } from './GlobalNavScreen.constants';\nimport {\n  globalNavDesktopCss,\n  globalNavHighlightClassName,\n  globalNavLeftNavClassName,\n} from './GlobalNavScreen.styles';\nimport type { GlobalNavScreenDesktopProps } from './types';\n\nexport const GlobalNavScreenDesktop: React.FC<GlobalNavScreenDesktopProps> = ({\n  className,\n  onNavClose,\n  highlight,\n  globalNav,\n  backgroundColor,\n  screenState,\n  dataset,\n}) => {\n  const leftNavRef = useRef<HTMLDivElement>(null);\n  const ref = useRef<HTMLButtonElement>(null);\n\n  useEffect(() => {\n    if (screenState === ToggleState.ON) {\n      ref.current?.focus();\n    }\n  }, [screenState]);\n\n  if (!dataset?.testid) {\n    dataset = { ...dataset, testid: testIds.navTopLevel } as DOMStringMap;\n  }\n\n  // Only enable scroll inside the left nav.\n  useDisableScrollOutside(leftNavRef.current);\n\n  return (\n    <section\n      className={cx(\n        MotifComponent.HEADER,\n        globalNavDesktopCss,\n        getBackgroundClassName(backgroundColor),\n        className\n      )}\n      {...dataSetToAttributes(dataset)}\n    >\n      <div ref={leftNavRef} className={globalNavLeftNavClassName}>\n        <header className=\"sticky\">\n          <IconButton\n            size={IconButtonSize.LARGE}\n            onClick={onNavClose}\n            className={globalHeaderDesktopNavButtonCss}\n            iconName=\"close\"\n            ref={ref}\n            data-testid={testIds.closeButton}\n          />\n          {/* TODO: Put search field here */}\n        </header>\n        <nav className=\"menu\" data-testid={testIds.navItems}>\n          {globalNav}\n        </nav>\n      </div>\n      <aside className={globalNavHighlightClassName} data-testid={testIds.navHighlights}>\n        {highlight}\n      </aside>\n    </section>\n  );\n};\n\nGlobalNavScreenDesktop.displayName = 'GlobalNavScreenDesktop';\n", "import { cx } from '@emotion/css';\nimport type React from 'react';\nimport { useContext, useRef } from 'react';\n\nimport { useDisableScrollOutside } from '../../../hooks/useDisableBodyScroll';\nimport { ToggleState } from '../../../hooks/useToggleState';\nimport { MotifComponent } from '../../../motif/motifConstants';\nimport { dataSetToAttributes, getBackgroundClassName } from '../../../utils';\nimport { globalLinksClassName, globalNavMobileLocalNavClassName } from '../GlobalHeader.constants';\nimport { GlobalHeaderContext } from '../GlobalHeaderContext';\nimport { testIds } from './GlobalNavScreen.constants';\nimport { globalNavMobileCss, globalNavMobileHeadingCss } from './GlobalNavScreen.styles';\nimport type { GlobalNavScreenMobileProps } from './types';\n\nexport const GlobalNavScreenMobile: React.FC<GlobalNavScreenMobileProps> = ({\n  className,\n  localNavMobile,\n  localNavMobileFooter,\n  globalNav,\n  globalNavHeading,\n  backgroundColor,\n  showMobileGlobalLinks: showGlobalLinks,\n  dataset,\n}) => {\n  const navScreenRef = useRef<HTMLElement>(null);\n  const { screenState } = useContext(GlobalHeaderContext);\n  const inTransition = screenState === (ToggleState.TURNING_OFF || ToggleState.TURNING_ON);\n  useDisableScrollOutside(navScreenRef.current, inTransition);\n\n  const LocalNavSection = () => {\n    return (\n      <section className={globalNavMobileLocalNavClassName}>\n        {localNavMobile}\n        {localNavMobileFooter && (\n          <>\n            <hr />\n            {localNavMobileFooter}\n          </>\n        )}\n      </section>\n    );\n  };\n\n  if (!dataset?.testid) {\n    dataset = { ...dataset, testid: testIds.navTopLevel } as DOMStringMap;\n  }\n\n  return (\n    <nav\n      ref={navScreenRef}\n      className={cx(\n        MotifComponent.HEADER,\n        globalNavMobileCss,\n        getBackgroundClassName(backgroundColor),\n        className\n      )}\n      {...dataSetToAttributes(dataset)}\n    >\n      {(localNavMobile || localNavMobileFooter) && <LocalNavSection />}\n      {showGlobalLinks && (\n        <section className={cx(globalLinksClassName, getBackgroundClassName(backgroundColor))}>\n          <label className={globalNavMobileHeadingCss}>{globalNavHeading}</label>\n          {globalNav}\n        </section>\n      )}\n    </nav>\n  );\n};\n\nGlobalNavScreenMobile.displayName = 'GlobalNavScreenMobile';\n", "import { css } from '@emotion/css';\n\nimport {\n  mobileMediaQuery,\n  nonMobileMediaQuery,\n  nonTwoColumnCollapseMediaQuery,\n  threeColumnCollapseMediaQuery,\n  twoColumnCollapseMediaQuery,\n  ZIndex,\n} from '../../constants';\nimport { m } from '../../motif/m';\nimport { globalHeaderHeight } from '../GlobalHeader';\n\n/** Ensures scrolling to the element does not result in the element being hidden by header */\nexport const blockScrollMarginCss = css`\n  scroll-margin-top: var(--total-header-height);\n`;\n\n// TODO: Remove this. Leaving alone to merge in w/ the break templates.\nexport const blockPadding = 64;\n\nexport const backgroundCss = css`\n  object-fit: cover;\n  position: absolute;\n  inset: 0;\n  width: 100%;\n  height: 100%;\n`;\n\nexport const curtainCss = css`\n  background-color: rgba(0, 0, 0, 0.75);\n  z-index: ${ZIndex.BLOCK_CURTAIN};\n`;\n\nexport const blockCss = css`\n  position: relative;\n  width: 100%;\n  background-color: ${m('--background-color')};\n  background-image: ${m('--background-image')};\n  color: ${m('--foreground-color')};\n\n  /** Styles for the background image if it gets set. Legacy */\n  background-repeat: no-repeat;\n  background-size: cover;\n  background-position: center;\n`;\n\nexport const boundaryCss = css`\n  margin-left: auto;\n  margin-right: auto;\n  width: 100%;\n  padding: ${m('--block-boundary-desktop-padding')};\n  position: relative;\n  z-index: ${ZIndex.BLOCK_BOUNDARY};\n\n  ${mobileMediaQuery} {\n    padding: ${m('--block-boundary-mobile-padding')};\n  }\n`;\n\nexport const headerCss = css`\n  position: relative;\n  margin-left: auto;\n  margin-right: auto;\n  width: 100%;\n  max-width: 75%;\n  padding: ${m('--block-header-desktop-padding')};\n\n  ${mobileMediaQuery} {\n    max-width: unset;\n    padding: ${m('--block-header-mobile-padding')};\n  }\n`;\n\nexport const eyebrowCss = css`\n  color: ${m('--block-eyebrow-color')};\n  font-size: 14px;\n  font-weight: 500;\n  letter-spacing: -0.01em;\n  line-height: 20px;\n  margin: 0;\n  margin-bottom: ${m('--spacing-xs')};\n`;\n\nexport const titleCss = css`\n  /* Overriding h* tags requires double specificity */\n  && {\n    color: ${m('--block-title-color')};\n    font-size: ${m('--block-title-desktop-font-size')};\n    font-stretch: ${m('--block-title-desktop-font-stretch')};\n    line-height: ${m('--block-title-desktop-font-line-height')};\n\n    ${mobileMediaQuery} {\n      font-size: ${m('--block-title-mobile-font-size')};\n      padding: 0;\n    }\n  }\n  margin: 0; /* Resets h* user stylesheet margin. */\n`;\n\nexport const subtitleCss = css`\n  color: ${m('--block-subtitle-color')};\n  /* Resets h* user stylesheet margin. */\n  margin: 0;\n  /* The margin between title/subtitle has to be on subtitle so that it collapses when there's only title. */\n  margin-top: ${m('--spacing-m')};\n`;\n\nexport const callsToActionWrapperCss = css`\n  display: flex;\n  padding: ${m('--spacing-m')} 0;\n\n  > *:not(:last-child) {\n    margin-right: ${m('--spacing-m')};\n    margin-left: 0;\n  }\n\n  *[dir='rtl'] & > *:not(:last-child) {\n    margin-right: 0;\n    margin-left: ${m('--spacing-m')};\n  }\n\n  ${mobileMediaQuery} {\n    padding: ${m('--spacing-m')};\n    flex-direction: column;\n    > *:not(:last-child) {\n      margin-bottom: ${m('--spacing-m')};\n      margin-right: 0;\n    }\n  }\n`;\n\nexport const contentContainerCss = css`\n  --column-span: 2;\n  display: grid;\n  position: relative;\n  grid-row-gap: ${m('--spacing-xl')};\n  grid-column-gap: ${m('--spacing-xl')};\n  padding-left: ${m('--spacing-m')};\n  padding-right: ${m('--spacing-m')};\n  justify-content: center;\n\n  /* We make every column span 2 in desktop mode so we can half-column align. */\n  & > * {\n    grid-column: span var(--column-span);\n  }\n\n  ${mobileMediaQuery} {\n    grid-template-columns: minmax(0, 1fr);\n    grid-row-gap: ${m('--spacing-m')};\n    /* NOTE: grid-column-gap same as desktop */\n    padding-left: 0;\n    padding-right: 0;\n    padding-inline: ${m('--spacing-m')};\n  }\n`;\n\n/** Augments the styles for {@link contentContainerCss} */\nexport const contentContainerStyle1ColumnCss = css`\n  grid-template-columns: repeat(var(--column-span), minmax(0, 1fr));\n`;\n\n/** Augments the styles for {@link contentContainerCss} */\nexport const contentContainerStyle2ColumnCss = css`\n  /* NOTE: We double the columns so we can do half-column adjustments */\n  grid-template-columns: repeat(calc(2 * var(--column-span)), minmax(0, 1fr));\n\n  /* In order to center a case where the last row only has 1 content,\n   * We shift the start of the column.\n   * Note that we don't do this if there's only 1 row.\n   */\n  ${nonMobileMediaQuery} {\n    & > *:not(:first-child):nth-child(2n + 1):last-child {\n      grid-column: var(--column-span) / span var(--column-span);\n    }\n  }\n`;\n\n/** Augments the styles for {@link contentContainerCss} */\nexport const contentContainerStyle3ColumnCss = css`\n  /* Reduce grid column gap width by 8px on 3 column layout  */\n  grid-row-gap: ${m('--spacing-l')};\n  grid-column-gap: ${m('--spacing-l')};\n\n  /* NOTE: We double the columns so we can do half-column adjustments */\n  grid-template-columns: repeat(calc(3 * var(--column-span)), minmax(0, 1fr));\n\n  /* The case where there are actually 3 columns. */\n  ${nonTwoColumnCollapseMediaQuery} {\n    /* Handle the case where the last child can be in 1st position*/\n    & > *:not(:first-child):last-child:nth-child(3n + 1) {\n      grid-column: calc(1 + var(--column-span)) / span var(--column-span);\n    }\n\n    /* When there are 2 children on the last row, we shift over the first one to center both. */\n    & > *:not(:first-child):nth-child(3n + 1):nth-last-child(2) {\n      grid-column: var(--column-span) / span var(--column-span);\n    }\n  }\n\n  ${twoColumnCollapseMediaQuery} {\n    grid-template-columns: repeat(calc(2 * var(--column-span)), minmax(0, 1fr));\n\n    ${nonMobileMediaQuery} {\n      & > *:not(:first-child):nth-child(2n + 1):last-child {\n        grid-column: var(--column-span) / span var(--column-span);\n      }\n    }\n  }\n\n  /** TODO: Figure out if we can remove this. */\n  ${mobileMediaQuery} {\n    grid-template-columns: repeat(var(--column-span), minmax(0, 1fr));\n  }\n`;\n\n/** Augments the styles for {@link contentContainerCss} */\nexport const contentContainerStyle4ColumnCss = css`\n  /* Reduce grid column gap width by 8px on 4 column layout  */\n  grid-row-gap: ${m('--spacing-l')};\n  grid-column-gap: ${m('--spacing-l')};\n\n  /* NOTE: We double the columns so we can do half-column adjustments */\n  grid-template-columns: repeat(calc(4 * var(--column-span)), minmax(0, 1fr));\n\n  ${threeColumnCollapseMediaQuery} {\n    grid-template-columns: repeat(calc(3 * var(--column-span)), minmax(0, 1fr));\n  }\n\n  ${twoColumnCollapseMediaQuery} {\n    grid-template-columns: repeat(calc(2 * var(--column-span)), minmax(0, 1fr));\n\n    ${nonMobileMediaQuery} {\n      & > *:not(:first-child):nth-child(2n + 1):last-child {\n        grid-column: var(--column-span) / span var(--column-span);\n      }\n    }\n  }\n\n  ${mobileMediaQuery} {\n    grid-template-columns: repeat(var(--column-span), minmax(0, 1fr));\n  }\n`;\n\nexport const fullHeightBlockCss = css`\n  min-height: calc(100vh - ${globalHeaderHeight}px);\n  display: flex;\n  background-size: cover;\n  flex-direction: column;\n`;\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery } from '../../constants';\nimport { ZIndex } from '../../constants/zIndex';\nimport { m } from '../../motif/m';\nimport { globalHeaderHeight } from '../GlobalHeader';\n\nconst linkBeforeCss = `\n  content: '';\n  position: absolute;\n  left: calc(-1 * ${m('--spacing-m')});\n  top: 0;\n  height: 100%;\n  width: ${m('--spacing-xxs')};\n  background: ${m('--foreground-color')};\n  border-radius: 0 ${m('--border-radius-s')} ${m('--border-radius-s')} 0;\n\n  ${mobileMediaQuery} {\n    background: ${m('--side-navigation-mobile-fg-active-color')};\n  }\n`;\n\n/** Value taken from designs. Jira ticket: https://jira.sc-corp.net/browse/WEBP-9654 */\nexport const desktopSideNavWidthPx = 300;\n\nexport const wrapperCss = css`\n  background-color: ${m('--side-navigation-desktop-bar-bg-color')};\n  z-index: ${ZIndex.SIDENAV};\n\n  ${nonMobileMediaQuery} {\n    box-shadow: ${m('--side-navigation-desktop-box-shadow')};\n    flex: 0 0 ${desktopSideNavWidthPx}px;\n\n    & > * {\n      position: sticky;\n      top: ${globalHeaderHeight}px;\n    }\n  }\n\n  ${mobileMediaQuery} {\n    position: sticky;\n    top: ${globalHeaderHeight}px;\n    width: 100%;\n    box-shadow: ${m('--box-shadow-m')};\n  }\n`;\n\nexport const wrapperShadowCss = css`\n  ${mobileMediaQuery} {\n    box-shadow: ${m('--box-shadow-xs')};\n  }\n`;\n\nexport const containerCss = css`\n  font-size: ${m('--action-desktop-font-size')};\n  line-height: ${m('--action-desktop-font-line-height')};\n  padding-block-start: ${m('--spacing-m')};\n  padding-inline: ${m('--spacing-xl')};\n\n  ${mobileMediaQuery} {\n    width: auto;\n    font-size: ${m('--action-mobile-font-size')};\n    line-height: ${m('--action-mobile-font-line-height')};\n    background-color: ${m('--side-navigation-mobile-bg-color')};\n    padding: ${m('--spacing-s')} ${m('--spacing-xl')};\n  }\n\n  & ul {\n    list-style: none;\n    padding: 0;\n    margin: 0;\n  }\n\n  & > ul > li {\n    padding-block: ${m('--spacing-m')};\n  }\n\n  & > ul > li > ul > li {\n    font-size: ${m('--action-desktop-font-size')};\n    line-height: ${m('--action-desktop-font-line-height')};\n    margin-top: ${m('--spacing-m')};\n    margin-inline-start: ${m('--spacing-xl')};\n    position: relative;\n\n    ${mobileMediaQuery} {\n      font-size: ${m('--action-mobile-font-size')};\n      line-height: ${m('--action-mobile-font-line-height')};\n    }\n  }\n\n  & > ul > li > button {\n    padding: 0;\n    font-family: 'Graphik', Helvetica, sans-serif;\n    display: flex;\n    color: ${m('--action-default-color')};\n    text-decoration: none;\n    font-weight: ${m('--action-desktop-font-weight')};\n    background-color: transparent;\n    border: 0;\n    font-size: ${m('--action-desktop-font-size')};\n    line-height: ${m('--action-desktop-font-line-height')};\n    text-align: left;\n    cursor: pointer;\n    width: 100%;\n    justify-content: space-between;\n    align-items: center;\n    min-height: 22px;\n\n    *[dir='rtl'] & {\n      text-align: right;\n    }\n\n    ${mobileMediaQuery} {\n      font-size: ${m('--action-mobile-font-size')};\n      line-height: ${m('--action-mobile-font-line-height')};\n      justify-content: space-between;\n      color: ${m('--side-navigation-mobile-fg-color')};\n    }\n  }\n`;\n\nexport const linkCss = css`\n  a {\n    color: ${m('--action-default-color')};\n    display: block;\n    text-decoration: none;\n    font-size: ${m('--action-desktop-font-size')};\n    line-height: 140%;\n\n    @media (hover: hover) {\n      &:hover {\n        &:before {\n          ${linkBeforeCss}\n        }\n      }\n    }\n\n    *[dir='rtl'] & {\n      &:before {\n        right: calc(-1 * ${m('--spacing-m')});\n        border-radius: ${m('--border-radius-s')} 0 0 ${m('--border-radius-s')};\n      }\n    }\n\n    ${mobileMediaQuery} {\n      color: ${m('--side-navigation-mobile-fg-color')};\n    }\n  }\n`;\n\nexport const caratCss = css`\n  font-size: ${m('--action-desktop-font-size')};\n\n  & svg:first-child {\n    width: 22px;\n    height: 22px;\n    margin: -6px;\n  }\n\n  & svg:nth-child(2) {\n    display: none;\n  }\n\n  & svg:nth-child(3) {\n    display: none;\n  }\n\n  *[dir='rtl'] & {\n    & svg:nth-child(2) {\n      display: none;\n    }\n\n    & svg:nth-child(3) {\n      display: none;\n    }\n  }\n`;\n\nexport const activeLinkCss = css`\n  position: relative;\n  font-weight: ${m('--action-desktop-font-weight')};\n\n  a {\n    color: ${m('--foreground-color')};\n\n    ${mobileMediaQuery} {\n      color: ${m('--side-navigation-mobile-fg-active-color')};\n    }\n  }\n\n  &:before {\n    ${linkBeforeCss}\n  }\n\n  *[dir='rtl'] & {\n    &:before {\n      right: calc(-1 * ${m('--spacing-m')});\n      border-radius: ${m('--border-radius-s')} 0 0 ${m('--border-radius-s')};\n    }\n  }\n`;\n\nexport const sectionButtonCss = css`\n  ${nonMobileMediaQuery} {\n    display: none;\n  }\n\n  ${mobileMediaQuery} {\n    background-color: ${m('--side-navigation-mobile-bar-bg-color')};\n    color: ${m('--side-navigation-mobile-bar-fg-color')};\n    border: 0;\n    padding: 0;\n    font: inherit;\n    outline: inherit;\n    width: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    padding-inline: ${m('--spacing-xl')};\n    height: 48px;\n    margin: auto;\n\n    & > span:first-child {\n      font-family: 'Graphik', Helvetica, sans-serif;\n      font-size: ${m('--action-mobile-font-size')};\n      line-height: ${m('--action-mobile-font-line-height')};\n      font-weight: ${m('--action-desktop-font-weight')};\n      text-overflow: ellipsis;\n      overflow: hidden;\n      white-space: nowrap;\n    }\n  }\n`;\n\nexport const sideNavIconCss = css`\n  fill: ${m('--action-default-color')};\n  margin: -4px -12px;\n\n  ${mobileMediaQuery} {\n    fill: ${m('--side-navigation-mobile-fg-color')};\n  }\n`;\n\nexport const sideNavMobileIconCss = css`\n  width: 22px;\n  height: 22px;\n  margin: -6px;\n  fill: ${m('--side-navigation-mobile-toggler-icon-color')};\n`;\n", "import { css } from '@emotion/css';\n\nimport { maxWidth, mobileMediaQuery, White } from '../../constants';\nimport { m } from '../../motif/m';\nimport { desktopSideNavWidthPx } from '../SideNavigation/styles';\n\nexport const containerCss = css`\n  background-color: ${m('--background-color')};\n  position: relative;\n  width: 100%;\n`;\n\n/** Need set bg to transparent if bg img or video */\nexport const pageTransparentBgCss = css`\n  background-color: transparent;\n`;\n\nexport const backgroundImageCss = (\n  backgroundImage?: string,\n  mobileBackgroundImage?: string\n): string | undefined =>\n  backgroundImage\n    ? css`\n        background: center / cover url(${backgroundImage});\n\n        ${mobileMediaQuery} {\n          background: center / cover\n            url(${mobileBackgroundImage ? mobileBackgroundImage : backgroundImage});\n        }\n      `\n    : undefined;\n\nexport const fixedBackgroundImageCss = css`\n  background-attachment: fixed;\n`;\n\nexport const backgroundMediaCss = css`\n  position: absolute;\n  object-fit: cover;\n  height: 100%;\n  width: 100%;\n  z-index: -1;\n`;\n\nexport const fixedBackgroundMediaCss = css`\n  object-fit: cover;\n  width: 100vw;\n  height: 100vh;\n  position: fixed;\n  top: 0;\n  left: 0;\n  z-index: -1;\n`;\n\n// TODO: we're forcing the background to white as we don't have validated designs\n// for other themes and background-color only applies Block and Navigator (not Page).\n// possible solution: apply the background of the first block\nexport const sideNavigationWrapperCss = css`\n  display: flex;\n  justify-content: center;\n\n  background-color: ${White};\n\n  ${mobileMediaQuery} {\n    flex-direction: column;\n  }\n`;\n\nexport const sideNavigationWrapperBlocksCss = css`\n  flex: 0 1 ${maxWidth - desktopSideNavWidthPx}px;\n  min-width: 0px;\n\n  ${mobileMediaQuery} {\n    flex: none;\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, ZIndex } from '../../constants';\nimport { m } from '../../motif/m';\n\nconst breakHeightCss = css`\n  height: ${m('--break-total-desktop-height')};\n  ${mobileMediaQuery} {\n    height: ${m('--break-total-mobile-height')};\n  }\n`;\n\nconst breakHalfHeightCss = css`\n  height: ${m('--break-half-desktop-height')};\n  ${mobileMediaQuery} {\n    height: ${m('--break-half-mobile-height')};\n  }\n`;\n\nexport const breakCss = css`\n  pointer-events: none;\n  position: relative;\n  z-index: ${ZIndex.BREAK};\n  ${breakHeightCss}\n`;\n\n/**\n * Spreads the pattern to fill the break.\n *\n * Accounts for the issue where rendering SVGs has floating point rounding that sometimes doesn't\n * fully cover the container, so we expand the image.\n *\n * Feels like there are always weird edgecases with weird zoom levels, so the more overlap the\n * better the outcome looks.\n */\nexport const patternCss = css`\n  width: 100%;\n  height: calc(100% + 6px); /* Adds 3x of play below and above. */\n  position: relative;\n  top: -3px; /* Spreads the extra pixels up and down. */\n`;\n\nexport const topOverlaidCss = css`\n  margin-top: calc(0px - ${m('--break-total-desktop-height')});\n\n  ${mobileMediaQuery} {\n    margin-top: calc(0px - ${m('--break-total-mobile-height')});\n  }\n`;\n\nexport const bottomOverlaidCss = css`\n  margin-bottom: calc(0px - ${m('--break-total-desktop-height')});\n\n  ${mobileMediaQuery} {\n    margin-bottom: calc(0px - ${m('--break-total-mobile-height')});\n  }\n`;\n\nexport const topHalfOverlaidCss = css`\n  margin-top: calc(0px - ${m('--break-half-desktop-height')});\n\n  ${mobileMediaQuery} {\n    margin-top: calc(0px - ${m('--break-half-mobile-height')});\n  }\n`;\n\nexport const bottomHalfOverlaidCss = css`\n  margin-bottom: calc(0px - ${m('--break-half-desktop-height')});\n\n  ${mobileMediaQuery} {\n    margin-bottom: calc(0px - ${m('--break-half-mobile-height')});\n  }\n`;\n\nexport const spacerWrapperCss = css`\n  pointer-events: none;\n  width: 100%;\n`;\n\nexport const spacerHeightFullCss = breakHeightCss;\n\nexport const spacerHeightHalfCss = breakHalfHeightCss;\n", "import type { FC } from 'react';\n\nimport type { BreakPatternProps } from './breakPatternTypes';\n\nexport const HeadBreak: FC<BreakPatternProps> = props => {\n  const { topColor, bottomColor, ...rest } = props;\n  return (\n    <svg\n      width=\"1440\"\n      height=\"96\"\n      viewBox=\"0 16 1440 82\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      preserveAspectRatio=\"none\"\n      role=\"presentation\"\n      {...rest}\n    >\n      <path\n        d=\"M0 0V96H1C228.5 44 469.726 17 719.44 17C969.155 17 1211 44 1439 96H1440V0H0Z\"\n        fill={topColor}\n      />\n      <path\n        d=\"M719.383 16C470.108 16 228.827 44.0273 0 96H1440C1210.8 43.8727 969.104 16 719.383 16Z\"\n        fill={bottomColor}\n      />\n    </svg>\n  );\n};\n", "import type { FC } from 'react';\n\nimport type { BreakPatternProps } from './breakPatternTypes';\n\nexport const HeadFlippedBreak: FC<BreakPatternProps> = props => {\n  const { topColor, bottomColor, ...rest } = props;\n  return (\n    <svg\n      width=\"1440\"\n      height=\"96\"\n      viewBox=\"0 0 1440 80\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      preserveAspectRatio=\"none\"\n      role=\"presentation\"\n      {...rest}\n    >\n      <path\n        d=\"M719.383 80C470.108 80 228.827 51.9727 0 0H1440C1210.8 52.1273 969.104 80 719.383 80Z\"\n        fill={topColor}\n      />\n      <path\n        d=\"M0 96V0H1C228.5 52 469.726 79 719.44 79C969.155 79 1211 52 1439 0H1440V96H0Z\"\n        fill={bottomColor}\n      />\n    </svg>\n  );\n};\n", "import type { FC } from 'react';\n\nimport type { BreakPatternProps } from './breakPatternTypes';\n\nexport const SkirtBreak: FC<BreakPatternProps> = props => {\n  const { topColor, bottomColor, ...rest } = props;\n  return (\n    <svg\n      width=\"1440\"\n      height=\"96\"\n      viewBox=\"0 0 1440 82\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      preserveAspectRatio=\"none\"\n      role=\"presentation\"\n      {...rest}\n    >\n      <path\n        d=\"M314.31 47.5299C510.98 36.2699 546.9 80.1799 818.11 81.2999C935\n        82.0499 1223.03 67.04 1440 1V0H0V54.2899C27.99 55.7899 117.64 58.7899\n        314.31 47.5399V47.5299Z\"\n        fill={topColor}\n      />\n      <path\n        d=\"M818.11 80.31C546.9 79.18 510.98 35.28 314.31 46.54C117.64 57.8 27.99\n        54.8 0 53.29V96H1440V0C1223.03 66.04 935 81.05 818.11 80.3V80.31Z\"\n        fill={bottomColor}\n      />\n    </svg>\n  );\n};\n", "/* eslint-disable max-len */\nimport type { FC } from 'react';\n\nimport type { BreakPatternProps } from './breakPatternTypes';\n\nexport const Skirt2Break: FC<BreakPatternProps> = props => {\n  const { topColor, bottomColor, ...rest } = props;\n  return (\n    <svg\n      width=\"1440\"\n      height=\"96\"\n      viewBox=\"0 23 1440 74\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      preserveAspectRatio=\"none\"\n      role=\"presentation\"\n      {...rest}\n    >\n      <path\n        d=\"m0 0v68.9c36.61-9.2 77.66-17.6 124.24-24.74 186.4-28.54 307.39-13.77\n        404.55-1.53 41.35 6.13 84.69 9.78 129.18 10.87 76-0.59 152.99-6.71 228.44-18.16\n        58.45-8.07 104.48-13.96 144.95-7.75 14.85 2.55 28.07 6.61 38.89 11.94s19.03\n        11.82 24.13 19.09c3.89 6.62 11.02 12.48 20.83 17.15 9.77 2.58 21.07 3.81 32.86\n        3.58 10.9-0.11 23.03-0.41 36.02-0.7 47.34-1.22 158.46 2.61 197.59 7.05\n        30.03 3.3984 50.44 8.2328 57.32 10.3h1v-96h-1440z\"\n        fill={topColor}\n      />\n      <path\n        d=\"m1184.1 77.65c-12.99 0.29-25.12 0.59-36.02 0.7-11.79\n        0.23-23.09-1-32.86-3.58-9.81-4.67-16.94-10.53-20.83-17.15-5.1-7.27-13.31-13.76-24.13-19.09s-24.04-9.39-38.89-11.94c-40.47-6.21-86.5-0.32-144.95\n        7.75-75.45 11.45-152.44 17.57-228.44 18.16-44.49-1.09-87.83-4.74-129.18-10.87-97.16-12.24-218.15-27.01-404.55 1.53-46.58 7.14-87.63 15.54-124.24\n        24.74v28.1h1440s-19.18-6.87-58.32-11.3c-39.13-4.44-150.25-8.27-197.59-7.05z\"\n        fill={bottomColor}\n      />\n    </svg>\n  );\n};\n", "import type { FC } from 'react';\n\nimport type { BreakPatternProps } from './breakPatternTypes';\n\nexport const StraightBreak: FC<BreakPatternProps> = props => {\n  const { topColor, bottomColor, ...rest } = props;\n  return (\n    <div\n      {...rest}\n      style={{\n        background: `linear-gradient(\n        to bottom,\n        ${topColor} 0%,\n        ${topColor} 50%,\n        ${bottomColor} 50%,\n        ${bottomColor} 100%\n      )`,\n      }}\n    />\n  );\n};\n", "import type { ValueOf } from '../../types';\n\nexport const Template = {\n  Straight: 'Straight',\n  Head: 'Head',\n  HeadFlipped: 'HeadFlipped',\n  Skirt: 'Skirt',\n  Skirt2: 'Skirt2',\n} as const;\n\nexport type Template = ValueOf<typeof Template>;\n\nexport enum BreakOverlayType {\n  BOTTOM = 'bottom',\n  BOTTOM_HALF = 'bottomHalf',\n  NONE = 'none',\n  TOP = 'top',\n  TOP_HALF = 'topHalf',\n  TOP_HALF_AND_BOTTOM_HALF = 'topAndBottomHalfs',\n}\n", "import { BreakOverlayType, Template } from './types';\n\n/**\n * This util function is used to determine the amount that a 'Break' component should overlay the\n * previous or next block\n */\nexport const getBreakOverlayType = ({\n  template,\n  isTopTransparent,\n  isBottomTransparent,\n  isOverlaid,\n}: {\n  template: Template;\n  isTopTransparent: boolean;\n  isBottomTransparent: boolean;\n  isOverlaid?: boolean;\n}): BreakOverlayType => {\n  if (!template) return BreakOverlayType.NONE;\n\n  if (isTopTransparent && isBottomTransparent) {\n    return BreakOverlayType.NONE;\n  }\n\n  const isTransparentTopOnly = isTopTransparent && !isBottomTransparent;\n  const isTransparentBottomOnly = !isTopTransparent && isBottomTransparent;\n\n  if (isOverlaid) {\n    if (template === Template.Straight) {\n      return BreakOverlayType.TOP_HALF_AND_BOTTOM_HALF;\n    }\n\n    if (isTransparentTopOnly) {\n      return BreakOverlayType.TOP;\n    }\n\n    if (isTransparentBottomOnly) {\n      return BreakOverlayType.BOTTOM;\n    }\n\n    return BreakOverlayType.TOP_HALF_AND_BOTTOM_HALF;\n  }\n\n  if (isTransparentTopOnly) {\n    return template === Template.Straight ? BreakOverlayType.TOP_HALF : BreakOverlayType.TOP;\n  }\n\n  if (isTransparentBottomOnly) {\n    return template === Template.Straight ? BreakOverlayType.BOTTOM_HALF : BreakOverlayType.BOTTOM;\n  }\n\n  return BreakOverlayType.NONE;\n};\n", "import { cx } from '@emotion/css';\nimport type { FC, ReactNode } from 'react';\n\nimport type { BackgroundColor } from '../../constants';\nimport { getMotifSchemeForLegacyBackgroundColor, getMotifVariableValue } from '../../motif';\nimport { MotifComponent, MotifScheme } from '../../motif/motifConstants';\nimport { useMotifStyles } from '../../motif/motifReactUtils';\nimport {\n  bottomHalfOverlaidCss,\n  bottomOverlaidCss,\n  breakCss,\n  patternCss,\n  topHalfOverlaidCss,\n  topOverlaidCss,\n} from './Break.styled';\nimport { HeadBreak, HeadFlippedBreak, Skirt2Break, SkirtBreak, StraightBreak } from './templates';\nimport { BreakOverlayType, Template } from './types';\nimport { getBreakOverlayType } from './utils';\n\nexport interface BreakProps {\n  template: Template;\n  topColor?: BackgroundColor | MotifScheme;\n  bottomColor?: BackgroundColor | MotifScheme;\n  isOverlaid?: boolean;\n}\n\n/** Spacer between blocks. */\nexport const Break: FC<BreakProps> = ({ template, topColor, bottomColor, isOverlaid }) => {\n  useMotifStyles(MotifComponent.BREAK);\n\n  const isTopTransparent = !topColor;\n  const isBottomTransparent = !bottomColor;\n\n  const topScheme = getMotifSchemeForLegacyBackgroundColor(topColor);\n  const bottomScheme = getMotifSchemeForLegacyBackgroundColor(bottomColor);\n  const topValue = isTopTransparent\n    ? 'transparent'\n    : getMotifVariableValue(topScheme, '--background-color') ?? 'transparent';\n  const bottomValue = isBottomTransparent\n    ? 'transparent'\n    : getMotifVariableValue(bottomScheme, '--background-color') ?? 'transparent';\n\n  let pattern: ReactNode;\n\n  switch (template) {\n    case Template.Head:\n      pattern = <HeadBreak className={patternCss} topColor={topValue} bottomColor={bottomValue} />;\n      break;\n    case Template.HeadFlipped:\n      pattern = (\n        <HeadFlippedBreak className={patternCss} topColor={topValue} bottomColor={bottomValue} />\n      );\n      break;\n    case Template.Skirt:\n      pattern = <SkirtBreak className={patternCss} topColor={topValue} bottomColor={bottomValue} />;\n      break;\n    case Template.Skirt2:\n      pattern = (\n        <Skirt2Break className={patternCss} topColor={topValue} bottomColor={bottomValue} />\n      );\n      break;\n    case Template.Straight:\n      pattern = (\n        <StraightBreak className={patternCss} topColor={topValue} bottomColor={bottomValue} />\n      );\n      break;\n    default:\n      break;\n  }\n\n  if (!pattern) return null;\n  if (isTopTransparent && isBottomTransparent) return null;\n\n  // Check to see if this 'Break' will overlay another block/component\n  // and, therefore, require a negative margin\n  const breakOverlayType = getBreakOverlayType({\n    template,\n    isTopTransparent,\n    isBottomTransparent,\n    isOverlaid,\n  });\n\n  return (\n    <div\n      className={cx(\n        MotifComponent.BREAK,\n        // It doesn't matter which background class name is used here as all set global variables to the same global colours\n        // This is just set as a backup in case there is no background class name set higher up in the DOM, in which case\n        // the global variables would not be set\n        // TODO: remove this when global color vars do not require a background class\n        MotifScheme.DEFAULT,\n        breakCss,\n        {\n          [topOverlaidCss]: breakOverlayType === BreakOverlayType.TOP,\n          [bottomOverlaidCss]: breakOverlayType === BreakOverlayType.BOTTOM,\n          [topHalfOverlaidCss]:\n            breakOverlayType === BreakOverlayType.TOP_HALF_AND_BOTTOM_HALF ||\n            breakOverlayType === BreakOverlayType.TOP_HALF,\n          [bottomHalfOverlaidCss]:\n            breakOverlayType === BreakOverlayType.TOP_HALF_AND_BOTTOM_HALF ||\n            breakOverlayType === BreakOverlayType.BOTTOM_HALF,\n        }\n      )}\n      data-testid={`break-${template?.toLowerCase()}`}\n    >\n      {pattern}\n    </div>\n  );\n};\n\nBreak.displayName = 'Break';\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { spacerHeightFullCss, spacerHeightHalfCss, spacerWrapperCss } from './Break.styled';\nimport { BreakOverlayType } from './types';\n\nexport interface BreakSpacerProps {\n  type: BreakOverlayType;\n  location: 'top' | 'bottom';\n}\n\nexport const BreakSpacer: FC<BreakSpacerProps> = ({ type, location }) => {\n  // Uses Break styles.\n  useMotifStyles(MotifComponent.BREAK);\n\n  if (!type || type === BreakOverlayType.NONE) return null;\n\n  // If this component is placed at the top of a block, check if the bottom of the previous break overlays the block\n  // If this component is placed at the bottom of a block, check if the top of the next break overlays the block\n  const isFullHeight =\n    (location === 'top' && type === BreakOverlayType.BOTTOM) ||\n    (location === 'bottom' && type === BreakOverlayType.TOP);\n\n  const isHalfHeight =\n    type === BreakOverlayType.TOP_HALF_AND_BOTTOM_HALF ||\n    (location === 'top' && type === BreakOverlayType.BOTTOM_HALF) ||\n    (location === 'bottom' && type === BreakOverlayType.TOP_HALF);\n\n  if (!isFullHeight && !isHalfHeight) return null;\n\n  return (\n    <div\n      className={cx(spacerWrapperCss, {\n        [spacerHeightFullCss]: isFullHeight,\n        [spacerHeightHalfCss]: isHalfHeight,\n      })}\n      data-testid=\"break-spacer\"\n    />\n  );\n};\n\nBreakSpacer.displayName = 'BreakSpacer';\n", "import { cx } from '@emotion/css';\nimport type { FC, MouseEventHandler, ReactEventHandler } from 'react';\nimport { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';\n\nimport type { BaseComponentProps, ImageSources } from '../../../types';\nimport type { OnNavigateHandler } from '../../../types/activationEvents';\nimport { Icon } from '../../Icon';\nimport { Media } from '../../Media';\nimport { PrimitivesContext } from '../../Primitives';\nimport { isVideoPlaying } from '../../Video';\nimport {\n  arrowCss,\n  bodyCss,\n  bodyOnlyClampCss,\n  cardCss,\n  cardLandscapeWidthCss,\n  cardPortraitWidthCss,\n  image11Css,\n  image32Css,\n  image169Css,\n  imageCss,\n  imageLoadingCss,\n  infoElementCss,\n  linkCss,\n  mediaContainerCss,\n  singleViewLandscapeWidthCss,\n  subtitleCss,\n  subtitleOnlyClampCss,\n  textCss,\n  textOverlapCss,\n  textPlayerControlsCss,\n  textWrapperCss,\n  textWrapperOverlapCss,\n  titleCss,\n  titleOnlyClampCss,\n  videoCss,\n  videoPlayerControlsCss,\n} from './CarouselCardItem.styles';\nimport type { CarouselV3AspectRatios } from './types';\n\nexport interface CarouselCardItemProps extends BaseComponentProps {\n  aspectRatio?: CarouselV3AspectRatios;\n  title?: string;\n  subtitle?: string;\n  body?: string;\n  // click settings\n  url?: string;\n  openNewTab?: boolean;\n  onClick?: OnNavigateHandler;\n  // image settings\n  imgSrcs?: ImageSources;\n  imgAltText?: string;\n  // video setings\n  videoSource?: string;\n  mobileVideoSource?: string;\n  posterSource?: string;\n  captionsSource?: string;\n  onTimeUpdate?: ReactEventHandler<HTMLVideoElement>;\n  onPlay?: ReactEventHandler<HTMLVideoElement>;\n  // carousel controls\n  shouldLoad?: boolean;\n  isVisible?: boolean;\n  isSingleView?: boolean;\n  autoplay?: boolean;\n  showVideoControls?: boolean;\n}\n\nexport const CarouselCardItem: FC<CarouselCardItemProps> = ({\n  aspectRatio,\n  autoplay,\n  body,\n  captionsSource,\n  imgAltText,\n  imgSrcs,\n  shouldLoad,\n  onPlay,\n  onTimeUpdate,\n  openNewTab,\n  posterSource,\n  isVisible,\n  showVideoControls,\n  subtitle,\n  title,\n  url,\n  videoSource,\n  mobileVideoSource,\n  onClick,\n  isSingleView = false,\n  className,\n}) => {\n  const [media, setMedia] = useState<HTMLElement>();\n  const mediaCallback = useCallback((elt: HTMLElement) => setMedia(elt), []);\n  const didLoad = useRef(shouldLoad);\n  const { Anchor } = useContext(PrimitivesContext);\n  const isTextOverlap = !videoSource || !showVideoControls;\n\n  const onClickWrapped = useCallback<MouseEventHandler>(\n    event => {\n      url && onClick && onClick(url, event);\n    },\n    [url, onClick]\n  );\n\n  // isVisible indicates if any part of the item is on screen\n  // It allows us to lazy load images and pause videos when they leave the screen\n  useEffect(() => {\n    if (shouldLoad) {\n      didLoad.current = true;\n    }\n  }, [shouldLoad]);\n\n  useEffect(() => {\n    if (media && media.tagName === 'VIDEO') {\n      const video = media as HTMLVideoElement;\n\n      if (!isVisible) {\n        if (isVideoPlaying(video)) {\n          video.pause();\n        }\n        video.tabIndex = -1;\n\n        if (!showVideoControls) {\n          video.currentTime = 0;\n        }\n      } else {\n        if (!showVideoControls) {\n          try {\n            void video.play();\n          } catch (_error) {\n            // the video may be outside the document at this point\n          }\n        }\n        video.tabIndex = 0;\n      }\n    }\n  }, [isVisible, showVideoControls, media]);\n\n  const hasBodyContent = !!(title || subtitle || body);\n\n  const mediaElement = useMemo(() => {\n    const mediaCss = cx(\n      videoSource ? videoCss : imageCss,\n      showVideoControls && hasBodyContent ? videoPlayerControlsCss : null\n    );\n\n    return (\n      <Media\n        showVideoControls={showVideoControls}\n        videoSource={videoSource}\n        mobileVideoSource={mobileVideoSource}\n        posterSource={posterSource}\n        onPlay={onPlay}\n        captionsSource={captionsSource}\n        isBackgroundVideo={autoplay}\n        onTimeUpdate={onTimeUpdate}\n        altText={imgAltText}\n        imgSrcs={imgSrcs}\n        className={mediaCss}\n        ref={mediaCallback}\n        isDraggable={false}\n      />\n    );\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [\n    videoSource,\n    showVideoControls,\n    posterSource,\n    onPlay,\n    captionsSource,\n    autoplay,\n    onTimeUpdate,\n    mediaCallback,\n  ]);\n\n  const mediaContent = (\n    <div\n      className={cx(\n        mediaContainerCss,\n        { [image32Css]: aspectRatio === '3:2' },\n        { [image11Css]: aspectRatio === '1:1' },\n        { [image169Css]: aspectRatio === '16:9' },\n        { [imageLoadingCss]: !isVisible && !didLoad.current }\n      )}\n    >\n      {(isVisible || didLoad.current) && mediaElement}\n    </div>\n  );\n\n  const bodyContent = (\n    <div className={cx(textWrapperCss, { [textWrapperOverlapCss]: isTextOverlap })}>\n      <div\n        className={cx(textCss, {\n          [textOverlapCss]: isTextOverlap,\n          [textPlayerControlsCss]: showVideoControls && hasBodyContent,\n        })}\n      >\n        {!!url && <Icon className={arrowCss} name=\"arrow-right\" />}\n        {title && (\n          <h5\n            className={cx(infoElementCss, titleCss, { [titleOnlyClampCss]: !subtitle && !body })}\n            title={title}\n          >\n            {title}\n          </h5>\n        )}\n        {subtitle && (\n          <h6\n            className={cx(infoElementCss, subtitleCss, { [subtitleOnlyClampCss]: !title && !body })}\n            title={subtitle}\n          >\n            {subtitle}\n          </h6>\n        )}\n        {body && (\n          <p\n            className={cx(infoElementCss, bodyCss, { [bodyOnlyClampCss]: !title && !subtitle })}\n            title={body}\n          >\n            {body}\n          </p>\n        )}\n      </div>\n    </div>\n  );\n\n  const commonCss = {\n    [cardLandscapeWidthCss]: aspectRatio !== '9:16' && !isSingleView,\n    [singleViewLandscapeWidthCss]: aspectRatio !== '9:16' && isSingleView,\n    [cardPortraitWidthCss]: aspectRatio === '9:16',\n  };\n\n  if (url) {\n    return (\n      <Anchor\n        href={url}\n        {...(openNewTab ? { target: '_blank', rel: 'noopener' } : {})}\n        className={cx(cardCss, linkCss, commonCss, className)}\n        tabIndex={isVisible ? undefined : -1}\n        onClick={onClickWrapped}\n        draggable=\"false\"\n        data-test-id=\"sdsm-carousel-card\"\n      >\n        {mediaContent}\n        {hasBodyContent && bodyContent}\n      </Anchor>\n    );\n  }\n\n  return (\n    <div className={cx(cardCss, commonCss, className)} data-test-id=\"sdsm-carousel-card\">\n      {mediaContent}\n      {hasBodyContent && bodyContent}\n    </div>\n  );\n};\n\nCarouselCardItem.displayName = 'CarouselCardItem';\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery } from '../../../constants';\nimport { h5Css, h6Css, m, p3Css } from '../../../motif';\nimport { mediaQueryForRange } from '../../../utils';\n\nconst cardTextHeight = '120px';\nconst arrowIconSize = '24px';\n\nconst lineClamp = (lines: number) => css`\n  display: -webkit-box;\n  -webkit-line-clamp: ${lines};\n  -webkit-box-orient: vertical;\n  text-overflow: ellipsis;\n  overflow: hidden;\n`;\n\nexport const cardCss = css`\n  border-radius: ${m('--border-radius-l')};\n  box-shadow: ${m('--carousel-card-box-shadow')};\n  cursor: pointer;\n  overflow: hidden;\n  position: relative;\n  user-select: none;\n\n  &:hover svg {\n    fill: ${m('--action-hover-color')};\n  }\n`;\n\nexport const linkCss = css`\n  color: ${m('--carousel-card-fg-color')};\n  display: block;\n  text-decoration: none;\n`;\n\nexport const mediaContainerCss = css`\n  /**\n   * To help video controls extend full width\n   * https://github.sc-corp.net/Snapchat/marketing-web/pull/2555#discussion_r5071157\n  */\n  position: relative;\n  aspect-ratio: 9 / 16;\n\n  > picture {\n    pointer-events: none;\n  }\n\n  /** To allow object-fit cover for the video element  */\n  > div {\n    height: 100%;\n  }\n\n  & img {\n    aspect-ratio: 16 / 9;\n  }\n`;\n\nexport const image169Css = css`\n  aspect-ratio: 16 / 9;\n\n  & img {\n    aspect-ratio: 16 / 9;\n  }\n`;\n\nexport const image32Css = css`\n  aspect-ratio: 3 / 2;\n\n  & img {\n    aspect-ratio: 16 / 9;\n  }\n`;\n\nexport const image11Css = css`\n  aspect-ratio: 1 / 1;\n\n  & img {\n    aspect-ratio: 16 / 9;\n  }\n`;\n\nexport const imageLoadingCss = css`\n  background-color: rgb(232, 232, 235);\n  overflow: hidden;\n  position: relative;\n\n  &::before {\n    animation: card-skeleton 2s infinite;\n    background: linear-gradient(0.5turn, rgb(232, 232, 235), #fff, rgb(232, 232, 235));\n    content: '';\n    height: 100%;\n    inset: 0;\n    opacity: 0.8;\n    pointer-events: none;\n    position: absolute;\n    transform: translateX(-100%);\n  }\n\n  @keyframes card-skeleton {\n    0% {\n      transform: translateY(-100%);\n    }\n    100% {\n      transform: translateY(100%);\n    }\n  }\n`;\n\nexport const cardPortraitWidthCss = css`\n  width: ${m('--carousel-card-portrait-desktop-width')};\n\n  ${mobileMediaQuery} {\n    width: ${m('--carousel-card-portrait-mobile-width')};\n  }\n`;\n\nexport const cardLandscapeWidthCss = css`\n  width: ${m('--carousel-card-landscape-square-desktop-width')};\n\n  ${mobileMediaQuery} {\n    width: ${m('--carousel-card-landscape-square-mobile-width')};\n  }\n\n  ${mediaQueryForRange({ max: 345 })} {\n    width: ${m('--carousel-card-landscape-square-small-mobile-width')};\n  }\n`;\n\nexport const singleViewLandscapeWidthCss = css`\n  width: 100%;\n  /* TODO: explore making this bigger */\n  max-width: 700px;\n`;\n\nexport const textWrapperCss = css`\n  position: relative;\n  word-break: break-word;\n`;\n\nexport const textWrapperOverlapCss = css`\n  height: ${cardTextHeight};\n`;\n\nexport const textCss = css`\n  align-content: flex-start;\n  color: ${m('--carousel-card-fg-color')};\n  background-color: ${m('--carousel-card-bg-color')};\n  border-radius: ${m('--border-radius-l')};\n  display: grid;\n  gap: 0 ${m('--spacing-m')};\n  grid-template-columns: 1fr ${arrowIconSize};\n  min-height: ${`calc(${cardTextHeight} + ${m('--spacing-l')})`};\n  padding: ${m('--spacing-m')};\n`;\n\nexport const textOverlapCss = css`\n  position: absolute;\n  inset: auto 0 0 0;\n`;\n\nexport const arrowCss = css`\n  fill: ${m('--action-default-color')};\n  height: ${arrowIconSize};\n  width: ${arrowIconSize};\n  grid-column: 2;\n\n  [dir='rtl'] & {\n    transform: rotate(180deg);\n  }\n`;\n\nexport const infoElementCss = css`\n  grid-column: span 2;\n  margin: 0;\n\n  svg + & {\n    grid-row: 1;\n    grid-column: span 1;\n  }\n`;\n\nexport const titleCss = css`\n  ${h5Css}\n  ${lineClamp(2)}\n  letter-spacing: 0.5px;\n  margin-block-end: ${m('--spacing-xxs')};\n`;\n\nexport const titleOnlyClampCss = css`\n  ${lineClamp(4)}\n`;\n\nexport const subtitleCss = css`\n  ${h6Css}\n  ${lineClamp(3)}\n  letter-spacing: 0.25px;\n  margin-block-end: ${m('--spacing-xs')};\n`;\n\nexport const subtitleOnlyClampCss = css`\n  ${lineClamp(5)}\n`;\n\nexport const bodyCss = css`\n  ${p3Css}\n  ${lineClamp(4)}\n\n  a {\n    color: ${m('--carousel-card-fg-color')};\n  }\n`;\n\nexport const bodyOnlyClampCss = css`\n  ${lineClamp(5)}\n`;\n\nexport const imageCss = css`\n  display: block;\n  height: 100%;\n  object-fit: cover;\n  object-position: center;\n  width: 100%;\n`;\n\nexport const videoCss = css`\n  height: 100%;\n  object-fit: cover;\n  object-position: center;\n  width: 100%;\n`;\n\n/** Style to disable border radius when connecting video w/ player controls to text card */\nexport const videoPlayerControlsCss = css`\n  border-bottom-left-radius: 0;\n  border-bottom-right-radius: 0;\n`;\n\n/** Style to disable border radius when connecting text card to video w/ player controls */\nexport const textPlayerControlsCss = css`\n  border-top-left-radius: 0;\n  border-top-right-radius: 0;\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC, MouseEventHandler, ReactNode } from 'react';\nimport { useCallback, useContext } from 'react';\n\nimport type { OnNavigateHandler } from '../../../types/activationEvents';\nimport { Icon } from '../../Icon';\nimport { PrimitivesContext } from '../../Primitives';\nimport {\n  arrowCss,\n  contentCss,\n  descriptionCss,\n  linkCss,\n  subTextCss,\n} from './CarouselTextItem.styles';\n\nexport interface CarouselTextItemProps {\n  description?: ReactNode;\n  subText?: ReactNode;\n  url?: string;\n  openNewWTab?: boolean;\n  onClick?: OnNavigateHandler;\n}\n\nexport const CarouselTextItem: FC<CarouselTextItemProps> = ({\n  description,\n  subText,\n  url,\n  openNewWTab,\n  onClick,\n  ...rest\n}) => {\n  const { Anchor } = useContext(PrimitivesContext);\n  const onClickWrapped = useCallback<MouseEventHandler>(\n    event => {\n      url && onClick && onClick(url, event);\n    },\n    [url, onClick]\n  );\n\n  if (url) {\n    return (\n      <Anchor\n        href={url}\n        className={cx(contentCss, linkCss)}\n        {...(openNewWTab ? { target: '_blank', rel: 'noreferrer' } : {})}\n        onClick={onClickWrapped}\n        draggable=\"false\"\n        {...rest}\n      >\n        <Icon className={arrowCss} name=\"arrow-right\" />\n        <div>\n          {description && <div className={descriptionCss}>{description}</div>}\n          {subText && <div className={subTextCss}>{subText}</div>}\n        </div>\n      </Anchor>\n    );\n  }\n\n  return (\n    <div className={contentCss} {...rest}>\n      {description && <div className={descriptionCss}>{description}</div>}\n      {subText && <div className={subTextCss}>{subText}</div>}\n    </div>\n  );\n};\n\nCarouselTextItem.displayName = 'CarouselTextItem';\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery } from '../../../constants';\nimport { m, p3Css } from '../../../motif';\n\nconst arrowIconSize = '24px';\nexport const maxTextWidth = 700;\n\nexport const linkCss = css`\n  color: ${m('--carousel-card-fg-color')};\n  cursor: pointer;\n  text-decoration: none;\n\n  display: flex;\n  flex-direction: row-reverse;\n  justify-content: space-between;\n  ${mobileMediaQuery} {\n    padding: ${m('--spacing-l')};\n  }\n`;\n\nexport const contentCss = css`\n  background: ${m('--carousel-card-bg-color')};\n  border-radius: ${m('--border-radius-l')};\n  box-shadow: 0 0 32px 0 rgba(0, 0, 0, 0.12);\n  color: ${m('--carousel-card-fg-color')};\n  display: flex;\n  flex-direction: column;\n  max-width: ${maxTextWidth}px;\n  padding: ${m('--spacing-xl')};\n  position: relative;\n  user-select: none;\n  width: 100%;\n\n  ${mobileMediaQuery} {\n    margin-inline: ${m('--spacing-xl')};\n  }\n\n  ${nonMobileMediaQuery} {\n    padding: ${m('--spacing-xl')} ${m('--spacing-xxxl')};\n  }\n`;\n\nexport const descriptionCss = css`\n  margin: 0;\n`;\n\nexport const subTextCss = css`\n  ${p3Css}\n  margin-block: ${m('--spacing-m')} 0;\n`;\n\nexport const arrowCss = css`\n  fill: ${m('--action-default-color')};\n  height: ${arrowIconSize};\n  width: ${arrowIconSize};\n  flex-shrink: 0;\n\n  [dir='rtl'] & {\n    transform: rotate(180deg);\n    right: auto;\n  }\n`;\n", "/**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\nfunction baseClamp(number, lower, upper) {\n  if (number === number) {\n    if (upper !== undefined) {\n      number = number <= upper ? number : upper;\n    }\n    if (lower !== undefined) {\n      number = number >= lower ? number : lower;\n    }\n  }\n  return number;\n}\n\nexport default baseClamp;\n", "import baseClamp from './_baseClamp.js';\nimport toNumber from './toNumber.js';\n\n/**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\nfunction clamp(number, lower, upper) {\n  if (upper === undefined) {\n    upper = lower;\n    lower = undefined;\n  }\n  if (upper !== undefined) {\n    upper = toNumber(upper);\n    upper = upper === upper ? upper : 0;\n  }\n  if (lower !== undefined) {\n    lower = toNumber(lower);\n    lower = lower === lower ? lower : 0;\n  }\n  return baseClamp(toNumber(number), lower, upper);\n}\n\nexport default clamp;\n", "/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n    nativeMin = Math.min;\n\n/**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\nfunction baseInRange(number, start, end) {\n  return number >= nativeMin(start, end) && number < nativeMax(start, end);\n}\n\nexport default baseInRange;\n", "import toNumber from './toNumber.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n    MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n  if (!value) {\n    return value === 0 ? value : 0;\n  }\n  value = toNumber(value);\n  if (value === INFINITY || value === -INFINITY) {\n    var sign = (value < 0 ? -1 : 1);\n    return sign * MAX_INTEGER;\n  }\n  return value === value ? value : 0;\n}\n\nexport default toFinite;\n", "import baseInRange from './_baseInRange.js';\nimport toFinite from './toFinite.js';\nimport toNumber from './toNumber.js';\n\n/**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\nfunction inRange(number, start, end) {\n  start = toFinite(start);\n  if (end === undefined) {\n    end = start;\n    start = 0;\n  } else {\n    end = toFinite(end);\n  }\n  number = toNumber(number);\n  return baseInRange(number, start, end);\n}\n\nexport default inRange;\n", "import { cx } from '@emotion/css';\nimport clamp from 'lodash-es/clamp';\nimport inRange from 'lodash-es/inRange';\nimport type React from 'react';\nimport type { ReactElement, TransitionEvent } from 'react';\nimport { Children, cloneElement, useCallback, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { mobileMaxWidth } from '../../constants/layout';\nimport { useOnScreen } from '../../hooks/useOnScreen';\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { isSSR } from '../../utils/environment';\nimport { useWindowFocused } from '../../utils/useWindowFocused';\nimport { useWindowSize } from '../../utils/useWindowSize';\nimport {\n  carouselAnimationDuration,\n  carouselCenteredCss,\n  carouselContainerCss,\n  carouselContentCss,\n  carouselContentWrapperCss,\n  carouselFillSlidesCss,\n  carouselGapCss,\n  carouselSingleViewDefaultTransformCss,\n  carouselSlideCss,\n  withDotsCss,\n} from './CarouselV3.styles';\nimport { Dots } from './Dots';\nimport { getValueFromDirection, modulo, shortestPath, useDrag } from './utils';\n\n/**\n * Props for a Carousel component.\n *\n * @property {React.ReactNode} children - The content to be displayed within the carousel.\n * @property {boolean} [autoPlay] - (Optional) Set to `true` to enable automatic playback of the\n *   carousel.\n * @property {number} [autoPlaySpeed] - (Optional) The speed at which the carousel should auto-play\n *   (in milliseconds).\n * @property {boolean} [isRtl] - (Optional) Specifies whether the carousel should display\n *   right-to-left (RTL) direction.\n * @property {boolean} [isSingleView] - (Optional) Indicates if the carousel should behave as a\n *   single view carousel.\n * @interface CarouselV3Props\n */\nexport interface CarouselV3Props {\n  children: React.ReactNode;\n  autoPlay?: boolean;\n  autoPlaySpeed?: number;\n  isRtl?: boolean;\n  isSingleView?: boolean;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype ChildNodeType = ReactElement<any, any>;\n\n/**\n * Carousel V3 component.\n *\n * A carousel that renders either CarouselCardItem or CarouselTextItem.\n */\nexport const CarouselV3 = ({\n  children,\n  isSingleView = false,\n  isRtl = false,\n  autoPlay = true,\n  autoPlaySpeed = 3000,\n}: CarouselV3Props): JSX.Element => {\n  useMotifStyles(MotifComponent.CAROUSEL);\n  const carouselContentWrapperRef = useRef<HTMLDivElement>(null);\n  const [carouselContent, setCarouselContent] = useState<HTMLDivElement | null>(null);\n  const carouselContentRefCallback = useCallback((node: HTMLDivElement) => {\n    setCarouselContent(node);\n  }, []);\n\n  const fadeOutTimeouts = useRef<ReturnType<typeof setTimeout>[]>([]);\n  const autoplayInterval = useRef<ReturnType<typeof setInterval>>();\n  const enableTransition = useRef(false);\n  const [isPaused, setIsPaused] = useState(false);\n  const isOnScreen = useOnScreen(carouselContentWrapperRef);\n  const [currentIndex, setCurrentIndex] = useState<number>(0);\n\n  const { isFocused } = useWindowFocused(isOnScreen);\n\n  const [tileSize, setTileSize] = useState<{ width: number; gap: number }>({ width: 0, gap: 0 });\n\n  const childElements = Children.toArray(children) as ChildNodeType[];\n  const cardsLength = childElements.length;\n\n  const { width: windowWidth } = useWindowSize();\n\n  // This useMemo is used to calculate how many cards are visible on screen\n  const visibleCount = useMemo(() => {\n    const carouselContentWidth = carouselContent?.clientWidth;\n\n    if (!carouselContentWidth) {\n      return 0;\n    }\n    const cardWidth = tileSize.width + tileSize.gap;\n\n    if (!cardWidth) {\n      return 0;\n    }\n\n    if (isSingleView) {\n      return 1;\n    }\n\n    const numberOfCards = Math.ceil(carouselContentWidth / cardWidth);\n\n    return numberOfCards;\n    // Directly using \"carouselContent.clientWidth\" as a dependency will cause a performance hit\n    // since referencing the \"clientWidth\" property can cause layout/reflow on the browser (see\n    // https://gist.github.com/paulirish/5d52fb081b3570c81e3a). Instead, we can use the throttled\n    // \"windowWidth\" as a trigger to recalculate this memo on window resize.\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [windowWidth, carouselContent, isSingleView, tileSize.gap, tileSize.width]);\n\n  // This useMemo is used determine wether we need to render a carousel for the amount of cards\n  const isCarousel = useMemo(() => cardsLength >= visibleCount, [cardsLength, visibleCount]);\n\n  // This useMemo is used to predict how many cards are visible on screen\n  const duplicateCount = useMemo(() => {\n    if (!isCarousel) {\n      return 0;\n    }\n\n    return isSingleView ? 1 : Math.max(0, visibleCount * 2 - 1);\n  }, [isCarousel, isSingleView, visibleCount]);\n\n  // This useEffect is used to measure the tiles and gap.\n  useEffect(() => {\n    if (!carouselContent) {\n      return;\n    }\n    const tile = carouselContent?.firstChild as HTMLDivElement;\n\n    const width = tile?.clientWidth;\n    const wrapperStyles = window.getComputedStyle(carouselContent);\n    const gapCss = wrapperStyles.getPropertyValue('gap');\n    const gapInt = Number.parseInt(gapCss);\n    const gap = Number.isNaN(gapInt) ? 0 : gapInt;\n    setTileSize({ width, gap });\n  }, [windowWidth, carouselContent, children, isSingleView, cardsLength]);\n\n  // This useEffect is used to handle animations when in single View mode\n  useEffect(() => {\n    if (!isSingleView || !carouselContent?.children?.length) {\n      return;\n    }\n\n    fadeOutTimeouts.current?.forEach(timeoutID => clearTimeout(timeoutID));\n\n    fadeOutTimeouts.current = Array.from(carouselContent.children).map((slide, index) => {\n      // setTimeout here to delay the fadeIn animation, otherwise the animation happens before the card is visible\n      const isCurrent = index === duplicateCount + currentIndex;\n\n      return setTimeout(\n        () => {\n          slide.classList.toggle('fadeOut', !isCurrent);\n        },\n        isCurrent ? carouselAnimationDuration / 2 : 0\n      );\n    });\n  }, [carouselContent?.children, currentIndex, isSingleView, duplicateCount]);\n\n  // Offset is the translateX for the carousel.\n  const currentOffset = useMemo(\n    () =>\n      (currentIndex + duplicateCount) * tileSize.width +\n      (currentIndex + duplicateCount - 0.5) * tileSize.gap,\n    [currentIndex, tileSize, duplicateCount]\n  );\n\n  const shiftItems = useCallback(\n    (numberOfItemsToShift: number) => {\n      enableTransition.current = true;\n\n      setCurrentIndex(\n        currentIndex => currentIndex + (isRtl ? -numberOfItemsToShift : numberOfItemsToShift)\n      );\n    },\n    [isRtl, setCurrentIndex]\n  );\n\n  // This useEffect is used to setup up the autoplay behavior.\n  useEffect(() => {\n    if (\n      isCarousel &&\n      !autoplayInterval.current &&\n      autoPlay &&\n      !isPaused &&\n      isOnScreen &&\n      isFocused\n    ) {\n      // TODO: Consider shifting immediately to make the acknowledgement of interaction.\n      // I.e. add: setTimeout(() => shiftItems(1), 1e2);\n      // This does make it shift whenever the user scrolls to the carousel which is a\n      // strong movement and attention grabber.\n\n      autoplayInterval.current = setInterval(() => {\n        shiftItems(1);\n      }, autoPlaySpeed);\n    }\n\n    return () => {\n      clearInterval(autoplayInterval.current);\n      autoplayInterval.current = undefined;\n    };\n  }, [\n    autoplayInterval,\n    isPaused,\n    isOnScreen,\n    isFocused,\n    shiftItems,\n    autoPlay,\n    autoPlaySpeed,\n    isCarousel,\n  ]);\n\n  const handleKeyUp = useCallback(\n    (event: { keyCode: number }) => {\n      if (!isOnScreen) {\n        return;\n      }\n\n      // 37 - Keyboard Left Key Code\n      if (event.keyCode === 37) {\n        shiftItems(-1);\n        return;\n      }\n\n      // 39 - Keyboard Right Key Code\n      if (event.keyCode === 39) {\n        shiftItems(1);\n      }\n    },\n    [isOnScreen, shiftItems]\n  );\n\n  // This function handles user clicks on navigation dots and calculates the shortest path to navigate from\n  // the current index to the target index, considering whether to move left or right,\n  // and then performs the navigation action.\n  const onDotClick = useCallback(\n    (targetIndex: number) => {\n      if (targetIndex === currentIndex || (windowWidth && windowWidth <= mobileMaxWidth)) {\n        return;\n      }\n\n      enableTransition.current = true;\n\n      const finalDelta = shortestPath(currentIndex, targetIndex, cardsLength);\n\n      // Ensure that the navigation wraps around the list if needed.\n      const newIndex = currentIndex + finalDelta;\n\n      setCurrentIndex(newIndex);\n    },\n    [cardsLength, currentIndex, windowWidth]\n  );\n\n  const dragHandlers = useDrag({\n    dragStart: () => {},\n    dragMove: (delta, event) => {\n      event?.preventDefault();\n      carouselContentWrapperRef.current?.classList.add('dragging');\n      // The following logic differs from LTR from RTL\n      const xPosition = currentOffset + getValueFromDirection(delta, !isRtl);\n\n      carouselContent!.style.transform = `translateX(${getValueFromDirection(xPosition, isRtl)}px)`;\n    },\n    dragEnd: delta => {\n      carouselContentWrapperRef.current?.classList.remove('dragging');\n\n      const threshold = isSingleView ? tileSize.width / 2 : tileSize.width;\n\n      // We will snap to the next/previous item if we swipe/drag at least 50% of the item width\n      const numberOfItemsToShift = Math.round(delta / threshold);\n\n      enableTransition.current = true;\n\n      // I'm not sure why, but delta and threshold can be 0, resulting in 'numberOfItemsToShift' being NaN.\n      if (numberOfItemsToShift === 0 || Number.isNaN(numberOfItemsToShift)) {\n        carouselContent!.style.transform = `translateX(${getValueFromDirection(\n          currentOffset,\n          isRtl\n        )}px)`;\n\n        return;\n      }\n\n      // If 'numberOfItemsToShift' arrives here as NaN, we will set the currentIndex (in shiftItems) to NaN.\n      // This will lead to nasty bugs.\n      const clampedSteps = clamp(numberOfItemsToShift, -duplicateCount, duplicateCount);\n      shiftItems(clampedSteps);\n    },\n  });\n\n  // TODO: Consider only pausing for a period of time, i.e. 5 seconds, and then resuming again\n  // unless the user moves the mouse. This would make it so that the carousel doesn't stop\n  // working when a user parks their mouse or gesture pointer on the carousel.\n  const handleMouseEnter = useCallback(() => setIsPaused(true), [setIsPaused]);\n\n  const handleMouseLeave = useCallback(() => {\n    dragHandlers.handleDragEnd();\n    setIsPaused(false);\n  }, [dragHandlers, setIsPaused]);\n\n  const handleMouseUp = useCallback(() => {\n    dragHandlers.handleDragEnd();\n  }, [dragHandlers]);\n\n  // Checks if we need to change the slides position to simulate infinite loops\n  const resetPosition = useCallback(() => {\n    // calculate the index within the visible range to simulate infinite scroll\n    const newIndex = (currentIndex + cardsLength) % cardsLength;\n\n    const needsReset = newIndex !== currentIndex;\n\n    if (needsReset) {\n      enableTransition.current = false;\n      setCurrentIndex(newIndex);\n    }\n  }, [currentIndex, cardsLength]);\n\n  const handleTransitionEnd = (e: TransitionEvent<HTMLDivElement>) => {\n    if (carouselContent !== e.target) {\n      return;\n    }\n    dragHandlers.resetDrag();\n    resetPosition();\n  };\n\n  const carouselContentStyle =\n    isCarousel && !isSSR()\n      ? {\n          transform: `translateX(${getValueFromDirection(currentOffset, isRtl)}px)`,\n          transition: !enableTransition.current ? 'none' : undefined,\n        }\n      : undefined;\n\n  const renderDots = isCarousel && !!cardsLength;\n\n  const preceding = Array.from(\n    { length: duplicateCount },\n    (_, index) => childElements[modulo(cardsLength - index - 1, cardsLength)] as ChildNodeType\n  );\n\n  const following = Array.from(\n    { length: duplicateCount },\n    (_, index) => childElements[modulo(index, cardsLength)] as ChildNodeType\n  );\n\n  const cardIsVisible = (index: number) => {\n    return inRange(index, currentIndex, currentIndex + visibleCount);\n  };\n\n  const cardShouldLoad = (index: number) => {\n    return inRange(index, currentIndex - 2, currentIndex + visibleCount + 2);\n  };\n\n  return (\n    <div\n      data-test-id=\"sdsm-carousel\"\n      className={cx(carouselContainerCss, MotifComponent.CAROUSEL, {\n        [withDotsCss]: renderDots,\n      })}\n      onMouseEnter={isCarousel ? handleMouseEnter : undefined}\n      onMouseLeave={isCarousel ? handleMouseLeave : undefined}\n      onMouseUp={isCarousel ? handleMouseUp : undefined}\n      onKeyUp={isCarousel ? handleKeyUp : undefined}\n      tabIndex={-1}\n    >\n      <div\n        className={carouselContentWrapperCss}\n        onTouchStart={isCarousel ? dragHandlers.handleDragStart : undefined}\n        onMouseDown={isCarousel ? dragHandlers.handleDragStart : undefined}\n        onTouchMove={isCarousel ? dragHandlers.handleDragMove : undefined}\n        onMouseMove={isCarousel ? dragHandlers.handleDragMove : undefined}\n        onTouchEnd={isCarousel ? dragHandlers.handleDragEnd : undefined}\n        onMouseUp={isCarousel ? dragHandlers.handleDragEnd : undefined}\n        ref={carouselContentWrapperRef}\n        tabIndex={-1}\n      >\n        <div\n          className={cx(carouselContentCss, {\n            [carouselCenteredCss]: !isCarousel,\n            [carouselSingleViewDefaultTransformCss]: isSingleView,\n            [carouselGapCss]: !isSingleView,\n          })}\n          style={carouselContentStyle}\n          onTransitionEnd={handleTransitionEnd}\n          ref={carouselContentRefCallback}\n          tabIndex={-1}\n        >\n          {preceding.map((child, idx) => (\n            <div\n              key={`initial-duplicated-${idx}`}\n              className={cx(carouselSlideCss, {\n                [carouselFillSlidesCss]: isSingleView,\n                fadeOut: isSingleView,\n                animate: enableTransition.current,\n              })}\n              aria-hidden={true}\n            >\n              {cloneElement(child, {\n                shouldLoad: cardShouldLoad(idx - preceding.length),\n                isVisible: cardIsVisible(idx - preceding.length),\n                isSingleView,\n              })}\n            </div>\n          ))}\n\n          {childElements.map((child, idx) => (\n            <div\n              key={`carousel-item-${idx}`}\n              className={cx(carouselSlideCss, {\n                [carouselFillSlidesCss]: isSingleView,\n                fadeOut: isSingleView && idx !== currentIndex,\n                animate: enableTransition.current,\n              })}\n            >\n              {cloneElement(child, {\n                shouldLoad: cardShouldLoad(idx),\n                isVisible: cardIsVisible(idx),\n                isSingleView,\n              })}\n            </div>\n          ))}\n\n          {following.map((child, idx) => (\n            <div\n              key={`final-duplicated-${idx}`}\n              className={cx(carouselSlideCss, {\n                [carouselFillSlidesCss]: isSingleView,\n                fadeOut: isSingleView,\n                animate: enableTransition.current,\n              })}\n              aria-hidden={true}\n            >\n              {cloneElement(child, {\n                shouldLoad: cardShouldLoad(idx + childElements.length),\n                isVisible: cardIsVisible(idx + childElements.length),\n                isSingleView,\n              })}\n            </div>\n          ))}\n        </div>\n      </div>\n\n      {renderDots && (\n        <Dots currentIndex={currentIndex} length={cardsLength} onDotClick={onDotClick} />\n      )}\n    </div>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery } from '../../constants';\nimport { m } from '../../motif';\n\nexport const carouselAnimationDuration = 300;\n\nexport const carouselContainerCss = css`\n  align-items: center;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  padding-block-end: 20px;\n  width: 100%;\n\n  ${mobileMediaQuery} {\n    overflow-x: hidden;\n  }\n`;\n\nexport const carouselContentWrapperCss = css`\n  width: 100%;\n  max-height: 100%;\n  overflow: hidden;\n\n  &.dragging {\n    a {\n      pointer-events: none;\n    }\n  }\n`;\n\nexport const carouselCenteredCss = css`\n  justify-content: center;\n`;\n\nexport const carouselGapCss = css`\n  gap: ${m('--carousel-card-mobile-grid-gap')};\n\n  ${nonMobileMediaQuery} {\n    gap: ${m('--carousel-card-desktop-grid-gap')};\n  }\n`;\n\nexport const carouselSingleViewDefaultTransformCss = css`\n  transform: translateX(-100%);\n`;\n\nexport const carouselContentCss = css`\n  display: flex;\n  margin-block: ${m('--spacing-xl')};\n  transition: all ${carouselAnimationDuration}ms linear;\n\n  html[dir='rtl'] &,\n  body[dir='rtl'] & {\n    direction: rtl;\n  }\n`;\n\nexport const carouselSlideCss = css`\n  opacity: 1;\n\n  &.fadeOut {\n    opacity: 0;\n    pointer-events: none;\n  }\n\n  &.animate {\n    transition: opacity ${carouselAnimationDuration / 2}ms ease;\n  }\n`;\n\nexport const carouselFillSlidesCss = css`\n  align-items: center;\n  display: flex;\n  flex-grow: 0;\n  flex-shrink: 0;\n  justify-content: center;\n  width: 100%;\n`;\n\nexport const dotWrapperCss = css`\n  align-items: center;\n  background-color: transparent;\n  border: 0;\n  box-sizing: border-box;\n  display: flex;\n  justify-content: center;\n  height: 20px;\n  width: 20px;\n`;\n\nexport const dotCss = css`\n  background-color: ${m('--carousel-inactive-dot-color')};\n  transition: background-color 200ms;\n  border-radius: 100px;\n  height: 8px;\n  width: 8px;\n\n  ${nonMobileMediaQuery} {\n    cursor: pointer;\n  }\n`;\n\nexport const dotActiveCss = css`\n  background-color: ${m('--carousel-active-dot-color')};\n`;\n\nexport const dotsInnerContainerCss = css`\n  -ms-overflow-style: none;\n  align-items: center;\n  display: flex;\n  flex-direction: row;\n  height: 20px;\n  margin-block-end: ${m('--spacing-xl')};\n  padding-inline-start: 0;\n  list-style: none;\n  margin: 0 auto;\n  scrollbar-width: none;\n\n  html[dir='rtl'] & {\n    direction: rtl;\n  }\n\n  > div:first-child {\n    margin-inline-start: 0;\n  }\n`;\n\nexport const withDotsCss = css`\n  padding-block-end: 0;\n`;\n\nexport const dotsContainerCss = css`\n  display: flex;\n  justify-content: center;\n`;\n", "import { cx } from '@emotion/css';\n\nimport {\n  dotActiveCss,\n  dotCss,\n  dotsContainerCss,\n  dotsInnerContainerCss,\n  dotWrapperCss,\n} from './CarouselV3.styles';\n\n/**\n * Props for a component that represents a set of dots used for carousel navigation.\n *\n * @property {number} currentIndex - The index of the currently active slide.\n * @property {number} length - The total number of slides.\n * @property {(index: number) => void} onDotClick - A callback function to handle dot click events.\n *   It receives the index of the clicked dot.\n * @property {boolean} [isInfinite] - (Optional) Specifies whether the carousel is infinite.\n * @property {() => void} [onAnimationComplete] - (Optional) A callback function invoked when the\n *   slide transition animation is complete.\n * @interface DotsProps\n */\nexport interface DotsProps {\n  currentIndex: number;\n  length: number;\n  onDotClick: (index: number) => void;\n  isInfinite?: boolean;\n  onAnimationComplete?: () => void;\n}\n\nexport const Dots = ({ currentIndex, length, onDotClick }: DotsProps): JSX.Element => {\n  return (\n    <nav className={dotsContainerCss}>\n      <ul className={dotsInnerContainerCss}>\n        {Array(length)\n          .fill(undefined)\n          .map((_, index) => (\n            <li key={index} data-index={index}>\n              <button onClick={() => onDotClick(index)} className={dotWrapperCss}>\n                <span\n                  className={cx(dotCss, {\n                    [dotActiveCss]: currentIndex === index,\n                  })}\n                />\n              </button>\n            </li>\n          ))}\n      </ul>\n    </nav>\n  );\n};\n\nDots.displayName = 'Dots';\n", "import type { FC, ReactElement } from 'react';\nimport { useRef } from 'react';\n\nimport { MediaMode } from '../../constants';\nimport { useMediaMode } from '../../hooks';\nimport type { CarouselV3Props } from './CarouselV3';\nimport { CarouselV3 } from './CarouselV3';\n\n/**\n * Type guard function to check if the given element is a CarouselV3.\n *\n * @param elem - The element to be checked.\n * @returns True if the element is a React element with CarouselV3Props, false otherwise.\n */\nexport const isCarouselV3Element = (elem: unknown): elem is ReactElement<CarouselV3Props> => {\n  const asCarouselV3 = elem as ReactElement<CarouselV3Props>;\n\n  if (asCarouselV3.type === CarouselV3) {\n    return true;\n  }\n  // evil displayName check\n  const typeAsFC = (elem as ReactElement).type as FC;\n  return typeAsFC.displayName === 'CarouselV3';\n};\n\n/**\n * Retrieves the value from a given direction based on the RTL (Right-to-Left) setting.\n *\n * @param originalValue - The original numerical value.\n * @param isRTL - A boolean determining if the text direction is Right-to-Left (RTL).\n * @returns The value adjusted according to the direction; the original value if RTL, otherwise the\n *   negation of the original value.\n */\nexport const getValueFromDirection = (originalValue: number, isRTL: boolean): number => {\n  if (isRTL) {\n    return originalValue;\n  }\n\n  return originalValue * -1;\n};\n\n/**\n * Computes the modulo operation for a given number x with respect to another number m. Correctly\n * handles negative values\n *\n * @param x - The dividend number.\n * @param m - The divisor number.\n * @returns The result of the modulo operation.\n */\nexport const modulo = (x: number, m: number): number => {\n  return ((x % m) + m) % m;\n};\n\n/**\n * Calculates the shortest path between two indices in a circular list.\n *\n * @param currentIndex - The current index in the circular list.\n * @param targetIndex - The target index in the circular list.\n * @param count - The total count of items in the circular list.\n * @returns The shortest path as the number of steps to reach the target index from the current\n *   index.\n */\nexport const shortestPath = (currentIndex: number, targetIndex: number, count: number): number => {\n  // Calculating the direct distance\n  const direct = Math.abs(targetIndex - currentIndex);\n  // Calculating the wrapping distance\n  const wrapping = count - direct;\n  // Determining the direction of movement based on which index is first\n  const direction = currentIndex < targetIndex ? 1 : -1;\n  // Determining the smaller scalar distance\n  const diff = Math.abs(direct) > Math.abs(wrapping) ? -wrapping : direct;\n  // Determining the final distance by multiplying the scalar distance by the direction\n  return diff * direction;\n};\n\n/**\n * Custom hook for handling drag interactions.\n *\n * @param dragStart - Function to be called when the drag starts.\n * @param dragMove - Function to be called when the drag is in progress.\n * @param dragEnd - Function to be called when the drag ends.\n */\nexport const useDrag = ({\n  dragStart,\n  dragMove,\n  dragEnd,\n}: {\n  dragStart?: (event?: React.TouchEvent | React.MouseEvent) => void;\n  dragMove?: (delta: number, event?: React.TouchEvent | React.MouseEvent) => void;\n  dragEnd?: (delta: number, event?: React.TouchEvent | React.MouseEvent) => void;\n}): {\n  resetDrag: () => void;\n  handleDragStart: (event: React.TouchEvent | React.MouseEvent) => void;\n  handleDragMove: (event: React.TouchEvent | React.MouseEvent) => void;\n  handleDragEnd: (event?: React.TouchEvent | React.MouseEvent) => void;\n} => {\n  const mode = useMediaMode();\n  const isMobile = mode === MediaMode.Mobile;\n\n  const initialTouchPosition = useRef<number | null>(null);\n  const touchPosition = useRef<number | null>(null);\n\n  const handleDragStart = (event: React.TouchEvent | React.MouseEvent) => {\n    const clientX =\n      (event as React.TouchEvent)?.touches?.[0]?.clientX ||\n      (event as React.MouseEvent)?.clientX ||\n      0;\n    initialTouchPosition.current = clientX;\n    touchPosition.current = clientX;\n    dragStart?.(event);\n  };\n\n  const handleDragMove = (event: React.TouchEvent | React.MouseEvent) => {\n    event.preventDefault();\n\n    if (!initialTouchPosition.current) {\n      return;\n    }\n\n    const clientX =\n      (event as React.TouchEvent)?.touches?.[0]?.clientX ||\n      (event as React.MouseEvent)?.clientX ||\n      0;\n\n    touchPosition.current = clientX;\n    const diff = initialTouchPosition.current - clientX;\n\n    dragMove?.(diff, event);\n  };\n\n  const handleDragEnd = (event?: React.TouchEvent | React.MouseEvent) => {\n    // This prevents links from working in mobile\n    if (!isMobile) {\n      event?.preventDefault();\n      event?.stopPropagation();\n    }\n\n    const initial = initialTouchPosition.current || 0;\n    const current = touchPosition.current || 0;\n    const diff = initial - current;\n\n    initialTouchPosition.current = null;\n    touchPosition.current = null;\n    dragEnd?.(diff, event);\n  };\n\n  const resetDrag = () => {\n    initialTouchPosition.current = null;\n    touchPosition.current = null;\n  };\n\n  return { handleDragStart, handleDragMove, handleDragEnd, resetDrag };\n};\n", "import { css } from '@emotion/css';\n\nimport { Spacing } from '../../constants';\n\nexport const categoryCss = css`\n  display: block;\n  font-size: 15px;\n  font-weight: 700;\n  line-height: ${Spacing.XL}px;\n`;\n", "import type { FC } from 'react';\n\nimport { categoryCss } from './styles';\n\nexport const Category: FC<{ title: string }> = ({ title }) => (\n  <span className={categoryCss}>{title}</span>\n);\n", "/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { cx } from '@emotion/css';\nimport type { FC, ReactNode } from 'react';\nimport { useContext, useRef } from 'react';\n\nimport type { BackgroundColor } from '../../constants';\nimport { Alignment } from '../../constants';\nimport { MotifComponent, p1Css, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps, Buttons } from '../../types';\nimport {\n  BlockBackgroundColorContext,\n  dataSetToAttributes,\n  getBackgroundClassName,\n} from '../../utils';\nimport { hideWhenDesktopCss, hideWhenMobileCss } from '../../utils/styles';\nimport { useAnimations } from '../Animations';\nimport type { Animation } from '../Animations/types';\nimport {\n  bodyContainerCss,\n  bodyContainerStretchCss,\n  bodyMarginTopCss,\n  bodyStyleCss,\n  contentBaseCss,\n  contentLayoutCss,\n  contentLayoutDirectionCss,\n  contentScrollMarginCss,\n  contentWrapperNoMobilePaddingStyle,\n  contentWrapperStyle,\n  ctaContainerCss,\n  ctaInnerCss,\n  ctaMarginTopCss,\n  displayNoneCss,\n  headerCss,\n  mediaOrderCss,\n  subtitleBaseCss,\n  textAlignmentBaseCss,\n  textAlignmentDesktopStyle,\n  textAlignmentMobileStyle,\n  titleCss,\n  transparentBackgroundCss,\n} from './Content.styled';\nimport { DisplayMode, Layout, MediaDirection } from './types';\n\nexport interface ContentProps extends BaseComponentProps {\n  body?: ReactNode;\n  bodyAlignment?: Alignment;\n  bodyAlignmentMobile?: Alignment;\n  callsToAction?: Buttons;\n  displayOn?: DisplayMode;\n  layout?: Layout;\n  mediaDirection?: MediaDirection;\n  subtitle?: ReactNode;\n  title?: ReactNode;\n  titleAlignment?: Alignment;\n  titleAlignmentMobile?: Alignment;\n  backgroundColor?: BackgroundColor;\n  anchorId?: string;\n  animations?: Animation[];\n  isRTL?: boolean;\n  bodyDataset?: DOMStringMap;\n  titleDataset?: DOMStringMap;\n  subtitleDataset?: DOMStringMap;\n  /** @deprecated. Use `asset` instead. */\n  media?: ReactNode;\n  asset?: ReactNode;\n}\n\n// TODO: when we fully deprecate old Content, update the props\n/** Newer content component that is cleaner and has removed lots of rarely used functionality */\nexport const Content: FC<ContentProps> = ({\n  className,\n  body,\n  bodyAlignment = Alignment.Start,\n  bodyAlignmentMobile = Alignment.Start,\n  callsToAction,\n  displayOn = DisplayMode.ALL,\n  layout = Layout.NORMAL,\n  mediaDirection = MediaDirection.TOP,\n  subtitle,\n  title,\n  titleAlignment = Alignment.Start,\n  titleAlignmentMobile = Alignment.Start,\n  backgroundColor: contentBackgroundColor,\n  anchorId,\n  animations,\n  isRTL,\n  bodyDataset,\n  titleDataset,\n  subtitleDataset,\n  asset,\n  style,\n}) => {\n  useMotifStyles(MotifComponent.CONTENT);\n  const contentRef = useRef(null);\n  const animationProps = useAnimations(contentRef, animations, 'content');\n\n  const dir = isRTL ? 'rtl' : undefined;\n\n  const blockBackgroundColor = useContext(BlockBackgroundColorContext);\n  const backgroundColor = contentBackgroundColor || blockBackgroundColor;\n  const isSameBackgroundColorAsBlock = blockBackgroundColor === backgroundColor;\n\n  // helper variables\n  const hasHeader = !!(title || subtitle);\n  const hasCallsToAction = !!(\n    (callsToAction && !Array.isArray(callsToAction)) ||\n    (Array.isArray(callsToAction) && callsToAction.length)\n  );\n  const hasBody = body || hasCallsToAction;\n  const hasContent = !!(title || subtitle || hasBody);\n  const hasMediaAndContent = !!asset && hasContent;\n\n  // Styles for the main <section> container\n  const bgClass = contentBackgroundColor ? getBackgroundClassName(backgroundColor) : undefined;\n\n  // Remove padding if the block BackgroundColor is the same as the content BackgroundColor\n  const contentBoxStyle =\n    backgroundColor === blockBackgroundColor\n      ? contentWrapperNoMobilePaddingStyle[layout]\n      : contentWrapperStyle[layout];\n\n  const sectionClassName = cx(\n    MotifComponent.CONTENT,\n    // style for background color class name\n    bgClass,\n    // base css that is always applied\n    contentBaseCss,\n    // special padding css based on background color of content and its containing block\n    contentBoxStyle,\n    {\n      // style to hide/show on certain devices based on DisplayMode\n      [hideWhenMobileCss]: displayOn === DisplayMode.DESKTOP_ONLY,\n      [hideWhenDesktopCss]: displayOn === DisplayMode.MOBILE_ONLY,\n      [displayNoneCss]: displayOn === DisplayMode.NEITHER,\n      // if the content has media and text, use proper grid layout\n      [contentLayoutCss[layout] || '']: hasMediaAndContent,\n      // if the content has media and text, set proper ordering on grid items for proper direction\n      [contentLayoutDirectionCss[layout]?.[mediaDirection] || '']: hasMediaAndContent,\n      // We use this to override the background color and set it to transparent when bg colors are the same\n      // or when content bg color isn't set.\n      [transparentBackgroundCss]: !contentBackgroundColor || isSameBackgroundColorAsBlock,\n    },\n    className\n  );\n\n  // Header Elements Section\n  const titleAlignmentClassName = cx(\n    textAlignmentBaseCss,\n    textAlignmentDesktopStyle[titleAlignment],\n    textAlignmentMobileStyle[titleAlignmentMobile]\n  );\n\n  const ContentHeader: FC = () => (\n    <div data-test-id=\"sdsm-content-header\" className={cx(headerCss, titleAlignmentClassName)}>\n      {title && (\n        <h3\n          className={cx(titleCss, titleAlignmentClassName, animationProps?.title?.className)}\n          data-test-id=\"sdsm-content-title\"\n          data-animation-id=\"content-title\"\n          data-animation-delay={animationProps?.title?.delay ?? null}\n          {...dataSetToAttributes(titleDataset)}\n        >\n          {title}\n        </h3>\n      )}\n      {subtitle && (\n        <div\n          className={cx(p1Css, subtitleBaseCss, animationProps?.subtitle?.className)}\n          data-test-id=\"sdsm-content-subtitle\"\n          data-animation-id=\"content-subtitle\"\n          data-animation-delay={animationProps?.subtitle?.delay ?? null}\n          {...dataSetToAttributes(subtitleDataset)}\n        >\n          {subtitle}\n        </div>\n      )}\n    </div>\n  );\n\n  // Body Section\n  const bodyAlignmentClassName = cx(\n    textAlignmentBaseCss,\n    textAlignmentDesktopStyle[bodyAlignment],\n    textAlignmentMobileStyle[bodyAlignmentMobile]\n  );\n\n  const BodyContent: FC = () => (\n    <div data-test-id=\"sdsm-content-body\">\n      {body && (\n        <div\n          className={cx(bodyStyleCss, bodyAlignmentClassName, {\n            [bodyMarginTopCss]: hasHeader,\n          })}\n          data-test-id=\"sdsm-content-body-content\"\n          data-animation-id=\"content-body\"\n          data-animation-delay={animationProps?.body?.delay ?? null}\n          {...dataSetToAttributes(bodyDataset)}\n        >\n          {body}\n        </div>\n      )}\n\n      {hasCallsToAction && (\n        <div data-test-id=\"sdsm-content-cta\" className={cx(ctaContainerCss)}>\n          <div\n            className={cx(ctaInnerCss, bodyAlignmentClassName, animationProps?.cta?.className, {\n              [ctaMarginTopCss]: !!body || hasHeader,\n            })}\n            data-animation-id=\"content-cta\"\n            data-animation-delay={animationProps?.cta?.delay ?? null}\n          >\n            {callsToAction}\n          </div>\n        </div>\n      )}\n    </div>\n  );\n\n  return (\n    <section\n      id={anchorId}\n      style={style}\n      data-test-id={MotifComponent.CONTENT}\n      className={cx(sectionClassName, contentScrollMarginCss)}\n      ref={contentRef}\n      data-animation-delay={animationProps?.container?.delay ?? null}\n      dir={dir}\n    >\n      {!!asset && (\n        <div data-test-id=\"sdsm-content-media-container\" className={mediaOrderCss[mediaDirection]}>\n          <div\n            data-test-id=\"sdsm-content-media\"\n            className={animationProps?.media?.className}\n            data-animation-id=\"content-media\"\n            data-animation-delay={animationProps?.media?.delay ?? null}\n          >\n            {asset}\n          </div>\n        </div>\n      )}\n      {hasContent && (\n        <div\n          data-test-id=\"sdsm-content-header-and-body\"\n          className={cx(bodyContainerCss, {\n            [bodyContainerStretchCss]:\n              mediaDirection === MediaDirection.TOP || mediaDirection === MediaDirection.BOTTOM,\n          })}\n        >\n          {hasHeader && <ContentHeader />}\n          {hasBody && <BodyContent />}\n        </div>\n      )}\n    </section>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery } from '../constants';\n\nexport const hideWhenMobileCss = css`\n  ${mobileMediaQuery} {\n    display: none;\n  }\n`;\n\nexport const hideWhenDesktopCss = css`\n  ${nonMobileMediaQuery} {\n    display: none;\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport { Alignment, mobileMediaQuery, nonMobileMediaQuery } from '../../constants';\nimport { h4Css, p2Css } from '../../motif';\nimport { m } from '../../motif/m';\nimport { MotifComponent } from '../../motif/motifConstants';\nimport { Layout, MediaDirection } from './types';\n\n/** Ensures scrolling to the element does not result in the element being hidden by header */\nexport const contentScrollMarginCss = css`\n  scroll-margin-top: var(--total-header-height);\n`;\n\n// For universal content css styles\nexport const contentBaseCss = css`\n  background-color: ${m('--background-color')};\n  background-image: ${m('--background-image')};\n  color: ${m('--foreground-color')};\n  display: grid;\n  /* we do only 1 column here because these are the default styles when there is only either Media or Text */\n  grid-template-columns: 1fr;\n  grid-template-rows: auto;\n  width: 100%;\n  gap: ${m('--spacing-xl')};\n  border-color: ${m('--content-border-color')};\n  border-width: ${m('--content-border-width')};\n  border-style: solid;\n  backdrop-filter: ${m('--content-backdrop-filter')};\n  box-shadow: ${m('--content-box-shadow')};\n\n  ${mobileMediaQuery} {\n    grid-template-columns: 1fr;\n    grid-template-rows: auto;\n  }\n`;\n/**\n * Use this to override background-color when the content background color is the same as the blocks\n * background color or not set.\n */\nexport const transparentBackgroundCss = css`\n  background-color: transparent;\n  backdrop-filter: ${m('--content-backdrop-filter')};\n`;\n\n// TODO: when we remove old content and update the enums, remove the partial\n/** Special CSS needed for Normal and Dense */\nexport const contentLayoutCss: Partial<Record<Layout, string>> = {\n  [Layout.NORMAL]: css`\n    align-items: center;\n    justify-items: center;\n    justify-content: center;\n  `,\n  [Layout.DENSE]: css`\n    align-items: start;\n    justify-items: center;\n  `,\n};\n\n/** Special CSS needed for each different grid variation at the section level */\nexport const contentLayoutDirectionCss: { [key in Layout]?: { [key in MediaDirection]?: string } } =\n  {\n    [Layout.NORMAL]: {\n      [MediaDirection.LEFT]: css`\n        grid-template-columns: auto minmax(auto, 600px);\n      `,\n      [MediaDirection.RIGHT]: css`\n        grid-template-columns: minmax(auto, 600px) auto;\n      `,\n      [MediaDirection.TOP]: css`\n        gap: ${m('--content-desktop-grid-gap')};\n        grid-template-rows: auto 1fr;\n        align-items: start;\n\n        ${mobileMediaQuery} {\n          gap: ${m('--content-mobile-grid-gap')};\n        }\n      `,\n      [MediaDirection.BOTTOM]: css`\n        gap: ${m('--content-desktop-grid-gap')};\n        grid-template-rows: 1fr auto;\n        align-items: start;\n\n        ${mobileMediaQuery} {\n          gap: ${m('--content-mobile-grid-gap')};\n        }\n      `,\n    },\n    [Layout.DENSE]: {\n      [MediaDirection.LEFT]: css`\n        grid-template-columns: auto minmax(auto, 1fr);\n      `,\n      [MediaDirection.RIGHT]: css`\n        grid-template-columns: minmax(auto, 1fr) auto;\n      `,\n      [MediaDirection.TOP]: '',\n      [MediaDirection.BOTTOM]: '',\n    },\n  };\n\n// this helps reverse the order when necessary\nexport const mediaOrderCss: Partial<Record<MediaDirection, string>> = {\n  [MediaDirection.RIGHT]: css`\n    order: 1;\n\n    /* always top to bottom on mobile */\n    ${mobileMediaQuery} {\n      order: 0;\n    }\n  `,\n  [MediaDirection.BOTTOM]: css`\n    order: 1;\n\n    /* always top to bottom on mobile */\n    ${mobileMediaQuery} {\n      order: 0;\n    }\n  `,\n};\n\n// For padding of content when background color is different than the block\nexport const contentWrapperStyle: Partial<Record<Layout, string>> = {\n  [Layout.NORMAL]: css`\n    border-radius: ${m('--border-radius-l')};\n    padding: ${m('--spacing-xl')};\n    ${mobileMediaQuery} {\n      padding-left: ${m('--spacing-m')};\n      padding-right: ${m('--spacing-m')};\n    }\n  `,\n  [Layout.DENSE]: css`\n    border-radius: ${m('--border-radius-l')};\n    padding: ${m('--spacing-l')};\n    ${mobileMediaQuery} {\n      padding-left: ${m('--spacing-m')};\n      padding-right: ${m('--spacing-m')};\n    }\n  `,\n};\n\n// For padding of content when background color is same as the block\nexport const contentWrapperNoMobilePaddingStyle: Partial<Record<Layout, string>> = {\n  [Layout.NORMAL]: css`\n    border-radius: ${m('--border-radius-l')};\n    padding: ${m('--content-desktop-no-bg-padding')};\n    ${mobileMediaQuery} {\n      padding: ${m('--content-mobile-no-bg-padding')};\n    }\n  `,\n  [Layout.DENSE]: css`\n    border-radius: ${m('--border-radius-l')};\n  `,\n};\n\n// Styles for the body\nexport const bodyContainerCss = css`\n  /* This is needed to make the PrimitiveTable component not overflow. */\n  max-width: 100%;\n  /* https://weblog.west-wind.com/posts/2016/feb/15/flexbox-containers-pre-tags-and-managing-overflow */\n  /* This is needed to make the Code component not overflow. The above blog post kind of explains it-ish... */\n  min-width: 0;\n`;\n\n// needed for the body to stretch to the full width of the content\n// when media direction is top or bottom. only do this for desktop\n// to avoid making mobile buttons stretch full width. Will discuss on what behavior we should keep\nexport const bodyContainerStretchCss = css`\n  ${nonMobileMediaQuery} {\n    justify-self: stretch;\n  }\n`;\n\nexport const bodyStyleCss = css`\n  ${p2Css}\n\n  display: flex;\n  flex-direction: column;\n\n  .${MotifComponent.BUTTON} {\n    margin-top: ${m('--spacing-s')};\n  }\n`;\n\nexport const bodyMarginTopCss = css`\n  margin-top: ${m('--spacing-m')};\n`;\n\nexport const ctaMarginTopCss = css`\n  margin-top: ${m('--spacing-m')};\n`;\n\n// Header styles\nexport const headerCss = css`\n  display: flex;\n  flex-direction: column;\n`;\n\nexport const titleCss = css`\n  /**\n   * The title is rendered as an <h3> so that there's a hierarchy of Hero Title (H1),\n   * Block Title (H2) and Content Title (H3). However, visually we want it to look like\n   * like an H4 because users put in very long content titles.\n   * So we force an H4 look over an H3 element.\n   * Note the double specificity to override default h3 styles.\n   * See https://jira.sc-corp.net/browse/WEBP-9117\n   */\n  && {\n    ${h4Css}\n  }\n  color: ${m('--content-title-color')};\n`;\n\nexport const subtitleBaseCss = css`\n  color: ${m('--content-subtitle-color')};\n  margin-top: ${m('--spacing-xs')};\n`;\n\n// Text alignment section\n// TODO: Consolidate w/ alignmentCss and mobileAlignmentCss\n// The only \"weird\" thing here is the \"align-items: stretch\"\nexport const alignmentClassNames: { [key in Alignment]: string } = {\n  [Alignment.Left]: css`\n    align-items: stretch;\n    justify-content: flex-start;\n    text-align: start;\n  `,\n  [Alignment.Start]: css`\n    align-items: stretch;\n    justify-content: flex-start;\n    text-align: start;\n  `,\n  [Alignment.Center]: css`\n    align-items: center;\n    justify-content: center;\n    text-align: center;\n  `,\n  [Alignment.End]: css`\n    align-items: stretch;\n    justify-content: flex-end;\n    text-align: end;\n  `,\n  [Alignment.Right]: css`\n    align-items: stretch;\n    justify-content: flex-end;\n    text-align: end;\n  `,\n};\n\n// Text alignment section\nexport const textAlignmentBaseCss = css`\n  width: 100%;\n`;\n\nexport const textAlignmentDesktopStyle: { [key in Alignment]: string } = {\n  [Alignment.Left]: css`\n    ${nonMobileMediaQuery} {\n      ${alignmentClassNames[Alignment.Left]}\n    }\n  `,\n  [Alignment.Start]: css`\n    ${nonMobileMediaQuery} {\n      ${alignmentClassNames[Alignment.Start]}\n    }\n  `,\n  [Alignment.Center]: css`\n    ${nonMobileMediaQuery} {\n      ${alignmentClassNames[Alignment.Center]}\n    }\n  `,\n  [Alignment.End]: css`\n    ${nonMobileMediaQuery} {\n      ${alignmentClassNames[Alignment.End]}\n    }\n  `,\n  [Alignment.Right]: css`\n    ${nonMobileMediaQuery} {\n      ${alignmentClassNames[Alignment.Right]}\n    }\n  `,\n};\n\nexport const textAlignmentMobileStyle: { [key in Alignment]: string } = {\n  [Alignment.Left]: css`\n    ${mobileMediaQuery} {\n      ${alignmentClassNames[Alignment.Left]}\n    }\n  `,\n  [Alignment.Start]: css`\n    ${mobileMediaQuery} {\n      ${alignmentClassNames[Alignment.Start]}\n    }\n  `,\n  [Alignment.Center]: css`\n    ${mobileMediaQuery} {\n      ${alignmentClassNames[Alignment.Center]}\n    }\n  `,\n  [Alignment.End]: css`\n    ${mobileMediaQuery} {\n      ${alignmentClassNames[Alignment.End]}\n    }\n  `,\n  [Alignment.Right]: css`\n    ${mobileMediaQuery} {\n      ${alignmentClassNames[Alignment.Right]}\n    }\n  `,\n};\n\nexport const ctaContainerCss = css`\n  margin-bottom: ${m('--spacing-m')};\n`;\n\nexport const ctaInnerCss = css`\n  display: flex;\n  align-items: center;\n  flex-wrap: wrap;\n  gap: ${m('--spacing-m')};\n`;\n\nexport const displayNoneCss = css`\n  display: none;\n`;\n", "import { cx } from '@emotion/css';\nimport type { KeyboardEvent, PropsWithChildren } from 'react';\nimport { forwardRef } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps } from '../../types';\nimport { definitionActiveCss, definitionCss } from './Definition.styles';\n\ninterface DefinitionProps extends PropsWithChildren<BaseComponentProps> {\n  isActive: boolean;\n  anchorId?: string;\n  onClick?: () => void;\n}\n\nexport const Definition = forwardRef<HTMLButtonElement, DefinitionProps>(\n  ({ anchorId, isActive, onClick, className, children }, ref) => {\n    useMotifStyles(MotifComponent.DEFINITION);\n\n    const handleKeyDown = (e: KeyboardEvent) => {\n      if (['Enter', ' '].includes(e.key)) {\n        e.preventDefault(); // Prevent browser page-down action on spacebar press\n        onClick?.();\n      }\n    };\n\n    // NOTE: We need to use <span> instead of <button> so that longer text wraps correctly as inline text\n    return (\n      <span\n        role=\"button\"\n        tabIndex={0}\n        id={anchorId}\n        ref={ref}\n        onClick={onClick}\n        onKeyDown={handleKeyDown}\n        className={cx(\n          MotifComponent.DEFINITION,\n          definitionCss,\n          {\n            [definitionActiveCss]: isActive,\n          },\n          className\n        )}\n      >\n        {children}\n      </span>\n    );\n  }\n);\n", "import { css } from '@emotion/css';\n\nimport { m } from '../../motif/m';\n\nexport const definitionCss = css`\n  background-color: ${m('--definition-bg-color')};\n  border-radius: ${m('--border-radius-s')};\n  border-bottom: 2px solid ${m('--definition-border-color')};\n  cursor: pointer;\n  margin: 0;\n  padding: 0px 4px 2px 4px;\n  /* Ensure element is scrolled to the center of the screen when scrolled into view here:\n   * packages/web/src/Routes.tsx\n   */\n  scroll-margin-top: 50vh;\n  transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out;\n\n  &:hover {\n    background-color: ${m('--definition-hover-bg-color')};\n    border-bottom: 2px solid ${m('--definition-hover-border-color')};\n  }\n`;\n\nexport const definitionActiveCss = css`\n  background-color: ${m('--definition-active-bg-color')};\n  border-bottom: 2px solid ${m('--definition-hover-border-color')};\n\n  &:hover {\n    background-color: ${m('--definition-active-bg-color')};\n    border-bottom: 2px solid ${m('--definition-hover-border-color')};\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport {\n  mobileMediaQuery,\n  noHorizontalScrollbarsCss,\n  nonMobileMediaQuery,\n} from '../../../constants';\nimport { ZIndex } from '../../../constants/zIndex';\nimport { m } from '../../../motif/m';\n\n// Buttons\nexport const buttonsWrapperClassName = 'toggleButtonsWrapper';\nexport const dropdownWrapperClassName = 'dropdownWrapper';\nexport const skeletonWrapperClassName = 'skeletonWrapper';\n\nexport const buttonsWrapperCss = css`\n  width: 100%;\n`;\n\nconst buttonsBaseCss = css`\n  display: flex;\n  justify-content: center;\n  padding-top: ${m('--spacing-xxxs')};\n  flex-wrap: wrap;\n\n  ${mobileMediaQuery} {\n    justify-content: start;\n    overflow-x: auto;\n    flex-wrap: nowrap;\n    ${noHorizontalScrollbarsCss}\n  }\n\n  *[dir='rtl'] & {\n    flex-direction: row-reverse;\n  }\n`;\n\nconst buttonsSizeCss = css`\n  margin-inline: 0;\n\n  ${mobileMediaQuery} {\n    &::before,\n    &::after {\n      content: '';\n      flex: 0 0 ${m('--spacing-xl')};\n    }\n    margin-inline: calc(${m('--spacing-xl')} * -1);\n  }\n`;\n\nexport const buttonsCss = css`\n  ${buttonsBaseCss}\n  ${buttonsSizeCss}\n`;\n\n// Panels\nexport const panelsCss = css`\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: center;\n  width: 100%;\n\n  & > div {\n    margin: auto;\n\n    & > div:not(:last-of-type):not(.${buttonsWrapperClassName}) {\n      margin-bottom: calc(${m('--spacing-xxl')} * 2);\n    }\n  }\n`;\n\n// Single Button\nexport const buttonActiveClassName = 'toggleButton-active';\n\nconst buttonBaseCss = css`\n  border-radius: 64px;\n  cursor: pointer;\n  font-weight: ${m('--action-desktop-font-weight')};\n  line-height: ${m('--action-desktop-font-line-height')};\n  text-decoration: none;\n  transition: transform 150ms ease-in-out;\n  white-space: nowrap;\n  z-index: ${ZIndex.BUTTON};\n\n  @media (hover: hover) {\n    &:hover:not(:disabled) {\n      box-shadow: ${m('--box-shadow-xl')};\n      transform: translateY(-2px);\n    }\n  }\n\n  &:active:not(:disabled) {\n    box-shadow: ${m('--box-shadow-m')};\n    transform: translateY(-1px);\n  }\n\n  ${mobileMediaQuery} {\n    font-weight: ${m('--action-mobile-font-weight')};\n    line-height: ${m('--action-mobile-font-line-height')};\n  }\n`;\n\nconst buttonSizeCss = css`\n  margin-inline: ${m('--spacing-xs')};\n  margin-bottom: ${m('--spacing-xl')};\n  font-size: ${m('--action-desktop-font-size')};\n  padding: ${m('--spacing-s')} ${m('--spacing-xl')};\n  border: 1px solid ${m('--chart-toggle-buttons-border-color')};\n  background-color: ${m('--chart-toggle-buttons-bg-color')};\n  color: ${m('--chart-toggle-buttons-color')};\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--action-mobile-font-size')};\n  }\n\n  &.${buttonActiveClassName} {\n    border: 1px solid ${m('--chart-toggle-buttons-active-border-color')};\n    background-color: ${m('--chart-toggle-buttons-active-bg-color')};\n    color: ${m('--chart-toggle-buttons-active-color')};\n  }\n`;\n\nexport const buttonCss = css`\n  ${buttonBaseCss}\n  ${buttonSizeCss}\n`;\n\n// TODO: Simplify this... I think it's just adding some margin on the child.\nexport const contentContainerStyle1ColumnCss = css`\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: center;\n  position: relative;\n  width: 100%;\n\n  & > * {\n    box-sizing: border-box;\n    margin-left: ${m('--spacing-m')};\n    margin-right: ${m('--spacing-m')};\n\n    ${mobileMediaQuery} {\n      margin-left: 0;\n      margin-right: 0;\n      width: 100%;\n    }\n\n    width: 100%;\n  }\n`;\n\nexport const chartToggleWrapperCss = css`\n  align-items: flex-start;\n  column-gap: ${m('--spacing-m')};\n  display: flex;\n  min-height: 70vh;\n  row-gap: ${m('--spacing-xl')};\n\n  ${mobileMediaQuery} {\n    flex-direction: column;\n\n    & > * {\n      width: 100%;\n    }\n\n    /** Style buttons in dropdown component */\n    button {\n      width: 100%;\n    }\n  }\n\n  ${nonMobileMediaQuery} {\n    flex-wrap: wrap;\n\n    & > *:not(.${dropdownWrapperClassName}, .${skeletonWrapperClassName}) {\n      width: 100%;\n    }\n  }\n`;\n\nexport const dropdownCss = css`\n  display: flex;\n  flex-direction: column;\n  gap: ${m('--spacing-xs')};\n  justify-content: end;\n\n  label {\n    font-size: ${m('--action-desktop-font-size')};\n    font-weight: ${m('--action-desktop-font-weight')};\n\n    ${mobileMediaQuery} {\n      font-size: ${m('--action-mobile-font-size')};\n      font-weight: ${m('--action-mobile-font-weight')};\n    }\n  }\n\n  ${mobileMediaQuery} {\n    width: 100%;\n  }\n`;\n\nexport const noLabelCss = css`\n  ${nonMobileMediaQuery} {\n    margin-block-start: calc(24px + ${m('--spacing-xs')});\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport { nonMobileMediaQuery } from '../../constants';\nimport { m } from '../../motif';\n\nconst defaultColor = 'rgb(232, 232, 235)';\n\nexport const skeletonWrapperCss = css`\n  /** align with dropdown */\n  margin-block-start: 17px;\n`;\n\nexport const skeletonLabelCss = css`\n  background-color: ${m('--dropdown-skeleton-animation-default-color')};\n  border-radius: ${m('--border-radius-m')};\n  height: 6px;\n  margin-block-end: ${m('--spacing-xs')};\n  width: 51px;\n`;\n\nexport const skeletonLinesWrapperCss = css`\n  align-items: center;\n  background-color: ${m('--dropdown-menu-bg-color')};\n  border-radius: ${m('--border-radius-m')};\n  box-shadow: ${m('--box-shadow-s')};\n  color: ${m('--foreground-color')};\n  display: flex;\n  gap: 6px;\n  justify-content: space-between;\n  min-width: 160px;\n  padding: ${m('--spacing-s')} ${m('--spacing-m')};\n`;\n\nexport const skeletonLineCss = css`\n  background-color: ${m('--dropdown-skeleton-animation-default-color')};\n  border-radius: ${m('--border-radius-m')};\n  height: 12px;\n\n  &:nth-child(1) {\n    flex: 0 0 48px;\n  }\n\n  &:nth-child(2) {\n    flex: 1 1 100%;\n  }\n\n  ${nonMobileMediaQuery} {\n    &:nth-child(1) {\n      flex: 0 0 28px;\n    }\n  }\n`;\n\nexport const skeletonLineAnimationCss = css`\n  overflow: hidden;\n  position: relative;\n\n  &::before {\n    animation: dropdown-skeleton 2s infinite;\n    background: linear-gradient(\n      0.25turn,\n      transparent,\n      ${m('--dropdown-skeleton-animation-color')},\n      transparent\n    );\n    content: '';\n    height: 100%;\n    left: 0;\n    opacity: 0.8;\n    pointer-events: none;\n    position: absolute;\n    top: 0;\n    transform: translateX(-100%);\n    width: 100%;\n  }\n\n  @keyframes dropdown-skeleton {\n    0% {\n      transform: translateX(-100%);\n    }\n    30% {\n      transform: translateX(-100%);\n    }\n    100% {\n      transform: translateX(100%);\n    }\n  }\n`;\n\nexport const skeletonIconWrapperCss = css`\n  flex: 0 0 20px;\n`;\n\nexport const skeletonDropdownIconCss = css`\n  fill: ${defaultColor};\n  position: relative;\n  top: 1px;\n  transform: rotate(0deg);\n  transition: transform 250ms;\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { Icon } from '../Icon';\nimport { skeletonWrapperClassName } from '../visualizations/ChartToggle/styles';\nimport {\n  skeletonDropdownIconCss,\n  skeletonIconWrapperCss,\n  skeletonLabelCss,\n  skeletonLineAnimationCss,\n  skeletonLineCss,\n  skeletonLinesWrapperCss,\n  skeletonWrapperCss,\n} from './DropdownSkeleton.styles';\n\n/**\n * `SkeletonChartToggleDropdown` is a functional component that renders a skeleton screen\n * placeholder for a chart toggle dropdown. This component is typically used to display a loading\n * state while the actual chart toggle dropdown is being loaded. Usage:\n *\n * ```jsx\n * <SkeletonChartToggleDropdown />;\n * ```\n *\n * @returns A React element representing the skeleton state of a chart toggle dropdown.\n */\nexport const DropdownSkeleton: FC = () => (\n  <aside className={cx('sdsm-dropdown-skeleton', skeletonWrapperClassName, skeletonWrapperCss)}>\n    <div className={cx(skeletonLabelCss, skeletonLineAnimationCss)} />\n    <div className={cx(skeletonLinesWrapperCss)}>\n      <div className={cx(skeletonLineCss, skeletonLineAnimationCss)} />\n      <div className={cx(skeletonLineCss, skeletonLineAnimationCss)} />\n      <div className={skeletonIconWrapperCss}>\n        <Icon size={20} className={skeletonDropdownIconCss} name=\"chevron-down\" />\n      </div>\n    </div>\n  </aside>\n);\n", "import { cx } from '@emotion/css';\nimport type { ChangeEvent, FC } from 'react';\nimport { useMemo } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps } from '../../types';\nimport { dataSetToAttributes } from '../../utils';\nimport type { DropdownItem, DropdownMenuButtonProps } from '../DropdownMenu';\nimport { DropdownMenu } from '../DropdownMenu';\nimport { Icon } from '../Icon';\nimport {\n  caratCss,\n  desktopWrapperCss,\n  dropdownCss,\n  dropdownMainTextCss,\n  dropdownMobileCss,\n  dropdownMobileWrapperCss,\n  dropdownSecondaryTextCss,\n  dropdownTextCss,\n} from './filterDropdownMenuStyles';\n\nexport const allValue = 'all';\n// We'll generate the onClick ourselves.\ntype AbridgedDropdownItem = Pick<DropdownItem, 'title' | 'id'>;\n\nexport interface FilterDropdownMenuProps extends BaseComponentProps {\n  title: string;\n  id: string;\n  allItemTitle: DropdownItem['title'];\n  items: AbridgedDropdownItem[];\n  value?: string;\n  onChange?: (itemId?: string) => void;\n  isStandalone?: boolean;\n}\n\n/**\n * Returns the dropdown used for filtering.\n *\n * @param title - Title of filter dropdown\n * @param onChange - Callback function for filter change\n * @param isStandalone - Is filter standalone (defaults to true )\n * @param value - Current value of filter dropdown\n * @param allItemsTitle - Title for all values selection\n * @param items - Dropdown option items\n * @param dataset - Dataset attributes\n * @param id - Dropdown id\n */\nexport const FilterDropdownMenu: FC<FilterDropdownMenuProps> = ({\n  title,\n  onChange,\n  isStandalone = true,\n  value,\n  allItemTitle,\n  items,\n  dataset,\n}) => {\n  useMotifStyles(MotifComponent.FILTER_DROPDOWN_MENU);\n  const itemsWithEvents = useMemo(() => {\n    const result = [\n      {\n        title: allItemTitle,\n        id: allValue,\n        onClick: () => onChange?.(undefined),\n      },\n      ...items.map(({ title, id }) => ({ title, id, onClick: () => onChange?.(id) })),\n    ];\n\n    return result;\n  }, [allItemTitle, items, onChange]);\n\n  const onChangeMobile = (e: ChangeEvent<HTMLSelectElement>) => {\n    if (e.target.value === allValue) {\n      onChange?.(undefined);\n    } else {\n      onChange?.(e.target.value);\n    }\n  };\n\n  const FilterButton: FC<DropdownMenuButtonProps> = props => {\n    return (\n      <button\n        onClick={props.onClick}\n        data-testid=\"sds-dropdown-menu\"\n        className={dropdownCss}\n        aria-haspopup=\"listbox\"\n        aria-label={props.ariaLabel}\n        role=\"combobox\"\n        {...dataSetToAttributes(dataset)}\n      >\n        <div\n          data-testid=\"sds-dropdown-menu-title\"\n          className={cx(dropdownTextCss, dropdownMainTextCss)}\n        >\n          {props.children}\n        </div>\n        <div className={caratCss}>\n          <Icon size={24} name={props.isExpanded ? 'chevron-up' : 'chevron-down'} />\n        </div>\n      </button>\n    );\n  };\n\n  return (\n    <>\n      <div\n        data-testid=\"sds-dropdown-menu-container\"\n        className={cx(MotifComponent.FILTER_DROPDOWN_MENU, desktopWrapperCss)}\n      >\n        <DropdownMenu\n          placeholderText={title}\n          selectedItemId={value}\n          items={itemsWithEvents}\n          ariaLabel={title}\n          buttonComponent={FilterButton}\n        />\n      </div>\n      <div\n        data-testid=\"sds-dropdown-menu-container-mobile\"\n        className={dropdownMobileWrapperCss}\n        {...dataSetToAttributes(dataset)}\n      >\n        <select\n          data-testid=\"sds-dropdown-menu-mobile\"\n          className={cx(dropdownMobileCss, dropdownTextCss, {\n            [dropdownMainTextCss]: isStandalone,\n            [dropdownSecondaryTextCss]: !isStandalone,\n          })}\n          value={value}\n          onChange={onChangeMobile}\n        >\n          {itemsWithEvents.map(({ title, id }) => (\n            <option key={id} value={id}>\n              {title}\n            </option>\n          ))}\n        </select>\n        <div className={caratCss}>\n          <Icon name=\"chevron-down\" />\n        </div>\n      </div>\n    </>\n  );\n};\n\nFilterDropdownMenu.displayName = 'FilterDropdownMenu';\n", "import { css } from '@emotion/css';\n\nimport { MobileHeading, mobileMediaQuery, nonMobileMediaQuery, Spacing } from '../../constants';\nimport { m } from '../../motif/m';\n\nexport const desktopWrapperCss = css`\n  ${mobileMediaQuery} {\n    display: none;\n  }\n\n  ${nonMobileMediaQuery} {\n    display: block;\n  }\n`;\n\nexport const dropdownCss = css`\n  border: none;\n  background-color: inherit;\n  color: ${m('--foreground-color')};\n  align-items: center;\n  display: flex;\n  padding-block: ${Spacing.MD}px;\n  margin-inline-end: ${Spacing.XL}px;\n`;\n\nexport const dropdownMobileWrapperCss = css`\n  ${mobileMediaQuery} {\n    position: relative;\n  }\n\n  ${nonMobileMediaQuery} {\n    display: none;\n  }\n`;\n\nexport const dropdownMobileCss = css`\n  ${mobileMediaQuery} {\n    width: 100%;\n  }\n`;\n\nexport const dropdownTextCss = css`\n  cursor: pointer;\n  font-family: inherit;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n\n  *[dir='rtl'] & {\n    text-align: right;\n  }\n\n  ${mobileMediaQuery} {\n    background: none;\n    border: none;\n    padding-block: ${Spacing.XS}px;\n    padding-inline-end: ${Spacing.XL}px;\n    /* stylelint-disable-next-line property-no-vendor-prefix */\n    -webkit-appearance: none;\n    appearance: none;\n    width: 100%;\n  }\n`;\n\nexport const dropdownMainTextCss = css`\n  font-size: 24px;\n  font-weight: 600;\n  line-height: 32px;\n\n  ${mobileMediaQuery} {\n    ${MobileHeading.M400};\n    line-height: 28px;\n  }\n`;\n\nexport const dropdownSecondaryTextCss = css`\n  color: ${m('--foreground-color')};\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 20px;\n  margin-inline-end: ${Spacing.XS}px;\n  width: 100%;\n`;\n\nexport const caratCss = css`\n  font-size: 16px;\n  pointer-events: none;\n\n  svg {\n    fill: ${m('--foreground-color')};\n  }\n\n  ${nonMobileMediaQuery} {\n    margin-block-start: 3px;\n    margin-inline-start: 9px;\n\n    *[dir='rtl'] & {\n      margin-right: ${Spacing.XS}px;\n    }\n  }\n\n  ${mobileMediaQuery} {\n    position: absolute;\n    right: 4px;\n    top: 50%;\n    transform: translateY(-50%);\n\n    *[dir='rtl'] & {\n      left: 4px;\n      right: auto;\n    }\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport {\n  maxWidth,\n  mobileMediaQuery,\n  nonMobileMediaQuery,\n  nonTwoColumnCollapseMediaQuery,\n  twoColumnCollapseMediaQuery,\n} from '../../../constants';\nimport { m } from '../../../motif/m';\n\nexport const wrapperCss = css`\n  color: ${m('--footer-bar-fg-color')};\n  background-color: ${m('--footer-bar-bg-color')};\n  border-top: 1px solid ${m('--footer-bar-divider-border-color')};\n  display: flex;\n  justify-content: center;\n`;\n\nexport const footerBarContainerCss = css`\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  max-width: ${maxWidth}px;\n  padding-block: ${m('--spacing-xl')};\n  position: relative;\n  white-space: nowrap;\n  width: 100%;\n\n  ${nonMobileMediaQuery} {\n    padding-block: ${m('--spacing-s')};\n    padding-inline: ${m('--spacing-xl')};\n  }\n\n  ${twoColumnCollapseMediaQuery} {\n    gap: 27px;\n    padding-block: ${m('--spacing-l')};\n    padding-inline: ${m('--spacing-xxxxl')};\n  }\n\n  ${nonTwoColumnCollapseMediaQuery} {\n    flex-direction: row;\n    gap: 0;\n    padding-inline: ${m('--spacing-xxxxl')};\n\n    div {\n      width: auto;\n    }\n  }\n\n  ${mobileMediaQuery} {\n    gap: 0;\n    padding-inline: ${m('--spacing-xl')};\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { getBackgroundClassName } from '../../../utils';\nimport { footerBarContainerCss, wrapperCss } from './styles';\nimport type { FooterBarProps } from './types';\n\nexport const FooterBar: FC<FooterBarProps> = ({ children, backgroundColor }) => {\n  return (\n    <div\n      data-testid=\"footer-bar\"\n      className={cx(getBackgroundClassName(backgroundColor), wrapperCss)}\n    >\n      <div className={footerBarContainerCss}>{children}</div>\n    </div>\n  );\n};\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { MediaMode } from '../../../constants';\nimport { FooterContext } from '../FooterContext';\nimport { FooterColumnsDesktop } from './FooterColumnsDesktop';\nimport { FooterColumnsMobile } from './FooterColumnsMobile';\nimport type { FooterColumnsProps } from './types';\n\nexport const FooterColumns: FC<FooterColumnsProps> = ({ children, ...props }) => {\n  const { mode } = useContext(FooterContext);\n\n  if (mode === MediaMode.Mobile) {\n    return <FooterColumnsMobile {...props}>{children}</FooterColumnsMobile>;\n  }\n\n  return <FooterColumnsDesktop {...props}>{children}</FooterColumnsDesktop>;\n};\n", "import { createContext } from 'react';\n\nimport type { MediaMode } from '../../constants';\n\ninterface FooterContextProps {\n  mode?: MediaMode;\n  expandedItem?: string;\n  setExpandedItem?: (id?: string) => void;\n}\n\nexport const FooterContext = createContext<FooterContextProps>({});\n", "import { css } from '@emotion/css';\n\nimport {\n  maxWidth,\n  nonTwoColumnCollapseMediaQuery,\n  twoColumnCollapseMediaQuery,\n} from '../../../constants';\nimport { m } from '../../../motif/m';\n\nexport const wrapperCss = css`\n  border-top-color: ${m('--footer-border-color')};\n  border-top-style: solid;\n  border-top-width: 1px;\n  color: ${m('--footer-fg-color')};\n  background-color: ${m('--footer-bg-color')};\n  display: flex;\n  justify-content: center;\n`;\n\nexport const footerColumnsDesktopCss = css`\n  box-sizing: border-box;\n  display: flex;\n  flex-wrap: wrap;\n  gap: ${m('--spacing-m')};\n  max-width: ${maxWidth}px;\n  padding-block: ${m('--spacing-xl')};\n  padding-inline: ${m('--spacing-l')};\n  width: 100%;\n\n  ${twoColumnCollapseMediaQuery} {\n    padding-inline: ${m('--spacing-xxxxl')};\n  }\n\n  ${nonTwoColumnCollapseMediaQuery} {\n    padding-inline: ${m('--spacing-xxxxl')};\n  }\n`;\n\nexport const footerColumnsCenteredCss = css`\n  justify-content: space-between;\n`;\n\nexport const footerColumnMobileItemsCss = css`\n  box-sizing: border-box;\n`;\n\nexport const footerColumnMobileCss = css`\n  align-items: center;\n  border-top: 1px solid ${m('--footer-divider-border-color')};\n  color: ${m('--footer-fg-color')};\n  background-color: ${m('--footer-bg-color')};\n  display: block;\n  padding-block: ${m('--spacing-xl')} ${m('--spacing-xl')};\n  padding-inline: ${m('--spacing-xl')};\n`;\n\nexport const oneColumnWidthCss = css`\n  > div {\n    width: 100%;\n  }\n`;\n\n// formula: (100% - {min gap width} * {number of columns per row - 1}) / {number of columns per row}\nexport const twoColumnWidthCss = css`\n  > div {\n    width: calc((100% - ${m('--spacing-m')}) / 2);\n  }\n`;\nexport const threeColumnWidthCss = css`\n  > div {\n    width: calc((100% - (${m('--spacing-m')} * 2)) / 3);\n  }\n`;\nexport const fourColumnWidthCss = css`\n  > div {\n    width: calc((100% - (${m('--spacing-m')} * 3)) / 4);\n  }\n`;\nexport const fiveOrMoreColumnWidthCss = css`\n  > div {\n    width: calc((100% - (${m('--spacing-m')} * 4)) / 5);\n  }\n\n  ${nonTwoColumnCollapseMediaQuery} {\n    > div {\n      width: calc((100% - (${m('--spacing-m')} * 5)) / 6);\n    }\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport {\n  fiveOrMoreColumnWidthCss,\n  footerColumnsCenteredCss,\n  footerColumnsDesktopCss,\n  fourColumnWidthCss,\n  oneColumnWidthCss,\n  threeColumnWidthCss,\n  twoColumnWidthCss,\n  wrapperCss,\n} from './styles';\nimport type { FooterColumnsProps } from './types';\n\nexport const FooterColumnsDesktop: FC<FooterColumnsProps> = ({ children }) => {\n  let footerStyle = cx(footerColumnsDesktopCss);\n\n  const childrenLength = Array.isArray(children) ? children.filter(child => !!child).length : 1;\n\n  switch (childrenLength) {\n    case 1:\n      footerStyle = cx(footerColumnsDesktopCss, oneColumnWidthCss);\n      break;\n    case 2:\n      footerStyle = cx(footerColumnsDesktopCss, twoColumnWidthCss);\n      break;\n    case 3:\n      footerStyle = cx(footerColumnsDesktopCss, threeColumnWidthCss);\n      break;\n    case 4:\n      footerStyle = cx(footerColumnsDesktopCss, fourColumnWidthCss);\n      break;\n    default:\n      footerStyle = cx(footerColumnsDesktopCss, fiveOrMoreColumnWidthCss);\n      break;\n  }\n\n  if (childrenLength <= 6) {\n    footerStyle = cx(footerStyle, footerColumnsCenteredCss);\n  }\n\n  return (\n    <article data-testid=\"footer-columns-desktop\" className={wrapperCss}>\n      <div className={footerStyle}>{children}</div>\n    </article>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useState } from 'react';\n\nimport { MediaMode } from '../../../constants';\nimport { getBackgroundClassName } from '../../../utils';\nimport { FooterContext } from '../FooterContext';\nimport type { FooterV2Props } from '../types';\nimport { footerColumnMobileCss, footerColumnMobileItemsCss } from './styles';\n\nexport const FooterColumnsMobile: FC<FooterV2Props> = ({ children, backgroundColor }) => {\n  const [expandedItem, setExpandedItem] = useState<string | undefined>();\n\n  return (\n    <FooterContext.Provider\n      value={{\n        mode: MediaMode.Mobile,\n        expandedItem,\n        setExpandedItem,\n      }}\n    >\n      <div\n        data-testid=\"footer-columns-mobile\"\n        className={cx(\n          getBackgroundClassName(backgroundColor),\n          footerColumnMobileCss,\n          footerColumnMobileItemsCss\n        )}\n      >\n        {children}\n      </div>\n    </FooterContext.Provider>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useContext, useMemo } from 'react';\n\nimport { MediaMode } from '../../../constants';\nimport { DetailsSummary } from '../../DetailsSummary';\nimport { globalNavGroupAnimationDurationMs } from '../../GlobalHeader/GlobalHeader.constants';\nimport { FooterContext } from '../FooterContext';\nimport {\n  footerColumnListCss,\n  footerGroupCss,\n  footerHeaderCss,\n  footerHeaderSpacingCss,\n  footerHorizontalLayoutCss,\n} from './styles';\nimport type { FooterGroupProps } from './types';\nimport { Orientation } from './types';\n\nexport const FooterGroup: FC<FooterGroupProps> = ({\n  children,\n  title,\n  orientation = Orientation.Vertical,\n  isFooterBar,\n}) => {\n  const { mode } = useContext(FooterContext);\n\n  const containerClassName = cx(footerGroupCss, {\n    [footerHorizontalLayoutCss]: orientation === Orientation.Horizontal,\n  });\n\n  const footerHeaderClassName = cx(footerHeaderCss, {\n    [footerHeaderSpacingCss]: orientation === Orientation.Vertical,\n  });\n\n  const header = useMemo(() => {\n    if (!title) {\n      return null;\n    }\n\n    if (typeof title !== 'string') {\n      return title;\n    }\n\n    return (\n      <div className={footerHeaderClassName}>\n        <span>{title}</span>\n      </div>\n    );\n  }, [title, footerHeaderClassName]);\n\n  const childrenWrapper = useMemo(() => {\n    if (!children) {\n      return null;\n    }\n\n    return (\n      <ul\n        className={cx(footerColumnListCss, {\n          [footerHorizontalLayoutCss]: orientation === Orientation.Horizontal,\n        })}\n      >\n        {children}\n      </ul>\n    );\n  }, [children, orientation]);\n\n  // Adding this here because using an open detail summary\n  // for the footer bar items causes automatic scroll to the footer (bug)\n  // follow up: https://jira.sc-corp.net/browse/ENTWEB-7631\n  if (isFooterBar && mode === MediaMode.Mobile) {\n    return (\n      <ul\n        className={cx(footerColumnListCss, {\n          [footerHorizontalLayoutCss]: orientation === Orientation.Horizontal,\n        })}\n      >\n        {children}\n      </ul>\n    );\n  }\n\n  return mode === MediaMode.Mobile ? (\n    <DetailsSummary\n      showChevron={!!title}\n      summary={title}\n      summaryProps={{ className: footerHeaderClassName }}\n      className={containerClassName}\n      fadeInAnimation\n      transitionDurationMs={globalNavGroupAnimationDurationMs}\n      disableScrollToOnOpen={isFooterBar}\n    >\n      {childrenWrapper}\n    </DetailsSummary>\n  ) : (\n    <div data-testid=\"footer-group\" className={containerClassName}>\n      {header}\n      {childrenWrapper}\n    </div>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { nonMobileMediaQuery, nonTwoColumnCollapseMediaQuery } from '../../../constants';\nimport { m } from '../../../motif/m';\n\nexport const footerHeaderCss = css`\n  font-size: 14px;\n  color: ${m('--foreground-color')};\n  font-weight: 700;\n  padding-inline-end: ${m('--spacing-xl')};\n  word-break: break-word;\n\n  ${nonMobileMediaQuery} {\n    padding-inline-end: 0;\n  }\n`;\n\nexport const footerHeaderSpacingCss = css`\n  margin-block-end: ${m('--spacing-xs')};\n`;\n\nexport const footerGroupCss = css`\n  border-bottom: 1px solid ${m('--footer-border-color')};\n  font-size: 14px;\n  font-weight: 400;\n  line-height: 16px;\n  padding-block: ${m('--spacing-m')};\n  padding-inline: 0 ${m('--spacing-m')};\n\n  &:first-child {\n    padding-block-start: ${m('--spacing-s')};\n  }\n\n  ${nonMobileMediaQuery} {\n    border-bottom: 0;\n    padding-bottom: ${m('--spacing-xxs')};\n    padding-inline: 0;\n    padding-top: 0;\n\n    &:first-child {\n      padding-block-start: 0;\n    }\n  }\n`;\n\nexport const footerColumnListCss = css`\n  display: flex;\n  flex-direction: column;\n  list-style-type: none;\n  margin: 0;\n  padding-block: ${m('--spacing-s')} 0;\n  padding-inline: 0;\n  width: 100%;\n\n  ${nonMobileMediaQuery} {\n    padding: 0;\n  }\n`;\n\nexport const footerHorizontalLayoutCss = css`\n  a {\n    margin-inline: 0;\n    white-space: unset;\n  }\n\n  li {\n    margin: 0;\n  }\n\n  align-items: flex-start;\n  border: 0;\n  display: flex;\n  flex-direction: column;\n  gap: ${m('--spacing-m')};\n  padding-block: ${m('--spacing-s')};\n\n  ${nonMobileMediaQuery} {\n    align-items: center;\n    flex-direction: row;\n    gap: ${m('--spacing-l')};\n    padding-block: 0;\n\n    &:first-child {\n      padding-block-start: 0;\n    }\n  }\n\n  ${nonTwoColumnCollapseMediaQuery} {\n    &:first-child {\n      margin-inline-start: 0;\n    }\n\n    &:last-child {\n      margin-inline-end: 0;\n    }\n  }\n`;\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { PrimitivesContext } from '../../Primitives';\nimport { footerItemContainerCss, footerItemCss } from './styles';\nimport type { FooterItemProps } from './types';\n\nexport const FooterItemV2: FC<FooterItemProps> = ({ id, url, title, onClick }) => {\n  const { Anchor } = useContext(PrimitivesContext);\n  return (\n    <li data-testid=\"footer-item\" id={id} className={footerItemContainerCss}>\n      <Anchor href={url} onClick={onClick} className={footerItemCss}>\n        {title}\n      </Anchor>\n    </li>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { nonMobileMediaQuery } from '../../../constants';\nimport { m } from '../../../motif/m';\n\nexport const footerItemContainerCss = css`\n  margin: ${m('--spacing-s')} 0;\n\n  ${nonMobileMediaQuery} {\n    margin: ${m('--spacing-xxs')} 0;\n  }\n`;\n\nexport const footerItemCss = css`\n  color: ${m('--foreground-color')};\n  font-weight: 400;\n  text-decoration: none;\n  font-size: 14px;\n  white-space: pre-wrap;\n\n  @media (hover: hover) {\n    &:hover {\n      text-decoration: underline;\n      text-decoration-thickness: ${m('--spacing-xxxs')};\n      text-underline-offset: ${m('--spacing-xxxs')};\n    }\n  }\n\n  ${nonMobileMediaQuery} {\n    margin: 0;\n    margin-inline-end: ${m('--spacing-s')};\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport { maxWidth, nonMobileMediaQuery } from '../../../constants';\nimport { m } from '../../../motif/m';\n\nexport const wrapperCss = css`\n  color: ${m('--footer-fg-color')};\n  background-color: ${m('--footer-bg-color')};\n  border-top-color: ${m('--footer-divider-border-color')};\n  border-top-style: solid;\n  border-top-width: 2px;\n  display: flex;\n  justify-content: center;\n  width: 100%;\n`;\n\nexport const footerSocialCss = css`\n  align-items: center;\n  color: ${m('--foreground-color')};\n  display: flex;\n  flex-direction: row;\n  flex-wrap: wrap;\n  gap: ${m('--spacing-l')};\n  max-width: ${maxWidth}px;\n  padding-block: ${m('--spacing-m')};\n  padding-inline: ${m('--spacing-xl')};\n  position: relative;\n  width: 100%;\n\n  ${nonMobileMediaQuery} {\n    flex-direction: row;\n    justify-content: center;\n    padding-block: ${m('--spacing-m')};\n    padding-inline: ${m('--spacing-xxxxl')};\n  }\n`;\n\nexport const footerSocialIconsWrapperCss = css`\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  gap: ${m('--spacing-s')};\n`;\n", "import type { FC } from 'react';\n\nimport { footerSocialCss, footerSocialIconsWrapperCss, wrapperCss } from './styles';\nimport type { FooterSocialProps } from './types';\n\nexport const FooterSocial: FC<FooterSocialProps> = ({ title, children }) => {\n  return (\n    <section data-testid=\"footer-social\" className={wrapperCss}>\n      <div className={footerSocialCss}>\n        {title && <h5>{title}</h5>}\n        <div className={footerSocialIconsWrapperCss}>{children}</div>\n      </div>\n    </section>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { useMediaMode } from '../../hooks/useMediaMode';\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { getBackgroundClassName } from '../../utils/themeUtils';\nimport { FooterContext } from './FooterContext';\nimport type { FooterV2Props } from './types';\n\nexport const FooterV2: FC<FooterV2Props> = ({ children, backgroundColor }) => {\n  const mode = useMediaMode();\n  useMotifStyles(MotifComponent.FOOTER);\n\n  return (\n    <FooterContext.Provider\n      value={{\n        mode,\n      }}\n    >\n      <footer\n        data-testid=\"footer-v2\"\n        className={cx(MotifComponent.FOOTER, getBackgroundClassName(backgroundColor))}\n      >\n        {children}\n      </footer>\n    </FooterContext.Provider>\n  );\n};\n", "/* stylelint-disable no-duplicate-selectors */\nimport { css } from '@emotion/css';\n\nimport { maxWidth, mobileMediaQuery, nonMobileMediaQuery } from '../../constants';\nimport { m, p3Css } from '../../motif';\n\nexport const footnoteCss = css`\n  box-sizing: border-box;\n  display: flex;\n  gap: 0.25em;\n  margin: 0 auto ${m('--spacing-m')};\n  max-width: ${maxWidth}px;\n  padding: 0 ${m('--spacing-xl')};\n  ${p3Css}\n\n  ${mobileMediaQuery} {\n    padding: 0 ${m('--spacing-m')};\n  }\n\n  p {\n    margin-bottom: 0;\n  }\n\n  a {\n    ${p3Css}\n\n    ${nonMobileMediaQuery} {\n      font-weight: ${m('--hyperlink-desktop-font-weight')};\n    }\n\n    ${mobileMediaQuery} {\n      font-weight: ${m('--hyperlink-mobile-font-weight')};\n    }\n  }\n`;\n\nexport const footnoteSuperscriptCss = css`\n  font-size: 10px;\n  line-height: 18px;\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC, ReactNode } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { Superscript } from '../Primitives';\nimport { footnoteCss, footnoteSuperscriptCss } from './Footnote.styled';\n\nexport interface FootnoteProps {\n  index: string;\n  children?: ReactNode;\n}\n\nexport const Footnote: FC<FootnoteProps> = ({ index, children }) => {\n  useMotifStyles(MotifComponent.FOOTNOTE);\n  return (\n    <div data-testid=\"sdsm-footnote\" className={cx(MotifComponent.FOOTNOTE, footnoteCss)}>\n      {/* Note: The whitespace after \"index\" is important. It ensures that the browser never considers\n      the footnote index as a part of the footnote content (i.e. \"children\"). This can happen if\n      the footnote content begins with a roman numeral (i.e. 1, 2, 3 etc...) and causes problems\n      in RTL locales */}\n      <span className={footnoteSuperscriptCss}>\n        <Superscript>{index} </Superscript>\n      </span>\n      {/* Wrap the children with a single parent element to prevent unintended flexbox layouts when\n      children is an array */}\n      <span>{children}</span>\n    </div>\n  );\n};\n\nFootnote.displayName = 'Footnote';\n", "import { cx } from '@emotion/css';\nimport type { FC, PropsWithChildren } from 'react';\nimport { Children, useCallback, useRef, useState } from 'react';\n\nimport { m } from '../../motif/m';\nimport type { BaseComponentProps } from '../../types';\nimport { itemChevronCss } from '../Accordion/AccordionItem/styles';\nimport { DetailsSummary } from '../DetailsSummary';\nimport {\n  footnoteAccordionItemContentCss,\n  footnoteAccordionItemSummaryCss,\n  footnoteDetailsCss,\n  footnotesContentCss,\n  footnotesCss,\n  footnotesPrintCss,\n} from './FootnoteBlock.styles';\n\nexport const footnoteBlockBackgroundColor = 'White';\n\ninterface FootnoteBlockProps extends PropsWithChildren<BaseComponentProps> {\n  title: string;\n  isOpenInitially: boolean;\n}\n\nconst animationDuration = 300;\n\nconst chevronProps = { className: itemChevronCss, fill: m('--icon-color') };\nconst summaryProps = {\n  className: footnoteAccordionItemSummaryCss,\n};\n\nexport const FootnoteBlock: FC<FootnoteBlockProps> = ({\n  title,\n  isOpenInitially,\n  children,\n  className,\n}) => {\n  const [open, setOpen] = useState(isOpenInitially);\n  const detailsRef = useRef<HTMLDetailsElement | null>(null);\n\n  const onToggle = useCallback(() => {\n    setOpen(open => !open);\n  }, []);\n\n  if (Children.count(children) === 0) {\n    return null;\n  }\n\n  return (\n    <footer data-test-id=\"sdsm-footnotes\" className={cx(footnotesCss, className)}>\n      <div className={footnotesContentCss}>\n        {/* Show for print, hide for screen */}\n        <div className={footnotesPrintCss}>\n          <h2 className={footnoteAccordionItemSummaryCss}>{title}</h2>\n          {children}\n        </div>\n        <DetailsSummary\n          summary={title}\n          detailsRef={detailsRef}\n          chevronProps={chevronProps}\n          className={footnoteDetailsCss}\n          summaryProps={summaryProps}\n          onToggle={onToggle}\n          fadeInAnimation\n          transitionDurationMs={animationDuration}\n          open={open}\n        >\n          <div className={footnoteAccordionItemContentCss}>{children}</div>\n        </DetailsSummary>\n      </div>\n    </footer>\n  );\n};\n\nFootnoteBlock.displayName = 'FootnoteBlock';\n", "import { css } from '@emotion/css';\n\nimport { maxWidth, mobileMediaQuery } from '../../constants';\nimport { m } from '../../motif/m';\n\nexport const footnotesCss = css`\n  background-color: ${m('--footnote-bg-color')};\n  border-top: 1px solid ${m('--footnote-border-color')};\n`;\n\nexport const footnotesContentCss = css`\n  color: ${m('--footnote-fg-color')};\n  margin: 0px auto;\n  max-width: ${maxWidth}px;\n  padding: 0 ${m('--spacing-xl')};\n\n  ${mobileMediaQuery} {\n    padding: 0 ${m('--spacing-m')};\n  }\n`;\n\nexport const footnotesPrintCss = css`\n  display: none;\n\n  @media print {\n    display: block;\n    padding-block: ${m('--spacing-l')};\n  }\n`;\n\nexport const footnoteDetailsCss = css`\n  padding-bottom: 0;\n\n  @media print {\n    display: none;\n  }\n`;\n\nexport const footnoteAccordionItemSummaryCss = css`\n  color: ${m('--footnote-title-color')};\n  font-size: ${m('--h6-desktop-font-size')};\n  font-weight: 500;\n  height: 92px;\n  line-height: 28px;\n  margin: 0 auto;\n  max-width: ${maxWidth}px;\n  padding-inline-start: ${m('--spacing-xl')};\n\n  ${mobileMediaQuery} {\n    padding: 0 ${m('--spacing-m')};\n  }\n\n  & > svg {\n    background-color: transparent;\n    border-radius: 100%;\n    height: 32px;\n    padding: 6px;\n    transition: background-color 0.2s linear;\n    width: 32px;\n  }\n\n  &:hover {\n    & > svg {\n      background-color: ${m('--footnote-hover-icon-bg-color')};\n    }\n  }\n`;\n\nexport const footnoteAccordionItemContentCss = css`\n  padding-bottom: ${m('--spacing-m')};\n`;\n", "import { cx } from '@emotion/css';\nimport { parseError } from '@snapchat/core';\nimport cloneDeep from 'lodash-es/cloneDeep';\nimport merge from 'lodash-es/merge';\nimport type { FC, ReactNode } from 'react';\nimport { createElement, useCallback, useEffect, useMemo, useReducer } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps } from '../../types';\nimport type { TriggerEvent } from '../../types/activationEvents';\nimport { Button, ButtonType } from '../Button';\nimport type { FormBody } from './Form.types';\nimport { FormEventType, FormStateType } from './Form.types';\nimport { FormContext } from './FormContext';\nimport { FormErrorMessage } from './FormErrorMessage';\nimport { formReducer, initialFormState } from './formReducer';\nimport { formCss, placeholderCss, submitButtonCss } from './styles';\n\n/** Proprties for the submit button. */\nexport interface SubmitProps {\n  handleSubmit: () => void;\n  /** Whether the submit button isn't clickable. */\n  disabled: boolean;\n  /** Whether the submission is processing. */\n  loading: boolean;\n  /** Whether the submit button is in success state. */\n  submitSuccess: boolean;\n}\n\n/** Properties for the `Form` component. */\nexport interface FormProps extends BaseComponentProps {\n  /** URL at which to submit the form. */\n  endpoint: string;\n  /** Text of the submit button. */\n  submitText?: string;\n  /** Text to display if the submission succeeds */\n  submitSuccessText?: string;\n  /**\n   * Data-* properties for the submit button.\n   *\n   * TODO: This should be part of the `SubmitProps`\n   */\n  submitTextDataset?: DOMStringMap;\n  /**\n   * Callback if the submission succeeds.\n   *\n   * Users may assume that the form clears.\n   */\n  onSubmitSuccess?: (response: Response, formBody: FormBody) => void;\n\n  /** Callback if the form submission fails. */\n  onSubmitFailure?: (error: Error, formBody: FormBody, response?: Response) => void;\n  className?: string;\n\n  /** Form children. Not that these are not rendered if `formChildrenRenderer` is passed in. */\n  children?: ReactNode;\n  formChildrenRenderer?: FC<SubmitProps>; // allow consumers to render form\n\n  /** Extra key=value pairs to send with the form submission. */\n  extraParams?: FormBody;\n  /** Extra async key-value paris to send with the form submission. */\n  extraParamsAsync?: () => Promise<FormBody>;\n\n  /** Called when form body changes. */\n  onFormBodyChange?: (formBody: FormBody, lastChangedFieldName?: string, isInit?: boolean) => void;\n\n  /** Error message to render on 400 server response */\n  on400ResponseMessage?: string;\n  /** Error message to render on 500 server response or unhandled error */\n  on500ResponseMessage?: string;\n  /** Error message to render on client side invalidation submission */\n  onInvalidClientSideSubmissionMessage?: string;\n  /** If true, renders error details in an element alongside the error message */\n  renderErrorDetails?: boolean;\n}\n\n/**\n * The Form component.\n *\n * TODO: Write description.\n */\nexport const Form: FC<FormProps> = ({\n  className,\n  children,\n  endpoint,\n  submitText,\n  submitSuccessText,\n  submitTextDataset,\n  onSubmitSuccess,\n  onSubmitFailure,\n  onFormBodyChange,\n  formChildrenRenderer,\n  extraParams,\n  extraParamsAsync,\n  on400ResponseMessage,\n  on500ResponseMessage,\n  onInvalidClientSideSubmissionMessage,\n  renderErrorDetails = false,\n}) => {\n  useMotifStyles(MotifComponent.FORM);\n  const [state, dispatch] = useReducer(formReducer, cloneDeep(initialFormState));\n\n  // Memoized form context value that only changes when state object changes.\n  const contextValue = useMemo(() => {\n    return { state, dispatch };\n  }, [state, dispatch]);\n\n  useEffect(() => {\n    onFormBodyChange?.(\n      cloneDeep(state.formBody),\n      state.lastChangedFieldName,\n      state.type === FormStateType.INITIAL\n    );\n  }, [onFormBodyChange, state.formBody, state.lastChangedFieldName, state.type]);\n\n  // On Submit Handling\n  const handleSubmit = useCallback((event?: TriggerEvent) => {\n    event?.preventDefault(); // Stop forms from submitting.\n\n    dispatch({ type: FormEventType.SUBMIT_TRIGGER });\n  }, []);\n\n  // We pipe the submit into 2 phases we can do a validation check in the reducer/\n  // before we submit.\n  useEffect(() => {\n    if (state.type !== FormStateType.SUBMITTING) return;\n\n    async function submitForm() {\n      const extraParamsRealized = (await extraParamsAsync?.().catch(() => ({}))) ?? {};\n      const formBody = merge({}, state.formBody, extraParams, extraParamsRealized);\n\n      try {\n        const response = await fetch(endpoint, {\n          method: 'POST',\n          body: JSON.stringify(formBody),\n          headers: { 'Content-Type': 'application/json' },\n        });\n\n        dispatch({ type: FormEventType.SUBMIT_TRIGGER });\n\n        if (!response.ok) {\n          const payload = await response.text();\n          const error = new Error(\n            `Form submit failed. Server Response: ${response.status} ${response.statusText}.\\r\\n ${payload}`\n          );\n          // This captures non-2XX responses (400 Bad Request, 401 Unauthorized, 500 Internal Server Error, etc.)\n          dispatch({ type: FormEventType.SUBMIT_FAILURE, errorStatusCode: response.status, error });\n          onSubmitFailure?.(error, formBody);\n        } else {\n          // This captures 2XX responses only.\n          dispatch({ type: FormEventType.SUBMIT_SUCCESS });\n          onSubmitSuccess?.(response, formBody);\n        }\n      } catch (rawError) {\n        const error = parseError(rawError);\n        // This captures network and unhandled errors.\n        dispatch({ type: FormEventType.SUBMIT_FAILURE, error });\n        onSubmitFailure?.(error, formBody);\n      }\n    }\n\n    void submitForm();\n  }, [\n    endpoint,\n    extraParams,\n    extraParamsAsync,\n    onSubmitFailure,\n    onSubmitSuccess,\n    state.formBody,\n    state.type,\n  ]);\n\n  // TODO: Consider separate useEffects for onSubmitSuccess and onSubmitFailure.\n\n  const disabled =\n    state.type === FormStateType.SUBMITTING || state.type === FormStateType.SUBMIT_SUCCESS;\n  const loading = state.type === FormStateType.SUBMITTING;\n  const submitSuccess = state.type === FormStateType.SUBMIT_SUCCESS;\n  const submitTextValue =\n    state.type === FormStateType.SUBMIT_SUCCESS ? submitSuccessText : submitText;\n\n  let formChildren: ReactNode;\n\n  // TODO: Remove this horrible form child renderer. This has no business\n  // being piped through the SDS-M component.\n  if (formChildrenRenderer) {\n    formChildren = createElement(formChildrenRenderer, {\n      handleSubmit,\n      disabled,\n      loading,\n      submitSuccess,\n    });\n  } else {\n    formChildren = (\n      <>\n        {children}\n        <Button\n          nativeButtonType=\"submit\"\n          onClick={handleSubmit}\n          type={ButtonType.Primary}\n          size=\"Large\"\n          disabled={disabled}\n          // There is a split second where state is both submitted and success state at the same time\n          loading={loading}\n          className={submitButtonCss}\n          buttonTextDataset={submitTextDataset}\n        >\n          {submitTextValue}\n        </Button>\n      </>\n    );\n  }\n\n  return (\n    <FormContext.Provider value={contextValue}>\n      <form className={cx(MotifComponent.FORM, formCss, placeholderCss, className)} noValidate>\n        {formChildren}\n        <FormErrorMessage\n          on400ResponseMessage={on400ResponseMessage}\n          on500ResponseMessage={on500ResponseMessage}\n          onInvalidClientSideSubmissionMessage={onInvalidClientSideSubmissionMessage}\n          renderErrorDetails={renderErrorDetails}\n        />\n      </form>\n    </FormContext.Provider>\n  );\n};\n", "import noop from 'lodash/noop.js';\nimport type React from 'react';\nimport { createContext } from 'react';\n\nimport type { FormAction, FormState } from './Form.types';\nimport { initialFormState } from './formReducer';\n\nexport interface FormContextProps {\n  state: FormState;\n  dispatch: React.Dispatch<FormAction>;\n}\n\nexport const FormContext = createContext<FormContextProps>({\n  state: initialFormState,\n  dispatch: noop,\n});\n", "import clone from 'lodash-es/clone';\nimport merge from 'lodash-es/merge';\n\nimport type { FieldMetadata, FieldValue, FormAction, FormState, Validation } from './Form.types';\nimport { FormEventType, FormStateType } from './Form.types';\n\nexport const validations: Validation = {\n  /** Standard pattern for Email validation (includes non-English characters) */\n  Email: new RegExp(\n    `^(([^<>()[\\\\]\\\\.,;:\\\\s@\"]+(\\\\.[^<>()[\\\\]\\\\.,;:\\\\s@\"]+)*)|(\".+\"))@` +\n      '((\\\\[[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}])|(([a-zA-Z\\\\-0-9]{1,24}\\\\.)+[a-zA-Z]{2,}))$'\n  ),\n  Name: /^(?!\\s*$).+/,\n  /**\n   * Pattern for English only Email Validation (needed for specific 3rd party integrations where the\n   * vendor doesn't support unicode characters e.g. Salesforce)\n   * https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/using_regular_expressions_to_validate_email_addresses.html#validate-email-addresses\n   *\n   * Applies case invariant flag instead of specifying upper case letters in pattern.\n   */\n  'Email (English only)':\n    // NOTE: eslint tries to remove escape characters that are necessary for the pattern to work in jest...\n    // eslint-disable-next-line no-useless-escape\n    /^[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\n};\n\n/** Returns if neither the form nor the any field has errors. */\nfunction checkNoError(state: FormState): boolean {\n  if (state.error) return false;\n\n  for (const name of Object.keys(state.fields)) {\n    if (!state.fields[name]) continue;\n    if (state.fields[name]!.hasError) return false;\n  }\n\n  return true;\n}\n\n/**\n * Checks if a field is invalid based on its value and validation rules.\n *\n * @param field - The field to check for validity.\n * @returns A boolean indicating whether the field is invalid.\n */\nexport const isInvalid = (field: FieldMetadata, value: FieldValue): boolean => {\n  // Invalid if required but empty.\n  if (field.required) {\n    if (Array.isArray(value) && value.length === 0) {\n      return true;\n    }\n\n    if (!Array.isArray(value) && (String(value).trim() === '' || Boolean(value) === false)) {\n      return true;\n    }\n  }\n\n  // Invalid if has validation and validation fails.\n  if (!field.validation || !validations[field.validation] || typeof value !== 'string') {\n    return false;\n  }\n\n  return !validations[field.validation].test(value);\n};\n\nexport const initialFormState: FormState = {\n  type: FormStateType.INITIAL,\n  fields: {},\n  formBody: {},\n};\n\n/** Reducer for the `Form` component. */\nexport function formReducer(state: FormState, action: FormAction): FormState {\n  // Force state re-render even if nothing changes.\n  // This is sadly a requirement for strict mode.\n  // See: https://react.dev/reference/react/useReducer#my-reducer-or-initializer-function-runs-twice\n  // Without this, some events do not work in dev mode.\n  // Note that we don't use `cloneDeep` here because we don't necessarily want to\n  // trigger all the `useEffects` that trigger on `formData`.\n  state = clone(state);\n\n  switch (action.type) {\n    case FormEventType.REGISTER_FIELD: {\n      // NOTE: Doing a mutation for fields that initialize over multiple calls.\n      const metadata = merge(state.fields[action.name] ?? {}, action.field);\n      state.fields[action.name] = metadata;\n      state.formBody[action.name] = action.field.initialValue;\n\n      // In case user already interacted with the form, validate it when registering.\n      if (state.type !== FormStateType.INITIAL) {\n        metadata.hasError = isInvalid(metadata, action.field.initialValue);\n      }\n      break;\n    }\n\n    case FormEventType.CHANGE_FIELD_VALUE: {\n      // Save last changed field name.\n      state.lastChangedFieldName = action.name;\n\n      // Set the new value\n      state.formBody = clone(state.formBody); // Trigger state change for useEffects\n      state.formBody[action.name] = action.value;\n\n      // Update error state.\n      if (!state.fields[action.name]) state.fields[action.name] = {};\n      const metadata = state.fields[action.name]!;\n      metadata.hasError = isInvalid(metadata, action.value);\n\n      // Update state type.\n      state.type = checkNoError(state) ? FormStateType.READY : FormStateType.INVALID;\n      state.error = undefined;\n      break;\n    }\n\n    case FormEventType.INVALIDATE_FIELD: {\n      state.fields[action.name]!.hasError = true;\n      state.type = FormStateType.INVALID;\n      break;\n    }\n\n    case FormEventType.SUBMIT_TRIGGER: {\n      // Validate all fields first.\n      for (const name of Object.keys(state.fields)) {\n        const metadata = state.fields[name];\n        if (!metadata) continue;\n        metadata.hasError = isInvalid(metadata, state.formBody[name]);\n      }\n      // Update state based on validation.\n      state.type = checkNoError(state) ? FormStateType.SUBMITTING : FormStateType.INVALID;\n      break;\n    }\n\n    case FormEventType.SUBMIT_FAILURE: {\n      state.type = FormStateType.SUBMIT_FAILURE;\n      state.errorStatusCode = action.errorStatusCode;\n      state.error = action.error;\n      // NOTE: `formBody` isn't affected.\n      break;\n    }\n\n    case FormEventType.SUBMIT_SUCCESS: {\n      state.type = FormStateType.SUBMIT_SUCCESS;\n\n      state.formBody = {}; // Explicit reset to trigger state changes.\n\n      for (const name of Object.keys(state.fields)) {\n        const meta = state.fields[name]!; // Safe\n        meta.hasError = false;\n        state.formBody[name] = meta.shouldResetToInitial ? meta.initialValue : undefined;\n      }\n      state.error = undefined;\n      break;\n    }\n\n    default: {\n      throw new Error(`Unhandled action type for ${JSON.stringify(action)}`);\n    }\n  }\n\n  return state;\n}\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport type { FormProps } from './Form';\nimport { FormStateType } from './Form.types';\nimport { FormContext } from './FormContext';\nimport { errorCodeCss, errorDebugSectionCss, errorMessageCss } from './styles';\n\ntype FormErrorMessageProps = Pick<\n  FormProps,\n  | 'on400ResponseMessage'\n  | 'on500ResponseMessage'\n  | 'onInvalidClientSideSubmissionMessage'\n  | 'renderErrorDetails'\n>;\n\nexport const FormErrorMessage: FC<FormErrorMessageProps> = ({\n  on400ResponseMessage,\n  on500ResponseMessage,\n  onInvalidClientSideSubmissionMessage,\n  renderErrorDetails,\n}) => {\n  const { state } = useContext(FormContext);\n  const { errorStatusCode, error, type } = state;\n\n  if (type === FormStateType.INVALID) {\n    return <div className={errorMessageCss}>{onInvalidClientSideSubmissionMessage}</div>;\n  }\n\n  if (!error) return null;\n\n  const errorDisplayText = errorStatusCode === 400 ? on400ResponseMessage : on500ResponseMessage;\n\n  const errorObject = JSON.stringify(\n    {\n      name: error.name,\n      message: error.message,\n      callStack: error.stack,\n    },\n    null,\n    2\n  );\n\n  return (\n    <>\n      <div className={errorMessageCss}>{errorDisplayText}</div>\n      {renderErrorDetails && (\n        <div className={errorDebugSectionCss}>\n          <h6>Error Object</h6>\n          <code className={errorCodeCss}>{errorObject}</code>\n        </div>\n      )}\n    </>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { Gray, mobileMediaQuery, nonMobileMediaQuery, Plain } from '../../constants';\nimport { p2Css } from '../../motif';\nimport { m } from '../../motif/m';\n\nexport const formCss: string = css`\n  display: flex;\n  align-items: center;\n  flex-direction: column;\n  width: 100% !important;\n  max-width: 650px;\n  margin: auto;\n  /* extra margin for button shadow */\n  margin-bottom: ${m('--spacing-m')};\n`;\n\nexport const formRowCss: string = css`\n  display: flex;\n  align-items: flex-start;\n  column-gap: ${m('--form-grid-gap')};\n  width: 100%;\n\n  /* Add extra top spacing if there is a label */\n  &:not(:first-child) label {\n    margin-top: ${m('--spacing-m')};\n  }\n\n  ${mobileMediaQuery} {\n    flex-direction: column;\n  }\n`;\n\nexport const inputLabelCss = css`\n  margin-bottom: ${m('--spacing-xs')};\n`;\n\nexport const inputHelpTextCss = css`\n  ${p2Css}\n  color: ${m('--form-input-placeholder-color')};\n  margin-top: ${m('--spacing-xs')};\n`;\n\nexport const errorMessageCss = css`\n  ${inputHelpTextCss}\n\n  color: ${m('--form-input-error-color')};\n`;\n\nexport const errorDebugSectionCss = css`\n  width: 100%;\n  text-align: center;\n  margin-top: ${m('--spacing-m')};\n`;\n\nexport const errorCodeCss = css`\n  display: block;\n  text-align: start;\n  border: ${m('--form-input-border-width')} solid ${m('--form-input-border-color')};\n  border-radius: ${m('--spacing-m')};\n  background-color: ${m('--form-input-bg-color')};\n  box-shadow: ${m('--form-input-box-shadow')};\n  color: ${m('--form-input-error-color')};\n  margin-top: ${m('--spacing-s')};\n  padding: ${m('--spacing-m')};\n  word-wrap: break-word;\n`;\n\nexport const submitButtonCss = css`\n  justify-content: center;\n\n  margin-top: ${m('--spacing-xl')};\n  margin-bottom: ${m('--spacing-xl')};\n\n  ${mobileMediaQuery} {\n    width: 100%;\n    max-width: 350px;\n    margin-top: ${m('--spacing-m')};\n    margin-bottom: ${m('--spacing-m')};\n  }\n`;\n\nexport const inputContainerCss = css`\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  margin-bottom: ${m('--spacing-m')};\n\n  *[dir='rtl'] & > select {\n    background-position: left ${m('--spacing-l')} top 50%;\n  }\n`;\n\nexport const inputErrorCss = css`\n  border: ${m('--form-input-border-width')} solid ${m('--form-input-error-color')};\n\n  &:hover {\n    border: ${m('--form-input-border-width')} solid ${m('--form-input-error-color')};\n  }\n`;\n\nconst readonlyCss = css`\n  cursor: not-allowed;\n  opacity: 0.8;\n`;\n\nexport const inputCss: string = css`\n  background-color: ${m('--form-input-bg-color')};\n  border: ${m('--form-input-border-width')} solid ${m('--form-input-border-color')};\n  border-radius: ${m('--form-input-border-radius')};\n  box-shadow: ${m('--form-input-box-shadow')};\n  box-sizing: border-box;\n  color: ${m('--form-input-fg-color')};\n  padding: ${m('--form-input-padding')};\n  height: 52px;\n  width: 100%;\n\n  &[readonly] {\n    ${readonlyCss}\n  }\n\n  &:active,\n  &:focus {\n    border-color: ${m('--form-input-active-border-color')};\n    box-shadow: ${m('--form-input-active-box-shadow')};\n  }\n\n  &:focus-visible {\n    outline: ${m('--form-input-border-width')} solid ${m('--form-input-active-border-color')};\n    outline-offset: -2px;\n  }\n\n  &:hover {\n    border-color: ${m('--form-input-hover-border-color')};\n    box-shadow: ${m('--form-input-hover-box-shadow')};\n  }\n\n  &[type='number']::-webkit-inner-spin-button {\n    opacity: 1;\n  }\n\n  &[type='date']::-webkit-calendar-picker-indicator {\n    filter: invert(50%);\n  }\n\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--form-input-desktop-font-size')};\n    line-height: ${m('--form-input-desktop-font-line-height')};\n    font-weight: ${m('--form-input-desktop-font-weight')};\n    font-stretch: ${m('--form-input-desktop-font-stretch')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--form-input-mobile-font-size')};\n    line-height: ${m('--form-input-mobile-font-line-height')};\n    font-weight: ${m('--form-input-mobile-font-weight')};\n    font-stretch: ${m('--form-input-mobile-font-stretch')};\n  }\n`;\n\nconst checkboxCheckPath =\n  // eslint-disable-next-line max-len\n  'M4.95801 10.8631C4.43001 10.8631 3.91701 10.6511 3.54301 10.2771L0.293006 7.02713C-0.0979941 6.63613 -0.0979941 6.00413 0.293006 5.61313C0.684006 5.22213 1.31601 5.22213 1.70701 5.61313L4.95701 8.86313L12.253 0.655126C12.619 0.242126 13.251 0.205126 13.664 0.572126C14.077 0.940126 14.114 1.57113 13.747 1.98513L6.45201 10.1921C6.08701 10.6021 5.56301 10.8461 5.01601 10.8621C4.99601 10.8631 4.97701 10.8631 4.95801 10.8631Z';\n\nexport const checkboxCss: string = css`\n  appearance: none;\n  background-color: ${m('--form-input-bg-color')};\n  border: ${m('--form-input-border-width')} solid ${m('--form-input-border-color')};\n  border-radius: ${m('--border-radius-s')};\n  display: grid;\n  font: inherit;\n  height: 20px;\n  margin: 0;\n  place-content: center;\n  width: 20px;\n\n  &::before {\n    box-shadow: inset 1em 1em ${Plain.WHITE};\n    clip-path: path('${checkboxCheckPath}');\n    content: '';\n    height: 20px;\n    margin: 8px 0px 0px 6px;\n    transform: scale(0);\n    width: 20px;\n  }\n\n  &:checked::before {\n    transform: scale(1);\n  }\n\n  &:checked {\n    background-color: ${m('--form-input-active-border-color')};\n    border-width: 0;\n    box-shadow: ${m('--form-input-active-box-shadow')};\n  }\n\n  &:focus-visible {\n    outline: ${m('--form-input-border-width')} solid ${m('--form-input-active-border-color')};\n    outline-offset: -2px;\n  }\n\n  &:not(:checked):hover {\n    border-color: ${m('--form-input-hover-border-color')};\n    box-shadow: ${m('--form-input-hover-box-shadow')};\n  }\n\n  &[required]:not(:checked)::before {\n    border-color: ${m('--form-input-error-color')};\n  }\n\n  &[readonly] {\n    ${readonlyCss}\n  }\n`;\n\nexport const checkboxWrapperCss: string = css`\n  && {\n    align-items: center;\n    display: flex;\n    gap: ${m('--spacing-s')};\n\n    label {\n      align-items: center;\n      display: flex;\n      justify-content: center;\n      margin-top: 0;\n\n      a {\n        &,\n        &:hover,\n        &:visited {\n          /* TODO: See if this should be hyperlink color or its own */\n          color: ${m('--foreground-color')};\n        }\n      }\n    }\n  }\n`;\n\nexport const textAreaCss = css`\n  appearance: none;\n  ${inputCss}\n  font-family: inherit;\n  height: 133px;\n  padding: ${m('--form-input-padding')};\n  resize: vertical;\n  /* Add custom resizer icon as background */\n  background-image: url(\"data:image/svg+xml,%3Csvg height='9' viewBox='0 0 9 9' width='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L8 5M1 8L8 1' stroke='rgba(133, 141, 148, 1)'/%3E%3C/svg%3E\");\n  background-repeat: no-repeat;\n  background-position: bottom 4px right 4px;\n\n  &::-webkit-resizer {\n    display: none;\n  }\n\n  &[readonly] {\n    ${readonlyCss}\n  }\n\n  /* Change custom resizer icon position according to RTL */\n  *[dir='rtl'] & {\n    background-image: url(\"data:image/svg+xml,%3Csvg height='9' viewBox='0 0 9 9' transform='scale(-1 1)' width='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L8 5M1 8L8 1' stroke='rgba(133, 141, 148, 1)'/%3E%3C/svg%3E\");\n    background-position: bottom 4px left 4px;\n  }\n`;\n\nexport const selectCss: string = css`\n  ${inputCss}\n  appearance: none;\n  height: auto;\n\n  &:-ms-expand {\n    display: none;\n  }\n`;\n\nexport const selectWrapperCss = css`\n  position: relative;\n\n  i {\n    margin-left: 10px;\n    width: 10px;\n    cursor: pointer;\n\n    svg {\n      fill: ${Gray.V300};\n    }\n  }\n`;\n\n// needed to enforce same placeholder color for dropdown input\nexport const placeholderCss = css`\n  input::-webkit-input-placeholder,\n  textarea::-webkit-input-placeholder,\n  input:-moz-placeholder,\n  textarea:-moz-placeholder,\n  input::-moz-placeholder,\n  textarea::-moz-placeholder,\n  input:-ms-input-placeholder,\n  textarea:-ms-input-placeholder,\n  input::-ms-input-placeholder,\n  textarea::-ms-input-placeholder,\n  input::placeholder,\n  textarea::placeholder,\n  ::placeholder {\n    color: ${m('--form-input-placeholder-color')};\n  }\n\n  /* TODO: find a way that doesnt need it to be required on the field */\n  select:invalid,\n  select option[value=''] {\n    color: ${m('--form-input-placeholder-color')};\n  }\n`;\n\nexport const arrowCss = css`\n  pointer-events: none;\n  position: absolute;\n  right: ${m('--spacing-l')};\n  top: calc(50% - 5px);\n  width: 20px;\n  height: 20px;\n  margin: -4px;\n  fill: ${m('--form-input-fg-color')};\n\n  html[dir='rtl'] & {\n    right: unset;\n    left: ${m('--spacing-l')};\n  }\n`;\n\nexport const multiSelectDropdownCss = css`\n  ${inputCss}\n  height: auto;\n  padding: 0;\n\n  /** prevents issue with SSR rendering without this style */\n  .displayNone {\n    display: none;\n  }\n\n  /** applies styles to multi select wrapper when displaying options */\n  &:has(.displayBlock) {\n    border-color: ${m('--form-input-active-border-color')};\n    box-shadow: ${m('--form-input-active-box-shadow')};\n  }\n\n  .searchWrapper {\n    padding: 0 ${m('--spacing-xxl')} 0 ${m('--spacing-xs')};\n    border: 0;\n    min-height: 50px;\n    align-items: center;\n    display: flex;\n    flex-wrap: wrap;\n\n    input {\n      color: inherit;\n      font-size: inherit;\n      /* input is disabled */\n      cursor: default;\n      min-width: 0px;\n      padding-left: ${m('--spacing-xs')};\n      flex: 1 1 0%;\n    }\n\n    .chip {\n      background: ${m('--form-input-border-color')};\n      color: ${m('--form-input-fg-color')};\n      font-size: inherit;\n      padding: ${m('--spacing-xs')};\n      margin: 5px;\n      cursor: default;\n\n      svg {\n        fill: ${m('--form-input-fg-color')};\n      }\n    }\n\n    .icon_down_dir {\n      right: -60px;\n    }\n  }\n\n  .optionListContainer {\n    background: ${m('--form-input-bg-color')};\n    list-style-type: none;\n    padding-left: ${m('--spacing-xs')};\n    padding-right: ${m('--spacing-xs')};\n    z-index: 51;\n\n    .optionContainer {\n      border: none;\n\n      &::-webkit-scrollbar {\n        /* stylelint-disable-next-line property-no-vendor-prefix */\n        -webkit-appearance: none;\n        width: 7px;\n      }\n\n      &::-webkit-scrollbar-thumb {\n        border-radius: 4px;\n        background-color: rgba(0, 0, 0, 0.5);\n        box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n      }\n    }\n\n    .option {\n      display: flex;\n      align-items: center;\n      margin-top: ${m('--spacing-xs')};\n      margin-bottom: ${m('--spacing-xs')};\n      padding-left: ${m('--spacing-m')};\n      padding-right: ${m('--spacing-m')};\n      border-radius: 5px;\n      color: ${m('--form-input-fg-color')};\n\n      &.selected,\n      &.highlight,\n      &:hover {\n        background: ${m('--form-input-border-color')};\n        color: ${m('--form-input-fg-color')};\n      }\n\n      input[type='checkbox'] {\n        height: 17px;\n        width: 17px;\n\n        &:checked {\n          accent-color: ${m('--form-input-fg-color')};\n        }\n      }\n    }\n  }\n`;\n\nexport const multiSelectIconCss = css`\n  margin: -7px;\n`;\n", "import type { FC, PropsWithChildren } from 'react';\n\nimport type { BaseComponentProps } from '../../types';\nimport { formRowCss } from './styles';\n\nexport const FormRow: FC<BaseComponentProps & PropsWithChildren> = ({ children, ...props }) => (\n  <div data-testid=\"sdsm-form-row\" className={formRowCss} {...props}>\n    {children}\n  </div>\n);\n", "import { cx } from '@emotion/css';\nimport omit from 'lodash/omit.js';\nimport type { ChangeEvent, FC } from 'react';\nimport { memo, useCallback, useContext, useEffect } from 'react';\n\nimport { dataSetToAttributes } from '../../utils';\nimport { Field } from './Field';\nimport type { FormFieldComponentProps, ValidationKey } from './Form.types';\nimport { FormEventType } from './Form.types';\nimport { FormContext } from './FormContext';\nimport { getBooleanValue, getStringValue } from './formUtils';\nimport {\n  checkboxCss,\n  checkboxWrapperCss,\n  inputCss,\n  inputErrorCss,\n  placeholderCss,\n  textAreaCss,\n} from './styles';\n\nexport type InputType = 'Text' | 'Number' | 'Date' | 'Textarea' | 'Checkbox' | 'Hidden';\n\nexport interface InputProps extends FormFieldComponentProps {\n  type?: InputType;\n  validation?: ValidationKey;\n  maxLength?: number;\n  /**\n   * Only used for Input types `Number` and `Date`. If specified, the input value must be greater\n   * than or equal to the Min Value.\n   */\n  minValue?: string;\n  /**\n   * Only used for Input types `Number` and `Date`. If specified, the input value must be less than\n   * or equal to the Max Value.\n   */\n  maxValue?: string;\n}\n\nexport const Input: FC<InputProps> = memo(props => {\n  const {\n    name,\n    validation,\n    required = false,\n    placeholder = '',\n    initialValue,\n    type = 'Text',\n    label,\n    richLabel,\n    labelDataset,\n    richLabelDataset,\n    readOnly,\n    shouldResetToInitial,\n    maxLength,\n    minValue,\n    maxValue,\n    ...restProps\n  } = props;\n  const { state, dispatch } = useContext(FormContext);\n\n  const fieldMeta = state.fields[name];\n  const value = state.formBody[name];\n\n  const inputProps = omit(\n    restProps,\n    'dataset',\n    'helpText',\n    'helpTextDataset',\n    'errorDataset',\n    'contentfulDescriptionDataset'\n  );\n\n  useEffect(() => {\n    dispatch({\n      type: FormEventType.REGISTER_FIELD,\n      name,\n      field: {\n        initialValue,\n        validation,\n        required,\n        shouldResetToInitial: type === 'Hidden' || shouldResetToInitial,\n      },\n    });\n  }, [dispatch, initialValue, name, required, validation, type, shouldResetToInitial]);\n\n  const handleChange = useCallback(\n    (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n      const target = e.target as HTMLInputElement;\n      const isCheckbox = target.type === 'checkbox';\n      const value = isCheckbox ? target.checked : target.value;\n\n      dispatch({\n        type: FormEventType.CHANGE_FIELD_VALUE,\n        name,\n        value,\n      });\n    },\n    [dispatch, name]\n  );\n\n  const handleInvalid = useCallback(() => {\n    dispatch({ type: FormEventType.INVALIDATE_FIELD, name });\n  }, [dispatch, name]);\n\n  const getInputElement = () => {\n    if (type === 'Textarea') {\n      return (\n        <textarea\n          name={name}\n          placeholder={placeholder}\n          value={getStringValue(value)}\n          className={cx(textAreaCss, placeholderCss, { [inputErrorCss]: fieldMeta?.hasError })}\n          required={required}\n          onInvalid={handleInvalid}\n          readOnly={readOnly}\n          onChange={handleChange}\n          onBlur={handleChange}\n          maxLength={maxLength ?? 600}\n          {...inputProps}\n        />\n      );\n    }\n\n    if (type === 'Checkbox') {\n      return (\n        <div className={checkboxWrapperCss}>\n          <input\n            type=\"checkbox\"\n            name={name}\n            id={name}\n            onInvalid={handleInvalid}\n            placeholder={placeholder}\n            checked={getBooleanValue(value)}\n            className={cx(checkboxCss, placeholderCss, { [inputErrorCss]: fieldMeta?.hasError })}\n            required={required}\n            onChange={handleChange}\n            onBlur={handleChange}\n            readOnly={readOnly}\n            {...inputProps}\n          />\n          <label\n            htmlFor={name}\n            {...dataSetToAttributes(richLabel ? richLabelDataset : labelDataset)}\n          >\n            {richLabel ?? label}\n          </label>\n        </div>\n      );\n    }\n\n    if (type === 'Number' || type === 'Date') {\n      return (\n        <input\n          type={type}\n          name={name}\n          placeholder={placeholder}\n          value={getStringValue(value)}\n          className={cx(inputCss, placeholderCss, { [inputErrorCss]: fieldMeta?.hasError })}\n          required={required}\n          readOnly={readOnly}\n          onChange={handleChange}\n          onInvalid={handleInvalid}\n          onBlur={handleChange}\n          min={minValue}\n          max={maxValue}\n          {...inputProps}\n        />\n      );\n    }\n\n    return (\n      <input\n        type={type === 'Hidden' ? 'hidden' : 'text'}\n        name={name}\n        placeholder={placeholder}\n        value={getStringValue(value)}\n        className={cx(inputCss, placeholderCss, { [inputErrorCss]: fieldMeta?.hasError })}\n        required={required}\n        readOnly={readOnly}\n        onChange={handleChange}\n        onInvalid={handleInvalid}\n        onBlur={handleChange}\n        maxLength={maxLength}\n        {...inputProps}\n      />\n    );\n  };\n\n  return (\n    <Field\n      {...props}\n      label={richLabel ?? label}\n      hasError={fieldMeta?.hasError ?? false}\n      type={type ?? 'Hidden'}\n    >\n      {getInputElement()}\n    </Field>\n  );\n});\n\nInput.displayName = 'Input';\n", "import { cx } from '@emotion/css';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport { h6Css } from '../../motif';\nimport { dataSetToAttributes } from '../../utils';\nimport type { FormFieldComponentProps } from './Form.types';\nimport { errorMessageCss, inputContainerCss, inputHelpTextCss, inputLabelCss } from './styles';\n\nexport type FieldProps = Pick<\n  FormFieldComponentProps,\n  | 'dir' // Unused.\n  | 'error'\n  | 'helpText'\n  | 'label'\n  | 'name'\n  | 'dataset'\n  | 'helpTextDataset'\n  | 'errorDataset'\n  | 'labelDataset'\n> & {\n  type: 'Text' | 'Number' | 'Date' | 'Textarea' | 'Checkbox' | 'Hidden' | 'Select' | 'MultiSelect';\n  hasError?: boolean;\n};\n\nexport const Field: FC<PropsWithChildren<FieldProps>> = ({\n  type,\n  name,\n  label,\n  helpText,\n  error,\n  hasError,\n  children,\n  dataset,\n  labelDataset,\n  helpTextDataset,\n  errorDataset,\n}) => {\n  if (type === 'Hidden') {\n    return <>{children}</>;\n  }\n\n  return (\n    <div className={cx('sdsm-form-field', cx(inputContainerCss))} {...dataSetToAttributes(dataset)}>\n      {label && type !== 'Checkbox' && (\n        <label\n          htmlFor={name}\n          className={cx(h6Css, inputLabelCss)}\n          {...dataSetToAttributes(labelDataset)}\n        >\n          {label}\n        </label>\n      )}\n      {children}\n      {((helpText && !hasError) || (helpText && hasError && !error)) && (\n        <p className={inputHelpTextCss} {...dataSetToAttributes(helpTextDataset)}>\n          {helpText}\n        </p>\n      )}\n      {hasError && error && (\n        <div className={errorMessageCss} {...dataSetToAttributes(errorDataset)}>\n          {error}\n        </div>\n      )}\n    </div>\n  );\n};\n", "import type { FieldValue } from './Form.types';\n\nexport function getStringValue(value: FieldValue): string {\n  if (!value) {\n    return ''; // Undefined values make React thing the form isn't controlled.\n  }\n  if (Array.isArray(value)) return value.join(',');\n  return String(value);\n}\n\nexport function getBooleanValue(value: FieldValue): boolean {\n  if (typeof value === 'boolean') return value;\n  if (typeof value === 'string') return value === 'true';\n  if (Array.isArray(value)) return value.length > 0;\n  return false;\n}\n", "import { cx } from '@emotion/css';\nimport Multiselect from 'multiselect-react-dropdown';\nimport type { FC, KeyboardEvent } from 'react';\nimport { memo, useContext, useEffect } from 'react';\n\nimport { Black } from '../../constants/colors';\nimport { Icon } from '../Icon';\nimport { Field } from './Field';\nimport type { FormFieldComponentProps, MultiSelectOption } from './Form.types';\nimport { FormEventType } from './Form.types';\nimport { FormContext } from './FormContext';\nimport {\n  arrowCss,\n  inputErrorCss,\n  multiSelectDropdownCss,\n  multiSelectIconCss,\n  placeholderCss,\n  selectWrapperCss,\n} from './styles';\n\ntype FormFieldWithOptions<T> = Partial<T> & {\n  options: MultiSelectOption[];\n  initialValues?: MultiSelectOption[];\n  showCheckbox: boolean;\n  name: string;\n};\ntype MultiSelectDropdownField = Omit<FormFieldWithOptions<FormFieldComponentProps>, 'initialValue'>;\n\n/** Singleton array for change detection. */\nconst initialFieldState: MultiSelectOption[] = [];\n\n/**\n * Select form field that allows for multiple selections.\n *\n * NOTE: we use multiselect-react-dropdown for the dropdown component. Source code:\n * https://github.com/srigar/multiselect-react-dropdown/blob/master/src/multiselect/multiselect.component.tsx\n */\nexport const MultiSelectDropdown: FC<MultiSelectDropdownField> = memo(props => {\n  const {\n    name,\n    placeholder,\n    showCheckbox,\n    options,\n    required = false,\n    initialValues = initialFieldState,\n  } = props;\n  const { state, dispatch } = useContext(FormContext);\n  const value = state.formBody[name];\n  const formField = state.fields[name];\n\n  useEffect(() => {\n    dispatch({\n      type: FormEventType.REGISTER_FIELD,\n      name,\n      field: {\n        initialValue: initialValues,\n        required,\n      },\n    });\n  }, [initialValues, dispatch, name, required]);\n\n  const handleSelect = (selectedList: MultiSelectOption[]) => {\n    dispatch({\n      type: FormEventType.CHANGE_FIELD_VALUE,\n      name,\n      value: selectedList,\n    });\n  };\n\n  const onKeyPress = (event: KeyboardEvent) => {\n    event.preventDefault();\n    event.stopPropagation();\n  };\n\n  const handleRemove = (selectedList: MultiSelectOption[]) => {\n    dispatch({\n      type: FormEventType.CHANGE_FIELD_VALUE,\n      name,\n      value: selectedList,\n    });\n  };\n\n  return (\n    <Field {...props} hasError={formField?.hasError} type=\"MultiSelect\">\n      <div className={selectWrapperCss}>\n        <Multiselect\n          options={options}\n          selectedValues={value}\n          showCheckbox={showCheckbox}\n          onSelect={handleSelect}\n          onRemove={handleRemove}\n          hidePlaceholder={true}\n          avoidHighlightFirstOption={true}\n          placeholder={placeholder}\n          displayValue=\"name\"\n          customCloseIcon={<Icon name=\"cross\" fill={Black.V200} className={multiSelectIconCss} />}\n          className={cx(multiSelectDropdownCss, placeholderCss, {\n            [inputErrorCss]: formField?.hasError,\n          })}\n          onKeyPressFn={onKeyPress}\n        />\n        <Icon name=\"chevron-down\" className={arrowCss} />\n      </div>\n    </Field>\n  );\n});\n\nMultiSelectDropdown.displayName = 'MultiSelectDropdown';\n", "import { cx } from '@emotion/css';\nimport omit from 'lodash/omit.js';\nimport type { ChangeEvent, FC, ReactNode } from 'react';\nimport { memo, useCallback, useContext, useEffect } from 'react';\n\nimport { Icon } from '../Icon';\nimport { Field } from './Field';\nimport type { FormFieldComponentProps } from './Form.types';\nimport { FormEventType } from './Form.types';\nimport { FormContext } from './FormContext';\nimport { getStringValue } from './formUtils';\nimport { arrowCss, inputErrorCss, placeholderCss, selectCss, selectWrapperCss } from './styles';\n\ntype SelectField = FormFieldComponentProps & {\n  allValues?: string[];\n  children?: ReactNode;\n  // This applies to the whole field, including label, help text, etc.\n  // Compare to `dataset` which would be passed to the <select> element\n  fieldDataset?: DOMStringMap;\n};\n\nexport const Select: FC<SelectField> = memo(props => {\n  const {\n    name,\n    placeholder,\n    children,\n    required = false,\n    initialValue = '',\n    allValues = [],\n    shouldResetToInitial,\n    fieldDataset,\n    ...restProps\n  } = props;\n  const selectProps = {\n    required,\n    ...omit(\n      restProps,\n      'helpText',\n      'helpTextDataset',\n      'errorDataset',\n      'labelDataset',\n      'fieldDataset'\n    ),\n  };\n\n  const { state, dispatch } = useContext(FormContext);\n  const validInitialValue = allValues.includes(getStringValue(initialValue)) ? initialValue : '';\n  const formField = state.fields[name];\n  const value = state.formBody[name];\n\n  useEffect(() => {\n    dispatch({\n      type: FormEventType.REGISTER_FIELD,\n      name,\n      field: {\n        required,\n        initialValue: validInitialValue,\n        shouldResetToInitial,\n      },\n    });\n  }, [dispatch, name, required, validInitialValue, shouldResetToInitial]);\n\n  const handleChange = (e: ChangeEvent<HTMLSelectElement>) => {\n    dispatch({\n      type: FormEventType.CHANGE_FIELD_VALUE,\n      name,\n      value: e.target.value,\n    });\n  };\n\n  const handleInvalid = useCallback(() => {\n    dispatch({ type: FormEventType.INVALIDATE_FIELD, name });\n  }, [dispatch, name]);\n\n  return (\n    <Field\n      hasError={formField?.hasError}\n      {...omit(props, 'dataset')}\n      dataset={fieldDataset}\n      type=\"Select\"\n    >\n      <div className={cx(selectWrapperCss, placeholderCss)}>\n        <select\n          value={getStringValue(value)}\n          name={name}\n          className={cx(selectCss, { [inputErrorCss]: formField?.hasError })}\n          onChange={handleChange}\n          onBlur={handleChange}\n          onInvalid={handleInvalid}\n          {...selectProps}\n        >\n          {placeholder && (\n            <option value=\"\" disabled>\n              {placeholder}\n            </option>\n          )}\n          {children}\n        </select>\n        <Icon name=\"chevron-down\" className={arrowCss} />\n      </div>\n    </Field>\n  );\n});\n\nSelect.displayName = 'Select';\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useMemo, useState } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { dataSetToAttributes } from '../../utils';\nimport type { FilterDropdownMenuProps } from '../FilterDropdown/FilterDropdownMenu';\nimport { allValue, FilterDropdownMenu } from '../FilterDropdown/FilterDropdownMenu';\nimport { Icon } from '../Icon';\nimport {\n  buttonDefaultStylesResetCss,\n  clearFiltersButtonCss,\n  clearFiltersWrapperCss,\n  desktopWrapperCss,\n  filterBarCss,\n  filtersIconActiveCss,\n  filtersIconButtonCss,\n  filtersIconCss,\n  mobileWrapperCss,\n  searchWrapperCss,\n  toggleDropdownsBaseTextCss,\n  toggleDropdownsMainTextCss,\n  toggleDropdownsSecondaryTextCss,\n} from './galleryFiltersV2Styles';\n\ntype AbridgedGalleryDropdownMenuProps = Omit<FilterDropdownMenuProps, 'value' | 'onChange'>;\n\nexport interface GalleryFiltersV2Props {\n  searchMenus: AbridgedGalleryDropdownMenuProps[];\n  selectedFilters: {\n    [key: string]: string;\n  };\n  onChangeFilter: (filterKey: string, filterValue?: string) => void;\n  onClearFilters: () => void;\n  clearButtonLabel?: string;\n  mobileFiltersToggleLabel?: string;\n  mobileFiltersWrapperTextDataset?: DOMStringMap;\n  clearFiltersCtaCopyDataset?: DOMStringMap;\n}\n\nexport const GalleryFiltersV2: FC<GalleryFiltersV2Props> = ({\n  searchMenus = [],\n  selectedFilters,\n  onChangeFilter,\n  mobileFiltersToggleLabel,\n  onClearFilters,\n  clearButtonLabel,\n  mobileFiltersWrapperTextDataset,\n  clearFiltersCtaCopyDataset,\n}) => {\n  useMotifStyles(MotifComponent.GALLERY);\n\n  const [isMobileOpen, setIsMobileOpen] = useState(false);\n  const toggleIsMobileOpen = () => setIsMobileOpen(!isMobileOpen);\n\n  const selectedFiltersCount = useMemo(\n    () => Object.keys(selectedFilters).length,\n    [selectedFilters]\n  );\n\n  if (searchMenus.length === 0) {\n    return null;\n  }\n\n  const searchMenusWithState: FilterDropdownMenuProps[] = searchMenus.map(\n    ({ title, id, allItemTitle, items, dataset }) => ({\n      title,\n      id,\n      allItemTitle,\n      items,\n      dataset,\n      value: selectedFilters[id] ? selectedFilters[id] : allValue,\n      onChange: (setValue?: string) => onChangeFilter(id, setValue),\n    })\n  );\n\n  const children = searchMenusWithState.map(props => (\n    <FilterDropdownMenu key={props.id} {...props} isStandalone={searchMenus.length === 1} />\n  ));\n\n  const filterText = mobileFiltersToggleLabel ?? (searchMenus.length > 1 ? 'Filters' : 'Filter');\n\n  return (\n    <section className={MotifComponent.GALLERY}>\n      <aside className={desktopWrapperCss}>\n        <div className={searchWrapperCss}>\n          {children}\n          {!!selectedFiltersCount && (\n            <button\n              data-testid=\"clear-btn-desktop\"\n              type=\"button\"\n              className={cx(buttonDefaultStylesResetCss, clearFiltersButtonCss)}\n              onClick={onClearFilters}\n              {...dataSetToAttributes(clearFiltersCtaCopyDataset)}\n            >\n              {clearButtonLabel ?? 'Clear'}\n            </button>\n          )}\n        </div>\n      </aside>\n      <aside className={mobileWrapperCss}>\n        {searchMenus.length > 1 && (\n          <div className={filterBarCss} data-testid=\"dropdowns-mobile-wrapper\">\n            <div>\n              <button\n                type=\"button\"\n                className={cx(\n                  buttonDefaultStylesResetCss,\n                  toggleDropdownsBaseTextCss,\n                  toggleDropdownsMainTextCss\n                )}\n                onClick={toggleIsMobileOpen}\n                {...dataSetToAttributes(mobileFiltersWrapperTextDataset)}\n              >\n                {filterText}\n              </button>\n              {!!selectedFiltersCount && (\n                <span\n                  data-testid=\"selected-filters-counter-mobile\"\n                  className={cx(toggleDropdownsBaseTextCss, toggleDropdownsSecondaryTextCss)}\n                >{` (${selectedFiltersCount})`}</span>\n              )}\n            </div>\n            <div className={clearFiltersWrapperCss}>\n              {!!selectedFiltersCount && (\n                <button\n                  data-testid=\"clear-btn-mobile\"\n                  type=\"button\"\n                  className={cx(buttonDefaultStylesResetCss, clearFiltersButtonCss)}\n                  onClick={onClearFilters}\n                  {...dataSetToAttributes(clearFiltersCtaCopyDataset)}\n                >\n                  {clearButtonLabel ?? 'Clear'}\n                </button>\n              )}\n              <button\n                type=\"button\"\n                className={cx(buttonDefaultStylesResetCss, filtersIconButtonCss)}\n                onClick={toggleIsMobileOpen}\n              >\n                <Icon\n                  name=\"bars-triangle\"\n                  className={cx(filtersIconCss, { [filtersIconActiveCss]: isMobileOpen })}\n                />\n              </button>\n            </div>\n          </div>\n        )}\n        {(isMobileOpen || searchMenus.length === 1) && (\n          <div className={searchWrapperCss}>{children}</div>\n        )}\n      </aside>\n    </section>\n  );\n};\n\nGalleryFiltersV2.displayName = 'GalleryFiltersV2';\n", "import mapValues from 'lodash/mapValues.js';\n\nimport { Spacing } from '../../constants';\nimport { TileImageSize } from './types';\n\nexport const labelLineHeight = 29;\nexport const labelHeight = labelLineHeight + Spacing.SM;\n// This Heading.H500.lineHeight, can't reference it directly because it can be\n// a string, a number, or a string[] (wtf???)\nexport const textLineHeight = 28;\n\nexport const imgWidth = 284;\nexport const imgWidthWithIcon = 260;\nexport const imgHeight = 461;\nexport const imgHeightWithIcon = 419;\nexport const tileWidth = imgWidth;\nexport const tileHeight = Spacing.SM + imgHeight + labelHeight + 4 * textLineHeight;\n\nexport const imageHeightForImageSize = {\n  [TileImageSize.Small]: Math.floor(tileWidth / 2),\n  [TileImageSize.Medium]: tileWidth,\n  [TileImageSize.Large]: imgHeight,\n};\n\nexport const titleHeightForImageSize = mapValues(imageHeightForImageSize, (height: number) => {\n  const preresult = tileHeight - height;\n  return preresult - labelHeight;\n});\n\nexport const titleLinesForImageSize = mapValues(titleHeightForImageSize, (height: number) => {\n  return Math.floor(height / textLineHeight);\n});\n\n// This is the left/right margin of a tile whenever it is inside a Carousel.\nexport const tileCarouselMargin = Spacing.MD * 2;\n", "import type { ValueOf } from '../../types';\n\nexport const TileImageSize = {\n  Small: 'Small',\n  Medium: 'Medium',\n  Large: 'Large',\n} as const;\n\nexport type TileImageSize = ValueOf<typeof TileImageSize>;\n\nexport const TileImageFit = {\n  Contain: 'Contain',\n  Cover: 'Cover',\n} as const;\n\nexport type TileImageFit = ValueOf<typeof TileImageFit>;\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery } from '../../constants';\nimport { m } from '../../motif/m';\nimport { blockPadding } from '../Block/Block.styled';\nimport { imgWidth } from '../Tile';\n\nexport const gutterWidth = 52;\n\nexport const galleryWidths = [\n  (imgWidth + gutterWidth) * 4,\n  (imgWidth + gutterWidth) * 3,\n  (imgWidth + gutterWidth) * 2,\n  imgWidth + gutterWidth,\n];\n\nconst screenWidths = galleryWidths.map(w => w + blockPadding * 2);\n\nexport const mediaQueries = screenWidths.map((width, idx) => {\n  if (idx === 0) {\n    return `@media screen and (min-width: ${width + 1}px)`;\n  }\n  const prevWidth = screenWidths[idx - 1];\n  return `@media screen and (min-width: ${width + 1}px) and (max-width: ${prevWidth}px)`;\n});\n\nexport const desktopWrapperCss = css`\n  ${mobileMediaQuery} {\n    display: none;\n  }\n\n  ${nonMobileMediaQuery} {\n    display: block;\n  }\n`;\n\nexport const mobileWrapperCss = css`\n  ${mobileMediaQuery} {\n    display: block;\n  }\n\n  ${nonMobileMediaQuery} {\n    display: none;\n  }\n`;\n\nexport const buttonDefaultStylesResetCss = css`\n  background: none;\n  border: none;\n  color: ${m('--foreground-color')};\n  cursor: pointer;\n  padding: 0;\n  /* stylelint-disable-next-line property-no-vendor-prefix */\n  -webkit-appearance: none;\n  appearance: none;\n`;\n\nexport const searchWrapperCss = css`\n  display: flex;\n\n  ${mediaQueries[0]} {\n    width: ${galleryWidths[0]}px;\n  }\n\n  ${mediaQueries[1]} {\n    width: ${galleryWidths[1]}px;\n  }\n\n  ${mediaQueries[2]} {\n    width: ${galleryWidths[2]}px;\n  }\n\n  ${nonMobileMediaQuery} {\n    align-items: center;\n    flex-wrap: wrap;\n    padding-bottom: 50px;\n  }\n\n  ${mobileMediaQuery} {\n    flex-direction: column;\n    justify-content: flex-end;\n    margin-block: ${m('--spacing-m')};\n  }\n`;\n\nexport const filterBarCss = css`\n  align-items: center;\n  display: flex;\n  justify-content: space-between;\n  padding-block: ${m('--spacing-m')};\n`;\n\nexport const toggleDropdownsBaseTextCss = css`\n  font-size: ${m('--action-desktop-font-size')};\n  line-height: ${m('--action-desktop-font-line-height')};\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--action-mobile-font-size')};\n    line-height: ${m('--action-mobile-font-line-height')};\n  }\n`;\n\nexport const toggleDropdownsMainTextCss = css`\n  font-family: inherit;\n  font-weight: ${m('--action-desktop-font-weight')};\n\n  ${mobileMediaQuery} {\n    font-weight: ${m('--action-mobile-font-weight')};\n  }\n`;\n\nexport const toggleDropdownsSecondaryTextCss = css`\n  font-weight: ${m('--p1-desktop-font-weight')};\n\n  ${mobileMediaQuery} {\n    font-weight: ${m('--p1-mobile-font-weight')};\n  }\n`;\n\nexport const clearFiltersWrapperCss = css`\n  align-items: center;\n  display: flex;\n`;\n\nexport const clearFiltersButtonCss = css`\n  font-family: inherit;\n  font-size: ${m('--action-mobile-font-size')};\n  font-weight: ${m('--action-mobile-font-weight')};\n  line-height: ${m('--action-mobile-font-line-height')};\n  margin-inline-end: ${m('--spacing-m')};\n\n  ${nonMobileMediaQuery} {\n    padding-block: ${m('--spacing-m')};\n    font-size: ${m('--action-desktop-font-size')};\n    font-weight: ${m('--action-desktop-font-weight')};\n    line-height: ${m('--action-desktop-font-line-height')};\n  }\n`;\n\nexport const filtersIconButtonCss = css`\n  align-items: center;\n  display: flex;\n  width: ${m('--spacing-l')};\n`;\n\nexport const filtersIconCss = css`\n  fill: ${m('--foreground-color')};\n  height: auto;\n  transform: rotate(0deg);\n  transform-origin: center;\n  transition: transform 100ms cubic-bezier(0.4, 0, 0.2, 1);\n  width: 100%;\n`;\n\nexport const filtersIconActiveCss = css`\n  transform: rotate(-180deg);\n`;\n", "import { css } from '@emotion/css';\n\nimport { largeDesktopMediaQuery, nonMobileMediaQuery } from '../../constants';\nimport { m } from '../../motif';\n\nexport const galleryV2Css = css`\n  display: flex;\n  justify-content: flex-start;\n  flex-wrap: wrap;\n  gap: ${m('--spacing-m')};\n  margin-bottom: ${m('--spacing-m')};\n  margin-inline: auto;\n\n  ${largeDesktopMediaQuery} {\n    gap: ${m('--spacing-l')};\n    margin-bottom: ${m('--spacing-l')};\n  }\n\n  > * {\n    width: 100%;\n\n    ${nonMobileMediaQuery} {\n      width: calc(50% - ${m('--spacing-xs')});\n    }\n\n    ${largeDesktopMediaQuery} {\n      width: calc(50% - ${m('--spacing-m')});\n    }\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC, ReactElement } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { TileProps } from '../Tile';\nimport { galleryV2Css } from './styles';\n\nexport interface GalleryGridV2Props {\n  children?: ReactElement<TileProps> | Array<ReactElement<TileProps>>;\n}\n\nexport const GalleryGridV2: FC<GalleryGridV2Props> = ({ children }) => {\n  useMotifStyles(MotifComponent.GALLERY);\n\n  return (\n    <div data-test-id=\"sdsm-gallery-grid\" className={cx(MotifComponent.GALLERY, galleryV2Css)}>\n      {children}\n    </div>\n  );\n};\n\nGalleryGridV2.displayName = 'GalleryGridV2';\n", "/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n *  else `false`.\n */\nfunction arraySome(array, predicate) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  while (++index < length) {\n    if (predicate(array[index], index, array)) {\n      return true;\n    }\n  }\n  return false;\n}\n\nexport default arraySome;\n", "import SetCache from './_SetCache.js';\nimport arraySome from './_arraySome.js';\nimport cacheHas from './_cacheHas.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n      arrLength = array.length,\n      othLength = other.length;\n\n  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n    return false;\n  }\n  // Check that cyclic values are equal.\n  var arrStacked = stack.get(array);\n  var othStacked = stack.get(other);\n  if (arrStacked && othStacked) {\n    return arrStacked == other && othStacked == array;\n  }\n  var index = -1,\n      result = true,\n      seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n  stack.set(array, other);\n  stack.set(other, array);\n\n  // Ignore non-index properties.\n  while (++index < arrLength) {\n    var arrValue = array[index],\n        othValue = other[index];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, arrValue, index, other, array, stack)\n        : customizer(arrValue, othValue, index, array, other, stack);\n    }\n    if (compared !== undefined) {\n      if (compared) {\n        continue;\n      }\n      result = false;\n      break;\n    }\n    // Recursively compare arrays (susceptible to call stack limits).\n    if (seen) {\n      if (!arraySome(other, function(othValue, othIndex) {\n            if (!cacheHas(seen, othIndex) &&\n                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n              return seen.push(othIndex);\n            }\n          })) {\n        result = false;\n        break;\n      }\n    } else if (!(\n          arrValue === othValue ||\n            equalFunc(arrValue, othValue, bitmask, customizer, stack)\n        )) {\n      result = false;\n      break;\n    }\n  }\n  stack['delete'](array);\n  stack['delete'](other);\n  return result;\n}\n\nexport default equalArrays;\n", "import Symbol from './_Symbol.js';\nimport Uint8Array from './_Uint8Array.js';\nimport eq from './eq.js';\nimport equalArrays from './_equalArrays.js';\nimport mapToArray from './_mapToArray.js';\nimport setToArray from './_setToArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n  switch (tag) {\n    case dataViewTag:\n      if ((object.byteLength != other.byteLength) ||\n          (object.byteOffset != other.byteOffset)) {\n        return false;\n      }\n      object = object.buffer;\n      other = other.buffer;\n\n    case arrayBufferTag:\n      if ((object.byteLength != other.byteLength) ||\n          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n        return false;\n      }\n      return true;\n\n    case boolTag:\n    case dateTag:\n    case numberTag:\n      // Coerce booleans to `1` or `0` and dates to milliseconds.\n      // Invalid dates are coerced to `NaN`.\n      return eq(+object, +other);\n\n    case errorTag:\n      return object.name == other.name && object.message == other.message;\n\n    case regexpTag:\n    case stringTag:\n      // Coerce regexes to strings and treat strings, primitives and objects,\n      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n      // for more details.\n      return object == (other + '');\n\n    case mapTag:\n      var convert = mapToArray;\n\n    case setTag:\n      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n      convert || (convert = setToArray);\n\n      if (object.size != other.size && !isPartial) {\n        return false;\n      }\n      // Assume cyclic values are equal.\n      var stacked = stack.get(object);\n      if (stacked) {\n        return stacked == other;\n      }\n      bitmask |= COMPARE_UNORDERED_FLAG;\n\n      // Recursively compare objects (susceptible to call stack limits).\n      stack.set(object, other);\n      var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n      stack['delete'](object);\n      return result;\n\n    case symbolTag:\n      if (symbolValueOf) {\n        return symbolValueOf.call(object) == symbolValueOf.call(other);\n      }\n  }\n  return false;\n}\n\nexport default equalByTag;\n", "/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n  var index = -1,\n      result = Array(map.size);\n\n  map.forEach(function(value, key) {\n    result[++index] = [key, value];\n  });\n  return result;\n}\n\nexport default mapToArray;\n", "import getAllKeys from './_getAllKeys.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n      objProps = getAllKeys(object),\n      objLength = objProps.length,\n      othProps = getAllKeys(other),\n      othLength = othProps.length;\n\n  if (objLength != othLength && !isPartial) {\n    return false;\n  }\n  var index = objLength;\n  while (index--) {\n    var key = objProps[index];\n    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n      return false;\n    }\n  }\n  // Check that cyclic values are equal.\n  var objStacked = stack.get(object);\n  var othStacked = stack.get(other);\n  if (objStacked && othStacked) {\n    return objStacked == other && othStacked == object;\n  }\n  var result = true;\n  stack.set(object, other);\n  stack.set(other, object);\n\n  var skipCtor = isPartial;\n  while (++index < objLength) {\n    key = objProps[index];\n    var objValue = object[key],\n        othValue = other[key];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, objValue, key, other, object, stack)\n        : customizer(objValue, othValue, key, object, other, stack);\n    }\n    // Recursively compare objects (susceptible to call stack limits).\n    if (!(compared === undefined\n          ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n          : compared\n        )) {\n      result = false;\n      break;\n    }\n    skipCtor || (skipCtor = key == 'constructor');\n  }\n  if (result && !skipCtor) {\n    var objCtor = object.constructor,\n        othCtor = other.constructor;\n\n    // Non `Object` object instances with different constructors are not equal.\n    if (objCtor != othCtor &&\n        ('constructor' in object && 'constructor' in other) &&\n        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n          typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n      result = false;\n    }\n  }\n  stack['delete'](object);\n  stack['delete'](other);\n  return result;\n}\n\nexport default equalObjects;\n", "import Stack from './_Stack.js';\nimport equalArrays from './_equalArrays.js';\nimport equalByTag from './_equalByTag.js';\nimport equalObjects from './_equalObjects.js';\nimport getTag from './_getTag.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n  var objIsArr = isArray(object),\n      othIsArr = isArray(other),\n      objTag = objIsArr ? arrayTag : getTag(object),\n      othTag = othIsArr ? arrayTag : getTag(other);\n\n  objTag = objTag == argsTag ? objectTag : objTag;\n  othTag = othTag == argsTag ? objectTag : othTag;\n\n  var objIsObj = objTag == objectTag,\n      othIsObj = othTag == objectTag,\n      isSameTag = objTag == othTag;\n\n  if (isSameTag && isBuffer(object)) {\n    if (!isBuffer(other)) {\n      return false;\n    }\n    objIsArr = true;\n    objIsObj = false;\n  }\n  if (isSameTag && !objIsObj) {\n    stack || (stack = new Stack);\n    return (objIsArr || isTypedArray(object))\n      ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n      : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n  }\n  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n    if (objIsWrapped || othIsWrapped) {\n      var objUnwrapped = objIsWrapped ? object.value() : object,\n          othUnwrapped = othIsWrapped ? other.value() : other;\n\n      stack || (stack = new Stack);\n      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n    }\n  }\n  if (!isSameTag) {\n    return false;\n  }\n  stack || (stack = new Stack);\n  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nexport default baseIsEqualDeep;\n", "import baseIsEqualDeep from './_baseIsEqualDeep.js';\nimport isObjectLike from './isObjectLike.js';\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n *  1 - Unordered comparison\n *  2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n  if (value === other) {\n    return true;\n  }\n  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n    return value !== value && other !== other;\n  }\n  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nexport default baseIsEqual;\n", "import Stack from './_Stack.js';\nimport baseIsEqual from './_baseIsEqual.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n  var index = matchData.length,\n      length = index,\n      noCustomizer = !customizer;\n\n  if (object == null) {\n    return !length;\n  }\n  object = Object(object);\n  while (index--) {\n    var data = matchData[index];\n    if ((noCustomizer && data[2])\n          ? data[1] !== object[data[0]]\n          : !(data[0] in object)\n        ) {\n      return false;\n    }\n  }\n  while (++index < length) {\n    data = matchData[index];\n    var key = data[0],\n        objValue = object[key],\n        srcValue = data[1];\n\n    if (noCustomizer && data[2]) {\n      if (objValue === undefined && !(key in object)) {\n        return false;\n      }\n    } else {\n      var stack = new Stack;\n      if (customizer) {\n        var result = customizer(objValue, srcValue, key, object, source, stack);\n      }\n      if (!(result === undefined\n            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n            : result\n          )) {\n        return false;\n      }\n    }\n  }\n  return true;\n}\n\nexport default baseIsMatch;\n", "import isObject from './isObject.js';\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n *  equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n  return value === value && !isObject(value);\n}\n\nexport default isStrictComparable;\n", "import isStrictComparable from './_isStrictComparable.js';\nimport keys from './keys.js';\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n  var result = keys(object),\n      length = result.length;\n\n  while (length--) {\n    var key = result[length],\n        value = object[key];\n\n    result[length] = [key, value, isStrictComparable(value)];\n  }\n  return result;\n}\n\nexport default getMatchData;\n", "/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n  return function(object) {\n    if (object == null) {\n      return false;\n    }\n    return object[key] === srcValue &&\n      (srcValue !== undefined || (key in Object(object)));\n  };\n}\n\nexport default matchesStrictComparable;\n", "import baseIsMatch from './_baseIsMatch.js';\nimport getMatchData from './_getMatchData.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n  var matchData = getMatchData(source);\n  if (matchData.length == 1 && matchData[0][2]) {\n    return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n  }\n  return function(object) {\n    return object === source || baseIsMatch(object, source, matchData);\n  };\n}\n\nexport default baseMatches;\n", "import isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n    reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n  if (isArray(value)) {\n    return false;\n  }\n  var type = typeof value;\n  if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n      value == null || isSymbol(value)) {\n    return true;\n  }\n  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n    (object != null && value in Object(object));\n}\n\nexport default isKey;\n", "import memoize from './memoize.js';\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n  var result = memoize(func, function(key) {\n    if (cache.size === MAX_MEMOIZE_SIZE) {\n      cache.clear();\n    }\n    return key;\n  });\n\n  var cache = result.cache;\n  return result;\n}\n\nexport default memoizeCapped;\n", "import memoizeCapped from './_memoizeCapped.js';\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n  var result = [];\n  if (string.charCodeAt(0) === 46 /* . */) {\n    result.push('');\n  }\n  string.replace(rePropName, function(match, number, quote, subString) {\n    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n  });\n  return result;\n});\n\nexport default stringToPath;\n", "import isArray from './isArray.js';\nimport isKey from './_isKey.js';\nimport stringToPath from './_stringToPath.js';\nimport toString from './toString.js';\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n  if (isArray(value)) {\n    return value;\n  }\n  return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nexport default castPath;\n", "import isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n  if (typeof value == 'string' || isSymbol(value)) {\n    return value;\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default toKey;\n", "import castPath from './_castPath.js';\nimport toKey from './_toKey.js';\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n  path = castPath(path, object);\n\n  var index = 0,\n      length = path.length;\n\n  while (object != null && index < length) {\n    object = object[toKey(path[index++])];\n  }\n  return (index && index == length) ? object : undefined;\n}\n\nexport default baseGet;\n", "import baseGet from './_baseGet.js';\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n  var result = object == null ? undefined : baseGet(object, path);\n  return result === undefined ? defaultValue : result;\n}\n\nexport default get;\n", "/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n  return object != null && key in Object(object);\n}\n\nexport default baseHasIn;\n", "import castPath from './_castPath.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isIndex from './_isIndex.js';\nimport isLength from './isLength.js';\nimport toKey from './_toKey.js';\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n  path = castPath(path, object);\n\n  var index = -1,\n      length = path.length,\n      result = false;\n\n  while (++index < length) {\n    var key = toKey(path[index]);\n    if (!(result = object != null && hasFunc(object, key))) {\n      break;\n    }\n    object = object[key];\n  }\n  if (result || ++index != length) {\n    return result;\n  }\n  length = object == null ? 0 : object.length;\n  return !!length && isLength(length) && isIndex(key, length) &&\n    (isArray(object) || isArguments(object));\n}\n\nexport default hasPath;\n", "import baseHasIn from './_baseHasIn.js';\nimport hasPath from './_hasPath.js';\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n  return object != null && hasPath(object, path, baseHasIn);\n}\n\nexport default hasIn;\n", "import baseIsEqual from './_baseIsEqual.js';\nimport get from './get.js';\nimport hasIn from './hasIn.js';\nimport isKey from './_isKey.js';\nimport isStrictComparable from './_isStrictComparable.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\nimport toKey from './_toKey.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n  if (isKey(path) && isStrictComparable(srcValue)) {\n    return matchesStrictComparable(toKey(path), srcValue);\n  }\n  return function(object) {\n    var objValue = get(object, path);\n    return (objValue === undefined && objValue === srcValue)\n      ? hasIn(object, path)\n      : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n  };\n}\n\nexport default baseMatchesProperty;\n", "/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n  return function(object) {\n    return object == null ? undefined : object[key];\n  };\n}\n\nexport default baseProperty;\n", "import baseGet from './_baseGet.js';\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n  return function(object) {\n    return baseGet(object, path);\n  };\n}\n\nexport default basePropertyDeep;\n", "import baseProperty from './_baseProperty.js';\nimport basePropertyDeep from './_basePropertyDeep.js';\nimport isKey from './_isKey.js';\nimport toKey from './_toKey.js';\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n *   { 'a': { 'b': 2 } },\n *   { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nexport default property;\n", "import baseMatches from './_baseMatches.js';\nimport baseMatchesProperty from './_baseMatchesProperty.js';\nimport identity from './identity.js';\nimport isArray from './isArray.js';\nimport property from './property.js';\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n  if (typeof value == 'function') {\n    return value;\n  }\n  if (value == null) {\n    return identity;\n  }\n  if (typeof value == 'object') {\n    return isArray(value)\n      ? baseMatchesProperty(value[0], value[1])\n      : baseMatches(value);\n  }\n  return property(value);\n}\n\nexport default baseIteratee;\n", "import baseFor from './_baseFor.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n  return object && baseFor(object, iteratee, keys);\n}\n\nexport default baseForOwn;\n", "import isArrayLike from './isArrayLike.js';\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n  return function(collection, iteratee) {\n    if (collection == null) {\n      return collection;\n    }\n    if (!isArrayLike(collection)) {\n      return eachFunc(collection, iteratee);\n    }\n    var length = collection.length,\n        index = fromRight ? length : -1,\n        iterable = Object(collection);\n\n    while ((fromRight ? index-- : ++index < length)) {\n      if (iteratee(iterable[index], index, iterable) === false) {\n        break;\n      }\n    }\n    return collection;\n  };\n}\n\nexport default createBaseEach;\n", "import baseForOwn from './_baseForOwn.js';\nimport createBaseEach from './_createBaseEach.js';\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nexport default baseEach;\n", "import baseEach from './_baseEach.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n  var index = -1,\n      result = isArrayLike(collection) ? Array(collection.length) : [];\n\n  baseEach(collection, function(value, key, collection) {\n    result[++index] = iteratee(value, key, collection);\n  });\n  return result;\n}\n\nexport default baseMap;\n", "import arrayMap from './_arrayMap.js';\nimport baseIteratee from './_baseIteratee.js';\nimport baseMap from './_baseMap.js';\nimport isArray from './isArray.js';\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n *   return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n *   { 'user': 'barney' },\n *   { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n  var func = isArray(collection) ? arrayMap : baseMap;\n  return func(collection, baseIteratee(iteratee, 3));\n}\n\nexport default map;\n", "import basePropertyOf from './_basePropertyOf.js';\n\n/** Used to map HTML entities to characters. */\nvar htmlUnescapes = {\n  '&amp;': '&',\n  '&lt;': '<',\n  '&gt;': '>',\n  '&quot;': '\"',\n  '&#39;': \"'\"\n};\n\n/**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\nvar unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\nexport default unescapeHtmlChar;\n", "import toString from './toString.js';\nimport unescapeHtmlChar from './_unescapeHtmlChar.js';\n\n/** Used to match HTML entities and HTML characters. */\nvar reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n    reHasEscapedHtml = RegExp(reEscapedHtml.source);\n\n/**\n * The inverse of `_.escape`; this method converts the HTML entities\n * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to\n * their corresponding characters.\n *\n * **Note:** No other HTML entities are unescaped. To unescape additional\n * HTML entities use a third-party library like [_he_](https://mths.be/he).\n *\n * @static\n * @memberOf _\n * @since 0.6.0\n * @category String\n * @param {string} [string=''] The string to unescape.\n * @returns {string} Returns the unescaped string.\n * @example\n *\n * _.unescape('fred, barney, &amp; pebbles');\n * // => 'fred, barney, & pebbles'\n */\nfunction unescape(string) {\n  string = toString(string);\n  return (string && reHasEscapedHtml.test(string))\n    ? string.replace(reEscapedHtml, unescapeHtmlChar)\n    : string;\n}\n\nexport default unescape;\n", "export const TAG_PROPERTIES = {\n  CHARSET: 'charset',\n  CSS_TEXT: 'cssText',\n  HREF: 'href',\n  HTTPEQUIV: 'http-equiv',\n  INNER_HTML: 'innerHTML',\n  ITEM_PROP: 'itemprop',\n  NAME: 'name',\n  PROPERTY: 'property',\n  REL: 'rel',\n  SRC: 'src',\n};\n\nexport const ATTRIBUTE_NAMES = {\n  BODY: 'bodyAttributes',\n  HTML: 'htmlAttributes',\n  TITLE: 'titleAttributes',\n};\n\nexport const TAG_NAMES = {\n  BASE: 'base',\n  BODY: 'body',\n  HEAD: 'head',\n  HTML: 'html',\n  LINK: 'link',\n  META: 'meta',\n  NOSCRIPT: 'noscript',\n  SCRIPT: 'script',\n  STYLE: 'style',\n  TITLE: 'title',\n  FRAGMENT: 'Symbol(react.fragment)',\n};\n\nexport const SEO_PRIORITY_TAGS = {\n  link: { rel: ['amphtml', 'canonical', 'alternate'] },\n  script: { type: ['application/ld+json'] },\n  meta: {\n    charset: '',\n    name: ['robots', 'description'],\n    property: [\n      'og:type',\n      'og:title',\n      'og:url',\n      'og:image',\n      'og:image:alt',\n      'og:description',\n      'twitter:url',\n      'twitter:title',\n      'twitter:description',\n      'twitter:image',\n      'twitter:image:alt',\n      'twitter:card',\n      'twitter:site',\n    ],\n  },\n};\n\nexport const VALID_TAG_NAMES = Object.keys(TAG_NAMES).map(name => TAG_NAMES[name]);\n\nexport const REACT_TAG_MAP = {\n  accesskey: 'accessKey',\n  charset: 'charSet',\n  class: 'className',\n  contenteditable: 'contentEditable',\n  contextmenu: 'contextMenu',\n  'http-equiv': 'httpEquiv',\n  itemprop: 'itemProp',\n  tabindex: 'tabIndex',\n};\n\nexport const HTML_TAG_MAP = Object.keys(REACT_TAG_MAP).reduce((obj, key) => {\n  obj[REACT_TAG_MAP[key]] = key;\n  return obj;\n}, {});\n\nexport const HELMET_ATTRIBUTE = 'data-rh';\n", "import { TAG_NAMES, TAG_PROPERTIES, ATTRIBUTE_NAMES } from './constants';\n\nconst HELMET_PROPS = {\n  DEFAULT_TITLE: 'defaultTitle',\n  DEFER: 'defer',\n  ENCODE_SPECIAL_CHARACTERS: 'encodeSpecialCharacters',\n  ON_CHANGE_CLIENT_STATE: 'onChangeClientState',\n  TITLE_TEMPLATE: 'titleTemplate',\n  PRIORITIZE_SEO_TAGS: 'prioritizeSeoTags',\n};\n\nconst getInnermostProperty = (propsList, property) => {\n  for (let i = propsList.length - 1; i >= 0; i -= 1) {\n    const props = propsList[i];\n\n    if (Object.prototype.hasOwnProperty.call(props, property)) {\n      return props[property];\n    }\n  }\n\n  return null;\n};\n\nconst getTitleFromPropsList = propsList => {\n  let innermostTitle = getInnermostProperty(propsList, TAG_NAMES.TITLE);\n  const innermostTemplate = getInnermostProperty(propsList, HELMET_PROPS.TITLE_TEMPLATE);\n  if (Array.isArray(innermostTitle)) {\n    innermostTitle = innermostTitle.join('');\n  }\n  if (innermostTemplate && innermostTitle) {\n    // use function arg to avoid need to escape $ characters\n    return innermostTemplate.replace(/%s/g, () => innermostTitle);\n  }\n\n  const innermostDefaultTitle = getInnermostProperty(propsList, HELMET_PROPS.DEFAULT_TITLE);\n\n  return innermostTitle || innermostDefaultTitle || undefined;\n};\n\nconst getOnChangeClientState = propsList =>\n  getInnermostProperty(propsList, HELMET_PROPS.ON_CHANGE_CLIENT_STATE) || (() => {});\n\nconst getAttributesFromPropsList = (tagType, propsList) =>\n  propsList\n    .filter(props => typeof props[tagType] !== 'undefined')\n    .map(props => props[tagType])\n    .reduce((tagAttrs, current) => ({ ...tagAttrs, ...current }), {});\n\nconst getBaseTagFromPropsList = (primaryAttributes, propsList) =>\n  propsList\n    .filter(props => typeof props[TAG_NAMES.BASE] !== 'undefined')\n    .map(props => props[TAG_NAMES.BASE])\n    .reverse()\n    .reduce((innermostBaseTag, tag) => {\n      if (!innermostBaseTag.length) {\n        const keys = Object.keys(tag);\n\n        for (let i = 0; i < keys.length; i += 1) {\n          const attributeKey = keys[i];\n          const lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n          if (\n            primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 &&\n            tag[lowerCaseAttributeKey]\n          ) {\n            return innermostBaseTag.concat(tag);\n          }\n        }\n      }\n\n      return innermostBaseTag;\n    }, []);\n\n// eslint-disable-next-line no-console\nconst warn = msg => console && typeof console.warn === 'function' && console.warn(msg);\n\nconst getTagsFromPropsList = (tagName, primaryAttributes, propsList) => {\n  // Calculate list of tags, giving priority innermost component (end of the propslist)\n  const approvedSeenTags = {};\n\n  return propsList\n    .filter(props => {\n      if (Array.isArray(props[tagName])) {\n        return true;\n      }\n      if (typeof props[tagName] !== 'undefined') {\n        warn(\n          `Helmet: ${tagName} should be of type \"Array\". Instead found type \"${typeof props[\n            tagName\n          ]}\"`\n        );\n      }\n      return false;\n    })\n    .map(props => props[tagName])\n    .reverse()\n    .reduce((approvedTags, instanceTags) => {\n      const instanceSeenTags = {};\n\n      instanceTags\n        .filter(tag => {\n          let primaryAttributeKey;\n          const keys = Object.keys(tag);\n          for (let i = 0; i < keys.length; i += 1) {\n            const attributeKey = keys[i];\n            const lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n            // Special rule with link tags, since rel and href are both primary tags, rel takes priority\n            if (\n              primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 &&\n              !(\n                primaryAttributeKey === TAG_PROPERTIES.REL &&\n                tag[primaryAttributeKey].toLowerCase() === 'canonical'\n              ) &&\n              !(\n                lowerCaseAttributeKey === TAG_PROPERTIES.REL &&\n                tag[lowerCaseAttributeKey].toLowerCase() === 'stylesheet'\n              )\n            ) {\n              primaryAttributeKey = lowerCaseAttributeKey;\n            }\n            // Special case for innerHTML which doesn't work lowercased\n            if (\n              primaryAttributes.indexOf(attributeKey) !== -1 &&\n              (attributeKey === TAG_PROPERTIES.INNER_HTML ||\n                attributeKey === TAG_PROPERTIES.CSS_TEXT ||\n                attributeKey === TAG_PROPERTIES.ITEM_PROP)\n            ) {\n              primaryAttributeKey = attributeKey;\n            }\n          }\n\n          if (!primaryAttributeKey || !tag[primaryAttributeKey]) {\n            return false;\n          }\n\n          const value = tag[primaryAttributeKey].toLowerCase();\n\n          if (!approvedSeenTags[primaryAttributeKey]) {\n            approvedSeenTags[primaryAttributeKey] = {};\n          }\n\n          if (!instanceSeenTags[primaryAttributeKey]) {\n            instanceSeenTags[primaryAttributeKey] = {};\n          }\n\n          if (!approvedSeenTags[primaryAttributeKey][value]) {\n            instanceSeenTags[primaryAttributeKey][value] = true;\n            return true;\n          }\n\n          return false;\n        })\n        .reverse()\n        .forEach(tag => approvedTags.push(tag));\n\n      // Update seen tags with tags from this instance\n      const keys = Object.keys(instanceSeenTags);\n      for (let i = 0; i < keys.length; i += 1) {\n        const attributeKey = keys[i];\n        const tagUnion = {\n          ...approvedSeenTags[attributeKey],\n          ...instanceSeenTags[attributeKey],\n        };\n\n        approvedSeenTags[attributeKey] = tagUnion;\n      }\n\n      return approvedTags;\n    }, [])\n    .reverse();\n};\n\nconst getAnyTrueFromPropsList = (propsList, checkedTag) => {\n  if (Array.isArray(propsList) && propsList.length) {\n    for (let index = 0; index < propsList.length; index += 1) {\n      const prop = propsList[index];\n      if (prop[checkedTag]) {\n        return true;\n      }\n    }\n  }\n  return false;\n};\n\nconst reducePropsToState = propsList => ({\n  baseTag: getBaseTagFromPropsList([TAG_PROPERTIES.HREF], propsList),\n  bodyAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY, propsList),\n  defer: getInnermostProperty(propsList, HELMET_PROPS.DEFER),\n  encode: getInnermostProperty(propsList, HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),\n  htmlAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML, propsList),\n  linkTags: getTagsFromPropsList(\n    TAG_NAMES.LINK,\n    [TAG_PROPERTIES.REL, TAG_PROPERTIES.HREF],\n    propsList\n  ),\n  metaTags: getTagsFromPropsList(\n    TAG_NAMES.META,\n    [\n      TAG_PROPERTIES.NAME,\n      TAG_PROPERTIES.CHARSET,\n      TAG_PROPERTIES.HTTPEQUIV,\n      TAG_PROPERTIES.PROPERTY,\n      TAG_PROPERTIES.ITEM_PROP,\n    ],\n    propsList\n  ),\n  noscriptTags: getTagsFromPropsList(TAG_NAMES.NOSCRIPT, [TAG_PROPERTIES.INNER_HTML], propsList),\n  onChangeClientState: getOnChangeClientState(propsList),\n  scriptTags: getTagsFromPropsList(\n    TAG_NAMES.SCRIPT,\n    [TAG_PROPERTIES.SRC, TAG_PROPERTIES.INNER_HTML],\n    propsList\n  ),\n  styleTags: getTagsFromPropsList(TAG_NAMES.STYLE, [TAG_PROPERTIES.CSS_TEXT], propsList),\n  title: getTitleFromPropsList(propsList),\n  titleAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE, propsList),\n  prioritizeSeoTags: getAnyTrueFromPropsList(propsList, HELMET_PROPS.PRIORITIZE_SEO_TAGS),\n});\n\nexport const flattenArray = possibleArray =>\n  Array.isArray(possibleArray) ? possibleArray.join('') : possibleArray;\n\nexport { reducePropsToState };\n\nconst checkIfPropsMatch = (props, toMatch) => {\n  const keys = Object.keys(props);\n  for (let i = 0; i < keys.length; i += 1) {\n    // e.g. if rel exists in the list of allowed props [amphtml, alternate, etc]\n    if (toMatch[keys[i]] && toMatch[keys[i]].includes(props[keys[i]])) {\n      return true;\n    }\n  }\n  return false;\n};\n\nexport const prioritizer = (elementsList, propsToMatch) => {\n  if (Array.isArray(elementsList)) {\n    return elementsList.reduce(\n      (acc, elementAttrs) => {\n        if (checkIfPropsMatch(elementAttrs, propsToMatch)) {\n          acc.priority.push(elementAttrs);\n        } else {\n          acc.default.push(elementAttrs);\n        }\n        return acc;\n      },\n      { priority: [], default: [] }\n    );\n  }\n  return { default: elementsList };\n};\n\nexport const without = (obj, key) => {\n  return {\n    ...obj,\n    [key]: undefined,\n  };\n};\n", "import React from 'react';\nimport {\n  HELMET_ATTRIBUTE,\n  TAG_NAMES,\n  REACT_TAG_MAP,\n  TAG_PROPERTIES,\n  ATTRIBUTE_NAMES,\n  SEO_PRIORITY_TAGS,\n} from './constants';\nimport { flattenArray, prioritizer } from './utils';\n\nconst SELF_CLOSING_TAGS = [TAG_NAMES.NOSCRIPT, TAG_NAMES.SCRIPT, TAG_NAMES.STYLE];\n\nconst encodeSpecialCharacters = (str, encode = true) => {\n  if (encode === false) {\n    return String(str);\n  }\n\n  return String(str)\n    .replace(/&/g, '&amp;')\n    .replace(/</g, '&lt;')\n    .replace(/>/g, '&gt;')\n    .replace(/\"/g, '&quot;')\n    .replace(/'/g, '&#x27;');\n};\n\nconst generateElementAttributesAsString = attributes =>\n  Object.keys(attributes).reduce((str, key) => {\n    const attr = typeof attributes[key] !== 'undefined' ? `${key}=\"${attributes[key]}\"` : `${key}`;\n    return str ? `${str} ${attr}` : attr;\n  }, '');\n\nconst generateTitleAsString = (type, title, attributes, encode) => {\n  const attributeString = generateElementAttributesAsString(attributes);\n  const flattenedTitle = flattenArray(title);\n  return attributeString\n    ? `<${type} ${HELMET_ATTRIBUTE}=\"true\" ${attributeString}>${encodeSpecialCharacters(\n        flattenedTitle,\n        encode\n      )}</${type}>`\n    : `<${type} ${HELMET_ATTRIBUTE}=\"true\">${encodeSpecialCharacters(\n        flattenedTitle,\n        encode\n      )}</${type}>`;\n};\n\nconst generateTagsAsString = (type, tags, encode) =>\n  tags.reduce((str, tag) => {\n    const attributeHtml = Object.keys(tag)\n      .filter(\n        attribute =>\n          !(attribute === TAG_PROPERTIES.INNER_HTML || attribute === TAG_PROPERTIES.CSS_TEXT)\n      )\n      .reduce((string, attribute) => {\n        const attr =\n          typeof tag[attribute] === 'undefined'\n            ? attribute\n            : `${attribute}=\"${encodeSpecialCharacters(tag[attribute], encode)}\"`;\n        return string ? `${string} ${attr}` : attr;\n      }, '');\n\n    const tagContent = tag.innerHTML || tag.cssText || '';\n\n    const isSelfClosing = SELF_CLOSING_TAGS.indexOf(type) === -1;\n\n    return `${str}<${type} ${HELMET_ATTRIBUTE}=\"true\" ${attributeHtml}${\n      isSelfClosing ? `/>` : `>${tagContent}</${type}>`\n    }`;\n  }, '');\n\nconst convertElementAttributesToReactProps = (attributes, initProps = {}) =>\n  Object.keys(attributes).reduce((obj, key) => {\n    obj[REACT_TAG_MAP[key] || key] = attributes[key];\n    return obj;\n  }, initProps);\n\nconst generateTitleAsReactComponent = (type, title, attributes) => {\n  // assigning into an array to define toString function on it\n  const initProps = {\n    key: title,\n    [HELMET_ATTRIBUTE]: true,\n  };\n  const props = convertElementAttributesToReactProps(attributes, initProps);\n\n  return [React.createElement(TAG_NAMES.TITLE, props, title)];\n};\n\nconst generateTagsAsReactComponent = (type, tags) =>\n  tags.map((tag, i) => {\n    const mappedTag = {\n      key: i,\n      [HELMET_ATTRIBUTE]: true,\n    };\n\n    Object.keys(tag).forEach(attribute => {\n      const mappedAttribute = REACT_TAG_MAP[attribute] || attribute;\n\n      if (\n        mappedAttribute === TAG_PROPERTIES.INNER_HTML ||\n        mappedAttribute === TAG_PROPERTIES.CSS_TEXT\n      ) {\n        const content = tag.innerHTML || tag.cssText;\n        mappedTag.dangerouslySetInnerHTML = { __html: content };\n      } else {\n        mappedTag[mappedAttribute] = tag[attribute];\n      }\n    });\n\n    return React.createElement(type, mappedTag);\n  });\n\nconst getMethodsForTag = (type, tags, encode) => {\n  switch (type) {\n    case TAG_NAMES.TITLE:\n      return {\n        toComponent: () =>\n          generateTitleAsReactComponent(type, tags.title, tags.titleAttributes, encode),\n        toString: () => generateTitleAsString(type, tags.title, tags.titleAttributes, encode),\n      };\n    case ATTRIBUTE_NAMES.BODY:\n    case ATTRIBUTE_NAMES.HTML:\n      return {\n        toComponent: () => convertElementAttributesToReactProps(tags),\n        toString: () => generateElementAttributesAsString(tags),\n      };\n    default:\n      return {\n        toComponent: () => generateTagsAsReactComponent(type, tags),\n        toString: () => generateTagsAsString(type, tags, encode),\n      };\n  }\n};\n\nconst getPriorityMethods = ({ metaTags, linkTags, scriptTags, encode }) => {\n  const meta = prioritizer(metaTags, SEO_PRIORITY_TAGS.meta);\n  const link = prioritizer(linkTags, SEO_PRIORITY_TAGS.link);\n  const script = prioritizer(scriptTags, SEO_PRIORITY_TAGS.script);\n\n  // need to have toComponent() and toString()\n  const priorityMethods = {\n    toComponent: () => [\n      ...generateTagsAsReactComponent(TAG_NAMES.META, meta.priority),\n      ...generateTagsAsReactComponent(TAG_NAMES.LINK, link.priority),\n      ...generateTagsAsReactComponent(TAG_NAMES.SCRIPT, script.priority),\n    ],\n    toString: () =>\n      // generate all the tags as strings and concatenate them\n      `${getMethodsForTag(TAG_NAMES.META, meta.priority, encode)} ${getMethodsForTag(\n        TAG_NAMES.LINK,\n        link.priority,\n        encode\n      )} ${getMethodsForTag(TAG_NAMES.SCRIPT, script.priority, encode)}`,\n  };\n\n  return {\n    priorityMethods,\n    metaTags: meta.default,\n    linkTags: link.default,\n    scriptTags: script.default,\n  };\n};\n\nconst mapStateOnServer = props => {\n  const {\n    baseTag,\n    bodyAttributes,\n    encode,\n    htmlAttributes,\n    noscriptTags,\n    styleTags,\n    title = '',\n    titleAttributes,\n    prioritizeSeoTags,\n  } = props;\n  let { linkTags, metaTags, scriptTags } = props;\n  let priorityMethods = {\n    toComponent: () => {},\n    toString: () => '',\n  };\n  if (prioritizeSeoTags) {\n    ({ priorityMethods, linkTags, metaTags, scriptTags } = getPriorityMethods(props));\n  }\n  return {\n    priority: priorityMethods,\n    base: getMethodsForTag(TAG_NAMES.BASE, baseTag, encode),\n    bodyAttributes: getMethodsForTag(ATTRIBUTE_NAMES.BODY, bodyAttributes, encode),\n    htmlAttributes: getMethodsForTag(ATTRIBUTE_NAMES.HTML, htmlAttributes, encode),\n    link: getMethodsForTag(TAG_NAMES.LINK, linkTags, encode),\n    meta: getMethodsForTag(TAG_NAMES.META, metaTags, encode),\n    noscript: getMethodsForTag(TAG_NAMES.NOSCRIPT, noscriptTags, encode),\n    script: getMethodsForTag(TAG_NAMES.SCRIPT, scriptTags, encode),\n    style: getMethodsForTag(TAG_NAMES.STYLE, styleTags, encode),\n    title: getMethodsForTag(TAG_NAMES.TITLE, { title, titleAttributes }, encode),\n  };\n};\n\nexport default mapStateOnServer;\n", "import mapStateOnServer from './server';\n\nconst instances = [];\n\nexport function clearInstances() {\n  instances.length = 0;\n}\n\nexport default class HelmetData {\n  instances = [];\n\n  value = {\n    setHelmet: serverState => {\n      this.context.helmet = serverState;\n    },\n    helmetInstances: {\n      get: () => (this.canUseDOM ? instances : this.instances),\n      add: instance => {\n        (this.canUseDOM ? instances : this.instances).push(instance);\n      },\n      remove: instance => {\n        const index = (this.canUseDOM ? instances : this.instances).indexOf(instance);\n        (this.canUseDOM ? instances : this.instances).splice(index, 1);\n      },\n    },\n  };\n\n  constructor(context, canUseDOM = typeof document !== 'undefined') {\n    this.context = context;\n    this.canUseDOM = canUseDOM;\n\n    if (!canUseDOM) {\n      context.helmet = mapStateOnServer({\n        baseTag: [],\n        bodyAttributes: {},\n        encodeSpecialCharacters: true,\n        htmlAttributes: {},\n        linkTags: [],\n        metaTags: [],\n        noscriptTags: [],\n        scriptTags: [],\n        styleTags: [],\n        title: '',\n        titleAttributes: {},\n      });\n    }\n  }\n}\n", "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport HelmetData from './HelmetData';\n\nconst defaultValue = {};\n\nexport const Context = React.createContext(defaultValue);\n\nexport const providerShape = PropTypes.shape({\n  setHelmet: PropTypes.func,\n  helmetInstances: PropTypes.shape({\n    get: PropTypes.func,\n    add: PropTypes.func,\n    remove: PropTypes.func,\n  }),\n});\n\nconst canUseDOM = typeof document !== 'undefined';\n\nexport default class Provider extends Component {\n  static canUseDOM = canUseDOM;\n\n  static propTypes = {\n    context: PropTypes.shape({\n      helmet: PropTypes.shape(),\n    }),\n    children: PropTypes.node.isRequired,\n  };\n\n  static defaultProps = {\n    context: {},\n  };\n\n  static displayName = 'HelmetProvider';\n\n  constructor(props) {\n    super(props);\n\n    this.helmetData = new HelmetData(this.props.context, Provider.canUseDOM);\n  }\n\n  render() {\n    return <Context.Provider value={this.helmetData.value}>{this.props.children}</Context.Provider>;\n  }\n}\n", "import { HELMET_ATTRIBUTE, TAG_NAMES, TAG_PROPERTIES } from './constants';\nimport { flattenArray } from './utils';\n\nconst updateTags = (type, tags) => {\n  const headElement = document.head || document.querySelector(TAG_NAMES.HEAD);\n  const tagNodes = headElement.querySelectorAll(`${type}[${HELMET_ATTRIBUTE}]`);\n  const oldTags = [].slice.call(tagNodes);\n  const newTags = [];\n  let indexToDelete;\n\n  if (tags && tags.length) {\n    tags.forEach(tag => {\n      const newElement = document.createElement(type);\n\n      // eslint-disable-next-line\n      for (const attribute in tag) {\n        if (Object.prototype.hasOwnProperty.call(tag, attribute)) {\n          if (attribute === TAG_PROPERTIES.INNER_HTML) {\n            newElement.innerHTML = tag.innerHTML;\n          } else if (attribute === TAG_PROPERTIES.CSS_TEXT) {\n            if (newElement.styleSheet) {\n              newElement.styleSheet.cssText = tag.cssText;\n            } else {\n              newElement.appendChild(document.createTextNode(tag.cssText));\n            }\n          } else {\n            const value = typeof tag[attribute] === 'undefined' ? '' : tag[attribute];\n            newElement.setAttribute(attribute, value);\n          }\n        }\n      }\n\n      newElement.setAttribute(HELMET_ATTRIBUTE, 'true');\n\n      // Remove a duplicate tag from domTagstoRemove, so it isn't cleared.\n      if (\n        oldTags.some((existingTag, index) => {\n          indexToDelete = index;\n          return newElement.isEqualNode(existingTag);\n        })\n      ) {\n        oldTags.splice(indexToDelete, 1);\n      } else {\n        newTags.push(newElement);\n      }\n    });\n  }\n\n  oldTags.forEach(tag => tag.parentNode.removeChild(tag));\n  newTags.forEach(tag => headElement.appendChild(tag));\n\n  return {\n    oldTags,\n    newTags,\n  };\n};\n\nconst updateAttributes = (tagName, attributes) => {\n  const elementTag = document.getElementsByTagName(tagName)[0];\n\n  if (!elementTag) {\n    return;\n  }\n\n  const helmetAttributeString = elementTag.getAttribute(HELMET_ATTRIBUTE);\n  const helmetAttributes = helmetAttributeString ? helmetAttributeString.split(',') : [];\n  const attributesToRemove = [].concat(helmetAttributes);\n  const attributeKeys = Object.keys(attributes);\n\n  for (let i = 0; i < attributeKeys.length; i += 1) {\n    const attribute = attributeKeys[i];\n    const value = attributes[attribute] || '';\n\n    if (elementTag.getAttribute(attribute) !== value) {\n      elementTag.setAttribute(attribute, value);\n    }\n\n    if (helmetAttributes.indexOf(attribute) === -1) {\n      helmetAttributes.push(attribute);\n    }\n\n    const indexToSave = attributesToRemove.indexOf(attribute);\n    if (indexToSave !== -1) {\n      attributesToRemove.splice(indexToSave, 1);\n    }\n  }\n\n  for (let i = attributesToRemove.length - 1; i >= 0; i -= 1) {\n    elementTag.removeAttribute(attributesToRemove[i]);\n  }\n\n  if (helmetAttributes.length === attributesToRemove.length) {\n    elementTag.removeAttribute(HELMET_ATTRIBUTE);\n  } else if (elementTag.getAttribute(HELMET_ATTRIBUTE) !== attributeKeys.join(',')) {\n    elementTag.setAttribute(HELMET_ATTRIBUTE, attributeKeys.join(','));\n  }\n};\n\nconst updateTitle = (title, attributes) => {\n  if (typeof title !== 'undefined' && document.title !== title) {\n    document.title = flattenArray(title);\n  }\n\n  updateAttributes(TAG_NAMES.TITLE, attributes);\n};\n\nconst commitTagChanges = (newState, cb) => {\n  const {\n    baseTag,\n    bodyAttributes,\n    htmlAttributes,\n    linkTags,\n    metaTags,\n    noscriptTags,\n    onChangeClientState,\n    scriptTags,\n    styleTags,\n    title,\n    titleAttributes,\n  } = newState;\n  updateAttributes(TAG_NAMES.BODY, bodyAttributes);\n  updateAttributes(TAG_NAMES.HTML, htmlAttributes);\n\n  updateTitle(title, titleAttributes);\n\n  const tagUpdates = {\n    baseTag: updateTags(TAG_NAMES.BASE, baseTag),\n    linkTags: updateTags(TAG_NAMES.LINK, linkTags),\n    metaTags: updateTags(TAG_NAMES.META, metaTags),\n    noscriptTags: updateTags(TAG_NAMES.NOSCRIPT, noscriptTags),\n    scriptTags: updateTags(TAG_NAMES.SCRIPT, scriptTags),\n    styleTags: updateTags(TAG_NAMES.STYLE, styleTags),\n  };\n\n  const addedTags = {};\n  const removedTags = {};\n\n  Object.keys(tagUpdates).forEach(tagType => {\n    const { newTags, oldTags } = tagUpdates[tagType];\n\n    if (newTags.length) {\n      addedTags[tagType] = newTags;\n    }\n    if (oldTags.length) {\n      removedTags[tagType] = tagUpdates[tagType].oldTags;\n    }\n  });\n\n  if (cb) {\n    cb();\n  }\n\n  onChangeClientState(newState, addedTags, removedTags);\n};\n\n// eslint-disable-next-line\nlet _helmetCallback = null;\n\nconst handleStateChangeOnClient = newState => {\n  if (_helmetCallback) {\n    cancelAnimationFrame(_helmetCallback);\n  }\n\n  if (newState.defer) {\n    _helmetCallback = requestAnimationFrame(() => {\n      commitTagChanges(newState, () => {\n        _helmetCallback = null;\n      });\n    });\n  } else {\n    commitTagChanges(newState);\n    _helmetCallback = null;\n  }\n};\n\nexport default handleStateChangeOnClient;\n", "import { Component } from 'react';\nimport shallowEqual from 'shallowequal';\nimport handleStateChangeOnClient from './client';\nimport mapStateOnServer from './server';\nimport { reducePropsToState } from './utils';\nimport Provider, { providerShape } from './Provider';\n\nexport default class Dispatcher extends Component {\n  static propTypes = {\n    context: providerShape.isRequired,\n  };\n\n  static displayName = 'HelmetDispatcher';\n\n  rendered = false;\n\n  shouldComponentUpdate(nextProps) {\n    return !shallowEqual(nextProps, this.props);\n  }\n\n  componentDidUpdate() {\n    this.emitChange();\n  }\n\n  componentWillUnmount() {\n    const { helmetInstances } = this.props.context;\n    helmetInstances.remove(this);\n    this.emitChange();\n  }\n\n  emitChange() {\n    const { helmetInstances, setHelmet } = this.props.context;\n    let serverState = null;\n    const state = reducePropsToState(\n      helmetInstances.get().map(instance => {\n        const props = { ...instance.props };\n        delete props.context;\n        return props;\n      })\n    );\n    if (Provider.canUseDOM) {\n      handleStateChangeOnClient(state);\n    } else if (mapStateOnServer) {\n      serverState = mapStateOnServer(state);\n    }\n    setHelmet(serverState);\n  }\n\n  // componentWillMount will be deprecated\n  // for SSR, initialize on first render\n  // constructor is also unsafe in StrictMode\n  init() {\n    if (this.rendered) {\n      return;\n    }\n\n    this.rendered = true;\n\n    const { helmetInstances } = this.props.context;\n    helmetInstances.add(this);\n    this.emitChange();\n  }\n\n  render() {\n    this.init();\n\n    return null;\n  }\n}\n", "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport fastCompare from 'react-fast-compare';\nimport invariant from 'invariant';\nimport { Context } from './Provider';\nimport HelmetData from './HelmetData';\nimport Dispatcher from './Dispatcher';\nimport { without } from './utils';\nimport { TAG_NAMES, VALID_TAG_NAMES, HTML_TAG_MAP } from './constants';\n\nexport { default as HelmetData } from './HelmetData';\nexport { default as HelmetProvider } from './Provider';\n\n/* eslint-disable class-methods-use-this */\nexport class Helmet extends Component {\n  /**\n   * @param {Object} base: {\"target\": \"_blank\", \"href\": \"http://mysite.com/\"}\n   * @param {Object} bodyAttributes: {\"className\": \"root\"}\n   * @param {String} defaultTitle: \"Default Title\"\n   * @param {Boolean} defer: true\n   * @param {Boolean} encodeSpecialCharacters: true\n   * @param {Object} htmlAttributes: {\"lang\": \"en\", \"amp\": undefined}\n   * @param {Array} link: [{\"rel\": \"canonical\", \"href\": \"http://mysite.com/example\"}]\n   * @param {Array} meta: [{\"name\": \"description\", \"content\": \"Test description\"}]\n   * @param {Array} noscript: [{\"innerHTML\": \"<img src='http://mysite.com/js/test.js'\"}]\n   * @param {Function} onChangeClientState: \"(newState) => console.log(newState)\"\n   * @param {Array} script: [{\"type\": \"text/javascript\", \"src\": \"http://mysite.com/js/test.js\"}]\n   * @param {Array} style: [{\"type\": \"text/css\", \"cssText\": \"div { display: block; color: blue; }\"}]\n   * @param {String} title: \"Title\"\n   * @param {Object} titleAttributes: {\"itemprop\": \"name\"}\n   * @param {String} titleTemplate: \"MySite.com - %s\"\n   * @param {Boolean} prioritizeSeoTags: false\n   */\n  /* eslint-disable react/forbid-prop-types, react/require-default-props */\n  static propTypes = {\n    base: PropTypes.object,\n    bodyAttributes: PropTypes.object,\n    children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n    defaultTitle: PropTypes.string,\n    defer: PropTypes.bool,\n    encodeSpecialCharacters: PropTypes.bool,\n    htmlAttributes: PropTypes.object,\n    link: PropTypes.arrayOf(PropTypes.object),\n    meta: PropTypes.arrayOf(PropTypes.object),\n    noscript: PropTypes.arrayOf(PropTypes.object),\n    onChangeClientState: PropTypes.func,\n    script: PropTypes.arrayOf(PropTypes.object),\n    style: PropTypes.arrayOf(PropTypes.object),\n    title: PropTypes.string,\n    titleAttributes: PropTypes.object,\n    titleTemplate: PropTypes.string,\n    prioritizeSeoTags: PropTypes.bool,\n    helmetData: PropTypes.object,\n  };\n  /* eslint-enable react/prop-types, react/forbid-prop-types, react/require-default-props */\n\n  static defaultProps = {\n    defer: true,\n    encodeSpecialCharacters: true,\n    prioritizeSeoTags: false,\n  };\n\n  static displayName = 'Helmet';\n\n  shouldComponentUpdate(nextProps) {\n    return !fastCompare(without(this.props, 'helmetData'), without(nextProps, 'helmetData'));\n  }\n\n  mapNestedChildrenToProps(child, nestedChildren) {\n    if (!nestedChildren) {\n      return null;\n    }\n\n    switch (child.type) {\n      case TAG_NAMES.SCRIPT:\n      case TAG_NAMES.NOSCRIPT:\n        return {\n          innerHTML: nestedChildren,\n        };\n\n      case TAG_NAMES.STYLE:\n        return {\n          cssText: nestedChildren,\n        };\n      default:\n        throw new Error(\n          `<${child.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`\n        );\n    }\n  }\n\n  flattenArrayTypeChildren({ child, arrayTypeChildren, newChildProps, nestedChildren }) {\n    return {\n      ...arrayTypeChildren,\n      [child.type]: [\n        ...(arrayTypeChildren[child.type] || []),\n        {\n          ...newChildProps,\n          ...this.mapNestedChildrenToProps(child, nestedChildren),\n        },\n      ],\n    };\n  }\n\n  mapObjectTypeChildren({ child, newProps, newChildProps, nestedChildren }) {\n    switch (child.type) {\n      case TAG_NAMES.TITLE:\n        return {\n          ...newProps,\n          [child.type]: nestedChildren,\n          titleAttributes: { ...newChildProps },\n        };\n\n      case TAG_NAMES.BODY:\n        return {\n          ...newProps,\n          bodyAttributes: { ...newChildProps },\n        };\n\n      case TAG_NAMES.HTML:\n        return {\n          ...newProps,\n          htmlAttributes: { ...newChildProps },\n        };\n      default:\n        return {\n          ...newProps,\n          [child.type]: { ...newChildProps },\n        };\n    }\n  }\n\n  mapArrayTypeChildrenToProps(arrayTypeChildren, newProps) {\n    let newFlattenedProps = { ...newProps };\n\n    Object.keys(arrayTypeChildren).forEach(arrayChildName => {\n      newFlattenedProps = {\n        ...newFlattenedProps,\n        [arrayChildName]: arrayTypeChildren[arrayChildName],\n      };\n    });\n\n    return newFlattenedProps;\n  }\n\n  warnOnInvalidChildren(child, nestedChildren) {\n    invariant(\n      VALID_TAG_NAMES.some(name => child.type === name),\n      typeof child.type === 'function'\n        ? `You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.`\n        : `Only elements types ${VALID_TAG_NAMES.join(\n            ', '\n          )} are allowed. Helmet does not support rendering <${\n            child.type\n          }> elements. Refer to our API for more information.`\n    );\n\n    invariant(\n      !nestedChildren ||\n        typeof nestedChildren === 'string' ||\n        (Array.isArray(nestedChildren) &&\n          !nestedChildren.some(nestedChild => typeof nestedChild !== 'string')),\n      `Helmet expects a string as a child of <${child.type}>. Did you forget to wrap your children in braces? ( <${child.type}>{\\`\\`}</${child.type}> ) Refer to our API for more information.`\n    );\n\n    return true;\n  }\n\n  mapChildrenToProps(children, newProps) {\n    let arrayTypeChildren = {};\n\n    React.Children.forEach(children, child => {\n      if (!child || !child.props) {\n        return;\n      }\n\n      const { children: nestedChildren, ...childProps } = child.props;\n      // convert React props to HTML attributes\n      const newChildProps = Object.keys(childProps).reduce((obj, key) => {\n        obj[HTML_TAG_MAP[key] || key] = childProps[key];\n        return obj;\n      }, {});\n\n      let { type } = child;\n      if (typeof type === 'symbol') {\n        type = type.toString();\n      } else {\n        this.warnOnInvalidChildren(child, nestedChildren);\n      }\n\n      switch (type) {\n        case TAG_NAMES.FRAGMENT:\n          newProps = this.mapChildrenToProps(nestedChildren, newProps);\n          break;\n\n        case TAG_NAMES.LINK:\n        case TAG_NAMES.META:\n        case TAG_NAMES.NOSCRIPT:\n        case TAG_NAMES.SCRIPT:\n        case TAG_NAMES.STYLE:\n          arrayTypeChildren = this.flattenArrayTypeChildren({\n            child,\n            arrayTypeChildren,\n            newChildProps,\n            nestedChildren,\n          });\n          break;\n\n        default:\n          newProps = this.mapObjectTypeChildren({\n            child,\n            newProps,\n            newChildProps,\n            nestedChildren,\n          });\n          break;\n      }\n    });\n\n    return this.mapArrayTypeChildrenToProps(arrayTypeChildren, newProps);\n  }\n\n  render() {\n    const { children, ...props } = this.props;\n    let newProps = { ...props };\n    let { helmetData } = props;\n\n    if (children) {\n      newProps = this.mapChildrenToProps(children, newProps);\n    }\n\n    if (helmetData && !(helmetData instanceof HelmetData)) {\n      helmetData = new HelmetData(helmetData.context, helmetData.instances);\n    }\n\n    return helmetData ? (\n      // eslint-disable-next-line react/jsx-props-no-spreading\n      <Dispatcher {...newProps} context={helmetData.value} helmetData={undefined} />\n    ) : (\n      <Context.Consumer>\n        {(\n          context // eslint-disable-next-line react/jsx-props-no-spreading\n        ) => <Dispatcher {...newProps} context={context} />}\n      </Context.Consumer>\n    );\n  }\n}\n", "import map from 'lodash-es/map';\nimport unescape from 'lodash-es/unescape';\nimport type { FC } from 'react';\nimport { Helmet } from 'react-helmet-async';\n\nexport interface HeaderProps {\n  title?: string;\n  description?: string;\n  keywords?: string[];\n  ogImage?: string;\n  ogVideo?: string;\n  noIndex?: boolean;\n  noFollow?: boolean;\n  customMetas?: {\n    name: string;\n    content: string;\n  }[];\n}\n\nexport const Header: FC<HeaderProps> = ({\n  title,\n  description,\n  keywords,\n  ogImage,\n  ogVideo,\n  noIndex,\n  noFollow,\n  customMetas,\n}) => {\n  let robots: string | undefined;\n\n  if (noIndex && noFollow) {\n    robots = 'noindex, nofollow';\n  } else if (noIndex) {\n    robots = 'noindex';\n  } else if (noFollow) {\n    robots = 'nofollow';\n  }\n\n  return (\n    // @ts-ignore - Need to update to latest to support children type with React 18.\n    <Helmet>\n      {!!title && <title>{unescape(title)}</title>}\n      {!!title && <meta property=\"og:title\" content={unescape(title)} />}\n      {!!description && <meta name=\"description\" content={unescape(description)} />}\n      {!!description && <meta property=\"og:description\" content={unescape(description)} />}\n      {!!keywords && <meta name=\"keywords\" content={unescape(keywords.join(','))} />}\n      {!!ogImage && <meta property=\"og:image\" content={ogImage} />}\n      {!!ogImage && <meta property=\"og:image:secure_url\" content={ogImage} />}\n      {!!ogVideo && <meta property=\"og:video\" content={ogVideo} />}\n      {!!ogVideo && <meta property=\"og:video:secure_url\" content={ogVideo} />}\n      {!!robots && <meta name=\"robots\" content={robots} />}\n      {!!customMetas &&\n        map(customMetas, customMeta => (\n          <meta key={customMeta.name} name={customMeta.name} content={customMeta.content} />\n        ))}\n    </Helmet>\n  );\n};\n\nHeader.displayName = 'Header';\n", "import baseKeys from './_baseKeys.js';\nimport getTag from './_getTag.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isArrayLike from './isArrayLike.js';\nimport isBuffer from './isBuffer.js';\nimport isPrototype from './_isPrototype.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n    setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n  if (value == null) {\n    return true;\n  }\n  if (isArrayLike(value) &&\n      (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n        isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n    return !value.length;\n  }\n  var tag = getTag(value);\n  if (tag == mapTag || tag == setTag) {\n    return !value.size;\n  }\n  if (isPrototype(value)) {\n    return !baseKeys(value).length;\n  }\n  for (var key in value) {\n    if (hasOwnProperty.call(value, key)) {\n      return false;\n    }\n  }\n  return true;\n}\n\nexport default isEmpty;\n", "import { cx } from '@emotion/css';\nimport isEmpty from 'lodash-es/isEmpty';\nimport isNil from 'lodash-es/isNil';\nimport type { CSSProperties, ReactElement, ReactNode } from 'react';\nimport { forwardRef } from 'react';\n\nimport type { Device } from '../../constants';\nimport { Alignment, BackgroundColor, mobileMaxWidth, VerticalAlignment } from '../../constants';\nimport { useIsMobile } from '../../hooks';\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps, Buttons, ImageSources } from '../../types';\nimport {\n  alignmentCss,\n  dataSetToAttributes,\n  getBackgroundClassName,\n  mobileAlignmentCss,\n  useWindowSize,\n} from '../../utils';\nimport { BlockBoundary } from '../BlockBoundary';\nimport type { CarouselProps } from '../Carousel';\nimport type { CarouselV3Props } from '../CarouselV3';\nimport { IconButton } from '../IconButton';\nimport { IconButtonSize } from '../IconButton/IconButton.types';\nimport type { MediaProps } from '../Media';\nimport { Picture } from '../Picture';\nimport { Social } from '../Social';\nimport { Video } from '../Video';\nimport { HeroSize } from './Hero.constants';\nimport {\n  alignItemsEndCss,\n  alignItemsStartCss,\n  backgroundCss,\n  bodyCss,\n  boundaryCss,\n  callsToActionWrapperCss,\n  compactBoundaryCss,\n  curtainCss,\n  cutoffWithMediaPx,\n  eyebrowCss,\n  fitWindowCss,\n  footerCss,\n  headerCss,\n  heroCss,\n  heroCurtainOpacityCssVar,\n  heroMediaCss,\n  heroScrollButtonCss,\n  heroScrollButtonWrapCss,\n  heroSocialContainerCss,\n  heroSplitCss,\n  heroTitleContainerCss,\n  reverseSplitCss,\n  splitItemCss,\n  splitMediaCss,\n  splitMediaItemCss,\n  subTitleCss,\n  textContentCss,\n  titleCss,\n} from './Hero.styled';\nimport { HeroHeader } from './HeroHeader';\nimport { HeroMedia } from './HeroMedia';\n\nexport type ForegroundMediaProps = MediaProps | CarouselV3Props | CarouselProps;\n\nexport type HeroBreakTemplate = 'Straight' | 'Default';\n\nexport const BackgroundMediaLayout = {\n  FullScreen: 'Full screen',\n  Start: '50% start',\n  End: '50% end',\n} as const;\n\nexport type BackgroundMediaLayout =\n  (typeof BackgroundMediaLayout)[keyof typeof BackgroundMediaLayout];\n\nexport interface HeroProps extends BaseComponentProps {\n  wrapMedia?: Device;\n  body?: ReactNode;\n  callsToAction?: Buttons;\n  foregroundMedia?: ReactElement<ForegroundMediaProps>;\n  backgroundVideoSource?: string;\n  mobileBackgroundVideoSource?: string;\n  curtainOpacityPercentage?: number;\n  fitWindow?: boolean;\n  backgroundColor?: BackgroundColor;\n  eyebrow?: ReactNode;\n  title: ReactNode;\n  header?: ReactNode | Date;\n  textAlign?: Alignment;\n  textAlignMobile?: Alignment;\n  verticalTextAlign?: VerticalAlignment;\n  bgImgSrcs?: ImageSources;\n  headerImgSrcs?: ImageSources;\n  headerImgAltText?: string;\n  /** Hero foreground media sources. */\n  imgSrcs?: ImageSources;\n  imgAltText?: string;\n  shareable?: boolean;\n  footer?: ReactNode;\n  showMediaMobile?: boolean;\n  anchorId?: string;\n  eyebrowDataset?: DOMStringMap;\n  titleDataset?: DOMStringMap;\n  bodyDataset?: DOMStringMap;\n  headerDataset?: DOMStringMap;\n  postChildren?: ReactNode;\n  size?: HeroSize;\n  subTitle?: ReactNode;\n  subTitleDataset?: DOMStringMap;\n  showScrollButton?: boolean;\n  onScrollDownButtonClick?: () => void;\n  backgroundMediaLayout?: BackgroundMediaLayout;\n}\n\nexport const Hero = forwardRef<HTMLElement, HeroProps>((props, ref) => {\n  useMotifStyles(MotifComponent.HERO);\n\n  const {\n    backgroundVideoSource,\n    mobileBackgroundVideoSource,\n    body,\n    callsToAction,\n    fitWindow = false,\n    foregroundMedia,\n    curtainOpacityPercentage: defaultCurtainOpacityPercentage,\n    headerImgSrcs,\n    headerImgAltText,\n    eyebrow,\n    title,\n    backgroundColor = BackgroundColor.Black,\n    header,\n    bgImgSrcs,\n    imgSrcs,\n    // Note that we do not set a default for horizontal text align. This\n    // is _intentional_. Reasoning: when we have a media, left-align text.\n    // When we don't center align text. Therefore, use undefined to mean\n    // \"default behavior\"\n    textAlign,\n    textAlignMobile,\n    verticalTextAlign = VerticalAlignment.Middle,\n    shareable = false,\n    className,\n    footer,\n    anchorId,\n    eyebrowDataset,\n    titleDataset,\n    bodyDataset,\n    headerDataset,\n    postChildren,\n    showMediaMobile,\n    wrapMedia,\n    size,\n    subTitle,\n    subTitleDataset,\n    showScrollButton,\n    onScrollDownButtonClick,\n    backgroundMediaLayout = BackgroundMediaLayout.FullScreen,\n  } = props;\n\n  const hasMedia = !!(foregroundMedia || imgSrcs);\n\n  const { width } = useWindowSize();\n\n  const isMobile = useIsMobile();\n\n  // There's a resolution where the media does not look good and squishes\n  // the text too hard. So in this case we have to hide this.\n  // NOTE: We aren't doing this in CSS to not affect the grid layout\n  // when the media isn't shown.\n  const hideMedia = !!width && width > mobileMaxWidth && width < cutoffWithMediaPx;\n  const hasBackgroundMedia = !isEmpty(bgImgSrcs) || !isEmpty(backgroundVideoSource);\n\n  const isCompact = size === HeroSize.Compact;\n\n  let curtainOpacityPercentage = defaultCurtainOpacityPercentage;\n\n  if (isNil(curtainOpacityPercentage)) {\n    curtainOpacityPercentage = hasBackgroundMedia ? 75 : 0;\n  }\n\n  const isSplitBlock =\n    backgroundMediaLayout === BackgroundMediaLayout.Start ||\n    backgroundMediaLayout === BackgroundMediaLayout.End;\n\n  let backgroundContent: ReactNode;\n\n  if (bgImgSrcs) {\n    backgroundContent = (\n      <Picture\n        imgSrcs={bgImgSrcs}\n        className={cx({\n          [splitItemCss]: isSplitBlock,\n          [splitMediaItemCss]: isSplitBlock,\n        })}\n        imgClassName={cx(backgroundCss, {\n          [splitMediaCss]: isSplitBlock,\n        })}\n        fetchPriority=\"high\"\n      />\n    );\n  } else if (backgroundVideoSource) {\n    backgroundContent = (\n      <div\n        className={cx({\n          [splitItemCss]: isSplitBlock,\n          [splitMediaItemCss]: isSplitBlock,\n        })}\n      >\n        <Video\n          mobileSource={mobileBackgroundVideoSource}\n          className={cx(backgroundCss, {\n            [splitMediaCss]: isSplitBlock,\n          })}\n          source={backgroundVideoSource}\n          isBackgroundVideo\n        />\n      </div>\n    );\n  }\n\n  const alignMobileCss = mobileAlignmentCss[textAlignMobile ?? Alignment.Start];\n  const defaultTextAlign = hasMedia ? Alignment.Start : Alignment.Center;\n  const contentAlignmentCss = alignmentCss[textAlign ?? defaultTextAlign];\n  const verticalAlignCss = cx({\n    [alignItemsStartCss]: verticalTextAlign === VerticalAlignment.Top,\n    [alignItemsEndCss]: verticalTextAlign === VerticalAlignment.Bottom,\n  });\n\n  const showCurtain = !!curtainOpacityPercentage && !isSplitBlock;\n\n  return (\n    <section\n      ref={ref}\n      className={cx(\n        MotifComponent.HERO,\n        getBackgroundClassName(backgroundColor),\n        heroCss,\n        {\n          [fitWindowCss]: fitWindow,\n          [heroSplitCss]: isSplitBlock,\n          [reverseSplitCss]: backgroundMediaLayout === BackgroundMediaLayout.End,\n        },\n        className\n      )}\n      id={anchorId}\n      data-curtain={showCurtain}\n    >\n      {backgroundContent}\n      {showCurtain && (\n        <div\n          data-testid=\"sdsm-hero-curtain\"\n          className={cx(backgroundCss, curtainCss)}\n          style={\n            {\n              [heroCurtainOpacityCssVar]: curtainOpacityPercentage / 100,\n            } as CSSProperties\n          }\n        />\n      )}\n      <BlockBoundary\n        data-test-id=\"sdsm-hero-block-content\"\n        className={cx(\n          boundaryCss,\n          verticalAlignCss,\n          { [fitWindowCss]: fitWindow },\n          {\n            [compactBoundaryCss]: isCompact,\n            [splitItemCss]: isSplitBlock,\n          }\n        )}\n      >\n        <div\n          data-test-id=\"sdsm-hero-text\"\n          className={cx(alignMobileCss, contentAlignmentCss, textContentCss)}\n        >\n          {(header || headerImgSrcs) && (\n            <HeroHeader\n              content={header}\n              iconSrcs={headerImgSrcs}\n              iconAltText={headerImgAltText}\n              textAlignMobile={textAlignMobile}\n              headerDataset={headerDataset}\n              className={headerCss}\n            />\n          )}\n          {eyebrow && (\n            <div className={eyebrowCss} {...dataSetToAttributes(eyebrowDataset)}>\n              {eyebrow}\n            </div>\n          )}\n          {title && (\n            <div className={heroTitleContainerCss}>\n              <h1\n                className={cx(titleCss, contentAlignmentCss, alignMobileCss)}\n                {...dataSetToAttributes(titleDataset)}\n              >\n                {title}\n              </h1>\n            </div>\n          )}\n          {subTitle && (\n            <div className={subTitleCss} {...dataSetToAttributes(subTitleDataset)}>\n              {subTitle}\n            </div>\n          )}\n          {body && (\n            <div\n              className={cx(alignMobileCss, contentAlignmentCss, bodyCss)}\n              {...dataSetToAttributes(bodyDataset)}\n            >\n              {body}\n            </div>\n          )}\n          {callsToAction && (\n            <div className={cx(alignMobileCss, callsToActionWrapperCss)}>{callsToAction}</div>\n          )}\n          {footer && <footer className={footerCss}>{footer}</footer>}\n        </div>\n        {hasMedia && !hideMedia && !isSplitBlock && (\n          <HeroMedia\n            className={heroMediaCss}\n            foregroundMedia={foregroundMedia}\n            imgSrcs={imgSrcs}\n            wrapMedia={wrapMedia}\n            showMediaMobile={showMediaMobile}\n            size={size}\n          />\n        )}\n        {fitWindow && showScrollButton && !isMobile && (\n          <div className={heroScrollButtonWrapCss}>\n            <IconButton\n              size={IconButtonSize.SMALL}\n              iconName=\"chevron-down\"\n              className={heroScrollButtonCss}\n              onClick={onScrollDownButtonClick}\n            />\n          </div>\n        )}\n      </BlockBoundary>\n      {shareable && <Social className={heroSocialContainerCss} title={title?.toString() ?? ''} />}\n      {postChildren}\n    </section>\n  );\n});\n\nHero.displayName = 'Hero';\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useEffect, useState } from 'react';\nimport { LinkedinIcon, LinkedinShareButton, TwitterIcon, TwitterShareButton } from 'react-share';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps } from '../../types';\n\ninterface SocialProps extends BaseComponentProps {\n  title: string;\n}\n\nexport const Social: FC<SocialProps> = ({ title, ...props }) => {\n  useMotifStyles(MotifComponent.SOCIAL);\n  const [shareUrl, setShareUrl] = useState<string>('');\n  useMotifStyles(MotifComponent.SOCIAL);\n\n  useEffect(() => {\n    setShareUrl(window.location.origin + window.location.pathname);\n  }, []);\n\n  return (\n    <article\n      {...props}\n      className={cx(MotifComponent.SOCIAL, props.className)}\n      data-test-id=\"sdsm-social\"\n    >\n      <LinkedinShareButton title={title} url={shareUrl}>\n        <LinkedinIcon size={32} round />\n      </LinkedinShareButton>\n      <TwitterShareButton title={title} url={shareUrl}>\n        <TwitterIcon size={32} round />\n      </TwitterShareButton>\n    </article>\n  );\n};\n\nSocial.displayName = 'Social';\n", "import React from 'react';\n\ntype Props = Omit<React.SVGProps<SVGSVGElement>, 'width' | 'height'> & {\n  bgStyle?: React.CSSProperties;\n  borderRadius?: number;\n  iconFillColor?: string;\n  round?: boolean;\n  size?: number | string;\n};\n\ntype IconConfig = {\n  color: string;\n  networkName: string;\n  /** SVG path */\n  path: string;\n};\n\nexport default function createIcon(iconConfig: IconConfig) {\n  const Icon: React.FC<Props> = ({\n    bgStyle = {},\n    borderRadius = 0,\n    iconFillColor = 'white',\n    round = false,\n    size = 64,\n    ...rest\n  }) => (\n    <svg viewBox=\"0 0 64 64\" width={size} height={size} {...rest}>\n      {round ? (\n        <circle cx=\"32\" cy=\"32\" r=\"32\" fill={iconConfig.color} style={bgStyle} />\n      ) : (\n        <rect\n          width=\"64\"\n          height=\"64\"\n          rx={borderRadius}\n          ry={borderRadius}\n          fill={iconConfig.color}\n          style={bgStyle}\n        />\n      )}\n\n      <path d={iconConfig.path} fill={iconFillColor} />\n    </svg>\n  );\n\n  return Icon;\n}\n", "import createIcon from './hocs/createIcon';\n\nconst EmailIcon = createIcon({\n  color: '#7f7f7f',\n  networkName: 'email',\n  path: 'M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z',\n});\n\nexport default EmailIcon;\n", "export default function objectToGetParams(object: {\n  [key: string]: string | number | undefined | null;\n}) {\n  const params = Object.entries(object)\n    .filter(([, value]) => value !== undefined && value !== null)\n    .map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);\n\n  return params.length > 0 ? `?${params.join('&')}` : '';\n}\n", "import React, { Ref } from 'react';\nimport cx from 'classnames';\n\ntype NetworkLink<LinkOptions> = (url: string, options: LinkOptions) => string;\n\ntype WindowPosition = 'windowCenter' | 'screenCenter';\n\nconst isPromise = (obj: any): obj is Promise<unknown> =>\n  !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';\n\nconst getBoxPositionOnWindowCenter = (width: number, height: number) => ({\n  left: window.outerWidth / 2 + (window.screenX || window.screenLeft || 0) - width / 2,\n  top: window.outerHeight / 2 + (window.screenY || window.screenTop || 0) - height / 2,\n});\n\nconst getBoxPositionOnScreenCenter = (width: number, height: number) => ({\n  top: (window.screen.height - height) / 2,\n  left: (window.screen.width - width) / 2,\n});\n\nfunction windowOpen(\n  url: string,\n  { height, width, ...configRest }: { height: number; width: number; [key: string]: any },\n  onClose?: (dialog: Window | null) => void,\n) {\n  const config: { [key: string]: string | number } = {\n    height,\n    width,\n    location: 'no',\n    toolbar: 'no',\n    status: 'no',\n    directories: 'no',\n    menubar: 'no',\n    scrollbars: 'yes',\n    resizable: 'no',\n    centerscreen: 'yes',\n    chrome: 'yes',\n    ...configRest,\n  };\n\n  const shareDialog = window.open(\n    url,\n    '',\n    Object.keys(config)\n      .map(key => `${key}=${config[key]}`)\n      .join(', '),\n  );\n\n  if (onClose) {\n    const interval = window.setInterval(() => {\n      try {\n        if (shareDialog === null || shareDialog.closed) {\n          window.clearInterval(interval);\n          onClose(shareDialog);\n        }\n      } catch (e) {\n        /* eslint-disable no-console */\n        console.error(e);\n        /* eslint-enable no-console */\n      }\n    }, 1000);\n  }\n\n  return shareDialog;\n}\n\ninterface CustomProps<LinkOptions> {\n  /**\n   *  Takes a function that returns a Promise to be fulfilled before calling\n   * `onClick`. If you do not return promise, `onClick` is called immediately.\n   */\n  beforeOnClick?: () => Promise<void> | void;\n  children: React.ReactNode;\n  className?: string;\n  /** Disables click action and adds `disabled` class */\n  disabled?: boolean;\n  /**\n   * Style when button is disabled\n   * @default { opacity: 0.6 }\n   */\n  disabledStyle?: React.CSSProperties;\n  forwardedRef?: Ref<HTMLButtonElement>;\n  /**\n   * Passes as the native `title` atribute for the `button` element.\n   */\n  htmlTitle?: HTMLButtonElement['title'];\n  networkName: string;\n  networkLink: NetworkLink<LinkOptions>;\n  onClick?: (event: React.MouseEvent<HTMLButtonElement>, link: string) => void;\n  /**\n   * Takes a function to be called after closing share dialog.\n   */\n  onShareWindowClose?: () => void;\n  openShareDialogOnClick?: boolean;\n  opts: LinkOptions;\n  resetButtonStyle?: boolean;\n  /**\n   * URL of the shared page\n   */\n  url: string;\n  style?: React.CSSProperties;\n  windowWidth?: number;\n  windowHeight?: number;\n  windowPosition?: WindowPosition;\n}\n\nexport type Props<LinkOptions extends Record<string, unknown>> = Omit<\n  React.ButtonHTMLAttributes<HTMLButtonElement>,\n  keyof CustomProps<LinkOptions>\n> &\n  CustomProps<LinkOptions>;\n\nexport default function ShareButton<LinkOptions extends Record<string, unknown>>({\n  beforeOnClick,\n  children,\n  className,\n  disabled,\n  disabledStyle = { opacity: 0.6 },\n  forwardedRef,\n  htmlTitle,\n  networkLink,\n  networkName,\n  onClick,\n  onShareWindowClose,\n  openShareDialogOnClick = true,\n  opts,\n  resetButtonStyle = true,\n  style,\n  url,\n  windowHeight = 400,\n  windowPosition = 'windowCenter',\n  windowWidth = 550,\n  ...rest\n}: Props<LinkOptions>) {\n  const handleClick = async (event: React.MouseEvent<HTMLButtonElement>) => {\n    const link = networkLink(url, opts);\n\n    if (disabled) {\n      return;\n    }\n\n    event.preventDefault();\n\n    if (beforeOnClick) {\n      const returnVal = beforeOnClick();\n\n      if (isPromise(returnVal)) {\n        await returnVal;\n      }\n    }\n\n    if (openShareDialogOnClick) {\n      const windowConfig = {\n        height: windowHeight,\n        width: windowWidth,\n        ...(windowPosition === 'windowCenter'\n          ? getBoxPositionOnWindowCenter(windowWidth, windowHeight)\n          : getBoxPositionOnScreenCenter(windowWidth, windowHeight)),\n      };\n\n      windowOpen(link, windowConfig, onShareWindowClose);\n    }\n\n    if (onClick) {\n      onClick(event, link);\n    }\n  };\n\n  const newClassName = cx(\n    'react-share__ShareButton',\n    {\n      'react-share__ShareButton--disabled': !!disabled,\n      disabled: !!disabled,\n    },\n    className,\n  );\n\n  const newStyle = resetButtonStyle\n    ? {\n        backgroundColor: 'transparent',\n        border: 'none',\n        padding: 0,\n        font: 'inherit',\n        color: 'inherit',\n        cursor: 'pointer',\n        ...style,\n        ...(disabled && disabledStyle),\n      }\n    : {\n        ...style,\n        ...(disabled && disabledStyle),\n      };\n\n  return (\n    <button\n      {...rest}\n      className={newClassName}\n      onClick={handleClick}\n      ref={forwardedRef}\n      style={newStyle}\n      title={htmlTitle}\n    >\n      {children}\n    </button>\n  );\n}\n", "import React, { Ref, forwardRef } from 'react';\n\nimport ShareButton, { Props as ShareButtonProps } from '../ShareButton';\n\nfunction createShareButton<\n  OptionProps extends Record<string, any>,\n  LinkOptions extends Record<string, unknown> = OptionProps,\n>(\n  networkName: string,\n  link: (url: string, options: LinkOptions) => string,\n  optsMap: (props: OptionProps) => LinkOptions,\n  defaultProps: Partial<ShareButtonProps<LinkOptions> & OptionProps>,\n) {\n  type Props = Omit<\n    ShareButtonProps<LinkOptions>,\n    'forwardedRef' | 'networkName' | 'networkLink' | 'opts'\n  > &\n    OptionProps;\n\n  function CreatedButton(props: Props, ref: Ref<HTMLButtonElement>) {\n    const opts = optsMap(props);\n    const passedProps = { ...props };\n\n    // remove keys from passed props that are passed as opts\n    const optsKeys = Object.keys(opts);\n    optsKeys.forEach(key => {\n      delete passedProps[key];\n    });\n\n    return (\n      <ShareButton<LinkOptions>\n        {...defaultProps}\n        {...passedProps}\n        forwardedRef={ref}\n        networkName={networkName}\n        networkLink={link}\n        opts={optsMap(props)}\n      />\n    );\n  }\n\n  CreatedButton.displayName = `ShareButton-${networkName}`;\n\n  return forwardRef(CreatedButton);\n}\n\nexport default createShareButton;\n", "import objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\ntype Options = {\n  body?: string;\n  separator?: string;\n  subject?: string;\n};\n\nfunction emailLink(url: string, { subject, body, separator }: Options) {\n  return 'mailto:' + objectToGetParams({ subject, body: body ? body + separator + url : url });\n}\n\nconst EmailShareButton = createShareButton<Options>(\n  'email',\n  emailLink,\n  props => ({\n    subject: props.subject,\n    body: props.body,\n    separator: props.separator || ' ',\n  }),\n  {\n    openShareDialogOnClick: false,\n    onClick: (_, link: string) => {\n      window.location.href = link;\n    },\n  },\n);\n\nexport default EmailShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst FacebookIcon = createIcon({\n  color: '#0965FE',\n  networkName: 'facebook',\n  path: 'M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z',\n});\n\nexport default FacebookIcon;\n", "import createIcon from './hocs/createIcon';\n\nconst FacebookMessengerIcon = createIcon({\n  color: '#0A7CFF',\n  networkName: 'facebookmessenger',\n  path: 'M 53.066406 21.871094 C 52.667969 21.339844 51.941406 21.179688 51.359375 21.496094 L 37.492188 29.058594 L 28.867188 21.660156 C 28.339844 21.207031 27.550781 21.238281 27.054688 21.730469 L 11.058594 37.726562 C 10.539062 38.25 10.542969 39.09375 11.0625 39.613281 C 11.480469 40.027344 12.121094 40.121094 12.640625 39.839844 L 26.503906 32.28125 L 35.136719 39.679688 C 35.667969 40.132812 36.457031 40.101562 36.949219 39.609375 L 52.949219 23.613281 C 53.414062 23.140625 53.464844 22.398438 53.066406 21.871094 Z M 53.066406 21.871094',\n});\n\nexport default FacebookMessengerIcon;\n", "import objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\ntype Options = {\n  /** Your app's unique identifier. */\n  appId: string;\n  /** The URL to redirect to after a person clicks a button on the dialog.\n   * Required when using URL redirection. */\n  redirectUri?: string;\n  /** A user ID of a recipient. Once the dialog comes up, the sender can\n   * specify additional people as recipients. */\n  to?: string;\n};\n\nfunction facebookMessengerLink(url: string, { appId, redirectUri, to }: Options) {\n  return (\n    'https://www.facebook.com/dialog/send' +\n    objectToGetParams({\n      link: url,\n      redirect_uri: redirectUri || url,\n      app_id: appId,\n      to,\n    })\n  );\n}\n\nconst FacebookMessengerShareButton = createShareButton<Options>(\n  'facebookmessenger',\n  facebookMessengerLink,\n  props => ({\n    appId: props.appId,\n    redirectUri: props.redirectUri,\n    to: props.to,\n  }),\n  {\n    windowWidth: 1000,\n    windowHeight: 820,\n  },\n);\n\nexport default FacebookMessengerShareButton;\n", "class AssertionError extends Error {\n  constructor(message: string) {\n    super(message);\n    this.name = 'AssertionError';\n  }\n}\n\nexport default function assert(value: any, message: string) {\n  if (!value) {\n    throw new AssertionError(message);\n  }\n}\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction facebookLink(url: string, { hashtag }: { hashtag?: string }) {\n  assert(url, 'facebook.url');\n\n  return 'https://www.facebook.com/sharer/sharer.php' + objectToGetParams({ u: url, hashtag });\n}\n\nconst FacebookShareButton = createShareButton<{ hashtag?: string }>(\n  'facebook',\n  facebookLink,\n  props => ({ hashtag: props.hashtag }),\n  {\n    windowWidth: 550,\n    windowHeight: 400,\n  },\n);\n\nexport default FacebookShareButton;\n", "import { useCallback, useEffect, useRef } from 'react';\n\nexport function useIsMounted() {\n  const isMounted = useRef(false);\n\n  useEffect(() => {\n    isMounted.current = true;\n\n    return () => {\n      isMounted.current = false;\n    };\n  }, []);\n\n  return useCallback(() => isMounted.current, []);\n}\n", "import React, { useEffect, useState } from 'react';\nimport cx from 'classnames';\nimport { useIsMounted } from '../hooks/useIsMounted';\n\ntype SocialMediaShareCountProps = Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> & {\n  children?: (shareCount: number) => React.ReactNode;\n  getCount: (url: string, callback: (shareCount?: number) => void) => void;\n  url: string;\n};\n\nexport function SocialMediaShareCount({\n  children = (shareCount: number) => shareCount,\n  className,\n  getCount,\n  url,\n  ...rest\n}: SocialMediaShareCountProps) {\n  const isMounted = useIsMounted();\n  const [count, setCount] = useState<number | undefined>(undefined);\n  const [isLoading, setIsLoading] = useState(false);\n\n  useEffect(() => {\n    setIsLoading(true);\n\n    getCount(url, count => {\n      if (isMounted()) {\n        setCount(count);\n        setIsLoading(false);\n      }\n    });\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [url]);\n\n  return (\n    <span className={cx('react-share__ShareCount', className)} {...rest}>\n      {!isLoading && count !== undefined && children(count)}\n    </span>\n  );\n}\n\nexport default function createShareCount(getCount: SocialMediaShareCountProps['getCount']) {\n  const ShareCount = (props: Omit<SocialMediaShareCountProps, 'getCount'>) => (\n    <SocialMediaShareCount getCount={getCount} {...props} />\n  );\n\n  ShareCount.displayName = `ShareCount(${getCount.name})`;\n\n  return ShareCount;\n}\n", "import jsonp from 'jsonp';\n\nimport createShareCount from './hocs/createShareCount';\n\nfunction getFacebookShareCount(shareUrl: string, callback: (shareCount?: number) => void) {\n  const endpoint = `https://graph.facebook.com/?id=${shareUrl}&fields=og_object{engagement}`;\n\n  jsonp(endpoint, (err, data) => {\n    callback(\n      !err && data && data.og_object && data.og_object.engagement\n        ? data.og_object.engagement.count\n        : undefined,\n    );\n  });\n}\n\nexport default createShareCount(getFacebookShareCount);\n", "import createIcon from './hocs/createIcon';\n\nconst HatenaIcon = createIcon({\n  color: '#009ad9',\n  networkName: 'hatena',\n  path: 'M 36.164062 33.554688 C 34.988281 32.234375 33.347656 31.5 31.253906 31.34375 C 33.125 30.835938 34.476562 30.09375 35.335938 29.09375 C 36.191406 28.09375 36.609375 26.78125 36.609375 25.101562 C 36.628906 23.875 36.332031 22.660156 35.75 21.578125 C 35.160156 20.558594 34.292969 19.71875 33.253906 19.160156 C 32.304688 18.640625 31.175781 18.265625 29.847656 18.042969 C 28.523438 17.824219 26.195312 17.730469 22.867188 17.730469 L 14.769531 17.730469 L 14.769531 47.269531 L 23.113281 47.269531 C 26.46875 47.269531 28.886719 47.15625 30.367188 46.929688 C 31.851562 46.695312 33.085938 46.304688 34.085938 45.773438 C 35.289062 45.148438 36.28125 44.179688 36.933594 42.992188 C 37.597656 41.796875 37.933594 40.402344 37.933594 38.816406 C 37.933594 36.621094 37.347656 34.867188 36.164062 33.554688 Z M 22.257812 24.269531 L 23.984375 24.269531 C 25.988281 24.269531 27.332031 24.496094 28.015625 24.945312 C 28.703125 25.402344 29.042969 26.183594 29.042969 27.285156 C 29.042969 28.390625 28.664062 29.105469 27.9375 29.550781 C 27.210938 29.992188 25.84375 30.199219 23.855469 30.199219 L 22.257812 30.199219 Z M 29.121094 41.210938 C 28.328125 41.691406 26.976562 41.925781 25.078125 41.925781 L 22.257812 41.925781 L 22.257812 35.488281 L 25.195312 35.488281 C 27.144531 35.488281 28.496094 35.738281 29.210938 36.230469 C 29.925781 36.726562 30.304688 37.582031 30.304688 38.832031 C 30.304688 40.078125 29.914062 40.742188 29.105469 41.222656 Z M 29.121094 41.210938 M 46.488281 39.792969 C 44.421875 39.792969 42.742188 41.46875 42.742188 43.535156 C 42.742188 45.605469 44.421875 47.28125 46.488281 47.28125 C 48.554688 47.28125 50.230469 45.605469 50.230469 43.535156 C 50.230469 41.46875 48.554688 39.792969 46.488281 39.792969 Z M 46.488281 39.792969 M 43.238281 17.730469 L 49.738281 17.730469 L 49.738281 37.429688 L 43.238281 37.429688 Z M 43.238281 17.730469 ',\n});\n\nexport default HatenaIcon;\n", "import assert from './utils/assert';\n\nimport createShareButton from './hocs/createShareButton';\n\nfunction hatenaLink(url: string, { title }: { title?: string }) {\n  assert(url, 'hatena.url');\n\n  return `http://b.hatena.ne.jp/add?mode=confirm&url=${url}&title=${title}`;\n}\n\nconst HatenaShareButton = createShareButton<{ title?: string }>(\n  'hatena',\n  hatenaLink,\n  props => ({\n    title: props.title,\n  }),\n  {\n    windowWidth: 660,\n    windowHeight: 460,\n    windowPosition: 'windowCenter',\n  },\n);\n\nexport default HatenaShareButton;\n", "import jsonp from 'jsonp';\n\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareCount from './hocs/createShareCount';\n\nfunction getHatenaShareCount(shareUrl: string, callback: (shareCount?: number) => void) {\n  const url = 'https://bookmark.hatenaapis.com/count/entry';\n\n  jsonp(\n    url +\n      objectToGetParams({\n        url: shareUrl,\n      }),\n    (err, data) => {\n      callback(data ?? undefined);\n    },\n  );\n}\n\nexport default createShareCount(getHatenaShareCount);\n", "import createIcon from './hocs/createIcon';\n\nconst InstapaperIcon = createIcon({\n  color: '#1F1F1F',\n  networkName: 'instapaper',\n  path: 'M35.688 43.012c0 2.425.361 2.785 3.912 3.056V48H24.401v-1.932c3.555-.27 3.912-.63 3.912-3.056V20.944c0-2.379-.36-2.785-3.912-3.056V16H39.6v1.888c-3.55.27-3.912.675-3.912 3.056v22.068h.001z',\n});\n\nexport default InstapaperIcon;\n", "import assert from './utils/assert';\nimport createShareButton from './hocs/createShareButton';\nimport objectToGetParams from './utils/objectToGetParams';\n\nfunction instapaperLink(\n  url: string,\n  { title, description }: { title?: string; description?: string },\n) {\n  assert(url, 'instapaper.url');\n\n  return (\n    'http://www.instapaper.com/hello2' +\n    objectToGetParams({\n      url,\n      title,\n      description,\n    })\n  );\n}\n\nconst InstapaperShareButton = createShareButton<{ title?: string; description?: string }>(\n  'instapaper',\n  instapaperLink,\n  props => ({\n    title: props.title,\n    description: props.description,\n  }),\n  {\n    windowWidth: 500,\n    windowHeight: 500,\n    windowPosition: 'windowCenter',\n  },\n);\n\nexport default InstapaperShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst LineIcon = createIcon({\n  color: '#00b800',\n  networkName: 'line',\n  path: 'M52.62 30.138c0 3.693-1.432 7.019-4.42 10.296h.001c-4.326 4.979-14 11.044-16.201 11.972-2.2.927-1.876-.591-1.786-1.112l.294-1.765c.069-.527.142-1.343-.066-1.865-.232-.574-1.146-.872-1.817-1.016-9.909-1.31-17.245-8.238-17.245-16.51 0-9.226 9.251-16.733 20.62-16.733 11.37 0 20.62 7.507 20.62 16.733zM27.81 25.68h-1.446a.402.402 0 0 0-.402.401v8.985c0 .221.18.4.402.4h1.446a.401.401 0 0 0 .402-.4v-8.985a.402.402 0 0 0-.402-.401zm9.956 0H36.32a.402.402 0 0 0-.402.401v5.338L31.8 25.858a.39.39 0 0 0-.031-.04l-.002-.003-.024-.025-.008-.007a.313.313 0 0 0-.032-.026.255.255 0 0 1-.021-.014l-.012-.007-.021-.012-.013-.006-.023-.01-.013-.005-.024-.008-.014-.003-.023-.005-.017-.002-.021-.003-.021-.002h-1.46a.402.402 0 0 0-.402.401v8.985c0 .221.18.4.402.4h1.446a.401.401 0 0 0 .402-.4v-5.337l4.123 5.568c.028.04.063.072.101.099l.004.003a.236.236 0 0 0 .025.015l.012.006.019.01a.154.154 0 0 1 .019.008l.012.004.028.01.005.001a.442.442 0 0 0 .104.013h1.446a.4.4 0 0 0 .401-.4v-8.985a.402.402 0 0 0-.401-.401zm-13.442 7.537h-3.93v-7.136a.401.401 0 0 0-.401-.401h-1.447a.4.4 0 0 0-.401.401v8.984a.392.392 0 0 0 .123.29c.072.068.17.111.278.111h5.778a.4.4 0 0 0 .401-.401v-1.447a.401.401 0 0 0-.401-.401zm21.429-5.287c.222 0 .401-.18.401-.402v-1.446a.401.401 0 0 0-.401-.402h-5.778a.398.398 0 0 0-.279.113l-.005.004-.006.008a.397.397 0 0 0-.111.276v8.984c0 .108.043.206.112.278l.005.006a.401.401 0 0 0 .284.117h5.778a.4.4 0 0 0 .401-.401v-1.447a.401.401 0 0 0-.401-.401h-3.93v-1.519h3.93c.222 0 .401-.18.401-.402V29.85a.401.401 0 0 0-.401-.402h-3.93V27.93h3.93z',\n});\n\nexport default LineIcon;\n", "import assert from './utils/assert';\nimport createShareButton from './hocs/createShareButton';\nimport objectToGetParams from './utils/objectToGetParams';\n\nfunction lineLink(url: string, { title }: { title?: string }) {\n  assert(url, 'line.url');\n\n  return (\n    'https://social-plugins.line.me/lineit/share' +\n    objectToGetParams({\n      url,\n      text: title,\n    })\n  );\n}\n\nconst LineShareButton = createShareButton<{ title?: string }>(\n  'line',\n  lineLink,\n  props => ({\n    title: props.title,\n  }),\n  {\n    windowWidth: 500,\n    windowHeight: 500,\n  },\n);\n\nexport default LineShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst LinkedinIcon = createIcon({\n  color: '#0077B5',\n  networkName: 'linkedin',\n  path: 'M20.4,44h5.4V26.6h-5.4V44z M23.1,18c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1 c1.7,0,3.1-1.4,3.1-3.1C26.2,19.4,24.8,18,23.1,18z M39.5,26.2c-2.6,0-4.4,1.4-5.1,2.8h-0.1v-2.4h-5.2V44h5.4v-8.6 c0-2.3,0.4-4.5,3.2-4.5c2.8,0,2.8,2.6,2.8,4.6V44H46v-9.5C46,29.8,45,26.2,39.5,26.2z',\n});\n\nexport default LinkedinIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\ntype Options = {\n  /** The url-encoded title value that you wish you use. */\n  title?: string;\n  /** The url-encoded description that you wish you use. */\n  summary?: string;\n  /** The url-encoded source of the content (e.g. your website or application name) */\n  source?: string;\n};\n\nfunction linkedinLink(url: string, { title, summary, source }: Options) {\n  assert(url, 'linkedin.url');\n\n  return (\n    'https://linkedin.com/shareArticle' +\n    objectToGetParams({ url, mini: 'true', title, summary, source })\n  );\n}\n\nconst LinkedinShareButton = createShareButton<Options>(\n  'linkedin',\n  linkedinLink,\n  ({ title, summary, source }) => ({ title, summary, source }),\n  {\n    windowWidth: 750,\n    windowHeight: 600,\n  },\n);\n\nexport default LinkedinShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst LivejournalIcon = createIcon({\n  color: '#21A5D8',\n  networkName: 'livejournal',\n  path: 'M18.3407821,28.1764706 L21.9441341,31.789916 L33.0055865,42.882353 C33.0055865,42.882353 33.0893855,42.9663866 33.0893855,42.9663866 L46.6648046,47 C46.6648046,47 46.6648046,47 46.7486034,47 C46.8324022,47 46.8324022,47 46.9162012,46.9159664 C47,46.8319327 47,46.8319327 47,46.7478991 L42.9776536,33.1344537 C42.9776536,33.1344537 42.9776536,33.1344537 42.8938548,33.0504202 L31.1620111,21.3697479 L31.1620111,21.3697479 L28.1452514,18.2605042 C27.3072626,17.4201681 26.5530726,17 25.7150838,17 C24.2905028,17 23.0335195,18.3445378 21.5251397,19.8571429 C21.273743,20.1092437 20.9385475,20.4453781 20.6871508,20.697479 C20.3519553,21.0336134 20.1005586,21.2857143 19.849162,21.5378151 C18.3407821,22.9663866 17.0837989,24.2268908 17,25.7394958 C17.0837989,26.4957983 17.5027933,27.3361345 18.3407821,28.1764706 Z M39.9012319,39.6134454 C39.7336341,39.4453781 39.4822374,37.6806724 40.2364275,36.8403362 C40.9906174,36.0840337 41.6610084,36 42.1638017,36 C42.3313995,36 42.4989973,36 42.5827961,36 L44.8453659,43.5630253 L43.5883828,44.8235295 L36.0464833,42.5546218 C35.9626843,42.2184874 35.8788855,41.2100841 36.8844722,40.2016807 C37.2196676,39.8655463 37.8900587,39.6134454 38.5604498,39.6134454 C39.147042,39.6134454 39.5660364,39.7815126 39.5660364,39.7815126 C39.6498353,39.8655463 39.8174331,39.8655463 39.8174331,39.7815126 C39.9850307,39.7815126 39.9850307,39.697479 39.9012319,39.6134454 Z',\n});\n\nexport default LivejournalIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction livejournalLink(\n  url: string,\n  { title, description }: { title?: string; description?: string },\n) {\n  assert(url, 'livejournal.url');\n\n  return (\n    'https://www.livejournal.com/update.bml' +\n    objectToGetParams({\n      subject: title,\n      event: description,\n    })\n  );\n}\n\nconst LivejournalShareButton = createShareButton<{ title?: string; description?: string }>(\n  'livejournal',\n  livejournalLink,\n  props => ({\n    title: props.title,\n    description: props.description,\n  }),\n  {\n    windowWidth: 660,\n    windowHeight: 460,\n  },\n);\n\nexport default LivejournalShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst MailruIcon = createIcon({\n  color: '#168DE2',\n  networkName: 'mailru',\n  path: 'M39.7107745,17 C41.6619755,17 43.3204965,18.732852 43.3204965,21.0072202 C43.3204965,23.2815885 41.7595357,25.0144404 39.7107745,25.0144404 C37.7595732,25.0144404 36.1010522,23.2815885 36.1010522,21.0072202 C36.1010522,18.732852 37.7595732,17 39.7107745,17 Z M24.3938451,17 C26.3450463,17 28.0035672,18.732852 28.0035672,21.0072202 C28.0035672,23.2815885 26.4426063,25.0144404 24.3938451,25.0144404 C22.4426439,25.0144404 20.7841229,23.2815885 20.7841229,21.0072202 C20.7841229,18.732852 22.4426439,17 24.3938451,17 Z M51.9057817,43.4259928 C51.7106617,44.0758123 51.4179815,44.6173285 50.9301812,44.9422383 C50.637501,45.1588448 50.2472607,45.267148 49.8570205,45.267148 C49.07654,45.267148 48.3936197,44.833935 48.0033795,44.0758123 L46.2472985,40.7184115 L45.759498,41.2599278 C42.5400162,44.9422383 37.466893,47 32.0035297,47 C26.5401664,47 21.5646034,44.9422383 18.2475614,41.2599278 L17.7597611,40.7184115 L16.00368,44.0758123 C15.6134398,44.833935 14.9305194,45.267148 14.1500389,45.267148 C13.7597986,45.267148 13.3695584,45.1588448 13.0768782,44.9422383 C12.0037176,44.2924187 11.7110374,42.7761733 12.2963978,41.5848375 L16.7841605,33.0288807 C17.1744007,32.270758 17.8573211,31.8375453 18.6378016,31.8375453 C19.0280418,31.8375453 19.4182821,31.9458485 19.7109623,32.1624548 C20.7841229,32.8122743 21.0768031,34.3285197 20.4914427,35.5198555 L20.1012025,36.2779783 L20.2963226,36.602888 C22.4426439,39.9602888 27.0279667,42.234657 31.9059697,42.234657 C36.7839727,42.234657 41.3692955,40.068592 43.5156167,36.602888 L43.7107367,36.2779783 L43.3204965,35.6281587 C43.0278165,35.0866425 42.9302562,34.436823 43.1253765,33.7870035 C43.3204965,33.137184 43.6131767,32.5956678 44.100977,32.270758 C44.3936572,32.0541515 44.7838975,31.9458485 45.1741377,31.9458485 C45.9546182,31.9458485 46.6375385,32.3790613 47.0277787,33.137184 L51.5155415,41.6931408 C52.003342,42.234657 52.100902,42.8844765 51.9057817,43.4259928 Z',\n});\n\nexport default MailruIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction mailruLink(\n  url: string,\n  { title, description, imageUrl }: { title?: string; description?: string; imageUrl?: string },\n) {\n  assert(url, 'mailru.url');\n\n  return (\n    'https://connect.mail.ru/share' +\n    objectToGetParams({\n      url,\n      title,\n      description,\n      image_url: imageUrl,\n    })\n  );\n}\n\nconst MailruShareButton = createShareButton<{\n  title?: string;\n  description?: string;\n  imageUrl?: string;\n}>(\n  'mailru',\n  mailruLink,\n  props => ({\n    title: props.title,\n    description: props.description,\n    imageUrl: props.imageUrl,\n  }),\n  {\n    windowWidth: 660,\n    windowHeight: 460,\n  },\n);\n\nexport default MailruShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst OKIcon = createIcon({\n  color: '#F97400',\n  networkName: 'ok',\n  path: 'M39,30c-1,0-3,2-7,2s-6-2-7-2c-1.1,0-2,0.9-2,2c0,1,0.6,1.5,1,1.7c1.2,0.7,5,2.3,5,2.3l-4.3,5.4   c0,0-0.8,0.9-0.8,1.6c0,1.1,0.9,2,2,2c1,0,1.5-0.7,1.5-0.7S32,39,32,39c0,0,4.5,5.3,4.5,5.3S37,45,38,45c1.1,0,2-0.9,2-2   c0-0.6-0.8-1.6-0.8-1.6L35,36c0,0,3.8-1.6,5-2.3c0.4-0.3,1-0.7,1-1.7C41,30.9,40.1,30,39,30z M32,15c-3.9,0-7,3.1-7,7s3.1,7,7,7c3.9,0,7-3.1,7-7S35.9,15,32,15z M32,25.5   c-1.9,0-3.5-1.6-3.5-3.5c0-1.9,1.6-3.5,3.5-3.5c1.9,0,3.5,1.6,3.5,3.5C35.5,23.9,33.9,22.5,35,22.5z ',\n});\n\nexport default OKIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction okLink(\n  url: string,\n  { title, description, image }: { title?: string; description?: string; image?: string },\n) {\n  assert(url, 'ok.url');\n\n  return (\n    'https://connect.ok.ru/offer' +\n    objectToGetParams({\n      url,\n      title,\n      description,\n      imageUrl: image,\n    })\n  );\n}\n\nconst OKShareButton = createShareButton<{ title?: string; description?: string; image?: string }>(\n  'ok',\n  okLink,\n  props => ({\n    title: props.title,\n    description: props.description,\n    image: props.image,\n  }),\n  {\n    windowWidth: 588,\n    windowHeight: 480,\n    windowPosition: 'screenCenter',\n  },\n);\n\nexport default OKShareButton;\n", "import jsonp from 'jsonp';\n\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareCount from './hocs/createShareCount';\n\ndeclare global {\n  interface Window {\n    OK: {\n      Share: {\n        count: (index: number, _count: number) => void;\n      };\n      callbacks: ((count?: number) => void)[];\n    };\n    ODKL: {\n      updateCount: (index: string, count: string) => void;\n    };\n  }\n}\n\nfunction getOKShareCount(shareUrl: string, callback: (shareCount?: number) => void) {\n  if (!window.OK) {\n    window.OK = {\n      Share: {\n        count: function count(index, _count) {\n          window.OK.callbacks[index]?.(_count);\n        },\n      },\n      callbacks: [],\n    };\n  }\n\n  const url = 'https://connect.ok.ru/dk';\n  const index = window.OK.callbacks.length;\n\n  window.ODKL = {\n    updateCount(index, count) {\n      const callbackIndex = index === '' ? 0 : parseInt(index.replace('react-share-', ''), 10);\n      window.OK.callbacks[callbackIndex]?.(count === '' ? undefined : parseInt(count, 10));\n    },\n  };\n  window.OK.callbacks.push(callback);\n\n  return jsonp(\n    url +\n      objectToGetParams({\n        'st.cmd': 'extLike',\n        uid: `react-share-${index}`,\n        ref: shareUrl,\n      }),\n  );\n}\n\nexport default createShareCount(getOKShareCount);\n", "import createIcon from './hocs/createIcon';\n\nconst PinterestIcon = createIcon({\n  color: '#E60023',\n  networkName: 'pinterest',\n  path: 'M32,16c-8.8,0-16,7.2-16,16c0,6.6,3.9,12.2,9.6,14.7c0-1.1,0-2.5,0.3-3.7 c0.3-1.3,2.1-8.7,2.1-8.7s-0.5-1-0.5-2.5c0-2.4,1.4-4.1,3.1-4.1c1.5,0,2.2,1.1,2.2,2.4c0,1.5-0.9,3.7-1.4,5.7 c-0.4,1.7,0.9,3.1,2.5,3.1c3,0,5.1-3.9,5.1-8.5c0-3.5-2.4-6.1-6.7-6.1c-4.9,0-7.9,3.6-7.9,7.7c0,1.4,0.4,2.4,1.1,3.1 c0.3,0.3,0.3,0.5,0.2,0.9c-0.1,0.3-0.3,1-0.3,1.3c-0.1,0.4-0.4,0.6-0.8,0.4c-2.2-0.9-3.3-3.4-3.3-6.1c0-4.5,3.8-10,11.4-10 c6.1,0,10.1,4.4,10.1,9.2c0,6.3-3.5,11-8.6,11c-1.7,0-3.4-0.9-3.9-2c0,0-0.9,3.7-1.1,4.4c-0.3,1.2-1,2.5-1.6,3.4 c1.4,0.4,3,0.7,4.5,0.7c8.8,0,16-7.2,16-16C48,23.2,40.8,16,32,16z',\n});\n\nexport default PinterestIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\ninterface PinterestShareProps {\n  media: string;\n  description?: string;\n  pinId?: string;\n}\n\nfunction pinterestLink(url: string, { media, description, pinId }: PinterestShareProps) {\n  if (pinId) {\n    return `https://pinterest.com/pin/${pinId}/repin/x/`;\n  }\n\n  assert(url, 'pinterest.url');\n  assert(media, 'pinterest.media');\n\n  return (\n    'https://pinterest.com/pin/create/button/' +\n    objectToGetParams({\n      url,\n      media,\n      description,\n    })\n  );\n}\n\nconst PinterestShareButton = createShareButton<PinterestShareProps>(\n  'pinterest',\n  pinterestLink,\n  props => ({\n    media: props.media,\n    description: props.description,\n    pinId: props.pinId,\n  }),\n  {\n    windowWidth: 1000,\n    windowHeight: 730,\n  },\n);\n\nexport default PinterestShareButton;\n", "import jsonp from 'jsonp';\n\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareCount from './hocs/createShareCount';\n\nfunction getPinterestShareCount(shareUrl: string, callback: (shareCount?: number) => void) {\n  const url = 'https://api.pinterest.com/v1/urls/count.json';\n\n  jsonp(\n    url +\n      objectToGetParams({\n        url: shareUrl,\n      }),\n    (err, data) => {\n      callback(data ? data.count : undefined);\n    },\n  );\n}\n\nexport default createShareCount(getPinterestShareCount);\n", "import createIcon from './hocs/createIcon';\n\nconst PocketIcon = createIcon({\n  color: '#EF3F56',\n  networkName: 'pocket',\n  path: 'M41.084 29.065l-7.528 7.882a2.104 2.104 0 0 1-1.521.666 2.106 2.106 0 0 1-1.522-.666l-7.528-7.882c-.876-.914-.902-2.43-.065-3.384.84-.955 2.228-.987 3.1-.072l6.015 6.286 6.022-6.286c.88-.918 2.263-.883 3.102.071.841.938.82 2.465-.06 3.383l-.015.002zm6.777-10.976C47.463 16.84 46.361 16 45.14 16H18.905c-1.2 0-2.289.82-2.716 2.044-.125.363-.189.743-.189 1.125v10.539l.112 2.096c.464 4.766 2.73 8.933 6.243 11.838.06.053.125.102.19.153l.04.033c1.882 1.499 3.986 2.514 6.259 3.014a14.662 14.662 0 0 0 6.13.052c.118-.042.235-.065.353-.087.03 0 .065-.022.098-.042a15.395 15.395 0 0 0 6.011-2.945l.039-.045.18-.153c3.502-2.902 5.765-7.072 6.248-11.852L48 29.674v-10.52c0-.366-.041-.728-.161-1.08l.022.015z',\n});\n\nexport default PocketIcon;\n", "import assert from './utils/assert';\nimport createShareButton from './hocs/createShareButton';\nimport objectToGetParams from './utils/objectToGetParams';\n\nfunction pocketLink(url: string, { title }: { title?: string }) {\n  assert(url, 'pocket.url');\n\n  return (\n    'https://getpocket.com/save' +\n    objectToGetParams({\n      url,\n      title,\n    })\n  );\n}\n\nconst PocketShareButton = createShareButton<{ title?: string }>(\n  'pocket',\n  pocketLink,\n  props => ({\n    title: props.title,\n  }),\n  {\n    windowWidth: 500,\n    windowHeight: 500,\n  },\n);\n\nexport default PocketShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst RedditIcon = createIcon({\n  color: '#FF5700',\n  networkName: 'reddit',\n  path: 'M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.96875 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344',\n});\n\nexport default RedditIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction redditLink(url: string, { title }: { title?: string }) {\n  assert(url, 'reddit.url');\n\n  return (\n    'https://www.reddit.com/submit' +\n    objectToGetParams({\n      url,\n      title,\n    })\n  );\n}\n\nconst RedditShareButton = createShareButton<{ title?: string }>(\n  'reddit',\n  redditLink,\n  props => ({\n    title: props.title,\n  }),\n  {\n    windowWidth: 660,\n    windowHeight: 460,\n    windowPosition: 'windowCenter',\n  },\n);\n\nexport default RedditShareButton;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction gabLink(url: string, { title }: { title?: string }) {\n  assert(url, 'gab.url');\n\n  return (\n    'https://gab.com/compose' +\n    objectToGetParams({\n      url,\n      text: title,\n    })\n  );\n}\n\nconst GabShareButton = createShareButton<{ title?: string }>(\n  'gab',\n  gabLink,\n  props => ({\n    title: props.title,\n  }),\n  {\n    windowWidth: 660,\n    windowHeight: 640,\n    windowPosition: 'windowCenter',\n  },\n);\n\nexport default GabShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst GabIcon = createIcon({\n  color: '#00d178',\n  networkName: 'gab',\n  path: 'm17.0506,23.97457l5.18518,0l0,14.23933c0,6.82699 -3.72695,10.09328 -9.33471,10.09328c-2.55969,0 -4.82842,-0.87286 -6.22084,-2.0713l2.07477,-3.88283c1.19844,0.81051 2.33108,1.29543 3.85511,1.29543c2.75366,0 4.44049,-1.97432 4.44049,-4.82149l0,-0.87286c-1.16728,1.39242 -2.81947,2.0713 -4.63446,2.0713c-4.44048,0 -7.81068,-3.68885 -7.81068,-8.28521c0,-4.59289 3.37019,-8.28174 7.81068,-8.28174c1.81499,0 3.46718,0.67888 4.63446,2.0713l0,-1.55521zm-3.62997,11.39217c1.97777,0 3.62997,-1.6522 3.62997,-3.62652c0,-1.97432 -1.6522,-3.62305 -3.62997,-3.62305c-1.97778,0 -3.62997,1.64873 -3.62997,3.62305c0,1.97432 1.65219,3.62652 3.62997,3.62652zm25.7077,4.13913l-5.18518,0l0,-1.29197c-1.00448,1.13264 -2.3969,1.81152 -4.21188,1.81152c-3.62997,0 -5.63893,-2.52504 -5.63893,-5.4034c0,-4.27076 5.251,-5.85715 9.78846,-4.49937c-0.09698,-1.39241 -0.9733,-2.39343 -2.78829,-2.39343c-1.26426,0 -2.72248,0.48492 -3.62997,1.00102l-1.5552,-3.72003c1.19844,-0.77587 3.40136,-1.55174 5.96452,-1.55174c3.78931,0 7.25648,2.13365 7.25648,7.95962l0,8.08777zm-5.18518,-6.14809c-2.42806,-0.77587 -4.66563,-0.3533 -4.66563,1.36124c0,1.00101 0.84168,1.6799 1.84616,1.6799c1.20191,0 2.56315,-0.96984 2.81947,-3.04115zm13.00626,-17.66495l0,9.83695c1.16727,-1.39242 2.81946,-2.0713 4.63445,-2.0713c4.44048,0 7.81068,3.68885 7.81068,8.28174c0,4.59636 -3.37019,8.28521 -7.81068,8.28521c-1.81499,0 -3.46718,-0.67888 -4.63445,-2.0713l0,1.55174l-5.18519,0l0,-23.81304l5.18519,0zm3.62997,19.67391c1.97777,0 3.62997,-1.6522 3.62997,-3.62652c0,-1.97432 -1.6522,-3.62305 -3.62997,-3.62305c-1.97778,0 -3.62997,1.64873 -3.62997,3.62305c0,1.97432 1.65219,3.62652 3.62997,3.62652zm0,0',\n});\n\nexport default GabIcon;\n", "import jsonp from 'jsonp';\n\nimport createShareCount from './hocs/createShareCount';\n\nfunction getRedditShareCount(shareUrl: string, callback: (shareCount?: number) => void) {\n  const endpoint = `https://www.reddit.com/api/info.json?limit=1&url=${shareUrl}`;\n\n  jsonp(endpoint, { param: 'jsonp' }, (err, response) => {\n    callback(\n      !err &&\n        response &&\n        response.data &&\n        response.data.children.length > 0 &&\n        response.data.children[0].data.score\n        ? response.data.children[0].data.score\n        : undefined,\n    );\n  });\n}\n\nexport default createShareCount(getRedditShareCount);\n", "import createIcon from './hocs/createIcon';\n\nconst TelegramIcon = createIcon({\n  color: '#25A3E3',\n  networkName: 'telegram',\n  path: 'm45.90873,15.44335c-0.6901,-0.0281 -1.37668,0.14048 -1.96142,0.41265c-0.84989,0.32661 -8.63939,3.33986 -16.5237,6.39174c-3.9685,1.53296 -7.93349,3.06593 -10.98537,4.24067c-3.05012,1.1765 -5.34694,2.05098 -5.4681,2.09312c-0.80775,0.28096 -1.89996,0.63566 -2.82712,1.72788c-0.23354,0.27218 -0.46884,0.62161 -0.58825,1.10275c-0.11941,0.48114 -0.06673,1.09222 0.16682,1.5716c0.46533,0.96052 1.25376,1.35737 2.18443,1.71383c3.09051,0.99037 6.28638,1.93508 8.93263,2.8236c0.97632,3.44171 1.91401,6.89571 2.84116,10.34268c0.30554,0.69185 0.97105,0.94823 1.65764,0.95525l-0.00351,0.03512c0,0 0.53908,0.05268 1.06412,-0.07375c0.52679,-0.12292 1.18879,-0.42846 1.79109,-0.99212c0.662,-0.62161 2.45836,-2.38812 3.47683,-3.38552l7.6736,5.66477l0.06146,0.03512c0,0 0.84989,0.59703 2.09312,0.68132c0.62161,0.04214 1.4399,-0.07726 2.14229,-0.59176c0.70766,-0.51626 1.1765,-1.34683 1.396,-2.29506c0.65673,-2.86224 5.00979,-23.57745 5.75257,-27.00686l-0.02107,0.08077c0.51977,-1.93157 0.32837,-3.70159 -0.87096,-4.74991c-0.60054,-0.52152 -1.2924,-0.7498 -1.98425,-0.77965l0,0.00176zm-0.2072,3.29069c0.04741,0.0439 0.0439,0.0439 0.00351,0.04741c-0.01229,-0.00351 0.14048,0.2072 -0.15804,1.32576l-0.01229,0.04214l-0.00878,0.03863c-0.75858,3.50668 -5.15554,24.40802 -5.74203,26.96472c-0.08077,0.34417 -0.11414,0.31959 -0.09482,0.29852c-0.1756,-0.02634 -0.50045,-0.16506 -0.52679,-0.1756l-13.13468,-9.70175c4.4988,-4.33199 9.09945,-8.25307 13.744,-12.43229c0.8218,-0.41265 0.68483,-1.68573 -0.29852,-1.70681c-1.04305,0.24584 -1.92279,0.99564 -2.8798,1.47502c-5.49971,3.2626 -11.11882,6.13186 -16.55882,9.49279c-2.792,-0.97105 -5.57873,-1.77704 -8.15298,-2.57601c2.2336,-0.89555 4.00889,-1.55579 5.75608,-2.23009c3.05188,-1.1765 7.01687,-2.7042 10.98537,-4.24067c7.94051,-3.06944 15.92667,-6.16346 16.62028,-6.43037l0.05619,-0.02283l0.05268,-0.02283c0.19316,-0.0878 0.30378,-0.09658 0.35471,-0.10009c0,0 -0.01756,-0.05795 -0.00351,-0.04566l-0.00176,0zm-20.91715,22.0638l2.16687,1.60145c-0.93418,0.91311 -1.81743,1.77353 -2.45485,2.38812l0.28798,-3.98957',\n});\n\nexport default TelegramIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction telegramLink(url: string, { title }: { title?: string }) {\n  assert(url, 'telegram.url');\n\n  return (\n    'https://telegram.me/share/url' +\n    objectToGetParams({\n      url,\n      text: title,\n    })\n  );\n}\n\nconst TelegramShareButton = createShareButton<{ title?: string }>(\n  'telegram',\n  telegramLink,\n  props => ({\n    title: props.title,\n  }),\n  {\n    windowWidth: 550,\n    windowHeight: 400,\n  },\n);\n\nexport default TelegramShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst TumblrIcon = createIcon({\n  color: '#34526f',\n  networkName: 'tumblr',\n  path: 'M39.2,41c-0.6,0.3-1.6,0.5-2.4,0.5c-2.4,0.1-2.9-1.7-2.9-3v-9.3h6v-4.5h-6V17c0,0-4.3,0-4.4,0 c-0.1,0-0.2,0.1-0.2,0.2c-0.3,2.3-1.4,6.4-5.9,8.1v3.9h3V39c0,3.4,2.5,8.1,9,8c2.2,0,4.7-1,5.2-1.8L39.2,41z',\n});\n\nexport default TumblrIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction tumblrLink(\n  url: string,\n  {\n    title,\n    caption,\n    tags,\n    posttype,\n  }: { title?: string; caption?: string; tags?: string; posttype?: 'link' | string },\n) {\n  assert(url, 'tumblr.url');\n\n  return (\n    'https://www.tumblr.com/widgets/share/tool' +\n    objectToGetParams({\n      canonicalUrl: url,\n      title,\n      caption,\n      tags,\n      posttype,\n    })\n  );\n}\n\ntype Options = {\n  title?: string;\n  caption?: string;\n  posttype?: 'link' | string;\n};\n\nconst TumblrShareButton = createShareButton<\n  Options & { tags?: string[] },\n  Options & { tags: string }\n>(\n  'tumblr',\n  tumblrLink,\n  props => ({\n    title: props.title,\n    tags: (props.tags || []).join(','),\n    caption: props.caption,\n    posttype: props.posttype || 'link',\n  }),\n  {\n    windowWidth: 660,\n    windowHeight: 460,\n  },\n);\n\nexport default TumblrShareButton;\n", "import jsonp from 'jsonp';\n\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareCount from './hocs/createShareCount';\n\nfunction getTumblrShareCount(shareUrl: string, callback: (shareCount?: number) => void) {\n  const endpoint = 'https://api.tumblr.com/v2/share/stats';\n\n  return jsonp(\n    endpoint +\n      objectToGetParams({\n        url: shareUrl,\n      }),\n    (err, data) => {\n      callback(!err && data && data.response ? data.response.note_count : undefined);\n    },\n  );\n}\n\nexport default createShareCount(getTumblrShareCount);\n", "import createIcon from './hocs/createIcon';\n\nconst TwitterIcon = createIcon({\n  color: '#00aced',\n  networkName: 'twitter',\n  path: 'M48,22.1c-1.2,0.5-2.4,0.9-3.8,1c1.4-0.8,2.4-2.1,2.9-3.6c-1.3,0.8-2.7,1.3-4.2,1.6 C41.7,19.8,40,19,38.2,19c-3.6,0-6.6,2.9-6.6,6.6c0,0.5,0.1,1,0.2,1.5c-5.5-0.3-10.3-2.9-13.5-6.9c-0.6,1-0.9,2.1-0.9,3.3 c0,2.3,1.2,4.3,2.9,5.5c-1.1,0-2.1-0.3-3-0.8c0,0,0,0.1,0,0.1c0,3.2,2.3,5.8,5.3,6.4c-0.6,0.1-1.1,0.2-1.7,0.2c-0.4,0-0.8,0-1.2-0.1 c0.8,2.6,3.3,4.5,6.1,4.6c-2.2,1.8-5.1,2.8-8.2,2.8c-0.5,0-1.1,0-1.6-0.1c2.9,1.9,6.4,2.9,10.1,2.9c12.1,0,18.7-10,18.7-18.7 c0-0.3,0-0.6,0-0.8C46,24.5,47.1,23.4,48,22.1z',\n});\n\nexport default TwitterIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction twitterLink(\n  url: string,\n  {\n    title,\n    via,\n    hashtags = [],\n    related = [],\n  }: { title?: string; via?: string; hashtags?: string[]; related?: string[] },\n) {\n  assert(url, 'twitter.url');\n  assert(Array.isArray(hashtags), 'twitter.hashtags is not an array');\n  assert(Array.isArray(related), 'twitter.related is not an array');\n\n  return (\n    'https://twitter.com/intent/tweet' +\n    objectToGetParams({\n      url,\n      text: title,\n      via,\n      hashtags: hashtags.length > 0 ? hashtags.join(',') : undefined,\n      related: related.length > 0 ? related.join(',') : undefined,\n    })\n  );\n}\n\nconst TwitterShareButton = createShareButton<{\n  title?: string;\n  via?: string;\n  hashtags?: string[];\n  related?: string[];\n}>(\n  'twitter',\n  twitterLink,\n  props => ({\n    hashtags: props.hashtags,\n    title: props.title,\n    via: props.via,\n    related: props.related,\n  }),\n  {\n    windowWidth: 550,\n    windowHeight: 400,\n  },\n);\n\nexport default TwitterShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst ViberIcon = createIcon({\n  color: '#7360f2',\n  networkName: 'viber',\n  path: 'm31.0,12.3c9.0,0.2 16.4,6.2 18.0,15.2c0.2,1.5 0.3,3.0 0.4,4.6a1.0,1.0 0 0 1 -0.8,1.2l-0.1,0a1.1,1.1 0 0 1 -1.0,-1.2l0,0c-0.0,-1.2 -0.1,-2.5 -0.3,-3.8a16.1,16.1 0 0 0 -13.0,-13.5c-1.0,-0.1 -2.0,-0.2 -3.0,-0.3c-0.6,-0.0 -1.4,-0.1 -1.6,-0.8a1.1,1.1 0 0 1 0.9,-1.2l0.6,0l0.0,-0.0zm10.6,39.2a19.9,19.9 0 0 1 -2.1,-0.6c-6.9,-2.9 -13.2,-6.6 -18.3,-12.2a47.5,47.5 0 0 1 -7.0,-10.7c-0.8,-1.8 -1.6,-3.7 -2.4,-5.6c-0.6,-1.7 0.3,-3.4 1.4,-4.7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0,-0.0z',\n});\n\nexport default ViberIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction viberLink(url: string, { title, separator }: { title?: string; separator?: string }) {\n  assert(url, 'viber.url');\n  return (\n    'viber://forward' +\n    objectToGetParams({\n      text: title ? title + separator + url : url,\n    })\n  );\n}\n\nconst ViberShareButton = createShareButton<{ title?: string; separator?: string }>(\n  'viber',\n  viberLink,\n  props => ({\n    title: props.title,\n    separator: props.separator || ' ',\n  }),\n  {\n    windowWidth: 660,\n    windowHeight: 460,\n  },\n);\n\nexport default ViberShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst VKIcon = createIcon({\n  color: '#4C75A3',\n  networkName: 'vk',\n  path: 'M44.94,44.84h-0.2c-2.17-.36-3.66-1.92-4.92-3.37C39.1,40.66,38,38.81,36.7,39c-1.85.3-.93,3.52-1.71,4.9-0.62,1.11-3.29.91-5.12,0.71-5.79-.62-8.75-3.77-11.35-7.14A64.13,64.13,0,0,1,11.6,26a10.59,10.59,0,0,1-1.51-4.49C11,20.7,12.56,21,14.11,21c1.31,0,3.36-.29,4.32.2C19,21.46,19.57,23,20,24a37.18,37.18,0,0,0,3.31,5.82c0.56,0.81,1.41,2.35,2.41,2.14s1.06-2.63,1.1-4.18c0-1.77,0-4-.5-4.9S25,22,24.15,21.47c0.73-1.49,2.72-1.63,5.12-1.63,2,0,4.84-.23,5.62,1.12s0.25,3.85.2,5.71c-0.06,2.09-.41,4.25,1,5.21,1.09-.12,1.68-1.2,2.31-2A28,28,0,0,0,41.72,24c0.44-1,.91-2.65,1.71-3,1.21-.47,3.15-0.1,4.92-0.1,1.46,0,4.05-.41,4.52.61,0.39,0.85-.75,3-1.1,3.57a61.88,61.88,0,0,1-4.12,5.61c-0.58.78-1.78,2-1.71,3.27,0.05,0.94,1,1.67,1.71,2.35a33.12,33.12,0,0,1,3.92,4.18c0.47,0.62,1.5,2,1.4,2.76C52.66,45.81,46.88,44.24,44.94,44.84Z',\n});\n\nexport default VKIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\ntype Options = {\n  title?: string;\n  image?: string;\n  noParse?: boolean;\n  noVkLinks?: boolean;\n};\n\nfunction vkLink(url: string, { title, image, noParse, noVkLinks }: Options) {\n  assert(url, 'vk.url');\n\n  return (\n    'https://vk.com/share.php' +\n    objectToGetParams({\n      url,\n      title,\n      image,\n      noparse: noParse ? 1 : 0,\n      no_vk_links: noVkLinks ? 1 : 0,\n    })\n  );\n}\n\nconst VKShareButton = createShareButton<Options>(\n  'vk',\n  vkLink,\n  props => ({\n    title: props.title,\n    image: props.image,\n    noParse: props.noParse,\n    noVkLinks: props.noVkLinks,\n  }),\n  {\n    windowWidth: 660,\n    windowHeight: 460,\n  },\n);\n\nexport default VKShareButton;\n", "import jsonp from 'jsonp';\n\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareCount from './hocs/createShareCount';\n\ndeclare global {\n  interface Window {\n    VK: {\n      Share?: {\n        count: (index: number, count: number) => void;\n      };\n      callbacks?: ((count?: number) => void)[];\n    };\n  }\n}\n\nfunction getVKShareCount(shareUrl: string, callback: (shareCount?: number) => void) {\n  if (!window.VK) window.VK = {};\n  window.VK.Share = {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n    count: (index, count) => window.VK.callbacks?.[index]?.(count),\n  };\n  window.VK.callbacks = [];\n\n  const url = 'https://vk.com/share.php';\n  const index = window.VK.callbacks.length;\n\n  window.VK.callbacks.push(callback);\n\n  return jsonp(\n    url +\n      objectToGetParams({\n        act: 'count',\n        index,\n        url: shareUrl,\n      }),\n  );\n}\n\nexport default createShareCount(getVKShareCount);\n", "import createIcon from './hocs/createIcon';\n\nconst WeiboIcon = createIcon({\n  color: '#DF2029',\n  networkName: 'weibo',\n  path: 'M40.9756152,15.0217119 C40.5000732,15.0546301 39.9999314,15.1204666 39.5325878,15.2192213 C38.6634928,15.4085016 38.0977589,16.2643757 38.2863368,17.1284787 C38.4667163,18.0008129 39.3194143,18.5686519 40.1885094,18.3793715 C42.8613908,17.8115326 45.7720411,18.6427174 47.7316073,20.8153207 C49.6911735,22.996153 50.2077122,25.975254 49.3714112,28.5840234 C49.1008441,29.4316684 49.5763861,30.3533789 50.4208857,30.6249537 C51.2653852,30.8965286 52.1754769,30.4192153 52.4542425,29.5715703 C53.6349013,25.9011885 52.9133876,21.7699494 50.1585171,18.7085538 C48.0923641,16.4042776 45.2063093,15.1533848 42.3530505,15.0217119 C41.8775084,14.9970227 41.4511594,14.9887937 40.9756152,15.0217119 Z M27.9227762,19.8277737 C24.9957268,20.140498 20.863421,22.4365431 17.2312548,26.0822378 C13.2711279,30.0571148 11,34.2871065 11,37.9328012 C11,44.9032373 19.8713401,49.125 28.5786978,49.125 C39.9917329,49.125 47.600423,42.4261409 47.600423,37.1427636 C47.600423,33.9496952 44.9603397,32.1638816 42.549827,31.4149913 C41.9594976,31.2339421 41.5167516,31.1434164 41.8283133,30.3616079 C42.5006339,28.66632 42.6236176,27.1932286 41.8939054,26.1480742 C40.5328692,24.1894405 36.7203236,24.2881952 32.448635,26.0822378 C32.448635,26.0822378 31.1203949,26.6912261 31.4647526,25.6213825 C32.1206742,23.4981576 32.0304845,21.712342 31.0056075,20.6836478 C30.2840938,19.9512176 29.2510184,19.6878718 27.9227762,19.8277737 Z M42.0906819,20.6836478 C41.6233383,20.6589586 41.1723917,20.716566 40.7132466,20.8153207 C39.9671353,20.9716828 39.4997917,21.7781784 39.6637721,22.5270687 C39.8277525,23.275959 40.5574647,23.7450433 41.303576,23.5804521 C42.1972686,23.3911718 43.2057485,23.6380596 43.8616701,24.3704897 C44.5175916,25.1029198 44.6733735,26.0657797 44.3864073,26.9381118 C44.1486363,27.6705419 44.5093932,28.4770397 45.2391054,28.7156963 C45.9688176,28.9461239 46.780521,28.5922524 47.0100936,27.8598223 C47.584026,26.0740087 47.2396661,24.0248493 45.8950269,22.5270687 C44.886547,21.4078489 43.4845162,20.7494842 42.0906819,20.6836478 Z M29.496988,29.9665891 C35.3100922,30.1723275 39.9917329,33.0691319 40.3852858,37.0769272 C40.8362324,41.6607904 35.5970585,45.9319315 28.6442899,46.6232144 C21.6915214,47.3144973 15.6488446,44.154347 15.197898,39.5787128 C14.7469514,34.9948495 20.059916,30.7237084 27.004486,30.0324256 C27.8735831,29.950131 28.6688875,29.9336709 29.496988,29.9665891 Z M25.5614586,34.3776322 C23.183744,34.5916017 20.9372116,35.9577073 19.9205332,37.9328012 C18.5348994,40.6238672 19.9041362,43.6029661 23.0689567,44.582284 C26.340366,45.5945202 30.1857056,44.0638213 31.5303448,41.1587879 C32.8503864,38.3195909 31.1613894,35.3734082 27.9227762,34.5751416 C27.1438688,34.3776322 26.356763,34.3035667 25.5614586,34.3776322 Z M24.052839,38.7228388 C24.3316067,38.7310678 24.5857748,38.8215935 24.8399449,38.9203482 C25.8648218,39.3400561 26.1845841,40.4428158 25.5614586,41.4221338 C24.9219361,42.3932227 23.5690963,42.8623069 22.5442194,42.4096807 C21.5357395,41.9652856 21.2487754,40.8542948 21.8882979,39.9078951 C22.3638421,39.2001542 23.2247386,38.7146097 24.052839,38.7228388 Z',\n});\n\nexport default WeiboIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction weiboLink(url: string, { title, image }: { title?: string; image?: string }) {\n  assert(url, 'weibo.url');\n\n  return (\n    'http://service.weibo.com/share/share.php' +\n    objectToGetParams({\n      url,\n      title,\n      pic: image,\n    })\n  );\n}\n\nconst WeiboShareButton = createShareButton<{ title?: string; image?: string }>(\n  'weibo',\n  weiboLink,\n  props => ({\n    title: props.title,\n    image: props.image,\n  }),\n  {\n    windowWidth: 660,\n    windowHeight: 550,\n    windowPosition: 'screenCenter',\n  },\n);\n\nexport default WeiboShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst WhatsappIcon = createIcon({\n  color: '#25D366',\n  networkName: 'whatsapp',\n  path: 'm42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,0.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915',\n});\n\nexport default WhatsappIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction isMobileOrTablet() {\n  return /(android|iphone|ipad|mobile)/i.test(navigator.userAgent);\n}\n\nfunction whatsappLink(url: string, { title, separator }: { title?: string; separator?: string }) {\n  assert(url, 'whatsapp.url');\n  return (\n    'https://' +\n    (isMobileOrTablet() ? 'api' : 'web') +\n    '.whatsapp.com/send' +\n    objectToGetParams({\n      text: title ? title + separator + url : url,\n    })\n  );\n}\n\nconst WhatsappShareButton = createShareButton<{ title?: string; separator?: string }>(\n  'whatsapp',\n  whatsappLink,\n  props => ({\n    title: props.title,\n    separator: props.separator || ' ',\n  }),\n  {\n    windowWidth: 550,\n    windowHeight: 400,\n  },\n);\n\nexport default WhatsappShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst WorkplaceIcon = createIcon({\n  color: '#4326c4',\n  networkName: 'workplace',\n  path: 'M34.019,10.292c0.21,0.017,0.423,0.034,0.636,0.049 c3.657,0.262,6.976,1.464,9.929,3.635c3.331,2.448,5.635,5.65,6.914,9.584c0.699,2.152,0.983,4.365,0.885,6.623 c-0.136,3.171-1.008,6.13-2.619,8.867c-0.442,0.75-0.908,1.492-1.495,2.141c-0.588,0.651-1.29,1.141-2.146,1.383 c-1.496,0.426-3.247-0.283-3.961-1.642c-0.26-0.494-0.442-1.028-0.654-1.548c-1.156-2.838-2.311-5.679-3.465-8.519 c-0.017-0.042-0.037-0.082-0.065-0.145c-0.101,0.245-0.192,0.472-0.284,0.698c-1.237,3.051-2.475,6.103-3.711,9.155 c-0.466,1.153-1.351,1.815-2.538,2.045c-1.391,0.267-2.577-0.154-3.496-1.247c-0.174-0.209-0.31-0.464-0.415-0.717 c-2.128-5.22-4.248-10.442-6.37-15.665c-0.012-0.029-0.021-0.059-0.036-0.104c0.054-0.003,0.103-0.006,0.15-0.006 c1.498-0.001,2.997,0,4.495-0.004c0.12-0.001,0.176,0.03,0.222,0.146c1.557,3.846,3.117,7.691,4.679,11.536 c0.018,0.046,0.039,0.091,0.067,0.159c0.273-0.673,0.536-1.32,0.797-1.968c1.064-2.627,2.137-5.25,3.19-7.883 c0.482-1.208,1.376-1.917,2.621-2.135c1.454-0.255,2.644,0.257,3.522,1.449c0.133,0.18,0.229,0.393,0.313,0.603 c1.425,3.495,2.848,6.991,4.269,10.488c0.02,0.047,0.04,0.093,0.073,0.172c0.196-0.327,0.385-0.625,0.559-0.935 c0.783-1.397,1.323-2.886,1.614-4.461c0.242-1.312,0.304-2.634,0.187-3.962c-0.242-2.721-1.16-5.192-2.792-7.38 c-2.193-2.939-5.086-4.824-8.673-5.625c-1.553-0.346-3.124-0.405-4.705-0.257c-3.162,0.298-6.036,1.366-8.585,3.258 c-3.414,2.534-5.638,5.871-6.623,10.016c-0.417,1.76-0.546,3.547-0.384,5.348c0.417,4.601,2.359,8.444,5.804,11.517 c2.325,2.073,5.037,3.393,8.094,3.989c1.617,0.317,3.247,0.395,4.889,0.242c1-0.094,1.982-0.268,2.952-0.529 c0.04-0.01,0.081-0.018,0.128-0.028c0,1.526,0,3.047,0,4.586c-0.402,0.074-0.805,0.154-1.21,0.221 c-0.861,0.14-1.728,0.231-2.601,0.258c-0.035,0.002-0.071,0.013-0.108,0.021c-0.493,0-0.983,0-1.476,0 c-0.049-0.007-0.1-0.018-0.149-0.022c-0.315-0.019-0.629-0.033-0.945-0.058c-1.362-0.105-2.702-0.346-4.017-0.716 c-3.254-0.914-6.145-2.495-8.66-4.752c-2.195-1.971-3.926-4.29-5.176-6.963c-1.152-2.466-1.822-5.057-1.993-7.774 c-0.014-0.226-0.033-0.451-0.05-0.676c0-0.502,0-1.003,0-1.504c0.008-0.049,0.02-0.099,0.022-0.148 c0.036-1.025,0.152-2.043,0.338-3.052c0.481-2.616,1.409-5.066,2.8-7.331c2.226-3.625,5.25-6.386,9.074-8.254 c2.536-1.24,5.217-1.947,8.037-2.126c0.23-0.015,0.461-0.034,0.691-0.051C33.052,10.292,33.535,10.292,34.019,10.292z',\n});\n\nexport default WorkplaceIcon;\n", "import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction workplaceLink(url: string, { quote, hashtag }: { quote?: string; hashtag?: string }) {\n  assert(url, 'workplace.url');\n\n  return (\n    'https://work.facebook.com/sharer.php' +\n    objectToGetParams({\n      u: url,\n      quote,\n      hashtag,\n    })\n  );\n}\n\nconst WorkplaceShareButton = createShareButton<{ quote?: string; hashtag?: string }>(\n  'workplace',\n  workplaceLink,\n  props => ({\n    quote: props.quote,\n    hashtag: props.hashtag,\n  }),\n  {\n    windowWidth: 550,\n    windowHeight: 400,\n  },\n);\n\nexport default WorkplaceShareButton;\n", "import createIcon from './hocs/createIcon';\n\nconst XIcon = createIcon({\n  color: '#000000',\n  networkName: 'X',\n  path: 'M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z',\n});\n\nexport default XIcon;\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery, smallMobileMediaQuery } from '../../constants';\nimport { ZIndex } from '../../constants/zIndex';\nimport { m, p1Css, p2Css } from '../../motif';\nimport { globalHeaderHeight } from '../GlobalHeader/GlobalHeader.constants';\n\nconst heroMobileMinHeightPx = 256;\n\n/**\n * Minimum height of the hero.\n *\n * Calculated to fit a standard tile image.\n */\nconst heroDesktopMinHeightPx = 714;\n\n/**\n * Between mobile (768) and this, there's just not enough room to lay out the media and text in the\n * hero. So this serves as a cut-off to not show the media in these resolutions.\n */\nexport const cutoffWithMediaPx = 1014;\n\n/** Max width for subTitle and body text from designs. */\nconst contentMaxWith = '860px';\n\n/** Fixed height for mobile assets when Hero mimics Split Block */\n// TODO: Consume mobileMediaMinHeightPx variable from SplitBlock\nconst heroMobileAssetHeightPx = 375;\nexport const heroCurtainOpacityCssVar = '--hero-curtain-opacity';\n\nexport const alignItemsStartCss = css`\n  align-items: start;\n`;\n\nexport const alignItemsEndCss = css`\n  align-items: end;\n`;\n\nexport const textContentCss = css`\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  padding-block: ${m('--spacing-xl')};\n  padding-inline: ${m('--spacing-xl')};\n  z-index: ${ZIndex.HERO_TEXT};\n\n  ${mobileMediaQuery} {\n    padding-inline: 0;\n    width: 100%;\n  }\n`;\n\nexport const heroCss = css`\n  background-color: ${m('--background-color')};\n  background-image: ${m('--background-image')};\n\n  position: relative;\n  width: 100%;\n  --hero-text-color-curtain-title-color: ${m('--hero-title-color')};\n  --hero-text-color-curtain-subtitle-color: ${m('--hero-subtitle-color')};\n\n  &[data-curtain='true'] {\n    --hero-text-color-curtain-title-color: ${m('--hero-text-color-curtain-active')};\n    --hero-text-color-curtain-subtitle-color: ${m('--hero-text-color-curtain-active')};\n  }\n\n  ${mobileMediaQuery} {\n    min-height: ${heroMobileMinHeightPx}px;\n\n    & > video {\n      min-height: ${heroMobileMinHeightPx}px;\n    }\n  }\n`;\n\nexport const boundaryCss = css`\n  min-height: ${heroDesktopMinHeightPx}px;\n\n  display: grid;\n  grid-auto-flow: column;\n  grid-auto-columns: minmax(0, 100%) 40%;\n  grid-gap: ${m('--spacing-xl')};\n  align-items: center;\n\n  padding: ${m('--spacing-xl')} ${m('--spacing-xxxxl')};\n\n  ${mobileMediaQuery} {\n    grid-auto-flow: row;\n    padding: ${m('--spacing-xl')};\n    min-height: ${heroMobileMinHeightPx}px;\n    max-width: 100vw;\n  }\n\n  ${smallMobileMediaQuery} {\n    padding-bottom: ${m('--spacing-xl')};\n  }\n`;\n\nexport const compactBoundaryCss = css`\n  min-height: 0px;\n`;\n\nexport const curtainCss = css`\n  background-color: rgba(0, 0, 0, var(${heroCurtainOpacityCssVar}, 0));\n  z-index: ${ZIndex.HERO_CURTAIN};\n`;\n\nexport const headerCss = css`\n  color: var(--hero-text-color-curtain-title-color);\n`;\n\nexport const eyebrowCss = css`\n  /**\n   * using var instead of m function because this is not a motif variable.\n   * It is a custom css var defined in heroCss.\n   */\n  color: var(--hero-text-color-curtain-title-color);\n  font-size: ${m('--annotation-desktop-font-size')};\n  line-height: ${m('--annotation-desktop-font-line-height')};\n  font-weight: ${m('--annotation-desktop-font-weight')};\n  letter-spacing: ${m('--annotation-desktop-font-letter-spacing')};\n  margin-block-end: ${m('--spacing-s')};\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--annotation-mobile-font-size')};\n    line-height: ${m('--annotation-mobile-font-line-height')};\n    font-weight: ${m('--annotation-mobile-font-weight')};\n    letter-spacing: ${m('--annotation-mobile-font-letter-spacing')};\n  }\n`;\n\nexport const titleCss = css`\n  /**\n * using var instead of m function because this is not a motif variable.\n * It is a custom css var defined in heroCss.\n */\n  color: var(--hero-text-color-curtain-title-color);\n  margin-block: 0 ${m('--spacing-m')};\n\n  ${mobileMediaQuery} {\n    margin-block: 0 ${m('--spacing-xs')};\n  }\n`;\n\nexport const subTitleCss = css`\n  ${p1Css}\n  color: var(--hero-text-color-curtain-subtitle-color);\n  margin-block-end: ${m('--spacing-m')};\n  max-width: ${contentMaxWith};\n\n  ${mobileMediaQuery} {\n    margin-block-end: ${m('--spacing-xs')};\n  }\n\n  /** Overriding margin added from renderRichTextWithElementsNoHeadings*/\n  & p {\n    margin: 0;\n  }\n`;\n\nexport const bodyCss = css`\n  ${p2Css}\n  color: var(--hero-text-color-curtain-subtitle-color);\n  margin-block-end: ${m('--spacing-m')};\n  max-width: ${contentMaxWith};\n\n  ${mobileMediaQuery} {\n    margin-block-end: ${m('--spacing-xs')};\n  }\n  /** Overriding margin added from renderRichTextWithElementsNoHeadings */\n  & p {\n    margin-bottom: 0;\n  }\n\n  /**\n   * If the body has multiple paragraphs, we need to add a top margin.\n   * Do not add a margin bottom to avoid extra white space by adding the paragraph and parent margins.\n   */\n  & p + p {\n    margin-block-start: ${m('--spacing-s')};\n  }\n`;\n\nexport const callsToActionWrapperCss = css`\n  display: flex;\n  gap: ${m('--spacing-m')};\n  margin-block-start: ${m('--spacing-m')};\n\n  ${mobileMediaQuery} {\n    flex-direction: column;\n  }\n\n  ${smallMobileMediaQuery} {\n    width: 100%;\n  }\n`;\n\nexport const footerCss = css`\n  ${p2Css}\n  color: var(--hero-text-color-curtain-subtitle-color);\n  margin-block-start: ${m('--spacing-xl')};\n\n  ${mobileMediaQuery} {\n    margin-block-start: ${m('--spacing-l')};\n    text-align: center;\n  }\n`;\n\nexport const heroSocialContainerCss = css`\n  position: absolute;\n  bottom: calc(${m('--break-total-desktop-height')} + ${m('--spacing-xl')});\n  left: ${m('--spacing-xl')};\n  z-index: ${ZIndex.HERO_CURTAIN};\n\n  button {\n    margin-right: ${m('--spacing-s')};\n  }\n\n  ${mobileMediaQuery} {\n    bottom: calc(${m('--break-total-mobile-height')} + ${m('--spacing-m')});\n    left: ${m('--spacing-xl')};\n  }\n`;\n\nexport const fitWindowCss = css`\n  ${nonMobileMediaQuery} {\n    height: calc(100vh - ${globalHeaderHeight}px);\n    max-height: 1600px;\n    min-height: ${heroDesktopMinHeightPx}px;\n  }\n`;\n\nexport const backgroundCss = css`\n  height: 100%;\n  width: 100%;\n\n  object-fit: cover;\n\n  position: absolute;\n  left: 0;\n  top: 0;\n`;\n\nexport const heroTitleContainerCss = css`\n  ${mobileMediaQuery} {\n    max-width: 100%;\n    overflow-x: auto;\n  }\n`;\n\n/**\n * Have to set the z-index separately on the media so it can be rendered over the background-image\n * and curtain.\n */\nexport const heroMediaCss = css`\n  z-index: ${ZIndex.HERO_BOUNDARY};\n`;\n\nexport const heroScrollButtonWrapCss = css`\n  bottom: ${m('--spacing-xl')};\n  position: absolute;\n  left: 50%;\n  transform: translateX(-50%);\n  z-index: ${ZIndex.HERO_TEXT};\n`;\n\nexport const heroScrollButtonCss = css`\n  background: ${m('--hero-scroll-button-bg-color')};\n  border: none;\n  box-shadow: none;\n  transition: background 0.2s linear;\n\n  svg {\n    fill: ${m('--hero-scroll-button-fg-color')};\n  }\n\n  &:hover {\n    background: ${m('--hero-scroll-button-hover-bg-color')};\n    border: none;\n    transform: none;\n\n    svg {\n      fill: ${m('--hero-scroll-button-hover-fg-color')};\n    }\n  }\n\n  [data-curtain='true'] & {\n    background: ${m('--hero-scroll-button-curtain-active-bg-color')};\n\n    svg {\n      fill: ${m('--hero-scroll-button-curtain-active-fg-color')};\n    }\n\n    &:hover {\n      background: ${m('--hero-scroll-button-curtain-active-hover-bg-color')};\n\n      svg {\n        fill: ${m('--hero-scroll-button-curtain-active-hover-fg-color')};\n      }\n    }\n  }\n`;\n\n/** Styles for Hero Split Block */\n\nexport const heroSplitCss = css`\n  align-items: stretch;\n  display: flex;\n  justify-content: space-between;\n\n  ${mobileMediaQuery} {\n    flex-direction: column;\n    flex-direction: column-reverse;\n  }\n`;\n\nexport const reverseSplitCss = css`\n  flex-direction: row-reverse;\n`;\n\nexport const splitItemCss = css`\n  width: 50%;\n  ${mobileMediaQuery} {\n    width: 100%;\n  }\n`;\n\nexport const splitMediaItemCss = css`\n  height: inherit;\n  position: relative;\n\n  ${mobileMediaQuery} {\n    height: ${heroMobileAssetHeightPx}px;\n  }\n`;\n\nexport const splitMediaCss = css`\n  ${mobileMediaQuery} {\n    max-height: ${heroMobileAssetHeightPx}px;\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery } from '../../constants';\nimport { m, p2Css } from '../../motif';\n\nconst iconSize = 84; // width and height, taken from figma\n\n// mobile or a full date on desktop.\nexport const headerMobileCss = css`\n  ${p2Css}\n  ${mobileMediaQuery} {\n    margin-block-end: ${m('--spacing-l')};\n    display: flex;\n    flex-direction: column;\n    width: 100%;\n  }\n\n  ${nonMobileMediaQuery} {\n    display: none;\n  }\n`;\n\nexport const headerDesktopCss = css`\n  ${p2Css}\n  ${mobileMediaQuery} {\n    display: none;\n  }\n\n  ${nonMobileMediaQuery} {\n    margin-block-end: ${m('--spacing-xl')};\n    display: flex;\n    align-items: center;\n  }\n`;\n\nexport const headerImageCss = css`\n  border-radius: ${m('--spacing-xs')};\n  width: ${iconSize}px;\n  height: ${iconSize}px;\n  object-fit: contain;\n\n  ${mobileMediaQuery} {\n    margin-bottom: ${m('--spacing-m')};\n  }\n\n  ${nonMobileMediaQuery} {\n    margin-inline: 0 ${m('--spacing-m')};\n\n    *[dir='rtl'] & {\n      margin-inline: ${m('--spacing-m')} 0;\n    }\n  }\n`;\n", "export function isDate<T>(date?: Date | T): date is Date {\n  if (!date) {\n    return false;\n  }\n\n  return typeof (date as Date).getFullYear === 'function';\n}\n\nexport const dateDesktopString = (date: Date): string => {\n  return date.toLocaleDateString(undefined, {\n    year: 'numeric',\n    month: 'long',\n    day: 'numeric',\n  });\n};\n\nexport const dateMobileString = (date: Date): string => {\n  return date.toLocaleDateString(undefined, {\n    year: 'numeric',\n    month: 'numeric',\n    day: '2-digit',\n  });\n};\n", "import { cx } from '@emotion/css';\nimport type { FC, PropsWithChildren, ReactNode } from 'react';\n\nimport { Alignment } from '../../constants';\nimport type { ImageSources } from '../../types';\nimport { dataSetToAttributes, mobileAlignmentCss } from '../../utils';\nimport { Picture } from '../Picture';\nimport { headerDesktopCss, headerImageCss, headerMobileCss } from './HeroHeader.styles';\nimport { dateDesktopString, dateMobileString, isDate } from './utils';\n\ninterface Props {\n  content?: ReactNode | Date;\n  /** @deprecated Use iconSrcs instead */\n  iconSource?: string;\n  /** @deprecated */\n  desktopCutoff?: number;\n  iconSrcs?: ImageSources;\n  iconAltText?: string;\n  textAlignMobile?: Alignment;\n  headerDataset?: DOMStringMap;\n  className?: string;\n}\n\nexport const HeroHeader: FC<PropsWithChildren<Props>> = ({\n  content,\n  iconSrcs,\n  iconAltText,\n  textAlignMobile,\n  headerDataset,\n  className,\n}) => {\n  if (!content && !iconSrcs) {\n    return null;\n  }\n\n  const headerIsDate = isDate(content);\n  const headerMobile = headerIsDate ? dateMobileString(content as Date) : content;\n  const headerDesktop = headerIsDate ? dateDesktopString(content as Date) : content;\n\n  const icon = iconSrcs && (\n    <div className={headerImageCss}>\n      <Picture imgSrcs={iconSrcs} imgClassName={headerImageCss} altText={iconAltText} />\n    </div>\n  );\n\n  return (\n    <>\n      <div\n        data-test-id=\"sdsm-hero-header\"\n        className={cx(headerDesktopCss, className)}\n        {...dataSetToAttributes(headerDataset)}\n      >\n        {icon}\n        {headerDesktop}\n      </div>\n      <div\n        className={cx(\n          mobileAlignmentCss[textAlignMobile ?? Alignment.Start],\n          headerMobileCss,\n          className\n        )}\n        {...dataSetToAttributes(headerDataset)}\n      >\n        {icon}\n        {headerMobile}\n      </div>\n    </>\n  );\n};\n\nHeroHeader.displayName = 'HeroHeader';\n", "import { cx } from '@emotion/css';\nimport type { FC, ReactNode } from 'react';\nimport { cloneElement } from 'react';\n\nimport { useIsMobile } from '../../../hooks';\nimport type { BaseComponentProps } from '../../../types/components';\nimport type { CarouselV3Props } from '../../CarouselV3';\nimport { isCarouselV3Element } from '../../CarouselV3/utils';\nimport type { MediaProps } from '../../Media';\nimport { Media } from '../../Media';\nimport { isSummaryCardElement } from '../../SummaryCard/utils';\nimport type { HeroProps } from '../Hero';\nimport { HeroSize } from '../Hero.constants';\nimport { compactHeroMediaCss, heroMediaCss, heroWideMediaCss } from './HeroMedia.styles';\n\nexport type Props = BaseComponentProps &\n  Pick<HeroProps, 'foregroundMedia' | 'imgSrcs' | 'wrapMedia' | 'showMediaMobile' | 'size'>;\n\nexport const HeroMedia: FC<Props> = ({\n  className,\n  foregroundMedia,\n  imgSrcs,\n  wrapMedia,\n  showMediaMobile,\n  size,\n}) => {\n  const isMobile = useIsMobile();\n\n  wrapMedia = (foregroundMedia?.props as MediaProps)?.wrap ?? wrapMedia;\n\n  if (isMobile && !showMediaMobile) return null;\n\n  let children: ReactNode;\n\n  if (foregroundMedia) {\n    children = foregroundMedia;\n\n    if (isCarouselV3Element(foregroundMedia)) {\n      children = cloneElement(foregroundMedia, {\n        isSingleView: true, // need to force single view\n      } as Partial<CarouselV3Props>);\n    }\n  } else {\n    children = <Media imgSrcs={imgSrcs} wrap={wrapMedia} />;\n  }\n\n  return (\n    <aside\n      data-test-id=\"sdsm-hero-media\"\n      className={cx(\n        heroMediaCss,\n        className,\n        { [compactHeroMediaCss]: size === HeroSize.Compact },\n        { [heroWideMediaCss]: foregroundMedia ? isSummaryCardElement(foregroundMedia) : false }\n      )}\n    >\n      {children}\n    </aside>\n  );\n};\n\nHeroMedia.displayName = 'HeroMedia';\n", "import { css } from '@emotion/css';\n\nimport {\n  extraLargeDesktopMediaQuery,\n  largeDesktopMediaQuery,\n  nonMobileMediaQuery,\n} from '../../constants';\nimport { m } from '../../motif';\n\n// NOTE(paulomartinsbynd): these values have been decided by the design team\nconst summaryCardHeight = 225;\nconst mobileSummaryCardHeight = 180;\nconst dataLineHeight = 20;\n\nexport const summaryCardCss = css`\n  color: ${m('--summary-card-fg-color')};\n  background-color: ${m('--summary-card-bg-color')};\n  border-radius: ${m('--summary-card-border-radius')};\n  display: flex;\n  box-shadow: ${m('--box-shadow-s')};\n  flex-direction: row;\n  height: ${mobileSummaryCardHeight}px;\n  overflow: hidden;\n  will-change: filter;\n\n  ${nonMobileMediaQuery} {\n    height: ${summaryCardHeight}px;\n  }\n`;\n\nexport const summaryCardRowCss = css`\n  display: flex;\n  flex-direction: row;\n  width: 100%;\n`;\n\nexport const summaryCardImageCss = css`\n  background-position: center;\n  background-repeat: no-repeat;\n  background-size: cover;\n  height: 100%;\n  min-width: 101px;\n  width: 101px;\n\n  video {\n    border-radius: 0;\n    height: ${mobileSummaryCardHeight}px;\n    width: 100%;\n\n    ${nonMobileMediaQuery} {\n      height: ${summaryCardHeight}px;\n    }\n  }\n\n  ${largeDesktopMediaQuery} {\n    min-width: 126px;\n    width: 126px;\n  }\n\n  ${extraLargeDesktopMediaQuery} {\n    min-width: 134px;\n    width: 134px;\n  }\n`;\n\nexport const summaryCardTitleCss = css`\n  /* stylelint-disable-next-line value-no-vendor-prefix */\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  font-weight: 500;\n  margin-bottom: ${m('--spacing-xxs')};\n  overflow: hidden;\n  word-break: break-word;\n  color: ${m('--summary-card-title-color')};\n\n  ${largeDesktopMediaQuery} {\n    margin-bottom: ${m('--spacing-xs')};\n  }\n`;\nexport const summaryCardTitleNoDateCss = css`\n  /* NOTE(dvazbynd): margin-block-start should match line-height of summaryCardDateCss */\n  margin-block-start: ${dataLineHeight}px;\n`;\n\nexport const summaryCardTitleNoMediaNoDescriptionCss = css`\n  -webkit-line-clamp: 4;\n  font-size: 18px;\n  line-height: 26px;\n\n  ${nonMobileMediaQuery} {\n    font-size: 24px;\n    line-height: 34px;\n  }\n`;\n\nexport const summaryCardTitleMediaNoDescriptionCss = css`\n  -webkit-line-clamp: 5;\n  font-size: 14px;\n  line-height: 20px;\n\n  ${nonMobileMediaQuery} {\n    -webkit-line-clamp: 4;\n    font-size: 20px;\n    line-height: 30px;\n  }\n`;\n\nexport const summaryCardTitleNoMediaDescriptionCss = css`\n  -webkit-line-clamp: 3;\n  font-size: 18px;\n  line-height: 26px;\n\n  ${nonMobileMediaQuery} {\n    -webkit-line-clamp: 4;\n    font-size: 20px;\n    line-height: 30px;\n  }\n`;\n\nexport const summaryCardTitleMediaDescriptionCss = css`\n  -webkit-line-clamp: 3;\n  font-size: 14px;\n  line-height: 20px;\n\n  ${nonMobileMediaQuery} {\n    font-size: 20px;\n    line-height: 30px;\n  }\n`;\n\nexport const summaryCardDateCss = css`\n  font-size: 12px;\n  font-weight: 500;\n  line-height: ${dataLineHeight}px;\n  margin-bottom: ${m('--spacing-xxs')};\n\n  ${largeDesktopMediaQuery} {\n    font-size: 14px;\n    margin-bottom: ${m('--spacing-xs')};\n  }\n`;\n\nexport const summaryCardContainerCss = css`\n  color: ${m('--summary-card-fg-color')};\n  display: flex;\n  flex-direction: column;\n  flex-grow: 1;\n  padding: ${m('--spacing-m')};\n\n  ${nonMobileMediaQuery} {\n    padding: ${m('--spacing-l')};\n  }\n`;\n\nexport const summaryCardSkeletonContainerCss = css`\n  justify-content: space-between;\n`;\n\nexport const summaryCardDescriptionCss = css`\n  -webkit-box-orient: vertical;\n  color: ${m('--summary-card-description-color')};\n  /* stylelint-disable-next-line value-no-vendor-prefix */\n  display: -webkit-box;\n  font-size: 14px;\n  font-weight: 400;\n  line-height: 20px;\n  overflow: hidden;\n  pointer-events: none;\n  word-break: break-word;\n\n  b,\n  strong,\n  > * b,\n  > * strong {\n    font-weight: normal;\n  }\n\n  i,\n  > * i {\n    font-style: normal;\n  }\n\n  a,\n  u,\n  > * a,\n  > * u {\n    text-decoration: none;\n    color: inherit;\n  }\n\n  ${nonMobileMediaQuery} {\n    font-size: 16px;\n    line-height: 26px;\n  }\n\n  > *:not(:first-child) {\n    display: none;\n  }\n`;\n\nexport const summaryCardDescriptionMediaCss = css`\n  -webkit-line-clamp: 3;\n\n  ${nonMobileMediaQuery} {\n    -webkit-line-clamp: 2;\n  }\n`;\n\nexport const summaryCardDescriptionNoMediaCss = css`\n  -webkit-line-clamp: 2;\n`;\n\nexport const summaryCardPictureCss = css`\n  height: 100%;\n  object-fit: cover;\n  object-position: center;\n  width: 100%;\n`;\n\nexport const summaryCardAnchorCss = css`\n  text-decoration: none;\n`;\n\nexport const summaryCardSkeletonCss = css`\n  background-color: rgb(232, 232, 235);\n`;\n\nexport const summaryCardSkeletonGapCss = css`\n  gap: 10px;\n`;\n\nexport const summaryCardDashCss = css`\n  border-radius: ${m('--border-radius-m')};\n`;\n\nexport const summaryCardSkeletonAnimationCss = css`\n  position: relative;\n  overflow: hidden;\n\n  &::before {\n    position: absolute;\n    top: 0;\n    left: 0;\n    height: 100%;\n    width: 100%;\n    transform: translateX(-100%);\n    content: '';\n    background: linear-gradient(0.25turn, transparent, #fff, transparent);\n    pointer-events: none;\n    opacity: 0.8;\n    animation: summary-card-skeleton 2s infinite;\n  }\n\n  @keyframes summary-card-skeleton {\n    0% {\n      transform: translateX(-100%);\n    }\n    30% {\n      transform: translateX(-100%);\n    }\n    100% {\n      transform: translateX(100%);\n    }\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport type { BaseComponentProps } from '../../types';\nimport {\n  summaryCardContainerCss,\n  summaryCardCss,\n  summaryCardDashCss,\n  summaryCardImageCss,\n  summaryCardRowCss,\n  summaryCardSkeletonAnimationCss,\n  summaryCardSkeletonContainerCss,\n  summaryCardSkeletonCss,\n  summaryCardSkeletonGapCss,\n} from './SummaryCard.styled';\n\n// https://www.figma.com/file/ZGx8KtLKunDcyUlhT6wtCE/SDS-M-Production?type=design&node-id=7887%3A103257&mode=design&t=y4zjz5uyXzB85w9K-1\n/**\n * Skeleton hardcoded structure to render some animated lines and their items\n *\n * @param height Height in pixels for the gray line (and its items).\n * @param items List of items to render within that line - each number represents a width\n *   percentage.\n */\n\nconst skeletonLines = [\n  {\n    height: 8,\n    items: [20],\n  },\n  {\n    height: 12,\n    items: [40, 17, 25],\n  },\n  {\n    height: 12,\n    items: [25, 55],\n  },\n  {\n    height: 8,\n    items: [36, 19, 27],\n  },\n  {\n    height: 8,\n    items: [15, 46, 25],\n  },\n  {\n    height: 8,\n    items: [22, 39],\n  },\n];\n\nexport const SkeletonSummaryCard: FC<BaseComponentProps> = ({ className }) => {\n  const summaryCardClassName = cx(summaryCardCss, className);\n  const summaryCardContainerClassName = cx(\n    summaryCardContainerCss,\n    summaryCardSkeletonContainerCss\n  );\n  const summaryCardImageClassName = cx(summaryCardImageCss, summaryCardSkeletonCss);\n  const summaryCardDashClassName = cx(\n    summaryCardDashCss,\n    summaryCardSkeletonCss,\n    summaryCardSkeletonAnimationCss\n  );\n  const summaryCardRowClassName = cx(summaryCardRowCss, summaryCardSkeletonGapCss);\n\n  return (\n    <div className={summaryCardClassName} data-testid=\"skeleton-summary-card-container\">\n      <div className={summaryCardContainerClassName}>\n        {skeletonLines.map(({ height, items }, lineIndex) => (\n          <div\n            key={`skeleton-line-${lineIndex}`}\n            style={{ height }}\n            className={summaryCardRowClassName}\n          >\n            {items.map((widthPercentage, itemIndex) => (\n              <div\n                key={`skeleton-line-${lineIndex}-${itemIndex}`}\n                className={summaryCardDashClassName}\n                style={{ height, width: `${widthPercentage}%` }}\n              />\n            ))}\n          </div>\n        ))}\n      </div>\n      <div className={cx(summaryCardImageClassName, summaryCardSkeletonAnimationCss)} />\n    </div>\n  );\n};\n\nSkeletonSummaryCard.displayName = 'SkeletonSummaryCard';\n", "import { cx } from '@emotion/css';\nimport type { FC, ReactNode } from 'react';\nimport { useContext } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps, ImageSources } from '../../types';\nimport { dataSetToAttributes, formatDateToDatetime } from '../../utils';\nimport { Picture } from '../Picture';\nimport { PrimitivesContext } from '../Primitives';\nimport {\n  summaryCardAnchorCss,\n  summaryCardContainerCss,\n  summaryCardCss,\n  summaryCardDateCss,\n  summaryCardDescriptionCss,\n  summaryCardDescriptionMediaCss,\n  summaryCardDescriptionNoMediaCss,\n  summaryCardImageCss,\n  summaryCardPictureCss,\n  summaryCardRowCss,\n  summaryCardTitleCss,\n  summaryCardTitleMediaDescriptionCss,\n  summaryCardTitleMediaNoDescriptionCss,\n  summaryCardTitleNoDateCss,\n  summaryCardTitleNoMediaDescriptionCss,\n  summaryCardTitleNoMediaNoDescriptionCss,\n} from './SummaryCard.styled';\n\nexport interface SummaryCardProps extends BaseComponentProps {\n  date?: string;\n  dateTime?: Date;\n  description?: ReactNode;\n  title?: ReactNode;\n  onClick?: () => void;\n  link?: string;\n  className?: string;\n  imgSrcs?: ImageSources;\n  imgAltText?: string;\n  showMedia?: boolean;\n  showDescription?: boolean;\n  showDate?: boolean;\n  titleDataset?: DOMStringMap;\n  descriptionDataset?: DOMStringMap;\n  dateDataset?: DOMStringMap;\n  mediaDataset?: DOMStringMap;\n  eyebrowText?: string;\n}\n\nexport const SummaryCard: FC<SummaryCardProps> = ({\n  date,\n  dateTime,\n  className,\n  title,\n  description,\n  onClick,\n  link,\n  imgSrcs,\n  imgAltText,\n  showMedia,\n  showDescription,\n  showDate,\n  dataset,\n  dateDataset,\n  titleDataset,\n  descriptionDataset,\n  mediaDataset,\n  eyebrowText,\n}) => {\n  useMotifStyles(MotifComponent.SUMMARY_CARD);\n  const { Anchor } = useContext(PrimitivesContext);\n\n  const rootClassName = cx(\n    MotifComponent.SUMMARY_CARD,\n    {\n      [summaryCardCss]: !link,\n      [summaryCardRowCss]: !!link,\n    },\n    className\n  );\n\n  const anchorRootClassName = cx(\n    summaryCardAnchorCss,\n    {\n      [summaryCardCss]: !!link,\n    },\n    className\n  );\n\n  const summaryCardTitleClassName = cx(summaryCardTitleCss, {\n    [summaryCardTitleMediaDescriptionCss]: showDescription && showMedia,\n    [summaryCardTitleNoMediaNoDescriptionCss]: !showDescription && !showMedia,\n    [summaryCardTitleNoMediaDescriptionCss]: showDescription && !showMedia,\n    [summaryCardTitleMediaNoDescriptionCss]: !showDescription && showMedia,\n    [summaryCardTitleNoDateCss]: !date && showDate,\n  });\n\n  const summaryCardDescriptionClassName = cx(summaryCardDescriptionCss, {\n    [summaryCardDescriptionMediaCss]: showMedia,\n    [summaryCardDescriptionNoMediaCss]: !showMedia,\n  });\n\n  const innerContainer = (\n    <div\n      className={rootClassName}\n      data-testid=\"summary-card-container\"\n      {...dataSetToAttributes(dataset)}\n    >\n      <div className={summaryCardContainerCss}>\n        {eyebrowText ? (\n          <span className={summaryCardDateCss}>{eyebrowText}</span>\n        ) : showDate && date ? (\n          <time\n            dateTime={formatDateToDatetime(dateTime)}\n            className={summaryCardDateCss}\n            {...dataSetToAttributes(dateDataset)}\n          >\n            {date}\n          </time>\n        ) : null}\n        {title ? (\n          <div className={summaryCardTitleClassName} {...dataSetToAttributes(titleDataset)}>\n            {title}\n          </div>\n        ) : null}\n        {showDescription && description ? (\n          <div\n            className={summaryCardDescriptionClassName}\n            {...dataSetToAttributes(descriptionDataset)}\n          >\n            {description}\n          </div>\n        ) : null}\n      </div>\n      {showMedia ? (\n        <div className={summaryCardImageCss}>\n          {imgSrcs ? (\n            <Picture\n              altText={imgAltText}\n              imgSrcs={imgSrcs}\n              imgClassName={summaryCardPictureCss}\n              dataset={mediaDataset}\n            />\n          ) : null}\n        </div>\n      ) : null}\n    </div>\n  );\n\n  if (link) {\n    return (\n      <Anchor href={link} className={anchorRootClassName} onClick={onClick}>\n        {innerContainer}\n      </Anchor>\n    );\n  }\n\n  return innerContainer;\n};\n\nSummaryCard.displayName = 'SummaryCard';\n", "import type { FC, ReactElement } from 'react';\n\nimport { SkeletonSummaryCard } from './SkeletonSummaryCard';\nimport type { SummaryCardProps } from './SummaryCard';\nimport { SummaryCard } from './SummaryCard';\n\n/**\n * Type guard function to check if the given element is a SummaryCard.\n *\n * @param elem - The element to be checked.\n * @returns True if the element is a React element with SummaryCardProps, false otherwise.\n */\nexport const isSummaryCardElement = (elem: unknown): elem is ReactElement<SummaryCardProps> => {\n  const asSummaryCard = elem as ReactElement<SummaryCardProps>;\n\n  if (asSummaryCard?.type === SummaryCard) {\n    return true;\n  }\n\n  if (asSummaryCard?.type === SkeletonSummaryCard) {\n    return true;\n  }\n\n  // evil displayName check\n  const typeAsFC = (elem as ReactElement).type as FC;\n  return typeAsFC.displayName === 'SummaryCard' || typeAsFC.displayName === 'SkeletonSummaryCard';\n};\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery } from '../../../constants';\nimport { m } from '../../../motif';\n\nexport const heroMediaCss = css`\n  /* Setting height so that we reserve the space for the video/carousel. */\n  max-height: 650px;\n\n  /* Limiting the width to at least allow for 1 tile. */\n  min-width: 274px;\n  max-width: 100%;\n\n  /* Matches the padding on the Hero Text container. */\n  padding-inline: ${m('--spacing-xxl')};\n\n  /* TODO: Fix this for the case where VIDEOS overflow */\n  overflow: visible;\n\n  ${mobileMediaQuery} {\n    height: unset;\n  }\n\n  /* Limits the height of the video wrapper. Without this max-height is ignored */\n  * {\n    max-height: 650px;\n  }\n`;\n\nexport const heroWideMediaCss = css`\n  padding-inline: 0;\n`;\n\nexport const compactHeroMediaCss = css`\n  max-height: 350px;\n\n  /* Limits the height of the video wrapper. Without this max-height is ignored */\n  * {\n    max-height: 350px;\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC, ReactNode } from 'react';\nimport { memo, useContext } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { OnActivateHandler } from '../../types/activationEvents';\nimport { PrimitivesContext } from '../Primitives';\nimport { hyperLinkCss } from './Hyperlink.styled';\n\nexport interface HyperlinkProps {\n  link?: string;\n  target?: string;\n  onClick?: OnActivateHandler;\n  children?: ReactNode;\n}\n\nexport const Hyperlink: FC<HyperlinkProps> = memo(({ children, link, target, onClick }) => {\n  useMotifStyles(MotifComponent.HYPERLINK);\n  const { Anchor } = useContext(PrimitivesContext);\n\n  return (\n    <Anchor\n      href={link}\n      target={target}\n      className={cx(MotifComponent.HYPERLINK, hyperLinkCss)}\n      onClick={onClick}\n    >\n      {children}\n    </Anchor>\n  );\n});\n\nHyperlink.displayName = 'Hyperlink';\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery } from '../../constants';\nimport { m } from '../../motif';\n\nexport const hyperLinkCss = css`\n  cursor: pointer;\n\n  /** TODO: Troubleshoot this w/ designers. */\n  text-decoration: underline;\n\n  color: ${m('--hyperlink-color')};\n  :hover {\n    color: ${m('--hyperlink-hover-color')};\n    border-bottom: 0;\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--hyperlink-mobile-font-size')};\n    font-weight: ${m('--hyperlink-mobile-font-weight')};\n    letter-spacing: ${m('--hyperlink-mobile-font-letter-spacing')};\n    line-height: ${m('--hyperlink-mobile-font-line-height')};\n  }\n\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--hyperlink-desktop-font-size')};\n    font-weight: ${m('--hyperlink-desktop-font-weight')};\n    letter-spacing: ${m('--hyperlink-desktop-font-letter-spacing')};\n    line-height: ${m('--hyperlink-desktop-font-line-height')};\n  }\n`;\n", "import { css, cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps, ImageSources } from '../../types';\nimport type { OnActivateHandler } from '../../types/activationEvents';\nimport { Picture } from '../Picture/Picture';\nimport { PrimitivesContext } from '../Primitives';\n\ninterface ImageButtonProps extends BaseComponentProps {\n  height?: number;\n  imgSrcs?: ImageSources;\n  url?: string;\n  width?: number;\n  onClick?: OnActivateHandler;\n  altText?: string;\n  pictureClassName?: string;\n}\n\nconst imageButtonCss = css`\n  background: none;\n  border: none;\n  cursor: pointer;\n  outline: inherit;\n`;\n\nexport const ImageButton: FC<ImageButtonProps> = ({\n  height,\n  imgSrcs,\n  url,\n  width,\n  onClick,\n  altText,\n  pictureClassName,\n  className,\n}) => {\n  useMotifStyles(MotifComponent.IMAGE_BUTTON);\n  const { Anchor } = useContext(PrimitivesContext);\n  return url ? (\n    <Anchor href={url} className={cx(MotifComponent.IMAGE_BUTTON, className)}>\n      <Picture\n        className={pictureClassName}\n        altText={altText}\n        height={height}\n        width={width}\n        imgSrcs={imgSrcs}\n      />\n    </Anchor>\n  ) : (\n    <button\n      className={cx(MotifComponent.IMAGE_BUTTON, imageButtonCss, className)}\n      onClick={onClick}\n    >\n      <Picture\n        className={pictureClassName}\n        altText={altText}\n        height={height}\n        width={width}\n        imgSrcs={imgSrcs}\n      />\n    </button>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { m } from '../../motif/m';\n\nexport const latestPostItemWrapperCss = css`\n  width: 100%;\n  margin-top: ${m('--spacing-xs')};\n  padding: 0 0 ${m('--spacing-m')};\n`;\n\nexport const latestPostItemTitleCss = css`\n  font-size: 2rem;\n  font-weight: 600;\n  line-height: 2.5rem;\n  margin-bottom: 0;\n\n  :hover {\n    text-decoration: underline;\n  }\n\n  a {\n    /* TODO: See if this should be hyperlink color or its own */\n    color: ${m('--foreground-color')};\n    text-decoration: none;\n  }\n`;\n", "import type { FC } from 'react';\n\nimport { Alignment } from '../../constants';\nimport { AuthorByline } from '../AuthorByline';\nimport { Block } from '../Block';\nimport { Category } from '../Category';\nimport { Content } from '../Content';\nimport { latestPostItemTitleCss, latestPostItemWrapperCss } from './styles';\nimport type { LatestPostsProps } from './types';\n\nexport const LatestPosts: FC<LatestPostsProps> = ({\n  anchorId,\n  title,\n  items,\n  cta,\n  backgroundColor,\n  scrollSnap,\n  className,\n  preChildren,\n  postChildren,\n}) => {\n  const latestPostsBody = (\n    <>\n      {items.map((item, index) => (\n        <article data-test-id=\"latest-post-item\" className={latestPostItemWrapperCss} key={index}>\n          {item.category && <Category title={item.category} />}\n          <div className={latestPostItemTitleCss}>{item.title}</div>\n          {(item.author || item.date) && <AuthorByline author={item.author} date={item.date} />}\n          <hr />\n        </article>\n      ))}\n    </>\n  );\n\n  return (\n    <Block\n      title={title}\n      titleAlignment={Alignment.Center}\n      anchorId={anchorId}\n      className={className}\n      fullHeight={scrollSnap}\n      backgroundColor={backgroundColor}\n      maxColumns={1}\n      preChildren={preChildren}\n      postChildren={postChildren}\n    >\n      <Content body={latestPostsBody} callsToAction={cta ? [cta] : undefined} />\n    </Block>\n  );\n};\n", "import { css, cx } from '@emotion/css';\n\nimport { ZIndex } from '../../constants';\nimport { m, MotifComponent, useMotifStyles } from '../../motif';\n\nexport const keyframesAnimationCss = css`\n  @keyframes loader-animation {\n    0% {\n      left: -60%;\n    }\n    50% {\n      left: 60%;\n    }\n    100% {\n      left: -60%;\n    }\n  }\n`;\n\nexport const loadingBarContainerCss = css`\n  position: absolute;\n  height: 3.75px;\n  width: 100%;\n  overflow: hidden;\n`;\n\nexport const barCss = css`\n  position: relative;\n  height: 5px;\n  z-index: ${ZIndex.LOADING_BAR};\n  width: 75%;\n  margin: 0;\n  background: linear-gradient(\n    90deg,\n    transparent 0%,\n    ${m('--loading-bar-left-color')} 14%,\n    ${m('--loading-bar-right-color')} 86%,\n    transparent 100%\n  );\n\n  animation-name: loader-animation;\n  animation-duration: 2s;\n  animation-iteration-count: infinite;\n  animation-timing-function: ease-in-out;\n`;\n\n/** Creates the Loading Bar component */\nexport const LoadingBar: React.FC<{ className?: string }> = ({ className }) => {\n  useMotifStyles(MotifComponent.LOADING_BAR);\n\n  return (\n    <div\n      className={cx(\n        MotifComponent.LOADING_BAR,\n        loadingBarContainerCss,\n        keyframesAnimationCss,\n        className\n      )}\n    >\n      <hr className={barCss} />\n    </div>\n  );\n};\n", "import { css, cx } from '@emotion/css';\nimport type { FC, ReactNode } from 'react';\nimport { useContext } from 'react';\n\nimport { mobileMediaQuery } from '../../constants';\nimport { actionCss } from '../../motif';\nimport { m } from '../../motif/m';\nimport type { ImageSources } from '../../types';\nimport type { OnActivateHandler } from '../../types/activationEvents';\nimport { globalHeaderHeight } from '../GlobalHeader/GlobalHeader.constants';\nimport { Picture } from '../Picture';\nimport { PrimitivesContext } from '../Primitives';\nimport { GhostSvg } from './Logo.Ghost';\nimport { SnapIncLogoSvg } from './Logo.SnapInc';\n\nconst rootCss = css`\n  text-decoration: none;\n  display: flex;\n  padding-top: 0;\n  padding-bottom: 0;\n  cursor: pointer;\n`;\n\nconst customLogoCss = css`\n  max-width: 100%;\n  /* Prevents large logo images from exceeding header height */\n  max-height: calc(${globalHeaderHeight}px - ${m('--spacing-m')});\n\n  ${mobileMediaQuery} {\n    max-width: 100%;\n  }\n  display: block;\n`;\n\nconst labelCss = css`\n  margin-left: ${m('--spacing-m')};\n\n  *[dir='rtl'] & {\n    margin-right: ${m('--spacing-m')};\n    margin-left: 0;\n  }\n\n  ${actionCss}\n`;\n\ntype LogoType = 'Ghost' | 'SnapInc';\n\nexport interface LogoProps {\n  label?: ReactNode;\n  /** @deprecated Use imgSrcs in favor of imageSource to utilize next gen image formats */\n  imageSource?: string;\n  /** @deprecated Background color is no longer used. */\n  backgroundColor?: string;\n  url?: string;\n  onClick?: OnActivateHandler;\n  isSelected?: boolean;\n  className?: string;\n  innerLogoClassName?: string;\n  imgSrcs?: ImageSources;\n  logoType?: LogoType;\n  openInNewTab?: boolean;\n}\n\nexport const Logo: FC<LogoProps> = ({\n  imgSrcs,\n  imageSource,\n  label,\n  url = '/',\n  onClick,\n  innerLogoClassName,\n  className,\n  openInNewTab,\n  logoType = 'Ghost',\n}) => {\n  const { Anchor } = useContext(PrimitivesContext);\n\n  let logo: ReactNode;\n\n  if (imgSrcs) {\n    logo = <Picture altText=\"logo\" imgClassName={customLogoCss} imgSrcs={imgSrcs} />;\n  } else if (imageSource) {\n    logo = <Picture altText=\"logo\" imgClassName={customLogoCss} defaultSrc={imageSource} />;\n  } else if (logoType === 'SnapInc') {\n    logo = <SnapIncLogoSvg className={innerLogoClassName} />;\n  } else {\n    logo = <GhostSvg className={innerLogoClassName} width={32} height={32} />;\n  }\n\n  return (\n    <Anchor\n      href={url}\n      onClick={onClick}\n      className={cx(className, rootCss)}\n      {...(openInNewTab ? { target: '_blank', rel: 'noopener' } : {})}\n    >\n      {logo}\n      {label && <span className={labelCss}>{label}</span>}\n    </Anchor>\n  );\n};\n\nLogo.displayName = 'Logo';\n", "import { css } from '@emotion/css';\n\nimport { m } from '../../motif/m';\n\nexport const ghostOutlineCss = css`\n  fill: ${m('--logo-stroke-color')};\n`;\n\nexport const ghostCss = css`\n  fill: ${m('--logo-fill-color')};\n`;\n\nexport const snapLogoCss = css`\n  fill: ${m('--logo-stroke-color')};\n  fill-rule: evenodd;\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { ghostCss, ghostOutlineCss } from './Logo.styles';\n\nexport interface GhostProps {\n  className?: string;\n  width: number;\n  height: number;\n  /** @deprecated Background color is no longer used. */\n  backgroundColor?: string;\n}\n\nexport const GhostSvg: FC<GhostProps> = ({ className, width, height }) => {\n  useMotifStyles(MotifComponent.LOGO);\n\n  return (\n    <svg\n      version=\"1.1\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      x=\"0px\"\n      y=\"0px\"\n      viewBox=\"0 0 500 500\"\n      className={cx(MotifComponent.LOGO, className)}\n      width={width}\n      height={height}\n    >\n      <g id=\"Layer_1\">\n        <g>\n          <g>\n            <path\n              className={ghostCss}\n              d=\"M484.6,369.3c-2-6.8-11.9-11.6-11.9-11.6l0,0c-0.9-0.5-1.7-0.9-2.4-1.3c-16.4-7.9-30.8-17.4-43.1-28.2\n\t\t\t\tc-9.8-8.7-18.2-18.2-25-28.4c-8.2-12.4-12.1-22.8-13.8-28.4c-0.9-3.7-0.8-5.1,0-7c0.6-1.6,2.5-3.1,3.4-3.8\n\t\t\t\tc5.5-3.9,14.4-9.7,19.9-13.2c4.7-3.1,8.8-5.7,11.2-7.4c7.7-5.4,12.9-10.8,16-16.7c4-7.6,4.5-16,1.4-24.3\n\t\t\t\tc-4.2-11.1-14.6-17.8-27.8-17.8c-2.9,0-6,0.3-9,1c-7.6,1.6-14.8,4.3-20.8,6.7c-0.4,0.2-0.9-0.2-0.9-0.6\n\t\t\t\tc0.6-14.9,1.3-34.9-0.3-53.9c-1.5-17.2-5-31.7-10.8-44.3c-5.8-12.7-13.4-22.1-19.3-28.9c-5.7-6.5-15.5-16-30.5-24.5\n\t\t\t\tc-21-12-45-18.1-71.1-18.1c-26.1,0-50,6.1-71.1,18.1c-15.8,9-25.9,19.2-30.5,24.5c-5.9,6.8-13.5,16.2-19.3,28.9\n\t\t\t\tc-5.8,12.6-9.3,27.1-10.8,44.3c-1.6,19.1-1,37.5-0.3,53.9c0,0.5-0.5,0.8-0.9,0.6c-6-2.3-13.2-5-20.7-6.7c-3-0.7-6-1-9-1\n\t\t\t\tc-13.2,0-23.6,6.7-27.8,17.8c-3.1,8.3-2.7,16.7,1.4,24.3c3.1,5.9,8.4,11.4,16,16.7c2.4,1.7,6.4,4.3,11.2,7.4\n\t\t\t\tc5.3,3.5,14,9.1,19.5,13c0.7,0.5,3,2.3,3.8,4.1c0.8,2,0.9,3.4-0.1,7.3c-1.7,5.7-5.6,15.9-13.7,28.1c-6.8,10.2-15.2,19.7-25,28.4\n\t\t\t\tC60.5,339,46,348.5,29.7,356.5c-0.8,0.4-1.7,0.8-2.7,1.4l0,0c0,0-9.8,5-11.6,11.4c-2.7,9.5,4.5,18.4,11.9,23.2\n\t\t\t\tc12.1,7.8,26.9,12,35.4,14.3c2.4,0.6,4.5,1.2,6.5,1.8c1.2,0.4,4.3,1.6,5.6,3.3c1.7,2.1,1.9,4.8,2.5,7.8v0c0.9,5,3,11.2,9.2,15.5\n\t\t\t\tc6.8,4.7,15.5,5,26.4,5.5c11.5,0.4,25.8,1,42.1,6.4c7.6,2.5,14.4,6.7,22.4,11.6c16.6,10.2,37.2,22.9,72.5,22.9\n\t\t\t\tc35.3,0,56.1-12.8,72.8-23c7.9-4.8,14.7-9,22.1-11.5c16.3-5.4,30.6-5.9,42.1-6.4c11-0.4,19.6-0.7,26.4-5.5\n\t\t\t\tc6.6-4.6,8.6-11.4,9.4-16.6c0.5-2.5,0.8-4.8,2.3-6.7c1.2-1.6,4.1-2.7,5.4-3.2c2-0.6,4.2-1.2,6.7-1.9c8.6-2.3,19.3-5,32.3-12.4\n\t\t\t\tC485.2,385.6,486.3,374.7,484.6,369.3z\"\n            />\n          </g>\n          <path\n            className={ghostOutlineCss}\n            d=\"M498.2,364c-3.5-9.5-10.1-14.5-17.6-18.7c-1.4-0.8-2.7-1.5-3.8-2c-2.2-1.2-4.5-2.3-6.8-3.5\n\t\t\tc-23.5-12.5-41.8-28.2-54.6-46.8c-4.3-6.3-7.3-12-9.4-16.6c-1.1-3.1-1-4.9-0.3-6.5c0.6-1.2,2.2-2.5,3-3.1c4-2.7,8.2-5.4,11-7.2\n\t\t\tc5-3.3,9-5.8,11.6-7.6c9.6-6.7,16.4-13.9,20.6-21.9c5.9-11.3,6.7-24.2,2.1-36.3c-6.4-16.8-22.3-27.3-41.5-27.3\n\t\t\tc-4,0-8,0.4-12.1,1.3c-1.1,0.2-2.1,0.5-3.1,0.7c0.2-11.4-0.1-23.6-1.1-35.6c-3.6-42-18.3-64-33.7-81.6c-6.4-7.3-17.5-18-34.2-27.6\n\t\t\tC305.1,10.6,278.8,3.9,250,3.9c-28.7,0-55,6.7-78.3,20c-16.8,9.6-27.9,20.3-34.3,27.6c-15.3,17.5-30,39.6-33.7,81.6\n\t\t\tc-1,11.9-1.3,24.1-1.1,35.6c-1-0.3-2.1-0.5-3.1-0.7c-4-0.9-8.1-1.3-12.1-1.3c-19.3,0-35.2,10.4-41.5,27.3\n\t\t\tc-4.6,12.1-3.8,25,2.1,36.3c4.2,8,11,15.2,20.6,21.9c2.6,1.8,6.6,4.4,11.6,7.6c2.7,1.8,6.7,4.3,10.6,6.9c0.6,0.4,2.7,1.9,3.4,3.4\n\t\t\tc0.8,1.7,0.8,3.5-0.4,6.8c-2.1,4.6-5,10.1-9.2,16.3c-12.4,18.2-30.3,33.6-53,46c-12,6.4-24.6,10.6-29.9,25\n\t\t\tc-4,10.9-1.4,23.2,8.8,33.6l0,0c3.3,3.6,7.5,6.8,12.8,9.7c12.4,6.9,23,10.2,31.3,12.5c1.5,0.4,4.8,1.5,6.3,2.8\n\t\t\tc3.7,3.2,3.2,8.1,8.1,15.2c3,4.4,6.4,7.4,9.2,9.4c10.3,7.1,21.9,7.6,34.2,8c11.1,0.4,23.7,0.9,38.1,5.7c6,2,12.1,5.8,19.3,10.2\n\t\t\tc17.2,10.6,40.8,25,80.2,25c39.4,0,63.1-14.5,80.5-25.2c7.1-4.4,13.3-8.1,19-10c14.4-4.7,27-5.2,38.1-5.7\n\t\t\tc12.3-0.5,23.9-0.9,34.2-8c3.2-2.2,7.3-5.9,10.5-11.5c3.5-6,3.4-10.2,6.8-13.2c1.4-1.2,4.3-2.2,5.9-2.7\n\t\t\tc8.4-2.3,19.1-5.7,31.7-12.6c5.6-3.1,10-6.5,13.4-10.3c0,0,0.1-0.1,0.1-0.1C499.7,386.6,502.1,374.6,498.2,364z M463.2,382.8\n\t\t\tc-21.4,11.8-35.6,10.5-46.6,17.7c-9.4,6-3.8,19.1-10.7,23.8c-8.4,5.8-33.2-0.4-65.1,10.2c-26.4,8.7-43.2,33.8-90.7,33.8\n\t\t\tc-47.6,0-64-25-90.7-33.8c-32-10.6-56.8-4.4-65.1-10.2c-6.8-4.7-1.3-17.7-10.7-23.8c-11-7.1-25.3-5.9-46.6-17.7\n\t\t\tc-13.6-7.5-5.9-12.2-1.4-14.4c77.4-37.5,89.8-95.4,90.3-99.7c0.7-5.2,1.4-9.3-4.3-14.6c-5.5-5.1-30.1-20.3-36.9-25\n\t\t\tc-11.3-7.9-16.2-15.7-12.6-25.4c2.5-6.7,8.8-9.2,15.4-9.2c2,0,4.1,0.2,6.1,0.7c12.4,2.7,24.4,8.9,31.3,10.6c1,0.2,1.8,0.3,2.6,0.3\n\t\t\tc3.7,0,5-1.9,4.8-6.1c-0.8-13.5-2.7-39.9-0.6-64.5c2.9-33.9,13.9-50.7,26.9-65.6c6.2-7.1,35.5-38.1,91.6-38.1\n\t\t\tc56.2,0,85.3,30.9,91.6,38.1c13,14.9,23.9,31.7,26.9,65.6c2.1,24.6,0.3,51-0.6,64.5c-0.3,4.5,1.1,6.1,4.8,6.1\n\t\t\tc0.8,0,1.6-0.1,2.6-0.3c6.9-1.7,19-7.9,31.3-10.6c2-0.4,4.1-0.7,6.1-0.7c6.6,0,12.8,2.5,15.4,9.2c3.7,9.7-1.3,17.5-12.6,25.4\n\t\t\tc-6.8,4.7-31.3,19.9-36.9,25c-5.7,5.3-5,9.4-4.3,14.6c0.6,4.4,12.9,62.2,90.3,99.7C469.1,370.6,476.8,375.3,463.2,382.8z\"\n          />\n        </g>\n      </g>\n    </svg>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps } from '../../types';\nimport { snapLogoCss } from './Logo.styles';\n\ninterface SnapIncLogoProps extends BaseComponentProps {}\n\nexport const SnapIncLogoSvg: FC<SnapIncLogoProps> = ({ className }) => {\n  useMotifStyles(MotifComponent.LOGO);\n\n  return (\n    <svg\n      className={cx(MotifComponent.LOGO, className, snapLogoCss)}\n      width=\"89\"\n      height=\"22\"\n      viewBox=\"0 0 89 22\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n    >\n      <g>\n        {/* eslint-disable-next-line max-len */}\n        <path d=\"M.261 15.794C.247 14.39.126 12.767.003 11.526a.513.513 0 0 1 .433-.559l.02-.003a.518.518 0 0 1 .58.38 5.99 5.99 0 0 0 .742 1.767c.308.484 1.386 2.155 3.65 2.155 1.65 0 2.86-1.166 2.86-2.64 0-1.362-1.1-1.912-3.255-2.726-.637-.264-1.297-.505-1.935-.791C2.218 8.69.15 7.723.15 5.039.15 2.05 2.548.29 5.605.29c.742 0 1.798.104 2.856.59.234.107.51.024.648-.192l.175-.276a.515.515 0 0 1 .422-.24.519.519 0 0 1 .53.48 55.8 55.8 0 0 0 .418 3.743.518.518 0 1 1-.994.255c-.276-.729-.432-1.07-.735-1.524-.725-.989-1.693-1.67-2.902-1.67-1.562 0-2.485 1.274-2.485 2.308 0 1.187 1.055 1.693 1.517 1.913.946.462 1.935.77 2.925 1.166 1.583.616 3.76 1.562 3.76 4.465 0 2.858-2.287 5.255-5.915 5.255-1.803 0-2.978-.57-3.66-1.003a.514.514 0 0 0-.714.17l-.195.322a.518.518 0 0 1-.402.246l-.037.003a.514.514 0 0 1-.556-.507M12.223 15.668c0-.219.157-.405.371-.441.332-.055.734-.198.795-.62.066-.507.066-1.826.066-2.156 0-.77-.022-2.023-.022-2.793 0-1.104-.37-1.407-.89-1.554a.445.445 0 0 1-.32-.429v-.052c0-.219.158-.403.373-.44 1.095-.192 2.751-.66 3.62-.96a.446.446 0 0 1 .57.283c.018.058.035.113.05.17a.447.447 0 0 0 .66.26c.83-.482 1.617-.84 2.776-.84.836 0 1.672.22 2.354.703 1.071.744 1.25 1.88 1.34 3.083v1.931c0 .33-.043 2.045-.043 2.42 0 .556.151.895.878 1.03a.442.442 0 0 1 .353.439.446.446 0 0 1-.475.446c-.623-.042-1.564-.069-3.11-.069-.872 0-1.353.024-1.8.063a.447.447 0 0 1-.487-.445v-.094c0-.201.135-.379.33-.43.643-.174.723-.481.704-1.82l-.044-3.431c-.022-1.055-.066-2.265-1.496-2.265-.595 0-1.056.218-1.5.553a.451.451 0 0 0-.184.374c.035 1.102.035 4.23.035 5.208 0 1.009.175 1.288.712 1.43.192.05.322.23.322.429v.058a.447.447 0 0 1-.475.447c-.747-.047-1.707-.077-3.506-.077-.692 0-1.094.022-1.469.058a.446.446 0 0 1-.488-.446v-.023zM31.379 12.006a.447.447 0 0 0-.56-.43c-.742.188-1.727.621-1.727 1.777 0 .594.308 1.253 1.144 1.253.426 0 .68-.129.947-.305a.444.444 0 0 0 .196-.37v-1.925zm5.082 2.544a.447.447 0 0 1 .041.66c-1.057 1.07-2.105 1.288-2.682 1.288a2.85 2.85 0 0 1-1.649-.55 2.385 2.385 0 0 1-.408-.42.44.44 0 0 0-.594-.102c-.605.393-1.854 1.093-3.242 1.093-2.024 0-2.507-1.363-2.507-2.176 0-2.513 3.867-3.564 5.618-3.878a.444.444 0 0 0 .364-.436c.002-.68.003-1.48-.089-1.756-.264-.77-1.143-.77-1.253-.77-.726 0-1.122.44-1.254.924-.066.286-.066.594-.132.88-.176.747-.792 1.033-1.341 1.033-.682 0-1.32-.44-1.32-1.253 0-1.628 3.013-2.948 5.74-2.948 1.891 0 3.276.616 3.276 2.442l-.043 4.904c-.022.374-.045 1.23.527 1.23.142 0 .276-.074.402-.172a.443.443 0 0 1 .546.007z\" />\n        {/* eslint-disable-next-line max-len */}\n        <path d=\"M42.65 15.002c1.627 0 2.22-2.265 2.22-3.76 0-1.584-.66-3.695-2.286-3.695-1.474 0-1.474 1.518-1.474 1.979 0 .506.023 2.969.023 3.519 0 .704 0 1.957 1.517 1.957zM37.482 9.79c.04-1.68-.2-2.076-.95-2.283a.425.425 0 0 1-.304-.412v-.11a.42.42 0 0 1 .372-.419c1.485-.159 3.056-.564 3.829-.774a.417.417 0 0 1 .52.32c.023.102.046.227.074.384a.421.421 0 0 0 .636.288c.863-.553 1.714-.842 2.794-.842 2.661 0 4.31 2.287 4.31 4.706 0 3.32-2.353 5.63-5.101 5.63-.843 0-1.457-.215-1.882-.444a.422.422 0 0 0-.625.368v2.538c0 .851.052 1.507.962 1.661a.416.416 0 0 1 .335.414.422.422 0 0 1-.432.422 150.558 150.558 0 0 0-3.262-.055c-.827 0-1.362.015-2.066.045a.422.422 0 0 1-.442-.42v-.055c0-.204.142-.387.344-.421.818-.14.888-.59.888-1.217.022-.418.022-1.715.022-2.199l-.022-7.125zM60.272 16.146c-.893-.066-1.477-.066-3.816-.066-1.28 0-1.791.015-2.54.068a.502.502 0 0 1-.11-.996c1.233-.173 1.286-.618 1.286-3.405V4.754c-.022-1.671-.043-2.177-.198-2.485-.166-.39-.427-.482-1.099-.594a.5.5 0 0 1-.418-.493c0-.308.232-.533.514-.525 1.236.033 2.473.05 3.708.05 1.24 0 2.035-.027 2.717-.05a.5.5 0 0 1 .082.997c-1.303.163-1.303.558-1.303 3.474l.022 6.817c.044 2.31.066 2.442.33 2.793.188.222.483.339.935.4a.5.5 0 0 1 .428.495.504.504 0 0 1-.538.513zM60.97 15.668c0-.219.157-.405.371-.441.332-.055.734-.198.795-.62.066-.507.066-1.826.066-2.156 0-.77-.022-2.023-.022-2.793 0-1.104-.37-1.407-.89-1.554a.445.445 0 0 1-.32-.429v-.052c0-.219.157-.403.373-.44 1.095-.192 2.75-.66 3.62-.96a.446.446 0 0 1 .57.283c.018.058.035.113.05.17a.447.447 0 0 0 .659.26c.83-.482 1.617-.84 2.777-.84.835 0 1.671.22 2.353.703 1.072.744 1.252 1.88 1.34 3.083.002.012.002.024.002.036v1.895c0 .33-.044 2.045-.044 2.42 0 .556.15.895.878 1.03a.442.442 0 0 1 .353.439.446.446 0 0 1-.476.446c-.622-.042-1.564-.069-3.109-.069-.873 0-1.353.024-1.8.063a.447.447 0 0 1-.487-.445v-.094c0-.201.135-.379.33-.43.643-.174.723-.481.704-1.82l-.044-3.431c-.023-1.055-.066-2.265-1.496-2.265-.595 0-1.057.218-1.501.553a.451.451 0 0 0-.183.374c.035 1.102.035 4.23.035 5.208 0 1.009.174 1.288.712 1.43.192.05.322.23.322.429v.058a.447.447 0 0 1-.475.447c-.747-.047-1.707-.077-3.506-.077-.692 0-1.094.022-1.469.058a.446.446 0 0 1-.488-.446v-.023zM83.847 13.754c.276.2.314.604.072.844a6.543 6.543 0 0 1-4.557 1.9c-3.145 0-5.454-2.178-5.454-5.169 0-3.144 2.683-5.167 5.96-5.167 2.155 0 4.2.945 4.2 2.529 0 .747-.637 1.385-1.385 1.385-.33 0-.726-.154-.968-.396-.198-.176-.242-.286-.66-1.231-.198-.418-.638-1.166-1.319-1.166-1.276 0-1.628 2.177-1.628 3.255 0 2.485 1.408 4.156 2.947 4.156.818 0 1.495-.376 2.096-.904a.558.558 0 0 1 .696-.036M86.884 12.539c1.078 0 2 .858 2 2.001 0 1.122-.922 1.98-1.978 1.98a1.96 1.96 0 0 1-1.98-1.936c0-1.363 1.056-2.045 1.958-2.045\" />\n      </g>\n    </svg>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useCallback, useState } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { VerticalAlignment } from '../../constants';\nimport { useIsMobile } from '../../hooks';\nimport { useDisableScrollOutside } from '../../hooks/useDisableBodyScroll';\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { dataSetToAttributes } from '../../utils';\nimport { IconButton } from '../IconButton';\nimport { IconButtonSize } from '../IconButton/IconButton.types';\nimport {\n  alignmentCss,\n  closeButtonCss,\n  isBlockingClassName,\n  modalBackdropCss,\n  modalContentCss,\n} from './styles';\nimport type { ModalProps } from './types';\n\n/**\n * Component that displays an element over an overlay.\n *\n * There is a close button that renders for blocking modals.\n *\n * Note that there's no border UI or anything like that. That's up to the children prop.\n */\nexport const Modal: FC<ModalProps> = ({\n  className,\n  contentClassName,\n  isBlocking = false,\n  verticalAlignment = VerticalAlignment.Middle,\n  onClose,\n  isDisplayed = false,\n  portalRoot,\n  style,\n  dataset,\n  children,\n  disableBackgroundScroll,\n  shouldAllowScrollEvent,\n}) => {\n  useMotifStyles(MotifComponent.MODAL);\n\n  // Using useState and useCallback to call `useDisableScrollOutside` after initial load\n  const [modalRef, setModalRef] = useState<HTMLElement | null>(null);\n  const isMobile = useIsMobile();\n  const captureModalRef = useCallback(\n    (node: HTMLElement | null) => setModalRef(node),\n    [setModalRef]\n  );\n\n  useDisableScrollOutside(\n    isBlocking || disableBackgroundScroll ? modalRef : null,\n    undefined,\n    shouldAllowScrollEvent\n  );\n\n  const modal = (\n    <section\n      className={cx(\n        MotifComponent.MODAL,\n        modalBackdropCss,\n        {\n          [isBlockingClassName]: isBlocking,\n        },\n        className\n      )}\n      style={style}\n      {...dataSetToAttributes(dataset)}\n    >\n      <div\n        className={cx(\n          modalContentCss,\n          'sdsm-modal-content',\n          alignmentCss[verticalAlignment],\n          contentClassName\n        )}\n        ref={captureModalRef}\n      >\n        {children}\n        {!isBlocking && (\n          <IconButton\n            size={isMobile ? IconButtonSize.MEDIUM : IconButtonSize.LARGE}\n            className={closeButtonCss}\n            iconName=\"cross\"\n            onClick={onClose}\n          />\n        )}\n      </div>\n    </section>\n  );\n\n  if (!portalRoot) {\n    return isDisplayed ? modal : null;\n  }\n\n  return isDisplayed ? createPortal(modal, portalRoot) : null;\n};\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, VerticalAlignment } from '../../constants';\nimport { ZIndex } from '../../constants/zIndex';\nimport { m } from '../../motif/m';\n\nexport const alignmentCss: Record<VerticalAlignment, string> = {\n  [VerticalAlignment.Top]: css`\n    left: 50%;\n    top: 0;\n    transform: translateX(-50%);\n  `,\n  [VerticalAlignment.Bottom]: css`\n    left: 50%;\n    bottom: 0;\n    transform: translateX(-50%);\n  `,\n  [VerticalAlignment.Middle]: css`\n    left: 50%;\n    top: 50%;\n    transform: translate(-50%, -50%);\n  `,\n};\n\nexport const modalBackdropCss = css`\n  position: fixed;\n  width: 100%;\n  height: 100%;\n  top: 0;\n  left: 0;\n  box-shadow: none;\n  z-index: ${ZIndex.MODAL};\n  overflow: hidden;\n  background: ${m('--modal-background-color')};\n  backdrop-filter: blur(4px);\n\n  /* ==========================================================================================================\n  Specific fix to address errant behavior in Safari browser when in fullscreen mode.\n    Bug Behavior: certain CSS transforms (like blur) will cause the browser to stop honoring z-index values.\n      Since this style is only applied when in full-screen mode, there should be no issues with\n      removing the background blur since it should be hidden by the fullscreen content.\n    Use Case: Rendering a Video player inside of the SDS-M Modal component.\n  ========================================================================================================== */\n  :-webkit-full-screen-ancestor:not(iframe) {\n    /* NOTE: Safari needs the prefix. See https://caniuse.com/css-backdrop-filter */\n    /* stylelint-disable-next-line property-no-vendor-prefix */\n    -webkit-backdrop-filter: unset;\n  }\n`;\n\nexport const modalContentCss = css`\n  position: fixed;\n`;\n\nexport const isBlockingClassName = 'sdsm-modal-blocking';\n\nexport const closeButtonCss = css`\n  --close-button-size: 40px;\n\n  ${mobileMediaQuery} {\n    right: 0;\n    --close-button-size: 32px;\n  }\n\n  /* Render over video content. */\n  z-index: ${ZIndex.MODAL + 1};\n\n  *[dir='rtl'] {\n    left: -80px;\n  }\n\n  position: absolute;\n  right: calc(0px - calc(var(--close-button-size) + ${m('--spacing-s')}));\n  top: calc(0px - calc(var(--close-button-size) + ${m('--spacing-s')}));\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport type React from 'react';\nimport { memo, useCallback, useMemo, useRef, useState } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { MosaicFilters } from './MosaicFilters';\nimport { MosaicLightBox } from './MosaicLightBox';\nimport { MosaicTile } from './MosaicTile';\nimport { containerCss, tileCss } from './styles';\nimport type { MosaicProps } from './types';\n\n/** A component that lays out videos onto a grid. */\nexport const Mosaic: FC<MosaicProps> = memo(\n  ({ tiles, columns, mobileColumns, filters, className, lightboxClassName }) => {\n    useMotifStyles(MotifComponent.MOSAIC);\n\n    const [currentTile, setCurrentTile] = useState<number>();\n    const [currentFilter, setCurrentFilter] = useState<string>('');\n    const [isRTL, setIsRTL] = useState(false);\n    const containerRef = useCallback((node: HTMLDivElement) => {\n      setIsRTL(!!node?.closest('[dir=\"rtl\"]'));\n    }, []);\n\n    const tileRefs = useRef<Array<HTMLDivElement | null>>([]);\n\n    const goNext = useCallback(() => {\n      if (currentTile === undefined) {\n        return;\n      }\n      const next = (currentTile + 1) % tiles.length;\n      setCurrentTile(next);\n    }, [currentTile, tiles.length]);\n    const goPrevious = useCallback(() => {\n      if (currentTile === undefined) {\n        return;\n      }\n      const previous = (currentTile - 1 + tiles.length) % tiles.length;\n      setCurrentTile(previous);\n    }, [currentTile, tiles.length]);\n\n    const close = () => {\n      setCurrentTile(undefined);\n    };\n\n    const handleKeyPress = useCallback(\n      (idx?: number) => (event: React.KeyboardEvent) => {\n        if (idx === undefined) {\n          return;\n        }\n\n        if (event.key === (isRTL ? 'ArrowLeft' : 'ArrowRight')) {\n          const next = (idx + 1) % tiles.length;\n\n          if (currentTile !== undefined) {\n            setCurrentTile(next);\n          }\n          tileRefs.current[next]?.focus();\n        }\n\n        if (event.key === (isRTL ? 'ArrowRight' : 'ArrowLeft')) {\n          const previous = (idx - 1 + tiles.length) % tiles.length;\n\n          if (currentTile !== undefined) {\n            setCurrentTile(previous);\n          }\n          tileRefs.current[previous]?.focus();\n        }\n\n        if (event.key === 'Enter' && currentTile === undefined) {\n          setCurrentTile(idx);\n        }\n\n        if (event.key === 'Escape' && currentTile !== undefined) {\n          setCurrentTile(undefined);\n        }\n      },\n      [currentTile, isRTL, tiles.length]\n    );\n\n    const filteredTiles = useMemo(() => {\n      if (!currentFilter) {\n        return tiles;\n      }\n\n      return tiles.filter(t => t.filters?.includes(currentFilter));\n    }, [currentFilter, tiles]);\n\n    return (\n      <div className={cx(MotifComponent.MOSAIC, className)}>\n        <MosaicLightBox\n          className={lightboxClassName}\n          tile={currentTile !== undefined ? tiles[currentTile] : undefined}\n          handleKeyPress={handleKeyPress(currentTile)}\n          goNext={goNext}\n          goPrevious={goPrevious}\n          close={close}\n        />\n        {filters?.length ? (\n          <MosaicFilters\n            filters={filters}\n            onSelectFilter={setCurrentFilter}\n            currentFilter={currentFilter}\n          />\n        ) : undefined}\n        <div\n          ref={containerRef}\n          className={cx(containerCss(columns, mobileColumns))}\n          data-active={currentTile !== undefined}\n        >\n          {filteredTiles.map((tile, i) => (\n            <div\n              className={cx(tileCss(tile.rows, tile.columns, tile.mobileRows, tile.mobileColumns))}\n              aria-pressed={currentTile === i}\n              role=\"button\"\n              tabIndex={0}\n              onClick={() => setCurrentTile(i)}\n              onKeyDown={handleKeyPress(i)}\n              key={`${i}-${tile.poster?.src}`}\n              ref={el => {\n                tileRefs.current[i] = el;\n              }}\n            >\n              <MosaicTile {...tile} />\n            </div>\n          ))}\n        </div>\n      </div>\n    );\n  }\n);\n\nMosaic.displayName = 'Mosaic';\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport type React from 'react';\nimport { memo, useCallback } from 'react';\n\nimport { ToggleButton } from '../ToggleButton';\nimport { filtersCss } from './styles';\nimport type { MosaicFiltersProps } from './types';\n\nexport const MosaicFilters: FC<MosaicFiltersProps> = memo(\n  ({ filters, currentFilter, onSelectFilter }) => {\n    const handleClick = useCallback(\n      (filterId: string) => () => {\n        onSelectFilter(currentFilter === filterId ? '' : filterId);\n      },\n      [currentFilter, onSelectFilter]\n    );\n\n    const handleKeyPress = useCallback(\n      (filterId: string) => (event: React.KeyboardEvent) => {\n        if (event.key === 'Enter') {\n          onSelectFilter(currentFilter === filterId ? '' : filterId);\n        }\n\n        if (event.key === 'Escape') {\n          onSelectFilter('');\n        }\n      },\n      [currentFilter, onSelectFilter]\n    );\n\n    return (\n      <div className={cx(filtersCss)}>\n        {filters.map(({ id, icon, text }, i) => {\n          return (\n            <div\n              key={`${id}-${i}`}\n              aria-pressed={currentFilter === id}\n              onKeyPress={handleKeyPress(id)}\n              role=\"button\"\n              tabIndex={0}\n            >\n              {icon && (\n                <ToggleButton\n                  icon={icon}\n                  onClick={handleClick(id)}\n                  selected={currentFilter === id}\n                  id={id}\n                  index={i}\n                  text={text}\n                />\n              )}\n            </div>\n          );\n        })}\n      </div>\n    );\n  }\n);\n\nMosaicFilters.displayName = 'MosaicFilters';\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery } from '../../constants';\nimport { ZIndex } from '../../constants/zIndex';\nimport { m } from '../../motif/m';\nimport { globalHeaderHeight } from '../GlobalHeader/GlobalHeader.constants';\n\nexport const filtersCss = css`\n  display: flex;\n  justify-content: center;\n  padding: ${m('--spacing-m')} 0;\n  margin-bottom: ${m('--spacing-xxxxl')};\n`;\n\nexport const containerCss = (columns?: number, mobileColumns?: number): string => css`\n  display: grid;\n  grid-auto-flow: dense;\n  transition: filter 0.2s;\n  grid-template-columns: repeat(${Math.max(1, columns ?? 4)}, 1fr);\n\n  ${mobileMediaQuery} {\n    grid-template-columns: repeat(${Math.max(1, mobileColumns ?? columns ?? 2)}, 1fr);\n    padding: 0 8px;\n  }\n`;\n\nexport const wrapperCss = css`\n  position: relative;\n  border-radius: ${m('--border-radius-xl')};\n  overflow: hidden;\n  z-index: 0;\n\n  &:before {\n    content: '';\n    display: block;\n    height: 0;\n  }\n\n  @media (hover: hover) {\n    transition: box-shadow 0.2s;\n\n    div[data-poster] {\n      transition: opacity 0.2s;\n    }\n\n    &:hover {\n      box-shadow: ${m('--box-shadow-xl')};\n\n      div[data-poster] {\n        opacity: 0;\n      }\n    }\n  }\n`;\n\nexport const coveredTileCss = css`\n  min-height: 100%;\n`;\n\nexport const overlayCss = css`\n  position: absolute;\n  inset: 0;\n  z-index: 1;\n  display: flex;\n  align-content: center;\n  flex-direction: row;\n  align-items: flex-end;\n  justify-content: flex-start;\n  padding: ${m('--spacing-xl')};\n  font-size: 16px;\n\n  [data-playing='true'] > & {\n    opacity: 0;\n  }\n\n  [data-overlay='true'] > & {\n    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42.19%, rgba(0, 0, 0, 0.9) 100%);\n  }\n\n  [data-overlay='false'] > & {\n    font-weight: 700;\n    font-size: 24px;\n    line-height: 38px;\n  }\n\n  ${mobileMediaQuery} {\n    padding: ${m('--spacing-m')};\n  }\n`;\n\nexport const titleCss = css`\n  flex: 1 1 auto;\n  width: 100%;\n  color: ${m('--mosaic-title-color')};\n`;\n\nexport const highlightCss = css`\n  display: inline-block;\n  color: ${m('--mosaic-highlight-color')};\n  white-space: nowrap;\n\n  &:after {\n    /* NOTE: Emotion has a rule that there has to be a space at the end here. */\n    content: '\\\\00a0 ';\n  }\n`;\n\nexport const durationCss = css`\n  margin-inline-start: auto;\n  flex: 0 0 auto;\n  color: ${m('--mosaic-duration-color')};\n`;\n\nexport const videoCss = css`\n  position: absolute;\n  inset: 0;\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n`;\n\nexport const playButtonCss = css`\n  position: absolute;\n  inset: 0;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  [data-playing='true'] > & {\n    opacity: 0;\n  }\n`;\n\nexport const tileCss = (\n  rows?: number,\n  columns?: number,\n  mobileRows?: number,\n  mobileColumns?: number\n): string => css`\n  cursor: pointer;\n  position: relative;\n  padding: calc(${m('--mosaic-grid-gap')} / 2);\n  grid-row: span ${Math.max(1, rows ?? 1)};\n  grid-column: span ${Math.max(1, columns ?? 1)};\n\n  ${mobileMediaQuery} {\n    padding: ${m('--spacing-xs')};\n    grid-row: span ${Math.max(1, mobileRows ?? rows ?? 1)};\n    grid-column: span ${Math.max(1, mobileColumns ?? columns ?? 1)};\n  }\n`;\n\nexport const posterCss = css`\n  position: absolute;\n  inset: 0;\n`;\n\nexport const posterImageCss = css`\n  position: absolute;\n  inset: 0;\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n  transition: opacity 0.2s;\n`;\n\n// TODO: This CSS is pretty hacky. But for some reason neither flex nor\n// grid layout the <video> component without very specific boundaries.\n// We should revisit when someoen has a week to dig into this.\nexport const lightBoxContainerCss = css`\n  /* This is set such that the 40px close button fits in the middle. */\n  --lightbox-horizontal-padding: 80px;\n  --lightbox-vertical-padding: 80px;\n\n  ${mobileMediaQuery} {\n    --lightbox-horizontal-padding: 24px;\n    --lightbox-vertical-padding: 80px;\n  }\n\n  width: calc(100vw - calc(2 * var(--lightbox-horizontal-padding)));\n  width: calc(100dvw - calc(2 * var(--lightbox-horizontal-padding)));\n  height: calc(100vh - calc(2 * var(--lightbox-vertical-padding)));\n  height: calc(100dvh - calc(2 * var(--lightbox-vertical-padding)));\n`;\n\nexport const lightBoxCss = css`\n  height: calc(100% + var(--lightbox-vertical-padding));\n  display: grid;\n  grid-template-rows: calc(100% - 100px) auto;\n  align-items: center;\n\n  margin: 0;\n  margin-bottom: calc(0px - var(--lightbox-vertical-padding));\n\n  z-index: ${ZIndex.MOSAIC_LIGHTBOX};\n  inset: ${globalHeaderHeight}px 0 0;\n  transition: opacity 0.2s;\n\n  &[data-active='false'] {\n    opacity: 0;\n    pointer-events: none;\n  }\n`;\n\nexport const lightBoxControlsCss = css`\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n`;\n\nexport const lightBoxCaptionCss = css`\n  color: ${m('--foreground-color')};\n  width: 100%;\n  padding: ${m('--spacing-l')};\n  text-align: center;\n`;\n\nexport const lightBoxVideoCss = css`\n  border-radius: ${m('--border-radius-l')};\n  overflow: hidden;\n  max-width: 100%;\n  max-height: 100%;\n  width: auto;\n  height: auto;\n`;\n\nexport const lightboxNavLeftIconCss = css`\n  margin: 5px 0;\n  transform: rotate(270deg);\n  [dir='rtl'] & {\n    transform: rotate(90deg);\n  }\n`;\n\nexport const lightboxNavRightIconCss = css`\n  margin: 5px -1px 5px 1px;\n  transform: rotate(270deg);\n  [dir='rtl'] & {\n    transform: rotate(90deg);\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useEffect } from 'react';\n\nimport { IconButton } from '../IconButton';\nimport { Media } from '../Media';\nimport { Modal } from '../Modal/Modal';\nimport {\n  lightBoxCaptionCss,\n  lightBoxContainerCss,\n  lightBoxControlsCss,\n  lightBoxCss,\n  lightboxNavLeftIconCss,\n  lightboxNavRightIconCss,\n  lightBoxVideoCss,\n} from './styles';\nimport type { MosaicLightBoxProps } from './types';\n\nexport const MosaicLightBox: FC<MosaicLightBoxProps> = ({\n  tile,\n  handleKeyPress,\n  goNext,\n  goPrevious,\n  close,\n  className,\n}) => {\n  useEffect(() => {\n    if (tile?.onOpen) {\n      tile.onOpen();\n    }\n  }, [tile]);\n\n  if (!tile || !tile.video) return null;\n\n  return (\n    <Modal\n      contentClassName={lightBoxContainerCss}\n      isBlocking={false}\n      isDisplayed={!!tile}\n      disableBackgroundScroll={true}\n      onClose={close}\n    >\n      <figure\n        data-test-id=\"sdsm-mosaic-lightbox\"\n        className={cx(lightBoxCss, className)}\n        key={`${tile.video.source}-${tile.title}-${tile.highlight}`}\n      >\n        <Media\n          loop={true}\n          className={lightBoxVideoCss}\n          {...tile.video}\n          showVideoControls={true}\n          autoplay={true}\n        />\n        <div data-test-id=\"sdsm-mosaic-lightbox-controls\" className={lightBoxControlsCss}>\n          <IconButton\n            iconName=\"chevron-up\"\n            iconClassName={lightboxNavLeftIconCss}\n            onClick={goPrevious}\n            onKeyDown={handleKeyPress}\n          />\n\n          <figcaption className={lightBoxCaptionCss}>{tile.title}</figcaption>\n\n          <IconButton\n            iconName=\"chevron-down\"\n            iconClassName={lightboxNavRightIconCss}\n            onClick={goNext}\n            onKeyDown={handleKeyPress}\n          />\n        </div>\n      </figure>\n    </Modal>\n  );\n};\n", "import { css, cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useCallback, useEffect, useRef, useState } from 'react';\n\nimport { mobileMediaQuery } from '../../constants';\nimport { Icon } from '../Icon';\nimport { Media } from '../Media';\nimport { isVideoPlaying } from '../Video/utils';\nimport {\n  coveredTileCss,\n  durationCss,\n  highlightCss,\n  overlayCss,\n  playButtonCss,\n  posterCss,\n  posterImageCss,\n  titleCss,\n  videoCss,\n  wrapperCss,\n} from './styles';\nimport type { MosaicTileProps } from './types';\n\nexport const MosaicTile: FC<MosaicTileProps> = ({\n  columns = 1,\n  rows = 1,\n  mobileColumns = columns,\n  mobileRows = rows,\n  cover = true,\n  poster,\n  preview,\n  showOverlay,\n  highlight,\n  title,\n  duration,\n  onEnter,\n  onLeave,\n}) => {\n  //TODO: use a callback instead of a ref as in https://reactjs.org/docs/hooks-faq.html#how-can-i-measure-a-dom-node\n  const containerRef = useRef<HTMLDivElement>(null);\n  const [playing, setPlaying] = useState(false);\n\n  const ratio = rows / columns;\n  const mobileRatio = mobileRows / mobileColumns;\n\n  const ratioCss = css`\n    &:before {\n      padding-bottom: ${ratio * 100}%;\n    }\n    ${mobileMediaQuery} {\n      &:before {\n        padding-bottom: ${mobileRatio * 100}%;\n      }\n    }\n  `;\n\n  const onTileEnter = useCallback(async () => {\n    onEnter?.();\n    //TODO: use a forwardRef here: Video component should forward the video tag ref\n    const video = containerRef.current?.querySelector('video');\n\n    if (!video) {\n      return;\n    }\n    await video.play();\n    setPlaying(true);\n  }, [containerRef, onEnter]);\n  const onTileLeave = useCallback(() => {\n    onLeave?.();\n    //TODO: ditto `onTileEnter`\n    const video = containerRef.current?.querySelector('video');\n\n    if (!video) {\n      return;\n    }\n\n    if (isVideoPlaying(video)) {\n      video.pause();\n    }\n    video.currentTime = 0;\n    setPlaying(false);\n  }, [containerRef, onLeave]);\n\n  useEffect(() => {\n    const container = containerRef.current;\n    container?.addEventListener('mouseenter', onTileEnter);\n    container?.addEventListener('mouseleave', onTileLeave);\n\n    return () => {\n      container?.removeEventListener('mouseenter', onTileEnter);\n      container?.removeEventListener('mouseleave', onTileLeave);\n    };\n  }, [containerRef, onTileEnter, onTileLeave]);\n\n  return (\n    <div\n      ref={containerRef}\n      className={cx(ratioCss, wrapperCss, cover ? coveredTileCss : undefined)}\n      data-playing={playing}\n      data-overlay={!!showOverlay}\n    >\n      {preview && (\n        <Media className={videoCss} isBackgroundVideo={true} autoPlay={false} {...preview} />\n      )}\n      {poster && (\n        <div className={posterCss} data-poster>\n          <img\n            alt={title ?? highlight ?? ''}\n            src={poster.src}\n            srcSet={poster.srcSet}\n            className={posterImageCss}\n          />\n        </div>\n      )}\n      <div className={overlayCss}>\n        {(title || highlight) && (\n          <div className={titleCss}>\n            {highlight && <div className={highlightCss}>{highlight}</div>}\n            {title}\n          </div>\n        )}\n        {duration && <div className={durationCss}>{duration}</div>}\n        <div className={playButtonCss}>\n          <Icon name=\"play-filled\" />\n        </div>\n      </div>\n    </div>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport noop from 'lodash/noop.js';\nimport type { FC, ReactNode } from 'react';\nimport type React from 'react';\nimport { useRef, useState } from 'react';\n\nimport type { VideoPanelAlignment } from '../../constants';\nimport { MediaMode } from '../../constants';\nimport { useMediaMode } from '../../hooks/useMediaMode';\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { IconName } from '../Icon';\nimport type { TogglePanelItem } from '../TogglePanel/TogglePanel';\nimport { TogglePanel } from '../TogglePanel/TogglePanel';\nimport {\n  backgroundImageCss,\n  multiVideoBlockCss,\n  slidePanelCss,\n  slidePanelMobileCss,\n  togglePanelWithBreakSpacerWrapCss,\n  togglePanelWrapCss,\n} from './styles';\nimport { VideoItem as VideoItemSDS } from './VideoItem';\n\nexport interface MediaItem {\n  url: string;\n  contentType?: string;\n}\n\nexport interface VideoItem extends TogglePanelItem {\n  posterSource?: string;\n  media: MediaItem;\n  thumbnailMedia: MediaItem;\n}\n\nexport interface MultiVideoBlockProps {\n  anchorId?: string;\n  children?: ReactNode | Array<ReactNode>;\n  className?: string;\n  hasVideoSync?: boolean;\n  id: string;\n  mobilePrimaryVideos: Array<VideoItem>;\n  mobileSecondaryVideos: Array<VideoItem>;\n  onVideoChange?: (index: number, isChecked: boolean) => void;\n  panelPosition: VideoPanelAlignment;\n  primaryVideos: Array<VideoItem>;\n  secondaryVideos: Array<VideoItem>;\n  style?: React.CSSProperties;\n  toggleButtonIcons: Array<IconName>;\n  togglePanelClassName?: string;\n  togglePanelLabel?: string;\n  preChildren?: ReactNode;\n  postChildren?: ReactNode;\n}\n\nexport const MultiVideoBlock: FC<MultiVideoBlockProps> = ({\n  anchorId,\n  children,\n  className,\n  hasVideoSync = true,\n  id,\n  mobilePrimaryVideos,\n  mobileSecondaryVideos,\n  onVideoChange = noop,\n  panelPosition,\n  primaryVideos,\n  style,\n  secondaryVideos,\n  toggleButtonIcons,\n  togglePanelClassName,\n  togglePanelLabel,\n  preChildren,\n  postChildren,\n}: MultiVideoBlockProps) => {\n  const [sliderChecked, setSliderChecked] = useState(false);\n  const [selectedVideoIndex, setSelectedVideoIndex] = useState(0);\n  const currentTime = useRef(0);\n  useMotifStyles(MotifComponent.MULTI_VIDEO_BLOCK);\n\n  const mode = useMediaMode();\n  const isMobile = mode === MediaMode.Mobile;\n\n  const videoGroup = isMobile\n    ? [mobilePrimaryVideos, mobileSecondaryVideos]\n    : [primaryVideos, secondaryVideos];\n  const videos = sliderChecked ? videoGroup[1]! : videoGroup[0]!;\n  const selectedVideo = videos[selectedVideoIndex];\n\n  const allVideos = isMobile\n    ? [...mobilePrimaryVideos, ...mobileSecondaryVideos]\n    : [...primaryVideos, ...secondaryVideos];\n\n  const handleButtonToggle = (index: number) => {\n    setSelectedVideoIndex(index);\n    currentTime.current = 0;\n    onVideoChange(index, sliderChecked);\n  };\n\n  const handleSliderCheck = (isSliderChecked: boolean) => {\n    setSliderChecked(isSliderChecked);\n    onVideoChange(selectedVideoIndex, isSliderChecked);\n  };\n\n  const prefetchedVideos = allVideos\n    .filter(video => video?.media?.url)\n    .map((video, index) => {\n      return <link key={index} rel=\"prefetch\" as=\"video\" href={video.media.url} />;\n    });\n\n  return (\n    <div\n      id={anchorId}\n      style={style}\n      className={cx(MotifComponent.MULTI_VIDEO_BLOCK, multiVideoBlockCss, className)}\n    >\n      {prefetchedVideos}\n\n      {/* This component will display with zero height, when used as a page block,\n      if a thumbnail is not selected in Contentful */}\n      {selectedVideo?.thumbnailMedia?.url && (\n        <img className={backgroundImageCss} src={selectedVideo.thumbnailMedia.url} />\n      )}\n\n      {selectedVideo && (\n        <VideoItemSDS\n          hasVideoSync={hasVideoSync}\n          isSelected={true}\n          video={selectedVideo}\n          currentTime={currentTime}\n        />\n      )}\n\n      {children}\n\n      {/* This container covers the whole component height and contains a 'BreakSpacer' at the top and/or bottom\n      (if a 'Break' overlays this component in a page) and an inner container that takes up the remaining height.\n      The 'TogglePanel' is positioned absolute in the inner container so that it can be offset by the 'BreakSpacer'. */}\n      <div className={togglePanelWithBreakSpacerWrapCss}>\n        {preChildren}\n        <div className={togglePanelWrapCss}>\n          <TogglePanel\n            id={id}\n            items={videos}\n            label={togglePanelLabel}\n            sliderChecked={sliderChecked}\n            onSliderUpdate={handleSliderCheck}\n            onButtonToggle={handleButtonToggle}\n            hasToggleSlider={!!videoGroup[1]?.length}\n            selectedId={(videos[selectedVideoIndex] as VideoItem).id}\n            className={cx(slidePanelCss[panelPosition], slidePanelMobileCss, togglePanelClassName)}\n            buttonIcons={toggleButtonIcons}\n          />\n        </div>\n        {postChildren}\n      </div>\n    </div>\n  );\n};\n\nMultiVideoBlock.displayName = 'MultiVideoBlock';\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, VideoPanelAlignment } from '../../constants';\n\nexport const slidePanelCss: Record<VideoPanelAlignment, string> = {\n  [VideoPanelAlignment.TopLeft]: css`\n    left: 2%;\n    top: 4%;\n  `,\n  [VideoPanelAlignment.TopRight]: css`\n    right: 2%;\n    top: 4%;\n  `,\n  [VideoPanelAlignment.TopCenter]: css`\n    left: 50%;\n    top: 4%;\n    transform: translateX(-50%);\n  `,\n  [VideoPanelAlignment.BottomLeft]: css`\n    left: 2%;\n    bottom: 4%;\n  `,\n  [VideoPanelAlignment.BottomRight]: css`\n    right: 2%;\n    bottom: 4%;\n  `,\n  [VideoPanelAlignment.BottomCenter]: css`\n    left: 50%;\n    bottom: 4%;\n    transform: translateX(-50%);\n  `,\n};\n\nexport const slidePanelMobileCss = css`\n  position: absolute;\n\n  ${mobileMediaQuery} {\n    left: 50%;\n    right: auto;\n    transform: translateX(-50%);\n  }\n`;\n\nexport const multiVideoBlockCss = css`\n  width: 100%;\n  height: 100%;\n  display: flex;\n  position: relative;\n`;\n\nexport const backgroundImageCss = css`\n  width: 100%;\n`;\n\nexport const togglePanelWithBreakSpacerWrapCss = css`\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  left: 0;\n  position: absolute;\n  top: 0;\n  width: 100%;\n`;\n\nexport const togglePanelWrapCss = css`\n  flex: 1;\n  position: relative;\n`;\n", "import { css, cx } from '@emotion/css';\nimport isNil from 'lodash/isNil.js';\nimport type { FC, MutableRefObject } from 'react';\nimport { useEffect, useRef } from 'react';\n\nimport { Video } from '../Video';\nimport type { VideoItem as VideoItemType } from './MultiVideoBlock';\n\ninterface VideoItemProps {\n  hasVideoSync: boolean;\n  isSelected: boolean;\n  video: VideoItemType;\n  currentTime: MutableRefObject<number>;\n}\n\nconst visibleVideoCss = css`\n  visibility: visible;\n`;\n\nconst videoCss = css`\n  position: absolute;\n  visibility: hidden;\n`;\n\nexport const VideoItem: FC<VideoItemProps> = ({ hasVideoSync, video, currentTime }) => {\n  const videoRef = useRef<HTMLVideoElement | null>(null);\n\n  useEffect(() => {\n    if (isNil(currentTime) || !videoRef.current || !hasVideoSync) {\n      return;\n    }\n\n    videoRef.current!.currentTime = currentTime.current;\n    // Reason: currentTime will cause the video to jump\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [video]);\n\n  useEffect(() => {\n    const video = videoRef.current;\n\n    if (!video || !hasVideoSync) {\n      return;\n    }\n\n    const handleTimeUpdate: EventListener = event => {\n      const video = event.target as HTMLVideoElement;\n      currentTime.current = video.currentTime;\n    };\n\n    video!.addEventListener('timeupdate', handleTimeUpdate);\n\n    return () => {\n      video!.removeEventListener('timeupdate', handleTimeUpdate);\n    };\n  }, [currentTime, video, hasVideoSync]);\n\n  return (\n    <Video\n      className={cx(videoCss, { [visibleVideoCss]: true })}\n      source={video.media?.url}\n      posterSource={video.thumbnailMedia?.url}\n      isBackgroundVideo\n      sourceType={video.media?.contentType}\n      ref={videoRef}\n    />\n  );\n};\n", "function _extends() {\n  _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n\n  return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\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\n  return target;\n}\n\nexport { _extends as extends, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose };\n", "import { unstable_batchedUpdates } from 'react-dom';\n\nvar isMenuOpen = function isMenuOpen(state) {\n  return !!state && state[0] === 'o';\n};\nvar batchedUpdates = unstable_batchedUpdates || function (callback) {\n  return callback();\n};\nvar values = Object.values || function (obj) {\n  return Object.keys(obj).map(function (key) {\n    return obj[key];\n  });\n};\nvar floatEqual = function floatEqual(a, b, diff) {\n  if (diff === void 0) {\n    diff = 0.0001;\n  }\n\n  return Math.abs(a - b) < diff;\n};\nvar getTransition = function getTransition(transition, name) {\n  return !!(transition && transition[name]) || transition === true;\n};\nvar safeCall = function safeCall(fn, arg) {\n  return typeof fn === 'function' ? fn(arg) : fn;\n};\nvar getName = function getName(component) {\n  return component && component['_szhsinMenu'];\n};\nvar defineName = function defineName(component, name) {\n  return name ? Object.defineProperty(component, '_szhsinMenu', {\n    value: name\n  }) : component;\n};\nvar applyHOC = function applyHOC(HOC) {\n  return function () {\n    return defineName(HOC.apply(void 0, arguments), getName(arguments.length <= 0 ? undefined : arguments[0]));\n  };\n};\nvar applyStatics = function applyStatics(sourceComponent) {\n  return function (wrappedComponent) {\n    return defineName(wrappedComponent, getName(sourceComponent));\n  };\n};\nvar attachHandlerProps = function attachHandlerProps(handlers, props) {\n  if (!props) return handlers;\n  var result = {};\n\n  var _loop = function _loop(_i2, _Object$keys2) {\n    var handlerName = _Object$keys2[_i2];\n    var handler = handlers[handlerName];\n    var propHandler = props[handlerName];\n    var attachedHandler = void 0;\n\n    if (typeof propHandler === 'function') {\n      attachedHandler = function attachedHandler(e) {\n        propHandler(e);\n        handler(e);\n      };\n    } else {\n      attachedHandler = handler;\n    }\n\n    result[handlerName] = attachedHandler;\n  };\n\n  for (var _i2 = 0, _Object$keys2 = Object.keys(handlers); _i2 < _Object$keys2.length; _i2++) {\n    _loop(_i2, _Object$keys2);\n  }\n\n  return result;\n};\nvar parsePadding = function parsePadding(paddingStr) {\n  if (typeof paddingStr !== 'string') return {\n    top: 0,\n    right: 0,\n    bottom: 0,\n    left: 0\n  };\n  var padding = paddingStr.trim().split(/\\s+/, 4).map(parseFloat);\n  var top = !isNaN(padding[0]) ? padding[0] : 0;\n  var right = !isNaN(padding[1]) ? padding[1] : top;\n  return {\n    top: top,\n    right: right,\n    bottom: !isNaN(padding[2]) ? padding[2] : top,\n    left: !isNaN(padding[3]) ? padding[3] : right\n  };\n};\nvar getScrollAncestor = function getScrollAncestor(node) {\n  while (node && node !== document.body) {\n    var _getComputedStyle = getComputedStyle(node),\n        overflow = _getComputedStyle.overflow,\n        overflowX = _getComputedStyle.overflowX,\n        overflowY = _getComputedStyle.overflowY;\n\n    if (/auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX)) return node;\n    node = node.parentNode;\n  }\n\n  return window;\n};\nvar validateIndex = function validateIndex(index, isDisabled, node) {\n  if (process.env.NODE_ENV !== 'production' && index === undefined && !isDisabled) {\n    var error = \"[React-Menu] Validate item '\" + (node && node.toString()) + \"' failed.\\nYou're probably creating wrapping components or HOC over MenuItem, SubMenu or FocusableItem.\\nTo create wrapping components, see: https://codesandbox.io/s/react-menu-wrapping-q0b59\\nTo create HOCs, see: https://codesandbox.io/s/react-menu-hoc-0bipn\";\n    throw new Error(error);\n  }\n};\nfunction commonProps(isDisabled, isHovering) {\n  return {\n    'aria-disabled': isDisabled || undefined,\n    tabIndex: isDisabled ? undefined : isHovering ? 0 : -1\n  };\n}\n\nexport { applyHOC, applyStatics, attachHandlerProps, batchedUpdates, commonProps, defineName, floatEqual, getName, getScrollAncestor, getTransition, isMenuOpen, parsePadding, safeCall, validateIndex, values };\n", "import { useMemo } from 'react';\n\nvar useBEM = function useBEM(_ref) {\n  var block = _ref.block,\n      element = _ref.element,\n      modifiers = _ref.modifiers,\n      className = _ref.className;\n  return useMemo(function () {\n    var blockElement = element ? block + \"__\" + element : block;\n    var classString = blockElement;\n\n    for (var _i2 = 0, _Object$keys2 = Object.keys(modifiers || {}); _i2 < _Object$keys2.length; _i2++) {\n      var name = _Object$keys2[_i2];\n      var value = modifiers[name];\n\n      if (value) {\n        classString += \" \" + blockElement + \"--\";\n        classString += value === true ? name : name + \"-\" + value;\n      }\n    }\n\n    var expandedClassName = typeof className === 'function' ? className(modifiers) : className;\n\n    if (typeof expandedClassName === 'string') {\n      expandedClassName = expandedClassName.trim();\n      if (expandedClassName) classString += \" \" + expandedClassName;\n    }\n\n    return classString;\n  }, [block, element, modifiers, className]);\n};\n\nexport { useBEM };\n", "import { createContext } from 'react';\n\nvar menuContainerClass = 'szh-menu-container';\nvar menuClass = 'szh-menu';\nvar menuButtonClass = 'szh-menu-button';\nvar menuArrowClass = 'arrow';\nvar menuItemClass = 'item';\nvar menuDividerClass = 'divider';\nvar menuHeaderClass = 'header';\nvar menuGroupClass = 'group';\nvar subMenuClass = 'submenu';\nvar radioGroupClass = 'radio-group';\nvar initialHoverIndex = -1;\nvar HoverIndexContext = /*#__PURE__*/createContext(initialHoverIndex);\nvar MenuListItemContext = /*#__PURE__*/createContext({});\nvar MenuListContext = /*#__PURE__*/createContext({});\nvar EventHandlersContext = /*#__PURE__*/createContext({});\nvar RadioGroupContext = /*#__PURE__*/createContext({});\nvar SettingsContext = /*#__PURE__*/createContext({});\nvar ItemSettingsContext = /*#__PURE__*/createContext({});\nvar Keys = /*#__PURE__*/Object.freeze({\n  ENTER: 'Enter',\n  ESC: 'Escape',\n  SPACE: ' ',\n  HOME: 'Home',\n  END: 'End',\n  LEFT: 'ArrowLeft',\n  RIGHT: 'ArrowRight',\n  UP: 'ArrowUp',\n  DOWN: 'ArrowDown'\n});\nvar HoverIndexActionTypes = /*#__PURE__*/Object.freeze({\n  RESET: 'HOVER_RESET',\n  SET: 'HOVER_SET',\n  UNSET: 'HOVER_UNSET',\n  INCREASE: 'HOVER_INCREASE',\n  DECREASE: 'HOVER_DECREASE',\n  FIRST: 'HOVER_FIRST',\n  LAST: 'HOVER_LAST'\n});\nvar SubmenuActionTypes = /*#__PURE__*/Object.freeze({\n  OPEN: 'SUBMENU_OPEN',\n  CLOSE: 'SUBMENU_CLOSE'\n});\nvar CloseReason = /*#__PURE__*/Object.freeze({\n  CLICK: 'click',\n  CANCEL: 'cancel',\n  BLUR: 'blur',\n  SCROLL: 'scroll'\n});\nvar FocusPositions = /*#__PURE__*/Object.freeze({\n  INITIAL: 'initial',\n  FIRST: 'first',\n  LAST: 'last'\n});\nvar MenuStateMap = /*#__PURE__*/Object.freeze({\n  entering: 'opening',\n  entered: 'open',\n  exiting: 'closing',\n  exited: 'closed'\n});\n\nexport { CloseReason, EventHandlersContext, FocusPositions, HoverIndexActionTypes, HoverIndexContext, ItemSettingsContext, Keys, MenuListContext, MenuListItemContext, MenuStateMap, RadioGroupContext, SettingsContext, SubmenuActionTypes, initialHoverIndex, menuArrowClass, menuButtonClass, menuClass, menuContainerClass, menuDividerClass, menuGroupClass, menuHeaderClass, menuItemClass, radioGroupClass, subMenuClass };\n", "import { extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport { useMemo } from 'react';\n\nvar isObject = function isObject(obj) {\n  return obj && typeof obj === 'object';\n};\n\nvar sanitiseKey = function sanitiseKey(key) {\n  return key[0] === '$' ? key.slice(1) : key;\n};\n\nvar useFlatStyles = function useFlatStyles(styles, modifiers) {\n  return useMemo(function () {\n    if (typeof styles === 'function') return styles(modifiers);\n    if (!isObject(styles)) return undefined;\n    if (!modifiers) return styles;\n    var style = {};\n\n    for (var _i2 = 0, _Object$keys2 = Object.keys(styles); _i2 < _Object$keys2.length; _i2++) {\n      var prop = _Object$keys2[_i2];\n      var value = styles[prop];\n\n      if (isObject(value)) {\n        var modifierValue = modifiers[sanitiseKey(prop)];\n\n        if (typeof modifierValue === 'string') {\n          for (var _i4 = 0, _Object$keys4 = Object.keys(value); _i4 < _Object$keys4.length; _i4++) {\n            var nestedProp = _Object$keys4[_i4];\n            var nestedValue = value[nestedProp];\n\n            if (isObject(nestedValue)) {\n              if (sanitiseKey(nestedProp) === modifierValue) {\n                style = _extends({}, style, nestedValue);\n              }\n            } else {\n              style[nestedProp] = nestedValue;\n            }\n          }\n        } else if (modifierValue) {\n          style = _extends({}, style, value);\n        }\n      } else {\n        style[prop] = value;\n      }\n    }\n\n    return style;\n  }, [styles, modifiers]);\n};\n\nexport { useFlatStyles };\n", "import { extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport { oneOfType, string, func, object, bool, number, oneOf, exact } from 'prop-types';\n\nvar stylePropTypes = function stylePropTypes(name) {\n  var _ref;\n\n  return _ref = {}, _ref[name ? name + \"ClassName\" : 'className'] = oneOfType([string, func]), _ref[name ? name + \"Styles\" : 'styles'] = oneOfType([object, func]), _ref;\n};\nvar menuPropTypes = /*#__PURE__*/_extends({\n  className: string\n}, /*#__PURE__*/stylePropTypes('menu'), /*#__PURE__*/stylePropTypes('arrow'), {\n  arrow: bool,\n  offsetX: number,\n  offsetY: number,\n  align: /*#__PURE__*/oneOf(['start', 'center', 'end']),\n  direction: /*#__PURE__*/oneOf(['left', 'right', 'top', 'bottom']),\n  position: /*#__PURE__*/oneOf(['auto', 'anchor', 'initial']),\n  overflow: /*#__PURE__*/oneOf(['auto', 'visible', 'hidden'])\n});\nvar rootMenuPropTypes = /*#__PURE__*/_extends({}, menuPropTypes, {\n  containerProps: object,\n  initialMounted: bool,\n  unmountOnClose: bool,\n  transition: /*#__PURE__*/oneOfType([bool, /*#__PURE__*/exact({\n    open: bool,\n    close: bool,\n    item: bool\n  })]),\n  transitionTimeout: number,\n  boundingBoxRef: object,\n  boundingBoxPadding: string,\n  reposition: /*#__PURE__*/oneOf(['auto', 'initial']),\n  repositionFlag: /*#__PURE__*/oneOfType([string, number]),\n  viewScroll: /*#__PURE__*/oneOf(['auto', 'close', 'initial']),\n  submenuOpenDelay: number,\n  submenuCloseDelay: number,\n  portal: bool,\n  theming: string,\n  onItemClick: func\n});\nvar uncontrolledMenuPropTypes = {\n  instanceRef: /*#__PURE__*/oneOfType([object, func]),\n  onMenuChange: func\n};\nvar menuDefaultProps = {\n  offsetX: 0,\n  offsetY: 0,\n  align: 'start',\n  direction: 'bottom',\n  position: 'auto',\n  overflow: 'visible'\n};\nvar rootMenuDefaultProps = /*#__PURE__*/_extends({}, menuDefaultProps, {\n  reposition: 'auto',\n  viewScroll: 'initial',\n  transitionTimeout: 500,\n  submenuOpenDelay: 300,\n  submenuCloseDelay: 150\n});\n\nexport { menuDefaultProps, menuPropTypes, rootMenuDefaultProps, rootMenuPropTypes, stylePropTypes, uncontrolledMenuPropTypes };\n", "import { objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose, extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport React, { forwardRef, useRef, useMemo } from 'react';\nimport { createPortal } from 'react-dom';\nimport { oneOf, exact, number, object, bool, oneOfType, string, func } from 'prop-types';\nimport { MenuList } from './MenuList.js';\nimport { useBEM } from '../hooks/useBEM.js';\nimport { CloseReason, menuContainerClass, SettingsContext, ItemSettingsContext, EventHandlersContext, MenuStateMap, Keys } from '../utils/constants.js';\nimport { rootMenuPropTypes, rootMenuDefaultProps } from '../utils/propTypes.js';\nimport { safeCall, attachHandlerProps, values, getTransition, isMenuOpen } from '../utils/utils.js';\n\nvar _excluded = [\"aria-label\", \"className\", \"containerProps\", \"initialMounted\", \"unmountOnClose\", \"transition\", \"transitionTimeout\", \"boundingBoxRef\", \"boundingBoxPadding\", \"reposition\", \"submenuOpenDelay\", \"submenuCloseDelay\", \"skipOpen\", \"viewScroll\", \"portal\", \"theming\", \"onItemClick\", \"onClose\"];\nvar ControlledMenu = /*#__PURE__*/forwardRef(function ControlledMenu(_ref, externalRef) {\n  var ariaLabel = _ref['aria-label'],\n      className = _ref.className,\n      containerProps = _ref.containerProps,\n      initialMounted = _ref.initialMounted,\n      unmountOnClose = _ref.unmountOnClose,\n      transition = _ref.transition,\n      transitionTimeout = _ref.transitionTimeout,\n      boundingBoxRef = _ref.boundingBoxRef,\n      boundingBoxPadding = _ref.boundingBoxPadding,\n      reposition = _ref.reposition,\n      submenuOpenDelay = _ref.submenuOpenDelay,\n      submenuCloseDelay = _ref.submenuCloseDelay,\n      skipOpen = _ref.skipOpen,\n      viewScroll = _ref.viewScroll,\n      portal = _ref.portal,\n      theming = _ref.theming,\n      onItemClick = _ref.onItemClick,\n      onClose = _ref.onClose,\n      restProps = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n  var containerRef = useRef(null);\n  var scrollingRef = useRef(null);\n  var anchorScrollingRef = useRef(null);\n  var anchorRef = restProps.anchorRef,\n      state = restProps.state;\n  var settings = useMemo(function () {\n    return {\n      initialMounted: initialMounted,\n      unmountOnClose: unmountOnClose,\n      transition: transition,\n      transitionTimeout: transitionTimeout,\n      boundingBoxRef: boundingBoxRef,\n      boundingBoxPadding: boundingBoxPadding,\n      rootMenuRef: containerRef,\n      rootAnchorRef: anchorRef,\n      scrollingRef: scrollingRef,\n      anchorScrollingRef: anchorScrollingRef,\n      reposition: reposition,\n      viewScroll: viewScroll\n    };\n  }, [initialMounted, unmountOnClose, transition, transitionTimeout, anchorRef, boundingBoxRef, boundingBoxPadding, reposition, viewScroll]);\n  var itemSettings = useMemo(function () {\n    return {\n      submenuOpenDelay: submenuOpenDelay,\n      submenuCloseDelay: submenuCloseDelay\n    };\n  }, [submenuOpenDelay, submenuCloseDelay]);\n  var eventHandlers = useMemo(function () {\n    return {\n      handleClick: function handleClick(event, isCheckorRadio) {\n        if (!event.stopPropagation) safeCall(onItemClick, event);\n        var keepOpen = event.keepOpen;\n\n        if (keepOpen === undefined) {\n          keepOpen = isCheckorRadio && event.key === Keys.SPACE;\n        }\n\n        if (!keepOpen) {\n          safeCall(onClose, {\n            value: event.value,\n            key: event.key,\n            reason: CloseReason.CLICK\n          });\n        }\n      },\n      handleClose: function handleClose(key) {\n        safeCall(onClose, {\n          key: key,\n          reason: CloseReason.CLICK\n        });\n      }\n    };\n  }, [onItemClick, onClose]);\n\n  var handleKeyDown = function handleKeyDown(_ref2) {\n    var key = _ref2.key;\n\n    switch (key) {\n      case Keys.ESC:\n        safeCall(onClose, {\n          key: key,\n          reason: CloseReason.CANCEL\n        });\n        break;\n    }\n  };\n\n  var handleBlur = function handleBlur(e) {\n    if (isMenuOpen(state) && !e.currentTarget.contains(e.relatedTarget || document.activeElement)) {\n      safeCall(onClose, {\n        reason: CloseReason.BLUR\n      });\n\n      if (skipOpen) {\n        skipOpen.current = true;\n        setTimeout(function () {\n          return skipOpen.current = false;\n        }, 300);\n      }\n    }\n  };\n\n  var itemTransition = getTransition(transition, 'item');\n  var modifiers = useMemo(function () {\n    return {\n      theme: theming,\n      itemTransition: itemTransition\n    };\n  }, [theming, itemTransition]);\n  var handlers = attachHandlerProps({\n    onKeyDown: handleKeyDown,\n    onBlur: handleBlur\n  }, containerProps);\n  var menuList = /*#__PURE__*/React.createElement(\"div\", _extends({}, containerProps, handlers, {\n    className: useBEM({\n      block: menuContainerClass,\n      modifiers: modifiers,\n      className: className\n    }),\n    ref: containerRef\n  }), state && /*#__PURE__*/React.createElement(SettingsContext.Provider, {\n    value: settings\n  }, /*#__PURE__*/React.createElement(ItemSettingsContext.Provider, {\n    value: itemSettings\n  }, /*#__PURE__*/React.createElement(EventHandlersContext.Provider, {\n    value: eventHandlers\n  }, /*#__PURE__*/React.createElement(MenuList, _extends({}, restProps, {\n    ariaLabel: ariaLabel || 'Menu',\n    externalRef: externalRef,\n    containerRef: containerRef,\n    onClose: onClose\n  }))))));\n\n  if (portal) {\n    return /*#__PURE__*/createPortal(menuList, document.body);\n  } else {\n    return menuList;\n  }\n});\nprocess.env.NODE_ENV !== \"production\" ? ControlledMenu.propTypes = /*#__PURE__*/_extends({}, rootMenuPropTypes, {\n  state: /*#__PURE__*/oneOf( /*#__PURE__*/values(MenuStateMap)),\n  anchorPoint: /*#__PURE__*/exact({\n    x: number,\n    y: number\n  }),\n  anchorRef: object,\n  skipOpen: object,\n  captureFocus: bool,\n  menuItemFocus: /*#__PURE__*/exact({\n    position: /*#__PURE__*/oneOfType([string, number]),\n    alwaysUpdate: bool\n  }),\n  onClose: func\n}) : void 0;\nControlledMenu.defaultProps = /*#__PURE__*/_extends({}, rootMenuDefaultProps, {\n  menuItemFocus: {}\n});\n\nexport { ControlledMenu };\n", "import { objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose, extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport React, { useState, useContext, useRef, useMemo, useReducer, useCallback, useEffect } from 'react';\nimport { flushSync } from 'react-dom';\nimport { SettingsContext, MenuListContext, initialHoverIndex, HoverIndexActionTypes, MenuListItemContext, HoverIndexContext, Keys, menuClass, CloseReason, FocusPositions, menuArrowClass, SubmenuActionTypes } from '../utils/constants.js';\nimport { cloneChildren } from '../utils/cloneChildren.js';\nimport { getScrollAncestor, floatEqual, attachHandlerProps, commonProps, isMenuOpen, getTransition, safeCall, batchedUpdates } from '../utils/utils.js';\nimport { getPositionHelpers } from '../positionUtils/getPositionHelpers.js';\nimport { positionContextMenu } from '../positionUtils/positionContextMenu.js';\nimport { positionMenu } from '../positionUtils/positionMenu.js';\nimport { useLayoutEffect as useIsomorphicLayoutEffect } from '../hooks/useIsomorphicLayoutEffect.js';\nimport { useBEM } from '../hooks/useBEM.js';\nimport { useFlatStyles } from '../hooks/useFlatStyles.js';\nimport { useCombinedRef } from '../hooks/useCombinedRef.js';\n\nvar _excluded = [\"ariaLabel\", \"menuClassName\", \"menuStyles\", \"arrowClassName\", \"arrowStyles\", \"anchorPoint\", \"anchorRef\", \"containerRef\", \"externalRef\", \"parentScrollingRef\", \"arrow\", \"align\", \"direction\", \"position\", \"overflow\", \"repositionFlag\", \"captureFocus\", \"state\", \"endTransition\", \"isDisabled\", \"menuItemFocus\", \"offsetX\", \"offsetY\", \"children\", \"onClose\"];\nvar MenuList = function MenuList(_ref) {\n  var ariaLabel = _ref.ariaLabel,\n      menuClassName = _ref.menuClassName,\n      menuStyles = _ref.menuStyles,\n      arrowClassName = _ref.arrowClassName,\n      arrowStyles = _ref.arrowStyles,\n      anchorPoint = _ref.anchorPoint,\n      anchorRef = _ref.anchorRef,\n      containerRef = _ref.containerRef,\n      externalRef = _ref.externalRef,\n      parentScrollingRef = _ref.parentScrollingRef,\n      arrow = _ref.arrow,\n      align = _ref.align,\n      direction = _ref.direction,\n      position = _ref.position,\n      overflow = _ref.overflow,\n      repositionFlag = _ref.repositionFlag,\n      _ref$captureFocus = _ref.captureFocus,\n      captureFocus = _ref$captureFocus === void 0 ? true : _ref$captureFocus,\n      state = _ref.state,\n      endTransition = _ref.endTransition,\n      isDisabled = _ref.isDisabled,\n      menuItemFocus = _ref.menuItemFocus,\n      offsetX = _ref.offsetX,\n      offsetY = _ref.offsetY,\n      children = _ref.children,\n      onClose = _ref.onClose,\n      restProps = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n  var _useState = useState({\n    x: 0,\n    y: 0\n  }),\n      menuPosition = _useState[0],\n      setMenuPosition = _useState[1];\n\n  var _useState2 = useState({}),\n      arrowPosition = _useState2[0],\n      setArrowPosition = _useState2[1];\n\n  var _useState3 = useState(),\n      overflowData = _useState3[0],\n      setOverflowData = _useState3[1];\n\n  var _useState4 = useState(direction),\n      expandedDirection = _useState4[0],\n      setExpandedDirection = _useState4[1];\n\n  var _useContext = useContext(SettingsContext),\n      transition = _useContext.transition,\n      boundingBoxRef = _useContext.boundingBoxRef,\n      boundingBoxPadding = _useContext.boundingBoxPadding,\n      rootMenuRef = _useContext.rootMenuRef,\n      rootAnchorRef = _useContext.rootAnchorRef,\n      scrollingRef = _useContext.scrollingRef,\n      anchorScrollingRef = _useContext.anchorScrollingRef,\n      reposition = _useContext.reposition,\n      viewScroll = _useContext.viewScroll;\n\n  var reposFlag = useContext(MenuListContext).reposSubmenu || repositionFlag;\n  var menuRef = useRef(null);\n  var arrowRef = useRef(null);\n  var prevOpen = useRef(false);\n  var latestMenuSize = useRef({\n    width: 0,\n    height: 0\n  });\n  var latestHandlePosition = useRef(function () {});\n  var isOpen = isMenuOpen(state);\n  var openTransition = getTransition(transition, 'open');\n  var closeTransition = getTransition(transition, 'close');\n\n  var _useMemo = useMemo(function () {\n    return cloneChildren(children);\n  }, [children]),\n      menuItems = _useMemo.items,\n      menuItemsCount = _useMemo.index,\n      descendOverflow = _useMemo.descendOverflow;\n\n  var reducer = function reducer(_ref2, action) {\n    var hoverIndex = _ref2.hoverIndex,\n        openSubmenuCount = _ref2.openSubmenuCount;\n    return {\n      hoverIndex: hoverIndexReducer(hoverIndex, action, menuItemsCount),\n      openSubmenuCount: submenuCountReducer(openSubmenuCount, action)\n    };\n  };\n\n  var _useReducer = useReducer(reducer, {\n    hoverIndex: initialHoverIndex,\n    openSubmenuCount: 0\n  }),\n      _useReducer$ = _useReducer[0],\n      hoverIndex = _useReducer$.hoverIndex,\n      openSubmenuCount = _useReducer$.openSubmenuCount,\n      dispatch = _useReducer[1];\n\n  var _useReducer2 = useReducer(function (c) {\n    return c + 1;\n  }, 1),\n      reposSubmenu = _useReducer2[0],\n      forceReposSubmenu = _useReducer2[1];\n\n  var handleKeyDown = function handleKeyDown(e) {\n    var handled = false;\n\n    switch (e.key) {\n      case Keys.HOME:\n        dispatch({\n          type: HoverIndexActionTypes.FIRST\n        });\n        handled = true;\n        break;\n\n      case Keys.END:\n        dispatch({\n          type: HoverIndexActionTypes.LAST\n        });\n        handled = true;\n        break;\n\n      case Keys.UP:\n        dispatch({\n          type: HoverIndexActionTypes.DECREASE\n        });\n        handled = true;\n        break;\n\n      case Keys.DOWN:\n        dispatch({\n          type: HoverIndexActionTypes.INCREASE\n        });\n        handled = true;\n        break;\n\n      case Keys.SPACE:\n        if (e.target && e.target.className.indexOf(menuClass) !== -1) {\n          e.preventDefault();\n        }\n\n        break;\n    }\n\n    if (handled) {\n      e.preventDefault();\n      e.stopPropagation();\n    }\n  };\n\n  var handleAnimationEnd = function handleAnimationEnd() {\n    if (state === 'closing') {\n      setOverflowData();\n    }\n\n    safeCall(endTransition);\n  };\n\n  var handlePosition = useCallback(function () {\n    if (!containerRef.current) {\n      if (process.env.NODE_ENV !== 'production') {\n        throw new Error('[React-Menu] Menu cannot be positioned properly as container ref is null. If you initialise isOpen prop to true for ControlledMenu, please see this link for a solution: https://github.com/szhsin/react-menu/issues/2#issuecomment-719166062');\n      }\n\n      return;\n    }\n\n    if (!scrollingRef.current) {\n      scrollingRef.current = boundingBoxRef ? boundingBoxRef.current : getScrollAncestor(rootMenuRef.current);\n    }\n\n    var positionHelpers = getPositionHelpers({\n      menuRef: menuRef,\n      containerRef: containerRef,\n      scrollingRef: scrollingRef,\n      boundingBoxPadding: boundingBoxPadding\n    });\n    var menuRect = positionHelpers.menuRect;\n    var results = {\n      computedDirection: 'bottom'\n    };\n\n    if (anchorPoint) {\n      results = positionContextMenu({\n        positionHelpers: positionHelpers,\n        anchorPoint: anchorPoint\n      });\n    } else if (anchorRef) {\n      results = positionMenu({\n        arrow: arrow,\n        align: align,\n        direction: direction,\n        offsetX: offsetX,\n        offsetY: offsetY,\n        position: position,\n        anchorRef: anchorRef,\n        arrowRef: arrowRef,\n        positionHelpers: positionHelpers\n      });\n    }\n\n    var _results = results,\n        arrowX = _results.arrowX,\n        arrowY = _results.arrowY,\n        x = _results.x,\n        y = _results.y,\n        computedDirection = _results.computedDirection;\n    var menuHeight = menuRect.height;\n\n    if (overflow !== 'visible') {\n      var getTopOverflow = positionHelpers.getTopOverflow,\n          getBottomOverflow = positionHelpers.getBottomOverflow;\n\n      var height, _overflowAmt;\n\n      var prevHeight = latestMenuSize.current.height;\n      var bottomOverflow = getBottomOverflow(y);\n\n      if (bottomOverflow > 0 || floatEqual(bottomOverflow, 0) && floatEqual(menuHeight, prevHeight)) {\n        height = menuHeight - bottomOverflow;\n        _overflowAmt = bottomOverflow;\n      } else {\n        var topOverflow = getTopOverflow(y);\n\n        if (topOverflow < 0 || floatEqual(topOverflow, 0) && floatEqual(menuHeight, prevHeight)) {\n          height = menuHeight + topOverflow;\n          _overflowAmt = 0 - topOverflow;\n          if (height >= 0) y -= topOverflow;\n        }\n      }\n\n      if (height >= 0) {\n        menuHeight = height;\n        setOverflowData({\n          height: height,\n          overflowAmt: _overflowAmt\n        });\n      } else {\n        setOverflowData();\n      }\n    }\n\n    if (arrow) setArrowPosition({\n      x: arrowX,\n      y: arrowY\n    });\n    setMenuPosition({\n      x: x,\n      y: y\n    });\n    setExpandedDirection(computedDirection);\n    latestMenuSize.current = {\n      width: menuRect.width,\n      height: menuHeight\n    };\n  }, [arrow, align, boundingBoxPadding, direction, offsetX, offsetY, position, overflow, anchorPoint, anchorRef, containerRef, boundingBoxRef, rootMenuRef, scrollingRef]);\n  useIsomorphicLayoutEffect(function () {\n    if (isOpen) {\n      handlePosition();\n      if (prevOpen.current) forceReposSubmenu();\n    }\n\n    prevOpen.current = isOpen;\n    latestHandlePosition.current = handlePosition;\n  }, [isOpen, handlePosition, reposFlag]);\n  useIsomorphicLayoutEffect(function () {\n    if (overflowData && !descendOverflow) menuRef.current.scrollTop = 0;\n  }, [overflowData, descendOverflow]);\n  useEffect(function () {\n    if (!isOpen) return;\n\n    if (!anchorScrollingRef.current && rootAnchorRef && rootAnchorRef.current.tagName) {\n      anchorScrollingRef.current = getScrollAncestor(rootAnchorRef.current);\n    }\n\n    var scrollCurrent = scrollingRef.current;\n    var menuScroll = scrollCurrent && scrollCurrent.addEventListener ? scrollCurrent : window;\n    var anchorScroll = anchorScrollingRef.current || menuScroll;\n    var scroll = viewScroll;\n    if (anchorScroll !== menuScroll && scroll === 'initial') scroll = 'auto';\n    if (scroll === 'initial') return;\n    if (scroll === 'auto' && overflow !== 'visible') scroll = 'close';\n\n    var handleScroll = function handleScroll() {\n      if (scroll === 'auto') {\n        batchedUpdates(handlePosition);\n      } else {\n        safeCall(onClose, {\n          reason: CloseReason.SCROLL\n        });\n      }\n    };\n\n    var scrollObservers = anchorScroll !== menuScroll && viewScroll !== 'initial' ? [anchorScroll, menuScroll] : [anchorScroll];\n    scrollObservers.forEach(function (o) {\n      return o.addEventListener('scroll', handleScroll);\n    });\n    return function () {\n      return scrollObservers.forEach(function (o) {\n        return o.removeEventListener('scroll', handleScroll);\n      });\n    };\n  }, [rootAnchorRef, anchorScrollingRef, scrollingRef, isOpen, overflow, onClose, viewScroll, handlePosition]);\n  var hasOverflow = !!overflowData && overflowData.overflowAmt > 0;\n  useEffect(function () {\n    if (hasOverflow || !isOpen || !parentScrollingRef) return;\n\n    var handleScroll = function handleScroll() {\n      return batchedUpdates(handlePosition);\n    };\n\n    var parentScroll = parentScrollingRef.current;\n    parentScroll.addEventListener('scroll', handleScroll);\n    return function () {\n      return parentScroll.removeEventListener('scroll', handleScroll);\n    };\n  }, [isOpen, hasOverflow, parentScrollingRef, handlePosition]);\n  useEffect(function () {\n    if (typeof ResizeObserver !== 'function' || reposition === 'initial') return;\n    var resizeObserver = new ResizeObserver(function (_ref3) {\n      var entry = _ref3[0];\n      var borderBoxSize = entry.borderBoxSize,\n          target = entry.target;\n      var width, height;\n\n      if (borderBoxSize) {\n        var _ref4 = borderBoxSize[0] || borderBoxSize,\n            inlineSize = _ref4.inlineSize,\n            blockSize = _ref4.blockSize;\n\n        width = inlineSize;\n        height = blockSize;\n      } else {\n        var borderRect = target.getBoundingClientRect();\n        width = borderRect.width;\n        height = borderRect.height;\n      }\n\n      if (width === 0 || height === 0) return;\n      if (floatEqual(width, latestMenuSize.current.width, 1) && floatEqual(height, latestMenuSize.current.height, 1)) return;\n      flushSync(function () {\n        latestHandlePosition.current();\n        forceReposSubmenu();\n      });\n    });\n    var observeTarget = menuRef.current;\n    resizeObserver.observe(observeTarget, {\n      box: 'border-box'\n    });\n    return function () {\n      return resizeObserver.unobserve(observeTarget);\n    };\n  }, [reposition]);\n  useEffect(function () {\n    if (!isOpen) {\n      dispatch({\n        type: HoverIndexActionTypes.RESET\n      });\n      if (!closeTransition) setOverflowData();\n      return;\n    }\n\n    var _ref5 = menuItemFocus || {},\n        position = _ref5.position,\n        alwaysUpdate = _ref5.alwaysUpdate;\n\n    var setItemFocus = function setItemFocus() {\n      if (position === FocusPositions.FIRST) {\n        dispatch({\n          type: HoverIndexActionTypes.FIRST\n        });\n      } else if (position === FocusPositions.LAST) {\n        dispatch({\n          type: HoverIndexActionTypes.LAST\n        });\n      } else if (position >= 0 && position < menuItemsCount) {\n        dispatch({\n          type: HoverIndexActionTypes.SET,\n          index: position\n        });\n      }\n    };\n\n    if (alwaysUpdate) {\n      setItemFocus();\n    } else if (captureFocus) {\n      var id = setTimeout(function () {\n        if (menuRef.current && !menuRef.current.contains(document.activeElement)) {\n          menuRef.current.focus();\n          setItemFocus();\n        }\n      }, openTransition ? 170 : 100);\n      return function () {\n        return clearTimeout(id);\n      };\n    }\n  }, [openTransition, closeTransition, captureFocus, isOpen, menuItemFocus, menuItemsCount]);\n  var isSubmenuOpen = openSubmenuCount > 0;\n  var itemContext = useMemo(function () {\n    return {\n      parentMenuRef: menuRef,\n      parentOverflow: overflow,\n      isParentOpen: isOpen,\n      isSubmenuOpen: isSubmenuOpen,\n      dispatch: dispatch\n    };\n  }, [isOpen, isSubmenuOpen, overflow]);\n  var maxHeight, overflowAmt;\n\n  if (overflowData) {\n    descendOverflow ? overflowAmt = overflowData.overflowAmt : maxHeight = overflowData.height;\n  }\n\n  var listContext = useMemo(function () {\n    return {\n      reposSubmenu: reposSubmenu,\n      overflow: overflow,\n      overflowAmt: overflowAmt\n    };\n  }, [reposSubmenu, overflow, overflowAmt]);\n  var overflowStyles = maxHeight >= 0 ? {\n    maxHeight: maxHeight,\n    overflow: overflow\n  } : undefined;\n  var modifiers = useMemo(function () {\n    return {\n      state: state,\n      dir: expandedDirection\n    };\n  }, [state, expandedDirection]);\n  var arrowModifiers = useMemo(function () {\n    return Object.freeze({\n      dir: expandedDirection\n    });\n  }, [expandedDirection]);\n\n  var _arrowClass = useBEM({\n    block: menuClass,\n    element: menuArrowClass,\n    modifiers: arrowModifiers,\n    className: arrowClassName\n  });\n\n  var _arrowStyles = useFlatStyles(arrowStyles, arrowModifiers);\n\n  var handlers = attachHandlerProps({\n    onKeyDown: handleKeyDown,\n    onAnimationEnd: handleAnimationEnd\n  }, restProps);\n  return /*#__PURE__*/React.createElement(\"ul\", _extends({\n    role: \"menu\",\n    \"aria-label\": ariaLabel\n  }, commonProps(isDisabled), restProps, handlers, {\n    ref: useCombinedRef(externalRef, menuRef),\n    className: useBEM({\n      block: menuClass,\n      modifiers: modifiers,\n      className: menuClassName\n    }),\n    style: _extends({}, useFlatStyles(menuStyles, modifiers), overflowStyles, {\n      left: menuPosition.x,\n      top: menuPosition.y\n    })\n  }), arrow && /*#__PURE__*/React.createElement(\"div\", {\n    className: _arrowClass,\n    style: _extends({}, _arrowStyles, {\n      left: arrowPosition.x,\n      top: arrowPosition.y\n    }),\n    ref: arrowRef\n  }), /*#__PURE__*/React.createElement(MenuListContext.Provider, {\n    value: listContext\n  }, /*#__PURE__*/React.createElement(MenuListItemContext.Provider, {\n    value: itemContext\n  }, /*#__PURE__*/React.createElement(HoverIndexContext.Provider, {\n    value: hoverIndex\n  }, menuItems))));\n};\n\nfunction hoverIndexReducer(state, _ref6, menuItemsCount) {\n  var type = _ref6.type,\n      index = _ref6.index;\n\n  switch (type) {\n    case HoverIndexActionTypes.RESET:\n      return initialHoverIndex;\n\n    case HoverIndexActionTypes.SET:\n      return index;\n\n    case HoverIndexActionTypes.UNSET:\n      return state === index ? initialHoverIndex : state;\n\n    case HoverIndexActionTypes.DECREASE:\n      {\n        var i = state;\n        i--;\n        if (i < 0) i = menuItemsCount - 1;\n        return i;\n      }\n\n    case HoverIndexActionTypes.INCREASE:\n      {\n        var _i = state;\n        _i++;\n        if (_i >= menuItemsCount) _i = 0;\n        return _i;\n      }\n\n    case HoverIndexActionTypes.FIRST:\n      return menuItemsCount > 0 ? 0 : initialHoverIndex;\n\n    case HoverIndexActionTypes.LAST:\n      return menuItemsCount > 0 ? menuItemsCount - 1 : initialHoverIndex;\n\n    default:\n      return state;\n  }\n}\n\nfunction submenuCountReducer(state, _ref7) {\n  var type = _ref7.type;\n\n  switch (type) {\n    case SubmenuActionTypes.OPEN:\n      return state + 1;\n\n    case SubmenuActionTypes.CLOSE:\n      return Math.max(state - 1, 0);\n\n    default:\n      return state;\n  }\n}\n\nexport { MenuList };\n", "import { Children, cloneElement } from 'react';\nimport { getName } from './utils.js';\n\nvar cloneChildren = function cloneChildren(children, startIndex, inRadioGroup) {\n  if (startIndex === void 0) {\n    startIndex = 0;\n  }\n\n  var index = startIndex;\n  var descendOverflow = false;\n  var items = Children.map(children, function (child) {\n    if (child == null) return null;\n    if (!child.type) return child;\n    var name = getName(child.type);\n\n    switch (name) {\n      case 'MenuItem':\n        {\n          if (inRadioGroup) {\n            var props = {\n              type: 'radio'\n            };\n            if (!child.props.disabled) props.index = index++;\n            return /*#__PURE__*/cloneElement(child, props);\n          }\n        }\n\n      case 'SubMenu':\n      case 'FocusableItem':\n        return child.props.disabled ? child : /*#__PURE__*/cloneElement(child, {\n          index: index++\n        });\n\n      default:\n        {\n          var innerChildren = child.props.children;\n          if (innerChildren === null || typeof innerChildren !== 'object') return child;\n          var desc = cloneChildren(innerChildren, index, inRadioGroup || name === 'MenuRadioGroup');\n          index = desc.index;\n\n          if (name === 'MenuGroup') {\n            var takeOverflow = !!child.props.takeOverflow;\n            var descOverflow = desc.descendOverflow;\n\n            if (process.env.NODE_ENV !== 'production' && (descendOverflow === descOverflow ? descOverflow : takeOverflow)) {\n              throw new Error('[React-Menu] Only one MenuGroup in a menu is allowed to have takeOverflow prop.');\n            }\n\n            descendOverflow = descendOverflow || descOverflow || takeOverflow;\n          }\n\n          return /*#__PURE__*/cloneElement(child, {\n            children: desc.items\n          });\n        }\n    }\n  });\n  return {\n    items: items,\n    index: index,\n    descendOverflow: descendOverflow\n  };\n};\n\nexport { cloneChildren };\n", "import { parsePadding } from '../utils/utils.js';\n\nvar getPositionHelpers = function getPositionHelpers(_ref) {\n  var menuRef = _ref.menuRef,\n      containerRef = _ref.containerRef,\n      scrollingRef = _ref.scrollingRef,\n      boundingBoxPadding = _ref.boundingBoxPadding;\n  var menuRect = menuRef.current.getBoundingClientRect();\n  var containerRect = containerRef.current.getBoundingClientRect();\n  var boundingRect = scrollingRef.current === window ? {\n    left: 0,\n    top: 0,\n    right: document.documentElement.clientWidth,\n    bottom: window.innerHeight\n  } : scrollingRef.current.getBoundingClientRect();\n  var padding = parsePadding(boundingBoxPadding);\n\n  var getLeftOverflow = function getLeftOverflow(x) {\n    return x + containerRect.left - boundingRect.left - padding.left;\n  };\n\n  var getRightOverflow = function getRightOverflow(x) {\n    return x + containerRect.left + menuRect.width - boundingRect.right + padding.right;\n  };\n\n  var getTopOverflow = function getTopOverflow(y) {\n    return y + containerRect.top - boundingRect.top - padding.top;\n  };\n\n  var getBottomOverflow = function getBottomOverflow(y) {\n    return y + containerRect.top + menuRect.height - boundingRect.bottom + padding.bottom;\n  };\n\n  var confineHorizontally = function confineHorizontally(x) {\n    var leftOverflow = getLeftOverflow(x);\n\n    if (leftOverflow < 0) {\n      x -= leftOverflow;\n    } else {\n      var rightOverflow = getRightOverflow(x);\n\n      if (rightOverflow > 0) {\n        x -= rightOverflow;\n        leftOverflow = getLeftOverflow(x);\n        if (leftOverflow < 0) x -= leftOverflow;\n      }\n    }\n\n    return x;\n  };\n\n  var confineVertically = function confineVertically(y) {\n    var topOverflow = getTopOverflow(y);\n\n    if (topOverflow < 0) {\n      y -= topOverflow;\n    } else {\n      var bottomOverflow = getBottomOverflow(y);\n\n      if (bottomOverflow > 0) {\n        y -= bottomOverflow;\n        topOverflow = getTopOverflow(y);\n        if (topOverflow < 0) y -= topOverflow;\n      }\n    }\n\n    return y;\n  };\n\n  return {\n    menuRect: menuRect,\n    containerRect: containerRect,\n    getLeftOverflow: getLeftOverflow,\n    getRightOverflow: getRightOverflow,\n    getTopOverflow: getTopOverflow,\n    getBottomOverflow: getBottomOverflow,\n    confineHorizontally: confineHorizontally,\n    confineVertically: confineVertically\n  };\n};\n\nexport { getPositionHelpers };\n", "var positionContextMenu = function positionContextMenu(_ref) {\n  var positionHelpers = _ref.positionHelpers,\n      anchorPoint = _ref.anchorPoint;\n  var menuRect = positionHelpers.menuRect,\n      containerRect = positionHelpers.containerRect,\n      getLeftOverflow = positionHelpers.getLeftOverflow,\n      getRightOverflow = positionHelpers.getRightOverflow,\n      getTopOverflow = positionHelpers.getTopOverflow,\n      getBottomOverflow = positionHelpers.getBottomOverflow,\n      confineHorizontally = positionHelpers.confineHorizontally,\n      confineVertically = positionHelpers.confineVertically;\n  var x, y;\n  x = anchorPoint.x - containerRect.left;\n  y = anchorPoint.y - containerRect.top;\n  var rightOverflow = getRightOverflow(x);\n\n  if (rightOverflow > 0) {\n    var adjustedX = x - menuRect.width;\n    var leftOverflow = getLeftOverflow(adjustedX);\n\n    if (leftOverflow >= 0 || -leftOverflow < rightOverflow) {\n      x = adjustedX;\n    }\n\n    x = confineHorizontally(x);\n  }\n\n  var computedDirection = 'bottom';\n  var bottomOverflow = getBottomOverflow(y);\n\n  if (bottomOverflow > 0) {\n    var adjustedY = y - menuRect.height;\n    var topOverflow = getTopOverflow(adjustedY);\n\n    if (topOverflow >= 0 || -topOverflow < bottomOverflow) {\n      y = adjustedY;\n      computedDirection = 'top';\n    }\n\n    y = confineVertically(y);\n  }\n\n  return {\n    x: x,\n    y: y,\n    computedDirection: computedDirection\n  };\n};\n\nexport { positionContextMenu };\n", "var placeArrowVertical = function placeArrowVertical(_ref) {\n  var arrowRef = _ref.arrowRef,\n      menuY = _ref.menuY,\n      anchorRect = _ref.anchorRect,\n      containerRect = _ref.containerRect,\n      menuRect = _ref.menuRect;\n  var y = anchorRect.top - containerRect.top - menuY + anchorRect.height / 2;\n  var offset = arrowRef.current.offsetHeight * 1.25;\n  y = Math.max(offset, y);\n  y = Math.min(y, menuRect.height - offset);\n  return y;\n};\n\nexport { placeArrowVertical };\n", "import { placeArrowVertical } from './placeArrowVertical.js';\n\nvar placeLeftorRight = function placeLeftorRight(_ref) {\n  var anchorRect = _ref.anchorRect,\n      containerRect = _ref.containerRect,\n      menuRect = _ref.menuRect,\n      placeLeftorRightY = _ref.placeLeftorRightY,\n      placeLeftX = _ref.placeLeftX,\n      placeRightX = _ref.placeRightX,\n      getLeftOverflow = _ref.getLeftOverflow,\n      getRightOverflow = _ref.getRightOverflow,\n      confineHorizontally = _ref.confineHorizontally,\n      confineVertically = _ref.confineVertically,\n      arrowRef = _ref.arrowRef,\n      arrow = _ref.arrow,\n      direction = _ref.direction,\n      position = _ref.position;\n  var computedDirection = direction;\n  var y = placeLeftorRightY;\n\n  if (position !== 'initial') {\n    y = confineVertically(y);\n\n    if (position === 'anchor') {\n      y = Math.min(y, anchorRect.bottom - containerRect.top);\n      y = Math.max(y, anchorRect.top - containerRect.top - menuRect.height);\n    }\n  }\n\n  var x, leftOverflow, rightOverflow;\n\n  if (computedDirection === 'left') {\n    x = placeLeftX;\n\n    if (position !== 'initial') {\n      leftOverflow = getLeftOverflow(x);\n\n      if (leftOverflow < 0) {\n        rightOverflow = getRightOverflow(placeRightX);\n\n        if (rightOverflow <= 0 || -leftOverflow > rightOverflow) {\n          x = placeRightX;\n          computedDirection = 'right';\n        }\n      }\n    }\n  } else {\n    x = placeRightX;\n\n    if (position !== 'initial') {\n      rightOverflow = getRightOverflow(x);\n\n      if (rightOverflow > 0) {\n        leftOverflow = getLeftOverflow(placeLeftX);\n\n        if (leftOverflow >= 0 || -leftOverflow < rightOverflow) {\n          x = placeLeftX;\n          computedDirection = 'left';\n        }\n      }\n    }\n  }\n\n  if (position === 'auto') x = confineHorizontally(x);\n  var arrowY = arrow ? placeArrowVertical({\n    menuY: y,\n    arrowRef: arrowRef,\n    anchorRect: anchorRect,\n    containerRect: containerRect,\n    menuRect: menuRect\n  }) : undefined;\n  return {\n    arrowY: arrowY,\n    x: x,\n    y: y,\n    computedDirection: computedDirection\n  };\n};\n\nexport { placeLeftorRight };\n", "var placeArrowHorizontal = function placeArrowHorizontal(_ref) {\n  var arrowRef = _ref.arrowRef,\n      menuX = _ref.menuX,\n      anchorRect = _ref.anchorRect,\n      containerRect = _ref.containerRect,\n      menuRect = _ref.menuRect;\n  var x = anchorRect.left - containerRect.left - menuX + anchorRect.width / 2;\n  var offset = arrowRef.current.offsetWidth * 1.25;\n  x = Math.max(offset, x);\n  x = Math.min(x, menuRect.width - offset);\n  return x;\n};\n\nexport { placeArrowHorizontal };\n", "import { placeArrowHorizontal } from './placeArrowHorizontal.js';\n\nvar placeToporBottom = function placeToporBottom(_ref) {\n  var anchorRect = _ref.anchorRect,\n      containerRect = _ref.containerRect,\n      menuRect = _ref.menuRect,\n      placeToporBottomX = _ref.placeToporBottomX,\n      placeTopY = _ref.placeTopY,\n      placeBottomY = _ref.placeBottomY,\n      getTopOverflow = _ref.getTopOverflow,\n      getBottomOverflow = _ref.getBottomOverflow,\n      confineHorizontally = _ref.confineHorizontally,\n      confineVertically = _ref.confineVertically,\n      arrowRef = _ref.arrowRef,\n      arrow = _ref.arrow,\n      direction = _ref.direction,\n      position = _ref.position;\n  var computedDirection = direction === 'top' ? 'top' : 'bottom';\n  var x = placeToporBottomX;\n\n  if (position !== 'initial') {\n    x = confineHorizontally(x);\n\n    if (position === 'anchor') {\n      x = Math.min(x, anchorRect.right - containerRect.left);\n      x = Math.max(x, anchorRect.left - containerRect.left - menuRect.width);\n    }\n  }\n\n  var y, topOverflow, bottomOverflow;\n\n  if (computedDirection === 'top') {\n    y = placeTopY;\n\n    if (position !== 'initial') {\n      topOverflow = getTopOverflow(y);\n\n      if (topOverflow < 0) {\n        bottomOverflow = getBottomOverflow(placeBottomY);\n\n        if (bottomOverflow <= 0 || -topOverflow > bottomOverflow) {\n          y = placeBottomY;\n          computedDirection = 'bottom';\n        }\n      }\n    }\n  } else {\n    y = placeBottomY;\n\n    if (position !== 'initial') {\n      bottomOverflow = getBottomOverflow(y);\n\n      if (bottomOverflow > 0) {\n        topOverflow = getTopOverflow(placeTopY);\n\n        if (topOverflow >= 0 || -topOverflow < bottomOverflow) {\n          y = placeTopY;\n          computedDirection = 'top';\n        }\n      }\n    }\n  }\n\n  if (position === 'auto') y = confineVertically(y);\n  var arrowX = arrow ? placeArrowHorizontal({\n    menuX: x,\n    arrowRef: arrowRef,\n    anchorRect: anchorRect,\n    containerRect: containerRect,\n    menuRect: menuRect\n  }) : undefined;\n  return {\n    arrowX: arrowX,\n    x: x,\n    y: y,\n    computedDirection: computedDirection\n  };\n};\n\nexport { placeToporBottom };\n", "import { extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport { placeLeftorRight } from './placeLeftorRight.js';\nimport { placeToporBottom } from './placeToporBottom.js';\n\nvar positionMenu = function positionMenu(_ref) {\n  var arrow = _ref.arrow,\n      align = _ref.align,\n      direction = _ref.direction,\n      offsetX = _ref.offsetX,\n      offsetY = _ref.offsetY,\n      position = _ref.position,\n      anchorRef = _ref.anchorRef,\n      arrowRef = _ref.arrowRef,\n      positionHelpers = _ref.positionHelpers;\n  var menuRect = positionHelpers.menuRect,\n      containerRect = positionHelpers.containerRect;\n  var horizontalOffset = offsetX;\n  var verticalOffset = offsetY;\n\n  if (arrow) {\n    if (direction === 'left' || direction === 'right') {\n      horizontalOffset += arrowRef.current.offsetWidth;\n    } else {\n      verticalOffset += arrowRef.current.offsetHeight;\n    }\n  }\n\n  var anchorRect = anchorRef.current.getBoundingClientRect();\n  var placeLeftX = anchorRect.left - containerRect.left - menuRect.width - horizontalOffset;\n  var placeRightX = anchorRect.right - containerRect.left + horizontalOffset;\n  var placeTopY = anchorRect.top - containerRect.top - menuRect.height - verticalOffset;\n  var placeBottomY = anchorRect.bottom - containerRect.top + verticalOffset;\n  var placeToporBottomX, placeLeftorRightY;\n\n  if (align === 'end') {\n    placeToporBottomX = anchorRect.right - containerRect.left - menuRect.width;\n    placeLeftorRightY = anchorRect.bottom - containerRect.top - menuRect.height;\n  } else if (align === 'center') {\n    placeToporBottomX = anchorRect.left - containerRect.left - (menuRect.width - anchorRect.width) / 2;\n    placeLeftorRightY = anchorRect.top - containerRect.top - (menuRect.height - anchorRect.height) / 2;\n  } else {\n    placeToporBottomX = anchorRect.left - containerRect.left;\n    placeLeftorRightY = anchorRect.top - containerRect.top;\n  }\n\n  placeToporBottomX += horizontalOffset;\n  placeLeftorRightY += verticalOffset;\n\n  var options = _extends({}, positionHelpers, {\n    anchorRect: anchorRect,\n    placeLeftX: placeLeftX,\n    placeRightX: placeRightX,\n    placeLeftorRightY: placeLeftorRightY,\n    placeTopY: placeTopY,\n    placeBottomY: placeBottomY,\n    placeToporBottomX: placeToporBottomX,\n    arrowRef: arrowRef,\n    arrow: arrow,\n    direction: direction,\n    position: position\n  });\n\n  switch (direction) {\n    case 'left':\n    case 'right':\n      return placeLeftorRight(options);\n\n    case 'top':\n    case 'bottom':\n    default:\n      return placeToporBottom(options);\n  }\n};\n\nexport { positionMenu };\n", "import { useLayoutEffect, useEffect } from 'react';\n\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? useLayoutEffect : useEffect;\n\nexport { useIsomorphicLayoutEffect as useLayoutEffect };\n", "import { useMemo } from 'react';\n\nvar setRef = function setRef(ref, element) {\n  if (typeof ref === 'function') {\n    ref(element);\n  } else if (ref) {\n    ref.current = element;\n  }\n};\n\nvar useCombinedRef = function useCombinedRef(refA, refB) {\n  return useMemo(function () {\n    if (!refA) return refB;\n    if (!refB) return refA;\n    return function (element) {\n      setRef(refA, element);\n      setRef(refB, element);\n    };\n  }, [refA, refB]);\n};\n\nexport { useCombinedRef };\n", "import { extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport { useState } from 'react';\nimport { useMenuState } from './useMenuState.js';\n\nvar useMenuStateAndFocus = function useMenuStateAndFocus(options) {\n  var menuState = useMenuState(options);\n\n  var _useState = useState(),\n      menuItemFocus = _useState[0],\n      setMenuItemFocus = _useState[1];\n\n  var openMenu = function openMenu(position, alwaysUpdate) {\n    setMenuItemFocus({\n      position: position,\n      alwaysUpdate: alwaysUpdate\n    });\n    menuState.toggleMenu(true);\n  };\n\n  return _extends({}, menuState, {\n    openMenu: openMenu,\n    menuItemFocus: menuItemFocus\n  });\n};\n\nexport { useMenuStateAndFocus };\n", "import { useState, useRef, useCallback, useEffect } from 'react';\n\nvar PRE_ENTER = 0;\nvar ENTERING = 1;\nvar ENTERED = 2;\nvar PRE_EXIT = 3;\nvar EXITING = 4;\nvar EXITED = 5;\nvar UNMOUNTED = 6;\nvar STATES = ['preEnter', 'entering', 'entered', 'preExit', 'exiting', 'exited', 'unmounted'];\n\nvar startOrEnd = function startOrEnd(unmounted) {\n  return unmounted ? UNMOUNTED : EXITED;\n};\n\nvar updateState = function updateState(state, setState, latestState, timeoutId, onChange) {\n  clearTimeout(timeoutId.current);\n  setState(state);\n  latestState.current = state;\n  onChange && onChange({\n    state: STATES[state]\n  });\n};\n\nvar useTransition = function useTransition(_temp) {\n  var _ref = _temp === void 0 ? {} : _temp,\n      _ref$enter = _ref.enter,\n      enter = _ref$enter === void 0 ? true : _ref$enter,\n      _ref$exit = _ref.exit,\n      exit = _ref$exit === void 0 ? true : _ref$exit,\n      preEnter = _ref.preEnter,\n      preExit = _ref.preExit,\n      timeout = _ref.timeout,\n      initialEntered = _ref.initialEntered,\n      mountOnEnter = _ref.mountOnEnter,\n      unmountOnExit = _ref.unmountOnExit,\n      onChange = _ref.onChange;\n\n  var _useState = useState(initialEntered ? ENTERED : startOrEnd(mountOnEnter)),\n      state = _useState[0],\n      setState = _useState[1];\n\n  var latestState = useRef(state);\n  var timeoutId = useRef();\n  var enterTimeout, exitTimeout;\n\n  if (typeof timeout === 'object') {\n    enterTimeout = timeout.enter;\n    exitTimeout = timeout.exit;\n  } else {\n    enterTimeout = exitTimeout = timeout;\n  }\n\n  var endTransition = useCallback(function () {\n    var newState;\n\n    switch (latestState.current) {\n      case ENTERING:\n      case PRE_ENTER:\n        newState = ENTERED;\n        break;\n\n      case EXITING:\n      case PRE_EXIT:\n        newState = startOrEnd(unmountOnExit);\n        break;\n    }\n\n    if (newState !== undefined) {\n      updateState(newState, setState, latestState, timeoutId, onChange);\n    }\n  }, [onChange, unmountOnExit]);\n  var toggle = useCallback(function (toEnter) {\n    var transitState = function transitState(newState) {\n      updateState(newState, setState, latestState, timeoutId, onChange);\n\n      switch (newState) {\n        case ENTERING:\n          if (enterTimeout >= 0) timeoutId.current = setTimeout(endTransition, enterTimeout);\n          break;\n\n        case EXITING:\n          if (exitTimeout >= 0) timeoutId.current = setTimeout(endTransition, exitTimeout);\n          break;\n\n        case PRE_ENTER:\n        case PRE_EXIT:\n          timeoutId.current = setTimeout(function () {\n            return transitState(newState + 1);\n          }, 0);\n          break;\n      }\n    };\n\n    var enterStage = latestState.current <= ENTERED;\n    if (typeof toEnter !== 'boolean') toEnter = !enterStage;\n\n    if (toEnter) {\n      if (!enterStage) {\n        transitState(enter ? preEnter ? PRE_ENTER : ENTERING : ENTERED);\n      }\n    } else {\n      if (enterStage) {\n        transitState(exit ? preExit ? PRE_EXIT : EXITING : startOrEnd(unmountOnExit));\n      }\n    }\n  }, [endTransition, onChange, enter, exit, preEnter, preExit, enterTimeout, exitTimeout, unmountOnExit]);\n  useEffect(function () {\n    return function () {\n      return clearTimeout(timeoutId.current);\n    };\n  }, []);\n  return [STATES[state], toggle, endTransition];\n};\n\nexport { useTransition as default, useTransition };\n", "import { useTransition } from 'react-transition-state';\nimport { getTransition } from '../utils/utils.js';\nimport { MenuStateMap } from '../utils/constants.js';\n\nvar useMenuState = function useMenuState(_temp) {\n  var _ref = _temp === void 0 ? {} : _temp,\n      initialMounted = _ref.initialMounted,\n      unmountOnClose = _ref.unmountOnClose,\n      transition = _ref.transition,\n      transitionTimeout = _ref.transitionTimeout;\n\n  var _useTransition = useTransition({\n    mountOnEnter: !initialMounted,\n    unmountOnExit: unmountOnClose,\n    timeout: transitionTimeout,\n    enter: getTransition(transition, 'open'),\n    exit: getTransition(transition, 'close')\n  }),\n      state = _useTransition[0],\n      toggleMenu = _useTransition[1],\n      endTransition = _useTransition[2];\n\n  return {\n    state: MenuStateMap[state],\n    toggleMenu: toggleMenu,\n    endTransition: endTransition\n  };\n};\n\nexport { useMenuState };\n", "import { useRef, useEffect } from 'react';\nimport { safeCall } from '../utils/utils.js';\n\nvar useMenuChange = function useMenuChange(onMenuChange, isOpen) {\n  var prevOpen = useRef(isOpen);\n  useEffect(function () {\n    if (prevOpen.current !== isOpen) safeCall(onMenuChange, {\n      open: isOpen\n    });\n    prevOpen.current = isOpen;\n  }, [onMenuChange, isOpen]);\n};\n\nexport { useMenuChange };\n", "import { objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose, extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport React, { memo, useContext, useRef, useEffect, useImperativeHandle, useMemo } from 'react';\nimport { createPortal } from 'react-dom';\nimport { bool, oneOf, oneOfType, node, func, shape } from 'prop-types';\nimport { MenuList } from './MenuList.js';\nimport { withHovering } from '../utils/withHovering.js';\nimport { validateIndex, attachHandlerProps, commonProps, safeCall, isMenuOpen, batchedUpdates } from '../utils/utils.js';\nimport { useMenuStateAndFocus } from '../hooks/useMenuStateAndFocus.js';\nimport { useActiveState } from '../hooks/useActiveState.js';\nimport { useMenuChange } from '../hooks/useMenuChange.js';\nimport { useBEM } from '../hooks/useBEM.js';\nimport { SettingsContext, ItemSettingsContext, MenuListItemContext, Keys, SubmenuActionTypes, HoverIndexActionTypes, menuClass, subMenuClass, menuItemClass, FocusPositions } from '../utils/constants.js';\nimport { useCombinedRef } from '../hooks/useCombinedRef.js';\nimport { useFlatStyles } from '../hooks/useFlatStyles.js';\nimport { menuPropTypes, uncontrolledMenuPropTypes, stylePropTypes, menuDefaultProps } from '../utils/propTypes.js';\n\nvar _excluded = [\"aria-label\", \"className\", \"disabled\", \"label\", \"index\", \"openTrigger\", \"onMenuChange\", \"isHovering\", \"instanceRef\", \"captureFocus\", \"repositionFlag\", \"itemProps\"],\n    _excluded2 = [\"openMenu\", \"toggleMenu\", \"state\"],\n    _excluded3 = [\"isActive\", \"onKeyUp\"],\n    _excluded4 = [\"ref\", \"className\", \"styles\"];\nvar SubMenu = /*#__PURE__*/withHovering( /*#__PURE__*/memo(function SubMenu(_ref) {\n  var ariaLabel = _ref['aria-label'],\n      className = _ref.className,\n      disabled = _ref.disabled,\n      label = _ref.label,\n      index = _ref.index,\n      openTrigger = _ref.openTrigger,\n      onMenuChange = _ref.onMenuChange,\n      isHovering = _ref.isHovering,\n      instanceRef = _ref.instanceRef,\n      _ref$itemProps = _ref.itemProps,\n      itemProps = _ref$itemProps === void 0 ? {} : _ref$itemProps,\n      restProps = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n  var isDisabled = !!disabled;\n  validateIndex(index, isDisabled, label);\n\n  var _useContext = useContext(SettingsContext),\n      initialMounted = _useContext.initialMounted,\n      unmountOnClose = _useContext.unmountOnClose,\n      transition = _useContext.transition,\n      transitionTimeout = _useContext.transitionTimeout,\n      rootMenuRef = _useContext.rootMenuRef;\n\n  var _useContext2 = useContext(ItemSettingsContext),\n      submenuOpenDelay = _useContext2.submenuOpenDelay,\n      submenuCloseDelay = _useContext2.submenuCloseDelay;\n\n  var _useContext3 = useContext(MenuListItemContext),\n      parentMenuRef = _useContext3.parentMenuRef,\n      parentOverflow = _useContext3.parentOverflow,\n      isParentOpen = _useContext3.isParentOpen,\n      isSubmenuOpen = _useContext3.isSubmenuOpen,\n      dispatch = _useContext3.dispatch;\n\n  var isPortal = parentOverflow !== 'visible';\n\n  var _useMenuStateAndFocus = useMenuStateAndFocus({\n    initialMounted: initialMounted,\n    unmountOnClose: unmountOnClose,\n    transition: transition,\n    transitionTimeout: transitionTimeout\n  }),\n      _openMenu = _useMenuStateAndFocus.openMenu,\n      toggleMenu = _useMenuStateAndFocus.toggleMenu,\n      state = _useMenuStateAndFocus.state,\n      otherStateProps = _objectWithoutPropertiesLoose(_useMenuStateAndFocus, _excluded2);\n\n  var isOpen = isMenuOpen(state);\n\n  var _useActiveState = useActiveState(isHovering, isDisabled, Keys.RIGHT),\n      isActive = _useActiveState.isActive,\n      onKeyUp = _useActiveState.onKeyUp,\n      activeStateHandlers = _objectWithoutPropertiesLoose(_useActiveState, _excluded3);\n\n  var containerRef = useRef(null);\n  var itemRef = useRef(null);\n  var timeoutId = useRef(0);\n\n  var stopTimer = function stopTimer() {\n    if (timeoutId.current) {\n      clearTimeout(timeoutId.current);\n      timeoutId.current = 0;\n    }\n  };\n\n  var _openMenu2 = function openMenu() {\n    stopTimer();\n    !isDisabled && _openMenu.apply(void 0, arguments);\n  };\n\n  var setHover = function setHover() {\n    return !isHovering && !isDisabled && dispatch({\n      type: HoverIndexActionTypes.SET,\n      index: index\n    });\n  };\n\n  var delayOpen = function delayOpen(delay) {\n    setHover();\n    if (!openTrigger) timeoutId.current = setTimeout(function () {\n      return batchedUpdates(_openMenu2);\n    }, Math.max(delay, 0));\n  };\n\n  var handleMouseMove = function handleMouseMove() {\n    if (timeoutId.current || isOpen || isDisabled) return;\n\n    if (isSubmenuOpen) {\n      timeoutId.current = setTimeout(function () {\n        return delayOpen(submenuOpenDelay - submenuCloseDelay);\n      }, submenuCloseDelay);\n    } else {\n      delayOpen(submenuOpenDelay);\n    }\n  };\n\n  var handleMouseLeave = function handleMouseLeave() {\n    stopTimer();\n    if (!isOpen) dispatch({\n      type: HoverIndexActionTypes.UNSET,\n      index: index\n    });\n  };\n\n  var handleKeyDown = function handleKeyDown(e) {\n    var handled = false;\n\n    switch (e.key) {\n      case Keys.LEFT:\n        if (isOpen) {\n          itemRef.current.focus();\n          toggleMenu(false);\n          handled = true;\n        }\n\n        break;\n\n      case Keys.RIGHT:\n        if (!isOpen) handled = true;\n        break;\n    }\n\n    if (handled) {\n      e.preventDefault();\n      e.stopPropagation();\n    }\n  };\n\n  var handleKeyUp = function handleKeyUp(e) {\n    if (!isActive) return;\n    onKeyUp(e);\n\n    switch (e.key) {\n      case Keys.ENTER:\n      case Keys.SPACE:\n      case Keys.RIGHT:\n        openTrigger !== 'none' && _openMenu2(FocusPositions.FIRST);\n        break;\n    }\n  };\n\n  useEffect(function () {\n    return function () {\n      return clearTimeout(timeoutId.current);\n    };\n  }, []);\n  useEffect(function () {\n    if (isHovering && isParentOpen) {\n      itemRef.current.focus();\n    } else {\n      toggleMenu(false);\n    }\n  }, [isHovering, isParentOpen, toggleMenu]);\n  useEffect(function () {\n    dispatch({\n      type: isOpen ? SubmenuActionTypes.OPEN : SubmenuActionTypes.CLOSE\n    });\n  }, [dispatch, isOpen]);\n  useMenuChange(onMenuChange, isOpen);\n  useImperativeHandle(instanceRef, function () {\n    return {\n      openMenu: function openMenu() {\n        if (isParentOpen) {\n          setHover();\n\n          _openMenu2.apply(void 0, arguments);\n        }\n      },\n      closeMenu: function closeMenu() {\n        if (isOpen) {\n          itemRef.current.focus();\n          toggleMenu(false);\n        }\n      }\n    };\n  });\n  var modifiers = useMemo(function () {\n    return Object.freeze({\n      open: isOpen,\n      hover: isHovering,\n      active: isActive,\n      disabled: isDisabled,\n      submenu: true\n    });\n  }, [isOpen, isHovering, isActive, isDisabled]);\n\n  var externaItemlRef = itemProps.ref,\n      itemClassName = itemProps.className,\n      itemStyles = itemProps.styles,\n      restItemProps = _objectWithoutPropertiesLoose(itemProps, _excluded4);\n\n  var itemHandlers = attachHandlerProps(_extends({}, activeStateHandlers, {\n    onMouseMove: handleMouseMove,\n    onMouseLeave: handleMouseLeave,\n    onMouseDown: setHover,\n    onClick: function onClick() {\n      return openTrigger !== 'none' && _openMenu2();\n    },\n    onKeyUp: handleKeyUp\n  }), restItemProps);\n\n  var getMenuList = function getMenuList() {\n    var menuList = /*#__PURE__*/React.createElement(MenuList, _extends({}, restProps, otherStateProps, {\n      state: state,\n      ariaLabel: ariaLabel || (typeof label === 'string' ? label : 'Submenu'),\n      anchorRef: itemRef,\n      containerRef: isPortal ? rootMenuRef : containerRef,\n      parentScrollingRef: isPortal && parentMenuRef,\n      isDisabled: isDisabled\n    }));\n    return isPortal ? /*#__PURE__*/createPortal(menuList, rootMenuRef.current) : menuList;\n  };\n\n  return /*#__PURE__*/React.createElement(\"li\", {\n    className: useBEM({\n      block: menuClass,\n      element: subMenuClass,\n      className: className\n    }),\n    role: \"presentation\",\n    ref: containerRef,\n    onKeyDown: handleKeyDown\n  }, /*#__PURE__*/React.createElement(\"div\", _extends({\n    role: \"menuitem\",\n    \"aria-haspopup\": true,\n    \"aria-expanded\": isOpen\n  }, commonProps(isDisabled, isHovering), restItemProps, itemHandlers, {\n    ref: useCombinedRef(externaItemlRef, itemRef),\n    className: useBEM({\n      block: menuClass,\n      element: menuItemClass,\n      modifiers: modifiers,\n      className: itemClassName\n    }),\n    style: useFlatStyles(itemStyles, modifiers)\n  }), useMemo(function () {\n    return safeCall(label, modifiers);\n  }, [label, modifiers])), state && getMenuList());\n}), 'SubMenu');\nprocess.env.NODE_ENV !== \"production\" ? SubMenu.propTypes = /*#__PURE__*/_extends({}, menuPropTypes, uncontrolledMenuPropTypes, {\n  disabled: bool,\n  openTrigger: /*#__PURE__*/oneOf(['none', 'clickOnly']),\n  label: /*#__PURE__*/oneOfType([node, func]),\n  itemProps: /*#__PURE__*/shape( /*#__PURE__*/_extends({}, /*#__PURE__*/stylePropTypes()))\n}) : void 0;\nSubMenu.defaultProps = /*#__PURE__*/_extends({}, menuDefaultProps, {\n  direction: 'right'\n});\n\nexport { SubMenu };\n", "import { extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport React, { forwardRef, useContext } from 'react';\nimport { HoverIndexContext } from './constants.js';\nimport { defineName } from './utils.js';\n\nvar withHovering = function withHovering(WrapppedComponent, name) {\n  var WithHovering = defineName( /*#__PURE__*/forwardRef(function (props, ref) {\n    return /*#__PURE__*/React.createElement(WrapppedComponent, _extends({}, props, {\n      externalRef: ref,\n      isHovering: useContext(HoverIndexContext) === props.index\n    }));\n  }), name);\n  WithHovering.displayName = \"WithHovering(\" + name + \")\";\n  return WithHovering;\n};\n\nexport { withHovering };\n", "import { useState } from 'react';\nimport { Keys } from '../utils/constants.js';\n\nvar useActiveState = function useActiveState(isHovering, isDisabled, moreKeys) {\n  var _useState = useState(false),\n      active = _useState[0],\n      setActive = _useState[1];\n\n  var activeKeys = [Keys.ENTER, Keys.SPACE].concat(moreKeys);\n\n  var cancelActive = function cancelActive() {\n    return active && setActive(false);\n  };\n\n  return {\n    isActive: active,\n    onPointerDown: function onPointerDown() {\n      if (!isDisabled) setActive(true);\n    },\n    onPointerUp: cancelActive,\n    onPointerLeave: cancelActive,\n    onKeyDown: function onKeyDown(e) {\n      if (!active && isHovering && !isDisabled && activeKeys.indexOf(e.key) !== -1) {\n        setActive(true);\n      }\n    },\n    onKeyUp: function onKeyUp(e) {\n      if (activeKeys.indexOf(e.key) !== -1) {\n        setActive(false);\n      }\n    },\n    onBlur: function onBlur(e) {\n      if (active && !e.currentTarget.contains(e.relatedTarget)) {\n        setActive(false);\n      }\n    }\n  };\n};\n\nexport { useActiveState };\n", "import { objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose, extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport React, { memo, useRef, useContext, useMemo } from 'react';\nimport { any, string, oneOf, bool, oneOfType, node, func } from 'prop-types';\nimport { withHovering } from '../utils/withHovering.js';\nimport { useItemState } from '../hooks/useItemState.js';\nimport { EventHandlersContext, RadioGroupContext, menuClass, menuItemClass, Keys } from '../utils/constants.js';\nimport { useActiveState } from '../hooks/useActiveState.js';\nimport { useCombinedRef } from '../hooks/useCombinedRef.js';\nimport { useBEM } from '../hooks/useBEM.js';\nimport { useFlatStyles } from '../hooks/useFlatStyles.js';\nimport { validateIndex, attachHandlerProps, commonProps, safeCall } from '../utils/utils.js';\nimport { stylePropTypes } from '../utils/propTypes.js';\n\nvar _excluded = [\"className\", \"styles\", \"value\", \"href\", \"type\", \"checked\", \"disabled\", \"index\", \"children\", \"onClick\", \"isHovering\", \"externalRef\"],\n    _excluded2 = [\"isActive\", \"onKeyUp\", \"onBlur\"];\nvar MenuItem = /*#__PURE__*/withHovering( /*#__PURE__*/memo(function MenuItem(_ref) {\n  var className = _ref.className,\n      styles = _ref.styles,\n      value = _ref.value,\n      href = _ref.href,\n      type = _ref.type,\n      checked = _ref.checked,\n      disabled = _ref.disabled,\n      index = _ref.index,\n      children = _ref.children,\n      onClick = _ref.onClick,\n      isHovering = _ref.isHovering,\n      externalRef = _ref.externalRef,\n      restProps = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n  var isDisabled = !!disabled;\n  validateIndex(index, isDisabled, children);\n  var ref = useRef();\n\n  var _useItemState = useItemState(ref, index, isHovering, isDisabled),\n      setHover = _useItemState.setHover,\n      onBlur = _useItemState.onBlur,\n      onMouseMove = _useItemState.onMouseMove,\n      onMouseLeave = _useItemState.onMouseLeave;\n\n  var eventHandlers = useContext(EventHandlersContext);\n  var radioGroup = useContext(RadioGroupContext);\n\n  var _useActiveState = useActiveState(isHovering, isDisabled),\n      isActive = _useActiveState.isActive,\n      onKeyUp = _useActiveState.onKeyUp,\n      activeStateBlur = _useActiveState.onBlur,\n      activeStateHandlers = _objectWithoutPropertiesLoose(_useActiveState, _excluded2);\n\n  var isRadio = type === 'radio';\n  var isCheckBox = type === 'checkbox';\n  var isAnchor = !!href && !isDisabled && !isRadio && !isCheckBox;\n  var isChecked = isRadio ? radioGroup.value === value : isCheckBox ? !!checked : false;\n\n  var handleClick = function handleClick(e) {\n    if (isDisabled) {\n      e.stopPropagation();\n      e.preventDefault();\n      return;\n    }\n\n    var event = {\n      value: value,\n      syntheticEvent: e\n    };\n    if (e.key !== undefined) event.key = e.key;\n    if (isCheckBox) event.checked = !isChecked;\n    if (isRadio) event.name = radioGroup.name;\n    safeCall(onClick, event);\n    if (isRadio) safeCall(radioGroup.onRadioChange, event);\n    eventHandlers.handleClick(event, isCheckBox || isRadio);\n  };\n\n  var handleKeyUp = function handleKeyUp(e) {\n    if (!isActive) return;\n    onKeyUp(e);\n\n    switch (e.key) {\n      case Keys.ENTER:\n      case Keys.SPACE:\n        if (isAnchor) {\n          ref.current.click();\n        } else {\n          handleClick(e);\n        }\n\n        break;\n    }\n  };\n\n  var handleBlur = function handleBlur(e) {\n    activeStateBlur(e);\n    onBlur(e);\n  };\n\n  var modifiers = useMemo(function () {\n    return Object.freeze({\n      type: type,\n      disabled: isDisabled,\n      hover: isHovering,\n      active: isActive,\n      checked: isChecked,\n      anchor: isAnchor\n    });\n  }, [type, isDisabled, isHovering, isActive, isChecked, isAnchor]);\n  var handlers = attachHandlerProps(_extends({}, activeStateHandlers, {\n    onMouseMove: onMouseMove,\n    onMouseLeave: onMouseLeave,\n    onMouseDown: setHover,\n    onKeyUp: handleKeyUp,\n    onBlur: handleBlur,\n    onClick: handleClick\n  }), restProps);\n\n  var menuItemProps = _extends({\n    role: isRadio ? 'menuitemradio' : isCheckBox ? 'menuitemcheckbox' : 'menuitem',\n    'aria-checked': isRadio || isCheckBox ? isChecked : undefined\n  }, commonProps(isDisabled, isHovering), restProps, handlers, {\n    ref: useCombinedRef(externalRef, ref),\n    className: useBEM({\n      block: menuClass,\n      element: menuItemClass,\n      modifiers: modifiers,\n      className: className\n    }),\n    style: useFlatStyles(styles, modifiers)\n  });\n\n  var renderChildren = useMemo(function () {\n    return safeCall(children, modifiers);\n  }, [children, modifiers]);\n\n  if (isAnchor) {\n    return /*#__PURE__*/React.createElement(\"li\", {\n      role: \"presentation\"\n    }, /*#__PURE__*/React.createElement(\"a\", _extends({}, menuItemProps, {\n      href: href\n    }), renderChildren));\n  } else {\n    return /*#__PURE__*/React.createElement(\"li\", menuItemProps, renderChildren);\n  }\n}), 'MenuItem');\nprocess.env.NODE_ENV !== \"production\" ? MenuItem.propTypes = /*#__PURE__*/_extends({}, /*#__PURE__*/stylePropTypes(), {\n  value: any,\n  href: string,\n  type: /*#__PURE__*/oneOf(['checkbox', 'radio']),\n  checked: bool,\n  disabled: bool,\n  children: /*#__PURE__*/oneOfType([node, func]),\n  onClick: func\n}) : void 0;\n\nexport { MenuItem };\n", "import { useContext, useRef, useEffect } from 'react';\nimport { ItemSettingsContext, MenuListItemContext, HoverIndexActionTypes } from '../utils/constants.js';\n\nvar useItemState = function useItemState(ref, index, isHovering, isDisabled) {\n  var _useContext = useContext(ItemSettingsContext),\n      submenuCloseDelay = _useContext.submenuCloseDelay;\n\n  var _useContext2 = useContext(MenuListItemContext),\n      isParentOpen = _useContext2.isParentOpen,\n      isSubmenuOpen = _useContext2.isSubmenuOpen,\n      dispatch = _useContext2.dispatch;\n\n  var timeoutId = useRef(0);\n\n  var setHover = function setHover() {\n    if (!isHovering && !isDisabled) dispatch({\n      type: HoverIndexActionTypes.SET,\n      index: index\n    });\n  };\n\n  var onBlur = function onBlur(e) {\n    if (isHovering && !e.currentTarget.contains(e.relatedTarget)) {\n      dispatch({\n        type: HoverIndexActionTypes.UNSET,\n        index: index\n      });\n    }\n  };\n\n  var onMouseMove = function onMouseMove() {\n    if (isSubmenuOpen) {\n      if (!timeoutId.current) timeoutId.current = setTimeout(function () {\n        timeoutId.current = 0;\n        setHover();\n      }, submenuCloseDelay);\n    } else {\n      setHover();\n    }\n  };\n\n  var onMouseLeave = function onMouseLeave(_, keepHover) {\n    if (timeoutId.current) {\n      clearTimeout(timeoutId.current);\n      timeoutId.current = 0;\n    }\n\n    if (!keepHover) dispatch({\n      type: HoverIndexActionTypes.UNSET,\n      index: index\n    });\n  };\n\n  useEffect(function () {\n    return function () {\n      return clearTimeout(timeoutId.current);\n    };\n  }, []);\n  useEffect(function () {\n    if (isHovering && isParentOpen) {\n      ref.current && ref.current.focus();\n    }\n  }, [ref, isHovering, isParentOpen]);\n  return {\n    setHover: setHover,\n    onBlur: onBlur,\n    onMouseMove: onMouseMove,\n    onMouseLeave: onMouseLeave\n  };\n};\n\nexport { useItemState };\n", "import { cx, injectGlobal } from '@emotion/css';\nimport { ControlledMenu, MenuItem, SubMenu } from '@szhsin/react-menu';\nimport size from 'lodash/size.js';\nimport type { FC, KeyboardEventHandler } from 'react';\nimport { Children, useContext, useEffect, useRef, useState } from 'react';\n\nimport { BackgroundColor } from '../../../constants';\nimport { MotifComponent, useMotifStyles } from '../../../motif';\nimport { dataSetToAttributes, getBackgroundClassName } from '../../../utils';\nimport { GlobalHeaderContext } from '../../GlobalHeader/GlobalHeaderContext';\nimport { Icon } from '../../Icon';\nimport type { AnchorComponent } from '../../Primitives';\nimport { PrimitivesContext } from '../../Primitives';\nimport {\n  anchorCss,\n  clickableNavigatorItemClassName,\n  iconCss,\n  itemCss,\n  menuItemCss,\n  navItemSelectedCss,\n  reactMenuCss,\n} from './Item.styled';\nimport type { NavigatorItemProps } from './types';\nimport { getItemProps } from './utils';\n\n/**\n * Helper function to avoid the cludge needed when wrapping @szhsin/react-menu components\n *\n * NOTE: It's IMPOSSIBLE to make this into a component. It throws exceptions when you do saying it\n * shouldn't be a component.\n */\nconst renderChildrenWithBreadcrumbs = (\n  props: NavigatorItemProps,\n  Anchor: AnchorComponent,\n  navigationBreadcrumbs?: Set<string>\n) => {\n  const { id, title, url, isSelected, children, onClick } = props;\n  const isMenuItem = Children.count(children) === 0;\n  const isSelectedBreadcrumb = navigationBreadcrumbs?.has(id) ?? false;\n  const shouldSelect = isSelected ?? isSelectedBreadcrumb;\n\n  if (isMenuItem) {\n    return (\n      <MenuItem\n        key={id}\n        onClick={event => onClick?.(event.syntheticEvent)}\n        className={cx(menuItemCss, { [navItemSelectedCss]: shouldSelect })}\n      >\n        {url ? (\n          <Anchor className={anchorCss} href={url}>\n            {title}\n          </Anchor>\n        ) : (\n          <span className={anchorCss}>{title}</span>\n        )}\n      </MenuItem>\n    );\n  }\n\n  return (\n    <SubMenu\n      key={id}\n      label={title}\n      itemProps={{ onClick }}\n      className={cx(menuItemCss, { [navItemSelectedCss]: shouldSelect })}\n    >\n      {Children.map(children ?? [], ({ props }) =>\n        renderChildrenWithBreadcrumbs(props, Anchor, navigationBreadcrumbs)\n      )}\n    </SubMenu>\n  );\n};\n\n// inject styles to global at import (needed for SSR)\ninjectGlobal(reactMenuCss);\n\nexport const ItemDesktop: FC<NavigatorItemProps> = ({\n  id,\n  children,\n  url,\n  target,\n  onClick,\n  isSelected,\n  title,\n  dataset,\n}) => {\n  useMotifStyles(MotifComponent.HEADER);\n  const { Anchor } = useContext(PrimitivesContext);\n\n  const { navigationBreadcrumbs } = useContext(GlobalHeaderContext);\n\n  const [shouldSelect, setShouldSelect] = useState(isSelected ?? false);\n\n  useEffect(() => {\n    const isSelectedBreadcrumb = navigationBreadcrumbs?.has(id) ?? false;\n    setShouldSelect(isSelected === undefined ? isSelectedBreadcrumb : isSelected);\n  }, [id, isSelected, navigationBreadcrumbs]);\n\n  const [isExpanded, setIsExpanded] = useState(false);\n  const ref = useRef(null);\n  const [menuPosition, setPosition] = useState<'first' | 'last' | number>('first');\n  const iconName = isExpanded ? 'chevron-up' : 'chevron-down';\n\n  const clickableItemClassName = onClick || url ? clickableNavigatorItemClassName : null;\n  const titleClassName = cx({ selected: shouldSelect });\n  const linkOrText = <span className={titleClassName}>{title}</span>;\n\n  const items = getItemProps(children, id);\n\n  const handleKeyPress: KeyboardEventHandler<HTMLElement> = e => {\n    // Only move dropdown nav up/down\n    e.stopPropagation();\n\n    if (e.key === 'Enter' || e.key === ' ' || e.key === 'ArrowDown') {\n      setIsExpanded(true);\n      setPosition('first');\n    } else if (e.key === 'ArrowUp') {\n      setIsExpanded(true);\n      setPosition('last');\n    }\n  };\n\n  if (items && size(items)) {\n    return (\n      <section className={MotifComponent.HEADER}>\n        <Anchor\n          href={url}\n          target={target}\n          className={cx(itemCss, clickableItemClassName)}\n          onClick={event => {\n            setIsExpanded(true);\n            onClick?.(event);\n          }}\n          ref={ref}\n          onMouseEnter={() => setIsExpanded(true)}\n          onMouseLeave={() => setIsExpanded(false)}\n          onKeyDown={handleKeyPress}\n          tabIndex={0}\n          {...dataSetToAttributes(dataset)}\n        >\n          {linkOrText}\n          <Icon size={24} className={iconCss} name={iconName} />\n        </Anchor>\n        <ControlledMenu\n          className={\n            /* Dropdown background is always white, so we need styles to match it. */\n            getBackgroundClassName(BackgroundColor.White)\n          }\n          state={isExpanded ? 'open' : 'closed'}\n          anchorRef={ref}\n          onMouseEnter={() => setIsExpanded(true)}\n          onMouseLeave={() => setIsExpanded(false)}\n          onClose={() => setIsExpanded(false)}\n          menuItemFocus={{\n            position: menuPosition,\n          }}\n        >\n          {Children.map(children ?? [], ({ props }) => {\n            return renderChildrenWithBreadcrumbs(props, Anchor, navigationBreadcrumbs);\n          })}\n        </ControlledMenu>\n      </section>\n    );\n  }\n\n  return (\n    <Anchor\n      href={url}\n      className={cx(MotifComponent.HEADER, itemCss, clickableItemClassName)}\n      onClick={onClick}\n      tabIndex={0}\n      {...dataSetToAttributes(dataset)}\n    >\n      {linkOrText}\n    </Anchor>\n  );\n};\n\nItemDesktop.displayName = 'Navigator.Item (Desktop)';\n", "import { css } from '@emotion/css';\n\nimport { Gray, mobileMediaQuery, ZIndex } from '../../../constants';\nimport { m } from '../../../motif/m';\nimport { globalCss } from '../../../utils';\nimport { globalHeaderHeight } from '../../GlobalHeader/GlobalHeader.constants';\n\nexport const itemClassName = 'navigator-item';\nexport const clickableNavigatorItemClassName = 'navigator-item-click';\n\nexport const navItemSelectedCss = css`\n  font-weight: 700;\n  color: ${m('--global-header-navigator-item-active-color')};\n\n  /* Taken from reactMenuCss - note the menu itself is not themed. The background is always white.*/\n  .szh-menu__item--active,\n  &.szh-menu__item--active {\n    color: #fff;\n    background-color: ${Gray.V150};\n  }\n`;\n\nexport const menuItemCss = css`\n  && {\n    margin: unset;\n    padding: unset;\n  }\n\n  /* TODO: Font-weight should use motif vars, but first we need to change the active page indicator. https://jira.sc-corp.net/browse/ENTWEB-8894 */\n  font-weight: 400;\n  font-size: 13px;\n  color: ${m('--global-header-navigator-item-color')};\n`;\n\nconst sharedCss = css`\n  color: ${m('--global-header-navigator-item-color')};\n  display: flex;\n  font-size: ${m('--action-desktop-font-size')};\n  font-weight: 500;\n  text-decoration: none;\n  white-space: nowrap;\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--action-mobile-font-size')};\n  }\n`;\n\nexport const itemCss = css`\n  ${sharedCss}\n  align-items: center;\n  line-height: ${globalHeaderHeight}px;\n  margin-left: ${m('--spacing-m')};\n  margin-right: ${m('--spacing-m')};\n  padding-bottom: 0;\n  padding-top: 0;\n\n  &.${clickableNavigatorItemClassName} {\n    cursor: pointer;\n\n    &:hover {\n      color: ${m('--global-header-navigator-item-hover-color')};\n    }\n\n    & span {\n      position: relative; /* For the underline */\n      overflow-y: hidden;\n    }\n\n    /** Custom underline */\n    & span::after {\n      /* TODO: consolidate the rounded underline css? */\n      background-color: ${m('--global-header-navigator-item-hover-color')};\n      bottom: -8px;\n      content: '';\n      height: 8px;\n      left: 0;\n      position: absolute;\n      border-radius: ${m('--border-radius-s')};\n      transform: translateY(0);\n      transition: all 0.15s ease;\n      width: 100%;\n    }\n\n    &:hover span::after {\n      opacity: 0.6; /* TODO: convert to motif variable instead */\n      transform: translateY(-4px);\n    }\n\n    & span.selected {\n      color: ${m('--global-header-navigator-item-active-color')};\n    }\n\n    & span.selected::after {\n      opacity: 1;\n      transform: translateY(-4px);\n    }\n  }\n`;\n\n// moved from the old DropdownMenuV2, may need refactoring\nexport const reactMenuCss = globalCss`\n  &.szh-menu-container,\n  .szh-menu-container {\n    position: relative;\n    width: 0px;\n    height: 0px;\n  }\n\n  .szh-menu {\n    margin: 0;\n    padding: 0;\n    list-style: none;\n    box-sizing: border-box;\n    width: max-content;\n    position: absolute;\n    z-index: ${ZIndex.DROPDOWN};\n    border: 1px solid rgba(0, 0, 0, 0.1);\n    background-color: #fff;\n  }\n  .szh-menu:focus {\n    outline: none;\n  }\n  .szh-menu--state-closed {\n    display: none;\n  }\n  .szh-menu__arrow {\n    box-sizing: border-box;\n    width: 0.75rem;\n    height: 0.75rem;\n    background-color: #fff;\n    border: 1px solid transparent;\n    border-left-color: rgba(0, 0, 0, 0.1);\n    border-top-color: rgba(0, 0, 0, 0.1);\n    position: absolute;\n    z-index: -1;\n  }\n  .szh-menu__arrow--dir-left {\n    right: -0.375rem;\n    transform: translateY(-50%) rotate(135deg);\n  }\n  .szh-menu__arrow--dir-right {\n    left: -0.375rem;\n    transform: translateY(-50%) rotate(-45deg);\n  }\n  .szh-menu__arrow--dir-top {\n    bottom: -0.375rem;\n    transform: translateX(-50%) rotate(-135deg);\n  }\n  .szh-menu__arrow--dir-bottom {\n    top: -0.375rem;\n    transform: translateX(-50%) rotate(45deg);\n  }\n  .szh-menu__item {\n    cursor: unset;\n  }\n  .szh-menu__item:focus {\n    outline: none;\n  }\n  .szh-menu__item--hover {\n    background-color: unset;\n  }\n  .szh-menu__item--focusable {\n    cursor: default;\n    background-color: inherit;\n  }\n  .szh-menu__item--disabled {\n    cursor: default;\n    color: #aaa;\n  }\n  .szh-menu__submenu {\n    position: relative;\n  }\n  .szh-menu__group {\n    box-sizing: border-box;\n  }\n  .szh-menu__radio-group {\n    margin: 0;\n    padding: 0;\n    list-style: none;\n  }\n  .szh-menu__divider {\n    height: 1px;\n    margin: 0.5rem 0;\n    background-color: rgba(0, 0, 0, 0.12);\n  }\n\n  .szh-menu-button {\n    box-sizing: border-box;\n  }\n\n  .szh-menu {\n    user-select: none;\n    color: #212529;\n    border: none;\n    border-radius: 0.25rem;\n    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.133), 0 0.6px 2px rgba(0, 0, 0, 0.1);\n    min-width: 10rem;\n    padding: 0.5rem 0;\n  }\n  .szh-menu__item {\n    display: flex;\n    align-items: center;\n    position: relative;\n    padding: 0.375rem 1.5rem;\n  }\n  .szh-menu-container--itemTransition .szh-menu__item {\n    transition-property: background-color, color;\n    transition-duration: 0.15s;\n    transition-timing-function: ease-in-out;\n  }\n\n  .szh-menu__item--type-radio {\n    padding-left: 2.2rem;\n  }\n  .szh-menu__item--type-radio::before {\n    content: '\\\\25CB';\n    position: absolute;\n    left: 0.8rem;\n    top: 0.55rem;\n    font-size: 0.8rem;\n  }\n  .szh-menu__item--type-radio.szh-menu__item--checked::before {\n    content: '\\\\25CF';\n  }\n  .szh-menu__item--type-checkbox {\n    padding-left: 2.2rem;\n  }\n  .szh-menu__item--type-checkbox::before {\n    position: absolute;\n    left: 0.8rem;\n  }\n  .szh-menu__item--type-checkbox.szh-menu__item--checked::before {\n    content: '\\\\2714';\n  }\n  .szh-menu__submenu > .szh-menu__item {\n    padding-right: 2.5rem;\n  }\n  .szh-menu__submenu > .szh-menu__item::after {\n    content: '\\\\276F';\n    position: absolute;\n    right: 1rem;\n  }\n  .szh-menu__header {\n    color: #888;\n    font-size: 0.8em;\n    padding: 0.2rem 1.5rem;\n    text-transform: uppercase;\n  }\n\n  *[dir='rtl'] .szh-menu--dir-right {\n    left: -10.3rem !important;\n  }\n\n  *[dir='rtl'] .szh-menu--dir-left {\n    left: -12rem !important;\n  }\n`;\n\nexport const selectedCss = css`\n  text-decoration: underline;\n`;\n\nexport const iconCss = css`\n  /**\n   * use negative margin to make icon take up space same as previous\n   */\n  margin: calc(${m('--spacing-xxs')} * -1);\n  fill: ${m('--global-header-navigator-item-color')};\n\n  margin-left: calc(${m('--spacing-xs')} - 4px);\n  *[dir='rtl'] & {\n    margin-right: calc(${m('--spacing-xs')} - 4px);\n  }\n`;\n\nexport const anchorCss = css`\n  color: ${m('--global-header-navigator-item-color')};\n  text-decoration: none;\n  display: inline-block;\n\n  :hover,\n  :focus {\n    background-color: ${Gray.V150};\n    border-radius: ${m('--spacing-xxs')};\n  }\n\n  margin: ${m('--spacing-xxs')};\n  padding: 0.375rem 1.5rem;\n  width: 100%;\n  height: 100%;\n`;\n", "import { Children, isValidElement } from 'react';\n\nimport { selectedCss } from './Item.styled';\nimport type { NavigatorItemProps } from './types';\n\nexport function isItemProps(props: unknown): props is NavigatorItemProps {\n  if ((props as NavigatorItemProps).id) {\n    return true;\n  }\n\n  return false;\n}\n\nexport const getItemProps = (children: unknown, parentId?: string): NavigatorItemProps[] =>\n  Children.map(children, child => {\n    if (!children) {\n      return undefined;\n    }\n\n    if (!isValidElement(child)) {\n      return undefined;\n    }\n\n    if (child?.props) {\n      if (isItemProps(child.props)) {\n        const toReturn: NavigatorItemProps = { ...child.props };\n\n        if (parentId) {\n          toReturn.id = `${parentId}.${toReturn.id}`;\n        }\n\n        if (child.props.isSelected) {\n          toReturn.title = <span className={selectedCss}>{toReturn.title}</span>;\n        }\n\n        return toReturn;\n      }\n    }\n\n    return undefined;\n  });\n", "import { css, cx } from '@emotion/css';\nimport type { FC, PropsWithChildren, ReactElement } from 'react';\nimport { Children, cloneElement, useEffect } from 'react';\n\nconst scrollSnapItemCss = css`\n  scroll-snap-align: center;\n`;\n\ninterface SliderElement extends ReactElement {\n  className: string;\n}\n\nexport const ScrollSnapContainer: FC<PropsWithChildren> = ({ children }) => {\n  useEffect(() => {\n    if (typeof window === 'undefined') return;\n\n    const html = document.getElementsByTagName('html')[0]!;\n    const body = document.body;\n    // NOTE: We want scroll snap to be view height so it needs to be added to the html element.\n    // Though it's possible the style needs to be on the body.\n    // See https://css-tricks.com/practical-css-scroll-snapping/#aa-example-3-vertical-full-screen\n    // TODO: This doesn't seem to work anymore. Tracking ticket: https://jira.sc-corp.net/browse/ENTWEB-8974\n    html.style.scrollSnapType = 'y proximity';\n    body.style.scrollSnapType = 'y proximity';\n\n    return () => {\n      html.style.scrollSnapType = 'none';\n      body.style.scrollSnapType = 'none';\n    };\n  }, []);\n\n  const childrenArray = Children.toArray(children);\n\n  return (\n    <>\n      {children &&\n        childrenArray.map((child, index) => {\n          const sliderChild = child as SliderElement;\n          const isLastItem = index === childrenArray.length - 1;\n          return cloneElement(sliderChild, {\n            className: cx({ [scrollSnapItemCss]: !isLastItem }, sliderChild.className),\n          });\n        })}\n    </>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport type { BackgroundColor } from '../../constants';\nimport { BackgroundStyle } from '../../constants/background';\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps, ImageSources } from '../../types';\nimport { getBackgroundClassName } from '../../utils';\nimport { Picture } from '../Picture';\nimport { Video } from '../Video';\nimport {\n  backgroundMediaCss,\n  containerCss,\n  fixedBackgroundMediaCss,\n  pageTransparentBgCss,\n} from './Page.styled';\nimport { ScrollSnapContainer } from './ScrollSnapContainer';\n\nexport interface PageProps extends BaseComponentProps {\n  backgroundImageSources?: ImageSources;\n  backgroundColor?: BackgroundColor;\n  backgroundVideoSource?: string;\n  mobileBackgroundVideoSource?: string;\n  backgroundMediaStyle?: BackgroundStyle; // Not CSS properties\n  scrollSnap?: boolean;\n}\n\nexport const Page: FC<PropsWithChildren<PageProps>> = ({\n  backgroundColor: pageBackgroundColor,\n  backgroundImageSources,\n  mobileBackgroundVideoSource,\n  backgroundVideoSource,\n  backgroundMediaStyle = BackgroundStyle.Normal,\n  className: pageClassName,\n  scrollSnap,\n  children,\n}) => {\n  useMotifStyles(MotifComponent.PAGE);\n\n  const className = cx(\n    MotifComponent.PAGE,\n    containerCss,\n    getBackgroundClassName(pageBackgroundColor),\n    pageClassName,\n    /**\n     * Need set bg to transparent if bg img or video because we need to keep z-index: -1 on the\n     * background media to ensure it's behind the content because some content does not set\n     * position: relative. TODO: This is a temporary solution until we have a better way to handle\n     * (specifically, cheerios is broken without this, can potentially be fixed by setting\n     * position:relative on CheeriosStaticBlock) https://jira.sc-corp.net/browse/WEBP-9706\n     */\n    {\n      [pageTransparentBgCss]: !!(backgroundImageSources || backgroundVideoSource),\n    }\n  );\n\n  return (\n    <div data-test-id=\"sdsm-page\" className={className}>\n      {backgroundImageSources && (\n        <Picture\n          imgSrcs={backgroundImageSources}\n          imgClassName={\n            backgroundMediaStyle === BackgroundStyle.Fixed\n              ? fixedBackgroundMediaCss\n              : backgroundMediaCss\n          }\n          fetchPriority=\"auto\"\n        />\n      )}\n      {backgroundVideoSource ? (\n        <Video\n          className={\n            backgroundMediaStyle === BackgroundStyle.Fixed\n              ? fixedBackgroundMediaCss\n              : backgroundMediaCss\n          }\n          source={backgroundVideoSource}\n          mobileSource={mobileBackgroundVideoSource}\n          isBackgroundVideo\n        />\n      ) : undefined}\n      {scrollSnap ? <ScrollSnapContainer>{children}</ScrollSnapContainer> : children}\n    </div>\n  );\n};\n\nPage.displayName = 'Page';\n", "import { cx } from '@emotion/css';\nimport { type FC, useContext } from 'react';\n\nimport { MessageContext } from '../../contexts';\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { PaginationItem } from './PaginationItem';\nimport { paginationCss } from './styles';\nimport type { PaginationProps } from './types';\nimport { getPaginationItems } from './utils';\n\n/**\n * Component to render the pagination\n *\n * @param className Extra classnames for the pagination wrapper\n * @param totalPages Number of total pages of the pagination\n * @param currentPage Current page of the pagination\n * @param onChange Called whenever there's a valid new page to go to.\n */\nexport const Pagination: FC<PaginationProps> = ({\n  ariaLabel,\n  className,\n  totalPages,\n  currentPage,\n  onChange,\n}) => {\n  useMotifStyles(MotifComponent.PAGINATION);\n\n  const { formatMessage } = useContext(MessageContext);\n  const previousPageMessage = formatMessage({\n    id: 'pagination-go-to-previous-page',\n    defaultMessage: 'Go to previous page',\n  });\n  const nextPageMessage = formatMessage({\n    id: 'pagination-go-to-next-page',\n    defaultMessage: 'Go to next page',\n  });\n\n  const goToPageMessage = (pageNumber: string) =>\n    formatMessage(\n      {\n        id: 'pagination-go-to-page',\n        defaultMessage: 'Go to page {page}',\n      },\n      { page: pageNumber }\n    );\n\n  if (!totalPages || !currentPage || totalPages === 1) return null;\n\n  const handlePageChange = (newPage: number) => () => {\n    if (newPage >= 1 && newPage <= totalPages && newPage !== currentPage) {\n      onChange(newPage);\n    }\n  };\n\n  const paginationItems = getPaginationItems(totalPages, currentPage);\n\n  return (\n    <nav aria-label={ariaLabel} className={cx(MotifComponent.PAGINATION, className)}>\n      <ul className={paginationCss}>\n        <PaginationItem\n          disabled={currentPage === 1}\n          handlePageChange={handlePageChange(currentPage - 1)}\n          type=\"previous\"\n          ariaLabel={previousPageMessage}\n        />\n        {paginationItems.map((item, index) => {\n          if (Array.isArray(item)) {\n            if (!item.length) return null;\n\n            return (\n              <li key={index}>\n                <span>...</span>\n              </li>\n            );\n          }\n\n          return (\n            <PaginationItem\n              ariaLabel={item === currentPage ? `${item}` : `${goToPageMessage(String(item))}`}\n              handlePageChange={handlePageChange(item)}\n              isActive={item === currentPage}\n              disabled={item === currentPage}\n              key={index}\n            >\n              {item}\n            </PaginationItem>\n          );\n        })}\n        <PaginationItem\n          disabled={currentPage === totalPages}\n          handlePageChange={handlePageChange(currentPage + 1)}\n          type=\"next\"\n          ariaLabel={nextPageMessage}\n        />\n      </ul>\n    </nav>\n  );\n};\n\nPagination.displayName = 'Pagination';\n", "import { css } from '@emotion/css';\n\nimport { nonMobileMediaQuery, smallMobileMediaQuery } from '../../constants';\nimport { m } from '../../motif/m';\n\nexport const paginationCss = css`\n  align-items: center;\n  display: flex;\n  height: 44px;\n  justify-content: center;\n  list-style: none;\n  margin: 0;\n  padding: ${m('--spacing-l')} 0;\n\n  ${nonMobileMediaQuery} {\n    padding-block-start: ${m('--spacing-xxxl')};\n  }\n\n  li {\n    display: flex;\n    justify-content: center;\n    position: relative;\n  }\n`;\n\nexport const paginationItemButtonCss = css`\n  background-color: transparent;\n  border: 0;\n  user-select: none;\n  color: ${m('--pagination-text-color')};\n  cursor: pointer;\n  font: inherit;\n  font-size: 16px;\n  height: 44px;\n  letter-spacing: 0.01em;\n  padding: 0;\n  width: 44px;\n\n  ${smallMobileMediaQuery} {\n    min-width: 40px;\n    padding-inline: ${m('--spacing-xxs')};\n    width: auto;\n  }\n`;\n\nexport const paginationItemCss = css`\n  ::after {\n    border-radius: ${m('--spacing-xxs')} ${m('--spacing-xxs')} 0 0;\n    bottom: 0;\n    content: ' ';\n    height: ${m('--spacing-xxs')};\n    position: absolute;\n    width: ${m('--spacing-l')};\n  }\n\n  ${nonMobileMediaQuery} {\n    &:hover::after {\n      background-color: ${m('--pagination-text-hover-color')};\n    }\n  }\n`;\n\nexport const activePaginationItemCss = css`\n  button {\n    color: ${m('--pagination-text-active-color')};\n    font-weight: 500;\n  }\n\n  ::after,\n  &:hover::after {\n    background-color: ${m('--pagination-text-active-color')};\n  }\n`;\n\nexport const arrowButtonCss = css`\n  *[dir='rtl'] & {\n    transform: rotate(180deg);\n  }\n`;\n\nexport const previousButtonCss = css`\n  margin-inline-end: ${m('--spacing-xxs')};\n\n  ${nonMobileMediaQuery} {\n    margin-inline-end: ${m('--spacing-l')};\n  }\n`;\n\nexport const nextButtonCss = css`\n  margin-inline-start: ${m('--spacing-xxs')};\n\n  ${nonMobileMediaQuery} {\n    margin-inline-start: ${m('--spacing-l')};\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { IconButton } from '../IconButton';\nimport { IconButtonSize } from '../IconButton/IconButton.types';\nimport {\n  activePaginationItemCss,\n  arrowButtonCss,\n  nextButtonCss,\n  paginationItemButtonCss,\n  paginationItemCss,\n  previousButtonCss,\n} from './styles';\nimport type { PaginationItemProps } from './types';\n\nexport const PaginationItem: FC<PaginationItemProps> = ({\n  ariaLabel,\n  children,\n  disabled,\n  handlePageChange,\n  isActive,\n  type,\n}) => {\n  if (type === 'previous')\n    return (\n      <li>\n        <IconButton\n          size={IconButtonSize.SMALL}\n          iconName=\"chevron-left\"\n          aria-label={ariaLabel}\n          className={cx(arrowButtonCss, previousButtonCss)}\n          disabled={disabled}\n          onClick={handlePageChange}\n          tabIndex={disabled ? -1 : 0}\n          data-testid=\"pagination-item-previous\"\n        />\n      </li>\n    );\n\n  if (type === 'next')\n    return (\n      <li>\n        <IconButton\n          size={IconButtonSize.SMALL}\n          iconName=\"chevron-right\"\n          aria-label={ariaLabel}\n          className={cx(arrowButtonCss, nextButtonCss)}\n          disabled={disabled}\n          onClick={handlePageChange}\n          tabIndex={disabled ? -1 : 0}\n          data-testid=\"pagination-item-next\"\n        />\n      </li>\n    );\n\n  return (\n    <li\n      className={cx(paginationItemCss, {\n        [activePaginationItemCss]: isActive,\n      })}\n    >\n      <button\n        aria-label={ariaLabel}\n        aria-current={isActive}\n        className={paginationItemButtonCss}\n        disabled={disabled}\n        onClick={handlePageChange}\n        tabIndex={0}\n        type=\"button\"\n      >\n        {children?.toLocaleString()}\n      </button>\n    </li>\n  );\n};\n", "const range = (start: number, end: number) => {\n  const length = end - start + 1;\n  return Array.from({ length }, (_, index) => start + index);\n};\n\n/** Function to generate a list of pagination items e.g. itemList = [ 1, [2,3], 4, 5, 6, [7,8,9], 10] */\nexport const getPaginationItems = (\n  totalPages: number,\n  currentPage: number\n): Array<number | number[]> => {\n  // Number of always visible pages at the beginning and end\n  const boundaryCount = 1;\n\n  // Number of always visible pages before and after the current page\n  const siblingCount = 0;\n\n  // Start of the sibling range\n  const siblingsStart = Math.max(\n    Math.min(\n      currentPage - siblingCount,\n      // totalPages - page at beginning - sibilings for each side - current page\n      totalPages - boundaryCount - siblingCount * 2 - 1\n    ),\n    // Greater than pages that should display at the beginning\n    boundaryCount + 2\n  );\n\n  // End of the sibling range\n  const siblingsEnd = Math.min(\n    Math.max(\n      currentPage + siblingCount,\n      // upper boundary pages + sibilings for each side + current page + last page\n      boundaryCount + siblingCount * 2 + 2\n    ),\n    // Less than pages that should display at the end\n    totalPages - boundaryCount - 1\n  );\n\n  const hasStartEllipsis = siblingsStart > boundaryCount + 2;\n  const hasEndEllipsis = siblingsEnd < totalPages - boundaryCount - 1;\n\n  const pageBeforeEllipses =\n    boundaryCount + 1 < totalPages - boundaryCount ? boundaryCount + 1 : [];\n  const pageAfterEllipses =\n    totalPages - boundaryCount > boundaryCount ? totalPages - boundaryCount : [];\n\n  // range starts from first page + boundaryCount and stops before siblingsStart starts\n  const leftEllipsisRange = range(1 + boundaryCount, siblingsStart - 1);\n  // range starts after siblingsEnd ended and stops before last page - boundaryCount\n  const rightEllipsisRange = range(siblingsEnd + 1, totalPages - boundaryCount);\n\n  return [\n    1,\n    hasStartEllipsis ? leftEllipsisRange : pageBeforeEllipses,\n    ...range(siblingsStart, siblingsEnd),\n    hasEndEllipsis ? rightEllipsisRange : pageAfterEllipses,\n    totalPages,\n  ];\n};\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery } from '../../constants';\nimport { m } from '../../motif/m';\n\nexport const bigQuoteCss = css`\n  font-size: 40px;\n  line-height: 40px;\n  margin-bottom: -20px;\n  margin-top: -8px;\n`;\n\nexport const startQuoteCss = css`\n  margin-inline-start: -16px;\n  text-align: start;\n`;\n\nexport const endQuoteCss = css`\n  margin-inline-end: -20px;\n  text-align: end;\n`;\n\nexport const quoteCss = css`\n  padding: ${m('--spacing-xl')};\n  border-radius: ${m('--border-radius-l')};\n\n  background-color: ${m('--quote-bg-color')};\n  color: ${m('--quote-fg-color')};\n`;\n\nexport const authorCss = css`\n  text-align: end;\n  margin-top: ${m('--spacing-s')};\n\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--quote-author-desktop-font-size')};\n    font-weight: ${m('--quote-author-desktop-font-weight')};\n  }\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--quote-author-mobile-font-size')};\n    font-weight: ${m('--quote-author-mobile-font-weight')};\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC, ReactNode } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { authorCss, bigQuoteCss, endQuoteCss, quoteCss, startQuoteCss } from './Quote.styled';\ninterface Props {\n  author?: ReactNode;\n  children?: ReactNode;\n}\n\nexport const Quote: FC<Props> = ({ author, children }) => {\n  useMotifStyles(MotifComponent.QUOTE);\n\n  return (\n    <div className={cx(MotifComponent.QUOTE, quoteCss)}>\n      <aside className={cx(startQuoteCss, bigQuoteCss)}>\u201C</aside>\n      {children}\n      <aside className={cx(endQuoteCss, bigQuoteCss)}>\u201D</aside>\n      {author && <div className={authorCss}>\u2014 {author}</div>}\n    </div>\n  );\n};\n\nQuote.displayName = 'Quote';\n", "import { css } from '@emotion/css';\n\nexport const containerCss = css`\n  position: relative;\n  display: flex;\n  justify-content: center;\n`;\n\nexport const innerContainerCss = css`\n  position: sticky;\n  top: 0;\n  height: 100vh;\n  width: 100%;\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport type { BaseComponentProps } from '../../types';\nimport { dataSetToAttributes } from '../../utils';\nimport { containerCss, innerContainerCss } from './styles';\n\nexport const scrollableSectionScrollProgressCssVar = '--scroll-progress';\n\ninterface ScrollAnimatedSectionProps extends BaseComponentProps {\n  /** Used to pass a className to the inner sticky container. */\n  innerContainerClassName?: string;\n  /** Ref to the outer section container */\n  containerRef: React.RefObject<HTMLDivElement>;\n}\n\n/**\n * Component that will create a scrollable section with a sticky inner container. Used for scroll\n * based animations\n */\nexport const ScrollAnimatedSection: FC<PropsWithChildren<ScrollAnimatedSectionProps>> = ({\n  className,\n  containerRef,\n  innerContainerClassName,\n  children,\n  dataset,\n  style,\n}) => {\n  return (\n    <section\n      ref={containerRef}\n      className={cx(containerCss, className)}\n      style={{ ...style }}\n      {...dataSetToAttributes(dataset)}\n    >\n      <div className={cx(innerContainerCss, innerContainerClassName)}>{children}</div>\n    </section>\n  );\n};\n", "import type { CSSProperties, FC } from 'react';\nimport { useContext, useEffect, useRef } from 'react';\n\nimport { BrowserFeaturesContext } from '../../BrowserFeatures/BrowserFeaturesContextProvider';\nimport type { BaseComponentProps } from '../../types';\nimport { dataSetToAttributes } from '../../utils';\n\ninterface ScrollAnimatedVideoProps extends BaseComponentProps {\n  className?: string;\n  /** Mp4 video source, used for safari and chrome */\n  videoMp4Src: string;\n  /** Webm video source, used for firefox */\n  videoWebmSrc: string;\n  /** Start time of video to use as start as animation. defaults to start of video */\n  videoStart?: number;\n  /** End time of video to use as end of animation. defaults to end of video */\n  videoEnd?: number;\n  /** What percent (0-100) the scrub animation should start at, defaults to 0 */\n  scrubStart?: number;\n  /** What percent (0-100) the scrub animation should end at, defaults to 100 */\n  scrubEnd?: number;\n  /**\n   * Function that returns the scroll progress for the scrub video. Needs to return a value between\n   * 0 and 1. Memoize this function to prevent attaching and unattaching scroll listeners on every\n   * render\n   */\n  calculateScrollProgress: () => number;\n  style?: CSSProperties;\n}\n\n/**\n * Component that will scrub through a video based on the scrollProgress calculated by the\n * calculateScrollProgress function on scroll and resize\n */\nexport const ScrollAnimatedVideo: FC<ScrollAnimatedVideoProps> = ({\n  calculateScrollProgress,\n  className,\n  videoMp4Src,\n  videoWebmSrc,\n  videoStart = 0,\n  videoEnd,\n  scrubStart = 0,\n  scrubEnd = 100,\n  style,\n  dataset,\n}) => {\n  const videoRef = useRef<HTMLVideoElement>(null);\n\n  const browserFeatures = useContext(BrowserFeaturesContext);\n  const hints = browserFeatures.getLowEntropyHints();\n  const isFirefox = hints.browsers.some(browser => browser.brand === 'Firefox');\n\n  const finalVideoSrc = isFirefox ? videoWebmSrc : videoMp4Src;\n\n  useEffect(() => {\n    if (videoRef.current) {\n      videoRef.current.currentTime = videoStart || 0;\n    }\n\n    const scrollCallback = () => {\n      if (videoRef.current) {\n        const scrollPercent = calculateScrollProgress();\n\n        const scrubRange = (scrubEnd - scrubStart) / 100;\n        // scale the scroll percent to the scrub range\n        const animationPercent = (scrollPercent - scrubStart / 100) * (1 / scrubRange);\n\n        if (animationPercent > 0 && animationPercent <= 1) {\n          const finalVideoEnd = videoEnd\n            ? Math.min(videoEnd, videoRef.current.duration)\n            : videoRef.current.duration;\n          const animationDuration = finalVideoEnd - videoStart;\n          const newTime = videoStart + animationDuration * animationPercent;\n\n          videoRef.current.currentTime = Number.parseFloat(newTime.toFixed(3));\n        }\n      }\n    };\n\n    // NOTE: if performance proves to be an issue, we can look into using\n    // blobs to load a whole video, or requestAnimationFrame, or adding an intersection observer\n    // to attach/remove the scroll listeners\n    window.addEventListener('scroll', scrollCallback);\n    window.addEventListener('resize', scrollCallback);\n\n    return () => {\n      window.removeEventListener('scroll', scrollCallback);\n      window.removeEventListener('resize', scrollCallback);\n    };\n  }, [calculateScrollProgress, scrubEnd, scrubStart, videoEnd, videoStart]);\n\n  return (\n    <video\n      ref={videoRef}\n      src={finalVideoSrc}\n      className={className}\n      style={style}\n      {...dataSetToAttributes(dataset)}\n    />\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC, MouseEventHandler } from 'react';\nimport type React from 'react';\nimport { memo, useContext, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { BrowserFeaturesContext, isMobileOs } from '../../BrowserFeatures';\nimport { mobileMaxWidth } from '../../constants';\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { dataSetToAttributes, getBackgroundClassName } from '../../utils';\nimport { useWindowSize } from '../../utils/useWindowSize';\nimport { Icon } from '../Icon';\nimport { SideNavigationLinks } from './SideNavigationLinks';\nimport {\n  caratCss,\n  containerCss,\n  sectionButtonCss,\n  sideNavIconCss,\n  sideNavMobileIconCss,\n  wrapperCss,\n  wrapperShadowCss,\n} from './styles';\nimport type { SideNavigationProps } from './types';\n\n// TODO: refactor this component, does not follow our code style\nexport const SideNavigation: FC<SideNavigationProps> = memo(\n  ({ className, items, isUrlCurrent, dataset, backgroundColor, mobileBackgroundColor }) => {\n    useMotifStyles(MotifComponent.SIDE_NAVIGATION);\n\n    const browserFeatures = useContext(BrowserFeaturesContext);\n    const { width: windowWidth } = useWindowSize();\n    const isMobile = isMobileOs(browserFeatures);\n    const containerRef = useRef<HTMLElement | null>(null);\n    const sectionsRefs = useRef<Array<HTMLButtonElement | null>>([]);\n    const defaultSection = items.findIndex(section =>\n      section.links.find(link => isUrlCurrent?.(link.url))\n    );\n    const [activeSection, setActiveSection] = useState<number | null>(defaultSection);\n    const [isVisible, setIsVisible] = useState<boolean>(!isMobile);\n\n    // This changes the active section when the URL changes.\n    // TODO: Think if there's a more elegant solution.\n    useEffect(() => {\n      setActiveSection(defaultSection);\n      // eslint-disable-next-line react-hooks/exhaustive-deps\n    }, [isUrlCurrent]);\n\n    const isRtl = (): boolean => {\n      return !!containerRef?.current?.closest('[dir=\"rtl\"]');\n    };\n\n    const handleSectionClick =\n      (idx: number): MouseEventHandler =>\n      event => {\n        event.preventDefault();\n        setActiveSection(idx === activeSection ? null : idx);\n      };\n\n    const handleSectionKeyPress = (idx: number) => (event: React.KeyboardEvent) => {\n      // focus next section\n      if (event.key === 'ArrowDown') {\n        const next: HTMLButtonElement | null | undefined = sectionsRefs.current[idx + 1];\n\n        if (next) {\n          next.focus();\n        }\n      }\n\n      // focus previous section\n      if (event.key === 'ArrowUp') {\n        const prev: HTMLButtonElement | null | undefined = sectionsRefs.current[idx - 1];\n\n        if (prev) {\n          prev.focus();\n        }\n      }\n\n      // open/close section\n      if (event.key === 'ArrowRight') {\n        setActiveSection(isRtl() ? null : idx);\n      }\n\n      if (event.key === 'ArrowLeft') {\n        setActiveSection(isRtl() ? idx : null);\n      }\n    };\n\n    const focusSection = (idx: number) => {\n      const section: HTMLButtonElement | null | undefined = sectionsRefs.current[idx];\n\n      if (section) {\n        section.focus();\n      }\n    };\n\n    const toggleIsVisible = () => {\n      setIsVisible(!isVisible);\n    };\n\n    const showTopBar = useMemo(() => windowWidth && windowWidth <= mobileMaxWidth, [windowWidth]);\n\n    useEffect(() => {\n      setIsVisible(!showTopBar);\n    }, [showTopBar]);\n\n    return (\n      <section\n        data-test-id=\"sdsm-side-navigation\"\n        className={cx(\n          MotifComponent.SIDE_NAVIGATION,\n          getBackgroundClassName(showTopBar ? mobileBackgroundColor : backgroundColor),\n          wrapperCss,\n          {\n            [wrapperShadowCss]: !isVisible,\n          },\n          className\n        )}\n      >\n        <button\n          type=\"button\"\n          data-test-id=\"sdsm-side-navigation-mobile-toggle\"\n          aria-label={items[defaultSection]?.title ?? 'Secondary Navigation'}\n          className={sectionButtonCss}\n          onClick={toggleIsVisible}\n        >\n          <span>{items[defaultSection]?.title ?? 'Secondary Navigation'}</span>\n          <Icon className={sideNavMobileIconCss} name={isVisible ? 'chevron-up' : 'chevron-down'} />\n        </button>\n        <nav\n          data-test-id=\"sdsm-side-navigation-links\"\n          aria-label=\"Secondary Navigation\"\n          ref={containerRef}\n          className={containerCss}\n          style={{ display: isVisible ? 'block' : 'none' }}\n          {...dataSetToAttributes(dataset)}\n        >\n          <ul role=\"menubar\" aria-label=\"Secondary Navigation\">\n            {items.map((section, idx) => (\n              <li key={idx}>\n                <button\n                  ref={el => {\n                    sectionsRefs.current[idx] = el;\n                  }}\n                  type=\"button\"\n                  onKeyDown={handleSectionKeyPress(idx)}\n                  onClick={handleSectionClick(idx)}\n                  role=\"menuitem\"\n                  aria-haspopup={items[idx]!.links.length > 0}\n                  aria-expanded={activeSection === idx}\n                  tabIndex={0}\n                  aria-label={section.title}\n                >\n                  <span {...dataSetToAttributes(section.dataset)}>{section.title}</span>\n                  <span className={caratCss}>\n                    <Icon\n                      className={sideNavIconCss}\n                      name={activeSection === idx ? 'chevron-up' : 'chevron-down'}\n                      size={18}\n                    />\n                    <Icon\n                      className={sideNavIconCss}\n                      name={activeSection === idx ? 'chevron-up' : 'chevron-down'}\n                      size={18}\n                    />\n                    <Icon\n                      className={sideNavIconCss}\n                      name={activeSection === idx ? 'chevron-up' : 'chevron-down'}\n                      size={18}\n                    />\n                  </span>\n                </button>\n\n                <ul\n                  role=\"menu\"\n                  aria-label={section.title}\n                  style={{ display: activeSection === idx ? 'block' : 'none' }}\n                >\n                  <SideNavigationLinks\n                    links={section.links}\n                    isUrlCurrent={isUrlCurrent}\n                    focusSection={() => focusSection(idx)}\n                    isRTL={isRtl}\n                  />\n                </ul>\n              </li>\n            ))}\n          </ul>\n        </nav>\n      </section>\n    );\n  }\n);\n\nSideNavigation.displayName = 'SideNavigation';\n", "import { cx } from '@emotion/css';\nimport type React from 'react';\nimport type { FC } from 'react';\nimport { useContext, useRef } from 'react';\n\nimport { dataSetToAttributes } from '../../utils';\nimport { isExternal } from '../../utils/domains';\nimport { PrimitivesContext } from '../Primitives';\nimport { activeLinkCss, linkCss } from './styles';\nimport type { SideNavigationItemProps, SideNavigationLinksProps } from './types';\n\nexport const SideNavigationLinks: FC<SideNavigationLinksProps> = ({\n  links,\n  isUrlCurrent,\n  focusSection,\n  isRTL,\n}) => {\n  const linksRefs = useRef<Array<HTMLAnchorElement | null>>([]);\n  const { Anchor } = useContext(PrimitivesContext);\n\n  const handleLinkKeyPress = (idx: number) => (event: React.KeyboardEvent) => {\n    // focus next link\n    if (event.key === 'ArrowDown') {\n      const next: HTMLAnchorElement | null | undefined = linksRefs.current[idx + 1];\n\n      if (next) {\n        next.focus();\n      }\n    }\n\n    // focus previous link\n    if (event.key === 'ArrowUp') {\n      const prev: HTMLAnchorElement | null | undefined = linksRefs.current[idx - 1];\n\n      if (prev) {\n        prev.focus();\n      }\n    }\n\n    // focus parent section\n    if (event.key === (isRTL() ? 'ArrowRight' : 'ArrowLeft')) {\n      focusSection();\n    }\n  };\n\n  const handleOnClick = (url: string) => () => {\n    if (isExternal(url)) {\n      requestAnimationFrame(() => window.scrollTo(0, 0));\n    }\n  };\n\n  const createLink = (link: SideNavigationItemProps, id: number) => {\n    const linkProps = {\n      ref: (element: HTMLAnchorElement) => {\n        linksRefs.current[id] = element;\n      },\n      onKeyDown: handleLinkKeyPress(id),\n      onClick: handleOnClick(link.url),\n      role: 'menuitem',\n    };\n\n    const ariaCurrent = isUrlCurrent?.(link.url) ? 'page' : undefined;\n\n    return (\n      // eslint-disable-next-line react/jsx-no-target-blank\n      <Anchor\n        href={link.url}\n        target={link.inNewTab ? '_blank' : undefined}\n        rel={link.inNewTab ? 'noopener' : undefined}\n        {...linkProps}\n        aria-current={ariaCurrent}\n      >\n        {link.title}\n      </Anchor>\n    );\n  };\n\n  return (\n    <>\n      {links.map((link, idx) => {\n        const isCurrent = isUrlCurrent?.(link.url);\n        return (\n          <li\n            key={idx}\n            className={cx(linkCss, {\n              [activeLinkCss]: isCurrent,\n            })}\n            {...dataSetToAttributes(link.dataset)}\n          >\n            {createLink(link, idx)}\n          </li>\n        );\n      })}\n    </>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC, KeyboardEvent, MouseEvent, ReactNode } from 'react';\nimport { useEffect, useRef } from 'react';\n\nimport { m, MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps } from '../../types';\nimport { Icon } from '../Icon';\nimport {\n  sideOverlayActiveCss,\n  sideOverlayBackdropActiveCss,\n  sideOverlayBackdropCss,\n  sideOverlayCloseButtonCss,\n  sideOverlayCss,\n  sideOverlayDefinitionCss,\n  sideOverlayHeaderCss,\n  sideOverlayListCss,\n  sideOverlayTermCss,\n} from './SideOverlay.styles';\n\ninterface SideOverlayProps extends BaseComponentProps {\n  isOpen: boolean;\n  title?: ReactNode;\n  body?: ReactNode;\n  onClose?: (e: MouseEvent | KeyboardEvent) => void;\n}\n\nexport const SideOverlay: FC<SideOverlayProps> = ({ isOpen, title, body, onClose, className }) => {\n  useMotifStyles(MotifComponent.SIDE_OVERLAY);\n\n  const closeButtonRef = useRef<HTMLButtonElement>(null);\n\n  // Focus the close button when the overlay opens\n  useEffect(() => {\n    if (isOpen) {\n      setTimeout(() => {\n        closeButtonRef?.current?.focus();\n      }, 250); // Wait for overlay to animate in and become visible\n    }\n  }, [isOpen]);\n\n  return (\n    <>\n      <div\n        className={cx(sideOverlayBackdropCss, {\n          [sideOverlayBackdropActiveCss]: isOpen,\n        })}\n        onClick={onClose}\n      />\n      <aside\n        className={cx(\n          MotifComponent.SIDE_OVERLAY,\n          sideOverlayCss,\n          {\n            [sideOverlayActiveCss]: isOpen,\n          },\n          className\n        )}\n      >\n        <div className={sideOverlayHeaderCss}>\n          <button\n            className={sideOverlayCloseButtonCss}\n            type=\"button\"\n            ref={closeButtonRef}\n            onClick={onClose}\n            onKeyDown={onClose}\n          >\n            <Icon name=\"cross\" size={24} fill={m('--side-overlay-fg-color')} />\n          </button>\n        </div>\n        <dl className={sideOverlayListCss}>\n          <dt className={sideOverlayTermCss}>{title}</dt>\n          <dd className={sideOverlayDefinitionCss}>{body}</dd>\n        </dl>\n      </aside>\n    </>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery, nonMobileMediaQuery, Plain, ZIndex } from '../../constants';\nimport { m } from '../../motif/m';\n\n// Value taken from designs. Jira ticket: https://jira.sc-corp.net/browse/WEBP-10648\nconst contentMaxWidthPx = 340;\nconst contentMaxWidthPxMobile = 640;\n\nexport const sideOverlayCss = css`\n  background-color: ${m('--side-overlay-bg-color')};\n  border: 1px solid ${m('--side-overlay-border-color')};\n  box-shadow: 0 12px 20px 0 #0000001f;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  position: fixed;\n  transition: transform 200ms ease-in-out, visibility 200ms ease-in-out;\n  visibility: hidden;\n  z-index: ${ZIndex.SIDE_OVERLAY};\n\n  ${nonMobileMediaQuery} {\n    border-radius: ${m('--border-radius-l')};\n    height: calc(100vh - var(--total-header-height, 0px) - (2 * ${m('--spacing-l')}));\n    max-width: ${contentMaxWidthPx}px;\n    right: ${m('--spacing-l')};\n    top: calc(var(--total-header-height, 0px) + ${m('--spacing-l')});\n    transform: translateX(calc(100% + ${m('--spacing-l')}));\n    width: ${contentMaxWidthPx}px;\n\n    *[dir='rtl'] & {\n      left: ${m('--spacing-l')};\n      right: auto;\n      transform: translateX(calc(-100% - ${m('--spacing-l')}));\n    }\n  }\n\n  ${mobileMediaQuery} {\n    border-radius: ${m('--border-radius-l')} ${m('--border-radius-l')} 0 0;\n    bottom: 0;\n    height: auto;\n    left: 50%;\n    max-height: calc(100vh - var(--total-header-height, 0px) - ${m('--spacing-m')});\n    max-width: ${contentMaxWidthPxMobile}px;\n    transform: translateX(-50%) translateY(100%);\n    width: calc(100vw - (2 * ${m('--spacing-m')}));\n\n    *[dir='rtl'] & {\n      left: 50%;\n      right: auto;\n    }\n  }\n`;\n\nexport const sideOverlayActiveCss = css`\n  visibility: visible;\n\n  ${nonMobileMediaQuery} {\n    transform: translateX(0);\n\n    *[dir='rtl'] & {\n      transform: translateX(0);\n    }\n  }\n\n  ${mobileMediaQuery} {\n    transform: translateX(-50%) translateY(0);\n  }\n`;\n\nexport const sideOverlayBackdropCss = css`\n  background-color: ${Plain.BLACK};\n  display: none;\n  height: 100vh;\n  left: 0;\n  opacity: 0;\n  position: fixed;\n  top: 0;\n  transition: opacity 200ms linear, visibility 200ms linear;\n  visibility: hidden;\n  width: 100vw;\n  z-index: ${ZIndex.SIDE_OVERLAY};\n\n  ${mobileMediaQuery} {\n    display: block;\n  }\n`;\n\nexport const sideOverlayBackdropActiveCss = css`\n  opacity: 0.3;\n  visibility: visible;\n`;\n\nexport const sideOverlayHeaderCss = css`\n  display: flex;\n  font-size: ${m('--h6-desktop-font-size')};\n  font-weight: ${m('--h6-desktop-font-weight')};\n  justify-content: end;\n  line-height: ${m('--h6-desktop-font-line-height')};\n  padding: ${m('--spacing-m')};\n`;\n\nexport const sideOverlayCloseButtonCss = css`\n  background: transparent;\n  border: none;\n  cursor: pointer;\n  margin: calc(${m('--spacing-m')} * -1);\n  padding: ${m('--spacing-m')};\n`;\n\nexport const sideOverlayListCss = css`\n  height: 100%;\n  margin: 0;\n  overflow-y: auto;\n  padding: ${m('--spacing-xs')} ${m('--spacing-l')} ${m('--spacing-l')} ${m('--spacing-l')};\n\n  ${mobileMediaQuery} {\n    padding-bottom: ${m('--spacing-xxxxl')};\n  }\n`;\n\nexport const sideOverlayTermCss = css`\n  color: ${m('--side-overlay-fg-color')};\n  font-size: ${m('--h6-desktop-font-size')};\n  font-weight: ${m('--h6-desktop-font-weight')};\n  line-height: ${m('--h6-desktop-font-line-height')};\n  margin: 0 0 ${m('--spacing-s')} 0;\n  padding: 0;\n`;\n\nexport const sideOverlayDefinitionCss = css`\n  color: ${m('--side-overlay-fg-color')};\n  font-size: ${m('--p2-desktop-font-size')};\n  font-weight: ${m('--p2-desktop-font-weight')};\n  line-height: ${m('--p2-desktop-font-line-height')};\n  margin: 0;\n  padding: 0;\n`;\n", "import { cx } from '@emotion/css';\nimport { ensureSingleScript } from '@snapchat/mw-common/client';\nimport type { FC } from 'react';\nimport { useContext, useEffect, useRef } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport type { BaseComponentProps } from '../../types';\nimport { dataSetToAttributes } from '../../utils';\nimport { PrimitivesContext } from '../Primitives';\nimport {\n  blockQuoteCss,\n  footerCss,\n  footerLinkCss,\n  footerTextCss,\n  frameContainerCss,\n  frameCss,\n  iframeContainerCss,\n  linkCss,\n  spacerCss,\n} from './SnapchatEmbed.styles';\n\nexport interface SnapchatEmbedProps extends BaseComponentProps {\n  url: string;\n}\n\n/** (BETA) Renders an embedded Lens, Spotlight, Publish Profile, or Story. */\nexport const SnapchatEmbed: FC<SnapchatEmbedProps> = props => {\n  const { url, dataset, className } = props;\n  const ref = useRef<HTMLDivElement>(null);\n  useMotifStyles(MotifComponent.SNAPCHAT_EMBED);\n  const { Anchor } = useContext(PrimitivesContext);\n\n  useEffect(() => {\n    ensureSingleScript('snapchat-embed', 'https://www.snapchat.com/embed.js', () => {\n      // See https://github.sc-corp.net/Snapchat/web/pull/4201\n      const event = new Event('loadEmbed', { bubbles: true });\n      ref.current?.dispatchEvent(event);\n    });\n  }, [url]);\n\n  // Remove params and trailing slash\n  const newUrl = new URL(url);\n  const urlWithoutParams = `${newUrl.origin}${newUrl.pathname}`.replace(/\\/$/, '');\n\n  // Note: These elements and styles comes directly from the embed code\n  return (\n    <div\n      className={cx(MotifComponent.SNAPCHAT_EMBED, iframeContainerCss, className)}\n      ref={ref}\n      {...dataSetToAttributes(dataset)}\n    >\n      <blockquote\n        className={cx(blockQuoteCss, 'snapchat-embed')}\n        data-snapchat-embed-width=\"416\"\n        data-snapchat-embed-height=\"692\"\n        data-snapchat-embed-url={`${urlWithoutParams}/embed`}\n        data-snapchat-embed-style=\"border-radius: 40px;\"\n      >\n        <div className={frameContainerCss}>\n          <Anchor href={urlWithoutParams} className={linkCss} />\n\n          <div className={frameCss} />\n        </div>\n        <div className={spacerCss} />\n        <div className={footerCss}>\n          <Anchor href={urlWithoutParams} className={footerLinkCss}>\n            <div className={footerTextCss}>View more on Snapchat</div>\n          </Anchor>\n        </div>\n      </blockquote>\n    </div>\n  );\n};\n", "import { css } from '@emotion/css';\n\nexport const iframeContainerCss = css`\n  width: 100%;\n  min-width: 300px;\n  max-width: 416px;\n  margin: 0 auto;\n\n  > iframe {\n    aspect-ratio: 3 / 5;\n    width: 100%;\n    height: 100%;\n  }\n`;\n\nexport const blockQuoteCss = css`\n  background: #c4c4c4;\n  border: 0;\n  border-radius: 40px;\n  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5), 0 1px 10px 0 rgba(0, 0, 0, 0.15);\n  margin: 1px;\n  min-width: 300px;\n  max-width: 416px;\n  padding: 0;\n  width: 99.375%;\n  display: flex;\n  flex-direction: column;\n  position: relative;\n  height: 650px;\n`;\n\nexport const frameContainerCss = css`\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n`;\n\nexport const linkCss = css`\n  background-color: #f4f4f4;\n  border-radius: 50%;\n  flex-grow: 0;\n  height: 40px;\n  margin: 16px 14px 16px 16px;\n  width: 40px;\n  cursor: pointer;\n`;\n\nexport const frameCss = css`\n  display: flex;\n  flex-direction: column;\n  flex-grow: 1;\n  justify-content: center;\n`;\n\nexport const spacerCss = css`\n  flex: 1;\n`;\n\nexport const footerCss = css`\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  border-end-end-radius: 40px;\n  border-end-start-radius: 40px;\n`;\n\nexport const footerLinkCss = css`\n  background-color: yellow;\n  width: 100%;\n  padding: 10px 20px;\n  border: none;\n  border-radius: inherit;\n  cursor: pointer;\n  text-align: center;\n  display: flex;\n  flex-direction: row;\n  justify-content: center;\n  text-decoration: none;\n  color: black;\n  align-items: center;\n`;\n\n// Using non-motif values because these should match with external embed styles, not sdsm\nexport const footerTextCss = css`\n  margin-left: 4px;\n  padding-bottom: 1px;\n  font-size: 14px;\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\nimport { Children } from 'react';\n\nimport { Alignment, BackgroundColor } from '../../constants';\nimport { getMotifSchemeForLegacyBackgroundColor, MotifComponent } from '../../motif';\nimport { alignmentCss, justifyContentCss, mobileAlignmentCss } from '../../utils';\nimport { backgroundCss } from '../Block';\nimport { Picture } from '../Picture';\nimport { Video } from '../Video';\nimport {\n  bodyCss,\n  contentWrapperCss,\n  ctaWrapperCss,\n  fitWindowCss,\n  mediaCaptionCss,\n  mediaWrapperCss,\n  reverseSplitCss,\n  splitBlockWrapperCss,\n  subtitleCss,\n  textWrapperCss,\n  titleCss,\n} from './styles';\nimport type { SplitBlockProps } from './types';\n\n/**\n * A SDS-M component for displaying content in a split layout, with media section (image or video)\n * on one side and content with calls to action on the other.\n *\n * @property {BackgroundColor} [backgroundColor] - The background color of the component. Default is\n *   `BackgroundColor.Black`\n * @property {ReactNode} [body] - The main text content to be displayed.\n * @property {Buttons} [callsToAction] - An array of call-to-action buttons.\n * @property {boolean} [fitWindow] - Whether the component should expand to fit the entire viewport\n *   height. Default is `false`\n * @property {ImageSources} [imageSources] - An object containing image sources for different screen\n *   sizes (if using an image).\n * @property {string} [mediaCaption] - A caption for the media (image or video).\n * @property {string} [mediaContentType] - The content type of the media (e.g., 'image/jpeg',\n *   'video/mp4').\n * @property {Alignment} [mediaDirection] - The position of the media section (start or end).\n *   Default is `Alignment.End`\n * @property {string} [mobileMediaContentType] - The content type of the media on mobile devices.\n * @property {string} [mobileVideoSource] - The video source for mobile devices.\n * @property {string} [subtitle] - A subtitle to be displayed below the title.\n * @property {Alignment} [textAlignment] - The horizontal alignment of the text content. Default is\n *   `Alignment.Start`\n * @property {Alignment} [textAlignmentMobile] - The horizontal alignment of the text content on\n *   mobile devices. Default is `Alignment.Center`\n * @property {string} [title] - The main title to be displayed.\n * @property {Alignment} [verticalTextAlignment] - The vertical alignment of the text content.\n *   Default is `Alignment.Center`\n * @property {string} [videoSource] - The video source (if using a video).\n * @returns {JSX.Element} The rendered SplitBlock component.\n */\n\nexport const SplitBlock: FC<SplitBlockProps> = props => {\n  const {\n    backgroundColor = BackgroundColor.Black,\n    body,\n    callsToAction,\n    fitWindow = false,\n    imageSources,\n    mediaCaption,\n    mediaContentType,\n    mediaDirection = Alignment.End,\n    mobileMediaContentType,\n    mobileVideoSource,\n    subtitle,\n    textAlignment = Alignment.Start,\n    textAlignmentMobile = Alignment.Center,\n    title,\n    verticalTextAlignment = Alignment.Center,\n    videoSource,\n  } = props;\n\n  const callsToActionCount = Children.toArray(callsToAction).length;\n\n  return (\n    <article\n      className={cx(\n        MotifComponent.SPLIT_BLOCK,\n        getMotifSchemeForLegacyBackgroundColor(backgroundColor),\n        splitBlockWrapperCss,\n        {\n          [fitWindowCss]: fitWindow,\n          [reverseSplitCss]: mediaDirection === Alignment.Start,\n        }\n      )}\n    >\n      <section\n        className={cx(textWrapperCss, {\n          [reverseSplitCss]: mediaDirection === Alignment.Start,\n        })}\n      >\n        <div\n          className={cx(\n            contentWrapperCss,\n            alignmentCss[textAlignment],\n            mobileAlignmentCss[textAlignmentMobile],\n            justifyContentCss[verticalTextAlignment]\n          )}\n        >\n          {title && <h2 className={titleCss}>{title}</h2>}\n          {subtitle && <div className={subtitleCss}>{subtitle}</div>}\n          {body && <div className={bodyCss}>{body}</div>}\n          {callsToActionCount > 0 ? (\n            <section\n              className={cx(\n                ctaWrapperCss,\n                alignmentCss[textAlignment],\n                mobileAlignmentCss[textAlignmentMobile]\n              )}\n            >\n              {callsToAction}\n            </section>\n          ) : null}\n        </div>\n      </section>\n      {(imageSources || videoSource) && (\n        <section className={mediaWrapperCss}>\n          {imageSources && (\n            <Picture\n              altText={mediaCaption}\n              imgSrcs={imageSources}\n              imgClassName={backgroundCss}\n              fetchPriority=\"auto\"\n            />\n          )}\n          {videoSource && (\n            <Video\n              className={backgroundCss}\n              isBackgroundVideo\n              mobileSource={mobileVideoSource}\n              mobileSourceType={mobileMediaContentType}\n              source={videoSource}\n              sourceType={mediaContentType}\n            />\n          )}\n          {mediaCaption && <div className={mediaCaptionCss}>{mediaCaption}</div>}\n        </section>\n      )}\n    </article>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport {\n  mobileMediaQuery,\n  nonMobileMediaQuery,\n  twoColumnCollapseMediaQuery,\n  White,\n} from '../../constants';\nimport { h1Css, m, p1Css, p2Css, p3Css } from '../../motif';\nimport { globalHeaderHeight } from '../GlobalHeader';\nimport { primitiveElementClassNames } from '../Primitives';\n\n/** Minimum height of the Split block */\n// TODO: Make sure this is the expected min height in the next Snap meeting\nconst minHeightPx = 400;\n\n/** Minimum height of mobile media */\nconst mobileMediaMinHeightPx = 375;\n\n/** Max width for Content wrapper from designs */\nconst contentMaxWidthPx = 592;\n\n/** Max width for Media caption from designs */\nconst mediaCaptionMaxWidthPx = 440;\n\nexport const splitBlockWrapperCss = css`\n  align-items: stretch;\n  background-color: ${m('--background-color')};\n  display: flex;\n  gap: 0;\n  justify-content: center;\n  min-height: ${minHeightPx}px;\n  width: 100%;\n\n  ${mobileMediaQuery} {\n    flex-direction: column;\n    height: 100%;\n  }\n`;\n\nexport const fitWindowCss = css`\n  height: calc(100vh - ${globalHeaderHeight}px);\n`;\n\nexport const reverseSplitCss = css`\n  flex-direction: row-reverse;\n`;\n\nexport const textWrapperCss = css`\n  display: flex;\n  flex-shrink: 0;\n  justify-content: flex-end;\n  padding: ${m('--spacing-xxxxl')};\n  width: 50%;\n\n  ${twoColumnCollapseMediaQuery} {\n    width: 60%;\n  }\n\n  ${mobileMediaQuery} {\n    padding: 0;\n    width: 100%;\n  }\n`;\n\nexport const contentWrapperCss = css`\n  color: ${m('--foreground-color')};\n  display: flex;\n  flex-direction: column;\n  gap: ${m('--spacing-m')};\n  padding: ${m('--spacing-xl')};\n  width: 100%;\n\n  ${nonMobileMediaQuery} {\n    max-width: ${contentMaxWidthPx}px;\n  }\n`;\n\nexport const titleCss = css`\n  ${h1Css}\n  word-break: break-word;\n`;\n\nexport const subtitleCss = css`\n  ${p1Css}\n  word-break: break-word;\n`;\n\nexport const bodyCss = css`\n  ${p2Css}\n  margin-bottom: 0;\n  word-break: break-word;\n\n  & .${primitiveElementClassNames.p}:last-child {\n    margin-bottom: 0;\n  }\n`;\n\nexport const ctaWrapperCss = css`\n  align-items: center;\n  display: flex;\n  flex-wrap: wrap;\n  gap: ${m('--spacing-m')};\n  margin-top: ${m('--spacing-m')};\n`;\n\nexport const mediaWrapperCss = css`\n  display: flex;\n  justify-content: center;\n  position: relative;\n  width: 50%;\n\n  ${twoColumnCollapseMediaQuery} {\n    width: 40%;\n  }\n\n  ${mobileMediaQuery} {\n    height: ${mobileMediaMinHeightPx}px;\n    width: 100%;\n  }\n`;\n\nexport const backgroundCss = css`\n  height: 100%;\n  inset: 0;\n  object-fit: cover;\n  position: absolute;\n  width: 100%;\n`;\n\nexport const mediaCaptionCss = css`\n  background: rgba(0, 0, 0, 0.8);\n  border-radius: ${m('--border-radius-s')};\n  bottom: ${m('--spacing-m')};\n  color: ${White};\n  max-width: ${mediaCaptionMaxWidthPx}px;\n  padding: ${m('--spacing-xxs')} ${m('--spacing-xs')};\n  position: absolute;\n  ${p3Css}\n\n  ${mobileMediaQuery} {\n    margin-inline: ${m('--spacing-xl')};\n    max-width: 100%;\n  }\n`;\n", "import { css } from '@emotion/css';\n\nimport { mobileMediaQuery } from '../../constants';\nimport { ZIndex } from '../../constants/zIndex';\nimport { m } from '../../motif';\n\nexport const navCss = css`\n  align-items: center;\n  background-color: ${m('--background-color')};\n  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.08); /* +16px vertical and -16px spread to prevent showing above the nav */\n  color: white;\n  display: flex;\n  height: 56px;\n  justify-content: center;\n  overflow: hidden;\n  position: sticky;\n  top: 125px;\n  width: 100%;\n  z-index: ${ZIndex.SUB_NAVIGATION};\n\n  ${mobileMediaQuery} {\n    justify-content: flex-start;\n  }\n\n  &::after {\n    background: linear-gradient(to right, transparent 0, ${m('--background-color')} 100%);\n    content: '';\n    display: block;\n    height: 100%;\n    pointer-events: none;\n    position: absolute;\n    right: 0;\n    top: 0;\n    width: ${m('--spacing-xl')};\n\n    [dir='rtl'] & {\n      background: linear-gradient(to left, transparent 0, ${m('--background-color')} 100%);\n      left: 0;\n      right: auto;\n    }\n  }\n`;\n\nexport const itemsWrapCss = css`\n  align-items: center;\n  display: flex;\n  height: 100%;\n  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */\n  overflow-x: scroll;\n  overflow-y: hidden;\n  scrollbar-width: none; /* Hide scrollbar for Firefox */\n\n  &::-webkit-scrollbar {\n    display: none; /* Hide scrollbar for Chrome and Safari */\n  }\n`;\n\nexport const itemsCss = css`\n  align-items: center;\n  display: flex;\n  gap: ${m('--spacing-xl')};\n  height: 100%;\n  list-style: none;\n  padding-inline: ${m('--spacing-xl')};\n`;\n\nexport const itemCss = css`\n  align-items: center;\n  display: flex;\n  height: 100%;\n`;\n\nconst underlineHeight = 8;\n\nexport const itemLinkCss = css`\n  align-items: center;\n  color: ${m('--sub-navigation-item-color')};\n  display: flex;\n  font-size: ${m('--action-desktop-font-size')};\n  font-weight: ${m('--action-desktop-font-weight')};\n  height: 100%;\n  line-height: ${m('--action-desktop-font-line-height')};\n  position: relative;\n  text-decoration: none;\n  white-space: nowrap;\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--action-mobile-font-size')};\n    font-weight: ${m('--action-mobile-font-weight')};\n    line-height: ${m('--action-mobile-font-line-height')};\n  }\n\n  @media (hover: hover) {\n    &:hover {\n      color: ${m('--sub-navigation-item-hover-color')};\n    }\n\n    &:hover::after {\n      transform: translateY(-${underlineHeight / 2}px);\n    }\n  }\n\n  &::after {\n    background-color: ${m('--sub-navigation-item-hover-decoration-color')};\n    bottom: -${underlineHeight}px;\n    content: '';\n    height: ${underlineHeight}px;\n    left: 0;\n    position: absolute;\n    border-radius: ${m('--border-radius-s')};\n    transform: translateY(0);\n    transition: all 0.15s ease;\n    width: 100%;\n  }\n\n  @media (hover: hover) {\n    &:hover {\n      color: ${m('--sub-navigation-item-hover-color')};\n    }\n\n    &:hover::after {\n      transform: translateY(-${underlineHeight / 2}px);\n    }\n  }\n`;\n\nexport const itemLinkActiveCss = css`\n  color: ${m('--sub-navigation-item-active-color')};\n\n  &::after {\n    background-color: ${m('--sub-navigation-item-active-decoration-color')};\n    transform: translateY(-${underlineHeight / 2}px);\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { dataSetToAttributes, getBackgroundClassName } from '../../utils';\nimport { itemsCss, itemsWrapCss, navCss } from './styles';\nimport type { SubNavigationProps } from './types';\n\nexport const SubNavigation: FC<PropsWithChildren<SubNavigationProps>> = ({\n  backgroundColor,\n  className,\n  children,\n  horizontalScrollRef,\n  dataset,\n}) => {\n  useMotifStyles(MotifComponent.SUB_NAVIGATION);\n\n  return (\n    <nav\n      className={cx(\n        MotifComponent.SUB_NAVIGATION,\n        navCss,\n        getBackgroundClassName(backgroundColor),\n        className\n      )}\n      {...dataSetToAttributes(dataset)}\n    >\n      <div ref={horizontalScrollRef} className={itemsWrapCss}>\n        <ul className={itemsCss}>{children}</ul>\n      </div>\n    </nav>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC, PropsWithChildren } from 'react';\nimport { useContext } from 'react';\n\nimport { dataSetToAttributes } from '../../utils';\nimport { PrimitivesContext } from '../Primitives';\nimport { itemCss, itemLinkActiveCss, itemLinkCss } from './styles';\nimport type { SubNavigationItemProps } from './types';\n\nexport const SubNavigationItem: FC<PropsWithChildren<SubNavigationItemProps>> = ({\n  href,\n  isActive,\n  onLinkClick,\n  className,\n  children,\n  dataset,\n}) => {\n  const { Anchor } = useContext(PrimitivesContext);\n\n  return (\n    <li className={cx(itemCss, className)} {...dataSetToAttributes(dataset)}>\n      <Anchor\n        className={cx(itemLinkCss, { [itemLinkActiveCss]: isActive })}\n        href={href}\n        onClick={onLinkClick}\n      >\n        {children}\n      </Anchor>\n    </li>\n  );\n};\n\nSubNavigationItem.displayName = 'SubNavigationItem';\n", "import type { FC } from 'react';\nimport { useCallback, useRef, useState } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../motif';\nimport { TabItems } from './TabItems';\nimport { TabsContext } from './TabsContext';\nimport { TabsPanels } from './TabsPanels';\nimport type { TabsV2NavigationProps } from './types';\n\nexport const TabsV2: FC<TabsV2NavigationProps> = ({\n  items,\n  defaultSelectedTab = 0,\n  onSelectTab,\n}) => {\n  const [selectedTab, selectTab] = useState(defaultSelectedTab);\n  const eventListenersRef = useRef([] as (() => void)[]);\n\n  useMotifStyles(MotifComponent.TABS);\n\n  const handleSelectTab = useCallback(\n    (index: number) => {\n      selectTab(index);\n      onSelectTab?.(index);\n      // call all event listners registered\n      eventListenersRef.current.forEach(listener => listener?.());\n    },\n    [selectTab, onSelectTab]\n  );\n\n  if (!items || items.length < 2) {\n    return null;\n  }\n\n  return (\n    <TabsContext.Provider\n      value={{\n        addOnTabChangeListener(listener) {\n          eventListenersRef.current.push(listener);\n        },\n        removeOnTabChangeListener(listener) {\n          eventListenersRef.current = eventListenersRef.current.filter(l => l !== listener);\n        },\n      }}\n    >\n      <div className={MotifComponent.TABS} data-test-id=\"sdsm-tabs\">\n        <TabItems items={items} selectTab={handleSelectTab} selectedTab={selectedTab} />\n        <TabsPanels items={items} selectedTab={selectedTab} />\n      </div>\n    </TabsContext.Provider>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport { useBrowserLayoutEffect } from '@snapchat/mw-common/client';\nimport { type FC, type PropsWithChildren, useCallback, useEffect, useRef, useState } from 'react';\n\nimport { MediaMode } from '../../constants';\nimport { useMediaMode } from '../../hooks';\nimport type { BaseComponentProps } from '../../types';\nimport { useWindowSize } from '../../utils';\nimport {\n  arrowButtonContainerCss,\n  itemLinkActiveCss,\n  itemLinkCss,\n  leftGradientCss,\n  rightGradientCss,\n  tabItemCenterContainterCss,\n  tabItemContainterCss,\n  tabItemStartContainterCss,\n  tabsContainerCss,\n} from './styles';\nimport { TabArrows } from './TabArrows';\nimport type { TabsNavigationItemProps } from './types';\nimport { TabDirection } from './types';\n\nexport interface TabItemsProps extends BaseComponentProps {\n  onLinkClick?: (event: React.MouseEvent) => void;\n  items: TabsNavigationItemProps[];\n  selectTab: (index: number) => void;\n  selectedTab: number;\n}\n\n/**\n * Returns the entire tab component.\n *\n * @param items - Contains text, content, and maxColumns\n * @param className - Attribute for selecting CSS class\n * @param selectTab - UseState hook for selecting the tab\n * @param selectedTab - UseState hook for accessing selected tab\n */\nexport const TabItems: FC<PropsWithChildren<TabItemsProps>> = ({\n  items,\n  className,\n  selectTab,\n  selectedTab,\n}) => {\n  const containerRef = useRef<HTMLUListElement | null>(null);\n  const arrowContainerRef = useRef<HTMLDivElement | null>(null);\n\n  const [isRTL, setIsRTL] = useState(false);\n  const [scrollPosition, setScrollPosition] = useState(0);\n  const [isArrowVisible, setArrowVisibility] = useState(false);\n  const { width: windowWidth } = useWindowSize();\n\n  const scroll = useCallback(\n    (scrollNum: number) => {\n      if (containerRef.current) {\n        const newScrollPosition = scrollPosition + scrollNum;\n        containerRef.current.scrollLeft = newScrollPosition;\n        setScrollPosition(newScrollPosition);\n      }\n    },\n    [scrollPosition]\n  );\n\n  let parentTabWidth = 0;\n  let totalTabWidth = 0;\n\n  if (arrowContainerRef.current && containerRef.current?.parentElement) {\n    parentTabWidth =\n      containerRef.current.parentElement.scrollWidth - arrowContainerRef.current.scrollWidth;\n    totalTabWidth = containerRef.current.scrollWidth;\n  }\n\n  const onScroll = useCallback(\n    (direction: TabDirection) => {\n      if (isRTL) {\n        if (direction === 'Left' && -scrollPosition + parentTabWidth < totalTabWidth) {\n          scroll(Math.min(-parentTabWidth, -scrollPosition));\n        }\n\n        if (direction === 'Right' && scrollPosition < 0) {\n          scroll(Math.max(parentTabWidth, scrollPosition));\n        }\n      } else {\n        if (direction === 'Left' && scrollPosition > 0) {\n          scroll(Math.max(-parentTabWidth, -scrollPosition));\n        }\n\n        if (direction === 'Right' && scrollPosition + parentTabWidth < totalTabWidth) {\n          scroll(Math.min(parentTabWidth, totalTabWidth - (scrollPosition + parentTabWidth)));\n        }\n      }\n    },\n    [isRTL, parentTabWidth, scroll, scrollPosition, totalTabWidth]\n  );\n\n  useBrowserLayoutEffect(() => {\n    let totalParentWidth = 0;\n    let totalTabWidth = 0;\n    let arrowWidth = 0;\n    setIsRTL(!!containerRef?.current?.closest('[dir=\"rtl\"]'));\n\n    if (containerRef.current?.parentElement) {\n      totalParentWidth = containerRef.current.parentElement.scrollWidth;\n      totalTabWidth = containerRef.current.scrollWidth;\n    }\n\n    if (arrowContainerRef.current) {\n      arrowWidth = arrowContainerRef.current.scrollWidth;\n    }\n    const parentTabWidth = totalParentWidth - arrowWidth;\n\n    if (totalTabWidth > parentTabWidth) {\n      setArrowVisibility(true);\n    } else {\n      setArrowVisibility(false);\n    }\n  }, [windowWidth, items]);\n\n  const mode = useMediaMode();\n  const isMobile = mode === MediaMode.Mobile;\n\n  const [swipePosition, setSwipePosition] = useState(0);\n\n  useEffect(() => {\n    const element = containerRef?.current;\n    if (!element) return;\n\n    const listener = () => {\n      setSwipePosition(containerRef?.current?.scrollLeft ?? 0);\n    };\n\n    element.addEventListener('touchmove', listener, { passive: false });\n\n    return () => {\n      element.removeEventListener('touchmove', listener);\n    };\n  }, [containerRef]);\n\n  let isDisabledLeft = false;\n  let isDisabledRight = false;\n\n  if (isRTL) {\n    isDisabledLeft = scrollPosition <= -totalTabWidth + parentTabWidth;\n    isDisabledRight = scrollPosition === 0;\n  } else {\n    isDisabledLeft = scrollPosition === 0;\n    isDisabledRight = scrollPosition >= totalTabWidth - parentTabWidth;\n  }\n\n  let isGradientLeft = false;\n  let isGradientRight = false;\n\n  if (isRTL) {\n    if (isMobile) {\n      isGradientLeft = Math.ceil(-swipePosition) < totalTabWidth - parentTabWidth;\n      isGradientRight = swipePosition < 0;\n    } else {\n      isGradientLeft = -scrollPosition <= totalTabWidth - parentTabWidth;\n      isGradientRight = scrollPosition < 0;\n    }\n  } else {\n    if (isMobile) {\n      isGradientLeft = swipePosition > 0;\n      isGradientRight = swipePosition < totalTabWidth - parentTabWidth;\n    } else {\n      isGradientLeft = scrollPosition > 0;\n      isGradientRight = scrollPosition < totalTabWidth - parentTabWidth;\n    }\n  }\n\n  return (\n    <nav className={cx('sdsm-tabs-item', tabsContainerCss)}>\n      {isGradientLeft && <div className={leftGradientCss} />}\n      <ul\n        ref={containerRef}\n        className={cx(tabItemContainterCss, {\n          [tabItemStartContainterCss]: isArrowVisible,\n          [tabItemCenterContainterCss]: !isArrowVisible,\n        })}\n        role=\"tablist\"\n      >\n        {items?.map((item, index) => {\n          const isSelected = selectedTab === index;\n          return (\n            <li\n              // biome-ignore lint/a11y/noNoninteractiveElementToInteractiveRole: It's made interactible via tabindex.\n              role=\"tab\"\n              tabIndex={0}\n              aria-current={isSelected}\n              id={`tab-${index}`}\n              key={`tabItem-${index}`}\n              className={cx(\n                itemLinkCss,\n                {\n                  [itemLinkActiveCss]: isSelected,\n                },\n                className\n              )}\n              onClick={() => selectTab(index)}\n              onKeyUp={() => selectTab(index)}\n            >\n              {item.text}\n            </li>\n          );\n        })}\n      </ul>\n      {isGradientRight && <div className={rightGradientCss} />}\n      {isArrowVisible && (\n        <div ref={arrowContainerRef} className={arrowButtonContainerCss}>\n          <TabArrows\n            direction={TabDirection.Left}\n            onClick={() => {\n              onScroll(TabDirection.Left);\n            }}\n            isDisabled={isDisabledLeft}\n          />\n          <TabArrows\n            direction={TabDirection.Right}\n            onClick={() => {\n              onScroll(TabDirection.Right);\n            }}\n            isDisabled={isDisabledRight}\n          />\n        </div>\n      )}\n    </nav>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport {\n  mobileMediaQuery,\n  noHorizontalScrollbarsCss,\n  nonMobileMediaQuery,\n  ZIndex,\n} from '../../constants';\nimport { m, MotifComponent } from '../../motif';\n\nexport const tabsPanelsCss = css`\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: center;\n  width: 100%;\n\n  & > div {\n    margin: auto;\n  }\n\n  ${mobileMediaQuery} {\n    margin-top: ${m('--spacing-m')};\n  }\n`;\n\nexport const tabsButtonsCss = css`\n  display: flex;\n  justify-content: center;\n  padding-top: ${m('--spacing-xxxs')};\n  padding-bottom: ${m('--spacing-xxxl')};\n  flex-wrap: wrap;\n  & > .${MotifComponent.BUTTON} {\n    margin-bottom: ${m('--spacing-m')};\n  }\n  & > .${MotifComponent.BUTTON}:not(:last-child) {\n    margin-right: ${m('--spacing-m')};\n  }\n  ${mobileMediaQuery} {\n    justify-content: start;\n    margin-right: -${m('--spacing-xl')};\n    margin-left: -${m('--spacing-xl')};\n    overflow-x: auto;\n    flex-wrap: nowrap;\n    ${noHorizontalScrollbarsCss}\n  }\n`;\n\nexport const arrowButtonContainerCss = css`\n  display: flex;\n  z-index: ${ZIndex.HERO_CURTAIN};\n  background-color: ${m('--background-color')};\n  min-width: 80px;\n  justify-content: center;\n  align-items: center;\n  padding: 0 0 0 0;\n  margin: 0 0 0 0;\n  flex-direction: row;\n  [dir='rtl'] & {\n    flex-direction: row-reverse;\n  }\n  ${mobileMediaQuery} {\n    display: none;\n  }\n`;\n\nexport const arrowCss = css`\n  cursor: pointer;\n  z-index: ${ZIndex.CAROUSEL_ARROW};\n  background-color: ${m('--background-color')};\n  border: none;\n\n  :disabled {\n    opacity: 50%;\n  }\n  ${mobileMediaQuery} {\n    display: none;\n  }\n`;\n\nexport const leftGradientCss = css`\n  display: block;\n  width: 50px;\n  height: ${m('--spacing-xxxl')};\n  z-index: ${ZIndex.CAROUSEL_SIDE_GRADIENT};\n  position: absolute;\n  content: '';\n  background: linear-gradient(to left, transparent 10%, ${m('--background-color')} 100%);\n  left: ${m('--spacing-xxxl')};\n  [dir='rtl'] & {\n    left: calc(${m('--spacing-xxxxl')} * 2);\n  }\n  ${mobileMediaQuery} {\n    left: ${m('--spacing-xs')};\n    [dir='rtl'] & {\n      left: ${m('--spacing-xs')};\n    }\n  }\n`;\nexport const rightGradientCss = css`\n  display: block;\n  width: 50px;\n  height: ${m('--spacing-xxxl')};\n  z-index: ${ZIndex.CAROUSEL_SIDE_GRADIENT};\n  position: absolute;\n  content: '';\n  background: linear-gradient(to right, transparent 10%, ${m('--background-color')} 100%);\n  right: calc(${m('--spacing-xxxxl')} * 2);\n  [dir='rtl'] & {\n    right: ${m('--spacing-xxxl')};\n  }\n  ${mobileMediaQuery} {\n    right: ${m('--spacing-xs')};\n    [dir='rtl'] & {\n      right: ${m('--spacing-xs')};\n    }\n  }\n`;\n\nexport const tabsContainerCss = css`\n  display: flex;\n  max-width: 100%;\n  margin: 0 ${m('--spacing-xxxl')} 0 ${m('--spacing-xxxl')};\n  padding-top: ${m('--spacing-xl')};\n  border-bottom: 1px ${m('--tabs-underline-color')} solid;\n  ${mobileMediaQuery} {\n    padding: 0;\n    margin: 0 ${m('--spacing-xs')} 0 ${m('--spacing-xs')};\n\n    *:last-child {\n      [dir='rtl'] & {\n        margin-left: ${m('--spacing-m')};\n        margin-right: 0;\n      }\n\n      margin-right: ${m('--spacing-m')};\n    }\n  }\n`;\n\nexport const tabItemContainterCss = css`\n  align-items: center;\n  display: flex;\n  gap: ${m('--spacing-xl')};\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  overflow: hidden;\n  z-index: ${ZIndex.BUTTON};\n  width: 100%;\n  scroll-behavior: smooth;\n  position: relative;\n\n  ${mobileMediaQuery} {\n    justify-content: start;\n    padding-inline-start: 0px;\n    overflow-x: auto;\n    &::-webkit-scrollbar {\n      display: none;\n    }\n  }\n`;\n\nexport const tabItemCenterContainterCss = css`\n  justify-content: center;\n`;\n\nexport const tabItemStartContainterCss = css`\n  justify-content: flex-start;\n`;\n\nconst itemLinkUnderlineCss = css`\n  &::after {\n    bottom: 0px;\n    content: '';\n    position: absolute;\n    transition: all 0.15s ease;\n    visibility: hidden;\n    width: 100%;\n    text-align: left;\n    margin-left: 0;\n    height: 0px;\n    border-top: 5px solid;\n    border-radius: ${m('--border-radius-s')};\n    margin-bottom: -5px;\n    color: ${m('--tabs-item-color')};\n  }\n\n  &.active::after {\n    visibility: visible;\n    color: ${m('--tabs-item-active-color')};\n  }\n\n  &:hover::after {\n    transform: translateY(-4px);\n    visibility: visible;\n    color: ${m('--tabs-item-hover-color')};\n  }\n`;\n\nconst itemLinkUnderlineActiveCss = css`\n  &::after {\n    transform: translateY(-4px);\n    visibility: visible;\n    color: ${m('--tabs-item-active-color')};\n  }\n  &:hover::after {\n    color: ${m('--tabs-item-hover-color')};\n  }\n`;\n\nexport const itemLinkCss = css`\n  align-items: center;\n  cursor: pointer;\n  color: ${m('--tabs-item-color')};\n  display: flex;\n\n  :hover {\n    color: ${m('--tabs-item-hover-color')};\n  }\n\n  position: relative;\n  text-decoration: none;\n  justify-content: center;\n  white-space: nowrap;\n  user-select: none;\n\n  ${mobileMediaQuery} {\n    font-size: ${m('--action-mobile-font-size')};\n    font-weight: ${m('--action-mobile-font-weight')};\n  }\n\n  ${nonMobileMediaQuery} {\n    font-size: ${m('--action-desktop-font-size')};\n    font-weight: ${m('--action-desktop-font-weight')};\n  }\n\n  line-height: ${m('--spacing-xxxxl')};\n\n  ${itemLinkUnderlineCss}\n`;\n\nexport const itemLinkActiveCss = css`\n  color: ${m('--tabs-item-active-color')};\n  ${itemLinkUnderlineActiveCss}\n`;\n\nexport const tabBreakCss = css`\n  z-index: ${ZIndex.NAVIGATOR_BUTTON};\n  width: 100%;\n  ${mobileMediaQuery} {\n    width: calc(100% - ${m('--spacing-xl')}px);\n  }\n  height: 16px;\n  position: relative;\n  margin-top: -${m('--spacing-xs')};\n  background-color: ${m('--background-color')};\n`;\n", "import type { FC } from 'react';\n\nimport { Icon } from '../Icon';\nimport { arrowCss } from './styles';\nimport type { TabDirection } from './types';\n\nexport interface TabArrowsProps {\n  direction: TabDirection;\n  onClick?: () => void;\n  isDisabled: boolean;\n}\n\n/**\n * Returns the tab arrow components.\n *\n * @param direction - Direction that the arrow is pointing to\n * @param onClick - Handles arrow clicks\n * @param isDisabled - Checks if the arrows are enabled or disabled\n */\nexport const TabArrows: FC<TabArrowsProps> = ({ direction, onClick, isDisabled }) => {\n  const iconName = direction === 'Left' ? 'chevron-left' : 'chevron-right';\n  return (\n    <button disabled={isDisabled} className={arrowCss} onClick={onClick}>\n      <Icon name={iconName} size={22} />\n    </button>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\n// TODO: This is wrong. Shouldn't be importing styles from the Block!!!\nimport {\n  contentContainerCss,\n  contentContainerStyle1ColumnCss,\n  contentContainerStyle2ColumnCss,\n  contentContainerStyle3ColumnCss,\n} from '../Block/Block.styled';\nimport { tabsPanelsCss } from './styles';\nimport type { TabPanelsItemProps } from './types';\n\nconst contentContainerStyles = {\n  1: contentContainerStyle1ColumnCss,\n  2: contentContainerStyle2ColumnCss,\n  3: contentContainerStyle3ColumnCss,\n} as Record<number, string>;\n\nexport interface TabsPanelProps {\n  items: Array<TabPanelsItemProps>;\n  selectedTab: number;\n}\n\nexport const TabsPanels: FC<TabsPanelProps> = ({ items, selectedTab }) => {\n  return (\n    <div className={tabsPanelsCss}>\n      {items.map((item, index) => (\n        <div\n          key={`tabPanel-${index}`}\n          role=\"tabpanel\"\n          className={cx(contentContainerCss, contentContainerStyles[item.maxColumns ?? 3])}\n          style={selectedTab !== index ? { display: 'none' } : undefined}\n        >\n          {item.content.map(content => content)}\n        </div>\n      ))}\n    </div>\n  );\n};\n", "import { css } from '@emotion/css';\n\nimport { nonTwoColumnCollapseMediaQuery, White } from '../../../constants';\nimport { m } from '../../../motif';\n\nexport const skeletonWrapperCss = css`\n  background-color: ${White};\n  border-radius: ${m('--border-radius-xl')};\n  display: flex;\n  justify-content: center;\n  padding: 20px;\n\n  ${nonTwoColumnCollapseMediaQuery} {\n    padding: ${m('--spacing-xxl')};\n  }\n`;\n\nexport const skeletonChartCss = css`\n  background-color: ${m('--chart-skeleton-bg-color')};\n  border-radius: ${m('--border-radius-xl')};\n  overflow: hidden;\n  position: relative;\n  width: 100%;\n\n  ${nonTwoColumnCollapseMediaQuery} {\n    margin: 0px 112px;\n  }\n`;\n\nexport const skeletonSvgCss = css`\n  height: 100%;\n  width: 100%;\n`;\n\nexport const skeletonSvgBackgroundCss = css`\n  fill: url('#shimmerGradient');\n  mask: url('#shimmerMask');\n`;\n\nexport const skeletonSvgMaskCss = css`\n  fill: ${m('--chart-skeleton-mask-color')};\n`;\n\nexport const skeletonSvgGradientDarkColorCss = css`\n  stop-color: ${m('--chart-skeleton-dark-animation-color')};\n`;\n\nexport const skeletonSvgGradientLightColorCss = css`\n  stop-color: ${m('--chart-skeleton-light-animation-color')};\n`;\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../../motif';\nimport {\n  skeletonChartCss,\n  skeletonSvgBackgroundCss,\n  skeletonSvgCss,\n  skeletonSvgGradientDarkColorCss,\n  skeletonSvgGradientLightColorCss,\n  skeletonSvgMaskCss,\n  skeletonWrapperCss,\n} from './styles';\n\nconst animationDuration = '2s';\n\nexport const ChartSkeleton: FC = () => {\n  useMotifStyles(MotifComponent.CHART_SKELETON);\n  return (\n    <article className={cx(MotifComponent.CHART_SKELETON, skeletonWrapperCss)}>\n      <div className={skeletonChartCss}>\n        <svg\n          viewBox=\"0 0 664 328\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n          className={skeletonSvgCss}\n        >\n          <defs>\n            {/* Define the shimmer gradient */}\n            <linearGradient id=\"shimmerGradient\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\">\n              <stop className={skeletonSvgGradientDarkColorCss} offset=\"0%\" strokeOpacity={1} />\n              <stop className={skeletonSvgGradientLightColorCss} offset=\"50%\" strokeOpacity={1} />\n              <stop className={skeletonSvgGradientDarkColorCss} offset=\"100%\" strokeOpacity={1} />\n              <animate\n                attributeName=\"x1\"\n                values=\"-100%;100%\"\n                dur={animationDuration}\n                repeatCount=\"indefinite\"\n              />\n              <animate\n                attributeName=\"x2\"\n                values=\"0%;200%\"\n                dur={animationDuration}\n                repeatCount=\"indefinite\"\n              />\n            </linearGradient>\n            {/* Define the shimmer mask */}\n            <mask id=\"shimmerMask\">\n              <rect\n                className={skeletonSvgMaskCss}\n                height=\"11.0865\"\n                rx=\"5.54325\"\n                width=\"31.4118\"\n                x=\"36.955\"\n                y=\"60.0518\"\n              />\n              <rect\n                className={skeletonSvgMaskCss}\n                height=\"11.0865\"\n                rx=\"5.54325\"\n                width=\"31.4118\"\n                x=\"36.955\"\n                y=\"113.944\"\n              />\n              <rect\n                className={skeletonSvgMaskCss}\n                height=\"11.0865\"\n                rx=\"5.54325\"\n                width=\"31.4118\"\n                x=\"36.955\"\n                y=\"167.838\"\n              />\n              <rect\n                className={skeletonSvgMaskCss}\n                height=\"11.0865\"\n                rx=\"5.54325\"\n                width=\"31.4118\"\n                x=\"36.955\"\n                y=\"221.73\"\n              />\n              <path\n                className={skeletonSvgMaskCss}\n                clipRule=\"evenodd\"\n                d=\"M609.376 62.2274C613.179 65.7331 613.232 71.466 609.493 75.0322L484.305 194.434C479.871 198.663\n                472.912 199.467 467.516 196.374L472.552 188.649L467.516 196.374L347.249 127.445L229.404 229.841C225.443\n                233.282 219.686 234.2 214.734 232.18L218.588 223.877L214.734 232.18L98.1939 184.629C93.3034 182.634\n                91.0641 177.299 93.1923 172.714C95.3205 168.128 101.01 166.029 105.901 168.024L219.015 214.177L337.294\n                111.404C341.761 107.523 348.434 106.899 353.63 109.877L348.593 117.603L353.63 109.877L473.715\n                178.703L595.719 62.3369C599.458 58.7707 605.573 58.7217 609.376 62.2274ZM470.541 181.73C470.538\n                181.733 470.535 181.736 470.532 181.739L474.608 185.495L470.532 181.739L470.541 181.73Z\"\n                fillRule=\"evenodd\"\n              />\n              <rect\n                className={skeletonSvgMaskCss}\n                height=\"11.0865\"\n                rx=\"5.54325\"\n                width=\"36.955\"\n                x=\"77.6056\"\n                y=\"265.152\"\n              />\n              <rect\n                className={skeletonSvgMaskCss}\n                height=\"11.0865\"\n                rx=\"5.54325\"\n                width=\"36.955\"\n                x=\"205.727\"\n                y=\"265.152\"\n              />\n              <rect\n                className={skeletonSvgMaskCss}\n                height=\"11.0865\"\n                rx=\"5.54325\"\n                width=\"36.955\"\n                x=\"333.848\"\n                y=\"265.152\"\n              />\n              <rect\n                className={skeletonSvgMaskCss}\n                height=\"11.0865\"\n                rx=\"5.54325\"\n                width=\"36.955\"\n                x=\"461.969\"\n                y=\"265.152\"\n              />\n              <rect\n                className={skeletonSvgMaskCss}\n                height=\"11.0865\"\n                rx=\"5.54325\"\n                width=\"36.955\"\n                x=\"590.09\"\n                y=\"265.152\"\n              />\n            </mask>\n          </defs>\n\n          <rect x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" className={skeletonSvgBackgroundCss} />\n        </svg>\n      </div>\n    </article>\n  );\n};\n", "import type { FC } from 'react';\nimport { useEffect, useState } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../../motif';\nimport { ChartToggleButtons } from './ChartToggleButtons';\nimport { TabsPanels as ChartTogglePanels } from './ChartTogglePanels';\nimport type { ChartToggleItemProps, ChartToggleProps } from './types';\n\nexport const ChartToggle: FC<ChartToggleProps> = ({ items }) => {\n  const [selectedChart, selectChart] = useState(0);\n  useMotifStyles(MotifComponent.CHART_TOGGLE);\n\n  useEffect(() => {\n    const { onToggle } = items[selectedChart] as ChartToggleItemProps;\n    onToggle?.();\n  }, [items, selectedChart]);\n\n  if (!items?.length) {\n    return null;\n  }\n\n  return (\n    <section className={MotifComponent.CHART_TOGGLE}>\n      <ChartToggleButtons items={items} selectedChart={selectedChart} selectChart={selectChart} />\n      <ChartTogglePanels items={items} selectedChart={selectedChart} />\n    </section>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC, ReactNode } from 'react';\n\nimport type { BaseComponentProps } from '../../../types';\nimport type { OnActivateHandler } from '../../../types/activationEvents';\nimport { buttonActiveClassName, buttonCss } from './styles';\n\nexport interface Props extends BaseComponentProps {\n  children?: ReactNode;\n  active?: boolean;\n  onClick?: OnActivateHandler;\n}\n\nexport const ChartToggleButton: FC<Props> = ({ children, active, onClick }) => {\n  const className = cx(buttonCss, active && buttonActiveClassName);\n\n  return (\n    <button role=\"tab\" onClick={onClick} className={className}>\n      {children}\n    </button>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { ChartToggleButton } from './ChartToggleButton';\nimport { buttonsCss, buttonsWrapperClassName, buttonsWrapperCss } from './styles';\nimport type { ChartToggleItemProps } from './types';\n\nexport interface ChartToggleButtonsProps {\n  items: Array<ChartToggleItemProps>;\n  selectedChart: number;\n  selectChart: (index: number) => void;\n}\n\nexport const ChartToggleButtons: FC<ChartToggleButtonsProps> = ({\n  items,\n  selectedChart,\n  selectChart,\n}) => {\n  const handleOnClick = (index: number) => {\n    if (selectedChart !== index) {\n      selectChart(index);\n    }\n  };\n\n  const wrapperClassName = cx(buttonsWrapperCss, buttonsWrapperClassName);\n\n  return (\n    <div className={wrapperClassName}>\n      <nav className={buttonsCss} role=\"tablist\">\n        {items.map(({ title }, index) => (\n          <ChartToggleButton\n            key={`chart-button-${index}`}\n            active={selectedChart === index}\n            onClick={() => handleOnClick(index)}\n          >\n            {title}\n          </ChartToggleButton>\n        ))}\n      </nav>\n    </div>\n  );\n};\n", "import type { FC } from 'react';\n\nimport { contentContainerStyle1ColumnCss, panelsCss } from './styles';\nimport type { ChartToggleItemProps } from './types';\nexport interface Props {\n  items: Array<ChartToggleItemProps>;\n  selectedChart: number;\n}\n\nexport const TabsPanels: FC<Props> = ({ items, selectedChart }) => {\n  return (\n    <div className={panelsCss} role=\"tabpanel\">\n      {items.map(\n        ({ content }, index) =>\n          selectedChart === index && (\n            <div key={index} className={contentContainerStyle1ColumnCss}>\n              {content}\n            </div>\n          )\n      )}\n    </div>\n  );\n};\n", "import type { FC } from 'react';\n\nimport type { ChartToggleItemProps } from './types';\n\nexport interface ChartTogglePanelsV2Props {\n  items: Array<ChartToggleItemProps>;\n  selectedChart: string;\n}\n\nexport const ChartTogglePanelsV2: FC<ChartTogglePanelsV2Props> = ({ items, selectedChart }) => {\n  // We need to have this component as a direct child on the ChartToggleWrapper component.\n  return <>{items.map(({ content }, index) => selectedChart === index.toString() && content)}</>;\n};\n", "import type { FC } from 'react';\nimport { useEffect, useState } from 'react';\n\nimport { MotifComponent, useMotifStyles } from '../../../motif';\nimport { DropdownSkeleton } from '../../DropdownMenu/DropdownSkeleton';\nimport { ChartToggleDropdown } from './ChartToggleDropdowns';\nimport { ChartTogglePanelsV2 } from './ChartTogglePanelsV2';\nimport type { ChartToggleItemProps, ChartToggleV2Props } from './types';\n\nexport const ChartToggleV2: FC<ChartToggleV2Props> = ({ items, label, isLoading }) => {\n  const [selectedChart, selectChart] = useState('0');\n  useMotifStyles(MotifComponent.CHART_TOGGLE);\n\n  // Logic to call ChartToggleItemProps onToggle.\n  // This is set on MW side and should log the dropdown change.\n  useEffect(() => {\n    if (!items?.length) {\n      return;\n    }\n\n    const { onToggle } = items[Number(selectedChart)] as ChartToggleItemProps;\n    onToggle?.();\n  }, [items, selectedChart]);\n\n  if (isLoading) {\n    return <DropdownSkeleton />;\n  }\n\n  if (!items?.length) {\n    return null;\n  }\n\n  // We need to have this component as a direct child on the ChartToggleWrapper component.\n  return (\n    <>\n      <ChartToggleDropdown\n        label={label}\n        items={items}\n        selectedChart={selectedChart}\n        selectChart={selectChart}\n      />\n      <ChartTogglePanelsV2 items={items} selectedChart={selectedChart} />\n    </>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport type { DropdownItemProps } from '../../DropdownMenu';\nimport { DropdownMenu } from '../../DropdownMenu';\nimport { dropdownCss, dropdownWrapperClassName, noLabelCss } from './styles';\nimport type { ChartToggleDropdownsProps } from './types';\n\nexport const ChartToggleDropdown: FC<ChartToggleDropdownsProps> = ({\n  label,\n  items,\n  selectedChart,\n  selectChart,\n}) => {\n  const handleOnClick = (item: DropdownItemProps) => {\n    if (selectedChart !== item.id) {\n      selectChart(item.id);\n    }\n  };\n\n  const dropdownItems = items.map((item, index) => ({\n    id: index.toString(),\n    title: item.title,\n    isSelected: index.toString() === selectedChart,\n  }));\n\n  return (\n    <div\n      className={cx(dropdownWrapperClassName, dropdownCss, {\n        [noLabelCss]: !label,\n      })}\n    >\n      {label && <label>{label}</label>}\n      <DropdownMenu\n        items={dropdownItems}\n        selectedItemId={selectedChart}\n        onItemSelect={handleOnClick}\n      />\n    </div>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC, ReactNode } from 'react';\n\nimport { MotifComponent } from '../../../motif';\nimport type { BaseComponentProps } from '../../../types';\nimport { chartToggleWrapperCss } from './styles';\n\nexport interface ChartToggleWrapperProps extends BaseComponentProps {\n  children?: ReactNode;\n}\n\nexport const ChartToggleWrapper: FC<ChartToggleWrapperProps> = ({ children }) => {\n  return (\n    <section className={cx(MotifComponent.CHART_TOGGLE, chartToggleWrapperCss)}>{children}</section>\n  );\n};\n", "import type {\n  CookieModalProps as CookieModalComponentProps,\n  CookieProviderProps,\n} from '@snapchat/mw-cookie-components';\nimport {\n  CookieModal as CookieModalComponent,\n  CookieProvider,\n} from '@snapchat/mw-cookie-components';\nimport { PrimitivesProvider } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext, useEffect } from 'react';\n\nimport {\n  type LocaleOption,\n  defaultSupportedLocales,\n  GlobalComponentsContext,\n} from '../../context/GlobalComponentsContext';\nimport {\n  type PluginObject,\n  configureDataLayer,\n  enablePerformanceAnalytics,\n  toggleGoogleTracking,\n} from './analytics';\nimport { type BackgroundType, CategoryOptInCookie } from './cookieModalTypes';\nimport { SdsmComponents } from './SdsmComponents';\n\nexport interface CookieModalProps {\n  portalRoot?: Element;\n  /** @deprecated Dropdown will get it from context */\n  cookieDomain?: string;\n  /** @deprecated Dropdown will get it from context */\n  supportedLocales?: Record<string, LocaleOption>;\n  /** @deprecated - Cookie modal shouldn't load GTM */\n  GTMID?: string;\n  /** @deprecated - Cookie modal shouldn't load GA */\n  GAID?: string;\n  /**\n   * If specified, applies the nonce to the generated GTM or GA script\n   *\n   * @deprecated See above.\n   */\n  nonce?: string;\n  /** @deprecated Dropdown will get it from context */\n  onLocaleChange?: (locale: string) => void;\n  /** @deprecated Use onComplete instead. */\n  preferencesAcceptedCallback?: () => void;\n  /** @deprecated Use onComplete instead. */\n  performanceAnalyticsCallback?: () => void;\n  /** @deprecated Use onComplete instead. */\n  marketingAnalyticsCallback?: () => void;\n  plugins?: Array<PluginObject>;\n  onComplete?: CookieModalComponentProps['onComplete'];\n  backgroundType?: BackgroundType;\n  forceVisible?: boolean;\n  /** Whether the user has enabled Global Privacy Control. undefined is treated same as false */\n  globalPrivacyControl?: boolean;\n  /** Fires whenever global privacy control is in place */\n  onGlobalPrivacyControlSet?: () => void;\n}\n\ntype LogEventParameters = Parameters<Required<CookieModalComponentProps>['onEvent']>;\ntype LogEventListener = (...params: LogEventParameters) => void;\ntype OnCompleteListener = Required<CookieModalComponentProps>['onComplete'];\n\nexport const CookieModal: FC<CookieModalProps> = ({\n  portalRoot,\n  cookieDomain,\n  supportedLocales,\n  GTMID = '',\n  GAID = '',\n  nonce,\n  plugins,\n  onLocaleChange,\n  onComplete: userOnComplete,\n  preferencesAcceptedCallback,\n  performanceAnalyticsCallback,\n  marketingAnalyticsCallback,\n  backgroundType,\n  forceVisible,\n  globalPrivacyControl,\n  onGlobalPrivacyControlSet,\n}) => {\n  // Disable GA/GTM until the performance tracking is enabled via `onComplete` event hook.\n  useEffect(() => {\n    toggleGoogleTracking(GAID, false);\n  }, [GAID]);\n\n  // Construct props for <CookieProvider />\n  const context = useContext(GlobalComponentsContext);\n  const { Anchor, globalApolloClient, currentLocale, isPreview, isSSR, onEvent, onError } = context;\n\n  cookieDomain ??= context.hostname;\n  supportedLocales ??= context.supportedLocales ?? defaultSupportedLocales;\n  onLocaleChange ??= context.onLocaleChange;\n\n  const providerProps: CookieProviderProps = {\n    ...SdsmComponents,\n    isSSR,\n    isPreview,\n    currentLocale,\n    client: globalApolloClient,\n  };\n\n  // Construct props for <CookieModalComponent />\n  const logEvent: LogEventListener = ({ label }) =>\n    onEvent?.({ component: 'CookieModal', label, action: 'Click' });\n\n  const onComplete: OnCompleteListener = props => {\n    const { cookieAcceptance, userLocation } = props;\n\n    // Add user location to data layer for GA/GTM to reference\n    configureDataLayer({ userLocation });\n\n    // Set up GA/GTM integration\n    cookieAcceptance[CategoryOptInCookie.Performance] &&\n      enablePerformanceAnalytics(GTMID, GAID, plugins, nonce);\n\n    // Legacy callbacks trigger\n    cookieAcceptance[CategoryOptInCookie.Preferences] && preferencesAcceptedCallback?.();\n    cookieAcceptance[CategoryOptInCookie.Performance] && performanceAnalyticsCallback?.();\n    cookieAcceptance[CategoryOptInCookie.Marketing] && marketingAnalyticsCallback?.();\n\n    // Callback trigger.\n    userOnComplete?.(props);\n  };\n\n  const modalProps: CookieModalComponentProps = {\n    supportedLocales,\n    cookieDomain,\n    portalRoot: portalRoot as HTMLElement,\n    backgroundType,\n    onLocaleChange,\n    onComplete,\n    onEvent: logEvent,\n    onError,\n    forceVisible,\n    globalPrivacyControl,\n    onGlobalPrivacyControlSet,\n  };\n\n  return (\n    <PrimitivesProvider value={{ Anchor }}>\n      <CookieProvider {...providerProps}>\n        <CookieModalComponent {...modalProps} />\n      </CookieProvider>\n    </PrimitivesProvider>\n  );\n};\n", "import type { ApolloClient, NormalizedCacheObject } from '@apollo/client';\nimport type { AnchorComponent } from '@snapchat/snap-design-system-marketing';\nimport merge from 'lodash-es/merge';\nimport type { FC, PropsWithChildren } from 'react';\nimport { createContext } from 'react';\n\nimport type { Action } from '../analytics/Action';\n\nexport interface EventLog {\n  // NOTE: Some of these map to GA actions. See this doc: https://support.google.com/analytics/answer/1033068\n  action: Action; // Action being performed\n  component: string; // Roughly maps to GA category like \"Video\", \"Hero\"\n  label?: string; // Label of the item that the event is for\n  url?: string; // URL if this is for a link\n}\n\n/**\n * Interface for locale options. Note that doesn't use contentful's Locale to support sites that do\n * not store data in contentful.\n */\nexport interface LocaleOption {\n  /** Locale Code */\n  code: string;\n  /** Display Text for the Locale */\n  name: string;\n}\n\n/** Properties that are shared between multiple global components. */\nexport interface GlobalComponentsProps {\n  /**\n   * Whether to get unpublished entries from contentful.\n   *\n   * DO NOT USE on production. For testing new links on staging builds only.\n   */\n  isPreview?: boolean;\n\n  /** Passes this value to the creation of the default apollo client. */\n  isSSR?: boolean;\n\n  /** Logger for interaction events. */\n  onEvent?: (event: EventLog) => void;\n\n  /** Logger for error events. */\n  onError?: (error: Error | string) => void;\n\n  /**\n   * Check for whether the URL is current.\n   *\n   * TODO: Describe what this affects.\n   */\n  isUrlCurrent?: (url: string) => boolean;\n\n  /**\n   * The domain of the current site.\n   *\n   * On the client it's `window.location.hostname`.\n   *\n   * On the server this needs to be provided.\n   *\n   * Used for hiding/showing certain links and determining if links lead to the same domain.\n   */\n  hostname: string;\n\n  /**\n   * The code for the currently selected locale and the language in which the elements will be\n   * presented in.\n   */\n  currentLocale?: string;\n\n  /**\n   * Collection of options in the locale dropdown. Without these locale dropdown will not be\n   * rendered.\n   */\n  supportedLocales?: Record<string, LocaleOption>;\n\n  /** Handles changing the langauge on the site. */\n  onLocaleChange?: (locale: string) => void;\n\n  /** Override for the apollo client. */\n  globalApolloClient?: ApolloClient<NormalizedCacheObject>;\n\n  /**\n   * Override for which component to use when rendering links. This is useful when you want to\n   * override how links are rendered to apply redirects, target and other attributes.\n   */\n  Anchor?: AnchorComponent;\n}\n\nexport const defaultLocaleCode = 'en-US';\nexport const defaultSupportedLocales = {\n  [defaultLocaleCode]: {\n    code: defaultLocaleCode,\n    name: 'English (United States)',\n  },\n};\n\n/** Default check for whether a URL is the one we're currently on. */\nconst defaultIsUrlCurrent = (pathOrUrl: string): boolean => {\n  const url = new URL(pathOrUrl, window.location.href);\n  if (window.location.hostname !== url.hostname) return false;\n  return window.location.pathname !== url.pathname;\n};\n\n/** Sensible defaults. Here to simplify library usage. */\nconst defaults: Partial<GlobalComponentsProps> = {\n  currentLocale: defaultLocaleCode,\n  supportedLocales: defaultSupportedLocales,\n  onError: console.error,\n  // No default onEvent because spamming console isn't useful.\n  isPreview: false,\n  isSSR: false,\n  isUrlCurrent: defaultIsUrlCurrent,\n};\n\nexport const GlobalComponentsContext = createContext<GlobalComponentsProps>({\n  onError: error => console.error(error),\n  currentLocale: defaultLocaleCode,\n  hostname: 'unknown',\n  supportedLocales: defaultSupportedLocales,\n});\n\n/** Provider for GlobalComponentsContext that populates the defaults. */\nexport const GlobalComponentsContextProvider: FC<\n  PropsWithChildren<{ value: GlobalComponentsProps }>\n> = ({ children, value }) => {\n  return (\n    <GlobalComponentsContext.Provider value={merge(defaults, value)}>\n      {children}\n    </GlobalComponentsContext.Provider>\n  );\n};\n", "import type { GoogleConfig, GoogleLocation, GtmStartEvent } from '../../types/gtm';\n\nexport interface PluginObject {\n  name: string;\n  options: Record<string, unknown>;\n}\n\nconst googleTagDataLayerSet = (document: Document, GTMID: string, nonce?: string): void => {\n  // We need to configure datalayer with a custom record due to GTM requiring gtm.start\n  // https://developers.google.com/tag-platform/tag-manager/web/datalayer\n  configureDataLayer({ 'gtm.start': Date.now(), event: 'gtm.js' });\n  const createdScriptElement = document.createElement('script');\n  createdScriptElement.async = true;\n  createdScriptElement.src = `https://www.googletagmanager.com/gtm.js?id=${GTMID}`;\n\n  if (nonce) createdScriptElement.nonce = nonce;\n\n  document.head.appendChild(createdScriptElement);\n};\n\n/** Toggle GTM and GA tracking. */\nexport const toggleGoogleTracking = (GAID: string, enabled: boolean): void => {\n  if (GAID === '') return;\n\n  const identifier = getGaidWithPrefix(GAID);\n\n  // Uses as syntax due to dynamic key name\n  (window as unknown as Record<string, unknown>)[`ga-disable-${identifier}`] = !enabled;\n};\n\n/**\n * Ensures the full GAID is populated. Necessary for setting the proper key to enable/disable GTM\n * and GA features.\n */\nconst getGaidWithPrefix = (GAID: string) => {\n  if (GAID.includes('UA-') || GAID.includes('G-')) {\n    return GAID;\n  }\n\n  return `UA-${GAID}`;\n};\n\nexport const configureDataLayer = (input: GoogleConfig | GoogleLocation | GtmStartEvent): void => {\n  window.dataLayer = window.dataLayer ?? [];\n  window.dataLayer.push(input);\n};\n\nconst enableGoogleTagManager = (GTMID: string, GAID: string, nonce?: string): void => {\n  if (window) {\n    toggleGoogleTracking(GAID, true);\n    googleTagDataLayerSet(document, GTMID, nonce);\n  }\n};\n\nconst windowGaArgumentSetter = (args: Array<IArguments>) => {\n  (window.ga.q = window.ga.q ?? []).push(...args);\n};\n\nconst googleAnalyticsArgumentsSet = (nonce?: string): void => {\n  window.GoogleAnalyticsObject = 'ga';\n  window.ga = window.ga ?? windowGaArgumentSetter;\n  window.ga.l = new Date().getTime;\n  const createdScriptElement = document.createElement('script');\n  createdScriptElement.async = true;\n  createdScriptElement.src = 'https://www.google-analytics.com/analytics.js';\n\n  if (nonce) createdScriptElement.nonce = nonce;\n\n  document.head.appendChild(createdScriptElement);\n};\n\nconst enableGoogleAnalytics = (\n  GAID: string,\n  gaPlugins: Array<PluginObject> = [],\n  nonce?: string\n): void => {\n  if (window) {\n    toggleGoogleTracking(GAID, true);\n\n    if (GAID.includes('UA-')) {\n      // GA 360 configuration\n      googleAnalyticsArgumentsSet(nonce);\n      ga('create', GAID, 'auto');\n\n      gaPlugins.forEach(plugin => {\n        ga('require', plugin.name, plugin.options);\n      });\n      ga('set', 'anonymizeIp', true);\n      ga('send', 'pageview');\n    } else {\n      // GA 4 Configuration\n      window.dataLayer = window.dataLayer ?? [];\n      const GA4Script = document.createElement('script');\n      GA4Script.async = true;\n      GA4Script.src = `https://www.googletagmanager.com/gtag/js?id=${GAID}`;\n\n      GA4Script.onload = () => {\n        configureDataLayer({ js: new Date(), config: GAID });\n      };\n\n      if (nonce) GA4Script.nonce = nonce;\n\n      document.head.appendChild(GA4Script);\n    }\n  }\n};\n\nexport const enablePerformanceAnalytics = (\n  GTMID: string,\n  GAID: string,\n  plugins?: Array<PluginObject>,\n  /** Optional: nonce to apply to GTM/GA inline script element */\n  nonce?: string\n): void => {\n  const gaIdentifier = getGaidWithPrefix(GAID);\n\n  if (GTMID && GAID) {\n    enableGoogleTagManager(GTMID, gaIdentifier, nonce);\n  } else if (GAID) {\n    enableGoogleAnalytics(gaIdentifier, plugins, nonce);\n  }\n};\n", "import { Site } from './sites';\n\n/**\n * Definitive list of ga4 properties used by Marketing Web Platform.\n *\n * You can view a property by going to https://analytics.google.com/analytics/web/#/p<propertyId>\n *\n * Our policy is that every new site has a GA4 property, so you have to create one and add it to the\n * list when creating a site.\n */\nexport const googleAnalytics4Properties: Record<Site, number> = {\n  [Site.A523]: 292694174,\n  [Site.AR]: 265216064,\n  [Site.ARCADIA]: 287858207,\n  [Site.AVALON]: 327898756,\n  [Site.CAREERS]: 327730352,\n  [Site.CHEERIOS]: 327913877,\n  [Site.CITIZEN]: 327822562,\n  [Site.CREATORS]: 284037488,\n  [Site.DIVERSITY]: 327894680,\n  [Site.EDUCATORS]: 446196364,\n  [Site.ENG_BLOG]: 327879893,\n  [Site.EXPERIENCE]: 430935078,\n  [Site.FOR_BUSINESS]: 272999138,\n  [Site.NEWSROOM]: 327160579,\n  [Site.ORIGINALS]: 327838878,\n  [Site.PARENTS]: 402936625,\n  [Site.SANDBOX]: 358873651,\n  [Site.TRUST]: 338421395,\n  [Site.SNAP]: 327913881,\n};\n", "/**\n * These are the ISO-3166 Alpha-2 codes for the countries in the GDPR region.\n *\n * The 'unknown country' code of ZZ is also included to default to showing the popup when the exact\n * country cannot be determined.\n */\nexport const gdprCountries = new Set([\n  'AT', // Austria\n  'BE', // Belgium\n  'BG', // Bulgaria\n  'CY', // Cyprus\n  'CZ', // Czechia\n  'DE', // Germany\n  'DK', // Denmark\n  'EE', // Estonia\n  'ES', // Spain\n  'FI', // Finland\n  'FR', // France\n  'GB', // Great Britain\n  'GR', // Greece\n  'HR', // Croatia\n  'HU', // Hungary\n  'IE', // Ireland\n  'IS', // Iceland\n  'IT', // Italy\n  'LI', // Liechtenstein\n  'LT', // Lithuania\n  'LU', // Luxembourg\n  'LV', // Latvia\n  'MT', // Malta\n  'NL', // Netherlands\n  'NO', // Norway\n  'PL', // Poland\n  'PT', // Portugal\n  'RO', // Romania\n  'SE', // Sweden\n  'SI', // Slovenia\n  'SK', // Slovakia\n  'ZZ', // Unknown\n]);\n", "/**\n * Maps a locale code to its native title\n *\n * Values are adopted from https://www.npmjs.com/package/langmap npm package and modified as needed.\n *\n * Note that this is the comprehensive list of locales supported by Web Platform regardless of any\n * l10n documentation. This is on purpose and this list IS the source of truth.\n */\nexport const localeMap: Record<string, string> = {\n  ar: '\u0627\u0644\u0639\u0631\u0628\u064A\u0629',\n  'bn-BD': '\u09AC\u09BE\u0982\u09B2\u09BE (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)',\n  'bn-IN': '\u09AC\u09BE\u0982\u09B2\u09BE (\u09AD\u09BE\u09B0\u09A4)',\n  'bg-BG': '\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438',\n  'zh-Hans': '\u4E2D\u6587\u7B80\u4F53',\n  'zh-Hant': '\u4E2D\u6587\u7E41\u9AD4',\n  'hr-HR': 'Hrvatski',\n  'cs-CZ': '\u010Ce\u0161tina',\n  'da-DK': 'Dansk',\n  'nl-NL': 'Nederlands (Nederland)',\n  'en-GB': 'English (UK)',\n  'en-US': 'English (US)',\n  'et-EE': 'Eesti',\n  'fil-PH': 'Filipino',\n  'fi-FI': 'Suomi',\n  'fr-FR': 'Fran\u00E7ais (France)',\n  'de-DE': 'Deutsch (Deutschland)',\n  'el-GR': '\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC',\n  'gu-IN': '\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0',\n  'hi-IN': '\u0939\u093F\u0928\u094D\u0926\u0940',\n  'hu-HU': 'Magyar',\n  'id-ID': 'Bahasa Indonesia',\n  'ga-IE': '\u00C9ireannach',\n  'it-IT': 'Italiano',\n  'ja-JP': '\u65E5\u672C\u8A9E',\n  'kn-IN': '\u0C95\u0CA8\u0CCD\u0CA8\u0CA1 (India)',\n  'ko-KR': '\uD55C\uAD6D\uC5B4',\n  'lv-LV': 'Latvie\u0161u',\n  'lt-LT': 'Lietuvi\u0173',\n  'ms-MY': 'Bahasa Melayu',\n  'ml-IN': '\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02',\n  'mt-MT': 'Malti',\n  'mr-IN': '\u092E\u0930\u093E\u0920\u0940',\n  'nb-NO': 'Norsk (bokm\u00E5l)',\n  'pl-PL': 'Polski',\n  'pt-BR': 'Portugu\u00EAs (Brasil)',\n  'pt-PT': 'Portugu\u00EAs (Portugal)',\n  pa: '\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40',\n  'ro-RO': 'Rom\u00E2n\u0103',\n  'ru-RU': '\u0420\u0443\u0441\u0441\u043A\u0438\u0439',\n  'sk-SK': 'Sloven\u010Dina',\n  'sl-SI': 'Sloven\u0161\u010Dina',\n  'es-AR': 'Espa\u00F1ol (Argentina)',\n  es: 'Espa\u00F1ol',\n  'es-MX': 'Espa\u00F1ol (M\u00E9xico)',\n  'es-ES': 'Espa\u00F1ol (Espa\u00F1a)',\n  'sv-SE': 'Svenska',\n  'ta-IN': '\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD',\n  'te-IN': '\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41',\n  'th-TH': '\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22 (\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22)',\n  'tr-TR': 'T\u00FCrk\u00E7e',\n  'ur-PK': '\u0627\u0631\u062F\u0648',\n  'uk-UA': '\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430',\n  'vi-VN': 'Ti\u1EBFng Vi\u1EC7t',\n};\n", "// ============================================================================\n// Timeouts\n// ============================================================================\n\n/** Total server side response timeout in milliseconds */\nexport const connectionTimeoutMs = 30e3;\n\n/** Total sever side response timeout in seconds. */\nexport const connectionTimeoutS = Math.ceil(connectionTimeoutMs / 1e3);\n\n/**\n * Number of retries that are allowed for contentful.\n *\n * NOTE: 2023-07-07 We're changing this from 2 to 4 so that we can decrease the contentful request\n * timeout from ~11 seconds to ~6 seconds. This allows us to have green SLAs in a scenario where the\n * first request is slow and subsequent requests are fast. This way a 6 second + timeout, followed\n * by a <1s working query + a few more queries can return in under 10 seconds, which is our cutoff\n * for the uptime check to be considered a failure.\n */\nexport const contentfulRetryCount = 4;\n\n/**\n * Web SSR request to contentful timeout. This is set to fit the number of contentfulRetryCount\n * attempts in a single server side request. There's a little headroom added for other requests.\n * I.e. this only works if there's a single slow contentful request that can can be retried and even\n * if it fails contentfulRetryCount times SSR fails but we return a 200 code to let the client side\n * render the page.\n */\nexport const contentfulRequestTimeoutMs = Math.round(\n  (connectionTimeoutMs / contentfulRetryCount) * 0.75\n);\n", "import { Site } from './sites';\n\nexport const productionDomains: Record<Site, string> = {\n  [Site.A523]: '523.snap.com',\n  [Site.AR]: 'ar.snap.com',\n  [Site.ARCADIA]: 'www.arcadiacreativestudio.com',\n  [Site.AVALON]: 'www.spectacles.com',\n  [Site.CAREERS]: 'careers.snap.com',\n  [Site.CHEERIOS]: 'www.pixy.com',\n  [Site.CITIZEN]: 'citizen.snap.com',\n  [Site.CREATORS]: 'creators.snap.com',\n  [Site.DIVERSITY]: 'diversity.snap.com',\n  [Site.EDUCATORS]: 'educators.snapchat.com',\n  [Site.ENG_BLOG]: 'eng.snap.com',\n  [Site.EXPERIENCE]: 'experience.snap.com',\n  [Site.FOR_BUSINESS]: 'forbusiness.snapchat.com',\n  [Site.NEWSROOM]: 'newsroom.snap.com',\n  [Site.ORIGINALS]: 'snaporiginals.snapchat.com',\n  [Site.PARENTS]: 'parents.snapchat.com',\n  [Site.SANDBOX]: 'sandbox-production-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.SNAP]: 'www.snap.com',\n  [Site.TRUST]: 'values.snap.com',\n};\n", "import { Site } from './sites';\n\nexport const stagingDomains: Record<Site, string> = {\n  [Site.A523]: 'https://snap-523-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.ARCADIA]: 'https://arcadia-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.AR]: 'https://snap-ar-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.CAREERS]: 'https://careers-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.CHEERIOS]: 'https://cheerios-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.CITIZEN]: 'https://citizen-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.CREATORS]: 'https://creators-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.DIVERSITY]: 'https://diversity-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.ENG_BLOG]: 'https://eng-blog-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.EXPERIENCE]: 'https://experience-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.FOR_BUSINESS]: 'https://for-business-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.NEWSROOM]: 'https://newsroom-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.ORIGINALS]: 'https://originals-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.PARENTS]: 'https://parents-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.SANDBOX]: 'https://sandbox-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.TRUST]: 'https://trust-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.AVALON]: 'https://avalon-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.EDUCATORS]: 'https://educators-staging-dot-entapps-web-dev.gae.sc-corp.net',\n  [Site.SNAP]: 'https://snap-staging-dot-entapps-web-dev.gae.sc-corp.net',\n};\n", "import type { GeoLocation } from './geoHeaderTypes';\n\n/** See 'unknown' country code here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */\nexport const defaultCountryCode = 'ZZ';\n\n/** By convention using this value. */\nexport const defaultStateCode = 'na';\n\nexport const defaultGeo: GeoLocation = {\n  country: defaultCountryCode,\n  region: defaultStateCode,\n  regionSubdivision: `${defaultCountryCode}${defaultStateCode}`.toUpperCase(),\n};\n\n/** Parses the Google Cloud Load Balancer Geo headers into {@link GeoLocation} format. */\nexport function parseGclbGeoHeaders(regionHeader: string, subdivisionHeader: string): GeoLocation {\n  const country = regionHeader; // Upper-cased like US or CA\n  const regionSubdivision = subdivisionHeader; // Upper-cased like USCA or CAQC\n  const region = regionSubdivision.replace(country, '').toLocaleLowerCase();\n  return {\n    country,\n    region,\n    regionSubdivision,\n  };\n}\n\n/** Convert header names to lower-case (in case not done already), and discard duplicate headers. */\nexport function cleanGeoHeaders(\n  rawHeaders: Record<string, string | string[] | undefined>\n): Record<string, string | undefined> {\n  return Object.fromEntries(\n    Object.entries(rawHeaders).map(([header, value]) => [\n      header.toLocaleLowerCase(),\n      Array.isArray(value) ? value[value.length - 1] : value,\n    ])\n  );\n}\n\n/**\n * Returns the parsed geo location from the provided headers.\n *\n * Parses in this order:\n *\n * - Snap Geo headers\n * - Forwarded Load Balancer headers\n * - Load Balancer headers\n * - AppEngine headers\n *\n * Note that 'snapGeoHeaderParser' is an argument because the current implementation uses JSPB which\n * is very heavy and uses eval (not appropriate for common code).\n *\n * If no geo headers exist, returns undefined.\n *\n * TODO: Rewrite the parsing from the value using raw wire format. See wire format:\n * https://developers.google.com/protocol-buffers/docs/encoding See proto def:\n * https://github.sc-corp.net/Snapchat/geo-header-api/blob/master/api/v1/geo_header.proto\n */\nexport function parseGeoHeaders(\n  rawHeaders: Record<string, string | string[] | undefined>,\n  snapGeoHeaderParser?: (snapGeoHeader: string) => GeoLocation | undefined\n): GeoLocation | undefined {\n  const headers = cleanGeoHeaders(rawHeaders);\n\n  // 1. First, try to see if we've been forwarded GCLB headers from API Gateway.\n  if (headers['x-gcp-client-region'] && headers['x-gcp-client-subdivision']) {\n    return parseGclbGeoHeaders(headers['x-gcp-client-region'], headers['x-gcp-client-subdivision']);\n  }\n\n  // 2. Second parse snapchat headers. See https://wiki.sc-corp.net/x/HNWDBQ\n  // These are set by service mesh if our page are being proxied through that.\n  if (headers['x-snap-geo'] && snapGeoHeaderParser) {\n    const snapGeo = snapGeoHeaderParser(headers['x-snap-geo']);\n\n    if (snapGeo) {\n      return snapGeo;\n    }\n  }\n\n  // 3. Then try parse forwarded geo headers from MWP/Snapchat.\n  // These are set when forwarding requests from MWP to cookie service.\n  if (\n    headers['x-sc-forwarded-client-region'] &&\n    headers['x-sc-forwarded-client-region-subdivision']\n  ) {\n    return parseGclbGeoHeaders(\n      headers['x-sc-forwarded-client-region'],\n      headers['x-sc-forwarded-client-region-subdivision']\n    );\n  }\n\n  // 4. Check MWP load balancer headers.\n  // These are set by MWP load balancer. See https://cloud.google.com/load-balancing/docs/https/custom-headers\n  if (headers['x-lb-client-region-subdivision'] && headers['x-lb-client-region']) {\n    return parseGclbGeoHeaders(\n      headers['x-lb-client-region'],\n      headers['x-lb-client-region-subdivision']\n    );\n  }\n\n  // 5. Check AppEngine headers.\n  // These are set by AppEngine.\n  if (headers['x-appengine-country'] && headers['x-appengine-region']) {\n    // Upper-case. But can be '?' when not certain.\n    const country =\n      headers['x-appengine-country'] === '?' ? defaultCountryCode : headers['x-appengine-country'];\n    // lower-case like 'ca' or 'tx'. Can be '?' when not certain.\n    const region =\n      headers['x-appengine-region'] === '?' ? defaultStateCode : headers['x-appengine-region'];\n    const regionSubdivision = `${country}${region}`.toUpperCase();\n    return {\n      country,\n      region,\n      regionSubdivision,\n    };\n  }\n\n  // 5. Return undefined if no headers exist\n  return undefined;\n}\n", "/**\n * Keys in the local storage that we set on a browser.\n *\n * These have to be CRAFTED because the data that's stored in them HAS NO EXPIRATION TIME. I.e. it's\n * important to not be too generic with words like \"key\" or \"array\", or get very specific with\n * applications like \"sps-2023-foo\" to make sure the same values aren't reused in 2024.\n */\nconst localStorageKeys = [\n  'mwp-shopify-cart', // Items in the shopify cart for websites with ecommerce\n  'mwp-snapkit-user-id', // SnapKit user id for SPS bitmoji reactions\n  'mwp-snapkit-access-token', // Snapkit access token for SPS bitmoji reactions\n  'sps-2023-firstName', // Stored first name of a person who's registered for SPS 2023\n  'sps-2023-registrationStatus', // Registration status for someone who's registered for SPS 2023\n  'sps-2023-interests', // Recorded interests for someone who's registeredf or SPS 2023\n  'sps-2024-firstName', // Stored first name of a person who's registered for SPS 2024\n  'sps-2024-registrationStatus', // Registration status for someone who's registered for SPS 2024\n  'sps-2024-interests', // Recorded interests for someone who's registered for SPS 2024\n  'experience-registration', // Registration data for experience site\n  'mwp-form-data', // Form data for MWP forms\n] as const;\n\ntype LocalStorageKey = (typeof localStorageKeys)[number];\n\n/** Sets the local storage value for a given key. Type safe. */\nexport function setLocalStorageItem(key: LocalStorageKey, value: string): void {\n  // eslint-disable-next-line no-restricted-syntax\n  localStorage?.setItem(key, value);\n}\n\n/** Retrieves the local storage value for a given key. Type safe. */\nexport function getLocalStorageItem(key: LocalStorageKey): string | null {\n  // eslint-disable-next-line no-restricted-syntax\n  return localStorage?.getItem(key) ?? null;\n}\n\n/** Removes an item from local storage for a given key. Type safe. */\nexport function removeLocalStorageItem(key: LocalStorageKey): void {\n  // eslint-disable-next-line no-restricted-syntax\n  localStorage?.removeItem(key);\n}\n", "import { cx } from '@emotion/css';\nimport { localeMap } from '@snapchat/mw-common';\nimport { getTopLevelDomain } from '@snapchat/parse-domain';\nimport type { DropdownItem } from '@snapchat/snap-design-system-marketing';\nimport { DropdownMenu } from '@snapchat/snap-design-system-marketing';\nimport Cookies from 'js-cookie';\nimport type { FC } from 'react';\nimport { useCallback, useContext } from 'react';\n\nimport { Action } from '../../analytics/Action';\nimport type { LocaleOption } from '../../context/GlobalComponentsContext';\nimport {\n  defaultLocaleCode,\n  defaultSupportedLocales,\n  GlobalComponentsContext,\n} from '../../context/GlobalComponentsContext';\nimport { CategoryOptInCookie } from '../CookieModal/cookieModalTypes';\nimport { localeCookie } from './localeConstants';\nimport { localeDropdownCss } from './LocaleDropdown.styles';\n\nexport interface LocaleDropdownProps {\n  className?: string;\n  /** @deprecated Read from global context */\n  supportedLocales?: Record<string, LocaleOption>;\n  /** @deprecated Read from global context */\n  currentLocale?: string;\n  /** @deprecated Read from global context */\n  onLocaleChange?: (locale: string) => void;\n  /** @deprecated Does nothing */\n  containerProvider?: (node: HTMLElement) => HTMLElement;\n}\n\n/**\n * Default implementation of the locale dropdown that sets a cookie value and triggers a callback\n * when the selected value changes.\n */\nexport const LocaleDropdown: FC<LocaleDropdownProps> = ({\n  currentLocale,\n  supportedLocales,\n  onLocaleChange,\n  className,\n}) => {\n  const context = useContext(GlobalComponentsContext);\n  currentLocale ??= context.currentLocale;\n  supportedLocales ??= context.supportedLocales ?? defaultSupportedLocales;\n  onLocaleChange ??= context.onLocaleChange;\n  const localeArray = Object.values(supportedLocales);\n\n  const onSelect = useCallback(\n    (item: DropdownItem) => {\n      const localeCode = item.id;\n\n      // we can only set locale cookie when preferences are enabled\n      if (Cookies.get(CategoryOptInCookie.Preferences) === 'true') {\n        Cookies.set(localeCookie, localeCode, {\n          // Note: We set the cookie on the base domain, so all websites on the *.snap.com domain\n          // use the same cookie. Ditto for snapchat.com.\n          // Also note that we use the &lang= parameter to transfer language setting between domains.\n          domain: getTopLevelDomain(window.location.host),\n          secure: true,\n        });\n      }\n\n      context.onEvent?.({\n        action: Action.LocaleSelect,\n        component: 'LocaleDropdown',\n        label: `Language: ${localeCode}`,\n      });\n\n      onLocaleChange?.(localeCode);\n    },\n    [context, onLocaleChange]\n  );\n\n  const dropdownItems: DropdownItem[] = localeArray.map(locale => {\n    const displayText = localeMap[locale.code] ?? locale.name;\n    return { id: locale.code, title: displayText };\n  });\n\n  return (\n    <DropdownMenu\n      items={dropdownItems}\n      className={cx(localeDropdownCss, className)}\n      data-testid=\"gc-locale-language\"\n      selectedItemId={currentLocale ?? defaultLocaleCode}\n      onItemSelect={onSelect}\n    />\n  );\n};\n\nLocaleDropdown.displayName = 'LocaleDropdown';\n", "/* eslint-disable import/no-unused-modules */\nexport const localeCookie = 'sc-language';\n\nexport const defaultLocale = 'en-US';\n", "import { css } from '@emotion/css';\n\nexport const localeDropdownCss = css`\n  .sdsm-dropdown-button {\n    font-size: 14px;\n    line-height: 20px;\n  }\n`;\n", "import { cx } from '@emotion/css';\nimport type { DesignAgnosticModalProps } from '@snapchat/mw-cookie-components';\nimport {\n  getBackgroundClassName,\n  Modal,\n  smallMobileMaxWidth,\n  useMediaMode,\n  useWindowSize,\n  VerticalAlignment,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useEffect, useState } from 'react';\n\nimport { contentCss, cookieModalCss, globalCss } from './SdsmCookieModal.styles';\n\n/** SdsmModal with positioning logic and emotion styles used for rendering the Cookie Modal */\nexport const SdsmCookieModal: FC<DesignAgnosticModalProps> = ({\n  backgroundType,\n  className,\n  children,\n  isDisplayed,\n  portalRoot,\n}) => {\n  const mode = useMediaMode();\n  const { width: windowWidth } = useWindowSize();\n  const [modalAlignment, setModalAlignment] = useState<VerticalAlignment>(VerticalAlignment.Middle);\n\n  // Set Modal positioning\n  useEffect(() => {\n    let alignment = VerticalAlignment.Middle;\n\n    if (mode === 'Mobile' && (windowWidth ?? Number.POSITIVE_INFINITY) <= smallMobileMaxWidth) {\n      alignment = VerticalAlignment.Bottom;\n    }\n    setModalAlignment(alignment);\n  }, [mode, windowWidth, setModalAlignment]);\n\n  return (\n    <Modal\n      isBlocking={true}\n      disableBackgroundScroll={true}\n      verticalAlignment={modalAlignment}\n      isDisplayed={isDisplayed}\n      portalRoot={portalRoot}\n      className={cx(globalCss, getBackgroundClassName(backgroundType), cookieModalCss, className)}\n      contentClassName={cx(contentCss)}\n    >\n      {children}\n    </Modal>\n  );\n};\n", "import { css } from '@emotion/css';\nimport {\n  BackgroundColor,\n  Black,\n  getBackgroundClassName,\n  Gray,\n  h5Css,\n  m,\n  mobileMediaQuery,\n  p1Css,\n  smallMobileMediaQuery,\n} from '@snapchat/snap-design-system-marketing';\n\n/* Styles copied from: marketing-web/packages/web/src/index.ejs */\nconst normalizeCss = css`\n  font-family: 'Graphik', Helvetica, sans-serif;\n\n  * {\n    box-sizing: border-box;\n    margin: 0;\n  }\n`;\n\n/* Standardize UI when rendered outside of MWP */\nexport const globalCss = css`\n  ${normalizeCss}\n\n  /* override site settings that override header behaviors */\n  h1,h2,h3,h4,h5,h6 {\n    font-family: 'Graphik', Helvetica, sans-serif;\n    text-transform: initial;\n    line-height: inherit;\n  }\n\n  /* Ensure consistent rendering of lists */\n  ul {\n    list-style: disc outside;\n  }\n`;\n\nconst cookieModalHeaderCss = css`\n  .modal-header {\n    display: flex;\n    flex-direction: row;\n    justify-content: space-between;\n    margin-bottom: ${m('--spacing-xs')};\n\n    .logo-container {\n      display: flex;\n      justify-content: center;\n      flex-direction: column;\n    }\n  }\n`;\n\nconst cookieModalRichTextCss = css`\n  .contentful-rich-text {\n    font-weight: 400;\n    line-height: 26px;\n\n    h3 {\n      font-size: 1.17em;\n    }\n\n    a {\n      color: inherit;\n      font-weight: 500;\n    }\n    > ul {\n      padding-left: ${m('--spacing-l')};\n      margin-bottom: ${m('--spacing-s')};\n    }\n    > ul > li {\n      margin-bottom: ${m('--spacing-xxs')};\n    }\n    > p {\n      margin: 0 0 ${m('--spacing-xxs')};\n    }\n    *[dir='rtl'] & {\n      > ul {\n        padding-left: unset;\n        padding-right: ${m('--spacing-l')};\n      }\n    }\n  }\n`;\n\n/**\n * Dark mode settings are loaded separately so they can access the classnames from parent SDS-M\n * Content components\n */\nconst darkModeCss = css`\n  .${getBackgroundClassName(BackgroundColor.Black)} .category-border.category-border {\n    /* Hardcoding Enum colors because we don't have a relevant CSS variable to use. */\n    border: 1px solid ${Black.V50};\n  }\n`;\n\nconst cookieModalSettingsScreenCss = css`\n  .category-border {\n    /* Hardcoding Enum colors because we don't have a relevant CSS variable to use. */\n    border: 1px solid ${Gray.V50};\n    border-radius: ${m('--border-radius-m')};\n    padding: ${m('--spacing-s')};\n    margin-bottom: ${m('--spacing-s')};\n  }\n\n  .category-title-container {\n    display: flex;\n    align-items: center;\n    margin-bottom: ${m('--spacing-xs')};\n  }\n  .category-title {\n    flex: 1;\n\n    ${p1Css}\n\n    *[dir='rtl'] & {\n      text-align: right;\n    }\n  }\n  .category-status {\n    font-size: 14px;\n    margin-right: ${m('--spacing-xs')};\n    *[dir='rtl'] & {\n      margin-right: unset;\n      margin-left: ${m('--spacing-xs')};\n    }\n  }\n  .category-toggle {\n    display: flex;\n    justify-content: center;\n    flex-direction: column;\n  }\n`;\n\nconst cookieModalFooterCss = css`\n  .modal-footer {\n    padding-top: ${m('--spacing-s')}; /* Padding set by design */\n    text-align: center;\n    display: flex;\n    /* Reverse direction so that when we wrap on smaller screens, the break happens on 1st, rather than last element.\n       NOTE: requires that content be rendered in reverse order */\n    flex-direction: row-reverse;\n    gap: ${m('--spacing-s')};\n    align-self: center;\n    justify-content: center;\n\n    /* Button spacing managed via gap instead of margins */\n    .sdsm-button {\n      margin: 0;\n    }\n\n    ${mobileMediaQuery} {\n      flex-wrap: wrap;\n      width: 100%;\n    }\n\n    ${smallMobileMediaQuery} {\n      /* See note above, accounts for content rendered in reverse order. */\n      flex-direction: column-reverse;\n      align-items: center;\n    }\n  }\n`;\n\nconst settingsPageFooterCss = css`\n  .settings-page-footer {\n    padding-top: ${m('--spacing-xl')};\n    display: flex;\n    flex-direction: row;\n    gap: ${m('--spacing-s')};\n    align-self: center;\n    justify-content: center;\n\n    /* Button spacing managed via gap instead of margins */\n    .sdsm-button {\n      margin: 0;\n    }\n\n    ${smallMobileMediaQuery} {\n      padding-top: unset;\n      flex-direction: column;\n    }\n  }\n`;\n\nexport const contentCss = css`\n  /* card style. */\n  background-color: ${m('--background-color')};\n  color: ${m('--foreground-color')};\n  border-radius: ${m('--border-radius-m')};\n  padding: ${m('--spacing-m')};\n  border: 1px #0003 solid;\n  box-shadow: ${m('--box-shadow-l')};\n`;\n\nexport const cookieModalCss = css`\n  --padding-horizontal: ${m('--spacing-xl')};\n  --padding-vertical: ${m('--spacing-l')};\n\n  ${mobileMediaQuery} {\n    --padding-horizontal: ${m('--spacing-s')};\n    --padding-vertical: ${m('--spacing-xs')};\n  }\n  --max-height: calc(100vh - var(--padding-vertical));\n  /* stylelint-disable-next-line declaration-block-no-duplicate-custom-properties */\n  --max-height: calc(100dvh - var(--padding-vertical));\n\n  .sdsm-modal-content {\n    ${contentCss}\n    padding: var(--padding-vertical) var(--padding-horizontal);\n    width: max-content;\n\n    /* stop-gap solution to prevent any part from being hidden */\n    overflow: auto;\n\n    /* prevents overflow of this container. */\n    max-height: 100%;\n    max-width: 100%;\n  }\n\n  .cookie-landing-screen,\n  .cookie-settings-screen {\n    max-height: calc(var(--max-height) - calc(2 * calc(1px + var(--padding-vertical))));\n\n    display: flex;\n    flex-direction: column;\n\n    /* Header Styles */\n    ${cookieModalHeaderCss}\n\n    /* Body Styles */\n    .modal-body {\n      flex: 1;\n      overflow-y: auto;\n      min-height: 5em;\n      margin-bottom: ${m('--spacing-xs')};\n      padding-right: ${m('--spacing-xs')};\n\n      *[dir='rtl'] & {\n        padding-right: unset;\n        padding-left: ${m('--spacing-xs')};\n      }\n\n      .cookie-title {\n        ${h5Css}\n\n        margin-bottom: ${m('--spacing-m')};\n      }\n\n      h3,\n      b {\n        font-weight: 500;\n      }\n\n      ${cookieModalSettingsScreenCss}\n\n      ${cookieModalRichTextCss}\n    }\n\n    /* Footer Styles */\n    ${cookieModalFooterCss}\n  }\n\n  /* Dark Mode Styles */\n  ${darkModeCss}\n`;\n\nexport const cookieSettingsPageCss = css`\n  /* Body Styles */\n  .settings-page-body {\n    text-align: left;\n\n    .cookie-title {\n      ${h5Css}\n\n      margin-bottom: ${m('--spacing-m')};\n    }\n\n    ${cookieModalSettingsScreenCss}\n\n    ${cookieModalRichTextCss}\n  }\n\n  /* Footer Styles */\n  ${settingsPageFooterCss}\n\n  /* Dark Mode Styles */\n  ${darkModeCss}\n`;\n", "/* eslint-disable import/no-duplicates */\nimport { cx } from '@emotion/css';\nimport type { DesignSystemProps } from '@snapchat/mw-cookie-components';\nimport { Button, ButtonType, getBackgroundClassName } from '@snapchat/snap-design-system-marketing';\n// TODO: this caused issues due to esm vs csj default exports, check if this is still a problem for consumers.\n// see https://github.sc-corp.net/Snapchat/marketing-web/pull/1770\nimport { ToggleSlider } from '@snapchat/snap-design-system-marketing';\n\nimport { LocaleDropdown } from '../LocaleDropdown/LocaleDropdown';\nimport { SdsmCookieModal } from './SdsmCookieModal';\nimport { contentCss } from './SdsmCookieModal.styles';\n\nexport const SdsmComponents: DesignSystemProps = {\n  buttonComponent: ({ text, isDisabled, isPrimary, onClick }) => {\n    const type = isPrimary ? ButtonType.Primary : undefined;\n    return (\n      <Button disabled={isDisabled} onClick={onClick} size=\"Compact\" type={type}>\n        {text}\n      </Button>\n    );\n  },\n\n  localeDropdownComponent: ({\n    currentLocale,\n    supportedLocales,\n    containerProvider,\n    onLocaleChange,\n  }) => {\n    // TODO: Use SDS-M Locale Dropdown.\n    return (\n      <LocaleDropdown\n        currentLocale={currentLocale.code}\n        supportedLocales={supportedLocales}\n        containerProvider={containerProvider}\n        onLocaleChange={onLocaleChange}\n      />\n    );\n  },\n\n  modalComponent: ({ backgroundType, children, isDisplayed, portalRoot }) => {\n    return (\n      <SdsmCookieModal\n        backgroundType={backgroundType}\n        isDisplayed={isDisplayed}\n        portalRoot={portalRoot}\n      >\n        {children}\n      </SdsmCookieModal>\n    );\n  },\n\n  sectionComponent: ({ backgroundType, children }) => {\n    return (\n      <section className={cx(contentCss, getBackgroundClassName(backgroundType))}>\n        {children}\n      </section>\n    );\n  },\n\n  toggleComponent: ({ id, isChecked, onToggle }) => {\n    const noop = () => undefined;\n    return <ToggleSlider id={id} isChecked={isChecked} onToggle={onToggle ?? noop} />;\n  },\n};\n", "import { cx } from '@emotion/css';\nimport type {\n  CookieProviderProps,\n  CookieSettingsProps as InnerSettingsProps,\n} from '@snapchat/mw-cookie-components';\nimport {\n  CookieProvider,\n  CookieSettings as CookieSettingsComponent,\n} from '@snapchat/mw-cookie-components';\nimport { PrimitivesProvider } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { GlobalComponentsContext } from '../../context/GlobalComponentsContext';\nimport type { BackgroundType } from '../CookieModal/cookieModalTypes';\nimport { SdsmComponents } from '../CookieModal/SdsmComponents';\nimport { cookieSettingsPageCss, globalCss } from '../CookieModal/SdsmCookieModal.styles';\n\nexport interface CookieSettingsProps {\n  backgroundType?: BackgroundType;\n  /** @deprecated Can grab hostname from the global context */\n  cookieDomain?: string;\n}\n\nexport const CookieSettings: FC<CookieSettingsProps> = ({ backgroundType, cookieDomain }) => {\n  // Construct props for <CookieProvider />\n  const context = useContext(GlobalComponentsContext);\n  const { Anchor, currentLocale, isPreview, isSSR, onEvent, onError, globalApolloClient } = context;\n\n  cookieDomain ??= context.hostname;\n\n  const providerProps: CookieProviderProps = {\n    ...SdsmComponents,\n    isSSR,\n    isPreview,\n    currentLocale,\n    client: globalApolloClient,\n  };\n\n  // Construct props for <CookieSettingsComponent />\n  const settingsProps: InnerSettingsProps = {\n    backgroundType,\n    cookieDomain,\n    onEvent,\n    onError,\n  };\n\n  return (\n    <PrimitivesProvider value={{ Anchor }}>\n      <div data-testid=\"mwp-cookie-settings\" className={cx(globalCss, cookieSettingsPageCss)}>\n        <CookieProvider {...providerProps}>\n          <CookieSettingsComponent {...settingsProps} />\n        </CookieProvider>\n      </div>\n    </PrimitivesProvider>\n  );\n};\n", "/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n  return (array && array.length) ? array[0] : undefined;\n}\n\nexport default head;\n", "import { useGlobalComponentsContentfulQuery } from '@snapchat/mw-global-components-schema';\nimport {\n  BackgroundColor,\n  FooterBar as FooterBarSDS,\n  FooterColumns as FooterColumnsSDS,\n  FooterV2 as FooterV2SDS,\n  Logo,\n  Orientation,\n  PrimitivesProvider,\n} from '@snapchat/snap-design-system-marketing';\nimport head from 'lodash-es/head';\nimport type { FC, ReactNode } from 'react';\nimport { useContext } from 'react';\n\nimport {\n  defaultLocaleCode,\n  GlobalComponentsContext,\n} from '../../../context/GlobalComponentsContext';\nimport type { FooterV3AllType } from '../../../generated/contentful-types';\nimport { FooterV3CollectionQueryDocumentType } from '../../../generated/contentful-types';\nimport { FooterType } from '../../GlobalFooter/GlobalFooter';\nimport { FooterGroup } from '../FooterGroup/FooterGroup';\nimport {\n  lightBgSnapLogoCss,\n  localeDropdownContainerCss,\n  logoWrapperCss,\n} from '../FooterGroup/FooterGroup.styles';\nimport { FooterLocaleDropdown } from '../FooterLocaleDropdown/FooterLocaleDropdown';\nimport type { FooterGroupItem } from '../FooterV3Types';\nimport { filterFooterDomains, mergeFooterData } from './utils';\n\nexport type CustomFooterGroupProps = {\n  id?: string;\n  title: string;\n  groupKey: string;\n  items: FooterGroupItem[];\n  analyticsLabel?: string;\n};\n\ninterface LocaleDropdownData {\n  id: string;\n  title: string;\n}\n\ninterface FooterCollectionV3Props {\n  customColumns?: CustomFooterGroupProps[];\n  customFooterBar?: CustomFooterGroupProps[];\n  backgroundColor?: BackgroundColor;\n  logo?: React.ReactNode;\n  /** Renders at the top of the footer. Used to link to socials. */\n  socialBar?: React.ReactNode;\n  footerType?: FooterType;\n  cookieSettingsUrl?: string;\n}\n\nexport const FooterCollectionV3: FC<FooterCollectionV3Props> = ({\n  customColumns,\n  customFooterBar,\n  backgroundColor = BackgroundColor.White,\n  logo,\n  socialBar,\n  footerType = FooterType.FULL_FOOTER,\n  cookieSettingsUrl,\n}) => {\n  const {\n    Anchor,\n    supportedLocales,\n    currentLocale,\n    hostname,\n    isPreview,\n    isSSR,\n    globalApolloClient,\n  } = useContext(GlobalComponentsContext);\n\n  const { data, loading, error } = useGlobalComponentsContentfulQuery(\n    FooterV3CollectionQueryDocumentType,\n    {\n      currentLocale: currentLocale ?? defaultLocaleCode,\n      isPreview: isPreview ?? false,\n      isSSR: isSSR ?? false,\n    },\n    { client: globalApolloClient }\n  );\n\n  if (loading || !!error || !hostname || !data) {\n    return null;\n  }\n\n  const hasMultipleLanguages = Object.keys(supportedLocales || {}).length > 1;\n  const footerProps = head(data.footerV3Collection.items) as FooterV3AllType;\n\n  const globalFooterColumnsItems = footerProps?.columnsCollection.items ?? [];\n  const globalFooterColumnsCollectionGroups = filterFooterDomains(\n    globalFooterColumnsItems,\n    hostname\n  );\n\n  const globalFooterBarItems = footerProps?.barCollection.items ?? [];\n  const globalFooterBarCollectionGroups = filterFooterDomains(globalFooterBarItems, hostname);\n\n  let localeDropdownData: LocaleDropdownData | undefined;\n\n  globalFooterBarCollectionGroups.forEach(group => {\n    const localeDropdownItem = group.itemsCollection.items.find(\n      i => i.__typename === 'FooterLocaleDropdown'\n    );\n\n    if (localeDropdownItem && !localeDropdownItem.hideOnDomains?.includes(hostname)) {\n      localeDropdownData = { title: localeDropdownItem.title, id: localeDropdownItem.sys.id };\n    }\n  });\n\n  const columnsGroups = mergeFooterData(\n    globalFooterColumnsCollectionGroups,\n    customColumns ?? [],\n    cookieSettingsUrl\n  );\n\n  const barGroups = mergeFooterData(\n    globalFooterBarCollectionGroups,\n    customFooterBar ?? [],\n    cookieSettingsUrl\n  );\n\n  let finalLogo: ReactNode;\n\n  if (barGroups.length) {\n    if (logo) {\n      finalLogo = logo;\n    } else {\n      const defaultLogo = (\n        <Logo\n          url={footerProps?.url}\n          className={logoWrapperCss}\n          innerLogoClassName={\n            backgroundColor !== BackgroundColor.Black ? lightBgSnapLogoCss : undefined\n          }\n          logoType={'SnapInc'}\n          openInNewTab\n        />\n      );\n\n      finalLogo = defaultLogo;\n    }\n\n    if (finalLogo && !footerProps?.hideLogoOnDomains?.includes(hostname)) {\n      //(NOTE: dvazbynd): adding the logo item to the right group to match position in the design\n      barGroups[0]!.beforeItems = <li>{finalLogo}</li>;\n    }\n\n    // Add locale dropdown to end of bar groups\n    if (localeDropdownData) {\n      const localeDropdown = (\n        <li\n          key={localeDropdownData.id}\n          id={localeDropdownData.id}\n          className={localeDropdownContainerCss}\n        >\n          <FooterLocaleDropdown\n            title={localeDropdownData.title}\n            currentOrientation={Orientation.Horizontal}\n          />\n        </li>\n      );\n\n      // TODO: we don't want to modify bar groups like this,\n      // and directly render localeDropdown instead. Likely paired\n      // with a migration to move localeDropdown to its own field on footer.\n      barGroups.push({\n        id: 'localeDropdownGroup',\n        title: '',\n        items: [],\n        orientation: Orientation.Horizontal,\n        afterItems: localeDropdown,\n      });\n    }\n  }\n\n  let output: ReactNode = null;\n\n  if (footerType === FooterType.NO_FOOTER) {\n    // Handle no footer case\n    if (!hasMultipleLanguages) {\n      return null;\n    }\n\n    if (!localeDropdownData) return null;\n\n    const localeDropdown = (\n      <li\n        key={localeDropdownData.id}\n        id={localeDropdownData.id}\n        className={localeDropdownContainerCss}\n      >\n        <FooterLocaleDropdown\n          title={localeDropdownData.title}\n          currentOrientation={Orientation.Horizontal}\n        />\n      </li>\n    );\n\n    output = (\n      <FooterV2SDS backgroundColor={backgroundColor}>\n        {socialBar}\n        <FooterBarSDS>\n          <FooterGroup\n            key={'noFooter'}\n            id={'localeDropdown'}\n            title=\"\"\n            items={[]}\n            orientation={Orientation.Horizontal}\n            afterItems={localeDropdown}\n          />\n        </FooterBarSDS>\n      </FooterV2SDS>\n    );\n  } else {\n    // handle hideFooterLinks or full footer case\n    const footerBar = (\n      <FooterBarSDS>\n        {barGroups.map((group, i) => {\n          return (\n            <FooterGroup\n              key={`${i}-${group.id}`}\n              id={group.id}\n              title={group.title}\n              items={group.items}\n              orientation={Orientation.Horizontal}\n              beforeItems={group.beforeItems}\n              afterItems={group.afterItems}\n              isFooterBar\n            />\n          );\n        })}\n      </FooterBarSDS>\n    );\n\n    if (footerType === FooterType.SIMPLE_FOOTER) {\n      output = (\n        <FooterV2SDS backgroundColor={backgroundColor}>\n          {socialBar}\n          {footerBar}\n        </FooterV2SDS>\n      );\n    } else {\n      const footerColumns = columnsGroups.map((group, i) => (\n        <FooterGroup\n          key={`${i}-${group.id}`}\n          id={group.id}\n          title={group.title}\n          items={group.items}\n        />\n      ));\n\n      output = (\n        <FooterV2SDS backgroundColor={backgroundColor}>\n          {socialBar}\n          <FooterColumnsSDS>{footerColumns}</FooterColumnsSDS>\n          {footerBar}\n        </FooterV2SDS>\n      );\n    }\n  }\n\n  return <PrimitivesProvider value={{ Anchor }}>{output}</PrimitivesProvider>;\n};\n", "import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type Maybe<T> = T;\nexport type InputMaybe<T> = T;\nexport type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n  ID: string;\n  String: string;\n  Boolean: boolean;\n  Int: number;\n  Float: number;\n  /**\n   * A date-time string at UTC, such as 2007-12-03T10:15:30Z,\n   *     compliant with the 'date-time' format outlined in section 5.6 of\n   *     the RFC 3339 profile of the ISO 8601 standard for representation\n   *     of dates and times using the Gregorian calendar.\n   */\n  DateTime: string;\n  /** The 'Dimension' type represents dimensions as whole numeric values between `1` and `4000`. */\n  Dimension: number;\n  /** The 'Quality' type represents quality as whole numeric values between `1` and `100`. */\n  Quality: number;\n  /** The 'HexColor' type represents color in `rgb:ffffff` string format. */\n  HexColor: string;\n  /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */\n  JSON: Record<string, unknown>;\n};\n\nexport type QueryType = {\n  readonly __typename?: 'Query';\n  readonly asset: Maybe<AssetType>;\n  readonly assetCollection: Maybe<AssetCollectionType>;\n  readonly globalNavConfig: Maybe<GlobalNavConfigType>;\n  readonly globalNavConfigCollection: Maybe<GlobalNavConfigCollectionType>;\n  readonly cookieModal: Maybe<CookieModalType>;\n  readonly cookieModalCollection: Maybe<CookieModalCollectionType>;\n  readonly trackingCookie: Maybe<TrackingCookieType>;\n  readonly trackingCookieCollection: Maybe<TrackingCookieCollectionType>;\n  readonly image: Maybe<ImageType>;\n  readonly imageCollection: Maybe<ImageCollectionType>;\n  readonly globalNavHighlight: Maybe<GlobalNavHighlightType>;\n  readonly globalNavHighlightCollection: Maybe<GlobalNavHighlightCollectionType>;\n  readonly globalNav: Maybe<GlobalNavType>;\n  readonly globalNavCollection: Maybe<GlobalNavCollectionType>;\n  readonly cookieCategory: Maybe<CookieCategoryType>;\n  readonly cookieCategoryCollection: Maybe<CookieCategoryCollectionType>;\n  readonly footerV3: Maybe<FooterV3Type>;\n  readonly footerV3Collection: Maybe<FooterV3CollectionType>;\n  readonly footerItemV3: Maybe<FooterItemV3Type>;\n  readonly footerItemV3Collection: Maybe<FooterItemV3CollectionType>;\n  readonly footerLocaleDropdown: Maybe<FooterLocaleDropdownType>;\n  readonly footerLocaleDropdownCollection: Maybe<FooterLocaleDropdownCollectionType>;\n  readonly footerCookiesSettingsLink: Maybe<FooterCookiesSettingsLinkType>;\n  readonly footerCookiesSettingsLinkCollection: Maybe<FooterCookiesSettingsLinkCollectionType>;\n  readonly footerGroup: Maybe<FooterGroupType>;\n  readonly footerGroupCollection: Maybe<FooterGroupCollectionType>;\n  readonly cookieBanner: Maybe<CookieBannerType>;\n  readonly cookieBannerCollection: Maybe<CookieBannerCollectionType>;\n  readonly footer: Maybe<FooterType>;\n  readonly footerCollection: Maybe<FooterCollectionType>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly analyticsCollection: Maybe<AnalyticsCollectionType>;\n  readonly globalNavItem: Maybe<GlobalNavItemType>;\n  readonly globalNavItemCollection: Maybe<GlobalNavItemCollectionType>;\n  readonly button: Maybe<ButtonType>;\n  readonly buttonCollection: Maybe<ButtonCollectionType>;\n  readonly callToAction: Maybe<CallToActionType>;\n  readonly callToActionCollection: Maybe<CallToActionCollectionType>;\n  readonly message: Maybe<MessageType>;\n  readonly messageCollection: Maybe<MessageCollectionType>;\n  readonly legalMessage: Maybe<LegalMessageType>;\n  readonly legalMessageCollection: Maybe<LegalMessageCollectionType>;\n  readonly video: Maybe<VideoType>;\n  readonly videoCollection: Maybe<VideoCollectionType>;\n  readonly footerItem: Maybe<FooterItemType>;\n  readonly footerItemCollection: Maybe<FooterItemCollectionType>;\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly _node: Maybe<_NodeType>;\n};\n\n\nexport type QueryAssetArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryAssetCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AssetFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AssetOrderType>>>;\n};\n\n\nexport type QueryGlobalNavConfigArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryGlobalNavConfigCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavConfigFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavConfigOrderType>>>;\n};\n\n\nexport type QueryCookieModalArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryCookieModalCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CookieModalFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieModalOrderType>>>;\n};\n\n\nexport type QueryTrackingCookieArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryTrackingCookieCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<TrackingCookieFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<TrackingCookieOrderType>>>;\n};\n\n\nexport type QueryImageArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryImageCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<ImageFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<ImageOrderType>>>;\n};\n\n\nexport type QueryGlobalNavHighlightArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryGlobalNavHighlightCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavHighlightFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavHighlightOrderType>>>;\n};\n\n\nexport type QueryGlobalNavArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryGlobalNavCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavOrderType>>>;\n};\n\n\nexport type QueryCookieCategoryArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryCookieCategoryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CookieCategoryFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieCategoryOrderType>>>;\n};\n\n\nexport type QueryFooterV3ArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterV3CollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterV3FilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterV3OrderType>>>;\n};\n\n\nexport type QueryFooterItemV3ArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterItemV3CollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterItemV3FilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemV3OrderType>>>;\n};\n\n\nexport type QueryFooterLocaleDropdownArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterLocaleDropdownCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterLocaleDropdownFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterLocaleDropdownOrderType>>>;\n};\n\n\nexport type QueryFooterCookiesSettingsLinkArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterCookiesSettingsLinkCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterCookiesSettingsLinkFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterCookiesSettingsLinkOrderType>>>;\n};\n\n\nexport type QueryFooterGroupArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterGroupCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterGroupFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupOrderType>>>;\n};\n\n\nexport type QueryCookieBannerArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryCookieBannerCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CookieBannerFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieBannerOrderType>>>;\n};\n\n\nexport type QueryFooterArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterOrderType>>>;\n};\n\n\nexport type QueryAnalyticsArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryAnalyticsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsOrderType>>>;\n};\n\n\nexport type QueryGlobalNavItemArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryGlobalNavItemCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavItemOrderType>>>;\n};\n\n\nexport type QueryButtonArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryButtonCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<ButtonFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<ButtonOrderType>>>;\n};\n\n\nexport type QueryCallToActionArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryCallToActionCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CallToActionFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CallToActionOrderType>>>;\n};\n\n\nexport type QueryMessageArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryMessageCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<MessageFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<MessageOrderType>>>;\n};\n\n\nexport type QueryLegalMessageArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryLegalMessageCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<LegalMessageFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<LegalMessageOrderType>>>;\n};\n\n\nexport type QueryVideoArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryVideoCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<VideoFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<VideoOrderType>>>;\n};\n\n\nexport type QueryFooterItemArgsType = {\n  id: Scalars['String'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type QueryFooterItemCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemOrderType>>>;\n};\n\n\nexport type QueryEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<EntryFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<EntryOrderType>>>;\n};\n\n\nexport type Query_NodeArgsType = {\n  id: Scalars['ID'];\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetType = {\n  readonly __typename?: 'Asset';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly title: Maybe<Scalars['String']>;\n  readonly description: Maybe<Scalars['String']>;\n  readonly contentType: Maybe<Scalars['String']>;\n  readonly fileName: Maybe<Scalars['String']>;\n  readonly size: Maybe<Scalars['Int']>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly width: Maybe<Scalars['Int']>;\n  readonly height: Maybe<Scalars['Int']>;\n  readonly linkedFrom: Maybe<AssetLinkingCollectionsType>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetContentTypeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetFileNameArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetSizeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetUrlArgsType = {\n  transform: InputMaybe<ImageTransformOptionsType>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetWidthArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetHeightArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Represents a binary file in a space. An asset can be any file type. */\nexport type AssetLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\nexport type SysType = {\n  readonly __typename?: 'Sys';\n  readonly id: Scalars['String'];\n  readonly spaceId: Scalars['String'];\n  readonly environmentId: Scalars['String'];\n  readonly publishedAt: Maybe<Scalars['DateTime']>;\n  readonly firstPublishedAt: Maybe<Scalars['DateTime']>;\n  readonly publishedVersion: Maybe<Scalars['Int']>;\n  /** The locale that was requested. */\n  readonly locale: Maybe<Scalars['String']>;\n};\n\nexport type ContentfulMetadataType = {\n  readonly __typename?: 'ContentfulMetadata';\n  readonly tags: ReadonlyArray<Maybe<ContentfulTagType>>;\n  readonly concepts: ReadonlyArray<Maybe<TaxonomyConceptType>>;\n};\n\n/**\n * Represents a tag entity for finding and organizing content easily.\n *         Find out more here: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/content-concepts\n */\nexport type TaxonomyConceptType = {\n  readonly __typename?: 'TaxonomyConcept';\n  readonly id: Maybe<Scalars['String']>;\n};\n\n/**\n * Represents a tag entity for finding and organizing content easily.\n *       Find out more here: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/content-tags\n */\nexport type ContentfulTagType = {\n  readonly __typename?: 'ContentfulTag';\n  readonly id: Maybe<Scalars['String']>;\n  readonly name: Maybe<Scalars['String']>;\n};\n\nexport type ImageTransformOptionsType = {\n  /** Desired width in pixels. Defaults to the original image width. */\n  readonly width: InputMaybe<Scalars['Dimension']>;\n  /** Desired height in pixels. Defaults to the original image height. */\n  readonly height: InputMaybe<Scalars['Dimension']>;\n  /**\n   * Desired quality of the image in percents.\n   *         Used for `PNG8`, `JPG`, `JPG_PROGRESSIVE` and `WEBP` formats.\n   */\n  readonly quality: InputMaybe<Scalars['Quality']>;\n  /**\n   * Desired corner radius in pixels.\n   *         Results in an image with rounded corners (pass `-1` for a full circle/ellipse).\n   *         Defaults to `0`. Uses desired background color as padding color,\n   *         unless the format is `JPG` or `JPG_PROGRESSIVE` and resize strategy is `PAD`, then defaults to white.\n   */\n  readonly cornerRadius: InputMaybe<Scalars['Int']>;\n  /** Desired resize strategy. Defaults to `FIT`. */\n  readonly resizeStrategy: InputMaybe<ImageResizeStrategyType>;\n  /** Desired resize focus area. Defaults to `CENTER`. */\n  readonly resizeFocus: InputMaybe<ImageResizeFocusType>;\n  /**\n   * Desired background color, used with corner radius or `PAD` resize strategy.\n   *         Defaults to transparent (for `PNG`, `PNG8` and `WEBP`) or white (for `JPG` and `JPG_PROGRESSIVE`).\n   */\n  readonly backgroundColor: InputMaybe<Scalars['HexColor']>;\n  /** Desired image format. Defaults to the original image format. */\n  readonly format: InputMaybe<ImageFormatType>;\n};\n\nexport enum ImageResizeStrategyType {\n  /** Resizes the image to fit into the specified dimensions. */\n  FitType = 'FIT',\n  /**\n   * Resizes the image to the specified dimensions, padding the image if needed.\n   *         Uses desired background color as padding color.\n   */\n  PadType = 'PAD',\n  /** Resizes the image to the specified dimensions, cropping the image if needed. */\n  FillType = 'FILL',\n  /** Resizes the image to the specified dimensions, changing the original aspect ratio if needed. */\n  ScaleType = 'SCALE',\n  /** Crops a part of the original image to fit into the specified dimensions. */\n  CropType = 'CROP',\n  /** Creates a thumbnail from the image. */\n  ThumbType = 'THUMB'\n}\n\nexport enum ImageResizeFocusType {\n  /** Focus the resizing on the center. */\n  CenterType = 'CENTER',\n  /** Focus the resizing on the top. */\n  TopType = 'TOP',\n  /** Focus the resizing on the top right. */\n  TopRightType = 'TOP_RIGHT',\n  /** Focus the resizing on the right. */\n  RightType = 'RIGHT',\n  /** Focus the resizing on the bottom right. */\n  BottomRightType = 'BOTTOM_RIGHT',\n  /** Focus the resizing on the bottom. */\n  BottomType = 'BOTTOM',\n  /** Focus the resizing on the bottom left. */\n  BottomLeftType = 'BOTTOM_LEFT',\n  /** Focus the resizing on the left. */\n  LeftType = 'LEFT',\n  /** Focus the resizing on the top left. */\n  TopLeftType = 'TOP_LEFT',\n  /** Focus the resizing on the largest face. */\n  FaceType = 'FACE',\n  /** Focus the resizing on the area containing all the faces. */\n  FacesType = 'FACES'\n}\n\nexport enum ImageFormatType {\n  /** JPG image format. */\n  JpgType = 'JPG',\n  /**\n   * Progressive JPG format stores multiple passes of an image in progressively higher detail.\n   *         When a progressive image is loading, the viewer will first see a lower quality pixelated version which\n   *         will gradually improve in detail, until the image is fully downloaded. This is to display an image as\n   *         early as possible to make the layout look as designed.\n   */\n  JpgProgressiveType = 'JPG_PROGRESSIVE',\n  /** PNG image format */\n  PngType = 'PNG',\n  /**\n   * 8-bit PNG images support up to 256 colors and weigh less than the standard 24-bit PNG equivalent.\n   *         The 8-bit PNG format is mostly used for simple images, such as icons or logos.\n   */\n  Png8Type = 'PNG8',\n  /** WebP image format. */\n  WebpType = 'WEBP',\n  AvifType = 'AVIF'\n}\n\nexport type AssetLinkingCollectionsType = {\n  readonly __typename?: 'AssetLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly imageCollection: Maybe<ImageCollectionType>;\n  readonly globalNavHighlightCollection: Maybe<GlobalNavHighlightCollectionType>;\n  readonly cookieBannerCollection: Maybe<CookieBannerCollectionType>;\n  readonly videoCollection: Maybe<VideoCollectionType>;\n};\n\n\nexport type AssetLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type AssetLinkingCollectionsImageCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type AssetLinkingCollectionsGlobalNavHighlightCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type AssetLinkingCollectionsCookieBannerCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type AssetLinkingCollectionsVideoCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type EntryCollectionType = {\n  readonly __typename?: 'EntryCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type EntryType = {\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n};\n\nexport type ImageCollectionType = {\n  readonly __typename?: 'ImageCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<ImageType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/image) */\nexport type ImageType = EntryType & _NodeType & {\n  readonly __typename?: 'Image';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<ImageLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly media: Maybe<AssetType>;\n  readonly wrap: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/image) */\nexport type ImageLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/image) */\nexport type ImageContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/image) */\nexport type ImageMediaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/image) */\nexport type ImageWrapArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type _NodeType = {\n  readonly _id: Scalars['ID'];\n};\n\nexport type ImageLinkingCollectionsType = {\n  readonly __typename?: 'ImageLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerV3Collection: Maybe<FooterV3CollectionType>;\n  readonly buttonCollection: Maybe<ButtonCollectionType>;\n};\n\n\nexport type ImageLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type ImageLinkingCollectionsFooterV3CollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<ImageLinkingCollectionsFooterV3CollectionOrderType>>>;\n};\n\n\nexport type ImageLinkingCollectionsButtonCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<ImageLinkingCollectionsButtonCollectionOrderType>>>;\n};\n\nexport type FooterV3CollectionType = {\n  readonly __typename?: 'FooterV3Collection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterV3Type>>;\n};\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3Type = EntryType & _NodeType & {\n  readonly __typename?: 'FooterV3';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterV3LinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly columnsCollection: Maybe<FooterV3ColumnsCollectionType>;\n  readonly barCollection: Maybe<FooterV3BarCollectionType>;\n  readonly logo: Maybe<ImageType>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly hideLogoOnDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3LinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3ContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3ColumnsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterGroupFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterV3ColumnsCollectionOrderType>>>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3BarCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterGroupFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterV3BarCollectionOrderType>>>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3LogoArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<ImageFilterType>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3UrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Type for the new Footer V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerV3) */\nexport type FooterV3HideLogoOnDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterV3LinkingCollectionsType = {\n  readonly __typename?: 'FooterV3LinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type FooterV3LinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterV3ColumnsCollectionType = {\n  readonly __typename?: 'FooterV3ColumnsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterGroupType>>;\n};\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupType = EntryType & _NodeType & {\n  readonly __typename?: 'FooterGroup';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterGroupLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly title: Maybe<Scalars['String']>;\n  readonly groupKey: Maybe<Scalars['String']>;\n  readonly itemsCollection: Maybe<FooterGroupItemsCollectionType>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly hideOnDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupGroupKeyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupItemsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterGroupItemsFilterType>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupAnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\n\n/** This model will hold and group footer items [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerGroup) */\nexport type FooterGroupHideOnDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterGroupLinkingCollectionsType = {\n  readonly __typename?: 'FooterGroupLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerV3Collection: Maybe<FooterV3CollectionType>;\n};\n\n\nexport type FooterGroupLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type FooterGroupLinkingCollectionsFooterV3CollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupLinkingCollectionsFooterV3CollectionOrderType>>>;\n};\n\nexport enum FooterGroupLinkingCollectionsFooterV3CollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterGroupItemsCollectionType = {\n  readonly __typename?: 'FooterGroupItemsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterGroupItemsItemType>>;\n};\n\nexport type FooterGroupItemsItemType = FooterCookiesSettingsLinkType | FooterItemV3Type | FooterLocaleDropdownType;\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkType = EntryType & _NodeType & {\n  readonly __typename?: 'FooterCookiesSettingsLink';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterCookiesSettingsLinkLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly title: Maybe<Scalars['String']>;\n  readonly hideOnDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n  readonly analytics: Maybe<AnalyticsType>;\n};\n\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkHideOnDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer Cookie Settings Link model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerCookiesSettingsLink) */\nexport type FooterCookiesSettingsLinkAnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\nexport type FooterCookiesSettingsLinkLinkingCollectionsType = {\n  readonly __typename?: 'FooterCookiesSettingsLinkLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerGroupCollection: Maybe<FooterGroupCollectionType>;\n};\n\n\nexport type FooterCookiesSettingsLinkLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type FooterCookiesSettingsLinkLinkingCollectionsFooterGroupCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterCookiesSettingsLinkLinkingCollectionsFooterGroupCollectionOrderType>>>;\n};\n\nexport type FooterGroupCollectionType = {\n  readonly __typename?: 'FooterGroupCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterGroupType>>;\n};\n\nexport enum FooterCookiesSettingsLinkLinkingCollectionsFooterGroupCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/analytics) */\nexport type AnalyticsType = EntryType & _NodeType & {\n  readonly __typename?: 'Analytics';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<AnalyticsLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly label: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/analytics) */\nexport type AnalyticsLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/analytics) */\nexport type AnalyticsLabelArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type AnalyticsLinkingCollectionsType = {\n  readonly __typename?: 'AnalyticsLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerItemV3Collection: Maybe<FooterItemV3CollectionType>;\n  readonly footerCookiesSettingsLinkCollection: Maybe<FooterCookiesSettingsLinkCollectionType>;\n  readonly footerGroupCollection: Maybe<FooterGroupCollectionType>;\n  readonly globalNavItemCollection: Maybe<GlobalNavItemCollectionType>;\n  readonly callToActionCollection: Maybe<CallToActionCollectionType>;\n  readonly footerItemCollection: Maybe<FooterItemCollectionType>;\n};\n\n\nexport type AnalyticsLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type AnalyticsLinkingCollectionsFooterItemV3CollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsFooterItemV3CollectionOrderType>>>;\n};\n\n\nexport type AnalyticsLinkingCollectionsFooterCookiesSettingsLinkCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsFooterCookiesSettingsLinkCollectionOrderType>>>;\n};\n\n\nexport type AnalyticsLinkingCollectionsFooterGroupCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsFooterGroupCollectionOrderType>>>;\n};\n\n\nexport type AnalyticsLinkingCollectionsGlobalNavItemCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsGlobalNavItemCollectionOrderType>>>;\n};\n\n\nexport type AnalyticsLinkingCollectionsCallToActionCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsCallToActionCollectionOrderType>>>;\n};\n\n\nexport type AnalyticsLinkingCollectionsFooterItemCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsLinkingCollectionsFooterItemCollectionOrderType>>>;\n};\n\nexport type FooterItemV3CollectionType = {\n  readonly __typename?: 'FooterItemV3Collection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterItemV3Type>>;\n};\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3Type = EntryType & _NodeType & {\n  readonly __typename?: 'FooterItemV3';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterItemV3LinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly title: Maybe<Scalars['String']>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly hideOnDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3LinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3ContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3TitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3UrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3AnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\n\n/** Footer item for the Footer - V3 [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItemV3) */\nexport type FooterItemV3HideOnDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterItemV3LinkingCollectionsType = {\n  readonly __typename?: 'FooterItemV3LinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerGroupCollection: Maybe<FooterGroupCollectionType>;\n};\n\n\nexport type FooterItemV3LinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type FooterItemV3LinkingCollectionsFooterGroupCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemV3LinkingCollectionsFooterGroupCollectionOrderType>>>;\n};\n\nexport enum FooterItemV3LinkingCollectionsFooterGroupCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type AnalyticsFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly label_exists: InputMaybe<Scalars['Boolean']>;\n  readonly label: InputMaybe<Scalars['String']>;\n  readonly label_not: InputMaybe<Scalars['String']>;\n  readonly label_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly label_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly label_contains: InputMaybe<Scalars['String']>;\n  readonly label_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<AnalyticsFilterType>>>;\n};\n\nexport type SysFilterType = {\n  readonly id_exists: InputMaybe<Scalars['Boolean']>;\n  readonly id: InputMaybe<Scalars['String']>;\n  readonly id_not: InputMaybe<Scalars['String']>;\n  readonly id_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains: InputMaybe<Scalars['String']>;\n  readonly id_not_contains: InputMaybe<Scalars['String']>;\n  readonly publishedAt_exists: InputMaybe<Scalars['Boolean']>;\n  readonly publishedAt: InputMaybe<Scalars['DateTime']>;\n  readonly publishedAt_not: InputMaybe<Scalars['DateTime']>;\n  readonly publishedAt_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['DateTime']>>>;\n  readonly publishedAt_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['DateTime']>>>;\n  readonly publishedAt_gt: InputMaybe<Scalars['DateTime']>;\n  readonly publishedAt_gte: InputMaybe<Scalars['DateTime']>;\n  readonly publishedAt_lt: InputMaybe<Scalars['DateTime']>;\n  readonly publishedAt_lte: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_exists: InputMaybe<Scalars['Boolean']>;\n  readonly firstPublishedAt: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_not: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['DateTime']>>>;\n  readonly firstPublishedAt_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['DateTime']>>>;\n  readonly firstPublishedAt_gt: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_gte: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_lt: InputMaybe<Scalars['DateTime']>;\n  readonly firstPublishedAt_lte: InputMaybe<Scalars['DateTime']>;\n  readonly publishedVersion_exists: InputMaybe<Scalars['Boolean']>;\n  readonly publishedVersion: InputMaybe<Scalars['Float']>;\n  readonly publishedVersion_not: InputMaybe<Scalars['Float']>;\n  readonly publishedVersion_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Float']>>>;\n  readonly publishedVersion_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Float']>>>;\n  readonly publishedVersion_gt: InputMaybe<Scalars['Float']>;\n  readonly publishedVersion_gte: InputMaybe<Scalars['Float']>;\n  readonly publishedVersion_lt: InputMaybe<Scalars['Float']>;\n  readonly publishedVersion_lte: InputMaybe<Scalars['Float']>;\n};\n\nexport type ContentfulMetadataFilterType = {\n  readonly tags_exists: InputMaybe<Scalars['Boolean']>;\n  readonly tags: InputMaybe<ContentfulMetadataTagsFilterType>;\n  readonly concepts_exists: InputMaybe<Scalars['Boolean']>;\n  readonly concepts: InputMaybe<ContentfulMetadataConceptsFilterType>;\n};\n\nexport type ContentfulMetadataConceptsFilterType = {\n  readonly id_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly descendants: InputMaybe<ContentfulMetadataConceptsDescendantsFilterType>;\n};\n\nexport type ContentfulMetadataConceptsDescendantsFilterType = {\n  readonly id_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\nexport type ContentfulMetadataTagsFilterType = {\n  readonly id_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly id_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\nexport enum AnalyticsLinkingCollectionsFooterItemV3CollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterCookiesSettingsLinkCollectionType = {\n  readonly __typename?: 'FooterCookiesSettingsLinkCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterCookiesSettingsLinkType>>;\n};\n\nexport enum AnalyticsLinkingCollectionsFooterCookiesSettingsLinkCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum AnalyticsLinkingCollectionsFooterGroupCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type GlobalNavItemCollectionType = {\n  readonly __typename?: 'GlobalNavItemCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavItemType>>;\n};\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemType = EntryType & _NodeType & {\n  readonly __typename?: 'GlobalNavItem';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<GlobalNavItemLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly hideHostnameRegex: Maybe<Scalars['String']>;\n};\n\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemUrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemAnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\n\n/** Individual link in the global nav. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavItem) */\nexport type GlobalNavItemHideHostnameRegexArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type GlobalNavItemLinkingCollectionsType = {\n  readonly __typename?: 'GlobalNavItemLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly globalNavCollection: Maybe<GlobalNavCollectionType>;\n};\n\n\nexport type GlobalNavItemLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type GlobalNavItemLinkingCollectionsGlobalNavCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavItemLinkingCollectionsGlobalNavCollectionOrderType>>>;\n};\n\nexport type GlobalNavCollectionType = {\n  readonly __typename?: 'GlobalNavCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavType>>;\n};\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavType = EntryType & _NodeType & {\n  readonly __typename?: 'GlobalNav';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<GlobalNavLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly groupKey: Maybe<Scalars['String']>;\n  readonly highlight: Maybe<GlobalNavHighlightType>;\n  readonly itemsCollection: Maybe<GlobalNavItemsCollectionType>;\n  readonly primaryHostnameRegex: Maybe<Scalars['String']>;\n  readonly hideHostnameRegex: Maybe<Scalars['String']>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavGroupKeyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavHighlightArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavHighlightFilterType>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavItemsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavItemsCollectionOrderType>>>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavPrimaryHostnameRegexArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Link group in the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNav) */\nexport type GlobalNavHideHostnameRegexArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type GlobalNavLinkingCollectionsType = {\n  readonly __typename?: 'GlobalNavLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly globalNavConfigCollection: Maybe<GlobalNavConfigCollectionType>;\n};\n\n\nexport type GlobalNavLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type GlobalNavLinkingCollectionsGlobalNavConfigCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavLinkingCollectionsGlobalNavConfigCollectionOrderType>>>;\n};\n\nexport type GlobalNavConfigCollectionType = {\n  readonly __typename?: 'GlobalNavConfigCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavConfigType>>;\n};\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigType = EntryType & _NodeType & {\n  readonly __typename?: 'GlobalNavConfig';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<GlobalNavConfigLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly globalNavGroupsCollection: Maybe<GlobalNavConfigGlobalNavGroupsCollectionType>;\n  readonly globalNavLabel: Maybe<Scalars['String']>;\n  readonly globalNavButtonAriaLabel: Maybe<Scalars['String']>;\n};\n\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigGlobalNavGroupsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<GlobalNavFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavConfigGlobalNavGroupsCollectionOrderType>>>;\n};\n\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigGlobalNavLabelArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Configuration for the global navigation. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavConfig) */\nexport type GlobalNavConfigGlobalNavButtonAriaLabelArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type GlobalNavConfigLinkingCollectionsType = {\n  readonly __typename?: 'GlobalNavConfigLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type GlobalNavConfigLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type GlobalNavConfigGlobalNavGroupsCollectionType = {\n  readonly __typename?: 'GlobalNavConfigGlobalNavGroupsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavType>>;\n};\n\nexport type GlobalNavFilterType = {\n  readonly highlight: InputMaybe<CfGlobalNavHighlightNestedFilterType>;\n  readonly items: InputMaybe<CfGlobalNavItemNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_exists: InputMaybe<Scalars['Boolean']>;\n  readonly groupKey: InputMaybe<Scalars['String']>;\n  readonly groupKey_not: InputMaybe<Scalars['String']>;\n  readonly groupKey_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_not_contains: InputMaybe<Scalars['String']>;\n  readonly highlight_exists: InputMaybe<Scalars['Boolean']>;\n  readonly itemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly primaryHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly primaryHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly primaryHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly primaryHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavFilterType>>>;\n};\n\nexport type CfGlobalNavHighlightNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly cta_exists: InputMaybe<Scalars['Boolean']>;\n  readonly background_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitleV2_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitleV2: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_not: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardTitleV2_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardTitleV2_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardBodyV2: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_not: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardBodyV2_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardBodyV2_contains: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardContent_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardContent_contains: InputMaybe<Scalars['String']>;\n  readonly cardContent_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitle_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitle_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardBody_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardBody_contains: InputMaybe<Scalars['String']>;\n  readonly cardBody_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavHighlightNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavHighlightNestedFilterType>>>;\n};\n\nexport type CfGlobalNavItemNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavItemNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavItemNestedFilterType>>>;\n};\n\nexport enum GlobalNavConfigGlobalNavGroupsCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  PrimaryHostnameRegexAscType = 'primaryHostnameRegex_ASC',\n  PrimaryHostnameRegexDescType = 'primaryHostnameRegex_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum GlobalNavLinkingCollectionsGlobalNavConfigCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GlobalNavLabelAscType = 'globalNavLabel_ASC',\n  GlobalNavLabelDescType = 'globalNavLabel_DESC',\n  GlobalNavButtonAriaLabelAscType = 'globalNavButtonAriaLabel_ASC',\n  GlobalNavButtonAriaLabelDescType = 'globalNavButtonAriaLabel_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightType = EntryType & _NodeType & {\n  readonly __typename?: 'GlobalNavHighlight';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<GlobalNavHighlightLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly cta: Maybe<CallToActionType>;\n  readonly background: Maybe<AssetType>;\n  readonly cardTitleV2: Maybe<Scalars['String']>;\n  readonly cardBodyV2: Maybe<Scalars['String']>;\n  readonly cardContent: Maybe<GlobalNavHighlightCardContentType>;\n  readonly cardTitle: Maybe<GlobalNavHighlightCardTitleType>;\n  readonly cardBody: Maybe<GlobalNavHighlightCardBodyType>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCtaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CallToActionFilterType>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightBackgroundArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCardTitleV2ArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCardBodyV2ArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCardContentArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCardTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** The highlight for a group of links. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/globalNavHighlight) */\nexport type GlobalNavHighlightCardBodyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type GlobalNavHighlightLinkingCollectionsType = {\n  readonly __typename?: 'GlobalNavHighlightLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly globalNavCollection: Maybe<GlobalNavCollectionType>;\n};\n\n\nexport type GlobalNavHighlightLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type GlobalNavHighlightLinkingCollectionsGlobalNavCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavHighlightLinkingCollectionsGlobalNavCollectionOrderType>>>;\n};\n\nexport enum GlobalNavHighlightLinkingCollectionsGlobalNavCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  PrimaryHostnameRegexAscType = 'primaryHostnameRegex_ASC',\n  PrimaryHostnameRegexDescType = 'primaryHostnameRegex_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionType = EntryType & _NodeType & {\n  readonly __typename?: 'CallToAction';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<CallToActionLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly presentation: Maybe<CallToActionPresentationType>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly url: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionPresentationArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionAnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/callToAction) */\nexport type CallToActionUrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type CallToActionLinkingCollectionsType = {\n  readonly __typename?: 'CallToActionLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly globalNavHighlightCollection: Maybe<GlobalNavHighlightCollectionType>;\n};\n\n\nexport type CallToActionLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type CallToActionLinkingCollectionsGlobalNavHighlightCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CallToActionLinkingCollectionsGlobalNavHighlightCollectionOrderType>>>;\n};\n\nexport type GlobalNavHighlightCollectionType = {\n  readonly __typename?: 'GlobalNavHighlightCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavHighlightType>>;\n};\n\nexport enum CallToActionLinkingCollectionsGlobalNavHighlightCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  CardTitleV2AscType = 'cardTitleV2_ASC',\n  CardTitleV2DescType = 'cardTitleV2_DESC',\n  CardBodyV2AscType = 'cardBodyV2_ASC',\n  CardBodyV2DescType = 'cardBodyV2_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CallToActionPresentationType = ButtonType;\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonType = EntryType & _NodeType & {\n  readonly __typename?: 'Button';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<ButtonLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly title: Maybe<ButtonTitleType>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly size: Maybe<Scalars['String']>;\n  readonly theme: Maybe<Scalars['String']>;\n  readonly buttonType: Maybe<Scalars['String']>;\n  readonly image: Maybe<ImageType>;\n  readonly iconName: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonUrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonSizeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonThemeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonButtonTypeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonImageArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<ImageFilterType>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/button) */\nexport type ButtonIconNameArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type ButtonLinkingCollectionsType = {\n  readonly __typename?: 'ButtonLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly callToActionCollection: Maybe<CallToActionCollectionType>;\n};\n\n\nexport type ButtonLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type ButtonLinkingCollectionsCallToActionCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<ButtonLinkingCollectionsCallToActionCollectionOrderType>>>;\n};\n\nexport type CallToActionCollectionType = {\n  readonly __typename?: 'CallToActionCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<CallToActionType>>;\n};\n\nexport enum ButtonLinkingCollectionsCallToActionCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type ButtonTitleType = {\n  readonly __typename?: 'ButtonTitle';\n  readonly json: Scalars['JSON'];\n  readonly links: ButtonTitleLinksType;\n};\n\nexport type ButtonTitleLinksType = {\n  readonly __typename?: 'ButtonTitleLinks';\n  readonly entries: ButtonTitleEntriesType;\n  readonly assets: ButtonTitleAssetsType;\n  readonly resources: ButtonTitleResourcesType;\n};\n\nexport type ButtonTitleEntriesType = {\n  readonly __typename?: 'ButtonTitleEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type ButtonTitleAssetsType = {\n  readonly __typename?: 'ButtonTitleAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type ButtonTitleResourcesType = {\n  readonly __typename?: 'ButtonTitleResources';\n  readonly block: ReadonlyArray<ButtonTitleResourcesBlockType>;\n  readonly inline: ReadonlyArray<ButtonTitleResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<ButtonTitleResourcesHyperlinkType>;\n};\n\nexport type ButtonTitleResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'ButtonTitleResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type ResourceLinkType = {\n  readonly sys: ResourceSysType;\n};\n\nexport type ResourceSysType = {\n  readonly __typename?: 'ResourceSys';\n  readonly urn: Scalars['String'];\n  readonly linkType: Scalars['String'];\n};\n\nexport type ButtonTitleResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'ButtonTitleResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type ButtonTitleResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'ButtonTitleResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type ImageFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly media_exists: InputMaybe<Scalars['Boolean']>;\n  readonly wrap_exists: InputMaybe<Scalars['Boolean']>;\n  readonly wrap: InputMaybe<Scalars['String']>;\n  readonly wrap_not: InputMaybe<Scalars['String']>;\n  readonly wrap_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_contains: InputMaybe<Scalars['String']>;\n  readonly wrap_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<ImageFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<ImageFilterType>>>;\n};\n\nexport type CallToActionFilterType = {\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly presentation_exists: InputMaybe<Scalars['Boolean']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CallToActionFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CallToActionFilterType>>>;\n};\n\nexport type CfAnalyticsNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly label_exists: InputMaybe<Scalars['Boolean']>;\n  readonly label: InputMaybe<Scalars['String']>;\n  readonly label_not: InputMaybe<Scalars['String']>;\n  readonly label_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly label_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly label_contains: InputMaybe<Scalars['String']>;\n  readonly label_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfAnalyticsNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfAnalyticsNestedFilterType>>>;\n};\n\nexport type GlobalNavHighlightCardContentType = {\n  readonly __typename?: 'GlobalNavHighlightCardContent';\n  readonly json: Scalars['JSON'];\n  readonly links: GlobalNavHighlightCardContentLinksType;\n};\n\nexport type GlobalNavHighlightCardContentLinksType = {\n  readonly __typename?: 'GlobalNavHighlightCardContentLinks';\n  readonly entries: GlobalNavHighlightCardContentEntriesType;\n  readonly assets: GlobalNavHighlightCardContentAssetsType;\n  readonly resources: GlobalNavHighlightCardContentResourcesType;\n};\n\nexport type GlobalNavHighlightCardContentEntriesType = {\n  readonly __typename?: 'GlobalNavHighlightCardContentEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type GlobalNavHighlightCardContentAssetsType = {\n  readonly __typename?: 'GlobalNavHighlightCardContentAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type GlobalNavHighlightCardContentResourcesType = {\n  readonly __typename?: 'GlobalNavHighlightCardContentResources';\n  readonly block: ReadonlyArray<GlobalNavHighlightCardContentResourcesBlockType>;\n  readonly inline: ReadonlyArray<GlobalNavHighlightCardContentResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<GlobalNavHighlightCardContentResourcesHyperlinkType>;\n};\n\nexport type GlobalNavHighlightCardContentResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardContentResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardContentResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardContentResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardContentResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardContentResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardTitleType = {\n  readonly __typename?: 'GlobalNavHighlightCardTitle';\n  readonly json: Scalars['JSON'];\n  readonly links: GlobalNavHighlightCardTitleLinksType;\n};\n\nexport type GlobalNavHighlightCardTitleLinksType = {\n  readonly __typename?: 'GlobalNavHighlightCardTitleLinks';\n  readonly entries: GlobalNavHighlightCardTitleEntriesType;\n  readonly assets: GlobalNavHighlightCardTitleAssetsType;\n  readonly resources: GlobalNavHighlightCardTitleResourcesType;\n};\n\nexport type GlobalNavHighlightCardTitleEntriesType = {\n  readonly __typename?: 'GlobalNavHighlightCardTitleEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type GlobalNavHighlightCardTitleAssetsType = {\n  readonly __typename?: 'GlobalNavHighlightCardTitleAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type GlobalNavHighlightCardTitleResourcesType = {\n  readonly __typename?: 'GlobalNavHighlightCardTitleResources';\n  readonly block: ReadonlyArray<GlobalNavHighlightCardTitleResourcesBlockType>;\n  readonly inline: ReadonlyArray<GlobalNavHighlightCardTitleResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<GlobalNavHighlightCardTitleResourcesHyperlinkType>;\n};\n\nexport type GlobalNavHighlightCardTitleResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardTitleResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardTitleResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardTitleResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardTitleResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardTitleResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardBodyType = {\n  readonly __typename?: 'GlobalNavHighlightCardBody';\n  readonly json: Scalars['JSON'];\n  readonly links: GlobalNavHighlightCardBodyLinksType;\n};\n\nexport type GlobalNavHighlightCardBodyLinksType = {\n  readonly __typename?: 'GlobalNavHighlightCardBodyLinks';\n  readonly entries: GlobalNavHighlightCardBodyEntriesType;\n  readonly assets: GlobalNavHighlightCardBodyAssetsType;\n  readonly resources: GlobalNavHighlightCardBodyResourcesType;\n};\n\nexport type GlobalNavHighlightCardBodyEntriesType = {\n  readonly __typename?: 'GlobalNavHighlightCardBodyEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type GlobalNavHighlightCardBodyAssetsType = {\n  readonly __typename?: 'GlobalNavHighlightCardBodyAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type GlobalNavHighlightCardBodyResourcesType = {\n  readonly __typename?: 'GlobalNavHighlightCardBodyResources';\n  readonly block: ReadonlyArray<GlobalNavHighlightCardBodyResourcesBlockType>;\n  readonly inline: ReadonlyArray<GlobalNavHighlightCardBodyResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<GlobalNavHighlightCardBodyResourcesHyperlinkType>;\n};\n\nexport type GlobalNavHighlightCardBodyResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardBodyResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardBodyResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardBodyResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightCardBodyResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'GlobalNavHighlightCardBodyResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type GlobalNavHighlightFilterType = {\n  readonly cta: InputMaybe<CfCallToActionNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly cta_exists: InputMaybe<Scalars['Boolean']>;\n  readonly background_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitleV2_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitleV2: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_not: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardTitleV2_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardTitleV2_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitleV2_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardBodyV2: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_not: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardBodyV2_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cardBodyV2_contains: InputMaybe<Scalars['String']>;\n  readonly cardBodyV2_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardContent_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardContent_contains: InputMaybe<Scalars['String']>;\n  readonly cardContent_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardTitle_contains: InputMaybe<Scalars['String']>;\n  readonly cardTitle_not_contains: InputMaybe<Scalars['String']>;\n  readonly cardBody_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cardBody_contains: InputMaybe<Scalars['String']>;\n  readonly cardBody_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavHighlightFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavHighlightFilterType>>>;\n};\n\nexport type CfCallToActionNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly presentation_exists: InputMaybe<Scalars['Boolean']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfCallToActionNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfCallToActionNestedFilterType>>>;\n};\n\nexport type GlobalNavItemsCollectionType = {\n  readonly __typename?: 'GlobalNavItemsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<GlobalNavItemType>>;\n};\n\nexport type GlobalNavItemFilterType = {\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavItemFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavItemFilterType>>>;\n};\n\nexport enum GlobalNavItemsCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum GlobalNavItemLinkingCollectionsGlobalNavCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  PrimaryHostnameRegexAscType = 'primaryHostnameRegex_ASC',\n  PrimaryHostnameRegexDescType = 'primaryHostnameRegex_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum AnalyticsLinkingCollectionsGlobalNavItemCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum AnalyticsLinkingCollectionsCallToActionCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterItemCollectionType = {\n  readonly __typename?: 'FooterItemCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterItemType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemType = EntryType & _NodeType & {\n  readonly __typename?: 'FooterItem';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterItemLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly url: Maybe<Scalars['String']>;\n  readonly analytics: Maybe<AnalyticsType>;\n  readonly footerItemsCollection: Maybe<FooterItemFooterItemsCollectionType>;\n  readonly globalOnly: Maybe<Scalars['Boolean']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemUrlArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemAnalyticsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<AnalyticsFilterType>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemFooterItemsCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemFooterItemsCollectionOrderType>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerItem) */\nexport type FooterItemGlobalOnlyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterItemLinkingCollectionsType = {\n  readonly __typename?: 'FooterItemLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerCollection: Maybe<FooterCollectionType>;\n  readonly footerItemCollection: Maybe<FooterItemCollectionType>;\n};\n\n\nexport type FooterItemLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type FooterItemLinkingCollectionsFooterCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemLinkingCollectionsFooterCollectionOrderType>>>;\n};\n\n\nexport type FooterItemLinkingCollectionsFooterItemCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterItemLinkingCollectionsFooterItemCollectionOrderType>>>;\n};\n\nexport type FooterCollectionType = {\n  readonly __typename?: 'FooterCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterType = EntryType & _NodeType & {\n  readonly __typename?: 'Footer';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly footerColumnCollection: Maybe<FooterFooterColumnCollectionType>;\n  readonly footerBarCollection: Maybe<FooterFooterBarCollectionType>;\n  readonly globalOnly: Maybe<Scalars['Boolean']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterFooterColumnCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterFooterColumnCollectionOrderType>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterFooterBarCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<FooterItemFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterFooterBarCollectionOrderType>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footer) */\nexport type FooterGlobalOnlyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterLinkingCollectionsType = {\n  readonly __typename?: 'FooterLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type FooterLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterFooterColumnCollectionType = {\n  readonly __typename?: 'FooterFooterColumnCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterItemType>>;\n};\n\nexport type FooterItemFilterType = {\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly footerItems: InputMaybe<CfFooterItemNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly footerItemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_not: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterItemFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterItemFilterType>>>;\n};\n\nexport type CfFooterItemNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly footerItemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_not: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfFooterItemNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfFooterItemNestedFilterType>>>;\n};\n\nexport enum FooterFooterColumnCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterFooterBarCollectionType = {\n  readonly __typename?: 'FooterFooterBarCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterItemType>>;\n};\n\nexport enum FooterFooterBarCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum FooterItemLinkingCollectionsFooterCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum FooterItemLinkingCollectionsFooterItemCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterItemFooterItemsCollectionType = {\n  readonly __typename?: 'FooterItemFooterItemsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterItemType>>;\n};\n\nexport enum FooterItemFooterItemsCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum AnalyticsLinkingCollectionsFooterItemCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** Footer Locale Dropdown model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerLocaleDropdown) */\nexport type FooterLocaleDropdownType = EntryType & _NodeType & {\n  readonly __typename?: 'FooterLocaleDropdown';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<FooterLocaleDropdownLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly title: Maybe<Scalars['String']>;\n  readonly hideOnDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n};\n\n\n/** Footer Locale Dropdown model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerLocaleDropdown) */\nexport type FooterLocaleDropdownLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Footer Locale Dropdown model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerLocaleDropdown) */\nexport type FooterLocaleDropdownContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer Locale Dropdown model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerLocaleDropdown) */\nexport type FooterLocaleDropdownTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Footer Locale Dropdown model [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/footerLocaleDropdown) */\nexport type FooterLocaleDropdownHideOnDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type FooterLocaleDropdownLinkingCollectionsType = {\n  readonly __typename?: 'FooterLocaleDropdownLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly footerGroupCollection: Maybe<FooterGroupCollectionType>;\n};\n\n\nexport type FooterLocaleDropdownLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type FooterLocaleDropdownLinkingCollectionsFooterGroupCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<FooterLocaleDropdownLinkingCollectionsFooterGroupCollectionOrderType>>>;\n};\n\nexport enum FooterLocaleDropdownLinkingCollectionsFooterGroupCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterGroupItemsFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupItemsFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupItemsFilterType>>>;\n};\n\nexport type FooterGroupFilterType = {\n  readonly items: InputMaybe<CfitemsMultiTypeNestedFilterType>;\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_exists: InputMaybe<Scalars['Boolean']>;\n  readonly groupKey: InputMaybe<Scalars['String']>;\n  readonly groupKey_not: InputMaybe<Scalars['String']>;\n  readonly groupKey_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_not_contains: InputMaybe<Scalars['String']>;\n  readonly itemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterGroupFilterType>>>;\n};\n\nexport type CfitemsMultiTypeNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfitemsMultiTypeNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfitemsMultiTypeNestedFilterType>>>;\n};\n\nexport enum FooterV3ColumnsCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterV3BarCollectionType = {\n  readonly __typename?: 'FooterV3BarCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterGroupType>>;\n};\n\nexport enum FooterV3BarCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum ImageLinkingCollectionsFooterV3CollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type ButtonCollectionType = {\n  readonly __typename?: 'ButtonCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<ButtonType>>;\n};\n\nexport enum ImageLinkingCollectionsButtonCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SizeAscType = 'size_ASC',\n  SizeDescType = 'size_DESC',\n  ThemeAscType = 'theme_ASC',\n  ThemeDescType = 'theme_DESC',\n  ButtonTypeAscType = 'buttonType_ASC',\n  ButtonTypeDescType = 'buttonType_DESC',\n  IconNameAscType = 'iconName_ASC',\n  IconNameDescType = 'iconName_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CookieBannerCollectionType = {\n  readonly __typename?: 'CookieBannerCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<CookieBannerType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerType = EntryType & _NodeType & {\n  readonly __typename?: 'CookieBanner';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<CookieBannerLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly leftMedia: Maybe<AssetType>;\n  readonly rightMedia: Maybe<AssetType>;\n  readonly body: Maybe<CookieBannerBodyType>;\n  readonly acceptCookiesButton: Maybe<Scalars['String']>;\n  readonly cookieSettingsButtonText: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerLeftMediaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerRightMediaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerBodyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerAcceptCookiesButtonArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieBanner) */\nexport type CookieBannerCookieSettingsButtonTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type CookieBannerLinkingCollectionsType = {\n  readonly __typename?: 'CookieBannerLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type CookieBannerLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type CookieBannerBodyType = {\n  readonly __typename?: 'CookieBannerBody';\n  readonly json: Scalars['JSON'];\n  readonly links: CookieBannerBodyLinksType;\n};\n\nexport type CookieBannerBodyLinksType = {\n  readonly __typename?: 'CookieBannerBodyLinks';\n  readonly entries: CookieBannerBodyEntriesType;\n  readonly assets: CookieBannerBodyAssetsType;\n  readonly resources: CookieBannerBodyResourcesType;\n};\n\nexport type CookieBannerBodyEntriesType = {\n  readonly __typename?: 'CookieBannerBodyEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type CookieBannerBodyAssetsType = {\n  readonly __typename?: 'CookieBannerBodyAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type CookieBannerBodyResourcesType = {\n  readonly __typename?: 'CookieBannerBodyResources';\n  readonly block: ReadonlyArray<CookieBannerBodyResourcesBlockType>;\n  readonly inline: ReadonlyArray<CookieBannerBodyResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<CookieBannerBodyResourcesHyperlinkType>;\n};\n\nexport type CookieBannerBodyResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'CookieBannerBodyResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieBannerBodyResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'CookieBannerBodyResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieBannerBodyResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'CookieBannerBodyResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type VideoCollectionType = {\n  readonly __typename?: 'VideoCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<VideoType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoType = EntryType & _NodeType & {\n  readonly __typename?: 'Video';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<VideoLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly media: Maybe<AssetType>;\n  readonly thumbnailMedia: Maybe<AssetType>;\n  readonly autoPlay: Maybe<Scalars['Boolean']>;\n  readonly wrap: Maybe<Scalars['String']>;\n  readonly captions: Maybe<AssetType>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoMediaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoThumbnailMediaArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoAutoPlayArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoWrapArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/video) */\nexport type VideoCaptionsArgsType = {\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type VideoLinkingCollectionsType = {\n  readonly __typename?: 'VideoLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type VideoLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type AssetCollectionType = {\n  readonly __typename?: 'AssetCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type AssetFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly description_exists: InputMaybe<Scalars['Boolean']>;\n  readonly description: InputMaybe<Scalars['String']>;\n  readonly description_not: InputMaybe<Scalars['String']>;\n  readonly description_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly description_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly description_contains: InputMaybe<Scalars['String']>;\n  readonly description_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly size_exists: InputMaybe<Scalars['Boolean']>;\n  readonly size: InputMaybe<Scalars['Int']>;\n  readonly size_not: InputMaybe<Scalars['Int']>;\n  readonly size_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly size_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly size_gt: InputMaybe<Scalars['Int']>;\n  readonly size_gte: InputMaybe<Scalars['Int']>;\n  readonly size_lt: InputMaybe<Scalars['Int']>;\n  readonly size_lte: InputMaybe<Scalars['Int']>;\n  readonly contentType_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentType: InputMaybe<Scalars['String']>;\n  readonly contentType_not: InputMaybe<Scalars['String']>;\n  readonly contentType_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentType_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentType_contains: InputMaybe<Scalars['String']>;\n  readonly contentType_not_contains: InputMaybe<Scalars['String']>;\n  readonly fileName_exists: InputMaybe<Scalars['Boolean']>;\n  readonly fileName: InputMaybe<Scalars['String']>;\n  readonly fileName_not: InputMaybe<Scalars['String']>;\n  readonly fileName_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly fileName_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly fileName_contains: InputMaybe<Scalars['String']>;\n  readonly fileName_not_contains: InputMaybe<Scalars['String']>;\n  readonly width_exists: InputMaybe<Scalars['Boolean']>;\n  readonly width: InputMaybe<Scalars['Int']>;\n  readonly width_not: InputMaybe<Scalars['Int']>;\n  readonly width_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly width_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly width_gt: InputMaybe<Scalars['Int']>;\n  readonly width_gte: InputMaybe<Scalars['Int']>;\n  readonly width_lt: InputMaybe<Scalars['Int']>;\n  readonly width_lte: InputMaybe<Scalars['Int']>;\n  readonly height_exists: InputMaybe<Scalars['Boolean']>;\n  readonly height: InputMaybe<Scalars['Int']>;\n  readonly height_not: InputMaybe<Scalars['Int']>;\n  readonly height_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly height_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['Int']>>>;\n  readonly height_gt: InputMaybe<Scalars['Int']>;\n  readonly height_gte: InputMaybe<Scalars['Int']>;\n  readonly height_lt: InputMaybe<Scalars['Int']>;\n  readonly height_lte: InputMaybe<Scalars['Int']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<AssetFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<AssetFilterType>>>;\n};\n\nexport enum AssetOrderType {\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SizeAscType = 'size_ASC',\n  SizeDescType = 'size_DESC',\n  ContentTypeAscType = 'contentType_ASC',\n  ContentTypeDescType = 'contentType_DESC',\n  FileNameAscType = 'fileName_ASC',\n  FileNameDescType = 'fileName_DESC',\n  WidthAscType = 'width_ASC',\n  WidthDescType = 'width_DESC',\n  HeightAscType = 'height_ASC',\n  HeightDescType = 'height_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type GlobalNavConfigFilterType = {\n  readonly globalNavGroups: InputMaybe<CfGlobalNavNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly globalNavGroupsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalNavLabel_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalNavLabel: InputMaybe<Scalars['String']>;\n  readonly globalNavLabel_not: InputMaybe<Scalars['String']>;\n  readonly globalNavLabel_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly globalNavLabel_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly globalNavLabel_contains: InputMaybe<Scalars['String']>;\n  readonly globalNavLabel_not_contains: InputMaybe<Scalars['String']>;\n  readonly globalNavButtonAriaLabel_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalNavButtonAriaLabel: InputMaybe<Scalars['String']>;\n  readonly globalNavButtonAriaLabel_not: InputMaybe<Scalars['String']>;\n  readonly globalNavButtonAriaLabel_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly globalNavButtonAriaLabel_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly globalNavButtonAriaLabel_contains: InputMaybe<Scalars['String']>;\n  readonly globalNavButtonAriaLabel_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavConfigFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<GlobalNavConfigFilterType>>>;\n};\n\nexport type CfGlobalNavNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_exists: InputMaybe<Scalars['Boolean']>;\n  readonly groupKey: InputMaybe<Scalars['String']>;\n  readonly groupKey_not: InputMaybe<Scalars['String']>;\n  readonly groupKey_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_not_contains: InputMaybe<Scalars['String']>;\n  readonly highlight_exists: InputMaybe<Scalars['Boolean']>;\n  readonly itemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly primaryHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly primaryHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly primaryHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly primaryHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly primaryHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideHostnameRegex: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideHostnameRegex_contains: InputMaybe<Scalars['String']>;\n  readonly hideHostnameRegex_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfGlobalNavNestedFilterType>>>;\n};\n\nexport enum GlobalNavConfigOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GlobalNavLabelAscType = 'globalNavLabel_ASC',\n  GlobalNavLabelDescType = 'globalNavLabel_DESC',\n  GlobalNavButtonAriaLabelAscType = 'globalNavButtonAriaLabel_ASC',\n  GlobalNavButtonAriaLabelDescType = 'globalNavButtonAriaLabel_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalType = EntryType & _NodeType & {\n  readonly __typename?: 'CookieModal';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<CookieModalLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly contentfulDescription: Maybe<Scalars['String']>;\n  readonly landingScreenTitle: Maybe<Scalars['String']>;\n  readonly content: Maybe<CookieModalContentType>;\n  readonly acceptAllButtonText: Maybe<Scalars['String']>;\n  readonly essentialOnlyButtonText: Maybe<Scalars['String']>;\n  readonly settingsButtonText: Maybe<Scalars['String']>;\n  readonly settingsScreenTitle: Maybe<Scalars['String']>;\n  readonly acceptSelectedButtonText: Maybe<Scalars['String']>;\n  readonly saveChangesText: Maybe<Scalars['String']>;\n  readonly changesSavedText: Maybe<Scalars['String']>;\n  readonly toggleEnabledText: Maybe<Scalars['String']>;\n  readonly toggleDisabledText: Maybe<Scalars['String']>;\n  readonly cookieCategoriesCollection: Maybe<CookieModalCookieCategoriesCollectionType>;\n  readonly gpcLocations: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n  readonly enableCookieDeletion: Maybe<Scalars['Boolean']>;\n  readonly logCookieDeletion: Maybe<Scalars['Boolean']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalContentfulDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalLandingScreenTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalContentArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalAcceptAllButtonTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalEssentialOnlyButtonTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalSettingsButtonTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalSettingsScreenTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalAcceptSelectedButtonTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalSaveChangesTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalChangesSavedTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalToggleEnabledTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalToggleDisabledTextArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalCookieCategoriesCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<CookieCategoryFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieModalCookieCategoriesCollectionOrderType>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalGpcLocationsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalEnableCookieDeletionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieModal) */\nexport type CookieModalLogCookieDeletionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type CookieModalLinkingCollectionsType = {\n  readonly __typename?: 'CookieModalLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type CookieModalLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type CookieModalContentType = {\n  readonly __typename?: 'CookieModalContent';\n  readonly json: Scalars['JSON'];\n  readonly links: CookieModalContentLinksType;\n};\n\nexport type CookieModalContentLinksType = {\n  readonly __typename?: 'CookieModalContentLinks';\n  readonly entries: CookieModalContentEntriesType;\n  readonly assets: CookieModalContentAssetsType;\n  readonly resources: CookieModalContentResourcesType;\n};\n\nexport type CookieModalContentEntriesType = {\n  readonly __typename?: 'CookieModalContentEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type CookieModalContentAssetsType = {\n  readonly __typename?: 'CookieModalContentAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type CookieModalContentResourcesType = {\n  readonly __typename?: 'CookieModalContentResources';\n  readonly block: ReadonlyArray<CookieModalContentResourcesBlockType>;\n  readonly inline: ReadonlyArray<CookieModalContentResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<CookieModalContentResourcesHyperlinkType>;\n};\n\nexport type CookieModalContentResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'CookieModalContentResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieModalContentResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'CookieModalContentResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieModalContentResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'CookieModalContentResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieModalCookieCategoriesCollectionType = {\n  readonly __typename?: 'CookieModalCookieCategoriesCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<CookieCategoryType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryType = EntryType & _NodeType & {\n  readonly __typename?: 'CookieCategory';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<CookieCategoryLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly description: Maybe<CookieCategoryDescriptionType>;\n  readonly categoryCookieName: Maybe<Scalars['String']>;\n  readonly displayMode: Maybe<Scalars['String']>;\n  readonly isEssential: Maybe<Scalars['Boolean']>;\n  readonly enableToggle: Maybe<Scalars['Boolean']>;\n  readonly cookiesCollection: Maybe<CookieCategoryCookiesCollectionType>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryDescriptionArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryCategoryCookieNameArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryDisplayModeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryIsEssentialArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryEnableToggleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/cookieCategory) */\nexport type CookieCategoryCookiesCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  where: InputMaybe<TrackingCookieFilterType>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieCategoryCookiesCollectionOrderType>>>;\n};\n\nexport type CookieCategoryLinkingCollectionsType = {\n  readonly __typename?: 'CookieCategoryLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly cookieModalCollection: Maybe<CookieModalCollectionType>;\n};\n\n\nexport type CookieCategoryLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type CookieCategoryLinkingCollectionsCookieModalCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<CookieCategoryLinkingCollectionsCookieModalCollectionOrderType>>>;\n};\n\nexport type CookieModalCollectionType = {\n  readonly __typename?: 'CookieModalCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<CookieModalType>>;\n};\n\nexport enum CookieCategoryLinkingCollectionsCookieModalCollectionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  LandingScreenTitleAscType = 'landingScreenTitle_ASC',\n  LandingScreenTitleDescType = 'landingScreenTitle_DESC',\n  AcceptAllButtonTextAscType = 'acceptAllButtonText_ASC',\n  AcceptAllButtonTextDescType = 'acceptAllButtonText_DESC',\n  EssentialOnlyButtonTextAscType = 'essentialOnlyButtonText_ASC',\n  EssentialOnlyButtonTextDescType = 'essentialOnlyButtonText_DESC',\n  SettingsButtonTextAscType = 'settingsButtonText_ASC',\n  SettingsButtonTextDescType = 'settingsButtonText_DESC',\n  SettingsScreenTitleAscType = 'settingsScreenTitle_ASC',\n  SettingsScreenTitleDescType = 'settingsScreenTitle_DESC',\n  AcceptSelectedButtonTextAscType = 'acceptSelectedButtonText_ASC',\n  AcceptSelectedButtonTextDescType = 'acceptSelectedButtonText_DESC',\n  SaveChangesTextAscType = 'saveChangesText_ASC',\n  SaveChangesTextDescType = 'saveChangesText_DESC',\n  ChangesSavedTextAscType = 'changesSavedText_ASC',\n  ChangesSavedTextDescType = 'changesSavedText_DESC',\n  ToggleEnabledTextAscType = 'toggleEnabledText_ASC',\n  ToggleEnabledTextDescType = 'toggleEnabledText_DESC',\n  ToggleDisabledTextAscType = 'toggleDisabledText_ASC',\n  ToggleDisabledTextDescType = 'toggleDisabledText_DESC',\n  EnableCookieDeletionAscType = 'enableCookieDeletion_ASC',\n  EnableCookieDeletionDescType = 'enableCookieDeletion_DESC',\n  LogCookieDeletionAscType = 'logCookieDeletion_ASC',\n  LogCookieDeletionDescType = 'logCookieDeletion_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CookieCategoryDescriptionType = {\n  readonly __typename?: 'CookieCategoryDescription';\n  readonly json: Scalars['JSON'];\n  readonly links: CookieCategoryDescriptionLinksType;\n};\n\nexport type CookieCategoryDescriptionLinksType = {\n  readonly __typename?: 'CookieCategoryDescriptionLinks';\n  readonly entries: CookieCategoryDescriptionEntriesType;\n  readonly assets: CookieCategoryDescriptionAssetsType;\n  readonly resources: CookieCategoryDescriptionResourcesType;\n};\n\nexport type CookieCategoryDescriptionEntriesType = {\n  readonly __typename?: 'CookieCategoryDescriptionEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type CookieCategoryDescriptionAssetsType = {\n  readonly __typename?: 'CookieCategoryDescriptionAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type CookieCategoryDescriptionResourcesType = {\n  readonly __typename?: 'CookieCategoryDescriptionResources';\n  readonly block: ReadonlyArray<CookieCategoryDescriptionResourcesBlockType>;\n  readonly inline: ReadonlyArray<CookieCategoryDescriptionResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<CookieCategoryDescriptionResourcesHyperlinkType>;\n};\n\nexport type CookieCategoryDescriptionResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'CookieCategoryDescriptionResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieCategoryDescriptionResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'CookieCategoryDescriptionResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieCategoryDescriptionResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'CookieCategoryDescriptionResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type CookieCategoryCookiesCollectionType = {\n  readonly __typename?: 'CookieCategoryCookiesCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<TrackingCookieType>>;\n};\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieType = EntryType & _NodeType & {\n  readonly __typename?: 'TrackingCookie';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<TrackingCookieLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly name: Maybe<Scalars['String']>;\n  readonly provider: Maybe<TrackingCookieProviderType>;\n  readonly domains: Maybe<TrackingCookieDomainsType>;\n  readonly purpose: Maybe<TrackingCookiePurposeType>;\n  readonly expiration: Maybe<TrackingCookieExpirationType>;\n  readonly pattern: Maybe<Scalars['String']>;\n  readonly subDomains: Maybe<ReadonlyArray<Maybe<Scalars['String']>>>;\n  readonly path: Maybe<Scalars['String']>;\n  readonly secure: Maybe<Scalars['Boolean']>;\n  readonly sameSite: Maybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieNameArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieProviderArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookiePurposeArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieExpirationArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookiePatternArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieSubDomainsArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookiePathArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieSecureArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/trackingCookie) */\nexport type TrackingCookieSameSiteArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type TrackingCookieLinkingCollectionsType = {\n  readonly __typename?: 'TrackingCookieLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n  readonly cookieCategoryCollection: Maybe<CookieCategoryCollectionType>;\n};\n\n\nexport type TrackingCookieLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\nexport type TrackingCookieLinkingCollectionsCookieCategoryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n  order: InputMaybe<ReadonlyArray<InputMaybe<TrackingCookieLinkingCollectionsCookieCategoryCollectionOrderType>>>;\n};\n\nexport type CookieCategoryCollectionType = {\n  readonly __typename?: 'CookieCategoryCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<CookieCategoryType>>;\n};\n\nexport enum TrackingCookieLinkingCollectionsCookieCategoryCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  CategoryCookieNameAscType = 'categoryCookieName_ASC',\n  CategoryCookieNameDescType = 'categoryCookieName_DESC',\n  DisplayModeAscType = 'displayMode_ASC',\n  DisplayModeDescType = 'displayMode_DESC',\n  IsEssentialAscType = 'isEssential_ASC',\n  IsEssentialDescType = 'isEssential_DESC',\n  EnableToggleAscType = 'enableToggle_ASC',\n  EnableToggleDescType = 'enableToggle_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type TrackingCookieProviderType = {\n  readonly __typename?: 'TrackingCookieProvider';\n  readonly json: Scalars['JSON'];\n  readonly links: TrackingCookieProviderLinksType;\n};\n\nexport type TrackingCookieProviderLinksType = {\n  readonly __typename?: 'TrackingCookieProviderLinks';\n  readonly entries: TrackingCookieProviderEntriesType;\n  readonly assets: TrackingCookieProviderAssetsType;\n  readonly resources: TrackingCookieProviderResourcesType;\n};\n\nexport type TrackingCookieProviderEntriesType = {\n  readonly __typename?: 'TrackingCookieProviderEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type TrackingCookieProviderAssetsType = {\n  readonly __typename?: 'TrackingCookieProviderAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type TrackingCookieProviderResourcesType = {\n  readonly __typename?: 'TrackingCookieProviderResources';\n  readonly block: ReadonlyArray<TrackingCookieProviderResourcesBlockType>;\n  readonly inline: ReadonlyArray<TrackingCookieProviderResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<TrackingCookieProviderResourcesHyperlinkType>;\n};\n\nexport type TrackingCookieProviderResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieProviderResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieProviderResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieProviderResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieProviderResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieProviderResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieDomainsType = {\n  readonly __typename?: 'TrackingCookieDomains';\n  readonly json: Scalars['JSON'];\n  readonly links: TrackingCookieDomainsLinksType;\n};\n\nexport type TrackingCookieDomainsLinksType = {\n  readonly __typename?: 'TrackingCookieDomainsLinks';\n  readonly entries: TrackingCookieDomainsEntriesType;\n  readonly assets: TrackingCookieDomainsAssetsType;\n  readonly resources: TrackingCookieDomainsResourcesType;\n};\n\nexport type TrackingCookieDomainsEntriesType = {\n  readonly __typename?: 'TrackingCookieDomainsEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type TrackingCookieDomainsAssetsType = {\n  readonly __typename?: 'TrackingCookieDomainsAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type TrackingCookieDomainsResourcesType = {\n  readonly __typename?: 'TrackingCookieDomainsResources';\n  readonly block: ReadonlyArray<TrackingCookieDomainsResourcesBlockType>;\n  readonly inline: ReadonlyArray<TrackingCookieDomainsResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<TrackingCookieDomainsResourcesHyperlinkType>;\n};\n\nexport type TrackingCookieDomainsResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieDomainsResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieDomainsResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieDomainsResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieDomainsResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieDomainsResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookiePurposeType = {\n  readonly __typename?: 'TrackingCookiePurpose';\n  readonly json: Scalars['JSON'];\n  readonly links: TrackingCookiePurposeLinksType;\n};\n\nexport type TrackingCookiePurposeLinksType = {\n  readonly __typename?: 'TrackingCookiePurposeLinks';\n  readonly entries: TrackingCookiePurposeEntriesType;\n  readonly assets: TrackingCookiePurposeAssetsType;\n  readonly resources: TrackingCookiePurposeResourcesType;\n};\n\nexport type TrackingCookiePurposeEntriesType = {\n  readonly __typename?: 'TrackingCookiePurposeEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type TrackingCookiePurposeAssetsType = {\n  readonly __typename?: 'TrackingCookiePurposeAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type TrackingCookiePurposeResourcesType = {\n  readonly __typename?: 'TrackingCookiePurposeResources';\n  readonly block: ReadonlyArray<TrackingCookiePurposeResourcesBlockType>;\n  readonly inline: ReadonlyArray<TrackingCookiePurposeResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<TrackingCookiePurposeResourcesHyperlinkType>;\n};\n\nexport type TrackingCookiePurposeResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookiePurposeResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookiePurposeResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookiePurposeResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookiePurposeResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookiePurposeResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieExpirationType = {\n  readonly __typename?: 'TrackingCookieExpiration';\n  readonly json: Scalars['JSON'];\n  readonly links: TrackingCookieExpirationLinksType;\n};\n\nexport type TrackingCookieExpirationLinksType = {\n  readonly __typename?: 'TrackingCookieExpirationLinks';\n  readonly entries: TrackingCookieExpirationEntriesType;\n  readonly assets: TrackingCookieExpirationAssetsType;\n  readonly resources: TrackingCookieExpirationResourcesType;\n};\n\nexport type TrackingCookieExpirationEntriesType = {\n  readonly __typename?: 'TrackingCookieExpirationEntries';\n  readonly inline: ReadonlyArray<Maybe<EntryType>>;\n  readonly hyperlink: ReadonlyArray<Maybe<EntryType>>;\n  readonly block: ReadonlyArray<Maybe<EntryType>>;\n};\n\nexport type TrackingCookieExpirationAssetsType = {\n  readonly __typename?: 'TrackingCookieExpirationAssets';\n  readonly hyperlink: ReadonlyArray<Maybe<AssetType>>;\n  readonly block: ReadonlyArray<Maybe<AssetType>>;\n};\n\nexport type TrackingCookieExpirationResourcesType = {\n  readonly __typename?: 'TrackingCookieExpirationResources';\n  readonly block: ReadonlyArray<TrackingCookieExpirationResourcesBlockType>;\n  readonly inline: ReadonlyArray<TrackingCookieExpirationResourcesInlineType>;\n  readonly hyperlink: ReadonlyArray<TrackingCookieExpirationResourcesHyperlinkType>;\n};\n\nexport type TrackingCookieExpirationResourcesBlockType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieExpirationResourcesBlock';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieExpirationResourcesInlineType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieExpirationResourcesInline';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieExpirationResourcesHyperlinkType = ResourceLinkType & {\n  readonly __typename?: 'TrackingCookieExpirationResourcesHyperlink';\n  readonly sys: ResourceSysType;\n};\n\nexport type TrackingCookieFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly name_exists: InputMaybe<Scalars['Boolean']>;\n  readonly name: InputMaybe<Scalars['String']>;\n  readonly name_not: InputMaybe<Scalars['String']>;\n  readonly name_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly name_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly name_contains: InputMaybe<Scalars['String']>;\n  readonly name_not_contains: InputMaybe<Scalars['String']>;\n  readonly provider_exists: InputMaybe<Scalars['Boolean']>;\n  readonly provider_contains: InputMaybe<Scalars['String']>;\n  readonly provider_not_contains: InputMaybe<Scalars['String']>;\n  readonly domains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly domains_contains: InputMaybe<Scalars['String']>;\n  readonly domains_not_contains: InputMaybe<Scalars['String']>;\n  readonly purpose_exists: InputMaybe<Scalars['Boolean']>;\n  readonly purpose_contains: InputMaybe<Scalars['String']>;\n  readonly purpose_not_contains: InputMaybe<Scalars['String']>;\n  readonly expiration_exists: InputMaybe<Scalars['Boolean']>;\n  readonly expiration_contains: InputMaybe<Scalars['String']>;\n  readonly expiration_not_contains: InputMaybe<Scalars['String']>;\n  readonly pattern_exists: InputMaybe<Scalars['Boolean']>;\n  readonly pattern: InputMaybe<Scalars['String']>;\n  readonly pattern_not: InputMaybe<Scalars['String']>;\n  readonly pattern_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly pattern_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly pattern_contains: InputMaybe<Scalars['String']>;\n  readonly pattern_not_contains: InputMaybe<Scalars['String']>;\n  readonly subDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly subDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly subDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly subDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_exists: InputMaybe<Scalars['Boolean']>;\n  readonly path: InputMaybe<Scalars['String']>;\n  readonly path_not: InputMaybe<Scalars['String']>;\n  readonly path_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_contains: InputMaybe<Scalars['String']>;\n  readonly path_not_contains: InputMaybe<Scalars['String']>;\n  readonly secure_exists: InputMaybe<Scalars['Boolean']>;\n  readonly secure: InputMaybe<Scalars['Boolean']>;\n  readonly secure_not: InputMaybe<Scalars['Boolean']>;\n  readonly sameSite_exists: InputMaybe<Scalars['Boolean']>;\n  readonly sameSite: InputMaybe<Scalars['String']>;\n  readonly sameSite_not: InputMaybe<Scalars['String']>;\n  readonly sameSite_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly sameSite_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly sameSite_contains: InputMaybe<Scalars['String']>;\n  readonly sameSite_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<TrackingCookieFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<TrackingCookieFilterType>>>;\n};\n\nexport enum CookieCategoryCookiesCollectionOrderType {\n  NameAscType = 'name_ASC',\n  NameDescType = 'name_DESC',\n  PatternAscType = 'pattern_ASC',\n  PatternDescType = 'pattern_DESC',\n  PathAscType = 'path_ASC',\n  PathDescType = 'path_DESC',\n  SecureAscType = 'secure_ASC',\n  SecureDescType = 'secure_DESC',\n  SameSiteAscType = 'sameSite_ASC',\n  SameSiteDescType = 'sameSite_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CookieCategoryFilterType = {\n  readonly cookies: InputMaybe<CfTrackingCookieNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly description_exists: InputMaybe<Scalars['Boolean']>;\n  readonly description_contains: InputMaybe<Scalars['String']>;\n  readonly description_not_contains: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_exists: InputMaybe<Scalars['Boolean']>;\n  readonly categoryCookieName: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_not: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly categoryCookieName_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly categoryCookieName_contains: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_not_contains: InputMaybe<Scalars['String']>;\n  readonly displayMode_exists: InputMaybe<Scalars['Boolean']>;\n  readonly displayMode: InputMaybe<Scalars['String']>;\n  readonly displayMode_not: InputMaybe<Scalars['String']>;\n  readonly displayMode_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly displayMode_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly displayMode_contains: InputMaybe<Scalars['String']>;\n  readonly displayMode_not_contains: InputMaybe<Scalars['String']>;\n  readonly isEssential_exists: InputMaybe<Scalars['Boolean']>;\n  readonly isEssential: InputMaybe<Scalars['Boolean']>;\n  readonly isEssential_not: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle_not: InputMaybe<Scalars['Boolean']>;\n  readonly cookiesCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CookieCategoryFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CookieCategoryFilterType>>>;\n};\n\nexport type CfTrackingCookieNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly name_exists: InputMaybe<Scalars['Boolean']>;\n  readonly name: InputMaybe<Scalars['String']>;\n  readonly name_not: InputMaybe<Scalars['String']>;\n  readonly name_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly name_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly name_contains: InputMaybe<Scalars['String']>;\n  readonly name_not_contains: InputMaybe<Scalars['String']>;\n  readonly provider_exists: InputMaybe<Scalars['Boolean']>;\n  readonly provider_contains: InputMaybe<Scalars['String']>;\n  readonly provider_not_contains: InputMaybe<Scalars['String']>;\n  readonly domains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly domains_contains: InputMaybe<Scalars['String']>;\n  readonly domains_not_contains: InputMaybe<Scalars['String']>;\n  readonly purpose_exists: InputMaybe<Scalars['Boolean']>;\n  readonly purpose_contains: InputMaybe<Scalars['String']>;\n  readonly purpose_not_contains: InputMaybe<Scalars['String']>;\n  readonly expiration_exists: InputMaybe<Scalars['Boolean']>;\n  readonly expiration_contains: InputMaybe<Scalars['String']>;\n  readonly expiration_not_contains: InputMaybe<Scalars['String']>;\n  readonly pattern_exists: InputMaybe<Scalars['Boolean']>;\n  readonly pattern: InputMaybe<Scalars['String']>;\n  readonly pattern_not: InputMaybe<Scalars['String']>;\n  readonly pattern_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly pattern_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly pattern_contains: InputMaybe<Scalars['String']>;\n  readonly pattern_not_contains: InputMaybe<Scalars['String']>;\n  readonly subDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly subDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly subDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly subDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_exists: InputMaybe<Scalars['Boolean']>;\n  readonly path: InputMaybe<Scalars['String']>;\n  readonly path_not: InputMaybe<Scalars['String']>;\n  readonly path_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly path_contains: InputMaybe<Scalars['String']>;\n  readonly path_not_contains: InputMaybe<Scalars['String']>;\n  readonly secure_exists: InputMaybe<Scalars['Boolean']>;\n  readonly secure: InputMaybe<Scalars['Boolean']>;\n  readonly secure_not: InputMaybe<Scalars['Boolean']>;\n  readonly sameSite_exists: InputMaybe<Scalars['Boolean']>;\n  readonly sameSite: InputMaybe<Scalars['String']>;\n  readonly sameSite_not: InputMaybe<Scalars['String']>;\n  readonly sameSite_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly sameSite_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly sameSite_contains: InputMaybe<Scalars['String']>;\n  readonly sameSite_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfTrackingCookieNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfTrackingCookieNestedFilterType>>>;\n};\n\nexport enum CookieModalCookieCategoriesCollectionOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  CategoryCookieNameAscType = 'categoryCookieName_ASC',\n  CategoryCookieNameDescType = 'categoryCookieName_DESC',\n  DisplayModeAscType = 'displayMode_ASC',\n  DisplayModeDescType = 'displayMode_DESC',\n  IsEssentialAscType = 'isEssential_ASC',\n  IsEssentialDescType = 'isEssential_DESC',\n  EnableToggleAscType = 'enableToggle_ASC',\n  EnableToggleDescType = 'enableToggle_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CookieModalFilterType = {\n  readonly cookieCategories: InputMaybe<CfCookieCategoryNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly landingScreenTitle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly landingScreenTitle: InputMaybe<Scalars['String']>;\n  readonly landingScreenTitle_not: InputMaybe<Scalars['String']>;\n  readonly landingScreenTitle_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly landingScreenTitle_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly landingScreenTitle_contains: InputMaybe<Scalars['String']>;\n  readonly landingScreenTitle_not_contains: InputMaybe<Scalars['String']>;\n  readonly content_exists: InputMaybe<Scalars['Boolean']>;\n  readonly content_contains: InputMaybe<Scalars['String']>;\n  readonly content_not_contains: InputMaybe<Scalars['String']>;\n  readonly acceptAllButtonText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly acceptAllButtonText: InputMaybe<Scalars['String']>;\n  readonly acceptAllButtonText_not: InputMaybe<Scalars['String']>;\n  readonly acceptAllButtonText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptAllButtonText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptAllButtonText_contains: InputMaybe<Scalars['String']>;\n  readonly acceptAllButtonText_not_contains: InputMaybe<Scalars['String']>;\n  readonly essentialOnlyButtonText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly essentialOnlyButtonText: InputMaybe<Scalars['String']>;\n  readonly essentialOnlyButtonText_not: InputMaybe<Scalars['String']>;\n  readonly essentialOnlyButtonText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly essentialOnlyButtonText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly essentialOnlyButtonText_contains: InputMaybe<Scalars['String']>;\n  readonly essentialOnlyButtonText_not_contains: InputMaybe<Scalars['String']>;\n  readonly settingsButtonText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly settingsButtonText: InputMaybe<Scalars['String']>;\n  readonly settingsButtonText_not: InputMaybe<Scalars['String']>;\n  readonly settingsButtonText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly settingsButtonText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly settingsButtonText_contains: InputMaybe<Scalars['String']>;\n  readonly settingsButtonText_not_contains: InputMaybe<Scalars['String']>;\n  readonly settingsScreenTitle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly settingsScreenTitle: InputMaybe<Scalars['String']>;\n  readonly settingsScreenTitle_not: InputMaybe<Scalars['String']>;\n  readonly settingsScreenTitle_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly settingsScreenTitle_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly settingsScreenTitle_contains: InputMaybe<Scalars['String']>;\n  readonly settingsScreenTitle_not_contains: InputMaybe<Scalars['String']>;\n  readonly acceptSelectedButtonText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly acceptSelectedButtonText: InputMaybe<Scalars['String']>;\n  readonly acceptSelectedButtonText_not: InputMaybe<Scalars['String']>;\n  readonly acceptSelectedButtonText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptSelectedButtonText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptSelectedButtonText_contains: InputMaybe<Scalars['String']>;\n  readonly acceptSelectedButtonText_not_contains: InputMaybe<Scalars['String']>;\n  readonly saveChangesText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly saveChangesText: InputMaybe<Scalars['String']>;\n  readonly saveChangesText_not: InputMaybe<Scalars['String']>;\n  readonly saveChangesText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly saveChangesText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly saveChangesText_contains: InputMaybe<Scalars['String']>;\n  readonly saveChangesText_not_contains: InputMaybe<Scalars['String']>;\n  readonly changesSavedText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly changesSavedText: InputMaybe<Scalars['String']>;\n  readonly changesSavedText_not: InputMaybe<Scalars['String']>;\n  readonly changesSavedText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly changesSavedText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly changesSavedText_contains: InputMaybe<Scalars['String']>;\n  readonly changesSavedText_not_contains: InputMaybe<Scalars['String']>;\n  readonly toggleEnabledText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly toggleEnabledText: InputMaybe<Scalars['String']>;\n  readonly toggleEnabledText_not: InputMaybe<Scalars['String']>;\n  readonly toggleEnabledText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly toggleEnabledText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly toggleEnabledText_contains: InputMaybe<Scalars['String']>;\n  readonly toggleEnabledText_not_contains: InputMaybe<Scalars['String']>;\n  readonly toggleDisabledText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly toggleDisabledText: InputMaybe<Scalars['String']>;\n  readonly toggleDisabledText_not: InputMaybe<Scalars['String']>;\n  readonly toggleDisabledText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly toggleDisabledText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly toggleDisabledText_contains: InputMaybe<Scalars['String']>;\n  readonly toggleDisabledText_not_contains: InputMaybe<Scalars['String']>;\n  readonly cookieCategoriesCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly gpcLocations_exists: InputMaybe<Scalars['Boolean']>;\n  readonly gpcLocations_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly gpcLocations_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly gpcLocations_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly enableCookieDeletion_exists: InputMaybe<Scalars['Boolean']>;\n  readonly enableCookieDeletion: InputMaybe<Scalars['Boolean']>;\n  readonly enableCookieDeletion_not: InputMaybe<Scalars['Boolean']>;\n  readonly logCookieDeletion_exists: InputMaybe<Scalars['Boolean']>;\n  readonly logCookieDeletion: InputMaybe<Scalars['Boolean']>;\n  readonly logCookieDeletion_not: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CookieModalFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CookieModalFilterType>>>;\n};\n\nexport type CfCookieCategoryNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly description_exists: InputMaybe<Scalars['Boolean']>;\n  readonly description_contains: InputMaybe<Scalars['String']>;\n  readonly description_not_contains: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_exists: InputMaybe<Scalars['Boolean']>;\n  readonly categoryCookieName: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_not: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly categoryCookieName_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly categoryCookieName_contains: InputMaybe<Scalars['String']>;\n  readonly categoryCookieName_not_contains: InputMaybe<Scalars['String']>;\n  readonly displayMode_exists: InputMaybe<Scalars['Boolean']>;\n  readonly displayMode: InputMaybe<Scalars['String']>;\n  readonly displayMode_not: InputMaybe<Scalars['String']>;\n  readonly displayMode_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly displayMode_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly displayMode_contains: InputMaybe<Scalars['String']>;\n  readonly displayMode_not_contains: InputMaybe<Scalars['String']>;\n  readonly isEssential_exists: InputMaybe<Scalars['Boolean']>;\n  readonly isEssential: InputMaybe<Scalars['Boolean']>;\n  readonly isEssential_not: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle_exists: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle: InputMaybe<Scalars['Boolean']>;\n  readonly enableToggle_not: InputMaybe<Scalars['Boolean']>;\n  readonly cookiesCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfCookieCategoryNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfCookieCategoryNestedFilterType>>>;\n};\n\nexport enum CookieModalOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  LandingScreenTitleAscType = 'landingScreenTitle_ASC',\n  LandingScreenTitleDescType = 'landingScreenTitle_DESC',\n  AcceptAllButtonTextAscType = 'acceptAllButtonText_ASC',\n  AcceptAllButtonTextDescType = 'acceptAllButtonText_DESC',\n  EssentialOnlyButtonTextAscType = 'essentialOnlyButtonText_ASC',\n  EssentialOnlyButtonTextDescType = 'essentialOnlyButtonText_DESC',\n  SettingsButtonTextAscType = 'settingsButtonText_ASC',\n  SettingsButtonTextDescType = 'settingsButtonText_DESC',\n  SettingsScreenTitleAscType = 'settingsScreenTitle_ASC',\n  SettingsScreenTitleDescType = 'settingsScreenTitle_DESC',\n  AcceptSelectedButtonTextAscType = 'acceptSelectedButtonText_ASC',\n  AcceptSelectedButtonTextDescType = 'acceptSelectedButtonText_DESC',\n  SaveChangesTextAscType = 'saveChangesText_ASC',\n  SaveChangesTextDescType = 'saveChangesText_DESC',\n  ChangesSavedTextAscType = 'changesSavedText_ASC',\n  ChangesSavedTextDescType = 'changesSavedText_DESC',\n  ToggleEnabledTextAscType = 'toggleEnabledText_ASC',\n  ToggleEnabledTextDescType = 'toggleEnabledText_DESC',\n  ToggleDisabledTextAscType = 'toggleDisabledText_ASC',\n  ToggleDisabledTextDescType = 'toggleDisabledText_DESC',\n  EnableCookieDeletionAscType = 'enableCookieDeletion_ASC',\n  EnableCookieDeletionDescType = 'enableCookieDeletion_DESC',\n  LogCookieDeletionAscType = 'logCookieDeletion_ASC',\n  LogCookieDeletionDescType = 'logCookieDeletion_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type TrackingCookieCollectionType = {\n  readonly __typename?: 'TrackingCookieCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<TrackingCookieType>>;\n};\n\nexport enum TrackingCookieOrderType {\n  NameAscType = 'name_ASC',\n  NameDescType = 'name_DESC',\n  PatternAscType = 'pattern_ASC',\n  PatternDescType = 'pattern_DESC',\n  PathAscType = 'path_ASC',\n  PathDescType = 'path_DESC',\n  SecureAscType = 'secure_ASC',\n  SecureDescType = 'secure_DESC',\n  SameSiteAscType = 'sameSite_ASC',\n  SameSiteDescType = 'sameSite_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum ImageOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  WrapAscType = 'wrap_ASC',\n  WrapDescType = 'wrap_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum GlobalNavHighlightOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  CardTitleV2AscType = 'cardTitleV2_ASC',\n  CardTitleV2DescType = 'cardTitleV2_DESC',\n  CardBodyV2AscType = 'cardBodyV2_ASC',\n  CardBodyV2DescType = 'cardBodyV2_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum GlobalNavOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  PrimaryHostnameRegexAscType = 'primaryHostnameRegex_ASC',\n  PrimaryHostnameRegexDescType = 'primaryHostnameRegex_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum CookieCategoryOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  CategoryCookieNameAscType = 'categoryCookieName_ASC',\n  CategoryCookieNameDescType = 'categoryCookieName_DESC',\n  DisplayModeAscType = 'displayMode_ASC',\n  DisplayModeDescType = 'displayMode_DESC',\n  IsEssentialAscType = 'isEssential_ASC',\n  IsEssentialDescType = 'isEssential_DESC',\n  EnableToggleAscType = 'enableToggle_ASC',\n  EnableToggleDescType = 'enableToggle_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterV3FilterType = {\n  readonly columns: InputMaybe<CfFooterGroupNestedFilterType>;\n  readonly bar: InputMaybe<CfFooterGroupNestedFilterType>;\n  readonly logo: InputMaybe<CfImageNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly columnsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly barCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly logo_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideLogoOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideLogoOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideLogoOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideLogoOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterV3FilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterV3FilterType>>>;\n};\n\nexport type CfFooterGroupNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_exists: InputMaybe<Scalars['Boolean']>;\n  readonly groupKey: InputMaybe<Scalars['String']>;\n  readonly groupKey_not: InputMaybe<Scalars['String']>;\n  readonly groupKey_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly groupKey_contains: InputMaybe<Scalars['String']>;\n  readonly groupKey_not_contains: InputMaybe<Scalars['String']>;\n  readonly itemsCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfFooterGroupNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfFooterGroupNestedFilterType>>>;\n};\n\nexport type CfImageNestedFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly media_exists: InputMaybe<Scalars['Boolean']>;\n  readonly wrap_exists: InputMaybe<Scalars['Boolean']>;\n  readonly wrap: InputMaybe<Scalars['String']>;\n  readonly wrap_not: InputMaybe<Scalars['String']>;\n  readonly wrap_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_contains: InputMaybe<Scalars['String']>;\n  readonly wrap_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CfImageNestedFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CfImageNestedFilterType>>>;\n};\n\nexport enum FooterV3OrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterItemV3FilterType = {\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterItemV3FilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterItemV3FilterType>>>;\n};\n\nexport enum FooterItemV3OrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterLocaleDropdownCollectionType = {\n  readonly __typename?: 'FooterLocaleDropdownCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<FooterLocaleDropdownType>>;\n};\n\nexport type FooterLocaleDropdownFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterLocaleDropdownFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterLocaleDropdownFilterType>>>;\n};\n\nexport enum FooterLocaleDropdownOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterCookiesSettingsLinkFilterType = {\n  readonly analytics: InputMaybe<CfAnalyticsNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly hideOnDomains_exists: InputMaybe<Scalars['Boolean']>;\n  readonly hideOnDomains_contains_all: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_some: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly hideOnDomains_contains_none: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly analytics_exists: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterCookiesSettingsLinkFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterCookiesSettingsLinkFilterType>>>;\n};\n\nexport enum FooterCookiesSettingsLinkOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum FooterGroupOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GroupKeyAscType = 'groupKey_ASC',\n  GroupKeyDescType = 'groupKey_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type CookieBannerFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly leftMedia_exists: InputMaybe<Scalars['Boolean']>;\n  readonly rightMedia_exists: InputMaybe<Scalars['Boolean']>;\n  readonly body_exists: InputMaybe<Scalars['Boolean']>;\n  readonly body_contains: InputMaybe<Scalars['String']>;\n  readonly body_not_contains: InputMaybe<Scalars['String']>;\n  readonly acceptCookiesButton_exists: InputMaybe<Scalars['Boolean']>;\n  readonly acceptCookiesButton: InputMaybe<Scalars['String']>;\n  readonly acceptCookiesButton_not: InputMaybe<Scalars['String']>;\n  readonly acceptCookiesButton_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptCookiesButton_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly acceptCookiesButton_contains: InputMaybe<Scalars['String']>;\n  readonly acceptCookiesButton_not_contains: InputMaybe<Scalars['String']>;\n  readonly cookieSettingsButtonText_exists: InputMaybe<Scalars['Boolean']>;\n  readonly cookieSettingsButtonText: InputMaybe<Scalars['String']>;\n  readonly cookieSettingsButtonText_not: InputMaybe<Scalars['String']>;\n  readonly cookieSettingsButtonText_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cookieSettingsButtonText_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly cookieSettingsButtonText_contains: InputMaybe<Scalars['String']>;\n  readonly cookieSettingsButtonText_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<CookieBannerFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<CookieBannerFilterType>>>;\n};\n\nexport enum CookieBannerOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  AcceptCookiesButtonAscType = 'acceptCookiesButton_ASC',\n  AcceptCookiesButtonDescType = 'acceptCookiesButton_DESC',\n  CookieSettingsButtonTextAscType = 'cookieSettingsButtonText_ASC',\n  CookieSettingsButtonTextDescType = 'cookieSettingsButtonText_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type FooterFilterType = {\n  readonly footerColumn: InputMaybe<CfFooterItemNestedFilterType>;\n  readonly footerBar: InputMaybe<CfFooterItemNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly footerColumnCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly footerBarCollection_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_exists: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly: InputMaybe<Scalars['Boolean']>;\n  readonly globalOnly_not: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<FooterFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<FooterFilterType>>>;\n};\n\nexport enum FooterOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type AnalyticsCollectionType = {\n  readonly __typename?: 'AnalyticsCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<AnalyticsType>>;\n};\n\nexport enum AnalyticsOrderType {\n  LabelAscType = 'label_ASC',\n  LabelDescType = 'label_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum GlobalNavItemOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  HideHostnameRegexAscType = 'hideHostnameRegex_ASC',\n  HideHostnameRegexDescType = 'hideHostnameRegex_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type ButtonFilterType = {\n  readonly image: InputMaybe<CfImageNestedFilterType>;\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly url_exists: InputMaybe<Scalars['Boolean']>;\n  readonly url: InputMaybe<Scalars['String']>;\n  readonly url_not: InputMaybe<Scalars['String']>;\n  readonly url_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly url_contains: InputMaybe<Scalars['String']>;\n  readonly url_not_contains: InputMaybe<Scalars['String']>;\n  readonly size_exists: InputMaybe<Scalars['Boolean']>;\n  readonly size: InputMaybe<Scalars['String']>;\n  readonly size_not: InputMaybe<Scalars['String']>;\n  readonly size_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly size_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly size_contains: InputMaybe<Scalars['String']>;\n  readonly size_not_contains: InputMaybe<Scalars['String']>;\n  readonly theme_exists: InputMaybe<Scalars['Boolean']>;\n  readonly theme: InputMaybe<Scalars['String']>;\n  readonly theme_not: InputMaybe<Scalars['String']>;\n  readonly theme_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly theme_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly theme_contains: InputMaybe<Scalars['String']>;\n  readonly theme_not_contains: InputMaybe<Scalars['String']>;\n  readonly buttonType_exists: InputMaybe<Scalars['Boolean']>;\n  readonly buttonType: InputMaybe<Scalars['String']>;\n  readonly buttonType_not: InputMaybe<Scalars['String']>;\n  readonly buttonType_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly buttonType_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly buttonType_contains: InputMaybe<Scalars['String']>;\n  readonly buttonType_not_contains: InputMaybe<Scalars['String']>;\n  readonly image_exists: InputMaybe<Scalars['Boolean']>;\n  readonly iconName_exists: InputMaybe<Scalars['Boolean']>;\n  readonly iconName: InputMaybe<Scalars['String']>;\n  readonly iconName_not: InputMaybe<Scalars['String']>;\n  readonly iconName_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly iconName_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly iconName_contains: InputMaybe<Scalars['String']>;\n  readonly iconName_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<ButtonFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<ButtonFilterType>>>;\n};\n\nexport enum ButtonOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SizeAscType = 'size_ASC',\n  SizeDescType = 'size_DESC',\n  ThemeAscType = 'theme_ASC',\n  ThemeDescType = 'theme_DESC',\n  ButtonTypeAscType = 'buttonType_ASC',\n  ButtonTypeDescType = 'buttonType_DESC',\n  IconNameAscType = 'iconName_ASC',\n  IconNameDescType = 'iconName_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum CallToActionOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/message) */\nexport type MessageType = EntryType & _NodeType & {\n  readonly __typename?: 'Message';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<MessageLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly title: Maybe<Scalars['String']>;\n  readonly key: Maybe<Scalars['String']>;\n  readonly value: Maybe<Scalars['String']>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/message) */\nexport type MessageLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/message) */\nexport type MessageTitleArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/message) */\nexport type MessageKeyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/message) */\nexport type MessageValueArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type MessageLinkingCollectionsType = {\n  readonly __typename?: 'MessageLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type MessageLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type MessageCollectionType = {\n  readonly __typename?: 'MessageCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<MessageType>>;\n};\n\nexport type MessageFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly title_exists: InputMaybe<Scalars['Boolean']>;\n  readonly title: InputMaybe<Scalars['String']>;\n  readonly title_not: InputMaybe<Scalars['String']>;\n  readonly title_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly title_contains: InputMaybe<Scalars['String']>;\n  readonly title_not_contains: InputMaybe<Scalars['String']>;\n  readonly key_exists: InputMaybe<Scalars['Boolean']>;\n  readonly key: InputMaybe<Scalars['String']>;\n  readonly key_not: InputMaybe<Scalars['String']>;\n  readonly key_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly key_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly key_contains: InputMaybe<Scalars['String']>;\n  readonly key_not_contains: InputMaybe<Scalars['String']>;\n  readonly value_exists: InputMaybe<Scalars['Boolean']>;\n  readonly value: InputMaybe<Scalars['String']>;\n  readonly value_not: InputMaybe<Scalars['String']>;\n  readonly value_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly value_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly value_contains: InputMaybe<Scalars['String']>;\n  readonly value_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<MessageFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<MessageFilterType>>>;\n};\n\nexport enum MessageOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  KeyAscType = 'key_ASC',\n  KeyDescType = 'key_DESC',\n  ValueAscType = 'value_ASC',\n  ValueDescType = 'value_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/legalMessage) */\nexport type LegalMessageType = EntryType & _NodeType & {\n  readonly __typename?: 'LegalMessage';\n  readonly sys: SysType;\n  readonly contentfulMetadata: ContentfulMetadataType;\n  readonly linkedFrom: Maybe<LegalMessageLinkingCollectionsType>;\n  readonly _id: Scalars['ID'];\n  readonly key: Maybe<Scalars['String']>;\n  readonly value: Maybe<Scalars['String']>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/legalMessage) */\nexport type LegalMessageLinkedFromArgsType = {\n  allowedLocales: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/legalMessage) */\nexport type LegalMessageKeyArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\n\n/** Common strings used across components with or without dynamic content. [See type definition](https://app.contentful.com/spaces/kp51zybwznx4/content_types/legalMessage) */\nexport type LegalMessageValueArgsType = {\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type LegalMessageLinkingCollectionsType = {\n  readonly __typename?: 'LegalMessageLinkingCollections';\n  readonly entryCollection: Maybe<EntryCollectionType>;\n};\n\n\nexport type LegalMessageLinkingCollectionsEntryCollectionArgsType = {\n  skip?: InputMaybe<Scalars['Int']>;\n  limit?: InputMaybe<Scalars['Int']>;\n  preview: InputMaybe<Scalars['Boolean']>;\n  locale: InputMaybe<Scalars['String']>;\n};\n\nexport type LegalMessageCollectionType = {\n  readonly __typename?: 'LegalMessageCollection';\n  readonly total: Scalars['Int'];\n  readonly skip: Scalars['Int'];\n  readonly limit: Scalars['Int'];\n  readonly items: ReadonlyArray<Maybe<LegalMessageType>>;\n};\n\nexport type LegalMessageFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly key_exists: InputMaybe<Scalars['Boolean']>;\n  readonly key: InputMaybe<Scalars['String']>;\n  readonly key_not: InputMaybe<Scalars['String']>;\n  readonly key_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly key_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly key_contains: InputMaybe<Scalars['String']>;\n  readonly key_not_contains: InputMaybe<Scalars['String']>;\n  readonly value_exists: InputMaybe<Scalars['Boolean']>;\n  readonly value: InputMaybe<Scalars['String']>;\n  readonly value_not: InputMaybe<Scalars['String']>;\n  readonly value_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly value_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly value_contains: InputMaybe<Scalars['String']>;\n  readonly value_not_contains: InputMaybe<Scalars['String']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<LegalMessageFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<LegalMessageFilterType>>>;\n};\n\nexport enum LegalMessageOrderType {\n  KeyAscType = 'key_ASC',\n  KeyDescType = 'key_DESC',\n  ValueAscType = 'value_ASC',\n  ValueDescType = 'value_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type VideoFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly contentfulDescription_exists: InputMaybe<Scalars['Boolean']>;\n  readonly contentfulDescription: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly contentfulDescription_contains: InputMaybe<Scalars['String']>;\n  readonly contentfulDescription_not_contains: InputMaybe<Scalars['String']>;\n  readonly media_exists: InputMaybe<Scalars['Boolean']>;\n  readonly thumbnailMedia_exists: InputMaybe<Scalars['Boolean']>;\n  readonly autoPlay_exists: InputMaybe<Scalars['Boolean']>;\n  readonly autoPlay: InputMaybe<Scalars['Boolean']>;\n  readonly autoPlay_not: InputMaybe<Scalars['Boolean']>;\n  readonly wrap_exists: InputMaybe<Scalars['Boolean']>;\n  readonly wrap: InputMaybe<Scalars['String']>;\n  readonly wrap_not: InputMaybe<Scalars['String']>;\n  readonly wrap_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_not_in: InputMaybe<ReadonlyArray<InputMaybe<Scalars['String']>>>;\n  readonly wrap_contains: InputMaybe<Scalars['String']>;\n  readonly wrap_not_contains: InputMaybe<Scalars['String']>;\n  readonly captions_exists: InputMaybe<Scalars['Boolean']>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<VideoFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<VideoFilterType>>>;\n};\n\nexport enum VideoOrderType {\n  ContentfulDescriptionAscType = 'contentfulDescription_ASC',\n  ContentfulDescriptionDescType = 'contentfulDescription_DESC',\n  AutoPlayAscType = 'autoPlay_ASC',\n  AutoPlayDescType = 'autoPlay_DESC',\n  WrapAscType = 'wrap_ASC',\n  WrapDescType = 'wrap_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport enum FooterItemOrderType {\n  TitleAscType = 'title_ASC',\n  TitleDescType = 'title_DESC',\n  UrlAscType = 'url_ASC',\n  UrlDescType = 'url_DESC',\n  GlobalOnlyAscType = 'globalOnly_ASC',\n  GlobalOnlyDescType = 'globalOnly_DESC',\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type EntryFilterType = {\n  readonly sys: InputMaybe<SysFilterType>;\n  readonly contentfulMetadata: InputMaybe<ContentfulMetadataFilterType>;\n  readonly OR: InputMaybe<ReadonlyArray<InputMaybe<EntryFilterType>>>;\n  readonly AND: InputMaybe<ReadonlyArray<InputMaybe<EntryFilterType>>>;\n};\n\nexport enum EntryOrderType {\n  SysIdAscType = 'sys_id_ASC',\n  SysIdDescType = 'sys_id_DESC',\n  SysPublishedAtAscType = 'sys_publishedAt_ASC',\n  SysPublishedAtDescType = 'sys_publishedAt_DESC',\n  SysFirstPublishedAtAscType = 'sys_firstPublishedAt_ASC',\n  SysFirstPublishedAtDescType = 'sys_firstPublishedAt_DESC',\n  SysPublishedVersionAscType = 'sys_publishedVersion_ASC',\n  SysPublishedVersionDescType = 'sys_publishedVersion_DESC'\n}\n\nexport type ButtonAllType = { readonly __typename?: 'Button', readonly url: string, readonly size: string, readonly theme: string, readonly buttonType: string, readonly iconName: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly title: { readonly __typename?: 'ButtonTitle', readonly json: Record<string, unknown> }, readonly image: { readonly __typename?: 'Image', readonly wrap: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly media: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } };\n\nexport type ButtonQueryVariablesType = Exact<{\n  preview: Scalars['Boolean'];\n  locale: Scalars['String'];\n  id: Scalars['String'];\n}>;\n\n\nexport type ButtonQueryType = { readonly __typename?: 'Query', readonly button: { readonly __typename?: 'Button', readonly url: string, readonly size: string, readonly theme: string, readonly buttonType: string, readonly iconName: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly title: { readonly __typename?: 'ButtonTitle', readonly json: Record<string, unknown> }, readonly image: { readonly __typename?: 'Image', readonly wrap: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly media: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } } };\n\nexport type CallToActionAllType = { readonly __typename?: 'CallToAction', readonly url: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } }, readonly presentation: { readonly __typename?: 'Button', readonly url: string, readonly size: string, readonly theme: string, readonly buttonType: string, readonly iconName: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly title: { readonly __typename?: 'ButtonTitle', readonly json: Record<string, unknown> }, readonly image: { readonly __typename?: 'Image', readonly wrap: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly media: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } } };\n\nexport type FooterV3CollectionQueryVariablesType = Exact<{\n  preview: Scalars['Boolean'];\n  locale: Scalars['String'];\n}>;\n\n\nexport type FooterV3CollectionQueryType = { readonly __typename?: 'Query', readonly footerV3Collection: { readonly __typename?: 'FooterV3Collection', readonly items: ReadonlyArray<{ readonly __typename?: 'FooterV3', readonly url: string, readonly hideLogoOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly logo: { readonly __typename?: 'Image', readonly wrap: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly media: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }, readonly columnsCollection: { readonly __typename?: 'FooterV3ColumnsCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'FooterGroup', readonly title: string, readonly groupKey: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly itemsCollection: { readonly __typename?: 'FooterGroupItemsCollection', readonly items: ReadonlyArray<{ readonly __typename: 'FooterCookiesSettingsLink', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterItemV3', readonly title: string, readonly url: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterLocaleDropdown', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string } }> }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }> }, readonly barCollection: { readonly __typename?: 'FooterV3BarCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'FooterGroup', readonly title: string, readonly groupKey: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly itemsCollection: { readonly __typename?: 'FooterGroupItemsCollection', readonly items: ReadonlyArray<{ readonly __typename: 'FooterCookiesSettingsLink', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterItemV3', readonly title: string, readonly url: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterLocaleDropdown', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string } }> }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }> } }> } };\n\nexport type FooterCookiesSettingsLinkAllType = { readonly __typename?: 'FooterCookiesSettingsLink', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } };\n\nexport type FooterGroupAllType = { readonly __typename?: 'FooterGroup', readonly title: string, readonly groupKey: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly itemsCollection: { readonly __typename?: 'FooterGroupItemsCollection', readonly items: ReadonlyArray<{ readonly __typename: 'FooterCookiesSettingsLink', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterItemV3', readonly title: string, readonly url: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterLocaleDropdown', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string } }> }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } };\n\nexport type FooterItemV3AllType = { readonly __typename?: 'FooterItemV3', readonly title: string, readonly url: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } };\n\nexport type FooterItemV3QueryVariablesType = Exact<{\n  preview: Scalars['Boolean'];\n  locale: Scalars['String'];\n  id: Scalars['String'];\n}>;\n\n\nexport type FooterItemV3QueryType = { readonly __typename?: 'Query', readonly footerItemV3: { readonly __typename?: 'FooterItemV3', readonly title: string, readonly url: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } };\n\nexport type FooterLocaleDropdownAllType = { readonly __typename?: 'FooterLocaleDropdown', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string } };\n\nexport type FooterV3AllType = { readonly __typename?: 'FooterV3', readonly url: string, readonly hideLogoOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly logo: { readonly __typename?: 'Image', readonly wrap: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly media: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }, readonly columnsCollection: { readonly __typename?: 'FooterV3ColumnsCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'FooterGroup', readonly title: string, readonly groupKey: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly itemsCollection: { readonly __typename?: 'FooterGroupItemsCollection', readonly items: ReadonlyArray<{ readonly __typename: 'FooterCookiesSettingsLink', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterItemV3', readonly title: string, readonly url: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterLocaleDropdown', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string } }> }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }> }, readonly barCollection: { readonly __typename?: 'FooterV3BarCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'FooterGroup', readonly title: string, readonly groupKey: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly itemsCollection: { readonly __typename?: 'FooterGroupItemsCollection', readonly items: ReadonlyArray<{ readonly __typename: 'FooterCookiesSettingsLink', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterItemV3', readonly title: string, readonly url: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterLocaleDropdown', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string } }> }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }> } };\n\nexport type FooterV3QueryVariablesType = Exact<{\n  preview: Scalars['Boolean'];\n  locale: Scalars['String'];\n  id: Scalars['String'];\n}>;\n\n\nexport type FooterV3QueryType = { readonly __typename?: 'Query', readonly footerV3: { readonly __typename?: 'FooterV3', readonly url: string, readonly hideLogoOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly logo: { readonly __typename?: 'Image', readonly wrap: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly media: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }, readonly columnsCollection: { readonly __typename?: 'FooterV3ColumnsCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'FooterGroup', readonly title: string, readonly groupKey: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly itemsCollection: { readonly __typename?: 'FooterGroupItemsCollection', readonly items: ReadonlyArray<{ readonly __typename: 'FooterCookiesSettingsLink', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterItemV3', readonly title: string, readonly url: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterLocaleDropdown', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string } }> }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }> }, readonly barCollection: { readonly __typename?: 'FooterV3BarCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'FooterGroup', readonly title: string, readonly groupKey: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly itemsCollection: { readonly __typename?: 'FooterGroupItemsCollection', readonly items: ReadonlyArray<{ readonly __typename: 'FooterCookiesSettingsLink', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterItemV3', readonly title: string, readonly url: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } | { readonly __typename: 'FooterLocaleDropdown', readonly title: string, readonly hideOnDomains: ReadonlyArray<string>, readonly sys: { readonly __typename?: 'Sys', readonly id: string } }> }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }> } } };\n\nexport type GlobalNavConfigCollectionQueryVariablesType = Exact<{\n  preview: Scalars['Boolean'];\n  locale: Scalars['String'];\n}>;\n\n\nexport type GlobalNavConfigCollectionQueryType = { readonly __typename?: 'Query', readonly globalNavConfigCollection: { readonly __typename?: 'GlobalNavConfigCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'GlobalNavConfig', readonly globalNavLabel: string, readonly globalNavButtonAriaLabel: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly globalNavGroupsCollection: { readonly __typename?: 'GlobalNavConfigGlobalNavGroupsCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'GlobalNav', readonly title: string, readonly groupKey: string, readonly primaryHostnameRegex: string, readonly hideHostnameRegex: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly highlight: { readonly __typename?: 'GlobalNavHighlight', readonly title: string, readonly cardTitleV2: string, readonly cardBodyV2: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly cta: { readonly __typename?: 'CallToAction', readonly url: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } }, readonly presentation: { readonly __typename?: 'Button', readonly url: string, readonly size: string, readonly theme: string, readonly buttonType: string, readonly iconName: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly title: { readonly __typename?: 'ButtonTitle', readonly json: Record<string, unknown> }, readonly image: { readonly __typename?: 'Image', readonly wrap: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly media: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } } }, readonly background: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }, readonly itemsCollection: { readonly __typename?: 'GlobalNavItemsCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'GlobalNavItem', readonly title: string, readonly url: string, readonly hideHostnameRegex: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }> } }> } }> } };\n\nexport type GlobalNavAllType = { readonly __typename?: 'GlobalNav', readonly title: string, readonly groupKey: string, readonly primaryHostnameRegex: string, readonly hideHostnameRegex: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly highlight: { readonly __typename?: 'GlobalNavHighlight', readonly title: string, readonly cardTitleV2: string, readonly cardBodyV2: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly cta: { readonly __typename?: 'CallToAction', readonly url: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } }, readonly presentation: { readonly __typename?: 'Button', readonly url: string, readonly size: string, readonly theme: string, readonly buttonType: string, readonly iconName: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly title: { readonly __typename?: 'ButtonTitle', readonly json: Record<string, unknown> }, readonly image: { readonly __typename?: 'Image', readonly wrap: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly media: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } } }, readonly background: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }, readonly itemsCollection: { readonly __typename?: 'GlobalNavItemsCollection', readonly items: ReadonlyArray<{ readonly __typename?: 'GlobalNavItem', readonly title: string, readonly url: string, readonly hideHostnameRegex: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } }> } };\n\nexport type GlobalNavHighlightAllType = { readonly __typename?: 'GlobalNavHighlight', readonly title: string, readonly cardTitleV2: string, readonly cardBodyV2: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly cta: { readonly __typename?: 'CallToAction', readonly url: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } }, readonly presentation: { readonly __typename?: 'Button', readonly url: string, readonly size: string, readonly theme: string, readonly buttonType: string, readonly iconName: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly title: { readonly __typename?: 'ButtonTitle', readonly json: Record<string, unknown> }, readonly image: { readonly __typename?: 'Image', readonly wrap: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly media: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } } } }, readonly background: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } };\n\nexport type GlobalNavItemAllType = { readonly __typename?: 'GlobalNavItem', readonly title: string, readonly url: string, readonly hideHostnameRegex: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly analytics: { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } };\n\nexport type AnalyticsAllType = { readonly __typename?: 'Analytics', readonly label: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } };\n\nexport type AssetAllType = { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } };\n\nexport type AssetsQueryVariablesType = Exact<{\n  preview: Scalars['Boolean'];\n  locale: Scalars['String'];\n  id: Scalars['String'];\n}>;\n\n\nexport type AssetsQueryType = { readonly __typename?: 'Query', readonly asset: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } };\n\nexport type ImageAllType = { readonly __typename?: 'Image', readonly wrap: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string }, readonly media: { readonly __typename?: 'Asset', readonly title: string, readonly description: string, readonly url: string, readonly contentType: string, readonly sys: { readonly __typename?: 'Sys', readonly id: string } } };\n\nexport const AssetAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"AssetAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Asset\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contentType\"}}]}}]} as unknown as DocumentNode<AssetAllType, unknown>;\nexport const ImageAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"ImageAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Image\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"media\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"AssetAll\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"wrap\"}}]}}]} as unknown as DocumentNode<ImageAllType, unknown>;\nexport const FooterItemV3AllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterItemV3All\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterItemV3\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"analytics\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hideOnDomains\"}}]}}]} as unknown as DocumentNode<FooterItemV3AllType, unknown>;\nexport const FooterLocaleDropdownAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterLocaleDropdownAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterLocaleDropdown\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hideOnDomains\"}}]}}]} as unknown as DocumentNode<FooterLocaleDropdownAllType, unknown>;\nexport const FooterCookiesSettingsLinkAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterCookiesSettingsLinkAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterCookiesSettingsLink\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hideOnDomains\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"analytics\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}}]}}]}}]} as unknown as DocumentNode<FooterCookiesSettingsLinkAllType, unknown>;\nexport const FooterGroupAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterGroupAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterGroup\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"groupKey\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"itemsCollection\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"IntValue\",\"value\":\"10\"}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"items\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"__typename\"}},{\"kind\":\"InlineFragment\",\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterItemV3\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterItemV3All\"}}]}},{\"kind\":\"InlineFragment\",\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterLocaleDropdown\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterLocaleDropdownAll\"}}]}},{\"kind\":\"InlineFragment\",\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterCookiesSettingsLink\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterCookiesSettingsLinkAll\"}}]}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"analytics\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hideOnDomains\"}}]}}]} as unknown as DocumentNode<FooterGroupAllType, unknown>;\nexport const FooterV3AllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterV3All\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterV3\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"logo\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"ImageAll\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hideLogoOnDomains\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"columnsCollection\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"IntValue\",\"value\":\"10\"}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"items\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"InlineFragment\",\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterGroup\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterGroupAll\"}}]}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"barCollection\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"IntValue\",\"value\":\"10\"}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"items\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"InlineFragment\",\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterGroup\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterGroupAll\"}}]}}]}}]}}]}}]} as unknown as DocumentNode<FooterV3AllType, unknown>;\nexport const AnalyticsAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"AnalyticsAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Analytics\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"}}]}}]} as unknown as DocumentNode<AnalyticsAllType, unknown>;\nexport const ButtonAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"ButtonAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Button\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"json\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"size\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"theme\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"buttonType\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"image\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"InlineFragment\",\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Image\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"ImageAll\"}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"iconName\"}}]}}]} as unknown as DocumentNode<ButtonAllType, unknown>;\nexport const CallToActionAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"CallToActionAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"CallToAction\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"analytics\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"AnalyticsAll\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"presentation\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"InlineFragment\",\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Button\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"ButtonAll\"}}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"}}]}}]} as unknown as DocumentNode<CallToActionAllType, unknown>;\nexport const GlobalNavHighlightAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"GlobalNavHighlightAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"GlobalNavHighlight\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"cta\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"CallToActionAll\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"background\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"AssetAll\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"cardTitleV2\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"cardBodyV2\"}}]}}]} as unknown as DocumentNode<GlobalNavHighlightAllType, unknown>;\nexport const GlobalNavItemAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"GlobalNavItemAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"GlobalNavItem\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hideHostnameRegex\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"analytics\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"AnalyticsAll\"}}]}}]}}]} as unknown as DocumentNode<GlobalNavItemAllType, unknown>;\nexport const GlobalNavAllType = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"GlobalNavAll\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"GlobalNav\"}},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"groupKey\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"primaryHostnameRegex\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hideHostnameRegex\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"highlight\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"GlobalNavHighlightAll\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"itemsCollection\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"IntValue\",\"value\":\"20\"}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"items\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"GlobalNavItemAll\"}}]}}]}}]}}]} as unknown as DocumentNode<GlobalNavAllType, unknown>;\nexport const ButtonQueryDocumentType = {\"kind\":\"Document\", \"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"ButtonQuery\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"button\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"ButtonAll\"}}]}}]}},...ButtonAllType.definitions,...ImageAllType.definitions,...AssetAllType.definitions]} as unknown as DocumentNode<ButtonQueryType, ButtonQueryVariablesType>;\nexport const FooterV3CollectionQueryDocumentType = {\"kind\":\"Document\", \"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterV3CollectionQuery\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"footerV3Collection\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"IntValue\",\"value\":\"1\"}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"items\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterV3All\"}}]}}]}}]}},...FooterV3AllType.definitions,...ImageAllType.definitions,...AssetAllType.definitions,...FooterGroupAllType.definitions,...FooterItemV3AllType.definitions,...FooterLocaleDropdownAllType.definitions,...FooterCookiesSettingsLinkAllType.definitions]} as unknown as DocumentNode<FooterV3CollectionQueryType, FooterV3CollectionQueryVariablesType>;\nexport const FooterItemV3QueryDocumentType = {\"kind\":\"Document\", \"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterItemV3Query\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"footerItemV3\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterItemV3All\"}}]}}]}},...FooterItemV3AllType.definitions]} as unknown as DocumentNode<FooterItemV3QueryType, FooterItemV3QueryVariablesType>;\nexport const FooterV3QueryDocumentType = {\"kind\":\"Document\", \"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterV3Query\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"footerV3\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"FooterV3All\"}}]}}]}},...FooterV3AllType.definitions,...ImageAllType.definitions,...AssetAllType.definitions,...FooterGroupAllType.definitions,...FooterItemV3AllType.definitions,...FooterLocaleDropdownAllType.definitions,...FooterCookiesSettingsLinkAllType.definitions]} as unknown as DocumentNode<FooterV3QueryType, FooterV3QueryVariablesType>;\nexport const GlobalNavConfigCollectionQueryDocumentType = {\"kind\":\"Document\", \"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"GlobalNavConfigCollectionQuery\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"globalNavConfigCollection\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"IntValue\",\"value\":\"1\"}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"items\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sys\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"globalNavLabel\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"globalNavButtonAriaLabel\"}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"globalNavGroupsCollection\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"IntValue\",\"value\":\"20\"}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"items\"},\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"GlobalNavAll\"}}]}}]}}]}}]}}]}},...GlobalNavAllType.definitions,...GlobalNavHighlightAllType.definitions,...CallToActionAllType.definitions,...AnalyticsAllType.definitions,...ButtonAllType.definitions,...ImageAllType.definitions,...AssetAllType.definitions,...GlobalNavItemAllType.definitions]} as unknown as DocumentNode<GlobalNavConfigCollectionQueryType, GlobalNavConfigCollectionQueryVariablesType>;\nexport const AssetsQueryDocumentType = {\"kind\":\"Document\", \"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"AssetsQuery\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"asset\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"preview\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"AssetAll\"}}]}}]}},...AssetAllType.definitions]} as unknown as DocumentNode<AssetsQueryType, AssetsQueryVariablesType>;", "import createCompounder from './_createCompounder.js';\n\n/**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\nvar snakeCase = createCompounder(function(result, word, index) {\n  return result + (index ? '_' : '') + word.toLowerCase();\n});\n\nexport default snakeCase;\n", "import type { TrackingParameters } from '@snapchat/snap-design-system-marketing';\nimport {\n  appendTrackingParameters,\n  FooterItemV2 as FooterItemSDS,\n} from '@snapchat/snap-design-system-marketing';\nimport snakeCase from 'lodash-es/snakeCase';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { Action } from '../../../analytics/Action';\nimport { GlobalComponentsContext } from '../../../context/GlobalComponentsContext';\nimport type { FooterGroupItem } from '../FooterV3Types';\n\nconst defaultTrackingParameters: TrackingParameters = {\n  utm_source: 'global_footer',\n  utm_medium: 'referral',\n  utm_campaign: 'universal_navigation',\n  utm_content: 'footer_item_link',\n};\n\nexport const FooterItemV3: FC<Omit<FooterGroupItem, 'type'>> = props => {\n  const { id, url, title, analyticsLabel } = props;\n  const { isUrlCurrent, onEvent, hostname } = useContext(GlobalComponentsContext);\n\n  const trackingParameters = hostname\n    ? { ...defaultTrackingParameters, utm_source: snakeCase(hostname) }\n    : defaultTrackingParameters;\n\n  const trackedUrl = appendTrackingParameters(url, trackingParameters);\n\n  const onClick = () => {\n    onEvent?.({\n      action: Action.Click,\n      component: 'FooterItem',\n      label: analyticsLabel,\n      url: trackedUrl,\n    });\n  };\n\n  return (\n    <FooterItemSDS\n      id={id}\n      key={id}\n      isSelected={isUrlCurrent?.(url ?? '')}\n      url={trackedUrl}\n      title={title}\n      onClick={onClick}\n    />\n  );\n};\n", "import { FooterGroup as FooterGroupSDS, Orientation } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { FooterItemV3 } from '../FooterItemV3/FooterItemV3';\nimport type { FooterGroupProps } from '../FooterV3Types';\n\nexport const FooterGroup: FC<FooterGroupProps> = ({\n  id,\n  title,\n  items,\n  onClick,\n  orientation = Orientation.Vertical,\n  isFooterBar,\n  beforeItems,\n  afterItems,\n}) => {\n  if (!items?.length && !beforeItems && !afterItems) {\n    return null;\n  }\n\n  const itemsToRender = items?.map((item, i) => {\n    return (\n      <FooterItemV3\n        // ok to use index here because we should never be dynamically adding or removing footer items\n        key={item.id || i}\n        id={item.id}\n        url={item.url}\n        title={item.title}\n        analyticsLabel={item.analyticsLabel}\n      />\n    );\n  });\n\n  return (\n    <FooterGroupSDS\n      isFooterBar={isFooterBar}\n      id={id}\n      title={title}\n      onClick={onClick}\n      orientation={orientation}\n    >\n      {beforeItems}\n      {...itemsToRender}\n      {afterItems}\n    </FooterGroupSDS>\n  );\n};\n", "import { css } from '@emotion/css';\nimport { m, nonMobileMediaQuery } from '@snapchat/snap-design-system-marketing';\n\nexport const localeDropdownContainerCss = css`\n  width: 100%;\n\n  ${nonMobileMediaQuery} {\n    width: auto;\n  }\n`;\n\nexport const logoWrapperCss = css`\n  display: flex;\n  align-items: center;\n  margin-top: ${m('--spacing-xxxs')};\n\n  padding-block-end: ${m('--spacing-xs')};\n\n  ${nonMobileMediaQuery} {\n    padding-block-end: 0;\n  }\n`;\n\n// This fill color is taken from the official logo svg\nexport const lightBgSnapLogoCss = css`\n  &.sdsm-logo {\n    fill: #221f20;\n  }\n`;\n", "import { css } from '@emotion/css';\nimport { m, mobileMediaQuery } from '@snapchat/snap-design-system-marketing';\n\nexport const localeDropdownContainerCss = css`\n  ${mobileMediaQuery} {\n    width: 100%;\n    .sdsm-dropdown,\n    .sdsm-dropdown-button {\n      width: 100%;\n    }\n  }\n`;\n\nexport const dropdownCss = css`\n  display: flex;\n  flex-direction: column;\n  gap: ${m('--spacing-s')};\n`;\n\nexport const horizontalDropdownCss = css`\n  flex-direction: row;\n  align-items: center;\n\n  ${mobileMediaQuery} {\n    flex-direction: column;\n    align-items: flex-start;\n  }\n`;\n\nexport const titleCss = css`\n  font-size: 14px;\n  font-weight: 600;\n  line-height: 16px;\n  color: ${m('--foreground-color')};\n`;\n", "import { cx } from '@emotion/css';\nimport { Orientation } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { LocaleDropdown } from '../../LocaleDropdown/LocaleDropdown';\nimport type { FooterLocaleDropdownProps } from '../FooterV3Types';\nimport {\n  dropdownCss,\n  horizontalDropdownCss,\n  localeDropdownContainerCss,\n  titleCss,\n} from './FooterLocaleDropdown.styles';\n\nexport const FooterLocaleDropdown: FC<FooterLocaleDropdownProps> = ({\n  title,\n  /**\n   * @deprecated. It should be on the styles in the footer Group to align the locale dropdown, instead\n   * of prop drilling it.\n   */\n  currentOrientation: orientation,\n}) => {\n  return (\n    <div\n      className={cx(dropdownCss, {\n        [horizontalDropdownCss]: orientation === Orientation.Horizontal,\n      })}\n    >\n      {title && <label className={titleCss}>{title}</label>}\n      <LocaleDropdown className={localeDropdownContainerCss} />\n    </div>\n  );\n};\n\nFooterLocaleDropdown.displayName = 'FooterLocaleDropdown';\n", "import clone from 'lodash-es/clone';\n\nimport type { FooterGroupAllType } from '../../../generated/contentful-types';\nimport type { FooterGroupItem, FooterGroupProps } from '../../FooterV3/FooterV3Types';\nimport type { CustomFooterGroupProps } from './FooterCollectionV3';\n\n/** Merges default global columns from contentful, with the custom ones a consumer can pass in */\nexport const mergeFooterData = (\n  globalGroups: Array<FooterGroupAllType>,\n  customGroups: Array<CustomFooterGroupProps>,\n  cookieSettingsUrl?: string\n): FooterGroupProps[] => {\n  // Ce clone this because we might splice later and it breaks things across renders\n  const clonedCustomGroups = clone(customGroups);\n\n  const computed = globalGroups.reduce((result, curGroup) => {\n    // Check if custom group key is set to override one of the defaults\n    const spaceItemIndex = clonedCustomGroups.findIndex(\n      group => group.groupKey.trim() === curGroup.groupKey.trim()\n    );\n\n    const genericItems = contentfulToGenericGroup(\n      curGroup.itemsCollection.items,\n      cookieSettingsUrl\n    );\n\n    if (!genericItems.length) {\n      return result;\n    }\n\n    // If found, replace the default with the custom\n    if (spaceItemIndex >= 0) {\n      const spaceGroupArr = clonedCustomGroups.splice(spaceItemIndex, 1);\n      const spaceGroup = spaceGroupArr[0]!;\n\n      const mergedGroup: FooterGroupProps = {\n        id: spaceGroup.id ?? curGroup.sys.id,\n        title: spaceGroup.title ?? curGroup.title,\n        items: spaceGroup.items.concat(genericItems),\n        analyticsLabel: spaceGroup.analyticsLabel ?? curGroup.analytics?.label,\n      };\n\n      result.push(mergedGroup);\n      // if not overridden, add to list per usual\n    } else {\n      const group: FooterGroupProps = {\n        id: curGroup.sys.id,\n        title: curGroup.title,\n        items: genericItems,\n        analyticsLabel: curGroup.analytics?.label,\n      };\n\n      result.push(group);\n    }\n\n    return result;\n  }, [] as FooterGroupProps[]);\n\n  const restMapped = clonedCustomGroups.map(\n    group =>\n      ({\n        id: group.id,\n        title: group.title,\n        items: group.items,\n        analyticsLabel: group.analyticsLabel,\n      } as FooterGroupProps)\n  );\n\n  return [...computed, ...restMapped];\n};\n\n/** Filters out columns and items that are restricted on the passed in domain. Use this BEFORE MERGE. */\nexport const filterFooterDomains = (\n  collection: readonly FooterGroupAllType[],\n  domain: string\n): FooterGroupAllType[] => {\n  const filteredGroups = collection.filter(\n    group => !group.hideOnDomains || !group.hideOnDomains.includes(domain)\n  );\n\n  return filteredGroups.map(group => ({\n    ...group,\n    itemsCollection: {\n      ...group.itemsCollection,\n      items: group.itemsCollection.items.filter(\n        item => !item.hideOnDomains || !item.hideOnDomains.includes(domain)\n      ),\n    },\n  }));\n};\n\nconst contentfulToGenericGroup = (\n  items: FooterGroupAllType['itemsCollection']['items'],\n  cookieSettingsUrl?: string\n): FooterGroupItem[] => {\n  const result = items\n    .map(item => {\n      if (item.__typename === 'FooterCookiesSettingsLink') {\n        if (!cookieSettingsUrl) return undefined;\n\n        return {\n          id: item.sys.id,\n          title: item.title,\n          url: cookieSettingsUrl,\n        };\n      }\n\n      if (item.__typename === 'FooterLocaleDropdown') {\n        return undefined;\n      }\n\n      return {\n        analyticsLabel: item?.analytics?.label,\n        id: item.sys.id,\n        title: item.title,\n        url: item.url,\n      };\n    })\n    .filter(item => !!item) as FooterGroupItem[];\n\n  return result;\n};\n", "import type { BackgroundColor } from '@snapchat/snap-design-system-marketing';\nimport type { FC, ReactNode } from 'react';\n\nimport type { CustomFooterGroupProps } from '../FooterV3/FooterCollectionV3/FooterCollectionV3';\nimport { FooterCollectionV3 } from '../FooterV3/FooterCollectionV3/FooterCollectionV3';\n\nexport enum FooterType {\n  FULL_FOOTER = 'Full Footer',\n  NO_FOOTER = 'No Footer',\n  SIMPLE_FOOTER = 'Simple Footer',\n}\n\n/**\n * Properties for the footer.\n *\n * Note that THIS IS PUBLIC so it cannot have any references to contentful, sys ids, or anything\n * that's related to MWP.\n */\nexport type GlobalFooterProps = {\n  /** Color of the footer */\n  backgroundColor?: BackgroundColor;\n  /** Url for cookie settings page */\n  cookieSettingsUrl?: string;\n  /** Allow adding and overriding of columns */\n  customColumns?: CustomFooterGroupProps[];\n  /** Allow adding and overriding of bottom bar */\n  customFooterBar?: CustomFooterGroupProps[];\n  /** Use a custom logo instead of the default one that comes with global components */\n  logo?: ReactNode;\n  /** Renders at the top of the footer. Used to link to socials. */\n  socialBar?: ReactNode;\n  /** Controls what type of footer to use, Full, None, or Simple. Defaults to Full */\n  footerType?: FooterType;\n};\n\n/**\n * Standard Footer for marketing sites.\n *\n * Note that this is the PUBLIC interface for the footer used by other teams who do not use\n * contentful nor MWP.\n */\nexport const GlobalFooter: FC<GlobalFooterProps> = ({\n  footerType = FooterType.FULL_FOOTER,\n  ...props\n}) => {\n  return <FooterCollectionV3 footerType={footerType} {...props} />;\n};\n", "import { useGlobalComponentsContentfulQuery } from '@snapchat/mw-global-components-schema';\nimport {\n  BackgroundColor,\n  BrowserFeaturesContext,\n  Button,\n  GlobalHeader as GlobalHeaderSDS,\n  GlobalHeaderContext,\n  GlobalNavItem as ItemMobileSDS,\n  isMobileOs,\n  ItemDesktop as ItemDesktopSDS,\n  Logo as LogoSDS,\n  mobileMaxWidth,\n  PrimitivesProvider,\n} from '@snapchat/snap-design-system-marketing';\nimport head from 'lodash-es/head';\nimport type { FC } from 'react';\nimport { Children, useContext, useMemo } from 'react';\n\nimport { Action } from '../../analytics/Action';\nimport { defaultLocaleCode, GlobalComponentsContext } from '../../context/GlobalComponentsContext';\nimport type { GlobalNavAllType, GlobalNavConfigType } from '../../generated/contentful-types';\nimport { GlobalNavConfigCollectionQueryDocumentType } from '../../generated/contentful-types';\nimport { hightlightSizedSrcSets } from '../GlobalNavHighlight/GlobalNavHighlight';\nimport { GlobalNavGroupScreen } from '../GlobalNavScreen/GlobalNavScreen';\nimport type { MediaPreloadSettings } from '../Media/mediaUtils';\nimport { useMediaPreload } from '../Media/useMediaPreload';\nimport type { GlobalHeaderProps } from './types';\n\nconst defaultBackgroundColor = BackgroundColor.Black;\nconst defaultDefaultGroupKey = 'snapchat';\n\n// Test to see if there are duplicate contexts.\n// Explanation: We set this value here as a type of invariant. Users of this package\n// Can see if this value is set to test if they have a different version of SDSM installed.\n// TODO: Make a separate file containing setting and testing logic.\n// Tracking: https://jira.sc-corp.net/browse/ENTWEB-4284\nGlobalHeaderContext.displayName = 'GlobalHeaderContextSDSM';\n\nconst mediaPreloadSettings: MediaPreloadSettings = {\n  sizedSrcSets: hightlightSizedSrcSets,\n  skipPreload: () => {\n    if (!window) return true;\n    return window.innerWidth <= mobileMaxWidth;\n  },\n};\n\n/** Navigation Header with a global nav available on click. */\nexport const GlobalHeader: FC<GlobalHeaderProps> = ({\n  backgroundColor,\n  className,\n  defaultGroupKey,\n  siteName,\n  displayed,\n  trackingSiteName,\n  cta,\n  ctaItems,\n  localNavDesktop,\n  localNavItems,\n  logo,\n  logoProps,\n  localNavMobile,\n  localNavMobileFooter,\n  onToggleExpanded,\n  search,\n  searchOpen,\n  endChildrenDesktopClassName,\n  endChildrenMobileClassName,\n  showGlobalLinks = true,\n  showNavScreen,\n  pathname,\n  headerNavigationTree,\n  navItemAlignment,\n}) => {\n  const context = useContext(GlobalComponentsContext);\n  const { Anchor, onEvent } = context;\n\n  const { data } = useGlobalComponentsContentfulQuery(\n    GlobalNavConfigCollectionQueryDocumentType,\n    {\n      currentLocale: context.currentLocale ?? defaultLocaleCode,\n      isPreview: context.isPreview ?? false,\n      isSSR: context.isSSR ?? false,\n    },\n    { client: context.globalApolloClient }\n  );\n\n  const config = head(data?.globalNavConfigCollection.items) as GlobalNavConfigType;\n  const navGroups = useMemo(\n    () => config?.globalNavGroupsCollection.items ?? [],\n    [config?.globalNavGroupsCollection.items]\n  );\n\n  const browserFeatures = useContext(BrowserFeaturesContext);\n  const isMobile = isMobileOs(browserFeatures);\n\n  // we have to memo this otherwise we \"preload\" on every render since its a new array every time\n  const assetsToPreload = useMemo(\n    () =>\n      showGlobalLinks\n        ? navGroups.map(item => item.highlight?.background).filter(asset => !!asset)\n        : [],\n    [navGroups, showGlobalLinks]\n  );\n  useMediaPreload(assetsToPreload, false, mediaPreloadSettings);\n\n  // Track expansion.\n  const onToggleExpandedWithLogging = (isExpanded: boolean): void => {\n    onEvent?.({\n      component: 'GlobalHeader',\n      action: Action.Click,\n      label: isExpanded ? 'expand' : 'collapse',\n    });\n    onToggleExpanded?.(isExpanded);\n  };\n\n  const callToActions =\n    cta ??\n    Children.toArray(\n      ctaItems?.map((item, id) => (\n        <Button key={id} link={item.url} type={item.type} size=\"Compact\" onClick={item.onClick}>\n          {item.title}\n        </Button>\n      ))\n    );\n\n  // TODO: Remove the concept of \"search\" from this version. Does not belong in exported nav.\n  const endChildren = searchOpen ? (\n    search\n  ) : (\n    <>\n      {callToActions}\n      {search}\n    </>\n  );\n\n  const defaultLogo = logoProps ? <LogoSDS {...logoProps} logoType={'Ghost'} /> : null;\n\n  const shouldShowLogo = !(searchOpen && isMobile);\n\n  const endChildrenClassName = isMobile ? endChildrenMobileClassName : endChildrenDesktopClassName;\n\n  const mobileNavigation =\n    localNavMobile ??\n    localNavItems?.map((item1, id1) => (\n      <ItemMobileSDS\n        key={id1}\n        title={item1.title}\n        href={'url' in item1 ? item1.url : undefined}\n        target={'target' in item1 ? item1.target : undefined}\n      >\n        {'items' in item1\n          ? item1.items.map((item2, id2) => (\n              <ItemMobileSDS\n                key={`${id1}.${id2}`}\n                title={item2.title}\n                href={'url' in item2 ? item2.url : undefined}\n                target={'target' in item2 ? item2.target : undefined}\n              >\n                {'items' in item2\n                  ? item2.items.map((item3, id3) => (\n                      <ItemMobileSDS\n                        key={`${id1}.${id2}.${id3}`}\n                        title={item3.title}\n                        href={'url' in item3 ? item3.url : undefined}\n                        target={'target' in item3 ? item3.target : undefined}\n                      />\n                    ))\n                  : undefined}\n              </ItemMobileSDS>\n            ))\n          : undefined}\n      </ItemMobileSDS>\n    ));\n\n  const desktopNavigation =\n    localNavDesktop ??\n    localNavItems?.map((item1, id1) => (\n      <ItemDesktopSDS\n        id={String(id1)}\n        key={id1}\n        title={item1.title}\n        url={'url' in item1 ? item1.url : undefined}\n        target={'target' in item1 ? item1.target : undefined}\n      >\n        {'items' in item1\n          ? item1.items.map((item2, id2) => (\n              <ItemDesktopSDS\n                id={`${id1}.${id2}`}\n                key={`${id1}.${id2}`}\n                title={item2.title}\n                url={'url' in item2 ? item2.url : undefined}\n                target={'target' in item2 ? item2.target : undefined}\n              >\n                {'items' in item2\n                  ? item2.items.map((item3, id3) => (\n                      <ItemDesktopSDS\n                        id={`${id1}.${id2}.${id3}`}\n                        key={`${id1}.${id2}.${id3}`}\n                        title={item3.title}\n                        url={'url' in item3 ? item3.url : undefined}\n                        target={'target' in item3 ? item3.target : undefined}\n                      />\n                    ))\n                  : undefined}\n              </ItemDesktopSDS>\n            ))\n          : undefined}\n      </ItemDesktopSDS>\n    ));\n\n  return (\n    <PrimitivesProvider value={{ Anchor }}>\n      <GlobalHeaderSDS\n        className={className}\n        siteName={siteName}\n        backgroundColor={backgroundColor ?? defaultBackgroundColor}\n        displayed={displayed}\n        logo={shouldShowLogo && (logo ?? defaultLogo)}\n        onToggleExpanded={onToggleExpandedWithLogging}\n        cta={endChildren}\n        localNavDesktop={desktopNavigation}\n        defaultGroupKey={defaultGroupKey ?? defaultDefaultGroupKey}\n        stayOpenInvariant={pathname}\n        trackingSiteName={trackingSiteName ?? context.hostname}\n        endChildrenClassName={searchOpen ? endChildrenClassName : undefined}\n        showGlobalLinks={showGlobalLinks}\n        showNavScreen={showNavScreen}\n        isUrlCurrent={context.isUrlCurrent}\n        headerNavigationTree={headerNavigationTree}\n        navItemAlignment={navItemAlignment}\n        buttonAriaLabel={config?.globalNavButtonAriaLabel}\n      >\n        {config && (\n          <GlobalNavGroupScreen\n            backgroundColor={backgroundColor ?? defaultBackgroundColor}\n            localNavMobile={mobileNavigation}\n            localNavMobileFooter={localNavMobileFooter}\n            globalNavHeading={config?.globalNavLabel}\n            navGroups={navGroups as unknown as GlobalNavAllType[]}\n            showMobileGlobalLinks={showGlobalLinks}\n          />\n        )}\n      </GlobalHeaderSDS>\n    </PrimitivesProvider>\n  );\n};\n\nGlobalHeader.displayName = 'GlobalHeader';\n", "import type { SrcSetSizes } from '@snapchat/mw-contentful-client';\nimport {\n  GlobalNavHighlight as GlobalNavHighlightSDS,\n  mobileMaxWidth,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useState } from 'react';\n\nimport type { GlobalNavHighlightAllType } from '../../generated/contentful-types';\nimport { CallToAction } from '../CallToAction/CallToAction';\nimport { useActivation } from '../CallToAction/useActivation';\nimport { Media } from '../Media/Media';\n\n/**\n * Different sizes of images to serve.\n *\n * Somewhat arbitrarily chosen based off of the most popular resolutions from GA. Unfortunately GA\n * doesnt have DPR logged (i think)\n */\nconst hightlightWidths = [480, 960, 1440, 1920, 2560];\n\n/**\n * This is the amount of padding in the global nav highlight. we use this to help the browser more\n * accurately know the final img size so it can pick the optimal image.\n *\n * If the value changes in the future, it's not a huge deal to be exactly the same, as the only\n * difference would be slightly lower or higher resolution images.\n */\nconst hightlightPadding = 452;\n\nexport const globalNavHighlightSizes = `(max-width: ${mobileMaxWidth}px) 100vw, calc(100vw - ${hightlightPadding}px)`;\n\nexport const hightlightSizedSrcSets: SrcSetSizes = {\n  sizeToUrl: hightlightWidths.map(width => ({\n    size: `${width}w`,\n    settings: { quality: 70, width },\n  })),\n  sizes: globalNavHighlightSizes,\n};\n\nexport const GlobalNavHighlight: FC<GlobalNavHighlightAllType> = props => {\n  const [triggered, setTriggered] = useState<number>(0);\n  useActivation({ triggered, ctaProps: props?.cta });\n\n  const { cta, background, cardTitleV2, cardBodyV2 } = props;\n\n  const onActivate = () => {\n    // We increment the triggered here to change the useEffect hash\n    // and force another trigger. We do this since the activation can\n    // be an external link the user may want to open multiple times.\n    setTriggered(triggered + 1);\n  };\n\n  return (\n    <GlobalNavHighlightSDS\n      cardTitleV2={cardTitleV2}\n      cardBodyV2={cardBodyV2}\n      background={<Media {...background} sizedSrcSets={hightlightSizedSrcSets} />}\n      callToAction={<CallToAction {...cta} />}\n      onActivate={onActivate}\n    />\n  );\n};\n\nGlobalNavHighlight.displayName = 'GlobalNavHighlight';\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { GlobalComponentsContext } from '../../context/GlobalComponentsContext';\nimport type { CallToActionAllType } from '../../generated/contentful-types';\nimport { Button } from '../Button/Button';\n\nexport const CallToAction: FC<CallToActionAllType> = props => {\n  const { onError } = useContext(GlobalComponentsContext);\n\n  const { presentation, analytics, url } = props;\n\n  if (url) {\n    onError?.(new Error('The \"url\" field on CallToAction is no longer supported'));\n  }\n\n  if (presentation.__typename === 'Button') {\n    return <Button analyticsLabel={analytics?.label} {...presentation} />;\n  }\n\n  onError?.(new Error(`Unable to render CTA presentation \"${presentation.__typename}\"`));\n  return null;\n};\n\nCallToAction.displayName = 'CallToAction';\n", "import type {\n  ButtonSize,\n  ButtonType as ButtonTypeSDS,\n  IconName,\n} from '@snapchat/snap-design-system-marketing';\nimport { Button as ButtonSDS, PrimitivesProvider } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { Action } from '../../analytics/Action';\nimport { GlobalComponentsContext } from '../../context/GlobalComponentsContext';\nimport type { ButtonAllType } from '../../generated/contentful-types';\nimport { PlainRichText } from '../Contentful/PlainRichText';\n\ntype Props = ButtonAllType & {\n  target?: string;\n  analyticsLabel?: string;\n};\n\nexport const Button: FC<Props> = props => {\n  const { Anchor, onEvent } = useContext(GlobalComponentsContext);\n\n  const { url, target, buttonType, theme, title, size, image, iconName } = props;\n\n  const onClick = (): void => {\n    onEvent?.({\n      action: Action.Click,\n      component: 'Button',\n      url,\n      label: props.analyticsLabel,\n    });\n  };\n\n  const type = buttonType ?? theme;\n\n  return (\n    <PrimitivesProvider value={{ Anchor }}>\n      <ButtonSDS\n        link={url}\n        target={target}\n        type={type as ButtonTypeSDS}\n        onClick={onClick}\n        size={size as ButtonSize}\n        image={\n          image?.media\n            ? {\n                ...image?.media,\n                // TODO: These need to be coming from somewhere...\n                width: 24,\n                height: 24,\n              }\n            : undefined\n        }\n        iconName={iconName as IconName}\n      >\n        {title?.json && <PlainRichText document={title.json} />}\n      </ButtonSDS>\n    </PrimitivesProvider>\n  );\n};\n\nButton.displayName = 'Button';\n", "import { useContext, useEffect } from 'react';\n\nimport { Action } from '../../analytics/Action';\nimport { GlobalComponentsContext } from '../../context/GlobalComponentsContext';\nimport type { CallToActionAllType } from '../../generated/contentful-types';\n\ninterface UseActivationProps {\n  /**\n   * Signal to push the trigger. Anything that evaluates to true will trigger the action. Note that\n   * this can be a number to allow for multi-trigger scenarios (like opening a link in a new\n   * window).\n   */\n  triggered: boolean | number;\n  ctaProps?: CallToActionAllType;\n}\n\n/**\n * Hook for activating the action on a CTA.\n *\n * This is useful to manually trigger the CTA for example onClick by another element.\n *\n * Usage:\n *\n * `useActivation({triggered, ...ctaProps});`\n */\nexport const useActivation = ({ triggered, ctaProps }: UseActivationProps): void => {\n  const context = useContext(GlobalComponentsContext);\n  const { onEvent } = context;\n\n  const { presentation, url, analytics } = ctaProps ?? {};\n\n  const usesButton = presentation?.__typename === 'Button';\n\n  useEffect(() => {\n    if (!triggered || !usesButton) {\n      return;\n    }\n\n    const resolvedUrl = url ?? presentation?.url;\n\n    if (onEvent) {\n      onEvent({\n        action: Action.Click,\n        component: 'VirtualCallToAction',\n        label: analytics?.label,\n        url: resolvedUrl,\n      });\n    }\n\n    if (window) {\n      window.location.href = resolvedUrl;\n    }\n  }, [triggered, url, analytics?.label, onEvent, usesButton, presentation?.url]);\n};\n", "import type { ContentfulImageApiParams } from './getImageUrl';\nimport type { SrcSetSettings } from './useContentfulImages';\n\nconst maxSupportedDpr = 2;\n\ninterface DprData {\n  /** Used to store the always used default 1x dpr settings */\n  baseDprSettings: ContentfulImageApiParams;\n  /** Secondary DPR setting to support */\n  additionalDpr?: {\n    dpr: number;\n    settings: ContentfulImageApiParams;\n  };\n}\n\nexport const getDprDataByHeight = (defaultHeight: number, assetHeight: number): DprData => {\n  const result: DprData = {\n    baseDprSettings: { height: defaultHeight },\n  };\n\n  if (assetHeight <= defaultHeight) {\n    return result;\n  }\n\n  // If asset is less than default height, but not big enough to handle our max supported DPR\n  // calculate optimal size\n  if (defaultHeight < assetHeight && assetHeight < defaultHeight * maxSupportedDpr) {\n    result.additionalDpr = {\n      dpr: Number.parseFloat((assetHeight / defaultHeight).toFixed(4)),\n      settings: { height: assetHeight },\n    };\n\n    return result;\n  }\n\n  result.additionalDpr = {\n    dpr: maxSupportedDpr,\n    settings: { height: defaultHeight * maxSupportedDpr },\n  };\n\n  return result;\n};\n\nexport const getDprSrcSetSettingsByHeight = (\n  defaultHeight: number,\n  assetHeight: number\n): SrcSetSettings => {\n  const dprData = getDprDataByHeight(defaultHeight, assetHeight);\n\n  // if there is no additional DPR data (only base setting) return a single image setting\n  if (!dprData.additionalDpr) {\n    return { image: { height: defaultHeight } };\n  }\n\n  return {\n    size: {\n      sizeToUrl: [\n        {\n          size: '1x',\n          settings: dprData.baseDprSettings,\n        },\n        {\n          size: `${dprData.additionalDpr.dpr}x`,\n          settings: dprData.additionalDpr.settings,\n        },\n      ],\n    },\n  };\n};\n", "export type ImageFormat = 'jpg' | 'png' | 'webp' | 'avif';\n\nexport type ImageFit = 'pad' | 'fill' | 'scale' | 'crop' | 'thumb';\n\n/**\n * Settings object to help interface with Contentful Image API:\n * https://www.contentful.com/developers/docs/references/images-api/\n */\nexport interface ContentfulImageApiParams {\n  progressive?: boolean;\n  width?: number;\n  height?: number;\n  quality?: number;\n  format?: ImageFormat;\n  fit?: ImageFit;\n}\n\n/**\n * See\n * https://www.contentful.com/developers/docs/references/images-api/#/reference/resizing-&-cropping/specify-width-&-height\n */\nconst imgMaxWidth = 4000;\n\nconst imgMaxHeight = 4000;\n\ntype GetImageUrl = (args: {\n  // TODO: Make this optional.\n  imageUrl: string;\n  settings?: ContentfulImageApiParams;\n  currentUrl?: URL;\n}) => string;\n\n/**\n * Used to get an image url from Contentful abiding by the Images API:\n * https://www.contentful.com/developers/docs/references/images-api/ This will not work for images\n * not from Contentful (unless they also follow the same pattern as Contentful's Image API...)\n *\n * @returns Url as a string. Defaults to '' if no imageUrl is provided.\n *\n *   TODO: Consider renaming to \"tryGetImageUrl\".\n */\nexport const getImageUrl: GetImageUrl = ({ imageUrl, settings, currentUrl }) => {\n  if (!settings || !imageUrl) {\n    return imageUrl ?? '';\n  }\n\n  const { progressive, width, height, format, quality = 40, fit } = settings;\n\n  try {\n    const uri = new URL(imageUrl, currentUrl);\n\n    if (format) {\n      uri.searchParams.set('fm', format);\n    }\n\n    if (fit) {\n      uri.searchParams.set('fit', fit);\n    }\n\n    if (quality > 0 && quality <= 100) {\n      uri.searchParams.set('q', String(quality));\n    } else {\n      uri.searchParams.set('q', String(40));\n    }\n\n    if (progressive) {\n      uri.searchParams.set('fl', 'progressive');\n    }\n\n    if (width && 0 < width && width < imgMaxWidth) {\n      uri.searchParams.set('w', String(width));\n    }\n\n    if (height && 0 < height && height < imgMaxHeight) {\n      uri.searchParams.set('h', String(height));\n    }\n\n    return uri.href;\n  } catch (uriError) {\n    console.error('Error parsing URL', imageUrl, uriError);\n    return imageUrl;\n  }\n};\n", "import type { ConnectionType } from '@snapchat/client-hints';\nimport {\n  supportsAvif as supportsAvifCheck,\n  supportsWebP as supportsWebpCheck,\n} from '@snapchat/client-hints';\nimport { isBrowser } from '@snapchat/mw-common/client';\nimport { BrowserFeaturesContext } from '@snapchat/snap-design-system-marketing';\nimport merge from 'lodash-es/merge';\nimport { useCallback, useContext } from 'react';\n\nimport type { ContentfulImageApiParams } from './getImageUrl';\nimport { getImageUrl } from './getImageUrl';\n\nconst slowConnections = new Set<ConnectionType>(['slow-2g', '2g', '3g']);\n\nexport interface ImageSource {\n  url: string;\n  type: string;\n  sizes?: string;\n  media?: string;\n}\n\nexport interface ImageSources {\n  sources: ImageSource[];\n  default: string;\n  defaultSrcSet?: string;\n  defaultSizes?: string;\n}\n\n/**\n * Grouping between the image size (based on width, height or DPI (x)) to the Contentful api\n * settings.\n */\ninterface SizeToImageParams {\n  /**\n   * Size breakpoints. Must be consistent with all other sizes in the same srcset, e.g. all width\n   * based `w` or all dpr based `x`\n   */\n  size: string;\n  /** Image api settings for the url at this size breakpoint. */\n  settings: ContentfulImageApiParams;\n}\n\n/** Helper function that gets the best img format for a given url. */\nexport type GetBestImgSrc = (\n  url?: string,\n  settings?: ContentfulImageApiParams\n) => string | undefined;\n\n/**\n * Size setting object that specifies a size to url mapping, as well a sizes array of all sizes we\n * want to handle.\n */\nexport interface SrcSetSizes {\n  sizeToUrl: SizeToImageParams[];\n  sizes?: string;\n}\n\n/** Size settings to get srcSet with sizes. */\ninterface SrcSetSettingsBySizes {\n  size: SrcSetSizes;\n  media?: string;\n  quality?: number;\n}\n\n/** Settings for getting srcSet without sizes. */\n\ninterface SrcSetSettingsByImage {\n  image: ContentfulImageApiParams;\n}\n\n/**\n * Settings object that controls image settings OR size settings. If you have size and image, it\n * only checks size because each size can technically have its own image settings.\n *\n * This is used to set width/height and other properties per contentful image API.\n */\nexport type SrcSetSettings = SrcSetSettingsByImage | SrcSetSettingsBySizes;\n\n/**\n * Helper function that returns an ImageSources object. Can handle sizes or no sizes based on the\n * settings passed in.\n */\nexport type GetImageSources = (url?: string, settings?: SrcSetSettings) => ImageSources | undefined;\n\nexport const getSrcSetUrl = (\n  url: string,\n  settings?: SrcSetSettings,\n  // This overrides anything in settings\n  format?: 'webp' | 'avif' | 'png' | 'jpg'\n): string => {\n  if (!url) return '';\n\n  if (!!settings && 'size' in settings && settings.size) {\n    return settings.size.sizeToUrl\n      .map(({ size, settings }) => {\n        if (size) {\n          return `${getImageUrl({\n            imageUrl: url,\n            settings: { ...settings, format: format ?? settings?.format },\n          })} ${size}`;\n        }\n\n        return getImageUrl({\n          imageUrl: url,\n          settings: { ...settings, format: format ?? settings?.format },\n        });\n      })\n      .join(',');\n  }\n  const image = !!settings && 'image' in settings && settings.image ? settings.image : undefined;\n  return getImageUrl({\n    imageUrl: url,\n    settings: {\n      ...image,\n      format: format ?? image?.format,\n    },\n  });\n};\n\ninterface ContentfulImageHelpers {\n  getImageSources: GetImageSources;\n  getBestBgImgSrc: GetBestImgSrc;\n}\n\n/** Properties needed for determining how a contentful URL can be transformed. */\nexport type ImageTransformProps = {\n  supportsWebP: boolean;\n  supportsAvif: boolean;\n  isSlowConnection: boolean;\n};\n\n/**\n * Safari 16.1, 16.2, 16.3 and 16.4 it thinks that it can play avif, but it actually can't play\n * animated avif.\n *\n * See\n * https://stackoverflow.com/questions/75868335/safari-fallback-from-avif-to-gif-using-picture-tag-not-working\n *\n * When Safari 19 comes out (Sept 2025), we can drop support for Safari 16, and this won't matter\n * anymore.\n */\nfunction isOsxSafariAnimatedAvifBugCurrent(): boolean {\n  return new Date() >= new Date('2025-10-01');\n}\n\n/**\n * Hook that returns all the helper functions you need to use sourcesets and contentful images.\n * Technically doesn't need to be a hook, but if we move BrowserFeatures to common in the future, we\n * will need to make it a hook, so leaving as is... for now.\n *\n * Will try to use browser hints to determine the best image format and quality settings.\n *\n * @returns `getImageSources`: Helper function that returns ImageSources object for using srcsets.\n *\n *   `getBestBgImgSrc`: Returns the best possible img src url for the users browser when using\n *   background-image css.\n */\nexport function useContentfulImages(): ContentfulImageHelpers {\n  const browserFeatures = useContext(BrowserFeaturesContext);\n\n  // NOTE: This isn't a good solution because in pretty much all usecases this\n  // won't be populated yet. But, it's better than nothing. I (Alex) tried to\n  // do an async state update, but I get all sort of warnings and errors about\n  // async state updates and nothing renders in tests.\n  const connectionType = browserFeatures.getCachedHighEntropyHints()?.connection;\n\n  const isSlowConnection =\n    browserFeatures.getLowEntropyHints().saveData ||\n    !!(connectionType && slowConnections.has(connectionType));\n\n  const lowEntropyBrowserHints = browserFeatures.getLowEntropyHints();\n\n  return useContentfulImagesInternal({\n    isSlowConnection,\n    supportsAvif: supportsAvifCheck(lowEntropyBrowserHints),\n    supportsWebP: supportsWebpCheck(lowEntropyBrowserHints),\n  });\n}\n\n/**\n * DO NOT USE THIS HOOK DIRECTLY. Use `useContentfulImages` instead. This is exported for testing\n * purposes.\n */\nexport const useContentfulImagesInternal = (props: ImageTransformProps): ContentfulImageHelpers => {\n  const { isSlowConnection, supportsAvif: maybeSupportsAvif, supportsWebP } = props;\n\n  // We set `supportsAvif` to false on the server, so that we don't send a payload\n  // that the client can't use for animated avifs. For older devices that means\n  // they can still see the images. And for newever devices this introduces a\n  // re-render on the client (instead of a rehydration), but we discussed this as\n  // a team and chose this as the best option.\n  const supportsAvif = isOsxSafariAnimatedAvifBugCurrent()\n    ? isBrowser() && maybeSupportsAvif\n    : maybeSupportsAvif;\n\n  const getImageSources = useCallback<GetImageSources>(\n    (url, settings): ImageSources | undefined => {\n      if (!url) {\n        return undefined;\n      }\n\n      // Override the quality setting if the connection is slow.\n      if (settings && isSlowConnection) {\n        if ('image' in settings) {\n          merge(settings, { image: { quality: 10 } });\n        } else {\n          settings.quality = 10;\n        }\n      }\n\n      const isSvg = url.toLowerCase().endsWith('.svg');\n\n      let sources: ImageSource[] = [];\n\n      if (isSvg) {\n        sources = [{ type: 'image/svg+xml', url }];\n      } else {\n        const sizes = !!settings && 'size' in settings ? settings?.size?.sizes : undefined;\n        const media = !!settings && 'media' in settings ? settings?.media : undefined;\n\n        // It's always safe to register webP. It will be skipped if the browser doesn't support it.\n        sources.unshift({\n          type: 'image/webp',\n          url: getSrcSetUrl(url, settings, 'webp'),\n          sizes,\n          media,\n        });\n\n        // Avif should override webp. Can't always add it because of the IOS Safari bug.\n        if (supportsAvif) {\n          sources.unshift({\n            type: 'image/avif',\n            url: getSrcSetUrl(url, settings, 'avif'),\n            sizes,\n            media,\n          });\n        }\n      }\n\n      let defaultSettings: SrcSetSettings | undefined =\n        settings && 'image' in settings ? { image: settings?.image } : undefined;\n\n      // If we passed in size settings, find the smallest setting and use it on the <img> tags src\n      if (!!settings && 'size' in settings && settings.size) {\n        const lowestSettings = settings.size.sizeToUrl.reduce((prev, cur) => {\n          if (!prev) {\n            return cur;\n          }\n\n          return Number.parseInt(prev.size) < Number.parseInt(cur.size) ? prev : cur;\n        });\n        defaultSettings = { image: lowestSettings.settings };\n      }\n\n      return {\n        sources,\n        // Only pass in settings if there are NO size settings, since the default url is used\n        // on the <img src={here} /> so it doesn't take srcset\n        default: getSrcSetUrl(url, defaultSettings),\n      };\n    },\n    [isSlowConnection, supportsAvif]\n  );\n\n  const getBestBgImgSrc = useCallback(\n    (url?: string, settings?: ContentfulImageApiParams) => {\n      if (!url) {\n        return undefined;\n      }\n\n      if (url.toLowerCase().endsWith('.svg')) {\n        return url;\n      }\n\n      // Default to jpg since some images are png which can be large.\n      const bestFormat = (supportsAvif && 'avif') || (supportsWebP && 'webp') || 'jpg';\n\n      const finalSettings = { ...settings };\n\n      if (bestFormat) {\n        finalSettings.format = bestFormat;\n      }\n\n      return getImageUrl({ imageUrl: url, settings: finalSettings });\n    },\n    [supportsAvif, supportsWebP]\n  );\n\n  return {\n    getImageSources,\n    getBestBgImgSrc,\n  };\n};\n", "import type { SrcSetSizes } from '@snapchat/mw-contentful-client';\nimport { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport { Media as MediaSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { GlobalComponentsContext } from '../../context/GlobalComponentsContext';\nimport type { AssetAllType } from '../../generated/contentful-types';\nimport { isImageUrl, isVideoUrl } from './mediaUtils';\n\ntype MediaWithSizes = AssetAllType & { sizedSrcSets?: SrcSetSizes };\n\nexport const Media: FC<MediaWithSizes> = props => {\n  const { onError } = useContext(GlobalComponentsContext);\n  const { contentType, url, description, sizedSrcSets: sizeSettings } = props;\n  const { getImageSources } = useContentfulImages();\n\n  if (isImageUrl(contentType)) {\n    //TODO: eventaully move to using a PictureSDS and VideoSDS ENTWEB-6350\n    let imgSrcs = getImageSources(url);\n\n    if (sizeSettings) {\n      imgSrcs = getImageSources(url, { size: sizeSettings });\n    }\n\n    return <MediaSDS sourceType={contentType} imgSrcs={imgSrcs} altText={description} />;\n  }\n\n  if (isVideoUrl(contentType)) {\n    return (\n      <MediaSDS\n        sourceType={contentType}\n        videoSource={url}\n        showVideoControls={true}\n        maxHeight={600}\n        altText={description}\n      />\n    );\n  }\n  onError?.(`Unsupported Mdea type ${contentType}`);\n  return null;\n};\n", "import type { SrcSetSizes } from '@snapchat/mw-contentful-client';\n\nexport const isVideoUrl = (contentType: string | null): boolean => {\n  if (!contentType) return false;\n  return contentType.startsWith('video');\n};\n\nexport const isImageUrl = (contentType: string | null): boolean => {\n  if (!contentType) return false;\n  return contentType.startsWith('image');\n};\n\nexport interface MediaPreloadSettings {\n  sizedSrcSets?: SrcSetSizes;\n  skipPreload?: () => boolean;\n}\n", "import type { BackgroundColor } from '@snapchat/snap-design-system-marketing';\nimport {\n  GlobalHeaderContext,\n  GlobalNavScreen as GlobalNavScreenSDS,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC, ReactNode } from 'react';\nimport { useContext } from 'react';\n\nimport type { GlobalNavAllType } from '../../generated/contentful-types';\nimport { GlobalNavGroupCollection } from '../GlobalNavGroupCollection/GlobalNavGroupCollection';\nimport { GlobalNavHighlightCollection } from '../GlobalNavHighlightCollection/GlobalNavHighlightCollection';\n\ninterface GlobalNavGroupScreenProps {\n  backgroundColor: BackgroundColor;\n  localNavMobile: ReactNode;\n  localNavMobileFooter?: ReactNode;\n  navGroups: readonly GlobalNavAllType[];\n  globalNavHeading: string;\n  showMobileGlobalLinks?: boolean;\n}\n\nexport const GlobalNavGroupScreen: FC<GlobalNavGroupScreenProps> = ({\n  backgroundColor,\n  localNavMobile,\n  localNavMobileFooter,\n  navGroups,\n  globalNavHeading,\n  showMobileGlobalLinks,\n}) => {\n  const { toggleExpanded } = useContext(GlobalHeaderContext);\n  const onNavClose = toggleExpanded ?? (() => null);\n  return (\n    <GlobalNavScreenSDS\n      localNavMobile={localNavMobile}\n      localNavMobileFooter={localNavMobileFooter}\n      onNavClose={onNavClose}\n      backgroundColor={backgroundColor}\n      globalNavHeading={globalNavHeading}\n      highlight={<GlobalNavHighlightCollection navGroups={navGroups} />}\n      globalNav={<GlobalNavGroupCollection navGroups={navGroups} />}\n      showMobileGlobalLinks={showMobileGlobalLinks}\n    />\n  );\n};\nGlobalNavGroupScreen.displayName = 'GlobalNavGroupScreen';\n", "import baseEach from './_baseEach.js';\n\n/**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n  var result = [];\n  baseEach(collection, function(value, index, collection) {\n    if (predicate(value, index, collection)) {\n      result.push(value);\n    }\n  });\n  return result;\n}\n\nexport default baseFilter;\n", "/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n *   return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\nfunction negate(predicate) {\n  if (typeof predicate != 'function') {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  return function() {\n    var args = arguments;\n    switch (args.length) {\n      case 0: return !predicate.call(this);\n      case 1: return !predicate.call(this, args[0]);\n      case 2: return !predicate.call(this, args[0], args[1]);\n      case 3: return !predicate.call(this, args[0], args[1], args[2]);\n    }\n    return !predicate.apply(this, args);\n  };\n}\n\nexport default negate;\n", "import arrayFilter from './_arrayFilter.js';\nimport baseFilter from './_baseFilter.js';\nimport baseIteratee from './_baseIteratee.js';\nimport isArray from './isArray.js';\nimport negate from './negate.js';\n\n/**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n *   { 'user': 'barney', 'age': 36, 'active': false },\n *   { 'user': 'fred',   'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\nfunction reject(collection, predicate) {\n  var func = isArray(collection) ? arrayFilter : baseFilter;\n  return func(collection, negate(baseIteratee(predicate, 3)));\n}\n\nexport default reject;\n", "import reject from 'lodash-es/reject';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { GlobalComponentsContext } from '../../context/GlobalComponentsContext';\nimport type { GlobalNavAllType } from '../../generated/contentful-types';\nimport { GlobalNavGroup } from '../GlobalNavGroup/GlobalNavGroup';\n\n/** Returns a sorted list of nav groups. */\nexport function sortNavGroups(\n  navGroups: readonly GlobalNavAllType[],\n  isPromoted: (group: GlobalNavAllType) => boolean\n): GlobalNavAllType[] {\n  return [...navGroups.filter(isPromoted), ...reject(navGroups, isPromoted)];\n}\n\n/** Returns a filtered list of nav groups that should remain visible */\nconst filterNavGroups = (\n  navGroups: readonly GlobalNavAllType[],\n  hostname: string\n): GlobalNavAllType[] =>\n  navGroups.filter(\n    navGroup => !navGroup.hideHostnameRegex || new RegExp(navGroup.hideHostnameRegex).test(hostname)\n  );\n\ninterface Props {\n  navGroups: ReadonlyArray<GlobalNavAllType>;\n}\n\nexport const GlobalNavGroupCollection: FC<Props> = ({ navGroups }) => {\n  const { hostname } = useContext(GlobalComponentsContext);\n  const isPromoted = (group: GlobalNavAllType) =>\n    !!group.primaryHostnameRegex && new RegExp(group.primaryHostnameRegex).test(hostname);\n  const filteredNavGroups = filterNavGroups(navGroups, hostname);\n  const sortedNavGroups = sortNavGroups(filteredNavGroups, isPromoted);\n  return (\n    <>\n      {sortedNavGroups.map(props => (\n        <GlobalNavGroup key={props.groupKey} {...props} />\n      ))}\n    </>\n  );\n};\nGlobalNavGroupCollection.displayName = 'GlobalNavGroupCollection';\n", "import { GlobalNavItem as GlobalNavItemSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC, MouseEventHandler } from 'react';\nimport { useContext } from 'react';\n\nimport { Action } from '../../analytics/Action';\nimport { GlobalComponentsContext } from '../../context/GlobalComponentsContext';\nimport type { GlobalNavItemAllType } from '../../generated/contentful-types';\n\nconst isHiddenNavItem = (hideHostnameRegex: string | undefined, hostname: string) => {\n  return !!hideHostnameRegex && new RegExp(hideHostnameRegex).test(hostname);\n};\n\nexport const GlobalNavItem: FC<GlobalNavItemAllType> = ({\n  hideHostnameRegex,\n  title,\n  url,\n  analytics,\n}) => {\n  const { onEvent } = useContext(GlobalComponentsContext);\n\n  const onClick: MouseEventHandler = (): void => {\n    if (onEvent) {\n      onEvent({\n        action: Action.Click,\n        component: 'GlobalNavItem',\n        label: analytics?.label,\n        url,\n      });\n    }\n  };\n\n  return !isHiddenNavItem(hideHostnameRegex, window.location.hostname) ? (\n    <GlobalNavItemSDS title={title} href={url} showExternalIcon={false} onClick={onClick} />\n  ) : null;\n};\n\nGlobalNavItem.displayName = 'GlobalNavItem';\n", "import { GlobalNavGroup as GlobalNavGroupSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport type { GlobalNavAllType } from '../../generated/contentful-types';\nimport { GlobalNavHighlight } from '../GlobalNavHighlight/GlobalNavHighlight';\nimport { GlobalNavItem } from '../GlobalNavItem/GlobalNavItem';\n\nexport const GlobalNavGroup: FC<GlobalNavAllType> = ({\n  title,\n  groupKey,\n  itemsCollection,\n  highlight,\n}) => {\n  // TODO: This wasn't done here before. Might screw things up because of how bad the highlights\n  // look on mobile. Should ask design before going live with this.\n  const mobileNavHighlight = <GlobalNavHighlight {...highlight} />;\n  return (\n    <GlobalNavGroupSDS\n      navGroupKey={groupKey}\n      title={title}\n      mobileHighlight={mobileNavHighlight}\n      isExpandable\n    >\n      {itemsCollection?.items.map((itemProps, i) => (\n        <GlobalNavItem key={`nav-item-${i}`} {...itemProps} />\n      ))}\n    </GlobalNavGroupSDS>\n  );\n};\n\nGlobalNavGroup.displayName = 'GlobalNavGroup';\n", "// eslint-disable-next-line max-len\nimport { GlobalNavHighlightReel as GlobalNavHighlightReelSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC, ReactElement } from 'react';\n\nimport type { GlobalNavAllType } from '../../generated/contentful-types';\nimport { GlobalNavHighlight } from '../GlobalNavHighlight/GlobalNavHighlight';\n\ninterface Props {\n  navGroups: ReadonlyArray<GlobalNavAllType>;\n}\n\nexport const GlobalNavHighlightCollection: FC<Props> = props => {\n  const highlights = new Map<string, ReactElement>();\n\n  props.navGroups\n    .filter(group => !!group.highlight)\n    .forEach(navGroup => {\n      highlights.set(navGroup.groupKey, <GlobalNavHighlight {...navGroup.highlight} />);\n    });\n\n  return <GlobalNavHighlightReelSDS highlights={highlights} />;\n};\nGlobalNavHighlightCollection.displayName = 'GlobalNavHighlightCollection';\n", "import { getImageUrl, getSrcSetUrl } from '@snapchat/mw-contentful-client';\nimport { useContext, useEffect } from 'react';\n\nimport { GlobalComponentsContext } from '../../context/GlobalComponentsContext';\nimport type { AssetAllType } from '../../generated/contentful-types';\nimport type { MediaPreloadSettings } from './mediaUtils';\nimport { isImageUrl, isVideoUrl } from './mediaUtils';\n\n/**\n * Hook to preload images from contentful. Pre-loading images not from contentful will break because\n * we use the Image API to get certain formats and sizes.\n */\nexport const useMediaPreload = (\n  media?: Array<AssetAllType>,\n  isImportant = false,\n  settings?: MediaPreloadSettings\n): void => {\n  const { onError } = useContext(GlobalComponentsContext);\n\n  useEffect(() => {\n    if (!document || !media) {\n      return;\n    }\n\n    if (settings?.skipPreload?.()) {\n      return;\n    }\n\n    if (isImportant) {\n      const preloads = media.map(asset => {\n        const link = document.createElement('link');\n        link.rel = 'preload';\n        link.as = isVideoUrl(asset.contentType) ? 'video' : 'image';\n        link.href = asset.url;\n        return link;\n      });\n\n      document.head.append(...preloads);\n    } else {\n      for (const asset of media) {\n        if (isVideoUrl(asset.contentType)) {\n          const video = document.createElement('video');\n          const source = document.createElement('source');\n          source.type = asset.contentType;\n          source.src = asset.url;\n          video.appendChild(source);\n          video.load();\n        } else if (isImageUrl(asset.contentType)) {\n          if (!asset.url) return;\n          const picture = document.createElement('picture');\n          const avifSrc = document.createElement('source');\n          const webpSrc = document.createElement('source');\n          const img = document.createElement('img');\n\n          if (asset.url.endsWith('.svg')) {\n            //No load necessary. this triggers browsers to load the img based on source\n            img.src = asset.url;\n          } else if (settings?.sizedSrcSets) {\n            const { sizedSrcSets: size } = settings;\n\n            avifSrc.srcset = getSrcSetUrl(asset.url, { size }, 'avif');\n            avifSrc.type = 'image/avif';\n            webpSrc.srcset = getSrcSetUrl(asset.url, { size }, 'webp');\n            webpSrc.type = 'image/webp';\n\n            if (size.sizes) {\n              avifSrc.sizes = size.sizes;\n              webpSrc.sizes = size.sizes;\n              img.sizes = size.sizes;\n            }\n\n            // we have to append after the srcs for source are set or else safari eagerly loads it all\n            picture.appendChild(avifSrc);\n            picture.appendChild(webpSrc);\n            picture.appendChild(img);\n\n            //No load necessary (or even setting src). this triggers browsers to load the img based on source\n            img.srcset = getSrcSetUrl(asset.url, { size }, 'jpg');\n          } else {\n            avifSrc.srcset = getImageUrl({ imageUrl: asset.url, settings: { format: 'avif' } });\n            avifSrc.type = 'image/avif';\n            webpSrc.srcset = getImageUrl({ imageUrl: asset.url, settings: { format: 'webp' } });\n            webpSrc.type = 'image/webp';\n\n            // we have to append after the srcs for source are set or else safari eagerly loads it all\n            picture.appendChild(avifSrc);\n            picture.appendChild(webpSrc);\n            picture.appendChild(img);\n\n            //No load necessary. this triggers browsers to load the img based on source\n            img.src = asset.url;\n          }\n        } else {\n          onError?.(`Cannot preload assets of type ${asset.contentType}`);\n        }\n      }\n    }\n  }, [media, isImportant, onError, settings]);\n};\n", "import type { Operation } from \"../core/index.js\";\n\n/**\n * Advanced mode: a function that implements the strategy for calculating delays\n * for particular responses.\n */\nexport interface DelayFunction {\n  (count: number, operation: Operation, error: any): number;\n}\n\nexport interface DelayFunctionOptions {\n  /**\n   * The number of milliseconds to wait before attempting the first retry.\n   *\n   * Delays will increase exponentially for each attempt.  E.g. if this is\n   * set to 100, subsequent retries will be delayed by 200, 400, 800, etc,\n   * until they reach maxDelay.\n   *\n   * Note that if jittering is enabled, this is the _average_ delay.\n   *\n   * Defaults to 300.\n   */\n  initial?: number;\n\n  /**\n   * The maximum number of milliseconds that the link should wait for any\n   * retry.\n   *\n   * Defaults to Infinity.\n   */\n  max?: number;\n\n  /**\n   * Whether delays between attempts should be randomized.\n   *\n   * This helps avoid thundering herd type situations by better distributing\n   * load during major outages.\n   *\n   * Defaults to true.\n   */\n  jitter?: boolean;\n}\n\nexport function buildDelayFunction(\n  delayOptions?: DelayFunctionOptions\n): DelayFunction {\n  const { initial = 300, jitter = true, max = Infinity } = delayOptions || {};\n  // If we're jittering, baseDelay is half of the maximum delay for that\n  // attempt (and is, on average, the delay we will encounter).\n  // If we're not jittering, adjust baseDelay so that the first attempt\n  // lines up with initialDelay, for everyone's sanity.\n  const baseDelay = jitter ? initial : initial / 2;\n\n  return function delayFunction(count: number) {\n    let delay = Math.min(max, baseDelay * 2 ** count);\n    if (jitter) {\n      // We opt for a full jitter approach for a mostly uniform distribution,\n      // but bound it within initialDelay and delay for everyone's sanity.\n      delay = Math.random() * delay;\n    }\n\n    return delay;\n  };\n}\n", "import type { Operation } from \"../core/index.js\";\n\n/**\n * Advanced mode: a function that determines both whether a particular\n * response should be retried.\n */\nexport interface RetryFunction {\n  (count: number, operation: Operation, error: any): boolean | Promise<boolean>;\n}\n\nexport interface RetryFunctionOptions {\n  /**\n   * The max number of times to try a single operation before giving up.\n   *\n   * Note that this INCLUDES the initial request as part of the count.\n   * E.g. maxTries of 1 indicates no retrying should occur.\n   *\n   * Defaults to 5.  Pass Infinity for infinite retries.\n   */\n  max?: number;\n\n  /**\n   * Predicate function that determines whether a particular error should\n   * trigger a retry.\n   *\n   * For example, you may want to not retry 4xx class HTTP errors.\n   *\n   * By default, all errors are retried.\n   */\n  retryIf?: (error: any, operation: Operation) => boolean | Promise<boolean>;\n}\n\nexport function buildRetryFunction(\n  retryOptions?: RetryFunctionOptions\n): RetryFunction {\n  const { retryIf, max = 5 } = retryOptions || ({} as RetryFunctionOptions);\n  return function retryFunction(count, operation, error) {\n    if (count >= max) return false;\n    return retryIf ? retryIf(error, operation) : !!error;\n  };\n}\n", "import type { Operation, FetchResult, NextLink } from \"../core/index.js\";\nimport { ApolloLink } from \"../core/index.js\";\nimport type { ObservableSubscription } from \"../../utilities/index.js\";\nimport { Observable } from \"../../utilities/index.js\";\nimport type { DelayFunction, DelayFunctionOptions } from \"./delayFunction.js\";\nimport { buildDelayFunction } from \"./delayFunction.js\";\nimport type { RetryFunction, RetryFunctionOptions } from \"./retryFunction.js\";\nimport { buildRetryFunction } from \"./retryFunction.js\";\nimport type { SubscriptionObserver } from \"zen-observable-ts\";\n\nexport namespace RetryLink {\n  export interface Options {\n    /**\n     * Configuration for the delay strategy to use, or a custom delay strategy.\n     */\n    delay?: DelayFunctionOptions | DelayFunction;\n\n    /**\n     * Configuration for the retry strategy to use, or a custom retry strategy.\n     */\n    attempts?: RetryFunctionOptions | RetryFunction;\n  }\n}\n\n/**\n * Tracking and management of operations that may be (or currently are) retried.\n */\nclass RetryableOperation {\n  private retryCount: number = 0;\n  private currentSubscription: ObservableSubscription | null = null;\n  private timerId: number | undefined;\n\n  constructor(\n    private observer: SubscriptionObserver<FetchResult>,\n    private operation: Operation,\n    private forward: NextLink,\n    private delayFor: DelayFunction,\n    private retryIf: RetryFunction\n  ) {\n    this.try();\n  }\n\n  /**\n   * Stop retrying for the operation, and cancel any in-progress requests.\n   */\n  public cancel() {\n    if (this.currentSubscription) {\n      this.currentSubscription.unsubscribe();\n    }\n    clearTimeout(this.timerId);\n    this.timerId = undefined;\n    this.currentSubscription = null;\n  }\n\n  private try() {\n    this.currentSubscription = this.forward(this.operation).subscribe({\n      next: this.observer.next.bind(this.observer),\n      error: this.onError,\n      complete: this.observer.complete.bind(this.observer),\n    });\n  }\n\n  private onError = async (error: any) => {\n    this.retryCount += 1;\n\n    // Should we retry?\n    const shouldRetry = await this.retryIf(\n      this.retryCount,\n      this.operation,\n      error\n    );\n    if (shouldRetry) {\n      this.scheduleRetry(this.delayFor(this.retryCount, this.operation, error));\n      return;\n    }\n\n    this.observer.error(error);\n  };\n\n  private scheduleRetry(delay: number) {\n    if (this.timerId) {\n      throw new Error(`RetryLink BUG! Encountered overlapping retries`);\n    }\n\n    this.timerId = setTimeout(() => {\n      this.timerId = undefined;\n      this.try();\n    }, delay) as any as number;\n  }\n}\n\nexport class RetryLink extends ApolloLink {\n  private delayFor: DelayFunction;\n  private retryIf: RetryFunction;\n\n  constructor(options?: RetryLink.Options) {\n    super();\n    const { attempts, delay } = options || ({} as RetryLink.Options);\n    this.delayFor =\n      typeof delay === \"function\" ? delay : buildDelayFunction(delay);\n    this.retryIf =\n      typeof attempts === \"function\" ? attempts : buildRetryFunction(attempts);\n  }\n\n  public request(\n    operation: Operation,\n    nextLink: NextLink\n  ): Observable<FetchResult> {\n    return new Observable((observer) => {\n      const retryable = new RetryableOperation(\n        observer,\n        operation,\n        nextLink,\n        this.delayFor,\n        this.retryIf\n      );\n      return () => {\n        retryable.cancel();\n      };\n    });\n  }\n}\n", "import type { ApolloClient, NormalizedCacheObject } from '@apollo/client';\nimport { ApolloProvider } from '@apollo/client';\nimport { injectGlobal } from '@emotion/css';\nimport type { AsyncDataController } from '@snapchat/async-data';\nimport { AsyncDataContext } from '@snapchat/async-data-browser';\nimport type { BrowserInfo } from '@snapchat/client-hints';\nimport { useBrowserLayoutEffect } from '@snapchat/mw-common/client';\nimport type { GlobalComponentsProps } from '@snapchat/mw-global-components';\nimport { GlobalComponentsContextProvider } from '@snapchat/mw-global-components';\nimport type { MapOf } from '@snapchat/snap-design-system-marketing';\nimport {\n  BrowserFeaturesContext,\n  defaultPrimitivesContext,\n  GlobalHeaderContext,\n  PrimitivesContext,\n} from '@snapchat/snap-design-system-marketing';\nimport type { History } from 'history';\nimport type { FC, PropsWithChildren } from 'react';\nimport { StrictMode, useEffect, useRef, useState } from 'react';\nimport type { HelmetData } from 'react-helmet-async';\nimport { HelmetProvider } from 'react-helmet-async';\nimport type { StaticRouterContext } from 'react-router';\nimport { BrowserRouter, StaticRouter, useHistory } from 'react-router-dom';\n\nimport type { AppProviderProps, PassThroughAppProviderProps } from './AppContext';\nimport { AppContext, defaultContext } from './AppContext';\nimport { Anchor } from './components/Anchor';\nimport { GlobalAnimations } from './components/Animations/GlobalAnimations';\nimport { Cart } from './components/Cart';\nimport type { ShopifyResponse } from './components/Cart/types';\nimport type { ConsumerContextProps } from './components/ConsumerContextProvider';\nimport {\n  ConsumerContext,\n  filtersToUrlParams,\n  urlParamsToFilters,\n} from './components/ConsumerContextProvider';\nimport {\n  ContentfulLivePreview,\n  ContentfulLivePreviewContextProvider,\n} from './components/ContentfulLivePreview';\nimport { CookiePopup } from './components/CookiePopup';\nimport { DirectionDirective } from './components/DirectionDirective/DirectionDirective';\nimport { directionFromLocale } from './components/DirectionDirective/languageDirection';\nimport { Favicon } from './components/Favicon';\nimport { Footer } from './components/FooterWrapper';\nimport { HardcodedComponents } from './components/HardcodedComponents/HardcodedComponents';\nimport { Header } from './components/Header';\nimport { IntlProvider } from './components/IntlProvider';\nimport { LanguageDirective } from './components/LanguageDirective/LanguageDirective';\nimport { LoadingBar } from './components/LoadingBar';\nimport { LogAdBlockUsage } from './components/logging/LogAdBlockUsage';\nimport { LogCspViolation } from './components/logging/LogCspViolation';\nimport { LogPageLoad } from './components/logging/LogPageLoad';\nimport { LogScrollDepth } from './components/logging/LogScrollDepth';\nimport { MotifRootWrapper } from './components/MotifRootWrapper/MotifRootWrapper';\nimport { ShopifyProvider } from './components/ShopifyProvider';\nimport { StyleHacks } from './components/StyleHacks/StyleHacks';\nimport { Viewport } from './components/Viewport';\nimport { Config } from './config';\nimport type { PageLayoutContextProps } from './context/PageLayoutContext';\nimport { PageLayoutProvider } from './context/PageLayoutProvider';\nimport { SitewideConfigurationProvider } from './context/SitewideConfiguration/SitewideConfigurationProvider';\nimport { ErrorBoundary } from './ErrorBoundary';\nimport { FontChecker } from './helpers/FontChecker';\nimport { createIsCurrentUrl, isLocalUrl } from './helpers/getLocalPath';\nimport type { LoggingContext } from './helpers/logging';\nimport {\n  logError,\n  logEvent as internalLogEvent,\n  logger,\n  SubscribedEventType,\n} from './helpers/logging';\nimport { googleAnalyticsEventName } from './helpers/logging/google/GoogleEventListener';\nimport { getCookieSettingsUrl } from './helpers/trackingCookies';\nimport { SingleCallbackCacheContext } from './hooks/useSingleCallback';\nimport { Routes } from './Routes';\nimport { getSiteMotif } from './styles/getSiteMotif';\nimport { ContentfulContext, getContentfulContext } from './utils/contentful/ContentfulContext';\nimport { initWebVitalsLogging } from './utils/initWebVitalsLogging';\nimport type { SingleCallbackCache } from './utils/singleCallback';\nimport { getTracer } from './utils/tracing/tracer';\nimport { userAgentHintsFromBowser } from './utils/userAgent/userAgentHints';\n\n/**\n * App component props.\n *\n * This includes anything that can be used by sub-components in the AppProviderProps, and the others\n * are listed here.\n */\nexport interface AppProps extends PassThroughAppProviderProps {\n  routerContext: StaticRouterContext;\n  helmetContext: HelmetData;\n  shopifyData?: ShopifyResponse;\n  apolloClient: ApolloClient<NormalizedCacheObject>;\n  globalApolloClient?: ApolloClient<NormalizedCacheObject>;\n  onHistory?: (history: History<unknown>) => void;\n  browserFeatures: BrowserInfo;\n  asyncDataController: AsyncDataController;\n  pageLayoutContext: PageLayoutContextProps;\n  globalPrivacyControl: boolean;\n  singleCallbackCache: SingleCallbackCache;\n}\n\nexport const HistoryCaptor: FC<{ onHistory: AppProps['onHistory'] }> = ({ onHistory }) => {\n  const history = useHistory();\n  onHistory?.(history);\n  return null;\n};\n\n/** Entry point for the react application. */\nexport const App: FC<AppProps> = ({\n  getCurrentUrl,\n  currentLocale,\n  supportedLocales,\n  routerContext,\n  userLocation,\n  shopifyData,\n  helmetContext,\n  pageLayoutContext,\n  apolloClient,\n  globalApolloClient,\n  siteData,\n  browserFeatures,\n  onRedirect,\n  onHistory,\n  asyncDataController,\n  globalPrivacyControl,\n  cookieManager,\n  getUserInfo,\n  createUuidV4,\n  singleCallbackCache,\n}) => {\n  const appRenderTrace = getTracer().startSpan('appRender');\n\n  const url = new URL(getCurrentUrl());\n\n  // TODO: Make the Router a parameter in AppProps and just pass the relevant\n  // routers as props.\n  let Router: FC<PropsWithChildren>;\n\n  if (Config.isClient) {\n    // eslint-disable-next-line react/display-name\n    Router = ({ children }) => (\n      <BrowserRouter>\n        <HistoryCaptor onHistory={onHistory} />\n        {children}\n      </BrowserRouter>\n    );\n  } else {\n    // eslint-disable-next-line react/display-name\n    Router = ({ children }) => (\n      <StaticRouter location={url.pathname} context={routerContext}>\n        {children}\n      </StaticRouter>\n    );\n  }\n  Router.displayName = 'Router';\n\n  // A naive attempt to seed some high entropy client hints.\n  // OK to run on re-render as the cache is hit.\n  // Components that use high entropy hints are still encouraged to call the\n  // async method to get the final value, but the default value should be\n  // populated from cache (i.e. browserFeatures.getCachedHighEntropyHints) which\n  // this will seed.\n  //\n  // NOTE: We don't include 'viewportWidth' and 'viewportHeight' here because\n  // We don't include the necessary headers in the CDN cache key since they\n  // have too high cardinality.\n  void browserFeatures.getHighEntropyHintsAsync({\n    hints: ['connection', 'reduceMotion'],\n  });\n\n  const userAgentHints = userAgentHintsFromBowser(browserFeatures);\n\n  const isRtl = directionFromLocale(currentLocale) === 'rtl';\n\n  // Sets the global logging context. Only works for client side.\n  // See loggingInitServer for the server - side version.\n  // Has to be run before any children render\n  useBrowserLayoutEffect(() => {\n    const appContextProvider = (): Partial<LoggingContext> => {\n      // We want to get a new URL each time. This is so we can pick up\n      // any changes pushed directly onto the URL, like via `history.pushState`.\n      // This is a little controversial because anything added through `history.pushState`\n      // DOES NOT get reflected by react.\n      const url = new URL(getCurrentUrl());\n      return {\n        locale: currentLocale,\n        url,\n        hostname: url.hostname,\n        userAgentHints,\n        uaBrand: userAgentHints?.brand,\n        uaPlatform: userAgentHints?.platform,\n        path: url.pathname,\n        userCountry: userLocation.country,\n        isRtl,\n      };\n    };\n    logger.addContextProvider(appContextProvider);\n\n    return () => logger.removeContextProvider(appContextProvider);\n  }, [currentLocale, url, isRtl, userAgentHints, userLocation.country]);\n\n  // Initializes web vitals logging\n  useEffect(() => {\n    initWebVitalsLogging();\n  }, [\n    currentLocale,\n    getCurrentUrl,\n    isRtl,\n    url.hostname,\n    url.pathname,\n    userAgentHints,\n    userLocation.country,\n  ]);\n\n  const consumerContext: ConsumerContextProps = {\n    supportedLocales,\n    currentLocale: supportedLocales[currentLocale ?? defaultContext.currentLocale]!.code,\n    logEvent: ({ type, label, url, component }) => {\n      if (!(type && (label || url))) {\n        return;\n      }\n\n      internalLogEvent({\n        // By default we assume that SDS-M only logs user events, not any internal events.\n        subscribedEventType: SubscribedEventType.USER_INTERACTION,\n        // For legacy reasons, we default the component as CTA.\n        // TODO: Clean up this assumption and make the event category mandatory.\n        eventCategory: component ?? 'CTA',\n        eventAction: type,\n        eventLabel: label ?? (url ? `to: ${url}` : undefined),\n      });\n    },\n    isUrlCurrent: createIsCurrentUrl(getCurrentUrl),\n    getUrlParams: () => {\n      const search = new URL(getCurrentUrl()).search;\n      return urlParamsToFilters(search);\n    },\n    setUrlParams: (paramsObj: MapOf<string | undefined>) => {\n      if (!Config.isClient) return;\n\n      const { pathname } = window.location;\n      const paramsStr = filtersToUrlParams(paramsObj);\n      const newPath = `${pathname}?${paramsStr}`;\n\n      // push to window to bypass scrolling behavior of redirectTo()\n      window.history.pushState(null, '', newPath);\n    },\n  };\n\n  // Test for duplicate SDSM contexts.\n  // TODO: Write a proper invariant file. Tracking: https://jira.sc-corp.net/browse/ENTWEB-4284\n  if (GlobalHeaderContext.displayName !== 'GlobalHeaderContextSDSM') {\n    throw new Error(\n      'Duplicate SDS-M packages found. See https://jira.sc-corp.net/browse/ENTWEB-4284'\n    );\n  }\n\n  const globalComponentsContext: GlobalComponentsProps = {\n    onError: error => {\n      logError({\n        component: 'GlobalComponents',\n        error: error instanceof Error ? error : undefined,\n        message: typeof error === 'string' ? error : undefined,\n      });\n    },\n    Anchor,\n    currentLocale,\n    isPreview: Config.isPreview,\n    isSSR: Config.isSSR,\n    hostname: Config.domainName,\n    onEvent: ({ component, action, label, url }) => {\n      internalLogEvent({\n        subscribedEventType: SubscribedEventType.USER_INTERACTION,\n        event: googleAnalyticsEventName,\n        eventCategory: component ?? 'GlobalComponent',\n        eventAction: action,\n        eventLabel: label ?? (url ? `to: ${url}` : 'generic'),\n      });\n\n      // If we're logging a Navigation event (has a URL), and we're leaving the\n      // tab, we should flush the loggers so that we attempt to send the logs\n      // out before the browser terminates this tab's JS loop.\n      if (url && !isLocalUrl(new URL(url, getCurrentUrl()))) {\n        void logger.flush();\n      }\n    },\n    supportedLocales,\n    // Moved here from part of footer refactor\n    onLocaleChange: (locale: string) => {\n      const url = new URL(window.location.href);\n      url.searchParams.set('lang', locale);\n      window.location.replace(url);\n    },\n    isUrlCurrent: createIsCurrentUrl(getCurrentUrl),\n    globalApolloClient,\n  };\n\n  const [siteDataState, setSiteData] = useState<Record<string, unknown> | undefined>(siteData);\n  const headerPortalRef = useRef<HTMLElement>(null);\n  const pageBottomStickyPortalRef = useRef<HTMLElement>(null);\n\n  const appContext: AppProviderProps = {\n    currentLocale,\n    supportedLocales,\n    userLocation,\n    getCurrentUrl,\n    isRTL: isRtl,\n    siteData: siteDataState,\n    setSiteData,\n    headerPortalRef,\n    pageBottomStickyPortalRef,\n    onRedirect,\n    cookieManager,\n    getUserInfo,\n    createUuidV4,\n  };\n\n  const contentfulContext = getContentfulContext(currentLocale, url.searchParams);\n\n  const cookieSettingsUrl = getCookieSettingsUrl(\n    Config.domainName,\n    Config.trackingSettings.cookieDomain\n  );\n\n  const motif = getSiteMotif();\n\n  const primitivesContext = { ...defaultPrimitivesContext, Anchor };\n\n  // if site config defines global styles, inject them.\n  Config.globalStyles && injectGlobal(Config.globalStyles);\n\n  const renderedApp = (\n    <StrictMode>\n      <ErrorBoundary tracer={getTracer()}>\n        <Router>\n          <ContentfulContext.Provider value={contentfulContext}>\n            <ContentfulLivePreviewContextProvider>\n              <ApolloProvider client={apolloClient}>\n                <AsyncDataContext.Provider value={{ controller: asyncDataController }}>\n                  <ConsumerContext.Provider value={consumerContext}>\n                    <PrimitivesContext.Provider value={primitivesContext}>\n                      <GlobalComponentsContextProvider value={globalComponentsContext}>\n                        <BrowserFeaturesContext.Provider value={browserFeatures}>\n                          <HelmetProvider context={helmetContext}>\n                            <IntlProvider>\n                              <AppContext.Provider value={appContext}>\n                                <SingleCallbackCacheContext.Provider value={singleCallbackCache}>\n                                  <LogCspViolation />\n                                  <LogPageLoad />\n                                  <LogAdBlockUsage />\n                                  <LogScrollDepth />\n                                  <GlobalAnimations />\n                                  <DirectionDirective />\n                                  <LanguageDirective />\n                                  <ContentfulLivePreview />\n                                  <Favicon />\n                                  <Viewport />\n                                  <FontChecker />\n                                  <StyleHacks />\n                                  <SitewideConfigurationProvider>\n                                    {/* this needs feature flags */}\n                                    <HardcodedComponents />\n                                    <PageLayoutProvider sessionValue={pageLayoutContext}>\n                                      <ShopifyProvider shopifyData={shopifyData}>\n                                        <MotifRootWrapper motif={motif} tag=\"section\">\n                                          <Header config={Config} />\n                                          <LoadingBar />\n                                          <Routes />\n                                          <Footer cookieSettingsUrl={cookieSettingsUrl} />\n                                          <CookiePopup\n                                            backgroundColor={\n                                              Config.theme?.defaultPageBackgroundColor\n                                            }\n                                            isClient={Config.isClient}\n                                            globalPrivacyControl={globalPrivacyControl}\n                                          />\n                                          {Config.shopify && <Cart />}\n                                        </MotifRootWrapper>\n                                      </ShopifyProvider>\n                                    </PageLayoutProvider>\n                                  </SitewideConfigurationProvider>\n                                </SingleCallbackCacheContext.Provider>\n                              </AppContext.Provider>\n                            </IntlProvider>\n                          </HelmetProvider>\n                        </BrowserFeaturesContext.Provider>\n                      </GlobalComponentsContextProvider>\n                    </PrimitivesContext.Provider>\n                  </ConsumerContext.Provider>\n                </AsyncDataContext.Provider>\n              </ApolloProvider>\n            </ContentfulLivePreviewContextProvider>\n          </ContentfulContext.Provider>\n        </Router>\n      </ErrorBoundary>\n    </StrictMode>\n  );\n\n  appRenderTrace.endSpan();\n  return renderedApp;\n};\n", "export default function _setPrototypeOf(o, p) {\n  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n    o.__proto__ = p;\n    return o;\n  };\n  return _setPrototypeOf(o, p);\n}", "import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n  subClass.prototype = Object.create(superClass.prototype);\n  subClass.prototype.constructor = subClass;\n  setPrototypeOf(subClass, superClass);\n}", "function isAbsolute(pathname) {\n  return pathname.charAt(0) === '/';\n}\n\n// About 1.5x faster than the two-arg version of Array#splice()\nfunction spliceOne(list, index) {\n  for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {\n    list[i] = list[k];\n  }\n\n  list.pop();\n}\n\n// This implementation is based heavily on node's url.parse\nfunction resolvePathname(to, from) {\n  if (from === undefined) from = '';\n\n  var toParts = (to && to.split('/')) || [];\n  var fromParts = (from && from.split('/')) || [];\n\n  var isToAbs = to && isAbsolute(to);\n  var isFromAbs = from && isAbsolute(from);\n  var mustEndAbs = isToAbs || isFromAbs;\n\n  if (to && isAbsolute(to)) {\n    // to is absolute\n    fromParts = toParts;\n  } else if (toParts.length) {\n    // to is relative, drop the filename\n    fromParts.pop();\n    fromParts = fromParts.concat(toParts);\n  }\n\n  if (!fromParts.length) return '/';\n\n  var hasTrailingSlash;\n  if (fromParts.length) {\n    var last = fromParts[fromParts.length - 1];\n    hasTrailingSlash = last === '.' || last === '..' || last === '';\n  } else {\n    hasTrailingSlash = false;\n  }\n\n  var up = 0;\n  for (var i = fromParts.length; i >= 0; i--) {\n    var part = fromParts[i];\n\n    if (part === '.') {\n      spliceOne(fromParts, i);\n    } else if (part === '..') {\n      spliceOne(fromParts, i);\n      up++;\n    } else if (up) {\n      spliceOne(fromParts, i);\n      up--;\n    }\n  }\n\n  if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');\n\n  if (\n    mustEndAbs &&\n    fromParts[0] !== '' &&\n    (!fromParts[0] || !isAbsolute(fromParts[0]))\n  )\n    fromParts.unshift('');\n\n  var result = fromParts.join('/');\n\n  if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';\n\n  return result;\n}\n\nexport default resolvePathname;\n", "var isProduction = process.env.NODE_ENV === 'production';\nvar prefix = 'Invariant failed';\nfunction invariant(condition, message) {\n    if (condition) {\n        return;\n    }\n    if (isProduction) {\n        throw new Error(prefix);\n    }\n    var provided = typeof message === 'function' ? message() : message;\n    var value = provided ? \"\".concat(prefix, \": \").concat(provided) : prefix;\n    throw new Error(value);\n}\n\nexport { invariant as default };\n", "import _extends from '@babel/runtime/helpers/esm/extends';\nimport resolvePathname from 'resolve-pathname';\nimport valueEqual from 'value-equal';\nimport warning from 'tiny-warning';\nimport invariant from 'tiny-invariant';\n\nfunction addLeadingSlash(path) {\n  return path.charAt(0) === '/' ? path : '/' + path;\n}\nfunction stripLeadingSlash(path) {\n  return path.charAt(0) === '/' ? path.substr(1) : path;\n}\nfunction hasBasename(path, prefix) {\n  return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;\n}\nfunction stripBasename(path, prefix) {\n  return hasBasename(path, prefix) ? path.substr(prefix.length) : path;\n}\nfunction stripTrailingSlash(path) {\n  return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;\n}\nfunction parsePath(path) {\n  var pathname = path || '/';\n  var search = '';\n  var hash = '';\n  var hashIndex = pathname.indexOf('#');\n\n  if (hashIndex !== -1) {\n    hash = pathname.substr(hashIndex);\n    pathname = pathname.substr(0, hashIndex);\n  }\n\n  var searchIndex = pathname.indexOf('?');\n\n  if (searchIndex !== -1) {\n    search = pathname.substr(searchIndex);\n    pathname = pathname.substr(0, searchIndex);\n  }\n\n  return {\n    pathname: pathname,\n    search: search === '?' ? '' : search,\n    hash: hash === '#' ? '' : hash\n  };\n}\nfunction createPath(location) {\n  var pathname = location.pathname,\n      search = location.search,\n      hash = location.hash;\n  var path = pathname || '/';\n  if (search && search !== '?') path += search.charAt(0) === '?' ? search : \"?\" + search;\n  if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : \"#\" + hash;\n  return path;\n}\n\nfunction createLocation(path, state, key, currentLocation) {\n  var location;\n\n  if (typeof path === 'string') {\n    // Two-arg form: push(path, state)\n    location = parsePath(path);\n    location.state = state;\n  } else {\n    // One-arg form: push(location)\n    location = _extends({}, path);\n    if (location.pathname === undefined) location.pathname = '';\n\n    if (location.search) {\n      if (location.search.charAt(0) !== '?') location.search = '?' + location.search;\n    } else {\n      location.search = '';\n    }\n\n    if (location.hash) {\n      if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;\n    } else {\n      location.hash = '';\n    }\n\n    if (state !== undefined && location.state === undefined) location.state = state;\n  }\n\n  try {\n    location.pathname = decodeURI(location.pathname);\n  } catch (e) {\n    if (e instanceof URIError) {\n      throw new URIError('Pathname \"' + location.pathname + '\" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');\n    } else {\n      throw e;\n    }\n  }\n\n  if (key) location.key = key;\n\n  if (currentLocation) {\n    // Resolve incomplete/relative pathname relative to current location.\n    if (!location.pathname) {\n      location.pathname = currentLocation.pathname;\n    } else if (location.pathname.charAt(0) !== '/') {\n      location.pathname = resolvePathname(location.pathname, currentLocation.pathname);\n    }\n  } else {\n    // When there is no prior location and pathname is empty, set it to /\n    if (!location.pathname) {\n      location.pathname = '/';\n    }\n  }\n\n  return location;\n}\nfunction locationsAreEqual(a, b) {\n  return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && valueEqual(a.state, b.state);\n}\n\nfunction createTransitionManager() {\n  var prompt = null;\n\n  function setPrompt(nextPrompt) {\n    process.env.NODE_ENV !== \"production\" ? warning(prompt == null, 'A history supports only one prompt at a time') : void 0;\n    prompt = nextPrompt;\n    return function () {\n      if (prompt === nextPrompt) prompt = null;\n    };\n  }\n\n  function confirmTransitionTo(location, action, getUserConfirmation, callback) {\n    // TODO: If another transition starts while we're still confirming\n    // the previous one, we may end up in a weird state. Figure out the\n    // best way to handle this.\n    if (prompt != null) {\n      var result = typeof prompt === 'function' ? prompt(location, action) : prompt;\n\n      if (typeof result === 'string') {\n        if (typeof getUserConfirmation === 'function') {\n          getUserConfirmation(result, callback);\n        } else {\n          process.env.NODE_ENV !== \"production\" ? warning(false, 'A history needs a getUserConfirmation function in order to use a prompt message') : void 0;\n          callback(true);\n        }\n      } else {\n        // Return false from a transition hook to cancel the transition.\n        callback(result !== false);\n      }\n    } else {\n      callback(true);\n    }\n  }\n\n  var listeners = [];\n\n  function appendListener(fn) {\n    var isActive = true;\n\n    function listener() {\n      if (isActive) fn.apply(void 0, arguments);\n    }\n\n    listeners.push(listener);\n    return function () {\n      isActive = false;\n      listeners = listeners.filter(function (item) {\n        return item !== listener;\n      });\n    };\n  }\n\n  function notifyListeners() {\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    listeners.forEach(function (listener) {\n      return listener.apply(void 0, args);\n    });\n  }\n\n  return {\n    setPrompt: setPrompt,\n    confirmTransitionTo: confirmTransitionTo,\n    appendListener: appendListener,\n    notifyListeners: notifyListeners\n  };\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nfunction getConfirmation(message, callback) {\n  callback(window.confirm(message)); // eslint-disable-line no-alert\n}\n/**\n * Returns true if the HTML5 history API is supported. Taken from Modernizr.\n *\n * https://github.com/Modernizr/Modernizr/blob/master/LICENSE\n * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js\n * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586\n */\n\nfunction supportsHistory() {\n  var ua = window.navigator.userAgent;\n  if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;\n  return window.history && 'pushState' in window.history;\n}\n/**\n * Returns true if browser fires popstate on hash change.\n * IE10 and IE11 do not.\n */\n\nfunction supportsPopStateOnHashChange() {\n  return window.navigator.userAgent.indexOf('Trident') === -1;\n}\n/**\n * Returns false if using go(n) with hash history causes a full page reload.\n */\n\nfunction supportsGoWithoutReloadUsingHash() {\n  return window.navigator.userAgent.indexOf('Firefox') === -1;\n}\n/**\n * Returns true if a given popstate event is an extraneous WebKit event.\n * Accounts for the fact that Chrome on iOS fires real popstate events\n * containing undefined state when pressing the back button.\n */\n\nfunction isExtraneousPopstateEvent(event) {\n  return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;\n}\n\nvar PopStateEvent = 'popstate';\nvar HashChangeEvent = 'hashchange';\n\nfunction getHistoryState() {\n  try {\n    return window.history.state || {};\n  } catch (e) {\n    // IE 11 sometimes throws when accessing window.history.state\n    // See https://github.com/ReactTraining/history/pull/289\n    return {};\n  }\n}\n/**\n * Creates a history object that uses the HTML5 history API including\n * pushState, replaceState, and the popstate event.\n */\n\n\nfunction createBrowserHistory(props) {\n  if (props === void 0) {\n    props = {};\n  }\n\n  !canUseDOM ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Browser history needs a DOM') : invariant(false) : void 0;\n  var globalHistory = window.history;\n  var canUseHistory = supportsHistory();\n  var needsHashChangeListener = !supportsPopStateOnHashChange();\n  var _props = props,\n      _props$forceRefresh = _props.forceRefresh,\n      forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,\n      _props$getUserConfirm = _props.getUserConfirmation,\n      getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,\n      _props$keyLength = _props.keyLength,\n      keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;\n  var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n\n  function getDOMLocation(historyState) {\n    var _ref = historyState || {},\n        key = _ref.key,\n        state = _ref.state;\n\n    var _window$location = window.location,\n        pathname = _window$location.pathname,\n        search = _window$location.search,\n        hash = _window$location.hash;\n    var path = pathname + search + hash;\n    process.env.NODE_ENV !== \"production\" ? warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path \"' + path + '\" to begin with \"' + basename + '\".') : void 0;\n    if (basename) path = stripBasename(path, basename);\n    return createLocation(path, state, key);\n  }\n\n  function createKey() {\n    return Math.random().toString(36).substr(2, keyLength);\n  }\n\n  var transitionManager = createTransitionManager();\n\n  function setState(nextState) {\n    _extends(history, nextState);\n\n    history.length = globalHistory.length;\n    transitionManager.notifyListeners(history.location, history.action);\n  }\n\n  function handlePopState(event) {\n    // Ignore extraneous popstate events in WebKit.\n    if (isExtraneousPopstateEvent(event)) return;\n    handlePop(getDOMLocation(event.state));\n  }\n\n  function handleHashChange() {\n    handlePop(getDOMLocation(getHistoryState()));\n  }\n\n  var forceNextPop = false;\n\n  function handlePop(location) {\n    if (forceNextPop) {\n      forceNextPop = false;\n      setState();\n    } else {\n      var action = 'POP';\n      transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n        if (ok) {\n          setState({\n            action: action,\n            location: location\n          });\n        } else {\n          revertPop(location);\n        }\n      });\n    }\n  }\n\n  function revertPop(fromLocation) {\n    var toLocation = history.location; // TODO: We could probably make this more reliable by\n    // keeping a list of keys we've seen in sessionStorage.\n    // Instead, we just default to 0 for keys we don't know.\n\n    var toIndex = allKeys.indexOf(toLocation.key);\n    if (toIndex === -1) toIndex = 0;\n    var fromIndex = allKeys.indexOf(fromLocation.key);\n    if (fromIndex === -1) fromIndex = 0;\n    var delta = toIndex - fromIndex;\n\n    if (delta) {\n      forceNextPop = true;\n      go(delta);\n    }\n  }\n\n  var initialLocation = getDOMLocation(getHistoryState());\n  var allKeys = [initialLocation.key]; // Public interface\n\n  function createHref(location) {\n    return basename + createPath(location);\n  }\n\n  function push(path, state) {\n    process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n    var action = 'PUSH';\n    var location = createLocation(path, state, createKey(), history.location);\n    transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n      if (!ok) return;\n      var href = createHref(location);\n      var key = location.key,\n          state = location.state;\n\n      if (canUseHistory) {\n        globalHistory.pushState({\n          key: key,\n          state: state\n        }, null, href);\n\n        if (forceRefresh) {\n          window.location.href = href;\n        } else {\n          var prevIndex = allKeys.indexOf(history.location.key);\n          var nextKeys = allKeys.slice(0, prevIndex + 1);\n          nextKeys.push(location.key);\n          allKeys = nextKeys;\n          setState({\n            action: action,\n            location: location\n          });\n        }\n      } else {\n        process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history') : void 0;\n        window.location.href = href;\n      }\n    });\n  }\n\n  function replace(path, state) {\n    process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n    var action = 'REPLACE';\n    var location = createLocation(path, state, createKey(), history.location);\n    transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n      if (!ok) return;\n      var href = createHref(location);\n      var key = location.key,\n          state = location.state;\n\n      if (canUseHistory) {\n        globalHistory.replaceState({\n          key: key,\n          state: state\n        }, null, href);\n\n        if (forceRefresh) {\n          window.location.replace(href);\n        } else {\n          var prevIndex = allKeys.indexOf(history.location.key);\n          if (prevIndex !== -1) allKeys[prevIndex] = location.key;\n          setState({\n            action: action,\n            location: location\n          });\n        }\n      } else {\n        process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : void 0;\n        window.location.replace(href);\n      }\n    });\n  }\n\n  function go(n) {\n    globalHistory.go(n);\n  }\n\n  function goBack() {\n    go(-1);\n  }\n\n  function goForward() {\n    go(1);\n  }\n\n  var listenerCount = 0;\n\n  function checkDOMListeners(delta) {\n    listenerCount += delta;\n\n    if (listenerCount === 1 && delta === 1) {\n      window.addEventListener(PopStateEvent, handlePopState);\n      if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);\n    } else if (listenerCount === 0) {\n      window.removeEventListener(PopStateEvent, handlePopState);\n      if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);\n    }\n  }\n\n  var isBlocked = false;\n\n  function block(prompt) {\n    if (prompt === void 0) {\n      prompt = false;\n    }\n\n    var unblock = transitionManager.setPrompt(prompt);\n\n    if (!isBlocked) {\n      checkDOMListeners(1);\n      isBlocked = true;\n    }\n\n    return function () {\n      if (isBlocked) {\n        isBlocked = false;\n        checkDOMListeners(-1);\n      }\n\n      return unblock();\n    };\n  }\n\n  function listen(listener) {\n    var unlisten = transitionManager.appendListener(listener);\n    checkDOMListeners(1);\n    return function () {\n      checkDOMListeners(-1);\n      unlisten();\n    };\n  }\n\n  var history = {\n    length: globalHistory.length,\n    action: 'POP',\n    location: initialLocation,\n    createHref: createHref,\n    push: push,\n    replace: replace,\n    go: go,\n    goBack: goBack,\n    goForward: goForward,\n    block: block,\n    listen: listen\n  };\n  return history;\n}\n\nvar HashChangeEvent$1 = 'hashchange';\nvar HashPathCoders = {\n  hashbang: {\n    encodePath: function encodePath(path) {\n      return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);\n    },\n    decodePath: function decodePath(path) {\n      return path.charAt(0) === '!' ? path.substr(1) : path;\n    }\n  },\n  noslash: {\n    encodePath: stripLeadingSlash,\n    decodePath: addLeadingSlash\n  },\n  slash: {\n    encodePath: addLeadingSlash,\n    decodePath: addLeadingSlash\n  }\n};\n\nfunction stripHash(url) {\n  var hashIndex = url.indexOf('#');\n  return hashIndex === -1 ? url : url.slice(0, hashIndex);\n}\n\nfunction getHashPath() {\n  // We can't use window.location.hash here because it's not\n  // consistent across browsers - Firefox will pre-decode it!\n  var href = window.location.href;\n  var hashIndex = href.indexOf('#');\n  return hashIndex === -1 ? '' : href.substring(hashIndex + 1);\n}\n\nfunction pushHashPath(path) {\n  window.location.hash = path;\n}\n\nfunction replaceHashPath(path) {\n  window.location.replace(stripHash(window.location.href) + '#' + path);\n}\n\nfunction createHashHistory(props) {\n  if (props === void 0) {\n    props = {};\n  }\n\n  !canUseDOM ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Hash history needs a DOM') : invariant(false) : void 0;\n  var globalHistory = window.history;\n  var canGoWithoutReload = supportsGoWithoutReloadUsingHash();\n  var _props = props,\n      _props$getUserConfirm = _props.getUserConfirmation,\n      getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,\n      _props$hashType = _props.hashType,\n      hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;\n  var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n  var _HashPathCoders$hashT = HashPathCoders[hashType],\n      encodePath = _HashPathCoders$hashT.encodePath,\n      decodePath = _HashPathCoders$hashT.decodePath;\n\n  function getDOMLocation() {\n    var path = decodePath(getHashPath());\n    process.env.NODE_ENV !== \"production\" ? warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path \"' + path + '\" to begin with \"' + basename + '\".') : void 0;\n    if (basename) path = stripBasename(path, basename);\n    return createLocation(path);\n  }\n\n  var transitionManager = createTransitionManager();\n\n  function setState(nextState) {\n    _extends(history, nextState);\n\n    history.length = globalHistory.length;\n    transitionManager.notifyListeners(history.location, history.action);\n  }\n\n  var forceNextPop = false;\n  var ignorePath = null;\n\n  function locationsAreEqual$$1(a, b) {\n    return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;\n  }\n\n  function handleHashChange() {\n    var path = getHashPath();\n    var encodedPath = encodePath(path);\n\n    if (path !== encodedPath) {\n      // Ensure we always have a properly-encoded hash.\n      replaceHashPath(encodedPath);\n    } else {\n      var location = getDOMLocation();\n      var prevLocation = history.location;\n      if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.\n\n      if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.\n\n      ignorePath = null;\n      handlePop(location);\n    }\n  }\n\n  function handlePop(location) {\n    if (forceNextPop) {\n      forceNextPop = false;\n      setState();\n    } else {\n      var action = 'POP';\n      transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n        if (ok) {\n          setState({\n            action: action,\n            location: location\n          });\n        } else {\n          revertPop(location);\n        }\n      });\n    }\n  }\n\n  function revertPop(fromLocation) {\n    var toLocation = history.location; // TODO: We could probably make this more reliable by\n    // keeping a list of paths we've seen in sessionStorage.\n    // Instead, we just default to 0 for paths we don't know.\n\n    var toIndex = allPaths.lastIndexOf(createPath(toLocation));\n    if (toIndex === -1) toIndex = 0;\n    var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));\n    if (fromIndex === -1) fromIndex = 0;\n    var delta = toIndex - fromIndex;\n\n    if (delta) {\n      forceNextPop = true;\n      go(delta);\n    }\n  } // Ensure the hash is encoded properly before doing anything else.\n\n\n  var path = getHashPath();\n  var encodedPath = encodePath(path);\n  if (path !== encodedPath) replaceHashPath(encodedPath);\n  var initialLocation = getDOMLocation();\n  var allPaths = [createPath(initialLocation)]; // Public interface\n\n  function createHref(location) {\n    var baseTag = document.querySelector('base');\n    var href = '';\n\n    if (baseTag && baseTag.getAttribute('href')) {\n      href = stripHash(window.location.href);\n    }\n\n    return href + '#' + encodePath(basename + createPath(location));\n  }\n\n  function push(path, state) {\n    process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Hash history cannot push state; it is ignored') : void 0;\n    var action = 'PUSH';\n    var location = createLocation(path, undefined, undefined, history.location);\n    transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n      if (!ok) return;\n      var path = createPath(location);\n      var encodedPath = encodePath(basename + path);\n      var hashChanged = getHashPath() !== encodedPath;\n\n      if (hashChanged) {\n        // We cannot tell if a hashchange was caused by a PUSH, so we'd\n        // rather setState here and ignore the hashchange. The caveat here\n        // is that other hash histories in the page will consider it a POP.\n        ignorePath = path;\n        pushHashPath(encodedPath);\n        var prevIndex = allPaths.lastIndexOf(createPath(history.location));\n        var nextPaths = allPaths.slice(0, prevIndex + 1);\n        nextPaths.push(path);\n        allPaths = nextPaths;\n        setState({\n          action: action,\n          location: location\n        });\n      } else {\n        process.env.NODE_ENV !== \"production\" ? warning(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack') : void 0;\n        setState();\n      }\n    });\n  }\n\n  function replace(path, state) {\n    process.env.NODE_ENV !== \"production\" ? warning(state === undefined, 'Hash history cannot replace state; it is ignored') : void 0;\n    var action = 'REPLACE';\n    var location = createLocation(path, undefined, undefined, history.location);\n    transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n      if (!ok) return;\n      var path = createPath(location);\n      var encodedPath = encodePath(basename + path);\n      var hashChanged = getHashPath() !== encodedPath;\n\n      if (hashChanged) {\n        // We cannot tell if a hashchange was caused by a REPLACE, so we'd\n        // rather setState here and ignore the hashchange. The caveat here\n        // is that other hash histories in the page will consider it a POP.\n        ignorePath = path;\n        replaceHashPath(encodedPath);\n      }\n\n      var prevIndex = allPaths.indexOf(createPath(history.location));\n      if (prevIndex !== -1) allPaths[prevIndex] = path;\n      setState({\n        action: action,\n        location: location\n      });\n    });\n  }\n\n  function go(n) {\n    process.env.NODE_ENV !== \"production\" ? warning(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser') : void 0;\n    globalHistory.go(n);\n  }\n\n  function goBack() {\n    go(-1);\n  }\n\n  function goForward() {\n    go(1);\n  }\n\n  var listenerCount = 0;\n\n  function checkDOMListeners(delta) {\n    listenerCount += delta;\n\n    if (listenerCount === 1 && delta === 1) {\n      window.addEventListener(HashChangeEvent$1, handleHashChange);\n    } else if (listenerCount === 0) {\n      window.removeEventListener(HashChangeEvent$1, handleHashChange);\n    }\n  }\n\n  var isBlocked = false;\n\n  function block(prompt) {\n    if (prompt === void 0) {\n      prompt = false;\n    }\n\n    var unblock = transitionManager.setPrompt(prompt);\n\n    if (!isBlocked) {\n      checkDOMListeners(1);\n      isBlocked = true;\n    }\n\n    return function () {\n      if (isBlocked) {\n        isBlocked = false;\n        checkDOMListeners(-1);\n      }\n\n      return unblock();\n    };\n  }\n\n  function listen(listener) {\n    var unlisten = transitionManager.appendListener(listener);\n    checkDOMListeners(1);\n    return function () {\n      checkDOMListeners(-1);\n      unlisten();\n    };\n  }\n\n  var history = {\n    length: globalHistory.length,\n    action: 'POP',\n    location: initialLocation,\n    createHref: createHref,\n    push: push,\n    replace: replace,\n    go: go,\n    goBack: goBack,\n    goForward: goForward,\n    block: block,\n    listen: listen\n  };\n  return history;\n}\n\nfunction clamp(n, lowerBound, upperBound) {\n  return Math.min(Math.max(n, lowerBound), upperBound);\n}\n/**\n * Creates a history object that stores locations in memory.\n */\n\n\nfunction createMemoryHistory(props) {\n  if (props === void 0) {\n    props = {};\n  }\n\n  var _props = props,\n      getUserConfirmation = _props.getUserConfirmation,\n      _props$initialEntries = _props.initialEntries,\n      initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,\n      _props$initialIndex = _props.initialIndex,\n      initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,\n      _props$keyLength = _props.keyLength,\n      keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;\n  var transitionManager = createTransitionManager();\n\n  function setState(nextState) {\n    _extends(history, nextState);\n\n    history.length = history.entries.length;\n    transitionManager.notifyListeners(history.location, history.action);\n  }\n\n  function createKey() {\n    return Math.random().toString(36).substr(2, keyLength);\n  }\n\n  var index = clamp(initialIndex, 0, initialEntries.length - 1);\n  var entries = initialEntries.map(function (entry) {\n    return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());\n  }); // Public interface\n\n  var createHref = createPath;\n\n  function push(path, state) {\n    process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n    var action = 'PUSH';\n    var location = createLocation(path, state, createKey(), history.location);\n    transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n      if (!ok) return;\n      var prevIndex = history.index;\n      var nextIndex = prevIndex + 1;\n      var nextEntries = history.entries.slice(0);\n\n      if (nextEntries.length > nextIndex) {\n        nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);\n      } else {\n        nextEntries.push(location);\n      }\n\n      setState({\n        action: action,\n        location: location,\n        index: nextIndex,\n        entries: nextEntries\n      });\n    });\n  }\n\n  function replace(path, state) {\n    process.env.NODE_ENV !== \"production\" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;\n    var action = 'REPLACE';\n    var location = createLocation(path, state, createKey(), history.location);\n    transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n      if (!ok) return;\n      history.entries[history.index] = location;\n      setState({\n        action: action,\n        location: location\n      });\n    });\n  }\n\n  function go(n) {\n    var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);\n    var action = 'POP';\n    var location = history.entries[nextIndex];\n    transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n      if (ok) {\n        setState({\n          action: action,\n          location: location,\n          index: nextIndex\n        });\n      } else {\n        // Mimic the behavior of DOM histories by\n        // causing a render after a cancelled POP.\n        setState();\n      }\n    });\n  }\n\n  function goBack() {\n    go(-1);\n  }\n\n  function goForward() {\n    go(1);\n  }\n\n  function canGo(n) {\n    var nextIndex = history.index + n;\n    return nextIndex >= 0 && nextIndex < history.entries.length;\n  }\n\n  function block(prompt) {\n    if (prompt === void 0) {\n      prompt = false;\n    }\n\n    return transitionManager.setPrompt(prompt);\n  }\n\n  function listen(listener) {\n    return transitionManager.appendListener(listener);\n  }\n\n  var history = {\n    length: entries.length,\n    action: 'POP',\n    location: entries[index],\n    index: index,\n    entries: entries,\n    createHref: createHref,\n    push: push,\n    replace: replace,\n    go: go,\n    goBack: goBack,\n    goForward: goForward,\n    canGo: canGo,\n    block: block,\n    listen: listen\n  };\n  return history;\n}\n\nexport { createBrowserHistory, createHashHistory, createMemoryHistory, createLocation, locationsAreEqual, parsePath, createPath };\n", "export default function _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  for (var key in source) {\n    if (Object.prototype.hasOwnProperty.call(source, key)) {\n      if (excluded.indexOf(key) >= 0) continue;\n      target[key] = source[key];\n    }\n  }\n  return target;\n}", "// MIT License\n// Copyright (c) 2019-present StringEpsilon <StringEpsilon@gmail.com>\n// Copyright (c) 2017-2019 James Kyle <me@thejameskyle.com>\n// https://github.com/StringEpsilon/mini-create-react-context\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport warning from \"tiny-warning\";\n\nconst MAX_SIGNED_31_BIT_INT = 1073741823;\n\nconst commonjsGlobal =\n  typeof globalThis !== \"undefined\" // 'global proper'\n    ? // eslint-disable-next-line no-undef\n      globalThis\n    : typeof window !== \"undefined\"\n    ? window // Browser\n    : typeof global !== \"undefined\"\n    ? global // node.js\n    : {};\n\nfunction getUniqueId() {\n  let key = \"__global_unique_id__\";\n  return (commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1);\n}\n\n// Inlined Object.is polyfill.\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\nfunction objectIs(x, y) {\n  if (x === y) {\n    return x !== 0 || 1 / x === 1 / y;\n  } else {\n    // eslint-disable-next-line no-self-compare\n    return x !== x && y !== y;\n  }\n}\n\nfunction createEventEmitter(value) {\n  let handlers = [];\n  return {\n    on(handler) {\n      handlers.push(handler);\n    },\n\n    off(handler) {\n      handlers = handlers.filter(h => h !== handler);\n    },\n\n    get() {\n      return value;\n    },\n\n    set(newValue, changedBits) {\n      value = newValue;\n      handlers.forEach(handler => handler(value, changedBits));\n    }\n  };\n}\n\nfunction onlyChild(children) {\n  return Array.isArray(children) ? children[0] : children;\n}\n\nexport default function createReactContext(defaultValue, calculateChangedBits) {\n  const contextProp = \"__create-react-context-\" + getUniqueId() + \"__\";\n\n  class Provider extends React.Component {\n    emitter = createEventEmitter(this.props.value);\n\n    static childContextTypes = {\n      [contextProp]: PropTypes.object.isRequired\n    };\n\n    getChildContext() {\n      return {\n        [contextProp]: this.emitter\n      };\n    }\n\n    componentWillReceiveProps(nextProps) {\n      if (this.props.value !== nextProps.value) {\n        let oldValue = this.props.value;\n        let newValue = nextProps.value;\n        let changedBits;\n\n        if (objectIs(oldValue, newValue)) {\n          changedBits = 0; // No change\n        } else {\n          changedBits =\n            typeof calculateChangedBits === \"function\"\n              ? calculateChangedBits(oldValue, newValue)\n              : MAX_SIGNED_31_BIT_INT;\n          if (process.env.NODE_ENV !== \"production\") {\n            warning(\n              (changedBits & MAX_SIGNED_31_BIT_INT) === changedBits,\n              \"calculateChangedBits: Expected the return value to be a \" +\n                \"31-bit integer. Instead received: \" +\n                changedBits\n            );\n          }\n\n          changedBits |= 0;\n\n          if (changedBits !== 0) {\n            this.emitter.set(nextProps.value, changedBits);\n          }\n        }\n      }\n    }\n\n    render() {\n      return this.props.children;\n    }\n  }\n\n  class Consumer extends React.Component {\n    static contextTypes = {\n      [contextProp]: PropTypes.object\n    };\n\n    observedBits;\n\n    state = {\n      value: this.getValue()\n    };\n\n    componentWillReceiveProps(nextProps) {\n      let { observedBits } = nextProps;\n      this.observedBits =\n        observedBits === undefined || observedBits === null\n          ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default\n          : observedBits;\n    }\n\n    componentDidMount() {\n      if (this.context[contextProp]) {\n        this.context[contextProp].on(this.onUpdate);\n      }\n      let { observedBits } = this.props;\n      this.observedBits =\n        observedBits === undefined || observedBits === null\n          ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default\n          : observedBits;\n    }\n\n    componentWillUnmount() {\n      if (this.context[contextProp]) {\n        this.context[contextProp].off(this.onUpdate);\n      }\n    }\n\n    getValue() {\n      if (this.context[contextProp]) {\n        return this.context[contextProp].get();\n      } else {\n        return defaultValue;\n      }\n    }\n\n    onUpdate = (newValue, changedBits) => {\n      const observedBits = this.observedBits | 0;\n      if ((observedBits & changedBits) !== 0) {\n        this.setState({ value: this.getValue() });\n      }\n    };\n\n    render() {\n      return onlyChild(this.props.children)(this.state.value);\n    }\n  }\n\n  return {\n    Provider,\n    Consumer\n  };\n}\n", "// MIT License\n// Copyright (c) 2019-present StringEpsilon <StringEpsilon@gmail.com>\n// Copyright (c) 2017-2019 James Kyle <me@thejameskyle.com>\n// https://github.com/StringEpsilon/mini-create-react-context\nimport React from \"react\";\nimport createReactContext from \"./miniCreateReactContext\";\n\nexport default React.createContext || createReactContext;\n", "// TODO: Replace with React.createContext once we can assume React 16+\nimport createContext from \"./createContext\";\n\nconst createNamedContext = name => {\n  const context = createContext();\n  context.displayName = name;\n\n  return context;\n};\n\nexport default createNamedContext;\n", "import createNamedContext from \"./createNamedContext\";\n\nconst historyContext = /*#__PURE__*/ createNamedContext(\"Router-History\");\nexport default historyContext;\n", "import createNamedContext from \"./createNamedContext\";\n\nconst context = /*#__PURE__*/ createNamedContext(\"Router\");\nexport default context;\n", "import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport warning from \"tiny-warning\";\n\nimport HistoryContext from \"./HistoryContext.js\";\nimport RouterContext from \"./RouterContext.js\";\n\n/**\n * The public API for putting history on context.\n */\nclass Router extends React.Component {\n  static computeRootMatch(pathname) {\n    return { path: \"/\", url: \"/\", params: {}, isExact: pathname === \"/\" };\n  }\n\n  constructor(props) {\n    super(props);\n\n    this.state = {\n      location: props.history.location\n    };\n\n    // This is a bit of a hack. We have to start listening for location\n    // changes here in the constructor in case there are any <Redirect>s\n    // on the initial render. If there are, they will replace/push when\n    // they mount and since cDM fires in children before parents, we may\n    // get a new location before the <Router> is mounted.\n    this._isMounted = false;\n    this._pendingLocation = null;\n\n    if (!props.staticContext) {\n      this.unlisten = props.history.listen(location => {\n        this._pendingLocation = location;\n      });\n    }\n  }\n\n  componentDidMount() {\n    this._isMounted = true;\n\n    if (this.unlisten) {\n      // Any pre-mount location changes have been captured at\n      // this point, so unregister the listener.\n      this.unlisten();\n    }\n    if (!this.props.staticContext) {\n      this.unlisten = this.props.history.listen(location => {\n        if (this._isMounted) {\n          this.setState({ location });\n        }\n      });\n    }\n    if (this._pendingLocation) {\n      this.setState({ location: this._pendingLocation });\n    }\n  }\n\n  componentWillUnmount() {\n    if (this.unlisten) {\n      this.unlisten();\n      this._isMounted = false;\n      this._pendingLocation = null;\n    }\n  }\n\n  render() {\n    return (\n      <RouterContext.Provider\n        value={{\n          history: this.props.history,\n          location: this.state.location,\n          match: Router.computeRootMatch(this.state.location.pathname),\n          staticContext: this.props.staticContext\n        }}\n      >\n        <HistoryContext.Provider\n          children={this.props.children || null}\n          value={this.props.history}\n        />\n      </RouterContext.Provider>\n    );\n  }\n}\n\nif (__DEV__) {\n  Router.propTypes = {\n    children: PropTypes.node,\n    history: PropTypes.object.isRequired,\n    staticContext: PropTypes.object\n  };\n\n  Router.prototype.componentDidUpdate = function(prevProps) {\n    warning(\n      prevProps.history === this.props.history,\n      \"You cannot change <Router history>\"\n    );\n  };\n}\n\nexport default Router;\n", "import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createMemoryHistory as createHistory } from \"history\";\nimport warning from \"tiny-warning\";\n\nimport Router from \"./Router.js\";\n\n/**\n * The public API for a <Router> that stores location in memory.\n */\nclass MemoryRouter extends React.Component {\n  history = createHistory(this.props);\n\n  render() {\n    return <Router history={this.history} children={this.props.children} />;\n  }\n}\n\nif (__DEV__) {\n  MemoryRouter.propTypes = {\n    initialEntries: PropTypes.array,\n    initialIndex: PropTypes.number,\n    getUserConfirmation: PropTypes.func,\n    keyLength: PropTypes.number,\n    children: PropTypes.node\n  };\n\n  MemoryRouter.prototype.componentDidMount = function() {\n    warning(\n      !this.props.history,\n      \"<MemoryRouter> ignores the history prop. To use a custom history, \" +\n        \"use `import { Router }` instead of `import { MemoryRouter as Router }`.\"\n    );\n  };\n}\n\nexport default MemoryRouter;\n", "import React from \"react\";\n\nclass Lifecycle extends React.Component {\n  componentDidMount() {\n    if (this.props.onMount) this.props.onMount.call(this, this);\n  }\n\n  componentDidUpdate(prevProps) {\n    if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);\n  }\n\n  componentWillUnmount() {\n    if (this.props.onUnmount) this.props.onUnmount.call(this, this);\n  }\n\n  render() {\n    return null;\n  }\n}\n\nexport default Lifecycle;\n", "import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"tiny-invariant\";\n\nimport Lifecycle from \"./Lifecycle.js\";\nimport RouterContext from \"./RouterContext.js\";\n\n/**\n * The public API for prompting the user before navigating away from a screen.\n */\nfunction Prompt({ message, when = true }) {\n  return (\n    <RouterContext.Consumer>\n      {context => {\n        invariant(context, \"You should not use <Prompt> outside a <Router>\");\n\n        if (!when || context.staticContext) return null;\n\n        const method = context.history.block;\n\n        return (\n          <Lifecycle\n            onMount={self => {\n              self.release = method(message);\n            }}\n            onUpdate={(self, prevProps) => {\n              if (prevProps.message !== message) {\n                self.release();\n                self.release = method(message);\n              }\n            }}\n            onUnmount={self => {\n              self.release();\n            }}\n            message={message}\n          />\n        );\n      }}\n    </RouterContext.Consumer>\n  );\n}\n\nif (__DEV__) {\n  const messageType = PropTypes.oneOfType([PropTypes.func, PropTypes.string]);\n\n  Prompt.propTypes = {\n    when: PropTypes.bool,\n    message: messageType.isRequired\n  };\n}\n\nexport default Prompt;\n", "import pathToRegexp from \"path-to-regexp\";\n\nconst cache = {};\nconst cacheLimit = 10000;\nlet cacheCount = 0;\n\nfunction compilePath(path) {\n  if (cache[path]) return cache[path];\n\n  const generator = pathToRegexp.compile(path);\n\n  if (cacheCount < cacheLimit) {\n    cache[path] = generator;\n    cacheCount++;\n  }\n\n  return generator;\n}\n\n/**\n * Public API for generating a URL pathname from a path and parameters.\n */\nfunction generatePath(path = \"/\", params = {}) {\n  return path === \"/\" ? path : compilePath(path)(params, { pretty: true });\n}\n\nexport default generatePath;\n", "import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createLocation, locationsAreEqual } from \"history\";\nimport invariant from \"tiny-invariant\";\n\nimport Lifecycle from \"./Lifecycle.js\";\nimport RouterContext from \"./RouterContext.js\";\nimport generatePath from \"./generatePath.js\";\n\n/**\n * The public API for navigating programmatically with a component.\n */\nfunction Redirect({ computedMatch, to, push = false }) {\n  return (\n    <RouterContext.Consumer>\n      {context => {\n        invariant(context, \"You should not use <Redirect> outside a <Router>\");\n\n        const { history, staticContext } = context;\n\n        const method = push ? history.push : history.replace;\n        const location = createLocation(\n          computedMatch\n            ? typeof to === \"string\"\n              ? generatePath(to, computedMatch.params)\n              : {\n                  ...to,\n                  pathname: generatePath(to.pathname, computedMatch.params)\n                }\n            : to\n        );\n\n        // When rendering in a static context,\n        // set the new location immediately.\n        if (staticContext) {\n          method(location);\n          return null;\n        }\n\n        return (\n          <Lifecycle\n            onMount={() => {\n              method(location);\n            }}\n            onUpdate={(self, prevProps) => {\n              const prevLocation = createLocation(prevProps.to);\n              if (\n                !locationsAreEqual(prevLocation, {\n                  ...location,\n                  key: prevLocation.key\n                })\n              ) {\n                method(location);\n              }\n            }}\n            to={to}\n          />\n        );\n      }}\n    </RouterContext.Consumer>\n  );\n}\n\nif (__DEV__) {\n  Redirect.propTypes = {\n    push: PropTypes.bool,\n    from: PropTypes.string,\n    to: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired\n  };\n}\n\nexport default Redirect;\n", "import pathToRegexp from \"path-to-regexp\";\n\nconst cache = {};\nconst cacheLimit = 10000;\nlet cacheCount = 0;\n\nfunction compilePath(path, options) {\n  const cacheKey = `${options.end}${options.strict}${options.sensitive}`;\n  const pathCache = cache[cacheKey] || (cache[cacheKey] = {});\n\n  if (pathCache[path]) return pathCache[path];\n\n  const keys = [];\n  const regexp = pathToRegexp(path, keys, options);\n  const result = { regexp, keys };\n\n  if (cacheCount < cacheLimit) {\n    pathCache[path] = result;\n    cacheCount++;\n  }\n\n  return result;\n}\n\n/**\n * Public API for matching a URL pathname to a path.\n */\nfunction matchPath(pathname, options = {}) {\n  if (typeof options === \"string\" || Array.isArray(options)) {\n    options = { path: options };\n  }\n\n  const { path, exact = false, strict = false, sensitive = false } = options;\n\n  const paths = [].concat(path);\n\n  return paths.reduce((matched, path) => {\n    if (!path && path !== \"\") return null;\n    if (matched) return matched;\n\n    const { regexp, keys } = compilePath(path, {\n      end: exact,\n      strict,\n      sensitive\n    });\n    const match = regexp.exec(pathname);\n\n    if (!match) return null;\n\n    const [url, ...values] = match;\n    const isExact = pathname === url;\n\n    if (exact && !isExact) return null;\n\n    return {\n      path, // the path used to match\n      url: path === \"/\" && url === \"\" ? \"/\" : url, // the matched portion of the URL\n      isExact, // whether or not we matched exactly\n      params: keys.reduce((memo, key, index) => {\n        memo[key.name] = values[index];\n        return memo;\n      }, {})\n    };\n  }, null);\n}\n\nexport default matchPath;\n", "import React from \"react\";\nimport { isValidElementType } from \"react-is\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"tiny-invariant\";\nimport warning from \"tiny-warning\";\n\nimport RouterContext from \"./RouterContext.js\";\nimport matchPath from \"./matchPath.js\";\n\nfunction isEmptyChildren(children) {\n  return React.Children.count(children) === 0;\n}\n\nfunction evalChildrenDev(children, props, path) {\n  const value = children(props);\n\n  warning(\n    value !== undefined,\n    \"You returned `undefined` from the `children` function of \" +\n      `<Route${path ? ` path=\"${path}\"` : \"\"}>, but you ` +\n      \"should have returned a React element or `null`\"\n  );\n\n  return value || null;\n}\n\n/**\n * The public API for matching a single path and rendering.\n */\nclass Route extends React.Component {\n  render() {\n    return (\n      <RouterContext.Consumer>\n        {context => {\n          invariant(context, \"You should not use <Route> outside a <Router>\");\n\n          const location = this.props.location || context.location;\n          const match = this.props.computedMatch\n            ? this.props.computedMatch // <Switch> already computed the match for us\n            : this.props.path\n            ? matchPath(location.pathname, this.props)\n            : context.match;\n\n          const props = { ...context, location, match };\n\n          let { children, component, render } = this.props;\n\n          // Preact uses an empty array as children by\n          // default, so use null if that's the case.\n          if (Array.isArray(children) && isEmptyChildren(children)) {\n            children = null;\n          }\n\n          return (\n            <RouterContext.Provider value={props}>\n              {props.match\n                ? children\n                  ? typeof children === \"function\"\n                    ? __DEV__\n                      ? evalChildrenDev(children, props, this.props.path)\n                      : children(props)\n                    : children\n                  : component\n                  ? React.createElement(component, props)\n                  : render\n                  ? render(props)\n                  : null\n                : typeof children === \"function\"\n                ? __DEV__\n                  ? evalChildrenDev(children, props, this.props.path)\n                  : children(props)\n                : null}\n            </RouterContext.Provider>\n          );\n        }}\n      </RouterContext.Consumer>\n    );\n  }\n}\n\nif (__DEV__) {\n  Route.propTypes = {\n    children: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n    component: (props, propName) => {\n      if (props[propName] && !isValidElementType(props[propName])) {\n        return new Error(\n          `Invalid prop 'component' supplied to 'Route': the prop is not a valid React component`\n        );\n      }\n    },\n    exact: PropTypes.bool,\n    location: PropTypes.object,\n    path: PropTypes.oneOfType([\n      PropTypes.string,\n      PropTypes.arrayOf(PropTypes.string)\n    ]),\n    render: PropTypes.func,\n    sensitive: PropTypes.bool,\n    strict: PropTypes.bool\n  };\n\n  Route.prototype.componentDidMount = function() {\n    warning(\n      !(\n        this.props.children &&\n        !isEmptyChildren(this.props.children) &&\n        this.props.component\n      ),\n      \"You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored\"\n    );\n\n    warning(\n      !(\n        this.props.children &&\n        !isEmptyChildren(this.props.children) &&\n        this.props.render\n      ),\n      \"You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored\"\n    );\n\n    warning(\n      !(this.props.component && this.props.render),\n      \"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored\"\n    );\n  };\n\n  Route.prototype.componentDidUpdate = function(prevProps) {\n    warning(\n      !(this.props.location && !prevProps.location),\n      '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no \"location\" prop and then provided one on a subsequent render.'\n    );\n\n    warning(\n      !(!this.props.location && prevProps.location),\n      '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a \"location\" prop initially but omitted it on a subsequent render.'\n    );\n  };\n}\n\nexport default Route;\n", "import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createLocation, createPath } from \"history\";\nimport invariant from \"tiny-invariant\";\nimport warning from \"tiny-warning\";\n\nimport Router from \"./Router.js\";\n\nfunction addLeadingSlash(path) {\n  return path.charAt(0) === \"/\" ? path : \"/\" + path;\n}\n\nfunction addBasename(basename, location) {\n  if (!basename) return location;\n\n  return {\n    ...location,\n    pathname: addLeadingSlash(basename) + location.pathname\n  };\n}\n\nfunction stripBasename(basename, location) {\n  if (!basename) return location;\n\n  const base = addLeadingSlash(basename);\n\n  if (location.pathname.indexOf(base) !== 0) return location;\n\n  return {\n    ...location,\n    pathname: location.pathname.substr(base.length)\n  };\n}\n\nfunction createURL(location) {\n  return typeof location === \"string\" ? location : createPath(location);\n}\n\nfunction staticHandler(methodName) {\n  return () => {\n    invariant(false, \"You cannot %s with <StaticRouter>\", methodName);\n  };\n}\n\nfunction noop() {}\n\n/**\n * The public top-level API for a \"static\" <Router>, so-called because it\n * can't actually change the current location. Instead, it just records\n * location changes in a context object. Useful mainly in testing and\n * server-rendering scenarios.\n */\nclass StaticRouter extends React.Component {\n  navigateTo(location, action) {\n    const { basename = \"\", context = {} } = this.props;\n    context.action = action;\n    context.location = addBasename(basename, createLocation(location));\n    context.url = createURL(context.location);\n  }\n\n  handlePush = location => this.navigateTo(location, \"PUSH\");\n  handleReplace = location => this.navigateTo(location, \"REPLACE\");\n  handleListen = () => noop;\n  handleBlock = () => noop;\n\n  render() {\n    const { basename = \"\", context = {}, location = \"/\", ...rest } = this.props;\n\n    const history = {\n      createHref: path => addLeadingSlash(basename + createURL(path)),\n      action: \"POP\",\n      location: stripBasename(basename, createLocation(location)),\n      push: this.handlePush,\n      replace: this.handleReplace,\n      go: staticHandler(\"go\"),\n      goBack: staticHandler(\"goBack\"),\n      goForward: staticHandler(\"goForward\"),\n      listen: this.handleListen,\n      block: this.handleBlock\n    };\n\n    return <Router {...rest} history={history} staticContext={context} />;\n  }\n}\n\nif (__DEV__) {\n  StaticRouter.propTypes = {\n    basename: PropTypes.string,\n    context: PropTypes.object,\n    location: PropTypes.oneOfType([PropTypes.string, PropTypes.object])\n  };\n\n  StaticRouter.prototype.componentDidMount = function() {\n    warning(\n      !this.props.history,\n      \"<StaticRouter> ignores the history prop. To use a custom history, \" +\n        \"use `import { Router }` instead of `import { StaticRouter as Router }`.\"\n    );\n  };\n}\n\nexport default StaticRouter;\n", "import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"tiny-invariant\";\nimport warning from \"tiny-warning\";\n\nimport RouterContext from \"./RouterContext.js\";\nimport matchPath from \"./matchPath.js\";\n\n/**\n * The public API for rendering the first <Route> that matches.\n */\nclass Switch extends React.Component {\n  render() {\n    return (\n      <RouterContext.Consumer>\n        {context => {\n          invariant(context, \"You should not use <Switch> outside a <Router>\");\n\n          const location = this.props.location || context.location;\n\n          let element, match;\n\n          // We use React.Children.forEach instead of React.Children.toArray().find()\n          // here because toArray adds keys to all child elements and we do not want\n          // to trigger an unmount/remount for two <Route>s that render the same\n          // component at different URLs.\n          React.Children.forEach(this.props.children, child => {\n            if (match == null && React.isValidElement(child)) {\n              element = child;\n\n              const path = child.props.path || child.props.from;\n\n              match = path\n                ? matchPath(location.pathname, { ...child.props, path })\n                : context.match;\n            }\n          });\n\n          return match\n            ? React.cloneElement(element, { location, computedMatch: match })\n            : null;\n        }}\n      </RouterContext.Consumer>\n    );\n  }\n}\n\nif (__DEV__) {\n  Switch.propTypes = {\n    children: PropTypes.node,\n    location: PropTypes.object\n  };\n\n  Switch.prototype.componentDidUpdate = function(prevProps) {\n    warning(\n      !(this.props.location && !prevProps.location),\n      '<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no \"location\" prop and then provided one on a subsequent render.'\n    );\n\n    warning(\n      !(!this.props.location && prevProps.location),\n      '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a \"location\" prop initially but omitted it on a subsequent render.'\n    );\n  };\n}\n\nexport default Switch;\n", "import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport hoistStatics from \"hoist-non-react-statics\";\nimport invariant from \"tiny-invariant\";\n\nimport RouterContext from \"./RouterContext.js\";\n\n/**\n * A public higher-order component to access the imperative API\n */\nfunction withRouter(Component) {\n  const displayName = `withRouter(${Component.displayName || Component.name})`;\n  const C = props => {\n    const { wrappedComponentRef, ...remainingProps } = props;\n\n    return (\n      <RouterContext.Consumer>\n        {context => {\n          invariant(\n            context,\n            `You should not use <${displayName} /> outside a <Router>`\n          );\n          return (\n            <Component\n              {...remainingProps}\n              {...context}\n              ref={wrappedComponentRef}\n            />\n          );\n        }}\n      </RouterContext.Consumer>\n    );\n  };\n\n  C.displayName = displayName;\n  C.WrappedComponent = Component;\n\n  if (__DEV__) {\n    C.propTypes = {\n      wrappedComponentRef: PropTypes.oneOfType([\n        PropTypes.string,\n        PropTypes.func,\n        PropTypes.object\n      ])\n    };\n  }\n\n  return hoistStatics(C, Component);\n}\n\nexport default withRouter;\n", "import React from \"react\";\nimport invariant from \"tiny-invariant\";\n\nimport RouterContext from \"./RouterContext.js\";\nimport HistoryContext from \"./HistoryContext.js\";\nimport matchPath from \"./matchPath.js\";\n\nconst useContext = React.useContext;\n\nexport function useHistory() {\n  if (__DEV__) {\n    invariant(\n      typeof useContext === \"function\",\n      \"You must use React >= 16.8 in order to use useHistory()\"\n    );\n  }\n\n  return useContext(HistoryContext);\n}\n\nexport function useLocation() {\n  if (__DEV__) {\n    invariant(\n      typeof useContext === \"function\",\n      \"You must use React >= 16.8 in order to use useLocation()\"\n    );\n  }\n\n  return useContext(RouterContext).location;\n}\n\nexport function useParams() {\n  if (__DEV__) {\n    invariant(\n      typeof useContext === \"function\",\n      \"You must use React >= 16.8 in order to use useParams()\"\n    );\n  }\n\n  const match = useContext(RouterContext).match;\n  return match ? match.params : {};\n}\n\nexport function useRouteMatch(path) {\n  if (__DEV__) {\n    invariant(\n      typeof useContext === \"function\",\n      \"You must use React >= 16.8 in order to use useRouteMatch()\"\n    );\n  }\n\n  const location = useLocation();\n  const match = useContext(RouterContext).match;\n  return path ? matchPath(location.pathname, path) : match;\n}\n", "if (__DEV__) {\n  if (typeof window !== \"undefined\") {\n    const global = window;\n    const key = \"__react_router_build__\";\n    const buildNames = { cjs: \"CommonJS\", esm: \"ES modules\", umd: \"UMD\" };\n\n    if (global[key] && global[key] !== process.env.BUILD_FORMAT) {\n      const initialBuildName = buildNames[global[key]];\n      const secondaryBuildName = buildNames[process.env.BUILD_FORMAT];\n\n      // TODO: Add link to article that explains in detail how to avoid\n      // loading 2 different builds.\n      throw new Error(\n        `You are loading the ${secondaryBuildName} build of React Router ` +\n          `on a page that is already running the ${initialBuildName} ` +\n          `build, so things won't work right.`\n      );\n    }\n\n    global[key] = process.env.BUILD_FORMAT;\n  }\n}\n\nexport { default as MemoryRouter } from \"./MemoryRouter.js\";\nexport { default as Prompt } from \"./Prompt.js\";\nexport { default as Redirect } from \"./Redirect.js\";\nexport { default as Route } from \"./Route.js\";\nexport { default as Router } from \"./Router.js\";\nexport { default as StaticRouter } from \"./StaticRouter.js\";\nexport { default as Switch } from \"./Switch.js\";\nexport { default as generatePath } from \"./generatePath.js\";\nexport { default as matchPath } from \"./matchPath.js\";\nexport { default as withRouter } from \"./withRouter.js\";\n\nexport { default as __HistoryContext } from \"./HistoryContext.js\";\nexport { default as __RouterContext } from \"./RouterContext.js\";\n\nexport { useHistory, useLocation, useParams, useRouteMatch } from \"./hooks.js\";\n", "import React from \"react\";\nimport { Router } from \"react-router\";\nimport { createBrowserHistory as createHistory } from \"history\";\nimport PropTypes from \"prop-types\";\nimport warning from \"tiny-warning\";\n\n/**\n * The public API for a <Router> that uses HTML5 history.\n */\nclass BrowserRouter extends React.Component {\n  history = createHistory(this.props);\n\n  render() {\n    return <Router history={this.history} children={this.props.children} />;\n  }\n}\n\nif (__DEV__) {\n  BrowserRouter.propTypes = {\n    basename: PropTypes.string,\n    children: PropTypes.node,\n    forceRefresh: PropTypes.bool,\n    getUserConfirmation: PropTypes.func,\n    keyLength: PropTypes.number\n  };\n\n  BrowserRouter.prototype.componentDidMount = function() {\n    warning(\n      !this.props.history,\n      \"<BrowserRouter> ignores the history prop. To use a custom history, \" +\n        \"use `import { Router }` instead of `import { BrowserRouter as Router }`.\"\n    );\n  };\n}\n\nexport default BrowserRouter;\n", "import React from \"react\";\nimport { Router } from \"react-router\";\nimport { createHashHistory as createHistory } from \"history\";\nimport PropTypes from \"prop-types\";\nimport warning from \"tiny-warning\";\n\n/**\n * The public API for a <Router> that uses window.location.hash.\n */\nclass HashRouter extends React.Component {\n  history = createHistory(this.props);\n\n  render() {\n    return <Router history={this.history} children={this.props.children} />;\n  }\n}\n\nif (__DEV__) {\n  HashRouter.propTypes = {\n    basename: PropTypes.string,\n    children: PropTypes.node,\n    getUserConfirmation: PropTypes.func,\n    hashType: PropTypes.oneOf([\"hashbang\", \"noslash\", \"slash\"])\n  };\n\n  HashRouter.prototype.componentDidMount = function() {\n    warning(\n      !this.props.history,\n      \"<HashRouter> ignores the history prop. To use a custom history, \" +\n        \"use `import { Router }` instead of `import { HashRouter as Router }`.\"\n    );\n  };\n}\n\nexport default HashRouter;\n", "import { createLocation } from \"history\";\n\nexport const resolveToLocation = (to, currentLocation) =>\n  typeof to === \"function\" ? to(currentLocation) : to;\n\nexport const normalizeToLocation = (to, currentLocation) => {\n  return typeof to === \"string\"\n    ? createLocation(to, null, null, currentLocation)\n    : to;\n};\n", "import React from \"react\";\nimport { __RouterContext as RouterContext } from \"react-router\";\nimport { createPath } from 'history';\nimport PropTypes from \"prop-types\";\nimport invariant from \"tiny-invariant\";\nimport {\n  resolveToLocation,\n  normalizeToLocation\n} from \"./utils/locationUtils.js\";\n\n// React 15 compat\nconst forwardRefShim = C => C;\nlet { forwardRef } = React;\nif (typeof forwardRef === \"undefined\") {\n  forwardRef = forwardRefShim;\n}\n\nfunction isModifiedEvent(event) {\n  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\n\nconst LinkAnchor = forwardRef(\n  (\n    {\n      innerRef, // TODO: deprecate\n      navigate,\n      onClick,\n      ...rest\n    },\n    forwardedRef\n  ) => {\n    const { target } = rest;\n\n    let props = {\n      ...rest,\n      onClick: event => {\n        try {\n          if (onClick) onClick(event);\n        } catch (ex) {\n          event.preventDefault();\n          throw ex;\n        }\n\n        if (\n          !event.defaultPrevented && // onClick prevented default\n          event.button === 0 && // ignore everything but left clicks\n          (!target || target === \"_self\") && // let browser handle \"target=_blank\" etc.\n          !isModifiedEvent(event) // ignore clicks with modifier keys\n        ) {\n          event.preventDefault();\n          navigate();\n        }\n      }\n    };\n\n    // React 15 compat\n    if (forwardRefShim !== forwardRef) {\n      props.ref = forwardedRef || innerRef;\n    } else {\n      props.ref = innerRef;\n    }\n\n    /* eslint-disable-next-line jsx-a11y/anchor-has-content */\n    return <a {...props} />;\n  }\n);\n\nif (__DEV__) {\n  LinkAnchor.displayName = \"LinkAnchor\";\n}\n\n/**\n * The public API for rendering a history-aware <a>.\n */\nconst Link = forwardRef(\n  (\n    {\n      component = LinkAnchor,\n      replace,\n      to,\n      innerRef, // TODO: deprecate\n      ...rest\n    },\n    forwardedRef\n  ) => {\n    return (\n      <RouterContext.Consumer>\n        {context => {\n          invariant(context, \"You should not use <Link> outside a <Router>\");\n\n          const { history } = context;\n\n          const location = normalizeToLocation(\n            resolveToLocation(to, context.location),\n            context.location\n          );\n\n          const href = location ? history.createHref(location) : \"\";\n          const props = {\n            ...rest,\n            href,\n            navigate() {\n              const location = resolveToLocation(to, context.location);\n              const isDuplicateNavigation = createPath(context.location) === createPath(normalizeToLocation(location));\n              const method = (replace || isDuplicateNavigation) ? history.replace : history.push;\n\n              method(location);\n            }\n          };\n\n          // React 15 compat\n          if (forwardRefShim !== forwardRef) {\n            props.ref = forwardedRef || innerRef;\n          } else {\n            props.innerRef = innerRef;\n          }\n\n          return React.createElement(component, props);\n        }}\n      </RouterContext.Consumer>\n    );\n  }\n);\n\nif (__DEV__) {\n  const toType = PropTypes.oneOfType([\n    PropTypes.string,\n    PropTypes.object,\n    PropTypes.func\n  ]);\n  const refType = PropTypes.oneOfType([\n    PropTypes.string,\n    PropTypes.func,\n    PropTypes.shape({ current: PropTypes.any })\n  ]);\n\n  Link.displayName = \"Link\";\n\n  Link.propTypes = {\n    innerRef: refType,\n    onClick: PropTypes.func,\n    replace: PropTypes.bool,\n    target: PropTypes.string,\n    to: toType.isRequired\n  };\n}\n\nexport default Link;\n", "import React from \"react\";\nimport { __RouterContext as RouterContext, matchPath } from \"react-router\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"tiny-invariant\";\nimport Link from \"./Link.js\";\nimport {\n  resolveToLocation,\n  normalizeToLocation\n} from \"./utils/locationUtils.js\";\n\n// React 15 compat\nconst forwardRefShim = C => C;\nlet { forwardRef } = React;\nif (typeof forwardRef === \"undefined\") {\n  forwardRef = forwardRefShim;\n}\n\nfunction joinClassnames(...classnames) {\n  return classnames.filter(i => i).join(\" \");\n}\n\n/**\n * A <Link> wrapper that knows if it's \"active\" or not.\n */\nconst NavLink = forwardRef(\n  (\n    {\n      \"aria-current\": ariaCurrent = \"page\",\n      activeClassName = \"active\", // TODO: deprecate\n      activeStyle, // TODO: deprecate\n      className: classNameProp,\n      exact,\n      isActive: isActiveProp,\n      location: locationProp,\n      sensitive,\n      strict,\n      style: styleProp,\n      to,\n      innerRef, // TODO: deprecate\n      ...rest\n    },\n    forwardedRef\n  ) => {\n    return (\n      <RouterContext.Consumer>\n        {context => {\n          invariant(context, \"You should not use <NavLink> outside a <Router>\");\n\n          const currentLocation = locationProp || context.location;\n          const toLocation = normalizeToLocation(\n            resolveToLocation(to, currentLocation),\n            currentLocation\n          );\n          const { pathname: path } = toLocation;\n          // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202\n          const escapedPath =\n            path && path.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\");\n\n          const match = escapedPath\n            ? matchPath(currentLocation.pathname, {\n                path: escapedPath,\n                exact,\n                sensitive,\n                strict\n              })\n            : null;\n          const isActive = !!(isActiveProp\n            ? isActiveProp(match, currentLocation)\n            : match);\n\n          let className =\n            typeof classNameProp === \"function\"\n              ? classNameProp(isActive)\n              : classNameProp;\n\n          let style =\n            typeof styleProp === \"function\" ? styleProp(isActive) : styleProp;\n\n          if (isActive) {\n            className = joinClassnames(className, activeClassName);\n            style = { ...style, ...activeStyle };\n          }\n\n          const props = {\n            \"aria-current\": (isActive && ariaCurrent) || null,\n            className,\n            style,\n            to: toLocation,\n            ...rest\n          };\n\n          // React 15 compat\n          if (forwardRefShim !== forwardRef) {\n            props.ref = forwardedRef || innerRef;\n          } else {\n            props.innerRef = innerRef;\n          }\n\n          return <Link {...props} />;\n        }}\n      </RouterContext.Consumer>\n    );\n  }\n);\n\nif (__DEV__) {\n  NavLink.displayName = \"NavLink\";\n\n  const ariaCurrentType = PropTypes.oneOf([\n    \"page\",\n    \"step\",\n    \"location\",\n    \"date\",\n    \"time\",\n    \"true\",\n    \"false\"\n  ]);\n\n  NavLink.propTypes = {\n    ...Link.propTypes,\n    \"aria-current\": ariaCurrentType,\n    activeClassName: PropTypes.string,\n    activeStyle: PropTypes.object,\n    className: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n    exact: PropTypes.bool,\n    isActive: PropTypes.func,\n    location: PropTypes.object,\n    sensitive: PropTypes.bool,\n    strict: PropTypes.bool,\n    style: PropTypes.oneOfType([PropTypes.object, PropTypes.func])\n  };\n}\n\nexport default NavLink;\n", "import type { Locale } from 'contentful';\nimport noop from 'lodash-es/noop';\nimport type { RefObject } from 'react';\nimport { createContext } from 'react';\n\nimport type { ExperimentBucketData } from './components/Experiment';\nimport type { CookieManager } from './utils/cookies/CookieManager';\nimport type { CreateUuidV4 } from './utils/uuid/uuidFactory';\n\nexport interface UserLocation {\n  country: string;\n  // NOTE: We do not include region here because the location is computed on\n  // the server and is cached in CDN, and adding region here would destroy\n  // the CDN cache hit rate.\n  // If you need to get the region of the user, do it on the client-side only\n  // by fetching https://web-platform.snap.com/cookies/user_location\n}\n\n/**\n * Specific meta about the user that we only compute on the client-side because it's based on things\n * that we aren't able to compute on the server-side because it would destroy the CDN cache hit\n * rate.\n */\nexport interface UserInfo {\n  experimentBucket: ExperimentBucketData;\n}\n\nexport type RedirectOptions = {\n  isPermanent?: boolean;\n  newTab?: boolean;\n};\n\n/**\n * Properties of the AppContext that are passed-in from outside of the App, and are typically\n * different between client and server.\n */\nexport interface PassThroughAppProviderProps {\n  /** Locale in which the app should render in. */\n  currentLocale: string;\n  /** All supported locales that the app can be rendered in. */\n  supportedLocales: Record<string, Locale>;\n  /** The location of the user. */\n  userLocation: UserLocation;\n  getCurrentUrl: () => string;\n  onRedirect?: (location: string, options?: RedirectOptions) => void;\n  cookieManager: CookieManager;\n  createUuidV4: CreateUuidV4;\n  getUserInfo: () => Promise<UserInfo>;\n\n  /**\n   * Custom site data. Used for passing server-rendered info into the app.\n   *\n   * TODO: Deprecate this after SPS 2023.\n   */\n  siteData?: Record<string, unknown>;\n}\n\n/** App Props that can be grabbed from the AppContext. */\nexport interface AppProviderProps extends PassThroughAppProviderProps {\n  isRTL: boolean;\n  /**\n   * Setter for custom site data.\n   *\n   * DO NOT USE. This forces a page re-render. Instead copy this context into another local context\n   * and change the value there.\n   *\n   * TODO: Deprecate this after SPS 2023.\n   */\n  setSiteData: (siteData: Record<string, unknown>) => void;\n  /** Reference for the header portal. */\n  headerPortalRef?: RefObject<HTMLElement>;\n  /** Reference for the sticky portal at the bottom of the <Page />. */\n  pageBottomStickyPortalRef?: RefObject<HTMLElement>;\n}\n\nexport const defaultContext: AppProviderProps = {\n  currentLocale: 'en-US',\n  supportedLocales: {\n    'en-US': {\n      code: 'en-US',\n      name: 'English (United States)',\n      default: true,\n      fallbackCode: null,\n      sys: {\n        id: '[Redacted]',\n        type: 'Locale',\n        version: 1,\n      },\n    },\n  },\n  userLocation: {\n    country: 'US',\n  },\n  isRTL: false,\n  getCurrentUrl: () => 'https://marketing-web-platform.appspot.com/',\n  setSiteData: () => undefined,\n  getUserInfo: () => Promise.resolve({ experimentBucket: { id: '' } }),\n  cookieManager: {\n    getCookie: _ => undefined,\n    getCookieJson: _ => undefined,\n    setCookie: noop,\n    setCookieJson: noop,\n    deleteCookie: noop,\n  },\n  createUuidV4: () => '00000000-0000-0000-0000-000000000000',\n};\n\nexport const AppContext = createContext<AppProviderProps>(defaultContext);\n", "import type { AnchorComponent } from '@snapchat/snap-design-system-marketing';\nimport { forwardRef, useContext } from 'react';\nimport { Link } from 'react-router-dom';\n\nimport { AppContext } from '../../AppContext';\nimport { getLinkProps } from '../../helpers/getLinkProps';\nimport { isLocalUrl } from '../../helpers/getLocalPath';\n\n/**\n * A custom anchor renderer that does a few usability things:\n *\n * - Use the react router's {@link Link} for local links\n * - Use the {@link getLinkProps} to override the `href`, `target` and `rel` props. This adds url\n *   parameters to outgoing links, and decides whether links open in a new tab or not.\n */\nexport const Anchor: AnchorComponent = forwardRef((props, ref) => {\n  const { currentLocale, getCurrentUrl } = useContext(AppContext);\n\n  // Do nothing if there's no hyperlink reference.\n  if (!props.href) {\n    return <a {...props} ref={ref} />;\n  }\n\n  // Apply updates like path redirects, parameter copying etc.\n  const updatedProps = getLinkProps({\n    destination: props.href,\n    currentUrl: new URL(getCurrentUrl()),\n    locale: currentLocale,\n  });\n\n  const url = new URL(updatedProps.href!, getCurrentUrl());\n\n  if (isLocalUrl(url)) {\n    const { href: _, ...nonHrefProps } = props;\n    return (\n      <Link\n        {...nonHrefProps}\n        // Note: we ignore the updatedProps here not related to the url.\n        ref={ref}\n        to={{\n          // Have to use this syntax instead of just `url` because it breaks\n          // the link.\n          pathname: url.pathname,\n          search: url.search,\n          hash: url.hash,\n        }}\n        target=\"_self\"\n      />\n    );\n  }\n\n  // IMPORTANT NOTE: The order here means that if the `getLinkProps` returns\n  // a `target`, it overrides whatever the user has passed. This is a decision\n  // That's easy to revert and there are use-cases for both ways. However\n  // there isn't a use-case to force a target on an individual link that doesn't\n  // follow the site policy, hense updated propes always override passed-in props.\n  return <a ref={ref} {...props} {...updatedProps} />;\n});\n", "import type { AdjustedChartData, AdjustedSeries, ChartDataRow, ChartSeries } from './types';\n\n/**\n * Given the corresponding \"Series\", merge a single \"Data\" row with a \"Localized Data\" row TODO:\n * Remove once V2 visualization migration is complete\n */\nconst mergeRowWithLocalized = (\n  series: ChartSeries,\n  row: ChartDataRow,\n  localizedRow: ChartDataRow\n) => {\n  const mergedRow: ChartDataRow = {};\n  const keys = Object.keys(series.schema.items.properties!);\n\n  for (const key of keys) {\n    // Use \"Localizable Properties\" to determine if we should pull\n    // from localized partition or regular partition.\n    // If we have to, fallback on whatever partition has data for given key.\n    if (series.localizableProperties?.includes(key)) {\n      mergedRow[key] = localizedRow[key] ?? row[key]!;\n    } else {\n      mergedRow[key] = row[key] ?? localizedRow[key]!;\n    }\n  }\n\n  return mergedRow;\n};\n\n/**\n * Given the corresponding series, merges the \"Data\" rows with the \"Localized Data\" rows from a\n * \"Chart Data\" TODO: Remove once V2 visualization migration is complete\n */\nexport function mergeDataWithLocalized(\n  series: ChartSeries,\n  rows?: ChartDataRow[],\n  localizedRows?: ChartDataRow[]\n): ChartDataRow[] {\n  // Data really should never be null or undefined, but if it gets into a bad state\n  // then we'll act as if the data is an empty list to prevent MWP from crashing.\n  if (!rows) {\n    return [];\n  }\n\n  // Localized data was not provided, assume all data is non-localizable\n  if (!localizedRows) {\n    return rows;\n  }\n\n  // Localizable data entries should exactly match the number of regular date entries\n  if (rows.length !== localizedRows.length) {\n    //@ts-ignore allow console.warn for this case https://jira.sc-corp.net/browse/WEBP-10119 to update to log\n    console?.warn('Data size mismatch between localized and non-localized data.');\n  }\n\n  return rows.map((row, i) => mergeRowWithLocalized(series, row, localizedRows[i] as ChartDataRow));\n}\n\n/** Given a Chart Data, returns the full underlying raw data as a list of rows */\nexport function getRawData(data: AdjustedChartData): ChartDataRow[] {\n  const localizedRows = data.localizedData ?? [];\n  const nonLocalizedRows = data.data ?? [];\n\n  // Localized data was not provided, assume all data is non-localizable\n  if (!localizedRows) {\n    return nonLocalizedRows;\n  }\n\n  // Localizable data entries should exactly match the number of regular data entries\n  if (nonLocalizedRows.length !== localizedRows.length) {\n    //@ts-ignore allow console.warn for this case https://jira.sc-corp.net/browse/WEBP-10119 to update to log\n    console?.warn('Data size mismatch between localized and non-localized data.');\n  }\n\n  return nonLocalizedRows.map((row, i) =>\n    mergeLocalizedAndNonLocalizedRows(row, localizedRows[i] as ChartDataRow, data.seriesName!)\n  );\n}\n\nconst mergeLocalizedAndNonLocalizedRows = (\n  nonLocalizedRow: ChartDataRow,\n  localizedRow: ChartDataRow,\n  series: AdjustedSeries\n) => {\n  const mergedRow: ChartDataRow = {};\n  const keys = Object.keys(series.schema.items.properties!);\n\n  for (const key of keys) {\n    // Use \"Localizable Properties\" to determine if we should pull\n    // from localized partition or regular partition.\n    // If we have to, fallback on whatever partition has data for given key.\n    if (series.localizableProperties?.includes(key)) {\n      mergedRow[key] = localizedRow[key] ?? nonLocalizedRow[key] ?? '';\n    } else {\n      mergedRow[key] = nonLocalizedRow[key] ?? localizedRow[key] ?? '';\n    }\n  }\n\n  return mergedRow;\n};\n", "import { Site } from '@snapchat/mw-common';\n\n/** These tokens have published content read permission from the /production/ alias. */\nexport const productionContentTokens: Record<Site, string> = {\n  [Site.A523]: 'TEeowd5MSMxWWV4qRGfuSzP6jDyCw7bGPBnSc7FgeCA',\n  [Site.ARCADIA]: 'ZylclnWJF6xeq5chuHTvEpmhNm0LD6Ea0oWEQcNJXxs',\n  [Site.AR]: 'iAOsVMXtR32scQ6d0zbJ_-sYO9nYKG07W_ABFJDUn88',\n  [Site.CAREERS]: 'ry27SzE0GBgWgQTTHH6g7WVu3w6vGTRej-vWTRxBtRE',\n  [Site.CHEERIOS]: '1bn1NIbQCGGTxkSdVtqXidIaQmeiTuWG64URI3Y2K84',\n  [Site.CITIZEN]: 'UIeH-b7nqyTFwt2V3q9j4RiOwHZUI-6-2XVYX3O372A',\n  [Site.CREATORS]: 'vQAHEP8QOjgzxHNAEPOm1uwmb6IblHEsgj7k4oGpJ-E',\n  [Site.DIVERSITY]: 'AYCNZfq0m4oXfzlA29mV7TWnZ-hpJJ1AtaWJ6lVlG4k',\n  [Site.ENG_BLOG]: 'z_FW9MI2WUz8WVdgsv8RNE7VqR2_lWnb1J7zWUTWc8U',\n  [Site.EXPERIENCE]: '-8HQWmpfZSv3H0o_nVdED5WyMgNGQ3cwY-UGJRjpBCc',\n  [Site.FOR_BUSINESS]: 'KdZZ9fEF015H8Vt4QKYMLEer6WRF8Cp7qYhSXtUn1V4',\n  [Site.NEWSROOM]: '5hC-nHrt38Uq1VpDdMnuYHD8aPSdX2yFaIHItIsz9AA',\n  [Site.ORIGINALS]: 'HY9lbLiTKCd9f0PsNttx17O-AdkcWy9JseLYGSamWr4',\n  [Site.PARENTS]: 'xz7uwXl9fWX24J9thrLu9QutVk9fJjKetAZPSkFELJc',\n  [Site.SANDBOX]: 'cj8SMzzCy4jmm1NZknJo1pYFmi0a_7OXvI_Jix-ScaM',\n  [Site.TRUST]: 'ur-lfHTOBaqzBf0I_8-ooUzS3KbsIyIEc9HGiMfV0HE',\n  [Site.AVALON]: 'Z0Ld8g2AgpMqOpLIV4JU5ymaPUlqGpUTsDvGw5VEih8',\n  [Site.EDUCATORS]: 'PBrC1AS3d_KhPlR7UdEwebaW0B4nyvYhu5oY3N4hJxk',\n  [Site.SNAP]: 's9X24xBFL18NQDxQmQXjdz542eu17QiYDX2OSs80e0A',\n};\n", "import { documentToPlainTextString } from '@contentful/rich-text-plain-text-renderer';\nimport type { Document } from '@contentful/rich-text-types';\n\n/** Helper function, renders the passed data to a plain text string. */\nexport const getPlainText = (data: Document | string | undefined): string => {\n  if (typeof data === 'string') {\n    return data;\n  }\n\n  if (!data || !data?.content) {\n    return '';\n  }\n\n  return documentToPlainTextString(data);\n};\n", "import type { Document } from '@contentful/rich-text-types';\nimport { BLOCKS } from '@contentful/rich-text-types';\nimport merge from 'lodash/merge.js';\n\n/** Merges the text in 2 rich text documents into a single document. */\n// eslint-disable-next-line import/no-unused-modules\nexport function mergeRichText(\n  doc1: Document | undefined,\n  doc2: Document | undefined\n): Document | undefined {\n  if (!doc1) return doc2;\n  if (!doc2) return doc1;\n\n  return {\n    data: merge(doc1.data, doc2.data),\n    content: [...doc1.content, ...doc2.content],\n    nodeType: BLOCKS.DOCUMENT,\n  };\n}\n", "import { Site } from '@snapchat/mw-common';\nimport invert from 'lodash/invert.js';\n\n/** Space IDs for all of the contentful spaces under MWP. */\nexport const contentfulSpaceIds: Record<Site, string> = {\n  [Site.A523]: '6f4y0nzsmtwg',\n  [Site.ARCADIA]: '8tv80wwv755s',\n  [Site.AR]: 'ub38vssza5h3',\n  [Site.CAREERS]: 'jwenq9l5fmib',\n  [Site.CHEERIOS]: 'svn43w404u4n',\n  [Site.CITIZEN]: 'ngit5gcrb661',\n  [Site.CREATORS]: 'ji04otasc2ol',\n  [Site.DIVERSITY]: 'kql3ubzzanzk',\n  [Site.EDUCATORS]: 'ou2g43s52fjc',\n  [Site.ENG_BLOG]: '7w2tf600vbko',\n  [Site.EXPERIENCE]: 'zu0g3q4so0yf',\n  [Site.FOR_BUSINESS]: 'inb32lme5009',\n  [Site.NEWSROOM]: 'o1znirz7lzo4',\n  [Site.ORIGINALS]: '7hin9gdh0aky',\n  [Site.PARENTS]: 'e6fbkkb3ka3b',\n  [Site.SANDBOX]: 'akh6d57cjeed',\n  [Site.TRUST]: 'kw9k15zxztrs',\n  [Site.AVALON]: 'cbjigzuhgs28',\n  [Site.SNAP]: 'dwtpq5hdcqjg',\n};\n\nexport const siteBySpaceId = invert(contentfulSpaceIds);\n", "import { Site } from '@snapchat/mw-common';\n\n/** Keys for the dev tokens in contentful by site */\nexport const contentfulDevTokenKeys: Record<Site, string> = {\n  [Site.A523]: 'SNAP_523_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.ARCADIA]: 'ARCADIA_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.AR]: 'AR_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.AVALON]: 'AVALON_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.CAREERS]: 'CAREERS_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.CHEERIOS]: 'CHEERIOS_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.CITIZEN]: 'CITIZEN_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.CREATORS]: 'CREATORS_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.DIVERSITY]: 'DIVERSITY_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.EDUCATORS]: 'EDUCATORS_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.ENG_BLOG]: 'ENG_BLOG_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.EXPERIENCE]: 'EXPERIENCE_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.FOR_BUSINESS]: 'FOR_BUSINESS_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.NEWSROOM]: 'NEWSROOM_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.ORIGINALS]: 'ORIGINALS_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.PARENTS]: 'PARENTS_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.SANDBOX]: 'SANDBOX_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.TRUST]: 'TRUST_CONTENTFUL_DEV_ACCESS_TOKEN',\n  [Site.SNAP]: 'SNAP_CONTENTFUL_DEV_ACCESS_TOKEN',\n};\n\n/** Keys for the preview tokens in contentful by site */\nexport const contentfulPreviewTokenKeys: Record<Site, string> = {\n  [Site.A523]: 'SNAP_523_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.ARCADIA]: 'ARCADIA_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.AR]: 'AR_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.AVALON]: 'AVALON_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.CAREERS]: 'CAREERS_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.CHEERIOS]: 'CHEERIOS_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.CITIZEN]: 'CITIZEN_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.CREATORS]: 'CREATORS_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.DIVERSITY]: 'DIVERSITY_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.EDUCATORS]: 'EDUCATORS_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.ENG_BLOG]: 'ENG_BLOG_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.EXPERIENCE]: 'EXPERIENCE_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.FOR_BUSINESS]: 'FOR_BUSINESS_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.NEWSROOM]: 'NEWSROOM_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.ORIGINALS]: 'ORIGINALS_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.PARENTS]: 'PARENTS_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.SANDBOX]: 'SANDBOX_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.TRUST]: 'TRUST_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n  [Site.SNAP]: 'SNAP_CONTENTFUL_PREVIEW_ACCESS_TOKEN',\n};\n", "/**\n * Environment variables used on the client.\n *\n * These do not have dynamic values on the client. They are exported during bundling. See\n * esbuild.client.ts\n *\n * The keys for this object need to match the key they are reading from in process.env otherwise the\n * values will be different between the client the build. The result of the build is stored into the\n * process.env of the client, so if the key is different, the value will be different because you\n * are always reading from the same key.\n *\n *     build:\n *       process.env = {\n *        b: 'value'\n *       };\n *       clientEnv = {\n *         a: process.env.b,\n *       }\n *\n *     client:\n *       // this process.env is set by the build using the values of clientEnv\n *       process.env = {\n *         a: 'value'\n *       };\n *       clientEnv = {\n *         a: process.env.b, // this ends up being undefined\n *       } *\n */\nexport const clientEnv = {\n  CI_COMMIT: process.env.CI_COMMIT,\n  CI_PIPELINE_ID: process.env.CI_PIPELINE_ID,\n  GOOGLE_CLOUD_PROJECT: process.env.GOOGLE_CLOUD_PROJECT!,\n  CONTENTFUL_PREVIEW_ACCESS_TOKEN: process.env.CONTENTFUL_PREVIEW_ACCESS_TOKEN!,\n  CONTENTFUL_DEV_ACCESS_TOKEN: process.env.CONTENTFUL_DEV_ACCESS_TOKEN!,\n  /** Override for the contentful environment name. Defaults to 'undefined' when not set. */\n  CONTENTFUL_ENVIRONMENT_NAME: process.env.CONTENTFUL_ENVIRONMENT_NAME!,\n  DEPLOYMENT_TYPE: process.env.DEPLOYMENT_TYPE!,\n  GLOBAL_COMPONENTS_CONTENTFUL_PREVIEW_ACCESS_TOKEN:\n    process.env.GLOBAL_COMPONENTS_CONTENTFUL_PREVIEW_ACCESS_TOKEN!,\n  /**\n   * This value is set in jenkins all the time, so we only forward the value if we are not in\n   * production and we set the value in devToolsEnv.ts\n   */\n  GLOBAL_COMPONENTS_CONTENTFUL_DEV_ACCESS_TOKEN:\n    process.env.GLOBAL_COMPONENTS_CONTENTFUL_DEV_ACCESS_TOKEN!,\n  NODE_ENV: process.env.NODE_ENV!,\n  PREVIEW: process.env.PREVIEW!,\n  SITE_CONFIG: process.env.SITE_CONFIG!,\n  SSR: process.env.SSR!,\n  JEST_WORKER_ID: process.env.JEST_WORKER_ID!,\n  // The ENV variables below are not resolved at compile time. They are dynamic.\n  GOOGLE_CLOUD_REGION: process.env.GOOGLE_CLOUD_REGION ?? 'unknown_region',\n  // Use npm script in elastic-etl package to:\n  //  1 - start docker with Elasticsearchh container\n  //  2 - seed Elasticsearch with data (reindex script)\n  USE_LOCAL_ELASTIC: process.env.USE_LOCAL_ELASTIC,\n  ELASTIC_SEARCH_READER_API_KEY: process.env.ELASTIC_SEARCH_READER_API_KEY,\n} as const;\n\n/** List of environment variables we don't want to hard-code into javascript. */\nexport const dynamicClientEnv: ReadonlyArray<keyof typeof clientEnv> = [\n  'GOOGLE_CLOUD_REGION',\n] as const;\n", "import { getTopLevelDomain } from '@snapchat/parse-domain';\n\nexport const cookieSettingsPath = '/cookie-settings';\n\nexport function getCookieDomain(domain: string, cookieDomain?: string | undefined): string {\n  // Use input value if specified\n  if (cookieDomain) return cookieDomain;\n\n  // Use top level domain (ar.snap.com => snap.com)\n  const topLevelDomain = getTopLevelDomain(domain);\n  // Return top level domain or empty string\n  return topLevelDomain;\n}\n\nexport const getCookieSettingsUrl = (domain: string, cookieDomain?: string | undefined): string => {\n  cookieDomain = getCookieDomain(domain, cookieDomain);\n\n  const isSameDomain = domain === cookieDomain;\n  return isSameDomain ? cookieSettingsPath : `https://${cookieDomain}${cookieSettingsPath}`;\n};\n", "export const snapHeaderBackgroundVar = '--snap-com-background-color';\n", "import { css, cx } from '@emotion/css';\nimport { Partition } from '@snapchat/graphene';\n\nimport type { SiteConfiguration } from '../../configTypes';\nimport { LoggingVendor } from '../../helpers/logging/eventListenerTypes';\nimport { snapHeaderBackgroundVar } from './styleConstants';\n\n/** Hack for letting pages override the background color. */\nconst snapHeaderCss = css`\n  background-color: var(${snapHeaderBackgroundVar});\n`;\n\nexport const config: SiteConfiguration = {\n  domainName: 'snap.com',\n  globalNavProps: {\n    defaultGroupKey: 'snap',\n    className: cx(snapHeaderCss),\n  },\n  trackingSettings: {\n    eventListeners: [\n      { vendor: LoggingVendor.BLIZZARD },\n      { vendor: LoggingVendor.CONSOLE },\n      { vendor: LoggingVendor.GOOGLE_CLOUD_LOGGING },\n      { vendor: LoggingVendor.GOOGLE_CLOUD_MONITORING },\n      { vendor: LoggingVendor.GOOGLE_CLOUD_ERROR_REPORTING },\n      { vendor: LoggingVendor.GRAPHENE, partitionName: Partition.WEB_COMMON },\n      {\n        vendor: LoggingVendor.GOOGLE_TAG_MANAGER,\n        googleTagManagerId: 'GTM-W4W5H3K',\n        googleAnalyticsId: 'G-LJY98QLWYT',\n      },\n      {\n        vendor: LoggingVendor.SENTRY,\n        projectName: 'snap',\n        dsn: 'https://fdd828e30c9c423cb0653ae452415f77@sentry.sc-prod.net/81',\n      },\n    ],\n  },\n};\n", "import { DeploymentType, Site } from '@snapchat/mw-common';\nimport { isBrowser } from '@snapchat/mw-common/client';\nimport {\n  ContentfulAlias,\n  contentfulSpaceIds,\n  productionContentTokens,\n} from '@snapchat/mw-contentful-schema';\nimport {\n  globalComponentsAccessToken,\n  globalComponentsEnvName,\n  globalComponentsSpaceId,\n} from '@snapchat/mw-global-components-schema';\nimport { Template } from '@snapchat/snap-design-system-marketing';\n\nimport { clientEnv } from './clientEnv';\nimport type {\n  ContentfulConfiguration,\n  ElasticConfiguration,\n  MarketingWebConfiguration,\n  RequiredTrackingSettings,\n  SiteConfiguration,\n} from './configTypes';\nimport { getCookieDomain } from './helpers/trackingCookies';\nimport { elasticCloudId, elasticNode } from './server/endpoints/gallery/galleryConfig';\nimport { config as snap523Config } from './sites/523/523Config';\nimport { config as arConfig } from './sites/ar/arConfig';\nimport { config as arcadiaConfig } from './sites/arcadia/arcadiaConfig';\nimport { config as avalonConfig } from './sites/avalon/avalonConfig';\nimport { config as careersConfig } from './sites/careers/careersConfig';\nimport { config as cheeriosConfig } from './sites/cheerios/cheeriosConfig';\nimport { config as citizenConfig } from './sites/citizen/citizenConfig';\nimport { config as creatorsConfig } from './sites/creators/creatorsConfig';\nimport { config as diversityConfig } from './sites/diversity/diversityConfig';\nimport { config as educatorsConfig } from './sites/educators/educatorsConfig';\nimport { config as engBlogConfig } from './sites/eng-blog/engBlogConfig';\nimport { config as experienceConfig } from './sites/experience/experienceConfig';\nimport { config as forBusinessConfig } from './sites/for-business/forBusinessConfig';\nimport { config as newsroomConfig } from './sites/newsroom/newsroomConfig';\nimport { config as originalsConfig } from './sites/originals/originalsConfig';\nimport { config as parentsConfig } from './sites/parents/parentsConfig';\nimport { config as sandboxConfig } from './sites/sandbox/sandboxConfig';\nimport { config as snapConfig } from './sites/snap/snapConfig';\nimport { config as trustConfig } from './sites/trust/trustConfig';\n\nconst environmentNames: Record<DeploymentType, string> = {\n  [DeploymentType.PRODUCTION]: ContentfulAlias.PRODUCTION,\n  [DeploymentType.STAGING]: ContentfulAlias.MASTER,\n  [DeploymentType.LATEST_DEV]: ContentfulAlias.LATEST_DEV,\n};\n\nconst transformTrackingSettings = (site: SiteConfiguration): RequiredTrackingSettings => {\n  return {\n    ...site.trackingSettings,\n    cookieDomain: getCookieDomain(site.domainName, site.trackingSettings.cookieDomain),\n  };\n};\n\nexport const getSiteConfig = (site: Site): SiteConfiguration => {\n  switch (site) {\n    case Site.A523:\n      return snap523Config;\n    case Site.ARCADIA:\n      return arcadiaConfig;\n    case Site.AR:\n      return arConfig;\n    case Site.AVALON:\n      return avalonConfig;\n    case Site.CAREERS:\n      return careersConfig;\n    case Site.CHEERIOS:\n      return cheeriosConfig;\n    case Site.CITIZEN:\n      return citizenConfig;\n    case Site.CREATORS:\n      return creatorsConfig;\n    case Site.DIVERSITY:\n      return diversityConfig;\n    case Site.EDUCATORS:\n      return educatorsConfig;\n    case Site.ENG_BLOG:\n      return engBlogConfig;\n    case Site.EXPERIENCE:\n      return experienceConfig;\n    case Site.FOR_BUSINESS:\n      return forBusinessConfig;\n    case Site.NEWSROOM:\n      return newsroomConfig;\n    case Site.ORIGINALS:\n      return originalsConfig;\n    case Site.PARENTS:\n      return parentsConfig;\n    case Site.SANDBOX:\n      return sandboxConfig;\n    case Site.TRUST:\n      return trustConfig;\n    case Site.SNAP:\n      return snapConfig;\n    default:\n      break;\n  }\n  throw new Error(\n    `Cannot find config for 'src/sites/${clientEnv.SITE_CONFIG}'. Is it specified correctly in env/\\${SITE}.env?`\n  );\n};\n\n/** Function that merges the site configuration with globally available environment variables. */\nconst createConfig = (): MarketingWebConfiguration => {\n  const requiredEnvVars: (keyof typeof clientEnv)[] = ['NODE_ENV', 'PREVIEW', 'SITE_CONFIG'];\n\n  for (const envVar of requiredEnvVars) {\n    if (!clientEnv[envVar]) {\n      throw Error(\n        `Missing required variable '${envVar}'.\\nOn server, make sure it's in the environment during esbuild execution.\\n`\n      );\n    }\n  }\n\n  const site = clientEnv.SITE_CONFIG as Site;\n  const siteConfig = getSiteConfig(site);\n\n  const isPreview = clientEnv.PREVIEW! === 'true';\n\n  if (isPreview && !clientEnv.CONTENTFUL_PREVIEW_ACCESS_TOKEN) {\n    throw new Error(`Preview access token not set. Do you have 'secrets.env'?`);\n  }\n\n  const isClient = isBrowser();\n  const buildNumber = clientEnv.CI_PIPELINE_ID ?? 'local';\n  const commit = clientEnv.CI_COMMIT ?? 'unknown_commit';\n  // NOTE: This would probably be better checking GAE_VERSION and GAE_SERVICE;\n  // However there's an argument against compiling those into the world readable bundle for\n  // security reasons.\n  const isLocal = buildNumber === 'local';\n  const isTest = !!clientEnv.JEST_WORKER_ID;\n\n  const compilationMode = clientEnv.NODE_ENV === 'production' ? 'production' : 'development';\n  const deploymentType = clientEnv.DEPLOYMENT_TYPE as DeploymentType;\n  const isDeploymentTypeProd = deploymentType === DeploymentType.PRODUCTION;\n  const isCompilationModeProd = compilationMode === 'production';\n  const isSsr = clientEnv.SSR !== 'false'; // Defaults to 'true' so worded as a check for falsehood.\n  const region = clientEnv.GOOGLE_CLOUD_REGION;\n  const googleCloudProjectName = clientEnv.GOOGLE_CLOUD_PROJECT ?? 'entapps-web-dev';\n\n  const contentfulEnvNameOverride =\n    clientEnv.CONTENTFUL_ENVIRONMENT_NAME === 'undefined'\n      ? undefined\n      : clientEnv.CONTENTFUL_ENVIRONMENT_NAME;\n  const contentful: ContentfulConfiguration = {\n    spaceId: contentfulSpaceIds[site],\n    environmentName: contentfulEnvNameOverride ?? environmentNames[deploymentType],\n    accessToken: productionContentTokens[site],\n    devAccessToken: clientEnv.CONTENTFUL_DEV_ACCESS_TOKEN,\n    previewAccessToken: clientEnv.CONTENTFUL_PREVIEW_ACCESS_TOKEN,\n  };\n\n  const contentfulGlobal: ContentfulConfiguration = {\n    spaceId: globalComponentsSpaceId,\n    environmentName: globalComponentsEnvName,\n    accessToken: globalComponentsAccessToken,\n    devAccessToken: clientEnv.GLOBAL_COMPONENTS_CONTENTFUL_DEV_ACCESS_TOKEN,\n    previewAccessToken: clientEnv.GLOBAL_COMPONENTS_CONTENTFUL_PREVIEW_ACCESS_TOKEN,\n  };\n\n  const useLocalElastic = clientEnv.USE_LOCAL_ELASTIC === 'true';\n\n  const elasticConfig: ElasticConfiguration = {\n    elasticNode: useLocalElastic ? 'http://localhost:9200' : elasticNode,\n    elasticCloudId: useLocalElastic ? undefined : elasticCloudId,\n    elasticApiKeyOverride: useLocalElastic ? undefined : clientEnv.ELASTIC_SEARCH_READER_API_KEY,\n    isApiKeyRequired: !useLocalElastic,\n  };\n\n  const config: MarketingWebConfiguration = {\n    site,\n    ...siteConfig,\n    theme: {\n      // These are the default breaks.\n      breakTemplates: [\n        Template.Straight,\n        Template.Skirt,\n        Template.Straight,\n        Template.HeadFlipped,\n        Template.Straight,\n        Template.Head,\n      ],\n      ...siteConfig.theme,\n    },\n    contentful,\n    contentfulGlobal,\n    elastic: elasticConfig,\n    globalNavProps: {\n      trackingSiteName: siteConfig.domainName,\n      ...siteConfig.globalNavProps,\n    },\n    trackingSettings: transformTrackingSettings(siteConfig),\n    compilationMode,\n    isCompilationModeProd,\n    isSSR: isSsr,\n    isPreview,\n    isClient,\n    isLocal,\n    isTest,\n    localeFilter: isPreview ? undefined : siteConfig.localeFilter, // Enable all locales when in Preview mode.\n    homeUrl: `https://${siteConfig.domainName}`,\n    deploymentType,\n    isDeploymentTypeProd,\n    buildNumber,\n    commit,\n    region,\n    googleCloudProjectName,\n  };\n\n  if (siteConfig.init) {\n    siteConfig.init();\n  }\n\n  return config;\n};\n\nexport const Config = createConfig();\n", "import type { IsUrlCurrent } from '../components/ConsumerContextProvider'; // eslint-disable-line max-len\nimport { Config } from '../config';\n\n/** List of domains that we consider as 'local'. I.e. links to these do not require hard navigations. */\nconst localHosts = [\n  Config.domainName,\n  `www.${Config.domainName}`,\n  'localhost',\n  '127.0.0.1',\n  '[::]',\n  '[::1]',\n  /.*-dot-entapps-web-dev.gae.sc-corp.net/,\n];\n\n/**\n * Returns whether the url is local (on the same domain).\n *\n * Accounts for current domain, domain with www. subdomain and localhost.\n */\nexport const isLocalUrl = (url: URL): boolean => {\n  for (const domain of localHosts) {\n    if (typeof domain === 'string' && url.hostname === domain) {\n      return true;\n    }\n\n    if (typeof domain === 'object' && domain.test(url.hostname)) {\n      return true;\n    }\n  }\n\n  return false;\n};\n\n/**\n * Helper function to determine whether or not we should flush logs. We only need to flush logs when\n * navigating to an external URL that is opened in the same tab, which varies based on site config.\n */\nexport const shouldFlushLogs = (url?: string): boolean => {\n  if (!url) return false;\n\n  // if the url is not local, we check if it is in the same tab config, if it is, we flush logs\n  try {\n    const urlObj = new URL(url);\n\n    if (isLocalUrl(urlObj)) {\n      return false;\n    }\n\n    const sameDomains = Config.sameTabDomains ?? [];\n\n    return sameDomains.some((domain: string) => urlObj.hostname === domain);\n  } catch (_e) {\n    // Do nothing return false\n  }\n\n  return false;\n};\n\n/**\n * Function factory for whether a given URL is the one currently being displayed OR is a parent.\n *\n * This is used to highlight breadcrumbs through navigation by highlighting items in the nav bar,\n * side bar etc.\n *\n * TODO: Refactor this. This should be in a separate context, and it needs to CHANGE when the\n * current path changes. Ticket: https://jira.sc-corp.net/browse/ENTWEB-5794\n */\nexport const createIsCurrentUrl: (getRequestUrl: () => string) => IsUrlCurrent =\n  getRequestUrl => (destinationUrlString, options) => {\n    const currentUrl = new URL(getRequestUrl());\n    const destinationUrl = new URL(destinationUrlString, currentUrl);\n\n    // If the target URL is in a different domain, then assume it's external and definitely not current.\n    if (!isLocalUrl(destinationUrl)) {\n      return false;\n    }\n\n    // Special case root dir.\n    if (destinationUrl.pathname === '/') {\n      return currentUrl.pathname === '/';\n    }\n\n    // Normal case\n    if (!options?.ignoredPathPrefix) {\n      return currentUrl.pathname === destinationUrl.pathname;\n    }\n\n    // Edge case: navigation item highlighting\n    // In this case, we need to omit prefixes when comparing the current path to the target url specified by users.\n    const pattern = new RegExp(`^${options.ignoredPathPrefix}`);\n    const currentPathWithoutPrefix = currentUrl.pathname.replace(pattern, '');\n\n    return currentPathWithoutPrefix === destinationUrl.pathname;\n  };\n", "/**\n * URL Parameters that override app behavior.\n *\n * Use this for dev purposes only. These should have no behavior on prod.\n */\nexport enum UrlParameter {\n  // NOTE: Techically all of the Feature enums are also in here since they are part of the URL params.\n\n  CONTENTFUL_ENVIRONMENT_NAME = 'contentfulEnvironmentName',\n\n  /**\n   * Overrides apollo behavior. Useful for turning off cache ('no-cache') or ignoring network\n   * ('cache-only').\n   */\n  CONTENTFUL_FETCH_POLICY = 'contentfulFetchPolicy',\n\n  /**\n   * Disables web sockets for the experience site. In an effort to save cost, we don't normally\n   * leave the staging version of the broadcast and bitmoji reaction services running. This flag\n   * allows us to test the experience site without trying (and failing) to connect to those services\n   * when they aren't running.\n   */\n  EXPERIENCE_DISABLE_WEB_SOCKETS = 'experienceDisableWebSockets',\n\n  /** State of the homepage on the experience site. Used for testing and debugging. */\n  EXPERIENCE_EVENT_STATE = 'eventState',\n\n  /**\n   * Used to disable video playing requirement to send bitmoji reactions Purpose: BRS live site\n   * loadtest\n   */\n  EXPERIENCE_REQUIRE_LIVE_VIDEO_FOR_BITMOJI = 'experienceRequireLiveVideo',\n\n  /**\n   * Overrides the final experiment user bucket output determined in `decideExperiment`. Used by\n   * CI/CD pipeline to ensure stable screen-shot tests when an experiment exists, and also in\n   * contentful to let users preview certain variants.\n   */\n  EXPERIMENTS_USER_BUCKET = 'experimentsUserBucket',\n\n  /**\n   * Google Tag Manager Debugging. This flag is appended by GTM Preview feature. When this happens\n   * we want to fire off GTM regardless of user's location because most of our customers are in\n   * California.\n   */\n  GOOGLE_TAG_MANAGER_DEBUG = 'gtm_debug',\n\n  /** Whether to display the debug panel in the lower-right corner. This works in prod. */\n  MWP_DEBUG = 'mwp_debug',\n\n  /** Whether to pause animations, like carousels. Primarily used by release tests. */\n  PAUSE_ANIMATIONS = 'pauseAnimations',\n\n  /** Easter Egg changing the scheme to a custom one (Bynd figma tokens import from 2023-10) */\n  USE_ALTERNATE_MOTIF = 'alternateMotif',\n}\n\nexport const urlParameters: UrlParameter[] = [\n  UrlParameter.CONTENTFUL_ENVIRONMENT_NAME,\n  UrlParameter.CONTENTFUL_FETCH_POLICY,\n  UrlParameter.EXPERIMENTS_USER_BUCKET,\n  UrlParameter.EXPERIENCE_EVENT_STATE,\n  UrlParameter.EXPERIENCE_REQUIRE_LIVE_VIDEO_FOR_BITMOJI,\n];\n", "import { Config } from '../config';\nimport { UrlParameter } from '../constants/urlParameters';\nimport { isLocalUrl } from './getLocalPath';\n\n/** Parameters we should always persist when navigating within the same tab */\nexport const persistedQueryParams = [\n  ...(Config.persistentQueryParams ?? []),\n  UrlParameter.GOOGLE_TAG_MANAGER_DEBUG,\n  UrlParameter.USE_ALTERNATE_MOTIF,\n];\n\n/** Parameters we should always persist, even for external navigation */\nexport const alwaysPersistQueryParams = ['lang'];\n\nexport const checkIfSameTabDomain = (targetUrl: URL, currentUrl: URL): boolean => {\n  // used for routing path redirects\n  if (isLocalUrl(targetUrl)) return true;\n\n  const sameDomains = [...(Config.sameTabDomains ?? []), currentUrl.hostname];\n  return sameDomains.some((domain: string) => targetUrl.hostname === domain);\n};\n\nexport const checkIfPersistParamsDomain = (url: URL, currentUrl: URL): boolean => {\n  // used for routing path redirects\n  if (isLocalUrl(url)) return true;\n\n  const persistDomains = new Set(Config.persistQueryParamsDomains ?? []);\n  persistDomains.add(currentUrl.hostname);\n  return persistDomains.has(url.hostname);\n};\n", "import { useContext } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { Config } from '../../config';\nimport { SitewideConfigurationContext } from '../../context/SitewideConfiguration/SitewideConfigurationContext';\nimport type { FeatureFlags } from './featureFlagTypes';\nimport { Feature } from './featureFlagTypes';\n\n/** Default values for the feature flags. */\nexport const defaultFeatureFlags: FeatureFlags = {\n  [Feature.TEST_FEATURE]: 'false',\n  [Feature.HOME_REDIRECT]: 'false',\n  [Feature.DISABLE_LAZY_LOAD_LOGGING]: 'false',\n  [Feature.SCROLL_TO_ANCHOR]: 'true',\n  [Feature.EXPERIENCE_ENABLE_ASL_STREAM]: 'true',\n  [Feature.EXPERIENCE_ENABLE_CAPTIONS]: 'true',\n  [Feature.SPS_SHOW_GO_TO_STREAM_BUTTON]: 'false',\n  [Feature.SPS_USE_EVENT_PLAYER]: 'false',\n  [Feature.ENABLE_PIXY_EUROPEAN_STORES]: 'false',\n  [Feature.COOKIE_BASED_BUCKETING]: 'false',\n  [Feature.ENABLE_DEVICE_SPECIFIC_MEDIA]: 'false',\n  [Feature.GLOBAL_NAV_ITEMS_POSITION]: 'right',\n  [Feature.USE_CHART_DROPDOWN_TOGGLE]: 'false',\n  [Feature.CAREERS_ENABLE_JOB_DETAIL_PAGE]: 'false',\n  [Feature.AVALON_ENABLE_CHAT_WIDGET]: 'false',\n  [Feature.ENABLE_SITE_SEARCH]: 'false',\n} as const;\n\n/**\n * Returns the value of FeatureFlags for the current request.\n *\n * Takes into consideration site settings and contentful overrides.\n */\nexport function useFeatureFlags(): FeatureFlags {\n  // Reads URL overrides (non-prod only).\n  const { getCurrentUrl } = useContext(AppContext);\n  const searchParams = new URL(getCurrentUrl()).searchParams;\n  const { sitewideValues } = useContext(SitewideConfigurationContext);\n\n  const featureFlagsEntry = sitewideValues?.featureFlags;\n  const contentfulFeatureFlags = featureFlagsEntry?.featureFlags as FeatureFlags | undefined;\n\n  return combineFeatureFlags(contentfulFeatureFlags, getUrlFeatureFlags(searchParams));\n}\n\n/**\n * Function to combine all feature flags in proper overrided ordering.\n *\n * @param contentfulFeatureFlags Flags sourced from contentful\n * @param urlOverrides Flags sourced from the url parameters\n * @returns\n */\nexport function combineFeatureFlags(\n  contentfulFeatureFlags?: FeatureFlags,\n  urlOverrides?: Partial<FeatureFlags>\n): FeatureFlags {\n  return {\n    // First copy defaults.\n    ...defaultFeatureFlags,\n    // Then use site-specific settings.\n    ...Config.featureFlags,\n    // Thie use contentful overrides.\n    ...contentfulFeatureFlags,\n    // Lastly, apply URL overrides.\n    ...urlOverrides,\n  };\n}\n\n/** Get the feature flags stored in a urls search parameters */\nexport function getUrlFeatureFlags(searchParams: URLSearchParams): Partial<FeatureFlags> {\n  const urlOverrides: Partial<FeatureFlags> = {};\n\n  if (!Config.isDeploymentTypeProd) {\n    for (const feature of Object.keys(defaultFeatureFlags)) {\n      const override = searchParams.get(feature);\n      if (!override) continue;\n      urlOverrides[feature as Feature] = override;\n    }\n  }\n\n  return urlOverrides;\n}\n", "import type { SitewideValues } from '@snapchat/mw-contentful-schema';\nimport { createContext } from 'react';\n\nexport interface SitewideConfigurationContextProps {\n  sitewideValues?: SitewideValues;\n}\n\nexport const SitewideConfigurationContext = createContext<SitewideConfigurationContextProps>({});\n", "// Logic is based on:\n// https://github.sc-corp.net/Snapchat/web-self-serve-ads/blob/master/client/src/apps/shared/scripts/l10n/utils/bhc.ts\n//\n// That site is built atop Salesforce and requires special handling.\n// - uses `language` instead of `lang` for tracking locale\n// - uses Salesforce language codes instead of web locale\n// - only supports 2 languages currently\n\nexport const businessHelpHostname = 'businesshelp.snapchat.com';\n\n/**\n * Maps web locale codes to language equivalents for businesshelp.snapchat.com\n *\n * See this page for list of Salesforce supported languages:\n * https://help.salesforce.com/s/articleView?id=sf.faq_getstart_what_languages_does.htm&type=5 Not\n * all of these are supported by businesshelp.snapchat.com, but the site will roll over to en_US for\n * unsupported languages.\n */\nconst localeLanguageMap: Record<string, string | undefined> = {\n  ar: 'ar',\n  'da-DK': 'da',\n  'de-DE': 'de',\n  'el-GR': 'el',\n  'en-GB': 'en_GB',\n  'en-US': 'en_US',\n  'es-ES': 'es',\n  'es-MX': 'es_MX',\n  'fi-FI': 'fi',\n  'fr-CA': 'fr',\n  'fr-FR': 'fr',\n  'id-ID': 'in',\n  'it-IT': 'it',\n  'ja-JP': 'ja',\n  'ko-KR': 'ko',\n  'nb-NO': 'no',\n  'nl-NL': 'nl_NL',\n  'pl-PL': 'pl',\n  'pt-BR': 'pt_BR',\n  'pt-PT': 'pt_PT',\n  'ru-RU': 'ru',\n  'sv-SE': 'sv',\n  'th-TH': 'th',\n  'tr-TR': 'tr',\n  'vi-VN': 'vi',\n  'zh-Hans': 'zh_CN',\n  'zh-Hant': 'zh_TW',\n};\n\n/**\n * Appends the specified url with the `language` query parameter.\n *\n * Includes special logic for the businesshelp.snapchat.com website.\n */\nexport const appendLocaleToBusinessHelpUrl = (url: URL, locale: string): void => {\n  const newLocale = localeLanguageMap[locale];\n\n  if (newLocale && !url.searchParams.has('language')) {\n    url.searchParams.set('language', newLocale);\n  }\n};\n", "import { defaultFeatureFlags } from '../components/FeatureFlags';\nimport { urlParameters } from '../constants/urlParameters';\nimport { appendLocaleToBusinessHelpUrl, businessHelpHostname } from './businessHelpUrl';\n\nconst relativePathPrefix = '/';\nconst httpPrefix = 'http://';\nconst httpPrefixUppercase = httpPrefix.toUpperCase();\nconst httpsPrefix = 'https://';\nconst httpsPrefixUppercase = httpsPrefix.toUpperCase();\n\nexport const isUrl = (str?: string): boolean =>\n  !!str &&\n  (str.startsWith(relativePathPrefix) ||\n    str.startsWith(httpPrefix) ||\n    str.startsWith(httpPrefixUppercase) ||\n    str.startsWith(httpsPrefix) ||\n    str.startsWith(httpsPrefixUppercase));\n\n/**\n * Combine query params of both old and new URL before navigating to new URL. For persistent query\n * params, we preserve them from the old URL. (i.e. if new URL also has a persistent query param, it\n * does not overwrite the old one) For non-persistent params in old URL, we drop them. (This is\n * because we don't want to track any non-UTM query params for now) If new URL contains referrer,\n * apply the persistent query params to referrer URL as well.\n */\nexport const copyUrlSearchParameters = (\n  destinationUrl: URL,\n  currentUrl: URL,\n  persistentQueryParams: string[]\n): void => {\n  const referrerUrlString = destinationUrl.searchParams.get('referrer');\n  const referrerUrl = referrerUrlString ? new URL(referrerUrlString) : null;\n\n  for (const queryParameter of persistentQueryParams) {\n    const value =\n      destinationUrl.searchParams.get(queryParameter) ??\n      currentUrl.searchParams.get(queryParameter) ??\n      referrerUrl?.searchParams.get(queryParameter);\n\n    if (!value) {\n      continue;\n    }\n    destinationUrl.searchParams.set(queryParameter, value);\n    referrerUrl?.searchParams.set(queryParameter, value);\n  }\n\n  if (referrerUrl) {\n    destinationUrl.searchParams.set('referrer', referrerUrl.href);\n  }\n};\n\n/** Returns the destination URL with some query parameters copied over from the current URL. */\nexport const mergeUrlParameters = (\n  destinationUrl: URL,\n  currentUrl: URL,\n  persistentQueryParams: string[] = []\n): void => {\n  copyUrlSearchParameters(destinationUrl, currentUrl, [\n    ...urlParameters,\n    ...Object.keys(defaultFeatureFlags),\n    ...persistentQueryParams,\n  ]);\n};\n\n/** Whether the url is for an internal site that should accept the LANG parameter. */\nconst acceptsLangParameter = (url: URL): boolean => {\n  return (\n    url.hostname.includes('snap.com') ||\n    url.hostname.includes('snapchat.com') ||\n    url.hostname.includes('pixy.com') ||\n    url.hostname.includes('yellowla.com') ||\n    url.hostname.includes('spectacles.com') ||\n    url.hostname.includes('arcadiacreativestudio.com')\n  );\n};\n\n/**\n * Appends the specified url with the `lang` query parameter.\n *\n * Includes special logic for the businesshelp.snapchat.com website.\n */\nexport const appendLocaleParameterToUrl = (url: URL, locale: string): void => {\n  if (!locale || !acceptsLangParameter(url)) return;\n\n  if (url.hostname === businessHelpHostname) {\n    appendLocaleToBusinessHelpUrl(url, locale);\n  } else if (!url.searchParams.has('lang')) {\n    url.searchParams.set('lang', locale);\n  }\n};\n", "import { localeMap } from '@snapchat/mw-common';\nimport type { AnchorHTMLAttributes } from 'react';\n\nimport { isLocalUrl } from './getLocalPath';\nimport {\n  alwaysPersistQueryParams,\n  checkIfPersistParamsDomain,\n  checkIfSameTabDomain,\n  persistedQueryParams,\n} from './redirectTo';\nimport { appendLocaleParameterToUrl, mergeUrlParameters } from './uri';\n\ninterface GetLinkPropsOptions {\n  destination: string | URL | undefined;\n  currentUrl: URL;\n  locale: string;\n  newTab?: boolean;\n}\n\nconst allLocales = Object.keys(localeMap);\n\n/**\n * Helper function for determining properties on an anchor (`<a ...`) for a given url in certain\n * context.\n *\n * Provides utility behaviors:\n *\n * - Triggers same or different tab navigation based on Site Configuration\n * - Trims and/or retains query params based on Site Configuration\n * - Appends `lang` param to external navigation\n */\nexport function getLinkProps(options: GetLinkPropsOptions): AnchorHTMLAttributes<unknown> {\n  if (!options.destination) return {};\n\n  const targetUrl = new URL(options.destination, options.currentUrl);\n\n  const isSameTabDomain = checkIfSameTabDomain(targetUrl, options.currentUrl);\n  const isPersistParamsDomain = checkIfPersistParamsDomain(targetUrl, options.currentUrl);\n  const openInNewTab = options.newTab !== undefined ? options.newTab : !isSameTabDomain;\n\n  const queryParamsToPersist = [\n    // only persist these query parameters for local and same tab navigation\n    ...(isPersistParamsDomain ? persistedQueryParams : []),\n    // always persist these query parameters\n    ...alwaysPersistQueryParams,\n  ];\n\n  mergeUrlParameters(targetUrl, options.currentUrl, queryParamsToPersist);\n\n  const isFinalTargetLocal = isLocalUrl(targetUrl);\n\n  // We only append lang=.. parameter to external sites.\n  if (!isFinalTargetLocal) {\n    appendLocaleParameterToUrl(targetUrl, options.locale);\n  }\n\n  // Remove all locale prefixes for local links.\n  if (isFinalTargetLocal) {\n    const localePrefix = allLocales.find(locale => targetUrl.pathname.match(`^/${locale}(/|$)`));\n\n    if (localePrefix) {\n      targetUrl.pathname = targetUrl.pathname.replace(`/${localePrefix}`, '');\n    }\n  }\n\n  // Mimic behavior of the stripTrailingSlash middleware:\n  // Used to prevent errors if a content editor includes this when setting a hyperlink target URL, etc.\n  // Purposely does not address behavior for external links\n  if (\n    isFinalTargetLocal &&\n    targetUrl.pathname.length > 1 &&\n    targetUrl.pathname[targetUrl.pathname.length - 1] === '/'\n  ) {\n    targetUrl.pathname = targetUrl.pathname.slice(0, -1);\n  }\n\n  // NOTE: Since 2021, all modern browsers have target=_blank imply rel=noopener\n  // I.e. Chrome: https://chromium-review.googlesource.com/c/chromium/src/+/1630010\n  // but we only want rel=noopener for external (non-local) sites, so we set the\n  // rel=opener|noopener explicitly.\n  return {\n    href: targetUrl.href,\n    rel: isFinalTargetLocal ? 'opener' : 'noopener',\n    target: openInNewTab ? '_blank' : '_self',\n  };\n}\n", "import type { OperationVariables, QueryHookOptions, QueryResult } from '@apollo/client';\nimport { useQuery } from '@apollo/client';\nimport type { Entity } from '@contentful/live-preview/dist/types';\nimport type { DocumentNode } from 'graphql';\nimport clone from 'lodash-es/clone';\nimport noop from 'lodash-es/noop';\nimport { useContext, useEffect, useState } from 'react';\n\nimport { AppContext } from '../AppContext';\nimport { ContentfulLivePreviewContext } from '../components/ContentfulLivePreview';\nimport { useContentfulContext } from '../components/useContentfulContext';\nimport { Config } from '../config';\nimport { convertNullsToUndefined } from '../utils/contentful/convertNullsToUndefined';\n\n/** Variables common for all contentful queries. */\nexport interface ContentfulQueryVariables {\n  preview?: boolean;\n  locale?: string;\n}\n\n/** Generic interface for queries requiring a sys id. */\nexport interface ContentfulIdVariable {\n  id?: string;\n}\n\n/** Generic interface for queries requiring a collection of sys ids. */\nexport interface ContentfulIdsVariable {\n  ids?: string[];\n}\n\n/** Context common for all contentful queries. */\nexport type ContentfulQueryOptions<TData, TVariables extends OperationVariables> = QueryHookOptions<\n  TData,\n  TVariables\n>;\n\n/**\n * Hook for executing `useQuery` from apollo with some context and variables pulled from the\n * environment.\n *\n * Usage:\n *\n *     const { data } = useContentfulQuery<DataInterface, VariableInterface>(query.all);\n *     return <FooSDS {...data} />;\n */\nexport const useContentfulQuery = <TData extends Entity, TVariables = ContentfulQueryVariables>(\n  query: DocumentNode,\n  options?: ContentfulQueryOptions<TData, TVariables & ContentfulQueryVariables>\n): QueryResult<TData, TVariables & ContentfulQueryVariables> => {\n  const { getCurrentUrl } = useContext(AppContext);\n  const { preview, locale, fetchPolicy } = useContentfulContext();\n  const { hasLivePreview } = useContext(ContentfulLivePreviewContext);\n\n  const queryOptions: QueryHookOptions<TData, ContentfulQueryVariables & TVariables> = {\n    fetchPolicy,\n    ...options,\n    context: { currentUrl: getCurrentUrl(), ...options?.context },\n    variables: {\n      preview,\n      locale,\n      ...options?.variables,\n    } as TVariables & ContentfulQueryVariables,\n    ssr: options?.ssr ?? Config.isSSR,\n  };\n\n  const queryResponse = useQuery<TData, TVariables & ContentfulQueryVariables>(query, queryOptions);\n\n  // Restart trigger for polling data.\n  // The regular behavior for polling is to stop after the first update.\n  // This effect restarts the polling so we can continue to receive updates.\n  useEffect(\n    () => {\n      if (!options?.pollInterval) return;\n      queryResponse.startPolling(options!.pollInterval);\n      return queryResponse.stopPolling;\n    },\n    // Rule of hooks gets this one wrong.\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    [queryResponse.data, options, queryResponse.startPolling, queryResponse.stopPolling]\n  );\n\n  const [updatedEntries, setUpdatedEntries] = useState<TData | object>({});\n\n  // Enable Live Updates if applicable\n  useEffect(() => {\n    let cleanup = noop;\n\n    async function subscribeToLiveUpdates(): Promise<void> {\n      const { ContentfulLivePreview } = await import('@contentful/live-preview');\n\n      const singleItemKeys = Object.keys(queryResponse.data!).filter(\n        key => queryResponse.data?.[key].sys && queryResponse.data?.[key].__typename\n      );\n\n      const collectionKeys = Object.keys(queryResponse.data!).filter(\n        key => queryResponse.data?.[key].items\n      );\n\n      const singleItemUnsubscribeFns = singleItemKeys.map(key => {\n        return ContentfulLivePreview.subscribe({\n          data: queryResponse.data![key],\n          locale,\n          callback: newData => {\n            setUpdatedEntries(entries => {\n              return { ...entries, [key]: newData };\n            });\n          },\n          query,\n        });\n      });\n\n      // Live Updates only work when you pass an Entry or an array of Entry, so we need to pass the items array directly.\n      const collectionUnsubscribeFns = collectionKeys.map(key => {\n        return ContentfulLivePreview.subscribe({\n          data: queryResponse.data![key].items,\n          locale,\n          callback: newData => {\n            setUpdatedEntries(entries => {\n              return { ...entries, [key]: { items: newData } };\n            });\n          },\n          query,\n        });\n      });\n\n      cleanup = () =>\n        [...singleItemUnsubscribeFns, ...collectionUnsubscribeFns].forEach(fn => fn());\n    }\n\n    if (hasLivePreview && queryResponse.data) {\n      void subscribeToLiveUpdates();\n    }\n\n    return cleanup;\n  }, [queryResponse.data, hasLivePreview, locale, query]);\n\n  let maybeClonedResponse = queryResponse;\n\n  if (queryResponse.data) {\n    // We need to keep queryResponse.data the same to prevent it from triggerring useEffect repeatedly when we\n    // set the query data. A shallow clone works here.\n    maybeClonedResponse = clone(queryResponse);\n    const dataToUse =\n      hasLivePreview && Object.keys(updatedEntries).length ? updatedEntries : queryResponse.data;\n\n    // Per team decision: we remove any values that are 'null'.\n    maybeClonedResponse.data = convertNullsToUndefined(dataToUse) as TData;\n  }\n\n  return maybeClonedResponse;\n\n  // NOTE: Apollo client already captured any errors.\n};\n", "// Based on: https://github.com/pladaria/requestidlecallback-polyfill\n\nexport const requestIdleCallback =\n  globalThis.requestIdleCallback ??\n  ((callback: IdleRequestCallback) => {\n    const start = Date.now();\n    return setTimeout(() => {\n      callback({\n        didTimeout: false,\n        timeRemaining: () => Math.max(0, 50 - (Date.now() - start)),\n      });\n    }, 1);\n  });\n\nexport const cancelIdleCallback =\n  globalThis.cancelIdleCallback ??\n  ((id: number | string) => {\n    clearTimeout(id);\n  });\n\n/** Installs the `requestIdleCallback` and `cancelIdleCallback` pollyfills. */\nexport const polyfillRequestIdleCallback = (): void => {\n  globalThis.requestIdleCallback = requestIdleCallback;\n  globalThis.cancelIdleCallback = cancelIdleCallback;\n};\n", "import type { BasePermission, EmptyObject, EventListener, LoggedEvent } from './loggingTypes';\nimport { requestIdleCallback } from '@snapchat/polyfills';\n\n// In extreme circumstances we stop logging to avoid memory leaks.\nconst maxQueueSize = 1e3;\n\n// The default timeout for requestIdleCallback\nconst defaultIdleTimeout = 500;\nexport interface BaseEventListenerProps<LoggingContext, CustomEvents> {\n  /** If set, will be a check whether to log the event. */\n  filter?: (event: LoggedEvent<CustomEvents>, context: Partial<LoggingContext>) => boolean;\n  /**\n   * Use this to set whether or not the event listener can run asynchronously. If true, logEvent\n   * will add the event to a queue and requestIdleCallback will be used to process the queue.\n   */\n  useAsync?: boolean;\n  /** If async, use this to set the timeout value. Defaults to 500 */\n  asyncTimeoutMs?: number;\n}\n\nexport interface Props<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends BasePermission = BasePermission\n> extends BaseEventListenerProps<LoggingContext, CustomEvents> {\n  requiredPermissions: Array<keyof LoggingPermission>;\n}\n\n/** Base event listener that can queue up events. */\nexport abstract class AbstractEventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends BasePermission = BasePermission\n> implements EventListener<LoggingContext, CustomEvents, LoggingPermission>\n{\n  protected readonly queuedEvents: Array<Parameters<typeof this.logEvent>> = [];\n  protected readonly permissions = new Set<keyof LoggingPermission>();\n  protected readonly baseProps;\n\n  protected isInitializing = false;\n  protected hasInitalized = false;\n\n  constructor(props: Props<LoggingContext, CustomEvents, LoggingPermission>) {\n    this.baseProps = props;\n  }\n\n  private addToQueue = (\n    event: LoggedEvent<CustomEvents>,\n    context: Partial<LoggingContext>\n  ): void => {\n    if (this.queuedEvents.length >= maxQueueSize) {\n      console.warn('Logging queue is full. Stopping logging.');\n      return;\n    }\n    this.queuedEvents.push([event, context]);\n  };\n\n  /**\n   * Checks for required permissions and if they're not met, queues the event for a later time.\n   *\n   * The queue has a max length, and if it fills up, events will get dropped.\n   *\n   * @override logEvent\n   */\n  public logEvent = (event: LoggedEvent<CustomEvents>, context: Partial<LoggingContext>): void => {\n    if (!!this.baseProps.filter && !this.baseProps.filter?.(event, context)) return;\n\n    if (!this.hasAllPermissions() || !this.hasInitalized) {\n      this.addToQueue(event, context);\n    } else if (this.baseProps.useAsync) {\n      this.addToQueue(event, context);\n      requestIdleCallback(this.logQueuedEvents, {\n        timeout: this.baseProps.asyncTimeoutMs ?? defaultIdleTimeout,\n      });\n    } else {\n      this.logEventInternal(event, context);\n    }\n  };\n\n  /** Checks whether all of the required permissions have been granted. */\n  protected hasAllPermissions = (): boolean => {\n    for (const permission of this.baseProps.requiredPermissions) {\n      if (!this.permissions.has(permission)) {\n        return false;\n      }\n    }\n\n    return true;\n  };\n\n  /** Any initialization that the logger has to do should be in the override of this method. */\n  protected init(): Promise<void> {\n    return Promise.resolve();\n  }\n\n  /** Actually logs the event to the underlying system. */\n  protected abstract logEventInternal(\n    event: LoggedEvent<CustomEvents>,\n    context?: Partial<LoggingContext>\n  ): void;\n\n  /** Logs any events that have been queued up. */\n  protected logQueuedEvents = (): void => {\n    for (const [event, context] of this.queuedEvents) {\n      this.logEventInternal(event, context);\n    }\n    this.queuedEvents.length = 0;\n  };\n\n  /** @override */\n  public allow = async (permission: keyof LoggingPermission): Promise<void> => {\n    this.permissions.add(permission);\n\n    if (this.hasAllPermissions() && !this.hasInitalized && !this.isInitializing) {\n      this.isInitializing = true;\n      await this.init();\n      this.hasInitalized = true;\n      this.isInitializing = false;\n      this.logQueuedEvents();\n    }\n\n    return;\n  };\n\n  /** @override */\n  public deny = (permission: keyof LoggingPermission): Promise<void> => {\n    this.permissions.delete(permission);\n    return Promise.resolve();\n  };\n\n  /** Forces a flush of the internal cache for the collector client. */\n  protected abstract flushInternal: () => Promise<unknown>;\n\n  /**\n   * Generic flush for all event listener types. Implement listener specific flushes in\n   * flushInternal.\n   *\n   * @override\n   */\n  public flush = (): Promise<unknown> => {\n    if (this.baseProps.useAsync) {\n      // We can't flush if we're not initialized.\n      this.hasAllPermissions() && this.hasInitalized && this.logQueuedEvents();\n    }\n    return this.flushInternal();\n  };\n}\n", "import type { BaseEventListenerProps } from './AbstractEventListener';\nimport { AbstractEventListener } from './AbstractEventListener';\nimport type { BasePermission, EmptyObject, LoggedEvent } from './loggingTypes';\n\nexport type MultipleDataLayerEvents<T = unknown> = {\n  type: 'multiple';\n  events: T[];\n};\n\n/**\n * Any DataLayer driven logger like GA4 or GTM require the user to accept Performance tracking in\n * GDPR regions. So this permission is baked into this implementation.\n */\nexport type DataLayerLoggingPermissions = BasePermission & {\n  performance: boolean;\n};\n\n/**\n * A logger that simply passes events to the dataLayer variable.\n *\n * This is how Google Analytics and Google Tag Manager works.\n */\nexport type DataLayerEventListenerProps<LoggingContext, OtherEvents, GoogleEventType> = {\n  /**\n   * Formats the events into the shape that the particular GTM/GA implementation unerstands.\n   *\n   * Note that because dataLayer accepts arrays as items, we can't return a regular array here for\n   * multiple events. So you have to wrap them in: { type: 'multiple', events: [...events...]} when\n   * returning.\n   */\n  eventFormatter: (\n    event: LoggedEvent<OtherEvents>,\n    context: Partial<LoggingContext>\n  ) => MultipleDataLayerEvents<GoogleEventType> | GoogleEventType | null | undefined;\n} & BaseEventListenerProps<LoggingContext, OtherEvents>;\n\n/** Rudimentary event listener that logs to the console. */\nexport abstract class AbstractDataLayerEventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject,\n  Permission extends DataLayerLoggingPermissions = DataLayerLoggingPermissions,\n  GoogleEvent extends EmptyObject = EmptyObject\n> extends AbstractEventListener<LoggingContext, CustomEvents, Permission> {\n  private readonly props: DataLayerEventListenerProps<\n    LoggingContext,\n    LoggedEvent<CustomEvents>,\n    GoogleEvent\n  >;\n  private eventCallbacks: Promise<void>[] = [];\n\n  constructor(\n    props: DataLayerEventListenerProps<LoggingContext, LoggedEvent<CustomEvents>, GoogleEvent>\n  ) {\n    super({\n      ...props,\n      requiredPermissions: ['logging', 'performance'],\n    });\n    this.props = props;\n  }\n\n  /** Adds an event to the dataLayer variable. This is handled differently between GA4 and GTM (FFS) */\n  protected abstract addEventToDataLayer(event: GoogleEvent): void;\n\n  /**\n   * Adds the event callback to an event.\n   *\n   * Returns whether the callback was added.\n   */\n  protected abstract addEventCallback: (event: GoogleEvent, callback: () => void) => boolean;\n\n  /** @override */\n  protected logEventInternal = (\n    event: LoggedEvent<CustomEvents>,\n    context: Partial<LoggingContext>\n  ): void => {\n    const formattedEvent = this.props.eventFormatter(event, context);\n    if (!formattedEvent) return;\n\n    const hasMultipleEvents =\n      typeof formattedEvent === 'object' &&\n      'type' in formattedEvent &&\n      // @ts-ignore Just checked on the line above.\n      formattedEvent.type === 'multiple';\n\n    if (hasMultipleEvents) {\n      const formattedEvents = formattedEvent;\n\n      for (const singleFormattedEvent of formattedEvents.events) {\n        this.logGoogleEvent(singleFormattedEvent);\n      }\n    } else {\n      this.logGoogleEvent(formattedEvent as GoogleEvent);\n    }\n  };\n\n  /**\n   * Helper function for writting a single event to the dataLayer.\n   *\n   * Adds listeners for event log completion so we can track when they're all done for the {flush}\n   * implementation.\n   */\n  protected logGoogleEvent = (event: GoogleEvent): void => {\n    // If not an event object, skip this value.\n    if (!event || typeof event !== 'object') {\n      return;\n    }\n\n    let onEventLoggedCallback: (value: void | PromiseLike<void>) => void;\n\n    const onEventLogged = new Promise<void>(resolve => {\n      onEventLoggedCallback = resolve;\n    });\n\n    const callbackAdded = this.addEventCallback(event, onEventLoggedCallback!);\n\n    callbackAdded && this.eventCallbacks.push(onEventLogged);\n    this.addEventToDataLayer(event);\n  };\n\n  /**\n   * Waits for all events in the dataLayer to be flagged as delivered (via event callback API)\n   * before resolving.\n   *\n   * @override\n   */\n  protected flushInternal: () => Promise<unknown> = async () => {\n    const resolvedCount = this.eventCallbacks.length;\n    await Promise.allSettled(this.eventCallbacks);\n\n    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n    this.eventCallbacks = this.eventCallbacks.slice(resolvedCount);\n\n    return;\n  };\n}\n", "import type {\n  BaseNetworkHandler,\n  Config,\n  Dimensions,\n  Graphene,\n  InitializeProps,\n} from '@snapchat/graphene';\nimport { graphene, PARTITION } from '@snapchat/graphene';\nimport type { WebMetricCollectorOptions } from '@snapchat/graphene';\nimport { getWebConfig } from '@snapchat/graphene';\nimport isNil from 'lodash/isNil.js';\n\nimport type { BaseEventListenerProps } from './AbstractEventListener';\nimport { AbstractEventListener } from './AbstractEventListener';\nimport type { BasePermission, EmptyObject, FlatContext, LoggedEvent } from './loggingTypes';\nimport { LoggingEventType } from './loggingTypes';\n\n/**\n * The limit of how many dimensions graphene supports. Per event graphene supports 6 slices one\n * going to the `metricsName`.\n */\nconst maxDimensions = 5;\n\nexport interface GrapheneEvent {\n  metricsName: string;\n  /** Value for addHistogram call to Graphene. */\n  value?: number;\n  /** Value for addTiming call to Graphene */\n  timing?: number;\n  dimensions?: Record<string, unknown>;\n}\n\nexport type GrapheneLoggingContext = {\n  /** If there are no values or timings, this will pass this into the addCounter call of graphene. */\n  incrementValue: number;\n};\n\ntype Props<\n  LoggingContext extends GrapheneLoggingContext = GrapheneLoggingContext,\n  CustomEvents extends EmptyObject = EmptyObject\n> = Omit<InitializeProps, 'networkHandler'> &\n  WebMetricCollectorOptions &\n  BaseEventListenerProps<LoggingContext, CustomEvents> & {\n    /**\n     * Function that extracts additional the dimensions from context to add to the default ones.\n     *\n     * Note that graphene can only support 5, so the first non-null 5 will be recorded. The first\n     * few usually come from the event, and not the context, so it's not unlikely that most of the\n     * fields here will not be recorded in all use-cases.\n     */\n    getAdditionalDimensions?: (context: Partial<LoggingContext>) => FlatContext | undefined;\n\n    /** Returns the graphene metric name. If not specifies a sensible default is used. */\n    getMetricName?: (\n      event: LoggedEvent<CustomEvents>,\n      context: Partial<LoggingContext>\n    ) => string | null;\n\n    /**\n     * Processor for custom events.\n     *\n     * @returns {undefined} MetricsName, value?, Dimensions or undefined if event not processed.\n     */\n    customEventFormat?: (\n      event: CustomEvents,\n      context: Partial<LoggingContext>\n    ) => GrapheneEvent | null | undefined;\n  };\n\n/**\n * Abstract Graphene EventListener that implements formatting but not the delivery. If no\n * partitionName is passed, it will log to PARTITION.WEB_COMMON.\n */\nexport abstract class AbstractGrapheneEventListener<\n  LoggingContext extends GrapheneLoggingContext = GrapheneLoggingContext,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends BasePermission = BasePermission\n> extends AbstractEventListener<LoggingContext, CustomEvents, LoggingPermission> {\n  private readonly props: Props<LoggingContext, CustomEvents>;\n  // TODO: Consider making this strict. I.e. /\\W+/g, but that would convert\n  // characters like ':' into underscores. But I'm not sure if that's better or\n  // worse. Right now, some characters get turned into ':'. So https://localhost/foo\n  // can either be https___localhost_foo or https:::localhost:foo and it's unclear what's\n  // better.\n  private readonly illegalCharRegex = /[\\s.]+/g;\n\n  private client: Graphene = graphene;\n\n  constructor(\n    props: Omit<Props<LoggingContext, CustomEvents>, 'partitionName'> & {\n      partitionName?: PARTITION;\n    }\n  ) {\n    super({\n      ...props,\n      requiredPermissions: ['logging'],\n    });\n\n    this.props = {\n      ...props,\n      partitionName: props.partitionName ?? PARTITION.WEB_COMMON,\n    };\n  }\n\n  /** Returns the network handler for sending Graphene events. */\n  protected abstract getNetworkHandler: (options: Config) => BaseNetworkHandler;\n\n  /** Returns the client for graphene. */\n  protected abstract getClient: () => Graphene;\n\n  /** @override */\n  protected init = (): Promise<void> => {\n    // getClient creates a new client so it is important that we only call it once.\n    this.client = this.getClient();\n\n    // Sanity check that this isn't an already initialized client.\n    if (this.client.isInitialized) {\n      console.warn('Graphene client already initialized. Ignoring init call.');\n      return Promise.resolve();\n    }\n\n    // We sanitize the props because graphene silently drops events if they have\n    // special characters in flavor or variant.\n    const grapheneConfigs = {\n      ...this.props,\n      flavor: this.props.flavor ? this.cleanDimensionString(this.props.flavor) : undefined,\n      variant: this.props.variant ? this.cleanDimensionString(this.props.variant) : undefined,\n    };\n\n    this.client.initialize({\n      networkHandler: this.getNetworkHandler(getWebConfig(grapheneConfigs)),\n      ...grapheneConfigs,\n    });\n\n    return Promise.resolve();\n  };\n\n  /** @override */\n  protected logEventInternal(\n    event: LoggedEvent<CustomEvents>,\n    context: Partial<LoggingContext>\n  ): void {\n    const metricsName = this.props.getMetricName?.(event, context);\n\n    switch (event.type) {\n      case LoggingEventType.DEBUG: {\n        // Log nothing for debug events. They are too noisy for graphene.\n        break;\n      }\n\n      case LoggingEventType.INFO: {\n        const dimensions = this.getDimensions(\n          {\n            action: event.action,\n            category: event.component,\n            label: event.label,\n          },\n          context\n        );\n\n        this.client.increment({\n          metricsName: metricsName ?? 'app_event',\n          dimensions,\n          value: context.incrementValue ?? 1,\n        });\n        break;\n      }\n\n      case LoggingEventType.TIMING: {\n        const dimensions = this.getDimensions(\n          {\n            variable: event.variable,\n            category: event.component,\n            label: event.label,\n          },\n          context\n        );\n\n        this.client.addTimer({\n          metricsName: metricsName ?? 'app_timing_event',\n          dimensions,\n          milliSec: Math.round(event.valueMs),\n        });\n        break;\n      }\n\n      case LoggingEventType.VALUE: {\n        const dimensions = this.getDimensions(\n          {\n            variable: event.variable,\n            category: event.component,\n            label: event.label,\n          },\n          context\n        );\n\n        this.client.addHistogram({\n          metricsName: metricsName ?? 'app_measure_event',\n          dimensions,\n          value: event.value,\n        });\n        break;\n      }\n\n      case LoggingEventType.WARNING: {\n        const dimensions = this.getDimensions({ category: event.component }, context);\n\n        this.client.increment({\n          metricsName: metricsName ?? 'app_warning',\n          dimensions,\n        });\n        break;\n      }\n\n      case LoggingEventType.ERROR: {\n        const dimensions = this.getDimensions(\n          { category: event.component, action: event.action },\n          context\n        );\n\n        this.client.increment({\n          metricsName: metricsName ?? 'app_error',\n          dimensions,\n        });\n        break;\n      }\n\n      case LoggingEventType.USER_ACTION: {\n        const dimensions = this.getDimensions(\n          { category: event.component, action: event.action, label: event.label },\n          context\n        );\n\n        this.client.increment({\n          metricsName: metricsName ?? 'user_action',\n          dimensions,\n        });\n        break;\n      }\n\n      case LoggingEventType.CUSTOM: {\n        const customEvent = this.props.customEventFormat?.(event, context);\n        if (!customEvent) break;\n        const { metricsName, value, timing, dimensions: extractedDimensions } = customEvent;\n        const dimensions = this.getDimensions(extractedDimensions ?? {}, context);\n\n        if (value) {\n          this.client.addHistogram({ metricsName, dimensions, value });\n        } else if (timing) {\n          // NOTE: Timing has to be a whole number.\n          this.client.addTimer({ metricsName, dimensions, milliSec: Math.round(timing) });\n        } else {\n          this.client.increment({ metricsName, dimensions, value: context.incrementValue ?? 1 });\n        }\n        break;\n      }\n    }\n  }\n\n  /** Aggregates up to {@link maxDimensions} from the event and context. */\n  protected getDimensions = (\n    eventDimensions: Record<string, unknown>,\n    context: Partial<LoggingContext>\n  ): Dimensions => {\n    const dimensions: Dimensions = {};\n\n    // Copy provided dimensions from the event\n    for (const [key, value] of Object.entries(eventDimensions)) {\n      if (isNil(value)) continue;\n      const dimensionKey = this.cleanDimensionString(key);\n      dimensions[dimensionKey] = this.cleanDimensionString(String(value));\n    }\n\n    // Copies the dimensions from context.\n    if (this.props.getAdditionalDimensions) {\n      const flatContext = this.props.getAdditionalDimensions(context) ?? {};\n\n      for (const [key, value] of Object.entries(flatContext)) {\n        if (isNil(value)) continue;\n        if (Object.keys(dimensions).length >= maxDimensions) break;\n        const dimensionKey = this.cleanDimensionString(String(key));\n        dimensions[dimensionKey] = this.cleanDimensionString(String(value));\n      }\n    }\n\n    return dimensions;\n  };\n\n  /**\n   * Graphene doesn't support empty strings, so replace with 'Unknown'. Also replace any whitespace\n   * or periods in the input string with underscores, this avoids issues finding the logs later due\n   * to the partitions not matching expectations. Example: convert '523.snap.com' to '523_snap_com'\n   * since periods represent partitions in Graphene.\n   */\n  protected cleanDimensionString = (input?: string): string => {\n    if (!input) return 'Unknown';\n    return input.replace(this.illegalCharRegex, '_');\n  };\n\n  /** @override */\n  protected flushInternal = async (): Promise<void> => {\n    await this.client?.flush();\n  };\n}\n", "// ============================================================================\n// Core interfaces for event listeners.\n// ============================================================================\n\n/** Default permissions that all logging event listeners should support */\nexport type BasePermission = {\n  logging: boolean;\n};\n\n// biome-ignore lint/complexity/noBannedTypes: We actually do want an empty object here, and not a Record<string, never> because we use this for typechecking <T extends EmptyObject>\nexport type EmptyObject = {};\n\n/**\n * A flat context (table) that can be written out by loggers that ultimately end up in a tabular\n * format.\n */\nexport type FlatContext = Record<string, string | number | null | undefined>;\n\n/**\n * A listener to events on the logging event bus.\n *\n * @param LoggingContext Interface for the context that be set on the logger via logger.setContext\n *   or via a second parameter to any logEvent/logInfo/... command.\n * @param CustomEvent Interface for any custom events that can be sent over the event bus. This\n *   framework is agnostic to web/node/cli/runtime etc, so users are encouraged to make their own\n *   events through this.\n * @param LoggingPermission Extensions to default permissions for custom listeners. The defautl\n *   permissions are meant to forwarding user permissions from marketing sites as reviewed by legal,\n *   but this is extensible for server-side applications.\n */\nexport type EventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvent extends EmptyObject = EmptyObject,\n  LoggingPermission extends BasePermission = BasePermission\n> = {\n  /** Logs the event. Can be queuing it, or waiting for a batch. */\n  logEvent: (event: LoggedEvent<CustomEvent>, context: Partial<LoggingContext>) => void;\n  /** Turns on delivery of events that require permissions. */\n  allow: (permission: keyof LoggingPermission) => Promise<void>;\n  deny: (permission: keyof LoggingPermission) => Promise<void>;\n  /** Sends any queued up events. Typically called before process exit. */\n  flush: () => Promise<unknown>;\n};\n\n// ============================================================================\n// Event interfaces\n// ============================================================================\n\n/**\n * The interface for the types of events that can be sent over the event bus. P This can be extended\n * by passing in other events through the @param OtherEvents.\n */\nexport type LoggedEvent<OtherEvents> =\n  | InternalEvent\n  | InternalValueEvent\n  | InternalTimingEvent\n  | UserInteractionEvent\n  | WarningEvent\n  | ErrorEvent\n  | DebugEvent\n  | CustomEvent<OtherEvents>;\n\n/**\n * Types of events that can be sent over the event bus. All event listeners use this to\n * differentiate between events they do and do not listen to.\n *\n * This is an emalgamation of Logging Severity, Count vs Measure and User vs Internal categories.\n *\n * The default is INFO and different listeners handle custom events differently including changing\n * the logging severity for CUSTOM events.\n */\nexport enum LoggingEventType {\n  CUSTOM = 'custom',\n  DEBUG = 'debug',\n  ERROR = 'error',\n  INFO = 'info',\n  TIMING = 'timing',\n  USER_ACTION = 'user_action',\n  VALUE = 'value',\n  WARNING = 'warning',\n}\n\n/** Interface for any events that are not generic. */\nexport type CustomEvent<CustomEvents> = CustomEvents & {\n  type: LoggingEventType.CUSTOM;\n};\n\n/** An error event. To be used for unrecoverable sitations that requires fixing. */\nexport type ErrorEvent = {\n  type: LoggingEventType.ERROR;\n  /** Place where the error occurred. */\n  component: string;\n  /** Error that was thrown. Can be anything, but we do prefer errors. */\n  error?: unknown;\n  /** Human readable text. Usually logged as-is */\n  message?: string;\n  /**\n   * Specific situation that the error is occurring. Helps for specificity and if you want metrics\n   * on it.\n   */\n  action?: string;\n};\n\n/** A warning. To be used for */\nexport type WarningEvent = {\n  type: LoggingEventType.WARNING;\n  /** Place where the error occurred. */\n  component: string;\n  /** Human-readable text. Usually logged as-is. */\n  message?: string;\n  /** Specific action that was being undertaken when the warning occurred. */\n  action?: string;\n};\n\n/**\n * An event that is triggered by a user action.\n *\n * This originates on the web where it's important to track what the user does vs what performance\n * metrics get recorded.\n */\nexport type UserInteractionEvent = {\n  type: LoggingEventType.USER_ACTION;\n  /** Place where the event happened */\n  component: string;\n  /** What action did the user take. Suggestion is to keep this to one verb. */\n  action: string;\n  /** What did the action relate to. This should be specific like an ID. */\n  label: string;\n};\n\n/** An info-level event not originated by the user. */\nexport type InternalEvent = {\n  type: LoggingEventType.INFO;\n  /** Place where the event happened */\n  component: string;\n  /** What happened. Suggest to keep this to one verb */\n  action: string;\n  /** What did the action relate to. Be specific. This should be an ID. */\n  label?: string;\n};\n\n/**\n * An info-level log for a performance event that has a value.\n *\n * Note that this can store any value, but if you need to store duration in milliseconds use the\n * dedicated InternalTimingEvent.\n */\nexport type InternalValueEvent = {\n  type: LoggingEventType.VALUE;\n  /** Place where the measurement happened */\n  component: string;\n  /** Name of a metric */\n  variable: string;\n  /** Metric value */\n  value: number;\n  /** Any ID for the measured object */\n  label?: string;\n};\n\n/**\n * Duration measurement event. Same as InternalValueEvent but the units are whole milliseconds.\n *\n * If you need to measure something other than duration, use InternalValueEvent.\n */\nexport type InternalTimingEvent = {\n  type: LoggingEventType.TIMING;\n  /** Place where the measurement happened */\n  component: string;\n  /** Name of a metric */\n  variable: string;\n  /** Time in milliseconds (always milliseconds) */\n  valueMs: number;\n  /** Any ID for the measured time */\n  label?: string;\n};\n\n/** Any debug-level event. Can be thrown away or not logged */\nexport type DebugEvent = {\n  type: LoggingEventType.DEBUG;\n  /** Place where the event happened */\n  component: string;\n  /** Human-readable text. */\n  message: string;\n};\n\n// ============================================================================\n// Misc interfaces\n// ============================================================================\n\n/**\n * Tracking permissions on the web.\n *\n * These correspond directly to the tracking categories reviewed by Snap Legal as far as cookie\n * storage and what we're allowed to track for users.\n *\n * It is on implementers of EventListener interfaces to adhere to these.\n *\n * See https://snap.com/en-US/cookie-settings\n */\nexport type WebTrackingPermission = BasePermission & {\n  marketing: boolean;\n  performance: boolean;\n};\n\n/** Events collected client side to forward to hermes client event collection. */\nexport interface EventRequest<CustomEvent, LoggingContext> {\n  events: EventPayload<CustomEvent, LoggingContext>[];\n  /** Timestamp request was made. */\n  timestamp: number;\n}\n\n/** Event and context payload request used for forwarding client events to hermes. */\nexport interface EventPayload<CustomEvent, LoggingContext> {\n  event: LoggedEvent<CustomEvent>;\n  context: Partial<LoggingContext>;\n}\n", "import type { ScopeContext } from '@sentry/types';\nimport { parseError } from '@snapchat/core';\n\nimport type { BaseEventListenerProps } from './AbstractEventListener';\nimport { AbstractEventListener } from './AbstractEventListener';\nimport type { BasePermission, EmptyObject, FlatContext, LoggedEvent } from './loggingTypes';\nimport { LoggingEventType } from './loggingTypes';\n\n/**\n * Context for sentry logs.\n *\n * Note that we omit 'level' because it's incompatible between server and client libs. TODO: Add\n * level back when we can rectify this situation.\n */\n\nexport type SentryContext = Omit<ScopeContext, 'level'>;\n\nexport type SentryCapturer = (error: Error, context: Partial<SentryContext>) => void;\n\nexport interface SentryEventListenerProps<\n  LoggingContext extends EmptyObject,\n  CustomEvents extends EmptyObject\n> extends BaseEventListenerProps<LoggingContext, CustomEvents> {\n  getFlatContext: (context: Partial<LoggingContext>) => FlatContext;\n}\n\nexport abstract class AbstractSentryEventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends BasePermission = BasePermission\n> extends AbstractEventListener<LoggingContext, CustomEvents, LoggingPermission> {\n  protected readonly props: SentryEventListenerProps<LoggingContext, CustomEvents>;\n  private captureException: SentryCapturer | undefined;\n\n  constructor(props: SentryEventListenerProps<LoggingContext, CustomEvents>) {\n    super({\n      ...props,\n      requiredPermissions: ['logging'],\n    });\n    this.props = props;\n  }\n\n  /** @override */\n  protected init = async (): Promise<void> => {\n    this.captureException = await this.getExceptionCapturer();\n  };\n\n  /** @override */\n  protected logEventInternal(\n    event: LoggedEvent<CustomEvents>,\n    context: Partial<LoggingContext>\n  ): void {\n    switch (event.type) {\n      case LoggingEventType.ERROR: {\n        const error = event.message\n          ? new Error(event.message)\n          : parseError(event.error ?? 'UnknownError');\n\n        const flatContext = this.props.getFlatContext(context) ?? {};\n        const sentryContext = Object.fromEntries(\n          Object.entries(flatContext).filter(([, value]) => !!value)\n        );\n\n        // Taken from: https://github.com/getsentry/sentry-javascript/blob/master/packages/react/src/errorboundary.tsx\n        // Note that we use 'generic' because we don't have enough captured contexts to group them\n        // by subcategories.\n        this.captureException!(error, {\n          contexts: { generic: sentryContext },\n        });\n        break;\n      }\n    }\n  }\n\n  /** Lazy loads the library for capturing into sentry. */\n  protected abstract getExceptionCapturer: () => Promise<SentryCapturer>;\n\n  /** @override */\n  protected flushInternal: () => Promise<unknown> = () => Promise.resolve();\n}\n", "import omit from 'lodash/omit.js';\n\nimport type { BaseEventListenerProps } from './AbstractEventListener';\nimport { AbstractEventListener } from './AbstractEventListener';\nimport type { BasePermission, EmptyObject, FlatContext, LoggedEvent } from './loggingTypes';\nimport { LoggingEventType } from './loggingTypes';\n\nexport type ConsoleEventListenerProps<LoggingContext, CustomEvents> = {\n  /** Returns a selection fields to log to the console. */\n  getFlatContext?: (context: Partial<LoggingContext>) => FlatContext;\n\n  /**\n   * For custom events allows for custom formatting.\n   *\n   * If this is not specified, custom events are printed using JSON.stringify.\n   */\n  customEventFormatter?: (\n    event: CustomEvents,\n    context: Partial<LoggingContext>\n  ) => unknown | unknown[] | null;\n  /** Transform for the arguments passed to the console. Useful for adding colors. */\n  messageTransform?: (type: LoggingEventType, args: unknown[]) => unknown[];\n} & BaseEventListenerProps<LoggingContext, CustomEvents>;\n\n/** Rudimentary event listener that logs to the console. */\nexport class ConsoleEventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  OtherEvents extends EmptyObject = EmptyObject,\n  Permission extends BasePermission = BasePermission\n> extends AbstractEventListener<LoggingContext, OtherEvents, Permission> {\n  private readonly props: ConsoleEventListenerProps<LoggingContext, OtherEvents>;\n  private readonly printConsole: Console;\n\n  constructor(\n    props?: ConsoleEventListenerProps<LoggingContext, OtherEvents>,\n    printConsole: Console = console\n  ) {\n    super({\n      ...props,\n      requiredPermissions: ['logging'],\n    });\n    this.props = props ?? {};\n    this.printConsole = printConsole;\n  }\n\n  protected logEventInternal = (\n    event: LoggedEvent<OtherEvents>,\n    context: Partial<LoggingContext>\n    // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: This is fine.\n  ): void => {\n    let contextDict: Record<string, unknown> | undefined;\n\n    if (this.props.getFlatContext) {\n      const flatContext = this.props.getFlatContext(context) ?? {};\n\n      for (const [key, value] of Object.entries(flatContext)) {\n        if (!value) continue;\n        if (!contextDict) contextDict = {};\n        contextDict[String(key)] = value;\n      }\n    }\n\n    switch (event.type) {\n      case LoggingEventType.DEBUG: {\n        const messageAndArgs = [`${event.component}: ${event.message}`, contextDict ?? ''];\n        this.printConsole.debug(...this.transform(event.type, messageAndArgs));\n        break;\n      }\n\n      case LoggingEventType.INFO: {\n        const maybeLabel = event.label ? ` (${event.label})` : '';\n        const messageAndArgs = [\n          `${event.component}: ${event.action}${maybeLabel}`,\n          contextDict ?? '',\n        ];\n        this.printConsole.info(...this.transform(event.type, messageAndArgs));\n        break;\n      }\n\n      case LoggingEventType.USER_ACTION: {\n        const maybeLabel = event.label ? ` (${event.label})` : '';\n        const messageAndArgs = [\n          `${event.component}: ${event.action}${maybeLabel}`,\n          contextDict ?? '',\n        ];\n        this.printConsole.info(...this.transform(event.type, messageAndArgs));\n        break;\n      }\n\n      case LoggingEventType.VALUE: {\n        const maybeLabel = event.label ? ` (${event.label})` : '';\n        const messageAndArgs = [\n          `${event.component}: ${event.variable} = ${event.value.toLocaleString()}${maybeLabel}`,\n          contextDict ?? '',\n        ];\n        this.printConsole.info(...this.transform(event.type, messageAndArgs));\n        break;\n      }\n\n      case LoggingEventType.TIMING: {\n        const maybeLabel = event.label ? ` (${event.label})` : '';\n        const messageAndArgs = [\n          `${event.component}: ${event.variable} = ${Math.round(event.valueMs)}ms${maybeLabel}`,\n          contextDict ?? '',\n        ];\n        this.printConsole.info(...this.transform(event.type, messageAndArgs));\n        break;\n      }\n\n      case LoggingEventType.WARNING: {\n        const messageAndArgs = [`${event.component}: ${event.message}`, contextDict ?? ''];\n        this.printConsole.warn(...this.transform(event.type, messageAndArgs));\n        break;\n      }\n\n      case LoggingEventType.ERROR: {\n        const maybeAction = event.action ? ` (${event.action})` : '';\n        const messageAndArgs = [\n          `${event.component}: ${event.message}${maybeAction}`,\n          event.error,\n          contextDict ?? '',\n        ];\n        this.printConsole.error(...this.transform(event.type, messageAndArgs));\n        break;\n      }\n\n      case LoggingEventType.CUSTOM: {\n        const message = this.props.customEventFormatter\n          ? this.props.customEventFormatter(event, context)\n          : omit(event, 'type');\n        if (!message) break;\n\n        const messageAndArgs = [\n          'Custom:',\n          ...(Array.isArray(message) ? message : [message]),\n          contextDict ?? '',\n        ];\n        this.printConsole.info(...this.transform(event.type, messageAndArgs));\n        break;\n      }\n    }\n  };\n\n  protected transform = (type: LoggingEventType, message: unknown[]): unknown[] =>\n    this.props.messageTransform ? this.props.messageTransform(type, message) : message;\n\n  /** @override */\n  protected flushInternal: () => Promise<unknown> = () => Promise.resolve();\n}\n", "import assign from 'lodash/assign.js';\nimport cloneDeep from 'lodash/cloneDeep.js';\n\nimport type {\n  BasePermission,\n  DebugEvent,\n  EmptyObject,\n  ErrorEvent,\n  EventListener,\n  InternalEvent,\n  InternalTimingEvent,\n  InternalValueEvent,\n  LoggedEvent,\n  UserInteractionEvent,\n  WarningEvent,\n} from './loggingTypes';\nimport { LoggingEventType } from './loggingTypes';\n\n// In extreme circumstances we stop logging to avoid memory leaks.\nconst maxQueueSize = 1e3;\n\n/**\n * An event bus for logging.\n *\n * Loggers are registered as event listeners. There's no way to unregister because the design\n * assumes that the logger is instantiated only once per application.\n *\n * Propagates permissions. Logging is disabled by default and needs to be enabled via\n * `logger.allow(TrackingPermission.ESSENTIAL)`\n *\n * Stores global context. When global context changes it is expected that that `logger.setContext({\n * newValue: 'foo', clearValue: undefined })` etc is called.\n *\n * Provides convenience methods like `logger.logInfo` that can be exported.\n *\n * See EventListener for explanation of the generics.\n */\nexport class LoggingEventBus<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvent extends EmptyObject = EmptyObject,\n  Permission extends BasePermission = BasePermission\n> {\n  private readonly contextProviders = new Set<() => Partial<LoggingContext>>();\n  private readonly eventListeners: EventListener<LoggingContext, CustomEvent, Permission>[] = [];\n  private readonly permissions = new Set<keyof Permission>();\n  protected readonly queuedEvents: Array<[LoggedEvent<CustomEvent>, Partial<LoggingContext>]> = [];\n\n  constructor(...listeners: EventListener<LoggingContext, CustomEvent, Permission>[]) {\n    this.eventListeners.push(...listeners);\n  }\n\n  /**\n   * Adds event listeners.\n   *\n   * Sets the allowed permissions on them.\n   *\n   * Does not do anything fancy, so you can hypothetically register similar listeners multiple\n   * times.\n   */\n  public addEventListeners(\n    ...listeners: EventListener<LoggingContext, CustomEvent, Permission>[]\n  ): void {\n    this.eventListeners.push(...listeners);\n\n    for (const listener of listeners) {\n      for (const permission of this.permissions) {\n        listener.allow(permission).catch(console.error);\n      }\n    }\n  }\n\n  /** Adds a context provider that gets called before an event is logged. */\n  public addContextProvider = (provider: () => Partial<LoggingContext>): void => {\n    this.contextProviders.add(provider);\n  };\n\n  /** Remove a context provider. */\n  public removeContextProvider = (provider: () => Partial<LoggingContext>): void => {\n    this.contextProviders.delete(provider);\n  };\n\n  /**\n   * Sends the event to all of the event listeners.\n   *\n   * Ques up the event if no listeners are present. Ensures that the context is grabbed when the\n   * event is queued.\n   */\n  public logEvent = (event: LoggedEvent<CustomEvent>, context?: Partial<LoggingContext>): void => {\n    const combinedContext = this.getCombinedContext(context);\n\n    // Queue events if we don't have any listeners.\n    if (this.eventListeners.length === 0) {\n      if (this.queuedEvents.length > maxQueueSize) {\n        console.warn('Logging queue is full. Stopping logging.');\n        return;\n      }\n      this.queuedEvents.push([event, combinedContext]);\n      return;\n    }\n\n    this.notifyListeners(event, combinedContext);\n  };\n\n  /** Combines the event context with all the context providers. */\n  protected getCombinedContext = (context?: Partial<LoggingContext>): Partial<LoggingContext> => {\n    const combinedContext: Partial<LoggingContext> = {};\n\n    for (const getContext of this.contextProviders) {\n      // The context provider is external and can crash logging if not caught.\n      try {\n        assign(combinedContext, getContext());\n      } catch (error) {\n        console.error(`Unable to get context from ${getContext.name}`, error);\n      }\n    }\n\n    // Ensure event context gets last values\n    if (context) {\n      assign(combinedContext, cloneDeep(context));\n    }\n\n    return combinedContext;\n  };\n\n  /**\n   * Notifies all the listeners of the event.\n   *\n   * IMPORTANT: This is different from `logEvent` because it doesn't get the new context at the time\n   * of the event record because it may be different (which is bad).\n   */\n  protected notifyListeners = (\n    event: LoggedEvent<CustomEvent>,\n    context: Partial<LoggingContext>\n  ): void => {\n    for (const listener of this.eventListeners) {\n      listener.logEvent(event, context);\n    }\n  };\n\n  /** Logs any events that have been queued up. */\n  protected logQueuedEvents = (): void => {\n    if (this.queuedEvents.length === 0) return;\n    for (const [event, context] of this.queuedEvents) {\n      this.notifyListeners(event, context);\n    }\n    this.queuedEvents.length = 0;\n  };\n\n  /**\n   * Notifies listeners that a permission has been granted.\n   *\n   * NOTE: All listeners require 'logging' to be granted before they can log anything.\n   */\n  public allow = async (permission: keyof Permission): Promise<void> => {\n    this.permissions.add(permission);\n    await Promise.all(this.eventListeners.map(listener => listener.allow(permission)));\n    this.logQueuedEvents();\n  };\n\n  /**\n   * Notifies listeners that a permission has been given away.\n   *\n   * This typically does not happen except on the web where a user can mid-session turn off\n   * tracking.\n   */\n  public deny = async (permission: keyof Permission): Promise<void> => {\n    this.permissions.delete(permission);\n    await Promise.all(this.eventListeners.map(listener => listener.deny(permission)));\n  };\n\n  /** Flushes all of the listeners */\n  public flush = async (): Promise<void> => {\n    const tryFlushListeners = this.eventListeners.map(listener => {\n      // Need to handle any errors that may occur in a single listener so it doesn't block processing of subsequent listeners.\n      return listener.flush().catch(error => console.error(error));\n    });\n\n    await Promise.allSettled(tryFlushListeners);\n  };\n\n  // ==========================================================================\n  // Convenience methods.\n  // ==========================================================================\n\n  public logError = (data: Omit<ErrorEvent, 'type'>, context?: Partial<LoggingContext>): void => {\n    this.logEvent({ ...data, type: LoggingEventType.ERROR }, context);\n  };\n\n  public logWarning = (\n    data: Omit<WarningEvent, 'type'>,\n    context?: Partial<LoggingContext>\n  ): void => {\n    this.logEvent({ ...data, type: LoggingEventType.WARNING }, context);\n  };\n\n  public logDebug = (data: Omit<DebugEvent, 'type'>, context?: Partial<LoggingContext>): void => {\n    this.logEvent({ ...data, type: LoggingEventType.DEBUG }, context);\n  };\n\n  public logInfo = (data: Omit<InternalEvent, 'type'>, context?: Partial<LoggingContext>): void => {\n    this.logEvent({ ...data, type: LoggingEventType.INFO }, context);\n  };\n\n  public logTiming = (\n    data: Omit<InternalTimingEvent, 'type'>,\n    context?: Partial<LoggingContext>\n  ): void => {\n    this.logEvent({ ...data, type: LoggingEventType.TIMING }, context);\n  };\n\n  public logValue = (\n    data: Omit<InternalValueEvent, 'type'>,\n    context?: Partial<LoggingContext>\n  ): void => {\n    this.logEvent({ ...data, type: LoggingEventType.VALUE }, context);\n  };\n\n  public logUserEvent = (\n    data: Omit<UserInteractionEvent, 'type'>,\n    context?: Partial<LoggingContext>\n  ): void => {\n    this.logEvent({ ...data, type: LoggingEventType.USER_ACTION }, context);\n  };\n\n  public logCustom = (data: CustomEvent, context?: Partial<LoggingContext>): void => {\n    this.logEvent({ ...data, type: LoggingEventType.CUSTOM }, context);\n  };\n}\n", "import type { BaseEventListenerProps } from '../AbstractEventListener';\nimport { AbstractEventListener } from '../AbstractEventListener';\nimport type { BasePermission, EmptyObject, LoggedEvent } from '../loggingTypes';\nimport type { TestCustomEvent, TestLoggingContext } from './testLogEvents';\n\nexport interface TestEventListenerProps<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends BasePermission = BasePermission\n> extends BaseEventListenerProps<LoggingContext, CustomEvents> {\n  requiredPermissions: Array<keyof LoggingPermission>;\n}\n\n/**\n * Event listener for testing.\n *\n * All this does is capture any events it would record in a separate array that is publicly\n * accessible.\n */\nexport class TestEventListener<\n  LoggingContext extends TestLoggingContext = TestLoggingContext,\n  CustomEvents extends TestCustomEvent = TestCustomEvent,\n  LoggingPermission extends BasePermission = BasePermission\n> extends AbstractEventListener<LoggingContext, CustomEvents, LoggingPermission> {\n  public readonly queuedEvents: Array<Parameters<typeof this.logEvent>> = [];\n  public readonly capturedEvents: Array<Parameters<typeof this.logEvent>> = [];\n  public readonly permissions = new Set<keyof LoggingPermission>();\n\n  public hasInitalized = true;\n\n  constructor(props?: TestEventListenerProps<LoggingContext, CustomEvents, LoggingPermission>) {\n    super({\n      requiredPermissions: props?.requiredPermissions ?? [],\n      filter: props?.filter,\n      useAsync: props?.useAsync ?? false,\n      asyncTimeoutMs: props?.asyncTimeoutMs,\n    });\n  }\n\n  /** @override */\n  protected logEventInternal(\n    event: LoggedEvent<CustomEvents>,\n    context: Partial<LoggingContext>\n  ): void {\n    this.capturedEvents.push([event, context]);\n  }\n\n  /** Resets the state of the listener. */\n  public reset = (): void => {\n    this.queuedEvents.length = 0;\n    this.capturedEvents.length = 0;\n    this.permissions.clear();\n    this.hasInitalized = false;\n  };\n\n  /** @override */\n  protected flushInternal: () => Promise<unknown> = () => Promise.resolve();\n}\n", "import type {\n  CustomEvent,\n  DebugEvent,\n  ErrorEvent,\n  InternalEvent,\n  InternalTimingEvent,\n  InternalValueEvent,\n  LoggedEvent,\n  UserInteractionEvent,\n  WarningEvent,\n} from '../loggingTypes';\nimport { LoggingEventType } from '../loggingTypes';\n\nexport interface TestLoggingContext {\n  errorCode: number;\n  site: string;\n  buildNumber: number;\n  locale: string;\n  empty: string;\n  incrementValue: number;\n  exclude: boolean;\n}\n\nexport const testLoggingContext: Partial<TestLoggingContext> = {\n  errorCode: 500,\n  site: 'snap.com',\n  buildNumber: 68731,\n  locale: 'en-US',\n};\n\nexport interface TestPageLoadEvent {\n  pathname: string;\n  customType: 'page_load';\n}\n\nexport interface TestNavigateEvent {\n  url: string;\n  customType: 'navigate';\n  durationMs: number;\n}\n\nexport type TestCustomEvent = TestPageLoadEvent | TestNavigateEvent;\n\nexport const testPageLoadEvent: CustomEvent<TestPageLoadEvent> = {\n  type: LoggingEventType.CUSTOM,\n  pathname: '/',\n  customType: 'page_load',\n};\n\nexport const testNavigateEvent: CustomEvent<TestNavigateEvent> = {\n  type: LoggingEventType.CUSTOM,\n  url: 'https://snap.com',\n  customType: 'navigate',\n  durationMs: 523,\n};\n\nexport const testErrorEvent: ErrorEvent = {\n  component: 'Test',\n  message: 'Unable to read \"e\" of undefined.',\n  type: LoggingEventType.ERROR,\n  error: new Error('Some error'),\n};\n\nexport const testUserInteractionEvent: UserInteractionEvent = {\n  type: LoggingEventType.USER_ACTION,\n  label: 'test label',\n  action: 'test action',\n  component: 'test category',\n};\n\nexport const testWarningEvent: WarningEvent = {\n  type: LoggingEventType.WARNING,\n  component: 'Contentful',\n  message: 'Returned status code 429. Retrying',\n};\n\nexport const testInternalEvent: InternalEvent = {\n  type: LoggingEventType.INFO,\n  component: 'Image',\n  label: '23562sdfwe',\n  action: 'loaded',\n};\n\nexport const testInternalTimingEvent: InternalTimingEvent = {\n  type: LoggingEventType.TIMING,\n  component: 'Video',\n  label: '03249867dkjfg',\n  variable: 'load_latency',\n  valueMs: 700,\n};\n\nexport const testInternalValueEvent: InternalValueEvent = {\n  type: LoggingEventType.VALUE,\n  component: 'Video',\n  label: '03249867dkjfg',\n  variable: 'bytes_downloaded',\n  value: 1_234_456,\n};\n\nexport const testDebugEvent: DebugEvent = {\n  type: LoggingEventType.DEBUG,\n  component: 'Button',\n  message: 'Hovered over button 2034687gfzks5',\n};\n\nexport const testEvents: Array<LoggedEvent<TestCustomEvent>> = [\n  testErrorEvent,\n  testUserInteractionEvent,\n  testWarningEvent,\n  testDebugEvent,\n  testInternalEvent,\n  testInternalValueEvent,\n  testInternalTimingEvent,\n  testPageLoadEvent,\n  testNavigateEvent,\n];\n", "import type { InspectorMode } from '@contentful/live-preview/dist/inspectorMode';\nimport { injectGlobal } from '@emotion/css';\nimport { LoggingEventType } from '@snapchat/logging';\nimport type { FC } from 'react';\nimport { useContext, useInsertionEffect } from 'react';\n\nimport { Config } from '../../config';\nimport { logger } from '../../helpers/logging';\nimport { useContentfulContext } from '../useContentfulContext';\nimport { ContentfulLivePreviewContext } from './ContentfulLivePreviewContext';\n\n/** Component used to initialize Contentful Live Preview */\nexport const ContentfulLivePreview: FC = () => {\n  const { locale } = useContentfulContext();\n  const { setHasLivePreview } = useContext(ContentfulLivePreviewContext);\n\n  const shouldSetupLivePreview = !Config.isDeploymentTypeProd;\n\n  useInsertionEffect(() => {\n    async function setupContentfulLivePreview(): Promise<InspectorMode | null | undefined> {\n      const { ContentfulLivePreview: livePreview } = await import('@contentful/live-preview');\n\n      const preview = await livePreview.init({\n        locale,\n        enableInspectorMode: true,\n        enableLiveUpdates: true,\n      });\n\n      // This could be null if we're not in an iframe\n      if (preview) {\n        const { livePreviewCss } = await import('./ContentfulLivePreview.styles');\n        injectGlobal(livePreviewCss);\n        setHasLivePreview?.(true);\n\n        logger.logEvent({\n          type: LoggingEventType.USER_ACTION,\n          component: 'ContentfulLivePreview',\n          action: 'Open',\n          label: 'Live Preview Panel',\n        });\n      }\n\n      return preview;\n    }\n\n    if (shouldSetupLivePreview) {\n      void setupContentfulLivePreview();\n    }\n  }, [shouldSetupLivePreview, locale]);\n\n  return null;\n};\n", "import { LoggingEventBus } from '@snapchat/logging';\n\nimport { SubscribedEventType } from './eventListenerTypes';\nimport type {\n  ErrorEvent,\n  InternalEvent,\n  InternalTimingEvent,\n  InternalValueEvent,\n  LegacyAllEvents,\n  LoggingContext,\n  LoggingCustomEvents,\n  LoggingPermissions,\n  UserInteractionEvent,\n  WarningEvent,\n} from './loggingTypes';\n\n// =================================================================================================\n// Module Singleton\n// =================================================================================================\n\nexport const logger = new LoggingEventBus<\n  LoggingContext,\n  LoggingCustomEvents,\n  LoggingPermissions\n>();\n\nexport const onMarketingTrackingAccepted = async (): Promise<void> => {\n  logger && (await logger.allow('marketing'));\n};\n\nexport const onPerformanceTrackingAccepted = async (): Promise<void> => {\n  logger && (await logger.allow('performance'));\n};\n\n// =================================================================================================\n// Helper Functions - provides type checking when logging different event types\n// =================================================================================================\n\n// TODO: We need to change the caller signatures to match the new interfaces.\n\nexport const logDebug = logger.logDebug;\n\nexport const logError = (event: Omit<ErrorEvent, 'subscribedEventType'>): void => {\n  logger.logError(\n    {\n      error: event.error,\n      component: event.component,\n      message: event.message,\n      action: event.action ?? 'Unknown',\n    },\n    event.context\n  );\n};\n\nexport const logWarning = (event: Omit<WarningEvent, 'subscribedEventType'>): void => {\n  logger.logWarning(\n    {\n      component: event.component,\n      message: event.message,\n      action: 'Unknown',\n    },\n    event.context\n  );\n};\n\nexport const logInfo = (event: Omit<InternalEvent, 'subscribedEventType'>): void => {\n  logger.logInfo(\n    {\n      component: event.eventCategory,\n      action: event.eventAction,\n      label: event.eventLabel ?? 'Unknown',\n    },\n    event.context\n  );\n};\n\n// eslint-disable-next-line import/no-unused-modules\nexport const logValue = (event: Omit<InternalValueEvent, 'subscribedEventType'>): void => {\n  logger.logValue(\n    {\n      component: event.eventCategory,\n      label: event.eventLabel,\n      value: event.eventValue,\n      variable: event.eventVariable,\n    },\n    event.context\n  );\n};\n\n// eslint-disable-next-line import/no-unused-modules\nexport const logTiming = (event: Omit<InternalTimingEvent, 'subscribedEventType'>): void => {\n  logger.logTiming(\n    {\n      component: event.eventCategory,\n      label: event.eventLabel,\n      valueMs: event.eventValue,\n      variable: event.eventVariable,\n    },\n    event.context\n  );\n};\n\nexport const logUserEvent = (event: Omit<UserInteractionEvent, 'subscribedEventType'>): void => {\n  logger.logUserEvent({\n    component: event.eventCategory,\n    action: event.eventAction,\n    label: event.eventLabel ?? 'Unknown',\n  });\n};\n\nexport const logEvent = (event: LegacyAllEvents): void => {\n  switch (event.subscribedEventType) {\n    case SubscribedEventType.USER_INTERACTION: {\n      logger.logUserEvent({\n        component: event.eventCategory,\n        action: event.eventAction,\n        label: event.eventLabel ?? 'Unknown',\n      });\n      break;\n    }\n\n    case SubscribedEventType.ERROR: {\n      logger.logError(\n        {\n          error: event.error,\n          component: event.component,\n          message: event.message,\n          action: 'Unknown', // TODO: Add this to the error type.\n        },\n        event.context\n      );\n      break;\n    }\n\n    case SubscribedEventType.INTERNAL: {\n      logger.logInfo(\n        {\n          component: event.eventCategory,\n          action: event.eventAction,\n          label: event.eventLabel ?? 'Unknown',\n        },\n        event.context\n      );\n      break;\n    }\n\n    case SubscribedEventType.INTERNAL_TIMING: {\n      logger.logTiming(\n        {\n          component: event.eventCategory,\n          variable: event.eventVariable,\n          valueMs: event.eventValue,\n          label: event.eventLabel ?? 'Unknown',\n        },\n        event.context\n      );\n      break;\n    }\n\n    case SubscribedEventType.INTERNAL_VALUE: {\n      logger.logValue(\n        {\n          component: event.eventCategory,\n          variable: event.eventVariable,\n          value: event.eventValue,\n          label: event.eventLabel ?? 'Unknown',\n        },\n        event.context\n      );\n      break;\n    }\n\n    case SubscribedEventType.WARNING: {\n      logger.logWarning(\n        {\n          component: event.component,\n          message: event.message,\n          action: 'Unknown',\n          // NOTE: We're discarding context.\n        },\n        event.context\n      );\n      break;\n    }\n\n    case SubscribedEventType.ECOMMERCE:\n    case SubscribedEventType.EXPERIMENT_IMPRESSION:\n    case SubscribedEventType.PAGE_LOAD:\n    case SubscribedEventType.FIRST_PAGE_LOAD:\n\n    // fall through\n    case SubscribedEventType.PHONE_NUMBER_EVENT: {\n      logger.logCustom(event, event.context);\n      break;\n    }\n  }\n};\n\nexport const logCustom = logger.logCustom;\n", "import { useContext } from 'react';\n\nimport type { ContentfulContextType } from '../utils/contentful/ContentfulContext';\nimport { ContentfulContext } from '../utils/contentful/ContentfulContext';\n\nexport const useContentfulContext = (): ContentfulContextType => {\n  const context = useContext(ContentfulContext);\n\n  if (context === undefined) {\n    throw new Error(\n      'The useContentfulQuery hook can only be used in combination with ContentProvider'\n    );\n  }\n\n  return context;\n};\n", "import type { WatchQueryFetchPolicy } from '@apollo/client';\nimport type { Context } from 'react';\nimport { createContext } from 'react';\n\nimport { Config } from '../../config';\nimport { UrlParameter } from '../../constants/urlParameters';\nimport { defaultLocale } from '../../helpers/locale';\n\n/** Context for the apollo client. */\nexport const ContentfulContext: Context<ContentfulContextType> = createContext({\n  preview: false,\n  locale: defaultLocale,\n} as ContentfulContextType);\nContentfulContext.displayName = 'ContentfulContext';\n\nexport function getContentfulContext(\n  locale: string,\n  params: URLSearchParams\n): ContentfulContextType {\n  // Default policy is to check cache, and if not found, ping network.\n  let fetchPolicy: WatchQueryFetchPolicy = 'cache-first';\n\n  // On the client, for non-prod builds we allow URL overrides.\n  const param = params.get(UrlParameter.CONTENTFUL_FETCH_POLICY) as WatchQueryFetchPolicy;\n\n  if (Config.isClient && !Config.isDeploymentTypeProd && !!param) {\n    fetchPolicy = param;\n  }\n\n  // On the server in preview mode, we force network load, but store data in\n  // cache (using network-only instead of no-cache) so we can write out the cache as SSR output.\n  if (!Config.isClient && Config.isPreview) {\n    fetchPolicy = 'network-only';\n  }\n\n  return {\n    preview: Config.isPreview,\n    locale,\n    fetchPolicy,\n  };\n}\n\nexport interface ContentfulContextType {\n  preview: boolean;\n  locale: string;\n  fetchPolicy?: WatchQueryFetchPolicy;\n}\n", "export const localeCookie = 'sc-language';\n\nexport const defaultLocale = 'en-US';\n", "import type { FC, PropsWithChildren } from 'react';\nimport { createContext, useState } from 'react';\n\ntype ContentfulLivePreviewContext = {\n  hasLivePreview?: boolean;\n  setHasLivePreview?: (value: boolean) => void;\n};\n\nexport const ContentfulLivePreviewContext = createContext<ContentfulLivePreviewContext>({});\n\nexport const ContentfulLivePreviewContextProvider: FC<PropsWithChildren> = ({ children }) => {\n  const [hasLivePreview, setHasLivePreview] = useState(false);\n\n  return (\n    <ContentfulLivePreviewContext.Provider\n      value={{\n        hasLivePreview,\n        setHasLivePreview: (hasLivePreview: boolean) => setHasLivePreview(hasLivePreview),\n      }}\n    >\n      {children}\n    </ContentfulLivePreviewContext.Provider>\n  );\n};\n", "import baseAssignValue from './_baseAssignValue.js';\nimport baseForOwn from './_baseForOwn.js';\nimport baseIteratee from './_baseIteratee.js';\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n *   'fred':    { 'user': 'fred',    'age': 40 },\n *   'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n  var result = {};\n  iteratee = baseIteratee(iteratee, 3);\n\n  baseForOwn(object, function(value, key, object) {\n    baseAssignValue(result, key, iteratee(value, key, object));\n  });\n  return result;\n}\n\nexport default mapValues;\n", "import clone from 'lodash-es/clone';\nimport mapValues from 'lodash-es/mapValues';\n\n/**\n * Converts null values in an object into undefined values. Goes deep. Clones all.\n *\n * This is for the use in contentful client because apollo doesn't support this as a feature. See:\n * https://github.com/apollographql/apollo-client/issues/2412\n */\nexport function convertNullsToUndefined<T>(object: T): T {\n  if (object === null || object === undefined) return undefined as unknown as T;\n  if (typeof object !== 'object') return object;\n  const cloned = clone(object as T);\n  const mapped = Array.isArray(object)\n    ? (object.map(convertNullsToUndefined) as unknown as T)\n    : (mapValues(cloned as unknown as object, convertNullsToUndefined) as unknown as T);\n\n  return Object.freeze(mapped);\n}\n", "import { gql } from '@apollo/client';\n\nexport const contentfulSysIdFragment = gql`\n  fragment ContentfulSysId on Entry {\n    sys {\n      id\n    }\n    __typename\n  }\n`;\n\nexport type ContentfulSysId = {\n  sys: {\n    id: string;\n  };\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nexport const fragments = {\n  contentAll: gql`\n    fragment ContentAnimationAll on ContentAnimation {\n      keyframes {\n        ...ContentfulSysId\n        delay\n        duration\n        direction\n        iterationCount\n        timingFunction\n        transformOrigin\n      }\n      target\n    }\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const query = gql`\n  query AnimationCollectionQuery($preview: Boolean!, $locale: String!) {\n    animationKeyframesCollection(\n      preview: $preview\n      locale: $locale\n      limit: 20\n      order: sys_publishedAt_ASC\n    ) {\n      items {\n        ...ContentfulSysId\n        delay\n        duration\n        direction\n        iterationCount\n        timingFunction\n        transformOrigin\n        keyframes\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n", "import { useGlobalAnimations } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { query } from './query';\nimport type { AnimationKeyframesCollectionDataHandlerProps } from './types';\n\nexport const GlobalAnimations: FC = () => {\n  const { data } = useContentfulQuery<AnimationKeyframesCollectionDataHandlerProps>(query);\n\n  useGlobalAnimations(\n    data?.animationKeyframesCollection?.items?.map(item => ({\n      name: item.sys.id,\n      keyframes: item.keyframes,\n    }))\n  );\n\n  return null;\n};\n\nGlobalAnimations.displayName = 'GlobalAnimations';\n", "import { cx } from '@emotion/css';\nimport { Button as ButtonSDS, Icon, MessageContext } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { Config } from '../../config';\nimport { logger } from '../../helpers/logging';\nimport { UserAction } from '../../types/events';\nimport { AddToCart } from '../AddToCart';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport { ShopifyContext } from '../ShopifyProvider';\nimport { CartAccessory } from './CartAccessory';\nimport { CartItem } from './CartItem';\nimport { useCheckoutUrl, usePrice } from './hooks';\nimport { Price } from './Price';\nimport {\n  activeWrapperCss,\n  allAccessoriesCss,\n  buttonWrapperCss,\n  cartCloseButtonCss,\n  cartCloseCss,\n  cartInternalCss,\n  cartOverlayActiveCss,\n  cartOverlayCss,\n  cartWrapperStyles,\n  checkoutButtonCss,\n  checkoutDisclaimerCss,\n  featuredProductButtonCss,\n  featuredProductImg,\n  featuredProductPriceCss,\n  featuredProductTitleCss,\n  noCartItemsContainerCss,\n  noCartItemsTitleCss,\n  totalCss,\n} from './styles';\n\nexport const Cart: FC = () => {\n  const { logEvent } = useContext(ConsumerContext);\n  const { formatMessage } = useContext(MessageContext);\n  const { cart, products } = useContext(ShopifyContext);\n  const featuredProductHandle = Config.shopify?.options.featuredProduct ?? '';\n  const featuredProduct = products.shopify[featuredProductHandle];\n  const featuredContentfulProduct = products.contentful[featuredProductHandle];\n  const checkoutUrl = useCheckoutUrl();\n  const lineItemsById = Object.keys(cart.lineItems);\n  const accessories = products.extras.accessories ?? [];\n  const bundleItems = products.extras.bundleItems ?? [];\n\n  const checkoutButtonCopy = formatMessage({\n    id: 'cartCheckoutButton',\n    defaultMessage: 'Checkout',\n  });\n\n  const disclaimer = formatMessage({\n    id: 'cartCheckoutDisclaimer',\n    defaultMessage: 'Shipping calculated at checkout',\n  });\n\n  const noCartItems = formatMessage({\n    id: 'noCartItems',\n    defaultMessage: 'Nothing added to cart yet',\n  });\n\n  const isAccessory = (id: string): boolean => accessories.includes(id);\n  const isBundleItem = (id: string): boolean => bundleItems.includes(id);\n  const hasItems = lineItemsById.length > 0;\n\n  const totalFromCart = Object.keys(cart.lineItems).reduce((acc, handle) => {\n    if (products?.shopify[handle] && !isBundleItem(handle)) {\n      return acc + products?.shopify[handle]!.price * cart.lineItems[handle]!;\n    }\n\n    return acc;\n  }, 0);\n\n  const total = usePrice(totalFromCart);\n\n  const totalCopy = formatMessage(\n    {\n      id: 'cartTotal',\n      defaultMessage: 'Total {total}',\n    },\n    { total }\n  );\n\n  // Log the checkout interaction and take the user to the Shopify site.\n  const onCheckoutClick = (): void => {\n    logEvent?.({ type: UserAction.Click, component: 'CheckoutButton', url: checkoutUrl.href });\n    void logger.flush();\n  };\n\n  return (\n    <div\n      className={cx(cartWrapperStyles(hasItems), {\n        [activeWrapperCss]: cart?.cartOpen,\n      })}\n    >\n      <div\n        onClick={() => cart.setCartOpen(false)}\n        className={cx(cartOverlayCss, {\n          [cartOverlayActiveCss]: cart?.cartOpen,\n        })}\n      />\n      <div className={buttonWrapperCss}>\n        <button className={cartCloseCss} onClick={() => cart.setCartOpen(false)}>\n          <Icon name=\"cross\" className={cartCloseButtonCss} />\n        </button>\n      </div>\n      <div className={cartInternalCss} />\n      {lineItemsById.map(\n        productHandle =>\n          products.shopify[productHandle] &&\n          !isAccessory(productHandle) &&\n          !isBundleItem(productHandle) && (\n            <CartItem key={productHandle} {...products.shopify[productHandle]!} />\n          )\n      )}\n      <div className={allAccessoriesCss}>\n        {accessories.map(\n          productHandle =>\n            products.shopify[productHandle] &&\n            products.contentful[productHandle] && (\n              <CartAccessory\n                key={productHandle}\n                {...products.shopify[productHandle]!}\n                title={products.contentful[productHandle]!.title}\n              />\n            )\n        )}\n      </div>\n      {!hasItems && (\n        <div className={noCartItemsContainerCss}>\n          <div className={noCartItemsTitleCss}>{noCartItems}</div>\n          {featuredProduct && featuredContentfulProduct && (\n            <>\n              <div className={featuredProductImg(featuredProduct.image)} />\n              <div className={featuredProductTitleCss}>{featuredContentfulProduct.title}</div>\n              <Price\n                className={featuredProductPriceCss}\n                productPrice={featuredProduct?.price ?? 0}\n              />\n              <AddToCart\n                className={featuredProductButtonCss}\n                productHandle={featuredProductHandle}\n              />\n            </>\n          )}\n        </div>\n      )}\n      {hasItems && (\n        <>\n          <div className={totalCss}>{totalCopy}</div>\n          <div className={checkoutButtonCss}>\n            <ButtonSDS link={checkoutUrl.href} type=\"Primary\" onClick={onCheckoutClick}>\n              {checkoutButtonCopy}\n            </ButtonSDS>\n          </div>\n          <div className={checkoutDisclaimerCss}>{disclaimer}</div>\n        </>\n      )}\n    </div>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport {\n  Button as ButtonSDS,\n  FormattedMessage,\n  MotifScheme,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC, ReactNode, Ref } from 'react';\nimport { createRef, useContext, useEffect, useState } from 'react';\n\nimport { ShopifyContext } from '../ShopifyProvider';\nimport { addToCartButtonCss, addToCartTooltipCss, disabledButtonCss } from './styles';\nimport type { AddToCartProps } from './types';\n\nconst AddToCartButton: FC<AddToCartProps> = ({ productHandle = '', showTooltip }) => {\n  const { cart, products, currencyCode = '' } = useContext(ShopifyContext);\n  const quantityInCart = cart.lineItems[productHandle] ?? 0;\n  const shopifyProduct = products.shopify[productHandle]!;\n  const contentfulProduct = products.contentful[productHandle]!;\n  const relatedItems = contentfulProduct?.relatedItemsCollection?.items ?? [];\n\n  const renderTooltip = (): ReactNode => {\n    if (quantityInCart === shopifyProduct.maxQuantity || relatedItemInCart) {\n      return (\n        <FormattedMessage\n          id=\"maxCartQuantity\"\n          values={{ quantity: String(shopifyProduct.maxQuantity) }}\n          defaultMessage=\"Limit {quantity} per customer.\"\n        />\n      );\n    }\n\n    return null;\n  };\n\n  if (!shopifyProduct) {\n    return null;\n  }\n\n  const relatedItemInCart = relatedItems.some(\n    ({ productHandle: relatedItemHandle }) =>\n      Object.keys(cart.lineItems).indexOf(relatedItemHandle) !== -1\n  );\n\n  const disabled =\n    quantityInCart === shopifyProduct.maxQuantity || !shopifyProduct.available || relatedItemInCart;\n\n  return (\n    <>\n      <ButtonSDS\n        type=\"Primary\"\n        className={disabled ? disabledButtonCss : undefined}\n        onClick={() =>\n          cart.addOne({\n            handle: productHandle,\n            contentfulProduct,\n            shopifyProducts: products.shopify,\n            currencyCode,\n          })\n        }\n        disabled={disabled}\n      >\n        <FormattedMessage id=\"addToCart\" defaultMessage=\"Add to Cart\" />\n      </ButtonSDS>\n      {showTooltip && disabled && <span className={addToCartTooltipCss}>{renderTooltip()}</span>}\n    </>\n  );\n};\n\nexport const AddToCart: FC<AddToCartProps> = ({ className, productHandle = '' }) => {\n  const { store, products } = useContext(ShopifyContext);\n  const isProductAvailableInCountry = !!store;\n  const buttonRef: Ref<HTMLDivElement> = createRef();\n  const [showTooltip, setShowTooltip] = useState<boolean>(false);\n  const shopifyProduct = products.shopify[productHandle];\n\n  useEffect(() => {\n    const button = buttonRef.current;\n\n    if (!button) return;\n\n    const onButtonMouseEnter = () => setShowTooltip(true);\n    const onButtonMouseLeave = () => setShowTooltip(false);\n\n    button.addEventListener('mouseenter', onButtonMouseEnter);\n    button.addEventListener('mouseleave', onButtonMouseLeave);\n\n    return () => {\n      button.removeEventListener('mouseenter', onButtonMouseEnter);\n      button.removeEventListener('mouseleave', onButtonMouseLeave);\n    };\n  }, [buttonRef]);\n\n  return (\n    <div ref={buttonRef} className={cx(className, MotifScheme.TERTIARY, addToCartButtonCss)}>\n      {isProductAvailableInCountry && shopifyProduct?.available ? (\n        <AddToCartButton productHandle={productHandle} showTooltip={showTooltip} />\n      ) : (\n        <>\n          {/* TODO: Add this to localized messages when we have a shop again. */}\n          Product not available in your country\n        </>\n      )}\n    </div>\n  );\n};\n\nAddToCart.displayName = 'AddToCart';\n", "import { MessageContext } from '@snapchat/snap-design-system-marketing';\nimport uniq from 'lodash-es/uniq';\nimport type { FC, PropsWithChildren } from 'react';\nimport { createContext, useCallback, useContext } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { Config } from '../../config';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { initialCartState, useCart } from '../Cart/hooks';\nimport type {\n  ContentfulShopifyProduct,\n  ContentfulShopifyProductsResponse,\n  ProductAvailability,\n  ShopifyProduct,\n  ShopifyProviderProps,\n  ShopifyState,\n} from '../Cart/types';\nimport { Feature, useFeatureFlags } from '../FeatureFlags';\nimport { contentfulProductsQuery } from './contentfulProductsQuery';\n\nexport const ShopifyContext = createContext<ShopifyState>({\n  products: {\n    shopify: {},\n    contentful: {},\n    extras: {\n      bundleItems: [],\n      accessories: [],\n    },\n  },\n  cart: initialCartState,\n});\n\nexport const ShopifyProvider: FC<PropsWithChildren<ShopifyProviderProps>> = ({\n  children,\n  shopifyData,\n}) => {\n  const {\n    userLocation: { country },\n  } = useContext(AppContext);\n  const { formatMessage } = useContext(MessageContext);\n  const featureFlags = useFeatureFlags();\n  const products = {\n    shopify: {},\n    contentful: {},\n    extras: {},\n  };\n  const cart = useCart();\n\n  const { data: contentfulProductData } = useContentfulQuery<ContentfulShopifyProductsResponse>(\n    contentfulProductsQuery,\n    {\n      skip: !Config.shopify,\n      ssr: true,\n    }\n  );\n\n  const calculateAtp = useCallback(\n    ({ available, atp = 0 }: ProductAvailability): string | null => {\n      if (atp === 0 && available) {\n        return formatMessage({\n          id: 'shopifyATPTodayFreeShipping',\n          defaultMessage: 'Ships for free today',\n        });\n      }\n\n      if (atp > 0 && available) {\n        if (atp < 7) {\n          if (atp === 1) {\n            return formatMessage({\n              id: 'shopifyATPDayFreeShipping',\n              defaultMessage: 'Ships for free in 1 day',\n            });\n          }\n\n          return formatMessage(\n            { id: 'shopifyATPDaysFreeShipping', defaultMessage: 'Ships for free in {days} days' },\n            { days: String(atp) }\n          );\n        }\n        const bufferRemainder = atp % 7;\n        const weeks = (atp - bufferRemainder) / 7;\n        const weekRange = `${weeks}-${weeks + 1}`;\n\n        if (weeks === 1) {\n          return formatMessage({\n            id: 'shopifyATPWeekFreeShipping',\n            defaultMessage: 'Ships for free in 1 week',\n          });\n        }\n\n        return formatMessage(\n          {\n            id: 'shopifyATPWeeksFreeShipping',\n            defaultMessage: 'Ships for free in {weeks} weeks',\n          },\n          { weeks: weekRange }\n        );\n      }\n\n      return null;\n    },\n    [formatMessage]\n  );\n\n  if (!Config.shopify) {\n    return <>{children}</>;\n  }\n\n  if (shopifyData) {\n    products.shopify = shopifyData.products.edges.reduce((acc, { node }) => {\n      const variant = node.variants.edges[0]!;\n\n      const product: ShopifyProduct = {\n        image: node.featuredImage?.url,\n        price: Number(node.priceRange.maxVariantPrice.amount ?? '0'),\n        available: node.availableForSale,\n        id: variant.node.id,\n        nodeId: node.id,\n        title: node.title,\n        handle: node.handle,\n        sku: variant.node.sku,\n      };\n\n      const atpDays = variant.node.metafields.find(field => field?.key === 'ATPBufferDays');\n      const maxQuantity = variant.node.metafields.find(field => field?.key === 'maxQuantity');\n\n      if (atpDays) {\n        product.atpMessage = calculateAtp({\n          available: product.available,\n          atp: Number.parseInt(atpDays.value),\n        });\n      }\n\n      if (maxQuantity) {\n        product.maxQuantity = Number.parseInt(maxQuantity.value);\n      }\n\n      acc[node.handle] = product;\n      return acc;\n    }, {} as Record<string, ShopifyProduct>);\n  }\n\n  if (contentfulProductData) {\n    products.contentful = contentfulProductData.shopifyProductCollection.items.reduce(\n      (acc: Record<string, ContentfulShopifyProduct>, item) => {\n        acc[item.productHandle] = item;\n        return acc;\n      },\n      {}\n    );\n\n    const contentfulProductsFromCart = Object.keys(cart.lineItems).map(\n      lineItemId => (products.contentful as Record<string, ContentfulShopifyProduct>)[lineItemId]\n    );\n\n    products.extras = {\n      bundleItems: uniq(\n        contentfulProductsFromCart.flatMap(product =>\n          (product?.bundleItemsCollection?.items ?? []).map(({ productHandle }) => productHandle)\n        )\n      ),\n      accessories: uniq(\n        contentfulProductsFromCart.flatMap(product =>\n          (product?.accessoriesCollection?.items ?? []).map(({ productHandle }) => productHandle)\n        )\n      ),\n    };\n  }\n\n  const enableEuropeanStores = featureFlags[Feature.ENABLE_PIXY_EUROPEAN_STORES] === 'true';\n\n  const isHiddenBehindFeatureFlag = !enableEuropeanStores && (country === 'GB' || country === 'FR');\n  const shopifyStore = Config.shopify?.stores[country];\n  const store =\n    shopifyStore && !isHiddenBehindFeatureFlag ? shopifyStore[Config.deploymentType] : undefined;\n\n  return (\n    <ShopifyContext.Provider\n      value={{\n        store,\n        products,\n        cart,\n        currencyCode: shopifyData?.shop.paymentSettings.currencyCode,\n      }}\n    >\n      {children}\n    </ShopifyContext.Provider>\n  );\n};\n", "import { getLocalStorageItem, setLocalStorageItem } from '@snapchat/mw-common';\nimport noop from 'lodash-es/noop';\nimport { useCallback, useContext, useEffect, useState } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { Config } from '../../config';\nimport { logEvent, SubscribedEventType } from '../../helpers/logging';\nimport { UserAction } from '../../types/events';\nimport type { EcommerceEventProduct } from '../../types/gtm';\nimport type { BasicCart, CartEvent, CartState } from './types';\n\nconst shopifyCartKey = 'mwp-shopify-cart';\n\nexport const initialCartState: CartState = {\n  lineItems: {},\n  cartOpen: false,\n  addOne: noop,\n  removeOne: noop,\n  setCartOpen: noop,\n};\n\nexport const useCart = (): CartState => {\n  const appContext = useContext(AppContext);\n  const country = appContext.userLocation.country;\n\n  const [cart, setCart] = useState<CartState>(initialCartState);\n\n  const setCartOpen = (cartOpen: boolean) => {\n    if (cartOpen) {\n      logEvent({\n        eventCategory: 'Cart',\n        eventAction: UserAction.Click,\n        eventLabel: 'Open Cart',\n        subscribedEventType: SubscribedEventType.USER_INTERACTION,\n      });\n    } else {\n      logEvent({\n        eventCategory: 'Cart',\n        eventAction: UserAction.Click,\n        eventLabel: 'Close Cart',\n        subscribedEventType: SubscribedEventType.USER_INTERACTION,\n      });\n    }\n\n    setCart({ ...cart, cartOpen });\n  };\n\n  const addOne = useCallback(\n    ({ handle, contentfulProduct, shopifyProducts, currencyCode }: CartEvent) => {\n      const newLineItems = cart.lineItems;\n      const productInCart = newLineItems[handle]!;\n      const bundleItems = contentfulProduct.bundleItemsCollection?.items ?? [];\n      const shopifyProduct = shopifyProducts[handle]!;\n      const ecommerceEventProducts: EcommerceEventProduct[] = [];\n\n      if (productInCart) {\n        newLineItems[handle] += 1;\n      } else {\n        newLineItems[handle] = 1;\n      }\n\n      ecommerceEventProducts.push({\n        name: contentfulProduct.title,\n        id: shopifyProduct.sku,\n        variant: shopifyProduct.title,\n        price: shopifyProduct.price.toString(),\n        shopifyid: shopifyProduct.id,\n        quantity: 1,\n      });\n\n      bundleItems.forEach(({ title, productHandle }) => {\n        const bundleItemFromCart = newLineItems[productHandle];\n        const bundleShopifyProduct = shopifyProducts[productHandle]!;\n\n        if (bundleItemFromCart) {\n          newLineItems[productHandle] += 1;\n        } else {\n          newLineItems[productHandle] = 1;\n        }\n\n        ecommerceEventProducts.push({\n          name: title,\n          id: bundleShopifyProduct.sku,\n          variant: bundleShopifyProduct.title,\n          price: bundleShopifyProduct.price.toString(),\n          shopifyid: bundleShopifyProduct.id,\n          quantity: 1,\n        });\n      });\n\n      setLocalStorageItem(shopifyCartKey, JSON.stringify({ lineItems: newLineItems }));\n\n      logEvent({\n        eventCategory: 'Cart',\n        eventAction: 'Add',\n        eventLabel: ecommerceEventProducts.map(product => product.shopifyid).join(','),\n        numberOfProducts: ecommerceEventProducts.length,\n        ecommerce: {\n          currencyCode,\n          add: {\n            products: ecommerceEventProducts,\n          },\n        },\n        subscribedEventType: SubscribedEventType.ECOMMERCE,\n      });\n\n      setCart({\n        ...cart,\n        lineItems: newLineItems,\n        cartOpen: true,\n      });\n    },\n    [cart]\n  );\n\n  const removeOne = useCallback(\n    ({ handle, contentfulProduct, shopifyProducts, currencyCode }: CartEvent) => {\n      const newLineItems = cart.lineItems;\n      const productInCart = newLineItems[handle];\n      const shopifyProduct = shopifyProducts[handle]!;\n      const ecommerceEventProducts: EcommerceEventProduct[] = [];\n\n      if (productInCart) {\n        newLineItems[handle] -= 1;\n\n        if (newLineItems[handle] === 0) {\n          delete newLineItems[handle];\n        }\n      }\n\n      ecommerceEventProducts.push({\n        name: shopifyProduct.title,\n        id: shopifyProduct.sku,\n        variant: shopifyProduct.title,\n        price: shopifyProduct.price.toString(),\n        shopifyid: shopifyProduct.id,\n        quantity: 1,\n      });\n\n      const bundleItems = contentfulProduct.bundleItemsCollection?.items ?? [];\n\n      bundleItems.forEach(({ productHandle }) => {\n        const bundleItemFromCart = newLineItems[productHandle];\n        const bundleShopifyProduct = shopifyProducts[productHandle]!;\n\n        if (bundleItemFromCart) {\n          newLineItems[productHandle] -= 1;\n\n          if (newLineItems[productHandle] === 0) {\n            delete newLineItems[productHandle];\n          }\n        }\n\n        ecommerceEventProducts.push({\n          name: bundleShopifyProduct.title,\n          id: bundleShopifyProduct.sku,\n          variant: bundleShopifyProduct.title,\n          price: bundleShopifyProduct.price.toString(),\n          shopifyid: bundleShopifyProduct.id,\n          quantity: 1,\n        });\n      });\n\n      setLocalStorageItem(shopifyCartKey, JSON.stringify({ lineItems: newLineItems }));\n\n      logEvent({\n        eventCategory: 'Cart',\n        eventAction: 'Remove',\n        eventLabel: ecommerceEventProducts.map(product => product.shopifyid).join(','),\n        currencyCode,\n        productIds: ecommerceEventProducts.map(product => product.shopifyid).join(','),\n        ecommerce: {\n          remove: {\n            products: ecommerceEventProducts,\n          },\n        },\n        subscribedEventType: SubscribedEventType.ECOMMERCE,\n      });\n\n      setCart({\n        ...cart,\n        lineItems: newLineItems,\n      });\n    },\n    [cart]\n  );\n\n  const cartInit = useCallback(() => {\n    const initialCartString: string | BasicCart | null = getLocalStorageItem(shopifyCartKey);\n    let initialCart: BasicCart;\n\n    if (initialCartString) {\n      initialCart = JSON.parse(initialCartString) as BasicCart;\n    } else {\n      initialCart = {\n        lineItems: {},\n      } as BasicCart;\n\n      setLocalStorageItem(shopifyCartKey, JSON.stringify(initialCart));\n    }\n\n    setCart(currentCart => ({\n      ...currentCart,\n      ...(initialCart as BasicCart),\n      cartOpen: false,\n    }));\n  }, []);\n\n  useEffect(() => {\n    if (!Config.shopify) {\n      return;\n    }\n\n    cartInit();\n  }, [country, cartInit]);\n\n  return {\n    ...cart,\n    addOne,\n    removeOne,\n    setCartOpen,\n  };\n};\n", "import { useContext } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { Config } from '../../config';\nimport { mergeUrlParameters } from '../../helpers/uri';\nimport { ShopifyContext } from '../ShopifyProvider';\n\nconst useCheckoutUrl = (): URL => {\n  const { userLocation, getCurrentUrl, currentLocale, cookieManager } = useContext(AppContext);\n  const { cart, products, store } = useContext(ShopifyContext);\n  const { options } = Config.shopify ?? {};\n  const gaCookie = cookieManager.getCookie('_ga');\n  let queryParams: Record<string, string | boolean> = {\n    'attributes[locale]': currentLocale,\n    locale: currentLocale,\n    'checkout[shipping_address][country]': userLocation.country,\n    access_token: store?.storefrontAccessToken ?? '',\n  };\n\n  const productsInCart = Object.keys(cart?.lineItems ?? {})\n    .map(handle => {\n      const contentfulProduct = products.contentful[handle];\n      const productHandle = contentfulProduct?.checkoutHandle\n        ? contentfulProduct.checkoutHandle\n        : handle;\n\n      const productId = products?.shopify[productHandle]?.id ?? '';\n\n      const productVariant = productId.match(/\\/(\\d+)/);\n\n      if (productVariant) {\n        return `${productVariant[1]}:${cart.lineItems[handle]}`;\n      }\n\n      return '';\n    })\n    .join(',');\n\n  if (options?.checkoutQueryParams) {\n    queryParams = {\n      ...queryParams,\n      ...options.checkoutQueryParams,\n    };\n  }\n\n  if (gaCookie) {\n    queryParams._ga = gaCookie;\n  }\n\n  const queryString = Object.entries(queryParams)\n    .map(([key, value]) => `${key}=${value}`)\n    .join('&');\n\n  const shopifyUrl = new URL(`https://${store?.domain}/cart/${productsInCart}?${queryString}`);\n  mergeUrlParameters(shopifyUrl, new URL(getCurrentUrl()), Config.persistentQueryParams);\n  return shopifyUrl;\n};\n\nexport { useCheckoutUrl };\n", "import { useContext } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { ShopifyContext } from '../ShopifyProvider';\n\nexport const usePrice = (price: number): string => {\n  const { userLocation } = useContext(AppContext);\n  const { currencyCode } = useContext(ShopifyContext);\n\n  if (price === 0) {\n    return '';\n  }\n\n  return new Intl.NumberFormat(userLocation.country, {\n    style: 'currency',\n    currency: currencyCode ?? 'USD',\n  }).format(price);\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nexport const contentfulProductsQuery = gql`\n  query ShopifyProductsContentful($preview: Boolean!, $locale: String!) {\n    shopifyProductCollection(preview: $preview, locale: $locale) {\n      items {\n        ...ContentfulSysId\n        title\n        productHandle\n        checkoutHandle\n        description {\n          json\n        }\n        relatedItemsCollection(limit: 10) {\n          items {\n            ...ContentfulSysId\n            productHandle\n          }\n        }\n        accessoriesCollection(limit: 10) {\n          items {\n            ...ShopifyProduct\n          }\n        }\n        bundleItemsCollection(limit: 10) {\n          items {\n            ...ShopifyProduct\n          }\n        }\n      }\n    }\n  }\n\n  fragment ShopifyProduct on ShopifyProduct {\n    ...ContentfulSysId\n    title\n    productHandle\n    checkoutHandle\n    description {\n      json\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n", "export enum ScreenSize {\n  width_320_mobile_small = 320,\n  width_375_mobile_medium = 375,\n  width_425_mobile_large = 425,\n  width_768_desktop_small = 768, // Matches mobile/desktop breakpoint at SDS-M\n  width_1024_desktop_medium = 1024,\n  width_1440_desktop_large = 1440,\n  width_2560_desktop_larger = 2560,\n}\n\nconst assetSizesDesc = [\n  ScreenSize.width_2560_desktop_larger,\n  ScreenSize.width_1440_desktop_large,\n  ScreenSize.width_1024_desktop_medium,\n  ScreenSize.width_768_desktop_small,\n  ScreenSize.width_425_mobile_large,\n  ScreenSize.width_375_mobile_medium,\n  ScreenSize.width_320_mobile_small,\n];\n\nexport const assetSizesAsc = assetSizesDesc.reverse();\n", "import { ScreenSize } from './screenSizes';\n\nconst mediaQueryCss = (width: number) => `@media (min-width: ${width}px)`;\n\n/**\n * Standard breakpoints for screen resolutions.\n *\n * Use like css` font-size: 50%; ${mediaQuery.over768_desktop_small} { font-size: 75%; }\n * ${mediaQuery.over1024_desktop_medium} { font-size: 100%; }`.\n *\n * Note that if you are using multiple they have to be specified in ASC order so that the last one\n * that's true takes precedence.\n */\nexport const mediaQuery = {\n  over320_mobile_small: mediaQueryCss(ScreenSize.width_320_mobile_small),\n  over375_mobile_medium: mediaQueryCss(ScreenSize.width_375_mobile_medium),\n  over425_mobile_large: mediaQueryCss(ScreenSize.width_425_mobile_large),\n  over768_desktop_small: mediaQueryCss(ScreenSize.width_768_desktop_small), // Matches mobile/desktop breakpoint at SDS-M\n  over1024_desktop_medium: mediaQueryCss(ScreenSize.width_1024_desktop_medium),\n  over1440_desktop_large: mediaQueryCss(ScreenSize.width_1440_desktop_large),\n  over2560_desktop_larger: mediaQueryCss(ScreenSize.width_2560_desktop_larger),\n};\n", "import { css } from '@emotion/css';\nimport { Black, Gray, Spacing, White } from '@snapchat/snap-design-system-marketing';\n\nimport { mediaQuery } from '../../styles/mediaQueries';\n\nexport const disabledButtonCss = css`\n  color: ${Gray.V300};\n  border: 1px solid ${Gray.V300};\n  background-color: ${Gray.V200};\n`;\n\nexport const addToCartButtonCss = css`\n  position: relative;\n  margin-top: ${Spacing.MD}px;\n`;\n\nexport const addToCartTooltipCss = css`\n  background: ${Black.V200};\n  border-radius: 6px;\n  box-shadow: 0px 6px 12px 4px rgba(0, 0, 0, 0.1);\n  color: ${White};\n  font-size: 14px;\n  font-weight: 700;\n  position: absolute;\n  bottom: 125%;\n  left: 0;\n  padding: 6px 7px;\n  text-align: center;\n  width: 100%;\n\n  &:after {\n    content: '';\n    position: absolute;\n    top: 100%;\n    left: 50%;\n    margin-left: -5px;\n    border-width: 5px;\n    border-style: solid;\n    border-color: ${Black.V200} transparent transparent transparent;\n  }\n\n  ${mediaQuery.over768_desktop_small} {\n    padding: 6px ${Spacing.XS}px;\n  }\n`;\n", "import type { LocaleOption } from '@snapchat/mw-global-components';\nimport type { MapOf } from '@snapchat/snap-design-system-marketing';\nimport { createContext } from 'react';\n\nimport type { UserAction } from '../../types/events';\nexport interface EventLog {\n  // NOTE: Some of these map to GA actions. See this doc: https://support.google.com/analytics/answer/1033068\n  type: UserAction; // Action being performed // TODO: Rename this to \"action\".\n  url?: string; // URL if this is for a link\n  component?: string; // Roughly maps to GA category like \"Video\", \"Hero\"\n  label?: string; // Label of the item that the event is for\n}\n\nexport type IsUrlCurrent = (\n  url: string,\n  options?: {\n    /**\n     * Strips the specified string from the start of the path for the current location when\n     * comparing to the specified url\n     *\n     * NOTE: noop if `ignoredPathPrefix` is not specified\n     */\n    ignoredPathPrefix?: string;\n  }\n) => boolean;\n\nexport interface ConsumerContextProps {\n  logEvent?: (event: EventLog) => void;\n  isUrlCurrent?: IsUrlCurrent;\n  setUrlParams?: (params: MapOf<string | undefined>) => void;\n  getUrlParams?: () => MapOf<string>;\n  currentLocale: string;\n  supportedLocales: Record<string, LocaleOption>;\n}\n\nexport const ConsumerContext = createContext<ConsumerContextProps>({\n  currentLocale: 'en-US',\n  supportedLocales: {},\n});\n", "import type { MapOf } from '@snapchat/snap-design-system-marketing';\nimport forEach from 'lodash/forEach.js';\nimport isNil from 'lodash/isNil.js';\n\nexport const filtersToUrlParams = (filters: MapOf<string | undefined>): string => {\n  let urlParams = '';\n\n  forEach(filters, (value, key) => {\n    if (isNil(value)) {\n      return;\n    }\n\n    if (urlParams.length === 0) {\n      urlParams = `${key}=${value}`;\n    } else {\n      urlParams = `${urlParams}&${key}=${value}`;\n    }\n  });\n\n  return urlParams;\n};\n\nexport const urlParamsToFilters = (params: string): MapOf<string> => {\n  const result: MapOf<string> = {};\n\n  new URLSearchParams(params).forEach((value, key) => {\n    if (value) {\n      result[key] = value;\n    }\n  });\n\n  return result;\n};\n", "import { cx } from '@emotion/css';\nimport { Icon, MessageContext } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { ShopifyContext } from '../ShopifyProvider';\nimport { usePrice } from './hooks';\nimport {\n  accessoryNameAndPriceCss,\n  accessoryQuantityCss,\n  accessoryQuantityModificationCss,\n  accessoryQuantityModificationDisabledCss,\n  accessoryTitleCss,\n  accessoryWrapperCss,\n  quantityWrapperCss,\n} from './styles';\nimport type { ShopifyProduct } from './types';\n\nexport const CartAccessory: FC<ShopifyProduct> = ({\n  title,\n  price,\n  handle,\n  maxQuantity,\n  available,\n}) => {\n  const { cart, products, currencyCode = '' } = useContext(ShopifyContext);\n  const formattedPrice = usePrice(price);\n  const { formatMessage } = useContext(MessageContext);\n  const quantity = cart.lineItems[handle] ?? 0;\n  const accessoryPrice = formatMessage(\n    {\n      id: 'cartAccessoryPrice',\n      defaultMessage: '{price} Each',\n    },\n    { price: formattedPrice }\n  );\n  const contentfulProduct = products?.contentful[handle] ?? {};\n  const addButtonDisabled = maxQuantity === quantity || !available;\n  const removeButtonDisabled = quantity === 0 || !available;\n  return (\n    <div className={accessoryWrapperCss}>\n      <div className={accessoryNameAndPriceCss}>\n        <div className={accessoryTitleCss}>{title}</div>\n        <div>{accessoryPrice}</div>\n      </div>\n      <div className={quantityWrapperCss}>\n        <button\n          disabled={removeButtonDisabled}\n          onClick={() =>\n            cart.removeOne({\n              handle,\n              contentfulProduct,\n              shopifyProducts: products.shopify,\n              currencyCode,\n            })\n          }\n          className={cx(accessoryQuantityModificationCss, {\n            [accessoryQuantityModificationDisabledCss]: removeButtonDisabled,\n          })}\n        >\n          <Icon name=\"remove\" />\n        </button>\n        <span\n          className={cx(accessoryQuantityCss, { [accessoryQuantityModificationCss]: !available })}\n        >\n          {quantity}\n        </span>\n        <button\n          disabled={addButtonDisabled}\n          onClick={() =>\n            cart.addOne({\n              handle,\n              contentfulProduct,\n              shopifyProducts: products.shopify,\n              currencyCode,\n            })\n          }\n          className={cx(accessoryQuantityModificationCss, {\n            [accessoryQuantityModificationDisabledCss]: addButtonDisabled,\n          })}\n        >\n          <Icon name=\"add\" />\n        </button>\n      </div>\n    </div>\n  );\n};\n", "import { css } from '@emotion/css';\nimport { Black, Gray, Spacing, White, Yellow } from '@snapchat/snap-design-system-marketing';\n\nimport { mediaQuery } from '../../styles/mediaQueries';\n\nexport const cartWrapperStyles = (hasItems: boolean): string => css`\n  background-color: ${White};\n  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.06);\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: ${hasItems ? 'normal' : 'center'};\n  height: 100%;\n  overflow-y: auto;\n  pointer-events: none;\n  position: fixed;\n  right: -400px;\n  top: 0;\n  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);\n  z-index: 100;\n  width: 375px;\n  text-align: center;\n`;\n\nexport const activeWrapperCss = css`\n  opacity: 1;\n  pointer-events: all;\n  right: 0;\n  left: 0;\n  width: 100%;\n\n  ${mediaQuery.over768_desktop_small} {\n    left: unset;\n    width: 400px;\n  }\n`;\n\nexport const cartOverlayCss = css`\n  background-color: ${White}cc;\n  position: fixed;\n  opacity: 0;\n  top: 0;\n  right: 0;\n  width: 100%;\n  height: 100%;\n  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);\n  display: none;\n\n  ${mediaQuery.over768_desktop_small} {\n    display: unset;\n  }\n`;\n\nexport const cartOverlayActiveCss = css`\n  opacity: 1;\n  right: 400px;\n`;\n\nexport const cartInternalCss = css`\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n`;\n\nexport const cartCloseCss = css`\n  color: ${Black.V200};\n  cursor: pointer;\n  background: transparent;\n  border-radius: 50px;\n  padding-top: ${Spacing.MD}px;\n  padding-right: ${Spacing.MD}px;\n`;\n\nexport const cartCloseButtonCss = css`\n  font-weight: bold;\n`;\n\nexport const cartItemWrapperCss = css`\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  margin: 0 ${Spacing.XS}px;\n`;\n\nexport const cartItemImg = (imageUrl: string): string => css`\n  background: url(${imageUrl}) no-repeat center center;\n  background-size: contain;\n  width: 200px;\n  height: 200px;\n`;\n\nexport const buttonWrapperCss = css`\n  display: flex;\n  justify-content: flex-end;\n  width: 100%;\n  height: ${Spacing['2XL']}px;\n`;\n\nexport const quantityCss = css`\n  color: ${White};\n  width: ${Spacing['2XL']}px;\n  height: ${Spacing['2XL']}px;\n  background-color: ${Black.V200};\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: 20px;\n  margin: 20px 5px;\n`;\n\nexport const allAccessoriesCss = css`\n  width: 100%;\n  max-width: 400px;\n  padding: 0 ${Spacing['2XL']}px;\n`;\n\nexport const accessoryWrapperCss = css`\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  border: 1px solid ${Gray.V150};\n  margin: ${Spacing.MD}px 0;\n  padding: 0 ${Spacing.MD}px;\n`;\n\nexport const accessoryQuantityCss = css`\n  width: ${Spacing['2XL']}px;\n  height: ${Spacing['2XL']}px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  margin: 20px ${Spacing.MD}px;\n`;\n\nexport const quantityWrapperCss = css`\n  display: flex;\n  align-items: center;\n`;\n\nexport const accessoryNameAndPriceCss = css`\n  padding: ${Spacing.SM}px 0;\n  text-align: left;\n`;\n\nexport const accessoryTitleCss = css`\n  margin-bottom: ${Spacing['2XS']}px;\n  font-weight: 500;\n`;\n\nexport const quantityModificationCss = css`\n  background: ${White};\n  border: 1px solid ${Gray.V200};\n  color: ${Black.V200};\n  cursor: pointer;\n  font-size: 12px;\n  width: ${Spacing.XL}px;\n  height: ${Spacing.XL}px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: 20px;\n  margin: 0 ${Spacing['2XS']}px;\n  transition: border 0.05s ease-in-out;\n\n  &:hover {\n    border: 2px solid ${Yellow.V100};\n    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14);\n  }\n`;\n\nexport const quantityModificationDisabledCss = css`\n  background: ${Gray.V100};\n  border: unset;\n  color: ${Gray.V300};\n  cursor: default;\n  pointer-events: none;\n`;\n\nexport const accessoryQuantityModificationCss = css`\n  background: ${White};\n  color: ${Black.V200};\n  cursor: pointer;\n  font-size: 12px;\n`;\n\nexport const accessoryQuantityModificationDisabledCss = css`\n  color: ${Gray.V300};\n  pointer-events: none;\n`;\n\nexport const titleCss = css`\n  margin: ${Spacing.MD}px 0;\n  font-size: 30px;\n`;\n\nexport const atpCss = css`\n  color: ${Gray.V300};\n`;\n\nexport const priceCss = css`\n  font-size: 24px;\n`;\n\nexport const totalCss = css`\n  margin-top: ${Spacing['2XL']}px;\n  font-size: 24px;\n  text-align: center;\n`;\n\nexport const checkoutButtonCss = css`\n  button.sdsm-button {\n    background-color: transparent;\n  }\n\n  margin-top: ${Spacing.MD}px;\n  padding: 0 ${Spacing.MD}px;\n`;\n\nexport const checkoutDisclaimerCss = css`\n  color: ${Gray.V300};\n  margin-top: ${Spacing.XL}px;\n  padding-bottom: ${Spacing['2XL']}px;\n`;\n\nexport const noCartItemsContainerCss = css`\n  display: flex;\n  flex: 1;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n`;\n\nexport const noCartItemsTitleCss = css`\n  text-align: center;\n  font-size: 24px;\n`;\n\nexport const featuredProductImg = (imageUrl: string): string => css`\n  background: url(${imageUrl}) no-repeat center center;\n  background-size: contain;\n  width: 200px;\n  height: 200px;\n`;\n\nexport const featuredProductTitleCss = css`\n  text-align: center;\n  font-size: 30px;\n`;\n\nexport const featuredProductPriceCss = css`\n  margin-top: ${Spacing.MD}px;\n  font-size: 24px;\n`;\n\nexport const featuredProductButtonCss = css`\n  margin-top: ${Spacing.MD}px;\n`;\n\nexport const cartIconButtonCss = css`\n  background: transparent;\n  color: ${Black.V200};\n  cursor: pointer;\n  font-size: 22px;\n  display: flex;\n  align-items: center;\n  position: relative;\n  text-decoration: none;\n`;\n\nexport const cartIconQuantityCss = css`\n  background-color: ${Yellow.V100};\n  border-radius: 50%;\n  position: absolute;\n  font-size: 16px;\n  font-weight: 400;\n  top: -14px;\n  left: 13px;\n  text-align: center;\n  padding: ${Spacing.SM}px;\n  width: 8px;\n  height: 8px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  ${mediaQuery.over768_desktop_small} {\n    top: -18px;\n    left: 15px;\n  }\n`;\n\nexport const cartIconCss = css`\n  margin: 0 -2.5px;\n`;\n", "import { cx } from '@emotion/css';\nimport { Icon } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { ShopifyContext } from '../ShopifyProvider';\nimport { Price } from './Price';\nimport {\n  atpCss,\n  cartItemImg,\n  cartItemWrapperCss,\n  priceCss,\n  quantityCss,\n  quantityModificationCss,\n  quantityModificationDisabledCss,\n  quantityWrapperCss,\n  titleCss,\n} from './styles';\nimport type { ShopifyProduct } from './types';\n\nexport const CartItem: FC<ShopifyProduct> = ({ image, atpMessage, price, handle, maxQuantity }) => {\n  const { cart, products, currencyCode = '' } = useContext(ShopifyContext);\n\n  const contentfulProduct = products?.contentful[handle] ?? {};\n\n  const buttonDisabled = maxQuantity === cart.lineItems[handle];\n  return (\n    <div className={cartItemWrapperCss}>\n      <div className={cartItemImg(image)} />\n      <div className={titleCss}>{contentfulProduct.title}</div>\n      <Price className={priceCss} productPrice={price} />\n      <div className={quantityWrapperCss}>\n        <button\n          onClick={() =>\n            cart.removeOne({\n              handle,\n              contentfulProduct,\n              shopifyProducts: products.shopify,\n              currencyCode,\n            })\n          }\n          className={quantityModificationCss}\n        >\n          <Icon name=\"remove\" />\n        </button>\n        <span className={quantityCss}>{cart.lineItems[handle]}</span>\n        <button\n          disabled={buttonDisabled}\n          onClick={() =>\n            cart.addOne({\n              handle,\n              contentfulProduct,\n              shopifyProducts: products.shopify,\n              currencyCode,\n            })\n          }\n          className={cx(quantityModificationCss, {\n            [quantityModificationDisabledCss]: buttonDisabled,\n          })}\n        >\n          <Icon name=\"add\" />\n        </button>\n      </div>\n      {atpMessage && <div className={atpCss}>{atpMessage}</div>}\n    </div>\n  );\n};\n", "import { cx } from '@emotion/css';\nimport type { FC } from 'react';\n\nimport { usePrice } from './usePrice';\n\ninterface PriceProps {\n  className?: string;\n  productPrice: number;\n}\n\nexport const Price: FC<PriceProps> = ({ productPrice, className }) => {\n  const price = usePrice(productPrice);\n  return <div className={cx('mw-price', className)}>{price}</div>;\n};\n", "import { Icon } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { ShopifyContext } from '../ShopifyProvider';\nimport { cartIconButtonCss, cartIconCss, cartIconQuantityCss } from './styles';\n\nexport const CartIcon: FC = () => {\n  const { cart, products } = useContext(ShopifyContext);\n\n  const total = Object.keys(cart.lineItems).reduce((acc, lineItem) => {\n    if ((products.extras.bundleItems ?? []).includes(lineItem)) {\n      return acc;\n    }\n\n    return acc + cart.lineItems[lineItem]!;\n  }, 0);\n\n  return (\n    <button className={cartIconButtonCss} onClick={() => cart.setCartOpen(true)}>\n      {total !== 0 && <span className={cartIconQuantityCss}>{total}</span>}\n      <Icon name=\"cart\" size={27} className={cartIconCss} />\n    </button>\n  );\n};\n", "import { BackgroundType, CookieModal as CookiePopupGlobal } from '@snapchat/mw-global-components';\nimport { BackgroundColor } from '@snapchat/snap-design-system-marketing';\nimport type React from 'react';\n\nimport { Config } from '../../config';\nimport {\n  logError,\n  onMarketingTrackingAccepted,\n  onPerformanceTrackingAccepted,\n} from '../../helpers/logging';\n\nexport interface CookiePopupProps {\n  isClient: boolean;\n  backgroundColor?: BackgroundColor;\n  globalPrivacyControl?: boolean;\n}\n\nconst defaultBackgroundColor = BackgroundColor.White;\n\n// TODO: Grab isClient from Config, grab globalPrivacyControl from AppContext,\n// grab backgroundColor from Config.theme.\nexport const CookiePopup: React.FC<CookiePopupProps> = ({\n  isClient,\n  backgroundColor = defaultBackgroundColor,\n  globalPrivacyControl,\n}) => {\n  // Return nothing for SSR\n  if (!isClient) return null;\n\n  const backgroundType =\n    backgroundColor === BackgroundColor.Black ? BackgroundType.DarkMode : BackgroundType.LightMode;\n\n  // For non-production environments (localhost, staging sites) - specify empty string so that cookies will can be set.\n  const cookieDomain =\n    !Config.isDeploymentTypeProd || !Config.isCompilationModeProd ? '' : undefined;\n\n  return (\n    <CookiePopupGlobal\n      cookieDomain={cookieDomain}\n      backgroundType={backgroundType}\n      onComplete={event => {\n        if (event.cookieAcceptance.Marketing) {\n          onMarketingTrackingAccepted().catch(error =>\n            logError({ component: 'CookiePopup', error })\n          );\n        }\n\n        if (event.cookieAcceptance.Performance) {\n          onPerformanceTrackingAccepted().catch(error =>\n            logError({ component: 'CookiePopup', error })\n          );\n        }\n      }}\n      globalPrivacyControl={globalPrivacyControl}\n    />\n  );\n};\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\nimport { Helmet } from 'react-helmet-async';\n\nimport { AppContext } from '../../AppContext';\nimport { directionFromLocale } from './languageDirection';\n\nexport const DirectionDirective: FC = () => {\n  const appContext = useContext(AppContext);\n  return (\n    <Helmet>\n      {/* biome-ignore lint/a11y/useHtmlLang: This is helment. Not complete. */}\n      <html dir={directionFromLocale(appContext?.currentLocale)} />\n    </Helmet>\n  );\n};\n\nDirectionDirective.displayName = 'DirectionDirective';\n", "import { defaultLocale } from '../../helpers/locale';\n\n// TODO: Import this from SDSM\n// eslint-disable-next-line import/no-unused-modules\nexport type Direction = 'rtl' | 'ltr';\n\n/**\n * Codes that are Right-to-left.\n *\n * Based off of this page: https://lingohub.com/academy/best-practices/rtl-language-list\n */\n// eslint-disable-next-line import/no-unused-modules\nexport const rtlLanguageCodes = new Set([\n  'ar', //\tArabic\n  'arc', //\tAramaic\n  'dv', //\tDivehi\n  'fa', //\tPersian\n  'ha', //\tHausa\n  'he', //\tHebrew\n  'khw', //\tKhowar\n  'ks', //\tKashmiri\n  'ku', //\tKurdish\n  'ps', //\tPashto\n  'ur', //\tUrdu\n  'yi', // Yiddish\n]);\n\nexport const directionFromLocale = (locale?: string): Direction => {\n  const currentLocale = locale ?? defaultLocale;\n  const [languageCode] = currentLocale.split('-');\n  return rtlLanguageCodes.has(languageCode as string) ? 'rtl' : 'ltr';\n};\n", "import { css } from '@emotion/css';\nimport type { SrcSetSettings } from '@snapchat/mw-contentful-client';\nimport { getDprSrcSetSettingsByHeight, useContentfulImages } from '@snapchat/mw-contentful-client';\nimport { m, Media as MediaSDS } from '@snapchat/snap-design-system-marketing';\nimport type React from 'react';\nimport { type FC, useContext, useState } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { UserAction } from '../../types/events';\nimport { getFileInfo } from '../../utils/getFileInfo';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport { getVideoWatchLogger } from '../Video/utils';\nimport { query } from './query';\nimport type { MediaDataHandlerProps, MediaProps } from './types';\n\nconst isImageUrl = (contentType: string | null): boolean => {\n  if (!contentType) return false;\n  return contentType.startsWith('image');\n};\n\nconst embeddedMediaCss = css`\n  margin-bottom: ${m('--spacing-m')};\n`;\n\n/** Component to render generic media. Currently only used by embeds (see contentfulComponentMap) */\nexport const Media: FC<MediaProps> = props => {\n  const { data } = useContentfulQuery<MediaDataHandlerProps, ContentfulIdVariable>(query, {\n    variables: { id: props.sys.id },\n  });\n  const { getImageSources } = useContentfulImages();\n  const { logEvent } = useContext(ConsumerContext);\n  const [videoPlayed, setVideoPlayed] = useState(false);\n  let prevWatchEventTime = -1;\n\n  if (!data) return null;\n  const { asset } = data;\n\n  if (!asset) return null;\n\n  const { contentType, url, description } = asset;\n\n  // case that its an image\n  if (isImageUrl(contentType)) {\n    // If the original image can be larger than 600, we allow handling 2x dpr lol\n    const imgSrcSetSettings: SrcSetSettings = getDprSrcSetSettingsByHeight(\n      600,\n      data.asset.height ?? 0\n    );\n\n    const imgSrcs = getImageSources(url, imgSrcSetSettings);\n\n    return (\n      <MediaSDS\n        className={props.isEmbedded ? embeddedMediaCss : undefined}\n        imgSrcs={imgSrcs}\n        altText={description}\n      />\n    );\n  }\n\n  // case that its a video. We default to no autoplay.\n  const onPlay: React.ReactEventHandler<HTMLVideoElement> = _e => {\n    if (logEvent && url && !videoPlayed) {\n      const { fileName } = getFileInfo(url);\n      logEvent({ component: 'Video', type: UserAction.Play, label: fileName });\n      setVideoPlayed(true);\n    }\n  };\n\n  const onTimeUpdate = getVideoWatchLogger({\n    autoPlay: false,\n    eventLabel: asset.sys.id,\n    getPreviousWatchTime: () => {\n      return prevWatchEventTime;\n    },\n    setPreviousWatchTime: value => {\n      prevWatchEventTime = value;\n    },\n  });\n\n  return (\n    <MediaSDS\n      sourceType={contentType}\n      className={props.isEmbedded ? embeddedMediaCss : undefined}\n      videoSource={url}\n      showVideoControls={true}\n      onPlay={onPlay}\n      onTimeUpdate={onTimeUpdate}\n      maxHeight={600}\n      altText={description}\n    />\n  );\n};\n\nMedia.displayName = 'Media';\n", "/** Gets file name from url. Must be asset url or it will not work correctly */\ntype FileInfo = {\n  fileName: string;\n  extension: string;\n};\n\nexport const getFileInfo = (url?: string): FileInfo => {\n  if (url) {\n    const nameAndExt = url.split('?')[0]!.split('/').pop();\n\n    if (nameAndExt) {\n      // just in case file name has \".\" in it\n      const nameAndExtArr = nameAndExt.split('.');\n      const extension = nameAndExtArr.slice(-1)[0]!;\n      const fileName = nameAndExtArr\n        .slice(0, nameAndExtArr.length - 1)\n        .join('.')\n        .trim();\n\n      return {\n        fileName,\n        extension,\n      };\n    }\n  }\n\n  return { fileName: '', extension: '' };\n};\n", "export const isElementInViewport = (element: HTMLElement): boolean => {\n  const rect = element.getBoundingClientRect();\n  return (\n    rect.top >= 0 &&\n    rect.left >= 0 &&\n    rect.bottom <= (window.innerHeight ?? document.documentElement.clientHeight) &&\n    rect.right <= (window.innerWidth ?? document.documentElement.clientWidth)\n  );\n};\n", "import { logValue } from '../../helpers/logging';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport { isElementInViewport } from '../../utils/isElementInViewport';\nimport type { VideoDataProps } from './types';\n\nexport const isVideoDataProps = (props: ContentfulSysProps): props is VideoDataProps => {\n  return (props as VideoDataProps).__typename === 'Video';\n};\n\ninterface GetVideoWatchLoggerParams {\n  eventLabel: string;\n  getPreviousWatchTime: () => number;\n  setPreviousWatchTime: (value: number) => void;\n  /** Defaults to true if not specified */\n  autoPlay?: boolean | null;\n}\n\n/** Helper function that generates an `onTimeUpdate` listener to log video watch times. */\nexport const getVideoWatchLogger: (\n  params: GetVideoWatchLoggerParams\n) => React.ReactEventHandler<HTMLVideoElement> = ({\n  autoPlay = true, //default to true if not specified\n  eventLabel,\n  getPreviousWatchTime,\n  setPreviousWatchTime,\n}) => {\n  const onTimeUpdate: React.ReactEventHandler<HTMLVideoElement> = event => {\n    // don't log watch heartbeats for auto-played videos\n    if (autoPlay) return;\n\n    const video = event.target as HTMLVideoElement;\n\n    //https://docs.w3cub.com/dom/htmlmediaelement/readystate\n    const sufficientDataToPlay = video.readyState > 2;\n    const isVideoPlaying =\n      video.currentTime > 0 && !video.paused && !video.ended && sufficientDataToPlay;\n\n    const watchEventTimeDelta = Math.abs(getPreviousWatchTime() - video.currentTime);\n    const isVideoInViewport = isElementInViewport(video);\n\n    if (isVideoPlaying && isVideoInViewport && !document.hidden && watchEventTimeDelta >= 0.9) {\n      logValue({\n        eventCategory: 'Video',\n        eventLabel,\n        eventVariable: 'video_watch',\n        eventValue: Math.floor(video.currentTime),\n      });\n      setPreviousWatchTime(video.currentTime);\n    }\n  };\n\n  return onTimeUpdate;\n};\n", "import { gql } from '@apollo/client';\n\nexport const assetFragment = gql`\n  fragment AssetAll on Asset {\n    sys {\n      id\n    }\n    contentType\n    width\n    height\n    title\n    description\n    url\n  }\n`;\n\n// TODO: Delete references to this.\nexport const fragments = {\n  all: assetFragment,\n};\n\nexport const query = gql`\n  query AssetsQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    asset(preview: $preview, locale: $locale, id: $id) {\n      ...AssetAll\n    }\n  }\n  ${assetFragment}\n`;\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as mediaFragments } from '../Media';\n\nexport const fragments = {\n  all: gql`\n    fragment FaviconAll on Favicon {\n      ...ContentfulSysId\n      asset {\n        ...AssetAll\n      }\n      size\n    }\n    ${mediaFragments.all}\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const query = gql`\n  query FaviconCollectionQuery($preview: Boolean!, $locale: String!) {\n    faviconCollection(preview: $preview, locale: $locale, order: sys_publishedAt_ASC) {\n      items {\n        ...FaviconAll\n      }\n    }\n  }\n  ${fragments.all}\n`;\n", "import type { FC } from 'react';\nimport { Helmet } from 'react-helmet-async';\n\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { query } from './query';\nimport type { FaviconDataHandlerProps } from './types';\n\nexport const Favicon: FC = () => {\n  const { data } = useContentfulQuery<FaviconDataHandlerProps>(query, {});\n\n  if (!data) return null;\n\n  const publishedFavicon = data?.faviconCollection?.items?.some(faviconEntry =>\n    Boolean(faviconEntry.asset)\n  );\n\n  if (!publishedFavicon) {\n    return (\n      <Helmet>\n        <link rel=\"icon\" type=\"image/png\" href=\"/images/favicon.png\" />\n      </Helmet>\n    );\n  }\n\n  return (\n    <Helmet>\n      {data.faviconCollection.items\n        .filter(faviconEntry => Boolean(faviconEntry.asset))\n        .map(faviconEntry => {\n          const { sys, asset, size } = faviconEntry;\n          return (\n            <link\n              key={sys.id}\n              rel=\"icon\"\n              type=\"image/png\"\n              href={`${asset.url}?fm=png`}\n              sizes={size ? `${size}x${size}` : undefined}\n            />\n          );\n        })}\n    </Helmet>\n  );\n};\n", "import { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport type { FooterGroup, FooterGroupItemsItem } from '@snapchat/mw-contentful-schema';\nimport { FooterType, GlobalFooter } from '@snapchat/mw-global-components';\nimport type { BackgroundColor } from '@snapchat/snap-design-system-marketing';\nimport { FooterSocial, ImageButton, Media } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { FooterView, PageLayoutContext } from '../../context/PageLayoutContext';\nimport { SitewideConfigurationContext } from '../../context/SitewideConfiguration/SitewideConfigurationContext';\nimport { Anchor } from '../Anchor';\nimport { useExperiment } from '../Experiment';\nimport { logoWrapperCss, socialAnchorCss, socialPictureCss } from './Footer.styles';\nimport { filterCriteria } from './utils';\n\ntype FooterWrapperProps = {\n  cookieSettingsUrl: string;\n};\n\nexport const Footer: FC<FooterWrapperProps> = ({ cookieSettingsUrl }) => {\n  const { footerView } = useContext(PageLayoutContext);\n  const { getImageSources } = useContentfulImages();\n\n  const { sitewideValues } = useContext(SitewideConfigurationContext);\n\n  const { checkCriteria } = useExperiment();\n\n  const showSimpleFooter = footerView === FooterView.SIMPLE_FOOTER;\n  const noFooter = footerView === FooterView.NO_FOOTER;\n\n  let footerType: FooterType = FooterType.FULL_FOOTER;\n\n  if (noFooter) {\n    footerType = FooterType.NO_FOOTER;\n  } else if (showSimpleFooter) {\n    footerType = FooterType.SIMPLE_FOOTER;\n  }\n\n  if (noFooter) {\n    return null;\n  }\n\n  const isVisible = (item: FooterGroup | FooterGroupItemsItem) => checkCriteria(item.criteria);\n\n  const customFooter = sitewideValues?.customFooter;\n\n  const filteredFooterColumnsCollection = filterCriteria(\n    isVisible,\n    cookieSettingsUrl,\n    customFooter?.columnsCollection?.items\n  );\n  const filteredFooterBarCollection = filterCriteria(\n    isVisible,\n    cookieSettingsUrl,\n    customFooter?.barCollection?.items\n  );\n\n  const footerSocial = customFooter?.socialCollection?.items?.length ? (\n    <FooterSocial title={customFooter?.socialLabel ?? undefined}>\n      {customFooter?.socialCollection?.items?.map((footerSocialItem, i) => {\n        const { image, height, sys, url, width } = footerSocialItem;\n        return (\n          <ImageButton\n            key={`${sys.id}-${i}`}\n            url={url}\n            height={height}\n            imgSrcs={getImageSources(image?.url)}\n            altText={image?.description}\n            width={width}\n            pictureClassName={socialPictureCss}\n            className={socialAnchorCss}\n          />\n        );\n      })}\n    </FooterSocial>\n  ) : null;\n\n  const customLogo = customFooter?.logo;\n  let footerLogo: React.ReactNode | undefined;\n\n  if (customLogo) {\n    const imgSrcs = getImageSources(customLogo.media?.url, { image: { height: 24 } });\n    const logoUrl = customFooter?.url;\n    const logo = (\n      <Media\n        sourceType={customLogo.media?.contentType}\n        marginBottom={false}\n        imgSrcs={imgSrcs}\n        altText={customLogo.media?.description}\n      />\n    );\n\n    if (logoUrl) {\n      footerLogo = (\n        <Anchor href={logoUrl} className={logoWrapperCss}>\n          {logo}\n        </Anchor>\n      );\n    } else {\n      footerLogo = logo;\n    }\n  }\n\n  return (\n    <GlobalFooter\n      customColumns={filteredFooterColumnsCollection}\n      customFooterBar={filteredFooterBarCollection}\n      cookieSettingsUrl={cookieSettingsUrl}\n      backgroundColor={customFooter?.backgroundColor as BackgroundColor}\n      logo={footerLogo}\n      socialBar={footerSocial}\n      footerType={footerType}\n    />\n  );\n};\n", "import type { BackgroundColor } from '@snapchat/snap-design-system-marketing';\nimport { createContext } from 'react';\n\nexport enum HeaderView {\n  FULL_HEADER = 'Full Header',\n  /**\n   * Minimized header hides all the navigation items, keeping just the snap logo and the call to\n   * action buttons\n   */\n  MINIMIZED_HEADER = 'Minimized Header',\n  NO_HEADER = 'No Header',\n  /**\n   * Simple header hides all the navigation items, keeping just the snap logo and name of the\n   * website\n   */\n  SIMPLE_HEADER = 'Simple Header',\n}\n\n/**\n * Simple footer allows to show a narrow basic footer bar with only essential links.\n *\n * NOTE: These values must match validation in contentful.\n */\nexport enum FooterView {\n  FULL_FOOTER = 'Full Footer',\n  NO_FOOTER = 'No Footer',\n  SIMPLE_FOOTER = 'Simple Footer',\n}\n\nexport interface PageLayoutContextProps {\n  footerView: FooterView;\n  headerView: HeaderView;\n  headerBackgroundColorOverride?: BackgroundColor;\n  setFooterView?: (footerView: FooterView) => void;\n  setHeaderView?: (headerView: HeaderView) => void;\n  setHeaderBackgroundColorOverride?: (color?: BackgroundColor) => void;\n}\n\nexport const PageLayoutContext = createContext<PageLayoutContextProps>({\n  footerView: FooterView.FULL_FOOTER,\n  headerView: HeaderView.FULL_HEADER,\n});\n", "import type { Button as ButtonType } from '@snapchat/mw-contentful-schema';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { UserAction } from '../../types/events';\nimport { isContentfulSysNotShallow } from '../../utils/contentful';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport type { ButtonData } from '../Button';\nimport { Button } from '../Button';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport { query } from './query';\nimport type {\n  CallToActionDataHandlerProps,\n  CallToActionDataProps,\n  CallToActionProps,\n} from './types';\n\nexport const CallToAction: FC<CallToActionProps> = props => {\n  const consumerContext = useContext(ConsumerContext);\n  const { data: rawData } = useContentfulQuery<CallToActionDataHandlerProps, ContentfulIdVariable>(\n    query,\n    {\n      skip: isContentfulSysNotShallow(props),\n      variables: { id: props.sys.id },\n    }\n  );\n\n  const data = rawData ? rawData?.callToAction : (props as CallToActionDataProps);\n\n  // Sanity check for when content is archived or isn't published.\n  if (!data || !data.sys || !data.presentation) {\n    return null;\n  }\n\n  const { presentation, analytics, url, className } = data;\n  const { logEvent } = consumerContext;\n  const label = analytics?.label;\n\n  const onClick = (): void => {\n    // NOTE: This is legacy record; the `url` is null in all new CTAs so the logEvent doesn't\n    // have enough information to log anything. Loggin happens inside the presentation component.\n    logEvent?.({ type: UserAction.Click, component: 'CTA', label, url });\n  };\n\n  if (presentation.__typename === 'Button') {\n    // TODO: Remove this cast. Requires making MediaProps work w/ Asset.\n    const buttonData = presentation as ButtonData;\n\n    const { titleDataset } = getContentfulInspectorProps<ButtonType>({\n      entryId: buttonData.sys.id,\n      fieldIds: ['title'],\n    });\n\n    return (\n      <Button\n        onClick={onClick}\n        {...buttonData}\n        className={className}\n        buttonTextDataset={titleDataset}\n      />\n    );\n  }\n\n  // TODO: Throw an error here.\n  return null;\n};\n\nCallToAction.displayName = 'CallToAction';\n", "import type {\n  ContentfulIdProps,\n  ContentfulIdsProps,\n  ContentfulSysProps,\n} from '../types/contentful';\n\nexport const isContentfulIdProps = <T>(\n  props: T | ContentfulIdProps\n): props is ContentfulIdProps => {\n  return !!(props as ContentfulIdProps).id;\n};\n\nexport const isContentfulSysProps = <T>(\n  props: T | ContentfulSysProps\n): props is ContentfulSysProps => {\n  return (props as ContentfulSysProps).sys !== undefined;\n};\n\nexport const isContentfulIdsProps = <T>(\n  props: T | ContentfulIdsProps\n): props is ContentfulIdsProps => {\n  const propsAs = props as ContentfulIdsProps;\n  return Array.isArray(propsAs.ids);\n};\n\n/** Returns whether the props contains any keys besides the shallow copy ones. */\nexport const isContentfulShallow = (\n  props: ContentfulIdProps | ContentfulSysProps | ContentfulIdsProps\n): boolean => {\n  const allKeys = new Set(Object.keys(props));\n  ['__typename', 'id', 'ids', 'sys'].forEach(key => allKeys.delete(key));\n  return allKeys.size === 0;\n};\n\n/** Returns whether props are not shallow. */\nexport const isContentfulSysNotShallow = <D extends ContentfulSysProps>(\n  props: ContentfulSysProps\n): props is D => {\n  const allKeys = new Set(Object.keys(props));\n  ['__typename', 'sys'].forEach(key => allKeys.delete(key));\n  return allKeys.size > 0;\n};\n", "import type { Entry } from '@snapchat/mw-contentful-schema';\n\nimport { Config } from '../../config';\n\ntype GetContentfulInspectorPropsArgs<T> = {\n  entryId: string;\n  locale?: string;\n  fieldIds: (keyof T)[];\n};\n\n// These correspond to data-* attributes for inspector mode\ntype InspectorProps<T> = {\n  contentfulFieldId: T;\n  contentfulEntryId: string;\n  contentfulLocale?: string;\n};\n\n/**\n * Field ids are generally 1:1 with the graphql schema types except for collections. The graphql\n * schema has a 'Collection' suffix, while the Content Model's fieldId does not. e.g.\n * \"callsToActionCollection\" vs 'callsToAction'. Collections refer to a collection of other\n * entries.\n *\n * We have a practice of not tagging reference fields with inspector tags, but sometimes it may make\n * sense to edit them as a group, e.g. a collection of small icons where the inspector box for each\n * icon would get too clumped together. But that's a rare case.\n */\ntype RemoveCollectionSuffix<T> = T extends `${infer Field}Collection` ? Field : T;\n\ntype WithDatasetSuffix<T extends string> = `${T}Dataset`;\n\ntype StringKeys<T> = Extract<keyof T, string>;\n\n// This removes the 'Collection' suffix\ntype RekeyedContentType<ContentType> = {\n  [Fields in StringKeys<ContentType> as RemoveCollectionSuffix<Fields>]: ContentType[Fields];\n};\n\n// This adds the 'Dataset' suffix\ntype InspectorDataset<RemappedContentType> = {\n  [Fields in StringKeys<RemappedContentType> as WithDatasetSuffix<Fields>]: RemappedContentType[Fields];\n};\n\ntype InspectorPropsMap<SuffixedT extends string, T> = Partial<Record<SuffixedT, InspectorProps<T>>>;\n\ntype InspectorPropsReturnType<T extends Entry> = InspectorPropsMap<\n  keyof InspectorDataset<RekeyedContentType<T>>,\n  keyof RekeyedContentType<T>\n>;\n\n/**\n * Helper function to generate Contentful inspector props.\n *\n * If you are getting type errors in fieldIds, make sure you are passing in a Contentful type as a\n * type parameter.\n *\n * @param entryId: The Contentful entry id that these fields belong to\n * @param fieldIds: A list of field ids corresponding those in the entry Content Model.\n * @param locale: The locale to preview in. Use it to override the initial locale if needed.\n * @returns\n */\nexport function getContentfulInspectorProps<T extends Entry>({\n  entryId,\n  fieldIds,\n  locale,\n}: GetContentfulInspectorPropsArgs<RekeyedContentType<T>>): InspectorPropsReturnType<T> {\n  if (Config.isDeploymentTypeProd) {\n    return {};\n  }\n\n  const map: InspectorPropsReturnType<T> = {};\n\n  fieldIds.forEach(id => {\n    const mapId = `${String(id)}Dataset` as keyof InspectorDataset<RekeyedContentType<T>>;\n\n    map[mapId] = {\n      contentfulEntryId: entryId,\n      contentfulFieldId: id,\n      contentfulLocale: locale,\n    };\n  });\n\n  return map;\n}\n", "import { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport {\n  Bold,\n  CollapseTableMobile,\n  H1,\n  H2,\n  H3,\n  H4,\n  H5,\n  H6,\n  HorizontalRule,\n  Italics,\n  ListItem,\n  NoCollapseTableMobile,\n  OrderedList,\n  Paragraph,\n  PrimitiveTableCell as TableCell,\n  PrimitiveTableHeader as TableHeader,\n  PrimitiveTableRow as TableRow,\n  Underline,\n  UnorderedList,\n} from '@snapchat/snap-design-system-marketing';\nimport type { ReactNode } from 'react';\n\nimport { Hyperlink } from '../../components/Hyperlink';\nimport type { RichText } from '../../types/RichText';\nimport {\n  NoHeadingH1,\n  NoHeadingH2,\n  NoHeadingH3,\n  NoHeadingH4,\n  NoHeadingH5,\n  NoHeadingH6,\n} from './NoHeadingRichTextComponents';\nimport { createRichTextRenderer } from './renderText';\nimport { RichTextDocument, RichTextNoPaddingParagraph } from './RichTextComponents';\nimport { renderMultiLineText } from './textUtils';\n\nexport const RichTextWithElementsComponents = {\n  Document: RichTextDocument,\n  Text: renderMultiLineText,\n  Bold,\n  Italics,\n  Underline,\n\n  H1,\n  H2,\n  H3,\n  H4,\n  H5,\n  H6,\n\n  Paragraph,\n  Hyperlink,\n  ListItem,\n  UnorderedList,\n  OrderedList,\n  Table: NoCollapseTableMobile,\n  TableCell,\n  TableHeader,\n  TableRow,\n  HorizontalRule,\n};\n\n/**\n * Renders wich text that has NO EMBEDDED ASSETS or ENTRIES.\n *\n * If you need to render embedded entries, see 'renderText.ts'.\n *\n * This uses standard HTML elements like <b>, <hr>, <sup> etc.\n *\n * Going forward, we should be using this for most RichText needs.\n */\nexport const renderRichText = (data?: RichText | string): ReactNode => {\n  if (!data) {\n    return undefined;\n  }\n\n  if (typeof data === 'string') {\n    return data;\n  }\n\n  return documentToReactComponents(data.json /* useDefaultOptions */);\n};\n\n/**\n * Renders rich text as plain text only wrapping around markings like underline / italics and bold.\n *\n * This is useful when we want to render rich text but not honor the <p> tag to avoid extra spacing.\n */\nexport const renderRichTextMarkingsOnly = createRichTextRenderer({\n  components: {\n    Bold,\n    Italics,\n    Underline,\n  },\n});\n\n/**\n * Same as {@link renderRichTextMarkingsOnly} except that it inserts <br /> where new-line characters\n * are so whitespaces ends up being rendered.\n */\nexport const renderRichTextMultiLineWithMarkings = createRichTextRenderer({\n  components: {\n    // To insert <br /> between new lines\n    Text: renderMultiLineText,\n    Bold,\n    Italics,\n    Underline,\n    // To wrap each node in <p>, but without margins since we don't expect\n    // these lines of text to actually be paragraphs but rather multi-line titles/subtitles\n    Paragraph: RichTextNoPaddingParagraph,\n  },\n});\n\n/**\n * Render RichText components using basic SDSM primitives.\n *\n * This one is probably worse when it comes to rendering basic tags but includes the embedded\n * entries like CTAs and Media.\n */\nexport const renderRichTextWithElements = createRichTextRenderer({\n  components: RichTextWithElementsComponents,\n});\n\n/**\n * RichText renderer that uses SDSM primives but does not use h1-h6 tags.\n *\n * These exist to not interfere with screenreaders and SEO where the order of h1-h6 and their\n * position matters.\n */\nexport const renderRichTextWithElementsNoHeadings = createRichTextRenderer({\n  components: {\n    ...RichTextWithElementsComponents,\n    H1: NoHeadingH1,\n    H2: NoHeadingH2,\n    H3: NoHeadingH3,\n    H4: NoHeadingH4,\n    H5: NoHeadingH5,\n    H6: NoHeadingH6,\n  },\n});\n\n/**\n * RichText renderer that uses SDSM primives, useHeadingTagsForBody is used to conditionally use or\n * not h1-h6 tags, collapseMobileTable is used to render the primitive table with a set prop\n */\nexport const getRichTextWithEmbeddingsRenderer = (\n  useHeadingTagsForBody = false,\n  collapseMobileTable = false\n  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n) => {\n  const headings = useHeadingTagsForBody\n    ? {\n        H1,\n        H2,\n        H3,\n        H4,\n        H5,\n        H6,\n      }\n    : {\n        H1: NoHeadingH1,\n        H2: NoHeadingH2,\n        H3: NoHeadingH3,\n        H4: NoHeadingH4,\n        H5: NoHeadingH5,\n        H6: NoHeadingH6,\n      };\n\n  const Table = collapseMobileTable ? CollapseTableMobile : NoCollapseTableMobile;\n\n  return createRichTextRenderer({\n    components: {\n      ...RichTextWithElementsComponents,\n      ...headings,\n      Table,\n    },\n  });\n};\n", "import { Hyperlink as HyperlinkSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC, PropsWithChildren } from 'react';\nimport { useContext } from 'react';\n\nimport { shouldFlushLogs } from '../../helpers/getLocalPath';\nimport { logger } from '../../helpers/logging';\nimport { UserAction } from '../../types/events';\nimport type { ConsumerContextProps } from '../ConsumerContextProvider';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport type { HyperlinkProps } from './types';\n\nexport const Hyperlink: FC<PropsWithChildren<HyperlinkProps>> = ({ uri, children }) => {\n  const consumerContext: ConsumerContextProps = useContext(ConsumerContext);\n  const { logEvent } = consumerContext;\n\n  const onClick = (): void => {\n    logEvent?.({\n      component: 'Hyperlink',\n      type: UserAction.Click,\n      label: `Hyperlink: ${uri}`,\n      url: uri,\n    });\n\n    if (shouldFlushLogs(uri)) {\n      void logger.flush();\n    }\n  };\n\n  return (\n    <HyperlinkSDS link={uri} onClick={onClick}>\n      {children}\n    </HyperlinkSDS>\n  );\n};\n\nHyperlink.displayName = 'Hyperlink';\n", "import { css, cx } from '@emotion/css';\nimport {\n  h4Css,\n  h5Css,\n  p1Css,\n  p2Css,\n  p3Css,\n  p4Css,\n  primitiveElementClassNames,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC, PropsWithChildren } from 'react';\n\n/** Standard header sizing. Namely higher line height. */\nconst headerCss = css`\n  && {\n    line-height: 160%;\n  }\n`;\n\nexport const NoHeadingH1: FC<PropsWithChildren> = ({ children }) => (\n  <div className={cx(primitiveElementClassNames.h1, h4Css, headerCss)}>{children}</div>\n);\nNoHeadingH1.displayName = 'H1';\n\nexport const NoHeadingH2: FC<PropsWithChildren> = ({ children }) => (\n  <div className={cx(primitiveElementClassNames.h2, h5Css, headerCss)}>{children}</div>\n);\nNoHeadingH2.displayName = 'H2';\n\nexport const NoHeadingH3: FC<PropsWithChildren> = ({ children }) => (\n  <div className={cx(primitiveElementClassNames.h3, p1Css, headerCss)}>{children}</div>\n);\nNoHeadingH3.displayName = 'H3';\n\nexport const NoHeadingH4: FC<PropsWithChildren> = ({ children }) => (\n  <div className={cx(primitiveElementClassNames.h4, p2Css, headerCss)}>{children}</div>\n);\nNoHeadingH4.displayName = 'H4';\n\nexport const NoHeadingH5: FC<PropsWithChildren> = ({ children }) => (\n  <div className={cx(primitiveElementClassNames.h5, p3Css, headerCss)}>{children}</div>\n);\nNoHeadingH5.displayName = 'H5';\n\nexport const NoHeadingH6: FC<PropsWithChildren> = ({ children }) => (\n  <div className={cx(primitiveElementClassNames.h6, p4Css, headerCss)}>{children}</div>\n);\nNoHeadingH6.displayName = 'H6';\n", "import type { NodeRenderer, Options } from '@contentful/rich-text-react-renderer';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS, INLINES, MARKS } from '@contentful/rich-text-types';\nimport type { Asset, Entry } from '@snapchat/mw-contentful-schema';\nimport get from 'lodash-es/get';\nimport keyBy from 'lodash-es/keyBy';\nimport type { FC, PropsWithChildren, ReactNode } from 'react';\nimport type React from 'react';\n\nimport { AssetEntryHyperlink } from '../../components/Hyperlink/AssetEntryHyperlink';\nimport { logError } from '../../helpers/logging';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport type { RenderData, RichText } from '../../types/RichText';\nimport type { ContentfulComponentMap } from '../contentfulComponentMap';\nimport { contentfulComponentMap } from '../contentfulComponentMap';\nimport type { GetRichTextOptionsProps, MarkRenderer, RenderTextProps } from './types';\n\nconst defaultMarkRenderer: MarkRenderer = text => text;\n\nconst defaultNodeRenderer: NodeRenderer = (node, children) => {\n  if (!children) {\n    logError({\n      component: 'RenderText',\n      message: 'Default node renderer cannot render this node.',\n      context: { node: JSON.stringify(node) },\n    });\n\n    return null;\n  }\n\n  return <>{children}</>;\n};\n\nconst getRichTextMarkRenderer = (Component?: FC<PropsWithChildren>): MarkRenderer =>\n  Component ? (text): ReactNode => <Component>{text}</Component> : defaultMarkRenderer;\n\nconst getRichTextNodeRenderer = (Component?: FC<PropsWithChildren>): NodeRenderer =>\n  Component\n    ? (node, children): ReactNode => <Component {...node.data}>{children}</Component>\n    : defaultNodeRenderer;\n\nconst getEmbeddedEntryNodeRenderer = (\n  contentfulComponentMap: ContentfulComponentMap,\n  entries?: ContentfulSysProps[]\n): NodeRenderer => {\n  // eslint-disable-next-line react/display-name\n  return (node): ReactNode => {\n    const entriesById = keyBy(entries, entry => entry.sys.id);\n\n    const entryId = node.data.target.sys.id;\n    const entry = entriesById[entryId];\n    const typename = entry?.__typename;\n\n    if (!typename) {\n      // If the typename wasn't requested in the query. Default render node.\n      logError({\n        component: 'RenderText',\n        message: `Node typename wasn't in the query response`,\n        context: { entryId },\n      });\n\n      return defaultNodeRenderer(node, null);\n    }\n\n    if (typename in contentfulComponentMap) {\n      // @ts-ignore: typename guaranteed to be in the component map.\n      const Component = contentfulComponentMap[typename];\n      return <Component {...entry} />;\n    }\n\n    // If no component is specified, then default render.\n    logError({\n      component: 'RenderText',\n      message: 'No rich text renderer found',\n      context: { typename },\n    });\n\n    return defaultNodeRenderer(node, null);\n  };\n};\n\nconst isRichText = (data: RenderData): data is RichText => {\n  return (data as unknown as RichText).json !== undefined;\n};\n\ninterface GetEmbeddedProps {\n  data: RenderData;\n  contentfulComponentMap: ContentfulComponentMap;\n  accessPath: string;\n}\n\nconst getEmbeddedNodeRenderer = (props: GetEmbeddedProps): NodeRenderer => {\n  const { data, contentfulComponentMap, accessPath } = props;\n  let nodeRenderer: NodeRenderer;\n\n  if (!data || !isRichText(data)) {\n    nodeRenderer = defaultNodeRenderer;\n  } else {\n    const linkedEntries = get(data, accessPath);\n    nodeRenderer = getEmbeddedEntryNodeRenderer(contentfulComponentMap, linkedEntries);\n  }\n\n  return nodeRenderer;\n};\n\nconst getHyperlinkedNodeRenderer = (props: {\n  data: RenderData;\n  accessPath: string;\n}): NodeRenderer => {\n  const { data, accessPath } = props;\n\n  if (!data || !isRichText(data)) {\n    return defaultNodeRenderer;\n  }\n\n  // eslint-disable-next-line react/display-name\n  return (node, children): ReactNode => {\n    const linkedItems = get(data, accessPath) as Array<Asset> | Array<Entry>;\n    const itemsById = keyBy(linkedItems, item => item.sys.id);\n    const item = itemsById[node.data.target.sys.id]!;\n\n    return <AssetEntryHyperlink item={item}>{children}</AssetEntryHyperlink>;\n  };\n};\n\nconst getRichTextOptions = (props: GetRichTextOptionsProps): Options => {\n  const { data, components } = props;\n\n  const blockEmbeddedAssetNodeRenderer = getEmbeddedNodeRenderer({\n    data,\n    contentfulComponentMap,\n    accessPath: 'links.assets.block',\n  });\n  const inlineEmbeddedEntryNodeRenderer = getEmbeddedNodeRenderer({\n    data,\n    contentfulComponentMap,\n    accessPath: 'links.entries.inline',\n  });\n  const blockEmbeddedEntryNodeRenderer = getEmbeddedNodeRenderer({\n    data,\n    contentfulComponentMap,\n    accessPath: 'links.entries.block',\n  });\n  const hyperlinkedAssetNodeRenderer = getHyperlinkedNodeRenderer({\n    data,\n    accessPath: 'links.assets.hyperlink',\n  });\n  const hyperlinkedEntryNodeRenderer = getHyperlinkedNodeRenderer({\n    data,\n    accessPath: 'links.entries.hyperlink',\n  });\n\n  return {\n    renderText: components.Text ?? defaultMarkRenderer,\n    renderMark: {\n      [MARKS.BOLD]: getRichTextMarkRenderer(components.Bold),\n      // TODO: This should be using the code component.\n      [MARKS.CODE]: defaultMarkRenderer,\n      [MARKS.ITALIC]: getRichTextMarkRenderer(components.Italics),\n      [MARKS.UNDERLINE]: getRichTextMarkRenderer(components.Underline),\n    },\n    renderNode: {\n      [BLOCKS.DOCUMENT]: getRichTextNodeRenderer(components.Document),\n      [BLOCKS.EMBEDDED_ASSET]: blockEmbeddedAssetNodeRenderer,\n      [BLOCKS.EMBEDDED_ENTRY]: blockEmbeddedEntryNodeRenderer,\n      [BLOCKS.HEADING_1]: getRichTextNodeRenderer(components.H1),\n      [BLOCKS.HEADING_2]: getRichTextNodeRenderer(components.H2),\n      [BLOCKS.HEADING_3]: getRichTextNodeRenderer(components.H3),\n      [BLOCKS.HEADING_4]: getRichTextNodeRenderer(components.H4),\n      [BLOCKS.HEADING_5]: getRichTextNodeRenderer(components.H5),\n      [BLOCKS.HEADING_6]: getRichTextNodeRenderer(components.H6),\n      [BLOCKS.HR]: getRichTextNodeRenderer(components.HorizontalRule),\n      [BLOCKS.LIST_ITEM]: getRichTextNodeRenderer(components.ListItem),\n      [BLOCKS.PARAGRAPH]: getRichTextNodeRenderer(components.Paragraph),\n      // TODO: This should be using the Quote component.\n      [BLOCKS.QUOTE]: defaultNodeRenderer,\n      [BLOCKS.UL_LIST]: getRichTextNodeRenderer(components.UnorderedList),\n      [BLOCKS.OL_LIST]: getRichTextNodeRenderer(components.OrderedList),\n      [INLINES.ASSET_HYPERLINK]: hyperlinkedAssetNodeRenderer,\n      [INLINES.ENTRY_HYPERLINK]: hyperlinkedEntryNodeRenderer,\n      [INLINES.EMBEDDED_ENTRY]: inlineEmbeddedEntryNodeRenderer,\n      [INLINES.HYPERLINK]: getRichTextNodeRenderer(components.Hyperlink),\n      // TODO: Upgrade to Contentful v16 to enable \"table\" enums\n      table: getRichTextNodeRenderer(components.Table),\n      'table-cell': getRichTextNodeRenderer(components.TableCell),\n      'table-header-cell': getRichTextNodeRenderer(components.TableHeader),\n      'table-row': getRichTextNodeRenderer(components.TableRow),\n    },\n  };\n};\n\n/**\n * Creater a render for rich text.\n *\n * TODO: We shouldn't support \"string\" as input type here. This only happens when we haven't updated\n * the interfaces to reflect the type of data that is coming from contentful.\n */\nexport const createRichTextRenderer =\n  (props: RenderTextProps) =>\n  (data: RenderData): React.ReactNode => {\n    const { components = {} } = props;\n\n    if (!data) {\n      return undefined;\n    }\n\n    if (typeof data === 'string') {\n      return data;\n    }\n\n    const options = getRichTextOptions({\n      data,\n      components,\n    });\n\n    return documentToReactComponents(data.json, options);\n  };\n", "/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  while (++index < length) {\n    var value = array[index];\n    setter(accumulator, value, iteratee(value), array);\n  }\n  return accumulator;\n}\n\nexport default arrayAggregator;\n", "import baseEach from './_baseEach.js';\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n  baseEach(collection, function(value, key, collection) {\n    setter(accumulator, value, iteratee(value), collection);\n  });\n  return accumulator;\n}\n\nexport default baseAggregator;\n", "import arrayAggregator from './_arrayAggregator.js';\nimport baseAggregator from './_baseAggregator.js';\nimport baseIteratee from './_baseIteratee.js';\nimport isArray from './isArray.js';\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n  return function(collection, iteratee) {\n    var func = isArray(collection) ? arrayAggregator : baseAggregator,\n        accumulator = initializer ? initializer() : {};\n\n    return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n  };\n}\n\nexport default createAggregator;\n", "import baseAssignValue from './_baseAssignValue.js';\nimport createAggregator from './_createAggregator.js';\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n *   { 'dir': 'left', 'code': 97 },\n *   { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n *   return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\nvar keyBy = createAggregator(function(result, value, key) {\n  baseAssignValue(result, key, value);\n});\n\nexport default keyBy;\n", "import type { Asset, Slug } from '@snapchat/mw-contentful-schema';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport { Config } from '../../config';\nimport { logError } from '../../helpers/logging';\nimport { Hyperlink } from './Hyperlink';\n\ntype AssetEntryHyperlink = {\n  item: Asset | Slug;\n};\n\nexport const AssetEntryHyperlink: FC<PropsWithChildren<AssetEntryHyperlink>> = props => {\n  const { item, children } = props;\n\n  const typename = item.__typename;\n\n  // We should only get Asset and Slugs, but not all spaces/models have that validation\n  const notAcceptedTypes = typename !== 'Slug' && typename !== 'Asset';\n  const slugNoUrl = typename === 'Slug' && !item.slug;\n  const assetNoUrl = typename === 'Asset' && !item.url;\n\n  if (!typename || notAcceptedTypes || slugNoUrl || assetNoUrl) {\n    logError({\n      component: 'AssetEntryLink',\n      message: 'Invalid data for hyperlink',\n      context: { sysId: item.sys.id },\n    });\n\n    return null;\n  }\n\n  let url = '';\n\n  if (item.__typename === 'Slug') {\n    url = `https://${Config.domainName}/${item.slug}`;\n  }\n\n  if (item.__typename === 'Asset' && item.url) {\n    url = item.url;\n  }\n\n  return <Hyperlink uri={url}>{children}</Hyperlink>;\n};\n\nAssetEntryHyperlink.displayName = 'AssetEntryHyperlink';\n", "import type { FC, PropsWithChildren, ReactElement } from 'react';\nimport { Suspense, useEffect, useState } from 'react';\n\nexport const SuspenseWrapper: FC<PropsWithChildren<{ fallbackElement?: ReactElement }>> = ({\n  children,\n  fallbackElement = null,\n}) => {\n  const [isServer, setIsServer] = useState(true);\n\n  useEffect(() => {\n    setIsServer(false);\n  }, []);\n\n  if (isServer) {\n    return fallbackElement;\n  }\n\n  return <Suspense fallback={fallbackElement}>{children}</Suspense>;\n};\n", "import { lazyComponent } from '@snapchat/mw-common/client';\nimport type { CodeProps } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { SuspenseWrapper } from '../SuspenseWrapper';\n\nconst LazyCode = lazyComponent(() =>\n  import('./LazyCode').then(module => ({ default: module.Code }))\n);\n\nexport const Code: FC<CodeProps> = props => (\n  <SuspenseWrapper>\n    <LazyCode {...props} />\n  </SuspenseWrapper>\n);\n\nCode.displayName = 'Code';\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nexport const fragments = {\n  all: gql`\n    fragment CodeAll on Code {\n      ...ContentfulSysId\n      code\n      language\n    }\n    ${contentfulSysIdFragment}\n  `,\n};\n", "import { Definition as DefinitionSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useCallback, useContext, useEffect, useMemo, useRef } from 'react';\n\nimport { renderRichTextWithElements } from '../../utils/renderText/renderRichText';\nimport { DefinitionContext } from './DefinitionContext';\nimport type { DefinitionProps } from './types';\n\nexport const Definition: FC<DefinitionProps> = ({\n  displayText,\n  fullText,\n  anchorId,\n  overlayTitle,\n  overlayBody,\n  className,\n}) => {\n  const { open, close, triggerRef } = useContext(DefinitionContext);\n  const ref = useRef<HTMLButtonElement>(null);\n  const isActive = ref === triggerRef;\n\n  const content = useMemo(\n    () => ({\n      title: overlayTitle ?? displayText,\n      body: overlayBody ?? renderRichTextWithElements(fullText),\n    }),\n    [displayText, fullText, overlayTitle, overlayBody]\n  );\n\n  useEffect(() => {\n    if (anchorId && window.location.hash === `#${anchorId}`) {\n      open(content, ref);\n    }\n\n    // We only want to fire this once\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  const handleClick = useCallback(() => {\n    if (isActive) {\n      close();\n\n      // Remove hash from url\n      const url = new URL(window.location.href);\n      url.hash = '';\n      window.history.replaceState(null, '', url);\n    } else {\n      open(content, ref);\n\n      // Add hash to url\n      const url = new URL(window.location.href);\n      url.hash = anchorId ? `#${anchorId}` : ''; // If no anchor id, remove hash\n      window.history.replaceState(null, '', url);\n    }\n  }, [isActive, anchorId, content, ref, open, close]);\n\n  // If no display text then do not render anything, as nothing to show\n  if (!displayText) return null;\n\n  // If no full text then just render the display text\n  if (!fullText) return <>{displayText}</>;\n\n  return (\n    <DefinitionSDS\n      ref={ref}\n      anchorId={anchorId}\n      isActive={isActive}\n      onClick={handleClick}\n      className={className}\n    >\n      {displayText}\n    </DefinitionSDS>\n  );\n};\n\nDefinition.displayName = 'Definition';\n", "import type { FC, PropsWithChildren, ReactNode, RefObject } from 'react';\nimport { createContext, useState } from 'react';\n\ninterface DefinitionContent {\n  title: ReactNode;\n  body: ReactNode;\n}\n\ninterface DefinitionContextProps {\n  isOpen: boolean;\n  open: ({ title, body }: DefinitionContent, ref: RefObject<HTMLElement>) => void;\n  close: () => void;\n  content?: DefinitionContent;\n  triggerRef?: RefObject<HTMLElement>;\n}\n\nconst defaultContext: DefinitionContextProps = {\n  isOpen: false,\n  open: () => {},\n  close: () => {},\n};\n\nexport const DefinitionContext = createContext(defaultContext);\n\nexport const DefinitionProvider: FC<PropsWithChildren> = ({ children }) => {\n  const [isOpen, setIsOpen] = useState(false);\n  const [content, setContent] = useState<DefinitionContent | undefined>();\n  const [triggerRef, setTriggerRef] = useState<RefObject<HTMLElement> | undefined>();\n\n  const open = ({ title, body }: DefinitionContent, ref: RefObject<HTMLElement>) => {\n    setContent({ title, body });\n    setTriggerRef(ref);\n    setIsOpen(true);\n  };\n\n  const close = () => {\n    setContent(undefined);\n    setTriggerRef(undefined);\n    setIsOpen(false);\n  };\n\n  return (\n    <DefinitionContext.Provider value={{ isOpen, open, close, content, triggerRef }}>\n      {children}\n    </DefinitionContext.Provider>\n  );\n};\n", "import { SideOverlay as SideOverlaySDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC, KeyboardEvent, MouseEvent } from 'react';\nimport { useContext } from 'react';\n\nimport { DefinitionContext } from './DefinitionContext';\nimport type { DefinitionOverlayProps } from './types';\n\nexport const DefinitionOverlay: FC<DefinitionOverlayProps> = ({ className }) => {\n  const { isOpen, close, content, triggerRef } = useContext(DefinitionContext);\n\n  const handleClose = (e: MouseEvent | KeyboardEvent) => {\n    // Return focus to the trigger element only if using keyboard navigation\n    // Do before before calling 'close()', which removes the trigger element from state\n    if (['Enter', ' '].includes((e as KeyboardEvent)?.key)) {\n      e.preventDefault(); // Prevent browser page-down action on spacebar press\n      triggerRef?.current?.focus();\n    }\n\n    close();\n\n    // Note: using `useHistory` causes a re-render so the element loses focus\n    // so using `window.history` directly instead to remove hash from url\n    const url = new URL(window.location.href);\n    url.hash = '';\n    window.history.replaceState(null, '', url);\n  };\n\n  return (\n    <SideOverlaySDS\n      isOpen={isOpen}\n      title={content?.title}\n      body={content?.body}\n      onClose={handleClose}\n      className={className}\n    />\n  );\n};\n\nDefinitionOverlay.displayName = 'DefinitionOverlay';\n", "import { css } from '@emotion/css';\n\nexport const footnoteInlineNoDisplayTextCss = css`\n  padding-bottom: 0;\n`;\n\nexport const footnoteInlineSuperscriptCss = css`\n  font-size: 10px;\n  line-height: 18px;\n`;\n\nexport const footnoteInlineSuperscriptOverlayCss = css`\n  float: left;\n  font-size: 10px;\n  line-height: 20px;\n  margin-inline-end: 0.125em;\n`;\n", "import { Superscript } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { renderRichTextWithElements } from '../../utils/renderText/renderRichText';\nimport { Definition } from '../Definition';\nimport {\n  footnoteInlineNoDisplayTextCss,\n  footnoteInlineSuperscriptCss,\n  footnoteInlineSuperscriptOverlayCss,\n} from './FootnoteInline.styles';\nimport type { FootnoteInlineProps } from './types';\n\nexport const FootnoteInline: FC<FootnoteInlineProps> = ({\n  number,\n  displayText,\n  fullText,\n  ...props\n}) => {\n  const footnoteDisplayText = (\n    <>\n      {displayText}\n      {/* Note: The whitespace before \"index\" is important. It ensures that the browser never considers\n      the footnote index as a part of the footnote content (i.e. \"children\"). This can happen if\n      the footnote content ends with a roman numeral (i.e. 1, 2, 3 etc...) and causes problems\n      in RTL locales */}\n      <span className={footnoteInlineSuperscriptCss}>\n        <Superscript> {number}</Superscript>\n      </span>\n    </>\n  );\n\n  const overlayBody = (\n    <div>\n      {/* Note: The whitespace after \"index\" is important. It ensures that the browser never considers\n      the footnote index as a part of the footnote content (i.e. \"children\"). This can happen if\n      the footnote content begins with a roman numeral (i.e. 1, 2, 3 etc...) and causes problems\n      in RTL locales */}\n      <span className={footnoteInlineSuperscriptOverlayCss}>\n        <Superscript>{number} </Superscript>\n      </span>\n      {renderRichTextWithElements(fullText)}\n    </div>\n  );\n\n  return (\n    <Definition\n      {...props}\n      displayText={footnoteDisplayText}\n      fullText={fullText}\n      overlayTitle=\"\"\n      overlayBody={overlayBody}\n      className={!displayText ? footnoteInlineNoDisplayTextCss : undefined}\n    />\n  );\n};\n\nFootnoteInline.displayName = 'FootnoteInline';\n", "import type { ImageSources } from '@snapchat/mw-contentful-client';\n\nimport { ScreenSize } from '../styles/screenSizes';\n\n/** Combines mobile and desktop sources so they can be used together in one <picture> element. */\nexport function combineImageSources(sources: {\n  desktop?: ImageSources;\n  mobile?: ImageSources;\n}): ImageSources | undefined {\n  if (!sources.mobile) return sources.desktop;\n\n  if (!sources.desktop) return undefined;\n\n  return {\n    sources: [\n      // List mobile sources first, but set the media query.\n      ...sources.mobile.sources.map(source => ({\n        ...source,\n        media: source.media ?? `(max-width: ${ScreenSize.width_768_desktop_small}px)`,\n      })),\n      ...sources.desktop.sources,\n    ],\n    // TODO: Pass-in isMobile flag to choose between desktop or mobile for the default.\n    // Defaults are reading from desktop.\n    default: sources.desktop.default,\n    defaultSrcSet: sources.desktop.defaultSrcSet,\n    defaultSizes: sources.desktop.defaultSizes,\n  };\n}\n", "import type { MediaDataProps } from '../components/Media';\nimport type { MediaSds } from '../types/Media';\n\nexport const parseMedia = (media?: MediaDataProps | null): MediaSds => {\n  if (!media || !media.url) {\n    return {};\n  }\n\n  if (media.contentType.startsWith('video')) {\n    return { videoSource: media.url };\n  }\n\n  if (media.contentType.startsWith('image')) {\n    return {\n      imageSource: media.url,\n      imageAltText: media.description,\n      imageSize: {\n        height: media.height,\n        width: media.width,\n      },\n    };\n  }\n\n  return {};\n};\n", "import { getDprSrcSetSettingsByHeight, useContentfulImages } from '@snapchat/mw-contentful-client';\nimport { Media as MediaSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { combineImageSources } from '../../utils/combineImageSources';\nimport { parseMedia } from '../../utils/media';\nimport type { ImageProps } from './types';\n\nexport const imageQuality = {\n  // High quality images based on what we currently have for pixy.com\n  high: 85,\n  // Arrived at this number via manual testing not too far off visually but good savings\n  default: 40,\n  // Arrived at this number via manual testing images are not very clear but huge savings\n  low: 10,\n};\n\n// TODO: Rename to Image and the other to ImageShallow\nexport const Image: FC<ImageProps> = props => {\n  const { quality, dataset } = props;\n  const { imageSource, imageAltText } = parseMedia(props.media);\n  const { imageSource: mobileImageSource } = parseMedia(props.mobileMedia);\n  const { getImageSources } = useContentfulImages();\n\n  const imgSrcs = combineImageSources({\n    desktop: getImageSources(imageSource, {\n      ...getDprSrcSetSettingsByHeight(800, props.media.height ?? 0),\n      quality: imageQuality[quality ?? 'default'],\n    }),\n    mobile: getImageSources(mobileImageSource ?? imageSource, {\n      ...getDprSrcSetSettingsByHeight(800, props.mobileMedia?.height ?? 0),\n      quality: imageQuality[quality ?? 'default'],\n    }),\n  });\n\n  return (\n    <MediaSDS\n      altText={imageAltText}\n      imgSrcs={imgSrcs}\n      wrap={props.wrap ?? undefined}\n      dataset={dataset}\n    />\n  );\n};\n\nImage.displayName = 'Image';\n", "import { gql } from '@apollo/client';\n\nimport { fragments as mediaFragments } from '../Media';\n\nexport const fragments = {\n  all: gql`\n    fragment ImageAll on Image {\n      sys {\n        id\n      }\n      media {\n        ...AssetAll\n      }\n      mobileMedia {\n        ...AssetAll\n      }\n      wrap\n    }\n    ${mediaFragments.all}\n  `,\n};\n\nexport const query = gql`\n  query ImageQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    image(preview: $preview, locale: $locale, id: $id) {\n      ...ImageAll\n    }\n  }\n  ${fragments.all}\n`;\n", "import type { ContentfulSysProps } from '../../types/contentful';\nimport type { ImageDataProps } from './types';\n\nexport const isImageDataProps = (props: ContentfulSysProps): props is ImageDataProps => {\n  return props.__typename === 'Image';\n};\n", "import { gql } from '@apollo/client';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport type { RichText } from '../../types/RichText';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nexport const fragments = {\n  all: gql`\n    fragment CustomerQuoteAll on CustomerQuote {\n      ...ContentfulSysId\n      authorName\n      body {\n        json\n      }\n    }\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport interface CustomerQuoteProps extends ContentfulTypedSysProps<'CustomerQuote'> {\n  authorName: string;\n  body: RichText;\n}\n\nexport const query = gql`\n  query CustomerQuotesQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    customerQuote(preview: $preview, locale: $locale, id: $id) {\n      ...CustomerQuoteAll\n    }\n  }\n  ${fragments.all}\n`;\n\nexport interface CustomerQuoteDataProps extends ContentfulTypedSysProps<'CustomerQuote'> {\n  customerQuote: CustomerQuoteProps;\n}\n", "/**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\nfunction isNull(value) {\n  return value === null;\n}\n\nexport default isNull;\n", "import { Quote as QuoteSDS } from '@snapchat/snap-design-system-marketing';\nimport isNull from 'lodash-es/isNull';\nimport type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { isContentfulShallow } from '../../utils/contentful';\nimport { renderRichTextMultiLineWithMarkings } from '../../utils/renderText/renderRichText';\nimport type { CustomerQuoteDataProps, CustomerQuoteProps } from './query';\nimport { query } from './query';\n\nexport const Quote: FC<CustomerQuoteProps> = props => {\n  const needsLoading = isContentfulShallow(props);\n\n  const { data } = useContentfulQuery<CustomerQuoteDataProps, ContentfulIdVariable>(query, {\n    variables: { id: props.sys.id },\n    skip: !needsLoading,\n  });\n\n  if (needsLoading && !data) return null;\n\n  const { authorName, body } = data?.customerQuote ?? props;\n  return (\n    <QuoteSDS author={isNull(authorName) ? undefined : authorName}>\n      {renderRichTextMultiLineWithMarkings(body)}\n    </QuoteSDS>\n  );\n};\n\nQuote.displayName = 'Quote';\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nexport const snapchatEmbedFragment = gql`\n  fragment SnapchatEmbedAll on SnapchatEmbed {\n    ...ContentfulSysId\n    url\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport const query = gql`\n  query SnapchatEmbedQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    snapchatEmbed(preview: $preview, locale: $locale, id: $id) {\n      ...SnapchatEmbedAll\n    }\n  }\n  ${snapchatEmbedFragment}\n`;\n", "import { SnapchatEmbed as SnapchatEmbedSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport { isContentfulSysProps } from '../../utils/contentful';\nimport { query } from './SnapchatEmbed.query';\n\nexport interface SnapchatEmbedDataProps extends ContentfulSysProps {\n  url: string;\n}\n\nexport const SnapchatEmbedShallow: FC<ContentfulSysProps> = props => {\n  const id = isContentfulSysProps(props) ? props.sys.id : undefined;\n  const { data } = useContentfulQuery<\n    { snapchatEmbed: SnapchatEmbedDataProps },\n    ContentfulIdVariable\n  >(query, {\n    skip: !id,\n    variables: { id },\n  });\n\n  if (!data) return null;\n\n  return <SnapchatEmbedSDS {...data.snapchatEmbed} />;\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as mediaFragments } from '../Media';\n\nexport const fragments = {\n  all: gql`\n    fragment VideoAll on Video {\n      ...ContentfulSysId\n      media {\n        ...AssetAll\n      }\n      mobileMedia {\n        ...AssetAll\n      }\n      thumbnailMedia {\n        ...AssetAll\n      }\n      captions {\n        ...AssetAll\n      }\n      autoPlay\n      wrap\n      externalId\n    }\n    ${mediaFragments.all}\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const query = gql`\n  query VideoQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    video(preview: $preview, locale: $locale, id: $id) {\n      ...VideoAll\n    }\n  }\n  ${fragments.all}\n`;\n", "import type { GetBestImgSrc } from '@snapchat/mw-contentful-client';\nimport { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport type { MediaProps as MediaSDSProps } from '@snapchat/snap-design-system-marketing';\nimport { Media as MediaSDS } from '@snapchat/snap-design-system-marketing';\nimport isNil from 'lodash-es/isNil';\nimport type React from 'react';\nimport type { FC } from 'react';\nimport { useContext, useState } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { UserAction } from '../../types/events';\nimport { isContentfulSysProps } from '../../utils/contentful';\nimport { getFileInfo } from '../../utils/getFileInfo';\nimport { parseMedia } from '../../utils/media';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport { query } from './query';\nimport type { VideoDataHandlerProps, VideoDataProps, VideoProps } from './types';\nimport { getVideoWatchLogger } from './utils';\n\nexport const getMediaProps = (\n  video: VideoDataProps,\n  getBestImgSrc: GetBestImgSrc\n): MediaSDSProps => {\n  const { media, mobileMedia, thumbnailMedia, autoPlay = true, wrap, captions } = video;\n  const { videoSource } = parseMedia(media);\n  const { videoSource: mobileVideoSource } = parseMedia(mobileMedia);\n  const posterSource = getBestImgSrc(video.thumbnailMedia?.url, { width: 728 });\n  return {\n    videoSource,\n    mobileVideoSource,\n    posterSource,\n    showVideoControls: isNil(autoPlay) ? false : !autoPlay,\n    wrap: isNil(wrap) ? undefined : wrap,\n    captionsSource: captions?.url,\n    // if user sets alt text for the thumbnail, use it.  Otherwise use the video description.\n    altText: thumbnailMedia?.description ?? media?.description,\n  };\n};\n\nexport const Video: FC<VideoProps> = props => {\n  const id = isContentfulSysProps(props) ? props.sys.id : undefined;\n  const { data } = useContentfulQuery<VideoDataHandlerProps, ContentfulIdVariable>(query, {\n    skip: !id,\n    variables: { id },\n  });\n  const [videoPlayed, setVideoPlayed] = useState(false);\n  const { getBestBgImgSrc } = useContentfulImages();\n\n  let prevWatchEventTime = -1;\n  const consumerContext = useContext(ConsumerContext);\n  const { logEvent } = consumerContext;\n\n  if (!data) return null;\n  const mediaProps = getMediaProps(data.video, getBestBgImgSrc);\n\n  const { videoSource } = mediaProps;\n\n  const onPlay: React.ReactEventHandler<HTMLVideoElement> = _e => {\n    if (logEvent && videoSource && !videoPlayed) {\n      if (data.video.autoPlay) return; // Skip for auto play videos\n      const { fileName } = getFileInfo(videoSource);\n\n      logEvent({ component: 'Video', type: UserAction.Play, label: fileName });\n      setVideoPlayed(true);\n    }\n  };\n\n  const onTimeUpdate = getVideoWatchLogger({\n    autoPlay: data.video.autoPlay,\n    // Note: should never resolve to 'unknown', implemented to resolve type error\n    eventLabel: data.video.externalId ?? id ?? 'unknown',\n    getPreviousWatchTime: () => {\n      return prevWatchEventTime;\n    },\n    setPreviousWatchTime: value => {\n      prevWatchEventTime = value;\n    },\n  });\n\n  return (\n    <MediaSDS onPlay={onPlay} onTimeUpdate={onTimeUpdate} dataset={props.dataset} {...mediaProps} />\n  );\n};\n\nVideo.displayName = 'Video';\n", "import { getImageUrl } from '@snapchat/mw-contentful-client';\nimport { useIsMobile } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { CallToAction } from '../components/CallToAction/CallToAction';\nimport type { CallToActionDataProps } from '../components/CallToAction/types';\nimport { Code } from '../components/Code';\nimport { Definition } from '../components/Definition';\nimport { FootnoteInline } from '../components/FootnoteInline/FootnoteInline';\nimport { Image } from '../components/Image';\nimport type { MediaProps } from '../components/Media';\nimport { Media } from '../components/Media';\nimport { Quote } from '../components/Quote';\nimport { SnapchatEmbedShallow } from '../components/SnapchatEmbed';\nimport { Video } from '../components/Video';\n\nexport const richTextCtaClassName = 'mwp-cta';\n\nconst EmbeddedMedia: FC<MediaProps> = props => {\n  const isMobile = useIsMobile();\n  const heightPx = isMobile ? 400 : 600;\n  if (!props.url) return null;\n  return (\n    <Media\n      {...props}\n      url={\n        getImageUrl({\n          imageUrl: props.url,\n          settings: {\n            height: heightPx,\n            // TODO: Do the other optimizations here.\n          },\n        })!\n      }\n      isEmbedded\n    />\n  );\n};\n\n// NOTE: There are some props that make this return an invalid ReactNode, so only registering\n// the properties from CallToActionDataProps makes it work.\n//\n// For reference, this is the error that happens on CitizenSnap \"/diversity\" page:\n//     react-jsx-runtime.development.js:124 Warning: React.jsx: type is invalid\n//     -- expected a string (for built-in components) or a class/function (for composite components)\n//     but got: undefined. You likely forgot to export your component from the file it's defined in,\n//      or you might have mixed up default and named imports.\n//\n// This only seems to happen when there's a reference to a CallToAction from a rich text body.\nconst CallToActionWrapper: FC<CallToActionDataProps> = props => {\n  // adding className here so we can target this component via css\n  return <CallToAction {...props} className={richTextCtaClassName} />;\n};\n\n/**\n * Note: All of these components CANNOT reference back to renderText or this file in order to avoid\n * circular dependencies.\n *\n * They should use 'renderRichText' instead which does not allow embedded assets/entries.\n */\nexport const contentfulComponentMap = {\n  FootNotes: FootnoteInline,\n  CustomerQuote: Quote,\n  Asset: EmbeddedMedia,\n  CallToAction: CallToActionWrapper,\n  SnapchatEmbed: SnapchatEmbedShallow,\n  Image,\n  Video,\n  Code,\n  Definition,\n};\n\nexport type ContentfulComponentMap = typeof contentfulComponentMap;\n", "import { css } from '@emotion/css';\nimport type { FC, PropsWithChildren } from 'react';\nimport { Children } from 'react';\n\nconst maxWidthCss = css`\n  max-width: 100%;\n`;\n\n/**\n * Wrapper for the rich text rendering.\n *\n * This is required so that we have a block component that has a static position so that the\n * vertical margins can collapse in its children.\n *\n * TODO: Revisit if we want this behavior. It's possible we can replace this implementation with a\n * <Fragment> instead of a <div> and in flex contexts margins won't collapse.\n */\nexport const RichTextDocument: FC<PropsWithChildren> = ({ children }) => (\n  <div data-test-id=\"mwp-rich-text\" className={maxWidthCss}>\n    {Children.toArray(children)}\n  </div>\n);\n\nconst noMarginCss = css`\n  margin: 0;\n`;\n\nexport const RichTextNoPaddingParagraph: FC<PropsWithChildren> = ({ children }) => {\n  return <p className={noMarginCss}>{Children.toArray(children)}</p>;\n};\n", "import Symbol from './_Symbol.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n  return isArray(value) || isArguments(value) ||\n    !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nexport default isFlattenable;\n", "import arrayPush from './_arrayPush.js';\nimport isFlattenable from './_isFlattenable.js';\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n  var index = -1,\n      length = array.length;\n\n  predicate || (predicate = isFlattenable);\n  result || (result = []);\n\n  while (++index < length) {\n    var value = array[index];\n    if (depth > 0 && predicate(value)) {\n      if (depth > 1) {\n        // Recursively flatten arrays (susceptible to call stack limits).\n        baseFlatten(value, depth - 1, predicate, isStrict, result);\n      } else {\n        arrayPush(result, value);\n      }\n    } else if (!isStrict) {\n      result[result.length] = value;\n    }\n  }\n  return result;\n}\n\nexport default baseFlatten;\n", "import baseFlatten from './_baseFlatten.js';\nimport map from './map.js';\n\n/**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n *   return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\nfunction flatMap(collection, iteratee) {\n  return baseFlatten(map(collection, iteratee), 1);\n}\n\nexport default flatMap;\n", "/* eslint-disable react/jsx-key */\n// biome-ignore lint/suspicious/noShadowRestrictedNames: TODO: See if this is necessary.\nimport flatMap from 'lodash-es/flatMap';\nimport unescape from 'lodash-es/unescape';\nimport type { ReactElement, ReactNode } from 'react';\n\nexport const convertNewLineToBr = (text: string): (string | ReactElement)[] => {\n  return flatMap(text.split('\\n'), (text, i) =>\n    i > 0\n      ? // biome-ignore lint/correctness/useJsxKeyInIterable: key makes it render more newlines than necessary.\n        [<br />, text]\n      : [text]\n  );\n};\n\n// TODO: Remove this hack.\nexport const retainLtrText = (text: string | ReactElement): ReactNode => {\n  if (typeof text === 'string' && text.includes('Snap Inc.')) {\n    return text.split('Snap Inc.').flatMap((textSegment: string, index: number) => {\n      if (index === 0) return [unescape(textSegment)];\n      return [\n        <span dir=\"ltr\" key={textSegment}>\n          Snap Inc.\n        </span>,\n        unescape(textSegment),\n      ];\n    });\n  }\n\n  const textToReturn = typeof text === 'string' ? unescape(text) : text;\n  return [textToReturn];\n};\n\n/**\n * Inserts line breaks where new lines exist and other shananagans.\n *\n * TODO: Remove the ltr hack for snap inc. This code is horrible and should probably be fixed w/\n * non-break word markers instead (i.e. regex replace).\n */\nexport const renderMultiLineText: (text?: string) => ReactNode = (text = '') => {\n  const textWithLineBreaks = convertNewLineToBr(text);\n  const preservedLtrText = flatMap(textWithLineBreaks, retainLtrText);\n  return preservedLtrText;\n};\n", "import { useContext } from 'react';\n\nimport type { ConsumerContextProps } from './ConsumerContextProvider';\nimport { ConsumerContext } from './ConsumerContextProvider';\n\nexport const useConsumerContext = (): ConsumerContextProps => {\n  const context = useContext(ConsumerContext);\n\n  if (context === undefined) {\n    throw new Error('ConsumerContext can only be used in combination with ConsumerProvider');\n  }\n\n  return context;\n};\n", "import { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport { Button as ButtonSDS, ButtonType } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { shouldFlushLogs } from '../../helpers/getLocalPath';\nimport { logger } from '../../helpers/logging';\nimport { UserAction } from '../../types/events';\nimport { renderRichTextMarkingsOnly } from '../../utils/renderText/renderRichText';\nimport { useConsumerContext } from '../useConsumerContext';\nimport type { ButtonData } from './query';\nimport type { ButtonComponentProps } from './types';\n\nexport const Button: FC<ButtonData & ButtonComponentProps> = props => {\n  const {\n    url,\n    onClick,\n    buttonType,\n    title,\n    size,\n    image,\n    iconName,\n    targetAsset,\n    className,\n    buttonTextDataset,\n  } = props;\n  const { logEvent } = useConsumerContext();\n  const { getImageSources } = useContentfulImages();\n\n  const onClickHandler = (): void => {\n    onClick?.(); // Used by CallToAction to log a click on CTA. Kept for legacy reasons.\n    logEvent?.({ type: UserAction.Click, component: 'Button', url });\n\n    if (shouldFlushLogs(url)) {\n      void logger.flush();\n    }\n  };\n\n  const type = buttonType ?? ButtonType.Primary;\n  const imgSrcs = getImageSources(image?.media?.url);\n  return (\n    <ButtonSDS\n      className={className}\n      link={targetAsset?.url ?? url}\n      type={type}\n      onClick={onClickHandler}\n      size={size}\n      iconName={iconName ?? undefined}\n      imgSrcs={imgSrcs}\n      imgAltText={image?.media?.title}\n      buttonTextDataset={buttonTextDataset}\n    >\n      {renderRichTextMarkingsOnly(title)}\n    </ButtonSDS>\n  );\n};\n\nButton.displayName = 'Button';\n", "import { gql } from '@apollo/client';\nimport type { ButtonSize, ButtonType, IconName } from '@snapchat/snap-design-system-marketing';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport type { RichText } from '../../types/RichText';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as imageFragments } from '../Image/query';\nimport type { MediaDataProps } from '../Media';\nimport { fragments as mediaFragments } from '../Media';\n\n// =================================================================================================\n// Button Fragment\n// =================================================================================================\n\nexport const buttonFragment = gql`\n  fragment ButtonAll on Button {\n    ...ContentfulSysId\n    title {\n      json\n    }\n    url\n    targetAsset {\n      ...AssetAll\n    }\n    size\n    buttonType\n    image {\n      ... on Image {\n        ...ImageAll\n      }\n    }\n    iconName\n  }\n  ${mediaFragments.all}\n  ${imageFragments.all}\n  ${contentfulSysIdFragment}\n`;\n\nexport interface ButtonData extends ContentfulTypedSysProps<'Button'> {\n  url?: string;\n  targetAsset?: MediaDataProps;\n  buttonType?: ButtonType;\n  size: ButtonSize;\n  title: RichText;\n  // TODO: Update type to match ImageData.\n  image?: {\n    media: MediaDataProps & {\n      width: number;\n      height: number;\n    };\n  };\n  iconName?: IconName;\n}\n\n// NOTE: No query to load a button separately because when we had it we ended up in a button-loading\n// hell with dozen of separate queries to load individual buttons.\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nexport const fragments = {\n  all: gql`\n    fragment AnalyticsAll on Analytics {\n      ...ContentfulSysId\n      label\n    }\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const query = gql`\n  query AnalyticsQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    analytics(preview: $preview, locale: $locale, id: $id) {\n      ...AnalyticsAll\n    }\n  }\n  ${fragments.all}\n`;\n", "import { gql } from '@apollo/client';\n\nimport type { ContentfulSysProps, ContentfulTypedSysProps } from '../../types/contentful';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as analyticsFragments } from '../Analytics/query';\nimport type { AnalyticsDataProps } from '../Analytics/types';\nimport type { ButtonData } from '../Button';\nimport { buttonFragment } from '../Button';\n\n// ================================================================================================\n// CTA Fragment\n// ================================================================================================\n\nexport const ctaFragment = gql`\n  fragment CallToActionAll on CallToAction {\n    ...ContentfulSysId\n    analytics {\n      ...AnalyticsAll\n    }\n    presentation {\n      ... on Entry {\n        ...ContentfulSysId\n      }\n      ... on Button {\n        ...ButtonAll\n      }\n    }\n    url\n  }\n  ${buttonFragment}\n  ${contentfulSysIdFragment}\n  ${analyticsFragments.all}\n`;\n\nexport interface CtaData extends ContentfulTypedSysProps<'CallToAction'> {\n  analytics: AnalyticsDataProps;\n  presentation: ContentfulSysProps | ButtonData;\n  url?: string;\n}\n\nexport const query = gql`\n  query CallToActionQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    callToAction(preview: $preview, locale: $locale, id: $id) {\n      ...CallToActionAll\n    }\n  }\n  ${ctaFragment}\n`;\n", "import { cx } from '@emotion/css';\nimport { getDprSrcSetSettingsByHeight, useContentfulImages } from '@snapchat/mw-contentful-client';\nimport type { Content as ContentType } from '@snapchat/mw-contentful-schema';\nimport type { Buttons } from '@snapchat/snap-design-system-marketing';\nimport {\n  Content as ContentSDS,\n  Media,\n  SnapchatEmbed as SnapchatEmbedSDS,\n} from '@snapchat/snap-design-system-marketing';\nimport isNil from 'lodash-es/isNil';\nimport type { FC, ReactEventHandler, ReactNode } from 'react';\nimport { useContext, useState } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { UserAction } from '../../types/events';\nimport { combineImageSources } from '../../utils/combineImageSources';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport { getFileInfo } from '../../utils/getFileInfo';\nimport { parseMedia } from '../../utils/media';\nimport {\n  getRichTextWithEmbeddingsRenderer,\n  renderRichTextMultiLineWithMarkings,\n} from '../../utils/renderText/renderRichText';\nimport { CallToAction } from '../CallToAction';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport type { ImageDataProps } from '../Image/types';\nimport { LazyImageButton } from '../ImageButton/LazyImageButton';\nimport type { SnapchatEmbedDataProps } from '../SnapchatEmbed';\nimport type { VideoDataProps } from '../Video/types';\nimport { getVideoWatchLogger } from '../Video/utils';\nimport { mediaOnlyCss, mediaStylesCss } from './Content.styles';\nimport type { ContentDataProps } from './types';\n\nexport const Content: FC<ContentDataProps> = props => {\n  const [videoPlayed, setVideoPlayed] = useState(false);\n  const { getImageSources } = useContentfulImages();\n  const consumerContext = useContext(ConsumerContext);\n  const { isRTL } = useContext(AppContext);\n\n  const { logEvent } = consumerContext;\n\n  const {\n    sys,\n    mediaWrap,\n    showVideoControls,\n    layout,\n    mediaDirection,\n    displayOn,\n    asset,\n    title,\n    subtitle,\n    titleAlignment,\n    titleAlignmentMobile,\n    showFullResolutionMedia,\n    body,\n    bodyAlignment,\n    bodyAlignmentMobile,\n    callsToActionCollection,\n    theme,\n    backgroundColor,\n    anchorId,\n    animationsCollection,\n    useHeadingTagsForBody,\n    collapseMobileTable,\n  } = props;\n\n  const hasText = title || subtitle || body;\n  const isMediaOnly = asset && !hasText;\n\n  const renderBody = getRichTextWithEmbeddingsRenderer(useHeadingTagsForBody, collapseMobileTable);\n\n  const assetMedia = (asset as ImageDataProps | VideoDataProps)?.media;\n  const mobileAssetMedia = (asset as ImageDataProps | VideoDataProps)?.mobileMedia;\n\n  const { imageSource, imageAltText, videoSource, imageSize } = parseMedia(assetMedia);\n  const { imageSource: mobileImageSource, videoSource: mobileVideoSource } =\n    parseMedia(mobileAssetMedia);\n\n  const inspectorDataset = getContentfulInspectorProps<ContentType>({\n    entryId: sys.id,\n    fieldIds: ['body', 'title', 'subtitle', 'asset'],\n  });\n\n  const callsToAction: Buttons = [];\n\n  if (callsToActionCollection?.items) {\n    for (const callToAction of callsToActionCollection.items) {\n      if (callToAction.__typename === 'ImageButton') {\n        callsToAction.push(<LazyImageButton key={callToAction.sys.id} {...callToAction} />);\n      } else if (callToAction.__typename === 'CallToAction') {\n        callsToAction.push(<CallToAction key={callToAction.sys.id} {...callToAction} />);\n      }\n    }\n  }\n\n  const defaultHeight =\n    showFullResolutionMedia && imageSize?.height ? imageSize.height : isMediaOnly ? 600 : 400;\n  const imgSrcSetSettings = getDprSrcSetSettingsByHeight(defaultHeight, imageSize?.height ?? 0);\n\n  const imgSrcs = combineImageSources({\n    desktop: getImageSources(imageSource, imgSrcSetSettings),\n    mobile: getImageSources(mobileImageSource /* TODO(kpan2): Mobile image settings */),\n  });\n\n  const mediaHeight = Math.min(imageSize?.height ?? defaultHeight, defaultHeight);\n\n  let prevWatchEventTime = -1;\n\n  const onPlay: ReactEventHandler<HTMLVideoElement> = () => {\n    if (logEvent && videoSource && !videoPlayed) {\n      if ((asset as VideoDataProps).autoPlay) return; // Skip for auto play videos\n      const { fileName } = getFileInfo(videoSource);\n      logEvent({ type: UserAction.Play, component: 'Content', label: fileName });\n      setVideoPlayed(true);\n    }\n  };\n\n  let assetChild: ReactNode = undefined;\n\n  if (asset) {\n    const typeName = asset.__typename;\n\n    const onTimeUpdate = getVideoWatchLogger({\n      autoPlay: (asset as VideoDataProps).autoPlay,\n      eventLabel: (asset as VideoDataProps).externalId ?? asset?.sys.id,\n      getPreviousWatchTime: () => {\n        return prevWatchEventTime;\n      },\n      setPreviousWatchTime: value => {\n        prevWatchEventTime = value;\n      },\n    });\n\n    if (typeName === 'Video' || typeName === 'Image') {\n      const assetMediaWrap = (asset as ImageDataProps | VideoDataProps).wrap;\n      const { thumbnailMedia, captions, autoPlay, media } = asset as VideoDataProps;\n      const videoAltText = thumbnailMedia?.description ?? media.description;\n\n      const { imageSource: posterSource } = parseMedia(thumbnailMedia);\n      const showVideoControlsFinal = showVideoControls ?? (isNil(autoPlay) ? false : !autoPlay);\n\n      // we only want strict hieght for images that are taller than they are wide, as the opposite\n      // needs to dynamically set its height based on its dynamic width.\n      const isStrictHeight =\n        typeName === 'Image' && (imageSize?.height ?? 0) > (imageSize?.width ?? 0);\n      const mediaClassName = cx({\n        [mediaOnlyCss]: !showFullResolutionMedia && isMediaOnly,\n        [mediaStylesCss]: !showFullResolutionMedia && !isMediaOnly,\n        'strict-height': !showFullResolutionMedia && isStrictHeight,\n      });\n\n      assetChild = (\n        <Media\n          className={mediaClassName}\n          style={{ '--mediaHeight': `${mediaHeight}px` }}\n          altText={imageAltText ?? videoAltText}\n          imgSrcs={imgSrcs}\n          posterSource={posterSource}\n          // TODO: Deprecate `mediaWrap` in Content and remove its references.\n          wrap={assetMediaWrap ?? mediaWrap}\n          dataset={inspectorDataset.assetDataset}\n          imageSource={imageSource}\n          showVideoControls={showVideoControlsFinal}\n          videoSource={videoSource}\n          mobileVideoSource={mobileVideoSource}\n          onPlay={onPlay}\n          onTimeUpdate={onTimeUpdate}\n          captionsSource={captions?.url}\n        />\n      );\n    } else if (typeName === 'SnapchatEmbed') {\n      assetChild = (\n        <SnapchatEmbedSDS\n          {...(asset as SnapchatEmbedDataProps)}\n          dataset={inspectorDataset.assetDataset}\n        />\n      );\n    }\n  }\n\n  const animations = animationsCollection?.items.map(item => ({\n    delay: item.keyframes.delay,\n    duration: item.keyframes.duration,\n    name: item.keyframes.sys.id,\n    direction: item.keyframes.direction,\n    timingFunction: item.keyframes.timingFunction,\n    iterationCount: item.keyframes.iterationCount,\n    transformOrigin: item.keyframes.transformOrigin,\n    target: item.target,\n  }));\n\n  // NOTE: The underlying component can only handle 'undefined' but not 'null', so we coerce the values here.\n  return (\n    <ContentSDS\n      title={renderRichTextMultiLineWithMarkings(title)}\n      subtitle={renderRichTextMultiLineWithMarkings(subtitle)}\n      titleAlignment={titleAlignment ?? undefined}\n      titleAlignmentMobile={titleAlignmentMobile}\n      body={renderBody(body)}\n      layout={layout}\n      mediaDirection={mediaDirection}\n      bodyAlignment={bodyAlignment ?? undefined}\n      bodyAlignmentMobile={bodyAlignmentMobile}\n      callsToAction={callsToAction}\n      displayOn={displayOn ?? undefined}\n      backgroundColor={backgroundColor ?? theme}\n      anchorId={anchorId}\n      animations={animations}\n      isRTL={isRTL}\n      asset={assetChild}\n      {...inspectorDataset}\n    />\n  );\n};\n\nContent.displayName = 'Content';\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport type { MediaDataProps } from '../Media';\nimport { fragments as mediaFragments } from '../Media';\n\nexport const imageButtonFragment = gql`\n  fragment ImageButtonAll on ImageButton {\n    ...ContentfulSysId\n    url\n    height\n    width\n    image {\n      ...AssetAll\n    }\n  }\n\n  ${contentfulSysIdFragment}\n  ${mediaFragments.all}\n`;\n\nexport const query = gql`\n  query ImageButtonQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    imageButton(preview: $preview, locale: $locale, id: $id) {\n      ...ImageButtonAll\n    }\n  }\n\n  ${imageButtonFragment}\n`;\n\nexport interface ImageButtonData {\n  imageButton: {\n    url: string;\n    image: MediaDataProps;\n    height: number;\n    width: number;\n  };\n}\n", "import { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport { ImageButton as ImageButtonSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { ContentfulSysId } from '../../utils/contentful/contentfulQuery';\nimport { parseMedia } from '../../utils/media';\nimport type { ImageButtonData } from './imageButtonQuery';\nimport { query } from './imageButtonQuery';\n\nexport const LazyImageButton: FC<ContentfulSysId> = props => {\n  const { data } = useContentfulQuery<ImageButtonData, ContentfulIdVariable>(query, {\n    variables: { id: props.sys.id },\n  });\n  const { getImageSources } = useContentfulImages();\n\n  if (!data?.imageButton) return null;\n\n  const {\n    imageButton: { image },\n  } = data;\n\n  const { imageSource, imageAltText } = parseMedia(image);\n  const imgSrcs = getImageSources(imageSource);\n  return <ImageButtonSDS {...data.imageButton} imgSrcs={imgSrcs} altText={imageAltText} />;\n};\n", "import { css } from '@emotion/css';\nimport { mobileMediaQuery, nonMobileMediaQuery } from '@snapchat/snap-design-system-marketing';\n\nexport const mediaStylesCss = css`\n  max-width: 100%;\n  max-height: 400px;\n\n  /* only do non mobile for now as we break rendering images that are very wide */\n  ${nonMobileMediaQuery} {\n    &.strict-height {\n      height: var(--mediaHeight);\n    }\n  }\n`;\n\nexport const mediaOnlyCss = css`\n  margin-bottom: inherit;\n  max-height: 600px;\n\n  ${nonMobileMediaQuery} {\n    &.strict-height {\n      height: var(--mediaHeight);\n    }\n  }\n\n  ${mobileMediaQuery} {\n    max-width: 100%;\n    height: inherit;\n  }\n`;\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\n// ================================================================================================\n// Definition Fragment\n// ================================================================================================\n\nexport const definitionFragment = gql`\n  fragment DefinitionAll on Definition {\n    ...ContentfulSysId\n    displayText\n    fullText {\n      json\n    }\n    anchorId\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport const query = gql`\n  query DefinitionQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    Definition(preview: $preview, locale: $locale, id: $id) {\n      ...DefinitionAll\n    }\n  }\n  ${definitionFragment}\n`;\n", "import { Footnote as FootnoteSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { renderRichTextWithElements } from '../../utils/renderText/renderRichText';\nimport type { FootnoteProps } from './types';\n\nexport const Footnote: FC<FootnoteProps> = props => {\n  const { number, fullText } = props;\n\n  if (!fullText) return null;\n\n  return <FootnoteSDS index={String(number)}>{renderRichTextWithElements(fullText)}</FootnoteSDS>;\n};\n\nFootnote.displayName = 'Footnote';\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nexport const fragments = {\n  all: gql`\n    fragment FootNotesAll on FootNotes {\n      ...ContentfulSysId\n      number\n      displayText\n      fullText {\n        json\n      }\n      anchorId\n    }\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const query = gql`\n  query FootNotesQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    footNotes(preview: $preview, locale: $locale, id: $id) {\n      ...FootNotesAll\n    }\n  }\n  ${fragments.all}\n`;\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as animationsFragments } from '../Animations/query';\nimport { ctaFragment } from '../CallToAction/query';\nimport { fragments as codeFragments } from '../Code';\nimport { definitionFragment } from '../Definition/query';\nimport { fragments as footnoteFragments } from '../Footnote';\nimport { fragments as imageFragments } from '../Image';\nimport { assetFragment } from '../Media';\nimport { fragments as quoteFragments } from '../Quote';\nimport { snapchatEmbedFragment } from '../SnapchatEmbed';\nimport { fragments as videoFragments } from '../Video';\n\nexport const contentAssetFragment = gql`\n  fragment ContentAssetAll on ContentAsset {\n    ...ContentfulSysId\n    ... on Video {\n      ...VideoAll\n    }\n    ... on Image {\n      ...ImageAll\n    }\n    ... on SnapchatEmbed {\n      ...SnapchatEmbedAll\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${imageFragments.all}\n  ${videoFragments.all}\n  ${snapchatEmbedFragment}\n`;\n\nexport const fragments = {\n  all: gql`\n    fragment ContentAll on Content {\n      ...ContentfulSysId\n      title {\n        json\n      }\n      subtitle {\n        json\n      }\n      # CTA Collection limit has to be 3 or less for GraphQL query complexity issues.\n      callsToActionCollection(limit: 3) {\n        items {\n          ... on CallToAction {\n            ...CallToActionAll\n          }\n          ... on ImageButton {\n            ...ContentfulSysId\n          }\n        }\n      }\n      showVideoControls\n      mediaWrap\n      layout\n      mediaDirection\n      titleAlignment\n      titleAlignmentMobile\n      bodyAlignment\n      bodyAlignmentMobile\n      useHeadingTagsForBody\n      collapseMobileTable\n      showFullResolutionMedia\n      displayOn\n      theme\n      backgroundColor\n      anchorId\n      asset {\n        ...ContentAssetAll\n      }\n      # Limit to 6 =  maximum number of targets + the container\n      animationsCollection(limit: 6) {\n        items {\n          ... on ContentAnimation {\n            ...ContentAnimationAll\n          }\n        }\n      }\n      body {\n        json\n        # TODO: There's an inline expansion into embedded content. Consider lazy-loading this\n        # to reduce the query complexity for the typical use-case.\n        links {\n          entries {\n            block {\n              ...ContentfulSysId\n              ... on CustomerQuote {\n                ...CustomerQuoteAll\n              }\n              ... on CallToAction {\n                ...CallToActionAll\n              }\n              ... on Code {\n                ...CodeAll\n              }\n              ... on Image {\n                ...ImageAll\n              }\n            }\n            inline {\n              ...ContentfulSysId\n              ... on FootNotes {\n                ...FootNotesAll\n              }\n              ... on CustomerQuote {\n                ...CustomerQuoteAll\n              }\n              ... on CallToAction {\n                ...CallToActionAll\n              }\n              ... on Definition {\n                ...DefinitionAll\n              }\n            }\n            hyperlink {\n              ...ContentfulSysId\n              ... on Slug {\n                slug\n              }\n            }\n          }\n          assets {\n            block {\n              ...AssetAll\n            }\n            hyperlink {\n              ...AssetAll\n            }\n          }\n        }\n      }\n    }\n    ${assetFragment}\n    ${ctaFragment}\n    ${footnoteFragments.all}\n    ${definitionFragment}\n    ${quoteFragments.all}\n    ${videoFragments.all}\n    ${imageFragments.all}\n    ${codeFragments.all}\n    ${animationsFragments.contentAll}\n    ${contentAssetFragment}\n  `,\n\n  media: gql`\n    fragment ContentMedia on Content {\n      ...ContentfulSysId\n      title {\n        json\n      }\n      asset {\n        ...ContentAssetAll\n      }\n    }\n    ${contentfulSysIdFragment}\n    ${contentAssetFragment}\n  `,\n};\n\nexport const queries = {\n  all: gql`\n    query ContentQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      content(preview: $preview, locale: $locale, id: $id) {\n        ...ContentAll\n      }\n    }\n    ${fragments.all}\n  `,\n};\n", "import { gql } from '@apollo/client';\nimport type { Alignment, BackgroundColor } from '@snapchat/snap-design-system-marketing';\n\nimport type { ContentfulSysProps, ContentfulTypedSysProps } from '../../types/contentful';\nimport type { Items } from '../../types/Items';\nimport type { RichText } from '../../types/RichText';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { ctaFragment } from '../CallToAction';\nimport type { CallToActionDataProps } from '../CallToAction/types';\nimport type { CarouselV3DataProps } from '../CarouselV3';\nimport type { ContentDataProps } from '../Content';\nimport { fragments as contentFragments } from '../Content';\nimport type { FormDataProps } from '../Form';\nimport type { LazyGalleryProps } from '../Gallery';\nimport type { ImageDataProps } from '../Image';\nimport { fragments as imageFragments } from '../Image';\nimport { fragments as assetsFragments } from '../Media';\nimport type { MosaicProps } from '../Mosaic';\nimport type { TabsDataProps } from '../Tabs';\nimport { fragments as videoFragments } from '../Video';\nimport type { VideoDataProps } from '../Video/types';\nimport type { BarChartDataProps } from '../visualizations/BarChart';\nimport type { GeoMapDataProps } from '../visualizations/GeoMap';\nimport type { LineChartDataProps } from '../visualizations/LineChart';\nimport type { MultiVisualizationDataProps } from '../visualizations/MultiVisualization';\nimport type { TableVisualizationDataProps } from '../visualizations/Table';\n\n// =================================================================================================\n// Block All Fragment\n// =================================================================================================\n\nexport const blockAllFragment = gql`\n  fragment BlockAll on Block {\n    ...ContentfulSysId\n    anchorId\n    theme\n    backgroundColor\n    backgroundMediaV2 {\n      __typename\n      ... on Video {\n        ...VideoAll\n      }\n      ... on Image {\n        ...ImageAll\n      }\n    }\n    showCurtain\n    eyebrow\n    title {\n      json\n    }\n    subtitle {\n      json\n    }\n    titleAlignment\n    titleAlignmentMobile\n    maxColumns\n    isNarrow\n    widthStyle\n    fullHeight\n    contentsCollection(limit: 15) {\n      items {\n        ...ContentfulSysId\n      }\n    }\n    callsToActionCollection(limit: 9) {\n      items {\n        ... on CallToAction {\n          ...CallToActionAll\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${ctaFragment}\n  ${assetsFragments.all}\n  ${videoFragments.all}\n  ${imageFragments.all}\n`;\n\n// TODO: Convert all of these to shallow.\nexport type BlockContentType =\n  | ContentDataProps\n  | LazyGalleryProps\n  | CarouselV3DataProps\n  | FormDataProps\n  | TabsDataProps\n  | BarChartDataProps\n  | LineChartDataProps\n  | GeoMapDataProps\n  | MosaicProps\n  | MultiVisualizationDataProps\n  | TableVisualizationDataProps;\n\nexport type ShallowContent = ContentfulSysProps;\n\nexport interface BlockDataProps extends ContentfulTypedSysProps<'Block'> {\n  eyebrow?: string;\n  title?: RichText | string; // TODO: This should be just richText\n  subtitle?: RichText | string; // TODO: This should be just richText\n  titleAlignment?: Alignment;\n  titleAlignmentMobile?: Alignment;\n  maxColumns?: 1 | 2 | 3;\n  theme?: BackgroundColor;\n  backgroundColor: BackgroundColor;\n  backgroundMediaV2?: VideoDataProps | ImageDataProps;\n  showCurtain?: boolean;\n  callsToActionCollection: Items<CallToActionDataProps>;\n  contentsCollection?: Items<ShallowContent>;\n  anchorId?: string;\n  isNarrow?: boolean;\n  widthStyle?: string;\n  fullHeight?: boolean;\n  isPreviousSameBackgroundColor?: boolean;\n  isNextSameBackgroundColor?: boolean;\n  className?: string;\n  // TODO expose in Contentful\n  skipBreakTemplate?: boolean;\n}\n\n// =================================================================================================\n// Block Preview Fragment\n// =================================================================================================\n\nexport const blockPreviewFragment = gql`\n  fragment BlockPreview on Block {\n    ...ContentfulSysId\n    title {\n      json\n    }\n    contentsCollection(limit: 5) {\n      items {\n        ... on Content {\n          ...ContentMedia\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${contentFragments.media}\n`;\n\n// =================================================================================================\n// Block Shallow Fragment\n// =================================================================================================\n\n/** This shallow fragment does load ids of it's children so that we can preload them. */\nexport const blockFragmentShallow = gql`\n  fragment BlockShallow on Block {\n    ...ContentfulSysId\n    contentsCollection(limit: 15) {\n      items {\n        ...ContentfulSysId\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport interface BlockShallowWithContentIds extends ContentfulTypedSysProps<'Block'> {\n  contentsCollection: Items<ContentfulSysProps>;\n}\n\nexport type BlockShallowDataProps = ContentfulSysProps | BlockShallowWithContentIds;\n\n// =================================================================================================\n// Block All Query\n// =================================================================================================\n\nexport const query = gql`\n  query BlockQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    block(preview: $preview, locale: $locale, id: $id) {\n      ...BlockAll\n    }\n  }\n  ${blockAllFragment}\n`;\n\nexport interface BlockDataHandlerProps {\n  block: BlockDataProps;\n}\n", "import type { DocumentNode } from '@apollo/client';\nimport { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { blockFragmentShallow } from '../Block/query';\nimport type { PageSitemapData } from '../Page/pageQuery';\n\n// =================================================================================================\n// Experiment Filter Fragment\n// =================================================================================================\n\nexport type ExperimentFilterAction = 'Allow' | 'Deny';\n\nexport const criteriaFragment = gql`\n  fragment CriteriaAll on Criteria {\n    ...ContentfulSysId\n    trafficRangeStart\n    trafficRangeEnd\n    countryAction\n    countries\n    languageAction\n    languages\n    deviceAction\n    devices\n    platformAction\n    platforms\n  }\n  ${contentfulSysIdFragment}\n`;\n\n// =================================================================================================\n// Experiment Sitemap Fragment\n// =================================================================================================\n\n/**\n * Experiment Query optimized for generating site map data.\n *\n * NOTE: we do not apply any expiriment logic when generating site maps. Intead we only reference\n * the default page content.\n */\nexport const experimentSitemapFragment = gql`\n  fragment SiteMapExperiment on Experiment {\n    sys {\n      id\n    }\n    defaultReference {\n      ...SiteMapPage\n    }\n  }\n`;\n\n/** Experiment content model optimized for generating site map data. */\nexport type ExperimentSitemapData = {\n  __typename?: 'Experiment';\n  sys: {\n    id: string;\n  };\n  defaultReference?: PageSitemapData;\n};\n\n// =================================================================================================\n// Create Experiment Fragment function.\n// =================================================================================================\n\n/**\n * I will probably regret this one day, but this helper function generates a fragment for getting\n * experiment data for a given fragment on a particular data type.\n *\n * Sample usage:\n *\n *     const fooQuery = gql`\n *         fragment FooShallow on Foo {\n *           bar {\n *             ...ExperimentOn[Bar]Loading[BarFragment]\n *           }\n *         }\n *         ${createExperimentFragment('Bar', 'BarFragment', someBarFragment)}\n *       `;\n */\nexport function createExperimentFragmentWithAbReplacements(\n  entryType: string,\n  fragmentName: string,\n  fragment: DocumentNode,\n  armLimit = 10\n): DocumentNode {\n  return gql`\n    fragment ExperimentOn${entryType}Loading${fragmentName} on Entry {\n      ... on ${entryType} {\n        ...${fragmentName}\n      }\n      ... on Experiment {\n        ...ContentfulSysId\n        defaultReference {\n          ...${fragmentName}\n        }\n        experimentArmsCollection(limit: ${armLimit}) {\n          items {\n            ...ContentfulSysId\n            reference {\n              ...${fragmentName}\n            }\n            criteria {\n              ...CriteriaAll\n            }\n            abExperimentsCollection(limit: ${armLimit}) {\n              items {\n                ...ContentfulSysId\n                analyticsId\n                seed\n                reference {\n                  ...ContentfulSysId\n                }\n                abVariantsCollection(limit: 5) {\n                  items {\n                    ...ContentfulSysId\n                    replacement {\n                      ...ContentfulSysId\n                      ... on Page {\n                        blocksCollection(limit: 10) {\n                          items {\n                            ...ContentfulSysId\n                            ... on Block {\n                              ...BlockShallow\n                            }\n                          }\n                        }\n                      }\n                      ... on Block {\n                        ...ContentfulSysId\n                        contentsCollection(limit: 10) {\n                          items {\n                            ...ContentfulSysId\n                          }\n                        }\n                      }\n                    }\n                    trafficStartRange\n                    trafficEndRange\n                    analyticsId\n                  }\n                }\n              }\n            }\n            analyticsId\n          }\n        }\n        analyticsId\n      }\n    }\n    ${blockFragmentShallow}\n    ${contentfulSysIdFragment}\n    ${criteriaFragment}\n    ${fragment}\n  `;\n}\n\nexport function createExperimentFragmentNoAb(\n  entryType: string,\n  fragmentName: string,\n  fragment: DocumentNode,\n  armLimit = 10\n): DocumentNode {\n  return gql`\n    fragment ExperimentOn${entryType}Loading${fragmentName} on Entry {\n      ... on ${entryType} {\n        ...${fragmentName}\n      }\n      ... on Experiment {\n        ...ContentfulSysId\n        defaultReference {\n          ...${fragmentName}\n        }\n        experimentArmsCollection(limit: ${armLimit}) {\n          items {\n            ...ContentfulSysId\n            reference {\n              ...${fragmentName}\n            }\n            criteria {\n              ...CriteriaAll\n            }\n            analyticsId\n          }\n        }\n        analyticsId\n      }\n    }\n    ${contentfulSysIdFragment}\n    ${criteriaFragment}\n    ${fragment}\n  `;\n}\n", "import type { AbVariant, Criteria, Experiment } from '@snapchat/mw-contentful-schema';\nimport { BrowserFeaturesContext } from '@snapchat/snap-design-system-marketing';\nimport kebabCase from 'lodash-es/kebabCase';\nimport { useCallback, useContext } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { logEvent, logInfo, SubscribedEventType } from '../../helpers/logging';\nimport type { AbExperimentDecider } from '../../hooks/useAbExperiments';\nimport { useAbExperiments } from '../../hooks/useAbExperiments';\nimport { type SingleCallbackFn, useSingleCallback } from '../../hooks/useSingleCallback';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport type { BlockShallowWithContentIds } from '../Block';\nimport type { PageShallowDataProps } from '../Page';\n\n// =================================================================================================\n// Controls\n// =================================================================================================\nconst printDebugStatements = false;\n\nfunction printDebugSkip(\n  analyticsId: string | undefined,\n  what: string | number,\n  where: Array<string> | Array<number> | undefined,\n  action: string | undefined\n) {\n  if (!printDebugStatements) return;\n  analyticsId ??= 'synthetic';\n  action ??= 'Allow';\n\n  console.debug(\n    `Criteria not applicable for arm '${analyticsId}' because of check ` +\n      `'${what}' in '${where}' has action '${action}'.`\n  );\n}\n\n// =================================================================================================\n// Interfaces\n// =================================================================================================\n\nexport interface CriteriaDecisionProps {\n  /**\n   * Snap standard locale code in format language-COUNTRY Where langauge is one of the\n   * https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes And country is one of the alpha-2\n   * https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes codes\n   */\n  language: string;\n\n  /** 2-digit country code as in https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes */\n  country: string;\n\n  /**\n   * One of \"Android\", \"Chrome OS\", \"Fuchsia\", \"iOS\", \"Linux\", \"macOS\", \"Windows\", or \"Unknown\". See\n   * spec: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform\n   */\n  platform: 'Android' | 'Chrome OS' | 'Fuchsia' | 'iOS' | 'Linux' | 'macOS' | 'Windows' | 'Unknown';\n\n  /**\n   * Whether the device is mobile or not. Based on \"mobile\" user hints header. See spec:\n   * https://wicg.github.io/ua-client-hints/#sec-ch-ua-mobile\n   */\n  deviceType: 'Mobile' | 'Non-Mobile' | 'Unknown';\n}\n\n// TODO: This shouldn't extend CriteriaDecisionProps at all.\nexport interface ExperimentDecisionProps extends CriteriaDecisionProps {\n  getCurrentUrl: () => string;\n  singleCallback: SingleCallbackFn;\n  decideAbExperiment: AbExperimentDecider;\n}\n\nexport type ReplacementData =\n  | ContentfulSysProps\n  | BlockShallowWithContentIds\n  | PageShallowDataProps;\n\nexport type ReplacementMap = Partial<Record<string, ReplacementData>>;\n\ninterface ExperimentResult<T> {\n  decision: T;\n  experimentId?: string;\n  variantId?: string;\n  replacements?: ReplacementMap;\n}\n\n/**\n * Finds the first experiment arm that matches its criteria, and if all fail returns the default.\n *\n * In absence of an experiment, returns value.\n */\nexport type ExperimentDecider = <T extends ContentfulSysProps>(\n  value: T | Experiment,\n  options: {\n    logImpression: boolean;\n  }\n) => ExperimentResult<T>;\n\n/** Returns TRUE if the passed-in value MATCHES the criteria. */\nexport type CriteriaChecker = (criteria: Criteria | null | undefined) => boolean;\n\n// =================================================================================================\n// Public Experiment API\n// =================================================================================================\n\nexport interface UseExperiment {\n  decideExperiment: ExperimentDecider;\n  // TODO: Move CriteriaChecker into a different hook (useCriteria).\n  checkCriteria: CriteriaChecker;\n}\n\nexport function useExperiment(): UseExperiment {\n  const { currentLocale, userLocation, getCurrentUrl } = useContext(AppContext);\n  const browserFeatures = useContext(BrowserFeaturesContext);\n  const singleCallback = useSingleCallback();\n  const decideAbExperiment = useAbExperiments();\n\n  const language = currentLocale ?? 'Unknown';\n  const country = userLocation.country ?? 'Unknown';\n  const platform = browserFeatures.getLowEntropyHints().platform ?? 'Unknown';\n  const deviceType = browserFeatures.getLowEntropyHints().isMobile ? 'Mobile' : 'Non-Mobile';\n\n  const checkCriteria = useCallback(\n    (value: Criteria | null | undefined) => {\n      return doesPassCriteria(value, { language, country, platform, deviceType });\n    },\n    [language, country, platform, deviceType]\n  );\n\n  const decideExperiment = useCallback<ExperimentDecider>(\n    (value, options) => {\n      const context: ExperimentDecisionProps = {\n        language,\n        country,\n        platform,\n        deviceType,\n        singleCallback,\n        getCurrentUrl,\n        decideAbExperiment,\n      };\n\n      return decideExperimentImpl(value, context, options);\n    },\n    [language, country, platform, deviceType, singleCallback, decideAbExperiment, getCurrentUrl]\n  );\n\n  return {\n    decideExperiment,\n    checkCriteria,\n  };\n}\n\n/**\n * Returns the default value of an experiment or the only value without the experiment wrapper.\n *\n * NOTE: Use this very sparingly. This is only applicable in situations where nothing sensitive can\n * be shown to the user. I.e. If an experiment has a filter to not show sensitive material in Saudi\n * Arabia, we cannot use this method if it can show bad material to our users.\n *\n * Otherwise use the {@link decideExperimentImpl} and provide the correct context.\n */\nexport function getExperimentDefault<T extends ContentfulSysProps>(value: T | Experiment): T {\n  // If not an experiment, return.\n  if (value.__typename !== 'Experiment') {\n    return value as T;\n  }\n  const experiment = value as Experiment;\n  return experiment.defaultReference as unknown as T;\n}\n\n/**\n * Returns whether the action check fails.\n *\n * Usage:\n *\n * If (doesFailCheck(check)) { fail condition here }\n */\nconst doesFailCheck = (array: string[] | undefined, value: string, action?: string): boolean => {\n  action ??= 'Allow'; // Works for nulls.\n\n  // Fail if we have an allow-list, and current value isn't on it.\n  if (action === 'Allow' && array && !array.includes(value)) return true;\n\n  // Fail if we have a block-list and the current value is on it.\n  if (action === 'Deny' && array?.includes(value)) return true;\n  // Otherwise return 'false' as in 'check did not fail'.\n  return false;\n};\n\nexport function doesPassCriteria(\n  criteria: Criteria | null | undefined,\n  props: CriteriaDecisionProps,\n  analyticsId?: string\n): boolean {\n  if (!criteria) return true;\n\n  // Check countries.\n  if (doesFailCheck(criteria.countries, props.country, criteria.countryAction)) {\n    printDebugSkip(analyticsId, props.country, criteria.countries, criteria.countryAction);\n    return false;\n  }\n\n  // Check languages.\n  if (doesFailCheck(criteria.languages, props.language, criteria.languageAction)) {\n    printDebugSkip(analyticsId, props.language, criteria.languages, criteria.languageAction);\n    return false;\n  }\n\n  // Check platforms.\n  if (doesFailCheck(criteria.platforms, props.platform, criteria.platformAction)) {\n    printDebugSkip(analyticsId, props.platform, criteria.platforms, criteria.platformAction);\n    return false;\n  }\n\n  // Check devices.\n  if (doesFailCheck(criteria.devices, props.deviceType, criteria.deviceAction)) {\n    printDebugSkip(analyticsId, props.deviceType, criteria.devices, criteria.deviceAction);\n    return false;\n  }\n\n  // If none of the checks failed, then the criteria has passed.\n  return true;\n}\n\n/**\n * Evaluates the experiment and finds the first arm for which criteria passes. If no arms pass, uses\n * the default reference.\n */\nexport function decideExperimentImpl<T extends ContentfulSysProps>(\n  value: T | Experiment,\n  props: ExperimentDecisionProps,\n  options: Parameters<ExperimentDecider>[1]\n): ExperimentResult<T> {\n  // If not an experiment, return.\n  if (value.__typename !== 'Experiment') {\n    // we fire this log event to show that there was no experiment on this page\n    // this is useful for clearing experiment data on certain listeners (like Blizzard)\n    // Google and GoogleCloud listeners ignore this event\n    options.logImpression &&\n      logEvent({\n        subscribedEventType: SubscribedEventType.EXPERIMENT_IMPRESSION,\n        experimentId: undefined,\n        variantId: undefined,\n      });\n\n    return { decision: value as T };\n  }\n  const experiment = value as Experiment;\n\n  let chosenArmAnalyticsId = 'default';\n  let reference = experiment.defaultReference;\n  const replacements: ReplacementMap = {};\n  const singleCallback = props.singleCallback;\n\n  for (const arm of experiment.experimentArmsCollection?.items ?? []) {\n    if (!arm.criteria) continue;\n\n    const armHasAbExperiment = (arm.abExperimentsCollection?.items.length ?? 0) > 0;\n\n    const passCriteria = doesPassCriteria(arm.criteria, props, arm.analyticsId);\n\n    if (!passCriteria) continue;\n\n    reference = arm.reference;\n    chosenArmAnalyticsId = arm.analyticsId ?? chosenArmAnalyticsId;\n\n    if (armHasAbExperiment && arm.abExperimentsCollection?.items.length) {\n      const abExperiments = arm.abExperimentsCollection.items;\n\n      // for every experiment on the page\n      for (const abExperiment of abExperiments) {\n        const entryToReplace = abExperiment.reference?.sys.id;\n        let madeReplacement = false;\n        if (!entryToReplace) continue;\n        const { isThinking, decision: experimentArm } = props.decideAbExperiment<AbVariant>({\n          seed: abExperiment.seed ?? abExperiment.sys.id,\n          variants: abExperiment.abVariantsCollection?.items,\n        });\n\n        if (experimentArm) {\n          // If replacement is a Page, this is a page swap so just change the reference to the replacement\n          if (experimentArm.replacement?.__typename === 'Page') {\n            reference = experimentArm.replacement;\n            // The replacement is at the entry level, and the replacement entry exists\n          } else if (experimentArm.replacement) {\n            replacements[entryToReplace] = {\n              ...experimentArm.replacement,\n            };\n            // The replacement is at the entry level, but the replacement entry does not exist so we set it to undefined\n            // this will let the components know to not render the entryToReplace\n          } else {\n            replacements[entryToReplace] = undefined;\n          }\n\n          // Log Exposure for the variant swap\n          singleCallback({\n            key: 'useExperimentVariantSwap',\n            callback: () =>\n              logInfo({\n                eventCategory: 'Experiment',\n                eventAction: 'experimentExposure',\n                eventLabel: `${chosenArmAnalyticsId}:${abExperiment.analyticsId}:${experimentArm.analyticsId}`,\n              }),\n            dependencies: [\n              chosenArmAnalyticsId,\n              abExperiment.analyticsId,\n              experimentArm.analyticsId,\n            ],\n          });\n\n          madeReplacement = true;\n        }\n\n        // no replacements were made, so we log an exposure for the default (control)\n        if (!isThinking && !madeReplacement) {\n          // Log event into GA to record that experiment decisions happen. This also goes to Blizard.\n          singleCallback({\n            key: 'useExperimentDefault',\n            callback: () =>\n              logInfo({\n                eventCategory: 'Experiment',\n                eventAction: 'experimentExposure',\n                eventLabel: `${chosenArmAnalyticsId}:${abExperiment.analyticsId}:default`,\n              }),\n            dependencies: [chosenArmAnalyticsId, abExperiment.analyticsId],\n          });\n        }\n      }\n    }\n    break;\n  }\n\n  // Log event into GA to record that experiment decisions happen. This also goes to Blizard.\n  singleCallback({\n    key: 'useExperiment',\n    callback: () =>\n      logInfo({\n        eventCategory: 'Experiment',\n        eventAction: 'useExperiment',\n        eventLabel: `${kebabCase(experiment.analyticsId ?? '')}:${kebabCase(chosenArmAnalyticsId)}`,\n      }),\n    dependencies: [experiment.analyticsId, chosenArmAnalyticsId],\n  });\n\n  // Log event through GTag into Google Optimize for report generation.\n  options.logImpression &&\n    singleCallback({\n      key: 'experimentImpression',\n      callback: () =>\n        logEvent({\n          subscribedEventType: SubscribedEventType.EXPERIMENT_IMPRESSION,\n          experimentId: experiment.analyticsId ?? 'Unknown',\n          variantId: chosenArmAnalyticsId,\n        }),\n      dependencies: [experiment.analyticsId, chosenArmAnalyticsId],\n    });\n\n  return {\n    decision: reference as unknown as T,\n    experimentId: experiment.analyticsId,\n    variantId: chosenArmAnalyticsId,\n    replacements,\n  };\n}\n", "import { useAsyncData } from '@snapchat/async-data-browser';\nimport isNil from 'lodash-es/isNil';\nimport { useCallback, useContext, useState } from 'react';\n\nimport type { UserInfo } from '../AppContext';\nimport { AppContext } from '../AppContext';\nimport { Config } from '../config';\nimport { userBucketCount } from '../constants/experiments';\nimport { UrlParameter } from '../constants/urlParameters';\nimport { logger } from '../helpers/logging';\nimport { adler32 } from '../utils/adler32';\n\nconst component = 'useAbExperiments';\n\nexport interface AbExperiment<V extends AbVariant> {\n  seed: string;\n  default?: V;\n  variants?: V[];\n}\n\nexport interface AbVariant {\n  trafficStartRange?: number;\n  trafficEndRange?: number;\n}\n\nexport type AbExperimentDecider = <V extends AbVariant>(\n  ab: AbExperiment<V>\n) => {\n  isThinking: boolean;\n  decision: V | undefined;\n};\n\n/**\n * Hook that returns helper functions for working with AB Experiments.\n *\n * The ab experiment functions, when triggerred have side-effects like reading/setting cookies or\n * making RPC requets, so they should be called conditionally on them being needed.\n */\nexport function useAbExperiments(): AbExperimentDecider {\n  const { getUserInfo, getCurrentUrl } = useContext(AppContext);\n\n  const [needsDecision, setNeedsDecision] = useState(false);\n\n  // NOTE: Calling getUserFactory reads and writes cookies, which means that it makes the\n  // render ineligible for server-side rendering. This is why it's called very-very conditionally.\n\n  const { data: userInfo } = useAsyncData({\n    skip: !needsDecision, // Skip loading if we don't need the decision.\n    dataId: 'userInfo', // Has to be the same as in other places to hit cache.\n    dataAsync: getUserInfo,\n    onError: error => logger.logError({ component, error }),\n  });\n\n  const decideAbExperiment = useCallback<AbExperimentDecider>(\n    ab => {\n      // Signals to load the userInfo.\n      !needsDecision && setNeedsDecision(true);\n      return decideAbExperimentImpl(ab, { userInfo, getCurrentUrl });\n    },\n    [needsDecision, getCurrentUrl, userInfo]\n  );\n\n  return decideAbExperiment;\n}\n\n/**\n * Internal helper function with the business logic.\n *\n * Extracted for testing purposes.\n */\nexport const decideAbExperimentImpl = <V extends AbVariant>(\n  ab: AbExperiment<V>,\n  context: { userInfo?: UserInfo; getCurrentUrl: () => string }\n): { isThinking: boolean; decision: V | undefined } => {\n  const { userInfo, getCurrentUrl } = context;\n\n  // User info not loaded yet. Don't make a decision yet.\n  if (!userInfo) {\n    return { isThinking: true, decision: undefined };\n  }\n\n  const seededBucket = userInfo.experimentBucket.id + ab.seed;\n  const userBucket = adler32(seededBucket) % userBucketCount;\n  let userTrafficPercentile = (userBucket / userBucketCount) * 100;\n\n  // Override userBucket via URL parameter for testing purposes.\n  if (!Config.isDeploymentTypeProd) {\n    const url = new URL(getCurrentUrl());\n    const userBucketParameter = url.searchParams.get(UrlParameter.EXPERIMENTS_USER_BUCKET);\n    const userBucket = userBucketParameter ? Number.parseInt(userBucketParameter) : undefined;\n\n    if (userBucket !== undefined && userBucket >= 0 && userBucket <= 100) {\n      userTrafficPercentile = userBucket;\n    }\n  }\n\n  if (!ab.variants) return { isThinking: false, decision: ab.default };\n\n  for (const variant of ab.variants) {\n    // Skip variants without limits.\n    if (isNil(variant.trafficStartRange) || isNil(variant.trafficEndRange)) continue;\n\n    // If variant matches population criteria,\n    if (\n      variant.trafficStartRange <= userTrafficPercentile &&\n      variant.trafficEndRange >= userTrafficPercentile\n    ) {\n      return { isThinking: false, decision: variant };\n    }\n  }\n\n  return { isThinking: false, decision: ab.default };\n};\n", "import { userBucketCount } from '../constants/experiments';\n\n/**\n * Simple hash function that turns a string into a number. Roughly based on\n * https://en.wikipedia.org/wiki/Adler-32\n */\nexport const adler32 = (source: string): number => {\n  let alpha = 0;\n  let beta = 0;\n\n  for (let i = 0; i < source.length; i++) {\n    alpha = (alpha + source.charCodeAt(i)) % userBucketCount;\n    beta = (beta + i * source.charCodeAt(i)) % userBucketCount;\n  }\n\n  return alpha + beta;\n};\n", "import { createContext, useCallback, useContext } from 'react';\n\nimport type { SingleCallbackArgs, SingleCallbackCache } from '../utils/singleCallback';\nimport { singleCallback } from '../utils/singleCallback';\n\nexport const SingleCallbackCacheContext = createContext<SingleCallbackCache>(new Map());\n\nexport type SingleCallbackFn = (args: Omit<SingleCallbackArgs, 'cache'>) => void;\n\n/** A hook wrapper around `singleCallback` that allows scoped calling history. */\nexport function useSingleCallback(): SingleCallbackFn {\n  const cache = useContext(SingleCallbackCacheContext);\n  const singleCallbackInternal = useCallback<SingleCallbackFn>(\n    args => singleCallback({ ...args, cache }),\n    [cache]\n  );\n\n  return singleCallbackInternal;\n}\n", "/** Type of a dependency that shouldn't occupy too much room in RAM. */\ntype Dep = WeakRef<object> | string | number | boolean | undefined;\n\nexport type SingleCallbackCache = Map<string, Dep[][]>;\n\n/**\n * A BAD polyfill for the WeakRef class that never lets go of it's references which causes a memory\n * leak, but it's better than crashing the page.\n */\nclass WeakRefPolyfill<T extends object> implements WeakRef<T> {\n  private static readonly tag = 'WeakRef' as const;\n\n  private readonly ref: T;\n\n  constructor(ref: T) {\n    this.ref = ref;\n  }\n\n  deref = (): T => this.ref;\n\n  get [Symbol.toStringTag]() {\n    return WeakRefPolyfill.tag;\n  }\n}\n\nexport interface SingleCallbackArgs {\n  key: string;\n  callback: () => void;\n  dependencies: unknown[];\n  cache: SingleCallbackCache;\n}\n\n/** How many items to store key invocation key. */\nconst maxHistory = 50;\n\nfunction areEqual(deps: unknown[], previousDeps: Dep[]): boolean {\n  if (deps.length !== previousDeps.length) {\n    return false;\n  }\n\n  return deps.every((dep, i) => {\n    const previousDep = previousDeps[i];\n\n    if (typeof previousDep === 'object' && previousDep !== null && 'deref' in previousDep) {\n      return dep === previousDep.deref();\n    }\n\n    return dep === previousDep;\n  });\n}\n\nfunction mapDep(dep: unknown): Dep {\n  if (typeof dep === 'object' && dep !== null) {\n    return WeakRef ? new WeakRef(dep) : new WeakRefPolyfill(dep);\n  }\n\n  if (typeof dep === 'string' || typeof dep === 'number' || typeof dep === 'boolean') {\n    return dep;\n  }\n\n  return String(dep);\n}\n\n/**\n * Runs a function only once for a given set of dependencies.\n *\n * This is similar to `useImperativeEffect` but for use in places where hooks are disallowed or are\n * not practical.\n */\nexport function singleCallback({ key, callback, dependencies, cache }: SingleCallbackArgs): void {\n  if (!cache.has(key)) {\n    cache.set(key, []);\n  }\n\n  const previousCalls = cache.get(key)!;\n\n  if (previousCalls.some(previous => areEqual(dependencies, previous))) {\n    return;\n  }\n\n  if (previousCalls.length >= maxHistory) {\n    previousCalls.shift();\n  }\n\n  previousCalls.push(dependencies.map(mapDep));\n\n  callback();\n}\n", "import { css } from '@emotion/css';\nimport { m, nonMobileMediaQuery } from '@snapchat/snap-design-system-marketing';\n\n/**\n * Helps center logos vertically by ensuring wrapping <picture/> element is the same height as the\n * rendered image\n */\nexport const socialPictureCss = css`\n  display: flex;\n`;\n\nexport const socialAnchorCss = css`\n  display: flex;\n  align-items: center;\n`;\n\nexport const logoWrapperCss = css`\n  padding-block-end: ${m('--spacing-xs')};\n\n  ${nonMobileMediaQuery} {\n    padding-block-end: 0;\n  }\n`;\n", "import type {\n  FooterGroup as CustomFooterGroup,\n  FooterGroupItemsItem as CustomFooterGroupItems,\n} from '@snapchat/mw-contentful-schema';\nimport type {\n  CustomFooterGroupProps as GlobalCustomFooterGroupProps,\n  FooterGroupItem as GlobalFooterGroupItemProp,\n} from '@snapchat/mw-global-components';\n\nconst convertToGenericProps = (\n  item: CustomFooterGroupItems,\n  cookieSettingsUrl: string\n): GlobalFooterGroupItemProp | undefined => {\n  if (item.__typename === 'FooterCookiesSettingsLink') {\n    return {\n      id: item.sys.id,\n      title: item.title ?? '',\n      url: cookieSettingsUrl,\n    };\n  }\n\n  if (item.__typename === 'FooterLocaleDropdown') {\n    return undefined;\n  }\n\n  if (item.__typename === 'FooterItem') {\n    if (!item.url || !item.title) {\n      return undefined;\n    }\n\n    return {\n      analyticsLabel: item?.analytics?.label,\n      id: item.sys.id,\n      title: item.title,\n      url: item.url,\n    };\n  }\n\n  return undefined;\n};\n\nexport const filterCriteria = (\n  filterFunc: (item: CustomFooterGroupItems | CustomFooterGroup) => boolean,\n  cookieSettingsUrl: string,\n  collection?: CustomFooterGroup[]\n): GlobalCustomFooterGroupProps[] => {\n  if (!collection || !collection.length) {\n    return [];\n  }\n\n  const filterAndMapItems = (items: CustomFooterGroupItems[]): GlobalFooterGroupItemProp[] => {\n    return items.reduce((outputItems, inputItem) => {\n      if (filterFunc(inputItem)) {\n        const genericItem = convertToGenericProps(inputItem, cookieSettingsUrl);\n\n        if (genericItem) {\n          outputItems.push(genericItem);\n        }\n      }\n\n      return outputItems;\n    }, [] as GlobalFooterGroupItemProp[]);\n  };\n\n  const filterAndMapGroups = (groups: CustomFooterGroup[]): GlobalCustomFooterGroupProps[] => {\n    return groups.reduce((outputGroups, inputGroup) => {\n      if (filterFunc(inputGroup)) {\n        // if missing any key data, skip this group\n        if (!inputGroup.groupKey || !inputGroup.itemsCollection?.items) {\n          return outputGroups;\n        }\n\n        outputGroups.push({\n          items: filterAndMapItems(inputGroup.itemsCollection.items),\n          title: inputGroup.title ?? '',\n          groupKey: inputGroup.groupKey,\n        });\n      }\n\n      return outputGroups;\n    }, [] as GlobalCustomFooterGroupProps[]);\n  };\n\n  return filterAndMapGroups(collection);\n};\n", "import type { FC } from 'react';\n\nimport { Config } from '../../config';\nimport { AvalonChatWidget } from '../../sites/avalon/components/AvalonChatWidget/AvalonChatWidget';\n\n/**\n * Global components hard-coded to a specific site.\n *\n * This was build for the omnipresent chat widget for the avalon site.\n *\n * Only add similar use-cases here.\n */\nexport const HardcodedComponents: FC = () => {\n  switch (Config.site) {\n    case 'avalon': {\n      return <AvalonChatWidget />;\n    }\n    default:\n      return null;\n  }\n};\n", "import { cx } from '@emotion/css';\nimport { GlobalHeader } from '@snapchat/mw-global-components';\nimport type {\n  BackgroundColor,\n  GlobalHeaderNavItemAlignment,\n} from '@snapchat/snap-design-system-marketing';\nimport { globalHeaderHeight } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport { useLocation } from 'react-router-dom';\n\nimport { Config } from '../../config';\nimport type { MarketingWebConfiguration } from '../../configTypes';\nimport { HeaderView, PageLayoutContext } from '../../context/PageLayoutContext';\nimport { SitewideConfigurationContext } from '../../context/SitewideConfiguration/SitewideConfigurationContext';\nimport { Anchor } from '../Anchor';\nimport { CartIcon } from '../Cart';\nimport { useExperiment } from '../Experiment';\nimport { Feature, useFeatureFlags } from '../FeatureFlags';\nimport { DisplayRegion, GlobalHeaderCta } from '../GlobalHeaderCta/GlobalHeaderCta';\nimport { GlobalHeaderLogo } from '../GlobalHeaderLogo';\nimport { GlobalHeaderSearch } from '../GlobalHeaderSearch';\nimport { LocalNavDesktop } from '../LocalNavDesktop';\nimport { LocalNavMobile } from '../LocalNavMobile/LocalNavMobile';\nimport { useConsumerContext } from '../useConsumerContext';\nimport {\n  globalHeaderSearchContainerDesktopOpenCss,\n  globalHeaderSearchContainerMobileCss,\n  headerContainerCss,\n  noMarginCss,\n  searchOpenCss,\n  siteNameCss,\n} from './Header.styles';\nimport { convertToPathAwareNavItems } from './headerPathUtils';\nimport { HeaderPortal } from './HeaderPortal';\nimport { setHeaderHeight, totalHeaderHeightCssVar } from './headerSizeUtils';\n\ntype Props = {\n  config: MarketingWebConfiguration;\n};\n\nexport const Header: FC<Props> = ({ config }) => {\n  const [searchOpen, setSearchOpen] = useState(false);\n  const location = useLocation();\n  const { checkCriteria } = useExperiment();\n  const { headerView, headerBackgroundColorOverride } = useContext(PageLayoutContext);\n  const { sitewideValues } = useContext(SitewideConfigurationContext);\n  const featureFlags = useFeatureFlags();\n  const enableSearchFeature = featureFlags[Feature.ENABLE_SITE_SEARCH] === 'true';\n\n  const { isUrlCurrent } = useConsumerContext();\n\n  const localNavProps = sitewideValues?.navigationBar;\n\n  const callsToActionCollection = localNavProps?.callsToActionCollection;\n  const navigatorItemsCollection = localNavProps?.navigatorItemsCollection;\n  const hasCtas = callsToActionCollection?.items.length;\n  const pathAwareNavItems = convertToPathAwareNavItems(\n    navigatorItemsCollection?.items,\n    isUrlCurrent,\n    checkCriteria\n  );\n\n  const headerContainerRef = useRef<HTMLDivElement>(null);\n\n  const resizeObserver = useMemo(() => {\n    // attach resize observer on client\n    if (typeof window !== 'undefined') {\n      let lastSize = globalHeaderHeight;\n      return new ResizeObserver(entries => {\n        const { height } = entries[0]!.contentRect;\n\n        if (lastSize !== height) {\n          lastSize = height;\n          document.documentElement.style.setProperty(totalHeaderHeightCssVar, `${height}px`);\n        }\n      });\n    }\n    // sets value for the variable being used in renderHtml to put that value on the root element during SSR\n    setHeaderHeight(globalHeaderHeight);\n\n    return undefined;\n    // we disable here because we only want it to run once on mount (on ssr and on client)\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  useEffect(() => {\n    if (headerContainerRef.current && resizeObserver) {\n      resizeObserver.observe(headerContainerRef.current, { box: 'border-box' });\n\n      return () => {\n        resizeObserver.disconnect();\n      };\n    }\n\n    return;\n  }, [resizeObserver]);\n\n  const endChildren = (\n    <>\n      <GlobalHeaderCta callsToAction={callsToActionCollection?.items} />\n      <HeaderPortal className={noMarginCss} />\n      {Config.shopify && <CartIcon />}\n    </>\n  );\n\n  if (headerView === HeaderView.NO_HEADER) {\n    return null;\n  }\n\n  // In Order: value from Contentful > value from site Config > default value\n  const siteName = localNavProps?.title ?? config.globalNavProps?.siteName ?? '';\n\n  if (headerView === HeaderView.SIMPLE_HEADER || headerView === HeaderView.MINIMIZED_HEADER) {\n    return (\n      <GlobalHeader\n        siteName={headerView === HeaderView.SIMPLE_HEADER && siteName}\n        backgroundColor={\n          headerBackgroundColorOverride ??\n          (localNavProps?.backgroundColor as BackgroundColor) ??\n          undefined\n        }\n        logo={<GlobalHeaderLogo />}\n        pathname={location.pathname}\n        showGlobalLinks={false}\n        showNavScreen={false}\n        cta={headerView === HeaderView.MINIMIZED_HEADER && endChildren}\n      />\n    );\n  }\n\n  const siteNameLink = (\n    <Anchor href={localNavProps?.url} className={siteNameCss}>\n      {siteName}\n    </Anchor>\n  );\n\n  const shouldRenderSearch = location?.pathname !== '/search' && enableSearchFeature;\n\n  return (\n    <div\n      data-testid=\"mwp-header\"\n      ref={headerContainerRef}\n      className={cx(headerContainerCss, config.headerProps?.className)}\n    >\n      <GlobalHeader\n        {...config.globalNavProps}\n        className={cx(config.globalNavProps?.className, searchOpen ? searchOpenCss : undefined)}\n        siteName={siteNameLink}\n        backgroundColor={\n          headerBackgroundColorOverride ??\n          config.globalNavProps?.backgroundColor ??\n          (localNavProps?.backgroundColor as BackgroundColor) ??\n          undefined\n        }\n        logo={<GlobalHeaderLogo />}\n        cta={endChildren}\n        pathname={location.pathname}\n        localNavDesktop={!searchOpen ? <LocalNavDesktop items={pathAwareNavItems} /> : null}\n        localNavMobile={<LocalNavMobile items={pathAwareNavItems} />}\n        localNavMobileFooter={\n          hasCtas ? (\n            <GlobalHeaderCta\n              callsToAction={callsToActionCollection?.items}\n              displayRegion={DisplayRegion.Screen}\n            />\n          ) : null\n        }\n        search={\n          shouldRenderSearch && <GlobalHeaderSearch key=\"search\" setSearchOpen={setSearchOpen} />\n        }\n        searchOpen={searchOpen}\n        endChildrenDesktopClassName={cx(\n          config.globalNavProps?.endChildrenDesktopClassName,\n          globalHeaderSearchContainerDesktopOpenCss\n        )}\n        endChildrenMobileClassName={cx(\n          config.globalNavProps?.endChildrenMobileClassName,\n          globalHeaderSearchContainerMobileCss\n        )}\n        navItemAlignment={\n          featureFlags[Feature.GLOBAL_NAV_ITEMS_POSITION] as GlobalHeaderNavItemAlignment\n        }\n      />\n    </div>\n  );\n};\n", "import type { NavigationCallToAction } from '@snapchat/mw-contentful-schema';\nimport type React from 'react';\n\nimport { CallToAction } from '../CallToAction';\nimport { DisplayMode } from '../CallToAction/types';\nimport { useExperiment } from '../Experiment';\n\ninterface Props extends NavigationCallToAction {\n  displayMode?: DisplayMode;\n}\n\nexport const NavigationCta: React.FC<Props> = props => {\n  const { checkCriteria } = useExperiment();\n  const { displayMode = DisplayMode.DesktopHeader } = props;\n  // Only render if the displayMode prop matches the Contentful settings\n  const matchesDisplayMode = props.displayModes?.includes(displayMode);\n  // This is mis-named, and the model should be \"showCriteria\". :facepalm:.\n  const shouldShow = !props.hideCriteria || checkCriteria(props.hideCriteria);\n  if (!matchesDisplayMode || !shouldShow) return null;\n  return props.callToAction ? <CallToAction {...props.callToAction} /> : null;\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { ctaFragment } from '../CallToAction/query';\nimport { criteriaFragment } from '../Experiment';\n\n// Uses import { NavigationCallToAction } from '@snapchat/mw-contentful-schema';\nexport const navigationCtaFragment = gql`\n  fragment NavigationCta on NavigationCallToAction {\n    ...ContentfulSysId\n    callToAction {\n      ...CallToActionAll\n    }\n    displayModes\n    hideCriteria {\n      ...CriteriaAll\n    }\n  }\n  ${criteriaFragment}\n  ${contentfulSysIdFragment}\n  ${ctaFragment}\n`;\n\nexport const query = gql`\n  query NavigationCtaQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    cavigationCta(preview: $preview, locale: $locale, id: $id) {\n      ...NavigationCta\n    }\n  }\n  ${navigationCtaFragment}\n`;\n", "import type { NavigatorCallsToActionItem } from '@snapchat/mw-contentful-schema';\nimport { ButtonType, Size, useIsMobile } from '@snapchat/snap-design-system-marketing';\nimport cloneDeep from 'lodash-es/cloneDeep';\nimport type { FC } from 'react';\n\nimport { CallToAction } from '../CallToAction';\nimport { DisplayMode } from '../CallToAction/types';\nimport { NavigationCta } from '../NavigationCta';\n\nexport enum DisplayRegion {\n  Header = 'Header',\n  Screen = 'Screen',\n}\n\ninterface GlobalHeaderCtaProps {\n  // TODO: This should be passed in through the context.\n  displayRegion?: DisplayRegion;\n  callsToAction?: Array<NavigatorCallsToActionItem>;\n}\n\nexport const GlobalHeaderCta: FC<GlobalHeaderCtaProps> = ({\n  displayRegion = DisplayRegion.Header,\n  callsToAction,\n}) => {\n  const isMobile = useIsMobile();\n\n  if (!callsToAction) {\n    return null;\n  }\n\n  let displayMode = DisplayMode.DesktopHeader;\n\n  if (isMobile && displayRegion === DisplayRegion.Header) {\n    displayMode = DisplayMode.MobileHeader;\n  }\n\n  if (isMobile && displayRegion === DisplayRegion.Screen) {\n    displayMode = DisplayMode.MobileScreen;\n  }\n\n  const navigationCta = callsToAction.map(cta => {\n    switch (cta.__typename) {\n      // Are there any setups that dont use this NavCta?\n      case 'NavigationCallToAction': {\n        const ctaProps = cloneDeep(cta);\n        const buttonProps = ctaProps.callToAction?.presentation;\n\n        // if desktop or mobile screeen, use compact buttons\n        if (!isMobile || displayRegion === DisplayRegion.Screen) {\n          buttonProps && (buttonProps.size = Size.Compact);\n        } else {\n          // for mobile header still use flat\n          buttonProps && (buttonProps.buttonType = ButtonType.Flat);\n        }\n\n        return <NavigationCta key={cta.sys.id} {...ctaProps} displayMode={displayMode} />;\n      }\n\n      case 'CallToAction': {\n        const ctaProps = cloneDeep(cta);\n        const buttonProps = ctaProps.presentation;\n\n        // if desktop or mobile screeen, use compact buttons\n        if (!isMobile || displayRegion === DisplayRegion.Screen) {\n          buttonProps && (buttonProps.size = Size.Compact);\n        } else {\n          // for mobile header still use flat\n          buttonProps && (buttonProps.buttonType = ButtonType.Flat);\n        }\n\n        return <CallToAction key={cta.sys.id} {...ctaProps} />;\n      }\n\n      default: {\n        throw new Error(`Unknown navigation CTA ${cta.__typename}`);\n      }\n    }\n  });\n\n  return <>{navigationCta}</>;\n};\n", "import { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport { Logo as LogoSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { SitewideConfigurationContext } from '../../context/SitewideConfiguration/SitewideConfigurationContext';\nimport { combineImageSources } from '../../utils/combineImageSources';\n\nexport const GlobalHeaderLogo: FC = () => {\n  const { sitewideValues } = useContext(SitewideConfigurationContext);\n\n  const localNavProps = sitewideValues?.navigationBar;\n  const { getImageSources } = useContentfulImages();\n\n  if (!localNavProps) {\n    return null;\n  }\n\n  const { url, logoV2: logo } = localNavProps;\n\n  const imgSrcs = combineImageSources({\n    mobile: getImageSources(logo?.mobileMedia?.url),\n    desktop: getImageSources(logo?.media?.url),\n  });\n\n  const logoElement = <LogoSDS imgSrcs={imgSrcs} url={url} logoType={'Ghost'} />;\n\n  return <>{logoElement}</>;\n};\n", "import {\n  AutoComplete as AutoCompleteSDS,\n  MessageContext,\n} from '@snapchat/snap-design-system-marketing';\nimport noop from 'lodash-es/noop';\nimport type { ComponentProps, FC } from 'react';\nimport { useContext } from 'react';\nimport { useLocation } from 'react-router-dom';\n\nimport { AppContext } from '../../AppContext';\nimport type { SearchResult } from '../Search';\n\ntype GlobalHeaderSearchProps = {\n  setSearchOpen: (open: boolean) => void;\n  autocompleteProps?: Pick<\n    ComponentProps<typeof AutoCompleteSDS>,\n    'collapsible' | 'onSeeResults' | 'initialText' | 'hideSuggestions'\n  >;\n};\n\nexport const GlobalHeaderSearch: FC<GlobalHeaderSearchProps> = ({\n  setSearchOpen,\n  autocompleteProps,\n}) => {\n  const { formatMessage } = useContext(MessageContext);\n\n  const { pathname } = useLocation();\n  const { onRedirect } = useContext(AppContext);\n\n  const onSeeResults = (term: string) => {\n    onRedirect?.(`/search?q=${encodeURIComponent(term)}`);\n  };\n\n  return (\n    <AutoCompleteSDS<SearchResult>\n      autocompleteResults={[]}\n      cancelMessage={formatMessage({\n        id: 'globalHeaderSearchCancel',\n        defaultMessage: 'Cancel',\n      })}\n      collapsible\n      disabled={pathname === '/search'}\n      hideSuggestions\n      loadingAutocompleteTerms={false}\n      onChange={noop}\n      onCollapseChange={open => setSearchOpen(open)}\n      onSeeResults={onSeeResults}\n      onSelect={noop}\n      placeholder={formatMessage({\n        id: 'placeholderSearchPageInput',\n        defaultMessage: 'Search...',\n      })}\n      shortBar={pathname !== '/search'}\n      {...autocompleteProps}\n    />\n  );\n};\n", "import { documentToPlainTextString } from '@contentful/rich-text-plain-text-renderer';\nimport type { NavigatorItem as NavigatorItemType } from '@snapchat/mw-contentful-schema';\nimport { ItemDesktop as ItemDesktopSDS } from '@snapchat/snap-design-system-marketing';\nimport type { ComponentProps, FC } from 'react';\n\nimport { shouldFlushLogs } from '../../helpers/getLocalPath';\nimport { logEvent, logger, SubscribedEventType } from '../../helpers/logging';\nimport { UserAction } from '../../types/events';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport type { PathAwareNavItem } from '../Header/headerPathUtils';\n\nfunction logLocalNavDesktopClick(url: string, label?: string) {\n  logEvent({\n    subscribedEventType: SubscribedEventType.USER_INTERACTION,\n    eventCategory: 'NavigatorItem',\n    eventAction: UserAction.Click,\n    eventLabel: label ?? url,\n  });\n}\n\ninterface LocalNavDesktopProps {\n  items?: PathAwareNavItem[];\n}\n\nexport const LocalNavDesktop: FC<LocalNavDesktopProps> = ({ items }) => {\n  if (!items || !items.length) {\n    return null;\n  }\n\n  const getItemDesktopProps = (props: PathAwareNavItem): ComponentProps<typeof ItemDesktopSDS> => {\n    const { id, analyticsId, title, url, isSelected } = props;\n\n    const { contentfulDescriptionDataset } = getContentfulInspectorProps<NavigatorItemType>({\n      entryId: id,\n      fieldIds: ['contentfulDescription'],\n    });\n\n    return {\n      id,\n      url,\n      isSelected,\n      title: documentToPlainTextString(title?.json),\n      onClick: (): void => {\n        logLocalNavDesktopClick(url ?? '', analyticsId);\n\n        if (shouldFlushLogs(url)) {\n          void logger.flush();\n        }\n      },\n      dataset: contentfulDescriptionDataset,\n    };\n  };\n\n  return (\n    <>\n      {items.map(item1 => (\n        <ItemDesktopSDS key={item1.id} {...getItemDesktopProps(item1)}>\n          {item1.subItems.map(item2 => (\n            <ItemDesktopSDS key={item2.id} {...getItemDesktopProps(item2)}>\n              {item2.subItems.map(item3 => (\n                <ItemDesktopSDS key={item3.id} {...getItemDesktopProps(item3)} />\n              ))}\n            </ItemDesktopSDS>\n          ))}\n        </ItemDesktopSDS>\n      ))}\n    </>\n  );\n};\n", "import type { NavigatorItem as NavigatorItemType } from '@snapchat/mw-contentful-schema';\nimport {\n  defaultGlobalNavMobileGroupKey,\n  GlobalHeaderContext,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext, useEffect } from 'react';\n\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport type { PathAwareNavItem } from '../Header/headerPathUtils';\nimport { LocalNavItemMobile } from './LocalNavItemMobile';\n\ninterface LocalNavMobileProps {\n  items?: PathAwareNavItem[];\n}\n\n/**\n * Local nav links styled to look like the global nav, but only for mobile.\n *\n * It is only on mobile that we style the local nav in the same fashion as global nav.\n */\nexport const LocalNavMobile: FC<LocalNavMobileProps> = ({ items }) => {\n  const { setGroupKey } = useContext(GlobalHeaderContext);\n\n  useEffect(() => {\n    setGroupKey?.(defaultGlobalNavMobileGroupKey);\n  }, [setGroupKey]);\n\n  if (!items || !items.length) {\n    return null;\n  }\n\n  return (\n    <>\n      {items.map(props => {\n        const { contentfulDescriptionDataset } = getContentfulInspectorProps<NavigatorItemType>({\n          entryId: props.id,\n          fieldIds: ['contentfulDescription'],\n        });\n\n        return (\n          <LocalNavItemMobile key={props.id} {...props} dataset={contentfulDescriptionDataset} />\n        );\n      })}\n    </>\n  );\n};\n\nLocalNavMobile.displayName = 'LocalNavMobile';\n", "import { documentToPlainTextString } from '@contentful/rich-text-plain-text-renderer';\nimport type { NavigatorItem as NavigatorItemType } from '@snapchat/mw-contentful-schema';\nimport { GlobalNavItem as GlobalNavItemSDS } from '@snapchat/snap-design-system-marketing';\nimport { type FC, type MouseEventHandler, useContext } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { isLocalUrl, shouldFlushLogs } from '../../helpers/getLocalPath';\nimport { logger } from '../../helpers/logging';\nimport { UserAction } from '../../types/events';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport type { PathAwareNavItem } from '../Header/headerPathUtils';\nimport { useConsumerContext } from '../useConsumerContext';\n\nexport const LocalNavItemMobile: FC<PathAwareNavItem> = props => {\n  const { logEvent } = useConsumerContext();\n  const { getCurrentUrl } = useContext(AppContext);\n\n  if (!props) {\n    return null;\n  }\n\n  const { analyticsId, url, title, isSelected, subItems, dataset } = props;\n\n  if (!title) {\n    // Do nothing if there's no title.\n    return null;\n  }\n\n  const onClick: MouseEventHandler = (): void => {\n    logEvent?.({\n      type: UserAction.Click,\n      component: 'LocalNavItemMobile',\n      label: analyticsId,\n      url,\n    });\n\n    if (shouldFlushLogs(url)) {\n      void logger.flush();\n    }\n  };\n\n  // this should return true for relative paths too. Prevent adding tracking para\n  const absoluteUrl = new URL(url ?? '', getCurrentUrl());\n  const isLocal = isLocalUrl(absoluteUrl);\n\n  return (\n    <GlobalNavItemSDS\n      showExternalIcon={false}\n      href={url}\n      title={documentToPlainTextString(title.json)}\n      onClick={onClick}\n      isSelected={isSelected}\n      dataset={dataset}\n      addTrackingParams={!isLocal}\n    >\n      {subItems.map(props => {\n        const { contentfulDescriptionDataset } = getContentfulInspectorProps<NavigatorItemType>({\n          entryId: props.id,\n          fieldIds: ['contentfulDescription'],\n        });\n\n        return (\n          <LocalNavItemMobile key={props.id} {...props} dataset={contentfulDescriptionDataset} />\n        );\n      })}\n    </GlobalNavItemSDS>\n  );\n};\n\nLocalNavItemMobile.displayName = 'LocalNavItemMobile';\n", "import { css } from '@emotion/css';\nimport { m, ZIndex } from '@snapchat/snap-design-system-marketing';\n\nexport const globalHeaderSearchContainerDesktopOpenCss = css`\n  width: 500px;\n  &&& {\n    margin-left: auto;\n  }\n`;\n\nexport const globalHeaderSearchContainerMobileCss = css`\n  width: 100%;\n  &&& {\n    margin-left: auto;\n  }\n`;\n\nexport const searchOpenCss = css`\n  & > *:first-child {\n    display: flex;\n    flex-grow: 0;\n    flex-basis: initial;\n    flex-basis: content;\n  }\n`;\n\nexport const siteNameCss = css`\n  display: inline-block;\n  cursor: pointer;\n  color: ${m('--foreground-color')};\n  text-decoration: none;\n`;\n\nexport const headerContainerCss = css`\n  position: sticky;\n  top: 0;\n  left: 0;\n  right: 0;\n  z-index: ${ZIndex.NAVIGATOR};\n`;\n\nexport const noMarginCss = css`\n  margin: 0;\n`;\n", "import type { NavigatorItem } from '@snapchat/mw-contentful-schema';\nimport type { NavigationItem as SDSNavigationItem } from '@snapchat/snap-design-system-marketing';\n\nimport type { RichText } from '../../types/RichText';\nimport type { CriteriaChecker } from '../Experiment';\n\n/** Decorator type that tracks whether the current nav item is part of the current navigation path. */\nexport interface PathAwareNavItem {\n  id: string;\n  analyticsId?: string;\n  title: RichText;\n  url?: string;\n  isSelected: boolean;\n  subItems: PathAwareNavItem[];\n  dataset?: DOMStringMap;\n}\n\n/** We do not allow nav depths beyond this point. No point in processing the tree past this level. */\nconst defaultMaxDepth = 3;\n\n/**\n * Processes input from Contentful to a Nav tree that can be rendered:\n *\n * - Removes nav items that should be hidden based on criteria\n * - Flags nav tree items that should be marked active based on current url\n * - Restricts nav tree allowed depth\n */\nexport const convertToPathAwareNavItems = (\n  items?: NavigatorItem[],\n  isUrlCurrent?: (url: string) => boolean,\n  checkCriteria?: CriteriaChecker,\n  maxDepth = defaultMaxDepth\n): PathAwareNavItem[] => {\n  const output: PathAwareNavItem[] = [];\n\n  for (const item of items ?? []) {\n    const node = convertNavItemsInternal(item, isUrlCurrent, checkCriteria, maxDepth);\n    node && output.push(node);\n  }\n\n  return output;\n};\n\nconst convertNavItemsInternal = (\n  item: NavigatorItem,\n  isUrlCurrent?: (url: string) => boolean,\n  checkCriteria?: CriteriaChecker,\n  maxDepth = defaultMaxDepth,\n  parents: PathAwareNavItem[] = []\n): PathAwareNavItem | null => {\n  const isVisible = checkCriteria?.(item.hideCriteria) ?? true;\n  if (!isVisible) return null;\n\n  if (parents.length === maxDepth) return null;\n\n  const node: PathAwareNavItem = {\n    id: item.sys.id,\n    title: item.title as RichText,\n    url: item.url,\n    analyticsId: item.analytics?.label,\n    isSelected: false,\n    subItems: [],\n  };\n\n  // handle leaf node\n  if (!item.navigatorItemsCollection?.items.length) {\n    const isSelected = item.url && isUrlCurrent?.(item.url);\n\n    // mark node and ancestors as selected, and add to breadcrumbs\n    if (isSelected) {\n      node.isSelected = true;\n\n      parents.forEach(parent => {\n        parent.isSelected = true;\n      });\n    }\n  } else {\n    // handle trunk node\n    for (const child of item.navigatorItemsCollection.items) {\n      const ancestors = [...parents, node];\n      const subItem = convertNavItemsInternal(\n        child,\n        isUrlCurrent,\n        checkCriteria,\n        maxDepth,\n        ancestors\n      );\n      subItem && node.subItems.push(subItem);\n    }\n  }\n\n  return node;\n};\n\n/**\n * Helper function that transforms input into navigation tree to type used by\n * GlobalHeader.headerNavigationTree prop\n */\n// eslint-disable-next-line import/no-unused-modules\nexport function transformNavItems(item: NavigatorItem): SDSNavigationItem {\n  return {\n    id: item.sys.id,\n    url: item.url,\n    subItems: item.navigatorItemsCollection?.items.map(transformNavItems),\n  };\n}\n", "import type { FC, PropsWithChildren } from 'react';\nimport { memo, useContext } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { AppContext } from '../../AppContext';\n\n// eslint-disable-next-line import/no-unused-modules\nexport const headerPortalId = 'mwp-header-portal';\n\n/**\n * Portal for rendering content directly into the header.\n *\n * Use as return React.createPortal(<element>, headerPortalId)\n */\nexport const HeaderPortal: FC<{ className?: string }> = memo(props => {\n  const { headerPortalRef } = useContext(AppContext);\n\n  return <aside className={props.className} data-testid={headerPortalId} ref={headerPortalRef} />;\n});\n\nHeaderPortal.displayName = 'HeaderPortal';\n\n/**\n * Easy insertion point into the HeaderPortal.\n *\n * Use as <IntoHeaderPortal>{.. your stuff ..}</IntoHeaderPortal>\n *\n * NOTE: The contently only gets inserted on the client. Nothing displays on the server.\n */\nexport const IntoHeaderPortal: FC<PropsWithChildren> = ({ children }) => {\n  const { headerPortalRef } = useContext(AppContext);\n\n  return headerPortalRef?.current ? createPortal(children, headerPortalRef!.current) : null;\n};\nIntoHeaderPortal.displayName = 'IntoHeaderPortal';\n", "import { globalHeaderHeight } from '@snapchat/snap-design-system-marketing';\n\n// Variable to keep track of the initial value we want to set the\n// css variable to during SSR in index.ejs.\n// ONLY to be used during SSR in the renderHtml file\nlet headerHeight = globalHeaderHeight;\n\n/** Used only for SSR to set the initial value of the css variable */\nexport const setHeaderHeight = (height: number): void => {\n  headerHeight = height;\n};\n\n/** Used only for SSR to set the initial value of the css variable */\nexport const getHeaderHeight = (): number => headerHeight;\n\n/** Css variable that keeps track of total header height */\nexport const totalHeaderHeightCssVar = '--total-header-height';\n\n/** Gets height of header from css variable. */\nexport const getHeaderHeightFromCssVar = (): number =>\n  Number.parseInt(\n    getComputedStyle(document.documentElement).getPropertyValue(totalHeaderHeightCssVar),\n    10\n  );\n", "import { GlobalComponentsContext } from '@snapchat/mw-global-components';\nimport { useGlobalComponentsContentfulQuery } from '@snapchat/mw-global-components-schema';\nimport type { MessageFormatter } from '@snapchat/snap-design-system-marketing';\nimport { defaultFormatMessage, MessageContext } from '@snapchat/snap-design-system-marketing';\nimport type { FC, PropsWithChildren } from 'react';\nimport { useContext } from 'react';\n\nimport { Config } from '../../config';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { Items } from '../../types/Items';\nimport { useContentfulContext } from '../useContentfulContext';\nimport { intlProviderQuery } from './query';\n\ninterface Message {\n  key: string;\n  value: string;\n}\n\ninterface MessageResponse {\n  messageCollection: Items<Message>;\n}\n\nexport const IntlProvider: FC<PropsWithChildren> = ({ children }) => {\n  const context = useContentfulContext();\n  const { globalApolloClient } = useContext(GlobalComponentsContext);\n\n  const { data: localData } = useContentfulQuery<MessageResponse>(intlProviderQuery);\n\n  const { data: globalData } = useGlobalComponentsContentfulQuery<MessageResponse>(\n    intlProviderQuery,\n    { currentLocale: context.locale, isPreview: context.preview, isSSR: Config.isSSR },\n    { client: globalApolloClient }\n  );\n\n  const globalMessages = !globalData\n    ? null\n    : Object.fromEntries(globalData.messageCollection.items.map(m => [m.key, m.value]));\n\n  const localMessages = !localData\n    ? null\n    : Object.fromEntries(localData.messageCollection.items.map(m => [m.key, m.value]));\n\n  // Early bail until both of the message packs have been loaded.\n  // This is done to avoid an extra full-app re-render when only one of them is loaded.\n  if (!globalMessages || !localMessages) {\n    return (\n      <MessageContext.Provider value={{ formatMessage: defaultFormatMessage }}>\n        {children}\n      </MessageContext.Provider>\n    );\n  }\n\n  const messages = {\n    ...localMessages,\n    ...globalMessages, // Global message keys will override any duplicate local message key\n  };\n\n  const formatMessage: MessageFormatter = (message, vars): string => {\n    let formattedValue = messages[message.id] ?? message.defaultMessage;\n\n    if (!vars) return formattedValue;\n\n    for (const [key, value] of Object.entries(vars)) {\n      formattedValue = formattedValue.replace(`{${key}}`, value);\n    }\n\n    return formattedValue;\n  };\n\n  return <MessageContext.Provider value={{ formatMessage }}>{children}</MessageContext.Provider>;\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nconst messageFragment = gql`\n  fragment MessageAll on Message {\n    ...ContentfulSysId\n    key\n    value\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport const intlProviderQuery = gql`\n  query IntlMessages($preview: Boolean!, $locale: String!) {\n    messageCollection(preview: $preview, locale: $locale) {\n      items {\n        ...MessageAll\n      }\n    }\n  }\n  ${messageFragment}\n`;\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\nimport { Helmet } from 'react-helmet-async';\n\nimport { AppContext } from '../../AppContext';\nimport { languageFromLocale } from './language';\n\nexport const LanguageDirective: FC = () => {\n  const appContext = useContext(AppContext);\n\n  return (\n    <Helmet>\n      <html lang={languageFromLocale(appContext?.currentLocale)} />\n    </Helmet>\n  );\n};\n\nLanguageDirective.displayName = 'LanguageDirective';\n", "import { defaultLocale } from '../../helpers/locale';\n\nexport const languageFromLocale = (locale?: string): string => {\n  const currentLocale = !locale ? defaultLocale : locale;\n  const [languageCode] = currentLocale.split('-');\n  return languageCode as string;\n};\n", "import { requestIdleCallback } from '@snapchat/polyfills';\nimport { LoadingBar as LoadingBarSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { memo, useEffect, useState } from 'react';\n\nimport { endFetchEventListeners, startFetchEventListeners } from '../../utils/fetch/customFetch';\n\n/** Loading Bar component that listens for fetch requests and handles rendering in the client */\nexport const LoadingBar: FC = memo(() => {\n  const [loadingCount, setLoadingCount] = useState(0);\n\n  useEffect(() => {\n    const startCallBack = () => {\n      setTimeout(() => {\n        setLoadingCount(loadingCount => {\n          return loadingCount + 1;\n        });\n        // Defer executing this after the current loop so we don't trigger\n        // a state change during another component's render.\n        // This fixes a react warning.\n      }, 0);\n    };\n\n    const endCallBack = () => {\n      requestIdleCallback(\n        () =>\n          setLoadingCount(loadingCount => {\n            return Math.max(0, loadingCount - 1);\n          }),\n        // Call the callback eventually.\n        { timeout: 5e3 }\n      );\n    };\n    startFetchEventListeners.add(startCallBack);\n    endFetchEventListeners.add(endCallBack);\n\n    return () => {\n      startFetchEventListeners.delete(startCallBack);\n      endFetchEventListeners.delete(endCallBack);\n    };\n  }, []);\n\n  if (loadingCount === 0) {\n    return null;\n  }\n\n  return <LoadingBarSDS className=\"react-loading-bar\" />;\n});\n\nLoadingBar.displayName = 'LoadingBar';\n", "import { connectionTimeoutMs, contentfulRequestTimeoutMs } from '@snapchat/mw-common';\nimport fetch from 'cross-fetch';\n\nimport { Config } from '../../config';\nimport { getTracer } from '../tracing/tracer';\n\n/** Event listeners that handle the start and end of a fetch request */\nexport const startFetchEventListeners = new Set<() => void>();\nexport const endFetchEventListeners = new Set<() => void>();\n\n/**\n * Wrapper around fetch which adds some bells and whistles:\n *\n * - Adds a tracing span so that we can see all fetch requests in google cloud tracing.\n * - Adds a timeout to all requests equal to the externally configured timeout to early kill\n *   long-running requests.\n */\n\nexport const customFetch: typeof fetch = (input, init) =>\n  new Promise((resolve, reject) => {\n    startFetchEventListeners.forEach(listener => listener());\n    // Starts timing this fetch. Works on both cliend and server.\n    const trace = getTracer().startSpan(`Fetch: ${input}`);\n\n    // Only using AbortController on the server (which 100% supports it).\n    // Do not use if consumer already provided an abort signal.\n    // Do not use it on the client to allow slow request to complete (or be aborted by the browser).\n    // Also AbortController is only supported by 96% of browsers, so we need to be defensive here.\n    // See: https://caniuse.com/?search=abort%20controller\n    const controller = !Config.isClient && !init?.signal ? new AbortController() : undefined;\n    let isRejected = false;\n\n    // Custom listener to report the abort error.\n    // For some reason, during testing the fetch(..).catch() didn't always fire when the abort\n    // signal is sent, which leaves the middleware forever waiting for the fetch to reply.\n    // There's no natural timeout, so it would be a memory leak.\n    controller?.signal.addEventListener('abort', () => {\n      if (!isRejected) {\n        reject(\n          new Error(\n            `Connection timed out after ${(contentfulRequestTimeoutMs / 1e3).toFixed(1)} seconds.`\n          )\n        );\n        isRejected = true;\n      }\n    });\n\n    // Setups up a timeout to abort if the request doesn't return before that.\n    const timeoutMs = String(input).includes('contentful')\n      ? contentfulRequestTimeoutMs\n      : connectionTimeoutMs;\n    const abortTimeout = setTimeout(() => {\n      controller?.abort();\n    }, timeoutMs);\n\n    // Passing the abort signal to fetch. This only works for Node 15+.\n    // But this is what allows us to release the resources and promises.\n    const initWithAbort = { ...init, signal: init?.signal ?? controller?.signal };\n\n    fetch(input, initWithAbort)\n      .then(value => {\n        resolve(value);\n      })\n      .catch(error => {\n        // Note that we avoid rejecting here if we already rejected in the abort controller event.\n        // Non-abort errors get rejected here.\n        if (!isRejected) {\n          reject(error);\n          isRejected = true;\n        }\n      })\n      .finally(() => {\n        endFetchEventListeners.forEach(listener => listener());\n        trace.endSpan();\n        clearTimeout(abortTimeout);\n      });\n  });\n\n/**\n * Helper function to retrieve the request url from the parameters for the `customFetch` function.\n * Useful when writing to logs since there are multiple ways to specify the API endpoint.\n */\nexport const getRequestUrl: (...base: Parameters<typeof customFetch>) => string = input => {\n  if (typeof input === 'string') return input;\n\n  return (input as URL).href ?? (input as Request).url;\n};\n", "import noop from 'lodash-es/noop';\n\nimport type {\n  RunningTrace,\n  Tracer,\n  TracerEventListener,\n  TracerListenerRemover,\n} from './tracingTypes';\n\nexport class NoOpTracer implements Tracer {\n  startSpan: (name: string) => RunningTrace = _name => ({ endSpan: noop });\n  addEventListener: (callback: TracerEventListener) => TracerListenerRemover = _callback => {\n    return noop;\n  };\n}\n", "import { NoOpTracer } from './noopTracer';\nimport type { Tracer } from './tracingTypes';\n\n// This is a writeable variable because we can't import both browser and server-side implementations here.\n// eslint-disable-next-line prefer-const\nlet tracer: Tracer = new NoOpTracer();\n\nexport function getTracer(): Tracer {\n  return tracer;\n}\n\nexport function setTracer(tracerImpl: Tracer): void {\n  tracer = tracerImpl;\n}\n", "import isEqual from 'lodash/isEqual.js';\nimport type { EffectCallback } from 'react';\nimport { useEffect, useRef } from 'react';\n\n/**\n * The useEffect wrapper that ensures that the imperative callback only fires once even if the\n * component re-renders.\n *\n * This is especially important to account for this for things like logging or registering dom\n * attachment.\n *\n * This is a requirement since React 18 in strict mode.\n *\n * Using a useRef is the suggested solution by the React team.\n *\n * See: https://github.com/reactwg/react-18/discussions/18 See:\n * https://github.com/reactwg/react-18/discussions/17\n */\nexport function useImperativeEffect(callback: EffectCallback, dependencies: unknown[]): void {\n  const lastExecutionDependencies = useRef<unknown[] | null>(null);\n\n  useEffect(() => {\n    if (isEqual(lastExecutionDependencies.current, dependencies)) {\n      return;\n    }\n    lastExecutionDependencies.current = dependencies;\n    return callback();\n    // We don't need to check dependencies here because we check them at the caller side (see eslintrc)\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, dependencies);\n}\n", "import { useImperativeEffect } from '@snapchat/core-browser';\nimport { ensureSingleScript } from '@snapchat/mw-common/client';\nimport isNil from 'lodash-es/isNil';\nimport noop from 'lodash-es/noop';\nimport type { FC } from 'react';\n\nimport { logInfo } from '../../helpers/logging';\n\n/**\n * Component used to detect and report AdBlocker Usage.\n *\n * Imports a javascript resource that matches a naming convention that will be flagged by Ad\n * Blockers that reference the popular [EasyList\n * repository](https://github.com/easylist/easylist/tree/master), such as uBlock Origin, AdBlock,\n * AdGuard, etc.\n */\nexport const LogAdBlockUsage: FC = () => {\n  useImperativeEffect(() => {\n    // Note: cannot rely on the `onLoaded` callback as it will not fire if an AdBlocker exists\n    ensureSingleScript('detect-ad-blocker', '/openad.js', noop);\n\n    // checks whether the script was successfully imported and logs the result\n    setTimeout(() => {\n      const hasAdBlocker = isNil(window.snapMarketingWeb?.hasAdBlocker);\n\n      logInfo({\n        eventAction: 'Exists',\n        eventCategory: 'AdBlocker',\n        eventLabel: `${hasAdBlocker}`,\n      });\n    }, 500);\n  }, []);\n\n  return null;\n};\n", "import type { FC } from 'react';\nimport { useEffect } from 'react';\n\nimport { Config } from '../../config';\nimport { logError } from '../../helpers/logging';\nimport { sanitizeCspResource } from '../../utils/url/sanitizeCspResource';\n\nconst ignoredBlockedUriBySourcePrefix: Record<string, Set<string>> = {\n  // Per discussion w/ Alex, we will not log these specific violations as they are known issues w/ gtm\n  'https://www.googletagmanager.com/gtm.js': new Set(['eval']),\n  // Per team discussion, we will not log these as they are noops\n  [`https://${Config.domainName}/mwp-chunks/`]: new Set(['eval', 'properties']),\n  // Per team discussion, we will not log these as they are noops\n  Unknown: new Set(['eval', 'inline']),\n};\n\n/** Component used to report CSP Security Violations. */\nexport const LogCspViolation: FC = () => {\n  useEffect(() => {\n    // The `securitypolicyviolation` event fires multiple times for a single violation,\n    // this way we don't log the violation more than once per app load.\n    const reported = new Set<string>();\n\n    const listener = (e: SecurityPolicyViolationEvent) => {\n      // NOTE: blockedURI and sourceFile may contain URLs with query parameters\n      const { blockedURI, violatedDirective, sourceFile } = e;\n      const key = `${blockedURI}|${violatedDirective}|${sourceFile}`;\n\n      if (reported.has(key)) return; // already reported, noop\n\n      for (const sourceFilePrefix in ignoredBlockedUriBySourcePrefix) {\n        const blockedUriValues = ignoredBlockedUriBySourcePrefix[sourceFilePrefix];\n\n        if (blockedUriValues?.has(blockedURI) && sourceFile.startsWith(sourceFilePrefix)) {\n          reported.add(key); // Add to set to bypass this check on subsequent fires\n          return; // known scenario that we don't want to log, noop\n        }\n      }\n\n      logError({\n        component: 'Csp',\n        error: 'CspViolationError',\n        message: `Blocked ${blockedURI}, ${sourceFile}, ${violatedDirective}`,\n        context: {\n          blockedUri: sanitizeCspResource(blockedURI),\n          sourceFile,\n          violatedDirective: sanitizeCspResource(violatedDirective),\n        },\n      });\n\n      reported.add(key);\n    };\n\n    document.addEventListener('securitypolicyviolation', listener);\n\n    return () => {\n      document.removeEventListener('securitypolicyviolation', listener);\n    };\n  }, []);\n\n  return null;\n};\n", "/**\n * CSP Errors may reference resources with query string parameters, etc. We'll reduce cardinality by\n * ommitting these when logging to graphene.\n */\nexport function sanitizeCspResource(resource?: string): string | undefined {\n  if (!resource) return undefined;\n\n  try {\n    const url = new URL(resource);\n    return `${url.origin}${url.pathname}`;\n  } catch {\n    return resource; // If not parseable as a URL (e.g. `eval`), return the original string\n  }\n}\n", "import assignValue from './_assignValue.js';\nimport castPath from './_castPath.js';\nimport isIndex from './_isIndex.js';\nimport isObject from './isObject.js';\nimport toKey from './_toKey.js';\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n  if (!isObject(object)) {\n    return object;\n  }\n  path = castPath(path, object);\n\n  var index = -1,\n      length = path.length,\n      lastIndex = length - 1,\n      nested = object;\n\n  while (nested != null && ++index < length) {\n    var key = toKey(path[index]),\n        newValue = value;\n\n    if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n      return object;\n    }\n\n    if (index != lastIndex) {\n      var objValue = nested[key];\n      newValue = customizer ? customizer(objValue, key, nested) : undefined;\n      if (newValue === undefined) {\n        newValue = isObject(objValue)\n          ? objValue\n          : (isIndex(path[index + 1]) ? [] : {});\n      }\n    }\n    assignValue(nested, key, newValue);\n    nested = nested[key];\n  }\n  return object;\n}\n\nexport default baseSet;\n", "import baseGet from './_baseGet.js';\nimport baseSet from './_baseSet.js';\nimport castPath from './_castPath.js';\n\n/**\n * The base implementation of  `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n  var index = -1,\n      length = paths.length,\n      result = {};\n\n  while (++index < length) {\n    var path = paths[index],\n        value = baseGet(object, path);\n\n    if (predicate(value, path)) {\n      baseSet(result, castPath(path, object), value);\n    }\n  }\n  return result;\n}\n\nexport default basePickBy;\n", "import basePickBy from './_basePickBy.js';\nimport hasIn from './hasIn.js';\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n  return basePickBy(object, paths, function(value, path) {\n    return hasIn(object, path);\n  });\n}\n\nexport default basePick;\n", "import baseFlatten from './_baseFlatten.js';\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n  var length = array == null ? 0 : array.length;\n  return length ? baseFlatten(array, 1) : [];\n}\n\nexport default flatten;\n", "import flatten from './flatten.js';\nimport overRest from './_overRest.js';\nimport setToString from './_setToString.js';\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n  return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nexport default flatRest;\n", "import basePick from './_basePick.js';\nimport flatRest from './_flatRest.js';\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n  return object == null ? {} : basePick(object, paths);\n});\n\nexport default pick;\n", "import { useImperativeEffect } from '@snapchat/core-browser';\nimport pick from 'lodash-es/pick';\nimport type { FC } from 'react';\n\nimport { logEvent, logTiming, logValue, SubscribedEventType } from '../../helpers/logging';\n\n/**\n * Logs internal timing events that have to do with the page navigation timing.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming\n */\nfunction logTimingEvents() {\n  const windowTimingEntries = performance.getEntriesByType(\n    'navigation'\n  ) as PerformanceNavigationTiming[];\n  const [timing] = windowTimingEntries;\n  // The field descriptions are in the spec: https://www.w3.org/TR/navigation-timing-2/\n  const keysToLog: Array<keyof PerformanceNavigationTiming> = [\n    'connectEnd', // DNS, proxy etc.\n    'domComplete', // Dom is laid out.\n    'domContentLoadedEventEnd', // Resources loaded.\n    'domInteractive', // Scrolling is unlocked.\n    'duration', // Total navigation duration.\n    'loadEventEnd', // Time of the load event fire.\n    'responseEnd', // Time of the server response end.\n    'transferSize', // Total data transfered for load request.\n  ];\n\n  for (const [eventVariable, eventValue] of Object.entries(pick(timing, keysToLog))) {\n    if (typeof eventValue !== 'number') continue;\n\n    if (eventVariable === 'transferSize') {\n      logValue({\n        eventCategory: 'NavigationTiming',\n        eventLabel: `${timing!.type} ${window.location.pathname}`,\n        eventVariable, // TODO: Find out if we need to have a sperate metric due to histogram bucketing.\n\n        eventValue,\n      });\n    } else {\n      logTiming({\n        eventCategory: 'NavigationTiming',\n        eventLabel: `${timing!.type} ${window.location.pathname}`,\n        // NOTE: We choose to not rename these fields, so that we conform\n        // to the existing web standards.\n        eventVariable,\n        eventValue,\n      });\n    }\n  }\n}\n\n/**\n * Component used to ensure consistent logging of Page Load events. This should be located as close\n * to the top level App and Router components as possible.\n *\n * This avoids issues where a change to a Context value causes a parent component to rerender and\n * fire the page load events multiple times for the same location.\n */\nexport const LogPageLoad: FC = () => {\n  // LEGACY: Log first page load.\n  // This is a very bad marker of when the page is loaded, because it only indicates that\n  // React has been initialized and has begun rendering. DO NOT USE THIS for analysis.\n  // This is only kept around to avoid breaking changes.\n  useImperativeEffect(() => {\n    logEvent({\n      subscribedEventType: SubscribedEventType.FIRST_PAGE_LOAD,\n    });\n  }, []);\n\n  /*\n   * Logging of the web performance based on the Performance Timing API.\n   * This is the main way in which we track page load speeds.\n   */\n  useImperativeEffect(() => {\n    if (document.readyState === 'complete') {\n      logTimingEvents();\n      return;\n    }\n\n    const listener = () => {\n      // Running the function below in a setTimeout to let 'loadEventEnd' value populate.\n      setTimeout(logTimingEvents, 0);\n    };\n\n    window.addEventListener('load', listener);\n\n    return () => {\n      window.removeEventListener('load', listener);\n    };\n  }, []);\n\n  return null;\n};\n", "import debounce from './debounce.js';\nimport isObject from './isObject.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n *  Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n *  Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n  var leading = true,\n      trailing = true;\n\n  if (typeof func != 'function') {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  if (isObject(options)) {\n    leading = 'leading' in options ? !!options.leading : leading;\n    trailing = 'trailing' in options ? !!options.trailing : trailing;\n  }\n  return debounce(func, wait, {\n    'leading': leading,\n    'maxWait': wait,\n    'trailing': trailing\n  });\n}\n\nexport default throttle;\n", "import { useImperativeEffect } from '@snapchat/core-browser';\nimport throttle from 'lodash-es/throttle';\nimport { type FC, useEffect, useRef, useState } from 'react';\nimport { useLocation } from 'react-router-dom';\n\nimport { logValue } from '../../helpers/logging';\n\n/** Scroll Depth breakpoints to log (% of page height) */\nconst logScrollDepthBreakPoints = [25, 50, 75, 90, 100];\n\n/**\n * Component used to ensure consistent logging of Scroll Depth for a page. Purposely does not\n * distinguish between automated and user-driven scrolling.\n *\n * Only fires scroll depth events once per page - does not retrigger if the user scrolls up and\n * down.\n */\nexport const LogScrollDepth: FC = () => {\n  const { pathname } = useLocation();\n  const maxScrollDepth = useRef(0);\n  const [currScrollDepth, setCurrScrollDepth] = useState(0);\n\n  // Add throttled event listener to scroll event\n  useEffect(() => {\n    const listener = throttle(() => {\n      const scrollY = window.scrollY;\n      const scrollHeight = document.documentElement.scrollHeight - window.innerHeight;\n      const scrollDepth = scrollY / scrollHeight;\n      const roundedScrollDepth = Math.round(scrollDepth * 100);\n      setCurrScrollDepth(roundedScrollDepth);\n    }, 500);\n\n    window.addEventListener('scroll', listener, { passive: true });\n\n    return () => {\n      window.removeEventListener('scroll', listener);\n    };\n  }, [setCurrScrollDepth]);\n\n  // reset maxScrollDepth on location change\n  useImperativeEffect(() => {\n    maxScrollDepth.current = 0;\n  }, [pathname]);\n\n  // log scrollDepth\n  useImperativeEffect(() => {\n    if (currScrollDepth <= maxScrollDepth.current) return;\n\n    for (let i = 0; i < logScrollDepthBreakPoints.length; i++) {\n      const breakpoint = logScrollDepthBreakPoints[i]!;\n      const nextBreakpoint = logScrollDepthBreakPoints[i + 1];\n      const isLastBreakpoint = !nextBreakpoint;\n\n      if (\n        maxScrollDepth.current >= breakpoint || // already logged current breakpoint\n        currScrollDepth < breakpoint || // does not satisfy current breakpoint\n        (!isLastBreakpoint && currScrollDepth >= nextBreakpoint) // satisfies later breakpoint\n      )\n        continue;\n\n      logValue({\n        eventCategory: 'LogScrollDepth',\n        eventLabel: `scroll breakpoint: ${breakpoint}%`,\n        eventVariable: 'scroll_percentage',\n        eventValue: currScrollDepth,\n      });\n      // early exit - no need to check for other logging scenarios\n      break;\n    }\n\n    maxScrollDepth.current = currScrollDepth;\n  }, [currScrollDepth]);\n\n  // Component has no UI, return null\n  return null;\n};\n", "import type { MotifRootProps } from '@snapchat/snap-design-system-marketing';\nimport { MotifRoot } from '@snapchat/snap-design-system-marketing';\nimport { type FC, type PropsWithChildren, useContext } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { Config } from '../../config';\nimport { UrlParameter } from '../../constants/urlParameters';\nimport { customBlueMotif } from '../../styles/customBlueMotif';\nimport { customGreenMotif } from '../../styles/customGreenMotif';\n\n/**\n * Wrapper for motif root that lets us run feature flags for motifs. Currently no experiments being\n * run, but keeping the wrapper for future use.\n */\nexport const MotifRootWrapper: FC<PropsWithChildren<MotifRootProps>> = ({\n  children,\n  motif,\n  ...passThroughProps\n}) => {\n  const { getCurrentUrl } = useContext(AppContext);\n\n  let finalMotif = motif;\n\n  const url = new URL(getCurrentUrl());\n  const useAlternateMotif = url.searchParams.get(UrlParameter.USE_ALTERNATE_MOTIF);\n\n  if (Config.isDeploymentTypeProd) {\n    // Do nothing. The theme is cached, so we can't turn on the easter egg.\n  } else if (useAlternateMotif === 'true' || useAlternateMotif === 'green') {\n    finalMotif = customGreenMotif;\n  } else if (useAlternateMotif === 'blue') {\n    finalMotif = customBlueMotif;\n  }\n\n  return (\n    <MotifRoot motif={finalMotif} {...passThroughProps}>\n      {children}\n    </MotifRoot>\n  );\n};\n", "import {\n  type Motif,\n  Black,\n  Blue,\n  defaultMotif,\n  FontFamily,\n  Gray,\n  m,\n  mergeMotifs,\n  MotifComponent,\n  MotifScheme,\n  Plain,\n} from '@snapchat/snap-design-system-marketing';\n\n/** Generated by figmaTokensImport on 2023-11-18T04:39:42.862Z. */\nexport const customBlueMotif: Motif = mergeMotifs(defaultMotif, {\n  name: 'Blue',\n  fontFamily: FontFamily.GRAPHIK,\n  [MotifScheme.DEFAULT]: {\n    name: 'Imported Deafult',\n    legacyName: 'Yellow',\n    [MotifComponent.HYPERLINK]: {\n      '--hyperlink-desktop-font-text-decoration': 'underline',\n      '--hyperlink-mobile-font-text-decoration': 'underline',\n      '--hyperlink-mobile-font-weight': 'Medium',\n      '--hyperlink-desktop-font-weight': 'Medium',\n      '--hyperlink-color': `${m('--action-hover-color')}`,\n    },\n    [MotifComponent.ROOT]: {\n      '--border-radius-l': '12px',\n      '--border-radius-xl': '16px',\n      '--box-shadow-l': '0px 16px 32px 0 #000 12%',\n      '--background-color': Blue.V100,\n      '--action-default-color': Black.V50,\n      '--action-hover-color': Black.V100,\n    },\n    [MotifComponent.BUTTON]: {\n      '--button-primary-fg-color': Blue.V50,\n      '--button-secondary-bg-color': Blue.V50,\n      '--button-secondary-hover-bg-color': Blue.V50,\n      '--button-secondary-border-color': Blue.V50,\n      '--button-secondary-hover-border-color': Blue.V50,\n      '--button-flat-fg-color': `${m('--foreground-color')}`,\n      '--button-border-radius': `${m('--border-radius-s')}`,\n      '--button-hover-shadow': `${m('--box-shadow-l')}`,\n      '--button-regular-padding': 'var(--spacing-s) var(--spacing-m)',\n      '--button-compact-padding': 'var(--spacing-xs) var(--spacing-m)',\n    },\n    [MotifComponent.HEADER]: {\n      '--global-header-nav-screen-fg-color': Black.V150,\n    },\n    [MotifComponent.BLOCK]: {\n      '--block-eyebrow-color': Plain.BLACK,\n      '--block-title-color': Plain.BLACK,\n      '--block-subtitle-color': Plain.BLACK,\n    },\n    [MotifComponent.TABS]: {},\n    [MotifComponent.BREAK]: {},\n    [MotifComponent.ACCORDION]: {\n      '--accordion-header-color': `${m('--foreground-color')}`,\n      '--accordion-divider-border-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.QUOTE]: {\n      '--quote-bg-color': Blue.V50,\n    },\n    [MotifComponent.FOOTER]: {\n      '--footer-bg-color': `${m('--background-color')}`,\n      '--footer-divider-border-color': `${m('--foreground-color')}`,\n      '--footer-bar-bg-color': `${m('--background-color')}`,\n    },\n    [MotifComponent.SUMMARY_CARD]: {\n      '--summary-card-title-color': Plain.BLACK,\n      '--summary-card-description-color': Black.V100,\n      '--summary-card-bg-color': Blue.V50,\n      '--summary-card-border-radius': `${m('--border-radius-l')}`,\n    },\n    [MotifComponent.FORM]: {\n      '--form-input-bg-color': Blue.V50,\n      '--form-input-border-radius': `${m('--border-radius-xl')}`,\n      '--form-input-padding': 'var(--spacing-m) var(--spacing-l)',\n      '--form-grid-gap': `${m('--spacing-m')}`,\n    },\n    [MotifComponent.FOOTNOTE]: {\n      '--footnote-fg-color': Black.V50,\n      '--footnote-bg-color': Blue.V50,\n    },\n    [MotifComponent.DROPDOWN_MENU]: {\n      '--dropdown-menu-bg-color': Blue.V50,\n    },\n    [MotifComponent.BANNER]: {\n      '--banner-bg-color': `${m('--background-color')}`,\n      '--banner-fg-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.CONTENT]: {\n      '--content-mobile-grid-gap': `${m('--spacing-l')}`,\n    },\n    [MotifComponent.MOSAIC]: {\n      '--mosaic-border-radius': '24px',\n      '--mosaic-grid-gap': '32px',\n      '--mosaic-highlight-color': Blue.V100,\n      '--mosaic-title-color': Blue.V50,\n    },\n    [MotifComponent.MEDIA]: {},\n    [MotifComponent.SEARCH]: {},\n    [MotifComponent.PAGINATION]: {},\n    [MotifComponent.SIDE_NAVIGATION]: {},\n    [MotifComponent.SPINNER]: {\n      '--spinner-fg-color': `${m('--button-primary-fg-color')}`,\n    },\n    [MotifComponent.MODAL]: {\n      '--modal-background-color': 'rgba(0,0,0,0.7)',\n      '--modal-close-foreground-color': Blue.V50,\n    },\n    [MotifComponent.ICON_BUTTON]: {\n      '--icon-button-bg-color': Plain.BLACK,\n      '--icon-button-hover-bg-color': Black.V100,\n      '--icon-button-disabled-bg-color': 'rgba(0,0,0,0)',\n    },\n  },\n  [MotifScheme.SECONDARY]: {\n    name: 'Imported secondary',\n    legacyName: 'Black',\n    [MotifComponent.HYPERLINK]: {\n      '--hyperlink-desktop-font-text-decoration': 'underline',\n      '--hyperlink-mobile-font-text-decoration': 'underline',\n      '--hyperlink-mobile-font-weight': 'Medium',\n      '--hyperlink-desktop-font-weight': 'Medium',\n      '--hyperlink-color': `${m('--action-hover-color')}`,\n    },\n    [MotifComponent.ROOT]: {\n      '--box-shadow-s': '0px 4px 8px 0 rgba(0, 0, 0, 0.12)',\n      '--box-shadow-m': '0px 8px 16px 0 rgba(0, 0, 0, 0.12)',\n      '--border-radius-xs': '1px',\n      '--border-radius-s': '4px',\n      '--border-radius-m': '8px',\n      '--border-radius-l': '12px',\n      '--border-radius-xl': '16px',\n      '--spacing-xxxs': '2px',\n      '--spacing-xxs': '4px',\n      '--spacing-xs': '8px',\n      '--spacing-s': '12px',\n      '--spacing-m': '16px',\n      '--spacing-l': '24px',\n      '--spacing-xl': '32px',\n      '--spacing-xxl': '40px',\n      '--spacing-xxxxl': '64px',\n      '--box-shadow-l': '0px 16px 32px 0 #000 12%',\n      '--foreground-color': Blue.V50,\n      '--action-default-color': Black.V50,\n      '--action-hover-color': Black.V100,\n      '--action-active-color': Plain.BLACK,\n    },\n    [MotifComponent.BUTTON]: {\n      '--button-primary-bg-color': Blue.V100,\n      '--button-primary-hover-bg-color': Blue.V100,\n      '--button-primary-border-color': Blue.V100,\n      '--button-primary-hover-border-color': Blue.V100,\n      '--button-secondary-bg-color': Blue.V50,\n      '--button-secondary-hover-bg-color': Blue.V50,\n      '--button-secondary-border-color': Blue.V50,\n      '--button-secondary-hover-border-color': Blue.V50,\n      '--button-flat-fg-color': Blue.V50,\n      '--button-border-radius': `${m('--border-radius-s')}`,\n      '--button-hover-shadow': `${m('--box-shadow-l')}`,\n      '--button-regular-padding': 'var(--spacing-s) var(--spacing-m)',\n      '--button-compact-padding': 'var(--spacing-xs) var(--spacing-m)',\n    },\n    [MotifComponent.HEADER]: {\n      '--global-header-nav-screen-fg-color': Black.V150,\n      '--global-header-fg-color': Gray.V150,\n    },\n    [MotifComponent.BLOCK]: {\n      '--block-eyebrow-color': Blue.V50,\n      '--block-title-color': Blue.V50,\n      '--block-subtitle-color': Blue.V50,\n    },\n    [MotifComponent.TABS]: {\n      '--tabs-underline-color': Black.V100,\n    },\n    [MotifComponent.BREAK]: {},\n    [MotifComponent.ACCORDION]: {\n      '--accordion-header-color': `${m('--foreground-color')}`,\n      '--accordion-divider-border-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.QUOTE]: {\n      '--quote-bg-color': Blue.V50,\n    },\n    [MotifComponent.FOOTER]: {\n      '--footer-bg-color': `${m('--background-color')}`,\n      '--footer-divider-border-color': `${m('--foreground-color')}`,\n      '--footer-bar-bg-color': `${m('--background-color')}`,\n    },\n    [MotifComponent.SUMMARY_CARD]: {\n      '--summary-card-title-color': Plain.BLACK,\n      '--summary-card-description-color': Black.V100,\n      '--summary-card-bg-color': Blue.V50,\n      '--summary-card-border-radius': `${m('--border-radius-l')}`,\n    },\n    [MotifComponent.FORM]: {\n      '--form-input-bg-color': Blue.V50,\n      '--form-input-border-radius': `${m('--border-radius-xl')}`,\n      '--form-input-padding': 'var(--spacing-m) var(--spacing-l)',\n      '--form-grid-gap': `${m('--spacing-m')}`,\n    },\n    [MotifComponent.FOOTNOTE]: {\n      '--footnote-fg-color': Black.V50,\n      '--footnote-bg-color': Blue.V50,\n    },\n    [MotifComponent.DROPDOWN_MENU]: {\n      '--dropdown-menu-bg-color': Black.V100,\n    },\n    [MotifComponent.BANNER]: {\n      '--banner-bg-color': `${m('--background-color')}`,\n      '--banner-fg-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.CONTENT]: {\n      '--content-mobile-grid-gap': `${m('--spacing-l')}`,\n    },\n    [MotifComponent.MOSAIC]: {\n      '--mosaic-border-radius': '24px',\n      '--mosaic-grid-gap': '32px',\n      '--mosaic-highlight-color': Blue.V100,\n      '--mosaic-title-color': Blue.V50,\n    },\n    [MotifComponent.MEDIA]: {},\n    [MotifComponent.SEARCH]: {\n      '--search-no-results-bg-color': Gray.V100,\n      '--search-no-results-fg-color': Black.V150,\n    },\n    [MotifComponent.PAGINATION]: {\n      '--pagination-text-active-color': Blue.V50,\n      '--pagination-text-color': Gray.V300,\n      '--pagination-text-hover-color': Gray.V250,\n    },\n    [MotifComponent.SPINNER]: {\n      '--spinner-fg-color': `${m('--button-primary-fg-color')}`,\n    },\n    [MotifComponent.MODAL]: {\n      '--modal-background-color': 'rgba(0,0,0,0.7)',\n      '--modal-close-background-color': Plain.BLACK,\n      '--modal-close-foreground-color': Blue.V50,\n    },\n    [MotifComponent.ICON_BUTTON]: {\n      '--icon-button-hover-bg-color': Gray.V150,\n      '--icon-button-disabled-bg-color': Black.V50,\n      '--icon-button-border-color': Plain.WHITE,\n      '--icon-button-fg-color': Plain.BLACK,\n      '--icon-button-disabled-fg-color': Gray.V300,\n    },\n  },\n  [MotifScheme.TERTIARY]: {\n    name: 'Imported tertiary',\n    legacyName: 'White',\n    [MotifComponent.HYPERLINK]: {\n      '--hyperlink-desktop-font-text-decoration': 'underline',\n      '--hyperlink-mobile-font-text-decoration': 'underline',\n      '--hyperlink-mobile-font-weight': 'Medium',\n      '--hyperlink-desktop-font-weight': 'Medium',\n      '--hyperlink-color': `${m('--action-hover-color')}`,\n    },\n    [MotifComponent.ROOT]: {\n      '--box-shadow-s': '0px 4px 8px 0 rgba(0, 0, 0, 0.12)',\n      '--box-shadow-m': '0px 8px 16px 0 rgba(0, 0, 0, 0.12)',\n      '--border-radius-xs': '1px',\n      '--border-radius-s': '4px',\n      '--border-radius-m': '8px',\n      '--border-radius-l': '12px',\n      '--border-radius-xl': '16px',\n      '--spacing-xxxs': '2px',\n      '--spacing-xxs': '4px',\n      '--spacing-xs': '8px',\n      '--spacing-s': '12px',\n      '--spacing-m': '16px',\n      '--spacing-l': '24px',\n      '--spacing-xl': '32px',\n      '--spacing-xxl': '40px',\n      '--spacing-xxxxl': '64px',\n      '--box-shadow-l': '0px 16px 32px 0 #000 12%',\n      '--background-color': Blue.V50,\n      '--action-default-color': Black.V50,\n      '--action-hover-color': Black.V100,\n    },\n    [MotifComponent.BUTTON]: {\n      '--button-primary-bg-color': Blue.V100,\n      '--button-primary-hover-bg-color': Blue.V100,\n      '--button-primary-border-color': Blue.V100,\n      '--button-primary-hover-border-color': Blue.V100,\n      '--button-secondary-fg-color': Blue.V50,\n      '--button-border-radius': `${m('--border-radius-s')}`,\n      '--button-hover-shadow': `${m('--box-shadow-l')}`,\n      '--button-regular-padding': 'var(--spacing-s) var(--spacing-m)',\n      '--button-compact-padding': 'var(--spacing-xs) var(--spacing-m)',\n    },\n    [MotifComponent.HEADER]: {\n      '--global-header-nav-screen-bg-color': Blue.V50,\n      '--global-header-nav-screen-fg-color': Black.V150,\n      '--global-header-fg-color': Black.V150,\n    },\n    [MotifComponent.BLOCK]: {\n      '--block-eyebrow-color': Plain.BLACK,\n      '--block-title-color': Plain.BLACK,\n      '--block-subtitle-color': Plain.BLACK,\n    },\n    [MotifComponent.TABS]: {},\n    [MotifComponent.BREAK]: {},\n    [MotifComponent.ACCORDION]: {\n      '--accordion-header-color': `${m('--foreground-color')}`,\n      '--accordion-divider-border-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.QUOTE]: {\n      '--quote-bg-color': Blue.V50,\n    },\n    [MotifComponent.FOOTER]: {\n      '--footer-bg-color': `${m('--background-color')}`,\n    },\n    [MotifComponent.SUMMARY_CARD]: {\n      '--summary-card-title-color': Plain.BLACK,\n      '--summary-card-description-color': Black.V100,\n      '--summary-card-bg-color': Blue.V50,\n      '--summary-card-border-radius': `${m('--border-radius-l')}`,\n    },\n    [MotifComponent.FORM]: {\n      '--form-input-bg-color': Blue.V50,\n      '--form-input-border-radius': `${m('--border-radius-xl')}`,\n      '--form-input-padding': 'var(--spacing-m) var(--spacing-l)',\n      '--form-grid-gap': `${m('--spacing-m')}`,\n    },\n    [MotifComponent.FOOTNOTE]: {\n      '--footnote-fg-color': Black.V50,\n      '--footnote-bg-color': Blue.V50,\n    },\n    [MotifComponent.DROPDOWN_MENU]: {\n      '--dropdown-menu-bg-color': Blue.V50,\n    },\n    [MotifComponent.BANNER]: {\n      '--banner-bg-color': `${m('--background-color')}`,\n      '--banner-fg-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.CONTENT]: {\n      '--content-mobile-grid-gap': `${m('--spacing-l')}`,\n    },\n    [MotifComponent.MOSAIC]: {\n      '--mosaic-border-radius': '24px',\n      '--mosaic-grid-gap': '32px',\n      '--mosaic-highlight-color': Blue.V100,\n      '--mosaic-title-color': Blue.V50,\n    },\n    [MotifComponent.MEDIA]: {},\n    [MotifComponent.SEARCH]: {\n      '--search-no-results-bg-color': Gray.V100,\n      '--search-no-results-fg-color': Black.V150,\n    },\n    [MotifComponent.PAGINATION]: {},\n    [MotifComponent.SPINNER]: {\n      '--spinner-fg-color': `${m('--button-primary-fg-color')}`,\n    },\n    [MotifComponent.MODAL]: {\n      '--modal-background-color': 'rgba(0,0,0,0.7)',\n      '--modal-close-background-color': Plain.BLACK,\n      '--modal-close-foreground-color': Blue.V50,\n    },\n    [MotifComponent.ICON_BUTTON]: {\n      '--icon-button-bg-color': Plain.BLACK,\n      '--icon-button-hover-bg-color': Black.V100,\n      '--icon-button-disabled-bg-color': 'rgba(0,0,0,0)',\n    },\n  },\n  [MotifScheme.QUATERNARY]: {\n    name: 'Imported quaternary',\n    legacyName: 'Gray',\n    [MotifComponent.HYPERLINK]: {\n      '--hyperlink-desktop-font-text-decoration': 'underline',\n      '--hyperlink-mobile-font-text-decoration': 'underline',\n      '--hyperlink-mobile-font-weight': 'Medium',\n      '--hyperlink-desktop-font-weight': 'Medium',\n      '--hyperlink-color': `${m('--action-hover-color')}`,\n    },\n    [MotifComponent.ROOT]: {\n      '--box-shadow-s': '0px 4px 8px 0 rgba(0, 0, 0, 0.12)',\n      '--box-shadow-m': '0px 8px 16px 0 rgba(0, 0, 0, 0.12)',\n      '--border-radius-xs': '1px',\n      '--border-radius-s': '4px',\n      '--border-radius-m': '8px',\n      '--border-radius-l': '12px',\n      '--border-radius-xl': '16px',\n      '--spacing-xxxs': '2px',\n      '--spacing-xxs': '4px',\n      '--spacing-xs': '8px',\n      '--spacing-s': '12px',\n      '--spacing-m': '16px',\n      '--spacing-l': '24px',\n      '--spacing-xl': '32px',\n      '--spacing-xxl': '40px',\n      '--spacing-xxxxl': '64px',\n      '--box-shadow-l': '0px 16px 32px 0 #000 12%',\n      '--action-default-color': Black.V50,\n      '--action-hover-color': Black.V100,\n    },\n    [MotifComponent.BUTTON]: {\n      '--button-primary-bg-color': Blue.V100,\n      '--button-primary-hover-bg-color': Blue.V100,\n      '--button-primary-border-color': Blue.V100,\n      '--button-primary-hover-border-color': Blue.V100,\n      '--button-secondary-bg-color': Blue.V50,\n      '--button-secondary-hover-bg-color': Blue.V50,\n      '--button-secondary-border-color': Blue.V50,\n      '--button-secondary-hover-border-color': Blue.V50,\n      '--button-border-radius': `${m('--border-radius-s')}`,\n      '--button-hover-shadow': `${m('--box-shadow-l')}`,\n      '--button-regular-padding': 'var(--spacing-s) var(--spacing-m)',\n      '--button-compact-padding': 'var(--spacing-xs) var(--spacing-m)',\n    },\n    [MotifComponent.HEADER]: {\n      '--global-header-nav-screen-bg-color': Blue.V50,\n      '--global-header-nav-screen-fg-color': Black.V150,\n      '--global-header-fg-color': Black.V150,\n    },\n    [MotifComponent.BLOCK]: {\n      '--block-eyebrow-color': Blue.V200,\n      '--block-title-color': Blue.V200,\n      '--block-subtitle-color': Plain.BLACK,\n    },\n    [MotifComponent.TABS]: {},\n    [MotifComponent.BREAK]: {},\n    [MotifComponent.ACCORDION]: {\n      '--accordion-header-color': `${m('--foreground-color')}`,\n      '--accordion-divider-border-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.QUOTE]: {\n      '--quote-bg-color': Blue.V50,\n    },\n    [MotifComponent.FOOTER]: {\n      '--footer-bg-color': `${m('--background-color')}`,\n      '--footer-bar-bg-color': `${m('--background-color')}`,\n    },\n    [MotifComponent.SUMMARY_CARD]: {\n      '--summary-card-title-color': Plain.BLACK,\n      '--summary-card-description-color': Black.V100,\n      '--summary-card-bg-color': Blue.V50,\n      '--summary-card-border-radius': `${m('--border-radius-l')}`,\n    },\n    [MotifComponent.FORM]: {\n      '--form-input-bg-color': Blue.V50,\n      '--form-input-border-radius': `${m('--border-radius-xl')}`,\n      '--form-input-padding': 'var(--spacing-m) var(--spacing-l)',\n      '--form-grid-gap': `${m('--spacing-m')}`,\n    },\n    [MotifComponent.FOOTNOTE]: {\n      '--footnote-fg-color': Black.V50,\n      '--footnote-bg-color': Blue.V50,\n    },\n    [MotifComponent.DROPDOWN_MENU]: {\n      '--dropdown-menu-bg-color': Blue.V50,\n    },\n    [MotifComponent.BANNER]: {\n      '--banner-bg-color': `${m('--background-color')}`,\n      '--banner-fg-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.CONTENT]: {\n      '--content-mobile-grid-gap': `${m('--spacing-l')}`,\n    },\n    [MotifComponent.MOSAIC]: {\n      '--mosaic-border-radius': '24px',\n      '--mosaic-grid-gap': '32px',\n      '--mosaic-highlight-color': Blue.V100,\n      '--mosaic-title-color': Blue.V50,\n    },\n    [MotifComponent.MEDIA]: {},\n    [MotifComponent.SEARCH]: {\n      '--search-no-results-bg-color': Gray.V100,\n      '--search-no-results-fg-color': Black.V150,\n    },\n    [MotifComponent.PAGINATION]: {},\n    [MotifComponent.SPINNER]: {\n      '--spinner-fg-color': `${m('--button-primary-fg-color')}`,\n    },\n    [MotifComponent.MODAL]: {\n      '--modal-background-color': 'rgba(0,0,0,0.7)',\n      '--modal-close-background-color': Plain.BLACK,\n      '--modal-close-foreground-color': Blue.V50,\n    },\n    [MotifComponent.ICON_BUTTON]: {\n      '--icon-button-bg-color': Plain.BLACK,\n      '--icon-button-hover-bg-color': Black.V100,\n      '--icon-button-disabled-bg-color': 'rgba(0,0,0,0)',\n    },\n  },\n});\n", "import {\n  type Motif,\n  Black,\n  defaultMotif,\n  FontFamily,\n  Gray,\n  Green,\n  m,\n  mergeMotifs,\n  MotifComponent,\n  MotifScheme,\n  Plain,\n} from '@snapchat/snap-design-system-marketing';\n\n/** Generated by figmaTokensImport on 2023-10-30T22:41:44.824Z. */\nexport const customGreenMotif: Motif = mergeMotifs(defaultMotif, {\n  name: 'Green',\n  fontFamily: FontFamily.GRAPHIK,\n  [MotifScheme.DEFAULT]: {\n    name: 'Imported Deafult',\n    legacyName: 'Yellow',\n    [MotifComponent.ROOT]: {\n      '--border-radius-l': '12px',\n      '--border-radius-xl': '16px',\n      '--background-color': Green.V100,\n      '--foreground-color': '#042500',\n    },\n    [MotifComponent.BUTTON]: {\n      '--button-primary-bg-color': '#042500',\n      '--button-primary-hover-bg-color': '#042500',\n      '--button-primary-border-color': '#042500',\n      '--button-primary-hover-border-color': '#042500',\n      '--button-primary-fg-color': '#f0fff0',\n      '--button-secondary-bg-color': '#f0fff0',\n      '--button-secondary-hover-bg-color': '#f0fff0',\n      '--button-secondary-border-color': '#f0fff0',\n      '--button-secondary-hover-border-color': '#f0fff0',\n      '--button-secondary-fg-color': '#042500',\n      '--button-flat-fg-color': `${m('--foreground-color')}`,\n      '--button-border-radius': `${m('--border-radius-m')}`,\n      '--button-hover-shadow': `${m('--box-shadow-l')}`,\n      '--button-regular-padding': 'var(--spacing-s) var(--spacing-xl)',\n      '--button-compact-padding': 'var(--spacing-xs) var(--spacing-m)',\n    },\n    [MotifComponent.HEADER]: {},\n    [MotifComponent.BLOCK]: {\n      '--block-eyebrow-color': '#042500',\n      '--block-title-color': '#042500',\n      '--block-subtitle-color': '#042500',\n    },\n    [MotifComponent.BREAK]: {},\n    [MotifComponent.ACCORDION]: {\n      '--accordion-header-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.QUOTE]: {\n      '--quote-bg-color': '#f0fff0',\n      '--quote-fg-color': '#042500',\n    },\n    [MotifComponent.FOOTER]: {\n      '--footer-bg-color': `${m('--background-color')}`,\n      '--footer-bar-bg-color': `${m('--background-color')}`,\n    },\n    [MotifComponent.FORM]: {\n      '--form-grid-gap': `${m('--spacing-m')}`,\n    },\n    [MotifComponent.FOOTNOTE]: {},\n    [MotifComponent.DROPDOWN_MENU]: {\n      '--dropdown-menu-bg-color': '#f0fff0',\n      '--dropdown-item-fg-color': Black.V50,\n      '--dropdown-item-fg-active-color': '#042500',\n      '--dropdown-item-bg-hover-color': '#c6dfc6',\n    },\n    [MotifComponent.BANNER]: {\n      '--banner-bg-color': `${m('--background-color')}`,\n      '--banner-fg-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.HYPERLINK]: {\n      '--hyperlink-color': Black.V100,\n    },\n    [MotifComponent.MOSAIC]: {\n      '--mosaic-border-radius': '24px',\n      '--mosaic-grid-gap': '32px',\n      '--mosaic-highlight-color': Green.V100,\n      '--mosaic-title-color': '#f0fff0',\n    },\n    [MotifComponent.SEARCH]: {\n      '--search-no-results-bg-color': '#c6dfc6',\n    },\n    [MotifComponent.PAGINATION]: {\n      '--pagination-text-active-color': '#042500',\n    },\n    [MotifComponent.SPINNER]: {\n      '--spinner-fg-color': `${m('--button-primary-fg-color')}`,\n    },\n    [MotifComponent.MODAL]: {\n      '--modal-background-color': 'rgba(0,0,0,0.7)',\n      '--modal-close-background-color': '#042500',\n      '--modal-close-foreground-color': '#f0fff0',\n    },\n    [MotifComponent.ICON_BUTTON]: {\n      '--icon-button-bg-color': Plain.BLACK,\n      '--icon-button-hover-bg-color': Black.V100,\n      '--icon-button-disabled-bg-color': 'rgba(0,0,0,0)',\n    },\n  },\n  [MotifScheme.SECONDARY]: {\n    name: 'Imported secondary',\n    legacyName: 'Black',\n    [MotifComponent.ROOT]: {\n      '--box-shadow-s': '0px 4px 8px 0 rgba(0, 0, 0, 0.12)',\n      '--box-shadow-m': '0px 8px 16px 0 rgba(0, 0, 0, 0.12)',\n      '--border-radius-xs': '1px',\n      '--border-radius-s': '4px',\n      '--border-radius-m': '8px',\n      '--border-radius-l': '12px',\n      '--border-radius-xl': '16px',\n      '--spacing-xxxs': '2px',\n      '--spacing-xxs': '4px',\n      '--spacing-xs': '8px',\n      '--spacing-s': '12px',\n      '--spacing-m': '16px',\n      '--spacing-l': '24px',\n      '--spacing-xl': '32px',\n      '--spacing-xxl': '40px',\n      '--spacing-xxxxl': '64px',\n      '--background-color': '#042500',\n      '--foreground-color': '#f0fff0',\n    },\n    [MotifComponent.BUTTON]: {\n      '--button-primary-bg-color': Green.V100,\n      '--button-primary-hover-bg-color': Green.V100,\n      '--button-primary-border-color': Green.V100,\n      '--button-primary-hover-border-color': Green.V100,\n      '--button-primary-fg-color': '#042500',\n      '--button-secondary-bg-color': '#f0fff0',\n      '--button-secondary-hover-bg-color': '#f0fff0',\n      '--button-secondary-border-color': '#f0fff0',\n      '--button-secondary-hover-border-color': '#f0fff0',\n      '--button-secondary-fg-color': '#042500',\n      '--button-flat-fg-color': '#f0fff0',\n      '--button-border-radius': `${m('--border-radius-m')}`,\n      '--button-hover-shadow': `${m('--box-shadow-l')}`,\n      '--button-regular-padding': 'var(--spacing-s) var(--spacing-xl)',\n      '--button-compact-padding': 'var(--spacing-xs) var(--spacing-m)',\n    },\n    [MotifComponent.HEADER]: {\n      '--global-header-fg-color': Gray.V150,\n    },\n    [MotifComponent.BLOCK]: {\n      '--block-eyebrow-color': '#f0fff0',\n      '--block-title-color': '#f0fff0',\n      '--block-subtitle-color': '#f0fff0',\n    },\n    [MotifComponent.BREAK]: {},\n    [MotifComponent.ACCORDION]: {\n      '--accordion-header-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.QUOTE]: {\n      '--quote-bg-color': '#f0fff0',\n      '--quote-fg-color': '#042500',\n    },\n    [MotifComponent.FOOTER]: {\n      '--footer-bg-color': `${m('--background-color')}`,\n      '--footer-bar-bg-color': `${m('--background-color')}`,\n      '--footer-divider-border-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.FORM]: {\n      '--form-grid-gap': `${m('--spacing-m')}`,\n    },\n    [MotifComponent.FOOTNOTE]: {\n      '--footnote-fg-color': Gray.V300,\n      '--footnote-bg-color': Plain.WHITE,\n    },\n    [MotifComponent.DROPDOWN_MENU]: {\n      '--dropdown-menu-bg-color': Black.V100,\n      '--dropdown-item-fg-color': Gray.V250,\n      '--dropdown-item-fg-active-color': '#f0fff0',\n    },\n    [MotifComponent.BANNER]: {\n      '--banner-bg-color': `${m('--background-color')}`,\n      '--banner-fg-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.HYPERLINK]: {\n      '--hyperlink-color': Gray.V200,\n    },\n    [MotifComponent.MOSAIC]: {\n      '--mosaic-border-radius': '24px',\n      '--mosaic-grid-gap': '32px',\n      '--mosaic-highlight-color': Green.V100,\n      '--mosaic-title-color': '#f0fff0',\n    },\n    [MotifComponent.SEARCH]: {\n      '--search-no-results-bg-color': '#c6dfc6',\n      '--search-no-results-fg-color': Black.V150,\n    },\n    [MotifComponent.PAGINATION]: {\n      '--pagination-text-active-color': '#f0fff0',\n      '--pagination-text-color': Gray.V300,\n      '--pagination-text-hover-color': Gray.V250,\n    },\n    [MotifComponent.SPINNER]: {\n      '--spinner-fg-color': `${m('--button-primary-fg-color')}`,\n    },\n    [MotifComponent.MODAL]: {\n      '--modal-background-color': 'rgba(0,0,0,0.7)',\n      '--modal-close-background-color': '#042500',\n      '--modal-close-foreground-color': '#f0fff0',\n    },\n    [MotifComponent.ICON_BUTTON]: {\n      '--icon-button-hover-bg-color': Gray.V150,\n      '--icon-button-disabled-bg-color': Black.V50,\n      '--icon-button-border-color': Plain.WHITE,\n      '--icon-button-fg-color': Plain.BLACK,\n      '--icon-button-disabled-fg-color': Gray.V300,\n    },\n  },\n  [MotifScheme.TERTIARY]: {\n    name: 'Imported tertiary',\n    legacyName: 'White',\n    [MotifComponent.ROOT]: {\n      '--box-shadow-s': '0px 4px 8px 0 rgba(0, 0, 0, 0.12)',\n      '--box-shadow-m': '0px 8px 16px 0 rgba(0, 0, 0, 0.12)',\n      '--border-radius-xs': '1px',\n      '--border-radius-s': '4px',\n      '--border-radius-m': '8px',\n      '--border-radius-l': '12px',\n      '--border-radius-xl': '16px',\n      '--spacing-xxxs': '2px',\n      '--spacing-xxs': '4px',\n      '--spacing-xs': '8px',\n      '--spacing-s': '12px',\n      '--spacing-m': '16px',\n      '--spacing-l': '24px',\n      '--spacing-xl': '32px',\n      '--spacing-xxl': '40px',\n      '--spacing-xxxxl': '64px',\n      '--background-color': '#f0fff0',\n      '--foreground-color': '#042500',\n    },\n    [MotifComponent.BUTTON]: {\n      '--button-primary-bg-color': Green.V100,\n      '--button-primary-hover-bg-color': Green.V100,\n      '--button-primary-border-color': Green.V100,\n      '--button-primary-hover-border-color': Green.V100,\n      '--button-primary-fg-color': '#042500',\n      '--button-secondary-bg-color': '#042500',\n      '--button-secondary-hover-bg-color': '#042500',\n      '--button-secondary-border-color': '#042500',\n      '--button-secondary-hover-border-color': '#042500',\n      '--button-secondary-fg-color': '#f0fff0',\n      '--button-flat-fg-color': '#042500',\n      '--button-border-radius': `${m('--border-radius-m')}`,\n      '--button-hover-shadow': `${m('--box-shadow-l')}`,\n      '--button-regular-padding': 'var(--spacing-s) var(--spacing-xl)',\n      '--button-compact-padding': 'var(--spacing-xs) var(--spacing-m)',\n    },\n    [MotifComponent.HEADER]: {\n      '--global-header-nav-screen-bg-color': '#f0fff0',\n      '--global-header-fg-color': Black.V150,\n    },\n    [MotifComponent.BLOCK]: {\n      '--block-eyebrow-color': '#042500',\n      '--block-title-color': '#042500',\n      '--block-subtitle-color': '#042500',\n    },\n    [MotifComponent.ACCORDION]: {\n      '--accordion-header-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.QUOTE]: {\n      '--quote-bg-color': '#f0fff0',\n      '--quote-fg-color': '#042500',\n    },\n    [MotifComponent.FOOTER]: {\n      '--footer-bg-color': `${m('--background-color')}`,\n      '--footer-bar-bg-color': '#c6dfc6',\n    },\n    [MotifComponent.FORM]: {\n      '--form-grid-gap': `${m('--spacing-m')}`,\n    },\n    [MotifComponent.FOOTNOTE]: {\n      '--footnote-fg-color': Gray.V300,\n      '--footnote-bg-color': Plain.WHITE,\n    },\n    [MotifComponent.DROPDOWN_MENU]: {\n      '--dropdown-menu-bg-color': '#f0fff0',\n      '--dropdown-item-fg-color': Black.V50,\n      '--dropdown-item-fg-active-color': '#042500',\n      '--dropdown-item-bg-hover-color': '#c6dfc6',\n    },\n    [MotifComponent.BANNER]: {\n      '--banner-bg-color': `${m('--background-color')}`,\n      '--banner-fg-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.HYPERLINK]: {\n      '--hyperlink-color': Black.V100,\n    },\n    [MotifComponent.MOSAIC]: {\n      '--mosaic-border-radius': '24px',\n      '--mosaic-grid-gap': '32px',\n      '--mosaic-highlight-color': Green.V100,\n      '--mosaic-title-color': '#f0fff0',\n    },\n    [MotifComponent.SEARCH]: {\n      '--search-no-results-bg-color': '#c6dfc6',\n      '--search-no-results-fg-color': Black.V150,\n    },\n    [MotifComponent.PAGINATION]: {\n      '--pagination-text-active-color': '#042500',\n    },\n    [MotifComponent.SPINNER]: {\n      '--spinner-fg-color': `${m('--button-primary-fg-color')}`,\n    },\n    [MotifComponent.MODAL]: {\n      '--modal-background-color': 'rgba(0,0,0,0.7)',\n      '--modal-close-background-color': '#042500',\n      '--modal-close-foreground-color': '#f0fff0',\n    },\n    [MotifComponent.ICON_BUTTON]: {\n      '--icon-button-bg-color': Plain.BLACK,\n      '--icon-button-hover-bg-color': Black.V100,\n      '--icon-button-disabled-bg-color': 'rgba(0,0,0,0)',\n    },\n  },\n  [MotifScheme.QUATERNARY]: {\n    name: 'Imported quaternary',\n    legacyName: 'Gray',\n    [MotifComponent.ROOT]: {\n      '--box-shadow-s': '0px 4px 8px 0 rgba(0, 0, 0, 0.12)',\n      '--box-shadow-m': '0px 8px 16px 0 rgba(0, 0, 0, 0.12)',\n      '--border-radius-xs': '1px',\n      '--border-radius-s': '4px',\n      '--border-radius-m': '8px',\n      '--border-radius-l': '12px',\n      '--border-radius-xl': '16px',\n      '--spacing-xxxs': '2px',\n      '--spacing-xxs': '4px',\n      '--spacing-xs': '8px',\n      '--spacing-s': '12px',\n      '--spacing-m': '16px',\n      '--spacing-l': '24px',\n      '--spacing-xl': '32px',\n      '--spacing-xxl': '40px',\n      '--spacing-xxxxl': '64px',\n      '--background-color': '#c6dfc6',\n      '--foreground-color': '#042500',\n    },\n    [MotifComponent.BUTTON]: {\n      '--button-primary-bg-color': Green.V100,\n      '--button-primary-hover-bg-color': Green.V100,\n      '--button-primary-border-color': Green.V100,\n      '--button-primary-hover-border-color': Green.V100,\n      '--button-primary-fg-color': '#042500',\n      '--button-secondary-bg-color': '#f0fff0',\n      '--button-secondary-hover-bg-color': '#f0fff0',\n      '--button-secondary-border-color': '#f0fff0',\n      '--button-secondary-hover-border-color': '#f0fff0',\n      '--button-secondary-fg-color': '#042500',\n      '--button-flat-fg-color': '#042500',\n      '--button-border-radius': `${m('--border-radius-m')}`,\n      '--button-hover-shadow': `${m('--box-shadow-l')}`,\n      '--button-regular-padding': 'var(--spacing-s) var(--spacing-xl)',\n      '--button-compact-padding': 'var(--spacing-xs) var(--spacing-m)',\n    },\n    [MotifComponent.HEADER]: {\n      '--global-header-nav-screen-bg-color': '#f0fff0',\n      '--global-header-fg-color': Black.V150,\n    },\n    [MotifComponent.BLOCK]: {\n      '--block-eyebrow-color': '#042500',\n      '--block-title-color': '#042500',\n      '--block-subtitle-color': '#042500',\n    },\n    [MotifComponent.BREAK]: {},\n    [MotifComponent.ACCORDION]: {\n      '--accordion-header-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.QUOTE]: {\n      '--quote-bg-color': '#f0fff0',\n      '--quote-fg-color': '#042500',\n    },\n    [MotifComponent.FOOTER]: {\n      '--footer-bg-color': `${m('--background-color')}`,\n      '--footer-bar-bg-color': `${m('--background-color')}`,\n    },\n    [MotifComponent.FORM]: {\n      '--form-grid-gap': `${m('--spacing-m')}`,\n    },\n    [MotifComponent.FOOTNOTE]: {\n      '--footnote-fg-color': Gray.V300,\n      '--footnote-bg-color': Plain.WHITE,\n    },\n    [MotifComponent.DROPDOWN_MENU]: {\n      '--dropdown-menu-bg-color': '#f0fff0',\n      '--dropdown-item-fg-color': Black.V50,\n      '--dropdown-item-fg-active-color': '#042500',\n      '--dropdown-item-bg-hover-color': '#c6dfc6',\n    },\n    [MotifComponent.BANNER]: {\n      '--banner-bg-color': `${m('--background-color')}`,\n      '--banner-fg-color': `${m('--foreground-color')}`,\n    },\n    [MotifComponent.HYPERLINK]: {\n      '--hyperlink-color': Black.V100,\n    },\n    [MotifComponent.MOSAIC]: {\n      '--mosaic-border-radius': '24px',\n      '--mosaic-grid-gap': '32px',\n      '--mosaic-highlight-color': Green.V100,\n      '--mosaic-title-color': '#f0fff0',\n    },\n    [MotifComponent.SEARCH]: {\n      '--search-no-results-bg-color': '#c6dfc6',\n      '--search-no-results-fg-color': Black.V150,\n    },\n    [MotifComponent.PAGINATION]: {\n      '--pagination-text-active-color': '#042500',\n    },\n    [MotifComponent.SPINNER]: {\n      '--spinner-fg-color': `${m('--button-primary-fg-color')}`,\n    },\n    [MotifComponent.MODAL]: {\n      '--modal-background-color': 'rgba(0,0,0,0.7)',\n      '--modal-close-background-color': '#042500',\n      '--modal-close-foreground-color': '#f0fff0',\n    },\n    [MotifComponent.ICON_BUTTON]: {\n      '--icon-button-bg-color': Plain.BLACK,\n      '--icon-button-hover-bg-color': Black.V100,\n      '--icon-button-disabled-bg-color': 'rgba(0,0,0,0)',\n    },\n  },\n});\n", "import { useImperativeEffect } from '@snapchat/core-browser';\nimport { Site } from '@snapchat/mw-common';\nimport { Yellow } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { Config } from '../../config';\nimport { snapHeaderBackgroundVar } from '../../sites/snap/styleConstants';\n\nexport const StyleHacks: FC = () => {\n  useImperativeEffect(() => {\n    switch (Config.site) {\n      case Site.SNAP:\n        // HACK: We need to add a default override for the header background color for future snap.com\n        // we modified the body on snap home this needs to be set on the body element\n        // see snapConfig.ts for more details DONT TOUCH please :)\n        document.body.parentElement?.style.setProperty(snapHeaderBackgroundVar, Yellow.V100);\n    }\n  }, []);\n\n  return null;\n};\n", "import { BrowserFeaturesContext } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\nimport { Helmet } from 'react-helmet-async';\n\nexport const Viewport: FC = () => {\n  const features = useContext(BrowserFeaturesContext);\n  let viewport = 'width=device-width, initial-scale=1';\n\n  const isIphone = features.getLowEntropyHints().platform === 'iOS';\n\n  if (isIphone) {\n    viewport += ', viewport-fit=cover';\n  }\n\n  return (\n    <Helmet>\n      <meta name=\"viewport\" content={viewport} />\n    </Helmet>\n  );\n};\n", "import type { BackgroundColor } from '@snapchat/snap-design-system-marketing';\nimport type { FC, PropsWithChildren } from 'react';\nimport { useState } from 'react';\n\nimport type { PageLayoutContextProps } from './PageLayoutContext';\nimport { FooterView, HeaderView, PageLayoutContext } from './PageLayoutContext';\n\nexport class SessionPageLayoutContextProps implements PageLayoutContextProps {\n  public footerView: FooterView = FooterView.FULL_FOOTER;\n  public headerView: HeaderView = HeaderView.FULL_HEADER;\n  public headerBackgroundColorOverride?: BackgroundColor;\n\n  /** @override */\n  setFooterView = (footerView: FooterView): void => {\n    this.footerView = footerView;\n  };\n\n  /** @override */\n  setHeaderView = (headerView: HeaderView): void => {\n    this.headerView = headerView;\n  };\n\n  /** @override */\n  setHeaderBackgroundColorOverride = (color?: BackgroundColor): void => {\n    this.headerBackgroundColorOverride = color;\n  };\n}\n\n/**\n * Provider for the context that holds Layout settings that are stored in the `Page` object.\n *\n * This setup where a page (a sibling of header and footer) needs to affect header and footer is why\n * we have to bend through a context.\n *\n * What complicates matters, is that you cannot affect a sibling component when rendering, so it has\n * to be done via other means, like doing an update inside of a `useEffect`. However this doesn't\n * work on the server-side. The quick and dirty solution is to pass the `sessionProps` from a\n * previous render to the provider, so that it can be used to set the initial state.\n */\nexport const PageLayoutProvider: FC<\n  { sessionValue: PageLayoutContextProps } & PropsWithChildren\n> = ({ sessionValue, children }) => {\n  const [footerView, setFooterView] = useState(sessionValue.footerView ?? FooterView.FULL_FOOTER);\n  const [headerView, setHeaderView] = useState(sessionValue.headerView ?? HeaderView.FULL_HEADER);\n  const [headerBackgroundColorOverride, setHeaderBackgroundColorOverride] = useState<\n    BackgroundColor | undefined\n  >(sessionValue.headerBackgroundColorOverride);\n\n  const pageContext: PageLayoutContextProps = {\n    footerView,\n    headerView,\n    headerBackgroundColorOverride,\n    setFooterView: (footerView: FooterView) => {\n      setFooterView(footerView);\n      sessionValue.setFooterView?.(footerView);\n    },\n    setHeaderView: (headerView: HeaderView) => {\n      setHeaderView(headerView);\n      sessionValue.setHeaderView?.(headerView);\n    },\n    setHeaderBackgroundColorOverride: (bgColor?: BackgroundColor) => {\n      setHeaderBackgroundColorOverride(bgColor);\n      sessionValue.setHeaderBackgroundColorOverride?.(bgColor);\n    },\n  };\n\n  return <PageLayoutContext.Provider value={pageContext}>{children}</PageLayoutContext.Provider>;\n};\n", "import { gql } from '@apollo/client';\nimport type { Criteria, CustomFooterSocialCollection } from '@snapchat/mw-contentful-schema';\nimport type { BackgroundColor } from '@snapchat/snap-design-system-marketing';\nimport type { ContentfulSysProps, ContentfulTypedSysProps } from 'src/types/contentful';\nimport type { Items } from 'src/types/Items';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { criteriaFragment } from '../Experiment/experimentQuery';\nimport { fragments as imageFragments } from '../Image';\nimport type { ImageDataProps } from '../Image/types';\nimport { imageButtonFragment } from '../ImageButton/imageButtonQuery';\n\n// =================================================================================================\n// Footer Item Fragment\n// =================================================================================================\nexport const footerItemFragment = gql`\n  fragment FooterItemAll on FooterItem {\n    ...ContentfulSysId\n    title\n    url\n    analytics {\n      ...ContentfulSysId\n      label\n    }\n    criteria {\n      ...CriteriaAll\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${criteriaFragment}\n`;\n\nexport type CustomFooterItemProps = ContentfulTypedSysProps<'FooterItem'> & {\n  title: string;\n  url: string;\n  analytics?: { label: string; sys: { id: string } };\n  criteria?: Criteria;\n};\n\n// =================================================================================================\n// Footer Local Dropdown Fragment\n// =================================================================================================\nexport const footerLocaleDropdownFragment = gql`\n  fragment FooterLocaleDropdownAll on FooterLocaleDropdown {\n    ...ContentfulSysId\n    title\n    criteria {\n      ...CriteriaAll\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${criteriaFragment}\n`;\n\nexport type CustomFooterLocaleDropdownProps = ContentfulSysProps & {\n  __typename: 'FooterLocaleDropdown';\n  title: string;\n  criteria?: Criteria;\n};\n\n// =================================================================================================\n// Footer Cookie Settings Link Fragment\n// =================================================================================================\nexport const footerCookiesSettingsLinkFragment = gql`\n  fragment FooterCookiesSettingsLinkAll on FooterCookiesSettingsLink {\n    ...ContentfulSysId\n    title\n    criteria {\n      ...CriteriaAll\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${criteriaFragment}\n`;\n\nexport type CustomFooterCookiesSettingsLinkProps = ContentfulSysProps & {\n  __typename: 'FooterCookiesSettingsLink';\n  title: string;\n  criteria?: Criteria;\n};\n\n// =================================================================================================\n// Footer Group Link Fragment\n// =================================================================================================\nexport const footerGroupFragment = gql`\n  fragment FooterGroupAll on FooterGroup {\n    ...ContentfulSysId\n    __typename\n    title\n    groupKey\n    itemsCollection(limit: 10) {\n      items {\n        __typename\n        ... on FooterItem {\n          ...FooterItemAll\n        }\n\n        ... on FooterLocaleDropdown {\n          ...FooterLocaleDropdownAll\n        }\n\n        ... on FooterCookiesSettingsLink {\n          ...FooterCookiesSettingsLinkAll\n        }\n      }\n    }\n    analytics {\n      ...ContentfulSysId\n      label\n    }\n    criteria {\n      ...CriteriaAll\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${footerItemFragment}\n  ${footerLocaleDropdownFragment}\n  ${footerCookiesSettingsLinkFragment}\n  ${criteriaFragment}\n`;\n\ntype CustomFooterGroupItemsCollectionProps = {\n  items: Array<\n    CustomFooterItemProps | CustomFooterLocaleDropdownProps | CustomFooterCookiesSettingsLinkProps\n  >;\n};\n\nexport type CustomFooterGroupProps = {\n  sys: { id: string };\n  title: string;\n  groupKey: string;\n  itemsCollection: CustomFooterGroupItemsCollectionProps;\n  analytics?: { label: string };\n  criteria?: Criteria;\n};\n\n// =================================================================================================\n// Custom FooterFragment\n// =================================================================================================\nexport const customFooterFragment = gql`\n  fragment CustomFooterAll on CustomFooter {\n    ...ContentfulSysId\n    columnsCollection(limit: 10) {\n      items {\n        ... on FooterGroup {\n          ...FooterGroupAll\n        }\n      }\n    }\n    barCollection(limit: 10) {\n      items {\n        ... on FooterGroup {\n          ...FooterGroupAll\n        }\n      }\n    }\n    backgroundColor\n    logo {\n      ...ImageAll\n    }\n    url\n    socialLabel\n    socialCollection(limit: 10) {\n      items {\n        ... on ImageButton {\n          ...ImageButtonAll\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${imageButtonFragment}\n  ${imageFragments.all}\n  ${footerGroupFragment}\n`;\n\n// =================================================================================================\n// Footer Query\n// =================================================================================================\nexport const customFooterQuery = gql`\n  query FooterQuery($preview: Boolean!, $locale: String!) {\n    customFooterCollection(preview: $preview, locale: $locale, limit: 1) {\n      items {\n        ...CustomFooterAll\n      }\n    }\n  }\n\n  ${customFooterFragment}\n`;\n\nexport type FooterLogoItemProps = ImageDataProps & {\n  url?: string;\n};\n\nexport type FooterQueryResponse = {\n  customFooterCollection: ContentfulSysProps & {\n    items: Array<{\n      columnsCollection: Items<CustomFooterGroupProps>;\n      barCollection: Items<CustomFooterGroupProps>;\n      socialCollection: CustomFooterSocialCollection;\n      backgroundColor: BackgroundColor;\n      logo: FooterLogoItemProps | null;\n      url: string | null;\n      socialLabel: string | null | undefined;\n    }>;\n  };\n};\n", "import { gql } from '@apollo/client';\nimport type {\n  Analytics,\n  Criteria,\n  NavigatorCallsToActionItem,\n} from '@snapchat/mw-contentful-schema';\nimport type { BackgroundColor } from '@snapchat/snap-design-system-marketing';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport type { Items } from '../../types/Items';\nimport type { RichText } from '../../types/RichText';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as analyticsFragments } from '../Analytics';\nimport type { AnalyticsDataProps } from '../Analytics/types';\nimport { ctaFragment } from '../CallToAction';\nimport { criteriaFragment } from '../Experiment';\nimport type { ImageDataProps } from '../Image';\nimport { fragments as mediaFragments } from '../Media';\nimport { navigationCtaFragment } from '../NavigationCta';\n\n// =================================================================================================\n// Navigator Item Fragment\n// =================================================================================================\n\nexport const navigatorItemFragment = gql`\n  fragment NavigatorItemFieldsOnly on NavigatorItem {\n    ...ContentfulSysId\n    title {\n      json\n    }\n    url\n    analytics {\n      ...AnalyticsAll\n    }\n    hideCriteria {\n      ...CriteriaAll\n    }\n  }\n  ${analyticsFragments.all}\n  ${contentfulSysIdFragment}\n  ${criteriaFragment}\n`;\n\nexport interface NavigatorItemData extends ContentfulTypedSysProps<'navigatorItem'> {\n  title: RichText;\n  url: string;\n  analytics: Analytics;\n  hideCriteria?: Criteria;\n}\n\n// =================================================================================================\n// Navigator Fragment\n// =================================================================================================\n\nexport const navigatorFragment = gql`\n  fragment NavigatorLocal on Navigator {\n    ...ContentfulSysId\n    title\n    logoV2 {\n      ... on Image {\n        ...ImageAll\n      }\n    }\n    theme\n    backgroundColor\n    navigatorItemsCollection(limit: 15) {\n      items {\n        ...NavigatorItemFieldsOnly\n        # Note: We're not using any sort of recursive definition to avoid hitting the query\n        # complexity limit.\n        navigatorItemsCollection(limit: 15) {\n          items {\n            ...NavigatorItemFieldsOnly\n            navigatorItemsCollection(limit: 15) {\n              items {\n                # Note: this is 3x nested to support the 3x nested nav for forbusiness.snapchat.com\n                ...NavigatorItemFieldsOnly\n              }\n              total\n            }\n          }\n          total\n        }\n      }\n      total\n    }\n    callsToActionCollection(limit: 10) {\n      items {\n        ... on CallToAction {\n          ...CallToActionAll\n        }\n        ... on NavigationCallToAction {\n          ...NavigationCta\n        }\n      }\n    }\n    url\n    analytics {\n      ...AnalyticsAll\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${analyticsFragments.all}\n  ${navigatorItemFragment}\n  ${ctaFragment}\n  ${navigationCtaFragment}\n  ${mediaFragments.all}\n`;\n\nexport interface NavigatorItemWithChildrenData extends NavigatorItemData {\n  navigatorItemsCollection: Items<NavigatorItemWithChildrenData>;\n}\n\ninterface NavigatorData extends ContentfulTypedSysProps<'navigator'> {\n  title: string;\n  logoV2: ImageDataProps;\n  theme?: BackgroundColor;\n  backgroundColor?: BackgroundColor;\n  callsToActionCollection: Items<NavigatorCallsToActionItem>;\n  navigatorItemsCollection: Items<NavigatorItemWithChildrenData>;\n  url?: string;\n  analytics?: AnalyticsDataProps;\n}\n\n// =================================================================================================\n// Navigator Query\n// =================================================================================================\n\nexport const navigatorCollectionQuery = gql`\n  query NavigatorCollectionQuery($preview: Boolean!, $locale: String!) {\n    navigatorCollection(preview: $preview, locale: $locale, limit: 1) {\n      items {\n        ...NavigatorLocal\n      }\n      total\n    }\n  }\n  ${navigatorFragment}\n`;\n\nexport interface NavigatorCollectionData {\n  navigatorCollection: Items<NavigatorData>;\n}\n", "import { gql } from '@apollo/client';\nimport type { SitewideConfigurationCollection } from '@snapchat/mw-contentful-schema';\n\nimport { fragments as analyticsFragments } from '../../components/Analytics';\nimport { ctaFragment } from '../../components/CallToAction';\nimport { criteriaFragment } from '../../components/Experiment';\nimport {\n  customFooterFragment,\n  footerCookiesSettingsLinkFragment,\n  footerGroupFragment,\n  footerItemFragment,\n  footerLocaleDropdownFragment,\n} from '../../components/FooterWrapper/query';\nimport { navigatorFragment, navigatorItemFragment } from '../../components/Header/headerQuery';\nimport { navigationCtaFragment } from '../../components/NavigationCta';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\n// Custom nav item fragment since we need to alias title since its rich text :(\n// S U P E R HACKY but it works for now because we need to alias title to richTitle\n// but in the code we have to un-alias it back to title... so I'd rather only do it\n// at one level as opposed to the nested levels.\nexport const navigatorItemRichTitleFragment = gql`\n  fragment NavigatorItemsRichTitle on NavigatorItem {\n    ...ContentfulSysId\n    richTitle: title {\n      json\n    }\n    url\n    analytics {\n      ...AnalyticsAll\n    }\n    hideCriteria {\n      ...CriteriaAll\n    }\n  }\n  ${analyticsFragments.all}\n  ${contentfulSysIdFragment}\n  ${criteriaFragment}\n`;\n\nconst sitewideValuesFragment = gql`\n  fragment SitewideValuesAll on SitewideValues {\n    ...ContentfulSysId\n    navigationBar {\n      ...NavigatorLocal\n    }\n    customFooter {\n      ...CustomFooterAll\n    }\n    featureFlags {\n      ...ContentfulSysId\n      featureFlags\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\nconst sitewideConfigurationFragment = gql`\n  fragment SitewideConfiguration on SitewideConfiguration {\n    ...ContentfulSysId\n    reference {\n      ... on SitewideValues {\n        ...SitewideValuesAll\n      }\n      ... on SitewideExperiment {\n        ...ContentfulSysId\n        default {\n          ...SitewideValuesAll\n        }\n        seed\n        variantsCollection(limit: 5) {\n          items {\n            ...ContentfulSysId\n            trafficStartRange\n            trafficEndRange\n            analyticsId\n            replacementsCollection(limit: 10) {\n              items {\n                ...ContentfulSysId\n                replacementTarget {\n                  ...ContentfulSysId\n                }\n                replacement {\n                  ... on Navigator {\n                    ...ContentfulSysId\n                  }\n                  # copy depth from headerQuery.ts\n                  ... on NavigatorItem {\n                    ...NavigatorItemsRichTitle\n                    navigatorItemsCollection(limit: 15) {\n                      items {\n                        ...NavigatorItemFieldsOnly\n                        navigatorItemsCollection(limit: 15) {\n                          items {\n                            # Note: this is 3x nested to support the 3x nested nav for forbusiness.snapchat.com\n                            ...NavigatorItemFieldsOnly\n                          }\n                          total\n                        }\n                      }\n                      total\n                    }\n                  }\n                  ... on NavigationCallToAction {\n                    ...NavigationCta\n                  }\n                  ... on CallToAction {\n                    ...CallToActionAll\n                  }\n                  ... on FeatureFlags {\n                    ...ContentfulSysId\n                    featureFlags\n                  }\n                  ... on CustomFooter {\n                    ...CustomFooterAll\n                  }\n                  ... on FooterCookiesSettingsLink {\n                    ...FooterCookiesSettingsLinkAll\n                  }\n                  ... on FooterGroup {\n                    ...FooterGroupAll\n                  }\n                  ... on FooterItem {\n                    ...FooterItemAll\n                  }\n                  ... on FooterLocaleDropdown {\n                    ...FooterLocaleDropdownAll\n                  }\n                }\n              }\n            }\n          }\n        }\n        analyticsId\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${navigatorFragment}\n  ${customFooterFragment}\n  ${sitewideValuesFragment}\n  ${navigationCtaFragment}\n  ${navigatorItemRichTitleFragment}\n  ${navigatorItemFragment}\n  ${ctaFragment}\n  ${footerGroupFragment}\n  ${footerCookiesSettingsLinkFragment}\n  ${footerLocaleDropdownFragment}\n  ${footerItemFragment}\n  ${customFooterFragment}\n`;\n\nexport const sitewideConfigurationQuery = gql`\n  query SitewideConfigurationQuery($preview: Boolean!, $locale: String!) {\n    sitewideConfigurationCollection(preview: $preview, locale: $locale, limit: 1) {\n      items {\n        ...SitewideConfiguration\n      }\n    }\n  }\n  ${sitewideConfigurationFragment}\n`;\n\nexport interface SitewideConfigurationData {\n  sitewideConfigurationCollection: SitewideConfigurationCollection;\n}\n", "import type {\n  Entry,\n  EntryCollection,\n  NavigatorItem,\n  NavigatorItemTitle,\n  SitewideVariant,\n} from '@snapchat/mw-contentful-schema';\nimport clone from 'lodash-es/clone';\nimport cloneDeep from 'lodash-es/cloneDeep';\nimport head from 'lodash-es/head';\nimport type { FC, PropsWithChildren } from 'react';\n\nimport { logInfo } from '../../helpers/logging';\nimport { useAbExperiments } from '../../hooks/useAbExperiments';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { useSingleCallback } from '../../hooks/useSingleCallback';\nimport type { SitewideConfigurationContextProps } from './SitewideConfigurationContext';\nimport { SitewideConfigurationContext } from './SitewideConfigurationContext';\nimport type { SitewideConfigurationData } from './SitewideConfigurationQuery';\nimport { sitewideConfigurationQuery } from './SitewideConfigurationQuery';\n\ntype NavigatorItemRichTitle = NavigatorItem & { richTitle?: NavigatorItemTitle };\n\nconst isEntry = (value: unknown): value is Entry => {\n  return typeof value === 'object' && (value as Entry).sys?.id !== undefined;\n};\n\nconst isCollection = (value: unknown): value is EntryCollection => {\n  return typeof value === 'object' && Array.isArray((value as EntryCollection).items);\n};\n\n/**\n * Max depth to prevent infinite recursion. Chose 30 since during testing, we only hit 7 levels\n * deep, so 50 way more than enough.\n */\nconst maxDepth = 50;\n\nfunction replaceEntries<T extends Entry>(\n  entry: T,\n  replacementMap: Record<string, unknown>,\n  depth = 0\n): T | undefined {\n  // We have to clone here because the original entry may be frozen\n  let returnVal: T | undefined = clone(entry);\n\n  if (depth > maxDepth) {\n    console.error('Max depth reached in replaceEntries');\n    return returnVal;\n  }\n\n  // If entry is in the replacement map, replace itself with the replacement\n  if (entry.sys.id in replacementMap) {\n    // If undefined, that means the item was removed\n    if (replacementMap[entry.sys.id] === undefined) {\n      return undefined;\n    }\n    returnVal = replacementMap[entry.sys.id] as T;\n    // Entry replaced, now run replaceEntries on the new entry in case it has things that also need to be replaced\n    return replaceEntries(returnVal, replacementMap, depth + 1);\n  }\n\n  // Entry does not need to be replaced, check if it has any nested entries that need to be replaced\n  for (const key in returnVal) {\n    const value = returnVal[key];\n\n    if (key.endsWith('Collection') && isCollection(value)) {\n      // Call replace entries on all the items in the collection, and then filter out undefineds\n      const newItems = value.items\n        .map(item => replaceEntries(item as T, replacementMap, depth + 1))\n        .filter(entry => !!entry);\n      returnVal[key] = { ...value, items: newItems };\n    } else if (isEntry(value)) {\n      // casting this here because we know it's an entry, and undefined is a valid value\n      returnVal[key] = replaceEntries(\n        value,\n        replacementMap,\n        depth + 1\n      ) as (typeof returnVal)[typeof key];\n    }\n  }\n\n  return returnVal;\n}\n\n/**\n * Provider for the sitewide configuration context. Queries contentful and sets its own value. Holds\n * the values for Navigation Bar, Footer, and Feature Flags.\n */\nexport const SitewideConfigurationProvider: FC<PropsWithChildren> = ({ children }) => {\n  const decideAbExperiment = useAbExperiments();\n  const { data } = useContentfulQuery<SitewideConfigurationData>(sitewideConfigurationQuery);\n  const singleCallback = useSingleCallback();\n\n  const getSitewideValues = (\n    data?: SitewideConfigurationData\n  ): SitewideConfigurationContextProps | undefined => {\n    if (!data) return;\n\n    if (!data?.sitewideConfigurationCollection?.items) return;\n\n    const reference = head(data.sitewideConfigurationCollection.items)?.reference;\n\n    if (!reference) return;\n\n    if (reference.__typename === 'SitewideValues') {\n      return { sitewideValues: reference };\n    }\n\n    if (reference.__typename === 'SitewideExperiment') {\n      if (!reference.default) {\n        return;\n      }\n\n      let finalValues = reference.default;\n\n      const replacementMap: Record<string, Entry | undefined> = {};\n\n      if (!reference.variantsCollection?.items) {\n        return { sitewideValues: finalValues };\n      }\n\n      // used to only pick the first variant selected for cases\n      // where the user is bucketed into multiple variants (e.g. bucket is exactly 50)\n      const { isThinking, decision: variant } = decideAbExperiment<SitewideVariant>({\n        seed: reference.seed ?? reference.sys.id,\n        variants: reference.variantsCollection.items,\n      });\n\n      // If there are replacements defined\n      if (variant?.replacementsCollection?.items) {\n        // For each replacement\n        for (const replacement of variant.replacementsCollection.items) {\n          // If both the replacement target and is set\n          if (replacement?.replacementTarget?.sys.id) {\n            // If somehow replacement has no typename... skip it\n            if (!replacement.replacementTarget.__typename) {\n              continue;\n            }\n\n            if (replacement?.replacement === undefined) {\n              replacementMap[replacement.replacementTarget.sys.id] = undefined;\n              continue;\n            }\n\n            // ULTRA HACK to rename richTitle to title due to gql fragment naming issues\n            // TODO: Describe naming issues. It's possible to rename fields in gql.\n            // TODO: Remove this once the title is fixed/updated to not have rich text\n            if (replacement.replacement.__typename === 'NavigatorItem') {\n              const finalReplacement: NavigatorItemRichTitle = clone(replacement.replacement);\n              finalReplacement.title = finalReplacement.richTitle;\n\n              replacementMap[replacement.replacementTarget.sys.id] = {\n                ...finalReplacement,\n              };\n            } else {\n              // Add the replacement to the map\n              replacementMap[replacement.replacementTarget.sys.id] = {\n                ...replacement.replacement,\n              };\n            }\n          }\n        }\n\n        singleCallback({\n          key: 'sitewideExperimentExposure',\n          callback: () =>\n            logInfo({\n              eventCategory: 'Experiment',\n              eventAction: 'sitewideExperimentExposure',\n              eventLabel: `${reference.analyticsId ?? 'Unknown'}:${\n                variant.analyticsId ?? 'Unknown'\n              }`,\n            }),\n          dependencies: [reference.analyticsId, variant.analyticsId],\n        });\n      }\n\n      if (!isThinking && !variant) {\n        singleCallback({\n          key: 'sitewideExperimentExposure',\n          callback: () =>\n            logInfo({\n              eventCategory: 'Experiment',\n              eventAction: 'sitewideExperimentExposure',\n              eventLabel: `${reference.analyticsId ?? 'Unknown'}:default`,\n            }),\n          dependencies: [reference.analyticsId],\n        });\n      }\n\n      if (Object.entries(replacementMap).length > 0) {\n        finalValues = cloneDeep(reference.default);\n\n        const processedFinalValues = replaceEntries(finalValues, replacementMap);\n\n        if (processedFinalValues) {\n          finalValues = processedFinalValues;\n        }\n      }\n\n      return { sitewideValues: finalValues };\n    }\n\n    return;\n  };\n\n  const value: SitewideConfigurationContextProps = getSitewideValues(data) || {};\n\n  return (\n    <SitewideConfigurationContext.Provider value={value}>\n      {children}\n    </SitewideConfigurationContext.Provider>\n  );\n};\n", "import type { ErrorInfo, ReactNode } from 'react';\nimport type React from 'react';\nimport { Component } from 'react';\n\nimport { logError } from './helpers/logging';\nimport { Error500 } from './pages/Error500/Error500';\nimport { customFetch } from './utils/fetch/customFetch';\nimport type { Tracer } from './utils/tracing';\n\ninterface ErrorProps {\n  tracer?: Tracer;\n  children?: ReactNode;\n}\n\ninterface ErrorState {\n  hasError: boolean;\n}\n\nexport class ErrorBoundary extends Component<ErrorProps, ErrorState> {\n  constructor(props: ErrorProps) {\n    super(props);\n\n    this.state = {\n      hasError: false,\n    };\n  }\n\n  componentDidCatch(error: Error, errorInfo: ErrorInfo): void {\n    this.setState({\n      hasError: true,\n    });\n\n    // This returns a 599 response which lets us see volume of uncaught errors as 599 responses.\n    const trace = this.props.tracer?.startSpan('fetchError');\n    void customFetch('/error').then(_ => trace?.endSpan());\n\n    // This logs to sentry, graphene, console etc.\n    logError({\n      component: 'UncaughtError',\n      error: error ?? undefined,\n      context: {\n        componentStack: errorInfo?.componentStack,\n      },\n    });\n  }\n\n  render(): React.ReactNode {\n    const { children } = this.props;\n    const { hasError } = this.state;\n\n    if (hasError) {\n      return <Error500 />;\n    }\n\n    return children;\n  }\n}\n", "import { css } from '@emotion/css';\nimport type { FC } from 'react';\n\nconst error500Css = css`\n  display: flex;\n  align-items: center;\n  flex-direction: column;\n  justify-content: center;\n  overflow-x: hidden;\n  position: relative;\n  width: 100%;\n  height: 100vh;\n  text-align: center;\n  background-color: #fffc00;\n\n  h1 {\n    font-size: 7em;\n    font-weight: 600;\n    margin-bottom: 40px;\n  }\n\n  p {\n    margin-top: 0.5em;\n  }\n\n  a {\n    text-decoration: none;\n  }\n`;\n\nexport const Error500: FC = () => {\n  return (\n    <div className={error500Css}>\n      <h1>500</h1>\n      <h2>Oops! Something went wrong</h2>\n\n      <p>\n        <a href=\"/\">Go to home</a>\n      </p>\n    </div>\n  );\n};\n", "import { parseError } from '@snapchat/core';\nimport { useImperativeEffect } from '@snapchat/core-browser';\nimport type { FC } from 'react';\n\n/** Our standard location for font files. */\nconst fontLinkToCheck = 'https://web-platform.snap.com/fonts/font.graphik.css';\n\n/** This location reads the same file, but without CDN, so is slower. */\nconst fontLinkAlternative =\n  'https://snap-design-system.storage.googleapis.com/fonts/font.graphik.css';\n\n/**\n * Returns whether we're able to load a file from the CDN.\n *\n * If this fails, we assume that it's blocked by an adblock (i.e. uBlock Origin).\n */\nconst canLoadFonts = () =>\n  fetch(fontLinkToCheck)\n    .then(() => true)\n    .catch(error => {\n      const message = parseError(error).message;\n\n      if (message === 'Failed to fetch') {\n        console.warn(\n          `Your browser is blocking \"${\n            new URL(fontLinkToCheck).hostname\n          }\" which hosts our fonts. Allow this domain through your content blocker to see this website the way it was meant to be seen.`\n        );\n      } else {\n        console.error('Failed to fetch fonts', error);\n      }\n\n      return false;\n    });\n\n/**\n * Checks that we are able to load a file from the CDN where we serve our fonts from. If that fails,\n * we try to add a font link to the alternative location (a slower one).\n *\n * TODO: Convert to a hook.\n */\nexport const FontChecker: FC = () => {\n  useImperativeEffect(() => {\n    void canLoadFonts().then(canLoad => {\n      if (canLoad) return;\n\n      const newLink = document.createElement('link');\n      newLink.type = 'text/css';\n      newLink.rel = 'stylesheet';\n      newLink.href = fontLinkAlternative;\n\n      document.head.appendChild(newLink);\n    });\n  }, []);\n\n  return null;\n};\n", "/**\n * List of expected properties `Function` should have and these properties shouldn't be copied into\n * the synthetic exported module.\n */\nconst nativeProps = new Set([\n  // Class properties\n  'constructor',\n  '__defineGetter__',\n  '__defineSetter__',\n  'hasOwnProperty',\n  '__lookupGetter__',\n  '__lookupSetter__',\n  'isPrototypeOf',\n  'propertyIsEnumerable',\n  'toString',\n  'valueOf',\n  '__proto__',\n  'toLocaleString',\n  // Function properties\n  'caller',\n  'callee',\n  'arguments',\n]);\n\n/**\n * Returns a synthetic export module with the `default` export extracted.\n *\n * This is to fix the type vs exported module mismatch in 2 scenarios:\n *\n * - For legacy modules that do both: export things and separately export a `default`.\n * - For importing CJS modules from ESM.\n *\n * There are many types of different behavior here: babel, esbuild, webpack, all treat the same\n * esModuleInterop differently, and even switch depending what version is used!\n *\n * This function is a workaround for that.\n *\n * Example 1:\n *\n * Importing `chalk@5` from ESM, has exports like `{ yellow, green }` etc. But importing the same\n * module from CJS, has exports like `{ default: { default: { yellow, green } } }`. The most\n * confusing part is that it's not a module that's the default export, but a function.\n *\n * Example 2:\n *\n * Blizzard is compiled with babel, which makes synthetic modules with `__esModule` property. So\n * when importing from ESM, it has exports like `{ __esModule, initBlizzard, default }`. But when\n * importing from CJS, it has `{ default }`.\n *\n * Example 3:\n *\n * Contentful uses namespace exports. When imported from ESM, it has `{ createClient,\n * createGlobalOptions }`. But when imported from CJS it has `{ contentful, default }`.\n *\n * See some history in: See https://github.com/evanw/esbuild/pull/1849\n *\n * @param maybeModule - The module to extract the default export from.\n * @param targetImport - The key to search for when recursively expanding nested default exports.\n */\nexport function importDefault<T extends object>(maybeModule?: T, targetImport?: string): T {\n  if (typeof maybeModule !== 'object') return maybeModule as unknown as T;\n\n  // Cloning the object because in ESM land modules aren't extensible.\n  // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cant_define_property_object_not_extensible\n  const result = { ...maybeModule } as Record<string, unknown>;\n  let current: unknown = maybeModule;\n\n  // Recursively expand nested default exports.\n  // Note that the longest chain we have is 2 (for chalk), so adding 1 extra\n  // iteration for unexpected cases.\n  for (let i = 0; i < 3; i++) {\n    if (current && typeof current !== 'object') break;\n\n    // Quit if can't expand current further.\n    if (!('default' in (current as object))) break;\n\n    // Quit if already have the target import.\n    if (targetImport && targetImport in result) break;\n\n    const defaultExport = (current as { default: unknown })['default'];\n\n    if (typeof defaultExport === 'object') {\n      Object.assign(result, defaultExport);\n    } else if (typeof defaultExport === 'function') {\n      for (const prop of Object.getOwnPropertyNames(Object.getPrototypeOf(defaultExport))) {\n        if (nativeProps.has(prop)) continue;\n        result[prop] = defaultExport[prop as keyof typeof defaultExport];\n      }\n    } else {\n      // All other types do not need to be expanded.\n      break;\n    }\n\n    current = defaultExport;\n  }\n\n  // Reseals the result.\n  return Object.preventExtensions(result) as T;\n}\n", "import type { initBlizzard, logEvent as logEventType } from '@snapchat/blizzard-lite';\nimport type { AnyEventBase, UserTrackedEvent, WebPlatformEvent } from '@snapchat/blizzard-schema';\nimport { parseError } from '@snapchat/core';\nimport { importDefault } from '@snapchat/import-tools';\nimport type {\n  BaseEventListenerProps,\n  EmptyObject,\n  LoggedEvent,\n  WebTrackingPermission,\n} from '@snapchat/logging';\nimport { AbstractEventListener, LoggingEventType } from '@snapchat/logging';\n\n/** Base interface for any Web-driven event logs. */\nexport type BlizzardBaseEvent = UserTrackedEvent &\n  AnyEventBase & {\n    event_name: string;\n  };\n\ntype BlizzardInitArgs = Parameters<typeof initBlizzard>[0];\n\nexport type BlizzardClientEventListenerProps<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject\n> = {\n  isProd: boolean;\n  cookieDomain: string;\n\n  /**\n   * Transforms from an event type on the event bus to a typed Blizzad Event.\n   *\n   * Because all blizzard event are custom, there's nothing generic that this listener can set\n   * except pass the data from the formatter directly to the blizzard collector.\n   */\n  eventFormatter: (\n    event: LoggedEvent<CustomEvents>,\n    context: Partial<LoggingContext>\n  ) => BlizzardBaseEvent[] | BlizzardBaseEvent | undefined;\n} & BaseEventListenerProps<LoggingContext, CustomEvents> &\n  Omit<BlizzardInitArgs, 'appEnvironment' | 'cookieArgs' | 'debugLoggingEnabled' | 'mode'>;\n\nexport class BlizzardClientEventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends WebTrackingPermission = WebTrackingPermission\n> extends AbstractEventListener<LoggingContext, CustomEvents, LoggingPermission> {\n  protected readonly props: BlizzardClientEventListenerProps<LoggingContext, CustomEvents>;\n\n  protected logV4?: typeof logEventType;\n\n  constructor(props: BlizzardClientEventListenerProps<LoggingContext, CustomEvents>) {\n    super({\n      ...props,\n      requiredPermissions: ['logging', 'performance'],\n    });\n    this.props = props;\n    this.init = this.init.bind(this); // So this is usable when inherited.\n    this.logEventInternal = this.logEventInternal.bind(this);\n  }\n\n  /**\n   * Written as a member instead of a const so it can be called by inherited fns.\n   *\n   * @override\n   */\n  protected async init(): Promise<void> {\n    // NOTE: We import the blizzad dynamically here because it depends on some\n    // packages like @snapchat/web-i18n and uuid that do not import well\n    // and break Rollup and Jest.\n    const blizzardImport = await import('@snapchat/blizzard-lite');\n    const blizzard = importDefault(blizzardImport);\n    const { initBlizzard, logEvent, CollectionMode } = blizzard;\n\n    initBlizzard({\n      ...this.props,\n      appEnvironment: {\n        appType: 'WEB_DESKTOP', // For web logging this is always WEB_DESKTOP.\n        appBuild: 'PROD', // For web logging the Snapchat App is always PROD.\n      },\n      cookiesArgs: {\n        customDomain: this.props.isProd ? this.props.cookieDomain : undefined,\n      },\n      debugLoggingEnabled: false, // Use console logger.\n      mode: this.props.isProd ? CollectionMode.PROD : CollectionMode.STAGE,\n    });\n\n    this.logV4 = logEvent;\n  }\n\n  /** @override */\n  protected logEventInternal(\n    event: LoggedEvent<CustomEvents>,\n    context: Partial<LoggingContext>\n  ): void {\n    const formattedEvents = this.props.eventFormatter(event, context);\n\n    if (!formattedEvents) return;\n\n    const formattedEventsArray = Array.isArray(formattedEvents)\n      ? formattedEvents\n      : [formattedEvents];\n\n    for (const formattedEvent of formattedEventsArray) {\n      this.logV4!(formattedEvent);\n    }\n  }\n\n  /** @override */\n  protected flushInternal: () => Promise<unknown> = () => Promise.resolve();\n}\n\nexport const formatWebPlatformEvent = (\n  event: LoggedEvent<EmptyObject>,\n  _context: EmptyObject\n): BlizzardBaseEvent | undefined => {\n  const uri = new URL(window.location.href);\n\n  const data: WebPlatformEvent = {\n    event_name: 'WEB_PLATFORM_EVENT',\n    host: uri.host,\n    path: uri.pathname,\n    query: JSON.stringify(Object.fromEntries(uri.searchParams.entries())),\n  };\n\n  switch (event.type) {\n    case LoggingEventType.DEBUG: {\n      return {\n        ...data,\n        type: LoggingEventType.DEBUG,\n        component: event.component,\n        message: event.message,\n      };\n    }\n\n    case LoggingEventType.ERROR: {\n      const error = parseError(event.error);\n\n      return {\n        ...data,\n        type: LoggingEventType.ERROR,\n        component: event.component,\n        message: error.message,\n        action: event.action,\n      };\n    }\n\n    case LoggingEventType.INFO: {\n      return {\n        ...data,\n        type: LoggingEventType.INFO,\n        component: event.component,\n        action: event.action,\n        label: event.label,\n      };\n    }\n\n    case LoggingEventType.TIMING: {\n      return {\n        ...data,\n        type: LoggingEventType.TIMING,\n        component: event.component,\n        variable: event.variable,\n        value: event.valueMs.toString(),\n        label: event.label,\n      };\n    }\n\n    case LoggingEventType.VALUE: {\n      return {\n        ...data,\n        type: LoggingEventType.VALUE,\n        component: event.component,\n        variable: event.variable,\n        value: event.value.toString(),\n        label: event.label,\n      };\n    }\n\n    case LoggingEventType.WARNING: {\n      return {\n        ...data,\n        type: LoggingEventType.WARNING,\n        component: event.component,\n        message: event.message,\n        action: event.action,\n      };\n    }\n  }\n\n  return undefined;\n};\n\n/**\n * This table needs sensible privacy filters.\n *\n * Per blizzard privacy policy, you cannot store any personal information in the logs.\n *\n * See http://go.sc-corp.net/blizzard-privacy\n */\nexport function getCommonBlizzardClientEventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends WebTrackingPermission = WebTrackingPermission\n>(\n  props: BlizzardClientEventListenerProps\n): BlizzardClientEventListener<LoggingContext, CustomEvents, LoggingPermission> {\n  return new BlizzardClientEventListener<LoggingContext, CustomEvents, LoggingPermission>({\n    isProd: props.isProd,\n    cookieDomain: props.cookieDomain,\n    eventFormatter: formatWebPlatformEvent,\n  });\n}\n", "import type { BasePermission, ConsoleEventListenerProps, EmptyObject } from '@snapchat/logging';\nimport { ConsoleEventListener, LoggingEventType } from '@snapchat/logging';\n\ntype Props<LoggingContext, OtherEvents> = Omit<\n  ConsoleEventListenerProps<LoggingContext, OtherEvents>,\n  'messageTransform'\n>;\n\nexport class ConsoleClientEventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  OtherEvents extends EmptyObject = EmptyObject,\n  Permission extends BasePermission = BasePermission\n> extends ConsoleEventListener<LoggingContext, OtherEvents, Permission> {\n  private readonly clientProps: Props<LoggingContext, OtherEvents>;\n\n  constructor(props: Props<LoggingContext, OtherEvents> = {}) {\n    super({\n      ...props,\n      messageTransform: ConsoleClientEventListener.messageTransform,\n    });\n    this.clientProps = props;\n  }\n\n  /** Adds colors See https://www.w3docs.com/snippets/javascript/colors-in-javascript-console.html */\n  protected static messageTransform = (type: LoggingEventType, message: unknown[]): unknown[] => {\n    if (message.length < 1) return message;\n\n    const firstMessage = message.shift();\n    const firstMessageWithColor = `%c${firstMessage}`;\n\n    switch (type) {\n      case LoggingEventType.ERROR:\n        return [firstMessageWithColor, 'color: bloodOrange;', ...message];\n      case LoggingEventType.WARNING:\n        return [firstMessageWithColor, 'color: yellow;', ...message];\n      case LoggingEventType.TIMING:\n        return [firstMessageWithColor, 'color: dodgerblue;', ...message];\n      case LoggingEventType.VALUE:\n        return [firstMessageWithColor, 'color: dodgerblue;', ...message];\n      case LoggingEventType.DEBUG:\n        return [firstMessageWithColor, 'color: gray;', ...message];\n      case LoggingEventType.CUSTOM:\n        return [firstMessageWithColor, 'font-weight: bold;', ...message];\n      default:\n        return [firstMessage, ...message];\n    }\n  };\n}\n", "import type {\n  DataLayerEventListenerProps,\n  DataLayerLoggingPermissions,\n  EmptyObject,\n} from '@snapchat/logging';\nimport { AbstractDataLayerEventListener } from '@snapchat/logging';\n\ndeclare global {\n  interface Window {\n    dataLayer?: unknown[];\n  }\n}\n\n/**\n * Interface for the dataLayer events in Google Analytics 4.\n *\n * NOTE: This is purposely kept vague to make it easier to send custom events.\n */\nexport type GtagEvent =\n  | ['js', Date, Record<string, unknown>?]\n  // See https://developers.google.com/tag-platform/gtagjs/reference#get\n  | ['get', string, string, (value: string) => void]\n  // See https://developers.google.com/tag-platform/gtagjs/reference#set\n  | ['set', Record<string, unknown>?]\n  // See https://developers.google.com/tag-platform/gtagjs/reference#config\n  | ['config', string, Record<string, unknown>?]\n  // See https://developers.google.com/tag-platform/gtagjs/reference#consent\n  | ['consent', string, Record<string, unknown>?]\n  // See https://developers.google.com/tag-platform/gtagjs/reference#event\n  | ['event', string, Record<string, unknown>?];\n\ninterface GoogleAnalytics4ClientEventListenerProps<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject\n> extends Omit<DataLayerEventListenerProps<LoggingContext, CustomEvents, GtagEvent>, 'dataLayer'> {\n  gaId: string;\n  nonce?: string;\n  /**\n   * See\n   * https://developers.google.com/analytics/devguides/collection/ga4/set-up-ecommerce#verify-data\n   */\n  debugMode?: boolean;\n  /** See https://developers.google.com/analytics/devguides/collection/ga4/views?client_type=gtag */\n  sendPageView?: boolean;\n  /** See https://developers.google.com/analytics/devguides/collection/ga4/user-id?client_type=gtag */\n  userId?: string;\n  /** Clock (for testing). */\n  clock?: () => number;\n}\n\n/**\n * Adds a callback to a GA4 event.\n *\n * Appends to the array if there aren't any param objects. If there is a param object, sets the\n * callback on it.\n */\nexport function addGa4EventCallback(event: GtagEvent, callback: () => void): boolean {\n  switch (event[0]) {\n    case 'get':\n    // falls through\n    case 'set':\n      // No callback required.\n      return false;\n  }\n  // API documentation: https://developers.google.com/tag-platform/gtagjs/reference/parameters\n\n  // If the event already has an object param,\n  // l.e. event = ['event', 'foo', { bar: 'buzz' }],\n  // Then we need to append the callback params to it.\n  if (!event[2]) event[2] = {};\n  event[2].event_callback = callback;\n  event[2].event_timeout = 2_000; /* ms */\n\n  // TODO: Merge event_callback if there's one already specified in the event.\n\n  return true;\n}\n\n/**\n * Note that even though gtag() just adds arguments to window.dataLayer, However in GA44, events\n * HAVE to be wrapped in an Arguments constructor. This is not a requirement in GTM, but seems to be\n * one for GA4.\n */\nfunction gtag(..._args: unknown[]) {\n  // biome-ignore lint/style/noArguments: Doesn't seem to work w/ rest args because the types expects instance of \"Arguments\".\n  // biome-ignore lint/correctness/noUndeclaredVariables: Every function technically has \"arguments\" in scope.\n  window.dataLayer!.push(arguments);\n}\n\n/**\n * Event listener that sends events to Google Analytics 4.\n *\n * Requires the caller to format their own events (sadly) since GA can be configured with any\n * object.\n */\nexport class GoogleAnalytics4ClientEventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends DataLayerLoggingPermissions = DataLayerLoggingPermissions\n> extends AbstractDataLayerEventListener<\n  LoggingContext,\n  CustomEvents,\n  LoggingPermission,\n  GtagEvent\n> {\n  private readonly gaProps: GoogleAnalytics4ClientEventListenerProps<LoggingContext, CustomEvents>;\n\n  constructor(props: GoogleAnalytics4ClientEventListenerProps<LoggingContext, CustomEvents>) {\n    super(props);\n    this.gaProps = props;\n  }\n\n  /** @override addEventToDataLayer */\n  protected addEventToDataLayer(event: unknown): void {\n    if (!Array.isArray(event)) {\n      throw new Error('Unexpected event for GA4. GA4 events are arrays.');\n    }\n\n    // TODO: The first argument in the array has to be either 'js' | 'config' | 'set' | 'get' | 'event'\n    // So we can validate events here.\n\n    gtag(...(event as unknown[]));\n  }\n\n  /** @override init */\n  protected init(): Promise<void> {\n    window.dataLayer = window.dataLayer ?? [];\n    // Uses the GTAG Api\n    const ga4Script = document.createElement('script');\n    ga4Script.async = true;\n    ga4Script.src = `https://www.googletagmanager.com/gtag/js?id=${this.gaProps.gaId}`;\n\n    if (this.gaProps.nonce) ga4Script.nonce = this.gaProps.nonce;\n\n    document.head.appendChild(ga4Script);\n\n    // We need to configure datalayer with a custom record due to GA requirements\n    // See https://developers.google.com/analytics/devguides/collection/ga4/events?client_type=gtag\n    this.addEventToDataLayer([\n      'js',\n      this.gaProps.clock ? new Date(this.gaProps.clock()) : new Date(),\n    ]);\n\n    this.addEventToDataLayer([\n      'config',\n      this.gaProps.gaId,\n      {\n        debug_mode: this.gaProps.debugMode ?? false,\n        send_page_view: this.gaProps.sendPageView ?? true,\n        user_id: this.gaProps.userId,\n      },\n    ]);\n\n    return Promise.resolve();\n  }\n\n  /** @override */\n  protected addEventCallback = addGa4EventCallback;\n}\n", "import type {\n  DataLayerEventListenerProps,\n  DataLayerLoggingPermissions,\n  EmptyObject,\n} from '@snapchat/logging';\nimport { AbstractDataLayerEventListener } from '@snapchat/logging';\n\ndeclare global {\n  interface Window {\n    dataLayer?: unknown[];\n  }\n}\n\nconst gtmScriptId = 'gtm-script';\n\n/**\n * Type for events that are OK to send through GTM. These can be any object type.\n *\n * See: https://developers.google.com/tag-platform/tag-manager/datalayer\n *\n * TODO: Change the type to accept actual event params. However it's hard to make the generic work\n * with the existing GTM definitions in the web package.\n */\n// biome-ignore lint/suspicious/noExplicitAny: TODO write reason\nexport type GtmEvent = Partial<Record<string, any>>;\n\nexport interface GoogleTagManagerClientEventListenerProps<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject\n> extends Omit<DataLayerEventListenerProps<LoggingContext, CustomEvents, GtmEvent>, 'dataLayer'> {\n  gtmId: string;\n  nonce?: string;\n}\n\n/**\n * Adds the {eventCallback} and {eventTimeout} contol parameters to a GTM event.\n *\n * See https://developers.google.com/analytics/devguides/migration/ecommerce/gtm-ga4-to-ua\n */\nexport function addGtmEventCallback(event: GtmEvent, callback: () => void): boolean {\n  if (typeof event !== 'object') {\n    throw new Error('Unexpected event for GTM. GTM events are objects.');\n  }\n\n  // TODO: Merge eventCallback if there's one already specified in the event.\n\n  event.eventCallback = callback;\n  event.eventTimeout = 2_000 /* ms */;\n  return true;\n}\n\n/**\n * Event listener that sends events to Google Tag Manager.\n *\n * Requires the caller to format their own events (sadly) since GTM can be configured with any\n * object.\n *\n * TODO: find out why child container nonce isn't set properly\n * https://jira.sc-corp.net/browse/ENTWEB-8257\n */\nexport class GoogleTagManagerClientEventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends DataLayerLoggingPermissions = DataLayerLoggingPermissions\n> extends AbstractDataLayerEventListener<LoggingContext, CustomEvents, LoggingPermission> {\n  private readonly gtmProps: GoogleTagManagerClientEventListenerProps<LoggingContext, CustomEvents>;\n\n  constructor(props: GoogleTagManagerClientEventListenerProps<LoggingContext, CustomEvents>) {\n    super(props);\n    this.gtmProps = props;\n  }\n\n  /** @override addEventToDataLayer */\n  protected addEventToDataLayer(event: GtmEvent): void {\n    window.dataLayer!.push(event);\n  }\n\n  /** @override init */\n  protected init(): Promise<void> {\n    window.dataLayer = window.dataLayer ?? [];\n\n    const gtmScript = document.createElement('script');\n    gtmScript.async = true;\n    gtmScript.src = `https://www.googletagmanager.com/gtm.js?id=${this.gtmProps.gtmId}`;\n    gtmScript.id = gtmScriptId;\n\n    if (this.gtmProps.nonce) gtmScript.nonce = this.gtmProps.nonce;\n\n    document.head.appendChild(gtmScript);\n\n    // We need to configure datalayer with a custom record due to GTM requiring gtm.start\n    // https://developers.google.com/tag-platform/tag-manager/web/datalayer\n    this.addEventToDataLayer({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });\n\n    return Promise.resolve();\n  }\n\n  /** @override */\n  protected addEventCallback = addGtmEventCallback;\n}\n", "import type { BaseNetworkHandler, Config } from '@snapchat/graphene';\nimport { Graphene, FetchNetworkHandler } from '@snapchat/graphene';\nimport type { BasePermission, EmptyObject, GrapheneLoggingContext } from '@snapchat/logging';\nimport { AbstractGrapheneEventListener } from '@snapchat/logging';\n\n/**\n * Graphene EventListener suitable for usage on the client.\n *\n * TODO: This uses 'fetch' for network which works in Node since Node18. Wonder if this and the\n * server implementation can be consolidated.\n */\nexport class GrapheneClientEventListener<\n  LoggingContext extends GrapheneLoggingContext = GrapheneLoggingContext,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends BasePermission = BasePermission\n> extends AbstractGrapheneEventListener<LoggingContext, CustomEvents, LoggingPermission> {\n  /** @override istanbul ignore next */\n  protected getNetworkHandler = (options: Config): BaseNetworkHandler => {\n    return new FetchNetworkHandler(options);\n  };\n\n  /** @override istanbul ignore next */\n  protected getClient = (): Graphene => {\n    return new Graphene();\n  };\n}\n", "import type { BrowserOptions } from '@sentry/browser';\nimport { importDefault } from '@snapchat/import-tools';\nimport type {\n  BasePermission,\n  EmptyObject,\n  SentryCapturer,\n  SentryEventListenerProps,\n} from '@snapchat/logging';\nimport { AbstractSentryEventListener } from '@snapchat/logging';\n\ninterface Props<LoggingContext extends EmptyObject, CustomEvents extends EmptyObject>\n  extends BrowserOptions,\n    SentryEventListenerProps<LoggingContext, CustomEvents> {}\n\n/**\n * Error capture event listener that goes into go/sentry.\n *\n * See https://docs.sentry.io/clients/javascript/ for public API See\n * https://wiki.sc-corp.net/display/TOOL/Sentry+User+Guide for the overall guide See\n * https://github.sc-corp.net/Snapchat/web-common/tree/master/packages/sentry-browser for code\n * samples\n */\n\n// generic pattern for matching all requests.  Used as a fallback if props does not define the requred `allowUrls` prop.\nconst matchAllRequests = /.*/;\n\nexport class SentryClientEventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends BasePermission = BasePermission\n> extends AbstractSentryEventListener<LoggingContext, CustomEvents, LoggingPermission> {\n  private readonly browserProps: Props<LoggingContext, CustomEvents>;\n\n  constructor(props: Props<LoggingContext, CustomEvents>) {\n    super(props);\n    this.browserProps = props;\n  }\n\n  /** @override */\n  protected getExceptionCapturer = async (): Promise<SentryCapturer> => {\n    const SnapSentry = importDefault(await import('@snapchat/sentry-browser'), 'Sentry');\n    const { captureException, init } = SnapSentry.Sentry;\n\n    // specify a wildcard parameter for the `allowUrls` prop if not specified via constructor\n    init({ allowUrls: [matchAllRequests], ...this.browserProps });\n    return captureException;\n  };\n}\n", "import { parseError } from '@snapchat/core';\nimport type { LoggedEvent, MultipleDataLayerEvents } from '@snapchat/logging';\nimport { LoggingEventType } from '@snapchat/logging';\nimport type { GoogleTagManagerClientEventListenerProps } from '@snapchat/logging-browser';\nimport { GoogleTagManagerClientEventListener } from '@snapchat/logging-browser';\n\nimport { UrlParameter } from '../../../constants/urlParameters';\nimport type {\n  GoogleEvent,\n  GoogleNonInteractionEvent,\n  GoogleTimingEvent,\n  GoogleUserEvent,\n  GoogleValueEvent,\n} from '../../../types/gtm';\nimport { SubscribedEventType } from '../eventListenerTypes';\nimport type { LoggingContext, LoggingCustomEvents, LoggingPermissions } from '../loggingTypes';\n\n/**\n * Name of the event that we can pass to the GTM to trigger the universal analytics event record (GA\n * Event).\n */\nexport const googleAnalyticsEventName = 'analyticsEvent';\n\nconst googleAnalyticsValueEventName = 'analyticsValueEvent';\n\nconst googleAnalyticsTimingEventName = 'analyticsTimingEvent';\n\ntype Props = Pick<GoogleTagManagerClientEventListenerProps, 'gtmId' | 'nonce' | 'useAsync'>;\n\n/** Custom event listener for GTM events. */\nexport class GoogleEventListener extends GoogleTagManagerClientEventListener<\n  LoggingContext,\n  LoggingCustomEvents,\n  LoggingPermissions\n> {\n  protected isOutsideCalifornia = false;\n\n  public constructor(props: Props) {\n    super({ ...props, eventFormatter: GoogleEventListener.eventFormat });\n  }\n\n  /**\n   * Custom permission handler that only allowes GTM logging if outside of California.\n   *\n   * @override\n   */\n  protected hasAllPermissions: () => boolean = () => {\n    // Absolute override. When running in GTM debug mode, need to ensure that\n    // this listener is turned on.\n    const isGtmDebug = new URL(window.location.href).searchParams.has(\n      UrlParameter.GOOGLE_TAG_MANAGER_DEBUG\n    );\n\n    if (isGtmDebug) {\n      return true;\n    }\n\n    // TODO: Figure out why we can't call super.hasAllPermissions() here.\n    let superHasAllPermissions = true;\n\n    for (const permission of this.baseProps.requiredPermissions) {\n      if (!this.permissions.has(permission)) {\n        superHasAllPermissions = false;\n        break;\n      }\n    }\n\n    if (!superHasAllPermissions) return false;\n\n    return this.isOutsideCalifornia;\n  };\n\n  /**\n   * Checks whether running outside of California where we are allowed to log.\n   *\n   * TODO: Wait for legal's response on whether we need to continue doing this. If they reaffirm,\n   * then we should move this into some sort of a helper function. See\n   * https://groups.google.com/a/snapchat.com/g/webeng/c/-a43qV45er4 And the current decision here:\n   * https://wiki.sc-corp.net/pages/viewpage.action?pageId=255171537\n   */\n  public checkRegion = (): void => {\n    if (this.isOutsideCalifornia) return;\n\n    fetch('https://web-platform.snap.com/cookies/user_location')\n      .then(response => response.json())\n      .catch(error => {\n        // Some blockers like uBlock Origin block this request.\n        // In those case we use the default unknown location (ZZ-na) as the endpoint would.\n        console.warn('Unable to determine user location:', parseError(error).message);\n        return { country: 'ZZ', region: 'na' };\n      })\n      .then((data: { country: string; region: string }) => {\n        this.isOutsideCalifornia = data.country !== 'US' || data.region !== 'ca';\n\n        // Hack to trigger logging init and flush any waiting logs.\n        if (this.isOutsideCalifornia && this.permissions.has('logging')) {\n          void this.allow('logging');\n        }\n      })\n      .catch(console.error);\n  };\n\n  /**\n   * Event Formatter for the GTM events. Note that this isn't generic and only works because MWP's\n   * GTM container accepts these fields.\n   */\n  static eventFormat(\n    event: LoggedEvent<LoggingCustomEvents>,\n    _context: Partial<LoggingContext>\n  ): GoogleEvent | MultipleDataLayerEvents<GoogleEvent> | null {\n    switch (event.type) {\n      case LoggingEventType.USER_ACTION: {\n        return {\n          event: googleAnalyticsEventName,\n          eventAction: event.action,\n          eventLabel: event.label,\n          eventCategory: event.component,\n          eventNonInt: false,\n        } as GoogleUserEvent;\n      }\n\n      case LoggingEventType.INFO: {\n        return {\n          event: googleAnalyticsEventName,\n          eventAction: event.action,\n          eventLabel: event.label,\n          eventCategory: event.component,\n          eventNonInt: true,\n        } as GoogleNonInteractionEvent;\n      }\n\n      case LoggingEventType.VALUE: {\n        return {\n          event: googleAnalyticsValueEventName,\n          eventCategory: event.component,\n          eventVariable: event.variable,\n          eventLabel: event.label,\n          eventValue: event.value,\n          eventNonInt: true,\n        } as GoogleValueEvent;\n      }\n\n      case LoggingEventType.TIMING: {\n        return {\n          event: googleAnalyticsTimingEventName,\n          eventCategory: event.component,\n          eventVariable: event.variable,\n          eventLabel: event.label,\n          eventValue: event.valueMs,\n          eventNonInt: true,\n        } as GoogleTimingEvent;\n      }\n\n      case LoggingEventType.CUSTOM: {\n        switch (event.subscribedEventType) {\n          case SubscribedEventType.PHONE_NUMBER_EVENT: {\n            return {\n              ...event,\n              event: event.event ?? googleAnalyticsEventName,\n              eventAction: event.event ?? 'PhoneNumberInteraction',\n              eventCategory: 'PhoneNumberForm',\n              eventNonInt: false,\n            };\n          }\n\n          case SubscribedEventType.PAGE_LOAD: {\n            return {\n              type: 'multiple',\n              events: [\n                // Fires 'Virtual Pageview' Trigger in GTM, used for Legacy GA UA integration\n                // TODO: remove this once the GTM configuration no longer references this.\n                {\n                  event: 'virtualPageview',\n                  eventNonInt: true,\n                  eventAction: 'View',\n                  eventCategory: 'Page',\n                  virtualPageviewPath: window.location.pathname,\n                },\n                {\n                  event: googleAnalyticsEventName,\n                  eventNonInt: true,\n                  eventAction: 'Load',\n                  eventCategory: 'Page',\n                  eventLabel: window.location.pathname,\n                },\n              ],\n            };\n          }\n\n          /**\n           * Ecommerce specific event. One event needs to be pushed with {ecommerce: null} The next\n           * event will be sent with the usual event fields (eventLabel, eventCategory, etc.)\n           *\n           * - An ecommerce object Reference:\n           *   https://developers.google.com/analytics/devguides/collection/ua/gtm/enhanced-ecommerce\n           */\n          case SubscribedEventType.ECOMMERCE: {\n            return {\n              type: 'multiple',\n              // For now, we log these using GA UA ecommerce format (does not utilize GA4 ecommerce integrations)\n              // TODO: reimplement using GA 4 ecommerce format: https://jira.sc-corp.net/browse/ENTWEB-8181\n              events: [{ ecommerce: null }, { ...event, event: 'analyticsEvent' }],\n            };\n          }\n\n          case SubscribedEventType.EXPERIMENT_IMPRESSION: {\n            if (!event.experimentId && !event.variantId) {\n              return null;\n            }\n\n            return {\n              event: 'experiment_impression',\n              experiment_id: event.experimentId,\n              variant_id: `${event.experimentId}.${event.variantId}`,\n            };\n          }\n        }\n\n        // Default custom events is to skip them.\n        return null;\n      }\n    }\n\n    // Default for other events is to skip them.\n    return null;\n  }\n\n  /** @override */\n  protected flushInternal: () => Promise<unknown> = () => {\n    return Promise.resolve();\n  };\n}\n", "// TODO: Move this into common.\nimport type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { Route, Switch, useLocation } from 'react-router-dom';\n\nimport { Feature, useFeatureFlags } from './components/FeatureFlags';\nimport { Slug } from './components/Slug';\nimport { Config } from './config';\nimport { cookieSettingsPath } from './helpers/trackingCookies';\nimport { CookieSettings } from './pages/CookieSettings';\nimport { NoMatch } from './pages/NoMatch';\nimport { Search } from './pages/Search';\n\nexport const Routes: FC = () => {\n  const location = useLocation();\n  const featureFlags = useFeatureFlags();\n\n  const enableSearchFeature = featureFlags[Feature.ENABLE_SITE_SEARCH] === 'true';\n\n  useEffect(() => {\n    if (location.hash) {\n      let element = document.getElementById(location.hash.slice(1));\n\n      if (element) {\n        // if element exists, immediately scroll to element\n        element?.scrollIntoView({ behavior: 'smooth' });\n        return;\n      }\n\n      // if element doesn't exist (SSR) set element and scroll after timeout\n      setTimeout(() => {\n        element = document.getElementById(location.hash.slice(1));\n        element?.scrollIntoView({ behavior: 'smooth' });\n      }, 1000);\n    }\n  }, [location.hash]);\n\n  const renderedRoute = (\n    <>\n      <Switch>\n        <Route\n          exact\n          path={cookieSettingsPath}\n          render={() => (\n            <CookieSettings\n              backgroundColor={Config.theme?.defaultPageBackgroundColor}\n              cookieDomain={Config.trackingSettings.cookieDomain}\n              deploymentType={Config.deploymentType}\n              domainName={Config.domainName}\n              isClient={Config.isClient}\n            />\n          )}\n        />\n        {enableSearchFeature && <Route exact path=\"/search\" component={Search} />}\n        <Route path=\"/404\" component={NoMatch} />\n        {/* Needs to match all paths, including '' (default path after prefix, i.e. /fr-FR) */}\n        <Route path=\"*\" component={Slug} />\n      </Switch>\n    </>\n  );\n\n  return renderedRoute;\n};\n", "import { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport type { Block as BlockType, BlockContentsItem } from '@snapchat/mw-contentful-schema';\nimport type { WidthType } from '@snapchat/snap-design-system-marketing';\nimport { Block as BlockSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC, ReactElement } from 'react';\nimport { useContext } from 'react';\n\nimport { logError } from '../../helpers/logging';\nimport { combineImageSources } from '../../utils/combineImageSources';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport { parseMedia } from '../../utils/media';\nimport { renderRichTextMultiLineWithMarkings } from '../../utils/renderText/renderRichText';\nimport { Accordion } from '../Accordion';\nimport { AnimatedAccordion } from '../AnimatedAccordion/AnimatedAccordion';\nimport { CallToAction } from '../CallToAction';\nimport { CarouselV3 } from '../CarouselV3';\nimport { ContentShallow } from '../Content/ContentShallow';\nimport { FormShallow } from '../Form';\nimport { LazyGallery } from '../Gallery/LazyGallery';\nimport type { ImageDataProps } from '../Image';\nimport { MosaicShallow } from '../Mosaic/MosaicShallow';\nimport { SlugContext } from '../Slug/SlugContext';\nimport { Tabs } from '../Tabs';\nimport type { VideoDataProps } from '../Video/types';\nimport { BarChartShallow } from '../visualizations/BarChart';\nimport { ChartToggleWrapper } from '../visualizations/ChartToggle';\nimport { GeoMapShallow } from '../visualizations/GeoMap';\nimport { LineChartShallow } from '../visualizations/LineChart';\nimport { MultiVisualizationShallow } from '../visualizations/MultiVisualization';\nimport { TableShallow } from '../visualizations/Table';\nimport type { BlockProps } from './types';\n\ntype BlockContentProps = Pick<BlockContentsItem, 'sys' | '__typename'>;\n\nexport const BlockContent: FC<BlockContentProps> = (props: BlockContentProps): ReactElement => {\n  switch (props.__typename) {\n    case 'Gallery': {\n      return <LazyGallery {...props} />;\n    }\n\n    case 'CarouselV3': {\n      return <CarouselV3 {...props} />;\n    }\n\n    case 'Tabs': {\n      return <Tabs {...props} />;\n    }\n\n    case 'Mosaic': {\n      return <MosaicShallow {...props} __typename=\"Mosaic\" />;\n    }\n\n    case 'Form': {\n      return <FormShallow {...props} />;\n    }\n\n    case 'ChartToggle': {\n      return <ChartToggleWrapper {...props} />;\n    }\n\n    case 'BarChart': {\n      return <BarChartShallow {...props} />;\n    }\n\n    case 'LineChart': {\n      return <LineChartShallow {...props} />;\n    }\n\n    case 'GeoVisualization': {\n      return <GeoMapShallow {...props} />;\n    }\n\n    case 'VisualizationSelector': {\n      return <MultiVisualizationShallow {...props} />;\n    }\n\n    case 'TableVisualization': {\n      return <TableShallow {...props} />;\n    }\n\n    case 'Content': {\n      return <ContentShallow {...props} />;\n    }\n\n    case 'Accordion': {\n      return <Accordion {...props} />;\n    }\n\n    case 'AnimatedAccordion': {\n      return <AnimatedAccordion {...props} />;\n    }\n\n    default: {\n      logError({\n        component: 'Block',\n        message: `Unknown content type: ${props.__typename} with id: ${props.sys.id}`,\n      });\n\n      return <>\uD83D\uDC7F</>;\n    }\n  }\n};\nBlockContent.displayName = 'BlockContent';\n\nexport const Block: FC<BlockProps> = props => {\n  const {\n    maxColumns,\n    eyebrow,\n    title,\n    subtitle,\n    titleAlignment,\n    titleAlignmentMobile,\n    contentsCollection,\n    callsToActionCollection,\n    anchorId,\n    isNarrow,\n    widthStyle,\n    fullHeight,\n    backgroundColor,\n    backgroundMediaV2,\n    theme,\n    isNextSameBackgroundColor,\n    isPreviousSameBackgroundColor,\n    className,\n    sys,\n    preChildren,\n    postChildren,\n    showCurtain: givenShowCurtain,\n  } = props;\n  const { replacements } = useContext(SlugContext);\n  let finalContentsCollection = contentsCollection;\n\n  if (contentsCollection?.items.length && replacements) {\n    const contentsCollectionCopy = [...contentsCollection.items];\n\n    for (let i = 0; i < contentsCollectionCopy.length; i++) {\n      const contentId = contentsCollectionCopy[i]?.sys?.id;\n      const contentType = contentsCollectionCopy[i]?.__typename;\n\n      if (contentId && replacements && contentId in replacements) {\n        const replacement = replacements[contentId];\n\n        if (replacement === undefined) {\n          contentsCollectionCopy.splice(i, 1);\n        } else if (replacement && replacement.__typename === contentType) {\n          contentsCollectionCopy[i] = {\n            sys: { id: replacement.sys.id },\n            __typename: replacement.__typename,\n          };\n        }\n      }\n    }\n\n    finalContentsCollection = { items: contentsCollectionCopy };\n  }\n\n  const backgroundAssetMedia = (backgroundMediaV2 as ImageDataProps | VideoDataProps)?.media;\n  const { imageSource: backgroundImageSource, videoSource: backgroundVideoSource } =\n    parseMedia(backgroundAssetMedia);\n\n  const backgroundMobileAssetMedia = (backgroundMediaV2 as ImageDataProps | VideoDataProps)\n    ?.mobileMedia;\n  const { imageSource: mobileBackgroundImageSource, videoSource: mobileBackgroundVideoSource } =\n    parseMedia(backgroundMobileAssetMedia);\n\n  const blockChildren = (finalContentsCollection?.items ?? []).map(item => (\n    <BlockContent key={item.sys.id} {...(item as BlockContentProps)} />\n  ));\n\n  const callsToAction = callsToActionCollection.items.map(item => (\n    <CallToAction key={item.sys.id} {...item} />\n  ));\n\n  const { getImageSources } = useContentfulImages();\n\n  const bgImgSrc = combineImageSources({\n    desktop: getImageSources(backgroundImageSource),\n    mobile: getImageSources(mobileBackgroundImageSource),\n  });\n\n  const inspectorDatasets = getContentfulInspectorProps<BlockType>({\n    entryId: sys.id,\n    fieldIds: ['eyebrow', 'title', 'subtitle'],\n  });\n\n  // We are checking if showCurtain is different from false\n  // because we need to take in consideration the undefined value,\n  // if its undefined and there is a background image or video, the curtain should be shown too.\n  const showCurtain = (!!bgImgSrc || !!backgroundVideoSource) && givenShowCurtain !== false;\n\n  return (\n    <BlockSDS\n      callsToAction={callsToAction}\n      anchorId={anchorId}\n      maxColumns={maxColumns ?? undefined}\n      subtitle={renderRichTextMultiLineWithMarkings(subtitle)}\n      eyebrow={eyebrow}\n      title={renderRichTextMultiLineWithMarkings(title)}\n      titleAlignment={titleAlignment}\n      titleAlignmentMobile={titleAlignmentMobile}\n      widthStyle={(widthStyle as WidthType) ?? (isNarrow ? 'narrow' : undefined)}\n      backgroundColor={backgroundColor ?? theme}\n      isNextSameBackgroundColor={isNextSameBackgroundColor}\n      isPreviousSameBackgroundColor={isPreviousSameBackgroundColor}\n      fullHeight={fullHeight}\n      className={className}\n      {...inspectorDatasets}\n      preChildren={preChildren}\n      postChildren={postChildren}\n      backgroundVideoSource={backgroundVideoSource}\n      mobileBackgroundVideoSource={mobileBackgroundVideoSource}\n      backgroundImageSources={bgImgSrc}\n      showCurtain={showCurtain}\n    >\n      {blockChildren}\n    </BlockSDS>\n  );\n};\n\nBlock.displayName = 'Block';\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as contentFragments } from '../Content';\n\nexport const fragments = {\n  /** Note: Requires calling query set the `$accordionItemsLimit` gql variable. */\n  all: gql`\n    fragment AccordionAll on Accordion {\n      ...ContentfulSysId\n      title\n      multipleOpen\n      itemsCollection(limit: 30) {\n        items {\n          ...ContentfulSysId\n          ...ContentAll\n        }\n      }\n    }\n    ${contentfulSysIdFragment}\n    ${contentFragments.all}\n  `,\n};\n\nexport const queries = {\n  all: gql`\n    query accordionQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      accordion(preview: $preview, locale: $locale, id: $id) {\n        ...AccordionAll\n      }\n    }\n    ${fragments.all}\n  `,\n};\n", "import type {\n  Accordion as AccordionType,\n  Content as ContentType,\n} from '@snapchat/mw-contentful-schema';\nimport {\n  Accordion as AccordionSDS,\n  AccordionItem as AccordionItemSDS,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport type { ContentfulSysProps } from 'src/types/contentful';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { isContentfulSysProps } from '../../utils/contentful';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport { renderRichTextMarkingsOnly } from '../../utils/renderText/renderRichText';\nimport { Content } from '../Content';\nimport { queries } from './query';\nimport type { AccordionDataHandlerProps } from './types';\n\nexport const Accordion: FC<ContentfulSysProps> = (props: ContentfulSysProps) => {\n  const id = isContentfulSysProps(props) ? props.sys.id : undefined;\n\n  const { data } = useContentfulQuery<AccordionDataHandlerProps, ContentfulIdVariable>(\n    queries.all,\n    {\n      skip: !id,\n      variables: { id },\n    }\n  );\n\n  if (!data) return null;\n\n  const { titleDataset } = getContentfulInspectorProps<AccordionType>({\n    entryId: id!,\n    fieldIds: ['title'],\n  });\n\n  return (\n    <AccordionSDS\n      data-testid=\"accordion\"\n      multipleOpen={data?.accordion.multipleOpen}\n      title={data?.accordion.title}\n      titleDataset={titleDataset}\n    >\n      {data?.accordion.itemsCollection.items.map(item => {\n        const { titleDataset } = getContentfulInspectorProps<ContentType>({\n          entryId: item.sys.id,\n          fieldIds: ['title'],\n        });\n\n        return (\n          <AccordionItemSDS\n            id={item.sys.id}\n            key={item.sys.id}\n            title={renderRichTextMarkingsOnly(item.title)}\n            titleDataset={titleDataset}\n          >\n            <Content {...item} title={undefined} />\n          </AccordionItemSDS>\n        );\n      })}\n    </AccordionSDS>\n  );\n};\n", "import { gql } from '@apollo/client';\nimport type {\n  Alignment,\n  AnimatedAccordionMediaDirection,\n} from '@snapchat/snap-design-system-marketing';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport type { RichText } from '../../types/RichText';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport type { MediaDataProps } from '../Media';\nimport { fragments as mediaFragments } from '../Media';\n\nexport const fragments = {\n  all: gql`\n    fragment AnimatedAccordionAll on AnimatedAccordion {\n      ...ContentfulSysId\n      accordionContentsCollection {\n        items {\n          ...ContentfulSysId\n          media {\n            ...AssetAll\n          }\n          title\n          body {\n            json\n          }\n        }\n      }\n      mediaDirection\n      autoPlaySpeed\n      textAlignmentMobile\n    }\n    ${mediaFragments.all}\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const query = gql`\n  query AnimatedAccordionQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    animatedAccordion(preview: $preview, locale: $locale, id: $id) {\n      ...AnimatedAccordionAll\n    }\n  }\n  ${fragments.all}\n`;\n\nexport interface AnimatedAccordionContentData {\n  media?: MediaDataProps;\n  title?: string;\n  body?: RichText;\n}\nexport interface AnimatedAccordionData extends ContentfulTypedSysProps<'AnimatedAccordion'> {\n  animatedAccordion?: {\n    accordionContentsCollection?: {\n      items?: AnimatedAccordionContentData[];\n    };\n    mediaDirection?: AnimatedAccordionMediaDirection;\n    textAlignmentMobile?: Alignment;\n    autoPlaySpeed?: number;\n  };\n}\n", "import { css } from '@emotion/css';\nimport { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport {\n  Alignment,\n  AnimatedAccordion as AnimatedAccordionSDS,\n  AnimatedAccordionMediaDirection,\n  nonMobileMediaQuery,\n  Spacing,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport { parseMedia } from '../../utils/media';\nimport {\n  renderRichTextMarkingsOnly,\n  renderRichTextWithElements,\n} from '../../utils/renderText/renderRichText';\nimport type { AnimatedAccordionContentData, AnimatedAccordionData } from './query';\nimport { query } from './query';\n\nexport const verticalPaddingCss = css`\n  ${nonMobileMediaQuery} {\n    padding-top: ${Spacing.XL}px;\n  }\n`;\n\nexport const AnimatedAccordion: FC<ContentfulSysProps> = props => {\n  const { data } = useContentfulQuery<AnimatedAccordionData, ContentfulIdVariable>(query, {\n    variables: { id: props.sys.id },\n  });\n\n  const {\n    accordionContentsCollection,\n    mediaDirection = AnimatedAccordionMediaDirection.End,\n    autoPlaySpeed: autoPlaySpeedSecs = 10,\n    textAlignmentMobile = Alignment.Start,\n  } = data?.animatedAccordion ?? {};\n\n  const { getImageSources } = useContentfulImages();\n\n  const items = (accordionContentsCollection?.items ?? []).map(\n    (item: AnimatedAccordionContentData) => {\n      const { imageSource, imageAltText } = parseMedia(item.media);\n      return {\n        title: renderRichTextMarkingsOnly(item.title),\n        body: renderRichTextWithElements(item.body),\n        imgSrcs: getImageSources(imageSource),\n        imageAltText,\n      };\n    }\n  );\n\n  return (\n    <AnimatedAccordionSDS\n      items={items}\n      mediaDirection={mediaDirection}\n      autoPlaySpeed={autoPlaySpeedSecs}\n      textAlignmentMobile={textAlignmentMobile}\n    />\n  );\n};\n", "import { css } from '@emotion/css';\nimport { DeploymentType } from '@snapchat/mw-common';\nimport { CarouselV3 as CarouselV3SDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { Config } from '../../config';\nimport { UrlParameter } from '../../constants/urlParameters';\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { VideoDataProps } from '../Video/types';\nimport { CarouselV3ImageItem } from './CarouselV3ImageItem';\nimport { CarouselV3TextItem } from './CarouselV3TextItem';\nimport { CarouselV3VideoItem } from './CarouselV3VideoItem';\nimport { carouselV3Query } from './queries';\nimport {\n  type CarouselV3CardItemProps,\n  type CarouselV3DataHandlerProps,\n  type CarouselV3Props,\n  type CarouselV3TextItemProps,\n  type CarouselV3Types,\n  CarouselV3Layout,\n} from './types';\n\nconst noShadowCss = css`\n  box-shadow: unset;\n`;\n\nexport const CarouselV3: FC<CarouselV3Props> = props => {\n  const { isRTL } = useContext(AppContext);\n  const { getCurrentUrl } = useContext(AppContext);\n  const url = new URL(getCurrentUrl());\n  const pauseAnimations =\n    Config.deploymentType !== DeploymentType.PRODUCTION &&\n    url.searchParams.get(UrlParameter.PAUSE_ANIMATIONS) === 'true';\n\n  const { data } = useContentfulQuery<CarouselV3DataHandlerProps, ContentfulIdVariable>(\n    carouselV3Query,\n    {\n      variables: { id: props.sys.id },\n    }\n  );\n\n  const carouselItemsType = data?.carouselV3?.contentsCollection?.items?.[0]\n    ?.__typename as CarouselV3Types;\n\n  if (!data?.carouselV3) {\n    return null;\n  }\n\n  const { contentsCollection, mediaAspectRatio } = data.carouselV3;\n  const items = contentsCollection.items;\n\n  const singleView =\n    carouselItemsType === 'CarouselText' ||\n    data?.carouselV3?.layout === CarouselV3Layout.SingleSlideView;\n\n  return (\n    <CarouselV3SDS isSingleView={singleView} autoPlay={!pauseAnimations} isRtl={isRTL}>\n      {items.map(item => {\n        if (item.__typename === 'CarouselCard') {\n          const cardItem = item as CarouselV3CardItemProps;\n          const hasVideo = cardItem.media.__typename === 'Video';\n          const autoPlay = (cardItem.media as VideoDataProps).autoPlay ?? true;\n          const enableVideoControls = hasVideo && !autoPlay;\n\n          const shadowCss = cardItem.showShadow ?? true ? undefined : noShadowCss;\n\n          return hasVideo ? (\n            <CarouselV3VideoItem\n              key={cardItem.sys.id}\n              cardItem={cardItem}\n              mediaAspectRatio={mediaAspectRatio}\n              enableVideoControls={enableVideoControls}\n              className={shadowCss}\n            />\n          ) : (\n            <CarouselV3ImageItem\n              key={cardItem.sys.id}\n              cardItem={cardItem}\n              mediaAspectRatio={mediaAspectRatio}\n              className={shadowCss}\n            />\n          );\n        }\n\n        if (item.__typename === 'CarouselText') {\n          const textItem = item as CarouselV3TextItemProps;\n          return <CarouselV3TextItem key={textItem.sys.id} textItem={textItem} />;\n        }\n\n        return null;\n      })}\n    </CarouselV3SDS>\n  );\n};\n\nCarouselV3.displayName = 'CarouselV3';\n", "import type { SrcSetSizes } from '@snapchat/mw-contentful-client';\nimport { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport type { CarouselV3AspectRatios } from '@snapchat/snap-design-system-marketing';\nimport {\n  CarouselCardItem as CarouselCardItemSDS,\n  mobileMaxWidth,\n} from '@snapchat/snap-design-system-marketing';\nimport { type FC, useContext } from 'react';\n\nimport { shouldFlushLogs } from '../../helpers/getLocalPath';\nimport { logger } from '../../helpers/logging';\nimport { UserAction } from '../../types/events';\nimport { combineImageSources } from '../../utils/combineImageSources';\nimport { parseMedia } from '../../utils/media';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport { imageQuality } from '../Image';\nimport type { ImageDataProps } from '../Image/types';\nimport type { CarouselV3CardItemProps } from './types';\n\nconst portraitCardImgSrcSetSizes: SrcSetSizes = {\n  sizeToUrl: [\n    {\n      size: '600w',\n      settings: { width: 600 },\n    },\n  ],\n  sizes: '600px',\n};\n\nconst cardWidths = [622, 728];\nconst landscapeCardImgSrcSetSizes: SrcSetSizes = {\n  sizeToUrl: cardWidths.map(width => ({\n    size: `${width}w`,\n    settings: { width },\n  })),\n  sizes: `(max-width: ${mobileMaxWidth}px) 622px, 728px`,\n};\n\nexport const CarouselV3ImageItem: FC<{\n  cardItem: CarouselV3CardItemProps;\n  mediaAspectRatio: CarouselV3AspectRatios;\n  isVisible?: boolean;\n  shouldLoad?: boolean;\n  className?: string;\n}> = ({ cardItem, mediaAspectRatio, isVisible, shouldLoad, ...otherProps }) => {\n  const imageMedia = cardItem.media as ImageDataProps;\n\n  const { imageSource, imageAltText } = parseMedia(imageMedia.media);\n  const { imageSource: mobileImageSource } = parseMedia(imageMedia.mobileMedia);\n  const { getImageSources } = useContentfulImages();\n\n  const { logEvent } = useContext(ConsumerContext);\n\n  const imgSettings =\n    mediaAspectRatio === '9:16' ? portraitCardImgSrcSetSizes : landscapeCardImgSrcSetSizes;\n\n  const imageSrcSettings = {\n    size: imgSettings,\n    quality: imageQuality.default,\n  };\n\n  const imgSrcs = combineImageSources({\n    desktop: getImageSources(imageSource, imageSrcSettings),\n    /* TODO(kpan2): These aren't good for mobile images. */\n    mobile: getImageSources(mobileImageSource, imageSrcSettings),\n  });\n\n  const slug = cardItem.slugReference?.slug;\n  const url = slug ?? cardItem.url;\n\n  const onClick = (): void => {\n    if (!url) {\n      return;\n    }\n\n    logEvent?.({\n      type: UserAction.Click,\n      component: 'CarouselV3',\n      label: `CarouselV3.ImageItem - ${url}`,\n      url,\n    });\n\n    if (shouldFlushLogs(url)) {\n      void logger.flush();\n    }\n  };\n\n  return (\n    <CarouselCardItemSDS\n      aspectRatio={mediaAspectRatio}\n      body={cardItem.body}\n      key={cardItem.sys.id}\n      subtitle={cardItem.subtitle}\n      title={cardItem.title}\n      url={url}\n      imgSrcs={imgSrcs}\n      imgAltText={imageAltText}\n      isVisible={isVisible}\n      shouldLoad={shouldLoad}\n      onClick={onClick}\n      {...otherProps}\n    />\n  );\n};\n\nCarouselV3ImageItem.displayName = 'CarouselV3ImageItem';\n", "import { CarouselTextItem as CarouselTextItemSDS } from '@snapchat/snap-design-system-marketing';\nimport { type FC, useContext } from 'react';\n\nimport { UserAction } from '../../types/events';\nimport { renderRichText } from '../../utils/renderText/renderRichText';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport type { CarouselV3TextItemProps } from './types';\n\nexport const CarouselV3TextItem: FC<{\n  textItem: CarouselV3TextItemProps;\n}> = ({ textItem }) => {\n  const description = renderRichText(textItem?.description);\n  const subtext = renderRichText(textItem?.subtext);\n\n  const slug = textItem.slugReference?.slug;\n  const url = slug ? `/${slug}` : textItem.url;\n\n  const consumerContext = useContext(ConsumerContext);\n  const { logEvent } = consumerContext;\n\n  const onClick = (): void => {\n    if (!url) {\n      return;\n    }\n\n    logEvent?.({\n      type: UserAction.Click,\n      component: 'CarouselV3',\n      label: `CarouselV3.TextItem - ${url}`,\n      url,\n    });\n  };\n\n  return (\n    <CarouselTextItemSDS\n      key={textItem.sys.id}\n      description={description}\n      subText={subtext}\n      url={url}\n      onClick={onClick}\n    />\n  );\n};\n\nCarouselV3TextItem.displayName = 'CarouselV3TextItem';\n", "import { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport type { CarouselV3AspectRatios } from '@snapchat/snap-design-system-marketing';\nimport { CarouselCardItem as CarouselCardItemSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport type React from 'react';\nimport { useContext, useState } from 'react';\n\nimport { shouldFlushLogs } from '../../helpers/getLocalPath';\nimport { logger } from '../../helpers/logging/loggingInstance';\nimport { UserAction } from '../../types/events';\nimport { getFileInfo } from '../../utils/getFileInfo';\nimport { parseMedia } from '../../utils/media';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport type { VideoDataProps } from '../Video/types';\nimport { getVideoWatchLogger } from '../Video/utils';\nimport type { CarouselV3CardItemProps } from './types';\n\nexport const CarouselV3VideoItem: FC<{\n  cardItem: CarouselV3CardItemProps;\n  mediaAspectRatio: CarouselV3AspectRatios;\n  enableVideoControls: boolean;\n  isVisible?: boolean;\n  shouldLoad?: boolean;\n  className?: string;\n}> = ({\n  cardItem,\n  mediaAspectRatio,\n  enableVideoControls,\n  isVisible,\n  shouldLoad,\n  ...otherProps\n}) => {\n  const [videoPlayed, setVideoPlayed] = useState(false);\n  let prevWatchEventTime = -1;\n  const consumerContext = useContext(ConsumerContext);\n  const { logEvent } = consumerContext;\n\n  const videoMedia = cardItem.media as VideoDataProps;\n\n  const { getBestBgImgSrc } = useContentfulImages();\n  const posterSource = getBestBgImgSrc(videoMedia.thumbnailMedia?.url, {\n    // Double max width for the image.\n    width: 728,\n  });\n\n  const { videoSource } = parseMedia(cardItem.media.media);\n  const { videoSource: mobileVideoSource } = parseMedia(cardItem.media.mobileMedia);\n\n  // The CarouselV3VideoItem mimics the content metrics from the Video component\n  const onPlay: React.ReactEventHandler<HTMLVideoElement> = _e => {\n    if (logEvent && videoSource && !videoPlayed) {\n      if (videoMedia.autoPlay) return; // Skip for auto play videos\n      const { fileName } = getFileInfo(videoSource);\n      logEvent({ component: 'Video', type: UserAction.Play, label: fileName });\n      setVideoPlayed(true);\n    }\n  };\n\n  const onTimeUpdate = getVideoWatchLogger({\n    autoPlay: videoMedia.autoPlay,\n    eventLabel: videoMedia.externalId ?? cardItem.sys.id,\n    getPreviousWatchTime: () => {\n      return prevWatchEventTime;\n    },\n    setPreviousWatchTime: value => {\n      prevWatchEventTime = value;\n    },\n  });\n\n  const slug = cardItem.slugReference?.slug;\n  const url = slug ?? cardItem.url;\n\n  const onClick = (): void => {\n    if (!url) {\n      return;\n    }\n\n    logEvent?.({\n      type: UserAction.Click,\n      component: 'CarouselV3',\n      label: `CarouselV3.VideoItem - ${url}`,\n      url,\n    });\n\n    if (shouldFlushLogs(url)) {\n      void logger.flush();\n    }\n  };\n\n  return (\n    <CarouselCardItemSDS\n      aspectRatio={mediaAspectRatio}\n      body={cardItem.body}\n      showVideoControls={enableVideoControls}\n      key={cardItem.sys.id}\n      subtitle={cardItem.subtitle}\n      title={cardItem.title}\n      url={url}\n      videoSource={videoSource}\n      mobileVideoSource={mobileVideoSource}\n      onPlay={onPlay}\n      onTimeUpdate={onTimeUpdate}\n      isVisible={isVisible}\n      shouldLoad={shouldLoad}\n      onClick={onClick}\n      posterSource={posterSource}\n      {...otherProps}\n    />\n  );\n};\n\nCarouselV3VideoItem.displayName = 'CarouselV3VideoItem';\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as imageFragments } from '../Image';\nimport { fragments as videoFragments } from '../Video';\n\nexport const carouselItemFragments = {\n  text: gql`\n    fragment CarouselTextAll on CarouselText {\n      ...ContentfulSysId\n      description {\n        json\n      }\n      subtext {\n        json\n      }\n      slugReference {\n        ...ContentfulSysId\n        slug\n      }\n      url\n    }\n    ${contentfulSysIdFragment}\n  `,\n  card: gql`\n    fragment CarouselCardAll on CarouselCard {\n      ...ContentfulSysId\n      title\n      subtitle\n      body\n      media {\n        __typename\n        ... on Video {\n          ...VideoAll\n        }\n        ... on Image {\n          ...ImageAll\n        }\n      }\n      slugReference {\n        ...ContentfulSysId\n        slug\n      }\n      url\n      showShadow\n    }\n    ${imageFragments.all}\n    ${videoFragments.all}\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const fragments = {\n  all: gql`\n    fragment CarouselV3All on CarouselV3 {\n      ...ContentfulSysId\n      layout\n      mediaAspectRatio\n      contentsCollection {\n        items {\n          ... on CarouselText {\n            ...CarouselTextAll\n          }\n          ... on CarouselCard {\n            ...CarouselCardAll\n          }\n        }\n      }\n    }\n    ${carouselItemFragments.text}\n    ${carouselItemFragments.card}\n  `,\n};\n\nexport const carouselV3Query = gql`\n  query CarouselV3Query($preview: Boolean!, $locale: String!, $id: String!) {\n    carouselV3(preview: $preview, locale: $locale, id: $id) {\n      ...CarouselV3All\n    }\n  }\n  ${fragments.all}\n`;\n", "import type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport { Content } from './Content';\nimport { queries } from './queries';\nimport type { ContentDataHandlerProps } from './types';\n\nexport const ContentShallow: FC<ContentfulSysProps> = props => {\n  const { data } = useContentfulQuery<ContentDataHandlerProps, ContentfulIdVariable>(queries.all, {\n    variables: { id: props.sys.id },\n  });\n\n  if (!data?.content) return null;\n  return <Content {...data.content} />;\n};\n\nContentShallow.displayName = 'ContentShallow';\n", "import { css } from '@emotion/css';\nimport { getLocalStorageItem, setLocalStorageItem } from '@snapchat/mw-common';\nimport type {\n  Form as FormType,\n  FormRow as FormRowType,\n  FormRowFieldsItem,\n} from '@snapchat/mw-contentful-schema';\nimport type { FormBody, SubmitProps } from '@snapchat/snap-design-system-marketing';\nimport {\n  Form as FormSDS,\n  FormRow as FormRowSDS,\n  MessageContext,\n} from '@snapchat/snap-design-system-marketing';\nimport debounce from 'lodash-es/debounce';\nimport merge from 'lodash-es/merge';\nimport type { FC, ReactNode } from 'react';\nimport { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { Config } from '../../config';\nimport { logError, logger, logUserEvent } from '../../helpers/logging';\nimport type { CustomArkoseClient } from '../../hooks/useArkose';\nimport { useArkose } from '../../hooks/useArkose';\nimport { UserAction } from '../../types/events';\nimport type { Items } from '../../types/Items';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport { renderRichTextWithElementsNoHeadings } from '../../utils/renderText/renderRichText';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport { FieldByType } from './FieldByType';\nimport type {\n  ContentfulFormRow,\n  ContentfulInputField,\n  FormDataProps,\n  FormResponseWithUrl,\n  OnValueChange,\n} from './types';\nimport { FormResponseType } from './types';\nimport { getFormExtraParameters, getFormField, getFormQueryParams } from './utils';\n\nconst hiddenCss = css`\n  opacity: 0;\n  visibility: hidden;\n`;\n\nconst defaultRedirectTimeout = 4000;\n\nconst formKey = 'mwp-form-data';\n\nconst FormRow: FC<\n  ContentfulFormRow & { fieldRender: (item: ContentfulInputField) => ReactNode }\n> = ({ rowAsText, sys, fieldsCollection, fieldRender }) => {\n  const { rowAsTextDataset } = getContentfulInspectorProps<FormRowType>({\n    entryId: sys.id,\n    fieldIds: ['rowAsText'],\n  });\n\n  if (rowAsText) {\n    return (\n      <FormRowSDS key={sys.id} dataset={rowAsTextDataset}>\n        {renderRichTextWithElementsNoHeadings(rowAsText)}\n      </FormRowSDS>\n    );\n  }\n\n  return <FormRowSDS key={sys.id}>{fieldsCollection.items.map(fieldRender)}</FormRowSDS>;\n};\n\nconst makeFormChildrenRenderer = (\n  rowsCollection: Items<ContentfulFormRow>,\n  submitText: string,\n  submitSuccessText?: string,\n  submitTextDataset?: DOMStringMap,\n  formInitialOverrides?: FormBody\n): FC<SubmitProps> => {\n  const RowRenderer: FC<SubmitProps> = submitProps => (\n    <>\n      {rowsCollection.items.map((item: ContentfulFormRow) => (\n        <FormRow\n          {...item}\n          key={item.sys.id}\n          fieldRender={(item: ContentfulInputField) => (\n            <FieldByType\n              key={item.sys.id}\n              contentfulInputField={item}\n              submitProps={submitProps}\n              submitText={submitText}\n              submitSuccessText={submitSuccessText}\n              submitTextDataset={submitTextDataset}\n              initialValue={formInitialOverrides?.[item.name!]}\n            />\n          )}\n        />\n      ))}\n    </>\n  );\n\n  return RowRenderer;\n};\n\nexport const Form: FC<FormDataProps> = ({\n  rowsCollection,\n  additionalFeaturesCollection,\n  analytics,\n  redirectUrl,\n  submitText,\n  submitSuccessText,\n  endpoint,\n  responseType,\n  redirectTimeout = defaultRedirectTimeout,\n  extraParams,\n  callback,\n  enableArkose = Config.enableArkoseOnForms,\n  arkosePublicDevKey,\n  arkosePublicProdKey,\n  sys,\n  persistFieldEdits,\n  prepopulatePerQueryParams,\n  onFormInit,\n  onValueChange,\n  ...rest\n}) => {\n  // local storage state. We are using a ref to avoid re-rendering on form updates.\n  const [initalFormValues, setInitialFormValues] = useState<FormBody>({});\n  const allFormLocalStorageRef = useRef<Record<string, FormBody>>({});\n\n  const { userLocation, currentLocale, getCurrentUrl } = useContext(AppContext);\n  const country = userLocation.country;\n\n  useEffect(() => {\n    const initialFormBody: FormBody = {};\n\n    // form field controls if we should use local storage to store form state.\n    if (persistFieldEdits) {\n      const allLocalStorageForms = JSON.parse(getLocalStorageItem(formKey) ?? '{}');\n\n      if (allLocalStorageForms[sys.id]) {\n        merge(initialFormBody, allLocalStorageForms[sys.id]);\n      }\n\n      allFormLocalStorageRef.current[sys.id] = initialFormBody;\n    }\n\n    // override local storage values with query params if they exist\n    if (prepopulatePerQueryParams) {\n      const currentUrl = getCurrentUrl();\n      const queryParamsValues = getFormQueryParams(currentUrl, (fieldName: string) =>\n        getFormField({ rowsCollection }, fieldName)\n      );\n\n      for (const [key, value] of queryParamsValues) {\n        initialFormBody[key] = value;\n      }\n    }\n\n    setInitialFormValues(initialFormBody);\n\n    // trigger the onFormInit handler if it exists\n    onFormInit?.(initialFormBody);\n  }, [\n    persistFieldEdits,\n    sys.id,\n    getCurrentUrl,\n    rowsCollection,\n    prepopulatePerQueryParams,\n    onFormInit,\n  ]);\n\n  const { logEvent } = useContext(ConsumerContext);\n\n  const arkoseRef = useRef<CustomArkoseClient>();\n\n  const arkosePromiseResolveRef = useRef<(value: FormBody) => void>();\n  const arkosePromiseRejectRef = useRef<(reason: string) => void>();\n\n  useArkose({\n    arkoseClientRef: arkoseRef,\n    enableArkose,\n    arkoseDevKey: arkosePublicDevKey,\n    arkoseProdKey: arkosePublicProdKey,\n\n    onCompleted: token => {\n      arkosePromiseResolveRef.current?.({ arkoseToken: token });\n    },\n    onError: error => {\n      logger.logError({ component: 'Form', error, message: 'Arkose error', action: 'Validate' });\n      arkosePromiseRejectRef.current?.(error ?? 'Arkose error');\n    },\n  });\n\n  // Retrieve localized messages\n  const { formatMessage } = useContext(MessageContext);\n  const on400ResponseMessage = formatMessage({\n    id: 'formApiResponse400ErrorMessage',\n    defaultMessage: '400 Bad Request',\n  });\n  const on500ResponseMessage = formatMessage({\n    id: 'formApiResponse500ErrorMessage',\n    defaultMessage: '500 Internal Server',\n  });\n  const onInvalidClientSideSubmissionMessage = formatMessage({\n    id: 'formInvalidErrorMessage',\n    defaultMessage: 'Please updates required fields',\n  });\n\n  const [formDownloadUrl, setDownloadUrl] = useState<string | undefined>(undefined);\n  const anchorTag = useRef<HTMLAnchorElement>(null);\n\n  const { submitTextDataset } = getContentfulInspectorProps<FormType>({\n    entryId: sys.id,\n    fieldIds: ['submitText'],\n  });\n\n  useEffect(() => {\n    if (formDownloadUrl && anchorTag.current) {\n      anchorTag.current.click();\n    }\n  }, [formDownloadUrl]);\n\n  const onSubmitSuccess = useCallback(\n    async (response: Response, formBody: FormBody): Promise<void> => {\n      try {\n        if (analytics && logEvent) {\n          logEvent({ type: UserAction.FormSubmit, label: analytics.label });\n        }\n\n        if (callback) {\n          callback(response, formBody);\n        }\n\n        let formRedirectUrl = redirectUrl;\n\n        try {\n          if (responseType === FormResponseType.DownloadableResourceUrl) {\n            const data = (await response.json()) as FormResponseWithUrl;\n            setDownloadUrl(data.url);\n          } else if (responseType === FormResponseType.RedirectUrl && !redirectUrl) {\n            const data = (await response.json()) as FormResponseWithUrl;\n            formRedirectUrl = data.url ?? '';\n          }\n        } catch (_err) {\n          // reset to default\n          setDownloadUrl(undefined);\n        }\n\n        if (formRedirectUrl) {\n          setTimeout(() => {\n            window.location.assign(formRedirectUrl as string);\n          }, redirectTimeout);\n        }\n\n        if (persistFieldEdits) {\n          // remove the whole form from local storage\n          delete allFormLocalStorageRef.current[sys.id];\n          setLocalStorageItem(formKey, JSON.stringify(allFormLocalStorageRef.current));\n        }\n      } catch (error) {\n        logError({ component: 'Form', error });\n      }\n    },\n    [\n      analytics,\n      logEvent,\n      callback,\n      redirectUrl,\n      persistFieldEdits,\n      responseType,\n      redirectTimeout,\n      sys.id,\n    ]\n  );\n\n  const onSubmitFailure = useCallback((error: Error, _formBody: FormBody, _response?: Response) => {\n    logError({ component: 'Form', error, message: 'Form submit failed', action: 'Submit' });\n  }, []);\n\n  const hasSubmitButton = useMemo(() => {\n    return rowsCollection.items\n      .flatMap((item: ContentfulFormRow) => item.fieldsCollection.items)\n      .some(({ __typename: typename }: FormRowFieldsItem) => typename === 'SubmitButton');\n  }, [rowsCollection]);\n\n  const persistentFormFields = initalFormValues;\n\n  // \"rowsCollection\", \"submitTextDataset\", and \"persistentFormFields\" are each reference types, therefore React will use\n  // shallow comparison to determine if the memoized value should be updated. Unfortunately, this means that every re-render\n  // of the Form component will cause the memoized value to be updated as the reference to the each of these fields will\n  // change even if the value of the objects is the same. We SHOULD get rid of this FormChildRenderer (the only reason\n  // we need it is to support the \"SubmitButton\" field via Contentful), but the quick and dirty fix for this is to stringify\n  // these particular properties before using them in the dependency array.\n  // TODO: Get rid of the \"formChildrenRenderer\" and find another way to support the \"SubmitButton\" field via Contentful.\n  const rowsAsJson = JSON.stringify(rowsCollection);\n  const submitTextDatasetAsJson = JSON.stringify(submitTextDataset);\n  const persistFormFieldsAsJson = JSON.stringify(persistentFormFields);\n\n  const FormChildrenRenderer = useMemo(() => {\n    if (hasSubmitButton) {\n      return makeFormChildrenRenderer(\n        rowsCollection,\n        submitText,\n        submitSuccessText,\n        submitTextDataset,\n        persistentFormFields\n      );\n    }\n\n    return undefined;\n    // See comment above for full explanation. TLDR: we can't use submitTextDataset or persistentFormFields in the dependency\n    // array because they are reference types and will cause the creation of a new FormChildRenderer every time the Form\n    // component re-renders.\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [\n    hasSubmitButton,\n    rowsAsJson,\n    submitText,\n    submitSuccessText,\n    submitTextDatasetAsJson,\n    persistFormFieldsAsJson,\n  ]);\n\n  const formRows = useMemo(() => {\n    return rowsCollection.items.map((item: ContentfulFormRow) => (\n      <FormRow\n        {...item}\n        key={item.sys.id}\n        fieldRender={(item: ContentfulInputField) => {\n          return (\n            <FieldByType\n              key={item.sys.id}\n              contentfulInputField={item}\n              submitText={submitText}\n              submitSuccessText={submitSuccessText}\n              initialValue={persistentFormFields?.[item.name!]}\n            />\n          );\n        }}\n      />\n    ));\n  }, [persistentFormFields, rowsCollection.items, submitSuccessText, submitText]);\n\n  const getArkoseToken = useCallback(async () => {\n    arkoseRef.current?.run();\n\n    return new Promise<FormBody>((resolve, reject) => {\n      arkosePromiseResolveRef.current = resolve;\n      arkosePromiseRejectRef.current = reject;\n    });\n  }, []);\n\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  const onFormValueChange = useCallback(\n    // Debounced to not do too many writes to local storage or send too many events\n    debounce<OnValueChange>((formBody, lastChangedFieldName, isInit) => {\n      lastChangedFieldName &&\n        logUserEvent({\n          eventCategory: 'FormField',\n          eventAction: 'Change',\n          eventLabel: lastChangedFieldName,\n        });\n\n      // trigger the onValueChange handler if it exists\n      onValueChange?.(formBody, lastChangedFieldName, isInit);\n\n      // If the form is in its initial \"blank\" state, we don't want to save the form body to local storage\n      // otherwise we risk overwriting previously saved form data.\n      if (!persistFieldEdits || isInit) return;\n\n      allFormLocalStorageRef.current[sys.id] = formBody;\n      setLocalStorageItem(formKey, JSON.stringify({ ...allFormLocalStorageRef.current }));\n    }, 1e3),\n    [sys.id]\n  );\n\n  const finalExtraParams = useMemo(() => {\n    const currentUrl = getCurrentUrl();\n    const formExtraParameters = getFormExtraParameters(additionalFeaturesCollection, currentUrl);\n\n    return { ...formExtraParameters, ...extraParams, locale: currentLocale, country };\n  }, [additionalFeaturesCollection, extraParams, getCurrentUrl, currentLocale, country]);\n\n  return (\n    <>\n      <FormSDS\n        // eslint-disable-next-line @typescript-eslint/no-misused-promises\n        onSubmitSuccess={onSubmitSuccess}\n        onSubmitFailure={onSubmitFailure}\n        submitText={submitText}\n        submitSuccessText={submitSuccessText}\n        submitTextDataset={submitTextDataset}\n        endpoint={endpoint}\n        formChildrenRenderer={FormChildrenRenderer}\n        extraParams={finalExtraParams}\n        extraParamsAsync={enableArkose ? getArkoseToken : undefined}\n        onFormBodyChange={onFormValueChange}\n        on400ResponseMessage={on400ResponseMessage}\n        on500ResponseMessage={on500ResponseMessage}\n        onInvalidClientSideSubmissionMessage={onInvalidClientSideSubmissionMessage}\n        renderErrorDetails={Config.isLocal}\n        {...rest}\n      >\n        {formRows}\n      </FormSDS>\n      {responseType === FormResponseType.DownloadableResourceUrl && (\n        <a\n          data-testid=\"test-anchor-download\"\n          ref={anchorTag}\n          href={formDownloadUrl}\n          download\n          className={hiddenCss}\n        >\n          Hidden trigger anchor\n        </a>\n      )}\n    </>\n  );\n};\n", "import { ensureSingleScript } from '@snapchat/mw-common/client';\nimport { useEffect, useRef } from 'react';\n\nimport { Config } from '../config';\nimport { arkosePublicDevKey, arkosePublicProdKey } from '../constants/arkose';\nimport type { ArkoseMyEnforcement } from '../types/arkose';\n\nexport interface CustomArkoseClient {\n  run: () => void;\n}\n\ninterface UseArkoseProps {\n  /** The nonce to use for the Arkose script tag if needed for CSP. */\n  nonce?: string;\n  /**\n   * Callback for when the Arkose client is ready to be used. This will only be called for the first\n   * instance of arkose being used. This means that if you have two forms on one page both using\n   * arkose, only one of the onReadys will fire\n   */\n  onReady?: () => void;\n  /** Callback for when the Arkose get token call has completed. */\n  onCompleted?: (token: string) => void;\n  /** Callback for when the Arkose get token call has errored. */\n  onError?: (error?: string) => void;\n  /**\n   * Callback for when the Arkose client has been reset, which happens after a successful get token\n   * call.\n   */\n  onReset?: () => void;\n  /** A ref to the Arkose client that can be used to call the run method to get the token */\n  arkoseClientRef: React.MutableRefObject<CustomArkoseClient | undefined>;\n  /** Boolean to disable/enable arkose since not all sites will use it initially */\n  enableArkose?: boolean;\n  /**\n   * The keys allow for separation of Arkose integrations for better tracking and monitoring. A\n   * public dev key for Arkose integration\n   */\n  arkoseDevKey?: string;\n  /** A public prod key for Arkose integration */\n  arkoseProdKey?: string;\n}\n\nlet globalMyEnforcement: ArkoseMyEnforcement | undefined;\n\n/**\n * Hook that exposes the global arkose client to the consumer. This is used to get the token from\n * arkose and attach callbacks to ready, completed, error, and reset events.\n *\n * This can also be enabled/disabled via the enableArkose config prop since some sites might not\n * want to use arkose initially.\n */\nexport const useArkose = ({\n  nonce,\n  onReady,\n  onCompleted,\n  onError,\n  onReset,\n  arkoseClientRef: myEnforcementRef,\n  enableArkose,\n  arkoseDevKey = arkosePublicDevKey,\n  arkoseProdKey = arkosePublicProdKey,\n}: UseArkoseProps): void => {\n  const publicKey = Config.isDeploymentTypeProd ? arkoseProdKey : arkoseDevKey;\n\n  const scriptId = `arkose-script-${publicKey}`;\n\n  const customArkoseClient = useRef<CustomArkoseClient>();\n\n  const setMyEnforcementConfig = (myEnforcement: ArkoseMyEnforcement): void => {\n    myEnforcement.setConfig({\n      onReady: () => {\n        onReady?.();\n      },\n      onCompleted: response => {\n        onCompleted?.(response.token);\n      },\n      onError: response => {\n        onError?.(response?.error);\n      },\n      onReset: () => {\n        onReset?.();\n      },\n    });\n  };\n\n  // Helper function to help set the enforcement config before running\n  // We have to have a custom run method that sets the config\n  // before we get the token because if we have multiple forms\n  // on the same page, they will all override each others configs.\n  // This way, we just set the config before we request the token so\n  // only the correct forms will call onCompleted\n  const setMyEnforcementRef = () => {\n    customArkoseClient.current = {\n      run: () => {\n        if (globalMyEnforcement) {\n          setMyEnforcementConfig(globalMyEnforcement);\n          globalMyEnforcement.run();\n        }\n      },\n    };\n    myEnforcementRef.current = customArkoseClient.current;\n  };\n\n  const setupEnforcement = (myEnforcement: ArkoseMyEnforcement): void => {\n    globalMyEnforcement = myEnforcement;\n\n    setMyEnforcementRef();\n    // set initial config in case there's an onReady callback\n    setMyEnforcementConfig(myEnforcement);\n  };\n\n  useEffect(\n    () => {\n      // allow disabling arkose since not all sites will have it initially\n      if (!enableArkose) {\n        return;\n      }\n\n      const attributes: Record<string, string> = {\n        type: 'text/javascript',\n        'data-callback': 'setupArkoseEnforcement',\n        async: 'true',\n        defer: 'true',\n      };\n\n      if (nonce) {\n        attributes.nonce = nonce;\n      }\n\n      // if myEnforcement has already been set, just set the ref\n      if (globalMyEnforcement) {\n        // same reasons as above in setupEnforcement\n        setMyEnforcementRef();\n      } else {\n        ensureSingleScript(\n          scriptId,\n          `https://snap-api.arkoselabs.com/v2/${publicKey}/api.js`,\n          () => {\n            // if the global setupEnforcement is not set, set it.\n            // the ref will be set when setupEnforcment is called by the arkose script\n            if (!window.setupArkoseEnforcement) {\n              window.setupArkoseEnforcement = setupEnforcement;\n            } else {\n              // we handle this case because two forms could fire at the same time,\n              // and setupEnforcment might be set at the time for the second form\n              setMyEnforcementRef();\n            }\n          },\n          attributes\n        );\n      }\n    },\n    // We only want to run once mount\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    []\n  );\n};\n", "export const arkoseVerifyEndpoint = 'https://snap-verify.arkoselabs.com/api/v4/verify/';\nexport const arkosePublicDevKey = '1A7AAF5C-0F05-4719-BFD4-2A7C94BE53AE';\nexport const arkosePublicProdKey = '664578B2-FE27-4BE6-952F-E1023A4BA422';\n", "import { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport type { Document } from '@contentful/rich-text-types';\nimport { css } from '@emotion/css';\nimport type {\n  DropdownField as DropdownFieldType,\n  InputField as ContentfulInputType,\n} from '@snapchat/mw-contentful-schema';\nimport type {\n  InputType,\n  MultiSelectOption,\n  ValidationKey,\n} from '@snapchat/snap-design-system-marketing';\nimport { Button, Input, MultiSelectDropdown, Select } from '@snapchat/snap-design-system-marketing';\nimport omit from 'lodash-es/omit';\nimport type { FC } from 'react';\n\nimport { mediaQuery } from '../../styles/mediaQueries';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport type { DropdownOption, FieldByTypeProps } from './types';\nimport { presetDropdowns } from './utils';\n\nconst buttonContainerCss = css`\n  width: 100%;\n  display: inline-flex;\n  justify-content: center;\n\n  ${mediaQuery.over768_desktop_small} {\n    width: auto;\n  }\n`;\n\nexport const FieldByType: FC<FieldByTypeProps> = ({\n  contentfulInputField: field,\n  submitText,\n  submitSuccessText,\n  submitTextDataset,\n  submitProps,\n  initialValue: fieldInitialValue,\n}) => {\n  const typename = field.__typename;\n\n  if (typename === 'InputField') {\n    const inputInspectorProps = getContentfulInspectorProps<ContentfulInputType>({\n      entryId: field.sys.id,\n      fieldIds: ['richLabel', 'label', 'error', 'helpText', 'contentfulDescription'],\n    });\n    const error = field.error ? documentToReactComponents(field.error.json as Document) : null;\n    const richLabel = field.richLabel\n      ? documentToReactComponents(field.richLabel.json as Document)\n      : null;\n\n    const initialValue =\n      (field.type !== 'Hidden' ? fieldInitialValue : undefined) ?? field.initialValue;\n\n    return (\n      <Input\n        key={field.sys.id}\n        name={field.name!}\n        // @ts-ignore: The types are correct. Typecheck is failing here.\n        type={field.type as InputType | undefined}\n        validation={field.validation as ValidationKey}\n        label={field.label}\n        required={field.required}\n        placeholder={field.placeholder}\n        // @ts-ignore: There's no 'readOnly' prop in the Input component, but we set it synthetically for SPS.\n        readOnly={field.readOnly}\n        maxLength={field.maxLength}\n        shouldResetToInitial={field.shouldResetToInitial}\n        helpText={field.helpText}\n        minValue={field.minValue}\n        maxValue={field.maxValue}\n        dataset={inputInspectorProps.contentfulDescriptionDataset}\n        {...inputInspectorProps}\n        error={error}\n        richLabel={richLabel}\n        initialValue={initialValue}\n      />\n    );\n  }\n\n  const dropdownDatasets = getContentfulInspectorProps<DropdownFieldType>({\n    entryId: field.sys.id,\n    fieldIds: ['label', 'error', 'helpText', 'contentfulDescription'],\n  });\n\n  if (typename === 'DropdownField') {\n    const optionCollectionItems = field.optionsCollection?.items ?? [];\n    const contentfulInitialValue = field.initialOption?.value;\n    const initialValue = fieldInitialValue ?? contentfulInitialValue;\n    const allValues = optionCollectionItems.map(({ value }) => value ?? '');\n    const initialSelectValue =\n      typeof initialValue === 'string' && allValues.includes(initialValue)\n        ? initialValue\n        : contentfulInitialValue;\n    const error = field.error ? documentToReactComponents(field.error.json as Document) : null;\n    // TODO: Add richLabel to the dropdown field.\n\n    return (\n      <Select\n        key={field.sys.id}\n        name={field.name!}\n        label={field.label}\n        initialValue={initialSelectValue}\n        allValues={allValues}\n        error={error}\n        shouldResetToInitial={field.shouldResetToInitial}\n        helpText={field.helpText}\n        required={field.required}\n        placeholder={field.placeholder}\n        {...omit(dropdownDatasets, 'contentfulDescriptionDataset')}\n        fieldDataset={dropdownDatasets.contentfulDescriptionDataset}\n      >\n        {optionCollectionItems.map(({ key, value }) => (\n          <option key={key} value={value || key}>\n            {key}\n          </option>\n        ))}\n      </Select>\n    );\n  }\n\n  if (typename === 'MultiselectDropdownField') {\n    const optionCollectionItems = field.optionsCollection?.items ?? [];\n    const error = field.error ? documentToReactComponents(field.error.json as Document) : null;\n    // TODO: Add richLabel to the multiselect field.\n\n    const initialValue =\n      Array.isArray(fieldInitialValue) && fieldInitialValue.every(item => typeof item === 'object')\n        ? (fieldInitialValue as MultiSelectOption[])\n        : undefined;\n    const options = optionCollectionItems\n      .map(({ key, value }) => {\n        if (!value || !key) return null;\n        return { name: value, id: key };\n      })\n      .filter(Boolean);\n\n    return (\n      <MultiSelectDropdown\n        name={field.name!}\n        label={field.label}\n        showCheckbox\n        options={options as MultiSelectOption[]}\n        required={field.required}\n        placeholder={field.placeholder}\n        error={error}\n        {...omit(dropdownDatasets, 'contentfulDescriptionDataset')}\n        dataset={dropdownDatasets.contentfulDescriptionDataset}\n        initialValues={initialValue}\n      />\n    );\n  }\n\n  if (typename === 'PresetDropdownField') {\n    const presetOptions = field.preset ? presetDropdowns[field.preset] : undefined;\n    if (!presetOptions) return null;\n    const allValues = presetOptions.data.map(({ value }) => value);\n    const error = field.error ? documentToReactComponents(field.error.json as Document) : null;\n    // TODO: Add richLabel to the select field.\n\n    return (\n      <Select\n        key={field.sys.id}\n        error={error}\n        placeholder={field.placeholder ?? presetOptions.defaultPlaceholder}\n        {...omit(dropdownDatasets, 'contentfulDescriptionDataset')}\n        name={field.name!}\n        label={field.label}\n        fieldDataset={dropdownDatasets.contentfulDescriptionDataset}\n        allValues={allValues}\n        initialValue={fieldInitialValue ?? field.initialValue}\n        required={field.required}\n      >\n        {presetOptions.data.map(({ key, value }: DropdownOption) => (\n          <option key={key} value={value}>\n            {key}\n          </option>\n        ))}\n      </Select>\n    );\n  }\n\n  if (typename === 'SubmitButton' && submitProps) {\n    const { handleSubmit, disabled, loading, submitSuccess } = submitProps;\n    return (\n      <div className={buttonContainerCss}>\n        <Button\n          type=\"Primary\"\n          size=\"Large\"\n          onClick={handleSubmit}\n          disabled={disabled}\n          loading={loading}\n          buttonTextDataset={submitTextDataset}\n        >\n          {submitSuccess ? submitSuccessText ?? submitText : submitText}\n        </Button>\n      </div>\n    );\n  }\n\n  return null;\n};\n", "/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n  var length = array == null ? 0 : array.length;\n  return length ? array[length - 1] : undefined;\n}\n\nexport default last;\n", "import baseGet from './_baseGet.js';\nimport baseSlice from './_baseSlice.js';\n\n/**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\nfunction parent(object, path) {\n  return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n}\n\nexport default parent;\n", "import castPath from './_castPath.js';\nimport last from './last.js';\nimport parent from './_parent.js';\nimport toKey from './_toKey.js';\n\n/**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\nfunction baseUnset(object, path) {\n  path = castPath(path, object);\n  object = parent(object, path);\n  return object == null || delete object[toKey(last(path))];\n}\n\nexport default baseUnset;\n", "import isPlainObject from './isPlainObject.js';\n\n/**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\nfunction customOmitClone(value) {\n  return isPlainObject(value) ? undefined : value;\n}\n\nexport default customOmitClone;\n", "import arrayMap from './_arrayMap.js';\nimport baseClone from './_baseClone.js';\nimport baseUnset from './_baseUnset.js';\nimport castPath from './_castPath.js';\nimport copyObject from './_copyObject.js';\nimport customOmitClone from './_customOmitClone.js';\nimport flatRest from './_flatRest.js';\nimport getAllKeysIn from './_getAllKeysIn.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n    CLONE_FLAT_FLAG = 2,\n    CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\nvar omit = flatRest(function(object, paths) {\n  var result = {};\n  if (object == null) {\n    return result;\n  }\n  var isDeep = false;\n  paths = arrayMap(paths, function(path) {\n    path = castPath(path, object);\n    isDeep || (isDeep = path.length > 1);\n    return path;\n  });\n  copyObject(object, getAllKeysIn(object), result);\n  if (isDeep) {\n    result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n  }\n  var length = paths.length;\n  while (length--) {\n    baseUnset(result, paths[length]);\n  }\n  return result;\n});\n\nexport default omit;\n", "import type {\n  FieldValue,\n  InputType,\n  MultiSelectOption,\n} from '@snapchat/snap-design-system-marketing';\n\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport type { ContentfulInputField, DropdownOption, FormDataProps } from './types';\n\nexport const isFormDataProps = (props: ContentfulSysProps): props is FormDataProps =>\n  (props as FormDataProps).__typename === 'Form';\n\nexport interface PresetDropdown {\n  data: DropdownOption[];\n  defaultPlaceholder?: string;\n}\n\n// Adapted from https://help.salesforce.com/s/articleView?id=sf.admin_state_country_picklists_standard_countries.htm\nconst countryCodeToName: Record<string, string> = {\n  US: 'United States',\n  AD: 'Andorra',\n  AE: 'United Arab Emirates',\n  AF: 'Afghanistan',\n  AG: 'Antigua and Barbuda',\n  AI: 'Anguilla',\n  AL: 'Albania',\n  AM: 'Armenia',\n  AO: 'Angola',\n  AQ: 'Antarctica',\n  AR: 'Argentina',\n  AT: 'Austria',\n  AU: 'Australia',\n  AW: 'Aruba',\n  AX: 'Aland Islands',\n  AZ: 'Azerbaijan',\n  BA: 'Bosnia and Herzegovina',\n  BB: 'Barbados',\n  BD: 'Bangladesh',\n  BE: 'Belgium',\n  BF: 'Burkina Faso',\n  BG: 'Bulgaria',\n  BH: 'Bahrain',\n  BI: 'Burundi',\n  BJ: 'Benin',\n  BL: 'Saint Barth\u00E9lemy',\n  BM: 'Bermuda',\n  BN: 'Brunei',\n  BO: 'Bolivia',\n  BQ: 'Bonaire, Sint Eustatius and Saba',\n  BR: 'Brazil',\n  BS: 'Bahamas',\n  BT: 'Bhutan',\n  BV: 'Bouvet Island',\n  BW: 'Botswana',\n  BY: 'Belarus',\n  BZ: 'Belize',\n  CA: 'Canada',\n  CC: 'Cocos (Keeling) Islands',\n  CD: 'Congo, the Democratic Republic of the',\n  CF: 'Central African Republic',\n  CG: 'Congo',\n  CH: 'Switzerland',\n  CI: \"Cote d'Ivoire\",\n  CK: 'Cook Islands',\n  CL: 'Chile',\n  CM: 'Cameroon',\n  CN: 'China',\n  CO: 'Colombia',\n  CR: 'Costa Rica',\n  CU: 'Cuba',\n  CV: 'Cape Verde',\n  CW: 'Cura\u00E7ao',\n  CX: 'Christmas Island',\n  CY: 'Cyprus',\n  CZ: 'Czech Republic',\n  DE: 'Germany',\n  DJ: 'Djibouti',\n  DK: 'Denmark',\n  DM: 'Dominica',\n  DO: 'Dominican Republic',\n  DZ: 'Algeria',\n  EC: 'Ecuador',\n  EE: 'Estonia',\n  EG: 'Egypt',\n  EH: 'Western Sahara',\n  ER: 'Eritrea',\n  ES: 'Spain',\n  ET: 'Ethiopia',\n  FI: 'Finland',\n  FJ: 'Fiji',\n  FK: 'Falkland Islands (Malvinas)',\n  FO: 'Faroe Islands',\n  FR: 'France',\n  GA: 'Gabon',\n  GB: 'United Kingdom',\n  GD: 'Grenada',\n  GE: 'Georgia',\n  GF: 'French Guiana',\n  GG: 'Guernsey',\n  GH: 'Ghana',\n  GI: 'Gibraltar',\n  GL: 'Greenland',\n  GM: 'Gambia',\n  GN: 'Guinea',\n  GP: 'Guadeloupe',\n  GQ: 'Equatorial Guinea',\n  GR: 'Greece',\n  GS: 'South Georgia and the South Sandwich Islands',\n  GT: 'Guatemala',\n  GW: 'Guinea-Bissau',\n  GY: 'Guyana',\n  HK: 'Hong Kong',\n  HM: 'Heard Island and McDonald Islands',\n  HN: 'Honduras',\n  HR: 'Croatia',\n  HT: 'Haiti',\n  HU: 'Hungary',\n  ID: 'Indonesia',\n  IE: 'Ireland',\n  IL: 'Israel',\n  IM: 'Isle of Man',\n  IN: 'India',\n  IO: 'British Indian Ocean Territory',\n  IQ: 'Iraq',\n  IR: 'Iran',\n  IS: 'Iceland',\n  IT: 'Italy',\n  JE: 'Jersey',\n  JM: 'Jamaica',\n  JO: 'Jordan',\n  JP: 'Japan',\n  KE: 'Kenya',\n  KG: 'Kyrgyzstan',\n  KH: 'Cambodia',\n  KI: 'Kiribati',\n  KM: 'Comoros',\n  KN: 'Saint Kitts and Nevis',\n  KP: \"Korea, Democratic People's Republic of\",\n  KR: 'South Korea',\n  KW: 'Kuwait',\n  KY: 'Cayman Islands',\n  KZ: 'Kazakhstan',\n  LA: 'Laos',\n  LB: 'Lebanon',\n  LC: 'Saint Lucia',\n  LI: 'Liechtenstein',\n  LK: 'Sri Lanka',\n  LR: 'Liberia',\n  LS: 'Lesotho',\n  LT: 'Lithuania',\n  LU: 'Luxembourg',\n  LV: 'Latvia',\n  LY: 'Libya',\n  MA: 'Morocco',\n  MC: 'Monaco',\n  MD: 'Moldova',\n  ME: 'Montenegro',\n  MF: 'Saint Martin',\n  MG: 'Madagascar',\n  MK: 'Macedonia',\n  ML: 'Mali',\n  MM: 'Myanmar',\n  MN: 'Mongolia',\n  MO: 'Macao',\n  MQ: 'Martinique',\n  MR: 'Mauritania',\n  MS: 'Montserrat',\n  MT: 'Malta',\n  MU: 'Mauritius',\n  MV: 'Maldives',\n  MW: 'Malawi',\n  MX: 'Mexico',\n  MY: 'Malaysia',\n  MZ: 'Mozambique',\n  NA: 'Namibia',\n  NC: 'New Caledonia',\n  NE: 'Niger',\n  NF: 'Norfolk Island',\n  NG: 'Nigeria',\n  NI: 'Nicaragua',\n  NL: 'Netherlands',\n  NO: 'Norway',\n  NP: 'Nepal',\n  NR: 'Nauru',\n  NU: 'Niue',\n  NZ: 'New Zealand',\n  OM: 'Oman',\n  PA: 'Panama',\n  PE: 'Peru',\n  PF: 'French Polynesia',\n  PG: 'Papua New Guinea',\n  PH: 'Philippines',\n  PK: 'Pakistan',\n  PL: 'Poland',\n  PM: 'Saint Pierre and Miquelon',\n  PN: 'Pitcairn',\n  PS: 'Palestine',\n  PT: 'Portugal',\n  PY: 'Paraguay',\n  QA: 'Qatar',\n  RE: 'Reunion',\n  RO: 'Romania',\n  RS: 'Serbia',\n  RU: 'Russia',\n  RW: 'Rwanda',\n  SA: 'Saudi Arabia',\n  SB: 'Solomon Islands',\n  SC: 'Seychelles',\n  SD: 'Sudan',\n  SE: 'Sweden',\n  SG: 'Singapore',\n  SH: 'Saint Helena, Ascension and Tristan da Cunha',\n  SI: 'Slovenia',\n  SJ: 'Svalbard and Jan Mayen',\n  SK: 'Slovakia',\n  SL: 'Sierra Leone',\n  SM: 'San Marino',\n  SN: 'Senegal',\n  SO: 'Somalia',\n  SR: 'Suriname',\n  SS: 'South Sudan',\n  ST: 'Sao Tome and Principe',\n  SV: 'El Salvador',\n  SX: 'Sint Maarten (Dutch part)',\n  SY: 'Syrian Arab Republic',\n  SZ: 'Swaziland',\n  TC: 'Turks and Caicos Islands',\n  TD: 'Chad',\n  TF: 'French Southern Territories',\n  TG: 'Togo',\n  TH: 'Thailand',\n  TJ: 'Tajikistan',\n  TK: 'Tokelau',\n  TL: 'Timor-Leste',\n  TM: 'Turkmenistan',\n  TN: 'Tunisia',\n  TO: 'Tonga',\n  TR: 'Turkey',\n  TT: 'Trinidad and Tobago',\n  TV: 'Tuvalu',\n  TW: 'Taiwan',\n  TZ: 'Tanzania',\n  UA: 'Ukraine',\n  UG: 'Uganda',\n  UY: 'Uruguay',\n  UZ: 'Uzbekistan',\n  VA: 'Holy See (Vatican City State)',\n  VC: 'Saint Vincent and the Grenadines',\n  VE: 'Venezuela',\n  VG: 'Virgin Islands, British',\n  VN: 'Vietnam',\n  VU: 'Vanuatu',\n  WF: 'Wallis and Futuna',\n  WS: 'Samoa',\n  YE: 'Yemen',\n  YT: 'Mayotte',\n  ZA: 'South Africa',\n  ZM: 'Zambia',\n  ZW: 'Zimbabwe',\n};\n\n// want to have sorted versions of countries\nconst sortedEntries = Object.entries(countryCodeToName).sort((a, b) =>\n  // Making sure US is at the top first before sorting by country name\n  a[0] === 'US' ? -1 : b[0] === 'US' ? 1 : a[1].localeCompare(b[1])\n);\n\nconst sortedCountries: Record<string, string> = Object.fromEntries(sortedEntries);\n\nexport const presetDropdowns: Record<string, PresetDropdown> = {\n  Countries: {\n    defaultPlaceholder: 'Country',\n    data: Object.values(sortedCountries).map(name => ({ key: name, value: name })),\n  },\n  'Countries (submit country code)': {\n    defaultPlaceholder: 'Country/Region',\n    data: Object.keys(sortedCountries).map(code => ({\n      key: countryCodeToName[code]!,\n      value: code,\n    })),\n  },\n};\n\n/** Returns a field for a given name from within form props. */\nexport function getFormField(\n  form: Pick<FormDataProps, 'rowsCollection'>,\n  fieldName: string\n): ContentfulInputField | undefined {\n  for (const row of form.rowsCollection.items) {\n    for (const field of row.fieldsCollection.items) {\n      if (field.name === fieldName) {\n        return field;\n      }\n    }\n  }\n\n  return undefined;\n}\n\n/** Map for matching contentful data to query parameters */\nconst utmParameterFieldMap = new Map(\n  Object.entries({\n    utmSourceFieldName: 'utm_source',\n    utmMediumFieldName: 'utm_medium',\n    utmCampaignFieldName: 'utm_campaign',\n    utmContentFieldName: 'utm_content',\n    utmTermFieldName: 'utm_term',\n  })\n);\n\n/**\n * Parses Form Features configuration from Contentful for extra parameters to append to form payload\n *\n * @param input Form Features collection from Contentful\n * @param currentUrl String containing the current url used to retrieve query parameters\n * @returns Object containing extra parameters to append to form data\n */\nexport const getFormExtraParameters = (\n  input: FormDataProps['additionalFeaturesCollection'],\n  currentUrl: string\n): Record<string, string> | undefined => {\n  // only process the first matching entry\n  const config = input?.items.find(item => item.__typename === 'ExtraParametersFormFeature');\n\n  if (!config) return undefined;\n\n  const searchParams = new URL(currentUrl).searchParams;\n\n  const output: Record<string, string> = {};\n\n  for (const [key, fieldName] of Object.entries(config)) {\n    const parameter = utmParameterFieldMap.get(key);\n    if (!fieldName || !parameter) continue; // if fieldname not defined or is missing from map, skip it\n\n    output[fieldName] = searchParams.get(parameter) ?? '';\n  }\n\n  // Placeholder for future extra parameter logic (blizzard Identifier, etc)\n\n  return output;\n};\n\n/**\n * Retrieves the form query parameters from the current URL checked against a form field\n * configuration.\n *\n * @returns A Map containing the form query parameters.\n */\nexport const getFormQueryParams = (\n  currentUrl: string,\n  getFormField: (fieldName: string) => ContentfulInputField | undefined\n): Map<string, FieldValue> => {\n  const params = new Map<string, string | string[]>();\n  const url = new URL(currentUrl);\n  const rawParams = new URLSearchParams(url.search);\n\n  rawParams.forEach((_value, key) => {\n    if (key.startsWith('form_')) {\n      const updatedKey = key.replace('form_', '');\n      const value = rawParams.getAll(key);\n      params.set(updatedKey, value.length > 1 ? value : value[0]!);\n    }\n  });\n\n  // Now parse the params based on the field settings.\n\n  const formBody = new Map<string, FieldValue>();\n\n  for (const [key, value] of params) {\n    const field = getFormField(key);\n    if (!field || !field.name) continue;\n\n    switch (field.__typename) {\n      case 'DropdownField':\n        formBody.set(field.name, value);\n        break;\n\n      case 'MultiselectDropdownField': {\n        const values = Array.isArray(value) ? value : [value];\n        const multiValues = values\n          .map(val => {\n            const optionName = field.optionsCollection?.items.find(item => item.key === val)?.value;\n            if (!optionName) return undefined;\n            return { id: val, name: optionName };\n          })\n          .filter(Boolean) as MultiSelectOption[];\n        formBody.set(field.name!, multiValues);\n        break;\n      }\n\n      case 'InputField': {\n        const singleValue = Array.isArray(value) ? value[0] : value;\n\n        switch (field.type as InputType) {\n          case 'Checkbox': {\n            formBody.set(field.name, singleValue === 'true');\n            break;\n          }\n\n          case 'Number': {\n            // TODO: Fix the types so that we can pass in numbers.\n            formBody.set(field.name, singleValue);\n            break;\n          }\n\n          // Works for Date, Hidden, Text and TextArea.\n          default: {\n            formBody.set(field.name, singleValue);\n            break;\n          }\n        }\n        break;\n      }\n\n      case 'PresetDropdownField': {\n        formBody.set(field.name, value);\n        break;\n      }\n\n      default: {\n        console.warn(`Unsupported field type: ${field.__typename} for url form parsing.`);\n        break;\n      }\n    }\n  }\n\n  return formBody;\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as analyticsFragments } from '../Analytics/query';\n\nexport const formRowFragment = gql`\n  fragment FormRowAll on FormRow {\n    ...ContentfulSysId\n    rowAsText {\n      json\n    }\n    fieldsCollection(limit: 3) {\n      items {\n        __typename\n        ... on InputField {\n          ...ContentfulSysId\n          name\n          type\n          label\n          richLabel {\n            json\n          }\n          initialValue\n          shouldResetToInitial\n          placeholder\n          required\n          validation\n          helpText\n          error {\n            json\n          }\n          maxLength\n          minValue\n          maxValue\n        }\n        ... on SubmitButton {\n          ...ContentfulSysId\n          name\n        }\n        ... on PresetDropdownField {\n          ...ContentfulSysId\n          name\n          label\n          preset\n          placeholder\n          required\n          helpText\n          error {\n            json\n          }\n        }\n        ... on DropdownField {\n          ...ContentfulSysId\n          name\n          label\n          placeholder\n          required\n          helpText\n          optionsCollection {\n            items {\n              ... on DropdownFieldOption {\n                ...ContentfulSysId\n                key\n                value\n              }\n            }\n          }\n          initialOption {\n            ... on DropdownFieldOption {\n              ...ContentfulSysId\n              key\n              value\n            }\n          }\n          shouldResetToInitial\n          error {\n            json\n          }\n        }\n        ... on MultiselectDropdownField {\n          ...ContentfulSysId\n          name\n          label\n          placeholder\n          required\n          helpText\n          optionsCollection {\n            items {\n              ... on DropdownFieldOption {\n                ...ContentfulSysId\n                key\n                value\n              }\n            }\n          }\n          error {\n            json\n          }\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport const extraParametersFormFeatureFragment = gql`\n  fragment ExtraParametersFormFeatureAll on ExtraParametersFormFeature {\n    ...ContentfulSysId\n    utmCampaignFieldName\n    utmContentFieldName\n    utmMediumFieldName\n    utmSourceFieldName\n    utmTermFieldName\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport const formFragments = {\n  all: gql`\n    fragment FormAll on Form {\n      ...ContentfulSysId\n      endpoint\n      redirectUrl\n      responseType\n      redirectTimeout\n      submitText\n      submitSuccessText\n      analytics {\n        ...AnalyticsAll\n      }\n      persistFieldEdits\n      prepopulatePerQueryParams\n      # limit raised to 20 for avalon form use case\n      rowsCollection(limit: 20) {\n        items {\n          ...FormRowAll\n        }\n      }\n      # current expected case is a 0-1 features, but this way we can accommodate future cases w/ minimal effort\n      additionalFeaturesCollection(limit: 5) {\n        items {\n          ... on ExtraParametersFormFeature {\n            ...ExtraParametersFormFeatureAll\n          }\n        }\n      }\n    }\n    ${formRowFragment}\n    ${extraParametersFormFeatureFragment}\n    ${contentfulSysIdFragment}\n    ${analyticsFragments.all}\n  `,\n};\n\nexport const queries = {\n  shallow: gql`\n    query FormQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      form(preview: $preview, locale: $locale, id: $id) {\n        ...ContentfulSysId\n      }\n    }\n    ${contentfulSysIdFragment}\n  `,\n  all: gql`\n    query FormQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      form(preview: $preview, locale: $locale, id: $id) {\n        ...FormAll\n      }\n    }\n    ${formFragments.all}\n  `,\n};\n", "import type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport { Form } from './Form';\nimport { queries } from './queries';\nimport type { FormDataHandlerProps } from './types';\n\nexport const FormShallow: FC<ContentfulSysProps> = props => {\n  const { data } = useContentfulQuery<FormDataHandlerProps, ContentfulIdVariable>(queries.all, {\n    variables: { id: props.sys.id },\n  });\n\n  if (!data?.form) return null;\n  return <Form {...data.form} />;\n};\n\nFormShallow.displayName = 'Form';\n", "import type { Gallery as GalleryType } from '@snapchat/mw-contentful-schema';\nimport {\n  GalleryFiltersV2 as GalleryFiltersV2SDS,\n  Pagination,\n} from '@snapchat/snap-design-system-marketing';\nimport cloneDeep from 'lodash-es/cloneDeep';\nimport omit from 'lodash-es/omit';\nimport pick from 'lodash-es/pick';\nimport type { FC } from 'react';\nimport { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { Config } from '../../config';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport { totalHeaderHeightCssVar } from '../Header/headerSizeUtils';\nimport { defaultTilesPerPage, galleryTagsPrefix } from './constants';\nimport { LazyTiles } from './LazyTiles';\nimport type { GalleryDataProps } from './query';\nimport { galleryWrapperCss } from './styles';\nimport { useGalleryTiles } from './useGalleryTiles';\nimport { buildSearchMenus } from './utils';\n\ntype GalleryProps = {\n  gallery: Omit<GalleryDataProps, 'tilesCollection'>;\n};\n\nconst handleScroll = (gallery: HTMLDivElement | null) => {\n  // Using requestAnimationFrame to avoid forced reflow  and solve inconsistencies with smooth scroll.\n  window.requestAnimationFrame(() => {\n    const totalHeaderHeight = Number.parseInt(\n      getComputedStyle(document.documentElement).getPropertyValue(totalHeaderHeightCssVar),\n      10\n    );\n\n    const galleryTop = gallery?.getBoundingClientRect().top ?? 0;\n    const scrollY = window.scrollY;\n\n    // Adding totalHeaderHeight to account the height of the header when sticky,\n    // plus 20px to make some white space between the top of the element and the header.\n    window.scrollTo({ top: galleryTop + scrollY - (totalHeaderHeight + 20), behavior: 'smooth' });\n  });\n};\n\nexport const Gallery: FC<GalleryProps> = props => {\n  const { gallery } = props;\n  const galleryId = gallery.sys.id;\n\n  const { getUrlParams, setUrlParams } = useContext(ConsumerContext);\n  const { onRedirect, getCurrentUrl } = useContext(AppContext);\n\n  const query = getUrlParams?.() ?? {};\n  const [page, setPage] = useState(gallery.hidePagination ? 1 : Number(query?.page ?? 1));\n\n  const dropdownFilters = useMemo(() => {\n    if (gallery?.dropdownsCollection) {\n      return buildSearchMenus(gallery.dropdownsCollection.items, true);\n    }\n\n    return undefined;\n  }, [gallery]);\n\n  const dropdownFiltersIds = useMemo(() => {\n    if (!dropdownFilters) {\n      return [];\n    }\n\n    return dropdownFilters.map(dropdown => dropdown.id);\n  }, [dropdownFilters]);\n\n  const [tilesTags, setTilesTags] = useState(pick(query, dropdownFiltersIds));\n\n  // Handle back button click\n  useEffect(() => {\n    const searchParams = getUrlParams?.() ?? {};\n    const newFilters = pick(searchParams, dropdownFiltersIds);\n    const newPage = Number(searchParams?.page ?? 1);\n    setTilesTags(newFilters);\n    setPage(newPage);\n  }, [dropdownFiltersIds, getUrlParams]);\n\n  const { paginationData, isLoading } = useGalleryTiles({\n    galleryId,\n    page,\n    pageSize: gallery?.itemsPerPage,\n    tags: Object.values(tilesTags),\n    sortBy: gallery?.sortBy,\n  });\n\n  const galleryRef = useRef<HTMLDivElement>(null);\n\n  const onChangeFilter = useCallback(\n    (filterKey: string, filterValue: string | undefined) => {\n      if (!setUrlParams) {\n        return;\n      }\n\n      let newFilters = cloneDeep(tilesTags);\n      const currentQuery = getUrlParams?.() ?? {};\n      const otherParams = omit(currentQuery, dropdownFiltersIds);\n\n      if (filterValue) {\n        newFilters[filterKey] = filterValue;\n      } else {\n        newFilters = omit(newFilters, filterKey);\n      }\n      setTilesTags(newFilters);\n      setPage(1);\n      setUrlParams({ ...otherParams, ...newFilters, page: '1' });\n    },\n    [dropdownFiltersIds, getUrlParams, setUrlParams, tilesTags]\n  );\n\n  const onChangePage = useCallback(\n    (newPage: number) => {\n      if (!setUrlParams) {\n        return;\n      }\n\n      const currentQuery = getUrlParams?.() ?? {};\n      const newUrlParams = cloneDeep(currentQuery);\n      newUrlParams.page = `${newPage}`;\n      setPage(newPage);\n      setUrlParams(newUrlParams);\n      handleScroll(galleryRef.current);\n    },\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    [getUrlParams, setUrlParams, galleryRef.current] // We need the rebuild onChangePage when galleryRef.current gets assigned\n  );\n\n  const clearFilters = useCallback(() => {\n    if (!setUrlParams) {\n      return;\n    }\n\n    const currentQuery = getUrlParams?.() ?? {};\n    const otherParams = omit(currentQuery, dropdownFiltersIds);\n    setPage(1);\n    setTilesTags({});\n    setUrlParams({ ...otherParams, page: '1' });\n  }, [dropdownFiltersIds, getUrlParams, setUrlParams]);\n\n  const { mobileFiltersWrapperTextDataset, clearFiltersCtaCopyDataset, emptyPlaceholderDataset } =\n    getContentfulInspectorProps<GalleryType>({\n      entryId: galleryId,\n      fieldIds: [\n        'emptyPlaceholder',\n        'loadMoreCtaCopy',\n        'mobileFiltersWrapperText',\n        'clearFiltersCtaCopy',\n      ],\n    });\n\n  if (onRedirect && Config?.redirects?.queryRedirects) {\n    const queryRedirectsKeys = new Set(Object.keys(Config.redirects.queryRedirects));\n    const queryKeys = Object.keys(query);\n    const hasMatch = queryKeys.some(key => queryRedirectsKeys.has(key));\n\n    if (hasMatch) {\n      const requestUrl = new URL(getCurrentUrl());\n      const url = new URL(`${requestUrl.protocol}//${requestUrl.host}${requestUrl.pathname}`);\n\n      for (const [key, value] of Object.entries(query)) {\n        if (queryRedirectsKeys.has(key)) {\n          url.searchParams.set(`${galleryTagsPrefix}${key}`, String(value));\n          continue;\n        }\n\n        url.searchParams.set(key, String(value));\n      }\n\n      // Copy the hash/fragment (thing after #)\n      url.hash = requestUrl.hash;\n\n      onRedirect(`${url.pathname}${url.search}${url.hash}`, { newTab: false });\n      return null;\n    }\n  }\n\n  return (\n    <div data-test-id=\"mwp-lazy-gallery\" ref={galleryRef} className={galleryWrapperCss}>\n      {dropdownFilters && !gallery.hideFilters ? (\n        <GalleryFiltersV2SDS\n          searchMenus={dropdownFilters}\n          selectedFilters={tilesTags}\n          onChangeFilter={(filterKey, filterValue) => onChangeFilter(filterKey, filterValue)}\n          onClearFilters={clearFilters}\n          clearButtonLabel={gallery?.clearFiltersCtaCopy}\n          mobileFiltersToggleLabel={gallery?.mobileFiltersWrapperText}\n          mobileFiltersWrapperTextDataset={mobileFiltersWrapperTextDataset}\n          clearFiltersCtaCopyDataset={clearFiltersCtaCopyDataset}\n        />\n      ) : null}\n      <LazyTiles\n        emptyPlaceholder={gallery.emptyPlaceholder}\n        tiles={paginationData?.tiles}\n        showDates={gallery.showDates}\n        showDescriptions={gallery.showDescriptions}\n        showMedia={gallery.showMedia}\n        emptyPlaceholderDataset={emptyPlaceholderDataset}\n        isGalleryLoading={isLoading}\n        defaultTileImage={gallery.defaultImage ?? undefined}\n        numberOfTiles={gallery?.itemsPerPage ?? defaultTilesPerPage}\n      />\n      {paginationData?.total && !gallery.hidePagination ? (\n        <Pagination\n          totalPages={\n            Math.floor(\n              (paginationData.total - 1) / (gallery?.itemsPerPage ?? defaultTilesPerPage)\n            ) + 1\n          }\n          currentPage={page}\n          onChange={onChangePage}\n        />\n      ) : null}\n    </div>\n  );\n};\n\nGallery.displayName = 'Gallery';\n", "export const galleryTagsPrefix = 'select_';\nexport const defaultTilesPerPage = 12;\n\nexport const GalleryTilesSorting = {\n  ByDate: 'By Date',\n  Unsorted: 'Unsorted',\n} as const;\n\nexport const defaultTileSorting = GalleryTilesSorting.ByDate;\n", "import { cx } from '@emotion/css';\nimport type { SrcSetSizes } from '@snapchat/mw-contentful-client';\nimport { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport type { Tile } from '@snapchat/mw-contentful-schema';\nimport {\n  mobileMaxWidth,\n  SummaryCard as SummaryCardSDS,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { useFormatDate } from '../../hooks/useFormatDate';\nimport { UserAction } from '../../types/events';\nimport { combineImageSources } from '../../utils/combineImageSources';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport { parseMedia } from '../../utils/media';\nimport { renderRichText, renderRichTextMarkingsOnly } from '../../utils/renderText/renderRichText';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport { summaryCardHeroCss } from './SummaryCard.styled';\nimport type { SummaryCardProps } from './types';\n\n/*\nThis is a global fallback image to display on summary card when the user doesn't provide an image for the gallery or tile.\nThis image is in the global-components contentful space\n*/\nconst globalDefaultImage =\n  'https://images.ctfassets.net/kp51zybwznx4/120IJvdruE5HeC9XBYjFiU/879b8f63bde0d27c0750ade94c4b1a39/Default_Gallery_Image.png';\n\nconst defaultImagAltText = 'Snap Inc.';\n\nconst defaultDateOptions: Intl.DateTimeFormatOptions = {\n  day: '2-digit',\n  month: 'short',\n  year: 'numeric',\n  // NOTE: Always render these dates assuming UTC timezone to ensure consistent rendering between server and client.\n  //       Otherwise we would need to determine the client's timezone whenever we process the initial render on the server.\n  //       By using UTC for all cases we ensure consistent behavior, though we may be off by 1 day depending on the user's\n  //       location.\n  timeZone: 'UTC',\n};\n\n// 450 height on desktop, 360 height on mobile.\nconst imageHeights = [360, 450];\nconst galleryImgSrcSetSizes: SrcSetSizes = {\n  sizeToUrl: imageHeights.map(height => ({\n    // We can only use width descriptor so... even though it says 'w' it's not really its width.\n    // This way the browser will still use the correct one since we are telling it at mobile\n    // to use 360w and on desktop to use 450w.\n    size: `${height}w`,\n    settings: { height },\n  })),\n  sizes: `(max-width: ${mobileMaxWidth}px) 360px, 450px`,\n};\n\nexport const SummaryCard: FC<Omit<SummaryCardProps, 'linkedFrom'>> = ({\n  analytics,\n  date,\n  label,\n  media,\n  showDates,\n  showDescriptions,\n  showMedia = true,\n  slugReference,\n  sys,\n  title,\n  url,\n  isHeroTile = false,\n  eyebrowText,\n}) => {\n  const { formatDate } = useFormatDate();\n  const { logEvent } = useContext(ConsumerContext);\n  const { getImageSources } = useContentfulImages();\n\n  const validUrl = url ?? slugReference?.slug;\n\n  const logEventAction = () => {\n    validUrl &&\n      logEvent?.({\n        component: 'Summary Card',\n        type: UserAction.Click,\n        label: analytics?.label ? `${analytics.label} - ${validUrl}` : validUrl,\n        url: validUrl,\n      });\n  };\n\n  let { imageSource, imageAltText } = parseMedia(media?.media);\n  const { imageSource: mobileImageSource } = parseMedia(media?.mobileMedia);\n\n  if (!imageSource) {\n    imageSource = globalDefaultImage;\n    imageAltText = defaultImagAltText;\n  }\n  const imageSrcSettings = { size: galleryImgSrcSetSizes };\n  const imgSrcs = combineImageSources({\n    desktop: getImageSources(imageSource, imageSrcSettings),\n    mobile: getImageSources(mobileImageSource, imageSrcSettings),\n  });\n\n  const { contentfulDescriptionDataset, titleDataset, labelDataset, mediaDataset, dateDataset } =\n    getContentfulInspectorProps<Tile>({\n      entryId: sys.id,\n      fieldIds: ['title', 'label', 'date', 'media', 'contentfulDescription'],\n    });\n\n  return (\n    <SummaryCardSDS\n      onClick={logEventAction}\n      key={sys.id}\n      title={renderRichTextMarkingsOnly(title)}\n      description={renderRichText(label)}\n      imgSrcs={imgSrcs}\n      imgAltText={imageAltText}\n      link={validUrl}\n      showDate={showDates}\n      showDescription={showDescriptions}\n      showMedia={showMedia}\n      date={formatDate(date, defaultDateOptions)}\n      dateTime={date ? new Date(date) : undefined}\n      dataset={contentfulDescriptionDataset} // take the user to the tile entry\n      titleDataset={titleDataset}\n      descriptionDataset={labelDataset}\n      mediaDataset={mediaDataset}\n      dateDataset={dateDataset}\n      className={cx({ [summaryCardHeroCss]: isHeroTile })}\n      eyebrowText={eyebrowText}\n    />\n  );\n};\n\nSummaryCard.displayName = 'SummaryCard';\n", "import { useCallback, useContext } from 'react';\n\nimport { AppContext } from '../AppContext';\n\nconst forcedArabicLocale = 'ar-EG-u-nu-latn';\n\ntype FormatDate = {\n  formatDate: (date?: Date | string, dateFormatOptions?: Intl.DateTimeFormatOptions) => string;\n};\n\n/** Formats a date, forcing its locale to be ar-EG-u-nu-latn if active lang is Arabic. */\nexport function useFormatDate(): FormatDate {\n  const { currentLocale } = useContext(AppContext);\n\n  const formatDate = useCallback(\n    (date: Date | string | undefined, dateFormatOptions?: Intl.DateTimeFormatOptions): string => {\n      if (!date) return '';\n\n      const effectiveLocale = currentLocale.startsWith('ar') ? forcedArabicLocale : currentLocale;\n\n      const formatter = new Intl.DateTimeFormat(effectiveLocale, dateFormatOptions);\n      return formatter.format(new Date(date));\n    },\n    [currentLocale]\n  );\n\n  return { formatDate };\n}\n", "import { css } from '@emotion/css';\nimport { nonMobileMediaQuery } from '@snapchat/snap-design-system-marketing';\n\nconst mobileSummaryCardHeight = 180;\n\nconst summaryCardHeroHeight = 280;\n\nexport const summaryCardHeroCss = css`\n  height: ${mobileSummaryCardHeight}px;\n\n  ${nonMobileMediaQuery} {\n    height: ${summaryCardHeroHeight}px;\n  }\n`;\n", "import { gql } from '@apollo/client';\nimport type { ContentfulMetadata, Criteria } from '@snapchat/mw-contentful-schema';\nimport type { TileImageFit, TileImageSize } from '@snapchat/snap-design-system-marketing';\nimport type { ContentfulSysProps } from 'src/types/contentful';\nimport type { Items } from 'src/types/Items';\nimport type { RichText } from 'src/types/RichText';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as analyticsFragments } from '../Analytics/query';\nimport type { AnalyticsDataProps } from '../Analytics/types';\nimport { criteriaFragment } from '../Experiment';\nimport { fragments as imageFragments } from '../Image';\nimport type { ImageDataProps } from '../Image/types';\nimport { fragments as videoFragments } from '../Video';\n\nexport const fragments = {\n  all: gql`\n    fragment TileAll on Tile {\n      ...ContentfulSysId\n      title {\n        json\n      }\n      label {\n        json\n      }\n      media {\n        __typename\n        ... on Video {\n          ...VideoAll\n        }\n        ... on Image {\n          ...ImageAll\n        }\n      }\n      date\n      secondaryMedia {\n        ...ImageAll\n      }\n      imageSize\n      imageFit\n      url\n      contentfulMetadata {\n        tags {\n          id\n        }\n      }\n      analytics {\n        ...AnalyticsAll\n      }\n      slugReference {\n        ...ContentfulSysId\n        slug\n        unlistedCriteria {\n          ...CriteriaAll\n        }\n      }\n    }\n    ${analyticsFragments.all}\n    ${imageFragments.all}\n    ${videoFragments.all}\n    ${criteriaFragment}\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport type GalleryTileProps = ContentfulSysProps & {\n  contentfulMetadata: ContentfulMetadata;\n  title?: RichText;\n  label?: RichText;\n  url?: string;\n  media?: ImageDataProps | null;\n  date?: string;\n  secondaryMedia?: ImageDataProps | null;\n  imageSize?: TileImageSize;\n  imageFit?: TileImageFit;\n  analytics?: AnalyticsDataProps;\n  slugReference?: {\n    slug: string;\n    unlistedCriteria?: Criteria;\n  } & ContentfulSysProps;\n  linkedFrom?: {\n    galleryCollection: Items<ContentfulSysProps>;\n  };\n};\n\nexport const queries = {\n  shallow: gql`\n    query TileQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      tile(preview: $preview, locale: $locale, id: $id) {\n        ...ContentfulSysId\n      }\n    }\n    ${contentfulSysIdFragment}\n  `,\n  all: gql`\n    query TileQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      tile(preview: $preview, locale: $locale, id: $id) {\n        ...TileAll\n      }\n    }\n    ${fragments.all}\n  `,\n};\n", "import { gql } from '@apollo/client';\nimport type { ContentfulMetadata } from '@snapchat/mw-contentful-schema';\n\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport type { Items } from '../../types/Items';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as imageFragments } from '../Image';\nimport type { ImageDataProps } from '../Image/types';\nimport type { GalleryTileProps } from '../Tile/query';\nimport { fragments } from '../Tile/query';\nimport type { GalleryTilesSortingType } from './types';\n\nexport const skipDelta = 12;\n\n// =================================================================================================\n// Gallery Dropdown Fragment\n// =================================================================================================\n\nexport type DropdownItem = ContentfulSysProps & {\n  title: string;\n  contentfulMetadata: ContentfulMetadata;\n};\n\nconst galleryDropdownItemFragment = gql`\n  fragment GalleryDropdownItemAll on GalleryDropdownItem {\n    ...ContentfulSysId\n    title\n    contentfulMetadata {\n      tags {\n        id\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport type Dropdown = ContentfulSysProps & {\n  title: string;\n  matchAllOptionsTitle: string;\n  dropdownItemsCollection: Items<DropdownItem>;\n};\nconst galleryDropdownFragment = gql`\n  fragment GalleryDropdownAll on GalleryDropdown {\n    ...ContentfulSysId\n    title\n    matchAllOptionsTitle\n    dropdownItemsCollection {\n      items {\n        ... on GalleryDropdownItem {\n          ...GalleryDropdownItemAll\n        }\n      }\n    }\n  }\n  ${galleryDropdownItemFragment}\n  ${contentfulSysIdFragment}\n`;\n\n// =================================================================================================\n// Gallery Fragment\n// =================================================================================================\nexport const galleryFragment = gql`\n  fragment GalleryFragment on Gallery {\n    ...ContentfulSysId\n    dropdownsCollection(limit: 5) {\n      total\n      items {\n        ... on GalleryDropdown {\n          ...GalleryDropdownAll\n        }\n      }\n    }\n    sortBy\n    showDates\n    showMedia\n    showDescriptions\n    defaultImage {\n      ...ImageAll\n    }\n    emptyPlaceholder\n    loadMoreCtaCopy\n    mobileFiltersWrapperText\n    clearFiltersCtaCopy\n    itemsPerPage\n    hidePagination\n    hideFilters\n  }\n  ${contentfulSysIdFragment}\n  ${galleryDropdownFragment}\n  ${imageFragments.all}\n`;\n\nexport type GalleryDataProps = ContentfulSysProps & {\n  dropdownsCollection: Items<Dropdown>;\n  tilesCollection: Items<Omit<GalleryTileProps, 'linkedFrom'>>;\n  sortBy?: GalleryTilesSortingType;\n  showDates?: boolean;\n  showMedia?: boolean;\n  showDescriptions?: boolean;\n  defaultImage?: ImageDataProps | null;\n  emptyPlaceholder?: string;\n  loadMoreCtaCopy?: string;\n  mobileFiltersWrapperText?: string;\n  clearFiltersCtaCopy?: string;\n  itemsPerPage?: number;\n  hidePagination?: boolean;\n  hideFilters?: boolean;\n};\n\n// =================================================================================================\n// Gallery Query\n// =================================================================================================\n\nexport const lazyGalleryQuery = gql`\n  query GalleryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    gallery(preview: $preview, locale: $locale, id: $id) {\n      ...GalleryFragment\n    }\n  }\n  ${galleryFragment}\n`;\n\nexport type LazyGalleryQueryResponse = {\n  gallery: Omit<GalleryDataProps, 'tilesCollection'>;\n};\n\n// =================================================================================================\n// Tiles Query\n// =================================================================================================\n\nexport const tileCollectionQuery = gql`\n  query TileQuery($preview: Boolean!, $locale: String!, $ids: [String]!) {\n    tileCollection(preview: $preview, locale: $locale, where: { sys: { id_in: $ids } }) {\n      total\n      items {\n        ...TileAll\n      }\n    }\n  }\n  ${fragments.all}\n`;\n\nexport type TileQueryResponse = {\n  tileCollection: Items<GalleryTileProps>;\n};\n", "import { css } from '@emotion/css';\nimport { blockPadding, h3Css, imgWidth, m } from '@snapchat/snap-design-system-marketing';\n\nimport { totalHeaderHeightCssVar } from '../Header/headerSizeUtils';\n\nconst galleryWidth = 52;\n\nconst galleryWidths = [\n  (imgWidth + galleryWidth) * 4,\n  (imgWidth + galleryWidth) * 3,\n  (imgWidth + galleryWidth) * 2,\n  imgWidth + galleryWidth,\n];\n\nconst screenWidths = galleryWidths.map(w => w + blockPadding * 2);\n\nconst mediaQueries = screenWidths.map((width, idx) => {\n  if (idx === 0) {\n    return `@media screen and (min-width: ${width + 1}px)`;\n  }\n  const prevWidth = screenWidths[idx - 1];\n  return `@media screen and (min-width: ${width + 1}px) and (max-width: ${prevWidth}px)`;\n});\n\nexport const galleryWrapperCss = css`\n  margin-left: auto;\n  margin-right: auto;\n  margin-top: ${m('--spacing-m')};\n  margin-bottom: ${m('--spacing-m')};\n  scroll-margin-top: var(${totalHeaderHeightCssVar});\n\n  ${mediaQueries[2]} {\n    width: ${galleryWidths[2]}px;\n  }\n\n  ${mediaQueries[1]} {\n    width: ${galleryWidths[1]}px;\n  }\n\n  ${mediaQueries[0]} {\n    width: ${galleryWidths[0]}px;\n  }\n`;\n\nexport const galleryPlaceholderCss = css`\n  text-align: center;\n  margin-top: ${m('--spacing-xl')};\n  margin-bottom: ${m('--spacing-xl')};\n\n  ${h3Css}\n`;\n\nexport const buttonWrapperCss = css`\n  padding-top: ${m('--spacing-xl')};\n  display: flex;\n  justify-content: center;\n`;\n", "import {\n  dataSetToAttributes,\n  GalleryGridV2 as GalleryGridV2SDS,\n  SkeletonSummaryCard,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { SummaryCard } from '../SummaryCard';\nimport { defaultTilesPerPage } from './constants';\nimport type { TileQueryResponse } from './query';\nimport { tileCollectionQuery } from './query';\nimport { galleryPlaceholderCss } from './styles';\nimport type { LazyTilesProps } from './types';\n\nexport const LazyTiles: FC<LazyTilesProps> = ({\n  emptyPlaceholder,\n  tiles,\n  emptyPlaceholderDataset,\n  showDates,\n  showDescriptions,\n  showMedia,\n  isGalleryLoading,\n  defaultTileImage,\n  numberOfTiles,\n}) => {\n  const tileIds = tiles?.map(tile => tile.tileSysId) ?? [];\n\n  const { data, loading } = useContentfulQuery<TileQueryResponse, { ids: string[] }>(\n    tileCollectionQuery,\n    {\n      variables: { ids: tileIds },\n    }\n  );\n\n  const sortedItems = data?.tileCollection?.items\n    .slice()\n    .sort((a, b) => tileIds.indexOf(a.sys.id) - tileIds.indexOf(b.sys.id));\n\n  if (isGalleryLoading || loading) {\n    return (\n      <GalleryGridV2SDS>\n        {Array.from({ length: numberOfTiles ?? defaultTilesPerPage }).map((_, index) => (\n          <SkeletonSummaryCard key={`skeleton-summary-card-${index}`} />\n        ))}\n      </GalleryGridV2SDS>\n    );\n  }\n\n  return (\n    <>\n      {sortedItems?.length ? (\n        <GalleryGridV2SDS>\n          {sortedItems.map(tile => {\n            return (\n              <SummaryCard\n                key={tile.sys.id}\n                showDates={showDates}\n                showDescriptions={showDescriptions}\n                showMedia={showMedia}\n                {...tile}\n                media={tile.media ?? defaultTileImage}\n              />\n            );\n          })}\n        </GalleryGridV2SDS>\n      ) : (\n        <div data-test-id=\"mwp-gallery-placeholder\" className={galleryPlaceholderCss}>\n          <p {...dataSetToAttributes(emptyPlaceholderDataset)}>{emptyPlaceholder}</p>\n        </div>\n      )}\n    </>\n  );\n};\n\nLazyTiles.displayName = 'LazyTiles';\n", "import { useAsyncData } from '@snapchat/async-data-browser';\nimport { BrowserFeaturesContext } from '@snapchat/snap-design-system-marketing';\nimport { useContext, useMemo, useRef } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { Config } from '../../config';\nimport { logger } from '../../helpers/logging';\nimport { defaultTileSorting, defaultTilesPerPage } from './constants';\nimport type { GalleryTilesSortingType, PaginationDataProps } from './types';\n\ntype GalleryData = {\n  paginationData: PaginationDataProps | undefined;\n  isLoading: boolean;\n};\n\ntype GalleryTilesProps = {\n  galleryId: string;\n  page: number;\n  pageSize?: number;\n  tags: string[];\n  sortBy?: GalleryTilesSortingType;\n};\n\n/**\n * Returns the data needed to render the pagination and tiles components\n *\n * @param galleryId Id of the gallery we want to query\n * @param page Page number to use in the query\n * @param tags List of values from dropdown filters\n */\nexport function useGalleryTiles({\n  galleryId,\n  page,\n  tags,\n  pageSize = defaultTilesPerPage,\n  sortBy = defaultTileSorting,\n}: GalleryTilesProps): GalleryData {\n  const appContext = useContext(AppContext);\n  const browserFeatures = useContext(BrowserFeaturesContext);\n  const previousTotal = useRef(0);\n\n  const params = useMemo(() => {\n    const params = new URLSearchParams();\n\n    params.append('galleryId', galleryId);\n    params.append('pageSize', `${pageSize}`);\n    params.append('sortBy', sortBy);\n\n    if (tags.length) {\n      params.append('tags', tags.join(','));\n    }\n\n    params.append('page', `${page - 1}`);\n\n    if (appContext.currentLocale) {\n      params.append('locale', appContext.currentLocale);\n    }\n\n    if (appContext.userLocation.country) {\n      params.append('country', appContext.userLocation.country);\n    }\n\n    const platform = browserFeatures.getLowEntropyHints().platform;\n\n    if (platform) {\n      params.append('platform', platform);\n    }\n\n    const device = browserFeatures.getLowEntropyHints().isMobile ? 'Mobile' : 'Non-Mobile';\n\n    if (device) {\n      params.append('device', device);\n    }\n\n    return params;\n  }, [\n    galleryId,\n    tags,\n    page,\n    pageSize,\n    appContext.currentLocale,\n    appContext.userLocation.country,\n    browserFeatures,\n    sortBy,\n  ]);\n\n  const host = Config.isClient ? '' : `http://localhost:${process.env.PORT ?? 3000}`;\n  const url = `${host}/api/gallery?${params}`;\n\n  const { data, isLoading } = useAsyncData({\n    dataId: `/api/gallery?${params}`,\n    dataAsync: async () => {\n      try {\n        const response = await fetch(url);\n        const data = await response.json();\n        return data;\n      } catch (error) {\n        logger.logError({\n          component: 'UseGalleryTiles',\n          message: 'Error loading gallery tiles',\n          error,\n        });\n      }\n    },\n  });\n\n  if (data?.total) {\n    previousTotal.current = data?.total;\n  }\n\n  return {\n    paginationData: isLoading ? { tiles: [], total: previousTotal.current } : data,\n    isLoading,\n  };\n}\n", "import type { GalleryDropdown } from '@snapchat/mw-contentful-schema';\nimport kebabCase from 'lodash-es/kebabCase';\n\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport { galleryTagsPrefix } from './constants';\nimport type { Dropdown } from './query';\nimport type { SearchMenuProps } from './types';\n\nexport const buildSearchMenus = (\n  dropdowns: Array<Dropdown> | undefined,\n  galleryPaginationEnabled = false\n): SearchMenuProps => {\n  if (!dropdowns) {\n    return undefined;\n  }\n\n  return dropdowns.map(({ matchAllOptionsTitle, dropdownItemsCollection, title, sys }) => {\n    const { contentfulDescriptionDataset } = getContentfulInspectorProps<GalleryDropdown>({\n      entryId: sys.id,\n      // Direct users to the entry rather than a specific field, the text is different depending on the dropdown option\n      fieldIds: ['contentfulDescription'],\n    });\n\n    return {\n      title,\n      id: galleryPaginationEnabled\n        ? `${galleryTagsPrefix}${kebabCase(title)}`\n        : `${kebabCase(title)}`,\n      allItemTitle: matchAllOptionsTitle,\n      items: dropdownItemsCollection.items\n        .map(({ title, contentfulMetadata }) => {\n          const tags = contentfulMetadata.tags;\n          const itemId = tags.map(t => t.id).join(',');\n          return { title, id: itemId };\n        })\n        .sort((a, b) => a.title.localeCompare(b.title)),\n      dataset: contentfulDescriptionDataset,\n    };\n  });\n};\n", "import type { FC } from 'react';\n\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { Gallery } from './Gallery';\nimport type { LazyGalleryQueryResponse } from './query';\nimport { lazyGalleryQuery } from './query';\nimport type { LazyGalleryProps } from './types';\n\nexport const LazyGallery: FC<LazyGalleryProps> = props => {\n  const galleryId = props.sys.id;\n\n  const { data: galleryData } = useContentfulQuery<\n    LazyGalleryQueryResponse,\n    {\n      id: string;\n    }\n  >(lazyGalleryQuery, {\n    variables: { id: galleryId },\n  });\n\n  const gallery = galleryData?.gallery;\n\n  if (!gallery) {\n    return null;\n  }\n\n  return <Gallery gallery={gallery} />;\n};\n\nLazyGallery.displayName = 'LazyGallery';\n", "import { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport type { MosaicFilterProps, MosaicTileProps } from '@snapchat/snap-design-system-marketing';\nimport { Mosaic as MosaicSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { UserAction } from '../../types/events';\nimport { ConsumerContext } from '../ConsumerContextProvider';\nimport { getMediaProps } from '../Video/Video';\nimport type { MosaicTilesDataProps } from './types';\n\nexport const Mosaic: FC<MosaicTilesDataProps> = props => {\n  const consumerContext = useContext(ConsumerContext);\n  const { getBestBgImgSrc, getImageSources } = useContentfulImages();\n\n  const { logEvent } = consumerContext;\n\n  const { tilesCollection, columns, mobileColumns, filtersCollection } = props;\n\n  const tiles = tilesCollection.items.map(\n    ({ video, preview, thumbnail, filtersCollection, analytics, ...item }) => {\n      const poster = getImageSources(thumbnail.url, { image: { width: 768 } });\n      const label = analytics?.label ?? item.sys.id;\n      const component = 'MosaicTile';\n\n      return {\n        ...item,\n        onClose: () => logEvent?.({ type: UserAction.Close, component, label }),\n        onOpen: () => logEvent?.({ type: UserAction.Open, component, label }),\n        onEnter: () => logEvent?.({ type: UserAction.Enter, component, label }),\n        onLeave: () => logEvent?.({ type: UserAction.Leave, component, label }),\n        filters: filtersCollection?.items?.map(i => i.sys.id),\n        poster: {\n          src: poster?.default,\n          srcSet: poster?.defaultSrcSet,\n        },\n        video: video ? getMediaProps(video, getBestBgImgSrc) : undefined,\n        preview: preview ? getMediaProps(preview, getBestBgImgSrc) : undefined,\n      } as MosaicTileProps;\n    }\n  );\n\n  const filters = filtersCollection.items?.map(\n    ({ sys, isAll, ...filter }) => ({ id: isAll ? '' : sys.id, ...filter } as MosaicFilterProps)\n  );\n\n  return (\n    <MosaicSDS tiles={tiles} columns={columns} mobileColumns={mobileColumns} filters={filters} />\n  );\n};\nMosaic.displayName = 'Mosaic';\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as analyticsFragments } from '../Analytics/query';\nimport { fragments as videoFragments } from '../Video';\n\nexport const fragments = {\n  all: gql`\n    fragment MosaicAll on Mosaic {\n      ...ContentfulSysId\n      columns\n      mobileColumns\n      filtersCollection(limit: 20) {\n        items {\n          ...ContentfulSysId\n          ... on MosaicFilters {\n            ...ContentfulSysId\n            text\n            icon\n            isAll\n          }\n        }\n      }\n      tilesCollection(limit: 100) {\n        items {\n          ...ContentfulSysId\n          ... on MosaicTile {\n            ...ContentfulSysId\n            analytics {\n              ...AnalyticsAll\n            }\n            title\n            highlight\n            showOverlay\n            duration\n            columns\n            mobileColumns\n            rows\n            mobileRows\n            preview {\n              ...VideoAll\n            }\n            video {\n              ...VideoAll\n            }\n            thumbnail {\n              url\n              contentType\n            }\n            filtersCollection(limit: 50) {\n              items {\n                ...ContentfulSysId\n              }\n            }\n          }\n        }\n      }\n    }\n    ${analyticsFragments.all}\n    ${videoFragments.all}\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const query = {\n  shallow: gql`\n    query MosaicQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      mosaic(preview: $preview, locale: $locale, id: $id) {\n        ...ContentfulSysId\n      }\n    }\n    ${contentfulSysIdFragment}\n  `,\n  all: gql`\n    query MosaicQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      mosaic(preview: $preview, locale: $locale, id: $id) {\n        ...MosaicAll\n      }\n    }\n    ${fragments.all}\n  `,\n};\n", "import type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport { Mosaic } from './Mosaic';\nimport { query } from './query';\nimport type { MosaicDataHandlerProps } from './types';\n\nexport const MosaicShallow: FC<ContentfulTypedSysProps<'Mosaic'>> = props => {\n  const { data } = useContentfulQuery<MosaicDataHandlerProps, ContentfulIdVariable>(query.all, {\n    variables: { id: props.sys.id },\n  });\n\n  if (!data?.mosaic) return null;\n  return <Mosaic {...data.mosaic} __typename=\"Mosaic\" />;\n};\nMosaicShallow.displayName = 'Mosaic';\n", "import { createContext } from 'react';\n\nimport type { ReplacementMap } from '../Experiment';\n\ninterface SlugContextProps {\n  isShareable: boolean;\n  publishedAt?: Date;\n  postedDate?: Date;\n  replacements?: ReplacementMap;\n}\n\nexport const SlugContext = createContext<SlugContextProps>({\n  isShareable: false,\n});\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { buttonFragment } from '../Button';\n\nexport const fragments = {\n  all: gql`\n    fragment TabsAll on Tabs {\n      ...ContentfulSysId\n      itemsCollection(limit: 10) {\n        items {\n          ...ContentfulSysId\n          title\n          button {\n            ...ButtonAll\n          }\n          contentsCollection(limit: 10) {\n            items {\n              ...ContentfulSysId\n            }\n          }\n          maxColumns\n        }\n      }\n    }\n    ${buttonFragment}\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const queries = {\n  shallow: gql`\n    query TabsShallowQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      tabs(preview: $preview, locale: $locale, id: $id) {\n        ...ContentfulSysId\n      }\n    }\n    ${contentfulSysIdFragment}\n  `,\n  all: gql`\n    query TabsQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      tabs(preview: $preview, locale: $locale, id: $id) {\n        ...TabsAll\n      }\n    }\n    ${fragments.all}\n  `,\n};\n", "import { TabsV2 as TabsV2SDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { logUserEvent } from '../../helpers/logging';\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport { UserAction } from '../../types/events';\nimport { renderRichTextMarkingsOnly } from '../../utils/renderText/renderRichText';\nimport { ContentShallow } from '../Content/ContentShallow';\nimport { FormShallow } from '../Form';\nimport { queries } from './queries';\nimport type { TabsDataHandlerProps } from './types';\n\nexport const Tabs: FC<ContentfulSysProps> = props => {\n  const { data } = useContentfulQuery<TabsDataHandlerProps, ContentfulIdVariable>(queries.all, {\n    variables: { id: props.sys.id },\n  });\n\n  if (!data || !data.tabs) return null;\n\n  const { itemsCollection } = data.tabs;\n\n  const onSelectTab = (index: number) => {\n    logUserEvent({\n      eventAction: UserAction.Click,\n      eventCategory: 'Tab',\n      eventLabel: `tab:${index}`,\n    });\n  };\n\n  const items = itemsCollection.items.map(item => {\n    const content = item.contentsCollection\n      ? item.contentsCollection.items.map(contentDataProps => {\n          const key = contentDataProps.sys.id;\n\n          if (contentDataProps.__typename === 'Form') {\n            return <FormShallow key={key} {...contentDataProps} />;\n          }\n\n          return <ContentShallow key={key} {...contentDataProps} />;\n        })\n      : [];\n\n    return {\n      button: {\n        size: item.button.size,\n        type: item.button.buttonType,\n        title: renderRichTextMarkingsOnly(item.button.title),\n        image: item.button.image?.media,\n        iconName: item.button.iconName,\n      },\n      text: item.title,\n      content,\n      maxColumns: item.maxColumns,\n    };\n  });\n\n  return <TabsV2SDS items={items} onSelectTab={onSelectTab} />;\n};\n\nTabs.displayName = 'Tabs';\n", "import { lazyComponent } from '@snapchat/mw-common/client';\nimport { getRawData } from '@snapchat/mw-contentful-schema';\nimport { ChartSkeleton } from '@snapchat/snap-design-system-marketing';\nimport { type FC, useContext } from 'react';\n\nimport { AppContext } from '../../../AppContext';\nimport { SuspenseWrapper } from '../../SuspenseWrapper';\nimport type { BarChartRenderProps } from './types';\n\nconst LazyBarChart = lazyComponent(() =>\n  import('./LazyBarChart').then(module => ({ default: module.BarChart }))\n);\n\nexport const BarChart: FC<BarChartRenderProps> = props => {\n  const {\n    chartData,\n    yAxis,\n    xAxes,\n    stackKey,\n    filters,\n    width,\n    height,\n    hideXAxisLabels,\n    hideYAxisLabels,\n    hideXPercentLabels,\n    hideLegend,\n    chartTitle,\n    dataColors,\n    showAsPercent,\n    numberOfDecimalPlaces,\n  } = props;\n\n  const { isRTL } = useContext(AppContext);\n\n  if (!chartData) return null;\n\n  const rawData = getRawData(chartData);\n\n  return (\n    <SuspenseWrapper fallbackElement={<ChartSkeleton />}>\n      <LazyBarChart\n        chartTitle={chartTitle}\n        width={width}\n        height={height ?? 0}\n        yAxis={yAxis}\n        xAxes={xAxes}\n        stackKey={stackKey}\n        filters={filters}\n        hideXAxisLabels={hideXAxisLabels}\n        hideYAxisLabels={hideYAxisLabels}\n        hideXPercentLabels={hideXPercentLabels}\n        showAsPercent={showAsPercent ?? true}\n        numberOfDecimalPlaces={numberOfDecimalPlaces ?? 1}\n        hideLegend={hideLegend ?? true}\n        // Cast because rawData can have `Date` but bar chart doesn't support it...\n        data={rawData as unknown as Record<string, string | number>[]}\n        dataColors={dataColors || ['#A05CCC', '#FEFC01', '#3EDB9A', '#3BB2F7']}\n        isRTL={isRTL}\n      />\n    </SuspenseWrapper>\n  );\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nexport const seriesFragment = gql`\n  fragment SeriesAll on Series {\n    ...ContentfulSysId\n    schema\n    headerNames\n    localizableProperties\n  }\n`;\n\nexport const chartDataFragment = gql`\n  fragment ChartDataAll on ChartData {\n    ...ContentfulSysId\n    seriesName {\n      ...SeriesAll\n    }\n    label\n    data\n    localizedData\n  }\n  ${contentfulSysIdFragment}\n  ${seriesFragment}\n`;\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../../utils/contentful/contentfulQuery';\nimport { chartDataFragment } from '../query';\n\nexport const fragments = {\n  all: gql`\n    fragment BarChartAll on BarChart {\n      ...ContentfulSysId\n      chartTitle\n      chartData {\n        ...ChartDataAll\n      }\n      yAxis\n      xAxes\n      stackKey\n      filters\n      width\n      height\n      hideXAxisLabels\n      hideYAxisLabels\n      hideXPercentLabels\n      showAsPercent\n      numberOfDecimalPlaces\n      hideLegend\n      dataColors\n    }\n    ${contentfulSysIdFragment}\n    ${chartDataFragment}\n  `,\n  withTitle: gql`\n    fragment BarChartWithTitle on BarChart {\n      ...ContentfulSysId\n      chartTitle\n    }\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const queries = {\n  shallow: gql`\n    query barChartEntryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      barChart(preview: $preview, locale: $locale, id: $id) {\n        ...ContentfulSysId\n      }\n    }\n    ${contentfulSysIdFragment}\n  `,\n  all: gql`\n    query barChartEntryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      barChart(preview: $preview, locale: $locale, id: $id) {\n        ...BarChartAll\n      }\n    }\n    ${fragments.all}\n  `,\n};\n", "import { ChartSkeleton } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../../hooks/useContentfulQuery';\nimport { isContentfulSysProps } from '../../../utils/contentful';\nimport { BarChart } from './BarChart';\nimport { queries } from './query';\nimport type { BarChartDataHandlerProps, BarChartProps } from './types';\n\nexport const BarChartShallow: FC<BarChartProps> = props => {\n  const id = isContentfulSysProps(props) ? props.sys.id : undefined;\n\n  const { data, loading } = useContentfulQuery<BarChartDataHandlerProps, ContentfulIdVariable>(\n    queries.all,\n    {\n      skip: !id,\n      variables: { id },\n    }\n  );\n\n  if (loading) return <ChartSkeleton />;\n  if (!data) return null;\n\n  // If chart data or x axes was passed directly to this bar chart, use those instead of whatever is on the\n  // visualization (this will be the case if this is a child of a Multi Visualization)\n  const chartData = props.chartDataOverride ?? data.barChart.chartData;\n  const xAxes = props.xAxesOverride ?? data.barChart.xAxes;\n\n  return <BarChart {...data.barChart} chartData={chartData} xAxes={xAxes} />;\n};\n", "import type { ChartToggleItemProps } from '@snapchat/snap-design-system-marketing';\nimport {\n  ChartToggle as ChartToggleSDS,\n  ChartToggleV2 as ChartToggleV2SDS,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport type { ContentfulIdVariable } from '../../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../../hooks/useContentfulQuery';\nimport type { ContentfulSysProps } from '../../../types/contentful';\nimport { UserAction } from '../../../types/events';\nimport { ConsumerContext } from '../../ConsumerContextProvider';\nimport { Feature, useFeatureFlags } from '../../FeatureFlags';\nimport { BarChartShallow } from '../BarChart';\nimport { GeoMapShallow } from '../GeoMap';\nimport { LineChartShallow } from '../LineChart';\nimport { TableShallow } from '../Table';\nimport type { ChartToggleItemDataProps } from './query';\nimport { chartToggleQuery } from './query';\nimport type { ChartToggleProps } from './types';\n\nexport const Chart: FC<ContentfulSysProps> = props => {\n  switch (props.__typename) {\n    case 'ChartToggle': {\n      return <ChartToggle {...props} />;\n    }\n\n    case 'BarChart': {\n      return <BarChartShallow {...props} />;\n    }\n\n    case 'LineChart': {\n      return <LineChartShallow {...props} />;\n    }\n\n    case 'GeoVisualization': {\n      return <GeoMapShallow {...props} />;\n    }\n\n    case 'TableVisualization': {\n      return <TableShallow {...props} />;\n    }\n\n    default: {\n      console.error(`\uD83D\uDCD9 Unknown chart type: ${props.__typename} with id: ${props.sys.id}`);\n      return <>\uD83D\uDCD9</>;\n    }\n  }\n};\nChart.displayName = 'Chart';\n\nexport const ChartToggle: FC<ContentfulSysProps> = props => {\n  const featureFlags = useFeatureFlags();\n  const useDropdowns = featureFlags[Feature.USE_CHART_DROPDOWN_TOGGLE] === 'true';\n\n  const { data, loading } = useContentfulQuery<ChartToggleProps, ContentfulIdVariable>(\n    chartToggleQuery,\n    {\n      variables: { id: props.sys.id },\n    }\n  );\n  const { logEvent } = useContext(ConsumerContext);\n\n  if (!data && !useDropdowns) return null;\n\n  const itemsProps = data?.chartToggle.itemsCollection.items.map(\n    ({ analytics, title, contentsCollection, sys: { id } }: ChartToggleItemDataProps) => {\n      const onToggle = logEvent\n        ? () =>\n            logEvent({\n              type: UserAction.Open,\n              component: 'ChartToggle',\n              label: analytics?.label ?? id,\n            })\n        : undefined;\n\n      return {\n        onToggle,\n        title,\n        content: contentsCollection.items.map(contents => (\n          <Chart key={contents.sys.id} {...contents} />\n        )),\n      } as ChartToggleItemProps;\n    }\n  );\n\n  if (useDropdowns) {\n    return (\n      <ChartToggleV2SDS\n        items={itemsProps ?? []}\n        label={data?.chartToggle.label ?? ''}\n        isLoading={loading}\n      />\n    );\n  }\n\n  return <ChartToggleSDS items={itemsProps ?? []} />;\n};\n\nChartToggle.displayName = 'ChartToggle';\n", "import { lazyComponent } from '@snapchat/mw-common/client';\nimport { getRawData } from '@snapchat/mw-contentful-schema';\nimport { ChartSkeleton } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext, useEffect, useState } from 'react';\n\nimport { AppContext } from '../../../AppContext';\nimport { logError } from '../../../helpers/logging';\nimport { customFetch } from '../../../utils/fetch/customFetch';\nimport { SuspenseWrapper } from '../../SuspenseWrapper';\nimport type { GeoMapRenderProps } from './types';\n\nconst LazyGeoMap = lazyComponent(async () =>\n  import('./LazyGeoMap.js').then(module => ({ default: module.GeoMap }))\n);\n\nconst topographyDataEndpoint =\n  'https://storage.googleapis.com/snap-design-system-marketing/world-topo.json';\n\nexport const GeoMap: FC<GeoMapRenderProps> = props => {\n  const { chartTitle, chartData, width, countryCodeKey, valueKey, dataScalingMethod } = props;\n\n  const [topographyData, setTopographyData] = useState<unknown | undefined>();\n  const { currentLocale } = useContext(AppContext);\n\n  // Underlying library requires external topography data\n  useEffect(() => {\n    async function fetchTopographyData() {\n      const res = await customFetch(topographyDataEndpoint);\n      const data = await res.json();\n      setTopographyData(data);\n    }\n\n    fetchTopographyData().catch(error => logError({ component: 'GeoVisualization', error }));\n  }, []);\n\n  if (!topographyData || !chartData || !valueKey) return null;\n\n  const rawData = getRawData(chartData);\n\n  return (\n    <SuspenseWrapper fallbackElement={<ChartSkeleton />}>\n      <LazyGeoMap\n        width={width}\n        data={rawData}\n        fieldMetadata={{\n          key: valueKey,\n          title: chartData.seriesName.headerNames?.[valueKey] ?? valueKey,\n        }}\n        countryFieldKey={countryCodeKey}\n        chartTitle={chartTitle}\n        topoData={topographyData}\n        locale={currentLocale}\n        scaleMode={dataScalingMethod}\n      />\n    </SuspenseWrapper>\n  );\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../../utils/contentful/contentfulQuery';\nimport { chartDataFragment } from '../query';\n\nexport const fragments = {\n  all: gql`\n    fragment GeoMapAll on GeoVisualization {\n      ...ContentfulSysId\n      chartTitle\n      chartData {\n        ...ChartDataAll\n      }\n      dataScalingMethod\n      countryCodeKey\n      valueKey\n    }\n    ${contentfulSysIdFragment}\n    ${chartDataFragment}\n  `,\n  subset: gql`\n    fragment GeoMapSubset on GeoVisualization {\n      ...ContentfulSysId\n      countrySelectorFields\n    }\n    ${contentfulSysIdFragment}\n  `,\n  withTitle: gql`\n    fragment GeoMapWithTitle on GeoVisualization {\n      ...ContentfulSysId\n      chartTitle\n    }\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const queries = {\n  shallow: gql`\n    query geoMapEntryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      geoVisualization(preview: $preview, locale: $locale, id: $id) {\n        ...ContentfulSysId\n      }\n    }\n    ${contentfulSysIdFragment}\n  `,\n  all: gql`\n    query geoMapEntryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      geoVisualization(preview: $preview, locale: $locale, id: $id) {\n        ...GeoMapAll\n      }\n    }\n    ${fragments.all}\n  `,\n  subset: gql`\n    query geoMapEntryQuery($preview: Boolean!, $id: String!) {\n      geoVisualization(preview: $preview, id: $id) {\n        ...GeoMapSubset\n      }\n    }\n    ${fragments.subset}\n  `,\n};\n", "import { ChartSkeleton } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../../hooks/useContentfulQuery';\nimport { isContentfulSysProps } from '../../../utils/contentful';\nimport { GeoMap } from './GeoMap';\nimport { queries } from './query';\nimport type { GeoMapDataHandlerProps, GeoMapProps } from './types';\n\nexport const GeoMapShallow: FC<GeoMapProps> = props => {\n  const id = isContentfulSysProps(props) ? props.sys.id : undefined;\n\n  const { data, loading } = useContentfulQuery<GeoMapDataHandlerProps, ContentfulIdVariable>(\n    queries.all,\n    {\n      skip: !id,\n      variables: { id },\n    }\n  );\n\n  if (loading) return <ChartSkeleton />;\n  if (!data) return null;\n\n  // If chart data or value key was passed directly to this chart, use those instead of whatever is on the\n  // visualization (this will be the case if this is a child of a Multi Visualization)\n  const chartData = props.chartDataOverride ?? data.geoVisualization.chartData;\n  const valueKey = props.valueKeyOverride ?? data.geoVisualization.valueKey;\n\n  return (\n    <GeoMap\n      {...data.geoVisualization}\n      width={props.width}\n      chartTitle={props.chartTitle}\n      chartData={chartData}\n      valueKey={valueKey}\n    />\n  );\n};\n", "import { lazyComponent } from '@snapchat/mw-common/client';\nimport type { ChartDataRow } from '@snapchat/mw-contentful-schema';\nimport { getRawData } from '@snapchat/mw-contentful-schema';\nimport {\n  type LineChartAccessors,\n  type ValueOf,\n  ChartSkeleton,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { SuspenseWrapper } from '../../SuspenseWrapper';\nimport type { LineChartRenderProps } from './types';\n\nconst LazyLineChart = lazyComponent(() =>\n  import('./LazyLineChart').then(module => ({ default: module.LineChart }))\n);\n\n// Accessors will tell the chart how to draw the line given y axis key, x axis key, and row\nconst getAccessors = (yAxisKeys: string[], xAxisKey: string) => {\n  const accessors: LineChartAccessors<\n    ChartDataRow,\n    ValueOf<ChartDataRow>,\n    ValueOf<ChartDataRow>\n  > = { x: {}, y: {} };\n\n  for (const yKey of yAxisKeys) {\n    // X accessor will always look at the same specified column no matter what the y value is\n    accessors.x[yKey] = row => row[xAxisKey]!;\n    // Y accessor will look for the value of the column which matches the given y value\n    accessors.y[yKey] = row => row[yKey]!;\n  }\n\n  return accessors;\n};\n\nexport const LineChart: FC<LineChartRenderProps> = props => {\n  const { chartData, curve, xKey, yKeys, chartTitle } = props;\n\n  if (!chartData) return null;\n\n  const rawData = getRawData(chartData);\n\n  return (\n    <SuspenseWrapper fallbackElement={<ChartSkeleton />}>\n      <LazyLineChart\n        data={rawData}\n        accessors={getAccessors(yKeys, xKey)}\n        chartTitle={chartTitle}\n        curve={curve}\n        yKeys={yKeys}\n      />\n    </SuspenseWrapper>\n  );\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../../utils/contentful/contentfulQuery';\nimport { chartDataFragment } from '../query';\n\nexport const fragments = {\n  all: gql`\n    fragment LineChartAll on LineChart {\n      ...ContentfulSysId\n      chartTitle\n      chartData {\n        ...ChartDataAll\n      }\n      xKey\n      yKeys\n      curve\n    }\n    ${contentfulSysIdFragment}\n    ${chartDataFragment}\n  `,\n  withTitle: gql`\n    fragment LineChartWithTitle on LineChart {\n      ...ContentfulSysId\n      chartTitle\n    }\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const queries = {\n  shallow: gql`\n    query lineChartEntryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      lineChart(preview: $preview, locale: $locale, id: $id) {\n        ...ContentfulSysId\n      }\n    }\n    ${contentfulSysIdFragment}\n  `,\n  all: gql`\n    query lineChartEntryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      lineChart(preview: $preview, locale: $locale, id: $id) {\n        ...LineChartAll\n      }\n    }\n    ${fragments.all}\n  `,\n};\n", "import { ChartSkeleton } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../../hooks/useContentfulQuery';\nimport { isContentfulSysProps } from '../../../utils/contentful';\nimport { LineChart } from './LineChart';\nimport { queries } from './query';\nimport type { LineChartDataHandlerProps, LineChartProps } from './types';\n\nexport const LineChartShallow: FC<LineChartProps> = props => {\n  const id = isContentfulSysProps(props) ? props.sys.id : undefined;\n\n  const { data, loading } = useContentfulQuery<LineChartDataHandlerProps, ContentfulIdVariable>(\n    queries.all,\n    {\n      skip: !id,\n      variables: { id },\n    }\n  );\n\n  if (loading) return <ChartSkeleton />;\n  if (!data) return null;\n\n  // If chart data or y keys were passed directly to this chart, use those instead of whatever is on the\n  // visualization (this will be the case if this is a child of a Multi Visualization).\n  const chartData = props.chartDataOverride ?? data.lineChart.chartData;\n  const yKeys = props.yKeysOverride ?? data.lineChart.yKeys;\n\n  return <LineChart {...data.lineChart} chartData={chartData} yKeys={yKeys} />;\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../../utils/contentful/contentfulQuery';\nimport { chartDataFragment } from '../query';\n\nexport const fragments = {\n  all: gql`\n    fragment TableVisualizationAll on TableVisualization {\n      ...ContentfulSysId\n      chartTitle\n      chartData {\n        ...ChartDataAll\n      }\n      tableColumns\n      enableSearch\n      initialRowCount\n    }\n    ${contentfulSysIdFragment}\n    ${chartDataFragment}\n  `,\n  withTitle: gql`\n    fragment TableVisualizationWithTitle on TableVisualization {\n      ...ContentfulSysId\n      chartTitle\n    }\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const queries = {\n  shallow: gql`\n    query tableVisualizationEntryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      tableVisualization(preview: $preview, locale: $locale, id: $id) {\n        ...ContentfulSysId\n      }\n    }\n    ${contentfulSysIdFragment}\n  `,\n  all: gql`\n    query tableVisualizationEntryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      tableVisualization(preview: $preview, locale: $locale, id: $id) {\n        ...TableVisualizationAll\n      }\n    }\n    ${fragments.all}\n  `,\n};\n", "import { DeploymentType } from '@snapchat/mw-common';\nimport { lazyComponent } from '@snapchat/mw-common/client';\nimport type { AdjustedSeries, ChartDataRow } from '@snapchat/mw-contentful-schema';\nimport { getRawData } from '@snapchat/mw-contentful-schema';\nimport { ChartSkeleton } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext, useState } from 'react';\n\nimport { AppContext } from '../../../AppContext';\nimport { Config } from '../../../config';\nimport { logger } from '../../../helpers/logging';\nimport { SuspenseWrapper } from '../../SuspenseWrapper';\nimport { JSONTypes } from '../types';\nimport type { TableVisualizationRenderProps } from './types';\n\nconst dataFormatDate = 'date';\n\nconst LazyTableVisualization = lazyComponent(() =>\n  import('./LazyTable').then(module => ({ default: module.Table }))\n);\n\nconst getRowDataForKey = (\n  series: AdjustedSeries,\n  row: ChartDataRow,\n  key: string,\n  locale: string\n) => {\n  const properties = series.schema.items.properties;\n\n  if (!properties) {\n    throw new Error('Series schema is malformed!');\n  }\n\n  const data = row[key];\n  const dataType = properties[key]!.type;\n  const dataFormat = properties[key]!.format;\n\n  // Numbers should be localized on the fly\n  if (dataType === JSONTypes.integer || dataType === JSONTypes.number) {\n    return (data as number).toLocaleString(locale);\n  }\n\n  // Dates should be localized on the fly\n  if (dataFormat === dataFormatDate) {\n    return (data as Date).toLocaleDateString(locale);\n  }\n\n  // Otherwise, data is a string and localization will have been\n  // handled by Contentful\n  return data as string;\n};\n\nconst getColumns = (columns: string[], series: AdjustedSeries, locale: string) => {\n  // We rely on Table Columns to determine the display order of headers;\n  // therefore, we must validate that the provided table columns match our schema\n  // Step 1: Number of keys should match number of columns\n  const properties = series.schema.items.properties!;\n  const propertyKeys = Object.keys(properties);\n\n  if (propertyKeys.length !== columns?.length) {\n    throw new Error(\n      'The number of table columns must equal the number of properties on the schema!'\n    );\n  }\n\n  // Step 2: Each key should exist in provided table columns\n  const allKeysExist = propertyKeys.every(key => columns.includes(key));\n\n  if (!allKeysExist) {\n    throw new Error('Table columns and schema properties do not match!');\n  }\n\n  return columns.map(column => {\n    // Try to use the (localizable) \"Header Names\" field for our column headers.\n    // If that field is not available (maybe a user manually edited the\n    // schema after uploading data) then fallback to the key name\n    let headerName = column;\n\n    if (series.headerNames?.[column]) {\n      headerName = series.headerNames[column]!;\n    }\n\n    return {\n      Header: headerName,\n      accessor: (row: object) => getRowDataForKey(series, row as ChartDataRow, column, locale),\n    };\n  });\n};\n\nexport const Table: FC<TableVisualizationRenderProps> = props => {\n  const { chartData, tableColumns, enableSearch, initialRowCount } = props;\n  const { currentLocale } = useContext(AppContext);\n\n  const [error, setError] = useState<Error>();\n\n  if (!chartData) return null;\n\n  let rawData;\n  let columns;\n\n  try {\n    rawData = getRawData(chartData);\n    columns = getColumns(tableColumns, chartData.seriesName, currentLocale);\n  } catch (err) {\n    if (!error) {\n      setError(err as Error);\n\n      logger.logError({\n        component: 'Table',\n        error: err,\n      });\n    }\n  }\n\n  if (error && Config.deploymentType !== DeploymentType.PRODUCTION) {\n    return (\n      <section>\n        <h5>Table Visualization Error</h5>\n        <p>{`Error: ${error.message}`}</p>\n        <p>{`Entry id: ${props.id}`}</p>\n      </section>\n    );\n  }\n\n  return (\n    <SuspenseWrapper fallbackElement={<ChartSkeleton />}>\n      <LazyTableVisualization\n        data={rawData}\n        columns={columns}\n        searchable={enableSearch}\n        initialRowCount={initialRowCount}\n      />\n    </SuspenseWrapper>\n  );\n};\n", "import { ChartSkeleton } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../../hooks/useContentfulQuery';\nimport { isContentfulSysProps } from '../../../utils/contentful';\nimport { queries } from './query';\nimport { Table } from './Table';\nimport type { TableVisualizationDataHandlerProps, TableVisualizationProps } from './types';\n\nexport const TableShallow: FC<TableVisualizationProps> = props => {\n  const id = isContentfulSysProps(props) ? props.sys.id : undefined;\n\n  const { data, loading } = useContentfulQuery<\n    TableVisualizationDataHandlerProps,\n    ContentfulIdVariable\n  >(queries.all, {\n    skip: !id,\n    variables: { id },\n  });\n\n  if (loading) return <ChartSkeleton />;\n  if (!data) return null;\n\n  // If chart data was passed directly to this chart, use that instead of whatever is on the\n  // visualization (this will be the case if this is a child of a Multi Visualization)\n  const chartData = props.chartDataOverride ?? data.tableVisualization.chartData;\n\n  return <Table {...data.tableVisualization} chartData={chartData} id={id} />;\n};\n", "import { gql } from '@apollo/client';\n\nimport type { ContentfulSysProps } from '../../../types/contentful';\nimport type { Items } from '../../../types/Items';\nimport { contentfulSysIdFragment } from '../../../utils/contentful/contentfulQuery';\nimport { fragments as analyticsFragments } from '../../Analytics/query';\nimport type { AnalyticsDataProps } from '../../Analytics/types';\nimport type { ContentDataProps } from '../../Content';\n\nexport const ChartToggleSize = {\n  Large: 'Large',\n  Small: 'Small',\n} as const;\n\nexport interface ChartToggleDataHandlerProps {\n  chartToggle: ChartToggleDataProps;\n}\n\nexport interface ChartToggleItemDataProps extends ContentfulSysProps {\n  analytics?: AnalyticsDataProps;\n  title: string;\n  contentsCollection: Items<ContentDataProps>;\n}\n\nexport interface ChartToggleDataProps extends ContentfulSysProps {\n  hasLinks: boolean;\n  itemsCollection: Items<ChartToggleItemDataProps>;\n  label: string;\n}\n\nexport const chartToggleQuery = gql`\n  query ChartToggleQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    chartToggle(preview: $preview, locale: $locale, id: $id) {\n      ...ContentfulSysId\n      label\n      itemsCollection(limit: 10) {\n        items {\n          ...ContentfulSysId\n          analytics {\n            ...AnalyticsAll\n          }\n          title\n          contentsCollection(limit: 10) {\n            items {\n              ... on Entry {\n                ...ContentfulSysId\n              }\n            }\n            total\n          }\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${analyticsFragments.all}\n`;\n", "import { ChartToggleWrapper as ChartToggleWrapperSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport type { ContentfulSysProps } from '../../../types/contentful';\nimport { Feature, useFeatureFlags } from '../../FeatureFlags';\nimport { ChartToggle } from './ChartToggle';\n\nexport const ChartToggleWrapper: FC<ContentfulSysProps> = props => {\n  const featureFlags = useFeatureFlags();\n  const useDropdowns = featureFlags[Feature.USE_CHART_DROPDOWN_TOGGLE] === 'true';\n\n  if (useDropdowns) {\n    return (\n      <ChartToggleWrapperSDS>\n        <ChartToggle {...props} />\n      </ChartToggleWrapperSDS>\n    );\n  }\n\n  return <ChartToggle {...props} />;\n};\n\nChartToggleWrapper.displayName = 'ChartToggleWrapper';\n", "import { lazyComponent } from '@snapchat/mw-common/client';\nimport type { AdjustedChartData, AdjustedSeries } from '@snapchat/mw-contentful-schema';\nimport type {\n  ChartMetadata,\n  FieldMetadata,\n  VisualizationMeta,\n} from '@snapchat/snap-design-system-marketing';\nimport { VisualizationKey } from '@snapchat/snap-design-system-marketing';\nimport type { FC, ReactNode } from 'react';\nimport { useContext, useState } from 'react';\n\nimport type { ContentfulIdVariable } from '../../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../../hooks/useContentfulQuery';\nimport { isContentfulSysProps } from '../../../utils/contentful';\nimport { ContentfulContext } from '../../../utils/contentful/ContentfulContext';\nimport { SuspenseWrapper } from '../../SuspenseWrapper';\nimport { BarChartShallow } from '../BarChart';\nimport { GeoMapShallow } from '../GeoMap';\nimport { LineChartShallow } from '../LineChart';\nimport { TableShallow } from '../Table';\nimport { queries } from './query';\nimport type {\n  MultiVisualizationDataHandlerProps,\n  MultiVisualizationProps,\n  MultiVisualizationRenderProps,\n  ShallowVisualization,\n} from './types';\n\nconst LazyMultiVisualization = lazyComponent(() =>\n  import('./LazyMultiviz').then(module => ({ default: module.MultiVisualization }))\n);\n\nconst generateChartMeta = (chartData: AdjustedChartData) => ({\n  id: chartData.sys.id,\n  label: chartData.label ?? '',\n});\n\nconst generateVisualizationMeta = (visualization: ShallowVisualization): VisualizationMeta => ({\n  id: visualization.sys.id,\n  title: visualization.chartTitle,\n  key: visualization.__typename as VisualizationKey,\n});\n\nconst getProcessedChartData = (\n  chartDataItems: AdjustedChartData[],\n  series: AdjustedSeries\n): AdjustedChartData[] => {\n  const filteredChartData = chartDataItems.filter(\n    chartData => chartData.seriesName.sys.id === series.sys.id\n  );\n\n  let unnamedChartDataCount = 0;\n  return filteredChartData.map((chartData: AdjustedChartData) => {\n    if (!chartData.label) {\n      unnamedChartDataCount++;\n      return { ...chartData, label: `Unnamed Data ${unnamedChartDataCount}` };\n    }\n\n    return { ...chartData, label: chartData.label };\n  });\n};\n\nconst MultiVisualization: FC<MultiVisualizationRenderProps> = ({\n  chartTitle,\n  seriesName,\n  chartDataCollection,\n  visualizationsCollection,\n  selectableFields,\n}) => {\n  const { locale } = useContext(ContentfulContext);\n\n  // getProcessedChartData will filter out any chart data that does not share series given to the Multi Visualization.\n  // It will also add placeholder labels to chart data entries that don't have them (as those labels)\n  // are needed to populate the data selector)\n  const chartDataItems = getProcessedChartData(chartDataCollection.items, seriesName);\n\n  const visualizationMetadataItems: VisualizationMeta[] =\n    visualizationsCollection.items.map(generateVisualizationMeta);\n\n  const chartMetadataItems: ChartMetadata[] = chartDataItems.map(generateChartMeta);\n\n  const fieldMetadataItems: FieldMetadata[] | undefined = selectableFields?.map(field => ({\n    key: field,\n    // Fallback on key as title in case somehow headerNames was not populated in the Series\n    title: seriesName?.headerNames?.[field] ?? field,\n  }));\n\n  // State\n\n  const [selectedChartData, setSelectedChartData] = useState<AdjustedChartData | undefined>(\n    chartDataItems[0]\n  );\n\n  const [selectedVisualization, setSelectedVisualization] = useState<\n    ShallowVisualization | undefined\n  >(visualizationsCollection.items[0]);\n\n  const [selectedField, setSelectedField] = useState<string | undefined>(\n    selectableFields?.[0] ?? undefined\n  );\n\n  // Callbacks\n\n  const onChartDataSelected = (item: ChartMetadata) =>\n    setSelectedChartData(chartDataItems.find(chartData => chartData.sys.id === item.id));\n\n  const onVisualizationSelected = (item: VisualizationMeta) =>\n    setSelectedVisualization(visualizationsCollection.items.find(viz => viz.sys.id === item.id));\n\n  const renderVisualization = (visualization: VisualizationMeta): ReactNode => {\n    if (!selectedVisualization || !selectedChartData) return null;\n\n    // Renderer will return a visualization with a few adjustments...\n    //\n    // 1) Override chart data (normally chart data is attached to Visualization itself)\n    // 2) Override the \"visualized field\" if a field has been selected in Mutli Visualization (i.e. for Bar Chart, we override xAxes)\n\n    switch (visualization.key) {\n      case VisualizationKey.TABLE:\n        return <TableShallow {...selectedVisualization} chartDataOverride={selectedChartData} />;\n      case VisualizationKey.BAR_CHART:\n        return (\n          <BarChartShallow\n            {...selectedVisualization}\n            chartDataOverride={selectedChartData}\n            xAxesOverride={selectedField ? [selectedField] : undefined}\n          />\n        );\n      case VisualizationKey.LINE_CHART:\n        return (\n          <LineChartShallow\n            {...selectedVisualization}\n            chartDataOverride={selectedChartData}\n            yKeysOverride={selectedField ? [selectedField] : undefined}\n          />\n        );\n      case VisualizationKey.GEO_MAP:\n        return (\n          <GeoMapShallow\n            {...selectedVisualization}\n            chartDataOverride={selectedChartData}\n            valueKeyOverride={selectedField}\n          />\n        );\n      default:\n        return null;\n    }\n  };\n\n  // Validation should prevent a scenario where there is no selected visualization or chart data,\n  // but just in case, we'll gracefully fail here if we lack one or the other\n  if (!selectedChartData || !selectedVisualization) return null;\n\n  return (\n    <SuspenseWrapper>\n      <LazyMultiVisualization\n        chartMetadataItems={chartMetadataItems}\n        selectedChartMetadata={generateChartMeta(selectedChartData)}\n        visualizationMetadataItems={visualizationMetadataItems}\n        selectedVisualizationMetadata={generateVisualizationMeta(selectedVisualization)}\n        visualizationTitle={chartTitle}\n        fieldMetadataItems={fieldMetadataItems}\n        locale={locale}\n        onDataSelected={onChartDataSelected}\n        onVisualizationSelected={onVisualizationSelected}\n        onFieldSelected={(field: FieldMetadata) => setSelectedField(field.key)}\n        renderVisualization={renderVisualization}\n      />\n    </SuspenseWrapper>\n  );\n};\n\nexport const MultiVisualizationShallow: FC<MultiVisualizationProps> = props => {\n  const id = isContentfulSysProps(props) ? props.sys.id : undefined;\n  const { data } = useContentfulQuery<MultiVisualizationDataHandlerProps, ContentfulIdVariable>(\n    queries.all,\n    {\n      skip: !id,\n      variables: { id },\n    }\n  );\n\n  if (!data) return null;\n\n  return <MultiVisualization {...data.visualizationSelector} />;\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../../utils/contentful/contentfulQuery';\nimport { fragments as barChartFragments } from '../BarChart/query';\nimport { fragments as geoMapFragments } from '../GeoMap/query';\nimport { fragments as lineChartFragments } from '../LineChart/query';\nimport { chartDataFragment, seriesFragment } from '../query';\nimport { fragments as tableFragments } from '../Table/query';\n\nexport const fragments = {\n  all: gql`\n    fragment VisualizationSelectorAll on VisualizationSelector {\n      ...ContentfulSysId\n      chartTitle\n      visualizationsCollection {\n        items {\n          ... on BarChart {\n            ...BarChartWithTitle\n          }\n          ... on LineChart {\n            ...LineChartWithTitle\n          }\n          ... on GeoVisualization {\n            ...GeoMapWithTitle\n          }\n          ... on TableVisualization {\n            ...TableVisualizationWithTitle\n          }\n        }\n      }\n      seriesName {\n        ...SeriesAll\n      }\n      chartDataCollection {\n        items {\n          ...ChartDataAll\n        }\n      }\n      selectableFields\n    }\n    ${barChartFragments.withTitle}\n    ${lineChartFragments.withTitle}\n    ${geoMapFragments.withTitle}\n    ${tableFragments.withTitle}\n    ${seriesFragment}\n    ${chartDataFragment}\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const queries = {\n  shallow: gql`\n    query visualizationSelectorEntryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      visualizationSelector(preview: $preview, locale: $locale, id: $id) {\n        ...ContentfulSysId\n      }\n    }\n    ${contentfulSysIdFragment}\n  `,\n  all: gql`\n    query visualizationSelectorEntryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n      visualizationSelector(preview: $preview, locale: $locale, id: $id) {\n        ...VisualizationSelectorAll\n      }\n    }\n    ${fragments.all}\n  `,\n};\n", "import { gql } from '@apollo/client';\nimport type { BackgroundColor, Template } from '@snapchat/snap-design-system-marketing';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nexport const breakFragment = gql`\n  fragment BreakAll on Break {\n    ...ContentfulSysId\n    type\n    topColor\n    bottomColor\n    isOverlaid\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport const breakQuery = gql`\n  query BreakQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    break(preview: $preview, locale: $locale, id: $id) {\n      ...BreakAll\n    }\n  }\n  ${breakFragment}\n`;\n\nexport type BreakType = Template | 'None';\n\nexport type BreakBackgroundColor = BackgroundColor | 'Transparent';\n\nexport interface BreakDataProps extends ContentfulTypedSysProps<'Break'> {\n  type: BreakType;\n  topColor?: BreakBackgroundColor;\n  bottomColor?: BreakBackgroundColor;\n  isOverlaid?: boolean;\n}\n", "import { supportsAvif } from '@snapchat/client-hints';\nimport type { GetImageSources, SrcSetSizes } from '@snapchat/mw-contentful-client';\nimport {\n  getDprDataByHeight,\n  getDprSrcSetSettingsByHeight,\n  getSrcSetUrl,\n  useContentfulImages,\n} from '@snapchat/mw-contentful-client';\nimport type { BlockHero as BlockHeroType } from '@snapchat/mw-contentful-schema';\nimport { globalNavHighlightSizes } from '@snapchat/mw-global-components';\nimport {\n  BackgroundMediaLayout,\n  BrowserFeaturesContext,\n  Hero as HeroSDS,\n  HeroSize,\n  Media as MediaSDS,\n  SnapchatEmbed as SnapchatEmbedSDS,\n} from '@snapchat/snap-design-system-marketing';\nimport isNull from 'lodash/isNull.js';\nimport omit from 'lodash/omit.js';\nimport type { FC } from 'react';\nimport { useContext, useRef } from 'react';\nimport { Helmet } from 'react-helmet-async';\n\nimport { Config } from '../../config';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport { combineImageSources } from '../../utils/combineImageSources';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport { parseMedia } from '../../utils/media';\nimport {\n  renderRichTextMultiLineWithMarkings,\n  renderRichTextWithElementsNoHeadings,\n} from '../../utils/renderText/renderRichText';\nimport { CallToAction } from '../CallToAction/CallToAction';\nimport { CarouselV3 } from '../CarouselV3';\nimport { getHeaderHeightFromCssVar } from '../Header/headerSizeUtils';\nimport type { ImageDataProps } from '../Image';\nimport { isImageDataProps } from '../Image';\nimport type { SnapchatEmbedDataProps } from '../SnapchatEmbed';\nimport { isVideoDataProps } from '../Video';\nimport type { VideoDataProps } from '../Video/types';\nimport { getHeroHeaderComponent } from './getHeroHeaderComponent';\nimport type { Foreground, HeroRenderProps } from './types';\nimport { isCarouselV3 } from './utils';\n\n// Header image is always 84px so we just handle the different DPRs.\nconst headerImgSrcSetSizes: SrcSetSizes = {\n  sizeToUrl: [84, 168, 252].map((width, i) => ({\n    size: `${i + 1}x`,\n    settings: { width },\n  })),\n  sizes: globalNavHighlightSizes,\n};\n\nconst getForegroundMedia = (\n  foreground: Foreground,\n  getImageSources: GetImageSources,\n  dataset?: DOMStringMap\n) => {\n  if (isVideoDataProps(foreground)) {\n    const videoSource = parseMedia(foreground.media).videoSource;\n    const mobileVideoSource = parseMedia(foreground.mobileMedia).videoSource;\n    return (\n      <MediaSDS mobileVideoSource={mobileVideoSource} videoSource={videoSource} dataset={dataset} />\n    );\n  }\n\n  if (isImageDataProps(foreground)) {\n    const { imageSource, imageAltText, imageSize } = parseMedia(foreground.media);\n    const { imageSource: mobileImageSource, imageSize: mobileIMageSize } = parseMedia(\n      foreground.mobileMedia\n    );\n\n    const imgSrcs = combineImageSources({\n      desktop: getImageSources(\n        imageSource,\n        getDprSrcSetSettingsByHeight(650, imageSize?.height ?? 0)\n      ),\n      mobile: getImageSources(\n        mobileImageSource ?? imageSource,\n        getDprSrcSetSettingsByHeight(650, mobileIMageSize?.height ?? 0)\n      ),\n    });\n\n    return <MediaSDS imgSrcs={imgSrcs} altText={imageAltText} dataset={dataset} />;\n  }\n\n  // TODO: Update CarouselV3 to handle datasets\n  if (isCarouselV3(foreground)) {\n    return <CarouselV3 {...foreground} />;\n  }\n\n  if ((foreground as ContentfulSysProps).__typename === 'SnapchatEmbed') {\n    return <SnapchatEmbedSDS {...(foreground as SnapchatEmbedDataProps)} dataset={dataset} />;\n  }\n\n  return undefined;\n};\n\nexport const Hero: FC<HeroRenderProps> = props => {\n  const {\n    eyebrow,\n    title,\n    subTitle,\n    body,\n    backgroundMediaLayout = BackgroundMediaLayout.FullScreen,\n    backgroundMediaV2,\n    callsToActionCollection,\n    isHeaderDate = false,\n    header,\n    headerMediaV2,\n    backgroundColor,\n    theme,\n    textAlign,\n    textAlignMobile,\n    verticalTextAlign,\n    fitWindow = false,\n    curtainOpacityPercentage,\n    foreground,\n    mediaWrap,\n    className,\n    footer,\n    showMediaMobile,\n    anchorId,\n    sys,\n    postChildren,\n    size,\n    showScrollButton,\n  } = props;\n\n  const browserFeatures = useContext(BrowserFeaturesContext);\n\n  const containerRef = useRef<HTMLElement>(null);\n\n  const { fallbackDate, shareable = false } = props;\n\n  // New background media\n  const backgroundMedia = (backgroundMediaV2 as ImageDataProps | VideoDataProps)?.media;\n  const {\n    imageSource: backgroundImageSource,\n    videoSource: backgroundVideoSource,\n    imageSize: backgroundImageSize,\n  } = parseMedia(backgroundMedia);\n\n  // New mobile background media\n  const backgroundMobileAssetMedia = (backgroundMediaV2 as ImageDataProps | VideoDataProps)\n    ?.mobileMedia;\n  const {\n    imageSource: mobileBackgroundImageSource,\n    videoSource: mobileBackgroundVideoSource,\n    imageSize: mobileBackgroundImageSize,\n  } = parseMedia(backgroundMobileAssetMedia);\n\n  // New header media\n  const headerMediaSource = (headerMediaV2 as ImageDataProps)?.media;\n  const { imageSource: headerImageSource, imageAltText: headerImageAltText } =\n    parseMedia(headerMediaSource);\n\n  // New header mobile media\n  const mobileHeaderMediaSource = (headerMediaV2 as ImageDataProps)?.mobileMedia;\n  const { imageSource: mobileHeaderImageSource } = parseMedia(mobileHeaderMediaSource);\n\n  const callsToAction = callsToActionCollection?.items?.map(item => (\n    <CallToAction key={item.sys.id} {...item} />\n  ));\n  const inspectorDataset = getContentfulInspectorProps<BlockHeroType>({\n    entryId: sys.id,\n    fieldIds: ['eyebrow', 'title', 'subTitle', 'body', 'header', 'foreground'],\n  });\n\n  const { getImageSources } = useContentfulImages();\n\n  const foregroundMedia = foreground\n    ? getForegroundMedia(foreground, getImageSources, inspectorDataset.foregroundDataset)\n    : undefined;\n  const bg = isNull(backgroundColor) ? undefined : backgroundColor;\n  const alternativeBackground = isNull(theme) ? undefined : theme;\n\n  const HeroHeader = getHeroHeaderComponent({\n    header,\n    isExpectingDate: isHeaderDate,\n    fallbackDate,\n  });\n\n  const headerSettings = { size: headerImgSrcSetSizes };\n  const headerImgSrcs = combineImageSources({\n    desktop: getImageSources(headerImageSource, headerSettings),\n    mobile: getImageSources(mobileHeaderImageSource, headerSettings),\n  });\n  const bgImgDprSettings = getDprSrcSetSettingsByHeight(800, backgroundImageSize?.height ?? 0);\n  const mobileBgImgDprSettings = getDprSrcSetSettingsByHeight(\n    800,\n    mobileBackgroundImageSize?.height ?? 0\n  );\n\n  const bgImgDprData = getDprDataByHeight(800, backgroundImageSize?.height ?? 0);\n\n  const bgImgSrcs = combineImageSources({\n    mobile: getImageSources(mobileBackgroundImageSource, mobileBgImgDprSettings),\n    desktop: getImageSources(backgroundImageSource, bgImgDprSettings),\n  });\n  // Placeholder for 1x dpr avif src if exists\n  let baseAvifSrc:\n    | {\n        url: string;\n        // not defined when not using dpr src set\n        dpr?: number;\n      }\n    | undefined;\n\n  // Placeholder for high dpr avif src if exists\n  let additionalAvifSrcWithDpr:\n    | {\n        url: string;\n        dpr: number;\n      }\n    | undefined;\n\n  if (supportsAvif(browserFeatures.getLowEntropyHints()) && backgroundImageSource && bgImgSrcs) {\n    const avifSrc = bgImgSrcs.sources.find(src => src.type === 'image/avif')?.url;\n\n    // if we have multiple DPRs being handled, generate the urls individually\n    if (bgImgDprData.additionalDpr) {\n      baseAvifSrc = {\n        url: getSrcSetUrl(backgroundImageSource, {\n          image: { format: 'avif', ...bgImgDprData.baseDprSettings },\n        }),\n        dpr: bgImgDprData.additionalDpr.dpr - 0.0001,\n      };\n\n      additionalAvifSrcWithDpr = {\n        url: getSrcSetUrl(backgroundImageSource, {\n          image: { ...bgImgDprData.additionalDpr.settings, format: 'avif' },\n        }),\n        dpr: bgImgDprData.additionalDpr.dpr,\n      };\n    } else if (avifSrc) {\n      baseAvifSrc = { url: avifSrc };\n    }\n  }\n\n  let heroSize: HeroSize = size ?? HeroSize.Regular;\n\n  if (foreground && isCarouselV3(foreground)) {\n    heroSize = HeroSize.Regular;\n  }\n\n  const handleScrollDownButtonClick = () => {\n    if (!containerRef.current) return;\n\n    const headerHeight = getHeaderHeightFromCssVar() ?? 0;\n\n    // Scroll to next block (end of this block)\n    const rect = containerRef.current.getBoundingClientRect();\n    const scrollPos = rect.bottom + window.scrollY - headerHeight;\n    window.scrollTo({ top: scrollPos, left: 0, behavior: 'smooth' });\n  };\n\n  return (\n    <>\n      {/*\n        if SSR and we know for sure the browser supports avif, we will preload the hero bg img\n        unfortunately for macs, we can't know for sure if it supports avif.\n\n        We use the webkit prefixed media query because resolution is not as well supported\n        https://developer.mozilla.org/en-US/docs/Web/CSS/@media/-webkit-device-pixel-ratio\n      */}\n      {!Config.isClient && baseAvifSrc && (\n        <Helmet>\n          <link\n            rel=\"preload\"\n            href={baseAvifSrc.url}\n            as=\"image\"\n            // @ts-ignore this attribute is chrome only and doesn't exist on typings yet because its so new\n            // eslint-disable-next-line react/no-unknown-property\n            fetchpriority=\"high\"\n            // only add media if multiple dprs handled\n            media={\n              additionalAvifSrcWithDpr ? `(-webkit-max-device-pixel-ratio: ${baseAvifSrc.dpr})` : ''\n            }\n          />\n          {additionalAvifSrcWithDpr && (\n            <link\n              rel=\"preload\"\n              href={additionalAvifSrcWithDpr.url}\n              as=\"image\"\n              // @ts-ignore this attribute is chrome only and doesn't exist on typings yet because its so new\n              // eslint-disable-next-line react/no-unknown-property\n              fetchpriority=\"high\"\n              media={`(-webkit-min-device-pixel-ratio: ${additionalAvifSrcWithDpr.dpr})`}\n            />\n          )}\n        </Helmet>\n      )}\n      <HeroSDS\n        ref={containerRef}\n        eyebrow={eyebrow}\n        title={renderRichTextMultiLineWithMarkings(title)}\n        subTitle={renderRichTextWithElementsNoHeadings(subTitle)}\n        body={renderRichTextWithElementsNoHeadings(body)}\n        backgroundMediaLayout={backgroundMediaLayout}\n        backgroundVideoSource={backgroundVideoSource}\n        mobileBackgroundVideoSource={mobileBackgroundVideoSource}\n        callsToAction={callsToAction?.length ? callsToAction : undefined}\n        header={HeroHeader ? <HeroHeader /> : undefined}\n        foregroundMedia={foregroundMedia}\n        backgroundColor={bg || alternativeBackground}\n        bgImgSrcs={bgImgSrcs}\n        headerImgSrcs={headerImgSrcs}\n        headerImgAltText={headerImageAltText}\n        textAlign={textAlign}\n        textAlignMobile={textAlignMobile}\n        verticalTextAlign={verticalTextAlign}\n        fitWindow={isNull(fitWindow) ? false : fitWindow}\n        curtainOpacityPercentage={curtainOpacityPercentage ?? undefined}\n        wrapMedia={mediaWrap}\n        shareable={shareable}\n        className={className}\n        footer={footer}\n        showMediaMobile={showMediaMobile}\n        anchorId={anchorId}\n        {...omit(inspectorDataset, 'foregroundDataset')}\n        postChildren={postChildren}\n        size={heroSize}\n        showScrollButton={showScrollButton}\n        onScrollDownButtonClick={handleScrollDownButtonClick}\n      />\n    </>\n  );\n};\n\nHero.displayName = 'Hero';\n", "import { documentToPlainTextString } from '@contentful/rich-text-plain-text-renderer';\n\nimport type { RenderData } from '../types/RichText';\n\nexport const renderString = (data: RenderData): string | undefined => {\n  if (!data) {\n    return undefined;\n  }\n\n  if (typeof data === 'string') {\n    return data;\n  }\n\n  return documentToPlainTextString(data.json);\n};\n", "import type { FC } from 'react';\n\nimport { useFormatDate } from '../../hooks/useFormatDate';\nimport type { RichText } from '../../types/RichText';\nimport { renderString } from '../../utils/renderString';\nimport { renderRichTextMarkingsOnly } from '../../utils/renderText/renderRichText';\n\ninterface HeroHeaderProps {\n  header?: RichText | string;\n  isExpectingDate?: boolean;\n  fallbackDate?: Date;\n}\n\nconst dateFormatOptions: Intl.DateTimeFormatOptions = {\n  month: 'long',\n  day: '2-digit',\n  year: 'numeric',\n  // NOTE: Always render these dates assuming UTC timezone to ensure consistent rendering between server and client.\n  //       Otherwise we would need to determine the client's timezone whenever we process the initial render on the server.\n  //       By using UTC for all cases we ensure consistent behavior, though we may be off by 1 day depending on the user's\n  //       location.\n  timeZone: 'UTC',\n};\n\n/**\n * Helper function that parses the props for rendering a the Hero Header and returns a React\n * Component or null. Returning null here enables us to conditionally render downstream components\n * by checking whether the output component exists.\n */\nexport const getHeroHeaderComponent = ({\n  fallbackDate,\n  header,\n  isExpectingDate,\n}: HeroHeaderProps): FC | null => {\n  // Normal case: render specified header text\n  if (!isExpectingDate && header) {\n    return () => <>{renderRichTextMarkingsOnly(header)}</>;\n  }\n\n  const headerText = typeof header === 'string' ? header : renderString(header) ?? '';\n  const parsedDate: Date | undefined = new Date(headerText);\n  const isParsedDateValid = !Number.isNaN(parsedDate.getTime());\n\n  // Normal case: User specified date\n  if (isExpectingDate && isParsedDateValid) {\n    return () => {\n      const { formatDate } = useFormatDate();\n      return <>{formatDate(parsedDate, dateFormatOptions)}</>;\n    };\n  }\n\n  // Normal case: User wants date to render using system generated date\n  // Edge case: User specified a malformed date string\n  if (isExpectingDate && fallbackDate) {\n    return () => {\n      const { formatDate } = useFormatDate();\n      return <>{formatDate(fallbackDate, dateFormatOptions)}</>;\n    };\n  }\n\n  // Normal case: No header text or date specified, don't render\n  return null;\n};\n", "import type { ContentfulSysProps } from '../../types/contentful';\nimport type { CarouselV3DataProps } from '../CarouselV3';\n\nexport const isCarouselV3 = (props?: ContentfulSysProps): props is CarouselV3DataProps => {\n  return (props as CarouselV3DataProps)?.__typename === 'CarouselV3';\n};\n", "import { gql } from '@apollo/client';\n\nimport { ctaFragment } from '../CallToAction';\nimport { fragments as imageFragments } from '../Image';\nimport { fragments as mediaFragments } from '../Media';\nimport { snapchatEmbedFragment } from '../SnapchatEmbed';\nimport { fragments as videoFragments } from '../Video';\n\nexport const fragments = {\n  all: gql`\n    fragment BlockHeroAll on BlockHero {\n      ...ContentfulSysId\n      header {\n        json\n      }\n      eyebrow\n      title {\n        json\n      }\n      subTitle {\n        json\n      }\n      body {\n        json\n      }\n      callsToActionCollection(limit: 3) {\n        items {\n          ... on CallToAction {\n            ...CallToActionAll\n          }\n        }\n      }\n      foreground {\n        __typename\n        ... on Image {\n          ...ImageAll\n        }\n        ... on Video {\n          ...VideoAll\n        }\n        ... on CarouselV3 {\n          ...ContentfulSysId\n        }\n        ... on SnapchatEmbed {\n          ...SnapchatEmbedAll\n        }\n      }\n      backgroundMediaLayout\n      backgroundMediaV2 {\n        __typename\n        ... on Video {\n          ...VideoAll\n        }\n        ... on Image {\n          ...ImageAll\n        }\n      }\n      headerMediaV2 {\n        __typename\n        ... on Image {\n          ...ImageAll\n        }\n      }\n      mediaWrap\n      isHeaderDate\n      theme\n      backgroundColor\n      textAlign\n      textAlignMobile\n      verticalTextAlign\n      fitWindow\n      curtainOpacityPercentage\n      useLatestPost\n      showMediaMobile\n      anchorId\n      size\n      showScrollButton\n    }\n    ${ctaFragment}\n    ${videoFragments.all}\n    ${imageFragments.all}\n    ${mediaFragments.all}\n    ${snapchatEmbedFragment}\n  `,\n};\n\nexport const blockHeroQuery = gql`\n  query BlockHeroQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    blockHero(preview: $preview, locale: $locale, id: $id) {\n      ...BlockHeroAll\n    }\n  }\n  ${fragments.all}\n`;\n", "import { getImageUrl } from '@snapchat/mw-contentful-client';\nimport type { HeaderProps } from '@snapchat/snap-design-system-marketing';\nimport { Header } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { logger } from '../../helpers/logging';\nimport type { MetasProps } from './types';\n\n/**\n * Parses meta tags into name and string attributes based on the value in the string.\n *\n * Note that this supports a legacy format like <name>=<content> as well as parsing the meta tag as\n * a whole.\n *\n * Values are escaped to avoid script injection.\n */\nexport function parseCustomMeta(customMeta: string): { name: string; content: string } {\n  customMeta = customMeta.trim();\n\n  // Support values like <meta name=\"<name>\" content=\"<content>\" />\n  if (customMeta.startsWith('<meta')) {\n    const name = /name=\"([^\"]+)\"/.exec(customMeta)?.[1] ?? 'unknown';\n    const content = /content=\"([^\"]+)\"/.exec(customMeta)?.[1] ?? 'unknown';\n    return { name: encodeURIComponent(name), content: encodeURIComponent(content) };\n  }\n\n  // Support values like <name>=<content>\n  if (!/['\"><]/.test(customMeta) && customMeta.includes('=')) {\n    const [name, content] = customMeta.split('=');\n    return {\n      name: encodeURIComponent((name as string).trim()),\n      content: encodeURIComponent((content as string).trim()),\n    };\n  }\n\n  logger.logWarning({\n    component: 'Meta',\n    action: 'parse-custom-meta',\n    message: `Unable to parse custom metadata: \"${encodeURIComponent(customMeta)}\"`,\n  });\n\n  // In all other cases throw a warning and diplay bad metadata.\n  return {\n    name: 'unparseable-meta',\n    content: encodeURIComponent(customMeta),\n  };\n}\n\nexport const Metas: FC<MetasProps> = props => {\n  const { customMetas } = props;\n\n  const parsedCustomMetas = customMetas?.map(parseCustomMeta) ?? [];\n\n  const imageUrl =\n    props.ogImage &&\n    getImageUrl({\n      imageUrl: props.ogImage.url,\n      // 512px tall should be more than large enough for image previews\n      settings: { height: 512 },\n    });\n\n  const headerProps: HeaderProps = {\n    description: props.description,\n    ogImage: imageUrl,\n    ogVideo: props.ogVideo?.url,\n    noIndex: !!props.noIndex,\n    noFollow: !!props.noFollow,\n    customMetas: parsedCustomMetas,\n  };\n\n  return <Header {...headerProps} />;\n};\n\nMetas.displayName = 'Metas';\n", "import { gql } from '@apollo/client';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\n// =================================================================================================\n// Blog Schema Fragment\n// =================================================================================================\n\nexport const blogSchemaFragment = gql`\n  fragment BlogSchemaAll on BlogSchema {\n    ...ContentfulSysId\n    headline\n    description\n    imagesCollection(limit: 10) {\n      items {\n        url\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport interface BlogSchemaData extends ContentfulTypedSysProps<'BlogSchema'> {\n  headline: string;\n  description?: string;\n  imagesCollection?: { items?: { url?: string }[] };\n}\n", "import { gql } from '@apollo/client';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport type { RichText } from '../../types/RichText';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\n// =================================================================================================\n// FAQ Page Schema Fragment\n// =================================================================================================\n\nexport const faqPageSchemaFragment = gql`\n  fragment FaqPageSchemaAll on FaqPageSchema {\n    itemsCollection {\n      items {\n        ...ContentfulSysId\n        question\n        answer {\n          json\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport interface FaqPageSchemaData extends ContentfulTypedSysProps<'FaqPageSchema'> {\n  itemsCollection?: {\n    items?: {\n      question: string;\n      answer: RichText;\n    }[];\n  };\n}\n", "import { documentToHtmlString } from '@contentful/rich-text-html-renderer';\nimport type { BlogPosting, FAQPage, Organization, Question, WithContext } from 'schema-dts';\n\nimport type { BlogSchemaData } from './blogSchemaQuery';\nimport type { FaqPageSchemaData } from './faqPageSchemaQuery';\nimport type { OrganizationSchemaData } from './organizationSchemaQuery';\nimport type { SchemaOrgStructuredDataSchema, StructuredDataSchema } from './WebSchema.types';\n\nconst schemaOrgUrl = 'https://schema.org';\n\n/** Given the schema data from contentful, generate the corresponding schema.org structured data */\nexport function generateWebSchema(\n  url: string,\n  schemaData: StructuredDataSchema,\n  postedAt?: Date,\n  lastModifiedAt?: Date,\n  organizationSchemaData?: OrganizationSchemaData\n): SchemaOrgStructuredDataSchema | undefined {\n  switch (schemaData.__typename) {\n    case 'BlogSchema':\n      return generateBlogSchema(url, schemaData, postedAt, lastModifiedAt, organizationSchemaData);\n    case 'OrganizationSchema':\n      return generateOrganizationSchema(url, schemaData);\n    case 'FaqPageSchema':\n      return generateFaqPageSchema(schemaData);\n    default:\n      return;\n  }\n}\n\n// This snippet will be re-used in other schemas to provide information about the organization\nfunction generateOrganizationSnippet(organizationSchemaData: OrganizationSchemaData): Organization {\n  return {\n    '@type': 'Organization',\n    name: organizationSchemaData.name,\n    logo: organizationSchemaData.logo?.url && {\n      '@type': 'ImageObject',\n      url: organizationSchemaData.logo?.url,\n    },\n    url: organizationSchemaData.url,\n  };\n}\n\nfunction generateBlogSchema(\n  url: string,\n  blogSchemaData: BlogSchemaData,\n  postedAt?: Date,\n  lastModifiedAt?: Date,\n  organizationSchemaData?: OrganizationSchemaData\n): WithContext<BlogPosting> {\n  const organizationSnippet =\n    organizationSchemaData && generateOrganizationSnippet(organizationSchemaData);\n\n  const images = blogSchemaData.imagesCollection?.items\n    ?.map(item => item.url)\n    // this lets typescript know that the array contains only strings, otherwise there'd be an error\n    .filter((item: string | undefined): item is string => item !== undefined);\n\n  return {\n    '@context': schemaOrgUrl,\n    '@type': 'BlogPosting',\n    mainEntityOfPage: {\n      '@type': 'WebPage',\n      '@id': url,\n    },\n    headline: blogSchemaData.headline,\n    description: blogSchemaData.description,\n    image: images,\n    author: organizationSnippet,\n    publisher: organizationSnippet,\n    datePublished: postedAt?.toISOString(),\n    dateModified: lastModifiedAt?.toISOString(),\n  };\n}\n\nfunction generateOrganizationSchema(\n  url: string,\n  organizationSchemaData: OrganizationSchemaData\n): WithContext<Organization> {\n  const organizaitonSnippet = generateOrganizationSnippet(organizationSchemaData);\n\n  return {\n    '@context': schemaOrgUrl,\n    '@type': 'Organization',\n    brand: organizaitonSnippet,\n    description: organizationSchemaData?.description,\n    name: organizationSchemaData?.name,\n    sameAs: organizationSchemaData?.sameAs,\n    url,\n  };\n}\n\nfunction generateFaqPageSchema(faqPageSchemaData: FaqPageSchemaData): WithContext<FAQPage> {\n  const questions: Question[] =\n    faqPageSchemaData.itemsCollection?.items?.map(item => ({\n      '@type': 'Question',\n      name: item.question,\n      acceptedAnswer: {\n        '@type': 'Answer',\n        text: documentToHtmlString(item.answer.json),\n      },\n    })) ?? [];\n\n  return {\n    '@context': schemaOrgUrl,\n    '@type': 'FAQPage',\n    mainEntity: questions,\n  };\n}\n", "import { gql } from '@apollo/client';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\n// =================================================================================================\n// Organization Schema Fragment\n// =================================================================================================\n\nexport const organizationSchemaFragment = gql`\n  fragment OrganizationSchemaAll on OrganizationSchema {\n    ...ContentfulSysId\n    name\n    description\n    url\n    logo {\n      url\n    }\n    sameAs\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport const organizationSchemaCollectionQuery = gql`\n  query OrganizationSchemaCollectionQuery($preview: Boolean!, $locale: String!) {\n    organizationSchemaCollection(preview: $preview, locale: $locale, limit: 1) {\n      items {\n        ...OrganizationSchemaAll\n      }\n    }\n  }\n  ${organizationSchemaFragment}\n`;\n\nexport interface OrganizationSchemaData extends ContentfulTypedSysProps<'OrganizationSchema'> {\n  name: string;\n  description?: string;\n  url?: string;\n  logo?: { url?: string };\n  sameAs?: string[];\n}\n\nexport interface OrganizationSchemaCollectionData\n  extends ContentfulTypedSysProps<'OrganizationSchemaCollection'> {\n  organizationSchemaCollection: {\n    items: OrganizationSchemaData[];\n  };\n}\n", "import head from 'lodash-es/head';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\nimport { Helmet } from 'react-helmet-async';\n\nimport { AppContext } from '../../AppContext';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { SlugContext } from '../Slug/SlugContext';\nimport type { OrganizationSchemaCollectionData } from '.';\nimport { generateWebSchema, organizationSchemaCollectionQuery } from '.';\nimport type { SchemasProps } from './WebSchema.types';\n\nexport const WebSchemas: FC<SchemasProps> = props => {\n  const { schemas } = props;\n\n  const { getCurrentUrl } = useContext(AppContext);\n  const { publishedAt, postedDate } = useContext(SlugContext);\n\n  const currentUrl = getCurrentUrl();\n\n  const { data: organizationSchemaData } = useContentfulQuery<OrganizationSchemaCollectionData>(\n    organizationSchemaCollectionQuery\n  );\n\n  const transformedSchemas = schemas.map(schema =>\n    generateWebSchema(\n      currentUrl,\n      schema,\n      postedDate,\n      publishedAt,\n      head(organizationSchemaData?.organizationSchemaCollection?.items || [])\n    )\n  );\n\n  return (\n    <Helmet>\n      {transformedSchemas.map(\n        (schema, idx) =>\n          schema && (\n            <script type=\"application/ld+json\" key={`schema-${idx}`}>\n              {JSON.stringify(schema)}\n            </script>\n          )\n      )}\n    </Helmet>\n  );\n};\n\nWebSchemas.displayName = 'WebSchemas';\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport {\n  blogSchemaFragment,\n  faqPageSchemaFragment,\n  organizationSchemaFragment,\n} from '../WebSchema';\n\nexport const fragments = {\n  all: gql`\n    fragment MetaAll on Metas {\n      ...ContentfulSysId\n      description\n      ogImage {\n        url\n      }\n      ogVideo {\n        url\n      }\n      noIndex\n      noFollow\n      customMetas\n      schemasCollection(limit: 5) {\n        items {\n          ...ContentfulSysId\n          ...BlogSchemaAll\n          ...OrganizationSchemaAll\n          ...FaqPageSchemaAll\n        }\n      }\n    }\n    ${blogSchemaFragment}\n    ${organizationSchemaFragment}\n    ${faqPageSchemaFragment}\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const query = gql`\n  query MetasQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    metas(preview: $preview, locale: $locale, id: $id) {\n      ...MetaAll\n    }\n  }\n  ${fragments.all}\n`;\n", "import { gql } from '@apollo/client';\nimport type {\n  Maybe,\n  Scalars,\n  ScrollAnimatedSectionAnimatedContentCollection,\n  ScrollAnimatedSectionMobileContentCollection,\n} from '@snapchat/mw-contentful-schema';\nimport type { EntitySys } from 'contentful';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { blockAllFragment } from '../Block';\nimport { assetFragment } from '../Media';\n\nexport const scrollAnimatedVideoFragment = gql`\n  fragment ScrollAnimatedVideoAll on ScrollAnimatedVideo {\n    ...ContentfulSysId\n    mp4Source {\n      ...AssetAll\n    }\n    webmSource {\n      ...AssetAll\n    }\n    scrubStart\n    scrubEnd\n    videoStart\n    videoEnd\n  }\n  ${contentfulSysIdFragment}\n  ${assetFragment}\n`;\n\nexport const scrollAnimatedSectionFragment = gql`\n  fragment ScrollAnimatedSectionAll on ScrollAnimatedSection {\n    ...ContentfulSysId\n    scrollHeight\n    animatedContentCollection {\n      items {\n        ...ScrollAnimatedVideoAll\n      }\n    }\n    mobileContentCollection {\n      items {\n        ...BlockAll\n      }\n    }\n  }\n  ${scrollAnimatedVideoFragment}\n  ${contentfulSysIdFragment}\n  ${assetFragment}\n  ${blockAllFragment}\n`;\n\nexport const query = gql`\n  query ScrollAnimatedSectionQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    scrollAnimatedSection(preview: $preview, locale: $locale, id: $id) {\n      ...ScrollAnimatedSectionAll\n    }\n  }\n  ${scrollAnimatedSectionFragment}\n`;\n\nexport interface ScrollAnimatedSectionDataProps {\n  __typename: 'ScrollAnimatedSection';\n  animatedContentCollection?: ScrollAnimatedSectionAnimatedContentCollection;\n  mobileContentCollection?: ScrollAnimatedSectionMobileContentCollection;\n  scrollHeight?: Maybe<Scalars['Float']>;\n  sys: EntitySys;\n}\n", "import { gql } from '@apollo/client';\nimport type { Alignment, BackgroundColor } from '@snapchat/snap-design-system-marketing';\n\nimport type { ImageDataProps } from '../../components/Image';\nimport { fragments as imageFragments } from '../../components/Image';\nimport type { VideoDataProps } from '../../components/Video';\nimport { fragments as videoFragments } from '../../components/Video';\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport type { Items } from '../../types/Items';\nimport type { RichText } from '../../types/RichText';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { ctaFragment } from '../CallToAction';\nimport type { CallToActionDataProps } from '../CallToAction/types';\n\n/**\n * The fields `title`, `subtitle`, and `body` have been renamed to `splitBlockTitle`,\n * `splitBlockSubtitle`, and `splitBlockBody` respectively. This prevents naming collisions with the\n * existing `Block` content type, which uses the same field names in its GraphQL query.\n */\nexport const splitBlockFragment = gql`\n  fragment SplitBlockAll on SplitBlock {\n    ...ContentfulSysId\n    callsToActionCollection(limit: 2) {\n      items {\n        ... on CallToAction {\n          ...CallToActionAll\n        }\n      }\n    }\n    splitBlockTitle: title\n    splitBlockSubtitle: subtitle\n    splitBlockBody: body {\n      json\n    }\n    textAlignment\n    textAlignmentMobile\n    verticalTextAlignment\n    media {\n      __typename\n      ... on Video {\n        ...VideoAll\n      }\n      ... on Image {\n        ...ImageAll\n      }\n    }\n    mediaCaption\n    mediaDirection\n    backgroundColor\n    fitWindow\n  }\n  ${contentfulSysIdFragment}\n  ${ctaFragment}\n  ${imageFragments.all}\n  ${videoFragments.all}\n`;\n\nexport const splitBlockQuery = gql`\n  query SplitBlockQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    splitBlock(preview: $preview, locale: $locale, id: $id) {\n      ...SplitBlockAll\n    }\n  }\n  ${splitBlockFragment}\n`;\n\nexport interface SplitBlockDataProps extends ContentfulTypedSysProps<'SplitBlock'> {\n  backgroundColor: BackgroundColor;\n  callsToActionCollection?: Items<CallToActionDataProps>;\n  fitWindow?: boolean;\n  media: ImageDataProps | VideoDataProps;\n  mediaCaption?: string;\n  mediaDirection: Alignment;\n  splitBlockBody?: RichText | string;\n  splitBlockSubtitle?: string;\n  splitBlockTitle: string;\n  textAlignment: Alignment;\n  textAlignmentMobile: Alignment;\n  verticalTextAlignment: Alignment;\n}\n\nexport interface SplitBlockDataHandlerProps {\n  splitBlock: SplitBlockDataProps;\n}\n", "import type { BackgroundColor } from '@snapchat/snap-design-system-marketing';\nimport { gql } from 'graphql-tag';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport type { Items } from '../../types/Items';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport type { SubNavigationItemProps } from './types';\n\nexport const subNavigationFragment = gql`\n  fragment SubNavigationAll on SubNavigation {\n    ...ContentfulSysId\n    backgroundColor\n    subNavigationItemsCollection {\n      items {\n        ...ContentfulSysId\n        text\n        anchorId\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport interface SubNavigationDataProps extends ContentfulTypedSysProps<'SubNavigation'> {\n  backgroundColor: BackgroundColor;\n  subNavigationItemsCollection: Items<SubNavigationItemProps>;\n}\n\nexport const subNavigationQuery = gql`\n  query SubNavigationQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    subNavigation(preview: $preview, locale: $locale, id: $id) {\n      ...SubNavigationAll\n    }\n  }\n  ${subNavigationFragment}\n`;\n\nexport interface SubNavigationData {\n  subNavigation?: SubNavigationDataProps;\n}\n", "import { css } from '@emotion/css';\nimport type {\n  SubNavigation as SubNavigationType,\n  SubNavigationItem as SubNavigationItemType,\n} from '@snapchat/mw-contentful-schema';\nimport {\n  SubNavigation as SubNavigationSDS,\n  SubNavigationItem as SubNavigationItemSDS,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useEffect, useRef, useState } from 'react';\n\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport { totalHeaderHeightCssVar } from '../Header/headerSizeUtils';\nimport { pageStickyHeightCssVar } from '../Page';\nimport type { SubNavigationProps } from './types';\n\nenum ScrollDir {\n  DOWN = 'DOWN',\n  UP = 'UP',\n}\n\nconst isElementHorizontallyVisible = (element: HTMLElement, parent: HTMLElement) => {\n  const elementRect = element.getBoundingClientRect();\n  const parentRect = parent.getBoundingClientRect();\n\n  return elementRect.left >= parentRect.left && elementRect.right <= parentRect.right;\n};\n\nconst SubNavStickyCss = css`\n  top: calc(var(${pageStickyHeightCssVar}) + var(${totalHeaderHeightCssVar}));\n`;\n\nexport const SubNavigation: FC<SubNavigationProps> = ({ backgroundColor, sys, items = [] }) => {\n  const subnavRef = useRef<HTMLDivElement>(null);\n  const [activeItemId, setActiveItemId] = useState(items[0]?.anchorId);\n\n  // we use -1 as a flag to indicate that the scroll position has not been set yet\n  const lastScrollPos = useRef(typeof window !== 'undefined' ? -1 : 0);\n  const scrollDir = useRef<ScrollDir>();\n\n  useEffect(() => {\n    const handleScroll = () => {\n      const scrollPos = window.scrollY;\n\n      if (lastScrollPos.current === -1) {\n        lastScrollPos.current = scrollPos;\n      }\n\n      if (scrollPos > lastScrollPos.current) {\n        scrollDir.current = ScrollDir.DOWN;\n      } else if (scrollPos < lastScrollPos.current) {\n        scrollDir.current = ScrollDir.UP;\n      } // Else horizontal scroll\n\n      lastScrollPos.current = scrollPos <= 0 ? 0 : scrollPos; // For mobile or negative scrolling\n    };\n\n    window.addEventListener('scroll', handleScroll, { passive: true });\n\n    return () => {\n      window.removeEventListener('scroll', handleScroll);\n    };\n  }, []);\n\n  useEffect(() => {\n    const handleIntersectionChange = (entries: IntersectionObserverEntry[]) => {\n      const intersectingEntries = entries.filter(entry => entry.isIntersecting);\n      const lastIntersectingEntry =\n        scrollDir.current === ScrollDir.DOWN\n          ? intersectingEntries[intersectingEntries.length - 1]\n          : intersectingEntries[0];\n\n      if (lastIntersectingEntry) {\n        const id = lastIntersectingEntry.target.id;\n        setActiveItemId(id);\n\n        const parent = subnavRef?.current;\n        const element = parent?.querySelector(`a[href='#${id}']`) as HTMLElement;\n\n        if (parent && element && !isElementHorizontallyVisible(element, parent))\n          // 64 = left parent padding + 32 margin\n          parent?.scroll({ left: element?.offsetLeft - 64, behavior: 'smooth' });\n      }\n    };\n\n    const observer = new IntersectionObserver(handleIntersectionChange, {\n      rootMargin: '-30% 0px -70% 0px',\n    });\n\n    items\n      ?.map(item => item.anchorId)\n      .filter((id): id is string => !!id)\n      .map(id => document.getElementById(id))\n      .filter((el): el is HTMLElement => !!el)\n      .forEach(el => observer.observe(el));\n\n    return () => {\n      observer.disconnect();\n    };\n  }, [items]);\n\n  const handleItemClick = (id?: string) => (event: React.MouseEvent) => {\n    event.preventDefault();\n    if (!id) return;\n\n    const itemElement = document.getElementById(id);\n    if (!itemElement) return;\n\n    const totalHeaderHeight = Number(\n      getComputedStyle(document.documentElement)\n        .getPropertyValue('--total-header-height')\n        .replace('px', '')\n    );\n\n    window?.scrollTo({\n      behavior: 'smooth',\n      top:\n        itemElement.getBoundingClientRect().top -\n        document.body.getBoundingClientRect().top -\n        totalHeaderHeight -\n        56, // SubNavigation height\n    });\n  };\n\n  const { contentfulDescriptionDataset } = getContentfulInspectorProps<SubNavigationType>({\n    entryId: sys.id,\n    fieldIds: ['contentfulDescription'],\n  });\n\n  return (\n    <SubNavigationSDS\n      backgroundColor={backgroundColor}\n      className={SubNavStickyCss}\n      horizontalScrollRef={subnavRef}\n      dataset={contentfulDescriptionDataset}\n    >\n      {items?.map(item => {\n        const id = item.anchorId;\n        const { textDataset } = getContentfulInspectorProps<SubNavigationItemType>({\n          entryId: item.sys.id,\n          fieldIds: ['text'],\n        });\n\n        return (\n          <SubNavigationItemSDS\n            key={id}\n            href={`#${id}`}\n            onLinkClick={handleItemClick(id)}\n            isActive={id === activeItemId}\n            dataset={textDataset}\n          >\n            {item.text}\n          </SubNavigationItemSDS>\n        );\n      })}\n    </SubNavigationSDS>\n  );\n};\n", "import { css, cx } from '@emotion/css';\nimport { useImperativeEffect } from '@snapchat/core-browser';\nimport { useContentfulImages } from '@snapchat/mw-contentful-client';\nimport type { Banner as BannerType, PageBlocksItem } from '@snapchat/mw-contentful-schema';\n// TODO: Move this to common/client.\nimport type { BackgroundColor } from '@snapchat/snap-design-system-marketing';\nimport {\n  Banner,\n  bannerMinHeight,\n  Break as BreakSDS,\n  BreakOverlayType,\n  BreakSpacer as BreakSpacerSDS,\n  FootnoteBlock,\n  footnoteBlockBackgroundColor,\n  getBackgroundClassName,\n  getBreakOverlayType,\n  Header as HeaderSDS,\n  MessageContext,\n  Page as PageSDS,\n  pageTransparentBgCss,\n  PictureContext,\n  Template,\n  useIsMobile,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC, ReactNode } from 'react';\nimport { cloneElement, Fragment, useContext, useEffect, useMemo, useRef } from 'react';\nimport { useLocation } from 'react-router-dom';\n\nimport { Config } from '../../config';\nimport { FooterView, HeaderView, PageLayoutContext } from '../../context/PageLayoutContext';\nimport { LayoutContext } from '../../contexts/LayoutContext';\nimport { SubscribedEventType } from '../../helpers/logging/eventListenerTypes';\nimport { logEvent } from '../../helpers/logging/loggingInstance';\nimport type { RichText } from '../../types/RichText';\nimport { combineImageSources } from '../../utils/combineImageSources';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport { direction } from '../../utils/direction';\nimport { parseMedia } from '../../utils/media';\nimport { renderRichTextWithElements } from '../../utils/renderText/renderRichText';\nimport { AlternateLang } from '../AlternateLang/AlternateLang';\nimport type { BlockDataProps } from '../Block';\nimport { Block } from '../Block';\nimport type { BreakBackgroundColor } from '../Break';\nimport { Canonical } from '../Canonical/Canonical';\nimport { getCustomComponents } from '../customComponents';\nimport { DefinitionOverlay, DefinitionProvider } from '../Definition';\nimport { Feature, useFeatureFlags } from '../FeatureFlags';\nimport { Footnote } from '../Footnote';\nimport { totalHeaderHeightCssVar } from '../Header/headerSizeUtils';\nimport { Hero } from '../Hero';\nimport { LatestPostHero } from '../Hero/LatestPostHero';\nimport type { ImageDataProps } from '../Image';\nimport { LatestPostBlock } from '../LatestPostBlock';\nimport { Metas } from '../Metas';\nimport { MultiVideoBlock } from '../MultiVideoBlock';\nimport { ScrollAnimatedSection } from '../ScrollAnimatedSection';\nimport { minHeightCss } from '../Slug/Slug.styles';\nimport { SlugContext } from '../Slug/SlugContext';\nimport { SplitBlock } from '../SplitBlock/SplitBlock';\nimport { SubNavigation } from '../SubNavigation';\nimport { ActiveEventCountTracker } from '../tracing/ActiveEventCountTracker';\nimport type { VideoDataProps } from '../Video/types';\nimport { WebSchemas } from '../WebSchema';\nimport {\n  bannerContentContainerCss,\n  defaultPageBackgroundCss,\n  pageSideNavCss,\n  pageStickyCss,\n  stickyBottomCss,\n} from './Page.styles';\nimport { PageBottomStickyPortal } from './PageBottomStickyPortal';\nimport type { PageDataBlock, PageDataBlockWithBackgroundColor } from './pageQuery';\nimport { pageStickyHeightCssVar } from './pageStickyUtils';\nimport type { PageDataProps } from './types';\nconst defaultBreakTemplates: Template[] = [\n  Template.Straight,\n  Template.Skirt,\n  Template.Straight,\n  Template.HeadFlipped,\n  Template.Straight,\n  Template.Head,\n];\n\nconst pageCss = css`\n  min-height: calc(100vh - var(${totalHeaderHeightCssVar}));\n`;\n\n// TODO: Use a variable from SDS-M when it exposes this as a const.\nconst subNavHeightPx = 60;\n\nconst pageWithSubNavCss = css`\n  min-height: calc(100vh - calc(var(${totalHeaderHeightCssVar}) + ${subNavHeightPx}px));\n`;\n\n// We declare these as constants so they are the same object across renders to prevent\n// excessive rerendering of things that rely on the context.\nconst pictureContextLazy = { lazy: true };\nconst pictureContextNoLazy = { lazy: false };\n\ntype BlockType = PageBlocksItem['__typename'] | 'Unknown';\n\nconst allBlockTypes: BlockType[] = [\n  'Break',\n  'SubNavigation',\n  'BlockHero',\n  'LatestPosts',\n  'MultiVideoBlock',\n  'Block',\n  'SplitBlock',\n];\n\nconst isCustomComponent = (type: BlockType) => !allBlockTypes.includes(type);\n\nexport const Page: FC<PageDataProps> = props => {\n  const { pathname } = useLocation();\n  const featureFlags = useFeatureFlags();\n  const { formatMessage } = useContext(MessageContext);\n  const { hasSideNav, hasSubNav } = useContext(LayoutContext);\n  const isMobile = useIsMobile();\n\n  const stickyContainerRef = useRef<HTMLDivElement>(null);\n  const pageRef = useRef<HTMLDivElement>(null);\n\n  // Unfortunately, we have to do this check here because on forbusiness, we use the same banner slot\n  // to render the mobile CTA, but the mobile CTA doesn't use the sticky container\n  // TODO: Rethink how this is done. Current this is done here because SSR needs to have a value... but does it really?\n  const stickyHeightRef = useRef<number>(\n    props.banner && props.banner.__typename === 'Banner' ? bannerMinHeight : 0\n  );\n\n  // TODO: Extract as a hook.\n  const resizeObserver = useMemo(() => {\n    // attach resize observer on client\n    if (typeof window !== 'undefined') {\n      return new ResizeObserver(entries => {\n        const { height } = entries[0]!.contentRect;\n\n        if (stickyHeightRef.current !== height) {\n          stickyHeightRef.current = height;\n\n          pageRef.current?.style.setProperty(pageStickyHeightCssVar, `${height}px`);\n        }\n      });\n    }\n\n    return undefined;\n    // we disable here because we only need it to run once on mount (on ssr and on client)\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  useEffect(() => {\n    if (stickyContainerRef.current && resizeObserver) {\n      resizeObserver.observe(stickyContainerRef.current, { box: 'border-box' });\n\n      return () => {\n        resizeObserver.disconnect();\n      };\n    }\n\n    return;\n  }, [stickyContainerRef, resizeObserver]);\n\n  useImperativeEffect(() => {\n    // Note we log the page load event here, because at this point the page experiment information is available.\n    logEvent({\n      subscribedEventType: SubscribedEventType.PAGE_LOAD,\n    });\n  }, [pathname]);\n\n  // NOTE: Since these useEffect calls can modify renders above this component,\n  // we need to ensure they are always run (and not gated by an if statement).\n  const {\n    headerView: currentHeaderView,\n    footerView: currentFooterView,\n    setHeaderView,\n    setFooterView,\n  } = useContext(PageLayoutContext);\n  const headerView = props.headerView ?? HeaderView.FULL_HEADER;\n  const footerView = props.footerView ?? FooterView.FULL_FOOTER;\n\n  // Hack to mark the session header/footer with the correct values on the\n  // server-side only. Since useEffect doesn't run on the server, we need to\n  // set the value somehow.\n  // One of the issues here is that this only works if there are async promises\n  // in the first render pass that forces the server re-render everything. In\n  // those cases the server will pick up the correct values on the second pass.\n  // So, if for some reason, the server hasn't re-rendered (because all async\n  // data is already in the cache), then the server will have the wrong values.\n  if (!Config.isClient) {\n    setHeaderView?.(headerView);\n    setFooterView?.(footerView);\n  }\n\n  useEffect(() => {\n    if (headerView === currentHeaderView) return;\n    setHeaderView?.(headerView);\n  }, [headerView, currentHeaderView, setHeaderView]);\n\n  useEffect(() => {\n    if (footerView === currentFooterView) return;\n    setFooterView?.(footerView);\n  }, [footerView, currentFooterView, setFooterView]);\n\n  const slugContext = useContext(SlugContext);\n\n  const {\n    title,\n    metas,\n    blocksCollection,\n    footnotesCollection,\n    collapseFootnotes,\n    backgroundColor,\n    backgroundMediaV2,\n    backgroundMediaStyle,\n    scrollSnap,\n  } = props;\n\n  // This value is loaded here for testing.\n  // TODO: Add regression tests to very this value is set correctly.\n  const testFeature = featureFlags[Feature.TEST_FEATURE];\n\n  const pageBackgroundColor = backgroundColor ?? Config.theme?.defaultPageBackgroundColor;\n\n  // =================================================================================================\n  // Footnotes\n  // =================================================================================================\n  // TODO: This should probably be OL and children should be LI\n  const footnotes = footnotesCollection?.items?.map(footnoteProps => (\n    <Footnote key={footnoteProps.sys.id} {...footnoteProps} />\n  ));\n\n  const footnotesTitle = formatMessage({ id: 'footnotesTitle', defaultMessage: '' });\n\n  // Don't pass in a footnoteBlock if there are no footnotes\n  const footnoteBlock = footnotes?.length ? (\n    <FootnoteBlock title={footnotesTitle} isOpenInitially={!collapseFootnotes}>\n      {footnotes}\n    </FootnoteBlock>\n  ) : undefined;\n\n  // =================================================================================================\n  // All blocks from CMS\n  // =================================================================================================\n  // TODO: This should be using PageBlocksItem\n  const blocks: PageDataBlock[] = [];\n  blocks.push(...(blocksCollection?.items ?? []));\n\n  // =================================================================================================\n  // Convert blocks data to components and auto-break insertion\n  // =================================================================================================\n  const breakTemplates = Config.theme?.breakTemplates ?? defaultBreakTemplates;\n  let templateIndex = 0;\n  let firstHeroOrBlockIndex = -1;\n\n  const blocksWithBreaks: { data: PageDataBlock; component: JSX.Element }[] = [];\n\n  blocks.forEach((props, idx) => {\n    const { sys, __typename } = props;\n\n    const isLastBlock = idx === blocks.length - 1;\n\n    const prevBlock = blocks?.[idx - 1];\n    const nextBlock = blocks?.[idx + 1];\n\n    const blockBackgroundColor = (props as PageDataBlockWithBackgroundColor)?.backgroundColor;\n    const prevBackgroundColor = (prevBlock as PageDataBlockWithBackgroundColor)?.backgroundColor;\n    const nextBackgroundColor = (nextBlock as PageDataBlockWithBackgroundColor)?.backgroundColor;\n\n    const blockHasBackgroundMedia = !!(props as BlockDataProps)?.backgroundMediaV2;\n    const prevBlockHasBackgroundMedia = !!(prevBlock as BlockDataProps)?.backgroundMediaV2;\n    const nextBlockHasBackgroundMedia = !!(nextBlock as BlockDataProps)?.backgroundMediaV2;\n\n    // get index of first hero or block (basically anything thats not subnav)\n    // to guestimate above the fold\n    if (firstHeroOrBlockIndex === -1 && __typename !== 'SubNavigation') {\n      firstHeroOrBlockIndex = idx;\n    }\n\n    // Create component based on block type\n    switch (__typename) {\n      case 'Break': {\n        // TODO: Extract this out into a mwp/components/Break.\n        if (props.type !== 'None') {\n          const topColorFallback: BreakBackgroundColor =\n            prevBlockHasBackgroundMedia || !prevBackgroundColor\n              ? 'Transparent'\n              : prevBackgroundColor;\n\n          let bottomColorFallback: BreakBackgroundColor;\n\n          if (isLastBlock && !!footnoteBlock) {\n            bottomColorFallback = footnoteBlockBackgroundColor;\n          } else {\n            bottomColorFallback =\n              nextBlockHasBackgroundMedia || !nextBackgroundColor\n                ? 'Transparent'\n                : nextBackgroundColor;\n          }\n\n          // Use the user-selected color if there is one, otherwise use the fallback color\n          const topColor = props.topColor ?? topColorFallback;\n          const bottomColor = props.bottomColor ?? bottomColorFallback;\n\n          // If user-selected color is 'Transparent' then use a corresponding transparent option\n          // from 'BackgroundColor' type which the 'Break' component expects as a prop\n          const isTopTransparent = topColor === 'Transparent';\n          const isBottomTransparent = bottomColor === 'Transparent';\n          const topColorClean = isTopTransparent ? undefined : (topColor as BackgroundColor);\n          const bottomColorClean = isBottomTransparent\n            ? undefined\n            : (bottomColor as BackgroundColor);\n\n          blocksWithBreaks.push({\n            data: props,\n            component: (\n              <BreakSDS\n                key={`break ${idx}`}\n                template={Template[props.type]}\n                topColor={topColorClean}\n                bottomColor={bottomColorClean}\n                isOverlaid={props.isOverlaid && !isLastBlock}\n              />\n            ),\n          });\n        }\n        break;\n      }\n\n      case 'ScrollAnimatedSection': {\n        if (isMobile) {\n          const mobileContent = props.mobileContentCollection?.items ?? [];\n\n          mobileContent.forEach(blockProps => {\n            const blockPropsAsDataProps = blockProps as BlockDataProps;\n\n            blocksWithBreaks.push({\n              data: props,\n              component: (\n                <Block\n                  key={sys.id}\n                  {...blockPropsAsDataProps}\n                  isPreviousSameBackgroundColor={\n                    blockPropsAsDataProps.backgroundColor === prevBackgroundColor\n                  }\n                  isNextSameBackgroundColor={\n                    blockPropsAsDataProps.backgroundColor === nextBackgroundColor\n                  }\n                  fullHeight={scrollSnap || blockPropsAsDataProps.fullHeight}\n                />\n              ),\n            });\n          });\n          break;\n        }\n\n        blocksWithBreaks.push({\n          data: props,\n          component: <ScrollAnimatedSection key={sys.id} {...props} />,\n        });\n        break;\n      }\n\n      case 'SubNavigation': {\n        blocksWithBreaks.push({\n          data: props,\n          component: (\n            <SubNavigation\n              key={sys.id}\n              items={props?.subNavigationItemsCollection?.items ?? []}\n              {...props}\n            />\n          ),\n        });\n        break;\n      }\n\n      case 'BlockHero': {\n        blocksWithBreaks.push({\n          data: props,\n          component: props.useLatestPost ? (\n            <LatestPostHero key={sys.id} backgroundColor={props.backgroundColor} />\n          ) : (\n            <Hero\n              key={sys.id}\n              {...props}\n              fitWindow={scrollSnap || props.fitWindow}\n              fallbackDate={slugContext.postedDate ?? slugContext.publishedAt}\n              shareable={slugContext.isShareable}\n            />\n          ),\n        });\n        break;\n      }\n\n      case 'LatestPosts': {\n        blocksWithBreaks.push({\n          data: props,\n          component: <LatestPostBlock {...props} key={sys.id} />,\n        });\n        break;\n      }\n\n      case 'MultiVideoBlock': {\n        blocksWithBreaks.push({\n          data: props,\n          component: <MultiVideoBlock key={sys.id} id={sys.id} />,\n        });\n        break;\n      }\n\n      case 'Block': {\n        blocksWithBreaks.push({\n          data: props,\n          component: (\n            <Block\n              key={sys.id}\n              {...props}\n              isPreviousSameBackgroundColor={props.backgroundColor === prevBackgroundColor}\n              isNextSameBackgroundColor={props.backgroundColor === nextBackgroundColor}\n              fullHeight={scrollSnap || props.fullHeight}\n            />\n          ),\n        });\n        break;\n      }\n\n      case 'SplitBlock': {\n        blocksWithBreaks.push({\n          data: props,\n          component: <SplitBlock key={sys.id} {...props} />,\n        });\n        break;\n      }\n\n      default: {\n        const customBlocks = getCustomComponents();\n\n        if (__typename in customBlocks) {\n          const CustomComponent = customBlocks[__typename]!;\n\n          blocksWithBreaks.push({\n            data: props,\n            component: <CustomComponent key={sys.id} id={sys.id} />,\n          });\n        } else {\n          blocksWithBreaks.push({\n            // Putting in a dummy value for iteration safety.\n            data: {\n              __typename: 'Break',\n              sys: { id: '__generated_error' },\n              type: 'Straight',\n            },\n            component: (\n              <Fragment key={sys.id}>\n                {!Config.isCompilationModeProd &&\n                  `Dev error: Unknown component type ${__typename} with id ${sys.id}`}\n              </Fragment>\n            ),\n          });\n        }\n      }\n    }\n\n    // Auto-insert breaks\n    if (!isLastBlock) {\n      const skipBreak =\n        __typename === 'Break' ||\n        nextBlock?.__typename === 'Break' ||\n        __typename === 'SubNavigation' ||\n        nextBlock?.__typename === 'SubNavigation' ||\n        isCustomComponent(__typename) ||\n        isCustomComponent(nextBlock?.__typename) ||\n        (blockHasBackgroundMedia && nextBlockHasBackgroundMedia) ||\n        (blockBackgroundColor === nextBackgroundColor &&\n          !blockHasBackgroundMedia &&\n          !nextBlockHasBackgroundMedia) ||\n        breakTemplates.length <= 0;\n\n      // Auto-insert break if needed\n      if (!skipBreak) {\n        const heroBreakTemplate =\n          Config.theme?.heroBreakTemplate === Template.Straight\n            ? Template.Straight\n            : Template.Skirt2;\n        const template =\n          __typename === 'BlockHero' ? heroBreakTemplate : breakTemplates[templateIndex]!;\n        const topColor =\n          blockHasBackgroundMedia || !blockBackgroundColor ? undefined : blockBackgroundColor;\n        const bottomColor =\n          nextBlockHasBackgroundMedia || !nextBackgroundColor ? undefined : nextBackgroundColor;\n        const isOverlaid = false;\n\n        blocksWithBreaks.push({\n          data: {\n            __typename: 'Break',\n            sys: { id: '__generated' },\n            type: template,\n            topColor,\n            bottomColor,\n            isOverlaid,\n          },\n          component: (\n            <BreakSDS\n              key={`break ${idx}`}\n              template={template}\n              topColor={topColor}\n              bottomColor={bottomColor}\n              isOverlaid={isOverlaid}\n            />\n          ),\n        });\n\n        // Rotate template to use, unless this block is a Hero as that always uses a specific template\n        if (__typename !== 'BlockHero') {\n          templateIndex = (templateIndex + 1) % breakTemplates.length;\n        }\n      }\n    }\n  });\n\n  // =================================================================================================\n  // Add break spacers where 'Break' component overlays blocks/components\n  // =================================================================================================\n  const blocksToRender = blocksWithBreaks.map((block, idx) => {\n    const { component } = block;\n    const prevBlock = blocksWithBreaks?.[idx - 1];\n    const nextBlock = blocksWithBreaks?.[idx + 1];\n\n    const breakSpacerProps: {\n      preChildren?: ReactNode;\n      postChildren?: ReactNode;\n    } = {};\n\n    // If previous and/or next block is a 'Break' that overlays the block/component, inject a\n    // 'BreakSpacer' component as pre/post children to the block/component, which will counter\n    // the amount that the 'Break' overlays so that any content is not obscured and background\n    // media continues behind the break\n    // Do not add spacers for straight breaks as they will not obscure content\n    if (\n      prevBlock &&\n      prevBlock.data.__typename === 'Break' &&\n      prevBlock.data.type !== Template.Straight &&\n      prevBlock.data.type !== 'None'\n    ) {\n      const topBreakOverlayType = getBreakOverlayType({\n        template: prevBlock.data.type,\n        isTopTransparent: !prevBlock.data.topColor || prevBlock.data.topColor === 'Transparent',\n        isBottomTransparent:\n          !prevBlock.data.bottomColor || prevBlock.data.bottomColor === 'Transparent',\n        isOverlaid: prevBlock.data.isOverlaid,\n      });\n\n      breakSpacerProps.preChildren = <BreakSpacerSDS type={topBreakOverlayType} location=\"top\" />;\n    }\n\n    if (\n      nextBlock &&\n      nextBlock.data.__typename === 'Break' &&\n      nextBlock.data.type !== Template.Straight &&\n      nextBlock.data.type !== 'None'\n    ) {\n      const bottomBreakOverlayType = getBreakOverlayType({\n        template: nextBlock.data.type,\n        isTopTransparent: !nextBlock.data.topColor || nextBlock.data.topColor === 'Transparent',\n        isBottomTransparent:\n          !nextBlock.data.bottomColor || nextBlock.data.bottomColor === 'Transparent',\n        isOverlaid: nextBlock.data.isOverlaid,\n      });\n\n      breakSpacerProps.postChildren = (\n        <BreakSpacerSDS type={bottomBreakOverlayType} location=\"bottom\" />\n      );\n    }\n\n    // The last block should have a post child to add extra spacing.\n    if (!nextBlock && !breakSpacerProps.postChildren) {\n      breakSpacerProps.postChildren = (\n        <BreakSpacerSDS type={BreakOverlayType.TOP_HALF} location=\"bottom\" />\n      );\n    }\n\n    return cloneElement(component, breakSpacerProps);\n  });\n\n  // =================================================================================================\n  // Content\n  // =================================================================================================\n\n  // New background media\n  const backgroundAssetMedia = (backgroundMediaV2 as ImageDataProps | VideoDataProps)?.media;\n  const { imageSource, videoSource } = parseMedia(backgroundAssetMedia);\n\n  // New mobile background media\n  const backgroundMobileAssetMedia = (backgroundMediaV2 as ImageDataProps | VideoDataProps)\n    ?.mobileMedia;\n  const { imageSource: mobileImageSource, videoSource: mobileVideoSource } = parseMedia(\n    backgroundMobileAssetMedia\n  );\n\n  const { getImageSources } = useContentfulImages();\n\n  const imgSrcs = combineImageSources({\n    desktop: getImageSources(imageSource),\n    mobile: getImageSources(mobileImageSource),\n  });\n\n  // set Page to ltr unless title points us to rtl\n  const dir = direction(title);\n\n  const content = (\n    <>\n      <DefinitionProvider>\n        <PictureContext.Provider value={pictureContextNoLazy}>\n          {blocksToRender.slice(0, firstHeroOrBlockIndex + 1)}\n        </PictureContext.Provider>\n        <PictureContext.Provider value={pictureContextLazy}>\n          {blocksToRender.slice(firstHeroOrBlockIndex + 1)}\n        </PictureContext.Provider>\n        <DefinitionOverlay />\n      </DefinitionProvider>\n      {footnoteBlock}\n    </>\n  );\n\n  let banner = null;\n  let customBanner = null;\n\n  if (props?.banner?.__typename === 'Banner') {\n    const { contentfulDescriptionDataset } = getContentfulInspectorProps<BannerType>({\n      entryId: props.banner.sys.id,\n      fieldIds: ['contentfulDescription'],\n    });\n\n    banner = (\n      <Banner\n        className={pageStickyCss}\n        contentClassName={bannerContentContainerCss}\n        backgroundColor={props.banner?.backgroundColor as BackgroundColor}\n        dataset={contentfulDescriptionDataset}\n      >\n        {renderRichTextWithElements(props.banner?.content as RichText | string)}\n      </Banner>\n    );\n  } else if (props?.banner?.__typename) {\n    const customBlocks = getCustomComponents();\n\n    if (customBlocks[props.banner.__typename]) {\n      const CustomComponent = customBlocks[props.banner.__typename]!;\n      customBanner = <CustomComponent id={props.banner.sys.id} />;\n    }\n  }\n\n  // =================================================================================================\n  // Render\n  // =================================================================================================\n  return (\n    <div\n      data-testid=\"page\"\n      ref={pageRef}\n      className={cx(\n        getBackgroundClassName(pageBackgroundColor),\n        defaultPageBackgroundCss,\n        {\n          /**\n           * Need set bg to transparent if bg img or video because we need to keep z-index: -1 on\n           * the background media to ensure it's behind the content because some content does not\n           * set position: relative. TODO: This is a temporary solution until we have a better way\n           * to handle (specifically, cheerios is broken without this, can potentially be fixed by\n           * setting position:relative on CheeriosStaticBlock)\n           * https://jira.sc-corp.net/browse/WEBP-9706\n           */\n          [pageTransparentBgCss]: !!(imageSource || videoSource),\n          [pageSideNavCss]: hasSideNav,\n        },\n        minHeightCss,\n        'mwp-page'\n      )}\n      dir={dir}\n      data-test-feature={testFeature}\n      style={\n        {\n          [pageStickyHeightCssVar]: `${stickyHeightRef.current}px`,\n        } as React.CSSProperties\n      }\n    >\n      <Canonical localizedIn={props.localizedIn} />\n      <AlternateLang localizedIn={props.localizedIn} />\n      {!!metas && <Metas {...metas} />}\n      {!!metas?.schemasCollection?.items && <WebSchemas schemas={metas.schemasCollection.items} />}\n\n      {banner ? (\n        <div className={pageStickyCss} ref={stickyContainerRef}>\n          {banner}\n        </div>\n      ) : null}\n      <HeaderSDS title={title} />\n      <PageSDS\n        backgroundColor={pageBackgroundColor}\n        backgroundImageSources={imgSrcs}\n        backgroundMediaStyle={backgroundMediaStyle}\n        backgroundVideoSource={videoSource}\n        mobileBackgroundVideoSource={mobileVideoSource}\n        className={cx({ [pageCss]: !hasSubNav, [pageWithSubNavCss]: hasSubNav })}\n        scrollSnap={scrollSnap}\n      >\n        {content}\n        {customBanner}\n        <PageBottomStickyPortal className={stickyBottomCss} />\n      </PageSDS>\n      <ActiveEventCountTracker />\n    </div>\n  );\n};\n\nPage.displayName = 'Page';\n", "import { createContext } from 'react';\n\ninterface LayoutContextProps {\n  hasSideNav: boolean;\n  hasSubNav: boolean;\n}\n\nconst defaultContext: LayoutContextProps = {\n  hasSideNav: false,\n  hasSubNav: false,\n};\n\nexport const LayoutContext = createContext(defaultContext);\n", "/* eslint-disable no-misleading-character-class */\n// The above rule is disabled beacuse the RTL rangle is OK to match partial characters for our\n// purpose of detecting RTL chars.\n\n/**\n * Range for RTL characters. Copied from https://github.com/wooorm/direction.\n *\n * See https://www.ssec.wisc.edu/~tomw/java/unicode.html for explanation\n */\nconst rtlRange =\n  '\\u0591-\\u07FF' + // Hebrew (0500-05FF), Arabic Letters (0600-06FF) and Syriac (0700-074F)\n  '\\uFB1D-\\uFDFD' + // Hebrew and Arabic Letters and Ligatures, Farsi\n  '\\uFE70-\\uFEFC'; // Arabic Presentation Form B\n\nconst rtl = new RegExp(`[${rtlRange}]`, 'g');\n\n/** Detect direction of a string. */\nexport const direction = (source: string): 'rtl' | 'ltr' => {\n  if (!source) {\n    return 'ltr';\n  }\n\n  return rtl.test(source) ? 'rtl' : 'ltr';\n};\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\nimport { Helmet } from 'react-helmet-async';\n\nimport { AppContext } from '../../AppContext';\nimport { defaultLocale } from '../../helpers/locale';\n\ninterface AlternateLangProps {\n  /**\n   * Array of locales that a page is localized in. Defaults to en-US in case the field is undefined\n   * (this happens if the Page has no titles set yet)\n   */\n  localizedIn?: string[];\n}\n\n/**\n * Adds the locale alternate links.\n *\n * See this doc: https://developers.google.com/search/docs/advanced/crawling/localized-versions\n */\nexport const AlternateLang: FC<AlternateLangProps> = ({ localizedIn = [defaultLocale] }) => {\n  const { getCurrentUrl } = useContext(AppContext);\n\n  const url = new URL(getCurrentUrl());\n\n  // TODO: filter query params to persist only the relevant ones: https://jira.sc-corp.net/browse/WEBP-10759\n  url.hash = '';\n  url.search = '';\n\n  return (\n    <Helmet>\n      <link rel=\"alternate\" hrefLang=\"x-default\" href={url.href} />\n      {localizedIn?.map(locale => {\n        url.searchParams.set('lang', locale);\n        return <link key={locale} rel=\"alternate\" hrefLang={locale} href={url.href} />;\n      })}\n    </Helmet>\n  );\n};\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\nimport { Helmet } from 'react-helmet-async';\n\nimport { AppContext } from '../../AppContext';\nimport { defaultLocale } from '../../helpers/locale';\n\ninterface CanonicalProps {\n  /**\n   * Array of locales that a page is localized in. Defaults to en-US in case the field is undefined\n   * (this happens if the Page has no titles set yet)\n   */\n  localizedIn?: string[];\n}\n\n/** Adds canonical based on whether or not the page is localized in the current locale. */\nexport const Canonical: FC<CanonicalProps> = ({ localizedIn = [defaultLocale] }) => {\n  const { currentLocale, getCurrentUrl } = useContext(AppContext);\n\n  const url = new URL(getCurrentUrl());\n\n  // TODO: filter query params to persist only the relevant ones: https://jira.sc-corp.net/browse/WEBP-10759\n  const currentUrlHasLang = url.searchParams.has('lang');\n  url.search = '';\n  url.hash = '';\n\n  // If the current URL does not have a lang param do not add one\n  if (currentUrlHasLang) {\n    // if localized in the current local, use the current locale lang param as canonical\n    if (localizedIn.includes(currentLocale as string)) {\n      url.searchParams.set('lang', currentLocale as string);\n    } else {\n      // if not localized in the current locale, use the default locale lang param as canonical\n      url.searchParams.set('lang', defaultLocale);\n    }\n  }\n\n  return (\n    <Helmet>\n      <link rel=\"canonical\" href={url.href} />\n    </Helmet>\n  );\n};\n", "import { css } from '@emotion/css';\nimport { Yellow } from '@snapchat/snap-design-system-marketing';\nimport { type FC, useEffect, useLayoutEffect } from 'react';\n\nimport { totalHeaderHeightCssVar } from '../../../components/Header/headerSizeUtils';\nimport { snapHeaderBackgroundVar } from '../styleConstants';\n\nconst homepageCss = css`\n  margin-top: calc(0px - var(${totalHeaderHeightCssVar}));\n  padding-top: var(${totalHeaderHeightCssVar});\n  background: radial-gradient(circle farthest-side, white, ${Yellow.V100});\n  min-height: 100vh;\n  min-width: 100vw;\n`;\n\nexport const SnapHome: FC = () => {\n  useLayoutEffect(() => {\n    document.body.style.setProperty(snapHeaderBackgroundVar, 'transparent');\n    return () => {\n      document.body.style.removeProperty(snapHeaderBackgroundVar);\n    };\n  });\n  useEffect(() => {\n    const scrollListener = () => {\n      const opacityOneLimit = 64;\n      const opacity = Math.min(opacityOneLimit, window.scrollY) / opacityOneLimit;\n      // NOTE: 255, 252, 0 is the Snap Yellow.\n      document.body.style.setProperty(snapHeaderBackgroundVar, `rgba(255, 252, 0, ${opacity})`);\n    };\n    window.addEventListener('scroll', scrollListener);\n    return () => {\n      window.removeEventListener('scroll', scrollListener);\n    };\n  });\n  return <section className={homepageCss}>Future snap homepage.</section>;\n};\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nexport const fragments = {\n  questionnaireAll: gql`\n    fragment QuestionnaireBlockAll on QuestionnaireBlock {\n      ...ContentfulSysId\n      questionnaireTitle: title\n      body {\n        json\n      }\n      image {\n        url\n      }\n      questionsCollection(limit: 20) {\n        items {\n          ...QuestionnaireQuestionAll\n        }\n      }\n      startLabel\n      submitLabel\n      nextLabel\n      backLabel\n      skipLabel\n      trackingIdLabel\n    }\n  `,\n  questionnaireQuestionAll: gql`\n    fragment QuestionnaireQuestionAll on QuestionnaireQuestion {\n      ...ContentfulSysId\n      questionType\n      question\n      backgroundImage {\n        url\n      }\n      body {\n        json\n      }\n      answersCollection {\n        items {\n          ... on QuestionnaireAnswer {\n            ...ContentfulSysId\n            title\n            description {\n              json\n            }\n            image {\n              url\n            }\n          }\n        }\n      }\n      required\n    }\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const query = gql`\n  query QuestionnaireEntryQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    questionnaireBlock(preview: $preview, locale: $locale, id: $id) {\n      ...QuestionnaireBlockAll\n    }\n  }\n  ${fragments.questionnaireAll}\n  ${fragments.questionnaireQuestionAll}\n`;\n", "import type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type {\n  QuestionnaireProps,\n  QuestionType,\n} from '../../sites/for-business/components/Questionnaire';\nimport { Questionnaire } from '../../sites/for-business/components/Questionnaire';\nimport type { QuestionnaireAnswerCollection } from '.';\nimport { query } from './queries';\nimport type { QuestionnaireBlockProps } from './types';\n\nexport const QuestionnaireBlock: FC<{ id: string }> = props => {\n  const { data } = useContentfulQuery<QuestionnaireBlockProps, ContentfulIdVariable>(query, {\n    variables: { id: props.id },\n  });\n\n  const questionnaire = buildQuestionnaireFullObject(data);\n\n  if (!questionnaire) {\n    return null;\n  }\n\n  return <Questionnaire {...questionnaire} />;\n};\n\nQuestionnaireBlock.displayName = 'QuestionnaireBlock';\n\nfunction buildQuestionnaireFullObject(data?: QuestionnaireBlockProps): QuestionnaireProps | null {\n  if (!data) {\n    return null;\n  }\n\n  const { questionnaireBlock: questionnaire } = data;\n  const { questionsCollection } = questionnaire;\n\n  const questions = questionsCollection.items.map(questionData => ({\n    id: questionData.sys.id,\n    question: questionData.question,\n    body: questionData.body,\n    questionType: questionData.questionType as QuestionType,\n    image: questionData.backgroundImage?.url,\n    answers: buildQuestionAnswers(questionData.answersCollection),\n    required: questionData.required,\n  }));\n\n  return {\n    title: questionnaire.questionnaireTitle,\n    body: questionnaire.body,\n    image: questionnaire.image?.url,\n    submitLabel: questionnaire.submitLabel,\n    startLabel: questionnaire.startLabel,\n    nextLabel: questionnaire.nextLabel,\n    backLabel: questionnaire.backLabel,\n    skipLabel: questionnaire.skipLabel,\n    questions,\n  };\n}\n\nfunction buildQuestionAnswers(answersCollection?: QuestionnaireAnswerCollection) {\n  if (!answersCollection) {\n    return [];\n  }\n\n  const answers = answersCollection.items.map(answerData => ({\n    id: answerData.sys.id,\n    text: answerData.title,\n    imageUrl: answerData.image?.url,\n    isSelected: false,\n  }));\n\n  return answers;\n}\n", "import type { FC } from 'react';\n\nimport { ArArkoseProtectedFormBlock } from '../sites/ar/components/ArArkoseProtectedFormBlock';\nimport { ArDownloadFormBlock } from '../sites/ar/components/ArDownloadForm';\nimport { ArDownloadIdCaptureBlock } from '../sites/ar/components/ArDownloadIdCapture';\nimport { AvalonDeepLinkBlock } from '../sites/avalon/components/AvalonDeepLinkBlock/AvalonDeepLinkBlock';\nimport { AvalonFormBlock } from '../sites/avalon/components/AvalonFormBlock/AvalonFormBlock';\nimport { AvalonHomeHero } from '../sites/avalon/components/AvalonHomeHero/AvalonHomeHero';\nimport { AvalonProductHero } from '../sites/avalon/components/AvalonProductHero/AvalonProductHero';\nimport { AvalonScrollSection } from '../sites/avalon/components/AvalonScrollSection/AvalonScrollSection';\nimport { FixedPositionBlock } from '../sites/avalon/components/FixedPositionBlock/FixedPositionBlock';\nimport { MosaicGridBlock } from '../sites/avalon/components/MosaicGridBlock/MosaicGridBlock';\nimport { ValuePropsBlock } from '../sites/avalon/components/ValuePropsBlock/ValuePropsBlock';\nimport { JobApplyNowBlock } from '../sites/careers/components/JobApplyNowBlock/JobApplyNowBlock';\nimport { JobDescriptionBlock } from '../sites/careers/components/JobDescriptionBlock/JobDescriptionBlock';\nimport { JobHero } from '../sites/careers/components/JobHero/JobHero';\nimport { JobMobileCallToAction } from '../sites/careers/components/JobMobileCallToAction/JobMobileCallToAction';\nimport { JobPostingsShallow } from '../sites/careers/components/JobsPostings/JobPostingsShallow';\nimport { CheeriosBlock } from '../sites/cheerios/components/CheeriosBlock';\nimport { CheeriosStaticBlock } from '../sites/cheerios/components/CheeriosStaticBlock';\nimport { CventAuthenticator } from '../sites/experience/components/CventAuthenticator/CventAuthenticator';\nimport { EventRoot } from '../sites/experience/components/LiveEvent/EventRoot';\nimport { RegistrationFormBlock } from '../sites/experience/components/RegistrationFormBlock/RegistrationFormBlock';\n// eslint-disable-next-line max-len\nimport { Sps2024ConfirmationShallow as ExperienceSps2024ConfirmationShallow } from '../sites/experience/components/Sps2024Confirmation/Sps2024ConfirmationShallow';\n// eslint-disable-next-line max-len\nimport { Sps2024RegistrationShallow as ExperienceSpsRegistrationShallow } from '../sites/experience/components/Sps2024Registration/Sps2024RegistrationShallow';\nimport { ChiliPiperFormBlockShallow } from '../sites/for-business/components/ChiliPiperForm/ChiliPiperFormShallow';\nimport { LeadGenFormBlock } from '../sites/for-business/components/LeadGenForm/LeadGenFormBlock';\nimport { PersistentCallToActionShallow } from '../sites/for-business/components/PersistentCallToAction/PersistentCallToActionShallow';\nimport { LatestGalleryCardHeroShallow } from '../sites/newsroom/components/LatestGalleryCardHero/LatestGalleryCardHeroShallow';\nimport { CookieTestBlock } from '../sites/sandbox/components/CookieTestBlock/CookieTestBlock';\nimport { SnapHome } from '../sites/snap/pages/SnapHome';\n// Temporary will have a follow up PR to make standard component.\nimport { QuestionnaireBlock } from './QuestionnaireBlock';\n\n/**\n * Returns a map of all supported custom components.\n *\n * This is in a separate file and not Site Config because adding it there introduces a circular\n * dependency because usually you can't instantiate custom components without backreferencing the\n * Config in some way.\n */\nexport function getCustomComponents(): Record<string, FC<{ id: string }>> {\n  return {\n    ArDownloadFormBlock,\n    ArDownloadIdCaptureBlock,\n    AvalonHomeHero,\n    AvalonDeepLinkBlock,\n    AvalonProductHero,\n    AvalonFormBlock,\n    AvalonScrollSection,\n    FixedPositionBlock,\n    ValuePropsBlock,\n    CheeriosBlock,\n    CheeriosStaticBlock,\n    ChiliPiperFormBlock: ChiliPiperFormBlockShallow,\n    JobApplyNowBlock,\n    JobDescriptionBlock,\n    JobHero,\n    JobPostings: JobPostingsShallow,\n    JobMobileCallToAction,\n    MobileCta: PersistentCallToActionShallow,\n    QuestionnaireBlock,\n    SandboxCookieTest: CookieTestBlock,\n    LatestGalleryCardHero: LatestGalleryCardHeroShallow,\n    RegistrationFormBlock,\n    ArArkoseProtectedFormBlock,\n    LeadGenFormBlock,\n    ExperienceSps2024Registration: ExperienceSpsRegistrationShallow,\n    ExperienceSps2024Confirmation: ExperienceSps2024ConfirmationShallow,\n    CventAuthenticator,\n    MosaicGridBlock,\n    LiveEvent: EventRoot,\n    SnapHome,\n  };\n}\n", "import { BLOCKS } from '@contentful/rich-text-types';\nimport type { CallToAction } from '@snapchat/mw-contentful-schema';\nimport { BackgroundColor, MessageContext } from '@snapchat/snap-design-system-marketing';\nimport type { FC, ReactNode } from 'react';\nimport { useContext } from 'react';\nimport { useLocation } from 'react-router-dom';\n\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { Items } from '../../types/Items';\nimport type { RichText } from '../../types/RichText';\nimport type { BlockDataProps } from '../Block';\nimport type { SubNavigationDataProps } from '../SubNavigation';\nimport type { HeroDataProps } from '.';\nimport { Hero } from './Hero';\nimport type { LatestPostHeroProps } from './latestPostQuery';\nimport { latestPostHeroQuery } from './latestPostQuery';\n\nexport const LatestPostHero: FC<{\n  backgroundColor?: BackgroundColor;\n  postChildren?: ReactNode;\n}> = ({ backgroundColor, postChildren }) => {\n  const { data } = useContentfulQuery<LatestPostHeroProps>(latestPostHeroQuery);\n  const { formatMessage } = useContext(MessageContext);\n  const { pathname } = useLocation();\n  const latestPostCtaTitle = formatMessage({ id: 'viewArticle', defaultMessage: 'View Article' });\n\n  const titleCtaRichText: RichText = {\n    json: {\n      data: {},\n      content: [\n        {\n          data: {},\n          content: [\n            {\n              data: {},\n              marks: [],\n              value: latestPostCtaTitle,\n              nodeType: 'text',\n            },\n          ],\n          nodeType: BLOCKS.PARAGRAPH,\n        },\n      ],\n      nodeType: BLOCKS.DOCUMENT,\n    },\n    links: undefined,\n  };\n\n  const slugData = data?.slugCollection.items[0];\n\n  const slug = slugData?.slug;\n  let blockHero: HeroDataProps | undefined;\n\n  switch (slugData?.page.__typename) {\n    case 'Page':\n      blockHero = slugData.page.blocksCollection.items.find(\n        (item): item is HeroDataProps => item.__typename === 'BlockHero'\n      );\n      break;\n\n    case 'PageAsset':\n      blockHero = {\n        __typename: 'BlockHero',\n        sys: { id: 'asset_block_hero' },\n        title: slugData?.page?.media?.title,\n        body: slugData?.page?.media?.description,\n      };\n      break;\n\n    case 'Experiment': {\n      blockHero = (\n        slugData.page.defaultReference as unknown as {\n          blocksCollection: Items<BlockDataProps | HeroDataProps | SubNavigationDataProps>;\n        }\n      ).blocksCollection.items.find(\n        (item): item is HeroDataProps => item.__typename === 'BlockHero'\n      );\n      break;\n    }\n  }\n\n  const callsToActionCollection: Items<CallToAction> = {\n    items: [\n      {\n        _id: 'generated',\n        sys: {\n          id: 'generated',\n        },\n        url: slug,\n        analytics: {\n          _id: 'generated',\n          sys: {\n            id: 'generated',\n          },\n          label: `Latest Post Hero CTA: ${pathname}`,\n        },\n        presentation: {\n          __typename: 'Button',\n          _id: 'generated',\n          sys: {\n            id: 'generated',\n          },\n          url: slug,\n          title: titleCtaRichText,\n          theme: 'Primary',\n        },\n      },\n    ],\n  };\n\n  if (!blockHero) return null;\n\n  const heroBackgroundColor = blockHero.backgroundColor ?? backgroundColor ?? BackgroundColor.White;\n\n  backgroundColor ??= BackgroundColor.White;\n  return (\n    <Hero\n      {...blockHero}\n      callsToActionCollection={callsToActionCollection}\n      backgroundColor={heroBackgroundColor}\n      theme={backgroundColor}\n      postChildren={postChildren}\n    />\n  );\n};\n", "import { gql } from '@apollo/client';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport type { MediaDataProps } from '../Media';\nimport { assetFragment } from '../Media';\n\nexport interface PageAssetDataProps extends ContentfulTypedSysProps<'PageAsset'> {\n  media: MediaDataProps;\n}\n\n// =================================================================================================\n// Page Asset Fragment\n// =================================================================================================\nexport const pageAssetFragment = gql`\n  fragment PageAssetAll on PageAsset {\n    ...ContentfulSysId\n    media {\n      ...AssetAll\n    }\n  }\n  ${assetFragment}\n  ${contentfulSysIdFragment}\n`;\n", "import { gql } from '@apollo/client';\nimport type { Experiment, PageAsset } from '@snapchat/mw-contentful-schema';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport type { Items } from '../../types/Items';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport type { BlockDataProps } from '../Block';\nimport { createExperimentFragmentNoAb } from '../Experiment/experimentQuery';\nimport { pageAssetFragment } from '../Page/pageAssetQuery';\nimport type { SubNavigationDataProps } from '../SubNavigation';\nimport { fragments as heroFragments } from './query';\nimport type { HeroDataProps } from './types';\n\n// =================================================================================================\n// Page Block Hero Fragment\n// =================================================================================================\n\n// nice to have: filter for hero only\nconst pageBlockCollectionsFragment = gql`\n  fragment PageBlocksCollection on Page {\n    ...ContentfulSysId\n    blocksCollection(limit: 50) {\n      items {\n        ... on BlockHero {\n          ...BlockHeroAll\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\ninterface PageBlocksCollectionData extends ContentfulTypedSysProps<'Page'> {\n  blocksCollection: Items<BlockDataProps | HeroDataProps | SubNavigationDataProps>;\n}\n\n// =================================================================================================\n// Latest Post Hero\n// =================================================================================================\n\nexport const latestPostHeroQuery = gql`\n  query LatestPostHero($locale: String!, $preview: Boolean!) {\n    slugCollection(\n      limit: 1\n      order: postedDate_DESC\n      where: { AND: [{ slugType_contains: \"Blog\" }] }\n      locale: $locale\n      preview: $preview\n    ) {\n      items {\n        ...ContentfulSysId\n        slug\n        postedDate\n        author {\n          ...ContentfulSysId\n          name\n          position\n          slug\n        }\n        page {\n          ...PageAssetAll\n          ...ExperimentOnPageLoadingPageBlocksCollection\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${heroFragments.all}\n  ${pageBlockCollectionsFragment}\n  ${createExperimentFragmentNoAb('Page', 'PageBlocksCollection', pageBlockCollectionsFragment)}\n  ${pageAssetFragment}\n`;\n\nexport interface LatestPostHeroProps {\n  slugCollection: Items<\n    ContentfulTypedSysProps<'Slug'> & {\n      slug: string;\n      page: PageBlocksCollectionData | Experiment | PageAsset;\n      author?: {\n        name: string;\n        position: number;\n        slug: string;\n      };\n    }\n  >;\n}\n", "import { gql } from '@apollo/client';\nimport type { Experiment, PageAsset } from '@snapchat/mw-contentful-schema';\nimport type { BackgroundColor } from '@snapchat/snap-design-system-marketing';\n\nimport type { ContentfulSysProps, ContentfulTypedSysProps } from '../../types/contentful';\nimport type { Items } from '../../types/Items';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { createExperimentFragmentNoAb } from '../Experiment/experimentQuery';\nimport { pageAssetFragment } from '../Page/pageAssetQuery';\n\n// =================================================================================================\n// Page Category Title Fragment\n// =================================================================================================\n\nconst pageCategoryTitleFragment = gql`\n  fragment PageCategoryTitle on Page {\n    ...ContentfulSysId\n    title\n    category {\n      ...ContentfulSysId\n      title\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport interface PageCategoryTitle extends ContentfulTypedSysProps<'Page'> {\n  title: string;\n  category: {\n    title: string;\n  };\n}\n\n// =================================================================================================\n// Latest post block query\n// =================================================================================================\n\nexport const latestPostBlockQuery = gql`\n  query LatestPostBlockQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    latestPosts(preview: $preview, locale: $locale, id: $id) {\n      ...ContentfulSysId\n      title\n      maxPosts\n      backgroundColor\n      cta {\n        ...ContentfulSysId\n      }\n      anchorId\n    }\n    slugCollection(\n      preview: $preview\n      locale: $locale\n      limit: 4\n      order: postedDate_DESC\n      where: { AND: [{ slugType_contains: \"Blog\" }, { slug_not: \"home\" }] }\n    ) {\n      items {\n        sys {\n          id\n          firstPublishedAt\n        }\n        __typename\n        slug\n        postedDate\n        author {\n          ...ContentfulSysId\n          name\n          position\n          slug\n        }\n        page {\n          ...PageAssetAll\n          ...ExperimentOnPageLoadingPageCategoryTitle\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${createExperimentFragmentNoAb('Page', 'PageCategoryTitle', pageCategoryTitleFragment)}\n  ${pageAssetFragment}\n`;\n\nexport interface LatestPostBlockDataProps extends ContentfulTypedSysProps<'LatestPosts'> {\n  backgroundColor: BackgroundColor;\n}\n\nexport interface LatestPostBlockData {\n  latestPosts: {\n    title: string;\n    maxPosts: number;\n    backgroundColor: BackgroundColor;\n    cta?: ContentfulSysProps;\n    anchorId?: string;\n  };\n  slugCollection: Items<{\n    __typename: 'Slug';\n    sys: {\n      id: string;\n      firstPublishedAt: string;\n    };\n    slug: string;\n    postedDate?: string;\n    author?: {\n      name: string;\n      position: number;\n      slug: string;\n    };\n    page: PageCategoryTitle | Experiment | PageAsset;\n  }>;\n}\n", "import type { LatestPostItem } from '@snapchat/snap-design-system-marketing';\nimport { FormattedMessage, LatestPosts } from '@snapchat/snap-design-system-marketing';\nimport type { FC, ReactNode } from 'react';\nimport { Link } from 'react-router-dom';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { useFormatDate } from '../../hooks/useFormatDate';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport { Anchor } from '../Anchor';\nimport { CallToAction } from '../CallToAction';\nimport { useExperiment } from '../Experiment/useExperiments';\nimport type { LatestPostBlockData } from './query';\nimport { latestPostBlockQuery } from './query';\n\nexport interface LatestPostBlockProps extends ContentfulSysProps {\n  preChildren?: ReactNode;\n  postChildren?: ReactNode;\n}\n\nexport const LatestPostBlock: FC<LatestPostBlockProps> = props => {\n  const { formatDate } = useFormatDate();\n  const { decideExperiment } = useExperiment();\n\n  const { data } = useContentfulQuery<LatestPostBlockData, ContentfulIdVariable>(\n    latestPostBlockQuery,\n    { variables: { id: props.sys.id } }\n  );\n\n  if (!data) return null;\n\n  const {\n    latestPosts: { title, maxPosts, backgroundColor, cta, anchorId },\n    slugCollection,\n  } = data;\n\n  const items: LatestPostItem[] = Array(maxPosts)\n    .fill(0)\n    .map((_: undefined, index: number) => {\n      const slug = slugCollection.items[index]!;\n      const dateFormatted = formatDate(\n        slug.postedDate ? slug.postedDate : slug.sys.firstPublishedAt,\n        {\n          month: 'long',\n          day: '2-digit',\n          year: 'numeric',\n          weekday: 'long',\n        }\n      );\n      const author = slug.author && (\n        <FormattedMessage\n          id=\"authorByline\"\n          values={{\n            author: slug.author.name,\n          }}\n          defaultMessage=\"By <b>{author}</b>\"\n        />\n      );\n\n      const date = dateFormatted && (\n        <FormattedMessage\n          id=\"postedOn\"\n          values={{ date: dateFormatted }}\n          defaultMessage=\"on {date}\"\n        />\n      );\n\n      if (slug.page.__typename === 'PageAsset') {\n        return {\n          title: (\n            <Anchor href={slug.slug} key={slug.slug}>\n              {slug.page?.media?.title}\n            </Anchor>\n          ),\n          author,\n          date,\n        };\n      }\n\n      if (slug.page.__typename === 'Page' || slug.page.__typename === 'Experiment') {\n        const { decision: page } = decideExperiment(slug.page, { logImpression: false });\n\n        return {\n          title: (\n            <Link to={slug.slug} key={slug.slug}>\n              {page.title}\n            </Link>\n          ),\n          author,\n          date,\n          category: page.category?.title,\n        };\n      }\n      throw new Error('Unknown page type.');\n    });\n\n  const ctaElement = cta && <CallToAction key={cta.sys.id} {...cta} />;\n  return (\n    <LatestPosts\n      anchorId={anchorId}\n      title={title}\n      items={items}\n      cta={ctaElement}\n      backgroundColor={backgroundColor}\n      preChildren={props.preChildren}\n      postChildren={props.postChildren}\n    />\n  );\n};\n\nLatestPostBlock.displayName = 'LatestPostBlock';\n", "import { gql } from '@apollo/client';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { fragments as videoFragments } from '../Video/query';\n\nexport const fragments = {\n  all: gql`\n    fragment MultiVideoBlockAll on MultiVideoBlock {\n      ...ContentfulSysId\n      anchorId\n      panelPosition\n      primaryVideosCollection(limit: 10) {\n        items {\n          ... on Video {\n            ...VideoAll\n          }\n        }\n      }\n      secondaryVideosCollection(limit: 10) {\n        items {\n          ... on Video {\n            ...VideoAll\n          }\n        }\n      }\n      mobilePrimaryVideosCollection(limit: 10) {\n        items {\n          ... on Video {\n            ...VideoAll\n          }\n        }\n      }\n      mobileSecondaryVideosCollection(limit: 10) {\n        items {\n          ... on Video {\n            ...VideoAll\n          }\n        }\n      }\n    }\n    ${videoFragments.all}\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const query = gql`\n  query MultiVideoBlockQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    multiVideoBlock(preview: $preview, locale: $locale, id: $id) {\n      ...MultiVideoBlockAll\n    }\n  }\n  ${fragments.all}\n`;\n", "import type { VideoItem } from '@snapchat/snap-design-system-marketing';\nimport { MultiVideoBlock as MultiVideoBlockSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { VideoDataProps } from '../Video/types';\nimport { query } from './query';\nimport type { MultiVideoBlockProps, MultiVideoDataHandlerProps } from './types';\n\nconst updateCollection = (collection: Array<VideoDataProps>) => {\n  if (!collection || !collection.length) return [];\n  return collection.map(item => {\n    return { ...item, id: item.sys.id } as VideoItem;\n  });\n};\n\nexport const MultiVideoBlock: FC<MultiVideoBlockProps> = ({\n  children,\n  id,\n  togglePanelClassName,\n  togglePanelLabel,\n  preChildren,\n  postChildren,\n  ...otherProps\n}) => {\n  const { data } = useContentfulQuery<MultiVideoDataHandlerProps, ContentfulIdVariable>(query, {\n    variables: { id },\n  });\n\n  if (data) {\n    const {\n      anchorId,\n      panelPosition,\n      primaryVideosCollection,\n      secondaryVideosCollection,\n      mobilePrimaryVideosCollection,\n      mobileSecondaryVideosCollection,\n    } = data.multiVideoBlock;\n\n    return (\n      <MultiVideoBlockSDS\n        anchorId={anchorId}\n        id={id}\n        toggleButtonIcons={['hover', 'reveal', 'follow', 'orbit']}\n        panelPosition={panelPosition}\n        primaryVideos={updateCollection(primaryVideosCollection?.items)}\n        secondaryVideos={updateCollection(secondaryVideosCollection?.items)}\n        mobilePrimaryVideos={updateCollection(mobilePrimaryVideosCollection?.items)}\n        mobileSecondaryVideos={updateCollection(mobileSecondaryVideosCollection?.items)}\n        togglePanelLabel={togglePanelLabel}\n        togglePanelClassName={togglePanelClassName}\n        preChildren={preChildren}\n        postChildren={postChildren}\n        {...otherProps}\n      >\n        {children}\n      </MultiVideoBlockSDS>\n    );\n  }\n\n  return null;\n};\n\nMultiVideoBlock.displayName = 'MultiVideoBlock';\n", "import { css } from '@emotion/css';\nimport type { ScrollAnimatedSectionAnimatedContentCollection } from '@snapchat/mw-contentful-schema';\nimport {\n  ScrollAnimatedSection as ScrollableSectionSDS,\n  ScrollAnimatedVideo,\n} from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport { getHeaderHeightFromCssVar, totalHeaderHeightCssVar } from '../Header/headerSizeUtils';\n\ninterface ScrollableSectionProps {\n  animatedContentCollection?: ScrollAnimatedSectionAnimatedContentCollection;\n  scrollHeight?: number;\n}\n\nconst innerScrollContainerCss = css`\n  height: calc(100vh - var(${totalHeaderHeightCssVar}));\n  top: var(${totalHeaderHeightCssVar});\n`;\n\nconst scrubVideoCss = css`\n  position: absolute;\n  object-fit: cover;\n  width: 100%;\n  height: 100%;\n`;\n\nexport const ScrollAnimatedSection: FC<ScrollableSectionProps> = ({\n  scrollHeight = 1,\n  animatedContentCollection,\n}) => {\n  const containerRef = useRef<HTMLDivElement>(null);\n  const totalHeaderHeightRef = useRef<number>(64);\n\n  // gets header height value from css var. only need to do this once\n  // until we allow variable header heights... one day...\n  // when that time comes we will have a hook w/ resize observer to fix this\n  useEffect(() => {\n    totalHeaderHeightRef.current = getHeaderHeightFromCssVar();\n  }, []);\n\n  /**\n   * Function that returns the scroll progress for the scrub video. This returns the percentage of\n   * the scrollable section that has scrolled past the top of the screen.\n   */\n  const calculateScrollProgress = useCallback(() => {\n    if (!containerRef.current) {\n      return 0;\n    }\n    const top =\n      (containerRef.current.getBoundingClientRect().top - totalHeaderHeightRef.current) * -1;\n\n    const totalHeight = containerRef.current.offsetHeight - window.innerHeight;\n    const scrollProgress = top / totalHeight;\n    return scrollProgress;\n  }, []);\n\n  const heightStyle = useMemo(() => {\n    return { height: `${scrollHeight * 100}vh` };\n  }, [scrollHeight]);\n\n  return (\n    <ScrollableSectionSDS\n      innerContainerClassName={innerScrollContainerCss}\n      containerRef={containerRef}\n      style={heightStyle}\n    >\n      {animatedContentCollection?.items.map(video => {\n        const {\n          sys,\n          mp4Source,\n          webmSource,\n          videoStart,\n          videoEnd,\n          scrubStart = 0,\n          scrubEnd = 100,\n        } = video;\n        if (!mp4Source?.url || !webmSource?.url) return null;\n        return (\n          <ScrollAnimatedVideo\n            calculateScrollProgress={calculateScrollProgress}\n            className={scrubVideoCss}\n            key={sys.id}\n            scrubEnd={scrubEnd}\n            scrubStart={scrubStart}\n            videoEnd={videoEnd}\n            videoMp4Src={mp4Source.url}\n            videoStart={videoStart}\n            videoWebmSrc={webmSource?.url}\n          />\n        );\n      })}\n    </ScrollableSectionSDS>\n  );\n};\n", "import { css } from '@emotion/css';\nimport { mobileMediaQuery } from '@snapchat/snap-design-system-marketing';\n\nexport const hasSideNavCss = css`\n  display: flex;\n  overflow: clip;\n\n  ${mobileMediaQuery} {\n    display: block;\n  }\n`;\n\nexport const minHeightCss = css`\n  min-height: calc(100vh - var(--total-header-height));\n  min-height: calc(100dvh - var(--total-header-height));\n`;\n", "import { getDprSrcSetSettingsByHeight, useContentfulImages } from '@snapchat/mw-contentful-client';\nimport type { ImageSources } from '@snapchat/snap-design-system-marketing';\nimport { SplitBlock as SplitBlockSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { combineImageSources } from '../../utils/combineImageSources';\nimport { renderRichTextWithElements } from '../../utils/renderText/renderRichText';\nimport { CallToAction } from '../CallToAction';\nimport type { SplitBlockDataProps } from './SplitBlock.query';\n\nexport const SplitBlock: FC<SplitBlockDataProps> = props => {\n  const { getImageSources } = useContentfulImages();\n\n  const {\n    splitBlockTitle: title,\n    splitBlockSubtitle: subtitle,\n    splitBlockBody: body,\n    media,\n    callsToActionCollection,\n    splitBlockBody,\n    ...restProps\n  } = props;\n\n  const desktopMedia = media.media;\n  const mobileMedia = media.mobileMedia;\n  const backgroundMediaType = media.__typename;\n\n  let imgSrcs: ImageSources | undefined;\n  let videoSources;\n\n  if (backgroundMediaType === 'Image') {\n    imgSrcs = combineImageSources({\n      desktop: getImageSources(\n        desktopMedia.url,\n        getDprSrcSetSettingsByHeight(800, media.media.height ?? 0)\n      ),\n      mobile: getImageSources(\n        mobileMedia?.url,\n        getDprSrcSetSettingsByHeight(800, media.mobileMedia?.height ?? 0)\n      ),\n    });\n  }\n\n  if (backgroundMediaType === 'Video') {\n    videoSources = {\n      videoSource: desktopMedia.url,\n      mobileVideoSource: mobileMedia?.url,\n      mediaContentType: desktopMedia.contentType,\n      mobileMediaContentType: mobileMedia?.contentType,\n    };\n  }\n\n  const callsToAction = callsToActionCollection?.items?.map(item => (\n    <CallToAction key={item.sys.id} {...item} />\n  ));\n\n  return (\n    <SplitBlockSDS\n      title={title}\n      subtitle={subtitle}\n      body={renderRichTextWithElements(body)}\n      callsToAction={callsToAction?.length ? callsToAction : undefined}\n      imageSources={imgSrcs}\n      {...videoSources}\n      {...restProps}\n    />\n  );\n};\n", "import type { FC } from 'react';\nimport { useEffect, useRef } from 'react';\n\nimport { getTracer } from '../../utils/tracing';\n\n/**\n * Component for automation testing to track outgoing requests. Since its using the tracer, it also\n * includes anything that is being actively traced, but a majority of it is outgoing requests.\n */\nexport const ActiveEventCountTracker: FC = () => {\n  const divRef = useRef<HTMLDivElement>(null);\n\n  useEffect(() => {\n    return getTracer().addEventListener(\n      (_eventId, _eventName, _lifeCycle, activeEventCount: number) => {\n        divRef.current && (divRef.current.dataset.events = `${activeEventCount}`);\n      }\n    );\n  }, []);\n\n  return <div data-testid=\"mwp-active-traced-events\" ref={divRef} data-events=\"0\" hidden />;\n};\n", "import { css } from '@emotion/css';\nimport { m, maxWidth, ZIndex } from '@snapchat/snap-design-system-marketing';\n\nimport { richTextCtaClassName } from '../../utils/contentfulComponentMap';\nimport { totalHeaderHeightCssVar } from '../Header/headerSizeUtils';\n\n/** Used to apply the background color set by Props or Site Config. */\nexport const defaultPageBackgroundCss = css`\n  background-color: ${m('--background-color')};\n`;\n\n/**\n * Used to ensure consistent rendering of page since some of our breaks have different widths and\n * cause inconsistent rednering without this.\n */\nexport const pageSideNavCss = css`\n  flex-grow: 1;\n  max-width: ${maxWidth}px;\n`;\n\nexport const pageStickyCss = css`\n  position: sticky;\n  top: var(${totalHeaderHeightCssVar});\n  z-index: ${ZIndex.SUB_NAVIGATION};\n`;\n\nexport const bannerContentContainerCss = css`\n  line-height: 20px;\n  white-space: pre-wrap;\n\n  /* TODO: Swap this rule when use a proper <p> element for paragraphs */\n  .sdsm-p {\n    margin-bottom: 0;\n  }\n\n  .${richTextCtaClassName} {\n    font-size: 14px;\n    /*\n    need to unset lineheight because it messes with alignment :(\n    also need vertical align bottom to make it actually aligned for some reason\n    */\n    line-height: unset;\n    vertical-align: bottom;\n\n    /*\n    hack because icons mess up alignment due to their taller size and\n    we don't want to use flex because the text nodes won't be able to wrap\n    properly then\n    */\n    i {\n      font-size: 14px;\n      transform: scale(1.25);\n    }\n\n    /* same as above for images, bad and will update in future */\n    img {\n      height: 14px;\n      transform: scale(1.5);\n      margin-left: 2px;\n    }\n  }\n`;\n\nexport const stickyBottomCss = css`\n  position: sticky;\n  bottom: 0;\n  z-index: ${ZIndex.MOBILE_CTA};\n`;\n", "import type { FC, PropsWithChildren } from 'react';\nimport { memo, useContext } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { AppContext } from '../../AppContext';\n\n// eslint-disable-next-line import/no-unused-modules\nexport const pageBottomStickyPortalId = 'mwp-page-bottom-sticky-portal';\n\n/**\n * Portal for rendering content at the bottom of the page in a persistent/sticky manner.\n *\n * Use as return React.createPortal(<element>, pageBottomStickyPortalId)\n */\nexport const PageBottomStickyPortal: FC<{ className?: string }> = memo(props => {\n  const { pageBottomStickyPortalRef } = useContext(AppContext);\n\n  return (\n    <aside\n      className={props.className}\n      data-testid={pageBottomStickyPortalId}\n      ref={pageBottomStickyPortalRef}\n    />\n  );\n});\n\n/**\n * Easy insertion point into the bottom of the page (but sticks as the user scrolls).\n *\n * Use as <IntoPageBottomStickyPortal>{.. your stuff ..}</IntoPageBottomStickyPortal>\n *\n * NOTE: The contently only gets inserted on the client. Nothing displays on the server.\n */\nexport const IntoPageBottomStickyPortal: FC<PropsWithChildren> = ({ children }) => {\n  const { pageBottomStickyPortalRef } = useContext(AppContext);\n\n  return pageBottomStickyPortalRef?.current\n    ? createPortal(children, pageBottomStickyPortalRef!.current)\n    : null;\n};\n", "export const pageStickyHeightCssVar = '--page-sticky-height';\n", "import { gql } from '@apollo/client';\nimport type { Banner } from '@snapchat/mw-contentful-schema';\nimport type { BackgroundColor } from '@snapchat/snap-design-system-marketing';\n\nimport type { FooterView, HeaderView } from '../../context/PageLayoutContext';\nimport type { Category } from '../../types/Category';\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport type { Items } from '../../types/Items';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport type { BlockDataProps, BlockShallowDataProps } from '../Block';\nimport { blockAllFragment, blockFragmentShallow } from '../Block';\nimport type { BreakDataProps } from '../Break';\nimport { breakFragment } from '../Break';\nimport { ctaFragment } from '../CallToAction';\nimport type { FootnoteDataProps } from '../Footnote';\nimport { fragments as footnoteFragments } from '../Footnote';\nimport type { HeroDataProps } from '../Hero';\nimport { fragments as heroFragments } from '../Hero';\nimport type { ImageDataProps } from '../Image/types';\nimport type { LatestPostBlockDataProps } from '../LatestPostBlock';\nimport { fragments as assetsFragments } from '../Media/query';\nimport type { MediaDataProps } from '../Media/types';\nimport type { MetasDataProps } from '../Metas';\nimport { fragments as metaFragments } from '../Metas';\nimport type { MultiVideoDataProps } from '../MultiVideoBlock';\nimport type { ScrollAnimatedSectionDataProps } from '../ScrollAnimatedSection/query';\nimport { scrollAnimatedSectionFragment } from '../ScrollAnimatedSection/query';\nimport type { SideNavigationDataProps } from '../SideNavigation';\nimport { type SplitBlockDataProps, splitBlockFragment } from '../SplitBlock/SplitBlock.query';\nimport type { SubNavigationDataProps } from '../SubNavigation';\nimport { subNavigationFragment } from '../SubNavigation';\n\n// =================================================================================================\n// Page Shallow Fragment\n// =================================================================================================\n\n/**\n * This shallow fragment does load deep ids for the blocks and content so that they can be loaded in\n * the next load cycle. This allows for executing all of the children queries in parallel.\n */\nexport const pageFragmentShallow = gql`\n  fragment PageShallow on Page {\n    ...ContentfulSysId\n    blocksCollection(limit: 15) {\n      items {\n        # For non-standard blocks, just preload their ids.\n        ...ContentfulSysId\n        # For blocks, alse preload the content ids.\n        ... on Block {\n          ...BlockShallow\n        }\n      }\n    }\n  }\n  ${blockFragmentShallow}\n  ${contentfulSysIdFragment}\n`;\n\nexport interface PageShallowDataProps extends ContentfulTypedSysProps<'Page'> {\n  blocksCollection: Items<BlockShallowDataProps>;\n}\n\n// =================================================================================================\n// Banner Fragment\n// =================================================================================================\nexport const bannerFragment = gql`\n  fragment BannerAll on Banner {\n    ...ContentfulSysId\n    content {\n      json\n      links {\n        entries {\n          inline {\n            ... on CallToAction {\n              ...CallToActionAll\n            }\n          }\n        }\n      }\n    }\n    backgroundColor\n  }\n  ${contentfulSysIdFragment}\n  ${ctaFragment}\n`;\n\n// =================================================================================================\n// Page All Fragment\n// =================================================================================================\n\nexport const fragments = {\n  all: gql`\n    fragment PageAll on Page {\n      ...ContentfulSysId\n      title\n      metas {\n        ...MetaAll\n      }\n      banner {\n        ...BannerAll\n        # In case there's a MobileCta inside banner, we want to retrieve its ID.\n        ...ContentfulSysId\n      }\n      backgroundColor\n      backgroundMediaV2 {\n        __typename\n        ... on Video {\n          ...VideoAll\n        }\n        ... on Image {\n          ...ImageAll\n        }\n      }\n      backgroundMediaStyle\n      blocksCollection(limit: 50) {\n        items {\n          ...ContentfulSysId\n          ... on Block {\n            ...BlockAll\n          }\n          ... on BlockHero {\n            ...BlockHeroAll\n          }\n          ... on LatestPosts {\n            backgroundColor\n          }\n          ... on Break {\n            ...BreakAll\n          }\n          ... on SubNavigation {\n            ...SubNavigationAll\n          }\n          ... on ScrollAnimatedSection {\n            ...ScrollAnimatedSectionAll\n          }\n          ... on SplitBlock {\n            ...SplitBlockAll\n          }\n        }\n      }\n      footnotesCollection(limit: 50) {\n        items {\n          ... on FootNotes {\n            ...FootNotesAll\n          }\n        }\n      }\n      collapseFootnotes\n      footerView\n      headerView\n      scrollSnap\n      localizedIn\n    }\n    ${bannerFragment}\n    ${blockAllFragment}\n    ${scrollAnimatedSectionFragment}\n    ${assetsFragments.all}\n    ${heroFragments.all}\n    ${footnoteFragments.all}\n    ${metaFragments.all}\n    ${contentfulSysIdFragment}\n    ${subNavigationFragment}\n    ${breakFragment}\n    ${splitBlockFragment}\n  `,\n};\n\nexport type PageDataBlock =\n  | BlockDataProps\n  | HeroDataProps\n  | LatestPostBlockDataProps\n  | MultiVideoDataProps\n  | SubNavigationDataProps\n  | BreakDataProps\n  | ScrollAnimatedSectionDataProps\n  | SplitBlockDataProps\n  | ContentfulTypedSysProps<'Unknown'>; // Placeholder __typename as custom components could be any string\n\nexport type PageDataBlockWithBackgroundColor = Extract<\n  PageDataBlock,\n  | BlockDataProps\n  | HeroDataProps\n  | LatestPostBlockDataProps\n  | SubNavigationDataProps\n  | SplitBlockDataProps\n>;\n\nexport interface PageDataProps extends ContentfulTypedSysProps<'Page'> {\n  title: string;\n  metas?: MetasDataProps;\n  banner?: Banner;\n  blocksCollection?: Items<PageDataBlock>;\n  footnotesCollection?: Items<FootnoteDataProps>;\n  collapseFootnotes?: boolean;\n  sideNavigation?: SideNavigationDataProps;\n  tileImage?: ImageDataProps;\n  backgroundColor?: BackgroundColor;\n  category?: Category;\n  backgroundMediaV2?: MediaDataProps;\n  footerView?: FooterView;\n  headerView?: HeaderView;\n  localizedIn?: string[];\n}\n\n// =================================================================================================\n// Page Navigation Fragment\n// =================================================================================================\n\nexport const pageNavigationFragment = gql`\n  fragment PageNavigationShallow on Page {\n    ...ContentfulSysId\n    sideNavigation {\n      ...ContentfulSysId\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\n// =================================================================================================\n// Page Query\n// =================================================================================================\n\nexport const pageAllQuery = gql`\n  query PageQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    page(preview: $preview, locale: $locale, id: $id) {\n      ...PageAll\n    }\n  }\n  ${fragments.all}\n`;\n\nexport interface PageAllDataProps {\n  page: PageDataProps;\n}\n\n// =================================================================================================\n// Page SiteMap Fragment\n// =================================================================================================\n/** Page Query optimized for generating site map data. */\nexport const pageSitemapFragment = gql`\n  fragment SiteMapPage on Page {\n    sys {\n      id\n    }\n    metas {\n      noIndex\n    }\n    localizedIn\n  }\n`;\n\n/** Page content model optimized for generating site map data. */\nexport interface PageSitemapData {\n  __typename: 'Page';\n  sys: {\n    id: string;\n  };\n  localizedIn?: string[];\n  metas?: {\n    noIndex?: boolean;\n  };\n}\n\n/** Allows querying multiple entries by sys id */\nexport const pageBlocksCollectionQuery = gql`\n  query PageBlocksCollectionQuery(\n    $preview: Boolean!\n    $locale: String!\n    $ids: [String]!\n    $limit: Int = 10\n  ) {\n    entryCollection(\n      preview: $preview\n      locale: $locale\n      where: { sys: { id_in: $ids } }\n      limit: $limit\n    ) {\n      items {\n        ...ContentfulSysId\n        ... on Block {\n          ...BlockAll\n        }\n        ... on BlockHero {\n          ...BlockHeroAll\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${blockAllFragment}\n  ${heroFragments.all}\n`;\n", "import { gql } from '@apollo/client';\nimport type { Criteria, Experiment } from '@snapchat/mw-contentful-schema';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { createExperimentFragmentNoAb } from '../Experiment/experimentQuery';\nimport { pageNavigationFragment } from '../Page/pageQuery';\nimport type { PageNavigationShallowDataProps } from '../Page/types';\n\nexport const pageSideNavbarQuery = gql`\n  query AllPageSideNavQuery($preview: Boolean!, $locale: String!, $limit: Int, $skip: Int) {\n    slugCollection(\n      limit: $limit\n      skip: $skip\n      preview: $preview\n      locale: $locale\n      where: { page_exists: true }\n    ) {\n      total\n      items {\n        ...ContentfulSysId\n        slug\n        page {\n          ...ExperimentOnPageLoadingPageNavigationShallow\n        }\n        unlistedCriteria {\n          ...CriteriaAll\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n  ${createExperimentFragmentNoAb('Page', 'PageNavigationShallow', pageNavigationFragment)}\n`;\n\nexport type PageNavigationData = {\n  slugCollection: {\n    total: number;\n    items: Array<\n      ContentfulTypedSysProps<'Slug'> & {\n        slug: string;\n        // NOTE: This is not a true experiment, but only the ExperimentDefaultReference.\n        // TODO: Fix the types. Currently we don't support experimentation on the side nav-level.\n        page: PageNavigationShallowDataProps | Experiment;\n        unlistedCriteria?: Criteria;\n      }\n    >;\n  };\n};\n", "import { cx } from '@emotion/css';\nimport { htmlEscape } from '@snapchat/core';\nimport type { FC } from 'react';\nimport { useEffect } from 'react';\nimport type { RouteProps } from 'react-router-dom';\nimport { useLocation } from 'react-router-dom';\n\nimport { Config } from '../../config';\nimport { LayoutContext } from '../../contexts/LayoutContext';\nimport { logWarning } from '../../helpers/logging';\nimport { Feature, useFeatureFlags } from '../FeatureFlags';\nimport { SideNavigationShallow } from '../SideNavigation';\nimport { hasSideNavCss, minHeightCss } from './Slug.styles';\nimport { SlugCollection } from './SlugCollection';\nimport { useSlugToNavMap } from './useSlugToNavMap';\n\nexport const Slug: FC<RouteProps> = () => {\n  const location = useLocation();\n  // NOTE: We don't use the useParams() hook here because we want to check\n  // the pathname exactly. Otherwise we run into issues like \"///foo\" not matching\n  // routes like \"/:slug*\", and router thinking it should be a homepage match.\n  // See https://jira.sc-corp.net/browse/WEBP-9117\n  const originalSlug = location.pathname.substring(1);\n  const slug = originalSlug === '' ? 'home' : htmlEscape(originalSlug);\n  const featureFlags = useFeatureFlags();\n\n  // TODO: Delete once we no longer need this functionality, after snapchat\n  // home is fully migrated to consumer web.\n  const shouldRedirectHome = featureFlags[Feature.HOME_REDIRECT] === 'true';\n\n  useEffect(() => {\n    if (shouldRedirectHome && originalSlug === 'home' && Config.isClient) {\n      const url = new URL(window.location.href);\n      url.pathname = '';\n      window.history.replaceState(null, '', url); // or pushState\n    }\n  }, [originalSlug, shouldRedirectHome]);\n\n  useEffect(() => {\n    window.scrollTo(0, 0);\n  }, [slug]);\n\n  const { sideNavMap, subNavMap } = useSlugToNavMap();\n\n  const hasSideNav = sideNavMap.has(slug);\n  const sideNavId = sideNavMap.get(slug)?.sys.id;\n  const hasSubNav = subNavMap.has(slug);\n  const subNavId = subNavMap.get(slug)?.sys.id;\n\n  if (sideNavId && subNavId) {\n    logWarning({\n      component: 'Slug',\n      message: `Having both a SideNav and a SubNav isn't supported.`,\n      context: { slug },\n    });\n  }\n\n  // NOTE: There can be only 1 <main> in the HTML and this is it.\n  // TODO: Technically, the Page should have the <main>, but SDS-M uses a regular <div>.\n  return (\n    <div\n      data-testid=\"mwp-slug\"\n      className={cx(\n        {\n          [hasSideNavCss]: hasSideNav,\n        },\n        minHeightCss\n      )}\n    >\n      <LayoutContext.Provider value={{ hasSideNav, hasSubNav }}>\n        {sideNavId && <SideNavigationShallow sys={{ id: sideNavId }} />}\n        <SlugCollection key={slug} slug={slug} />\n      </LayoutContext.Provider>\n    </div>\n  );\n};\n", "import { gql } from 'graphql-tag';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport { criteriaFragment } from '../Experiment';\n\n// TODO: get url from first level items so it allows first level links or sections\n// (not implemented in SDS)\n\nexport const fragments = {\n  all: gql`\n    fragment SideNavigationAll on SideNavigation {\n      ...ContentfulSysId\n      backgroundColor\n      mobileBackgroundColor\n      navigatorItemsCollection(limit: 14) {\n        items {\n          ...ContentfulSysId\n          title {\n            json\n          }\n          hideCriteria {\n            ...CriteriaAll\n          }\n          navigatorItemsCollection(limit: 15) {\n            items {\n              ...ContentfulSysId\n              title {\n                json\n              }\n              url\n              hideCriteria {\n                ...CriteriaAll\n              }\n            }\n          }\n        }\n      }\n    }\n    ${criteriaFragment}\n    ${contentfulSysIdFragment}\n  `,\n};\n\nexport const query = gql`\n  query SideNavigationQuery($preview: Boolean!, $locale: String!, $id: String!) {\n    sideNavigation(preview: $preview, locale: $locale, id: $id) {\n      ...SideNavigationAll\n    }\n  }\n  ${fragments.all}\n`;\n", "import { documentToPlainTextString } from '@contentful/rich-text-plain-text-renderer';\nimport type {\n  NavigatorItem as NavigatorItemType,\n  SideNavigation as SideNavigationType,\n} from '@snapchat/mw-contentful-schema';\nimport type {\n  SideNavigationItemProps,\n  SideNavigationSectionProps,\n} from '@snapchat/snap-design-system-marketing';\nimport { SideNavigation as SideNavigationSDS } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { matchPath, useLocation } from 'react-router-dom';\n\nimport type { ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { isContentfulSysProps } from '../../utils/contentful';\nimport { getContentfulInspectorProps } from '../../utils/contentful/getContentfulInspectorProps';\nimport { useExperiment } from '../Experiment';\nimport type { NavigatorItemWithChildrenData } from '../Header/headerQuery';\nimport { query } from './query';\nimport { stickToHeaderCss } from './styles';\nimport type {\n  SideNavigationDataHandlerProps,\n  SideNavigationDataProps,\n  SideNavigationProps,\n} from './types';\n\nexport const SideNavigation: FC<SideNavigationDataProps> = ({\n  navigatorItemsCollection,\n  backgroundColor,\n  mobileBackgroundColor,\n  sys,\n}) => {\n  const { pathname } = useLocation();\n  const { checkCriteria } = useExperiment();\n\n  const isUrlCurrent = (url: string) => {\n    const match = matchPath(url, { path: pathname, exact: true });\n    return match ? match.isExact : false;\n  };\n\n  const isVisible = (item: NavigatorItemWithChildrenData) => checkCriteria(item.hideCriteria);\n\n  const items: SideNavigationSectionProps[] = navigatorItemsCollection.items\n    .filter(isVisible)\n    .map(section => {\n      const { titleDataset } = getContentfulInspectorProps<NavigatorItemType>({\n        entryId: section.sys.id,\n        fieldIds: ['title'],\n      });\n\n      return {\n        title: section.title ? documentToPlainTextString(section.title.json) : '',\n        links: section.navigatorItemsCollection.items.filter(isVisible).map(link => {\n          const { titleDataset: nestedTitleDataset } =\n            getContentfulInspectorProps<NavigatorItemType>({\n              entryId: link.sys.id,\n              fieldIds: ['title'],\n            });\n\n          const item: SideNavigationItemProps = {\n            title: link.title ? documentToPlainTextString(link.title.json) : '',\n            url: link.url ?? ''!,\n            dataset: nestedTitleDataset,\n          };\n\n          return item;\n        }),\n        dataset: titleDataset,\n      };\n    });\n\n  const { contentfulDescriptionDataset } = getContentfulInspectorProps<SideNavigationType>({\n    entryId: sys.id,\n    fieldIds: ['contentfulDescription'],\n  });\n\n  return (\n    <SideNavigationSDS\n      className={stickToHeaderCss}\n      items={items}\n      isUrlCurrent={isUrlCurrent}\n      dataset={contentfulDescriptionDataset}\n      backgroundColor={backgroundColor}\n      mobileBackgroundColor={mobileBackgroundColor}\n    />\n  );\n};\n\nexport const SideNavigationShallow: FC<SideNavigationProps> = props => {\n  const id = isContentfulSysProps(props) ? props.sys.id : undefined;\n  const { data } = useContentfulQuery<SideNavigationDataHandlerProps, ContentfulIdVariable>(query, {\n    skip: !id,\n    variables: { id },\n  });\n\n  if (!data) return null;\n  return <SideNavigation {...data.sideNavigation} />;\n};\n\nSideNavigationShallow.displayName = 'SideNavigation';\n", "import { css } from '@emotion/css';\nimport { mobileMediaQuery, nonMobileMediaQuery } from '@snapchat/snap-design-system-marketing';\n\nexport const stickToHeaderCss = css`\n  ${nonMobileMediaQuery} {\n    & > * {\n      position: sticky;\n      top: var(--total-header-height);\n    }\n  }\n\n  ${mobileMediaQuery} {\n    position: sticky;\n    top: var(--total-header-height);\n  }\n`;\n", "import head from 'lodash/head.js';\nimport type { FC } from 'react';\n\nimport { Config } from '../../config';\nimport { logEvent, SubscribedEventType } from '../../helpers/logging';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { NoMatch } from '../../pages/NoMatch';\nimport type { ReplacementData } from '../Experiment/useExperiments';\nimport { useExperiment } from '../Experiment/useExperiments';\nimport type { PageShallowDataProps } from '../Page';\nimport type { PageAssetDataProps } from '../Page/pageAssetQuery';\nimport { PageShallow } from '../Page/PageShallow';\nimport { Redirect } from '../Redirect/Redirect';\nimport type { RedirectDataProps } from '../Redirect/redirectQuery';\nimport type { SlugCollectionData } from './slugCollectionQuery';\nimport { slugCollectionQuery } from './slugCollectionQuery';\nimport { SlugContext } from './SlugContext';\n\n// Note: this needs the slash prepended to override multi level paths\nconst notFoundPath = '/404';\n\nexport const SlugCollection: FC<{ slug: string }> = props => {\n  const { decideExperiment } = useExperiment();\n\n  const { data } = useContentfulQuery<SlugCollectionData, { slug: string }>(slugCollectionQuery, {\n    variables: { slug: props.slug },\n  });\n\n  if (!data) {\n    return null; // Loading.\n  }\n\n  const slugMatch = head(data?.slugCollection.items);\n  const pageOrExperiment = slugMatch?.page;\n\n  let page: PageShallowDataProps | PageAssetDataProps | RedirectDataProps;\n  let replacements: Partial<Record<string, ReplacementData>> | undefined;\n\n  if (pageOrExperiment?.__typename === 'Experiment') {\n    const experimentResult = decideExperiment<PageShallowDataProps>(pageOrExperiment, {\n      logImpression: true,\n    });\n\n    if (Config.isClient) {\n      const mainElement = document.getElementsByTagName('main')[0]!;\n\n      experimentResult?.experimentId &&\n        mainElement.setAttribute('data-experiment-id', experimentResult.experimentId);\n\n      experimentResult.variantId &&\n        mainElement.setAttribute('data-experiment-arm-id', experimentResult.variantId);\n    }\n\n    page = experimentResult.decision;\n    replacements = experimentResult.replacements;\n  } else {\n    page = pageOrExperiment as typeof page;\n  }\n\n  // Expose page level experiment arm id so release tests are aware of what experiment\n  // (if any) was chosen\n\n  if (!page || !slugMatch) {\n    logEvent({\n      eventCategory: 'NoMatch',\n      eventAction: '404-redirect',\n      eventLabel: props.slug,\n      subscribedEventType: SubscribedEventType.INTERNAL,\n    });\n\n    return <Redirect path={notFoundPath} />;\n  }\n\n  if (page.__typename === 'PageAsset') {\n    if (page.media?.url) {\n      // TODO: we have to click back twice now because we are on the same tab.\n      // Need a better implementation to render \"go back to previous page\" with\n      // message that a page was opened on another tab. https://jira.sc-corp.net/browse/ENTWEB-8682\n      return <Redirect path={page.media.url} newTab={false} />;\n    }\n\n    return <NoMatch />;\n  }\n\n  if (page.__typename === 'Redirect') {\n    logEvent({\n      eventCategory: 'Redirect',\n      eventAction: 'page-redirect',\n      eventLabel: page.slug?.slug ?? page.externalUrl,\n      subscribedEventType: SubscribedEventType.INTERNAL,\n    });\n\n    if (page.slug?.slug) {\n      // redirect to home\n      if (page.slug.slug === 'home') {\n        return <Redirect path={''} newTab={false} isPermanent={page.isPermanent} />;\n      }\n\n      // Adding \"/\" for the onRedirect in Redirects\n      return <Redirect path={`/${page.slug.slug}`} newTab={false} isPermanent={page.isPermanent} />;\n    }\n\n    if (page.externalUrl) {\n      return <Redirect path={page.externalUrl} newTab={false} isPermanent={page.isPermanent} />;\n    }\n\n    return <NoMatch />;\n  }\n\n  let publishedAt: Date | undefined = undefined;\n\n  if (slugMatch.sys.publishedAt) {\n    publishedAt = new Date(slugMatch.sys.publishedAt);\n  }\n\n  const postedDateStr = slugMatch.postedDate ?? slugMatch.sys.firstPublishedAt;\n  const postedDate = postedDateStr ? new Date(postedDateStr) : undefined;\n  return (\n    <SlugContext.Provider\n      value={{\n        publishedAt,\n        postedDate,\n        isShareable: slugMatch.shareable ?? false,\n        replacements,\n      }}\n    >\n      <PageShallow {...page} />\n    </SlugContext.Provider>\n  );\n};\n\nSlugCollection.displayName = 'SlugCollection';\n", "import type { FC } from 'react';\nimport { useContext } from 'react';\nimport { __RouterContext } from 'react-router';\n\nimport { useExperiment } from '../../components/Experiment';\nimport type { PageShallowDataProps } from '../../components/Page';\nimport { PageShallow } from '../../components/Page/PageShallow';\nimport { SlugContext } from '../../components/Slug/SlugContext';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport { NoMatchDefault } from './NoMatchDefault';\nimport type { Custom404CollectionData } from './query';\nimport { custom404CollectionQuery } from './query';\n\nexport const NoMatch: FC = () => {\n  // For SSR we should set the status code to 404 so it can still gives\n  // an http error code. Based on https://v5.reactrouter.com/web/guides/server-rendering/404-401-or-any-other-status\n  const { staticContext } = useContext(__RouterContext);\n  const { data } = useContentfulQuery<Custom404CollectionData>(custom404CollectionQuery);\n  const { decideExperiment } = useExperiment();\n\n  if (staticContext) {\n    staticContext.statusCode = 404;\n  }\n\n  if (!data) {\n    return null; // Loading\n  }\n\n  const custom404OrExperiment = data.slugCollection.items?.[0]?.page;\n\n  if (!custom404OrExperiment) {\n    return <NoMatchDefault />;\n  }\n\n  if (custom404OrExperiment.__typename === 'Page') {\n    return (\n      <section data-testid=\"mwp-404-page\">\n        <PageShallow {...custom404OrExperiment} />\n      </section>\n    );\n  }\n\n  const experimentResult = decideExperiment<PageShallowDataProps>(custom404OrExperiment, {\n    logImpression: true,\n  });\n\n  return (\n    <SlugContext.Provider\n      value={{\n        isShareable: false,\n        replacements: experimentResult.replacements,\n      }}\n    >\n      <section data-testid=\"mwp-404-page\">\n        <PageShallow {...experimentResult.decision} />\n      </section>\n    </SlugContext.Provider>\n  );\n};\n\nNoMatch.displayName = 'NoMatch';\n", "import { useApolloClient } from '@apollo/client';\nimport { parseError } from '@snapchat/core';\nimport type { Banner } from '@snapchat/mw-contentful-schema';\nimport type { FC } from 'react';\nimport { useContext, useRef } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { Config } from '../../config';\nimport { logWarning } from '../../helpers/logging';\nimport type { ContentfulIdsVariable, ContentfulIdVariable } from '../../hooks/useContentfulQuery';\nimport { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport { contentfulTypeQueries } from '../../utils/contentful/contentfulTypeQueries';\nimport { getQueryName } from '../../utils/contentful/getQueryName';\nimport type { BlockDataProps, BlockShallowWithContentIds } from '../Block';\nimport type { HeroDataProps } from '../Hero/types';\nimport { SlugContext } from '../Slug/SlugContext';\nimport { Page } from './Page';\nimport type { PageShallowDataProps } from './pageQuery';\nimport { pageAllQuery, pageBlocksCollectionQuery } from './pageQuery';\nimport type { PageDataHandlerProps } from './types';\n\nexport interface PageBlocksCollectionData {\n  entryCollection: {\n    items: Array<BlockDataProps | HeroDataProps | Banner>;\n  };\n}\n\nexport const PageShallow: FC<PageShallowDataProps> = props => {\n  const { data } = useContentfulQuery<PageDataHandlerProps, ContentfulIdVariable>(pageAllQuery, {\n    variables: { id: props.sys.id },\n  });\n  const prefetchedIds = useRef(new Set<string>());\n  const apolloClient = useApolloClient();\n  const { currentLocale, getCurrentUrl } = useContext(AppContext);\n  const { replacements } = useContext(SlugContext);\n\n  /** Sys IDs of the entries we need to fetch data for since they are replacing something */\n  const replacementIds = replacements\n    ? props.blocksCollection.items.reduce<string[]>((acc, block) => {\n        if (replacements?.[block.sys.id]) {\n          acc.push(replacements[block.sys.id]?.sys.id ?? '');\n        }\n\n        return acc;\n      }, [])\n    : [];\n\n  /** Data of the replacement entries. We skip this if there are no replacements */\n  const replacementData = useContentfulQuery<PageBlocksCollectionData, ContentfulIdsVariable>(\n    pageBlocksCollectionQuery,\n    {\n      skip: !replacementIds.length,\n      variables: {\n        ids: replacementIds,\n      },\n    }\n  );\n\n  /** Kick off a single query to contentful to seed the cache for further rendering. */\n  function preloadItem(preload: ContentfulSysProps) {\n    const query = contentfulTypeQueries[preload.__typename!];\n\n    if (!query) {\n      logWarning({\n        component: 'PageShallow',\n        message: `Cannot preload item \"${preload.__typename}\". Add it to 'contentfulTypeQueries'`,\n        context: {\n          type: preload.__typename,\n        },\n      });\n\n      return;\n    }\n    const queryId = `${getQueryName(query)}:${preload.sys.id}`;\n\n    if (prefetchedIds.current.has(queryId)) {\n      return;\n    }\n\n    // Note: we don't await this here. We don't do anything with the return except initial this\n    // request sooner rather than later.\n    void apolloClient\n      .query({\n        query,\n        context: { currentUrl: getCurrentUrl() },\n        variables: { id: preload.sys.id, preview: Config.isPreview, locale: currentLocale },\n      })\n      .catch(error => {\n        logWarning({\n          component: 'PageShallow',\n          message: `Failed to preload item \"${preload.__typename}\" due to error: ${\n            parseError(error).message\n          }`,\n          context: {\n            type: preload.__typename,\n          },\n        });\n      });\n    prefetchedIds.current.add(queryId);\n  }\n\n  /** Loops through the ids in the shallow page content and triggers a preload on them. */\n  function preloadPageData() {\n    for (const shallowBlock of props.blocksCollection.items) {\n      // The list of supported types is defined in <Block>\n      // TODO: generate list outside of this pageData function so typings are less weird\n      if (shallowBlock.__typename === 'Block') {\n        let finalBlock = shallowBlock as BlockShallowWithContentIds;\n\n        if (replacements?.[shallowBlock.sys.id]?.sys.id) {\n          finalBlock = {\n            ...shallowBlock,\n            sys: { id: replacements[shallowBlock.sys.id]?.sys.id },\n          } as BlockShallowWithContentIds;\n        }\n\n        // The block will get loaded as a part of the page, but we can preload the contents.\n        for (const blockItem of finalBlock.contentsCollection.items) {\n          preloadItem(blockItem);\n        }\n      } else {\n        // TODO: Handle custom components.\n        preloadItem(shallowBlock);\n      }\n    }\n  }\n\n  // If we don't have the base page data OR the replacement data hasn't resolved yet\n  // we just preload page data\n  if (!data || replacementData.loading) {\n    preloadPageData();\n    return null;\n  }\n\n  let finalBanner = data.page.banner;\n  let finalBlocksCollection = data.page.blocksCollection;\n\n  // handle the banner swapping here\n  if (replacements && data.page.banner && data.page.banner.sys.id in replacements) {\n    finalBanner = replacementData.data?.entryCollection.items.find(entry => {\n      if (!data.page.banner) return false;\n      return entry.sys.id === replacements[data.page.banner.sys.id]?.sys.id;\n    }) as Banner | undefined;\n  }\n\n  // handle the block swapping here\n  if (data.page.blocksCollection && replacements) {\n    const blocksCollectionCopy = [...data.page.blocksCollection.items];\n\n    for (let i = 0; i < blocksCollectionCopy.length; i++) {\n      const blockId = blocksCollectionCopy[i]?.sys?.id;\n\n      if (blockId && blockId in replacements) {\n        const replacement = replacementData.data?.entryCollection.items.find(entry => {\n          return entry.sys.id === replacements[blockId]?.sys.id;\n        });\n\n        if (replacement === undefined) {\n          blocksCollectionCopy.splice(i, 1);\n        } else if (replacement && replacement.__typename !== 'Banner') {\n          blocksCollectionCopy[i] = replacement as BlockDataProps | HeroDataProps;\n        }\n      }\n    }\n\n    finalBlocksCollection = { items: blocksCollectionCopy };\n  }\n\n  return <Page {...data.page} blocksCollection={finalBlocksCollection} banner={finalBanner} />;\n};\n\nPageShallow.displayName = 'PageShallow';\n", "import type { DocumentNode } from 'graphql';\n\nimport { queries as accordionQueries } from '../../components/Accordion';\nimport { query as animatedAccordionQuery } from '../../components/AnimatedAccordion/query';\nimport { breakQuery } from '../../components/Break';\nimport { carouselV3Query } from '../../components/CarouselV3';\nimport { queries as contentQueries } from '../../components/Content';\nimport { queries as formQueries } from '../../components/Form';\nimport { lazyGalleryQuery } from '../../components/Gallery';\nimport { blockHeroQuery } from '../../components/Hero/query';\nimport { latestPostBlockQuery } from '../../components/LatestPostBlock';\nimport { query as mosaicQuery } from '../../components/Mosaic';\nimport { query as mvbQuery } from '../../components/MultiVideoBlock/query';\nimport { subNavigationQuery } from '../../components/SubNavigation/query';\nimport { queries as tabQueries } from '../../components/Tabs';\nimport { queries as barQueries } from '../../components/visualizations/BarChart';\nimport { chartToggleQuery } from '../../components/visualizations/ChartToggle';\nimport { queries as geoQueries } from '../../components/visualizations/GeoMap';\nimport { queries as lineQueries } from '../../components/visualizations/LineChart';\nimport { queries as vizQueries } from '../../components/visualizations/MultiVisualization';\nimport { queries as tableQueries } from '../../components/visualizations/Table';\nimport { query as arDownloadFormBlockQuery } from '../../sites/ar/components/ArDownloadForm/arDownloadFormBlockQuery';\nimport { avalonFormBlockQuery } from '../../sites/avalon/components/AvalonFormBlock/AvalonFormBlock.query';\nimport { avalonProductHeroQuery } from '../../sites/avalon/components/AvalonProductHero/AvalonProductHero.query';\nimport { avalonScrollSectionQuery } from '../../sites/avalon/components/AvalonScrollSection/AvalonScrollSection.query';\nimport { fixedPositionBlockQuery } from '../../sites/avalon/components/FixedPositionBlock/FixedPositionBlock.query';\nimport { mosaicGridBlockQuery } from '../../sites/avalon/components/MosaicGridBlock/MosaicGridBlock.query';\nimport { valuePropsBlockQuery } from '../../sites/avalon/components/ValuePropsBlock/ValuePropsBlock.query';\nimport { liveEventQuery } from '../../sites/experience/components/LiveEvent/liveEventQuery';\nimport { latestGalleryCardHeroQuery } from '../../sites/newsroom/components/LatestGalleryCardHero';\n\n/**\n * Contentful queries that can be selected by the content type (__typename) with a variable \"id\"\n * being the sys id.\n */\nexport const contentfulTypeQueries: Record<string, DocumentNode | undefined> = {\n  LatestPosts: latestPostBlockQuery,\n  MultiVideoBlock: mvbQuery,\n  Content: contentQueries.all,\n  CarouselV3: carouselV3Query,\n  Gallery: lazyGalleryQuery,\n  Tabs: tabQueries.all,\n  Mosaic: mosaicQuery.all,\n  Form: formQueries.all,\n  ChartToggle: chartToggleQuery,\n  BarChart: barQueries.all,\n  LineChart: lineQueries.all,\n  GeoVisualization: geoQueries.all,\n  VisualizationSelector: vizQueries.all,\n  TableVisualization: tableQueries.all,\n  Accordion: accordionQueries.all,\n  BlockHero: blockHeroQuery,\n  Break: breakQuery,\n  SubNavigation: subNavigationQuery,\n  LatestGalleryCardHero: latestGalleryCardHeroQuery,\n  AnimatedAccordion: animatedAccordionQuery,\n  AvalonProductHero: avalonProductHeroQuery,\n  AvalonFormBlock: avalonFormBlockQuery,\n  MosaicGridBlock: mosaicGridBlockQuery,\n  AvalonScrollSection: avalonScrollSectionQuery,\n  FixedPositionBlock: fixedPositionBlockQuery,\n  ValuePropsBlock: valuePropsBlockQuery,\n  ArDownloadFormBlock: arDownloadFormBlockQuery,\n  LiveEvent: liveEventQuery,\n};\n", "import type { DocumentNode } from '@apollo/client/core';\nimport type { OperationDefinitionNode } from 'graphql';\n\n/** Returns name of an apollo query for debugging. */\nexport function getQueryName(query: DocumentNode): string {\n  const sourceName = query.loc?.source.name;\n  const definitionName = query.definitions\n    .filter(def => def.kind === 'OperationDefinition')\n    .map(def => def as OperationDefinitionNode)\n    .find(def => def.operation === 'query')?.name?.value;\n\n  return definitionName ?? sourceName ?? 'Anonymous';\n}\n", "import { css, cx } from '@emotion/css';\nimport { getBackgroundClassName, MessageContext } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\nimport { useContext } from 'react';\n\nimport { backgroundColor, containerCss, headingCss, minHeightCss } from './styles';\n\nconst ghostCss = css`\n  max-width: 500px;\n  width: 80%;\n`;\n\nexport const NoMatchDefault: FC = () => {\n  // Fetch localized content from contentful `global-components` space's Messages collection.\n  const { formatMessage } = useContext(MessageContext);\n  const title = formatMessage({ id: 'noMatch.title', defaultMessage: 'Well, this is awkward!' });\n  const subtitle = formatMessage({\n    id: 'noMatch.subtitle',\n    defaultMessage: 'We could not find what you were looking for.',\n  });\n\n  return (\n    <div\n      className={cx(getBackgroundClassName(backgroundColor), containerCss, minHeightCss)}\n      data-testid=\"mwp-404-page\"\n    >\n      <h1 className={headingCss}>{title}</h1>\n      <h2>{subtitle}</h2>\n      <img className={ghostCss} src=\"/images/404.png\" alt=\"404 Ghost Image\" />\n    </div>\n  );\n};\n\nNoMatchDefault.displayName = 'NoMatchDefault';\n", "import { css } from '@emotion/css';\nimport { BackgroundColor, m } from '@snapchat/snap-design-system-marketing';\n\nimport { Config } from '../../config';\nimport { mediaQuery } from '../../styles/mediaQueries';\n\nexport const backgroundColor = Config.theme?.defaultPageBackgroundColor ?? BackgroundColor.White;\n\nexport const containerCss = css`\n  align-items: center;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  background-color: ${m('--background-color')};\n  color: ${m('--foreground-color')};\n  min-height: max(600px, calc(100vh - var(--total-header-height)));\n  padding: ${m('--spacing-xxl')};\n  text-align: center;\n  width: 100%;\n`;\n\nexport const headingCss = css`\n  margin-bottom: 10px;\n\n  ${mediaQuery.over1024_desktop_medium} {\n    font-size: 5rem;\n    line-height: 5.5rem;\n  }\n`;\n\nexport const minHeightCss = css`\n  min-height: calc(100vh - var(--total-header-height));\n  min-height: calc(100dvh - var(--total-header-height));\n`;\n", "import { gql } from '@apollo/client';\nimport type { Experiment } from '@snapchat/mw-contentful-schema';\n\nimport { createExperimentFragmentWithAbReplacements } from '../../components/Experiment';\nimport type { PageShallowDataProps } from '../../components/Page';\nimport { pageFragmentShallow } from '../../components/Page';\nimport type { Items } from '../../types/Items';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\nconst custom404Fragment = gql`\n  fragment Custom404 on Slug {\n    ...ContentfulSysId\n    page {\n      ...ExperimentOnPageLoadingPageShallow\n    }\n  }\n  ${createExperimentFragmentWithAbReplacements('Page', 'PageShallow', pageFragmentShallow)}\n  ${contentfulSysIdFragment}\n`;\n\nexport const custom404CollectionQuery = gql`\n  query Custom404CollectionQuery($preview: Boolean!, $locale: String!) {\n    slugCollection(preview: $preview, locale: $locale, where: { slug: \"not-found\" }, limit: 1) {\n      items {\n        ...Custom404\n      }\n    }\n  }\n  ${custom404Fragment}\n`;\n\ninterface Custom404Data {\n  page: PageShallowDataProps | Experiment;\n}\n\nexport interface Custom404CollectionData {\n  slugCollection: Items<Custom404Data>;\n}\n", "import { css } from '@emotion/css';\nimport type { FC } from 'react';\nimport { useContext, useEffect } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { Config } from '../../config';\n\nconst redirectContainerCss = css`\n  padding: 20px;\n`;\n\n/**\n * Redirect component that will use the redirect function and therefore function for both server and\n * client, not just client.\n */\nexport const Redirect: FC<{ path: string; newTab?: boolean; isPermanent?: boolean }> = ({\n  path,\n  newTab,\n  isPermanent,\n}) => {\n  const { onRedirect } = useContext(AppContext);\n\n  // On the server, useEffect doesn't fire, so we need to immediately call this\n  // function to record the new URL in the router.\n  if (!Config.isClient) {\n    onRedirect?.(path, { isPermanent, newTab });\n  }\n\n  useEffect(() => {\n    onRedirect?.(path, { isPermanent, newTab });\n  }, [onRedirect, path, newTab, isPermanent]);\n\n  return (\n    <section className={redirectContainerCss}>\n      Redirecting to <a href={path}>{path}</a>.\n    </section>\n  );\n};\n", "import { gql } from '@apollo/client';\n\nimport type { ContentfulTypedSysProps } from '../../types/contentful';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\n// =================================================================================================\n// Redirect Fragment\n// =================================================================================================\n\nexport interface RedirectDataProps extends ContentfulTypedSysProps<'Redirect'> {\n  externalUrl?: string;\n  isPermanent?: boolean;\n  slug?: ContentfulTypedSysProps<'Slug'> & { slug: string };\n}\n\nexport const redirectFragment = gql`\n  fragment Redirect on Redirect {\n    ...ContentfulSysId\n    externalUrl\n    isPermanent\n    slug {\n      sys {\n        id\n      }\n      slug\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\n// =================================================================================================\n// Redirect SiteMap Fragment\n// =================================================================================================\nexport const redirectSitemapFragment = gql`\n  fragment SiteMapRedirect on Redirect {\n    ...ContentfulSysId\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport type RedirectSitemapData = ContentfulTypedSysProps<'Redirect'>;\n", "import { gql } from '@apollo/client';\nimport type { Criteria, Experiment } from '@snapchat/mw-contentful-schema';\n\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\nimport type { ExperimentSitemapData } from '../Experiment/experimentQuery';\nimport {\n  createExperimentFragmentNoAb,\n  createExperimentFragmentWithAbReplacements,\n  criteriaFragment,\n  experimentSitemapFragment,\n} from '../Experiment/experimentQuery';\nimport type { PageAssetDataProps } from '../Page/pageAssetQuery';\nimport { pageAssetFragment } from '../Page/pageAssetQuery';\nimport type { PageShallowDataProps, PageSitemapData } from '../Page/pageQuery';\nimport { pageFragmentShallow, pageSitemapFragment } from '../Page/pageQuery';\nimport type { RedirectDataProps, RedirectSitemapData } from '../Redirect/redirectQuery';\nimport { redirectFragment, redirectSitemapFragment } from '../Redirect/redirectQuery';\n\n// =================================================================================================\n// Slug Shallow Fragment\n// =================================================================================================\n\nexport interface SlugShallowData {\n  __typename: 'Slug';\n  sys: {\n    id: string;\n    publishedAt?: string;\n    firstPublishedAt?: string;\n  };\n  slug: string;\n  page: PageShallowDataProps | Experiment | PageAssetDataProps | RedirectDataProps;\n  criteria?: Criteria;\n  shareable?: boolean;\n  postedDate?: string;\n}\n\nexport const slugShallowFragment = gql`\n  fragment Slug on Slug {\n    sys {\n      id\n      publishedAt\n      firstPublishedAt\n    }\n    __typename\n    slug\n    postedDate\n    page {\n      ...PageAssetAll\n      ...ExperimentOnPageLoadingPageShallow\n      ...ExperimentOnRedirectLoadingRedirect\n      ...Redirect\n    }\n    unlistedCriteria {\n      ...CriteriaAll\n    }\n    shareable\n  }\n  ${createExperimentFragmentWithAbReplacements('Page', 'PageShallow', pageFragmentShallow)}\n  ${createExperimentFragmentNoAb('Redirect', 'Redirect', redirectFragment)}\n  ${contentfulSysIdFragment}\n  ${pageAssetFragment}\n  ${redirectFragment}\n`;\n\n// =================================================================================================\n// Slug Sitemap Fragment\n// =================================================================================================\n\nexport const slugSitemapFragment = gql`\n  fragment SiteMapSlug on Slug {\n    sys {\n      id\n      firstPublishedAt\n    }\n    __typename\n    postedDate\n    slug\n    page {\n      ...SiteMapPage\n      ...SiteMapExperiment\n      ...SiteMapRedirect\n    }\n    unlistedCriteria {\n      ...CriteriaAll\n    }\n  }\n  ${pageSitemapFragment}\n  ${experimentSitemapFragment}\n  ${redirectSitemapFragment}\n  ${criteriaFragment}\n`;\n\n/** Slug content model optimized for generating site map data. */\nexport interface SlugSitemapData {\n  __typename: 'Slug';\n  sys: {\n    id: string;\n    firstPublishedAt?: string;\n  };\n  postedDate?: string;\n  slug: string;\n  page?: PageSitemapData | ExperimentSitemapData | RedirectSitemapData;\n  unlistedCriteria?: Criteria;\n}\n", "import { gql } from '@apollo/client';\n\nimport type { Items } from '../../types/Items';\nimport type { SlugShallowData } from './slugQuery';\nimport { slugShallowFragment } from './slugQuery';\n\nexport const slugCollectionQuery = gql`\n  query SlugCollectionQuery($preview: Boolean!, $locale: String!, $slug: String!) {\n    slugCollection(preview: $preview, locale: $locale, where: { slug: $slug }, limit: 1) {\n      total\n      items {\n        ...Slug\n      }\n    }\n  }\n  ${slugShallowFragment}\n`;\n\nexport interface SlugCollectionData {\n  slugCollection: Items<SlugShallowData>;\n}\n", "import { gql } from '@apollo/client';\n\nimport type { ContentfulSysProps, ContentfulTypedSysProps } from '../../types/contentful';\nimport type { Items } from '../../types/Items';\nimport { contentfulSysIdFragment } from '../../utils/contentful/contentfulQuery';\n\n// =================================================================================================\n// Pages with SubNavigation or SideNavigation\n// =================================================================================================\n\nexport const pagesWithSubOrSideNavQuery = gql`\n  query PagesWithSubOrSideNavQuery($preview: Boolean!) {\n    pageCollection(\n      locale: \"en-US\" # Always en-US because \"linkedFrom\" do not work in other languages.\n      preview: $preview\n      where: { sideNavigation_exists: true }\n      limit: 500\n    ) {\n      total\n      items {\n        sideNavigation {\n          ...ContentfulSysId\n        }\n        linkedFrom {\n          entryCollection {\n            total\n            items {\n              ...ContentfulSysId\n            }\n          }\n        }\n        ...ContentfulSysId\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport interface PagesWithSubOrSideNavData {\n  pageCollection: Items<\n    ContentfulTypedSysProps<'Page'> & {\n      sideNavigation: ContentfulSysProps;\n      subNavigation: ContentfulSysProps;\n      linkedFrom: {\n        entryCollection: Items<ContentfulSysProps>;\n      };\n    }\n  >;\n}\n\n// =================================================================================================\n// Experiments By Ids\n// =================================================================================================\n\nexport const experimentsByIdsLinkingToSlugs = gql`\n  query ExperimentsByIdsLinkingToSlugsQuery($preview: Boolean!, $ids: [String]!) {\n    experimentCollection(\n      locale: \"en-US\" # Always en-US because \"linkedFrom\" do not work in other languages.\n      preview: $preview\n      where: { sys: { id_in: $ids } }\n      limit: 500\n    ) {\n      total\n      items {\n        ...ContentfulSysId\n        linkedFrom {\n          entryCollection {\n            total\n            items {\n              ...ContentfulSysId\n            }\n          }\n        }\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport interface ExperimentsByIdsLinkingToSlugsData {\n  experimentCollection: Items<\n    ContentfulTypedSysProps<'Experiment'> & {\n      linkedFrom: {\n        entryCollection: Items<ContentfulSysProps>;\n      };\n    }\n  >;\n}\n\n// =================================================================================================\n// Slugs by Ids\n// =================================================================================================\nexport const slugsByIdsQuery = gql`\n  query SlugCollectionByIdQuery($preview: Boolean!, $locale: String!, $ids: [String]!) {\n    slugCollection(\n      locale: $locale\n      preview: $preview\n      limit: 500\n      where: { sys: { id_in: $ids } }\n    ) {\n      total\n      items {\n        ...ContentfulSysId\n        slug\n      }\n    }\n  }\n  ${contentfulSysIdFragment}\n`;\n\nexport interface SlugsByIdsData {\n  slugCollection: Items<\n    ContentfulTypedSysProps<'Slug'> & {\n      slug: string;\n    }\n  >;\n}\n", "import { useContentfulQuery } from '../../hooks/useContentfulQuery';\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport type {\n  ExperimentsByIdsLinkingToSlugsData,\n  PagesWithSubOrSideNavData,\n  SlugsByIdsData,\n} from './slugNavigationQuery';\nimport {\n  experimentsByIdsLinkingToSlugs,\n  pagesWithSubOrSideNavQuery,\n  slugsByIdsQuery,\n} from './slugNavigationQuery';\n\ninterface SlugToNavMap {\n  sideNavMap: Map<string, ContentfulSysProps>;\n  subNavMap: Map<string, ContentfulSysProps>;\n}\n\n/**\n * Looks up maps from /slug to the ids of SideNavigation and SubNavigation.\n *\n * Works even through experiments.\n *\n * Done as a reverse lookup to avoid loading ALL slugs which is slow on sites like forbusiness.\n */\nexport function useSlugToNavMap(): SlugToNavMap {\n  const sideNavMap = new Map<string, ContentfulSysProps>();\n  const subNavMap = new Map<string, ContentfulSysProps>();\n\n  const pageToSideNav = new Map<string, ContentfulSysProps>();\n  const pageToSubNav = new Map<string, ContentfulSysProps>();\n\n  const slugIdToSideNav = new Map<string, ContentfulSysProps>();\n  const slugIdToSubNav = new Map<string, ContentfulSysProps>();\n\n  const experimentIdToSideNav = new Map<string, ContentfulSysProps>();\n  const experimentIdToSubNav = new Map<string, ContentfulSysProps>();\n\n  // STEP 1: Find all pages with navigation bars (Sub or Side).\n\n  const { data: pagesWithNav } = useContentfulQuery<PagesWithSubOrSideNavData>(\n    pagesWithSubOrSideNavQuery\n  );\n\n  for (const page of pagesWithNav?.pageCollection.items ?? []) {\n    page.sideNavigation && pageToSideNav.set(page.sys.id, page.sideNavigation);\n    page.subNavigation && pageToSubNav.set(page.sys.id, page.subNavigation);\n\n    for (const parent of page.linkedFrom.entryCollection.items) {\n      // if a page is referenced from an archive slug it will shop up as undefined in linkedFrom\n      // so we need to check here so staging sites don't break. doesn't happen when preview=false\n      if (!parent) continue;\n\n      switch (parent.__typename) {\n        case 'Experiment': {\n          page.sideNavigation && experimentIdToSideNav.set(parent.sys.id, page.sideNavigation);\n          page.subNavigation && experimentIdToSubNav.set(parent.sys.id, page.subNavigation);\n          break;\n        }\n\n        case 'Slug': {\n          page.sideNavigation && slugIdToSideNav.set(parent.sys.id, page.sideNavigation);\n          page.subNavigation && slugIdToSubNav.set(parent.sys.id, page.subNavigation);\n          break;\n        }\n      }\n    }\n  }\n\n  // STEP 2: Lookup slug ids for experiments\n\n  const experimentIds = new Set<string>([\n    ...experimentIdToSideNav.keys(),\n    ...experimentIdToSubNav.keys(),\n  ]);\n  const { data: slugIdsFromExperiments } = useContentfulQuery<\n    ExperimentsByIdsLinkingToSlugsData,\n    { ids: string[] }\n  >(experimentsByIdsLinkingToSlugs, { variables: { ids: [...experimentIds] } });\n\n  for (const experiment of slugIdsFromExperiments?.experimentCollection.items ?? []) {\n    for (const link of experiment.linkedFrom.entryCollection.items) {\n      if (link.__typename !== 'Slug') continue; // Sanity check.\n      const sideNav = experimentIdToSideNav.get(experiment.sys.id);\n      sideNav && slugIdToSideNav.set(link.sys.id, sideNav);\n      const subNav = experimentIdToSubNav.get(experiment.sys.id);\n      subNav && slugIdToSubNav.set(link.sys.id, subNav);\n    }\n  }\n\n  // STEP 3: Lookup slugs from slug ids.\n  const slugIds = new Set<string>([...slugIdToSideNav.keys(), ...slugIdToSubNav.keys()]);\n  const { data: slugsFromSlugIds } = useContentfulQuery<SlugsByIdsData, { ids: string[] }>(\n    slugsByIdsQuery,\n    {\n      variables: { ids: [...slugIds] },\n    }\n  );\n\n  for (const slug of slugsFromSlugIds?.slugCollection.items ?? []) {\n    const sideNav = slugIdToSideNav.get(slug.sys.id);\n    sideNav && sideNavMap.set(slug.slug, sideNav);\n    const subNav = slugIdToSubNav.get(slug.sys.id);\n    subNav && subNavMap.set(slug.slug, subNav);\n  }\n\n  return { sideNavMap, subNavMap };\n}\n", "import { css } from '@emotion/css';\nimport { DeploymentType } from '@snapchat/mw-common';\nimport {\n  BackgroundType,\n  CookieSettings as CookieSettingsGlobal,\n} from '@snapchat/mw-global-components';\nimport { BackgroundColor, Block } from '@snapchat/snap-design-system-marketing';\nimport type React from 'react';\n\nimport { NoMatchDefault } from '../NoMatch/NoMatchDefault';\n\nexport type CookieSettingsProps = {\n  cookieDomain: string;\n  deploymentType: DeploymentType;\n  domainName: string;\n  isClient: boolean;\n  backgroundColor?: BackgroundColor;\n};\n\nconst defaultBackgroundColor = BackgroundColor.White;\n\nconst noPaddingTopCss = css`\n  padding-top: 0;\n`;\n\nexport const CookieSettings: React.FC<CookieSettingsProps> = ({\n  cookieDomain,\n  deploymentType,\n  domainName,\n  isClient,\n  backgroundColor = defaultBackgroundColor,\n}) => {\n  // Use current domain for local development and in Dev/Staging environments\n  if (deploymentType !== DeploymentType.PRODUCTION) {\n    domainName = '';\n    cookieDomain = '';\n  }\n\n  const isSameDomain = domainName === cookieDomain;\n  const backgroundType =\n    backgroundColor === BackgroundColor.Black ? BackgroundType.DarkMode : BackgroundType.LightMode;\n\n  // Return 404 if using cookies from a different domain.\n  if (!isSameDomain) return <NoMatchDefault />;\n\n  // Return nothing for SSR\n  if (!isClient) return null;\n\n  return (\n    <Block backgroundColor={backgroundColor} className={noPaddingTopCss}>\n      <CookieSettingsGlobal cookieDomain={cookieDomain} backgroundType={backgroundType} />\n    </Block>\n  );\n};\n", "import { htmlEscape, htmlUnescape } from '@snapchat/core';\nimport {\n  AutoComplete as AutoCompleteSDS,\n  FormattedMessage,\n  Header,\n  MessageContext,\n  MotifComponent,\n  Pagination,\n  Spinner,\n  useMotifStyles,\n} from '@snapchat/snap-design-system-marketing';\nimport noop from 'lodash-es/noop';\nimport type { FC } from 'react';\nimport { useCallback, useContext, useEffect, useRef, useState } from 'react';\n\nimport { AppContext } from '../../AppContext';\nimport { ConsumerContext } from '../../components/ConsumerContextProvider';\nimport { totalHeaderHeightCssVar } from '../../components/Header/headerSizeUtils';\nimport type { SearchResult } from '../../components/Search';\nimport { NoResultsFound, SearchResultItem } from '../../components/Search';\nimport { ActiveEventCountTracker } from '../../components/tracing/ActiveEventCountTracker';\nimport { logEvent, logUserEvent, SubscribedEventType } from '../../helpers/logging';\nimport { useQueryParams } from '../../hooks/useQueryParams';\nimport { useSearchResults } from '../../hooks/useSearchResults';\nimport { UserAction } from '../../types/events';\nimport {\n  searchAutocompleteCss,\n  searchContainerCss,\n  searchResultsContainerCss,\n  searchResultsListCss,\n  searchSubtitleCss,\n  spinnerContainerCss,\n} from './styles';\n\nconst maxResultsPerPage = 20;\n// 250 seems appropriate as it balances search responsiveness and debouncing times per second.\nconst searchDebounceDelay = 250;\n\n// 1000ms debounce delay for logging the page view event\nconst pageViewDebounceDelay = 1000;\n\n/**\n * Replaces invisible commas with ellipses and removes ellipses at the start or end of the string\n * for each element in the array. Concatenates the modified elements into a single string separated\n * by ellipses.\n *\n * @param elements - An array of strings to be processed.\n * @returns A string with modified elements joined by ellipses.\n */\nconst getDescription = (elements: Array<string>) => {\n  const result = elements\n    .map(element => element.replace(/ ?(\\u2063+)/gm, '\\u2026').replace(/^\\u2026+|\\u2026+$/g, ''))\n    .join('\\u2026 ');\n\n  return result;\n};\n\nconst handleScroll = (element: HTMLDivElement | null) => {\n  // Using requestAnimationFrame to avoid forced reflow  and solve inconsistencies with smooth scroll.\n  window.requestAnimationFrame(() => {\n    const totalHeaderHeight = Number.parseInt(\n      getComputedStyle(document.documentElement).getPropertyValue(totalHeaderHeightCssVar),\n      10\n    );\n\n    const containerTop = element?.getBoundingClientRect().top ?? 0;\n    const scrollY = window.scrollY;\n\n    // To account for the height of the sticky header, add totalHeaderHeight and additionalSpaceAboveHeader\n    // to create white space between the top of the element and the header.\n    window.scrollTo({\n      top: containerTop + scrollY - (totalHeaderHeight + 20),\n      behavior: 'smooth',\n    });\n  });\n};\n\nexport const Search: FC = () => {\n  const query = useQueryParams();\n  const searchQueryParameter = query.get('q') ?? '';\n  const searchPageParameter = Number(query.get('page') ?? '1');\n  const [shouldRenderSpinner, setShouldRenderSpinner] = useState(true);\n\n  // Initialize Motif styles for the Search component\n  useMotifStyles(MotifComponent.SEARCH);\n\n  const appContext = useContext(AppContext);\n  const { formatMessage } = useContext(MessageContext);\n  const { getUrlParams, setUrlParams } = useContext(ConsumerContext);\n\n  const containerRef = useRef<HTMLDivElement>(null);\n\n  const [page, setPage] = useState(searchPageParameter);\n  const [searchTerm, setSearchTerm] = useState(searchQueryParameter);\n  const [debouncedSearchTerm, setDebouncedSearchTerm] = useState(searchTerm);\n\n  // effect to set debounced searchTerm\n  useEffect(() => {\n    if (searchTerm === debouncedSearchTerm) {\n      return;\n    }\n\n    const timerId = setTimeout(() => {\n      setDebouncedSearchTerm(searchTerm);\n      setPage(1);\n      setShouldRenderSpinner(true);\n    }, searchDebounceDelay);\n\n    return () => {\n      clearTimeout(timerId);\n    };\n  }, [searchTerm, debouncedSearchTerm]);\n\n  //  effect to log page view event every time we think a new search is being performed\n  useEffect(() => {\n    const timerId = setTimeout(() => {\n      logEvent({\n        subscribedEventType: SubscribedEventType.PAGE_LOAD,\n      });\n    }, pageViewDebounceDelay);\n\n    return () => {\n      clearTimeout(timerId);\n    };\n  });\n\n  const searchResults = useSearchResults(\n    debouncedSearchTerm,\n    appContext.currentLocale,\n    page,\n    maxResultsPerPage\n  );\n\n  useEffect(() => {\n    if (searchResults.isLoading) {\n      return;\n    }\n\n    setShouldRenderSpinner(false);\n  }, [searchResults.isLoading]);\n\n  // effect to change url when state changes\n  useEffect(() => {\n    if (!getUrlParams || !setUrlParams) {\n      return;\n    }\n\n    const queryParams = new URLSearchParams(getUrlParams());\n\n    // Purposely not using `searchPageParameter` and `searchQueryParameter` to\n    // avoid render loop between this and the `Handle back button click` useEffect\n    if (\n      debouncedSearchTerm === (queryParams.get('q') ?? '') &&\n      page.toString() === queryParams.get('page')\n    ) {\n      return;\n    }\n\n    queryParams.set('q', debouncedSearchTerm);\n    queryParams.set('page', `${page}`);\n\n    setUrlParams({ ...Object.fromEntries(queryParams) });\n  }, [appContext.currentLocale, debouncedSearchTerm, page, getUrlParams, setUrlParams]);\n\n  // Handle back button click\n  useEffect(() => {\n    const newPage = searchPageParameter;\n    const newTerm = searchQueryParameter;\n\n    setPage(newPage);\n    setSearchTerm(newTerm);\n    setDebouncedSearchTerm(newTerm);\n  }, [searchPageParameter, searchQueryParameter]);\n\n  const onChange = (term: string) => {\n    const trimmedTerm = term.trimStart();\n    setSearchTerm(trimmedTerm);\n  };\n\n  const onChangePage = useCallback(\n    (newPage: number) => {\n      setPage(newPage);\n      handleScroll(containerRef.current);\n    },\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    [containerRef.current]\n  );\n\n  const showLoading = shouldRenderSpinner && searchResults.isLoading && !searchResults.isErrored;\n  const showResults = !showLoading && !!searchResults.data.total;\n  const showNoResults = !showLoading && !searchResults.data.total;\n\n  return (\n    <>\n      <Header noIndex={true} />\n      <div data-test-id=\"mwp-search\" className={searchContainerCss} ref={containerRef}>\n        <div className={searchAutocompleteCss}>\n          <AutoCompleteSDS<SearchResult>\n            autocompleteResults={[]}\n            collapsible={false}\n            hideSuggestions\n            initialText={htmlUnescape(htmlEscape(searchTerm))}\n            loadingAutocompleteTerms={false}\n            onChange={onChange}\n            onSelect={noop}\n            placeholder={formatMessage({\n              id: 'placeholderSearchPageInput',\n              defaultMessage: 'Search...',\n            })}\n          />\n          {searchResults && (\n            <p className={searchSubtitleCss}>\n              <FormattedMessage\n                id=\"searchResultsSubtitle\"\n                defaultMessage={'{total} search results for \"{term}\"'}\n                values={{\n                  total: String(searchResults.data.total),\n                  term: htmlEscape(debouncedSearchTerm),\n                }}\n              />\n            </p>\n          )}\n        </div>\n        <div className={searchResultsContainerCss}>\n          {showLoading && (\n            <div className={spinnerContainerCss}>\n              <Spinner />\n            </div>\n          )}\n          {showResults && (\n            <ul className={searchResultsListCss}>\n              {searchResults.data.results.map((item, i) => (\n                <li key={item.pageTitle + searchTerm + i * page}>\n                  <SearchResultItem\n                    description={getDescription(item.highlights)}\n                    pageTitle={item.pageTitle}\n                    slug={item.slug}\n                    onClick={() =>\n                      logUserEvent({\n                        eventCategory: 'SearchResult',\n                        eventAction: UserAction.Click,\n                        eventLabel: item.slug,\n                      })\n                    }\n                  />\n                </li>\n              ))}\n            </ul>\n          )}\n          {showNoResults && <NoResultsFound />}\n        </div>\n\n        {showResults ? (\n          <Pagination\n            currentPage={page}\n            onChange={onChangePage}\n            totalPages={Math.floor((searchResults.data.total - 1) / maxResultsPerPage) + 1}\n          />\n        ) : null}\n\n        {/* Render the same test divs as the MWP Page component for use in release tests.\n          NOTE: Purposely deferring rendering these until the search results are returned\n                so our release tests check the results page rather than loading state. */}\n        {!searchResults.isLoading && <ActiveEventCountTracker />}\n      </div>\n    </>\n  );\n};\n", "import { css } from '@emotion/css';\nimport { m, p2Css } from '@snapchat/snap-design-system-marketing';\n\nexport const noResultsFoundContainerCss = css`\n  align-items: center;\n  display: flex;\n  flex-direction: column;\n  padding-block: ${m('--spacing-xl')} 128px;\n  width: 100%;\n`;\n\nexport const noResultsFoundTitleCss = css`\n  margin-block-end: ${m('--spacing-xs')};\n`;\n\nexport const noResultsFoundSubtitleCss = css`\n  ${p2Css}\n  margin-block-end: ${m('--spacing-l')};\n`;\n\nexport const noResultsFoundImageCss = css`\n  width: 268px;\n  max-width: 90%;\n`;\n", "import { FormattedMessage } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport {\n  noResultsFoundContainerCss,\n  noResultsFoundImageCss,\n  noResultsFoundSubtitleCss,\n  noResultsFoundTitleCss,\n} from './NoResultsFound.styles';\n\nexport const NoResultsFound: FC = () => (\n  <div className={noResultsFoundContainerCss}>\n    <h4 className={noResultsFoundTitleCss}>\n      <FormattedMessage id=\"searchNotFoundTitle\" defaultMessage=\"Sorry, no results were found\" />\n    </h4>\n    <p className={noResultsFoundSubtitleCss}>\n      <FormattedMessage\n        id=\"searchNotFoundSubtitle\"\n        defaultMessage=\"Please try again with a different keyword.\"\n      />\n    </p>\n    <img alt=\"confused ghost logo\" src=\"/images/404.png\" className={noResultsFoundImageCss} />\n  </div>\n);\n\nNoResultsFound.displayName = 'NoResultsFound';\n", "export interface SearchResult {\n  slug: string;\n  pageTitle: string;\n  highlights: string[];\n}\n\nexport interface SearchResultResponse {\n  results: SearchResult[];\n  total: number;\n}\n\nexport const searchQueryParam = 'query';\nexport const searchOffsetParam = 'offset';\nexport const searchPerPageParam = 'page';\nexport const searchLocaleParam = 'locale';\n", "import { css } from '@emotion/css';\nimport { m, nonMobileMediaQuery, p2Css } from '@snapchat/snap-design-system-marketing';\n\nexport const searchResultItemPageTitleCss = css`\n  margin-block: 0 ${m('--spacing-xxs')};\n`;\n\nexport const searchResultItemLinkCss = css`\n  border-radius: ${m('--spacing-xxxs')};\n  color: ${m('--action-default-color')};\n  text-decoration: none;\n\n  @media (hover: hover) {\n    &:hover {\n      color: ${m('--action-hover-color')};\n      text-decoration-thickness: ${m('--spacing-xxxs')};\n      text-decoration: underline;\n      text-underline-offset: ${m('--spacing-xxxs')};\n    }\n  }\n`;\n\nexport const searchResultItemDescriptionCss = css`\n  ${p2Css}\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 4;\n  color: ${m('--foreground-color')};\n  display: -webkit-box;\n  hyphens: auto;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  word-break: break-word;\n  word-wrap: break-word;\n\n  ${nonMobileMediaQuery} {\n    -webkit-line-clamp: 2;\n  }\n\n  & strong {\n    font-weight: 600;\n  }\n`;\n", "import { MotifComponent } from '@snapchat/snap-design-system-marketing';\nimport type { FC } from 'react';\n\nimport { Anchor } from '../../Anchor';\nimport {\n  searchResultItemDescriptionCss,\n  searchResultItemLinkCss,\n  searchResultItemPageTitleCss,\n} from './SearchResultItem.styled';\nimport type { SearchResultItemProps } from './SearchResultItem.types';\n\nexport const replaceEmTags = (inputString: string): (string | JSX.Element)[] => {\n  const regex = /<em>(.*?)<\\/em>/gi;\n  const parts = inputString.split(regex);\n\n  return parts.map((part, index) => {\n    if (index % 2 === 1) {\n      // Odd index means it's between <em> and </em>, so replace content\n      return <strong key={index}>{part}</strong>;\n    }\n\n    // Even index means it's outside <em> tags, so render as is\n    return part;\n  });\n};\n\nexport const SearchResultItem: FC<SearchResultItemProps> = ({\n  description,\n  pageTitle,\n  slug,\n  onClick,\n}) => {\n  return (\n    <article className={MotifComponent.SEARCH}>\n      <h6 className={searchResultItemPageTitleCss}>\n        <Anchor href={slug} className={searchResultItemLinkCss} onClick={onClick}>\n          {pageTitle}\n        </Anchor>\n      </h6>\n      {description && (\n        <p className={searchResultItemDescriptionCss}>{replaceEmTags(description)}</p>\n      )}\n    </article>\n  );\n};\n\nSearchResultItem.displayName = 'SearchResultItem';\n", "import { useContext, useMemo } from 'react';\nimport { useLocation } from 'react-router-dom';\n\nimport { ConsumerContext } from '../components/ConsumerContextProvider';\n\nexport const useQueryParams: () => URLSearchParams = () => {\n  // Used to trigger updates when path changes on Client\n  const { search } = useLocation();\n  // Used to enable fetching values on both Client and Server\n  const { getUrlParams } = useContext(ConsumerContext);\n\n  return useMemo(() => {\n    const searchParams = getUrlParams?.() ?? {};\n    return new URLSearchParams(searchParams);\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [search, getUrlParams]);\n};\n", "import { useAsyncData } from '@snapchat/async-data-browser';\nimport { useMemo, useRef } from 'react';\n\nimport type { SearchResultResponse } from '../components/Search';\nimport {\n  searchLocaleParam,\n  searchOffsetParam,\n  searchPerPageParam,\n  searchQueryParam,\n} from '../components/Search';\nimport { Config } from '../config';\nimport { logger } from '../helpers/logging';\n\ntype SearchResultsData = {\n  data: SearchResultResponse;\n  isErrored: boolean;\n  isLoading: boolean;\n};\n\n/**\n * Custom hook for fetching search results based on the provided parameters.\n *\n * @param {string} searchTerm - The term to search for\n * @param {string} locale - The locale for which search results are requested.\n * @param {number} page - The page number to use in the query\n * @param {number} pageSize - The number of search results per page\n * @returns An object containing search results data and loading state.\n */\nexport function useSearchResults(\n  searchTerm: string,\n  locale: string,\n  page = 1,\n  pageSize = 20\n): SearchResultsData {\n  const previousResults = useRef([]);\n  const previousTotal = useRef(0);\n  const emptyResults: SearchResultResponse = { results: [], total: 0 };\n  let searchResults = emptyResults;\n\n  const params = useMemo(() => {\n    const params = new URLSearchParams();\n    const searchOffsetValue = Math.max(0, (page - 1) * pageSize);\n\n    params.append(searchQueryParam, searchTerm ?? '');\n    params.append(searchLocaleParam, locale);\n    params.append(searchOffsetParam, `${searchOffsetValue}`);\n    params.append(searchPerPageParam, `${pageSize}`);\n\n    return params;\n  }, [searchTerm, locale, page, pageSize]);\n\n  const host = Config.isClient ? '' : `http://localhost:${process.env.PORT ?? 3000}`;\n  const url = `${host}/api/search?${params}`;\n\n  const { data, isLoading, error } = useAsyncData({\n    dataId: `/api/search?${params}`,\n    dataAsync: async () => {\n      // edge case: don't send to server if there is no search input\n      if (!searchTerm) return emptyResults;\n\n      const response = await fetch(url);\n\n      if (!response.ok) {\n        const error = await response.text();\n        throw new Error(error);\n      }\n\n      const data = await response.json();\n      return data;\n    },\n  });\n\n  if (error) {\n    logger.logError({\n      component: 'useSearchResults',\n      message: 'Error loading search results',\n      error,\n    });\n  }\n\n  if (data) {\n    previousResults.current = data.results;\n    previousTotal.current = data.total;\n    searchResults = data as SearchResultResponse;\n  }\n\n  return {\n    data: isLoading\n      ? { results: previousResults.current, total: previousTotal.current }\n      : searchResults,\n    isLoading,\n    isErrored: !!error,\n  };\n}\n", "import { css } from '@emotion/css';\nimport {\n  globalHeaderHeight,\n  m,\n  mobileMediaQuery,\n  p3Css,\n} from '@snapchat/snap-design-system-marketing';\n\nexport const searchContainerCss = css`\n  padding-block: ${m('--spacing-xl')};\n  margin-inline: auto;\n  max-width: ${m('--search-container-max-width')};\n  padding-inline: ${m('--spacing-xl')};\n  width: 100%;\n  min-height: calc(100vh - ${globalHeaderHeight}px);\n  min-height: calc(100dvh - ${globalHeaderHeight}px);\n\n  ${mobileMediaQuery} {\n    margin-block: ${m('--spacing-xxxl')};\n  }\n`;\n\nexport const searchAutocompleteCss = css`\n  margin-block-end: ${m('--spacing-xxxl')};\n\n  ${mobileMediaQuery} {\n    margin-block-end: ${m('--spacing-xl')};\n  }\n`;\n\nexport const searchSubtitleCss = css`\n  ${p3Css};\n  color: ${m('--search-subtitle-color')};\n  margin-block-start: ${m('--spacing-s')};\n`;\n\nexport const searchResultsContainerCss = css`\n  margin-block-end: ${m('--spacing-xxxl')};\n\n  ${mobileMediaQuery} {\n    margin-block-end: ${m('--spacing-xl')};\n  }\n`;\n\nexport const searchResultsListCss = css`\n  display: flex;\n  flex-wrap: wrap;\n  gap: ${m('--search-results-list-gap')};\n  list-style: none;\n  > li {\n    width: 100%;\n  }\n`;\n\nexport const spinnerContainerCss = css`\n  display: flex;\n  justify-content: center;\n`;\n", "import { Site } from '@snapchat/mw-common';\nimport { type Motif, defaultMotif } from '@snapchat/snap-design-system-marketing';\n\nimport { Config } from '../config';\nimport { arcadiaMotif } from '../sites/arcadia/arcadiaMotif';\nimport { avalonMotif } from '../sites/avalon/avalonMotif';\nimport { cheeriosMotif } from '../sites/cheerios/cheeriosMotif';\nimport { experienceMotif } from '../sites/experience/experienceMotif';\n\nexport function getSiteMotif(): Motif | undefined {\n  switch (Config.site) {\n    case Site.ARCADIA:\n      return arcadiaMotif;\n    case Site.AVALON:\n      return avalonMotif;\n    case Site.CHEERIOS:\n      return cheeriosMotif;\n    case Site.EXPERIENCE:\n      return experienceMotif;\n    default:\n      return defaultMotif;\n  }\n}\n", "var e,n,t,i,r,a=-1,o=function(e){addEventListener(\"pageshow\",(function(n){n.persisted&&(a=n.timeStamp,e(n))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\"navigation\")[0]},u=function(){var e=c();return e&&e.activationStart||0},f=function(e,n){var t=c(),i=\"navigate\";a>=0?i=\"back-forward-cache\":t&&(document.prerendering||u()>0?i=\"prerender\":document.wasDiscarded?i=\"restore\":t.type&&(i=t.type.replace(/_/g,\"-\")));return{name:e,value:void 0===n?-1:n,rating:\"good\",delta:0,entries:[],id:\"v3-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},s=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},t||{})),i}}catch(e){}},d=function(e,n,t,i){var r,a;return function(o){n.value>=0&&(o||i)&&((a=n.value-(r||0))||void 0===r)&&(r=n.value,n.delta=a,n.rating=function(e,n){return e>n[1]?\"poor\":e>n[0]?\"needs-improvement\":\"good\"}(n.value,t),e(n))}},l=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},p=function(e){var n=function(n){\"pagehide\"!==n.type&&\"hidden\"!==document.visibilityState||e(n)};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},v=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},m=-1,h=function(){return\"hidden\"!==document.visibilityState||document.prerendering?1/0:0},g=function(e){\"hidden\"===document.visibilityState&&m>-1&&(m=\"visibilitychange\"===e.type?e.timeStamp:0,T())},y=function(){addEventListener(\"visibilitychange\",g,!0),addEventListener(\"prerenderingchange\",g,!0)},T=function(){removeEventListener(\"visibilitychange\",g,!0),removeEventListener(\"prerenderingchange\",g,!0)},E=function(){return m<0&&(m=h(),y(),o((function(){setTimeout((function(){m=h(),y()}),0)}))),{get firstHiddenTime(){return m}}},C=function(e){document.prerendering?addEventListener(\"prerenderingchange\",(function(){return e()}),!0):e()},L=[1800,3e3],w=function(e,n){n=n||{},C((function(){var t,i=E(),r=f(\"FCP\"),a=s(\"paint\",(function(e){e.forEach((function(e){\"first-contentful-paint\"===e.name&&(a.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=Math.max(e.startTime-u(),0),r.entries.push(e),t(!0)))}))}));a&&(t=d(e,r,L,n.reportAllChanges),o((function(i){r=f(\"FCP\"),t=d(e,r,L,n.reportAllChanges),l((function(){r.value=performance.now()-i.timeStamp,t(!0)}))})))}))},b=[.1,.25],S=function(e,n){n=n||{},w(v((function(){var t,i=f(\"CLS\",0),r=0,a=[],c=function(e){e.forEach((function(e){if(!e.hadRecentInput){var n=a[0],t=a[a.length-1];r&&e.startTime-t.startTime<1e3&&e.startTime-n.startTime<5e3?(r+=e.value,a.push(e)):(r=e.value,a=[e])}})),r>i.value&&(i.value=r,i.entries=a,t())},u=s(\"layout-shift\",c);u&&(t=d(e,i,b,n.reportAllChanges),p((function(){c(u.takeRecords()),t(!0)})),o((function(){r=0,i=f(\"CLS\",0),t=d(e,i,b,n.reportAllChanges),l((function(){return t()}))})),setTimeout(t,0))})))},A={passive:!0,capture:!0},I=new Date,P=function(i,r){e||(e=r,n=i,t=new Date,k(removeEventListener),F())},F=function(){if(n>=0&&n<t-I){var r={entryType:\"first-input\",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+n};i.forEach((function(e){e(r)})),i=[]}},M=function(e){if(e.cancelable){var n=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,n){var t=function(){P(e,n),r()},i=function(){r()},r=function(){removeEventListener(\"pointerup\",t,A),removeEventListener(\"pointercancel\",i,A)};addEventListener(\"pointerup\",t,A),addEventListener(\"pointercancel\",i,A)}(n,e):P(n,e)}},k=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(n){return e(n,M,A)}))},D=[100,300],x=function(t,r){r=r||{},C((function(){var a,c=E(),u=f(\"FID\"),l=function(e){e.startTime<c.firstHiddenTime&&(u.value=e.processingStart-e.startTime,u.entries.push(e),a(!0))},m=function(e){e.forEach(l)},h=s(\"first-input\",m);a=d(t,u,D,r.reportAllChanges),h&&p(v((function(){m(h.takeRecords()),h.disconnect()}))),h&&o((function(){var o;u=f(\"FID\"),a=d(t,u,D,r.reportAllChanges),i=[],n=-1,e=null,k(addEventListener),o=l,i.push(o),F()}))}))},B=0,R=1/0,H=0,N=function(e){e.forEach((function(e){e.interactionId&&(R=Math.min(R,e.interactionId),H=Math.max(H,e.interactionId),B=H?(H-R)/7+1:0)}))},O=function(){return r?B:performance.interactionCount||0},q=function(){\"interactionCount\"in performance||r||(r=s(\"event\",N,{type:\"event\",buffered:!0,durationThreshold:0}))},j=[200,500],_=0,z=function(){return O()-_},G=[],J={},K=function(e){var n=G[G.length-1],t=J[e.interactionId];if(t||G.length<10||e.duration>n.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};J[i.id]=i,G.push(i)}G.sort((function(e,n){return n.latency-e.latency})),G.splice(10).forEach((function(e){delete J[e.id]}))}},Q=function(e,n){n=n||{},C((function(){var t;q();var i,r=f(\"INP\"),a=function(e){e.forEach((function(e){(e.interactionId&&K(e),\"first-input\"===e.entryType)&&(!G.some((function(n){return n.entries.some((function(n){return e.duration===n.duration&&e.startTime===n.startTime}))}))&&K(e))}));var n,t=(n=Math.min(G.length-1,Math.floor(z()/50)),G[n]);t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,i())},c=s(\"event\",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});i=d(e,r,j,n.reportAllChanges),c&&(\"PerformanceEventTiming\"in window&&\"interactionId\"in PerformanceEventTiming.prototype&&c.observe({type:\"first-input\",buffered:!0}),p((function(){a(c.takeRecords()),r.value<0&&z()>0&&(r.value=0,r.entries=[]),i(!0)})),o((function(){G=[],_=O(),r=f(\"INP\"),i=d(e,r,j,n.reportAllChanges)})))}))},U=[2500,4e3],V={},W=function(e,n){n=n||{},C((function(){var t,i=E(),r=f(\"LCP\"),a=function(e){var n=e[e.length-1];n&&n.startTime<i.firstHiddenTime&&(r.value=Math.max(n.startTime-u(),0),r.entries=[n],t())},c=s(\"largest-contentful-paint\",a);if(c){t=d(e,r,U,n.reportAllChanges);var m=v((function(){V[r.id]||(a(c.takeRecords()),c.disconnect(),V[r.id]=!0,t(!0))}));[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,(function(){return setTimeout(m,0)}),!0)})),p(m),o((function(i){r=f(\"LCP\"),t=d(e,r,U,n.reportAllChanges),l((function(){r.value=performance.now()-i.timeStamp,V[r.id]=!0,t(!0)}))}))}}))},X=[800,1800],Y=function e(n){document.prerendering?C((function(){return e(n)})):\"complete\"!==document.readyState?addEventListener(\"load\",(function(){return e(n)}),!0):setTimeout(n,0)},Z=function(e,n){n=n||{};var t=f(\"TTFB\"),i=d(e,t,X,n.reportAllChanges);Y((function(){var r=c();if(r){var a=r.responseStart;if(a<=0||a>performance.now())return;t.value=Math.max(a-u(),0),t.entries=[r],i(!0),o((function(){t=f(\"TTFB\",0),(i=d(e,t,X,n.reportAllChanges))(!0)}))}}))};export{b as CLSThresholds,L as FCPThresholds,D as FIDThresholds,j as INPThresholds,U as LCPThresholds,X as TTFBThresholds,S as getCLS,w as getFCP,x as getFID,Q as getINP,W as getLCP,Z as getTTFB,S as onCLS,w as onFCP,x as onFID,Q as onINP,W as onLCP,Z as onTTFB};\n", "import { onCLS, onFID, onINP, onLCP } from 'web-vitals';\n\nimport { logTiming, logValue } from '../helpers/logging';\n\n/**\n * Init gathering of Web Vitals, specifically LCP (Largest Contentful Paint), CLS (Cumulative Layout\n * Shift), and FID (First Input Delay).\n */\nexport const initWebVitalsLogging = (): void => {\n  const category = 'WebVitals';\n\n  onCLS(metric =>\n    logValue({\n      eventValue: metric.value,\n      eventLabel: window.location.pathname,\n      eventVariable: 'cumulative_layout_shift',\n      eventCategory: category,\n    })\n  );\n\n  onFID(metric =>\n    logTiming({\n      eventValue: metric.value,\n      eventLabel: window.location.pathname,\n      eventVariable: 'first_input_delay',\n      eventCategory: category,\n    })\n  );\n\n  onLCP(metric =>\n    logTiming({\n      eventValue: metric.value,\n      eventLabel: window.location.pathname,\n      eventVariable: 'largest_contentful_paint',\n      eventCategory: category,\n    })\n  );\n\n  onINP(metric => {\n    logTiming({\n      eventValue: metric.value,\n      eventLabel: window.location.pathname,\n      eventVariable: 'interaction_to_next_paint',\n      eventCategory: category,\n    });\n  });\n};\n", "import type { BrowserInfo } from '@snapchat/client-hints';\n\nimport { Config } from '../../config';\nimport type { UserAgentHints } from '../../types/userAgentHints';\n\nexport function userAgentHintsFromBowser(browserFeatures: BrowserInfo): UserAgentHints {\n  const hints = browserFeatures.getLowEntropyHints();\n  const browserVersion = hints.browsers[0]?.majorVersion;\n  return {\n    isMobile: hints.isMobile,\n    brand: hints.browsers[0]?.brand, // \"Edge\".\n    brandVersion: browserVersion ? String(browserVersion) : undefined, // \"75.2\"\n    platform: hints.platform, // \"Windows\", \"macOS\" etc.\n  };\n}\n\n/**\n * Starting from iOS 13, iPad uses MacOS for its UA. As of April 2023 there's no touch screen Mac,\n * so we can hack around this by checking for maxTouchPoints. We want to limit this workaround as\n * much as possible. Note we cannot detect Firefox via UA on iPad reliably, so we can only limit it\n * to iPad.\n *\n * NOTE: Relies on client features (navigator), always returns false for SSR\n */\nexport const isIpad = (browserFeatures: BrowserInfo): boolean => {\n  // Subsequent check relies on client features, always return false for SSR\n  if (!Config.isClient) return false;\n\n  // Normal case: Check for Mac OS with touchpoints\n  const hints = browserFeatures.getLowEntropyHints();\n  return hints.platform === 'macOS' && !!navigator?.maxTouchPoints && navigator?.maxTouchPoints > 1;\n};\n", "import Cookies from 'js-cookie';\n\nimport type { CookieOptions } from '../utils/cookies/CookieManager';\nimport { CookieManager } from '../utils/cookies/CookieManager';\n\nexport class BrowserCookieManager extends CookieManager {\n  /** @override */\n  public getCookie = (name: string): string | undefined => {\n    return Cookies.get(name);\n  };\n\n  /** @override */\n  public setCookie = (name: string, value: string, options: CookieOptions): void => {\n    Cookies.set(name, value, options);\n  };\n\n  /** @override */\n  public deleteCookie = (name: string): void => {\n    return Cookies.remove(name);\n  };\n}\n", "import { logError } from '../../helpers/logging';\n\nexport interface CookieOptions {\n  expires?: Date;\n  path?: string;\n  secure?: boolean;\n  httpOnly?: boolean;\n  credentials?: string;\n  domain?: string;\n  sameSite?: 'strict' | 'lax' | 'none';\n}\n\ntype JsonLike = Record<string, unknown> | boolean | number;\n\n/** Node/browser agnostic cookie utility interface */\nexport abstract class CookieManager {\n  public abstract getCookie: (name: string) => string | undefined;\n  public abstract setCookie: (name: string, value: string, options: CookieOptions) => void;\n  public abstract deleteCookie: (name: string) => void;\n\n  /**\n   * Returns the JSON value for the cookie.\n   *\n   * Returns `unedefined` if an error occurs.\n   */\n  public getCookieJson: (name: string) => JsonLike | undefined = name => {\n    const value = this.getCookie(name);\n    if (!value) return undefined;\n\n    try {\n      return JSON.parse(value);\n    } catch (error) {\n      logError({ component: 'CookieManager', message: `Error parsing cookie: \"${value}\"`, error });\n      return undefined;\n    }\n  };\n\n  /**\n   * Sets the value of the cookie to the JSON serialized version of the value.\n   *\n   * This will store an '' if the value is nullish.\n   */\n  setCookieJson: (name: string, value: JsonLike, options: CookieOptions) => void = (\n    name,\n    value,\n    options\n  ) => {\n    if (!value) {\n      this.setCookie(name, '', options);\n    } else {\n      this.setCookie(name, JSON.stringify(value), options);\n    }\n  };\n}\n", "import type { CreateUuidV4 } from '../utils/uuid/uuidFactory';\n\n/**\n * Template.\n *\n * - 'X' means replace with any 8-bit number.\n * - 'Y' means replace with any 0b10 + 6-bit number.\n */\nconst legacyUuidTemplate = 'XXXXXXXX-XXXX-4XXX-YXXX-XXXXXXXXXXXX';\n\ntype UuidV4Type = `${string}-${string}-${string}-${string}-${string}`;\n\n/**\n * Produces pseudo-random UUID v4 strings using window.crypto.getRandomValues.\n *\n * I.e. bb63899b-fb89-41ed-8a1e-eb87f44544c3\n *\n * See spec: https://datatracker.ietf.org/doc/html/rfc9562#name-uuid-version-4\n */\nconst legacyRandomUuid = (): UuidV4Type => {\n  let ri = 0;\n  const rs = window.crypto.getRandomValues(new Uint8Array(32));\n\n  return legacyUuidTemplate.replace(/[XY]/g, c => {\n    const r = rs[ri++]! % 16;\n\n    if (c === 'X') {\n      return r.toString(16);\n    }\n\n    if (c === 'Y') {\n      // Has to be in format: 0b10XXXXXX\n      return ((r >> 2) & 0b10000000).toString(16);\n    }\n\n    return '0';\n  }) as UuidV4Type;\n};\n\nexport const createUuidV4Browser: CreateUuidV4 = () => {\n  if (!('randomUUID' in window.crypto)) {\n    return legacyRandomUuid();\n  }\n\n  return window.crypto.randomUUID();\n};\n", "import baseIteratee from './_baseIteratee.js';\nimport isArrayLike from './isArrayLike.js';\nimport keys from './keys.js';\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n  return function(collection, predicate, fromIndex) {\n    var iterable = Object(collection);\n    if (!isArrayLike(collection)) {\n      var iteratee = baseIteratee(predicate, 3);\n      collection = keys(collection);\n      predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n    }\n    var index = findIndexFunc(collection, predicate, fromIndex);\n    return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n  };\n}\n\nexport default createFind;\n", "import toFinite from './toFinite.js';\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n  var result = toFinite(value),\n      remainder = result % 1;\n\n  return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nexport default toInteger;\n", "import baseFindIndex from './_baseFindIndex.js';\nimport baseIteratee from './_baseIteratee.js';\nimport toInteger from './toInteger.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n    nativeMin = Math.min;\n\n/**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n *   { 'user': 'barney',  'active': true },\n *   { 'user': 'fred',    'active': false },\n *   { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\nfunction findLastIndex(array, predicate, fromIndex) {\n  var length = array == null ? 0 : array.length;\n  if (!length) {\n    return -1;\n  }\n  var index = length - 1;\n  if (fromIndex !== undefined) {\n    index = toInteger(fromIndex);\n    index = fromIndex < 0\n      ? nativeMax(length + index, 0)\n      : nativeMin(index, length - 1);\n  }\n  return baseFindIndex(array, baseIteratee(predicate, 3), index, true);\n}\n\nexport default findLastIndex;\n", "import createFind from './_createFind.js';\nimport findLastIndex from './findLastIndex.js';\n\n/**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n *   return n % 2 == 1;\n * });\n * // => 3\n */\nvar findLast = createFind(findLastIndex);\n\nexport default findLast;\n", "import baseGetTag from './_baseGetTag.js';\nimport isArray from './isArray.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n  return typeof value == 'string' ||\n    (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nexport default isString;\n", "import baseProperty from './_baseProperty.js';\n\n/**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nvar asciiSize = baseProperty('length');\n\nexport default asciiSize;\n", "/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n    rsComboMarksRange = '\\\\u0300-\\\\u036f',\n    reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n    rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n    rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n    rsCombo = '[' + rsComboRange + ']',\n    rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n    rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n    rsNonAstral = '[^' + rsAstralRange + ']',\n    rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n    rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n    rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n    rsOptVar = '[' + rsVarRange + ']?',\n    rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n    rsSeq = rsOptVar + reOptMod + rsOptJoin,\n    rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nfunction unicodeSize(string) {\n  var result = reUnicode.lastIndex = 0;\n  while (reUnicode.test(string)) {\n    ++result;\n  }\n  return result;\n}\n\nexport default unicodeSize;\n", "import asciiSize from './_asciiSize.js';\nimport hasUnicode from './_hasUnicode.js';\nimport unicodeSize from './_unicodeSize.js';\n\n/**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\nfunction stringSize(string) {\n  return hasUnicode(string)\n    ? unicodeSize(string)\n    : asciiSize(string);\n}\n\nexport default stringSize;\n", "import baseKeys from './_baseKeys.js';\nimport getTag from './_getTag.js';\nimport isArrayLike from './isArrayLike.js';\nimport isString from './isString.js';\nimport stringSize from './_stringSize.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n    setTag = '[object Set]';\n\n/**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\nfunction size(collection) {\n  if (collection == null) {\n    return 0;\n  }\n  if (isArrayLike(collection)) {\n    return isString(collection) ? stringSize(collection) : collection.length;\n  }\n  var tag = getTag(collection);\n  if (tag == mapTag || tag == setTag) {\n    return collection.size;\n  }\n  return baseKeys(collection).length;\n}\n\nexport default size;\n", "import type { BaseMarketingWebEvent } from '@snapchat/blizzard-schema';\nimport type { LoggedEvent } from '@snapchat/logging';\nimport { LoggingEventType } from '@snapchat/logging';\nimport type { BlizzardBaseEvent } from '@snapchat/logging-browser';\nimport kebabCase from 'lodash-es/kebabCase';\n\nimport { SubscribedEventType } from '../../eventListenerTypes';\nimport type { LoggingContext, LoggingCustomEvents } from '../../loggingTypes';\n\n/**\n * Event Formatting function for primary MarketingWeb Blizzard Table\n *\n * Table: `sc-analytics.prod_analytics_marketing_web`\n *\n * This is the primary MarketingWeb Blizzard table. Events logged here may trigger events in\n * secondary tables - refer to `formatSnapPixelEvent()` and `formatWebClientIdEvent()` functions for\n * details.\n */\nconst formatMarketingWebEvent = (\n  event: LoggedEvent<LoggingCustomEvents>,\n  context: Partial<LoggingContext>\n): BlizzardBaseEvent | undefined => {\n  const url = context.url ?? new URL(window.location.href);\n  const data: BaseMarketingWebEvent = {\n    host: url.host,\n    path: url.pathname,\n    query: JSON.stringify(Object.fromEntries(url.searchParams.entries())),\n    locale: context.locale,\n  };\n\n  // if experiment data exists, we add all three fields\n  if (context.variantId) {\n    data.experiment_category = 'Page'; // Always page.\n    data.experiment_group = context.variantId;\n    data.experiment_id = context.experimentId ?? 'None';\n  }\n\n  switch (event.type) {\n    case LoggingEventType.CUSTOM: {\n      switch (event.subscribedEventType) {\n        case SubscribedEventType.PAGE_LOAD:\n\n        // falls through\n        case SubscribedEventType.FIRST_PAGE_LOAD: {\n          return {\n            event_name: 'MARKETING_WEB_PAGE_VIEW',\n            ...data,\n            is_landing_page: event.subscribedEventType === SubscribedEventType.FIRST_PAGE_LOAD,\n          };\n        }\n\n        case SubscribedEventType.EXPERIMENT_IMPRESSION: {\n          // We add this case so typescript is happy, but theoretically this should never fire.\n          // If it DOES somehow fire, it will fire the exact same log as SubscribedEventType.INTERNAL and\n          // how the fields are set up in useExperiment\n          return {\n            event_name: 'MARKETING_WEB_INTERNAL_EVENT',\n            ...data,\n            type: 'useExperiment',\n            category: 'Experiment',\n            label: `${event.experimentId?.replace(/[ _]/, '-')}:${kebabCase(event.variantId)}`,\n          };\n        }\n      }\n      break;\n    }\n\n    case LoggingEventType.USER_ACTION: {\n      return {\n        event_name: 'MARKETING_WEB_USER_INTERACTION',\n        ...data,\n        type: event.action,\n        category: event.component,\n        label: event.label,\n      };\n    }\n\n    case LoggingEventType.INFO: {\n      return {\n        event_name: 'MARKETING_WEB_INTERNAL_EVENT',\n        ...data,\n        type: event.action,\n        category: event.component,\n        label: event.label,\n      };\n    }\n\n    case LoggingEventType.VALUE: {\n      return {\n        event_name: 'MARKETING_WEB_VALUE_EVENT',\n        ...data,\n        metric: event.value,\n        type: event.variable,\n        category: event.component,\n        label: event.label,\n      };\n    }\n\n    case LoggingEventType.TIMING: {\n      return {\n        event_name: 'MARKETING_WEB_TIMING_EVENT',\n        ...data,\n        duration: event.valueMs,\n        type: event.variable,\n        category: event.component,\n        label: event.label,\n      };\n    }\n  }\n\n  return undefined;\n};\n\n/**\n * Formatting for Snap Pixel Blizzard events (table:\n * `sc-analytics.prod_analytics_marketing_web_pixel_id`)\n *\n * Returns undefined if it is not relevant for the triggering event. Table is used to correlate\n * entries in the `sc-analytics.prod_analytics_marketing_web` to Snap pixel identifiers. This is\n * separated to its own table as snap pixel data requires a shorter data retention policy than the\n * primary table.\n *\n * @param triggeringEvent Event generated by `formatMarketingWebEvent` function\n * @param context Logging context, used to access pixelId value\n */\nconst formatSnapPixelEvent = (\n  triggeringEvent: BlizzardBaseEvent,\n  context: Partial<LoggingContext>\n): BlizzardBaseEvent | undefined => {\n  // Do not create event if pixelId is not defined\n  if (!context.pixelId) return;\n\n  return {\n    event_name: 'MARKETING_WEB_SNAP_PIXEL_EVENT',\n    pixel_id: context.pixelId,\n    triggering_event_name: triggeringEvent.event_name,\n  };\n};\n\n/**\n * Formatting for sc-wcid Blizzard events (table: `sc-analytics:prod_analytics_marketing_web_wcid`)\n *\n * Returns undefined if it is not relevant for the triggering event. Table is used to correlate\n * entries in the `sc-analytics.prod_analytics_marketing_web` to sc-wcid identifiers. This is\n * separated to its own table as the `sc-wcid` cookie values require a shorter data retention policy\n * than the primary table.\n *\n * @param triggeringEvent Event generated by `formatMarketingWebEvent` function\n * @param context Logging context, used to access webClientId value\n */\nconst formatWebClientIdEvent = (\n  triggeringEvent: BlizzardBaseEvent,\n  context: Partial<LoggingContext>\n): BlizzardBaseEvent | undefined => {\n  // Do not create event if webClientId is not defined\n  if (!context.webClientId) return;\n\n  return {\n    event_name: 'MARKETING_WEB_CLIENT_ID_EVENT',\n    web_client_id: context.webClientId,\n    triggering_event_name: triggeringEvent.event_name,\n  };\n};\n\n/**\n * Wrapper function around individual MarketingWebEvent formatting functions.\n *\n * Returns an array containing formatted events.\n */\nexport const formatMarketingWebEvents = (\n  event: LoggedEvent<LoggingCustomEvents>,\n  context: Partial<LoggingContext>\n): BlizzardBaseEvent[] => {\n  const output: BlizzardBaseEvent[] = [];\n\n  const primaryEvent = formatMarketingWebEvent(event, context);\n\n  // If not a valid input event for logging to MWP tables, return empty array\n  if (!primaryEvent) return output;\n\n  output.push(primaryEvent);\n\n  // Generate related event if appropriate and add to output array\n  const pixelEvent = formatSnapPixelEvent(primaryEvent, context);\n  pixelEvent && output.push(pixelEvent);\n\n  // Generate related event if appropriate and add to output array\n  const webClientIdEvent = formatWebClientIdEvent(primaryEvent, context);\n  webClientIdEvent && output.push(webClientIdEvent);\n\n  return output;\n};\n", "import type { ForBusinessBaseEvent } from '@snapchat/blizzard-schema';\nimport type { LoggedEvent } from '@snapchat/logging';\nimport { LoggingEventType } from '@snapchat/logging';\nimport type { BlizzardBaseEvent } from '@snapchat/logging-browser';\nimport findLast from 'lodash-es/findLast';\nimport size from 'lodash-es/size';\n\nimport { SubscribedEventType } from '../../eventListenerTypes';\nimport type { LoggingContext, LoggingCustomEvents } from '../../loggingTypes';\nimport { formatMarketingWebEvents } from './marketingWeb';\n\n/**\n * Site specific Event Formatting for ForBusiness.snapchat.com\n *\n * Also generates standard MarketingWeb events via `formatMarketingWebEvents`\n *\n * Event Formatting function for ForBusiness.snapchat.com. Wraps the `formatMarketingWebEvents`\n * function and adds site specific events\n *\n * Table: `sc-analytics.prod_analytics_ads_manager`\n */\nexport const formatForBusinessEvents = (\n  event: LoggedEvent<LoggingCustomEvents>,\n  context: Partial<LoggingContext>\n): BlizzardBaseEvent[] => {\n  const url = context.url ?? new URL(window.location.href);\n  const uriMetrics = JSON.stringify({\n    href: url.href,\n    host: url.host,\n    path: url.pathname,\n    filename: findLast(url.pathname.split('/'), size) ?? '',\n    query: Object.fromEntries(url.searchParams.entries()),\n  });\n\n  const forBusinessData: ForBusinessBaseEvent = {\n    uri_info: uriMetrics,\n    experiment_name: context.experimentId,\n    experiment_variation: context.variantId,\n  };\n\n  const events = formatMarketingWebEvents(event, context);\n\n  switch (event.type) {\n    case LoggingEventType.CUSTOM: {\n      switch (event.subscribedEventType) {\n        case SubscribedEventType.FIRST_PAGE_LOAD: {\n          events.push({\n            event_name: 'FOR_BUSINESS_PAGE_VIEW',\n            ...forBusinessData,\n          });\n          break;\n        }\n\n        case SubscribedEventType.PAGE_LOAD: {\n          events.push({\n            event_name: 'FOR_BUSINESS_PAGE_NAVIGATION',\n            ...forBusinessData,\n          });\n          break;\n        }\n      }\n      break;\n    }\n\n    case LoggingEventType.USER_ACTION: {\n      events.push({\n        event_name: 'FOR_BUSINESS_CLICK',\n        ...forBusinessData,\n        event_category: event.component,\n        event_action: event.action,\n        event_label: event.label,\n      });\n      break;\n    }\n  }\n\n  return events;\n};\n", "import type { Event, EventHint } from '@sentry/types';\n\ntype SentryEvent = Event;\ntype SentryEventHint = EventHint;\n\nconst groupByErrors = [\n  \"Can't find variable: ResizeObserver\",\n  'Importing a module script failed.',\n  'o.flush is not a function',\n  'ResizeObserver loop limit exceeded',\n  \"Cannot read properties of null (reading 'querySelector')\",\n];\n\n/**\n * Sentry hooks before sending data to Sentry.\n *\n * Contains filters and grouping rules for both server and client logging\n */\nexport function getBeforeSend<T extends SentryEvent, F extends SentryEventHint>(): (\n  event: T,\n  hint?: F\n) => T | PromiseLike<T | null> | null {\n  return (event: T, _hint?: F): T | PromiseLike<T | null> | null => {\n    const exceptionStackframe = event?.exception?.values?.[0]?.stacktrace?.frames;\n    const exceptionMessage = event.exception?.values?.[0]?.value ?? event.message;\n\n    if (!exceptionMessage && !exceptionStackframe) {\n      // Return early if there's no exception message to parse.\n      return event;\n    }\n\n    // Skip 599 messages. They are always a follow-up to another error.\n    if (exceptionMessage?.includes('599')) {\n      return null;\n    }\n\n    // Group this query execution error. They all point to the same content issue.\n    const unresolvedQueryErrorMatches = exceptionMessage?.match(\n      /Query execution error\\. Link from entry(.*)cannot be resolved/\n    );\n\n    if (unresolvedQueryErrorMatches?.length && unresolvedQueryErrorMatches[0]) {\n      event.fingerprint = [unresolvedQueryErrorMatches[0]];\n      return event;\n    }\n\n    // These errors don't get grouped well because they don't have stack trace - it's usually because\n    // of new deployments that render the old imported module URL invalid.\n    if (exceptionMessage?.includes('Failed to fetch dynamically imported module')) {\n      event.fingerprint = ['Failed to fetch dynamically imported module'];\n      return event;\n    }\n\n    // These errors get thrown a couple times across the stackframe and don't get grouped - just check\n    // the exception message and that it's thrown from `@improbable-web/grpc-web`\n    if (\n      exceptionMessage?.includes('Response closed without headers') &&\n      exceptionStackframe?.some(frame => frame.module?.includes('@improbable-eng/grpc-web'))\n    ) {\n      event.fingerprint = ['[grpc-web] Response closed without headers'];\n      return event;\n    }\n\n    // These errors get thrown from any component that links out. It creates a new issue for each stack trace which\n    // is duplicative. Just group them all together. We have a ticket to investigate the error: https://jira.sc-corp.net/browse/WEBP-9306\n    for (const groupByError of groupByErrors) {\n      if (exceptionMessage?.includes(groupByError)) {\n        event.fingerprint = [groupByError];\n        return event;\n      }\n    }\n\n    return event;\n  };\n}\n", "/* eslint-disable import/no-unused-modules */\nimport { parseError } from '@snapchat/core';\nimport type {\n  BaseEventListenerProps,\n  BasePermission,\n  EmptyObject,\n  EventPayload,\n  LoggedEvent,\n} from '@snapchat/logging';\nimport { AbstractEventListener } from '@snapchat/logging';\n\nimport { customFetch } from '../utils/fetch/customFetch';\n\nconst mwpAuthTokenHeader = 'X-Snap-Mwp-Auth';\n\ntype Props<LoggingContext, CustomEvents> = {\n  /** Interval in ms the events are exported */\n  logTimeIntervalMs?: number;\n  /** Actions to take when an error has been encountered exporting */\n  onError?: (error: Error) => void;\n  /** Function to use to perform post request */\n  fetch?: typeof customFetch;\n  /** Function to provide the current time in ms. Defaults to Date.now */\n  clock?: () => number;\n} & BaseEventListenerProps<LoggingContext, CustomEvents>;\n\n/**\n * Event listener to export client events to /api/events. Includes logic to regularly sync the\n * events when they are needed.\n */\nexport class ClientExportEventListener<\n  LoggingContext extends EmptyObject = EmptyObject,\n  CustomEvents extends EmptyObject = EmptyObject,\n  LoggingPermission extends BasePermission = BasePermission\n> extends AbstractEventListener<LoggingContext, CustomEvents, LoggingPermission> {\n  private readonly props: Props<LoggingContext, CustomEvents>;\n\n  private events: EventPayload<CustomEvents, LoggingContext>[];\n  private timeout?: ReturnType<typeof setTimeout>;\n  private fetch: typeof customFetch;\n  private readonly clock: () => number;\n\n  // TODO: refactor to extract out syncing logic into a reusable class\n\n  constructor(props: Props<LoggingContext, CustomEvents>) {\n    super({ requiredPermissions: ['logging'], filter: props.filter });\n    this.props = props;\n    this.fetch = props.fetch ?? customFetch;\n    this.events = [];\n    this.clock = props.clock ?? Date.now;\n  }\n\n  /** Setup a timeout to trigger an export */\n  private ensureTimeout(): void {\n    if (this.timeout !== undefined) return;\n\n    this.timeout = setTimeout(this.exportEvents, this.props.logTimeIntervalMs);\n  }\n\n  /** Export events to /api/events, including generating authentication token. */\n  private exportEvents = async (): Promise<void> => {\n    // clear timeout, we only set it again if we exported or get new events\n    this.timeout = undefined;\n\n    if (this.events.length === 0) {\n      return;\n    }\n\n    const data = { events: this.getSerializedEvents(), timestamp: this.clock() };\n    this.events = [];\n\n    try {\n      // Hash a subset of the payload\n      const tokenData = { events: [data.events[0]], timestamp: data.timestamp };\n      const hash = await hashData(tokenData);\n      // Base64 encode it\n      const authToken = window.btoa(hash);\n\n      const response = await this.fetch('/api/events', {\n        method: 'POST',\n        body: JSON.stringify(data),\n        headers: {\n          [mwpAuthTokenHeader]: authToken,\n          'Content-Type': 'application/json',\n        },\n      });\n\n      // if response is not good, stop loop\n      if (!response.ok) {\n        const text = await response.text();\n        throw new Error(\n          `Events export request failed - status: ${response.status}, value:${text} `\n        );\n      }\n    } catch (error) {\n      this.props.onError?.(parseError(error));\n    }\n\n    this.ensureTimeout();\n  };\n\n  //==================================================\n  // Event serialization\n  //==================================================\n\n  /**\n   * Extracts the message from the Error object values.\n   *\n   * This is required because JSON.stringify(error) is always '{}' since error fields aren't\n   * enumerable.\n   *\n   * This way we at least send the error message to the server.\n   *\n   * The extraction of the message typically happens when the error is logged, but we make an\n   * exception here so that we don't lose the data.\n   */\n  getSerializedEvents = (): typeof this.events => {\n    return this.events.map(payload => {\n      if (payload.event.type !== 'error') {\n        return payload;\n      }\n\n      const event = payload.event;\n\n      if (event.message || !event.error) {\n        return payload;\n      }\n\n      event.message = parseError(event.error).message;\n      return payload;\n    });\n  };\n\n  //==================================================\n  // Event Listener overrides\n  //==================================================\n\n  /** @override */\n  protected init = (): Promise<void> => {\n    return Promise.resolve();\n  };\n\n  /** @override */\n  protected logEventInternal(\n    event: LoggedEvent<CustomEvents>,\n    context: Partial<LoggingContext>\n  ): void {\n    // we just collect events to push later on\n    this.events.push({ event, context: context ?? {} });\n\n    this.ensureTimeout();\n  }\n\n  /** @override */\n  public flushInternal = async (): Promise<void> => {\n    if (this.timeout) clearTimeout(this.timeout);\n\n    await this.exportEvents();\n  };\n}\n\nasync function hashData(input: string | object): Promise<string> {\n  // Convert the input to a string representation\n  const dataStr = typeof input === 'string' ? input : JSON.stringify(input);\n  const encoder = new TextEncoder();\n  const data = encoder.encode(dataStr);\n\n  const hash = await window.crypto.subtle.digest('SHA-256', data); // Hash the bytes\n\n  // Convert the hash from bytes to a hex string\n  return Array.from(new Uint8Array(hash))\n    .map(byte => byte.toString(16).padStart(2, '0'))\n    .join('');\n}\n", "import type { Event, EventHint } from '@sentry/browser';\nimport type { EventListener, LoggedEvent } from '@snapchat/logging';\nimport { LoggingEventType } from '@snapchat/logging';\nimport {\n  BlizzardClientEventListener,\n  ConsoleClientEventListener,\n  GrapheneClientEventListener,\n  SentryClientEventListener,\n} from '@snapchat/logging-browser';\nimport omit from 'lodash-es/omit';\n\nimport {\n  formatForBusinessEvents,\n  formatMarketingWebEvents,\n} from '../helpers/logging/blizzard/eventFormats';\nimport {\n  BlizzardEventFormat,\n  LoggingVendor,\n  SubscribedEventType,\n} from '../helpers/logging/eventListenerTypes';\nimport { GoogleEventListener } from '../helpers/logging/google/GoogleEventListener';\nimport { logger } from '../helpers/logging/loggingInstance';\nimport type {\n  ExperimentContext,\n  LoggingConfig,\n  LoggingContext,\n  LoggingCustomEvents,\n  LoggingPermissions,\n} from '../helpers/logging/loggingTypes';\nimport { EventOrigin } from '../helpers/logging/loggingTypes';\nimport { getBeforeSend } from '../helpers/logging/sentry';\nimport { ClientExportEventListener } from './ClientExportEventListener';\n\n/** Configuration parameter for SentryClientEventListener class constructor */\ntype SentryProps = ConstructorParameters<\n  typeof SentryClientEventListener<LoggingContext, LoggingCustomEvents, LoggingPermissions>\n>[0];\n\n/** For logger where flush interval is controlled, this is the value we pass in. */\nconst logFlushIntervalMs = 5e3;\n\n/** Returns the value of a cookie. 1-liner to avoid importing a cookie library. */\nfunction getCookie(cookieName: string): string | undefined {\n  return new RegExp(`${cookieName}=([^;]+);`).exec(document.cookie)?.[1];\n}\n\n/** Provides the Snap Pixel cookie id if set. */\nfunction getPixelContext(): { pixelId?: string } {\n  return {\n    pixelId: getCookie('_scid'),\n  };\n}\n\n/** Captor for the latest values of the experiment impression. */\nclass ExperimentContextListener\n  implements EventListener<LoggingContext, LoggingCustomEvents, LoggingPermissions>\n{\n  private readonly experimentContext: ExperimentContext = {};\n\n  /** @override */\n  public logEvent(\n    event: LoggedEvent<LoggingCustomEvents>,\n    _context: Partial<LoggingContext>\n  ): void {\n    if (\n      event.type === LoggingEventType.CUSTOM &&\n      event.subscribedEventType === SubscribedEventType.EXPERIMENT_IMPRESSION\n    ) {\n      if (!event.experimentId) {\n        this.experimentContext.experimentId = undefined;\n        this.experimentContext.variantId = undefined;\n      } else {\n        this.experimentContext.experimentId = event.experimentId;\n        this.experimentContext.variantId = event.variantId;\n      }\n    }\n  }\n\n  public getExperimentContext = (): ExperimentContext => this.experimentContext;\n\n  // TODO: Consider moving these overrides to SyncEventListener..\n\n  /** @override */\n  allow = () => Promise.resolve();\n  /** @override */\n  deny = () => Promise.resolve();\n  /** @override */\n  flush = () => Promise.resolve();\n}\n\nexport const initializeClientLogging = (config: LoggingConfig): void => {\n  // Do not log inside tests.\n  if (config.isTest || !config.isClient) return;\n\n  logger.addContextProvider(() => ({\n    region: config.region,\n    buildNumber: config.buildNumber,\n    eventOrigin: EventOrigin.CLIENT,\n  }));\n\n  // Adds the experiment context provider.\n  const experimentContextListener = new ExperimentContextListener();\n  logger.addEventListeners(experimentContextListener);\n  logger.addContextProvider(() => experimentContextListener.getExperimentContext());\n\n  // Adds the snap pixel context provider.\n  logger.addContextProvider(getPixelContext);\n\n  // Add web client id if sc-wcid cookie is set.\n  logger.addContextProvider(() => ({\n    webClientId: getCookie('sc-wcid'),\n  }));\n\n  for (const eventListenerConfig of config.trackingSettings.eventListeners) {\n    switch (eventListenerConfig.vendor) {\n      case LoggingVendor.GRAPHENE: {\n        if (!config.isCompilationModeProd || !config.isDeploymentTypeProd || !config.buildNumber) {\n          break;\n        }\n\n        logger.addEventListeners(\n          new GrapheneClientEventListener<LoggingContext, LoggingCustomEvents, LoggingPermissions>({\n            useAsync: true,\n            flavor: config.isDeploymentTypeProd ? 'production' : 'development',\n            partitionName: eventListenerConfig.partitionName,\n            getAdditionalDimensions: context => ({\n              // only for csp violations, will not be populated for others.\n              // TODO refactor to combine getMetricName and getAdditionalDimensions\n              blockedUri: context.blockedUri,\n              sourceFile: context.sourceFile,\n              violatedDirective: context.violatedDirective,\n\n              // only for contentful errors, may not be populated for others.\n              errorCode: context.errorCode,\n              errorName: context.errorName,\n\n              // All others\n              region: context.region, // Useful for graphene charting\n              path: context.path, // Useful for debugging\n              locale: context.locale, // Useful for debugging\n              uaBrand: context.uaBrand,\n              uaPlatform: context.uaPlatform,\n            }),\n            logTimeInterval: logFlushIntervalMs,\n            // These are overrides from the default ones for legacy reasons.\n            // TODO: Consolidate with the one initializeServerLogging.\n            getMetricName(event, _context) {\n              switch (event.type) {\n                case LoggingEventType.TIMING: {\n                  return 'app_measure_event';\n                }\n\n                case LoggingEventType.VALUE: {\n                  return 'app_measure_event';\n                }\n\n                case LoggingEventType.USER_ACTION: {\n                  return 'user_event';\n                }\n\n                case LoggingEventType.ERROR: {\n                  if (event.component === 'Csp') {\n                    return 'csp_error';\n                  }\n\n                  if (event.component === 'Contentful') {\n                    return 'contentful_error';\n                  }\n                }\n              }\n\n              // Fallback to defaults for other events.\n              return null;\n            },\n            variant: config.site,\n          })\n        );\n        break;\n      }\n\n      case LoggingVendor.MWP_HERMES: {\n        if (!config.isCompilationModeProd || !config.isDeploymentTypeProd || !config.buildNumber) {\n          break;\n        }\n\n        logger.addEventListeners(\n          new ClientExportEventListener({\n            useAsync: true,\n            logTimeIntervalMs: logFlushIntervalMs,\n            onError: error => console.error(error),\n          })\n        );\n        break;\n      }\n\n      case LoggingVendor.GOOGLE_TAG_MANAGER: {\n        // TODO: Pass in nonce a a prop.\n        const nonce = document.querySelector<HTMLScriptElement>('script[nonce]')?.nonce;\n        const gtmEventListener = new GoogleEventListener({\n          useAsync: true,\n          gtmId: eventListenerConfig.googleTagManagerId,\n          nonce,\n        });\n\n        logger.addEventListeners(gtmEventListener);\n\n        // GTM needs to be allowed to run by confirming that the client isn't in\n        // California. This is because of CCPA restrictions.\n        gtmEventListener.checkRegion();\n        break;\n      }\n\n      case LoggingVendor.BLIZZARD: {\n        const formatter =\n          eventListenerConfig.eventFormat === BlizzardEventFormat.FOR_BUSINESS\n            ? formatForBusinessEvents\n            : formatMarketingWebEvents;\n\n        logger.addEventListeners(\n          new BlizzardClientEventListener<LoggingContext, LoggingCustomEvents, LoggingPermissions>({\n            useAsync: true,\n            isProd: config.isDeploymentTypeProd,\n            cookieDomain: config.trackingSettings.cookieDomain,\n            eventFormatter: formatter,\n          })\n        );\n        break;\n      }\n\n      case LoggingVendor.SENTRY: {\n        // TODO: Re-enable sentry on staging. Disabled to avoid regression tests\n        // using up all of sentry quota.\n        if (!config.isDeploymentTypeProd) {\n          break;\n        }\n\n        // Sentry Listener configuration\n        const sentryProps: SentryProps = {\n          dsn: eventListenerConfig.dsn,\n          tracesSampleRate: 1.0,\n          useAsync: true,\n          getFlatContext: context => ({\n            region: context.region,\n          }),\n          environment: config.deploymentType,\n          release: `${eventListenerConfig.projectName}@${config.buildNumber}`,\n          filter(event, _context) {\n            // Skip CSP errors because they are very spammy and already logged in Graphene\n            if (event.type === LoggingEventType.ERROR && event.component === 'Csp') {\n              return false;\n            }\n\n            // Else log other events.\n            return true;\n          },\n          // We can adjust grouping rules before sending an event\n          beforeSend: getBeforeSend<Event, EventHint>(),\n        };\n\n        // Only specify `allowUrls` property if defined in config, otherwise fallback to default\n        if (eventListenerConfig.allowUrls) {\n          sentryProps.allowUrls = eventListenerConfig.allowUrls;\n        }\n\n        logger.addEventListeners(\n          new SentryClientEventListener<LoggingContext, LoggingCustomEvents, LoggingPermissions>(\n            sentryProps\n          )\n        );\n        break;\n      }\n\n      case LoggingVendor.CONSOLE: {\n        logger.addEventListeners(\n          new ConsoleClientEventListener<LoggingContext, LoggingCustomEvents, LoggingPermissions>({\n            filter(event, _context) {\n              // Skip Contentful: requestDuration=XXXms because it's very spammy.\n              if (\n                event.type === LoggingEventType.TIMING &&\n                event.component === 'Contentful' &&\n                event.variable === 'request_duration' &&\n                event.valueMs < 1e3\n              ) {\n                return false;\n              }\n\n              // Else log other events.\n              return true;\n            },\n            customEventFormatter(event, _context) {\n              if (event.subscribedEventType === SubscribedEventType.EXPERIMENT_IMPRESSION) {\n                if (!event.experimentId || !event.variantId) return null;\n                return `Experiment: Impression on ${event.experimentId}.${event.variantId}`;\n              }\n\n              // Dump other custom events.\n              return [omit(event, 'type')];\n            },\n          })\n        );\n        break;\n      }\n    }\n  }\n};\n", "import { logger } from '../helpers/logging/loggingInstance';\nimport type { LoggingConfig } from '../helpers/logging/loggingTypes';\n\n/**\n * Attempts with different deferral values (on citizen.snap.com) and Lighthouse Perfromance (Mobile)\n * scores:\n *\n *     10 seconds: 74, 72\n *     9  seconds: Skip\n *     8  seconds: Skip\n *     7  seconds: 72, 72\n *     6  seconds: 72, 74, 69, 74, 78\n *     5  seconds: 79, 76, 73, 74, 73\n *     4  seconds: 72, 74, 73, 72, 75\n *     3  seconds: 61, 73, 67, 58, 72\n *     2  seconds: 71, 69, 70, 70, 69\n *     1  seconds: Skip\n *     0  seconds: 69, 70\n *\n * Based on the table above, we're targeting 5 seconds since we want to avoid never logging too many\n * bounced visits.\n */\nconst loggingInitTimeoutMs = 5e3;\n\n/**\n * Gives the logger the logging permission.\n *\n * This triggers async downloads of the logging libs which has implications.\n */\nexport function startClientLogging(config: LoggingConfig): void {\n  // logging client initialization occurs outside of React, so need to handle default behaviors here.\n  const disableLazyLoadLogging =\n    config.featureFlags?.disableLazyLoadLogging === 'true' || !config.isDeploymentTypeProd;\n\n  const loggingScheduleStart = performance.now();\n\n  const allowLogging = () => {\n    void logger.allow('logging');\n    const loggingAllowTrigger = performance.now();\n\n    logger.logTiming({\n      component: 'logInit',\n      variable: 'allowLogging',\n      valueMs: loggingAllowTrigger - loggingScheduleStart,\n    });\n  };\n\n  if (disableLazyLoadLogging) {\n    // This has an effect of greatly slowing down website rendering because logging\n    // packages are very cumbersome, but this way there are less missed user sessions.\n    setTimeout(allowLogging, 10);\n  } else if (typeof globalThis.requestIdleCallback === 'function') {\n    // If we can, we wait for the network to be idle before loading logging packages.\n    // Though we only check after 1 second, to allow for the initial rendering to\n    // finish (on fast machines anyway). Without the delay, idle callback fires too soon.\n    setTimeout(() => {\n      requestIdleCallback(allowLogging, { timeout: loggingInitTimeoutMs });\n    }, 1e3);\n  } else if (typeof globalThis.requestAnimationFrame === 'function') {\n    // For legacy browsers, we wait for the end of the JS loop via setTimeout and then\n    // wait for for the layout to finish allowing for one JS + render cycle to complete\n    // before loading the logging packages.\n    setTimeout(() => {\n      requestAnimationFrame(allowLogging);\n    }, 1e3);\n  } else {\n    // If all else fails, we have a long delay before initializing logging.\n    setTimeout(allowLogging, loggingInitTimeoutMs);\n  }\n}\n", "import type { ExecutionResult } from \"graphql\";\n\nimport type { NetworkError, GraphQLErrors } from \"../../errors/index.js\";\nimport { Observable } from \"../../utilities/index.js\";\nimport type { Operation, FetchResult, NextLink } from \"../core/index.js\";\nimport { ApolloLink } from \"../core/index.js\";\n\nexport interface ErrorResponse {\n  graphQLErrors?: GraphQLErrors;\n  networkError?: NetworkError;\n  response?: ExecutionResult;\n  operation: Operation;\n  forward: NextLink;\n}\n\nexport namespace ErrorLink {\n  /**\n   * Callback to be triggered when an error occurs within the link stack.\n   */\n  export interface ErrorHandler {\n    (error: ErrorResponse): Observable<FetchResult> | void;\n  }\n}\n\n// For backwards compatibility.\nexport import ErrorHandler = ErrorLink.ErrorHandler;\n\nexport function onError(errorHandler: ErrorHandler): ApolloLink {\n  return new ApolloLink((operation, forward) => {\n    return new Observable((observer) => {\n      let sub: any;\n      let retriedSub: any;\n      let retriedResult: any;\n\n      try {\n        sub = forward(operation).subscribe({\n          next: (result) => {\n            if (result.errors) {\n              retriedResult = errorHandler({\n                graphQLErrors: result.errors,\n                response: result,\n                operation,\n                forward,\n              });\n\n              if (retriedResult) {\n                retriedSub = retriedResult.subscribe({\n                  next: observer.next.bind(observer),\n                  error: observer.error.bind(observer),\n                  complete: observer.complete.bind(observer),\n                });\n                return;\n              }\n            }\n            observer.next(result);\n          },\n          error: (networkError) => {\n            retriedResult = errorHandler({\n              operation,\n              networkError,\n              //Network errors can return GraphQL errors on for example a 403\n              graphQLErrors:\n                networkError &&\n                networkError.result &&\n                networkError.result.errors,\n              forward,\n            });\n            if (retriedResult) {\n              retriedSub = retriedResult.subscribe({\n                next: observer.next.bind(observer),\n                error: observer.error.bind(observer),\n                complete: observer.complete.bind(observer),\n              });\n              return;\n            }\n            observer.error(networkError);\n          },\n          complete: () => {\n            // disable the previous sub from calling complete on observable\n            // if retry is in flight.\n            if (!retriedResult) {\n              observer.complete.bind(observer)();\n            }\n          },\n        });\n      } catch (e) {\n        errorHandler({ networkError: e as Error, operation, forward });\n        observer.error(e);\n      }\n\n      return () => {\n        if (sub) sub.unsubscribe();\n        if (retriedSub) sub.unsubscribe();\n      };\n    });\n  });\n}\n\nexport class ErrorLink extends ApolloLink {\n  private link: ApolloLink;\n  constructor(errorHandler: ErrorLink.ErrorHandler) {\n    super();\n    this.link = onError(errorHandler);\n  }\n\n  public request(\n    operation: Operation,\n    forward: NextLink\n  ): Observable<FetchResult> | null {\n    return this.link.request(operation, forward);\n  }\n}\n", "import type {\n  Cache,\n  DataProxy,\n  InMemoryCacheConfig,\n  NormalizedCacheObject,\n  OperationVariables,\n  PossibleTypesMap,\n  Reference,\n} from '@apollo/client';\nimport { defaultDataIdFromObject, InMemoryCache, isReference } from '@apollo/client';\nimport type {\n  KeyFieldsFunction,\n  TypePolicies,\n  TypePolicy,\n} from '@apollo/client/cache/inmemory/policies';\n\nimport type { ContentfulSysProps } from '../../types/contentful';\nimport { getTracer } from '../tracing';\nimport { getQueryName } from './getQueryName';\n\n/** Our overwrides of the Apollo in memory cache. */\nclass ContentfulInMemoryCache extends InMemoryCache {\n  writeQuery<TD, TV>(options: DataProxy.WriteQueryOptions<TD, TV>): Reference | undefined {\n    const trace = getTracer().startSpan(`InMemoryCache.writeQuery: ${getQueryName(options.query)}`);\n    const result = super.writeQuery(options);\n    trace.endSpan();\n    return result;\n  }\n\n  diff<TData, TVariables extends OperationVariables = OperationVariables>(\n    options: Cache.DiffOptions<TData, TVariables>\n  ): DataProxy.DiffResult<TData> {\n    const trace = getTracer().startSpan(`InMemoryCache.diff: ${getQueryName(options.query)}`);\n    const result = super.diff(options);\n    trace.endSpan();\n    return result;\n  }\n\n  readQuery<QueryType, TVariables = unknown>(\n    options: Cache.ReadQueryOptions<QueryType, TVariables>,\n    optimistic?: boolean | undefined\n  ): QueryType | null {\n    const trace = getTracer().startSpan(`InMemoryCache.readQuery: ${getQueryName(options.query)}`);\n    const result = super.readQuery(options, optimistic);\n    trace.endSpan();\n    return result;\n  }\n}\n\n/**\n * Creates an InMemoryCache for apollo that is catered to be used w/ Contentful.\n *\n * Namely it tells the memory processor the shape of the objects, so that every \"Entry\" is known to\n * have a \"sys.id\".\n */\nexport function createContentfulCache(\n  fragments: PossibleTypesMap,\n  apolloState?: NormalizedCacheObject\n): ContentfulInMemoryCache {\n  const keyFields: KeyFieldsFunction = (storeObject, context) => {\n    const entry = storeObject as unknown as ContentfulSysProps;\n\n    if (entry.sys?.id) {\n      return `${context.typename}:${entry.sys.id}`;\n    }\n\n    if (isReference(entry.sys)) {\n      return `${context.typename}:${entry.sys.__ref.split(':')[1]}`;\n    }\n\n    // This isn't a hard error, so we don't log it. It's meant to warn developers that they didn't\n    // include the sys props. And this isn't a warning because some pages throw 1000s of these and\n    // collecting stack traces crashes the page.\n    console.info(\n      `Apollo Query missing { sys { id }}. Add '...ContentfulSysId' field. Type: ${context.typename}`\n    );\n\n    return defaultDataIdFromObject(storeObject);\n  };\n\n  // See: https://www.apollographql.com/docs/react/caching/cache-configuration#typepolicy-fields\n  const typePolicies: TypePolicies = Object.fromEntries(\n    fragments.Entry!.flatMap(typeName => [\n      // [`${typeName}Collection`, { keyFields: [] } as TypePolicy],\n      [typeName, { keyFields } as TypePolicy],\n    ])\n  );\n\n  const cacheOptions: InMemoryCacheConfig = {\n    possibleTypes: fragments,\n    typePolicies,\n  };\n\n  const cache = new ContentfulInMemoryCache(cacheOptions);\n\n  if (apolloState) {\n    const restoreSpan = getTracer().startSpan('restoringContentfulCache');\n    cache.restore(apolloState);\n    restoreSpan.endSpan();\n  }\n\n  return cache;\n}\n", "import { ApolloLink, Observable } from '@apollo/client';\n\nimport { logTiming } from '../../helpers/logging';\n\n/* NOTE:\n   There is a limitation with Apollo where you need to wrap operations in new Operation/Observer\n   rather than append additional subcribers.  Appending causes the operation to be fired multiple times.\n   Relevant GitHub Thread: https://github.com/apollographql/apollo-link/issues/298\n\n   Implementation is based on this example from the Apollo GraphQL repository:\n   https://github.com/apollographql/apollo-link/blob/638b78672a9b4adc5283e5710150da701e8e4bbd/packages/apollo-link-error/src/index.ts\n */\n\n/**\n * Apollo link that records request latency.\n *\n * Tries to extract helpful headers from the contentful response.\n *\n * This is meant to be used as a debugging log tool for troubleshooting responses from contentful.\n */\nexport const requestLatencyLogLink = new ApolloLink((operation, forward) => {\n  const queryName = operation.operationName;\n  const locale = operation.variables.locale ?? 'en-US';\n  const eventCategory = 'Contentful';\n  const eventVariable = 'request_duration';\n  const requestUrl = operation.getContext().currentUrl as string;\n  // NOTE: We log the path now to be able to analyze slower queries on certain sites/pages.\n\n  const requestPath = requestUrl ? new URL(requestUrl).pathname : '/';\n  // TODO: Consider adding request complexity and response size here.\n  const logContext = {\n    queryName,\n    locale,\n    requestPath,\n  };\n\n  // This is a wrapper around the original operation that we can use to measure latency.\n  return new Observable(latencyObserver => {\n    // NOTE: Setting this here has some overhead, but it's typically <0.01ms.\n    operation.setContext({ startMs: performance.now() });\n\n    const subscription = forward(operation).subscribe({\n      // Forward to next link in the chain.\n      next: result => {\n        latencyObserver.next(result);\n      },\n\n      // Fires on going back up the chain on success.\n      complete: () => {\n        const durationMs = performance.now() - operation.getContext().startMs;\n        const response = operation.getContext().response as Response;\n        const responseStatus = response?.status ?? 200;\n\n        logTiming({\n          eventCategory,\n          eventVariable,\n          eventValue: durationMs,\n          context: {\n            ...logContext,\n            responseStatus,\n            contentfulRequestStatus: 'complete',\n            // NOTE: These headers aren't being logged on the client for some reason.\n            // TODO: Figure out why. They're in the network tab but are absent from the headers here.\n            // Works fine on the server.\n            'x-contentful-region': response?.headers?.get('x-contentful-region'),\n            'x-cache': response?.headers?.get('x-cache'),\n            // When contentful support is contacted, they want these request ids provided to them.\n            'x-contentful-request-id': response?.headers?.get('x-contentful-request-id'),\n            'x-served-by': response?.headers?.get('x-served-by'),\n          },\n        });\n\n        latencyObserver.complete();\n      },\n\n      // Fires on going back up the chain on error.\n      error: error => {\n        const durationMs = performance.now() - operation.getContext().startMs;\n        const response = operation.getContext().response as Response;\n        const responseStatus = response?.status ?? 500;\n\n        logTiming({\n          eventCategory,\n          eventVariable,\n          eventValue: durationMs,\n\n          context: {\n            ...logContext,\n            responseStatus,\n            // NOTE: The error is logged in a separate link and does not need to be replicated here.\n            contentfulRequestStatus: 'error',\n            // NOTE: These headers aren't being logged on the client for some reason.\n            // TODO: Figure out why. They're in the network tab but are absent from the headers here.\n            // Works fine on the server.\n            'x-contentful-region': response?.headers?.get('x-contentful-region'),\n            'x-cache': response?.headers?.get('x-cache'),\n            // When contentful support is contacted, they want these request ids provided to them.\n            'x-contentful-request-id': response?.headers?.get('x-contentful-request-id'),\n            'x-served-by': response?.headers?.get('x-served-by'),\n          },\n        });\n\n        latencyObserver.error(error);\n      },\n    });\n\n    return () => {\n      subscription.unsubscribe();\n    };\n  });\n});\n", "import type {\n  HttpOptions,\n  NormalizedCacheObject,\n  PossibleTypesMap,\n  ServerError,\n} from '@apollo/client';\nimport { ApolloClient, ApolloLink, createHttpLink } from '@apollo/client';\nimport { onError } from '@apollo/client/link/error';\nimport { RetryLink } from '@apollo/client/link/retry';\nimport { parseError } from '@snapchat/core';\nimport { contentfulRetryCount } from '@snapchat/mw-common';\nimport type { ASTNode, GraphQLError } from 'graphql';\nimport { stripIgnoredCharacters } from 'graphql';\n\nimport { Config } from '../../config';\nimport type { ContentfulConfiguration } from '../../configTypes';\nimport { logError, logInfo } from '../../helpers/logging';\nimport { customFetch } from '../fetch/customFetch';\nimport { getTracer } from '../tracing';\nimport { createContentfulCache } from './ContentfulCache';\nimport { getQueryName } from './getQueryName';\nimport { requestLatencyLogLink } from './RequestLatencyLogLink';\n\nconst defaultUrl = 'https://unknown.url';\n\n/** Contentful errors taken from: https://www.contentful.com/developers/docs/references/errors/ */\nconst contentfulNetworkErrorNames = new Map<number, string>()\n  .set(400, 'BadRequest')\n  .set(401, 'AccessTokenInvalid')\n  .set(403, 'AccessDenied')\n  .set(404, 'NotFound')\n  .set(409, 'VersionMismatch')\n  .set(422, 'ValidationFailed')\n  .set(429, 'RateLimitExceeded')\n  .set(500, 'ServerError')\n  .set(502, 'Hibernated');\n\n/** Returns HttpOptions for making requests to contentful. */\nexport const getContentfulHttpOptions = (config: ContentfulConfiguration): HttpOptions => {\n  const uri = config.environmentName\n    ? `https://graphql.contentful.com/content/v1/spaces/${config.spaceId}/environments/${config.environmentName}`\n    : `https://graphql.contentful.com/content/v1/spaces/${config.spaceId}`;\n\n  const headers: Record<string, string> = {\n    Authorization: `Bearer ${Config.isPreview ? config.previewAccessToken : config.accessToken}`,\n  };\n\n  // Jul 7, 2023 Temporarily adding this because we want to debug\n  // We need to monitor if this has any performance impact when we include this header\n  if (!Config.isClient) {\n    headers['fastly-debug'] = '1';\n  }\n\n  return {\n    uri,\n    credentials: 'same-origin',\n    headers,\n    fetch: customFetch,\n    print(ast: ASTNode, originalPrint: (ast: ASTNode) => string) {\n      return stripIgnoredCharacters(originalPrint(ast));\n    },\n  };\n};\n\n/**\n * Creates a new contentful apollo client. See ApolloLink documentation:\n * https://www.apollographql.com/docs/react/api/link/introduction/\n */\nexport const createContentfulClient = (\n  config: ContentfulConfiguration,\n  fragments: PossibleTypesMap,\n  apolloState?: NormalizedCacheObject\n): ApolloClient<NormalizedCacheObject> => {\n  // Retry link that will retry failed requests.\n  const retryLink = new RetryLink({\n    delay: {\n      max: 100 /* milliseconds */,\n    },\n    attempts: {\n      max: contentfulRetryCount,\n      retryIf: (error, operation) => {\n        if (error) {\n          const parsedError = parseError(error);\n          const response = operation.getContext().response as Response | undefined;\n          const responseCode = response?.status ?? 500;\n          // NOTE: we can only retry retriable errors.\n          // Other ones like 401 or 400 cannot be retried as we expect the result to be the same.\n          const shouldRetry = responseCode === 429 || (responseCode >= 500 && responseCode < 600);\n\n          if (shouldRetry) {\n            logInfo({\n              eventAction: 'RetryFetch',\n              eventCategory: 'Apollo',\n              eventLabel: getQueryName(operation.query),\n              context: {\n                responseCode: String(responseCode),\n                errorMessage: parsedError.message,\n                'x-contentful-region': response?.headers?.get('x-contentful-region'),\n                'x-cache': response?.headers?.get('x-cache'),\n                'x-contentful-request-id': response?.headers?.get('x-contentful-request-id'),\n              },\n            });\n          }\n\n          return shouldRetry;\n        }\n\n        return false;\n      },\n    },\n  });\n\n  // Link that will record errors whn they occur.\n  const onErrorLink = onError(({ graphQLErrors, networkError, operation }) => {\n    if (graphQLErrors) {\n      graphQLErrors.forEach((error: GraphQLError) => {\n        // Contentful can fire a number of errors and still return partial results - see table in reference link:\n        // https://www.contentful.com/developers/docs/references/graphql/#/reference/graphql-errors/graphql-errors-explained\n        const contentfulErrorCode: string | undefined = error.extensions?.contentful?.code;\n        const response = operation.getContext().response as Response | undefined;\n\n        logError({\n          component: 'Contentful',\n          error,\n          // reusing existing action dimension to be consistent with other error events\n          action: 'GraphQlError',\n          message: error.message,\n          context: {\n            errorName: contentfulErrorCode?.toLowerCase() ?? 'unknown',\n            variables: JSON.stringify(operation.variables),\n            queryName: getQueryName(operation.query),\n            queryPath: error.path?.join(','),\n            locations: error.locations?.join(','),\n            requestUrl: operation.getContext().currentUrl as string | undefined,\n            'x-contentful-region': response?.headers?.get('x-contentful-region'),\n            'x-cache': response?.headers?.get('x-cache'),\n            'x-contentful-request-id': response?.headers?.get('x-contentful-request-id'),\n          },\n        });\n      });\n    }\n\n    if (networkError) {\n      const serverError =\n        networkError.name === 'ServerError' ? (networkError as ServerError) : undefined;\n\n      const response = operation.getContext().response as Response | undefined;\n      const errorCode = serverError?.statusCode ?? 599;\n      // This might be similar to 'networkError.name'.\n      const errorName = contentfulNetworkErrorNames.get(errorCode) ?? 'Unknown';\n\n      logError({\n        component: 'Contentful',\n        error: networkError,\n        // reusing existing action dimension to be consistent with other error events\n        action: 'NetworkError',\n        message: `${networkError.name}/${errorName} (${errorCode})`,\n        context: {\n          name: networkError.name,\n          errorCode,\n          errorName,\n          url: new URL(serverError?.response?.url ?? defaultUrl),\n          requestUrl: operation.getContext().currentUrl,\n          'x-contentful-region': response?.headers?.get('x-contentful-region'),\n          'x-cache': response?.headers?.get('x-cache'),\n          'x-contentful-request-id': response?.headers?.get('x-contentful-request-id'),\n        },\n      });\n    }\n  });\n\n  /** Link that adds tracing spans out outpoing requests. */\n  const tracingApolloLink = new ApolloLink((operation, forward) => {\n    const traceSpan = getTracer().startSpan(`ApolloQuery: ${operation.operationName}`);\n    return forward(operation).map(result => {\n      traceSpan.endSpan();\n      return result;\n    });\n  });\n\n  const link: ApolloLink = ApolloLink.from([\n    tracingApolloLink,\n    requestLatencyLogLink,\n    onErrorLink,\n    retryLink,\n    createHttpLink(getContentfulHttpOptions(config)),\n  ]);\n\n  const client = new ApolloClient({\n    link,\n    cache: createContentfulCache(fragments, apolloState),\n    ssrMode: !Config.isClient, // This var is essentially isServer.\n    ssrForceFetchDelay: Config.isSSR ? 100 : 0, // Duration of time to flash SSR content (In milliseconds)\n  });\n\n  return client;\n};\n", "import type { ApolloClient, NormalizedCacheObject } from '@apollo/client';\n\nimport { Config } from '../../config';\nimport { createContentfulClient } from './ContentfulProvider';\n\n/**\n * This is the interval at which we reset apollo clients.\n *\n * On the server this happens with no state to restore, so the cache gets wiped allowing us to\n * garbage collect previously stored quries.\n *\n * Mote that this delay is how long it can take to see changes in prod.\n */\nconst cacheExpirationTimeMs = 30_000;\n\n/**\n * Map from locale to apollo cache. We need to have a separate map per locale.\n *\n * The Apollo Client Team recommends creating a new client per SSR request:\n * https://github.com/apollographql/apollo-client/issues/7942#issuecomment-812540838 We won't go\n * that far yet, but we will recycle the Apollo client and cache periodically to address the memory\n * leak issues.\n *\n * The map values include both active client and factory method used for replacing the client.\n */\nconst apolloClientMap = new Map<\n  string,\n  [ApolloClient<NormalizedCacheObject>, () => ApolloClient<NormalizedCacheObject>]\n>();\n\n// We don't want the cache to persist forever, so we clear the cache every now and then by replacing the Apollo Client.\n// Currently set to every 30 seconds on the server-side.\nif (!Config.isClient && !Config.isTest) {\n  setInterval(() => {\n    for (const [locale, [_, clientFactory]] of Array.from(apolloClientMap.entries())) {\n      const newClient = clientFactory();\n      apolloClientMap.set(locale, [newClient, clientFactory]);\n    }\n  }, cacheExpirationTimeMs);\n}\n\n/** Returns a new apollo client for options or returns one from cache. */\nexport const getOrCreateApolloClient = (\n  locale: string,\n  options: Parameters<typeof createContentfulClient>\n): ApolloClient<NormalizedCacheObject> => {\n  // No caches on dev/staging servers.\n  if (Config.isPreview) {\n    return createContentfulClient(...options);\n  }\n\n  const spaceId = options[0].spaceId;\n  const apolloClientMapKey = `${spaceId}/${locale}`;\n\n  // If previous version exists, return it.\n  if (apolloClientMap.has(apolloClientMapKey)) {\n    const [client] = apolloClientMap.get(apolloClientMapKey)!;\n    return client;\n  }\n\n  // Else populate the cache with a new client and a factory to reset it.\n  const client = createContentfulClient(...options);\n  apolloClientMap.set(apolloClientMapKey, [client, () => createContentfulClient(...options)]);\n  return client;\n};\n", "import { Config } from '../../config';\nimport type { ContentfulConfiguration } from '../../configTypes';\nimport { UrlParameter } from '../../constants/urlParameters';\n\n/**\n * Applies URL overrides to a contentful configuration.\n *\n * Currently only supports the 'contentfulEnvironmentName' param.\n */\nexport function applyUrlOverrides(\n  config: ContentfulConfiguration,\n  params: URLSearchParams\n): ContentfulConfiguration {\n  if (Config.isDeploymentTypeProd) {\n    return config;\n  }\n  const newConfig = {\n    ...config,\n    environmentName: params.get(UrlParameter.CONTENTFUL_ENVIRONMENT_NAME) ?? config.environmentName,\n  };\n\n  return newConfig;\n}\n", "import type { PossibleTypesMap } from '@apollo/client';\nimport memoizeAsync from 'promise-memoize';\n\nimport type { ContentfulConfiguration } from '../../configTypes';\nimport { customFetch } from '../fetch/customFetch';\nimport { getTracer } from '../tracing';\nimport { getContentfulHttpOptions } from './ContentfulProvider';\n\n/**\n * Returns the fragment map (i.e. what types Entry interface maps to etc).\n *\n * This is based on this code:\n * https://www.apollographql.com/docs/react/data/fragments/#generating-possibletypes-automatically\n */\nexport const generateFragmentTypes = memoizeAsync(\n  async (config: ContentfulConfiguration): Promise<PossibleTypesMap> => {\n    const httpOptions = getContentfulHttpOptions(config);\n    const trace = getTracer().startSpan('generateFragmentTypes');\n    const possibleTypesResponse = await customFetch(httpOptions.uri as string, {\n      method: 'POST',\n      headers: {\n        Authorization: httpOptions.headers?.Authorization ?? '',\n        'Content-Type': 'application/json',\n      },\n      body: JSON.stringify({\n        variables: {},\n        // Minified sincewe don't have a way to minify this otherwise.\n        query: '{__schema{types{kind name possibleTypes{name}}}}',\n      }),\n    });\n\n    const possibleTypesData = await possibleTypesResponse.json();\n\n    if (!possibleTypesData.data) {\n      throw Error(`Schema request failed: ${JSON.stringify(possibleTypesData)}`);\n    }\n\n    const parsedFragmentTypes = parseFragmentTypeData(possibleTypesData.data);\n\n    trace.endSpan();\n    return parsedFragmentTypes;\n  }\n);\n\ntype FragmentTypeSchema = {\n  __schema: {\n    types: {\n      kind: string;\n      name: string;\n      possibleTypes?: { name: string }[] | null;\n    }[];\n  };\n};\n\nexport function parseFragmentTypeData(data: FragmentTypeSchema): PossibleTypesMap {\n  const possibleTypeMap: PossibleTypesMap = {};\n\n  data.__schema.types.forEach(supertype => {\n    if (supertype.possibleTypes) {\n      possibleTypeMap[supertype.name] = supertype.possibleTypes.map(\n        (subtype: { name: string }) => subtype.name\n      );\n    }\n  });\n\n  return possibleTypeMap;\n}\n", "import type {\n  RunningTrace,\n  Tracer,\n  TracerEventListener,\n  TracerListenerRemover,\n} from './tracingTypes';\nimport { TraceLifeCycleState } from './tracingTypes';\n\nexport class BrowserTracer implements Tracer {\n  private spanCount = 0;\n  private listeners: Set<TracerEventListener> = new Set();\n  private activeEvents = 0;\n\n  startSpan: (name: string) => RunningTrace = (name: string) => {\n    const markName = `${this.spanCount++}: ${name}`;\n\n    // Pre event trace handling\n    this.activeEvents++;\n\n    this.listeners.forEach(listener =>\n      listener(markName, name, TraceLifeCycleState.START, this.activeEvents)\n    );\n\n    performance.mark(`${markName} start`);\n    return { endSpan: () => this.endSpan(name, markName) };\n  };\n\n  private endSpan: (name: string, internalTrackingName: string) => void = (name, markName) => {\n    performance.mark(`${markName} end`);\n    performance.measure(name, `${markName} start`, `${markName} end`);\n    // Record performance in dev tools to see these spans.\n\n    // Post event tracing handling\n    this.activeEvents--;\n\n    this.listeners.forEach(listener =>\n      listener(markName, name, TraceLifeCycleState.END, this.activeEvents)\n    );\n  };\n\n  addEventListener = (callback: TracerEventListener): TracerListenerRemover => {\n    this.listeners.add(callback);\n\n    return () => {\n      this.listeners.delete(callback);\n    };\n  };\n}\n", "// TODO use Config.trackingSettings.cookieDomain\nexport const allowedDomains = new Set([\n  '.snapchat.com',\n  '.snap.com',\n  '.arcadiacreativestudio.com',\n  '.pixy.com',\n  '.yellowla.com',\n  // dev/staging\n  '.snap-dev.net',\n  '.sc-corp.net',\n  'localhost',\n]);\nexport const essentialSessionCookieName = 'EssentialSession';\nexport const webClientIdName = 'sc-wcid';\n", "import { gdprCountries } from '@snapchat/mw-common';\nimport { getTopLevelDomain } from '@snapchat/parse-domain';\n\nimport type { UserLocation } from '../../AppContext';\nimport type { CookieManager, CookieOptions } from '../cookies/CookieManager';\nimport type { CreateUuidV4 } from '../uuid/uuidFactory';\nimport {\n  allowedDomains,\n  essentialSessionCookieName,\n  webClientIdName,\n} from './webClientIdConstants';\n\ntype EnsureWebClientIdArgs = {\n  currentUrl: URL;\n  userLocation: UserLocation;\n  cookieManager: CookieManager;\n  createUuidV4: CreateUuidV4;\n};\n\n/**\n * Returns the current `sc-wcid` value.\n *\n * If one doesn't exist, creates it and sets the cookie.\n *\n * If one isn't allowed to be stored, returns undefined.\n *\n * This code is inteded to be used on server and client-side, so all of the implementation details\n * are abstracted.\n *\n * This is inspired by\n * https://github.sc-corp.net/Snapchat/web/blob/main/common/sc-cookies/lib/sc-cookies.ts\n */\nexport function ensureWebClientId(args: EnsureWebClientIdArgs): string | undefined {\n  const { currentUrl, userLocation, cookieManager, createUuidV4 } = args;\n\n  // Case 1: user has opted out of Essential Session we do nothing\n  if (cookieManager.getCookie(essentialSessionCookieName) === 'false') {\n    return;\n  }\n\n  // Case 2: Cookie already exists\n  const existingCookie = cookieManager.getCookie(webClientIdName);\n\n  if (existingCookie) {\n    return existingCookie;\n  }\n\n  // Case 3: Cookie needs to be set\n  const isGdpr = userLocation.country ? gdprCountries.has(userLocation.country) : true;\n  const expires = new Date();\n\n  if (isGdpr) {\n    // For GDPR countries, the expiry of the web_client_id should be set to 24 hours\n    expires.setDate(expires.getDate() + 1);\n  } else {\n    expires.setFullYear(expires.getFullYear() + 1);\n  }\n\n  let cookieDomain = getTopLevelDomain(currentUrl.hostname);\n  // need leading .\n  if (cookieDomain !== 'localhost') cookieDomain = `.${cookieDomain}`;\n  // handle staging special case\n  if (cookieDomain === '.appspot.com') cookieDomain = '.sc-corp.net';\n\n  const cookieOptions: CookieOptions = {\n    expires: new Date(expires),\n    path: '/', // Is this necessary?\n    secure: true,\n    httpOnly: false,\n    credentials: 'same-origin',\n    domain: allowedDomains.has(cookieDomain) ? cookieDomain : undefined,\n  };\n\n  const webClientId = createUuidV4();\n\n  cookieManager.setCookie(webClientIdName, webClientId, cookieOptions);\n\n  return webClientId;\n}\n"],
  "mappings": ";;;;;;;;;;;;;o5EAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,GAAI,KAEND,GAAQ,WAAaC,GAAE,WACvBD,GAAQ,YAAcC,GAAE,YAEpB,IAAAC,MCPN,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,cAaAA,GAAO,QAAQ,mDAAqD,OAEpEA,GAAO,QAAQ,gEAAkE,OAEjFA,GAAO,QAAQ,gEAAkE,OAMjF,OAAO,OAAOA,GAAO,QAAS,GAAgB,icCpB9C,IAAYC,GAAZ,SAAYA,EAAM,CAChBA,EAAA,SAAA,WACAA,EAAA,UAAA,YAEAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YAEAA,EAAA,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Ac,SAAS,cAAc,MAAM,EAE5CA,EAEMA,EAAY,cAAc,GAAK,MACxC,gBAAYA,EAAaH,CAAG,KAG5B,eAAWG,CAAW,EAAE,OAAOH,CAAG,EALlC,QAAQ,MAAM,qCAAqC,EAYrD,IAAII,EAAa,EAEjB,GAAI5C,EAAO,SAAWA,EAAO,kBAAoB,cAAe,CAC9D,IAAM6C,EAAe,IAAI,YAAY,WAAY,CAAC,CAAC,EAEnDA,EAAa,iBAAiB,QAAS,IAAM,CAC3C,QAAQ,MAAM,+BAA+B,EAC7CD,IAEIA,EAAa,MACfC,EAAa,MAAM,EAEnB,QAAQ,KACN,sFACF,EAKJ,CAAC,EAEDA,EAAa,iBAAiB,SAAUC,GAAS,CAC/C,IAAMC,EAAO,KAAK,MAAMD,EAAM,IAAI,EAE9BC,EAAK,QAAQ,OACfA,EAAK,OAAO,QAAQC,GAAS,CAC3B,IAAMlB,EAAWkB,EAAM,SACjBC,EAAO,GAAGnB,EAAS,IAAI,IAAIA,EAAS,IAAI,IAAIA,EAAS,MAAM,GAEjE,QAAQ,MAAM,oCAAoCkB,EAAM,IAAI,KAAKC,CAAI,GAAG,CAC1E,CAAC,GAED,QAAQ,KAAK,mCAAmC,EAChD,SAAS,OAAO,EAEpB,CAAC,CACH,CACF,CAEAnD,IAAK,EAAE,MAAMkD,GAAS,QAAQ,MAAMA,CAAK,CAAC",
  "names": ["require_client", "__commonJSMin", "exports", "m", "i", "require_rehackt", "__commonJSMin", "exports", "module", "BLOCKS", "exports", "INLINES", "MARKS", "blocks_1", "_a", "__spreadArray", "inlines_1", "marks_1", "hasValue", "obj", "value", "_i", "key", "isInline", "node", "isBlock", "isText", "blocks", "inlines", "marks", "__exportStar", "schemaConstraints", "types", "nodeTypes", "emptyDocument", "helpers$1", "__importStar", "helpers", "documentToPlainTextString", "rootNode", "blockDivisor", "acc", "i", "nodeTextValue", "nextNode", "isNextNodeBlock", "divisor", "require_browser_ponyfill", "__commonJSMin", "exports", "module", "__global__", "__globalThis__", "F", "globalThis", "irrelevant", "global", "support", "isDataView", "obj", "viewClasses", "isArrayBufferView", "normalizeName", "name", "normalizeValue", "value", "iteratorFor", "items", "iterator", "Headers", "headers", "header", "oldValue", "callback", "thisArg", "consumed", "body", "fileReaderReady", "reader", "resolve", "reject", "readBlobAsArrayBuffer", "blob", "promise", "readBlobAsText", "readArrayBufferAsText", "buf", "view", "chars", "i", "bufferClone", "Body", "rejected", "isConsumed", "decode", "methods", "normalizeMethod", "method", "upcased", "Request", "input", "options", "reParamSearch", "reQueryString", "form", "bytes", "split", "parseHeaders", "rawHeaders", "preProcessedHeaders", "line", "parts", "key", "Response", "bodyInit", "response", "redirectStatuses", "url", "status", "message", "error", "fetch", "init", "request", "xhr", "abortXhr", "fixUrl", "ctx", "require_long", "__commonJSMin", "exports", "module", "Long", "wasm", "low", "high", "unsigned", "isLong", "obj", "INT_CACHE", "UINT_CACHE", "fromInt", "value", "cachedObj", "cache", "fromBits", "fromNumber", "UZERO", "ZERO", "TWO_PWR_64_DBL", "MAX_UNSIGNED_VALUE", "TWO_PWR_63_DBL", "MIN_VALUE", "MAX_VALUE", "TWO_PWR_32_DBL", "lowBits", "highBits", "pow_dbl", "fromString", "str", "radix", "p", "radixToPower", "result", "i", "size", "power", "fromValue", "val", "TWO_PWR_16_DBL", "TWO_PWR_24_DBL", "TWO_PWR_24", "ONE", "UONE", "NEG_ONE", "LongPrototype", "radixLong", "div", "rem1", "rem", "remDiv", "intval", "digits", "bit", "other", "thisNeg", "otherNeg", "addend", "a48", "a32", "a16", "a00", "b48", "b32", "b16", "b00", "c48", "c32", "c16", "c00", "subtrahend", "multiplier", "divisor", "approx", "res", "halfThis", "log2", "delta", "approxRes", "approxRem", "numBits", "le", "hi", "lo", "bytes", "require_aspromise", "__commonJSMin", "exports", "module", "asPromise", "fn", "ctx", "params", "offset", "index", "pending", "resolve", "reject", "err", "require_base64", "__commonJSMin", "exports", "base64", "string", "p", "b64", "s64", "i", "buffer", "start", "end", "parts", "chunk", "j", "t", "b", "invalidEncoding", "offset", "c", "require_eventemitter", "__commonJSMin", "exports", "module", "EventEmitter", "evt", "fn", "ctx", "listeners", "i", "args", "require_float", "__commonJSMin", "exports", "module", "factory", "f32", "f8b", "le", "writeFloat_f32_cpy", "val", "buf", "pos", "writeFloat_f32_rev", "readFloat_f32_cpy", "readFloat_f32_rev", "writeFloat_ieee754", "writeUint", "sign", "exponent", "mantissa", "writeUintLE", "writeUintBE", "readFloat_ieee754", "readUint", "uint", "readUintLE", "readUintBE", "f64", "writeDouble_f64_cpy", "writeDouble_f64_rev", "readDouble_f64_cpy", "readDouble_f64_rev", "writeDouble_ieee754", "off0", "off1", "readDouble_ieee754", "lo", "hi", "require_inquire", "__commonJSMin", "require_utf8", "__commonJSMin", "exports", "utf8", "string", "len", "c", "i", "buffer", "start", "end", "parts", "chunk", "t", "offset", "c1", "c2", "require_pool", "__commonJSMin", "exports", "module", "pool", "alloc", "slice", "size", "SIZE", "MAX", "slab", "offset", "buf", "require_longbits", "__commonJSMin", "exports", "module", "LongBits", "util", "lo", "hi", "zero", "zeroHash", "value", "sign", "unsigned", "charCodeAt", "hash", "mask", "part0", "part1", "part2", "require_minimal", "__commonJSMin", "exports", "util", "value", "obj", "prop", "Buffer", "sizeOrArray", "hash", "unsigned", "bits", "merge", "dst", "src", "ifNotSet", "keys", "i", "str", "newError", "name", "CustomError", "message", "properties", "fieldNames", "fieldMap", "encoding", "size", "require_writer", "__commonJSMin", "exports", "module", "Writer", "util", "BufferWriter", "LongBits", "base64", "utf8", "Op", "fn", "len", "val", "noop", "State", "writer", "create", "size", "writeByte", "buf", "pos", "writeVarint32", "VarintOp", "value", "writeVarint64", "bits", "writeFixed32", "writeBytes", "i", "head", "tail", "BufferWriter_", "require_writer_buffer", "__commonJSMin", "exports", "module", "BufferWriter", "Writer", "util", "val", "buf", "pos", "i", "value", "len", "writeStringBuffer", "require_reader", "__commonJSMin", "exports", "module", "Reader", "util", "BufferReader", "LongBits", "utf8", "indexOutOfRange", "reader", "writeLength", "buffer", "create_array", "create", "value", "readLongVarint", "bits", "i", "readFixed32_end", "buf", "end", "readFixed64", "length", "start", "nativeBuffer", "bytes", "wireType", "BufferReader_", "fn", "require_reader_buffer", "__commonJSMin", "exports", "module", "BufferReader", "Reader", "util", "buffer", "len", "require_service", "__commonJSMin", "exports", "module", "Service", "util", "rpcImpl", "requestDelimited", "responseDelimited", "rpcCall", "method", "requestCtor", "responseCtor", "request", "callback", "self", "err", "response", "endedByRPC", "require_rpc", "__commonJSMin", "exports", "rpc", "require_roots", "__commonJSMin", "exports", "module", "require_index_minimal", "__commonJSMin", "exports", "protobuf", "configure", "require_minimal", "__commonJSMin", "exports", "module", "require_head", "__commonJSMin", "exports", "module", "head", "array", "require_isUndefined", "__commonJSMin", "exports", "module", "isUndefined", "value", "require_baseIsMatch", "__commonJSMin", "exports", "module", "Stack", "baseIsEqual", "COMPARE_PARTIAL_FLAG", "COMPARE_UNORDERED_FLAG", "baseIsMatch", "object", "source", "matchData", "customizer", "index", "length", "noCustomizer", "data", "key", "objValue", "srcValue", "stack", "result", "require_isStrictComparable", "__commonJSMin", "exports", "module", "isObject", "isStrictComparable", "value", "require_getMatchData", "__commonJSMin", "exports", "module", "isStrictComparable", "keys", "getMatchData", "object", "result", "length", "key", "value", "require_matchesStrictComparable", "__commonJSMin", "exports", "module", "matchesStrictComparable", "key", "srcValue", "object", "require_baseMatches", "__commonJSMin", "exports", "module", "baseIsMatch", "getMatchData", "matchesStrictComparable", "baseMatches", "source", "matchData", "object", "require_get", "__commonJSMin", "exports", "module", "baseGet", "get", "object", "path", "defaultValue", "result", "require_baseHasIn", "__commonJSMin", "exports", "module", "baseHasIn", "object", "key", "require_hasPath", "__commonJSMin", "exports", "module", "castPath", "isArguments", "isArray", "isIndex", "isLength", "toKey", "hasPath", "object", "path", "hasFunc", "index", "length", "result", "key", "require_hasIn", "__commonJSMin", "exports", "module", "baseHasIn", "hasPath", "hasIn", "object", "path", "require_baseMatchesProperty", "__commonJSMin", "exports", "module", "baseIsEqual", "get", "hasIn", "isKey", "isStrictComparable", "matchesStrictComparable", "toKey", "COMPARE_PARTIAL_FLAG", "COMPARE_UNORDERED_FLAG", "baseMatchesProperty", "path", "srcValue", "object", "objValue", "require_baseProperty", "__commonJSMin", "exports", "module", "baseProperty", "key", "object", "require_basePropertyDeep", "__commonJSMin", "exports", "module", "baseGet", "basePropertyDeep", "path", "object", "require_property", "__commonJSMin", "exports", "module", "baseProperty", "basePropertyDeep", "isKey", "toKey", "property", "path", "require_baseIteratee", "__commonJSMin", "exports", "module", "baseMatches", "baseMatchesProperty", "identity", "isArray", "property", "baseIteratee", "value", "require_baseSet", "__commonJSMin", "exports", "module", "assignValue", "castPath", "isIndex", "isObject", "toKey", "baseSet", "object", "path", "value", "customizer", "index", "length", "lastIndex", "nested", "key", "newValue", "objValue", "require_basePickBy", "__commonJSMin", "exports", "module", "baseGet", "baseSet", "castPath", "basePickBy", "object", "paths", "predicate", "index", "length", "result", "path", "value", "require_pickBy", "__commonJSMin", "exports", "module", "arrayMap", "baseIteratee", "basePickBy", "getAllKeysIn", "pickBy", "object", "predicate", "props", "prop", "value", "path", "matchHtmlRegExp", "escapeHtml_1", "escapeHtml", "string", "str", "match", "escape", "html", "index", "lastIndex", "BLOCKS", "exports", "INLINES", "MARKS", "blocks_1", "_a", "__spreadArray", "inlines_1", "marks_1", "hasValue", "obj", "value", "_i", "key", "isInline", "node", "isBlock", "isText", "blocks", "inlines", "marks", "__exportStar", "schemaConstraints", "types", "nodeTypes", "emptyDocument", "helpers$1", "__importStar", "helpers", "attributeValue", "defaultNodeRenderers", "next", "defaultInline", "defaultInlineResource", "href", "defaultMarkRenderers", "_b", "text", "type", "documentToHtmlString", "richTextDocument", "options", "nodeListToHtmlString", "__assign", "nodes", "renderNode", "renderMark", "preserveWhitespace", "nodeToHtmlString", "nodeValue", "mark", "nextNode", "require_arrayReduce", "__commonJSMin", "exports", "module", "arrayReduce", "array", "iteratee", "accumulator", "initAccum", "index", "length", "require_basePropertyOf", "__commonJSMin", "exports", "module", "basePropertyOf", "object", "key", "require_deburrLetter", "__commonJSMin", "exports", "module", "basePropertyOf", "deburredLetters", "deburrLetter", "require_deburr", "__commonJSMin", "exports", "module", "deburrLetter", "toString", "reLatin", "rsComboMarksRange", "reComboHalfMarksRange", "rsComboSymbolsRange", "rsComboRange", "rsCombo", "reComboMark", "deburr", "string", "require_asciiWords", "__commonJSMin", "exports", "module", "reAsciiWord", "asciiWords", "string", "require_hasUnicodeWord", "__commonJSMin", "exports", "module", "reHasUnicodeWord", "hasUnicodeWord", "string", "require_unicodeWords", "__commonJSMin", "exports", "module", "rsAstralRange", "rsComboMarksRange", "reComboHalfMarksRange", "rsComboSymbolsRange", "rsComboRange", "rsDingbatRange", "rsLowerRange", "rsMathOpRange", "rsNonCharRange", "rsPunctuationRange", "rsSpaceRange", "rsUpperRange", "rsVarRange", "rsBreakRange", "rsApos", "rsBreak", "rsCombo", "rsDigits", "rsDingbat", "rsLower", "rsMisc", "rsFitz", "rsModifier", "rsNonAstral", "rsRegional", "rsSurrPair", "rsUpper", "rsZWJ", "rsMiscLower", "rsMiscUpper", "rsOptContrLower", "rsOptContrUpper", "reOptMod", "rsOptVar", "rsOptJoin", "rsOrdLower", "rsOrdUpper", "rsSeq", "rsEmoji", "reUnicodeWord", "unicodeWords", "string", "require_words", "__commonJSMin", "exports", "module", "asciiWords", "hasUnicodeWord", "toString", "unicodeWords", "words", "string", "pattern", "guard", "require_createCompounder", "__commonJSMin", "exports", "module", "arrayReduce", "deburr", "words", "rsApos", "reApos", "createCompounder", "callback", "string", "require_snakeCase", "__commonJSMin", "exports", "module", "createCompounder", "snakeCase", "result", "word", "index", "require_noop", "__commonJSMin", "exports", "module", "noop", "css", "ref", "insertAt", "document", "head", "getElementsByTagName", "style", "createElement", "type", "firstChild", "insertBefore", "appendChild", "styleSheet", "cssText", "createTextNode", "closeIconTypes", "circle", "circle2", "close", "cancel", "OutsideAlerter", "props", "clickEvent", "wrapperRef", "useRef", "outsideClick", "useEffect", "handleClickOutside", "event", "current", "contains", "target", "addEventListener", "removeEventListener", "React", "children", "Multiselect", "c", "_this", "state", "inputValue", "options", "filteredOptions", "unfilteredOptions", "selectedValues", "Object", "assign", "preSelectedValues", "toggleOptionsList", "highlightOption", "avoidHighlightFirstOption", "showCheckbox", "keepSearchTerm", "groupedObject", "closeIconType", "closeIcon", "optionTimeout", "searchWrapper", "createRef", "searchBox", "onChange", "bind", "onKeyPress", "onFocus", "onBlur", "renderMultiselectContainer", "renderSelectedList", "onRemoveSelectedItem", "toggelOptionList", "onArrowKeyNavigation", "onSelectItem", "filterOptionsByInput", "removeSelectedValuesFromOptions", "isSelectedValue", "fadeOutSelection", "isDisablePreSelectedValues", "renderGroupByOptions", "renderNormalOption", "listenerCallback", "resetSelectedValues", "getSelectedItems", "getSelectedItemsCount", "hideOnClickOutside", "onCloseOptionList", "isVisible", "a", "_proto", "initialSetValue", "e", "this", "groupBy", "singleSelect", "groupByOptions", "Promise", "resolve", "_this2", "setState", "length", "componentDidMount", "componentDidUpdate", "prevProps", "t", "prevSelectedvalues", "JSON", "stringify", "focus", "componentWillUnmount", "clearTimeout", "skipCheck", "isObject", "displayValue", "l", "optionList", "filter", "item", "findIndex", "v", "indexOf", "reduce", "r", "key", "push", "create", "onSearch", "value", "onKeyPressFn", "i", "_this3", "matchValues", "search", "caseSensitiveSearch", "toLowerCase", "toString", "keyCode", "disablePreSelectedValues", "previousState", "index", "onRemove", "splice", "_this4", "closeOnSelect", "selectionLimit", "onSelect", "onSingleSelect", "_this5", "renderOptionList", "emptyRecordMsg", "loadingMessage", "o", "loading", "className", "keys", "map", "obj", "Fragment", "option", "isSelected", "_this6", "onClick", "readOnly", "checked", "optionValueDecorator", "_this7", "customCloseIcon", "_this8", "selectedValueDecorator", "src", "setTimeout", "elem", "offsetWidth", "offsetHeight", "getClientRects", "element", "getElementsByClassName", "_this9", "placeholder", "id", "name", "hidePlaceholder", "disable", "showArrow", "customArrow", "hideSelectedList", "onKeyDown", "autoComplete", "disabled", "onMouseDown", "preventDefault", "render", "Component", "defaultProps", "require_dist", "__commonJSMin", "exports", "module", "require_createBaseFor", "__commonJSMin", "exports", "module", "createBaseFor", "fromRight", "object", "iteratee", "keysFunc", "index", "iterable", "props", "length", "key", "require_baseFor", "__commonJSMin", "exports", "module", "createBaseFor", "baseFor", "require_baseForOwn", "__commonJSMin", "exports", "module", "baseFor", "keys", "baseForOwn", "object", "iteratee", "require_mapValues", "__commonJSMin", "exports", "module", "baseAssignValue", "baseForOwn", "baseIteratee", "mapValues", "object", "iteratee", "result", "value", "key", "require_react_fast_compare", "__commonJSMin", "exports", "module", "hasElementType", "hasMap", "hasSet", "hasArrayBuffer", "equal", "a", "b", "length", "i", "keys", "it", "error", "require_browser", "__commonJSMin", "exports", "module", "invariant", "condition", "format", "b", "c", "d", "e", "f", "error", "args", "argIndex", "require_shallowequal", "__commonJSMin", "exports", "module", "objA", "objB", "compare", "compareContext", "ret", "keysA", "keysB", "bHasOwnProperty", "idx", "key", "valueA", "valueB", "require_ms", "__commonJSMin", "exports", "module", "s", "m", "h", "d", "w", "y", "val", "options", "type", "parse", "fmtLong", "fmtShort", "str", "match", "n", "ms", "msAbs", "plural", "name", "isPlural", "require_common", "__commonJSMin", "exports", "module", "setup", "env", "createDebug", "coerce", "disable", "enable", "enabled", "destroy", "key", "selectColor", "namespace", "hash", "i", "prevTime", "enableOverride", "namespacesCache", "enabledCache", "debug", "args", "self", "curr", "ms", "index", "match", "format", "formatter", "val", "extend", "v", "delimiter", "newDebug", "namespaces", "split", "len", "toNamespace", "name", "regexp", "require_browser", "__commonJSMin", "exports", "module", "formatArgs", "save", "load", "useColors", "localstorage", "warned", "args", "c", "index", "lastC", "match", "namespaces", "r", "formatters", "v", "error", "require_jsonp", "__commonJSMin", "exports", "module", "debug", "jsonp", "count", "noop", "url", "opts", "fn", "prefix", "id", "param", "timeout", "enc", "target", "script", "timer", "cleanup", "cancel", "data", "require_isString", "__commonJSMin", "exports", "module", "baseGetTag", "isArray", "isObjectLike", "stringTag", "isString", "value", "require_asciiSize", "__commonJSMin", "exports", "module", "baseProperty", "asciiSize", "require_hasUnicode", "__commonJSMin", "exports", "module", "rsAstralRange", "rsComboMarksRange", "reComboHalfMarksRange", "rsComboSymbolsRange", "rsComboRange", "rsVarRange", "rsZWJ", "reHasUnicode", "hasUnicode", "string", "require_unicodeSize", "__commonJSMin", "exports", "module", "rsAstralRange", "rsComboMarksRange", "reComboHalfMarksRange", "rsComboSymbolsRange", "rsComboRange", "rsVarRange", "rsAstral", "rsCombo", "rsFitz", "rsModifier", "rsNonAstral", "rsRegional", "rsSurrPair", "rsZWJ", "reOptMod", "rsOptVar", "rsOptJoin", "rsSeq", "rsSymbol", "reUnicode", "unicodeSize", "string", "result", "require_stringSize", "__commonJSMin", "exports", "module", "asciiSize", "hasUnicode", "unicodeSize", "stringSize", "string", "require_size", "__commonJSMin", "exports", "module", "baseKeys", "getTag", "isArrayLike", "isString", "stringSize", "mapTag", "setTag", "size", "collection", "tag", "require_isarray", "__commonJSMin", "exports", "module", "toString", "arr", "require_path_to_regexp", "__commonJSMin", "exports", "module", "isarray", "pathToRegexp", "parse", "compile", "tokensToFunction", "tokensToRegExp", "PATH_REGEXP", "str", "options", "tokens", "key", "index", "path", "defaultDelimiter", "res", "m", "escaped", "offset", "next", "prefix", "name", "capture", "group", "modifier", "asterisk", "partial", "repeat", "optional", "delimiter", "pattern", "escapeGroup", "escapeString", "encodeURIComponentPretty", "c", "encodeAsterisk", "matches", "i", "flags", "obj", "opts", "data", "encode", "token", "value", "segment", "j", "attachKeys", "re", "keys", "regexpToRegexp", "groups", "arrayToRegexp", "parts", "regexp", "stringToRegexp", "strict", "end", "route", "endsWithDelimiter", "BLOCKS", "exports", "INLINES", "exports", "MARKS", "exports", "blocks_1", "inlines_1", "marks_1", "exports", "_a", "__spreadArray", "require_types", "__commonJSMin", "exports", "require_nodeTypes", "__commonJSMin", "exports", "blocks_1", "exports", "exports", "isInline", "isBlock", "isText", "blocks_1", "inlines_1", "hasValue", "obj", "value", "_i", "_a", "key", "node", "exports", "getSchemaWithNodeType", "nodeType", "__require", "blocks_1", "exports", "inlines_1", "marks_1", "__exportStar", "emptyDocument_1", "helpers", "__importStar", "schemas_1", "require_assignMergeValue", "__commonJSMin", "exports", "module", "baseAssignValue", "eq", "assignMergeValue", "object", "key", "value", "require_isArrayLikeObject", "__commonJSMin", "exports", "module", "isArrayLike", "isObjectLike", "isArrayLikeObject", "value", "require_safeGet", "__commonJSMin", "exports", "module", "safeGet", "object", "key", "require_toPlainObject", "__commonJSMin", "exports", "module", "copyObject", "keysIn", "toPlainObject", "value", "require_baseMergeDeep", "__commonJSMin", "exports", "module", "assignMergeValue", "cloneBuffer", "cloneTypedArray", "copyArray", "initCloneObject", "isArguments", "isArray", "isArrayLikeObject", "isBuffer", "isFunction", "isObject", "isPlainObject", "isTypedArray", "safeGet", "toPlainObject", "baseMergeDeep", "object", "source", "key", "srcIndex", "mergeFunc", "customizer", "stack", "objValue", "srcValue", "stacked", "newValue", "isCommon", "isArr", "isBuff", "isTyped", "require_baseMerge", "__commonJSMin", "exports", "module", "Stack", "assignMergeValue", "baseFor", "baseMergeDeep", "isObject", "keysIn", "safeGet", "baseMerge", "object", "source", "srcIndex", "customizer", "stack", "srcValue", "key", "newValue", "require_merge", "__commonJSMin", "exports", "module", "baseMerge", "createAssigner", "merge", "object", "source", "srcIndex", "require_baseInverter", "__commonJSMin", "exports", "module", "baseForOwn", "baseInverter", "object", "setter", "iteratee", "accumulator", "value", "key", "require_createInverter", "__commonJSMin", "exports", "module", "baseInverter", "createInverter", "setter", "toIteratee", "object", "iteratee", "require_invert", "__commonJSMin", "exports", "module", "constant", "createInverter", "identity", "objectProto", "nativeObjectToString", "invert", "result", "value", "key", "require_cloneDeep", "__commonJSMin", "exports", "module", "baseClone", "CLONE_DEEP_FLAG", "CLONE_SYMBOLS_FLAG", "cloneDeep", "value", "require_createBaseEach", "__commonJSMin", "exports", "module", "isArrayLike", "createBaseEach", "eachFunc", "fromRight", "collection", "iteratee", "length", "index", "iterable", "require_baseEach", "__commonJSMin", "exports", "module", "baseForOwn", "createBaseEach", "baseEach", "require_castFunction", "__commonJSMin", "exports", "module", "identity", "castFunction", "value", "require_forEach", "__commonJSMin", "exports", "module", "arrayEach", "baseEach", "castFunction", "isArray", "forEach", "collection", "iteratee", "func", "BLOCKS", "exports", "INLINES", "MARKS", "blocks_1", "_a", "__spreadArray", "inlines_1", "marks_1", "hasValue", "obj", "value", "_i", "key", "isInline", "node", "isBlock", "isText", "blocks", "inlines", "marks", "__exportStar", "schemaConstraints", "types", "nodeTypes", "emptyDocument", "helpers$1", "__importStar", "helpers", "appendKeyToValidElement", "element", "isValidElement", "cloneElement", "nodeListToReactComponents", "nodes", "options", "index", "nodeToReactComponent", "renderNode", "renderMark", "renderText", "preserveWhitespace", "nodeValue", "match", "lines_1", "jsxLines_1", "line", "React", "mark", "children", "defaultNodeRenderers", "defaultInline", "defaultInlineResource", "defaultMarkRenderers", "_b", "text", "type", "documentToReactComponents", "richTextDocument", "__assign", "require_isNull", "__commonJSMin", "exports", "module", "isNull", "value", "require_resolver", "__commonJSMin", "exports", "module", "resolvers", "args", "res", "i", "createFlexResolver", "params", "p", "max", "how", "require_memoize", "__commonJSMin", "exports", "module", "resolver", "_toTrue", "_toFalse", "pSuccess", "promise", "_pass", "data", "_throw", "err", "ensurePromise", "thenable", "createCacheObj", "result", "args", "destroyCacheObj", "cache", "key", "askPrefetch", "_track_proceed", "success", "config", "trackCacheObj", "P", "_prefetch_proceed", "doPrefetch", "fn", "options", "_options", "resolve", "memoizedFn", "i", "keys", "require_promise_memoize", "__commonJSMin", "exports", "module", "AsyncDataController", "_a", "props", "now", "cachedEntry", "promise", "result", "dataListeners", "listener", "e", "error", "errorListeners", "numDeleted", "value", "key", "__name", "asyncDataController", "highEntropyUserAgentHints", "ClientBrowserFeature", "_a", "AbstractBrowserFeature", "featuresWindow", "legacy", "parseUserAgent", "brand", "parseBrowserBrand", "parseMajorVersion", "parsePlatform", "hints", "highEntropyValues", "hint", "reduceMotion", "preferDark", "preferLight", "__name", "import_self_xss_warning", "import_client", "extendStatics", "d", "b", "p", "__extends", "__", "__assign", "s", "i", "n", "__rest", "e", "t", "__awaiter", "thisArg", "_arguments", "P", "generator", "adopt", "value", "resolve", "reject", "fulfilled", "step", "e", "rejected", "result", "__generator", "body", "_", "t", "f", "y", "g", "verb", "n", "v", "op", "__spreadArray", "to", "from", "pack", "i", "l", "ar", "genericMessage", "_a", "setPrototypeOf", "obj", "proto", "InvariantError", "_super", "__extends", "message", "_this", "invariant", "condition", "message", "InvariantError", "verbosityLevels", "verbosityLevel", "wrapConsoleMethod", "name", "method", "setVerbosity", "level", "old", "version", "maybe", "thunk", "global_default", "maybe", "prefixCounts", "makeUniqueId", "prefix", "count", "stringifyForDisplay", "value", "space", "undefId", "makeUniqueId", "key", "wrap", "fn", "message", "args", "_i", "arg0", "getHandledErrorMsg", "getFallbackErrorMsg", "invariant", "condition", "newInvariantError", "optionalParams", "InvariantError", "ApolloErrorMessageHandler", "version", "stringify", "arg", "stringifyForDisplay", "messageArgs", "global_default", "DEV", "_typeof", "obj", "isObjectLike", "value", "SYMBOL_ITERATOR", "SYMBOL_ASYNC_ITERATOR", "SYMBOL_TO_STRING_TAG", "getLocation", "source", "position", "lineRegexp", "line", "column", "match", "printLocation", "location", "printSourceLocation", "getLocation", "source", "sourceLocation", "firstLineColumnOffset", "body", "whitespace", "lineIndex", "lineOffset", "lineNum", "columnOffset", "columnNum", "locationStr", "lines", "locationLine", "subLineIndex", "subLineColumnNum", "subLines", "i", "printPrefixedLines", "subLine", "existingLines", "_ref", "_", "line", "padLen", "_ref2", "prefix", "_ref3", "leftPad", "len", "str", "_typeof", "obj", "ownKeys", "object", "enumerableOnly", "keys", "symbols", "sym", "_objectSpread", "target", "i", "source", "key", "_defineProperty", "value", "_classCallCheck", "instance", "Constructor", "_defineProperties", "props", "descriptor", "_createClass", "protoProps", "staticProps", "_inherits", "subClass", "superClass", "_setPrototypeOf", "_createSuper", "Derived", "hasNativeReflectConstruct", "_isNativeReflectConstruct", "Super", "_getPrototypeOf", "result", "NewTarget", "_possibleConstructorReturn", "self", "call", "_assertThisInitialized", "_wrapNativeSuper", "Class", "_cache", "_isNativeFunction", "Wrapper", "_construct", "Parent", "args", "a", "fn", "o", "p", "GraphQLError", "_Error", "_super", "message", "nodes", "positions", "path", "originalError", "extensions", "_nodeLocations", "_nodeLocations2", "_nodeLocations3", "_this", "undefinedIfEmpty", "nodeLocations", "_i2", "_ref3", "_this$nodes", "_ref4", "loc", "pos", "getLocation", "originalExtensions", "isObjectLike", "printError", "SYMBOL_TO_STRING_TAG", "array", "error", "output", "_i4", "_error$nodes2", "node", "printLocation", "_i6", "_error$locations2", "location", "printSourceLocation", "syntaxError", "source", "position", "description", "GraphQLError", "Kind", "invariant", "condition", "message", "booleanCondition", "nodejsCustomInspectSymbol", "nodejsCustomInspectSymbol_default", "defineInspect", "classObject", "fn", "invariant", "nodejsCustomInspectSymbol_default", "Location", "startToken", "endToken", "source", "_proto", "defineInspect", "Token", "kind", "start", "end", "line", "column", "prev", "value", "_proto2", "isNode", "maybeNode", "TokenKind", "_typeof", "obj", "MAX_ARRAY_LENGTH", "MAX_RECURSIVE_DEPTH", "inspect", "value", "formatValue", "seenValues", "formatObjectValue", "previouslySeenValues", "customInspectFn", "getCustomFn", "customValue", "formatArray", "formatObject", "object", "keys", "getObjectTag", "properties", "key", "array", "len", "remaining", "items", "i", "nodejsCustomInspectSymbol_default", "tag", "name", "devAssert", "condition", "message", "booleanCondition", "instanceOf_default", "value", "constructor", "_defineProperties", "target", "props", "i", "descriptor", "_createClass", "Constructor", "protoProps", "staticProps", "Source", "body", "name", "locationOffset", "devAssert", "inspect", "SYMBOL_TO_STRING_TAG", "isSource", "source", "instanceOf_default", "DirectiveLocation", "dedentBlockStringValue", "rawString", "lines", "commonIndent", "getBlockStringIndentation", "i", "startLine", "isBlank", "endLine", "str", "value", "_commonIndent", "isFirstLine", "isEmptyLine", "indent", "printBlockString", "indentation", "preferMultipleLines", "isSingleLine", "hasLeadingSpace", "hasTrailingQuote", "hasTrailingSlash", "printAsMultipleLines", "result", "Lexer", "source", "startOfFileToken", "Token", "TokenKind", "_proto", "token", "_token$next", "readToken", "isPunctuatorTokenKind", "kind", "printCharCode", "code", "lexer", "prev", "body", "bodyLength", "pos", "_line", "_col", "readComment", "readBlockString", "readString", "readNumber", "readName", "syntaxError", "unexpectedCharacterMessage", "line", "col", "start", "position", "firstCode", "isFloat", "readDigits", "isNameStart", "chunkStart", "value", "charCode", "uniCharCode", "invalidSequence", "rawValue", "dedentBlockStringValue", "a", "b", "c", "d", "char2hex", "parse", "source", "options", "parser", "Parser", "Parser", "source", "options", "sourceObj", "isSource", "Source", "Lexer", "_proto", "token", "TokenKind", "Kind", "start", "operation", "name", "operationToken", "nameOrAlias", "alias", "isConst", "item", "hasTypeCondition", "_this$_options", "_this", "_this2", "directives", "type", "keywordToken", "description", "operationTypes", "interfaces", "fields", "_this$_options2", "types", "_this$_options3", "args", "defaultValue", "values", "repeatable", "locations", "DirectiveLocation", "startToken", "_this$_options4", "Location", "kind", "syntaxError", "getTokenKindDesc", "getTokenDesc", "value", "atToken", "openKind", "parseFn", "closeKind", "nodes", "delimiterKind", "isPunctuatorTokenKind", "QueryDocumentKeys", "BREAK", "visit", "root", "visitor", "visitorKeys", "stack", "inArray", "keys", "index", "edits", "node", "key", "parent", "path", "ancestors", "newRoot", "isLeaving", "isEdited", "clone", "_i2", "_Object$keys2", "k", "editOffset", "ii", "editKey", "editValue", "result", "isNode", "inspect", "visitFn", "getVisitFn", "_visitorKeys$node$kin", "getVisitFn", "visitor", "kind", "isLeaving", "kindVisitor", "kindSpecificVisitor", "specificVisitor", "specificKindVisitor", "print", "ast", "visit", "printDocASTReducer", "MAX_LINE_LENGTH", "node", "join", "op", "name", "varDefs", "wrap", "directives", "selectionSet", "_ref", "variable", "type", "defaultValue", "_ref2", "selections", "block", "_ref3", "alias", "args", "prefix", "argsLine", "indent", "_ref4", "value", "_ref5", "_ref6", "typeCondition", "_ref7", "variableDefinitions", "_ref8", "_ref9", "_ref10", "key", "isBlockString", "printBlockString", "_ref11", "_ref12", "_ref13", "values", "_ref14", "fields", "_ref15", "_ref16", "_ref17", "_ref18", "_ref19", "addDescription", "_ref20", "operationTypes", "_ref21", "operation", "_ref22", "_ref23", "interfaces", "_ref24", "hasMultilineItems", "_ref25", "_ref26", "_ref27", "types", "_ref28", "_ref29", "_ref30", "_ref31", "repeatable", "locations", "_ref32", "_ref33", "_ref34", "_ref35", "_ref36", "_ref37", "_ref38", "cb", "maybeArray", "_maybeArray$filter$jo", "separator", "x", "array", "start", "maybeString", "end", "str", "isMultiline", "isSelectionNode", "node", "Kind", "stripIgnoredCharacters", "source", "sourceObj", "isSource", "Source", "body", "lexer", "Lexer", "strippedBody", "wasLastAddedTokenNonPunctuator", "TokenKind", "currentToken", "tokenKind", "isNonPunctuator", "isPunctuatorTokenKind", "tokenBody", "dedentBlockString", "blockStr", "rawStr", "dedentBlockStringValue", "getBlockStringIndentation", "lastChar", "hasTrailingQuote", "shouldInclude", "_a", "variables", "directives", "getInclusionDirectives", "directive", "ifArgument", "evaledValue", "invariant", "hasDirectives", "names", "root", "all", "nameSet", "uniqueCount", "visit", "node", "BREAK", "hasClientExports", "document", "isInclusionDirective", "_a", "value", "getInclusionDirectives", "directives", "result", "directive", "directiveArguments", "directiveName", "invariant", "ifArgument", "ifValue", "defaultMakeData", "forEach", "slice", "hasOwnProperty", "Trie", "_Trie", "weakness", "makeData", "array", "node", "key", "i", "len", "map", "data", "head", "child", "create", "isObjRef", "value", "canUseWeakMap", "maybe", "canUseWeakSet", "canUseSymbol", "canUseAsyncIteratorSymbol", "canUseDOM", "usingJSDOM", "canUseLayoutEffect", "isNonNullObject", "obj", "getFragmentQueryDocument", "document", "fragmentName", "actualFragmentName", "fragments", "definition", "newInvariantError", "invariant", "__assign", "__spreadArray", "query", "createFragmentMap", "symTable", "fragment", "getFragmentFromSelection", "selection", "fragmentMap", "defaultDispose", "StrongCache", "max", "dispose", "key", "node", "older", "newer", "value", "noop", "defaultDispose", "_WeakRef", "value", "_WeakMap", "_FinalizationRegistry", "finalizationBatchSize", "WeakCache", "max", "dispose", "iterator", "i", "node", "key", "older", "newer", "scheduledCleanup", "schedule", "cache", "AutoCleanedWeakCache", "max", "dispose", "WeakCache", "key", "value", "ret", "AutoCleanedStrongCache", "StrongCache", "cacheSizeSymbol", "cacheSizes", "__assign", "global_default", "globalCaches", "registerGlobalCache", "name", "getSize", "getApolloClientMemoryInternals", "_getApolloClientMemoryInternals", "getInMemoryCacheMemoryInternals", "_getInMemoryCacheMemoryInternals", "getApolloCacheMemoryInternals", "_getApolloCacheMemoryInternals", "getCurrentCacheSizes", "defaults", "_a", "k", "v", "cacheSizes", "__assign", "_b", "_c", "linkInfo", "transformInfo", "_e", "_d", "getWrapperInformation", "fragments", "isWrapper", "f", "isDefined", "value", "transform", "recurseTransformInfo", "cache", "__spreadArray", "link", "canonicalStringify", "value", "stableObjectReplacer", "sortingMap", "AutoCleanedStrongCache", "cacheSizes", "registerGlobalCache", "key", "proto", "keys", "everyKeyInOrder", "unsortedKey", "sortedKeys", "sortedKey", "sortedObject_1", "i", "makeReference", "id", "isReference", "obj", "isDocumentNode", "value", "isNonNullObject", "isStringValue", "isBooleanValue", "isIntValue", "isFloatValue", "isVariable", "isObjectValue", "isListValue", "isEnumValue", "isNullValue", "valueToObjectRepresentation", "argObj", "name", "variables", "nestedArgObj_1", "variableValue", "listValue", "nestedArgArrayObj", "newInvariantError", "storeKeyNameFromField", "field", "directivesObj", "directive", "_a", "getStoreKeyName", "KNOWN_DIRECTIVES", "storeKeyNameStringify", "canonicalStringify", "fieldName", "args", "directives", "filterKeys", "filteredArgs_1", "key", "completeFieldName", "stringifiedArgs", "s", "previous", "argumentsObjectFromField", "argObj_1", "resultKeyNameFromField", "getTypenameFromResult", "result", "selectionSet", "fragmentMap", "fragments", "_i", "selection", "isField", "_b", "fragments_1", "typename", "getFragmentFromSelection", "isInlineFragment", "checkDocument", "doc", "invariant", "operations", "d", "definition", "newInvariantError", "getOperationDefinition", "getOperationName", "x", "getFragmentDefinitions", "getQueryDefinition", "queryDef", "getFragmentDefinition", "fragmentDef", "getMainDefinition", "queryDoc", "fragmentDefinition", "_i", "_a", "operation", "getDefaultValues", "defaultValues", "defs", "def", "valueToObjectRepresentation", "currentContext", "MISSING_VALUE", "idCounter", "makeSlotClass", "context", "value", "callback", "args", "thisArg", "slots", "parent", "saved", "maybe", "fn", "globalKey", "host", "globalHost", "Slot", "bind", "noContext", "Slot", "parentEntrySlot", "Slot", "hasOwnProperty", "arrayFromSet", "set", "array", "item", "maybeUnsubscribe", "entryOrDep", "unsubscribe", "emptySetPool", "POOL_TARGET_SIZE", "assert", "condition", "optionalMessage", "valueIs", "a", "b", "len", "valueGet", "value", "valueCopy", "Entry", "_Entry", "fn", "mightBeDirty", "rememberParent", "args", "reallyRecompute", "reportDirty", "maybeUnsubscribe", "forgetChildren", "eachParent", "parent", "child", "forgetChild", "dep", "arrayFromSet", "parentEntrySlot", "reportDirtyChild", "reportCleanChild", "entry", "recomputeNewValue", "maybeSubscribe", "setClean", "normalizeResult", "oldValueCopy", "e", "reportClean", "callback", "parentCount", "parents", "i", "parentWasClean", "childValue", "removeDirtyChild", "dc", "_value", "EntryMethods", "dep", "options", "depsByKey", "subscribe", "depend", "key", "parent", "parentEntrySlot", "maybeUnsubscribe", "entryMethodName", "m", "hasOwnProperty", "arrayFromSet", "entry", "defaultKeyTrie", "defaultMakeCacheKey", "args", "Trie", "caches", "wrap", "originalFunction", "max", "keyArgs", "makeCacheKey", "defaultMakeCacheKey", "normalizeResult", "subscribe", "cacheOption", "StrongCache", "cache", "entry", "optimistic", "key", "Entry", "value", "parentEntrySlot", "dirtyKey", "peekKey", "forgetKey", "identity", "document", "DocumentTransform", "transform", "options", "canUseWeakSet", "predicate", "left", "right", "documentTransform", "_this", "stableCacheKeys_1", "Trie", "canUseWeakMap", "wrap", "cacheKeys", "invariant", "cacheSizes", "WeakCache", "checkDocument", "transformedDocument", "otherTransform", "printCache", "print", "ast", "result", "AutoCleanedWeakCache", "cacheSizes", "registerGlobalCache", "isArray", "isNonEmptyArray", "value", "TYPENAME_FIELD", "Kind", "isEmpty", "op", "fragmentMap", "selection", "nullIfDocIsEmpty", "doc", "getOperationDefinition", "getFragmentDefinition", "createFragmentMap", "getFragmentDefinitions", "getDirectiveMatcher", "configs", "names", "tests", "directive", "config", "testConfig", "test", "makeInUseGetterFunction", "defaultKey", "map", "key", "inUse", "removeDirectivesFromDocument", "directives", "checkDocument", "getInUseByOperationName", "getInUseByFragmentName", "getInUse", "ancestors", "p", "ancestor", "isArray", "invariant", "operationCount", "i", "directiveMatcher", "shouldRemoveField", "nodeDirectives", "isNonEmptyArray", "originalFragmentDefsByPath", "firstVisitMadeChanges", "fieldOrInlineFragmentVisitor", "node", "docWithoutDirectiveSubtrees", "visit", "_key", "_parent", "_path", "path", "originalNode", "populateTransitiveVars", "childFragmentName", "varName", "allFragmentNamesUsed", "def", "fragmentName", "fragmentWillBeRemoved", "enterVisitor", "usedVariableNames_1", "__assign", "varDef", "addTypenameToDocument", "parent", "selections", "skip", "isField", "field", "d", "__spreadArray", "buildQueryFromSelectionSet", "document", "definition", "getMainDefinition", "definitionOperation", "modifiedDoc", "visit", "node", "__assign", "removeClientSetsFromDocument", "checkDocument", "removeDirectivesFromDocument", "directive", "hasOwnProperty", "mergeDeep", "sources", "_i", "mergeDeepArray", "target", "count", "merger", "DeepMerger", "i", "defaultReconciler", "source", "property", "reconciler", "isNonNullObject", "_this", "context", "sourceKey", "targetValue", "result", "__spreadArray", "value", "__assign", "_createForOfIteratorHelperLoose", "o", "allowArrayLike", "it", "_unsupportedIterableToArray", "i", "minLen", "_arrayLikeToArray", "n", "arr", "len", "arr2", "_defineProperties", "target", "props", "descriptor", "_createClass", "Constructor", "protoProps", "staticProps", "hasSymbols", "hasSymbol", "name", "getSymbol", "SymbolIterator", "SymbolObservable", "SymbolSpecies", "getMethod", "obj", "key", "value", "getSpecies", "ctor", "Observable", "isObservable", "x", "hostReportError", "enqueue", "fn", "e", "cleanupSubscription", "subscription", "cleanup", "unsubscribe", "closeSubscription", "flushSubscription", "queue", "notifySubscription", "type", "observer", "m", "onNotify", "Subscription", "subscriber", "subscriptionObserver", "SubscriptionObserver", "_proto", "_proto2", "_proto3", "_this", "resolve", "reject", "done", "_this2", "C", "_this3", "_this4", "hasSeed", "hasValue", "seed", "acc", "first", "_this5", "_len", "sources", "_key", "index", "startNext", "next", "v", "_this6", "subscriptions", "outer", "inner", "completeIfDone", "s", "method", "observable", "_iterator", "_step", "item", "_len2", "items", "_key2", "symbolObservablePonyfill", "root", "result", "Symbol", "root", "result", "symbolObservablePonyfill", "prototype", "Observable", "fakeObsSymbol", "toString", "cloneDeep", "value", "cloneDeepHelper", "val", "seen", "copy_1", "child", "i", "copy_2", "key", "deepFreeze", "value", "workSet", "obj", "isNonNullObject", "shallowFreeze", "name", "e", "maybeDeepFreeze", "iterateObserversSafely", "observers", "method", "argument", "observersWithMethod", "obs", "asyncMap", "observable", "mapFn", "catchFn", "Observable", "observer", "promiseQueue", "callback", "resolve", "makeCallback", "examiner", "key", "arg", "both", "result", "error", "handler", "sub", "fixObservableSubclass", "subclass", "set", "key", "Observable", "canUseSymbol", "isPromiseLike", "value", "Concast", "_super", "__extends", "sources", "_this", "observer", "resolve", "reject", "result", "iterateObserversSafely", "error", "sub", "_a", "_b", "obs", "reason", "_", "Observable", "iterable", "nextOrError", "method", "arg", "nextResultListeners", "listener", "callback", "called", "fixObservableSubclass", "Concast", "isExecutionPatchIncrementalResult", "value", "isExecutionPatchInitialResult", "isExecutionPatchResult", "isApolloPayloadResult", "isNonNullObject", "mergeIncrementalData", "prevResult", "result", "mergedData", "merger", "DeepMerger", "isNonEmptyArray", "_a", "data", "path", "key", "isNumericKey", "parent_1", "graphQLResultHasError", "result", "errors", "getGraphQLErrorsFromResult", "isNonEmptyArray", "graphQLErrors", "isExecutionPatchIncrementalResult", "incrementalResult", "compact", "objects", "_i", "result", "obj", "key", "value", "mergeOptions", "defaults", "options", "compact", "__assign", "fromError", "errorValue", "Observable", "observer", "throwServerError", "response", "result", "message", "error", "validateOperation", "operation", "OPERATION_FIELDS", "_i", "_a", "key", "newInvariantError", "createOperation", "starting", "operation", "context", "__assign", "setContext", "next", "getContext", "transformOperation", "operation", "transformedOperation", "getOperationName", "filterOperationVariables", "variables", "query", "result", "__assign", "unusedNames", "visit", "node", "_key", "parent", "name", "passthrough", "op", "forward", "Observable", "toLink", "handler", "ApolloLink", "isTerminating", "link", "request", "links", "x", "y", "test", "left", "right", "leftLink", "rightLink", "ret", "operation", "createOperation", "transformOperation", "validateOperation", "first", "second", "firstLink", "invariant", "nextLink", "next", "newInvariantError", "error", "observer", "fn", "execute", "ApolloLink", "asyncIterator", "source", "iterator", "_a", "nodeStreamIterator", "stream", "cleanup", "error", "done", "data", "waiting", "onData", "chunk", "shiftedArr", "onError", "err", "all", "pair", "onEnd", "getNext", "resolve", "reject", "iterator", "canUseAsyncIteratorSymbol", "promiseIterator", "promise", "resolved", "iterator", "resolve", "reject", "value", "canUseAsyncIteratorSymbol", "readerIterator", "reader", "iterator", "canUseAsyncIteratorSymbol", "isNodeResponse", "value", "isReadableStream", "isAsyncIterableIterator", "canUseAsyncIteratorSymbol", "isStreamableBlob", "isBlob", "isNodeReadableStream", "responseIterator", "response", "body", "asyncIterator", "readerIterator", "promiseIterator", "nodeStreamIterator", "PROTOCOL_ERRORS_SYMBOL", "graphQLResultHasProtocolErrors", "result", "isApolloError", "err", "generateErrorMessage", "errors", "__spreadArray", "isNonNullObject", "ApolloError", "_super", "__extends", "_a", "graphQLErrors", "protocolErrors", "clientErrors", "networkError", "errorMessage", "extraInfo", "_this", "hasOwnProperty", "readMultipartBody", "response", "nextValue", "decoder", "contentType", "_d", "delimiter", "boundaryVal", "boundary", "buffer", "iterator", "responseIterator", "running", "_a", "_e", "value", "done", "chunk", "searchFrom", "bi", "message", "_b", "i", "headers", "parseHeaders", "contentType_1", "body", "result", "parseJsonBody", "isApolloPayloadResult", "next", "__assign", "_c", "PROTOCOL_ERRORS_SYMBOL", "headerText", "headersInit", "line", "name_1", "bodyText", "getResult", "throwServerError", "err", "parseError", "handleError", "observer", "parseAndCheckHttpResponse", "operations", "op", "serializeFetchParameter", "p", "label", "serialized", "e", "parseError", "newInvariantError", "defaultHttpOptions", "defaultHeaders", "defaultOptions", "fallbackHttpConfig", "defaultPrinter", "ast", "printer", "selectHttpOptionsAndBodyInternal", "operation", "printer", "configs", "_i", "options", "http", "config", "__assign", "removeDuplicateHeaders", "operationName", "extensions", "variables", "query", "body", "print", "headers", "preserveHeaderCase", "normalizedHeaders_1", "name", "headerData", "normalizedHeaders", "checkFetcher", "fetcher", "newInvariantError", "selectURI", "operation", "fallbackURI", "context", "contextURI", "rewriteURIForGET", "chosenURI", "body", "queryParams", "addQueryParam", "key", "value", "serializedVariables", "serializeFetchParameter", "parseError", "serializedExtensions", "fragment", "preFragment", "fragmentStart", "queryParamsPrefix", "newURI", "backupFetch", "maybe", "createHttpLink", "linkOptions", "_a", "uri", "preferredFetch", "_b", "print", "defaultPrinter", "includeExtensions", "preserveHeaderCase", "useGETForQueries", "_c", "includeUnusedVariables", "requestOptions", "__rest", "checkFetcher", "linkConfig", "ApolloLink", "operation", "chosenURI", "selectURI", "context", "clientAwarenessHeaders", "name_1", "version", "contextHeaders", "__assign", "contextConfig", "hasDirectives", "transformedQuery", "removeClientSetsFromDocument", "fromError", "selectHttpOptionsAndBodyInternal", "fallbackHttpConfig", "options", "body", "filterOperationVariables", "controller", "definitionIsMutation", "d", "definitionIsSubscription", "isSubscription", "getMainDefinition", "hasDefer", "acceptHeader", "invariant", "rewriteURIForGET", "newURI", "parseError", "serializeFetchParameter", "Observable", "observer", "currentFetch", "observerNext", "response", "ctype", "readMultipartBody", "parseAndCheckHttpResponse", "err", "handleError", "HttpLink", "_super", "__extends", "options", "_this", "createHttpLink", "ApolloLink", "toString", "hasOwnProperty", "fnToStr", "previousComparisons", "equal", "a", "b", "check", "lib_default", "aTag", "bTag", "previouslyCompared", "aKeys", "definedKeys", "bKeys", "keyCount", "k", "key", "aIterator", "isMap", "info", "aKey", "aValue", "len", "aCode", "endsWith", "nativeCodeSuffix", "obj", "isDefinedKey", "full", "suffix", "fromIndex", "bSet", "ApolloCache", "wrap", "getFragmentQueryDocument", "cacheSizes", "WeakCache", "options", "_this", "optimisticId", "updateResult", "transaction", "document", "object", "optimistic", "__assign", "fragment", "fragmentName", "from", "_a", "diffOptions", "latestDiff", "Observable", "observer", "diff", "equal", "result", "mergeDeepArray", "error", "id", "data", "__rest", "update", "cache", "value", "ApolloCache", "getApolloCacheMemoryInternals", "MissingFieldError", "_super", "__extends", "message", "path", "query", "variables", "_this", "i", "_a", "hasOwn", "isNullish", "value", "defaultDataIdFromObject", "_a", "context", "__typename", "id", "_id", "isNullish", "defaultConfig", "normalizeConfig", "config", "compact", "shouldCanonizeResults", "value", "getTypenameFromStoreObject", "store", "objectOrReference", "isReference", "TypeOrFieldNameRegExp", "fieldNameFromStoreName", "storeFieldName", "match", "selectionSetMatchesResult", "selectionSet", "result", "variables", "isNonNullObject", "isArray", "item", "field", "isField", "shouldInclude", "key", "resultKeyNameFromField", "hasOwn", "storeValueIsStoreObject", "makeProcessedFieldsMerger", "DeepMerger", "extractFragmentContext", "document", "fragments", "fragmentMap", "createFragmentMap", "getFragmentDefinitions", "name", "def", "DELETE", "delModifier", "INVALIDATE", "EntityStore", "policies", "group", "_this", "objectOrReference", "storeFieldName", "maybeDeepFreeze", "isReference", "objOrRef", "objOrIdOrRef", "mergeIntoStore", "makeReference", "id", "ref", "__assign", "dataId", "fieldName", "hasOwn", "storeObject", "Layer", "dependOnExistence", "older", "newer", "existing", "incoming", "invariant", "merged", "DeepMerger", "storeObjectReconciler", "fieldsToDirty_1", "fieldNameFromStoreName", "fields", "changedFields_1", "needToMerge_1", "allDeleted_1", "sharedDetails_1", "fieldNameOrOptions", "from", "fieldValue", "modify", "newValue", "checkReference", "seenReference", "someNonReference", "_i", "newValue_1", "value", "args", "_a", "typename", "options", "limit", "evicted", "obj", "extraRootIds", "newData", "__META", "rest_1", "__rest", "rootId", "count", "ids", "snapshot", "idsToRemove", "root_1", "found_1", "root", "workSet_1", "isNonNullObject", "key", "child", "CacheGroup", "caching", "parent", "dep", "Trie", "canUseWeakMap", "dataId", "storeFieldName", "makeDepKey", "fieldName", "fieldNameFromStoreName", "maybeDependOnExistenceOfEntity", "store", "entityId", "supportsResultCaching", "EntityStore", "Root", "_super", "__extends", "_a", "policies", "_b", "resultCaching", "seed", "_this", "Stump", "layerId", "replay", "Layer", "id", "group", "ownStoreObject", "parentStoreObject", "equal", "__assign", "fromParent", "hasOwn", "p", "root", "older", "newer", "storeObjectReconciler", "existingObject", "incomingObject", "property", "existingValue", "incomingValue", "shallowCopy", "value", "isNonNullObject", "isArray", "__assign", "ObjectCanon", "canUseWeakSet", "Trie", "canUseWeakMap", "copy", "_this", "original", "proto", "array", "node", "proto_1", "array_1", "keys", "firstValueIndex_1", "key", "obj_1", "i", "obj", "json", "execSelectionSetKeyArgs", "options", "StoreReader", "config", "_this", "canUseWeakMap", "compact", "shouldCanonizeResults", "ObjectCanon", "wrap", "canonizeResults", "peekArgs", "other", "_a", "__assign", "maybeDependOnExistenceOfEntity", "cacheSizes", "selectionSet", "parent", "context", "supportsResultCaching", "isReference", "field", "array", "store", "query", "_b", "rootId", "variables", "_c", "returnPartialData", "_d", "policies", "getDefaultValues", "getQueryDefinition", "rootRef", "makeReference", "execResult", "getMainDefinition", "canonicalStringify", "extractFragmentContext", "missing", "MissingFieldError", "firstMissing", "result", "latest", "objectOrReference", "enclosingRef", "typename", "objectsToMerge", "missingMerger", "DeepMerger", "handleMissing", "resultName", "workSet", "selection", "shouldInclude", "isField", "fieldValue", "resultKeyNameFromField", "addTypenameToDocument", "isArray", "fragment", "getFragmentFromSelection", "Kind", "newInvariantError", "mergeDeepArray", "finalResult", "frozen", "maybeDeepFreeze", "childResult", "i", "item", "assertSelectionSetForIdValue", "firstMissing", "tree", "_", "value", "result", "assertSelectionSetForIdValue", "store", "field", "fieldValue", "workSet_1", "isNonNullObject", "invariant", "isReference", "getTypenameFromStoreObject", "cacheSlot", "Slot", "cacheInfoMap", "getCacheInfo", "cache", "info", "dep", "forgetCache", "rv", "recallCache", "makeVar", "value", "caches", "listeners", "newValue", "broadcast", "oldListeners", "listener", "attach", "specifierInfoCache", "lookupSpecifierInfo", "spec", "cacheKey", "keyFieldsFnFromSpecifier", "specifier", "info", "object", "context", "extract", "from", "key", "keyObject", "collectSpecifierPaths", "schemaKeyPath", "extracted", "extractKeyPath", "hasOwn", "extractKey", "invariant", "keyArgsFnFromSpecifier", "args", "_a", "field", "variables", "fieldName", "collected", "keyPath", "firstKey", "firstChar", "isNonEmptyArray", "directiveName_1", "d", "directiveArgs", "argumentsObjectFromField", "variableName", "varKeyPath", "suffix", "extractor", "merger", "DeepMerger", "getSpecifierPaths", "path", "toMerge", "paths_1", "currentPath_1", "s", "i", "isArray", "p", "normalize", "reducer", "obj", "child", "value", "isNonNullObject", "argsFromFieldSpecifier", "spec", "argumentsObjectFromField", "nullKeyFieldsFn", "simpleKeyArgsFn", "_args", "context", "mergeTrueFn", "existing", "incoming", "_a", "mergeObjects", "mergeFalseFn", "_", "Policies", "config", "__assign", "defaultDataIdFromObject", "object", "partialContext", "policies", "typename", "storeObject", "options", "normalizeReadFieldOptions", "id", "policy", "keyFn", "specifierOrId", "isArray", "keyFieldsFnFromSpecifier", "typePolicies", "_this", "queryType", "mutationType", "subscriptionType", "__rest", "hasOwn", "keyFields", "fields", "setMerge", "merge", "fieldName", "keyArgs", "read", "keyArgsFnFromSpecifier", "which", "rootId", "old", "invariant", "possibleTypes", "supertype", "subtype", "match", "TypeOrFieldNameRegExp", "policy_1", "supertypes_1", "regExp", "fuzzy", "fuzzySupertypes", "rest", "inbox", "createIfMissing", "fieldPolicies", "supertypeSet", "fragment", "result", "variables", "typenameSupertypeSet", "workQueue_1", "maybeEnqueue_1", "needToCheckFuzzySubtypes", "checkingFuzzySubtypes", "i", "selectionSetMatchesResult", "fuzzyString", "fieldSpec", "storeFieldName", "args", "specifierOrString", "storeKeyNameFromField", "getStoreKeyName", "fieldNameFromStoreName", "objectOrReference", "nameOrField", "readOptions", "makeFieldFunctionOptions", "isReference", "cacheSlot", "parentTypename", "childTypename", "storage", "field", "makeMergeObjectsFunction", "makeFieldFunctionOptions", "policies", "objectOrReference", "fieldSpec", "context", "storage", "storeFieldName", "fieldName", "fieldNameFromStoreName", "variables", "_a", "toReference", "canRead", "argsFromFieldSpecifier", "isReference", "normalizeReadFieldOptions", "makeMergeObjectsFunction", "readFieldArgs", "fieldNameOrOptions", "from", "argc", "options", "__assign", "hasOwn", "invariant", "stringifyForDisplay", "store", "existing", "incoming", "isArray", "newInvariantError", "isNonNullObject", "eType", "iType", "typesDiffer", "storeValueIsStoreObject", "getContextFlavor", "context", "clientOnly", "deferred", "key", "flavored", "__assign", "StoreWriter", "cache", "reader", "fragments", "store", "_a", "_this", "query", "result", "dataId", "variables", "overwrite", "operationDefinition", "getOperationDefinition", "merger", "makeProcessedFieldsMerger", "getDefaultValues", "existing", "incoming", "canonicalStringify", "extractFragmentContext", "ref", "isReference", "newInvariantError", "storeObject", "mergeTree", "fieldNodeSet", "entityRef", "makeReference", "applied", "fieldsWithSelectionSets_1", "field", "hasSelectionSet_1", "storeFieldName", "fieldNameFromStoreName", "hasMergeFunction_1", "childTree", "warnAboutDataLoss", "selectionSet", "policies", "typename", "getTypenameFromResult", "readField", "options", "normalizeReadFieldOptions", "info", "result_1", "resultFieldKey", "resultKeyNameFromField", "value", "getChildMergeTree", "incomingValue", "childTypename", "storeValueIsStoreObject", "merge", "maybeRecycleChildMergeTree", "addTypenameToDocument", "invariant", "_b", "id", "keyObject", "e", "dataRef", "sets", "previous_1", "mergeMergeTrees", "mergeTreeIsEmpty", "cloneDeep", "isArray", "item", "fieldMap", "limitingTrie", "Trie", "flatten", "inheritedContext", "visitedNode", "selection", "shouldInclude", "isNonEmptyArray", "dir", "name", "args", "argumentsObjectFromField", "isField", "fragment", "getFragmentFromSelection", "Kind", "getStorageArgs", "e_1", "i_1", "changedFields_1", "getValue_1", "from", "eVal", "iVal", "aVal", "emptyMergeTreePool", "getChildMergeTree", "_a", "name", "map", "mergeMergeTrees", "left", "right", "mergeTreeIsEmpty", "info", "__assign", "needToMergeMaps", "merged", "remainingRightKeys_1", "leftTree", "key", "tree", "maybeRecycleChildMergeTree", "childTree", "warnings", "warnAboutDataLoss", "existingRef", "incomingObj", "storeFieldName", "store", "getChild", "objOrRef", "child", "existing", "incoming", "isReference", "equal", "parentType", "fieldName", "fieldNameFromStoreName", "typeDotName", "childTypenames", "isArray", "typename", "invariant", "InMemoryCache", "_super", "__extends", "config", "_this", "DocumentTransform", "addTypenameToDocument", "makeVar", "normalizeConfig", "Policies", "rootStore", "EntityStore", "resetResultIdentities", "previousReader", "fragments", "StoreWriter", "StoreReader", "shouldCanonizeResults", "wrap", "c", "options", "cacheSizes", "store", "supportsResultCaching", "optimistic", "id", "variables", "canonicalStringify", "group", "data", "_a", "returnPartialData", "__assign", "e", "MissingFieldError", "hasOwn", "watch", "recallCache", "forgetCache", "print", "ids", "rootId", "object", "isReference", "invariant", "idToRemove", "newOptimisticData", "update", "removeOptimistic", "onWatchUpdated", "updateResult", "perform", "layer", "optimisticData", "alreadyDirty", "diff", "result", "optimisticId", "document", "lastDiff", "equal", "ApolloCache", "InMemoryCache", "getInMemoryCacheMemoryInternals", "NetworkStatus", "isNetworkRequestInFlight", "networkStatus", "equalByQuery", "query", "_a", "_b", "variables", "aData", "aRest", "__rest", "bData", "bRest", "lib_default", "equalBySelectionSet", "getMainDefinition", "createFragmentMap", "getFragmentDefinitions", "selectionSet", "aResult", "bResult", "context", "seenSelections", "selection", "shouldInclude", "selectionHasNonreactiveDirective", "isField", "resultKey", "resultKeyNameFromField", "aResultChild", "bResultChild", "childSelectionSet", "aChildIsArray", "bChildIsArray", "length_1", "i", "fragment", "getFragmentFromSelection", "directiveIsNonreactive", "dir", "assign", "hasOwnProperty", "ObservableQuery", "_super", "__extends", "_a", "queryManager", "queryInfo", "options", "_this", "observer", "subObserver", "defaultSubscriptionObserverErrorCallback", "first", "last", "skipCacheDataFor", "_b", "_c", "_d", "defaultFetchPolicy", "_e", "fetchPolicy", "_f", "initialFetchPolicy", "__assign", "opDef", "getOperationDefinition", "resolve", "reject", "result", "subscription", "saveAsLastResult", "lastResult", "networkStatus", "NetworkStatus", "isNetworkRequestInFlight", "diff", "equal", "logMissingFieldErrors", "newResult", "variables", "resultIsDifferent", "equalByQuery", "key", "variablesMustMatch", "reobserveOptions", "queryDef", "getQueryDefinition", "vars", "v", "invariant", "fetchMoreOptions", "combinedOptions", "qid", "originalNetworkStatus", "updatedQuerySet", "fetchMoreResult", "cache", "previous", "updateQuery", "watch", "reobserveCacheFirst", "subscriptionData", "err", "newOptions", "mapFn", "pollInterval", "reason", "newNetworkStatus", "query", "pollingInfo", "info", "poll", "maybeFetch", "error", "cloneDeep", "useDisposableConcast", "oldVariables", "oldFetchPolicy", "mergedOptions", "compact", "finishWaitingForOwnResult", "concast", "fromLink", "args", "_i", "lastError", "isDifferent", "iterateObserversSafely", "errorResult", "sub", "document", "Observable", "fixObservableSubclass", "ObservableQuery", "reobserveCacheFirst", "obsQuery", "fetchPolicy", "_a", "nextFetchPolicy", "currentFetchPolicy", "context", "defaultSubscriptionObserverErrorCallback", "error", "invariant", "logMissingFieldErrors", "missing", "skipCacheDataFor", "LocalState", "_a", "cache", "client", "resolvers", "fragmentMatcher", "_this", "resolverGroup", "mergeDeep", "_b", "document", "remoteResult", "context", "variables", "_c", "onlyRunForcedResolvers", "localResult", "__assign", "hasDirectives", "removeClientSetsFromDocument", "obj", "document_1", "data", "forceResolvers", "visit", "node", "arg", "BREAK", "buildQueryFromSelectionSet", "rootValue_1", "rootValue", "mainDefinition", "getMainDefinition", "fragments", "getFragmentDefinitions", "fragmentMap", "createFragmentMap", "selectionsToResolve", "definitionOperation", "defaultOperationType", "execContext", "isClientFieldDescendant", "result", "selectionSet", "resultsToMerge", "execute", "selection", "__awaiter", "shouldInclude", "isField", "fieldResult", "resultKeyNameFromField", "isInlineFragment", "fragment", "invariant", "typeCondition", "fragmentResult", "mergeDeepArray", "field", "fieldName", "aliasedFieldName", "aliasUsed", "defaultResult", "resultPromise", "resolverType", "resolverMap", "resolve", "cacheSlot", "argumentsObjectFromField", "directive", "isClientField", "d", "item", "isSingleASTNode", "selectionsToResolveCache", "collectByDefinition", "definitionNode", "matches_1", "_", "__", "___", "ancestors", "isSelectionNode", "spread", "fragmentSelections", "destructiveMethodCounts", "canUseWeakMap", "wrapDestructiveCacheMethod", "cache", "methodName", "original", "cancelNotifyTimeout", "info", "QueryInfo", "queryManager", "queryId", "query", "networkStatus", "NetworkStatus", "equal", "options", "oq", "diff", "variables", "_a", "_this", "oldDiff", "reobserveCacheFirst", "listener", "isNetworkRequestInFlight", "fetchPolicy", "watchOptions", "__assign", "result", "lastWrite", "document", "cacheWriteBehavior", "merger", "DeepMerger", "graphQLErrors", "isNonEmptyArray", "mergedData", "mergeIncrementalData", "shouldWriteResult", "diffOptions", "error", "shouldWriteResult", "result", "errorPolicy", "ignoreErrors", "writeWithErrors", "graphQLResultHasError", "hasOwnProperty", "IGNORE", "QueryManager", "_a", "cache", "link", "defaultOptions", "documentTransform", "_b", "queryDeduplication", "onBroadcast", "_c", "ssrMode", "_d", "clientAwareness", "localState", "_e", "assumeImmutableResults", "defaultContext", "_this", "AutoCleanedWeakCache", "cacheSizes", "Trie", "defaultDocumentTransform", "DocumentTransform", "document", "LocalState", "_info", "queryId", "newInvariantError", "error", "cancel", "mutation", "variables", "optimisticResponse", "updateQueries", "refetchQueries", "_f", "awaitRefetchQueries", "updateWithProxyFn", "onQueryUpdated", "_g", "fetchPolicy", "_h", "errorPolicy", "keepRootFields", "context", "invariant", "mutationId", "hasClientExports", "_j", "mutationStoreValue", "isOptimistic", "self", "resolve", "reject", "asyncMap", "__assign", "result", "graphQLResultHasError", "ApolloError", "getGraphQLErrorsFromResult", "storeResult", "err", "cacheWrites", "skipCache", "shouldWriteResult", "isExecutionPatchIncrementalResult", "isNonEmptyArray", "diff", "mergedData", "mergeIncrementalData", "updateQueries_1", "observableQuery", "queryName", "updater", "currentQueryResult", "complete", "nextQueryResult", "getOperationName", "results_1", "write", "update", "isFinalResult", "isExecutionPatchResult", "value", "fieldName", "DELETE", "data", "options", "networkStatus", "store", "info", "queryInfo", "transformCache", "cacheEntry", "hasDirectives", "removeDirectivesFromDocument", "getDefaultValues", "getOperationDefinition", "def", "query", "QueryInfo", "observable", "ObservableQuery", "NetworkStatus", "include", "queries", "queryNamesAndDocs", "legacyQueryOptions", "desc", "isDocumentNode", "isNonNullObject", "oq", "makeUniqueId", "included", "nameOrDoc", "includeStandby", "observableQueryPromises", "makeObservable", "hasErrors", "hasProtocolErrors", "graphQLResultHasProtocolErrors", "errors", "PROTOCOL_ERRORS_SYMBOL", "observablePromise_1", "Observable", "observer", "sub", "deduplication", "serverQuery", "inFlightLinkObservables_1", "operation", "printedServerQuery_1", "print", "varJson_1", "canonicalStringify", "entry", "concast", "Concast", "execute", "clientQuery", "cacheWriteBehavior", "requestId", "linkDocument", "graphQLErrors", "aqr", "networkError", "isApolloError", "defaults", "returnPartialData", "notifyOnNetworkStatusChange", "normalized", "fromVariables", "sourcesWithInfo", "cleanupCancelFn", "reason", "containsDataFromLink", "updateCache", "optimistic", "removeOptimistic", "includedQueriesById", "watch", "lastDiff", "results", "refetchWritePolicy", "oldNetworkStatus", "readCache", "resultsFromCache", "equal", "logMissingFieldErrors", "fromData", "isNetworkRequestInFlight", "resolved", "shouldNotify", "resultsFromLink", "newContext", "hasSuggestedDevtools", "ApolloClient", "options", "_this", "newInvariantError", "credentials", "headers", "cache", "documentTransform", "_a", "ssrMode", "_b", "ssrForceFetchDelay", "_c", "connectToDevTools", "_d", "queryDeduplication", "defaultOptions", "defaultContext", "_e", "assumeImmutableResults", "resolvers", "typeDefs", "fragmentMatcher", "clientAwarenessName", "clientAwarenessVersion", "link", "uri", "HttpLink", "ApolloLink", "version", "LocalState", "QueryManager", "windowWithDevTools", "devtoolsSymbol", "hasSuggestedDevtools", "nav", "ua", "url", "invariant", "mergeOptions", "__assign", "ref", "cb", "payload", "execute", "fn", "c", "map", "result", "obsQuery", "queries", "results", "error", "optimistic", "newLink", "getApolloClientMemoryInternals", "docCache", "fragmentSourceMap", "printFragmentWarnings", "experimentalFragmentVariables", "normalize", "string", "cacheKeyFromLoc", "loc", "processFragments", "ast", "seenKeys", "definitions", "fragmentDefinition", "fragmentName", "sourceKey", "sourceKeySet", "__assign", "stripLoc", "doc", "workSet", "node", "key", "value", "parseDocument", "source", "cacheKey", "parsed", "parse", "gql", "literals", "args", "_i", "result", "arg", "i", "resetCaches", "disableFragmentWarnings", "enableExperimentalFragmentVariables", "disableExperimentalFragmentVariables", "extras", "gql_1", "setVerbosity", "React", "contextKey", "canUseSymbol", "getApolloContext", "invariant", "React", "context", "React", "ApolloProvider", "_a", "client", "children", "ApolloContext", "getApolloContext", "parentContext", "context", "__assign", "invariant", "React", "useApolloClient", "override", "context", "getApolloContext", "client", "invariant", "React", "React", "didWarnUncachedGetSnapshot", "uSESKey", "realHook", "React", "useSyncExternalStore", "subscribe", "getSnapshot", "getServerSnapshot", "value", "invariant", "_a", "inst", "forceUpdate", "canUseLayoutEffect", "checkIfSnapshotChanged", "DocumentType", "cache", "operationName", "type", "name", "parser", "document", "AutoCleanedWeakCache", "cacheSizes", "cached", "variables", "invariant", "fragments", "queries", "mutations", "subscriptions", "_i", "_a", "x", "definitions", "definition", "payload", "registerGlobalCache", "verifyDocumentType", "operation", "requiredOperationName", "usedOperationName", "wrapperSymbol", "wrapHook", "hookName", "useHook", "clientOrObsQuery", "queryManager", "wrappers", "wrapper", "hasOwnProperty", "useQuery", "query", "options", "wrapHook", "_useQuery", "useApolloClient", "useInternalState", "client", "stateRef", "InternalState", "state", "tick", "previous", "_this", "maybeDeepFreeze", "NetworkStatus", "canUseWeakMap", "verifyDocumentType", "DocumentType", "previousResult", "previousData", "invariant", "concast", "_a", "resolve", "result", "value", "getApolloContext", "obsQuery", "useSyncExternalStore", "handleStoreChange", "onNext", "equal", "onError", "error", "subscription", "watchQueryOptions", "currentWatchQueryOptions", "toMerge", "globalDefaults", "compact", "mergeOptions", "skip", "ssr", "onCompleted", "defaultOptions", "otherOptions", "__rest", "_c", "fetchPolicy", "_d", "initialFetchPolicy", "_b", "data", "ssrAllowed", "nextResult", "error_1", "isNonEmptyArray", "ApolloError", "queryResult", "partial", "resultWithoutPartial", "__assign", "import_react", "AsyncDataContext", "u", "useAsyncData", "props", "controller", "_invariant", "setInvariant", "onData", "data", "invariant", "onError", "error", "__name", "Action", "import_rich_text_plain_text_renderer", "PlainRichText", "document", "jsx", "Fragment", "import_cross_fetch", "globalComponentsAccessToken", "globalComponentsSpaceId", "globalComponentsEnvName", "globalComponentsClientName", "globalComponentsApolloLink", "createHttpLink", "globalComponentsSpaceId", "globalComponentsEnvName", "globalComponentsAccessToken", "useGlobalComponentsContentfulQuery", "query", "context", "options", "currentLocale", "isPreview", "isSSR", "mergedOptions", "globalComponentsClientName", "useQuery", "escapedChars", "htmlEscape", "__name", "value", "c", "unicodePatternsToReverse", "unsafeUnicodePatternsToReverse", "htmlUnescape", "undoDangerousCharacters", "pattern", "_1", "_2", "characterCode", "code", "jsonStringify", "detectCycles", "space", "visited", "replacer", "_key", "parseError", "error", "errorString", "errorObject", "unionSet", "iterables", "set", "iterable", "differenceSet", "minuend", "subtrahend", "sleep", "timeoutMs", "resolve", "waitFor", "attempt", "options", "intervalMs", "clockMs", "sleepMs", "valueTest", "onEveryError", "onTimeout", "startMs", "lastError", "latest", "isInWindow", "__name", "isInWorker", "isInBrowser", "Logger", "_a", "message", "debugMode", "logger", "BaseClient", "binaryPayload", "props", "logTimeInterval", "onIncrement", "v", "onAddHistogram", "onAddTimer", "metric", "mappedMetric", "metricsName", "dimensions", "value", "milliSec", "roundedMilliSec", "AuthType", "Authenticator", "MetricCollector", "BaseNetworkHandler", "options", "FetchError", "args", "FetchNetworkHandler", "payload", "authType", "authenticator", "protocol", "host", "path", "headers", "authedHeaders", "resolve", "reject", "url", "response", "reason", "e", "computeMetricKey", "prefixes", "metricNameFragments", "key", "getRandomIntFromRange", "min", "max", "reservoirSample", "array", "maxSize", "newValueList", "i", "nextIndex", "inlineBtoa", "str", "import_long", "import_minimal", "__defProp", "__name", "target", "value", "sha256", "__name", "data", "hash", "bufferToHex", "buffer", "b", "Partition", "activityEvents", "ActivityDetector", "_a", "inactiveThresholdInSecond", "__name", "eventName", "defaultInactiveThreshold", "Graphene", "BaseClient", "version", "heartBeatDuration", "sendHeartBeatEvent", "active", "props", "isInWindow", "graphene", "osTypeFromJSON", "object", "osTypeToJSON", "createBaseAppVersion", "AppVersion", "message", "writer", "_m0", "AppVersion_VersionNumber", "input", "length", "reader", "end", "tag", "isSet", "obj", "base", "createBaseAppVersion_VersionNumber", "createBaseMetric", "Metric", "key", "value", "Metric_CustomDimensionsEntry", "v", "entry3", "longToNumber", "end2", "isObject", "acc", "e", "entries", "k", "createBaseMetric_CustomDimensionsEntry", "createBaseMetricFrame", "MetricFrame", "long", "Long", "WebMetricCollector", "MetricCollector", "options", "metricsName", "dimensions", "metricKey", "computeMetricKey", "prevMetricObject", "milliSec", "frame", "shouldAggregate", "metricObject", "existingValueList", "newValue", "metricsToConvert", "appVersion", "metric", "reservoirSample", "computeWebAttestation", "binaryPayload", "headerString", "sha256", "isInBrowser", "inlineBtoa", "webAttestationHeader", "WebAuthenticator", "Authenticator", "authType", "payload", "headers", "AuthType", "webAttestationHeaderBase64", "getWebConfig", "collectorOptions", "import_clone", "import_head", "import_isUndefined", "import_pickBy", "import_react", "import_react", "ContentfulContext", "import_react", "NotImplemented", "component", "DesignSystemContext", "jsx", "TrackingCookieAllType", "CookieCategoryAllType", "CookieModalAllType", "CookieModalQueryDocumentType", "DevelopmentDomains", "BrowserGrapheneClient", "partition", "host", "__publicField", "client", "Graphene", "flavor", "variant", "config", "getWebConfig", "FetchNetworkHandler", "topLevelDomain", "g", "input", "pattern", "metric", "dimensions", "component", "description", "error", "acceptAllCookies", "categories", "output", "category", "categoryCookieName", "essentialOnlyCookies", "isEssential", "acceptCustomCookies", "custom", "import_js_cookie", "auditForUncategorizedCookies", "cookieMappings", "currentCookies", "Cookies", "allStaticCookieNames", "allCookieRegexPatterns", "_", "categoryCookies", "name", "regex", "uncategorizedCookies", "cookieName", "convertToCategorizedCookie", "hostName", "input", "sys", "name", "pattern", "subDomains", "path", "secure", "sameSite", "output", "createCookieMapping", "categories", "cookieMapping", "category", "cookieSet", "cookieName", "trackingCookie", "categorizedCookie", "cookiesApiPopupEligibleEndpoint", "fetchShouldDisplayModal", "response", "status", "statusText", "cookiesApiUserLocationEndpoint", "fetchUserLocation", "data", "status", "statusText", "json", "country", "region", "import_js_cookie", "getCookie", "name", "Cookies", "getAllCookies", "categories", "output", "category", "categoryCookieName", "cookieValue", "getCookieDomain", "inputCookieDomain", "hostName", "g", "import_js_cookie", "removeCookie", "cookie", "cookieDomain", "currentCookies", "removedCookies", "deleteOptions", "cookieName", "Cookies", "removeRelevantCookies", "cookieType", "cookieMappings", "relevantCookies", "removeCookiesForNonacceptedCategories", "newState", "enableCookieDeletion", "updatedCookies", "import_js_cookie", "setCookie", "name", "value", "domain", "Cookies", "setOptInCookies", "cookieDomain", "cookieStatus", "key", "import_react", "DesignAgnosticButton", "props", "buttonComponent", "DesignSystemContext", "import_react", "DesignAgnosticLocaleDropdown", "props", "localeDropdownComponent", "DesignSystemContext", "import_react", "DesignAgnosticModal", "props", "modalComponent", "DesignSystemContext", "import_react", "DesignAgnosticSection", "props", "sectionComponent", "DesignSystemContext", "import_react", "DesignAgnosticToggle", "props", "toggleComponent", "DesignSystemContext", "import_react", "BrowserErrorBoundary", "props", "partition", "hostname", "client", "BrowserGrapheneClient", "error", "children", "renderInstead", "hasError", "withErrorBoundary", "WrappedComponent", "displayName", "onError", "jsx", "import_rich_text_html_renderer", "import_react", "CookieRichText", "document", "className", "currentLocale", "ContentfulContext", "renderUri", "targetUrl", "uri", "jsx", "cx", "node", "text", "current", "CookieModalFooter", "children", "jsx", "import_react", "GhostLogo", "className", "width", "height", "backgroundType", "fillColor", "outlineColor", "jsx", "jsxs", "CookieModalHeader", "backgroundType", "supportedLocales", "onLocaleChange", "currentLocale", "ContentfulContext", "headerRef", "containerProvider", "jsxs", "jsx", "GhostLogo", "DesignAgnosticLocaleDropdown", "CookieLandingScreen", "backgroundType", "supportedLocales", "title", "content", "settingsButtonText", "acceptAllButtonText", "essentialOnlyButtonText", "onSettingsbuttonClick", "onAcceptAllButtonClick", "onAcceptEssentialButtonClick", "onLocaleChange", "jsxs", "jsx", "CookieModalHeader", "CookieRichText", "CookieModalFooter", "DesignAgnosticButton", "CookieCategories", "title", "cookieCategories", "categoriesState", "updateCategoriesState", "activeToggleLabel", "inactiveToggleLabel", "isModal", "jsxs", "Fragment", "jsx", "category", "cookieCategory", "categoryLabel", "DesignAgnosticToggle", "CookieRichText", "CookieSettingsScreen", "backgroundType", "supportedLocales", "onLocaleChange", "title", "cookieCategories", "activeToggleLabel", "inactiveToggleLabel", "categoriesState", "updateCategoriesState", "acceptAllButtonText", "essentialOnlyButtonText", "acceptSelectedButtonText", "onAcceptAllButtonClick", "onAcceptEssentialButtonClick", "onAcceptSelectedButtonClick", "jsxs", "jsx", "CookieModalHeader", "CookieCategories", "CookieModalFooter", "DesignAgnosticButton", "displayName", "CookieModal", "supportedLocales", "inputCookieDomain", "portalRoot", "backgroundType", "onLocaleChange", "onComplete", "onEvent", "onGlobalPrivacyControlSet", "globalPrivacyControl", "forceVisible", "context", "ContentfulContext", "data", "useGlobalComponentsContentfulQuery", "CookieModalQueryDocumentType", "config", "head", "gpcLocations", "categorySettings", "cookieCategoryMap", "enableCookieDeletion", "createCookieMapping", "cookieDomain", "getCookieDomain", "isInModalRequiredRegion", "setIsInModalRequiredRegion", "userLocation", "setUserLocation", "isDisplayed", "setIsDisplayed", "categoryState", "setCategoryState", "updateCategoryState", "key", "value", "newState", "clone", "isLoaded", "setIsLoaded", "activeScreen", "setActiveScreen", "grapheneClient", "setGrapheneClient", "isGlobalPrivacyControlApplied", "logUncategorizedCookies", "DevelopmentDomains", "uncategorizedCookies", "auditForUncategorizedCookies", "cookieName", "dimensions", "updateUserCookies", "cookiesToSet", "existingCookies", "changesToApply", "pickBy", "isUndefined", "setOptInCookies", "results", "removeCookiesForNonacceptedCategories", "host", "client", "BrowserGrapheneClient", "Partition", "shouldDisplayModal", "fetchShouldDisplayModal", "unknownError", "error", "l", "fetchUserLocation", "defaultState", "essentialOnlyCookies", "retrievedCookies", "getAllCookies", "hasPreviouslyAcceptedCookies", "gpcDimensions", "cookiesToRecreate", "acceptAllCookies", "acceptAll", "logUserAction", "label", "cookieCategories", "acceptEssential", "acceptSelected", "acceptCustomCookies", "jsxs", "DesignAgnosticModal", "jsx", "CookieLandingScreen", "CookieSettingsScreen", "wrapped", "withErrorBoundary", "CookieProvider", "children", "client", "otherProps", "isPreview", "isSSR", "currentLocale", "contentfulContext", "wrappedWithContext", "jsx", "ContentfulContext", "DesignSystemContext", "defaultClient", "ApolloClient", "globalComponentsApolloLink", "InMemoryCache", "ApolloProvider", "import_clone", "import_head", "import_react", "displayName", "CookieSettings", "backgroundType", "inputCookieDomain", "onSubmit", "onEvent", "context", "ContentfulContext", "data", "useGlobalComponentsContentfulQuery", "CookieModalQueryDocumentType", "config", "head", "categorySettings", "cookieCategoryMap", "enableCookieDeletion", "createCookieMapping", "cookieDomain", "getCookieDomain", "userLocation", "setUserLocation", "categoryState", "setCategoryState", "updateCategoryState", "key", "value", "newState", "clone", "setSaveButtonState", "saveButtonState", "updateSaveButton", "grapheneClient", "setGrapheneClient", "updateUserCookies", "cookiesToSet", "setOptInCookies", "results", "removeCookiesForNonacceptedCategories", "cookieName", "dimensions", "host", "client", "BrowserGrapheneClient", "Partition", "retrieveUserCookies", "retrievedCookies", "getAllCookies", "interval", "fetchUserLocation", "unknownError", "error", "l", "acceptSelected", "acceptCustomCookies", "logUserAction", "label", "cookieCategories", "buttonProps", "jsxs", "DesignAgnosticSection", "jsx", "CookieCategories", "DesignAgnosticButton", "wrapped", "withErrorBoundary", "import_react", "Alignment", "VerticalAlignment", "VideoPanelAlignment", "BackgroundStyle", "MobileHeading", "css", "Heading", "mobileMediaQuery", "FontParagraph", "noHorizontalScrollbarsCss", "css", "import_react", "FontStylesheet", "fontFamily", "jsx", "fontLinkIdFn", "fontDefinitionFiles", "globalCss", "strings", "values", "textStyles", "globalCss", "m", "nonMobileMediaQuery", "mobileMediaQuery", "h1Styles", "h2Styles", "h3Styles", "h4Styles", "h5Styles", "h6Styles", "globalMotifCss", "textCss", "css", "h1Css", "h2Css", "h3Css", "h4Css", "h5Css", "h6Css", "p1Css", "p2Css", "p3Css", "p4Css", "actionCss", "injectGlobal", "globalMotifCss", "MotifRoot", "motif", "defaultMotif", "tag", "children", "className", "passThroughProps", "injectedStyles", "MotifContext", "getMotifName", "setMotif", "useMotifStyles", "jsxs", "Fragment", "jsx", "FontStylesheet", "cx", "getTextAlignValue", "alignment", "Alignment", "getFlexAlignValue", "allAlignments", "textAlignmentCss", "css", "alignItemsCss", "justifyItemsCss", "justifyContentCss", "justifyContentMobileCss", "mobileMediaQuery", "alignmentCss", "mobileAlignmentCss", "import_react", "BlockBackgroundColorContext", "formatDateToDatetime", "date", "getBackgroundClassName", "backgroundColor", "getMotifSchemeForLegacyBackgroundColor", "isAbsoluteUrl", "appendTrackingParameters", "href", "parameters", "url", "key", "value", "import_react", "useWindowFocused", "enabled", "isFocused", "setIsFocused", "handleBlur", "handleFocus", "import_react", "AccordionContext", "accordionCss", "css", "m", "titleCss", "nonMobileMediaQuery", "mobileMediaQuery", "Accordion", "children", "multipleOpen", "title", "titleDataset", "useMotifStyles", "openIds", "setOpenIds", "jsx", "AccordionContext", "jsxs", "cx", "accordionCss", "titleCss", "dataSetToAttributes", "import_react", "import_react", "defaultUseToggleStateInit", "noop_default", "useToggleState", "init", "initialValue", "onToggle", "transitionDurationMs", "state", "setState", "setStateAndNotify", "newState", "oldState", "transitionTimeout", "turnOn", "turnOff", "target", "isNil", "value", "isNil_default", "import_react", "fadeInKeyframes", "keyframes", "fadeOutKeyframes", "animationPropsToCssProp", "props", "key", "value", "opacityFadeInCss", "animationProps", "css", "opacityFadeOutCss", "androidFastOutSlowInCurve", "androidLinearOutSlowIn", "slideUpCss", "animationProps", "css", "animationPropsToCssProp", "slideDownCss", "detailsSummaryAnimationDurationCssVar", "detailsCss", "css", "detailsAnimationCss", "fadeInKeyframes", "fadeOutKeyframes", "chevronCss", "summaryCss", "DetailsSummary", "showChevron", "chevronProps", "onToggle", "summary", "summaryProps", "children", "detailsClassName", "fadeInAnimation", "transitionDurationMs", "forceOpen", "parentDetailsRef", "summaryRef", "disableScrollToOnOpen", "forceOpenAttribute", "detailsProps", "parentHasStateControl", "isNil_default", "useMotifStyles", "scrollTimeoutRef", "internalDetailsRef", "setDetailRefs", "el", "isOpenState", "toggleIsOpenInternal", "useToggleState", "toggleWithAnimation", "event", "isNativeOpen", "summaryClassName", "dataset", "otherSummaryProps", "getTitle", "jsxs", "cx", "detailsCss", "detailsAnimationCss", "detailsSummaryAnimationDurationCssVar", "summaryCss", "dataSetToAttributes", "jsx", "Icon", "chevronCss", "accordionItemCss", "css", "m", "summaryCss", "MobileHeading", "itemChevronCss", "duration", "easing", "AccordionItem", "id", "title", "children", "titleDataset", "className", "summaryClassName", "multipleOpen", "openIds", "setOpenIds", "AccordionContext", "detailsRef", "summaryRef", "animation", "isClosing", "isExpanding", "isOpen", "shrink", "startHeight", "endHeight", "onAnimationFinish", "expand", "open", "onToggle", "toggle", "o", "jsx", "DetailsSummary", "itemChevronCss", "m", "cx", "accordionItemCss", "summaryCss", "import_react", "canUseTouchEvent", "useDisableScrollOutside", "allowScrollParent", "inTransition", "shouldAllowScrollEvent", "previousScrollX", "previousScrollY", "lastTouchStartY", "captureTouchStart", "event", "preventScrollEvent", "scrollYDirection", "current", "isInAllowedArea", "hasRoomToScroll", "scrollRoom", "canScrollUp", "canScrollDown", "activeListenerOptions", "import_react", "useOnScreen", "ref", "isIntersecting", "setIntersecting", "observer", "entry", "import_react", "import_react", "combineRefs", "innerRef", "fwdRef", "element", "ref", "isVideoPlaying", "video", "import_react", "import_react", "TabsContext", "videoCss", "css", "objectFitCoverCss", "objectFitContainCss", "getObjectFit", "isBackgroundVideo", "Video", "props", "ref", "source", "mobileSource", "sourceType", "mobileSourceType", "posterSource", "altText", "className", "style", "muted", "autoPlay", "loop", "controls", "playsInline", "onPlay", "captionsSource", "isBackgroundVideo", "onTimeUpdate", "dataset", "videoRef", "getLowEntropyHints", "BrowserFeaturesContext", "clientHints", "currentTrack", "track", "forceAutoplay", "videoEl", "isPlaying", "addOnTabChangeListener", "removeOnTabChangeListener", "TabsContext", "onTabChange", "isVideoPlaying", "objectFitStyle", "getObjectFit", "preload", "isSafari", "browser", "videoSource", "mobileVideoSource", "jsxs", "cx", "videoCss", "combineRefs", "dataSetToAttributes", "jsx", "LaptopWrapper", "children", "className", "maxHeight", "styleCss", "css", "jsx", "cx", "jsxs", "baseImageCss", "css", "noWrapImageCss", "m", "wrappedImageCss", "wrappedVideoCss", "noWrapVideoCss", "wrappedBackgroundVideoCss", "noWrapBackgroundVideoCss", "phoneVideoCss", "mobileMediaQuery", "smallMobileMediaQuery", "divStyleCss", "macSafariCss", "phoneContainerCss", "shadowContainerCss", "phoneWrapperCss", "css", "phoneWrapperBgCss", "PhoneWrapper", "children", "jsx", "cx", "mediaWrapperClassName", "Media", "props", "ref", "className", "altText", "imageSource", "maxHeight", "maxWidth", "videoSource", "mobileVideoSource", "sourceType", "wrap", "Device", "showVideoControls", "autoplay", "posterSource", "onPlay", "captionsSource", "isBackgroundVideo", "onTimeUpdate", "imgSrcs", "dataset", "height", "width", "isDraggable", "useMotifStyles", "unwrapped", "getLowEntropyHints", "BrowserFeaturesContext", "mediaRef", "clientHints", "applyMacSafariStyles", "browser", "isDevice", "sizeStyles", "imgClassName", "cx", "wrappedImageCss", "noWrapImageCss", "phoneContainerCss", "shadowContainerCss", "jsx", "Picture", "wrappedVideo2Css", "wrappedBackgroundVideoCss", "wrappedVideoCss", "noWrapVideo2Css", "noWrapBackgroundVideoCss", "noWrapVideoCss", "videoClassName", "phoneVideoCss", "macSafariCss", "Video", "combineRefs", "divStyleCss", "LaptopWrapper", "PhoneWrapper", "import_react", "import_react", "extraLargeDesktopMediaQuery", "mediaQueryForRange", "maxWidth", "layoutCss", "css", "layoutReverseCss", "accordionContainerCss", "imagesContainerCss", "accordionItemCss", "accordionItemDetailCss", "accordionItemDetailContentCss", "accordionItemDetailContentActiveCss", "accordionItemSummaryCss", "progressIndicatorCss", "progressIndicatorBarCss", "m", "imageAspectRatioWrapperCss", "imageCss", "imageActiveCss", "ProgressIndicator", "durationMs", "isActive", "isPaused", "onAnimationComplete", "barRef", "animation", "jsx", "progressIndicatorCss", "progressIndicatorBarCss", "animationOptions", "AccordionItem", "isOpen", "isPaused", "progressIndicatorDurationMs", "title", "body", "onToggle", "onMouseOver", "onMouseLeave", "onAnimationComplete", "detailsRef", "summaryRef", "animation", "isClosing", "setIsClosing", "isExpanding", "setIsExpanding", "shrink", "startHeight", "endHeight", "onAnimationFinish", "expand", "open", "useBrowserLayoutEffect", "jsxs", "accordionItemCss", "jsx", "ProgressIndicator", "DetailsSummary", "accordionItemDetailCss", "accordionItemSummaryCss", "cx", "accordionItemDetailContentCss", "accordionItemDetailContentActiveCss", "Accordion", "items", "mediaDirection", "autoPlaySpeedMs", "allowAnimation", "accordionRef", "isOnScreen", "useOnScreen", "activeItem", "setActiveItem", "isPaused", "setIsPaused", "handleOnAnimationComplete", "prevActiveItem", "jsxs", "cx", "layoutCss", "layoutReverseCss", "jsx", "accordionContainerCss", "item", "i", "AccordionItem", "imagesContainerCss", "imageAspectRatioWrapperCss", "Media", "imageCss", "imageActiveCss", "import_react", "import_react", "minHeightVariable", "progressIndicatorWidth", "accordionItemAlignStartCss", "css", "accordionItemAlignCenterCss", "accordionItemAlignEndCss", "hiddenAccordionItemCss", "fadeInAnimationCss", "accordionItemContainerCss", "m", "mediaContainerCss", "imageCss", "accordionControlsContainerCss", "navDotsContainerCss", "progressIndicatorContainerCss", "progressIndicatorCss", "progressIndicatorBarCss", "dotContainerCss", "dotCss", "navButtonCss", "contentContainerCss", "contentTitleCss", "contentBodyCss", "ProgressIndicatorMobile", "durationMs", "isActive", "isPaused", "onAnimationComplete", "barRef", "animation", "progressIndicatorWidth", "jsx", "progressIndicatorCss", "progressIndicatorBarCss", "AnimatedAccordionControls", "props", "currentItemIndex", "durationMs", "isActive", "isPaused", "itemsCount", "onAnimationComplete", "onPause", "jsxs", "accordionControlsContainerCss", "jsx", "navDotsContainerCss", "_", "index", "progressIndicatorContainerCss", "ProgressIndicatorMobile", "dotContainerCss", "dotCss", "navButtonCss", "PlayFilled_default", "Pause_default", "AnimatedAccordionMobile", "props", "items", "textAlignment", "allowAnimation", "itemsRefs", "activeItem", "setActiveItem", "isPaused", "setIsPaused", "touchStartX", "setTouchStartX", "isSwipping", "setIsSwipping", "swipeOffset", "setSwipeOffset", "maxHeight", "setMaxHeight", "isMaxHeightSet", "handleOnAnimationComplete", "prevActiveItem", "handleTouchStart", "event", "handleTouchMove", "deltaX", "handleTouchEnd", "previousAccordionItem", "nextAccordionItem", "heights", "item", "maxHeightVariableStyles", "minHeightVariable", "jsx", "itemIndex", "jsxs", "cx", "accordionItemContainerCss", "accordionItemAlignStartCss", "Alignment", "accordionItemAlignCenterCss", "accordionItemAlignEndCss", "hiddenAccordionItemCss", "element", "mediaContainerCss", "fadeInAnimationCss", "Media", "imageCss", "AnimatedAccordionControls", "contentContainerCss", "contentTitleCss", "contentBodyCss", "AnimatedAccordion", "props", "isMobile", "useMediaMode", "MediaMode", "mediaDirection", "autoPlaySpeed", "textAlignmentMobile", "Alignment", "items", "jsx", "AnimatedAccordionMobile", "Accordion", "import_react", "staticObserver", "getObserver", "entries", "entry", "target", "delayAttr", "delay", "getAnimationClassName", "animation", "css", "containerTargetKey", "useAnimations", "ref", "animations", "componentName", "observer", "toObserve", "targetRef", "element", "animationsProps", "item", "useGlobalAnimations", "animations", "globalAnimationStyles", "item", "injectGlobal", "globalCss", "authorBylineContainerCss", "css", "authorBylineAuthorCss", "AuthorByline", "author", "date", "jsxs", "authorBylineContainerCss", "jsx", "import_react", "import_react", "import_react", "tableWithHeadersClassName", "columnCountVariable", "tableWrapperCss", "css", "m", "primitiveElementClassNames", "tableCss", "overflowOnMobileCss", "mobileMediaQuery", "collapsedMobileTableCss", "tableCellCss", "tableHeaderCss", "tableRowCss", "PrimitiveTableCell", "children", "jsx", "tableCellCss", "PrimitiveTableHeader", "tableHeaderCss", "PrimitiveTableRow", "tableRowCss", "PrimitiveTable", "children", "collapseMobileTable", "useMotifStyles", "firstTableRow", "child", "PrimitiveTableRow", "columnCount", "PrimitiveTableHeader", "PrimitiveTableCell", "hasTableHeaders", "columnCountVariableStyles", "columnCountVariable", "jsx", "cx", "tableWrapperCss", "tableCss", "collapsedMobileTableCss", "tableWithHeadersClassName", "overflowOnMobileCss", "CollapseTableMobile", "NoCollapseTableMobile", "containerCss", "css", "m", "IconButton", "props", "ref", "url", "iconName", "className", "iconClassName", "onClick", "disabled", "size", "passThrough", "useMotifStyles", "Anchor", "PrimitivesContext", "containerClassName", "cx", "containerCss", "icon", "jsx", "Icon", "m", "onActivate", "autoCompleteContainerCss", "open", "setMaxWidth", "css", "BackgroundColor", "m", "inputCss", "nonMobileMediaQuery", "resultsContainerCss", "noResults", "resultsContainerWithResultsCss", "resultsContainerNoResultsCss", "autocompleteListItemCss", "searchIconCss", "cancelButtonCss", "searchButtonCss", "rowCss", "seeResultsCss", "selectedStyle", "AutocompleteSuggestion", "term", "onClick", "setSelectedIndex", "isActive", "listItemStyles", "resultAccessor", "loadingAutocompleteTerms", "loadingMessage", "ref", "jsx", "autocompleteListItemCss", "cx", "e", "AutoComplete", "onSelect", "onChange", "onKeyDown", "onSeeResults", "onCollapseChange", "autocompleteResults", "placeholder", "cancelMessage", "seeResultsMessage", "noResultsMessage", "initialText", "containerStyles", "inputStyles", "collapsible", "shortBar", "disabled", "hideSuggestions", "hideCancelButton", "currentSearchTerm", "setCurrentSearchTerm", "collapsedState", "setCollapsedState", "showSuggestions", "setShowSuggestions", "selectedIndex", "inputEl", "setShowSearchSuggestions", "show", "collapseChange", "state", "onInputChange", "onCancel", "onSeeResultsHandler", "handleKeyDown", "event", "autocompleteLength", "newSelectedIndex", "renderSuggestions", "resultsContainerWithResultsCss", "resultsContainerNoResultsCss", "result", "index", "IconButton", "searchButtonCss", "showSeeResults", "jsxs", "autoCompleteContainerCss", "rowCss", "Icon", "searchIconCss", "inputCss", "cancelButtonCss", "seeResultsCss", "import_react", "globalHeaderBannerCss", "css", "m", "mobileMediaQuery", "globalHeaderBannerContentContainerCss", "globalHeaderBannerButtonDivCss", "globalHeaderBannerButtonStylesCss", "Banner", "backgroundColor", "className", "children", "contentClassName", "dataset", "useMotifStyles", "show", "setShow", "jsxs", "cx", "globalHeaderBannerCss", "getBackgroundClassName", "dataSetToAttributes", "jsx", "globalHeaderBannerContentContainerCss", "globalHeaderBannerButtonDivCss", "globalHeaderBannerButtonStylesCss", "Cross_default", "import_react", "styleCss", "css", "maxWidth", "styleReducedCss", "nonMobileMediaQuery", "reducedWidth", "styleNarrowCss", "narrowWidth", "BlockBoundary", "children", "className", "isNarrow", "widthStyle", "passThroughProps", "useMotifStyles", "cx", "jsx", "import_react", "globalNavOuterMargin", "globalLinksClassName", "globalNavMobileLocalNavClassName", "globalNavNegativeOuterMargin", "globalNavLevelClassName", "nextLevelLineHeightCssVar", "testIds", "defaultIsUrlCurrent", "location", "destinationUrl", "base", "destUrl", "currentUrlHost", "currentUrlPath", "getNavigationBreadcrumbs", "navigationTree", "isUrlCurrent", "results", "node", "traverseTree", "output", "item", "parents", "parent", "child", "ancestors", "import_react", "GlobalHeaderContext", "childrenMarginCss", "outerMargin", "innerMargin", "css", "globalHeaderCss", "m", "ZIndex", "globalHeaderDesktopCss", "globalHeaderDesktopNavItemsUltraWideAlignCss", "maxWidth", "globalHeaderDesktopNavItemsStartAlignCss", "globalHeaderDesktopNavItemsCenterAlignCss", "globalHeaderDesktopNavItemsEndAlignCss", "globalHeaderMobileCss", "globalHeaderDesktopNavButtonCss", "globalHeaderMobileNavButtonCss", "globalHeaderCtaDesktopCss", "globalHeaderButtonCss", "globalHeaderCtaMobileCss", "globalHeaderNavButtonCss", "globalHeaderDesktopContainerCss", "mobileMediaQuery", "globalHeaderMobileBarCss", "alignmentToNavItemsCss", "globalHeaderDesktopNavItemsStartAlignCss", "globalHeaderDesktopNavItemsCenterAlignCss", "globalHeaderDesktopNavItemsEndAlignCss", "GlobalHeaderDesktop", "logo", "siteName", "className", "cta", "endChildrenClassName", "localNavDesktop", "toggleExpanded", "showNavScreen", "showGlobalLinks", "navItemAlignment", "buttonAriaLabel", "dataset", "jsx", "cx", "globalHeaderDesktopCss", "dataSetToAttributes", "jsxs", "globalHeaderDesktopContainerCss", "IconButton", "globalHeaderDesktopNavButtonCss", "testIds", "globalHeaderDesktopNavItemsUltraWideAlignCss", "globalHeaderCtaDesktopCss", "testIds", "GlobalHeaderMobile", "logo", "cta", "className", "isExpanded", "toggleExpanded", "showNavScreen", "endChildrenClassName", "buttonAriaLabel", "dataset", "jsxs", "cx", "globalHeaderMobileCss", "dataSetToAttributes", "jsx", "globalHeaderMobileNavButtonCss", "testIds", "Icon", "m", "globalHeaderMobileBarCss", "globalHeaderCtaMobileCss", "defaultGlobalNavMobileGroupKey", "GlobalHeader", "backgroundColor", "className", "defaultGroupKey", "children", "displayed", "onToggleExpanded", "stayOpenInvariant", "trackingSiteName", "showNavScreen", "dataset", "isUrlCurrent", "headerNavigationTree", "buttonAriaLabel", "otherHeaderProps", "useMotifStyles", "mode", "useMediaMode", "navigationBreadcrumbs", "getNavigationBreadcrumbs", "isExpandedState", "toggleExpanded", "useToggleState", "newState", "_oldState", "groupKey", "setGroupKey", "MediaMode", "isVisible", "classNameWithTheme", "cx", "getBackgroundClassName", "testIds", "isExpanded", "GlobalHeaderImpl", "GlobalHeaderMobile", "GlobalHeaderDesktop", "jsxs", "GlobalHeaderContext", "jsx", "import_react", "globalNavItemCss", "css", "m", "globalNavItemWithChildrenCss", "externalIconCss", "globalNavItemChevronCss", "childrenCountCssVarName", "animateInDetailsCss", "css", "nextLevelLineHeightCssVar", "androidLinearOutSlowIn", "itemListCss", "nonMobileMediaQuery", "globalNavGroupCss", "globalNavOuterMargin", "m", "globalNavNegativeOuterMargin", "detailsHeightAnimationDesktopCss", "GlobalNavGroup", "navGroupKey", "title", "mobileHighlight", "children", "groupKey", "setGroupKey", "mode", "screenState", "GlobalHeaderContext", "isOpen", "setIsOpen", "newIsOpen", "timeoutRef", "wrappedChildren", "jsx", "itemListCss", "child", "index", "setGroupKeyOnToggleOn", "target", "isMobile", "MediaMode", "jsxs", "DetailsSummary", "globalNavItemChevronCss", "cx", "globalNavLevelClassName", "detailsHeightAnimationDesktopCss", "globalNavGroupCss", "childrenCountCssVarName", "import_react", "highlightTextClassName", "highlightTextTitleClassName", "highlightTextBodyClassName", "highlightMediaMobileClassName", "highlightMediaDesktopClassName", "highlightCtaClassName", "highlightMediaCss", "className", "css", "m", "highlightDesktopCss", "lineClampCss", "lines", "highlightCardCss", "highlightCardOuterMargin", "highlightCtaMargin", "highlightCardWideDesktopCss", "highlightCardNarrowDesktopCss", "highlightCardBreakDesktopWidth", "highlightCardDesktopCss", "highlightCardMobileCss", "highlightSpace", "reelDesktopCss", "androidFastOutSlowInCurve", "GlobalNavHighlightDesktop", "background", "callToAction", "cardTitleV2", "cardBodyV2", "cardTitle", "cardBody", "jsxs", "highlightDesktopCss", "jsx", "highlightMediaDesktopClassName", "cx", "getBackgroundClassName", "BackgroundColor", "highlightCardDesktopCss", "highlightTextClassName", "highlightTextTitleClassName", "highlightTextBodyClassName", "highlightCtaClassName", "GlobalNavHighlight", "props", "GlobalHeaderContext", "MediaMode", "jsx", "GlobalNavHighlightDesktop", "import_react", "GlobalNavHighlightReel", "className", "highlights", "headerContext", "GlobalHeaderContext", "isMobile", "MediaMode", "selectedIndex", "setSelectedIndex", "nonNullHighlights", "_groupKey", "highlight", "index", "selectedCss", "css", "jsx", "cx", "reelDesktopCss", "import_snakeCase", "import_react", "isExternal", "link", "isAbsoluteUrl", "defaultTrackingParameters", "GlobalNavItemWithChildren", "title", "children", "isSelected", "jsx", "DetailsSummary", "cx", "globalNavItemChevronCss", "globalNavLevelClassName", "globalNavItemWithChildrenCss", "itemListCss", "child", "GlobalNavItem", "href", "showExternalIcon", "onClick", "dataset", "addTrackingParams", "Anchor", "PrimitivesContext", "navigationBreadcrumbs", "toggleExpanded", "trackingSiteName", "GlobalHeaderContext", "isSelectedBreadcrumb", "shouldSelect", "trackingParameters", "snakeCase", "trackedHref", "appendTrackingParameters", "isLinkExternal", "isExternal", "onLinkActivate", "event", "jsxs", "globalNavItemCss", "dataSetToAttributes", "Icon", "externalIconCss", "import_react", "scrollbarCss", "backgroundColor", "thumbColor", "trackWidth", "css", "Transparent", "screenStateClassName", "state", "globalNavCss", "css", "m", "ZIndex", "levelSelector", "level", "globalNavLevelClassName", "globalNavDesktopFontCss", "nextLevelLineHeightCssVar", "globalNavMobileFontCss", "leftNavWidth", "globalNavHighlightClassName", "globalNavNoScrollClassName", "globalNavLeftNavClassName", "globalNavDesktopCss", "slideDownCss", "slideUpCss", "scrollbarCss", "globalNavOuterMargin", "globalNavMobileCss", "opacityFadeInCss", "opacityFadeOutCss", "globalNavMobileLocalNavClassName", "globalLinksClassName", "globalNavMobileHeadingCss", "import_react", "GlobalNavScreenDesktop", "className", "onNavClose", "highlight", "globalNav", "backgroundColor", "screenState", "dataset", "leftNavRef", "ref", "testIds", "useDisableScrollOutside", "jsxs", "cx", "globalNavDesktopCss", "getBackgroundClassName", "dataSetToAttributes", "globalNavLeftNavClassName", "jsx", "IconButton", "globalHeaderDesktopNavButtonCss", "globalNavHighlightClassName", "import_react", "GlobalNavScreenMobile", "className", "localNavMobile", "localNavMobileFooter", "globalNav", "globalNavHeading", "backgroundColor", "showGlobalLinks", "dataset", "navScreenRef", "screenState", "GlobalHeaderContext", "inTransition", "useDisableScrollOutside", "LocalNavSection", "jsxs", "globalNavMobileLocalNavClassName", "Fragment", "jsx", "testIds", "cx", "globalNavMobileCss", "getBackgroundClassName", "dataSetToAttributes", "globalLinksClassName", "globalNavMobileHeadingCss", "GlobalNavScreen", "props", "screenState", "mode", "GlobalHeaderContext", "MediaMode", "jsx", "GlobalNavScreenMobile", "screenStateClassName", "GlobalNavScreenDesktop", "blockScrollMarginCss", "css", "blockPadding", "backgroundCss", "curtainCss", "ZIndex", "blockCss", "m", "boundaryCss", "mobileMediaQuery", "headerCss", "eyebrowCss", "titleCss", "subtitleCss", "callsToActionWrapperCss", "contentContainerCss", "contentContainerStyle1ColumnCss", "contentContainerStyle2ColumnCss", "nonMobileMediaQuery", "contentContainerStyle3ColumnCss", "nonTwoColumnCollapseMediaQuery", "twoColumnCollapseMediaQuery", "contentContainerStyle4ColumnCss", "threeColumnCollapseMediaQuery", "fullHeightBlockCss", "Block", "showCurtain", "backgroundVideoSource", "mobileBackgroundVideoSource", "backgroundImageSources", "callsToAction", "children", "anchorId", "maxColumns", "backgroundColor", "eyebrow", "title", "subtitle", "titleAlignment", "Alignment", "titleAlignmentMobile", "widthStyle", "fullHeight", "className", "style", "eyebrowDataset", "titleDataset", "subtitleDataset", "preChildren", "postChildren", "useMotifStyles", "hasHeader", "numChildren", "callsToActionCount", "jsxs", "cx", "getBackgroundClassName", "blockCss", "blockScrollMarginCss", "fullHeightBlockCss", "jsx", "curtainCss", "backgroundCss", "Picture", "Video", "BlockBackgroundColorContext", "BlockBoundary", "boundaryCss", "headerCss", "alignmentCss", "mobileAlignmentCss", "eyebrowCss", "dataSetToAttributes", "titleCss", "p1Css", "subtitleCss", "contentContainerCss", "contentContainerStyle1ColumnCss", "contentContainerStyle2ColumnCss", "contentContainerStyle3ColumnCss", "contentContainerStyle4ColumnCss", "callsToActionWrapperCss", "linkBeforeCss", "m", "mobileMediaQuery", "desktopSideNavWidthPx", "wrapperCss", "css", "ZIndex", "nonMobileMediaQuery", "wrapperShadowCss", "containerCss", "linkCss", "caratCss", "activeLinkCss", "sectionButtonCss", "sideNavIconCss", "sideNavMobileIconCss", "containerCss", "css", "m", "pageTransparentBgCss", "fixedBackgroundImageCss", "css", "backgroundMediaCss", "fixedBackgroundMediaCss", "sideNavigationWrapperCss", "White", "mobileMediaQuery", "sideNavigationWrapperBlocksCss", "maxWidth", "desktopSideNavWidthPx", "breakHeightCss", "css", "m", "mobileMediaQuery", "breakHalfHeightCss", "breakCss", "ZIndex", "patternCss", "topOverlaidCss", "bottomOverlaidCss", "topHalfOverlaidCss", "bottomHalfOverlaidCss", "spacerWrapperCss", "spacerHeightFullCss", "spacerHeightHalfCss", "HeadBreak", "props", "topColor", "bottomColor", "rest", "jsxs", "jsx", "HeadFlippedBreak", "props", "topColor", "bottomColor", "rest", "jsxs", "jsx", "SkirtBreak", "props", "topColor", "bottomColor", "rest", "jsxs", "jsx", "Skirt2Break", "props", "topColor", "bottomColor", "rest", "jsxs", "jsx", "StraightBreak", "props", "topColor", "bottomColor", "rest", "jsx", "Template", "getBreakOverlayType", "template", "isTopTransparent", "isBottomTransparent", "isOverlaid", "isTransparentTopOnly", "isTransparentBottomOnly", "Template", "Break", "template", "topColor", "bottomColor", "isOverlaid", "useMotifStyles", "isTopTransparent", "isBottomTransparent", "topScheme", "getMotifSchemeForLegacyBackgroundColor", "bottomScheme", "topValue", "getMotifVariableValue", "bottomValue", "pattern", "Template", "jsx", "HeadBreak", "patternCss", "HeadFlippedBreak", "SkirtBreak", "Skirt2Break", "StraightBreak", "breakOverlayType", "getBreakOverlayType", "cx", "breakCss", "topOverlaidCss", "bottomOverlaidCss", "topHalfOverlaidCss", "bottomHalfOverlaidCss", "BreakSpacer", "type", "location", "useMotifStyles", "isFullHeight", "isHalfHeight", "jsx", "cx", "spacerWrapperCss", "spacerHeightFullCss", "spacerHeightHalfCss", "import_react", "cardTextHeight", "arrowIconSize", "lineClamp", "lines", "css", "cardCss", "m", "linkCss", "mediaContainerCss", "image169Css", "image32Css", "image11Css", "imageLoadingCss", "cardPortraitWidthCss", "mobileMediaQuery", "cardLandscapeWidthCss", "mediaQueryForRange", "singleViewLandscapeWidthCss", "textWrapperCss", "textWrapperOverlapCss", "textCss", "textOverlapCss", "arrowCss", "infoElementCss", "titleCss", "h5Css", "titleOnlyClampCss", "subtitleCss", "h6Css", "subtitleOnlyClampCss", "bodyCss", "p3Css", "bodyOnlyClampCss", "imageCss", "videoCss", "videoPlayerControlsCss", "textPlayerControlsCss", "CarouselCardItem", "aspectRatio", "autoplay", "body", "captionsSource", "imgAltText", "imgSrcs", "shouldLoad", "onPlay", "onTimeUpdate", "openNewTab", "posterSource", "isVisible", "showVideoControls", "subtitle", "title", "url", "videoSource", "mobileVideoSource", "onClick", "isSingleView", "className", "media", "setMedia", "mediaCallback", "elt", "didLoad", "Anchor", "PrimitivesContext", "isTextOverlap", "onClickWrapped", "event", "video", "isVideoPlaying", "hasBodyContent", "mediaElement", "mediaCss", "cx", "videoCss", "imageCss", "videoPlayerControlsCss", "jsx", "Media", "mediaContent", "mediaContainerCss", "image32Css", "image11Css", "image169Css", "imageLoadingCss", "bodyContent", "textWrapperCss", "textWrapperOverlapCss", "jsxs", "textCss", "textOverlapCss", "textPlayerControlsCss", "Icon", "arrowCss", "infoElementCss", "titleCss", "titleOnlyClampCss", "subtitleCss", "subtitleOnlyClampCss", "bodyCss", "bodyOnlyClampCss", "commonCss", "cardLandscapeWidthCss", "singleViewLandscapeWidthCss", "cardPortraitWidthCss", "cardCss", "linkCss", "import_react", "arrowIconSize", "maxTextWidth", "linkCss", "css", "m", "mobileMediaQuery", "contentCss", "nonMobileMediaQuery", "descriptionCss", "subTextCss", "p3Css", "arrowCss", "CarouselTextItem", "description", "subText", "url", "openNewWTab", "onClick", "rest", "Anchor", "PrimitivesContext", "onClickWrapped", "event", "jsxs", "cx", "contentCss", "linkCss", "jsx", "Icon", "arrowCss", "descriptionCss", "subTextCss", "baseClamp", "number", "lower", "upper", "baseClamp_default", "init_toNumber", "clamp", "number", "lower", "upper", "toNumber_default", "baseClamp_default", "clamp_default", "nativeMax", "nativeMin", "baseInRange", "number", "start", "end", "baseInRange_default", "init_toNumber", "INFINITY", "MAX_INTEGER", "toFinite", "value", "toNumber_default", "sign", "toFinite_default", "init_toNumber", "inRange", "number", "start", "end", "toFinite_default", "toNumber_default", "baseInRange_default", "inRange_default", "import_react", "carouselAnimationDuration", "carouselContainerCss", "css", "mobileMediaQuery", "carouselContentWrapperCss", "carouselCenteredCss", "carouselGapCss", "m", "nonMobileMediaQuery", "carouselSingleViewDefaultTransformCss", "carouselContentCss", "carouselSlideCss", "carouselFillSlidesCss", "dotWrapperCss", "dotCss", "dotActiveCss", "dotsInnerContainerCss", "withDotsCss", "dotsContainerCss", "Dots", "currentIndex", "length", "onDotClick", "jsx", "dotsContainerCss", "dotsInnerContainerCss", "_", "index", "dotWrapperCss", "cx", "dotCss", "dotActiveCss", "import_react", "isCarouselV3Element", "elem", "CarouselV3", "getValueFromDirection", "originalValue", "isRTL", "modulo", "x", "m", "shortestPath", "currentIndex", "targetIndex", "count", "direct", "wrapping", "direction", "useDrag", "dragStart", "dragMove", "dragEnd", "isMobile", "useMediaMode", "MediaMode", "initialTouchPosition", "touchPosition", "event", "clientX", "diff", "initial", "current", "CarouselV3", "children", "isSingleView", "isRtl", "autoPlay", "autoPlaySpeed", "useMotifStyles", "carouselContentWrapperRef", "carouselContent", "setCarouselContent", "carouselContentRefCallback", "node", "fadeOutTimeouts", "autoplayInterval", "enableTransition", "isPaused", "setIsPaused", "isOnScreen", "useOnScreen", "currentIndex", "setCurrentIndex", "isFocused", "useWindowFocused", "tileSize", "setTileSize", "childElements", "cardsLength", "windowWidth", "useWindowSize", "visibleCount", "carouselContentWidth", "cardWidth", "isCarousel", "duplicateCount", "width", "gapCss", "gapInt", "gap", "timeoutID", "slide", "index", "isCurrent", "carouselAnimationDuration", "currentOffset", "shiftItems", "numberOfItemsToShift", "handleKeyUp", "event", "onDotClick", "targetIndex", "mobileMaxWidth", "finalDelta", "shortestPath", "newIndex", "dragHandlers", "useDrag", "delta", "xPosition", "getValueFromDirection", "threshold", "clampedSteps", "clamp_default", "handleMouseEnter", "handleMouseLeave", "handleMouseUp", "resetPosition", "handleTransitionEnd", "e", "carouselContentStyle", "isSSR", "renderDots", "preceding", "_", "modulo", "following", "cardIsVisible", "inRange_default", "cardShouldLoad", "jsxs", "cx", "carouselContainerCss", "withDotsCss", "jsx", "carouselContentWrapperCss", "carouselContentCss", "carouselCenteredCss", "carouselSingleViewDefaultTransformCss", "carouselGapCss", "child", "idx", "carouselSlideCss", "carouselFillSlidesCss", "Dots", "categoryCss", "css", "Category", "title", "jsx", "categoryCss", "import_react", "hideWhenMobileCss", "css", "mobileMediaQuery", "hideWhenDesktopCss", "nonMobileMediaQuery", "contentScrollMarginCss", "css", "contentBaseCss", "m", "mobileMediaQuery", "transparentBackgroundCss", "contentLayoutCss", "contentLayoutDirectionCss", "mediaOrderCss", "contentWrapperStyle", "contentWrapperNoMobilePaddingStyle", "bodyContainerCss", "bodyContainerStretchCss", "nonMobileMediaQuery", "bodyStyleCss", "p2Css", "bodyMarginTopCss", "ctaMarginTopCss", "headerCss", "titleCss", "h4Css", "subtitleBaseCss", "alignmentClassNames", "Alignment", "textAlignmentBaseCss", "textAlignmentDesktopStyle", "textAlignmentMobileStyle", "ctaContainerCss", "ctaInnerCss", "displayNoneCss", "Content", "className", "body", "bodyAlignment", "Alignment", "bodyAlignmentMobile", "callsToAction", "displayOn", "layout", "mediaDirection", "subtitle", "title", "titleAlignment", "titleAlignmentMobile", "contentBackgroundColor", "anchorId", "animations", "isRTL", "bodyDataset", "titleDataset", "subtitleDataset", "asset", "style", "useMotifStyles", "contentRef", "animationProps", "useAnimations", "dir", "blockBackgroundColor", "BlockBackgroundColorContext", "backgroundColor", "isSameBackgroundColorAsBlock", "hasHeader", "hasCallsToAction", "hasBody", "hasContent", "hasMediaAndContent", "bgClass", "getBackgroundClassName", "contentBoxStyle", "contentWrapperNoMobilePaddingStyle", "contentWrapperStyle", "sectionClassName", "cx", "contentBaseCss", "hideWhenMobileCss", "hideWhenDesktopCss", "displayNoneCss", "contentLayoutCss", "contentLayoutDirectionCss", "transparentBackgroundCss", "titleAlignmentClassName", "textAlignmentBaseCss", "textAlignmentDesktopStyle", "textAlignmentMobileStyle", "ContentHeader", "jsxs", "headerCss", "jsx", "titleCss", "dataSetToAttributes", "p1Css", "subtitleBaseCss", "bodyAlignmentClassName", "BodyContent", "bodyStyleCss", "bodyMarginTopCss", "ctaContainerCss", "ctaInnerCss", "ctaMarginTopCss", "contentScrollMarginCss", "mediaOrderCss", "bodyContainerCss", "bodyContainerStretchCss", "import_react", "definitionCss", "css", "m", "definitionActiveCss", "Definition", "anchorId", "isActive", "onClick", "className", "children", "ref", "useMotifStyles", "jsx", "e", "cx", "definitionCss", "definitionActiveCss", "buttonsWrapperClassName", "dropdownWrapperClassName", "skeletonWrapperClassName", "buttonsWrapperCss", "css", "buttonsBaseCss", "m", "mobileMediaQuery", "noHorizontalScrollbarsCss", "buttonsSizeCss", "buttonsCss", "panelsCss", "buttonActiveClassName", "buttonBaseCss", "ZIndex", "buttonSizeCss", "buttonCss", "contentContainerStyle1ColumnCss", "chartToggleWrapperCss", "nonMobileMediaQuery", "dropdownCss", "noLabelCss", "defaultColor", "skeletonWrapperCss", "css", "skeletonLabelCss", "m", "skeletonLinesWrapperCss", "skeletonLineCss", "nonMobileMediaQuery", "skeletonLineAnimationCss", "skeletonIconWrapperCss", "skeletonDropdownIconCss", "DropdownSkeleton", "jsxs", "cx", "skeletonWrapperClassName", "skeletonWrapperCss", "jsx", "skeletonLabelCss", "skeletonLineAnimationCss", "skeletonLinesWrapperCss", "skeletonLineCss", "skeletonIconWrapperCss", "Icon", "skeletonDropdownIconCss", "import_react", "desktopWrapperCss", "css", "mobileMediaQuery", "nonMobileMediaQuery", "dropdownCss", "m", "dropdownMobileWrapperCss", "dropdownMobileCss", "dropdownTextCss", "dropdownMainTextCss", "MobileHeading", "dropdownSecondaryTextCss", "caratCss", "allValue", "FilterDropdownMenu", "title", "onChange", "isStandalone", "value", "allItemTitle", "items", "dataset", "useMotifStyles", "itemsWithEvents", "id", "onChangeMobile", "e", "FilterButton", "props", "jsxs", "dropdownCss", "dataSetToAttributes", "jsx", "cx", "dropdownTextCss", "dropdownMainTextCss", "caratCss", "Icon", "Fragment", "desktopWrapperCss", "DropdownMenu", "dropdownMobileWrapperCss", "dropdownMobileCss", "dropdownSecondaryTextCss", "wrapperCss", "css", "m", "footerBarContainerCss", "maxWidth", "nonMobileMediaQuery", "twoColumnCollapseMediaQuery", "nonTwoColumnCollapseMediaQuery", "mobileMediaQuery", "FooterBar", "children", "backgroundColor", "jsx", "cx", "getBackgroundClassName", "wrapperCss", "footerBarContainerCss", "import_react", "import_react", "FooterContext", "wrapperCss", "css", "m", "footerColumnsDesktopCss", "maxWidth", "twoColumnCollapseMediaQuery", "nonTwoColumnCollapseMediaQuery", "footerColumnsCenteredCss", "footerColumnMobileItemsCss", "footerColumnMobileCss", "oneColumnWidthCss", "twoColumnWidthCss", "threeColumnWidthCss", "fourColumnWidthCss", "fiveOrMoreColumnWidthCss", "FooterColumnsDesktop", "children", "footerStyle", "cx", "footerColumnsDesktopCss", "childrenLength", "child", "oneColumnWidthCss", "twoColumnWidthCss", "threeColumnWidthCss", "fourColumnWidthCss", "fiveOrMoreColumnWidthCss", "footerColumnsCenteredCss", "jsx", "wrapperCss", "import_react", "FooterColumnsMobile", "children", "backgroundColor", "expandedItem", "setExpandedItem", "jsx", "FooterContext", "MediaMode", "cx", "getBackgroundClassName", "footerColumnMobileCss", "footerColumnMobileItemsCss", "FooterColumns", "children", "props", "mode", "FooterContext", "MediaMode", "jsx", "FooterColumnsMobile", "FooterColumnsDesktop", "import_react", "footerHeaderCss", "css", "m", "nonMobileMediaQuery", "footerHeaderSpacingCss", "footerGroupCss", "footerColumnListCss", "footerHorizontalLayoutCss", "nonTwoColumnCollapseMediaQuery", "FooterGroup", "children", "title", "orientation", "isFooterBar", "mode", "FooterContext", "containerClassName", "cx", "footerGroupCss", "footerHorizontalLayoutCss", "footerHeaderClassName", "footerHeaderCss", "footerHeaderSpacingCss", "header", "jsx", "childrenWrapper", "footerColumnListCss", "MediaMode", "DetailsSummary", "jsxs", "import_react", "footerItemContainerCss", "css", "m", "nonMobileMediaQuery", "footerItemCss", "FooterItemV2", "id", "url", "title", "onClick", "Anchor", "PrimitivesContext", "jsx", "footerItemContainerCss", "footerItemCss", "wrapperCss", "css", "m", "footerSocialCss", "maxWidth", "nonMobileMediaQuery", "footerSocialIconsWrapperCss", "FooterSocial", "title", "children", "jsx", "wrapperCss", "jsxs", "footerSocialCss", "footerSocialIconsWrapperCss", "FooterV2", "children", "backgroundColor", "mode", "useMediaMode", "useMotifStyles", "jsx", "FooterContext", "cx", "getBackgroundClassName", "footnoteCss", "css", "m", "maxWidth", "p3Css", "mobileMediaQuery", "nonMobileMediaQuery", "footnoteSuperscriptCss", "Footnote", "index", "children", "useMotifStyles", "jsxs", "cx", "footnoteCss", "jsx", "footnoteSuperscriptCss", "Superscript", "import_react", "footnotesCss", "css", "m", "footnotesContentCss", "maxWidth", "mobileMediaQuery", "footnotesPrintCss", "footnoteDetailsCss", "footnoteAccordionItemSummaryCss", "footnoteAccordionItemContentCss", "footnoteBlockBackgroundColor", "animationDuration", "chevronProps", "itemChevronCss", "m", "summaryProps", "footnoteAccordionItemSummaryCss", "FootnoteBlock", "title", "isOpenInitially", "children", "className", "open", "setOpen", "detailsRef", "onToggle", "jsx", "cx", "footnotesCss", "jsxs", "footnotesContentCss", "footnotesPrintCss", "DetailsSummary", "footnoteDetailsCss", "footnoteAccordionItemContentCss", "import_react", "import_noop", "import_react", "validations", "checkNoError", "state", "name", "isInvalid", "field", "value", "initialFormState", "formReducer", "action", "clone_default", "metadata", "merge_default", "meta", "FormContext", "initialFormState", "noop", "import_react", "formCss", "css", "m", "formRowCss", "mobileMediaQuery", "inputLabelCss", "inputHelpTextCss", "p2Css", "errorMessageCss", "errorDebugSectionCss", "errorCodeCss", "submitButtonCss", "inputContainerCss", "inputErrorCss", "readonlyCss", "inputCss", "nonMobileMediaQuery", "checkboxCheckPath", "checkboxCss", "checkboxWrapperCss", "textAreaCss", "selectCss", "selectWrapperCss", "placeholderCss", "arrowCss", "multiSelectDropdownCss", "multiSelectIconCss", "FormErrorMessage", "on400ResponseMessage", "on500ResponseMessage", "onInvalidClientSideSubmissionMessage", "renderErrorDetails", "state", "FormContext", "errorStatusCode", "error", "type", "jsx", "errorMessageCss", "errorDisplayText", "errorObject", "jsxs", "Fragment", "errorDebugSectionCss", "errorCodeCss", "Form", "className", "children", "endpoint", "submitText", "submitSuccessText", "submitTextDataset", "onSubmitSuccess", "onSubmitFailure", "onFormBodyChange", "formChildrenRenderer", "extraParams", "extraParamsAsync", "on400ResponseMessage", "on500ResponseMessage", "onInvalidClientSideSubmissionMessage", "renderErrorDetails", "useMotifStyles", "state", "dispatch", "formReducer", "cloneDeep_default", "initialFormState", "contextValue", "handleSubmit", "event", "submitForm", "extraParamsRealized", "formBody", "merge_default", "response", "payload", "error", "rawError", "l", "disabled", "loading", "submitSuccess", "submitTextValue", "formChildren", "jsxs", "Fragment", "jsx", "Button", "ButtonType", "submitButtonCss", "FormContext", "cx", "formCss", "placeholderCss", "FormErrorMessage", "FormRow", "children", "props", "jsx", "formRowCss", "import_omit", "import_react", "Field", "type", "name", "label", "helpText", "error", "hasError", "children", "dataset", "labelDataset", "helpTextDataset", "errorDataset", "jsx", "Fragment", "jsxs", "cx", "inputContainerCss", "dataSetToAttributes", "h6Css", "inputLabelCss", "inputHelpTextCss", "errorMessageCss", "getStringValue", "value", "getBooleanValue", "Input", "props", "name", "validation", "required", "placeholder", "initialValue", "type", "label", "richLabel", "labelDataset", "richLabelDataset", "readOnly", "shouldResetToInitial", "maxLength", "minValue", "maxValue", "restProps", "state", "dispatch", "FormContext", "fieldMeta", "value", "inputProps", "omit", "handleChange", "e", "target", "handleInvalid", "getInputElement", "jsx", "getStringValue", "cx", "textAreaCss", "placeholderCss", "inputErrorCss", "jsxs", "checkboxWrapperCss", "getBooleanValue", "checkboxCss", "dataSetToAttributes", "inputCss", "Field", "import_multiselect_react_dropdown", "import_react", "initialFieldState", "MultiSelectDropdown", "props", "name", "placeholder", "showCheckbox", "options", "required", "initialValues", "state", "dispatch", "FormContext", "value", "formField", "handleSelect", "selectedList", "onKeyPress", "event", "handleRemove", "jsx", "Field", "jsxs", "selectWrapperCss", "Multiselect", "Icon", "multiSelectIconCss", "cx", "multiSelectDropdownCss", "placeholderCss", "inputErrorCss", "arrowCss", "import_omit", "import_react", "Select", "props", "name", "placeholder", "children", "required", "initialValue", "allValues", "shouldResetToInitial", "fieldDataset", "restProps", "selectProps", "omit", "state", "dispatch", "FormContext", "validInitialValue", "getStringValue", "formField", "value", "handleChange", "e", "handleInvalid", "jsx", "Field", "jsxs", "cx", "selectWrapperCss", "placeholderCss", "selectCss", "inputErrorCss", "Icon", "arrowCss", "import_react", "import_mapValues", "TileImageSize", "labelLineHeight", "labelHeight", "textLineHeight", "imgWidth", "imgHeight", "tileWidth", "imgWidth", "tileHeight", "imgHeight", "labelHeight", "textLineHeight", "imageHeightForImageSize", "TileImageSize", "titleHeightForImageSize", "mapValues", "height", "titleLinesForImageSize", "tileCarouselMargin", "gutterWidth", "galleryWidths", "imgWidth", "screenWidths", "w", "blockPadding", "mediaQueries", "width", "idx", "prevWidth", "desktopWrapperCss", "css", "mobileMediaQuery", "nonMobileMediaQuery", "mobileWrapperCss", "buttonDefaultStylesResetCss", "m", "searchWrapperCss", "filterBarCss", "toggleDropdownsBaseTextCss", "toggleDropdownsMainTextCss", "toggleDropdownsSecondaryTextCss", "clearFiltersWrapperCss", "clearFiltersButtonCss", "filtersIconButtonCss", "filtersIconCss", "filtersIconActiveCss", "GalleryFiltersV2", "searchMenus", "selectedFilters", "onChangeFilter", "mobileFiltersToggleLabel", "onClearFilters", "clearButtonLabel", "mobileFiltersWrapperTextDataset", "clearFiltersCtaCopyDataset", "useMotifStyles", "isMobileOpen", "setIsMobileOpen", "toggleIsMobileOpen", "selectedFiltersCount", "children", "title", "id", "allItemTitle", "items", "dataset", "allValue", "setValue", "props", "jsx", "FilterDropdownMenu", "filterText", "jsxs", "desktopWrapperCss", "searchWrapperCss", "cx", "buttonDefaultStylesResetCss", "clearFiltersButtonCss", "dataSetToAttributes", "mobileWrapperCss", "filterBarCss", "toggleDropdownsBaseTextCss", "toggleDropdownsMainTextCss", "toggleDropdownsSecondaryTextCss", "clearFiltersWrapperCss", "filtersIconButtonCss", "Icon", "filtersIconCss", "filtersIconActiveCss", "galleryV2Css", "css", "m", "largeDesktopMediaQuery", "nonMobileMediaQuery", "GalleryGridV2", "children", "useMotifStyles", "jsx", "cx", "galleryV2Css", "arraySome", "array", "predicate", "index", "length", "arraySome_default", "COMPARE_PARTIAL_FLAG", "COMPARE_UNORDERED_FLAG", "equalArrays", "array", "other", "bitmask", "customizer", "equalFunc", "stack", "isPartial", "arrLength", "othLength", "arrStacked", "othStacked", "index", "result", "seen", "SetCache_default", "arrValue", "othValue", "compared", "arraySome_default", "othIndex", "cacheHas_default", "equalArrays_default", "init_Symbol", "init_eq", "mapToArray", "map", "index", "result", "value", "key", "mapToArray_default", "COMPARE_PARTIAL_FLAG", "COMPARE_UNORDERED_FLAG", "boolTag", "dateTag", "errorTag", "mapTag", "numberTag", "regexpTag", "setTag", "stringTag", "symbolTag", "arrayBufferTag", "dataViewTag", "symbolProto", "Symbol_default", "symbolValueOf", "equalByTag", "object", "other", "tag", "bitmask", "customizer", "equalFunc", "stack", "Uint8Array_default", "eq_default", "convert", "mapToArray_default", "isPartial", "setToArray_default", "stacked", "result", "equalArrays_default", "equalByTag_default", "COMPARE_PARTIAL_FLAG", "objectProto", "hasOwnProperty", "equalObjects", "object", "other", "bitmask", "customizer", "equalFunc", "stack", "isPartial", "objProps", "getAllKeys_default", "objLength", "othProps", "othLength", "index", "key", "objStacked", "othStacked", "result", "skipCtor", "objValue", "othValue", "compared", "objCtor", "othCtor", "equalObjects_default", "COMPARE_PARTIAL_FLAG", "argsTag", "arrayTag", "objectTag", "objectProto", "hasOwnProperty", "baseIsEqualDeep", "object", "other", "bitmask", "customizer", "equalFunc", "stack", "objIsArr", "isArray_default", "othIsArr", "objTag", "getTag_default", "othTag", "objIsObj", "othIsObj", "isSameTag", "isBuffer_default", "Stack_default", "isTypedArray_default", "equalArrays_default", "equalByTag_default", "objIsWrapped", "othIsWrapped", "objUnwrapped", "othUnwrapped", "equalObjects_default", "baseIsEqualDeep_default", "init_isObjectLike", "baseIsEqual", "value", "other", "bitmask", "customizer", "stack", "isObjectLike_default", "baseIsEqualDeep_default", "baseIsEqual_default", "COMPARE_PARTIAL_FLAG", "COMPARE_UNORDERED_FLAG", "baseIsMatch", "object", "source", "matchData", "customizer", "index", "length", "noCustomizer", "data", "key", "objValue", "srcValue", "stack", "Stack_default", "result", "baseIsEqual_default", "baseIsMatch_default", "init_isObject", "isStrictComparable", "value", "isObject_default", "isStrictComparable_default", "getMatchData", "object", "result", "keys_default", "length", "key", "value", "isStrictComparable_default", "getMatchData_default", "matchesStrictComparable", "key", "srcValue", "object", "matchesStrictComparable_default", "baseMatches", "source", "matchData", "getMatchData_default", "matchesStrictComparable_default", "object", "baseIsMatch_default", "baseMatches_default", "init_isSymbol", "reIsDeepProp", "reIsPlainProp", "isKey", "value", "object", "isArray_default", "type", "isSymbol_default", "isKey_default", "init_memoize", "MAX_MEMOIZE_SIZE", "memoizeCapped", "func", "result", "memoize_default", "key", "cache", "memoizeCapped_default", "rePropName", "reEscapeChar", "stringToPath", "memoizeCapped_default", "string", "result", "match", "number", "quote", "subString", "stringToPath_default", "castPath", "value", "object", "isArray_default", "isKey_default", "stringToPath_default", "toString_default", "castPath_default", "init_isSymbol", "INFINITY", "toKey", "value", "isSymbol_default", "result", "toKey_default", "baseGet", "object", "path", "castPath_default", "index", "length", "toKey_default", "baseGet_default", "get", "object", "path", "defaultValue", "result", "baseGet_default", "get_default", "baseHasIn", "object", "key", "baseHasIn_default", "hasPath", "object", "path", "hasFunc", "castPath_default", "index", "length", "result", "key", "toKey_default", "isLength_default", "isIndex_default", "isArray_default", "isArguments_default", "hasPath_default", "hasIn", "object", "path", "hasPath_default", "baseHasIn_default", "hasIn_default", "COMPARE_PARTIAL_FLAG", "COMPARE_UNORDERED_FLAG", "baseMatchesProperty", "path", "srcValue", "isKey_default", "isStrictComparable_default", "matchesStrictComparable_default", "toKey_default", "object", "objValue", "get_default", "hasIn_default", "baseIsEqual_default", "baseMatchesProperty_default", "baseProperty", "key", "object", "baseProperty_default", "basePropertyDeep", "path", "object", "baseGet_default", "basePropertyDeep_default", "property", "path", "isKey_default", "baseProperty_default", "toKey_default", "basePropertyDeep_default", "property_default", "baseIteratee", "value", "identity_default", "isArray_default", "baseMatchesProperty_default", "baseMatches_default", "property_default", "baseIteratee_default", "baseForOwn", "object", "iteratee", "baseFor_default", "keys_default", "baseForOwn_default", "createBaseEach", "eachFunc", "fromRight", "collection", "iteratee", "isArrayLike_default", "length", "index", "iterable", "createBaseEach_default", "baseEach", "createBaseEach_default", "baseForOwn_default", "baseEach_default", "baseMap", "collection", "iteratee", "index", "result", "isArrayLike_default", "baseEach_default", "value", "key", "baseMap_default", "map", "collection", "iteratee", "func", "isArray_default", "arrayMap_default", "baseMap_default", "baseIteratee_default", "map_default", "htmlUnescapes", "unescapeHtmlChar", "basePropertyOf_default", "unescapeHtmlChar_default", "reEscapedHtml", "reHasEscapedHtml", "unescape", "string", "toString_default", "unescapeHtmlChar_default", "unescape_default", "TAG_PROPERTIES", "TAG_NAMES", "BASE", "BODY", "HEAD", "HTML", "LINK", "META", "NOSCRIPT", "SCRIPT", "STYLE", "TITLE", "FRAGMENT", "SEO_PRIORITY_TAGS", "rel", "type", "charset", "name", "property", "VALID_TAG_NAMES", "Object", "keys", "map", "REACT_TAG_MAP", "accesskey", "class", "contenteditable", "contextmenu", "itemprop", "tabindex", "HTML_TAG_MAP", "reduce", "obj", "key", "getInnermostProperty", "propsList", "i", "length", "props", "prototype", "hasOwnProperty", "call", "getTitleFromPropsList", "innermostTitle", "innermostTemplate", "Array", "isArray", "join", "replace", "innermostDefaultTitle", "undefined", "getOnChangeClientState", "getAttributesFromPropsList", "tagType", "filter", "tagAttrs", "current", "getBaseTagFromPropsList", "primaryAttributes", "reverse", "innermostBaseTag", "tag", "lowerCaseAttributeKey", "toLowerCase", "indexOf", "concat", "getTagsFromPropsList", "tagName", "approvedSeenTags", "console", "warn", "approvedTags", "instanceTags", "instanceSeenTags", "primaryAttributeKey", "attributeKey", "value", "forEach", "push", "tagUnion", "getAnyTrueFromPropsList", "checkedTag", "index", "flattenArray", "possibleArray", "prioritizer", "elementsList", "propsToMatch", "acc", "elementAttrs", "toMatch", "includes", "priority", "default", "without", "_extends2", "a", "SELF_CLOSING_TAGS", "encodeSpecialCharacters", "str", "encode", "String", "generateElementAttributesAsString", "attributes", "attr", "convertElementAttributesToReactProps", "initProps", "generateTagsAsReactComponent", "tags", "_mappedTag", "mappedTag", "attribute", "mappedAttribute", "dangerouslySetInnerHTML", "__html", "innerHTML", "cssText", "React", "createElement", "getMethodsForTag", "toComponent", "generateTitleAsReactComponent", "titleAttributes", "title", "_initProps", "toString", "attributeString", "flattenedTitle", "generateTagsAsString", "attributeHtml", "string", "tagContent", "isSelfClosing", "mapStateOnServer", "baseTag", "bodyAttributes", "htmlAttributes", "noscriptTags", "styleTags", "_props$title", "s", "linkTags", "metaTags", "scriptTags", "priorityMethods", "prioritizeSeoTags", "_getPriorityMethods", "_ref", "meta", "link", "script", "base", "noscript", "style", "instances", "HelmetData", "context", "canUseDOM", "_this", "this", "document", "setHelmet", "serverState", "helmet", "helmetInstances", "get", "add", "instance", "remove", "splice", "Context", "createContext", "providerShape", "PropTypes", "shape", "func", "Provider", "helmetData", "render", "children", "Component", "propTypes", "node", "isRequired", "defaultProps", "displayName", "updateTags", "indexToDelete", "headElement", "head", "querySelector", "tagNodes", "querySelectorAll", "oldTags", "slice", "newTags", "newElement", "styleSheet", "appendChild", "createTextNode", "setAttribute", "some", "existingTag", "isEqualNode", "parentNode", "removeChild", "updateAttributes", "elementTag", "getElementsByTagName", "helmetAttributeString", "getAttribute", "helmetAttributes", "split", "attributesToRemove", "attributeKeys", "indexToSave", "removeAttribute", "commitTagChanges", "newState", "cb", "onChangeClientState", "tagUpdates", "addedTags", "removedTags", "_tagUpdates$tagType", "_helmetCallback", "Dispatcher", "rendered", "shouldComponentUpdate", "nextProps", "shallowEqual", "componentDidUpdate", "emitChange", "componentWillUnmount", "_this$props$context", "state", "_extends", "defer", "cancelAnimationFrame", "requestAnimationFrame", "init", "F", "G", "Helmet", "fastCompare", "mapNestedChildrenToProps", "child", "nestedChildren", "Error", "flattenArrayTypeChildren", "arrayTypeChildren", "newChildProps", "_proto", "mapObjectTypeChildren", "_ref2", "_extends3", "_extends4", "newProps", "mapArrayTypeChildrenToProps", "newFlattenedProps", "arrayChildName", "_extends5", "warnOnInvalidChildren", "invariant", "nestedChild", "mapChildrenToProps", "Children", "_child$props", "childProps", "_objectWithoutPropertiesLoose", "_excluded", "_this$props", "_excluded2", "Consumer", "object", "oneOfType", "arrayOf", "defaultTitle", "bool", "titleTemplate", "Header", "title", "description", "keywords", "ogImage", "ogVideo", "noIndex", "noFollow", "customMetas", "robots", "jsxs", "W", "jsx", "unescape_default", "map_default", "customMeta", "mapTag", "setTag", "objectProto", "hasOwnProperty", "isEmpty", "value", "isArrayLike_default", "isArray_default", "isBuffer_default", "isTypedArray_default", "isArguments_default", "tag", "getTag_default", "isPrototype_default", "baseKeys_default", "key", "isEmpty_default", "import_react", "import_react", "createIcon", "iconConfig", "_a", "_b", "bgStyle", "borderRadius", "iconFillColor", "round", "size", "rest", "__objRest", "__spreadProps", "__spreadValues", "EmailIcon", "objectToGetParams", "object", "params", "value", "key", "isPromise", "obj", "getBoxPositionOnWindowCenter", "width", "height", "getBoxPositionOnScreenCenter", "windowOpen", "url", "_a", "onClose", "_b", "configRest", "__objRest", "config", "__spreadValues", "shareDialog", "interval", "e", "ShareButton", "_c", "_d", "beforeOnClick", "children", "className", "disabled", "disabledStyle", "forwardedRef", "htmlTitle", "networkLink", "networkName", "onClick", "onShareWindowClose", "openShareDialogOnClick", "opts", "resetButtonStyle", "style", "windowHeight", "windowPosition", "windowWidth", "rest", "handleClick", "event", "link", "returnVal", "windowConfig", "newClassName", "cx", "newStyle", "__spreadProps", "createShareButton", "optsMap", "defaultProps", "CreatedButton", "props", "ref", "passedProps", "emailLink", "subject", "body", "separator", "EmailShareButton", "_", "FacebookIcon", "createIcon", "FacebookMessengerIcon", "createIcon", "facebookMessengerLink", "url", "appId", "redirectUri", "to", "objectToGetParams", "FacebookMessengerShareButton", "createShareButton", "props", "AssertionError", "message", "assert", "value", "facebookLink", "url", "hashtag", "objectToGetParams", "FacebookShareButton", "createShareButton", "props", "useIsMounted", "isMounted", "SocialMediaShareCount", "_e", "_f", "children", "shareCount", "className", "getCount", "url", "rest", "__objRest", "count", "setCount", "isLoading", "setIsLoading", "__spreadProps", "__spreadValues", "cx", "createShareCount", "ShareCount", "props", "getFacebookShareCount", "shareUrl", "callback", "endpoint", "jsonp", "err", "data", "FacebookShareCount", "HatenaIcon", "createIcon", "hatenaLink", "url", "title", "assert", "HatenaShareButton", "createShareButton", "props", "getHatenaShareCount", "shareUrl", "callback", "jsonp", "objectToGetParams", "err", "data", "HatenaShareCount", "createShareCount", "InstapaperIcon", "createIcon", "instapaperLink", "url", "title", "description", "assert", "objectToGetParams", "InstapaperShareButton", "createShareButton", "props", "LineIcon", "createIcon", "lineLink", "url", "title", "assert", "objectToGetParams", "LineShareButton", "createShareButton", "props", "LinkedinIcon", "createIcon", "LinkedinIcon$1", "linkedinLink", "url", "title", "summary", "source", "assert", "objectToGetParams", "LinkedinShareButton", "createShareButton", "LinkedinShareButton$1", "LivejournalIcon", "livejournalLink", "url", "title", "description", "assert", "objectToGetParams", "LivejournalShareButton", "createShareButton", "props", "MailruIcon", "createIcon", "mailruLink", "url", "title", "description", "imageUrl", "assert", "objectToGetParams", "MailruShareButton", "createShareButton", "props", "OKIcon", "createIcon", "okLink", "url", "title", "description", "image", "assert", "objectToGetParams", "OKShareButton", "createShareButton", "props", "getOKShareCount", "shareUrl", "callback", "index", "_count", "_b", "_a", "url", "count", "callbackIndex", "jsonp", "objectToGetParams", "OKShareCount", "createShareCount", "PinterestIcon", "createIcon", "pinterestLink", "url", "media", "description", "pinId", "assert", "objectToGetParams", "PinterestShareButton", "createShareButton", "props", "getPinterestShareCount", "shareUrl", "callback", "jsonp", "objectToGetParams", "err", "data", "PinterestShareCount", "createShareCount", "PocketIcon", "createIcon", "pocketLink", "url", "title", "assert", "objectToGetParams", "PocketShareButton", "createShareButton", "props", "RedditIcon", "createIcon", "redditLink", "url", "title", "assert", "objectToGetParams", "RedditShareButton", "createShareButton", "props", "gabLink", "url", "title", "assert", "objectToGetParams", "GabShareButton", "createShareButton", "props", "GabIcon", "createIcon", "getRedditShareCount", "shareUrl", "callback", "endpoint", "jsonp", "err", "response", "RedditShareCount", "createShareCount", "TelegramIcon", "createIcon", "telegramLink", "url", "title", "assert", "objectToGetParams", "TelegramShareButton", "createShareButton", "props", "TumblrIcon", "createIcon", "tumblrLink", "url", "title", "caption", "tags", "posttype", "assert", "objectToGetParams", "TumblrShareButton", "createShareButton", "props", "getTumblrShareCount", "shareUrl", "callback", "jsonp", "objectToGetParams", "err", "data", "TumblrShareCount", "createShareCount", "TwitterIcon", "createIcon", "TwitterIcon$1", "twitterLink", "url", "title", "via", "hashtags", "related", "assert", "TwitterShareButton", "createShareButton", "props", "TwitterShareButton$1", "ViberIcon", "viberLink", "url", "title", "separator", "assert", "objectToGetParams", "ViberShareButton", "createShareButton", "props", "VKIcon", "createIcon", "vkLink", "url", "title", "image", "noParse", "noVkLinks", "assert", "objectToGetParams", "VKShareButton", "createShareButton", "props", "getVKShareCount", "shareUrl", "callback", "index", "count", "_b", "_a", "url", "jsonp", "objectToGetParams", "VKShareCount", "createShareCount", "WeiboIcon", "createIcon", "weiboLink", "url", "title", "image", "assert", "objectToGetParams", "WeiboShareButton", "createShareButton", "props", "WhatsappIcon", "createIcon", "isMobileOrTablet", "whatsappLink", "url", "title", "separator", "assert", "objectToGetParams", "WhatsappShareButton", "createShareButton", "props", "WorkplaceIcon", "createIcon", "workplaceLink", "url", "quote", "hashtag", "assert", "objectToGetParams", "WorkplaceShareButton", "createShareButton", "props", "XIcon", "createIcon", "Social", "title", "props", "useMotifStyles", "shareUrl", "setShareUrl", "jsxs", "cx", "jsx", "LinkedinShareButton$1", "LinkedinIcon$1", "TwitterShareButton$1", "TwitterIcon$1", "heroMobileMinHeightPx", "heroDesktopMinHeightPx", "cutoffWithMediaPx", "contentMaxWith", "heroMobileAssetHeightPx", "heroCurtainOpacityCssVar", "alignItemsStartCss", "css", "alignItemsEndCss", "textContentCss", "m", "ZIndex", "mobileMediaQuery", "heroCss", "boundaryCss", "smallMobileMediaQuery", "compactBoundaryCss", "curtainCss", "headerCss", "eyebrowCss", "titleCss", "subTitleCss", "p1Css", "bodyCss", "p2Css", "callsToActionWrapperCss", "footerCss", "heroSocialContainerCss", "fitWindowCss", "nonMobileMediaQuery", "backgroundCss", "heroTitleContainerCss", "heroMediaCss", "heroScrollButtonWrapCss", "heroScrollButtonCss", "heroSplitCss", "reverseSplitCss", "splitItemCss", "splitMediaItemCss", "splitMediaCss", "iconSize", "headerMobileCss", "css", "p2Css", "mobileMediaQuery", "m", "nonMobileMediaQuery", "headerDesktopCss", "headerImageCss", "isDate", "date", "dateDesktopString", "dateMobileString", "HeroHeader", "content", "iconSrcs", "iconAltText", "textAlignMobile", "headerDataset", "className", "headerIsDate", "isDate", "headerMobile", "dateMobileString", "headerDesktop", "dateDesktopString", "icon", "jsx", "headerImageCss", "Picture", "jsxs", "Fragment", "cx", "headerDesktopCss", "dataSetToAttributes", "mobileAlignmentCss", "Alignment", "headerMobileCss", "import_react", "summaryCardHeight", "mobileSummaryCardHeight", "dataLineHeight", "summaryCardCss", "css", "m", "nonMobileMediaQuery", "summaryCardRowCss", "summaryCardImageCss", "largeDesktopMediaQuery", "extraLargeDesktopMediaQuery", "summaryCardTitleCss", "summaryCardTitleNoDateCss", "summaryCardTitleNoMediaNoDescriptionCss", "summaryCardTitleMediaNoDescriptionCss", "summaryCardTitleNoMediaDescriptionCss", "summaryCardTitleMediaDescriptionCss", "summaryCardDateCss", "summaryCardContainerCss", "summaryCardSkeletonContainerCss", "summaryCardDescriptionCss", "summaryCardDescriptionMediaCss", "summaryCardDescriptionNoMediaCss", "summaryCardPictureCss", "summaryCardAnchorCss", "summaryCardSkeletonCss", "summaryCardSkeletonGapCss", "summaryCardDashCss", "summaryCardSkeletonAnimationCss", "skeletonLines", "SkeletonSummaryCard", "className", "summaryCardClassName", "cx", "summaryCardCss", "summaryCardContainerClassName", "summaryCardContainerCss", "summaryCardSkeletonContainerCss", "summaryCardImageClassName", "summaryCardImageCss", "summaryCardSkeletonCss", "summaryCardDashClassName", "summaryCardDashCss", "summaryCardSkeletonAnimationCss", "summaryCardRowClassName", "summaryCardRowCss", "summaryCardSkeletonGapCss", "jsxs", "jsx", "height", "items", "lineIndex", "widthPercentage", "itemIndex", "import_react", "SummaryCard", "date", "dateTime", "className", "title", "description", "onClick", "link", "imgSrcs", "imgAltText", "showMedia", "showDescription", "showDate", "dataset", "dateDataset", "titleDataset", "descriptionDataset", "mediaDataset", "eyebrowText", "useMotifStyles", "Anchor", "PrimitivesContext", "rootClassName", "cx", "summaryCardCss", "summaryCardRowCss", "anchorRootClassName", "summaryCardAnchorCss", "summaryCardTitleClassName", "summaryCardTitleCss", "summaryCardTitleMediaDescriptionCss", "summaryCardTitleNoMediaNoDescriptionCss", "summaryCardTitleNoMediaDescriptionCss", "summaryCardTitleMediaNoDescriptionCss", "summaryCardTitleNoDateCss", "summaryCardDescriptionClassName", "summaryCardDescriptionCss", "summaryCardDescriptionMediaCss", "summaryCardDescriptionNoMediaCss", "innerContainer", "jsxs", "dataSetToAttributes", "summaryCardContainerCss", "jsx", "summaryCardDateCss", "formatDateToDatetime", "summaryCardImageCss", "Picture", "summaryCardPictureCss", "isSummaryCardElement", "elem", "asSummaryCard", "SummaryCard", "SkeletonSummaryCard", "typeAsFC", "heroMediaCss", "css", "m", "mobileMediaQuery", "heroWideMediaCss", "compactHeroMediaCss", "HeroMedia", "className", "foregroundMedia", "imgSrcs", "wrapMedia", "showMediaMobile", "size", "isMobile", "useIsMobile", "children", "isCarouselV3Element", "jsx", "Media", "cx", "heroMediaCss", "compactHeroMediaCss", "heroWideMediaCss", "isSummaryCardElement", "BackgroundMediaLayout", "Hero", "props", "ref", "useMotifStyles", "backgroundVideoSource", "mobileBackgroundVideoSource", "body", "callsToAction", "fitWindow", "foregroundMedia", "defaultCurtainOpacityPercentage", "headerImgSrcs", "headerImgAltText", "eyebrow", "title", "backgroundColor", "BackgroundColor", "header", "bgImgSrcs", "imgSrcs", "textAlign", "textAlignMobile", "verticalTextAlign", "VerticalAlignment", "shareable", "className", "footer", "anchorId", "eyebrowDataset", "titleDataset", "bodyDataset", "headerDataset", "postChildren", "showMediaMobile", "wrapMedia", "size", "subTitle", "subTitleDataset", "showScrollButton", "onScrollDownButtonClick", "backgroundMediaLayout", "hasMedia", "width", "useWindowSize", "isMobile", "useIsMobile", "hideMedia", "mobileMaxWidth", "cutoffWithMediaPx", "hasBackgroundMedia", "isEmpty_default", "isCompact", "curtainOpacityPercentage", "isNil_default", "isSplitBlock", "backgroundContent", "jsx", "Picture", "cx", "splitItemCss", "splitMediaItemCss", "backgroundCss", "splitMediaCss", "Video", "alignMobileCss", "mobileAlignmentCss", "Alignment", "defaultTextAlign", "contentAlignmentCss", "alignmentCss", "verticalAlignCss", "alignItemsStartCss", "alignItemsEndCss", "showCurtain", "jsxs", "getBackgroundClassName", "heroCss", "fitWindowCss", "heroSplitCss", "reverseSplitCss", "curtainCss", "heroCurtainOpacityCssVar", "BlockBoundary", "boundaryCss", "compactBoundaryCss", "textContentCss", "HeroHeader", "headerCss", "eyebrowCss", "dataSetToAttributes", "heroTitleContainerCss", "titleCss", "subTitleCss", "bodyCss", "callsToActionWrapperCss", "footerCss", "HeroMedia", "heroMediaCss", "heroScrollButtonWrapCss", "IconButton", "heroScrollButtonCss", "Social", "heroSocialContainerCss", "import_react", "hyperLinkCss", "css", "m", "mobileMediaQuery", "nonMobileMediaQuery", "Hyperlink", "children", "link", "target", "onClick", "useMotifStyles", "Anchor", "PrimitivesContext", "jsx", "cx", "hyperLinkCss", "import_react", "imageButtonCss", "css", "ImageButton", "height", "imgSrcs", "url", "width", "onClick", "altText", "pictureClassName", "className", "useMotifStyles", "Anchor", "PrimitivesContext", "jsx", "cx", "Picture", "latestPostItemWrapperCss", "css", "m", "latestPostItemTitleCss", "LatestPosts", "anchorId", "title", "items", "cta", "backgroundColor", "scrollSnap", "className", "preChildren", "postChildren", "latestPostsBody", "jsx", "Fragment", "item", "index", "jsxs", "latestPostItemWrapperCss", "Category", "latestPostItemTitleCss", "AuthorByline", "Block", "Alignment", "Content", "keyframesAnimationCss", "css", "loadingBarContainerCss", "barCss", "ZIndex", "m", "LoadingBar", "className", "useMotifStyles", "jsx", "cx", "import_react", "ghostOutlineCss", "css", "m", "ghostCss", "snapLogoCss", "GhostSvg", "className", "width", "height", "useMotifStyles", "jsx", "cx", "jsxs", "ghostCss", "ghostOutlineCss", "SnapIncLogoSvg", "className", "useMotifStyles", "jsx", "cx", "snapLogoCss", "jsxs", "rootCss", "css", "customLogoCss", "m", "mobileMediaQuery", "labelCss", "actionCss", "Logo", "imgSrcs", "imageSource", "label", "url", "onClick", "innerLogoClassName", "className", "openInNewTab", "logoType", "Anchor", "PrimitivesContext", "logo", "jsx", "Picture", "SnapIncLogoSvg", "GhostSvg", "jsxs", "cx", "import_react", "import_react_dom", "alignmentCss", "VerticalAlignment", "css", "modalBackdropCss", "ZIndex", "m", "modalContentCss", "isBlockingClassName", "closeButtonCss", "mobileMediaQuery", "Modal", "className", "contentClassName", "isBlocking", "verticalAlignment", "VerticalAlignment", "onClose", "isDisplayed", "portalRoot", "style", "dataset", "children", "disableBackgroundScroll", "shouldAllowScrollEvent", "useMotifStyles", "modalRef", "setModalRef", "isMobile", "useIsMobile", "captureModalRef", "node", "useDisableScrollOutside", "modal", "jsx", "cx", "modalBackdropCss", "isBlockingClassName", "dataSetToAttributes", "jsxs", "modalContentCss", "alignmentCss", "IconButton", "closeButtonCss", "import_react", "import_react", "filtersCss", "css", "m", "containerCss", "columns", "mobileColumns", "mobileMediaQuery", "wrapperCss", "coveredTileCss", "overlayCss", "titleCss", "highlightCss", "durationCss", "videoCss", "playButtonCss", "tileCss", "rows", "mobileRows", "posterCss", "posterImageCss", "lightBoxContainerCss", "lightBoxCss", "ZIndex", "lightBoxControlsCss", "lightBoxCaptionCss", "lightBoxVideoCss", "lightboxNavLeftIconCss", "lightboxNavRightIconCss", "MosaicFilters", "filters", "currentFilter", "onSelectFilter", "handleClick", "filterId", "handleKeyPress", "event", "jsx", "cx", "filtersCss", "id", "icon", "text", "i", "ToggleButton", "import_react", "MosaicLightBox", "tile", "handleKeyPress", "goNext", "goPrevious", "close", "className", "jsx", "Modal", "lightBoxContainerCss", "jsxs", "cx", "lightBoxCss", "Media", "lightBoxVideoCss", "lightBoxControlsCss", "IconButton", "lightboxNavLeftIconCss", "lightBoxCaptionCss", "lightboxNavRightIconCss", "import_react", "MosaicTile", "columns", "rows", "mobileColumns", "mobileRows", "cover", "poster", "preview", "showOverlay", "highlight", "title", "duration", "onEnter", "onLeave", "containerRef", "playing", "setPlaying", "ratio", "mobileRatio", "ratioCss", "css", "mobileMediaQuery", "onTileEnter", "video", "onTileLeave", "isVideoPlaying", "container", "jsxs", "cx", "wrapperCss", "coveredTileCss", "jsx", "Media", "videoCss", "posterCss", "posterImageCss", "overlayCss", "titleCss", "highlightCss", "durationCss", "playButtonCss", "Icon", "Mosaic", "tiles", "columns", "mobileColumns", "filters", "className", "lightboxClassName", "useMotifStyles", "currentTile", "setCurrentTile", "currentFilter", "setCurrentFilter", "isRTL", "setIsRTL", "containerRef", "node", "tileRefs", "goNext", "next", "goPrevious", "previous", "close", "handleKeyPress", "idx", "event", "filteredTiles", "t", "jsxs", "cx", "jsx", "MosaicLightBox", "MosaicFilters", "containerCss", "tile", "i", "tileCss", "el", "MosaicTile", "import_noop", "import_react", "slidePanelCss", "VideoPanelAlignment", "css", "slidePanelMobileCss", "mobileMediaQuery", "multiVideoBlockCss", "backgroundImageCss", "togglePanelWithBreakSpacerWrapCss", "togglePanelWrapCss", "import_isNil", "import_react", "visibleVideoCss", "css", "videoCss", "VideoItem", "hasVideoSync", "video", "currentTime", "videoRef", "isNil", "handleTimeUpdate", "event", "jsx", "Video", "cx", "MultiVideoBlock", "anchorId", "children", "className", "hasVideoSync", "id", "mobilePrimaryVideos", "mobileSecondaryVideos", "onVideoChange", "noop", "panelPosition", "primaryVideos", "style", "secondaryVideos", "toggleButtonIcons", "togglePanelClassName", "togglePanelLabel", "preChildren", "postChildren", "sliderChecked", "setSliderChecked", "selectedVideoIndex", "setSelectedVideoIndex", "currentTime", "useMotifStyles", "isMobile", "useMediaMode", "MediaMode", "videoGroup", "videos", "selectedVideo", "allVideos", "handleButtonToggle", "index", "handleSliderCheck", "isSliderChecked", "prefetchedVideos", "video", "jsx", "jsxs", "cx", "multiVideoBlockCss", "backgroundImageCss", "VideoItem", "togglePanelWithBreakSpacerWrapCss", "togglePanelWrapCss", "TogglePanel", "slidePanelCss", "slidePanelMobileCss", "_extends", "target", "i", "source", "key", "_objectWithoutPropertiesLoose", "excluded", "sourceKeys", "import_react_dom", "isMenuOpen", "state", "batchedUpdates", "callback", "floatEqual", "a", "b", "diff", "getTransition", "transition", "name", "safeCall", "fn", "arg", "getName", "component", "defineName", "attachHandlerProps", "handlers", "props", "result", "_loop", "_i2", "_Object$keys2", "handlerName", "handler", "propHandler", "attachedHandler", "e", "parsePadding", "paddingStr", "padding", "top", "right", "getScrollAncestor", "node", "_getComputedStyle", "overflow", "overflowX", "overflowY", "validateIndex", "index", "isDisabled", "error", "commonProps", "isHovering", "import_react", "useBEM", "_ref", "block", "element", "modifiers", "className", "blockElement", "classString", "_i2", "_Object$keys2", "name", "value", "expandedClassName", "import_react", "menuContainerClass", "menuClass", "menuArrowClass", "menuItemClass", "subMenuClass", "initialHoverIndex", "HoverIndexContext", "MenuListItemContext", "MenuListContext", "EventHandlersContext", "RadioGroupContext", "SettingsContext", "ItemSettingsContext", "Keys", "HoverIndexActionTypes", "SubmenuActionTypes", "CloseReason", "FocusPositions", "MenuStateMap", "import_react", "isObject", "obj", "sanitiseKey", "key", "useFlatStyles", "styles", "modifiers", "style", "_i2", "_Object$keys2", "prop", "value", "modifierValue", "_i4", "_Object$keys4", "nestedProp", "nestedValue", "_extends", "menuDefaultProps", "rootMenuDefaultProps", "_extends", "import_react", "import_react_dom", "import_react", "import_react_dom", "import_react", "cloneChildren", "children", "startIndex", "inRadioGroup", "index", "descendOverflow", "items", "child", "name", "getName", "props", "innerChildren", "desc", "takeOverflow", "descOverflow", "getPositionHelpers", "_ref", "menuRef", "containerRef", "scrollingRef", "boundingBoxPadding", "menuRect", "containerRect", "boundingRect", "padding", "parsePadding", "getLeftOverflow", "x", "getRightOverflow", "getTopOverflow", "y", "getBottomOverflow", "confineHorizontally", "leftOverflow", "rightOverflow", "confineVertically", "topOverflow", "bottomOverflow", "positionContextMenu", "_ref", "positionHelpers", "anchorPoint", "menuRect", "containerRect", "getLeftOverflow", "getRightOverflow", "getTopOverflow", "getBottomOverflow", "confineHorizontally", "confineVertically", "x", "y", "rightOverflow", "adjustedX", "leftOverflow", "computedDirection", "bottomOverflow", "adjustedY", "topOverflow", "placeArrowVertical", "_ref", "arrowRef", "menuY", "anchorRect", "containerRect", "menuRect", "y", "offset", "placeLeftorRight", "_ref", "anchorRect", "containerRect", "menuRect", "placeLeftorRightY", "placeLeftX", "placeRightX", "getLeftOverflow", "getRightOverflow", "confineHorizontally", "confineVertically", "arrowRef", "arrow", "direction", "position", "computedDirection", "y", "x", "leftOverflow", "rightOverflow", "arrowY", "placeArrowVertical", "placeArrowHorizontal", "_ref", "arrowRef", "menuX", "anchorRect", "containerRect", "menuRect", "x", "offset", "placeToporBottom", "_ref", "anchorRect", "containerRect", "menuRect", "placeToporBottomX", "placeTopY", "placeBottomY", "getTopOverflow", "getBottomOverflow", "confineHorizontally", "confineVertically", "arrowRef", "arrow", "direction", "position", "computedDirection", "x", "y", "topOverflow", "bottomOverflow", "arrowX", "placeArrowHorizontal", "positionMenu", "_ref", "arrow", "align", "direction", "offsetX", "offsetY", "position", "anchorRef", "arrowRef", "positionHelpers", "menuRect", "containerRect", "horizontalOffset", "verticalOffset", "anchorRect", "placeLeftX", "placeRightX", "placeTopY", "placeBottomY", "placeToporBottomX", "placeLeftorRightY", "options", "_extends", "placeLeftorRight", "placeToporBottom", "import_react", "useIsomorphicLayoutEffect", "import_react", "setRef", "ref", "element", "useCombinedRef", "refA", "refB", "_excluded", "MenuList", "_ref", "ariaLabel", "menuClassName", "menuStyles", "arrowClassName", "arrowStyles", "anchorPoint", "anchorRef", "containerRef", "externalRef", "parentScrollingRef", "arrow", "align", "direction", "position", "overflow", "repositionFlag", "_ref$captureFocus", "captureFocus", "state", "endTransition", "isDisabled", "menuItemFocus", "offsetX", "offsetY", "children", "onClose", "restProps", "_objectWithoutPropertiesLoose", "_useState", "menuPosition", "setMenuPosition", "_useState2", "arrowPosition", "setArrowPosition", "_useState3", "overflowData", "setOverflowData", "_useState4", "expandedDirection", "setExpandedDirection", "_useContext", "SettingsContext", "transition", "boundingBoxRef", "boundingBoxPadding", "rootMenuRef", "rootAnchorRef", "scrollingRef", "anchorScrollingRef", "reposition", "viewScroll", "reposFlag", "MenuListContext", "menuRef", "arrowRef", "prevOpen", "latestMenuSize", "latestHandlePosition", "isOpen", "isMenuOpen", "openTransition", "getTransition", "closeTransition", "_useMemo", "cloneChildren", "menuItems", "menuItemsCount", "descendOverflow", "reducer", "_ref2", "action", "hoverIndex", "openSubmenuCount", "hoverIndexReducer", "submenuCountReducer", "_useReducer", "initialHoverIndex", "_useReducer$", "dispatch", "_useReducer2", "c", "reposSubmenu", "forceReposSubmenu", "handleKeyDown", "e", "handled", "Keys", "HoverIndexActionTypes", "menuClass", "handleAnimationEnd", "safeCall", "handlePosition", "getScrollAncestor", "positionHelpers", "getPositionHelpers", "menuRect", "results", "positionContextMenu", "positionMenu", "_results", "arrowX", "arrowY", "x", "y", "computedDirection", "menuHeight", "getTopOverflow", "getBottomOverflow", "height", "_overflowAmt", "prevHeight", "bottomOverflow", "floatEqual", "topOverflow", "useIsomorphicLayoutEffect", "scrollCurrent", "menuScroll", "anchorScroll", "scroll", "handleScroll", "batchedUpdates", "CloseReason", "scrollObservers", "o", "hasOverflow", "parentScroll", "resizeObserver", "_ref3", "entry", "borderBoxSize", "target", "width", "_ref4", "inlineSize", "blockSize", "borderRect", "observeTarget", "_ref5", "alwaysUpdate", "setItemFocus", "FocusPositions", "id", "isSubmenuOpen", "itemContext", "maxHeight", "overflowAmt", "listContext", "overflowStyles", "modifiers", "arrowModifiers", "_arrowClass", "useBEM", "menuArrowClass", "_arrowStyles", "useFlatStyles", "handlers", "attachHandlerProps", "React", "_extends", "commonProps", "useCombinedRef", "MenuListItemContext", "HoverIndexContext", "_ref6", "type", "index", "i", "_i", "_ref7", "SubmenuActionTypes", "_excluded", "ControlledMenu", "_ref", "externalRef", "ariaLabel", "className", "containerProps", "initialMounted", "unmountOnClose", "transition", "transitionTimeout", "boundingBoxRef", "boundingBoxPadding", "reposition", "submenuOpenDelay", "submenuCloseDelay", "skipOpen", "viewScroll", "portal", "theming", "onItemClick", "onClose", "restProps", "_objectWithoutPropertiesLoose", "containerRef", "scrollingRef", "anchorScrollingRef", "anchorRef", "state", "settings", "itemSettings", "eventHandlers", "event", "isCheckorRadio", "safeCall", "keepOpen", "Keys", "CloseReason", "key", "handleKeyDown", "_ref2", "handleBlur", "e", "isMenuOpen", "itemTransition", "getTransition", "modifiers", "handlers", "attachHandlerProps", "menuList", "React", "_extends", "useBEM", "menuContainerClass", "SettingsContext", "ItemSettingsContext", "EventHandlersContext", "MenuList", "rootMenuDefaultProps", "import_react", "import_react", "PRE_ENTER", "ENTERING", "ENTERED", "PRE_EXIT", "EXITING", "EXITED", "UNMOUNTED", "STATES", "startOrEnd", "unmounted", "updateState", "state", "setState", "latestState", "timeoutId", "onChange", "useTransition", "_temp", "_ref", "_ref$enter", "enter", "_ref$exit", "exit", "preEnter", "preExit", "timeout", "initialEntered", "mountOnEnter", "unmountOnExit", "_useState", "enterTimeout", "exitTimeout", "endTransition", "newState", "toggle", "toEnter", "transitState", "enterStage", "useMenuState", "_temp", "_ref", "initialMounted", "unmountOnClose", "transition", "transitionTimeout", "_useTransition", "useTransition", "getTransition", "state", "toggleMenu", "endTransition", "MenuStateMap", "useMenuStateAndFocus", "options", "menuState", "useMenuState", "_useState", "menuItemFocus", "setMenuItemFocus", "openMenu", "position", "alwaysUpdate", "_extends", "import_react", "useMenuChange", "onMenuChange", "isOpen", "prevOpen", "safeCall", "import_react", "import_react_dom", "import_react", "withHovering", "WrapppedComponent", "name", "WithHovering", "defineName", "props", "ref", "React", "_extends", "HoverIndexContext", "import_react", "useActiveState", "isHovering", "isDisabled", "moreKeys", "_useState", "active", "setActive", "activeKeys", "Keys", "cancelActive", "e", "_excluded", "_excluded2", "_excluded3", "_excluded4", "SubMenu", "withHovering", "_ref", "ariaLabel", "className", "disabled", "label", "index", "openTrigger", "onMenuChange", "isHovering", "instanceRef", "_ref$itemProps", "itemProps", "restProps", "_objectWithoutPropertiesLoose", "isDisabled", "validateIndex", "_useContext", "SettingsContext", "initialMounted", "unmountOnClose", "transition", "transitionTimeout", "rootMenuRef", "_useContext2", "ItemSettingsContext", "submenuOpenDelay", "submenuCloseDelay", "_useContext3", "MenuListItemContext", "parentMenuRef", "parentOverflow", "isParentOpen", "isSubmenuOpen", "dispatch", "isPortal", "_useMenuStateAndFocus", "useMenuStateAndFocus", "_openMenu", "toggleMenu", "state", "otherStateProps", "isOpen", "isMenuOpen", "_useActiveState", "useActiveState", "Keys", "isActive", "onKeyUp", "activeStateHandlers", "containerRef", "itemRef", "timeoutId", "stopTimer", "_openMenu2", "setHover", "HoverIndexActionTypes", "delayOpen", "delay", "batchedUpdates", "handleMouseMove", "handleMouseLeave", "handleKeyDown", "e", "handled", "handleKeyUp", "FocusPositions", "SubmenuActionTypes", "useMenuChange", "modifiers", "externaItemlRef", "itemClassName", "itemStyles", "restItemProps", "itemHandlers", "attachHandlerProps", "_extends", "getMenuList", "menuList", "React", "MenuList", "useBEM", "menuClass", "subMenuClass", "commonProps", "useCombinedRef", "menuItemClass", "useFlatStyles", "safeCall", "menuDefaultProps", "import_react", "import_react", "useItemState", "ref", "index", "isHovering", "isDisabled", "_useContext", "ItemSettingsContext", "submenuCloseDelay", "_useContext2", "MenuListItemContext", "isParentOpen", "isSubmenuOpen", "dispatch", "timeoutId", "setHover", "HoverIndexActionTypes", "onBlur", "e", "onMouseMove", "onMouseLeave", "_", "keepHover", "_excluded", "_excluded2", "MenuItem", "withHovering", "_ref", "className", "styles", "value", "href", "type", "checked", "disabled", "index", "children", "onClick", "isHovering", "externalRef", "restProps", "_objectWithoutPropertiesLoose", "isDisabled", "validateIndex", "ref", "_useItemState", "useItemState", "setHover", "onBlur", "onMouseMove", "onMouseLeave", "eventHandlers", "EventHandlersContext", "radioGroup", "RadioGroupContext", "_useActiveState", "useActiveState", "isActive", "onKeyUp", "activeStateBlur", "activeStateHandlers", "isRadio", "isCheckBox", "isAnchor", "isChecked", "handleClick", "e", "event", "safeCall", "handleKeyUp", "Keys", "handleBlur", "modifiers", "handlers", "attachHandlerProps", "_extends", "menuItemProps", "commonProps", "useCombinedRef", "useBEM", "menuClass", "menuItemClass", "useFlatStyles", "renderChildren", "React", "import_size", "import_react", "clickableNavigatorItemClassName", "navItemSelectedCss", "css", "m", "menuItemCss", "sharedCss", "mobileMediaQuery", "itemCss", "reactMenuCss", "globalCss", "ZIndex", "selectedCss", "iconCss", "anchorCss", "import_react", "isItemProps", "props", "getItemProps", "children", "parentId", "child", "toReturn", "jsx", "selectedCss", "renderChildrenWithBreadcrumbs", "props", "Anchor", "navigationBreadcrumbs", "id", "title", "url", "isSelected", "children", "onClick", "isMenuItem", "isSelectedBreadcrumb", "shouldSelect", "jsx", "MenuItem", "event", "cx", "menuItemCss", "navItemSelectedCss", "anchorCss", "SubMenu", "injectGlobal", "reactMenuCss", "ItemDesktop", "target", "dataset", "useMotifStyles", "PrimitivesContext", "GlobalHeaderContext", "setShouldSelect", "isExpanded", "setIsExpanded", "ref", "menuPosition", "setPosition", "iconName", "clickableItemClassName", "clickableNavigatorItemClassName", "titleClassName", "linkOrText", "items", "getItemProps", "handleKeyPress", "e", "size", "jsxs", "itemCss", "dataSetToAttributes", "Icon", "iconCss", "ControlledMenu", "getBackgroundClassName", "BackgroundColor", "import_react", "scrollSnapItemCss", "css", "ScrollSnapContainer", "children", "html", "body", "childrenArray", "jsx", "Fragment", "child", "index", "sliderChild", "isLastItem", "cx", "Page", "pageBackgroundColor", "backgroundImageSources", "mobileBackgroundVideoSource", "backgroundVideoSource", "backgroundMediaStyle", "BackgroundStyle", "pageClassName", "scrollSnap", "children", "useMotifStyles", "className", "cx", "containerCss", "getBackgroundClassName", "pageTransparentBgCss", "jsxs", "jsx", "Picture", "fixedBackgroundMediaCss", "backgroundMediaCss", "Video", "ScrollSnapContainer", "import_react", "paginationCss", "css", "m", "nonMobileMediaQuery", "paginationItemButtonCss", "smallMobileMediaQuery", "paginationItemCss", "activePaginationItemCss", "arrowButtonCss", "previousButtonCss", "nextButtonCss", "PaginationItem", "ariaLabel", "children", "disabled", "handlePageChange", "isActive", "type", "jsx", "IconButton", "cx", "arrowButtonCss", "previousButtonCss", "nextButtonCss", "paginationItemCss", "activePaginationItemCss", "paginationItemButtonCss", "range", "start", "end", "length", "_", "index", "getPaginationItems", "totalPages", "currentPage", "siblingsStart", "siblingsEnd", "hasStartEllipsis", "hasEndEllipsis", "pageBeforeEllipses", "pageAfterEllipses", "leftEllipsisRange", "rightEllipsisRange", "Pagination", "ariaLabel", "className", "totalPages", "currentPage", "onChange", "useMotifStyles", "formatMessage", "MessageContext", "previousPageMessage", "nextPageMessage", "goToPageMessage", "pageNumber", "handlePageChange", "newPage", "paginationItems", "getPaginationItems", "jsx", "cx", "jsxs", "paginationCss", "PaginationItem", "item", "index", "bigQuoteCss", "css", "startQuoteCss", "endQuoteCss", "quoteCss", "m", "authorCss", "nonMobileMediaQuery", "mobileMediaQuery", "Quote", "author", "children", "useMotifStyles", "jsxs", "cx", "quoteCss", "jsx", "startQuoteCss", "bigQuoteCss", "endQuoteCss", "authorCss", "containerCss", "css", "innerContainerCss", "ScrollAnimatedSection", "className", "containerRef", "innerContainerClassName", "children", "dataset", "style", "jsx", "cx", "containerCss", "dataSetToAttributes", "innerContainerCss", "import_react", "ScrollAnimatedVideo", "calculateScrollProgress", "className", "videoMp4Src", "videoWebmSrc", "videoStart", "videoEnd", "scrubStart", "scrubEnd", "style", "dataset", "videoRef", "finalVideoSrc", "BrowserFeaturesContext", "browser", "scrollCallback", "scrollPercent", "scrubRange", "animationPercent", "animationDuration", "newTime", "jsx", "dataSetToAttributes", "import_react", "import_react", "SideNavigationLinks", "links", "isUrlCurrent", "focusSection", "isRTL", "linksRefs", "Anchor", "PrimitivesContext", "handleLinkKeyPress", "idx", "event", "next", "prev", "handleOnClick", "url", "isExternal", "createLink", "link", "id", "linkProps", "element", "ariaCurrent", "jsx", "Fragment", "isCurrent", "cx", "linkCss", "activeLinkCss", "dataSetToAttributes", "SideNavigation", "className", "items", "isUrlCurrent", "dataset", "backgroundColor", "mobileBackgroundColor", "useMotifStyles", "browserFeatures", "BrowserFeaturesContext", "windowWidth", "useWindowSize", "isMobile", "isMobileOs", "containerRef", "sectionsRefs", "defaultSection", "section", "link", "activeSection", "setActiveSection", "isVisible", "setIsVisible", "isRtl", "handleSectionClick", "idx", "event", "handleSectionKeyPress", "next", "prev", "focusSection", "toggleIsVisible", "showTopBar", "mobileMaxWidth", "jsxs", "cx", "getBackgroundClassName", "wrapperCss", "wrapperShadowCss", "sectionButtonCss", "jsx", "Icon", "sideNavMobileIconCss", "containerCss", "dataSetToAttributes", "el", "caratCss", "sideNavIconCss", "SideNavigationLinks", "import_react", "contentMaxWidthPx", "contentMaxWidthPxMobile", "sideOverlayCss", "css", "m", "ZIndex", "nonMobileMediaQuery", "mobileMediaQuery", "sideOverlayActiveCss", "sideOverlayBackdropCss", "sideOverlayBackdropActiveCss", "sideOverlayHeaderCss", "sideOverlayCloseButtonCss", "sideOverlayListCss", "sideOverlayTermCss", "sideOverlayDefinitionCss", "SideOverlay", "isOpen", "title", "body", "onClose", "className", "useMotifStyles", "closeButtonRef", "jsxs", "Fragment", "jsx", "cx", "sideOverlayBackdropCss", "sideOverlayBackdropActiveCss", "sideOverlayCss", "sideOverlayActiveCss", "sideOverlayHeaderCss", "sideOverlayCloseButtonCss", "Icon", "m", "sideOverlayListCss", "sideOverlayTermCss", "sideOverlayDefinitionCss", "import_react", "iframeContainerCss", "css", "blockQuoteCss", "frameContainerCss", "linkCss", "frameCss", "spacerCss", "footerCss", "footerLinkCss", "footerTextCss", "SnapchatEmbed", "props", "url", "dataset", "className", "ref", "useMotifStyles", "Anchor", "PrimitivesContext", "ensureSingleScript", "event", "newUrl", "urlWithoutParams", "jsx", "cx", "iframeContainerCss", "dataSetToAttributes", "jsxs", "blockQuoteCss", "frameContainerCss", "linkCss", "frameCss", "spacerCss", "footerCss", "footerLinkCss", "footerTextCss", "import_react", "minHeightPx", "mobileMediaMinHeightPx", "contentMaxWidthPx", "mediaCaptionMaxWidthPx", "splitBlockWrapperCss", "css", "m", "mobileMediaQuery", "fitWindowCss", "reverseSplitCss", "textWrapperCss", "twoColumnCollapseMediaQuery", "contentWrapperCss", "nonMobileMediaQuery", "titleCss", "h1Css", "subtitleCss", "p1Css", "bodyCss", "p2Css", "primitiveElementClassNames", "ctaWrapperCss", "mediaWrapperCss", "backgroundCss", "mediaCaptionCss", "White", "p3Css", "SplitBlock", "props", "backgroundColor", "BackgroundColor", "body", "callsToAction", "fitWindow", "imageSources", "mediaCaption", "mediaContentType", "mediaDirection", "Alignment", "mobileMediaContentType", "mobileVideoSource", "subtitle", "textAlignment", "textAlignmentMobile", "title", "verticalTextAlignment", "videoSource", "callsToActionCount", "jsxs", "cx", "getMotifSchemeForLegacyBackgroundColor", "splitBlockWrapperCss", "fitWindowCss", "reverseSplitCss", "jsx", "textWrapperCss", "contentWrapperCss", "alignmentCss", "mobileAlignmentCss", "justifyContentCss", "titleCss", "subtitleCss", "bodyCss", "ctaWrapperCss", "mediaWrapperCss", "Picture", "backgroundCss", "Video", "mediaCaptionCss", "navCss", "css", "m", "ZIndex", "mobileMediaQuery", "itemsWrapCss", "itemsCss", "itemCss", "underlineHeight", "itemLinkCss", "itemLinkActiveCss", "SubNavigation", "backgroundColor", "className", "children", "horizontalScrollRef", "dataset", "useMotifStyles", "jsx", "cx", "navCss", "getBackgroundClassName", "dataSetToAttributes", "itemsWrapCss", "itemsCss", "import_react", "SubNavigationItem", "href", "isActive", "onLinkClick", "className", "children", "dataset", "Anchor", "PrimitivesContext", "jsx", "cx", "itemCss", "dataSetToAttributes", "itemLinkCss", "itemLinkActiveCss", "import_react", "import_react", "tabsPanelsCss", "css", "mobileMediaQuery", "m", "tabsButtonsCss", "noHorizontalScrollbarsCss", "arrowButtonContainerCss", "ZIndex", "arrowCss", "leftGradientCss", "rightGradientCss", "tabsContainerCss", "tabItemContainterCss", "tabItemCenterContainterCss", "tabItemStartContainterCss", "itemLinkUnderlineCss", "itemLinkUnderlineActiveCss", "itemLinkCss", "nonMobileMediaQuery", "itemLinkActiveCss", "tabBreakCss", "TabArrows", "direction", "onClick", "isDisabled", "jsx", "arrowCss", "Icon", "TabItems", "items", "className", "selectTab", "selectedTab", "containerRef", "arrowContainerRef", "isRTL", "setIsRTL", "scrollPosition", "setScrollPosition", "isArrowVisible", "setArrowVisibility", "windowWidth", "useWindowSize", "scroll", "scrollNum", "newScrollPosition", "parentTabWidth", "totalTabWidth", "onScroll", "direction", "useBrowserLayoutEffect", "totalParentWidth", "arrowWidth", "isMobile", "useMediaMode", "MediaMode", "swipePosition", "setSwipePosition", "element", "listener", "isDisabledLeft", "isDisabledRight", "isGradientLeft", "isGradientRight", "jsxs", "cx", "tabsContainerCss", "jsx", "leftGradientCss", "tabItemContainterCss", "tabItemStartContainterCss", "tabItemCenterContainterCss", "item", "index", "isSelected", "itemLinkCss", "itemLinkActiveCss", "rightGradientCss", "arrowButtonContainerCss", "TabArrows", "contentContainerStyles", "contentContainerStyle1ColumnCss", "contentContainerStyle2ColumnCss", "contentContainerStyle3ColumnCss", "TabsPanels", "items", "selectedTab", "jsx", "tabsPanelsCss", "item", "index", "cx", "contentContainerCss", "content", "TabsV2", "items", "defaultSelectedTab", "onSelectTab", "selectedTab", "selectTab", "eventListenersRef", "useMotifStyles", "handleSelectTab", "index", "listener", "jsx", "TabsContext", "jsxs", "TabItems", "TabsPanels", "skeletonWrapperCss", "css", "White", "m", "nonTwoColumnCollapseMediaQuery", "skeletonChartCss", "skeletonSvgCss", "skeletonSvgBackgroundCss", "skeletonSvgMaskCss", "skeletonSvgGradientDarkColorCss", "skeletonSvgGradientLightColorCss", "animationDuration", "ChartSkeleton", "useMotifStyles", "jsx", "cx", "skeletonWrapperCss", "skeletonChartCss", "jsxs", "skeletonSvgCss", "skeletonSvgGradientDarkColorCss", "skeletonSvgGradientLightColorCss", "skeletonSvgMaskCss", "skeletonSvgBackgroundCss", "import_react", "ChartToggleButton", "children", "active", "onClick", "className", "cx", "buttonCss", "buttonActiveClassName", "jsx", "ChartToggleButtons", "items", "selectedChart", "selectChart", "handleOnClick", "index", "wrapperClassName", "cx", "buttonsWrapperCss", "buttonsWrapperClassName", "jsx", "buttonsCss", "title", "ChartToggleButton", "TabsPanels", "items", "selectedChart", "jsx", "panelsCss", "content", "index", "contentContainerStyle1ColumnCss", "ChartToggle", "items", "selectedChart", "selectChart", "useMotifStyles", "onToggle", "jsxs", "jsx", "ChartToggleButtons", "TabsPanels", "ChartTogglePanelsV2", "items", "selectedChart", "jsx", "Fragment", "content", "index", "import_react", "ChartToggleDropdown", "label", "items", "selectedChart", "selectChart", "handleOnClick", "item", "dropdownItems", "index", "jsxs", "cx", "dropdownWrapperClassName", "dropdownCss", "noLabelCss", "jsx", "DropdownMenu", "ChartToggleV2", "items", "label", "isLoading", "selectedChart", "selectChart", "useMotifStyles", "onToggle", "jsx", "DropdownSkeleton", "jsxs", "Fragment", "ChartToggleDropdown", "ChartTogglePanelsV2", "ChartToggleWrapper", "children", "jsx", "cx", "chartToggleWrapperCss", "import_react", "import_react", "defaultLocaleCode", "defaultSupportedLocales", "defaultIsUrlCurrent", "pathOrUrl", "url", "defaults", "GlobalComponentsContext", "error", "GlobalComponentsContextProvider", "children", "value", "jsx", "merge_default", "googleTagDataLayerSet", "document", "GTMID", "nonce", "configureDataLayer", "createdScriptElement", "toggleGoogleTracking", "GAID", "enabled", "identifier", "getGaidWithPrefix", "input", "enableGoogleTagManager", "windowGaArgumentSetter", "args", "googleAnalyticsArgumentsSet", "enableGoogleAnalytics", "gaPlugins", "plugin", "GA4Script", "enablePerformanceAnalytics", "plugins", "gaIdentifier", "googleAnalytics4Properties", "gdprCountries", "localeMap", "connectionTimeoutS", "contentfulRetryCount", "contentfulRequestTimeoutMs", "productionDomains", "stagingDomains", "defaultCountryCode", "defaultStateCode", "defaultGeo", "setLocalStorageItem", "key", "value", "getLocalStorageItem", "import_js_cookie", "import_react", "localeCookie", "localeDropdownCss", "css", "LocaleDropdown", "currentLocale", "supportedLocales", "onLocaleChange", "className", "context", "GlobalComponentsContext", "defaultSupportedLocales", "localeArray", "onSelect", "item", "localeCode", "Cookies", "localeCookie", "g", "Action", "dropdownItems", "locale", "displayText", "localeMap", "jsx", "DropdownMenu", "cx", "localeDropdownCss", "defaultLocaleCode", "import_react", "normalizeCss", "css", "globalCss", "cookieModalHeaderCss", "m", "cookieModalRichTextCss", "darkModeCss", "getBackgroundClassName", "BackgroundColor", "cookieModalSettingsScreenCss", "p1Css", "cookieModalFooterCss", "mobileMediaQuery", "smallMobileMediaQuery", "settingsPageFooterCss", "contentCss", "cookieModalCss", "h5Css", "cookieSettingsPageCss", "SdsmCookieModal", "backgroundType", "className", "children", "isDisplayed", "portalRoot", "mode", "useMediaMode", "windowWidth", "useWindowSize", "modalAlignment", "setModalAlignment", "VerticalAlignment", "alignment", "smallMobileMaxWidth", "jsx", "Modal", "cx", "globalCss", "getBackgroundClassName", "cookieModalCss", "contentCss", "SdsmComponents", "text", "isDisabled", "isPrimary", "onClick", "type", "ButtonType", "jsx", "Button", "currentLocale", "supportedLocales", "containerProvider", "onLocaleChange", "LocaleDropdown", "backgroundType", "children", "isDisplayed", "portalRoot", "SdsmCookieModal", "cx", "contentCss", "getBackgroundClassName", "id", "isChecked", "onToggle", "ToggleSlider", "CookieModal", "portalRoot", "cookieDomain", "supportedLocales", "GTMID", "GAID", "nonce", "plugins", "onLocaleChange", "userOnComplete", "preferencesAcceptedCallback", "performanceAnalyticsCallback", "marketingAnalyticsCallback", "backgroundType", "forceVisible", "globalPrivacyControl", "onGlobalPrivacyControlSet", "toggleGoogleTracking", "context", "GlobalComponentsContext", "Anchor", "globalApolloClient", "currentLocale", "isPreview", "isSSR", "onEvent", "onError", "defaultSupportedLocales", "providerProps", "SdsmComponents", "jsx", "PrimitivesProvider", "CookieProvider", "wrapped", "props", "cookieAcceptance", "userLocation", "configureDataLayer", "enablePerformanceAnalytics", "label", "import_react", "CookieSettings", "backgroundType", "cookieDomain", "context", "GlobalComponentsContext", "Anchor", "currentLocale", "isPreview", "isSSR", "onEvent", "onError", "globalApolloClient", "providerProps", "SdsmComponents", "settingsProps", "jsx", "PrimitivesProvider", "cx", "globalCss", "cookieSettingsPageCss", "CookieProvider", "wrapped", "head", "array", "head_default", "import_react", "AssetAllType", "ImageAllType", "FooterItemV3AllType", "FooterLocaleDropdownAllType", "FooterCookiesSettingsLinkAllType", "FooterGroupAllType", "FooterV3AllType", "AnalyticsAllType", "ButtonAllType", "CallToActionAllType", "GlobalNavHighlightAllType", "GlobalNavItemAllType", "GlobalNavAllType", "ButtonQueryDocumentType", "FooterV3CollectionQueryDocumentType", "FooterItemV3QueryDocumentType", "FooterV3QueryDocumentType", "GlobalNavConfigCollectionQueryDocumentType", "AssetsQueryDocumentType", "snakeCase", "createCompounder_default", "result", "word", "index", "snakeCase_default", "import_react", "defaultTrackingParameters", "FooterItemV3", "props", "id", "url", "title", "analyticsLabel", "isUrlCurrent", "onEvent", "hostname", "GlobalComponentsContext", "trackingParameters", "snakeCase_default", "trackedUrl", "appendTrackingParameters", "onClick", "Action", "jsx", "FooterItemV2", "FooterGroup", "id", "title", "items", "onClick", "orientation", "isFooterBar", "beforeItems", "afterItems", "itemsToRender", "item", "i", "jsx", "FooterItemV3", "jsxs", "localeDropdownContainerCss", "css", "nonMobileMediaQuery", "logoWrapperCss", "m", "lightBgSnapLogoCss", "localeDropdownContainerCss", "css", "mobileMediaQuery", "dropdownCss", "m", "horizontalDropdownCss", "titleCss", "FooterLocaleDropdown", "title", "orientation", "jsxs", "cx", "dropdownCss", "horizontalDropdownCss", "jsx", "titleCss", "LocaleDropdown", "localeDropdownContainerCss", "mergeFooterData", "globalGroups", "customGroups", "cookieSettingsUrl", "clonedCustomGroups", "clone_default", "computed", "result", "curGroup", "spaceItemIndex", "group", "genericItems", "contentfulToGenericGroup", "spaceGroup", "mergedGroup", "restMapped", "filterFooterDomains", "collection", "domain", "item", "items", "FooterCollectionV3", "customColumns", "customFooterBar", "backgroundColor", "BackgroundColor", "logo", "socialBar", "footerType", "cookieSettingsUrl", "Anchor", "supportedLocales", "currentLocale", "hostname", "isPreview", "isSSR", "globalApolloClient", "GlobalComponentsContext", "data", "loading", "error", "useGlobalComponentsContentfulQuery", "FooterV3CollectionQueryDocumentType", "defaultLocaleCode", "hasMultipleLanguages", "footerProps", "head_default", "globalFooterColumnsItems", "globalFooterColumnsCollectionGroups", "filterFooterDomains", "globalFooterBarItems", "globalFooterBarCollectionGroups", "localeDropdownData", "group", "localeDropdownItem", "i", "columnsGroups", "mergeFooterData", "barGroups", "finalLogo", "jsx", "Logo", "logoWrapperCss", "lightBgSnapLogoCss", "localeDropdown", "localeDropdownContainerCss", "FooterLocaleDropdown", "output", "jsxs", "FooterV2", "FooterBar", "FooterGroup", "footerBar", "footerColumns", "FooterColumns", "PrimitivesProvider", "GlobalFooter", "footerType", "props", "jsx", "FooterCollectionV3", "import_react", "import_react", "import_react", "import_react", "Button", "props", "Anchor", "onEvent", "GlobalComponentsContext", "url", "target", "buttonType", "theme", "title", "size", "image", "iconName", "jsx", "PrimitivesProvider", "Action", "PlainRichText", "CallToAction", "props", "onError", "GlobalComponentsContext", "presentation", "analytics", "url", "jsx", "Button", "import_react", "useActivation", "triggered", "ctaProps", "context", "GlobalComponentsContext", "onEvent", "presentation", "url", "analytics", "usesButton", "resolvedUrl", "Action", "getDprDataByHeight", "defaultHeight", "assetHeight", "result", "getDprSrcSetSettingsByHeight", "dprData", "getImageUrl", "imageUrl", "settings", "currentUrl", "progressive", "width", "height", "format", "quality", "fit", "uri", "uriError", "import_react", "slowConnections", "getSrcSetUrl", "url", "settings", "format", "size", "getImageUrl", "image", "isOsxSafariAnimatedAvifBugCurrent", "useContentfulImages", "browserFeatures", "BrowserFeaturesContext", "connectionType", "isSlowConnection", "lowEntropyBrowserHints", "useContentfulImagesInternal", "supportsAvif", "supportsWebP", "props", "maybeSupportsAvif", "isBrowser", "getImageSources", "merge_default", "isSvg", "sources", "sizes", "media", "defaultSettings", "prev", "cur", "getBestBgImgSrc", "bestFormat", "finalSettings", "import_react", "isVideoUrl", "contentType", "isImageUrl", "Media", "props", "onError", "GlobalComponentsContext", "contentType", "url", "description", "sizeSettings", "getImageSources", "useContentfulImages", "isImageUrl", "imgSrcs", "jsx", "isVideoUrl", "hightlightWidths", "hightlightPadding", "globalNavHighlightSizes", "mobileMaxWidth", "hightlightSizedSrcSets", "width", "GlobalNavHighlight", "props", "triggered", "setTriggered", "useActivation", "cta", "background", "cardTitleV2", "cardBodyV2", "onActivate", "jsx", "Media", "CallToAction", "import_react", "baseFilter", "collection", "predicate", "result", "baseEach_default", "value", "index", "baseFilter_default", "FUNC_ERROR_TEXT", "negate", "predicate", "args", "negate_default", "reject", "collection", "predicate", "func", "isArray_default", "arrayFilter_default", "baseFilter_default", "negate_default", "baseIteratee_default", "reject_default", "import_react", "import_react", "isHiddenNavItem", "hideHostnameRegex", "hostname", "GlobalNavItem", "title", "url", "analytics", "onEvent", "GlobalComponentsContext", "onClick", "Action", "jsx", "GlobalNavGroup", "title", "groupKey", "itemsCollection", "highlight", "mobileNavHighlight", "jsx", "GlobalNavHighlight", "itemProps", "i", "GlobalNavItem", "sortNavGroups", "navGroups", "isPromoted", "reject_default", "filterNavGroups", "hostname", "navGroup", "GlobalNavGroupCollection", "GlobalComponentsContext", "group", "filteredNavGroups", "sortedNavGroups", "jsx", "Fragment", "props", "GlobalNavGroup", "GlobalNavHighlightCollection", "props", "highlights", "group", "navGroup", "jsx", "GlobalNavHighlight", "GlobalNavHighlightReel", "GlobalNavGroupScreen", "backgroundColor", "localNavMobile", "localNavMobileFooter", "navGroups", "globalNavHeading", "showMobileGlobalLinks", "toggleExpanded", "GlobalHeaderContext", "jsx", "GlobalNavScreen", "GlobalNavHighlightCollection", "GlobalNavGroupCollection", "import_react", "useMediaPreload", "media", "isImportant", "settings", "onError", "GlobalComponentsContext", "preloads", "asset", "link", "isVideoUrl", "video", "source", "isImageUrl", "picture", "avifSrc", "webpSrc", "img", "size", "getSrcSetUrl", "getImageUrl", "defaultBackgroundColor", "BackgroundColor", "defaultDefaultGroupKey", "GlobalHeaderContext", "mediaPreloadSettings", "hightlightSizedSrcSets", "mobileMaxWidth", "GlobalHeader", "backgroundColor", "className", "defaultGroupKey", "siteName", "displayed", "trackingSiteName", "cta", "ctaItems", "localNavDesktop", "localNavItems", "logo", "logoProps", "localNavMobile", "localNavMobileFooter", "onToggleExpanded", "search", "searchOpen", "endChildrenDesktopClassName", "endChildrenMobileClassName", "showGlobalLinks", "showNavScreen", "pathname", "headerNavigationTree", "navItemAlignment", "context", "GlobalComponentsContext", "Anchor", "onEvent", "data", "useGlobalComponentsContentfulQuery", "GlobalNavConfigCollectionQueryDocumentType", "defaultLocaleCode", "config", "head_default", "navGroups", "browserFeatures", "BrowserFeaturesContext", "isMobile", "isMobileOs", "assetsToPreload", "item", "asset", "useMediaPreload", "onToggleExpandedWithLogging", "isExpanded", "Action", "callToActions", "id", "jsx", "Button", "endChildren", "jsxs", "Fragment", "defaultLogo", "Logo", "shouldShowLogo", "endChildrenClassName", "mobileNavigation", "item1", "id1", "GlobalNavItem", "item2", "id2", "item3", "id3", "desktopNavigation", "ItemDesktop", "PrimitivesProvider", "GlobalNavGroupScreen", "buildDelayFunction", "delayOptions", "_a", "_b", "initial", "_c", "jitter", "_d", "max", "baseDelay", "count", "delay", "buildRetryFunction", "retryOptions", "_a", "retryIf", "_b", "max", "count", "operation", "error", "RetryableOperation", "observer", "operation", "forward", "delayFor", "retryIf", "_this", "error", "__awaiter", "shouldRetry", "_a", "delay", "RetryLink", "_super", "__extends", "options", "attempts", "buildDelayFunction", "buildRetryFunction", "nextLink", "Observable", "retryable", "ApolloLink", "import_react", "_setPrototypeOf", "o", "p", "_inheritsLoose", "subClass", "superClass", "_setPrototypeOf", "isAbsolute", "pathname", "spliceOne", "list", "index", "i", "k", "n", "resolvePathname", "to", "from", "toParts", "fromParts", "isToAbs", "isFromAbs", "mustEndAbs", "hasTrailingSlash", "last", "up", "part", "result", "resolve_pathname_default", "isProduction", "prefix", "invariant", "condition", "message", "provided", "value", "addLeadingSlash", "path", "stripLeadingSlash", "hasBasename", "prefix", "stripBasename", "stripTrailingSlash", "parsePath", "pathname", "search", "hash", "hashIndex", "searchIndex", "createPath", "location", "createLocation", "state", "key", "currentLocation", "_extends", "e", "resolve_pathname_default", "createTransitionManager", "prompt", "setPrompt", "nextPrompt", "confirmTransitionTo", "location", "action", "getUserConfirmation", "callback", "result", "listeners", "appendListener", "fn", "isActive", "listener", "item", "notifyListeners", "_len", "args", "_key", "canUseDOM", "getConfirmation", "message", "supportsHistory", "ua", "supportsPopStateOnHashChange", "supportsGoWithoutReloadUsingHash", "isExtraneousPopstateEvent", "event", "PopStateEvent", "HashChangeEvent", "getHistoryState", "createBrowserHistory", "props", "invariant", "globalHistory", "canUseHistory", "needsHashChangeListener", "_props", "_props$forceRefresh", "forceRefresh", "_props$getUserConfirm", "_props$keyLength", "keyLength", "basename", "stripTrailingSlash", "addLeadingSlash", "getDOMLocation", "historyState", "_ref", "key", "state", "_window$location", "pathname", "search", "hash", "path", "stripBasename", "createLocation", "createKey", "transitionManager", "setState", "nextState", "_extends", "history", "handlePopState", "handlePop", "handleHashChange", "forceNextPop", "ok", "revertPop", "fromLocation", "toLocation", "toIndex", "allKeys", "fromIndex", "delta", "go", "initialLocation", "createHref", "createPath", "push", "href", "prevIndex", "nextKeys", "replace", "n", "goBack", "goForward", "listenerCount", "checkDOMListeners", "isBlocked", "block", "unblock", "listen", "unlisten", "HashChangeEvent$1", "HashPathCoders", "stripLeadingSlash", "stripHash", "url", "hashIndex", "getHashPath", "pushHashPath", "replaceHashPath", "createHashHistory", "canGoWithoutReload", "_props$hashType", "hashType", "_HashPathCoders$hashT", "encodePath", "decodePath", "ignorePath", "locationsAreEqual$$1", "a", "b", "encodedPath", "prevLocation", "allPaths", "baseTag", "hashChanged", "nextPaths", "clamp", "lowerBound", "upperBound", "createMemoryHistory", "_props$initialEntries", "initialEntries", "_props$initialIndex", "initialIndex", "index", "entries", "entry", "nextIndex", "nextEntries", "canGo", "_objectWithoutPropertiesLoose", "source", "excluded", "target", "key", "MAX_SIGNED_31_BIT_INT", "commonjsGlobal", "globalThis", "window", "global", "getUniqueId", "key", "objectIs", "x", "y", "createEventEmitter", "value", "handlers", "on", "handler", "push", "off", "filter", "h", "get", "set", "newValue", "changedBits", "forEach", "onlyChild", "children", "Array", "isArray", "createReactContext", "defaultValue", "calculateChangedBits", "contextProp", "Provider", "_React$Component", "emitter", "_this", "props", "getChildContext", "_ref", "componentWillReceiveProps", "nextProps", "oldValue", "render", "React", "Component", "childContextTypes", "_Provider$childContex", "PropTypes", "object", "isRequired", "Consumer", "_React$Component2", "observedBits", "state", "_this2", "getValue", "onUpdate", "setState", "componentDidMount", "context", "componentWillUnmount", "contextTypes", "_Consumer$contextType", "createContext", "createNamedContext", "name", "displayName", "historyContext", "Router", "computeRootMatch", "pathname", "path", "url", "params", "isExact", "location", "history", "_isMounted", "_pendingLocation", "staticContext", "unlisten", "listen", "RouterContext", "match", "HistoryContext", "MemoryRouter", "createHistory", "Lifecycle", "onMount", "call", "componentDidUpdate", "prevProps", "onUnmount", "cache", "cacheLimit", "cacheCount", "compilePath", "path", "options", "cacheKey", "end", "strict", "sensitive", "pathCache", "keys", "regexp", "pathToRegexp", "result", "matchPath", "pathname", "Array", "isArray", "_options", "exact", "_options$exact", "_options$strict", "_options$sensitive", "paths", "concat", "reduce", "matched", "_compilePath", "match", "exec", "url", "values", "isExact", "params", "memo", "key", "index", "name", "isEmptyChildren", "children", "React", "Children", "count", "Route", "render", "React", "RouterContext", "context", "invariant", "location", "_this", "props", "match", "computedMatch", "path", "matchPath", "pathname", "_extends", "children", "_this$props", "component", "Array", "isArray", "isEmptyChildren", "createElement", "Component", "addLeadingSlash", "charAt", "addBasename", "basename", "stripBasename", "base", "indexOf", "substr", "length", "createURL", "createPath", "staticHandler", "methodName", "noop", "StaticRouter", "handlePush", "navigateTo", "handleReplace", "handleListen", "handleBlock", "action", "_this$props$basename", "_this$props$context", "createLocation", "url", "_this$props2$basename", "_this$props2$context", "_this$props2$location", "rest", "_objectWithoutPropertiesLoose", "_this$props2", "history", "createHref", "push", "replace", "go", "goBack", "goForward", "listen", "block", "Router", "Switch", "element", "Children", "forEach", "child", "isValidElement", "from", "cloneElement", "useContext", "React", "useHistory", "HistoryContext", "useLocation", "RouterContext", "location", "BrowserRouter", "history", "createHistory", "_this", "props", "render", "React", "Router", "children", "Component", "HashRouter", "resolveToLocation", "to", "currentLocation", "normalizeToLocation", "createLocation", "forwardRefShim", "C", "forwardRef", "isModifiedEvent", "event", "metaKey", "altKey", "ctrlKey", "shiftKey", "LinkAnchor", "_ref", "forwardedRef", "innerRef", "navigate", "onClick", "rest", "_objectWithoutPropertiesLoose", "target", "_extends", "ex", "preventDefault", "defaultPrevented", "button", "ref", "Link", "_ref2", "component", "_ref2$component", "replace", "RouterContext", "context", "invariant", "location", "href", "createHref", "isDuplicateNavigation", "createPath", "method", "push", "createElement", "forwardRefShim", "C", "forwardRef", "React", "joinClassnames", "classnames", "_len", "_key", "filter", "i", "join", "NavLink", "_ref", "forwardedRef", "ariaCurrent", "_ref$ariaCurrent", "activeClassName", "_ref$activeClassName", "activeStyle", "classNameProp", "className", "exact", "isActiveProp", "isActive", "locationProp", "location", "sensitive", "strict", "styleProp", "style", "to", "innerRef", "rest", "_objectWithoutPropertiesLoose", "RouterContext", "context", "invariant", "currentLocation", "toLocation", "normalizeToLocation", "resolveToLocation", "path", "pathname", "escapedPath", "replace", "match", "matchPath", "_extends", "props", "ref", "Link", "import_react", "defaultContext", "_", "noop_default", "AppContext", "import_react", "getRawData", "data", "localizedRows", "nonLocalizedRows", "row", "i", "mergeLocalizedAndNonLocalizedRows", "nonLocalizedRow", "localizedRow", "series", "mergedRow", "keys", "key", "productionContentTokens", "import_rich_text_plain_text_renderer", "import_rich_text_types", "import_merge", "import_invert", "contentfulSpaceIds", "siteBySpaceId", "invert", "contentfulDevTokenKeys", "contentfulPreviewTokenKeys", "clientEnv", "cookieSettingsPath", "getCookieDomain", "domain", "cookieDomain", "g", "getCookieSettingsUrl", "snapHeaderBackgroundVar", "snapHeaderCss", "css", "snapHeaderBackgroundVar", "config", "cx", "Partition", "environmentNames", "transformTrackingSettings", "site", "getCookieDomain", "getSiteConfig", "config", "clientEnv", "createConfig", "requiredEnvVars", "envVar", "siteConfig", "isPreview", "isClient", "isBrowser", "buildNumber", "commit", "isLocal", "isTest", "compilationMode", "deploymentType", "isDeploymentTypeProd", "isCompilationModeProd", "isSsr", "region", "googleCloudProjectName", "contentfulEnvNameOverride", "contentful", "contentfulSpaceIds", "productionContentTokens", "contentfulGlobal", "globalComponentsSpaceId", "globalComponentsEnvName", "globalComponentsAccessToken", "useLocalElastic", "elasticConfig", "Template", "Config", "localHosts", "Config", "isLocalUrl", "url", "domain", "shouldFlushLogs", "urlObj", "createIsCurrentUrl", "getRequestUrl", "destinationUrlString", "options", "currentUrl", "destinationUrl", "pattern", "urlParameters", "persistedQueryParams", "Config", "alwaysPersistQueryParams", "checkIfSameTabDomain", "targetUrl", "currentUrl", "isLocalUrl", "domain", "checkIfPersistParamsDomain", "url", "persistDomains", "import_react", "import_react", "SitewideConfigurationContext", "defaultFeatureFlags", "useFeatureFlags", "getCurrentUrl", "AppContext", "searchParams", "sitewideValues", "SitewideConfigurationContext", "contentfulFeatureFlags", "combineFeatureFlags", "getUrlFeatureFlags", "urlOverrides", "Config", "feature", "override", "businessHelpHostname", "localeLanguageMap", "appendLocaleToBusinessHelpUrl", "url", "locale", "newLocale", "httpPrefix", "httpPrefixUppercase", "httpsPrefix", "httpsPrefixUppercase", "copyUrlSearchParameters", "destinationUrl", "currentUrl", "persistentQueryParams", "referrerUrlString", "referrerUrl", "queryParameter", "value", "mergeUrlParameters", "urlParameters", "defaultFeatureFlags", "acceptsLangParameter", "url", "appendLocaleParameterToUrl", "locale", "businessHelpHostname", "appendLocaleToBusinessHelpUrl", "allLocales", "localeMap", "getLinkProps", "options", "targetUrl", "isSameTabDomain", "checkIfSameTabDomain", "isPersistParamsDomain", "checkIfPersistParamsDomain", "openInNewTab", "queryParamsToPersist", "persistedQueryParams", "alwaysPersistQueryParams", "mergeUrlParameters", "isFinalTargetLocal", "isLocalUrl", "appendLocaleParameterToUrl", "localePrefix", "locale", "Anchor", "props", "ref", "currentLocale", "getCurrentUrl", "AppContext", "jsx", "updatedProps", "getLinkProps", "url", "isLocalUrl", "_", "nonHrefProps", "Link", "import_react", "requestIdleCallback", "callback", "start", "cancelIdleCallback", "id", "import_isNil", "import_omit", "import_assign", "import_cloneDeep", "maxQueueSize", "defaultIdleTimeout", "AbstractEventListener", "_a", "props", "event", "context", "requestIdleCallback", "permission", "__name", "AbstractDataLayerEventListener", "formattedEvent", "formattedEvents", "singleFormattedEvent", "onEventLoggedCallback", "onEventLogged", "resolve", "resolvedCount", "LoggingEventType", "maxDimensions", "AbstractGrapheneEventListener", "graphene", "grapheneConfigs", "getWebConfig", "eventDimensions", "dimensions", "key", "value", "isNil", "dimensionKey", "flatContext", "input", "Partition", "metricsName", "customEvent", "timing", "extractedDimensions", "AbstractSentryEventListener", "error", "l", "sentryContext", "ConsoleEventListener", "printConsole", "contextDict", "messageAndArgs", "maybeLabel", "maybeAction", "message", "omit", "type", "LoggingEventBus", "listeners", "provider", "combinedContext", "getContext", "assign", "cloneDeep", "listener", "tryFlushListeners", "data", "TestEventListener", "testErrorEvent", "import_react", "logger", "LoggingEventBus", "onMarketingTrackingAccepted", "onPerformanceTrackingAccepted", "logDebug", "logError", "event", "logWarning", "logInfo", "logValue", "logTiming", "logUserEvent", "logEvent", "logCustom", "import_react", "import_react", "defaultLocale", "ContentfulContext", "defaultLocale", "getContentfulContext", "locale", "params", "fetchPolicy", "param", "Config", "useContentfulContext", "context", "ContentfulContext", "import_react", "ContentfulLivePreviewContext", "ContentfulLivePreviewContextProvider", "children", "hasLivePreview", "setHasLivePreview", "jsx", "ContentfulLivePreview", "locale", "useContentfulContext", "setHasLivePreview", "ContentfulLivePreviewContext", "shouldSetupLivePreview", "Config", "setupContentfulLivePreview", "livePreview", "preview", "livePreviewCss", "injectGlobal", "logger", "LoggingEventType", "mapValues", "object", "iteratee", "result", "baseIteratee_default", "baseForOwn_default", "value", "key", "baseAssignValue_default", "mapValues_default", "convertNullsToUndefined", "object", "cloned", "clone_default", "mapped", "mapValues_default", "useContentfulQuery", "query", "options", "getCurrentUrl", "AppContext", "preview", "locale", "fetchPolicy", "useContentfulContext", "hasLivePreview", "ContentfulLivePreviewContext", "queryOptions", "Config", "queryResponse", "useQuery", "updatedEntries", "setUpdatedEntries", "cleanup", "noop_default", "subscribeToLiveUpdates", "ContentfulLivePreview", "singleItemKeys", "key", "collectionKeys", "singleItemUnsubscribeFns", "newData", "entries", "collectionUnsubscribeFns", "fn", "maybeClonedResponse", "clone_default", "dataToUse", "convertNullsToUndefined", "contentfulSysIdFragment", "gql", "fragments", "gql", "contentfulSysIdFragment", "query", "GlobalAnimations", "data", "useContentfulQuery", "query", "useGlobalAnimations", "item", "import_react", "import_react", "import_react", "import_react", "shopifyCartKey", "initialCartState", "noop_default", "useCart", "country", "AppContext", "cart", "setCart", "setCartOpen", "cartOpen", "logEvent", "addOne", "handle", "contentfulProduct", "shopifyProducts", "currencyCode", "newLineItems", "productInCart", "bundleItems", "shopifyProduct", "ecommerceEventProducts", "title", "productHandle", "bundleItemFromCart", "bundleShopifyProduct", "setLocalStorageItem", "product", "removeOne", "cartInit", "initialCartString", "getLocalStorageItem", "initialCart", "currentCart", "Config", "import_react", "useCheckoutUrl", "userLocation", "getCurrentUrl", "currentLocale", "cookieManager", "AppContext", "cart", "products", "store", "ShopifyContext", "options", "Config", "gaCookie", "queryParams", "productsInCart", "handle", "contentfulProduct", "productHandle", "productVariant", "queryString", "key", "value", "shopifyUrl", "mergeUrlParameters", "import_react", "usePrice", "price", "userLocation", "AppContext", "currencyCode", "ShopifyContext", "contentfulProductsQuery", "gql", "contentfulSysIdFragment", "ShopifyContext", "initialCartState", "ShopifyProvider", "children", "shopifyData", "country", "AppContext", "formatMessage", "MessageContext", "featureFlags", "useFeatureFlags", "products", "cart", "useCart", "contentfulProductData", "useContentfulQuery", "contentfulProductsQuery", "Config", "calculateAtp", "available", "atp", "bufferRemainder", "weeks", "weekRange", "jsx", "Fragment", "acc", "node", "variant", "product", "atpDays", "field", "maxQuantity", "item", "contentfulProductsFromCart", "lineItemId", "uniq_default", "productHandle", "isHiddenBehindFeatureFlag", "shopifyStore", "store", "assetSizesDesc", "assetSizesAsc", "mediaQueryCss", "width", "mediaQuery", "disabledButtonCss", "css", "addToCartButtonCss", "addToCartTooltipCss", "White", "mediaQuery", "AddToCartButton", "productHandle", "showTooltip", "cart", "products", "currencyCode", "ShopifyContext", "quantityInCart", "shopifyProduct", "contentfulProduct", "relatedItems", "renderTooltip", "relatedItemInCart", "jsx", "FormattedMessage", "relatedItemHandle", "disabled", "jsxs", "Fragment", "Button", "disabledButtonCss", "addToCartTooltipCss", "AddToCart", "className", "store", "isProductAvailableInCountry", "buttonRef", "setShowTooltip", "button", "onButtonMouseEnter", "onButtonMouseLeave", "cx", "addToCartButtonCss", "import_react", "ConsumerContext", "import_forEach", "import_isNil", "filtersToUrlParams", "filters", "urlParams", "forEach", "value", "key", "isNil", "urlParamsToFilters", "params", "result", "import_react", "cartWrapperStyles", "hasItems", "css", "White", "activeWrapperCss", "mediaQuery", "cartOverlayCss", "cartOverlayActiveCss", "cartInternalCss", "cartCloseCss", "cartCloseButtonCss", "cartItemWrapperCss", "cartItemImg", "imageUrl", "buttonWrapperCss", "quantityCss", "allAccessoriesCss", "accessoryWrapperCss", "accessoryQuantityCss", "quantityWrapperCss", "accessoryNameAndPriceCss", "accessoryTitleCss", "quantityModificationCss", "quantityModificationDisabledCss", "accessoryQuantityModificationCss", "accessoryQuantityModificationDisabledCss", "titleCss", "atpCss", "priceCss", "totalCss", "checkoutButtonCss", "checkoutDisclaimerCss", "noCartItemsContainerCss", "noCartItemsTitleCss", "featuredProductImg", "featuredProductTitleCss", "featuredProductPriceCss", "featuredProductButtonCss", "cartIconButtonCss", "cartIconQuantityCss", "cartIconCss", "CartAccessory", "title", "price", "handle", "maxQuantity", "available", "cart", "products", "currencyCode", "ShopifyContext", "formattedPrice", "usePrice", "formatMessage", "MessageContext", "quantity", "accessoryPrice", "contentfulProduct", "addButtonDisabled", "removeButtonDisabled", "jsxs", "accessoryWrapperCss", "accessoryNameAndPriceCss", "jsx", "accessoryTitleCss", "quantityWrapperCss", "cx", "accessoryQuantityModificationCss", "accessoryQuantityModificationDisabledCss", "Icon", "accessoryQuantityCss", "import_react", "Price", "productPrice", "className", "price", "usePrice", "jsx", "cx", "CartItem", "image", "atpMessage", "price", "handle", "maxQuantity", "cart", "products", "currencyCode", "ShopifyContext", "contentfulProduct", "buttonDisabled", "jsxs", "cartItemWrapperCss", "jsx", "cartItemImg", "titleCss", "Price", "priceCss", "quantityWrapperCss", "quantityModificationCss", "Icon", "quantityCss", "cx", "quantityModificationDisabledCss", "atpCss", "Cart", "logEvent", "ConsumerContext", "formatMessage", "MessageContext", "cart", "products", "ShopifyContext", "featuredProductHandle", "Config", "featuredProduct", "featuredContentfulProduct", "checkoutUrl", "useCheckoutUrl", "lineItemsById", "accessories", "bundleItems", "checkoutButtonCopy", "disclaimer", "noCartItems", "isAccessory", "id", "isBundleItem", "hasItems", "totalFromCart", "acc", "handle", "total", "usePrice", "totalCopy", "onCheckoutClick", "logger", "jsxs", "cx", "cartWrapperStyles", "activeWrapperCss", "jsx", "cartOverlayCss", "cartOverlayActiveCss", "buttonWrapperCss", "cartCloseCss", "Icon", "cartCloseButtonCss", "cartInternalCss", "productHandle", "CartItem", "allAccessoriesCss", "CartAccessory", "noCartItemsContainerCss", "noCartItemsTitleCss", "Fragment", "featuredProductImg", "featuredProductTitleCss", "Price", "featuredProductPriceCss", "AddToCart", "featuredProductButtonCss", "totalCss", "checkoutButtonCss", "Button", "checkoutDisclaimerCss", "import_react", "CartIcon", "cart", "products", "ShopifyContext", "total", "acc", "lineItem", "jsxs", "cartIconButtonCss", "jsx", "cartIconQuantityCss", "Icon", "cartIconCss", "defaultBackgroundColor", "BackgroundColor", "CookiePopup", "isClient", "backgroundColor", "globalPrivacyControl", "backgroundType", "cookieDomain", "Config", "jsx", "CookieModal", "event", "onMarketingTrackingAccepted", "error", "logError", "onPerformanceTrackingAccepted", "import_react", "rtlLanguageCodes", "directionFromLocale", "locale", "currentLocale", "defaultLocale", "languageCode", "DirectionDirective", "appContext", "AppContext", "jsx", "W", "directionFromLocale", "import_react", "getFileInfo", "url", "nameAndExt", "nameAndExtArr", "extension", "isElementInViewport", "element", "rect", "isVideoDataProps", "props", "getVideoWatchLogger", "autoPlay", "eventLabel", "getPreviousWatchTime", "setPreviousWatchTime", "event", "video", "sufficientDataToPlay", "isVideoPlaying", "watchEventTimeDelta", "isVideoInViewport", "isElementInViewport", "logValue", "assetFragment", "gql", "fragments", "query", "isImageUrl", "contentType", "embeddedMediaCss", "css", "m", "Media", "props", "data", "useContentfulQuery", "query", "getImageSources", "useContentfulImages", "logEvent", "ConsumerContext", "videoPlayed", "setVideoPlayed", "prevWatchEventTime", "asset", "url", "description", "imgSrcSetSettings", "getDprSrcSetSettingsByHeight", "imgSrcs", "jsx", "onPlay", "_e", "fileName", "getFileInfo", "onTimeUpdate", "getVideoWatchLogger", "value", "fragments", "gql", "contentfulSysIdFragment", "query", "Favicon", "data", "useContentfulQuery", "query", "faviconEntry", "jsx", "W", "sys", "asset", "size", "import_react", "import_react", "PageLayoutContext", "import_react", "isContentfulSysProps", "props", "isContentfulShallow", "props", "allKeys", "key", "isContentfulSysNotShallow", "getContentfulInspectorProps", "entryId", "fieldIds", "locale", "Config", "map", "id", "mapId", "import_rich_text_react_renderer", "import_react", "Hyperlink", "uri", "children", "consumerContext", "ConsumerContext", "logEvent", "jsx", "shouldFlushLogs", "logger", "headerCss", "css", "NoHeadingH1", "children", "jsx", "cx", "primitiveElementClassNames", "h4Css", "NoHeadingH2", "h5Css", "NoHeadingH3", "p1Css", "NoHeadingH4", "p2Css", "NoHeadingH5", "p3Css", "NoHeadingH6", "p4Css", "import_rich_text_react_renderer", "import_rich_text_types", "arrayAggregator", "array", "setter", "iteratee", "accumulator", "index", "length", "value", "arrayAggregator_default", "baseAggregator", "collection", "setter", "iteratee", "accumulator", "baseEach_default", "value", "key", "baseAggregator_default", "createAggregator", "setter", "initializer", "collection", "iteratee", "func", "isArray_default", "arrayAggregator_default", "baseAggregator_default", "accumulator", "baseIteratee_default", "createAggregator_default", "keyBy", "createAggregator_default", "result", "value", "key", "baseAssignValue_default", "keyBy_default", "AssetEntryHyperlink", "props", "item", "children", "typename", "notAcceptedTypes", "slugNoUrl", "assetNoUrl", "logError", "url", "Config", "jsx", "Hyperlink", "import_react", "SuspenseWrapper", "children", "fallbackElement", "isServer", "setIsServer", "jsx", "LazyCode", "lazyComponent", "module", "Code", "props", "jsx", "SuspenseWrapper", "fragments", "gql", "contentfulSysIdFragment", "import_react", "import_react", "defaultContext", "DefinitionContext", "DefinitionProvider", "children", "isOpen", "setIsOpen", "content", "setContent", "triggerRef", "setTriggerRef", "open", "title", "body", "ref", "close", "jsx", "Definition", "displayText", "fullText", "anchorId", "overlayTitle", "overlayBody", "className", "open", "close", "triggerRef", "DefinitionContext", "ref", "isActive", "content", "renderRichTextWithElements", "handleClick", "url", "jsx", "Fragment", "import_react", "DefinitionOverlay", "className", "isOpen", "close", "content", "triggerRef", "DefinitionContext", "handleClose", "e", "url", "jsx", "SideOverlay", "footnoteInlineNoDisplayTextCss", "css", "footnoteInlineSuperscriptCss", "footnoteInlineSuperscriptOverlayCss", "FootnoteInline", "number", "displayText", "fullText", "props", "footnoteDisplayText", "jsxs", "Fragment", "jsx", "footnoteInlineSuperscriptCss", "Superscript", "overlayBody", "footnoteInlineSuperscriptOverlayCss", "renderRichTextWithElements", "Definition", "footnoteInlineNoDisplayTextCss", "combineImageSources", "sources", "source", "parseMedia", "media", "imageQuality", "Image", "props", "quality", "dataset", "imageSource", "imageAltText", "parseMedia", "mobileImageSource", "getImageSources", "useContentfulImages", "imgSrcs", "combineImageSources", "getDprSrcSetSettingsByHeight", "jsx", "Media", "fragments", "gql", "query", "isImageDataProps", "props", "fragments", "gql", "contentfulSysIdFragment", "query", "isNull", "value", "isNull_default", "Quote", "props", "needsLoading", "isContentfulShallow", "data", "useContentfulQuery", "query", "authorName", "body", "jsx", "isNull_default", "renderRichTextMultiLineWithMarkings", "snapchatEmbedFragment", "gql", "contentfulSysIdFragment", "query", "SnapchatEmbedShallow", "props", "id", "isContentfulSysProps", "data", "useContentfulQuery", "query", "jsx", "SnapchatEmbed", "fragments", "gql", "contentfulSysIdFragment", "query", "import_react", "getMediaProps", "video", "getBestImgSrc", "media", "mobileMedia", "thumbnailMedia", "autoPlay", "wrap", "captions", "videoSource", "parseMedia", "mobileVideoSource", "posterSource", "isNil_default", "Video", "props", "id", "isContentfulSysProps", "data", "useContentfulQuery", "query", "videoPlayed", "setVideoPlayed", "getBestBgImgSrc", "useContentfulImages", "prevWatchEventTime", "consumerContext", "ConsumerContext", "logEvent", "mediaProps", "onPlay", "_e", "fileName", "getFileInfo", "onTimeUpdate", "getVideoWatchLogger", "value", "jsx", "Media", "richTextCtaClassName", "EmbeddedMedia", "props", "heightPx", "useIsMobile", "jsx", "Media", "getImageUrl", "CallToActionWrapper", "CallToAction", "contentfulComponentMap", "FootnoteInline", "Quote", "SnapchatEmbedShallow", "Image", "Video", "Code", "Definition", "defaultMarkRenderer", "text", "defaultNodeRenderer", "node", "children", "jsx", "Fragment", "logError", "getRichTextMarkRenderer", "Component", "getRichTextNodeRenderer", "getEmbeddedEntryNodeRenderer", "contentfulComponentMap", "entries", "entriesById", "keyBy_default", "entry", "entryId", "typename", "isRichText", "data", "getEmbeddedNodeRenderer", "props", "accessPath", "nodeRenderer", "linkedEntries", "get_default", "getHyperlinkedNodeRenderer", "linkedItems", "item", "AssetEntryHyperlink", "getRichTextOptions", "components", "blockEmbeddedAssetNodeRenderer", "inlineEmbeddedEntryNodeRenderer", "blockEmbeddedEntryNodeRenderer", "hyperlinkedAssetNodeRenderer", "hyperlinkedEntryNodeRenderer", "createRichTextRenderer", "options", "import_react", "maxWidthCss", "css", "RichTextDocument", "children", "jsx", "noMarginCss", "RichTextNoPaddingParagraph", "init_Symbol", "spreadableSymbol", "Symbol_default", "isFlattenable", "value", "isArray_default", "isArguments_default", "isFlattenable_default", "baseFlatten", "array", "depth", "predicate", "isStrict", "result", "index", "length", "isFlattenable_default", "value", "arrayPush_default", "baseFlatten_default", "flatMap", "collection", "iteratee", "baseFlatten_default", "map_default", "flatMap_default", "convertNewLineToBr", "text", "flatMap_default", "i", "jsx", "retainLtrText", "textSegment", "index", "unescape_default", "renderMultiLineText", "textWithLineBreaks", "RichTextWithElementsComponents", "RichTextDocument", "renderMultiLineText", "Bold", "Italics", "Underline", "H1", "H2", "H3", "H4", "H5", "H6", "Paragraph", "Hyperlink", "ListItem", "UnorderedList", "OrderedList", "NoCollapseTableMobile", "PrimitiveTableCell", "PrimitiveTableHeader", "PrimitiveTableRow", "HorizontalRule", "renderRichText", "data", "renderRichTextMarkingsOnly", "createRichTextRenderer", "renderRichTextMultiLineWithMarkings", "RichTextNoPaddingParagraph", "renderRichTextWithElements", "renderRichTextWithElementsNoHeadings", "NoHeadingH1", "NoHeadingH2", "NoHeadingH3", "NoHeadingH4", "NoHeadingH5", "NoHeadingH6", "getRichTextWithEmbeddingsRenderer", "useHeadingTagsForBody", "collapseMobileTable", "CollapseTableMobile", "import_react", "useConsumerContext", "context", "ConsumerContext", "Button", "props", "url", "onClick", "buttonType", "title", "size", "image", "iconName", "targetAsset", "className", "buttonTextDataset", "logEvent", "useConsumerContext", "getImageSources", "useContentfulImages", "onClickHandler", "shouldFlushLogs", "logger", "type", "ButtonType", "imgSrcs", "jsx", "renderRichTextMarkingsOnly", "buttonFragment", "gql", "fragments", "contentfulSysIdFragment", "fragments", "gql", "contentfulSysIdFragment", "query", "ctaFragment", "gql", "buttonFragment", "contentfulSysIdFragment", "fragments", "query", "CallToAction", "props", "consumerContext", "ConsumerContext", "rawData", "useContentfulQuery", "query", "isContentfulSysNotShallow", "data", "presentation", "analytics", "url", "className", "logEvent", "label", "onClick", "buttonData", "titleDataset", "getContentfulInspectorProps", "jsx", "Button", "import_react", "imageButtonFragment", "gql", "contentfulSysIdFragment", "fragments", "query", "LazyImageButton", "props", "data", "useContentfulQuery", "query", "getImageSources", "useContentfulImages", "image", "imageSource", "imageAltText", "parseMedia", "imgSrcs", "jsx", "ImageButton", "mediaStylesCss", "css", "nonMobileMediaQuery", "mediaOnlyCss", "mobileMediaQuery", "Content", "props", "videoPlayed", "setVideoPlayed", "getImageSources", "useContentfulImages", "consumerContext", "ConsumerContext", "isRTL", "AppContext", "logEvent", "sys", "mediaWrap", "showVideoControls", "layout", "mediaDirection", "displayOn", "asset", "title", "subtitle", "titleAlignment", "titleAlignmentMobile", "showFullResolutionMedia", "body", "bodyAlignment", "bodyAlignmentMobile", "callsToActionCollection", "theme", "backgroundColor", "anchorId", "animationsCollection", "useHeadingTagsForBody", "collapseMobileTable", "isMediaOnly", "renderBody", "getRichTextWithEmbeddingsRenderer", "assetMedia", "mobileAssetMedia", "imageSource", "imageAltText", "videoSource", "imageSize", "parseMedia", "mobileImageSource", "mobileVideoSource", "inspectorDataset", "getContentfulInspectorProps", "callsToAction", "callToAction", "jsx", "LazyImageButton", "CallToAction", "defaultHeight", "imgSrcSetSettings", "getDprSrcSetSettingsByHeight", "imgSrcs", "combineImageSources", "mediaHeight", "prevWatchEventTime", "onPlay", "fileName", "getFileInfo", "assetChild", "typeName", "onTimeUpdate", "getVideoWatchLogger", "value", "assetMediaWrap", "thumbnailMedia", "captions", "autoPlay", "media", "videoAltText", "posterSource", "showVideoControlsFinal", "isNil_default", "isStrictHeight", "mediaClassName", "cx", "mediaOnlyCss", "mediaStylesCss", "Media", "SnapchatEmbed", "animations", "item", "renderRichTextMultiLineWithMarkings", "definitionFragment", "gql", "contentfulSysIdFragment", "query", "Footnote", "props", "number", "fullText", "jsx", "renderRichTextWithElements", "fragments", "gql", "contentfulSysIdFragment", "query", "contentAssetFragment", "gql", "contentfulSysIdFragment", "fragments", "snapchatEmbedFragment", "assetFragment", "ctaFragment", "definitionFragment", "queries", "blockAllFragment", "gql", "contentfulSysIdFragment", "ctaFragment", "fragments", "blockPreviewFragment", "blockFragmentShallow", "query", "criteriaFragment", "gql", "contentfulSysIdFragment", "experimentSitemapFragment", "createExperimentFragmentWithAbReplacements", "entryType", "fragmentName", "fragment", "armLimit", "blockFragmentShallow", "createExperimentFragmentNoAb", "import_react", "import_react", "adler32", "source", "alpha", "beta", "i", "component", "useAbExperiments", "getUserInfo", "getCurrentUrl", "AppContext", "needsDecision", "setNeedsDecision", "userInfo", "useAsyncData", "error", "logger", "ab", "decideAbExperimentImpl", "context", "seededBucket", "userTrafficPercentile", "adler32", "Config", "userBucketParameter", "userBucket", "variant", "isNil_default", "import_react", "_WeakRefPolyfill", "ref", "__publicField", "WeakRefPolyfill", "maxHistory", "areEqual", "deps", "previousDeps", "dep", "i", "previousDep", "mapDep", "singleCallback", "key", "callback", "dependencies", "cache", "previousCalls", "previous", "SingleCallbackCacheContext", "useSingleCallback", "cache", "args", "singleCallback", "printDebugStatements", "printDebugSkip", "analyticsId", "what", "where", "action", "useExperiment", "currentLocale", "userLocation", "getCurrentUrl", "AppContext", "browserFeatures", "BrowserFeaturesContext", "singleCallback", "useSingleCallback", "decideAbExperiment", "useAbExperiments", "language", "country", "platform", "deviceType", "checkCriteria", "value", "doesPassCriteria", "options", "decideExperimentImpl", "doesFailCheck", "array", "value", "action", "doesPassCriteria", "criteria", "props", "analyticsId", "printDebugSkip", "decideExperimentImpl", "options", "logEvent", "experiment", "chosenArmAnalyticsId", "reference", "replacements", "singleCallback", "arm", "armHasAbExperiment", "abExperiments", "abExperiment", "entryToReplace", "madeReplacement", "isThinking", "experimentArm", "logInfo", "kebabCase_default", "socialPictureCss", "css", "socialAnchorCss", "logoWrapperCss", "m", "nonMobileMediaQuery", "convertToGenericProps", "item", "cookieSettingsUrl", "filterCriteria", "filterFunc", "collection", "filterAndMapItems", "items", "outputItems", "inputItem", "genericItem", "groups", "outputGroups", "inputGroup", "Footer", "cookieSettingsUrl", "footerView", "PageLayoutContext", "getImageSources", "useContentfulImages", "sitewideValues", "SitewideConfigurationContext", "checkCriteria", "useExperiment", "showSimpleFooter", "noFooter", "footerType", "isVisible", "item", "customFooter", "filteredFooterColumnsCollection", "filterCriteria", "filteredFooterBarCollection", "footerSocial", "jsx", "FooterSocial", "footerSocialItem", "i", "image", "height", "sys", "url", "width", "ImageButton", "socialPictureCss", "socialAnchorCss", "customLogo", "footerLogo", "imgSrcs", "logoUrl", "logo", "Media", "Anchor", "logoWrapperCss", "GlobalFooter", "HardcodedComponents", "Config", "jsx", "import_react", "NavigationCta", "props", "checkCriteria", "useExperiment", "displayMode", "matchesDisplayMode", "shouldShow", "jsx", "CallToAction", "navigationCtaFragment", "gql", "criteriaFragment", "contentfulSysIdFragment", "ctaFragment", "query", "GlobalHeaderCta", "displayRegion", "callsToAction", "isMobile", "useIsMobile", "displayMode", "navigationCta", "cta", "ctaProps", "cloneDeep_default", "buttonProps", "Size", "ButtonType", "jsx", "NavigationCta", "CallToAction", "Fragment", "import_react", "GlobalHeaderLogo", "sitewideValues", "SitewideConfigurationContext", "localNavProps", "getImageSources", "useContentfulImages", "url", "logo", "imgSrcs", "combineImageSources", "jsx", "Fragment", "Logo", "import_react", "GlobalHeaderSearch", "setSearchOpen", "autocompleteProps", "formatMessage", "MessageContext", "pathname", "useLocation", "onRedirect", "AppContext", "onSeeResults", "term", "jsx", "AutoComplete", "noop_default", "open", "import_rich_text_plain_text_renderer", "logLocalNavDesktopClick", "url", "label", "logEvent", "LocalNavDesktop", "items", "getItemDesktopProps", "props", "id", "analyticsId", "title", "isSelected", "contentfulDescriptionDataset", "getContentfulInspectorProps", "shouldFlushLogs", "logger", "jsx", "Fragment", "item1", "ItemDesktop", "item2", "item3", "import_react", "import_rich_text_plain_text_renderer", "import_react", "LocalNavItemMobile", "props", "logEvent", "useConsumerContext", "getCurrentUrl", "AppContext", "analyticsId", "url", "title", "isSelected", "subItems", "dataset", "onClick", "shouldFlushLogs", "logger", "absoluteUrl", "isLocal", "isLocalUrl", "jsx", "GlobalNavItem", "contentfulDescriptionDataset", "getContentfulInspectorProps", "LocalNavMobile", "items", "setGroupKey", "GlobalHeaderContext", "defaultGlobalNavMobileGroupKey", "jsx", "Fragment", "props", "contentfulDescriptionDataset", "getContentfulInspectorProps", "LocalNavItemMobile", "globalHeaderSearchContainerDesktopOpenCss", "css", "globalHeaderSearchContainerMobileCss", "searchOpenCss", "siteNameCss", "m", "headerContainerCss", "ZIndex", "noMarginCss", "convertToPathAwareNavItems", "items", "isUrlCurrent", "checkCriteria", "maxDepth", "output", "item", "node", "convertNavItemsInternal", "parents", "parent", "child", "ancestors", "subItem", "import_react", "import_react_dom", "headerPortalId", "HeaderPortal", "props", "headerPortalRef", "AppContext", "jsx", "IntoHeaderPortal", "children", "headerHeight", "setHeaderHeight", "height", "totalHeaderHeightCssVar", "getHeaderHeightFromCssVar", "Header", "config", "searchOpen", "setSearchOpen", "location", "useLocation", "checkCriteria", "useExperiment", "headerView", "headerBackgroundColorOverride", "PageLayoutContext", "sitewideValues", "SitewideConfigurationContext", "featureFlags", "useFeatureFlags", "enableSearchFeature", "isUrlCurrent", "useConsumerContext", "localNavProps", "callsToActionCollection", "navigatorItemsCollection", "hasCtas", "pathAwareNavItems", "convertToPathAwareNavItems", "headerContainerRef", "resizeObserver", "lastSize", "entries", "height", "totalHeaderHeightCssVar", "setHeaderHeight", "endChildren", "jsxs", "Fragment", "jsx", "GlobalHeaderCta", "HeaderPortal", "noMarginCss", "Config", "CartIcon", "siteName", "GlobalHeader", "GlobalHeaderLogo", "siteNameLink", "Anchor", "siteNameCss", "shouldRenderSearch", "cx", "headerContainerCss", "searchOpenCss", "LocalNavDesktop", "LocalNavMobile", "GlobalHeaderSearch", "globalHeaderSearchContainerDesktopOpenCss", "globalHeaderSearchContainerMobileCss", "import_react", "messageFragment", "gql", "contentfulSysIdFragment", "intlProviderQuery", "IntlProvider", "children", "context", "useContentfulContext", "globalApolloClient", "GlobalComponentsContext", "localData", "useContentfulQuery", "intlProviderQuery", "globalData", "useGlobalComponentsContentfulQuery", "Config", "globalMessages", "m", "localMessages", "jsx", "MessageContext", "defaultFormatMessage", "messages", "formatMessage", "message", "vars", "formattedValue", "key", "value", "import_react", "languageFromLocale", "locale", "currentLocale", "defaultLocale", "languageCode", "LanguageDirective", "appContext", "AppContext", "jsx", "W", "languageFromLocale", "import_react", "import_cross_fetch", "NoOpTracer", "__publicField", "_name", "noop_default", "_callback", "tracer", "NoOpTracer", "getTracer", "setTracer", "tracerImpl", "startFetchEventListeners", "endFetchEventListeners", "customFetch", "input", "init", "resolve", "reject", "listener", "trace", "getTracer", "controller", "Config", "isRejected", "contentfulRequestTimeoutMs", "timeoutMs", "abortTimeout", "initWithAbort", "fetch", "value", "error", "LoadingBar", "loadingCount", "setLoadingCount", "startCallBack", "endCallBack", "requestIdleCallback", "startFetchEventListeners", "endFetchEventListeners", "jsx", "import_isEqual", "import_react", "useImperativeEffect", "callback", "dependencies", "lastExecutionDependencies", "useRef", "useEffect", "isEqual", "__name", "LogAdBlockUsage", "m", "ensureSingleScript", "noop_default", "hasAdBlocker", "isNil_default", "logInfo", "import_react", "sanitizeCspResource", "resource", "url", "ignoredBlockedUriBySourcePrefix", "Config", "LogCspViolation", "reported", "listener", "e", "blockedURI", "violatedDirective", "sourceFile", "key", "sourceFilePrefix", "logError", "sanitizeCspResource", "init_isObject", "baseSet", "object", "path", "value", "customizer", "isObject_default", "castPath_default", "index", "length", "lastIndex", "nested", "key", "toKey_default", "newValue", "objValue", "isIndex_default", "assignValue_default", "baseSet_default", "basePickBy", "object", "paths", "predicate", "index", "length", "result", "path", "value", "baseGet_default", "baseSet_default", "castPath_default", "basePickBy_default", "basePick", "object", "paths", "basePickBy_default", "value", "path", "hasIn_default", "basePick_default", "flatten", "array", "length", "baseFlatten_default", "flatten_default", "flatRest", "func", "setToString_default", "overRest_default", "flatten_default", "flatRest_default", "pick", "flatRest_default", "object", "paths", "basePick_default", "pick_default", "logTimingEvents", "windowTimingEntries", "timing", "keysToLog", "eventVariable", "eventValue", "pick_default", "logValue", "logTiming", "LogPageLoad", "m", "logEvent", "listener", "init_debounce", "init_isObject", "FUNC_ERROR_TEXT", "throttle", "func", "wait", "options", "leading", "trailing", "isObject_default", "debounce_default", "throttle_default", "import_react", "logScrollDepthBreakPoints", "LogScrollDepth", "pathname", "useLocation", "maxScrollDepth", "currScrollDepth", "setCurrScrollDepth", "listener", "throttle_default", "scrollY", "scrollHeight", "scrollDepth", "roundedScrollDepth", "m", "i", "breakpoint", "nextBreakpoint", "isLastBreakpoint", "logValue", "import_react", "customBlueMotif", "mergeMotifs", "defaultMotif", "m", "customGreenMotif", "mergeMotifs", "defaultMotif", "m", "MotifRootWrapper", "children", "motif", "passThroughProps", "getCurrentUrl", "AppContext", "finalMotif", "useAlternateMotif", "Config", "customGreenMotif", "customBlueMotif", "jsx", "MotifRoot", "StyleHacks", "m", "Config", "snapHeaderBackgroundVar", "import_react", "Viewport", "features", "BrowserFeaturesContext", "viewport", "jsx", "W", "import_react", "PageLayoutProvider", "sessionValue", "children", "footerView", "setFooterView", "headerView", "setHeaderView", "headerBackgroundColorOverride", "setHeaderBackgroundColorOverride", "pageContext", "bgColor", "jsx", "PageLayoutContext", "footerItemFragment", "gql", "contentfulSysIdFragment", "criteriaFragment", "footerLocaleDropdownFragment", "footerCookiesSettingsLinkFragment", "footerGroupFragment", "customFooterFragment", "imageButtonFragment", "fragments", "customFooterQuery", "navigatorItemFragment", "gql", "fragments", "contentfulSysIdFragment", "criteriaFragment", "navigatorFragment", "ctaFragment", "navigationCtaFragment", "navigatorCollectionQuery", "navigatorItemRichTitleFragment", "gql", "fragments", "contentfulSysIdFragment", "criteriaFragment", "sitewideValuesFragment", "sitewideConfigurationFragment", "navigatorFragment", "customFooterFragment", "navigationCtaFragment", "navigatorItemFragment", "ctaFragment", "footerGroupFragment", "footerCookiesSettingsLinkFragment", "footerLocaleDropdownFragment", "footerItemFragment", "sitewideConfigurationQuery", "isEntry", "value", "isCollection", "maxDepth", "replaceEntries", "entry", "replacementMap", "depth", "returnVal", "clone_default", "key", "newItems", "item", "SitewideConfigurationProvider", "children", "decideAbExperiment", "useAbExperiments", "data", "useContentfulQuery", "sitewideConfigurationQuery", "singleCallback", "useSingleCallback", "reference", "head_default", "finalValues", "isThinking", "variant", "replacement", "finalReplacement", "logInfo", "cloneDeep_default", "processedFinalValues", "jsx", "SitewideConfigurationContext", "import_react", "error500Css", "css", "Error500", "jsxs", "jsx", "ErrorBoundary", "props", "error", "errorInfo", "trace", "customFetch", "_", "logError", "children", "hasError", "jsx", "Error500", "fontLinkToCheck", "fontLinkAlternative", "canLoadFonts", "error", "l", "FontChecker", "m", "canLoad", "newLink", "nativeProps", "importDefault", "maybeModule", "targetImport", "result", "current", "i", "defaultExport", "prop", "__name", "BlizzardClientEventListener", "_a", "AbstractEventListener", "props", "blizzardImport", "blizzard", "p", "initBlizzard", "logEvent", "CollectionMode", "event", "context", "formattedEvents", "formattedEventsArray", "formattedEvent", "__name", "formatWebPlatformEvent", "_context", "uri", "data", "LoggingEventType", "error", "l", "getCommonBlizzardClientEventListener", "ConsoleClientEventListener", "ConsoleEventListener", "type", "message", "firstMessage", "firstMessageWithColor", "addGa4EventCallback", "callback", "gtag", "_args", "GoogleAnalytics4ClientEventListener", "AbstractDataLayerEventListener", "ga4Script", "gtmScriptId", "addGtmEventCallback", "GoogleTagManagerClientEventListener", "gtmScript", "GrapheneClientEventListener", "AbstractGrapheneEventListener", "options", "FetchNetworkHandler", "Graphene", "matchAllRequests", "SentryClientEventListener", "AbstractSentryEventListener", "SnapSentry", "importDefault", "captureException", "init", "googleAnalyticsEventName", "googleAnalyticsValueEventName", "googleAnalyticsTimingEventName", "GoogleEventListener", "_GoogleEventListener", "GoogleTagManagerClientEventListener", "props", "__publicField", "superHasAllPermissions", "permission", "response", "error", "l", "data", "event", "_context", "LoggingEventType", "import_react", "import_react", "fragments", "gql", "contentfulSysIdFragment", "queries", "Accordion", "props", "id", "isContentfulSysProps", "data", "useContentfulQuery", "queries", "titleDataset", "getContentfulInspectorProps", "jsx", "item", "AccordionItem", "renderRichTextMarkingsOnly", "Content", "fragments", "gql", "contentfulSysIdFragment", "query", "verticalPaddingCss", "css", "nonMobileMediaQuery", "AnimatedAccordion", "props", "data", "useContentfulQuery", "query", "accordionContentsCollection", "mediaDirection", "autoPlaySpeedSecs", "textAlignmentMobile", "Alignment", "getImageSources", "useContentfulImages", "items", "item", "imageSource", "imageAltText", "parseMedia", "renderRichTextMarkingsOnly", "renderRichTextWithElements", "jsx", "import_react", "import_react", "portraitCardImgSrcSetSizes", "cardWidths", "landscapeCardImgSrcSetSizes", "width", "mobileMaxWidth", "CarouselV3ImageItem", "cardItem", "mediaAspectRatio", "isVisible", "shouldLoad", "otherProps", "imageMedia", "imageSource", "imageAltText", "parseMedia", "mobileImageSource", "getImageSources", "useContentfulImages", "logEvent", "ConsumerContext", "imageSrcSettings", "imageQuality", "imgSrcs", "combineImageSources", "url", "onClick", "shouldFlushLogs", "logger", "jsx", "CarouselCardItem", "import_react", "CarouselV3TextItem", "textItem", "description", "renderRichText", "subtext", "slug", "url", "consumerContext", "ConsumerContext", "logEvent", "jsx", "CarouselTextItem", "import_react", "CarouselV3VideoItem", "cardItem", "mediaAspectRatio", "enableVideoControls", "isVisible", "shouldLoad", "otherProps", "videoPlayed", "setVideoPlayed", "prevWatchEventTime", "consumerContext", "ConsumerContext", "logEvent", "videoMedia", "getBestBgImgSrc", "useContentfulImages", "posterSource", "videoSource", "parseMedia", "mobileVideoSource", "onPlay", "_e", "fileName", "getFileInfo", "onTimeUpdate", "getVideoWatchLogger", "value", "url", "onClick", "shouldFlushLogs", "logger", "jsx", "CarouselCardItem", "carouselItemFragments", "gql", "contentfulSysIdFragment", "fragments", "carouselV3Query", "noShadowCss", "css", "CarouselV3", "props", "isRTL", "AppContext", "getCurrentUrl", "url", "pauseAnimations", "Config", "data", "useContentfulQuery", "carouselV3Query", "carouselItemsType", "contentsCollection", "mediaAspectRatio", "items", "singleView", "jsx", "item", "cardItem", "hasVideo", "autoPlay", "enableVideoControls", "shadowCss", "CarouselV3VideoItem", "CarouselV3ImageItem", "textItem", "CarouselV3TextItem", "ContentShallow", "props", "data", "useContentfulQuery", "queries", "jsx", "Content", "init_debounce", "import_react", "import_react", "arkosePublicDevKey", "arkosePublicProdKey", "globalMyEnforcement", "useArkose", "nonce", "onReady", "onCompleted", "onError", "onReset", "myEnforcementRef", "enableArkose", "arkoseDevKey", "arkosePublicDevKey", "arkoseProdKey", "arkosePublicProdKey", "publicKey", "Config", "scriptId", "customArkoseClient", "setMyEnforcementConfig", "myEnforcement", "response", "setMyEnforcementRef", "setupEnforcement", "attributes", "ensureSingleScript", "import_rich_text_react_renderer", "last", "array", "length", "last_default", "parent", "object", "path", "baseGet_default", "baseSlice_default", "parent_default", "baseUnset", "object", "path", "castPath_default", "parent_default", "toKey_default", "last_default", "baseUnset_default", "customOmitClone", "value", "isPlainObject_default", "customOmitClone_default", "CLONE_DEEP_FLAG", "CLONE_FLAT_FLAG", "CLONE_SYMBOLS_FLAG", "omit", "flatRest_default", "object", "paths", "result", "isDeep", "arrayMap_default", "path", "castPath_default", "copyObject_default", "getAllKeysIn_default", "baseClone_default", "customOmitClone_default", "length", "baseUnset_default", "omit_default", "countryCodeToName", "sortedEntries", "a", "b", "sortedCountries", "presetDropdowns", "name", "code", "getFormField", "form", "fieldName", "row", "field", "utmParameterFieldMap", "getFormExtraParameters", "input", "currentUrl", "config", "item", "searchParams", "output", "key", "parameter", "getFormQueryParams", "params", "url", "rawParams", "_value", "updatedKey", "value", "formBody", "multiValues", "val", "optionName", "singleValue", "buttonContainerCss", "css", "mediaQuery", "FieldByType", "field", "submitText", "submitSuccessText", "submitTextDataset", "submitProps", "fieldInitialValue", "typename", "inputInspectorProps", "getContentfulInspectorProps", "error", "richLabel", "initialValue", "jsx", "Input", "dropdownDatasets", "optionCollectionItems", "contentfulInitialValue", "allValues", "value", "initialSelectValue", "Select", "omit_default", "key", "item", "options", "MultiSelectDropdown", "presetOptions", "presetDropdowns", "handleSubmit", "disabled", "loading", "submitSuccess", "Button", "hiddenCss", "css", "defaultRedirectTimeout", "formKey", "FormRow", "rowAsText", "sys", "fieldsCollection", "fieldRender", "rowAsTextDataset", "getContentfulInspectorProps", "jsx", "renderRichTextWithElementsNoHeadings", "makeFormChildrenRenderer", "rowsCollection", "submitText", "submitSuccessText", "submitTextDataset", "formInitialOverrides", "submitProps", "Fragment", "item", "FieldByType", "Form", "additionalFeaturesCollection", "analytics", "redirectUrl", "endpoint", "responseType", "redirectTimeout", "extraParams", "callback", "enableArkose", "Config", "arkosePublicDevKey", "arkosePublicProdKey", "persistFieldEdits", "prepopulatePerQueryParams", "onFormInit", "onValueChange", "rest", "initalFormValues", "setInitialFormValues", "allFormLocalStorageRef", "userLocation", "currentLocale", "getCurrentUrl", "AppContext", "country", "initialFormBody", "allLocalStorageForms", "getLocalStorageItem", "merge_default", "currentUrl", "queryParamsValues", "getFormQueryParams", "fieldName", "getFormField", "key", "value", "logEvent", "ConsumerContext", "arkoseRef", "arkosePromiseResolveRef", "arkosePromiseRejectRef", "useArkose", "token", "error", "logger", "formatMessage", "MessageContext", "on400ResponseMessage", "on500ResponseMessage", "onInvalidClientSideSubmissionMessage", "formDownloadUrl", "setDownloadUrl", "anchorTag", "onSubmitSuccess", "response", "formBody", "formRedirectUrl", "data", "setLocalStorageItem", "logError", "onSubmitFailure", "_formBody", "_response", "hasSubmitButton", "typename", "persistentFormFields", "rowsAsJson", "submitTextDatasetAsJson", "persistFormFieldsAsJson", "FormChildrenRenderer", "formRows", "getArkoseToken", "resolve", "reject", "onFormValueChange", "debounce_default", "lastChangedFieldName", "isInit", "logUserEvent", "finalExtraParams", "getFormExtraParameters", "jsxs", "formRowFragment", "gql", "contentfulSysIdFragment", "extraParametersFormFeatureFragment", "formFragments", "fragments", "queries", "FormShallow", "props", "data", "useContentfulQuery", "queries", "jsx", "Form", "import_react", "galleryTagsPrefix", "GalleryTilesSorting", "defaultTileSorting", "import_react", "import_react", "forcedArabicLocale", "useFormatDate", "currentLocale", "AppContext", "date", "dateFormatOptions", "effectiveLocale", "mobileSummaryCardHeight", "summaryCardHeroHeight", "summaryCardHeroCss", "css", "nonMobileMediaQuery", "globalDefaultImage", "defaultImagAltText", "defaultDateOptions", "imageHeights", "galleryImgSrcSetSizes", "height", "mobileMaxWidth", "SummaryCard", "analytics", "date", "label", "media", "showDates", "showDescriptions", "showMedia", "slugReference", "sys", "title", "url", "isHeroTile", "eyebrowText", "formatDate", "useFormatDate", "logEvent", "ConsumerContext", "getImageSources", "useContentfulImages", "validUrl", "logEventAction", "imageSource", "imageAltText", "parseMedia", "mobileImageSource", "imageSrcSettings", "imgSrcs", "combineImageSources", "contentfulDescriptionDataset", "titleDataset", "labelDataset", "mediaDataset", "dateDataset", "getContentfulInspectorProps", "jsx", "renderRichTextMarkingsOnly", "renderRichText", "cx", "summaryCardHeroCss", "fragments", "gql", "criteriaFragment", "contentfulSysIdFragment", "queries", "galleryDropdownItemFragment", "gql", "contentfulSysIdFragment", "galleryDropdownFragment", "galleryFragment", "fragments", "lazyGalleryQuery", "tileCollectionQuery", "galleryWidth", "galleryWidths", "imgWidth", "screenWidths", "w", "blockPadding", "mediaQueries", "width", "idx", "prevWidth", "galleryWrapperCss", "css", "m", "totalHeaderHeightCssVar", "galleryPlaceholderCss", "h3Css", "buttonWrapperCss", "LazyTiles", "emptyPlaceholder", "tiles", "emptyPlaceholderDataset", "showDates", "showDescriptions", "showMedia", "isGalleryLoading", "defaultTileImage", "numberOfTiles", "tileIds", "tile", "data", "loading", "useContentfulQuery", "tileCollectionQuery", "sortedItems", "a", "b", "jsx", "GalleryGridV2", "_", "index", "SkeletonSummaryCard", "Fragment", "SummaryCard", "galleryPlaceholderCss", "dataSetToAttributes", "import_react", "useGalleryTiles", "galleryId", "page", "tags", "pageSize", "sortBy", "defaultTileSorting", "appContext", "AppContext", "browserFeatures", "BrowserFeaturesContext", "previousTotal", "params", "platform", "device", "url", "Config", "data", "isLoading", "useAsyncData", "error", "logger", "buildSearchMenus", "dropdowns", "galleryPaginationEnabled", "matchAllOptionsTitle", "dropdownItemsCollection", "title", "sys", "contentfulDescriptionDataset", "getContentfulInspectorProps", "galleryTagsPrefix", "kebabCase_default", "contentfulMetadata", "itemId", "t", "a", "b", "handleScroll", "gallery", "totalHeaderHeight", "totalHeaderHeightCssVar", "galleryTop", "scrollY", "Gallery", "props", "galleryId", "getUrlParams", "setUrlParams", "ConsumerContext", "onRedirect", "getCurrentUrl", "AppContext", "query", "page", "setPage", "dropdownFilters", "buildSearchMenus", "dropdownFiltersIds", "dropdown", "tilesTags", "setTilesTags", "pick_default", "searchParams", "newFilters", "newPage", "paginationData", "isLoading", "useGalleryTiles", "galleryRef", "onChangeFilter", "filterKey", "filterValue", "cloneDeep_default", "currentQuery", "otherParams", "omit_default", "onChangePage", "newUrlParams", "clearFilters", "mobileFiltersWrapperTextDataset", "clearFiltersCtaCopyDataset", "emptyPlaceholderDataset", "getContentfulInspectorProps", "Config", "queryRedirectsKeys", "key", "requestUrl", "url", "value", "galleryTagsPrefix", "jsxs", "galleryWrapperCss", "jsx", "GalleryFiltersV2", "LazyTiles", "Pagination", "LazyGallery", "props", "galleryId", "galleryData", "useContentfulQuery", "lazyGalleryQuery", "gallery", "jsx", "Gallery", "import_react", "Mosaic", "props", "consumerContext", "ConsumerContext", "getBestBgImgSrc", "getImageSources", "useContentfulImages", "logEvent", "tilesCollection", "columns", "mobileColumns", "filtersCollection", "tiles", "video", "preview", "thumbnail", "analytics", "item", "poster", "label", "component", "i", "getMediaProps", "filters", "sys", "isAll", "filter", "jsx", "fragments", "gql", "contentfulSysIdFragment", "query", "MosaicShallow", "props", "data", "useContentfulQuery", "query", "jsx", "Mosaic", "import_react", "SlugContext", "fragments", "gql", "buttonFragment", "contentfulSysIdFragment", "queries", "Tabs", "props", "data", "useContentfulQuery", "queries", "itemsCollection", "onSelectTab", "index", "logUserEvent", "items", "item", "content", "contentDataProps", "key", "jsx", "FormShallow", "ContentShallow", "renderRichTextMarkingsOnly", "TabsV2", "import_react", "LazyBarChart", "lazyComponent", "module", "BarChart", "props", "chartData", "yAxis", "xAxes", "stackKey", "filters", "width", "height", "hideXAxisLabels", "hideYAxisLabels", "hideXPercentLabels", "hideLegend", "chartTitle", "dataColors", "showAsPercent", "numberOfDecimalPlaces", "isRTL", "AppContext", "rawData", "getRawData", "jsx", "SuspenseWrapper", "ChartSkeleton", "seriesFragment", "gql", "chartDataFragment", "contentfulSysIdFragment", "fragments", "gql", "contentfulSysIdFragment", "chartDataFragment", "queries", "BarChartShallow", "props", "id", "isContentfulSysProps", "data", "loading", "useContentfulQuery", "queries", "jsx", "ChartSkeleton", "chartData", "xAxes", "BarChart", "import_react", "import_react", "LazyGeoMap", "lazyComponent", "module", "topographyDataEndpoint", "GeoMap", "props", "chartTitle", "chartData", "width", "countryCodeKey", "valueKey", "dataScalingMethod", "topographyData", "setTopographyData", "currentLocale", "AppContext", "fetchTopographyData", "data", "customFetch", "error", "logError", "rawData", "getRawData", "jsx", "SuspenseWrapper", "ChartSkeleton", "fragments", "gql", "contentfulSysIdFragment", "chartDataFragment", "queries", "GeoMapShallow", "props", "id", "isContentfulSysProps", "data", "loading", "useContentfulQuery", "queries", "jsx", "ChartSkeleton", "chartData", "valueKey", "GeoMap", "LazyLineChart", "lazyComponent", "module", "getAccessors", "yAxisKeys", "xAxisKey", "accessors", "yKey", "row", "LineChart", "props", "chartData", "curve", "xKey", "yKeys", "chartTitle", "rawData", "getRawData", "jsx", "SuspenseWrapper", "ChartSkeleton", "fragments", "gql", "contentfulSysIdFragment", "chartDataFragment", "queries", "LineChartShallow", "props", "id", "isContentfulSysProps", "data", "loading", "useContentfulQuery", "queries", "jsx", "ChartSkeleton", "chartData", "yKeys", "LineChart", "fragments", "gql", "contentfulSysIdFragment", "chartDataFragment", "queries", "import_react", "dataFormatDate", "LazyTableVisualization", "lazyComponent", "module", "getRowDataForKey", "series", "row", "key", "locale", "properties", "data", "dataType", "dataFormat", "getColumns", "columns", "propertyKeys", "column", "headerName", "Table", "props", "chartData", "tableColumns", "enableSearch", "initialRowCount", "currentLocale", "AppContext", "error", "setError", "rawData", "getRawData", "err", "logger", "Config", "jsxs", "jsx", "SuspenseWrapper", "ChartSkeleton", "TableShallow", "props", "id", "isContentfulSysProps", "data", "loading", "useContentfulQuery", "queries", "jsx", "ChartSkeleton", "chartData", "Table", "chartToggleQuery", "gql", "contentfulSysIdFragment", "fragments", "Chart", "props", "jsx", "ChartToggle", "BarChartShallow", "LineChartShallow", "GeoMapShallow", "TableShallow", "Fragment", "useDropdowns", "useFeatureFlags", "data", "loading", "useContentfulQuery", "chartToggleQuery", "logEvent", "ConsumerContext", "itemsProps", "analytics", "title", "contentsCollection", "id", "contents", "ChartToggleV2", "ChartToggleWrapper", "props", "useFeatureFlags", "jsx", "ChartToggle", "import_react", "fragments", "gql", "seriesFragment", "chartDataFragment", "contentfulSysIdFragment", "queries", "LazyMultiVisualization", "lazyComponent", "module", "generateChartMeta", "chartData", "generateVisualizationMeta", "visualization", "getProcessedChartData", "chartDataItems", "series", "filteredChartData", "unnamedChartDataCount", "MultiVisualization", "chartTitle", "seriesName", "chartDataCollection", "visualizationsCollection", "selectableFields", "locale", "ContentfulContext", "visualizationMetadataItems", "chartMetadataItems", "fieldMetadataItems", "field", "selectedChartData", "setSelectedChartData", "selectedVisualization", "setSelectedVisualization", "selectedField", "setSelectedField", "onChartDataSelected", "item", "onVisualizationSelected", "viz", "renderVisualization", "jsx", "TableShallow", "BarChartShallow", "LineChartShallow", "GeoMapShallow", "SuspenseWrapper", "MultiVisualizationShallow", "props", "id", "isContentfulSysProps", "data", "useContentfulQuery", "queries", "BlockContent", "props", "jsx", "LazyGallery", "CarouselV3", "Tabs", "MosaicShallow", "FormShallow", "ChartToggleWrapper", "BarChartShallow", "LineChartShallow", "GeoMapShallow", "MultiVisualizationShallow", "TableShallow", "ContentShallow", "Accordion", "AnimatedAccordion", "logError", "Fragment", "Block", "maxColumns", "eyebrow", "title", "subtitle", "titleAlignment", "titleAlignmentMobile", "contentsCollection", "callsToActionCollection", "anchorId", "isNarrow", "widthStyle", "fullHeight", "backgroundColor", "backgroundMediaV2", "theme", "isNextSameBackgroundColor", "isPreviousSameBackgroundColor", "className", "sys", "preChildren", "postChildren", "givenShowCurtain", "replacements", "SlugContext", "finalContentsCollection", "contentsCollectionCopy", "i", "contentId", "contentType", "replacement", "backgroundAssetMedia", "backgroundImageSource", "backgroundVideoSource", "parseMedia", "backgroundMobileAssetMedia", "mobileBackgroundImageSource", "mobileBackgroundVideoSource", "blockChildren", "item", "callsToAction", "CallToAction", "getImageSources", "useContentfulImages", "bgImgSrc", "combineImageSources", "inspectorDatasets", "getContentfulInspectorProps", "showCurtain", "renderRichTextMultiLineWithMarkings", "breakFragment", "gql", "contentfulSysIdFragment", "breakQuery", "import_isNull", "import_omit", "import_react", "import_rich_text_plain_text_renderer", "renderString", "data", "dateFormatOptions", "getHeroHeaderComponent", "fallbackDate", "header", "isExpectingDate", "jsx", "Fragment", "renderRichTextMarkingsOnly", "headerText", "renderString", "parsedDate", "isParsedDateValid", "formatDate", "useFormatDate", "isCarouselV3", "props", "headerImgSrcSetSizes", "width", "i", "globalNavHighlightSizes", "getForegroundMedia", "foreground", "getImageSources", "dataset", "isVideoDataProps", "videoSource", "parseMedia", "mobileVideoSource", "jsx", "Media", "isImageDataProps", "imageSource", "imageAltText", "imageSize", "mobileImageSource", "mobileIMageSize", "imgSrcs", "combineImageSources", "getDprSrcSetSettingsByHeight", "isCarouselV3", "CarouselV3", "SnapchatEmbed", "Hero", "props", "eyebrow", "title", "subTitle", "body", "backgroundMediaLayout", "BackgroundMediaLayout", "backgroundMediaV2", "callsToActionCollection", "isHeaderDate", "header", "headerMediaV2", "backgroundColor", "theme", "textAlign", "textAlignMobile", "verticalTextAlign", "fitWindow", "curtainOpacityPercentage", "mediaWrap", "className", "footer", "showMediaMobile", "anchorId", "sys", "postChildren", "size", "showScrollButton", "browserFeatures", "BrowserFeaturesContext", "containerRef", "fallbackDate", "shareable", "backgroundMedia", "backgroundImageSource", "backgroundVideoSource", "backgroundImageSize", "backgroundMobileAssetMedia", "mobileBackgroundImageSource", "mobileBackgroundVideoSource", "mobileBackgroundImageSize", "headerMediaSource", "headerImageSource", "headerImageAltText", "mobileHeaderMediaSource", "mobileHeaderImageSource", "callsToAction", "item", "CallToAction", "inspectorDataset", "getContentfulInspectorProps", "useContentfulImages", "foregroundMedia", "bg", "isNull", "alternativeBackground", "HeroHeader", "getHeroHeaderComponent", "headerSettings", "headerImgSrcs", "bgImgDprSettings", "mobileBgImgDprSettings", "bgImgDprData", "getDprDataByHeight", "bgImgSrcs", "baseAvifSrc", "additionalAvifSrcWithDpr", "supportsAvif", "avifSrc", "src", "getSrcSetUrl", "heroSize", "handleScrollDownButtonClick", "headerHeight", "getHeaderHeightFromCssVar", "scrollPos", "jsxs", "Fragment", "Config", "W", "renderRichTextMultiLineWithMarkings", "renderRichTextWithElementsNoHeadings", "omit", "fragments", "gql", "ctaFragment", "snapchatEmbedFragment", "blockHeroQuery", "parseCustomMeta", "customMeta", "name", "content", "logger", "Metas", "props", "customMetas", "parsedCustomMetas", "imageUrl", "getImageUrl", "headerProps", "jsx", "Header", "blogSchemaFragment", "gql", "contentfulSysIdFragment", "faqPageSchemaFragment", "gql", "contentfulSysIdFragment", "import_rich_text_html_renderer", "schemaOrgUrl", "generateWebSchema", "url", "schemaData", "postedAt", "lastModifiedAt", "organizationSchemaData", "generateBlogSchema", "generateOrganizationSchema", "generateFaqPageSchema", "generateOrganizationSnippet", "blogSchemaData", "organizationSnippet", "images", "item", "organizaitonSnippet", "faqPageSchemaData", "questions", "organizationSchemaFragment", "gql", "contentfulSysIdFragment", "organizationSchemaCollectionQuery", "import_react", "WebSchemas", "props", "schemas", "getCurrentUrl", "AppContext", "publishedAt", "postedDate", "SlugContext", "currentUrl", "organizationSchemaData", "useContentfulQuery", "organizationSchemaCollectionQuery", "transformedSchemas", "schema", "generateWebSchema", "head_default", "jsx", "W", "idx", "fragments", "gql", "blogSchemaFragment", "organizationSchemaFragment", "faqPageSchemaFragment", "contentfulSysIdFragment", "query", "scrollAnimatedVideoFragment", "gql", "contentfulSysIdFragment", "assetFragment", "scrollAnimatedSectionFragment", "blockAllFragment", "query", "splitBlockFragment", "gql", "contentfulSysIdFragment", "ctaFragment", "fragments", "splitBlockQuery", "subNavigationFragment", "gql", "contentfulSysIdFragment", "subNavigationQuery", "import_react", "import_react", "import_react", "defaultContext", "LayoutContext", "rtlRange", "rtl", "direction", "source", "import_react", "AlternateLang", "localizedIn", "defaultLocale", "getCurrentUrl", "AppContext", "url", "jsxs", "W", "jsx", "locale", "import_react", "Canonical", "localizedIn", "defaultLocale", "currentLocale", "getCurrentUrl", "AppContext", "url", "currentUrlHasLang", "jsx", "W", "import_react", "homepageCss", "css", "totalHeaderHeightCssVar", "SnapHome", "snapHeaderBackgroundVar", "scrollListener", "opacity", "jsx", "fragments", "gql", "contentfulSysIdFragment", "query", "QuestionnaireBlock", "props", "data", "useContentfulQuery", "query", "questionnaire", "buildQuestionnaireFullObject", "jsx", "questionsCollection", "questions", "questionData", "buildQuestionAnswers", "answersCollection", "answerData", "getCustomComponents", "QuestionnaireBlock", "SnapHome", "import_rich_text_types", "import_react", "pageAssetFragment", "gql", "assetFragment", "contentfulSysIdFragment", "pageBlockCollectionsFragment", "gql", "contentfulSysIdFragment", "latestPostHeroQuery", "fragments", "createExperimentFragmentNoAb", "pageAssetFragment", "LatestPostHero", "backgroundColor", "postChildren", "data", "useContentfulQuery", "latestPostHeroQuery", "formatMessage", "MessageContext", "pathname", "useLocation", "latestPostCtaTitle", "titleCtaRichText", "slugData", "slug", "blockHero", "item", "callsToActionCollection", "heroBackgroundColor", "BackgroundColor", "jsx", "Hero", "pageCategoryTitleFragment", "gql", "contentfulSysIdFragment", "latestPostBlockQuery", "createExperimentFragmentNoAb", "pageAssetFragment", "LatestPostBlock", "props", "formatDate", "useFormatDate", "decideExperiment", "useExperiment", "data", "useContentfulQuery", "latestPostBlockQuery", "title", "maxPosts", "backgroundColor", "cta", "anchorId", "slugCollection", "items", "_", "index", "slug", "dateFormatted", "author", "jsx", "FormattedMessage", "date", "Anchor", "page", "Link", "ctaElement", "CallToAction", "LatestPosts", "fragments", "gql", "contentfulSysIdFragment", "query", "updateCollection", "collection", "item", "MultiVideoBlock", "children", "id", "togglePanelClassName", "togglePanelLabel", "preChildren", "postChildren", "otherProps", "data", "useContentfulQuery", "query", "anchorId", "panelPosition", "primaryVideosCollection", "secondaryVideosCollection", "mobilePrimaryVideosCollection", "mobileSecondaryVideosCollection", "jsx", "import_react", "innerScrollContainerCss", "css", "totalHeaderHeightCssVar", "scrubVideoCss", "ScrollAnimatedSection", "scrollHeight", "animatedContentCollection", "containerRef", "totalHeaderHeightRef", "getHeaderHeightFromCssVar", "calculateScrollProgress", "top", "totalHeight", "heightStyle", "jsx", "video", "sys", "mp4Source", "webmSource", "videoStart", "videoEnd", "scrubStart", "scrubEnd", "ScrollAnimatedVideo", "hasSideNavCss", "css", "mobileMediaQuery", "minHeightCss", "SplitBlock", "props", "getImageSources", "useContentfulImages", "title", "subtitle", "body", "media", "callsToActionCollection", "splitBlockBody", "restProps", "desktopMedia", "mobileMedia", "backgroundMediaType", "imgSrcs", "videoSources", "combineImageSources", "getDprSrcSetSettingsByHeight", "callsToAction", "item", "jsx", "CallToAction", "renderRichTextWithElements", "import_react", "ActiveEventCountTracker", "divRef", "getTracer", "_eventId", "_eventName", "_lifeCycle", "activeEventCount", "jsx", "defaultPageBackgroundCss", "css", "m", "pageSideNavCss", "maxWidth", "pageStickyCss", "totalHeaderHeightCssVar", "ZIndex", "bannerContentContainerCss", "richTextCtaClassName", "stickyBottomCss", "import_react", "import_react_dom", "pageBottomStickyPortalId", "PageBottomStickyPortal", "props", "pageBottomStickyPortalRef", "AppContext", "jsx", "pageStickyHeightCssVar", "defaultBreakTemplates", "Template", "pageCss", "css", "totalHeaderHeightCssVar", "subNavHeightPx", "pageWithSubNavCss", "pictureContextLazy", "pictureContextNoLazy", "allBlockTypes", "isCustomComponent", "type", "Page", "props", "pathname", "useLocation", "featureFlags", "useFeatureFlags", "formatMessage", "MessageContext", "hasSideNav", "hasSubNav", "LayoutContext", "isMobile", "useIsMobile", "stickyContainerRef", "pageRef", "stickyHeightRef", "resizeObserver", "entries", "height", "pageStickyHeightCssVar", "m", "logEvent", "currentHeaderView", "currentFooterView", "setHeaderView", "setFooterView", "PageLayoutContext", "headerView", "footerView", "Config", "slugContext", "SlugContext", "title", "metas", "blocksCollection", "footnotesCollection", "collapseFootnotes", "backgroundColor", "backgroundMediaV2", "backgroundMediaStyle", "scrollSnap", "testFeature", "pageBackgroundColor", "footnotes", "footnoteProps", "jsx", "Footnote", "footnotesTitle", "footnoteBlock", "FootnoteBlock", "blocks", "breakTemplates", "templateIndex", "firstHeroOrBlockIndex", "blocksWithBreaks", "idx", "sys", "__typename", "isLastBlock", "prevBlock", "nextBlock", "blockBackgroundColor", "prevBackgroundColor", "nextBackgroundColor", "blockHasBackgroundMedia", "prevBlockHasBackgroundMedia", "nextBlockHasBackgroundMedia", "topColorFallback", "bottomColorFallback", "footnoteBlockBackgroundColor", "topColor", "bottomColor", "isTopTransparent", "isBottomTransparent", "topColorClean", "bottomColorClean", "Break", "blockProps", "blockPropsAsDataProps", "Block", "ScrollAnimatedSection", "SubNavigation", "LatestPostHero", "Hero", "LatestPostBlock", "MultiVideoBlock", "SplitBlock", "customBlocks", "getCustomComponents", "CustomComponent", "heroBreakTemplate", "template", "isOverlaid", "blocksToRender", "block", "component", "breakSpacerProps", "topBreakOverlayType", "getBreakOverlayType", "BreakSpacer", "bottomBreakOverlayType", "backgroundAssetMedia", "imageSource", "videoSource", "parseMedia", "backgroundMobileAssetMedia", "mobileImageSource", "mobileVideoSource", "getImageSources", "useContentfulImages", "imgSrcs", "combineImageSources", "dir", "direction", "content", "jsxs", "Fragment", "DefinitionProvider", "PictureContext", "DefinitionOverlay", "banner", "customBanner", "contentfulDescriptionDataset", "getContentfulInspectorProps", "Banner", "pageStickyCss", "bannerContentContainerCss", "renderRichTextWithElements", "cx", "getBackgroundClassName", "defaultPageBackgroundCss", "pageTransparentBgCss", "pageSideNavCss", "minHeightCss", "Canonical", "AlternateLang", "Metas", "WebSchemas", "Header", "PageBottomStickyPortal", "stickyBottomCss", "ActiveEventCountTracker", "isElementHorizontallyVisible", "element", "parent", "elementRect", "parentRect", "SubNavStickyCss", "css", "pageStickyHeightCssVar", "totalHeaderHeightCssVar", "SubNavigation", "backgroundColor", "sys", "items", "subnavRef", "activeItemId", "setActiveItemId", "lastScrollPos", "scrollDir", "handleScroll", "scrollPos", "handleIntersectionChange", "entries", "intersectingEntries", "entry", "lastIntersectingEntry", "id", "observer", "item", "el", "handleItemClick", "event", "itemElement", "totalHeaderHeight", "contentfulDescriptionDataset", "getContentfulInspectorProps", "jsx", "textDataset", "SubNavigationItem", "pageFragmentShallow", "gql", "blockFragmentShallow", "contentfulSysIdFragment", "bannerFragment", "ctaFragment", "fragments", "blockAllFragment", "scrollAnimatedSectionFragment", "subNavigationFragment", "breakFragment", "splitBlockFragment", "pageNavigationFragment", "pageAllQuery", "pageSitemapFragment", "pageBlocksCollectionQuery", "pageSideNavbarQuery", "gql", "contentfulSysIdFragment", "createExperimentFragmentNoAb", "pageNavigationFragment", "import_react", "fragments", "gql", "criteriaFragment", "contentfulSysIdFragment", "query", "import_rich_text_plain_text_renderer", "stickToHeaderCss", "css", "nonMobileMediaQuery", "mobileMediaQuery", "SideNavigation", "navigatorItemsCollection", "backgroundColor", "mobileBackgroundColor", "sys", "pathname", "useLocation", "checkCriteria", "useExperiment", "isUrlCurrent", "url", "match", "matchPath", "isVisible", "item", "items", "section", "titleDataset", "getContentfulInspectorProps", "link", "nestedTitleDataset", "contentfulDescriptionDataset", "jsx", "stickToHeaderCss", "SideNavigationShallow", "props", "id", "isContentfulSysProps", "data", "useContentfulQuery", "query", "import_head", "import_react", "import_react", "contentfulTypeQueries", "latestPostBlockQuery", "query", "queries", "carouselV3Query", "lazyGalleryQuery", "chartToggleQuery", "blockHeroQuery", "breakQuery", "subNavigationQuery", "getQueryName", "query", "sourceName", "def", "PageShallow", "props", "data", "useContentfulQuery", "pageAllQuery", "prefetchedIds", "apolloClient", "useApolloClient", "currentLocale", "getCurrentUrl", "AppContext", "replacements", "SlugContext", "replacementIds", "acc", "block", "replacementData", "pageBlocksCollectionQuery", "preloadItem", "preload", "query", "contentfulTypeQueries", "logWarning", "queryId", "getQueryName", "Config", "error", "l", "preloadPageData", "shallowBlock", "finalBlock", "blockItem", "finalBanner", "finalBlocksCollection", "entry", "blocksCollectionCopy", "i", "blockId", "replacement", "jsx", "Page", "import_react", "backgroundColor", "Config", "BackgroundColor", "containerCss", "css", "m", "headingCss", "mediaQuery", "minHeightCss", "ghostCss", "css", "NoMatchDefault", "formatMessage", "MessageContext", "title", "subtitle", "jsxs", "cx", "getBackgroundClassName", "backgroundColor", "containerCss", "minHeightCss", "jsx", "headingCss", "custom404Fragment", "gql", "createExperimentFragmentWithAbReplacements", "pageFragmentShallow", "contentfulSysIdFragment", "custom404CollectionQuery", "NoMatch", "staticContext", "context", "data", "useContentfulQuery", "custom404CollectionQuery", "decideExperiment", "useExperiment", "custom404OrExperiment", "jsx", "NoMatchDefault", "PageShallow", "experimentResult", "SlugContext", "import_react", "redirectContainerCss", "css", "Redirect", "path", "newTab", "isPermanent", "onRedirect", "AppContext", "Config", "jsxs", "jsx", "redirectFragment", "gql", "contentfulSysIdFragment", "redirectSitemapFragment", "slugShallowFragment", "gql", "createExperimentFragmentWithAbReplacements", "pageFragmentShallow", "createExperimentFragmentNoAb", "redirectFragment", "contentfulSysIdFragment", "pageAssetFragment", "slugSitemapFragment", "pageSitemapFragment", "experimentSitemapFragment", "redirectSitemapFragment", "criteriaFragment", "slugCollectionQuery", "gql", "slugShallowFragment", "notFoundPath", "SlugCollection", "props", "decideExperiment", "useExperiment", "data", "useContentfulQuery", "slugCollectionQuery", "slugMatch", "head", "pageOrExperiment", "page", "replacements", "experimentResult", "Config", "mainElement", "logEvent", "jsx", "Redirect", "NoMatch", "publishedAt", "postedDateStr", "postedDate", "SlugContext", "PageShallow", "pagesWithSubOrSideNavQuery", "gql", "contentfulSysIdFragment", "experimentsByIdsLinkingToSlugs", "slugsByIdsQuery", "useSlugToNavMap", "sideNavMap", "subNavMap", "pageToSideNav", "pageToSubNav", "slugIdToSideNav", "slugIdToSubNav", "experimentIdToSideNav", "experimentIdToSubNav", "pagesWithNav", "useContentfulQuery", "pagesWithSubOrSideNavQuery", "page", "parent", "experimentIds", "slugIdsFromExperiments", "experimentsByIdsLinkingToSlugs", "experiment", "link", "sideNav", "subNav", "slugIds", "slugsFromSlugIds", "slugsByIdsQuery", "slug", "Slug", "originalSlug", "useLocation", "slug", "b", "shouldRedirectHome", "useFeatureFlags", "Config", "url", "sideNavMap", "subNavMap", "useSlugToNavMap", "hasSideNav", "sideNavId", "hasSubNav", "subNavId", "logWarning", "jsx", "cx", "hasSideNavCss", "minHeightCss", "jsxs", "LayoutContext", "SideNavigationShallow", "SlugCollection", "defaultBackgroundColor", "BackgroundColor", "noPaddingTopCss", "css", "CookieSettings", "cookieDomain", "deploymentType", "domainName", "isClient", "backgroundColor", "isSameDomain", "backgroundType", "jsx", "Block", "NoMatchDefault", "import_react", "noResultsFoundContainerCss", "css", "m", "noResultsFoundTitleCss", "noResultsFoundSubtitleCss", "p2Css", "noResultsFoundImageCss", "NoResultsFound", "jsxs", "noResultsFoundContainerCss", "jsx", "noResultsFoundTitleCss", "FormattedMessage", "noResultsFoundSubtitleCss", "noResultsFoundImageCss", "searchQueryParam", "searchOffsetParam", "searchPerPageParam", "searchLocaleParam", "searchResultItemPageTitleCss", "css", "m", "searchResultItemLinkCss", "searchResultItemDescriptionCss", "p2Css", "nonMobileMediaQuery", "replaceEmTags", "inputString", "regex", "part", "index", "jsx", "SearchResultItem", "description", "pageTitle", "slug", "onClick", "jsxs", "searchResultItemPageTitleCss", "Anchor", "searchResultItemLinkCss", "searchResultItemDescriptionCss", "import_react", "useQueryParams", "search", "useLocation", "getUrlParams", "ConsumerContext", "searchParams", "import_react", "useSearchResults", "searchTerm", "locale", "page", "pageSize", "previousResults", "previousTotal", "emptyResults", "searchResults", "params", "searchOffsetValue", "searchQueryParam", "searchLocaleParam", "searchOffsetParam", "searchPerPageParam", "url", "Config", "data", "isLoading", "error", "useAsyncData", "response", "logger", "searchContainerCss", "css", "m", "mobileMediaQuery", "searchAutocompleteCss", "searchSubtitleCss", "p3Css", "searchResultsContainerCss", "searchResultsListCss", "spinnerContainerCss", "maxResultsPerPage", "searchDebounceDelay", "pageViewDebounceDelay", "getDescription", "elements", "element", "handleScroll", "totalHeaderHeight", "totalHeaderHeightCssVar", "containerTop", "scrollY", "Search", "query", "useQueryParams", "searchQueryParameter", "searchPageParameter", "shouldRenderSpinner", "setShouldRenderSpinner", "useMotifStyles", "appContext", "AppContext", "formatMessage", "MessageContext", "getUrlParams", "setUrlParams", "ConsumerContext", "containerRef", "page", "setPage", "searchTerm", "setSearchTerm", "debouncedSearchTerm", "setDebouncedSearchTerm", "timerId", "logEvent", "searchResults", "useSearchResults", "queryParams", "newPage", "newTerm", "onChange", "term", "trimmedTerm", "onChangePage", "showLoading", "showResults", "showNoResults", "jsxs", "Fragment", "jsx", "Header", "searchContainerCss", "searchAutocompleteCss", "AutoComplete", "h", "b", "noop_default", "searchSubtitleCss", "FormattedMessage", "searchResultsContainerCss", "spinnerContainerCss", "Spinner", "searchResultsListCss", "item", "i", "SearchResultItem", "logUserEvent", "NoResultsFound", "Pagination", "ActiveEventCountTracker", "Routes", "location", "useLocation", "enableSearchFeature", "useFeatureFlags", "element", "jsx", "Fragment", "jsxs", "Switch", "Route", "cookieSettingsPath", "CookieSettings", "Config", "Search", "NoMatch", "Slug", "getSiteMotif", "Config", "defaultMotif", "e", "n", "t", "i", "r", "a", "o", "c", "u", "f", "s", "d", "l", "p", "v", "m", "h", "g", "T", "y", "E", "C", "L", "w", "b", "S", "A", "I", "P", "k", "F", "M", "D", "x", "B", "R", "H", "N", "O", "q", "j", "_", "z", "G", "J", "K", "Q", "U", "V", "W", "initWebVitalsLogging", "category", "S", "metric", "logValue", "x", "logTiming", "W", "Q", "userAgentHintsFromBowser", "browserFeatures", "hints", "browserVersion", "HistoryCaptor", "onHistory", "history", "useHistory", "App", "getCurrentUrl", "currentLocale", "supportedLocales", "routerContext", "userLocation", "shopifyData", "helmetContext", "pageLayoutContext", "apolloClient", "globalApolloClient", "siteData", "browserFeatures", "onRedirect", "asyncDataController", "globalPrivacyControl", "cookieManager", "getUserInfo", "createUuidV4", "singleCallbackCache", "appRenderTrace", "getTracer", "url", "Router", "Config", "children", "jsxs", "BrowserRouter", "jsx", "StaticRouter", "userAgentHints", "userAgentHintsFromBowser", "isRtl", "directionFromLocale", "useBrowserLayoutEffect", "appContextProvider", "logger", "initWebVitalsLogging", "consumerContext", "defaultContext", "type", "label", "component", "logEvent", "createIsCurrentUrl", "search", "urlParamsToFilters", "paramsObj", "pathname", "paramsStr", "filtersToUrlParams", "newPath", "GlobalHeaderContext", "globalComponentsContext", "error", "logError", "Anchor", "action", "googleAnalyticsEventName", "isLocalUrl", "locale", "siteDataState", "setSiteData", "headerPortalRef", "pageBottomStickyPortalRef", "appContext", "contentfulContext", "getContentfulContext", "cookieSettingsUrl", "getCookieSettingsUrl", "motif", "getSiteMotif", "primitivesContext", "defaultPrimitivesContext", "injectGlobal", "renderedApp", "ErrorBoundary", "ContentfulContext", "ContentfulLivePreviewContextProvider", "ApolloProvider", "AsyncDataContext", "ConsumerContext", "PrimitivesContext", "GlobalComponentsContextProvider", "BrowserFeaturesContext", "q", "IntlProvider", "AppContext", "SingleCallbackCacheContext", "LogCspViolation", "LogPageLoad", "LogAdBlockUsage", "LogScrollDepth", "GlobalAnimations", "DirectionDirective", "LanguageDirective", "ContentfulLivePreview", "Favicon", "Viewport", "FontChecker", "StyleHacks", "SitewideConfigurationProvider", "HardcodedComponents", "PageLayoutProvider", "ShopifyProvider", "MotifRootWrapper", "Header", "LoadingBar", "Routes", "Footer", "CookiePopup", "Cart", "import_js_cookie", "CookieManager", "__publicField", "name", "value", "error", "logError", "options", "BrowserCookieManager", "CookieManager", "__publicField", "name", "Cookies", "value", "options", "legacyUuidTemplate", "legacyRandomUuid", "ri", "rs", "c", "r", "createUuidV4Browser", "createFind", "findIndexFunc", "collection", "predicate", "fromIndex", "iterable", "isArrayLike_default", "iteratee", "baseIteratee_default", "keys_default", "key", "index", "createFind_default", "toInteger", "value", "result", "toFinite_default", "remainder", "toInteger_default", "nativeMax", "nativeMin", "findLastIndex", "array", "predicate", "fromIndex", "length", "index", "toInteger_default", "baseFindIndex_default", "baseIteratee_default", "findLastIndex_default", "findLast", "createFind_default", "findLastIndex_default", "findLast_default", "init_baseGetTag", "init_isObjectLike", "stringTag", "isString", "value", "isArray_default", "isObjectLike_default", "baseGetTag_default", "isString_default", "asciiSize", "baseProperty_default", "asciiSize_default", "rsAstralRange", "rsComboMarksRange", "reComboHalfMarksRange", "rsComboSymbolsRange", "rsComboRange", "rsVarRange", "rsAstral", "rsCombo", "rsFitz", "rsModifier", "rsNonAstral", "rsRegional", "rsSurrPair", "rsZWJ", "reOptMod", "rsOptVar", "rsOptJoin", "rsSeq", "rsSymbol", "reUnicode", "unicodeSize", "string", "result", "unicodeSize_default", "stringSize", "string", "hasUnicode_default", "unicodeSize_default", "asciiSize_default", "stringSize_default", "mapTag", "setTag", "size", "collection", "isArrayLike_default", "isString_default", "stringSize_default", "tag", "getTag_default", "baseKeys_default", "size_default", "formatMarketingWebEvent", "event", "context", "url", "data", "LoggingEventType", "kebabCase_default", "formatSnapPixelEvent", "triggeringEvent", "formatWebClientIdEvent", "formatMarketingWebEvents", "output", "primaryEvent", "pixelEvent", "webClientIdEvent", "formatForBusinessEvents", "event", "context", "url", "forBusinessData", "findLast_default", "size_default", "events", "formatMarketingWebEvents", "LoggingEventType", "groupByErrors", "getBeforeSend", "event", "_hint", "exceptionStackframe", "exceptionMessage", "unresolvedQueryErrorMatches", "frame", "groupByError", "mwpAuthTokenHeader", "ClientExportEventListener", "AbstractEventListener", "props", "__publicField", "data", "tokenData", "hash", "hashData", "authToken", "response", "text", "error", "l", "payload", "event", "customFetch", "context", "input", "dataStr", "byte", "logFlushIntervalMs", "getCookie", "cookieName", "getPixelContext", "ExperimentContextListener", "__publicField", "event", "_context", "LoggingEventType", "initializeClientLogging", "config", "logger", "experimentContextListener", "eventListenerConfig", "GrapheneClientEventListener", "context", "ClientExportEventListener", "error", "nonce", "gtmEventListener", "GoogleEventListener", "formatter", "formatForBusinessEvents", "formatMarketingWebEvents", "BlizzardClientEventListener", "sentryProps", "getBeforeSend", "SentryClientEventListener", "ConsoleClientEventListener", "omit_default", "loggingInitTimeoutMs", "startClientLogging", "config", "disableLazyLoadLogging", "loggingScheduleStart", "allowLogging", "logger", "loggingAllowTrigger", "onError", "errorHandler", "ApolloLink", "operation", "forward", "Observable", "observer", "sub", "retriedSub", "retriedResult", "result", "networkError", "e", "ErrorLink", "_super", "__extends", "_this", "ContentfulInMemoryCache", "InMemoryCache", "options", "trace", "getTracer", "getQueryName", "result", "optimistic", "createContentfulCache", "fragments", "apolloState", "keyFields", "storeObject", "context", "entry", "isReference", "defaultDataIdFromObject", "typePolicies", "typeName", "cacheOptions", "cache", "restoreSpan", "requestLatencyLogLink", "ApolloLink", "operation", "forward", "queryName", "locale", "eventCategory", "eventVariable", "requestUrl", "requestPath", "logContext", "Observable", "latencyObserver", "subscription", "result", "durationMs", "response", "responseStatus", "logTiming", "error", "defaultUrl", "contentfulNetworkErrorNames", "getContentfulHttpOptions", "config", "uri", "headers", "Config", "customFetch", "ast", "originalPrint", "stripIgnoredCharacters", "createContentfulClient", "fragments", "apolloState", "retryLink", "RetryLink", "contentfulRetryCount", "error", "operation", "parsedError", "l", "response", "responseCode", "shouldRetry", "logInfo", "getQueryName", "onErrorLink", "onError", "graphQLErrors", "networkError", "contentfulErrorCode", "logError", "serverError", "errorCode", "errorName", "tracingApolloLink", "ApolloLink", "forward", "traceSpan", "getTracer", "result", "link", "requestLatencyLogLink", "createHttpLink", "ApolloClient", "createContentfulCache", "cacheExpirationTimeMs", "apolloClientMap", "Config", "locale", "_", "clientFactory", "newClient", "getOrCreateApolloClient", "options", "createContentfulClient", "apolloClientMapKey", "client", "applyUrlOverrides", "config", "params", "Config", "import_promise_memoize", "generateFragmentTypes", "memoizeAsync", "config", "httpOptions", "getContentfulHttpOptions", "trace", "getTracer", "possibleTypesData", "customFetch", "parsedFragmentTypes", "parseFragmentTypeData", "data", "possibleTypeMap", "supertype", "subtype", "BrowserTracer", "__publicField", "name", "markName", "listener", "callback", "allowedDomains", "essentialSessionCookieName", "webClientIdName", "ensureWebClientId", "args", "currentUrl", "userLocation", "cookieManager", "createUuidV4", "essentialSessionCookieName", "existingCookie", "webClientIdName", "isGdpr", "gdprCountries", "expires", "cookieDomain", "g", "cookieOptions", "allowedDomains", "webClientId", "defaultState", "defaultContext", "main", "initializeClientLogging", "Config", "startClientLogging", "setTracer", "BrowserTracer", "state", "url", "defaultLocale", "apolloCache", "globalApolloCache", "requestUrl", "contentfulConfigWithOverrides", "applyUrlOverrides", "localApolloFragments", "generateFragmentTypes", "globalApolloFragments", "apolloClient", "getOrCreateApolloClient", "globalApolloClient", "asyncDataControllerCache", "asyncDataController", "d", "cookieManager", "BrowserCookieManager", "createUuidV4", "createUuidV4Browser", "webClientId", "ensureWebClientId", "getUserInfoClient", "response", "onRedirectClient", "location", "options", "newTab", "history", "browserFeatures", "ClientBrowserFeature", "clientAppProps", "capturedHistory", "cache", "createCache", "jsx", "CacheProvider", "App", "rootElement", "errorCount", "serverStatus", "event", "data", "error", "path"]
}
