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AAS,aAAc,CAAE7C,MAAO,EAAK,GACnED,OAAO6K,OAAO6B,EAAQ5J,QAAS4J,GAC/BG,EAAOH,QAAUA,EAAQ5J,gCChuB3B+J,EAAAH,QAAAI,EAAA","sources":["webpack://_N_E/./node_modules/next/dist/client/legacy/image.js","webpack://_N_E/./node_modules/next/legacy/image.js","webpack://_N_E/"],"sourcesContent":["\"use client\";\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return Image;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _interop_require_wildcard = require(\"@swc/helpers/_/_interop_require_wildcard\");\nconst _react = /*#__PURE__*/ _interop_require_wildcard._(require(\"react\"));\nconst _head = /*#__PURE__*/ _interop_require_default._(require(\"../../shared/lib/head\"));\nconst _imageconfig = require(\"../../shared/lib/image-config\");\nconst _useintersection = require(\"../use-intersection\");\nconst _imageconfigcontext = require(\"../../shared/lib/image-config-context\");\nconst _warnonce = require(\"../../shared/lib/utils/warn-once\");\nconst _normalizetrailingslash = require(\"../normalize-trailing-slash\");\n\nfunction normalizeSrc(src) {\n return src[0] === \"/\" ? src.slice(1) : src;\n}\nconst configEnv = process.env.__NEXT_IMAGE_OPTS;\nconst loadedImageURLs = new Set();\nconst allImgs = new Map();\nlet perfObserver;\nconst emptyDataURL = \"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\";\nif (typeof window === \"undefined\") {\n globalThis.__NEXT_IMAGE_IMPORTED = true;\n}\nconst VALID_LOADING_VALUES = [\n \"lazy\",\n \"eager\",\n undefined\n];\nfunction imgixLoader(param) {\n let { config , src , width , quality } = param;\n // Demo: https://static.imgix.net/daisy.png?auto=format&fit=max&w=300\n const url = new URL(\"\" + config.path + normalizeSrc(src));\n const params = url.searchParams;\n // auto params can be combined with comma separation, or reiteration\n params.set(\"auto\", params.getAll(\"auto\").join(\",\") || \"format\");\n params.set(\"fit\", params.get(\"fit\") || \"max\");\n params.set(\"w\", params.get(\"w\") || width.toString());\n if (quality) {\n params.set(\"q\", quality.toString());\n }\n return url.href;\n}\nfunction akamaiLoader(param) {\n let { config , src , width } = param;\n return \"\" + config.path + normalizeSrc(src) + \"?imwidth=\" + width;\n}\nfunction cloudinaryLoader(param) {\n let { config , src , width , quality } = param;\n // Demo: https://res.cloudinary.com/demo/image/upload/w_300,c_limit,q_auto/turtles.jpg\n const params = [\n \"f_auto\",\n \"c_limit\",\n \"w_\" + width,\n \"q_\" + (quality || \"auto\")\n ];\n const paramsString = params.join(\",\") + \"/\";\n return \"\" + config.path + paramsString + normalizeSrc(src);\n}\nfunction customLoader(param) {\n let { src } = param;\n throw new Error('Image with src \"' + src + '\" is missing \"loader\" prop.' + \"\\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader\");\n}\nfunction defaultLoader(param) {\n let { config , src , width , quality } = param;\n if (process.env.NODE_ENV !== \"production\") {\n const missingValues = [];\n // these should always be provided but make sure they are\n if (!src) missingValues.push(\"src\");\n if (!width) missingValues.push(\"width\");\n if (missingValues.length > 0) {\n throw new Error(\"Next Image Optimization requires \" + missingValues.join(\", \") + \" to be provided. Make sure you pass them as props to the `next/image` component. Received: \" + JSON.stringify({\n src,\n width,\n quality\n }));\n }\n if (src.startsWith(\"//\")) {\n throw new Error('Failed to parse src \"' + src + '\" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');\n }\n if (!src.startsWith(\"/\") && (config.domains || config.remotePatterns)) {\n let parsedSrc;\n try {\n parsedSrc = new URL(src);\n } catch (err) {\n console.error(err);\n throw new Error('Failed to parse src \"' + src + '\" on `next/image`, if using relative image it must start with a leading slash \"/\" or be an absolute URL (http:// or https://)');\n }\n if (process.env.NODE_ENV !== \"test\" && // micromatch isn't compatible with edge runtime\n process.env.NEXT_RUNTIME !== \"edge\") {\n // We use dynamic require because this should only error in development\n const { hasMatch } = require(\"../../shared/lib/match-remote-pattern\");\n if (!hasMatch(config.domains, config.remotePatterns, parsedSrc)) {\n throw new Error(\"Invalid src prop (\" + src + ') on `next/image`, hostname \"' + parsedSrc.hostname + '\" is not configured under images in your `next.config.js`\\n' + \"See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host\");\n }\n }\n }\n }\n if (src.endsWith(\".svg\") && !config.dangerouslyAllowSVG) {\n // Special case to make svg serve as-is to avoid proxying\n // through the built-in Image Optimization API.\n return src;\n }\n return (0, _normalizetrailingslash.normalizePathTrailingSlash)(config.path) + \"?url=\" + encodeURIComponent(src) + \"&w=\" + width + \"&q=\" + (quality || 75);\n}\nconst loaders = new Map([\n [\n \"default\",\n defaultLoader\n ],\n [\n \"imgix\",\n imgixLoader\n ],\n [\n \"cloudinary\",\n cloudinaryLoader\n ],\n [\n \"akamai\",\n akamaiLoader\n ],\n [\n \"custom\",\n customLoader\n ]\n]);\nconst VALID_LAYOUT_VALUES = [\n \"fill\",\n \"fixed\",\n \"intrinsic\",\n \"responsive\",\n undefined\n];\nfunction isStaticRequire(src) {\n return src.default !== undefined;\n}\nfunction isStaticImageData(src) {\n return src.src !== undefined;\n}\nfunction isStaticImport(src) {\n return typeof src === \"object\" && (isStaticRequire(src) || isStaticImageData(src));\n}\nfunction getWidths(param, width, layout, sizes) {\n let { deviceSizes , allSizes } = param;\n if (sizes && (layout === \"fill\" || layout === \"responsive\")) {\n // Find all the \"vw\" percent sizes used in the sizes prop\n const viewportWidthRe = /(^|\\s)(1?\\d?\\d)vw/g;\n const percentSizes = [];\n for(let match; match = viewportWidthRe.exec(sizes); match){\n percentSizes.push(parseInt(match[2]));\n }\n if (percentSizes.length) {\n const smallestRatio = Math.min(...percentSizes) * 0.01;\n return {\n widths: allSizes.filter((s)=>s >= deviceSizes[0] * smallestRatio),\n kind: \"w\"\n };\n }\n return {\n widths: allSizes,\n kind: \"w\"\n };\n }\n if (typeof width !== \"number\" || layout === \"fill\" || layout === \"responsive\") {\n return {\n widths: deviceSizes,\n kind: \"w\"\n };\n }\n const widths = [\n ...new Set(// > This means that most OLED screens that say they are 3x resolution,\n // > are actually 3x in the green color, but only 1.5x in the red and\n // > blue colors. Showing a 3x resolution image in the app vs a 2x\n // > resolution image will be visually the same, though the 3x image\n // > takes significantly more data. Even true 3x resolution screens are\n // > wasteful as the human eye cannot see that level of detail without\n // > something like a magnifying glass.\n // https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html\n [\n width,\n width * 2 /*, width * 3*/ \n ].map((w)=>allSizes.find((p)=>p >= w) || allSizes[allSizes.length - 1]))\n ];\n return {\n widths,\n kind: \"x\"\n };\n}\nfunction generateImgAttrs(param) {\n let { config , src , unoptimized , layout , width , quality , sizes , loader } = param;\n if (unoptimized) {\n return {\n src,\n srcSet: undefined,\n sizes: undefined\n };\n }\n const { widths , kind } = getWidths(config, width, layout, sizes);\n const last = widths.length - 1;\n return {\n sizes: !sizes && kind === \"w\" ? \"100vw\" : sizes,\n srcSet: widths.map((w, i)=>loader({\n config,\n src,\n quality,\n width: w\n }) + \" \" + (kind === \"w\" ? w : i + 1) + kind).join(\", \"),\n // It's intended to keep `src` the last attribute because React updates\n // attributes in order. If we keep `src` the first one, Safari will\n // immediately start to fetch `src`, before `sizes` and `srcSet` are even\n // updated by React. That causes multiple unnecessary requests if `srcSet`\n // and `sizes` are defined.\n // This bug cannot be reproduced in Chrome or Firefox.\n src: loader({\n config,\n src,\n quality,\n width: widths[last]\n })\n };\n}\nfunction getInt(x) {\n if (typeof x === \"number\") {\n return x;\n }\n if (typeof x === \"string\") {\n return parseInt(x, 10);\n }\n return undefined;\n}\nfunction defaultImageLoader(loaderProps) {\n var _loaderProps_config;\n const loaderKey = ((_loaderProps_config = loaderProps.config) == null ? void 0 : _loaderProps_config.loader) || \"default\";\n const load = loaders.get(loaderKey);\n if (load) {\n return load(loaderProps);\n }\n throw new Error('Unknown \"loader\" found in \"next.config.js\". Expected: ' + _imageconfig.VALID_LOADERS.join(\", \") + \". Received: \" + loaderKey);\n}\n// See https://stackoverflow.com/q/39777833/266535 for why we use this ref\n// handler instead of the img's onLoad attribute.\nfunction handleLoading(img, src, layout, placeholder, onLoadingCompleteRef, setBlurComplete) {\n if (!img || img.src === emptyDataURL || img[\"data-loaded-src\"] === src) {\n return;\n }\n img[\"data-loaded-src\"] = src;\n const p = \"decode\" in img ? img.decode() : Promise.resolve();\n p.catch(()=>{}).then(()=>{\n if (!img.parentNode) {\n // Exit early in case of race condition:\n // - onload() is called\n // - decode() is called but incomplete\n // - unmount is called\n // - decode() completes\n return;\n }\n loadedImageURLs.add(src);\n if (placeholder === \"blur\") {\n setBlurComplete(true);\n }\n if (onLoadingCompleteRef == null ? void 0 : onLoadingCompleteRef.current) {\n const { naturalWidth , naturalHeight } = img;\n // Pass back read-only primitive values but not the\n // underlying DOM element because it could be misused.\n onLoadingCompleteRef.current({\n naturalWidth,\n naturalHeight\n });\n }\n if (process.env.NODE_ENV !== \"production\") {\n var _img_parentElement;\n if ((_img_parentElement = img.parentElement) == null ? void 0 : _img_parentElement.parentElement) {\n const parent = getComputedStyle(img.parentElement.parentElement);\n if (!parent.position) {\n // The parent has not been rendered to the dom yet and therefore it has no position. Skip the warnings for such cases.\n } else if (layout === \"responsive\" && parent.display === \"flex\") {\n (0, _warnonce.warnOnce)('Image with src \"' + src + '\" may not render properly as a child of a flex container. Consider wrapping the image with a div to configure the width.');\n } else if (layout === \"fill\" && parent.position !== \"relative\" && parent.position !== \"fixed\" && parent.position !== \"absolute\") {\n (0, _warnonce.warnOnce)('Image with src \"' + src + '\" may not render properly with a parent using position:\"' + parent.position + '\". Consider changing the parent style to position:\"relative\" with a width and height.');\n }\n }\n }\n });\n}\nconst ImageElement = (param)=>{\n let { imgAttributes , heightInt , widthInt , qualityInt , layout , className , imgStyle , blurStyle , isLazy , placeholder , loading , srcString , config , unoptimized , loader , onLoadingCompleteRef , setBlurComplete , setIntersection , onLoad , onError , isVisible , noscriptSizes , ...rest } = param;\n loading = isLazy ? \"lazy\" : loading;\n return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement(\"img\", {\n ...rest,\n ...imgAttributes,\n decoding: \"async\",\n \"data-nimg\": layout,\n className: className,\n style: {\n ...imgStyle,\n ...blurStyle\n },\n ref: (0, _react.useCallback)((img)=>{\n if (process.env.NODE_ENV !== \"production\") {\n if (img && !srcString) {\n console.error('Image is missing required \"src\" property:', img);\n }\n }\n setIntersection(img);\n if (img == null ? void 0 : img.complete) {\n handleLoading(img, srcString, layout, placeholder, onLoadingCompleteRef, setBlurComplete);\n }\n }, [\n setIntersection,\n srcString,\n layout,\n placeholder,\n onLoadingCompleteRef,\n setBlurComplete\n ]),\n onLoad: (event)=>{\n const img = event.currentTarget;\n handleLoading(img, srcString, layout, placeholder, onLoadingCompleteRef, setBlurComplete);\n if (onLoad) {\n onLoad(event);\n }\n },\n onError: (event)=>{\n if (placeholder === \"blur\") {\n // If the real image fails to load, this will still remove the placeholder.\n setBlurComplete(true);\n }\n if (onError) {\n onError(event);\n }\n }\n }), (isLazy || placeholder === \"blur\") && /*#__PURE__*/ _react.default.createElement(\"noscript\", null, /*#__PURE__*/ _react.default.createElement(\"img\", {\n ...rest,\n // @ts-ignore - TODO: upgrade to `@types/react@17`\n loading: loading,\n decoding: \"async\",\n \"data-nimg\": layout,\n style: imgStyle,\n className: className,\n ...generateImgAttrs({\n config,\n src: srcString,\n unoptimized,\n layout,\n width: widthInt,\n quality: qualityInt,\n sizes: noscriptSizes,\n loader\n })\n })));\n};\nfunction Image(param) {\n let { src , sizes , unoptimized =false , priority =false , loading , lazyRoot =null , lazyBoundary , className , quality , width , height , style , objectFit , objectPosition , onLoadingComplete , placeholder =\"empty\" , blurDataURL , ...all } = param;\n const configContext = (0, _react.useContext)(_imageconfigcontext.ImageConfigContext);\n const config = (0, _react.useMemo)(()=>{\n const c = configEnv || configContext || _imageconfig.imageConfigDefault;\n const allSizes = [\n ...c.deviceSizes,\n ...c.imageSizes\n ].sort((a, b)=>a - b);\n const deviceSizes = c.deviceSizes.sort((a, b)=>a - b);\n return {\n ...c,\n allSizes,\n deviceSizes\n };\n }, [\n configContext\n ]);\n let rest = all;\n let layout = sizes ? \"responsive\" : \"intrinsic\";\n if (\"layout\" in rest) {\n // Override default layout if the user specified one:\n if (rest.layout) layout = rest.layout;\n // Remove property so it's not spread on :\n delete rest.layout;\n }\n let loader = defaultImageLoader;\n if (\"loader\" in rest) {\n if (rest.loader) {\n const customImageLoader = rest.loader;\n loader = (obj)=>{\n const { config: _ , ...opts } = obj;\n // The config object is internal only so we must\n // not pass it to the user-defined loader()\n return customImageLoader(opts);\n };\n }\n // Remove property so it's not spread on \n delete rest.loader;\n }\n let staticSrc = \"\";\n if (isStaticImport(src)) {\n const staticImageData = isStaticRequire(src) ? src.default : src;\n if (!staticImageData.src) {\n throw new Error(\"An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received \" + JSON.stringify(staticImageData));\n }\n blurDataURL = blurDataURL || staticImageData.blurDataURL;\n staticSrc = staticImageData.src;\n if (!layout || layout !== \"fill\") {\n height = height || staticImageData.height;\n width = width || staticImageData.width;\n if (!staticImageData.height || !staticImageData.width) {\n throw new Error(\"An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received \" + JSON.stringify(staticImageData));\n }\n }\n }\n src = typeof src === \"string\" ? src : staticSrc;\n let isLazy = !priority && (loading === \"lazy\" || typeof loading === \"undefined\");\n if (src.startsWith(\"data:\") || src.startsWith(\"blob:\")) {\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs\n unoptimized = true;\n isLazy = false;\n }\n if (typeof window !== \"undefined\" && loadedImageURLs.has(src)) {\n isLazy = false;\n }\n if (config.unoptimized) {\n unoptimized = true;\n }\n const [blurComplete, setBlurComplete] = (0, _react.useState)(false);\n const [setIntersection, isIntersected, resetIntersected] = (0, _useintersection.useIntersection)({\n rootRef: lazyRoot,\n rootMargin: lazyBoundary || \"200px\",\n disabled: !isLazy\n });\n const isVisible = !isLazy || isIntersected;\n const wrapperStyle = {\n boxSizing: \"border-box\",\n display: \"block\",\n overflow: \"hidden\",\n width: \"initial\",\n height: \"initial\",\n background: \"none\",\n opacity: 1,\n border: 0,\n margin: 0,\n padding: 0\n };\n const sizerStyle = {\n boxSizing: \"border-box\",\n display: \"block\",\n width: \"initial\",\n height: \"initial\",\n background: \"none\",\n opacity: 1,\n border: 0,\n margin: 0,\n padding: 0\n };\n let hasSizer = false;\n let sizerSvgUrl;\n const layoutStyle = {\n position: \"absolute\",\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n boxSizing: \"border-box\",\n padding: 0,\n border: \"none\",\n margin: \"auto\",\n display: \"block\",\n width: 0,\n height: 0,\n minWidth: \"100%\",\n maxWidth: \"100%\",\n minHeight: \"100%\",\n maxHeight: \"100%\",\n objectFit,\n objectPosition\n };\n let widthInt = getInt(width);\n let heightInt = getInt(height);\n const qualityInt = getInt(quality);\n if (process.env.NODE_ENV !== \"production\") {\n if (!src) {\n // React doesn't show the stack trace and there's\n // no `src` to help identify which image, so we\n // instead console.error(ref) during mount.\n widthInt = widthInt || 1;\n heightInt = heightInt || 1;\n unoptimized = true;\n } else {\n if (!VALID_LAYOUT_VALUES.includes(layout)) {\n throw new Error('Image with src \"' + src + '\" has invalid \"layout\" property. Provided \"' + layout + '\" should be one of ' + VALID_LAYOUT_VALUES.map(String).join(\",\") + \".\");\n }\n if (typeof widthInt !== \"undefined\" && isNaN(widthInt) || typeof heightInt !== \"undefined\" && isNaN(heightInt)) {\n throw new Error('Image with src \"' + src + '\" has invalid \"width\" or \"height\" property. These should be numeric values.');\n }\n if (layout === \"fill\" && (width || height)) {\n (0, _warnonce.warnOnce)('Image with src \"' + src + '\" and \"layout=\\'fill\\'\" has unused properties assigned. Please remove \"width\" and \"height\".');\n }\n if (!VALID_LOADING_VALUES.includes(loading)) {\n throw new Error('Image with src \"' + src + '\" has invalid \"loading\" property. Provided \"' + loading + '\" should be one of ' + VALID_LOADING_VALUES.map(String).join(\",\") + \".\");\n }\n if (priority && loading === \"lazy\") {\n throw new Error('Image with src \"' + src + '\" has both \"priority\" and \"loading=\\'lazy\\'\" properties. Only one should be used.');\n }\n if (sizes && layout !== \"fill\" && layout !== \"responsive\") {\n (0, _warnonce.warnOnce)('Image with src \"' + src + '\" has \"sizes\" property but it will be ignored. Only use \"sizes\" with \"layout=\\'fill\\'\" or \"layout=\\'responsive\\'\"');\n }\n if (placeholder === \"blur\") {\n if (layout !== \"fill\" && (widthInt || 0) * (heightInt || 0) < 1600) {\n (0, _warnonce.warnOnce)('Image with src \"' + src + '\" is smaller than 40x40. Consider removing the \"placeholder=\\'blur\\'\" property to improve performance.');\n }\n if (!blurDataURL) {\n const VALID_BLUR_EXT = [\n \"jpeg\",\n \"png\",\n \"webp\",\n \"avif\"\n ] // should match next-image-loader\n ;\n throw new Error('Image with src \"' + src + '\" has \"placeholder=\\'blur\\'\" property but is missing the \"blurDataURL\" property.\\n Possible solutions:\\n - Add a \"blurDataURL\" property, the contents should be a small Data URL to represent the image\\n - Change the \"src\" property to a static import with one of the supported file types: ' + VALID_BLUR_EXT.join(\",\") + '\\n - Remove the \"placeholder\" property, effectively no blur effect\\n Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url');\n }\n }\n if (\"ref\" in rest) {\n (0, _warnonce.warnOnce)('Image with src \"' + src + '\" is using unsupported \"ref\" property. Consider using the \"onLoadingComplete\" property instead.');\n }\n if (!unoptimized && loader !== defaultImageLoader) {\n const urlStr = loader({\n config,\n src,\n width: widthInt || 400,\n quality: qualityInt || 75\n });\n let url;\n try {\n url = new URL(urlStr);\n } catch (err) {}\n if (urlStr === src || url && url.pathname === src && !url.search) {\n (0, _warnonce.warnOnce)('Image with src \"' + src + '\" has a \"loader\" property that does not implement width. Please implement it or use the \"unoptimized\" property instead.' + \"\\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader-width\");\n }\n }\n if (style) {\n let overwrittenStyles = Object.keys(style).filter((key)=>key in layoutStyle);\n if (overwrittenStyles.length) {\n (0, _warnonce.warnOnce)(\"Image with src \" + src + \" is assigned the following styles, which are overwritten by automatically-generated styles: \" + overwrittenStyles.join(\", \"));\n }\n }\n if (typeof window !== \"undefined\" && !perfObserver && window.PerformanceObserver) {\n perfObserver = new PerformanceObserver((entryList)=>{\n for (const entry of entryList.getEntries()){\n var _entry_element;\n // @ts-ignore - missing \"LargestContentfulPaint\" class with \"element\" prop\n const imgSrc = (entry == null ? void 0 : (_entry_element = entry.element) == null ? void 0 : _entry_element.src) || \"\";\n const lcpImage = allImgs.get(imgSrc);\n if (lcpImage && !lcpImage.priority && lcpImage.placeholder !== \"blur\" && !lcpImage.src.startsWith(\"data:\") && !lcpImage.src.startsWith(\"blob:\")) {\n // https://web.dev/lcp/#measure-lcp-in-javascript\n (0, _warnonce.warnOnce)('Image with src \"' + lcpImage.src + '\" was detected as the Largest Contentful Paint (LCP). Please add the \"priority\" property if this image is above the fold.' + \"\\nRead more: https://nextjs.org/docs/api-reference/next/legacy/image#priority\");\n }\n }\n });\n try {\n perfObserver.observe({\n type: \"largest-contentful-paint\",\n buffered: true\n });\n } catch (err) {\n // Log error but don't crash the app\n console.error(err);\n }\n }\n }\n }\n const imgStyle = Object.assign({}, style, layoutStyle);\n const blurStyle = placeholder === \"blur\" && !blurComplete ? {\n backgroundSize: objectFit || \"cover\",\n backgroundPosition: objectPosition || \"0% 0%\",\n filter: \"blur(20px)\",\n backgroundImage: 'url(\"' + blurDataURL + '\")'\n } : {};\n if (layout === \"fill\") {\n // \n wrapperStyle.display = \"block\";\n wrapperStyle.position = \"absolute\";\n wrapperStyle.top = 0;\n wrapperStyle.left = 0;\n wrapperStyle.bottom = 0;\n wrapperStyle.right = 0;\n } else if (typeof widthInt !== \"undefined\" && typeof heightInt !== \"undefined\") {\n // \n const quotient = heightInt / widthInt;\n const paddingTop = isNaN(quotient) ? \"100%\" : \"\" + quotient * 100 + \"%\";\n if (layout === \"responsive\") {\n // \n wrapperStyle.display = \"block\";\n wrapperStyle.position = \"relative\";\n hasSizer = true;\n sizerStyle.paddingTop = paddingTop;\n } else if (layout === \"intrinsic\") {\n // \n wrapperStyle.display = \"inline-block\";\n wrapperStyle.position = \"relative\";\n wrapperStyle.maxWidth = \"100%\";\n hasSizer = true;\n sizerStyle.maxWidth = \"100%\";\n sizerSvgUrl = \"data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27\" + widthInt + \"%27%20height=%27\" + heightInt + \"%27/%3e\";\n } else if (layout === \"fixed\") {\n // \n wrapperStyle.display = \"inline-block\";\n wrapperStyle.position = \"relative\";\n wrapperStyle.width = widthInt;\n wrapperStyle.height = heightInt;\n }\n } else {\n // \n if (process.env.NODE_ENV !== \"production\") {\n throw new Error('Image with src \"' + src + '\" must use \"width\" and \"height\" properties or \"layout=\\'fill\\'\" property.');\n }\n }\n let imgAttributes = {\n src: emptyDataURL,\n srcSet: undefined,\n sizes: undefined\n };\n if (isVisible) {\n imgAttributes = generateImgAttrs({\n config,\n src,\n unoptimized,\n layout,\n width: widthInt,\n quality: qualityInt,\n sizes,\n loader\n });\n }\n let srcString = src;\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof window !== \"undefined\") {\n let fullUrl;\n try {\n fullUrl = new URL(imgAttributes.src);\n } catch (e) {\n fullUrl = new URL(imgAttributes.src, window.location.href);\n }\n allImgs.set(fullUrl.href, {\n src,\n priority,\n placeholder\n });\n }\n }\n const linkProps = {\n imageSrcSet: imgAttributes.srcSet,\n imageSizes: imgAttributes.sizes,\n crossOrigin: rest.crossOrigin,\n referrerPolicy: rest.referrerPolicy\n };\n const useLayoutEffect = typeof window === \"undefined\" ? _react.default.useEffect : _react.default.useLayoutEffect;\n const onLoadingCompleteRef = (0, _react.useRef)(onLoadingComplete);\n const previousImageSrc = (0, _react.useRef)(src);\n (0, _react.useEffect)(()=>{\n onLoadingCompleteRef.current = onLoadingComplete;\n }, [\n onLoadingComplete\n ]);\n useLayoutEffect(()=>{\n if (previousImageSrc.current !== src) {\n resetIntersected();\n previousImageSrc.current = src;\n }\n }, [\n resetIntersected,\n src\n ]);\n const imgElementArgs = {\n isLazy,\n imgAttributes,\n heightInt,\n widthInt,\n qualityInt,\n layout,\n className,\n imgStyle,\n blurStyle,\n loading,\n config,\n unoptimized,\n placeholder,\n loader,\n srcString,\n onLoadingCompleteRef,\n setBlurComplete,\n setIntersection,\n isVisible,\n noscriptSizes: sizes,\n ...rest\n };\n return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement(\"span\", {\n style: wrapperStyle\n }, hasSizer ? /*#__PURE__*/ _react.default.createElement(\"span\", {\n style: sizerStyle\n }, sizerSvgUrl ? /*#__PURE__*/ _react.default.createElement(\"img\", {\n style: {\n display: \"block\",\n maxWidth: \"100%\",\n width: \"initial\",\n height: \"initial\",\n background: \"none\",\n opacity: 1,\n border: 0,\n margin: 0,\n padding: 0\n },\n alt: \"\",\n \"aria-hidden\": true,\n src: sizerSvgUrl\n }) : null) : null, /*#__PURE__*/ _react.default.createElement(ImageElement, imgElementArgs)), priority ? // Note how we omit the `href` attribute, as it would only be relevant\n // for browsers that do not support `imagesrcset`, and in those cases\n // it would likely cause the incorrect image to be preloaded.\n //\n // https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset\n /*#__PURE__*/ _react.default.createElement(_head.default, null, /*#__PURE__*/ _react.default.createElement(\"link\", {\n key: \"__nimg-\" + imgAttributes.src + imgAttributes.srcSet + imgAttributes.sizes,\n rel: \"preload\",\n as: \"image\",\n href: imgAttributes.srcSet ? undefined : imgAttributes.src,\n ...linkProps\n })) : null);\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=image.js.map","module.exports = require('../dist/client/legacy/image')\n"],"names":["Object","value","enumerable","get","Image","_interop_require_default","require","_interop_require_wildcard","_react","_","_head","_imageconfig","_useintersection","_imageconfigcontext","_normalizetrailingslash","normalizeSrc","src","slice","configEnv","process","loadedImageURLs","Set","emptyDataURL","loaders","Map","param","config","width","quality","endsWith","dangerouslyAllowSVG","normalizePathTrailingSlash","path","encodeURIComponent","url","URL","params","searchParams","set","getAll","join","toString","href","paramsString","isStaticRequire","undefined","default","generateImgAttrs","unoptimized","layout","sizes","loader","srcSet","widths","kind","getWidths","deviceSizes","allSizes","viewportWidthRe","percentSizes","match","exec","push","parseInt","length","smallestRatio","Math","min","filter","s","map","find","p","w","last","i","getInt","x","defaultImageLoader","loaderProps","_loaderProps_config","loaderKey","load","VALID_LOADERS","handleLoading","img","placeholder","onLoadingCompleteRef","setBlurComplete","decode","Promise","resolve","catch","then","parentNode","add","current","naturalWidth","naturalHeight","ImageElement","imgAttributes","heightInt","widthInt","qualityInt","className","imgStyle","blurStyle","isLazy","loading","srcString","setIntersection","onLoad","onError","isVisible","noscriptSizes","rest","createElement","Fragment","decoding","style","ref","useCallback","complete","event","currentTarget","sizerSvgUrl","priority","lazyRoot","lazyBoundary","height","objectFit","objectPosition","onLoadingComplete","blurDataURL","all","configContext","useContext","ImageConfigContext","useMemo","c","imageConfigDefault","imageSizes","sort","a","b","customImageLoader","opts","obj","staticSrc","staticImageData","JSON","stringify","startsWith","has","blurComplete","useState","isIntersected","resetIntersected","useIntersection","rootRef","rootMargin","disabled","wrapperStyle","boxSizing","display","overflow","background","opacity","border","margin","padding","sizerStyle","hasSizer","assign","position","top","left","bottom","right","minWidth","maxWidth","minHeight","maxHeight","backgroundSize","backgroundPosition","backgroundImage","quotient","paddingTop","isNaN","linkProps","imageSrcSet","crossOrigin","referrerPolicy","useLayoutEffect","useRef","previousImageSrc","useEffect","imgElementArgs","alt","key","rel","as","exports","__esModule","defineProperty","module","__webpack_require__"],"sourceRoot":""}