PageSourceSearch

https://www.snapcase.ai/assets/index-B66or0X1.js

js snapcase.ai collected 2026-10-05 14:40:17 UTC 164,271 bytes, 28 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Index-WIaRWpF8.js","assets/react-runtime-BZYMbA0n.js","assets/routing-BJcY-oaB.js","assets/CartSheet-B_6EOzFB.js","assets/index-HZMbQ0tZ.js","assets/data-services-DGj08KhI.js","assets/preview-PUwnEOzL.js","assets/SiteMenu-BQhDixbp.js","assets/shopping-bag-DS88G65B.js","assets/SnapcaseLogo-CHCYawUe.js","assets/input-C_uI3cVS.js","assets/lifecycle-email-BPUth_5F.js","assets/shield-check-DoU-OpER.js","assets/analytics-commerce-B2ybXo44.js","assets/entry-page-contract-C5EAzsUs.js","assets/smartphone-CXzh5KW5.js","assets/credit-card-CSKZfC4j.js","assets/IphonePhotoLanding-DBYxCE__.js","assets/useConsentAwareMarketingView-Dwu2BWwb.js","assets/seo-landing-analytics-5ccMjb03.js","assets/arrow-right-5kK9tTBz.js","assets/SamsungPhotoLanding-DXPC9obM.js","assets/Catalog-yiSWZN_t.js","assets/label-0AN6X613.js","assets/SeoLanding-_d_gxTxx.js","assets/PhoneCaseSeo-D1pme12B.js","assets/NotFound-7FDdIUZR.js","assets/Preview-Dh_UOIAe.js","assets/chevron-left-fNtBx9Oi.js","assets/proxy-CIXRnYDg.js","assets/Checkout-9BTTnKqq.js","assets/checkout-session-ByfKPg32.js","assets/OrderSuccess-BifCJNlf.js","assets/loader-circle-DBhLYU0r.js","assets/circle-alert-HDNlz_Zk.js","assets/clock-3-D8wgFAmF.js","assets/refresh-cw-PA4qzOII.js","assets/Orders-B4HzF5Np.js","assets/RequireAuth-438dvY1u.js","assets/Designs-jnz6uIrE.js","assets/Auth--zwhFoM1.js","assets/AuthCallback-CjUAu-6e.js","assets/Operations-CzkKwbJk.js","assets/package-check-DDwMN2Rg.js","assets/triangle-alert-DH8GTS_V.js","assets/circle-check-DME656jJ.js","assets/KexiaozhanCheckout-ZzlY-FEv.js","assets/Terms-BFC6rNse.js","assets/email-identities-AfhIHT4t.js","assets/Privacy-Dqwihgwv.js","assets/Contact-D4nYwP_u.js","assets/EmailPreferences-DQwkma-u.js","assets/Recovery-vZEbLUKB.js","assets/DesignEditorEDM-XmUgBwWf.js"])))=>i.map(i=>d[i]);
2import{r as d,j as m,o as C,a as Rn,v as Wo,R as ea,c as ro}from"./react-runtime-BZYMbA0n.js";import{c as ta,Q as na,a as oa}from"./data-services-DGj08KhI.js";import{R as ra,a as G,u as sa,N as aa,b as Ho,L as ia,B as la}from"./routing-BJcY-oaB.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();const ca=1,da=1e6;let en=0;function ua(){return en=(en+1)%Number.MAX_SAFE_INTEGER,en.toString()}const tn=new Map,so=e=>{if(tn.has(e))return;const t=setTimeout(()=>{tn.delete(e),it({type:"REMOVE_TOAST",toastId:e})},da);tn.set(e,t)},fa=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ca)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?so(n):e.toasts.forEach(o=>{so(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===n||n===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},St=[];let Ct={toasts:[]};function it(e){Ct=fa(Ct,e),St.forEach(t=>{t(Ct)})}function pa({...e}){const t=ua(),n=r=>it({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>it({type:"DISMISS_TOAST",toastId:t});return it({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:n}}function ma(){const[e,t]=d.useState(Ct);return d.useEffect(()=>(St.push(t),()=>{const n=St.indexOf(t);n>-1&&St.splice(n,1)}),[e]),{...e,toast:pa,dismiss:n=>it({type:"DISMISS_TOAST",toastId:n})}}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function ao(e,t){if(typeof e=="function")return e(t);
vendor: 13,046 bytes, line 2
2e!=null&&(e.current=t)}function Go(...e){return t=>{let n=!1;const o=e.map(r=>{const s=ao(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():ao(e[r],null)}}}}function fe(...e){return d.useCallback(Go(...e),e)}function Ku(e,t){const n=d.createContext(t),o=s=>{const{children:a,...i}=s,u=d.useMemo(()=>i,Object.values(i));return m.jsx(n.Provider,{value:u,children:a})};o.displayName=e+"Provider";function r(s){const a=d.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function Lt(e,t=[]){let n=[];function o(s,a){const i=d.createContext(a),u=n.length;n=[...n,a];const c=p=>{var b;const{scope:h,children:l,...v}=p,g=((b=h==null?void 0:h[e])==null?void 0:b[u])||i,y=d.useMemo(()=>v,Object.values(v));return m.jsx(g.Provider,{value:y,children:l})};c.displayName=s+"Provider";function f(p,h){var g;const l=((g=h==null?void 0:h[e])==null?void 0:g[u])||i,v=d.useContext(l);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,f]}const r=()=>{const s=n.map(a=>d.createContext(a));return function(i){const u=(i==null?void 0:i[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return r.scopeName=e,[o,ha(r,...t)]}function ha(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((i,{useScope:u,scopeName:c})=>{const p=u(s)[`__scope${c}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Rt(e){const t=ya(e),n=d.forwardRef((o,r)=>{const{children:s,...a}=o,i=d.Children.toArray(s),u=i.find(wa);if(u){const c=u.props.children,f=i.map(p=>p===u?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:p);return m.jsx(t,{...a,ref:r,children:d.isValidElement(c)?d.cloneElement(c,void 0,f):null})}return m.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var ga=Rt("Slot");function ya(e){const t=d.forwardRef((n,o)=>{const{children:r,...s}=n;if(d.isValidElement(r)){const a=xa(r),i=ba(s,r.props);return r.type!==d.Fragment&&(i.ref=o?Go(o,a):a),d.cloneElement(r,i)}return d.Children.count(r)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yo=Symbol("radix.slottable");function va(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Yo,t}function wa(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yo}function ba(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const u=s(...i);return r(...i),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function xa(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ea(e){const t=e+"CollectionProvider",[n,o]=Lt(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:y,children:b}=g,w=C.useRef(null),x=C.useRef(new Map).current;return m.jsx(r,{scope:y,itemMap:x,collectionRef:w,children:b})};a.displayName=t;const i=e+"CollectionSlot",u=Rt(i),c=C.forwardRef((g,y)=>{const{scope:b,children:w}=g,x=s(i,b),E=fe(y,x.collectionRef);return m.jsx(u,{ref:E,children:w})});c.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=Rt(f),l=C.forwardRef((g,y)=>{const{scope:b,children:w,...x}=g,E=C.useRef(null),S=fe(y,E),P=s(f,b);return C.useEffect(()=>(P.itemMap.set(E,{ref:E,...x}),()=>void P.itemMap.delete(E))),m.jsx(h,{[p]:"",ref:S,children:w})});l.displayName=f;function v(g){const y=s(e+"CollectionConsumer",g);return C.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(y.itemMap.values()).sort((P,T)=>x.indexOf(P.ref.current)-x.indexOf(T.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:c,ItemSlot:l},v,o]}var Sa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=Sa.reduce((e,t)=>{const n=Rt(`Primitive.${t}`),o=d.forwardRef((r,s)=>{const{asChild:a,...i}=r,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(u,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Ko(e,t){e&&Rn.flushSync(()=>e.dispatchEvent(t))}function Oe(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Ca(e,t=globalThis==null?void 0:globalThis.document){const n=Oe(e);d.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Pa="DismissableLayer",cn="dismissableLayer.update",Aa="dismissableLayer.pointerDownOutside",Ta="dismissableLayer.focusOutside",io,Xo=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_n=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...u}=e,c=d.useContext(Xo),[f,p]=d.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,l]=d.useState({}),v=fe(t,T=>p(T)),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),w=f?g.indexOf(f):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,S=_a(T=>{const N=T.target,D=[...c.branches].some(L=>L.contains(N));!E||D||(r==null||r(T),a==null||a(T),T.defaultPrevented||i==null||i())},h),P=Ia(T=>{const N=T.target;[...c.branches].some(L=>L.contains(N))||(s==null||s(T),a==null||a(T),T.defaultPrevented||i==null||i())},h);return Ca(T=>{w===c.layers.size-1&&(o==null||o(T),!T.defaultPrevented&&i&&(T.preventDefault(),i()))},h),d.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(io=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),lo(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=io)}},[f,h,n,c]),d.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),lo())},[f,c]),d.useEffect(()=>{const T=()=>l({});return document.addEventListener(cn,T),()=>document.removeEventListener(cn,T)},[]),m.jsx(oe.div,{...u,ref:v,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,S.onPointerDownCapture)})});_n.displayName=Pa;var Ra="DismissableLayerBranch",qo=d.forwardRef((e,t)=>{const n=d.useContext(Xo),o=d.useRef(null),r=fe(t,o);return d.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),m.jsx(oe.div,{...e,ref:r})});qo.displayName=Ra;function _a(e,t=globalThis==null?void 0:globalThis.document){const n=Oe(e),o=d.useRef(!1),r=d.useRef(()=>{});return d.useEffect(()=>{const s=i=>{if(i.target&&!o.current){let u=function(){Jo(Aa,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Ia(e,t=globalThis==null?void 0:globalThis.document){const n=Oe(e),o=d.useRef(!1);return d.useEffect(()=>{const r=s=>{s.target&&!o.current&&Jo(Ta,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function lo(){const e=new CustomEvent(cn);document.dispatchEvent(e)}function Jo(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Ko(r,s):r.dispatchEvent(s)}var ka=_n,Na=qo,je=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},Oa="Portal",Zo=d.forwardRef((e,t)=>{var i;const{container:n,...o}=e,[r,s]=d.useState(!1);je(()=>s(!0),[]);const a=n||r&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?Wo.createPortal(m.jsx(oe.div,{...o,ref:t}),a):null});Zo.displayName=Oa;function ja(e,t){return d.useReducer((n,o)=>t[n][o]??n,e)}var In=e=>{const{present:t,children:n}=e,o=Ma(t),r=typeof n=="function"?n({present:o.isPresent}):d.Children.only(n),s=fe(o.ref,La(r));return typeof n=="function"||o.isPresent?d.cloneElement(r,{ref:s}):null};In.displayName="Presence";function Ma(e){const[t,n]=d.useState(),o=d.useRef(null),r=d.useRef(e),s=d.useRef("none"),a=e?"mounted":"unmounted",[i,u]=ja(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=vt(o.current);s.current=i==="mounted"?c:"none"},[i]),je(()=>{const c=o.current,f=r.current;if(f!==e){const h=s.current,l=vt(c);e?u("MOUNT"):l==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(f&&h!==l?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),je(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,p=l=>{const g=vt(o.current).includes(l.animationName);if(l.target===t&&g&&(u("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=l=>{l.target===t&&(s.current=vt(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(c=>{o.current=c?getComputedStyle(c):null,n(c)},[])}}function vt(e){return(e==null?void 0:e.animationName)||"none"}function La(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Da=ea[" useInsertionEffect ".trim().toString()]||je;function za({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,a]=$a({defaultProp:t,onChange:n}),i=e!==void 0,u=i?e:r;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${o} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,o])}const c=d.useCallback(f=>{var p;if(i){const h=Fa(f)?f(e):f;h!==e&&((p=a.current)==null||p.call(a,h))}else s(f)},[i,e,s,a]);return[u,c]}function $a({defaultProp:e,onChange:t}){const[n,o]=d.useState(e),r=d.useRef(n),s=d.useRef(t);return Da(()=>{s.current=t},[t]),d.useEffect(()=>{var a;r.current!==n&&((a=s.current)==null||a.call(s,n),r.current=n)},[n,r]),[n,o,s]}function Fa(e){return typeof e=="function"}var Va=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ua="VisuallyHidden",Dt=d.forwardRef((e,t)=>m.jsx(oe.span,{...e,ref:t,style:{...Va,...e.style}}));Dt.displayName=Ua;var Ba=Dt,kn="ToastProvider",[Nn,Wa,Ha]=Ea("Toast"),[Qo]=Lt("Toast",[Ha]),[Ga,zt]=Qo(kn),er=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:r="right",swipeThreshold:s=50,children:a}=e,[i,u]=d.useState(null),[c,f]=d.useState(0),p=d.useRef(!1),h=d.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${kn}\`. Expected non-empty \`string\`.`),m.jsx(Nn.Provider,{scope:t,children:m.jsx(Ga,{scope:t,label:n,duration:o,swipeDirection:r,swipeThreshold:s,toastCount:c,viewport:i,onViewportChange:u,onToastAdd:d.useCallback(()=>f(l=>l+1),[]),onToastRemove:d.useCallback(()=>f(l=>l-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:h,children:a})})};er.displayName=kn;var tr="ToastViewport",Ya=["F8"],dn="toast.viewportPause",un="toast.viewportResume",nr=d.forwardRef((e,t)=>
2{const{__scopeToast:n,hotkey:o=Ya,label:r="Notifications ({hotkey})",...s}=e,a=zt(tr,n),i=Wa(n),u=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),h=fe(t,p,a.onViewportChange),l=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=a.toastCount>0;d.useEffect(()=>{const y=b=>{var x;o.length!==0&&o.every(E=>b[E]||b.code===E)&&((x=p.current)==null||x.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[o]),d.useEffect(()=>{const y=u.current,b=p.current;if(v&&y&&b){const w=()=>{if(!a.isClosePausedRef.current){const P=new CustomEvent(dn);b.dispatchEvent(P),a.isClosePausedRef.current=!0}},x=()=>{if(a.isClosePausedRef.current){const P=new CustomEvent(un);b.dispatchEvent(P),a.isClosePausedRef.current=!1}},E=P=>{!y.contains(P.relatedTarget)&&x()},S=()=>{y.contains(document.activeElement)||x()};return y.addEventListener("focusin",w),y.addEventListener("focusout",E),y.addEventListener("pointermove",w),y.addEventListener("pointerleave",S),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{y.removeEventListener("focusin",w),y.removeEventListener("focusout",E),y.removeEventListener("pointermove",w),y.removeEventListener("pointerleave",S),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[v,a.isClosePausedRef]);const g=d.useCallback(({tabbingDirection:y})=>{const w=i().map(x=>{const E=x.ref.current,S=[E,...ai(E)];return y==="forwards"?S:S.reverse()});return(y==="forwards"?w.reverse():w).flat()},[i]);return d.useEffect(()=>{const y=p.current;if(y){const b=w=>{var S,P,T;const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const N=document.activeElement,D=w.shiftKey;if(w.target===y&&D){(S=c.current)==null||S.focus();return}const _=g({tabbingDirection:D?"backwards":"forwards"}),F=_.findIndex(A=>A===N);nn(_.slice(F+1))?w.preventDefault():D?(P=c.current)==null||P.focus():(T=f.current)==null||T.focus()}};return y.addEventListener("keydown",b),()=>y.removeEventListener("keydown",b)}},[i,g]),m.jsxs(Na,{ref:u,role:"region","aria-label":r.replace("{hotkey}",l),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&m.jsx(fn,{ref:c,onFocusFromOutsideViewport:()=>{const y=g({tabbingDirection:"forwards"});nn(y)}}),m.jsx(Nn.Slot,{scope:n,children:m.jsx(oe.ol,{tabIndex:-1,...s,ref:h})}),v&&m.jsx(fn,{ref:f,onFocusFromOutsideViewport:()=>{const y=g({tabbingDirection:"backwards"});nn(y)}})]})});nr.displayName=tr;var or="ToastFocusProxy",fn=d.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:o,...r}=e,s=zt(or,n);return m.jsx(Dt,{"aria-hidden":!0,tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:a=>{var c;const i=a.relatedTarget;!((c=s.viewport)!=null&&c.contains(i))&&o()}})});fn.displayName=or;var ut="Toast",Ka="toast.swipeStart",Xa="toast.swipeMove",qa="toast.swipeCancel",Ja="toast.swipeEnd",rr=d.forwardRef((e,t)=>{const{forceMount:n,open:o,defaultOpen:r,onOpenChange:s,...a}=e,[i,u]=za({prop:o,defaultProp:r??!0,onChange:s,caller:ut});return m.jsx(In,{present:n||i,children:m.jsx(ei,{open:i,...a,ref:t,onClose:()=>u(!1),onPause:Oe(e.onPause),onResume:Oe(e.onResume),onSwipeStart:Z(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Z(e.onSwipeMove,c=>{const{x:f,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:Z(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Z(e.onSwipeEnd,c=>{const{x:f,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),u(!1)})})})});rr.displayName=ut;var[Za,Qa]=Qo(ut,{onClose(){}}),ei=d.forwardRef((e,t)=>
2{const{__scopeToast:n,type:o="foreground",duration:r,open:s,onClose:a,onEscapeKeyDown:i,onPause:u,onResume:c,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:h,onSwipeEnd:l,...v}=e,g=zt(ut,n),[y,b]=d.useState(null),w=fe(t,A=>b(A)),x=d.useRef(null),E=d.useRef(null),S=r||g.duration,P=d.useRef(0),T=d.useRef(S),N=d.useRef(0),{onToastAdd:D,onToastRemove:L}=g,U=Oe(()=>{var z;(y==null?void 0:y.contains(document.activeElement))&&((z=g.viewport)==null||z.focus()),a()}),_=d.useCallback(A=>{!A||A===1/0||(window.clearTimeout(N.current),P.current=new Date().getTime(),N.current=window.setTimeout(U,A))},[U]);d.useEffect(()=>{const A=g.viewport;if(A){const z=()=>{_(T.current),c==null||c()},O=()=>{const M=new Date().getTime()-P.current;T.current=T.current-M,window.clearTimeout(N.current),u==null||u()};return A.addEventListener(dn,O),A.addEventListener(un,z),()=>{A.removeEventListener(dn,O),A.removeEventListener(un,z)}}},[g.viewport,S,u,c,_]),d.useEffect(()=>{s&&!g.isClosePausedRef.current&&_(S)},[s,S,g.isClosePausedRef,_]),d.useEffect(()=>(D(),()=>L()),[D,L]);const F=d.useMemo(()=>y?ur(y):null,[y]);return g.viewport?m.jsxs(m.Fragment,{children:[F&&m.jsx(ti,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:F}),m.jsx(Za,{scope:n,onClose:U,children:Rn.createPortal(m.jsx(Nn.ItemSlot,{scope:n,children:m.jsx(ka,{asChild:!0,onEscapeKeyDown:Z(i,()=>{g.isFocusedToastEscapeKeyDownRef.current||U(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:m.jsx(oe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...v,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Z(e.onKeyDown,A=>{A.key==="Escape"&&(i==null||i(A.nativeEvent),A.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:Z(e.onPointerDown,A=>{A.button===0&&(x.current={x:A.clientX,y:A.clientY})}),onPointerMove:Z(e.onPointerMove,A=>{if(!x.current)return;const z=A.clientX-x.current.x,O=A.clientY-x.current.y,M=!!E.current,I=["left","right"].includes(g.swipeDirection),R=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,B=I?R(0,z):0,J=I?0:R(0,O),$=A.pointerType==="touch"?10:2,V={x:B,y:J},W={originalEvent:A,delta:V};M?(E.current=V,wt(Xa,p,W,{discrete:!1})):co(V,g.swipeDirection,$)?(E.current=V,wt(Ka,f,W,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(z)>$||Math.abs(O)>$)&&(x.current=null)}),onPointerUp:Z(e.onPointerUp,A=>{const z=E.current,O=A.target;if(O.hasPointerCapture(A.pointerId)&&O.releasePointerCapture(A.pointerId),E.current=null,x.current=null,z){const M=A.currentTarget,I={originalEvent:A,delta:z};co(z,g.swipeDirection,g.swipeThreshold)?wt(Ja,l,I,{discrete:!0}):wt(qa,h,I,{discrete:!0}),M.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),ti=e=>{const{__scopeToast:t,children:n,...o}=e,r=zt(ut,t),[s,a]=d.useState(!1),[i,u]=d.useState(!1);return ri(()=>a(!0)),d.useEffect(()=>{const c=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(c)},[]),i?null:m.jsx(Zo,{asChild:!0,children:m.jsx(Dt,{...o,children:s&&m.jsxs(m.Fragment,{children:[r.label," ",n]})})})},ni="ToastTitle",sr=d.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return m.jsx(oe.div,{...o,ref:t})});sr.displayName=ni;var oi="ToastDescription",ar=d.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return m.jsx(oe.div,{...o,ref:t})});ar.displayName=oi;var ir="ToastAction",lr=d.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?m.jsx(dr,{altText:n,asChild:!0,children:m.jsx(On,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ir}\`. Expected non-empty \`string\`.`),null)});lr.displayName=ir;var cr="ToastClose",On=d.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,r=Qa(cr,n);return m.jsx(dr,{asChild:!0,children:m.jsx(oe.button,{type:"button",...o,ref:t,onClick:Z(e.onClick,r.onClose)})})});On.displayName=cr;var dr=d.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...r}=e;return m.jsx(oe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...r,ref:t})});function ur(e){const t=[];
vendor: 4,205 bytes, lines 2-27
2return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),si(o)){const r=o.ariaHidden||o.hidden||o.style.display==="none",s=o.dataset.radixToastAnnounceExclude==="";if(!r)if(s){const a=o.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...ur(o))}}),t}function wt(e,t,n,{discrete:o}){const r=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Ko(r,s):r.dispatchEvent(s)}var co=(e,t,n=0)=>{const o=Math.abs(e.x),r=Math.abs(e.y),s=o>r;return t==="left"||t==="right"?s&&o>n:!s&&r>n};function ri(e=()=>{}){const t=Oe(e);je(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function si(e){return e.nodeType===e.ELEMENT_NODE}function ai(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nn(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ii=er,fr=nr,pr=rr,mr=sr,hr=ar,gr=lr,yr=On;function vr(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=vr(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function wr(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=vr(e))&&(o&&(o+=" "),o+=t);return o}const uo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fo=wr,br=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return fo(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,a=Object.keys(r).map(c=>{const f=n==null?void 0:n[c],p=s==null?void 0:s[c];if(f===null)return null;const h=uo(f)||uo(p);return r[c][h]}),i=n&&Object.entries(n).reduce((c,f)=>{let[p,h]=f;return h===void 0||(c[p]=h),c},{}),u=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((c,f)=>{let{class:p,className:h,...l}=f;return Object.entries(l).every(v=>{let[g,y]=v;return Array.isArray(y)?y.includes({...s,...i}[g]):{...s,...i}[g]===y})?[...c,p,h]:c},[]);return fo(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)};/**
3 * @license lucide-react v0.462.0 - ISC
4 *
5 * This source code is licensed under the ISC license.
6 * See the LICENSE file in the root directory of this source tree.
7 */const li=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xr=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();/**
8 * @license lucide-react v0.462.0 - ISC
9 *
10 * This source code is licensed under the ISC license.
11 * See the LICENSE file in the root directory of this source tree.
12 */var ci={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
13 * @license lucide-react v0.462.0 - ISC
14 *
15 * This source code is licensed under the ISC license.
16 * See the LICENSE file in the root directory of this source tree.
17 */const di=d.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:a,...i},u)=>d.createElement("svg",{ref:u,...ci,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:xr("lucide",r),...i},[...a.map(([c,f])=>d.createElement(c,f)),...Array.isArray(s)?s:[s]]));/**
18 * @license lucide-react v0.462.0 - ISC
19 *
20 * This source code is licensed under the ISC license.
21 * See the LICENSE file in the root directory of this source tree.
22 */const ui=(e,t)=>{const n=d.forwardRef(({className:o,...r},s)=>d.createElement(di,{ref:s,iconNode:t,className:xr(`lucide-${li(e)}`,o),...r}));return n.displayName=`${e}`,n};/**
23 * @license lucide-react v0.462.0 - ISC
24 *
25 * This source code is licensed under the ISC license.
26 * See the LICENSE file in the root directory of this source tree.
27 */const fi=ui("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 4,665 bytes, line 27
27],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),jn="-",pi=e=>{const t=hi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{const i=a.split(jn);return i[0]===""&&i.length!==1&&i.shift(),Er(i,t)||mi(a)},getConflictingClassGroupIds:(a,i)=>{const u=n[a]||[];return i&&o[a]?[...u,...o[a]]:u}}},Er=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?Er(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const s=e.join(jn);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},po=/^\[(.+)\]$/,mi=e=>{if(po.test(e)){const t=po.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},hi=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return yi(Object.entries(e.classGroups),n).forEach(([s,a])=>{pn(a,o,s,t)}),o},pn=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const s=r===""?t:mo(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(gi(r)){pn(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,a])=>{pn(a,mo(t,s),n,o)})})},mo=(e,t)=>{let n=e;return t.split(jn).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},gi=e=>e.isThemeGetter,yi=(e,t)=>t?e.map(([n,o])=>{const r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,i])=>[t+a,i])):s);return[n,r]}):e,vi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,o=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=o.get(s))!==void 0)return r(s,a),a},set(s,a){n.has(s)?n.set(s,a):r(s,a)}}},Sr="!",wi=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],s=t.length,a=i=>{const u=[];let c=0,f=0,p;for(let y=0;y<i.length;y++){let b=i[y];if(c===0){if(b===r&&(o||i.slice(y,y+s)===t)){u.push(i.slice(f,y)),f=y+s;continue}if(b==="/"){p=y;continue}}b==="["?c++:b==="]"&&c--}const h=u.length===0?i:i.substring(f),l=h.startsWith(Sr),v=l?h.substring(1):h,g=p&&p>f?p-f:void 0;return{modifiers:u,hasImportantModifier:l,baseClassName:v,maybePostfixModifierPosition:g}};return n?i=>n({className:i,parseClassName:a}):a},bi=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},xi=e=>({cache:vi(e.cacheSize),parseClassName:wi(e),...pi(e)}),Ei=/\s+/,Si=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],a=e.trim().split(Ei);let i="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{modifiers:f,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:l}=n(c);let v=!!l,g=o(v?h.substring(0,l):h);if(!g){if(!v){i=c+(i.length>0?" "+i:i);continue}if(g=o(h),!g){i=c+(i.length>0?" "+i:i);continue}v=!1}const y=bi(f).join(":"),b=p?y+Sr:y,w=b+g;if(s.includes(w))continue;s.push(w);const x=r(g,v);for(let E=0;E<x.length;++E){const S=x[E];s.push(b+S)}i=c+(i.length>0?" "+i:i)}return i};function Ci(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Cr(t))&&(o&&(o+=" "),o+=n);return o}const Cr=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Cr(e[o]))&&(n&&(n+=" "),n+=t);return n};function Pi(e,...t){let n,o,r,s=a;function a(u){const c=t.reduce((f,p)=>p(f),e());return n=xi(c),o=n.cache.get,r=n.cache.set,s=i,i(u)}function i(u){const c=o(u);if(c)return c;const f=Si(u,n);return r(u,f),f}return function(){return s(Ci.apply(null,arguments))}}const K=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Pr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ai=/^\d+\/\d+$/,Ti=new Set(["px","full","screen"]),Ri=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_i=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ii=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ki=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ni=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,we=e=>qe(e)||Ti.has(e)||Ai.test(e),Ie=e=>et(e,"length",Fi),qe=e=>!!e&&!Number.isNaN(Number(e)),on=e=>et(e,"number",qe),st=e=>!!e&&Number.isInteger(Number(e)),Oi=e=>e.endsWith("%")&&qe(e.slice(0,-1)),j=e=>Pr.test(e),ke=e=>Ri.test(e),ji=new Set(["length","size","percentage"]),Mi=e=>et(e,ji,Ar),Li=e=>et(e,"position",Ar),Di=new Set(["image","url"]),zi=e=>et(e,Di,Ui),$i=e=>et(e,"",Vi),at=()=>!0,et=(e,t,n)=>{const o=Pr.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},Fi=e=>_i.test(e)&&!Ii.test(e),Ar=()=>!1,Vi=e=>ki.test(e),Ui=e=>Ni.test(e),Bi=()=>
vendor: 12,704 bytes, line 27
27{const e=K("colors"),t=K("spacing"),n=K("blur"),o=K("brightness"),r=K("borderColor"),s=K("borderRadius"),a=K("borderSpacing"),i=K("borderWidth"),u=K("contrast"),c=K("grayscale"),f=K("hueRotate"),p=K("invert"),h=K("gap"),l=K("gradientColorStops"),v=K("gradientColorStopPositions"),g=K("inset"),y=K("margin"),b=K("opacity"),w=K("padding"),x=K("saturate"),E=K("scale"),S=K("sepia"),P=K("skew"),T=K("space"),N=K("translate"),D=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",j,t],_=()=>[j,t],F=()=>["",we,Ie],A=()=>["auto",qe,j],z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],M=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",j],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[qe,j];return{cacheSize:500,separator:":",theme:{colors:[at],spacing:[we,Ie],blur:["none","",ke,j],brightness:J(),borderColor:[e],borderRadius:["none","","full",ke,j],borderSpacing:_(),borderWidth:F(),contrast:J(),grayscale:R(),hueRotate:J(),invert:R(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[Oi,Ie],inset:U(),margin:U(),opacity:J(),padding:_(),saturate:J(),scale:J(),sepia:R(),skew:J(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",j]}],container:["container"],columns:[{columns:[ke]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...z(),j]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",st,j]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",j]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",st,j]}],"grid-cols":[{"grid-cols":[at]}],"col-start-end":[{col:["auto",{span:["full",st,j]},j]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[at]}],"row-start-end":[{row:["auto",{span:[st,j]},j]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",j]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",j]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",j,t]}],"min-w":[{"min-w":[j,t,"min","max","fit"]}],"max-w":[{"max-w":[j,t,"none","full","min","max","fit","prose",{screen:[ke]},ke]}],h:[{h:[j,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[j,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ke,Ie]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",on]}],"font-family":[{font:[at]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",j]}],"line-clamp":[{"line-clamp":["none",qe,on]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",we,j]}],"list-image":[{"list-image":["none",j]}],"list-style-type":[{list:["none","disc","decimal",j]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",we,Ie]}],"underline-offset":[{"underline-offset":["auto",we,j]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...z(),Li]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[l]}],"gradient-via":[{via:[l]}],"gradient-to":[{to:[l]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:O()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[we,j]}],"outline-w":[{outline:[we,Ie]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[we,Ie]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ke,$i]}],"shadow-color":[{shadow:[at]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...M(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":M()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",ke,j]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",j]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",j]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",j]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[st,j]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",j]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
27],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[we,Ie,on]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Wi=Pi(Bi);function De(...e){return Wi(wr(e))}const Hi=ii,Tr=d.forwardRef(({className:e,...t},n)=>m.jsx(fr,{ref:n,className:De("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Tr.displayName=fr.displayName;const Gi=br("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Rr=d.forwardRef(({className:e,variant:t,...n},o)=>m.jsx(pr,{ref:o,className:De(Gi({variant:t}),e),...n}));Rr.displayName=pr.displayName;const Yi=d.forwardRef(({className:e,...t},n)=>m.jsx(gr,{ref:n,className:De("inline-flex h-11 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));Yi.displayName=gr.displayName;const _r=d.forwardRef(({className:e,...t},n)=>m.jsxs(yr,{ref:n,className:De("absolute right-1 top-1 flex h-11 w-11 items-center justify-center rounded-md text-foreground
27/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:[m.jsx(fi,{className:"h-4 w-4","aria-hidden":"true"}),m.jsx("span",{className:"sr-only",children:"Dismiss notification"})]}));_r.displayName=yr.displayName;const Ir=d.forwardRef(({className:e,...t},n)=>m.jsx(mr,{ref:n,className:De("text-sm font-semibold",e),...t}));Ir.displayName=mr.displayName;const kr=d.forwardRef(({className:e,...t},n)=>m.jsx(hr,{ref:n,className:De("text-sm opacity-90",e),...t}));kr.displayName=hr.displayName;function Ki(){const{toasts:e}=ma();return m.jsxs(Hi,{children:[e.map(function({id:t,title:n,description:o,action:r,...s}){return m.jsxs(Rr,{...s,children:[m.jsxs("div",{className:"grid gap-1",children:[n&&m.jsx(Ir,{children:n}),o&&m.jsx(kr,{children:o})]}),r,m.jsx(_r,{})]},t)}),m.jsx(Tr,{})]})}var _t=["light","dark"],Mn="(prefers-color-scheme: dark)",Xi=typeof window>"u",Ln=d.createContext(void 0),qi={setTheme:e=>{},themes:[]},Ji=()=>{var e;return(e=d.useContext(Ln))!=null?e:qi},Zi=e=>d.useContext(Ln)?e.children:d.createElement(el,{...e}),Qi=["light","dark"],el=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:r="theme",themes:s=Qi,defaultTheme:a=n?"system":"light",attribute:i="data-theme",value:u,children:c,nonce:f})=>{let[p,h]=d.useState(()=>ho(r,a)),[l,v]=d.useState(()=>ho(r)),g=u?Object.values(u):s,y=d.useCallback(E=>{let S=E;if(!S)return;E==="system"&&n&&(S=go());let P=u?u[S]:S,T=t?nl():null,N=document.documentElement;if(i==="class"?(N.classList.remove(...g),P&&N.classList.add(P)):P?N.setAttribute(i,P):N.removeAttribute(i),o){let D=_t.includes(a)?a:null,L=_t.includes(S)?S:D;N.style.colorScheme=L}T==null||T()},[]),b=d.useCallback(E=>{let S=typeof E=="function"?E(E):E;h(S);try{localStorage.setItem(r,S)}catch{}},[e]),w=d.useCallback(E=>{let S=go(E);v(S),p==="system"&&n&&!e&&y("system")},[p,e]);d.useEffect(()=>{let E=window.matchMedia(Mn);return E.addListener(w),w(E),()=>E.removeListener(w)},[w]),d.useEffect(()=>{let E=S=>{if(S.key!==r)return;let P=S.newValue||a;b(P)};return window.addEventListener("storage",E),()=>window.removeEventListener("storage",E)},[b]),d.useEffect(()=>{y(e??p)},[e,p]);let x=d.useMemo(()=>({theme:p,setTheme:b,forcedTheme:e,resolvedTheme:p==="system"?l:p,themes:n?[...s,"system"]:s,systemTheme:n?l:void 0}),[p,b,e,l,n,s]);return d.createElement(Ln.Provider,{value:x},d.createElement(tl,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:o,storageKey:r,themes:s,defaultTheme:a,attribute:i,value:u,children:c,attrs:g,nonce:f}),c)},tl=d.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:r,defaultTheme:s,value:a,attrs:i,nonce:u})=>{let c=s==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${i.map(v=>`'${v}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=r?_t.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(v,g=!1,y=!0)=>{let b=a?a[v]:v,w=g?v+"|| ''":`'${b}'`,x="";return r&&y&&!g&&_t.includes(v)&&(x+=`d.style.colorScheme = '${v}';`),n==="class"?g||b?x+=`c.add(${w})`:x+="null":b&&(x+=`d[s](n,${w})`),x},l=e?`!function(){${f}${h(e)}}()`:o?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${Mn}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${h(a?"x[e]":"e",!0)}}${c?"":"else{"+h(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${h(a?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${p}}catch(t){}}();`;return d.createElement("script",{nonce:u,dangerouslySetInnerHTML:{__html:l}})}),ho=(e,t)=>{if(Xi)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},nl=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},go=e=>
27(e||(e=window.matchMedia(Mn)),e.matches?"dark":"light"),ol=e=>{switch(e){case"success":return al;case"info":return ll;case"warning":return il;case"error":return cl;default:return null}},rl=Array(12).fill(0),sl=({visible:e,className:t})=>C.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},C.createElement("div",{className:"sonner-spinner"},rl.map((n,o)=>C.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),al=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),il=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ll=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),cl=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),dl=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},C.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),C.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ul=()=>{let[e,t]=C.useState(document.hidden);return C.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},mn=1,fl=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...o}=e,r=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:mn++,s=this.toasts.find(i=>i.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),s?this.toasts=this.toasts.map(i=>i.id===r?(this.publish({...i,...e,id:r,title:n}),{...i,...e,id:r,dismissible:a,title:n}):i):this.addToast({title:n,...o,dismissible:a,id:r}),r},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
27this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let o=e instanceof Promise?e:e(),r=n!==void 0,s,a=o.then(async u=>{if(s=["resolve",u],C.isValidElement(u))r=!1,this.create({id:n,type:"default",message:u});else if(ml(u)&&!u.ok){r=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${u.status}`):t.error,f=typeof t.description=="function"?await t.description(`HTTP error! status: ${u.status}`):t.description;this.create({id:n,type:"error",message:c,description:f})}else if(t.success!==void 0){r=!1;let c=typeof t.success=="function"?await t.success(u):t.success,f=typeof t.description=="function"?await t.description(u):t.description;this.create({id:n,type:"success",message:c,description:f})}}).catch(async u=>{if(s=["reject",u],t.error!==void 0){r=!1;let c=typeof t.error=="function"?await t.error(u):t.error,f=typeof t.description=="function"?await t.description(u):t.description;this.create({id:n,type:"error",message:c,description:f})}}).finally(()=>{var u;r&&(this.dismiss(n),n=void 0),(u=t.finally)==null||u.call(t)}),i=()=>new Promise((u,c)=>a.then(()=>s[0]==="reject"?c(s[1]):u(s[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:i}:Object.assign(n,{unwrap:i})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||mn++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ne=new fl,pl=(e,t)=>{let n=(t==null?void 0:t.id)||mn++;return ne.addToast({title:e,...t,id:n}),n},ml=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",hl=pl,gl=()=>ne.toasts,yl=()=>ne.getActiveToasts(),Xu=Object.assign(hl,{success:ne.success,info:ne.info,warning:ne.warning,error:ne.error,custom:ne.custom,message:ne.message,promise:ne.promise,dismiss:ne.dismiss,loading:ne.loading},{getHistory:gl,getToasts:yl});function vl(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",t==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}vl(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
27left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
27:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
27--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
28`);function bt(e){return e.label!==void 0}var wl=3,bl="32px",xl="16px",yo=4e3,El=356,Sl=14,Cl=20,Pl=200;function ue(...e){return e.filter(Boolean).join(" ")}function Al(e){let[t,n]=e.split("-"),o=[];return t&&o.push(t),n&&o.push(n),o}var Tl=e=>{var t,n,o,r,s,a,i,u,c,f,p;let{invert:h,toast:l,unstyled:v,interacting:g,setHeights:y,visibleToasts:b,heights:w,index:x,toasts:E,expanded:S,removeToast:P,defaultRichColors:T,closeButton:N,style:D,cancelButtonStyle:L,actionButtonStyle:U,className:_="",descriptionClassName:F="",duration:A,position:z,gap:O,loadingIcon:M,expandByDefault:I,classNames:R,icons:B,closeButtonAriaLabel:J="Close toast",pauseWhenPageIsHidden:$}=e,[V,W]=C.useState(null),[ee,Se]=C.useState(null),[Y,Be]=C.useState(!1),[Ce,ze]=C.useState(!1),[Pe,We]=C.useState(!1),[Ae,ht]=C.useState(!1),[qt,gt]=C.useState(!1),[Jt,ot]=C.useState(0),[He,Zn]=C.useState(0),rt=C.useRef(l.duration||A||yo),Qn=C.useRef(null),$e=C.useRef(null),Hs=x===0,Gs=x+1<=b,ae=l.type,Ge=l.dismissible!==!1,Ys=l.className||"",Ks=l.descriptionClassName||"",yt=C.useMemo(()=>w.findIndex(k=>k.toastId===l.id)||0,[w,l.id]),Xs=C.useMemo(()=>{var k;return(k=l.closeButton)!=null?k:N},[l.closeButton,N]),eo=C.useMemo(()=>l.duration||A||yo,[l.duration,A]),Zt=C.useRef(0),Ye=C.useRef(0),to=C.useRef(0),Ke=C.useRef(null),[qs,Js]=z.split("-"),no=C.useMemo(()=>w.reduce((k,H,X)=>X>=yt?k:k+H.height,0),[w,yt]),oo=ul(),Zs=l.invert||h,Qt=ae==="loading";Ye.current=C.useMemo(()=>yt*O+no,[yt,no]),C.useEffect(()=>{rt.current=eo},[eo]),C.useEffect(()=>{Be(!0)},[]),C.useEffect(()=>{let k=$e.current;if(k){let H=k.getBoundingClientRect().height;return Zn(H),y(X=>[{toastId:l.id,height:H,position:l.position},...X]),()=>y(X=>X.filter(le=>le.toastId!==l.id))}},[y,l.id]),C.useLayoutEffect(()=>{if(!Y)return;let k=$e.current,H=k.style.height;k.style.height="auto";let X=k.getBoundingClientRect().height;k.style.height=H,Zn(X),y(le=>le.find(ce=>ce.toastId===l.id)?le.map(ce=>
28ce.toastId===l.id?{...ce,height:X}:ce):[{toastId:l.id,height:X,position:l.position},...le])},[Y,l.title,l.description,y,l.id]);let Te=C.useCallback(()=>{ze(!0),ot(Ye.current),y(k=>k.filter(H=>H.toastId!==l.id)),setTimeout(()=>{P(l)},Pl)},[l,P,y,Ye]);C.useEffect(()=>{if(l.promise&&ae==="loading"||l.duration===1/0||l.type==="loading")return;let k;return S||g||$&&oo?(()=>{if(to.current<Zt.current){let H=new Date().getTime()-Zt.current;rt.current=rt.current-H}to.current=new Date().getTime()})():rt.current!==1/0&&(Zt.current=new Date().getTime(),k=setTimeout(()=>{var H;(H=l.onAutoClose)==null||H.call(l,l),Te()},rt.current)),()=>clearTimeout(k)},[S,g,l,ae,$,oo,Te]),C.useEffect(()=>{l.delete&&Te()},[Te,l.delete]);function Qs(){var k,H,X;return B!=null&&B.loading?C.createElement("div",{className:ue(R==null?void 0:R.loader,(k=l==null?void 0:l.classNames)==null?void 0:k.loader,"sonner-loader"),"data-visible":ae==="loading"},B.loading):M?C.createElement("div",{className:ue(R==null?void 0:R.loader,(H=l==null?void 0:l.classNames)==null?void 0:H.loader,"sonner-loader"),"data-visible":ae==="loading"},M):C.createElement(sl,{className:ue(R==null?void 0:R.loader,(X=l==null?void 0:l.classNames)==null?void 0:X.loader),visible:ae==="loading"})}return C.createElement("li",{tabIndex:0,ref:$e,className:ue(_,Ys,R==null?void 0:R.toast,(t=l==null?void 0:l.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[ae],(n=l==null?void 0:l.classNames)==null?void 0:n[ae]),"data-sonner-toast":"","data-rich-colors":(o=l.richColors)!=null?o:T,"data-styled":!(l.jsx||l.unstyled||v),"data-mounted":Y,"data-promise":!!l.promise,"data-swiped":qt,"data-removed":Ce,"data-visible":Gs,"data-y-position":qs,"data-x-position":Js,"data-index":x,"data-front":Hs,"data-swiping":Pe,"data-dismissible":Ge,"data-type":ae,"data-invert":Zs,"data-swipe-out":Ae,"data-swipe-direction":ee,"data-expanded":!!(S||I&&Y),style:{"--index":x,"--toasts-before":x,"--z-index":E.length-x,"--offset":`${Ce?Jt:Ye.current}px`,"--initial-height":I?"auto":`${He}px`,...D,...l.style},onDragEnd:()=>{We(!1),W(null),Ke.current=null},onPointerDown:k=>{Qt||!Ge||(Qn.current=new Date,ot(Ye.current),k.target.setPointerCapture(k.pointerId),k.target.tagName!=="BUTTON"&&(We(!0),Ke.current={x:k.clientX,y:k.clientY}))},onPointerUp:()=>{var k,H,X,le;if(Ae||!Ge)return;Ke.current=null;let ce=Number(((k=$e.current)==null?void 0:k.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Re=Number(((H=$e.current)==null?void 0:H.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Fe=new Date().getTime()-((X=Qn.current)==null?void 0:X.getTime()),de=V==="x"?ce:Re,_e=Math.abs(de)/Fe;if(Math.abs(de)>=Cl||_e>.11){ot(Ye.current),(le=l.onDismiss)==null||le.call(l,l),Se(V==="x"?ce>0?"right":"left":Re>0?"down":"up"),Te(),ht(!0),gt(!1);return}We(!1),W(null)},onPointerMove:k=>{var H,X,le,ce;if(!Ke.current||!Ge||((H=window.getSelection())==null?void 0:H.toString().length)>0)return;let Re=k.clientY-Ke.current.y,Fe=k.clientX-Ke.current.x,de=(X=e.swipeDirections)!=null?X:Al(z);!V&&(Math.abs(Fe)>1||Math.abs(Re)>1)&&W(Math.abs(Fe)>Math.abs(Re)?"x":"y");let _e={x:0,y:0};V==="y"?(de.includes("top")||de.includes("bottom"))&&(de.includes("top")&&Re<0||de.includes("bottom")&&Re>0)&&(_e.y=Re):V==="x"&&(de.includes("left")||de.includes("right"))&&(de.includes("left")&&Fe<0||de.includes("right")&&Fe>0)&&(_e.x=Fe),(Math.abs(_e.x)>0||Math.abs(_e.y)>0)&&gt(!0),(le=$e.current)==null||le.style.setProperty("--swipe-amount-x",`${_e.x}px`),(ce=$e.current)==null||ce.style.setProperty("--swipe-amount-y",`${_e.y}px`)}},Xs&&!l.jsx?C.createElement("button",{"aria-label":J,"data-disabled":Qt,"data-close-button":!0,onClick:Qt||!Ge?()=>{}:()=>{var k;Te(),(k=l.onDismiss)==null||k.call(l,l)},className:ue(R==null?void 0:R.closeButton,(r=l==null?void 0:l.classNames)==null?void 0:r.closeButton)},(s=B==null?void 0:B.close)!=null?s:dl):null,l.jsx||d.isValidElement(l.title)?l.jsx?l.jsx:typeof l.title=="function"?l.title():l.title:C.createElement(C.Fragment,null,ae||l.icon||l.promise?C.createElement("div",{"data-icon":"",className:ue(R==null?void 0:R.icon,(a=l==null?void 0:l.classNames)==null?void 0:a.icon)},l.promise||l.type==="loading"&&!l.icon?l.icon||Qs():null,l.type!=="loading"?l.icon||(B==null?void 0:B[ae])||ol(ae):null):null,C.createElement("div",{"data-content":"",className:ue(R==null?void 0:R.content,(i=l==null?void 0:l.classNames)==null?void 0:i.content)},C.createElement("div",{"data-title":"",className:ue(R==null?void 0:R.title,(u=l==null?void 0:l.classNames)==null?void 0:u.title)}
28,typeof l.title=="function"?l.title():l.title),l.description?C.createElement("div",{"data-description":"",className:ue(F,Ks,R==null?void 0:R.description,(c=l==null?void 0:l.classNames)==null?void 0:c.description)},typeof l.description=="function"?l.description():l.description):null),d.isValidElement(l.cancel)?l.cancel:l.cancel&&bt(l.cancel)?C.createElement("button",{"data-button":!0,"data-cancel":!0,style:l.cancelButtonStyle||L,onClick:k=>{var H,X;bt(l.cancel)&&Ge&&((X=(H=l.cancel).onClick)==null||X.call(H,k),Te())},className:ue(R==null?void 0:R.cancelButton,(f=l==null?void 0:l.classNames)==null?void 0:f.cancelButton)},l.cancel.label):null,d.isValidElement(l.action)?l.action:l.action&&bt(l.action)?C.createElement("button",{"data-button":!0,"data-action":!0,style:l.actionButtonStyle||U,onClick:k=>{var H,X;bt(l.action)&&((X=(H=l.action).onClick)==null||X.call(H,k),!k.defaultPrevented&&Te())},className:ue(R==null?void 0:R.actionButton,(p=l==null?void 0:l.classNames)==null?void 0:p.actionButton)},l.action.label):null))};function vo(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Rl(e,t){let n={};return[e,t].forEach((o,r)=>{let s=r===1,a=s?"--mobile-offset":"--offset",i=s?xl:bl;function u(c){["top","right","bottom","left"].forEach(f=>{n[`${a}-${f}`]=typeof c=="number"?`${c}px`:c})}typeof o=="number"||typeof o=="string"?u(o):typeof o=="object"?["top","right","bottom","left"].forEach(c=>{o[c]===void 0?n[`${a}-${c}`]=i:n[`${a}-${c}`]=typeof o[c]=="number"?`${o[c]}px`:o[c]}):u(i)}),n}var _l=d.forwardRef(function(e,t){let{invert:n,position:o="bottom-right",hotkey:r=["altKey","KeyT"],expand:s,closeButton:a,className:i,offset:u,mobileOffset:c,theme:f="light",richColors:p,duration:h,style:l,visibleToasts:v=wl,toastOptions:g,dir:y=vo(),gap:b=Sl,loadingIcon:w,icons:x,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:S}=e,[P,T]=C.useState([]),N=C.useMemo(()=>Array.from(new Set([o].concat(P.filter($=>$.position).map($=>$.position)))),[P,o]),[D,L]=C.useState([]),[U,_]=C.useState(!1),[F,A]=C.useState(!1),[z,O]=C.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),M=C.useRef(null),I=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=C.useRef(null),B=C.useRef(!1),J=C.useCallback($=>{T(V=>{var W;return(W=V.find(ee=>ee.id===$.id))!=null&&W.delete||ne.dismiss($.id),V.filter(({id:ee})=>ee!==$.id)})},[]);return C.useEffect(()=>ne.subscribe($=>{if($.dismiss){T(V=>V.map(W=>W.id===$.id?{...W,delete:!0}:W));return}setTimeout(()=>{Wo.flushSync(()=>{T(V=>{let W=V.findIndex(ee=>ee.id===$.id);return W!==-1?[...V.slice(0,W),{...V[W],...$},...V.slice(W+1)]:[$,...V]})})})}),[]),C.useEffect(()=>{if(f!=="system"){O(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),typeof window>"u")return;let $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:V})=>{O(V?"dark":"light")})}catch{$.addListener(({matches:W})=>{try{O(W?"dark":"light")}catch(ee){console.error(ee)}})}},[f]),C.useEffect(()=>{P.length<=1&&_(!1)},[P]),C.useEffect(()=>{let $=V=>{var W,ee;r.every(Se=>V[Se]||V.code===Se)&&(_(!0),(W=M.current)==null||W.focus()),V.code==="Escape"&&(document.activeElement===M.current||(ee=M.current)!=null&&ee.contains(document.activeElement))&&_(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[r]),C.useEffect(()=>{if(M.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,B.current=!1)}},[M.current]),C.createElement("section",{ref:t,"aria-label":`${E} ${I}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map(($,V)=>{var W;let[ee,Se]=$.split("-");return P.length?C.createElement("ol",{key:$,dir:y==="auto"?vo():y,tabIndex:-1,ref:M,className:i,"data-sonner-toaster":!0,"data-theme":z,"data-y-position":ee,"data-lifted":U&&P.length>1&&!s,"data-x-position":Se,style:{"--front-toast-height":`${((W=D[0])==null?void 0:W.height)||0}px`,"--width":`${El}px`,"--gap":`${b}px`,...l,...Rl(u,c)},onBlur:Y=>{B.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(B.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||B.current||(B.current=!0,R.current=Y.relatedTarget)},onMouseEnter:()=>_(!0),onMouseMove:()=>_(!0),onMouseLeave:()=>{F||_(!1)},onDragEnd:()=>_(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},P.filter(Y=>!Y.position&&V===0||Y.position===$).map((Y,Be)=>{var Ce,ze;return C.createElement(Tl,{key:Y.id,icons:x,index:Be,toast:Y,defaultRichColors:p,duration:(Ce=g==null?void 0:g.duration)!=null?Ce:h,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:v,closeButton:(ze=g==null?void 0:g.closeButton)!=null?ze:a,interacting:F,position:$,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:J,toasts:P.filter(Pe=>Pe.position==Y.position),heights:D.filter(Pe=>Pe.position==Y.position),setHeights:L,expandByDefault:s,gap:b,loadingIcon:w,exp
vendor: 2,659 bytes, line 28
28anded:U,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const Il=({...e})=>{const{theme:t="system"}=Ji();return m.jsx(_l,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},kl=["top","right","bottom","left"],Me=Math.min,re=Math.max,It=Math.round,xt=Math.floor,ge=e=>({x:e,y:e}),Nl={left:"right",right:"left",bottom:"top",top:"bottom"},Ol={start:"end",end:"start"};function hn(e,t,n){return re(e,Me(t,n))}function be(e,t){return typeof e=="function"?e(t):e}function xe(e){return e.split("-")[0]}function tt(e){return e.split("-")[1]}function Dn(e){return e==="x"?"y":"x"}function zn(e){return e==="y"?"height":"width"}const jl=new Set(["top","bottom"]);function he(e){return jl.has(xe(e))?"y":"x"}function $n(e){return Dn(he(e))}function Ml(e,t,n){n===void 0&&(n=!1);const o=tt(e),r=$n(e),s=zn(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=kt(a)),[a,kt(a)]}function Ll(e){const t=kt(e);return[gn(e),t,gn(t)]}function gn(e){return e.replace(/start|end/g,t=>Ol[t])}const wo=["left","right"],bo=["right","left"],Dl=["top","bottom"],zl=["bottom","top"];function $l(e,t,n){switch(e){case"top":case"bottom":return n?t?bo:wo:t?wo:bo;case"left":case"right":return t?Dl:zl;default:return[]}}function Fl(e,t,n,o){const r=tt(e);let s=$l(xe(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(gn)))),s}function kt(e){return e.replace(/left|right|bottom|top/g,t=>Nl[t])}function Vl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Nr(e){return typeof e!="number"?Vl(e):{top:e,right:e,bottom:e,left:e}}function Nt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function xo(e,t,n){let{reference:o,floating:r}=e;const s=he(t),a=$n(t),i=zn(a),u=xe(t),c=s==="y",f=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,h=o[i]/2-r[i]/2;let l;switch(u){case"top":l={x:f,y:o.y-r.height};break;case"bottom":l={x:f,y:o.y+o.height};break;case"right":l={x:o.x+o.width,y:p};break;case"left":l={x:o.x-r.width,y:p};break;default:l={x:o.x,y:o.y}}switch(tt(t)){case"start":l[a]-=h*(n&&c?-1:1);break;case"end":l[a]+=h*(n&&c?-1:1);break}return l}const Ul=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}
vendor: 9,931 bytes, line 28
28=n,i=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:p}=xo(c,o,u),h=o,l={},v=0;for(let g=0;g<i.length;g++){const{name:y,fn:b}=i[g],{x:w,y:x,data:E,reset:S}=await b({x:f,y:p,initialPlacement:o,placement:h,strategy:r,middlewareData:l,rects:c,platform:a,elements:{reference:e,floating:t}});f=w??f,p=x??p,l={...l,[y]:{...l[y],...E}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:f,y:p}=xo(c,h,u)),g=-1)}return{x:f,y:p,placement:h,strategy:r,middlewareData:l}};async function lt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:a,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:l=0}=be(t,e),v=Nr(l),y=i[h?p==="floating"?"reference":"floating":p],b=Nt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:c,rootBoundary:f,strategy:u})),w=p==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),E=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Nt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:x,strategy:u}):w);return{top:(b.top-S.top+v.top)/E.y,bottom:(S.bottom-b.bottom+v.bottom)/E.y,left:(b.left-S.left+v.left)/E.x,right:(S.right-b.right+v.right)/E.x}}const Bl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:i,middlewareData:u}=t,{element:c,padding:f=0}=be(e,t)||{};if(c==null)return{};const p=Nr(f),h={x:n,y:o},l=$n(r),v=zn(l),g=await a.getDimensions(c),y=l==="y",b=y?"top":"left",w=y?"bottom":"right",x=y?"clientHeight":"clientWidth",E=s.reference[v]+s.reference[l]-h[l]-s.floating[v],S=h[l]-s.reference[l],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let T=P?P[x]:0;(!T||!await(a.isElement==null?void 0:a.isElement(P)))&&(T=i.floating[x]||s.floating[v]);const N=E/2-S/2,D=T/2-g[v]/2-1,L=Me(p[b],D),U=Me(p[w],D),_=L,F=T-g[v]-U,A=T/2-g[v]/2+N,z=hn(_,A,F),O=!u.arrow&&tt(r)!=null&&A!==z&&s.reference[v]/2-(A<_?L:U)-g[v]/2<0,M=O?A<_?A-_:A-F:0;return{[l]:h[l]+M,data:{[l]:z,centerOffset:A-z-M,...O&&{alignmentOffset:M}},reset:O}}}),Wl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:l="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...y}=be(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=xe(r),w=he(i),x=xe(i)===i,E=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=h||(x||!g?[kt(i)]:Ll(i)),P=v!=="none";!h&&P&&S.push(...Fl(i,g,v,E));const T=[i,...S],N=await lt(t,y),D=[];let L=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&D.push(N[b]),p){const A=Ml(r,a,E);D.push(N[A[0]],N[A[1]])}if(L=[...L,{placement:r,overflows:D}],!D.every(A=>A<=0)){var U,_;const A=(((U=s.flip)==null?void 0:U.index)||0)+1,z=T[A];if(z&&(!(p==="alignment"?w!==he(z):!1)||L.every(I=>I.overflows[0]>0&&he(I.placement)===w)))return{data:{index:A,overflows:L},reset:{placement:z}};let O=(_=L.filter(M=>M.overflows[0]<=0).sort((M,I)=>M.overflows[1]-I.overflows[1])[0])==null?void 0:_.placement;if(!O)switch(l){case"bestFit":{var F;const M=(F=L.filter(I=>{if(P){const R=he(I.placement);return R===w||R==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(R=>R>0).reduce((R,B)=>R+B,0)]).sort((I,R)=>I[1]-R[1])[0])==null?void 0:F[0];M&&(O=M);break}case"initialPlacement":O=i;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function Eo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function So(e){return kl.some(t=>e[t]>=0)}const Hl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=be(e,t);switch(o){case"referenceHidden":{const s=await lt(t,{...r,elementContext:"reference"}),a=Eo(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:So(a)}}}case"escaped":{const s=await lt(t,{...r,altBoundary:!0}),a=Eo(s,n.floating);return{data:{escapedOffsets:a,escaped:So(a)}}}default:return{}}}}},Or=new Set(["left","top"]);async function Gl(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=xe(n),i=tt(n),u=he(n)==="y",c=Or.has(a)?-1:1,f=s&&u?-1:1,p=be(t,e);let{mainAxis:h,crossAxis:l,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof v=="number"&&(l=i==="end"?v*-1:v),u?{x:l*f,y:h*c}:{x:h*c,y:l*f}}const Yl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:a,middlewareData:i}=t,u=await Gl(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:s+u.y,data:{...u,placement:a}}}}},Kl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:y=>{let{x:b,y:w}=y;return{x:b,y:w}}},...u}=be(e,t),c={x:n,y:o},f=await lt(t,u),p=he(xe(r)),h=Dn(p);let l=c[h],v=c[p];if(s){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=l+f[y],x=l-f[b];l=hn(w,l,x)}if(a){const y=p==="y"?"top":"left",b=p==="y"?"bottom":"right",w=v+f[y],x=v-f[b];v=hn(w,v,x)}const g=i.fn({...t,[h]:l,[p]:v});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[h]:s,[p]:a}}}}}},Xl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=be(e,t),f={x:n,y:o},p=he(r),h=Dn(p);let l=f[h],v=f[p];const g=be(i,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const x=h==="y"?"height":"width",E=s.reference[h]-s.floating[x]+y.mainAxis,S=s.reference[h]+s.reference[x]-y.mainAxis;l<E?l=E:l>S&&(l=S)}if(c){var b,w;const x=h==="y"?"width":"height",E=Or.has(xe(r)),S=s.reference[p]-s.floating[x]+(E&&((b=a.offset)==null?void 0:b[p])||0)+(E?0:y.crossAxis),P=s.reference[p]+s.reference[x]+(E?0:((w=a.offset)==null?void 0:w[p])||0)-(E?y.crossAxis:0);v<S?v=S:v>P&&(v=P)}return{[h]:l,[p]:v}}}},ql=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:a,elements:i}=t,{apply:u=()=>{},...c}=be(e,t),f=await lt(t,c),p=xe(r),h=tt(r),l=he(r)==="y",{width:v,height:g}=s.floating;let y,b;p==="top"||p==="bottom"?(y=p,b=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(b=p,y=h==="end"?"top":"bottom");const w=g-f.top-f.bottom,x=v-f.left-f.right,E=Me(g-f[y],w),S=Me(v-f[b],x),P=!t.middlewareData.shift;let T=E,N=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(T=w),P&&!h){const L=re(f.left,0),U=re(f.right,0),_=re(f.top,0),F=re(f.bottom,0);l?N=v-2*(L!==0||U!==0?L+U:re(f.left,f.right)):T=g-2*(_!==0||F!==0?_+F:re(f.top,f.bottom))}await u({...t,availableWidth:N,availableHeight:T});const D=await a.getDimensions(i.floating);return v!==D.width||g!==D.height?{reset:{rects:!0}}:{}}}};function $t(){return typeof window<"u"}function nt(e){return jr(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(jr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function jr(e){return $t()?e instanceof Node||e instanceof se(e).Node:!1}function pe(e){return $t()?e instanceof Element||e instanceof se(e).Element:!1}function ye(e){return $t()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function Co(e){return!$t()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}const Jl=new Set(["inline","contents"]);function ft(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Jl.has(r)}const Zl=new Set(["table","td","th"]);function Ql(e){return Zl.has(nt(e))}const ec=[":popover-open",":modal"];function Ft(e){return ec.some(t=>{try{return e.matches(t)}catch{return!1}})}const tc=["transform","translate","scale","rotate","perspective"],nc=["transform","translate","scale","rotate","perspective","filter"],oc=["paint","layout","strict","content"];function Fn(e){const t=Vn(),n=pe(e)?me(e):e;return tc.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||nc.some(o=>(n.willChange||"").includes(o))||oc.some(o=>(n.contain||"").includes(o))}function rc(e){let t=Le(e);for(;ye(t)&&!Ze(t);){if(Fn(t))return t;if(Ft(t))return null;t=Le(t)}return null}function Vn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sc=new Set(["html","body","#document"]);function Ze(e){return sc.has(nt(e))}function me(e){return se(e).getComputedStyle(e)}function Vt(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Le(e){if(nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Co(e)&&e.host||ve(e);return Co(t)?t.host:t}function Mr(e){const t=Le(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&ft(t)?t:Mr(t)}function ct(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Mr(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=se(r);if(s){const i=yn(a);
vendor: 5,792 bytes, line 28
28return t.concat(a,a.visualViewport||[],ft(r)?r:[],i&&n?ct(i):[])}return t.concat(r,ct(r,[],n))}function yn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lr(e){const t=me(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ye(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,i=It(n)!==s||It(o)!==a;return i&&(n=s,o=a),{width:n,height:o,$:i}}function Un(e){return pe(e)?e:e.contextElement}function Je(e){const t=Un(e);if(!ye(t))return ge(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Lr(t);let a=(s?It(n.width):n.width)/o,i=(s?It(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const ac=ge(0);function Dr(e){const t=se(e);return!Vn()||!t.visualViewport?ac:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ic(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==se(e)?!1:t}function Ue(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Un(e);let a=ge(1);t&&(o?pe(o)&&(a=Je(o)):a=Je(e));const i=ic(s,n,o)?Dr(s):ge(0);let u=(r.left+i.x)/a.x,c=(r.top+i.y)/a.y,f=r.width/a.x,p=r.height/a.y;if(s){const h=se(s),l=o&&pe(o)?se(o):o;let v=h,g=yn(v);for(;g&&o&&l!==v;){const y=Je(g),b=g.getBoundingClientRect(),w=me(g),x=b.left+(g.clientLeft+parseFloat(w.paddingLeft))*y.x,E=b.top+(g.clientTop+parseFloat(w.paddingTop))*y.y;u*=y.x,c*=y.y,f*=y.x,p*=y.y,u+=x,c+=E,v=se(g),g=yn(v)}}return Nt({width:f,height:p,x:u,y:c})}function Bn(e,t){const n=Vt(e).scrollLeft;return t?t.left+n:Ue(ve(e)).left+n}function zr(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:Bn(e,o)),s=o.top+t.scrollTop;return{x:r,y:s}}function lc(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",a=ve(o),i=t?Ft(t.floating):!1;if(o===a||i&&s)return n;let u={scrollLeft:0,scrollTop:0},c=ge(1);const f=ge(0),p=ye(o);if((p||!p&&!s)&&((nt(o)!=="body"||ft(a))&&(u=Vt(o)),ye(o))){const l=Ue(o);c=Je(o),f.x=l.x+o.clientLeft,f.y=l.y+o.clientTop}const h=a&&!p&&!s?zr(a,u,!0):ge(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+h.x,y:n.y*c.y-u.scrollTop*c.y+f.y+h.y}}function cc(e){return Array.from(e.getClientRects())}function dc(e){const t=ve(e),n=Vt(e),o=e.ownerDocument.body,r=re(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=re(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Bn(e);const i=-n.scrollTop;return me(o).direction==="rtl"&&(a+=re(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:i}}function uc(e,t){const n=se(e),o=ve(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,i=0,u=0;if(r){s=r.width,a=r.height;const c=Vn();(!c||c&&t==="fixed")&&(i=r.offsetLeft,u=r.offsetTop)}return{width:s,height:a,x:i,y:u}}const fc=new Set(["absolute","fixed"]);function pc(e,t){const n=Ue(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=ye(e)?Je(e):ge(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,u=r*s.x,c=o*s.y;return{width:a,height:i,x:u,y:c}}function Po(e,t,n){let o;if(t==="viewport")o=uc(e,n);else if(t==="document")o=dc(ve(e));else if(pe(t))o=pc(t,n);else{const r=Dr(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Nt(o)}function $r(e,t){const n=Le(e);return n===t||!pe(n)||Ze(n)?!1:me(n).position==="fixed"||$r(n,t)}function mc(e,t){const n=t.get(e);if(n)return n;let o=ct(e,[],!1).filter(i=>pe(i)&&nt(i)!=="body"),r=null;const s=me(e).position==="fixed";let a=s?Le(e):e;for(;pe(a)&&!Ze(a);){const i=me(a),u=Fn(a);!u&&i.position==="fixed"&&(r=null),(s?!u&&!r:!u&&i.position==="static"&&!!r&&fc.has(r.position)||ft(a)&&!u&&$r(e,a))?o=o.filter(f=>f!==a):r=i,a=Le(a)}return t.set(e,o),o}function hc(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?Ft(t)?[]:mc(t,this._c):[].concat(n),o],i=a[0],u=a.reduce((c,f)=>{const p=Po(t,f,r);return c.top=re(p.top,c.top),c.right=Me(p.right,c.right),c.bottom=Me(p.bottom,c.bottom),c.left=re(p.left,c.left),c},Po(t,i,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function gc(e){const{width:t,height:n}=Lr(e);return{width:t,height:n}}function yc(e,t,n){const o=ye(t),r=ve(t),s=n==="fixed",a=Ue(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const u=ge(0);function c(){u.x=Bn(r)}if(o||!o&&!s)if((nt(t)!=="body"||ft(r))&&(i=Vt(t)),o){const l=Ue(t,!0,s,t);u.x=l.x+t.clientLeft,u.y=l.y+t.clientTop}else r&&c();s&&!o&&r&&c();const f=r&&!o&&!s?zr(r,i):ge(0),p=a.left+i.scrollLeft-u.x-f.x,h=a.top+i.scrollTop-u.y-f.y;return{x:p,y:h,width:a.width,height:a.height}}function rn(e){return me(e).position==="static"}function Ao(e,t){if(!ye(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function Fr(e,t){const n=se(e);if(Ft(e))return n;if(!ye(e)){let r=Le(e);for(;r&&!Ze(r);){if(pe(r)&&!rn(r))return r;r=Le(r)}return n}let o=Ao(e,t);for(;o&&Ql(o)&&rn(o);)o=Ao(o,t);return o&&Ze(o)&&rn(o)&&!Fn(o)?n:o||rc(e)||n}const vc=async function(e){const t=this.getOffsetParent||Fr,n=this.getDimensions,o=await n(e.floating);return{reference:yc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wc(e){return me(e).direction==="rtl"}const bc={convertOffsetParentRelativeRectToViewportRelativeRect:lc,getDocumentElement:ve,getClippingRect:hc,getOffsetParent:Fr,getElementRects:vc,getClientRects:cc,getDimensions:gc,getScale:Je,isElement:pe,isRTL:wc};function Vr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xc(e,t){let n=null,o;const r=ve(e);function s(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function a(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),s();const c=e.getBoundingClientRect(),{left:f,top:p,width:h,height:l}=c;if(i||t(),!h||!l)return;
vendor: 9,599 bytes, line 28
28const v=xt(p),g=xt(r.clientWidth-(f+h)),y=xt(r.clientHeight-(p+l)),b=xt(f),x={rootMargin:-v+"px "+-g+"px "+-y+"px "+-b+"px",threshold:re(0,Me(1,u))||1};let E=!0;function S(P){const T=P[0].intersectionRatio;if(T!==u){if(!E)return a();T?a(!1,T):o=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!Vr(c,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(S,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return a(!0),s}function Ec(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,c=Un(e),f=r||s?[...c?ct(c):[],...ct(t)]:[];f.forEach(b=>{r&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const p=c&&i?xc(c,n):null;let h=-1,l=null;a&&(l=new ResizeObserver(b=>{let[w]=b;w&&w.target===c&&l&&(l.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=l)==null||x.observe(t)})),n()}),c&&!u&&l.observe(c),l.observe(t));let v,g=u?Ue(e):null;u&&y();function y(){const b=Ue(e);g&&!Vr(g,b)&&n(),g=b,v=requestAnimationFrame(y)}return n(),()=>{var b;f.forEach(w=>{r&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),p==null||p(),(b=l)==null||b.disconnect(),l=null,u&&cancelAnimationFrame(v)}}const Sc=Yl,Cc=Kl,Pc=Wl,Ac=ql,Tc=Hl,To=Bl,Rc=Xl,_c=(e,t,n)=>{const o=new Map,r={platform:bc,...n},s={...r.platform,_c:o};return Ul(e,t,{...r,platform:s})};var Ic=typeof document<"u",kc=function(){},Pt=Ic?d.useLayoutEffect:kc;function Ot(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Ot(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Ot(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ur(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ro(e,t){const n=Ur(e);return Math.round(t*n)/n}function sn(e){const t=d.useRef(e);return Pt(()=>{t.current=e}),t}function Nc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:u,open:c}=e,[f,p]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,l]=d.useState(o);Ot(h,o)||l(o);const[v,g]=d.useState(null),[y,b]=d.useState(null),w=d.useCallback(I=>{I!==P.current&&(P.current=I,g(I))},[]),x=d.useCallback(I=>{I!==T.current&&(T.current=I,b(I))},[]),E=s||v,S=a||y,P=d.useRef(null),T=d.useRef(null),N=d.useRef(f),D=u!=null,L=sn(u),U=sn(r),_=sn(c),F=d.useCallback(()=>{if(!P.current||!T.current)return;const I={placement:t,strategy:n,middleware:h};U.current&&(I.platform=U.current),_c(P.current,T.current,I).then(R=>{const B={...R,isPositioned:_.current!==!1};A.current&&!Ot(N.current,B)&&(N.current=B,Rn.flushSync(()=>{p(B)}))})},[h,t,n,U,_]);Pt(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[c]);const A=d.useRef(!1);Pt(()=>(A.current=!0,()=>{A.current=!1}),[]),Pt(()=>{if(E&&(P.current=E),S&&(T.current=S),E&&S){if(L.current)return L.current(E,S,F);F()}},[E,S,F,L,D]);const z=d.useMemo(()=>({reference:P,floating:T,setReference:w,setFloating:x}),[w,x]),O=d.useMemo(()=>({reference:E,floating:S}),[E,S]),M=d.useMemo(()=>{const I={position:n,left:0,top:0};if(!O.floating)return I;const R=Ro(O.floating,f.x),B=Ro(O.floating,f.y);return i?{...I,transform:"translate("+R+"px, "+B+"px)",...Ur(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:B}},[n,i,O.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:F,refs:z,elements:O,floatingStyles:M}),[f,F,z,O,M])}const Oc=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?To({element:o.current,padding:r}).fn(n):{}:o?To({element:o,padding:r}).fn(n):{}}}},jc=(e,t)=>({...Sc(e),options:[e,t]}),Mc=(e,t)=>({...Cc(e),options:[e,t]}),Lc=(e,t)=>({...Rc(e),options:[e,t]}),Dc=(e,t)=>({...Pc(e),options:[e,t]}),zc=(e,t)=>({...Ac(e),options:[e,t]}),$c=(e,t)=>({...Tc(e),options:[e,t]}),Fc=(e,t)=>({...Oc(e),options:[e,t]});var Vc="Arrow",Br=d.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return m.jsx(oe.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Br.displayName=Vc;var Uc=Br;function Bc(e){const[t,n]=d.useState(void 0);return je(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let a,i;if("borderBoxSize"in s){const u=s.borderBoxSize,c=Array.isArray(u)?u[0]:u;a=c.inlineSize,i=c.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Wn="Popper",[Wr,Hr]=Lt(Wn),[Wc,Gr]=Wr(Wn),Yr=e=>{const{__scopePopper:t,children:n}=e,[o,r]=d.useState(null);return m.jsx(Wc,{scope:t,anchor:o,onAnchorChange:r,children:n})};Yr.displayName=Wn;var Kr="PopperAnchor",Xr=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Gr(Kr,n),a=d.useRef(null),i=fe(t,a);return d.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||a.current)}),o?null:m.jsx(oe.div,{...r,ref:i})});Xr.displayName=Kr;var Hn="PopperContent",[Hc,Gc]=Wr(Hn),qr=d.forwardRef((e,t)=>{var Y,Be,Ce,ze,Pe,We;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:l="optimized",onPlaced:v,...g}=e,y=Gr(Hn,n),[b,w]=d.useState(null),x=fe(t,Ae=>w(Ae)),[E,S]=d.useState(null),P=Bc(E),T=(P==null?void 0:P.width)??0,N=(P==null?void 0:P.height)??0,D=o+(s!=="center"?"-"+s:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},U=Array.isArray(c)?c:[c],_=U.length>0,F={padding:L,boundary:U.filter(Kc),altBoundary:_},{refs:A,floatingStyles:z,placement:O,isPositioned:M,middlewareData:I}=Nc({strategy:"fixed",placement:D,whileElementsMounted:(...Ae)=>Ec(...Ae,{animationFrame:l==="always"}),elements:{reference:y.anchor},middleware:[jc({mainAxis:r+N,alignmentAxis:a}),u&&Mc({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Lc():void 0,...F}),u&&Dc({...F}),zc({...F,apply:({elements:Ae,rects:ht,availableWidth:qt,availableHeight:gt})=>{const{width:Jt,height:ot}=ht.reference,He=Ae.floating.style;He.setProperty("--radix-popper-available-width",`${qt}px`),He.setProperty("--radix-popper-available-height",`${gt}px`),He.setProperty("--radix-popper-anchor-width",`${Jt}px`),He.setProperty("--radix-popper-anchor-height",`${ot}px`)}}),E&&Fc({element:E,padding:i}),Xc({arrowWidth:T,arrowHeight:N}),h&&$c({strategy:"referenceHidden",...F})]}),[R,B]=Qr(O),J=Oe(v);je(()=>{M&&(J==null||J())},[M,J]);const $=(Y=I.arrow)==null?void 0:Y.x,V=(Be=I.arrow)==null?void 0:Be.y,W=((Ce=I.arrow)==null?void 0:Ce.centerOffset)!==0,[ee,Se]=d.useState();return je(()=>{b&&Se(window.getComputedStyle(b).zIndex)},[b]),m.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:M?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(ze=I.transformOrigin)==null?void 0:ze.x,(Pe=I.transformOrigin)==null?void 0:Pe.y].join(" "),...((We=I.hide)==null?void 0:We.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(Hc,{scope:n,placedSide:R,onArrowChange:S,arrowX:$,arrowY:V,shouldHideArrow:W,children:m.jsx(oe.div,{"data-side":R,"data-align":B,...g,ref:x,style:{...g.style,animation:M?void 0:"none"}})})})});qr.displayName=Hn;var Jr="PopperArrow",Yc={top:"bottom",right:"left",bottom:"top",left:"right"},Zr=d.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=Gc(Jr,o),a=Yc[s.placedSide];return m.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:m.jsx(Uc,{...r,ref:n,style:{...r.style,display:"block"}})})});Zr.displayName=Jr;function Kc(e){return e!==null}var Xc=e=>({name:"transformOrigin",options:e,fn(t){var y,b,w;const{placement:n,rects:o,middlewareData:r}=t,a=((y=r.arrow)==null?void 0:y.centerOffset)!==0,i=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[c,f]=Qr(n),p={start:"0%",center:"50%",end:"100%"}[f],h=(((b=r.arrow)==null?void 0:b.x)??0)+i/2,l=(((w=r.arrow)==null?void 0:w.y)??0)+u/2;let v="",g="";return c==="bottom"?(v=a?p:`${h}px`,g=`${-u}px`):c==="top"?(v=a?p:`${h}px`,g=`${o.floating.height+u}px`):c==="right"?(v=`${-u}px`,g=a?p:`${l}px`):c==="left"&&(v=`${o.floating.width+u}px`,g=a?p:`${l}px`),{data:{x:v,y:g}}}});function Qr(e){const[t,n="center"]=e.split("-");return[t,n]}var qu=Yr,qc=Xr,Jc=qr,Zc=Zr,[Ut]=Lt("Tooltip",[Hr]),Gn=Hr(),es="TooltipProvider",Qc=700,_o="tooltip.open",[ed,ts]=Ut(es),ns=e=>{const{__scopeTooltip:t,delayDuration:n=Qc,skipDelayDuration:o=300,disableHoverableContent:r=!1,
vendor: 4,154 bytes, line 28
28children:s}=e,a=d.useRef(!0),i=d.useRef(!1),u=d.useRef(0);return d.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),m.jsx(ed,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(c=>{i.current=c},[]),disableHoverableContent:r,children:s})};ns.displayName=es;var os="Tooltip",[Ju,Bt]=Ut(os),vn="TooltipTrigger",td=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Bt(vn,n),s=ts(vn,n),a=Gn(n),i=d.useRef(null),u=fe(t,i,r.onTriggerChange),c=d.useRef(!1),f=d.useRef(!1),p=d.useCallback(()=>c.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),m.jsx(qc,{asChild:!0,...a,children:m.jsx(oe.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:u,onPointerMove:Z(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{r.open&&r.onClose(),c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Z(e.onFocus,()=>{c.current||r.onOpen()}),onBlur:Z(e.onBlur,r.onClose),onClick:Z(e.onClick,r.onClose)})})});td.displayName=vn;var nd="TooltipPortal",[Zu,od]=Ut(nd,{forceMount:void 0}),Qe="TooltipContent",rs=d.forwardRef((e,t)=>{const n=od(Qe,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,a=Bt(Qe,e.__scopeTooltip);return m.jsx(In,{present:o||a.open,children:a.disableHoverableContent?m.jsx(ss,{side:r,...s,ref:t}):m.jsx(rd,{side:r,...s,ref:t})})}),rd=d.forwardRef((e,t)=>{const n=Bt(Qe,e.__scopeTooltip),o=ts(Qe,e.__scopeTooltip),r=d.useRef(null),s=fe(t,r),[a,i]=d.useState(null),{trigger:u,onClose:c}=n,f=r.current,{onPointerInTransitChange:p}=o,h=d.useCallback(()=>{i(null),p(!1)},[p]),l=d.useCallback((v,g)=>{const y=v.currentTarget,b={x:v.clientX,y:v.clientY},w=cd(b,y.getBoundingClientRect()),x=dd(b,w),E=ud(g.getBoundingClientRect()),S=pd([...x,...E]);i(S),p(!0)},[p]);return d.useEffect(()=>()=>h(),[h]),d.useEffect(()=>{if(u&&f){const v=y=>l(y,f),g=y=>l(y,u);return u.addEventListener("pointerleave",v),f.addEventListener("pointerleave",g),()=>{u.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",g)}}},[u,f,l,h]),d.useEffect(()=>{if(a){const v=g=>{const y=g.target,b={x:g.clientX,y:g.clientY},w=(u==null?void 0:u.contains(y))||(f==null?void 0:f.contains(y)),x=!fd(b,a);w?h():x&&(h(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[u,f,a,c,h]),m.jsx(ss,{...e,ref:s})}),[sd,ad]=Ut(os,{isInside:!1}),id=va("TooltipContent"),ss=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,u=Bt(Qe,n),c=Gn(n),{onClose:f}=u;return d.useEffect(()=>(document.addEventListener(_o,f),()=>document.removeEventListener(_o,f)),[f]),d.useEffect(()=>{if(u.trigger){const p=h=>{const l=h.target;l!=null&&l.contains(u.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[u.trigger,f]),m.jsx(_n,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:m.jsxs(Jc,{"data-state":u.stateAttribute,...c,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(id,{children:o}),m.jsx(sd,{scope:n,isInside:!0,children:m.jsx(Ba,{id:u.contentId,role:"tooltip",children:r||o})})]})})});rs.displayName=Qe;var as="TooltipArrow",ld=d.forwardRef((e,t)=>
28{const{__scopeTooltip:n,...o}=e,r=Gn(n);return ad(as,n).isInside?null:m.jsx(Zc,{...r,...o,ref:t})});ld.displayName=as;function cd(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function dd(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function ud(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function fd(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],u=t[a],c=i.x,f=i.y,p=u.x,h=u.y;f>o!=h>o&&n<(p-c)*(o-f)/(h-f)+c&&(r=!r)}return r}function pd(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),md(t)}function md(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var hd=ns,is=rs;const gd=hd,yd=d.forwardRef(({className:e,sideOffset:t=4,...n},o)=>m.jsx(is,{ref:o,sideOffset:t,className:De("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 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",e),...n}));yd.displayName=is.displayName;const Io=d.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function vd(e){const t=d.useRef(null);return t.current===null&&(t.current=e()),t.current}const wd=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function jt(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wd.has(e)}let ls=e=>!jt(e);function cs(e){e&&(ls=t=>t.startsWith("on")?!jt(t):e(t))}try{cs(require("@emotion/is-prop-valid").default)}catch{}function Qu(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(ls(r)||n===!0&&jt(r)||!t&&!jt(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}function bd({children:e,isValidProp:t,...n}){t&&cs(t),n={...d.useContext(Io),...n},n.isStatic=vd(()=>n.isStatic);const o=d.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return m.jsx(Io.Provider,{value:o,children:e})}const xd=2999,Ed=499,Q=xd/100,ef=Ed/100,Ne={position:"top-left",shape:"square",widthPercent:38,heightPercent:19,offsetPercent:6,lenses:[{x:25,y:25,size:30,type:"lens"},{x:25,y:75,size:30,type:"lens"},{x:65,y:50,size:30,type:"lens"},{x:85,y:25,size:10,type:"flash"},{x:85,y:50,size:7,type:"sensor"},{x:85,y:75,size:5,type:"mic"}]},Ve={position:"top-left",shape:"pill",widthPercent:22,heightPercent:18,offsetPercent:6,lenses:[{x:50,y:30,size:50,type:"lens"},{x:50,y:70,size:50,type:"lens"}]},Sd={position:"top-left",shape:"scattered",widthPercent:25,heightPercent:35,offsetPercent:8,lenses:[{x:0,y:0,size:0,type:"lens",absoluteX:14,absoluteY:6,absoluteSize:9},{x:0,y:0,size:0,type:"lens",absoluteX:14,absoluteY:14,absoluteSize:9},{x:0,y:0,size:0,type:"lens",absoluteX:14,absoluteY:21,absoluteSize:7},{x:0,y:0,size:0,type:"lens",absoluteX:14,absoluteY:27,absoluteSize:5.5},{x:0,y:0,size:0,type:"flash",absoluteX:24,absoluteY:8,absoluteSize:3},{x:0,y:0,size:0,type:"sensor",absoluteX:24,absoluteY:14,absoluteSize:2}]},ko={position:"top-left",shape:"scattered",widthPercent:22,heightPercent:28,offsetPercent:8,lenses:[{x:0,y:0,size:0,type:"lens",absoluteX:14,absoluteY:6,absoluteSize:8},{x:0,y:0,size:0,type:"lens",absoluteX:14,absoluteY:13.5,absoluteSize:8},{x:0,y:0,size:0,type:"lens",absoluteX:14,absoluteY:20.5,absoluteSize:6.5},{x:0,y:0,size:0,type:"flash",absoluteX:23,absoluteY:8,absoluteSize:2.5}]},pt=[{id:"iphone-17-pro-max",printfulVariantId:34015,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 17 Pro Max",price:Q,currency:"USD",printAreaWidth:1680,printAreaHeight:3440,imageUrl:"/catalog/commons/iphone-17-pro-max.jpg",imageRole:"open-reference",imageWidth:960,imageHeight:1440,camera:Ne},{id:"iphone-17-pro",printfulVariantId:34013,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 17 Pro",price:Q,currency:"USD",printAreaWidth:1640,printAreaHeight:3360,imageUrl:"/catalog/commons/iphone-17-pro.jpg",imageRole:"open-reference",imageWidth:960,imageHeight:720,camera:Ne},{id:"iphone-17-air",printfulVariantId:34011,printfulFinish:"Glossy",brand:"Apple",model:"iPhone Air",price:Q,currency:"USD",printAreaWidth:1600,printAreaHeight:3280,imageUrl:"/catalog/commons/iphone-air.jpg",imageRole:"open-reference",imageWidth:960,imageHeight:1440,camera:Ve},{id:"iphone-17",printfulVariantId:34009,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 17",price:Q,currency:"USD",printAreaWidth:1520,printAreaHeight:3120,imageUrl:"/catalog/commons/iphone-17.jpg",imageRole:"open-reference",imageWidth:960,imageHeight:1440,camera:Ve},{id:"iphone-16-pro-max",printfulVariantId:20297,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 16 Pro Max",price:Q,currency:"USD",printAreaWidth:1680,printAreaHeight:3440,imageUrl:"/catalog/kemore/iphone-16-pro-max.webp",imageRole:"device-reference",camera:Ne},{id:"iphone-16-pro",printfulVariantId:20296,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 16 Pro",price:Q,currency:"USD",printAreaWidth:1640,printAreaHeight:3360,imageUrl:"/catalog/kemore/iphone-16-pro.webp",imageRole:"device-reference",camera:Ne},{id:"iphone-16-plus",printfulVariantId:20295,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 16 Plus",price:Q,currency:"USD",printAreaWidth:1600,printAreaHeight:3280,imageUrl:"/catalog/kemore/iphone-16-plus.webp",imageRole:"device-reference",camera:Ve},{id:"iphone-16",printfulVariantId:20294,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 16",price:Q,currency:"USD",printAreaWidth:1520,printAreaHeight:3120,imageUrl:"/catalog/kemore/iphone-16.webp",imageRole:"device-reference",camera:Ve},{id:"iphone-15-pro-max",printfulVariantId:17728,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 15 Pro Max",price:Q,currency:"USD",printAreaWidth:1640,printAreaHeight:3360,imageUrl:"/catalog/kemore/iphone-15-pro-max.webp",imageRole:"device-reference",camera:Ne},{id:"iphone-15-pro",printfulVariantId:17726,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 15 Pro",price:Q,currency:"USD",printAreaWidth:1560,printAreaHeight:3200,imageUrl:"/catalog/kemore/iphone-15-pro.webp",imageRole:"device-reference",camera:Ne},{id:"iphone-15-plus",printfulVariantId:17724,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 15 Plus",price:Q,currency:"USD",printAreaWidth:1560,printAreaHeight:3200,imageUrl:"/catalog/kemore/iphone-15-plus.webp",imageRole:"device-reference",camera:Ve},{id:"iphone-15",printfulVariantId:17722,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 15",price:Q,currency:"USD",printAreaWidth:1520,printAreaHeight:3120,imageUrl:"/catalog/kemore/iphone-15.webp",imageRole:"device-reference",camera:Ve},{id:"iphone-14-pro-max",printfulVariantId:16916,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 14 Pro Max",price:Q,currency:"USD",printAreaWidth:1640,printAreaHeight:3360,imageUrl:"/catalog/kemore/iphone-14-pro-max.webp",imageRole:"device-reference",camera:Ne},{id:"iphone-14-pro",printfulVariantId:16912,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 14 Pro",price:Q,currency:"USD",printAreaWidth:1560,printAreaHeight:3200,imageUrl:"/catalog/kemore/iphone-14-pro.webp",imageRole:"device-reference",camera:Ne},{id:"iphone-14",printfulVariantId:16910,printfulFinish:"Glossy",brand:"Apple",model:"iPhone 14",price:Q,currency:"USD",printAreaWidth:1520,printAreaHeight:3120,imageUrl:"/catalog/kemore/iphone-14.webp",imageRole:"device-reference",camera:Ve},{id:"galaxy-s24-ultra",printfulVariantId:18739,printfulFinish:"Glossy",brand:"Samsung",model:"Galaxy S24 Ultra",edmSizeName:"Samsung Galaxy S24 Ultra",price:Q,currency:"USD",printAreaWidth:1680,printAreaHeight:3440,imageUrl:"/catalog/kemore/galaxy-s24-ultra.webp",imageRole:"device-reference",camera:Sd},{id:"galaxy-s24-plus",printfulVariantId:18738,printfulFinish:"Glossy",brand:"Samsung",model:"Galaxy S24+",edmSizeName:"Samsung Galaxy S24 Plus",price:Q,currency:"USD",printAreaWidth:1600,printAreaHeight:3280,imageUrl:"/catalog/kemore/galaxy-s24-plus.webp",imageRole:"device-reference",camera:ko},{id:"galaxy-s24",printfulVariantId:18737,printfulFinish:"Glossy",brand:"Samsung",model:"Galaxy S24",edmSizeName:"Samsung Galaxy S24",price:Q,currency:"USD",printAreaWidth:1520,printAreaHeight:3120,imageUrl:"/catalog/kemore/galaxy-s24.webp",imageRole:"device-reference",camera:ko}],tf=()=>{const e=new Map;return pt.forEach(t=>{const n=`${t.brand} ${t.model}`;e.set(n,[t])}),e},ds=e=>pt.find(t=>
28t.id===e),nf=e=>`${new Intl.NumberFormat("en-US",{style:"currency",currency:e.currency}).format(e.price)} ${e.currency}`,of=(e,t=3)=>{const n=pt.filter(r=>r.brand===e.brand),o=n.findIndex(r=>r.id===e.id);return o<0?[]:Array.from({length:Math.min(t,Math.max(n.length-1,0))},(r,s)=>n[(o+s+1)%n.length])},rf=()=>[...new Set(pt.map(e=>e.brand))],Cd="https://mdprdbaykuordozfctud.supabase.co",us="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1kcHJkYmF5a3VvcmRvemZjdHVkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjYzMzM2OTUsImV4cCI6MjA4MTkwOTY5NX0.VzNLid7iv--E-M03_7AYv_z0jd4Yh-ZWCDT_tjWKsKI",Yn=!!us,fs=typeof window<"u",wn=fs&&typeof window.localStorage<"u",Pd=wn?window.localStorage:void 0;if(!Yn&&fs)throw new Error("Missing Supabase configuration.");const Ad=Yn?Cd:"https://placeholder.supabase.co",Td=Yn?us:"public-anon-key",At=ta(Ad,Td,{auth:{storage:Pd,persistSession:wn,autoRefreshToken:wn}}),ps=d.createContext(void 0),bn="snapcase_cart_v1",xn="snapcase_cart_preview:",En=e=>typeof e=="object"&&e!==null,Rd=e=>!(!En(e)||typeof e.id!="string"||!En(e.variant)||typeof e.variant.id!="string"||typeof e.variant.price!="number"||typeof e.designPreview!="string"||typeof e.quantity!="number"),_d=e=>!(!En(e)||typeof e.id!="string"||typeof e.variantId!="string"||typeof e.quantity!="number"),Sn=e=>`${xn}${e}`,Id=e=>{if(typeof window>"u")return null;const t=window.sessionStorage.getItem(Sn(e.id));return t||(e.designId?window.sessionStorage.getItem(`edmDesign:${e.designId}:preview`):null)},kd=()=>{if(typeof window>"u")return[];try{const e=window.localStorage.getItem(bn);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.flatMap(n=>{if(Rd(n))return[n];if(!_d(n))return[];const o=ds(n.variantId);if(!o)return[];const r=Id(n)??"";return[{id:n.id,variant:o,designPreview:r,edmTemplateId:n.edmTemplateId??null,designId:n.designId??null,externalProductId:n.externalProductId??null,quantity:n.quantity}]}):[]}catch(e){return console.warn("[CART] Unable to read stored cart:",e),[]}};function Nd({children:e}){const[t,n]=d.useState(()=>kd());d.useEffect(()=>{if(!(typeof window>"u"))try{if(t.length===0){window.localStorage.removeItem(bn),Object.keys(window.sessionStorage).filter(l=>l.startsWith(xn)).forEach(l=>window.sessionStorage.removeItem(l));return}const p=t.map(l=>{const v=Sn(l.id),g=l.designPreview??"";if(g)try{window.sessionStorage.setItem(v,g)}catch(y){console.warn("[CART] Unable to cache preview:",y)}else window.sessionStorage.removeItem(v);return{id:l.id,variantId:l.variant.id,quantity:l.quantity,edmTemplateId:l.edmTemplateId??null,designId:l.designId??null,externalProductId:l.externalProductId??null}});window.localStorage.setItem(bn,JSON.stringify(p));const h=new Set(t.map(l=>Sn(l.id)));Object.keys(window.sessionStorage).forEach(l=>{l.startsWith(xn)&&!h.has(l)&&window.sessionStorage.removeItem(l)})}catch(p){console.warn("[CART] Unable to persist cart:",p)}},[t]),d.useEffect(()=>{let p=!1;return(async()=>{const l=t.filter(w=>w.designId&&!w.designPreview);if(l.length===0)return;const v=Array.from(new Set(l.map(w=>w.designId).filter(Boolean)));if(v.length===0)return;const{data:g,error:y}=await At.from("designs").select("design_id, preview_url").in("design_id",v);if(y){console.warn("[CART] Unable to fetch previews:",y);return}if(p||!(g!=null&&g.length))return;const b=new Map(g.filter(w=>w.preview_url).map(w=>[w.design_id,w.preview_url]));b.size!==0&&n(w=>w.map(x=>!x.designPreview&&x.designId&&b.has(x.designId)?{...x,designPreview:b.get(x.designId)??""}:x))})(),()=>{p=!0}},[t]);const o=d.useCallback((p,h,l,v,g)=>{const y=`${p.id}-${Date.now()}`;n(b=>[...b,{id:y,variant:p,designPreview:h,edmTemplateId:l??null,designId:v??null,externalProductId:g??null,quantity:1}])},[]),r=d.useCallback(p=>{n(h=>h.filter(l=>l.id!==p))},[]),s=d.useCallback((p,h)=>{if(h<1){n(l=>l.filter(v=>v.id!==p));return}n(l=>l.map(v=>v.id===p?{...v,quantity:h}:v))},[]),a=d.useCallback(()=>{n([])},[]),i=d.useCallback(p=>{const h=p.flatMap((l,v)=>{const g=ds(l.variantId);return!g||l.quantity<1||!Number.isInteger(l.quantity)?[]:[{id:`restored-${g.id}-${Date.now()}-${v}`,variant:g,designPreview:l.designPreview,edmTemplateId:l.edmTemplateId,designId:l.designId,externalProductId:l.externalProductId,quantity:l.quantity}]});return h.length!==p.length||h.length===0?!1:(n(h),!0)},[]),u=d.useMemo(()=>t.reduce((p,h)=>p+h.quantity,0),[t]),c=d.useMemo(()=>t.reduce((p,h)=>p+h.variant.price*h.quantity,0),[t]),f=d.useMemo(()=>({items:t,addToCart:o,removeFromCart:r,updateQuantity:s,clearCart:a,restoreCart:i,totalItems:u,totalPrice:c}),[t,o,r,s,a,i,u,c]);return m.jsx(ps.Provider,{value:f,children:e})}function sf(){const e=d.useContext(ps);if(e===void 0)throw new Error("useCart must be used within a CartProvider");return e}const ms=d.createContext(void 0),Od=e=>{if(!e)return!1;if(e.email_confirmed_at??e.confirmed_at??null)return!0;const n=e.user_metadata;return(n==null?void 0:n.email_verified)===!0},jd=({children:e})=>
28{const[t,n]=d.useState(null),[o,r]=d.useState(null),[s,a]=d.useState(!0),i=d.useCallback(async()=>{var p;const{data:c,error:f}=await At.auth.getSession();f&&console.error("[AUTH] Failed to get session:",f),n((c==null?void 0:c.session)??null),r(((p=c==null?void 0:c.session)==null?void 0:p.user)??null)},[]);d.useEffect(()=>{let c=!0;(async()=>{await i(),c&&a(!1)})();const{data:p}=At.auth.onAuthStateChange((h,l)=>{n(l),r((l==null?void 0:l.user)??null),a(!1)});return()=>{c=!1,p.subscription.unsubscribe()}},[i]);const u=d.useMemo(()=>({session:t,user:o,isLoading:s,isEmailVerified:Od(o),refreshSession:i,signOut:async()=>{const{error:c}=await At.auth.signOut();c&&console.error("[AUTH] Failed to sign out:",c)}}),[t,o,s,i]);return m.jsx(ms.Provider,{value:u,children:e})},af=()=>{const e=d.useContext(ms);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},Md="modulepreload",Ld=function(e){return"/"+e},No={},q=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){let a=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),u=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=a(n.map(c=>{if(c=Ld(c),c in No)return;No[c]=!0;const f=c.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${p}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":Md,f||(h.as="script"),h.crossOrigin="",h.href=c,u&&h.setAttribute("nonce",u),document.head.appendChild(h),f)return new Promise((l,v)=>{h.addEventListener("load",l),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(a){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a}return r.then(a=>{for(const i of a||[])i.status==="rejected"&&s(i.reason);return t().catch(s)})},Wt=e=>!e||e==="/"?"/":e.replace(/\/+$/,"")||"/",hs=()=>q(()=>import("./Index-WIaRWpF8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16])),gs=()=>q(()=>import("./IphonePhotoLanding-DBYxCE__.js"),__vite__mapDeps([17,1,2,3,4,5,6,7,8,18,19,13,15,20])),ys=()=>q(()=>import("./SamsungPhotoLanding-DXPC9obM.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,8,18,19,13,20,15])),vs=()=>q(()=>import("./Catalog-yiSWZN_t.js"),__vite__mapDeps([22,1,2,10,23,3,4,5,6,7,8,18,13,14])),ws=()=>q(()=>import("./SeoLanding-_d_gxTxx.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8,20,18,19,13,15,12])),bs=()=>q(()=>import("./PhoneCaseSeo-D1pme12B.js"),__vite__mapDeps([25,1,2,7,4,5,8,3,6,26,18,13,12])),xs=()=>q(()=>import("./Preview-Dh_UOIAe.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,13,28,29,15,16])),Es=()=>q(()=>import("./Checkout-9BTTnKqq.js"),__vite__mapDeps([30,1,2,10,23,7,4,5,8,6,31,13,28,29,16,20])),Ss=()=>q(()=>import("./OrderSuccess-BifCJNlf.js"),__vite__mapDeps([32,1,2,3,4,5,6,7,8,33,29,20,34,35,36])),Cs=()=>q(()=>import("./Orders-B4HzF5Np.js"),__vite__mapDeps([37,1,2,10,23,3,4,5,6,38,7,8,29,33])),Ps=()=>q(()=>import("./Designs-jnz6uIrE.js"),__vite__mapDeps([39,1,2,38,3,4,5,6,7,8,29])),As=()=>q(()=>import("./Auth--zwhFoM1.js"),__vite__mapDeps([40,1,2,10,23,3,4,5,6,7,8])),Ts=()=>q(()=>import("./AuthCallback-CjUAu-6e.js"),__vite__mapDeps([41,1,2,5])),Rs=()=>q(()=>import("./Operations-CzkKwbJk.js"),__vite__mapDeps([42,1,2,10,23,3,4,5,6,38,7,8,29,12,33,36,43,44,45])),_s=()=>q(()=>import("./KexiaozhanCheckout-ZzlY-FEv.js"),__vite__mapDeps([46,1,2,10,23,7,4,5,8,31,13,12,34,33,16,43])),Is=()=>q(()=>import("./Terms-BFC6rNse.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,8,48,29])),ks=()=>q(()=>import("./Privacy-Dqwihgwv.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,8,48,29])),Ns=()=>q(()=>import("./Contact-D4nYwP_u.js"),__vite__mapDeps([50,1,2,3,4,5,6,7,8,48,29])),Os=()=>q(()=>import("./EmailPreferences-DQwkma-u.js"),__vite__mapDeps([51,1,2,9,11,12,45,5])),js=()=>q(()=>import("./Recovery-vZEbLUKB.js"),__vite__mapDeps([52,1,2,9,12,44,45,35,8,5])),Ms=()=>q(()=>import("./NotFound-7FDdIUZR.js"),__vite__mapDeps([26,1,2])),Ls=async()=>{const[e,t]=await Promise.all([q(()=>import("./DesignEditorEDM-XmUgBwWf.js"),__vite__mapDeps([53,1,2,4,5,3,6,13,20,34,33])),q(()=>import("./editor-fonts-BwXWsrFu.js"),[])]);return t.loadEditorFonts(),e},Dd=new Set(["/custom-phone-case","/custom-iphone-case","/custom-phone-case/pet-photo-phone-case","/gifts/custom-phone-case"]),zd=e=>{const t=Wt(e);return t==="/"?hs():t==="/catalog"?vs():Dd.has(t)?ws():t==="/custom-phone-case/photo-case-for-new-phone"?gs():t==="/custom-samsung-case"?ys():t.startsWith("/phone-cases/")?bs():t.startsWith("/design/")||t.startsWith("/design-edm/")?Ls():t.startsWith("/preview/")?xs():t==="/checkout"||t.startsWith("/checkout/")?Es():t==="/kexiaozhan/checkout"?_s():t==="/order-success"?Ss():t==="/orders"?Cs():t==="/operations"?Rs():t==="/designs"?Ps():t==="/auth/callback"?Ts():t==="/auth"?As():t==="/terms"?Is():t==="/privacy"?ks():t==="/contact"?Ns():t==="/email-preferences"?Os():t==="/recover"?js():Ms()},$d=d.lazy(hs),Fd=d.lazy(gs),Vd=d.lazy(ys),Ud=d.lazy(vs),Et=d.lazy(ws),Bd=d.lazy(bs),Wd=d.lazy(xs),Oo=d.lazy(Es),Hd=d.lazy(Ss),Gd=d.lazy(Cs),Yd=d.lazy(Ps),Kd=d.lazy(As),Xd=d.lazy(Ts),qd=d.lazy(Rs),Jd=d.lazy(_s),Zd=d.lazy(Is),Qd=d.lazy(ks),eu=d.lazy(Ns),tu=d.lazy(Ms),jo=d.lazy(Ls),nu=d.lazy(Os),ou=d.lazy(js),ru=()=>{const{variantId:e}=sa();return m.jsx(aa,{to:e?`/design/${e}`:"/catalog",replace:!0})},su=()=>m.jsx("div",{className:"min-h-screen bg-background",role:"status","aria-label":"Loading page"}),au=()=>m.jsx(d.Suspense,{fallback:m.jsx(su,{}),children:m.jsxs(ra,{children:[m.jsx(G,{path:"/",element:m.jsx($d,{})}),m.jsx(G,{path:"/catalog",element:m.jsx(Ud,{})}),m.jsx(G,{path:"/custom-phone-case",element:m.jsx(Et,{})}),m.jsx(G,{path:"/custom-iphone-case",element:m.jsx(Et,{})}),m.jsx(G,{path:"/custom-phone-case/photo-case-for-new-phone",element:m.jsx(Fd,{})}),m.jsx(G,{path:"/custom-samsung-case",element:m.jsx(Vd,{})}),m.jsx(G,{path:"/custom-phone-case/pet-photo-phone-case",element:m.jsx(Et,{})}),m.jsx(G,{path:"/gifts/custom-phone-case",element:m.jsx(Et,{})}),m.jsx(G,{path:"/phone-cases/:variantSlug",element:m.jsx(Bd,{})}),m.jsx(G,{path:"/design/:variantId",element:m.jsx(jo,{})}),m.jsx(G,{path:"/design-edm/:variantId",element:m.jsx(jo,{})}),m.jsx(G,{path:"/design-canvas/:variantId",element:m.jsx(ru,{})}),m.jsx(G,{path:"/preview/:variantId",element:m.jsx(Wd,{})}),m.jsx(G,{path:"/checkout/:variantId",element:m.jsx(Oo,{})}),m.jsx(G,{path:"/checkout",element:m.jsx(Oo,{})}),m.jsx(G,{path:"/kexiaozhan/checkout",element:m.jsx(Jd,{})}),m.jsx(G,{path:"/order-success",element:m.jsx(Hd,{})}),m.jsx(G,{path:"/orders",element:m.jsx(Gd,{})}),m.jsx(G,{path:"/operations",element:m.jsx(qd,{})}),m.jsx(G,{path:"/designs",element:m.jsx(Yd,{})}),m.jsx(G,{path:"/auth",element:m.jsx(Kd,{})}),m.jsx(G,{path:"/auth/callback",element:m.jsx(Xd,{})}),m.jsx(G,{path:"/terms",element:m.jsx(Zd,{})}),m.jsx(G,{path:"/privacy",element:m.jsx(Qd,{})}),m.jsx(G,{path:"/contact",element:m.jsx(eu,{})}),m.jsx(G,{path:"/email-preferences",element:m.jsx(nu,{})}),m.jsx(G,{path:"/recover",element:m.jsx(ou,{})}),m.jsx(G,{path:"*",element:m.jsx(tu,{})})]})}),iu={},lu="1.0.0",cu="G-MV7NDH4KTK",an=iu;var Bo;const Mo=(Bo=an==null?void 0:an.VITE_GA_MEASUREMENT_ID)==null?void 0:Bo.trim(),du=new Set(["snapcase.ai","www.snapcase.ai"]),Ht="snapcase_marketing_attribution_v2",Gt="snapcase_marketing_attribution",Yt="snapcase_analytics_consent_v1",Cn="snapcase:analytics-consent",Lo=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid","ttclid"],uu=new Set(["address","artwork","customer_email","customer_name","design_preview","email","free_text","preview_url","shipping_address"]);let Do=!1,zo=!1,$o=null,Kn=null;const ie=()=>typeof window<"u"&&typeof document<"u",Xn=()=>
28{if(!ie())return"unset";try{const e=window.localStorage.getItem(Yt);return e==="granted"||e==="denied"?e:"unset"}catch{return"unset"}},qn=(e,t)=>{try{return window.localStorage.setItem(e,t),!0}catch{return!1}},dt=e=>{try{return window.localStorage.removeItem(e),!0}catch{return!1}},Jn=()=>{if(Mo)return Mo;if(ie())return du.has(window.location.hostname.toLowerCase())?cu:void 0},Fo=e=>{if(!e)return;const t=e.trim();return t?t.slice(0,500):void 0},fu=e=>{if(!ie()||!e)return!1;try{return new URL(e).hostname===window.location.hostname}catch{return!1}},Tt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Pn=(e,t="")=>{if(!uu.has(t.toLowerCase())&&e!==void 0){if(e===null||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return e.slice(0,500);if(Array.isArray(e))return e.slice(0,200).map(n=>Pn(n)).filter(n=>n!==void 0);if(Tt(e))return Object.fromEntries(Object.entries(e).map(([n,o])=>[n,Pn(o,n)]).filter(n=>n[1]!==void 0))}},pu=(e={})=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Pn(n,t)]).filter(t=>t[1]!==void 0)),Ds=()=>{if(!ie())return!1;try{return window.dataLayer=window.dataLayer??[],window.gtag=window.gtag??function(){var t;(t=window.dataLayer)==null||t.push(arguments)},zo||(window.gtag("consent","default",{analytics_storage:"denied",ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",wait_for_update:500}),zo=!0),!0}catch{return!1}},Kt=e=>{var t;if(!Ds())return!1;if($o===e)return!0;try{return(t=window.gtag)==null||t.call(window,"consent","update",{analytics_storage:e,ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied"}),$o=e,!0}catch{return!1}},Ee=()=>ie()?Kn??Xn():"unset",zs=()=>{try{window.dispatchEvent(new CustomEvent(Cn,{detail:Ee()}))}catch{}},ln=()=>{const e=qn(Yt,"denied")&&Xn()==="denied";return Kn=e?null:"denied",dt(Ht),dt(Gt),Kt("denied"),zs(),e},Vo=e=>ie()?e==="denied"?ln():!(qn(Yt,e)&&Xn()==="granted")||(Kn=null,!Kt("granted"))?(ln(),!1):(Xt(),zs(),!0):!1,mu=e=>{if(!ie())return()=>{};const t=()=>e(),n=o=>{if(o.key!==Yt&&o.key!==null)return;Ee()!=="granted"&&(dt(Ht),dt(Gt),Kt("denied")),e()};return window.addEventListener(Cn,t),window.addEventListener("storage",n),()=>{window.removeEventListener(Cn,t),window.removeEventListener("storage",n)}},Xt=()=>{var t,n;const e=Jn();if(!ie()||!e)return!1;if(Do)return!0;if(!Ds()||Ee()!=="granted"||!Kt("granted"))return!1;try{const o=document.createElement("script");return o.async=!0,o.src=`https://www.googletagmanager.com/gtag/js?id=${encodeURIComponent(e)}`,document.head.appendChild(o),Do=!0,(t=window.gtag)==null||t.call(window,"js",new Date),(n=window.gtag)==null||n.call(window,"config",e,{send_page_view:!1}),!0}catch{return!1}},lf=async(e=500)=>{const t=Jn();return!ie()||!t||Ee()!=="granted"?null:(Xt(),await new Promise(n=>{var a;let o=!1;const r=i=>{o||(o=!0,n(i))},s=window.setTimeout(()=>r(null),e);(a=window.gtag)==null||a.call(window,"get",t,"client_id",i=>{window.clearTimeout(s);const u=typeof i=="string"?i.trim():"";r(/^\d{1,20}\.\d{1,20}$/.test(u)?u:null)})}))},hu=(e,t={})=>{if(!ie()||!Jn()||Ee()!=="granted"||(Xt(),Ee()!=="granted"||!window.gtag))return!1;try{return window.gtag("event",e,{...pu(t),analytics_contract_version:lu}),!0}catch{return!1}},gu=e=>{if(!Tt(e))return null;if(Tt(e.firstTouch)&&Tt(e.lastTouch)){const t=e.firstTouch,n=e.lastTouch;if(typeof t.landingPath=="string"&&typeof t.capturedAt=="string"&&typeof n.landingPath=="string"&&typeof n.capturedAt=="string")return{firstTouch:t,lastTouch:n}}if(typeof e.landingPath=="string"&&typeof e.capturedAt=="string"){const t=e;return{firstTouch:t,lastTouch:t}}return null},yu=(e,t)=>({firstTouch:(e==null?void 0:e.firstTouch)??t,lastTouch:t}),vu=()=>{if(!ie()||Ee()!=="granted")return null;const e=new URLSearchParams(window.location.search),t=Lo.some(a=>e.has(a)),n=wu(),o=!n&&document.referrer&&!fu(document.referrer)?Fo(document.referrer):void 0;if(!t&&!o)return n;const r={landingPath:window.location.pathname,capturedAt:new Date().toISOString()};Lo.forEach(a=>{const i=Fo(e.get(a));i&&(r[a]=i)}),o&&(r.referrer=o);const s=yu(n,r);return qn(Ht,JSON.stringify(s)),dt(Gt),s},wu=()=>{if(!ie()||Ee()!=="granted")return null;try{const e=window.localStorage.getItem(Ht)??window.localStorage.getItem(Gt);return e?gu(JSON.parse(e)):null}catch{return null}},bu=()=>"unset",$s=()=>d.useSyncExternalStore(mu,Ee,bu),xu=new Set(["designId","session_id","token","gclid","fbclid","ttclid","utm_campaign","utm_content","utm_medium","utm_source","utm_term"]),Eu=new Set(["designId","session_id","token"]),Fs=(e,t,n)=>{const o=new URLSearchParams(t);
28n.forEach(a=>o.delete(a)),o.sort();const r=Wt(e),s=o.toString();return s?`${r}?${s}`:r},Su=(e,t)=>Fs(e,t,xu),Cu=(e,t,n)=>`${e}${Fs(t,n,Eu)}`,Pu=()=>{const e=Ho(),t=$s(),n=d.useRef(null),o=Su(e.pathname,e.search);return d.useEffect(()=>{t==="granted"&&n.current!==o&&(vu(),Xt(),hu("page_view",{page_path:o,page_location:Cu(window.location.origin,e.pathname,e.search),page_title:document.title}),n.current=o)},[t,e.pathname,e.search,o]),null},Au=br("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-soft hover:shadow-medium active:scale-[0.98]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive hover:shadow-medium shadow-soft",outline:"border border-border bg-transparent hover:bg-muted/50 text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary hover:shadow-soft",ghost:"hover:bg-muted/50 text-foreground",link:"text-cta-emphasis underline-offset-4 hover:underline",accent:"bg-accent text-accent-foreground hover:bg-accent shadow-soft hover:shadow-medium active:scale-[0.98]",cta:"bg-cta text-cta-foreground hover:bg-cta/90 shadow-soft hover:shadow-glow active:scale-[0.98]",hero:"bg-cta text-cta-foreground hover:bg-cta/90 shadow-medium hover:shadow-glow active:scale-[0.98] text-base","hero-outline":"border-2 border-accent/50 bg-transparent text-foreground hover:bg-accent/10 hover:border-accent transition-colors text-base",tool:"bg-muted text-foreground hover:bg-muted/80 border border-border/50 shadow-sm","tool-active":"bg-cta text-cta-foreground shadow-soft"},size:{default:"h-11 px-4 py-2",sm:"h-11 rounded-md px-3",lg:"h-12 rounded-lg px-8",xl:"h-14 roun
28ded-xl px-10 text-base",icon:"h-11 w-11","icon-sm":"h-11 w-11","icon-lg":"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),An=d.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...r},s)=>{const a=o?ga:"button";return m.jsx(a,{className:De(Au({variant:t,size:n,className:e})),ref:s,...r})});An.displayName="Button";const Tu=()=>$s()!=="unset"?null:m.jsx("aside",{"aria-label":"Analytics preferences",className:"fixed inset-x-4 bottom-4 z-[100] mx-auto max-w-3xl rounded-2xl border border-border bg-card p-5 shadow-strong",children:m.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[m.jsxs("div",{className:"max-w-xl",children:[m.jsx("h2",{className:"font-semibold text-foreground",children:"Help us improve Snapcase"}),m.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["With your permission, we use Google Analytics to understand site usage and purchases. We do not send artwork or checkout contact details."," ",m.jsx(ia,{className:"underline hover:text-foreground",to:"/privacy",children:"Privacy details"})]})]}),m.jsxs("div",{className:"flex shrink-0 gap-2",children:[m.jsx(An,{type:"button",variant:"outline",onClick:()=>Vo("denied"),children:"Decline"}),m.jsx(An,{type:"button",className:"bg-cta text-cta-foreground hover:bg-cta/90",onClick:()=>Vo("granted"),children:"Allow analytics"})]})]})}),Ru="/assets/iphone-case-front-DQjYT51G.png",_u="/assets/samsung-case-front-CfK6dM9b.png",mt="https://www.snapcase.ai",Vs=`${mt}/og-image.png`,Us=e=>new URL(e,`${mt}/`).href,Bs=Us(Ru),Ws=Us(_u),Iu=`${mt}/marketing/pet-photo-landing/pet-photo-case-product-concept-social-preview-landscape.webp`,ku=`${mt}/marketing/iphone-photo-landing/iphone-photo-case-hero.webp`,Mt=(e,t,n,o="0.7",r=Vs)=>{const s=`${mt}${e}`;return{path:e,title:t,description:n,canonical:s,ogTitle:t,ogDescription:n,ogUrl:s,ogImage:r,twitterTitle:t,twitterDescription:n,twitterImage:r,robots:"index,follow",changefreq:"weekly",priority:o}},Nu=[Mt("/","Snapcase | Design Custom Phone Cases","Choose an iPhone or Samsung model, create a custom phone case, and review your preview before secure checkout.","1.0"),Mt("/catalog","Custom Phone Cases for iPhone & Samsung | Snapcase","Choose an iPhone or Samsung Galaxy model, then design and preview your custom snap case before checkout.","0.8")],Tn=[{path:"/custom-phone-case",eyebrow:"Custom Phone Cases",headline:"Design a personalized phone case that feels like a real gift.",intro:"Start with an iPhone or Samsung model, add a photo or message, preview the case, and check out when it is ready.",cta:"Start your custom case",sections:[{title:"Made for everyday gifting",body:"A custom phone case is personal without being hard to size. Choose the device first, then build around a favorite photo, trip, pet, inside joke, or milestone."},{title:"Preview before checkout",body:"Snapcase generates a product preview before you add the design to your cart, so the gift can be reviewed before payment."},{title:"Built around current devices",body:"The catalog includes supported iPhone and Samsung Galaxy models, with checkout and shipping details confirmed before purchase."}],giftAngles:["For a birthday gift, use one strong photo and a short line that feels personal instead of trying to fit every memory on the case.","For a holiday gift, start with the recipient's phone model, then choose a design direction around family, travel, pets, or a favorite shared place.","For a last-mile gift decision, keep the case useful: clear text, centered artwork, and a preview that is easy to review before checkout."]},{path:"/custom-iphone-case",eyebrow:"Custom iPhone Cases",headline:"Create a custom iPhone case from a photo, design, or message.",intro:"Pick the iPhone model, personalize the case in the editor, and review a preview before checkout.",cta:"Design an iPhone case",featuredBrand:"Apple",sections:[{title:"Personal without guessing sizes",body:"Choose the exact iPhone model first, then add a design that fits the person receiving it."},{title:"Good for birthdays and holidays",body:"Use a photo, name, phrase, pet, trip memory, or small collage to make a gift that stays useful every day."},{title:"Saved designs for later",body:"Create an account to save designs, come back later, and track orders from one place."}],giftAngles:["For newer iPhone models, choose the model first so the design and order stay tied to the selected device.","A clean photo, initials, a phrase, or a small collage c
28an make an iPhone case feel personal without making the design crowded.","If you are buying for someone else, save the phone model and gift idea before you start designing so checkout stays focused."]},{path:"/custom-samsung-case",eyebrow:"Custom Samsung Galaxy cases",headline:"Create a custom Samsung Galaxy case.",intro:"Add your photo or text to a Galaxy S24, S24+, or S24 Ultra case, then preview the design before checkout.",cta:"Choose your Galaxy model",featuredBrand:"Samsung",sections:[{title:"Choose the full model name",body:"Select Galaxy S24, Galaxy S24+, or Galaxy S24 Ultra so the design and order stay tied to the device you have."},{title:"Upload one clear photo",body:"Start with a focused image and leave a little room around the subject for crop adjustments."},{title:"Adjust the crop",body:"Keep faces, text, and other important details away from the edges and the camera area."},{title:"Check the preview",body:"Review the photo placement, spacing, and camera opening before adding the design to your cart."}],giftAngles:["Use a photo with one clear subject so the design stays easy to read at phone-case size.","Leave breathing room around faces and important details so you have space to adjust the crop.","Treat the preview as the final layout check, especially near the camera area and outer edges."]},{path:"/custom-phone-case/photo-case-for-new-phone",eyebrow:"Custom iPhone Photo Cases",headline:"A photo case for your new iPhone — matched to the exact model.",intro:"Pick the exact iPhone model first, then upload a photo, add optional text, and preview your case before checkout.",cta:"Start designing",featuredBrand:"Apple",sections:[{title:"Choose your iPhone",body:"Select the exact supported iPhone model so the design and order stay tied to the device you have."},{title:"Upload your photo",body:"Use a clear image and leave space around the main subject so you have room to adjust the crop."},{title:"Add optional text",body:"Add a short name, date, or message when it helps the design feel more personal."},{title:"Check the preview",body:"Review the photo, text, spacing, and camera area before adding the case to your cart."}],giftAngles:["Start with the exact model so the product selection stays clear before you personalize anything.","Use one focused photo or a simple crop rather than crowding the case with too many competing details.","Review the preview carefully when faces, text, or important details sit near an edge or the camera area."]},{path:"/gifts/custom-phone-case",eyebrow:"Custom Phone Case Gifts",headline:"Turn a favorite photo or message into a phone case gift.",intro:"Confirm their exact phone model, add something meaningful, and preview the case before checkout.",cta:"Start designing",sections:[{title:"One favorite photo",body:"Choose a pet, trip, family, or celebration photo that already means something to the person receiving it."},{title:"One shared detail",body:"Use initials, a date, an inside joke, a team color, or a short message that feels specific to your relationship."},{title:"One simple layout",body:"Keep the design focused, then use the preview to check faces, text, and spacing before adding the case to your cart."}],giftAngles:["For partners, friends, or family, turn one meaningful detail into the design: a pet, favorite trip, inside joke, initials, or a small date.","For group gifting, pick a design theme first, then ask only for the phone model so the person receiving it does not have to manage the order.","For practical gifting, a phone case works because it is used every day and can still carry a personal memory without needing extra shelf space."]},{path:"/custom-phone-case/pet-photo-phone-case",eyebrow:"Pet Photo Phone Cases",headline:"Turn one favorite pet photo into a phone case you can carry every day.",intro:"Choose the exact iPhone or Samsung model, upload a clear pet photo, add optional text, and preview the case before checkout.",cta:"Start designing",sections:[{title:"Choose the model",body:"Select the exact supported iPhone or Samsung model so the case size and camera opening match the device."},{title:"Upload a clear photo",body:"Start with a well-lit image where your pet's face is sharp and there is a little space around the subject."},{title:"Add a name or message",body:"Keep optional text short so the pet photo remains the focus of the design."},{title:"Check the preview",body:"Review the case preview, including the photo, text, spacing, and camera area, before checkout."}],giftAngles:["Use one favorite portrait as the main design and leave enough space around the face for a clear crop.","Add a pet's name or one short message when it makes the design more personal without crowding the photo.","Choose a simple background color that helps the pet stand out and keeps the finished design easy to read."]}],Ou=Tn.map(e=>Mt(e.path,e.path==="/custom-phone-case/pet-photo-phone-case"?"Custom Pet Photo Phone Case | Snapcase":e.path==="/custom-phone-case/photo-case-for-new-phone"?"Custom iPhone Case with Photo | Snapcase":e.path==="/custom-samsung-case"?"Custom Samsung Case With Photo | Galaxy S24 | Snapcase":`${e.eyebrow} | Snapcase`,e.path==="/custom-samsung-case"?"Make a custom Galaxy S24, S24+, or S24 Ultra case with your photo or text, then preview the design before checkout.":e.intro,e.path==="/custom-phone-case"?"0.9":e.path==="/custom-phone-case/pet-photo-phone-case"||e.path==="/custom-phone-case/photo-case-for-new-phone"?"0.85":"0.8",e.featuredBrand==="Apple"?Bs:e.featuredBrand==="Samsung"?Ws:e.path==="/custom-phone-case/pet-photo-phone-case"?Iu:e.path==="/custom-phone-case/photo-case-for-new-phone"?ku:Vs)),ju=pt.map(e=>Mt(`/phone-cases/${e.id}`,`${e.model} Custom Phone Case | Snapcase`,`Design a personalized ${e.model} phone case with your own photo, text, or artwork.`,"0.6",e.brand==="Apple"?Bs:Ws)),Mu=[...
28Nu,...Ou,...ju],cf=e=>Tn.find(t=>t.path===Wt(e))??Tn[0],Lu=e=>Mu.find(t=>t.path===Wt(e)),Du=[[/^\/design(?:-edm|-canvas)?\//,"Design Your Case | Snapcase"],[/^\/preview\//,"Preview Your Case | Snapcase"],[/^\/checkout(?:\/|$)/,"Checkout | Snapcase"],[/^\/order-success$/,"Order Confirmed | Snapcase"],[/^\/orders$/,"My Orders | Snapcase"],[/^\/designs$/,"My Designs | Snapcase"],[/^\/auth(?:\/|$)/,"Sign In | Snapcase"],[/^\/terms$/,"Terms of Service | Snapcase"],[/^\/privacy$/,"Privacy Policy | Snapcase"],[/^\/contact$/,"Contact Snapcase | Snapcase"],[/^\/operations$/,"Operations | Snapcase"],[/^\/kexiaozhan\/checkout$/,"Secure Checkout | Snapcase"]],zu=e=>{var t;return((t=Du.find(([n])=>n.test(e)))==null?void 0:t[1])??"Page Not Found | Snapcase"},te=(e,t,n)=>{let o=document.head.querySelector(`meta[${e}="${t}"]`);o||(o=document.createElement("meta"),o.setAttribute(e,t),document.head.appendChild(o)),o.content=n},$u=e=>{let t=document.head.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.rel="canonical",document.head.appendChild(t)),t.href=e},Fu=()=>{var e;(e=document.head.querySelector('link[rel="canonical"]'))==null||e.remove(),document.head.querySelectorAll('meta[property^="og:"], meta[name^="twitter:"]').forEach(t=>t.remove())},Vu=()=>{const{pathname:e}=Ho();return d.useLayoutEffect(()=>{const t=Lu(e);if(!t){document.title=zu(e),te("name","description","Secure Snapcase design, checkout, and account experience."),te("name","robots","noindex,nofollow"),Fu();return}document.title=t.title,te("name","description",t.description),te("name","robots",t.robots),$u(t.canonical),te("property","og:title",t.ogTitle),te("property","og:description",t.ogDescription),te("property","og:site_name","Snapcase"),te("property","og:type","website"),te("property","og:url",t.ogUrl),te("property","og:image",t.ogImage),te("name","twitter:card","summary_large_image"),te("name","twitter:site","@snapcase"),te("name","twitter:title",t.twitterTitle),te("name","twitter:description",t.twitterDescription),te("name","twitter:image",t.twitterImage)},[e]),null},Uu=new na,Bu=({children:e})=>m.jsx(oa,{client:Uu,children:m.jsx(Zi,{attribute:"class",defaultTheme:"dark",enableSystem:!0,children:m.jsx(jd,{children:m.jsx(Nd,{children:m.jsxs(gd,{children:[m.jsx(Ki,{}),m.jsx(Il,{}),m.jsx(bd,{reducedMotion:"user",children:e})]})})})})}),Uo=()=>m.jsx(Bu,{children:m.jsxs(la,{children:[m.jsx(Vu,{}),m.jsx(Pu,{}),m.jsx(au,{}),m.jsx(Tu,{})]})}),Xe=document.getElementById("root"),Wu=async()=>{Xe!=null&&Xe.hasChildNodes()?(await zd(window.location.pathname),ro.hydrateRoot(Xe,m.jsx(Uo,{}))):Xe&&ro.createRoot(Xe).render(m.jsx(Uo,{}))};Wu();export{Ku as $,lu as A,An as B,je as C,ef as D,lf as E,Ee as F,wu as G,br as H,Vo as I,Qu as J,Ea as K,Oe as L,Io as M,qc as N,Hr as O,In as P,Zo as Q,qu as R,mt as S,Ko as T,_n as U,Jc as V,Rt as W,Zc as X,Go as Y,Ji as Z,fi as _,oe as a,fe as b,ui as c,Z as d,Bc as e,Lt as f,De as g,cf as h,rf as i,tf as j,nf as k,Ru as l,ga as m,ds as n,of as o,pt as p,$s as q,Wt as r,_u as s,hu as t,za as u,vd as v,sf as w,af as x,At as y,Xu as z};

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.