PageSourceSearch

https://ai-for-music.com/_next/static/chunks/bebf6661cdd4d779.js

js ai-for-music.com collected 2026-10-08 01:27:38 UTC 36,923 bytes, 164 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,885878,e=>{"use strict";let t=(0,e.i(592583).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],885878)},259630,e=>{"use strict";let t=(0,e.i(592583).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"}]]);e.s(["Download",()=>t],259630)},707887,89489,856577,e=>{"use strict";var t=e.i(537345),r=e.i(126313),a=e.i(580828);function i(e){return e.slice(0,1500)}async function n(e,t){if(e.prompt&&e.prompt.trim().length>1500)throw Error("Prompt must be at most 1500 characters");(0,a.captureEntrySource)();let r=await fetch("/api/pbn/handoff",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,content:t.content,entrySource:(0,a.readEntrySource)()??void 0})}),i=await r.json().catch(()=>null);if(!r.ok||"string"!=typeof(null==i?void 0:i.claimUrl)||"string"!=typeof i.token)throw Error("string"==typeof(null==i?void 0:i.error)?i.error:"Unable to create handoff");let n=new URL(i.claimUrl);if("https:"!==n.protocol||n.username||n.password||n.search||n.hash||"/api/pbn-handoff/claim"!==n.pathname)throw Error("Invalid handoff claim URL");return{claimUrl:n.toString(),token:i.token}}async function o(e){var t;let r,a;t=await n(e.request,e.attribution),(r=document.createElement("form")).method="POST",r.action=t.claimUrl,r.target="_top",r.hidden=!0,r.acceptCharset="UTF-8",(a=document.createElement("input")).type="hidden",a.name="token",a.value=t.token,r.appendChild(a),document.body.appendChild(r),r.submit()}async function l(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>window.location.assign(e);try{return await o(e),!0}catch(e){return console.error("[pbn-handoff] Unable to submit claim",e),r(new URL(t,window.location.href).toString()),!1}}function s(e,t,r,a){return e&&t&&r?(a.current=!1,e.execute(t),!0):(a.current=!0,!1)}function c(e){let{onVerify:i,onError:n,onExpired:l,widget:c,siteKey:d,promoTargetUrl:f,promoTenant:p,promoContent:u,promoLocale:m,promoHandoff:h,promoteMobile:g}=e,x=(0,r.useRef)(null),b=(0,r.useRef)(null),v=(0,r.useRef)(!1),y=(0,r.useRef)(!1),j=(0,r.useRef)({onVerify:i,onError:n,onExpired:l});(0,r.useEffect)(()=>{j.current={onVerify:i,onError:n,onExpired:l}},[i,n,l]);let[k,w]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!f)return;let e=!1;return(0,a.resolveGeo)().then(t=>{e||w(t)}),()=>{e=!0}},[f]),(0,r.useEffect)(()=>{if(f&&!k||f&&k&&(0,a.isGoodTraffic)(k.country,k.device,f,g))return;let e=document.createElement("div");e.style.position="fixed",e.style.bottom="0",e.style.right="0",e.style.width="0",e.style.height="0",e.style.overflow="hidden",e.style.visibility="hidden",document.body.appendChild(e),x.current=e;let r=()=>{if(!window.turnstile||!x.current)return;let e={1:t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY_1,2:t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY_2,3:t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY_3,4:t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY_4,5:t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY_5,6:t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY_6,7:t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY_7,8:t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY_8,9:t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY_9,10:t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY_10},r=d??(c?e[c]:t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY_1||t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY);if(!r)return void console.error("[turnstile] NEXT_PUBLIC_TURNSTILE_SITE_KEY not configured");try{b.current=window.turnstile.render(x.current,{sitekey:r,callback:e=>{j.current.onVerify(e)},"error-callback":()=>{var e,t;null==(e=(t=j.current).onError)||e.call(t)},"expired-callback":()=>{var e,t;null==(e=(t=j.current).onExpired)||e.call(t)},execution:"execute",theme:"dark"}),v.current=!0,y.current&&s(window.turnstile,b.current,v.current,y)}catch(e){console.error("[turnstile] Failed to render widget:",e)}};if(window.turnstile)r();else if(document.querySelector('script[src*="challenges.cloudflare.com/turnstile"]')){let e=setInterval(()=>{window.turnstile&&(clearInterval(e),r())},100);setTimeout(()=>clearInterval(e),1e4)}else{let e=document.createElement("script");e.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onTurnstileLoad",e.async=!0,window.onTurnstileLoad=r,document.head.appendChild(e)}return()=>{var e;if(b.current&&window.turnstile)try{window.turnstile.remove(b.current)}catch{}null==(e=x.current)||e.remove(),v.current=!1,y.current=!1}},[c,d,f,g,k]),{execute:(0,r.useCallback)(async()=>
1{if(f){let{country:r,device:i}=await (0,a.resolveGeo)();if((0,a.isGoodTraffic)(r,i,f,g)){let r=p??"",i=u??"hero-generate";if(h&&r)try{await o({request:{tenantSlug:r,...h()},attribution:{content:i}})}catch(r){var e,t;console.error("[pbn-handoff] Unable to redirect",r),null==(e=(t=j.current).onError)||e.call(t)}else window.location.href=(0,a.buildPromoCtaUrl)({targetUrl:f,tenantSlug:r,content:i,locale:m});return}}s(window.turnstile,b.current,v.current,y)},[f,p,u,m,h,g]),reset:(0,r.useCallback)(()=>{y.current=!1,b.current&&window.turnstile&&window.turnstile.reset(b.current)},[])}}e.s(["PBN_HANDOFF_PROMPT_MAX",0,1500,"clampPbnHandoffPrompt",()=>i],89489),e.s(["redirectToPbnHandoff",()=>o,"redirectToPbnHandoffOrFallback",()=>l],856577),e.s(["useTurnstile",()=>c],707887)},287848,e=>{"use strict";let t=(0,e.i(592583).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],287848)},76768,e=>{"use strict";let t=(0,e.i(592583).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",()=>t],76768)},868246,e=>{"use strict";let t=(0,e.i(592583).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"}]]);e.s(["Play",()=>t],868246)},743658,e=>{"use strict";let t=(0,e.i(592583).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",()=>t],743658)},752902,e=>{"use strict";let t=(0,e.i(592583).default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Clock",()=>t],752902)},527902,e=>{"use strict";let t=(0,e.i(592583).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",()=>t],527902)},179661,e=>{"use strict";let t=(0,e.i(592583).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",()=>t],179661)},405763,e=>{"use strict";let t=(0,e.i(592583).default)("disc-3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M6 12c0-1.7.7-3.2 1.8-4.2",key:"oqkarx"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M18 12c0 1.7-.7 3.2-1.8 4.2",key:"1eah9h"}]]);e.s(["Disc3",()=>t],405763)},113237,e=>{"use strict";let t=(0,e.i(592583).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"}]]);e.s(["Pause",()=>t],113237)},889682,830527,998567,e=>{"use strict";var t=e.i(193685),r=e.i(126313);let a=(0,e.i(445346).getTenantCta)("ai-for-music");function i(e){let t=new URL(a);return t.searchParams.set("utm_source","ai-for-music.com"),t.searchParams.set("utm_medium","cta"),t.searchParams.set("utm_campaign",e),t.toString()}let n={logo:"https://cdn.ai-for-music.com/2026-06-26/ai-for-music-PureLogo.webp",tabText:"https://cdn.ai-for-music.com/2026-06-26/ai-for-music-tab1-01.webp",tabLyrics:"https://cdn.ai-for-music.com/2026-06-26/ai-for-music-tab2-01.webp",featureCenter:"https://cdn.ai-for-music.com/2026-06-26/ai-for-music-feature-center-01.webp"},o=[{label:"AI Music Generator",href:"/"},{label:"AI Lyrics Generator",href:"/ai-lyrics-generator"}],l=[{label:"AI Music Generator",href:"/"},{label:"AI Lyrics Generator",href:"/ai-lyrics-generator"},{label:"AI Song Cover Generator",href:"/ai-song-cover-generator"},{label:"AI Stem Splitter",href:"/ai-stem-splitter"},{label:"AI Music Video Generator",href:"/ai-music-video-generator"},{label:"Lofi Music Generator",href:"/lofi-music-generator"},{label:"Jazz Music Generator",href:"/jazz-music-generator"},{label:"EDM Music Generator",href:"/edm-music-generator"}],s=[{title:"AI Music Tools",links:[{label:"AI Music Generator",href:"/"},{label:"AI Lyrics Generator",href:"/ai-lyrics-generator"},{label:"AI Song Cover Generator",href:"/ai-song-cover-generator"},{label:"AI Stem Splitter",href:"/ai-stem-splitter"},{label:"AI Music Video Generator",href:"/ai-music-video-generator"}]},{title:"Popular Genres",links:[{label:"Lofi Music Generator",href:"/lofi-music-generator"},{label:"Jazz Music Generator",href:"/jazz-music-generator"},{label:"EDM Music Generator",href:"/edm-music-generator"},{label:"Pop Music Generator",href:"/pop-music-generator"},{label:"Hip-Hop Music Generator",href:"/hip-hop-music-generator"}]},{title:"Resources",links:[{label:"AI Music Generator",href:"/"},{label:"AI Lyrics Generator",href:"/ai-lyrics-generator"},{label:"AI Song Cover Generator",href:"/ai-song-cover-generator"},{label:"AI Stem Splitter",href:"/ai-stem-splitter"}]}];e.s(["ASSETS",0,n,"FOOTER_COLUMNS",0,s,"NAV_ITEMS",0,o,"NAV_TOOLS",0,l,"PROMO_CTA_TARGET_URL",0,a,"SHOWCASE_TRACKS",0,[{title:"Neon City Nights",cover:"https://cdn.ai-for-music.com/2026-06-26/ai-for-music-creator1-01.webp",duration:"03:21",tags:["Synthwave","Electronic"]},{title:"Summer Breeze",cover:"https://cdn.ai-for-music.com/2026-06-26/ai-for-music-creator2-01.webp",duration:"02:45",tags:["Pop","Acoustic"]},{title:"Urban Rhythm",cover:"https://cdn.ai-for-music.com/2026-06-26/ai-for-music-creator3-01.webp",duration:"02:58",tags:["Hip Hop","R&B"]},{title:"Starlight Lullaby",cover:"https://cdn.ai-for-music.com/2026-06-26/ai-for-music-creator4-01.webp",duration:"04:10",tags:["Classical","Ambient"]},{title:"Electric Dreams",cover:"https://cdn.ai-for-music.com/2026-06-26/ai-for-music-creator5-01.webp",duration:"03:05",tags:["EDM","Dance"]},{title:"Midnight Drive",cover:"https://cdn.ai-for-music.com/2026-06-26/ai-for-music-creator6-01.webp",duration:"03:40",tags:["Lofi","Chill"]}],"promoUrl",()=>i],830527);var c=e.i(305084),d=e.i(259630),f=e.i(868246),p=e.i(113237),u=e.i(405763),m=e.i(287848),h=e.i(527902),g=e.i(752902),x=e.i(179661),b=e.i(76768),v=e.i(707887);let y="#4ade80";function j(e){let{turnstileSiteKey:i,defaultPrompt:n=""}=e,o=(0,c.useTranslations)("aiForMusic"),l=[o("heroTool.stages.0"),o("heroTool.stages.1"),o("heroTool.stages.2"),o("heroTool.stages.3"),o("heroTool.stages.4")],[s,j]=(0,r.useState)(n),[k,w]=(0,r.useState)("idle"),[T,S]=(0,r.useState)(0),[N,I]=(0,r.useState)(0),[E,_]=(0,r.useState)(null),[z,C]=(0,r.useState)(null),[L,M]=(0,r.useState)(!1),R=(0,r.useRef)(null),U=(0,r.useRef)(null),A=(0,r.useRef)(!1),P=(0,r.useRef)([]),q=(0,r.useCallback)(()=>
1{P.current.forEach(e=>clearInterval(e)),P.current=[]},[]);(0,r.useEffect)(()=>()=>q(),[q]);let G=(0,r.useCallback)(()=>{A.current&&(U.current?(C(U.current),w("error")):R.current&&(_(R.current),w("done")))},[]),F=(0,r.useCallback)(()=>{S(0),I(0),A.current=!1;let e=setInterval(()=>{S(t=>{let r=Math.min(100,t+1.0666666666666667);return r>=100&&(clearInterval(e),A.current=!0,G()),r})},80),t=setInterval(()=>{I(e=>Math.min(4,e+1))},1500);P.current.push(e,t)},[G]),B=(0,r.useCallback)(async e=>{try{let t=await fetch("/api/ai-for-music-generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:s.trim(),turnstileToken:e})}),r=await t.json();t.ok?R.current={title:r.title,style:r.style,lyrics:r.lyrics}:U.current=(null==r?void 0:r.error)||o("heroTool.errors.failed")}catch{U.current=o("heroTool.errors.network")}finally{G()}},[s,G,o]),K=(0,r.useCallback)(e=>{R.current=null,U.current=null,F(),B(e)},[B,F]),H=(0,r.useCallback)(()=>{q(),U.current=null,C(o("heroTool.errors.verify")),w("error")},[q,o]),{execute:O,reset:D}=(0,v.useTurnstile)({promoTargetUrl:a,promoTenant:"ai-for-music",promoContent:"hero-generate",onVerify:K,onError:H,onExpired:H,siteKey:i}),W={background:"rgba(14, 26, 19, 0.6)",border:"1px solid rgba(74, 222, 128, 0.2)",borderRadius:20,padding:16,margin:"0 auto 32px",maxWidth:760,position:"relative",boxShadow:"0 0 40px rgba(74, 222, 128, 0.05)",backdropFilter:"blur(10px)"};return"done"===k&&E?(0,t.jsxs)("div",{style:{...W,textAlign:"left"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:16,padding:"8px 8px 20px"},children:[(0,t.jsx)("div",{style:{width:64,height:64,borderRadius:"50%",background:"repeating-radial-gradient(#111 0,#111 2px,#000 3px,#000 4px)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,animation:L?"afm-spin 6s linear infinite":void 0},children:(0,t.jsx)(u.Disc3,{size:26,color:y})}),(0,t.jsxs)("div",{style:{flexGrow:1,minWidth:0},children:[(0,t.jsx)("div",{style:{fontFamily:"'Fredoka', sans-serif",color:"#fff",fontSize:22,fontWeight:600,lineHeight:1.2},children:E.title}),(0,t.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8,marginTop:8},children:E.style.split(",").map(e=>e.trim()).filter(Boolean).map(e=>(0,t.jsx)("span",{style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.06)",padding:"4px 10px",borderRadius:6,fontSize:12,color:"#c7d4cd"},children:e},e))})]})]}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,background:"rgba(0,0,0,0.25)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:12,padding:12},children:[(0,t.jsx)("button",{type:"button",onClick:()=>M(e=>!e),"aria-label":L?o("heroTool.pause"):o("heroTool.play"),style:{width:40,height:40,borderRadius:"50%",background:`linear-gradient(90deg, ${y}, #86efac)`,color:"#08110b",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:L?(0,t.jsx)(p.Pause,{size:18}):(0,t.jsx)(f.Play,{size:18})}),(0,t.jsx)("div",{style:{display:"flex",alignItems:"center",gap:3,flexGrow:1,height:32},"aria-hidden":!0,children:Array.from({length:40}).map((e,r)=>{let a=20+80*Math.abs(Math.sin(1.7*r));return(0,t.jsx)("span",{style:{flex:1,height:`${a}%`,borderRadius:2,background:r<14?y:"rgba(255,255,255,0.18)",transition:"background 0.3s"}},r)})}),(0,t.jsx)("span",{style:{fontSize:12,color:"#9fb3a8",flexShrink:0},children:"03:12"})]}),(0,t.jsx)("div",{style:{marginTop:16,maxHeight:320,overflowY:"auto",padding:"4px 8px"},children:E.lyrics.split("\n").map((e,r)=>{let a=e.trim(),i=/^\[.*\]$/.test(a);return a?(0,t.jsx)("p",{style:{margin:0,color:i?y:"#c7d4cd",fontWeight:i?600:400,fontSize:i?13:15,letterSpacing:.5*!!i,textTransform:i?"uppercase":"none",marginTop:i?14:2,lineHeight:1.5},children:a},r):(0,t.jsx)("div",{style:{height:10}},r)})}),(0,t.jsx)("div",{style:{display:"flex",justifyContent:"center",gap:12,marginTop:20},children:(0,t.jsxs)("button",{type:"button",onClick:()=>{q(),R.current=null,U.current=null,A.current=!1,_(null),C(null),M(!1),S(0),I(0),w("idle")},style:{display:"inline-flex",alignItems:"center",gap:8,background:`linear-gradient(90deg, ${y}, #86efac)`,color:"#08110b",fontWeight:600,padding:"12px 28px",borderRadius:9999,fontSize:15},children:[(0,t.jsx)(x.RotateCcw,{size:18})," ",o("heroTool.createAnother")]})}),(0,t.jsx)("style",{children:"@keyframes afm-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}"})]}):"working"===k?(0,t.jsxs)("div",{style:{...W,textAlign:"left"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 8px 16px",color:"#fff",fontWeight:500},children:[(0,t.jsx)(m.Loader2,{size:20,color:y,style:{animation:"afm-spin 1s linear infinite"}}),(0,t.jsx)("span",{children:l[N]}),(0,t.jsxs)("span",{style:{marginLeft:"auto",color:"#9fb3a8",fontSize:14},children:[Math.round(T),"%"]})]}),(0,t.jsx)("div",{style:{height:10,borderRadius:9999,background:"rgba(255,255,255,0.08)",overflow:"hidden"},children:(0,t.jsx)("div",{style:{height:"100%",width:`${T}%`,background:`linear-gradient(90deg, ${y}, #86efac)`,borderRadius:9999,transition:"width 0.1s linear"}})}),(0,t.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8,marginTop:16},children:l.map((e,r)=>(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:4,fontSize:12,color:r<=N?y:"#6f8478"},children:[r<=N?(0,t.jsx)(h.CheckCircle2,{size:12}):(0,t.jsx)(g.Clock,{size:12}),e.replace("…","")]},e))}),(0,t.jsx)("style",{children:"@keyframes afm-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}"})]}):(0,t.jsxs)("div",{style:W,children:[(0,t.jsx)("textarea",{value:s,onChange:e=>j(e.target.value),placeholder:o("heroTool.placeholder"),rows:3,style:{width:"100%",background:"transparent",border:"none",color:"#fff",fontFamily:"'Inter', sans-serif",fontSize:18,resize:"none",outline:"none",padding:12,minHeight:80}}),(0,t.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",marginTop:12},children:(0,t.jsxs)("button",{type:"button",onClick:()=>{s.trim()?(C(null),_(null),M(!1),w("working"),D(),O()):C(o("heroTool.errors.empty"))},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,background:`linear-gradient(90deg, ${y}, #86efac)`,color:"#08110b",fontWeight:600,padding:"16px 40px",borderRadius:9999,fontSize:18},children:[(0,t.jsx)(b.Sparkles,{size:20})," ",o("heroTool.button")]})}),z&&(0,t.jsx)("p",{style:{color:"#f87171",fontSize:14,marginTop:12,textAlign:"center"},children:z}),(0,t.jsxs)("div",{style:{display:"flex",justifyContent:"center",gap:32,marginTop:20,color:"#c7d4cd",fontSize:14},children:[(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[(0,t.jsx)(h.CheckCircle2,{size:18,color:y})," ",o("heroTool.trustLicense")]}),(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[(0,t.jsx)(d.Download,{size:18,color:y})," ",o("heroTool.trustDuration")]})]})]})}e.s(["default",()=>j],889682);var k=e.i(948183),w=e.i(789100),T=e.i(662023),S=e.i(885878),N=e.i(811574);
1let I=[{code:"en",label:"English",flag:"🇺🇸"},{code:"fr",label:"Français",flag:"🇫🇷"},{code:"ja",label:"日本語",flag:"🇯🇵"},{code:"es",label:"Español",flag:"🇪🇸"},{code:"pt",label:"Português",flag:"🇵🇹"},{code:"pl",label:"Polski",flag:"🇵🇱"}];function E(){let e=(0,T.useLocale)(),a=(0,c.useTranslations)("aiForMusic"),[i,n]=(0,r.useState)(!1),o=I.find(t=>t.code===e)??I[0];return(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsxs)("button",{type:"button",onClick:()=>n(e=>!e),"aria-label":a("nav.language"),"aria-expanded":i,style:{display:"inline-flex",alignItems:"center",gap:8,padding:"8px 12px",borderRadius:9999,color:"var(--text-muted-light)",fontSize:15},children:[(0,t.jsx)("span",{style:{fontSize:18,lineHeight:1},children:o.flag}),(0,t.jsx)("span",{style:{textTransform:"uppercase",fontWeight:600,fontSize:13},children:o.code}),(0,t.jsx)(N.ChevronDown,{size:14,style:{transform:i?"rotate(180deg)":void 0,transition:"transform 0.2s"}})]}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{position:"fixed",inset:0,zIndex:40},onClick:()=>n(!1)}),(0,t.jsx)("div",{style:{position:"absolute",right:0,top:"100%",marginTop:8,minWidth:184,background:"#0e1a13",border:"1px solid rgba(255,255,255,0.08)",borderRadius:14,padding:6,zIndex:50,boxShadow:"0 10px 30px rgba(0,0,0,0.5)"},children:I.map(r=>{let a=r.code===e;return(0,t.jsxs)(w.default,{href:"en"===r.code?"/":`/${r.code}`,onClick:()=>n(!1),style:{display:"flex",alignItems:"center",gap:12,padding:"9px 12px",borderRadius:10,fontSize:14,color:a?"#4ade80":"var(--text-muted-light)",fontWeight:a?600:400},children:[(0,t.jsx)("span",{style:{fontSize:18,lineHeight:1},children:r.flag}),(0,t.jsx)("span",{children:r.label}),a&&(0,t.jsx)(S.Check,{size:15,style:{marginLeft:"auto",color:"#4ade80"}})]},r.code)})})]})]})}function _(){let e=(0,T.useLocale)();return(0,t.jsx)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:8},children:I.map(r=>{let a=r.code===e;return(0,t.jsxs)(w.default,{href:"en"===r.code?"/":`/${r.code}`,style:{display:"inline-flex",alignItems:"center",gap:6,padding:"6px 12px",borderRadius:9999,fontSize:13,border:a?"1px solid rgba(74,222,128,0.4)":"1px solid rgba(255,255,255,0.08)",background:a?"rgba(74,222,128,0.12)":"transparent",color:a?"#4ade80":"var(--text-muted-light)",fontWeight:a?600:400},children:[(0,t.jsx)("span",{style:{fontSize:15,lineHeight:1},children:r.flag}),(0,t.jsx)("span",{children:r.label})]},r.code)})})}let z=`
2@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');
3.afm {
4  --bg-dark: #08110b;
5  --bg-light: #0c1711;
6  --card-bg: #0e1a13;
7  --card-border: rgba(255, 255, 255, 0.06);
8  --accent-start: #4ade80;
9  --accent-end: #86efac;
10  --text-main: #ffffff;
11  --text-muted: #9fb3a8;
12  --text-muted-light: #c7d4cd;
13  --font-heading: 'Fredoka', sans-serif;
14  --font-body: 'Inter', sans-serif;
15  --radius-md: 16px;
16  --radius-lg: 20px;
17  --radius-full: 9999px;
18  font-family: var(--font-body);
19  background-color: var(--bg-dark);
20  color: var(--text-muted);
21  line-height: 1.6;
22  -webkit-font-smoothing: antialiased;
23}
24.afm *, .afm *::before, .afm *::after { box-sizing: border-box; }
25.afm h1, .afm h2, .afm h3, .afm h4, .afm h5, .afm h6 {
26  font-family: var(--font-heading);
27  color: var(--text-main);
28  font-weight: 600;
29  line-height: 1.2;
30  margin: 0;
31}
32.afm p { margin: 0; }
33.afm a { color: inherit; text-decoration: none; transition: color 0.2s; }
34.afm button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; background: none; }
35.afm img { max-width: 100%; height: auto; display: block; }
36.afm .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
37.afm .section { padding: 80px 0; }
38.afm .bg-dark { background-color: var(--bg-dark); }
39.afm .bg-light { background-color: var(--bg-light); }
40.afm .text-center { text-align: center; }
41.afm .gradient-text {
42  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
43  -webkit-background-clip: text;
44  -webkit-text-fill-color: transparent;
45  background-clip: text;
46}
47.afm .btn-primary {
48  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
49  color: var(--bg-dark);
50  font-weight: 600;
51  padding: 12px 28px;
52  border-radius: var(--radius-full);
53  display: inline-flex;
54  align-items: center;
55  justify-content: center;
56  gap: 8px;
57  font-size: 16px;
58  transition: transform 0.2s, box-shadow 0.2s;
59}
60.afm .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3); }
61.afm .pill-badge {
62  display: inline-flex;
63  align-items: center;
64  gap: 6px;
65  padding: 6px 16px;
66  background-color: rgba(74, 222, 128, 0.12);
67  color: var(--accent-start);
68  border: 1px solid rgba(74, 222, 128, 0.3);
69  border-radius: var(--radius-full);
70  font-size: 14px;
71  font-weight: 500;
72  margin-bottom: 24px;
73}
74.afm .icon-chip {
75  width: 48px; height: 48px; border-radius: 12px;
76  border: 1.5px solid var(--accent-start);
77  display: flex; align-items: center; justify-content: center;
78  background: transparent; color: var(--accent-start); margin-bottom: 20px;
79}
80.afm .navbar {
81  position: sticky; top: 0; z-index: 100;
82  background-color: rgba(8, 17, 11, 0.8);
83  backdrop-filter: blur(12px);
84  border-bottom: 1px solid var(--card-border);
85  padding: 16px 0;
86}
87.afm .nav-container { display: flex; align-items: center; justify-content: space-between; }
88.afm .nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 24px; font-weight: 600; color: var(--text-main); }
89.afm .nav-logo img { width: 32px; height: 32px; }
90.afm .nav-links { display: flex; gap: 32px; align-items: center; }
91.afm .nav-link { font-weight: 500; font-size: 15px; color: var(--text-muted-light); }
92.afm .nav-link:hover { color: var(--accent-start); }
93.afm .nav-dropdown { position: relative; cursor: pointer; }
94.afm .nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; }
95.afm .nav-dropdown-menu {
96  display: none; position: absolute; top: 100%; left: 0; margin-top: 16px;
97  background-color: var(--card-bg); border: 1px solid var(--card-border);
98  border-radius: var(--radius-md); padding: 12px 0; min-width: 240px;
99  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
100}
101.afm .nav-dropdown.active .nav-dropdown-menu { display: block; }
102.afm .nav-dropdown-item { display: block; padding: 8px 24px; color: var(--text-muted-light); font-size: 14px; }
103.afm .nav-dropdown-item:hover { background-color: rgba(255,255,255,0.05); color: var(--accent-start); }
104.afm .nav-actions { display: flex; align-items: center; gap: 24px; }
105.afm .hero-section { padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
106.afm .hero-bg-glow {
107  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
108  width: 800px; height: 800px;
109  background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, rgba(8, 17, 11, 0) 70%);
110  z-index: 0; pointer-events: none;
111}
112.afm .hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
113.afm .hero-title { font-size: 64px; margin-bottom: 24px; letter-spacing: -1px; }
114.afm .hero-subtitle { font-size: 19px; color: var(--text-muted-light); max-width: 720px; margin: 0 auto 40px; }
115.afm .showcase-header { margin-bottom: 48px; }
116.afm .showcase-header h2 { font-size: 40px; margin-bottom: 16px; }
117.afm .split-layout { display: flex; align-items: center; gap: 64px; }
118.afm .split-layout > div { flex: 1; }
119.afm .feature-list { list-style: none; margin: 0 0 32px; padding: 0; }
120.afm .feature-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; color: var(--text-muted-light); font-size: 16px; }
121.afm .feature-list li svg { color: var(--accent-start); flex-shrink: 0; margin-top: 3px; }
122.afm .features-section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
123.afm .features-section-header h2 { font-size: 40px; margin-bottom: 16px; }
124.afm .features-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
125.afm .feature-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 32px; }
126.afm .feature-card h3 { font-size: 20px; margin-bottom: 12px; }
127.afm .feature-card p { font-size: 15px; color: var(--text-muted); }
128.afm .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
129.afm .step-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 40px 32px; text-align: center; position: relative; }
130.afm .step-number { width: 48px; height: 48px; background: rgba(74, 222, 128, 0.1); border: 1px solid var(--accent-start); color: var(--accent-start); font-family: var(--font-heading); font-size: 24px; font-weight: 600; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
131.afm .step-card h3 { font-size: 22px; margin-bottom: 16px; }
132.afm .genre-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
133.afm .genre-chip { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; transition: all 0.2s; }
134.afm .genre-chip:hover { background: rgba(74, 222, 128, 0.08); border-color: var(--accent-start); transform: translateY(-2px); }
135.afm .genre-chip .genre-name { color: var(--text-main); font-family: var(--font-heading); font-weight: 600; font-size: 16px; }
136.afm .genre-chip .genre-sub { color: var(--text-muted); font-size: 13px; }
137.afm .faq-container { max-width: 800px; margin: 0 auto; }
138.afm .faq-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; }
139.afm .faq-question { width: 100%; text-align: left; padding: 24px; background: transparent; color: var(--text-main); font-family: var(--font-body); font-size: 18px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
140.afm .faq-chevron { color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; }
141.afm .faq-item.active .faq-chevron { transform: rotate(180deg); }
142.afm .faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--text-muted-light); }
143.afm .faq-item.active .faq-answer { padding: 0 24px 24px; max-height: 400px; }
144.afm .cta-band { background: linear-gradient(180deg, rgba(74,222,128,0.05) 0%, rgba(74,222,128,0.15) 100%); border-top: 1px solid rgba(74,222,128,0.2); border-bottom: 1px solid rgba(74,222,128,0.2); padding: 80px 0; text-align: center; }
145.afm .cta-band h2 { font-size: 48px; margin-bottom: 16px; }
146.afm .footer { padding: 80px 0 40px; background-color: var(--bg-dark); }
147.afm .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
148.afm .footer-brand .nav-logo { margin-bottom: 16px; }
149.afm .footer-brand p { color: var(--text-muted); max-width: 300px; }
150.afm .footer-heading { color: var(--text-main); font-weight: 600; margin-bottom: 24px; font-size: 16px; }
151.afm .footer-links { list-style: none; margin: 0; padding: 0; }
152.afm .footer-links li { margin-bottom: 12px; }
153.afm .footer-links a { color: var(--text-muted); font-size: 15px; }
154.afm .footer-links a:hover { color: var(--accent-start); }
155.afm .footer-bottom { padding-top: 32px; border-top: 1px solid var(--card-border); display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 14px; }
156@media (max-width: 992px) {
157  .afm .split-layout, .afm .footer-grid { flex-direction: column; grid-template-columns: 1fr; }
158  .afm .features-bento, .afm .steps-grid { grid-template-columns: 1fr; }
159  .afm .genre-grid { grid-template-columns: repeat(2, 1fr); }
160  .afm .hero-title { font-size: 44px; }
161  .afm .nav-links { display: none; }
162}
163@keyframes afm-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
164`;function C(){let e=(0,c.useTranslations)("aiForMusic"),[a,s]=(0,r.useState)(!1),d=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{d.current&&!d.current.contains(e.target)&&s(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]);let f=i("nav_sign_in");return(0,t.jsx)("nav",{className:"navbar",children:(0,t.jsxs)("div",{className:"container nav-container",children:[(0,t.jsxs)(w.default,{href:"/",className:"nav-logo",children:[(0,t.jsx)(k.default,{src:n.logo,alt:"AI for Music Logo",width:32,height:32,unoptimized:!0}),(0,t.jsx)("span",{children:"AI for Music"})]}),(0,t.jsxs)("div",{className:"nav-links",children:[o.map(e=>(0,t.jsx)(w.default,{href:e.href,className:"nav-link",children:e.label},e.label)),(0,t.jsxs)("div",{ref:d,className:`nav-dropdown${a?" active":""}`,children:[(0,t.jsxs)("span",{className:"nav-link nav-dropdown-toggle",onClick:()=>s(e=>!e),children:[e("nav.tools"),(0,t.jsx)(N.ChevronDown,{size:12})]}),(0,t.jsx)("div",{className:"nav-dropdown-menu",children:l.map(e=>(0,t.jsx)(w.default,{href:e.href,className:"nav-dropdown-item",children:e.label},e.label))})]}),(0,t.jsx)(w.default,{href:"/ai-lyrics-generator",className:"nav-link",children:e("nav.resources")})]}),(0,t.jsxs)("div",{className:"nav-actions",children:[(0,t.jsx)(E,{}),(0,t.jsx)("a",{href:f,target:"_blank",rel:"noopener",className:"btn-primary","data-umami-event":"cta_sign_in",style:{padding:"8px 20px",fontSize:14},children:e("nav.signIn")})]})]})})}function L(){let e=(0,c.useTranslations)("aiForMusic"),r=e.raw("footer.columnTitles");return(0,t.jsx)("footer",{className:"footer",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsxs)("div",{className:"footer-grid",children:[(0,t.jsxs)("div",{className:"footer-brand",children:[(0,t.jsxs)(w.default,{href:"/",className:"nav-logo",children:[(0,t.jsx)(k.default,{src:n.logo,alt:"AI for Music Logo",width:32,height:32,unoptimized:!0}),(0,t.jsx)("span",{children:"AI for Music"})]}),(0,t.jsx)("p",{children:e("footer.tagline")})]}),s.map((e,a)=>(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"footer-heading",children:r[a]??e.title}),(0,t.jsx)("ul",{className:"footer-links",children:e.links.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(w.default,{href:e.href,children:e.label})},e.label))})]},e.title))]}),(0,t.jsxs)("div",{className:"footer-bottom",children:[(0,t.jsx)(_,{}),(0,t.jsx)("div",{children:e("footer.copyright")})]})]})})}function M(e){let{faqs:a}=e,[i,n]=(0,r.useState)(0);return(0,t.jsx)("div",{className:"faq-container",children:a.map((e,r)=>(0,t.jsxs)("div",{className:`faq-item${i===r?" active":""}`,children:[(0,t.jsxs)("button",{className:"faq-question",onClick:()=>n(i===r?null:r),children:[e.question,(0,t.jsx)(N.ChevronDown,{className:"faq-chevron",size:20})]}),(0,t.jsx)("div",{className:"faq-answer",children:(0,t.jsx)("p",{children:e.answer})})]},e.question))})}e.s(["AFM_CSS",0,z,"FaqAccordion",()=>M,"Footer",()=>L,"LanguageSwitcher",()=>E,"MobileLanguageSwitcher",()=>_,"NavBar",()=>C],998567)},912291,e=>{"use strict";var t=e.i(193685),r=e.i(789100),a=e.i(305084),i=e.i(885878),n=e.i(743658),o=e.i(76768),l=e.i(889682),s=e.i(998567);function c(e){let{tool:c,siteKey:d}=e,f=(0,a.useTranslations)("aiForMusic"),p=c.keyword;return(0,t.jsxs)("div",{className:"afm",children:[(0,t.jsx)("style",{children:s.AFM_CSS}),(0,t.jsx)(s.NavBar,{}),(0,t.jsxs)("section",{className:"section hero-section bg-dark",children:[(0,t.jsx)("div",{className:"hero-bg-glow"}),(0,t.jsxs)("div",{className:"container hero-content",children:[(0,t.jsxs)("div",{className:"pill-badge",children:[(0,t.jsx)(o.Sparkles,{size:16}),c.badge]}),(0,t.jsx)("h1",{className:"hero-title gradient-text",children:c.h1}),(0,t.jsx)("p",{className:"hero-subtitle",children:c.subtitle}),(0,t.jsx)(l.default,{turnstileSiteKey:d,defaultPrompt:c.heroPrompt})]})]}),(0,t.jsx)("section",{className:"section bg-light",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsxs)("div",{className:"features-section-header",children:[(0,t.jsx)("div",{className:"pill-badge",children:c.keyword}),(0,t.jsx)("h2",{children:c.intro.heading}),(0,t.jsx)("p",{children:c.intro.paragraph})]}),(0,t.jsx)("ul",{className:"feature-list",style:{maxWidth:640,margin:"0 auto",display:"inline-flex",flexDirection:"column
164",textAlign:"left"},children:c.intro.bullets.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)(i.Check,{size:20})," ",e]},e))})]})}),(0,t.jsx)("section",{className:"section bg-dark",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("div",{className:"features-section-header",children:(0,t.jsx)("h2",{children:f("tool.whyTitle",{keyword:p})})}),(0,t.jsx)("div",{className:"features-bento",children:c.features.map(e=>(0,t.jsxs)("div",{className:"feature-card",children:[(0,t.jsx)("div",{className:"icon-chip",children:(0,t.jsx)(o.Sparkles,{size:24})}),(0,t.jsx)("h3",{children:e.title}),(0,t.jsx)("p",{children:e.desc})]},e.title))})]})}),(0,t.jsx)("section",{className:"section bg-light",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsxs)("div",{className:"features-section-header",children:[(0,t.jsx)("div",{className:"pill-badge",children:f("tool.stepsEyebrow")}),(0,t.jsx)("h2",{children:f("tool.stepsTitle",{keyword:p})})]}),(0,t.jsx)("div",{className:"steps-grid",children:c.steps.map((e,r)=>(0,t.jsxs)("div",{className:"step-card",children:[(0,t.jsx)("div",{className:"step-number",children:r+1}),(0,t.jsx)("h3",{children:e.title}),(0,t.jsx)("p",{children:e.desc})]},e.title))}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsxs)("a",{href:"#top",className:"btn-primary",children:[(0,t.jsx)(n.Plus,{size:20})," ",f("tool.stepsCta",{keyword:p})]})})]})}),(0,t.jsx)("section",{className:"section bg-dark",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("div",{className:"features-section-header",children:(0,t.jsx)("h2",{children:f("tool.faqTitle",{keyword:p})})}),(0,t.jsx)(s.FaqAccordion,{faqs:c.faqs})]})}),(0,t.jsx)("section",{className:"cta-band",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("h2",{children:c.ctaHeading}),(0,t.jsx)("p",{style:{color:"var(--text-muted-light)",marginBottom:32,fontSize:18},children:c.ctaSub}),(0,t.jsx)(r.default,{href:"#top",className:"btn-primary",style:{padding:"16px 48px",fontSize:18},children:f("tool.ctaButton")})]})}),(0,t.jsx)(s.Footer,{})]})}e.s(["default",()=>c])}]);

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.