{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"anime-fx","type":"registry:ui","title":"Anime FX","description":"The engine behind the anime series: springs, one shared clock, one canvas over the page that ignores the pointer, and drawn effects in flat lit, shadow and outline tones (impact star, smoke puff, crystal chips, accent wedges, speed lines, wobble marks, glint, splash, slash) plus manga sound-effect lettering stored as glyph outlines (Japanese, traditional and simplified Chinese), picked from <html lang>. Colours follow the brand spot. Hooks for a press that squashes and overshoots and for a canvas behind a control. setMotion(\"twos\") (or <html data-anime-motion=\"twos\">) draws every effect on twos at 12 drawings a second, like hand-drawn animation, while springs stay smooth. With reduced motion nothing is drawn.","dependencies":[],"registryDependencies":["utils"],"categories":["animation","effects","canvas"],"meta":{"tier":"free","series":"anime","interaction":"press","addedAt":"2026-11-26","usage":{"whenToUse":["Building your own control in the anime series that needs the same drawn effects and lettering","Adding one anime-style reaction (an impact on a confirm, dust on a landing) to an existing component"],"watchOut":["The effects canvas sits on top of the page, so effects can fly over a modal or a sticky header","Keep every state change independent of the effect clock: it pauses in a hidden tab","One sound-effect word per reaction, placed off any label; effects leave by shrinking, never by fading","The lettering glyphs come from SIL OFL fonts (Dela Gothic One, Noto Sans TC and SC); the notice ships in anime-fx-glyphs.ts"],"aliases":["anime effects","sakuga","impact effect","manga sound effects","onomatopoeia","comic effects","canvas effects engine","squash and stretch","on twos","12 fps","hand-drawn timing"]}},"files":[{"path":"registry/free/anime-fx/anime-fx.tsx","type":"registry:ui","content":"\"use client\";\n\nimport { useEffect, useMemo, useRef, type RefObject } from \"react\";\n\nimport { add, addLayer, clamp, inn, onFrame, Spring, tone, type Layer, type Palette } from \"./anime-fx-core\";\nimport { glyphs, UNITS } from \"./anime-fx-glyphs\";\n\n/**\n * anime-fx: an engine for anime-style drawn effects. A control is plain at rest; use it and it throws drawn effects:\n * impact stars, smoke, crystal chips, speed lines, accent wedges, splashes, and manga sound-effect lettering in Japanese or Chinese.\n * Everything is drawn on one canvas over the page that ignores the pointer.\n *\n *   const back = useBackLayer();                    // canvas behind the control (for the impact star)\n *   const P = paletteOf(button);                    // colours from the theme, following --sunui-spot\n *   burst(P, c.x, c.y, { layer: back.layer() });\n *   sfx(P, \"impact\", c.x, c.y - 70, { size: 92 }); // Japanese or Chinese from <html lang>\n *\n * With reduced motion on, no effect is drawn and state changes as usual.\n */\n\nexport * from \"./anime-fx-core\";\n\n// ───────── lettering ─────────\n\nexport type SfxSlot = \"impact\" | \"click\" | \"swish\" | \"pop\" | \"skid\" | \"rumble\";\nexport type SfxLang = \"ja\" | \"zh-TW\" | \"zh-CN\";\nexport type SfxStyle = \"solid\" | \"hollow\" | \"dotted\";\n\nexport const sfxWords: Record<SfxLang, Record<SfxSlot, string>> = {\n  ja: { impact: \"ドン!\", click: \"カチッ\", swish: \"シュッ\", pop: \"ポン\", skid: \"ズザッ\", rumble: \"ゴゴゴ\" },\n  \"zh-TW\": { impact: \"砰!\", click: \"喀!\", swish: \"咻!\", pop: \"啵!\", skid: \"唰!\", rumble: \"轟轟\" },\n  \"zh-CN\": { impact: \"砰!\", click: \"咔!\", swish: \"咻!\", pop: \"啵!\", skid: \"唰!\", rumble: \"轰轰\" },\n};\n\n/** Default style per slot: hits are solid, the click is hollow, skid and rumble are screentone. */\nexport const sfxStyles: Record<SfxSlot, SfxStyle> = { impact: \"solid\", click: \"hollow\", swish: \"solid\", pop: \"solid\", skid: \"dotted\", rumble: \"dotted\" };\n\n/** Chinese pages get Chinese words (traditional or simplified); every other language gets Japanese. */\nexport function sfxLang(lang = typeof document !== \"undefined\" ? document.documentElement.lang : \"\"): SfxLang {\n  const l = lang.toLowerCase();\n  if (!l.startsWith(\"zh\")) return \"ja\";\n  return /hant|tw|hk|mo/.test(l) ? \"zh-TW\" : \"zh-CN\";\n}\n\nconst fontOf = (lang: SfxLang) => (lang === \"ja\" ? glyphs.ja : lang === \"zh-TW\" ? glyphs.tc : glyphs.sc);\nconst paths = new Map<string, Path2D>();\nconst pathOf = (d: string) => {\n  let p = paths.get(d);\n  if (!p) paths.set(d, (p = new Path2D(d)));\n  return p;\n};\n\n/** Seeded random, so the same seed lays a word out the same way. */\nfunction seeded(seed: number) {\n  let s = seed >>> 0 || 1;\n  return () => (s = (s * 1664525 + 1013904223) >>> 0) / 4294967296;\n}\n\n/**\n * Draw a sound-effect word centred on (x, y). Each glyph turns a little, varies in size and steps up as the word goes on.\n * The edge is 5% of the size: Chinese glyphs have many strokes and a thicker edge fills the gaps inside them.\n */\nexport function drawWord(g: CanvasRenderingContext2D, P: Palette, text: string, lang: SfxLang, x: number, y: number, size: number, style: SfxStyle, seed = 7) {\n  // Chinese glyphs are dense: below 48px screentone stops reading, so fall back to solid\n  if (style === \"dotted\" && lang !== \"ja\" && size < 48) style = \"solid\";\n  const set = fontOf(lang);\n  const r = seeded(seed);\n  const em = size / UNITS;\n  const items = [...text].flatMap((ch, i) => {\n    const gl = set[ch];\n    if (!gl) return [];\n    const big = ch === \"!\" ? 0.95 : i === 0 ? 1.12 : 0.92 + r() * 0.12;\n    return [{ adv: gl[0] * 0.86 * big, d: gl[1], big, rot: (r() - 0.5) * 0.32, dy: -i * size * 0.06 + (r() - 0.5) * size * 0.08 }];\n  });\n  const total = items.reduce((s, m) => s + m.adv, 0) * em;\n  const edge = Math.max(2, size * 0.05);\n  const outer = style === \"hollow\" ? \"#ffffff\" : P.ink;\n  const inner = style === \"hollow\" ? P.ink : \"#ffffff\";\n  const pass = (paint: (p: Path2D, k: number) => void) => {\n    let px = x - total / 2;\n    for (const m of items) {\n      const k = em * m.big;\n      const w = m.adv * em;\n      g.save();\n      g.translate(px + w / 2, y + m.dy);\n      g.rotate(m.rot);\n      g.scale(k, k);\n      // Glyph origin is the baseline at the left; move to the centre (a CJK body centres about 0.38 em above the baseline)\n      g.translate(-m.adv / (0.86 * m.big) / 2, UNITS * 0.38);\n      paint(pathOf(m.d), k);\n      g.restore();\n      px += w;\n    }\n  };\n  g.lineJoin = \"round\";\n  pass((p, k) => {\n    g.strokeStyle = outer;\n    g.lineWidth = (edge * 2.2) / k;\n    g.stroke(p);\n  });\n  pass((p, k) => {\n    g.strokeStyle = inner;\n    g.lineWidth = (edge * (style === \"hollow\" ? 1.1 : 1.2)) / k;\n    g.stroke(p);\n  });\n  pass((p, k) => {\n    if (style === \"solid\") g.fillStyle = P.ink;\n    else if (style === \"hollow\") g.fillStyle = \"#ffffff\";\n    else {\n      const gap = Math.max(2.6, size * 0.05) / k;\n      g.fillStyle = tone(g, P.ink, \"#ffffff\", gap * 0.36, gap) ?? P.ink;\n    }\n    g.fill(p);\n    if (style === \"dotted\") {\n      g.strokeStyle = P.ink;\n      g.lineWidth = Math.max(1, edge * 0.4) / k;\n      g.stroke(p);\n    }\n  });\n}\n\n/** A word lands a size too big, springs to size, wobbles while it stays, and shrinks away. */\nexport function sfx(\n  P: Palette,\n  slot: SfxSlot,\n  x: number,\n  y: number,\n  o: { size?: number; rot?: number; life?: number; style?: SfxStyle; lang?: SfxLang; layer?: Layer | null } = {},\n) {\n  const lang = o.lang ?? sfxLang();\n  const { size = 64, rot = -0.12, life = 1, style = sfxStyles[slot], layer } = o;\n  const text = sfxWords[lang][slot];\n  const s = new Spring(0.2, 520, 17);\n  s.to = 1;\n  let lastT = 0;\n  const seed = Math.floor(Math.random() * 1e6);\n  add(\n    life,\n    (g, k, t) => {\n      const sc = s.step(t - lastT) * (1 - inn(clamp((k - 0.86) / 0.14)));\n      lastT = t;\n      if (sc < 0.02) return;\n      g.translate(x, y);\n      g.rotate(rot + Math.sin(t * 14) * 0.015);\n      g.scale(sc, sc);\n      drawWord(g, P, text, lang, 0, 0, size, style, seed);\n    },\n    layer,\n  );\n}\n\n// ───────── React ─────────\n\n/**\n * A press: squash while held (keeping volume, so it widens), overshoot on release. Also returns pop (scale up, spring back)\n * and tilt (degrees); for a hit, set their x and call kick(). Uses the animation loop only while something moves.\n */\nexport function useSquash(ref: RefObject<HTMLElement | null>, { low = 0.6, wide = 0.25 } = {}) {\n  const st = useMemo(() => ({ s: new Spring(1, 520, 15), pop: new Spring(1, 300, 12), tilt: new Spring(0, 260, 10), off: null as null | (() => void) }), []);\n  const kick = useMemo(\n    () => () => {\n      if (st.off) return;\n      st.off = onFrame((dt) => {\n        const el = ref.current;\n        const y = st.s.step(dt);\n        const p = st.pop.step(dt);\n        const t = st.tilt.step(dt);\n        if (el) el.style.transform = `rotate(${t.toFixed(2)}deg) scale(${((1 + (1 - y) * wide) * p).toFixed(4)}, ${(y * p).toFixed(4)})`;\n        if (st.s.to === 1 && st.s.still && st.pop.still && st.tilt.still) {\n          st.off?.();\n          st.off = null;\n          if (el) el.style.transform = \"\";\n        }\n      });\n    },\n    [ref, st, wide],\n  );\n  useEffect(() => {\n    const el = ref.current;\n    if (!el) return;\n    const down = (e: PointerEvent) => {\n      if (e.button !== 0 || (el as HTMLButtonElement).disabled) return;\n      st.s.to = low;\n      kick();\n    };\n    const up = () => {\n      st.s.to = 1;\n      kick();\n    };\n    const ends = [\"pointerup\", \"pointerleave\", \"pointercancel\", \"blur\"] as const;\n    el.addEventListener(\"pointerdown\", down);\n    for (const e of ends) el.addEventListener(e, up);\n    return () => {\n      el.removeEventListener(\"pointerdown\", down);\n      for (const e of ends) el.removeEventListener(e, up);\n      st.off?.();\n      st.off = null;\n    };\n  }, [ref, st, low, kick]);\n  return { s: st.s, pop: st.pop, tilt: st.tilt, kick };\n}\n\n/**\n * A canvas behind a control, for effects that belong behind it such as the impact star.\n * Spread props onto a <canvas> inside the control's wrapper (the wrapper needs isolate). The canvas covers the wrapper plus spread\n * while it draws, and being fixed it never makes the page scroll sideways.\n */\nexport function useBackLayer(spread = 110) {\n  const ref = useRef<HTMLCanvasElement>(null);\n  const layer = useRef<Layer | null>(null);\n  useEffect(() => {\n    if (!ref.current) return;\n    const { layer: L, remove } = addLayer(ref.current, spread);\n    layer.current = L;\n    return () => {\n      remove();\n      layer.current = null;\n    };\n  }, [spread]);\n  // Stable across renders, so it is safe in effect dependencies\n  return useMemo(\n    () => ({\n      layer: () => layer.current,\n      props: {\n        ref,\n        \"aria-hidden\": true,\n        className: \"pointer-events-none fixed -z-10\",\n        style: { left: 0, top: 0, width: 0, height: 0 },\n      },\n    }),\n    [],\n  );\n}\n"},{"path":"registry/free/anime-fx/anime-fx-core.ts","type":"registry:ui","content":"/**\n * anime-fx core: springs, the shared clock, canvas layers and the drawn effects. No React; anime-fx.tsx wraps it in hooks.\n *\n * Rules: every shape is a lit face, a shadow face and an outline in flat colour, with no gradients or blur;\n * effects leave by shrinking or thinning, never by fading; with reduced motion on, no effect is drawn and state changes as usual.\n * The method follows the rules of Sakuga VFX (MIT, github.com/finktheartist/sakuga-vfx); the code is our own.\n */\n\nexport type Palette = {\n  /** Lit face */\n  fill: string;\n  /** Shadow face */\n  shade: string;\n  /** Outline */\n  line: string;\n  /** Accent wedges */\n  accent: string;\n  /** Lettering ink */\n  ink: string;\n};\n\nconst TAU = Math.PI * 2;\nexport const clamp = (v: number, a = 0, b = 1) => Math.min(b, Math.max(a, v));\nconst out = (t: number) => 1 - (1 - t) ** 3;\nexport const inn = (t: number) => t * t * t;\nconst back = (t: number) => 1 + 2.70158 * (t - 1) ** 3 + 1.70158 * (t - 1) ** 2;\nexport const rnd = (a: number, b: number) => a + Math.random() * (b - a);\n\n/** A spring with 8 ms substeps. Anything the hand moves, squashes or settles uses this, not an easing curve. */\nexport class Spring {\n  v = 0;\n  to: number;\n  constructor(\n    public x: number,\n    public k = 300,\n    public d = 20,\n  ) {\n    this.to = x;\n  }\n  step(dt: number) {\n    if (!(dt > 0)) return this.x;\n    const n = Math.ceil(dt / 0.008);\n    const h = dt / n;\n    for (let i = 0; i < n; i++) {\n      this.v += (-this.k * (this.x - this.to) - this.d * this.v) * h;\n      this.x += this.v * h;\n    }\n    return this.x;\n  }\n  /** At rest on its target */\n  get still() {\n    return Math.abs(this.x - this.to) < 0.001 && Math.abs(this.v) < 0.01;\n  }\n}\n\n// ───────── layers and the clock ─────────\n\nexport type Draw = (g: CanvasRenderingContext2D, k: number, t: number) => void;\ntype Fx = { t: number; life: number; draw: Draw };\nexport type Layer = { c: HTMLCanvasElement | null; live: Fx[]; spread?: number };\n\n/** The front layer: one canvas over the whole viewport that ignores the pointer, created on the first effect. */\nconst front: Layer = { c: null, live: [] };\nconst layers: Layer[] = [front];\nconst frames = new Set<(dt: number) => void>();\nlet timers: { at: number; f: () => void }[] = [];\nlet now = 0;\nlet last = 0;\nlet running = false;\nlet paused = false;\nlet motion: \"smooth\" | \"twos\" = \"smooth\";\nlet held = 0;\n\n/**\n * \"twos\" draws every effect on twos, at 12 drawings a second like hand-drawn animation; \"smooth\" (default) draws every frame.\n * Only the drawn effects step: springs, thumbs and anything that follows the hand stay smooth. The page can also set\n * <html data-anime-motion=\"twos\"> before any script runs.\n */\nexport function setMotion(m: \"smooth\" | \"twos\") {\n  motion = m;\n}\nconst onTwos = () => motion === \"twos\" || (typeof document !== \"undefined\" && document.documentElement.dataset.animeMotion === \"twos\");\n\nexport const calm = () => typeof matchMedia !== \"undefined\" && matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n\nfunction ensureFront() {\n  if (front.c || typeof document === \"undefined\") return;\n  const c = document.createElement(\"canvas\");\n  c.setAttribute(\"aria-hidden\", \"true\");\n  c.dataset.animeFx = \"\";\n  c.style.cssText = \"position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:2147483000\";\n  document.body.appendChild(c);\n  front.c = c;\n}\n\n/**\n * Register a canvas inside a component, behind its control (the impact star sits behind a button). Returns the layer and a function\n * that unregisters it. The canvas is position: fixed and is fitted to its parent plus spread on every frame it draws, so it never\n * adds to the page's scrollable area the way an oversized absolute canvas would.\n */\nexport function addLayer(c: HTMLCanvasElement, spread = 110) {\n  const L: Layer = { c, live: [], spread };\n  layers.push(L);\n  return {\n    layer: L,\n    remove: () => {\n      const i = layers.indexOf(L);\n      if (i >= 0) layers.splice(i, 1);\n    },\n  };\n}\n\n/** Add an effect. life is in seconds; draw receives progress k (0 to 1) and elapsed seconds t. */\nexport function add(life: number, draw: Draw, layer?: Layer | null) {\n  if (calm()) return;\n  const L = layer ?? front;\n  if (L === front) ensureFront();\n  L.live.push({ t: 0, life, draw });\n  start();\n}\n\n/** Run later on the shared clock (not setTimeout), so the frame tool can step it. */\nexport function later(ms: number, f: () => void) {\n  timers.push({ at: now + ms / 1000, f });\n  start();\n}\n\n/** Call every frame; returns a function that stops it. The loop stops by itself when nothing moves. */\nexport function onFrame(f: (dt: number) => void) {\n  frames.add(f);\n  start();\n  return () => {\n    frames.delete(f);\n  };\n}\n\nfunction paint(dt: number) {\n  const dpr = Math.min(2, devicePixelRatio || 1);\n  for (const L of layers) {\n    const c = L.c;\n    if (!c || !c.isConnected) continue;\n    if (L !== front && L.live.length) fit(c, L.spread ?? 110);\n    const r = c.getBoundingClientRect();\n    const w = Math.round(r.width * dpr);\n    const h = Math.round(r.height * dpr);\n    if (c.width !== w) c.width = w;\n    if (c.height !== h) c.height = h;\n    const g = c.getContext(\"2d\");\n    if (!g) continue;\n    g.setTransform(1, 0, 0, 1, 0, 0);\n    g.clearRect(0, 0, w, h);\n    if (!L.live.length) continue;\n    // Effects are placed in page coordinates and mapped to this canvas when drawn, so they scroll with their control\n    g.setTransform(dpr, 0, 0, dpr, -(r.left + scrollX) * dpr, -(r.top + scrollY) * dpr);\n    g.lineJoin = \"round\";\n    g.lineCap = \"round\";\n    for (const p of L.live) {\n      p.t += dt;\n      g.save();\n      p.draw(g, clamp(p.t / p.life), p.t);\n      g.restore();\n    }\n    L.live = L.live.filter((p) => p.t < p.life);\n  }\n}\n\n/** Fit a fixed back canvas over its parent plus spread. A transformed ancestor turns fixed into absolute, so correct by what was measured. */\nfunction fit(c: HTMLCanvasElement, spread: number) {\n  const host = c.parentElement;\n  if (!host) return;\n  const h = host.getBoundingClientRect();\n  const want = { left: h.left - spread, top: h.top - spread };\n  c.style.width = `${h.width + spread * 2}px`;\n  c.style.height = `${h.height + spread * 2}px`;\n  c.style.left = `${want.left}px`;\n  c.style.top = `${want.top}px`;\n  const got = c.getBoundingClientRect();\n  if (Math.abs(got.left - want.left) > 0.5) c.style.left = `${want.left - (got.left - want.left)}px`;\n  if (Math.abs(got.top - want.top) > 0.5) c.style.top = `${want.top - (got.top - want.top)}px`;\n}\n\nfunction advance(dt: number) {\n  now += dt;\n  const due = timers.filter((q) => q.at <= now);\n  timers = timers.filter((q) => q.at > now);\n  for (const q of due) q.f();\n  for (const f of frames) f(dt);\n  held += dt;\n  // On twos the effects keep their time but the canvas is redrawn only every 1/12 s\n  if (onTwos() && held < 1 / 12 - 1e-6) return;\n  paint(held);\n  held = 0;\n}\n\nfunction loop(ms: number) {\n  const dt = clamp((ms - last) / 1000, 0, 0.034);\n  last = ms;\n  if (!paused) advance(dt);\n  if (!paused && !frames.size && !timers.length && layers.every((L) => !L.live.length)) {\n    running = false;\n    paint(0);\n    return;\n  }\n  requestAnimationFrame(loop);\n}\n\nfunction start() {\n  if (running || typeof window === \"undefined\") return;\n  running = true;\n  last = performance.now();\n  requestAnimationFrame(loop);\n}\n\n// For frame sheets: pause(true) stops the clock, step(seconds) advances it at 60 fps\nif (typeof window !== \"undefined\")\n  (window as unknown as { __animeFx?: object }).__animeFx ??= {\n    pause: (v = true) => {\n      paused = v;\n      start();\n    },\n    step: (sec: number) => {\n      for (let t = 0; t < sec - 1e-6; t += 1 / 60) advance(1 / 60);\n    },\n  };\n\n/** A point on an element in page coordinates; fx and fy go from 0 to 1. */\nexport function at(el: Element, fx = 0.5, fy = 0.5) {\n  const b = el.getBoundingClientRect();\n  return { x: b.left + scrollX + b.width * fx, y: b.top + scrollY + b.height * fy, w: b.width, h: b.height };\n}\n\n/** Turn a CSS colour (variables, color-mix) into a string the canvas accepts. */\nfunction resolve(el: Element, css: string) {\n  const probe = document.createElement(\"span\");\n  probe.style.cssText = `display:none;color:${css}`;\n  el.appendChild(probe);\n  const c = getComputedStyle(probe).color;\n  probe.remove();\n  return c;\n}\n\nconst SPOT = \"var(--sunui-spot, var(--primary))\";\n\n/**\n * Colours from the element's theme: the lit face is always white (drawn effects are white, and read better on a dark page too),\n * the shadow face is the brand spot mixed into white, the outline is the brand spot, accents are the semantic red.\n * Read on every trigger, so theme and brand colour changes apply. Pass another CSS colour as hue for an effect that belongs\n * to a semantic colour (the rating amber), so the effect matches what it decorates.\n */\nexport function paletteOf(el: Element, hue = SPOT): Palette {\n  return {\n    fill: \"#ffffff\",\n    shade: resolve(el, `color-mix(in oklch, ${hue} 24%, #fff)`),\n    line: resolve(el, hue),\n    accent: resolve(el, \"var(--sunui-like, #dc3d43)\"),\n    ink: \"#141414\",\n  };\n}\n\n// ───────── fills ─────────\n\nconst tones = new Map<string, CanvasPattern | null>();\n/** Screentone: a grid of dots on a ground colour. */\nexport function tone(g: CanvasRenderingContext2D, dot: string, bg: string, r: number, gap: number) {\n  const key = `${dot}|${bg}|${r}|${gap}`;\n  if (tones.has(key)) return tones.get(key)!;\n  const t = document.createElement(\"canvas\");\n  t.width = Math.round(gap * 2);\n  t.height = Math.round(gap * 2);\n  const x = t.getContext(\"2d\")!;\n  x.fillStyle = bg;\n  x.fillRect(0, 0, t.width, t.height);\n  x.fillStyle = dot;\n  const s = t.width / 2;\n  for (const [px, py] of [[0, 0], [s * 2, 0], [0, s * 2], [s * 2, s * 2], [s, s]]) {\n    x.beginPath();\n    x.arc(px, py, r, 0, TAU);\n    x.fill();\n  }\n  const p = g.createPattern(t, \"repeat\");\n  tones.set(key, p);\n  return p;\n}\n\n/** Circles drawn as one shape: outline, shadow face, then the lit face shifted up and left. */\nfunction blob(g: CanvasRenderingContext2D, P: Palette, cs: [number, number, number][], lw = 1.6) {\n  const all = new Path2D();\n  const lit = new Path2D();\n  for (const [x, y, r] of cs) {\n    if (r <= 0.4) continue;\n    all.moveTo(x + r, y);\n    all.arc(x, y, r, 0, TAU);\n    const lx = x - r * 0.18;\n    const ly = y - r * 0.2;\n    lit.moveTo(lx + r * 0.78, ly);\n    lit.arc(lx, ly, r * 0.78, 0, TAU);\n  }\n  g.strokeStyle = P.line;\n  g.lineWidth = lw * 2;\n  g.stroke(all);\n  g.fillStyle = P.shade;\n  g.fill(all);\n  g.fillStyle = P.fill;\n  g.fill(lit);\n}\n\n// ───────── effects (all in page coordinates) ─────────\n\n/** A smoke puff: swells with a little overshoot, rolls, and shrinks away. */\nexport function puff(P: Palette, x: number, y: number, o: { n?: number; size?: number; vx?: number; vy?: number; life?: number; layer?: Layer | null } = {}) {\n  const { n = 5, size = 13, vx = 0, vy = -18, life = 0.8, layer } = o;\n  const lobes = Array.from({ length: n }, (_, i) => ({ a: (i / n) * TAU + rnd(0, 0.6), d: rnd(0.25, 0.9) * size, r: rnd(0.55, 1) * size, sp: rnd(0.6, 1.3) }));\n  add(\n    life,\n    (g, k, t) => {\n      const grow = back(clamp(t / 0.22));\n      const die = 1 - inn(clamp((k - 0.5) / 0.5));\n      const px = x + vx * out(k) * life;\n      const py = y + vy * out(k) * life;\n      const spread = 0.5 + out(k);\n      blob(g, P, lobes.map((l) => [px + Math.cos(l.a + t * l.sp) * l.d * spread, py + Math.sin(l.a + t * l.sp) * l.d * spread - out(k) * 5, l.r * grow * die]));\n    },\n    layer,\n  );\n}\n\n/** The impact star: a large star in the shadow face under a lit one; it leaves by its points thinning away. Usually on the layer behind the control. */\nexport function burst(P: Palette, x: number, y: number, o: { r?: number; spikes?: number; life?: number; layer?: Layer | null } = {}) {\n  const { r = 60, spikes = 13, life = 0.4, layer } = o;\n  const j = Array.from({ length: spikes * 2 }, (_, i) => (i % 2 ? rnd(0.34, 0.5) : rnd(0.75, 1.15)));\n  const rot = rnd(0, TAU);\n  const star = (R: number, turn: number, inner: number) => {\n    const p = new Path2D();\n    j.forEach((m, i) => {\n      const a = rot + turn + (i / j.length) * TAU;\n      const rr = R * (i % 2 ? m * inner : m);\n      if (i) p.lineTo(x + Math.cos(a) * rr, y + Math.sin(a) * rr);\n      else p.moveTo(x + Math.cos(a) * rr, y + Math.sin(a) * rr);\n    });\n    p.closePath();\n    return p;\n  };\n  add(\n    life,\n    (g, k) => {\n      const R = r * out(clamp(k / 0.3));\n      const hollow = 1 + inn(clamp((k - 0.35) / 0.65)) * 1.3;\n      g.strokeStyle = P.line;\n      g.lineWidth = 1.4;\n      const big = star(R * 1.16, 0.19, hollow);\n      g.fillStyle = P.shade;\n      g.fill(big);\n      g.stroke(big);\n      const small = star(R * 0.84, 0, hollow);\n      g.fillStyle = P.fill;\n      g.fill(small);\n      g.stroke(small);\n    },\n    layer,\n  );\n}\n\n/** Crystal chips: long facets that tumble, fall and shrink away. Launch them from the edge of a control (or on its back layer) so they never cover the label. */\nexport function shards(P: Palette, x: number, y: number, o: { n?: number; speed?: number; size?: number; life?: number; dir?: number; arc?: number; layer?: Layer | null } = {}) {\n  const { n = 7, speed = 190, size = 5, life = 0.75, dir = -Math.PI / 2, arc = Math.PI, layer } = o;\n  const shape = [[-1.4, 0.1], [-0.6, -0.7], [1.2, -0.45], [1.5, 0.15], [0.4, 0.75]];\n  for (let i = 0; i < n; i++) {\n    const a = dir + rnd(-arc, arc) / 2;\n    const v = speed * rnd(0.5, 1.15);\n    const s = size * rnd(0.6, 1.4);\n    const spin = rnd(-7, 7);\n    add(life * rnd(0.7, 1), (g, k, t) => {\n      const sc = s * (1 - inn(clamp((k - 0.6) / 0.4)));\n      g.translate(x + Math.cos(a) * v * t, y + Math.sin(a) * v * t + 420 * t * t);\n      g.rotate(spin * t);\n      const p = new Path2D();\n      shape.forEach(([px, py], m) => (m ? p.lineTo(px * sc, py * sc) : p.moveTo(px * sc, py * sc)));\n      p.closePath();\n      g.fillStyle = P.fill;\n      g.fill(p);\n      g.strokeStyle = P.line;\n      g.lineWidth = 1.3;\n      g.stroke(p);\n    }, layer);\n  }\n}\n\n/** Accent wedges: point at something, then fly off it. */\nexport function ticks(P: Palette, x: number, y: number, o: { n?: number; r?: number; len?: number; dir?: number; life?: number; fan?: number } = {}) {\n  const { n = 3, r = 16, len = 12, dir = -Math.PI / 2, life = 0.4, fan = 0.45 } = o;\n  add(life, (g, k) => {\n    const a = out(clamp(k / 0.5));\n    const b = inn(clamp((k - 0.4) / 0.6));\n    g.fillStyle = P.accent;\n    g.beginPath();\n    for (let i = 0; i < n; i++) {\n      const an = dir + (i - (n - 1) / 2) * fan;\n      const r0 = r + len * b * 1.25;\n      const r1 = r + len * a * 1.25;\n      const hw = 0.07 + 2.2 / (r1 + 8);\n      if (r1 - r0 < 0.6) continue;\n      g.moveTo(x + Math.cos(an) * r0, y + Math.sin(an) * r0);\n      g.lineTo(x + Math.cos(an - hw) * r1, y + Math.sin(an - hw) * r1);\n      g.lineTo(x + Math.cos(an + hw) * r1, y + Math.sin(an + hw) * r1);\n      g.closePath();\n    }\n    g.fill();\n  });\n}\n\n/** Speed lines: shoot out along dir and end when the tail catches the head. */\nexport function lines(P: Palette, x: number, y: number, o: { n?: number; dir?: number; len?: number; spread?: number; life?: number } = {}) {\n  const { n = 5, dir = Math.PI, len = 40, spread = 22, life = 0.3 } = o;\n  const ls = Array.from({ length: n }, () => ({ off: rnd(-spread, spread), l: len * rnd(0.6, 1.1) }));\n  const nx = Math.cos(dir);\n  const ny = Math.sin(dir);\n  add(life, (g, k) => {\n    g.strokeStyle = P.line;\n    g.lineWidth = 2.4 * (1 - k);\n    g.beginPath();\n    for (const s of ls) {\n      const bx = x - ny * s.off;\n      const by = y + nx * s.off;\n      g.moveTo(bx + nx * inn(k) * s.l, by + ny * inn(k) * s.l);\n      g.lineTo(bx + nx * out(k) * s.l, by + ny * out(k) * s.l);\n    }\n    g.stroke();\n  });\n}\n\n/** Wobble marks: two small arcs beside something that has just stopped. dir 1 draws on the right, -1 on the left. */\nexport function wob(P: Palette, x: number, y: number, o: { dir?: number; r?: number; life?: number } = {}) {\n  const { dir = 1, r = 14, life = 0.4 } = o;\n  const c = dir > 0 ? 0 : Math.PI;\n  add(life, (g, k) => {\n    g.strokeStyle = P.line;\n    g.lineWidth = 2.2 * (1 - k);\n    g.beginPath();\n    for (const d of [0, 6]) {\n      const rr = r + d + out(k) * 7;\n      g.moveTo(x - dir * r + Math.cos(c - 0.45) * rr, y + Math.sin(c - 0.45) * rr);\n      g.arc(x - dir * r, y, rr, c - 0.45, c + 0.45);\n    }\n    g.stroke();\n  });\n}\n\n/** A glint: a four-pointed sparkle that opens and closes. */\nexport function kira(P: Palette, x: number, y: number, o: { r?: number; life?: number } = {}) {\n  const { r = 9, life = 0.6 } = o;\n  add(life, (g, k) => {\n    const s = r * Math.sin(k * Math.PI) ** 0.6;\n    const q = s * 0.16;\n    const p = new Path2D();\n    p.moveTo(x, y - s);\n    p.quadraticCurveTo(x + q, y - q, x + s * 0.7, y);\n    p.quadraticCurveTo(x + q, y + q, x, y + s);\n    p.quadraticCurveTo(x - q, y + q, x - s * 0.7, y);\n    p.quadraticCurveTo(x - q, y - q, x, y - s);\n    g.fillStyle = P.fill;\n    g.fill(p);\n    g.strokeStyle = P.line;\n    g.lineWidth = 1.4;\n    g.stroke(p);\n  });\n}\n\n/** A splash crown: tongues of water rise and fall back while drops fly. */\nexport function splash(P: Palette, x: number, y: number, o: { w?: number; h?: number; life?: number } = {}) {\n  const { w = 30, h = 22, life = 0.6 } = o;\n  const n = 6;\n  const tongues = Array.from({ length: n }, (_, i) => ({ u: i / (n - 1) - 0.5, h: h * rnd(0.55, 1.1) * (1 - Math.abs(i / (n - 1) - 0.5) * 0.7), lean: rnd(-0.4, 0.4) }));\n  add(life, (g, k) => {\n    const rise = Math.sin(clamp(k / 0.9) * Math.PI);\n    const p = new Path2D();\n    p.moveTo(x - w * 0.6, y);\n    for (const t of tongues) {\n      const tx = x + t.u * w * 1.1 + t.lean * t.h * rise;\n      const ty = y - t.h * rise;\n      p.lineTo(tx - 2.2, y - t.h * rise * 0.3);\n      p.lineTo(tx, ty);\n      p.lineTo(tx + 2.2, y - t.h * rise * 0.3);\n    }\n    p.lineTo(x + w * 0.6, y);\n    p.closePath();\n    g.fillStyle = P.fill;\n    g.fill(p);\n    g.strokeStyle = P.line;\n    g.lineWidth = 1.5;\n    g.stroke(p);\n  });\n  for (let i = 0; i < 5; i++) {\n    const a = -Math.PI / 2 + rnd(-1.1, 1.1);\n    const v = rnd(90, 180);\n    const r0 = rnd(1.8, 3.4);\n    add(life * rnd(0.8, 1.1), (g, k, t) => {\n      const r = r0 * (1 - inn(clamp((k - 0.6) / 0.4)));\n      g.beginPath();\n      g.arc(x + Math.cos(a) * v * t, y - 4 + Math.sin(a) * v * t + 520 * t * t, r, 0, TAU);\n      g.fillStyle = P.fill;\n      g.fill();\n      g.strokeStyle = P.line;\n      g.lineWidth = 1.2;\n      g.stroke();\n    });\n  }\n}\n\n/** A slash: one stroke from a to b that draws across fast (lit face inside the brand outline), then thins away. */\nexport function slash(P: Palette, ax: number, ay: number, bx: number, by: number, o: { width?: number; life?: number; layer?: Layer | null } = {}) {\n  const { width = 7, life = 0.34, layer } = o;\n  add(\n    life,\n    (g, k) => {\n      const head = out(clamp(k / 0.22));\n      const w = width * (1 - inn(clamp((k - 0.2) / 0.8)));\n      if (w < 0.3) return;\n      g.beginPath();\n      g.moveTo(ax, ay);\n      g.lineTo(ax + (bx - ax) * head, ay + (by - ay) * head);\n      g.strokeStyle = P.line;\n      g.lineWidth = w + 3;\n      g.stroke();\n      g.strokeStyle = P.fill;\n      g.lineWidth = w;\n      g.stroke();\n    },\n    layer,\n  );\n}\n"},{"path":"registry/free/anime-fx/anime-fx-glyphs.ts","type":"registry:ui","content":"/**\n * Glyph outlines for anime-fx lettering (generated, do not edit by hand).\n * Each glyph is [advance, SVG path] on a 256-unit em, y pointing down, baseline at 0.\n *\n * Outlines come from fonts under the SIL Open Font License 1.1, and only the glyphs below were taken:\n *   ja: Dela Gothic One (Copyright 2020 The Dela Gothic Project Authors)\n *   tc: Noto Sans TC Black (Copyright 2014-2021 Adobe; Noto is a trademark of Google)\n *   sc: Noto Sans SC Black (same)\n * License: https://openfontlicense.org . Under the OFL these outlines may ship with software but may not be sold on their own.\n */\n\nexport type GlyphSet = Record<string, readonly [number, string]>;\n\nexport const UNITS = 256;\n\nexport const glyphs: Record<\"ja\" | \"tc\" | \"sc\", GlyphSet> = {\n  ja: {\n    \"ド\": [256, \"M225 -47Q172 -66 101 -80V1H29Q31 -42 31 -85Q31 -128 31 -192H101V-139Q135 -135 175 -127Q215 -119 249 -109Q240 -95 235 -82Q231 -69 225 -47ZM218 -136Q214 -154 203 -176L223 -182Q233 -163 238 -143ZM191 -127Q186 -147 176 -167L197 -174Q207 -153 211 -134Z\"],\n    \"ン\": [256, \"M6 -62Q54 -62 85 -68Q116 -75 139 -89Q159 -102 171 -127Q182 -151 186 -189Q202 -184 217 -180Q232 -176 253 -170Q247 -123 230 -93Q213 -63 184 -42Q157 -24 121 -13Q86 -3 33 2Q28 -19 22 -33Q17 -47 6 -62ZM108 -103Q76 -114 57 -120Q37 -126 3 -133Q15 -144 27 -160Q40 -175 46 -185Q78 -176 103 -168Q129 -159 154 -149Z\"],\n    \"カ\": [256, \"M246 -171 246 -107Q246 -86 246 -76Q245 -49 235 -34Q224 -18 203 -10Q181 -2 145 2Q129 -27 118 -42Q91 -13 29 1Q21 -30 4 -60Q49 -65 65 -83Q75 -94 79 -114H22V-171H82V-194H149Q149 -178 148 -171ZM181 -96Q181 -104 180 -114H145Q141 -80 130 -60Q152 -59 162 -62Q173 -65 177 -72Q181 -80 181 -96Z\"],\n    \"チ\": [256, \"M250 -126V-76H190Q185 -50 171 -34Q156 -18 125 -9Q93 0 47 3Q42 -15 37 -29Q31 -44 23 -57Q32 -56 44 -56Q68 -56 89 -60Q110 -64 118 -72Q120 -74 122 -76H6V-126H129L128 -137Q104 -137 79 -138Q55 -138 30 -138Q30 -155 30 -166Q30 -177 28 -189Q44 -188 74 -188Q159 -188 237 -193Q236 -182 235 -169Q235 -157 235 -138L194 -138Q194 -134 194 -126Z\"],\n    \"ッ\": [256, \"M242 -143Q236 -109 222 -85Q208 -60 185 -42Q165 -26 137 -15Q110 -4 76 3Q66 -15 57 -29Q49 -42 36 -54Q73 -59 96 -65Q118 -70 134 -79Q145 -86 154 -96L115 -89Q111 -99 104 -115Q94 -142 88 -155L144 -160Q145 -157 153 -138Q160 -120 164 -109Q175 -127 180 -157ZM54 -75 44 -98Q41 -105 36 -116Q31 -127 23 -146L78 -154Q92 -117 105 -86Z\"],\n    \"シ\": [256, \"M129 -132Q112 -138 89 -143Q66 -148 30 -152Q34 -163 36 -177Q39 -190 40 -200Q103 -193 141 -175ZM6 -62Q54 -62 85 -68Q116 -75 139 -89Q159 -102 171 -127Q182 -151 186 -189Q202 -184 217 -180Q232 -176 253 -170Q247 -123 230 -93Q213 -63 184 -42Q157 -24 121 -13Q86 -3 33 2Q28 -19 22 -33Q17 -47 6 -62ZM108 -81Q86 -86 62 -88Q39 -90 12 -90Q13 -102 13 -115Q13 -128 12 -141Q42 -140 67 -137Q92 -133 115 -127Z\"],\n    \"ュ\": [256, \"M201 -152 195 -58H228V-9H32V-58H134L137 -102H50V-152Z\"],\n    \"ポ\": [256, \"M159 -111 215 -119Q222 -96 233 -79Q243 -61 260 -44Q227 -24 207 -6Q189 -32 179 -54Q168 -77 159 -110V-40Q159 -23 153 -15Q147 -6 132 -3Q116 0 86 0Q86 -9 83 -24Q80 -39 76 -50Q67 -32 49 -6Q29 -24 -3 -44Q13 -61 24 -79Q34 -96 41 -119L97 -111V-124H13V-179H97V-194H159V-179H201Q194 -188 194 -200Q194 -209 199 -216Q203 -224 211 -229Q219 -233 228 -233Q237 -233 244 -229Q252 -224 257 -216Q261 -209 261 -200Q261 -189 255 -180Q249 -172 239 -168V-124H159ZM209 -200Q209 -192 215 -186Q220 -181 228 -181Q235 -181 241 -186Q246 -192 246 -200Q246 -207 241 -213Q235 -218 228 -218Q220 -218 215 -213Q209 -207 209 -200ZM88 -55Q94 -55 95 -57Q97 -59 97 -66V-110Q89 -78 78 -56Q82 -55 88 -55Z\"],\n    \"ズ\": [256, \"M219 -226Q220 -207 215 -190L193 -193Q198 -210 198 -229ZM248 -222Q248 -204 243 -186L222 -189Q226 -206 226 -225ZM218 3Q184 -13 141 -37Q100 -12 51 2Q41 -14 31 -27Q22 -41 6 -58Q60 -65 98 -82Q136 -99 162 -128H22V-183L216 -184L240 -131Q218 -99 190 -73Q219 -62 248 -58Q228 -23 218 3Z\"],\n    \"ザ\": [256, \"M215 -185Q215 -184 218 -173H247V-118H223Q222 -77 202 -51Q182 -26 149 -14Q116 -2 72 4Q62 -15 53 -30Q43 -44 29 -57Q73 -58 100 -64Q127 -70 141 -83Q154 -96 157 -118H102V-75H36V-118H9V-173H36V-195H102V-173H152Q151 -179 147 -195H203Q206 -208 206 -222L227 -219Q227 -201 223 -184ZM255 -215Q256 -197 251 -180L229 -183Q234 -200 234 -218Z\"],\n    \"ゴ\": [256, \"M220 -230Q221 -211 216 -194L194 -197Q199 -214 199 -233ZM249 -226Q249 -208 244 -190L223 -193Q227 -210 227 -229ZM166 -129H21V-186H237V-6H166V-11H18V-71H166Z\"],\n    \"!\": [79, \"M71 -200Q71 -183 70 -134Q70 -126 70 -123Q65 -87 63 -60H16Q15 -87 9 -123L9 -134Q8 -173 8 -200ZM69 5H10V-40H69Z\"],\n  },\n  tc: {\n    \"砰\": [256, \"M109 -207H241V-174H109ZM104 -93H249V-58H104ZM155 -198H192V24H155ZM210 -166 245 -159Q242 -149 239 -138Q236 -127 232 -118Q229 -108 226 -101L198 -108Q201 -116 203 -126Q206 -136 207 -147Q209 -157 210 -166ZM107 -158 136 -165Q139 -156 142 -146Q144 -135 146 -125Q148 -116 149 -108L118 -100Q118 -108 116 -118Q114 -128 112 -138Q110 -149 107 -158ZM10 -209H100V-175H10ZM41 -129H98V-6H41V-39H67V-96H41ZM38 -191 71 -184Q66 -159 59 -135Q51 -110 41 -88Q30 -67 16 -51Q16 -56 14 -64Q12 -73 9 -82Q7 -91 4 -96Q17 -113 25 -138Q33 -164 38 -191ZM25 -129H55V12H25Z\"],\n    \"喀\": [256, \"M94 -194H246V-145H212V-164H125V-145H94ZM109 -55H228V24H194V-27H141V24H109ZM129 -11H212V17H129ZM137 -165 170 -159Q160 -139 146 -122Q132 -104 109 -90Q106 -96 99 -103Q93 -111 88 -114Q107 -124 119 -138Q131 -151 137 -165ZM147 -148H204V-121H134ZM198 -148H205L211 -149L232 -136Q221 -111 201 -93Q181 -75 156 -63Q132 -52 104 -46Q102 -50 99 -56Q95 -61 91 -67Q88 -72 84 -76Q111 -80 134 -89Q156 -97 173 -111Q190 -124 198 -142ZM142 -210 179 -220Q183 -212 187 -202Q191 -193 194 -186L155 -174Q153 -181 150 -191Q146 -201 142 -210ZM145 -125Q155 -114 172 -105Q189 -96 209 -90Q230 -84 252 -82Q248 -75 245 -65Q242 -55 241 -48Q216 -53 194 -62Q171 -71 152 -83Q133 -94 119 -109ZM37 -198H88V-27H37V-59H58V-167H37ZM15 -198H46V-10H15Z\"],\n    \"咻\": [256, \"M140 -165H246V-133H140ZM176 -218H208V24H176ZM118 -219 150 -211Q144 -188 135 -166Q126 -143 116 -122Q105 -102 92 -87Q91 -91 87 -98Q84 -104 80 -110Q77 -117 73 -121Q88 -138 100 -165Q111 -191 118 -219ZM210 -145Q214 -131 218 -116Q222 -101 228 -87Q233 -73 239 -61Q246 -49 253 -40Q247 -36 240 -29Q233 -22 229 -16Q221 -30 213 -50Q206 -71 201 -94Q195 -118 192 -141ZM173 -145 193 -141Q189 -117 183 -93Q176 -69 168 -48Q160 -27 150 -12Q146 -18 139 -25Q132 -32 127 -36Q135 -46 142 -58Q148 -70 154 -85Q160 -99 165 -115Q169 -130 173 -145ZM102 -148 130 -176 133 -175V24H102ZM33 -198H86V-42H33V-76H56V-164H33ZM15 -198H46V-20H15Z\"],\n    \"啵\": [256, \"M147 -186H229V-155H147ZM142 -120H226V-91H142ZM176 -218H209V-113H176ZM214 -120H220L226 -121L247 -114Q241 -81 230 -55Q219 -28 202 -9Q185 11 164 24Q160 18 154 10Q148 2 143 -3Q162 -13 177 -29Q191 -46 201 -68Q210 -90 214 -114ZM133 -186H166V-129Q166 -112 165 -93Q164 -73 161 -52Q158 -31 153 -12Q147 8 138 24Q135 21 129 18Q124 15 118 12Q113 9 108 8Q117 -7 122 -25Q127 -42 130 -61Q132 -79 133 -97Q133 -114 133 -129ZM219 -186H224L229 -187L251 -179Q249 -166 245 -152Q241 -137 238 -127L213 -140Q215 -148 217 -160Q218 -172 219 -182ZM179 -110Q184 -86 193 -65Q203 -45 218 -29Q232 -13 253 -4Q248 1 241 9Q235 18 231 24Q208 13 192 -6Q176 -25 166 -50Q156 -75 150 -105ZM83 -198 106 -215Q113 -208 121 -199Q129 -189 134 -183L109 -164Q105 -171 97 -181Q90 -190 83 -198ZM80 -125 104 -143Q109 -139 114 -133Q120 -127 125 -122Q131 -117 134 -113L109 -92Q106 -97 101 -102Q96 -108 91 -114Q85 -120 80 -125ZM73 6Q77 -4 81 -17Q85 -30 89 -45Q93 -60 97 -75L124 -61Q122 -47 118 -33Q115 -19 111 -6Q108 7 104 19ZM36 -196H86V-28H36V-58H54V-167H36ZM14 -196H46V-8H14Z\"],\n    \"唰\": [256, \"M181 -195H208V-30H181ZM214 -216H243V-11Q243 0 241 6Q239 13 232 16Q226 20 216 21Q206 22 193 22Q192 16 189 8Q187 -1 184 -7Q192 -7 199 -7Q207 -6 209 -6Q212 -7 213 -8Q214 -9 214 -12ZM29 -200H74V-33H29V-66H47V-167H29ZM14 -200H40V-16H14ZM102 -111H167V-83H123V0H102ZM156 -111H178V-27Q178 -20 177 -14Q176 -8 172 -5Q168 -1 164 0Q161 1 155 1Q155 -5 153 -12Q151 -20 148 -26Q151 -26 152 -26Q154 -26 155 -26Q156 -26 156 -28ZM79 -209H109V-134Q109 -117 108 -97Q107 -77 104 -57Q101 -36 95 -16Q89 3 79 19Q76 17 71 14Q67 11 61 8Q56 5 52 4Q62 -11 67 -29Q73 -46 75 -65Q78 -83 79 -101Q79 -119 79 -134ZM100 -209H177V-140H100V-168H146V-181H100ZM126 -134H153V-90H151V25H129V-90H126Z\"],\n    \"轟\": [256, \"M13 -95H123V-76H13ZM6 -10H122V10H6ZM26 -208H232V-189H26ZM13 -125H244V-107H13ZM76 -150V-145H184V-150ZM76 -169V-164H184V-169ZM40 -184H221V-130H40ZM43 -37V-31H92V-37ZM43 -56V-51H92V-56ZM16 -71H119V-16H16ZM110 -219H145V-98H110ZM52 -102H82V24H52ZM130 -95H243V-76H130ZM129 -10H250V10H129ZM161 -37V-31H210V-37ZM161 -56V-51H210V-56ZM135 -71H237V-16H135ZM170 -102H200V24H170Z\"],\n    \"!\": [102, \"M36 -69 29 -156 28 -196H74L72 -156L66 -69ZM51 4Q39 4 31 -5Q24 -13 24 -25Q24 -37 31 -45Q39 -53 51 -53Q63 -53 70 -45Q78 -37 78 -25Q78 -13 70 -5Q63 4 51 4Z\"],\n  },\n  sc: {\n    \"砰\": [256, \"M109 -207H241V-174H109ZM104 -93H249V-58H104ZM155 -198H192V24H155ZM210 -166 245 -159Q242 -149 239 -138Q236 -127 232 -118Q229 -108 226 -101L198 -108Q201 -116 203 -126Q206 -136 207 -147Q209 -157 210 -166ZM107 -158 136 -165Q139 -156 142 -146Q144 -135 146 -125Q148 -116 149 -108L118 -100Q118 -108 116 -118Q114 -128 112 -138Q110 -149 107 -158ZM10 -209H100V-175H10ZM41 -129H98V-6H41V-39H67V-96H41ZM38 -191 71 -184Q66 -159 59 -135Q51 -110 41 -88Q30 -67 16 -51Q16 -56 14 -64Q12 -73 9 -82Q7 -91 4 -96Q17 -113 25 -138Q33 -164 38 -191ZM25 -129H55V12H25Z\"],\n    \"咔\": [256, \"M101 -127H249V-91H101ZM146 -218H184V24H146ZM166 -185H236V-151H166ZM175 -54 199 -77Q207 -71 215 -63Q224 -56 233 -48Q241 -41 247 -36L221 -9Q216 -15 208 -23Q200 -31 191 -39Q183 -47 175 -54ZM34 -197H97V-41H34V-77H63V-162H34ZM15 -197H48V-20H15Z\"],\n    \"咻\": [256, \"M140 -165H246V-133H140ZM176 -218H208V24H176ZM118 -219 150 -211Q144 -188 135 -166Q126 -143 116 -122Q105 -102 92 -87Q91 -91 87 -98Q84 -104 80 -110Q77 -117 73 -121Q88 -138 100 -165Q111 -191 118 -219ZM210 -145Q214 -131 218 -116Q222 -101 228 -87Q233 -73 239 -61Q246 -49 253 -40Q247 -36 240 -29Q233 -22 229 -16Q221 -30 213 -50Q206 -71 201 -94Q195 -118 192 -141ZM173 -145 193 -141Q189 -117 183 -93Q176 -69 168 -48Q160 -27 150 -12Q146 -18 139 -25Q132 -32 127 -36Q135 -46 142 -58Q148 -70 154 -85Q160 -99 165 -115Q169 -130 173 -145ZM102 -148 130 -176 133 -175V24H102ZM33 -198H86V-42H33V-76H56V-164H33ZM15 -198H46V-20H15Z\"],\n    \"啵\": [256, \"M147 -186H229V-155H147ZM142 -120H226V-91H142ZM176 -218H209V-113H176ZM214 -120H220L226 -121L247 -114Q241 -81 230 -55Q219 -28 202 -9Q185 11 164 24Q160 18 154 10Q148 2 143 -3Q162 -13 177 -29Q191 -46 201 -68Q210 -90 214 -114ZM133 -186H166V-129Q166 -112 165 -93Q164 -73 161 -52Q158 -31 153 -12Q147 8 138 24Q135 21 129 18Q124 15 118 12Q113 9 108 8Q117 -7 122 -25Q127 -42 130 -61Q132 -79 133 -97Q133 -114 133 -129ZM219 -186H224L229 -187L251 -179Q249 -166 245 -152Q241 -137 238 -127L213 -140Q215 -148 217 -160Q218 -172 219 -182ZM179 -110Q184 -86 193 -65Q203 -45 218 -29Q232 -13 253 -4Q248 1 241 9Q235 18 231 24Q208 13 192 -6Q176 -25 166 -50Q156 -75 150 -105ZM83 -198 106 -215Q113 -208 121 -199Q129 -189 134 -183L109 -164Q105 -171 97 -181Q90 -190 83 -198ZM80 -125 104 -143Q109 -139 114 -133Q120 -127 125 -122Q131 -117 134 -113L109 -92Q106 -97 101 -102Q96 -108 91 -114Q85 -120 80 -125ZM73 6Q77 -4 81 -17Q85 -30 89 -45Q93 -60 97 -75L124 -61Q122 -47 118 -33Q115 -19 111 -6Q108 7 104 19ZM36 -196H86V-28H36V-58H54V-167H36ZM14 -196H46V-8H14Z\"],\n    \"唰\": [256, \"M181 -195H208V-30H181ZM214 -216H243V-11Q243 0 241 6Q239 13 232 16Q226 20 216 21Q206 22 193 22Q192 16 189 8Q187 -1 184 -7Q192 -7 199 -7Q207 -6 209 -6Q212 -7 213 -8Q214 -9 214 -12ZM29 -200H74V-33H29V-66H47V-167H29ZM14 -200H40V-16H14ZM102 -111H167V-83H123V0H102ZM156 -111H178V-27Q178 -20 177 -14Q176 -8 172 -5Q168 -1 164 0Q161 1 155 1Q155 -5 153 -12Q151 -20 148 -26Q151 -26 152 -26Q154 -26 155 -26Q156 -26 156 -28ZM79 -209H109V-134Q109 -117 108 -97Q107 -77 104 -57Q101 -36 95 -16Q89 3 79 19Q76 17 71 14Q67 11 61 8Q56 5 52 4Q62 -11 67 -29Q73 -46 75 -65Q78 -83 79 -101Q79 -119 79 -134ZM100 -209H177V-140H100V-168H146V-181H100ZM126 -134H153V-90H151V25H129V-90H126Z\"],\n    \"轰\": [256, \"M17 -81H102V-50H17ZM93 -81H100L106 -82L129 -73Q120 -46 105 -27Q90 -7 69 5Q48 18 22 26Q19 20 13 11Q8 3 3 -2Q25 -7 43 -18Q61 -28 74 -42Q87 -57 93 -76ZM18 -32 35 -58Q44 -53 55 -47Q66 -41 77 -35Q88 -29 98 -24Q108 -18 114 -13L96 17Q90 12 81 5Q71 -1 60 -8Q49 -14 38 -21Q27 -27 18 -32ZM129 -81H215V-50H129ZM207 -81H215L220 -82L243 -75Q234 -45 218 -25Q201 -5 177 8Q153 20 122 26Q120 22 118 15Q115 9 111 3Q108 -3 105 -7Q132 -11 153 -20Q174 -28 188 -43Q201 -57 207 -77ZM159 -52Q170 -32 194 -22Q218 -11 254 -8Q248 -3 242 6Q237 15 233 23Q195 17 170 0Q146 -17 132 -47ZM15 -205H241V-177H15ZM119 -173H156V-84H119ZM46 -130Q45 -134 43 -140Q41 -146 39 -153Q37 -160 35 -165Q39 -166 44 -169Q48 -171 53 -175Q57 -178 64 -185Q71 -192 80 -202Q88 -211 95 -222L136 -211Q126 -198 114 -187Q103 -175 91 -165Q79 -155 68 -147V-147Q68 -147 64 -145Q61 -143 57 -141Q53 -138 50 -135Q46 -132 46 -130ZM46 -130V-154L63 -164H220L220 -134H76Q65 -134 57 -133Q48 -132 46 -130ZM15 -126H243V-98H15Z\"],\n    \"!\": [102, \"M36 -69 29 -156 28 -196H74L72 -156L66 -69ZM51 4Q39 4 31 -5Q24 -13 24 -25Q24 -37 31 -45Q39 -53 51 -53Q63 -53 70 -45Q78 -37 78 -25Q78 -13 70 -5Q63 4 51 4Z\"],\n  },\n};\n"}]}