1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74058,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={callServer:function(){return n.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var o in a)Object.defineProperty(r,o,{enumerable:!0,get:a[o]});let n=e.r(635894),i=e.r(699381),s=e.r(732080)},528580,e=>{"use strict";let t=(0,e.i(667784).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",()=>t])},515246,e=>{"use strict";var t=e.i(528580);e.s(["Loader2Icon",()=>t.default])},793479,e=>{"use strict";var t=e.i(413274),r=e.i(975157);function a({className:e,type:a,...o}){return(0,t.jsx)("input",{type:a,"data-slot":"input",className:(0,r.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...o})}e.s(["Input",()=>a])},161158,e=>{"use strict";var t=e.i(862667),r=e.i(291967),a=e.i(226099),o=e.i(780600),n=e.i(450021),i=e.i(254856),s=e.i(903070),l=e.i(878223),d=e.i(107530),c=e.i(238716),u=e.i(83812),p=e.i(599593),f=e.i(729494),h=e.i(73772),m=e.i(265323),g=e.i(413274),v="Dialog",[b,x]=(0,o.createContextScope)(v),[y,w]=b(v),C=e=>{let{__scopeDialog:r,children:a,open:o,defaultOpen:s,onOpenChange:l,modal:d=!0}=e,c=t.useRef(null),u=t.useRef(null),[p,f]=(0,i.useControllableState)({prop:o,defaultProp:s??!1,onChange:l,caller:v});return(0,g.jsx)(y,{scope:r,triggerRef:c,contentRef:u,contentId:(0,n.useId)(),titleId:(0,n.useId)(),descriptionId:(0,n.useId)(),open:p,onOpenChange:f,onOpenToggle:t.useCallback(()=>f(e=>!e),[f]),modal:d,children:a})};C.displayName=v;var R="DialogTrigger",j=t.forwardRef((e,t)=>{let{__scopeDialog:o,...n}=e,i=w(R,o),s=(0,a.useComposedRefs)(t,i.triggerRef);return(0,g.jsx)(u.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":$(i.open),...n,ref:s,onClick:(0,r.composeEventHandlers)(e.onClick,i.onOpenToggle)})});j.displayName=R;var S="DialogPortal",[_,A]=b(S,{forceMount:void 0}),k=e=>{let{__scopeDialog:r,forceMount:a,children:o,container:n}=e,i=w(S,r);return(0,g.jsx)(_,{scope:r,forceMount:a,children:t.Children.map(o,e=>(0,g.jsx)(c.Presence,{present:a||i.open,children:(0,g.jsx)(d.Portal,{asChild:!0,container:n,children:e})}))})};k.displayName=S;var D="DialogOverlay",P=t.forwardRef((e,t)=>{let r=A(D,e.__scopeDialog),{forceMount:a=r.forceMount,...o}=e,n=w(D,e.__scopeDialog);return n.modal?(0,g.jsx)(c.Presence,{present:a||n.open,children:(0,g.jsx)(I,{...o,ref:t})}):null});P.displayName=D;var E=(0,m.createSlot)("DialogOverlay.RemoveScroll"),I=t.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,o=w(D,r);return(0,g.jsx)(f.RemoveScroll,{as:E,allowPinchZoom:!0,shards:[o.contentRef],children:(0,g.jsx)(u.Primitive.div,{"data-state":$(o.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),T="DialogContent",N=t.forwardRef((e,t)=>{let r=A(T,e.__scopeDialog),{forceMount:a=r.forceMount,...o}=e,n=w(T,e.__scopeDialog);return(0,g.jsx)(c.Presence,{present:a||n.open,children:n.modal?(0,g.jsx)(O,{...o,ref:t}):(0,g.jsx)(F,{...o,ref:t})})});N.displayName=T;var O=t.forwardRef((e,o)=>{let n=w(T,e.__scopeDialog),i=t.useRef(null),s=(0,a.useComposedRefs)(o,n.contentRef,i);return t.useEffect(()=>{let e=i.current;if(e)return(0,h.hideOthers)(e)},[]),(0,g.jsx)(L,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),F=t.forwardRef((e,r)=>{let a=w(T,e.__scopeDialog),o=t.useRef(!1),n=t.useRef(!1);return(0,g.jsx)(L,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||a.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(n.current=!0));let r=t.target;a.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})}),L=t.forwardRef((e,r)=>{let{__scopeDialog:o,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:d,...c}=e,u=w(T,o),f=t.useRef(null),h=(0,a.useComposedRefs)(r,f);return(0,p.useFocusGuards)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:d,children:(0,g.jsx)(s.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":$(u.open),...c,ref:h,onDismiss:()=>u.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(V,{titleId:u.titleId}),(0,g.jsx)(G,{contentRef:f,descriptionId:u.descriptionId})]})]})}),M="DialogTitle",z=t.forwardRef((e,t)=>
1{let{__scopeDialog:r,...a}=e,o=w(M,r);return(0,g.jsx)(u.Primitive.h2,{id:o.titleId,...a,ref:t})});z.displayName=M;var U="DialogDescription",Q=t.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,o=w(U,r);return(0,g.jsx)(u.Primitive.p,{id:o.descriptionId,...a,ref:t})});Q.displayName=U;var H="DialogClose",B=t.forwardRef((e,t)=>{let{__scopeDialog:a,...o}=e,n=w(H,a);return(0,g.jsx)(u.Primitive.button,{type:"button",...o,ref:t,onClick:(0,r.composeEventHandlers)(e.onClick,()=>n.onOpenChange(!1))})});function $(e){return e?"open":"closed"}B.displayName=H;var W="DialogTitleWarning",[q,K]=(0,o.createContext)(W,{contentName:T,titleName:M,docsSlug:"dialog"}),V=({titleId:e})=>{let r=K(W),a=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return t.useEffect(()=>{e&&(document.getElementById(e)||console.error(a))},[a,e]),null},G=({contentRef:e,descriptionId:r})=>{let a=K("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${a.contentName}}.`;return t.useEffect(()=>{let t=e.current?.getAttribute("aria-describedby");r&&t&&(document.getElementById(r)||console.warn(o))},[o,e,r]),null};e.s(["Close",()=>B,"Content",()=>N,"Description",()=>Q,"Dialog",()=>C,"DialogClose",()=>B,"DialogContent",()=>N,"DialogDescription",()=>Q,"DialogOverlay",()=>P,"DialogPortal",()=>k,"DialogTitle",()=>z,"DialogTrigger",()=>j,"Overlay",()=>P,"Portal",()=>k,"Root",()=>C,"Title",()=>z,"Trigger",()=>j,"WarningProvider",()=>q,"createDialogScope",()=>x])},905427,323726,e=>{"use strict";var t=e.i(161158);e.s(["Dialog",0,t],905427);var r=e.i(921236);e.s(["XIcon",()=>r.default],323726)},99004,e=>{"use strict";let t;var r=e.i(82679),a=e.i(259864),o=e.i(959243),n=e.i(578889),i=e.i(757142),s=e.i(766271),l=e.i(305763),d=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,i.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#a=void 0;#o=void 0;#n=void 0;#i;#s;#r;#t;#l;#d;#c;#u;#p;#f;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#a.addObserver(this),c(this.#a,this.options)?this.#m():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.#a,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.#a,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#b(),this.#a.removeObserver(this)}setOptions(e){let t=this.options,r=this.#a;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,s.resolveEnabled)(this.options.enabled,this.#a))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#a.setOptions(this.options),t._defaulted&&!(0,s.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#a,observer:this});let a=this.hasListeners();a&&p(this.#a,r,this.options,t)&&this.#m(),this.updateResult(),a&&(this.#a!==r||(0,s.resolveEnabled)(this.options.enabled,this.#a)!==(0,s.resolveEnabled)(t.enabled,this.#a)||(0,s.resolveStaleTime)(this.options.staleTime,this.#a)!==(0,s.resolveStaleTime)(t.staleTime,this.#a))&&this.#y();let o=this.#w();a&&(this.#a!==r||(0,s.resolveEnabled)(this.options.enabled,this.#a)!==(0,s.resolveEnabled)(t.enabled,this.#a)||o!==this.#f)&&this.#C(o)}getOptimisticResult(e){var t,r;let a=this.#e.getQueryCache().build(this.#e,e),o=this.createResult(a,e);return t=this,r=o,(0,s.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#n=o,this.#s=this.options,this.#i=this.#a.state),o}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#a}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#m(e){this.#x();let t=this.#a.fetch(this.options,e);return e?.throwOnError||(t=t.catch(s.noop)),t}#y(){this.#v();let e=(0,s.resolveStaleTime)(this.options.staleTime,this.#a);if(s.isServer||this.#n.isStale||!(0,s.isValidTimeout)(e))return;let t=(0,s.timeUntilStale)(this.#n.dataUpdatedAt,e);this.#u=l.timeoutManager.setTimeout(()=>{this.#n.isStale||this.updateResult()},t+1)}#w(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#a):this.options.refetchInterval)??!1}#C(e){this.#b(),this.#f=e,!s.isServer&&!1!==(0,s.resolveEnabled)(this.options.enabled,this.#a)&&(0,s.isValidTimeout)(this.#f)&&0!==this.#f&&(this.#p=l.timeoutManager.setInterval(()=>
5{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#m()},this.#f))}#g(){this.#y(),this.#C(this.#w())}#v(){this.#u&&(l.timeoutManager.clearTimeout(this.#u),this.#u=void 0)}#b(){this.#p&&(l.timeoutManager.clearInterval(this.#p),this.#p=void 0)}createResult(e,t){let r,a=this.#a,n=this.options,l=this.#n,d=this.#i,u=this.#s,h=e!==a?e.state:this.#o,{state:m}=e,g={...m},v=!1;if(t._optimisticResults){let r=this.hasListeners(),i=!r&&c(e,t),s=r&&p(e,a,t,n);(i||s)&&(g={...g,...(0,o.fetchState)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:x,status:y}=g;r=g.data;let w=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===y){let e;l?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(e=l.data,w=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(y="success",r=(0,s.replaceData)(l?.data,e,t),v=!0)}if(t.select&&void 0!==r&&!w)if(l&&r===d?.data&&t.select===this.#l)r=this.#d;else try{this.#l=t.select,r=t.select(r),r=(0,s.replaceData)(l?.data,r,t),this.#d=r,this.#t=null}catch(e){this.#t=e}this.#t&&(b=this.#t,r=this.#d,x=Date.now(),y="error");let C="fetching"===g.fetchStatus,R="pending"===y,j="error"===y,S=R&&C,_=void 0!==r,A={status:y,fetchStatus:g.fetchStatus,isPending:R,isSuccess:"success"===y,isError:j,isInitialLoading:S,isLoading:S,data:r,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:x,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:C,isRefetching:C&&!R,isLoadingError:j&&!_,isPaused:"paused"===g.fetchStatus,isPlaceholderData:v,isRefetchError:j&&_,isStale:f(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,s.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==A.data,r="error"===A.status&&!t,o=e=>{r?e.reject(A.error):t&&e.resolve(A.data)},n=()=>{o(this.#r=A.promise=(0,i.pendingThenable)())},s=this.#r;switch(s.status){case"pending":e.queryHash===a.queryHash&&o(s);break;case"fulfilled":(r||A.data!==s.value)&&n();break;case"rejected":r&&A.error===s.reason||n()}}return A}updateResult(){let e=this.#n,t=this.createResult(this.#a,this.options);if(this.#i=this.#a.state,this.#s=this.options,void 0!==this.#i.data&&(this.#c=this.#a),(0,s.shallowEqualObjects)(t,e))return;this.#n=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#h.size)return!0;let a=new Set(r??this.#h);return this.options.throwOnError&&a.add("error"),Object.keys(this.#n).some(t=>this.#n[t]!==e[t]&&a.has(t))};this.#R({listeners:r()})}#x(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#a)return;let t=this.#a;this.#a=e,this.#o=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#R(e){a.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#a,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,s.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&u(e,t,t.refetchOnMount)}function u(e,t,r){if(!1!==(0,s.resolveEnabled)(t.enabled,e)&&"static"!==(0,s.resolveStaleTime)(t.staleTime,e)){let a="function"==typeof r?r(e):r;return"always"===a||!1!==a&&f(e,t)}return!1}function p(e,t,r,a){return(e!==t||!1===(0,s.resolveEnabled)(a.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,s.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,s.resolveStaleTime)(t.staleTime,e))}e.i(354414);var h=e.i(862667),m=e.i(198892);e.i(413274);var g=h.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),v=h.createContext(!1);v.Provider;var b=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function x(e,t){return function(e,t,r){let o,n=h.useContext(v),i=h.useContext(g),l=(0,m.useQueryClient)(r),d=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(d);let c=l.getQueryCache().get(d.queryHash);if(d._optimisticResults=n?"isRestoring":"optimistic",d.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=d.staleTime;d.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof d.gcTime&&(d.gcTime=Math.max(d.gcTime,1e3))}o=c?.state.error&&"function"==typeof d.throwOnError?(0,s.shouldThrowError)(d.throwOnError,[c.state.error,c]):d.throwOnError,(d.suspense||d.experimental_prefetchInRender||o)&&!i.isReset()&&(d.retryOnMount=!1),h.useEffect(()=>{i.clearReset()},[i]);let u=!l.getQueryCache().get(d.queryHash),[p]=h.useState(()=>new t(l,d)),f=p.getOptimisticResult(d),x=!n&&!1!==e.subscribed;if(h.useSyncExternalStore(h.useCallback(e=>{let t=x?p.subscribe(a.notifyManager.batchCalls(e)):s.noop;return p.updateResult(),t},[p,x]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),h.useEffect(()=>{p.setOptions(d)},[d,p]),d?.suspense&&f.isPending)throw b(d,p,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:a,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(o&&void 0===e.data||(0,s.shouldThrowError)(r,[e.error,a])))({result:f,errorResetBoundary:i,throwOnError:d.throwOnError,query:c,suspense:d.suspense}))throw f.error;if(l.getDefaultOptions().queries?._experimental_afterQuery?.(d,f),d.experimental_prefetchInRender&&!s.isServer&&f.isLoading&&f.isFetching&&!n){let e=u?b(d,p,i):c?.promise;e?.catch(s.noop).finally(()=>{p.updateResult()})}return d.notifyOnChangeProps?f:p.trackResult(f)}(e,d,t)}e.s(["useQuery",()=>x],99004)},775365,e=>{"use strict";function t(){}e.s(["devLog",()=>t])},609963,e=>{"use strict";let t=(0,e.i(667784).default)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);e.s(["default",()=>t])},204055,e=>{"use strict";let t=(0,e.i(667784).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],204055)},297651,e=>{"use strict";var t=e.i(862667),r=e.i(291967),a=e.i(780600),o=e.i(254856),n=e.i(190464),i=e.i(226099),s=e.i(83812),l=e.i(238716),d=e.i(450021),c=e.i(413274),u="Collapsible",[p,f]=(0,a.createContextScope)(u),[h,m]=p(u),g=t.forwardRef((e,r)=>{let{__scopeCollapsible:a,open:n,defaultOpen:i,disabled:l,onOpenChange:p,...f}=e,[m,g]=(0,o.useControllableState)({prop:n,defaultProp:i??!1,onChange:p,caller:u});return(0,c.jsx)(h,{scope:a,disabled:l,contentId:(0,d.useId)(),open:m,onOpenToggle:t.useCallback(()=>g(e=>!e),[g]),children:(0,c.jsx)(s.Primitive.div,{"data-state":C(m),"data-disabled":l?"":void 0,...f,ref:r})})});g.displayName=u;var v="CollapsibleTrigger",b=t.forwardRef((e,t)=>
5{let{__scopeCollapsible:a,...o}=e,n=m(v,a);return(0,c.jsx)(s.Primitive.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":C(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...o,ref:t,onClick:(0,r.composeEventHandlers)(e.onClick,n.onOpenToggle)})});b.displayName=v;var x="CollapsibleContent",y=t.forwardRef((e,t)=>{let{forceMount:r,...a}=e,o=m(x,e.__scopeCollapsible);return(0,c.jsx)(l.Presence,{present:r||o.open,children:({present:e})=>(0,c.jsx)(w,{...a,ref:t,present:e})})});y.displayName=x;var w=t.forwardRef((e,r)=>{let{__scopeCollapsible:a,present:o,children:l,...d}=e,u=m(x,a),[p,f]=t.useState(o),h=t.useRef(null),g=(0,i.useComposedRefs)(r,h),v=t.useRef(0),b=v.current,y=t.useRef(0),w=y.current,R=u.open||p,j=t.useRef(R),S=t.useRef(void 0);return t.useEffect(()=>{let e=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,n.useLayoutEffect)(()=>{let e=h.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,y.current=t.width,j.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),f(o)}},[u.open,o]),(0,c.jsx)(s.Primitive.div,{"data-state":C(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!R,...d,ref:g,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:R&&l})});function C(e){return e?"open":"closed"}e.s(["Collapsible",()=>g,"CollapsibleContent",()=>y,"CollapsibleTrigger",()=>b,"Content",()=>y,"Root",()=>g,"Trigger",()=>b,"createCollapsibleScope",()=>f])},273443,e=>{"use strict";var t=e.i(413274),r=e.i(862667),a=e.i(780600),o=e.i(482430),n=e.i(226099),i=e.i(291967),s=e.i(254856),l=e.i(83812),d=e.i(297651),c=e.i(450021),u=e.i(62799),p="Accordion",f=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[h,m,g]=(0,o.createCollection)(p),[v,b]=(0,a.createContextScope)(p,[g,d.createCollapsibleScope]),x=(0,d.createCollapsibleScope)(),y=r.default.forwardRef((e,r)=>{let{type:a,...o}=e;return(0,t.jsx)(h.Provider,{scope:e.__scopeAccordion,children:"multiple"===a?(0,t.jsx)(_,{...o,ref:r}):(0,t.jsx)(S,{...o,ref:r})})});y.displayName=p;var[w,C]=v(p),[R,j]=v(p,{collapsible:!1}),S=r.default.forwardRef((e,a)=>{let{value:o,defaultValue:n,onValueChange:i=()=>{},collapsible:l=!1,...d}=e,[c,u]=(0,s.useControllableState)({prop:o,defaultProp:n??"",onChange:i,caller:p});return(0,t.jsx)(w,{scope:e.__scopeAccordion,value:r.default.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:r.default.useCallback(()=>l&&u(""),[l,u]),children:(0,t.jsx)(R,{scope:e.__scopeAccordion,collapsible:l,children:(0,t.jsx)(D,{...d,ref:a})})})}),_=r.default.forwardRef((e,a)=>{let{value:o,defaultValue:n,onValueChange:i=()=>{},...l}=e,[d,c]=(0,s.useControllableState)({prop:o,defaultProp:n??[],onChange:i,caller:p}),u=r.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),f=r.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(w,{scope:e.__scopeAccordion,value:d,onItemOpen:u,onItemClose:f,children:(0,t.jsx)(R,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(D,{...l,ref:a})})})}),[A,k]=v(p),D=r.default.forwardRef((e,a)=>{let{__scopeAccordion:o,disabled:s,dir:d,orientation:c="vertical",...p}=e,g=r.default.useRef(null),v=(0,n.useComposedRefs)(g,a),b=m(o),x="ltr"===(0,u.useDirection)(d),y=(0,i.composeEventHandlers)(e.onKeyDown,e=>{if(!f.includes(e.key))return;let t=e.target,r=b().filter(e=>!e.ref.current?.disabled),a=r.findIndex(e=>e.ref.current===t),o=r.length;if(-1===a)return;e.preventDefault();let n=a,i=o-1,s=()=>{(n=a+1)>i&&(n=0)},l=()=>{(n=a-1)<0&&(n=i)};switch(e.key){case"Home":n=0;break;case"End":n=i;break;case"ArrowRight":"horizontal"===c&&(x?s():l());break;case"ArrowDown":"vertical"===c&&s();break;case"ArrowLeft":"horizontal"===c&&(x?l():s());break;case"ArrowUp":"vertical"===c&&l()}let d=n%o;r[d].ref.current?.focus()});return(0,t.jsx)(A,{scope:o,disabled:s,direction:d,orientation:c,children:(0,t.jsx)(h.Slot,{scope:o,children:(0,t.jsx)(l.Primitive.div,{...p,"data-orientation":c,ref:v,onKeyDown:s?void 0:y})})})}),P="AccordionItem",[E,I]=v(P),T=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,value:o,...n}
5=e,i=k(P,a),s=C(P,a),l=x(a),u=(0,c.useId)(),p=o&&s.value.includes(o)||!1,f=i.disabled||e.disabled;return(0,t.jsx)(E,{scope:a,open:p,disabled:f,triggerId:u,children:(0,t.jsx)(d.Root,{"data-orientation":i.orientation,"data-state":U(p),...l,...n,ref:r,disabled:f,open:p,onOpenChange:e=>{e?s.onItemOpen(o):s.onItemClose(o)}})})});T.displayName=P;var N="AccordionHeader",O=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,...o}=e,n=k(p,a),i=I(N,a);return(0,t.jsx)(l.Primitive.h3,{"data-orientation":n.orientation,"data-state":U(i.open),"data-disabled":i.disabled?"":void 0,...o,ref:r})});O.displayName=N;var F="AccordionTrigger",L=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,...o}=e,n=k(p,a),i=I(F,a),s=j(F,a),l=x(a);return(0,t.jsx)(h.ItemSlot,{scope:a,children:(0,t.jsx)(d.Trigger,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":n.orientation,id:i.triggerId,...l,...o,ref:r})})});L.displayName=F;var M="AccordionContent",z=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,...o}=e,n=k(p,a),i=I(M,a),s=x(a);return(0,t.jsx)(d.Content,{role:"region","aria-labelledby":i.triggerId,"data-orientation":n.orientation,...s,...o,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function U(e){return e?"open":"closed"}z.displayName=M,e.s(["Accordion",()=>y,"AccordionContent",()=>z,"AccordionHeader",()=>O,"AccordionItem",()=>T,"AccordionTrigger",()=>L,"Content",()=>z,"Header",()=>O,"Item",()=>T,"Root",()=>y,"Trigger",()=>L,"createAccordionScope",()=>b],441211);var Q=e.i(441211),Q=Q,H=e.i(975157),B=e.i(628997),$=e.i(8362);function W({className:e,...r}){return(0,t.jsx)(Q.Root,{"data-slot":"accordion",className:(0,H.cn)("flex w-full flex-col",e),...r})}function q({className:e,...r}){return(0,t.jsx)(Q.Item,{"data-slot":"accordion-item",className:(0,H.cn)("not-last:border-b",e),...r})}function K({className:e,children:r,headingLevel:a="h3",...o}){return(0,t.jsx)(Q.Header,{asChild:!0,children:(0,t.jsx)(a,{className:"flex",children:(0,t.jsxs)(Q.Trigger,{"data-slot":"accordion-trigger",className:(0,H.cn)("group/accordion-trigger relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:after:border-ring disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground",e),...o,children:[r,(0,t.jsx)(B.ChevronDownIcon,{"data-slot":"accordion-trigger-icon",className:"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"}),(0,t.jsx)($.ChevronUpIcon,{"data-slot":"accordion-trigger-icon",className:"pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"})]})})})}function V({className:e,children:r,...a}){return(0,t.jsx)(Q.Content,{"data-slot":"accordion-content",className:"overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up",...a,children:(0,t.jsx)("div",{className:(0,H.cn)("pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),children:r})})}e.s(["Accordion",()=>W,"AccordionContent",()=>V,"AccordionItem",()=>q,"AccordionTrigger",()=>K],273443)},528935,e=>{"use strict";var t=e.i(528580);e.s(["LoaderCircle",()=>t.default])},809651,e=>{"use strict";let t=(0,e.i(667784).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",()=>t],809651)},868499,e=>{"use strict";var t=e.i(413274),r=e.i(862667),a=e.i(780600),o=e.i(226099),n=e.i(161158),i=e.i(291967),s=e.i(265323),l="AlertDialog",[d,c]=(0,a.createContextScope)(l,[n.createDialogScope]),u=(0,n.createDialogScope)(),p=e=>{let{__scopeAlertDialog:r,...a}=e,o=u(r);return(0,t.jsx)(n.Root,{...o,...a,modal:!0})};p.displayName=l;var f=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...o}=e,i=u(a);return(0,t.jsx)(n.Trigger,{...i,...o,ref:r})});f.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:r,...a}=e,o=u(r);return(0,t.jsx)(n.Portal,{...o,...a})};h.displayName="AlertDialogPortal";var m=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...o}=e,i=u(a);return(0,t.jsx)(n.Overlay,{...i,...o,ref:r})});m.displayName="AlertDialogOverlay";var g="AlertDialogContent",[v,b]=d(g),x=(0,s.createSlottable)("AlertDialogContent"),y=r.forwardRef((e,a)=>{let{__scopeAlertDialog:s,children:l,...d}=e,c=u(s),p=r.useRef(null),f=(0,o.useComposedRefs)(a,p),h=r.useRef(null);return(0,t.jsx)(n.WarningProvider,{contentName:g,titleName:w,docsSlug:"alert-dialog",children:(0,t.jsx)(v,{scope:s,cancelRef:h,children:(0,t.jsxs)(n.Content,{role:"alertdialog",...c,...d,ref:f,onOpenAutoFocus:(0,i.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),h.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,t.jsx)(x,{children:l}),(0,t.jsx)(k,{contentRef:p})]})})})});y.displayName=g;var w="AlertDialogTitle",C=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...o}=e,i=u(a);return(0,t.jsx)(n.Title,{...i,...o,ref:r})});C.displayName=w;var R="AlertDialogDescription",j=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...o}=e,i=u(a);return(0,t.jsx)(n.Description,{...i,...o,ref:r})});j.displayName=R;var S=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...o}=e,i=u(a);return(0,t.jsx)(n.Close,{...i,...o,ref:r})});S.displayName="AlertDialogAction";var _="AlertDialogCancel",A=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...i}=e,{cancelRef:s}=b(_,a),l=u(a),d=(0,o.useComposedRefs)(r,s);return(0,t.jsx)(n.Close,{...l,...i,ref:d})});A.displayName=_;var k=({contentRef:e})=>{let t=`\`${g}\` requires a description for the component to be accessible for screen reader users. 6
7You can add a description to the \`${g}\` by passing a \`${R}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 8 9Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${g}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 10 11For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return r.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null};e.s(["Action",()=>S,"AlertDialog",()=>p,"AlertDialogAction",()=>S,"AlertDialogCancel",()=>A,"AlertDialogContent",()=>y,"AlertDialogDescription",()=>j,"AlertDialogOverlay",()=>m,"AlertDialogPortal",()=>h,"AlertDialogTitle",()=>C,"AlertDialogTrigger",()=>f,"Cancel",()=>A,"Content",()=>y,"Description",()=>j,"Overlay",()=>m,"Portal",()=>h,"Root",()=>p,"Title",()=>C,"Trigger",()=>f,"createAlertDialogScope",()=>c],632715);var D=e.i(632715),D=D,P=e.i(975157),E=e.i(519455);function I({...e}){return(0,t.jsx)(D.Root,{"data-slot":"alert-dialog",...e})}function T({...e}){return(0,t.jsx)(D.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function N({...e}){return(0,t.jsx)(D.Portal,{"data-slot":"alert-dialog-portal",...e})}function O({className:e,...r}){return(0,t.jsx)(D.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,P.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...r})}function F({className:e,size:r="default",...a}){return(0,t.jsxs)(N,{children:[(0,t.jsx)(O,{}),(0,t.jsx)(D.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,P.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a})]})}function L({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,P.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function M({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,P.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function z({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-media",className:(0,P.cn)("mb-2 inline-flex size-10 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6",e),...r})}function U({className:e,...r}){return(0,t.jsx)(D.Title,{"data-slot":"alert-dialog-title",className:(0,P.cn)("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function Q({className:e,...r}){return(0,t.jsx)(D.Description,{"data-slot":"alert-dialog-description",className:(0,P.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})}function H({className:e,variant:r="default",size:a="default",...o}){return(0,t.jsx)(E.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(D.Action,{"data-slot":"alert-dialog-action",className:(0,P.cn)(e),...o})})}function B({className:e,variant:r="outline",size:a="default",...o}){return(0,t.jsx)(E.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(D.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,P.cn)(e),...o})})}e.s(["AlertDialog",()=>I,"AlertDialogAction",()=>H,"AlertDialogCancel",()=>B,"AlertDialogContent",()=>F,"AlertDialogDescription",()=>Q,"AlertDialogFooter",()=>M,"AlertDialogHeader",()=>L,"AlertDialogMedia",()=>z,"AlertDialogTitle",()=>U,"AlertDialogTrigger",()=>T],868499)},683753,e=>{"use strict";function t(e){return"font-generator"===e.sourceType&&!!e.sourceRef}function r({designId:e,format:t="png"}){return`/api/tattoo/designs/${e}
11/asset?type=lettering&format=${t}`}e.s(["getFontLetteringAssetUrl",()=>r,"isFontLetteringDesign",()=>t])},672315,e=>{"use strict";var t=e.i(409676);e.s(["ChevronUp",()=>t.default])},121779,e=>{"use strict";var t=e.i(818315);e.s(["ChevronDown",()=>t.default])},711322,e=>{"use strict";var t=e.i(13667);e.s(["ChevronRight",()=>t.default])},409676,e=>{"use strict";let t=(0,e.i(667784).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",()=>t])},8362,e=>{"use strict";var t=e.i(409676);e.s(["ChevronUpIcon",()=>t.default])},776639,e=>{"use strict";var t=e.i(413274),r=e.i(905427),a=e.i(975157),o=e.i(519455),n=e.i(323726),i=e.i(450549);function s({...e}){return(0,t.jsx)(r.Dialog.Root,{"data-slot":"dialog",...e})}function l({...e}){return(0,t.jsx)(r.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}function d({...e}){return(0,t.jsx)(r.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function c({className:e,...o}){return(0,t.jsx)(r.Dialog.Overlay,{"data-slot":"dialog-overlay",className:(0,a.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...o})}function u({className:e,children:s,showCloseButton:l=!0,...u}){let p=(0,i.useTranslations)("Common");return(0,t.jsxs)(d,{children:[(0,t.jsx)(c,{}),(0,t.jsxs)(r.Dialog.Content,{"data-slot":"dialog-content",className:(0,a.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-sm ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...u,children:[s,l&&(0,t.jsx)(r.Dialog.Close,{"data-slot":"dialog-close",asChild:!0,children:(0,t.jsxs)(o.Button,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[(0,t.jsx)(n.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:p("close")})]})})]})]})}function p({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,a.cn)("flex flex-col gap-2",e),...r})}function f({className:e,showCloseButton:n=!1,children:s,...l}){let d=(0,i.useTranslations)("Common");return(0,t.jsxs)("div",{"data-slot":"dialog-footer",className:(0,a.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...l,children:[s,n&&(0,t.jsx)(r.Dialog.Close,{asChild:!0,children:(0,t.jsx)(o.Button,{variant:"outline",children:d("close")})})]})}function h({className:e,...o}){return(0,t.jsx)(r.Dialog.Title,{"data-slot":"dialog-title",className:(0,a.cn)("text-base leading-none font-medium",e),...o})}function m({className:e,...o}){return(0,t.jsx)(r.Dialog.Description,{"data-slot":"dialog-description",className:(0,a.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...o})}e.s(["Dialog",()=>s,"DialogContent",()=>u,"DialogDescription",()=>m,"DialogFooter",()=>f,"DialogHeader",()=>p,"DialogTitle",()=>h,"DialogTrigger",()=>l])},527069,e=>{"use strict";function t(e,[t,r]){return Math.min(r,Math.max(t,e))}e.s(["clamp",()=>t])},164430,320794,e=>{"use strict";let t=(0,e.i(667784).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["default",()=>t],320794),e.s(["ChevronLeft",()=>t],164430)},337822,e=>{"use strict";var t=e.i(413274),r=e.i(862667),a=e.i(291967),o=e.i(226099),n=e.i(780600),i=e.i(903070),s=e.i(599593),l=e.i(878223),d=e.i(450021),c=e.i(239043),u=e.i(107530),p=e.i(238716),f=e.i(83812),h=e.i(265323),m=e.i(254856),g=e.i(73772),v=e.i(729494),b="Popover",[x,y]=(0,n.createContextScope)(b,[c.createPopperScope]),w=(0,c.createPopperScope)(),[C,R]=x(b),j=e=>{let{__scopePopover:a,children:o,open:n,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,u=w(a),p=r.useRef(null),[f,h]=r.useState(!1),[g,v]=(0,m.useControllableState)({prop:n,defaultProp:i??!1,onChange:s,caller:b});return(0,t.jsx)(c.Root,{...u,children:(0,t.jsx)(C,{scope:a,contentId:(0,d.useId)(),triggerRef:p,open:g,onOpenChange:v,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:f,onCustomAnchorAdd:r.useCallback(()=>h(!0),[]),onCustomAnchorRemove:r.useCallback(()=>h(!1),[]),modal:l,children:o})})};j.displayName=b;var S="PopoverAnchor",_=r.forwardRef((e,a)=>{let{__scopePopover:o,...n}=e,i=R(S,o),s=w(o),{onCustomAnchorAdd:l,onCustomAnchorRemove:d}=i;return r.useEffect(()=>(l(),()=>d()),[l,d]),(0,t.jsx)(c.Anchor,{...s,...n,ref:a})});_.displayName=S;var A="PopoverTrigger",k=r.forwardRef((e,r)=>{let{__scopePopover:n,...i}=e,s=R(A,n),l=w(n),d=(0,o.useComposedRefs)(r,s.triggerRef),u=(0,t.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":H(s.open),...i,ref:d,onClick:(0,a.composeEventHandlers)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?u:(0,t.jsx)(c.Anchor,{asChild:!0,...l,children:u})});k.displayName=A;var D="PopoverPortal",[P,E]=x(D,{forceMount:void 0}),I=e=>{let{__scopePopover:r,forceMount:a,children:o,container:n}=e,i=R(D,r);return(0,t.jsx)(P,{scope:r,forceMount:a,children:(0,t.jsx)(p.Presence,{present:a||i.open,children:(0,t.jsx)(u.Portal,{asChild:!0,container:n,children:o})})})};I.displayName=D;var T="PopoverContent",N=r.forwardRef((e,r)=>{let a=E(T,e.__scopePopover),{forceMount:o=a.forceMount,...n}=e,i=R(T,e.__scopePopover);return(0,t.jsx)(p.Presence,{present:o||i.open,children:i.modal?(0,t.jsx)(F,{...n,ref:r}):(0,t.jsx)(L,{...n,ref:r})})});N.displayName=T;var O=(0,h.createSlot)("PopoverContent.RemoveScroll"),F=r.forwardRef((e,n
11)=>{let i=R(T,e.__scopePopover),s=r.useRef(null),l=(0,o.useComposedRefs)(n,s),d=r.useRef(!1);return r.useEffect(()=>{let e=s.current;if(e)return(0,g.hideOthers)(e)},[]),(0,t.jsx)(v.RemoveScroll,{as:O,allowPinchZoom:!0,children:(0,t.jsx)(M,{...e,ref:l,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),d.current||i.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;d.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),L=r.forwardRef((e,a)=>{let o=R(T,e.__scopePopover),n=r.useRef(!1),i=r.useRef(!1);return(0,t.jsx)(M,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||o.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let r=t.target;o.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),M=r.forwardRef((e,r)=>{let{__scopePopover:a,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:d,disableOutsidePointerEvents:u,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:m,...g}=e,v=R(T,a),b=w(a);return(0,s.useFocusGuards)(),(0,t.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:n,onUnmountAutoFocus:d,children:(0,t.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:m,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:h,onDismiss:()=>v.onOpenChange(!1),children:(0,t.jsx)(c.Content,{"data-state":H(v.open),role:"dialog",id:v.contentId,...b,...g,ref:r,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),z="PopoverClose",U=r.forwardRef((e,r)=>{let{__scopePopover:o,...n}=e,i=R(z,o);return(0,t.jsx)(f.Primitive.button,{type:"button",...n,ref:r,onClick:(0,a.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})});U.displayName=z;var Q=r.forwardRef((e,r)=>{let{__scopePopover:a,...o}=e,n=w(a);return(0,t.jsx)(c.Arrow,{...n,...o,ref:r})});function H(e){return e?"open":"closed"}Q.displayName="PopoverArrow",e.s(["Anchor",()=>_,"Arrow",()=>Q,"Close",()=>U,"Content",()=>N,"Popover",()=>j,"PopoverAnchor",()=>_,"PopoverArrow",()=>Q,"PopoverClose",()=>U,"PopoverContent",()=>N,"PopoverPortal",()=>I,"PopoverTrigger",()=>k,"Portal",()=>I,"Root",()=>j,"Trigger",()=>k,"createPopoverScope",()=>y],940929);var B=e.i(940929),B=B,$=e.i(975157);function W({...e}){return(0,t.jsx)(B.Root,{"data-slot":"popover",...e})}function q({...e}){return(0,t.jsx)(B.Trigger,{"data-slot":"popover-trigger",...e})}function K({className:e,align:r="center",sideOffset:a=4,...o}){return(0,t.jsx)(B.Portal,{children:(0,t.jsx)(B.Content,{"data-slot":"popover-content",align:r,sideOffset:a,className:(0,$.cn)("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...o})})}e.s(["Popover",()=>W,"PopoverContent",()=>K,"PopoverTrigger",()=>q],337822)},689547,e=>{"use strict";var t=e.i(413274),r=e.i(975157);function a(e="standard"){return(0,r.cn)("max-h-[calc(100dvh-1rem)] overflow-y-auto [&_[data-slot=dialog-close]]:bg-background/90 [&_[data-slot=dialog-close]]:shadow-sm [&_[data-slot=dialog-close]]:backdrop-blur-sm sm:max-w-[460px]","portrait"===e?"md:w-[831px] md:max-w-[calc(100vw-2rem)]":"md:w-[920px] md:max-w-[calc(100vw-2rem)]")}function o({children:e,visual:r}){return(0,t.jsxs)("div",{className:"grid min-w-0 md:grid-cols-[minmax(0,1fr)_460px]",children:[r,(0,t.jsx)("div",{className:"flex min-w-0 items-center bg-background md:min-
11h-[560px]",children:e})]})}e.s(["SplitLoginLayout",()=>o,"getSplitLoginDialogClassName",()=>a])},457220,e=>{"use strict";var t=e.i(609963);e.s(["Coins",()=>t.default])},404532,e=>{"use strict";var t=e.i(612724);e.s(["Sparkles",()=>t.default])},796529,e=>{"use strict";let t=(0,e.i(667784).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>t],796529)},595644,e=>{"use strict";let t=(0,e.i(667784).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["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"}]]);e.s(["Trash2",()=>t],595644)},967927,e=>{"use strict";var t=e.i(74058);let r=(0,t.createServerReference)("7f9213e0eb71bd9c1f033ff8ca8fcfd8c3c1dd2d7a",t.callServer,void 0,t.findSourceMapURL,"getCurrentPlanAction");var a=e.i(775365),o=e.i(945228),n=e.i(99004);let i={all:["payment"],currentPlan:e=>[...i.all,"currentPlan",e]};function s(e){return(0,n.useQuery)({queryKey:i.currentPlan(e||""),queryFn:async()=>{if(!e)throw Error("User ID is required");(0,a.devLog)(">>> Check current plan start for userId:",e);let t=await r({userId:e});if(!t?.data?.success)throw(0,a.devLog)("<<< Check current plan failed:",t?.data?.error),Error(t?.data?.error||"Failed to fetch current plan");return(0,a.devLog)("<<< Check current plan success"),t.data.data||{currentPlan:Object.values(o.websiteConfig.price.plans).find(e=>e.isFree)||null,subscription:null}},enabled:!!e,refetchOnWindowFocus:!0})}e.s(["useCurrentPlan",()=>s],967927)},784710,e=>{"use strict";let t=(0,e.i(667784).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",()=>t],784710)},940183,629837,48185,e=>{"use strict";var t=e.i(74058);let r=(0,t.createServerReference)("7f761ed80becdbccd648ba95a0ba4b481b18f9a330",t.callServer,void 0,t.findSourceMapURL,"validateCaptchaAction");e.s(["validateCaptchaAction",()=>r],940183);var a=e.i(354414),o=e.i(413274),n=e.i(782406),i=e.i(903133),s=e.i(945228),l=e.i(705301),d=e.i(362823),c=e.i(862667);let u=(0,d.default)(()=>e.A(789658).then(e=>e.Turnstile),{loadableGenerated:{modules:[883698]},ssr:!1}),p=(0,c.forwardRef)(({validationError:e,...t},r)=>{let d=(0,n.useTheme)(),c=(0,l.useLocale)(),p=s.websiteConfig.features.enableTurnstileCaptcha,f=a.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY;return p?f?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u,{ref:r,options:{size:"flexible",language:c,theme:"dark"===d.theme?"dark":"light"},...t,siteKey:f}),e&&(0,o.jsx)(i.FormMessage,{className:"text-red-500 mt-2",children:e})]}):(console.error("Captcha: NEXT_PUBLIC_TURNSTILE_SITE_KEY is not set"),null):null});p.displayName="Captcha",e.s(["Captcha",0,p],629837);var f=e.i(86760),h=e.i(519186),m=e.i(975157);let g=({text:e,className:t})=>(0,o.jsxs)("div",{className:(0,m.cn)("relative flex items-center",t),children:[(0,o.jsx)("div",{className:"grow border-t border-border"}),(0,o.jsx)("span",{className:"shrink mx-4 text-sm text-muted-foreground",children:e}),(0,o.jsx)("div",{className:"grow border-t border-border"})]});function v(e){return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:45.75,height:48,viewBox:"0 0 488 512",...e,children:[(0,o.jsx)("title",{children:"Google"}),(0,o.jsx)("path",{fill:"currentColor",d:"M488 261.8C488 403.3 391.1 504 248 504C110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6c98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4"})]})}var b=e.i(519455),x=e.i(578938),y=e.i(955179),w=e.i(336845),C=e.i(77607),R=e.i(515246),j=e.i(450549),S=e.i(676993);e.s(["SocialLoginButton",0,({authAnalyticsContext:e,callbackUrl:t,onAuthenticated:r,preservePage:a=!1,showDivider:n=!0})=>{let i=(0,j.useTranslations)("AuthPage.login"),d=(0,S.useSearchParams)(),u=(0,l.useLocale)(),[p,m]=(0,c.useState)(null);if(!s.websiteConfig.auth.enableGoogleLogin)return null;let _=d.get("callbackUrl"),A=(0,w.getPathWithLocale)(C.DEFAULT_LOGIN_REDIRECT,u),k=t||_||A,D=async t=>{var o;let n,i,s=a?(n=Math.max(0,window.screenX+(window.outerWidth-520)/2),i=Math.max(0,window.screenY+(window.outerHeight-680)/2),window.open("about:blank",y.AUTH_POPUP_WINDOW_NAME,`popup=yes,width=520,height=680,left=${Math.round(n)},top=${Math.round(i)}`)):null,l=Date.now(),d=null,c=(0,f.getAnalyticsFlowId)(),p=(0,f.getAuthAnalyticsContextProperties)(e);a&&!s&&(0,f.captureClientEvent)(h.analyticsEvents.authPopupBlocked,{...p,auth_mode:"social",auth_provider:t,flow_id:(0,f.getAnalyticsFlowId)(),locale:u});let g=(0,w.getPathWithLocale)(C.Routes.AuthPopupCallback,u),v=new URLSearchParams({popup:"1",returnTo:k}),b=`${g}?${v.toString()}`,R=a&&!!s,j=R?b:C.Routes.AuthError,S=await x.authClient.signIn.social({provider:t,callbackURL:R?b:k,errorCallbackURL:j,newUserCallbackURL:R?b:void 0,disableRedirect:a},{onRequest:r=>{let a=(0,f.rememberAuthIntent)({...e,auth_mode:"social",auth_provider:t,locale:u});c=a?.flow_id??c,d=a?.auth_attempt_id??null,p=(0,f.getAuthAnalyticsContextProperties)(a??e),l=Date.now(),(0,f.captureClientEvent)(h.analyticsEvents.authStarted,{...p,auth_attempt_id:d,auth_mode:"social",auth_provider:t,flow_id:c,locale:u}),m(t)},onResponse:e=>{a||m(null)},onSuccess:e=>{a||m(null)},onError:e=>{console.error("social login error",e.error.message),(0,f.captureClientEvent)(h.analyticsEvents.authFailed,{...p,auth_attempt_id:d,auth_mode:"social",auth_provider:t,elapsed_ms:Date.now()-l,error_status:String(e.error.status||"unknown"),failure_stage:"provider_request",flow_id:c,locale:u}),(0,f.clearAuthIntent)(d),s?.close(),m(null)}});if(!a||S.error)return;let _=S.data?.url;if(!_){(0,f.captureClientEvent)(h.analyticsEvents.authFailed,{...p,auth_attempt_id:d,auth_mode:"social",auth_provider:t,elapsed_ms:Date.now()-l,error_category:"missing_authorization_url",failure_stage:"authorization_url",flow_id:c,locale:u}),(0,f.clearAuthIntent)(d),s?.close(),m(null);return}if(!s)return void window.location.assign(_);let A=new Promise(e=>{let t=!1,r="BroadcastChannel"in window?new BroadcastChannel(y.AUTH_POPUP_CHANNEL_NAME):null,a=a=>{t||(t=!0,window.removeEventListener("message",o),window.clearInterval(n),window.clearTimeout(i),r?.close(),e(a))},o=e=>{e.origin!==window.location.origin||e.source!==s||(0,y.isAuthPopupMessage)(e.data)&&a({message:e.data,type:"message"})},n=window.setInterval(()=>{s.closed&&a({type:"closed"})},400),i=window.setTimeout(()=>{s.closed||s.close(),a({type:"timeout"})},3e5);window.addEventListener("message",o),r?.addEventListener("message",e=>{(0,y.isAuthPopupMessage)(e.data)&&a({message:e.data,type:"message"})})});s.location.replace(_),s.focus();let D=await A;if(s.closed||s.close(),m(null),"closed"===D.type){(0,f.captureClientEvent)(h.analyticsEvents.authPopupClosed,{...p,auth_attempt_id:d,auth_mode:"social",auth_provider:t,elapsed_ms:Date.now()-l,flow_id:c,locale:u}),(0,f.clearAuthIntent)(d);return}if("timeout"===D.type){(0,f.captureClientEvent)(h.analyticsEvents.authPopupTimeout,{...p,auth_attempt_id:d,auth_mode:"social",auth_provider:t,elapsed_ms:Date.now()-l,flow_id:c,locale:u}),(0,f.clearAuthIntent)(d);return}if(!D.message.success){let e;D.message.error&&console.error("social login error",D.message.error),(0,f.captureClientEvent)(h.analyticsEvents.authFailed,{...p,auth_attempt_id:d,auth_mode:"social",auth_provider:t,elapsed_ms:Date.now()-l,error_category:(o=D.message.error,(e=o?.toLowerCase()??"").includes("access_de
11nied")?"access_denied":e.includes("account_not_linked")?"account_not_linked":e.includes("state")?"state_error":e.includes("callback")?"callback_error":"oauth_error"),failure_stage:"oauth_callback",flow_id:c,locale:u}),(0,f.clearAuthIntent)(d);return}await r?.()};return(0,o.jsxs)("div",{className:"w-full flex flex-col gap-4",children:[n&&(0,o.jsx)(g,{text:i("or")}),s.websiteConfig.auth.enableGoogleLogin&&(0,o.jsxs)(b.Button,{size:"lg",className:"w-full",variant:"outline",onClick:()=>D("google"),disabled:"google"===p,children:["google"===p?(0,o.jsx)(R.Loader2Icon,{className:"mr-2 size-4 animate-spin"}):(0,o.jsx)(v,{className:"size-4 mr-2"}),(0,o.jsx)("span",{children:i("signInWithGoogle")})]})]})}],48185)},336845,e=>{"use strict";var t=e.i(744705);function r(e,r){return r&&r!==t.routing.defaultLocale&&"default"!==r?`/${r}${e}`:e}function a(e){return`https://dashboard.stripe.com/customers/${e}`}"https://www.inkstudio.ai".replace(/\/$/,""),e.s(["getPathWithLocale",()=>r,"getStripeDashboardCustomerUrl",()=>a])},955179,e=>{"use strict";let t="inkstudio:auth-popup-result";function r(e){return!!e&&"object"==typeof e&&e.type===t&&"boolean"==typeof e.success&&(void 0===e.error||"string"==typeof e.error)}e.s(["AUTH_POPUP_CHANNEL_NAME",0,"inkstudio:auth-popup","AUTH_POPUP_MESSAGE_TYPE",0,t,"AUTH_POPUP_WINDOW_NAME",0,"inkstudio-google-auth","isAuthPopupMessage",()=>r])},44137,e=>{"use strict";var t=e.i(413274),r=e.i(961113),r=r;e.s(["FormSuccess",0,({message:e})=>e?(0,t.jsxs)("div",{className:"bg-emerald-500/15 p-3 rounded-md flex items-center gap-x-2 text-sm text-emerald-500",children:[(0,t.jsx)(r.default,{className:"h-4 w-4"}),(0,t.jsx)("p",{children:e})]}):null],44137)},961113,e=>{"use strict";let t=(0,e.i(667784).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",()=>t])},319270,e=>{"use strict";var t=e.i(413274),r=e.i(519455),a=e.i(520133),o=e.i(975157);let n=({href:e,label:n,onClick:i})=>(0,t.jsx)(a.LocaleLink,{href:e,onClick:i,className:(0,o.cn)((0,r.buttonVariants)({variant:"link",size:"sm"}),"font-normal w-full text-muted-foreground hover:underline underline-offset-4 hover:text-primary"),children:n});var i=e.i(870053),s=e.i(515288);e.s(["AuthCard",0,({children:e,headerLabel:r,headerDescription:l,bottomButtonLabel:d,bottomButtonHref:c,bottomButtonOnClick:u,className:p,variant:f="default"})=>{let h="split-modal"===f;return(0,t.jsxs)(s.Card,{className:(0,o.cn)("shadow-xs border border-border",p),children:[(0,t.jsxs)(s.CardHeader,{className:"flex flex-col items-center",children:[(0,t.jsx)(a.LocaleLink,{href:"/",prefetch:!1,children:(0,t.jsx)(i.Logo,{className:"mb-2"})}),l?(0,t.jsxs)("div",{className:(0,o.cn)("space-y-2 text-center",h&&"w-full"),children:[(0,t.jsx)(s.CardTitle,{className:(0,o.cn)(h&&"w-full text-balance"),children:r}),(0,t.jsx)(s.CardDescription,{className:(0,o.cn)("leading-relaxed",h?"w-full":"text-balance"),children:l})]}):(0,t.jsx)(s.CardDescription,{children:r})]}),(0,t.jsx)(s.CardContent,{children:e}),(0,t.jsx)(s.CardFooter,{className:(0,o.cn)(h&&"border-t-0 bg-transparent px-4 pt-1 pb-3 sm:px-6 md:px-8"),children:(0,t.jsx)(n,{label:d,href:c,onClick:u})})]})}],319270)},150978,951186,935431,e=>{"use strict";let t=(0,e.i(667784).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["default",()=>t],951186),e.s(["EyeIcon",()=>t],150978);var r=e.i(143315);e.s(["EyeOffIcon",()=>r.default],935431)},515288,e=>{"use strict";var t=e.i(413274),r=e.i(975157);function a({className:e,size:a="default",...o}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...o})}function o({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...a})}function n({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}function i({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...a})}function s({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...a})}function l({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-4 group-data-[size=sm]/card:px-3",e),...a})}function d({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3",e),...a})}e.s(["Card",()=>a,"CardAction",()=>s,"CardContent",()=>l,"CardDescription",()=>i,"CardFooter",()=>d,"CardHeader",()=>o,"CardTitle",()=>n])},110204,e=>{"use strict";var t=e.i(413274),r=e.i(862667),a=e.i(83812),o=r.forwardRef((e,r)=>(0,t.jsx)(a.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label",e.s(["Label",()=>o,"Root",()=>o],401332);var n=e.i(401332),n=n,i=e.i(975157);function s({className:e,...r}){return(0,t.jsx)(n.Root,{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}e.s(["Label",()=>s],110204)},999075,e=>{"use strict";let t,r,a;var o=e.i(862667),n=e.i(226099),i=e.i(413274),s=Symbol.for("react.lazy"),l=o[" use ".trim().toString()];function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=((a=o.forwardRef((e,t)=>
11{let{children:r,...a}=e;if(d(r)&&"function"==typeof l&&(r=l(r._payload)),o.isValidElement(r)){var i;let e,s,l=(i=r,(s=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(s=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),d=function(e,t){let r={...t};for(let a in t){let o=e[a],n=t[a];/^on[A-Z]/.test(a)?o&&n?r[a]=(...e)=>{let t=n(...e);return o(...e),t}:o&&(r[a]=o):"style"===a?r[a]={...o,...n}:"className"===a&&(r[a]=[o,n].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==o.Fragment&&(d.ref=t?(0,n.composeRefs)(t,l):l),o.cloneElement(r,d)}return o.Children.count(r)>1?o.Children.only(null):null})).displayName="Slot.SlotClone",t=a,(r=o.forwardRef((e,r)=>{let{children:a,...n}=e;d(a)&&"function"==typeof l&&(a=l(a._payload));let s=o.Children.toArray(a),c=s.find(p);if(c){let e=c.props.children,a=s.map(t=>t!==c?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...n,ref:r,children:o.isValidElement(e)?o.cloneElement(e,void 0,a):null})}return(0,i.jsx)(t,{...n,ref:r,children:a})})).displayName="Slot.Slot",r),u=Symbol("radix.slottable");function p(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}e.s(["Slot",()=>c])},143315,e=>{"use strict";let t=(0,e.i(667784).default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["default",()=>t])},828420,e=>{"use strict";var t=e.i(354414),r=e.i(413274),a=e.i(940183),o=e.i(86760),n=e.i(519186),i=e.i(319270),s=e.i(743173),l=e.i(44137),d=e.i(519455),c=e.i(903133),u=e.i(793479),p=e.i(945228),f=e.i(520133),h=e.i(578938),m=e.i(336845),g=e.i(975157),v=e.i(77607),b=e.i(666021),x=e.i(150978),y=e.i(935431),w=e.i(515246),C=e.i(705301),R=e.i(450549),j=e.i(676993),S=e.i(862667),_=e.i(990420),A=e.i(948071),k=e.i(629837),D=e.i(48185);e.s(["LoginForm",0,({authAnalyticsContext:e,cardVariant:P="default",className:E,callbackUrl:I,headerDescription:T,headerLabel:N,onAuthenticated:O,preservePage:F=!1})=>{let L=(0,R.useTranslations)("AuthPage.login"),M=(0,R.useTranslations)("AuthPage.error"),z=(0,j.useSearchParams)(),U=z.get("error"),Q=z.get("callbackUrl"),H=U?M.has(`codes.${U}`)?M(`codes.${U}`):U:void 0,B=(0,C.useLocale)(),$=(0,m.getPathWithLocale)(v.DEFAULT_LOGIN_REDIRECT,B),W=I||Q||$,q=async()=>{let e=await h.authClient.getSession();if(!e.data?.user)return;let t=(0,o.consumeAuthIntent)();await (0,o.captureAuthCompletion)(e.data.user,t),h.authClient.$store.notify("$sessionSignal"),await O?.()},[K,V]=(0,S.useState)(""),[G,X]=(0,S.useState)(""),[Y,Z]=(0,S.useState)(!1),[J,ee]=(0,S.useState)(!1),et=(0,S.useRef)(null),er=p.websiteConfig.auth.enableCredentialLogin,ea=p.websiteConfig.features.enableTurnstileCaptcha,eo=t.default.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY,en=ea&&!!eo,ei=en?A.string().min(1,"Please complete the captcha"):A.string().optional(),es=A.object({email:A.email({message:L("emailRequired")}),password:A.string().min(1,{message:L("passwordRequired")}),captchaToken:ei}),el=(0,_.useForm)({resolver:(0,b.zodResolver)(es),defaultValues:{email:"",password:"",captchaToken:""}}),ed=(0,_.useWatch)({control:el.control,name:"captchaToken"}),ec=()=>{el.setValue("captchaToken",""),et.current&&"function"==typeof et.current.reset&&et.current.reset()},eu=async t=>{let r=(0,o.rememberAuthIntent)({...e,auth_mode:"login",auth_provider:"email",locale:B}),i=(0,o.getAuthAnalyticsContextProperties)(r??e);if((0,o.captureClientEvent)(n.analyticsEvents.authStarted,{...i,auth_attempt_id:r?.auth_attempt_id,auth_mode:"login",auth_provider:"email",flow_id:r?.flow_id,locale:B}),en&&t.captchaToken){Z(!0),V(""),X("");let e=await (0,a.validateCaptchaAction)({captchaToken:t.captchaToken});if(!e?.data?.success||!e?.data?.valid){console.error("login, captcha invalid:",t.captchaToken);let a=e?.data?.error||L("captchaInvalid");(0,o.captureClientEvent)(n.analyticsEvents.authFailed,{...i,auth_attempt_id:r?.auth_attempt_id,auth_mode:"login",auth_provider:"email",error_category:"captcha_invalid",failure_stage:"captcha_validation",flow_id:r?.flow_id,locale:B}),(0,o.clearAuthIntent)(r?.auth_attempt_id),V(a),Z(!1),ec();return}}let s=F?h.authClientWithoutRedirect:h.authClient;await s.signIn.email({email:t.email,password:t.password,callbackURL:W},{onRequest:e=>{Z(!0),V(""),X("")},onResponse:e=>{Z(!1)},onSuccess:async()=>{F&&await q()},onError:e=>{(0,o.captureClientEvent)(n.analyticsEvents.authFailed,{...i,auth_attempt_id:r?.auth_attempt_id,auth_mode:"login",auth_provider:"email",error_status:String(e.error.status||"unknown"),failure_stage:"credential_request",flow_id:r?.flow_id,locale:B}),(0,o.clearAuthIntent)(r?.auth_attempt_id),V(`${e.error.status}: ${e.error.message}`),en&&ec()}})},ep=()=>{ee(e=>!e)};return(0,r.jsxs)(i.AuthCard,{variant:P,headerLabel:N??L("welcomeBack"),headerDescription:T,bottomButtonLabel:L("signUpHint"),bottomButtonHref:`${v.Routes.Register}?callbackUrl=${encodeURIComponent(W)}`,bottomButtonOnClick:()=>
11{if(!e?.gate_reason)return;let t=(0,o.rememberAuthAttribution)(e);(0,o.captureClientEvent)(n.analyticsEvents.authSignupClicked,{...(0,o.getAuthAnalyticsContextProperties)(e),auth_mode:"signup",auth_provider:"none",flow_id:t?.flow_id,locale:B})},className:(0,g.cn)("",E),children:[er&&(0,r.jsx)(c.Form,{...el,children:(0,r.jsxs)("form",{onSubmit:el.handleSubmit(eu),className:"space-y-8",children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(c.FormField,{control:el.control,name:"email",render:({field:e})=>(0,r.jsxs)(c.FormItem,{children:[(0,r.jsx)(c.FormLabel,{children:L("email")}),(0,r.jsx)(c.FormControl,{children:(0,r.jsx)(u.Input,{...e,disabled:Y,placeholder:"[email protected]",type:"email"})}),(0,r.jsx)(c.FormMessage,{})]})}),(0,r.jsx)(c.FormField,{control:el.control,name:"password",render:({field:e})=>(0,r.jsxs)(c.FormItem,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)(c.FormLabel,{children:L("password")}),(0,r.jsx)(d.Button,{size:"sm",variant:"link",asChild:!0,className:"px-0 font-normal text-muted-foreground",children:(0,r.jsx)(f.LocaleLink,{href:`${v.Routes.ForgotPassword}`,className:"text-xs hover:underline hover:underline-offset-4 hover:text-primary",children:L("forgotPassword")})})]}),(0,r.jsx)(c.FormControl,{children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(u.Input,{...e,disabled:Y,placeholder:"******",type:J?"text":"password",className:"pr-10"}),(0,r.jsxs)(d.Button,{type:"button",variant:"ghost",size:"sm",className:"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",onClick:ep,disabled:Y,children:[J?(0,r.jsx)(y.EyeOffIcon,{className:"size-4 text-muted-foreground"}):(0,r.jsx)(x.EyeIcon,{className:"size-4 text-muted-foreground"}),(0,r.jsx)("span",{className:"sr-only",children:J?L("hidePassword"):L("showPassword")})]})]})}),(0,r.jsx)(c.FormMessage,{})]})})]}),(0,r.jsx)(s.FormError,{message:K||H||void 0}),(0,r.jsx)(l.FormSuccess,{message:G}),en&&(0,r.jsx)(k.Captcha,{ref:et,onSuccess:e=>el.setValue("captchaToken",e),validationError:el.formState.errors.captchaToken?.message}),(0,r.jsxs)(d.Button,{disabled:Y||en&&!ed,size:"lg",type:"submit",className:"w-full flex items-center justify-center gap-2",children:[Y&&(0,r.jsx)(w.Loader2Icon,{className:"mr-2 size-4 animate-spin"}),(0,r.jsx)("span",{children:L("signIn")})]})]})}),(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(D.SocialLoginButton,{authAnalyticsContext:e,callbackUrl:W,onAuthenticated:q,preservePage:F,showDivider:er})})]})}])},62325,e=>{"use strict";var t=e.i(413274),r=e.i(862667);let a=(0,r.lazy)(()=>e.A(269648).then(e=>({default:e.ProUpgradeDialog})));function o(e){let{open:o}=e,[n,i]=(0,r.useState)(o);return((0,r.useEffect)(()=>{o&&i(!0)},[o]),o||n)?(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)(a,{...e})}):null}e.s(["LazyProUpgradeDialog",()=>o])},579587,e=>{"use strict";var t=e.i(413274),r=e.i(989008),a=e.i(450549);function o(){let e=(0,a.useTranslations)("FontGeneratorPage.generator.result.surfaceDemo");return(0,t.jsxs)("div",{className:"relative h-52 min-w-0 overflow-hidden bg-[#f0f1ed] md:h-auto md:min-h-[560px]",children:[(0,t.jsx)(r.default,{alt:"",className:"absolute inset-0 size-full object-contain",fill:!0,priority:!0,sizes:"(min-width: 768px) 371px, 100vw",src:"/tattoo-font-generator/3d-surface-preview-poster.v1.jpg"}),(0,t.jsx)("video",{"aria-label":e("title"),autoPlay:!0,className:"absolute inset-0 size-full object-contain motion-reduce:hidden",loop:!0,muted:!0,playsInline:!0,poster:"/tattoo-font-generator/3d-surface-preview-poster.v1.jpg",preload:"metadata",children:(0,t.jsx)("source",{src:"/tattoo-font-generator/3d-surface-preview.v1.webm",type:"video/webm"})})]})}e.s(["FontLoginVisual",()=>o])},805999,e=>{"use strict";var t=e.i(705901);e.s(["Type",()=>t.default])},570323,85811,e=>{"use strict";let t=[{fileName:"natural-fair",id:"naturalFair",swatch:"#EBD1C3"},{fileName:"warm-ivory",id:"warmIvory",swatch:"#E5C0A9"},{fileName:"medium-light",id:"mediumLight",swatch:"#D7BD96"},{fileName:"medium",id:"medium",swatch:"#9F7D54"},{fileName:"medium-dark",id:"mediumDark",swatch:"#815D44"},{fileName:"dark",id:"dark",swatch:"#3A312A"}],r=[{baseRotation:-45.5,baseWidth:44,defaultAdjustments:{opacity:86,rotation:0,scale:100,x:33,y:29},id:"innerWrist",imageAspectRatio:2/3,imageSrc:"/tattoo-font-generator/placements/inner-wrist/medium.webp",safeArea:{height:9,padding:8,rotation:-45.5,width:55,x:33,y:29},skinToneImageBase:"/tattoo-font-generator/placements/inner-wrist",surface:{depthSrc:"/tattoo-font-generator/placements/inner-wrist/surface/depth.webp",maskSrc:"/tattoo-font-generator/placements/inner-wrist/surface/mask.webp",scaleCompensation:.406}},{baseRotation:0,baseWidth:36,defaultAdjustments:{opacity:86,rotation:0,scale:100,x:50,y:35},id:"outerWrist",imageAspectRatio:2/3,imageSrc:"/tattoo-font-generator/placements/outer-wrist/medium.webp",safeArea:{height:8,padding:8,rotation:0,width:43,x:50,y:35},skinToneImageBase:"/tattoo-font-generator/placements/outer-wrist",surface:{depthSrc:"/tattoo-font-generator/placements/outer-wrist/surface/depth.webp",maskSrc:"/tattoo-font-generator/placements/outer-wrist/surface/mask.webp",scaleCompensation:.338}},{baseRotation:65,baseWidth:38,defaultAdjustments:{opacity:86,rotation:0,scale:100,x:48,y:50},id:"innerForearm",imageAspectRatio:2/3,imageSrc:"/tattoo-font-generator/placements/inner-forearm/medium.webp",safeArea:{height:7,padding:8,rotation:65,width:46,x:48,y:50},skinToneImageBase:"/tattoo-font-generator/placements/inner-forearm",surface:{depthSrc:"/tattoo-font-generator/placements/inner-forearm/surface/depth.webp",maskSrc:"/tattoo-font-generator/placements/inner-forearm/surface/mask.webp",scaleCompensation:.315}},{baseRotation:0,baseWidth:40,defaultAdjustments:{opacity:86,rotation:0,scale:100,x:70,y:68},id:"innerUpperArm",imageAspectRatio:2/3,imageSrc:"/tattoo-font-generator/placements/inner-upper-arm/medium.webp",safeArea:{height:8,padding:8,rotation:0,width:50,x:70,y:68},skinToneImageBase:"/tattoo-font-generator/placements/inner-upper-arm",surface:{depthSrc:"/tattoo-font-generator/placements/inner-upper-arm/surface/depth.webp",maskSrc:"/tattoo-font-generator/placements/inner-upper-arm/surface/mask.webp",scaleCompensation:.298}},{baseRotation:0,baseWidth:44,defaultAdjustments:{opacity:86,rotation:0,scale:100,x:50,y:34},id:"upperChest",imageAspectRatio:2/3,imageSrc:"/tattoo-font-generator/placements/upper-chest/medium.webp",safeArea:{height:10,padding:8,rotation:0,width:62,x:50,y:34},skinToneImageBase:"/tattoo-font-generator/placements/upper-chest",surface:{depthSrc:"/tattoo-font-generator/placements/upper-chest/surface/depth.webp",maskSrc:"/tattoo-font-generator/placements/upper-chest/surface/mask.webp",scaleCompensation:.371}},{baseRotation:0,baseWidth:48,defaultAdjustments:{opacity:86,rotation:0,scale:100,x:50,y:36},id:"upperBack",imageAspectRatio:2/3,imageSrc:"/tattoo-font-generator/placements/upper-back/medium.webp",safeArea:{height:9,padding:8,rotation:0,width:72,x:50,y:36},skinToneImageBase:"/tattoo-font-generator/placements/upper-back",surface:{depthSrc:"/tattoo-font-generator/placements/upper-back/surface/depth.webp",maskSrc:"/tattoo-font-generator/placements/upper-back/surface/mask.webp",scaleCompensation:.299}},{baseRotation:0,baseWidth:38,defaultAdjustments:{opacity:86,rotation:0,scale:100,x:50,y:30},id:"frontThigh",imageAspectRatio:2/3,imageSrc:"/tattoo-font-generator/placements/front-thigh/medium.webp",safeArea:{height:9,padding:8,rotation:0,width:46,x:50,y:30},skinToneImageBase:"/tattoo-font-generator/placements/front-thigh",surface:{depthSrc:"/tattoo-font-generator/placements/front-thigh/surface/depth.webp",maskSrc:"/tattoo-font-generator/placements/front-thigh/surface/mask.webp",scaleCompensation:.314}},{baseRotation:0,baseWidth:26,defaultAdjustments:{opacity:86,rotation:0,scale:100,x:74,y:56},id:"sideAnkle",imageAspectRatio:2/3,imageSrc:"/tattoo-font-generator/placements/side-ankle/medium.webp",safeArea:{height:8,padding:8,rotation:0,width:28,x:74,y:56},skinToneImageBase:"/tattoo-font-generator/placements/side-ankle",surface:{depthSrc:"/tattoo-font-generator/placements/side-ankle/surface/depth.webp",maskSrc:"/tattoo-font-generator/placements/side-ankle/surface/mask.webp",scaleCompensation:.377}}],a=r[0];function o(e,r){if(!e.skinToneImageBase)return e.imageSrc;let a=t.find(e=>e.id===r);return a?`${e.skinToneImageBase}/${a.fileName}.webp`:e.imageSrc}
11function n(e,t){let r=e.naturalWidth,a=e.naturalHeight;if(!r||!a)return null;try{let o=document.createElement("canvas");o.width=r,o.height=a;let n=o.getContext("2d",{willReadFrequently:!0});if(!n)return null;n.drawImage(e,0,0);let i=n.getImageData(0,0,r,a).data,s=r,l=a,d=-1,c=-1;for(let e=0;e<a;e+=1)for(let t=0;t<r;t+=1)i[(e*r+t)*4+3]<12||(s=Math.min(s,t),l=Math.min(l,e),d=Math.max(d,t),c=Math.max(c,e));if(d<s||c<l)return null;let u=d-s+1,p=c-l+1;return{inkAspect:u/p,textureHeightOverWidth:a/r,url:t,widthRatio:u/r}}catch{return null}}function i({area:e,fallbackWidth:t,inkBounds:r,stageAspectRatio:a=1}){if(!r)return t;let o=1-Math.min(Math.max(e.padding,0),30)/50;return Math.min(e.width*o,e.height*o/Math.max(a,.01)*r.inkAspect)/r.widthRatio}e.s(["DEFAULT_FONT_PLACEMENT",0,a,"DEFAULT_FONT_SKIN_TONE",0,"medium","FONT_PLACEMENT_PRESETS",0,r,"FONT_SKIN_TONE_OPTIONS",0,t,"getFontPlacementImageSrc",()=>o],570323),e.s(["getFittedLetteringWidth",()=>i,"measureLetteringInk",()=>n],85811)},367692,e=>{"use strict";var t=e.i(413274),r=e.i(862667),a=e.i(527069),o=e.i(291967),n=e.i(226099),i=e.i(780600),s=e.i(254856),l=e.i(62799),d=e.i(236763),c=e.i(827238),u=e.i(83812),p=e.i(482430),f=["PageUp","PageDown"],h=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],m={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},g="Slider",[v,b,x]=(0,p.createCollection)(g),[y,w]=(0,i.createContextScope)(g,[x]),[C,R]=y(g),j=r.forwardRef((e,n)=>{let{name:i,min:l=0,max:d=100,step:c=1,orientation:u="horizontal",disabled:p=!1,minStepsBetweenThumbs:m=0,defaultValue:g=[l],value:b,onValueChange:x=()=>{},onValueCommit:y=()=>{},inverted:w=!1,form:R,...j}=e,S=r.useRef(new Set),_=r.useRef(0),D="horizontal"===u,[P=[],E]=(0,s.useControllableState)({prop:b,defaultProp:g,onChange:e=>{let t=[...S.current];t[_.current]?.focus(),x(e)}}),I=r.useRef(P);function T(e,t,{commit:r}={commit:!1}){let o,n=(String(c).split(".")[1]||"").length,i=Math.round((Math.round((e-l)/c)*c+l)*(o=Math.pow(10,n)))/o,s=(0,a.clamp)(i,[l,d]);E((e=[])=>{let a=function(e=[],t,r){let a=[...e];return a[r]=t,a.sort((e,t)=>e-t)}(e,s,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=t;return!0}(a,m*c))return e;{_.current=a.indexOf(s);let t=String(a)!==String(e);return t&&r&&y(a),t?a:e}})}return(0,t.jsx)(C,{scope:e.__scopeSlider,name:i,disabled:p,min:l,max:d,valueIndexToChangeRef:_,thumbs:S.current,values:P,orientation:u,form:R,children:(0,t.jsx)(v.Provider,{scope:e.__scopeSlider,children:(0,t.jsx)(v.Slot,{scope:e.__scopeSlider,children:(0,t.jsx)(D?A:k,{"aria-disabled":p,"data-disabled":p?"":void 0,...j,ref:n,onPointerDown:(0,o.composeEventHandlers)(j.onPointerDown,()=>{p||(I.current=P)}),min:l,max:d,inverted:w,onSlideStart:p?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),a=Math.min(...r);return r.indexOf(a)}(P,e);T(e,t)},onSlideMove:p?void 0:function(e){T(e,_.current)},onSlideEnd:p?void 0:function(){let e=I.current[_.current];P[_.current]!==e&&y(P)},onHomeKeyDown:()=>!p&&T(l,0,{commit:!0}),onEndKeyDown:()=>!p&&T(d,P.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!p){let r=f.includes(e.key)||e.shiftKey&&h.includes(e.key),a=_.current;T(P[a]+c*(r?10:1)*t,a,{commit:!0})}}})})})})});j.displayName=g;var[S,_]=y(g,{startEdge:"left",endEdge:"right",size:"width",direction:1}),A=r.forwardRef((e,a)=>{let{min:o,max:i,dir:s,inverted:d,onSlideStart:c,onSlideMove:u,onSlideEnd:p,onStepKeyDown:f,...h}=e,[g,v]=r.useState(null),b=(0,n.useComposedRefs)(a,e=>v(e)),x=r.useRef(void 0),y=(0,l.useDirection)(s),w="ltr"===y,C=w&&!d||!w&&d;function R(e){let t=x.current||g.getBoundingClientRect(),r=z([0,t.width],C?[o,i]:[i,o]);return x.current=t,r(e-t.left)}return(0,t.jsx)(S,{scope:e.__scopeSlider,startEdge:C?"left":"right",endEdge:C?"right":"left",direction:C?1:-1,size:"width",children:(0,t.jsx)(D,{dir:y,"data-orientation":"horizontal",...h,ref:b,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=R(e.clientX);c?.(t)},onSlideMove:e=>{let t=R(e.clientX);u?.(t)},onSlideEnd:()=>{x.current=void 0,p?.()},onStepKeyDown:e=>
11{let t=m[C?"from-left":"from-right"].includes(e.key);f?.({event:e,direction:t?-1:1})}})})}),k=r.forwardRef((e,a)=>{let{min:o,max:i,inverted:s,onSlideStart:l,onSlideMove:d,onSlideEnd:c,onStepKeyDown:u,...p}=e,f=r.useRef(null),h=(0,n.useComposedRefs)(a,f),g=r.useRef(void 0),v=!s;function b(e){let t=g.current||f.current.getBoundingClientRect(),r=z([0,t.height],v?[i,o]:[o,i]);return g.current=t,r(e-t.top)}return(0,t.jsx)(S,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:(0,t.jsx)(D,{"data-orientation":"vertical",...p,ref:h,style:{...p.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=b(e.clientY);l?.(t)},onSlideMove:e=>{let t=b(e.clientY);d?.(t)},onSlideEnd:()=>{g.current=void 0,c?.()},onStepKeyDown:e=>{let t=m[v?"from-bottom":"from-top"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})}),D=r.forwardRef((e,r)=>{let{__scopeSlider:a,onSlideStart:n,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:l,onEndKeyDown:d,onStepKeyDown:c,...p}=e,m=R(g,a);return(0,t.jsx)(u.Primitive.span,{...p,ref:r,onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{"Home"===e.key?(l(e),e.preventDefault()):"End"===e.key?(d(e),e.preventDefault()):f.concat(h).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:(0,o.composeEventHandlers)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),m.thumbs.has(t)?t.focus():n(e)}),onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:(0,o.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),s(e))})})}),P="SliderTrack",E=r.forwardRef((e,r)=>{let{__scopeSlider:a,...o}=e,n=R(P,a);return(0,t.jsx)(u.Primitive.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...o,ref:r})});E.displayName=P;var I="SliderRange",T=r.forwardRef((e,a)=>{let{__scopeSlider:o,...i}=e,s=R(I,o),l=_(I,o),d=r.useRef(null),c=(0,n.useComposedRefs)(a,d),p=s.values.length,f=s.values.map(e=>M(e,s.min,s.max)),h=p>1?Math.min(...f):0,m=100-Math.max(...f);return(0,t.jsx)(u.Primitive.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...i,ref:c,style:{...e.style,[l.startEdge]:h+"%",[l.endEdge]:m+"%"}})});T.displayName=I;var N="SliderThumb",O=r.forwardRef((e,a)=>{let o=b(e.__scopeSlider),[i,s]=r.useState(null),l=(0,n.useComposedRefs)(a,e=>s(e)),d=r.useMemo(()=>i?o().findIndex(e=>e.ref.current===i):-1,[o,i]);return(0,t.jsx)(F,{...e,ref:l,index:d})}),F=r.forwardRef((e,a)=>{var i,s,l,d,p;let f,h,{__scopeSlider:m,index:g,name:b,...x}=e,y=R(N,m),w=_(N,m),[C,j]=r.useState(null),S=(0,n.useComposedRefs)(a,e=>j(e)),A=!C||y.form||!!C.closest("form"),k=(0,c.useSize)(C),D=y.values[g],P=void 0===D?0:M(D,y.min,y.max),E=(i=g,(s=y.values.length)>2?`Value ${i+1} of ${s}`:2===s?["Minimum","Maximum"][i]:void 0),I=k?.[w.size],T=I?(l=I,d=P,p=w.direction,h=z([0,50],[0,f=l/2]),(f-h(d)*p)*p):0;return r.useEffect(()=>{if(C)return y.thumbs.add(C),()=>{y.thumbs.delete(C)}},[C,y.thumbs]),(0,t.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[w.startEdge]:`calc(${P}% + ${T}px)`},children:[(0,t.jsx)(v.ItemSlot,{scope:e.__scopeSlider,children:(0,t.jsx)(u.Primitive.span,{role:"slider","aria-label":e["aria-label"]||E,"aria-valuemin":y.min,"aria-valuenow":D,"aria-valuemax":y.max,"aria-orientation":y.orientation,"data-orientation":y.orientation,"data-disabled":y.disabled?"":void 0,tabIndex:y.disabled?void 0:0,...x,ref:S,style:void 0===D?{display:"none"}:e.style,onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>{y.valueIndexToChangeRef.current=g})})}),A&&(0,t.jsx)(L,{name:b??(y.name?y.name+(y.values.length>1?"[]":""):void 0),form:y.form,value:D},g)]})});O.displayName=N;var L=r.forwardRef(({__scopeSlider:e,value:a,...o},i)=>{let s=r.useRef(null),l=(0,n.useComposedRefs)(s,i),c=(0,d.usePrevious)(a);return r.useEffect(()=>{let e=s.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(c!==a&&t){let r=new Event("input",{bubbles:!0});t.call(e,a),e.dispatchEvent(r)}},[c,a]),(0,t.jsx)(u.Primitive.input,{style:{display:"none"},...o,ref:l,defaultValue:a})});function M(e,t,r){return(0,a.clamp)(100/(r-t)*(e-t),[0,100])}function z(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(r-e[0])}}L.displayName="RadioBubbleInput",e.s(["Range",()=>T,"Root",()=>j,"Slider",()=>j,"SliderRange",()=>T,"SliderThumb",()=>O,"SliderTrack",()=>E,"Thumb",()=>O,"Track",()=>E,"createSliderScope",()=>w],941445);var U=e.i(941445),U=U,Q=e.i(975157);function H({className:e,defaultValue:a,value:o,min:n=0,max:i=100,...s}){let l=r.useMemo(()=>Array.isArray(o)?o:Array.isArray(a)?a:[n,i],[o,a,n,i]);return(0,t.jsxs)(U.Root,{"data-slot":"slider",defaultValue:a,value:o,min:n,max:i,className:(0,Q.cn)("relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col",e),...s,children:[(0,t.jsx)(U.Track,{"data-slot":"slider-track",className:"relative grow overflow-hidden rounded-full bg-muted data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1",children:(0,t.jsx)(U.Range,{"data-slot":"slider-range",className:"absolute bg-primary select-none data-horizontal:h-full data-vertical:w-full"})}),Array.from({length:l.length},(e,r)=>(0,t.jsx)(U.Thumb,{"data-slot":"slider-thumb",className:"relative block size-3 shrink-0 rounded-full border border-ring bg-white ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50"},r))]})}e.s(["Slider",()=>H],367692)},468253,e=>{"use strict";var t=e.i(862667);let r=null;function a(){return r??=e.A(793619)}function o(){return Promise.all([a(),e.A(766814)])}let n=(0,t.lazy)(()=>a().then(({TattooSurfacePreview:e})=>({default:e})));e.s(["LazyTattooSurfacePreview",0,n,"preloadTattooSurfacePreview",()=>o])},675757,e=>{"use strict";var t=e.i(862667);function r({disabled:e=!1,src:r,videoRef:a}){let[o,n]=(0,t.useState)(!1),[i,s]=(0,t.useState)(!1),[l,d]=(0,t.useState)(!1),[c,u]=(0,t.useState)(null),p=(0,t.useRef)(!1);return(0,t.useEffect)(()=>
11{if(n(!1),s(!1),d(!1),u(null),p.current=!1,e)return;let t=a.current;if(!t)return;let o=window.matchMedia("(prefers-reduced-motion: reduce)"),i=navigator.connection,l=i?.saveData===!0||i?.effectiveType==="slow-2g"||i?.effectiveType==="2g";s(o.matches||l);let c=null,f=!1,h=!1,m=!1,g="complete"===document.readyState,v=()=>{f||(f=!0,c?.(),c=null,u(r))},b=()=>{if(!f&&!c&&m&&g&&(p.current||!o.matches&&!l)){if(h)return void v();c=function(e){let t=window;if(t.requestIdleCallback){let r=t.requestIdleCallback(e,{timeout:1500});return()=>t.cancelIdleCallback?.(r)}let r=window.setTimeout(e,1e3);return()=>window.clearTimeout(r)}(v)}},x=()=>{g=!0,b()},y=()=>{h=!0,b()},w=()=>{if(s(!p.current&&(o.matches||l)),o.matches&&!p.current){c?.(),c=null;return}b()},C=new IntersectionObserver(([e])=>{m=e.isIntersecting,n(e.isIntersecting),b()},{rootMargin:"200px 0px",threshold:.1});return C.observe(t),g||window.addEventListener("load",x,{once:!0}),window.addEventListener("pointerdown",y,{passive:!0}),window.addEventListener("keydown",y),o.addEventListener("change",w),()=>{c?.(),C.disconnect(),window.removeEventListener("load",x),window.removeEventListener("pointerdown",y),window.removeEventListener("keydown",y),o.removeEventListener("change",w)}},[e,r,a]),{isAutoplayBlocked:i,isManualPlaybackRequested:l,isVisible:o,requestPlayback:()=>{e||(p.current=!0,s(!1),d(!0),u(r))},videoSrc:c}}e.s(["useDeferredVideoSource",()=>r])},943492,e=>{"use strict";let t=(0,e.i(667784).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",()=>t],943492)},42660,e=>{"use strict";let t="inkstudio:font-try-on-handoff:v1:";function r(e){let r=crypto.randomUUID();return window.sessionStorage.setItem(`${t}${r}`,JSON.stringify({...e,createdAt:Date.now()})),r}function a(e){if(!e)return null;let r=`${t}${e}`,a=window.sessionStorage.getItem(r);if(window.sessionStorage.removeItem(r),!a)return null;try{let e=JSON.parse(a);if(!/^f-\d{4}$/.test(e.fontId)||!e.style||!e.text||Date.now()-e.createdAt>6e5)return null;return{fontId:e.fontId,style:e.style,text:e.text}}catch{return null}}e.s(["consumeFontTryOnHandoff",()=>a,"storeFontTryOnHandoff",()=>r])},789658,e=>{e.v(t=>Promise.all(["static/chunks/1402b78a09a2c926.js"].map(t=>e.l(t))).then(()=>t(883698)))},269648,e=>{e.v(t=>Promise.all(["static/chunks/07fb39d3c1b9bebc.js"].map(t=>e.l(t))).then(()=>t(233491)))},793619,e=>{e.v(t=>Promise.all(["static/chunks/69f603407362430f.js"].map(t=>e.l(t))).then(()=>t(680911)))},766814,e=>{e.v(t=>Promise.all(["static/chunks/77676224cfde6853.js"].map(t=>e.l(t))).then(()=>t(329699)))}]);
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.