1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,796658,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HTTPAccessErrorStatus:function(){return a},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return u},getAccessFallbackErrorTypeByStatus:function(){return c},getAccessFallbackHTTPStatus:function(){return l},isHTTPAccessFallbackError:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},i=new Set(Object.values(a)),u="NEXT_HTTP_ERROR_FALLBACK";function s(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===u&&i.has(Number(r))}function l(e){return Number(e.digest.split(";")[1])}function c(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},452378,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=e.r(796658),o=e.r(956252);function a(e){return(0,o.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},203039,(e,t,r)=>{"use strict";let n,o;Object.defineProperty(r,"__esModule",{value:!0});var a={useDynamicRouteParams:function(){return n},useDynamicSearchParams:function(){return o}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},573281,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(110375)._(e.r(389959)),i=a.default.createContext(null);function u(e){let t=(0,a.useContext)(i);t&&t(e)}},998458,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={UnrecognizedActionError:function(){return a},unstable_isUnrecognizedActionError:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});class a extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function i(e){return!!(e&&"object"==typeof e&&e instanceof a)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},89090,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"notFound",{enumerable:!0,get:function(){return a}});let n=e.r(796658),o=`${n.HTTP_ERROR_FALLBACK_ERROR_CODE};404`;function a(){let e=Object.defineProperty(Error(o),"__NEXT_ERROR_CODE",{value:"E1041",enumerable:!1,configurable:!0});throw e.digest=o,e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},416905,(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"forbidden",{enumerable:!0,get:function(){return n}}),e.r(796658).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},814792,(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unauthorized",{enumerable:!0,get:function(){return n}}),e.r(796658).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},314547,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReadonlyURLSearchParams",{enumerable:!0,get:function(){return o}});class n extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams"),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1174",enumerable:!1,configurable:!0})}}class o extends URLSearchParams{append(){throw new n}delete(){throw new n}set(){throw new n}sort(){throw new n}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},956252,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={REDIRECT_ERROR_CODE:function(){return i},isRedirectError:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(288274),i="NEXT_REDIRECT";function u(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,n]=t,o=t.slice(2,-2).join(";"),u=Number(t.at(-2));return r===i&&("replace"===n||"push"===n)&&"string"==typeof o&&!isNaN(u)&&u in a.RedirectStatusCode}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},288274,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RedirectStatusCode",{enumerable:!0,get:function(){return o}});var n,o=((n={})[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},938195,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getRedirectError:function(){return s},getRedirectStatusCodeFromError:function(){return p},getRedirectTypeFromError:function(){return f},getURLFromRedirectError:function(){return d},permanentRedirect:function(){return c},redirect:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(288274),i=e.r(956252),u=e.r(814318);function s(e,t,r=a.RedirectStatusCode.TemporaryRedirect){let n=Object.defineProperty(Error(i.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n.digest=`${i.REDIRECT_ERROR_CODE};${t};${e};${r};`,n}function l(e,t){throw s(e,t??=u.actionAsyncStorage?.getStore()?.isAction?"push":"replace",a.RedirectStatusCode.TemporaryRedirect)}function c(e,t="replace"){throw s(e,t,a.RedirectStatusCode.PermanentRedirect)}function d(e){return(0,i.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function f(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function p(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,
1configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},814318,(e,t,r)=>{"use strict";let n,o,a;Object.defineProperty(r,"__esModule",{value:!0});var i={actionAsyncStorage:function(){return n},workAsyncStorage:function(){return o},workUnitAsyncStorage:function(){return a}};for(var u in i)Object.defineProperty(r,u,{enumerable:!0,get:i[u]});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},866825,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,o.isNextRouterError)(t)||(0,n.isBailoutToCSRError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=e.r(966610),o=e.r(452378);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},848634,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ReadonlyURLSearchParams:function(){return a.ReadonlyURLSearchParams},RedirectType:function(){return f},forbidden:function(){return s.forbidden},notFound:function(){return u.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},unauthorized:function(){return l.unauthorized},unstable_isUnrecognizedActionError:function(){return d},unstable_rethrow:function(){return c.unstable_rethrow}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(314547),i=e.r(938195),u=e.r(89090),s=e.r(416905),l=e.r(814792),c=e.r(866825);function d(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}let f={push:"push",replace:"replace"};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},120907,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ReadonlyURLSearchParams:function(){return u.ReadonlyURLSearchParams},RedirectType:function(){return f.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},forbidden:function(){return f.forbidden},notFound:function(){return f.notFound},permanentRedirect:function(){return f.permanentRedirect},redirect:function(){return f.redirect},unauthorized:function(){return f.unauthorized},unstable_isUnrecognizedActionError:function(){return d.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return f.unstable_rethrow},useParams:function(){return v},usePathname:function(){return b},useRouter:function(){return y},useSearchParams:function(){return m},useSelectedLayoutSegment:function(){return w},useSelectedLayoutSegments:function(){return _},useServerInsertedHTML:function(){return c.useServerInsertedHTML}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(110375)._(e.r(389959)),i=e.r(70607),u=e.r(487682),s=e.r(167034),l=e.r(203039),c=e.r(573281),d=e.r(998458),f=e.r(848634),{instrumentParamsForClientValidation:p,instrumentSearchParamsForClientValidation:g,expectCompleteParamsInClientValidation:h}={};function m(){l.useDynamicSearchParams?.("useSearchParams()");let e=(0,a.useContext)(u.SearchParamsContext);return(0,a.useMemo)(()=>e?new u.ReadonlyURLSearchParams(e):null,[e])}function b(){return l.useDynamicRouteParams?.("usePathname()"),(0,a.useContext)(u.PathnameContext)}function y(){let e=(0,a.useContext)(i.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mou
1nted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});let t=(0,a.useContext)(i.LayoutRouterContext),r=t?.parentCacheNode.bfcacheId??0;return(0,a.useMemo)(()=>({back:e.back,forward:e.forward,refresh:e.refresh,hmrRefresh:e.hmrRefresh,push:e.push,replace:e.replace,prefetch:e.prefetch,experimental_gesturePush:e.experimental_gesturePush,bfcacheId:"_b_"+r+"_"}),[e,r])}function v(){return l.useDynamicRouteParams?.("useParams()"),(0,a.useContext)(u.PathParamsContext)}function _(e="children"){l.useDynamicRouteParams?.("useSelectedLayoutSegments()");let t=(0,a.useContext)(i.LayoutRouterContext);return t?(0,s.getSelectedLayoutSegmentPath)(t.parentTree,e):null}function w(e="children"){l.useDynamicRouteParams?.("useSelectedLayoutSegment()"),(0,a.useContext)(u.NavigationPromisesContext);let t=_(e);return(0,s.computeSelectedLayoutSegment)(t,e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},546592,(e,t,r)=>{t.exports=e.r(120907)},70607,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={AppRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return s},LayoutRouterContext:function(){return u},MissingSlotContext:function(){return c},TemplateContext:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(380763)._(e.r(389959)),i=a.default.createContext(null),u=a.default.createContext(null),s=a.default.createContext(null),l=a.default.createContext(null),c=a.default.createContext(new Set)},487682,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={NavigationPromisesContext:function(){return c},PathParamsContext:function(){return l},PathnameContext:function(){return s},ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},SearchParamsContext:function(){return u},createDevToolsInstrumentedPromise:function(){return d}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(389959),i=e.r(314547),u=(0,a.createContext)(null),s=(0,a.createContext)(null),l=(0,a.createContext)(null),c=(0,a.createContext)(null);function d(e,t){let r=Promise.resolve(t);return r.status="fulfilled",r.value=t,r.displayName=`${e} (SSR)`,r}},966610,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={BailoutToCSRError:function(){return i},isBailoutToCSRError:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a="BAILOUT_TO_CLIENT_SIDE_RENDERING";class i extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=a}}function u(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===a}},780360,863056,822835,e=>{"use strict";var t=e.i(478902),r=e.i(546592),n=e.i(389959),o=e.i(923850),a=e.i(140864),i=e.i(505251),u=e.i(129009),s=e.i(43047),l=e.i(15652),c=e.i(964978);let d=[{target:'[data-tour="auction:start"]',placement:"center",title:"Getting Started with Auctions",content:"Welcome to auctions! This tour will guide you through the process.",locale:{next:"Let's go"},disableBeacon:!0,disableOverlayClose:!0,floaterProps:{styles:{floater:{width:"100%"}}}},{target:'[data-tour="auction:start"]',placement:"center",title:"What are Auctions?",content:(0,t.jsxs)(u.Stack,{children:[(0,t.jsx)(s.Text,{children:"You can bid â¡ Buzz to feature models on the homepage and resource selection areas of the site. Higher bids = better spots!"}),(0,t.jsx)(s.Text,{children:"Checkpoints will also be enabled for generation until the auction cycle ends."})]}),disableBeacon:!0,floaterProps:{styles:{floater:{width:"100%"}}},data:{onNext:async()=>{await l.default.push({pathname:"/auctions"}),await (0,c.waitForElement)({selector:'[data-tour="auction:nav"]',timeout:3e4})}}},{target:'[data-tour="auction:nav"]',title:"Select an Auction from the List",content:"First, choose the auction you want to view or participate in.",disableBeacon:!0,data:{onNext:async()=>{await (0,c.waitForElement)({selector:'[data-tour="auction:info"]',timeout:3e4})}}},{target:'[data-tour="auction:info"]',title:"View Auction Info",content:"Only a certain amount of models can win, and the minimum price must be met to place.",disableBeacon:!0,data:{onNext:async()=>{await (0,c.waitForElement)({selector:'[data-tour="auction:bid"]',timeout:3e4})}}},{target:'[data-tour="auction:bid"]',title:"Place Bid",content:"Choose a model, and place your bid! Optionally, you can have this recur every time an auction resets (until a date of your choosing).",disableBeacon:!0,data:{onNext:async()=>{await (0,c.waitForElement)({selector:'[data-tour="auction:bid-results"]',timeout:3e4})}}},{target:'[data-tour="auction:bid-results"]',title:"View Bids",content:"Below, you'll see a list of the top bids (including those beneath the minimum price, if any).",disableBeacon:!0},{target:'[data-tour="auction:start"]',placement:"center",title:"Then What?",content:"At the end of the auction cycle, winners will be determined. If you're one of them, your model will appear featured around the site! If not, you'll be fully refunded.",disableBeacon:!0,floaterProps:{styles:{floater:{width:"100%"}}},data:{onNext:async()=>{await (0,c.waitForElement)({selector:'[data-tour="auction:reset"]',timeout:3e4})}}},{target:'[data-tour="auction:reset"]',title:"All Done",content:"That's it! If you want to see this tour again, click this button.",disableBeacon:!0}],f="gen:submit",p=`[data-tour="${f}"]`,g="gen:buzz",h=`[data-tour="${g}"]`;function m(e,r){return{target:`[data-tour="${e}"]`,title:"Pick How to Remix",content:(0,t.jsxs)(s.Text,{children:[(0,t.jsx)(s.Text,{fw:600,span:!0,children:"Edit image"})," ","changes it with a prompt,"," ",(0,t.jsx)(s.Text,{fw:600,span:!0,children:"Animate"})," ","turns it into a video, and"," ",(0,t.jsx)(s.Text,{fw:600,span:!0,children:"Reuse prompt & resources"})," ","starts from its settings. Any one of them opens the generator."]}),placement:"right",disableBeacon:!0,spotlightClicks:!0,disableOverlayClose:!0,spotlightPadding:6,hideFooter:!0,...r?{data:r}:{},styles:{spotlight:{animation:"shadowGlow 2s infinite",willChange:"box-shadow"}}}}e.s(["GEN_BUZZ_KEY",0,g,"GEN_BUZZ_TARGET",0,h,"GEN_SUBMIT_KEY",0,f,"GEN_SUBMIT_TARGET",0,p],863056);var b=e.i(973612);let y={spotlight:{animation:"shadowGlow 2s infinite",willChange:"box-shadow"}},v={target:'[data-tour="gen:terms"]',title:"Accept the Terms",content:"Before generating content, you must accept the terms of service.",spotlightClicks:!0,disableBeacon:!0,disableOverlayClose:!0,disableCloseOnEsc:!0,hideCloseButton:!0,hideFooter:!0,styles:y},_={target:h,title:"Cost of Generation",content:"All AI tools on Civitai run on Buzz. Depending on the complexity of your request, the amount of Buzz may vary.",placement:"top",disableBeacon:!0},w={target:'[data-tour="gen:queue"]',title:"Your Generation Queue",content:"This is where your generated media is stored, along with all the generation details.",data:{onPrev:async()=>b.useGenerationPanelStore.setState({view:"generate"})},disableBeacon:!0},R={target:'[data-tour="gen:feed"]',title:"Your Generation Feed",disableBeacon:!0,content:"View all your generated media here in a single scrollable view.",data:{onNext:async()=>{b.useGenerationPanelStore.setState({view:"feed"}),await (0,c.waitForElement)({selector:'[data-tour="gen:select"]'})}}},P=e=>({target:'[data-tour="gen:select"]',title:"Selecting Content",content:(0,t.jsxs)(s.Text,{children:["You can select images from both the"," ",(0,t.jsx)(s.Text,{fw:600,span:!0,children:"Queue"})," ","and the"," ",(0,t.jsx)(s.Text,{fw:600,span:!0,children:"Feed"})," ","to post them on the site. ",e]}),hideFooter:!0,disableBeacon:!0,disableCloseOnEsc:!0,disableOverlayClose:!0,spotlightClicks:!0,spotlightPadding:10,data:{onBeforeStart:async()=>{b.useGenerationPanelStore.setState({opened:!0,view:"feed"})}},styles:y}),E={target:'[data-tour="gen:post"]',title:"Posting Content",content:"Click this button to post your selected content to the site.",hideFooter:!0,disableOverlayClose:!0,disableBeacon:!0,spotlightClicks:!0,data:{onBeforeStart:async()=>{b.useGenerationPanelStore.setState({opened:!0,view:"feed"})}},styles:y},C=[{target:'[data-tour="gen:start"]',placement:"center",title:"Getting Started with Content Generation",content:"Welcome to the content generation tool! This tour will guide you through the process.",locale:{next:"Let's go"},floaterProps:{styles:{floater:{width:"100%"}}},disableBeacon:!0},v,{target:'[data-tour="gen:prompt"]',title:"Start Here",spotlightClicks:!0,disableBeacon:!0,disableScrolling:!0,content:'You can type a prompt here to generate an image. Try something simple, like "a blue robot", to get started.'},{target:'[data-tour="gen:prompt"]',title:"Remix Content",content:(0,t.jsx)("div",{className:"flex flex-col gap-2",children:(0,t.jsxs)(s.Text,{children:["Alternatively, you can remix existing images on the site. Click"," ",(0,t.jsx)(s.Text,{fw:600,span:!0,children:"Next"})," ","to learn more."]})}),disableBeacon:!0,disableScrolling:!0,data:{onNext:async()=>{l.default.push({pathname:"/collections/[collectionId]",query:{collectionId:107}}),window.innerWidth<768&&b.useGenerationPanelStore.setState({opened:!1}),await (0,c.waitForElement)({selector:'[data-tour="gen:remix"]',timeout:3e4})}}},{target:'[data-tour="gen:remix"]',title:"Remix This Image",content:"Click this button to see what you can make from this image.",placement:"top",hideFooter:!0,disableBeacon:!0,spotlightClicks:!0,disableCloseOnEsc:!0,disableOverlayClose:!0,spotlightPadding:10,styles:y},m("gen:remix-menu",{onNext:async()=>{await (0,c.waitForElement)({selector:p,interval:1e3}).catch(()=>null)}}),{target:p,title:"Create Your Image",content:"Once your prompt is ready to go, hit the generate button and AI will start doing its magic!",placement:"top",hideFooter:!0,disableOverlayClose:!0,disableBeacon:!0,spotlightClicks:!0,data:{onPrev:async()=>{window.innerWidth<768&&b.useGenerationPanelStore.setState({opened:!1}),await (0,c.waitForElement)({selector:'[data-tour="gen:remix"]'}).catch(()=>null)}},styles:y},_,w,R,P("Posting lets you share your creations with the community and earn Buzz allowing you to create more!"),E],O=[{target:'[data-tour="gen:start"]',placement:"center",title:"Getting Started with Content Generation",content:"Welcome to the content generation tool! This tour will guide you through the process.",locale:{next:"Let's go"},disableBeacon:!0,disableOverlayClose:!0,floaterProps:{styles:{floater:{width:"100%"}}}},v,{target:'[data-tour="gen:prompt"]',title:"Start Here",spotlightClicks:!0,disableScrolling:!0,disableBeacon:!0,content:"Looks like you are remixing an image. You can modify the prompt here to generate an image based on the remix."},{target:p,title:"Submit Your Prompt",content:"You can submit your prompt by clicking this button and see the magic happen!",placement:"top",disableOverlayClose:!0,hideFooter:!0,disableBeacon:!0,spotlightClicks:!0,styles:y},_,w,R,P("Posting lets you share your creations with the community and earn rewards like Buzz!"),E];e.s(["contentGenerationTour",0,C,"remixContentGenerationTour",0,O],822835);let x={"content-generation":C,"remix-content-generation":O,"post-generation":[{target:'[data-tour="post:title"]',title:"Add a Title",content:"Add a title to your post to give it some context. This step is optional but helps personalize your creation.",disableBeacon:!0},{target:'[data-tour="post:tag"]',title:"Add a Tag",disableBeacon:!0,content:'Tags help other users easily find relevant content. For example, if these are cat images, adding a "cat" tag would help categorize your content.'},{target:'[data-tour="post:description"]',title:"Add a Description",disableBeacon:!0,content:"Descriptions provide additional details about your post, helping viewers understand your creation better.",data:{onNext:async()=>{await (0,c.waitForElement)({selector:'[data-tour="post:rate-resource"]',timeout:1e4,interval:1e3}).catch(()=>null)}}},{target:'[data-tour="post:rate-resource"]',title:"Rate the Resource",disableBeacon:!0,content:"Rate the resource you used to generate this content. This helps the creator improve the quality of their model."},{target:'[data-tour="post:publish"]',title:"Publish Your Post",disableBeacon:!0,content:"Once you are ready, click this button to publish your post to the site and your creations with the community!"},{target:'[data-tour="post:reset"]',title:"All Done",content:"That's it! If you want to see this tour again, click this button.",disableBeacon:!0}],"model-page":[{target:'[data-tour="model:start"]',title:"Welcome to the Model Page",content:"A model is a resource that can be used to generate content. This tour will guide you through the features of this page.",placement:"center",disableBeacon:!0,floaterProps:{styles:{floater:{width:"100%"}}}},{target:'[data-tour="model:create"]',title:"Create with this Resource",content:"Click here to generate content using this resource!",disableBeacon:!0},{target:'[data-tour="model:like"]',disableBeacon:!0,title:"Like this resource",content:"Click this button to review the resource positively and add it to your collection of liked models."},{target:'[data-tour="model:download"]',disableBeacon:!0,title:"Download Resource",content:"Download the resource here if you prefer to generate content locally.",data:{onNext:async()=>{await (0,c.waitForElement)({selector:'[data-tour="model:discussion"]'}).catch(()=>null)}}},{target:'[data-tour="model:discussion"]',disableBeacon:!0,title:"Join the Discussion",content:"Engage in discussions related to this resource."},{target:'[data-tour="model:gallery"]',disableBeacon:!0,title:"View Gallery",content:"View images created with this resource. You can add your review and post your own images that you've created using this resource.",data:{onNext:async()=>{document.querySelector('[data-tour="model:start"]')?.scrollIntoView({block:"start"}),await (0,c.waitForElement)({selector:'[data-tour="model:remix"]'}).catch(()=>null)}}},{target:'[data-tour="model:remix"]',title:"Remix This Image",content:"Click this button to see what you can make from an image â edit it with a prompt, animate it, or reuse its prompt and resources.",placement:"top",disableBeacon:!0,hideFooter:!0,spotlightClicks:!0,disableOverlayClose:!0,spotlightPadding:10,styles:{spotlight:{animation:"shadowGlow 2s infinite"}}},m("model:remix-menu")],auction:d,welcome:[{target:'[data-tour="model:start"]',title:"Welcome to Civitai!",content:"Civitai is the leading hub for AI-generated content, connecting creators to share, discover, and collaborate. Let's walk you through the tools we provide to start engaging in the community.",placement:"center",showProgress:!1,disableBeacon:!0,locale:{next:"Let's go!",skip:"No thanks"},floaterProps:{styles:{floater:{width:"100%"}}}},{target:'[data-tour="model:remix"]',title:"Create with this Resource",content:"Click here to make something from this image â edit it with a prompt, animate it, or reuse its prompt and resources. Pick any one to carry on.",placement:"top",disableBeacon:!0,showProgress:!1,hideFooter:!0,spotlightPadding:10,spotlightClicks:!0,disableOverlayClose:!0,styles:{spotlight:{animation:"shadowGlow 2s infinite"}}},m("model:remix-menu")]};var S=e.i(148063),T=e.i(280451),j=e.i(53511);let k=(0,T.default)(()=>e.A(415363),{loadableGenerated:{modules:[849162]}}),B=(0,n.createContext)({running:!1,forceRun:!1,paused:!1,trigger:"auto",currentStep:0,blockedTarget:null,runTour:()=>null,pauseTour:()=>null,closeTour:()=>null,setSteps:()=>null,setBlockedTarget:()=>null,steps:[]});e.s(["ToursProvider",0,function({children:e}){let u=(0,o.useCurrentUser)(),s=(0,r.useSearchParams)(),l=(0,r.usePathname)(),c=(0,i.useFeatureFlags)(),d=s.get("tour"),[f={},p]=(0,a.useStorage)({key:"tours",type:"localStorage",defaultValue:{},getInitialValueInEffect:!1}
1),[g,h]=(0,n.useState)(()=>({running:!1,forceRun:!1,paused:!1,trigger:d?"url":"auto",activeTour:d,currentStep:0,steps:d?x[d]??[]:[],blockedTarget:null})),m=(0,n.useRef)(null),y=(0,n.useRef)({close:e=>m.current?.close(e),go:e=>m.current?.go(e),info:()=>m.current?.info(),next:()=>m.current?.next(),open:()=>m.current?.open(),prev:()=>m.current?.prev(),reset:e=>m.current?.reset(e),skip:()=>m.current?.skip()}),{data:v,isInitialLoading:_}=S.trpc.user.getSettings.useQuery(void 0,{enabled:!!u}),w=(0,j.useMutateUserSettings)(),R=(0,n.useCallback)(e=>e?v?.tourSettings?.[e]??f[e]:void 0,[v?.tourSettings,f]),P=(0,n.useMemo)(()=>R(g.activeTour),[R,g.activeTour]),E=(0,n.useCallback)(e=>{let t=e?.key??g.activeTour,r=e?.forceRun??g.forceRun,n=R(t),o=n?.completed??!1;if((!o||r)&&(h(r=>({...r,running:!0,paused:!1,activeTour:t,steps:e?.key?x[e.key]??[]:r.steps,forceRun:e?.forceRun??r.forceRun,trigger:e?.trigger??r.trigger,currentStep:e?.step??r.currentStep})),e?.step!=null&&t&&!o)){let r={[t]:{...n,currentStep:e.step}};u&&w.mutate({tourSettings:r}),p(e=>({...e,...r}))}},[u,R,g.activeTour,g.forceRun,p,w]),C=(0,n.useCallback)(()=>{if(g.activeTour&&!R(g.activeTour)?.completed){let e={[g.activeTour]:{completed:!1,currentStep:g.currentStep}};u&&w.mutate({tourSettings:e}),p(t=>({...t,...e}))}h(e=>({...e,running:!1,paused:!0}))},[g.activeTour,g.currentStep,R,u,w,p]),O=(0,n.useCallback)(({reason:e})=>{if(g.activeTour&&!R(g.activeTour)?.completed){let t={[g.activeTour]:{completed:!0,currentStep:g.currentStep,reason:e}};u&&w.mutate({tourSettings:t}),p(e=>({...e,...t}))}h(e=>({...e,running:!1,paused:!1,currentStep:0,forceRun:!1}))},[g.activeTour,g.currentStep,R,u,w,p]),T=(0,n.useCallback)(e=>{h(t=>t.blockedTarget===e?t:{...t,blockedTarget:e})},[]);(0,n.useEffect)(()=>{if(_)return;let e=P?.currentStep??0;switch(h(t=>({...t,currentStep:e,returnUrl:l})),d){case"content-generation":case"remix-content-generation":b.useGenerationPanelStore.setState({opened:!0,view:"generate"})}},[_,d]);let M=P?.completed,A=!g.paused&&(g.running&&!M||g.forceRun)&&!_;return(0,t.jsxs)(B.Provider,{value:{...g,completed:M,run:A,runTour:E,pauseTour:C,closeTour:O,setSteps:e=>{h(t=>({...t,steps:e}))},setBlockedTarget:T,helpers:y.current},children:[e,c.appTour&&g.activeTour&&(0,t.jsx)(k,{getHelpers:e=>m.current=e})]})},"useTourContext",0,()=>{let e=(0,n.useContext)(B);if(!e)throw Error("useTourContext must be used within a TourProvider");return e}],780360)},53511,e=>{"use strict";var t=e.i(923850),r=e.i(148063),n=e.i(85179);e.s(["useCurrentUserSettings",0,function(){let e=(0,t.useCurrentUser)(),{data:n={}}=r.trpc.user.getSettings.useQuery(void 0,{enabled:!!e});return n},"useCurrentUserSettingsState",0,function(){let e=(0,t.useCurrentUser)(),{data:n,isSuccess:o}=r.trpc.user.getSettings.useQuery(void 0,{enabled:!!e});return{settings:n,isResolved:!e||o}},"useMutateUserSettings",0,function({onSuccess:e,onError:t}={}){let o=r.trpc.useUtils();return r.trpc.user.setSettings.useMutation({async onMutate(e){let t=o.user.getSettings.getData();return o.user.getSettings.setData(void 0,t=>({...t,...e})),{previousData:t}},onSuccess:e,async onError(e,r,a,i){o.user.getSettings.setData(void 0,a?.previousData),t?await t?.(e,r,a,i):(0,n.showErrorNotification)({title:"Failed to update user settings",error:Error(e.message)})}})}])},140864,e=>{"use strict";var t=e.i(802878),r=e.i(389959);function n(e){if(e)try{let t=JSON.parse(e);if("string"==typeof t&&!isNaN(Date.parse(t)))return new Date(t);return t}catch{return e}}e.s(["useStorage",0,function({type:e,key:o,defaultValue:a,getInitialValueInEffect:i=!0,deserialize:u=n,serialize:s=e=>(function(e){try{return JSON.stringify(e)}catch(e){throw Error("Failed to serialize the value")}})(e)}){let l="use-storage",c=(0,r.useCallback)(t=>{if(!(e in window)||null===window[e]||t)return a;let r=window[e].getItem(o);return null!==r?u(r):a},[o,a]),[d,f]=(0,r.useState)(c(i)),p=(0,r.useCallback)(t=>{t instanceof Function?f(r=>{let n=t(r);return window[e].setItem(o,s(n)),window.dispatchEvent(new CustomEvent(l,{detail:{key:o,value:t(r)}})),n}):(window[e].setItem(o,s(t)),window.dispatchEvent(new CustomEvent(l,{detail:{key:o,value:t}})),f(t))},[o]),g=(0,r.useCallback)(()=>{window[e].removeItem(o),window.dispatchEvent(new CustomEvent(l,{detail:{key:o,value:a}}))},[]);return(0,t.useWindowEvent)("storage",t=>{t.storageArea===window[e]&&t.key===o&&f(u(t.newValue??void 0))}),(0,t.useWindowEvent)(l,e=>
1{e.detail.key===o&&f(e.detail.value)}),(0,r.useEffect)(()=>{void 0!==a&&void 0===d&&p(a)},[a,d,p]),(0,r.useEffect)(()=>{i&&f(c())},[]),[void 0===d?a:d,p,g]}])},964978,e=>{"use strict";var t=e.i(289023);e.s(["findNearestAncestorWithProps",0,function(e,t){for(;e;){let r=t(e);if(r)return r;e=e.parentElement}},"needsColorSwap",0,function({hexColor:e,colorScheme:r,threshold:n=.5}){let o=(.299*parseInt((e=e.startsWith("#")?e.replace("#",""):e).substring(0,2),16)+.587*parseInt(e.substring(2,4),16)+.114*parseInt(e.substring(4),16))/255;if(!(0,t.isNumber)(o))return!1;if("dark"===r)if(o>n)return!1;else return!0;return!!(o>n)||!1},"waitForElement",0,function({selector:e,timeout:t=5e3,interval:r=500}){return new Promise((n,o)=>{let a=Date.now(),i=()=>{let u=document.querySelector(e);u?n(u):Date.now()-a>t?o(Error(`Timeout waiting for element: ${e}`)):setTimeout(i,r)};i()})}])}]); 2 3//# sourceMappingURL=3u99uh0uxzs7t.js.map
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.