{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "example-meteora",
  "type": "registry:block",
  "title": "Meteora",
  "description": "A silent landscape echo console with cobalt fluted dials, procedural contour terrain, editable placement and an illustrative echo scope.",
  "dependencies": [
    "maruaudio@>=0.0.3 <0.1.0"
  ],
  "registryDependencies": [
    "https://pluginui.com/r/gallery-fluted-knob.json",
    "https://pluginui.com/r/core-knob.json"
  ],
  "files": [
    {
      "path": "components/blocks/meteora.tsx",
      "content": "/**\n * Source: https://pluginui.com/examples/meteora\n * Copyright © [Maru](https://maru.audio)\n *\n * Maru UI Kit — https://maru.audio/ui-kit\n *\n * Installed from the Maru UI registry. This file is yours now: edit it\n * freely, it will not be overwritten unless you re-run the add command.\n *\n * Keep this item’s companion files and CSS imports together. Dependencies\n * declared by the registry are installed with the source.\n */\nimport { useId, useMemo, useState, type ReactNode } from \"react\"\nimport { Knob } from \"@/components/ui/knob\"\nimport { FlutedKnobDesign } from \"@/components/ui/fluted-knob\"\nimport {\n  fixed,\n  percent,\n  formatControlValue,\n} from \"maruaudio/ui/shared/format\"\nimport { UI_KIT_TEXT_SELECTION_STYLES } from \"maruaudio/ui/shared/portable-styles\"\nimport \"@/components/blocks/meteora.css\"\n\nconst INITIAL = {\n  sourceHeight: 1.6,\n  aHeight: 1.6,\n  bHeight: 150,\n  blend: 0.5,\n  depth: 0.7,\n  split: 0.55,\n  glide: 0.4,\n  temperature: 15,\n  humidity: 65,\n  scale: 1,\n  direct: 0.7,\n  near: 0.75,\n  wind: 2,\n  direction: 225,\n  scintillation: 0.25,\n  rate: 0.4,\n  flutter: 0.15,\n  early: 0.5,\n  diffusion: 0.5,\n  predelay: 0.15,\n  decay: 0.5,\n  low: 0.65,\n  high: 0.75,\n  width: 0.5,\n  mix: 0.35,\n  output: 0.8,\n}\ntype Dial = keyof typeof INITIAL\nconst PLACES = [\n  { name: \"Kastraki village\", x: 0.22, y: 0.8 },\n  { name: \"Foot of the Holy Spirit rock\", x: 0.31, y: 0.6 },\n  { name: \"Mid-air, between the walls\", x: 0.36, y: 0.49 },\n  { name: \"Northern ridge\", x: 0.65, y: 0.28 },\n  { name: \"Monastery overlook\", x: 0.73, y: 0.58 },\n]\nconst SEASONS = [\n  { name: \"Jan dawn\", temperature: 2, humidity: 80 },\n  { name: \"Apr noon\", temperature: 18, humidity: 55 },\n  { name: \"Jul afternoon\", temperature: 31, humidity: 30 },\n  { name: \"Oct dusk\", temperature: 15, humidity: 65 },\n]\nconst PRESETS = {\n  \"Open valley\": INITIAL,\n  \"Winter reflections\": {\n    ...INITIAL,\n    temperature: 2,\n    humidity: 80,\n    decay: 0.8,\n    diffusion: 0.65,\n    mix: 0.6,\n  },\n  \"Summer wind\": {\n    ...INITIAL,\n    temperature: 31,\n    humidity: 30,\n    wind: 12,\n    scintillation: 0.7,\n    flutter: 0.6,\n  },\n}\ntype Configuration = {\n  values: typeof INITIAL\n  places: number[]\n  mode: string\n  face: string\n  inversion: boolean\n  landscape: boolean\n  freeze: boolean\n  reverse: boolean\n  view: string\n  target: number\n}\nconst DEFAULT: Configuration = {\n  values: INITIAL,\n  places: [0, 1, 2],\n  mode: \"Split\",\n  face: \"Auto\",\n  inversion: false,\n  landscape: true,\n  freeze: false,\n  reverse: false,\n  view: \"Orbit\",\n  target: 1,\n}\n\nfunction Section({\n  title,\n  children,\n  className = \"\",\n}: {\n  title: string\n  children: ReactNode\n  className?: string\n}) {\n  return (\n    <section className={`meteora__section ${className}`}>\n      <h3>{title}</h3>\n      {children}\n      <i className=\"meteora__screw meteora__screw--left\" />\n      <i className=\"meteora__screw meteora__screw--right\" />\n    </section>\n  )\n}\nfunction Key({\n  children,\n  pressed,\n  onClick,\n  blue = false,\n  label,\n}: {\n  children: ReactNode\n  pressed?: boolean\n  onClick: () => void\n  blue?: boolean\n  label?: string\n}) {\n  return (\n    <button\n      type=\"button\"\n      className={`meteora__key ${blue ? \"meteora__key--blue\" : \"\"}`}\n      aria-label={label}\n      aria-pressed={pressed}\n      onClick={onClick}\n    >\n      {pressed !== undefined && <span className=\"meteora__lamp\" />}\n      {children}\n    </button>\n  )\n}\n\n// Procedural contour study. These are invented landforms, not surveyed terrain.\nfunction elevation(x: number, y: number) {\n  let h =\n    0.03 + 0.06 * Math.sin(x * 13 + y * 6) + 0.025 * Math.sin(x * 37 - y * 23)\n  for (const [cx, cy, sx, sy, a] of [\n    [0.24, 0.36, 0.11, 0.19, 0.8],\n    [0.46, 0.45, 0.09, 0.14, 0.95],\n    [0.65, 0.26, 0.13, 0.13, 0.85],\n    [0.75, 0.65, 0.12, 0.2, 0.7],\n    [0.27, 0.75, 0.09, 0.1, 0.55],\n    [0.52, 0.8, 0.11, 0.12, 0.5],\n  ]) {\n    h += a! * Math.exp(-(((x - cx!) / sx!) ** 2 + ((y - cy!) / sy!) ** 2) * 1.6)\n  }\n  return (\n    h +\n    0.027 * Math.sin(x * 110 + Math.sin(y * 45)) +\n    0.017 * Math.cos(y * 130 + x * 31)\n  )\n}\nfunction project(x: number, y: number, z: number, view: string) {\n  if (view === \"Top\") return [30 + x * 680, 16 + y * 335]\n  const perspective = view === \"Walk\" ? 0.28 + y * 0.8 : 0.48 + y * 0.52\n  return [\n    370 + (x - 0.5) * 850 * perspective,\n    40 + y * 335 - z * (view === \"Walk\" ? 150 : 112),\n  ]\n}\nfunction makeContours(view: string) {\n  const n = 100,\n    m = 76\n  const grid = Array.from({ length: m + 1 }, (_, j) =>\n    Array.from({ length: n + 1 }, (_, i) => elevation(i / n, j / m))\n  )\n  return Array.from({ length: 42 }, (_, level) => {\n    const z = 0.015 + level * 0.025\n    const segments: string[] = []\n    for (let j = 0; j < m; j++)\n      for (let i = 0; i < n; i++) {\n        const corners = [\n          [i / n, j / m],\n          [(i + 1) / n, j / m],\n          [(i + 1) / n, (j + 1) / m],\n          [i / n, (j + 1) / m],\n        ]\n        const heights = [\n          grid[j]![i]!,\n          grid[j]![i + 1]!,\n          grid[j + 1]![i + 1]!,\n          grid[j + 1]![i]!,\n        ]\n        const hits: number[][] = []\n        for (let edge = 0; edge < 4; edge++) {\n          const next = (edge + 1) % 4,\n            a = heights[edge]!,\n            b = heights[next]!\n          if (a < z === b < z) continue\n          const t = (z - a) / (b - a),\n            p = corners[edge]!,\n            q = corners[next]!\n          hits.push(\n            project(\n              p[0]! + (q[0]! - p[0]!) * t,\n              p[1]! + (q[1]! - p[1]!) * t,\n              z,\n              view\n            )\n          )\n        }\n        for (let k = 0; k + 1 < hits.length; k += 2)\n          segments.push(\n            `M${hits[k]![0]!.toFixed(1)},${hits[k]![1]!.toFixed(1)}L${hits[k + 1]![0]!.toFixed(1)},${hits[k + 1]![1]!.toFixed(1)}`\n          )\n      }\n    return segments.join(\"\")\n  })\n}\nfunction Terrain({\n  state,\n  speed,\n  onPlace,\n}: {\n  state: Configuration\n  speed: number\n  onPlace: (index: number) => void\n}) {\n  const id = useId().replaceAll(\":\", \"\")\n  const contours = useMemo(() => makeContours(state.view), [state.view])\n  const points = state.places.map((p, index) => {\n    const place = PLACES[p]!\n    return project(\n      place.x,\n      place.y,\n      elevation(place.x, place.y) +\n        state.values[\n          ([\"sourceHeight\", \"aHeight\", \"bHeight\"] as const)[index]!\n        ] /\n          1600,\n      state.view\n    )\n  })\n  const source = points[0]!,\n    a = points[1]!,\n    b = points[2]!\n  const distance = (index: 1 | 2) => {\n    const start = PLACES[state.places[0]!]!,\n      end = PLACES[state.places[index]!]!\n    return Math.hypot(\n      (end.x - start.x) * 1400 * state.values.scale,\n      (end.y - start.y) * 1400 * state.values.scale,\n      state.values[index === 1 ? \"aHeight\" : \"bHeight\"] -\n        state.values.sourceHeight\n    )\n  }\n  return (\n    <div className=\"meteora__terrain\">\n      <svg\n        viewBox=\"0 0 740 370\"\n        role=\"img\"\n        aria-label={`Illustrative terrain in ${state.view.toLowerCase()} view with source and two microphones`}\n      >\n        <defs>\n          <radialGradient id={`${id}-ground`}>\n            <stop stopColor=\"#18261c\" />\n            <stop offset=\"1\" stopColor=\"#0b110e\" />\n          </radialGradient>\n          <filter id={`${id}-glow`}>\n            <feGaussianBlur stdDeviation=\"1.4\" />\n          </filter>\n        </defs>\n        <rect width=\"740\" height=\"370\" fill={`url(#${id}-ground)`} />\n        {state.landscape &&\n          contours.map((d, i) => (\n            <path\n              key={i}\n              d={d}\n              fill=\"none\"\n              stroke={i % 4 === 0 ? \"#a0bc82\" : \"#5c8055\"}\n              strokeWidth={i % 4 === 0 ? 1.15 : 0.65}\n              opacity={0.4 + i / 65}\n            />\n          ))}\n        <g opacity=\".22\" filter={`url(#${id}-glow)`}>\n          {[a, b].map((p, i) => (\n            <path\n              key={i}\n              d={`M${source}L${p}`}\n              stroke={i ? \"#ffbd55\" : \"#55b6df\"}\n              strokeWidth=\"10\"\n            />\n          ))}\n        </g>\n        {Array.from({ length: 18 }, (_, i) => {\n          const end = i % 2 ? a : b,\n            spread = 15 + state.values.depth * 70 + state.values.wind * 2,\n            angle =\n              (state.values.direction * Math.PI) / 180 +\n              (state.inversion ? Math.PI : 0) +\n              (state.face === \"Auto\" ? 0 : Number(state.face)),\n            bend =\n              state.mode === \"Morph\"\n                ? state.values.blend * 25\n                : state.mode === \"Spread\"\n                  ? state.values.split * 45\n                  : 0\n          const bounce = [\n            end[0]! + Math.sin(i * 2.4 + angle) * (spread + bend),\n            end[1]! + Math.cos(i * 1.8 + angle) * spread * 0.6,\n          ]\n          return (\n            <path\n              key={i}\n              d={`M${source}L${bounce}L${end}`}\n              fill=\"none\"\n              stroke={i % 2 ? \"#ffda71\" : \"#ffe9a5\"}\n              strokeWidth=\".8\"\n              opacity={\n                0.25 + state.values.diffusion * 0.35 + state.values.glide * 0.15\n              }\n            />\n          )\n        })}\n        {[source, a, b].map((p, i) => (\n          <g key={i}>\n            <circle\n              cx={p[0]}\n              cy={p[1]}\n              r=\"7\"\n              fill={[\"#fa6768\", \"#56b9ec\", \"#ffb354\"][i]}\n              opacity=\".25\"\n              filter={`url(#${id}-glow)`}\n            />\n            <circle\n              cx={p[0]}\n              cy={p[1]}\n              r=\"3.3\"\n              fill={[\"#fa6768\", \"#56b9ec\", \"#ffb354\"][i]}\n            />\n            <text\n              x={p[0]! + 10}\n              y={p[1]! - 12}\n              fill={[\"#fa6768\", \"#56b9ec\", \"#ffb354\"][i]}\n            >\n              {[\"S\", \"MIC A\", \"MIC B\"][i]}\n            </text>\n          </g>\n        ))}\n      </svg>\n      <div className=\"meteora__telemetry\">\n        MIC A {formatControlValue(state.values.aHeight, \"m\")} up ·{\" \"}\n        {formatControlValue(distance(1), \"m\")} from S · first{\" \"}\n        {fixed(2, \"s\")(distance(1) / speed)}\n        <br />\n        MIC B {formatControlValue(state.values.bHeight, \"m\")} up ·{\" \"}\n        {formatControlValue(distance(2), \"m\")} from S · first{\" \"}\n        {fixed(2, \"s\")(distance(2) / speed)}\n        <br />\n        {fixed(1, \"°C\")(state.values.temperature)} · {fixed(1, \"m/s\")(speed)} ·\n        RH {fixed(0, \"%\")(state.values.humidity)}\n      </div>\n      <div\n        className=\"meteora__map-places\"\n        aria-label=\"Place selected source or microphone\"\n      >\n        {PLACES.map((p, i) => (\n          <button\n            key={p.name}\n            type=\"button\"\n            aria-label={`Place ${[\"source\", \"mic A\", \"mic B\"][state.target]} at ${p.name}`}\n            onClick={() => onPlace(i)}\n            style={{\n              left: `${(project(p.x, p.y, elevation(p.x, p.y), state.view)[0]! / 740) * 100}%`,\n              top: `${(project(p.x, p.y, elevation(p.x, p.y), state.view)[1]! / 370) * 100}%`,\n            }}\n            title={p.name}\n          >\n            +\n          </button>\n        ))}\n      </div>\n    </div>\n  )\n}\nfunction EchoScope({ state }: { state: Configuration }) {\n  const v = state.values\n  return (\n    <svg\n      className=\"meteora__scope\"\n      viewBox=\"0 0 740 116\"\n      role=\"img\"\n      aria-label=\"Illustrative echo response, not measured audio\"\n    >\n      <rect width=\"740\" height=\"116\" fill=\"#0a1310\" />\n      {[0, 1, 2, 3].map((i) => (\n        <g key={i}>\n          <path\n            d={`M35 ${14 + i * 27}H732`}\n            stroke=\"#24362d\"\n            strokeWidth=\".5\"\n          />\n          <text x=\"5\" y={18 + i * 27}>\n            {-i * 20}\n          </text>\n        </g>\n      ))}\n      {Array.from({ length: 7 }, (_, i) => (\n        <g key={i}>\n          <path d={`M${40 + i * 105} 8V99`} stroke=\"#24362d\" strokeWidth=\".5\" />\n          <text x={40 + i * 105} y=\"111\">\n            {i * 2}s\n          </text>\n        </g>\n      ))}\n      <g transform={state.reverse ? \"translate(770 0) scale(-1 1)\" : undefined}>\n        {Array.from({ length: 116 }, (_, i) => {\n          const x = 66 + i * 5.6,\n            onset =\n              7 +\n              v.predelay * 25 +\n              v.scale * 5 +\n              (state.places[1]! + state.places[2]!) * 1.2\n          const h =\n            i < onset\n              ? Math.sin(i * 2.3) ** 8 * v.direct * (25 + v.near * 35)\n              : (25 +\n                  Math.sin(i * (1 + v.rate * 3)) * (6 + v.scintillation * 18) +\n                  Math.cos(i * (0.3 + v.flutter)) * (4 + v.width * 12)) *\n                Math.exp(-(i - onset) / (15 + v.decay * 40)) *\n                (0.4 + v.early) *\n                (1.6 + v.mix * 1.6) *\n                v.output *\n                (0.5 + v.low * 0.3 + v.high * 0.2) *\n                (state.mode === \"Morph\"\n                  ? 0.6 + v.blend\n                  : state.mode === \"Spread\"\n                    ? 0.8 + v.split * 0.4\n                    : 1)\n          return (\n            <rect\n              key={i}\n              x={x}\n              y={99 - Math.min(80, Math.max(0, h))}\n              width={i < onset ? 1.7 : 4.8}\n              height={Math.min(80, Math.max(0, h))}\n              fill={i < onset ? \"#3288b5\" : \"#ed9a3c\"}\n              opacity={i < onset ? 0.65 : 0.32 + v.diffusion * 0.4}\n            />\n          )\n        })}\n      </g>\n      <text x=\"430\" y=\"19\">\n        ECHO SCOPE · {state.freeze ? \"HELD\" : \"ILLUSTRATIVE\"}\n      </text>\n    </svg>\n  )\n}\n\n/** A silent, reference-led landscape echo console. All controls edit local state. */\nexport function Meteora({ branding }: { branding?: ReactNode } = {}) {\n  const [state, setState] = useState<Configuration>(DEFAULT)\n  const [preset, setPreset] = useState(\"Open valley\")\n  const [saved, setSaved] = useState<{\n    state: Configuration\n    held: Configuration | null\n  } | null>(null)\n  const [help, setHelp] = useState(false)\n  const [held, setHeld] = useState<Configuration | null>(null)\n  const patch = (update: Partial<Configuration>) =>\n    setState((s) => ({ ...s, ...update }))\n  const v = state.values\n  const speed = 331.3 + 0.606 * v.temperature + 0.0124 * v.humidity\n  const endpoints: Partial<Record<Dial, [string, string]>> = {\n    blend: [\"A\", \"B\"],\n    temperature: [\"−5°\", \"35°\"],\n    humidity: [\"10%\", \"100%\"],\n    scale: [\"¼\", \"2×\"],\n    wind: [\"0\", \"20\"],\n    direction: [\"N\", \"N\"],\n    early: [\"L\", \"E\"],\n    mix: [\"DRY\", \"WET\"],\n  }\n  const dial = (\n    key: Dial,\n    label: string,\n    size = 67,\n    dark = false,\n    min = 0,\n    max = 1,\n    unit = \"\"\n  ) => (\n    <div className=\"meteora__dial\" key={key}>\n      <span>{label}</span>\n      <Knob\n        label={\n          key === \"blend\"\n            ? \"Blend A/B\"\n            : key.endsWith(\"Height\")\n              ? `${key === \"sourceHeight\" ? \"Source\" : key === \"aHeight\" ? \"Mic A\" : \"Mic B\"} height`\n              : label\n        }\n        value={v[key]}\n        defaultValue={INITIAL[key]}\n        min={min}\n        max={max}\n        size={size}\n        hideLabel\n        hideValue\n        format={unit ? fixed(1, unit) : percent()}\n        onChange={(value) =>\n          setState((s) => ({ ...s, values: { ...s.values, [key]: value } }))\n        }\n        renderDesign={(art) => <FlutedKnobDesign {...art} dark={dark} />}\n      />\n      {endpoints[key] && (\n        <span className=\"meteora__endpoints\">\n          <i>{endpoints[key]![0]}</i>\n          <i>{endpoints[key]![1]}</i>\n        </span>\n      )}\n    </div>\n  )\n  const place = (index: number) =>\n    setState((s) => ({\n      ...s,\n      places: s.places.map((p, i) => (i === s.target ? index : p)),\n    }))\n  const freeze = () => {\n    if (!state.freeze) setHeld(state)\n    patch({ freeze: !state.freeze })\n  }\n  return (\n    <div className=\"meteora\" data-text-selection=\"editable-only\">\n      <style>{UI_KIT_TEXT_SELECTION_STYLES}</style>\n      <header className=\"meteora__header\">\n        <div className=\"meteora__brand\">{branding ?? \"METEORA\"}</div>\n        <span className=\"meteora__subtitle\">ECHO FIELD · MODEL 0</span>\n        <div className=\"meteora__preset\">\n          <label>\n            PRESET{\" \"}\n            <select\n              aria-label=\"Preset\"\n              value={preset}\n              onChange={(e) => {\n                const name = e.target.value\n                setPreset(name)\n                if (name === \"Saved snapshot\" && saved) {\n                  setState(saved.state)\n                  setHeld(saved.held)\n                } else if (name in PRESETS)\n                  setState({\n                    ...DEFAULT,\n                    values: PRESETS[name as keyof typeof PRESETS],\n                  })\n              }}\n            >\n              {Object.keys(PRESETS).map((p) => (\n                <option key={p}>{p}</option>\n              ))}\n              {saved && <option>Saved snapshot</option>}\n            </select>\n          </label>\n          <Key\n            onClick={() => {\n              setSaved({\n                state: {\n                  ...state,\n                  values: { ...v },\n                  places: [...state.places],\n                },\n                held,\n              })\n              setPreset(\"Saved snapshot\")\n            }}\n          >\n            Save\n          </Key>\n          <Key\n            blue\n            pressed={help}\n            label=\"Show interface help\"\n            onClick={() => setHelp(!help)}\n          >\n            ?\n          </Key>\n        </div>\n        <span className=\"meteora__disclaimer\">\n          illustrative terrain · silent UI study\n        </span>\n      </header>\n      {help && (\n        <div className=\"meteora__help\" role=\"status\">\n          Choose Source, Mic A or Mic B, then choose a location or click a map\n          cross. Drag dials, use arrow keys, or double-click to reset. Save\n          recalls the whole interface in this session. Freeze holds the echo\n          illustration.{\" \"}\n          <button\n            type=\"button\"\n            onClick={() => {\n              setState(DEFAULT)\n              setPreset(\"Open valley\")\n              setHeld(null)\n            }}\n          >\n            Reset interface\n          </button>\n          <button type=\"button\" onClick={() => setHelp(false)}>\n            Close\n          </button>\n        </div>\n      )}\n      <div className=\"meteora__upper\">\n        <Section title=\"♧ Placement\" className=\"meteora__placement\">\n          <div className=\"meteora__target\">\n            <em>Click places</em>\n            {[\"Source\", \"Mic A\", \"Mic B\"].map((name, i) => (\n              <Key\n                key={name}\n                blue={i > 0}\n                pressed={state.target === i}\n                onClick={() => patch({ target: i })}\n              >\n                {name}\n              </Key>\n            ))}\n          </div>\n          {[\"Source\", \"Mic A\", \"Mic B\"].map((name, i) => (\n            <div key={name} className={`meteora__place meteora__place--${i}`}>\n              <label>\n                {name}\n                <select\n                  aria-label={`${name} location`}\n                  value={state.places[i]}\n                  onChange={(e) =>\n                    setState((s) => ({\n                      ...s,\n                      places: s.places.map((p, j) =>\n                        i === j ? Number(e.target.value) : p\n                      ),\n                    }))\n                  }\n                >\n                  {PLACES.map((p, j) => (\n                    <option key={p.name} value={j}>\n                      {p.name}\n                    </option>\n                  ))}\n                </select>\n              </label>\n              {dial(\n                ([\"sourceHeight\", \"aHeight\", \"bHeight\"] as const)[i]!,\n                \"↕ Height\",\n                55,\n                i === 0,\n                0,\n                i === 2 ? 200 : 8,\n                \"m\"\n              )}\n            </div>\n          ))}\n          <h4>⋏ Blend A/B</h4>\n          <div className=\"meteora__blend\">\n            {dial(\"blend\", \"\", 96)}\n            {dial(\"depth\", \"⌒ Depth\", 59, true)}\n            {dial(\"split\", \"♮ Split\", 59)}\n            {dial(\"glide\", \"◷ Glide\", 59, true)}\n          </div>\n          <div className=\"meteora__modes\">\n            {[\"Split\", \"Morph\", \"Spread\"].map((mode) => (\n              <Key\n                key={mode}\n                blue\n                pressed={state.mode === mode}\n                onClick={() => patch({ mode })}\n              >\n                {mode}\n              </Key>\n            ))}\n          </div>\n        </Section>\n        <Section title=\"Meteora · Site model\" className=\"meteora__model\">\n          <Terrain state={state} speed={speed} onPlace={place} />\n          <div className=\"meteora__views\">\n            {[\"Orbit\", \"Top\", \"Walk\"].map((view) => (\n              <Key\n                key={view}\n                pressed={state.view === view}\n                onClick={() => patch({ view })}\n              >\n                {view}\n              </Key>\n            ))}\n          </div>\n          <EchoScope\n            state={state.freeze && held ? { ...held, freeze: true } : state}\n          />\n        </Section>\n        <Section title=\"☼ Air\" className=\"meteora__air\">\n          <div className=\"meteora__weather\">\n            {dial(\"temperature\", \"♧ Temperature\", 96, false, -5, 35, \"°C\")}\n            {dial(\"humidity\", \"♢ Humidity\", 96, false, 10, 100, \"%\")}\n          </div>\n          <div className=\"meteora__sound-speed\">\n            c = {fixed(1, \"m/s\")(speed)}\n          </div>\n          <h4>Season</h4>\n          <div className=\"meteora__seasons\">\n            {SEASONS.map((s) => (\n              <Key\n                key={s.name}\n                blue\n                pressed={\n                  v.temperature === s.temperature && v.humidity === s.humidity\n                }\n                onClick={() =>\n                  setState((current) => ({\n                    ...current,\n                    values: {\n                      ...current.values,\n                      temperature: s.temperature,\n                      humidity: s.humidity,\n                    },\n                  }))\n                }\n              >\n                {s.name}\n              </Key>\n            ))}\n          </div>\n        </Section>\n      </div>\n      <div className=\"meteora__lower\">\n        <Section title=\"↔ Distance\">\n          <div className=\"meteora__pair\">\n            {dial(\"scale\", \"↔ Scale\", 96, false, 0.25, 2, \"×\")}\n            {dial(\"direct\", \"↔ Direct\", 60, true)}\n          </div>\n          <div className=\"meteora__center\">\n            {dial(\"near\", \"◎ Near\", 65, true)}\n            <Key\n              blue\n              pressed={state.landscape}\n              onClick={() => patch({ landscape: !state.landscape })}\n            >\n              ♧ Landscape\n            </Key>\n          </div>\n        </Section>\n        <Section title=\"≋ Wind\">\n          <div className=\"meteora__pair\">\n            {dial(\"wind\", \"≋ Speed\", 96, false, 0, 20, \"m/s\")}\n            {dial(\"direction\", \"◉ From\", 76, true, 0, 360, \"°\")}\n          </div>\n          <div className=\"meteora__center\">\n            <Key\n              pressed={state.inversion}\n              onClick={() => patch({ inversion: !state.inversion })}\n            >\n              ⚑ Inversion\n            </Key>\n          </div>\n        </Section>\n        <Section title=\"〰 Turbulence\">\n          <div className=\"meteora__pair\">\n            {dial(\"scintillation\", \"〰 Scintill.\", 96)}\n            {dial(\"rate\", \"◷ Rate\", 60, true)}\n          </div>\n        </Section>\n        <Section title=\"⚿ Faces\">\n          <div className=\"meteora__center\">\n            {dial(\"flutter\", \"⚿ Flutter\", 96)}\n            <div className=\"meteora__face-keys\">\n              {[\"Auto\", \"1\", \"2\", \"3\"].map((face) => (\n                <Key\n                  key={face}\n                  pressed={state.face === face}\n                  onClick={() => patch({ face })}\n                >\n                  {face}\n                </Key>\n              ))}\n            </div>\n          </div>\n        </Section>\n        <Section title=\"◟ Shape\" className=\"meteora__shape\">\n          <div className=\"meteora__shape-top\">\n            {dial(\"early\", \"♮ Early/late\", 76)}\n            {dial(\"diffusion\", \"♮ Diffusion\", 76)}\n            {dial(\"predelay\", \"♮ Pre-delay\", 60, true)}\n            {dial(\"decay\", \"◟ Decay\", 60, true)}\n          </div>\n          <div className=\"meteora__shape-bottom\">\n            {dial(\"low\", \"⌒ Low\", 62, true)}\n            {dial(\"high\", \"⌒ High\", 62, true)}\n            {dial(\"width\", \"↔ Width\", 62, true)}\n          </div>\n        </Section>\n        <Section title=\"♧ Out\">\n          <div className=\"meteora__pair\">\n            {dial(\"mix\", \"× Mix\", 96)}\n            {dial(\"output\", \"→ Output\", 60, true)}\n          </div>\n          <div className=\"meteora__center meteora__output\">\n            <Key pressed={state.freeze} onClick={freeze}>\n              ❄ Freeze\n            </Key>\n            <Key\n              pressed={state.reverse}\n              onClick={() => patch({ reverse: !state.reverse })}\n            >\n              ↤ Reverse\n            </Key>\n          </div>\n        </Section>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "@components/blocks/meteora.tsx"
    },
    {
      "path": "components/blocks/meteora.css",
      "content": "/**\n * Source: https://pluginui.com/examples/meteora\n * Copyright © [Maru](https://maru.audio)\n *\n * Maru UI Kit — https://maru.audio/ui-kit\n *\n * Installed from the Maru UI registry. This file is yours now: edit it\n * freely, it will not be overwritten unless you re-run the add command.\n *\n * Keep this item’s companion files and CSS imports together. Dependencies\n * declared by the registry are installed with the source.\n */\n.meteora {\n  width: 1500px;\n  height: 930px;\n  flex: none;\n  position: relative;\n  box-sizing: border-box;\n  overflow: hidden;\n  color: #407da4;\n  font-family: Arial, Helvetica, sans-serif;\n  font-size: 12px;\n  background:\n    repeating-linear-gradient(0deg, #00000002 0px 1px, transparent 1px 3px),\n    linear-gradient(110deg, #eeece9, #e9e6e3 70%, #f4f0ed);\n  border: 1px solid #aaa6a0;\n  border-left: 22px solid #905c44;\n  border-right: 22px solid #905c44;\n  box-shadow:\n    inset 3px 0 6px #51302188,\n    inset -3px 0 6px #51302188,\n    0 8px 24px #0003;\n  --fluted-ink: #58839d;\n  --uikit-font: Arial, Helvetica, sans-serif;\n}\n.meteora *,\n.meteora *::before,\n.meteora *::after {\n  box-sizing: border-box;\n}\n.meteora button,\n.meteora select {\n  font: inherit;\n}\n.meteora button {\n  cursor: pointer;\n}\n.meteora button:focus-visible,\n.meteora select:focus-visible {\n  outline: 2px solid #f2ae4b;\n  outline-offset: 2px;\n}\n.meteora__header {\n  height: 46px;\n  display: flex;\n  align-items: center;\n  gap: 18px;\n  padding: 0 15px;\n  border-bottom: 2px solid #5c8fb1;\n  box-shadow: 0 2px 0 #fff8;\n}\n.meteora__brand {\n  font-size: 25px;\n  letter-spacing: 6px;\n  font-style: italic;\n  font-weight: 800;\n  color: #2877af;\n  text-shadow: 0 1px #fff;\n}\n.meteora__subtitle {\n  font-size: 11px;\n  letter-spacing: 2px;\n  white-space: nowrap;\n}\n.meteora__preset {\n  margin-left: auto;\n  display: flex;\n  align-items: center;\n  gap: 10px;\n}\n.meteora__preset label {\n  display: flex;\n  align-items: center;\n  gap: 9px;\n  letter-spacing: 1.5px;\n  font-size: 11px;\n}\n.meteora select {\n  height: 24px;\n  border: 1px solid #5691b6;\n  border-radius: 1px;\n  color: #3b769e;\n  background: #f6f4f0;\n  box-shadow: inset 0 0 0 1px #c5d4dd;\n  min-width: 0;\n  max-width: 100%;\n  padding: 1px 5px;\n}\n.meteora__preset select {\n  width: 150px;\n}\n.meteora__disclaimer {\n  font: 10px monospace;\n  color: #747071;\n  white-space: nowrap;\n}\n.meteora .meteora__key {\n  display: inline-flex;\n  justify-content: center;\n  align-items: center;\n  gap: 5px;\n  white-space: nowrap;\n  border: 1px solid #6c6c6b;\n  border-radius: 2px;\n  background: linear-gradient(#393c3d, #151717 75%, #222);\n  box-shadow:\n    inset 0 1px 1px #fff5,\n    0 2px 2px #0003;\n  color: #f6f4ef;\n  min-height: 28px;\n  padding: 4px 12px;\n  text-transform: uppercase;\n  font-size: 10px;\n  letter-spacing: 0.6px;\n  font-weight: 800;\n}\n.meteora .meteora__key--blue {\n  border-color: #6a9fbc;\n  background: linear-gradient(#60a9d6, #3288c1 65%, #2a74a8);\n}\n.meteora__key[aria-pressed=\"true\"] {\n  box-shadow:\n    inset 0 0 0 1px #d8edff70,\n    0 0 0 1px #92c1da;\n}\n.meteora__lamp {\n  height: 5px;\n  width: 5px;\n  border-radius: 50%;\n  background: #171b1d;\n  box-shadow: inset 0 1px 1px #0005;\n}\n.meteora__key[aria-pressed=\"true\"] .meteora__lamp {\n  background: #fa7559;\n  box-shadow: 0 0 4px #ffac6880;\n}\n.meteora__upper {\n  display: grid;\n  grid-template-columns: 24% 51.5% 24.5%;\n  height: 548px;\n}\n.meteora__section {\n  position: relative;\n  padding: 10px 11px 16px;\n  min-width: 0;\n  border-right: 1px solid #6798b6;\n  border-bottom: 2px solid #6798b6;\n  box-shadow: inset -1px 0 #fff8;\n}\n.meteora__section:last-child {\n  border-right: 0;\n}\n.meteora h3 {\n  font-family: Arial, Helvetica, sans-serif;\n  margin: 0 0 10px;\n  padding: 0 1px 5px;\n  font-size: 14px;\n  font-weight: 800;\n  letter-spacing: 2px;\n  font-style: italic;\n  line-height: 20px;\n  border-bottom: 1px solid #5486a6;\n  text-transform: uppercase;\n  text-shadow: 0 1px #fff;\n}\n.meteora h4 {\n  font-size: 12px;\n  letter-spacing: 1px;\n  font-style: italic;\n  margin: 11px 0 7px;\n  font-weight: 700;\n  text-transform: uppercase;\n}\n.meteora__screw {\n  position: absolute;\n  bottom: 6px;\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  background: radial-gradient(\n    circle at 35% 30%,\n    #f8f8ed 15%,\n    #c4c8c3 35%,\n    #919d9e 58%,\n    #d8dad4 70%\n  );\n  box-shadow: 0 0 2px #7a8580;\n}\n.meteora__screw--left {\n  left: 5px;\n}\n.meteora__screw--right {\n  right: 5px;\n}\n.meteora__target {\n  display: flex;\n  align-items: center;\n  gap: 5px;\n  margin-bottom: 8px;\n}\n.meteora__target em {\n  text-transform: uppercase;\n  letter-spacing: 1px;\n  margin-right: auto;\n  font-size: 12px;\n  white-space: nowrap;\n}\n.meteora__target .meteora .meteora__key {\n  padding: 4px 8px;\n}\n.meteora__place {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  border-bottom: 1px dotted #a8bcc5;\n  padding: 1px 0 8px;\n  margin-bottom: 6px;\n}\n.meteora__place label {\n  display: flex;\n  flex-direction: column;\n  gap: 3px;\n  width: 210px;\n  font-style: italic;\n  text-transform: uppercase;\n  letter-spacing: 1px;\n}\n.meteora__place label select {\n  text-transform: none;\n  letter-spacing: 0;\n  font-size: 11px;\n}\n.meteora__place--0 label {\n  color: #b77476;\n}\n.meteora__place--2 label {\n  color: #b78b56;\n}\n.meteora__dial {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 1px;\n  flex: none;\n}\n.meteora__dial > span {\n  font-size: 11px;\n  font-weight: 700;\n  text-transform: uppercase;\n  letter-spacing: 0.75px;\n  font-style: italic;\n  line-height: 17px;\n  min-height: 17px;\n  white-space: nowrap;\n}\n.meteora__dial [role=\"slider\"]:focus-visible {\n  outline: 1px dotted #5988a0;\n  outline-offset: 0;\n}\n.meteora__blend {\n  display: flex;\n  align-items: flex-end;\n  justify-content: space-between;\n  margin-top: -8px;\n}\n.meteora__modes {\n  display: flex;\n  gap: 5px;\n  justify-content: center;\n  margin-top: 7px;\n}\n.meteora__modes .meteora .meteora__key {\n  padding: 4px 9px;\n}\n.meteora__model {\n  padding: 8px 14px 16px;\n}\n.meteora__model h3 {\n  margin-bottom: 7px;\n}\n.meteora__terrain {\n  position: relative;\n  height: 365px;\n  border: 5px solid #292b29;\n  border-radius: 7px;\n  overflow: hidden;\n  background: #0c110e;\n  box-shadow:\n    0 1px 0 #fff,\n    inset 0 0 10px #000;\n}\n.meteora__terrain > svg {\n  display: block;\n  width: 100%;\n  height: 100%;\n}\n.meteora__terrain text {\n  font: 11px monospace;\n  font-weight: bold;\n}\n.meteora__telemetry {\n  position: absolute;\n  top: 10px;\n  left: 10px;\n  pointer-events: none;\n  color: #7dbe9b;\n  text-shadow: 0 0 3px #5ad49d66;\n  font: bold 10px/17px monospace;\n}\n.meteora__map-places {\n  position: absolute;\n  inset: 0;\n}\n.meteora__map-places button {\n  position: absolute;\n  width: 20px;\n  height: 20px;\n  margin: -10px 0 0 -10px;\n  border: 0;\n  background: transparent;\n  color: #b3ce9c55;\n  font: 16px monospace;\n}\n.meteora__map-places button:hover,\n.meteora__map-places button:focus-visible {\n  color: #fff2b2;\n  background: #101e14aa;\n}\n.meteora__views {\n  position: absolute;\n  right: 28px;\n  top: 367px;\n  display: flex;\n  gap: 5px;\n}\n.meteora__views .meteora .meteora__key {\n  padding: 3px 10px;\n  min-height: 25px;\n}\n.meteora__scope {\n  display: block;\n  width: 100%;\n  height: 120px;\n  margin-top: 8px;\n  border: 5px solid #292b29;\n  border-radius: 7px;\n  box-shadow: 0 1px 0 #fff;\n}\n.meteora__scope text {\n  font: bold 9px monospace;\n  fill: #568a71;\n}\n.meteora__weather {\n  display: flex;\n  justify-content: space-around;\n  padding-top: 0;\n}\n.meteora__sound-speed {\n  text-align: center;\n  font: bold 11px monospace;\n  color: #6b6a68;\n  margin: 7px 0 15px;\n}\n.meteora__air h4 {\n  font-weight: 400;\n  font-style: normal;\n}\n.meteora__seasons {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 7px;\n}\n.meteora__seasons .meteora .meteora__key {\n  padding: 5px;\n}\n.meteora__lower {\n  display: grid;\n  grid-template-columns: 14.5% 14.5% 13.8% 14.5% 28% 14.7%;\n  height: 336px;\n}\n.meteora__lower .meteora__section {\n  padding-top: 8px;\n  border-bottom: 0;\n}\n.meteora__pair {\n  display: flex;\n  align-items: flex-start;\n  justify-content: space-around;\n  gap: 2px;\n}\n.meteora__center {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 6px;\n  margin-top: 7px;\n}\n.meteora__face-keys {\n  display: flex;\n  gap: 4px;\n}\n.meteora__face-keys .meteora .meteora__key {\n  padding: 4px 9px;\n}\n.meteora__shape-top {\n  display: flex;\n  justify-content: space-around;\n  align-items: flex-start;\n}\n.meteora__shape-bottom {\n  display: flex;\n  justify-content: space-around;\n  margin-top: 9px;\n}\n.meteora__output {\n  gap: 6px;\n}\n.meteora__output .meteora .meteora__key {\n  min-width: 104px;\n}\n.meteora__help {\n  position: absolute;\n  z-index: 3;\n  top: 46px;\n  left: 0;\n  right: 0;\n  background: #f4f1e8;\n  border-bottom: 1px solid #7292a6;\n  padding: 15px;\n  color: #345e77;\n  box-shadow: 0 4px 10px #0003;\n  line-height: 1.7;\n}\n.meteora__help button {\n  margin-left: 12px;\n  border: 1px solid #819ba9;\n  background: #e9e8e3;\n  padding: 3px 9px;\n  color: inherit;\n}\n.meteora__dial > .meteora__endpoints {\n  display: flex;\n  justify-content: space-between;\n  width: 88%;\n  font-size: 9px;\n  line-height: 10px;\n  min-height: 10px;\n  font-weight: 400;\n  position: absolute;\n  bottom: -5px;\n}\n",
      "type": "registry:file",
      "target": "@components/blocks/meteora.css"
    }
  ]
}
