{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navbar-dock-stacks",
  "type": "registry:component",
  "title": "Navbar Dock Stacks",
  "description": "A dock across the top of an app whose tiles swell toward the pointer and bounce when pressed. Folder items open a stack that fans out in an arc of cards, which turns into a plain list sheet on phones.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "navigation",
    "navbar",
    "dock",
    "magnify",
    "stack",
    "fan",
    "app"
  ],
  "docs": "https://hyperblur.dev/effects/navbar-dock-stacks",
  "files": [
    {
      "path": "registry/hyperblur/navbar-dock-stacks.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/navbar-dock-stacks.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface NavbarDockStacksEntry {\n  title: string;\n  hint?: string;\n  href: string;\n  tone?: string;\n}\n\nexport interface NavbarDockStacksItem {\n  label: string;\n  icon: \"home\" | \"projects\" | \"library\" | \"inbox\" | \"calendar\" | \"search\" | \"settings\" | \"chart\" | React.ReactNode;\n  href?: string;\n  badge?: number;\n  stack?: NavbarDockStacksEntry[];\n  stackLink?: { label: string; href: string };\n  divider?: boolean;\n}\n\nexport interface NavbarDockStacksProps extends Omit<React.HTMLAttributes<HTMLElement>, \"children\"> {\n  brand?: string;\n  items?: NavbarDockStacksItem[];\n  active?: number;\n  defaultActive?: number;\n  onActiveChange?: (index: number) => void;\n  defaultOpenStack?: number | null;\n  onStackOpenChange?: (index: number | null) => void;\n  magnify?: number;\n  accent?: string;\n  showBackdrop?: boolean;\n}\n\nconst defaultItems: NavbarDockStacksItem[] = [\n  { label: \"Home\", icon: \"home\", href: \"#home\" },\n  {\n    label: \"Projects\",\n    icon: \"projects\",\n    stack: [\n      { title: \"Orbit rebrand\", hint: \"Edited 4m ago\", href: \"#orbit\", tone: \"linear-gradient(140deg,#f97316,#be123c)\" },\n      { title: \"Q4 board deck\", hint: \"Edited 1h ago\", href: \"#deck\", tone: \"linear-gradient(140deg,#6366f1,#0ea5e9)\" },\n      { title: \"Field research\", hint: \"Edited yesterday\", href: \"#research\", tone: \"linear-gradient(140deg,#10b981,#0f766e)\" },\n      { title: \"Pricing page v3\", hint: \"Edited Mon\", href: \"#pricing\", tone: \"linear-gradient(140deg,#eab308,#a16207)\" },\n    ],\n    stackLink: { label: \"All projects\", href: \"#projects\" },\n  },\n  {\n    label: \"Library\",\n    icon: \"library\",\n    stack: [\n      { title: \"Brand guidelines\", hint: \"PDF, 18 MB\", href: \"#brand\", tone: \"linear-gradient(140deg,#a855f7,#6d28d9)\" },\n      { title: \"Icon set 2.4\", hint: \"312 icons\", href: \"#icons\", tone: \"linear-gradient(140deg,#14b8a6,#155e75)\" },\n      { title: \"Photo archive\", hint: \"1,204 photos\", href: \"#photos\", tone: \"linear-gradient(140deg,#f43f5e,#9f1239)\" },\n    ],\n    stackLink: { label: \"Open library\", href: \"#library\" },\n  },\n  { label: \"Inbox\", icon: \"inbox\", href: \"#inbox\", badge: 5 },\n  { label: \"Calendar\", icon: \"calendar\", href: \"#calendar\" },\n  { label: \"Search\", icon: \"search\", href: \"#search\", divider: true },\n  { label: \"Settings\", icon: \"settings\", href: \"#settings\" },\n];\n\nconst ease = \"cubic-bezier(.22,1,.36,1)\";\nconst spring = \"cubic-bezier(.34,1.5,.5,1)\";\n\nconst css = `\n.hb-xj9 {\n  --hb-xj9-accent: #60a5fa;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  container-type: inline-size;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-xj9 *, .hb-xj9 *::before, .hb-xj9 *::after { box-sizing: border-box; }\n.hb-xj9[data-backdrop=\"true\"] {\n  min-height: 620px;\n  overflow: hidden;\n  background:\n    radial-gradient(70% 60% at 20% 0%, rgba(96,165,250,.16), transparent 60%),\n    radial-gradient(60% 60% at 90% 30%, rgba(244,63,94,.12), transparent 60%),\n    #0a0a0a;\n}\n.hb-xj9-top { position: relative; z-index: 4; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 22px 0; }\n.hb-xj9-brand { display: inline-flex; align-items: center; gap: 9px; height: 62px; color: #ededed; font-size: 15px; font-weight: 650; letter-spacing: -.02em; text-decoration: none; flex: 1; }\n.hb-xj9-brand i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--hb-xj9-accent), #f43f5e); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); font-style: normal; }\n.hb-xj9-side { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 62px; flex: 1; color: #a1a1a1; font-size: 13px; }\n.hb-xj9-side b { color: #ededed; font-weight: 500; font-variant-numeric: tabular-nums; }\n.hb-xj9-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 3px #2a2a2a; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }\n.hb-xj9-dockwrap { position: relative; flex: none; }\n.hb-xj9-dock {\n  position: relative;\n  display: flex;\n  align-items: flex-start;\n  gap: 6px;\n  min-height: 62px;\n  margin: 0;\n  padding: 7px 8px;\n  list-style: none;\n  border-radius: 22px;\n  border: 1px solid rgba(255,255,255,.1);\n  background: linear-gradient(180deg, rgba(38,38,42,.72), rgba(20,20,23,.78));\n  backdrop-filter: blur(20px) saturate(170%);\n  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 24px 50px -20px rgba(0,0,0,.9);\n}\n.hb-xj9-dock > li { position: relative; display: flex; }\n.hb-xj9-div { width: 1px; align-self: stretch; margin: 4px 2px; background: rgba(255,255,255,.12); }\n.hb-xj9-item {\n  --hb-xj9-s: 1;\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: calc(46px * var(--hb-xj9-s));\n  height: calc(46px * var(--hb-xj9-s));\n  border: 0;\n  border-radius: calc(13px * var(--hb-xj9-s));\n  background: linear-gradient(180deg, #2c2c31, #1b1b1f);\n  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.04), 0 6px 14px -8px rgba(0,0,0,.8);\n  color: #d4d4d4;\n  text-decoration: none;\n  cursor: pointer;\n  transition: width .2s ${ease}, height .2s ${ease}, border-radius .2s ${ease}, color .2s ease, background-color .2s ease;\n}\n.hb-xj9-dock[data-tracking=\"true\"] .hb-xj9-item { transition: width .09s linear, height .09s linear, border-radius .09s linear, color .2s ease; }\n.hb-xj9-item:hover, .hb-xj9-item[aria-expanded=\"true\"] { color: #fff; }\n.hb-xj9-item[aria-expanded=\"true\"] { background: linear-gradient(180deg, #3a3a41, #24242a); }\n.hb-xj9-item svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }\n.hb-xj9-item[data-bounce=\"true\"] { animation: hb-xj9-bounce .6s ${spring}; }\n@keyframes hb-xj9-bounce { 0% { transform: translateY(0); } 35% { transform: translateY(8px); } 70% { transform: translateY(-2px); } 100% { transform: none; } }\n.hb-xj9-run { position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: var(--hb-xj9-accent); box-shadow: 0 0 8px var(--hb-xj9-accent); transform: translateX(-50%); }\n.hb-xj9-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff453a; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #1a1a1d; }\n.hb-xj9-tip {\n  position: absolute;\n  top: calc(100% + 12px);\n  left: 50%;\n  padding: 5px 9px;\n  border-radius: 8px;\n  border: 1px solid rgba(255,255,255,.1);\n  background: #1c1c1f;\n  color: #ededed;\n  font-size: 12px;\n  font-weight: 500;\n  white-space: nowrap;\n  pointer-events: none;\n  opacity: 0;\n  transform: translate(-50%, -4px);\n  transition: opacity .15s ease, transform .25s ${ease};\n}\n.hb-xj9-dock > li:hover .hb-xj9-tip, .hb-xj9-item:focus-visible + .hb-xj9-tip { opacity: 1; transform: translate(-50%, 0); }\n.hb-xj9-dock > li[data-open=\"true\"] .hb-xj9-tip { opacity: 0; }\n.hb-xj9-stack { position: absolute; top: calc(100% + 16px); left: 50%; z-index: 5; width: 0; margin: 0; padding: 0; list-style: none; }\n.hb-xj9-card {\n  position: absolute;\n  top: 0;\n  left: 0;\n  display: flex;\n  align-items: center;\n  gap: 11px;\n  width: 236px;\n  height: 52px;\n  padding: 0 14px 0 8px;\n  border-radius: 14px;\n  border: 1px solid rgba(255,255,255,.1);\n  background: linear-gradient(180deg, rgba(40,40,44,.94), rgba(24,24,27,.96));\n  backdrop-filter: blur(16px);\n  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 34px -16px rgba(0,0,0,.95);\n  color: #ededed;\n  text-decoration: none;\n  transform-origin: 0 50%;\n  transform: translate(calc(-26px + var(--hb-xj9-fx)), var(--hb-xj9-fy)) rotate(var(--hb-xj9-fr));\n  animation: hb-xj9-fan .55s ${spring} both;\n  animation-delay: calc(var(--hb-xj9-i) * 45ms);\n  transition: transform .3s ${ease}, background-color .2s ease, border-color .2s ease;\n}\n@keyframes hb-xj9-fan { from { opacity: 0; transform: translate(-26px, -20px) rotate(0deg) scale(.5); } }\n.hb-xj9-card:hover, .hb-xj9-card:focus-visible { border-color: rgba(255,255,255,.22); transform: translate(calc(-20px + var(--hb-xj9-fx)), var(--hb-xj9-fy)) rotate(var(--hb-xj9-fr)); }\n.hb-xj9-tile { width: 36px; height: 36px; flex: none; border-radius: 9px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(255,255,255,.08); }\n.hb-xj9-ct { display: grid; min-width: 0; line-height: 1.2; }\n.hb-xj9-ct b { font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.hb-xj9-ct small { color: #8f8f8f; font-size: 11.5px; }\n.hb-xj9-more { justify-content: center; height: 38px; color: var(--hb-xj9-accent); font-size: 13px; font-weight: 550; background: rgba(24,24,27,.85); }\n.hb-xj9 a:focus-visible, .hb-xj9 button:focus-visible { outline: 2px solid var(--hb-xj9-accent); outline-offset: 3px; }\n@container (max-width: 680px) {\n  .hb-xj9-top { padding: 10px 10px 0; justify-content: center; }\n  .hb-xj9-brand, .hb-xj9-side { display: none; }\n  .hb-xj9-dockwrap { position: static; max-width: 100%; }\n  .hb-xj9-dock { gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; border-radius: 20px; }\n  .hb-xj9-dock::-webkit-scrollbar { display: none; }\n  .hb-xj9-item { width: 42px; height: 42px; border-radius: 12px; }\n  .hb-xj9-tip { display: none; }\n  .hb-xj9-dock > li { position: static; }\n  .hb-xj9-stack {\n    position: absolute;\n    top: calc(100% + 8px);\n    left: 10px;\n    right: 10px;\n    width: auto;\n    padding: 6px;\n    border-radius: 20px;\n    border: 1px solid rgba(255,255,255,.1);\n    background: rgba(22,22,25,.96);\n    backdrop-filter: blur(16px);\n    box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);\n    animation: hb-xj9-sheet .4s ${ease};\n  }\n  @keyframes hb-xj9-sheet { from { opacity: 0; transform: translateY(-8px); } }\n  .hb-xj9-card { position: relative; width: 100%; height: 56px; border: 0; background: none; box-shadow: none; backdrop-filter: none; transform: none; animation: hb-xj9-row .4s ${ease} both; animation-delay: calc(var(--hb-xj9-i) * 40ms); }\n  .hb-xj9-card:hover, .hb-xj9-card:focus-visible { transform: none; background: rgba(255,255,255,.05); }\n  @keyframes hb-xj9-row { from { opacity: 0; transform: translateY(-6px); } }\n  .hb-xj9-more { height: 44px; background: none; }\n}\n.hb-xj9-page { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 60px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }\n.hb-xj9-page h2 { grid-column: 1 / -1; margin: 0 0 8px; font-size: 30px; font-weight: 600; letter-spacing: -.03em; }\n.hb-xj9-page h2 small { display: block; margin-top: 4px; color: #8f8f8f; font-size: 14px; font-weight: 400; letter-spacing: 0; }\n.hb-xj9-pc { height: 150px; border-radius: 16px; border: 1px solid #1f1f1f; background: #111; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }\n.hb-xj9-pc i { width: 100%; height: 70px; border-radius: 10px; font-style: normal; }\n.hb-xj9-pc b { font-size: 13.5px; font-weight: 550; }\n@container (max-width: 680px) { .hb-xj9-page { grid-template-columns: 1fr 1fr; padding: 40px 14px; } }\n@media (prefers-reduced-motion: reduce) {\n  .hb-xj9 *, .hb-xj9 *::before, .hb-xj9 *::after { transition: none !important; animation: none !important; }\n}\n`;\n\nconst glyphs: Record<string, React.ReactNode> = {\n  home: <path d=\"M4 10.5 12 4l8 6.5V19a1 1 0 0 1-1 1h-4.5v-5.5h-5V20H5a1 1 0 0 1-1-1z\" />,\n  projects: (\n    <>\n      <path d=\"M3.5 7.5a1.5 1.5 0 0 1 1.5-1.5h4l2 2h8a1.5 1.5 0 0 1 1.5 1.5v8A1.5 1.5 0 0 1 19 18.5H5A1.5 1.5 0 0 1 3.5 17z\" />\n    </>\n  ),\n  library: (\n    <>\n      <rect x=\"4\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\" />\n      <rect x=\"10\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\" />\n      <path d=\"m16.5 5.2 3.6-.9 3 13.6-3.6.9z\" transform=\"translate(-2.5 .5)\" />\n    </>\n  ),\n  inbox: (\n    <>\n      <path d=\"M4 13.5 6.3 6a1.5 1.5 0 0 1 1.4-1h8.6a1.5 1.5 0 0 1 1.4 1L20 13.5V18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z\" />\n      <path d=\"M4 13.5h4.5l1 2h5l1-2H20\" />\n    </>\n  ),\n  calendar: (\n    <>\n      <rect x=\"4\" y=\"5.5\" width=\"16\" height=\"14\" rx=\"2\" />\n      <path d=\"M4 10h16M8.5 3.5v4M15.5 3.5v4\" />\n    </>\n  ),\n  search: (\n    <>\n      <circle cx=\"11\" cy=\"11\" r=\"6\" />\n      <path d=\"m15.5 15.5 4 4\" />\n    </>\n  ),\n  settings: (\n    <>\n      <circle cx=\"12\" cy=\"12\" r=\"3\" />\n      <path d=\"M12 3.5v2.2M12 18.3v2.2M3.5 12h2.2M18.3 12h2.2M6 6l1.6 1.6M16.4 16.4 18 18M6 18l1.6-1.6M16.4 7.6 18 6\" />\n    </>\n  ),\n  chart: <path d=\"M5 19V11M10 19V6M15 19v-5M20 19V9\" />,\n};\n\nfunction Glyph({ icon }: { icon: NavbarDockStacksItem[\"icon\"] }) {\n  if (typeof icon === \"string\" && glyphs[icon]) {\n    return (\n      <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n        {glyphs[icon]}\n      </svg>\n    );\n  }\n  return <>{icon}</>;\n}\n\nfunction fan(i: number) {\n  const x = i * i * 5 + i * 6;\n  const y = i * 58;\n  const r = i * 2.2;\n  return { \"--hb-xj9-fx\": `${x.toFixed(1)}px`, \"--hb-xj9-fy\": `${y.toFixed(1)}px`, \"--hb-xj9-fr\": `${r.toFixed(2)}deg`, \"--hb-xj9-i\": i } as React.CSSProperties;\n}\n\nexport function NavbarDockStacks({\n  brand = \"Atelier\",\n  items = defaultItems,\n  active,\n  defaultActive = 0,\n  onActiveChange,\n  defaultOpenStack = null,\n  onStackOpenChange,\n  magnify = 0.55,\n  accent = \"#60a5fa\",\n  showBackdrop = true,\n  className,\n  style,\n  ...rest\n}: NavbarDockStacksProps) {\n  const [innerActive, setInnerActive] = React.useState(defaultActive);\n  const [openStack, setOpenStackState] = React.useState<number | null>(defaultOpenStack);\n  const [bounce, setBounce] = React.useState<number | null>(null);\n  const dockRef = React.useRef<HTMLUListElement>(null);\n  const btnRefs = React.useRef<(HTMLElement | null)[]>([]);\n  const wrapRef = React.useRef<HTMLDivElement>(null);\n  const current = active ?? innerActive;\n  const baseId = React.useId();\n\n  const setOpenStack = React.useCallback(\n    (v: number | null) => {\n      setOpenStackState(v);\n      onStackOpenChange?.(v);\n    },\n    [onStackOpenChange],\n  );\n\n  React.useEffect(() => {\n    if (openStack === null) return;\n    const onKey = (e: KeyboardEvent) => {\n      if (e.key === \"Escape\") {\n        const btn = btnRefs.current[openStack];\n        setOpenStack(null);\n        btn?.focus();\n      }\n    };\n    const onDown = (e: PointerEvent) => {\n      if (wrapRef.current && !wrapRef.current.contains(e.target as Node)) setOpenStack(null);\n    };\n    document.addEventListener(\"keydown\", onKey);\n    document.addEventListener(\"pointerdown\", onDown);\n    return () => {\n      document.removeEventListener(\"keydown\", onKey);\n      document.removeEventListener(\"pointerdown\", onDown);\n    };\n  }, [openStack, setOpenStack]);\n\n  const track = (e: React.PointerEvent<HTMLUListElement>) => {\n    if (e.pointerType !== \"mouse\") return;\n    const dock = dockRef.current;\n    if (!dock) return;\n    if (window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\n    if (dock.scrollWidth > dock.clientWidth + 1) return;\n    dock.dataset.tracking = \"true\";\n    for (const el of btnRefs.current) {\n      if (!el) continue;\n      const box = el.getBoundingClientRect();\n      const d = Math.abs(e.clientX - (box.left + box.width / 2));\n      const k = Math.max(0, 1 - d / 130);\n      const scale = 1 + magnify * Math.sin((k * Math.PI) / 2);\n      el.style.setProperty(\"--hb-xj9-s\", scale.toFixed(3));\n    }\n  };\n\n  const reset = () => {\n    const dock = dockRef.current;\n    if (dock) dock.dataset.tracking = \"false\";\n    for (const el of btnRefs.current) el?.style.setProperty(\"--hb-xj9-s\", \"1\");\n  };\n\n  const activate = (i: number) => {\n    const item = items[i];\n    setBounce(i);\n    if (item.stack) {\n      setOpenStack(openStack === i ? null : i);\n      return;\n    }\n    setOpenStack(null);\n    if (active === undefined) setInnerActive(i);\n    onActiveChange?.(i);\n  };\n\n  const onDockKey = (e: React.KeyboardEvent<HTMLUListElement>) => {\n    const at = btnRefs.current.findIndex((el) => el === document.activeElement);\n    if (at < 0) return;\n    if (e.key === \"ArrowRight\" || e.key === \"ArrowLeft\") {\n      e.preventDefault();\n      const n = items.length;\n      const next = (at + (e.key === \"ArrowRight\" ? 1 : -1) + n) % n;\n      btnRefs.current[next]?.focus();\n    } else if (e.key === \"ArrowDown\" && items[at].stack) {\n      e.preventDefault();\n      if (openStack !== at) setOpenStack(at);\n      requestAnimationFrame(() => document.getElementById(`${baseId}-s${at}`)?.querySelector<HTMLElement>(\"a\")?.focus());\n    }\n  };\n\n  const onStackKey = (e: React.KeyboardEvent<HTMLUListElement>) => {\n    if (e.key !== \"ArrowDown\" && e.key !== \"ArrowUp\") return;\n    const links = Array.from(e.currentTarget.querySelectorAll<HTMLAnchorElement>(\"a\"));\n    const at = links.indexOf(document.activeElement as HTMLAnchorElement);\n    e.preventDefault();\n    const next = at < 0 ? 0 : (at + (e.key === \"ArrowDown\" ? 1 : -1) + links.length) % links.length;\n    links[next]?.focus();\n  };\n\n  return (\n    <header\n      className={[\"hb-xj9\", className].filter(Boolean).join(\" \")}\n      data-backdrop={showBackdrop ? \"true\" : \"false\"}\n      style={{ \"--hb-xj9-accent\": accent, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-navbar-dock-stacks\" precedence=\"default\">\n        {css}\n      </style>\n      <div className=\"hb-xj9-top\">\n        <a className=\"hb-xj9-brand\" href=\"#top\">\n          <i aria-hidden=\"true\" />\n          {brand}\n        </a>\n        <nav className=\"hb-xj9-dockwrap\" aria-label=\"Main\" ref={wrapRef}>\n          <ul className=\"hb-xj9-dock\" ref={dockRef} onPointerMove={track} onPointerLeave={reset} onKeyDown={onDockKey}>\n            {items.map((it, i) => {\n              const isStack = !!it.stack;\n              const common = {\n                ref: (el: HTMLElement | null) => {\n                  btnRefs.current[i] = el;\n                },\n                className: \"hb-xj9-item\",\n                \"data-bounce\": bounce === i ? \"true\" : undefined,\n                onAnimationEnd: () => setBounce(null),\n              };\n              const inner = (\n                <>\n                  <Glyph icon={it.icon} />\n                  {it.badge ? <span className=\"hb-xj9-badge\">{it.badge}</span> : null}\n                  {(i === current || openStack === i) && <span className=\"hb-xj9-run\" aria-hidden=\"true\" />}\n                </>\n              );\n              return (\n                <React.Fragment key={it.label + i}>\n                  {it.divider && <li className=\"hb-xj9-div\" aria-hidden=\"true\" />}\n                  <li data-open={openStack === i ? \"true\" : undefined}>\n                    {isStack ? (\n                      <button\n                        {...common}\n                        type=\"button\"\n                        aria-label={it.label}\n                        aria-expanded={openStack === i}\n                        aria-controls={`${baseId}-s${i}`}\n                        onClick={() => activate(i)}\n                      >\n                        {inner}\n                      </button>\n                    ) : (\n                      <a\n                        {...common}\n                        href={it.href ?? \"#\"}\n                        aria-label={it.badge ? `${it.label}, ${it.badge} new` : it.label}\n                        aria-current={i === current ? \"page\" : undefined}\n                        onClick={() => activate(i)}\n                      >\n                        {inner}\n                      </a>\n                    )}\n                    <span className=\"hb-xj9-tip\" aria-hidden=\"true\">\n                      {it.label}\n                    </span>\n                    {isStack && openStack === i && (\n                      <ul className=\"hb-xj9-stack\" id={`${baseId}-s${i}`} aria-label={it.label} onKeyDown={onStackKey}>\n                        {it.stack!.map((s, si) => (\n                          <li key={s.href + si}>\n                            <a className=\"hb-xj9-card\" href={s.href} style={fan(si)} onClick={() => setOpenStack(null)}>\n                              <span className=\"hb-xj9-tile\" style={{ background: s.tone ?? \"#333\" }} aria-hidden=\"true\" />\n                              <span className=\"hb-xj9-ct\">\n                                <b>{s.title}</b>\n                                {s.hint && <small>{s.hint}</small>}\n                              </span>\n                            </a>\n                          </li>\n                        ))}\n                        {it.stackLink && (\n                          <li>\n                            <a className=\"hb-xj9-card hb-xj9-more\" href={it.stackLink.href} style={fan(it.stack!.length)} onClick={() => setOpenStack(null)}>\n                              {it.stackLink.label} →\n                            </a>\n                          </li>\n                        )}\n                      </ul>\n                    )}\n                  </li>\n                </React.Fragment>\n              );\n            })}\n          </ul>\n        </nav>\n        <div className=\"hb-xj9-side\">\n          <span>\n            <b>3</b> online\n          </span>\n          <span className=\"hb-xj9-av\" aria-label=\"Rhea Okafor\" role=\"img\">\n            RO\n          </span>\n        </div>\n      </div>\n      {showBackdrop && (\n        <div className=\"hb-xj9-page\" aria-hidden=\"true\">\n          <h2>\n            Good afternoon, Rhea\n            <small>Pick up where you left off.</small>\n          </h2>\n          {[\n            [\"Orbit rebrand\", \"linear-gradient(140deg,#f97316,#be123c)\"],\n            [\"Q4 board deck\", \"linear-gradient(140deg,#6366f1,#0ea5e9)\"],\n            [\"Field research\", \"linear-gradient(140deg,#10b981,#0f766e)\"],\n          ].map(([t, g]) => (\n            <div className=\"hb-xj9-pc\" key={t}>\n              <i style={{ background: g }} />\n              <b>{t}</b>\n            </div>\n          ))}\n        </div>\n      )}\n    </header>\n  );\n}\n"
    }
  ]
}