PageSourceSearch

https://seedance25ai.net/_next/static/chunks/app/%5Blocale%5D/layout-929e65dabba99f20.js

js seedance25ai.net collected 2026-10-04 15:34:32 UTC 49,130 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97014,97436,98450],{1883:(e,t,r)=>{"use strict";r.d(t,{cv:()=>d,pw:()=>c,zj:()=>l});var n=r(96958),a=r(97014),i=r(59096);let o={...n.P},s="pending";function c(e){if(o={...n.P,...e},"undefined"!=typeof document){let e=(0,i.Ri)(a.COOKIE_NAMES.CONSENT);("granted"===e||"denied"===e)&&(s=e)}}function l(){return o}function d(){return function(){let{localDisable:e,remoteDisable:t,defaultDisabled:r}=o;return"boolean"==typeof e?e:"boolean"==typeof t?t:r}()||!(!o.requireConsent||"granted"===s)}},3282:(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearUserId:()=>a.Ar,enableAutoClickTracking:()=>d,enableAutoPageViewTracking:()=>h,enableAutoTracking:()=>_,enableSessionEndTracking:()=>N,init:()=>k,resetSessionTimer:()=>I,setExperiment:()=>s.cv,setLocale:()=>s.xS,setUserId:()=>a.do,track:()=>s.u4,trackClick:()=>s.MP,trackPageView:()=>s.oe,trackSessionEnd:()=>E,tracker:()=>s.Ft});var n=r(1883),a=r(98353),i=r(26209),o=r(87734),s=r(90697),c=r(97014);function l(e){if(p(window.location.pathname))return;let t=e.target;if(!(t instanceof Element))return;let r=t.closest("[data-analytics-action]");r&&(0,s.MP)(r)}function d(){return"undefined"==typeof document?()=>{}:(document.addEventListener("click",l,{capture:!0}),()=>{document.removeEventListener("click",l,{capture:!0})})}let u=["/admin","/api"];function p(e){let t=e.replace(/^\/[a-z]{2}(?=\/|$)/,"");return u.some(e=>t.startsWith(e))}function m(){!function(e){let t=e.replace(/^\/[a-z]{2}(?=\/|$)/,"");return"/pricing"===t||t.startsWith("/pricing/")}(window.location.pathname)?s.Ft.trackPageView():s.Ft.track(c.EVENTS.VIEW_PRICING,{entry_point:c.ENTRY_POINTS.PRICING_PAGE})}let f="";function g(){let e=window.location.pathname+window.location.search;if(e!==f){if(f=e,p(window.location.pathname))return;m()}}function h(){f=window.location.pathname+window.location.search,p(window.location.pathname)||m();let e=()=>g();window.addEventListener("popstate",e);let t=history.pushState,r=history.replaceState;return history.pushState=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];t.apply(this,r),g()},history.replaceState=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(this,t),g()},()=>{window.removeEventListener("popstate",e),history.pushState=t,history.replaceState=r}}function _(){let e=d(),t=h();return()=>{e(),t()}}var x=r(59096);let v=!1,b=null;function w(e){if((0,n.cv)()||v)return;v=!0;let t=(0,x.Hy)(),r={reason:e,duration_ms:(0,a.rZ)(),last_page:t,last_action:s.Ft.getLastAction()},i=(0,a.XV)(),o=(0,n.zj)(),c={event_name:"session_end",event_id:(0,x.l1)(),properties:r,visitor_id:i.visitorId,session_id:i.sessionId,user_id:i.userId,page_path:t,client_ts:Date.now()};"undefined"!=typeof navigator&&navigator.sendBeacon?navigator.sendBeacon(o.endpoint,JSON.stringify({events:[c]}))||fetch(o.endpoint,{method:"POST",body:JSON.stringify({events:[c]}),keepalive:!0}).catch(()=>{}):"undefined"!=typeof fetch&&fetch(o.endpoint,{method:"POST",body:JSON.stringify({events:[c]}),keepalive:!0}).catch(()=>{})}function y(){"undefined"!=typeof document&&("hidden"===document.visibilityState?b=setTimeout(()=>{w("hidden")},5e3):"visible"===document.visibilityState&&b&&(clearTimeout(b),b=null))}function S(){b&&(clearTimeout(b),b=null),w("close")}function N(){return"undefined"==typeof document?()=>{}:(v=!1,document.addEventListener("visibilitychange",y),window.addEventListener("pagehide",S),()=>{document.removeEventListener("visibilitychange",y),window.removeEventListener("pagehide",S),b&&(clearTimeout(b),b=null)})}function I(){v=!1,b&&(clearTimeout(b),b=null)}function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"close";w(e)}function k(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{userId:t,locale:r,autoTrack:c=!0,sessionEnd:l=!0,...d}=e;(0,n.pw)(d),(0,o.lR)(),(0,i.Th)(),t&&(0,a.do)(t),r&&(0,s.xS)(r);let u=[];return c&&u.push(_()),l&&u.push(N()),()=>{u.forEach(e=>e())}}},4070:(e,t,r)=>{"use strict";r.d(t,{TrackingProvider:()=>l,useTracking:()=>d,useTrackingSafe:()=>p});var n=r(72590),a=r(79998),i=r(3282),o=r(90697),s=r(98353);let c=(0,a.createContext)(null);function l(e){let{children:t,config:r,userId:l,locale:d,experiment:u,autoTrack:p=!0,sessionEnd:m=!0}=e,f=(0,a.useRef)(null),g=(0,a.useRef)(!1);(0,a.useEffect)(()=>
1{if(!g.current)return g.current=!0,f.current=(0,i.init)({...r,userId:l,locale:d,autoTrack:p,sessionEnd:m}),()=>{var e;null==(e=f.current)||e.call(f)}},[]),(0,a.useEffect)(()=>{g.current&&(l?(0,s.do)(l):(0,s.Ar)())},[l]),(0,a.useEffect)(()=>{g.current&&d&&(0,o.xS)(d)},[d]),(0,a.useEffect)(()=>{g.current&&u&&(0,o.cv)(u)},[u]);let h={track:i.tracker.track.bind(i.tracker),trackPageView:i.tracker.trackPageView.bind(i.tracker),trackClick:i.tracker.trackClick.bind(i.tracker),setUserId:s.do,clearUserId:s.Ar,setLocale:o.xS,setExperiment:o.cv,flush:i.tracker.flush.bind(i.tracker)};return(0,n.jsx)(c.Provider,{value:h,children:t})}function d(){let e=(0,a.useContext)(c);if(!e)throw Error("useTracking must be used within a TrackingProvider");return e}let u={track:()=>null,trackPageView:()=>null,trackClick:()=>null,setUserId:()=>{},clearUserId:()=>{},setLocale:()=>{},setExperiment:()=>{},flush:async()=>{}};function p(){return(0,a.useContext)(c)||u}},4624:(e,t,r)=>{"use strict";r.d(t,{JsonLd:()=>m});var n=r(72590),a=r(13262);let i=JSON.parse('{"wx":{"wk":{"DD":"Seedance 2.5 AI"}},"ZK":{"DD":"Seedance 2.5 AI Video Generator","h_":"Seedance 2.5 AI helps creators turn text, image, or video references into cinematic clips with stable motion and clear camera direction."},"CI":{"ld":[{"title":"Enter your prompt","description":"Describe the video you want in text, and optionally upload an image or video reference for composition, subject, or motion."},{"title":"Choose parameters","description":"Set video duration, aspect ratio, and output quality before you generate."},{"title":"Generate and download","description":"Click generate, wait a short moment, then download the finished video when the result is ready."}]},"qT":{"ld":[{"title":"30-second single-shot generation","description":"Seedance 2.5 AI generates clips up to 30 seconds in a single pass — long enough for a complete scene, short ad, or product demo without stitching.","icon":"RiQuillPenFill"},{"title":"Native 4K resolution output","description":"Seedance 2.5 AI outputs at native 4K, giving campaigns, editorial projects, and product videos the resolution headroom they need for large-format delivery.","icon":"RiGalleryFill"},{"title":"Up to 50 multi-modal reference inputs","description":"Seedance 2.5 AI accepts up to 50 references per generation — images, video clips, and 3D white models — so subject identity and scene structure carry through accurately.","icon":"RiComputerFill"},{"title":"3D white model support","description":"Seedance 2.5 AI can take 3D wireframe models as reference inputs for precise control over character pose, object placement, and camera angle.","icon":"RiShareCircleFill"},{"title":"Stronger cross-shot consistency","description":"The Seedance 2.5 model keeps characters, lighting, and scene tone more stable across related shots — useful for multi-clip sequences and branded campaign work.","icon":"RiFileImageFill"},{"title":"Seedance 2.5 AI review workflow","description":"Seedance 2.5 AI helps teams compare prompt versions, adjust references, manage credits, and download clips for feedback cycles.","icon":"RiTerminalBoxFill"}]},"JL":{"ld":[{"question":"What is Seedance 2.5 AI?","answer":"Seedance 2.5 AI is a platform for using Seedance 2.5 video generation with text prompts, visual references, credits, and downloads."},{"question":"What can I create with Seedance 2.5 AI?","answer":"You can create product teasers, social ads, storyboards, cinematic scenes, ecommerce clips, concept videos, and previews."},{"question":"Does it support image-to-video?","answer":"Yes, reference-based video creation lets an image guide subject identity, composition, color, and motion."},{"question":"What is the Seedance 2.5 model best at?","answer":"The Seedance 2.5 model is useful for prompt following, smooth movement, cinematic framing, reference consistency, and multi-shot planning."},{"question":"How do credits work?","answer":"Credits are consumed according to model settings, duration, quality, and generation type, with monthly, yearly, and pay-as-you-go options."},{"question":"What does the compact spelling mean?","answer":"Seedance2.5 is a compact spelling for Seedance 2.5, while the spaced version is usually clearer for readers."},{"question":"When does a failed generation still consume credits?","answer":"If a model output is completed and then blocked by moderation, credits may not be returned, while failures before output are refunded."}]},"lO":{"h_":"Test prompts, compare reference-led video ideas, and download creative drafts in minutes."},"qr":{"wk":{"h_":"A browser-based AI video generation workspace for text prompts, reference inputs, credits, and downloads."}}}'),o="https://seedance25ai.net",s="".concat(o,"/"),c=i.wx.wk.DD,l="[email protected]",d="".concat(o,"/logo.png"),u="".concat(o,"/seo/preview-16x9.webp"),p=[{"@type":"ImageObject",url:u,width:1200,height:675},{"@type":"ImageObject",url:"".concat(o,"/seo/preview-4x3.webp"),width:1200,height:900},{"@type":"ImageObject",url:"".concat(o,"/seo/preview-1x1.webp"),width:1200,height:1200}];function m(e){let{locale:t="en"}=e,r="en"===t?s:"".concat(o,"/").concat(t),m={"@context":"https://schema.org","@type":"Organization","@id":"".concat(o,"/#organization"),name:c,url:s,logo:d,description:i.qr.wk.h_,email:l,contactPoint:{"@type":"ContactPoint",contactType:"customer service",email:l,availableLanguage:["en"]},sameAs:[]},f={"@context":"https://schema.org","@type":"WebSite","@id":"".concat(o,"/#website"),name:c,url:r,description:i.ZK.h_,inLanguage:t,publisher:{"@id":"".concat(o,"/#organization")}},g={"@context":"https://schema.org","@type":"WebPage","@id":"".concat(o,"/#webpage"),url:r,name:"".concat(c," | ").concat(i.ZK.DD),description:i.ZK.h_,isPartOf:{"@id":"".concat(o,"/#website")},about:{"@id":"".concat(o,"/#organization")},image:p,primaryImageOfPage:{"@type":"ImageObject",url:u,width:1200,height:675,caption:"".concat(c," preview image")}},h={"@context":"https://schema.org","@type":"SoftwareApplication","@id":"".concat(o,"/#softw
1are"),name:i.ZK.DD,applicationCategory:"MultimediaApplication",applicationSubCategory:"AI Video Generator",operatingSystem:"Web Browser",url:r,description:i.lO.h_,isAccessibleForFree:!0,image:p,featureList:[...i.CI.ld.map(e=>e.title),...i.qT.ld.map(e=>e.title)],screenshot:p,author:{"@id":"".concat(o,"/#organization")}},_={"@context":"https://schema.org","@type":"FAQPage",mainEntity:i.JL.ld.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))};return(0,n.jsx)(n.Fragment,{children:[m,f,g,h,_].map((e,t)=>(0,n.jsx)(a.default,{id:"json-ld-".concat(t),type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}},t))})}},4950:(e,t,r)=>{"use strict";function n(e,t,r){return"".concat(function(e){switch(e.toUpperCase()){case"CNY":return"\xa5";case"USD":return"$";default:return"".concat(e.toUpperCase()," ")}}(t)).concat(e.toFixed(r).replace(/\.?0+$/,""))}function a(e){var t;return e.price?e.price:("yearly"===e.group||"year"===e.interval)&&(null==(t=e.unit)?void 0:t.trim())==="/ month"?n(e.amount/100/12,e.currency,2):n(e.amount/100,e.currency,2)}r.d(t,{L:()=>a})},21064:(e,t,r)=>{"use strict";r.d(t,{U:()=>a});var n=r(79998);function a(e){let[t,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let t=window.matchMedia(e);r(t.matches);let n=e=>{r(e.matches)};return t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}},[e]),t}},26209:(e,t,r)=>{"use strict";r.d(t,{Th:()=>c,wY:()=>s});var n=r(97014),a=r(59096);let i=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","gbraid","wbraid","gclsrc","fbclid","msclkid","ttclid"];function o(e){return Object.values(e).some(e=>!!e)}function s(){let e=(0,a.Ri)(n.COOKIE_NAMES.UTM_PARAMS);return e?(0,a.xL)(e,{}):{}}function c(){let e=function(e){let t;try{let e=new URL(window.location.href);t=new URLSearchParams(e.search)}catch(e){return{}}let r={};for(let e of i){let n=t.get(e);n&&(r[e]=n)}return r}();if(o(e))return o(e)&&(0,a.TV)(n.COOKIE_NAMES.UTM_PARAMS,JSON.stringify(e),30),e;return s()}},44098:(e,t,r)=>{"use strict";r.d(t,{Cf:()=>d,Es:()=>p,L3:()=>m,c7:()=>u,lG:()=>s,rr:()=>f});var n=r(72590);r(79998);var a=r(83249),i=r(25395),o=r(83461);function s(e){let{...t}=e;return(0,n.jsx)(a.bL,{"data-slot":"dialog",...t})}function c(e){let{...t}=e;return(0,n.jsx)(a.ZL,{"data-slot":"dialog-portal",...t})}function l(e){let{className:t,...r}=e;return(0,n.jsx)(a.hJ,{"data-slot":"dialog-overlay",className:(0,o.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...r})}function d(e){let{className:t,children:r,overlayClassName:s,showCloseButton:d=!0,...u}=e;return(0,n.jsxs)(c,{"data-slot":"dialog-portal",children:[(0,n.jsx)(l,{className:s}),(0,n.jsxs)(a.UC,{"data-slot":"dialog-content",className:(0,o.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...u,children:[r,d&&(0,n.jsxs)(a.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,n.jsx)(i.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"dialog-header",className:(0,o.cn)("flex flex-col gap-2 text-center sm:text-left",t),...r})}function p(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"dialog-footer",className:(0,o.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...r})}function m(e){let{className:t,...r}=e;return(0,n.jsx)(a.hE,{"data-slot":"dialog-title",className:(0,o.cn)("text-lg leading-none font-semibold",t),...r})}function f(e){let{className:t,...r}=e;return(0,n.jsx)(a.VY,{"data-slot":"dialog-description",className:(0,o.cn)("text-muted-foreground text-sm",t),...r})}},47743:(e,t,r)=>{"use strict";r.d(t,{GlobalPromoPopup:()=>I});var n=r(72590),a=r(79998),i=r(24759),o=r(57006),s=r(91664),c=r(41951),l=r(25395),d=r(86247),u=r(33710),p=r(97436),m=r(86950),f=r(83461),g=r(87999),h=r(42447),_=r(92853),x=r(4950);function v(e){let{seconds:t,onComplete:r}=e,[i,o]=(0,a.useState)(1e3*t),s=(0,a.useRef)(Date.now()),c=(0,a.useRef)(null);return(0,a.useEffect)(()=>{s.current=Date.now();let e=()=>{let t=Date.now(),n=t-s.current;s.current=t,o(e=>{let t=e-n;return t<=0?(null==r||r(),0):t}),c.current=requestAnimationFrame(e)};return c.current=requestAnimationFrame(e),()=>{c.current&&cancelAnimationFrame(c.current)}},[r]),(0,n.jsx)("span",{className:"font-mono text-sm font-semibold text-[#40c0c0]",children:(e=>{let t=Math.floor(e/1e3),r=Math.floor(t/60),n=Math.floor(e%1e3/10),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.toString().padStart(t,"0")};return"".concat(a(r),":").concat(a(t%60),":").concat(a(n))})(i)})}function b(e){var t;let{item:r,isFeatured:a=!1,onClaimOffer:i,showCountdown:o=!1,countdownSeconds:s=120,isLoading:c=!1}=e,l=(0,d.c3)("pricing.promo_popup"),u=(0,x.L)(r),p=!r.original_price&&("one-time"===r.group||"monthly"===r.group||"one-time"===r.interval||"month"===r.interval),m=(()=>
1{if(!p)return"";let e=Number(u.replace(/[^0-9.]/g,""));if(!Number.isFinite(e)||e<=0)return"";let t=u.replace(/[0-9.,\s]/g,""),r=u.includes(".")?u.split(".")[1].length:1;return"".concat(t).concat((2*e).toFixed(r))})(),g=r.original_price||m,b=r.credits,w=r.product_id||"",y=(()=>{try{let e=l.raw("items").find(e=>e.product_id===w);return(null==e?void 0:e.features)||null}catch(e){return null}})()||(null==(t=r.features)?void 0:t.slice(0,4))||[],S=w.includes("enterprise"),N=("one-time"===r.group||"one-time"===r.interval)&&w.includes("plus-pack"),I=S?l("bonus_50"):N||a?l("bonus_40"):"",E="monthly"===r.group||"month"===r.interval,k="yearly"===r.group||"year"===r.interval,j=E?l("credits_monthly"):k?l("credits_yearly"):"",T=b?"".concat(b.toLocaleString()," ").concat(l("credits")).concat(j):"";return(0,n.jsxs)("div",{className:(0,f.cn)("group relative flex flex-col overflow-hidden rounded-xl p-4 transition-all duration-200",a?"border-2 border-[#f0c040] bg-[#1a1a0a] shadow-[0_0_25px_rgba(240,192,64,0.15)] md:-translate-y-1":"border border-[#2a2a2a] bg-[#0f0f0f]"),children:[a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 overflow-hidden rounded-xl",children:(0,n.jsx)("div",{className:"absolute inset-0 opacity-50 animate-shimmer-bg",style:{background:"linear-gradient(90deg, transparent 0%, rgba(255, 211, 106, 0.6) 50%, transparent 100%)",backgroundSize:"200% 100%"}})}),(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 -z-10 blur-2xl [background:radial-gradient(circle_at_50%_0%,rgba(240,192,64,0.12),transparent_45%)]"})]}),(0,n.jsxs)("div",{className:"mb-2",children:[(0,n.jsx)("h3",{className:"text-base font-semibold text-white",children:r.title}),(0,n.jsx)("p",{className:"mt-0.5 text-xs text-gray-400 line-clamp-2",children:r.tip||r.description})]}),(0,n.jsxs)("div",{className:"mb-3 flex items-baseline gap-2",children:[g&&(0,n.jsx)("span",{className:"text-sm text-gray-500 line-through",children:g}),(0,n.jsx)("span",{className:"text-2xl font-bold text-[#f0c040]",children:u}),r.unit&&(0,n.jsx)("span",{className:"text-xs text-gray-400",children:r.unit})]}),(0,n.jsxs)("div",{className:"mb-3 flex flex-wrap gap-2",children:[T&&(0,n.jsx)("span",{className:"rounded-md border border-[#40c0c0] bg-[#40c0c0]/10 px-2 py-0.5 text-xs font-medium text-[#40c0c0]",children:T}),I&&(0,n.jsx)("span",{className:"rounded-md border border-[#40c0c0] bg-[#40c0c0]/10 px-2 py-0.5 text-xs font-semibold uppercase tracking-wide text-[#40c0c0] shadow-[0_0_12px_rgba(0,224,255,0.2)]",children:I})]}),(0,n.jsx)("ul",{className:"mb-3 flex-1 space-y-1.5",children:y.map((e,t)=>(0,n.jsxs)("li",{className:"flex items-start gap-2 text-xs text-gray-300",children:[(0,n.jsx)(h.A,{className:(0,f.cn)("mt-0.5 size-3 shrink-0",a?"text-[#f0c040]":"text-[#40c0c0]"),strokeWidth:2.5}),(0,n.jsx)("span",{className:"leading-tight",children:e})]},t))}),(0,n.jsx)("button",{onClick:()=>i(r),disabled:c,className:(0,f.cn)("flex w-full items-center justify-center gap-2 rounded-lg px-3 py-2.5 text-sm font-semibold transition-all duration-200 disabled:cursor-not-allowed disabled:opacity-70",a?"bg-gradient-to-r from-[#f0c040] to-[#f5d873] text-black shadow-[0_0_20px_rgba(240,192,64,0.3)] hover:shadow-[0_0_30px_rgba(240,192,64,0.5)] hover:brightness-110 active:scale-[0.98]":"bg-[#1f1f25] text-[#f0c040] hover:bg-[#2a2a30]"),children:c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.A,{className:"size-4 animate-spin"}),(0,n.jsx)("span",{children:l("processing")})]}):l("claim_offer")}),o&&(0,n.jsxs)("div",{className:"mt-2 flex items-center justify-between rounded-lg border border-[#2a2a2a] bg-[#0a0a0a]/60 px-2.5 py-1.5",children:[(0,n.jsx)("span",{className:"text-[10px] font-semibold text-[#f0c040]",children:l("limited_time")}),(0,n.jsx)(v,{seconds:s})]})]})}let w="promo_popup_reopen",y="promo_popup_pending_checkout",S=()=>{let e=["#f0c040","#ffd700","#ffcc00","#40c0c0"];(0,c.A)({particleCount:80,angle:60,spread:60,startVelocity:50,origin:{x:0,y:.8},colors:e,zIndex:9999}),(0,c.A)({particleCount:80,angle:120,spread:60,startVelocity:50,origin:{x:1,y:.8},colors:e,zIndex:9999})};function N(e){let{pricing:t,enabled:r=!1}=e,c=(0,i.Ym)(),h=(0,d.c3)("pricing.promo_popup"),_=(0,g.nE)(),{user:x,configs:v,setIsShowSignModal:N,setIsShowPaymentModal:I}=(0,o.U)(),[E,k]=(0,a.useState)(!1),[j,T]=(0,a.useState)("yearly"),[O,C]=(0,a.useState)(!1),[P,A]=(0,a.useState)(null),[R,L]=(0,a.useState)(null),U=(0,a.useRef)(null),D=(0,a.useRef)(!1),z=e=>{window.sessionStorage.setItem(y,JSON.stringify(e))},M=()=>{let e=window.sessionStorage.getItem(y);if(!e)return null;try{return JSON.parse(e)}catch(e){return window.sessionStorage.removeItem(y),null}},G=()=>{window.sessionStorage.setItem(w,"true")},F=(0,a.useCallback)(()=>!0===r||"false"!==v.promo_popup_enabled,[v.promo_popup_enabled,r]),V=(0,a.useCallback)(async()=>
1{if(!x)return!0;try{let e=await fetch("/api/subscription/get-current",{method:"POST"});if(e.ok){let{data:t}=await e.json();if(t)return!1}}catch(e){console.log("Check subscription failed:",e)}return!x.credits||!(x.credits.remainingCredits>0)},[x]),K=(0,a.useCallback)(()=>{D.current||(U.current&&clearTimeout(U.current),U.current=setTimeout(async()=>{!D.current&&F()&&await V()&&!D.current&&k(!0)},3e4))},[F,V]),q=()=>{_(g.qY.CLOSE_PROMO_POPUP,{entry_point:g.NN.PROMO_POPUP}),D.current=!0,k(!1),U.current&&(clearTimeout(U.current),U.current=null)},Y=async(e,t)=>{try{if(!x){z({productId:e.product_id,paymentProvider:t,flow:"direct"}),G(),N(!0);return}let r=(e=>{let{paymentProvider:t}=e,r={};return"true"===v.affonso_enabled&&["stripe","creem"].includes(t)&&(r.affonso_referral=(0,m.Ri)("affonso_referral")||""),"true"===v.promotekit_enabled&&["stripe"].includes(t)&&(r.promotekit_referral=window.promotekit_referral?window.promotekit_referral:(0,m.Ri)("promotekit_referral")||""),r})({paymentProvider:t||""}),n={product_id:e.product_id,currency:e.currency,locale:c||"en",payment_provider:t||"",metadata:r};C(!0),A(e.product_id);let a=await fetch("/api/payment/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(401===a.status){C(!1),A(null),L(null),z({productId:e.product_id,paymentProvider:t,flow:"direct"}),G(),N(!0);return}if(!a.ok)throw Error("request failed with status ".concat(a.status));let{code:i,message:o,data:l}=await a.json();if(0!==i)throw Error(o);let{checkoutUrl:d,orderNo:u}=l;if(!d)throw Error("checkout url not found");"string"==typeof u&&u&&(0,s.If)(u),window.location.href=d}catch(e){console.log("checkout failed: ",e),u.toast.error("checkout failed: "+e.message),C(!1),A(null)}},W=e=>{var t;if(_(g.qY.CLICK_PROMO_OFFER,{entry_point:g.NN.PROMO_POPUP,click_key:e.product_id,click_text:(null==(t=e.button)?void 0:t.title)||"Claim Offer"}),!x){z({productId:e.product_id,paymentProvider:v.default_payment_provider,flow:"true"===v.select_payment_enabled?"select-payment":"direct"}),G(),N(!0);return}"true"===v.select_payment_enabled?(L(e),I(!0)):Y(e,v.default_payment_provider)};if((0,a.useEffect)(()=>{if(x){let r=M();if(r){var e;let n=null==(e=t.items)?void 0:e.find(e=>e.product_id===r.productId);window.sessionStorage.removeItem(y),window.sessionStorage.removeItem(w),n&&(k(!1),"select-payment"===r.flow?(L(n),I(!0)):Y(n,r.paymentProvider||v.default_payment_provider))}}},[x,t.items,v.default_payment_provider,Y,I]),(0,a.useEffect)(()=>{if(F()&&!D.current){let e=!!M(),t="true"===window.sessionStorage.getItem(w);if(e)return;t?(window.sessionStorage.removeItem(w),k(!0)):K()}return()=>{U.current&&clearTimeout(U.current)}},[F,K]),(0,a.useEffect)(()=>{if(E){_(g.qY.VIEW_PROMO_POPUP,{entry_point:g.NN.PROMO_POPUP});let e=setTimeout(S,100);return()=>clearTimeout(e)}},[E,_]),!E)return null;let J=[{id:"monthly",label:h("tabs.monthly")},{id:"yearly",label:h("tabs.yearly"),badge:h("tabs.yearly_badge")},{id:"one-time",label:h("tabs.one_time")}],B=(e=>{var r,n;let a=((null==(r=t.promo_popup)?void 0:r.items)||[]).filter(t=>t.group===e).map(e=>e.product_id);return(null==(n=t.items)?void 0:n.filter(t=>t.group===e&&a.includes(t.product_id)))||[]})(j);return(0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm",onClick:q}),(0,n.jsx)("div",{className:"relative z-10 w-full max-w-4xl animate-in fade-in zoom-in-95 duration-200",children:(0,n.jsxs)("div",{className:"max-h-[90vh] overflow-y-auto rounded-2xl border-1 border-[#f0c040]/40 bg-gradient-to-b from-[#1a1a1a] to-[#0d0d0d] p-4 shadow-[0_0_30px_rgba(240,192,64,0.15),0_0_60px_rgba(240,192,64,0.08)] md:p-6",children:[(0,n.jsx)("button",{onClick:q,className:"absolute right-3 top-3 z-10 rounded-full bg-[#2a2a2a] p-1.5 text-gray-400 transition-colors hover:bg-[#3a3a3a] hover:text-white",children:(0,n.jsx)(l.A,{className:"size-4"})}),(0,n.jsxs)("div",{className:"mb-4 text-center",children:[(0,n.jsxs)("h2",{className:"mb-1 text-xl font-bold text-white md:text-2xl",children:[(0,n.jsx)("span",{className:"mr-2",children:"\uD83C\uDF89"}),h("title")]}),(0,n.jsx)("div",{className:"text-center text-5xl font-black tracking-tight text-transparent bg-clip-text bg-gradient-to-r from-[#FFD36A] via-[#f0c040] to-[#40c0c0] md:text-6xl",children:h("discount")}
1)]}),(0,n.jsx)("div",{className:"mb-5 flex justify-center",children:(0,n.jsx)("div",{className:"inline-flex rounded-full bg-[#0a0a0a] p-1",children:J.map(e=>(0,n.jsxs)("button",{onClick:()=>T(e.id),className:(0,f.cn)("flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors",j===e.id?"bg-[#1f1f25] text-[#40c0c0]":"text-gray-400 hover:text-white"),children:[e.label,e.badge&&(0,n.jsx)("span",{className:"rounded-full bg-[#40c0c0] px-1.5 py-0.5 text-[10px] font-semibold text-black",children:e.badge})]},e.id))})}),(0,n.jsx)("div",{className:(0,f.cn)("mb-4 grid gap-3",3===B.length?"md:grid-cols-3":"mx-auto max-w-2xl md:grid-cols-2"),children:B.map(e=>(0,n.jsx)(b,{item:e,isFeatured:e.is_featured||!1,onClaimOffer:W,showCountdown:e.is_featured,countdownSeconds:180,isLoading:O&&P===e.product_id},e.product_id))}),(0,n.jsxs)("div",{className:"rounded-lg bg-[#0a0a0a] px-3 py-2 text-center",children:[(0,n.jsx)("span",{className:"text-[#f0c040]",children:"⚡"}),(0,n.jsx)("span",{className:"ml-2 text-xs text-gray-400",children:h("footer")})]})]})}),(0,n.jsx)(p.PaymentModal,{isLoading:O,pricingItem:R,onCheckout:(e,t)=>Y(e,t)})]})}function I(){let e=(0,i.Ym)(),{configs:t}=(0,o.U)(),[r,s]=(0,a.useState)(null);(0,a.useEffect)(()=>{let r=async()=>{try{let t=await fetch("/api/pricing/get-pricing",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locale:e})});if(t.ok){let{data:e}=await t.json();e&&s(e)}}catch(e){console.log("Failed to fetch pricing data for promo popup")}};"false"!==t.promo_popup_enabled&&r()},[t.promo_popup_enabled,e]);let c="false"!==t.promo_popup_enabled;return c&&r?(0,n.jsx)(N,{pricing:r,enabled:c}):null}},48987:(e,t,r)=>{"use strict";r.d(t,{useTrack:()=>i});var n=r(79998),a=r(3282);function i(){return(0,n.useCallback)((e,t,r)=>a.tracker.track(e,t,r),[])}},53720:(e,t,r)=>{"use strict";r.d(t,{GlobalInsufficientCreditsPopup:()=>m});var n=r(72590),a=r(79998),i=r(95540),o=r(25395),s=r(22009),c=r(86247),l=r(24892),d=r(57006),u=r(87999);function p(e){let{pricing:t}=e,r=(0,c.c3)("pricing.insufficient_credits"),p=(0,u.nE)(),{isShowInsufficientCreditsModal:m,insufficientCreditsInfo:f,hideInsufficientCreditsModal:g}=(0,d.U)(),h=(0,a.useRef)(!1);(0,a.useEffect)(()=>{var e;if(!m||!f){h.current=!1;return}h.current||(h.current=!0,p(u.qY.VIEW_INSUFFICIENT_CREDITS_POPUP,{entry_point:u.NN.INSUFFICIENT_CREDITS_POPUP,trigger_source:null!=(e=f.source)?e:"unknown",current_credits:f.currentCredits,required_credits:f.requiredCredits,shortage_credits:Math.max(f.requiredCredits-f.currentCredits,0)}))},[f,m,p]);let _=()=>{g()};if(!m||!f)return null;let{currentCredits:x,requiredCredits:v}=f;return(0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:_}),(0,n.jsx)("div",{className:"relative z-10 w-full max-w-sm animate-in fade-in zoom-in-95 duration-200",children:(0,n.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-white/[0.08] bg-[var(--card)] shadow-2xl",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-5 pt-5 pb-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(i.A,{className:"size-5 text-amber-400"}),(0,n.jsx)("h2",{className:"text-lg font-bold text-white",children:r("title")})]}),(0,n.jsx)("button",{onClick:_,className:"rounded-full p-1 text-white/40 transition-colors hover:bg-white/10 hover:text-white",children:(0,n.jsx)(o.A,{className:"size-4"})})]}),(0,n.jsx)("p",{className:"px-5 pt-1.5 pb-4 text-sm text-white/40",children:r("description")}),(0,n.jsxs)("div",{className:"mx-5 mb-5 rounded-xl bg-white/[0.04]",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-4 py-3",children:[(0,n.jsx)("span",{className:"text-sm text-white/50",children:r("current_balance")}),(0,n.jsx)("span",{className:"text-lg font-bold text-white/90",children:x})]}),(0,n.jsx)("div",{className:"mx-4 border-t border-white/[0.06]"}),(0,n.jsxs)("div",{className:"flex items-center justify-between px-4 py-3",children:[(0,n.jsx)("span",{className:"text-sm text-white/50",children:r("required")}),(0,n.jsx)("span",{className:"text-lg font-bold text-red-400",children:v})]})]}),(0,n.jsxs)("div",{className:"flex gap-3 px-5 pb-5",children:[(0,n.jsx)("button",{onClick:_,className:"flex-1 rounded-xl bg-white/[0.06] py-2.5 text-sm font-medium text-white/70 transition-colors hover:bg-white/[0.1]",children:r("later")}),(0,n.jsxs)(l.N_,{href:"/pricing#pricing",onClick:_,className:"flex flex-1 items-center justify-center gap-1.5 rounded-xl bg-primary py-2.5 text-sm font-semibold text-primary-foreground transition-colors hover:bg-primary/90",children:[(0,n.jsx)(s.A,{className:"size-4"}),r("go_to_pricing")]})]})]})})]})}function m(){return(0,n.jsx)(p,{pricing:{items:[]}})}},59096:(e,t,r)=>{"use strict";r.d(t,{G2:()=>u,Hy:()=>d,I_:()=>l,Ri:()=>i,TV:()=>a,f6:()=>c,l1:()=>o,sC:()=>p,vB:()=>s,xL:()=>m});var n=r(40503);function a(e,t,r){if("undefined"==typeof document)return;let n=new Date(Date.now()+24*r*36e5).toUTCString();document.cookie="".concat(e,"=").concat(encodeURIComponent(t),"; expires=").concat(n,"; path=/; SameSite=Lax")}function i(e){if("undefined"==typeof document)return;let t=document.cookie.match(new RegExp("(^| )".concat(e,"=([^;]+)")));return t?decodeURIComponent(t[2]):void 0}function o(){return"e_".concat((0,n.Ak)(16))}function s(){return"v_".concat((0,n.Ak)(16))}function c(){return"s_".concat((0,n.Ak)(12))}function l(){return"a_".concat((0,n.Ak)(16))}function d(){return window.location.pathname+window.location.search}function u(){if("undefined"!=typeof document)return document.referrer||void 0}function p(){let e=u();if(e)try{return new URL(e).hostname}catch(e){return}}function m(e,t){try{return JSON.parse(e)}catch(e){return t}}},66497:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>s});var n=r(72590),a=r(4735),i=r(33710),o=r(79998);let s=e=>{let{...t}=e,{theme:r="system"}=(0,a.D)(),[s,c]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{c(!0)},[]),s)?(0,n.jsx)(i.l,{theme:r,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t}):null}},69869:(e,t,r)=>{"use strict";r.d(t,{BE:()=>u,I6:()=>f,_s:()=>o,cp:()=>c,gk:()=>m,tb:()=>p,zj:()=>d});var n=r(72590);r(79998);var a=r(78625),i=r(83461);function o(e){let{...t}=e;return(0,n.jsx)(a._s.Root,{"data-slot":"drawer",...t})}function s(e){let{...t}=e;return(0,n.jsx)(a._s.Portal,{"data-slot":"drawer-portal",...t})}function c(e){let{...t}=e;return(0,n.jsx)(a._s.Close,{"data-slot":"drawer-close",...t})}function l(e){let{className:t,...r}=e;return(0,n.jsx)(a._s.Overlay,{"data-slot":"drawer-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...r})}function d(e){let{className:t,children:r,...o}=e;return(0,n.jsxs)(s,{"data-slot":"drawer-portal",children:[(0,n.jsx)(l,{}),(0,n.jsxs)(a._s.Content,{"data-slot":"drawer-content",className:(0,i.cn)("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",t),...o,children:[(0,n.jsx)("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),r]})]})}function u(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"drawer-header",className:(0,i.cn)("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",t),...r})}function p(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"drawer-footer",className:(0,i.cn)("mt-auto flex flex-col gap-2 p-4",t),...r})}function m(e){let{className:t,...r}=e;return(0,n.jsx)(a._s.Title,{"data-slot":"drawer-title",className:(0,i.cn)("text-foreground font-semibold",t),...r})}function f(e){let{className:t,...r}=e;return(0,n.jsx)(a._s.Description,{"data-slot":"drawer-description",className:(0,i.cn)("text-muted-foreground text-sm",t),...r})}},81167:(e,t,r)=>{"use strict";r.d(t,{TrackingInitializer:()=>s});var n=r(79998),a=r(24759),i=r(57006),o=r(3282);
1function s(e){let{config:t,autoTrack:r=!0,sessionEnd:s=!0}=e,{user:c,configs:l}=(0,i.U)(),d=(0,a.Ym)(),u=(0,n.useRef)(null),p=(0,n.useRef)(!1),m=Object.keys(l).length>0,f=m&&"false"!==l.event_tracking_enabled;return(0,n.useEffect)(()=>{if(m&&!p.current&&f)return p.current=!0,u.current=(0,o.init)({...t,locale:d,autoTrack:r,sessionEnd:s,flushInterval:3e3,flushThreshold:5}),()=>{var e;null==(e=u.current)||e.call(u)}},[m,f]),(0,n.useEffect)(()=>{p.current&&((null==c?void 0:c.id)?(0,o.setUserId)(c.id):(0,o.clearUserId)())},[null==c?void 0:c.id]),(0,n.useEffect)(()=>{p.current&&d&&(0,o.setLocale)(d)},[d]),null}},82163:(e,t,r)=>{"use strict";r.d(t,{UtmTracker:()=>c});var n=r(79998);let a=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","gbraid","wbraid","fbclid","msclkid","ttclid"],i=null;async function o(){if(null!==i)return i;try{var e;let t=await fetch("/api/utm/status");return i=(null==(e=(await t.json()).data)?void 0:e.enabled)===!0}catch(e){return i=!1,!1}}async function s(){let e=window.location.href;if(function(e){try{let t=new URL(e).searchParams;return a.some(e=>t.has(e))}catch(e){return!1}}(e)&&await o())try{await fetch("/api/utm/track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e,referrer:document.referrer||void 0,gaClientId:function(){if("undefined"==typeof document)return;let e=document.cookie.match(/_ga=GA\d+\.\d+\.(.+?)(?:;|$)/);return e?e[1]:void 0}(),gaSessionId:function(){if("undefined"==typeof document)return;let e=document.cookie.match(/_ga_[^=]+=GS\d+\.\d+\.(\d+)/);return e?e[1]:void 0}()})})}catch(e){console.debug("UTM tracking failed:",e)}}function c(){let e=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{e.current||(e.current=!0,s())},[]),null}},83461:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var n=r(63765),a=r(26261);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,n.$)(t))}},87734:(e,t,r)=>{"use strict";r.d(t,{Z2:()=>c,b5:()=>u,bX:()=>d,lR:()=>p});var n=r(1883),a=r(97014);let i=[],o=null,s=!1;function c(e){if((0,n.cv)())return;i.push({payload:e,retryCount:0});let t=(0,n.zj)();t.debug&&console.log("[Tracking] Event queued:",e.event_name,e),i.length>=t.flushThreshold?d():l()}function l(){o||(o=setTimeout(()=>{o=null,d()},(0,n.zj)().flushInterval))}async function d(){if(s||0===i.length)return;s=!0;let e=[...i];i=[];let t=(0,n.zj)();try{let r=await fetch(t.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({events:e.map(e=>e.payload)}),keepalive:!0});if(!r.ok)throw Error("HTTP ".concat(r.status));t.debug&&console.log("[Tracking] Flushed",e.length,"events")}catch(r){t.debug&&console.error("[Tracking] Flush failed:",r),(i=[...e.map(e=>({...e,retryCount:e.retryCount+1})).filter(e=>e.retryCount<=t.maxRetries),...i]).length>0&&l()}finally{s=!1}}function u(){if(0===i.length)return!0;let e=(0,n.zj)(),t=[...i];if(i=[],"undefined"!=typeof navigator&&navigator.sendBeacon){let r=navigator.sendBeacon(e.endpoint,JSON.stringify({events:t.map(e=>e.payload)}));return e.debug&&console.log("[Tracking] Beacon sent",t.length,"events, success:",r),r||fetch(e.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({events:t.map(e=>e.payload)}),keepalive:!0}).catch(()=>{if("undefined"!=typeof localStorage)try{localStorage.setItem(a.STORAGE_KEYS.PENDING_EVENTS,JSON.stringify(t))}catch(e){}}),r}return!1}function p(){if("undefined"!=typeof localStorage)try{let e=localStorage.getItem(a.STORAGE_KEYS.PENDING_EVENTS);if(e){let t=JSON.parse(e);i=[...t,...i],localStorage.removeItem(a.STORAGE_KEYS.PENDING_EVENTS),(0,n.zj)().debug&&console.log("[Tracking] Recovered",t.length,"pending events")}}catch(e){localStorage.removeItem(a.STORAGE_KEYS.PENDING_EVENTS)}}},87999:(e,t,r)=>{"use strict";r.d(t,{NN:()=>n.ENTRY_POINTS,qY:()=>n.EVENTS,I_:()=>a.I_,nE:()=>i.useTrack}),r(96958);var n=r(97014);r(1883),r(98353);var a=r(59096);r(26209),r(3282),r(4070);var i=r(48987);r(81167)},90488:(e,t,r)=>{Promise.resolve().then(r.bind(r,246)),Promise.resolve().then(r.bind(r,37077)),Promise.resolve().then(r.bind(r,98293)),Promise.resolve().then(r.bind(r,34066)),Promise.resolve().then(r.bind(r,48987)),Promise.resolve().then(r.bind(r,81167)),Promise.resolve().then(r.bind(r,4070)),Promise.resolve().then(r.bind(r,53720)),Promise.resolve().then(r.bind(r,4624)),Promise.resolve().then(r.bind(r,47743)),Promise.resolve().then(r.bind(r,66497)),Promise.resolve().then(r.bind(r,82163)),Promise.resolve().then(r.bind(r,57006))},90697:(e,t,r)=>{"use strict";r.d(t,{Ft:()=>p,MP:()=>g,cv:()=>_,oe:()=>f,u4:()=>m,xS:()=>h});var n=r(1883),a=r(98353),i=r(87734),o=r(59096),s=r(26209);let c="en",l={},d="";class u{track(e,t,r){if((0,n.cv)())return null;(0,a.uI)();let u=(0,o.l1)(),p=(0,a.XV)(),m=(0,s.wY)(),f={event_name:e,event_id:u,properties:{locale:c,...t},visitor_id:p.visitorId,session_id:p.sessionId,user_id:p.userId,task_id:null==r?void 0:r.taskId,order_no:null==r?void 0:r.orderNo,checkout_session_id:null==r?void 0:r.checkoutSessionId,page_path:(0,o.Hy)(),referrer:(0,o.G2)(),referrer_host:(0,o.sC)(),locale:c,experiment_id:l.id,experiment_variant:l.variant,experiment_bucket:l.bucket,utm_source:m.utm_source,utm_medium:m.utm_medium,utm_campaign:m.utm_campaign,utm_term:m.utm_term,utm_content:m.utm_content,client_ts:Date.now()};return(0,i.Z2)(f),d=e,u}trackPageView(e){return this.track("view_page",e)}trackClick(e,t){var r;let n=e.dataset.analyticsAction,a=e.dataset.analyticsKey,i=e.dataset.analyticsText||(null==(r=e.innerText)?void 0:r.slice(0,100)),o=e.dataset.analyticsEntry,s=e.dataset.analyticsId||e.id;return n?this.track(n,{click_key:a,click_text:i,entry_point:o,element_id:s,...t}):null}setLocale(e){c=e}setExperiment(e){l=e}getLastAction(){return d}getSessionDuration(){return(0,a.rZ)()}flush(){return(0,i.bX)()}flushWithBeacon(){return(0,i.b5)()}}let p=new u,m=p.track.bind(p),f=p.trackPageView.bind(p),g=p.trackClick.bind(p),h=p.setLocale.bind(p),_=p.setExperiment.bind(p)},96534:(e,t,r)=>{"use strict";r.d(t,{$:()=>c,r:()=>s});var n=r(72590);r(79998);var a=r(21045),i=r(67085),o=r(83461);let s=(0,i.F)("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent text-sm font-medium transition-[color,background-color,border-color,box-shadow,transform,filter] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/40 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",{variants:{variant:{default:"bg-[linear-gradient(135deg,var(--color-primary)_0%,var(--color-primary-container)_100%)] text-primary-foreground shadow-[0_0_18px_rgba(143,245,255,0.28)] hover:brightness-110",destructive:"bg-destructive text-white shadow-[0_0_18px_rgba(255,107,137,0.24)] hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border bg-card/70 text-foreground shadow-none backdrop-blur-xl hover:bg-accent/90 hover:text-accent-foreground",secondary:"border-primary/55 bg-transparent text-primary shadow-none hover:bg-primary/10 hover:text-primary",ghost:"text-foreground shadow-none hover:bg-accent/90 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function c(e){let{className:t,variant:r,size:i,asChild:c=!1,...l}=e,d=c?a.DX:"button";return(0,n.jsx)(d,{"data-slot":"button",className:(0,o.cn)(s({variant:r,size:i,className:t})),...l})}},96958:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});let n={endpoint:"/api/tracking/event",localDisable:void 0,remoteDisable:void 0,defaultDisabled:!1,flushInterval:5e3,flushThreshold:10,maxRetries:3,debug:!1,visitorIdExpireDays:395,sessionTimeoutMinutes:30,requireConsent:!1}},97014:(e,t,r)=>{"use strict";r.r(t),r.d(t,{COOKIE_NAMES:()=>o,ENTRY_POINTS:()=>a,EVENTS:()=>n,SIGNUP_METHODS:()=>i,STORAGE_KEYS:()=>s});let n={VIEW_PAGE:"view_page",VIEW_PRICING:"view_pricing",VIEW_PROMO_POPUP:"view_promo_popup",OPEN_ACTIVITY_AI_TASKS:"open_activity_ai_tasks",VIEW_GENERATED_RESULT:"view_generated_result",AI_TASK_CREATED:"ai_task_created",AI_TASK_SUCCEEDED:"ai_task_succeeded",AI_TASK_FAILED:"ai_task_failed",RESULT_FILE_SERVED:"result_file_served",CLICK_GENERATE:"click_generate",CLICK_PRICING:"click_pricing",CLICK_DOWNLOAD:"click_download",CLICK_RESULT_PREVIEW:"click_result_preview",CLICK_AI_IMAGE_GENERATOR:"click_ai_image_generator",CLICK_TRY_Z_IMAGE_TURBO:"click_try_z_image_turbo",CLICK_TRY_KLING_3:"click_try_kling_3",CLICK_TRY_MOTION_CONTROL:"click_try_motion_control",CLICK_PROMO_OFFER:"click_promo_offer",INPUT_PROMPT:"input_prompt",SELECT_MODEL:"select_model",SWITCH_PRICING_TAB:"switch_pricing_tab",UPLOAD_IMAGE:"upload_image",VIEW_INSUFFICIENT_CREDITS_POPUP:"view_insufficient_credits_popup",CLOSE_PROMO_POPUP:"close_promo_popup",CLOSE_INSUFFICIENT_CREDITS_POPUP:"close_insufficient_credits_popup",SESSION_END:"session_end",CLICK_UNKNOWN:"click_unknown"},a={HEADER:"header",HERO:"hero",PRICING_PAGE:"pricing_page",PROMO_POPUP:"promo_popup",INSUFFICIENT_CREDITS_POPUP:"insufficient_credits_popup",DISCOUNT_BANNER:"discount_banner",PROMPT_GATE:"prompt_gate",FOOTER:"footer"},i={GOOGLE_ONE_TAP:"google_one_tap",GOOGLE_OAUTH:"google_oauth",GITHUB_OAUTH:"github_oauth",EMAIL:"email",UNKNOWN:"unknown"},o={VISITOR_ID:"_vid",SESSION_ID:"z_sid",SIGNUP_METHOD:"z_signup_method",UTM_PARAMS:"z_utm",CONSENT:"z_consent"},s={SESSION_START_TIME:"z_session_start",SESSION_LAST_ACTIVE:"z_session_last_active",EVENT_QUEUE:"z_event_queue",PENDING_EVENTS:"z_pending_events"}},97436:(e,t,r)=>{"use strict";r.r(t),r.d(t,{PaymentModal:()=>v});var n=r(72590),a=r(86247),i=r(96534),o=r(44098),s=r(69869),c=r(57006),l=r(21064),d=r(79998),u=r(28498),p=r(92853),m=r(24759),f=r(33710),g=r(24892),h=r(54544),_=r(83461);
1function x(e){let{configs:t,callbackUrl:r,loading:o,setLoading:s,pricingItem:l,onCheckout:x,className:v}=e;(0,a.c3)("common.payment"),(0,g.rd)();let{setIsShowPaymentModal:b}=(0,c.U)(),[w,y]=(0,d.useState)(null);if(r){let e=(0,m.Ym)();e!==h.q&&r.startsWith("/")&&!r.startsWith("/".concat(e))&&(r="/".concat(e).concat(r))}let S=async e=>{let{provider:t}=e;return t?l?void x(l,t):void f.toast.error("please select a pricing item"):void f.toast.error("please select payment method")},N=null==l?void 0:l.payment_providers,I=e=>!N||0===N.length||N.includes(e),E=[];return"true"===t.stripe_enabled&&I("stripe")&&E.push({name:"stripe",title:"Stripe",icon_url:"/imgs/icons/stripe.png",onClick:()=>S({provider:"stripe"})}),"true"===t.creem_enabled&&I("creem")&&E.push({name:"creem",title:"Creem",icon_url:"/imgs/icons/creem.png",onClick:()=>S({provider:"creem"})}),"true"===t.paypal_enabled&&I("paypal")&&E.push({name:"paypal",title:"Paypal",icon_url:"/imgs/icons/paypal.svg",onClick:()=>S({provider:"paypal"})}),(0,n.jsx)("div",{className:(0,_.cn)("flex w-full items-center gap-2","flex-col justify-between",v),children:E.map(e=>(0,n.jsxs)(i.$,{variant:"outline",className:(0,_.cn)("w-full gap-2"),disabled:o,onClick:()=>{if(!e.onClick||!e.name)return void f.toast.error("invalid payment method");y(e.name),e.onClick()},children:[e.icon_url&&(0,n.jsx)(u.default,{src:e.icon_url,alt:e.title||e.name||"",width:24,height:24,className:"rounded-full"}),(0,n.jsx)("h3",{children:e.title}),w===e.name&&o&&(0,n.jsx)(p.A,{className:"size-4 animate-spin"})]},e.name))})}function v(e){let{isLoading:t,pricingItem:r,onCheckout:d}=e,u=(0,a.c3)("common.payment"),{isShowPaymentModal:p,setIsShowPaymentModal:m}=(0,c.U)(),{configs:f}=(0,c.U)();return(0,l.U)("(min-width: 768px)")?(0,n.jsx)(o.lG,{open:p,onOpenChange:m,children:(0,n.jsxs)(o.Cf,{className:"sm:max-w-[425px]",children:[(0,n.jsxs)(o.c7,{children:[(0,n.jsx)(o.L3,{children:u("choose_payment_method")}),(0,n.jsx)(o.rr,{children:u("choose_payment_method_description")})]}),(0,n.jsx)(x,{callbackUrl:"/",configs:f,loading:t,setLoading:()=>{},pricingItem:r,onCheckout:d})]})}):(0,n.jsx)(s._s,{open:p,onOpenChange:m,children:(0,n.jsxs)(s.zj,{children:[(0,n.jsxs)(s.BE,{className:"text-left",children:[(0,n.jsx)(s.gk,{children:u("choose_payment_method")}),(0,n.jsx)(s.I6,{children:u("choose_payment_method_description")})]}),(0,n.jsx)(x,{callbackUrl:"/",configs:f,loading:t,setLoading:()=>{},pricingItem:r,onCheckout:d,className:"px-4"}),(0,n.jsx)(s.tb,{className:"pt-4",children:(0,n.jsx)(s.cp,{asChild:!0,children:(0,n.jsx)(i.$,{variant:"outline",children:u("cancel_title")})})})]})})}},98293:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>c});var n=r(72590),a=r(79998),i=r(24759),o=r(4735),s=r(2076);function c(e){let{children:t}=e,r=(0,i.Ym)(),c="true"===s._.dark_mode_only;return(0,a.useEffect)(()=>{"undefined"!=typeof document&&r&&(document.documentElement.lang=r)},[r]),(0,n.jsx)(o.N,{attribute:"class",defaultTheme:c?"dark":s._.appearance,forcedTheme:c?"dark":void 0,enableSystem:!1,disableTransitionOnChange:!0,children:t})}},98353:(e,t,r)=>{"use strict";let n;r.d(t,{Ar:()=>m,XV:()=>f,do:()=>p,rZ:()=>u,uI:()=>d});var a=r(1883),i=r(97014),o=r(59096);let s=null;function c(){if("undefined"==typeof sessionStorage)return null;let e=sessionStorage.getItem(i.STORAGE_KEYS.SESSION_START_TIME);return e?parseInt(e,10):null}function l(){let e=(0,a.zj)(),t=Date.now(),r=60*e.sessionTimeoutMinutes*1e3,n=function(){if("undefined"==typeof sessionStorage)return null;let e=sessionStorage.getItem(i.STORAGE_KEYS.SESSION_LAST_ACTIVE);return e?parseInt(e,10):null}(),s=c(),l=(0,o.Ri)(i.COOKIE_NAMES.SESSION_ID);return(!l||!s||n&&t-n>r)&&(l=(0,o.f6)(),(0,o.TV)(i.COOKIE_NAMES.SESSION_ID,l,1),"undefined"!=typeof sessionStorage&&sessionStorage.setItem(i.STORAGE_KEYS.SESSION_START_TIME,t.toString())),"undefined"!=typeof sessionStorage&&sessionStorage.setItem(i.STORAGE_KEYS.SESSION_LAST_ACTIVE,t.toString()),l}function d(){l()}function u(){let e=c();return e?Date.now()-e:0}function p(e){n=e}function m(){n=void 0}function f(){return{visitorId:function(){if(s)return s;let e=(0,a.zj)(),t=(0,o.Ri)(i.COOKIE_NAMES.VISITOR_ID);return t||(t=(0,o.vB)(),(0,o.TV)(i.COOKIE_NAMES.VISITOR_ID,t,e.visitorIdExpireDays)),s=t,t}(),sessionId:l(),userId:n}}}},e=>{e.O(0,[38174,65269,78216,11509,38893,16114,78625,80288,36721,34066,17517,65948,77358],()=>e(e.s=90488)),_N_E=e.O()}]);

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.