1import{r as u,j as a}from"./react-vendor-CHQL15iE.js";import{L as Ie}from"./index.esm-DEYnJgQB.js";import{f as We,h as Ee,T as Ae,c as O}from"./main-Dck1T9BT.js";import{r as Q}from"./assetUrl-D33wRw9g.js";import{a0 as Oe,H as Be,af as K,ag as Fe,J as ue,N as Ge,ah as De,X as Ye,i as He,D as qe}from"./lucide-BFLOpGdB.js";import"./pdfjs-ji3DqnKJ.js";import"./markdown-W-rE_H7s.js";import"./katex-math-BxKHCrdI.js";const ve='"Quicksand", "LXGW WenKai", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif',y='"Noto Serif SC", "PingFang SC", "Microsoft YaHei", Georgia, serif',I='Georgia, "Times New Roman", "Noto Serif SC", "PingFang SC", serif',B=({mouseContainer:t,cornerRadius:s})=>a.jsx(Ie,{displacementScale:72,blurAmount:0,saturation:155,aberrationIntensity:4,elasticity:.12,cornerRadius:s,padding:"0",mode:"prominent",mouseContainer:t,className:"paper-research-liquid-layer",style:{position:"absolute",top:"50%",left:"50%",width:"calc(100% + 20px)",height:"calc(100% + 20px)",pointerEvents:"none"},children:a.jsx("span",{"aria-hidden":"true",className:"block h-full w-full"})});function Ve(){const[t,s]=u.useState(()=>typeof window<"u"&&window.matchMedia("(max-height: 500px)").matches);return u.useEffect(()=>{const r=window.matchMedia("(max-height: 500px)"),o=()=>s(r.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),t}const X=t=>new Promise((s,r)=>{const o=new window.Image;t.startsWith("data:")||(o.crossOrigin="anonymous"),o.onload=()=>s(o),o.onerror=r,o.src=t}),J=t=>{if(!t||t.startsWith("data:")||t.startsWith("blob:"))return t;try{const s=new URL(t,window.location.origin);return s.origin===window.location.origin&&s.pathname.startsWith("/api/")?`${s.pathname}${s.search}`:`/api/share/image?url=${encodeURIComponent(s.toString())}`}catch{return t}},Me=(t,s,r,o,c,n)=>{const m=Math.max(c/s.naturalWidth,n/s.naturalHeight),h=c/m,d=n/m;t.drawImage(s,(s.naturalWidth-h)/2,(s.naturalHeight-d)/2,h,d,r,o,c,n)},Qe=(t,s,r,o,c,n)=>{const m=Math.min(c/s.naturalWidth,n/s.naturalHeight),h=s.naturalWidth*m,d=s.naturalHeight*m;t.drawImage(s,r+(c-h)/2,o+n-d,h,d)},Z=(t,s,r,o,c,n)=>{t.beginPath(),t.moveTo(s+n,r),t.lineTo(s+o-n,r),t.quadraticCurveTo(s+o,r,s+o,r+n),t.lineTo(s+o,r+c-n),t.quadraticCurveTo(s+o,r+c,s+o-n,r+c),t.lineTo(s+n,r+c),t.quadraticCurveTo(s,r+c,s,r+c-n),t.lineTo(s,r+n),t.quadraticCurveTo(s,r,s+n,r),t.closePath()},xe=(t,s,r,o,c,n,m)=>{const h=Array.from(s.replace(/\s+/g," ").trim()),d=[];let g="";for(const x of h){const _=g+x;if(t.measureText(_).width>c&&g){if(d.push(g),g=x,d.length===m)break}else g=_}g&&d.length<m&&d.push(g),d.length>0&&h.join("").length>d.join("").length&&(d[d.length-1]=`${d[d.length-1].slice(0,-1)}...`),d.forEach((x,_)=>t.fillText(x,r,o+_*n))},Ke=(t,s,r,o,c)=>{t.save(),t.strokeStyle="rgba(255, 205, 220, 0.88)",t.lineWidth=2,t.strokeRect(s,r,o,c),t.strokeStyle="rgba(255,255,255,0.42)",t.lineWidth=1,t.strokeRect(s+10,r+10,o-20,c-20);const n=44;t.strokeStyle="rgba(255, 210, 225, 0.95)",t.lineWidth=3,[[s,r],[s+o,r],[s,r+c],[s+o,r+c]].forEach(([m,h],d)=>{t.beginPath();const g=d%2===0?1:-1,x=d<2?1:-1;t.moveTo(m+g*8,h),t.lineTo(m+g*n,h),t.moveTo(m,h+x*8),t.lineTo(m,h+x*n),t.stroke()}),t.restore()},Xe=(t,s,r,o)=>{t.save(),t.setLineDash([8,8]),t.strokeStyle="rgba(255, 225, 232, 0.72)",t.lineWidth=2,t.beginPath(),t.moveTo(s,r),t.lineTo(s+o,r),t.stroke(),t.setLineDash([]),t.fillStyle="#fff7fb",t.shadowColor="rgba(255, 145, 180, 0.7)",t.shadowBlur=12,t.font=`900 26px ${I}`,t.fillText("â¦",s+o/2-10,r+9),t.restore()},Je=(t,s,r)=>{t.save(),t.strokeStyle="#ff9fbd",t.fillStyle="rgba(255, 235, 242, 0.1)",t.lineWidth=5,Z(t,s,r,78,94,9),t.fill(),t.stroke(),t.beginPath(),t.moveTo(s+55,r),t.lineTo(s+78,r+24),t.lineTo(s+55,r+24),t.closePath(),t.stroke(),t.lineWidth=4,t.beginPath(),t.moveTo(s+19,r+31),t.lineTo(s+48,r+31),t.moveTo(s+19,r+48),t.lineTo(s+58,r+48),t.moveTo(s+19,r+65),t.lineTo(s+42,r+65),t.stroke(),t.fillStyle="#ff9fbd",t.font=`900 27px ${ve}`,t.fillText("â¡",s+48,r+80),t.restore()},Ze=t=>{const s=[[28,1210,-.5,18],[92,1298,.35,22],[176,1352,-.3,15],[962,138,.7,8],[1018,304,-.2,10],[918,1320,.45,18],[1030,1168,-.6,24],[72,92,.25,
112]];t.save(),t.fillStyle="rgba(255, 168, 193, 0.72)",s.forEach(([r,o,c,n])=>{t.save(),t.translate(r,o),t.rotate(c),t.beginPath(),t.ellipse(0,0,n,n/2.8,0,0,Math.PI*2),t.fill(),t.restore()}),t.restore()},et=t=>{const s=String(t||"").replace(/\s+/g," ").trim();if(!s)return[];const r=(s.match(/[^ãï¼ï¼.!?]+[ãï¼ï¼.!?]?/g)||[s]).map(o=>o.trim()).filter(Boolean).filter(o=>o.length>3);return(r.length?r:[s]).slice(0,4)},tt=t=>/[\u3400-\u9fff]/.test(t),ft=({script:t,onRestart:s,onReplay:r,onShareSave:o,characterId:c,language:n,customCharacters:m=[],storyBackgroundUrl:h,charMetadata:d,defaultSkinId:g,choiceState:x,relationshipEndingLine:_=""})=>{const b=Ae[n],we=Ve(),{chars:ee}=We(),P=u.useRef(null),[te]=u.useState(()=>Math.floor(Math.random()*1e6)),{characterSprite:$,characterName:F,endingCg:ae,expressions:at}=u.useMemo(()=>{var z,U,N;const l=ee.find(v=>v.id===c),e=Ee(l,g||(d==null?void 0:d.defaultSkinId));let f=(e==null?void 0:e.avatarUrl)||(l==null?void 0:l.avatarUrl)||"",T=((U=(z=l==null?void 0:l.names)==null?void 0:z[n])==null?void 0:U.trim())||((N=l==null?void 0:l.name)==null?void 0:N.trim())||(l?b[l.nameKey]:"")||"Researcher",k=null,j,w=(e==null?void 0:e.cgImages)||(l==null?void 0:l.cgImages)||[];if(l)j=(e==null?void 0:e.expressions)||l.expressions;else{const v=m.find(q=>q.id===c);v?(f=v.avatarUrl,T=v.name,j=v.expressions,w=v.cgImages||[]):d&&(f=d.avatarUrl,T=d.name,j=d.expressions,w=d.cgImages||[])}return w.length>0&&(k=w[te%w.length]),{characterSprite:f,characterName:T,endingCg:k,expressions:j}},[c,m,b,d,te,ee,g,n]),[se,je]=u.useState(!1),[p,G]=u.useState(null),[D,re]=u.useState(!1),[le,L]=u.useState(null),[oe,ne]=u.useState(null),[ke,Y]=u.useState(!1),W=ae?Q(ae):null,E=$?Q($):"";u.useEffect(()=>{const l=setTimeout(()=>je(!0),300);return()=>clearTimeout(l)},[]);const R=Q(h||t.customBackgroundUrl||"/assets/local/backgrounds/default-scene.png"),ie=O(R)?"/assets/local/backgrounds/default-scene.png":R,Se=`${F.toUpperCase()}'S LOG`,de=n==="zh"?"å¨ç¥è¯çæç±ä¹æ
ä¸ï¼ä¸ä½ ç¸éã":"Meet your paper as a visual novel.",ce=p?`/api/share/qr?data=${encodeURIComponent(p.shareUrl)}`:"",Ne=async()=>{if(!(!o||D)){re(!0),L(null);try{const l=await o();G(l)}catch(l){L((l==null?void 0:l.message)||"Share failed")}finally{re(!1)}}},ye=async()=>{if(p!=null&&p.shareUrl)try{await navigator.clipboard.writeText(p.shareUrl),L(null)}catch(l){console.error("Copy share link failed",l),L(b.copyFailed||"å¤å¶å¤±è´¥ï¼è¯·æå¨éæ©é¾æ¥å¤å¶ã")}},fe=async()=>{if(!p)return null;const l=document.createElement("canvas");l.width=1080,l.height=1440;const e=l.getContext("2d");if(!e)return null;const[f,C,T]=await Promise.allSettled([X(J(ie)),O($)?Promise.reject():X(J($)),X(J(ce))]);e.fillStyle="#241c1f",e.fillRect(0,0,1080,1440),f.status==="fulfilled"&&Me(e,f.value,0,0,1080,1440);const k=e.createLinearGradient(0,0,1080,1440);k.addColorStop(0,"rgba(255, 240, 222, 0.06)"),k.addColorStop(.36,"rgba(255, 235, 223, 0.08)"),k.addColorStop(.7,"rgba(32, 22, 27, 0.28)"),k.addColorStop(1,"rgba(21, 15, 20, 0.62)"),e.fillStyle=k,e.fillRect(0,0,1080,1440);const j=e.createRadialGradient(82,98,10,82,98,560);j.addColorStop(0,"rgba(255, 241, 214, 0.6)"),j.addColorStop(.45,"rgba(255, 188, 167, 0.18)"),j.addColorStop(1,"rgba(255, 188, 167, 0)"),e.fillStyle=j,e.fillRect(0,0,1080,1440);const w=e.createRadialGradient(780,520,80,780,520,620);if(w.addColorStop(0,"rgba(255,255,255,0.24)"),w.addColorStop(.46,"rgba(255,205,220,0.08)"),w.addColorStop(1,"rgba(255,255,255,0)"),e.fillStyle=w,e.fillRect(0,0,1080,1440),Ze(e),Je(e,78,82),e.fillStyle="#fff7fb",e.shadowColor="rgba(0,0,0,0.45)",e.shadowBlur=18,e.shadowOffsetY=4,e.font=`900 64px ${I}`,e.fillText("Paper",174,141),e.fillStyle="#f2a1bd",e.fillText("2Galgame",360,141),e.fillStyle="rgba(255, 246, 250, 0.92)",e.shadowBlur=10,e.shadowOffsetY=3,e.font=`700 24px ${y}`,e.fillText(n==="zh"?"让论æé
读ï¼å¦å Galgame è¬æ²æµ¸ â¡":"Turn papers into immersive Galgame stories â¡",174,178),e.shadowColor="transparent",e.shadowOffsetY=0,e.save(),e.strokeStyle="#f4a2bd",e.lineWidth=3,e.beginPath(),e.moveTo(168,196),e.bezierCurveTo(300,208,428,204,552,194),e.stroke(),e.font=`900 22px ${I}
1`,e.fillStyle="#f4a2bd",e.fillText("â¡",562,198),e.restore(),C.status==="fulfilled"){const S=e.createRadialGradient(835,660,30,835,660,540);S.addColorStop(0,"rgba(255, 199, 216, 0.34)"),S.addColorStop(.58,"rgba(255, 255, 255, 0.1)"),S.addColorStop(1,"rgba(255,255,255,0)"),e.fillStyle=S,e.fillRect(360,110,720,1100),e.save(),e.shadowColor="rgba(35, 18, 28, 0.34)",e.shadowBlur=34,e.shadowOffsetY=16,Qe(e,C.value,392,92,820,1110),e.restore()}e.save(),e.shadowColor="rgba(0, 0, 0, 0.36)",e.shadowBlur=24,e.shadowOffsetY=12,Z(e,70,292,470,820,8),e.fillStyle="rgba(24, 21, 22, 0.72)",e.fill(),e.restore(),Ke(e,70,292,470,820);const z=Array.from(t.title||"").length;e.fillStyle="#f6a8c1",e.font=`900 35px ${y}`,e.fillText(n==="zh"?"â¿ è®ºææ é¢":"â¿ Paper Title",116,370);const U=t.title||"Research Completed",N=tt(U),v=N?z>28?38:42:z>62?37:43,q=N?v+13:v+11,Re=N?4:5;e.fillStyle="#fff7fb",e.font=`900 ${v}px ${I}`,e.shadowColor="rgba(0,0,0,0.42)",e.shadowBlur=8,xe(e,U,116,440,390,q,Re),e.shadowColor="transparent";const V=N&&z>28?660:642;Xe(e,116,V-54,380),e.fillStyle="#f6a8c1",e.font=`900 35px ${y}`,e.fillText(n==="zh"?"â¿ å
容æè¦":"â¿ Summary",116,V);const be=et(t.summary||""),Ue=n==="zh"?["å°å¤æè®ºææè§£æè§è²å¯¹è¯ã","æ«ç å³å¯æå¼å
¬å¼å档继ç»ä½éªã"]:["A visual-novel reading path for this paper.","Scan to open the public archive."],ge=be.length?be:Ue;e.fillStyle="#fffafc",e.font=`800 27px ${y}`;let A=V+58;return ge.slice(0,4).forEach((S,M)=>{xe(e,S,116,A,390,38,M===0?3:2),A+=M===0?120:88,M<Math.min(ge.length,4)-1&&(e.save(),e.setLineDash([7,7]),e.strokeStyle="rgba(246, 168, 193, 0.55)",e.beginPath(),e.moveTo(116,A-30),e.lineTo(496,A-34),e.stroke(),e.restore())}),e.save(),e.shadowColor="rgba(42, 20, 30, 0.32)",e.shadowBlur=22,e.shadowOffsetY=10,Z(e,710,950,300,326,20),e.fillStyle="rgba(255,255,255,0.97)",e.fill(),e.strokeStyle="rgba(244, 162, 189, 0.5)",e.lineWidth=2,e.stroke(),e.restore(),T.status==="fulfilled"&&e.drawImage(T.value,760,990,200,200),e.save(),e.setLineDash([5,7]),e.strokeStyle="rgba(244, 162, 189, 0.65)",e.beginPath(),e.moveTo(760,1214),e.lineTo(960,1214),e.stroke(),e.restore(),e.fillStyle="#e797af",e.font=`900 31px ${y}`,e.textAlign="center",e.fillText(n==="zh"?"· æ«ç ä½éª ·":"· SCAN TO PLAY ·",860,1254),e.textAlign="left",e.fillStyle="#ffb1c9",e.font=`900 31px ${y}`,e.fillText("â¿",82,1254),e.fillStyle="#fff7fb",e.font=`700 31px ${y}`,e.fillText(de,128,1252),e.save(),e.strokeStyle="#f4a2bd",e.lineWidth=3,e.beginPath(),e.moveTo(128,1272),e.bezierCurveTo(318,1288,450,1284,610,1270),e.stroke(),e.font=`900 28px ${I}`,e.fillStyle="#f4a2bd",e.fillText("â¡",620,1277),e.restore(),e.fillStyle="rgba(255, 244, 248, 0.76)",e.font=`800 18px ${ve}`,e.fillText(`PUBLIC ARCHIVE / ${p.saveId.slice(0,8).toUpperCase()} / ${F}`,78,1388),await new Promise(S=>l.toBlob(S,"image/png",.95))};u.useEffect(()=>{let l=!1,e=null;if(!p){ne(f=>(f&&URL.revokeObjectURL(f),null)),Y(!1);return}return Y(!0),fe().then(f=>{l||!f||(e=URL.createObjectURL(f),ne(C=>(C&&URL.revokeObjectURL(C),e)))}).catch(f=>{console.error("Render share poster preview failed",f),l||L(b.shareSaveFailed||"Failed to render poster")}).finally(()=>{l||Y(!1)}),()=>{l=!0,e&&URL.revokeObjectURL(e)}},[p==null?void 0:p.saveId,p==null?void 0:p.shareUrl,ie,$,t.title,t.summary,F,de,ce]);const _e=async()=>{if(!p)return;const l=await fe();if(!l)return;const e=URL.createObjectURL(l),f=document.createElement("a");f.href=e,f.download=`paper2gal-share-${p.saveId}.png`,document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(e)},i=we,Ce=n==="zh"?"é
è¯»å®æ":b.researchCompleted,Te=n==="zh"?"论æåå¿å½":Se,ze=Object.keys((x==null?void 0:x.selectedChoices)||{}).length,pe=_||(ze>0?n==="zh"?"ä½ ä»¬ä¸èµ·å®æäºè¿æ®µé
读ã":"You completed this reading together.":""),Pe="sepia(20%) saturate(105%) brightness(94%) contrast(98%) hue-rotate(-7deg) drop-shadow(0 30px 34px rgba(0,0,0,0.58)) drop-shadow(-18px 0 22px rgba(255,196,142,0.20)) drop-shadow(10px 0 22px rgba(45,13,22,0.38))",$e="sepia(62%) saturate(172%) brightness(128%) contrast(88%) hue-rotate(-13deg)",Le="sepia(18%) saturate(72%) brightness(58%) contrast(112%) hue-rotate(-8deg)",me="linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.72) 30%, rgba(0,0,0,0.22) 56%, transparent 78%)",he="linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 42%, rgba(0,0,0,0.82) 78%, rgba(0,0,0,0.95) 100%)",H=(l,e,f=!1)=>
1O(E)?a.jsx("video",{src:E,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,"aria-label":f?void 0:"Character Happy","aria-hidden":f,style:e,className:l}):a.jsx("img",{src:E,alt:f?"":"Character Happy","aria-hidden":f,style:e,className:l});return a.jsxs("div",{ref:P,className:`absolute inset-0 z-[500] w-full h-full flex items-center justify-center font-serif select-none bg-[#120f13] ${i?"overflow-y-auto overflow-x-hidden":"overflow-hidden"}`,children:[a.jsxs("div",{className:"absolute inset-0 z-0",children:[!W&&O(R)?a.jsx("video",{src:R,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"auto","aria-hidden":"true",className:"absolute inset-0 h-full w-full object-cover object-center transition-transform duration-[10s] ease-out"}):a.jsx("img",{src:W||R,alt:"","aria-hidden":"true",className:"absolute inset-0 h-full w-full object-cover object-center transition-transform duration-[10s] ease-out",style:W?void 0:{filter:"brightness(96%) contrast(104%) saturate(102%)"}}),a.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(90deg,rgba(7,8,12,0.42)_0%,rgba(13,10,15,0.28)_34%,rgba(24,14,18,0.06)_62%,rgba(8,7,10,0.16)_100%)]"}),a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_60%_42%,rgba(255,186,150,0.12),transparent_34%),linear-gradient(180deg,rgba(0,0,0,0.02)_0%,transparent_48%,rgba(0,0,0,0.18)_100%)]"}),a.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_32%_30%,rgba(255,209,156,0.34),transparent_36%),radial-gradient(ellipse_at_68%_32%,rgba(255,178,196,0.18),transparent_32%)] mix-blend-screen"}),a.jsx("div",{className:"absolute left-[26%] top-0 h-full w-[18%] -skew-x-12 bg-gradient-to-b from-[#fff0c8]/22 via-[#ffc083]/10 to-transparent blur-sm mix-blend-screen"}),a.jsx("div",{className:"absolute left-[42%] top-0 h-full w-[9%] -skew-x-12 bg-gradient-to-b from-[#fff8df]/16 via-[#ffce8f]/8 to-transparent blur-[2px] mix-blend-screen"})]}),a.jsxs("div",{className:`relative z-20 w-full h-full min-h-0 ${i?"p-3 py-4":"p-6 md:p-10 lg:p-12"} transition-all duration-1000 ${se?"opacity-100":"opacity-0"}`,children:[a.jsxs("div",{className:`relative z-30 flex h-full min-h-0 flex-col ${i?"max-w-[58%] gap-2":"w-full max-w-[560px] justify-center gap-3 md:w-[39%] md:min-w-[400px] md:gap-4"}`,children:[a.jsxs("div",{className:`relative isolate flex animate-fade-in-up shrink-0 flex-col justify-center overflow-hidden border border-white/28 bg-white/[0.07] shadow-[inset_0_1px_0_rgba(255,255,255,0.30),inset_0_-1px_0_rgba(255,185,207,0.12),0_24px_70px_rgba(0,0,0,0.34)] ${i?"min-h-[250px] rounded-xl p-3":"min-h-[390px] rounded-[18px] p-6 md:p-8"}`,style:{animationDelay:"0.22s"},children:[a.jsx(B,{mouseContainer:P,cornerRadius:i?12:18}),a.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_20%_8%,rgba(255,220,190,0.14),transparent_32%),linear-gradient(135deg,rgba(255,168,199,0.10),transparent_34%)]"}),a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:`mb-3 flex items-center gap-3 text-pink-200 ${i?"mb-1.5":""}`,children:a.jsx("h1",{className:`font-serif font-black tracking-wide text-[#fff4f0] drop-shadow-[0_5px_24px_rgba(255,191,207,0.2)] ${i?"text-2xl":"text-5xl md:text-[3.65rem] lg:text-[4.35rem]"}`,children:Ce})}),a.jsxs("div",{className:`relative ${i?"pt-2":"pt-3"}`,children:[a.jsx("div",{className:"pointer-events-none absolute left-0 right-0 top-0 h-px bg-gradient-to-r from-[#f8a9c2]/10 via-[#ffe3ed]/60 to-[#f8a9c2]/10"}),a.jsxs("div",{className:`mb-3 flex items-center gap-3 text-pink-200 ${i?"mb-1 gap-2":""}`,children:[a.jsx("div",{className:`rounded-md border border-pink-200/40 bg-pink-300/10 ${i?"p-1":"p-1.5"}`,children:a.jsx(Oe,{size:i?12:18,fill:"currentColor"})}),a.jsx("h3",{className:`font-sans font-black tracking-[0.12em] text-pink-200 ${i?"text-sm":"text-lg md:text-xl"}`,children:Te}),a.jsx("span",{className:"h-px flex-1 bg-pink-200/24"})]}),a.jsxs("p",{className:`font-serif font-semibold leading-relaxed text-[#fff0ef] [text-shadow:0_2px_10px_rgba(0,0,0,0.45)] ${i?"line-clamp-3 text-xs":"line-clamp-6 text-sm md:text-base lg:text-[1.05rem]"}`,children:[a.jsx("span",{className:"mr-2 text-2xl leading-none text-pink-300/92",children:"â"}),t.summary,a.jsx("span",{className:"ml-2 text-2xl leading-none text-pink-300/92",children:"â"})]}),pe&&a.jsx("p",{className:`mt-3 border-t border-pink-200/20 pt-3 font-sans font-bold leading-relaxed text-pink-100/90 ${i?"line-clamp-2 text-[10px]":"text-sm md:text-base"}`,children:pe})]})]})]}),a.jsxs("div",{className:`flex flex-col animate-fade-in-up shrink-0 ${i?"gap-1.5":"gap-3"}`,style:{animationDelay:"0.36s"},children:[a.jsxs("button",{onClick:s,className:`group relative isolate flex w-full items-center justify-between overflow-hidden border border-white/30 bg-white/[0.09] text-white shadow-[inset_0_1px_0_rgba(255,255,255,0.28),inset_0_-1px_0_rgba(255,181,203,0.10),0_14px_34px_rgba(0,0,0,0.22)] hover:border-pink-100/60 hover:bg-white/[0.16] transition-all duration-300 ${i?"rounded-lg px-3 py-2":"rounded-xl px-5 py-4"}`,children:[a.jsx(B,{mouseContainer:P,cornerRadius:i?8:12}),a.jsxs("span",{className:"relative z-10 flex items-center gap-3",children:[a.jsx(Be,{size:i?14:21,className:"text-pink-100"}),a.jsx("span",{className:`font-sans font-bold tracking-wide whitespace-nowrap ${i?"text-xs":"text-sm md:text-base"}`,children:b.titleBtn})]}),a.jsx(K,{size:i?15:20,className:"relative z-10 text-pink-100/80 transition-transform group-hover:translate-x-1"})]}),a.jsxs("button",{onClick:r,className:`group relative isolate flex w-full items-center justify-between overflow-hidden border border-white/30 bg-white/[0.09] text-white shadow-[inset_0_1px_0_rgba(255,255,255,0.28),inset_0_-1px_0_rgba(255,181,203,0.10),0_14px_34px_rgba(0,0,0,0.22)] hover:border-pink-100/60 hover:bg-white/[0.16] transition-all duration-300 ${i?"rounded-lg px-3 py-2":"rounded-xl px-5 py-4"}`,children:[a.jsx(B,{mouseContainer:P,cornerRadius:i?8:12}),a.jsxs("span",{className:"relative z-10 flex items-center gap-3",children:[a.jsx(Fe,{size:i?14:21,className:"text-pink-100 transition-transform group-hover:rotate-180"}),a.jsx("span",{className:`font-sans font-bold tracking-wide whitespace-nowrap ${i?"text-xs":"text-sm md:text-base"}`,children:b.replayBtn})]}),a.jsx(K,{size:i?15:20,className:"relative z-10 text-pink-100/80 transition-transform group-hover:translate-x-1"})]}),a.jsxs("button",{onClick:Ne,disabled:D||!o,className:`group relative isolate flex w-full items-center justify-between overflow-hidden border border-white/30 bg-white/[0.09] text-white shadow-[inset_0_1px_0_rgba(255,255,255,0.28),inset_0_-1px_0_rgba(255,181,203,0.10),0_14px_34px_rgba(0,0,0,0.22)] hover:border-pink-100/60 hover:bg-white/[0.16] transition-all duration-300 disabled:opacity-60 disabled:pointer-events-none ${i?"rounded-lg px-3 py-2":"rounded-xl px-5 py-4"}`,children:[a.jsx(B,{mouseContainer:P,cornerRadius:i?8:12}),a.jsxs("span",{className:"relative z-10 flex items-center gap-3",children:[D?a.jsx(ue,{size:i?14:21,className:"animate-spin"}):a.jsx(Ge,{size:i?14:21}),a.jsx("span",{className:`font-sans font-bold tracking-wide whitespace-nowrap ${i?"text-xs":"text-sm md:text-base"}`,children:b.sharePoster||"å享海æ¥"})]}),a.jsx(K,{size:i?15:20,className:"relative z-10 text-pink-100/80 transition-transform group-hover:translate-x-1"})]}),le&&a.jsx("p",{className:"font-sans text-xs font-bold text-red-100 bg-red-500/35 border border-red-200/30 rounded-lg px-3 py-2",children:le})]})]}),!W&&E&&a.jsxs("div",{className:`absolute bottom-0 isolate flex items-end justify-center pointer-events-none z-20 ${i?"right-[-12%] w-[50%] h-[78%] opacity-55":"right-[-10%] md:right-[-4%] lg:right-[-2%] w-[62%] md:w-[58%] lg:w-[56%] h-[96%] md:h-[108%]"}
1`,children:[a.jsx("div",{className:"absolute bottom-[14%] right-[17%] z-0 h-[78%] w-[46%] rounded-full bg-[radial-gradient(circle,rgba(255,194,142,0.25),rgba(255,136,174,0.13)_38%,transparent_70%)] blur-2xl mix-blend-screen"}),a.jsx("div",{className:"absolute bottom-[20%] right-[32%] z-0 h-[76%] w-[18%] -skew-x-12 bg-gradient-to-b from-[#ffe1ad]/24 via-[#ffaf96]/12 to-transparent blur-md mix-blend-screen"}),a.jsx("div",{className:"absolute bottom-[1%] right-[24%] z-0 h-[10%] w-[36%] rounded-full bg-black/56 blur-2xl scale-x-150 mix-blend-multiply"}),a.jsx("div",{className:"absolute bottom-[2%] right-[24%] z-0 h-[15%] w-[40%] rounded-full bg-[radial-gradient(ellipse,rgba(255,143,142,0.16),transparent_68%)] blur-xl mix-blend-screen"}),a.jsxs("div",{className:`relative z-10 h-full w-fit transition-all duration-[2000ms] ease-out ${se?"translate-x-0 opacity-100":"translate-x-20 opacity-0"}`,children:[H("relative z-20 h-full w-auto object-contain object-bottom",{filter:Pe}),H("absolute left-0 top-0 z-30 h-full w-auto object-contain object-bottom opacity-30 mix-blend-screen",{filter:$e,WebkitMaskImage:me,maskImage:me},!0),H("absolute left-0 top-0 z-10 h-full w-auto object-contain object-bottom opacity-24 mix-blend-multiply",{filter:Le,WebkitMaskImage:he,maskImage:he},!0),a.jsx("div",{className:"absolute inset-y-[7%] left-[2%] z-40 w-[34%] bg-gradient-to-r from-[#ffe7bd]/16 via-[#ffb3bb]/8 to-transparent blur-xl mix-blend-screen"}),a.jsx("div",{className:"absolute bottom-0 left-[6%] right-[8%] z-50 h-[30%] bg-gradient-to-t from-black/34 via-[#2a1017]/12 to-transparent blur-[2px]"})]})]})]}),p&&a.jsx("div",{className:"fixed inset-0 z-[800] flex items-center justify-center bg-slate-950/55 backdrop-blur-md p-4 font-sans",onClick:()=>G(null),children:a.jsxs("div",{className:"w-full max-w-5xl max-h-[92dvh] overflow-y-auto rounded-3xl bg-white p-4 md:p-6 shadow-2xl border border-white",onClick:l=>l.stopPropagation(),children:[a.jsxs("div",{className:"flex items-center justify-between gap-4 mb-4",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-2 text-pink-600 font-black text-xs uppercase tracking-[0.22em]",children:[a.jsx(De,{size:16}),a.jsx("span",{children:b.publicSavePoster||"Public save poster"})]}),a.jsx("h3",{className:"mt-1 text-xl md:text-2xl font-black text-slate-800 tracking-tight",children:b.sharePosterReady||"å享海æ¥å·²çæ"})]}),a.jsx("button",{onClick:()=>G(null),className:"w-10 h-10 rounded-full bg-slate-100 text-slate-500 hover:bg-pink-100 hover:text-pink-600 flex items-center justify-center transition-colors",children:a.jsx(Ye,{size:20})})]}),a.jsxs("div",{className:"grid md:grid-cols-[minmax(320px,620px)_260px] gap-5 items-start justify-center",children:[a.jsx("div",{className:"relative mx-auto aspect-[3/4] w-full max-w-[min(620px,57dvh)] overflow-hidden rounded-2xl bg-slate-900 border border-slate-200 shadow-inner",children:oe?a.jsx("img",{src:oe,alt:"Share poster preview",className:"h-full w-full object-cover bg-slate-950"}):a.jsxs("div",{className:"absolute inset-0 flex items-center justify-center bg-slate-950 text-white",children:[a.jsx(ue,{size:28,className:"animate-spin"}),a.jsx("span",{className:"ml-3 text-sm font-black",children:ke?"Rendering poster...":"Poster preview"})]})}),a.jsxs("div",{className:"flex flex-col gap-3 w-full",children:[a.jsxs("div",{className:"rounded-2xl border border-slate-200 bg-slate-50 p-4",children:[a.jsx("div",{className:"text-[10px] font-black text-slate-400 uppercase tracking-widest mb-2",children:b.shareLink||"Share link"}),a.jsx("div",{className:"text-xs font-mono font-bold text-slate-700 break-all",children:p.shareUrl})]}),a.jsxs("button",{onClick:ye,className:"inline-flex items-center justify-center gap-2 rounded-xl bg-slate-800 text-white px-4 py-3 font-black hover:bg-slate-700 transition-colors",children:[a.jsx(He,{size:18}),b.copyLink||"å¤å¶é¾æ¥"]}),a.jsxs("button",{onClick:_e,className:"inline-flex items-center justify-center gap-2 rounded-xl bg-pink-600 text-white px-4 py-3 font-black hover:bg-pink-500 transition-colors",children:[a.jsx(qe,{size:18}),b.downloadPoster||"ä¸è½½æµ·æ¥"]}),a.jsx("p",{className:"text-xs leading-relaxed text-slate-500 font-bold",children:b.sharePosterHint||"è¿ä¸ªäºç»´ç ä¼ç´æ¥æå¼å
¬å¼åæ¡£ï¼è®¿é®è
æ éæå¨è¾å
¥ UUIDã"})]})]})]})})]})};export{ft as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.