{"version":3,"file":"TableOfContents.BHIhsCVC.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/h10KWZO1vGAtnLo8X3IY/uVn8yX5e9QxNgZ0gzQEe/TableOfContents.js"],"sourcesContent":["// Rebuild request — TOC (scoped by Section ID + collapsible + level filters)\n// Added Code Override: asTocRoot - sets DOM id=\"content\" and data-toc-root=\"1\"\n// Updated Section ID to accept plain id (content) or attribute selector ([data-toc-root=\"1\"])\n// Enhanced with robust section resolver, editor-safe mounting, and design-time fallback\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState,useRef,startTransition}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Table of Contents component that scans headings within a specific section ID\n * Supports robust section resolution, editor-safe mounting, and design-time fallback\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function TableOfContents(props){const{scopeMode=\"section\",sectionId=\"\",excludeSelectors=\"\",includeH1=true,includeH2=true,includeH3=true,includeH4=false,includeH5=false,includeH6=false,startCollapsed=true,animationDuration=300,animationEasing=\"ease-out\",scrollOffset=80,fontColor=\"#000000\",activeColor=\"#FF5588\",hoverColor=\"#0099FF\",spacing=8,indentation=20,h1Font,h2Font,h3Font,h4Font,h5Font,h6Font,borderColor=\"#EEEEEE\",borderWidth=1,borderRadius=8,padding=16,titleText=\"Table of Contents\",titleFont,titleColor=\"#000000\",titleSpacing=12,titleLeftInset=0,headerGutter=8,titlePaddingY=8,titleBaselineOffset=0}=props;const[headings,setHeadings]=useState([]);const[activeId,setActiveId]=useState(\"\");const[isOpen,setIsOpen]=useState(!startCollapsed);const[contentHeight,setContentHeight]=useState(0);const[sectionNotFound,setSectionNotFound]=useState(false);const observerRef=useRef(null);const mutationObserverRef=useRef(null);const contentRef=useRef(null);const retryTimeoutRef=useRef(null);// Update open state when prop changes\nuseEffect(()=>{setIsOpen(!startCollapsed);},[startCollapsed]);// Measure content height for animation\nuseEffect(()=>{if(contentRef.current){setContentHeight(contentRef.current.scrollHeight);}},[headings]);// Generate stable slug from text\nconst generateSlug=(text,index)=>{const baseSlug=text.toLowerCase().replace(/[^\\w\\s-]/g,\"\").replace(/\\s+/g,\"-\").replace(/^-+|-+$/g,\"\");return baseSlug||`heading-${index}`;};// Robust section resolver - handles ID, data-attr, and CSS selectors\nconst findSectionElement=selector=>{if(!selector||!selector.trim())return null;const trimmedSelector=selector.trim();// 1. Try getElementById for plain ID (e.g., \"content\")\nif(!trimmedSelector.includes(\"[\")&&!trimmedSelector.includes(\"#\")&&!trimmedSelector.includes(\".\")){const element=document.getElementById(trimmedSelector);if(element)return element;}// 2. Try querySelector with # prefix for ID (e.g., \"#content\")\nif(!trimmedSelector.startsWith(\"[\")&&!trimmedSelector.startsWith(\".\")){const idSelector=trimmedSelector.startsWith(\"#\")?trimmedSelector:`#${trimmedSelector}`;const element=document.querySelector(idSelector);if(element)return element;}// 3. Try data-toc-root attribute selector\nconst dataElement=document.querySelector('[data-toc-root=\"1\"]');if(dataElement)return dataElement;// 4. Try full CSS selector if explicitly provided\ntry{const element=document.querySelector(trimmedSelector);if(element)return element;}catch(e){// Invalid CSS selector, ignore\n}return null;};// Design-time fallback headings for styling in Editor\nconst getDesignTimeFallback=()=>{const fallbackHeadings=[];if(includeH1){fallbackHeadings.push({id:\"fallback-h1\",text:\"Sample H1 Heading\",level:1,element:null});}if(includeH2){fallbackHeadings.push({id:\"fallback-h2-1\",text:\"Sample H2 Heading\",level:2,element:null},{id:\"fallback-h2-2\",text:\"Another H2 Section\",level:2,element:null});}if(includeH3){fallbackHeadings.push({id:\"fallback-h3-1\",text:\"Sample H3 Subsection\",level:3,element:null},{id:\"fallback-h3-2\",text:\"Another H3 Subsection\",level:3,element:null});}return fallbackHeadings;};// Scan for headings within the section ID or whole page\nconst scanHeadings=(retryCount=0)=>{if(typeof window===\"undefined\")return;let sectionElement=null;// Scope Mode: Section (by ID)\nif(scopeMode===\"section\"){// Check if section ID is provided\nif(!sectionId||!sectionId.trim()){setHeadings([]);setSectionNotFound(false);return;}// Find the section element\nsectionElement=findSectionElement(sectionId);if(!sectionElement){setSectionNotFound(true);// In Editor, retry for a short window for late-mounting elements\nif(RenderTarget.current()===RenderTarget.canvas&&retryCount<10){retryTimeoutRef.current=window.setTimeout(()=>{scanHeadings(retryCount+1);},100);return;}// Show design-time fallback in Editor only\nif(RenderTarget.current()===RenderTarget.canvas){setHeadings(getDesignTimeFallback());}else{setHeadings([]);}return;}setSectionNotFound(false);}else{// Scope Mode: Whole Page\nsectionElement=document.body;setSectionNotFound(false);}// Get all headings within the section or document\nconst allHeadings=Array.from(sectionElement.querySelectorAll(\"h1,h2,h3,h4,h5,h6\"));// Filter out excluded selectors (only in Whole Page mode)\nlet filteredByExclusion=allHeadings;if(scopeMode===\"wholePage\"&&excludeSelectors&&excludeSelectors.trim()){const excludes=excludeSelectors.split(\",\").map(s=>s.trim()).filter(Boolean);const isExcluded=el=>excludes.some(sel=>{try{return el.closest(sel);}catch(e){return false;}});filteredByExclusion=allHeadings.filter(h=>!isExcluded(h));}// Filter headings based on level preferences\nconst filteredHeadings=filteredByExclusion.filter(element=>{const level=parseInt(element.tagName.charAt(1));switch(level){case 1:return includeH1;case 2:return includeH2;case 3:return includeH3;case 4:return includeH4;case 5:return includeH5;case 6:return includeH6;default:return false;}});// Create heading items with stable IDs\nconst headingItems=filteredHeadings.map((element,index)=>{const level=parseInt(element.tagName.charAt(1));const text=element.textContent||\"\";let id=element.id;if(!id){id=generateSlug(text,index);if(document.getElementById(id)){id=`${id}-${index}`;}element.id=id;}return{id,text,level,element};});startTransition(()=>setHeadings(headingItems));};// Set up intersection observer for active heading detection\nuseEffect(()=>{if(typeof window===\"undefined\"||headings.length===0)return;// Skip intersection observer for design-time fallback\nif(headings.some(h=>!h.element))return;observerRef.current=new IntersectionObserver(entries=>{const visibleEntries=entries.filter(entry=>entry.isIntersecting);if(visibleEntries.length>0){const sortedEntries=visibleEntries.sort((a,b)=>{const aRect=a.boundingClientRect;const bRect=b.boundingClientRect;return Math.abs(aRect.top)-Math.abs(bRect.top);});const activeHeading=sortedEntries[0];if(activeHeading){startTransition(()=>setActiveId(activeHeading.target.id));}}else{const allHeadingElements=headings.map(h=>h.element).filter(Boolean);let closestHeading=null;let closestDistance=Infinity;allHeadingElements.forEach(element=>{const rect=element.getBoundingClientRect();const distance=Math.abs(rect.top+scrollOffset);if(rect.top<scrollOffset&&distance<closestDistance){closestDistance=distance;closestHeading=element;}});if(closestHeading){startTransition(()=>setActiveId(closestHeading.id));}}},{rootMargin:`-${scrollOffset}px 0px -80% 0px`,threshold:[0,.1,.5,1]});headings.forEach(heading=>{if(heading.element){observerRef.current?.observe(heading.element);}});return()=>{observerRef.current?.disconnect();};},[headings,scrollOffset]);// Scan for headings on mount and when dependencies change\nuseEffect(()=>{// Clear any existing retry timeout\nif(retryTimeoutRef.current){clearTimeout(retryTimeoutRef.current);retryTimeoutRef.current=null;}// Defer first scan to next animation frame for Editor\nif(RenderTarget.current()===RenderTarget.canvas){requestAnimationFrame(()=>scanHeadings());}else{scanHeadings();}// Set up mutation observer for content changes and late-mounting elements\nif(typeof window===\"undefined\")return;// Clean up existing observer\nif(mutationObserverRef.current){mutationObserverRef.current.disconnect();}mutationObserverRef.current=new MutationObserver(()=>{// Re-scan when DOM changes\nscanHeadings();});// Observe document for new elements (in case target mounts late)\nmutationObserverRef.current.observe(document.body,{childList:true,subtree:true,attributes:true,attributeFilter:[\"id\",\"data-toc-root\"]});return()=>{if(mutationObserverRef.current){mutationObserverRef.current.disconnect();}if(retryTimeoutRef.current){clearTimeout(retryTimeoutRef.current);}};},[scopeMode,sectionId,excludeSelectors,includeH1,includeH2,includeH3,includeH4,includeH5,includeH6]);// Smooth scroll to heading with offset\nconst scrollToHeading=heading=>{if(typeof window===\"undefined\"||!heading.element)return;const y=heading.element.getBoundingClientRect().top+window.pageYOffset-scrollOffset;window.scrollTo({top:y,behavior:\"smooth\"});};// Get font style for heading level\nconst getFontForLevel=level=>{switch(level){case 1:return h1Font;case 2:return h2Font;case 3:return h3Font;case 4:return h4Font;case 5:return h5Font;case 6:return h6Font;default:return h3Font// Fallback to h3Font\n;}};// Calculate indent level based on heading hierarchy\nconst getIndentLevel=currentLevel=>{if(headings.length===0)return 0;const minLevel=Math.min(...headings.map(h=>h.level));return(currentLevel-minLevel)*indentation;};// Show warning if section ID is missing or invalid (only in Section mode)\nif(scopeMode===\"section\"&&(!sectionId||!sectionId.trim())){return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,padding:\"16px\",backgroundColor:\"#FFF3CD\",border:\"1px solid #FFEAA7\",borderRadius:\"8px\",color:\"#856404\",fontSize:\"14px\"},children:'⚠️ Section ID is required. Please provide a valid element ID (e.g. \"content\") or attribute selector (e.g. \"[data-toc-root=\\'1\\']\").'});}// Show warning if section not found (but keep trying in background) - only in Section mode\nif(scopeMode===\"section\"&&typeof window!==\"undefined\"&&sectionNotFound&&headings.length===0){return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,padding:\"16px\",backgroundColor:\"#F8D7DA\",border:\"1px solid #F5C6CB\",borderRadius:\"8px\",color:\"#721C24\",fontSize:\"14px\"},children:['⚠️ Section with selector \"',sectionId,'\" not found. ',RenderTarget.current()===RenderTarget.canvas?\"Retrying...\":\"\"]});}// Show message if no headings found (except when showing design-time fallback)\nif(headings.length===0&&!sectionNotFound){const scopeMessage=scopeMode===\"section\"?`in section \"${sectionId}\"`:\"on the page\";return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,padding:\"16px\",backgroundColor:\"#D1ECF1\",border:\"1px solid #BEE5EB\",borderRadius:\"8px\",color:\"#0C5460\",fontSize:\"14px\"},children:[\"ℹ️ No headings found \",scopeMessage,\" with the selected heading levels.\"]});}const isDesignTimeFallback=headings.some(h=>!h.element);return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,overflow:\"hidden\",opacity:isDesignTimeFallback?.7:1,border:`${borderWidth}px solid ${borderColor}`,borderRadius:`${borderRadius}px`,padding:`${padding}px`},children:[isDesignTimeFallback&&/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"12px\",color:\"#666\",marginBottom:\"8px\",fontStyle:\"italic\"},children:\"Design preview - waiting for content...\"}),/*#__PURE__*/_jsxs(\"button\",{onClick:()=>setIsOpen(!isOpen),style:{background:\"none\",border:\"none\",cursor:\"pointer\",padding:`${titlePaddingY}px 0`,borderRadius:\"4px\",color:titleColor,fontSize:\"14px\",fontWeight:\"600\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",width:\"100%\",height:\"auto\",marginBottom:isOpen?titleSpacing:0,transition:`margin-bottom ${animationDuration}ms ${animationEasing}`,overflow:\"visible\",...titleFont},onMouseEnter:e=>{e.currentTarget.style.color=hoverColor;},onMouseLeave:e=>{e.currentTarget.style.color=titleColor;},\"aria-label\":`${isOpen?\"Collapse\":\"Expand\"} ${titleText}`,\"aria-expanded\":isOpen,children:[/*#__PURE__*/_jsx(\"span\",{style:{textAlign:\"left\",paddingLeft:`${titleLeftInset}px`,flex:1,whiteSpace:\"normal\",wordBreak:\"break-word\",overflow:\"visible\",lineHeight:titleFont?.lineHeight||\"1.4\",transform:`translateY(${titleBaselineOffset}px)`},children:titleText}),/*#__PURE__*/_jsx(\"div\",{style:{paddingLeft:`${headerGutter}px`,flexShrink:0,display:\"flex\",alignItems:\"center\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",style:{transform:isOpen?\"rotate(90deg)\":\"rotate(0deg)\",transition:`transform ${animationDuration}ms ${animationEasing}`,flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 4L10 8L6 12\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})})]}),/*#__PURE__*/_jsx(\"div\",{style:{height:isOpen?contentHeight:0,opacity:isOpen?1:0,overflow:\"hidden\",transition:`height ${animationDuration}ms ${animationEasing}, opacity ${animationDuration}ms ${animationEasing}`},children:/*#__PURE__*/_jsx(\"div\",{ref:contentRef,children:/*#__PURE__*/_jsx(\"nav\",{role:\"navigation\",\"aria-label\":\"Table of contents\",children:/*#__PURE__*/_jsx(\"ul\",{style:{listStyle:\"none\",margin:0,padding:0},children:headings.map((heading,index)=>{const isActive=heading.id===activeId;const indentLevel=getIndentLevel(heading.level);const headingFont=getFontForLevel(heading.level);return /*#__PURE__*/_jsx(\"li\",{style:{marginLeft:`${indentLevel}px`,marginBottom:`${spacing}px`},children:/*#__PURE__*/_jsx(\"button\",{onClick:()=>!isDesignTimeFallback&&scrollToHeading(heading),style:{background:\"none\",border:\"none\",padding:\"4px 0\",cursor:isDesignTimeFallback?\"default\":\"pointer\",textAlign:\"left\",width:\"100%\",color:isActive?activeColor:fontColor,textDecoration:\"none\",transition:`color ${animationDuration}ms ${animationEasing}`,...headingFont},onMouseEnter:e=>{if(!isActive&&!isDesignTimeFallback){e.currentTarget.style.color=hoverColor;}},onMouseLeave:e=>{if(!isActive&&!isDesignTimeFallback){e.currentTarget.style.color=fontColor;}},\"aria-current\":isActive?\"location\":undefined,disabled:isDesignTimeFallback,children:heading.text})},heading.id);})})})})})]});}addPropertyControls(TableOfContents,{scopeMode:{type:ControlType.Enum,title:\"Scope Mode\",defaultValue:\"section\",options:[\"section\",\"wholePage\"],optionTitles:[\"Section (by ID)\",\"Whole Page\"],displaySegmentedControl:true},sectionId:{type:ControlType.String,title:\"Section ID\",defaultValue:\"content\",placeholder:\"e.g. content, #content, [data-toc-root='1']\",hidden:({scopeMode})=>scopeMode===\"wholePage\"},excludeSelectors:{type:ControlType.String,title:\"Exclude Selectors\",defaultValue:\"\",placeholder:\"e.g. .footer, .sidebar, .contact-form\",description:\"Comma-separated CSS selectors to exclude\",displayTextArea:true,hidden:({scopeMode})=>scopeMode===\"section\"},includeH1:{type:ControlType.Boolean,title:\"Include H1\",defaultValue:true},includeH2:{type:ControlType.Boolean,title:\"Include H2\",defaultValue:true},includeH3:{type:ControlType.Boolean,title:\"Include H3\",defaultValue:true},includeH4:{type:ControlType.Boolean,title:\"Include H4\",defaultValue:false},includeH5:{type:ControlType.Boolean,title:\"Include H5\",defaultValue:false},includeH6:{type:ControlType.Boolean,title:\"Include H6\",defaultValue:false},startCollapsed:{type:ControlType.Boolean,title:\"Start Collapsed\",defaultValue:true,enabledTitle:\"Closed\",disabledTitle:\"Open\"},animationDuration:{type:ControlType.Number,title:\"Expand/Collapse Duration\",defaultValue:300,min:100,max:1e3,step:50,unit:\"ms\"},animationEasing:{type:ControlType.Enum,title:\"Easing\",defaultValue:\"ease-out\",options:[\"ease\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"linear\",\"cubic-bezier(0.4, 0, 0.2, 1)\"],optionTitles:[\"Ease\",\"Ease In\",\"Ease Out\",\"Ease In-Out\",\"Linear\",\"Custom Cubic\"]},scrollOffset:{type:ControlType.Number,title:\"Scroll Offset\",defaultValue:80,min:0,max:200,step:10,unit:\"px\"},fontColor:{type:ControlType.Color,title:\"Font Color\",defaultValue:\"#000000\"},activeColor:{type:ControlType.Color,title:\"Active Color\",defaultValue:\"#FF5588\"},hoverColor:{type:ControlType.Color,title:\"On Hover Color\",defaultValue:\"#0099FF\"},spacing:{type:ControlType.Number,title:\"Spacing\",defaultValue:8,min:0,max:32,step:2,unit:\"px\"},indentation:{type:ControlType.Number,title:\"Indentation\",defaultValue:20,min:0,max:60,step:4,unit:\"px\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1,min:0,max:10,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:32,step:2,unit:\"px\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:16,min:0,max:48,step:2,unit:\"px\"},titleText:{type:ControlType.String,title:\"Title Text\",defaultValue:\"Table of Contents\"},titleFont:{type:ControlType.Font,title:\"Title Font\",defaultValue:{fontSize:\"18px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.4em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#000000\"},titleSpacing:{type:ControlType.Number,title:\"Title Spacing\",defaultValue:12,min:0,max:32,step:2,unit:\"px\"},titleLeftInset:{type:ControlType.Number,title:\"Title Left Inset\",defaultValue:0,min:-20,max:40,step:1,unit:\"px\"},headerGutter:{type:ControlType.Number,title:\"Header Gutter\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},titlePaddingY:{type:ControlType.Number,title:\"Title Padding Y\",defaultValue:8,min:0,max:24,step:1,unit:\"px\"},titleBaselineOffset:{type:ControlType.Number,title:\"Title Baseline Offset\",defaultValue:0,min:-10,max:10,step:1,unit:\"px\"},h1Font:{type:ControlType.Font,title:\"H1 Font\",defaultValue:{fontSize:\"18px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},h2Font:{type:ControlType.Font,title:\"H2 Font\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},h3Font:{type:ControlType.Font,title:\"H3 Font\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},h4Font:{type:ControlType.Font,title:\"H4 Font\",defaultValue:{fontSize:\"13px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},h5Font:{type:ControlType.Font,title:\"H5 Font\",defaultValue:{fontSize:\"12px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},h6Font:{type:ControlType.Font,title:\"H6 Font\",defaultValue:{fontSize:\"11px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TableOfContents\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TableOfContents.map"],"mappings":"2NAUG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,YAAU,UAAU,YAAU,GAAG,mBAAiB,GAAG,YAAU,GAAK,YAAU,GAAK,YAAU,GAAK,YAAU,GAAM,YAAU,GAAM,YAAU,GAAM,iBAAe,GAAK,oBAAkB,IAAI,kBAAgB,WAAW,eAAa,GAAG,YAAU,UAAU,cAAY,UAAU,aAAW,UAAU,WAAQ,EAAE,eAAY,GAAG,UAAO,SAAO,SAAO,SAAO,SAAO,SAAO,cAAY,UAAU,eAAY,EAAE,gBAAa,EAAE,WAAQ,GAAG,YAAU,oBAAoB,YAAU,aAAW,UAAU,gBAAa,GAAG,kBAAe,EAAE,eAAa,EAAE,gBAAc,EAAE,sBAAoB,GAAG,EAAW,CAAC,EAAS,GAAaA,EAAS,CAAC,CAAC,EAAO,CAAC,EAAS,GAAaA,EAAS,EAAE,EAAO,CAAC,EAAO,GAAWA,EAAS,CAAC,CAAc,EAAO,CAAC,EAAc,GAAkBA,EAAS,CAAC,EAAO,CAAC,EAAgB,GAAoBA,EAAS,EAAK,EAAQ,EAAYC,EAAO,IAAI,EAAQ,EAAoBA,EAAO,IAAI,EAAQ,EAAWA,EAAO,IAAI,EAAQ,EAAgBA,EAAO,IAAI,EAC9+B,MAAc,CAAC,EAAU,CAAC,CAAc,CAAE,EAAE,CAAC,CAAc,CAAC,EAC5D,MAAc,CAAI,EAAW,SAAS,EAAiB,EAAW,QAAQ,YAAY,CAAG,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