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,CAAC,IACnCA,EAAI,IAAY,GAAG,KAAK,MAAMA,EAAI,EAAE,CAAC,KAClC,GAAG,KAAK,MAAMA,EAAI,GAAG,CAAC,GAC9B,CAGO,MAAMC,EAAcC,GAAsCA,IAAS,QAAU,MAAQ,OAC/EC,EAAeD,GAAqBjB,EAAiBgB,EAAWC,CAAI,CAAC,EAAE,KAGpF,eAAsBE,EACrBC,EACAC,EACAC,EAAkB,MACM,CACxB,MAAMC,EAAI,IAAI,gBAAgB,CAAE,EAAGH,EAAU,EACzCC,GAAQE,EAAE,IAAI,SAAUF,CAAM,EAClC,MAAMG,EAAI,MAAMF,EAAE,qBAAqBC,CAAC,GAAI,CAAE,OAAQE,EAAA,EAAe,EACrE,GAAI,CAACD,EAAE,GAAI,MAAM,IAAI,MAAM,SAASA,EAAE,MAAM,EAAE,EAC9C,OAAQ,MAAMA,EAAE,KAAA,CACjB","names":["BUILTIN_PARTNERS","sanitizeVulvaParams","DEFAULT_PLAY","BUILTIN_OPPONENTS","sanitizeSculptParams","handle","s","duetWho","c","owner","shortAgo","iso","now","m","h","d","builtinFor","body","builtinName","fetchDuets","nickname","before","f","q","r","duetTimeout"],"sources":["../../../../../../src/lib/sculpt/builtin-partners.ts","../../../../../../src/lib/components/sculpt/duet/profile-duets.ts"],"sourcesContent":["// Built-in duet partners (fleet tasks/2026-11-27-sculpt-vulva-duet): no account behind them, so they\n// need nobody's consent and are always there, whoever is open for duets. One of each body: a duet is\n// one penis and one vulva sculpt, so the picker offers the one of the other body. The Muse plays with\n// the default settings (DEFAULT_PLAY: a steady player brings her to the end); Average guy is the\n// clash's average man. Shared by the server (sculpt-duet.ts) and the picker.\n\nimport { BUILTIN_OPPONENTS, sanitizeSculptParams } from './params';\nimport { DEFAULT_PLAY, sanitizeVulvaParams } from './vulva-params';\n\nexport const BUILTIN_PARTNERS = {\n\tmuse: {\n\t\tname: 'The Muse',\n\t\tbody: 'vulva' as const,\n\t\tparams: sanitizeVulvaParams({\n\t\t\touter: 1.05,\n\t\t\touterFull: 0.6,\n\t\t\tmound: 0.55,\n\t\t\tinner: 0.9,\n\t\t\tinnerOut: 0.35,\n\t\t\tinnerAsym: 0.2,\n\t\t\tinnerRuffle: 0.3,\n\t\t\tinnerShade: 0.35,\n\t\t\tclit: 1,\n\t\t\thood: 0.55,\n\t\t\topen: 0.25,\n\t\t\tanus: 0.95,\n\t\t\tanusTone: 0.4,\n\t\t\ttone: 1,\n\t\t\tgloss: 0.45,\n\t\t\tseed: 23,\n\t\t\thair: 'none',\n\t\t\thairCol: 'dark',\n\t\t\tplay: DEFAULT_PLAY\n\t\t})\n\t},\n\tavg: {\n\t\tname: BUILTIN_OPPONENTS.avg.name,\n\t\tbody: 'penis' as const,\n\t\tparams: sanitizeSculptParams(BUILTIN_OPPONENTS.avg.params)\n\t}\n};\nexport type BuiltinPartner = keyof typeof BUILTIN_PARTNERS;\n\n/** A built-in's key from untrusted input (a query string, a ticket), else null. */\nexport const builtinPartnerOf = (k: unknown): BuiltinPartner | null =>\n\ttypeof k === 'string' && Object.hasOwn(BUILTIN_PARTNERS, k) ? (k as BuiltinPartner) : null;\n","// The profile's Duets tab (fleet tasks/2026-11-27-sculpt-vulva-duet, PG6): the list's wire shape and\n// the card's words. Pure, so the server test project covers it.\nimport type { DuetCard, DuetCardSide, DuetList } from '$lib/server/sculpt-duet';\nimport { BUILTIN_PARTNERS, type BuiltinPartner } from '$lib/sculpt/builtin-partners';\nimport type { SculptBody } from '$lib/sculpt/vulva-params';\nimport { duetTimeout } from './net';\n\n/** A DuetCard as it arrives over JSON (the date is a string). */\nexport type DuetCardView = Omit<DuetCard, 'createdAt'> & { createdAt: string };\nexport type DuetListView = Omit<DuetList, 'duets'> & { duets: DuetCardView[] };\n\nconst handle = (s: DuetCardSide) => (s.kind === 'user' && s.nickname ? `@${s.nickname}` : s.name);\n\n/** \"with The Muse\" / \"with @mira\" on the owner's own rounds, \"by @bigtom\" on rounds with their sculpt. */\nexport function duetWho(c: DuetCardView, owner: string): string {\n\tconst played = c.player.nickname?.toLowerCase() === owner.toLowerCase();\n\treturn played ? `with ${handle(c.partner)}` : `by ${handle(c.player)}`;\n}\n\n/** \"now\", \"2m\", \"3h\", \"1d\", \"1w\", \"2mo\", \"1y\": the card's corner of time. */\nexport function shortAgo(iso: string, now = Date.now()): string {\n\tconst m = Math.floor((now - new Date(iso).getTime()) / 60_000);\n\tif (!Number.isFinite(m) || m < 1) return 'now';\n\tif (m < 60) return `${m}m`;\n\tconst h = Math.floor(m / 60);\n\tif (h < 24) return `${h}h`;\n\tconst d = Math.floor(h / 24);\n\tif (d < 7) return `${d}d`;\n\tif (d < 30) return `${Math.floor(d / 7)}w`;\n\tif (d < 365) return `${Math.floor(d / 30)}mo`;\n\treturn `${Math.floor(d / 365)}y`;\n}\n\n/** The built-in a body duets by default: the empty tab's \"Duet {name}\" and its Start. */\nexport const builtinFor = (body: SculptBody): BuiltinPartner => (body === 'vulva' ? 'avg' : 'muse');\nexport const builtinName = (body: SculptBody) => BUILTIN_PARTNERS[builtinFor(body)].name;\n\n/** One page of a profile's duets, `before` = the previous page's nextBefore. */\nexport async function fetchDuets(\n\tnickname: string,\n\tbefore: string | null,\n\tf: typeof fetch = fetch\n): Promise<DuetListView> {\n\tconst q = new URLSearchParams({ u: nickname });\n\tif (before) q.set('before', before);\n\tconst r = await f(`/api/sculpt/duets?${q}`, { signal: duetTimeout() });\n\tif (!r.ok) throw new Error(`duets ${r.status}`);\n\treturn (await r.json()) as DuetListView;\n}\n"],"version":3}