PageSourceSearch

https://vibebx.ai/_next/static/chunks/db55f1424176f32a.js

js vibebx.ai collected 2026-10-05 13:14:51 UTC 20,611 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23077,e=>{"use strict";e.s(["default",()=>r]);var t,n=e.i(62130);function i(){return(i=Object.assign.bind()).apply(null,arguments)}let r=function(e){return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:15,height:15,fill:"none"},e),t||(t=n.createElement("path",{fill:"#fff",d:"M7.5 0C11.636 0 15 3.364 15 7.5S11.636 15 7.5 15 0 11.636 0 7.5 3.364 0 7.5 0m0 14.375A6.883 6.883 0 0 0 14.375 7.5 6.883 6.883 0 0 0 7.5.625 6.883 6.883 0 0 0 .625 7.5 6.883 6.883 0 0 0 7.5 14.375M6.25 3.047l3.995 3.61a1.13 1.13 0 0 1-.002 1.69L6.25 11.954zm.625 7.5L9.826 7.88a.503.503 0 0 0 .003-.759L6.875 4.454z"})))}},72482,e=>{"use strict";e.s(["X",()=>t.default]);var t=e.i(18142)},52162,e=>{"use strict";e.s(["Loader2",()=>t],52162);let t=(0,e.i(35325).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},25736,e=>{"use strict";e.s(["Wand2",()=>t],25736);let t=(0,e.i(35325).default)("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},90768,e=>{"use strict";e.s(["Download",()=>t.default]);var t=e.i(58237)},14544,e=>{"use strict";function t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/creations";window.history.length>1?e.back():e.push(t)}e.s(["navigateBack",()=>t])},17580,e=>{"use strict";e.s(["MODAL_SHELL_Z_INDEX",()=>n,"ModalSafeAreaShell",()=>i]);var t=e.i(24369);let n=110;function i(e){let{children:i,className:r="",overflowY:l="auto",contentClassName:s,style:o,...a}=e,c=["fixed inset-0 flex flex-col","hidden"===l?"overflow-hidden":"overflow-y-auto",r].filter(Boolean).join(" "),u=["flex min-h-0 flex-1 w-full justify-center px-3 sm:px-4",s||"items-center"].filter(Boolean).join(" ");return(0,t.jsx)("div",{className:c,style:{zIndex:n,paddingTop:"max(var(--nav-h), env(safe-area-inset-top, 0px))",paddingBottom:"max(0.75rem, env(safe-area-inset-bottom, 0px))",...o},...a,children:(0,t.jsx)("div",{className:u,children:i})})}},46430,e=>{"use strict";e.s(["Share2",()=>
1t],46430);let t=(0,e.i(35325).default)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},71648,e=>{"use strict";e.s(["MoreVertical",()=>t],71648);let t=(0,e.i(35325).default)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},52085,e=>{"use strict";e.s(["ResultActionsMenuPortal",()=>a,"ResultMenuDivider",()=>l,"ResultMenuItem",()=>s,"ResultModalHeaderActions",()=>c,"useResultActionsMenu",()=>o]);var t=e.i(24369),n=e.i(62130),i=e.i(4043);let r=e.i(17580).MODAL_SHELL_Z_INDEX+10;function l(){return(0,t.jsx)("div",{className:"h-px bg-white/10 my-1",role:"separator"})}function s(e){let{icon:n,label:i,onClick:r,danger:l=!1,disabled:s=!1,busy:o=!1}=e;return(0,t.jsxs)("button",{type:"button",role:"menuitem",onClick:r,disabled:s,"aria-busy":o||void 0,"aria-disabled":s||void 0,className:"w-full flex items-center gap-3 px-4 py-3 text-sm text-left transition\n        disabled:opacity-40 disabled:cursor-not-allowed\n        ".concat(l?"text-red-400 hover:bg-red-500/10":"text-white/80 hover:bg-white/10"),children:[(0,t.jsx)("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:n}),(0,t.jsx)("span",{className:"min-w-0 leading-snug",children:i})]})}function o(e){let{menuOpen:t,setMenuOpen:i,buttonRef:r,portalMenuRef:l,itemCount:s=5,lockOpen:o=!1}=e,[a,c]=(0,n.useState)({top:0,left:0}),u=(0,n.useCallback)(()=>{if(!r.current)return;let e=r.current.getBoundingClientRect(),t=Math.max(96,48*s),n=window.visualViewport||window,i=n.width||window.innerWidth,l=n.height||window.innerHeight,o=e.bottom+8,a=l-e.bottom,u=e.top;t>a&&u>a&&(o=e.top-t-8),c({top:o,left:Math.max(16,Math.min(i-176-16,e.right-176))})},[r,s]);return(0,n.useEffect)(()=>{if(!t)return;let e=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>{u()})});return()=>{e&&cancelAnimationFrame(e)}},[t,u]),(0,n.useEffect)(()=>{if(t)return window.addEventListener("resize",u),window.addEventListener("scroll",u,{capture:!0}),window.visualViewport&&(window.visualViewport.addEventListener("scroll",u),window.visualViewport.addEventListener("resize",u)),()=>{window.removeEventListener("resize",u),window.removeEventListener("scroll",u,{capture:!0}),window.visualViewport&&(window.visualViewport.removeEventListener("scroll",u),window.visualViewport.removeEventListener("resize",u))}},[t,u]),(0,n.useEffect)(()=>{if(!t||o)return;let e=e=>{var t,n;let s=null==(t=r.current)?void 0:t.contains(e.target),o=null==(n=l.current)?void 0:n.contains(e.target);s||o||i(!1)};return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[t,o,i,r,l]),(0,n.useEffect)(()=>{if(!t||o)return;let e=e=>{"Escape"===e.key&&i(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,o,i]),{menuPosition:a}}function a(e){let{isOpen:n,menuPosition:l,portalRef:s,children:o,className:a="fixed w-44 bg-[#201D26] rounded-lg shadow-lg overflow-hidden panel-open-glow-magenta"}=e;return n?(0,i.createPortal)((0,t.jsx)("div",{ref:s,className:a,style:{top:"".concat(l.top,"px"),left:"".concat(l.left,"px"),zIndex:r},role:"menu",children:o}),document.body):null}function c(e){let{menuButton:n,closeButton:i}=e;return(0,t.jsxs)("div",{className:"absolute top-3 sm:top-4 right-3 sm:right-4 z-10 flex items-center gap-1 sm:gap-2",children:[n,i]})}},75216,e=>{"use strict";function t(e){return null!=e}function n(e){if(null==e)return!1;let t=e.song;return null!=t&&t>0}e.s(["hasLimitedSongQuota",()=>n,"hasPlanGenerationLimits",()=>t])},28356,e=>{"use strict";e.s(["clearPendingTask",()=>a,"isPendingTaskValid",()=>c,"readPendingTask",()=>o,"writePendingTask",()=>s]);let t={image:"vb:pending:image",video:"vb:pending:video"},n={image:9e5,video:18e5},i={image:"Image",video:"Video"};function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i[e]||e,l=Object.entries(n).filter(e=>{let[,t]=e;return null!=t&&""!==t}).map(e=>{let[t,n]=e;return"".concat(t,"=").concat(n)}),s=l.length?" ".concat(l.join(" ")):"";console.log("[TaskRecovery][".concat(r,"] ").concat(t).concat(s))}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i[e]||e,l=Object.entries(n).filter(e=>{let[,t]=e;return null!=t&&""!==t}).map(e=>{let[t,n]=e;return"".concat(t,"=").concat(n)}),s=l.length?" ".concat(l.join(" ")):"";console.warn("[TaskRecovery][".concat(r,"] ").concat(t).concat(s))}function s(e,n){try{let i={...n,recoveryVersion:1};window.sessionStorage.setItem(t[e],JSON.stringify(i)),r(e,"checkpoint written",{taskId:null==n?void 0:n.taskId})}catch(e){}}function o(e){try{let n=window.sessionStorage.getItem(t[e]);if(!n)return null;let i=JSON.parse(n);if(!i||"object"!=typeof i||1!==i.recoveryVersion)return null;return i}catch(e){return null}}function a(e){try{window.sessionStorage.removeItem(t[e]),r(e,"cleared")}catch(e){}}
1function c(e,t,i){if(!e||"object"!=typeof e)return l(t,"invalid task payload"),!1;if(1!==e.recoveryVersion)return l(t,"schema version mismatch"),!1;if(!i||"string"!=typeof i)return l(t,"no authenticated user"),!1;if(e.uid!==i)return l(t,"uid mismatch"),!1;if("string"!=typeof e.taskId||!e.taskId.trim())return l(t,"missing taskId"),!1;let r=Number(e.createdAt);if(!Number.isFinite(r))return l(t,"invalid createdAt"),!1;let s=n[t];return Date.now()-r>s?(l(t,"task expired",{ageMs:Date.now()-r}),!1):"video"!==t||"string"==typeof e.model&&!!e.model.trim()||(l(t,"missing model"),!1)}},85153,e=>{"use strict";e.s(["default",()=>i]);var t=e.i(24369);let n={image:{heading:"Your image is still generating"},video:{heading:"Your video is still generating"}};function i(e){let{type:i,promptPreview:r,onResume:l,onDismiss:s}=e,o=n[i]||n.image,a=null==r?void 0:r.trim();return(0,t.jsxs)("div",{className:"mb-4 rounded-xl px-4 py-3 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",style:{background:"rgba(20, 18, 35, 0.97)",border:"1.5px solid #f59e0b",boxShadow:"0 4px 24px rgba(0,0,0,0.5), 0 0 12px rgba(245,158,11,0.2)"},role:"status",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-white",style:{fontFamily:"var(--font-geist), system-ui, sans-serif"},children:o.heading}),(0,t.jsx)("p",{className:"text-xs text-white/55 mt-0.5",style:{fontFamily:"var(--font-geist), system-ui, sans-serif"},children:"Resume without using additional credits"}),a?(0,t.jsxs)("p",{className:"text-xs text-white/40 mt-1 truncate italic",style:{fontFamily:"var(--font-geist), system-ui, sans-serif"},children:["“",a,"”"]}):null]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:l,className:"px-4 py-1.5 rounded-lg text-xs font-semibold uppercase tracking-wide",style:{border:"1.5px solid #f59e0b",color:"#0a0612",background:"#f59e0b",fontFamily:"var(--font-geist), system-ui, sans-serif"},children:"Resume"}),(0,t.jsx)("button",{type:"button",onClick:s,className:"px-3 py-1.5 rounded-lg text-xs font-medium",style:{color:"rgba(255,255,255,0.45)",background:"transparent",fontFamily:"var(--font-geist), system-ui, sans-serif"},children:"Dismiss"})]})]})}},14712,e=>{"use strict";e.s(["useFlowPromptWand",()=>s]);var t=e.i(62130),n=e.i(71114),i=e.i(31715),r=e.i(34132),l=e.i(75249);function s(e){var s,o,a,c,u;let{flow:d,prompt:m,onChange:f,valueRef:p,logPrefix:h}=e,g=(0,r.getPromptWandFlowConfig)(d),x=(0,l.isPromptWandEnabledForFlow)(d),v=(0,t.useCallback)(()=>{let e=null==p?void 0:p.current;return"string"==typeof e&&e.trim()?e.trim():String(m||"").trim()},[p,m]),y=(0,t.useCallback)(()=>{let e=null==p?void 0:p.current;return"string"==typeof e?e:String(m||"")},[p,m]),w=(0,t.useCallback)(e=>{p&&(p.current=""),f("")},[f,p]),b=(0,t.useCallback)(e=>{p&&(p.current=e),f(e)},[f,p]),k=(0,t.useCallback)(e=>{p&&(p.current=e),f(e)},[f,p]),j=(0,t.useCallback)(e=>{p&&(p.current=e),f(e)},[f,p]),E=(0,t.useCallback)(()=>{var e;return{flow:null!=(e=null==g?void 0:g.flow)?e:d,prompt:v()}},[null==g?void 0:g.flow,d,v]),{enhance:C,isEnhancing:L,enhanceError:N,clearError:M,resetEnhanceState:P}=(0,i.usePromptEnhance)({endpoint:"".concat(n.API_BASE).concat(null!=(s=null==g?void 0:g.endpoint)?s:"/api/prompt/enhance"),buildPayload:E,shouldRun:e=>!!e.prompt,getSnapshot:y,onRevealStart:w,onPartial:b,onRestore:k,onSuccess:j,valueRef:p,responseField:null!=(o=null==g?void 0:g.responseField)?o:"enhancedPrompt",logPrefix:null!=h?h:"[".concat(d,"Wand][UI]"),requestError:"Couldn't enhance prompt. Try again.",emptyResultError:"Couldn't enhance prompt. Try again."});return{showWand:x&&!!g,onEnhance:C,isEnhancing:L,canEnhance:v().length>0,enhanceError:N,clearError:M,resetEnhanceState:P,tooltipTitle:null!=(a=null==g?void 0:g.tooltipTitle)?a:"AI Prompt Enhancer",tooltipBody:null!=(c=null==g?void 0:g.tooltipBody)?c:"Turn a simple idea into a rich, production-ready prompt.",ariaLabel:null!=(u=null==g?void 0:g.ariaLabel)?u:"Enhance prompt with AI"}}},22678,e=>{"use strict";e.s(["default",()=>r]);var t,n=e.i(62130);function i(){return(i=Object.assign.bind()).apply(null,arguments)}let r=function(e){return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:15,height:17,fill:"none"},e),t||(t=n.createElement("path",{fill:"#fff",d:"M5.938 9.662v-.36L5.61 9.11l-2.59 1.534a1.22 1.22 0 0 0-.833-.337c-.69 0-1.25.581-1.25 1.296s.56 1.296 1.25 1.296 1.25-.581 1.25-1.296c0-.146-.029-.285-.073-.417l2.573-1.524m-3.75 2.588a.637.637 0 0 1-.625-.648c0-.358.28-.648.625-.648s.625.29.625.648-.28.648-.625.648m5-9.117V6.31l.312.185.313-.185V3.133c.537-.145.937-.648.937-1.25 0-.715-.56-1.296-1.25-1.296s-1.25.581-1.25 1.296c0 .602.4 1.105.938 1.25M7.5 1.235c.345 0 .625.29.625.648s-.28.648-.625.648a.637.637 0 0 1-.625-.648c0-.358.28-.648.625-.648m5.313 9.071c-.322 0-.612.13-.834.337L9.39 9.11l-.327.194v.358l2.572 1.524c-.043.132-.072.27-.072.417 0 .715.56 1.296 1.25 1.296s1.25-.581 1.25-1.296-.56-1.296-1.25-1.296m0 1.944a.637.637 0 0 1-.626-.648c0-.358.28-.648.626-.648.345 0 .624.29.624.648s-.28.648-.624.648m1.25-
17.775V9.37a2.4 2.4 0 0 0-.626-.268V5.22L7.814 8.55v6.65l3.136-1.886c.146.171.309.327.494.453L7.5 16.138l-3.94-2.372c.184-.126.346-.282.492-.453l3.136 1.888V8.55L1.563 5.218v3.884a2.4 2.4 0 0 0-.625.267V4.474l4.079-2.417q.024.35.13.67L1.883 4.66 7.5 7.988l5.618-3.328-3.265-1.933a2.6 2.6 0 0 0 .13-.67z"})))}},80418,e=>{"use strict";e.s(["default",()=>r]);var t,n=e.i(62130);function i(){return(i=Object.assign.bind()).apply(null,arguments)}let r=function(e){return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:22,height:8,fill:"none"},e),t||(t=n.createElement("path",{stroke:"#fff",strokeWidth:.6,d:"M.3.3h21.4v7.4H.3z"})))}},30038,e=>{"use strict";e.s(["Trash",()=>t],30038);let t=(0,e.i(35325).default)("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},61672,e=>{"use strict";e.s(["GenerationCancelConfirmModal",()=>n]);var t=e.i(24369);function n(e){let{open:n,title:i,unlimitedPlanMessage:r,onKeepGenerating:l,onConfirmCancel:s,confirmDisabled:o=!1,showUsageLimitWarning:a=!0,limitedPlanMessage:c="This generation has already started and will still count toward your usage limit."}=e;return n?(0,t.jsxs)("div",{className:"fixed inset-0 z-[99999] flex items-center justify-center px-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm",onClick:l,"aria-hidden":"true"}),(0,t.jsx)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"generation-cancel-confirm-title",className:"relative w-full max-w-md rounded-2xl bg-[#ED62E0] p-[1px] shadow-2xl",onClick:e=>e.stopPropagation(),children:(0,t.jsxs)("div",{className:"rounded-2xl bg-[#141218] p-6 border border-white/10",children:[(0,t.jsx)("h3",{id:"generation-cancel-confirm-title",className:"text-white text-lg font-semibold mb-2",children:i}),(0,t.jsx)("p",{className:"text-neutral-300 text-sm leading-relaxed mb-6",children:a?c:r}),(0,t.jsxs)("div",{className:"flex flex-col-reverse sm:flex-row sm:items-center sm:justify-end gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:l,disabled:o,className:"px-4 py-2 rounded-xl border border-white/15 text-white/90 hover:bg-white/5 transition disabled:opacity-50 disabled:cursor-not-allowed",children:"Keep generating"}),(0,t.jsx)("button",{type:"button",onClick:s,disabled:o,className:"px-4 py-2 rounded-xl text-white font-medium bg-[#ED62E0] hover:opacity-90 transition disabled:opacity-50 disabled:cursor-not-allowed",children:"Yes, cancel generation"})]})]})})]}):null}},14353,e=>{"use strict";e.s(["default",()=>b],14353);var t=e.i(24369),n=e.i(28458),i=e.i(53173);e.i(45016);var r=e.i(62130),l=e.i(74488),s=e.i(45961),o=e.i(5304),a=e.i(84073),c=e.i(20180),u=r,d=e.i(37659);function m(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends u.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,c.isHTMLElement)(e)&&e.offsetWidth||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function p(e){let{children:n,isPresent:i,anchorX:l,root:s}=e,o=(0,u.useId)(),a=(0,u.useRef)(null),c=(0,u.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=(0,u.useContext)(d.MotionConfigContext),h=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useCallback(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1,i=t.map(t=>{let i=m(t,e);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let e=0;e<i.length;e++){let n=i[e];"function"==typeof n?n():m(t[e],null)}}}}(...t),t)}(a,null==n?void 0:n.ref);return(0,u.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:r,right:u}=c.current;if(i||!a.current||!e||!t)return;a.current.dataset.motionPopId=o;let d=document.createElement("style");p&&(d.nonce=p);let m=null!=s?s:document.head;return m.appendChild(d),d.sheet&&d.sheet.insertRule('\n          [data-motion-pop-id="'.concat(o,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===l?"left: ".concat(r):"right: ".concat(u),"px !important;\n            top: ").concat(n,"px !important;\n          }\n        ")),()=>{m.contains(d)&&m.removeChild(d)}},[i]),(0,t.jsx)(f,{isPresent:i,childRef:a,sizeRef:c,children:u.cloneElement(n,{ref:h})})}let h=e=>{let{children:n,initial:i,isPresent:l,onExitComplete:o,custom:c,presenceAffectsLayout:u,mode:d,anchorX:m,root:f}=e,h=(0,s.useConstant)(g),x=(0,r.useId)(),v=!0,y=(0,r.useMemo)(()=>
1(v=!1,{id:x,initial:i,isPresent:l,custom:c,onExitComplete:e=>{for(let t of(h.set(e,!0),h.values()))if(!t)return;o&&o()},register:e=>(h.set(e,!1),()=>h.delete(e))}),[l,h,o]);return u&&v&&(y={...y}),(0,r.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[l]),r.useEffect(()=>{l||h.size||!o||o()},[l]),"popLayout"===d&&(n=(0,t.jsx)(p,{isPresent:l,anchorX:m,root:f,children:n})),(0,t.jsx)(a.PresenceContext.Provider,{value:y,children:n})};function g(){return new Map}var x=e.i(42262);let v=e=>e.key||"";function y(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let w=e=>{let{children:n,custom:i,initial:a=!0,onExitComplete:c,presenceAffectsLayout:u=!0,mode:d="sync",propagate:m=!1,anchorX:f="left",root:p}=e,[g,w]=(0,x.usePresence)(m),b=(0,r.useMemo)(()=>y(n),[n]),k=m&&!g?[]:b.map(v),j=(0,r.useRef)(!0),E=(0,r.useRef)(b),C=(0,s.useConstant)(()=>new Map),[L,N]=(0,r.useState)(b),[M,P]=(0,r.useState)(b);(0,o.useIsomorphicLayoutEffect)(()=>{j.current=!1,E.current=b;for(let e=0;e<M.length;e++){let t=v(M[e]);k.includes(t)?C.delete(t):!0!==C.get(t)&&C.set(t,!1)}},[M,k.length,k.join("-")]);let R=[];if(b!==L){let e=[...b];for(let t=0;t<M.length;t++){let n=M[t],i=v(n);k.includes(i)||(e.splice(t,0,n),R.push(n))}return"wait"===d&&R.length&&(e=R),P(y(e)),N(b),null}let{forceRender:I}=(0,r.useContext)(l.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:M.map(e=>{let n=v(e),r=(!m||!!g)&&(b===M||k.includes(n));return(0,t.jsx)(h,{isPresent:r,initial:(!j.current||!!a)&&void 0,custom:i,presenceAffectsLayout:u,mode:d,root:p,onExitComplete:r?void 0:()=>{if(!C.has(n))return;C.set(n,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(null==I||I(),P(E.current),m&&(null==w||w()),c&&c())},anchorX:f,children:e},n)})})};function b(e){let{show:r,onClose:l}=e,s=(0,n.useRouter)();return r?(0,t.jsx)(w,{children:(0,t.jsx)(i.motion.div,{className:"fixed inset-0 bg-black/70 backdrop-blur-sm flex items-center justify-center z-[200] p-4",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},children:(0,t.jsxs)(i.motion.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},transition:{type:"spring",stiffness:180,damping:18},className:"bg-[#1f1d24] border border-white/20 rounded-2xl p-5 sm:p-8 text-center w-full max-w-sm shadow-[0_0_25px_rgba(255,255,255,0.08)] max-h-[min(88vh,560px)] overflow-y-auto",children:[(0,t.jsx)("h2",{className:"text-lg sm:text-xl font-semibold mb-3 text-white",children:"Login Required"}),(0,t.jsx)("p",{className:"text-neutral-400 mb-6 text-sm",children:"Please sign in to continue creating your song 🎵"}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("button",{onClick:()=>{null==l||l(),s.push("/signin")},className:"bg-gradient-to-r from-purple-500 via-pink-400 to-orange-400 text-white rounded-lg py-2 font-medium transition hover:opacity-90",children:"Go to Login"}),(0,t.jsx)("button",{onClick:l,className:"text-sm text-neutral-400 hover:text-white transition",children:"Cancel"})]})]},"modal")},"overlay")}):null}}]);

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.