1import{r as u,j as t}from"./react-vendor-CHQL15iE.js";import{T as le,q as oe}from"./main-Dck1T9BT.js";import{r as V}from"./assetUrl-D33wRw9g.js";import{E as ce}from"./lucide-BFLOpGdB.js";import"./pdfjs-ji3DqnKJ.js";import"./markdown-W-rE_H7s.js";import"./katex-math-BxKHCrdI.js";const se=1e3/60,z=80,te=112,de=112,ue=.6,ne=-13.2,ae=-8.5,he=120,fe=22,pe=22,xe=80,me=-6;function be(){return{y:0,velocity:0,isJumping:!1,jumpHeld:!1,jumpBufferedUntil:0}}function we(e){return Number.isNaN(e)?0:Math.min(Math.max(e/se,0),2)}function ge(e,a){const r=Number.isFinite(a)?a:0;return!e.isJumping&&e.y>=-2?{...e,velocity:ne,isJumping:!0,jumpHeld:!0,jumpBufferedUntil:0}:{...e,jumpHeld:!0,jumpBufferedUntil:r+he}}function G(e){return{...e,velocity:Math.max(e.velocity,ae),jumpHeld:!1}}function je(e,a,r){const i=Number.isFinite(r)?Math.min(Math.max(r,0),2):0,s=Number.isFinite(a)?a:0,c=e.velocity+ue*i,l=e.y+c*i,n=e.jumpBufferedUntil>=s?e.jumpBufferedUntil:0;return l<0?{...e,y:l,velocity:c,jumpBufferedUntil:n}:n>0?{y:0,velocity:e.jumpHeld?ne:ae,isJumping:!0,jumpHeld:e.jumpHeld,jumpBufferedUntil:0}:{y:0,velocity:0,isJumping:!1,jumpHeld:e.jumpHeld,jumpBufferedUntil:0}}function Ne(e){const r=(Number.isFinite(e)?e:0)+me;return{left:z+fe,right:z+te-pe,top:r-xe,bottom:r}}const ye=9,ve=720,ke=1080,Z=1250,Re=1900,Se=1200,_e=4,Q=0,$=[{key:"stump",width:88,height:46,hitboxWidth:66,hitboxHeight:34},{key:"rocks",width:116,height:54,hitboxWidth:96,hitboxHeight:38},{key:"crate",width:76,height:66,hitboxWidth:62,hitboxHeight:50}];function Ee(e){return{width:Number.isFinite(e)?Math.max(0,e):0,runner:be(),obstacles:[],score:0,isHit:!1,hitUntil:0,nextSpawnAt:0,nextObstacleId:0,lastFrameTime:null}}function P(e){return{...e,lastFrameTime:null}}function ie(e){const a=e();return Number.isFinite(a)?Math.min(Math.max(a,0),1):.5}function q(e){const a=Number.isFinite(e)?Math.min(Math.max(Math.floor(e),0),$.length-1):0;return $[a]}function Le(e){const a=q(e.typeIndex);return{...e,typeIndex:Number.isFinite(e.typeIndex)?Math.floor(e.typeIndex):0,x:Number.isFinite(e.x)?e.x:0,width:a.width,height:a.height,hitboxWidth:a.hitboxWidth,hitboxHeight:a.hitboxHeight}}function Te(e,a){const r=Math.min(Math.floor(ie(a)*$.length),$.length-1),i=$[r];return{id:e.nextObstacleId+1,x:e.width+i.width,typeIndex:r,width:i.width,height:i.height,hitboxWidth:i.hitboxWidth,hitboxHeight:i.hitboxHeight}}function Ae(e){const a=q(e.typeIndex),r=a.width,i=a.hitboxWidth,s=a.hitboxHeight,c=e.x+(r-i)/2;return{left:c,right:c+i,top:Q-s,bottom:Q}}function Me(e,a){return e.right>a.left&&e.left<a.right&&e.bottom>a.top&&e.top<a.bottom}function Oe(e,a){const r=a.clock.now(),i=Number.isFinite(r),s=i?r:0,c=e.lastFrameTime===null?0:i?s-e.lastFrameTime:0,l=e.lastFrameTime===null&&i?1:we(c),n=ye*l,h=je(e.runner,s,l),f=e.obstacles.map(Le),j=f[f.length-1],E=j?j.x:e.width+100,A=f.length<_e,N=f.length===0||e.width-E>ve&&(e.width-E>ke||s>=e.nextSpawnAt);let d=f,y=e.nextObstacleId,v=e.nextSpawnAt,S;if(A&&i&&N){const x=Te({...e,nextObstacleId:y},a.random);S=x.id,y=x.id,v=s+Z+ie(a.random)*(Re-Z),d=[...d,x]}const g=[],k=Ne(h.y),L=e.hitUntil>0&&s<e.hitUntil;let p=!1;d=d.map(x=>({...x,x:x.x-n})).filter(x=>{const b=q(x.typeIndex);return x.x+b.width<0?(g.push(x.id),!1):!L&&Me(k,Ae(x))?(p=!0,!1):!0});const D=p?s+Se:e.hitUntil,M=p||e.hitUntil>0&&s<e.hitUntil,O=p?0:e.score+g.length;return{state:{...e,runner:h,obstacles:d,score:O,isHit:M,hitUntil:M?D:0,nextSpawnAt:v,nextObstacleId:y,lastFrameTime:i?s:null},frameTime:c,step:l,spawnedObstacleId:S,scoredObstacleIds:g,hit:p}}const Ie=[".ad-container","a","button","input","textarea","select","option","summary","form","label","[contenteditable]","[tabindex]",'[role="button"]','[role="checkbox"]','[role="combobox"]','[role="listbox"]','[role="link"]','[role="menuitem"]','[role="option"]','[role="radio"]','[role="slider"]','[role="switch"]','[role="textbox"]'].join(",");function X(e){var a;return!e||typeof e.closest!="function"?!1:!!((a=e.closest)!=null&&a.call(e,Ie))}function Ue(e){return e.code==="Space"&&!e.repeat&&!X(e.target)&&!X(e.activeElement)}const J=92,Y=118,re=2840,Fe=120,w={backdrop:"/assets/local/loading/world/backdrop-static.png",ground:"/assets/local/loading/world/ground-long.png",stump:"/assets/local/loading/world/stump.png",rocks:"/assets/local/loading/world/rocks.png",crate:"/assets/local/loading/world/crate.png",houseTall:"/assets/local/loading/world/house-tall.png",houseWide:"/assets/local/loading/world/house-wide.png",tree:"/assets/local/loading/world/tree.png"},He=[w.stump,w.rocks,w.crate],De=[{key:"wide-a",src:w.houseWide,width:142,bottomOffset:-6,speed:.08,opacity:.8,baseRatio:.08},{key:"tree-a",src:w.tree,width:112,bottomOffset:-10,speed:.12,opacity:.84,baseRatio:.25},{key:"tall-a",src:w.houseTall,width:118,bottomOffset:-7,speed:.06,opacity:.74,baseRatio:.42},{key:"wide-b",src:w.houseWide,width:128,bottomOffset:-8,speed:.075,opacity:.72,baseRatio:.58},{key:"tree-b",src:w.tree,width:122,bottomOffset:-11,speed:.11,opacity:.82,baseRatio:.73},{key:"tall-b",src:w.houseTall,width:104,bottomOffset:-8,speed:.055,opacity:.66,baseRatio:.86},{key:"tree-c",src:w.tree,width:96,bottomOffset:-11,speed:.1,opacity:.74,baseRatio:.96}];function $e(){const[e,a]=u.useState(!1);return u.useEffect(()=>{var s;if(typeof window.matchMedia!="function")return;const r=window.matchMedia("(prefers-reduced-motion: reduce)"),i=()=>a(r.matches);return i(),typeof r.addEventListener=="function"?r.addEventListener("change",i
1):(s=r.addListener)==null||s.call(r,i),()=>{var c;typeof r.removeEventListener=="function"?r.removeEventListener("change",i):(c=r.removeListener)==null||c.call(r,i)}},[]),e}function W({src:e,alt:a="",className:r,style:i,fallback:s,draggable:c=!1}){const[l,n]=u.useState(()=>new Set);return l.has(e)?t.jsx(t.Fragment,{children:s}):t.jsx("img",{src:V(e),alt:a,className:r,style:i,draggable:c,onError:()=>n(h=>h.has(e)?h:new Set(h).add(e))})}function ee({isJumping:e}){return t.jsxs("svg",{viewBox:"0 0 40 44",className:"h-full w-full",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"Loading runner",children:[e?t.jsxs(t.Fragment,{children:[t.jsx("rect",{x:"6",y:"24",width:"6",height:"8",fill:"#535353",rx:"1",transform:"rotate(-30 9 28)"}),t.jsx("rect",{x:"28",y:"24",width:"6",height:"8",fill:"#535353",rx:"1",transform:"rotate(30 31 28)"})]}):t.jsxs(t.Fragment,{children:[t.jsx("rect",{x:"8",y:"28",width:"6",height:"14",fill:"#535353",rx:"1"}),t.jsx("rect",{x:"26",y:"30",width:"6",height:"12",fill:"#535353",rx:"1"})]}),t.jsx("rect",{x:"10",y:"14",width:"20",height:"18",fill:"#535353",rx:"2"}),t.jsx("rect",{x:"12",y:"16",width:"16",height:"14",fill:"#6d6d6d",rx:"1"}),t.jsx("rect",{x:"24",y:"4",width:"14",height:"16",fill:"#535353",rx:"2"}),t.jsx("rect",{x:"26",y:"6",width:"10",height:"12",fill:"#6d6d6d",rx:"1"}),t.jsx("rect",{x:"32",y:"10",width:"4",height:"4",fill:"#535353"}),t.jsx("rect",{x:"33",y:"11",width:"2",height:"2",fill:"#f7f7f7"}),t.jsx("path",{d:"M 28 18 L 34 18",stroke:"#535353",strokeWidth:"2",strokeLinecap:"round"}),t.jsx("path",{d:"M 8 22 Q 0 20 2 26 Q 4 28 8 26",fill:"#535353",stroke:"#535353",strokeWidth:"1"})]})}function Ce({isJumping:e,runFrame:a,runImageUrl:r,runImageUrlAlt:i,runImageUrlThird:s,jumpImageUrl:c}){const l=[r,i,s].filter(Boolean),n=e?c:l.length>0?l[a%l.length]:void 0;return t.jsx("div",{className:"flex h-full w-full items-end justify-center","data-runner-sprite":"true",children:n?t.jsx(W,{src:n,className:"h-full w-full object-contain object-bottom",fallback:t.jsx(ee,{isJumping:e}),draggable:!1}):t.jsx(ee,{isJumping:e})})}function We({typeIndex:e}){const a=e%3;return a===1?t.jsxs("div",{className:"loading-runner-obstacle-fallback loading-runner-rocks-fallback","aria-hidden":"true",children:[t.jsx("i",{}),t.jsx("i",{}),t.jsx("i",{})]}):a===2?t.jsx("div",{className:"loading-runner-obstacle-fallback loading-runner-crate-fallback","aria-hidden":"true"}):t.jsx("div",{className:"loading-runner-obstacle-fallback loading-runner-stump-fallback","aria-hidden":"true"})}function Be({obstacle:e}){const a=Math.max(0,Math.min(2,e.typeIndex)),r=e.width??88,i=e.height??46;return t.jsx("div",{className:"absolute pointer-events-none select-none","data-obstacle-type":["stump","rocks","crate"][a],style:{bottom:J,left:e.x,width:r,height:i},children:t.jsx(W,{src:He[a],className:"h-full w-full object-contain object-bottom",style:{filter:"drop-shadow(0 8px 8px rgba(82, 58, 34, 0.24))"},fallback:t.jsx(We,{typeIndex:a}),draggable:!1})})}function Ge({kind:e}){return t.jsx("div",{className:`loading-runner-scenery-fallback loading-runner-${e}-fallback`,"aria-hidden":"true"})}function Ve({offset:e}){const[a,r]=u.useState(!1);return a?t.jsx("div",{className:"absolute inset-x-0 bottom-0 loading-runner-ground-fallback","aria-hidden":"true"}):t.jsx("div",{className:"absolute inset-x-0 bottom-0 pointer-events-none h-[82px] w-full select-none",role:"img","aria-label":"",style:{height:Y,backgroundImage:`url(${V(w.ground)})`,backgroundSize:`${re}px ${Y}px`,backgroundRepeat:"repeat-x",backgroundPosition:`${-e}px 0`},children:t.jsx("img",{src:V(w.ground),alt:"",className:"hidden",onError:()=>r(!0)})})}function ze({dinoRunImageUrl:e,dinoRunImageUrlAlt:a,dinoRunImageUrlThird:r,dinoJumpImageUrl:i,onRunnerJump:s}){var F;const c=$e(),l=u.useRef(null),n=u.useRef(Ee(0)),h=u.useRef(null),f=u.useRef(null),j=u.useRef(!1),E=u.useRef(0),A=u.useRef(0),[N,d]=u.useState(()=>({simulation:n.current,elapsed:0})),y=u.useCallback(()=>{E.current+=1,n.current={...n.current,runner:ge(n.current.runner,performance.now())},s==null||s()},[s]),v=u.useCallback(()=>{j.current||f.current!==null||(n.current={...n.current,runner:G(n.current.runner)})},[]),S=u.useCallback(o=>{f.current===o&&(f.current=null,v())},[v]),g=u.useCallback(o=>{f.current===o&&(f.current=null,!j.current&&(n.current={...n.current,runner:{...G(n.current.runner),jumpBufferedUntil:0}}))},[]),k=u.useCallback(()=>{j.current=!1,f.current=null,n.current={...n.current,runner:{...G(n.current.runner),jumpBufferedUntil:0}}},[]);u.useEffect(()=>{const o=m=>{Ue({code:m.code,repeat:m.repeat,target:m.target,activeElement:document.activeElement})&&(m.preventDefault(),j.current=!0,y())},_=m=>{m.code!=="Space"||!j.current||(j.current=!1,v())},R=m=>S(m.pointerId),T=m=>g(m.pointerId);return window.addEventListener("keydown",o),window.addEventListener("keyup",_),window.addEventListener("pointerup",R),window.addEventListener("pointercancel",T),window.addEventListener("blur",k),()=>{window.removeEventListener("keydown",o),window.removeEventListener("keyup",_),window.removeEventListener("pointerup",R),window.removeEventListener("pointercancel",T),window.removeEventListener("blur",k)}},[y,v,k]),u.useEffect(()=>{let o=!1;const _=()=>{var K;if(h.current=null,o||document.visibilityState==="hidden")return;const m=((K=l.current)==null?void 0:K.clientWidth)||(typeof window<"u"?window.innerWidth:0),H=n.current,B=Oe(m===
1H.width?H:{...H,width:m},{clock:{now:()=>performance.now()},random:()=>Math.random()});n.current=B.state,A.current+=B.step*(1e3/60),d({simulation:B.state,elapsed:A.current}),R()},R=()=>{!o&&document.visibilityState!=="hidden"&&h.current===null&&(h.current=requestAnimationFrame(_))},T=()=>{n.current=P(n.current),document.visibilityState==="hidden"?(k(),h.current!==null&&cancelAnimationFrame(h.current),h.current=null):R()};return document.addEventListener("visibilitychange",T),R(),()=>{o=!0,document.removeEventListener("visibilitychange",T),h.current!==null&&cancelAnimationFrame(h.current),h.current=null,k(),n.current=P(n.current)}},[k]);const L=((F=l.current)==null?void 0:F.clientWidth)||(typeof window<"u"?window.innerWidth:1280),p=Math.max(1800,L+760),D=Math.floor(N.elapsed/Fe)%3,M=c?0:Math.round(N.elapsed*9/(1e3/60))%re,O=c?0:N.elapsed*9/(1e3/60),x=[-1,0,1],b=N.simulation.runner,C=o=>{var _,R;if(!(X(o.target)||f.current!==null)){f.current=o.pointerId;try{(R=(_=o.currentTarget).setPointerCapture)==null||R.call(_,o.pointerId)}catch{}y()}},I=o=>{S(o.pointerId)},U=o=>{g(o.pointerId)};return t.jsxs("div",{className:"absolute inset-0 z-10 select-none overflow-hidden","data-loading-runner-scene":"true","data-reduced-motion":String(c),onPointerDown:C,onPointerUp:I,onPointerCancel:U,children:[t.jsx("div",{className:"absolute top-0 left-0 w-full p-4 md:p-8 flex justify-end items-start z-30 pointer-events-none","aria-live":"polite",children:t.jsxs("div",{className:"bg-white/90 backdrop-blur rounded-full px-4 py-2 shadow border border-slate-200/80 flex items-center gap-2",children:[t.jsx("span",{className:"text-xs font-bold text-slate-500 uppercase tracking-wide",children:"Score"}),t.jsx("span",{className:"text-xl font-black text-slate-800 tabular-nums","data-runner-score":!0,children:Math.floor(N.simulation.score)})]})}),t.jsx(W,{src:w.backdrop,alt:"",className:"absolute inset-0 h-full w-full object-cover object-bottom pointer-events-none select-none",fallback:t.jsx("div",{className:"absolute inset-0 loading-runner-backdrop-fallback","aria-hidden":"true"})}),t.jsx("div",{className:"absolute inset-0 pointer-events-none bg-gradient-to-b from-white/10 via-white/0 to-[#eef7e7]/20"}),t.jsx("div",{className:"absolute left-0 right-0 overflow-visible z-10 loading-game-area",style:{bottom:0,height:280},children:t.jsxs("div",{ref:l,className:"relative w-full h-full","data-loading-runner-canvas":"true",children:[t.jsxs("div",{className:"absolute inset-0 overflow-hidden","data-loading-runner-world-clip":"true",children:[De.flatMap(o=>{const T=((o.baseRatio*p-O*o.speed)%p+p)%p,m=o.src===w.tree;return x.map(H=>t.jsx("div",{className:`absolute pointer-events-none select-none ${o.key.includes("tall")?"hidden sm:block":""}`,style:{left:Math.round(T+H*p),bottom:J+o.bottomOffset,width:o.width,height:o.width*1.55,opacity:o.opacity,filter:"drop-shadow(0 14px 14px rgba(85, 63, 34, 0.18))"},children:t.jsx(W,{src:o.src,alt:"",className:"h-full w-full object-contain object-bottom",fallback:t.jsx(Ge,{kind:m?"tree":"house"}),draggable:!1})},`${o.key}-${H}`))}),t.jsx(Ve,{offset:M}),N.simulation.obstacles.map(o=>t.jsx(Be,{obstacle:o},o.id))]}),t.jsx("div",{className:`absolute bottom-0 transition-none ${N.simulation.isHit&&!c?"loading-runner-hit":""}`,"data-loading-runner-character":"true","data-runner-jumping":String(b.isJumping),"data-runner-jump-held":String(b.jumpHeld),"data-runner-jump-buffered":String(b.jumpBufferedUntil>0),"data-runner-jump-count":String(E.current),style:{bottom:J-8,left:z,width:te,height:de,transform:`translateY(${b.y}px)`},children:t.jsx(Ce,{isJumping:b.isJumping,runFrame:D,runImageUrl:e,runImageUrlAlt:a,runImageUrlThird:r,jumpImageUrl:i})})]})}),t.jsx("style",{children:` 2 @keyframes loading-runner-hit-flash { 3 0%, 100% { opacity: 1; filter: blur(0) saturate(1); } 4 25%, 75% { opacity: 0.24; filter: blur(4px) saturate(0.65); } 5 50% { opacity: 0.72; filter: blur(1.5px) saturate(0.85); } 6 } 7 .loading-runner-hit { 8 animation: loading-runner-hit-flash 320ms steps(2, end) infinite; 9 will-change: opacity, filter; 10 } 11 .loading-runner-backdrop-fallback { 12 background: linear-gradient(180deg, #cce9f3 0%, #e9f4df 63%, #b9d59a 100%); 13 } 14 .loading-runner-ground-fallback { 15 height: ${Y}px; 16 background: repeating-linear-gradient(135deg, #9a6b3c 0 18px, #81552f 18px 36px); 17 border-top: 5px solid #6c492d; 18 } 19 .loading-runner-scenery-fallback { position: absolute; inset: 12% 0 0; } 20 .loading-runner-house-fallback { 21 background: linear-gradient(135deg, #d58c5e 0 68%, #8a513d 68% 100%); 22 border: 3px solid #744434; 23 clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 100%, 0 100%); 24 } 25 .loading-runner-tree-fallback { 26 background: radial-gradient(circle at 50% 24%, #4e8c56 0 33%, transparent 34%), linear-gradient(90deg, transparent 43%, #765032 43% 58%, transparent 59%); 27 } 28 .loading-runner-obstacle-fallback { height: 100%; width: 100%; } 29 .loading-runner-stump-fallback { background: linear-gradient(90deg, #6e4027, #b4773e 45%, #63391f); border: 3px solid #4b2b1b; border-radius: 45% 45% 12% 12%; } 30 .loading-runner-rocks-fallback { display: flex; align-items: end; justify-content: center; gap: 2px; } 31 .loading-runner-rocks-fallback i { display: block; width: 38%; height: 60%; background: #687477; border: 2px solid #424c4d; border-radius: 55% 45% 20% 20%; transform: rotate(-12deg); } 32 .loading-runner-rocks-fallback i:nth-child(2) { height: 80%; transform: rotate(5deg); } 33 .loading-runner-rocks-fallback i:nth-child(3) { transform: rotate(14deg); } 34 .loading-runner-crate-fallback { background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(75, 43, 23, .7) 12px 16px), #b9763c; border: 4px solid #673b20; } 35 @media (prefers-reduced-motion: reduce) { 36 .loading-runner-hit { animation: none; } 37 } 38 `})]})}const Xe="/assets/local/loading/runner-run-1.png",Je="/assets/local/loading/runner-run-2.png",Ye="/assets/local/loading/runner-run-3.png",qe="/assets/local/loading/runner-jump.png",at=({language:e,loadingPhase:a=null,
38scriptProgress:r=0,intensiveProgress:i=null,isVoiceEnabled:s=!1,ttsProgress:c,ttsQueueInfo:l=null,streamingProgress:n=null,dinoRunImageUrl:h=Xe,dinoRunImageUrlAlt:f=Je,dinoRunImageUrlThird:j=Ye,dinoJumpImageUrl:E=qe})=>{const[A,N]=u.useState(0),d=le[e],y=Math.min(100,Math.round(r)),v=i&&i.total>0?Math.min(100,Math.round(i.current/i.total*100)):0,S=c&&c.total>0?Math.min(100,Math.round(c.current/c.total*100)):0,g=(n==null?void 0:n.phase)==="voice_wait",k=(n==null?void 0:n.phase)==="video_transcription",L=(n==null?void 0:n.sectionVoiceTerminal)??0,p=(n==null?void 0:n.sectionVoiceTotal)??0,D=(n==null?void 0:n.sectionVoicePending)??Math.max(0,p-L),M=p>0?Math.min(100,Math.round(L/p*100)):0,O=(()=>{if(!s)return null;if(!l)return"æ£å¨ç¡®è®¤è¯é³éåç¶æ...";const I=(c==null?void 0:c.total)??(n==null?void 0:n.voiceTotal)??0,U=(c==null?void 0:c.current)??(n==null?void 0:n.voiceTerminal)??0,F=l.etaMinutes>0?`ï¼é¢è®¡çº¦ ${l.etaMinutes} åé`:"",o=typeof l.framesAhead=="number"&&l.framesAhead>0?` / ${l.framesAhead} æ¡è¯é³å¸§ä»»å¡`:"";return l.state==="queued"&&typeof l.jobsAhead=="number"?l.jobsAhead>0?`è¯é³æéä¸ï¼åæ¹ ${l.jobsAhead} ç¯è®ºæ${o}${F}`:"è¯é³éååæ¹æ 人ï¼å·²è½®å°ä½ ï¼æ£å¨çå¾
è¯é³å·¥ä½å¨æ¥æ":l.state==="active"?I>0?`已轮å°ä½ ï¼æ¬è®ºæè¯é³çæä¸ ${U} / ${I}`:"已轮å°ä½ ï¼è¯é³çæåå¤ä¸":l.state==="done"?"è¯é³å·²åå¤å¥½":l.state==="failed"?"è¯é³çæå¤±è´¥ï¼æ£å¨å°è¯ç»§ç»å§æ
":l.state==="cancelled"?"è¯é³çæå·²åæ¶":typeof l.framesAhead=="number"?l.framesAhead>0?`è¯é³æéä¸ï¼åæ¹ ${l.framesAhead} æ¡è¯é³å¸§ä»»å¡${F}`:"è¯é³éååæ¹æ 人ï¼å·²è½®å°ä½ ï¼æ£å¨åå¤è¯é³å¸§":l.queueAhead>0?`è¯é³æéä¸ï¼åæ¹ ${l.queueAhead} æ¡è¯é³ä»»å¡${F}`:"è¯é³éååæ¹æ 人ï¼å·²è½®å°ä½ ï¼æ£å¨åå¤è¯é³"})(),x=a==="voice"?d.loadingVoiceMessage||d.generatingVoice||d.loadingVoiceLabel||"è¯é³çæä¸...":k?e==="zh"?"æ£å¨æåè§é¢å广è¯å«è¯é³...":e==="ja"?"åç»ã®åå¹ã¨é³å£°ãè§£æãã¦ãã¾ã...":e==="ru"?"Ðзвлекаем ÑÑбÑиÑÑÑ Ð¸ ÑаÑпознаÑм ÑеÑÑ...":"Extracting subtitles or transcribing audio...":g?d.loadingVoiceWaitMessage||"å½åç« èè¯é³æ¶éä¸...":d.loadingScriptMessage||d.loadingScriptLabel||d.reading||"å§æ
çæä¸...",b={href:"https://watcha.cn/",title:"Visit GuanCha Insights",domain:"watcha.cn",logoSrc:"https://assert.paper2gal.com/assert/wei-xin-tu-pian-20251228171845.png",logoAlt:"GuanCha Insights",headline:d.adSlogan||"GuanCha Insights"},C=oe({scriptPercent:y,isVoiceEnabled:s,loadingPhase:a,ttsProgress:c});return u.useEffect(()=>{const I=setInterval(()=>{N(U=>U+(C-U)*.075)},50);return()=>clearInterval(I)},[C]),t.jsxs("div",{className:"absolute inset-0 z-50 flex flex-col items-center justify-center overflow-hidden font-sans select-none bg-[#f7f7f7]",children:[t.jsx("div",{className:"absolute top-0 left-0 w-full p-4 md:p-8 flex justify-between items-start z-30 pointer-events-none",children:t.jsxs("div",{className:"bg-white/90 backdrop-blur rounded-xl px-4 py-2 shadow border border-slate-200/80",children:[t.jsx("p",{className:"font-bold text-slate-700 text-xs md:text-sm",children:x}),s&&O&&t.jsx("p",{className:"text-[10px] md:text-xs text-slate-500 mt-0.5",children:O}),g&&n&&t.jsx("p",{className:"text-[10px] md:text-xs text-slate-500 mt-0.5",children:`ç« è ${n.currentSection}/${n.totalSections}ï¼å·²å®æ ${n.sectionVoiceTerminal??0}/${n.sectionVoiceTotal??0}ï¼å¾
宿 ${n.sectionVoicePending??0}${n.publishBlockedByEarlierSection?"ï¼çå¾
æ´æ©ç« èåå¸ï¼":""}`}),t.jsx("p",{className:"text-[10px] md:text-xs text-slate-400 mt-0.5",children:d.loadingJumpHint||"Space or tap to jump"})]})}),t.jsx("div",{className:"absolute left-1/2 top-[36%] md:top-1/2 z-20 ad-container -translate-x-1/2 -translate-y-1/2",children:t.jsx("div",{className:"relative w-36 sm:w-48 md:w-96 overflow-hidden rounded-2xl md:rounded-[32px] bg-white/60 backdrop-blur-xl border border-white/80 shadow-[0_20px_50px_rgba(0,0,0,0.1)]",children:t.jsxs("div",{className:"relative z-10 p-2 sm:p-3 md:p-8 flex flex-col items-center text-center gap-1.5 sm:gap-2 md:gap-5",children:[t.jsxs("a",{href:b.href,target:"_blank",rel:"noopener noreferrer",className:"relative p-1.5 md:p-3 transition-transform duration-300 hover:-translate-y-1 cursor-pointer block group",title:b.title,children:[t.jsx("img",{src:b.logoSrc,alt:b.logoAlt,className:"h-7 md:h-20 w-auto object-contain"}),t.jsxs("div",{className:"absolute -bottom-4 left-1/2 transform -translate-x-1/2 opacity-0 group-hover:opacity-100 transition-opacity flex items-center gap-1 text-[10px] text-slate-400 whitespace-nowrap bg-black/50 px-2 py-0.5 rounded-full",children:[t.jsx("span",{children:b.domain})," ",t.jsx(ce,{size:10})]})]}),t.jsxs("div",{className:"space-y-1.5 md:space-y-4 w-full border-t border-slate-200/50 pt-2.5 md:pt-5",children:[t.jsx("h3",{className:"text-base md:text-3xl font-black text-slate-800 tracking-tight font-serif italic",children:b.headline}),t.jsxs("div",{className:"flex flex-col gap-2 md:gap-3 w-full",children:[t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsxs("div",{className:"flex items-center justify-between text-[10px] md:text-xs font-bold text-slate-600",children:[t.jsx("span",{children:d.loadingScriptLabel||"å§æ
çæ"}),t.jsxs("span",{className:"tabular-nums",children:[y,"%"]})]}),t.jsx("div",{className:"h-1.5 md:h-2 bg-slate-200 rounded-full overflow-hidden",children:t.jsx("div",{className:"h-full bg-gradient-to-r from-amber-400 to-amber-500 transition-all duration-300 ease-out rounded-full",style:{width:`${y}%`}})})]}),a!=="voice"&&i&&i.total>0&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsxs("div",{className:"flex items-center justify-between text-[10px] md:text-xs font-bold text-slate-600",children:[t.jsx("span",{children:d.loadingChapter
38Label||(e==="zh"?"ç« èè¿åº¦":"Chapter progress")}),t.jsxs("span",{className:"tabular-nums",children:[i.current,"/",i.total," (",v,"%)"]})]}),t.jsx("div",{className:"h-1.5 md:h-2 bg-slate-200 rounded-full overflow-hidden",children:t.jsx("div",{className:"h-full bg-gradient-to-r from-sky-400 to-sky-500 transition-all duration-300 ease-out rounded-full",style:{width:`${v}%`}})})]}),s&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsxs("div",{className:"flex items-center justify-between text-[10px] md:text-xs font-bold text-slate-600",children:[t.jsx("span",{children:d.loadingVoiceLabel||"è¯é³çæ"}),t.jsx("span",{className:"tabular-nums",children:a==="voice"?`${S}%`:g?`${L}/${p||0}`:d.loadingWaitHint||"çå¾ ä¸..."})]}),t.jsx("div",{className:"h-1.5 md:h-2 bg-slate-200 rounded-full overflow-hidden",children:t.jsx("div",{className:"h-full bg-gradient-to-r from-pink-400 to-pink-500 transition-all duration-300 ease-out rounded-full",style:{width:a==="voice"?`${S}%`:g?`${M}%`:"0%"}})}),g&&t.jsx("p",{className:"text-[9px] md:text-[10px] text-slate-400 font-medium pt-0.5",children:`å¾ å¤ç ${(n==null?void 0:n.sectionVoicePending)??D} æ¡${n!=null&&n.publishBlockedByEarlierSection?"ï¼å½åç« è已就绪ï¼çå¾ æ´æ©ç« èåå¸":""}`})]}),t.jsx("p",{className:"text-[9px] md:text-[10px] text-slate-400 font-medium pt-0.5",children:d.loadingInteractionHint||"请ç¨åï¼å¯æç©ºæ ¼æç¹å»å±å¹è·³è·"})]})]})]})})}),t.jsx(ze,{dinoRunImageUrl:h,dinoRunImageUrlAlt:f,dinoRunImageUrlThird:j,dinoJumpImageUrl:E}),t.jsx("div",{className:"absolute bottom-0 left-0 w-full h-1.5 bg-slate-200 z-50",children:t.jsx("div",{className:"h-full bg-gradient-to-r from-emerald-500 to-teal-500 transition-all duration-300 ease-out",style:{width:`${A}%`}})}),t.jsx("style",{children:` 39 @media (max-height: 600px) { 40 .ad-container { 41 top: 38%; 42 transform: translate(-50%, -58%) scale(0.9); 43 } 44 } 45 46 @media (max-height: 520px) { 47 .ad-container { 48 top: 36%; 49 transform: translate(-50%, -60%) scale(0.8); 50 } 51 } 52 53 /* è¶ çªææºï¼åç¼©ä¸æ¡£ï¼ç¡®ä¿ä¸æ¡ä½æ¸¸æ */ 54 @media (max-width: 420px) { 55 .ad-container { 56 transform: translate(-50%, -60%) scale(0.82); 57 } 58 } 59 `})]})};export{at 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.