1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,701550,e=>{e.v({name:"replicate",version:"1.3.1",description:"JavaScript client for Replicate",repository:"github:replicate/replicate-javascript",homepage:"https://github.com/replicate/replicate-javascript#readme",bugs:"https://github.com/replicate/replicate-javascript/issues",license:"Apache-2.0",main:"index.js",type:"commonjs",types:"index.d.ts",files:["CONTRIBUTING.md","LICENSE","README.md","index.d.ts","index.js","lib/**/*.js","vendor/**/*","package.json"],engines:{node:">=18.0.0",npm:">=7.19.0",git:">=2.11.0",yarn:">=1.7.0"},scripts:{check:"tsc",format:"biome format . --write","lint-biome":"biome lint .","lint-publint":"publint",lint:"npm run lint-biome && npm run lint-publint",test:"jest"},optionalDependencies:{"readable-stream":">=4.0.0"},devDependencies:{"@biomejs/biome":"^1.4.1","@types/jest":"^29.5.3","@typescript-eslint/eslint-plugin":"^5.56.0","cross-fetch":"^3.1.5",jest:"^29.7.0",nock:"^14.0.0-beta.6",publint:"^0.2.7","ts-jest":"^29.1.0",typescript:"^5.0.2"}})},622491,e=>{"use strict";var t=e.i(604720),i=e.i(176506),r=e.i(526683);let s=i.forwardRef(({className:e,...i},s)=>(0,t.jsx)("textarea",{className:(0,r.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:s,...i}));s.displayName="Textarea",e.s(["Textarea",()=>s])},71131,e=>{"use strict";var t=e.i(266925);e.s(["Clock",()=>t.default])},780961,e=>{"use strict";var t=e.i(154381);e.s(["Image",()=>t.default])},266925,e=>{"use strict";let t=(0,e.i(889522).default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["default",()=>t])},245193,e=>{"use strict";let t=(0,e.i(889522).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(["default",()=>t])},550573,e=>{"use strict";var t=e.i(245193);e.s(["Sparkles",()=>t.default])},159717,e=>{"use strict";let t=(0,e.i(889522).default)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);e.s(["default",()=>t])},151028,e=>{"use strict";var t=e.i(159717);e.s(["Square",()=>t.default])},165226,e=>{"use strict";var t=e.i(604720),i=e.i(917268),r=e.i(176506),s=e.i(98160);let a=e=>{let a,n,o,d,c,m=(0,i.c)(11);m[0]===Symbol.for("react.memo_cache_sentinel")?(a={translateY:"-50%"},m[0]=a):a=m[0];let u=e.duration||10;return m[1]!==u?(n={duration:u,repeat:1/0,ease:"linear",repeatType:"loop"},m[1]=u,m[2]=n):n=m[2],m[3]!==e.testimonials?(o=[...[,,].fill(0).map((i,s)=>(0,t.jsx)(r.default.Fragment,{children:e.testimonials.map(l)},s))],m[3]=e.testimonials,m[4]=o):o=m[4],m[5]!==n||m[6]!==o?(d=(0,t.jsx)(s.motion.div,{animate:a,transition:n,className:"flex flex-col gap-6 pb-6 bg-background",children:o}),m[5]=n,m[6]=o,m[7]=d):d=m[7],m[8]!==e.className||m[9]!==d?(c=(0,t.jsx)("div",{className:e.className,children:d}),m[8]=e.className,m[9]=d,m[10]=c):c=m[10],c};function n(e){let r,n,l,o,d,c,m,u,h,p,f,g,x,y,b,v,j,w,_=(0,i.c)(39),{id:N,title:k,description:S,testimonials:C,className:T}=e,A=void 0===N?"testimonials":N,R=Math.ceil(C.length/3);_[0]!==R||_[1]!==C?(r=C.slice(0,R),_[0]=R,_[1]=C,_[2]=r):r=_[2];let z=r;_[3]!==R||_[4]!==C?(n=C.slice(R,2*R),_[3]=R,_[4]=C,_[5]=n):n=_[5];let M=n;_[6]!==R||_[7]!==C?(l=C.slice(2*R),_[6]=R,_[7]=C,_[8]=l):l=_[8];let L=l,I=`bg-background py-16 md:py-24 relative ${T??""}`;return _[9]===Symbol.for("react.memo_cache_sentinel")?(o={opacity:0,y:20},d={opacity:1,y:0},_[9]=o,_[10]=d):(o=_[9],d=_[10]),_[11]===Symbol.for("react.memo_cache_sentinel")?(c={duration:.8,delay:.1,ease:[.16,1,.3,1]},m={once:!0},_[11]=c,_[12]=m):(c=_[11],m=_[12]),_[13]!==k?(u=(0,t.jsx)("h2",{className:"text-xl sm:text-2xl md:text-3xl lg:text-4xl xl:text-5xl font-bold tracking-tighter mt-5 text-center",children:k}),_[13]=k,_[14]=u):u=_[14],_[15]!==S?(h=S&&(0,t.jsx)("p",{className:"text-center mt-5 opacity-75 text-muted-foreground",children:S}),_[15]=S,_[16]=h):h=_[16],_[17]!==u||_[18]!==h?(p=(0,t.jsxs)(s.motion.div,{initial:o,whileInView:d,transition:c,viewport:m,className:"flex flex-col items-center justify-center max-w-[540px] mx-auto",children:[u,h]}),_[17]=u,_[18]=h,_[19]=p):p=_[19],_[20]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)("div",{className:"absolute top-0 left-0 right-0 h-24 z-10 pointer-events-none bg-gradient-to-b from-background via-background/80 to-transparent"}),g=(0,t.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-24 z-10 pointer-events-none bg-gradient-to-t from-background via-background/80 to-transparent"}),_[20]=f,_[21]=g):(f=_[20],g=_[21]),_[22]!==z?(x=z.length>0&&(0,t.jsx)(a,{testimonials:z,duration:15}),_[22]=z,_[23]=x):x=_[23],_[24]!==M?(y=M.length>0&&(0,t.jsx)(a,{testimonials:M,className:"hidden md:block",duration:19}),_[24]=M,_[25]=y):y=_[25],_[26]!==L?(b=L.length>0&&(0,t.jsx)(a,{testimonials:L,className:"hidden lg:block",duration:17}),_[26]=L,_[27]=b):b=_[27],_[28]!==x||_[29]!==y||_[30]!==b?(v=(0,t.jsxs)("div",{className:"relative mt-10 h-[750px]",children:[f,g,(0,t.jsxs)("div",{className:"flex justify-center gap-6 h-full overflow-hidden",children:[x,y,b]})]}),_[28]=x,_[29]=y,_[30]=b,_[31]=v):v=_[31],_[32]!==p||_[33]!==v?(j=(0,t.jsxs)("div",{className:"container z-10 mx-auto",children:[p,v]}),_[32]=p,_[33]=v,_[34]=j):j=_[34],_[35]!==A||_[36]!==j||_[37]!==I?(w=(0,t.jsx)("section",{id:A,className:I,children:j}),_[35]=A,_[36]=j,_[37]=I,_[38]=w):w=_[38],w}function l(e,i){let{text:r,image:s,name:a,role:n}=e;return(0,t.jsxs)("div",{className:"p-10 rounded-3xl border shadow-lg shadow-primary/10 max-w-xs w-full",children:[(0,t.jsx)("div",{className:"text-foreground/80",children:r}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-5",children:[(0,t.jsx)("img",{width:40,height:40,src:s,alt:a,className:"h-10 w-10 rounded-full object-cover"}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("div",{className:"font-medium tracking-tight leading-5",children:a}),(0,t.jsx)("div",{className:"leading-5 opacity-60 tracking-tight",children:n})]})]})]},i)}e.s(["TestimonialsColumn",0,a,"TestimonialsColumns",()=>n,"default",0,n])},248647,e=>{e.v([{id:"cybernetic-90s-sci-fi-portrait",type:"image",prompt:"A close-up of a cybernetically enhanced human figure in a dynamic pose, blending realistic photography with 90's graphic design in a dark, futuristic sci-fi style."},{id:"ethereal-retro-muse",type:"image",prompt:"An ethereal female figure with futuristic and retro elements, in a serene, vintage photographic style."},{id:"glowing-sails-skyship",type:"image",prompt:"A futuristic sailing ship with glowing sails navigates a cloudy, ethereal environment in a retro-futuristic style."},{id:"futuristic-comic-villainess",type:"image",prompt:"A confident villainous w
1oman in futuristic attire, depicted in western comic book style against a white background."},{id:"underwater-blossom-nymph",type:"image",prompt:"A serene, ethereal underwater realm with a tranquil figure floating, eyes gently closed, face partially adorned with delicate pink blossoms drifting like a floral crown. Soft water ripples capture light in bubbles and reflections, highlighting her serene expression and glossy lips. Her skin glistens with a dewy sheen, blending with surrounding pink flowers swaying gently, creating a dreamlike halo effect. The background fades into a soft, muted gradient, enhancing the mystical ambiance, as if she is a water nymph resting in a hidden aquatic paradise where nature and beauty intertwine."},{id:"mini-crochet-study-room",type:"image",prompt:"A miniature crochet bedroom setup with a little boy in glasses studying at a neatly organized desk, captured from a low-angle perspective."},{id:"vintage-snowy-wonderland",type:"image",prompt:"A vintage cartoon illustration of a snowy winter wonderland with a central character in a dark blue coat."},{id:"snow-angel-move",type:"video",imageUrl:"https://cdn.seedance2pro.org/gallery/16.webp",prompt:"The subject lays on the ground and begins making snow angels"},{id:"heroic-360-zoom",type:"video",imageUrl:"https://cdn.seedance2pro.org/gallery/6.webp",prompt:"camera zooms in and rotates 360 degrees around the character, the character is standing, serious, heroic, following camera with her gaze, focused"},{id:"starry-hair-dissolve",type:"video",imageUrl:"https://cdn.seedance2pro.org/gallery/9.webp",prompt:"her hair is transforming into starry dust particles elegantly."},{id:"underwater-float-realism",type:"video",prompt:"cinematic underwater realism. A woman floats motionless in deep water, suspended as if time has stopped. Only subtle breathing and barely perceptible hair movement are visible. Soft blue-green light filters from above, illuminating her face while the background fades into darkness. Her eyes are open, calm, and introspective, unfocused, as if lost in thought. Fine particles drift slowly, enhancing silence and depth. Locked camera, slow emotional tone, realistic skin texture."},{id:"anime-christmas-town",type:"video",prompt:"A cinematic anime-style Christmas town at night, bathed in vibrant yet harmonious colors. Warm golden light spills from glowing windows, creating a cozy contrast against the cool blue night sky. Lanterns and festive street lights line the streets, softly illuminating detailed architecture with snow-dusted rooftops, wooden balconies, and charming storefronts. Gentle snowfall drifts through the air, catching the light and adding depth and motion to the scene. The camera uses a wide, cinematic perspective with strong foregroundâmidgroundâbackground layering, enhancing scale and immersion. Subtle atmospheric haze, soft light bloom, and rich color grading give the town a magical, storybook feeling. The overall mood is warm, festive, and nostalgicâpeaceful yet aliveâlike a beautifully animated Christmas scene from a high-end anime film."},{id:"medieval-hero-walk",type:"video",prompt:"A heroic character walking through a vast medieval fantasy landscape, flowing cloak, dramatic sky, cinematic camera push-in, realistic fabric motion, epic Western fantasy movie vibe, high detail, immersive atmosphere."}])},654150,956333,12944,e=>{"use strict";var t=e.i(670805);e.s(["ChevronDown",()=>t.default],654150);var i=e.i(752814);e.s(["Plus",()=>i.default],956333);var r=e.i(804722);e.s(["ArrowUp",()=>r.default],12944)},804722,e=>{"use strict";let t=(0,e.i(889522).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["default",()=>t])},752814,e=>{"use strict";let t=(0,e.i(889522).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["default",()=>t])},891686,e=>{"use strict";let t=(0,e.i(889522).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",()=>t])},23122,e=>{"use strict";e.s(["IMAGE_INPUT_KEYS",0,["image_input","image","image_urls","input_urls","images"],"MAX_PROMPT_LENGTH",0,5e3,"PLAYGROUND_GENERATE_STORAGE_KEY",0,"ai_media_playground_generate_payload","TASK_POLL_INTERVAL",0,5e3])},747026,829740,e=>{"use strict";var t=e.i(891686);e.s(["CheckCircle2",()=>t.default],747026);var i=e.i(619);function r(e,t,i){return"number"!=typeof e?e:"seedance-1.5-pro"===t.id&&i?.generate_audio===!0?2*e:e}function s(e){let t=e.model.cost;if(t){if(e.mediaType===i.AIMediaType.IMAGE&&t.image){let i=Math.max(1,e.outputs??1),r=e.scene,s=e.imageResolution??e.model.defaults?.imageResolution??e.model.imageResolutions?.[0]?.value,a=(s?t.image.resolutionOverrides?.[s]:void 0)??(r&&t.image.sceneOverrides?.[r])??t.image.perOutput;return"number"!=typeof a?void 0:e.options?.num_layers&&"number"==typeof e.o
1ptions.num_layers?i*Math.ceil(e.options.num_layers/4):i*a}if(e.mediaType===i.AIMediaType.VIDEO&&t.video){let i=t.video,s=e.videoResolution??e.model.defaults?.videoResolution??e.model.videoResolutions?.[0],a=s&&i.resolutionOverrides?.[s]||{},n=e.mode?.toString().toLowerCase().trim()||"",l=n&&i.modeOverrides?.[n]||{},o=e=>"number"==typeof e&&e>=0?e:void 0,d=e.model.defaultDurationSeconds&&e.model.defaultDurationSeconds>0?e.model.defaultDurationSeconds:1,c=Math.max(1,Math.ceil(e.durationSeconds??d)),m=o(l?.perRequest)??o(a?.perRequest)??o(i.perRequest);if("number"==typeof m)return r(m,e.model,e.options);let u=o(l?.perSecond)??o(a?.perSecond)??o(i.perSecond);if("number"!=typeof u)return;return r(c*u,e.model,e.options)}}}function a(e){if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}function n(e){if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}function l(e,t){if(!e)return"";let i=new Date(e);return Number.isNaN(i.getTime())?"":i.toLocaleString("zh"===t?"zh-CN":t,{hour12:!1})}function o(e){if(!e)return[];let t=e.output??e.images??e.data;if(!t)return[];if("string"==typeof t)return[t];if(Array.isArray(t))return t.flatMap(e=>{if(!e)return[];if("string"==typeof e)return[e];if("object"==typeof e){let t=e.url??e.uri??e.image??e.src;return"string"==typeof t?[t]:[]}return[]}).filter(Boolean);if("object"==typeof t){let e=t.url??t.uri??t.image??t.src;if("string"==typeof e)return[e]}return[]}function d(e){if(!e)return[];let t=e.videos;if(t&&Array.isArray(t))return t.map(e=>e?"string"==typeof e?e:"object"==typeof e?e.url??e.uri??e.video??e.src??e.videoUrl:null:null).filter(Boolean);let i=e.output??e.video??e.data;if(!i)return[];if("string"==typeof i)return[i];if(Array.isArray(i))return i.flatMap(e=>{if(!e)return[];if("string"==typeof e)return[e];if("object"==typeof e){let t=e.url??e.uri??e.video??e.src??e.videoUrl;return"string"==typeof t?[t]:[]}return[]}).filter(Boolean);if("object"==typeof i){let e=i.url??i.uri??i.video??i.src??i.videoUrl;if("string"==typeof e)return[e]}return[]}function c(e){let t=a(e.taskResult),r=e.mediaType===i.AIMediaType.VIDEO?i.AIMediaType.VIDEO:i.AIMediaType.IMAGE,s=r===i.AIMediaType.VIDEO?d(t):o(t),l=n(e.options),c="number"==typeof l.num_outputs?l.num_outputs:1,m="string"==typeof e.modelKey&&e.modelKey||"string"==typeof e.model&&e.model||"";return{id:e.id,status:e.status,mediaType:r,model:m,modelLabel:e.modelLabel??null,effectId:e.effectId??null,effectLabel:e.effectLabel??null,prompt:e.prompt??"",costCredits:"number"==typeof e.costCredits?e.costCredits:0,outputs:c,createdAt:e.createdAt,updatedAt:e.updatedAt,urls:s,options:l}}e.s(["APPLY_REFERENCE_IMAGE_STORAGE_KEY",0,"app_apply_reference_images","APPLY_TASK_STORAGE_KEY",0,"app_apply_task","calculateCreditsFromModelConfig",()=>s,"extractImageUrls",()=>o,"extractVideoUrls",()=>d,"formatTaskTime",()=>l,"mapBackendTaskToCard",()=>c,"parseTaskOptions",()=>n,"parseTaskResult",()=>a],829740)},99674,e=>{"use strict";let t=(0,e.i(889522).default)("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);e.s(["default",()=>t])},915948,e=>{"use strict";var t=e.i(604720),i=e.i(917268),r=e.i(176506),s=e.i(695859),a=e.i(780961),n=e.i(550573),l=e.i(465230),o=e.i(99674),o=o,d=e.i(193151),c=e.i(199978),m=e.i(24963),u=e.i(331597),h=e.i(511398),p=e.i(686247),f=e.i(330771),g=e.i(526683);let x=["video","image","tools"],y={image:{icon:a.Image,tabLabelKey:"filters.image",sectionLabelKey:"sections.image_models",accentClassName:"text-blue-600 dark:text-blue-300",iconTintClassName:"bg-blue-50 text-blue-700 ring-blue-200 dark:bg-blue-500/15 dark:text-blue-300 dark:ring-blue-500/30"},video:{icon:l.Video,tabLabelKey:"filters.video",sectionLabelKey:"sections.video_models",accentClassName:"text-indigo-600 dark:text-indigo-300",iconTintClassName:"bg-indigo-50 text-indigo-700 ring-indigo-200 dark:bg-indigo-500/15 dark:text-indigo-300 dark:ring-indigo-500/30"},tools:{icon:o.default,tabLabelKey:"filters.tools",sectionLabelKey:"sections.ai_tools",accentClassName:"text-emerald-600 dark:text-emerald-300",iconTintClassName:"bg-emerald-50 text-emerald-700 ring-emerald-200 dark:bg-emerald-500/15 dark:text-emerald-300 dark:ring-emerald-500/30"}};function b(e){let r,s,a,n=(0,i.c)(23),{card:l,category:o,featured:d}=e,c=y[o],h=c.icon;if(l.media?.type==="video"){let e,i;return n[0]!==l.media.src?(e=(0,t.jsx)("source",{src:l.media.src}),n[0]=l.media.src,n[1]=e):e=n[1],n[2]!==l.media.posterUrl||n[3]!==e?(i=(0,t.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,playsInl
1ine:!0,preload:"metadata",poster:l.media.posterUrl,className:"h-full w-full object-cover object-center transition-transform duration-500 group-hover:scale-105",children:e}),n[2]=l.media.posterUrl,n[3]=e,n[4]=i):i=n[4],i}if(l.media?.type==="image"){let e,i=l.media.alt||l.title;return n[5]!==l.media.src||n[6]!==i?(e=(0,t.jsx)(m.LazyImage,{src:l.media.src,alt:i,className:"h-full w-full object-cover object-center transition-transform duration-500 group-hover:scale-105",wrapperClassName:"block h-full w-full"}),n[5]=l.media.src,n[6]=i,n[7]=e):e=n[7],e}if(l.media?.type==="icon"){let e,i,r;n[8]!==c.iconTintClassName?(e=(0,g.cn)("rounded-2xl p-5 ring-1",c.iconTintClassName),n[8]=c.iconTintClassName,n[9]=e):e=n[9];let s=d?44:36;return n[10]!==l.media.src||n[11]!==s?(i=(0,t.jsx)(u.SmartIcon,{name:l.media.src,size:s}),n[10]=l.media.src,n[11]=s,n[12]=i):i=n[12],n[13]!==e||n[14]!==i?(r=(0,t.jsx)("div",{className:"from-muted/70 via-muted/20 to-muted/80 flex h-full w-full items-center justify-center bg-gradient-to-br",children:(0,t.jsx)("span",{className:e,children:i})}),n[13]=e,n[14]=i,n[15]=r):r=n[15],r}return n[16]!==c.iconTintClassName?(r=(0,g.cn)("rounded-2xl p-5 ring-1",c.iconTintClassName),n[16]=c.iconTintClassName,n[17]=r):r=n[17],n[18]!==h?(s=(0,t.jsx)(h,{className:"h-9 w-9"}),n[18]=h,n[19]=s):s=n[19],n[20]!==r||n[21]!==s?(a=(0,t.jsx)("div",{className:"from-muted/70 via-muted/20 to-muted/80 flex h-full w-full items-center justify-center bg-gradient-to-br",children:(0,t.jsx)("span",{className:r,children:s})}),n[20]=r,n[21]=s,n[22]=a):a=n[22],a}function v(e){let r,s,a,n,l,o=(0,i.c)(19),{card:d,category:c,variant:h,featured:p}=e,f=y[c],x=f.icon,b="overlay"===h,v=b?"h-8 w-8":"h-6 w-6",j=b?"bg-white/20 shadow-[0_4px_14px_rgba(0,0,0,0.28)] backdrop-blur-md":"ring-border/50 bg-muted/40",w=b?"p-1":"p-0.5";o[0]!==x||o[1]!==d.icon||o[2]!==d.title||o[3]!==w||o[4]!==v||o[5]!==j||o[6]!==b||o[7]!==f.accentClassName?(r=()=>d.icon?.type==="image"?(0,t.jsx)("span",{className:(0,g.cn)("inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full",!b&&"ring-1",v,j,w),children:(0,t.jsx)(m.LazyImage,{src:d.icon.src,alt:d.icon.alt||d.title,width:b?24:20,height:b?24:20,className:"h-full w-full object-contain",wrapperClassName:"flex h-full w-full items-center justify-center"})}):d.icon?.type==="icon"?(0,t.jsx)("span",{className:(0,g.cn)("inline-flex shrink-0 items-center justify-center rounded-full",!b&&"ring-1",v,j,w),children:(0,t.jsx)(u.SmartIcon,{name:d.icon.src,size:b?16:14,className:b?"text-white":f.accentClassName})}):(0,t.jsx)("span",{className:(0,g.cn)("inline-flex shrink-0 items-center justify-center rounded-full",!b&&"ring-1",v,j,w),children:(0,t.jsx)(x,{className:(0,g.cn)(b?"h-4 w-4 text-white":"h-3.5 w-3.5",f.accentClassName)})}),o[0]=x,o[1]=d.icon,o[2]=d.title,o[3]=w,o[4]=v,o[5]=j,o[6]=b,o[7]=f.accentClassName,o[8]=r):r=o[8];let _=r;o[9]!==_?(s=_(),o[9]=_,o[10]=s):s=o[10];let N=b?void 0!==p&&p?"text-xl font-bold text-white drop-shadow-[0_2px_10px_rgba(0,0,0,0.7)] md:text-2xl":"text-lg font-bold text-white drop-shadow-[0_2px_10px_rgba(0,0,0,0.7)] md:text-xl":"text-foreground text-base font-semibold";return o[11]!==N?(a=(0,g.cn)("truncate",N),o[11]=N,o[12]=a):a=o[12],o[13]!==d.title||o[14]!==a?(n=(0,t.jsx)("span",{className:a,children:d.title}),o[13]=d.title,o[14]=a,o[15]=n):n=o[15],o[16]!==s||o[17]!==n?(l=(0,t.jsxs)("span",{className:"inline-flex max-w-full items-center gap-2",children:[s,n]}),o[16]=s,o[17]=n,o[18]=l):l=o[18],l}function j(e){let r,a,n,l,o,d,m,u,h,f,x,y,j=(0,i.c)(34),{card:w,category:_,featured:N,actionLabel:k}=e,S=N?"aspect-[16/9] sm:aspect-[21/10]":"aspect-[4/3]",C=w.href;return j[0]!==S?(r=(0,g.cn)("relative w-full overflow-hidden",S),j[0]=S,j[1]=r):r=j[1],j[2]!==w||j[3]!==_||j[4]!==N?(a=(0,t.jsx)(b,{card:w,category:_,featured:N}),j[2]=w,j[3]=_,j[4]=N,j[5]=a):a=j[5],j[6]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-black/80 via-black/15 to-black/10"}),j[6]=n):n=j[6],j[7]!==w||j[8]!==_||j[9]!==N?(l=(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 z-[1] flex items-center justify-center px-3",children:(0,t.jsx)("div",{className:"max-w-full px-2 py-1",children:(0,t.jsx)(v,{card:w,category:_,variant:"overlay",featured:N})})}),j[7]=w,j[8]=_,j[9]=N,j[10]=l):l=j[10],j[11]!==r||j[12]!==a||j[13]!==l?(o=(0,t.jsxs)("div",{className:r,children:[a,n,l]}),j[11]=r,j[12]=a,j[13]=l,j[14]=o):o=j[14],j[15]!==w||j[16]!==_?(d=(0,t.jsx)("h3",{className:"text-foreground text-base leading-tight font-semibold",children:(0,t.jsx)(v,{card:w,category:_,variant:"title"})}),j[15]=w,j[16]=_,j[17]=d):d=j[17],j[18]!==w.description||j[19]!==N?(m=w.description?(0,t.jsx)("p",{className:(0,g.cn)("text-muted-foreground text-sm",N?"mt-2 line-clamp-3":"mt-2 line-clamp-2"),children:w.description}
1):(0,t.jsx)("p",{className:"text-muted-foreground/70 mt-2 text-sm",children:"Â "}),j[18]=w.description,j[19]=N,j[20]=m):m=j[20],j[21]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(s.ArrowRight,{className:"ml-1 h-4 w-4"}),j[21]=u):u=j[21],j[22]!==k?(h=(0,t.jsxs)("div",{className:"text-primary mt-4 inline-flex items-center text-sm font-medium",children:[k,u]}),j[22]=k,j[23]=h):h=j[23],j[24]!==h||j[25]!==d||j[26]!==m?(f=(0,t.jsxs)(p.CardContent,{className:"p-4 md:p-5",children:[d,m,h]}),j[24]=h,j[25]=d,j[26]=m,j[27]=f):f=j[27],j[28]!==f||j[29]!==o?(x=(0,t.jsxs)(p.Card,{className:"border-border/60 bg-card/95 hover:border-primary/45 hover:shadow-primary/10 group-focus-visible:ring-primary/40 h-full overflow-hidden py-0 shadow-sm transition-all duration-300 group-focus-visible:ring-2 hover:-translate-y-0.5 hover:shadow-xl",children:[o,f]}),j[28]=f,j[29]=o,j[30]=x):x=j[30],j[31]!==w.href||j[32]!==x?(y=(0,t.jsx)(c.Link,{href:C,className:"group block h-full focus-visible:outline-none",children:x}),j[31]=w.href,j[32]=x,j[33]=y):y=j[33],y}function w(e){let r,s=(0,i.c)(27),{category:a,cards:n,emptyLabel:l,actionLabel:o,sectionTitle:d}=e,c=y[a],m=c.icon;if(0===n.length){let e;return s[0]!==l?(e=(0,t.jsx)("div",{className:"border-border/70 bg-muted/20 rounded-2xl border border-dashed py-14 text-center",children:(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:l})}),s[0]=l,s[1]=e):e=s[1],e}if(s[2]!==m||s[3]!==o||s[4]!==n||s[5]!==a||s[6]!==c.accentClassName||s[7]!==d){let e,i,l,u,h,p,f,x=n.slice(0,2),y=n.slice(2);s[9]!==c.accentClassName?(e=(0,g.cn)("h-5 w-5",c.accentClassName),s[9]=c.accentClassName,s[10]=e):e=s[10],s[11]!==m||s[12]!==e?(i=(0,t.jsx)(m,{className:e}),s[11]=m,s[12]=e,s[13]=i):i=s[13],s[14]!==d?(l=(0,t.jsx)("h3",{className:"text-foreground text-lg font-semibold",children:d}),s[14]=d,s[15]=l):l=s[15],s[16]!==i||s[17]!==l?(u=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[i,l]}),s[16]=i,s[17]=l,s[18]=u):u=s[18];let b=x.length>1?"lg:grid-cols-2":"lg:grid-cols-1";s[19]!==b?(h=(0,g.cn)("grid gap-4",b),s[19]=b,s[20]=h):h=s[20],s[21]!==o||s[22]!==a?(p=e=>(0,t.jsx)(j,{card:e,category:a,featured:!0,actionLabel:o},`${a}-featured-${e.slug}`),s[21]=o,s[22]=a,s[23]=p):p=s[23];let v=x.map(p);s[24]!==h||s[25]!==v?(f=(0,t.jsx)("div",{className:h,children:v}),s[24]=h,s[25]=v,s[26]=f):f=s[26],r=(0,t.jsxs)("div",{className:"space-y-5 md:space-y-6",children:[u,f,y.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:y.map(e=>(0,t.jsx)(j,{card:e,category:a,featured:!1,actionLabel:o},`${a}-${e.slug}`))})]}),s[2]=m,s[3]=o,s[4]=n,s[5]=a,s[6]=c.accentClassName,s[7]=d,s[8]=r}else r=s[8];return r}function _(e){let s,a,l,o,m,u,p,b,v,j,_,N,k,S,C,T,A=(0,i.c)(40),{routeGallery:R,title:z,description:M,className:L}=e,I=(0,d.useTranslations)("models"),[E,F]=(0,r.useState)("video");A[0]!==E||A[1]!==R?(s=R[E]??[],A[0]=E,A[1]=R,A[2]=s):s=A[2];let O=s,P=R.image[0]?.href||R.video[0]?.href||R.tools[0]?.href||"/app/text-to-image",q=O[0]?.href||P;return A[3]!==L?(a=(0,g.cn)("py-12 md:py-20",L),A[3]=L,A[4]=a):a=A[4],A[5]!==M||A[6]!==z?(l=(z||M)&&(0,t.jsxs)("div",{className:"mx-auto mb-8 max-w-3xl text-center md:mb-10",children:[z&&(0,t.jsx)("h2",{className:"text-foreground text-2xl font-bold tracking-tight sm:text-3xl md:text-4xl",children:z}),M&&(0,t.jsx)("p",{className:"text-muted-foreground mt-3 text-base md:text-lg",children:M})]}),A[5]=M,A[6]=z,A[7]=l):l=A[7],A[8]===Symbol.for("react.memo_cache_sentinel")?(o=e=>F(e),A[8]=o):o=A[8],A[9]!==I?(m=x.map(e=>{let i=y[e],r=i.icon;return(0,t.jsxs)(f.TabsTrigger,{value:e,className:"h-10 flex-1 rounded-xl px-3 text-sm",children:[(0,t.jsx)(r,{className:"mr-1.5 h-4 w-4"}),I(i.tabLabelKey)]},e)}),A[9]=I,A[10]=m):m=A[10],A[11]!==m?(u=(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)(f.TabsList,{className:"border-border/70 bg-muted/35 h-auto w-fit max-w-full flex-wrap gap-2 rounded-2xl border p-2 md:flex-nowrap",children:m})}),A[11]=m,A[12]=u):u=A[12],A[13]!==R||A[14]!==I?(p=x.map(e=>{let i=y[e];return(0,t.jsx)(f.TabsContent,{value:e,className:"mt-0",children:(0,t.jsx)(w,{category:e,cards:R[e]??[],emptyLabel:I("no_models"),actionLabel:I("actions.try_now"),sectionTitle:I(i.sectionLabelKey)})},e)}),A[13]=R,A[14]=I,A[15]=p):p=A[15],A[16]!==E||A[17]!==u||A[18]!==p?(b=(0,t.jsxs)(f.Tabs,{value:E,onValueChange:o,className:"space-y-6 md:space-y-8",children:[u,p]}),A[16]=E,A[17]=u,A[18]=p,A[19]=b):b=A[19],A[20]!==I?(v=I("cta_hint"),A[20]=I,A[21]=v):v=A[21],A[22]!==v?(j=(0,t.jsx)("p",{className:"text-muted-foreground mb-3 text-xs md:text-sm",children:v}),A[22]=v,A[23]=j):j=A[23],A[24]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(n.Sparkles,{className:"mr-2 h-4 w-4"}),A[24]=_):_=A[24],A[25]!==I?(N=I("start_generating"),A[25]=I,A[26]=N):N=A[26],A[27]!==q||A[28]!==N?(k=(0,t.jsx)(h.Button,{asChild:!0,size:"lg",className:"shadow-primary/20 dark:shadow-primary/10 shadow-lg",children:(0,t.jsxs)(c.Link,{href:q,children:[_,N]})}),A[27]=q,A[28]=N,A[29]=k):k=A[29],A[30]!==j||A[31]!==k?(S=(0,t.jsxs)("div",{className:"mt-10 text-center md:mt-12",children:[j,k]}),A[30]=j,A[31]=k,A[32]=S):S=A[32],A[33]!==S||A[34]!==l||A[35]!==b?(C=(0,t.jsxs)("div",{className:"container px-4 sm:px-6",children:[l,b,S]}),A[33]=S,A[34]=l,A[35]=b,A[36]=C):C=A[36],A[37]!==C||A[38]!==a?(T=(0,t.jsx)("section",{className:a,children:C}),A[37]=C,A[38]=a,A[39]=T):T=A[39],T}e.s(["ModelGallery",()=>_],915948)},945061,e=>{"use strict";let t=(0,e.i(889522).default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);e.s(["default",()=>t])},773927,e=>{"use strict";let t=(0,e.i(889522).default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);e.s(["default",()=>t])},409470,e=>{"use strict";let t=(0,e.i(889522).default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);e.s(["default",()=>t])},536539,e=>{"use strict";let t=(0,e.i(889522).default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}
1],["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"}]]);e.s(["default",()=>t])},699998,e=>{"use strict";let t=(0,e.i(889522).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",()=>t])},897614,e=>{"use strict";var t=e.i(604720),i=e.i(917268),r=e.i(176506),s=e.i(462297),a=e.i(550573),n=e.i(193151),l=e.i(779342),o=e.i(199978);e.i(741820);var d=e.i(561444),c=e.i(24963),m=e.i(331597),u=e.i(23122),h=e.i(273792),p=e.i(638678),f=e.i(330771),g=e.i(622491),x=e.i(511398),y=e.i(960568);let b=[".svg",".png",".jpg",".jpeg",".webp",".gif"];function v(e){let v,S,C,T,A,R,z,M,L,I,E,F,O,P,q,G,B,U,K,V,$,D,H,W,Y,X,J,Q,Z,ee,et,ei,er,es,ea,en,el,eo,ed,ec,em,eu,eh,ep,ef,eg,ex,ey,eb,ev,ej,ew,e_,eN,ek,eS,eC,eT,eA,eR,ez,eM,eL,eI,eE=(0,i.c)(220),{mediaType:eF,modelSlug:eO,modelOptionsByTab:eP,modelOptions:eq}=e,eG=(0,n.useTranslations)("ai.image.generator"),eB=(0,n.useTranslations)("ai.video.generator"),eU=(0,o.useRouter)(),{user:eK,isCheckSign:eV,setIsShowSignModal:e$}=(0,y.useAppContext)(),eD=(0,r.useId)();e:{let e,t,i;if(eq){let e,t,i;eE[0]!==eq.text?(e=eq.text??[],eE[0]=eq.text,eE[1]=e):e=eE[1],eE[2]!==eq.image?(t=eq.image??[],eE[2]=eq.image,eE[3]=t):t=eE[3],eE[4]!==e||eE[5]!==t?(i={text:e,image:t},eE[4]=e,eE[5]=t,eE[6]=i):i=eE[6],v=i;break e}eE[7]!==eP?.text?(e=eP?.text?.map(k)??[],eE[7]=eP?.text,eE[8]=e):e=eE[8],eE[9]!==eP?.image?(t=eP?.image?.map(k)??[],eE[9]=eP?.image,eE[10]=t):t=eE[10],eE[11]!==e||eE[12]!==t?(i={text:e,image:t},eE[11]=e,eE[12]=t,eE[13]=i):i=eE[13],v=i}let eH=v,eW=N;t:{if(eO){if(eH.text.some(e=>eW(e,eO))){S="text";break t}if(eH.image.some(e=>eW(e,eO))){S="image";break t}}if(eH.text.length>0){S="text";break t}if(eH.image.length>0){S="image";break t}S="text"}let eY=S;eE[14]!==eO||eE[15]!==eH?(C=e=>{let t=eH[e];if(!t.length)return"";if(eO){let e=t.find(e=>eW(e,eO));if(e)return e.slug}return t[0].slug},eE[14]=eO,eE[15]=eH,eE[16]=C):C=eE[16];let eX=C,[eJ,eQ]=(0,r.useState)(eY);eE[17]!==eX||eE[18]!==eY?(T=()=>eX(eY),eE[17]=eX,eE[18]=eY,eE[19]=T):T=eE[19];let[eZ,e1]=(0,r.useState)(T),[e0,e2]=(0,r.useState)("");eE[20]===Symbol.for("react.memo_cache_sentinel")?(A=[],eE[20]=A):A=eE[20];let[e5,e3]=(0,r.useState)(A),[e6,e4]=(0,r.useState)(!1),e9="video"===eF,e7=e9?eB:eG;eE[21]!==e7?(R=e7("form.prompt"),eE[21]=e7,eE[22]=R):R=eE[22];let e8=R;eE[23]!==e7?(z=e7("form.prompt_placeholder"),eE[23]=e7,eE[24]=z):z=eE[24];let te=z;eE[25]!==e7?(M=e7.has("form.prompt_description")?e7("form.prompt_description"):"",eE[25]=e7,eE[26]=M):M=eE[26];let tt=M;eE[27]!==e7?(L=e7("form.reference_image"),eE[27]=e7,eE[28]=L):L=eE[28];let ti=L;eE[29]!==e7?(I=e7("form.reference_image_placeholder"),eE[29]=e7,eE[30]=I):I=eE[30];let tr=I;eE[31]!==e7?(E=e7("form.reference_image_format_hint",{maxSize:5,count:"1"}),eE[31]=e7,eE[32]=E):E=eE[32];let ts=E;eE[33]!==e7?(F=e7("generate"),eE[33]=e7,eE[34]=F):F=eE[34];let ta=F;eE[35]!==e7?(O=e7.has("hero_teaser")?e7("hero_teaser"):"",eE[35]=e7,eE[36]=O):O=eE[36];let tn=O;eE[37]!==e7?(P=e=>e?e7.has(e)?e7(e):e.startsWith("models.")?"":e:"",eE[37]=e7,eE[38]=P):P=eE[38];let tl=P;eE[39]===Symbol.for("react.memo_cache_sentinel")?(q=e=>e?.icon?function(e){let t=e.toLowerCase();return!!(t.startsWith("data:image")||t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/"))||b.some(e=>t.endsWith(e))}(e.icon)?(0,t.jsx)("span",{className:"flex h-7 w-7 items-center justify-center rounded-full border border-border/60 bg-muted/30",children:(0,t.jsx)(c.LazyImage,{src:e.icon,alt:`${e.label} icon`,width:16,height:16,className:"block h-4 w-4 object-contain",wrapperClassName:"flex h-4 w-4 items-center justify-center"})}):(0,t.jsx)("span",{className:"flex h-7 w-7 items-center justify-center rounded-full border border-border/60 bg-muted/30",children:(0,t.jsx)(m.SmartIcon,{name:e.icon,size:16,className:"text-primary"})}):(0,t.jsx)("span",{className:"flex h-7 w-7 items-center justify-center rounded-full border border-border/60 bg-muted/30","aria-hidden":"true"}),eE[39]=q):q=eE[39];let to=q;i:{let e,t,i,r,s,a,n;if(e9){let e,t,i,r,s,a,n;
1eE[40]!==eB?(e=eB("tabs.text-to-video"),eE[40]=eB,eE[41]=e):e=eE[41],eE[42]!==eB?(t=eB("tabs.text-to-video"),eE[42]=eB,eE[43]=t):t=eE[43],eE[44]!==e||eE[45]!==t?(i={label:e,title:t,appPath:"/app/text-to-video"},eE[44]=e,eE[45]=t,eE[46]=i):i=eE[46],eE[47]!==eB?(r=eB("tabs.image-to-video"),eE[47]=eB,eE[48]=r):r=eE[48],eE[49]!==eB?(s=eB("tabs.image-to-video"),eE[49]=eB,eE[50]=s):s=eE[50],eE[51]!==r||eE[52]!==s?(a={label:r,title:s,appPath:"/app/image-to-video"},eE[51]=r,eE[52]=s,eE[53]=a):a=eE[53],eE[54]!==i||eE[55]!==a?(n={text:i,image:a},eE[54]=i,eE[55]=a,eE[56]=n):n=eE[56],G=n;break i}eE[57]!==eG?(e=eG("tabs.text-to-image"),eE[57]=eG,eE[58]=e):e=eE[58],eE[59]!==eG?(t=eG("tabs.text-to-image"),eE[59]=eG,eE[60]=t):t=eE[60],eE[61]!==e||eE[62]!==t?(i={label:e,title:t,appPath:"/app/text-to-image"},eE[61]=e,eE[62]=t,eE[63]=i):i=eE[63],eE[64]!==eG?(r=eG("tabs.image-to-image"),eE[64]=eG,eE[65]=r):r=eE[65],eE[66]!==eG?(s=eG("tabs.image-to-image"),eE[66]=eG,eE[67]=s):s=eE[67],eE[68]!==r||eE[69]!==s?(a={label:r,title:s,appPath:"/app/image-to-image"},eE[68]=r,eE[69]=s,eE[70]=a):a=eE[70],eE[71]!==i||eE[72]!==a?(n={text:i,image:a},eE[71]=i,eE[72]=a,eE[73]=n):n=eE[73],G=n}let td=G;eE[74]===Symbol.for("react.memo_cache_sentinel")?(B=["text","image"],eE[74]=B):B=eE[74];let tc=B,tm=eH[eJ];r:{let e;if(!tm.length){U=void 0;break r}if(!eZ){U=tm[0];break r}eE[75]!==tm||eE[76]!==eZ?(e=tm.find(e=>eW(e,eZ))??tm[0],eE[75]=tm,eE[76]=eZ,eE[77]=e):e=eE[77],U=e}let tu=U;eE[78]!==e5?(K=e5.filter(_).map(w),eE[78]=e5,eE[79]=K):K=eE[79];let th=K;eE[80]!==e5?(V=e5.some(j),eE[80]=e5,eE[81]=V):V=eE[81];let tp=V;eE[82]!==e0?($=e0.trim(),eE[82]=e0,eE[83]=$):$=eE[83];let tf=$.length;eE[84]!==eJ||eE[85]!==tm||eE[86]!==eX||eE[87]!==eH||eE[88]!==eZ?(D=()=>{if(0===tm.length){let e="text"===eJ?"image":"text";eH[e].length>0&&eQ(e);return}eZ&&tm.some(e=>eW(e,eZ))||e1(eX(eJ))},H=[eJ,tm,eX,eW,eH,eZ],eE[84]=eJ,eE[85]=tm,eE[86]=eX,eE[87]=eH,eE[88]=eZ,eE[89]=D,eE[90]=H):(D=eE[89],H=eE[90]),(0,r.useEffect)(D,H),eE[91]!==eJ||eE[92]!==eO||eE[93]!==e0||eE[94]!==eZ||eE[95]!==th?(W=e=>{let t=new URLSearchParams;if((eZ||eO)&&t.set("model",eZ||eO||""),"text"===eJ){let e=e0.trim();e&&t.set("prompt",e)}else"image"===eJ&&th.forEach(e=>t.append("image",e));let i=t.toString();return i?`${e}?${i}`:e},eE[91]=eJ,eE[92]=eO,eE[93]=e0,eE[94]=eZ,eE[95]=th,eE[96]=W):W=eE[96];let tg=W;eE[97]!==eJ||eE[98]!==tg||eE[99]!==eV||eE[100]!==e6||eE[101]!==eU||eE[102]!==e$||eE[103]!==e7||eE[104]!==td||eE[105]!==eK?(Y=()=>{if(e6)return;if(e4(!0),eV){(0,l.toast)(e7("checking_account")),e4(!1);return}if(!eK){e$(!0),e4(!1);return}let e=td[eJ].appPath;eU.push(tg(e))},eE[97]=eJ,eE[98]=tg,eE[99]=eV,eE[100]=e6,eE[101]=eU,eE[102]=e$,eE[103]=e7,eE[104]=td,eE[105]=eK,eE[106]=Y):Y=eE[106];let tx=Y;eE[107]!==tm||eE[108]!==tl||eE[109]!==tu||eE[110]!==eZ||eE[111]!==e7?(X=()=>(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,t.jsx)("span",{children:e7("form.model")}),(0,t.jsxs)(p.Select,{value:eZ||void 0,onValueChange:e1,disabled:0===tm.length,children:[(0,t.jsx)(p.SelectTrigger,{size:"sm",className:"min-w-[220px] border-border/60 bg-muted/50 px-3 py-5 text-left text-xs font-semibold text-foreground shadow-none","aria-label":e7("form.select_model"),children:tu?(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[to(tu),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5 leading-tight",children:(0,t.jsx)("span",{className:"text-sm font-semibold text-foreground",children:tu.label})})]}):(0,t.jsx)(p.SelectValue,{placeholder:e7("form.select_model")})}),(0,t.jsx)(p.SelectContent,{className:"max-w-[min(90vw,420px)]",children:tm.map(e=>{let i=tl(e.description);return(0,t.jsx)(p.SelectItem,{value:e.slug,children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[to(e),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-foreground",children:e.label}),i&&(0,t.jsx)("span",{className:"text-xs font-normal text-muted-foreground leading-snug whitespace-normal break-words",children:i})]})]})},e.slug)})})]})]}),eE[107]=tm,eE[108]=tl,eE[109]=tu,eE[110]=eZ,eE[111]=e7,eE[112]=X):X=eE[112];let ty=X;eE[113]===Symbol.for("react.memo_cache_sentinel")?(J=(0,t.jsx)("div",{className:"absolute -inset-2 rounded-[32px] bg-gradient-to-br from-primary/25 via-primary/10 to-transparent opacity-70 blur-2xl"}),eE[113]=J):J=eE[113],eE[114]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_top,_var(--tw-gradient-stops))] from-primary/10 via-trans
1parent to-transparent"}),eE[114]=Q):Q=eE[114],eE[115]===Symbol.for("react.memo_cache_sentinel")?(Z=e=>eQ(e),eE[115]=Z):Z=eE[115],eE[116]!==td?(ee=(0,t.jsx)("div",{className:"border-b border-border/60 px-6 pt-6",children:(0,t.jsx)(f.TabsList,{className:"h-auto gap-6 border-0 bg-transparent p-0",children:tc.map(e=>(0,t.jsx)(f.TabsTrigger,{value:e,className:"rounded-none border-b-2 border-transparent px-2 pb-3 pt-3 text-sm font-semibold text-muted-foreground transition-colors data-[state=active]:border-primary data-[state=active]:bg-primary/10 data-[state=active]:text-primary data-[state=active]:px-3 data-[state=active]:rounded-md data-[state=active]:shadow-none",children:td[e].label},e))})}),eE[116]=td,eE[117]=ee):ee=eE[117],eE[118]!==td.text.title?(et=(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"text-2xl font-semibold text-foreground",children:td.text.title})}),eE[118]=td.text.title,eE[119]=et):et=eE[119],eE[120]!==ty||eE[121]!==tm.length?(ei=tm.length>0&&(0,t.jsx)(ty,{}),eE[120]=ty,eE[121]=tm.length,eE[122]=ei):ei=eE[122],eE[123]!==et||eE[124]!==ei?(er=(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[et,ei]}),eE[123]=et,eE[124]=ei,eE[125]=er):er=eE[125],eE[126]!==eD||eE[127]!==e8?(es=(0,t.jsx)(h.Label,{htmlFor:eD,children:e8}),eE[126]=eD,eE[127]=e8,eE[128]=es):es=eE[128],eE[129]===Symbol.for("react.memo_cache_sentinel")?(ea=e=>e2(e.target.value),eE[129]=ea):ea=eE[129],eE[130]!==e0||eE[131]!==eD||eE[132]!==te?(en=(0,t.jsx)(g.Textarea,{id:eD,value:e0,onChange:ea,placeholder:te,maxLength:u.MAX_PROMPT_LENGTH,className:"min-h-[160px] resize-none border-border/60 bg-muted/40 px-4 py-3 text-base leading-relaxed shadow-inner shadow-black/5 focus-visible:ring-primary/40"}),eE[130]=e0,eE[131]=eD,eE[132]=te,eE[133]=en):en=eE[133],eE[134]!==tf?(el=(0,t.jsxs)("span",{className:"absolute bottom-3 right-3 text-xs text-muted-foreground",children:[tf," / ",u.MAX_PROMPT_LENGTH]}),eE[134]=tf,eE[135]=el):el=eE[135],eE[136]!==en||eE[137]!==el?(eo=(0,t.jsxs)("div",{className:"relative",children:[en,el]}),eE[136]=en,eE[137]=el,eE[138]=eo):eo=eE[138],eE[139]!==tt?(ed=(0,t.jsx)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:(0,t.jsx)("span",{children:tt})}),eE[139]=tt,eE[140]=ed):ed=eE[140],eE[141]!==es||eE[142]!==eo||eE[143]!==ed?(ec=(0,t.jsxs)("div",{className:"mt-6 space-y-3",children:[es,eo,ed]}),eE[141]=es,eE[142]=eo,eE[143]=ed,eE[144]=ec):ec=eE[144];let tb=tp||e6;eE[145]!==e6?(em=e6?(0,t.jsx)(s.Loader2,{className:"h-4 w-4 animate-spin"}):(0,t.jsx)(a.Sparkles,{className:"h-4 w-4"}),eE[145]=e6,eE[146]=em):em=eE[146],eE[147]!==ta||eE[148]!==e6||eE[149]!==e7?(eu=e6?e7("loading"):ta,eE[147]=ta,eE[148]=e6,eE[149]=e7,eE[150]=eu):eu=eE[150],eE[151]!==tx||eE[152]!==tb||eE[153]!==em||eE[154]!==eu?(eh=(0,t.jsxs)(x.Button,{type:"button",size:"lg",onClick:tx,disabled:tb,className:"min-w-[200px] shadow-lg shadow-primary/20",children:[em,eu]}),eE[151]=tx,eE[152]=tb,eE[153]=em,eE[154]=eu,eE[155]=eh):eh=eE[155],eE[156]!==tn?(ep=tn&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:tn}),eE[156]=tn,eE[157]=ep):ep=eE[157],eE[158]!==eh||eE[159]!==ep?(ef=(0,t.jsxs)("div",{className:"mt-6 flex flex-col items-center gap-2",children:[eh,ep]}),eE[158]=eh,eE[159]=ep,eE[160]=ef):ef=eE[160],eE[161]!==er||eE[162]!==ec||eE[163]!==ef?(eg=(0,t.jsxs)(f.TabsContent,{value:"text",className:"mt-0 px-6 pb-6 pt-5",children:[er,e
1c,ef]}),eE[161]=er,eE[162]=ec,eE[163]=ef,eE[164]=eg):eg=eE[164],eE[165]!==td.image.title?(ex=(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"text-2xl font-semibold text-foreground",children:td.image.title})}),eE[165]=td.image.title,eE[166]=ex):ex=eE[166],eE[167]!==ty||eE[168]!==tm.length?(ey=tm.length>0&&(0,t.jsx)(ty,{}),eE[167]=ty,eE[168]=tm.length,eE[169]=ey):ey=eE[169],eE[170]!==ex||eE[171]!==ey?(eb=(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[ex,ey]}),eE[170]=ex,eE[171]=ey,eE[172]=eb):eb=eE[172],eE[173]!==ti?(ev=(0,t.jsx)(h.Label,{children:ti}),eE[173]=ti,eE[174]=ev):ev=eE[174],eE[175]!==e7?(ej=e7("form.reference_image_drop_hint"),eE[175]=e7,eE[176]=ej):ej=eE[176],eE[177]!==e7?(ew=e7("form.reference_image_preview_title"),eE[177]=e7,eE[178]=ew):ew=eE[178],eE[179]!==e7?(e_=e7("form.reference_image_preview_aria"),eE[179]=e7,eE[180]=e_):e_=eE[180],eE[181]!==ts||eE[182]!==ej||eE[183]!==ew||eE[184]!==e_?(eN={dropHint:ej,formatHint:ts,previewTitle:ew,previewAria:e_},eE[181]=ts,eE[182]=ej,eE[183]=ew,eE[184]=e_,eE[185]=eN):eN=eE[185],eE[186]!==tr||eE[187]!==eN?(ek=(0,t.jsx)(d.ImageUploader,{variant:"reference",allowMultiple:!1,maxImages:1,maxSizeMB:5,onChange:e3,emptyHint:tr,translations:eN,className:"rounded-2xl"}),eE[186]=tr,eE[187]=eN,eE[188]=ek):ek=eE[188],eE[189]!==ts?(eS=(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:ts}),eE[189]=ts,eE[190]=eS):eS=eE[190],eE[191]!==ev||eE[192]!==ek||eE[193]!==eS?(eC=(0,t.jsxs)("div",{className:"mt-6 space-y-3",children:[ev,ek,eS]}),eE[191]=ev,eE[192]=ek,eE[193]=eS,eE[194]=eC):eC=eE[194];let tv=tp||e6;return eE[195]!==e6?(eT=e6?(0,t.jsx)(s.Loader2,{className:"h-4 w-4 animate-spin"}):(0,t.jsx)(a.Sparkles,{className:"h-4 w-4"}),eE[195]=e6,eE[196]=eT):eT=eE[196],eE[197]!==ta||eE[198]!==e6||eE[199]!==e7?(eA=e6?e7("loading"):ta,eE[197]=ta,eE[198]=e6,eE[199]=e7,eE[200]=eA):eA=eE[200],eE[201]!==tx||eE[202]!==tv||eE[203]!==eT||eE[204]!==eA?(eR=(0,t.jsxs)(x.Button,{type:"button",size:"lg",onClick:tx,disabled:tv,className:"min-w-[200px] shadow-lg shadow-primary/20",children:[eT,eA]}),eE[201]=tx,eE[202]=tv,eE[203]=eT,eE[204]=eA,eE[205]=eR):eR=eE[205],eE[206]!==tn?(ez=tn&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:tn}),eE[206]=tn,eE[207]=ez):ez=eE[207],eE[208]!==eR||eE[209]!==ez?(eM=(0,t.jsxs)("div",{className:"mt-6 flex flex-col items-center gap-2",children:[eR,ez]}),eE[208]=eR,eE[209]=ez,eE[210]=eM):eM=eE[210],eE[211]!==eb||eE[212]!==eC||eE[213]!==eM?(eL=(0,t.jsxs)(f.TabsContent,{value:"image",className:"mt-0 px-6 pb-6 pt-5",children:[eb,eC,eM]}),eE[211]=eb,eE[212]=eC,eE[213]=eM,eE[214]=eL):eL=eE[214],eE[215]!==eJ||eE[216]!==ee||eE[217]!==eg||eE[218]!==eL?(eI=(0,t.jsxs)("div",{className:"relative mx-auto mt-10 mb-20 w-full max-w-4xl text-left",children:[J,(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-[28px] border border-border/60 bg-card/80 shadow-[0_30px_80px_-45px_rgba(15,23,42,0.65)] backdrop-blur",children:[Q,(0,t.jsxs)(f.Tabs,{value:eJ,onValueChange:Z,className:"relative",children:[ee,eg,eL]})]})]}),eE[215]=eJ,eE[216]=ee,eE[217]=eg,eE[218]=eL,eE[219]=eI):eI=eE[219],eI}function j(e){return"uploading"===e.status}function w(e){return e.url}function _(e){return"uploaded"===e.status&&e.url}function N(e,t){return!!(t&&(e.slug===t||e.id===t))}function k(e){return{id:e.id,label:e.label,slug:e.id.replace(/[^a-zA-Z0-9-]/g,"-").toLowerCase(),description:e.description,icon:e.icon??e.logo}}e.s(["HeroQuickGenerator",()=>v,"default",0,v])},293680,e=>{"use strict";var t=e.i(604720),i=e.i(917268),r=e.i(176506),s=e.i(945061),s=s,a=e.i(773927),a=a,n=e.i(409470),n=n,l=e.i(536539),l=l,o=e.i(465230),d=e.i(699998),d=d,c=e.i(526683);let m={Lightbulb:s.default,Layers:a.default,Palette:n.default,SlidersHorizontal:l.default,Video:o.Video,ShieldCheck:d.default},u=e=>{let s,a,n,l,o=(0,i.c)(7),{className:d,children:m}=e,u=(0,r.useRef)(null);return o[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{let e=u.current;if(!e)return;let t=t=>{let i=e.getBoundingClientRect(),r=t.clientX-i.left,s=t.clientY-i.top;e.style.setProperty("--mouse-x",`${r}px`),e.style.setProperty("--mouse-y",`${s}px`)};return e.addEventListener("mousemove",t),()=>{e.removeEventListener("mousemove",t)}},a=[],o[0]=s,o[1]=a):(s=o[0],a=o[1]),(0,r.useEffect)(s,a),o[2]!==d?(n=(0,c.cn)("bento-item",d),o[2]=d,o[3]=n):n=o[3],o[4]!==m||o[5]!==n?(l=(0,t.jsx)("div",{ref:u,className:n,children:m}),o[4]=m,o[5]=n,o[6]=l):l=o[6],l};function h(e){let r,a,n,l,o,d,h,p,f,g=(0,i.c)(31),{id:x,content:y,className:b}
1=e,{title:v,subtitle:j,items:w}=y;if(g[0]!==b||g[1]!==x||g[2]!==w||g[3]!==j||g[4]!==v){let e,i,h=["md:col-span-2 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-1","md:col-span-1 md:row-span-2","md:col-span-2 md:row-span-1","md:col-span-1 md:row-span-1"];o=x,g[11]!==b?(d=(0,c.cn)("py-16 md:py-24",b),g[11]=b,g[12]=d):d=g[12],n="container",g[13]!==v?(e=(0,t.jsx)("h2",{className:"text-foreground text-3xl font-semibold leading-tight md:text-4xl mb-4",children:v}),g[13]=v,g[14]=e):e=g[14],g[15]!==j?(i=(0,t.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed",children:j}),g[15]=j,g[16]=i):i=g[16],g[17]!==e||g[18]!==i?(l=(0,t.jsxs)("div",{className:"mx-auto max-w-3xl text-center mb-12",children:[e,i]}),g[17]=e,g[18]=i,g[19]=l):l=g[19],r="bento-grid",a=w.map((e,i)=>{let r=m[e.icon]||s.default,a=h[i]||"";return(0,t.jsx)(u,{className:(0,c.cn)(a,e.className),children:(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:"flex-shrink-0 p-2 rounded-lg bg-primary/10",children:(0,t.jsx)(r,{className:"h-5 w-5 text-primary"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-foreground mb-2",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.description})]})]})},i)}),g[0]=b,g[1]=x,g[2]=w,g[3]=j,g[4]=v,g[5]=r,g[6]=a,g[7]=n,g[8]=l,g[9]=o,g[10]=d}else r=g[5],a=g[6],n=g[7],l=g[8],o=g[9],d=g[10];return g[20]!==r||g[21]!==a?(h=(0,t.jsx)("div",{className:r,children:a}),g[20]=r,g[21]=a,g[22]=h):h=g[22],g[23]!==n||g[24]!==l||g[25]!==h?(p=(0,t.jsxs)("div",{className:n,children:[l,h]}),g[23]=n,g[24]=l,g[25]=h,g[26]=p):p=g[26],g[27]!==o||g[28]!==d||g[29]!==p?(f=(0,t.jsx)("section",{id:o,className:d,children:p}),g[27]=o,g[28]=d,g[29]=p,g[30]=f):f=g[30],f}e.s(["WhyChooseUsBento",()=>h],293680)},827933,(e,t,i)=>{},238552,(e,t,i)=>{var r=e.i(631344);e.r(827933);var s=e.r(176506),a=s&&"object"==typeof s&&"default"in s?s:{default:s},n=void 0!==r.default&&r.default.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,i=t.name,r=void 0===i?"stylesheet":i,s=t.optimizeForSpeed,a=void 0===s?n:s;d(l(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",d("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,i=e.prototype;return i.setOptimizeForSpeed=function(e){d("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),d(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},i.isOptimizeForSpeed=function(){return this._optimizeForSpeed},i.inject=function(){var e=this;if(d(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(n||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,i){return"number"==typeof i?e._serverSheet.cssRules[i]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),i},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},i.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},i.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},i.insertRule=function(e,t){if(d(l(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;
1if(this._optimizeForSpeed){var i=this.getSheet();"number"!=typeof t&&(t=i.cssRules.length);try{i.insertRule(e,t)}catch(t){return n||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},i.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var i="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!i.cssRules[e])return e;i.deleteRule(e);try{i.insertRule(t,e)}catch(r){n||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),i.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];d(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},i.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];d(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},i.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},i.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,i){return i?t=t.concat(Array.prototype.map.call(e.getSheetForTag(i).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},i.makeStyleTag=function(e,t,i){t&&d(l(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var s=document.head||document.getElementsByTagName("head")[0];return i?s.insertBefore(r,i):s.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function d(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,i=e.length;i;)t=33*t^e.charCodeAt(--i);return t>>>0},m={};function u(e,t){if(!t)return"jsx-"+e;var i=String(t),r=e+i;return m[r]||(m[r]="jsx-"+c(e+"-"+i)),m[r]}function h(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var i=e+t;return m[i]||(m[i]=t.replace(/__jsx-style-dynamic-selector/g,e)),m[i]}var p=function(){function e(e){var t=void 0===e?{}:e,i=t.styleSheet,r=void 0===i?null:i,s=t.optimizeForSpeed,a=void 0!==s&&s;this._sheet=r||new o({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),r&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var i=this.getIdAndRules(e),r=i.styleId,s=i.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var a=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=a,this._instancesCounts[r]=1},t.remove=function(e){var t=this,i=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(i in this._instancesCounts,"styleId: `"+i+"` not found"),this._instancesCounts[i]-=1,this._instancesCounts[i]<1){var r=this._fromServer&&this._fromServer[i];r?(r.parentNode.removeChild(r),delete this._fromServer[i]):(this._indices[i].forEac
1h(function(e){return t._sheet.deleteRule(e)}),delete this._indices[i]),delete this._instancesCounts[i]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],i=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return i[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,i;return t=this.cssRules(),void 0===(i=e)&&(i={}),t.map(function(e){var t=e[0],r=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:i.nonce?i.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,i=e.dynamic,r=e.id;if(i){var s=u(r,i);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return h(s,e)}):[h(s,t)]}}return{styleId:u(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=s.createContext(null);function g(){return new p}function x(){return s.useContext(f)}f.displayName="StyleSheetContext";var y=a.default.useInsertionEffect||a.default.useLayoutEffect,b="undefined"!=typeof window?g():void 0;function v(e){var t=b||x();return t&&("undefined"==typeof window?t.add(e):y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return u(e[0],e[1])}).join(" ")},i.StyleRegistry=function(e){var t=e.registry,i=e.children,r=s.useContext(f),n=s.useState(function(){return r||t||g()})[0];return a.default.createElement(f.Provider,{value:n},i)},i.createStyleRegistry=g,i.style=v,i.useStyleRegistry=x},717555,(e,t,i)=>{t.exports=e.r(238552).style},606932,e=>{"use strict";var t=e.i(604720),i=e.i(717555),r=e.i(917268),s=e.i(199978),a=e.i(511398),n=e.i(331597);let l=[{name:"Google",icon:"https://cdn.seedance2pro.org/model-icon/google.svg"},{name:"OpenAI",icon:"https://cdn.seedance2pro.org/model-icon/openai.svg"},{name:"Grok",icon:"https://cdn.seedance2pro.org/model-icon/grok.svg"},{name:"Alibaba",icon:"https://cdn.seedance2pro.org/model-icon/qwen.svg"},{name:"ByteDance",icon:"https://cdn.seedance2pro.org/model-icon/bytedance.svg"},{name:"Black Forest",icon:"https://cdn.seedance2pro.org/model-icon/flux.svg"},{name:"Kling",icon:"https://cdn.seedance2pro.org/model-icon/kling.svg"},{name:"Veo",icon:"https://cdn.seedance2pro.org/model-icon/google.svg"},{name:"Flux",icon:"https://cdn.seedance2pro.org/model-icon/flux.svg"},{name:"Qwen",icon:"https://cdn.seedance2pro.org/model-icon/qwen.svg"},{name:"Seedream",icon:"https://cdn.seedance2pro.org/model-icon/bytedance.svg"},{name:"ByteDance",icon:"https://cdn.seedance2pro.org/model-icon/bytedance.svg"},{name:"ByteDance",icon:"https://cdn.seedance2pro.org/model-icon/bytedance.svg"},{name:"Google",icon:"https://cdn.seedance2pro.org/model-icon/google.svg"},{name:"Google",icon:"https://cdn.seedance2pro.org/model-icon/google.svg"},{name:"Google",icon:"https://cdn.seedance2pro.org/model-icon/google.svg"}];function o(e){let o,d,c,m,u,h,p,f,g=(0,r.c)(18),{cta:x,className:y}=e,b=Math.ceil(l.length/3),v=x?.id,j=`relative mx-auto my-16 md:my-32 flex flex-col lg:flex-row items-center justify-between min-h-[24rem] lg:h-[30rem] border border-border bg-background overflow-hidden rounded-3xl max-w-6xl ${y??""}`,w=x?.title??"Build with AI";g[0]!==w?(o=(0,t.jsx)("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold mb-4 text-foreground",children:w}),g[0]=w,g[1]=o):o=g[1];let _=x?.description??"Generate cinematic videos with Seedance 2.0 and additional AI models.";return g[2]!==_?(d=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 max-w-lg mx-auto lg:mx-0",children:_}),g[2]=_,g[3]=d):d=g[3],g[4]!==x?.buttons?(c=x?.buttons?.map((e,i)=>(0,t.jsx)(a.Button,{asChild:!0,size:e.size||"default",variant:e.variant||"default",onClick:()=>(function(e){if(e.startsWith("#")){let t=document.getElementById(e.replace("#",""));t&&t.scrollIntoView({behavior:"smooth",block:"start"})}})(e.url||""),children:(0,t.jsxs)(s.Link,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,t.jsx)(n.SmartIcon,{name:e.icon}),(0,t.jsx)("span",{children:e.title})]})},i)),g[4]=x?.buttons,g[5]=c):c=g[5],g[6]!==c?(m=(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-3",children:c}),g[6]=c,g[7]=m):m=g[7],g[8]!==o||g[9]!==d||g[10]!==m?(u=(0,t.jsxs)("div",{className:"w-full lg:w-1/2 z-10 p-8 lg:pl-10 text-center lg:text-left",children:[o,d,m]}),g[8]=o,g[9]=d,g[10]=m,g[11]=u):u=g[11],g[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)("div",{className:"relative w-full lg:w-1/2 h-[20rem] lg:h-full flex items-center justify-center lg:justify-start overflow-hidden",children:(0,t.jsxs)("div",{className:"relative w-[40rem] lg:w-[50rem] h-[40rem] lg:h-[50rem] lg:translate-x-[50%] flex items-center justify-center",children:[(0,t.jsx)("div",{className:"w-20 h-20 lg:w-24 lg:h-24 rounded-full bg-muted shadow-lg flex items-center justify-center z-10",children:(0,t.jsx)("img",{src:"https://cdn.seedance2pro.org/logo.png",alt:"Seedance 2.0 AI Video Generator",className:"w-12 h-12 lg:w-14 lg:h-14 object-contain"})}),[void 0,void 0,void 0].map((e,i)=>{let r=`${10+8*(i+1)}rem`,s=2*Math.PI/b;return(0,t.jsx)("div",{className:"absolute rounded-full border-2 border-dotted border-muted-foreground
1/30",style:{width:r,height:r,animation:`spin ${12+6*i}s linear infinite`},children:l.slice(i*b,i*b+b).map((e,r)=>{let a=r*s,n=50+50*Math.cos(a),l=50+50*Math.sin(a);return(0,t.jsx)("div",{className:"absolute bg-background rounded-full p-1.5 shadow-md border border-border",style:{left:`${n}%`,top:`${l}%`,transform:"translate(-50%, -50%)",animation:`counter-spin ${12+6*i}s linear infinite`},children:(0,t.jsx)("img",{src:e.icon,alt:`${e.name} icon`,className:"w-7 h-7 lg:w-8 lg:h-8 object-contain"})},r)})},i)})]})}),p=(0,t.jsx)(i.default,{id:"be4cbd065e89175c",children:"@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes counter-spin{0%{transform:translate(-50%,-50%)rotate(0)}to{transform:translate(-50%,-50%)rotate(-360deg)}}"}),g[12]=h,g[13]=p):(h=g[12],p=g[13]),g[14]!==v||g[15]!==j||g[16]!==u?(f=(0,t.jsxs)("section",{id:v,className:j,children:[u,h,p]}),g[14]=v,g[15]=j,g[16]=u,g[17]=f):f=g[17],f}e.s(["FeatureSection",()=>o,"default",0,o])},721590,e=>{e.v(t=>Promise.all(["static/chunks/f80a1d5426f99000.js","static/chunks/97d46adb75ba42f9.js"].map(t=>e.l(t))).then(()=>t(617299)))},639058,e=>{e.v(e=>Promise.resolve().then(()=>e(389125)))},632098,e=>{e.v(t=>Promise.all(["static/chunks/22289c846507be7a.js"].map(t=>e.l(t))).then(()=>t(265930)))}]);
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.