{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "status-page",
  "title": "Status Page",
  "description": "A status page with uptime strips on which the cursor hovers an incident bar.",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "registryDependencies": ["@remocn/gsh"],
  "files": [
    {
      "path": "registry/remocn/status-page/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont as loadGeist } from \"@remotion/google-fonts/Geist\";\nimport { loadFont as loadGeistMono } from \"@remotion/google-fonts/GeistMono\";\nimport { loadFont as loadManrope } from \"@remotion/google-fonts/Manrope\";\nimport type React from \"react\";\nimport {\n  AbsoluteFill,\n  Easing,\n  interpolate,\n  interpolateColors,\n  spring,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\nimport type { GradientParams } from \"@/lib/remocn/gsh/gradient-engine\";\nimport { GshGround } from \"@/lib/remocn/gsh/gsh-ground\";\nimport type { GshPresetId } from \"@/lib/remocn/gsh/presets\";\n\nconst geist = loadGeist(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst mono = loadGeistMono(\"normal\", { weights: [\"400\"], subsets: [\"latin\"] });\nconst manrope = loadManrope(\"normal\", { weights: [\"600\"], subsets: [\"latin\"] });\n\nexport interface StatusIncident {\n  day: number;\n  level?: \"degraded\" | \"outage\";\n  title?: string;\n  minutes?: number;\n  date?: string;\n}\n\nexport interface StatusComponent {\n  name: string;\n  uptime: number;\n  incidents?: StatusIncident[];\n}\n\nexport interface StatusPageProps {\n  brand?: string;\n  url?: string;\n  components?: StatusComponent[];\n  hover?: { component: number; day: number };\n  year?: number;\n  accent?: string;\n  speed?: number;\n  theme?: \"light\" | \"dark\";\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n}\n\nconst DEFAULT_COMPONENTS: StatusComponent[] = [\n  {\n    name: \"API\",\n    uptime: 99.98,\n    incidents: [\n      {\n        day: 69,\n        level: \"degraded\",\n        title: \"Elevated latency\",\n        minutes: 12,\n        date: \"Oct 3\",\n      },\n    ],\n  },\n  {\n    name: \"Studio\",\n    uptime: 99.99,\n    incidents: [{ day: 41, level: \"degraded\", minutes: 6, date: \"Sep 5\" }],\n  },\n  {\n    name: \"Render farm\",\n    uptime: 99.91,\n    incidents: [\n      {\n        day: 23,\n        level: \"outage\",\n        title: \"Partial outage\",\n        minutes: 47,\n        date: \"Aug 18\",\n      },\n      { day: 69, level: \"degraded\", minutes: 18, date: \"Oct 3\" },\n    ],\n  },\n  { name: \"Registry CDN\", uptime: 100 },\n  {\n    name: \"Docs\",\n    uptime: 99.99,\n    incidents: [{ day: 55, level: \"degraded\", minutes: 4, date: \"Sep 19\" }],\n  },\n];\n\nconst ENTER = Easing.bezier(0.32, 0.72, 0, 1);\nconst SOFT = Easing.bezier(0.22, 1, 0.36, 1);\nconst EXIT = Easing.bezier(0.55, 0, 1, 0.45);\nconst CAM = Easing.bezier(0.87, 0, 0.13, 1);\nconst HEAVY = { mass: 1, damping: 26, stiffness: 120 };\nconst CARD = { mass: 0.8, damping: 18, stiffness: 160 };\nconst CHIP = { mass: 0.5, damping: 12, stiffness: 200 };\nconst MORPH = { damping: 200 };\nconst CL = { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" } as const;\nconst DAYS = 90;\n\nconst B = {\n  card: 0,\n  bars: 8,\n  resolve: 54,\n  cursor: 64,\n  pushIn: 70,\n  hoverA: 92,\n  moveB: 134,\n  hoverB: 156,\n  leave: 196,\n  pullOut: 198,\n};\n\nconst clamp = (v: number, a = 0, b = 1) => Math.min(b, Math.max(a, v));\nconst lerp = (a: number, b: number, t: number) => a + (b - a) * t;\nconst tw = (f: number, a: number, b: number, e = ENTER) =>\n  interpolate(f, [a, b], [0, 1], { ...CL, easing: e });\n\nconst LIGHT = {\n  card: \"#FFFFFF\",\n  text: \"#15171C\",\n  muted: \"#5D626C\",\n  faint: \"#9599A2\",\n  empty: \"#E7E9ED\",\n  line: \"rgba(21,23,28,0.07)\",\n  green: \"#1E9E5A\",\n  amber: \"#D88A12\",\n  red: \"#D5463F\",\n  tip: \"#15171C\",\n  tipText: \"#F4F5F6\",\n  tipMuted: \"rgba(244,245,246,0.6)\",\n  shadow:\n    \"0 0 0 1px rgba(21,23,28,0.06), 0 2px 4px rgba(21,23,28,0.04), 0 32px 80px -24px rgba(21,23,28,0.28)\",\n};\nconst DARK: typeof LIGHT = {\n  card: \"#0D0F10\",\n  text: \"#ECEEF0\",\n  muted: \"#959BA3\",\n  faint: \"#5F656D\",\n  empty: \"#202427\",\n  line: \"rgba(255,255,255,0.07)\",\n  green: \"#3DD68C\",\n  amber: \"#F2B544\",\n  red: \"#FF6A63\",\n  tip: \"#202427\",\n  tipText: \"#F4F5F6\",\n  tipMuted: \"rgba(244,245,246,0.58)\",\n  shadow:\n    \"0 0 0 1px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.06), 0 48px 120px -24px rgba(0,0,0,0.85)\",\n};\ntype Pal = typeof LIGHT;\n\nconst REMOCN_R_PATH =\n  \"M 0.01 0.81 C 0.01 1.73, 0.36 2.79, 1.09 4.13 C 4.91 11.04, 13.45 17.16, 21.7 18.9 C 22.94 19.16, 23.18 19.16, 51.39 19.27 C 76.07 19.36, 80.02 19.4, 81.32 19.57 C 89.89 20.69, 96.2 24.68, 99.38 31.01 C 103.19 38.56, 102.53 50.1, 97.91 57.07 C 94.66 61.96, 89.68 64.99, 83.26 66 C 82.81 66.07, 70.18 66.83, 55.2 67.69 C 24.82 69.43, 27.03 69.23, 24.18 70.4 C 19.9 72.15, 14.84 75.7, 10.65 79.89 C 4.86 85.68, 1.3 91.91, 0.25 98.13 C 0.12 98.85, 0.08 103.13, 0.04 116.66 L 0 134.26 9.5 134.26 L 19 134.26 19.05 119.41 C 19.1 103.27, 19.08 103.82, 19.82 101.04 C 21.79 93.65, 27.86 88.75, 36.45 87.63 C 37.23 87.53, 39.41 87.5, 43.57 87.53 C 50.12 87.59, 50.75 87.65, 53.22 88.45 C 56.61 89.56, 59.67 91.86, 62.02 95.07 C 62.52 95.76, 69.35 103.85, 77.2 113.07 C 85.04 122.28, 91.63 130.04, 91.85 130.32 C 92.07 130.59, 92.5 131.34, 92.82 131.97 C 93.52 133.35, 94.11 133.93, 95.06 134.13 C 95.5 134.23, 98.97 134.26, 106.36 134.23 L 117.01 134.19 100.82 113.07 C 91.91 101.45, 84.52 91.78, 84.39 91.57 C 83.36 89.89, 83.66 87.53, 85.09 86 C 85.79 85.25, 86.36 84.94, 88.07 84.38 C 96.18 81.72, 104.15 76.62, 109.97 70.36 C 120.59 58.93, 124.06 44.32, 119.44 30.43 C 114.59 15.81, 101.93 4.02, 87.64 0.83 C 83.93 0.01, 88.09 0.08, 41.85 0.04 L 0.01 0 0.01 0.81 Z\";\n\nfunction RemocnLogo({ fontSize, color }: { fontSize: number; color: string }) {\n  return (\n    <div\n      style={{\n        display: \"flex\",\n        alignItems: \"baseline\",\n        color,\n        fontFamily: manrope.fontFamily,\n        fontWeight: 600,\n        fontSize,\n        letterSpacing: \"-0.025em\",\n        lineHeight: 1,\n      }}\n    >\n      <svg\n        viewBox=\"0 0 124.06 134.26\"\n        style={{ height: \"0.76em\", width: \"auto\" }}\n        aria-hidden\n      >\n        <path fill=\"currentColor\" d={REMOCN_R_PATH} />\n      </svg>\n      <span style={{ marginLeft: \"0.04em\" }}>emocn</span>\n    </div>\n  );\n}\n\nfunction Cursor({ x, y, press }: { x: number; y: number; press: number }) {\n  return (\n    <svg\n      width={26}\n      height={30}\n      viewBox=\"0 0 20 24\"\n      style={{\n        position: \"absolute\",\n        left: x - 2,\n        top: y - 2,\n        transformOrigin: \"2px 2px\",\n        transform: `scale(${1 - 0.04 * press})`,\n        filter:\n          \"drop-shadow(0 1px 1px rgba(0,0,0,0.25)) drop-shadow(0 6px 10px rgba(0,0,0,0.2))\",\n        overflow: \"visible\",\n      }}\n    >\n      <path\n        d=\"M2 2 L2 19.5 L6.6 15.4 L9.8 22.4 L12.9 21 L9.8 14.2 L16 14.2 Z\"\n        fill=\"#FFFFFF\"\n        stroke=\"#15171C\"\n        strokeWidth={1.1}\n        strokeLinejoin=\"round\"\n      />\n    </svg>\n  );\n}\n\nfunction layoutFor(portrait: boolean) {\n  if (portrait) {\n    const card = { x: 36, y: 140, w: 648, h: 1000 };\n    const pad = 32;\n    return {\n      stageW: 720,\n      stageH: 1280,\n      card,\n      pad,\n      headY: 32,\n      bannerY: 104,\n      bannerSize: 54,\n      bannerTwoLine: true,\n      listY: 300,\n      rowH: 128,\n      nameSize: 22,\n      barTop: 56,\n      barH: 48,\n      gap: 2.2,\n      logo: 28,\n      tipW: 320,\n    };\n  }\n  const card = { x: 80, y: 40, w: 1120, h: 640 };\n  return {\n    stageW: 1280,\n    stageH: 720,\n    card,\n    pad: 40,\n    headY: 32,\n    bannerY: 104,\n    bannerSize: 38,\n    bannerTwoLine: false,\n    listY: 200,\n    rowH: 72,\n    nameSize: 19,\n    barTop: 36,\n    barH: 26,\n    gap: 3,\n    logo: 26,\n    tipW: 300,\n  };\n}\n\nfunction levelColor(c: Pal, level?: StatusIncident[\"level\"]) {\n  return level === \"outage\" ? c.red : c.amber;\n}\n\nexport function StatusPage({\n  brand = \"remocn\",\n  url = \"status.remocn.dev\",\n  components = DEFAULT_COMPONENTS,\n  hover,\n  year = 2026,\n  accent = \"#3B5BFD\",\n  speed = 1,\n  theme = \"light\",\n  ground,\n  groundParams,\n}: StatusPageProps) {\n  const frame = useCurrentFrame() * speed;\n  const { width, height, fps } = useVideoConfig();\n  const portrait = height > width;\n  const L = layoutFor(portrait);\n  const s = Math.min(width / L.stageW, height / L.stageH);\n  const dark = theme === \"dark\";\n  const c = dark ? DARK : LIGHT;\n  const sp = (at: number, config: typeof CARD | typeof MORPH = CARD) =>\n    spring({ frame: frame - at, fps, config });\n\n  const innerW = L.card.w - L.pad * 2;\n  const barW = (innerW - L.gap * (DAYS - 1)) / DAYS;\n\n  const all = components.flatMap((comp, i) =>\n    (comp.incidents ?? []).map((inc) => ({ component: i, inc })),\n  );\n  const first =\n    hover ??\n    (() => {\n      const pick = all.find((x) => x.inc.level === \"outage\") ?? all[0];\n      return pick\n        ? { component: pick.component, day: pick.inc.day }\n        : { component: 0, day: 60 };\n    })();\n  const secondPick =\n    all.find(\n      (x) =>\n        x.inc.title &&\n        !(x.component === first.component && x.inc.day === first.day),\n    ) ??\n    all.find(\n      (x) => !(x.component === first.component && x.inc.day === first.day),\n    );\n  const second = secondPick\n    ? { component: secondPick.component, day: secondPick.inc.day }\n    : first;\n  const targets = [first, second];\n\n  const barCenter = (t: { component: number; day: number }) => ({\n    x: L.card.x + L.pad + t.day * (barW + L.gap) + barW / 2,\n    y: L.card.y + L.listY + 40 + t.component * L.rowH + L.barTop + L.barH / 2,\n  });\n  const pA = barCenter(first);\n  const pB = barCenter(second);\n\n  const toB = sp(B.moveB, { mass: 0.9, damping: 24, stiffness: 140 });\n  const active = toB > 0.5 ? 1 : 0;\n  const swap = tw(frame, B.moveB + 4, B.moveB + 14, SOFT);\n\n  const curStart = { x: L.stageW * 0.86, y: L.stageH * 0.94 };\n  const curExit = { x: L.stageW * 0.9, y: L.stageH * 0.78 };\n  const arcPt = (\n    a: { x: number; y: number },\n    b: { x: number; y: number },\n    p: number,\n    bend: number,\n  ) => {\n    const dx = b.x - a.x;\n    const dy = b.y - a.y;\n    const d = Math.hypot(dx, dy) || 1;\n    const k = Math.sin(clamp(p) * Math.PI) * Math.min(bend, d * 0.18);\n    return {\n      x: lerp(a.x, b.x, p) - (dy / d) * k,\n      y: lerp(a.y, b.y, p) + (dx / d) * k,\n    };\n  };\n  const toA = sp(B.cursor, { mass: 0.9, damping: 24, stiffness: 110 });\n  const toOut = sp(B.leave, { mass: 0.9, damping: 24, stiffness: 140 });\n  let cur = arcPt(curStart, { x: pA.x + 2, y: pA.y + 4 }, toA, 60);\n  if (frame >= B.moveB)\n    cur = arcPt(\n      { x: pA.x + 2, y: pA.y + 4 },\n      { x: pB.x + 2, y: pB.y + 4 },\n      toB,\n      40,\n    );\n  if (frame >= B.leave)\n    cur = arcPt({ x: pB.x + 2, y: pB.y + 4 }, curExit, toOut, 50);\n  const cursorO =\n    tw(frame, B.cursor, B.cursor + 8) *\n    (1 - tw(frame, B.leave + 10, B.leave + 18, EXIT));\n  const click = (at: number) =>\n    spring({ frame: frame - at + 3, fps, config: CHIP }) -\n    spring({ frame: frame - at, fps, config: CHIP });\n  const press = Math.max(0, click(B.hoverA), click(B.hoverB));\n\n  const tipIn = sp(B.hoverA);\n  const tipOut = tw(frame, B.leave, B.leave + 7, EXIT);\n  const tip = clamp(tipIn) * (1 - tipOut);\n  const tipPos = {\n    x: lerp(pA.x, pB.x, toB),\n    y: lerp(pA.y, pB.y, toB),\n  };\n  const tipTarget = targets[active];\n\n  const push =\n    tw(frame, B.pushIn, B.hoverA + 6, CAM) *\n    (1 - tw(frame, B.pullOut, B.pullOut + 22, CAM));\n  const zoom = portrait ? 1.06 : 1.1;\n  const camS = lerp(1, zoom, push) * (1 + 0.02 * (frame / 240));\n  const focus = {\n    x: L.stageW / 2,\n    y: lerp(L.stageH / 2, lerp(tipPos.y - 60, L.stageH / 2, 0.45), push),\n  };\n\n  const cardIn = sp(B.card, HEAVY);\n  const cardO = tw(frame, B.card, B.card + 12);\n  const resolved = frame >= B.resolve;\n  const flip = clamp(sp(B.resolve, CHIP));\n  const lineSwap = tw(frame, B.resolve, B.resolve + 12);\n\n  const resolvedGround: GshPresetId =\n    ground ?? (dark ? \"kiruna\" : \"paper-crease\");\n  const resolvedParams =\n    groundParams ??\n    (dark\n      ? { grain: 0.06 }\n      : {\n          kind: \"mist\" as const,\n          colors: [\"#9fd8b8\", \"#d9eee0\", \"#f5f3ee\", \"#6cbf95\"],\n          background: \"#f2f1ec\",\n        });\n\n  const tipArrow = L.tipW * (tipTarget.day < DAYS / 2 ? 0.22 : 0.78);\n\n  const mLabel: React.CSSProperties = {\n    fontFamily: mono.fontFamily,\n    fontSize: 16,\n    color: c.muted,\n    letterSpacing: \"0.01em\",\n  };\n\n  return (\n    <AbsoluteFill style={{ fontFamily: geist.fontFamily, overflow: \"hidden\" }}>\n      <GshGround\n        preset={resolvedGround}\n        params={resolvedParams}\n        timeOffset={6}\n        timeScale={0.35}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          left: (width - L.stageW * s) / 2,\n          top: (height - L.stageH * s) / 2,\n          width: L.stageW,\n          height: L.stageH,\n          transform: `scale(${s})`,\n          transformOrigin: \"0 0\",\n        }}\n      >\n        <div\n          style={{\n            position: \"absolute\",\n            inset: 0,\n            transformOrigin: \"0 0\",\n            transform: `translate(${L.stageW / 2 - focus.x * camS}px, ${L.stageH / 2 - focus.y * camS}px) scale(${camS})`,\n          }}\n        >\n          <div\n            style={{\n              position: \"absolute\",\n              left: L.card.x,\n              top: L.card.y,\n              width: L.card.w,\n              height: L.card.h,\n              borderRadius: 24,\n              background: c.card,\n              boxShadow: c.shadow,\n              overflow: \"hidden\",\n              color: c.text,\n              opacity: cardO,\n              transform: `translateY(${(1 - cardIn) * 48}px) scale(${0.96 + 0.04 * cardIn})`,\n              WebkitFontSmoothing: \"antialiased\",\n            }}\n          >\n            <div\n              style={{\n                position: \"absolute\",\n                left: L.pad,\n                right: L.pad,\n                top: L.headY,\n                height: 40,\n                display: \"flex\",\n                alignItems: \"center\",\n                gap: 12,\n              }}\n            >\n              {brand === \"remocn\" ? (\n                <RemocnLogo fontSize={L.logo} color={c.text} />\n              ) : (\n                <span\n                  style={{\n                    fontSize: L.logo,\n                    fontWeight: 400,\n                    letterSpacing: \"-0.03em\",\n                  }}\n                >\n                  {brand}\n                </span>\n              )}\n              <span\n                style={{\n                  fontSize: L.logo,\n                  fontWeight: 300,\n                  color: c.faint,\n                  letterSpacing: \"-0.03em\",\n                }}\n              >\n                status\n              </span>\n              <div style={{ flex: 1 }} />\n              {portrait ? null : (\n                <span style={{ ...mLabel, color: c.faint }}>{url}</span>\n              )}\n              <div\n                style={{\n                  height: 40,\n                  padding: \"0 16px\",\n                  marginLeft: 12,\n                  borderRadius: 10,\n                  background: accent,\n                  color: \"#fff\",\n                  fontSize: 16,\n                  display: \"flex\",\n                  alignItems: \"center\",\n                  boxShadow:\n                    \"inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 2px rgba(0,0,0,0.2)\",\n                }}\n              >\n                Subscribe\n              </div>\n            </div>\n\n            <div\n              style={{\n                position: \"absolute\",\n                left: L.pad,\n                right: L.pad,\n                top: L.bannerY,\n                display: \"flex\",\n                alignItems: L.bannerTwoLine ? \"flex-start\" : \"center\",\n                gap: 18,\n              }}\n            >\n              <div\n                style={{\n                  position: \"relative\",\n                  width: 34,\n                  height: 34,\n                  flexShrink: 0,\n                  marginTop: L.bannerTwoLine ? 10 : 0,\n                }}\n              >\n                <svg\n                  width={34}\n                  height={34}\n                  viewBox=\"0 0 34 34\"\n                  style={{\n                    position: \"absolute\",\n                    inset: 0,\n                    opacity: 1 - flip,\n                    transform: `rotate(${frame * 9}deg)`,\n                  }}\n                >\n                  <circle\n                    cx={17}\n                    cy={17}\n                    r={13}\n                    fill=\"none\"\n                    stroke={c.empty}\n                    strokeWidth={2}\n                  />\n                  <path\n                    d=\"M17 4a13 13 0 0 1 13 13\"\n                    fill=\"none\"\n                    stroke={c.muted}\n                    strokeWidth={2}\n                    strokeLinecap=\"round\"\n                  />\n                </svg>\n                {resolved ? (\n                  <div\n                    style={{\n                      position: \"absolute\",\n                      inset: 0,\n                      borderRadius: 17,\n                      background: c.green,\n                      transform: `scale(${flip})`,\n                      display: \"flex\",\n                      alignItems: \"center\",\n                      justifyContent: \"center\",\n                    }}\n                  >\n                    <svg width={18} height={18} viewBox=\"0 0 18 18\">\n                      <path\n                        d=\"M4 9.4l3.2 3.1L14 5.6\"\n                        fill=\"none\"\n                        stroke=\"#fff\"\n                        strokeWidth={1.8}\n                        strokeLinecap=\"round\"\n                        strokeLinejoin=\"round\"\n                        pathLength={1}\n                        strokeDasharray={1}\n                        strokeDashoffset={\n                          1 - tw(frame, B.resolve + 3, B.resolve + 12, SOFT)\n                        }\n                      />\n                    </svg>\n                  </div>\n                ) : null}\n              </div>\n              <div\n                style={{\n                  flex: 1,\n                  position: \"relative\",\n                  height: L.bannerTwoLine ? 132 : 46,\n                }}\n              >\n                {[0, 1].map((k) => {\n                  const o = k === 0 ? 1 - lineSwap : lineSwap;\n                  return (\n                    <div\n                      key={k}\n                      style={{\n                        position: \"absolute\",\n                        left: 0,\n                        top: 0,\n                        fontSize: L.bannerSize,\n                        fontWeight: 300,\n                        letterSpacing: \"-0.035em\",\n                        lineHeight: 1.18,\n                        color: k === 0 ? c.muted : c.text,\n                        opacity: k === 1 && !resolved ? 0 : o,\n                        transform: `translateY(${(k === 0 ? -1 : 1) * (1 - o) * 14}px)`,\n                        filter: `blur(${(1 - o) * 4}px)`,\n                        whiteSpace: L.bannerTwoLine ? \"normal\" : \"nowrap\",\n                        width: L.bannerTwoLine ? 400 : undefined,\n                      }}\n                    >\n                      {k === 0\n                        ? `Checking ${components.length} services`\n                        : \"All systems operational\"}\n                    </div>\n                  );\n                })}\n              </div>\n              {portrait ? null : (\n                <span\n                  style={{\n                    ...mLabel,\n                    opacity: lineSwap,\n                    fontVariantNumeric: \"tabular-nums\",\n                  }}\n                >\n                  Updated 14:02 UTC\n                </span>\n              )}\n            </div>\n\n            <div\n              style={{\n                position: \"absolute\",\n                left: L.pad,\n                right: L.pad,\n                top: L.listY,\n                height: 40,\n                display: \"flex\",\n                alignItems: \"center\",\n                borderBottom: `1px solid ${c.line}`,\n                ...mLabel,\n                color: c.faint,\n              }}\n            >\n              <span>Services</span>\n              <span style={{ marginLeft: \"auto\" }}>90 days ago → today</span>\n            </div>\n\n            {components.map((comp, r) => {\n              const start = B.bars + r * 5;\n              const settle = tw(frame, start + 2, start + 40, SOFT);\n              const pct = comp.uptime - (1 - settle) * 0.42;\n              const rowIn = tw(frame, start - 2, start + 10);\n              const byDay = new Map(\n                (comp.incidents ?? []).map((i) => [i.day, i]),\n              );\n              const rowHovered = targets[active].component === r && tip > 0.01;\n              return (\n                <div\n                  key={comp.name}\n                  style={{\n                    position: \"absolute\",\n                    left: L.pad,\n                    right: L.pad,\n                    top: L.listY + 40 + r * L.rowH,\n                    height: L.rowH,\n                    borderBottom:\n                      r === components.length - 1\n                        ? \"none\"\n                        : `1px solid ${c.line}`,\n                  }}\n                >\n                  <div\n                    style={{\n                      position: \"absolute\",\n                      left: 0,\n                      right: 0,\n                      top: portrait ? 18 : 9,\n                      display: \"flex\",\n                      alignItems: \"baseline\",\n                      fontSize: L.nameSize,\n                      opacity: rowIn,\n                      transform: `translateY(${(1 - rowIn) * 8}px)`,\n                    }}\n                  >\n                    <span style={{ fontWeight: 400, letterSpacing: \"-0.01em\" }}>\n                      {comp.name}\n                    </span>\n                    <span\n                      style={{\n                        marginLeft: \"auto\",\n                        fontFamily: mono.fontFamily,\n                        fontSize: 17,\n                        color: c.text,\n                        fontVariantNumeric: \"tabular-nums\",\n                      }}\n                    >\n                      {pct.toFixed(2)}%\n                    </span>\n                  </div>\n                  <div\n                    style={{\n                      position: \"absolute\",\n                      left: 0,\n                      top: L.barTop,\n                      height: L.barH,\n                      width: innerW,\n                    }}\n                  >\n                    {Array.from({ length: DAYS }, (_, j) => {\n                      const at = start + j * 0.32;\n                      const v = spring({\n                        frame: frame - at,\n                        fps,\n                        config: CHIP,\n                      });\n                      const inc = byDay.get(j);\n                      const base = inc ? levelColor(c, inc.level) : c.green;\n                      const color = interpolateColors(\n                        tw(frame, at, at + 8),\n                        [0, 1],\n                        [c.empty, base],\n                      );\n                      const hovered = rowHovered && targets[active].day === j;\n                      const dim = rowHovered && !hovered ? 1 - tip * 0.45 : 1;\n                      return (\n                        <div\n                          key={j}\n                          style={{\n                            position: \"absolute\",\n                            left: j * (barW + L.gap),\n                            bottom: 0,\n                            width: barW,\n                            height: L.barH,\n                            borderRadius: 2,\n                            background: color,\n                            opacity: (frame >= at ? 1 : 0) * dim,\n                            transformOrigin: \"50% 100%\",\n                            transform: `scaleY(${Math.max(0, v) * (hovered ? 1 + 0.18 * tip : 1)})`,\n                          }}\n                        />\n                      );\n                    })}\n                  </div>\n                </div>\n              );\n            })}\n          </div>\n\n          {tip > 0.01 ? (\n            <div\n              style={{\n                position: \"absolute\",\n                left: tipPos.x - tipArrow,\n                top: tipPos.y - L.barH / 2 - 14 - 104,\n                width: L.tipW,\n                height: 104,\n                boxSizing: \"border-box\",\n                padding: \"14px 16px\",\n                borderRadius: 14,\n                background: c.tip,\n                color: c.tipText,\n                boxShadow: dark\n                  ? \"0 0 0 1px rgba(255,255,255,0.09), inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 40px -8px rgba(0,0,0,0.7)\"\n                  : \"0 2px 4px rgba(0,0,0,0.08), 0 18px 40px -10px rgba(0,0,0,0.38)\",\n                opacity: clamp(tip * 1.6),\n                transformOrigin: `${tipArrow}px 100%`,\n                transform: `translateY(${(1 - tip) * 10}px) scale(${0.92 + 0.08 * tip})`,\n              }}\n            >\n              <div style={{ position: \"relative\", height: \"100%\" }}>\n                {targets.map((t, k) => {\n                  const comp = components[t.component] ?? components[0];\n                  const inc = comp?.incidents?.find((i) => i.day === t.day);\n                  const o = k === 0 ? 1 - swap : swap;\n                  if (o <= 0.01 || (k === 1 && frame < B.moveB)) return null;\n                  const col = levelColor(c, inc?.level);\n                  const label =\n                    inc?.title ??\n                    (inc?.level === \"outage\"\n                      ? \"Partial outage\"\n                      : \"Degraded performance\");\n                  return (\n                    <div\n                      key={`${t.component}-${t.day}`}\n                      style={{\n                        position: \"absolute\",\n                        inset: 0,\n                        opacity: o,\n                        transform: `translateY(${(k === 0 ? -1 : 1) * (1 - o) * 8}px)`,\n                      }}\n                    >\n                      <div style={{ ...mLabel, color: c.tipMuted }}>\n                        {inc?.date ?? `${DAYS - 1 - t.day} days ago`}, {year}\n                      </div>\n                      <div\n                        style={{\n                          display: \"flex\",\n                          alignItems: \"center\",\n                          gap: 10,\n                          marginTop: 10,\n                          fontSize: 18,\n                          letterSpacing: \"-0.01em\",\n                        }}\n                      >\n                        <span\n                          style={{\n                            width: 9,\n                            height: 9,\n                            borderRadius: 5,\n                            background: col,\n                          }}\n                        />\n                        {label}\n                        <span\n                          style={{\n                            marginLeft: \"auto\",\n                            fontFamily: mono.fontFamily,\n                            fontSize: 16,\n                            color: c.tipMuted,\n                            fontVariantNumeric: \"tabular-nums\",\n                          }}\n                        >\n                          {inc?.minutes ?? 10} min\n                        </span>\n                      </div>\n                      <div\n                        style={{\n                          fontSize: 16,\n                          color: c.tipMuted,\n                          marginTop: 8,\n                        }}\n                      >\n                        Resolved · {comp?.name}\n                      </div>\n                    </div>\n                  );\n                })}\n              </div>\n              <div\n                style={{\n                  position: \"absolute\",\n                  left: tipArrow - 7,\n                  bottom: -6,\n                  width: 14,\n                  height: 14,\n                  background: c.tip,\n                  transform: \"rotate(45deg)\",\n                  borderRadius: 2,\n                }}\n              />\n            </div>\n          ) : null}\n\n          {cursorO > 0.01 ? (\n            <div style={{ opacity: cursorO }}>\n              <Cursor x={cur.x} y={cur.y} press={press} />\n            </div>\n          ) : null}\n        </div>\n      </div>\n    </AbsoluteFill>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/status-page.tsx"
    }
  ],
  "type": "registry:component"
}
