{"version":3,"file":"TableOfContents.DDmZWpxn.mjs","names":["p","useState","useRef","React.useId","__esmMin","init_npm_react_18_3_1","window","_e","init_npm_react_dom_18_3_1","de","p","c","init_jsx_runtime","ie","ce","init_ssg_sandbox_shims","addPropertyControls","RenderTarget","ControlType","init_framer_BL70qLPA","Style","css","slugify","text","parseJson","s","raw","fallback","parseTocList","entries","labels","line","t","m","i","full","norm","short","clean","rest","id","idm","findContent","selector","r","uniq","base","n","used","collectHeadings","roots","tags","levels","seen","heads","h","presetBySlug","preset","prev","anchor","margin","offset","toSections","noKids","collapse","sections","flat","add","item","skip","e","head","TocNav","link","Wrap","p$1","k","TableOfContents","canvas","props","setEntries","active","setActive","discRef","rootRef","lockUntil","mode","enhanced","LAYOUTS","popId","parsed","hasList","DEFAULT_COLLAPSE","source","SAMPLE_LIST","sig","f","cancelled","run","list","el","els","pick","cur","io","root","raf","cleanup","start","found","links","a","j","x","l","spy","secOf","headOf","kid","secLis","dashes","nav","count","now","rail","sheet","setText","pad","curK","curS","apply","old","li","d","nr","ar","progress","top","end","nx","from","y","round3","clamp01","queue","onClick","close","target","onKey","vis","to","undismiss","onFocusIn","go","min","title","gap","bleed","vars","body","BASE_CSS","LIST_CSS","scrollCss","EARLY_TAP","items","ev","TOC_CSS","T","FONT_BODY","BAR_H","init_TableOfContents"],"sources":["https:/framerusercontent.com/modules/5wlN5ShbJid3yCPQY5zP/TYqxL0E6jKhiBboKfdQq/TableOfContents.js"],"sourcesContent":["// Built by articles/_system/components/sync.mjs from src/Article/TableOfContents.tsx with src/tokens/personal.tsx (site: personal).\n// Do not edit in Framer: edit the source in content-engine and re-run sync.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{useEffect,useRef,useState,useLayoutEffect,useCallback}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{createPortal}from\"react-dom\";// ---- inlined from _tokens.tsx ----\n// Tokens for benjaminwalsh.co.uk (Framer project FzvDkMmcrjsVRkDyyMuM-ckeTz).\n// Read from the project's colour and text styles on 9 October 2026. Same export\n// names as tokens/dst.tsx so one set of components builds for either site.\n// Colours are the site's dynamic styles as token variables with the light value\n// as a fallback; the site is neutral grey (not zinc), orange accent, Inter body\n// and Inter Display headings. Article prose is Text/Secondary on Surface/Page.\nconst T={// Text/Primary: #000000 / #f6f6f6. Headings, strong text, focus ring.\nink:\"var(--token-72be4b58-ad30-40d4-9403-e97ffbb2d1b3, #000000)\",// Text/Secondary: #6e6e6e / #a1a1a1. The site's body-copy colour (4.9:1 light).\nbody:\"var(--token-1103eab9-1384-4e53-8ad9-d060dcee532a, #6e6e6e)\",// Text/Secondary again for control borders (same value both modes, 3:1+).\ncontrol:\"var(--token-1103eab9-1384-4e53-8ad9-d060dcee532a, #6e6e6e)\",// Border/Default: #eeeeee / #242424. Decorative borders and rules.\nrule:\"var(--token-1ae38199-cbce-439f-ab23-4f321f5e3f62, #eeeeee)\",// Colors/Grey/700: #3f3f46 / #d4d4d8. Stronger body text: TOC links.\nstrong:\"var(--token-4078bc4e-4723-43e5-8b60-d9a611dbc4ca, #3f3f46)\",// Surface/Card: #fafafa / #1c1c1c. The main menu's surface (TOC panel and sheet).\ncard:\"var(--token-175e9f7e-9cf9-42cd-b522-52506cd7d635, #fafafa)\",// Surface/Card: #fafafa / #1c1c1c. Card surface.\nsurface:\"var(--token-175e9f7e-9cf9-42cd-b522-52506cd7d635, #fafafa)\",// Surface/Sunken: #f5f5f5 / #2c2c2c. Chips, hover, raised areas.\nraised:\"var(--token-575a767c-e7c9-474e-b7cf-cfd3e4469399, #f5f5f5)\",// Surface/Page: #ffffff / #161616.\npage:\"var(--token-cc944d59-d713-46c5-805a-36c4e8480b17, #ffffff)\",// Purple (dynamic): #4017b0 / #c6b3ff. Note accent.\npurple:\"var(--token-308d7adc-cf6f-477c-ad2d-df0ec34a91bb, #4017b0)\"};const FONT_BODY=`\"Inter\", \"Inter Placeholder\", system-ui, -apple-system, \"Segoe UI\", sans-serif`;const FONT_DISPLAY=`\"Inter Display\", \"Inter Display Placeholder\", \"Inter\", system-ui, -apple-system, \"Segoe UI\", sans-serif`;const FONT_MONO=`ui-monospace, \"SF Mono\", \"JetBrains Mono\", Menlo, Consolas, monospace`;// Site settings used by ArticleSchema. The live blog template is /:slug and the\n// index is /blog; the site-wide graph already defines Person #person.\nconst SITE_CFG={site:\"https://www.benjaminwalsh.co.uk\",publisherType:\"Person\",publisherName:\"Ben Walsh\",authorUrl:\"https://www.benjaminwalsh.co.uk\",blogIndexPath:\"/blog\"};// ---- inlined from _shared.tsx ----\n// Shared helpers for the DST article components (Figure, FigureGroup, FAQ,\n// DataTable, TableOfContents, Callout, Stat, Compare, ArticleSchema, Anchor).\n//\n// SSR rules: nothing here touches window or document at module scope or during\n// render. Browser APIs only run inside effects or event handlers.\n//\n// Colours are DST's dynamic colour styles, referenced as Framer token CSS\n// variables with the light value as a fallback. Framer swaps the token values\n// for dark mode (prefers-color-scheme, and ThemeSwitch's body.pix-is-dark), so\n// the components follow the site theme without any logic of their own.\n// Tokens, fonts and site settings come from src/tokens/<site>.tsx. sync.mjs\n// inlines the one for the chosen --site (default dst) in place of this import.\n// Base CSS shared by every component. Scoped under .dstc so it never leaks into\n// the rest of the page. Injected once per instance; the duplication is small and\n// keeps each component SSR-complete on its own.\nconst BASE_CSS=`\n.dstc{font-family:${FONT_BODY};color:${T.body};font-size:16px;line-height:1.7;box-sizing:border-box;-webkit-font-smoothing:antialiased}\n.dstc *,.dstc *::before,.dstc *::after{box-sizing:border-box}\n.dstc a{color:${T.ink};text-decoration:underline;text-underline-offset:0.18em;text-decoration-thickness:1px}\n.dstc a:hover{text-decoration-thickness:2px}\n.dstc :focus-visible{outline:2px solid ${T.ink};outline-offset:2px;border-radius:4px}\n.dstc code{font-family:${FONT_MONO};font-size:0.9em;background:${T.raised};color:${T.ink};padding:0.1em 0.35em;border-radius:4px}\n.dstc strong{color:${T.ink};font-weight:600}\n.dstc p{margin:0}\n.dstc .dstc-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n`;function Style({css}){return /*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css}});}// ---------------------------------------------------------------------------\n// Inline markdown: **bold**, *italic*, `code`, [text](url). Paragraphs on blank\n// lines. Deliberately tiny: captions and answers, not articles.\n// ---------------------------------------------------------------------------\nfunction safeHref(url){const u=url.trim();if(/^(https?:|mailto:)/i.test(u)||u.startsWith(\"/\")||u.startsWith(\"#\"))return u;return null;}function inline(text,keyPrefix=\"i\"){const out=[];const re=/(`[^`]+`)|(\\*\\*[^*]+\\*\\*)|(\\[[^\\]]+\\]\\([^)\\s]+\\))|(\\*[^*\\s][^*]*\\*)|(_[^_\\s][^_]*_)/g;let last=0;let m;let n=0;while(m=re.exec(text)){if(m.index>last)out.push(text.slice(last,m.index));const tok=m[0];const key=`${keyPrefix}-${n++}`;if(tok.startsWith(\"`\"))out.push(/*#__PURE__*/_jsx(\"code\",{children:tok.slice(1,-1)},key));else if(tok.startsWith(\"**\"))out.push(/*#__PURE__*/_jsx(\"strong\",{children:inline(tok.slice(2,-2),key)},key));else if(tok.startsWith(\"[\")){const mm=tok.match(/^\\[([^\\]]+)\\]\\(([^)\\s]+)\\)$/);const href=mm?safeHref(mm[2]):null;if(mm&&href){const ext=/^https?:/i.test(href);out.push(/*#__PURE__*/_jsx(\"a\",{href:href,...ext?{rel:\"noopener\"}:{},children:inline(mm[1],key)},key));}else out.push(tok);}else out.push(/*#__PURE__*/_jsx(\"em\",{children:inline(tok.slice(1,-1),key)},key));last=m.index+tok.length;}if(last<text.length)out.push(text.slice(last));return out;}function Paragraphs({text,className}){const paras=String(text||\"\").split(/\\n\\s*\\n/).map(p=>p.trim()).filter(Boolean);return /*#__PURE__*/_jsx(_Fragment,{children:paras.map((p,i)=>/*#__PURE__*/_jsx(\"p\",{className:className,children:inline(p.replace(/\\n/g,\" \"),\"p\"+i)},i))});}// Plain text for JSON-LD and aria labels: strips the inline markdown.\nfunction plain(text){return String(text||\"\").replace(/\\[([^\\]]+)\\]\\([^)\\s]+\\)/g,\"$1\").replace(/`([^`]+)`/g,\"$1\").replace(/\\*\\*([^*]+)\\*\\*/g,\"$1\").replace(/\\*([^*]+)\\*/g,\"$1\").replace(/_([^_]+)_/g,\"$1\").replace(/\\s+/g,\" \").trim();}// First clause of a caption, for \"Enlarge image: ...\" names.\nfunction firstClause(text,max=80){const p=plain(text);const cut=p.split(RegExp(\"(?<=[.:;!?])\\\\s\"))[0]||p;return cut.length>max?cut.slice(0,max-1).trimEnd()+\"…\":cut;}function slugify(text){return String(text||\"\").normalize(\"NFKD\").replace(/[̀-ͯ]/g,\"\").toLowerCase().replace(/&/g,\" and \").replace(/[^a-z0-9]+/g,\"-\").replace(/^-+|-+$/g,\"\").slice(0,80)||\"section\";}function parseJson(raw,fallback){const s=String(raw||\"\").trim();if(!s)return{value:fallback,error:\"\"};try{return{value:JSON.parse(s),error:\"\"};}catch(e){return{value:fallback,error:\"Not valid JSON\"};}}// JSON for a <script type=\"application/ld+json\">: escape \"<\" so a value can\n// never close the script element.\nfunction jsonLd(data){return JSON.stringify(data).replace(/</g,\"\\\\u003c\");}function imageSrc(v){if(!v)return\"\";if(typeof v===\"string\")return v;return v.src||v.url||\"\";}// ---------------------------------------------------------------------------\n// Hooks\n// ---------------------------------------------------------------------------\nconst useIsoLayoutEffect=typeof window===\"undefined\"?useEffect:useLayoutEffect;function useReducedMotion(){const[reduced,setReduced]=useState(false);useEffect(()=>{if(typeof window===\"undefined\"||!window.matchMedia)return;const mq=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const on=()=>setReduced(mq.matches);on();mq.addEventListener?.(\"change\",on);return()=>mq.removeEventListener?.(\"change\",on);},[]);return reduced;}function useMounted(){const[m,setM]=useState(false);useEffect(()=>setM(true),[]);return m;}// Styled after the personal site's testimonial video window: a dimmed, blurred page behind, the image\n// with 14px corners, and one quiet row underneath with the caption on the left and round 40px icon\n// buttons on the right. The scrim is a layer, not ::backdrop, so Safari and Firefox blur it too.\nconst LB_CSS=`\n.dstc-lb:focus{outline:none}\n.dstc-lb{position:fixed;inset:0;z-index:2147483000;color:#f6f6f6;font-family:${FONT_BODY};font-size:16px;line-height:1.5;overscroll-behavior:contain}\n.dstc-lb *{box-sizing:border-box}\n.dstc-lb-scrim{position:absolute;inset:0;background:rgb(0 0 0 / .78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}\n.dstc-lb-win{position:relative;height:100%;display:flex;flex-direction:column;gap:12px;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));max-width:1280px;margin:0 auto}\n.dstc-lb-stage{position:relative;flex:1 1 auto;min-height:0;overflow:hidden;touch-action:none;cursor:zoom-in;display:flex;align-items:center;justify-content:center;border-radius:14px}\n.dstc-lb-stage[data-zoomed=true]{cursor:grab}\n.dstc-lb-stage[data-dragging=true]{cursor:grabbing}\n.dstc-lb-img{max-width:100%;max-height:100%;object-fit:contain;border-radius:14px;user-select:none;-webkit-user-drag:none;transform-origin:0 0;will-change:transform}\n.dstc-lb-anim .dstc-lb-img{transition:transform .18s ease-out}\n.dstc-lb-info{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:0 4px}\n.dstc-lb-who{flex:1 1 280px;min-width:0;min-height:calc(2 * 1.45 * 1.0625rem);max-height:24vh;overflow:auto;font-size:1.0625rem;line-height:1.45;display:flex;flex-direction:column;justify-content:center;justify-content:safe center}\n.dstc-lb-who p{margin:0}\n.dstc-lb-who p+p{margin-top:4px}\n.dstc-lb-title{font-size:1.0625rem;line-height:1.45;font-weight:400;letter-spacing:-.01em;color:#f6f6f6}\n.dstc-lb-title p+p{color:#d2d2d2}\n.dstc-lb-credit{margin-top:2px;font-size:.9375rem;line-height:1.45;color:#d2d2d2}\n.dstc-lb-who a{color:#f6f6f6;text-underline-offset:.18em}\n.dstc-lb-ctl{display:flex;align-items:center;gap:6px;margin-left:auto}\n.dstc-lb-sep{width:1px;height:20px;margin:0 4px;background:rgb(255 255 255 / .18)}\n.dstc-lb button,.dstc-lb a.dstc-lb-btn{width:40px;height:40px;flex:none;border-radius:50%;border:0;padding:0;display:grid;place-items:center;cursor:pointer;color:#f6f6f6;font:inherit;text-decoration:none;background:color-mix(in srgb,currentColor 8%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 15%,transparent);transition:background-color .15s}\n.dstc-lb button:hover,.dstc-lb a.dstc-lb-btn:hover{background:color-mix(in srgb,currentColor 16%,transparent)}\n.dstc-lb button:disabled{opacity:.35;cursor:default;background:color-mix(in srgb,currentColor 8%,transparent)}\n.dstc-lb :focus-visible{outline:2px solid #f6f6f6;outline-offset:2px}\n.dstc-lb svg{width:18px;height:18px}\n.dstc-lb button.dstc-lb-pct{width:auto;min-width:64px;padding:0 12px;border-radius:20px;font-size:.8125rem;font-weight:600;font-variant-numeric:tabular-nums}\n.dstc-lb button.dstc-lb-pct:disabled{opacity:1}\n.dstc-lb-count{font-size:.875rem;color:#d2d2d2;padding:0 4px;font-variant-numeric:tabular-nums;white-space:nowrap}\n.dstc-lb-toast{position:absolute;left:50%;bottom:76px;transform:translateX(-50%);padding:8px 14px;border-radius:20px;background:rgb(10 10 10 / .85);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);box-shadow:inset 0 0 0 1px rgb(255 255 255 / .12);font-size:.875rem;font-weight:500;white-space:nowrap;pointer-events:none}\n.dstc-lb .dstc-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n.dstc-lb-anim .dstc-lb-scrim{animation:dstc-lb-fade .35s ease-out}\n.dstc-lb-anim .dstc-lb-win{animation:dstc-lb-up .35s cubic-bezier(.22,1,.36,1)}\n@keyframes dstc-lb-fade{from{opacity:0}}\n@keyframes dstc-lb-up{from{opacity:0;transform:translateY(12px) scale(.98)}}\n@media (max-width:560px){.dstc-lb-win{gap:10px}.dstc-lb-who{flex-basis:100%}.dstc-lb-ctl{margin-left:0;width:100%;justify-content:flex-end}.dstc-lb-sep{display:none}}\n@media (forced-colors:active){.dstc-lb button,.dstc-lb a.dstc-lb-btn{border:1px solid ButtonText}}\n`;const MIN_Z=1;const MAX_Z=6;function Icon({d,size=18}){return /*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",focusable:\"false\",children:/*#__PURE__*/_jsx(\"path\",{d:d})});}function Lightbox(props){const{items,index,onIndex,onClose}=props;const item=items[index];const reduced=useReducedMotion();const dialogRef=useRef(null);const stageRef=useRef(null);const imgRef=useRef(null);const closeRef=useRef(null);const prevFocus=useRef(null);const[z,setZ]=useState(1);const[pan,setPan]=useState({x:0,y:0});const[dragging,setDragging]=useState(false);const pointers=useRef(new Map);const pinch=useRef(null);const drag=useRef(null);const lastTap=useRef(0);const capId=useRef(\"dstc-lb-cap-\"+Math.random().toString(36).slice(2,8)).current;const multi=items.length>1;const[copied,setCopied]=useState(\"\");useEffect(()=>setCopied(\"\"),[index]);const share=async()=>{if(typeof window===\"undefined\"||!item?.shareId)return;const url=window.location.href.split(\"#\")[0]+\"#\"+item.shareId;const ok=await copyText(url);setCopied(ok?\"Link copied\":\"Copy failed. Link: \"+url);window.setTimeout(()=>setCopied(\"\"),4e3);};const zRef=useRef(1);const panRef=useRef({x:0,y:0});const apply=(nz,np)=>{zRef.current=nz;panRef.current=np;setZ(nz);setPan(np);};// Zoom about a client point (or the image centre). The image is scaled from\n// its top-left corner, so pan is adjusted to keep that point still.\nconst zoomTo=useCallback((next,cx,cy)=>{const pz=zRef.current;const pp=panRef.current;const nz=Math.min(MAX_Z,Math.max(MIN_Z,Math.round(next*100)/100));if(nz===1)return apply(1,{x:0,y:0});const img=imgRef.current;let ux,uy;if(img&&cx!==undefined&&cy!==undefined){const r=img.getBoundingClientRect();ux=(cx-r.left)/pz;uy=(cy-r.top)/pz;}else{ux=(img?img.offsetWidth:0)/2-pp.x/pz;uy=(img?img.offsetHeight:0)/2-pp.y/pz;}apply(nz,{x:pp.x-ux*(nz-pz),y:pp.y-uy*(nz-pz)});// eslint-disable-next-line react-hooks/exhaustive-deps\n},[]);const reset=useCallback(()=>apply(1,{x:0,y:0}),[]);useEffect(()=>reset(),[index,reset]);// Focus management, scroll lock, restore focus to the trigger.\nuseIsoLayoutEffect(()=>{prevFocus.current=document.activeElement;const html=document.documentElement;const body=document.body;const saved={h:html.style.overflow,b:body.style.overflow,pr:body.style.paddingRight};const sbw=window.innerWidth-html.clientWidth;html.style.overflow=\"hidden\";body.style.overflow=\"hidden\";if(sbw>0)body.style.paddingRight=sbw+\"px\";// Focus the dialog itself, as the testimonial window does: no ring on Close until someone tabs to it.\ndialogRef.current?.focus();return()=>{html.style.overflow=saved.h;body.style.overflow=saved.b;body.style.paddingRight=saved.pr;};},[]);// Wheel zoom must be non-passive to stop the page scrolling behind.\nuseEffect(()=>{const stage=stageRef.current;if(!stage)return;const onWheel=e=>{e.preventDefault();const factor=Math.exp(-e.deltaY*(e.ctrlKey?.01:.0025));zoomTo(zRef.current*factor,e.clientX,e.clientY);};stage.addEventListener(\"wheel\",onWheel,{passive:false});return()=>stage.removeEventListener(\"wheel\",onWheel);},[zoomTo]);const step=d=>{if(!multi)return;onIndex((index+d+items.length)%items.length);};const onKeyDown=e=>{const k=e.key;if(k===\"Escape\"){e.preventDefault();onClose();return;}if(k===\"Tab\"){const root=dialogRef.current;if(!root)return;const f=Array.from(root.querySelectorAll('button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])'));if(!f.length)return;const first=f[0],last=f[f.length-1];if(!root.contains(document.activeElement)||document.activeElement===root){e.preventDefault();(e.shiftKey?last:first).focus();}else if(e.shiftKey&&document.activeElement===first){e.preventDefault();last.focus();}else if(!e.shiftKey&&document.activeElement===last){e.preventDefault();first.focus();}return;}const target=e.target;if(target&&target.tagName===\"A\"&&k===\"Enter\")return;if(k===\"+\"||k===\"=\"){e.preventDefault();zoomTo(z*1.5);}else if(k===\"-\"||k===\"_\"){e.preventDefault();zoomTo(z/1.5);}else if(k===\"0\"){e.preventDefault();reset();}else if(k.startsWith(\"Arrow\")){if(z>1){e.preventDefault();const d=48;const p=panRef.current;apply(zRef.current,{x:p.x+(k===\"ArrowLeft\"?d:k===\"ArrowRight\"?-d:0),y:p.y+(k===\"ArrowUp\"?d:k===\"ArrowDown\"?-d:0)});}else if(multi&&(k===\"ArrowLeft\"||k===\"ArrowRight\")){e.preventDefault();step(k===\"ArrowLeft\"?-1:1);}}};// Keys are handled on the document while the dialog is open, so they keep\n// working after a click or drag; focus is pulled back inside if it escapes.\nconst keyRef=useRef(onKeyDown);keyRef.current=onKeyDown;useEffect(()=>{const h=e=>keyRef.current(e);const f=e=>{const root=dialogRef.current;if(root&&e.target instanceof Node&&!root.contains(e.target))closeRef.current?.focus();};document.addEventListener(\"keydown\",h,true);document.addEventListener(\"focusin\",f);return()=>{document.removeEventListener(\"keydown\",h,true);document.removeEventListener(\"focusin\",f);// Return focus to the trigger once the listeners are gone.\nconst prev=prevFocus.current;if(prev&&prev.isConnected&&typeof prev.focus===\"function\")prev.focus();};},[]);const onPointerDown=e=>{e.currentTarget.setPointerCapture?.(e.pointerId);pointers.current.set(e.pointerId,{x:e.clientX,y:e.clientY});if(pointers.current.size===2){const[a,b]=Array.from(pointers.current.values());pinch.current={dist:Math.hypot(a.x-b.x,a.y-b.y),z:zRef.current};drag.current=null;}else if(pointers.current.size===1){drag.current={x:e.clientX,y:e.clientY,px:panRef.current.x,py:panRef.current.y};}};const onPointerMove=e=>{if(!pointers.current.has(e.pointerId))return;pointers.current.set(e.pointerId,{x:e.clientX,y:e.clientY});if(pinch.current&&pointers.current.size===2){const[a,b]=Array.from(pointers.current.values());const dist=Math.hypot(a.x-b.x,a.y-b.y);zoomTo(pinch.current.z*(dist/pinch.current.dist),(a.x+b.x)/2,(a.y+b.y)/2);}else if(drag.current&&z>1){const dx=e.clientX-drag.current.x;const dy=e.clientY-drag.current.y;if(!dragging&&Math.hypot(dx,dy)>3)setDragging(true);apply(zRef.current,{x:drag.current.px+dx,y:drag.current.py+dy});}};const onPointerUp=e=>{const wasDrag=dragging;pointers.current.delete(e.pointerId);if(pointers.current.size<2)pinch.current=null;if(pointers.current.size===0){drag.current=null;setDragging(false);if(!wasDrag&&e.pointerType!==\"mouse\"){const now=Date.now();if(now-lastTap.current<300){z>1?reset():zoomTo(2.5,e.clientX,e.clientY);lastTap.current=0;}else lastTap.current=now;}}};const onDoubleClick=e=>{z>1?reset():zoomTo(2.5,e.clientX,e.clientY);};if(!item)return null;const label=item.caption?undefined:item.alt||\"Image\";const pct=Math.round(z*100);const node=/*#__PURE__*/_jsxs(\"div\",{ref:dialogRef,className:\"dstc-lb\"+(reduced?\"\":\" dstc-lb-anim\"),role:\"dialog\",\"aria-modal\":\"true\",\"aria-labelledby\":item.caption?capId:undefined,\"aria-label\":label,tabIndex:-1,children:[/*#__PURE__*/_jsx(Style,{css:LB_CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"dstc-lb-scrim\",\"aria-hidden\":\"true\",onClick:onClose}),/*#__PURE__*/_jsxs(\"div\",{className:\"dstc-lb-win\",children:[/*#__PURE__*/_jsx(\"div\",{ref:stageRef,className:\"dstc-lb-stage\",\"data-zoomed\":z>1,\"data-dragging\":dragging,onPointerDown:onPointerDown,onPointerMove:onPointerMove,onPointerUp:onPointerUp,onPointerCancel:onPointerUp,onDoubleClick:onDoubleClick,onClick:e=>{if(e.target===e.currentTarget&&z===1&&!dragging)onClose();},children:/*#__PURE__*/_jsx(\"img\",{ref:imgRef,className:\"dstc-lb-img\",src:item.downloadUrl||item.src,alt:item.alt,draggable:false,style:{transform:`translate(${pan.x}px, ${pan.y}px) scale(${z})`}})}),/*#__PURE__*/_jsxs(\"div\",{className:\"dstc-lb-info\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"dstc-lb-who\",id:item.caption||item.credit?capId:undefined,children:[item.caption&&/*#__PURE__*/_jsx(Paragraphs,{text:item.caption,className:\"dstc-lb-title\"}),item.credit&&/*#__PURE__*/_jsxs(\"p\",{className:\"dstc-lb-credit\",children:[\"Source:\",\" \",item.creditUrl?/*#__PURE__*/_jsx(\"a\",{href:item.creditUrl,rel:\"noopener\",children:plain(item.credit)}):plain(item.credit)]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"dstc-lb-ctl\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"dstc-sr\",children:\"Keys: plus and minus zoom, 0 resets, arrows pan.\"}),/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"dstc-lb-pct\",onClick:reset,disabled:z===1,\"aria-label\":z>1?`Zoom ${pct}%. Reset zoom`:`Zoom ${pct}%`,title:z>1?\"Reset zoom (0)\":undefined,children:[pct,\"%\"]}),/*#__PURE__*/_jsxs(\"span\",{className:\"dstc-sr\",\"aria-live\":\"polite\",\"aria-atomic\":\"true\",children:[\"Zoom \",pct,\"%\"]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>zoomTo(z/1.5),disabled:z<=MIN_Z,\"aria-label\":\"Zoom out\",title:\"Zoom out (−)\",children:/*#__PURE__*/_jsx(Icon,{d:\"M5 12h14\"})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>zoomTo(z*1.5),disabled:z>=MAX_Z,\"aria-label\":\"Zoom in\",title:\"Zoom in (+)\",children:/*#__PURE__*/_jsx(Icon,{d:\"M12 5v14M5 12h14\"})}),multi&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{className:\"dstc-lb-sep\",\"aria-hidden\":\"true\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>step(-1),\"aria-label\":\"Previous image\",title:\"Previous (←)\",children:/*#__PURE__*/_jsx(Icon,{d:\"M15 18l-6-6 6-6\"})}),/*#__PURE__*/_jsxs(\"span\",{className:\"dstc-lb-count\",\"aria-live\":\"polite\",\"aria-atomic\":\"true\",children:[index+1,\" of \",items.length]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>step(1),\"aria-label\":\"Next image\",title:\"Next (→)\",children:/*#__PURE__*/_jsx(Icon,{d:\"M9 18l6-6-6-6\"})})]}),(item.shareId||item.downloadUrl)&&/*#__PURE__*/_jsx(\"span\",{className:\"dstc-lb-sep\",\"aria-hidden\":\"true\"}),item.shareId&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:share,\"aria-label\":\"Copy a link to this image\",title:\"Copy link\",children:/*#__PURE__*/_jsx(Icon,{d:\"M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1\"})}),item.downloadUrl&&/*#__PURE__*/_jsx(\"a\",{className:\"dstc-lb-btn\",href:item.downloadUrl,target:\"_blank\",rel:\"noopener\",download:true,\"aria-label\":\"Open the full image\",title:\"Full image\",children:/*#__PURE__*/_jsx(Icon,{d:\"M12 4v11M7 10l5 5 5-5M5 20h14\"})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",ref:closeRef,onClick:onClose,\"aria-label\":\"Close image viewer\",title:\"Close (Esc)\",children:/*#__PURE__*/_jsx(Icon,{d:\"M6 6l12 12M18 6L6 18\"})})]})]}),item.shareId&&/*#__PURE__*/_jsx(\"span\",{role:\"status\",className:copied?\"dstc-lb-toast\":\"dstc-sr\",children:copied})]})]});return /*#__PURE__*/createPortal(node,document.body);}// Opens the lightbox when location.hash matches one of the ids, on mount.\nfunction useHashOpen(ids,open,enabled){useEffect(()=>{if(!enabled||typeof window===\"undefined\")return;const check=()=>{const h=decodeURIComponent((window.location.hash||\"\").slice(1));const i=ids.indexOf(h);if(h&&i>=0)open(i);};check();window.addEventListener(\"hashchange\",check);return()=>window.removeEventListener(\"hashchange\",check);// eslint-disable-next-line react-hooks/exhaustive-deps\n},[enabled,ids.join(\"|\")]);}async function copyText(text){try{await navigator.clipboard.writeText(text);return true;}catch{return false;}}// Reuse a Framer text style (e.g. Heading 2) that the site already applies to\n// the same tag in the surrounding rich text, so a component heading follows the\n// style when it's edited in Framer. Framer names these classes\n// \"framer-styles-preset-<hash>\", and the base \"h2.framer-text\" rule reads the\n// font, size, colour and spacing from them. Found after mount (the hash isn't\n// known at build time), so the first server render uses the fallback styling.\nfunction useFramerTextStyle(ref,tag,enabled){const[cls,setCls]=React.useState(\"\");React.useEffect(()=>{if(!enabled||!ref.current)return;const scope=ref.current.closest('[data-framer-component-type=\"RichTextContainer\"]')||document;const match=Array.from(scope.querySelectorAll(tag+\".framer-text\")).find(el=>!el.closest(\".dstc\")&&/framer-styles-preset-/.test(el.className));const preset=match?String(match.className).split(/\\s+/).find(c=>c.startsWith(\"framer-styles-preset-\")):\"\";setCls(preset||\"\");},[enabled,tag]);return cls;}const TOC_CSS=`\n.dstc-toc{width:100%;font-size:15px;line-height:1.45}\n.dstc-toc-title{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n.dstc-toc ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}\n/* .dstc.dstc-toc beats BASE_CSS's .dstc a underline, which later components re-inject. */\n.dstc.dstc-toc a{display:block;position:relative;color:${T.body};text-decoration:none}\n.dstc-toc li[data-level=\"2\"]>a{font-weight:500}\n.dstc-toc li[data-level=\"3\"]>a{font-size:14px}\n.dstc-toc a[aria-current]{color:${T.ink}}\n/* Weight never changes with state, so text doesn't reflow as you scroll. */\n.dstc-toc a:focus-visible{outline:2px solid ${T.ink};outline-offset:2px;border-radius:4px}\n/* Sidebar: one continuous rail, a marker on it for the current section */\n.dstc-toc-side{max-height:calc(100vh - 160px);overflow:auto;overscroll-behavior:contain;padding:2px}\n.dstc-toc-side ol{border-left:1px solid ${T.rule}}\n.dstc-toc-side li[data-level=\"2\"]:not(:first-child){margin-top:6px}\n.dstc-toc-side a{padding:5px 0 5px 14px}\n.dstc-toc-side li[data-level=\"3\"]>a{padding-left:26px}\n.dstc.dstc-toc .dstc-toc-side a:hover{color:${T.ink};text-decoration:underline;text-underline-offset:0.18em}\n.dstc-toc-side a[aria-current]::before{content:\"\";position:absolute;left:-1.5px;top:4px;bottom:4px;width:2px;border-radius:2px;background:${T.ink}}\n/* Dropdown: rounded hover background, a dot for where you are */\n.dstc-toc-disc ol{gap:2px}\n.dstc-toc-disc a{padding:8px 10px 8px 24px;border-radius:8px}\n.dstc-toc-disc li[data-level=\"3\"]>a{padding-left:38px}\n.dstc-toc-disc a:hover{background:${T.raised};color:${T.ink}}\n.dstc-toc-disc a[aria-current]{background:${T.raised}}\n.dstc-toc-disc a[aria-current]::before{content:\"\";position:absolute;left:10px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:${T.ink}}\n.dstc-toc-disc li[data-level=\"3\"]>a[aria-current]::before{left:24px}\n.dstc-toc-disc{border:1px solid ${T.rule};border-radius:10px;background:${T.surface}}\n.dstc-toc-disc>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 14px;font:600 16px/1.3 ${FONT_BODY};color:${T.ink};border-radius:10px}\n.dstc-toc-disc>summary::-webkit-details-marker{display:none}\n.dstc-toc-disc>summary svg{width:20px;height:20px;transition:transform .2s}\n.dstc-toc-disc[open]>summary svg{transform:rotate(180deg)}\n.dstc-toc-disc ol{padding:0 8px 10px}\n@media (prefers-reduced-motion:reduce){.dstc-toc-disc>summary svg{transition:none}}\n`;// List, Rail and Bar sit in normal flow and are styled in the server HTML.\n// JavaScript only sets data-current, aria-current and --p (section progress, 0 to 1).\nconst BAR_H=52;const LIST_CSS=`\n.dstc-tx{width:100%;font-size:15px;line-height:1.4}\n.dstc-tx ol{list-style:none;margin:0;padding:0}\n/* .dstc.dstc-tx beats BASE_CSS's .dstc a underline, which later components re-inject. */\n.dstc.dstc-tx a{display:block;text-decoration:none}\n.dstc.dstc-tx li[data-level=\"2\"]>a{font:500 15px/1.4 ${FONT_BODY};padding:5px 0 5px 16px;color:${T.strong}}\n.dstc.dstc-tx li[data-level=\"3\"]>a{font:400 14px/1.4 ${FONT_BODY};padding:4px 0 4px 28px;color:${T.strong}}\n.dstc.dstc-tx li[data-level]>a:hover{color:${T.ink};text-decoration:underline;text-underline-offset:0.18em}\n.dstc.dstc-tx li[data-level]>a[aria-current]{color:${T.ink}}\n/* Weight never changes with state, so text doesn't reflow as you scroll. */\n.dstc.dstc-tx a.dstc-tl-top{margin-top:20px;padding:0 0 0 17px;font:400 14px/1.4 ${FONT_BODY};color:${T.strong}}\n.dstc.dstc-tx a.dstc-tl-top:hover{color:${T.ink};text-decoration:underline;text-underline-offset:0.18em}\n/* The list: a rail on the left, the current section's marker on it */\n.dstc-tl{max-height:calc(100vh - var(--off,120px) - 48px);overflow:auto;overscroll-behavior:contain;padding:4px}\n.dstc-tl>ol{position:relative}\n.dstc-tl>ol>li{position:relative}\n.dstc-tl>ol>li[data-sec]{border-left:1px solid color-mix(in srgb,${T.body} 28%,transparent)}\n.dstc-tl li>ol{display:none}\n.dstc-tl li[data-current]>ol{display:block}\n.dstc-tl-track{display:none;position:absolute;left:-1.5px;top:4px;bottom:4px;width:2px;border-radius:2px;background:color-mix(in srgb,${T.ink} 22%,transparent);pointer-events:none}\n.dstc-tl li[data-current]>.dstc-tl-track{display:block}\n.dstc-tl-fill{position:absolute;left:0;top:0;width:2px;height:calc(var(--p,0) * 100%);border-radius:2px;background:${T.ink}}\n/* Rail: dashes, and a panel that opens leftwards over the text */\n.dstc-tr{position:relative;padding:10px 0 10px 12px}\n.dstc.dstc-tx .dstc-tr:focus-visible{outline:none}\n.dstc-tr-dashes{display:flex;flex-direction:column;gap:14px}\n.dstc-tr-dash{display:block;width:16px;height:2px;border-radius:2px;background:color-mix(in srgb,${T.body} 45%,transparent)}\n.dstc-tr-dash[data-current]{width:28px;background:linear-gradient(90deg,${T.ink} calc(var(--p,0) * 100%),color-mix(in srgb,${T.ink} 35%,transparent) 0)}\n.dstc-tr-panel{position:absolute;top:-24px;right:-4px;z-index:6;width:280px;padding:10px 12px 10px 8px;background:${T.card};border-radius:14px;box-shadow:0 24px 60px -20px rgb(0 0 0 / .55);opacity:0;pointer-events:none;transform:translateX(4px);transition:opacity .15s,transform .15s}\n.dstc-tr:hover .dstc-tr-panel,.dstc-tr:focus-within .dstc-tr-panel{opacity:1;pointer-events:auto;transform:none}\n.dstc-tr[data-dismissed] .dstc-tr-panel{opacity:0!important;pointer-events:none!important;transform:translateX(4px)!important}\n/* Bar: a full-bleed strip, and a sheet in the popover top layer */\n.dstc-tb-btn{position:relative;display:flex;align-items:center;gap:10px;width:calc(100% + 2 * var(--bleed,24px));height:${BAR_H}px;margin:0;margin-inline:calc(-1 * var(--bleed,24px));padding:0;padding-inline:var(--bleed,24px);border:0;border-bottom:1px solid color-mix(in srgb,${T.body} 18%,transparent);border-radius:0;background:color-mix(in srgb,${T.page} 88%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:inherit;font:inherit;text-align:left;cursor:pointer}\n.dstc.dstc-tx .dstc-tb-btn:focus-visible{outline-offset:-4px}\n.dstc-tb-count{font:400 13px/1 ${FONT_BODY};color:${T.strong};font-variant-numeric:tabular-nums;white-space:nowrap}\n.dstc-tb-now{flex:1;min-width:0;font:500 15px/1.2 ${FONT_BODY};color:${T.ink};white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.dstc-tb-chev{display:none;place-items:center;width:20px;height:20px;color:${T.ink};transition:transform .2s}\n.dstc-tb-prog{position:absolute;left:0;right:0;bottom:-1px;height:2px;background:${T.ink};transform:scaleX(0);transform-origin:left;pointer-events:none}\n@keyframes dstc-tb-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}\n@supports (animation-timeline: scroll()){.dstc-tb-prog{animation:dstc-tb-grow linear both;animation-timeline:scroll(root)}}\n.dstc-tb-sheet{margin:0;padding:0 20px 20px;border:0;background:${T.card};color:${T.strong}}\n.dstc-tb-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:${BAR_H}px}\n.dstc-tb-title{font:600 16px/1.3 ${FONT_BODY};color:${T.ink}}\n.dstc-tb-close{display:grid;place-items:center;width:44px;height:44px;margin:0 -12px 0 0;padding:0;border:0;border-radius:8px;background:transparent;color:${T.ink};font:400 28px/1 ${FONT_BODY};cursor:pointer}\n.dstc-tb-sheet .dstc-tl{max-height:none;overflow:visible}\n.dstc.dstc-tx .dstc-tb-sheet a{display:flex;align-items:center;min-height:44px}\n.dstc.dstc-tx .dstc-tb-sheet a.dstc-tl-top{margin-top:14px}\n/* Without popover support the sheet stays a static block under the bar, with no chevron or close. */\n@supports selector(:popover-open){\n.dstc-tb-chev{display:grid}\n.dstc-tb:has(.dstc-tb-sheet:popover-open) .dstc-tb-chev{transform:rotate(180deg)}\n.dstc-tb-sheet{position:fixed;inset:0 0 auto 0;width:auto;height:auto;max-height:80vh;overflow:auto;overscroll-behavior:contain;border-radius:0 0 18px 18px;box-shadow:0 24px 60px -20px rgb(0 0 0 / .55)}\n.dstc-tb-sheet::backdrop{background:rgb(0 0 0 / .55)}\n}\n@supports not selector(:popover-open){.dstc-tb-close{display:none}}\n@media (prefers-reduced-motion:reduce){.dstc-tr-panel,.dstc-tb-chev{transition:none}}\n/* Rail, wide enough: the panel's list is shown in place, as List does. The dashes go, and so does the popover look and its dismissed state. */\n.dstc-tx-rail{container-type:inline-size}\n.dstc.dstc-tx .dstc-tr a.dstc-tl-top{display:none}\n@container (min-width: 180px){\n.dstc-tr{padding:0}\n.dstc-tr-dashes{display:none}\n.dstc-tr-panel,.dstc-tr:hover .dstc-tr-panel,.dstc-tr:focus-within .dstc-tr-panel{position:static;width:auto;padding:0;background:none;border-radius:0;box-shadow:none;opacity:1;pointer-events:auto;transform:none;transition:none}\n.dstc-tr[data-dismissed] .dstc-tr-panel{opacity:1!important;pointer-events:auto!important;transform:none!important}\n.dstc.dstc-tx .dstc-tr a.dstc-tl-top{display:block}\n}\n`;// Where a jump lands: a gap below the top of the window, and on phones also clear of the sticky bar.\nconst scrollCss=gap=>`:root{scroll-padding-top:${gap}px}@media (max-width: 809.98px){:root{scroll-padding-top:${BAR_H+16}px}}`;const DEFAULT_COLLAPSE=\"Frequently asked questions, FAQ, Sources\";// Match headings and settings regardless of curly vs straight apostrophes.\nconst norm=s=>s.replace(/[‘’ʼ]/g,\"'\").replace(/\\s+/g,\" \").trim();const clean=s=>s.replace(/\\s+/g,\" \").trim();// One heading per line: \"## Full heading = Short label {#id}\" (### for level 3);\n// the \" = Short\" and \" {#id}\" parts are optional. Lines without a leading # are\n// label-only: \"Full heading = Short label\". Same result on server and client.\nfunction parseTocList(raw){const entries=[];const labels=new Map;for(const line of String(raw||\"\").split(/\\r?\\n/)){const t=line.trim();if(!t)continue;const m=/^(#{2,3})\\s+(.+)$/.exec(t);if(!m){if(t[0]===\"#\")continue;const i=t.indexOf(\" = \");const full=i<0?\"\":norm(t.slice(0,i));const short=i<0?\"\":clean(t.slice(i+3));if(full&&short)labels.set(full,short);continue;}let rest=m[2];let id=\"\";const idm=/\\s*\\{#([^}\\s]+)\\}\\s*$/.exec(rest);if(idm){id=idm[1];rest=rest.slice(0,idm.index);}const i=rest.indexOf(\" = \");const text=clean(i<0?rest:rest.slice(0,i));const short=i<0?\"\":clean(rest.slice(i+3));if(!text)continue;entries.push({id:id||slugify(text),text,level:m[1].length===2?2:3,short:short||undefined});}return{entries,labels};}function findContent(selector){const roots=Array.from(document.querySelectorAll(selector||'[data-framer-name=\"Content\"]'));// Skip hidden breakpoint variants, as collectHeadings does.\nreturn roots.find(r=>r.offsetParent||r.getClientRects().length>0)||null;}const clamp01=n=>n>1?1:n>0?n:0;const round3=n=>Math.round(n*1e3)/1e3;function uniq(base,used){let id=base;let n=2;// Also avoid ids already used elsewhere on the page (figures, FAQ items).\nwhile(used.has(id)||document.getElementById(id))id=`${base}-${n++}`;used.add(id);return id;}// margin: set scroll-margin-top from the header offset (List, Rail and Bar use scroll-padding instead).\nfunction collectHeadings(selector,levels,offset,preset,margin=true){const roots=Array.from(document.querySelectorAll(selector||'[data-framer-name=\"Content\"]'));const tags=levels===\"H2\"?\"h2\":\"h2, h3\";const seen=new Set;const heads=[];for(const r of roots){// Skip hidden breakpoint variants (Framer keeps them in the DOM).\nif(!r.offsetParent&&r.getClientRects().length===0)continue;r.querySelectorAll(tags).forEach(h=>{// Embeds' headings are skipped, unless the embed marks one for the TOC (FAQ's own heading).\nif(seen.has(h)||h.closest(\"[data-dstc]\")&&!h.hasAttribute(\"data-dstc-toc\")||h.closest(\"nav\"))return;seen.add(h);heads.push(h);});}const used=new Set;const presetBySlug=new Map(preset.map(p=>[slugify(p.text),p.id]));return heads.map(h=>{const text=(h.textContent||\"\").replace(/\\s+/g,\" \").trim();let id=h.id;if(!id){// An Anchor embed just before the heading carries an SSR id.\nconst prev=h.previousElementSibling;const anchor=prev&&(prev.matches(\"[data-toc-anchor]\")?prev:prev.querySelector(\"[data-toc-anchor]\"));if(anchor&&anchor.id){id=anchor.id;used.add(id);}else{// A Framer scroll target on a wrapping frame carries an SSR id too: reuse it, or the id gets a -2.\nconst base=presetBySlug.get(slugify(text))||slugify(text);const wrap=base?h.closest(`[id=\"${base}\"]`):null;if(wrap){id=base;used.add(id);}else{id=uniq(base,used);h.id=id;}}}else used.add(id);if(margin)h.style.scrollMarginTop=offset+\"px\";if(!h.hasAttribute(\"tabindex\"))h.setAttribute(\"tabindex\",\"-1\");return{id,text,level:h.tagName===\"H3\"?3:2,el:h};});}const SAMPLE_LIST=`## What does APCA stand for? = What APCA stands for\n## What an APCA score (Lc) means = What an Lc score means\n### Positive and negative scores = Polarity\n## How APCA differs from WCAG 2`;// Sections are the H2s; H3s hang under the one before them, except under the\n// headings named in Collapse. Items are numbered in list order (i).\nfunction toSections(entries,labels,collapse){const noKids=new Set(String(collapse).split(\",\").map(c=>norm(c).toLowerCase()).filter(Boolean));const sections=[];const flat=[];const add=e=>{const item={...e,label:e.short||labels.get(norm(e.text))||e.text,i:flat.length};flat.push(item);return item;};let skip=false;for(const e of entries){if(e.level===2){const head=add(e);sections.push({head,kids:[]});skip=noKids.has(norm(head.text).toLowerCase())||noKids.has(norm(head.label).toLowerCase());}else if(sections.length&&!skip)sections[sections.length-1].kids.push(add(e));}return{sections,flat};}// The list itself, the same in all three layouts. Plain markup: no state, no effects.\nfunction TocNav(p){const link=e=>/*#__PURE__*/_jsx(\"a\",{href:\"#\"+e.id,\"data-i\":e.i,title:e.label!==e.text?e.text:undefined,children:e.label});const Wrap=p.inNav?\"div\":\"nav\";return /*#__PURE__*/_jsx(Wrap,{className:\"dstc-tl\",\"aria-label\":p.inNav?undefined:p.title,children:/*#__PURE__*/_jsxs(\"ol\",{children:[p.sections.map((s,n)=>/*#__PURE__*/_jsxs(\"li\",{\"data-level\":2,\"data-sec\":n,children:[link(s.head),/*#__PURE__*/_jsx(\"span\",{className:\"dstc-tl-track\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"span\",{className:\"dstc-tl-fill\"})}),s.kids.length>0&&/*#__PURE__*/_jsx(\"ol\",{children:s.kids.map(k=>/*#__PURE__*/_jsx(\"li\",{\"data-level\":3,children:link(k)},k.i))})]},n)),p.top&&/*#__PURE__*/_jsx(\"li\",{children:/*#__PURE__*/_jsx(\"a\",{href:\"#\",className:\"dstc-tl-top\",\"data-top\":\"\",children:\"Back to top ↑\"})})]})});}// Taps before hydration: headings have no ids yet and the sheet can't close itself, so this\n// served script does both. Once the component is ready it marks data-ready and takes over.\nconst EARLY_TAP=`(function(){if(window.__dstcEarly)return;window.__dstcEarly=1;document.addEventListener(\"click\",function(e){var a=e.target&&e.target.closest&&e.target.closest('[data-dstc=\"toc\"] a');if(!a||!a.hash||a.pathname!==location.pathname)return;var r=a.closest('[data-dstc=\"toc\"]');if(r.hasAttribute(\"data-ready\"))return;var id=decodeURIComponent(a.hash.slice(1));var el=document.getElementById(id);if(!el){var t=a.textContent.trim(),h=document.querySelectorAll(\"h2,h3\");for(var i=0;i<h.length;i++){if(h[i].getClientRects().length&&h[i].textContent.trim()===t){el=h[i];el.id=id;break}}}var p=a.closest(\"[popover]\");if(p&&p.hidePopover)p.hidePopover();if(el){e.preventDefault();el.scrollIntoView({block:\"start\"});history.pushState(null,\"\",location.search+\"#\"+encodeURIComponent(id))}},true)})()`;const LAYOUTS=[\"List\",\"Rail\",\"Bar\"];/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 240\n */export default function TableOfContents(props){const canvas=RenderTarget.current()===RenderTarget.canvas;const preset=(parseJson(props.tocJson,[]).value||[]).filter(e=>e&&e.id&&e.text);const[entries,setEntries]=useState(preset);const[active,setActive]=useState(\"\");const discRef=useRef(null);const rootRef=useRef(null);// After a click, hold the clicked section as current until the jump has settled,\n// so the marker doesn't flash through the sections in between.\nconst lockUntil=useRef(0);const offset=Number(props.offset)||120;const mode=props.mode||\"Sidebar\";const enhanced=LAYOUTS.includes(mode);const popId=\"dstc-toc-\"+React.useId().replace(/[^a-zA-Z0-9_-]/g,\"\");// List, Rail and Bar render from the TOC list on the server; without any # lines\n// they fall back to the page's headings, found after mount.\nconst parsed=parseTocList(props.tocList);const hasList=parsed.entries.length>0;const collapse=props.collapse===undefined?DEFAULT_COLLAPSE:props.collapse;const source=hasList?parsed.entries:canvas&&enhanced?parseTocList(SAMPLE_LIST).entries:entries;const{sections,flat}=enhanced?toSections(source,parsed.labels,collapse):{sections:[],flat:[]};const sig=flat.map(f=>f.id+\"\\x01\"+f.label+\"\\x01\"+f.level).join(\"\\x02\")+\"\\x03\"+sections.length;// Find headings, assign ids, honour the hash.\nuseEffect(()=>{if(canvas||props.show===false||enhanced&&hasList)return;let cancelled=false;const run=()=>{if(cancelled)return;const list=collectHeadings(props.contentSelector,props.levels,offset,preset,!enhanced);setEntries(list.map(({id,text,level})=>({id,text,level})));const h=decodeURIComponent(window.location.hash.slice(1));if(h){const el=document.getElementById(h);if(el)el.scrollIntoView({block:\"start\",behavior:\"instant\"});}};// Rich text is SSR'd, but wait a frame so hydration has settled.\nconst t=window.requestAnimationFrame(()=>window.setTimeout(run,0));return()=>{cancelled=true;window.cancelAnimationFrame(t);};// eslint-disable-next-line react-hooks/exhaustive-deps\n},[props.contentSelector,props.levels,props.show,enhanced,hasList]);// Scroll-spy for Sidebar and Disclosure: the current section is the last heading above the top band.\nuseEffect(()=>{if(canvas||enhanced||!entries.length||typeof IntersectionObserver===\"undefined\")return;const els=entries.map(e=>document.getElementById(e.id)).filter(Boolean);if(!els.length)return;const pick=()=>{if(Date.now()<lockUntil.current)return;let cur=els[0].id;for(const el of els){if(el.getBoundingClientRect().top-offset-8<=0)cur=el.id;else break;}// At the very bottom of the page, the last heading is current.\nif(window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-2)cur=els[els.length-1].id;setActive(cur);};const io=new IntersectionObserver(pick,{rootMargin:`-${offset}px 0px -55% 0px`,threshold:[0,1]});els.forEach(el=>io.observe(el));window.addEventListener(\"scroll\",pick,{passive:true});pick();return()=>{io.disconnect();window.removeEventListener(\"scroll\",pick);};},[entries,offset,canvas,enhanced]);// List, Rail and Bar: the markup is already there; this only marks where you are.\n// It sets attributes and --p straight on the elements, so scrolling never re-renders React.\nuseEffect(()=>{const root=rootRef.current;if(canvas||!enhanced||props.show===false||!root||!flat.length)return;let cancelled=false;let raf=0;let cleanup=()=>{};const start=()=>{if(cancelled)return;const found=collectHeadings(props.contentSelector,props.levels,offset,flat,false);if(hasList){const h=decodeURIComponent(window.location.hash.slice(1));const el=h?document.getElementById(h):null;if(el)el.scrollIntoView({block:\"start\",behavior:\"instant\"});}const links=flat.map(()=>null);root.querySelectorAll(\"a[data-i]\").forEach(a=>links[Number(a.dataset.i)]=a);// Match list items to headings: by id, then by text. Fix the href if the page's id differs.\nconst used=new Set;const els=flat.map(()=>null);flat.forEach((f,k)=>{let j=found.findIndex((h,x)=>!used.has(x)&&h.id===f.id);if(j<0)j=found.findIndex((h,x)=>!used.has(x)&&h.level===f.level&&norm(h.text)===norm(f.text));if(j<0)return;used.add(j);els[k]=found[j].el;const l=links[k];if(l&&found[j].id!==f.id)l.setAttribute(\"href\",\"#\"+found[j].id);});const spy=[];els.forEach((el,k)=>el&&spy.push(k));const secOf=[];const headOf=[];sections.forEach((s,n)=>{headOf.push(s.head.i);secOf[s.head.i]=n;s.kids.forEach(kid=>secOf[kid.i]=n);});const secLis=Array.from(root.querySelectorAll(\"li[data-sec]\"));const dashes=Array.from(root.querySelectorAll(\"[data-dash]\"));const nav=root.querySelector(\"nav\");const count=root.querySelector(\"[data-count]\");const now=root.querySelector(\"[data-now]\");const rail=root.querySelector(\"[data-rail]\");const sheet=root.querySelector(\"[popover]\");const setText=(el,text)=>{if(!el)return;if(el.firstChild&&el.firstChild.nodeType===3)el.firstChild.data=text;else el.textContent=text;};const pad=()=>parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||offset;let curK=-1;let curS=-1;const apply=k=>{if(k!==curK){const old=links[curK];if(old)old.removeAttribute(\"aria-current\");const l=links[k];if(l)l.setAttribute(\"aria-current\",\"location\");curK=k;}const s=secOf[k];if(s===curS)return;curS=s;secLis.forEach(li=>li.toggleAttribute(\"data-current\",Number(li.dataset.sec)===s));dashes.forEach(d=>d.toggleAttribute(\"data-current\",Number(d.dataset.sec)===s));setText(count,s+1+\"/\"+sections.length);setText(now,sections[s].head.label);root.querySelector(\".dstc-tb-btn\")?.setAttribute(\"aria-label\",`${sections[s].head.label}, section ${s+1} of ${sections.length}`);// Keep the current link in view by scrolling the list itself, never the window.\nconst a=links[k];if(nav&&a&&nav.scrollHeight>nav.clientHeight+1&&nav.getClientRects().length){const nr=nav.getBoundingClientRect();const ar=a.getBoundingClientRect();if(ar.top<nr.top+8)nav.scrollTop+=ar.top-nr.top-8;else if(ar.bottom>nr.bottom-8)nav.scrollTop+=ar.bottom-nr.bottom+8;}};const pick=()=>{if(!spy.length||Date.now()<lockUntil.current)return;const line=pad()+8;let k=spy[0];for(const j of spy){if(els[j].getBoundingClientRect().top-line<=0)k=j;else break;}// At the very bottom of the page, the last heading is current.\nif(window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-2)k=spy[spy.length-1];apply(k);};const progress=()=>{if(curS<0)return;const head=els[headOf[curS]];if(!head)return;const top=el=>el.getBoundingClientRect().top+window.scrollY;let end=0;for(let n=curS+1;n<sections.length&&!end;n++){const nx=els[headOf[n]];if(nx)end=top(nx);}if(!end){const c=findContent(props.contentSelector);end=c?c.getBoundingClientRect().bottom+window.scrollY:document.documentElement.scrollHeight;}const from=top(head);const y=window.scrollY+pad();root.style.setProperty(\"--p\",String(end>from?round3(clamp01((y-from)/(end-from))):0));};const run=()=>{raf=0;pick();progress();};const queue=()=>{if(!raf)raf=window.requestAnimationFrame(run);};const onClick=e=>{if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;const a=e.target.closest(\"a\");if(!a||!root.contains(a))return;const close=()=>{try{if(sheet&&sheet.hidePopover)sheet.hidePopover();}catch(_){}};if(a.hasAttribute(\"data-top\")){// Instant jump to the top, with focus moved to the page's first heading.\ne.preventDefault();lockUntil.current=Date.now()+400;close();window.scrollTo({top:0,behavior:\"instant\"});const target=document.querySelector(\"h1\")||document.body;if(!target.hasAttribute(\"tabindex\"))target.setAttribute(\"tabindex\",\"-1\");if(target===document.body)target.style.outline=\"none\";target.focus({preventScroll:true});window.history.pushState(null,\"\",window.location.pathname+window.location.search);if(spy.length)apply(spy[0]);queue();return;}// a.hash, not the href attribute: Framer rewrites links to full URLs when the page has query params.\nif(!a.hash||a.pathname!==window.location.pathname)return;const id=decodeURIComponent(a.hash.slice(1));const el=document.getElementById(id);if(!el)return;e.preventDefault();// No smooth scrolling: \"instant\" also overrides any scroll-behavior: smooth on html.\n// Where it lands comes from scroll-padding-top.\nlockUntil.current=Date.now()+400;const k=Number(a.dataset.i);if(k>=0)apply(k);close();el.scrollIntoView({behavior:\"instant\",block:\"start\"});const target=k>=0&&els[k]||el;target.focus({preventScroll:true});window.history.pushState(null,\"\",window.location.search+\"#\"+encodeURIComponent(id));queue();};const onKey=e=>{if(e.ctrlKey||e.metaKey||e.altKey)return;const t=e.target;if(e.key===\"Escape\"){// Rail: focus goes to the wrapper and the panel stays shut until the pointer leaves or a link is focused.\n// Not when the list is shown in place (the dashes are hidden): there is nothing to shut.\nif(rail&&rail.contains(t)&&t!==rail&&dashes.some(d=>d.getClientRects().length>0)){rail.setAttribute(\"data-dismissed\",\"\");rail.focus({preventScroll:true});}return;}if(![\"ArrowDown\",\"ArrowUp\",\"Home\",\"End\"].includes(e.key))return;const n=t.closest(\"nav\");if(!n||!root.contains(n)||t.tagName!==\"A\")return;const vis=Array.from(n.querySelectorAll(\"a\")).filter(a=>a.getClientRects().length>0);const i=vis.indexOf(t);if(i<0)return;let to=0;if(e.key===\"End\")to=vis.length-1;else if(e.key===\"ArrowDown\")to=i===vis.length-1?0:i+1;else if(e.key===\"ArrowUp\")to=i===0?vis.length-1:i-1;e.preventDefault();vis[to].focus();};const undismiss=()=>rail&&rail.removeAttribute(\"data-dismissed\");const onFocusIn=e=>{if(rail&&e.target!==rail)undismiss();};root.addEventListener(\"click\",onClick);root.setAttribute(\"data-ready\",\"\");root.addEventListener(\"keydown\",onKey);root.addEventListener(\"focusin\",onFocusIn);if(rail)rail.addEventListener(\"mouseleave\",undismiss);const io=typeof IntersectionObserver!==\"undefined\"?new IntersectionObserver(queue,{rootMargin:`-${pad()}px 0px -55% 0px`,threshold:[0,1]}):null;if(io)spy.forEach(k=>io.observe(els[k]));window.addEventListener(\"scroll\",queue,{passive:true});window.addEventListener(\"resize\",queue);run();cleanup=()=>{root.removeEventListener(\"click\",onClick);root.removeEventListener(\"keydown\",onKey);root.removeEventListener(\"focusin\",onFocusIn);if(rail)rail.removeEventListener(\"mouseleave\",undismiss);if(io)io.disconnect();window.removeEventListener(\"scroll\",queue);window.removeEventListener(\"resize\",queue);if(raf)window.cancelAnimationFrame(raf);};};// Rich text is SSR'd, but wait a frame so hydration has settled.\nconst t=window.requestAnimationFrame(()=>window.setTimeout(start,0));return()=>{cancelled=true;window.cancelAnimationFrame(t);cleanup();};// eslint-disable-next-line react-hooks/exhaustive-deps\n},[sig,mode,hasList,canvas,props.show,props.contentSelector,props.levels,offset]);const go=(e,id)=>{const el=document.getElementById(id);if(!el)return;e.preventDefault();// No smooth scrolling: jump straight there. \"instant\" also overrides any\n// scroll-behavior: smooth the site sets on html.\nlockUntil.current=Date.now()+400;setActive(id);el.scrollIntoView({behavior:\"instant\",block:\"start\"});el.focus({preventScroll:true});window.history.pushState(null,\"\",window.location.search+\"#\"+encodeURIComponent(id));if(mode===\"Disclosure\"&&discRef.current&&props.closeOnSelect!==false)discRef.current.open=false;};const sample=[{id:\"a\",text:\"What does APCA stand for?\",level:2},{id:\"b\",text:\"What an APCA score (Lc) means\",level:2},{id:\"c\",text:\"Positive and negative scores\",level:3},{id:\"d\",text:\"How APCA differs from WCAG 2\",level:2}];const list=enhanced?source:canvas?sample:entries;const min=Number.isFinite(Number(props.minHeadings))?Number(props.minHeadings):3;if(props.show===false&&!canvas)return null;if(!canvas&&list.length<min)return null;const title=props.title||\"On this page\";// List, Rail and Bar: normal flow, all of it in the server HTML.\nif(enhanced){if(!sections.length)return null;const gap=Number.isFinite(Number(props.jumpGap))&&props.jumpGap!==undefined?Number(props.jumpGap):24;const bleed=Number.isFinite(Number(props.bleed))&&props.bleed!==undefined?Number(props.bleed):24;const vars={...props.style,\"--off\":offset+\"px\"};if(mode===\"Bar\")vars[\"--bleed\"]=bleed+\"px\";let body;if(mode===\"Rail\"){body=/*#__PURE__*/_jsxs(\"div\",{className:\"dstc-tr\",\"data-rail\":\"\",tabIndex:-1,children:[/*#__PURE__*/_jsx(\"div\",{className:\"dstc-tr-dashes\",\"aria-hidden\":\"true\",children:sections.map((_,n)=>/*#__PURE__*/_jsx(\"span\",{className:\"dstc-tr-dash\",\"data-dash\":\"\",\"data-sec\":n},n))}),/*#__PURE__*/_jsx(\"div\",{className:\"dstc-tr-panel\",children:/*#__PURE__*/_jsx(TocNav,{sections:sections,title:title,top:true})})]});}else if(mode===\"Bar\"){const n=sections.length;body=/*#__PURE__*/_jsxs(\"nav\",{className:\"dstc-tb\",\"aria-label\":title,children:[/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"dstc-tb-btn\",\"aria-label\":`${title}, ${n} ${n===1?\"section\":\"sections\"}`,...{popovertarget:popId},children:[/*#__PURE__*/_jsx(\"span\",{className:\"dstc-tb-count\",\"data-count\":\"\",\"aria-hidden\":\"true\",children:`${n} ${n===1?\"section\":\"sections\"}`}),/*#__PURE__*/_jsx(\"span\",{className:\"dstc-tb-now\",\"data-now\":\"\",\"aria-hidden\":\"true\",children:title}),/*#__PURE__*/_jsx(\"span\",{className:\"dstc-tb-chev\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M3 5l4 4 4-4\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})}),/*#__PURE__*/_jsx(\"span\",{className:\"dstc-tb-prog\",\"aria-hidden\":\"true\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"dstc-tb-sheet\",id:popId,...{popover:\"\"},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"dstc-tb-head\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"dstc-tb-title\",\"aria-hidden\":\"true\",children:title}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"dstc-tb-close\",\"aria-label\":\"Close\",...{popovertarget:popId,popovertargetaction:\"hide\"},children:/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"\\xd7\"})})]}),/*#__PURE__*/_jsx(TocNav,{sections:sections,title:title,top:true,inNav:true})]})]});}else body=/*#__PURE__*/_jsx(TocNav,{sections:sections,title:title,top:true});return /*#__PURE__*/_jsxs(\"div\",{className:mode===\"Rail\"?\"dstc dstc-tx dstc-tx-rail\":\"dstc dstc-tx\",\"data-dstc\":\"toc\",ref:rootRef,style:vars,children:[/*#__PURE__*/_jsx(Style,{css:BASE_CSS+LIST_CSS+scrollCss(gap)}),/*#__PURE__*/_jsx(\"script\",{dangerouslySetInnerHTML:{__html:EARLY_TAP}}),body]});}const items=/*#__PURE__*/_jsx(\"ol\",{children:list.map(e=>/*#__PURE__*/_jsx(\"li\",{\"data-level\":e.level,children:/*#__PURE__*/_jsx(\"a\",{href:\"#\"+e.id,\"aria-current\":active===e.id?\"location\":undefined,onClick:ev=>go(ev,e.id),children:e.text})},e.id))});return /*#__PURE__*/_jsxs(\"nav\",{className:\"dstc dstc-toc\",\"data-dstc\":\"toc\",\"aria-label\":title,style:{...props.style},children:[/*#__PURE__*/_jsx(Style,{css:BASE_CSS+TOC_CSS}),mode===\"Disclosure\"?/*#__PURE__*/_jsxs(\"details\",{className:\"dstc-toc-disc\",ref:discRef,open:props.startOpen?true:undefined,children:[/*#__PURE__*/_jsxs(\"summary\",{children:[title,/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",focusable:\"false\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 9l6 6 6-6\"})})]}),items]}):/*#__PURE__*/_jsxs(\"div\",{className:\"dstc-toc-side\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"dstc-toc-title\",\"aria-hidden\":\"true\",children:title}),items]})]});}TableOfContents.displayName=\"Table of Contents\";addPropertyControls(TableOfContents,{show:{type:ControlType.Boolean,title:\"Show\",defaultValue:true,description:'Bind the CMS \"Show TOC\" field.'},mode:{type:ControlType.Enum,title:\"Layout\",options:[\"Sidebar\",\"Disclosure\",\"List\",\"Rail\",\"Bar\"],defaultValue:\"Sidebar\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"On this page\"},levels:{type:ControlType.Enum,title:\"Headings\",options:[\"H2\",\"H2 and H3\"],defaultValue:\"H2 and H3\",displaySegmentedControl:true},minHeadings:{type:ControlType.Number,title:\"Min headings\",defaultValue:3,min:0,max:20,step:1,displayStepper:true,description:\"Hidden when the article has fewer headings than this.\"},offset:{type:ControlType.Number,title:\"Header offset\",defaultValue:120,min:0,max:400,unit:\"px\"},jumpGap:{type:ControlType.Number,title:\"Jump gap\",defaultValue:24,min:0,max:200,unit:\"px\",hidden:p=>!LAYOUTS.includes(p.mode),description:\"Space above a heading after a jump (scroll-padding-top). Phones add room for the Bar.\"},contentSelector:{type:ControlType.String,title:\"Content selector\",defaultValue:'[data-framer-name=\"Content\"]'},tocJson:{type:ControlType.String,title:\"TOC JSON\",displayTextArea:true,description:'Optional SSR list: [{\"id\",\"text\",\"level\":2|3}].'},tocList:{type:ControlType.String,title:\"TOC list\",displayTextArea:true,hidden:p=>!LAYOUTS.includes(p.mode),description:'One heading per line: \"## Heading = Short label {#id}\". ### for sub-headings. Bind a CMS field.'},bleed:{type:ControlType.Number,title:\"Bleed\",defaultValue:24,min:0,max:200,unit:\"px\",hidden:p=>p.mode!==\"Bar\"},startOpen:{type:ControlType.Boolean,title:\"Start open\",defaultValue:false,hidden:p=>p.mode!==\"Disclosure\"},closeOnSelect:{type:ControlType.Boolean,title:\"Close on select\",defaultValue:true,hidden:p=>p.mode!==\"Disclosure\"},collapse:{type:ControlType.String,title:\"Collapse\",defaultValue:DEFAULT_COLLAPSE,hidden:p=>!LAYOUTS.includes(p.mode),description:\"Comma-separated H2s whose H3s are never listed.\"}})// re-saved on blog-toc 2026-10-28\n;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TableOfContents\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"240\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TableOfContents.map"],"mappings":"A,oOA+CE,SAASoB,EAAM,CAAC,OAAK,CAAC,MAAoB,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAOC,CAAG,CAAC,CAAC,CAAE,CAMoE,SAASC,EAAQ,EAAK,CAAC,OAAO,OAAOC,GAAM,EAAE,CAAC,CAAC,UAAU,MAAM,CAAC,CAAC,QAAQ,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,QAAQ,cAAc,GAAG,CAAC,CAAC,QAAQ,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,GAAG,SAAU,CAAC,SAASC,EAAU,EAAI,EAAS,CAAC,IAAMC,EAAE,OAAOC,GAAK,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,CAACD,EAAE,MAAM,CAAC,MAAME,EAAS,MAAM,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,KAAK,MAAMF,CAAC,EAAE,MAAM,EAAE,CAAE,MAAS,CAAC,MAAM,CAAC,MAAME,EAAS,MAAM,gBAAgB,CAAE,CAAC,CAyKjjB,SAASC,EAAa,EAAI,CAAC,IAAMC,EAAQ,CAAC,EAAQC,kBAAO,IAAI,IAAI,IAAI,IAAMC,KAAQ,OAAOL,GAAK,EAAE,CAAC,CAAC,MAAM,OAAO,EAAE,CAAC,IAAMM,EAAED,EAAK,KAAK,EAAE,GAAG,CAACC,EAAE,SAAS,IAAMC,EAAE,oBAAoB,KAAKD,CAAC,EAAE,GAAG,CAACC,EAAE,CAAC,GAAGD,EAAE,KAAK,IAAI,SAAS,IAAME,EAAEF,EAAE,QAAQ,KAAK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