{"version":3,"file":"Profiles.CsAXfrG2.mjs","names":["createContext","forwardRef","forwardRef","containerStyle","forwardRef","nameStyle","useState","useRef","useContext","useRef","Fragment","forwardRef","forwardRef","forwardRef","Fragment"],"sources":["https:/asset.29cm.co.kr/contents/framer/components/systems/curations/Profiles/Root.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/Profile/ProfileImage.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/Profile/Profile.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/Profile/Profile.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/Profiles/Root.hooks.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/Profiles/List.js","https:/asset.29cm.co.kr/contents/framer/components/@shared/ProfileSkeleton/ProfileSkeleton.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/Profiles/Item.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/Profiles/Panels.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/Profiles/Panel.js","https:/asset.29cm.co.kr/contents/framer/components/systems/curations/Profiles/index.js"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nimport { createContext, forwardRef } from \"react\";\nimport { DraggableTabs } from \"../../../@shared/DraggableTabs/index.js\";\nimport \"../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../hooks/stores/toast/toast.store.js\";\nimport \"../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useBreakpoint } from \"../../../../hooks/useBreakpoint.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { Breakpoint } from \"../../../../styles/breakpoint.js\";\nconst ProfilesContext = createContext(null);\nconst Root = forwardRef(({\n  children,\n  loading = false,\n  defaultValue,\n  value,\n  dragPaddingLeft,\n  dragPaddingRight,\n  onValueChange\n}, ref) => {\n  const breakpoint = useBreakpoint();\n  const sidePadding = sidePaddingByBreakpoint[breakpoint];\n  return /* @__PURE__ */ jsx(ProfilesContext.Provider, { value: {\n    loading\n  }, children: /* @__PURE__ */ jsx(DraggableTabs.Root, { ref, defaultValue, value, dragPaddingLeft: dragPaddingLeft ?? sidePadding, dragPaddingRight: dragPaddingRight ?? sidePadding, onValueChange, children }) });\n});\nconst sidePaddingByBreakpoint = {\n  [Breakpoint.DESKTOP]: 0,\n  [Breakpoint.TABLET]: 16,\n  [Breakpoint.MOBILE]: 16\n};\nexport {\n  ProfilesContext,\n  Root\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport { mediaBuilder } from \"../../../utils/mediaBuilder.js\";\nconst IMAGE_HOST = \"img.29cm.co.kr\";\nconst IMAGE_WIDTH = 144;\nconst ProfileImage = forwardRef(({\n  style,\n  src,\n  theme,\n  ...rest\n}, ref) => {\n  const hasProtocol = src.includes(\"https://\");\n  const url = hasProtocol ? src : `https://${IMAGE_HOST}/${src}`;\n  const isExternalImage = hasProtocol && !src.includes(IMAGE_HOST);\n  if (!src) {\n    return /* @__PURE__ */ jsx(\"div\", { style: {\n      ...containerStyle,\n      backgroundColor: backgroundColorByTheme[theme]\n    } });\n  }\n  return /* @__PURE__ */ jsx(\"img\", { ref, ...rest, style: {\n    ...containerStyle,\n    ...style\n  }, loading: \"lazy\", src: isExternalImage ? src : optimize(url), alt: isExternalImage ? src : url });\n});\nconst optimize = (url) => {\n  return mediaBuilder(url).setWidth(IMAGE_WIDTH).getSrc();\n};\nconst containerStyle = {\n  width: 64,\n  height: 64,\n  boxSizing: \"border-box\",\n  objectFit: \"cover\",\n  borderRadius: 9999,\n  backgroundColor: \"#C4C4C4\"\n};\nconst backgroundColorByTheme = {\n  light: \"#dee2e6\",\n  dark: \"#27272a\"\n};\nexport {\n  ProfileImage\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport \"framer\";\nimport { typography } from \"../../../styles/typography.js\";\nimport { ellipsis } from \"../../../styles/ellipsis.js\";\nimport { ProfileImage } from \"./ProfileImage.js\";\nconst PROFILE_ITEM_ATTR = \"data-profile-item\";\nconst profileContainerStyle = {\n  width: 64,\n  flexShrink: 0,\n  display: \"flex\",\n  flexDirection: \"column\",\n  alignItems: \"center\",\n  gap: 6\n};\nconst Profile = forwardRef(({\n  style,\n  theme = \"light\",\n  active,\n  name,\n  imageSrc,\n  imageDraggable,\n  ...rest\n}, ref) => {\n  return /* @__PURE__ */ jsxs(\"div\", { ref, ...rest, ...{\n    [PROFILE_ITEM_ATTR]: \"\"\n  }, style: {\n    ...profileContainerStyle,\n    ...style\n  }, children: [\n    /* @__PURE__ */ jsx(ProfileImage, { style: {\n      border: active ? borderStyleByTheme[theme] : \"none\",\n      opacity: active ? 1 : 0.6\n    }, src: imageSrc, theme, draggable: imageDraggable }),\n    name !== void 0 ? /* @__PURE__ */ jsx(\"div\", { style: {\n      ...nameStyle,\n      ...typography(12, active ? 500 : 400, 1.36),\n      color: active ? activeColorByTheme[theme] : inactiveColorByTheme[theme],\n      ...ellipsis(3)\n    }, children: name }) : null\n  ] });\n});\nconst nameStyle = {\n  width: \"100%\",\n  textAlign: \"center\"\n};\nconst activeColorByTheme = {\n  light: \"#000000\",\n  dark: \"#ffffff\"\n};\nconst inactiveColorByTheme = {\n  light: \"#808080\",\n  dark: \"#808080\"\n};\nconst borderStyleByTheme = {\n  light: \"1px solid #000000\",\n  dark: \"1px solid #ffffff\"\n};\nexport {\n  PROFILE_ITEM_ATTR,\n  Profile,\n  profileContainerStyle\n};\n","import { useState, useRef, useLayoutEffect, useEffect } from \"react\";\nimport { PROFILE_ITEM_ATTR } from \"./Profile.js\";\nconst PROFILE_ITEM_SELECTOR = `[${PROFILE_ITEM_ATTR}]`;\nconst INSTANT_TRANSITION = {\n  duration: 0\n};\nconst SPRING_TRANSITION = {\n  type: \"spring\",\n  stiffness: 220,\n  damping: 26\n};\nconst useDynamicHeightProfileRow = (viewportRef) => {\n  const [containerHeight, setContainerHeight] = useState(0);\n  const hasInitializedRef = useRef(false);\n  useLayoutEffect(() => {\n    const viewport = viewportRef.current;\n    if (!viewport) {\n      return void 0;\n    }\n    const visibleProfiles = /* @__PURE__ */ new Set();\n    let rafId = null;\n    const computeHeight = () => {\n      let maxProfileHeight = 0;\n      visibleProfiles.forEach((el) => {\n        if (el.offsetHeight > maxProfileHeight) {\n          maxProfileHeight = el.offsetHeight;\n        }\n      });\n      if (maxProfileHeight === 0) {\n        return;\n      }\n      setContainerHeight(maxProfileHeight);\n    };\n    const scheduleUpdate = () => {\n      if (rafId !== null) {\n        return;\n      }\n      rafId = requestAnimationFrame(() => {\n        rafId = null;\n        computeHeight();\n      });\n    };\n    const collectProfilesIn = (node) => {\n      const result = [];\n      if (node.matches(PROFILE_ITEM_SELECTOR)) {\n        result.push(node);\n      }\n      node.querySelectorAll(PROFILE_ITEM_SELECTOR).forEach((el) => {\n        result.push(el);\n      });\n      return result;\n    };\n    const viewportRect = viewport.getBoundingClientRect();\n    viewport.querySelectorAll(PROFILE_ITEM_SELECTOR).forEach((el) => {\n      const rect = el.getBoundingClientRect();\n      const visible = rect.right > viewportRect.left + 1 && rect.left < viewportRect.right - 1;\n      if (visible) {\n        visibleProfiles.add(el);\n      }\n    });\n    computeHeight();\n    const intersectionObserver = new IntersectionObserver((entries) => {\n      entries.forEach((entry) => {\n        if (entry.isIntersecting) {\n          visibleProfiles.add(entry.target);\n        } else {\n          visibleProfiles.delete(entry.target);\n        }\n      });\n      scheduleUpdate();\n    }, {\n      root: viewport,\n      threshold: 0\n    });\n    viewport.querySelectorAll(PROFILE_ITEM_SELECTOR).forEach((el) => {\n      intersectionObserver.observe(el);\n    });\n    const mutationObserver = new MutationObserver((mutations) => {\n      let changed = false;\n      mutations.forEach((mutation) => {\n        mutation.addedNodes.forEach((node) => {\n          if (!(node instanceof HTMLElement)) {\n            return;\n          }\n          collectProfilesIn(node).forEach((el) => {\n            intersectionObserver.observe(el);\n            changed = true;\n          });\n        });\n        mutation.removedNodes.forEach((node) => {\n          if (!(node instanceof HTMLElement)) {\n            return;\n          }\n          collectProfilesIn(node).forEach((el) => {\n            intersectionObserver.unobserve(el);\n            visibleProfiles.delete(el);\n            changed = true;\n          });\n        });\n      });\n      if (changed) {\n        scheduleUpdate();\n      }\n    });\n    mutationObserver.observe(viewport, {\n      childList: true,\n      subtree: true\n    });\n    const resizeObserver = new ResizeObserver(() => {\n      scheduleUpdate();\n    });\n    resizeObserver.observe(viewport);\n    return () => {\n      if (rafId !== null) {\n        cancelAnimationFrame(rafId);\n      }\n      intersectionObserver.disconnect();\n      mutationObserver.disconnect();\n      resizeObserver.disconnect();\n    };\n  }, [viewportRef]);\n  const transition = hasInitializedRef.current ? SPRING_TRANSITION : INSTANT_TRANSITION;\n  useEffect(() => {\n    if (containerHeight > 0) {\n      hasInitializedRef.current = true;\n    }\n  }, [containerHeight]);\n  return {\n    containerHeight,\n    transition\n  };\n};\nexport {\n  useDynamicHeightProfileRow\n};\n","import { useContext } from \"react\";\nimport { ProfilesContext } from \"./Root.js\";\nconst useProfilesContext = () => {\n  const context = useContext(ProfilesContext);\n  if (!context) {\n    throw new Error(\"useProfilesContext should be used within Root\");\n  }\n  return context;\n};\nexport {\n  useProfilesContext\n};\n","import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { forwardRef, useRef, Fragment } from \"react\";\nimport { motion } from \"framer-motion\";\nimport { DraggableTabs } from \"../../../@shared/DraggableTabs/index.js\";\nimport \"../../../@shared/Profile/Profile.js\";\nimport { useDynamicHeightProfileRow } from \"../../../@shared/Profile/Profile.hooks.js\";\nimport \"../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../hooks/stores/toast/toast.store.js\";\nimport \"../../../@shared/providers/ThemeProvider/ThemeProvider.js\";\nimport { useBreakpoint } from \"../../../../hooks/useBreakpoint.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../Dialog/Dialog.module.css.js\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { mergeRefs } from \"../../../../utils/react/mergeRefs.js\";\nimport { Breakpoint } from \"../../../../styles/breakpoint.js\";\nimport { useProfilesContext } from \"./Root.hooks.js\";\nconst LIST_GAP = 4;\nconst SKELETONS_PER_PENDING = 5;\nconst MASK_GRADIENT = \"linear-gradient(to right, black 0%, black calc(100% - 60px), transparent 100%)\";\nconst maskStyle = {\n  maskImage: MASK_GRADIENT,\n  WebkitMaskImage: MASK_GRADIENT\n};\nconst List = ({\n  style,\n  children,\n  list\n}, ref) => {\n  const breakpoint = useBreakpoint();\n  const {\n    loading\n  } = useProfilesContext();\n  const viewportRef = useRef(null);\n  const {\n    containerHeight,\n    transition\n  } = useDynamicHeightProfileRow(viewportRef);\n  const pending = loading && list.length === 0;\n  const shouldMask = !pending && breakpoint !== Breakpoint.MOBILE;\n  return /* @__PURE__ */ jsx(motion.div, { style: {\n    ...containerStyle,\n    ...shouldMask ? maskStyle : void 0,\n    ...style\n  }, animate: {\n    height: containerHeight\n  }, transition, children: /* @__PURE__ */ jsxs(DraggableTabs.List, { ref: mergeRefs([ref, viewportRef]), gap: LIST_GAP, children: [\n    list.map((item, index) => (\n      // eslint-disable-next-line react/no-array-index-key\n      /* @__PURE__ */ jsx(Fragment, { children: children({\n        index,\n        pending,\n        item\n      }) }, index)\n    )),\n    pending ? Array.from({\n      length: SKELETONS_PER_PENDING\n    }).map((_, index) => (\n      // eslint-disable-next-line react/no-array-index-key\n      /* @__PURE__ */ jsx(Fragment, { children: children({\n        index,\n        pending\n      }) }, index)\n    )) : null\n  ] }) });\n};\nconst Default = forwardRef(List);\nconst containerStyle = {\n  position: \"relative\",\n  width: \"100%\",\n  marginBottom: 10,\n  overflow: \"hidden\"\n};\nexport {\n  Default as List\n};\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport { Skeleton } from \"../Skeleton/Skeleton.js\";\nimport { PROFILE_ITEM_ATTR, profileContainerStyle } from \"../Profile/Profile.js\";\nconst ProfileSkeleton = forwardRef(({\n  theme = \"light\",\n  hasName = false\n}, ref) => {\n  return /* @__PURE__ */ jsxs(\"div\", { ref, ...{\n    [PROFILE_ITEM_ATTR]: \"\"\n  }, style: profileContainerStyle, children: [\n    /* @__PURE__ */ jsx(Skeleton, { style: {\n      ...imageStyle,\n      ...colorByTheme[theme]\n    } }),\n    hasName ? /* @__PURE__ */ jsx(Skeleton, { style: {\n      ...nameStyle,\n      ...colorByTheme[theme]\n    } }) : null\n  ] });\n});\nconst imageStyle = {\n  width: 64,\n  height: 64,\n  borderRadius: 9999\n};\nconst nameStyle = {\n  width: \"50%\",\n  height: 14,\n  borderRadius: \"6px\"\n};\nconst colorByTheme = {\n  light: {\n    backgroundColor: \"#dee2e6\"\n  },\n  dark: {\n    backgroundColor: \"#27272a\"\n  }\n};\nexport {\n  ProfileSkeleton\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport { DraggableTabs } from \"../../../@shared/DraggableTabs/index.js\";\nimport \"../../../../node_modules/@firebase/analytics/dist/esm/index.esm2017.js\";\nimport \"../../../../node_modules/firebase/app/dist/esm/index.esm.js\";\nimport \"../../../../node_modules/swr/core/dist/index.js\";\nimport \"../../../../apis/user-segment/CategoryFirstOrderApiService.js\";\nimport \"../../../../config/index.js\";\nimport \"../../../../node_modules/js-cookie/dist/js.cookie.js\";\nimport \"../../../../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js\";\nimport \"../../../../apis/highlight-products/HighlightProductsApiService.js\";\nimport \"../../../../apis/one-brand-days/OneBrandDaysApiService.js\";\nimport \"../../../../apis/taste-sharing/TasteSharingApiService.js\";\nimport \"../../../../apis/user/UserApiService.js\";\nimport \"../../../../apis/preuser/PreuserApiService.js\";\nimport \"framer\";\nimport \"../../../../node_modules/@29cm/snowplow/dist/esm/core/snowplow.js\";\nimport \"../../../../node_modules/swr/mutation/dist/index.js\";\nimport \"../../../../hooks/stores/content/content.store.js\";\nimport \"../../../../hooks/stores/dialog/dialog.store.js\";\nimport \"../../../../hooks/stores/global-layout/global-layout.store.js\";\nimport \"../../../../hooks/stores/toast/toast.store.js\";\nimport { useTheme } from \"../../../../hooks/useTheme.js\";\nimport \"../../../@shared/providers/BreakpointProvider/BreakpointProvider.js\";\nimport \"../../../../hooks/stores/bottom-sheet/bottom-sheet.store.js\";\nimport \"react-dom\";\nimport \"../../Dialog/Dialog.module.css.js\";\nimport \"framer-motion\";\nimport \"../../../../containers/DialogContainer/DialogContainer.emitter.js\";\nimport \"../../../../utils/redirectLogin.js\";\nimport \"../../../../utils/event-properties/source.js\";\nimport { useProfilesContext } from \"./Root.hooks.js\";\nimport { Profile } from \"../../../@shared/Profile/Profile.js\";\nimport { ProfileSkeleton } from \"../../../@shared/ProfileSkeleton/ProfileSkeleton.js\";\nconst Item = forwardRef(({\n  children,\n  value,\n  name,\n  imageSrc,\n  onClick\n}, ref) => {\n  const {\n    loading\n  } = useProfilesContext();\n  const theme = useTheme();\n  if (loading) {\n    return /* @__PURE__ */ jsx(ProfileSkeleton, { theme, hasName: name !== void 0 && name !== \"\" });\n  }\n  return /* @__PURE__ */ jsx(DraggableTabs.Trigger, { ref, style: {\n    alignItems: \"start\"\n  }, value, onClick, children: (active) => (\n    // NOTE(임규민): 목록을 드래그할 때 Profile 컴포넌트의 이미지가 드래그 되는 현상을 방지\n    /* @__PURE__ */ jsx(Profile, { theme, active, name, imageSrc, imageDraggable: false, children })\n  ) });\n});\nexport {\n  Item\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { Fragment } from \"react\";\nimport { useProfilesContext } from \"./Root.hooks.js\";\nconst Panels = ({\n  children,\n  list\n}) => {\n  const {\n    loading\n  } = useProfilesContext();\n  const pending = loading && list.length === 0;\n  if (pending) {\n    return children({\n      index: 0,\n      pending\n    });\n  }\n  return list.map((item, index) => (\n    // eslint-disable-next-line react/no-array-index-key\n    /* @__PURE__ */ jsx(Fragment, { children: children({\n      index,\n      pending,\n      item\n    }) }, index)\n  ));\n};\nexport {\n  Panels\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport { DraggableTabs } from \"../../../@shared/DraggableTabs/index.js\";\nimport { useProfilesContext } from \"./Root.hooks.js\";\nconst Panel = ({\n  children,\n  value\n}) => {\n  const {\n    loading\n  } = useProfilesContext();\n  if (loading) {\n    return children;\n  }\n  return /* @__PURE__ */ jsx(DraggableTabs.Panel, { value, children });\n};\nexport {\n  Panel\n};\n","import { Root } from \"./Root.js\";\nimport { List as Default } from \"./List.js\";\nimport { Item } from \"./Item.js\";\nimport { Panels } from \"./Panels.js\";\nimport { Panel } from \"./Panel.js\";\nconst Profiles = {\n  Root,\n  List: Default,\n  Item,\n  Panels,\n  Panel\n};\nexport {\n  Profiles\n};\n"],"mappings":"8qBAAwC,IACU,IACsB,IACQ,IACX,IACZ,IACc,IAClC,IACyB,IAC0B,IACZ,IACT,IACD,IACjB,IACM,IACvC,IAC2D,IACd,IACF,IACF,IACc,IAChB,KACY,KACA,IACE,IAClD,IACwB,IACpB,IACoD,IAC/B,IACU,IACQ,CACxD,EAAkBA,EAAc,KAAK,CACrC,GAAOC,GAAY,CACvB,WACA,UAAU,GACV,eACA,QACA,kBACA,mBACA,iBACC,IAAQ,CAET,IAAM,EAAc,GADD,IAAe,EAElC,OAAuB,EAAI,EAAgB,SAAU,CAAE,MAAO,CAC5D,UACD,CAAE,SAA0B,EAAI,EAAc,KAAM,CAAE,MAAK,eAAc,QAAO,gBAAiB,GAAmB,EAAa,iBAAkB,GAAoB,EAAa,gBAAe,WAAU,CAAC,CAAE,CAAC,EAClN,CACI,GAA0B,EAC7B,EAAW,SAAU,GACrB,EAAW,QAAS,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