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MAATA,IAA0B,UAARuF,GAA4B,YAARA,EAC/C,C,YCAAwI,EAAOC,QAJP,SAAsBhO,GACpB,OAAgB,MAATA,GAAiC,iBAATA,CACjC,C,kBC1BA,IAAIyR,EAAa,EAAQ,OACrBC,EAAe,EAAQ,OA2B3B3D,EAAOC,QALP,SAAkBhO,GAChB,MAAuB,iBAATA,GACX0R,EAAa1R,IArBF,mBAqBYyR,EAAWzR,EACvC,C,YCVA+N,EAAOC,QAJP,WAEA,C,iBCdA,IAAIvL,EAAO,EAAQ,OAsBnBsL,EAAOC,QAJG,WACR,OAAOvL,EAAKkP,KAAKlC,KACnB,C,kBCpBA,IAAImC,EAAW,EAAQ,OACnBpC,EAAW,EAAQ,OACnBqC,EAAW,EAAQ,OAMnBC,EAAa,qBAGbC,EAAa,aAGbC,EAAY,cAGZC,EAAeC,SA8CnBnE,EAAOC,QArBP,SAAkBhO,GAChB,GAAoB,iBAATA,EACT,OAAOA,EAET,GAAI6R,EAAS7R,GACX,OA1CM,IA4CR,GAAIwP,EAASxP,GAAQ,CACnB,IAAImS,EAAgC,mBAAjBnS,EAAMoS,QAAwBpS,EAAMoS,UAAYpS,EACnEA,EAAQwP,EAAS2C,GAAUA,EAAQ,GAAMA,CAC3C,CACA,GAAoB,iBAATnS,EACT,OAAiB,IAAVA,EAAcA,GAASA,EAEhCA,EAAQ4R,EAAS5R,GACjB,IAAIqS,EAAWN,EAAWxC,KAAKvP,GAC/B,OAAQqS,GAAYL,EAAUzC,KAAKvP,GAC/BiS,EAAajS,EAAM+G,MAAM,GAAIsL,EAAW,EAAI,GAC3CP,EAAWvC,KAAKvP,GAvDb,KAuD6BA,CACvC,C","sources":["webpack://ess-mep/./src/img/icons/arrow-up.svg","webpack://ess-mep/./src/img/icons/chevron-right-mep.svg","webpack://ess-mep/./src/img/icons/chevron-right.svg","webpack://ess-mep/./src/helpers/aspectRatio.ts","webpack://ess-mep/./src/helpers/global.ts","webpack://ess-mep/./src/helpers/grid.ts","webpack://ess-mep/./src/helpers/image.ts","webpack://ess-mep/./src/helpers/utils.ts","webpack://ess-mep/./src/hoc/withMotionMax.tsx","webpack://ess-mep/./src/hooks/useIntersectionObserver.ts","webpack://ess-mep/./src/hooks/useInView.ts","webpack://ess-mep/./src/stories/Components/Global/Buttons/LinkButton/LinkButton.tsx","webpack://ess-mep/./src/stories/Components/Global/Carousels/Carousel/CarouselProvider/CarouselProvider.tsx","webpack://ess-mep/./src/hooks/useCarousel.ts","webpack://ess-mep/./src/hooks/useResize.ts","webpack://ess-mep/./src/stories/Components/Global/Carousels/Carousel/Controls/Controls.styles.ts","webpack://ess-mep/./src/stories/Components/Global/Carousels/Carousel/Controls/Controls.tsx","webpack://ess-mep/./src/stories/Components/Global/DotPagination/DotPagination.styles.ts","webpack://ess-mep/./src/stories/Components/Global/DotPagination/DotPagination.tsx","webpack://ess-mep/./src/stories/Components/Global/SectionWrapper/SectionWrapper.styles.ts","webpack://ess-mep/./src/hoc/withBaseProps.tsx","webpack://ess-mep/./src/stories/Components/Global/SectionWrapper/SectionWrapper.tsx","webpack://ess-mep/./src/helpers/video.ts","webpack://ess-mep/./src/stories/Widgets/HeroBannerCarousel/BannerItem/BannerItem.styles.ts","webpack://ess-mep/./src/stories/Widgets/HeroBannerCarousel/BannerItem/BannerItem.tsx","webpack://ess-mep/./src/stories/Widgets/HeroBannerCarousel/HeroBannerCarousel.styles.ts","webpack://ess-mep/./src/stories/Widgets/HeroBannerCarousel/HeroBannerCarousel.tsx","webpack://ess-mep/./node_modules/lodash/_Symbol.js","webpack://ess-mep/./node_modules/lodash/_baseGetTag.js","webpack://ess-mep/./node_modules/lodash/_baseTrim.js","webpack://ess-mep/./node_modules/lodash/_freeGlobal.js","webpack://ess-mep/./node_modules/lodash/_getRawTag.js","webpack://ess-mep/./node_modules/lodash/_objectToString.js","webpack://ess-mep/./node_modules/lodash/_root.js","webpack://ess-mep/./node_modules/lodash/_trimmedEndIndex.js","webpack://ess-mep/./node_modules/lodash/debounce.js","webpack://ess-mep/./node_modules/lodash/isObject.js","webpack://ess-mep/./node_modules/lodash/isObjectLike.js","webpack://ess-mep/./node_modules/lodash/isSymbol.js","webpack://ess-mep/./node_modules/lodash/noop.js","webpack://ess-mep/./node_modules/lodash/now.js","webpack://ess-mep/./node_modules/lodash/toNumber.js"],"sourcesContent":["var _g;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nfunction SvgArrowUp(props) {\n  return /*#__PURE__*/React.createElement(\"svg\", _extends({\n    viewBox: \"0 0 14.121 21.811\"\n  }, props), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n    fill: \"none\",\n    stroke: \"currentColor\",\n    strokeLinecap: \"round\",\n    strokeWidth: 1.5\n  }, /*#__PURE__*/React.createElement(\"path\", {\n    d: \"M7.061 21.061v-20M1.061 7.061l6-6 6 6\"\n  }))));\n}\nexport default SvgArrowUp;","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nfunction SvgChevronRightMep(props) {\n  return /*#__PURE__*/React.createElement(\"svg\", _extends({\n    viewBox: \"0 0 8.617 15.434\"\n  }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n    d: \"M1.414 1.413l6.2 6.359L1.42 14.02\",\n    fill: \"none\",\n    stroke: \"currentColor\",\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    strokeWidth: 2\n  })));\n}\nexport default SvgChevronRightMep;","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nfunction SvgChevronRight(props) {\n  return /*#__PURE__*/React.createElement(\"svg\", _extends({\n    viewBox: \"0 0 7.791 13.658\"\n  }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n    d: \"M.537.523l6.2 6.359L.543 13.13\",\n    fill: \"none\",\n    stroke: \"currentColor\",\n    strokeWidth: 1.5\n  })));\n}\nexport default SvgChevronRight;","import { css } from 'styled-components';\r\nimport { fluidUnit } from './fluid';\r\n/**\r\n * Returns the aspect ratio of the given width and height as a percentage.\r\n */\r\nexport function aspectRatio(width, height) {\r\n    return (height / width) * 100;\r\n}\r\n/**\r\n * Re-usable styles for image container where the\r\n * image needs to maintain it's aspect ratio\r\n *\r\n * @param width\r\n * @param height\r\n * @returns\r\n */\r\nexport function imageWrapperPreserveRatio(width, height, \r\n/**\r\n * Additonal values to use if the ratio increases over time\r\n */\r\nmaxWidth, maxHeight) {\r\n    if (!width && !height) {\r\n        return null;\r\n    }\r\n    let padding;\r\n    if (maxWidth && maxHeight) {\r\n        padding = `${fluidUnit(aspectRatio(width, height), aspectRatio(maxWidth, maxHeight), '%')}`;\r\n    }\r\n    else {\r\n        padding = `${aspectRatio(width, height)}%`;\r\n    }\r\n    return css `\r\n    position: relative;\r\n    height: 0;\r\n    width: 100%;\r\n    overflow: hidden;\r\n    overflow: clip;\r\n    padding-bottom: ${padding};\r\n  `;\r\n}\r\n/**\r\n * Re-usable styles for an image placed within\r\n * a container maintaining aspect ratio\r\n */\r\nexport const imageCoverContainer = (relative) => css `\r\n  display: block;\r\n  width: 100%;\r\n  height: 100%;\r\n  object-fit: cover;\r\n  object-position: center;\r\n  ${!relative && 'position: absolute; top: 0;left: 0;'}\r\n`;\r\n","import { css } from 'styled-components';\r\nexport default {\r\n    navHeight: 107,\r\n    navHeightTablet: 80,\r\n    navHeightMobile: 59,\r\n};\r\nexport const ButtonReset = css `\r\n  border: none;\r\n  outline: none;\r\n  padding: 0px;\r\n  background: none;\r\n  border-radius: 0px;\r\n`;\r\n","import { fluid } from '@helpers/fluid';\r\nimport { css } from 'styled-components';\r\nimport { Device, from } from './media';\r\nexport const SitePadding = fluid(16, 64);\r\nexport const SiteWidth = 1916;\r\nexport const GutterWidth = fluid(10, 24);\r\nexport const siteWide = css `\r\n  margin: 0 auto;\r\n  max-width: var(--siteWidth);\r\n  padding: 0 var(--sitePadding);\r\n  width: 100%;\r\n`;\r\nexport const baseGrid = css `\r\n  display: grid;\r\n  column-gap: var(--gutterWidth);\r\n  grid-template-columns: repeat(6, 1fr);\r\n\r\n  @media ${from(Device.Tablet)} {\r\n    grid-template-columns: repeat(8, 1fr);\r\n  }\r\n\r\n  @media ${from(Device.Desktop)} {\r\n    grid-template-columns: repeat(12, 1fr);\r\n  }\r\n`;\r\n","import { Cloudinary } from '@cloudinary/url-gen';\r\nimport { dpr, format, quality } from '@cloudinary/url-gen/actions/delivery';\r\nimport { crop, fill, limitFill, pad } from '@cloudinary/url-gen/actions/resize';\r\nimport { face } from '@cloudinary/url-gen/qualifiers/focusOn';\r\nimport { auto as autoFormat } from '@cloudinary/url-gen/qualifiers/format';\r\nimport { autoGravity, focusOn } from '@cloudinary/url-gen/qualifiers/gravity';\r\nimport { auto as autoQuality } from '@cloudinary/url-gen/qualifiers/quality';\r\nconst cl_ess = new Cloudinary({\r\n    cloud: {\r\n        cloudName: 'ddql4dnla',\r\n    },\r\n    url: {\r\n        secure: true,\r\n    },\r\n});\r\nconst cl_mep = new Cloudinary({\r\n    cloud: {\r\n        cloudName: 'dyeapoiad',\r\n    },\r\n    url: {\r\n        secure: true,\r\n    },\r\n});\r\n/**\r\n * Create an image URL for ImageProcessor\r\n * @param image The image model\r\n * @param imageParams The image parameters\r\n * @returns The image URL\r\n */\r\nexport function imageUrl(image, imageParams, site) {\r\n    if (!image?.src) {\r\n        return '';\r\n    }\r\n    const cl = site === 'mep' ? cl_mep : cl_ess;\r\n    let clImage = cl.image(image.src);\r\n    const resizeAction = getResizeAction(image, imageParams);\r\n    if (resizeAction) {\r\n        clImage = clImage.resize(resizeAction);\r\n    }\r\n    clImage = clImage.delivery(getFormatAction(imageParams)).delivery(quality(autoQuality()));\r\n    if (imageParams.dpr) {\r\n        clImage = clImage.delivery(dpr(imageParams.dpr));\r\n    }\r\n    // Set version to enable mass invalidation.\r\n    clImage.setVersion('1');\r\n    /** Compensate for cloudinary incorrectly encoding comma character to %252C */\r\n    return clImage.toURL().replaceAll('%252C', '%2C');\r\n}\r\nfunction getResizeAction(image, imageParams) {\r\n    if (!imageParams.width && !imageParams.height) {\r\n        console.warn(`Image Not Resized: \"${image.src}\"`, image, imageParams);\r\n        return undefined;\r\n    }\r\n    let resizeAction;\r\n    switch (imageParams.crop) {\r\n        case 'crop':\r\n            resizeAction = crop();\r\n            break;\r\n        case 'fill':\r\n            resizeAction = fill();\r\n            break;\r\n        case 'lfill':\r\n            resizeAction = limitFill();\r\n            break;\r\n        case 'pad':\r\n            resizeAction = pad();\r\n            break;\r\n        default:\r\n            resizeAction = fill();\r\n            break;\r\n    }\r\n    if (imageParams.width) {\r\n        resizeAction = resizeAction.width(imageParams.width);\r\n    }\r\n    else if (imageParams.widthratio) {\r\n        resizeAction = resizeAction.aspectRatio(imageParams.widthratio);\r\n    }\r\n    if (imageParams.height) {\r\n        resizeAction = resizeAction.height(imageParams.height);\r\n    }\r\n    else if (imageParams.heightratio) {\r\n        resizeAction = resizeAction.aspectRatio(imageParams.heightratio);\r\n    }\r\n    if (imageParams.crop !== 'pad') {\r\n        if (imageParams.gravity === 'face') {\r\n            resizeAction = resizeAction.gravity(focusOn(face()));\r\n        }\r\n        else {\r\n            resizeAction = resizeAction.gravity(autoGravity());\r\n        }\r\n    }\r\n    return resizeAction;\r\n}\r\nfunction getFormatAction(imageParams) {\r\n    let formatAction;\r\n    if (imageParams.format) {\r\n        formatAction = format(imageParams.format);\r\n    }\r\n    else {\r\n        formatAction = format(autoFormat());\r\n    }\r\n    return formatAction;\r\n}\r\nexport function getSrcs(image, upper, lower, steps, site, ratio) {\r\n    if (!image) {\r\n        return [];\r\n    }\r\n    const sizes = getRange(upper, lower, steps);\r\n    return sizes.map((size) => `${imageUrl(image, { width: size, heightratio: ratio }, site)} ${size}w`);\r\n}\r\nexport function getRetinaSrcs(image, width, site, ratio) {\r\n    const dprs = [1, 1.5, 2];\r\n    return dprs.map((dpr) => `${imageUrl(image, { width: width, heightratio: ratio, dpr }, site)} ${dpr}x`);\r\n}\r\nfunction getRange(upper, lower, steps) {\r\n    const difference = upper - lower;\r\n    const increment = difference / (steps - 1);\r\n    return [\r\n        lower,\r\n        ...Array(steps - 2)\r\n            .fill('')\r\n            .map((_, index) => Math.ceil(lower + increment * (index + 1))),\r\n        upper,\r\n    ];\r\n}\r\n","export function sleep(ms) {\r\n    return new Promise((resolve) => setTimeout(resolve, ms));\r\n}\r\n/** Clamp index to be within the min/max index range. */\r\nexport function clamp(value, max) {\r\n    return Math.max(Math.min(value, max), 0);\r\n}\r\nexport const highlightTitleWords = (title) => title.replaceAll(/\\*([\\w\\W]+)\\*/g, '<span>$1</span>');\r\nexport const formatCurrency = (amount) => amount.toLocaleString('en-GB', { style: 'currency', currency: 'GBP' });\r\nexport const getInitials = (name) => {\r\n    const nameArray = name.split(' ');\r\n    const firstNameIn = nameArray[0].charAt(0).toUpperCase();\r\n    const lastNameIn = nameArray[nameArray.length - 1].charAt(0).toUpperCase();\r\n    return firstNameIn + lastNameIn;\r\n};\r\n/**\r\n * (?=.*[a-z])        = Check for lowercase letter\r\n * (?=.*[A-Z])        = Check for uppercase letter\r\n * (?=.*[0-9])        = Check for digit\r\n * (?=.*[^\\da-zA-Z])  = Check for non-digit and non-letter (^ negates the [] section)\r\n * .{8,}              = Make sure it is at least 8 characters, no maximum\r\n */\r\nexport const PASSWORD_RULE_REGEX = /^(?=.*[A-Z])(?=.*[\\W])(?=.*[0-9])(?=.*[a-z])(?=.*[^\\da-zA-Z]).{8,}$/;\r\n/**\r\n * Make sure this explains PASSWORD_RULE_REGEX\r\n */\r\nexport const PASSWORD_RULE_MESSAGE = `Please enter a valid password`;\r\n/**\r\n * Set of rules to keep the wording consistant throughout the site.\r\n */\r\nexport const PASSWORD_RULES = [\r\n    'At least 8 characters long',\r\n    'At least one Uppercase letter A-Z',\r\n    'At least one Lowercase letter A-Z',\r\n    'At least one base 10 digits 0-9',\r\n    'At least one special character (~!@#$%^&*_-+=`|(){}[]:;”’<>,.?/)',\r\n];\r\n/**\r\n * Rule structure for react-hook-form\r\n */\r\nexport const PASSWORD_RULE = {\r\n    message: PASSWORD_RULE_MESSAGE,\r\n    value: PASSWORD_RULE_REGEX,\r\n};\r\n/**\r\n * Rule structure for react-hook-form\r\n */\r\nexport const EMAIL_RULE = {\r\n    message: `Please enter a valid email address`,\r\n    value: /^[\\w\\-.\\d*]+@[\\w\\-\\d.]+(\\.\\w*)$/,\r\n};\r\n/**\r\n * Rule structure for react-hook-form\r\n */\r\nexport const PHONE_NUMBER_RULE = {\r\n    message: `Please enter a valid phone number`,\r\n    value: /^[\\d+()\\-x ]+$/,\r\n};\r\n/**\r\n * Rule structure for full name. At least two words separated by a space\r\n */\r\nexport const FULL_NAME_RULE = {\r\n    message: `Please enter a valid full name with first and last names`,\r\n    value: /^([\\w\\-\\u00C0-\\u017F]{3,})+\\s+([\\w\\s\\-\\u00C0-\\u017F]{3,})+$/i,\r\n};\r\n/**\r\n * Rule structure for react-hook-form\r\n * Pattern based on https://andrewwburns.com/2018/04/10/uk-postcode-validation-regex/, but allows both lower and uppercase\r\n */\r\nexport const POSTCODE_RULE = {\r\n    message: `Please enter a valid postcode`,\r\n    value: /^(([A-Za-z][0-9]{1,2})|(([A-Za-z][A-HJ-Ya-hj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-HJ-Ya-hj-y][0-9]?[A-Za-z])))) [0-9][A-Za-z]{2}$/,\r\n};\r\n","import { domMax, LazyMotion } from 'framer-motion';\r\nimport React from 'react';\r\nexport function withMotionMax(WrappedComponent) {\r\n    const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\r\n    const ComponentWithMotionMax = (props) => {\r\n        return (React.createElement(LazyMotion, { features: domMax, strict: true },\r\n            React.createElement(WrappedComponent, { ...props })));\r\n    };\r\n    ComponentWithMotionMax.displayName = `withMotionMax(${displayName})`;\r\n    return ComponentWithMotionMax;\r\n}\r\n","import { useEffect, useRef } from 'react';\r\n/**\r\n * Use the IntersectionObserver to track visibility of an element in the viewport.\r\n * @param {IntersectionObserverCallback} callback\r\n * @param {IntersectionObserverInit} options\r\n * @returns {UseIntersectionObserverReturn}\r\n */\r\nfunction useIntersectionObserver(callback, options = {}) {\r\n    const observerRef = useRef(null);\r\n    const rootRef = useRef(null);\r\n    const elementRef = useRef(null);\r\n    useEffect(() => {\r\n        if (!elementRef.current) {\r\n            return undefined;\r\n        }\r\n        observerRef.current = new IntersectionObserver(callback, {\r\n            root: rootRef.current,\r\n            ...options,\r\n        });\r\n        observerRef.current.observe(elementRef.current);\r\n        return () => {\r\n            if (observerRef.current === null) {\r\n                return;\r\n            }\r\n            observerRef.current.disconnect();\r\n        };\r\n    }, [callback, options]);\r\n    return { elementRef, observerRef, rootRef };\r\n}\r\nexport default useIntersectionObserver;\r\n","import { useState } from 'react';\r\nimport useIntersectionObserver from './useIntersectionObserver';\r\nexport function useInView(options, reverse = false, isEditMode = false) {\r\n    const [inView, setInView] = useState(false);\r\n    const { elementRef } = useIntersectionObserver((entries) => {\r\n        if (entries[0].isIntersecting) {\r\n            setInView(true);\r\n        }\r\n        else if (reverse === true) {\r\n            setInView(false);\r\n        }\r\n    }, options);\r\n    return [elementRef, isEditMode ? true : inView];\r\n}\r\n","import ChevronRightMEP from '@img/icons/chevron-right-mep.svg';\r\nimport ChevronRight from '@img/icons/chevron-right.svg';\r\nimport { FocusRing } from '@react-aria/focus';\r\nimport * as React from 'react';\r\nimport S from '../Button/Button.styles';\r\nconst LinkButton = ({ buttonType, children, icon, iconOnly, iconPosition = 'right', site, ...otherProps }) => {\r\n    return (React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n        React.createElement(S.Container, { as: \"a\", \"data-icon-only\": iconOnly, \"data-icon-position\": iconPosition, \"data-type\": buttonType, ...otherProps },\r\n            React.createElement(S.Text, null, children),\r\n            buttonType === 'link' || buttonType === 'link-alt' || buttonType === 'link-black' ? (React.createElement(S.IconWrapper, null, site === 'ess' ? React.createElement(ChevronRight, null) : React.createElement(ChevronRightMEP, null))) : (React.createElement(React.Fragment, null, icon ? React.createElement(S.IconWrapper, null, icon) : null)))));\r\n};\r\nexport default LinkButton;\r\n","import { useCarousel } from '@hooks/useCarousel';\r\nimport noop from 'lodash/noop';\r\nimport * as React from 'react';\r\nconst CarouselContext = React.createContext({\r\n    activeIndex: 0,\r\n    goToIndex: noop,\r\n    goToNext: noop,\r\n    goToPrev: noop,\r\n    reinitialise: noop,\r\n    maxIndex: 0,\r\n    offset: 0,\r\n    offsets: [],\r\n    recalculate: noop,\r\n    refContainer: null,\r\n    refTrack: null,\r\n    count: 0,\r\n});\r\nexport const useCarouselContext = () => React.useContext(CarouselContext);\r\nconst CarouselProvider = ({ children, ...otherProps }) => {\r\n    const carousel = useCarousel(otherProps);\r\n    return React.createElement(CarouselContext.Provider, { value: carousel }, children);\r\n};\r\nexport default CarouselProvider;\r\n","import * as React from 'react';\r\nimport { useResize } from './useResize';\r\nexport function useCarousel(params) {\r\n    const refContainer = React.useRef(null);\r\n    const refTrack = React.useRef(null);\r\n    const [carouselState, dispatch] = React.useReducer(carouselReducer, {\r\n        activeIndex: 0,\r\n        maxIndex: 0,\r\n        offsets: [],\r\n        count: 0,\r\n    });\r\n    useResize({\r\n        callback: initCarousel,\r\n        debounce: 100,\r\n        immediate: true,\r\n        on: 'x',\r\n    });\r\n    React.useEffect(() => {\r\n        initCarousel();\r\n    }, [carouselState.count]);\r\n    return {\r\n        ...carouselState,\r\n        goToIndex,\r\n        goToNext,\r\n        goToPrev,\r\n        reinitialise,\r\n        recalculate: initCarousel,\r\n        offset: carouselState.offsets[carouselState.activeIndex],\r\n        refContainer,\r\n        refTrack,\r\n        count: carouselState.count,\r\n    };\r\n    /**\r\n     * Calculate the px offset for the track for the target item index.\r\n     * @param index\r\n     * @returns\r\n     */\r\n    function calculateOffset(index) {\r\n        if (!refTrack.current) {\r\n            return 0;\r\n        }\r\n        const items = Array.from(refTrack.current.children);\r\n        const itemsUntilIndex = items.slice(0, index);\r\n        const sum = itemsUntilIndex\r\n            .map((el) => Math.ceil(el.getBoundingClientRect().width))\r\n            .reduce((p, c) => p + c, 0);\r\n        return sum;\r\n    }\r\n    /**\r\n     * Initialise the reducer state.\r\n     */\r\n    function initCarousel() {\r\n        const offsets = [];\r\n        // Pre-calculate the px offset for each item in the carousel.\r\n        Array.from(Array(params.count)).forEach((_, index) => {\r\n            offsets.push(calculateOffset(index));\r\n        });\r\n        // Determine what the max index value needs to be in order for the last item to be within view.\r\n        const containerWidth = refContainer.current?.getBoundingClientRect().width ?? 0;\r\n        const trackWidth = offsets[offsets.length - 1];\r\n        let maxIndex = 0;\r\n        if (trackWidth >= containerWidth) {\r\n            for (let index = 0; index < offsets.length; index++) {\r\n                const offset = offsets[index];\r\n                const remainder = trackWidth - offset;\r\n                if (remainder <= containerWidth) {\r\n                    maxIndex = index;\r\n                    break;\r\n                }\r\n            }\r\n        }\r\n        // Initialise the carousel state.\r\n        dispatch({ type: 'init', payload: { offsets, maxIndex, count: params.count } });\r\n    }\r\n    /**\r\n     * Go to the next item.\r\n     */\r\n    function goToNext(wrap) {\r\n        dispatch({ type: 'next', payload: { wrap: wrap ?? false } });\r\n    }\r\n    /**\r\n     * Go to the previous item.\r\n     */\r\n    function goToPrev(wrap) {\r\n        dispatch({ type: 'prev', payload: { wrap: wrap ?? false } });\r\n    }\r\n    /**\r\n     * Go to the target index.\r\n     */\r\n    function goToIndex(index) {\r\n        dispatch({ type: 'goto', payload: index });\r\n    }\r\n    /**\r\n     * Go to the target index.\r\n     */\r\n    function reinitialise(count) {\r\n        dispatch({ type: 'reinitialise', payload: count });\r\n    }\r\n    function carouselReducer(state, action) {\r\n        switch (action.type) {\r\n            case 'init':\r\n                return {\r\n                    activeIndex: 0,\r\n                    maxIndex: action.payload.maxIndex,\r\n                    offsets: action.payload.offsets,\r\n                    count: action.payload.count,\r\n                };\r\n            case 'reinitialise':\r\n                return {\r\n                    ...state,\r\n                    count: action.payload,\r\n                };\r\n            case 'goto':\r\n                return { ...state, activeIndex: clamp(action.payload) };\r\n            case 'next':\r\n                if (action.payload.wrap && state.activeIndex === state.maxIndex) {\r\n                    return { ...state, activeIndex: 0 };\r\n                }\r\n                return { ...state, activeIndex: clamp(state.activeIndex + 1) };\r\n            case 'prev':\r\n                if (action.payload.wrap && state.activeIndex === 0) {\r\n                    return { ...state, activeIndex: state.maxIndex };\r\n                }\r\n                return { ...state, activeIndex: clamp(state.activeIndex - 1) };\r\n        }\r\n        /** Clamp index to be within the min/max index range. */\r\n        function clamp(value) {\r\n            return Math.max(Math.min(value, state.maxIndex), 0);\r\n        }\r\n    }\r\n}\r\n","import debounce from 'lodash/debounce';\r\nimport * as React from 'react';\r\nexport function useResize(params) {\r\n    const refWindowHeight = React.useRef();\r\n    const refWindowWidth = React.useRef();\r\n    const onResize = React.useCallback(debounce(() => {\r\n        const prevHeight = refWindowHeight.current;\r\n        const prevWidth = refWindowWidth.current;\r\n        const newHeight = window.innerHeight;\r\n        const newWidth = window.innerWidth;\r\n        const shouldTrigger = params.on === 'both' ||\r\n            (params.on === 'y' && prevHeight !== newHeight) ||\r\n            (params.on === 'x' && prevWidth !== newWidth);\r\n        if (shouldTrigger) {\r\n            params.callback();\r\n        }\r\n        refWindowHeight.current = newHeight;\r\n        refWindowWidth.current = newWidth;\r\n    }, params.debounce), [params.debounce, params.on]);\r\n    React.useEffect(() => {\r\n        if (!params.callback) {\r\n            return;\r\n        }\r\n        if (params.immediate) {\r\n            onResize();\r\n        }\r\n        window.addEventListener('resize', onResize);\r\n        return () => {\r\n            window.removeEventListener('resize', onResize);\r\n        };\r\n    }, [params.on]);\r\n}\r\n","import { transition } from '@helpers/animate';\r\nimport brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport { ButtonReset } from '@helpers/global';\r\nimport { Device, from, until } from '@helpers/media';\r\nimport styled from 'styled-components';\r\nconst Container = styled.nav ``;\r\nconst Button = styled.button `\r\n  ${ButtonReset};\r\n  ${transition('background-size, border-color, color', 0.2)};\r\n\r\n  display: inline-flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n  border: 0;\r\n  font-size: ${fluid(16, 18)};\r\n  line-height: 1em;\r\n  width: ${fluid(40, 60)};\r\n  height: ${fluid(40, 60)};\r\n  padding: 0;\r\n  margin: 0;\r\n  border: 1px solid var(--colourBorder);\r\n  background: var(--colourBg);\r\n  background-image: linear-gradient(to right, var(--colourBgActive), var(--colourBgActive));\r\n  background-repeat: no-repeat;\r\n  background-size: 0% 100%;\r\n  color: var(--colourText);\r\n\r\n  > svg {\r\n    height: ${fluid(16, 20)};\r\n  }\r\n\r\n  &[aria-label='Previous'] {\r\n    [data-site='mep'] & {\r\n      border-radius: 50% 0 0 50%;\r\n    }\r\n\r\n    svg {\r\n      transform: rotate(-90deg);\r\n    }\r\n  }\r\n\r\n  &[aria-label='Next'] {\r\n    [data-site='mep'] & {\r\n      border-radius: 0 50% 50% 0;\r\n    }\r\n\r\n    svg {\r\n      transform: rotate(90deg);\r\n    }\r\n  }\r\n\r\n  &:disabled {\r\n    @media ${until(Device.TabletLarge)} {\r\n      background-color: var(--colourBgDisabled);\r\n      border-color: var(--colourBorderDisabled);\r\n    }\r\n\r\n    @media ${from(Device.TabletLarge)} {\r\n      opacity: 0.66;\r\n    }\r\n  }\r\n\r\n  &.focus-ring {\r\n    outline: var(--colourText);\r\n    outline-offset: 3px;\r\n    outline-width: 2px;\r\n    outline-style: solid;\r\n  }\r\n\r\n  &:not(:disabled) {\r\n    &.focus-ring,\r\n    &:hover {\r\n      color: var(--colourTextActive);\r\n      border-color: var(--colourBorderActive);\r\n      background-size: 100% 100%;\r\n    }\r\n\r\n    /* Mobile click styles - button should mimic press */\r\n    @media ${until(Device.TabletLarge)} {\r\n      ${transition('transform, background-size, border-color, color', 0.15)};\r\n      &:active {\r\n        transform: translateY(1.5px);\r\n      }\r\n    }\r\n  }\r\n\r\n  /* Colour settings */\r\n\r\n  --colourBg: ${brand.global.red};\r\n  --colourBgActive: ${brand.global.red};\r\n  --colourBorder: ${brand.global.red};\r\n  --colourBorderActive: ${brand.global.red};\r\n  --colourTextActive: ${brand.global.white};\r\n  --colourText: ${brand.global.white};\r\n\r\n  @media ${from(Device.TabletLarge)} {\r\n    --colourText: ${brand.global.red};\r\n    --colourBg: 'transparent';\r\n  }\r\n\r\n  [data-site='ess'] & {\r\n    --colourBgDisabled: ${brand.ess.secondary.midGrey};\r\n    --colourBorderDisabled: ${brand.ess.secondary.midGrey};\r\n  }\r\n\r\n  [data-site='mep'] & {\r\n    --colourBgDisabled: ${brand.mep.secondary.darkestGrey};\r\n    --colourBorderDisabled: ${brand.mep.secondary.darkestGrey};\r\n  }\r\n`;\r\nconst ControlsStyles = {\r\n    Container,\r\n    Button,\r\n};\r\nexport default ControlsStyles;\r\n","import SvgArrow from '@img/icons/arrow-up.svg';\r\nimport * as React from 'react';\r\nimport { useCarouselContext } from '../CarouselProvider/CarouselProvider';\r\nimport S from './Controls.styles';\r\nconst Controls = React.forwardRef((props, ref) => {\r\n    const carousel = useCarouselContext();\r\n    const activeIndex = props.activeIndex ? props.activeIndex : carousel.activeIndex;\r\n    const maxIndex = props.maxIndex ? props.maxIndex : carousel.maxIndex;\r\n    if (maxIndex === 0) {\r\n        return null;\r\n    }\r\n    return (React.createElement(S.Container, { ref: ref, className: props.className },\r\n        React.createElement(S.Button, { \"aria-label\": \"Previous\", disabled: !props.wrap && activeIndex === 0, onClick: (event) => {\r\n                event.preventDefault();\r\n                if (props.onClickPrev) {\r\n                    props.onClickPrev();\r\n                }\r\n                else {\r\n                    carousel.goToPrev(props.wrap);\r\n                }\r\n            } },\r\n            React.createElement(SvgArrow, null)),\r\n        React.createElement(S.Button, { \"aria-label\": \"Next\", disabled: !props.wrap && activeIndex === maxIndex, onClick: (event) => {\r\n                event.preventDefault();\r\n                if (props.onClickNext) {\r\n                    props.onClickNext();\r\n                }\r\n                else {\r\n                    carousel.goToNext(props.wrap);\r\n                }\r\n            } },\r\n            React.createElement(SvgArrow, null))));\r\n});\r\nControls.displayName = 'Controls';\r\nexport default Controls;\r\n","import { transition } from '@helpers/animate';\r\nimport brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport { ButtonReset } from '@helpers/global';\r\nimport styled from 'styled-components';\r\nconst Container = styled.nav `\r\n  --gap: ${fluid(10, 12)};\r\n  --colorActive: ${brand.global.red};\r\n\r\n  &[data-site='ess'] {\r\n    --colorInactive: ${brand.ess.secondary.darkGrey};\r\n    --clickPadding: 0;\r\n    --height: ${fluid(40, 60)};\r\n    --width: 2px;\r\n  }\r\n\r\n  &[data-site='mep'] {\r\n    --colorInactive: ${brand.global.white};\r\n    --clickPadding: 12px;\r\n    --gap: 10px;\r\n    --height: 12px;\r\n    --width: 12px;\r\n  }\r\n\r\n  display: flex;\r\n  flex-direction: row;\r\n  gap: var(--gap);\r\n  place-content: center;\r\n  place-items: center;\r\n  user-select: none;\r\n`;\r\nconst Item = styled.button `\r\n  ${ButtonReset};\r\n\r\n  position: relative;\r\n  display: grid;\r\n  background: none;\r\n  padding: var(--clickPadding) 0;\r\n  place-content: center;\r\n  height: var(--height);\r\n  width: var(--width);\r\n\r\n  &::before {\r\n    ${transition('color')};\r\n\r\n    content: '';\r\n    display: block;\r\n    background: none;\r\n    background-image: linear-gradient(to right, currentColor, currentColor);\r\n    background-repeat: no-repeat;\r\n    background-size: 100% 100%;\r\n    grid-column: 1 / span 1;\r\n    grid-row: 1 / span 1;\r\n\r\n    ${Container}[data-site='mep'] & {\r\n      border-radius: 100%;\r\n    }\r\n  }\r\n\r\n  &::before {\r\n    ${transition('color')};\r\n\r\n    color: var(--colorInactive);\r\n    height: var(--height);\r\n    width: var(--width);\r\n\r\n    ${Container}[data-site='mep'] & {\r\n      border: 1px solid var(--colorActive);\r\n    }\r\n  }\r\n\r\n  /* Enable focus styles for Safari */\r\n  &:focus {\r\n    outline: none;\r\n\r\n    &::before {\r\n      outline: auto;\r\n      outline-color: currentColor;\r\n      outline-offset: 5px;\r\n      outline-width: thin;\r\n    }\r\n  }\r\n\r\n  /* Enable hover styles for Safari */\r\n  &:not(span):hover::before {\r\n    color: var(--colorActive);\r\n  }\r\n\r\n  /* Disable focus styles if focus visible is supported */\r\n  &:not(:focus-visible):focus {\r\n    outline: none;\r\n  }\r\n\r\n  /* Reapply focus styles for focus-visible browsers */\r\n  &:focus-visible {\r\n    outline: none;\r\n\r\n    &::before {\r\n      outline: auto;\r\n      outline-color: currentColor;\r\n      outline-offset: 5px;\r\n      outline-width: thin;\r\n    }\r\n  }\r\n\r\n  /* Apply hover styles for focus-visible browsers */\r\n  &:not(:focus-visible):hover::after {\r\n    color: var(--colorActive);\r\n  }\r\n\r\n  /* Apply active styles */\r\n  &[aria-current='true']::before {\r\n    color: var(--colorActive);\r\n  }\r\n\r\n  &.focus-ring {\r\n    outline: auto;\r\n    outline-offset: 3px;\r\n    outline-color: var(--textColor);\r\n  }\r\n`;\r\nconst DotPaginationStyles = {\r\n    Container,\r\n    Item,\r\n};\r\nexport default DotPaginationStyles;\r\n","import * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport S from './DotPagination.styles';\r\nconst DotPagination = ({ ariaLabel, count, value, onChange, site = 'ess', }) => {\r\n    const [active, setActive] = React.useState(value);\r\n    React.useEffect(() => {\r\n        setActive(value);\r\n    }, [value]);\r\n    if (count === 1) {\r\n        return null;\r\n    }\r\n    return (React.createElement(S.Container, { \"aria-label\": ariaLabel, \"data-site\": site }, Array.from(Array(count)).map((_, index) => {\r\n        return (React.createElement(\"div\", { key: `DotPaginationItem_${index}` },\r\n            React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n                React.createElement(S.Item, { \"aria-current\": index === active, \"aria-label\": `Go to ${index + 1}`, role: \"button\", ...(site === 'ess'\r\n                        ? { as: 'span' }\r\n                        : {\r\n                            onClick: (event) => {\r\n                                event.preventDefault();\r\n                                onChange(index);\r\n                            },\r\n                        }) }))));\r\n    })));\r\n};\r\nexport default DotPagination;\r\n","import { fluid } from '@helpers/fluid';\r\nimport { siteWide } from '@helpers/grid';\r\nimport styled from 'styled-components';\r\nconst Container = styled.section `\r\n  --scrollMargin: ${fluid(8, 12)};\r\n\r\n  scroll-margin: var(--scrollMargin) 0 0;\r\n\r\n  // Spacing styles.\r\n  &[data-spacing='padding'] {\r\n    padding: var(--sectionSpacing) 0;\r\n  }\r\n\r\n  &[data-spacing='margin'] {\r\n    margin: var(--sectionSpacing) 0;\r\n  }\r\n\r\n  // Overflow styles.\r\n  &[data-overflow='hidden'] {\r\n    overflow: hidden;\r\n  }\r\n\r\n  &[data-overflow='clip'] {\r\n    overflow: clip;\r\n  }\r\n`;\r\nconst Inner = styled.div `\r\n  ${siteWide};\r\n`;\r\nconst SectionWrapperStyles = {\r\n    Container,\r\n    Inner,\r\n};\r\nexport default SectionWrapperStyles;\r\n","import * as React from 'react';\r\nconst BasePropsContext = React.createContext({ site: 'ess' });\r\nexport function withBaseProps(WrappedComponent) {\r\n    const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\r\n    const ComponentWithBaseProps = (props) => {\r\n        return (React.createElement(BasePropsContext.Provider, { value: props },\r\n            React.createElement(WrappedComponent, { ...props })));\r\n    };\r\n    ComponentWithBaseProps.displayName = `withBaseProps(${displayName})`;\r\n    return ComponentWithBaseProps;\r\n}\r\nexport const useBaseProps = () => React.useContext(BasePropsContext);\r\n","import { useBaseProps } from '@hoc/withBaseProps';\r\nimport * as React from 'react';\r\nimport S from './SectionWrapper.styles';\r\nconst SectionWrapper = React.forwardRef((props, ref) => {\r\n    const { children, layout = 'default', overflow = 'default', spacing = 'margin', site = 'ess', ...otherProps } = props;\r\n    const baseProps = useBaseProps();\r\n    return (React.createElement(S.Container, { ref: ref, id: baseProps.id, \"data-overflow\": overflow, \"data-spacing\": spacing, \"data-site\": site, ...otherProps }, renderLayout()));\r\n    function renderLayout() {\r\n        if (layout === 'fullWidth') {\r\n            return children;\r\n        }\r\n        return React.createElement(S.Inner, null, children);\r\n    }\r\n});\r\nSectionWrapper.displayName = 'SectionWrapper';\r\nexport default SectionWrapper;\r\n","const CLOUD_NAME_ESS = 'ddql4dnla';\r\nconst CLOUD_NAME_MEP = 'dyeapoiad';\r\nconst DEFAULT_OPTIONS = {\r\n    audio: null,\r\n    format: 'mp4',\r\n};\r\nexport function videoUrl(id, options = {}, site) {\r\n    const combined = { ...DEFAULT_OPTIONS, ...options };\r\n    const CLOUD_NAME = site === 'mep' ? CLOUD_NAME_MEP : CLOUD_NAME_ESS;\r\n    let transformations = '';\r\n    if (options.audio) {\r\n        transformations += '/ac_none';\r\n    }\r\n    return `https://res.cloudinary.com/${CLOUD_NAME}/video/upload${transformations}/${id}.${combined.format}`;\r\n}\r\n","import { imageCoverContainer } from '@helpers/aspectRatio';\r\nimport { fluid } from '@helpers/fluid';\r\nimport fonts from '@helpers/fonts';\r\nimport { baseGrid, siteWide } from '@helpers/grid';\r\nimport { Device, from, until } from '@helpers/media';\r\nimport { h1 } from '@helpers/typography';\r\nimport { m } from 'framer-motion';\r\nimport styled from 'styled-components';\r\nconst Container = styled(m.article) `\r\n  display: grid;\r\n  grid-row: 1 / span 2;\r\n  grid-column: 1;\r\n  height: 100%;\r\n  grid-template-rows: 1fr 2fr;\r\n\r\n  @media ${from(Device.MobileLarge)} {\r\n    grid-row: 1 / span 3;\r\n  }\r\n`;\r\nconst MediaWrapper = styled(m.div) `\r\n  position: relative;\r\n  display: block;\r\n  grid-row: 1 / span 2;\r\n  grid-column: 1;\r\n  overflow: hidden;\r\n  overflow: clip;\r\n  padding-top: var(--headerHeight);\r\n  user-select: none;\r\n  z-index: 1;\r\n\r\n  &::after {\r\n    content: '';\r\n    position: absolute;\r\n    top: 0;\r\n    left: 0;\r\n    height: 100%;\r\n    background: rgba(0, 0, 0, var(--tintAmount));\r\n    width: 100%;\r\n  }\r\n\r\n  @media ${from(Device.MobileLarge)} {\r\n    grid-row: 1 / span 3;\r\n  }\r\n`;\r\nconst Image = styled(m.img) `\r\n  ${imageCoverContainer()}\r\n\r\n  &[data-mobile-only=true] {\r\n    @media ${from(Device.MobileLarge)} {\r\n      display: none;\r\n    }\r\n  }\r\n`;\r\nconst Video = styled.video `\r\n  ${imageCoverContainer()}\r\n\r\n  &[data-hide-mobile=true] {\r\n    @media ${until(Device.Tablet)} {\r\n      display: none;\r\n    }\r\n  }\r\n`;\r\nconst Inner = styled.div `\r\n  ${siteWide};\r\n  ${baseGrid};\r\n\r\n  position: relative;\r\n  z-index: 2;\r\n  grid-row: 2 / span 1;\r\n  grid-column: 1;\r\n\r\n  @media ${from(Device.MobileLarge)} {\r\n    grid-row: 2 / span 2;\r\n    transform: translateY(-1ch);\r\n  }\r\n`;\r\nconst ContentWrapper = styled(m.div) `\r\n  grid-column: 1 / span 6;\r\n\r\n  @media ${from(Device.MobileLarge)} {\r\n    grid-column: 2 / span 5;\r\n  }\r\n`;\r\nconst Title = styled(m.h2) `\r\n  ${h1};\r\n\r\n  margin-bottom: ${fluid(12, 26)};\r\n\r\n  > span {\r\n    display: inline;\r\n  }\r\n\r\n  [data-site='mep'] & {\r\n    ${fonts.museoSlab.medium};\r\n\r\n    > span {\r\n      ${fonts.daxWide.bold};\r\n    }\r\n  }\r\n`;\r\nconst Content = styled(m.p) `\r\n  ${fonts.daxWide.medium};\r\n\r\n  font-size: ${fluid(16, 20)};\r\n  line-height: ${fluid(26, 30)};\r\n  margin-bottom: 0;\r\n`;\r\nconst CtaWrapper = styled(m.div) `\r\n  display: block;\r\n  margin-top: ${fluid(24, 40)};\r\n`;\r\nconst BannerItemStyles = {\r\n    Container,\r\n    Content,\r\n    ContentWrapper,\r\n    CtaWrapper,\r\n    Image,\r\n    MediaWrapper,\r\n    Inner,\r\n    Title,\r\n    Video,\r\n};\r\nexport default BannerItemStyles;\r\n","import { getSrcs, imageUrl } from '@helpers/image';\r\nimport { highlightTitleWords } from '@helpers/utils';\r\nimport { videoUrl } from '@helpers/video';\r\nimport LinkButton from '@stories/Components/Global/Buttons/LinkButton/LinkButton';\r\nimport { m, useReducedMotion } from 'framer-motion';\r\nimport * as React from 'react';\r\nimport S from './BannerItem.styles';\r\nconst BannerItem = (props) => {\r\n    const reduceMotion = useReducedMotion();\r\n    const refVideo = React.useRef(null);\r\n    const srcs = props.image ? getSrcs(props.image, 2650, 375, 10, props.site) : [];\r\n    React.useEffect(() => {\r\n        if (!refVideo.current) {\r\n            return;\r\n        }\r\n        if (props.active && props.shouldPlay) {\r\n            refVideo.current.currentTime = 0;\r\n            refVideo.current.play();\r\n        }\r\n        else {\r\n            refVideo.current.pause();\r\n        }\r\n    }, [props.active, props.shouldPlay]);\r\n    return (React.createElement(S.Container, { \"aria-current\": props.active === 'active', initial: props.index === 0 ? 'initial' : 'after', animate: props.active, variants: {\r\n            before: {\r\n                transition: {\r\n                    when: 'afterChildren',\r\n                },\r\n                transitionEnd: {\r\n                    display: 'none',\r\n                },\r\n            },\r\n            after: {\r\n                transition: {\r\n                    when: 'afterChildren',\r\n                },\r\n                transitionEnd: {\r\n                    display: 'none',\r\n                },\r\n            },\r\n            active: {\r\n                display: 'grid',\r\n            },\r\n        }, style: { '--tintAmount': props.tint } },\r\n        React.createElement(S.MediaWrapper, { variants: {\r\n                before: {\r\n                    opacity: 1,\r\n                    zIndex: 0,\r\n                    y: reduceMotion ? 0 : -150,\r\n                    transitionEnd: {\r\n                        opacity: 0,\r\n                    },\r\n                },\r\n                after: {\r\n                    opacity: 1,\r\n                    zIndex: 0,\r\n                    y: reduceMotion ? 0 : 150,\r\n                    transitionEnd: {\r\n                        opacity: 0,\r\n                    },\r\n                },\r\n                active: {\r\n                    opacity: 1,\r\n                    zIndex: 1,\r\n                    y: 0,\r\n                },\r\n            }, transition: {\r\n                duration: 0.5,\r\n                ease: 'easeOut',\r\n            } },\r\n            props.image && (React.createElement(S.Image, { alt: props.image.altText, draggable: false, loading: props.index === 0 ? 'eager' : 'lazy', role: \"presentation\", src: srcs[0].split(' ')[0], srcSet: srcs.join(','), \"data-mobile-only\": !!props.video })),\r\n            props.video && (React.createElement(S.Video, { ref: refVideo, muted: true, playsInline: true, preload: \"none\", loop: true, poster: props.image\r\n                    ? imageUrl(props.image, {}, props.site)\r\n                    : videoUrl(props.video, { format: 'jpg' }, props.site), \"data-hide-mobile\": !!props.image },\r\n                React.createElement(\"source\", { type: \"video/webm\", src: videoUrl(props.video, { format: 'webm' }, props.site) }),\r\n                React.createElement(\"source\", { type: \"video/mp4\", src: videoUrl(props.video, { format: 'mp4' }, props.site) })))),\r\n        React.createElement(S.Inner, null,\r\n            React.createElement(S.ContentWrapper, { variants: {\r\n                    before: {},\r\n                    after: {},\r\n                    active: {\r\n                        transition: {\r\n                            delayChildren: reduceMotion ? 0 : 0.5,\r\n                            staggerChildren: reduceMotion ? 0 : 0.15,\r\n                        },\r\n                    },\r\n                } },\r\n                React.createElement(S.Title, { as: props.index === 0 ? m.h1 : m.h2, variants: {\r\n                        initial: {\r\n                            opacity: 0,\r\n                            x: reduceMotion ? 0 : -20,\r\n                        },\r\n                        after: {\r\n                            opacity: 0,\r\n                            x: reduceMotion ? 0 : -20,\r\n                        },\r\n                        before: {\r\n                            opacity: 0,\r\n                            x: reduceMotion ? 0 : -20,\r\n                        },\r\n                        active: {\r\n                            opacity: 1,\r\n                            x: 0,\r\n                        },\r\n                    }, transition: {\r\n                        duration: 0.5,\r\n                        ease: 'easeOut',\r\n                    }, dangerouslySetInnerHTML: { __html: highlightTitleWords(props.title) } }),\r\n                props.content && (React.createElement(S.Content, { variants: {\r\n                        initial: {\r\n                            opacity: 0,\r\n                            x: reduceMotion ? 0 : -20,\r\n                        },\r\n                        after: {\r\n                            opacity: 0,\r\n                            x: reduceMotion ? 0 : -20,\r\n                        },\r\n                        before: {\r\n                            opacity: 0,\r\n                            x: reduceMotion ? 0 : -20,\r\n                        },\r\n                        active: {\r\n                            opacity: 1,\r\n                            x: 0,\r\n                        },\r\n                    }, transition: {\r\n                        duration: 0.5,\r\n                        ease: 'easeOut',\r\n                    }, dangerouslySetInnerHTML: { __html: props.content } })),\r\n                props.cta && (React.createElement(S.CtaWrapper, { variants: {\r\n                        initial: {\r\n                            opacity: 0,\r\n                            x: reduceMotion ? 0 : -20,\r\n                        },\r\n                        after: {\r\n                            opacity: 0,\r\n                            x: reduceMotion ? 0 : -20,\r\n                        },\r\n                        before: {\r\n                            opacity: 0,\r\n                            x: reduceMotion ? 0 : -20,\r\n                        },\r\n                        active: {\r\n                            opacity: 1,\r\n                            x: 0,\r\n                        },\r\n                    }, transition: {\r\n                        duration: 0.5,\r\n                        ease: 'easeOut',\r\n                    } },\r\n                    React.createElement(LinkButton, { buttonType: \"default\", href: props.cta.url, target: props.cta.target, site: props.site }, props.cta.text)))))));\r\n};\r\nexport default BannerItem;\r\n","import { transition } from '@helpers/animate';\r\nimport brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport { baseGrid, siteWide } from '@helpers/grid';\r\nimport { Device, from } from '@helpers/media';\r\nimport ControlsStyles from '@stories/Components/Global/Carousels/Carousel/Controls/Controls.styles';\r\nimport DotPaginationStyles from '@stories/Components/Global/DotPagination/DotPagination.styles';\r\nimport SectionWrapper from '@stories/Components/Global/SectionWrapper/SectionWrapper';\r\nimport styled from 'styled-components';\r\nconst Container = styled(SectionWrapper) `\r\n  --fgColor: ${brand.global.white};\r\n\r\n  position: relative;\r\n  display: grid;\r\n  color: var(--fgColor);\r\n  height: calc(100vh - var(--headerHeight, 0px));\r\n  overflow: hidden;\r\n  overflow: clip;\r\n  grid-template-rows: 1fr 2fr;\r\n`;\r\nconst Inner = styled.div `\r\n  ${siteWide};\r\n  ${baseGrid};\r\n\r\n  grid-area: 1 / 1;\r\n  height: 100%;\r\n  align-items: end;\r\n  padding-top: 20px;\r\n  padding-bottom: 30px;\r\n\r\n  @media ${from(Device.MobileLarge)} {\r\n    align-items: start;\r\n    padding-top: 0;\r\n    padding-bottom: 0;\r\n    grid-row: 2 / span 2;\r\n  }\r\n`;\r\nconst PaginationWrapper = styled.div `\r\n  grid-column: 1 / span 1;\r\n  position: relative;\r\n  z-index: 3;\r\n  display: flex;\r\n  flex-direction: column;\r\n  align-items: flex-start;\r\n\r\n  ${Container}[data-site='mep'] & {\r\n    gap: 40px;\r\n  }\r\n\r\n  ${DotPaginationStyles.Container} {\r\n    transform: translateY(-100%) rotate(90deg);\r\n    transform-origin: bottom left;\r\n    height: ${fluid(40, 60)};\r\n  }\r\n\r\n  ${Container}[data-site='ess'] & {\r\n    ${DotPaginationStyles.Container} {\r\n      --colorBg: ${brand.global.red};\r\n      --colorInactive: ${brand.global.red};\r\n      --colorActive: ${brand.global.white};\r\n      --colorBgActive: ${brand.global.white};\r\n    }\r\n\r\n    ${DotPaginationStyles.Item}::after {\r\n      ${transition('max-height')};\r\n\r\n      display: block;\r\n      content: '';\r\n      background: var(--colorActive);\r\n      height: calc(var(--height) + var(--sitePadding));\r\n      width: var(--width);\r\n      transform: translate(0, 100%);\r\n      max-height: 0;\r\n      position: absolute;\r\n    }\r\n\r\n    ${DotPaginationStyles.Item} {\r\n      &[aria-current='true']::after {\r\n        max-height: 100%;\r\n      }\r\n    }\r\n  }\r\n\r\n  ${ControlsStyles.Container} {\r\n    display: flex;\r\n    flex-direction: column;\r\n  }\r\n\r\n  ${ControlsStyles.Button} {\r\n    transform: rotate(90deg);\r\n\r\n    @media ${from(Device.TabletLarge)} {\r\n      --colourBorder: ${brand.global.white};\r\n      --colourText: ${brand.global.white};\r\n    }\r\n  }\r\n`;\r\nconst HeroBannerCarouselStyles = {\r\n    Container,\r\n    PaginationWrapper,\r\n    Inner,\r\n};\r\nexport default HeroBannerCarouselStyles;\r\n","import { withMotionMax } from '@hoc/withMotionMax';\r\nimport { useInView } from '@hooks/useInView';\r\nimport Controls from '@stories/Components/Global/Carousels/Carousel/Controls/Controls';\r\nimport DotPagination from '@stories/Components/Global/DotPagination/DotPagination';\r\nimport * as React from 'react';\r\nimport BannerItem from './BannerItem/BannerItem';\r\nimport S from './HeroBannerCarousel.styles';\r\nconst HeroBannerCarousel = (props) => {\r\n    const [activeIndex, setActiveIndex] = React.useState(0);\r\n    const [refContainer, inView] = useInView({}, true);\r\n    if (!props.items || props.items.length === 0) {\r\n        return null;\r\n    }\r\n    return (React.createElement(S.Container, { ref: refContainer, site: props.site, spacing: 'none', layout: 'fullWidth' },\r\n        props.items.map((item, index) => (React.createElement(BannerItem, { key: item.id, ...item, active: index === activeIndex ? 'active' : index > activeIndex ? 'after' : 'before', index: index, shouldPlay: inView, site: props.site }))),\r\n        React.createElement(S.Inner, null, props.items.length > 1 && (React.createElement(S.PaginationWrapper, null,\r\n            React.createElement(DotPagination, { ariaLabel: 'Home banner carousel controls', count: props.items.length, value: activeIndex, onChange: (index) => setActiveIndex(index), site: props.site }),\r\n            React.createElement(Controls, { onClickPrev: () => setActiveIndex(Math.max(activeIndex - 1, 0)), onClickNext: () => setActiveIndex(Math.min(activeIndex + 1, props.items.length - 1)), activeIndex: activeIndex, maxIndex: props.items.length - 1 }))))));\r\n};\r\nexport default withMotionMax(HeroBannerCarousel);\r\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol'),\n    getRawTag = require('./_getRawTag'),\n    objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n    undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n  if (value == null) {\n    return value === undefined ? undefinedTag : nullTag;\n  }\n  return (symToStringTag && symToStringTag in Object(value))\n    ? getRawTag(value)\n    : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n  return string\n    ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n    : string;\n}\n\nmodule.exports = baseTrim;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var Symbol = require('./_Symbol');\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 * 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/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n  var isOwn = hasOwnProperty.call(value, symToStringTag),\n      tag = value[symToStringTag];\n\n  try {\n    value[symToStringTag] = undefined;\n    var unmasked = true;\n  } catch (e) {}\n\n  var result = nativeObjectToString.call(value);\n  if (unmasked) {\n    if (isOwn) {\n      value[symToStringTag] = tag;\n    } else {\n      delete value[symToStringTag];\n    }\n  }\n  return result;\n}\n\nmodule.exports = getRawTag;\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 * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n  return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n  var index = string.length;\n\n  while (index-- && reWhitespace.test(string.charAt(index))) {}\n  return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var isObject = require('./isObject'),\n    now = require('./now'),\n    toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\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 * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * 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 debounced 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 `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n *  Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n *  The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n *  Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n *   'leading': true,\n *   'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n  var lastArgs,\n      lastThis,\n      maxWait,\n      result,\n      timerId,\n      lastCallTime,\n      lastInvokeTime = 0,\n      leading = false,\n      maxing = false,\n      trailing = true;\n\n  if (typeof func != 'function') {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  wait = toNumber(wait) || 0;\n  if (isObject(options)) {\n    leading = !!options.leading;\n    maxing = 'maxWait' in options;\n    maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n    trailing = 'trailing' in options ? !!options.trailing : trailing;\n  }\n\n  function invokeFunc(time) {\n    var args = lastArgs,\n        thisArg = lastThis;\n\n    lastArgs = lastThis = undefined;\n    lastInvokeTime = time;\n    result = func.apply(thisArg, args);\n    return result;\n  }\n\n  function leadingEdge(time) {\n    // Reset any `maxWait` timer.\n    lastInvokeTime = time;\n    // Start the timer for the trailing edge.\n    timerId = setTimeout(timerExpired, wait);\n    // Invoke the leading edge.\n    return leading ? invokeFunc(time) : result;\n  }\n\n  function remainingWait(time) {\n    var timeSinceLastCall = time - lastCallTime,\n        timeSinceLastInvoke = time - lastInvokeTime,\n        timeWaiting = wait - timeSinceLastCall;\n\n    return maxing\n      ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n      : timeWaiting;\n  }\n\n  function shouldInvoke(time) {\n    var timeSinceLastCall = time - lastCallTime,\n        timeSinceLastInvoke = time - lastInvokeTime;\n\n    // Either this is the first call, activity has stopped and we're at the\n    // trailing edge, the system time has gone backwards and we're treating\n    // it as the trailing edge, or we've hit the `maxWait` limit.\n    return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n      (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n  }\n\n  function timerExpired() {\n    var time = now();\n    if (shouldInvoke(time)) {\n      return trailingEdge(time);\n    }\n    // Restart the timer.\n    timerId = setTimeout(timerExpired, remainingWait(time));\n  }\n\n  function trailingEdge(time) {\n    timerId = undefined;\n\n    // Only invoke if we have `lastArgs` which means `func` has been\n    // debounced at least once.\n    if (trailing && lastArgs) {\n      return invokeFunc(time);\n    }\n    lastArgs = lastThis = undefined;\n    return result;\n  }\n\n  function cancel() {\n    if (timerId !== undefined) {\n      clearTimeout(timerId);\n    }\n    lastInvokeTime = 0;\n    lastArgs = lastCallTime = lastThis = timerId = undefined;\n  }\n\n  function flush() {\n    return timerId === undefined ? result : trailingEdge(now());\n  }\n\n  function debounced() {\n    var time = now(),\n        isInvoking = shouldInvoke(time);\n\n    lastArgs = arguments;\n    lastThis = this;\n    lastCallTime = time;\n\n    if (isInvoking) {\n      if (timerId === undefined) {\n        return leadingEdge(lastCallTime);\n      }\n      if (maxing) {\n        // Handle invocations in a tight loop.\n        clearTimeout(timerId);\n        timerId = setTimeout(timerExpired, wait);\n        return invokeFunc(lastCallTime);\n      }\n    }\n    if (timerId === undefined) {\n      timerId = setTimeout(timerExpired, wait);\n    }\n    return result;\n  }\n  debounced.cancel = cancel;\n  debounced.flush = flush;\n  return debounced;\n}\n\nmodule.exports = debounce;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\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 an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"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 object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or 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 a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n  return typeof value == 'symbol' ||\n    (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\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","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n *   console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n  return root.Date.now();\n};\n\nmodule.exports = now;\n","var baseTrim = require('./_baseTrim'),\n    isObject = require('./isObject'),\n    isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n  if (typeof value == 'number') {\n    return value;\n  }\n  if (isSymbol(value)) {\n    return NAN;\n  }\n  if (isObject(value)) {\n    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n    value = isObject(other) ? (other + '') : other;\n  }\n  if (typeof value != 'string') {\n    return value === 0 ? value : +value;\n  }\n  value = baseTrim(value);\n  var isBinary = reIsBinary.test(value);\n  return (isBinary || reIsOctal.test(value))\n    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n    : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n"],"names":["_g","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","viewBox","fill","stroke","strokeLinecap","strokeWidth","d","_path","strokeLinejoin","aspectRatio","width","height","imageWrapperPreserveRatio","maxWidth","maxHeight","padding","fluidUnit","css","imageCoverContainer","relative","ButtonReset","fluid","SiteWidth","siteWide","baseGrid","from","Device","cl_ess","Cloudinary","cloud","cloudName","url","secure","cl_mep","imageUrl","image","imageParams","site","src","clImage","resizeAction","console","warn","crop","limitFill","pad","widthratio","heightratio","gravity","focusOn","face","autoGravity","getResizeAction","resize","delivery","formatAction","format","autoFormat","getFormatAction","quality","autoQuality","dpr","setVersion","toURL","replaceAll","getSrcs","upper","lower","steps","ratio","sizes","increment","Array","map","_","index","Math","ceil","getRange","size","getRetinaSrcs","sleep","ms","Promise","resolve","setTimeout","clamp","value","max","min","highlightTitleWords","title","formatCurrency","amount","toLocaleString","style","currency","getInitials","name","nameArray","split","charAt","toUpperCase","PASSWORD_RULES","PASSWORD_RULE","message","EMAIL_RULE","PHONE_NUMBER_RULE","POSTCODE_RULE","withMotionMax","WrappedComponent","displayName","ComponentWithMotionMax","React","LazyMotion","features","domMax","strict","callback","options","undefined","observerRef","useRef","rootRef","elementRef","useEffect","current","IntersectionObserver","root","observe","disconnect","useInView","reverse","isEditMode","inView","setInView","useState","useIntersectionObserver","entries","isIntersecting","_ref","buttonType","children","icon","iconOnly","iconPosition","otherProps","FocusRing","focusRingClass","S","as","ChevronRight","ChevronRightMEP","CarouselContext","activeIndex","goToIndex","noop","goToNext","goToPrev","reinitialise","maxIndex","offset","offsets","recalculate","refContainer","refTrack","count","useCarouselContext","carousel","params","carouselState","dispatch","state","action","type","payload","wrap","refWindowHeight","refWindowWidth","onResize","debounce","prevHeight","prevWidth","newHeight","window","innerHeight","newWidth","innerWidth","on","immediate","addEventListener","removeEventListener","useResize","initCarousel","_refContainer$current","_refContainer$current2","forEach","push","slice","el","getBoundingClientRect","reduce","p","c","calculateOffset","containerWidth","trackWidth","useCarousel","Provider","Container","styled","componentId","Button","transition","until","brand","Controls","ref","className","disabled","onClick","event","preventDefault","onClickPrev","SvgArrow","onClickNext","Item","ariaLabel","onChange","active","setActive","role","Inner","BasePropsContext","SectionWrapper","layout","overflow","spacing","baseProps","id","DEFAULT_OPTIONS","audio","videoUrl","combined","CLOUD_NAME","transformations","m","withConfig","MediaWrapper","Image","Video","ContentWrapper","Title","h1","fonts","Content","CtaWrapper","reduceMotion","useReducedMotion","refVideo","srcs","shouldPlay","currentTime","play","pause","initial","animate","variants","before","when","transitionEnd","display","after","tint","opacity","zIndex","y","duration","ease","alt","altText","draggable","loading","srcSet","join","video","muted","playsInline","preload","loop","poster","delayChildren","staggerChildren","x","dangerouslySetInnerHTML","__html","content","cta","LinkButton","href","text","PaginationWrapper","DotPaginationStyles","ControlsStyles","setActiveIndex","items","item","BannerItem","DotPagination","Symbol","module","exports","getRawTag","objectToString","symToStringTag","toStringTag","trimmedEndIndex","reTrimStart","string","replace","freeGlobal","g","objectProto","nativeObjectToString","toString","isOwn","tag","unmasked","e","result","freeSelf","self","Function","reWhitespace","test","isObject","now","toNumber","nativeMax","nativeMin","func","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","timeWaiting","remainingWait","debounced","isInvoking","leadingEdge","clearTimeout","cancel","flush","baseGetTag","isObjectLike","Date","baseTrim","isSymbol","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","other","valueOf","isBinary"],"sourceRoot":""}