diff --git a/apps/web/api/_card.ts b/apps/web/api/_card.ts new file mode 100644 index 0000000..096f78d --- /dev/null +++ b/apps/web/api/_card.ts @@ -0,0 +1,260 @@ +export interface Stat { + value: string + label: string +} + +export interface Card { + eyebrow: string + title: string + accent: string | null + subtitle: string | null + stats: Stat[] + avatar: string | null + meter: { lit: number; caption: string } | null + title_for_page: string +} + +const compact = new Intl.NumberFormat('en', { maximumFractionDigits: 0 }) +const day = new Intl.DateTimeFormat('en', { month: 'short', day: 'numeric', timeZone: 'UTC' }) +const dayYear = new Intl.DateTimeFormat('en', { + month: 'short', + day: 'numeric', + year: 'numeric', + timeZone: 'UTC', +}) + +const TIER = { verified: 'Verified on-chain', likely: 'Code only', possible: 'Possible' } as const +const AWARD = { first: '1st place', 'runner-up': 'Runner-up' } as const + +interface Hackathon { + slug: string + name: string + summary: string | null + location: string | null + starts_at: string + ends_at: string + indexed: boolean + projects: number + verified_projects: number + contracts: number + winners: number +} + +async function get(api: string, path: string): Promise { + try { + const response = await fetch(`${api}/api${path}`) + return response.ok ? ((await response.json()) as T) : null + } catch { + return null + } +} + +export function splitYear(name: string) { + const found = /^(.*?)\s*(\d{4})$/.exec(name) + return found ? { title: found[1], year: found[2] } : { title: name, year: null } +} + +const plural = (count: number, word: string) => (count === 1 ? word : `${word}s`) + +function range(start: string, end: string) { + const [a, b] = [new Date(start), new Date(end)] + if (a.toDateString() === b.toDateString()) return dayYear.format(a) + const sameYear = a.getUTCFullYear() === b.getUTCFullYear() + return `${sameYear ? day.format(a) : dayYear.format(a)} to ${dayYear.format(b)}` +} + +function clip(text: string | null, length: number) { + if (!text) return null + const sentence = /^.+?[.!?](?=\s|$)/.exec(text)?.[0] + if (sentence && sentence.length <= length) return sentence + return text.length > length ? `${text.slice(0, length - 1).trimEnd()}…` : text +} + +const LANDING: Card = { + eyebrow: 'HackProof', + title: 'Stellar hackathons,', + accent: 'checked on-chain.', + subtitle: 'Every project matched to the contracts, accounts and commits behind it.', + stats: [], + avatar: null, + meter: null, + title_for_page: 'HackProof: Stellar hackathons, checked on-chain', +} + +async function landing(api: string): Promise { + const all = (await get(api, '/hackathons')) ?? [] + const indexed = all.filter((item) => item.indexed) + const total = (key: 'projects' | 'verified_projects' | 'contracts') => + indexed.reduce((count, item) => count + item[key], 0) + const sum = (key: 'projects' | 'verified_projects' | 'contracts') => compact.format(total(key)) + if (all.length === 0) return LANDING + return { + ...LANDING, + meter: { + lit: total('projects') ? total('verified_projects') / total('projects') : 0, + caption: `${sum('verified_projects')} of ${sum('projects')} projects verified on-chain`, + }, + stats: [ + { value: compact.format(all.length), label: 'hackathons' }, + { value: sum('projects'), label: 'projects checked' }, + { value: sum('verified_projects'), label: 'verified on-chain' }, + { value: sum('contracts'), label: 'contracts linked' }, + ], + } +} + +async function hackathon(api: string, id: string, page: string): Promise { + const found = ((await get(api, '/hackathons')) ?? []).find( + (item) => item.slug === id, + ) + if (!found) return landing(api) + const { title, year } = splitYear(found.name) + const wrapped = page === 'wrapped' + return { + eyebrow: [range(found.starts_at, found.ends_at), found.location].filter(Boolean).join(' · '), + title: wrapped ? `${found.name}` : title, + accent: wrapped ? 'Wrapped' : year, + subtitle: clip(found.summary, 110), + stats: found.indexed + ? [ + { value: compact.format(found.projects), label: 'projects' }, + { value: compact.format(found.verified_projects), label: 'verified on-chain' }, + { value: compact.format(found.contracts), label: 'linked contracts' }, + ...(found.winners ? [{ value: compact.format(found.winners), label: 'winners' }] : []), + ] + : [], + avatar: null, + meter: found.indexed + ? { + lit: found.projects ? found.verified_projects / found.projects : 0, + caption: `${compact.format(found.verified_projects)} of ${compact.format(found.projects)} projects verified on-chain`, + } + : null, + title_for_page: `${found.name}${wrapped ? ' Wrapped' : ''} on HackProof`, + } +} + +interface ProjectDetail { + project: { + project_id: string + hackathon: string + tier: keyof typeof TIER + contracts: number + builders: number + award: keyof typeof AWARD | null + description: string | null + owner_avatar: string | null + language: string | null + } +} + +async function project(api: string, id: string, projectId: string): Promise { + const [detail, all] = await Promise.all([ + get(api, `/projects/${projectId}?hackathon=${encodeURIComponent(id)}`), + get(api, '/hackathons'), + ]) + if (!detail) return hackathon(api, id, '') + const item = detail.project + const name = projectId.replace(/^repo:/, '') + const event = all?.find((entry) => entry.slug === id)?.name ?? id + return { + eyebrow: [event, item.award ? AWARD[item.award] : null].filter(Boolean).join(' · '), + title: name, + accent: null, + subtitle: clip(item.description, 150), + stats: [ + { value: TIER[item.tier], label: 'evidence' }, + { value: compact.format(item.contracts), label: 'contracts' }, + ...(item.language ? [{ value: item.language, label: 'language' }] : []), + ], + avatar: item.owner_avatar, + meter: null, + title_for_page: `${name} at ${event}`, + } +} + +interface Person { + login: string + avatar_url: string | null + contributions: number + projects: { project: { hackathon: string } }[] +} + +async function builder(api: string, login: string): Promise { + const person = await get(api, `/builders/${encodeURIComponent(login)}`) + if (!person) return landing(api) + const events = new Set(person.projects.map((entry) => entry.project.hackathon)).size + return { + eyebrow: 'Builder', + title: person.login, + accent: null, + subtitle: 'Everything this builder shipped at Stellar hackathons, across every event.', + stats: [ + { + value: compact.format(person.projects.length), + label: plural(person.projects.length, 'project'), + }, + { value: compact.format(events), label: events === 1 ? 'hackathon' : 'hackathons' }, + { + value: compact.format(person.contributions), + label: plural(person.contributions, 'commit'), + }, + ], + avatar: person.avatar_url, + meter: null, + title_for_page: `${person.login} on HackProof`, + } +} + +interface Integration { + slug: string + name: string + category: string + projects: number +} + +async function integration(api: string, slug: string): Promise { + const [list, all] = await Promise.all([ + get(api, '/integrations'), + get(api, '/hackathons'), + ]) + const found = (list ?? []).find((item) => item.slug === slug) + if (!found) return landing(api) + const total = (all ?? []).reduce((count, item) => count + (item.indexed ? item.projects : 0), 0) + return { + eyebrow: `Integration · ${found.category}`, + title: found.name, + accent: null, + subtitle: 'Which hackathon projects use it, and how, checked against the chain.', + stats: [{ value: compact.format(found.projects), label: 'projects using it' }], + avatar: null, + meter: total + ? { + lit: Math.min(1, found.projects / total), + caption: `${compact.format(found.projects)} of ${compact.format(total)} projects use it`, + } + : null, + title_for_page: `${found.name} on HackProof`, + } +} + +export async function describe(api: string, path: string): Promise { + const parts = path.split('/').filter(Boolean).map(decodeURIComponent) + const [first, second, third, ...rest] = parts + if (first === 'hackathon' && second) { + if (third === 'project' && rest.length > 0) return project(api, second, rest.join('/')) + return hackathon(api, second, third ?? '') + } + if (first === 'builder' && second) return builder(api, second) + if (first === 'integration' && second) return integration(api, second) + return landing(api) +} + +export function descriptionOf(card: Card) { + return ( + card.subtitle ?? + card.stats.map((stat) => `${stat.value} ${stat.label}`).join(', ') ?? + LANDING.subtitle ?? + '' + ) +} diff --git a/apps/web/api/_fonts/InstrumentSerif-Italic.woff b/apps/web/api/_fonts/InstrumentSerif-Italic.woff new file mode 100644 index 0000000..a3a5aa5 Binary files /dev/null and b/apps/web/api/_fonts/InstrumentSerif-Italic.woff differ diff --git a/apps/web/api/_fonts/InstrumentSerif-Regular.woff b/apps/web/api/_fonts/InstrumentSerif-Regular.woff new file mode 100644 index 0000000..6a94af9 Binary files /dev/null and b/apps/web/api/_fonts/InstrumentSerif-Regular.woff differ diff --git a/apps/web/api/_fonts/Outfit-Regular.woff b/apps/web/api/_fonts/Outfit-Regular.woff new file mode 100644 index 0000000..eb2dc30 Binary files /dev/null and b/apps/web/api/_fonts/Outfit-Regular.woff differ diff --git a/apps/web/api/_fonts/Outfit-SemiBold.woff b/apps/web/api/_fonts/Outfit-SemiBold.woff new file mode 100644 index 0000000..87b8e18 Binary files /dev/null and b/apps/web/api/_fonts/Outfit-SemiBold.woff differ diff --git a/apps/web/api/_layout.ts b/apps/web/api/_layout.ts new file mode 100644 index 0000000..be17a93 --- /dev/null +++ b/apps/web/api/_layout.ts @@ -0,0 +1,214 @@ +import type { Card } from './_card' + +const INK = '#f6f7f8' +const MUTED = '#a1a1aa' +const BRAND = '#fdda24' +const TILE = 'rgba(255, 255, 255, 0.045)' +const LINE = 'rgba(255, 255, 255, 0.12)' +const DIM = 'rgba(255, 255, 255, 0.075)' + +const COLUMNS = 10 +const ROWS = 5 +const CELL = 34 +const GAP = 8 + +type Node = { + type: string + props: { style?: Record; children?: unknown; [key: string]: unknown } +} + +function h( + type: string, + style: Record, + children?: unknown, + extra: Record = {}, +): Node { + return { type, props: { style: { display: 'flex', ...style }, children, ...extra } } +} + +const eyebrow = (text: string, size = 17) => + h( + 'div', + { + fontFamily: 'Outfit', + fontWeight: 600, + fontSize: size, + letterSpacing: 3, + textTransform: 'uppercase', + color: MUTED, + }, + text, + ) + +function waffle(lit: number, caption: string) { + const total = COLUMNS * ROWS + const on = Math.round(lit * total) + const cells = Array.from({ length: total }, (_, index) => + h('div', { + width: CELL, + height: CELL, + borderRadius: 9, + background: index < on ? BRAND : DIM, + opacity: index < on ? 1 - (index % 7) * 0.035 : 1, + boxShadow: index < on ? '0 0 22px rgba(253, 218, 36, 0.22)' : 'none', + }), + ) + return h('div', { flexDirection: 'column', alignItems: 'flex-end', gap: 18 }, [ + h( + 'div', + { + flexWrap: 'wrap', + gap: GAP, + width: COLUMNS * CELL + (COLUMNS - 1) * GAP, + padding: 22, + borderRadius: 30, + border: `1px solid ${LINE}`, + background: TILE, + boxSizing: 'content-box', + }, + cells, + ), + h( + 'div', + { fontFamily: 'Outfit', fontSize: 21, color: MUTED, justifyContent: 'flex-end' }, + caption, + ), + ]) +} + +function portrait(avatar: string) { + return h( + 'div', + { + padding: 14, + borderRadius: 999, + border: `1px solid ${LINE}`, + background: TILE, + boxShadow: '0 0 90px rgba(253, 218, 36, 0.18)', + }, + h('img', { width: 300, height: 300, borderRadius: 999 }, undefined, { + src: avatar, + width: 300, + height: 300, + }), + ) +} + +function stats(items: Card['stats']) { + return h( + 'div', + { borderTop: `1px solid ${LINE}`, paddingTop: 24 }, + items.map((item, index) => + h( + 'div', + { + flexDirection: 'column', + gap: 8, + paddingLeft: index === 0 ? 0 : 40, + marginLeft: index === 0 ? 0 : 40, + borderLeft: index === 0 ? 'none' : `1px solid ${LINE}`, + }, + [ + h( + 'div', + { fontFamily: 'Instrument Serif', fontSize: 54, lineHeight: 1, color: BRAND }, + item.value, + ), + eyebrow(item.label, 15), + ], + ), + ), + ) +} + +function titleSize(text: string, narrow: boolean) { + const length = text.length + if (narrow) { + if (length > 30) return 58 + if (length > 22) return 68 + if (length > 14) return 80 + return 108 + } + if (length > 38) return 70 + if (length > 26) return 88 + if (length > 16) return 108 + return 128 +} + +export function layout(card: Card, avatar: string | null): Node { + const visual = avatar + ? portrait(avatar) + : card.meter + ? waffle(card.meter.lit, card.meter.caption) + : null + const size = titleSize(card.title + (card.accent ? ` ${card.accent}` : ''), visual !== null) + + return h( + 'div', + { + width: '100%', + height: '100%', + flexDirection: 'column', + justifyContent: 'space-between', + boxSizing: 'border-box', + padding: '52px 72px', + color: INK, + backgroundColor: '#0f0f0f', + backgroundImage: [ + 'radial-gradient(circle at 0% 0%, rgba(183, 172, 232, 0.22) 0%, rgba(183, 172, 232, 0) 44%)', + 'radial-gradient(circle at 100% 100%, rgba(253, 218, 36, 0.2) 0%, rgba(253, 218, 36, 0) 50%)', + ].join(', '), + }, + [ + h('div', { justifyContent: 'space-between', alignItems: 'center' }, [ + h('div', { fontFamily: 'Instrument Serif', fontSize: 46, lineHeight: 1 }, 'HackProof'), + card.eyebrow !== 'HackProof' + ? h( + 'div', + { + padding: '10px 22px', + borderRadius: 999, + border: `1px solid ${LINE}`, + background: TILE, + }, + eyebrow(card.eyebrow, 16), + ) + : null, + ]), + h('div', { alignItems: 'center', justifyContent: 'space-between', gap: 56 }, [ + h('div', { flexDirection: 'column', gap: 24, flex: 1 }, [ + h( + 'div', + { + fontFamily: 'Instrument Serif', + fontSize: size, + lineHeight: 1, + flexWrap: 'wrap', + columnGap: 20, + letterSpacing: -2, + }, + [ + h('span', {}, card.title), + card.accent ? h('span', { color: BRAND, fontStyle: 'italic' }, card.accent) : null, + ], + ), + card.subtitle + ? h( + 'div', + { + fontFamily: 'Outfit', + fontSize: 27, + lineHeight: 1.4, + color: MUTED, + maxWidth: 700, + }, + card.subtitle, + ) + : null, + ]), + visual, + ]), + card.stats.length > 0 ? stats(card.stats) : h('div', {}, null), + ], + ) +} diff --git a/apps/web/api/_render.ts b/apps/web/api/_render.ts new file mode 100644 index 0000000..6a13df3 --- /dev/null +++ b/apps/web/api/_render.ts @@ -0,0 +1,52 @@ +import { readFileSync } from 'node:fs' + +import { Resvg } from '@resvg/resvg-js' +import satori from 'satori' + +import type { Card } from './_card' +import { layout } from './_layout' + +export const SIZE = { width: 1200, height: 630 } + +const font = (name: string) => readFileSync(new URL(`./_fonts/${name}.woff`, import.meta.url)) + +async function image(url: string | null) { + if (!url) return null + try { + const response = await fetch(url) + if (!response.ok) return null + const type = response.headers.get('content-type') ?? 'image/png' + return `data:${type};base64,${Buffer.from(await response.arrayBuffer()).toString('base64')}` + } catch { + return null + } +} + +export async function render(card: Card) { + const svg = await satori(layout(card, await image(card.avatar)) as never, { + ...SIZE, + fonts: [ + { + name: 'Instrument Serif', + data: font('InstrumentSerif-Regular'), + weight: 400, + style: 'normal', + }, + { + name: 'Instrument Serif', + data: font('InstrumentSerif-Italic'), + weight: 400, + style: 'italic', + }, + { name: 'Outfit', data: font('Outfit-Regular'), weight: 400, style: 'normal' }, + { name: 'Outfit', data: font('Outfit-SemiBold'), weight: 600, style: 'normal' }, + ], + }) + const png = new Resvg(svg, { fitTo: { mode: 'width', value: SIZE.width } }).render().asPng() + return new Response(new Uint8Array(png), { + headers: { + 'content-type': 'image/png', + 'cache-control': 'public, max-age=0, s-maxage=3600, stale-while-revalidate=86400', + }, + }) +} diff --git a/apps/web/api/meta.ts b/apps/web/api/meta.ts new file mode 100644 index 0000000..2a94a6c --- /dev/null +++ b/apps/web/api/meta.ts @@ -0,0 +1,45 @@ +import { describe, descriptionOf } from './_card' + +const escape = (value: string) => + value.replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"') + +export async function GET(request: Request) { + const url = new URL(request.url) + const path = url.searchParams.get('path') ?? '/' + const api = (process.env.VITE_API_URL ?? process.env.API_URL ?? '').replace(/\/$/, '') + const card = await describe(api, path) + const origin = url.origin + const page = `${origin}${path}` + const image = `${origin}/api/og?path=${encodeURIComponent(path)}` + const title = escape(card.title_for_page) + const description = escape(descriptionOf(card)) + + const html = ` + + + + ${title} + + + + + + + + + + + + + + + + ${title} +` + return new Response(html, { + headers: { + 'content-type': 'text/html; charset=utf-8', + 'cache-control': 'public, max-age=0, s-maxage=3600, stale-while-revalidate=86400', + }, + }) +} diff --git a/apps/web/api/og.ts b/apps/web/api/og.ts new file mode 100644 index 0000000..101189e --- /dev/null +++ b/apps/web/api/og.ts @@ -0,0 +1,8 @@ +import { describe } from './_card' +import { render } from './_render' + +export async function GET(request: Request) { + const url = new URL(request.url) + const api = (process.env.VITE_API_URL ?? process.env.API_URL ?? '').replace(/\/$/, '') + return render(await describe(api, url.searchParams.get('path') ?? '/')) +} diff --git a/apps/web/api/tsconfig.json b/apps/web/api/tsconfig.json new file mode 100644 index 0000000..cfde49c --- /dev/null +++ b/apps/web/api/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "es2023", + "lib": ["ES2023", "DOM"], + "module": "esnext", + "moduleResolution": "bundler", + "types": ["node"], + "strict": true, + "skipLibCheck": true, + "verbatimModuleSyntax": true, + "noEmit": true + }, + "include": ["./*.ts"] +} diff --git a/apps/web/index.html b/apps/web/index.html index 7ce23e7..2ff626f 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -3,7 +3,15 @@ - hackproof + HackProof: Stellar hackathons, checked on-chain + + + + + = 10'} + cpu: [arm] + os: [android] + + '@resvg/resvg-js-android-arm64@2.6.2': + resolution: {integrity: sha512-VcOKezEhm2VqzXpcIJoITuvUS/fcjIw5NA/w3tjzWyzmvoCdd+QXIqy3FBGulWdClvp4g+IfUemigrkLThSjAQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [android] + + '@resvg/resvg-js-darwin-arm64@2.6.2': + resolution: {integrity: sha512-nmok2LnAd6nLUKI16aEB9ydMC6Lidiiq2m1nEBDR1LaaP7FGs4AJ90qDraxX+CWlVuRlvNjyYJTNv8qFjtL9+A==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@resvg/resvg-js-darwin-x64@2.6.2': + resolution: {integrity: sha512-GInyZLjgWDfsVT6+SHxQVRwNzV0AuA1uqGsOAW+0th56J7Nh6bHHKXHBWzUrihxMetcFDmQMAX1tZ1fZDYSRsw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@resvg/resvg-js-linux-arm-gnueabihf@2.6.2': + resolution: {integrity: sha512-YIV3u/R9zJbpqTTNwTZM5/ocWetDKGsro0SWp70eGEM9eV2MerWyBRZnQIgzU3YBnSBQ1RcxRZvY/UxwESfZIw==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + + '@resvg/resvg-js-linux-arm64-gnu@2.6.2': + resolution: {integrity: sha512-zc2BlJSim7YR4FZDQ8OUoJg5holYzdiYMeobb9pJuGDidGL9KZUv7SbiD4E8oZogtYY42UZEap7dqkkYuA91pg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@resvg/resvg-js-linux-arm64-musl@2.6.2': + resolution: {integrity: sha512-3h3dLPWNgSsD4lQBJPb4f+kvdOSJHa5PjTYVsWHxLUzH4IFTJUAnmuWpw4KqyQ3NA5QCyhw4TWgxk3jRkQxEKg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@resvg/resvg-js-linux-x64-gnu@2.6.2': + resolution: {integrity: sha512-IVUe+ckIerA7xMZ50duAZzwf1U7khQe2E0QpUxu5MBJNao5RqC0zwV/Zm965vw6D3gGFUl7j4m+oJjubBVoftw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@resvg/resvg-js-linux-x64-musl@2.6.2': + resolution: {integrity: sha512-UOf83vqTzoYQO9SZ0fPl2ZIFtNIz/Rr/y+7X8XRX1ZnBYsQ/tTb+cj9TE+KHOdmlTFBxhYzVkP2lRByCzqi4jQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@resvg/resvg-js-win32-arm64-msvc@2.6.2': + resolution: {integrity: sha512-7C/RSgCa+7vqZ7qAbItfiaAWhyRSoD4l4BQAbVDqRRsRgY+S+hgS3in0Rxr7IorKUpGE69X48q6/nOAuTJQxeQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@resvg/resvg-js-win32-ia32-msvc@2.6.2': + resolution: {integrity: sha512-har4aPAlvjnLcil40AC77YDIk6loMawuJwFINEM7n0pZviwMkMvjb2W5ZirsNOZY4aDbo5tLx0wNMREp5Brk+w==} + engines: {node: '>= 10'} + cpu: [ia32] + os: [win32] + + '@resvg/resvg-js-win32-x64-msvc@2.6.2': + resolution: {integrity: sha512-ZXtYhtUr5SSaBrUDq7DiyjOFJqBVL/dOBN7N/qmi/pO0IgiWW/f/ue3nbvu9joWE5aAKDoIzy/CxsY0suwGosQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@resvg/resvg-js@2.6.2': + resolution: {integrity: sha512-xBaJish5OeGmniDj9cW5PRa/PtmuVU3ziqrbr5xJj901ZDN4TosrVaNZpEiLZAxdfnhAe7uQ7QFWfjPe9d9K2Q==} + engines: {node: '>= 10'} + '@rolldown/binding-android-arm-eabi@1.2.15': resolution: {integrity: sha512-aLcgK9gIJ3YRvrrtfSBbRa27F5WrpiTaPulnFpsHPxpUHgFlSgnU4854MHwoRGEBhfRJDWCS2WQ7lIjskE9Olw==} engines: {node: ^20.19.0 || >=22.12.0} @@ -633,6 +719,11 @@ packages: resolution: {integrity: sha512-m3TeqU/+av2kgOLfESHkWzsmhuQuY4NXZd5Y1Rd4lzy4IX3JJ5+k2mYfkq6OT8oMuk2W4GQPAkO7+CC7KlpSbw==} engines: {node: '>=20.18.1'} + '@shuding/opentype.js@1.4.0-beta.0': + resolution: {integrity: sha512-3NgmNyH3l/Hv6EvsWJbsvpcpUba6R8IREQ83nH83cyakCw7uM1arZKNfHwv1Wz6jgqrF/j4x5ELvR6PnK9nTcA==} + engines: {node: '>= 8.0.0'} + hasBin: true + '@sindresorhus/merge-streams@4.0.0': resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==} engines: {node: '>=18'} @@ -947,6 +1038,10 @@ packages: resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} engines: {node: 18 || 20 || >=22} + base64-js@0.0.8: + resolution: {integrity: sha512-3XSA2cR/h/73EzlXXdU6YNycmYI7+kicTxks4eJg2g39biHR84slg2+des+p7iHYhbRg/udIS4TD53WabcOUkw==} + engines: {node: '>= 0.4'} + baseline-browser-mapping@2.11.33: resolution: {integrity: sha512-yiVKDX+qCMRKBE084lXvq9EcwFUhKZ2nU8TK1EQQuOgPNR/lmbGxXOeDdlGUqC2Zz11Cs9rk1d/8NfgBmlkt0w==} engines: {node: '>=6.0.0'} @@ -988,6 +1083,9 @@ packages: resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} engines: {node: '>= 0.4'} + camelize@1.0.1: + resolution: {integrity: sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==} + caniuse-lite@1.0.30001819: resolution: {integrity: sha512-LFUqIIAwpzsIuevnKnsR9qnStBcgzPShTX61lBwN9uFkkf8o8zLiebEjbW8AYtZiF+1YKDWfdt/pWDtMuG8Xwg==} @@ -1041,6 +1139,9 @@ packages: code-block-writer@13.0.3: resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==} + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + colorette@1.4.0: resolution: {integrity: sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==} @@ -1096,6 +1197,23 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} + css-background-parser@0.1.0: + resolution: {integrity: sha512-2EZLisiZQ+7m4wwur/qiYJRniHX4K5Tc9w93MT3AS0WS1u5kaZ4FKXlOTBhOjc+CgEgPiGY+fX1yWD8UwpEqUA==} + + css-box-shadow@1.0.0-3: + resolution: {integrity: sha512-9jaqR6e7Ohds+aWwmhe6wILJ99xYQbfmK9QQB9CcMjDbTxPZjwEmUQpU91OG05Xgm8BahT5fW+svbsQGjS/zPg==} + + css-color-keywords@1.0.0: + resolution: {integrity: sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==} + engines: {node: '>=4'} + + css-gradient-parser@0.0.17: + resolution: {integrity: sha512-w2Xy9UMMwlKtou0vlRnXvWglPAceXCTtcmVSo8ZBUvqCV5aXEFP/PC6d+I464810I9FT++UACwTD5511bmGPUg==} + engines: {node: '>=16'} + + css-to-react-native@3.2.0: + resolution: {integrity: sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==} + cssesc@3.0.0: resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} engines: {node: '>=4'} @@ -1235,6 +1353,10 @@ packages: electron-to-chromium@1.5.464: resolution: {integrity: sha512-nRa65aFge40viPAKxMKULIY8tcXKwKboJWNn4RoKwyWXJ6SP7BnrDGKUTzc64818jIciH0PK7LSF8QzZes19GA==} + emoji-regex-xs@2.0.1: + resolution: {integrity: sha512-1QFuh8l7LqUcKe24LsPUNzjrzJQ7pgRwp1QMcZ5MX6mFplk2zQ08NVCM84++1cveaUUYtcCYHmeFEuNg16sU4g==} + engines: {node: '>=10.0.0'} + emoji-regex@10.6.0: resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==} @@ -1353,6 +1475,9 @@ packages: fflate@0.4.9: resolution: {integrity: sha512-zdxgIEddhfsyCaWpJ2SdXEP8ZMrKJ6+5jl4OupODcywU0IhRk6gdXuVGcPICyfx2H97hVK7xmJtRLPjkxAX8Vw==} + fflate@0.7.3: + resolution: {integrity: sha512-0Zz1jOzJWERhyhsimS54VTqOteCNwRtIlh8isdL0AXLo0g7xNTfTL7oWrkmCnPhZGocKIkWHBistBrrpoNH3aw==} + figures@6.1.0: resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==} engines: {node: '>=18'} @@ -1442,6 +1567,9 @@ packages: graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + harfbuzzjs@0.10.0: + resolution: {integrity: sha512-SN8LVwCOzvTq3OPNd0+EAghgXugItz56wst567D1vs7LnnKGWprhi3EG58aVOBwhN8HEbQxL4I9NDWkcXUutRw==} + has-symbols@1.1.0: resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} engines: {node: '>= 0.4'} @@ -1474,6 +1602,10 @@ packages: hastscript@9.0.1: resolution: {integrity: sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==} + hex-rgb@4.3.0: + resolution: {integrity: sha512-Ox1pJVrDCyGHMG9CFg1tmrRUMRPRsAWYc/PinY0XzJU4K7y7vjNoLKIQ7BR5UJMCxNN8EM1MNDmHWA/B3aZUuw==} + engines: {node: '>=6'} + hono@4.13.14: resolution: {integrity: sha512-yhRLQ21U6qa9Hsu2N7Qcbh8tE+WKEcoErjIo56LeSGiGXGp9sA7UpE86Ui9uexb61KakiGwuHMn2QdV7w6i6kQ==} engines: {node: '>=16.9.0'} @@ -1832,6 +1964,9 @@ packages: resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} engines: {node: '>= 12.0.0'} + linebreak@1.1.0: + resolution: {integrity: sha512-MHp03UImeVhB7XZtjd0E4n6+3xr5Dq/9xI/5FptGk5FrbDR3zagPa2DS6U8ks/3HjbKWG9Q1M2ufOzxV2qLYSQ==} + locate-path@3.0.0: resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==} engines: {node: '>=6'} @@ -2172,6 +2307,12 @@ packages: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} + pako@0.2.9: + resolution: {integrity: sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==} + + parse-css-color@0.2.1: + resolution: {integrity: sha512-bwS/GGIFV3b6KS4uwpzCFj4w297Yl3uqnSgIPsoQkx7GMLROXfMnWvxfNkL0oh8HVhZA4hvJoEoEIqonfJ3BWg==} + parse-entities@4.0.2: resolution: {integrity: sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==} @@ -2235,6 +2376,9 @@ packages: resolution: {integrity: sha512-wWBro/7hJ40ye6TPiXkUQoXKCw23xSsjriUvqd7Uls9Sso3oLiON1flc18cCdnjgCRXw4fBVqUJJeOdDTh3P3g==} engines: {node: '>=4'} + postcss-value-parser@4.2.0: + resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} + postcss@8.5.31: resolution: {integrity: sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==} engines: {node: ^10 || ^12 || >=14} @@ -2431,6 +2575,10 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + satori@0.63.2: + resolution: {integrity: sha512-h7dm4BRMo8F53l9vOXOIfJoqeVXuZvyz13VsvVuwJb72sLfq+8uddJIJcjLKLv2BqWzDvYIpzi3rvBBS+ETuvw==} + engines: {node: '>=16'} + scheduler@0.28.0: resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==} @@ -2530,6 +2678,9 @@ packages: resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} engines: {node: '>=18'} + string.prototype.codepointat@0.2.1: + resolution: {integrity: sha512-2cBVCj6I4IOvEnjgO/hWqXjqBGsY+zwPmHl12Srk9IXSZ56Jwwmy+66XO5Iut/oQVR7t5ihYdLB0GMa4alEUcg==} + stringify-entities@4.0.4: resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==} @@ -2598,6 +2749,9 @@ packages: resolution: {integrity: sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==} engines: {node: '>=18'} + tiny-inflate@1.0.3: + resolution: {integrity: sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==} + tiny-invariant@1.3.3: resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} @@ -2652,6 +2806,9 @@ packages: resolution: {integrity: sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==} engines: {node: '>=20.18.1'} + unicode-trie@2.0.0: + resolution: {integrity: sha512-x7bc76x0bm4prf1VLg79uhAzKw8DVboClSN5VxJuQ+LKDOVEW9CdH+VY7SP+vX7xCYQqzzgQpFqz15zeLvAtZQ==} + unicorn-magic@0.3.0: resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==} engines: {node: '>=18'} @@ -3280,6 +3437,57 @@ snapshots: '@remix-run/route-pattern@0.22.1': {} + '@resvg/resvg-js-android-arm-eabi@2.6.2': + optional: true + + '@resvg/resvg-js-android-arm64@2.6.2': + optional: true + + '@resvg/resvg-js-darwin-arm64@2.6.2': + optional: true + + '@resvg/resvg-js-darwin-x64@2.6.2': + optional: true + + '@resvg/resvg-js-linux-arm-gnueabihf@2.6.2': + optional: true + + '@resvg/resvg-js-linux-arm64-gnu@2.6.2': + optional: true + + '@resvg/resvg-js-linux-arm64-musl@2.6.2': + optional: true + + '@resvg/resvg-js-linux-x64-gnu@2.6.2': + optional: true + + '@resvg/resvg-js-linux-x64-musl@2.6.2': + optional: true + + '@resvg/resvg-js-win32-arm64-msvc@2.6.2': + optional: true + + '@resvg/resvg-js-win32-ia32-msvc@2.6.2': + optional: true + + '@resvg/resvg-js-win32-x64-msvc@2.6.2': + optional: true + + '@resvg/resvg-js@2.6.2': + optionalDependencies: + '@resvg/resvg-js-android-arm-eabi': 2.6.2 + '@resvg/resvg-js-android-arm64': 2.6.2 + '@resvg/resvg-js-darwin-arm64': 2.6.2 + '@resvg/resvg-js-darwin-x64': 2.6.2 + '@resvg/resvg-js-linux-arm-gnueabihf': 2.6.2 + '@resvg/resvg-js-linux-arm64-gnu': 2.6.2 + '@resvg/resvg-js-linux-arm64-musl': 2.6.2 + '@resvg/resvg-js-linux-x64-gnu': 2.6.2 + '@resvg/resvg-js-linux-x64-musl': 2.6.2 + '@resvg/resvg-js-win32-arm64-msvc': 2.6.2 + '@resvg/resvg-js-win32-ia32-msvc': 2.6.2 + '@resvg/resvg-js-win32-x64-msvc': 2.6.2 + '@rolldown/binding-android-arm-eabi@1.2.15': optional: true @@ -3357,6 +3565,11 @@ snapshots: transitivePeerDependencies: - supports-color + '@shuding/opentype.js@1.4.0-beta.0': + dependencies: + fflate: 0.7.3 + string.prototype.codepointat: 0.2.1 + '@sindresorhus/merge-streams@4.0.0': {} '@standard-schema/spec@1.1.0': {} @@ -3579,6 +3792,8 @@ snapshots: balanced-match@4.0.4: {} + base64-js@0.0.8: {} + baseline-browser-mapping@2.11.33: {} body-parser@2.4.0(supports-color@10.2.2): @@ -3631,6 +3846,8 @@ snapshots: call-bind-apply-helpers: 1.0.2 get-intrinsic: 1.3.0 + camelize@1.0.1: {} + caniuse-lite@1.0.30001819: {} ccount@2.0.1: {} @@ -3665,6 +3882,8 @@ snapshots: code-block-writer@13.0.3: {} + color-name@1.1.4: {} + colorette@1.4.0: {} comma-separated-tokens@2.0.3: {} @@ -3713,6 +3932,20 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + css-background-parser@0.1.0: {} + + css-box-shadow@1.0.0-3: {} + + css-color-keywords@1.0.0: {} + + css-gradient-parser@0.0.17: {} + + css-to-react-native@3.2.0: + dependencies: + camelize: 1.0.1 + css-color-keywords: 1.0.0 + postcss-value-parser: 4.2.0 + cssesc@3.0.0: {} csstype@3.2.3: {} @@ -3818,6 +4051,8 @@ snapshots: electron-to-chromium@1.5.464: {} + emoji-regex-xs@2.0.1: {} + emoji-regex@10.6.0: {} encodeurl@2.0.0: {} @@ -3958,6 +4193,8 @@ snapshots: fflate@0.4.9: {} + fflate@0.7.3: {} + figures@6.1.0: dependencies: is-unicode-supported: 2.1.0 @@ -4046,6 +4283,8 @@ snapshots: graceful-fs@4.2.11: {} + harfbuzzjs@0.10.0: {} + has-symbols@1.1.0: {} hasown@2.0.4: @@ -4131,6 +4370,8 @@ snapshots: property-information: 7.2.0 space-separated-tokens: 2.0.2 + hex-rgb@4.3.0: {} + hono@4.13.14: {} html-url-attributes@3.0.1: {} @@ -4371,6 +4612,11 @@ snapshots: lightningcss-win32-arm64-msvc: 1.33.0 lightningcss-win32-x64-msvc: 1.33.0 + linebreak@1.1.0: + dependencies: + base64-js: 0.0.8 + unicode-trie: 2.0.0 + locate-path@3.0.0: dependencies: p-locate: 3.0.0 @@ -4921,6 +5167,13 @@ snapshots: p-try@2.2.0: {} + pako@0.2.9: {} + + parse-css-color@0.2.1: + dependencies: + color-name: 1.1.4 + hex-rgb: 4.3.0 + parse-entities@4.0.2: dependencies: '@types/unist': 2.0.11 @@ -4974,6 +5227,8 @@ snapshots: cssesc: 3.0.0 util-deprecate: 1.0.2 + postcss-value-parser@4.2.0: {} + postcss@8.5.31: dependencies: nanoid: 3.3.20 @@ -5213,6 +5468,21 @@ snapshots: safer-buffer@2.1.2: {} + satori@0.63.2: + dependencies: + '@shuding/opentype.js': 1.4.0-beta.0 + css-background-parser: 0.1.0 + css-box-shadow: 1.0.0-3 + css-gradient-parser: 0.0.17 + css-to-react-native: 3.2.0 + emoji-regex-xs: 2.0.1 + escape-html: 1.0.3 + fflate: 0.7.3 + harfbuzzjs: 0.10.0 + linebreak: 1.1.0 + parse-css-color: 0.2.1 + postcss-value-parser: 4.2.0 + scheduler@0.28.0: {} semver@6.3.1: {} @@ -5370,6 +5640,8 @@ snapshots: get-east-asian-width: 1.7.0 strip-ansi: 7.2.0 + string.prototype.codepointat@0.2.1: {} + stringify-entities@4.0.4: dependencies: character-entities-html4: 2.1.0 @@ -5428,6 +5700,8 @@ snapshots: throttleit@2.1.0: {} + tiny-inflate@1.0.3: {} + tiny-invariant@1.3.3: {} tinyglobby@0.2.17: @@ -5474,6 +5748,11 @@ snapshots: undici@7.30.1: {} + unicode-trie@2.0.0: + dependencies: + pako: 0.2.9 + tiny-inflate: 1.0.3 + unicorn-magic@0.3.0: {} unified@11.0.5: