{"release_id":"01a247c3-a6b6-0000-74b2-4a83f2c91090","chunk_id":"01a247c3-a925-7323-8648-043a183bc04f","file":"a_OlUcts.mjs","mappings":"qTAMA,MAAMA,EAAO,CAAC,OAAQ,MAAO,OAAO,EAC9BC,EAASC,GACbF,EAA2B,SAASE,GAAK,EAAE,EAAKA,EAA8B,KAGnEC,EAAaC,GACzBA,EAAE,OAAS,OAAS,QAAQ,mBAAmBA,EAAE,QAAQ,CAAC,GAAK,OAAOA,EAAE,IAAI,GAItE,SAASC,EAAWC,EAAmC,CAC7D,GAAI,CAACA,EAAK,OAAO,KACjB,MAAMC,EAAI,IAAI,gBAAgBD,CAAG,EAC3BE,EAAMP,EAAMM,EAAE,IAAI,KAAK,CAAC,EAC9B,GAAIC,EAAK,OAAOL,EAAU,CAAE,KAAMK,EAAK,EACvC,MAAMC,EAAOF,EAAE,IAAI,MAAM,GAAG,OAAO,QAAQ,KAAM,EAAE,EACnD,OAAOE,GAAQA,EAAK,QAAU,GAAKN,EAAU,CAAE,KAAM,OAAQ,SAAUM,CAAA,CAAM,EAAI,IAClF,CAGO,SAASC,EAASC,EAA6B,CACrD,MAAMH,EAAMP,EAAMU,EAAI,aAAa,IAAI,KAAK,CAAC,EAC7C,GAAIH,EAAK,MAAO,CAAE,KAAMA,CAAA,EACxB,MAAMC,EAAOE,EAAI,aAAa,IAAI,MAAM,GAAG,OAAO,QAAQ,KAAM,EAAE,EAClE,OAAOF,GAAQA,EAAK,QAAU,GAAK,CAAE,KAAM,OAAQ,SAAUA,CAAA,EAAS,IACvE,CAUO,MAAMG,EAAYC,GAA+B,OAAOA,IAAS,SAAW,KAAO,MAAM","names":["BOTS","botOf","v","duetQuery","t","duetBackOf","raw","q","bot","nick","targetOf","url","topQuery","side"],"sources":["../../../../../../src/lib/components/sculpt/duet/duet-url.ts"],"sourcesContent":["// The duet's URLs (fleet tasks/2026-11-27-sculpt-vulva-duet): ?with=<nickname> / ?bot=muse|avg, read\n// and written. A leaf with no game in it: the sculpt editor imports it, and must not pull the duet\n// game (duet-game.ts) into its chunk through stage.ts (perf audit).\nimport type { DuetTarget } from './contract';\n\n/** The built-ins a ?bot= may name (builtin-partners.ts, listed here so this leaf imports no sculpt). */\nconst BOTS = ['muse', 'avg', 'trans'] as const;\nconst botOf = (v: string | null): (typeof BOTS)[number] | null =>\n\t(BOTS as readonly string[]).includes(v ?? '') ? (v as (typeof BOTS)[number]) : null;\n\n/** A duet's own query (/sculpt/duet?…): ?with=<nickname> or ?bot=muse|avg. */\nexport const duetQuery = (t: DuetTarget) =>\n\tt.kind === 'user' ? `with=${encodeURIComponent(t.nickname)}` : `bot=${t.kind}`;\n\n/** The editor's ?duet= (Gear shop from a duet): that duet's query, checked, else null. It only ever\n *  points back at /sculpt/duet, with one partner and nothing else. */\nexport function duetBackOf(raw: string | null): string | null {\n\tif (!raw) return null;\n\tconst q = new URLSearchParams(raw);\n\tconst bot = botOf(q.get('bot'));\n\tif (bot) return duetQuery({ kind: bot });\n\tconst nick = q.get('with')?.trim().replace(/^@/, '');\n\treturn nick && nick.length <= 40 ? duetQuery({ kind: 'user', nickname: nick }) : null;\n}\n\n/** The duet page's ?with=<nickname> or ?bot=muse|avg; anything else has no partner. */\nexport function targetOf(url: URL): DuetTarget | null {\n\tconst bot = botOf(url.searchParams.get('bot'));\n\tif (bot) return { kind: bot };\n\tconst nick = url.searchParams.get('with')?.trim().replace(/^@/, '');\n\treturn nick && nick.length <= 40 ? { kind: 'user', nickname: nick } : null;\n}\n\n/** RAT-696: who gives when it isn't settled by the genitals (the same ones, or her strap-on): ?top=me\n *  (the player) or ?top=them (the partner); anything else is the default (the player). */\nexport function topOf(url: URL): 'player' | 'partner' | null {\n\tconst t = url.searchParams.get('top');\n\treturn t === 'me' ? 'player' : t === 'them' ? 'partner' : null;\n}\n\n/** The ?top= value for a side, for the page's switch. */\nexport const topQuery = (side: 'player' | 'partner') => `top=${side === 'player' ? 'me' : 'them'}`;\n\n/** RAT-708: two vulvas: ?act=scissor (they scissor) or the default (she wears a strap-on). */\nexport function actOf(url: URL): 'strap' | 'scissor' | null {\n\tconst a = url.searchParams.get('act');\n\treturn a === 'scissor' ? 'scissor' : a === 'strap' ? 'strap' : null;\n}\n"],"version":3}