1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47005,e=>{"use strict";var t=e.i(43476),n=e.i(71645);function r(){let e=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let t=e.current;if(!t)return;let n=t.getContext("webgl",{antialias:!1,alpha:!1});if(!n)return;let r=()=>{let e=Math.min(window.devicePixelRatio||1,1.25);t.width=window.innerWidth*e,t.height=window.innerHeight*e,n.viewport(0,0,t.width,t.height)};r(),window.addEventListener("resize",r);let i=` 2 precision highp float; 3 uniform vec2 uRes; uniform float uTime; uniform vec2 uMouse; 4 vec2 hash2(vec2 p){ p = vec2(dot(p,vec2(127.1,311.7)), dot(p,vec2(269.5,183.3))); return -1.0+2.0*fract(sin(p)*43758.5453); } 5 float noise(vec2 p){ vec2 i=floor(p); vec2 f=fract(p); vec2 u=f*f*(3.0-2.0*f); 6 return mix(mix(dot(hash2(i+vec2(0,0)),f-vec2(0,0)),dot(hash2(i+vec2(1,0)),f-vec2(1,0)),u.x), 7 mix(dot(hash2(i+vec2(0,1)),f-vec2(0,1)),dot(hash2(i+vec2(1,1)),f-vec2(1,1)),u.x),u.y); } 8 float fbm(vec2 p){ float v=0.0; float a=0.5; mat2 rot=mat2(0.8,0.6,-0.6,0.8); 9 for(int i=0;i<5;i++){ v+=a*noise(p); p=rot*p*2.0; a*=0.5; } return v; } 10 void main(){ 11 vec2 uv = (gl_FragCoord.xy-0.5*uRes)/min(uRes.x,uRes.y); 12 vec2 m = (uMouse-0.5*uRes)/min(uRes.x,uRes.y); 13 float t = uTime*0.12; 14 15 // === domain warping(æµä½æ ¸å¿),èªä¸»æµå¨,ä¸è·éé¼ æ === 16 vec2 q = vec2(fbm(uv*1.3+vec2(0.0,t)), fbm(uv*1.3+vec2(5.2,-t*0.8))); 17 vec2 r = vec2(fbm(uv*1.3+2.0*q+vec2(1.7,9.2)+t*0.6), 18 fbm(uv*1.3+2.0*q+vec2(8.3,2.8)-t*0.4)); 19 float purpleField = fbm(uv*1.05+r*1.5+vec2(t*0.5,0.0)); 20 float violetField = fbm(uv*1.05+r*1.5+vec2(3.7,t*0.6)); 21 float goldField = fbm(uv*1.05+r*1.5+vec2(7.1,-t*0.45)); 22 23 // QuickRouter é è²:深紫é»åº / ç´« / ç´«ç½å ° / é(å å¶ç´«éè°,ä¸åºç¼) 24 vec3 dark=vec3(0.055,0.025,0.110); 25 vec3 purple=vec3(0.42,0.21,0.78); // #6b35c7 ç´« 26 vec3 violet=vec3(0.29,0.12,0.65); // #4b1fa7 ç´«ç½å ° 27 vec3 gold=vec3(0.96,0.76,0.26); // #f5c242 é 28 vec3 col = dark; 29 // smoothstep 䏿®µéå¼:è²åºåªå¨äºå¢é«ä½æ¾è²,æ´ä½åæãæµå¨ææ¥èªææå¯¹æ¯ 30 col = mix(col,purple,smoothstep(0.18,0.52,purpleField)*0.82); 31 col = mix(col,violet,smoothstep(0.22,0.55,violetField)*0.82); 32 col = mix(col,gold,smoothstep(0.30,0.62,goldField)*0.5); 33 34 // éè²æµå è线:ä» å¨äºå¢äº¤çå¤ç¨çåºç°,å å¶æäº® 35 float ridge = abs(purpleField - goldField); 36 float highlight = pow(smoothstep(0.18, 0.34, ridge), 2.0); 37 col += gold * highlight * 0.22; 38 39 // === é¼ æ ç§»å¨é«äº®:å æ 夿ååå è·é(䏿¨å¼æµä½) === 40 float distToMouse = distance(uv, m); 41 float mouseGlow = smoothstep(0.5, 0.0, distToMouse); 42 col += (purple + gold*0.6) * mouseGlow * 0.22; 43 44 // å¼± vignette 45 float vig = 1.0 - dot(uv*0.22,uv*0.22); 46 col *= clamp(vig,0.78,1.0); 47 col += (fract(sin(dot(gl_FragCoord.xy,vec2(12.9898,78.233)))*43758.5453)-0.5)*0.012; 48 gl_FragColor = vec4(col,1.0); 49 } 50 `,l=(e,t)=>{let r=n.createShader(e);return r?(n.shaderSource(r,t),n.compileShader(r),n.getShaderParameter(r,n.COMPILE_STATUS))?r:(console.error(n.getShaderInfoLog(r)),null):null},a=n.createProgram();if(!a)return;let s=l(n.VERTEX_SHADER,"attribute vec2 p; void main(){ gl_Position = vec4(p,0.,1.); }"),o=l(n.FRAGMENT_SHADER,i);if(!s||!o)return;if(n.attachShader(a,s),n.attachShader(a,o),n.linkProgram(a),!n.getProgramParameter(a,n.LINK_STATUS))return void console.error(n.getProgramInfoLog(a));n.useProgram(a);let c=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,c),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),n.STATIC_DRAW);let d=n.getAttribLocation(a,"p");n.enableVertexAttribArray(d),n.vertexAttribPointer(d,2,n.FLOAT,!1,0,0);let u=n.getUniformLocation(a,"uRes"),p=n.getUniformLocation(a,"uTime"),m=n.getUniformLocation(a,"uMouse"),h=[t.width/2,t.height/2],x=[t.width/2,t.height/2],f=e=>{let t=Math.min(window.devicePixelRatio||1,1.25);h[0]=e.clientX*t,h[1]=(window.innerHeight-e.clientY)*t},g=e=>{if(e.touches[0]){let t=Math.min(window.devicePixelRatio||1,1.25);h[0]=e.touches[0].clientX*t,h[1]=(window.innerHeight-e.touches[0].clientY)*t}};window.addEventListener("mousemove",f),window.addEventListener("touchmove",g,{passive:!0});let b=performance.now(),v=null,y=1e3/30,w=0,j=e=>{e-w>=y&&(x[0]+=(h[0]-x[0])*.12,x[1]+=(h[1]-x[1])*.12,n.uniform2f(u,t.width,t.height),n.uniform1f(p,(e-b)/1e3),n.uniform2f(m,x[0],x[1]),n.drawArrays(n.TRIANGLES,0,6),w=e);v=requestAnimationFrame(j)};v=requestAnimationFrame(j);let k=()=>{document.hidden?null!==v&&(cancelAnimationFrame(v),v=null):null===v&&(v=requestAnimationFrame(j))};return document.addEventListener("visibilitychange",k),()=>{null!==v&&cancelAnimationFrame(v),window.removeEventListener("resize",r),window.removeEventListener("mousemove",f),window.removeEventListener("touchmove",g),document.removeEventListener("visibilitychange",k),n.deleteProgram(a),n.deleteShader(s),n.deleteShader(o),c&&n.deleteBuffer(c)}},[]),(0,t.jsx)("canvas",{ref:e,"aria-hidden":"true",style:{position:"fixed",inset:0,zIndex:0,width:"100%",height:"100%",display:"block"}})}let i=[[107,53,199],[245,194,66],[109,53,215]];function l(){let e=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let t=e.current;if(!t)return;let n=t.getContext("2d");if(!n)return;let r=1;function l(){r=Math.min(window.devicePixelRatio||1,1.5),t.width=window.innerWidth*r,t.height=window.innerHeight*r,t.style.width=window.innerWidth+"px",t.style.height=window.innerHeight+"px",n.setTransform(r,0,0,r,0,0)}l(),window.addEventListener("resize",l);let a=[],s=window.matchMedia("(max-width: 640px)").matches?18:50;for(let e=0;e<s;e++)a.push(function(e,t){let n=-(.15+.4*Math.random());return{x:Math.random()*e,y:Math.random()*t,vx:(Math.random()-.5)*.3,vy:n,baseVy:n,r:.5+2*Math.random(),maxA:.3
50+.5*Math.random(),color:i[Math.floor(3*Math.random())],twinkle:Math.random()*Math.PI*2}}(window.innerWidth,window.innerHeight));let o={x:window.innerWidth/2,y:window.innerHeight/2};function c(e){o.x=e.clientX,o.y=e.clientY}window.addEventListener("mousemove",c);let d=null,u=1e3/30,p=0;function m(e){e-p>=u&&(!function(){n.clearRect(0,0,window.innerWidth,window.innerHeight);for(let e=0;e<a.length;e++){let t=a[e],r=t.x-o.x,i=t.y-o.y,l=Math.sqrt(r*r+i*i);if(l<160&&l>2){let e=(1-l/160)*.5;t.vx+=r/l*e,t.vy+=i/l*e}t.x+=t.vx,t.y+=t.vy,t.twinkle+=.05,t.vx=.94*t.vx,t.vy=.94*t.vy+.06*t.baseVy,t.y<-20&&(t.y=window.innerHeight+20,t.x=Math.random()*window.innerWidth),t.y>window.innerHeight+40&&(t.y=-20),t.x<-40&&(t.x=window.innerWidth+20),t.x>window.innerWidth+40&&(t.x=-20);let s=t.maxA*(.6+.4*Math.sin(t.twinkle)),[c,d,u]=t.color;n.beginPath(),n.arc(t.x,t.y,3*t.r,0,2*Math.PI),n.fillStyle=`rgba(${c},${d},${u},${.15*s})`,n.fill(),n.beginPath(),n.arc(t.x,t.y,t.r,0,2*Math.PI),n.fillStyle=`rgba(${c},${d},${u},${s})`,n.fill()}}(),p=e),d=requestAnimationFrame(m)}function h(){document.hidden?null!==d&&(cancelAnimationFrame(d),d=null):null===d&&(d=requestAnimationFrame(m))}return d=requestAnimationFrame(m),document.addEventListener("visibilitychange",h),()=>{window.removeEventListener("resize",l),window.removeEventListener("mousemove",c),document.removeEventListener("visibilitychange",h),null!==d&&cancelAnimationFrame(d)}},[]),(0,t.jsx)("canvas",{ref:e,"aria-hidden":"true",style:{position:"fixed",inset:0,zIndex:1,pointerEvents:"none",width:"100%",height:"100%"}})}let a="(prefers-reduced-motion: reduce)",s=e=>{let t=window.matchMedia(a);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)},o=()=>window.matchMedia(a).matches,c=()=>!0;e.s(["GravityHome",0,function({children:e}){let i=(0,n.useRef)(null),a=(0,n.useSyncExternalStore)(s,o,c);return(0,n.useEffect)(()=>{let e=i.current;if(!e||a||"u"<typeof IntersectionObserver)return;let t=Array.from(e.querySelectorAll("section h2, .qr-premium-card, .gravity-tool, .gravity-media-card, .qr-faq-card, .qr-code-panel")),n=t.filter(e=>!e.closest(".qr-hero-bg, .qr-scroll-reveal, .qr-reveal-stagger")&&!t.some(t=>t!==e&&t.contains(e))),r=new Set,l=new IntersectionObserver(e=>{e.filter(e=>e.isIntersecting).forEach((e,t)=>{if(l.unobserve(e.target),document.hidden)return;let n=window.matchMedia("(max-width: 640px)").matches,i=e.target.animate([{opacity:.25,translate:`0 ${n?14:26}px`},{opacity:1,translate:"0 0"}],{duration:n?480:650,delay:Math.min(70*t,210),easing:"cubic-bezier(.16,1,.3,1)",fill:"backwards"});r.add(i),i.onfinish=()=>r.delete(i)})},{threshold:0,rootMargin:"0px 0px -5% 0px"});n.forEach(e=>l.observe(e));let s=()=>{r.forEach(e=>e.cancel()),r.clear()},o=()=>{document.hidden&&s()},c=()=>s();return document.addEventListener("visibilitychange",o),e.addEventListener("focusin",c),()=>{l.disconnect(),s(),document.removeEventListener("visibilitychange",o),e.removeEventListener("focusin",c)}},[a]),(0,n.useEffect)(()=>{let e=i.current;if(!e)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)"),n=window.matchMedia("(hover: hover) and (pointer: fine)"),r=0,l=0,a=0,s=null,o=()=>{r=0;let t=e.querySelector(".qr-hero-bg");if(t&&t.getBoundingClientRect().bottom>0&&(t.style.setProperty("--gravity-x",`${(l/window.innerWidth-.5)*14}px`),t.style.setProperty("--gravity-y",`${(a/window.innerHeight-.5)*10}px`)),s){let e=s.getBoundingClientRect();s.style.setProperty("--light-x",`${l-e.left}px`),s.style.setProperty("--light-y",`${a-e.top}px`)}},c=e=>{!t.matches&&n.matches&&(l=e.clientX,a=e.clientY,s=e.target instanceof Element?e.target.closest(".gravity-tool, .qr-premium-card, .gravity-media-card, .qr-code-panel, .qr-model-section .qr-card"):null,r||(r=requestAnimationFrame(o)))};return e.addEventListener("pointermove",c,{passive:!0}),()=>{e.removeEventListener("pointermove",c),cancelAnimationFrame(r)}},[]),(0,t.jsxs)("main",{ref:i,className:"qr-page-shell qr-gravity-home relative min-h-screen text-white antialiased",children:[!a&&(0,t.jsxs)("div",{className:"gravity-live-background","aria-hidden":"true",children:[(0,t.jsx)(r,{}),(0,t.jsx)(l,{})]}),e]})}],47005)},15057,e=>{"use strict";
50let t=(0,e.i(75254).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",0,t],15057)},13628,e=>{"use strict";var t=e.i(43476),n=e.i(22016),r=e.i(15057),i=e.i(98345);e.s(["ApiTaskSection",0,function(){let{language:e}=(0,i.useLanguage)(),l="zh"===e;return(0,t.jsx)("section",{className:"qr-section","aria-labelledby":"api-tasks-title",children:(0,t.jsxs)("div",{className:"mx-auto max-w-6xl",children:[(0,t.jsx)("h2",{id:"api-tasks-title",className:"text-3xl font-bold tracking-tight text-white md:text-4xl",children:l?"æå¼åä»»å¡éæ© API":"Choose an API for your task"}),(0,t.jsx)("p",{className:"mt-4 max-w-2xl text-base leading-8 text-[#D9D2E9]",children:l?"ä»ä½ è¦å®æçä»»å¡åºåï¼æ¥çéç¨èå´ãè´¹ç¨ä¸æ¥å
¥æ¥éª¤ã":"Start with your task. Review capabilities, costs and setup steps."}),(0,t.jsx)("div",{className:"mt-8 divide-y divide-white/15 border-y border-white/15",children:[{href:"/questions/codex-api-domestic",title:l?"Codex ç¼ç¨æ¥å
¥":"Codex integration",text:l?"å
æ ¸å¯¹åè®®ãä»·æ ¼ä¸å·²éªè¯è½åï¼åéè¿ CC Switch æ¥å
¥ã":"Check protocols, pricing and verified capabilities before connecting with CC Switch."},{href:"/models/grok",title:l?"Grok API ä¸è½¬":"Grok API access",text:l?"æ¥ç模ååä»·ãè°ç¨ç¤ºä¾ï¼ä»¥åææ¬ãæç´¢åå·¥å
·åè½çåºå«ã":"Check model prices, request examples and the scope of text, search and tool support."},{href:"/questions/openrouter-domestic",title:l?"OpenRouter å½å
æ¿ä»£":"OpenRouter alternatives",text:l?"å¤æè®¿é®ãæ¯ä»ä¸æ¨¡åæéé®é¢ï¼æå®é
éæ±æ¯è¾è¿ç§»æ¹æ¡ã":"Check connectivity, payments and model access, then compare migration options."}].map(e=>(0,t.jsxs)(n.default,{href:e.href,className:"group grid items-center gap-3 px-2 py-7 transition-colors hover:bg-white/5 focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#F5C242] md:grid-cols-[1fr_1.8fr_auto]",children:[(0,t.jsx)("h3",{className:"text-xl font-semibold text-[#F5C242]",children:e.title}),(0,t.jsx)("p",{className:"max-w-2xl leading-7 text-[#D9D2E9]",children:e.text}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 text-sm font-semibold text-white",children:[l?"æ¥çæ¹æ¡":"View guide",(0,t.jsx)(r.ArrowUpRight,{size:18,"aria-hidden":"true"})]})]},e.href))})]})})}])},65194,e=>{"use strict";var t=e.i(43476);e.s(["SectionHeading",0,function({eyebrow:e,title:n,description:r,highlight:i}){let l=n.indexOf(i);return(0,t.jsxs)("div",{className:"gravity-section-heading text-center",children:[(0,t.jsx)("div",{className:"qr-pricing-eyebrow",children:(0,t.jsx)("span",{children:e})}),(0,t.jsx)("h2",{className:"qr-pricing-display",children:l<0?n:(0,t.jsxs)(t.Fragment,{children:[n.slice(0,l),(0,t.jsx)("span",{children:i}),n.slice(l+i.length)]})}),(0,t.jsx)("p",{className:"qr-pricing-description",children:r})]})}])},43002,e=>{e.v({flow:"QuickStartSection-module__iz_6oa__flow",flowLight:"QuickStartSection-module__iz_6oa__flowLight",footer:"QuickStartSection-module__iz_6oa__footer",number:"QuickStartSection-module__iz_6oa__number",step:"QuickStartSection-module__iz_6oa__step",stepContent:"QuickStartSection-module__iz_6oa__stepContent",stepDescription:"QuickStartSection-module__iz_6oa__stepDescription",stepTitle:"QuickStartSection-module__iz_6oa__stepTitle",steps:"QuickStartSection-module__iz_6oa__steps",tool:"QuickStartSection-module__iz_6oa__tool",tools:"QuickStartSection-module__iz_6oa__tools"})},92387,e=>{"use strict";var t=e.i(43476),n=e.i(57688),r=e.i(65194),i=e.i(71645),l=e.i(72520),a=e.i(95468),s=e.i(78583),o=e.i(65261),c=e.i(10626),d=e.i(9912),u=e.i(79002),p=e.i(39312),m=e.i(98345),h=e.i(43002);let x={fontFamily:"var(--font-figtree)"},f=[{src:"/images/openai.png",alt:"OpenAI"},{src:"/images/claude.png",alt:"Claude"},{src:"/images/google.png",alt:"Gemini"},{src:"/images/deepseek.png",alt:"DeepSeek"},{src:"/images/grok.png",alt:"Grok"},{src:"/images/meta.png",alt:"Meta"},{src:"/images/mistral.png",alt:"Mistral"},{src:"/images/moonshot.png",alt:"Moonshot"},{src:"/images/xai.png",alt:"xAI"},{src:"/images/minimax.png",alt:"MiniMax"},{src:"/images/chatglm.png",alt:"ChatGLM"},{src:"/images/ollama.png",alt:"Ollama"}
50,{src:"/images/vidu.png",alt:"Vidu"}],g=[{src:"/images/claude.png",name:"Claude Code"},{src:"/images/openai.png",name:"Codex"},{src:"/images/brand_logos/opencode.svg",name:"OpenCode"},{src:"/images/google.png",name:"Gemini CLI"},{src:"/images/openclaw-bot.png",name:"OpenClaw"},{src:"/images/brand_logos/hermes.png",name:"Hermes"}],b=[{src:"/images/claude.png",name:"Claude Code"},{src:"/images/openai.png",name:"Codex"},{src:"/images/brand_logos/opencode.svg",name:"OpenCode"},{src:"/images/brand_logos/cursor.svg",name:"Cursor"},{src:"/images/brand_logos/cherrystudio.svg",name:"Cherry Studio"},{src:"/images/brand_logos/workbuddy.svg",name:"WorkBuddy"},{src:"/images/openclaw-bot.png",name:"OpenClaw"},{src:"/images/chatbox.png",name:"Chatbox"},{src:"/images/brand_logos/hermes.png",name:"Hermes"}];e.s(["default",0,function(){let{language:e,t:v}=(0,m.useLanguage)(),y="zh"===e,w=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e,t=w.current;if(!t)return;let n=window.matchMedia("(prefers-reduced-motion: reduce)"),r=!1,i=()=>{clearInterval(e),delete t.dataset.activeStep},l=()=>{if(i(),!r||document.hidden||n.matches)return;let l=0;t.dataset.activeStep=String(l),e=setInterval(()=>{(l+=1)>=4?clearInterval(e):t.dataset.activeStep=String(l)},1600)},a=new IntersectionObserver(([e])=>{r=e.isIntersecting,l()},{threshold:.35});return a.observe(t),n.addEventListener("change",l),document.addEventListener("visibilitychange",l),()=>{i(),a.disconnect(),n.removeEventListener("change",l),document.removeEventListener("visibilitychange",l)}},[]);let j=[{index:"01",icon:u.UserPlus,title:v.quickStartFlowStep1Title,desc:v.quickStartFlowStep1Desc},{index:"02",icon:o.KeyRound,title:v.quickStartFlowStep2Title,desc:v.quickStartFlowStep2Desc},{index:"03",icon:c.PlugZap,title:v.quickStartFlowStep3Title,desc:v.quickStartFlowStep3Desc},{index:"04",icon:d.Rocket,title:v.quickStartFlowStep4Title,desc:v.quickStartFlowStep4Desc}];return(0,t.jsx)("section",{className:"qr-section qr-quickstart-section overflow-hidden",children:(0,t.jsxs)("div",{className:"relative z-10 mx-auto max-w-6xl",children:[(0,t.jsxs)("div",{className:"qr-reveal-soft mb-12 text-center",children:[(0,t.jsx)(r.SectionHeading,{eyebrow:v.quickStartKicker,title:v.quickStartTitle,description:v.quickStartNewSubtitle,highlight:"å
¨ç400+大模å"}),(0,t.jsx)("div",{className:"mx-auto mt-6 flex w-fit max-w-full flex-wrap items-center justify-center gap-2 rounded-xl border border-white/10 bg-white/[0.035] px-3 py-2",children:f.map(e=>(0,t.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-lg border border-white/10 bg-[#12071F]/70",children:(0,t.jsx)(n.default,{src:e.src,alt:e.alt,width:22,height:22,unoptimized:!0,className:"h-[22px] w-auto"})},e.src))})]}),(0,t.jsx)("div",{className:"qr-code-panel qr-quickstart-code p-0",children:(0,t.jsxs)("div",{className:"qr-reveal-left grid grid-cols-1 lg:grid-cols-[1.08fr_0.92fr]",children:[(0,t.jsxs)("div",{className:`p-5 md:p-7 lg:p-8 ${h.default.flow}`,children:[(0,t.jsxs)("div",{className:"mb-6 flex flex-wrap items-center justify-between gap-4",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h3",{className:"text-2xl font-bold leading-snug text-white md:text-3xl",style:{...x},children:v.quickStartFlowTitle})}),(0,t.jsxs)("a",{href:"/go-register",target:"_blank",rel:"noopener noreferrer",className:"qr-primary-button qr-cta-shine gap-2 px-5 py-2.5 text-sm",style:{...x},children:[v.quickStartFreeTrialBtn,(0,t.jsx)(l.ArrowRight,{size:16,strokeWidth:2.5})]})]}),(0,t.jsx)("ol",{ref:w,className:`${h.default.steps} qr-reveal-stagger`,children:j.map(e=>{let n=e.icon;return(0,t.jsxs)("li",{className:h.default.step,children:[(0,t.jsx)("span",{className:h.default.number,children:e.index}),(0,t.jsxs)("div",{className:h.default.stepContent,children:[(0,t.jsxs)("h4",{className:h.default.stepTitle,children:[(0,t.jsx)(n,{size:18,"aria-hidden":"true"}),e.title]}),(0,t.jsx)("p",{className:h.default.stepDescription,children:e.desc})]})]},e.index)})}),(0,t.jsxs)("div",{className:h.default.footer,children:[(0,t.jsxs)("a",{href:"https://doc.quickrouter.ai",target:"_blank",rel:"noopener noreferrer",className:"qr-secondary-button gap-2 px-5 py-2.5 text-sm",style:{...x},children:[(0,t.jsx)(s.FileText,{size:17,strokeWidth:2.2}),v.quickStartDocCta]}),(0,t.jsx)("div",{className:`${h.default.tools} qr-reveal-stagger`,children:b.map(e=>(0,t.jsxs)("span",{className:h.default.tool,children:[(0,t.jsx)(n.default,{src:e.src,alt:"",width:32,height:32,unoptimized:!0,className:"object-contain"}),e.name]},e.name))})]})]}),(0,t.jsxs)("div",{className:"border-t border-white/10 bg-[radial-gradient(circle_at_75%_10%,rgba(84,214,255,0.11),transparent_34%),linear-gradient(150deg,rgba(20,9,35,0.98),rgba(10,4,20,0.96))] p-5 md:p-7 lg:border-l lg:border-t-0 lg:p-8",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full border border-emerald-400/25 bg-emerald-400/10 px-3 py-1 text-xs font-black text-emerald-300",style:{...x},children:[(0,t.jsx)(a.CheckCircle2,{size:14,strokeWidth:2.5}),y?"æ éæåé
ç½®":"No manual configuration"]}),(0,t.jsx)("h3",{className:"mt-4 text-2xl font-black text-white md:text-3xl",style:{...x},children:y?"éä¸ä¸ªå·¥å
·ï¼è½»æ¾å®ææ¥å
¥":"Pick a tool and connect in minutes"}),(0,t.jsx)("p",{className:"mt-3 max-w-md text-sm leading-7 text-[#B9ACCE] md:text-base",style:{...x},children:y?"å¤å¶ QuickRouter API Keyï¼éæ©éè¦é
ç½®çå¼åå·¥å
·ï¼å
¶ä½æ¥éª¤èªå¨å®æã":"Paste your QuickRouter API Key, select your development tool, and let the setup tool handle the rest."})]}),(0,t.jsx)(p.Zap,{className:"hidden shrink-0 text-[#F5C242] sm:block",size:30,strokeWidth:2.1})]}),(0,t.jsxs)("div",{className:"mt-7 grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("a",{href:"https://doc.quickrouter.ai/docs/tutorial-quickstart-tool.html",target:"_blank",rel:"noopener noreferrer",className:"group rounded-2xl border border-[#F5C242]/25 bg-[#F5C242]/[0.07] p-5 transition duration-200 hover:-translate-y-1 hover:border-[#F5C242]/55 hover:bg-[#F5C242]/[0.11]",children:[(0,t.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-2xl border border-[#F5C242]/30 bg-[#12071F]/70 shadow-[0_0_30px_rgba(245,194,66,0.12)]",children:(0,t.jsx)(n.default,{src:"/images/logo-dark.png",alt:"QuickRouter",width:44,height:44,unoptimized:!0,className:"h-11 w-11 object-contain"})}),(0,t.jsx)("p",{className:"mt-5 text-lg font-black text-white",style:{...x},children:y?"QuickRouter ä¸é®é
ç½®":"QuickRouter One-click Setup"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-6 text-[#B9ACCE]",style:{...x},children:y?"ä¸é®é
ç½®ï¼æ°æå¿«éå¼å§ã":"One-click setup for a quick start."}),(0,t.jsxs)("span",{className:"mt-5 inline-flex items-center gap-1.5 text-sm font-black text-[#F5C242]",
50style:{...x},children:[y?"æ¥çæç¨":"View guide",(0,t.jsx)(l.ArrowRight,{size:15,className:"transition-transform group-hover:translate-x-1"})]})]}),(0,t.jsxs)("a",{href:"https://doc.quickrouter.ai/docs/tutorial-cc-switch.html",target:"_blank",rel:"noopener noreferrer",className:"group rounded-2xl border border-[#54D6FF]/25 bg-[#54D6FF]/[0.06] p-5 transition duration-200 hover:-translate-y-1 hover:border-[#54D6FF]/55 hover:bg-[#54D6FF]/[0.1]",children:[(0,t.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-2xl border border-[#54D6FF]/25 bg-[#090D18]/70 shadow-[0_0_30px_rgba(84,214,255,0.12)]",children:(0,t.jsx)(n.default,{src:"/images/brand_logos/cc-switch.png",alt:"CC Switch",width:42,height:42,unoptimized:!0,className:"h-11 w-11 object-contain"})}),(0,t.jsx)("p",{className:"mt-5 text-lg font-black text-white",style:{...x},children:"CC Switch"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-6 text-[#B9ACCE]",style:{...x},children:y?"ç»ä¸ç®¡ç ClaudeãCodex çå·¥å
·é
ç½®ã":"Manage Claude, Codex, and more from one place."}),(0,t.jsxs)("span",{className:"mt-5 inline-flex items-center gap-1.5 text-sm font-black text-[#67DDFE]",style:{...x},children:[y?"æ¥çæç¨":"View guide",(0,t.jsx)(l.ArrowRight,{size:15,className:"transition-transform group-hover:translate-x-1"})]})]})]}),(0,t.jsxs)("div",{className:"mt-5 rounded-2xl border border-white/10 bg-white/[0.035] px-4 py-4",children:[(0,t.jsx)("p",{className:"text-xs font-black uppercase tracking-[0.14em] text-[#9F91B8]",style:{...x},children:y?"æ¯æçå¼åå·¥å
·":"Supported tools"}),(0,t.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:g.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-lg border border-white/10 bg-[#0D0519]/55 px-2.5 py-2 text-xs font-bold text-[#DCD2EC]",style:{...x},children:[(0,t.jsx)(n.default,{src:e.src,alt:"",width:18,height:18,unoptimized:!0,className:"h-[18px] w-[18px] object-contain"}),e.name]},e.name))})]}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-[1fr_auto_1fr_auto_1fr] items-center gap-2 rounded-2xl border border-white/10 bg-white/[0.035] px-4 py-4",children:[y?"ç²è´´ API Key":"Paste API Key",y?"鿩工å
·":"Select tool",y?"é
ç½®å®æ":"Ready"].map((e,n)=>(0,t.jsxs)("div",{className:"contents",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("span",{className:"mx-auto flex h-7 w-7 items-center justify-center rounded-full border border-emerald-400/25 bg-emerald-400/10 text-xs font-black text-emerald-300",children:n+1}),(0,t.jsx)("p",{className:"mt-2 text-xs font-bold text-[#DCD2EC]",style:{...x},children:e})]}),n<2?(0,t.jsx)(l.ArrowRight,{size:15,className:"text-[#F5C242]/60"}):null]},e))})]})]})})]})})}])},58524,e=>{"use strict";let t=(0,e.i(75254).default)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);e.s(["Link2",0,t],58524)},7887,e=>{"use strict";var t=e.i(43476),n=e.i(57688),r=e.i(70703),i=e.i(71645),l=e.i(72520),a=e.i(75254);let s=(0,a.default)("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]),o=(0,a.default)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]),c=(0,a.default)("earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var d=e.i(58524),u=e.i(9912),p=e.i(81418),m=e.i(83086),h=e.i(39312),x=e.i(98345);let f=(0,r.default)(()=>e.A(46456).then(e=>e.RoutingCore3D),{loadableGenerated:{modules:[3697]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"qr-hero-saturn-canvas qr-hero-routing-core qr-hero-vendor-orbit"})}),g=[{src:"/images/openai.png",alt:"OpenAI"},{src:"/images/deepseek.png",alt:"DeepSeek"},{src:"/images/google.png",alt:"Gemini"},{src:"/images/claude.png",alt:"Claude"},{src:"/images/grok.png",alt:"Grok"},{src:"/images/meta.png",alt:"Meta"},{src:"/images/mistral.png",alt:"Mistral"},{src:"/images/moonshot.png",alt:"Moonshot"},{src:"/images/xai.png",alt:"xAI"},{src:"/images/minimax.png",alt:"MiniMax"},{src:"/images/chatglm.png",alt:"ChatGLM"},{src:"/images/ollama.png",alt:"Ollama"}];e.s(["HeroSection",0,function(){let{t:e}=(0,x.useLanguage)(),[r,a]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=window.requestAnimationFrame(()=>a(!0));return()=>window.cancelAnimationFrame(e)},[]);let b=e.heroTitle.includes("â")?e.heroTitle.split("â").map(e=>
50e.trim()):null,v=[{title:e.heroFeature1Title,detail:e.heroFeature1Detail,icon:d.Link2},{title:e.heroFeature2Title,detail:e.heroFeature2Detail,icon:o},{title:e.heroFeature3Title,detail:e.heroFeature3Detail,icon:s}],y=[{value:e.heroFact1Value,label:e.heroFact1Label,icon:c},{value:e.heroFact2Value,label:e.heroFact2Label,icon:u.Rocket},{value:e.heroFact3Value,label:e.heroFact3Label,icon:s},{value:e.heroFact4Value,label:e.heroFact4Label,icon:p.ShieldCheck},{value:e.heroFact5Value,label:e.heroFact5Label,icon:h.Zap}],w=[{src:"/images/claude.png",alt:"Claude Code"},{src:"/images/openai.png",alt:"Codex"},{src:"/images/brand_logos/opencode.svg",alt:"OpenCode"},{src:"/images/brand_logos/cursor.svg",alt:"Cursor"},{src:"/images/brand_logos/cherrystudio.svg",alt:"Cherry Studio"},{src:"/images/brand_logos/workbuddy.svg",alt:"WorkBuddy"},{src:"/images/openclaw-bot.png",alt:"OpenClaw"},{src:"/images/chatbox.png",alt:"Chatbox"},{src:"/images/brand_logos/hermes.png",alt:"Hermes"}];return(0,t.jsxs)("section",{className:"qr-hero-bg relative overflow-hidden px-4 pb-10 pt-36 md:pb-12 min-[960px]:pt-24",children:[(0,t.jsx)("div",{className:"qr-hero-ambient","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"qr-hero-frame relative z-10 mx-auto max-w-[1440px]",children:[(0,t.jsxs)("div",{className:"qr-hero-layout",children:[(0,t.jsxs)("div",{className:"qr-hero-copy flex flex-col",children:[(0,t.jsxs)("div",{className:"qr-hero-eyebrow qr-hero-in qr-hero-in-eyebrow",children:[(0,t.jsx)(m.Sparkles,{className:"qr-hero-eyebrow-star h-3.5 w-3.5","aria-hidden":"true"}),(0,t.jsx)("span",{children:e.heroEyebrow})]}),(0,t.jsx)("h1",{className:"qr-hero-title qr-hero-in qr-hero-in-title",children:b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"block text-white lg:whitespace-nowrap",children:b[0]}),(0,t.jsx)("span",{className:"qr-hero-title-gold block",children:b.slice(1).join(" â ")})]}):e.heroTitle.split(e.heroHighlight).map((n,r,i)=>(0,t.jsxs)("span",{children:[n,r<i.length-1&&(0,t.jsx)("span",{className:"qr-hero-title-gold",children:e.heroHighlight})]},r))}),(0,t.jsx)("p",{className:"qr-hero-summary qr-hero-in qr-hero-in-summary",children:e.heroSummary}),(0,t.jsx)("div",{className:"qr-hero-feature-list qr-hero-in-features order-5 lg:order-4",children:v.map((e,n)=>{let r=e.icon;return(0,t.jsxs)("div",{className:"qr-hero-feature",style:{"--i":n},children:[(0,t.jsx)("span",{className:"qr-hero-feature-icon",children:(0,t.jsx)(r,{className:"h-4 w-4","aria-hidden":"true"})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:e.title}),(0,t.jsx)("small",{children:e.detail})]})]},e.title)})}),(0,t.jsxs)("div",{className:"qr-hero-actions qr-hero-in-actions order-4 lg:order-5",children:[(0,t.jsxs)("a",{href:"/go-register",target:"_blank",rel:"noopener noreferrer",className:"qr-primary-button qr-cta-shine px-8 py-3.5 text-lg md:px-10 md:py-4",style:{"--i":0},children:[(0,t.jsx)("span",{children:e.heroCtaFreeTrial}),(0,t.jsx)(l.ArrowRight,{className:"ml-3 h-5 w-5","aria-hidden":"true"})]}),(0,t.jsx)("a",{href:"https://api.quickrouter.ai/pricing",className:"qr-secondary-button px-8 py-3.5 text-lg md:px-10 md:py-4",style:{"--i":1},children:e.heroCtaPricing})]})]}),(0,t.jsxs)("div",{className:"qr-hero-visual qr-hero-in qr-hero-in-visual",children:[(0,t.jsx)("div",{className:"qr-hero-visual-aura"}),r?(0,t.jsx)(f,{logos:g}):(0,t.jsx)("div",{className:"qr-hero-saturn-canvas qr-hero-routing-core qr-hero-vendor-orbit"})]})]}),(0,t.jsx)("div",{className:"qr-hero-proof qr-hero-in-proof mt-3 grid grid-cols-5",children:y.map((e,n)=>{let r=e.icon;return(0,t.jsxs)("div",{className:"qr-hero-proof-item",style:{"--i":n},children:[(0,t.jsx)("span",{className:"qr-hero-proof-icon",children:(0,t.jsx)(r,{className:"h-5 w-5","aria-hidden":"true"})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:e.value}),(0,t.jsx)("small",{children:e.label})]})]},e.value)})}),(0,t.jsxs)("div",{className:"qr-hero-ecosystem-static qr-hero-in qr-hero-in-ecosystem",children:[(0,t.jsxs)("div",{className:"qr-hero-ecosystem-title",children:[(0,t.jsx)("span",{}),(0,t.jsx)("p",{children:e.heroEcosystemTitle}),(0,t.jsx)("span",{})]}),(0,t.jsx)("div",{className:"qr-hero-ecosystem-logos",children:(0,t.jsx)("div",{className:"qr-hero-ecosystem-track",children:[!1,!0].map(e=>(0,t.jsx)("div",{className:"qr-hero-ecosystem-group","aria-hidden":e||void 0,children:w.map(r=>(0,t.jsxs)("span",{children:[(0,t.jsx)(n.default,{src:r.src,alt:"",width:28,height:28,unoptimized:!0}),r.alt]},`${e?"duplicate":"primary"}-${r.alt}`))},e?"duplicate":"primary"))})})]})]}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-px bg-white/10"})]})}],7887)},56684,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(98345),i=e.i(93529),l=e.i(65649),a=e.i(75254);let s=(0,a.default)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}
50],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]),o=(0,a.default)("coins",[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]);var c=e.i(30699);e.s(["PricingPreviewCards",0,function(){let{t:e,language:a}=(0,r.useLanguage)(),[d,u]=(0,n.useState)(1),[p,m]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>m(window.innerWidth<640);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,t.jsx)("section",{className:"qr-section-soft qr-pricing-section overflow-hidden",children:(0,t.jsxs)("div",{className:"mx-auto max-w-6xl",children:[(0,t.jsx)("div",{className:"qr-pricing-heading qr-reveal-soft mb-12 text-center",children:"zh"===a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"qr-pricing-eyebrow",children:(0,t.jsx)("span",{children:"模åä»·æ ¼"})}),(0,t.jsxs)("h2",{className:"qr-pricing-display",children:["å
¨çé¡¶å°å¤§æ¨¡å ",(0,t.jsx)("span",{children:"· ä¸ç«å¼æ¥å
¥"})]}),(0,t.jsx)("p",{className:"qr-pricing-description",children:"ç»ä¸ç API Keyï¼è°ç¨å
¨ç主æµå¤§æ¨¡åï¼ç®åã稳å®ã髿"})]}):(0,t.jsx)("h2",{className:"qr-title text-3xl md:text-5xl",children:e.pricingSectionTitle})}),(0,t.jsx)("div",{className:"qr-pricing-plan-tabs mb-3 grid-cols-3 gap-1 rounded-xl border border-white/10 bg-[#0F061B]/70 p-1",role:"tablist","aria-label":"éæ©å¥é¤",style:{display:p?"grid":"none"},children:[e.pricingPaygTitle,e.pricingFreeTitle,e.pricingEnterpriseTitle].map((e,n)=>(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":d===n,onClick:()=>u(n),className:`min-w-0 cursor-pointer rounded-lg px-1 py-2.5 text-xs font-bold leading-tight transition-colors ${d===n?"bg-[#F5C242] text-[#1A1033]":"text-[#BFB4D4] hover:bg-white/5 hover:text-white"}`,children:e},e))}),(0,t.jsxs)(i.ScrollReveal,{variant:"up",className:"qr-pricing-cards grid grid-cols-1 gap-6 items-stretch md:grid-cols-2 lg:grid-cols-[0.9fr_1.2fr_0.9fr]",style:p?{display:"block"}:void 0,children:[(0,t.jsxs)("div",{"data-mobile-active":0===d,className:"qr-card qr-premium-card qr-price-card qr-price-card-muted order-1 p-8",style:p&&0!==d?{display:"none"}:void 0,children:[(0,t.jsx)(o,{className:"gravity-plan-icon","aria-hidden":"true"}),(0,t.jsx)("h3",{className:"text-xl font-bold text-white mb-4",children:e.pricingPaygTitle}),(0,t.jsx)("div",{className:"mb-2",children:(0,t.jsx)("span",{className:"text-3xl font-bold leading-tight text-[#F5C242] md:text-4xl",children:e.pricingPaygCredit})}),(0,t.jsx)("div",{className:"w-full h-px my-6 bg-[rgba(255,255,255,0.08)]"}),(0,t.jsxs)("ul",{className:"space-y-3 mb-8",children:[(0,t.jsxs)("li",{className:"flex items-center gap-3 text-[#EDE6F5] text-base",children:[(0,t.jsx)("span",{className:"w-5 h-5 rounded-full flex items-center justify-center text-xs",style:{background:"rgba(245,194,66,0.15)",color:"#F5C242"},children:"â"}),e.pricingPaygFeature1]}),(0,t.jsxs)("li",{className:"flex items-center gap-3 text-[#EDE6F5] text-base",children:[(0,t.jsx)("span",{className:"w-5 h-5 rounded-full flex items-center justify-center text-xs",style:{background:"rgba(245,194,66,0.15)",color:"#F5C242"},children:"â"}),e.pricingPaygFeature2]}),(0,t.jsxs)("li",{className:"flex items-center gap-3 text-[#EDE6F5] text-base",children:[(0,t.jsx)("span",{className:"w-5 h-5 rounded-full flex items-center justify-center text-xs",style:{background:"rgba(245,194,66,0.15)",color:"#F5C242"},children:"â"}),e.pricingPaygFeature3]}),(0,t.jsxs)("li",{className:"flex items-center gap-3 text-[#EDE6F5] text-base",children:[(0,t.jsx)("span",{className:"w-5 h-5 rounded-full flex items-center justify-center text-xs",style:{background:"rgba(245,194,66,0.15)",color:"#F5C242"},children:"â"}),e.pricingPaygFeature4]})]}),(0,t.jsx)("a",{href:"/go-login",target:"_blank",rel:"noopener noreferrer",className:"qr-secondary-button w-full py-3.5",children:e.pricingPaygCta})]}),(0,t.jsxs)("div",{"data-mobile-active":1===d,className:"qr-card qr-card-highlight qr-premium-card qr-price-card-highlight qr-price-card-featured qr-pulse-border relative order-2 p-8 lg:-mt-6",style:p&&1!==d?{display:"none"}:void 0,children:[(0,t.jsx)(c.Gift,{className:"gravity-plan-icon","aria-hidden":"true"}),(0,t.jsx)("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2 px-5 py-2 rounded-lg text-sm font-bold",style:{backgroundColor:"#F5C242",color:"#1A1033"},children:e.pricingRecommended}),(0,t.jsx)("h3",{className:"text-2xl font-bold text-white mb-4 mt-2",children:e.pricingFreeTitle}),(0,t.jsx)("div",{className:"flex items-baseline gap-1 mb-2",children:(0,t.jsx)("span",{className:"text-5xl font-bold text-[#F5C242]",children:e.pricingFreeCredit})}),(0,t.jsx)("div",{className:"mb-6 rounded-lg border border-[#2DD4BF]/25 bg-[#2DD4BF]/10 px-4 py-3 text-sm font-semibold text-[#CCFBF1]",children:e.heroPromo}),(0,t.jsx)("div",{className:"w-full h-px my-6 bg-[rgba(245,194,66,0.18)]"}),(0,t.jsxs)("ul",{className:"space-y-3 mb-8",children:[(0,t.jsxs)("li",{className:"flex items-center gap-3 text-[#EDE6F5] text-base",children:[(0,t.jsx)("span",{className:"w-5 h-5 rounded-full flex items-center justify-center text-xs",style:{background:"rgba(245,194,66,0.15)",color:"#F5C242"},children:"â"}),e.pricingFreeFeature1]}),(0,t.jsxs)("li",{className:"flex items-center gap-3 text-[#EDE6F5] text-base",children:[(0,t.jsx)("span",{className:"w-5 h-5 rounded-full flex items-center justify-center text-xs",style:{background:"rgba(245,194,66,0.15)",color:"#F5C242"},children:"â"}),e.pricingFreeFeature2]}),(0,t.jsxs)("li",{className:"flex items-center gap-3 text-[#EDE6F5] text-base",children:[(0,t.jsx)("span",{className:"w-5 h-5 rounded-full flex items-center justify-center text-xs",style:{background:"rgba(245,194,66,0.15)",color:"#F5C242"},children:"â"}),e.pricingFreeFeature3]})]}),(0,t.jsx)("a",{href:"/go-register",target:"_blank",rel:"noopener noreferrer",className:"qr-primary-button qr-cta-shine w-full py-4 text-lg",children:e.pricingFreeCta})]}),(0,t.jsxs)("div",{"data-mobile-active":2===d,className:"qr-card qr-premium-card qr-price-card qr-price-card-muted order-3 p-8",style:p&&2!==d?{display:"none"}:void 0,children:[(0,t.jsx)(s,{className:"gravity-plan-icon","aria-hidden":"true"}),(0,t.jsx)("h3",{className:"text-xl font-bold text-white mb-4",children:e.pricingEnterpriseTitle}),(0,t.jsxs)("div",{className:"flex items-baseline gap-1 mb-2",children:[(0,t.jsx)("span",{className:"text-5xl font-bold text-[#F5C242]",children:e.pricingEnterpriseCustom}),(0,t.jsx)("span",{className:"text-[#DCD2EC] text-lg",children:e.pricingEnterprisePlan})]}),(0,t.jsx)("div",{className:"w-full h-px my-6 bg-[rgba(255,255,255,0.08)]"}),(0,t.jsxs)("ul",{className:"space-y-3 mb-8",children:[(0,t.jsxs)("li",{className:"flex items-center gap-3 text-[#EDE6F5] text-base",children:[(0,t.jsx)("span",{className:"w-5 h-5 rounded-full flex items-center justify-center text-xs",style:{background:"rgba(245,194,66,0.15)",color:"#F5C242"},children:"â"}),e.pricingEnterpriseFeature1]}),(0,t.jsxs)("li",{className:"flex items-center gap-3 text-[#EDE6F5] text-base",children:[(0,t.jsx)("span",{className:"w-5 h-5 rounded-full flex items-center justify-center text-xs",style:{background:"rgba(245,194,66,0.15)",color:"#F5C242"},children:"â"}),e.pricingEnterpriseFeature2]}),(0,t.jsxs)("li",{className:"flex items-center gap-3 text-[#EDE6F5] text-base",children:[(0,t.jsx)("span",{className:"w-5 h-5 rounded-full flex items-center justify-center text-xs",style:{background:"rgba(245,194,66,0.15)",color:"#F5C242"},children:"â"}),e.pricingEnterpriseFeature3]}),(0,t.jsxs)("li",{className:"flex items-center gap-3 text-[#EDE6F5] text-base",children:[(0,t.jsx)("span",{className:"w-5 h-5 rounded-full flex items-center justify-center text-xs",style:{background:"rgba(245,194,66,0.15)",color:"#F5C242"},children:"â"}),e.pricingEnterpriseFeature4]})]}),(0,t.jsx)("button",{type:"button",onClick:l.openSupportChat,className:"qr-secondary-button w-full py-3.5",children:e.pricingEnterpriseCta})]})]})]})})}],56684)},64659,e=>{"use strict";
50let t=(0,e.i(75254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],64659)},91337,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(64659),i=e.i(98345),l=e.i(57688),a=e.i(72520),s=e.i(75254);let o=(0,s.default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),c=(0,s.default)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);var d=e.i(65261),u=e.i(58524);let p=(0,s.default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),m=(0,s.default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);var h=e.i(93529);let x={fontFamily:"var(--font-figtree)"},f=[{name:"Claude Code",href:"https://doc.quickrouter.ai/docs/tutorial-claude-code.html",badge:"CLI",logo:"claude",theme:{card:"hover:border-[#f97316]/45",icon:"bg-[#f97316]/15 text-[#fb923c] ring-[#f97316]/25",glow:"bg-[#f97316]/20",badge:"bg-[#f97316]/12 text-[#fdba74] ring-[#f97316]/25"},rows:[{labelKey:"toolConfigApiKeyLabel",valueKey:"toolConfigApiKeyValue"},{labelKey:"toolConfigBaseUrlLabel",value:"https://api.quickrouter.ai",highlight:!0},{labelKey:"toolConfigModelLabel",value:"claude-sonnet-4-6"},{labelKey:"toolConfigLocationLabel",valueKey:"toolConfigLocationClaudeCode"}]},{name:"opencode",href:"https://doc.quickrouter.ai/docs/tutorial-opencode.html",badge:"Terminal",logo:"opencode",theme:{card:"hover:border-[#22c55e]/45",icon:"bg-[#22c55e]/15 text-[#4ade80] ring-[#22c55e]/25",glow:"bg-[#22c55e]/18",badge:"bg-[#22c55e]/12 text-[#86efac] ring-[#22c55e]/25"},rows:[{labelKey:"toolConfigApiKeyLabel",valueKey:"toolConfigApiKeyValue"},{labelKey:"toolConfigBaseUrlLabel",value:"https://api.quickrouter.ai/v1",highlight:!0},{labelKey:"toolConfigModelLabel",value:"claude-sonnet-4-6"},{labelKey:"toolConfigLocationLabel",value:"~/.config/opencode/opencode.json+auth.json"}]},{name:"Cursor",href:"https://doc.quickrouter.ai/docs/tutorial-cursor.html",badge:"IDE",logo:"cursor",theme:{card:"hover:border-[#38bdf8]/45",icon:"bg-[#38bdf8]/15 text-[#7dd3fc] ring-[#38bdf8]/25",glow:"bg-[#38bdf8]/18",badge:"bg-[#38bdf8]/12 text-[#bae6fd] ring-[#38bdf8]/25"},rows:[{labelKey:"toolConfigApiKeyLabel",valueKey:"toolConfigApiKeyValue"},{labelKey:"toolConfigBaseUrlLabel",value:"https://api.quickrouter.ai/v1",highlight:!0},{labelKey:"toolConfigModelLabel",value:"claude-sonnet-4-6"},{labelKey:"toolConfigLocationLabel",value:"Settings â Models"}]},{name:"Codex",href:"https://doc.quickrouter.ai/docs/tutorial-codex.html",badge:"Agent",logo:"codex",theme:{card:"hover:border-[#a78bfa]/45",icon:"bg-[#8b5cf6]/16 text-[#c4b5fd] ring-[#a78bfa]/25",glow:"bg-[#8b5cf6]/20",badge:"bg-[#8b5cf6]/12 text-[#ddd6fe] ring-[#a78bfa]/25"},rows:[{labelKey:"toolConfigApiKeyLabel",valueKey:"toolConfigApiKeyValue"},{labelKey:"toolConfigBaseUrlLabel",value:"https://api.quickrouter.ai/v1",highlight:!0},{labelKey:"toolConfigModelLabel",value:"gpt-5.5"},{labelKey:"toolConfigLocationLabel",value:"~/.codex/config.toml + ~/.codex/auth.json"}]},{name:"Cherry Studio",href:"https://doc.quickrouter.ai/docs/tutorial-cherry-studio.html",badge:"Desktop",logo:"cherry",theme:{card:"hover:border-[#f43f5e]/45",icon:"bg-[#f43f5e]/15 text-[#fb7185] ring-[#f43f5e]/25",glow:"bg-[#f43f5e]/18",badge:"bg-[#f43f5e]/12 text-[#fda4af] ring-[#f43f5e]/25"},rows:[{labelKey:"toolConfigApiKeyLabel",valueKey:"toolConfigApiKeyValue"},{labelKey:"toolConfigBaseUrlLabel",value:"https://api.quickrouter.ai",highlight:!0},{labelKey:"toolConfigModelLabel",value:"claude-sonnet-4-6"},{labelKey:"toolConfigLocationLabel",valueKey:"toolConfigLocationCherryStudio"}]},{name:"Trae",href:"https://doc.quickrouter.ai/docs/tutorial-trae.html",badge:"Builder",logo:"trae",theme:{card:"hover:border-[#facc15]/50",icon:"bg-[#facc15]/15 text-[#fde047] ring-[#facc15]/30",glow:"bg-[#facc15]/18",badge:"bg-[#facc15]/12 text-[#fde68a] ring-[#facc15]/25"},rows:[{labelKey:"toolConfigApiKeyLabel",valueKey:"toolConfigApiKeyValue"},{labelKey:"toolConfigGeneralUrlLabel",value:"https://api.quickrouter.ai/v1/chat/completions",highlight:!0},{labelKey:"toolConfigClaudeUrlLabel",value:"https://api.quickrouter.ai/anthropic/v1/messages",highlight:!0},{labelKey:"toolConfigModelLabel",value:"gpt-5.5 / claude-sonnet-4-6"},{labelKey:"toolConfigLocationLabel",value:"Settings â Models â Custom Model"}]}],g={toolConfigApiKeyLabel:d.KeyRound,toolConfigBaseUrlLabel:u.Link2,toolConfigModelLabel:c,toolConfigLocationLabel:p,toolConfigGeneralUrlLabel:u.Link2,toolConfigClaudeUrlLabel:o};function b({type:e}){let n={claude:{src:"/images/claude.png",alt:"Claude",className:"h-8 w-8"},opencode:{src:"/images/brand_logos/opencode.svg",alt:"opencode",className:"h-8 w-8 rounded-lg"},cursor:{src:"/images/brand_logos/cursor.svg",alt:"Cursor",className:"h-8 w-8"},codex:{src:"/images/openai.png",alt:"OpenAI",className:"h-8 w-8"},cherry:{src:"/images/brand_logos/cherrystudio.svg",alt:"Cherry Studio",className:"h-8 w-8"},trae:{src:"/images/brand_logos/trae.svg",alt:"Trae",className:"h-8 w-8"}}[e];return(0,t.jsx)(l.default,{src:n.src,alt:n.alt,width:36,height:36,className:`${n.className} object-contain`,unoptimized:n.src.endsWith(".svg")})}function v(){let{t:e}=(0,i.useLanguage)(),n=f.map(t=>({...t,rows:t.rows.map(t=>({...t,label:e[t.labelKey],displayValue:t.valueKey?e[t.valueKey]:t.value??""}))}));return(0,t.jsx)("section",{className:"qr-section-deep qr-tool-section",children:(0,t.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,t.jsxs)("div",{className:"qr-reveal-soft text-center mb-12",children:[(0,t.jsxs)("div",{className:"qr-flow-note mx-auto mb-4",children:[(0,t.jsx)("span",{className:"qr-flow-note-dot"}),(0,t.jsx)("span",{children:e.toolConfigKicker})]}),(0,t.jsx)("h2",{className:"qr-title text-3xl md:text-4xl mb-4",style:{...x},children:e.toolConfigTitle}),(0,t.jsx)("p",{className:"qr-subtitle text-xl max-w-2xl mx-auto",style:{...x},children:e.toolConfigSubtitle})]}),(0,t.jsx)(h.ScrollReveal,{variant:"left",className:"qr-tool-config-grid grid grid-cols-2 gap-x-2 gap-y-3 md:grid-cols-2 md:gap-x-5 md:gap-y-8 lg:grid-cols-3",children:n.map(n=>{let r="Trae"===n.name;return(0,t.jsxs)("div",{className:`qr-tool-config-card qr-card group relative flex h-full min-h-0 flex-col overflow-hidden p-3 sm:min-h-[390px] sm:p-5 md:p-6 ${n.theme.card}`,children:[(0,t.jsx)("div",{className:`pointer-events-none absolute -right-12 -top-14 h-36 w-36 rounded-full blur-3xl ${n.theme.glow}`}),(0,t.jsx)("div",{className:"relative mb-3 flex shrink-0 items-start justify-between gap-2 sm:mb-5 sm:gap-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:`flex h-9 w-9 items-center justify-center rounded-xl ring-1 sm:h-12 sm:w-12 sm:rounded-2xl ${n.theme.icon}`,children:(0,t.jsx)(b,{type:n.logo})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-bold leading-tight sm:text-xl",style:{...x,color:"#F5C242"},children:n.name}),(0,t.jsx)("span",{className:`mt-1 inline-flex rounded-full px-1.5 py-0.5 text-[9px] font-bold ring-1 sm:mt-2 sm:px-2.5 sm:py-1 sm:text-xs ${n.theme.badge}`,style:{...x},children:n.badge})]})]})}),(0,t.jsx)("div",{className:"qr-tool-config-rows relative flex min-h-0 flex-1 flex-col",style:{gap:r?8:12},children:n.rows.map((e,n)=>{let i;return(0,t.jsxs)("div",{className:"qr-tool-config-row",children:[(0,t.jsxs)("div",{className:"mb-1 flex items-center gap-1.5",style:{...x,color:"#AFA3CA",fontSize:12,lineHeight:1.25},children:[(i=g[e.labelKey]??m,(0,t.jsx)(i,{size:13,strokeWidth:2.2})),e.label]}),(0,t.jsx)("div",{style:{...x,color:e.highlight?"#F5C242":"#EDE7FF",fontSize:r&&e.highlight?13:14,lineHeight:r&&e.highlight?1.3:1.4,wordBreak:"normal",overflowWrap:"anywhere"},children:e.displayValue})]},n)})}),(0,t.jsxs)("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",className:"qr-primary-button qr-cta-shine min-h-10 h-auto w-full shrink-0 gap-1 px-2 py-2 text-[11px] whitespace-normal sm:h-10 sm:min-h-0 sm:gap-2 sm:px-5 sm:text-[15px] sm:whitespace-nowrap md:mx-auto md:w-fit md:max-w-[240px]",style:{...x,marginTop:14},children:[e.toolConfigViewTutorial.replace("{tool}",n.name),(0,t.jsx)(a.ArrowRight,{size:16,strokeWidth:2.5})]})]},n.name)})}),(0,t.jsxs)("div",{className:"mx-auto mt-10 flex max-w-3xl flex-col items-center justify-between gap-4 roun
50ded-3xl border border-[#F5C242]/20 bg-[#F5C242]/8 px-5 py-5 text-center md:flex-row md:px-7 md:text-left",children:[(0,t.jsx)("p",{className:"text-base font-black leading-relaxed text-white md:text-lg",style:{...x},children:"没æ¾å°ä½ çå·¥å
·ï¼åªè¦æ¯æ OpenAI Base URLï¼é常é½å¯ä»¥æ¥å
¥ã"}),(0,t.jsx)("a",{href:"https://doc.quickrouter.ai/docs/tutorial-openai-compatible.html",target:"_blank",rel:"noopener noreferrer",className:"qr-secondary-button shrink-0 px-7 py-3 text-base",style:{...x},children:"æ¥çéç¨é
ç½®ææ¡£"})]})]})})}let y=(0,s.default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),w=(0,s.default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),j=(0,s.default)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);var k=e.i(81418),C=e.i(83086),N=e.i(68054);let F={fontFamily:"var(--font-figtree)"},S=[{platform:"Windows",href:"https://umami.quickrouter.ai/q/yUUYH54II",ariaLabel:"Download QuickRouter Switch W
50indows x64",icon:"windows",archKey:"x64"},{platform:"macOS",href:"https://umami.quickrouter.ai/q/JxD3fWCpC",ariaLabel:"Download QuickRouter Switch macOS ARM",icon:"apple",archKey:"appleSilicon"},{platform:"macOS",href:"https://umami.quickrouter.ai/q/2gqhHVhDz",ariaLabel:"Download QuickRouter Switch macOS Intel",icon:"apple",archKey:"intel"}],E=[{titleKey:"switchFeature1Title",subKey:"switchFeature1Sub",icon:j,accent:"#54D6FF"},{titleKey:"switchFeature2Title",subKey:"switchFeature2Sub",icon:k.ShieldCheck,accent:"#75E6A7"},{titleKey:"switchFeature3Title",subKey:"switchFeature3Sub",icon:C.Sparkles,accent:"#F5C242"}],A=[{name:"Claude Code",label:"CLI",logo:"claude",accent:"#F5C242"},{name:"Codex",label:"Agent",logo:"codex",accent:"#54D6FF"},{name:"OpenCode",label:"Terminal",logo:"opencode",accent:"#75E6A7"},{name:"Gemini",label:"Google",logo:"gemini",accent:"#A78BFA"},{name:"OpenClaw",label:"Deploy",logo:"openclaw",accent:"#FF9B5E"},{name:"Hermes",label:"Router",logo:"hermes",accent:"#FF6BB5"}];function q({type:e}){return"claude"===e?(0,t.jsx)(l.default,{src:"/images/claude.png",alt:"",width:32,height:32,className:"h-7 w-7 object-contain"}):"openclaw"===e?(0,t.jsx)(l.default,{src:"/images/openclaw-bot.png",alt:"",width:32,height:32,className:"h-8 w-8 object-contain"}):"hermes"===e?(0,t.jsx)(l.default,{src:"/images/brand_logos/hermes.png",alt:"",width:32,height:32,className:"h-8 w-8 object-contain"}):"codex"===e?(0,t.jsx)("svg",{role:"img","aria-hidden":"true",viewBox:"0 0 24 24",className:"h-6 w-6",fill:"currentColor",children:(0,t.jsx)("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})}):"gemini"===e?(0,t.jsx)("svg",{role:"img","aria-hidden":"true",viewBox:"0 0 24 24",className:"h-6 w-6",fill:"currentColor",children:(0,t.jsx)("path",{d:"M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"})}):(0,t.jsxs)("svg",{role:"img","aria-hidden":"true",viewBox:"0 0 512 512",className:"h-7 w-7",children:[(0,t.jsx)("rect",{width:"512",height:"512",fill:"#131010"}),(0,t.jsx)("path",{d:"M320 224V352H192V224H320Z",fill:"#5A5858"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M384 416H128V96H384V416ZM320 160H192V352H320V160Z",fill:"white"})]})}function D({type:e}){return"windows"===e?(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}):(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",viewBox:"0 0 24 24",fill:"
50currentColor","aria-hidden":"true",children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("mask",{id:"quickrouter-apple-bite",children:[(0,t.jsx)("rect",{width:"24",height:"24",fill:"white"}),(0,t.jsx)("circle",{cx:"19",cy:"8.5",r:"2.35",fill:"black"})]})}),(0,t.jsx)("path",{d:"M14.5 2.1c.2 1.5-.4 2.9-1.3 3.8-.8.8-2 1.4-3.2 1.3-.1-1.4.5-2.8 1.3-3.6.9-.9 2.1-1.5 3.2-1.5Z"}),(0,t.jsx)("path",{mask:"url(#quickrouter-apple-bite)",d:"M17.9 12.8c0-1.8.9-3.2 2.5-4.1-.9-1.3-2.2-2-3.8-2-1.6 0-2.4.8-3.6.8s-2.1-.8-3.5-.8c-1.8 0-3.4 1.1-4.3 2.9-1.8 3.1-.5 7.8 1.3 10.3.9 1.2 1.9 2.6 3.2 2.5 1.3-.1 1.8-.8 3.3-.8s2 .8 3.4.8c1.4 0 2.3-1.2 3.1-2.5.7-1 1.2-2.1 1.4-2.8-1.8-.8-3-2.3-3-4.3Z"})]})}function M(){let{t:e}=(0,i.useLanguage)(),[r,l]=(0,n.useState)(!1);return(0,t.jsxs)("section",{className:"qr-section-deep qr-switch-section",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-[#f5c242]/30 to-transparent"}),(0,t.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,t.jsxs)("div",{className:"qr-reveal-soft text-center mb-10",children:[(0,t.jsxs)("div",{className:"qr-flow-note mx-auto mb-4",children:[(0,t.jsx)("span",{className:"qr-flow-note-dot"}),(0,t.jsx)("span",{children:e.configDownloadKicker})]}),(0,t.jsx)("h2",{className:"text-3xl md:text-5xl font-black mb-5",style:{...F,color:"#F5C242",letterSpacing:0},children:e.switchTitle}),(0,t.jsx)("p",{className:"text-base md:text-xl leading-relaxed max-w-3xl mx-auto",style:{...F,color:"#D9D2E9"},children:e.switchSubtitle})]}),(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-3xl border p-5 md:p-7",style:{borderColor:"rgba(245, 194, 66, 0.22)",background:"linear-gradient(135deg, rgba(40, 18, 76, 0.92) 0%, rgba(18, 7, 34, 0.98) 58%, rgba(39, 11, 55, 0.92) 100%)",boxShadow:"0 34px 90px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.06)"},children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -right-24 -top-24 h-64 w-64 rounded-full bg-[#f5c242]/10 blur-3xl"}),(0,t.jsxs)("div",{className:"relative flex flex-col items-center justify-between gap-5 md:flex-row md:text-left",children:[(0,t.jsxs)("div",{className:"flex max-w-3xl items-start gap-4 text-center md:text-left",children:[(0,t.jsx)("div",{className:"hidden h-12 w-12 shrink-0 items-center justify-center rounded-2xl bg-[#f5c242] text-[#160827] md:flex",children:(0,t.jsx)(m,{size:23,strokeWidth:2.5})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-black text-white md:text-3xl",style:F,children:e.switchDownloadTitle}),(0,t.jsx)("p",{className:"mt-2 text-base leading-relaxed text-[#D9D2E9]",style:F,children:e.switchSubtitle}),(0,t.jsx)("div",{className:"mt-4 flex flex-wrap justify-center gap-2 md:justify-start",children:E.map(n=>{let r=n.icon;return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-xl border px-3 py-1.5 text-sm font-bold",style:{color:n.accent,borderColor:`${n.accent}35`,background:`${n.accent}10`},children:[(0,t.jsx)(r,{size:15,strokeWidth:2.4}),e[n.titleKey]]},n.titleKey)})})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>l(e=>!e),className:"qr-secondary-button w-full px-7 py-3 text-base md:w-auto",children:r?"æ¶èµ·ä¸è½½è¯¦æ
":"å±å¼ä¸è½½è¯¦æ
"})]}),r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"qr-reveal-scale mt-6 grid gap-6 lg:grid-cols-[1fr_1.05fr]",children:[(0,t.jsxs)("div",{className:"rounded-2xl border p-5 md:p-6",style:{borderColor:"rgba(255,255,255,.08)",background:"rgba(255,255,255,.035)"},children:[(0,t.jsxs)("div",{className:"mb-5 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-11 w-11 items-center justify-center rounded-2xl bg-[#f5c242] text-[#160827]",children:(0,t.jsx)(m,{size:22,strokeWidth:2.5})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-lg font-extrabold",style:{...F,color:"#FFFFFF"},children:e.switchDownloadTitle}),(0,t.jsx)("p",{className:"text-sm",style:{...F,color:"#B0A3C8"},children:e.switchFeature2Sub})]})]}),(0,t.jsx)("div",{className:"grid gap-3",children:E.map(n=>{let r=n.icon;return(0,t.jsxs)("div",{className:"flex gap-3 rounded-2xl border p-4",style:{borderColor:`${n.accent}33`,background:`${n.accent}0F`},children:[(0,t.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl",style:{color:n.accent,background:`${n.accent}1A`},children:(0,t.jsx)(r,{size:21,strokeWidth:2.4})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-base font-bold",style:{...F,color:"#FFFFFF"},children:e[n.titleKey]}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-relaxed",style:{...F,color:"#BFB4D4"},children:e[n.subKey]})]})]},n.titleKey)})})]}),(0,t.jsxs)("div",{className:"rounded-2xl border p-5 md:p-6",style:{borderColor:"rgba(245,194,66,.18)",background:"rgba(12, 5, 24, .44)"},children:[(0,t.jsxs)("div",{className:"mb-4 flex items-end justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-bold uppercase",style:{...F,color:"#F5C242",letterSpacing:".08em"},children:e.switchFeature3Title}),(0,t.jsx)("p",{className:"mt-1 text-sm",style:{...F,color:"#BFB4D4"},children:e.switchFeature3Sub})]}),(0,t.jsx)(o,{size:28,strokeWidth:2.2,color:"#F5C242"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:A.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl border px-4 py-3",style:{borderColor:`${e.accent}35`,background:`linear-gradient(135deg, ${e.accent}16, rgba(255,255,255,.025))`},children:[(0,t.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-xl",style:{color:e.accent,background:`${e.accent}1C`},children:(0,t.jsx)(q,{type:e.logo})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate text-sm font-extrabold",style:{...F,color:"#FFFFFF"},children:e.name}),(0,t.jsx)("p",{className:"text-[11px] font-bold uppercase",style:{...F,color:"#9285AA",letterSpacing:".08em"},children:e.label})]})]},e.name))})]})]}),(0,t.jsx)(h.ScrollReveal,{variant:"scale",className:"mt-6 grid grid-cols-1 gap-4 lg:grid-cols-3",children:S.map(n=>{var r;return(0,t.jsxs)("a",{href:n.href,download:!0,"aria-label":n.ariaLabel,className:"group flex min-h-[150px] flex-col justify-between rounded-2xl border p-5 transition duration-200 hover:-translate-y-1",style:{borderColor:"rgba(245,194,66,.2)",background:"linear-gradient(180deg, rgba(33,16,62,.88) 0%, rgba(14,6,27,.95) 100%)",boxShadow:"0 18px 44px rgba(0,0,0,.25)"},children:[(0,t.jsx)("div",{className:"flex items-start justify-between gap-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-[#f5c242]/12 text-[#F5C242] ring-1 ring-[#f5c242]/22",children:(0,t.jsx)(D,{type:n.icon})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xl font-black",style:{...F,color:"#FFFFFF"},children:n.platform}),(0,t.jsxs)("div",{className:"mt-1 flex items-center gap-1.5 text-sm",style:{...F,color:"#BFB4D4"},children:[(0,t.jsx)(c,{size:15,strokeWidth:2.2}),(0,t.jsx)("span",{children:"appleSilicon"===(r=n.archKey)?e.switchArchAppleSil
50icon:"intel"===r?e.switchArchIntel:"x64"})]})]})]})}),(0,t.jsxs)("span",{className:"mt-5 inline-flex w-full items-center justify-center gap-2 rounded-xl bg-[#F5C242] px-5 py-3 text-sm font-black text-[#160827] transition group-hover:bg-[#FFD76A]",style:{...F},children:[(0,t.jsx)(w,{size:17,strokeWidth:2.5}),e.switchDownload]})]},n.href)})}),(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)("div",{className:"rounded-2xl border p-5",style:{borderColor:"rgba(245,194,66,.18)",background:"rgba(245,194,66,.075)"},children:(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-[#f5c242]/14 text-[#F5C242] ring-1 ring-[#f5c242]/22",children:(0,t.jsx)(N.Terminal,{size:19,strokeWidth:2.3})}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("p",{className:"text-sm leading-relaxed",style:{...F,color:"#FDE68A"},children:[(0,t.jsx)("strong",{children:"macOSï¼"}),e.switchMacTip,e.switchMacTipDamaged,(0,t.jsx)("code",{className:"mt-2 inline-flex max-w-full break-all rounded-lg px-2 py-1 text-xs",style:{color:"#F5C242",background:"rgba(245,194,66,0.12)"},children:"xattr -cr /Applications/QuickRouter-switch.app"})]}),(0,t.jsx)("p",{className:"text-sm leading-relaxed",style:{...F,color:"#D9D2E9"},children:e.switchClaudeTip})]})]})})}),(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsxs)("a",{href:"https://doc.quickrouter.ai/docs/tutorial-quickstart-tool.html",target:"_blank",rel:"noopener noreferrer",className:"flex min-h-[132px] w-full items-center justify-center gap-5 rounded-2xl border px-6 py-7 text-xl font-black leading-snug transition hover:-translate-y-1 md:text-2xl",style:{...F,borderColor:"rgba(245,194,66,.38)",color:"#F5C242",background:"rgba(245,194,66,.075)"},children:[(0,t.jsx)(y,{size:29,strokeWidth:2.4,className:"shrink-0"}),(0,t.jsx)("span",{className:"max-w-2xl",children:e.switchTutorialLink}),(0,t.jsx)(a.ArrowRight,{size:25,strokeWidth:2.6,className:"shrink-0"})]})})]}):null]})]})]})}let R=(0,s.default)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),T=(0,s.default)("book-open-check",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);var _=e.i(95468),I=e.i(62749);let L=(0,s.default)("file-braces-corner",[["path",{d:"M14 22h4a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6",key:"14cnrg"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M5 14a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1 1 1 0 0 1 1 1v2a1 1 0 0 0 1 1",key:"sr0ebq"}],["path",{d:"M9 22a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-2a1 1 0 0 0-1-1",key:"w793db"}]]),P=(0,s.default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]),B=(0,s.default)("laptop",[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]),G=(0,s.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var O=e.i(9912);let z=(0,s.default)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]),$=(0,s.default)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);var K=e.i(61939);let W=(0,s.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),H=(0,s.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),V={fontFamily:"var(--font-figtree)"},U={info:{dark:{bg:"rgba(109,53,215,0.12)",border:"rgba(109,53,215,0.32)",iconColor:"#B89AF5",textColor:"#E5DEF5",titleColor:"#FFFFFF",icon:H}
50,light:{bg:"#F3EEFF",border:"#C4B5FD",iconColor:"#6D28D9",textColor:"#3B2E63",titleColor:"#1E1B3A",icon:H}},warning:{dark:{bg:"rgba(245,158,11,0.1)",border:"rgba(245,158,11,0.32)",iconColor:"#FBBF24",textColor:"#FDE68A",titleColor:"#FFFFFF",icon:W},light:{bg:"#FEF3C7",border:"#FCD34D",iconColor:"#B45309",textColor:"#78350F",titleColor:"#451A03",icon:W}},success:{dark:{bg:"rgba(34,197,94,0.1)",border:"rgba(34,197,94,0.3)",iconColor:"#22C55E",textColor:"#86EFAC",titleColor:"#FFFFFF",icon:_.CheckCircle2},light:{bg:"#DCFCE7",border:"#86EFAC",iconColor:"#15803D",textColor:"#14532D",titleColor:"#052E16",icon:_.CheckCircle2}},tip:{dark:{bg:"rgba(245,194,66,0.08)",border:"rgba(245,194,66,0.28)",iconColor:"#F5C242",textColor:"#FDE68A",titleColor:"#FFFFFF",icon:C.Sparkles},light:{bg:"#FEF9C3",border:"#FDE047",iconColor:"#A16207",textColor:"#713F12",titleColor:"#422006",icon:C.Sparkles}}};function Q({type:e="info",title:n,children:r,className:i,variant:l="dark"}){let a=U[e][l],s=a.icon;return(0,t.jsxs)("div",{className:`not-prose my-5 flex items-start gap-2.5 rounded-xl p-4 ${i??""}`,style:{background:a.bg,border:`1px solid ${a.border}`},children:[(0,t.jsx)(s,{size:18,color:a.iconColor,className:"mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{className:"min-w-0 text-sm leading-relaxed",style:{...V,color:a.textColor},children:[n?(0,t.jsx)("p",{className:"mb-1 font-bold",style:{color:a.titleColor},children:n}):null,(0,t.jsx)("div",{children:r})]})]})}let Y={fontFamily:"var(--font-figtree)"};function X({filename:e,content:n,copiedLabel:r,copyLabel:i}){return(0,t.jsx)(K.CodeBlock,{filename:e,code:n,copiedLabel:r,copyLabel:i})}function J({type:e,children:n}){return(0,t.jsx)(Q,{type:e,children:n})}function Z({items:e}){return(0,t.jsx)("ul",{className:"mt-2 space-y-1",children:e.map((e,n)=>(0,t.jsxs)("li",{className:"flex items-start gap-2 text-sm leading-relaxed",style:{...Y,color:"#D9D2E9"},children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0 mt-2",style:{background:"#F5C242"}}),e]},n))})}function ee({items:e}){return(0,t.jsx)("ul",{className:"mt-2 space-y-1",children:e.map((e,n)=>(0,t.jsxs)("li",{className:"flex items-start gap-2 text-sm leading-relaxed",style:{...Y,color:"#D9D2E9"},children:[(0,t.jsx)(_.CheckCircle2,{size:16,color:"#10B981",className:"mt-0.5 flex-shrink-0"}),e]},n))})}function et({label:e,description:n,description2:r,code:i,code2:l,filename:a="terminal",copiedLabel:s,copyLabel:o}){return(0,t.jsxs)("div",{className:"mt-3 ml-2 pl-3",style:{borderLeft:"2px solid #F5C242"},children:[(0,t.jsx)("h5",{className:"text-sm font-semibold mb-1",style:{...Y,color:"#FFFFFF"},children:e}),n&&(0,t.jsx)("p",{className:"text-sm leading-relaxed mb-1",style:{...Y,color:"#D9D2E9"},children:n}),i&&(0,t.jsx)(K.CodeBlock,{filename:a,code:i,copiedLabel:s,copyLabel:o}),r&&(0,t.jsx)("p",{className:"text-sm leading-relaxed mt-2 mb-1",style:{...Y,color:"#D9D2E9"},children:r}),l&&(0,t.jsx)(K.CodeBlock,{filename:a,code:l,copiedLabel:s,copyLabel:o})]})}function en({number:e,title:n,...r}){let i=r.copiedLabel??"",l=r.copyLabel??"",a=r.icon??N.Terminal;return(0,t.jsxs)("div",{className:"group relative rounded-xl border border-white/8 bg-white/[0.035] p-4 shadow-[0_16px_34px_rgba(0,0,0,0.2)] transition-colors hover:border-[#F5C242]/30",children:[(0,t.jsx)("div",{className:"absolute bottom-4 left-[29px] top-14 hidden w-px bg-gradient-to-b from-[#F5C242]/35 to-transparent sm:block"}),(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsxs)("div",{className:"relative z-10 flex flex-col items-center gap-2",children:[(0,t.jsx)("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-xl border",style:{background:"linear-gradient(180deg, rgba(245,194,66,0.18), rgba(245,194,66,0.07))",borderColor:"rgba(245,194,66,0.28)",color:"#F5C242"},children:(0,t.jsx)(a,{size:20})}),(0,t.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-lg text-xs font-bold",style:{background:"#F5C242",color:"#1A1033"},children:e})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h4",{className:"font-bold text-base mb-1",style:{...Y,color:"#FFFFFF"},children:n}),r.description&&(0,t.jsx)("p",{className:"text-sm leading-relaxed mb-1",style:{...Y,color:"#D9D2E9"},children:r.description}),r.listItems&&(0,t.jsx)(Z,{items:r.listItems}),r.codeBlock&&(0,t.jsx)(K.CodeBlock,{filename:r.codeBlock.filename,code:r.codeBlock.code,copiedLabel:i,copyLabel:l}),r.description2&&(0,t.jsx)("p",{className:"text-sm leading-relaxed mt-2 mb-1",style:{...Y,color:"#D9D2E9"},children:r.description2}),r.codeBlock2&&(0,t.jsx)(K.CodeBlock,{filename:r.codeBlock2.filename,code:r.codeBlock2.code,copiedLabel:i,copyLabel:l}),r.configBlock&&(0,t.jsx)(X,{filename:r.configBlock.filename,content:r.configBlock.content,copiedLabel:i,copyLabel:l}
50),r.notice&&(0,t.jsx)(J,{type:r.notice.type,children:r.notice.text}),r.subSections?.map((e,n)=>(0,t.jsx)(et,{...e,copiedLabel:i,copyLabel:l},n)),r.subSteps?.map(e=>{let n=e.subNumber.endsWith(".1")?d.KeyRound:L;return(0,t.jsxs)("div",{className:"mt-4 rounded-lg border border-[#F5C242]/18 bg-black/10 p-3",children:[(0,t.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,t.jsx)(n,{size:15,color:"#F5C242"}),(0,t.jsxs)("h5",{className:"text-sm font-semibold",style:{...Y,color:"#FFFFFF"},children:[e.subNumber," ",e.title]})]}),e.description&&(0,t.jsx)("p",{className:"text-sm leading-relaxed mb-1",style:{...Y,color:"#D9D2E9"},children:e.description}),e.listItems&&(0,t.jsx)(Z,{items:e.listItems}),e.configPath&&(0,t.jsx)("p",{className:"text-xs mt-2 mb-1 font-mono",style:{...Y,color:"#7A6B94"},children:e.configPath}),e.configFiles?.map(e=>(0,t.jsx)(X,{filename:e.filename,content:e.content,copiedLabel:i,copyLabel:l},e.filename))]},e.subNumber)}),r.startupTips&&(0,t.jsx)(ee,{items:r.startupTips})]})]})]})}let er=`{ 51 "env": { 52 "ANTHROPIC_AUTH_TOKEN": "sk-your-api-token", 53 "ANTHROPIC_BASE_URL": "https://api.quickrouter.ai", 54 "API_TIMEOUT_MS": "300000" 55 } 56}`;function ei(e,t){return e.map(e=>({...e,copiedLabel:t.installGuideCopied,copyLabel:t.installGuideCopy}))}function el(e,t){if("windows"===e)return{intro:{title:t.installGuideWinIntroTitle,description:t.installGuideWinIntroDesc},steps:ei([{number:1,icon:G,title:t.installGuideWinStep1Title,description:t.installGuideWinStep1Desc,codeBlock:{filename:"Node.js",code:"https://nodejs.org/en/download"},description2:t.installGuideWinStep1Desc2},{number:2,icon:P,title:t.installGuideWinStep2Title,description:t.installGuideWinStep2Desc,codeBlock:{filename:"Mirror",code:"https://mirrors.tuna.tsinghua.edu.cn/github-release/git-for-windows/git/"}},{number:3,icon:N.Terminal,title:t.installGuideWinStep3Title,description:t.installGuideWinStep3Desc},{number:4,icon:w,title:t.installGuideWinStep4Title,description:t.installGuideWinStep4Desc,codeBlock:{filename:"PowerShell",code:"npm install -g @anthropic-ai/claude-code"},description2:t.installGuideWinStep4Desc2},{number:5,icon:R,title:t.installGuideWinStep5Title,codeBlock:{filename:"terminal",code:"claude --version"},description2:t.installGuideWinStep5Desc2},{number:6,icon:d.KeyRound,title:t.installGuideWinStep6Title,description:t.installGuideWinStep6Desc,codeBlock:{filename:"PowerShell",code:'setx ANTHROPIC_BASE_URL "https://api.quickrouter.ai"'},codeBlock2:{filename:"PowerShell",code:'setx ANTHROPIC_AUTH_TOKEN "your-quickrouter-api-key"'},notice:{type:"info",text:t.installGuideWinStep6Notice}},{number:7,icon:O.Rocket,title:t.installGuideWinStep7Title,description:t.installGuideWinStep7Desc,codeBlock:{filename:"terminal",code:"cd D:\\your-project"},codeBlock2:{filename:"terminal",code:"claude"},startupTips:[t.installGuideStartup1,t.installGuideStartup2,t.installGuideStartup3,t.installGuideStartup4,t.installGuideStartup5]}],t),footerNotice:{type:"info",text:t.installGuideWinFooterNotice}};let n="linux"===e,r="macos"===e?t.installGuideSettingsPathMac:t.installGuideSettingsPathOther,i=[];n?i.push({number:1,icon:G,title:t.installGuideStepInstallNodejs,subSections:[{label:t.installGuideLinuxLabelUbuntu,description:t.installGuideLinuxDescUpdate,code:"sudo apt update",description2:t.installGuideLinuxDescInstall,code2:"curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -\nsudo apt-get install -y nodejs"},{label:t.installGuideLinuxLabelCentos,description:t.installGuideLinuxDescCentos,code:"sudo dnf install nodejs npm\n# or\nsudo yum install nodejs npm"},{label:t.installGuideLinuxLabelArch,code:"sudo pacman -S nodejs npm"}]}):(i.push({number:1,icon:N.Terminal,title:t.installGuideStepInstallHomebrew,description:t.installGuideStepInstallHomebrewDesc,codeBlock:{filename:"terminal",code:'/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'}}),i.push({number:2,icon:G,title:t.installGuideStepInstallNodejs,description:t.installGuideStepInstallNodejsBrewDesc,codeBlock:{filename:"terminal",code:"brew install node"},description2:t.installGuideStepInstallNodejsBrewDesc2})),n?(i.push({number:2,icon:w,title:t.installGuideStepInstallClaudeCode,codeBlock:{filename:"terminal",code:"npm install -g @anthropic-ai/claude-code"}}),i.push({number:3,icon:R,title:t.installGuideStepVerify,codeBlock:{filename:"terminal",code:"claude --version"}})):(i.push({number:3,icon:w,title:t.installGuideStepInstallClaudeCode,codeBlock:{filename:"terminal",code:"npm install -g @anthropic-ai/claude-code"}}),i.push({number:4,icon:R,title:t.installGuideStepVerify,codeBlock:{filename:"terminal",code:"claude --version"}}));let l=n?4:5;return i.push({number:l,icon:d.KeyRound,title:t.installGuideStepConfigApi,subSteps:[{subNumber:`${l}.1`,title:t.installGuideSubstepGetToken,description:t.installGuideClaudeTokenDesc,listItems:[t.installGuideClaudeTokenItem1,t.installGuideClaudeTokenItem2,t.installGuideClaudeTokenItem3,t.installGuideClaudeTokenItem4,t.installGuideClaudeTokenItem5]},{subNumber:`${l}.2`,title:t.installGuideSubstepConfigureEnv,description:t.installGuideClaudeEnvDesc,configPath:r,configFiles:[{filename:"settings.json",content:er}]}]}),i.push({number:n?5:6,icon:O.Rocket,title:t.installGuideStepLaunch,codeBlock:{filename:"terminal",code:"cd your-project-folder"},description2:t.installGuideStepLaunchDesc2,codeBlock2:{filename:"terminal",code:"claude"},startupTips:[t.installGuideStartup1,t.installGuideStartup2,t.installGuideStartup3,t.installGuideStartup4,t.installGuideStartup5]}),{steps:ei(i,t)}}let ea=`model_provider = "api111" 57model = "gpt-5.4" 58model_reasoning_effort = "high" 59disable_response_storage = true 60preferred_auth_method = "apikey" 61 62[model_providers.api111] 63name = "api111" 64base_url = "https://api.quickrouter.ai/v1" 65wire_api = "responses"`,es=`{ 66 "OPENAI_API_KEY": "sk-your-api-token" 67}`;function eo(e,t){let n="windows"===e,r="linux"===e,i=n?t.installGuideCodexConfigDirWin:t.installGuideCodexConfigDirOther,l=[],a=1;n?(l.push({number:a++,icon:P,title:t.installGuideCodexStepInstallGitBash,description:t.installGuideCodexStepInstallGitBashDesc}),l.push({number:a++,icon:G,title:t.installGuideCodexStepInstallNodejs,description:t.installGuideCodexStepInstallNodejsDesc,codeBlock:{filename:"terminal",code:"node --version\nnpm --version"}})):r?l.push({number:a++,icon:G,title:t.installGuideStepInstallNodejs,subSections:[{label:t.installGuideLinuxLabelUbuntu,de
67scription:t.installGuideLinuxDescUpdate,code:"sudo apt update",description2:t.installGuideLinuxDescInstall,code2:"curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -\nsudo apt-get install -y nodejs"},{label:t.installGuideLinuxLabelCentos,description:t.installGuideLinuxDescCentos,code:"sudo dnf install nodejs npm\n# or\nsudo yum install nodejs npm"},{label:t.installGuideLinuxLabelArch,code:"sudo pacman -S nodejs npm"}]}):l.push({number:a++,icon:G,title:t.installGuideStepInstallNodejs,description:t.installGuideStepInstallNodejsDesc,codeBlock:{filename:"terminal",code:"brew install node"}}),l.push({number:a++,icon:w,title:t.installGuideCodexStepInstallCli,description:n?t.installGuideCodexStepInstallCliDescWin:r?t.installGuideCodexStepInstallCliDescLinux:void 0,codeBlock:{filename:"terminal",code:"npm install -g @openai/codex"}});let s=a;return l.push({number:a++,icon:d.KeyRound,title:t.installGuideCodexStepConfigApi,subSteps:[{subNumber:`${s}.1`,title:t.installGuideSubstepGetToken,description:t.installGuideCodexTokenDesc},{subNumber:`${s}.2`,title:t.installGuideCodexSubstepCreateConfig,description:t.installGuideCodexSubstepCreateConfigDesc.replace("{dir}",i),configFiles:[{filename:`${i}config.toml`,content:ea},{filename:`${i}auth.json`,content:es}]}],notice:{type:"warning",text:t.installGuideCodexTokenTip}}),l.push({number:a++,icon:O.Rocket,title:t.installGuideCodexStepInitProject,codeBlock:{filename:"terminal",code:"mkdir my-codex-project\ncd my-codex-project"},codeBlock2:{filename:"terminal",code:"codex"},startupTips:[t.installGuideCodexStartup1,t.installGuideCodexStartup2,t.installGuideCodexStartup3]}),{steps:ei(l,t)}}let ec=[{key:"windows",label:"Windows"},{key:"macos",label:"Mac"},{key:"linux",label:"Linux"}],ed={windows:j,macos:B,linux:z};function eu({title:e,subtitle:i,quickStart:l,icon:a,accent:s,chips:o,getSteps:c,t:d}){let[u,p]=(0,n.useState)("windows"),[m,h]=(0,n.useState)(!1),x=c(u,d),f=ec.find(e=>e.key===u),g="claude"===s?"#F5C242":"#38BDF8",b="claude"===s?"rgba(245,194,66,0.1)":"rgba(56,189,248,0.11)",v="claude"===s?[d.installGuideStepInstallNodejs,d.installGuideStepInstallClaudeCode,d.installGuideStepConfigApi]:[d.installGuideCodexStepInstallCli,d.installGuideCodexStepConfigApi,d.installGuideCodexStepInitProject];return(0,t.jsxs)("div",{className:"qr-card relative overflow-hidden p-6 md:p-8",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-1",style:{background:`linear-gradient(90deg, transparent, ${g}, transparent)`}}),(0,t.jsx)("div",{className:"pointer-events-none absolute -right-16 -top-16 h-40 w-40 rounded-full blur-3xl",style:{background:b}}),(0,t.jsxs)("div",{className:"relative mb-5",children:[(0,t.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-xl border",style:{background:b,borderColor:`${g}55`,color:g},children:a}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"text-xl font-bold",style:{...Y,color:"#FFFFFF"},children:e}),(0,t.jsx)("p",{className:"text-sm leading-relaxed",style:{...Y,color:"#D9D2E9"},children:i})]})]}),(0,t.jsx)("div",{className:"hidden rounded-full border px-3 py-1 text-xs font-semibold md:block",style:{...Y,borderColor:`${g}55`,color:g,background:b},children:f?.label??u})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:o.map(e=>{let n=e.icon;return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-lg border px-2.5 py-1 text-xs font-semibold",style:{...Y,color:"#D9D2E9",borderColor:"rgba(255,255,255,0.08)",background:"rgba(255,255,255,0.045)"},children:[(0,t.jsx)(n,{size:14,color:g}),e.label]},e.label)})})]}),l&&(0,t.jsx)("p",{className:"mb-5 rounded-lg border border-white/8 bg-white/[0.035] px-3 py-2 text-xs leading-relaxed",style:{...Y,color:"#9B8DB6"},children:l}),(0,t.jsx)("div",{className:"mb-5 grid grid-cols-1 gap-2",children:v.map((e,n)=>(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-white/8 bg-white/[0.035] px-3 py-2.5",children:[(0,t.jsx)("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-lg text-xs font-bold",style:{background:b,color:g,border:`1px solid ${g}44`},children:n+1}),(0,t.jsx)("span",{className:"text-sm font-semibold",style:{...Y,color:"#EDE6
67F5"},children:e})]},e))}),(0,t.jsxs)("button",{type:"button",onClick:()=>h(e=>!e),className:"mb-6 flex w-full items-center justify-center gap-2 rounded-xl px-4 py-3 text-sm font-bold transition-colors",style:{...Y,background:m?"rgba(255,255,255,0.06)":g,color:m?"#D9D2E9":"#1A1033",border:m?"1px solid rgba(255,255,255,0.1)":`1px solid ${g}`},children:[m?d.installGuideCollapse:d.installGuideExpand,(0,t.jsx)(r.ChevronDown,{size:17,className:`transition-transform ${m?"rotate-180":""}`})]}),m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex gap-2 mb-6 overflow-x-auto pb-1",children:ec.map(e=>{let n=u===e.key,r=ed[e.key];return(0,t.jsxs)("button",{onClick:()=>p(e.key),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold whitespace-nowrap transition-colors",style:{...Y,background:n?g:"rgba(255,255,255,0.08)",color:n?"#1A1033":"#D9D2E9"},children:[(0,t.jsx)(r,{size:15}),e.label]},e.key)})}),x.intro&&(0,t.jsxs)("div",{className:"mb-6 rounded-xl border border-[#F5C242]/20 bg-[#F5C242]/[0.06] p-4",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center gap-2",children:[(0,t.jsx)(k.ShieldCheck,{size:18,color:"#F5C242"}),(0,t.jsx)("h4",{className:"text-base font-bold",style:{...Y,color:"#F5C242"},children:x.intro.title})]}),(0,t.jsx)("p",{className:"text-sm leading-relaxed",style:{...Y,color:"#D9D2E9"},children:x.intro.description})]}),(0,t.jsx)("div",{className:"space-y-4",children:x.steps.map(e=>(0,t.jsx)(en,{...e},e.number))}),x.footerNotice&&(0,t.jsx)(J,{type:x.footerNotice.type,children:x.footerNotice.text})]})]})}function ep(){let{t:e,language:r}=(0,i.useLanguage)(),l={zh:["æ¡é¢ç宿¹ä¸è½½","Claude Code æ¡é¢ç","ChatGPTï¼Codexï¼æ¡é¢ç"],en:["Official desktop downloads","Claude Code desktop","ChatGPT (Codex) desktop"],ja:["ãã¹ã¯ãããçã®å
¬å¼ãã¦ã³ãã¼ã","Claude Code ãã¹ã¯ãããç","ChatGPTï¼Codexï¼ãã¹ã¯ãããç"],ko:["ê³µì ë°ì¤í¬í± ë¤ì´ë¡ë","Claude Code ë°ì¤í¬í±","ChatGPT (Codex) ë°ì¤í¬í±"],es:["Descargas oficiales de escritorio","Claude Code para escritorio","ChatGPT (Codex) para escritorio"],ru:["ÐÑиÑиалÑнÑе наÑÑолÑнÑе пÑиложениÑ","Claude Code Ð´Ð»Ñ ÐºÐ¾Ð¼Ð¿ÑÑÑеÑа","ChatGPT (Codex) Ð´Ð»Ñ ÐºÐ¾Ð¼Ð¿ÑÑÑеÑа"],ar:["ØªÙØ²Ù٠تطبÙÙØ§Øª Ø³Ø·Ø Ø§ÙÙ
ÙØªØ¨ Ø§ÙØ±Ø³Ù
ÙØ©","Claude Code ÙØ³Ø·Ø اÙÙ
ÙØªØ¨","ChatGPT (Codex) ÙØ³Ø·Ø اÙÙ
ÙØªØ¨"],fa:["داÙÙÙØ¯ رسÙ
Û ÙØ³Ø®Ù دسکتاپ","ÙØ³Ø®Ù دسکتاپ Claude Code","ÙØ³Ø®Ù دسکتاپ ChatGPT (Codex)"],vi:["Tải bản máy tÃnh chÃnh thức","Claude Code cho máy tÃnh","ChatGPT (Codex) cho máy tÃnh"]}[r],[a,s]=(0,n.useState)(!1),c=[{title:e.installGuideClaudeTitle,subtitle:e.installGuideClaudeSubtitle,icon:N.Terminal,chips:["PowerShell / Shell","Anthropic Env","QuickRouter.AI"]},{title:e.installGuideCodexTitle,subtitle:e.installGuideCodexSubtitle,icon:o,chips:["Git Bash","config.toml","CodeX CLI"]}];return(0,t.jsxs)("section",{className:"qr-section qr-install-section relative overflow-hidden",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_20%_12%,rgba(245,194,66,0.08),transparent_28%),radial-gradient(circle_at_80%_20%,rgba(56,189,248,0.07),transparent_24%)]"}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-6xl",children:[(0,t.jsxs)("div",{className:"qr-reveal-soft text-center mb-12",children:[(0,t.jsxs)("div",{className:"qr-section-kicker mx-auto mb-4",style:{...Y},children:[(0,t.jsx)($,{size:16}),e.installGuideKicker]}),(0,t.jsx)("h2",{className:"qr-title text-3xl md:text-4xl mb-4",style:{...Y},children:e.installGuideTitle}),(0,t.jsx)("p",{className:"qr-subtitle text-xl max-w-2xl mx-auto",style:{...Y},children:e.installGuideSubtitle}),(0,t.jsx)("div",{className:"mx-auto mt-6 flex max-w-2xl flex-wrap justify-center gap-2",children:[{icon:G,label:"Node.js"},{icon:d.KeyRound,label:"API Key"},{icon:N.Terminal,label:"CLI"},{icon:k.ShieldCheck,label:"Base URL"}].map(e=>{let n=e.icon;return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-lg border px-3 py-1.5 text-sm font-semibold",style:{...Y,color:"#D9D2E9",borderColor:"rgba(245,194,66,0.16)",background:"rgba(255,255,255,0.04)"},children:[(0,t.jsx)(n,{size:15,color:"#F5C242"}),e.label]},e.label)})})]}),(0,t.jsxs)("div",{className:"mb-8 rounded-2xl border border-[#f5c242]/20 bg-white/[0.025] p-5",children:[(0,t.jsxs)("h3",{className:"mb-4 flex items-center gap-2 text-lg font-bold text-[#F5C242]",children:[(0,t.jsx)(j,{size:20,"aria-hidden":"true"}),l[0]]}),(0,t.jsx)("div",{className:"grid gap-3 md:grid-cols-2",children:[{label:l[1],href:"https://support.claude.com/zh-CN/articles/10065433",domain:"zh"===r?"宿¹ä¸æå®è£
æåï¼å«ä¸è½½å
¥å£ï¼":"support.claude.com/zh-CN"},{label:l[2],href:"https://chatgpt.com/zh-Hans-CN/download/",domain:"chatgpt.com/zh-Hans-CN/download"}].map(e=>(0,t.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"flex min-h-16 items-center justify-between gap-4 roun
67ded-xl border border-white/10 px-4 py-3 text-white transition-colors hover:border-[#f5c242]/50 hover:bg-[#f5c242]/10 focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#f5c242]",children:[(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block font-semibold",children:e.label}),(0,t.jsx)("span",{className:"mt-1 block text-xs text-[#BFB4D4]",children:e.domain})]}),(0,t.jsx)(w,{size:20,className:"shrink-0 text-[#F5C242]","aria-hidden":"true"})]},e.href))})]}),a?(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-2",children:[(0,t.jsx)(eu,{title:e.installGuideClaudeTitle,subtitle:e.installGuideClaudeSubtitle,icon:(0,t.jsx)(N.Terminal,{size:25}),accent:"claude",chips:[{icon:N.Terminal,label:"PowerShell / Shell"},{icon:d.KeyRound,label:"Anthropic Env"},{icon:T,label:"QuickRouter.AI"}],getSteps:el,t:e}),(0,t.jsx)(eu,{title:e.installGuideCodexTitle,subtitle:e.installGuideCodexSubtitle,quickStart:e.installGuideCodexQuickStart,icon:(0,t.jsx)(o,{size:25}),accent:"codex",chips:[{icon:P,label:"Git Bash"},{icon:I.FileCode2,label:"config.toml"},{icon:C.Sparkles,label:"CodeX CLI"}],getSteps:eo,t:e})]}):(0,t.jsx)(h.ScrollReveal,{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:c.map(e=>{let n=e.icon;return(0,t.jsxs)("div",{className:"rounded-2xl border p-5",style:{borderColor:"rgba(245,194,66,0.18)",background:"linear-gradient(180deg, rgba(35,16,62,.82), rgba(14,6,27,.92))",boxShadow:"0 18px 48px rgba(0,0,0,.22)"},children:[(0,t.jsxs)("div",{className:"mb-4 flex items-start gap-3",children:[(0,t.jsx)("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-[#f5c242]/12 text-[#F5C242] ring-1 ring-[#f5c242]/22",children:(0,t.jsx)(n,{size:22,strokeWidth:2.4})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"text-xl font-black text-white",style:Y,children:e.title}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-relaxed text-[#BFB4D4]",style:Y,children:e.subt
67itle})]})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.chips.map(e=>(0,t.jsx)("span",{className:"rounded-lg border px-2.5 py-1 text-xs font-bold text-[#D9D2E9]",style:{borderColor:"rgba(245,194,66,.16)",background:"rgba(255,255,255,.04)"},children:e},e))})]},e.title)})}),(0,t.jsx)("div",{className:"mt-6 flex justify-center",children:(0,t.jsx)("button",{type:"button",onClick:()=>s(e=>!e),className:"qr-secondary-button px-8 py-3 text-base",children:a?"æ¶èµ·å®è£
æ¥éª¤":"å±å¼å®æ´å®è£
æ¥éª¤"})})]})]})}e.s(["HomeSetupSection",0,function(){let{t:e}=(0,i.useLanguage)(),[l,a]=(0,n.useState)(null);(0,n.useEffect)(()=>{let e=()=>{let e=window.location.hash.slice(1);["tool-config","config-download","install-guides"].includes(e)&&a(e)};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]);let s=[{id:"tool-config",title:e.toolConfigTitle,content:(0,t.jsx)(v,{})},{id:"config-download",title:e.switchTitle,content:(0,t.jsx)(M,{})},{id:"install-guides",title:e.installGuideTitle,content:(0,t.jsx)(ep,{})}];return(0,t.jsx)("div",{className:"qr-home-setup",children:(0,t.jsx)("div",{className:"mx-auto max-w-6xl space-y-3 px-5 pb-12 md:px-8",children:s.map(e=>(0,t.jsxs)("details",{id:e.id,open:l===e.id,className:"group scroll-mt-28 rounded-2xl border border-white/10 bg-white/[0.025]",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-4 rounded-2xl px-5 py-5 font-bold text-[#F5C242] focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#F5C242] [&::-webkit-details-marker]:hidden",onClick:t=>{t.preventDefault(),a(l===e.id?null:e.id)},children:[e.title,(0,t.jsx)(r.ChevronDown,{"aria-hidden":"true",className:"h-5 w-5 shrink-0 transition-transform group-open:rotate-180"})]}),(0,t.jsx)("div",{className:"qr-setup-detail border-t border-white/10",children:e.content})]},e.id))})})}],91337)},48797,e=>{e.v({caption:"ReasonsFeaturesSection-module__IJ_G4G__caption",card:"ReasonsFeaturesSection-module__IJ_G4G__card",cardContent:"ReasonsFeaturesSection-module__IJ_G4G__cardContent",cta:"ReasonsFeaturesSection-module__IJ_G4G__cta",description:"ReasonsFeaturesSection-module__IJ_G4G__description",eyebrow:"ReasonsFeaturesSection-module__IJ_G4G__eyebrow",featured:"ReasonsFeaturesSection-module__IJ_G4G__featured",gallery:"ReasonsFeaturesSection-module__IJ_G4G__gallery",headline:"ReasonsFeaturesSection-module__IJ_G4G__headline",intro:"ReasonsFeaturesSection-module__IJ_G4G__intro",media:"ReasonsFeaturesSection-module__IJ_G4G__media",modelName:"ReasonsFeaturesSection-module__IJ_G4G__modelName",play:"ReasonsFeaturesSection-module__IJ_G4G__play",preview:"ReasonsFeaturesSection-module__IJ_G4G__preview",provider:"ReasonsFeaturesSection-module__IJ_G4G__provider",shade:"ReasonsFeaturesSection-module__IJ_G4G__shade",studio:"ReasonsFeaturesSection-module__IJ_G4G__studio"})},83223,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(15057),i=e.i(75254);let l=(0,i.default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]),a=(0,i.default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);var s=e.i(98345),o=e.i(48797),c=e.i(65194);let d={zh:["AI åä½å·¥ä½å°","è®©çµæï¼æä¸ºçå¾è§çä½å","ç¨ä¸ä¸ª QuickRouter API Keyï¼å®æ AI 对è¯ãå¾ççæåè§é¢åä½ã卿 éç»å¸ä¸è¿æ¥å使µç¨ï¼ææç¤ºè¯ä¸ç´ æä¸èµ·ä¿åã","è¿å
¥ AI åä½å·¥ä½å°"],en:["AI Creation Studio","Turn ideas into work you can see","Chat, generate images and create videos with one QuickRouter API Key. Connect your workflow on an infinite canvas and keep your prompts and assets together.","Open AI Creation Studio"],ja:["AI å¶ä½ã¹ã¿ã¸ãª","ã¢ã¤ãã¢ããç®ã«è¦ããä½åã¸","1ã¤ã® QuickRouter API Key ã§å¯¾è©±ãç»åçæãåç»å¶ä½ãç¡éãã£ã³ãã¹ã§å¶ä½ããã¼ãã¤ãªããããã³ããã¨ç´ æãã¾ã¨ãã¦ä¿åã","AI å¶ä½ã¹ã¿ã¸ãªãéã"],ko:["AI ì°½ì ì¤íëì¤","ìì´ëì´ë¥¼ ëì ë³´ì´ë ìíì¼ë¡","íë
67ì QuickRouter API Keyë¡ ëí, ì´ë¯¸ì§ ìì±, ìì ì ìì ììíì¸ì. 무í ìºë²ì¤ìì ìì
ì ì°ê²°íê³ í롬íí¸ì ìë£ë¥¼ í¨ê» ë³´ê´íì¸ì.","AI ì°½ì ì¤íëì¤ ì´ê¸°"],es:["Estudio creativo de IA","Convierte tus ideas en creaciones","Conversa, genera imágenes y crea vÃdeos con una API Key de QuickRouter. Conecta tu flujo en un lienzo infinito y guarda tus prompts y recursos.","Abrir el estudio creativo"],ru:["ТвоÑÑеÑÐºÐ°Ñ AI-ÑÑÑдиÑ","ÐÑевÑаÑиÑе идеи в гоÑовÑе ÑабоÑÑ","ÐбÑайÑеÑÑ, ÑоздавайÑе изобÑÐ°Ð¶ÐµÐ½Ð¸Ñ Ð¸ видео Ñ Ð¾Ð´Ð½Ð¸Ð¼ API Key QuickRouter. ÐбÑединÑйÑе пÑоÑеÑÑÑ Ð½Ð° беÑконеÑном Ñ
олÑÑе и ÑоÑ
ÑанÑйÑе пÑомпÑÑ Ð¸ маÑеÑиалÑ.","ÐÑкÑÑÑÑ AI-ÑÑÑдиÑ"],ar:["Ø§Ø³ØªÙØ¯ÙÙ Ø§ÙØ¥Ø¨Ø¯Ø§Ø¹ Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ","ØÙÙ٠أÙÙØ§Ø±Ù Ø¥Ù٠أعÙ
ا٠Ù
Ø±Ø¦ÙØ©","دردش ÙØ£Ùشئ Ø§ÙØµÙر ÙØ§ÙÙÙØ¯Ù٠بÙ
ÙØªØ§Ø QuickRouter API ÙØ§ØØ¯. اربط Ø®Ø·ÙØ§Øª Ø§ÙØ¹Ù
٠عÙÙ ÙÙØØ© ÙØ§ ÙÙØ§Ø¦ÙØ© ÙØ§ØÙظ Ø§ÙØ£ÙاÙ
ر ÙØ§ÙÙ
ÙØ§Ø¯ Ù
Ø¹ÙØ§.","Ø§ÙØªØ Ø§Ø³ØªÙØ¯ÙÙ Ø§ÙØ¥Ø¨Ø¯Ø§Ø¹"],fa:["Ø§Ø³ØªÙØ¯ÛÙÛ Ø®ÙØ§ÙÛØª ÙÙØ´ Ù
صÙÙØ¹Û","Ø§ÛØ¯ÙâÙØ§ را ب٠آثار Ø¯ÛØ¯ÙÛ ØªØ¨Ø¯ÛÙ Ú©ÙÛØ¯","با ÛÚ© Ú©ÙÛØ¯ QuickRouter API Ú¯ÙØªÚ¯Ù Ú©ÙÛØ¯ ٠تصÙÛØ± Ù ÙÛØ¯ÛÙ Ø¨Ø³Ø§Ø²ÛØ¯. گردش کار را رÙÛ Ø¨ÙÙ
بÛâÙÙØ§Ûت Ù
تص٠کÙÛØ¯ ٠پراÙ
پتâÙØ§ Ù ÙØ§ÛÙâÙØ§ را Ú©ÙØ§Ø± ÙÙ
ÙÚ¯Ù Ø¯Ø§Ø±ÛØ¯.","ÙØ±Ùد Ø¨Ù Ø§Ø³ØªÙØ¯ÛÙÛ Ø®ÙØ§ÙÛØª"],vi:["Studio sáng tạo AI","Biến ý tưá»ng thà nh tác phẩm","Trò chuyá»n, tạo ảnh và video bằng má»t QuickRouter API Key. Kết ná»i quy trình trên canvas vô hạn, lưu prompt và tư liá»u cùng nhau.","Má» Studio sáng tạo AI"]},u=[{clip:"seedance25-stage",id:"doubao-seedance-2-5-260628",name:"Seedance 2.5",provider:"ByteDance",zhProvider:"åèè·³å¨",caption:"ç»å°æ¶å»"},{clip:"seedance20-demo",id:"doubao-seedance-2-0-260128",name:"Seedance 2.0",provider:"ByteDance",zhProvider:"åèè·³å¨",caption:"ç©¿è¶åç»"},{clip:"vidu-demo",id:"viduq3-pro",name:"Vidu Q3 Pro",provider:"ShengShu",zhProvider:"çæ°ç§æ",caption:"åå¡é¦å¥é"},{clip:"kling-official",id:"kling-3.0-turbo",name:"Kling 3.0 Turbo",provider:"Kuaishou",zhProvider:"å¿«æ",caption:"è±åæ©é¤"},{clip:"grok-knight",id:"grok-imagine-video",name:"Grok Imagine Video",provider:"xAI",zhProvider:"xAI",caption:"éæ³æ£®æéªå£«"}];function p({clip:e,label:r}){let i=(0,n.useRef)(null),s=(0,n.useRef)(null),[c,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let t=i.current;if(!t)return;let n=!1,r=window.matchMedia("(prefers-reduced-motion: reduce)"),l=()=>{n&&!document.hidden&&(s.current??!r.matches)?(t.getAttribute("src")||(t.src=`/videos/creative-studio/${e}-v2.mp4`),t.play().catch(()=>{})):t.pause()},a=new IntersectionObserver(([e])=>{n=e.isIntersecting,l()},{threshold:.3});return a.observe(t),r.addEventListener("change",l),document.addEventListener("visibilitychange",l),()=>{a.disconnect(),t.pause(),r.removeEventListener("change",l),document.removeEventListener("visibilitychange",l)}},[e]),(0,t.jsxs)("div",{className:o.default.preview,children:[(0,t.jsx)("video",{ref:i,poster:`/videos/creative-studio/${e}-v1.jpg`,"aria-label":r,muted:!0,loop:!0,playsInline:!0,preload:"none",className:o.default.media,onPlay:()=>d(!0),onPause:()=>d(!1)}),(0,t.jsx)("div",{className:o.default.shade}),(0,t.jsx)("span",{className:o.default.caption,children:r}),(0,t.jsx)("button",{type:"button",className:o.default.play,"aria-label":r,"aria-pressed":c,onClick:()=>{let t=i.current;t&&(t.getAttribute("src")||(t.src=`/videos/creative-studio/${e}-v2.mp4`),s.current=t.paused,t.paused?t.play().catch(()=>{}):t.pause())},children:c?(0,t.jsx)(l,{size:18,"aria-hidden":"true"}):(0,t.jsx)(a,{size:18,"aria-hidden":"true"})})]})}e.s(["ReasonsFeaturesSection",0,function(){let{language:e,t:n}=(0,s.useLanguage)(),[i,l,a,m]=d[e];return(0,t.jsx)("section",{id:"creative-studio",className:"qr-section qr-reasons-section",children:(0,t.jsx)("div",{className:"container mx-auto",children:(0,t.jsxs)("div",{className:`${o.default.studio} gravity-studio`,children:[(0,t.jsxs)("div",{className:`${o.default.intro} text-center`,children:[(0,t.jsx)(c.SectionHeading,{eyebrow:i,title:l,description:a,highlight:"æä¸ºçå¾è§çä½å"}),(0,t.jsxs)("a",{href:"https://quickrouter.ai/pic",target:"_blank",rel:"noopener noreferrer",className:o.default.cta,children:[m,(0,t.jsx)(r.ArrowUpRight,{size:20,"aria-hidden":"true"})]})]}),(0,t.jsx)("div",{className:`${o.default.gallery} gravity-studio-gallery`,children:u.map((i,l)=>(0,t.jsxs)("article",{className:`${o.default.card} gravity-media-card ${l<2?`${o.default.featured} gravity-media-featured`:""}`,children:[(0,t.jsx)(p,{clip:i.clip,label:"zh"===e?`${i.caption} \xb7 ${i.name}`:i.name}),(0,t.jsxs)("div",{className:o.default.cardContent,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:o.default.provider,children:"zh"===e?i.zhProvider:i.provider}),(0,t.jsx)("h3",{className:o.default.modelName,children:i.name})]}),(0,t.jsxs)("a",{href:`https://quickrouter.ai/pic/video?model=${encodeURIComponent(i.id)}`,target:"_blank",rel:"noopener noreferrer","aria-label":`${i.name} ${"zh"===e?"è§é¢åä½":n.mmVideoTitle}`,className:o.default.cta,children:["zh"===e?"è§é¢åä½":n.mmVideoTitle,(0,t.jsx)(r.ArrowUpRight,{size:18,"aria-hidden":"true"})]})]})]},i.id))})]})})})}],83223)},70273,e=>{"use strict";
67let t=(0,e.i(75254).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,t],70273)},55838,(e,t,n)=>{"use strict";var r=e.r(71645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=r.useState,a=r.useEffect,s=r.useLayoutEffect,o=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var d="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=l({inst:{value:n,getSnapshot:t}}),i=r[0].inst,d=r[1];return s(function(){i.value=n,i.getSnapshot=t,c(i)&&d({inst:i})},[e,n,t]),a(function(){return c(i)&&d({inst:i}),e(function(){c(i)&&d({inst:i})})},[e]),o(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},2239,(e,t,n)=>{"use strict";t.exports=e.r(55838)},52822,(e,t,n)=>{"use strict";var r=e.r(71645),i=e.r(2239),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,o=r.useEffect,c=r.useMemo,d=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var u=s(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;var m=a(e,(u=c(function(){function e(e){if(!o){if(o=!0,a=e,e=r(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,l(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,o=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]))[0],u[1]);return o(function(){p.hasValue=!0,p.value=m},[m]),d(m),m}},30224,(e,t,n)=>{"use strict";t.exports=e.r(52822)},14908,e=>{"use strict";let t,n;var r,i,l,a,s,o,c=e.i(43476);function d(e,t){return"million_tokens"===e?t?"/ ç¾ä¸ Tokens":"/ 1M Tokens":"reference"===e?t?"åºåä»·":"base price":"pixel"===e?t?"/ åç´ ":"/ pixel":"second"===e?t?"/ ç§":"/ second":"video_size"===e?t?"æè§é¢å°ºå¯¸":"per video size":t?"/ 次":"/ call"}var u=e.i(71645),p=e.i(57688),m=e.i(65194),h=e.i(72520),x=e.i(75254);let f=(0,x.default)("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);var g=e.i(35501),b=e.i(53339),v=e.i(55436);let y=(0,x.default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);var w=e.i(70273);let j=(0,x.default)("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]);var k=e.i(78716),C=e.i(98345);e.s([],75704),e.i(75704),e.i(47167);let N=function(e,...t){let n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`},F=u.createContext(void 0);function S(e){let t=u.useContext(F);if(!1===e&&void 0===t)throw Error(N(27));return t}let E={};function A(e,t){let n=u.useRef(E);return n.current===E&&(n.current=e(t)),n}function q(e,t,n,r){var i,l,a,s,o;let c=A(D).current;return i=c,l=e,a=t,s=n,o=r,(i.refs[0]!==l||i.refs[1]!==a||i.refs[2]!==s||i.refs[3]!==o)&&M(c,[e,t,n,r]),c.callback}function D(){return{callback:null,cleanup:null,refs:[]}}function M(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(n);"function"==typeof t&&(r[e]=t);break}case"object":i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}let R=parseInt(u.version,10);function T(e){if(!u.isValidElement(e))return null;let t=e.props;return(R>=19?t?.ref:e.ref)??null}function _(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}let I={};function L(e,t,n,r,i){if(!n&&!r&&!i&&!e)return P(t);let l=P(e);return t&&(l=B(l,t)),n&&(l=B(l,n)),r&&(l=B(l,r)),i&&(l=B(l,i)),l}function P(e){return O(e)?{...z(e,I)}:function(e){let t={...e};for(let e in t){let n=t[e];G(e,n)&&(t[e]=$(n))}return t}(e)}function B(e,t){return O(t)?z(t,e):function(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case"style":e[n]=_(e.style,r);break;case"className":e[n]=W(e.className,r);break;default:G(n,r)?e[n]=function(e,t){return t?e?n=>{if(H(n)){K(n);let r=t(n);return n.baseUIHandlerPrevented||e?.(n),r}let r=t(n);return e?.(n),r}:$(t):e}(e[n],r):e[n]=r}}return e}(e,t)}function G(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return 111===n&&110===r&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function O(e){return"function"==typeof e}function z(e,t){return O(e)?e(t):e??I}function $(e){return e?t=>(H(t)&&K(t),e(t)):e}function K(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function W(e,t){return t?e?t+" "+e:t:e}function H(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}function V(){}Object.freeze([]);let U=Object.freeze({});function Q(e,t,n={}){let r=t.render,i=function(e,t={}){var n,r,i;let{className:l,style:a,render:s}=e,{state:o=U,ref:c,props:d,stateAttributesMapping:u,enabled:p=!0}=t,m=p?"function"==typeof l?l(o):l:void 0,h=p?"function"==typeof a?a(o):a:void 0,x=p?function(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);null!=e&&Object.assign(n,e);continue}!0===i?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}(o,u):U,f=p&&d?function(e){if(Array.isArray(e)){if(0===e.length)return I;if(1===e.length)return P(e[0]);let t=P(e[0]);for(let n=1;n<e.length;n+=1)t=B(t,e[n]);return t}return L(void 0,e)}(d):void 0,g=p?_(x,f)??{}:U;
67if("u">typeof document)if(p)if(Array.isArray(c)){let e;n=[g.ref,T(s),...c],r=e=A(D).current,i=n,(r.refs.length!==i.length||r.refs.some((e,t)=>e!==i[t]))&&M(e,n),g.ref=e.callback}else g.ref=q(g.ref,T(s),c);else q(null,null);return p?(void 0!==m&&(g.className=W(g.className,m)),void 0!==h&&(g.style=_(g.style,h)),g):U}(t,n);return!1===n.enabled?null:function(e,t,n,r){if(t){if("function"==typeof t)return t(n,r);let e=L(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===Y&&(i=u.Children.toArray(t)[0]),u.cloneElement(i,e)}if(e&&"string"==typeof e){var i,l;return i=e,l=n,"button"===i?(0,u.createElement)("button",{type:"button",...l,key:l.key}):"img"===i?(0,u.createElement)("img",{alt:"",...l,key:l.key}):u.createElement(i,l)}throw Error(N(8))}(e,r,i,n.state??U)}let Y=Symbol.for("react.lazy"),X=((r={}).startingStyle="data-starting-style",r.endingStyle="data-ending-style",r),J={[X.startingStyle]:""},Z={[X.endingStyle]:""},ee={transitionStatus:e=>"starting"===e?J:"ending"===e?Z:null},et=((i={}).open="data-open",i.closed="data-closed",i[i.startingStyle=X.startingStyle]="startingStyle",i[i.endingStyle=X.endingStyle]="endingStyle",i.anchorHidden="data-anchor-hidden",i.side="data-side",i.align="data-align",i),en=((l={}).popupOpen="data-popup-open",l.pressed="data-pressed",l),er={[en.popupOpen]:""};en.popupOpen,en.pressed;let ei={[et.open]:""},el={[et.closed]:""},ea={[et.anchorHidden]:""},es={open:e=>e?er:null},eo={open:e=>e?ei:el,anchorHidden:e=>e?ea:null},ec={...eo,...ee},ed=u.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:l=!1,...a}=e,{store:s}=S(),o=s.useState("open"),c=s.useState("nested"),d=s.useState("mounted");return Q("div",e,{state:{open:o,transitionStatus:s.useState("transitionStatus")},ref:[s.context.backdropRef,t],stateAttributesMapping:ec,props:[{role:"presentation",hidden:!d,style:{userSelect:"none",WebkitUserSelect:"none"}},a],enabled:l||!c})});function eu(){return"u">typeof window}function ep(e){return eh(e)?(e.nodeName||"").toLowerCase():"#document"}function em(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eh(e){return!!eu()&&(e instanceof Node||e instanceof em(e).Node)}function ex(e){return!!eu()&&(e instanceof Element||e instanceof em(e).Element)}function ef(e){return!!eu()&&(e instanceof HTMLElement||e instanceof em(e).HTMLElement)}function eg(e){return!(!eu()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof em(e).ShadowRoot)}function eb(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ey(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function ev(e){return/^(html|body|#document)$/.test(ep(e))}function ey(e){return em(e).getComputedStyle(e)}let ew=u[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],ej=ew&&ew!==u.useLayoutEffect?ew:e=>e();function ek(e){let t=A(eC).current;return t.next=e,ej(t.effect),t.trampoline}function eC(){let e={next:void 0,callback:eN,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function eN(){}let eF="u">typeof document?u.useLayoutEffect:()=>{},eS=u.createContext(void 0);function eE(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:l}=e,a=u.useRef(null),s=function(e=!1){let t=u.useContext(eS);if(void 0===t&&!e)throw Error(N(16));return t}(!0),o=l??void 0!==s,{props:c}=function(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:l}=e,a=r&&!1!==t,s=r&&!1===t;return{props:u.useMemo(()=>{let e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=i,!l&&n&&(e.tabIndex=t?i:-1)),(l&&(t||a)||!l&&n)&&(e["aria-disabled"]=n),l&&(!t||s)&&(e.disabled=n),e},[r,n,t,a,s,l,i])}}({focusableWhenDisabled:n,disabled:t,composite:o,tabIndex:r,isNativeButton:i}),d=u.useCallback(()=>{let e=a.current;eA(e)&&o&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)},[t,c.disabled,o]);return eF(d,[d]),{getButtonProps:u.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:l,onKeyDown:a,onPointerDown:s,...d}=e;return L({type:i?"button":void 0,onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){var r;if(t||(K(e),a?.(e),e.baseUIHandlerPrevented))return;let l=e.target===e.currentTarget,s=e.currentTarget,c=eA(s),d=!i&&(r=s,!!(r?.tagName==="A"&&r?.href)),u=l&&(i?c:!d),p="Enter"===e.key,m=" "===e.key,h=s.getAttribute("role"),x=h?.startsWith("menuitem")||"option"===h||"gridcell"===h;if(l&&o&&m){if(e.defaultPrevented&&x)return;e.preventDefault(),d||i&&c?(s.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(m||p)&&e.preventDefault(),!i&&p&&n?.(e))},onKeyUp(e){t||((K(e),l?.(e),e.target===e.currentTarget&&i&&o&&eA(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||i||o||" "!==e.key||n?.(e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?void 0:{role:"button"},c,d)},[t,c,o,i]),buttonRef:ek(e=>{a.current=e,d()})}}function eA(e){return ef(e)&&"BUTTON"===e.tagName}function eq(e,t,n,r){let i=!1,l=!1,a=r??U;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){l=!0},get isCanceled(){return i},get isPropagationAllowed(){return l},trigger:n,...a}}e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","dayPress",0,"day-press","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","
67inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","monthChange",0,"month-change","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","valuePropChange",0,"value-prop-change","wheel",0,"wheel","windowResize",0,"window-resize"],16162);var eD=e.i(16162),eD=eD;let eM=u.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:l=!0,style:a,...s}=e,{store:o}=S(),c=o.useState("open"),{getButtonProps:d,buttonRef:u}=eE({disabled:i,native:l});return Q("button",e,{state:{disabled:i},ref:[t,u],props:[{onClick:function(e){c&&o.setOpen(!1,eq(eD.closePress,e.nativeEvent))}},s,d]})}),eR={...u},eT=0,e_=eR.useId;function eI(e,t){if(void 0!==e_){let n=e_();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){let[n,r]=u.useState(e),i=e||n;return u.useEffect(()=>{null==n&&(eT+=1,r(`${t}-${eT}`))},[n,t]),i}(e,t)}function eL(e){return eI(e,"base-ui")}let eP=u.forwardRef(function(e,t){let{render:n,className:r,style:i,id:l,...a}=e,{store:s}=S(),o=eL(l);return s.useSyncedValueWithCleanup("descriptionElementId",o),Q("p",e,{ref:t,props:[{id:o},a]})});function eB(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function eG(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function eO(e){let t=A(ez,e).current;return t.next=e,eF(t.effect),t}function ez(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}let e$=[];function eK(e){u.useEffect(e,e$)}class eW{static create(){return new eW}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function eH(){let e=A(eW.create).current;return eK(e.disposeEffect),e}let eV="u">typeof navigator,eU=function(){if(!eV)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),eQ=function(){if(!eV)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),eY=function(){if(!eV)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),eX="u">typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none"),eJ="MacIntel"===eU.platform&&eU.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(eU.platform);eV&&/firefox/i.test(eY);let eZ=eV&&/apple/i.test(navigator.vendor);eV&&/Edg/i.test(eY);let e0=eV&&/android/i.test(eQ)||/android/i.test(eY);eV&&eQ.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;let e1=eY.includes("jsdom/"),e2=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class e5{static create(){return new e5}static request(e){return e2.request(e)}static cancel(e){return e2.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=e2.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(e2.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}function e4(){let e=A(e5.create).current;return eK(e.disposeEffect),e}function e3(e){return e?.ownerDocument||document}
67let e6={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},e8={...e6,position:"fixed",top:0,left:0};({...e6,position:"absolute"});let e9=u.forwardRef(function(e,t){let[n,r]=u.useState();return eF(()=>{eZ&&r("button")},[]),(0,c.jsx)("span",{...e,ref:t,style:e8,"aria-hidden":!n||void 0,tabIndex:0,role:n,"data-base-ui-focus-guard":""})});function e7(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function te(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&eg(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function tt(e){return"composedPath"in e?e.composedPath()[0]:e.target}let tn="data-base-ui-focusable",tr="active",ti="selected";function tl(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function ta(e){return ef(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function ts(e){return!!e&&"combobox"===e.getAttribute("role")&&ta(e)}function to(e){return e?e.hasAttribute(tn)?e:e.querySelector(`[${tn}]`)||e:null}function tc(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function td(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}function tu(e){return"function"==typeof e.checkVisibility?e.checkVisibility():"none"!==ey(e).display}function tp(e){for(let t of Array.from(e.children))if("summary"===ep(t))return t;return null}function tm(e){let t=e?ep(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===ep(e.parentElement)&&tp(e.parentElement)===e)&&("details"!==t||null==tp(e))&&("input"!==t||"hidden"!==e.type)}function th(e){if(!tm(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return eg(n)?n.host:null}(t)){let n="slot"===ep(t);if(t.hasAttribute("inert")||t!==e&&"details"===ep(t)&&!t.open&&!function(e,t){let n=tp(t);return!!n&&(e===n||te(n,e))}(e,t)||t.hasAttribute("hidden")||!n&&!tu(t))return!1}return!0}function tx(e){let t=e.tabIndex;if(t<0){let t=ep(e);if("details"===t||"audio"===t||"video"===t||ef(e)&&e.isContentEditable)return 0}return t}function tf(e){return"input"!==ep(e)?null:"radio"===e.type&&""!==e.name?e:null}function tg(e){if(ef(e)&&"slot"===ep(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return ef(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function tb(e){return th(e)&&tx(e)>=0}function tv(e){let t=[];return!function e(t,n){tg(t).forEach(t=>{tm(t)&&n.push(t),e(t,n)})}(e,t),t.filter(th)}function ty(e){let t=tv(e);return t.filter(e=>tx(e)>=0&&function(e,t){let n=tf(e);if(!n)return!0;let r=t.find(e=>{let t=tf(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=tf(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function tw(e,t){let n=ty(e),r=n.length;if(0===r)return;let i=e7(e3(e)),l=n.indexOf(i);return n[-1===l?1===t?0:r-1:l+t]}function tj(e){return tw(e3(e).body,1)||e}function tk(e){return tw(e3(e).body,-1)||e}function tC(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!te(n,r)}function tN(e){let t=[];!function e(t,n,r){tg(t).forEach(t=>{ef(t)&&t.matches(n)&&r.push(t),e(t,n,r)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}function tF(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...tF(e,t.id,n)])}function tS(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}var eD=eD;function tE(e){return`data-base-ui-${e}`}let tA=0;function tq(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(tA);let l=()=>e?.focus({preventScroll:n});if(i)return l(),V;let a=requestAnimationFrame(l);return tA=a,()=>{tA===a&&(cancelAnimationFrame(a),tA=0)}}let tD={inert:new WeakMap,"aria-hidden":new WeakMap},tM="data-base-ui-inert",tR={inert:new WeakSet,"aria-hidden":new WeakSet},tT=new WeakMap,t_=0,tI=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=function e(t){return t?eg(t)?t.host:e(t.parentNode):null}(t);return e.contains(n)?n:null}).filter(e=>null!=e),tL=e=>{let t=new Set;
67return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},tP=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{"script"!==ep(e)&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function tB(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:l=[]}=t,a=e3(e[0]).body;return function(e,t,n,r,{mark:i=!0,markerIgnoreElements:l=[]}){let a=r?"inert":n?"aria-hidden":null,s=null,o=null,c=tI(t,e),d=new Set(i?tI(t,l):[]),u=i?tP(t,tL(c),new Set(c)).filter(e=>!d.has(e)):[],p=[],m=[];if(a){let e=tD[a],n=tR[a];o=n,s=e;let r=tI(t,Array.from(t.querySelectorAll("[aria-live]"))),i=c.concat(r);tP(t,tL(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=null!==r&&"false"!==r,l=(e.get(t)||0)+1;e.set(t,l),p.push(t),1===l&&i&&n.add(t),i||t.setAttribute(a,"inert"===a?"":"true")})}return i&&u.forEach(e=>{let t=(tT.get(e)||0)+1;tT.set(e,t),m.push(e),1===t&&e.setAttribute(tM,"")}),t_+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!o?.has(e)&&a&&e.removeAttribute(a),o?.delete(e))}),i&&m.forEach(e=>{let t=(tT.get(e)||0)-1;tT.set(e,t),t||e.removeAttribute(tM)}),(t_-=1)||(tD.inert=new WeakMap,tD["aria-hidden"]=new WeakMap,tR.inert=new WeakSet,tR["aria-hidden"]=new WeakSet,tT=new WeakMap)}}(e,a,n,r,{mark:i,markerIgnoreElements:l})}var tG=e.i(74080),eD=eD;let tO="data-base-ui-click-trigger",tz={clipPath:"inset(50%)",position:"fixed",top:0,left:0},t$=u.createContext(null),tK=tE("portal"),tW=u.forwardRef(function(e,t){let{children:n,container:r,className:i,render:l,renderGuards:a,style:s,...o}=e,{portalNode:d,portalSubtree:p}=function(e={}){let{ref:t,container:n,componentProps:r=U,elementProps:i}=e,l=eI(),a=u.useContext(t$),s=a?.portalNode,[o,c]=u.useState(null),[d,p]=u.useState(null),m=ek(e=>{null!==e&&p(e)}),h=u.useRef(null);eF(()=>
67{if(null===n){h.current&&(h.current=null,p(null),c(null));return}if(null==l)return;let e=(n&&(eh(n)?n:n.current))??s??document.body;if(null==e){h.current&&(h.current=null,p(null),c(null));return}h.current!==e&&(h.current=e,p(null),c(e))},[n,s,l]);let x=Q("div",r,{ref:[t,m],props:[{id:l,[tK]:""},i]});return{portalNode:d,portalSubtree:o&&x?tG.createPortal(x,o):null}}({container:r,ref:t,componentProps:e,elementProps:o}),m=u.useRef(null),h=u.useRef(null),x=u.useRef(null),f=u.useRef(null),[g,b]=u.useState(null),v=u.useRef(!1),y=g?.modal,w=g?.open,j="boolean"==typeof a?a:!!g&&!g.modal&&g.open&&!!d;u.useEffect(()=>{if(d&&!y)return eG(eB(d,"focusin",e,!0),eB(d,"focusout",e,!0));function e(e){d&&e.relatedTarget&&tC(e)&&("focusin"===e.type?v.current&&(tN(d),v.current=!1):(ty(d).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),v.current=!0))}},[d,y]),u.useEffect(()=>{d&&!1===w&&(tN(d),v.current=!1)},[w,d]);let k=u.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:h,beforeInsideRef:x,afterInsideRef:f,portalNode:d,setFocusManagerState:b}),[d]);return(0,c.jsxs)(u.Fragment,{children:[p,(0,c.jsxs)(t$.Provider,{value:k,children:[j&&d&&(0,c.jsx)(e9,{"data-type":"outside",ref:m,onFocus:e=>{if(tC(e,d))x.current?.focus();else{let e=tk(g?g.domReference:null);e?.focus()}}}),j&&d&&(0,c.jsx)("span",{"aria-owns":d.id,style:tz}),d&&tG.createPortal(n,d),j&&d&&(0,c.jsx)(e9,{"data-type":"outside",ref:h,onFocus:e=>{if(tC(e,d))f.current?.focus();else{let t=tj(g?g.domReference:null);t?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,eq(eD.focusOut,e.nativeEvent))}}})]})]})}),tH=u.createContext(null),tV=u.createContext(null),tU=()=>u.useContext(tH)?.id||null,tQ=e=>{let t=u.useContext(tV);return e??t};function tY(e){return null==e?e:"current"in e?e.current:e}let tX=[];function tJ(){tX=tX.filter(e=>e.deref()?.isConnected)}function tZ(){return tJ(),tX[tX.length-1]?.deref()}function t0(e,t){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;let n=tv(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return tb(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");t.current.includes("floating")||0===n.length?"0"!==r&&e.setAttribute("tabindex","0"):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function t1(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:l=!0,restoreFocus:a=!1,modal:s=!0,closeOnFocusOut:o=!0,openInteractionType:d="",nextFocusableElement:p,previousFocusableElement:m,beforeContentFocusGuardRef:h,externalTree:x,getInsideElements:f}=e,g="rootStore"in t?t.rootStore:t,b=g.useState("open"),v=g.useState("domReferenceElement"),y=g.useState("floatingElement"),{events:w,dataRef:j}=g.context,k=ek(()=>j.current.floatingContext?.nodeId),C=!1===i,N=ts(v)&&C,F=u.useRef(["content"]),S=eO(i),E=eO(l),A=eO(d),D=tQ(x),M=u.useContext(t$),R=u.useRef(!1),T=u.useRef(!1),_=u.useRef(!1),I=u.useRef(null),L=u.useRef(""),P=u.useRef(""),B=u.useRef(null),G=u.useRef(null),O=q(B,h,M?.beforeInsideRef),z=q(G,M?.afterInsideRef),$=eH(),K=eH(),W=e4(),H=null!=M,V=to(y),U=ek((e=V)=>e?ty(e):[]),Q=ek(()=>f?.().filter(e=>null!=e)??[]);u.useEffect(()=>{if(!r&&s)return eB(e3(V),"keydown",function(e){"Tab"===e.key&&te(V,e7(e3(V)))&&0===U().length&&!N&&(e.preventDefault(),e.stopPropagation())})},[r,v,V,s,F,N,U]),u.useEffect(()=>{if(r||!b)return;let e=e3(V);function t(){_.current=!1}return eG(eB(e,"pointerdown",function(e){let t=tt(e),n=Q();_.current=!(te(y,t)||te(v,t)||te(M?.portalNode,t)||n.some(e=>e===t||te(e,t))),P.current=e.pointerType||"keyboard",t?.closest(`[${tO}]`)&&(T.current=!0)},!0),eB(e,"pointerup",t,!0),eB(e,"pointercancel",t,!0),eB(e,"keydown",function(){P.current="keyboard"},!0))},[r,y,v,V,b,M,Q]),u.useEffect(()=>{if(r||!o)return;let e=e3(V);function t(t){let n=t.relatedTarget,r=t.currentTarget,i=tt(t);queueMicrotask(()=>{let l=k(),o=g.context.triggerElements,c=Q(),d=n?.hasAttribute(tE("focus-guard"))&&[B.current,G.current,M?.beforeInsideRef.current,M?.afterInsideRef.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,tY(m),tY(p)].includes(n),u=!(te(v,n)||te(y,n)||te(n,y)||te(M?.portalNode,n)||c.some(e=>e===n||te(e,n))||null!=n&&o.hasElement(n)||o.hasMatchingElement(e=>te(e,n))||d||D&&(tF(D.nodesRef.current,l).find(e=>te(e.context?.elements.floating,n)||te(e.context?.elements.domReference,n))||tS(D.nodesRef.current,l).find(e=>[e.context?.elements.floating,to(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===v&&V&&t0(V,F),a&&r!==v&&!(i&&i.isConnected&&("function"==typeof i.checkVisibility?i.checkVisibility():tu(i)))&&e7(e)===e.body){if(ef(V)&&(V.focus(),"popup"===a))return void W.request(()=>{V.focus()});let e=U(),t=I.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||V;ef(n)&&n.focus()}if(j.current.insideReactTree){j.current.insideReactTree=!1;return}(N||!s)&&n&&u&&!T.current&&(N||n!==tZ())&&(R.current=!0,g.setOpen(!1,eq(eD.focusOut,t)))})}let n=ef(v)?v:null;if(y||n)return eG(n&&eB(n,"focusout",t),n&&eB(n,"pointerdown",function(){T.current=!0,K.start(0,()=>{T.current=!1})}),y&&eB(y,"focusin",function(e){let t=tt(e);tb(t)&&(I.current=t)}),y&&eB(y,"focusout",t),y&&M&&eB(y,"focusout",function(){_.current||(j.current.insideReactTree=!0,$.start(0,()=>{j.current.insideReactTree=!1}))},!0))},[r,v,y,V,s,D,M,g,o,a,U,N,k,F,j,$,K,W,p,m,Q]),u.useEffect(()=>{if(r||!y||!b)return;let e=Array.from(M?.portalNode?.querySelectorAll(`[${tE("portal")}]`)||[]),t=D?tS(D.nodesRef.current,k()):[],n=t.find(e=>ts(e.context?.elements.domReference||null))?.context?.elements.domReference,i=tB([y,...e,B.current,G.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,...Q(),n,tY(m),tY(p),N?v:null].filter(e=>null!=e),{ariaHidden:s||N,mark:!1}),l=tB([y,...e].filter(e=>null!=e));return()=>{l(),i()}},[b,r,v,y,s,F,M,N,D,k,p,m,Q]),eF(()=>
67{if(!b||r||!ef(V))return;let e=e7(e3(V));queueMicrotask(()=>{let t,n=S.current,r="function"==typeof n?n(A.current||""):n;if(void 0===r||!1===r||te(V,e))return;let i=null,l=()=>(null==i&&(i=U(V)),i[0]||V);tq(t=(t=!0===r||null===r?l():tY(r))||l(),{preventScroll:t===V})})},[r,b,V,C,U,S,A]),eF(()=>{var e;if(r||!V)return;let t=e3(V);function n(e){var t,n,r,i;let l;if(e.open||(t=e.nativeEvent,n=P.current,l=em(tt(t)),L.current=t instanceof l.KeyboardEvent?"keyboard":t instanceof l.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof l.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===eD.triggerHover&&"mouseleave"===e.nativeEvent.type&&(R.current=!0),e.reason===eD.outsidePress)if(e.nested)R.current=!1;else if((""===(r=e.nativeEvent).pointerType&&r.isTrusted?0:e0&&r.pointerType?"click"!==r.type||1!==r.buttons:0!==r.detail||r.pointerType)&&(i=e.nativeEvent,e1?1:(e0||0!==i.width||0!==i.height)&&(!e0||1!==i.width||1!==i.height||0!==i.pressure||0!==i.detail||"mouse"!==i.pointerType)&&(!(i.width<1)||!(i.height<1)||0!==i.pressure||0!==i.detail||"touch"!==i.pointerType))){let e=!1;e3(V).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?R.current=!1:R.current=!0}else R.current=!1}return e=e7(t),tJ(),e&&"body"!==ep(e)&&(tX.push(new WeakRef(e)),tX.length>20&&(tX=tX.slice(-20))),w.on("openchange",n),()=>{w.off("openchange",n);let e=e7(t),r=Q(),i=te(y,e)||r.some(t=>t===e||te(t,e))||D&&tF(D.nodesRef.current,k(),!1).some(t=>te(t.context?.elements.floating,e)),l=E.current,a=function(){let e=E.current,t="function"==typeof e?e(L.current):e;if(void 0===t||!1===t)return null;if(null===t&&(t=!0),"boolean"==typeof t){let e=v||tZ();return e&&e.isConnected?e:null}let n=v||tZ();return tY(t)||n||null}();queueMicrotask(()=>{let n=a?tb(a)?a:ty(a)[0]||a:null;l&&!R.current&&ef(n)&&("boolean"!=typeof l||n===e||e===t.body||i)&&n.focus({preventScroll:!0}),R.current=!1})}},[r,y,V,E,j,w,D,v,k,Q]),eF(()=>{if(!eX||b||!y)return;let e=e7(e3(y));ef(e)&&ta(e)&&te(y,e)&&e.blur()},[b,y]),eF(()=>{if(!r&&M)return M.setFocusManagerState({modal:s,closeOnFocusOut:o,open:b,onOpenChange:g.setOpen,domReference:v}),()=>{M.setFocusManagerState(null)}},[r,M,s,b,g,o,v]),eF(()=>{if(!r&&V)return t0(V,F),()=>{queueMicrotask(tJ)}},[r,V,F]);let Y=!r&&(!s||!N)&&(H||s);return(0,c.jsxs)(u.Fragment,{children:[Y&&(0,c.jsx)(e9,{"data-type":"inside",ref:O,onFocus:e=>{if(s){let e=U();tq(e[e.length-1])}else if(M?.portalNode)if(R.current=!1,tC(e,M.portalNode)){let e=tj(v);e?.focus()}else tY(m??M.beforeOutsideRef)?.focus()}}),n,Y&&(0,c.jsx)(e9,{"data-type":"inside",ref:z,onFocus:e=>{if(s)tq(U()[0]);else if(M?.portalNode)if(o&&(R.current=!0),tC(e,M.portalNode)){let e=tk(v);e?.focus()}else tY(p??M.afterOutsideRef)?.focus()}})]})}let t2=((a={}).nestedDialogs="--nested-dialogs",a),t5=((s={})[s.open=et.open]="open",s[s.closed=et.closed]="closed",s[s.startingStyle=et.startingStyle]="startingStyle",s[s.endingStyle=et.endingStyle]="endingStyle",s.nested="data-nested",s.nestedDialogOpen="data-nested-dialog-open",s),t4=u.createContext(void 0);function t3(){let e=u.useContext(t4);if(void 0===e)throw Error(N(26));return e}function t6(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,l=ek(i),a=function(e,t=!1,n=!0){let r=e4();return ek((i,l=null)=>{r.cancel();let a=tY(e);if(null==a)return;let s=()=>{tG.flushSync(i)};if("function"!=typeof a.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void i();function o(){Promise.all(a.getAnimations().map(e=>e.finished)).then(()=>{l?.aborted||s()}).catch(()=>{if(n){l?.aborted||s();return}let e=a.getAnimations();!l?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&o()})}if(t){let e=X.startingStyle;if(!a.hasAttribute(e))return void r.request(o);let t=new MutationObserver(()=>{a.hasAttribute(e)||(t.disconnect(),o())});return t.observe(a,{attributes:!0,attributeFilter:[e]}),void l?.addEventListener("abort",()=>t.disconnect(),{once:!0})}r.request(o)})}(r,n,!1);u.useEffect(()=>{if(!t)return;let e=new AbortController;return a(l,e.signal),()=>{e.abort()}},[t,n,l,a])}let t8="ArrowUp",t9="ArrowDown",t7="ArrowLeft",ne="ArrowRight";[...new Set([...new Set([t7,ne]),...new Set([t8,t9])])];
67let nt=new Set([t8,t9,t7,ne,"Home","End"]),nn={...eo,...ee,nestedDialogOpen:e=>e?{[t5.nestedDialogOpen]:""}:null},nr=u.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:i,render:l,style:a,...s}=e,{store:o}=S(),d=o.useState("descriptionElementId"),u=o.useState("disablePointerDismissal"),p=o.useState("floatingRootContext"),m=o.useState("popupProps"),h=o.useState("modal"),x=o.useState("mounted"),f=o.useState("nested"),g=o.useState("nestedOpenDialogCount"),b=o.useState("open"),v=o.useState("openMethod"),y=o.useState("titleElementId"),w=o.useState("transitionStatus"),j=o.useState("role");t3(),t6({open:b,ref:o.context.popupRef,onComplete(){b&&o.context.onOpenChangeComplete?.(!0)}});let k=void 0===i?function(e){return"touch"!==e||o.context.popupRef.current}:i,C=Q("div",e,{state:{open:b,nested:f,transitionStatus:w,nestedDialogOpen:g>0},props:[m,{"aria-labelledby":y??void 0,"aria-describedby":d??void 0,role:j,tabIndex:-1,hidden:!x,onKeyDown(e){nt.has(e.key)&&e.stopPropagation()},style:{[t2.nestedDialogs]:g}},s],ref:[t,o.context.popupRef,o.useStateSetter("popupElement")],stateAttributesMapping:nn});return(0,c.jsx)(t1,{context:p,openInteractionType:v,disabled:!x,closeOnFocusOut:!u,initialFocus:k,returnFocus:r,modal:!1!==h,restoreFocus:"popup",children:C})}),ni=u.forwardRef(function(e,t){let n,{cutout:r,...i}=e;if(r){let e=r.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,c.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})}),nl=u.forwardRef(function(e,t){var n;let{keepMounted:r=!1,...i}=e,{store:l}=S(),a=l.useState("mounted"),s=l.useState("modal"),o=l.useState("open");return a||r?(0,c.jsx)(t4.Provider,{value:r,children:(0,c.jsxs)(tW,{ref:t,...i,children:[a&&!0===s&&(0,c.jsx)(ni,{ref:l.context.internalBackdropRef,inert:(n=!o,R>=19?n:n?"true":void 0)}),e.children]})}):null}),na={},ns={},no="";class nc{lockCount=0;restore=null;timeoutLock=eW.create();timeoutUnlock=eW.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,n,r,i,l;if(0===this.lockCount||null!==this.restore)return;let a=e3(e).documentElement,s=em(a).getComputedStyle(a).overflowY;if("hidden"===s||"clip"===s){this.restore=V;return}let o=eJ||!function(e){if("u"<typeof document)return!1;let t=e3(e);return em(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=o?(n=(t=e3(e)).documentElement,r=t.body,l={overflowY:(i=eb(n)?n:r).style.overflowY,overflowX:i.style.overflowX},Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,l)}):function(e){let t=e3(e),n=t.documentElement,r=t.body,i=em(n),l=0,a=0,s=!1,o=e5.create();if(eX&&(i.visualViewport?.scale??1)!==1)return()=>{};function c(){let t=i.getComputedStyle(n),o=i.getComputedStyle(r),c=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";l=n.scrollTop,a=n.scrollLeft,na={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},no=n.style.scrollBehavior,ns={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let d=n.scrollHeight>n.clientHeight,u=n.scrollWidth>n.clientWidth,p="scroll"===t.overflowY||"scroll"===o.overflowY,m="scroll"===t.overflowX||"scroll"===o.overflowX,h=Math.max(0,i.innerWidth-r.clientWidth),x=Math.max(0,i.innerHeight-r.clientHeight),f=parseFloat(o.marginTop)+parseFloat(o.marginBottom),g=parseFloat(o.marginLeft)+parseFloat(o.marginRight),b=eb(n)?n:r;if(s=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let t=e3(e),n=t.documentElement,r=t.body,i=eb(n)?n:r,l=i.style.overflowY,a=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",i.style.overflowY="scroll";let s=i.offsetWidth;i.style.overflowY="hidden";let o=i.offsetWidth;return i.style.overflowY=l,n.style.scrollbarGutter=a,s===o}(e)){n.style.scrollbarGutter=c,b.style.overflowY="hidden",b.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:c,overflowY:"hidden",overflowX:"hidden"}),(d||p)&&(n.style.overflowY="scroll"),(u||m)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:f||x?`calc(100dvh - ${f+x}px)`:"100dvh",width:g||h?`calc(100vw - ${g+h}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=l,r.scrollLeft=a,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function d(){Object.assign(n.style,na),Object.assign(r.style,ns),s||(n.scrollTop=l,n.scrollLeft=a,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=no)}c();let u=eB(i,"resize",function(){d(),o.request(c)});return()=>{o.cancel(),d(),"function"==typeof i.removeEventListener&&u()}}(e)}}let nd=new nc;var eD=eD;let nu={intentional:"onClick",sloppy:"onPointerDown"};function np(){return!1}function nm(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),l=u.useCallback(t=>nh(t,e,"reference"),t),a=u.useCallback(t=>nh(t,e,"floating"),n),s=u.useCallback(t=>nh(t,e,"item"),r),o=u.useCallback(t=>nh(t,e,"trigger"),i);return u.useMemo(()=>({getReferenceProps:l,getFloatingProps:a,getItemProps:s,getTriggerProps:o}),[l,a,s,o])}
67function nh(e,t,n){let r=new Map,i="item"===n,l={};for(let t in"floating"===n&&(l.tabIndex=-1,l[tn]=""),e)i&&e&&(t===tr||t===ti)||(l[t]=e[t]);for(let a=0;a<t.length;a+=1){let s,o=t[a]?.[n];(s="function"==typeof o?e?o(e):null:o)&&nx(l,s,i,r)}return nx(l,e,i,r),l}function nx(e,t,n,r){for(let i in t){let l=t[i];n&&(i===tr||i===ti)||(i.startsWith("on")?(r.has(i)||r.set(i,[]),"function"==typeof l&&(r.get(i)?.push(l),e[i]=(...e)=>r.get(i)?.map(t=>t(...e)).find(e=>void 0!==e))):e[i]=l)}}let nf=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]),ng=(e,t,n,r,i,l,...a)=>{let s;if(a.length>0)throw Error(N(1));if(e&&t&&n&&r&&i&&l)s=(a,s,o,c)=>l(e(a,s,o,c),t(a,s,o,c),n(a,s,o,c),r(a,s,o,c),i(a,s,o,c),s,o,c);else if(e&&t&&n&&r&&i)s=(l,a,s,o)=>i(e(l,a,s,o),t(l,a,s,o),n(l,a,s,o),r(l,a,s,o),a,s,o);else if(e&&t&&n&&r)s=(i,l,a,s)=>r(e(i,l,a,s),t(i,l,a,s),n(i,l,a,s),l,a,s);else if(e&&t&&n)s=(r,i,l,a)=>n(e(r,i,l,a),t(r,i,l,a),i,l,a);else if(e&&t)s=(n,r,i,l)=>t(e(n,r,i,l),r,i,l);else if(e)s=e;else throw Error("Missing arguments");return s};var nb=e.i(2239),nv=e.i(30224);let ny=R>=19?function(e,t,r,i,l){let a;if(!n){let n;return n=u.useCallback(()=>t(e.getSnapshot(),r,i,l),[e,t,r,i,l]),(0,nb.useSyncExternalStore)(e.subscribe,n,n)}let s=n.syncIndex;return n.syncIndex+=1,n.didInitialize?(a=n.syncHooks[s]).store===e&&a.selector===t&&Object.is(a.a1,r)&&Object.is(a.a2,i)&&Object.is(a.a3,l)||(a.store!==e&&(n.didChangeStore=!0),a.store=e,a.selector=t,a.a1=r,a.a2=i,a.a3=l,a.didChange=!0):(a={store:e,selector:t,a1:r,a2:i,a3:l,value:t(e.getSnapshot(),r,i,l),didChange:!1},n.syncHooks.push(a)),a.value}:function(e,t,n,r,i){return(0,nv.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))};[].push({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,nb.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});class nw{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return ny(this,e,t,n,r)}}class nj extends nw{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){u.useDebugValue(e),eF(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;eF(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;eF(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){u.useDebugValue(e);let n=void 0!==t;eF(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,r){return u.useDebugValue(e),ny(this,this.selectors[e],t,n,r)}useContextCallback(e,t){u.useDebugValue(e);let n=ek(t??V);this.context[e]=n}useStateSetter(e){let t=u.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}}let nk={open:ng(e=>e.open),transitionStatus:ng(e=>e.transitionStatus),domReferenceElement:ng(e=>e.domReferenceElement),referenceElement:ng(e=>e.positionReference??e.referenceElement),floatingElement:ng(e=>e.floatingElement),floatingId:ng(e=>e.floatingId)};
67class nC extends nj{constructor(e){const{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...l}=e;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:function(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}(),nested:n,triggerElements:i},nk),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&td(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}var eD=eD;class nN{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}let nF=ng(e=>e.triggerIdProp??e.activeTriggerId),nS={...{open:ng(e=>e.openProp??e.open),mounted:ng(e=>e.mounted),transitionStatus:ng(e=>e.transitionStatus),floatingRootContext:ng(e=>e.floatingRootContext),preventUnmountingOnClose:ng(e=>e.preventUnmountingOnClose),payload:ng(e=>e.payload),activeTriggerId:nF,activeTriggerElement:ng(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:ng((e,t)=>void 0!==t&&nF(e)===t),isOpenedByTrigger:ng((e,t)=>void 0!==t&&nF(e)===t&&e.open),isMountedByTrigger:ng((e,t)=>void 0!==t&&nF(e)===t&&e.mounted),triggerProps:ng((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:ng(e=>e.popupProps),popupElement:ng(e=>e.popupElement),positionerElement:ng(e=>e.positionerElement)},modal:ng(e=>e.modal),nested:ng(e=>e.nested),nestedOpenDialogCount:ng(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:ng(e=>e.nestedOpenDrawerCount),disablePointerDismissal:ng(e=>e.disablePointerDismissal),openMethod:ng(e=>e.openMethod),descriptionElementId:ng(e=>e.descriptionElementId),titleElementId:ng(e=>e.titleElementId),viewportElement:ng(e=>e.viewportElement),role:ng(e=>e.role)};class nE extends nj{constructor(e){super(function(e={}){return{...{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new nC({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new nN,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0}),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:U,inactiveTriggerProps:U,popupProps:U},modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e),{popupRef:u.createRef(),backdropRef:u.createRef(),internalBackdropRef:u.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new nN,onOpenChange:void 0,onOpenChangeComplete:void 0},nS)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e},r=t.trigger?.id??null;(r||e)&&(n.activeTriggerId=r,n.activeTriggerElement=t.trigger??null),this.update(n)};static useStore(e,t){let n=A(()=>new nE(t)).current;return e??n}}let nA=u.createContext(!1),nq=((o={})[o.open=et.open]="open",o[o.closed=et.closed]="closed",o[o.startingStyle=et.startingStyle]="startingStyle",o[o.endingStyle=et.endingStyle]="endingStyle",o.nested="data-nested",o.nestedDialogOpen="data-nested-dialog-open",o),nD={...eo,...ee,nested:e=>e?{[nq.nested]:""}:null,nestedDialogOpen:e=>e?{[nq.nestedDialogOpen]:""}:null},nM=u.forwardRef(function(e,t){let{className:n,render:r,children:i,style:l,...a}=e,s=t3(),{store:o}
67=S(),c=o.useState("open"),d=o.useState("nested"),u=o.useState("transitionStatus"),p=o.useState("nestedOpenDialogCount"),m=o.useState("mounted");return Q("div",e,{enabled:s||m,state:{open:c,nested:d,transitionStatus:u,nestedDialogOpen:p>0},ref:[t,o.useStateSetter("viewportElement")],stateAttributesMapping:nD,props:[{role:"presentation",hidden:!m,style:{pointerEvents:c?void 0:"none"},children:i},a]})}),nR=u.forwardRef(function(e,t){let{render:n,className:r,style:i,id:l,...a}=e,{store:s}=S(),o=eL(l);return s.useSyncedValueWithCleanup("titleElementId",o),Q("h2",e,{ref:t,props:[{id:o},a]})});var eD=eD;let nT=u.forwardRef(function(e,t){var n;let r,i,l,a,s,{render:o,className:c,disabled:d=!1,nativeButton:p=!0,id:m,payload:h,handle:x,style:f,...g}=e,b=S(!0),v=x?.store??b?.store;if(!v)throw Error(N(79));let y=eL(m),w=v.useState("floatingRootContext"),j=v.useState("isOpenedByTrigger",y),k=u.useRef(null),{registerTrigger:C,isMountedByThisTrigger:F}=(n={payload:h},r=v.useState("isMountedByTrigger",y),i=u.useRef(null),l=u.useRef(null),a=u.useCallback(e=>{if(void 0!==y){if(null!==i.current){let e=i.current,t=l.current,n=v.context.triggerElements.getById(e);t&&n===t&&v.context.triggerElements.delete(e),i.current=null,l.current=null}null!==e&&(i.current=y,l.current=e,v.context.triggerElements.add(y,e))}},[v,y]),s=ek(e=>{if(a(e),!e||!v.select("open"))return;let t=v.select("activeTriggerId");t===y?v.update({activeTriggerElement:e,...n}):null==t&&v.update({activeTriggerId:y,activeTriggerElement:e,...n})}),eF(()=>{r&&v.update({activeTriggerElement:k.current,...n})},[r,v,k,...Object.values(n)]),{registerTrigger:s,isMountedByThisTrigger:r}),{getButtonProps:E,buttonRef:A}=eE({disabled:d,native:p}),q=nm([function(e,t={}){let n="rootStore"in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:l="click",toggle:a=!0,ignoreMouse:s=!1,stickIfOpen:o=!0,touchOpenDelay:c=0,reason:d=eD.triggerPress}=t,p=u.useRef(void 0),m=e4(),h=eH(),x=u.useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){let t=p.current,i=e.nativeEvent,u=n.select("open");if(0!==e.button||"click"===l||tc(t,!0)&&s)return;let x=r.current.openEvent,f=x?.type,g=n.select("domReferenceElement")!==e.currentTarget,b=u&&g||!(u&&a&&(!x||!o||"click"===f||"mousedown"===f)),v=tt(i);if(ta(v)){let e=eq(d,i,v);b&&"touch"===t&&c>0?h.start(c,()=>{n.setOpen(!0,e)}):n.setOpen(b,e);return}let y=e.currentTarget;m.request(()=>{let e=eq(d,i,y);b&&"touch"===t&&c>0?h.start(c,()=>{n.setOpen(!0,e)}):n.setOpen(b,e)})},onClick(e){if("mousedown-only"===l)return;let t=p.current;if("mousedown"===l&&t){p.current=void 0;return}if(tc(t,!0)&&s)return;let i=n.select("open"),u=r.current.openEvent,m=n.select("domReferenceElement")!==e.currentTarget,x=i&&m||!(i&&a&&(!u||!o||td(u))),f=eq(d,e.nativeEvent,e.currentTarget);x&&"touch"===t&&c>0?h.start(c,()=>{n.setOpen(!0,f)}):n.setOpen(x,f)},onKeyDown(){p.current=void 0}}),[r,l,s,n,o,a,m,h,c,d]);return u.useMemo(()=>i?{reference:x}:U,[i,x])}(w,{enabled:null!=w})]),D=v.useState("triggerProps",F);return Q("button",e,{state:{disabled:d,open:j},ref:[A,t,C,k],props:[q.getReferenceProps(),D,{[tO]:"",id:y},g,E],stateAttributesMapping:es})});var eD=eD;class n_{constructor(e){this.store=e??new nE}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,eq(eD.imperativeAction,void 0,t))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,eq(eD.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,eq(eD.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}e.s(["Backdrop",0,ed,"Close",0,eM,"Description",0,eP,"Handle",0,n_,"Popup",0,nr,"Portal",0,nl,"Root",0,function(e){let n,{children:r,open:i,defaultOpen:l=!1,onOpenChange:a,onOpenChangeComplete:s,disablePointerDismissal:o=!1,modal:d=!0,actionsRef:p,handle:m,triggerId:h,defaultTriggerId:x=null}=e,f=S(!0),g=u.useContext(nA),b=!!f,v=nE.useStore(m?.store,{open:l,openProp:i,activeTriggerId:x,triggerIdProp:h,modal:d,disablePointerDismissal:o,nested:b});(n=u.useRef(!0)).current&&(n.current=!1,(()=>{void 0===i&&!1===v.state.open&&!0===l&&v.update({open:!0,activeTriggerId:x})})()),v.useControlledProp("openProp",i),v.useControlledProp("triggerIdProp",h),v.useSyncedValues({disablePointerDismissal:o,nested:b,modal:d}),v.useContextCallback("onOpenChange",a),v.useContextCallback("onOpenChangeComplete",s);let y=v.useState("payload");!function(e){let n,{store:r,parentContext:i,actionsRef:l,isDrawer:
67a}=e,s=r.useState("open"),o=r.useState("disablePointerDismissal"),c=r.useState("modal"),d=r.useState("popupElement"),{openMethod:p,triggerProps:m}=function(e){let t,n,r,i,[l,a]=u.useState(null),s=ek((t,n)=>{e||a(n||(eJ?"touch":""))});t=u.useRef(e),eF(()=>{t.current!==e&&n(t.current)},[e,n=ek(t=>{t&&!e&&a(null)})]),eF(()=>{t.current=e},[e]);let{onClick:o,onPointerDown:c}=(r=u.useRef(""),i=u.useCallback(e=>{e.defaultPrevented||(r.current=e.pointerType,s(e,e.pointerType))},[s]),{onClick:u.useCallback(e=>{0===e.detail?s(e,"keyboard"):(s(e,"pointerType"in e?e.pointerType:r.current),r.current="")},[s]),onPointerDown:i});return u.useMemo(()=>({openMethod:l,triggerProps:{onClick:o,onPointerDown:c}}),[l,o,c])}(s);eF(()=>{if(n&&!r.select("activeTriggerId")&&1===r.context.triggerElements.size){let e=r.context.triggerElements.entries().next();if(!e.done){let[t,n]=e.value;r.update({activeTriggerId:t,activeTriggerElement:n})}}},[n=r.useState("open"),r]);let{forceUnmount:h}=function(e,t){let{mounted:n,setMounted:r,transitionStatus:i}=function(e,t=!1,n=!1){let[r,i]=u.useState(e&&t?"idle":void 0),[l,a]=u.useState(e);return e&&!l&&(a(!0),i("starting")),e||!l||"ending"===r||n||i("ending"),e||l||"ending"!==r||i(void 0),eF(()=>{if(!e&&l&&"ending"!==r&&n){let e=e5.request(()=>{i("ending")});return()=>{e5.cancel(e)}}},[e,l,r,n]),eF(()=>{if(!e||t)return;let n=e5.request(()=>{i(void 0)});return()=>{e5.cancel(n)}},[t,e]),eF(()=>{if(!e||!t)return;e&&l&&"idle"!==r&&i("starting");let n=e5.request(()=>{i("idle")});return()=>{e5.cancel(n)}},[t,e,l,r]),{mounted:l,setMounted:a,transitionStatus:r}}(e);t.useSyncedValues({mounted:n,transitionStatus:i});let l=ek(()=>{r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),t.context.onOpenChangeComplete?.(!1)});return t6({enabled:!t.useState("preventUnmountingOnClose"),open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:i}}(s,r),x=ek(e=>{let t=eq(e);return t.preventUnmountOnClose=()=>{r.set("preventUnmountingOnClose",!0)},t}),f=u.useCallback(()=>{r.setOpen(!1,x(eD.imperativeAction))},[r,x]);u.useImperativeHandle(l,()=>({unmount:h,close:f}),[h,f]);let g=function(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,onOpenChange:r}=e,i=eI(),l=null!=tU(),a=t.useState("open"),s=t.useState("activeTriggerElement"),o=t.useState(n?"popupElement":"positionerElement"),c=t.context.triggerElements,d=A(()=>new nC({open:a,transitionStatus:void 0,referenceElement:s,floatingElement:o,triggerElements:c,onOpenChange:r,floatingId:i,syncOnly:!0,nested:l})).current;return eF(()=>{let e={open:a,floatingId:i,referenceElement:s,floatingElement:o};ex(s)&&(e.domReferenceElement=s),d.state.positionReference===d.state.referenceElement&&(e.positionReference=s),d.update(e)},[a,i,s,o,d]),d.context.onOpenChange=r,d.context.nested=l,d}({popupStore:r,onOpenChange:r.setOpen,treatPopupAsFloatingElement:!0}),[b,v]=u.useState(0),[y,w]=u.useState(0),j=0===b,k=function(e,t={}){let n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingId"),l=n.useState("domReferenceElement"),a=n.useState("floatingElement"),{role:s="dialog"}=t,o=eI(),c=l?.id||o,d=u.useMemo(()=>to(a)?.id||i,[a,i]),p=nf.get(s)??s,m=null!=tU(),h=u.useMemo(()=>"tooltip"===p||"label"===s?U:{"aria-haspopup":"alertdialog"===p?"dialog":p,"aria-expanded":"false",..."listbox"===p&&{role:"combobox"},..."menu"===p&&m&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[p,m,s]),x=u.useMemo(()=>"tooltip"===p||"label"===s?{[`aria-${"label"===s?"labelledby":"describedby"}`]:r?d:void 0}:{...h,"aria-expanded":r?"true":"false","aria-controls":r?d:void 0,..."menu"===p&&{id:c}},[p,d,r,c,s,h]),f=u.useMemo(()=>{let e={id:d,...p&&{role:p}};return"tooltip"===p||"label"===s?e:{...e,..."menu"===p&&{"aria-labelledby":c}}},[p,d,c,s]),g=u.useCallback(({active:e,selected:t})=>{let n={role:"option",...e&&{id:`${d}-fui-option`}};switch(s){case"select":case"combobox":return{...n,"aria-selected":t}}return{}},[d,s]);return u.useMemo(()=>({reference:x,floating:f,item:g,trigger:h}),[x,f,h,g])}(g),C=function(e,n={}){let r="rootStore"in e?e.rootStore:e,i=r.useState("open"),l=r.useState("floatingElement"),{dataRef:a}=r.context,{enabled:s=!0,escapeKey:o=!0,outsidePress:c=!0,outsidePressEvent:d="sloppy",referencePress:p=np,referencePressEvent:m="sloppy",bubbles:h,externalTree:x}=n,f=tQ(x),g=ek("function"==typeof c?c:()=>!1),b="function"==typeof c?g:c,v=!1!==b,y=ek(()=>d),w=u.useRef(!1),j=u.useRef(!1),k=u.useRef(!1),{escapeKey:C,outsidePress:N}={escapeKey:"boolean"==typeof h?h:h?.escapeKey??!1,outsidePress:"boolean"==typeof h?h:h?.outsidePress??!0},F=u.useRef(null),S=eH(),E=eH(),A=ek(()=>{E.clear(),a.current.insideReactTree=!1}),q=u.useRef(!1),D=u.useRef(""),M=ek(p),R=ek(e=>{if(!i||!s||!o||"Escape"!==e.key||q.current)return;let t=a.current.floatingContext?.nodeId,n=f?tF(f.nodesRef.current,t):[];if(!C&&n.length>0){let e=!0;if(n.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let l="nativeEvent"in e?e.nativeEvent:e,c=eq(eD.escapeKey,l);r.setOpen(!1,c),C||c.isPropagationAllowed||e.stopPropagation()}),T=ek(()=>{a.current.insideReactTree=!0,E.start(0,A)});u.useEffect(()=>{if(!i||!s)return;a.current.__escapeKeyBubbles=C,a.current.__outsidePressBubbles=N;let e=new eW,n=new eW;function c(){k.current=!0,n.start(0,()=>{k.current=!1})}function d(){w.current=!1,j.current=!1}function u(){let e=D.current,t=y(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}
67function p(e){let t=a.current.floatingContext?.nodeId,n=f&&tF(f.nodesRef.current,t).some(t=>tl(e,t.context?.elements.floating));return tl(e,r.select("floatingElement"))||tl(e,r.select("domReferenceElement"))||n}function m(e){let t;if("intentional"===(t=u())&&"click"!==e.type||"sloppy"===t&&"click"===e.type||a.current.insideReactTree)return void A();let i=tt(e),l=`[${tE("inert")}]`,s=ex(i)?i.getRootNode():null,o=Array.from((eg(s)?s:e3(r.select("floatingElement"))).querySelectorAll(l)),c=r.context.triggerElements;if(i&&(c.hasElement(i)||c.hasMatchingElement(e=>te(e,i))))return;let d=ex(i)?i:null;for(;d&&!ev(d);){let e=function(e){var t;if("html"===ep(e))return e;let n=e.assignedSlot||e.parentNode||eg(e)&&e.host||(null==(t=(eh(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement);return eg(n)?n.host:n}(d);if(ev(e)||!ex(e))break;d=e}if(o.length&&ex(i)&&!i.matches("html,body")&&!te(i,r.select("floatingElement"))&&o.every(e=>!te(d,e)))return;if(ef(i)&&!("touches"in e)){let t=ev(i),n=ey(i),r=/auto|scroll/,l=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=l&&i.clientWidth>0&&i.scrollWidth>i.clientWidth,o=a&&i.clientHeight>0&&i.scrollHeight>i.clientHeight,c="rtl"===n.direction,d=o&&(c?e.offsetX<=i.offsetWidth-i.clientWidth:e.offsetX>i.clientWidth),u=s&&e.offsetY>i.clientHeight;if(d||u)return}if(p(e))return;if("intentional"===u()&&k.current){n.clear(),k.current=!1;return}if("function"==typeof b&&!b(e))return;let m=a.current.floatingContext?.nodeId,h=f?tF(f.nodesRef.current,m):[];if(h.length>0){let e=!0;if(h.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}r.setOpen(!1,eq(eD.outsidePress,e)),A()}function h(e){if("sloppy"!==u()||!r.select("open")||!s||tl(e,r.select("floatingElement"))||tl(e,r.select("domReferenceElement")))return;let t=e.touches[0];t&&(F.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},S.start(1e3,()=>{F.current&&(F.current.dismissOnTouchEnd=!1,F.current.dismissOnMouseDown=!1)}))}function x(e,t){let n=tt(e);if(!n)return;let r=eB(n,e.type,()=>{t(e),r()})}function g(e){S.clear(),"pointerdown"===e.type&&(D.current=e.pointerType),("mousedown"!==e.type||!F.current||F.current.dismissOnMouseDown)&&x(e,e=>{if("pointerdown"===e.type)"sloppy"!==u()||"touch"===e.pointerType||!r.select("open")||!s||tl(e,r.select("floatingElement"))||tl(e,r.select("domReferenceElement"))||m(e);else m(e)})}function E(e){if(!w.current)return;let t=j.current;if(d(),"intentional"===u()){if("pointercancel"===e.type){t&&c();return}p(e)||(t?c():("function"!=typeof b||b(e))&&(n.clear(),k.current=!0,A()))}}function M(e){if("sloppy"!==u()||!F.current||tl(e,r.select("floatingElement"))||tl(e,r.select("domReferenceElement")))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-F.current.startX),i=Math.abs(t.clientY-F.current.startY),l=Math.sqrt(n*n+i*i);l>5&&(F.current.dismissOnTouchEnd=!0),l>10&&(m(e),S.clear(),F.current=null)}function T(e){"sloppy"!==u()||!F.current||tl(e,r.select("floatingElement"))||tl(e,r.select("domReferenceElement"))||(F.current.dismissOnTouchEnd&&m(e),S.clear(),F.current=null)}let _=e3(l),I=eG(o&&eG(eB(_,"keydown",R),eB(_,"compositionstart",function(){e.clear(),q.current=!0}),eB(_,"compositionend",function(){e.start(5*(null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!!t),()=>{q.current=!1})})),v&&eG(eB(_,"click",g,!0),eB(_,"pointerdown",g,!0),eB(_,"pointerup",E,!0),eB(_,"pointercancel",E,!0),eB(_,"mousedown",g,!0),eB(_,"mouseup",E,!0),eB(_,"touchstart",function(e){D.current="touch",x(e,h)},!0),eB(_,"touchmove",function(e){x(e,M)},!0),eB(_,"touchend",function(e){x(e,T)},!0)));return()=>{I(),e.clear(),n.clear(),d(),k.current=!1}},[a,l,o,v,b,i,s,C,N,R,A,y,f,r,S]),u.useEffect(A,[b,A]);let _=u.useMemo(()=>({onKeyDown:R,[nu[m]]:e=>{M()&&r.setOpen(!1,eq(eD.triggerPress,e.nativeEvent))},..."intentional"!==m&&{onClick(e){M()&&r.setOpen(!1,eq(eD.triggerPress,e.nativeEvent))}}}),[R,r,m,M]),I=ek(e=>{if(!i||!s||0!==e.button)return;let t=tt(e.nativeEvent);te(r.select("floatingElement"),t)&&(w.current||(w.current=!0,j.current=!1))}),L=ek(e=>{!i||!s||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&w.current&&(j.current=!0)}),P=u.useMemo(()=>({onKeyDown:R,onPointerDown:L,onMouseDown:L,onClickCapture:T,onMouseDownCapture(e){T
67(),I(e)},onPointerDownCapture(e){T(),I(e)},onMouseUpCapture:T,onTouchEndCapture:T,onTouchMoveCapture:T}),[R,T,I,L]);return u.useMemo(()=>s?{reference:_,floating:P,trigger:_}:{},[s,_,P])}(g,{outsidePressEvent:()=>r.context.internalBackdropRef.current||r.context.backdropRef.current?"intentional":{mouse:"trap-focus"===c?"sloppy":"intentional",touch:"sloppy"},outsidePress(e){if(!r.context.outsidePressEnabledRef.current||"button"in e&&0!==e.button||"touches"in e&&1!==e.touches.length)return!1;let t=tt(e);return!!j&&!o&&(!c||!r.context.internalBackdropRef.current&&!r.context.backdropRef.current||r.context.internalBackdropRef.current===t||r.context.backdropRef.current===t||te(t,d)&&!t?.hasAttribute("data-base-ui-portal"))},escapeKey:j});!function(e=!0,t=null){eF(()=>{if(e)return nd.acquire(t)},[e,t])}(s&&!0===c,d);let{getReferenceProps:N,getFloatingProps:F,getTriggerProps:S}=nm([k,C]);r.useContextCallback("onNestedDialogOpen",(e,t)=>{v(e),w(t)}),r.useContextCallback("onNestedDialogClose",()=>{v(0),w(0)}),u.useEffect(()=>(i?.onNestedDialogOpen&&s&&i.onNestedDialogOpen(b+1,y+ +!!a),i?.onNestedDialogClose&&!s&&i.onNestedDialogClose(),()=>{i?.onNestedDialogClose&&s&&i.onNestedDialogClose()}),[a,s,b,y,i]);let E=u.useMemo(()=>N(m),[N,m]),q=u.useMemo(()=>S(m),[S,m]),D=u.useMemo(()=>F(),[F]);r.useSyncedValues({openMethod:p,activeTriggerProps:E,inactiveTriggerProps:q,popupProps:D,floatingRootContext:g,nestedOpenDialogCount:b,nestedOpenDrawerCount:y})}({store:v,actionsRef:p,parentContext:f?.store.context,isDrawer:g,onOpenChange:a,triggerIdProp:h});let w=u.useMemo(()=>({store:v}),[v]);return(0,c.jsx)(nA.Provider,{value:!1,children:(0,c.jsx)(F.Provider,{value:w,children:"function"==typeof r?r({payload:y}):r})})},"Title",0,nR,"Trigger",0,nT,"Viewport",0,nM,"createHandle",0,function(){return new n_}],87913);var nI=e.i(87913),nI=nI,nL=e.i(64659);let nP=(0,x.default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);var nB=e.i(10626);let nG=(0,x.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var nO=e.i(43531),nz=e.i(74886);function n$({value:e,variant:t="card",className:n}){let{t:r}=(0,C.useLanguage)(),[i,l]=(0,u.useState)(!1),a="card"===t;return(0,c.jsxs)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{l(!0),window.setTimeout(()=>l(!1),2e3)})},"aria-label":r.installGuideCopy,title:r.installGuideCopy,className:a?`grid place-items-center rounded-md transition ${n??""}`:`inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-bold transition ${n??""}`,style:{color:i?"#86EFAC":a?"#9B8DB1":"#B0A3C8",background:i?"rgba(134,239,172,0.12)":a?"transparent":"rgba(255,255,255,0.06)",width:a?22:void 0,height:a?22:void 0},children:[i?(0,c.jsx)(nO.Check,{size:a?13:12}):(0,c.jsx)(nz.Copy,{size:a?13:12}),a?null:i?r.installGuideCopied:r.installGuideCopy]})}let nK={fontFamily:"var(--font-figtree)"},nW={OpenAI:{accent:"#35C995",accent2:"#FFFFFF"},"OpenAI Plus":{accent:"#35C995",accent2:"#FFFFFF"},Anthropic:{accent:"#D97757",accent2:"#F5C242"},Google:{accent:"#4285F4",accent2:"#34A853"},"Bailian (é¿éäºç¾ç¼)":{accent:"#FF6A00",accent2:"#F5C242"},DeepSeek:{accent:"#4F6BFF",accent2:"#7C3AED"},"Grok (xAI)":{accent:"#E5E7EB",accent2:"#7C3AED"},"Doubao (è±å
)":{accent:"#FF6B9D",accent2:"#7C3AED"},Midjourney:{accent:"#F59E0B",accent2:"#A78BFA"},"ChatGLM (æºè°±)":{accent:"#111827",accent2:"#F5C242"},"Kling (å¯çµ)":{accent:"#8B5CF6",accent2:"#FFFFFF"},Moonshot:{accent:"#C7D2FE",accent2:"#60A5FA"},Minimax:{accent:"#A78BFA",accent2:"#F5C242"},Mistral:{accent:"#FF7000",accent2:"#FFD166"},"Wenxin (æå¿)":{accent:"#2563EB",accent2:"#F5C242"},Flux:{accent:"#EC4899",accent2:"#F5C242"},"SiliconFlowï¼ç¡
åºæµå¨ï¼":{accent:"#7C3AED",accent2:"#22D3EE"},"Spark (è®¯é£æç«)":{accent:"#2F80ED",accent2:"#F5C242"},Suno:{accent:"#FFB000",accent2:"#FF5E5B"},PixVerse:{accent:"#8B5CF6",accent2:"#F5C242"},Vidu:{accent:"#22D3EE",accent2:"#8B5CF6"}};function nH(e){return Number(e.toFixed(e>=10?1:4)).toString()}function nV({group:e,index:t,isPerCall:n,rowRef:r}){let{language:i,t:l}=(0,C.useLanguage)(),a=0===t,s=e.label||e.group;return(0,c.jsxs)("tr",{ref:r,className:a?"qr-dialog-group-row-lowest":"",style:{background:a?"rgba(245,194,66,0.10)":t%2==1?"rgba(255,255,255,0.03)":"transparent",borderTop:"1px solid rgba(255,255,255,0.05)"},children:[(0,c.jsx)("td",{className:"px-3 py-2.5 align-middle",children:(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[a?(0,c.jsx)("span",{className:"shrink-0 rounded px-1.5 py-0.5 text-[9px] font-black uppercase tracking-wide",style:{background:"#F5C242",color:"#1A1033"},children:l.lowestPriceBadge}):null,(0,c.jsx)("div",{className:"min-w-0",children:(0,c.jsx)("div",{className:"truncate text-[13px] font-bold text-white",title:s,children:s})})]})}),(0,c.jsx)("td",{className:"px-3 py-2.5 text-center align-middle",children:(0,c.jsxs)("span",{className:"text-xs font-bold text-[#9B8DB1]",children:[e.ratio,"x"]})}
67),n?(0,c.jsx)("td",{className:"px-3 py-2.5 text-right align-middle",children:(0,c.jsxs)("span",{className:"text-[13px] font-black text-[#F5C242]",children:["$",nH(e.perCallUsd??0),(0,c.jsx)("span",{className:"ml-1 text-[10px] text-[#9B8DB1]",children:d(e.unit,"zh"===i)})]})}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("td",{className:"px-3 py-2.5 text-right align-middle",children:(0,c.jsxs)("span",{className:"text-[13px] font-black text-white",children:["$",nH(e.inputUsd)]})}),(0,c.jsx)("td",{className:"px-3 py-2.5 text-right align-middle",children:(0,c.jsxs)("span",{className:"text-[13px] font-bold text-[#D9D2E9]",children:["$",nH(e.outputUsd)]})})]})]})}let nU={version:"Model version",mode:"Mode",referenceVideo:"Reference video",audio:"Audio",voice:"Voice",duration:"Duration",ability:"Capability",resolution:"Resolution",type:"Item",credits:"Credits",pricing:"Pricing rule",description:"Description"};function nQ({pricing:e}){let{language:t,t:n}=(0,C.useLanguage)(),r=Math.min(...e.groups.map(e=>e.rows[0]?.priceUsd??1/0));return(0,c.jsxs)("section",{children:[(0,c.jsxs)("h3",{className:"mb-3 flex items-center gap-2 text-sm font-black text-[#F5C242]",style:nK,children:[(0,c.jsx)(w.Star,{className:"h-4 w-4 fill-[#F5C242]"}),n.groupPricingTitle]}),e.note?(0,c.jsx)("p",{className:"mb-3 text-xs font-bold text-[#9B8DB1]",children:e.note}):null,(0,c.jsx)("div",{className:"space-y-4",children:e.groups.map(i=>{let l=i.rows[0]?.priceUsd;return(0,c.jsxs)("div",{className:"overflow-hidden rounded-xl border border-white/10",children:[(0,c.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 border-b border-white/10 bg-white/[0.04] px-4 py-3",children:[(0,c.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[l===r?(0,c.jsx)("span",{className:"shrink-0 rounded bg-[#F5C242] px-1.5 py-0.5 text-[9px] font-black uppercase tracking-wide text-[#1A1033]",children:n.lowestPriceBadge}):null,(0,c.jsx)("span",{className:"truncate text-[13px] font-black text-white",children:i.label||i.group})]}),(0,c.jsxs)("span",{className:"text-xs font-bold text-[#9B8DB1]",children:[i.ratio,"x"]})]}),(0,c.jsx)("div",{className:"overflow-x-auto",children:(0,c.jsxs)("table",{className:"w-full min-w-[560px] border-collapse",style:nK,children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{className:"bg-black/10",children:[e.columns.map(e=>(0,c.jsx)("th",{className:"px-3 py-2 text-left text-[11px] font-black text-[#CFC5DF]",children:"zh"===t?e.label:nU[e.key]??e.label},e.key)),(0,c.jsx)("th",{className:"px-3 py-2 text-right text-[11px] font-black text-[#CFC5DF]",children:"zh"===t?"ä»·æ ¼":"Price"})]})}),(0,c.jsx)("tbody",{children:i.rows.map((n,r)=>{var l;return(0,c.jsxs)("tr",{className:r%2==1?"bg-white/[0.025]":"",children:[e.columns.map((e,r)=>{let i;return(0,c.jsx)("td",{className:`border-t border-white/[0.05] px-3 py-2.5 text-[12px] ${0===r?"font-bold text-white":"text-[#D9D2E9]"}`,children:(i=n.cells[e.key]??"-","zh"===t?i:"æ¯"===i?"Yes":"å¦"===i?"No":i)},e.key)}),(0,c.jsxs)("td",{className:"whitespace-nowrap border-t border-white/[0.05] px-3 py-2.5 text-right text-[13px] font-black text-[#F5C242]",children:["$",(l=n.priceUsd)>=1?l.toFixed(3):l.toFixed(4)," ",d(n.unit,"zh"===t)]})]},`${i.group}-${r}`)})})]})})]},i.group)})})]})}function nY({model:e,onClose:t}){let n,{language:r,t:i}=(0,C.useLanguage)(),[l,a]=(0,u.useState)(!1),s=(0,u.useRef)(null);if(!e)return null;let o=e.groups??[],d="number"==typeof e.minPerCallUsd,m=l?o:o.slice(0,3),x=Math.max(0,o.length-3),f=nW[e.provider]??{accent:"#F5C242",accent2:"#8B5CF6"};return(0,c.jsx)(nI.Root,{open:!!e,onOpenChange:e=>{e||t()},children:(0,c.jsxs)(nI.Portal,{children:[(0,c.jsx)(nI.Backdrop,{className:"fixed inset-0 z-[1000] bg-black/60 backdrop-blur-sm",style:{animation:"qr-dialog-fade 180ms ease-out"}}),(0,c.jsx)(nI.Popup,{className:"fixed left-1/2 top-1/2 z-[1001] w-[calc(100vw-2rem)] max-w-2xl -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-[18px] outline-none",style:{backgroundColor:"#160A29",border:"1px solid rgba(245,194,66,0.18)",maxHeight:"85vh",boxShadow:"0 30px 80px rgba(0,0,0,0.55)"},children:(0,c.jsxs)("div",{className:"flex max-h-[85vh] flex-col",children:[(0,c.jsxs)("div",{className:"relative flex items-start justify-between gap-4 px-6 pb-4 pt-5",style:{borderBottom:"1px solid rgba(245,194,66,0.12)",background:`linear-gradient(135deg, color-mix(in srgb, ${f.accent} 22%, #160A29) 0%, color-mix(in srgb, ${f.accent2} 14%, #160A29) 100%)`},children:[(0,c.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[e.logo?(0,c.jsx)("span",{className:"grid h-11 w-11 shrink-0 place-items-center rounded-xl bg-white/90",children:(0,c.jsx)(p.default,{src:e.logo,alt:e.provider,width:30,height:30,unoptimized:!0,className:"h-7 w-7 object-contain"})}):null,(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)(nI.Title,{className:"truncate text-lg font-black text-white",style:nK,children:e.name}),(0,c.jsx)(n$,{value:e.name,variant:"dialog",className:"shrink-0 hover:text-white"})]}),(0,c.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-2 gap-y-1 text-[11px] font-bold text-[#CFC5DF]",children:[(0,c.jsx)("span",{children:e.provider}),e.modelType?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text-[#7A6B94]",children:"·"}),(0,c.jsx)("span",{children:e.modelType})]}):null]})]})]}),(0,c.jsx)(nI.Close,{className:"grid h-8 w-8 shrink-0 place-items-center rounded-lg text-[#CFC5DF] transition hover:bg-white/10 hover:text-white","aria-label":"Close",children:(0,c.jsx)(nG,{className:"h-5 w-5"})})]}),(0,c.jsxs)("div",{className:"qr-dialog-scroll overflow-y-auto px-6 py-5",children:[(0,c.jsxs)("section",{className:"mb-6",children:[(0,c.jsx)(nI.Description,{className:"text-sm leading-relaxed text-[#D9D2E9]",style:nK,children:e.description}),e.tags.length>0?(0,c.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:e.tags.map(t=>(0,c.jsx)("span",{className:"rounded-lg border border-white/10 bg-white/[0.04] px-2 py-0.5 text-[11px] font-bold text-[#CFC5DF]",children:t}
67,`${e.id}-tag-${t}`))}):null]}),(()=>{let t=e.duration;if(!t)return null;let n="",r=[];if("fixed"===t.type)n=i.videoDurationFixed,r=t.seconds.map(e=>`${e} ${i.secondUnit}`);else if("options"===t.type)n=i.videoDurationOptions,r=t.seconds.map(e=>`${e} ${i.secondUnit}`);else if("range"===t.type){n=i.videoDurationRange;let[e,l]=t.seconds;r=[`${e}â${l} ${i.secondUnit}`]}else"per_unit"===t.type?(n=i.videoDurationPerUnit,r=t.seconds.map(e=>`${e} ${i.secondUnit}`)):(n=i.videoDurationPerSecond,r=[]);return(0,c.jsxs)("section",{className:"mb-6",children:[(0,c.jsxs)("h3",{className:"mb-3 flex items-center gap-2 text-sm font-black text-[#F5C242]",style:nK,children:[(0,c.jsx)(nP,{className:"h-4 w-4"}),i.videoDurationTitle]}),(0,c.jsxs)("div",{className:"rounded-xl border border-white/10 bg-white/[0.03] px-4 py-3",children:[(0,c.jsx)("p",{className:"text-[13px] font-bold text-[#D9D2E9]",style:nK,children:n}),r.length>0?(0,c.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:r.map((t,n)=>(0,c.jsx)("span",{className:"rounded-lg border border-[#F5C242]/30 bg-[#F5C242]/10 px-2 py-0.5 text-[11px] font-black text-[#F5C242]",children:t},`${e.id}-dur-${n}`))}):null]})]})})(),0===(n=e.endpoints??[]).length?null:(0,c.jsxs)("section",{className:"mb-6",children:[(0,c.jsxs)("h3",{className:"mb-3 flex items-center gap-2 text-sm font-black text-[#F5C242]",style:nK,children:[(0,c.jsx)(nB.PlugZap,{className:"h-4 w-4"}),i.endpointTitle]}),(0,c.jsx)("div",{className:"space-y-2",children:n.map(({name:t,url:n})=>(0,c.jsxs)("div",{className:"flex items-center gap-2 rounded-xl border border-white/10 bg-white/[0.03] px-3 py-2",children:[(0,c.jsx)("span",{className:"shrink-0 rounded border border-[#F5C242]/30 bg-[#F5C242]/10 px-1.5 py-0.5 text-[10px] font-black text-[#F5C242]",children:t}),(0,c.jsx)("code",{className:"min-w-0 flex-1 truncate text-[12px] font-bold text-[#D9D2E9]",style:nK,title:n,children:n}),(0,c.jsx)(n$,{value:n,variant:"card",className:"shrink-0 hover:bg-white/10 hover:text-white"})]},`${e.id}-epurl-${t}`))})]}),e.videoPricing?(0,c.jsx)(nQ,{pricing:e.videoPricing}):(0,c.jsxs)("section",{children:[(0,c.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,c.jsxs)("h3",{className:"flex items-center gap-2 text-sm font-black text-[#F5C242]",style:nK,children:[(0,c.jsx)(w.Star,{className:"h-4 w-4 fill-[#F5C242]"}),i.groupPricingTitle]}),(0,c.jsxs)("span",{className:"text-xs font-bold text-[#9B8DB1]",children:[o.length," ",i.groupCountSuffix]})]}),0===o.length?(0,c.jsx)("div",{className:"rounded-xl border border-white/10 bg-white/[0.03] px-4 py-6 text-center text-sm text-[#9B8DB1]",style:nK,children:i.modelViewLivePrice}):(0,c.jsx)("div",{className:"overflow-hidden rounded-xl border border-white/10",children:(0,c.jsxs)("table",{className:"w-full border-collapse",style:nK,children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{style:{background:"rgba(255,255,255,0.04)"},children:[(0,c.jsx)("th",{className:"px-3 py-2 text-left text-[11px] font-black uppercase tracking-wide text-[#F5C242]",children:i.groupPricingTitle}),(0,c.jsx)("th",{className:"px-3 py-2 text-center text-[11px] font-black uppercase tracking-wide text-[#F5C242]",children:"Ã"}),d?(0,c.jsx)("th",{className:"px-3 py-2 text-right text-[11px] font-black uppercase tracking-wide text-[#F5C242]",children:o[0]?.unit==="second"?`$/${i.secondUnit}
67`:o[0]?.unit==="video_size"?"zh"===r?"æè§é¢å°ºå¯¸":"per video size":`$/${i.perCall.replace("/","").trim()}`}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("th",{className:"px-3 py-2 text-right align-bottom text-[11px] font-black uppercase tracking-wide text-[#F5C242]",children:[i.inputLabel,(0,c.jsxs)("span",{className:"block text-[9px] font-bold normal-case text-[#9B8DB1]",children:["$",i.perMillionTokens]})]}),(0,c.jsxs)("th",{className:"px-3 py-2 text-right align-bottom text-[11px] font-black uppercase tracking-wide text-[#F5C242]",children:[i.outputLabel,(0,c.jsxs)("span",{className:"block text-[9px] font-bold normal-case text-[#9B8DB1]",children:["$",i.perMillionTokens]})]})]})]})}),(0,c.jsx)("tbody",{id:"model-group-pricing-rows",children:m.map((t,n)=>(0,c.jsx)(nV,{group:t,index:n,isPerCall:d,rowRef:l&&3===n?s:void 0},`${e.id}-grp-${t.group}`))})]})}),x>0?(0,c.jsxs)("button",{type:"button",onClick:()=>{l?a(!1):(a(!0),requestAnimationFrame(()=>{s.current?.scrollIntoView({behavior:"smooth",block:"nearest"})}))},"aria-expanded":l,"aria-controls":"model-group-pricing-rows",className:"mt-3 flex w-full items-center justify-center gap-1.5 rounded-xl border border-white/10 bg-white/[0.03] px-4 py-2.5 text-xs font-black text-[#F5C242] transition hover:bg-white/[0.07]",style:nK,children:[(0,c.jsx)(nL.ChevronDown,{className:`h-4 w-4 transition ${l?"rotate-180":""}`}),l?i.collapseGroups:i.expandAllGroups.replace("{n}",String(o.length))]}):null]})]}),(0,c.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-3 px-6 py-4",style:{borderTop:"1px solid rgba(245,194,66,0.12)",background:"rgba(0,0,0,0.18)"},children:[(0,c.jsx)("a",{href:`https://api.quickrouter.ai/pricing?keyword=${encodeURIComponent(e.id)}`,target:"_blank",rel:"noopener noreferrer",className:"text-sm font-bold text-[#F5C242] underline-offset-4 hover:underline",children:"zh"===r?"æ¥ç宿´è®¡è´¹æ¡£ä½":"View full pricing tiers"}),(0,c.jsxs)("a",{href:"https://api.quickrouter.ai/login",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-[8px] px-5 py-2.5 text-sm font-black transition hover:brightness-105",style:{background:"#F5C242",color:"#1A1033",boxShadow:"0 8px 20px rgba(245,194,66,0.18)"},children:[i.dialogGoToConsole,(0,c.jsx)(h.ArrowRight,{className:"h-4 w-4"})]})]})]})})]})})}let nX="https://api.quickrouter.ai/pricing",nJ=[{key:"all",icon:f},{key:"featured",icon:w.Star},{key:"text",icon:j},{key:"image",icon:g.ImageIcon},{key:"video",icon:k.Video},{key:"audio",icon:b.Music},{key:"embedding",icon:y}],nZ=new Map(["OpenAI","Anthropic","Google","OpenAI Plus","Bailian (é¿éäºç¾ç¼)","DeepSeek","Grok (xAI)","Doubao (è±å
)","Midjourney","ChatGLM (æºè°±)","Kling (å¯çµ)","Moonshot","Minimax","Ollama","Flux","XiaomiMiMo","Mistral","Vidu","Wenxin (æå¿)","SiliconFlowï¼ç¡
åºæµå¨ï¼","Spark (è®¯é£æç«)","Suno","PixVerse"].map((e,t)=>[e,t])),n0={OpenAI:"/images/openai.png",Anthropic:"/images/claude.png",Google:"/images/google-v2.png",DeepSeek:"/images/deepseek.png","Grok (xAI)":"/images/grok.png","ChatGLM (æºè°±)":"/images/chatglm.png",Moonshot:"/images/moonshot.png",Minimax:"/images/minimax.png",Mistral:"/images/mistral.png",Midjourney:"/images/midjourney.png","Doubao (è±å
)":"/images/doubao.png","Bailian (é¿éäºç¾ç¼)":"/images/bailian.png","Kling (å¯çµ)":"/images/kling.png","Wenxin (æå¿)":"/images/baidu.png","SiliconFlowï¼ç¡
åºæµå¨ï¼":"/images/siliconflow.png","Spark (è®¯é£æç«)":"/images/spark.png",PixVerse:"/images/pixverse.png",Suno:"/images/suno-v2.png",Vidu:"/images/vidu.png",Flux:"/images/flux.png",XiaomiMiMo:"/images/xiaomi.png","OpenAI Plus":"/images/openai.png",Ollama:"/images/ollama.png"},n1={OpenAI:{accent:"#35C995",accent2:"#FFFFFF"},"OpenAI Plus":{accent:"#35C995",accent2:"#FFFFFF"},Anthropic:{accent:"#D97757",accent2:"#F5C242"},Google:{accent:"#4285F4",accent2:"#34A853"},"Bailian (é¿éäºç¾ç¼)":{accent:"#FF6A00",accent2:"#F5C242"},DeepSeek:{accent:"#4F6BFF",accent2:"#7C3AED"},"Grok (xAI)":{accent:"#E5E7EB",accent2:"#7C3AED"},"Doubao (è±å
)":{accent:"#FF6B9D",accent2:"#7C3AED"},Midjourney:{accent:"#F59E0B",accent2:"#A78BFA"},"ChatGLM (æºè°±)":{accent:"#111827",accent2:"#F5C242"},"Kling (å¯çµ)":{accent:"#8B5CF6",accent2:"#FFFFFF"},Moonshot:{accent:"#C7D2FE",accent2:"#60A5FA"},Minimax:{accent:"#A78BFA",accent2:"#F5C242"},Ollama:{accent:"#FFFFFF",accent2:"#A78BFA"},Flux:{accent:"#EC4899",accent2:"#F5C242"},XiaomiMiMo:{accent:"#FF6900",accent2:"#FFFFFF"},Mistral:{accent:"#FF7000",accent2:"#FFD166"},Vidu:{accent:"#22D3EE",accent2:"#8B5CF6"},"Wenxin (æå¿)":{accent:"#2563EB",accent2:"#F5C242"},"SiliconFlowï¼ç¡
åºæµå¨ï¼":{accent:"#7C3AED",accent2:"#22D3EE"},"Spark (è®¯é£æç«)":{accent:"#2F80ED",accent2:"#F5C242"},Suno:{accent:"#FFB000",accent2:"#FF5E5B"},PixVerse:{accent:"#8B5CF6",accent2:"#F5C242"}};function n2(e){return Number(e.toFixed(e>=10?1:4)).toString()}let n5={text:{dot:"#7CB7FF",color:"#A9CDFF"},image:{dot:"#B28CFF",color:"#D4BDFF"},video:{dot:"#FF6FA8",color:"#FF9DC4"},audio:{dot:"#4FE3A8",color:"#7FEDC0"},embedding:{dot:"#F5C242",color:"#FFD980"}};function n4(e){let t=e.modelType??"",n=e.name.toLowerCase(),r=e.tags.join(" ");return"æ£ç´¢"===t||t.includes("æ£ç´¢")||t.includes("åµå
¥")?"embedding":"å¾å"===t||t.includes("å¾å")||t.includes("ç»ç»")?"image":"ææ¬"===t||t.includes("ææ¬")||t.includes("对è¯")?"text":t.includes("é³è§é¢")||t.includes("é³")||t.includes("é¢")||t.includes("ä¹")?r.includes("é³é¢")||r.includes("é³ä¹")||r.includes("è¯é³")||/tts|whisper|speech|transcribe|audio|asr/.test(n)||/tts|whisper|speech|transcribe|audio/.test(r)?"audio":"video":t.includes("è§é¢")?"video":r.includes("åµå
¥")||r.includes("éæ")||r.includes("æ£ç´¢")?"embedding":r.includes("é³ä¹")||r.includes("è¯é³")||/tts|whisper|speech|transcribe/.test(n)?"audio":r.includes("å¾å")||r.includes("ç»ç»")?"image":r.includes("è§é¢")?"video":(r.includes("ææ¬")||r.includes("对è¯"),"text")}function n3({model:e}){let t=n0[e.provider]??e.logo;return(0,c.jsxs)("div",{className:"qr-provider-logo-pill relative z-10 flex max-w-[90%] items-center gap-2 rounded-full border px-2.5 py-1.5 backdrop-blur-md",children:[t?(0,c.jsx)("span",{className:"qr-provider-logo-icon grid h-6 w-6 shrink-0 place-items-center rounded-lg bg-white",children:(0,c.jsx)(p.default,{src:t,alt:e.provider,width:22,height:22,className:"h-[18px] w-[18px] object-contain"})}):null,(0,c.jsx)("span",{className:"truncate text-sm font-black tracking-tight text-white",children:e.provider})]})}let n6={text:"modelFilterText",image:"modelFilterImage",video:"modelFilterVideo",audio:"modelFilterAudio",embedding:"modelFilterEmbedding"};function n8({model:e}){let{t}=(0,C.useLanguage)(),n=n4(e),r=n5[n];return(0,c.jsxs)("span",{className:"qr-type-chip inline-flex shrink-0 items-center gap-1.5 rounded-md border px-1.5 py-0.5 text-[10px] font-bold tracking-wide",style:{"--type-dot":r.dot,"--type-color":r.color},children:[(0,c.jsx)("span",{className:"qr-type-dot h-1.5 w-1.5 rounded-full"}),t[n6[n]]]})}function n9({model:e,onOpen:t}){let{language:n,t:r}=(0,C.useLanguage)(),i=n0[e.provider]??e.logo,l=n1[e.provider]??{accent:"#F5C242",accent2:"#8B5CF6"},a=n5[n4(e)],s={"--provider-accent":l.accent,"--provider-accent-2":l.accent2,"--type-accent":a.color,"--type-accent-dot":a.dot};return(0,c.jsxs)("a",{href:nX,onClick:n=>{n.preventDefault(),t(e)},target:"_blank",rel:"noopener noreferrer",onMouseMove:e=>{let t=e.currentTarget.getBoundingClientRect();e.currentTarget.style.setProperty("--spotlight-x",`${e.clientX-t.left}px`),e.currentTarget.style.setProperty("--spotlight-y",`${e.clientY-t.top}px`)},className:"qr-provider-model-card group relative flex min-h-[218px] flex-col overflow-hidden rounded-xl border bg-white/[0.045] transition duration-300 hover:-translate-y-0.5",style:s,children:[(0,c.jsx)("span",{className:"qr-provider-card-border pointer-events-none absolute inset-0 z-20 rounded-xl transition duration-300"}),(0,c.jsxs)("div",{className:"qr-provider-card-cover relative flex h-12 items-center justify-center overflow-hidden border-b border-white/[0.07]",style:{background:`linear-gradient(135deg, color-mix(in srgb, var(--provider-accent) 52%, #1A0C2B) 0%, color-mix(in srgb, var(--provider-accent-2) 38%, #170829) 56%, color-mix(in srgb, var(--provider-accent) 22%, #170829) 100%), ${e.cover}`},children:[(0,c.jsx)("div",{className:"qr-provider-cover-brand absolute inset-0"}),(0,c.jsx)("div",{className:"qr-provider-cover-grid absolute inset-0 opacity-[0.05] [background-image:linear-gradient(rgba(255,255,255,0.5)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.5)_1px,transparent_1px)] [background-size:24px_24px]"}),(0,c.jsx)("div",{className:"qr-provider-cover-glow-left absolute -left-7 top-0 h-16 w-16 rounded-full blur-xl"}),(0,c.jsx)("div",{className:"qr-provider-cover-glow-right absolute -right-5 -top-6 h-16 w-16 rounded-full blur-xl"}),(0,c.jsx)(n3,{model:e})]}),(0,c.jsxs)("div",{className:"qr-provider-card-body relative flex flex-1 flex-col p-4",children:[(0,c.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-2",children:[(0,c.jsx)(n8,{model:e}),e.featured?(0,c.jsx)("span",{className:"qr-provider-hot-badge shrink-0 rounded-md border px-1.5 py-0.5 text-[9px] font-black uppercase tracking-wide",children:"Hot"}):null]}),(0,c.jsxs)("div",{className:"mb-2 flex items-start justify-between gap-2",children:[(0,c.jsx)("h3",{className:"line-clamp-2 text-[15px] font-black leading-snug text-white",children:e.name}),(0,c.jsx)(n$,{value:e.name,variant:"card",className:"mt-0.5 shrink-0 hover:bg-white/10 hover:text-white"})]}),(0,c.jsx)("p",{className:"line-clamp-2 min-h-[2.6rem] text-[13px] leading-relaxed text-[#D3CAE1]",children:e.description}),(0,c.jsx)("div",{className:"mt-3 flex min-h-[1.75rem] flex-wrap gap-1.5",children:e.tags.slice(0,3).map(t=>(0,c.jsx)("span",{className:"qr-provider-tag rounded-lg border px-2 py-0.5 text-[11px] font-bold",children:t}
67,`${e.id}-${t}`))}),(0,c.jsxs)("div",{className:"mt-auto flex items-center justify-between gap-2 pt-4",children:[(0,c.jsxs)("div",{className:"flex min-w-0 items-center gap-2 text-[11px] font-bold text-[#AAA0BC]",children:[i?(0,c.jsx)(p.default,{src:i,alt:"",width:18,height:18,className:"h-4 w-4 shrink-0 object-contain opacity-75"}):null,(0,c.jsx)("span",{className:"truncate",children:e.provider})]}),(0,c.jsxs)("span",{className:"qr-provider-price-link inline-flex shrink-0 items-baseline gap-1.5",children:["number"==typeof e.minPerCallUsd?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"text-base font-black text-[#F5C242]",children:["$",n2(e.minPerCallUsd)]}),(0,c.jsx)("span",{className:"text-[11px] font-bold text-[#9B8DB1]",children:d(e.priceUnit,"zh"===n)})]}):"number"==typeof e.minInputUsd&&"number"==typeof e.minOutputUsd?(0,c.jsxs)("span",{className:"inline-flex items-baseline gap-1.5",title:`${r.inputLabel} $${n2(e.minInputUsd)}${r.perMillionTokens} \xb7 ${r.outputLabel} $${n2(e.minOutputUsd)}${r.perMillionTokens}
67`,children:[(0,c.jsxs)("span",{className:"inline-flex items-baseline gap-0.5",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold text-[#9B8DB1]",children:r.inputLabel}),(0,c.jsxs)("span",{className:"text-base font-black text-[#F5C242]",children:["$",n2(e.minInputUsd)]})]}),(0,c.jsxs)("span",{className:"inline-flex items-baseline gap-0.5",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold text-[#9B8DB1]",children:r.outputLabel}),(0,c.jsxs)("span",{className:"text-base font-black text-[#FFD76A]",children:["$",n2(e.minOutputUsd)]})]}),(0,c.jsxs)("span",{className:"text-[10px] font-bold text-[#9B8DB1]",children:[r.priceStartFrom,r.perMillionTokens]})]}):"number"==typeof e.minInputUsd?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"text-base font-black text-[#F5C242]",children:["$",n2(e.minInputUsd)]}),(0,c.jsxs)("span",{className:"text-[11px] font-bold text-[#9B8DB1]",children:[r.priceStartFrom," ",r.perMillionTokens]})]}):(0,c.jsx)("span",{className:"text-xs font-black",children:r.modelViewLivePrice}),(0,c.jsx)(h.ArrowRight,{className:"h-3.5 w-3.5 self-center text-[#F5C242] transition group-hover:translate-x-0.5"})]})]})]})]})}e.s(["ModelListSection",0,function(){let{t:e}=(0,C.useLanguage)(),t=(0,u.useRef)(null),n={all:e.modelFilterAll,featured:e.modelFilterFeatured,text:e.modelFilterText,image:e.modelFilterImage,video:e.modelFilterVideo,audio:e.modelFilterAudio,embedding:e.modelFilterEmbedding},[r,i]=(0,u.useState)([]),[l,a]=(0,u.useState)("all"),[s,o]=(0,u.useState)("all"),[d,x]=(0,u.useState)(""),[f,g]=(0,u.useState)(20),[b,y]=(0,u.useState)(null);(0,u.useEffect)(()=>{let e=()=>{let e=window.location.hash.slice(1);("models-video"===e||"models-image"===e)&&(a("models-video"===e?"video":"image"),o("all"),x(""),g(20),t.current?.scrollIntoView({block:"start"}))};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]),(0,u.useEffect)(()=>{let e=!1,n=!1,r=new AbortController;async function l(){try{let t=await fetch("/api/model-pricing",{signal:r.signal}),n=await t.json();!e&&n.success&&i(n.catalog??[])}catch{e||i([])}}let a=()=>{n||(n=!0,l())},s=t.current;if(!s||"u"<typeof IntersectionObserver)return a(),()=>{e=!0,r.abort()};let o=new IntersectionObserver(([e])=>{e.isIntersecting&&(a(),o.disconnect())},{rootMargin:"900px 0px"});return o.observe(s),()=>{e=!0,r.abort(),o.disconnect()}},[]);let w=(0,u.useMemo)(()=>{let e=new Map;return r.forEach(t=>{let n=e.get(t.provider)??{name:t.provider,logo:t.logo,count:0};e.set(t.provider,{...n,logo:n.logo??t.logo,count:n.count+1})}),Array.from(e.values()).sort((e,t)=>{let n=nZ.get(e.name)??Number.MAX_SAFE_INTEGER,r=nZ.get(t.name)??Number.MAX_SAFE_INTEGER;return n!==r?n-r:t.count-e.count})},[r]),j=(0,u.useMemo)(()=>{let e=d.trim().toLowerCase();return r.filter(e=>(function(e,t){if("all"===t)return!0;if("featured"===t)return!!e.featured;let n=n4(e);return"text"===t?"text"===n:"image"===t?"image"===n:"video"===t?"video"===n:"audio"===t?"audio"===n:"embedding"===n})(e,l)).filter(e=>"all"===s||e.provider===s).filter(t=>!e||`${t.name} ${t.provider} ${t.description} ${t.tags.join(" ")}`.toLowerCase().includes(e))},[l,s,r,d]),k=(0,u.useMemo)(()=>{let e={all:r.length,featured:0,text:0,image:0,video:0,audio:0,embedding:0};for(let t of r)t.featured&&(e.featured+=1),e[n4(t)]+=1;return e},[r]),N=j.slice(0,f),F=f<j.length;return(0,c.jsxs)("section",{ref:t,id:"models",className:"qr-section-deep qr-model-section",children:[(0,c.jsxs)("div",{className:"mx-auto max-w-[96rem]",children:[(0,c.jsxs)("div",{className:"qr-reveal-soft mb-8 flex flex-col items-center gap-5 text-center",children:[(0,c.jsx)(m.SectionHeading,{eyebrow:e.modelListKicker,title:e.modelListNewTitle,description:e.modelListNewSubtitle,highlight:"3åéå¿«éæ¥å
¥"}),(0,c.jsxs)("a",{href:nX,target:"_blank",rel:"noopener noreferrer",className:"qr-secondary-button w-full px-7 py-3 text-base md:w-auto",children:[e.modelListAllModelsBtn,(0,c.jsx)(h.ArrowRight,{className:"ml-2 h-4 w-4"})]})]}),(0,c.jsx)("div",{className:"qr-model-control-panel mb-5 rounded-[24px] border p-3.5 backdrop-blur",children:(0,c.jsxs)("div",{className:"flex flex-col gap-4 xl:flex-row xl:items-center xl:justify-between",children:[(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",children:nJ.map(e=>{let t=e.icon;return(0,c.jsxs)("button",{type:"button",onClick:()=>{a(e.key),g(20)},className:`flex items-center gap-2 rounded-2xl border px-4 py-2.5 text-sm font-black transition ${l===e.key?"border-[#F5C242]/42 bg-[#F5C242]/12 text-[#F5C242] shadow-[0_10px_24px_rgba(245,194,66,0.06)]":"border-white/10 bg-white/[0.035] text-[#D9CFE8] hover:border-white/18 hover:bg-white/[0.07] hover:text-white"}`,children:[(0,c.jsx)(t,{className:"h-4 w-4"}),n[e.key],(0,c.jsx)("span",{className:"qr-filter-count",children:k[e.key]})]},e.key)})}),(0,c.jsxs)("label",{className:"flex min-w-0 items-center gap-3 rounded-2xl border border-white/10 bg-white/[0.055] px-4 py-3 text-[#CFC5DF] xl:w-[320px]",children:[(0,c.jsx)(v.Search,{className:"h-5 w-5 shrink-0"}),(0,c.jsx)("input",{value:d,onChange:e=>{x(e.target.value),g(20)},placeholder:e.modelSearchPlaceholder,className:"min-w-0 flex-1 bg-transparent text-sm font-bold text-white outline-none placeholder:text-[#8D82A4]"})]})]})}),(0,c.jsxs)("div",{className:"grid gap-5 lg:grid-cols-[240px_1fr]",children:[(0,c.jsxs)("aside",{className:"qr-provider-filter-panel hidden self-start rounded-[24px] border p-3 backdrop-blur lg:block",children:[(0,c.jsxs)("button",{type:"button",onClick:()=>{o("all"),g(20)},className:`mb-2 flex w-full items-center justify-between rounded-2xl px-3 py-3 text-left text-sm font-black transition ${"all"===s?"bg-[#F5C242]/12 text-[#F5C242] shadow-[inset_0_0_0_1px_rgba(245,194,66,0.09)]":"text-[#D9CFE8] hover:bg-white/[0.065] hover:text-white"}`,children:[e.modelAllProviders,(0,c.jsx)("span",{className:"rounded-full bg-white/[0.06] px-2 py-0.5 text-xs",children:r.length})]}),(0,c.jsx)("div",{className:"space-y-2",children:w.map(e=>{let t=n0[e.name]??e.logo;return(0,c.jsxs)("button",{type:"button",onClick:()=>{o(e.name),g(20)},className:`flex w-full items-center gap-3 rounded-2xl px-3 py-2.5 text-left text-sm font-black transition ${s===e.name?"bg-[#F5C242]/12 text-[#F5C242] shadow-[inset_0_0_0_1px_rgba(245,194,66,0.09)]":"text-[#D9CFE8] hover:bg-white/[0.065] hover:text-white"}`,children:[t?(0,c.jsx)("span",{className:"grid h-7 w-7 shrink-0 place-items-center rounded-xl bg-white shadow-[0_8px_18px_rgba(0,0,0,0.14)]",children:(0,c.jsx)(p.default,{src:t,alt:e.name,width:22,height:22,className:"h-5 w-5 object-contain"})}):(0,c.jsx)("span",{className:"grid h-7 w-7 shrink-0 place-items-center rounded-xl bg-white/10 text-[10px]",children:e.name.slice(0,1)}),(0,c.jsx)("span",{className:"min-w-0 flex-1 leading-tight",children:e.name}),(0,c.jsx)("span",{className:"rounded-full bg-white/[0.055] px-2 py-0.5 text-xs text-[#9B8DB1]",children:e.count})]},e.name)})})]}),(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"qr-model-count-bar mb-4 flex items-center justify-between gap-4 roun
67ded-2xl border px-4 py-3 text-sm font-bold text-[#CFC5DF]",children:[(0,c.jsxs)("span",{children:[e.modelShowingPrefix," ",(0,c.jsx)("b",{className:"text-[#F5C242]",children:Math.min(f,j.length)}),(0,c.jsxs)("span",{className:"text-[#8D82A4]",children:[" / ",j.length]})," ",e.modelShowingSuffix]}),"all"!==s?(0,c.jsx)("button",{type:"button",onClick:()=>{o("all"),g(20)},className:"text-[#F5C242] hover:text-white",children:e.modelClearFilter}):null]}),(0,c.jsx)("div",{className:"qr-model-results-grid qr-reveal-stagger",children:N.length>0?N.map(e=>(0,c.jsx)(n9,{model:e,onOpen:y},e.id)):Array.from({length:20}).map((t,n)=>(0,c.jsxs)("div",{className:"flex min-h-[218px] flex-col overflow-hidden rounded-xl border border-white/10 bg-white/[0.04]",children:[(0,c.jsx)("div",{className:"h-14 animate-pulse bg-white/10"}),(0,c.jsxs)("div",{className:"flex flex-1 flex-col gap-3 p-4",children:[(0,c.jsx)("div",{className:"h-4 w-2/3 rounded-full bg-white/10"}),(0,c.jsxs)("div",{className:"space-y-2",children:[(0,c.jsx)("div",{className:"h-3 rounded-full bg-white/10"}),(0,c.jsx)("div",{className:"h-3 w-3/4 rounded-full bg-white/10"})]}),(0,c.jsx)("div",{className:"mt-auto text-xs font-black text-[#A855FF]",children:e.modelLoading})]})]},`model-loading-${n}`))}),F?(0,c.jsx)("div",{className:"mt-6 flex justify-center",children:(0,c.jsx)("button",{type:"button",onClick:()=>g(e=>e+20),className:"qr-secondary-button px-8 py-3 text-base",children:e.modelShowMore})}):null]})]}),(0,c.jsxs)("div",{className:"qr-model-footer-panel mt-6 flex flex-col items-center justify-between gap-4 rounded-3xl border px-5 py-5 text-center md:flex-row md:px-7 md:text-left",children:[(0,c.jsx)("p",{className:"text-lg font-black text-white md:text-xl",children:e.modelFooterText}),(0,c.jsxs)("div",{className:"flex w-full flex-col gap-3 sm:w-auto sm:flex-row",children:[(0,c.jsx)("a",{href:"/go-register",target:"_blank",rel:"noopener noreferrer",className:"qr-primary-button qr-cta-shine px-7 py-3 text-base",children:e.quickStartFreeTrialBtn}),(0,c.jsx)("a",{href:nX,target:"_blank",rel:"noopener noreferrer",className:"qr-secondary-button px-7 py-3 text-base",children:e.modelListAllModelsBtn})]})]})]}),(0,c.jsx)(nY,{model:b,onClose:()=>y(null)})]})}],14908)},74141,e=>{"use strict";var t=e.i(43476),n=e.i(22016),r=e.i(57688),i=e.i(72520);let l=(0,e.i(75254).default)("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);var a=e.i(70273),s=e.i(65194),o=e.i(98345),c=e.i(93529);let d={kicker:"Trusted by builders",title:"æ·±åå
¨çå¼åè
ä¿¡èµ",subtitle:"ä»ä¸ªäººå¼åè
å° AI 产åå¢éï¼ç¨ QuickRouter ç¨³å®æ¥å
¥ OpenAIãClaudeãGeminiãDeepSeekãGrok ç 400+ 大模åã",quotes:[{quote:"Claude CodeãCursorãCodex é½ç¨åä¸ä¸ª Base URLï¼å¢éå°ç»´æ¤äºå¾å¤æ¥å
¥é
ç½®ã",role:"Alex Chen",meta:"å
¨æ å·¥ç¨å¸",avatar:"/images/testimonials/alex-chen.webp",accent:"#60A5FA"},{quote:"ä¸ä¸ª API Key è¦çå¤å®¶æ¨¡åï¼åç°åº¦æµè¯åææ¬å¯¹æ¯ç®åäºå¾å¤ã",role:"ææ",meta:"AI 产åè´è´£äºº",avatar:"/images/testimonials/cartoon-dev-a.webp",accent:"#F5C242"},{quote:"æ°åäºæ¿å°ææ¡£åå åéå°±è½è·éç¬¬ä¸æ¬¡è¯·æ±ï¼æ¥å
¥å¹è®ææ¬ä½äºã",role:"Emily Zhang",meta:"ææ¯äº§åç»ç",avatar:"/images/testimonials/landscape-workspace.svg",accent:"#34D399"},{quote:"å Agent æ¹é任塿¶ï¼å¯ä»¥å¿«é忢髿§è½æ¨¡ååä½ææ¬æ¨¡åã",role:"çä¸èª",meta:"èªå¨åå¼åè
",avatar:"/images/testimonials/asian-dev-b.webp",accent:"#A78BFA"},{quote:"宿¶ä»·æ ¼åç»ä¸æ¥å£è®©æ¨¡åéæ©æ´éæï¼ä¸å被åä¸ä¾åºåéä½ã",role:"æè",meta:"AI æ¶æå¸",avatar:"/images/testimonials/daniel-wang.webp",accent:"#22D3EE"},{quote:"仿µè¯é¢åº¦å°æ£å¼æ¥å
¥è·¯å¾å¾çï¼éåå
å°è§æ¨¡éªè¯åä¸çº¿ã",role:"éè¥æ¦",meta:"ç¬ç«å¼åè
",avatar:"/images/testimonials/landscape-lake.webp",accent:"#FB7185"},{quote:"æä»¬ææ¨¡åè°ç¨ç»ä¸å° QuickRouter åï¼å
é¨å·¥å
·å模ååºæ¬ä¸ç¨æ¹ä»£ç ã",role:"Daniel Wang",meta:"å端工ç¨å¸",avatar:"/images/testimonials/cartoon-dev-c.svg",accent:"#F59E0B"},{quote:"对ååå¢éå¾å好ï¼è¯ OpenAIãClaudeãGemini 齿¯åä¸å¥è°ç¨æ¹å¼ã",role:"Jessica Martinez",meta:"产å设计è´è´£äºº",avatar:"/images/testimonials/cartoon-dev-b.webp",accent:"#38BDF8"},{quote:"ææ¡£éç Base URLãæ¨¡ååå计费信æ¯å¾æ¸
æ¥ï¼ææ¥é®é¢æ´å¿«ã",role:"èµµå®",meta:"SaaS åä¸è
",avatar:"/images/testimonials/landscape-night.svg",accent:"#C084FC"}
67,{quote:"éåå夿¨¡åå¤éæ¹æ¡ï¼ä¸»æ¨¡åæ³¢å¨æ¶å¯ä»¥å¾å¿«åå°å¤ç¨æ¨¡åã",role:"Robert Taylor",meta:"è½¯ä»¶æ¶æå¸",avatar:"/images/testimonials/landscape-city.webp",accent:"#2DD4BF"}],primaryCta:"å
è´¹è¯ç¨",secondaryCta:"æ¥çå
¨é¨æ¨¡å"},u={kicker:"Trusted by builders",title:"Trusted by developers worldwide",subtitle:"QuickRouter gives teams one stable API key for OpenAI, Claude, Gemini, DeepSeek, Grok, and 400+ global models.",quotes:[{quote:"Claude Code, Cursor, and Codex all use the same Base URL. We maintain fewer model configs now.",role:"Alex Chen",meta:"Full-stack engineer",avatar:"/images/testimonials/alex-chen.webp",accent:"#60A5FA"},{quote:"One API key covers multiple providers, so rollout tests and cost checks are much easier.",role:"Ming Li",meta:"AI product lead",avatar:"/images/testimonials/cartoon-dev-a.webp",accent:"#F5C242"},{quote:"New teammates can run their first request in minutes with the same integration pattern.",role:"Lin Zhang",meta:"Technical PM",avatar:"/images/testimonials/landscape-workspace.svg",accent:"#34D399"},{quote:"For agent workloads, switching between high-performance and low-cost models is straightforward.",role:"Yihang Wang",meta:"Automation developer",avatar:"/images/testimonials/asian-dev-b.webp",accent:"#A78BFA"},{quote:"Live pricing and one interface make model choice transparent. We select by scenario now.",role:"Zhou Lin",meta:"AI architect",avatar:"/images/testimonials/daniel-wang.webp",accent:"#22D3EE"},{quote:"The path from trial credit to production is short, so small experiments are easy to validate.",role:"Ruoxi Chen",meta:"Indie developer",avatar:"/images/testimonials/landscape-lake.webp",accent:"#FB7185"},{quote:"After moving calls to QuickRouter, switching models in internal tools rarely needs code changes.",role:"Daniel Wang",meta:"Backend engineer",avatar:"/images/testimonials/cartoon-dev-c.svg",accent:"#F59E0B"},{quote:"It works well for prototype teams. OpenAI, Claude, and Gemini share the same calling pattern.",role:"Jessica Martinez",meta:"Product design lead",avatar:"/images/testimonials/cartoon-dev-b.webp",accent:"#38BDF8"},{quote:"The Base URL, model names, and billing notes are clear enough that debugging is faster.",role:"Yu Zhao",meta:"SaaS founder",avatar:"/images/testimonials/landscape-night.svg",accent:"#C084FC"},{quote:"It is useful as a multi-model fallback layer when the primary model has availability issues.",role:"Robert Taylor",meta:"Software architect",avatar:"/images/testimonials/landscape-city.webp",accent:"#2DD4BF"}],primaryCta:"Free Trial",secondaryCta:"View Models"};e.s(["DeveloperHubSection",0,function(){let{t:e,language:p}=(0,o.useLanguage)();return(0,t.jsx)("section",{className:"qr-section qr-dev-section qr-trust-section",children:(0,t.jsxs)("div",{className:"mx-auto max-w-[92rem]",children:[(0,t.jsx)("div",{className:"qr-reveal-soft mx-auto mb-12 max-w-3xl text-center",children:(0,t.jsx)(s.SectionHeading,{eyebrow:e.trustKicker,title:e.trustTitle,description:e.trustSubtitle,highlight:"å¼åè
ä¿¡èµ"})}),(0,t.jsx)(c.ScrollReveal,{as:"div",variant:"scale",className:"qr-trust-wall",children:("zh"===p?d:u).quotes.map(e=>(0,t.jsxs)("article",{className:"qr-trust-card",style:{"--trust-avatar-accent":e.accent},children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,t.jsx)("div",{className:"flex gap-1 text-[#F5C242]","aria-label":"5 stars",children:Array.from({length:5}).map((e,n)=>(0,t.jsx)(a.Star,{className:"h-3.5 w-3.5 fill-current"},n))}),(0,t.jsx)(l,{className:"h-5 w-5 text-white/10"})]}),(0,t.jsxs)("p",{className:"text-sm font-medium leading-relaxed text-[#E7E1F0]",children:["â",e.quote,"â"]}),(0,t.jsxs)("div",{className:"mt-4 flex items-center gap-3",children:[(0,t.jsx)("span",{className:"qr-trust-avatar","aria-hidden":"true",children:(0,t.jsx)(r.default,{src:e.avatar,alt:"",width:80,height:80,className:"h-full w-full object-cover"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-bold text-white",children:e.role}),(0,t.jsx)("div",{className:"mt-0.5 text-xs font-bold text-[#8F849F]",children:e.meta})]})]})]},e.quote))}),(0,t.jsxs)("div",{className:"mt-10 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[(0,t.jsx)(n.default,{href:"/go-register",target:"_blank",rel:"noopener noreferrer",className:"qr-primary-button qr-cta-shine px-7 py-3 text-base",children:e.trustPrimaryCta}),(0,t.jsxs)(n.default,{href:"/models",className:"qr-secondary-button px-7 py-3 text-base",children:[e.trustSecondaryCta,(0,t.jsx)(i.ArrowRight,{className:"ml-2 h-4 w-4"})]})]})]})})}],74141)},43944,e=>{"use strict";var t=e.i(43476),n=e.i(64659),r=e.i(65194),i=e.i(98345),l=e.i(71645);e.s(["FAQSection",0,function(){let{t:e}=(0,i.useLanguage)(),a=(0,l.useRef)(null),s=(0,l.useRef)(!1);(0,l.useEffect)(()=>()=>a.current?.cancel(),[]);let o=e=>{let t=e.currentTarget,n=t.parentElement;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;e.preventDefault();let r=n.getBoundingClientRect().height;s.current=a.current?!s.current:!n.open,a.current?.cancel(),n.open=!0,n.dataset.expanded=String(s.current);let i=s.current?n.getBoundingClientRect().height:t.getBoundingClientRect().height+2;n.style.overflow="hidden";let l=n.animate([{height:`${r}px`},{height:`${i}px`}],{duration:340,easing:"cubic-bezier(.22,1,.36,1)"});a.current=l,l.onfinish=()=>{n.open=s.current,n.style.overflow="",delete n.dataset.expanded,a.current=null}},c=[{question:e.faqQ1,answer:"",subItems:[{label:e.faqA1L7,text:e.faqA1T7},{label:e.faqA1L8,text:e.faqA1T8},{label:e.faqA1L5,text:e.faqA1T5},{label:e.faqA1L6,text:e.faqA1T6},{label:e.faqA1L4,text:e.faqA1T4},{label:e.faqA1L3,text:e.faqA1T3},{label:e.faqA1L2,text:e.faqA1T2},{label:e.faqA1L1,text:e.faqA1T1}]}];return(0,t.jsx)("section",{className:"qr-section-soft qr-faq-section",children:(0,t.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,t.jsx)("div",{className:"qr-reveal-soft text-center mb-12",children:(0,t.jsx)(r.SectionHeading,{eyebrow:"FAQ",title:e.faqTitle,description:e.faqSubtitle,highlight:"çé®é¢"})}),(0,t.jsx)("div",{className:"qr-faq-shell",children:c.map((e,r)=>(0,t.jsxs)("details",{className:"qr-faq-card group",children:[(0,t.jsxs)("summary",{onClick:o,className:"flex items-center justify-between cursor-pointer p-6 text-white font-bold transition-colors list-none",children:[(0,t.jsx)("span",{children:e.question}),(0,t.jsx)(n.ChevronDown,{className:"h-5 w-5 flex-shrink-0 text-[#F5C242] transition-transform group-open:rotate-180"})]}),(0,t.jsx)("div",{className:"grid gap-3 px-6 pb-6 text-[#EDE6F5] text-base md:grid-cols-2",children:e.subItems.map((e,n)=>(0,t.jsxs)("div",{className:"qr-faq-answer",children:[(0,t.jsx)("p",{className:"text-[#F5C242] font-medium",children:e.label}),(0,t.jsx)("p",{className:"mt-1 leading-relaxed text-[#CFC5DE]",children:e.text})]},n))})]},r))})]})})}])}]);
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.