1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,963273,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={assign:function(){return l},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return s}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});function a(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,o(e));else t.set(n,o(r));return t}function l(e,...t){for(let n of t){for(let t of n.keys())e.delete(t);for(let[t,r]of n.entries())e.append(t,r)}return e}},905728,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(744066)._(e.r(963273)),o=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:n}=e,r=e.protocol||"",i=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:n&&(c=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let d=e.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||o.test(r))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),d&&"?"!==d[0]&&(d="?"+d),i=i.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${r}${c}${i}${d}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},197818,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return y},NormalizeError:function(){return w},PageNotFoundError:function(){return z},SP:function(){return f},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return o},getDisplayName:function(){return u},getLocationOrigin:function(){return c},getURL:function(){return d},isAbsoluteUrl:function(){return l},isResSent:function(){return h},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return v}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>s.test(e);function c(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function d(){let{href:e}=window.location,t=c();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function h(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&h(n))return r;if(!r)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let f="u">typeof performance,g=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class w extends Error{}class z extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},895284,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=e.r(197818),i=e.r(755749);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},486849,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},675274,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return x},useLinkStatus:function(){return z}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(744066),o=e.r(449025),s=a._(e.r(141988)),l=e.r(905728),c=e.r(276532),d=e.r(661176),u=e.r(197818),h=e.r(815820);e.r(677068);let p=e.r(519372),m=e.r(895284),f=e.r(845078);function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function x(t){var n;let r,i,a,[l,x]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),z=(0,s.useRef)(null),{href:y,as:b,children:v,prefetch:j=null,passHref:_,replace:k,shallow:C,scroll:P,onClick:T,onMouseEnter:N,onTouchStart:I,legacyBehavior:S=!1,onNavigate:M,ref:A,unstable_dynamicOnHover:E,...R}=t;r=v,S&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let L=s.default.useContext(c.AppRouterContext),D=!1!==j,O=!1!==j?null===(n=j)||"auto"===n?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,{href:K,as:$}=s.default.useMemo(()=>{let e=g(y);return{href:e,as:b?g(b):e}},[y,b]);if(S){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
1` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=s.default.Children.only(r)}let F=S?i&&"object"==typeof i&&i.ref:A,V=s.default.useCallback(e=>(null!==L&&(z.current=(0,p.mountLinkInstance)(e,K,L,O,D,x)),()=>{z.current&&((0,p.unmountLinkForCurrentNavigation)(z.current),z.current=null),(0,p.unmountPrefetchableInstance)(e)}),[D,K,L,O,x]),B={ref:(0,d.useMergedRef)(V,F),onClick(t){S||"function"!=typeof T||T(t),S&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!L||t.defaultPrevented||function(t,n,r,i,a,o,l){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(n)){a&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:u}=e.r(989199);s.default.startTransition(()=>{u(r||n,a?"replace":"push",o??!0,i.current)})}}(t,K,$,z,k,P,M)},onMouseEnter(e){S||"function"!=typeof N||N(e),S&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),L&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===E)},onTouchStart:function(e){S||"function"!=typeof I||I(e),S&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),L&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===E)}};return(0,u.isAbsoluteUrl)($)?B.href=$:S&&!_&&("a"!==i.type||"href"in i.props)||(B.href=(0,h.addBasePath)($)),a=S?s.default.cloneElement(i,B):(0,o.jsx)("a",{...R,...B,children:r}),(0,o.jsx)(w.Provider,{value:l,children:a})}e.r(486849);let w=(0,s.createContext)(p.IDLE_LINK_STATUS),z=()=>(0,s.useContext)(w);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},8351,e=>{"use strict";let t=(0,e.i(591762).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],8351)},988086,e=>{"use strict";let t=(0,e.i(591762).default)("history",[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);e.s(["History",()=>t],988086)},518598,e=>{"use strict";let t="https://genflow.local";function n({source:e,campaign:n,content:r,ref:i,path:a,auth:o,extraParams:s={}}){let l={url:function(){let e="/studio".trim();if(!e)return null;try{let n=new URL(e,t);if(n.origin===t)return`${n.pathname}${n.search}${n.hash}`;return`${n.origin}${n.pathname}${n.search}${n.hash}`}catch{return e.startsWith("/")?e:`/${e}`}}()??"/studio",auth:"login".trim()||null,goal:"studio_start".trim()||"studio_start",configured:!0},c=new URL(a??l.url,t),d=c.searchParams,u=void 0===o?l.auth:o;for(let[t,a]of(u&&d.set("auth",u),d.set("utm_source",e),d.set("utm_medium","organic"),d.set("utm_campaign",`seo-${n.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80)||"genflow"}`),d.set("utm_content",r),i&&d.set("ref",i),Object.entries(s)))a&&d.set(t,a);let h=c.origin===t?c.pathname:`${c.origin}${c.pathname}`,p=d.toString();return`${h}${p?`?${p}`:""}${c.hash}`}e.s(["buildSeoCtaHref",()=>n])},257895,e=>{"use strict";let t=(0,e.i(591762).default)("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["default",()=>t])},314841,255603,e=>{"use strict";var t=e.i(449025),n=e.i(675274),r=e.i(550775),i=e.i(985740),a=e.i(518598),o=e.i(975157);function s({label:e}){return(0,t.jsx)("span",{className:"inline-flex h-full w-full items-center justify-center whitespace-nowrap text-[13px] font-bold",children:e})}function l({label:e,href:r,onClick:i,className:a,heightClass:l="h-9",fullWidth:c=!1}){let d=(0,o.cn)("inline-flex shrink-0 items-center justify-center rounded-full border border-[#18191f]/10 bg-[#18191f] px-4 text-[#f7f7f8] shadow-[0_12px_28px_-20px_rgba(15,23,42,0.72)] transition-[background-color,border-color,color,transform] duration-200 hover:bg-[#24252b] active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400/45 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:border-white/[0.72] dark:bg-[#ececef] dar
1k:text-[#18191f] dark:shadow-none dark:hover:border-white/90 dark:hover:bg-[#f7f7f8] dark:focus-visible:ring-offset-[#0b0c10]",l,c&&"w-full",a);return i?(0,t.jsx)("button",{type:"button",onClick:i,className:d,children:(0,t.jsx)(s,{label:e})}):(0,t.jsx)(n.default,{href:r??"/studio?auth=login",className:d,children:(0,t.jsx)(s,{label:e})})}function c({homeLabel:e,studioLabel:o,homeHref:s="/",studioHref:c=(0,a.buildSeoCtaHref)({source:"public-content",campaign:"header",content:"header-cta"}),onStudioClick:d,ctaHeightClass:u="h-[36px]"}){return(0,t.jsx)("header",{className:"fixed left-0 right-0 top-0 z-50 px-3 pt-4 sm:px-4",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl min-w-0 items-center justify-between gap-3 rounded-full border border-white/70 bg-white/75 px-3 py-2 shadow-[0_8px_32px_-18px_rgba(0,0,0,0.35)] backdrop-blur-2xl ring-1 ring-black/[0.04]",children:[(0,t.jsxs)(n.default,{href:s,className:"group flex min-w-0 items-center gap-2 rounded-full px-1.5 py-1.5 text-xs font-semibold text-zinc-500 transition-colors hover:text-zinc-900 sm:px-3",children:[(0,t.jsx)("span",{className:"flex h-7 w-7 items-center justify-center overflow-hidden rounded-full bg-white shadow-sm ring-1 ring-black/[0.04]",children:(0,t.jsx)(i.GenflowLogo,{className:"h-full w-full"})}),(0,t.jsx)(r.ArrowLeft,{size:13,className:"hidden transition-transform group-hover:-translate-x-0.5 sm:block"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:e})]}),(0,t.jsx)("div",{className:"shrink-0",children:d?(0,t.jsx)(l,{label:o,onClick:d,heightClass:u,className:"px-4"}):(0,t.jsx)(l,{label:o,href:c,heightClass:u,className:"px-4"})})]})})}e.s(["MarketingWorkspaceCta",()=>l],255603),e.s(["PublicContentHeader",()=>c],314841)},181165,e=>{"use strict";var t=e.i(805847);function n(e){return"en"===e?"/marketplace":`/${(0,t.getLocalePathSegment)(e)}/marketplace`}function r(e,t){return`${n(t)}/tags/${e}`}e.s(["getMarketplaceBasePath",()=>n,"getMarketplaceTagPath",()=>r])},346374,e=>{"use strict";function t(e){return e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80)||"ai-workflow"}let n={"ai-generation":{en:"AI generation",zh:"AI çæ","zh-tw":"AI çæ",ja:"AI çæ"},"ai-workflow":{en:"AI workflow",zh:"AI 工使µ","zh-tw":"AI 工使µç¨",ja:"AI ã¯ã¼ã¯ããã¼"},"ai-workflow-automation":{en:"AI workflow automation",zh:"AI 工使µèªå¨å","zh-tw":"AI 工使µç¨èªåå",ja:"AI ã¯ã¼ã¯ããã¼èªåå"},automation:{en:"Automation",zh:"èªå¨å","zh-tw":"èªåå",ja:"èªåå"},avatar:{en:"Avatar",zh:"头å","zh-tw":"é å",ja:"ã¢ãã¿ã¼"},character:{en:"Character",zh:"è§è²","zh-tw":"è§è²",ja:"ãã£ã©ã¯ã¿ã¼"},"creative-automation":{en:"Creative automation",zh:"åæèªå¨å","zh-tw":"嵿èªåå",ja:"ã¯ãªã¨ã¤ãã£ãèªåå"},ecommerce:{en:"Ecommerce",zh:"çµå","zh-tw":"é»å",ja:"EC"},gift:{en:"Gift",zh:"礼å","zh-tw":"禮å",ja:"ã®ãã"},holiday:{en:"Holiday",zh:"èæ¥","zh-tw":"ç¯æ¥",ja:"ããªãã¼"},image:{en:"Image",zh:"å¾ç","zh-tw":"åç",ja:"ç»å"},product:{en:"Product",zh:"åå","zh-tw":"åå",ja:"åå"},"product-photography":{en:"Product photography",zh:"ååæå½±","zh-tw":"ååæå½±",ja:"å忮影"},prompts:{en:"Prompts",zh:"æç¤ºè¯","zh-tw":"æç¤ºè©",ja:"ããã³ãã"},"short-video":{en:"Short video",zh:"çè§é¢","zh-tw":"çå½±ç",ja:"çå°ºåç»"},studio:{en:"Studio",zh:"Studio","zh-tw":"Studio",ja:"Studio"},template:{en:"Template",zh:"模æ¿","zh-tw":"模æ¿",ja:"ãã³ãã¬ã¼ã"},ugc:{en:"UGC",zh:"UGC","zh-tw":"UGC",ja:"UGC"},unbox:{en:"Unbox",zh:"å¼ç®±","zh-tw":"éç®±",ja:"éå°"},video:{en:"Video",zh:"è§é¢","zh-tw":"å½±ç",ja:"åç»"},"video-ads":{en:"Video ads",zh:"è§é¢å¹¿å","zh-tw":"å½±ç廣å",ja:"åç»åºå"},workflow:{en:"Workflow",zh:"工使µ","zh-tw":"工使µç¨",ja:"ã¯ã¼ã¯ããã¼"},"desk-setup":{en:"Desk setup",zh:"æ¡é¢æå»º","zh-tw":"æ¡é¢æå»º",ja:"ãã¹ã¯ç°å¢"},workspace:{en:"Workspace",zh:"å·¥ä½ç©ºé´","zh-tw":"å·¥ä½ç©ºé",ja:"ã¯ã¼ã¯ã¹ãã¼ã¹"},tour:{en:"Tour",zh:"导è§","zh-tw":"å°è¦½",ja:"ãã¢ã¼"},jewelry:{en:"Jewelry",zh:"ç å®","zh-tw":"ç 寶",ja:"ã¸ã¥ã¨ãªã¼"},minimal:{en:"Minimal",zh:"æç®","zh-tw":"極簡",ja:"ãããã«"}
1,stack:{en:"Stack",zh:"å æ","zh-tw":"çæ",ja:"éãä»ã"},"pet-food":{en:"Pet food",zh:"å® ç©é£å","zh-tw":"寵ç©é£å",ja:"ããããã¼ã"},routine:{en:"Routine",zh:"æ¥å¸¸æµç¨","zh-tw":"æ¥å¸¸æµç¨",ja:"ã«ã¼ãã£ã³"},cpg:{en:"CPG",zh:"æ¶è´¹å","zh-tw":"æ¶è²»å",ja:"CPG"},festival:{en:"Festival",zh:"èæ¥æ´»å¨","zh-tw":"ç¯æ¥æ´»å",ja:"ãã§ã¹"},outfit:{en:"Outfit",zh:"ç©¿æ","zh-tw":"ç©¿æ",ja:"ã³ã¼ã"},seasonal:{en:"Seasonal",zh:"å£èè¥é","zh-tw":"å£ç¯è¡é·",ja:"å£ç¯æ½ç"},skincare:{en:"Skincare",zh:"æ¤è¤","zh-tw":"è·è",ja:"ã¹ãã³ã±ã¢"},organic:{en:"Organic",zh:"ææº","zh-tw":"ææ©",ja:"ãªã¼ã¬ããã¯"},macro:{en:"Macro",zh:"å¾®è·","zh-tw":"å¾®è·",ja:"ãã¯ã"},keyboard:{en:"Keyboard",zh:"é®ç","zh-tw":"éµç¤",ja:"ãã¼ãã¼ã"},asmr:{en:"ASMR",zh:"ASMR","zh-tw":"ASMR",ja:"ASMR"},tech:{en:"Tech",zh:"ç§æ","zh-tw":"ç§æ",ja:"ããã¯"},hotel:{en:"Hotel",zh:"é
åº","zh-tw":"飯åº",ja:"ããã«"},travel:{en:"Travel",zh:"æ
è¡","zh-tw":"æ
è¡",ja:"æ
è¡"},promo:{en:"Promo",zh:"æ¨å¹¿","zh-tw":"æ¨å»£",ja:"ããã¢"},book:{en:"Book",zh:"书ç±","zh-tw":"æ¸ç±",ja:"æ¸ç±"},publisher:{en:"Publisher",zh:"åºç","zh-tw":"åºç",ja:"åºç社"},streetwear:{en:"Streetwear",zh:"è¡å¤´æé¥°","zh-tw":"è¡é æé£¾",ja:"ã¹ããªã¼ãã¦ã§ã¢"},lookbook:{en:"Lookbook",zh:"é åå","zh-tw":"é åå",ja:"ã«ãã¯ããã¯"},fashion:{en:"Fashion",zh:"æ¶å°","zh-tw":"æå°",ja:"ãã¡ãã·ã§ã³"},kitchen:{en:"Kitchen",zh:"卿¿","zh-tw":"廿¿",ja:"ãããã³"},gadget:{en:"Gadget",zh:"å°å·¥å
·","zh-tw":"å°å·¥å
·",ja:"ã¬ã¸ã§ãã"},demo:{en:"Demo",zh:"æ¼ç¤º","zh-tw":"æ¼ç¤º",ja:"ãã¢"},baby:{en:"Baby",zh:"æ¯å©´","zh-tw":"æ¯å¬°",ja:"ããã¼"},safety:{en:"Safety",zh:"å®å
¨","zh-tw":"å®å
¨",ja:"å®å
¨"},care:{en:"Care",zh:"æ¤ç","zh-tw":"è·ç",ja:"ã±ã¢"},bottle:{en:"Bottle",zh:"æ°´ç¶","zh-tw":"æ°´ç¶",ja:"ããã«"},fitness:{en:"Fitness",zh:"å¥èº«","zh-tw":"å¥èº«",ja:"ãã£ãããã¹"},hook:{en:"Hook",zh:"é©å","zh-tw":"é¤å",ja:"ããã¯"},handbag:{en:"Handbag",zh:"æè¢","zh-tw":"æè¢",ja:"ãã³ãããã°"},luxury:{en:"Luxury",zh:"奢ä¾å","zh-tw":"奢ä¾å",ja:"ã©ã°ã¸ã¥ã¢ãªã¼"},gaming:{en:"Gaming",zh:"çµç«","zh-tw":"é»ç«¶",ja:"ã²ã¼ãã³ã°"},chair:{en:"Chair",zh:"æ¤
å","zh-tw":"æ¤
å",ja:"ãã§ã¢"},features:{en:"Features",zh:"åç¹","zh-tw":"è³£é»",ja:"æ©è½è¨´æ±"},eyewear:{en:"Eyewear",zh:"ç¼é","zh-tw":"ç¼é¡",ja:"ã¢ã¤ã¦ã§ã¢"},"try-on":{en:"Try-on",zh:"è¯ç©¿","zh-tw":"試穿",ja:"試ç"},plants:{en:"Plants",zh:"æ¤ç©","zh-tw":"æ¤ç©",ja:"æ¤ç©"},home:{en:"Home",zh:"å®¶å±
","zh-tw":"å®¶å±
",ja:"ãã¼ã "},lifestyle:{en:"Lifestyle",zh:"çæ´»æ¹å¼","zh-tw":"çæ´»æ¹å¼",ja:"ã©ã¤ãã¹ã¿ã¤ã«"},auto:{en:"Auto",zh:"汽车","zh-tw":"æ±½è»",ja:"èªåè»"},accessory:{en:"Accessory",zh:"é
ä»¶","zh-tw":"é
ä»¶",ja:"ã¢ã¯ã»ãµãªã¼"},"real-estate":{en:"Real estate",zh:"æ¿äº§","zh-tw":"æ¿ç¢",ja:"ä¸åç£"},interior:{en:"Interior",zh:"室å
","zh-tw":"室å
§",ja:"ã¤ã³ããªã¢"},walkthrough:{en:"Walkthrough",zh:"漫游","zh-tw":"漫é",ja:"ã¦ã©ã¼ã¯ã¹ã«ã¼"},wedding:{en:"Wedding",zh:"å©ç¤¼","zh-tw":"å©ç¦®",ja:"ã¦ã§ãã£ã³ã°"},stationery:{en:"Stationery",zh:"æå
·","zh-tw":"æå
·",ja:"ã¹ãã¼ã·ã§ããªã¼"},motion:{en:"Motion",zh:"卿","zh-tw":"åæ
",ja:"ã¢ã¼ã·ã§ã³"},snack:{en:"Snack",zh:"é¶é£","zh-tw":"é¶é£",ja:"ã¹ããã¯"},food:{en:"Food",zh:"é£å","zh-tw":"é£å",ja:"é£å"},"smart-home":{en:"Smart home",zh:"æºè½å®¶å±
","zh-tw":"æºæ
§å®¶å±
",ja:"ã¹ãã¼ããã¼ã "},setup:{en:"Setup",zh:"设置","zh-tw":"è¨å®",ja:"ã»ããã¢ãã"},toy:{en:"Toy",zh:"ç©å
·","zh-tw":"ç©å
·",ja:"ç©å
·"},kids:{en:"Kids",zh:"å¿ç«¥","zh-tw":"å
ç«¥",ja:"ãããº"},reaction:{en:"Reaction",zh:"ååº","zh-tw":"åæ",ja:"ãªã¢ã¯ã·ã§ã³"},backpack:{en:"Backpack",zh:"èå
","zh-tw":"èå
",ja:"ããã¯ããã¯"},outdoor:{en:"Outdoor",zh:"æ·å¤","zh-tw":"æ¶å¤",ja:"ã¢ã¦ããã¢"},adventure:{en:"Adventure",zh:"åé©","zh-tw":"åéª",ja:"åéº"},candle:{en:"Candle",zh:"è¡ç","zh-tw":"è ç",ja:"ãã£ã³ãã«"},mood:{en:"Mood",zh:"æ°å´","zh-tw":"æ°å",ja:"ã ã¼ã"},"phone-case":{en:"Phone case",zh:"ææºå£³","zh-tw":"ææ©æ®¼",ja:"ã¹ããã±ã¼ã¹"},amazon:{en:"Amazon",zh:"Amazon","zh-tw":"Amazon",ja:"Amazon"},supplement:{en:"Supplement",zh:"è¡¥å","zh-tw":"è£å",ja:"ãµããª"}
1,coffee:{en:"Coffee",zh:"åå¡","zh-tw":"åå¡",ja:"ã³ã¼ãã¼"},brand:{en:"Brand",zh:"åç","zh-tw":"åç",ja:"ãã©ã³ã"},sneaker:{en:"Sneaker",zh:"çé","zh-tw":"çé",ja:"ã¹ãã¼ã«ã¼"},launch:{en:"Launch",zh:"åå¸","zh-tw":"ç¼å¸",ja:"ãã¼ã³ã"},hype:{en:"Hype",zh:"ç§èæ°å´","zh-tw":"ç¨®èæ°å",ja:"ç±é"},beauty:{en:"Beauty",zh:"ç¾å¦","zh-tw":"ç¾å¦",ja:"ç¾å®¹"},pet:{en:"Pet",zh:"å® ç©","zh-tw":"寵ç©",ja:"ããã"},dog:{en:"Dog",zh:"çç","zh-tw":"çç",ja:"ç¬"},perfume:{en:"Perfume",zh:"馿°´","zh-tw":"馿°´",ja:"馿°´"},marketing:{en:"Marketing",zh:"è¥é","zh-tw":"è¡é·",ja:"ãã¼ã±ãã£ã³ã°"},watch:{en:"Watch",zh:"è
表","zh-tw":"è
é¶",ja:"æè¨"},culture:{en:"Culture",zh:"æå","zh-tw":"æå",ja:"æå"},cat:{en:"Cat",zh:"ç«åª","zh-tw":"è²åª",ja:"ç«"},meme:{en:"Meme",zh:"æ¢å¾","zh-tw":"æ¢å",ja:"ãã¼ã "},tiktok:{en:"TikTok",zh:"TikTok","zh-tw":"TikTok",ja:"TikTok"},lingerie:{en:"Lingerie",zh:"å
è¡£","zh-tw":"å
§è¡£",ja:"ã©ã³ã¸ã§ãªã¼"},"e-commerce":{en:"E-commerce",zh:"çµå","zh-tw":"é»å",ja:"EC"},etsy:{en:"Etsy",zh:"Etsy","zh-tw":"Etsy",ja:"Etsy"},mockup:{en:"Mockup",zh:"æ ·æº","zh-tw":"樣æ©",ja:"ã¢ãã¯ã¢ãã"},"custom-products":{en:"Custom products",zh:"å®å¶åå","zh-tw":"客製åå",ja:"ã«ã¹ã¿ã åå"},"image-edit":{en:"Image edit",zh:"å¾çç¼è¾","zh-tw":"åç編輯",ja:"ç»åç·¨é"}
1,"background-removal":{en:"Background removal",zh:"èæ¯ç§»é¤","zh-tw":"èæ¯ç§»é¤",ja:"èæ¯é¤å»"},"face-swap":{en:"Face swap",zh:"æ¢è¸","zh-tw":"æè",ja:"ãã§ã¤ã¹ã¹ã¯ãã"},dance:{en:"Dance",zh:"èè¹","zh-tw":"èè¹",ja:"ãã³ã¹"},"motion-control":{en:"Motion control",zh:"å¨ä½æ§å¶","zh-tw":"å使§å¶",ja:"ã¢ã¼ã·ã§ã³å¶å¾¡"},kling:{en:"Kling",zh:"Kling","zh-tw":"Kling",ja:"Kling"},mimic:{en:"Mimic",zh:"模仿","zh-tw":"模仿",ja:"模å£"},"amazon-a":{en:"Amazon A+",zh:"Amazon A+","zh-tw":"Amazon A+",ja:"Amazon A+"},headphone:{en:"Headphone",zh:"è³æº","zh-tw":"è³æ©",ja:"ããããã³"},nba:{en:"NBA",zh:"NBA","zh-tw":"NBA",ja:"NBA"},"viral-video":{en:"Viral video",zh:"çæ¬¾è§é¢","zh-tw":"çæ¬¾å½±ç",ja:"ãã¤ã©ã«åç»"},"fruit-avatar":{en:"Fruit avatar",zh:"æ°´æå¤´å","zh-tw":"æ°´æé å",ja:"ãã«ã¼ãã¢ãã¿ã¼"},"tiktok-viral":{en:"TikTok viral",zh:"TikTok çæ¬¾","zh-tw":"TikTok çæ¬¾",ja:"TikTok ãã¤ã©ã«"},"ai-fruit":{en:"AI fruit",zh:"AI æ°´æ","zh-tw":"AI æ°´æ",ja:"AI ãã«ã¼ã"},"viral-hook":{en:"Viral hook",zh:"çæ¬¾é©å","zh-tw":"çæ¬¾é¤å",ja:"ãã¤ã©ã«ããã¯"},"high-quality":{en:"High quality",zh:"é«åè´¨","zh-tw":"é«å質",ja:"é«å質"},commercial:{en:"Commercial",zh:"åä¸å¹¿å","zh-tw":"忥廣å",ja:"ã³ãã¼ã·ã£ã«"},"ai-video-prompt":{en:"AI video prompt",zh:"AI è§é¢æç¤ºè¯","zh-tw":"AI å½±çæç¤ºè©",ja:"AI åç»ããã³ãã"},"video-analysis":{en:"Video analysis",zh:"è§é¢åæ","zh-tw":"å½±çåæ",ja:"åç»åæ"},"video-replicator":{en:"Video replicator",zh:"è§é¢å¤å»","zh-tw":"å½±çè¤å»",ja:"åç»è¤è£½"}};function r(e,r){let i=e.trim(),a=t(i),o=n[a]?.[r];return o?o:i||a.split("-").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}e.s(["localizeMarketplaceTagLabel",()=>r,"slugifyMarketplaceTag",()=>t])},548590,e=>{"use strict";var t=e.i(342889);e.s(["LoaderCircle",()=>t.default])},778268,e=>{"use strict";let t=(0,e.i(591762).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",()=>t],778268)},385730,e=>{"use strict";var t=e.i(984807);function n(){return(0,t.createProductAnalyticsSessionId)("agent_flow")}function r(e,t){return{...e,...t,originSurface:e.originSurface??e.surface,originEntryPoint:e.originEntryPoint??e.entryPoint}}function i(e,n,r={}){(0,t.trackProductAnalyticsEvent)(e,{properties:{surface:n.surface,entry_point:n.entryPoint,origin_surface:n.originSurface??n.surface,origin_entry_point:n.originEntryPoint??n.entryPoint,flow_id:n.flowId,project_id:n.projectId,...r}})}e.s(["continueAgentAnalyticsContext",()=>r,"createAgentAnalyticsFlowId",()=>n,"trackAgentAnalyticsEvent",()=>i])},601465,e=>{"use strict";function t(e){let t=e.nativeEvent;return!!(t?.isComposing||t?.keyCode===229||t?.which===229||229===e.keyCode||229===e.which)}e.s(["isImeComposing",()=>t])},695095,e=>{"use strict";var t=e.i(420460),n=e.i(634907),r=e.i(141988);function i(){t.hasReducedMotionListener.current||(0,n.initPrefersReducedMotion)();let[e]=(0,r.useState)(t.prefersReducedMotion.current);return e}e.s(["useReducedMotion",()=>i])},658705,e=>{"use strict";e.s(["promptComposerIconButtonClassName",0,"flex shrink-0 items-center justify-center rounded-full text-zinc-500 outline-none transition-colors duration-150 hover:bg-zinc-100 hover:text-zinc-900 focus-visible:ring-2 focus-visible:ring-zinc-500/35 disabled:cursor-not-allowed disabled:text-zinc-300","promptComposerInputClassName",0,"bg-transparent text-[15px] leading-6 text-zinc-900 outline-none placeholder:text-zinc-500","promptComposerSendButtonClassName",0,"flex shrink-0 items-center justify-center rounded-full bg-zinc-950 text-white outline-none transition-[background-color,color,transform] duration-150 hover:bg-zinc-800 active:translate-y-px focus-visible:ring-2 focus-visible:ring-zinc-500/40 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:bg-zinc-200 disabled:text-zinc-500 disabled:active:translate-y-0","promptComposerSurfaceClassName",0,"rounded-[16px] border border-zinc-200 bg-white text-left transition-[border-color,box-shadow] duration-150 focus-within:border-zinc-400 focus-within:ring-4 focus-within:ring-zinc-950/[0.05]","promptComposerToolbarClassName",0,"border-t border-zinc-100"])},301668,e=>{"use strict";let t=(0,e.i(591762).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",()=>t],301668)},152135,e=>{"use strict";let t=(0,e.i(591762).default)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]);e.s(["Paperclip",()=>t],152135)},142251,e=>{"use strict";let t=(0,e.i(591762).default)("panel-right-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]]);e.s(["PanelRightOpen",()=>t],142251)},619238,e=>{"use strict";let t=(0,e.i(591762).default)("audio-lines",[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]);e.s(["AudioLines",()=>t],619238)},527882,e=>{"use strict";let t=(0,e.i(591762).default)("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);e.s(["Crown",()=>t],527882)},726949,275983,e=>{"use strict";var t=e.i(207653);let n={0:20,1:20,2:19,3:17,4:14},r={currency:"usd",minCredits:500,maxCredits:2e6,baseUnitCentsPerStep:n[0]};e.s(["CREDIT_PACK_CREDIT_STEP",0,10,"CREDIT_PACK_ID_PREFIX",0,"credit_pack_","CREDIT_PACK_MEMBERSHIP_UNIT_CENTS",0,n,"CREDIT_PACK_PRICING_CONFIG",0,r],275983);let{minCredits:i,maxCredits:a}=r,o=t.z.number().int("Credits must be a whole number.").min(i,`Credits must be at least ${i}.`).max(a,`Credits must be at most ${a}.`).refine(e=>e%10==0,{message:"Credits must be a multiple of 10."});t.z.object({credits:o,successUrl:t.z.url(),cancelUrl:t.z.url()}),t.z.object({url:t.z.string(),credits:t.z.number().int().positive(),amountInCents:t.z.number().int().positive(),currency:t.z.string()}),e.s(["customCreditPackCreditsSchema",0,o],726949)},573080,e=>{"use strict";let t=(0,e.i(591762).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",()=>t],573080)},207653,e=>{"use strict";var t=e.i(513283);
1e.s(["z",0,t])},77201,e=>{"use strict";let t={"seedance-1.5":{type:"video",name:"SeeDance 1.5",generationTypes:["KeyFrameToVideo","TextToVideo"],aspectRatios:["16:9","4:3","1:1","3:4","9:16","21:9"],durations:[4,5,6,7,8,9,10,11,12],resolutions:["720p","1080p"],audio:!0},"seedance-2.0":{type:"video",name:"SeeDance 2.0",generationTypes:["KeyFrameToVideo","ReferenceToVideo","TextToVideo"],aspectRatios:["16:9","4:3","1:1","3:4","9:16","21:9"],durations:[4,5,6,7,8,9,10,11,12,13,14,15],resolutions:["480p","720p","1080p","4k"],audio:!0},"seedance-2.0-fast":{type:"video",name:"SeeDance 2.0 Fast",generationTypes:["KeyFrameToVideo","ReferenceToVideo"],aspectRatios:["16:9","4:3","1:1","3:4","9:16","21:9"],durations:[4,5,6,7,8,9,10,11,12,13,14,15],resolutions:["480p","720p"],audio:!0},"seedance-2.0-mini":{type:"video",name:"SeeDance 2.0 Mini",generationTypes:["KeyFrameToVideo","ReferenceToVideo"],aspectRatios:["16:9","4:3","1:1","3:4","9:16","21:9"],durations:[4,5,6,7,8,9,10,11,12,13,14,15],resolutions:["480p","720p"],audio:!0},"seedance-2.5":{type:"video",name:"SeeDance 2.5",generationTypes:["ReferenceToVideo"],aspectRatios:["16:9","4:3","1:1","3:4","9:16","21:9"],durations:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],resolutions:["480p","720p"],audio:!0},"veo-3.1":{type:"video",name:"Veo 3.1",generationTypes:["KeyFrameToVideo","TextToVideo"],aspectRatios:["16:9","9:16"],durations:[4,6,8],resolutions:["720p","1080p"],audio:!0},"veo-3.1-fast":{type:"video",name:"Veo 3.1 Fast",generationTypes:["KeyFrameToVideo","TextToVideo"],aspectRatios:["16:9","9:16"],durations:[4,6,8],resolutions:["720p","1080p"],audio:!0},"kling-3.0-omni":{type:"video",name:"Kling 3.0 Omni",generationTypes:["KeyFrameToVideo","ReferenceToVideo"],aspectRatios:["16:9","9:16","1:1"],durations:[3,4,5,6,7,8,9,10,11,12,13,14,15],resolutions:["720p","1080p"],audio:!0},"minimax-h3":{type:"video",name:"MiniMax H3",generationTypes:["KeyFrameToVideo","ReferenceToVideo"],aspectRatios:["21:9","16:9","4:3","1:1","3:4","9:16"],durations:[4,5,6,7,8,9,10,11,12,13,14,15],resolutions:["768P","2K"],audio:!1},"kling-2.6-pro":{type:"video",name:"Kling 2.6 Pro",generationTypes:["TextToVideo","KeyFrameToVideo"],aspectRatios:["16:9","9:16","1:1"],durations:[5,10],audio:!0},"happyhorse-1.0":{type:"video",name:"HappyHorse 1.0",generationTypes:["TextToVideo","KeyFrameToVideo","ReferenceToVideo"],aspectRatios:["16:9","9:16","1:1","4:3","3:4"],durations:[3,4,5,6,7,8,9,10,11,12,13,14,15],resolutions:["720P","1080P"],audio:!1},"motion-control-v1":{type:"video",name:"Motion Control v1",generationTypes:["MotionControl"],modes:["std","pro"]},"motion-control-v2":{type:"video",name:"Motion Control v2",generationTypes:["MotionControl"],modes:["std","pro"]},"lip-sync-v1":{type:"video",name:"Lip Sync v1",generationTypes:["LipSync"]},"swap-face-video-v1":{type:"video",name:"Face Swap v1",generationTypes:["VideoFaceSwap"]},"talking-video-v1":{type:"video",name:"Talking Video v1",generationTypes:["TalkingVideo"],resolutions:["720p","1080p"]},"gpt-image-1.5":{type:"image",name:"GPT Image 1.5",generationTypes:["Image"],aspectRatios:["1:1","3:2","2:3"],sizes:["1K"]},"gpt-image-2":{type:"image",name:"GPT Image 2",generationTypes:["Image"],aspectRatios:["1:1","2:3","3:2","4:3","3:4","16:9","9:16"],sizes:["1K","2K"]},"nano-banana-2":{type:"image",name:"Banana 2",generationTypes:["Image"],aspectRatios:["1:1","3:2","2:3","3:4","4:3","9:16","16:9"],sizes:["1K","2K","4K"]},"nano-banana-2-lite":{type:"image",name:"Banana 2 Lite",generationTypes:["Image"],aspectRatios:["1:1","3:2","2:3","3:4","4:3","9:16","16:9"],sizes:["1K"]},"nano-banana-pro":{type:"image",name:"Banana Pro",generationTypes:["Image"],aspectRatios:["1:1","3:2","2:3","3:4","4:3","9:16","16:9"],sizes:["1K","2K","4K"]},"seedream-4.5":{type:"image",name:"SeeDream 4.5",generationTypes:["Image"],aspectRatios:["1:1","3:2","2:3","3:4","4:3","9:16","16:9"],sizes:["2K","4K"]},"seedream-v5":{type:"image",name:"SeeDream 5",generationTypes:["Image"],aspectRatios:["1:1","3:2","2:3","3:4","4:3","9:16","16:9"],sizes:["2K","3K"]},"seedream-v5-pro":{type:"image",name:"SeeDream 5 Pro",generationTypes:["Image"],aspectRatios:["1:1","3:2","2:3","3:4","4:3","9:16","16:9"],sizes:["1K","2K"]},"gpt-5.3":{type:"llm",name:"GPT 5.3",generationTypes:["LLM"]},"gemini-3.1-pro":{type:"llm",name:"Gemini 3.1 Pro",generationTypes:["LLM"]},"genflow-speech-v1":{type:"audio",name:"Genflow Speech v1",generationTypes:["TextToSpeech"]},"genflow-speech-v2":{type:"audio",name:"Genflow Speech v2",generationTypes:["TextToSpeech"]},"genflow-speech":{type:"audio",name:"Genflow Speech v1",generationTypes:["TextToSpeech"]}},n=["LipSync","MotionControl","VideoFaceSwap","TalkingVideo"],r=["genflow-speech"];function i(e){return!!e&&"video"===e.type&&e.generationTypes.some(e=>n.includes(e))}let a={image:["gpt-image-2","gpt-image-1.5","nano-banana-2","nano-banana-2-lite","nano-banana-pro","seedream-4.5","seedream-v5","seedream-v5-pro"],video:["seedance-2.5","seedance-2.0","seedance-2.0-fast","seedance-2.0-mini","seedance-1.5","kling-3.0-omni","minimax-h3","kling-2.6-pro","happyhorse-1.0","veo-3.1","veo-3.1-fast"],audio:["genflow-speech-v2","genflow-speech-v1"],llm:["gpt-5.3","gemini-3.1-pro"]};function o(e,t){let n=a[e],r=n?.indexOf(t)??-1;return r>=0?r:Number.MAX_SAFE_INTEGER}function s(e){return Object.entries(t).filter(([t,n])=>n.type===e&&!r.includes(t)&&!i(n)).sort(([t,n],[r,i])=>{let a=o(e,t)-o(e,r);return 0!==a?a:n.name.localeCompare(i.name,"en")})[0]?.[0]}function l(e){return r.includes(e)||i(t[e])?s("video")??"seedance-2.0":e}let c="TextToVideo",d="ReferenceToVideo",u=[d,c,"KeyFrameToVideo","ImageToVideo"];function h(e){let t=e?.generationTypes??[];return(t.includes(d)&&t.includes(c)?t.filter(e=>e!==c):[...t]).sort((e,t)=>
1{let n=u.indexOf(e),r=u.indexOf(t);return(n>=0?n:u.length)-(r>=0?r:u.length)})}function p(e,t){let n=h(e);return t&&n.includes(t)?t:t===c&&n.includes(d)?d:t&&e?.generationTypes.includes(t)?t:n[0]??t??c}function m(e,n,a){return Object.entries(t).filter(([,t])=>t.type===e).filter(([e,t])=>!(a?.forGenerationBox&&(r.includes(e)||i(t)))).map(([e,t])=>({key:e,cfg:t,available:t.generationTypes.includes(n)})).sort((t,n)=>{let r=o(e,t.key)-o(e,n.key);return 0!==r?r:t.cfg.name.localeCompare(n.cfg.name,"en")})}let f={"1K":{"1:1":"1024x1024","3:2":"1536x1024","2:3":"1024x1536","4:3":"1280x960","3:4":"960x1280","16:9":"1360x768","9:16":"768x1360"},"2K":{"1:1":"2048x2048","3:2":"2512x1664","2:3":"1664x2512","4:3":"2368x1776","3:4":"1776x2368","16:9":"2736x1536","9:16":"1536x2736"}},g={"832x1248":{size:"1K",aspectRatio:"2:3"},"1248x832":{size:"1K",aspectRatio:"3:2"},"1184x880":{size:"1K",aspectRatio:"4:3"},"880x1184":{size:"1K",aspectRatio:"3:4"},"1920x1920":{size:"2K",aspectRatio:"1:1"},"1568x2352":{size:"2K",aspectRatio:"2:3"},"2352x1568":{size:"2K",aspectRatio:"3:2"},"2224x1664":{size:"2K",aspectRatio:"4:3"},"1664x2224":{size:"2K",aspectRatio:"3:4"},"2560x1440":{size:"2K",aspectRatio:"16:9"},"1440x2560":{size:"2K",aspectRatio:"9:16"}};function x(e,t){return f[e]?.[t]}function w(e){for(let[t,n]of Object.entries(f))for(let[r,i]of Object.entries(n))if(i===e)return{size:t,aspectRatio:r};return g[e]}let z={"1K":{"1:1":"1024x1024","4:3":"1280x960","3:4":"960x1280","16:9":"1360x768","9:16":"768x1360","3:2":"1536x1024","2:3":"1024x1536","21:9":"1568x672"},"2K":{"1:1":"2048x2048","4:3":"2304x1728","3:4":"1728x2304","16:9":"2848x1600","9:16":"1600x2848","3:2":"2496x1664","2:3":"1664x2496","21:9":"3136x1344"},"3K":{"1:1":"3072x3072","4:3":"3456x2592","3:4":"2592x3456","16:9":"4096x2304","9:16":"2304x4096","3:2":"3744x2496","2:3":"2496x3744","21:9":"4704x2016"},"4K":{"1:1":"4096x4096","4:3":"4704x3520","3:4":"3520x4704","16:9":"5504x3040","9:16":"3040x5504","3:2":"4992x3328","2:3":"3328x4992","21:9":"6240x2656"}};function y(e,t){return z[e]?.[t]}function b(e){for(let[t,n]of Object.entries(z))for(let[r,i]of Object.entries(n))if(i===e)return{size:t,aspectRatio:r}}e.s(["MODELS_CONFIG",0,t,"MODEL_MIN_PRICING",0,{"seedance-1.5":{credits:3,unit:"per_second"},"seedance-2.0":{credits:7,unit:"per_second"},"seedance-2.0-fast":{credits:6,unit:"per_second"},"seedance-2.0-mini":{credits:4,unit:"per_second"},"seedance-2.5":{credits:18,unit:"per_second"},"kling-v3":{credits:6,unit:"per_second"},"kling-3.0-omni":{credits:6,unit:"per_second"},"minimax-h3":{credits:8,unit:"per_second"},"veo-3.1":{credits:16,unit:"per_second"},"veo-3.1-fast":{credits:8,unit:"per_second"},"kling-2.6-pro":{credits:5,unit:"per_second"},"happyhorse-1.0":{credits:13,unit:"per_second"},"talking-video-v1":{credits:3,unit:"per_second"},"seedream-4.5":{credits:4,unit:"per_img"},"seedream-v5":{credits:4,unit:"per_img"},"seedream-v5-pro":{credits:7,unit:"per_img"},"nano-banana-pro":{credits:11,unit:"per_img"},"nano-banana-2":{credits:6,unit:"per_img"},"nano-banana-2-lite":{credits:3,unit:"per_img"},"gpt-image-1.5":{credits:3,unit:"per_img"},"gpt-image-2":{credits:3,unit:"per_img"},"gpt-5.3":{credits:140,unit:"per_1m_tokens"},"gpt-5.2":{credits:140,unit:"per_1m_tokens"},"gemini-3.1-pro":{credits:206,unit:"per_1m_tokens"},"genflow-speech":{credits:5,unit:"per_1k_chars"},"genflow-speech-v1":{credits:5,unit:"per_1k_chars"},"genflow-speech-v2":{credits:10,unit:"per_1k_chars"}},"buildGptImage2PixelSize",()=>x,"buildSeedreamPixelSize",()=>y,"getAvailableModelsForTask",0,e=>Object.keys(t).filter(n=>t[n].generationTypes.includes(e)),"getFirstGenerationBoxModel",()=>s,"getModelPickerRows",()=>m,"getVisibleGenerationTypes",()=>h,"isExcludedFromGenerationBox",()=>i,"parseGptImage2PixelSize",()=>w,"parseSeedreamPixelSize",()=>b,"resolveGenerationBoxModelKey",()=>l,"resolveGenerationType",()=>p])},755216,e=>{"use strict";let t=(0,e.i(591762).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",()=>t],755216)},38959,e=>{"use strict";let t=(0,e.i(591762).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",()=>t],38959)},899947,e=>{"use strict";var t=e.i(449025),n=e.i(141988);e.i(460387);
1var r=e.i(517730),i=e.i(975157);function a({visible:e,className:a,phrases:o}){let{t:s,i18n:l}=(0,r.useTranslation)(),[c,d]=(0,n.useState)(0),[u,h]=(0,n.useState)(0),[p,m]=(0,n.useState)(!1),[f,g]=(0,n.useState)(!1),x=s("hub.workflow_genflow_placeholder_prefix","Ask Genflow to "),w=(0,n.useMemo)(()=>[s("hub.workflow_genflow_placeholder_animation_video","create an animated video of a puppy singing a nursery rhyme"),s("hub.workflow_genflow_placeholder_product_images","plan a product image set"),s("hub.workflow_genflow_placeholder_marketing_assets","create high-converting campaign assets"),s("hub.workflow_genflow_placeholder_improve_assets","improve an existing image or video"),s("hub.workflow_genflow_placeholder_find_template","find the right creative template"),s("hub.workflow_genflow_placeholder_social_content","create content for social campaigns")],[l.resolvedLanguage,s]),z=o&&o.length>0?o:w,y=z.join("\x01"),b=z[c]??z[0]??"",v=(0,n.useMemo)(()=>Array.from(b),[b]);(0,n.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>g(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,n.useEffect)(()=>{d(0),h(0),m(!1)},[y]),(0,n.useEffect)(()=>{if(f||0===v.length)return;let e=56,t=()=>h(e=>Math.min(e+1,v.length));!p&&u>=v.length?(e=2050,t=()=>m(!0)):p&&u>0?(e=31,t=()=>h(e=>Math.max(e-1,0))):p&&(e=340,t=()=>{d(e=>(e+1)%z.length),m(!1)});let n=window.setTimeout(t,e);return()=>window.clearTimeout(n)},[u,v.length,p,z.length,f]);let j=f?z[0]:v.slice(0,u).join("");return(0,t.jsxs)("span",{"aria-hidden":"true",className:(0,i.cn)("pointer-events-none select-none overflow-hidden text-ellipsis whitespace-nowrap text-zinc-500",e?"visible":"invisible",a),children:[(0,t.jsx)("span",{children:x}),(0,t.jsx)("span",{children:j})]})}e.s(["AnimatedGenflowPlaceholder",()=>a])},297359,e=>{"use strict";e.s(["CHROME_WEB_STORE_URL",0,"https://chromewebstore.google.com/detail/genflowai-ai-commercial-c/kgaiibjpgildfahnlkmdfdldaojelpjp"])},227661,e=>{"use strict";let t=(0,e.i(591762).default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);e.s(["Languages",()=>t],227661)},384458,e=>{"use strict";var t=e.i(449025),n=e.i(675274),r=e.i(648406),i=e.i(141988),a=e.i(148987),o=e.i(573080),s=e.i(227661),l=e.i(805847),c=e.i(975157);function d({className:e,currentLocale:d,mobile:u=!1,onSelect:h,query:p,surface:m="marketing",variant:f="nav"}){let g=(0,r.usePathname)()||"/",x=function(e,t){if(t)return t;let n=e.split("/").filter(Boolean)[0];return(0,l.parseSupportedLocale)(n)??"en"}(g,d),w=l.LOCALE_OPTIONS.find(e=>e.locale===x)??l.LOCALE_OPTIONS[0],z={en:"Language",zh:"è¯è¨","zh-tw":"èªè¨",ja:"è¨èª"}[x],y={en:"Change language",zh:"忢è¯è¨","zh-tw":"åæèªè¨",ja:"è¨èªã夿´"}[x],[b,v]=(0,i.useState)(!1),j=(0,i.useRef)(null),_=e=>(function(e,t){if(!t)return e;let[n,r=""]=e.split("?"),i=new URLSearchParams(r);for(let[e,n]of Object.entries(t))n&&i.set(e,n);let a=i.toString();return a?`${n}?${a}`:n})(function(e,t,n){if("app"===n)return`${e||"/"}?lang=${t}`;let r=e.split("/").filter(Boolean),i=(0,l.parseSupportedLocale)(r[0]);if(0===r.length||i&&1===r.length)return`${(0,l.getHomePath)(t)}?lang=${t}`;if(i&&"blog"===r[1]){let e=r.slice(2).join("/");return`${(0,l.getBlogBasePath)(t)}${e?`/${e}`:""}?lang=${t}`}return!i&&"mcp"===r[0]||i&&"mcp"===r[1]?`${(0,l.getMcpPath)(t)}?lang=${t}`:!i&&"browser-extension"===r[0]||i&&"browser-extension"===r[1]?`${(0,l.getBrowserExtensionPath)(t)}?lang=${t}`:`${(0,l.getHomePath)(t)}?lang=${t}`}(g,e,m),p);(0,i.useEffect)(()=>{if(!b)return;let e=e=>{j.current?.contains(e.target)||v(!1)};return window.addEventListener("pointerdown",e),()=>window.removeEventListener("pointerdown",e)},[b]);let k=(e,t)=>{(v(!1),h?.(),"app"===m)&&(e.preventDefault(),document.cookie=`castar_locale=${encodeURIComponent(t)}; path=/; max-age=31536000; samesite=lax`,t!==x&&window.location.assign(_(t)))};
1return u?(0,t.jsxs)("div",{className:(0,c.cn)("rounded-2xl border border-zinc-100 bg-zinc-50 p-2",e),children:[(0,t.jsxs)("div",{className:"mb-1 flex items-center gap-2 px-2 py-1 text-xs font-semibold uppercase text-zinc-500",children:[(0,t.jsx)(s.Languages,{className:"h-4 w-4"}),z]}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-1",children:l.LOCALE_OPTIONS.map(e=>(0,t.jsxs)(n.default,{href:_(e.locale),onClick:t=>k(t,e.locale),hrefLang:e.hreflang,className:(0,c.cn)("flex h-11 items-center justify-between rounded-xl px-3 text-sm font-semibold transition-colors",e.locale===x?"bg-white text-zinc-950 shadow-sm":"text-zinc-600 hover:bg-white/70 hover:text-zinc-950"),children:[(0,t.jsx)("span",{children:e.nativeLabel}),e.locale===x?(0,t.jsx)(a.Check,{className:"h-4 w-4"}):null]},e.locale))})]}):"sidebar"===f?(0,t.jsxs)("div",{ref:j,className:(0,c.cn)("relative overflow-visible",e),children:[(0,t.jsxs)("button",{type:"button",className:"group flex h-9 w-full items-center justify-start gap-2.5 rounded-lg px-2.5 text-left text-zinc-600 outline-none transition-colors duration-150 hover:bg-zinc-200/55 hover:text-zinc-950 focus-visible:ring-2 focus-visible:ring-zinc-500/40","aria-label":y,"aria-expanded":b,title:z,onClick:()=>v(e=>!e),children:[(0,t.jsx)(s.Languages,{className:"h-[17px] w-[17px] shrink-0 text-zinc-500 transition-colors group-hover:text-zinc-800",strokeWidth:1.8}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium",children:w.nativeLabel}),(0,t.jsx)(o.ChevronDown,{className:(0,c.cn)("h-3.5 w-3.5 shrink-0 text-zinc-400 transition-transform duration-150",b&&"rotate-180")})]}),b?(0,t.jsx)("div",{className:"absolute bottom-full left-0 z-[70] mb-1.5 w-full overflow-hidden rounded-lg border border-zinc-200 bg-white p-1",children:l.LOCALE_OPTIONS.map(e=>(0,t.jsxs)(n.default,{href:_(e.locale),hrefLang:e.hreflang,onClick:t=>k(t,e.locale),className:(0,c.cn)("flex h-9 items-center justify-between rounded-md px-2.5 text-[13px] font-medium transition-colors duration-150",e.locale===x?"bg-zinc-100 text-zinc-950":"text-zinc-600 hover:bg-zinc-100 hover:text-zinc-950"),children:[(0,t.jsx)("span",{children:e.nativeLabel}),e.locale===x?(0,t.jsx)(a.Check,{className:"h-4 w-4",strokeWidth:1.8}):null]},e.locale))}):null]}):"mobile-drawer"===f?(0,t.jsxs)("div",{ref:j,className:(0,c.cn)("relative overflow-visible",e),children:[(0,t.jsxs)("button",{type:"button",className:"group flex min-h-14 w-full items-center gap-3 rounded-xl px-2 text-left outline-none transition-colors hover:bg-zinc-950/[0.04] focus-visible:ring-2 focus-visible:ring-zinc-500/40","aria-label":y,"aria-expanded":b,title:z,onClick:()=>v(e=>!e),children:[(0,t.jsx)("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-sky-50 text-sky-600",children:(0,t.jsx)(s.Languages,{className:"h-[18px] w-[18px]",strokeWidth:1.9,"aria-hidden":"true"})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-sm font-semibold text-zinc-800",children:z}),(0,t.jsx)("span",{className:"mt-0.5 block truncate text-xs text-zinc-500",children:w.nativeLabel})]}),(0,t.jsx)(o.ChevronDown,{className:(0,c.cn)("h-4 w-4 shrink-0 text-zinc-400 transition-transform duration-150",b&&"rotate-180"),strokeWidth:1.8,"aria-hidden":"true"})]}),b?(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-full z-[320] mb-2 overflow-hidden rounded-2xl border border-zinc-200/90 bg-white p-1.5 shadow-[0_24px_70px_-30px_rgba(15,23,42,0.42)]",children:l.LOCALE_OPTIONS.map(e=>(0,t.jsxs)(n.default,{href:_(e.locale),hrefLang:e.hreflang,onClick:t=>k(t,e.locale),className:(0,c.cn)("flex h-11 items-center justify-between rounded-xl px-3 text-sm font-semibold transition-colors",e.locale===x?"bg-zinc-950 text-white":"text-zinc-600 hover:bg-zinc-100 hover:text-zinc-950"),children:[(0,t.jsx)("span",{children:e.nativeLabel}),e.locale===x?(0,t.jsx)(a.Check,{className:"h-4 w-4",strokeWidth:1.9}):null]},e.locale))}):null]}):(0,t.jsxs)("div",{ref:j,className:(0,c.cn)("relative hidden lg:block",e),children:[(0,t.jsxs)("button",{type:"button",className:"inline-flex h-9 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full px-3 text-[13px] font-medium text-zinc-600 transition-colors hover:bg-zinc-100 hover:text-zinc-950","aria-label":y,"aria-expanded":b,onClick:()=>v(e=>!e),children:[(0,t.jsx)(s.Languages,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:w.nativeLabel}),(0,t.jsx)(o.ChevronDown,{className:"h-3.5 w-3.5 shrink-0"})]}),b?(0,t.jsx)("div",{className:"absolute right-0 top-11 z-50 w-44 overflow-hidden rounded-2xl border border-zinc-200 bg-white p-1.5
1shadow-[0_24px_80px_-42px_rgba(15,23,42,0.45)]",children:l.LOCALE_OPTIONS.map(e=>(0,t.jsxs)(n.default,{href:_(e.locale),hrefLang:e.hreflang,onClick:t=>k(t,e.locale),className:(0,c.cn)("flex h-10 items-center justify-between rounded-xl px-3 text-sm font-semibold transition-colors",e.locale===x?"bg-zinc-950 text-white":"text-zinc-600 hover:bg-zinc-100 hover:text-zinc-950"),children:[(0,t.jsx)("span",{children:e.nativeLabel}),e.locale===x?(0,t.jsx)(a.Check,{className:"h-4 w-4"}):null]},e.locale))}):null]})}e.s(["LanguageSwitcher",()=>d])},932025,e=>{"use strict";let t=(0,e.i(591762).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",()=>t],932025)},144245,e=>{"use strict";let t="studio:landingAgentIntent",n="landing-agent-attachments";function r(e){return!!e&&"object"==typeof e&&"string"==typeof e.id&&("image"===e.type||"video"===e.type||"audio"===e.type)&&"string"==typeof e.name}function i(e){return!!e&&"object"==typeof e&&1===e.v&&"string"==typeof e.id&&"string"==typeof e.prompt&&"number"==typeof e.createdAt&&Array.isArray(e.attachments)&&e.attachments.every(r)&&function(e){if(void 0===e)return!0;if(!e||"object"!=typeof e)return!1;let t=["homepage","studio_hub","mobile_studio","canvas"];return"string"==typeof e.flowId&&"string"==typeof e.entryPoint&&t.includes(e.surface)&&(void 0===e.originSurface||t.includes(e.originSurface))&&(void 0===e.originEntryPoint||"string"==typeof e.originEntryPoint)&&(void 0===e.projectId||"string"==typeof e.projectId)&&(void 0===e.promptAlreadyTracked||"boolean"==typeof e.promptAlreadyTracked)}(e.analytics)&&(e.prompt.length>0||e.attachments.length>0)}function a(){try{let e=window.sessionStorage.getItem(t);if(!e)return null;let n=JSON.parse(e);if(!i(n)||Date.now()-n.createdAt>864e5)return window.sessionStorage.removeItem(t),i(n)&&c(n.id),null;return n}catch{return window.sessionStorage.removeItem(t),null}}function o(){return new Promise((e,t)=>{if("u"<typeof indexedDB)return void t(Error("INDEXED_DB_UNAVAILABLE"));let r=indexedDB.open("genflow-studio-handoff",1);r.onupgradeneeded=()=>{let e=r.result;e.objectStoreNames.contains(n)||e.createObjectStore(n,{keyPath:"intentId"})},r.onsuccess=()=>e(r.result),r.onerror=()=>t(r.error??Error("IDB_OPEN_FAILED"))})}async function s(e,t){if(0===t.length)return;let r=await o();try{await new Promise((i,a)=>{let o=r.transaction(n,"readwrite");o.objectStore(n).put({intentId:e,files:t.map(e=>({id:e.id,blob:e.file,lastModified:e.file.lastModified}))}),o.oncomplete=()=>i(),o.onerror=()=>a(o.error??Error("IDB_WRITE_FAILED")),o.onabort=()=>a(o.error??Error("IDB_WRITE_ABORTED"))})}finally{r.close()}}async function l(e){let t=await o();try{return await new Promise((r,i)=>{let a=t.transaction(n,"readonly").objectStore(n).get(e);a.onsuccess=()=>r(a.result??null),a.onerror=()=>i(a.error??Error("IDB_READ_FAILED"))})}finally{t.close()}}async function c(e){if("u">typeof indexedDB)try{let t=await o();try{await new Promise((r,i)=>{let a=t.transaction(n,"readwrite");a.objectStore(n).delete(e),a.oncomplete=()=>r(),a.onerror=()=>i(a.error??Error("IDB_DELETE_FAILED"))})}finally{t.close()}}catch{}}async function d(e,n=[],r){let i=e.replace(/\s+/g," ").trim();if(!i&&0===n.length)return null;let o={v:1,id:"u">typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`,prompt:i,createdAt:Date.now(),attachments:n,analytics:r},l=a(),u={...o,attachments:n.map(({id:e,type:t,name:n,mimeType:r})=>({id:e,type:t,name:n,mimeType:r}))};try{await s(o.id,n),window.sessionStorage.setItem(t,JSON.stringify(u)),l&&l.id!==o.id&&c(l.id)}catch{return await c(o.id),null}return o}async function u(){let e=a();if(!e)return null;if(0===e.attachments.length)return{...e,attachments:[]};try{let t=await l(e.id),n=new Map(t?.files.map(e=>[e.id,e])??[]),r=e.attachments.flatMap(e=>{let t=n.get(e.id);return t?[{...e,file:new File([t.blob],e.name,{type:e.mimeType||t.blob.type,lastModified:t.lastModified})}]:[]});if(r.length!==e.attachments.length)throw Error("LANDING_AGENT_ATTACHMENTS_MISSING");return{...e,attachments:r}}catch{return null}}function h(e){let n=a();e&&n&&n.id!==e||(window.sessionStorage.removeItem(t),n?.id&&c(n.id
1))}e.s(["clearLandingAgentIntent",()=>h,"persistLandingAgentIntent",()=>d,"readLandingAgentIntent",()=>u])},63849,e=>{"use strict";function t(e){return`/go/discord?source=${encodeURIComponent(e)}`}e.s(["getDiscordCommunityPath",()=>t])},728528,e=>{"use strict";var t=e.i(73043),n=e.i(545581);let r={all:["product"],subscriptionPlans:()=>[...r.all,"subscriptionPlans"]};function i(e=!0){return(0,t.useQuery)({queryKey:r.subscriptionPlans(),queryFn:()=>(0,n.getTrpcClient)().membership.listPlans.query(),enabled:e,staleTime:3e5})}e.s(["useSubscriptionPlansQuery",()=>i])},228041,e=>{"use strict";var t=e.i(813917),n=e.i(491050),r=e.i(545581),i=e.i(233259);function a(){let e=(0,n.useQueryClient)();return(0,t.useMutation)({mutationFn:e=>(0,r.getTrpcClient)().membership.upgrade.mutate(e),onSuccess:()=>{e.invalidateQueries({queryKey:i.userKeys.profile()})}})}function o(){let e=(0,n.useQueryClient)();return(0,t.useMutation)({mutationFn:e=>(0,r.getTrpcClient)().membership.schedulePlanChange.mutate(e),onSuccess:()=>{e.invalidateQueries({queryKey:i.userKeys.profile()})}})}function s(){let e=(0,n.useQueryClient)();return(0,t.useMutation)({mutationFn:e=>(0,r.getTrpcClient)().membership.cancel.mutate(e),onSuccess:()=>{e.invalidateQueries({queryKey:i.userKeys.profile()})}})}e.s(["useCancelMembershipMutation",()=>s,"useSchedulePlanChangeMutation",()=>o,"useUpgradeMembershipMutation",()=>a])},616761,881360,782626,250903,936406,e=>{"use strict";var t=e.i(591762);let n=(0,t.default)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["BadgeCheck",()=>n],616761);let r=(0,t.default)("gem",[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]]);e.s(["Gem",()=>r],881360);var i=e.i(449025);e.i(460387);var a=e.i(517730),o=e.i(805847),s=e.i(975157),l=e.i(77201);let c={imageModelId:"seedream-v5",imageModelName:"Seedream 5",videoModelId:"kling-2.6-pro",videoModelName:"Kling 2.6 Pro",videoResolution:"1080p",clipSeconds:5};function d({credits:e,className:t,compact:n=!1,live:r=!1,title:d,tone:u="light"}){let{i18n:h,t:p}=(0,a.useTranslation)(),m=(0,o.getIntlLocale)(h.language),f=function(e){let t=Math.max(0,Math.floor(e)),{imageCredits:n,videoCreditsPerSecond:r,clipSeconds:i}={...c,imageCredits:l.MODEL_MIN_PRICING[c.imageModelId]?.credits??4,videoCreditsPerSecond:l.MODEL_MIN_PRICING[c.videoModelId]?.credits??5},a=Math.floor(t/n),o=Math.floor(t/r);return{imageCount:a,videoSeconds:o,videoClipCount:Math.floor(o/i)}}(e),g=f.imageCount.toLocaleString(m),x=f.videoSeconds.toLocaleString(m),w=f.videoClipCount.toLocaleString(m),z=f.videoClipCount>0?p("store.output_inline_video_clips",{count:w,seconds:c.clipSeconds,defaultValue:"~{{count}} {{seconds}}-sec videos"}):p("store.output_inline_video_seconds",{count:x,defaultValue:"~{{count}} sec video"});return(0,i.jsx)("section",{"aria-label":d??p("store.output_estimate_title","Estimated creative output"),"aria-live":r?"polite":void 0,"aria-atomic":r?"true":void 0,className:(0,s.cn)("min-w-0 overflow-hidden whitespace-nowrap font-medium leading-5 tabular-nums",n?"text-[10px]":"text-xs","dark"===u?"text-violet-100/70":"text-zinc-500",t),children:(0,i.jsx)("span",{className:"block overflow-hidden text-ellipsis",children:p("store.output_estimate_inline",{images:g,video:z,defaultValue:"~{{images}} images or {{video}}"})})})}e.s(["CreativeOutputEstimate",()=>d],782626);var u=e.i(141988);let h=Date.parse("2026-09-18T00:00:00.000Z"),p={advanced:.1,professional:.2};function m(e=Date.now()){return e<h}function f(e){return p[e.trim().toLowerCase()]??0}function g(e,t,n){if(n>=h||t<=0)return 0;let r=f(e);return r?Math.floor(t*r):0}function x(){let[e,t]=(0,u.useState)(()=>Date.now());return(0,u.useEffect)(()=>{let e=()=>t(Date.now());e();let n=window.setInterval(e,1e3);return()=>window.clearInterval(n)},[]),{nowMs:e,isActive:m(e),remainingMs:Math.max(0,h-e)}}e.s(["MEMBERSHIP_CHECKOUT_PROMOTION_ENDS_AT_MS",0,h,"calcMembershipCheckoutPromotionCredits",()=>g,"getMembershipCheckoutPromotionRate",()=>f,"isMembershipCheckoutPromotionActive",()=>m],250903),e.s(["useMembershipCheckoutPromotion",()=>x],936406)},168882,e=>{"use strict";var t=e.i(275983),n=e.i(726949);let{minCredits:r,maxCredits:i}=t.CREDIT_PACK_PRICING_CONFIG;function a(e){return Math.min(i,Math.max(r,Math.round(e/t.CREDIT_PACK_CREDIT_STEP)*t.CREDIT_PACK_CREDIT_STEP))}function o(e){if(e<=r)return 0;if(e>=i)return 1e3;let t=Math.log(r);return Math.round((Math.log(e)-t)/(Math.log(i)-t)*1e3)}function s(e){return a(Math.exp(Math.log(r)+e/1e3*(Math.log(i)-Math.log(r))))}function l(e=0){return t.CREDIT_PACK_MEMBERSHIP_UNIT_CENTS[e]??t.CREDIT_PACK_PRICING_CONFIG.baseUnitCentsPerStep}function c(e=0){let n=t.CREDIT_PACK_PRICING_CONFIG.baseUnitCentsPerStep;return Math.round((1-l(e)/n)*100)}function d(e,n){return e/t.CREDIT_PACK_CREDIT_STEP*n}function u(e,r=0){let i=n.customCreditPackCreditsSchema.safeParse(e);if(!i.success)return null;let a=t.CREDIT_PACK_PRICING_CONFIG.baseUnitCentsPerStep,o=l(r),s=d(i.data,o),h=d(i.data,a),p=c(r);return{credits:i.data,amountInCents:s,originalAmountInCents:h,savePercent:p,currency:t.CREDIT_PACK_PRICING_CONFIG.currency.toLowerCase(),unitCentsPerStep:o,membershipTier:r}}function h(e){if(!e.startsWith(t.CREDIT_PACK_ID_PREFIX))return null;let n=parseInt(e.slice(t.CREDIT_PACK_ID_PREFIX.length),10);return!Number.isFinite(n)||n<=0?null:n}e.s(["CREDIT_PACK_SLIDER_STEPS",0,1e3,"creditsToSliderValue",()=>o,"getCreditPackDiscountPercent",()=>c,"parseCreditPackCreditsFromId",()=>h,"quoteCreditPackPrice",()=>u,"sliderValueToCredits",()=>s,"snapCreditPackCredits",()=>a])},799314,e=>{"use strict";var t=e.i(449025),n=e.i(616761),r=e.i(421335),i=e.i(148987),a=e.i(38959),o=e.i(527882),s=e.i(755216),l=e.i(881360),c=e.i(435753);e.i(460387);
1var d=e.i(517730),u=e.i(805847),h=e.i(782626),p=e.i(936406),m=e.i(168882),f=e.i(250903);function g(e,t){let n=(0,m.getCreditPackDiscountPercent)(e);return e<=0?[t("store.film_duration_free","Long Video Generation (Up to 15s)"),t("store.features_free","5 Templates"),t("store.tasks_free","2 Parallel Tasks"),t("store.storage_free","3 Days Asset Storage"),t("store.video_character_free","1 Video Character")]:1===e?[t("store.film_duration_starter","Long Video Generation (Up to 1 min)"),t("store.agent_video_mode","Agent Video Mode (Standard & Pro)"),t("store.features_free","5 Templates"),t("store.tasks_free","2 Parallel Tasks"),t("store.storage_starter","7 Days Asset Storage"),t("store.video_character_starter","5 Video Characters"),t("store.output_without_watermark","Download without watermark")]:2===e?[t("store.film_duration_basic","Long Video Generation (Up to 2 min)"),t("store.agent_video_mode","Agent Video Mode (Standard & Pro)"),...n>0?[t("store.credit_pack_discount",{percent:n,defaultValue:"{{percent}}% Off Extra Credit Purchases"})]:[],t("store.features_basic","15 Templates"),t("store.tasks_basic","4 Parallel Tasks"),t("store.storage_basic","30 Days Asset Storage"),t("store.video_character_basic","10 Video Characters"),t("store.output_without_watermark","Download without watermark")]:3===e?[t("store.film_duration_advanced","Long Video Generation (Up to 5 min)"),t("store.agent_video_mode","Agent Video Mode (Standard & Pro)"),...n>0?[t("store.credit_pack_discount",{percent:n,defaultValue:"{{percent}}% Off Extra Credit Purchases"})]:[],t("store.features_advanced","50 Templates"),t("store.tasks_advanced","10 Parallel Tasks"),t("store.storage_advanced","60 Days Asset Storage"),t("store.video_character_advanced","30 Video Characters"),t("store.output_without_watermark","Download without watermark"),t("store.priority_rendering","Priority Rendering")]:[t("store.film_duration_pro","Long Video Generation (Unlimited Duration)"),t("store.agent_video_pro","Agent Video (Standard & Pro)"),...n>0?[t("store.credit_pack_discount",{percent:n,defaultValue:"{{percent}}% Off Extra Credit Purchases"})]:[],t("store.features_pro","200 Templates"),t("store.tasks_pro","25 Parallel Tasks"),t("store.storage_pro","Permanent Asset Storage"),t("store.video_character_pro","Unlimited Video Characters"),t("store.output_without_watermark","Download without watermark"),t("store.support_pro","Priority Support & 1-on-1 Guide")]}function x({tier:e,size:r=20}){switch(e){case 0:return(0,t.jsx)(s.User,{size:r,className:"text-zinc-400"});case 1:return(0,t.jsx)(a.Zap,{size:r,className:"text-zinc-700"});case 2:return(0,t.jsx)(n.BadgeCheck,{size:r,className:"text-zinc-700"});case 3:return(0,t.jsx)(o.Crown,{size:r,className:"text-violet-200"});case 4:return(0,t.jsx)(l.Gem,{size:r,className:"text-zinc-800"});default:return(0,t.jsx)(n.BadgeCheck,{size:r,className:"text-zinc-400"})}}let w={cardBackground:"bg-white",cardBorder:"border-zinc-200/80",iconSurface:"border border-zinc-200 bg-zinc-50",creditsSurface:"border border-zinc-200 bg-zinc-50 text-zinc-800",creditsIcon:"text-zinc-600"};function z({plan:e,billingInterval:a,renderButton:o,isCurrentPlan:s=!1}){let{i18n:l,t:c}=(0,d.useTranslation)(),m=(0,u.getIntlLocale)(l.language),z=3===e.tier,{nowMs:y,isActive:b}=(0,p.useMembershipCheckoutPromotion)(),v=Math.round(100*(0,f.getMembershipCheckoutPromotionRate)(e.name)),j=b?(0,f.calcMembershipCheckoutPromotionCredits)(e.name,e.monthlyCredits,y):0,_="bg-white",k="border-zinc-200/80",C="text-zinc-900",P="text-zinc-400",T="border border-zinc-200 bg-zinc-50",N="border border-zinc-200 bg-zinc-50 text-zinc-800",I="text-zinc-600",S="text-zinc-800",M="text-zinc-600";return z?(_="bg-[#2b205b]",k="z-10 border-[#2b205b]",C="text-white",P="text-violet-200/55",T="border border-white/10 bg-white/[0.07]",N="border border-white/10 bg-white/[0.06] text-zinc-100",I="text-violet-200",S="text-violet-200",M="text-violet-50/90"):0===e.tier?(_="bg-zinc-50/70",k="border-zinc-200/70",T="border border-zinc-200 bg-white",N="border border-zinc-200 bg-white text-zinc-600",I="text-zinc-500",S="text-zinc-300",M="text-zinc-400"):4===e.tier?(_="bg-[#fffdf9]",k="border-zinc-200/80"):(_=w.cardBackgroun
1d,k=w.cardBorder,T=w.iconSurface,N=w.creditsSurface,I=w.creditsIcon),(0,t.jsxs)("div",{"data-plan-tier":e.tier,className:`gf-plan-card group relative isolate flex flex-col rounded-2xl border transition-[border-color,box-shadow] duration-200 ${0===e.tier?"p-4":"p-5"} ${_} ${k}`,children:[(0,t.jsx)("div",{className:"relative z-[1] mb-3",children:(0,t.jsxs)("div",{className:"flex min-h-9 items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,t.jsx)("div",{className:`gf-plan-icon flex h-9 w-9 shrink-0 items-center justify-center rounded-[10px] ${T}`,children:(0,t.jsx)(x,{tier:e.tier})}),(0,t.jsx)("h4",{className:`gf-plan-title truncate text-[15px] font-bold capitalize tracking-tight ${z?"text-white":"text-zinc-900"}`,children:e.name})]}),z?(0,t.jsxs)("span",{className:"gf-plan-badge inline-flex shrink-0 items-center gap-1 rounded-md bg-white/10 px-2 py-1 text-[9px] font-bold text-white",children:[(0,t.jsx)(n.BadgeCheck,{size:11}),c("store.most_popular","Most popular")]}):s?(0,t.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1 rounded-md bg-zinc-200/80 px-2 py-1 text-[9px] font-bold text-zinc-600",children:[(0,t.jsx)(i.Check,{size:11}),c("store.current_plan","Current Plan")]}):null]})}),(0,t.jsx)(h.CreativeOutputEstimate,{credits:e.monthlyCredits,compact:!0,title:c("store.output_estimate_monthly","Estimated monthly output"),tone:z?"dark":"light",className:"gf-plan-output relative z-[1] mb-3"}),(0,t.jsxs)("div",{className:"relative z-[1] mb-4",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,t.jsxs)("span",{className:`gf-plan-price text-4xl font-extrabold tracking-tight ${C}`,children:["CNY"===e.metadata.currency?"Â¥":"$",(e.metadata.price/100).toFixed(2)]}),(0,t.jsx)("span",{className:`gf-plan-muted font-medium text-sm ${P}`,children:"Monthly"===a?c("store.per_month_short","/mo"):c("store.per_year_short","/yr")})]}),e.metadata.originalPrice>e.metadata.price?(0,t.jsx)("div",{className:"mt-1.5 flex min-h-5 flex-wrap items-center gap-2",children:(0,t.jsxs)("span",{className:`gf-plan-muted text-xs line-through ${z?"text-violet-200/45":"text-zinc-400"}`,children:["CNY"===e.metadata.currency?"Â¥":"$",(e.metadata.originalPrice/100).toFixed(2),"/","Monthly"===a?c("store.month_short","mo"):c("store.year_short","yr")]})}):(0,t.jsx)("div",{className:"mt-1.5 min-h-5"}),(0,t.jsx)("p",{className:`gf-plan-muted mt-1 text-[10px] leading-4 ${P}`,children:0===e.tier?c("store.billing_summary_free","No payment required"):"Monthly"===a?c("store.billing_summary_monthly","Renews monthly"):c("store.billing_summary_yearly","Pay yearly today, then renew yearly")})]}),(0,t.jsxs)("div",{className:"relative z-[1] mb-3",children:[(0,t.jsxs)("div",{className:`gf-plan-credits inline-flex w-full items-center justify-center gap-1.5 rounded-xl px-3 py-2 text-[12px] font-bold ${N}`,children:[(0,t.jsx)(r.Coins,{size:14,className:I}),c("store.credits_included_per_month",{credits:e.monthlyCredits.toLocaleString(m),defaultValue:"Includes {{credits}} credits each month"})]}),j>0?(0,t.jsx)("p",{className:`mt-2 rounded-xl px-3 py-2 text-center text-[12px] font-extrabold leading-4 ${z?"bg-orange-500 text-white":"bg-orange-700 text-white"}`,children:c("store.credit_bonus_card_badge",{percent:v,credits:j.toLocaleString(m),defaultValue:"Limited offer: +{{percent}}% extra credits ({{credits}})"})}):null]}),(0,t.jsx)("div",{className:"relative z-[1] mb-4",children:o(e,z)}),(0,t.jsx)("ul",{className:"gf-plan-features relative z-[1] mb-4 flex-1 space-y-2",children:g(e.tier,c).map((e,n)=>(0,t.jsxs)("li",{className:`flex items-start gap-2 text-[13px] font-medium leading-5 ${M}`,children:[(0,t.jsx)(i.Check,{size:16,className:`shrink-0 mt-0.5 ${S}`,strokeWidth:3}),(0,t.jsx)("span",{children:e})]},n))})]})}function y({isElite:e,disabled:n,loading:r,variant:i="default",onClick:a,children:o}){return(0,t.jsx)("button",{"data-elite":e?"true":"false","data-variant":i,className:`gf-plan-action flex h-11 w-full items-center justify-center gap-2 rounded-xl text-[13px] font-bold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-orange-700 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${{current:"bg-zinc-100 text-zinc-400 cursor-default",switch:"bg-zinc-950 text-white hover:bg-zinc-800",downgrade:"bg-white border border-zinc-300 text-zinc-600 hover:bg-zinc-50",default:e?"bg-orange-700 text-white hover:bg-orange-800 shadow-[0_14px_26px_-18px_rgba(154,52,18,0.9)]":"bg-zinc-950 text-white hover:bg-zinc-800"}[i]}`,disabled:n||r,onClick:a,children:r?(0,t.jsx)(c.Loader2,{className:"w-4 h-4 animate-spin"}):o})}e.s(["BASIC_PLAN_VISUAL",0,w,"PlanActionButton",()=>y,"PlanCard",()=>z,"PlanTierIcon",()=>x,"getMembershipPlanFeatures",()=>g])},803748,e=>{"use strict";var t=e.i(449025),n=e.i(141988);e.i(460387);
1var r=e.i(517730),i=e.i(741077),a=e.i(695095),o=e.i(573080),s=e.i(975157);function l(){let{t:e}=(0,r.useTranslation)(),l=(0,a.useReducedMotion)(),[c,d]=(0,n.useState)(0),u=[{q:e("marketing.faq.q1"),a:e("marketing.faq.a1")},{q:e("marketing.faq.q2"),a:e("marketing.faq.a2")},{q:e("marketing.faq.q3"),a:e("marketing.faq.a3")},{q:e("marketing.faq.q4"),a:e("marketing.faq.a4")}];return(0,t.jsx)("section",{id:"faq",className:"marketing-faq-section marketing-section w-full bg-[#FAFAFA] px-5 pb-32 pt-24 sm:px-8",children:(0,t.jsxs)("div",{className:"mx-auto grid max-w-7xl gap-10 lg:grid-cols-[minmax(0,0.38fr)_minmax(0,0.62fr)] lg:items-start",children:[(0,t.jsxs)("div",{className:"lg:sticky lg:top-28",children:[(0,t.jsx)("h2",{className:"max-w-xl text-[clamp(2rem,3.4vw,3.25rem)] font-extrabold leading-[1.14] tracking-tight text-zinc-950",children:e("marketing.faq.heading")}),(0,t.jsx)("p",{className:"mt-4 max-w-md text-[15px] leading-7 text-zinc-500",children:e("marketing.faq.subheading")}),(0,t.jsxs)("div",{className:"marketing-faq-note mt-8 hidden rounded-[20px] border border-zinc-200 bg-white p-5 shadow-sm lg:block",children:[(0,t.jsx)("p",{className:"text-[13px] font-bold text-zinc-950",children:e("marketing.faq.side_title","Production-ready by default")}),(0,t.jsx)("p",{className:"mt-2 text-[13px] leading-6 text-zinc-500",children:e("marketing.faq.side_desc","Genflow keeps model access, custom workflow logic, and commercial output review in one workspace.")})]})]}),(0,t.jsx)("div",{className:"marketing-faq-list divide-y divide-zinc-200 overflow-hidden rounded-[24px] border border-zinc-200 bg-white shadow-sm",children:u.map((e,n)=>{let r=c===n;return(0,t.jsxs)(i.motion.div,{initial:!l&&{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.2},transition:{duration:.45,delay:.05*n,ease:[.16,1,.3,1]},children:[(0,t.jsxs)("button",{type:"button",onClick:()=>d(r?null:n),className:"marketing-faq-trigger flex w-full items-start justify-between gap-5 px-5 py-6 text-left transition-colors hover:bg-zinc-50/80 sm:px-7","aria-expanded":r,children:[(0,t.jsx)("span",{className:"max-w-2xl text-[16px] font-semibold leading-snug text-zinc-900",children:e.q}),(0,t.jsx)(o.ChevronDown,{className:(0,s.cn)("mt-0.5 h-4 w-4 shrink-0 text-zinc-400 transition-transform duration-300",r&&"rotate-180"),strokeWidth:1.8})]}),(0,t.jsx)("div",{className:(0,s.cn)("grid transition-[grid-template-rows] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",r?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("p",{className:"max-w-3xl px-5 pb-6 text-[14px] leading-7 text-zinc-500 sm:px-7",children:e.a})})})]},e.q)})})]})})}e.s(["MarketingFAQSection",()=>l])},677521,e=>{"use strict";var t=e.i(449025),n=e.i(141988),r=e.i(741077),i=e.i(427772);let a={some:0,all:1};var o=e.i(435753),s=e.i(286904),l=e.i(728528),c=e.i(233259),d=e.i(228041),u=e.i(90235);e.i(460387);var h=e.i(517730),p=e.i(648406),m=e.i(386691),f=e.i(799314);function g({workspaceHref:e}){let{t:g}=(0,h.useTranslation)(),x=(0,p.useRouter)(),w=(0,n.useRef)(null),z=function(e,{root:t,margin:r,amount:o,once:s=!1,initial:l=!1}={}){let[c,d]=(0,n.useState)(l);return(0,n.useEffect)(()=>{if(!e.current||s&&c)return;let n={root:t&&t.current||void 0,margin:r,amount:o};return function(e,t,{root:n,margin:r,amount:o="some"}={}){let s=(0,i.resolveElements)(e),l=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let n=l.get(e.target);if(!!n!==e.isIntersecting)if(e.isIntersecting){let n=t(e.target,e);"function"==typeof n?l.set(e.target,n):c.unobserve(e.target)}else"function"==typeof n&&(n(e),l.delete(e.target))})},{root:n,rootMargin:r,threshold:"number"==typeof o?o:a[o]});return s.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(d(!0),s?void 0:()=>d(!1)),n)},[t,e,r,s,o]),c}(w,{once:!0,margin:"200px 0px"}),[y,b]=(0,n.useState)("Monthly"),{data:v,isLoading:j}=(0,l.useSubscriptionPlansQuery)(z),{data:_,isPending:k}=m.api.auth.useSession(),C=!!_?.user,{data:P}=(0,c.useUserProfileQuery)(C&&z&&!k),{mutateAsync:T,isPending:N}=(0,d.useUpgradeMembershipMutation)(),{mutateAsync:I,isPending:S}
1=(0,d.useSchedulePlanChangeMutation)(),[M,A]=(0,n.useState)(null),E=(0,n.useMemo)(()=>v?v.filter(e=>e.tier>0).sort((e,t)=>e.tier-t.tier||e.billingInterval.localeCompare(t.billingInterval)):[],[v]),R=async e=>{if(!C)return void x.push("/login?redirect=/studio?billing=membership");try{A(e);let t=await T({planId:e,successUrl:`${window.location.origin}/studio?payment=success`,cancelUrl:window.location.href});window.location.href=t.url}catch{u.toast.error(g("store.payment_failed")),A(null)}},L=async e=>{if(!C)return void x.push("/login?redirect=/studio?billing=membership");try{A(e),await I({newPlanId:e}),u.toast.success(g("store.switch_success","Successfully changed billing interval.")),A(null)}catch{u.toast.error(g("store.payment_failed")),A(null)}};return(0,t.jsxs)("section",{ref:w,id:"pricing",className:"marketing-pricing-section relative flex w-full items-center justify-center bg-[#FAFAFA] py-24 sm:py-28 md:py-24 lg:py-32",children:[(0,t.jsx)("div",{className:"marketing-pricing-grid absolute inset-0 pointer-events-none overflow-hidden opacity-25",children:(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-full bg-[radial-gradient(#e4e4e7_1px,transparent_1px)] [background-size:24px_24px] [mask-image:radial-gradient(ellipse_50%_50%_at_50%_50%,#000_70%,transparent_100%)]"})}),(0,t.jsxs)("div",{className:"relative z-10 w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex flex-col items-center",children:[(0,t.jsx)("div",{className:"mb-10 text-center md:mb-8 lg:mb-10",children:(0,t.jsx)("h2",{className:"mb-6 text-[36px] font-bold tracking-tight text-zinc-900 sm:text-[42px] lg:text-[48px]",children:g("marketing.pricing.heading","Pricing")})}),(0,t.jsxs)(r.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},className:"w-full flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"mb-12 text-center md:mb-10 lg:mb-12",children:[(0,t.jsx)("h3",{className:"mb-4 text-4xl font-bold tracking-tight text-zinc-900 md:text-[2rem] lg:text-4xl",children:g("store.membership_title","Choose Your Plan")}),(0,t.jsx)("p",{className:"mx-auto mb-8 max-w-lg text-sm leading-relaxed text-zinc-500 md:mb-7 lg:mb-8",children:g("store.membership_subtitle","Get better value credits, faster rendering, and more workspace capacity.")}),(0,t.jsx)("div",{className:"marketing-pricing-toggle inline-flex p-1 bg-zinc-50 rounded-full border border-zinc-100",children:["Monthly","Yearly"].map(e=>(0,t.jsxs)("button",{onClick:()=>b(e),className:`px-7 py-2.5 rounded-full text-[11px] font-bold tracking-wide transition-all whitespace-nowrap relative ${y===e?"text-zinc-900":"text-zinc-500 hover:text-zinc-700"}`,children:[(0,t.jsxs)("span",{className:"relative z-10 flex items-center gap-1.5",children:["Monthly"===e?g("store.monthly","Monthly"):g("store.yearly","Yearly"),"Yearly"===e&&(0,t.jsx)("span",{className:"marketing-pricing-discount text-[10px] bg-violet-600 text-white px-1.5 py-0.5 rounded-full",children:"-50%"})]}),y===e&&(0,t.jsx)(r.motion.div,{layoutId:"marketingIntervalPill",className:"marketing-pricing-toggle-indicator absolute inset-0 bg-white rounded-full shadow-sm border border-zinc-200/50"})]},e))})]}),j?(0,t.jsx)("div",{className:"flex items-center justify-center py-32",children:(0,t.jsx)(o.Loader2,{className:"w-8 h-8 animate-spin text-zinc-300"})}):(0,t.jsx)("div",{className:"grid w-full grid-cols-1 items-stretch gap-5 md:grid-cols-2 xl:grid-cols-4",children:E.filter(e=>e.billingInterval===y).map(e=>{let n=C&&P?.membership?.planId===e.id,r=C&&P?.plan?.tier===e.tier&&P?.membership?.planId!==e.id,i=(N||S)&&M===e.id;return(0,t.jsx)(f.PlanCard,{plan:e,billingInterval:y,isCurrentPlan:!!n,renderButton:(e,a)=>(0,t.jsx)(f.PlanActionButton,{isElite:a,loading:i,disabled:!!n,variant:n?"current":r?"switch":"default",onClick:()=>{r?L(e.id):R(e.id)},children:n?(0,t.jsx)("span",{children:g("store.active","Active")}
1):r?(0,t.jsx)("span",{children:g("store.switch_interval","Switch Interval")}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{children:["Get ",e.name]}),(0,t.jsx)(s.ChevronRight,{size:16})]})})},e.id)})})]},"membership")]})]})}e.s(["MarketingPricingSection",()=>g],677521)},70575,e=>{"use strict";var t=e.i(141988),n=e.i(88674),r=e.i(805847),i=e.i(422898);function a(){return(0,t.useEffect)(()=>{var e;if("/"!==window.location.pathname)return;let t=(0,i.getPreferredClientLng)();t!==n.DEFAULT_LOCALE?window.location.replace(`${(0,r.getHomePath)(t)}${window.location.search}${window.location.hash}`):(e=n.DEFAULT_LOCALE,document.documentElement.lang=(0,r.getHtmlLang)(e),i.default.language!==e&&i.default.changeLanguage(e))},[]),null}e.s(["PreferredLocaleRedirect",()=>a])}]);
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.