1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33589,e=>{"use strict";let t,i,r;var n,s,a,o=e.i(43476),l=e.i(75157),u=e.i(57688),c=e.i(71645);let d=[[{src:"/images/custom-sites/yabla.png",label:"Yabla"},{src:"/images/custom-sites/youglish.png",label:"YouGlish"},{src:"/images/custom-sites/jisho.png",label:"Jisho"}],[{src:"/images/custom-sites/google.png",label:"Google"},{src:"/images/custom-sites/playphrase.png",label:"PlayPhrase.me"}],[{src:"/images/custom-sites/weblio.png",label:"Weblio"},{src:"/images/custom-sites/takoboto.png",label:"Takoboto"}]];function h(e,t){return 0===e?.9:1===e?.95:2===e?0===t?.7:.8:1}let m=` 2 @keyframes cs-showcase-enter { 3 from { 4 opacity: 0; 5 transform: scale(0.42); 6 } 7 to { 8 opacity: 1; 9 transform: scale(1); 10 } 11 } 12 @keyframes cs-showcase-float { 13 0%, 14 100% { 15 transform: translateY(0); 16 } 17 50% { 18 transform: translateY(-5px); 19 } 20 } 21 .cs-showcase-root { 22 --cs-logo-h: clamp(calc(36px * 0.8), calc(11vmin * 0.8), calc(52px * 0.8)); 23 } 24 @media (min-width: 640px) { 25 .cs-showcase-root { 26 --cs-logo-h: clamp(calc(40px * 0.8), calc(12vmin * 0.8), calc(58px * 0.8)); 27 } 28 } 29 .cs-showcase-root .cs-logo-static-scale { 30 display: flex; 31 align-items: center; 32 justify-content: center; 33 transform-origin: center center; 34 } 35 .cs-showcase-root .cs-logo-float { 36 display: flex; 37 align-items: center; 38 justify-content: center; 39 width: 100%; 40 min-height: var(--cs-logo-h); 41 height: auto; 42 will-change: transform; 43 } 44 .cs-showcase-root .cs-logo-inner { 45 display: flex; 46 align-items: center; 47 justify-content: center; 48 width: 100%; 49 height: var(--cs-logo-h); 50 min-height: var(--cs-logo-h); 51 max-height: var(--cs-logo-h); 52 transform-origin: center center; 53 will-change: transform, opacity; 54 } 55 .cs-showcase-root.cs-showcase-visible .cs-logo-float { 56 animation: cs-showcase-float 2.75s ease-in-out infinite; 57 } 58 .cs-showcase-root.cs-showcase-visible .cs-logo-inner { 59 animation: cs-showcase-enter 0.72s cubic-bezier(0.22, 1, 0.36, 1) both; 60 } 61 .cs-showcase-root .cs-logo-img { 62 height: var(--cs-logo-h); 63 width: auto; 64 max-width: 100%; 65 object-fit: contain; 66 } 67`;function p({className:e,...t}){let i=(0,c.useRef)(null),[r,n]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=i.current;if(!e||r)return;let t=new IntersectionObserver(e=>{for(let i of e)if(i.isIntersecting){n(!0),t.disconnect();break}},{root:null,threshold:.25});return t.observe(e),()=>t.disconnect()},[r]),(0,o.jsxs)("div",{ref:i,className:(0,l.cn)("cs-showcase-root page-g-half flex aspect-video min-h-0 w-full min-w-0 items-center justify-center overflow-hidden rounded-xl border border-border bg-background px-2 py-2 sm:px-4 sm:py-3",r&&"cs-showcase-visible",e),role:"group","aria-label":"Examples of dictionary and learning sites you can open from the extension, including Yabla, YouGlish, Jisho, Google, PlayPhrase.me, Weblio, and Takoboto",...t,children:[(0,o.jsx)("style",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:m}}),(0,o.jsx)("div",{className:"flex h-full min-h-0 w-full max-w-[420px] flex-col items-stretch justify-center gap-y-1 sm:gap-y-1.5",children:d.map((e,t)=>{let i=d.slice(0,t).reduce((e,t)=>e+t.length,0),r=2===e.length&&2===t;return(0,o.jsx)("div",{className:"w-full",children:r?(0,o.jsx)("div",{className:"flex w-full items-center justify-center gap-x-0 sm:gap-x-0.5",children:e.map((e,r)=>{let n=i+r,s=`${.07*n}s`,a=`${.22*n}s`;return(0,o.jsx)("div",{className:"flex min-h-0 min-w-0 items-center justify-center py-0.5",children:(0,o.jsx)("div",{className:"cs-logo-float",style:{animationDelay:a},children:(0,o.jsx)("div",{className:"cs-logo-static-scale",style:{transform:`scale(${h(t,r)})`},children:(0,o.jsx)("div",{className:"cs-logo-inner",style:{animationDelay:s},children:(0,o.jsx)(u.default,{src:e.src,alt:e.label,width:220,height:72,sizes:"(max-width: 768px) 33vw, 200px",className:"cs-logo-img pointer-events-none select-none",draggable:!1})})})})},e.src)})}):(0,o.jsx)("div",{className:(0,l.cn)("grid min-h-0 w-full items-center gap-x-1 sm:gap-x-2",3===e.length?"grid-cols-3":"grid-cols-2"),children:e.map((e,r)=>{let n=i+r,s=`${.07*n}s`,a=`${.22*n}s`;return(0,o.jsx)("div",{className:"flex min-h-0 min-w-0 flex-1 items-center justify-center py-0.5",children:(0,o.jsx)("div",{className:"cs-logo-float",style:{animationDelay:a},children:(0,o.jsx)("div",{className:"cs-logo-static-scale",style:{transform:`scale(${h(t,r)})`},children:(0,o.jsx)("div",{className:"cs-logo-inner",style:{animationDelay:s},children:(0,o.jsx)(u.default,{src:e.src,alt:e.label,width:220,height:72,sizes:"(max-width: 768px) 33vw, 200px",className:"cs-logo-img pointer-events-none select-none",draggable:!1})})})})},e.src)})})},t)})})]})}function f({as:e="div",className:t,...i}){return(0,o.jsx)(e,{className:(0,l.cn)("elliptical-section-band",t),...i})}var g=e.i(46932),v=e.i(72328);let y=[.22,1,.36,1];function x({className:e,children:t,delay:i=0,...r}){let n=(0,v.useReducedMotion)();return(0,o.jsx)(g.motion.div,{initial:n?{opacity:1,y:0}:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-140px 0px -140px 0px",amount:.25},transition:n?{duration:0}:{duration:.45,delay:i,ease:y},className:(0,l.cn)(e),...r,children:t})}var b=e.i(36908),w=e.i(85044);let j="{vocab}",P={en:"vocabulary",es:"vocabulario",fr:"vocabulaire",de:"Wortsc
67hatz",it:"vocabolario",pt:"vocabulário",ru:"ÑловаÑнÑй запаÑ",ja:"åèª",ko:"ì´í",zh:"è¯æ±",ar:"اÙÙ
ÙØ±Ø¯Ø§Øª",hi:"शबà¥à¤¦à¤¾à¤µà¤²à¥",nl:"woordenschat",pl:"sÅownictwo",tr:"kelime bilgisi"},k={en:"#5ABAE3",es:"#E36B7A",fr:"#6A9FE3",de:"#E3C45A",it:"#63CFA3",pt:"#4FC7B8",ru:"#7A8EE3",ja:"#E36B8F",ko:"#5F7DE3",zh:"#E36D5A",ar:"#68C98A",hi:"#E39C5A",nl:"#7AB7E3",pl:"#E387B5",tr:"#E36A6A"},T=["ru","nl","tr"];function S(e){return e.split("\n").map(e=>{let t;return -1===(t=e.indexOf(j))?{before:e,after:"",hasVocab:!1}:{before:e.slice(0,t),after:e.slice(t+j.length),hasVocab:!0}})}function A({displayVocabLocale:e,isAnimating:t}){let i=P[e];return(0,o.jsx)("span",{dir:"auto",className:"whitespace-nowrap align-baseline transition-colors duration-200 ease-out motion-reduce:transition-none",style:{color:t?k[e]:void 0},"aria-hidden":!!t||void 0,children:i})}function E({displayVocabLocale:e,isAnimating:t}){let i=(0,c.useRef)(null),[r,n]=(0,c.useState)(void 0),s=P[e];return(0,c.useLayoutEffect)(()=>{let e=i.current;if(!e)return;e.style.width="auto";let t=Math.ceil(e.getBoundingClientRect().width);e.style.width="",n(t)},[s]),(0,o.jsx)("span",{ref:i,dir:"auto",className:"inline-block min-w-[3ch] origin-left align-baseline transition-[width,color] duration-200 ease-out motion-reduce:transition-none",style:{width:r,paddingInline:"0.05em",color:t?k[e]:void 0},"aria-hidden":!!t||void 0,children:s})}function N({line:e,isMobile:t,displayVocabLocale:i,isAnimating:r}){return e.hasVocab?(0,o.jsxs)("span",{className:"block max-w-full",children:[e.before,(0,o.jsx)(t?A:E,{displayVocabLocale:i,isAnimating:r}),e.after]}):(0,o.jsx)("span",{className:"block",children:e.before})}function M(){let{locale:e,t}=(0,b.useLanguage)(),i=t("home.heroTitle"),r=S(i),n=S(i).map(t=>t.hasVocab?`${t.before}${P[e]}${t.after}`:t.before).join("\n"),s=function(){let[e,t]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=window.matchMedia("(max-width: 767px)"),i=()=>t(e.matches);return i(),e.addEventListener("change",i),()=>e.removeEventListener("change",i)},[]),e}(),[a,l]=(0,c.useState)(e),[u,d]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let t,i,r=!window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(l(e),d(!1),!r)return;let n=w.UI_LOCALES.filter(t=>t!==e&&!T.includes(t));if(0===n.length)return;let s=2e3/n.length,a=null;return d(!0),t=0,l(n[0]),a=setInterval(()=>{if((t+=1)>=n.length){a&&clearInterval(a),a=null,l(e),d(!1);return}l(n[t])},s),()=>{i&&clearTimeout(i),a&&clearInterval(a)}},[e]),(0,o.jsx)("h1",{className:`max-w-2xl font-sans text-heading-display font-bold leading-display-h1 tracking-tight md:text-heading-display-lg${u?"":" md:text-balance"}`,"aria-label":n,children:r.map((e,t)=>(0,o.jsx)(N,{line:e,isMobile:s,displayVocabLocale:a,isAnimating:u},t))})}let C=[{start:0,end:7},{start:7,end:14},{start:14,end:19},{start:19,end:24},{start:24,end:32}];var L=e.i(65570),R=e.i(75254);let D=(0,R.default)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),V=(0,R.default)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]),F=["home.heroVideoCue1","home.heroVideoCue2","home.heroVideoCue3","home.heroVideoCue4","home.heroVideoCue5"];function I(e){return!!e.webkitDisplayingFullscreen}function B(){let e=document;return document.fullscreenElement??e.webkitFullscreenElement??null}function U(e,t){let i=B(),r=null!==t&&i===t,n=I(e),s=i===e,a=r||n||s,o="none";return a&&(r?o="stage":(n||s)&&(o="webkit")),{mode:o,visuallyFullscreen:a}}function O(e){return new Promise(t=>setTimeout(t,e))}function $(){let e,{t,locale:i}=(0,b.useLanguage)(),r=function(){let[e,t]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=window.matchMedia("(max-width: 767px)"),i=()=>t(e.matches);return i(),e.addEventListener("change",i),()=>e.removeEventListener("change",i)},[]),e}(),n=(0,c.useRef)(null),s=(0,c.useRef)(null),a=(0,c.useRef)(null),l=(0,c.useRef)(0),u=(0,c.useRef)(!1),d=(0,c.useRef)("none"),[h,m]=(0,c.useState)(0),[p,f]=(0,c.useState)(0),[g,v]=(0,c.useState)(!0),[y,x]=(0,c.useState)(!1),[w,j]=(0,c.useState)(!1),[P,k]=(0,c.useState)("none"),T=(0,c.useRef)(null),S=(e=L.default.locales.find(e=>e.code===i),e?.nativeLabel??i),A=`/videos/hero-captions.${i}.vtt`,E=(0,c.useCallback)(()=>{let e=s.current;if(e)for(let t=0;t<e.textTracks.length;t++)"disabled"!==e.textTracks[t].mode&&(e.textTracks[t].mode="disabled")},[]),N=(0,c.useCallback)(async(e=6)=>{let t=s.current;if(!t||"webkit"!==d.current)return;let i=t.textTracks[0];return i?(i.mode="showing",0===(i.cues?.length??0)&&e>0)?(await O(120),N(e-1)):void 0:e>0?(await O(100),N(e-1)):void 0},[]),M=(0,c.useCallback)((e,t)=>{u.current=t,d.current=e,x(t),j(t),k(e),"webkit"===e?N():E()},[N,E]),R=(0,c.useCallback)(()=>{let e=s.current,t=n.current;if(!e)return;let{mode:i,visuallyFullscreen:r}=U(e,t);r&&"none"===i&&(I(e)?i="webkit":t&&B()===t&&(i="stage")),M(i,r)},[M]);(0,c.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>{"webkit"!==d.current&&E()},i=()=>{requestAnimationFrame(()=>R())},r=()=>{M("webkit",!0),N(),requestAnimationFrame(()=>{R(),N()})},n=()=>R(),a=()=>{"webkit"===d.current?N():E()},o=()=>{"webkit"===d.current&&N()};return e.addEventListener("loadeddata",a),e.addEventListener("loadedmetadata",o),e.addEventListener("canplay",o),e.textTracks.addEventListener("change",t),e.textTracks.addEventListener("addtrack",a),document.addEventListener("fullscreenchange",i
67),e.addEventListener("webkitbeginfullscreen",r),e.addEventListener("webkitendfullscreen",n),a(),()=>{e.removeEventListener("loadeddata",a),e.removeEventListener("loadedmetadata",o),e.removeEventListener("canplay",o),e.textTracks.removeEventListener("addtrack",a),e.textTracks.removeEventListener("change",t),document.removeEventListener("fullscreenchange",i),e.removeEventListener("webkitbeginfullscreen",r),e.removeEventListener("webkitendfullscreen",n)}},[R,E,N,M]);let $=(0,c.useCallback)(async()=>{let e=n.current,t=s.current;if(!e||!t)return;let{visuallyFullscreen:i}=U(t,e);if(i){B()&&await document.exitFullscreen().catch(()=>{}),I(t)&&"function"==typeof t.webkitExitFullscreen&&t.webkitExitFullscreen(),R();return}try{await e.requestFullscreen(),R();return}catch{}"function"==typeof t.webkitEnterFullscreen&&(t.webkitEnterFullscreen(),M("webkit",!0),N(),requestAnimationFrame(()=>{R(),N()}))},[R,M,N]),W=(0,c.useCallback)(()=>{let e=s.current;if(!e||e.readyState<2)return;let t=e.currentTime,i=l.current;if(l.current=t,i>30&&t<1)return void m(0);let r=function(e){if(!Number.isFinite(e)||e<=0)return 0;if(e>=32&&e<35)return null;for(let t=C.length-1;t>=0;t--){let i=C[t];if(e>=i.start&&e<i.end)return t}return e>=32?null:0}(t);m(e=>e===r?e:r)},[]),z=(0,c.useCallback)(()=>{null!=a.current&&(cancelAnimationFrame(a.current),a.current=null)},[]),q=(0,c.useCallback)(()=>{z();let e=()=>{W(),a.current=requestAnimationFrame(e)};a.current=requestAnimationFrame(e)},[z,W]);(0,c.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>q(),i=()=>z(),r=()=>{let t=0;if(e.paused&&e.currentTime<.1)try{e.currentTime=.7,t=.7}catch{}l.current=t,m(0),W()},n=()=>W(),a=()=>{let t=e.currentTime;if(l.current>30&&t<1){l.current=t,m(0);return}l.current=t},o=()=>{document.hidden?z():e.paused||q()};return e.addEventListener("play",t),e.addEventListener("pause",i),e.addEventListener("loadeddata",r),e.addEventListener("seeked",n),e.addEventListener("timeupdate",a),document.addEventListener("visibilitychange",o),e.paused?W():q(),()=>{z(),e.removeEventListener("play",t),e.removeEventListener("pause",i),e.removeEventListener("loadeddata",r),e.removeEventListener("seeked",n),e.removeEventListener("timeupdate",a),document.removeEventListener("visibilitychange",o)}},[q,z,W]),(0,c.useEffect)(()=>{let e=n.current,t=s.current;if(!e||!t||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let i=!1,r=new IntersectionObserver(([e])=>{!e||i||e.intersectionRatio<1||t.play().then(()=>{i=!0,r.disconnect()}).catch(()=>{})},{threshold:1});return r.observe(e),()=>r.disconnect()},[]),(0,c.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(h===p){null===h&&v(!1);return}if(T.current&&clearTimeout(T.current),e){f(h),v(null!==h);return}return v(!1),T.current=setTimeout(()=>{f(h),null!==h&&requestAnimationFrame(()=>v(!0))},280),()=>{T.current&&clearTimeout(T.current)}},[h,p]),(0,c.useEffect)(()=>{E()},[i,A,E]);let _=null!==p?t(F[p]):"",K=g?"home-hero-media__caption--visible":"",Y=!w,H="stage"===P,G=H&&null!==p?"home-hero-media__caption--visible":K,X=t(y?"home.heroVideoExitFullscreen":"home.heroVideoEnterFullscreen");return(0,o.jsxs)("div",{className:"page-g-full home-hero-media min-w-0",children:[(0,o.jsxs)("div",{ref:n,className:`home-hero-media__stage${"stage"===P?" home-hero-media__stage--fs":""}${"webkit"===P?" home-hero-media__stage--webkit-fs":""}`,children:[(0,o.jsx)("video",{ref:s,src:"/videos/hero-main-demo-v2_compressed.mp4",muted:!0,loop:!0,playsInline:!0,preload:"auto",controls:r,controlsList:"nofullscreen nomute nodownload noremoteplayback",disablePictureInPicture:!0,width:2560,height:1600,className:"home-hero-media__video","aria-label":t("home.heroImageAlt"),children:(0,o.jsx)("track",{kind:"captions",src:A,srcLang:i,label:S,onLoad:()=>{"webkit"===d.current&&N()}},i)}),(0,o.jsx)("p",{className:`home-hero-media__caption home-hero-media__caption--overlay${H?" home-hero-media__caption--overlay-active":""}`,"aria-live":"polite","aria-hidden":!H,hidden:!H,children:(0,o.jsx)("span",{className:`home-hero-media__caption-box whitespace-pre-line ${G}`,children:_})}
67),r?(0,o.jsx)("button",{type:"button",className:"home-hero-media__fullscreen-btn",onClick:()=>void $(),"aria-label":X,children:y?(0,o.jsx)(V,{className:"size-5","aria-hidden":!0}):(0,o.jsx)(D,{className:"size-5","aria-hidden":!0})}):null]}),(0,o.jsx)("div",{className:"home-hero-media__caption-slot","aria-hidden":null===p||!g||!Y,hidden:!Y,children:(0,o.jsx)("p",{className:`home-hero-media__caption home-hero-media__caption--below md:whitespace-pre-line ${K}`,"aria-live":"polite",children:_})})]})}let W=(0,R.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),z=(0,R.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function q({slideCount:e,slideIds:t,activeIndex:i,onSelect:r,carouselLabel:n,prevLabel:s,nextLabel:a,className:c}){return(0,o.jsxs)("div",{className:(0,l.cn)("flex items-center justify-center gap-3",c),children:[(0,o.jsx)("button",{type:"button",className:"inline-flex size-9 shrink-0 items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-40","aria-label":s,disabled:i<=0,onClick:()=>r(i-1),children:(0,o.jsx)(W,{className:"size-4","aria-hidden":!0})}),(0,o.jsx)("div",{className:"flex items-center justify-center gap-2",role:"tablist","aria-label":n,children:t.map((t,n)=>{let s=n===i;return(0,o.jsx)("button",{type:"button",role:"tab","aria-selected":s,"aria-label":`${n+1} / ${e}`,className:(0,l.cn)("inline-flex size-7 items-center justify-center rounded-full border transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",s?"border-primary/40 bg-primary/10":"border-transparent bg-muted/60 hover:bg-muted"),onClick:()=>r(n),children:s?(0,o.jsx)(u.default,{src:"/images/paw-cursor.png",alt:"",width:22,height:22,className:"size-3.5","aria-hidden":!0}):(0,o.jsx)("span",{className:"size-1.5 rounded-full bg-muted-foreground/50","aria-hidden":!0})},t)})}),(0,o.jsx)("button",{type:"button",className:"inline-flex size-9 shrink-0 items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-40","aria-label":a,disabled:i>=e-1,onClick:()=>r(i+1),children:(0,o.jsx)(z,{className:"size-4","aria-hidden":!0})})]})}function _({slideCount:e,reducedMotion:t}){let i=(0,c.useRef)(null),r=(0,c.useRef)([]),[n,s]=(0,c.useState)(0),a=(0,c.useCallback)(e=>{let n=i.current,s=r.current[e];if(!n||!s)return;let a=s.offsetLeft-(n.clientWidth-s.clientWidth)/2;n.scrollTo({left:Math.max(0,a),behavior:t?"auto":"smooth"})},[t]),o=(0,c.useCallback)(()=>{let e=i.current;if(!e)return;let t=e.scrollLeft+e.clientWidth/2,n=0,a=1/0;r.current.forEach((e,i)=>{if(!e)return;let r=Math.abs(t-(e.offsetLeft+e.clientWidth/2));r<a&&(a=r,n=i)}),s(n)},[]);return(0,c.useEffect)(()=>{let e=i.current;if(!e)return;o();let t=0,r=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(o)};return e.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),()=>{cancelAnimationFrame(t),e.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[e,o]),{rowRef:i,setSlideRef:(0,c.useCallback)(e=>t=>{r.current[e]=t},[]),activeIndex:n,scrollToIndex:a,onKeyDown:t=>{"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(t.preventDefault(),a(Math.min(e-1,Math.max(0,n+("ArrowRight"===t.key?1:-1)))))}}}let K=(0,R.default)("app-window",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]),Y=(0,R.default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]),H=(0,R.default)("hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]),G="/images/extension-paws",X=[{id:"apps",worryKey:"home.painPointAppsWorry",answer
67Key:"home.painPointAppsAnswer",icon:K,replyIconSrc:`${G}/icon11.png`},{id:"time",worryKey:"home.painPointTimeWorry",answerKey:"home.painPointTimeAnswer",icon:Y,replyIconSrc:`${G}/icon14.png`},{id:"procrastinate",worryKey:"home.painPointProcrastinateWorry",answerKey:"home.painPointProcrastinateAnswer",icon:H,replyIconSrc:`${G}/icon16.png`}];function Z({text:e,icon:t,reducedMotion:i}){return(0,o.jsx)("div",{className:(0,l.cn)("home-pain-point-worry relative rounded-xl border border-amber-200/80 border-l-4 border-l-amber-400/80 bg-amber-50/90 p-4 text-sm leading-relaxed text-foreground shadow-sm dark:border-amber-800/50 dark:border-l-amber-600/70 dark:bg-amber-950/35",!i&&"-rotate-2"),children:(0,o.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,o.jsx)(t,{className:"mt-0.5 size-4 shrink-0 text-amber-700/80 dark:text-amber-400/90","aria-hidden":!0}),(0,o.jsx)("p",{className:"text-pretty italic",children:e})]})})}function Q({text:e,replyIconSrc:t}){return(0,o.jsxs)("div",{className:"home-pain-point-reply relative rounded-xl border border-primary/25 bg-primary/5 p-4 pl-[3.25rem] text-sm leading-relaxed text-foreground shadow-sm",children:[(0,o.jsx)("img",{src:t,alt:"",width:36,height:36,className:"absolute left-3 top-3 size-9 object-contain","aria-hidden":!0,decoding:"async"}),(0,o.jsx)("p",{className:"text-pretty",children:e})]})}function J({reducedMotion:e,className:t}){return e?(0,o.jsx)("div",{className:(0,l.cn)("my-2 h-px w-8 bg-border",t),"aria-hidden":!0}):(0,o.jsx)("div",{className:(0,l.cn)("home-pain-point-connector my-2 flex flex-col items-center gap-1",t),"aria-hidden":!0,children:[0,1,2].map(e=>(0,o.jsx)(u.default,{src:"/images/paw-cursor.png",alt:"",width:22,height:22,className:"size-3.5 opacity-55","aria-hidden":!0},e))})}function ee({items:e,reducedMotion:t,getWorryText:i,getAnswerText:r,carouselLabel:n,prevLabel:s,nextLabel:a}){let{rowRef:l,setSlideRef:u,activeIndex:c,scrollToIndex:d,onKeyDown:h}=_({slideCount:e.length,reducedMotion:t});return(0,o.jsxs)("div",{className:"mt-10 space-y-5",children:[(0,o.jsx)("div",{className:"pain-points-carousel-bleed relative",children:(0,o.jsx)("div",{ref:l,role:"region","aria-roledescription":"carousel","aria-label":n,tabIndex:0,className:"pain-points-carousel-row",onKeyDown:h,children:e.map((n,s)=>(0,o.jsx)("div",{ref:u(s),role:"group","aria-roledescription":"slide","aria-label":`${s+1} / ${e.length}`,className:"pain-points-carousel-slide pain-point-thread--carousel","data-pain-point":n.id,children:(0,o.jsxs)("article",{className:"contents",children:[(0,o.jsx)(Z,{text:i(n),icon:n.icon,reducedMotion:t}),(0,o.jsx)(J,{reducedMotion:t,className:"my-0"}),(0,o.jsx)(Q,{text:r(n),replyIconSrc:n.replyIconSrc})]})},n.id))})}),(0,o.jsx)(q,{slideCount:e.length,slideIds:e.map(e=>e.id),activeIndex:c,onSelect:d,carouselLabel:n,prevLabel:s,nextLabel:a})]})}function et({className:e}){let{t}=(0,b.useLanguage)(),i=(0,v.useReducedMotion)()??!1,r=e=>t(e.worryKey),n=e=>t(e.answerKey);return(0,o.jsxs)("section",{id:"home-pain-points","aria-labelledby":"home-pain-points-heading",className:(0,l.cn)("page-constrain",e),children:[(0,o.jsxs)(x,{className:"text-center",children:[(0,o.jsx)("h2",{id:"home-pain-points-heading",className:"font-sans text-heading-section font-semibold tracking-tight text-foreground",children:t("home.painPointsTitle")}),(0,o.jsx)("p",{className:"mx-auto mt-4 max-w-2xl text-pretty text-support text-muted-foreground md:mt-6",children:t("home.painPointsSubtitle")})]}),(0,o.jsx)("div",{className:"pain-point-desktop-grid mx-auto mt-10 hidden max-w-5xl md:grid md:grid-cols-3 md:grid-rows-[auto_auto_auto] md:gap-x-8 md:gap-y-2 lg:gap-x-8",children:X.map((e,t)=>(0,o.jsxs)(x,{delay:.08*t,className:"pain-point-thread--desktop grid min-h-0 grid-rows-subgrid [grid-row:span_3] gap-y-2","data-pain-point":e.id,children:[(0,o.jsx)(Z,{text:r(e),icon:e.icon,reducedMotion:i}),(0,o.jsx)(J,{reducedMotion:i,className:"my-0"}),(0,o.jsx)(Q,{text:n(e),replyIconSrc:e.replyIconSrc})]},e.id))}),(0,o.jsx)("div",{className:"md:hidden",children:(0,o.jsx)(ee,{items:X,reducedMotion:i,getWorryText:r,getAnswerText:n,carouselLabel:t("home.painPointsCarouselLabel"),prevLabel:t("home.painPointsCarouselPrev"),nextLabel:t("home.painPointsCarouselNext")})})]})}var ei=e.i(97440),er=e.i(39291),en=e.i(64659),es=e.i(93754),ea=e.i(85149);function eo({item:e,isOpen:t,onToggle:i}){return(0,o.jsxs)("details",{open:t,onToggle:e=>i(e.currentTarget.open),className:(0,l.cn)("group rounded-xl border border-border/70 bg-card/50 transition-colors duration-200",e.emphasized&&"border-primary/30 bg-primary/5"),children:[(0,o.jsxs)("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-3 px-4 py-3 text-left hover:bg-muted/30 focus-visible:outline-none md:px-5",children:[(0,o.jsxs)("div",{className:"flex flex-col items-start gap-1.5 md:flex-row md:items-center md:gap-2.5",children:[e.emphasized?(0,o.jsx)("span",{className:"inline-flex shrink-0 rounded-full border border-primary/30 bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:e.badgeText}):null,(0,o.jsx)("span",{className:"text-sm font-semibold text-foreground md:text-base",children:e.question})]}),(0,o.jsx)(en.ChevronDown,{className:(0,l.cn)("size-4 shrink-0 text-muted-foreground transition-transform duration-200",t&&"rotate-180"),"aria-hidden":!0})]}),(0,o.jsx)("div",{className:(0,l.cn)("grid transition-[grid-template-rows] duration-200 ease-out",t?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,o.jsx)("div",{className:"overflow-hidden",children:(0,o.jsx)("div",{className:"px-4 pb-4 text-sm leading-7 text-muted-foreground md:max-w-[65ch] md:px-5",children:e.answer})})})]})}function el({className:e,...t}){let{t:i}=(0,b.useLanguage)(),[r,n]=(0,c.useState)(null),s=(0,c.useMemo)(()=>ea.SUPPORTED_LANGUAGE_OPTIONS.map(e=>(0,es.getLanguageAutonym)(e)),[]),a=(0,c.useMemo)(()=>[{id:"name",question:i("home.faqNameQuestion"),answer:i("home.faqNameAnswer")},{id:"why",question:i("home.faqWhyQuestion"),answer:i("home.faqWhyAnswer")},{id:"languages",question:i("home.faqLanguagesQuestion"),answer:(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)("p",{children:i("home.faqLanguagesIntro")}),(0,o.jsxs)("ul",{className:"columns-2 gap-x-6 gap-y-1 md:columns-3",children:[s.map(e=>(0,o.jsx)("li",{className:"break-inside-avoid py-0.5",children:e},e)),(0,o.jsx)("li",{className:"break-inside-avoid py-0.5",children:i("home.faqFlashcardLabel")})]})]})},{id:"interrupt",question:i("home.faqInterruptQuestion"),answer:i("home.faqInterruptAnswer"),emphasized:!0,badgeText:i("home.faqMostAsked")},{id:"browser",question:i("home.faqBrowserQuestion"),answer:i("home.faqBrowserAnswer")},{id:"iphone",question:i("home.faqIphoneQuestion"),answer:(0,o.jsxs)("div",{className:"space-y-3",children:[(0,o.jsx)("p",{children:i("home.faqIphoneAnswer")}),(0,o.jsx)(er.AppStoreBadge,{campaign:"home-faq",className:"-ml-2.5"})]})},{id:"pricing",question:i("home.faqPricingQuestion"),answer:i("home.faqPricingAnswer")},{id:"contact",question:i("home.faqContactQuestion"),answer:(0,o.jsxs)("p",{children:[i("home.faqContactAnswerPrefix")," ",(0,o.jsx)(ei.LocaleLink,{href:"/contact",className:"underline underline-offset-2",children:i("home.faqContactAnswerLink")})," ",i("home.faqContactAnswerSuffix")," ",(0,o.jsx)("a",{href:"mailto:[email protected]",className:"underline underline-offset-2",children:"[email protected]"}),i("home.faqContactAnswerEnd")]})}],[s,i]);return(0,o.jsx)("section",{className:(0,l.cn)("home-section--loose",e),"aria-labelledby":"home-faq-heading",...t,children:(0,o.jsxs)("div",{className:"page-constrain page-constrain--inset-2-11 space-y-6",children:[(0,o.jsxs)(x,{className:"space-y-2 text-center",children:[(0,o.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:i("home.faqTitle")}),(0,o.jsx)("h2",{id:"home-faq-heading",className:"whitespace-pre-line font-sans text-heading-2 font-semibold tracking-tight text-foreground md:whitespace-normal",children:i("home.faqIntro")})]}),(0,o.jsx)(x,{className:"space-y-2",delay:.06,children:a.map(e=>(0,o.jsx)(eo,{item:e,isOpen:r===e.id,onToggle:t=>{n(i=>t?e.id:i===e.id?null:i)}},e.id))})]})})}let eu=["80% 55%","69% 34%","8% 6%","41% 38%","86% 85%","82% 18%","51% 4%"],ec=["--gradient-one","--gradient-two","--gradient-three","--gradient-four","--gradient-five","--gradient-six","--gradient-seven"],ed=[0,1,2,0,1,2,1],eh=["var(--primary)","var(--secondary)","var(--chart-2)"];function em(e){return 1-(1-e)**3}function ep(e){return e*e*e}function ef({start:e=0,end:t=100,duration:i=1e3,delay:r=0,ease:n=em,onUpdate:s,onEnd:a}){let o=performance.now()+r;function l(){let r=Math.min((performance.now()-o)/i,1);s(e+(t-e)*n(r)),r<1?requestAnimationFrame(l):a?.()}setTimeout(()=>requestAnimationFrame(l),r)}function eg({children:e,className:t="",edgeSensitivity:i=30,glowIntensity:r=1,backgroundColor:n="var(--card)",borderRadius:s,glowRadius:a=40,coneSpread:u=25,animated:d=!1,colors:h=eh,fillOpacity:m=.5}){let p=(0,c.useRef)(null),f=(0,c.useCallback)(e=>{let{width:t,height:i}=e.getBoundingClientRect();return[t/2,i/2]},[]),g=(0,c.useCallback)((e,t,i)=>{let[r,n]=f(e),s=t-r,a=i-n,o=1/0,l=1/0;
67return 0!==s&&(o=r/Math.abs(s)),0!==a&&(l=n/Math.abs(a)),Math.min(Math.max(1/Math.min(o,l),0),1)},[f]),v=(0,c.useCallback)((e,t,i)=>{let[r,n]=f(e),s=t-r,a=i-n;if(0===s&&0===a)return 0;let o=180/Math.PI*Math.atan2(a,s)+90;return o<0&&(o+=360),o},[f]),y=(0,c.useCallback)(e=>{let t=p.current;if(!t)return;let i=t.getBoundingClientRect(),r=e.clientX-i.left,n=e.clientY-i.top,s=g(t,r,n),a=v(t,r,n);t.style.setProperty("--edge-proximity",`${(100*s).toFixed(3)}`),t.style.setProperty("--cursor-angle",`${a.toFixed(3)}deg`)},[g,v]);(0,c.useEffect)(()=>{if(!d||!p.current)return;let e=p.current;e.classList.add("sweep-active"),e.style.setProperty("--cursor-angle","110deg"),ef({duration:500,onUpdate:t=>e.style.setProperty("--edge-proximity",String(t))}),ef({ease:ep,duration:1500,end:50,onUpdate:t=>{e.style.setProperty("--cursor-angle",`${355*t/100+110}deg`)}}),ef({ease:em,delay:1500,duration:2250,start:50,end:100,onUpdate:t=>{e.style.setProperty("--cursor-angle",`${355*t/100+110}deg`)}}),ef({ease:ep,delay:2500,duration:1500,start:100,end:0,onUpdate:t=>e.style.setProperty("--edge-proximity",String(t)),onEnd:()=>e.classList.remove("sweep-active")})},[d]);let x=function(e){let t=["","-60","-50","-40","-30","-20","-10"],i=[100,60,50,40,30,20,10],r={};for(let n=0;n<i.length;n++){let s=Math.min(100,i[n]*e);r[`--glow-color${t[n]}`]=`color-mix(in oklch, var(--primary) ${s}%, transparent)`}return r}(r),b=function(e){let t={};for(let i=0;i<7;i++){let r=e[Math.min(ed[i],e.length-1)]??e[0];t[ec[i]]=`radial-gradient(at ${eu[i]}, ${r} 0px, transparent 50%)`}return t["--gradient-base"]=`linear-gradient(${e[0]} 0 100%)`,t}(h),w={"--card-bg":n,"--edge-sensitivity":i,"--glow-padding":`${a}px`,"--cone-spread":u,"--fill-opacity":m,...x,...b};return"number"==typeof s&&(w["--border-radius"]=`${s}px`),(0,o.jsxs)("div",{ref:p,onPointerMove:y,className:(0,l.cn)("border-glow-card",t),style:w,children:[(0,o.jsx)("span",{className:"edge-light","aria-hidden":!0}),(0,o.jsx)("div",{className:"border-glow-inner text-card-foreground",children:e})]})}var ev=e.i(19455),ey=e.i(43531);let ex=["free","monthly","yearly"];function eb(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t,maximumFractionDigits:2*!["JPY","KRW","IDR"].includes(t)}).format(e)}function ew({label:e}){return(0,o.jsxs)("div",{className:"flex items-start gap-2",children:[(0,o.jsx)(ey.Check,{className:"mt-0.5 size-4 shrink-0 text-primary","aria-hidden":!0}),(0,o.jsx)("span",{className:"text-sm text-muted-foreground",children:e})]})}function ej({heading:e,features:t}){return(0,o.jsxs)("div",{className:"mt-6",children:[(0,o.jsx)("p",{className:"text-sm font-medium text-foreground",children:e}),(0,o.jsx)("div",{className:"mt-2 space-y-2",children:t.map(e=>(0,o.jsx)(ew,{label:e},e))})]})}function eP({currency:e,pricing:t,className:i}){let{t:r}=(0,b.useLanguage)(),n=(0,v.useReducedMotion)()??!1,{rowRef:s,setSlideRef:a,activeIndex:u,scrollToIndex:d,onKeyDown:h}=_({slideCount:ex.length,reducedMotion:n}),m=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{let e=s.current;if(!e||window.matchMedia("(min-width: 1024px)").matches||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let t=new IntersectionObserver(i=>{let r=i[0];if(!r?.isIntersecting||m.current)return;let n=e.querySelector(".page-pricing-card:nth-child(3)");if(!n)return;m.current=!0;let s=Math.max(0,n.offsetLeft-16),a=e.scrollLeft,o=s-a,l=performance.now(),u=0,c=!1,d=!1,h=()=>{d||(d=!0,c=!0,u&&cancelAnimationFrame(u),e.removeEventListener("touchstart",h),e.removeEventListener("pointerdown",h),e.removeEventListener("wheel",h))},p=t=>{if(c)return;let i=Math.min(1,(t-l)/1200);if(e.scrollLeft=a+o*(i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2),i<1){u=requestAnimationFrame(p);return}h()};e.addEventListener("touchstart",h,{passive:!0}),e.addEventListener("pointerdown",h,{passive:!0}),e.addEventListener("wheel",h,{passive:!0}),u=requestAnimationFrame(p),t.disconnect()},{root:null,rootMargin:"-50% 0px -50% 0px",threshold:0});return t.observe(e),()=>t.disconnect()},[s]),(0,o.jsx)("section",{id:"pricing",className:(0,l.cn)("home-section",i),children:(0,o.jsxs)("div",{className:"page-constrain page-constrain--inset-2-11 space-y-10",children:[(0,o.jsxs)(x,{className:"text-center",children:[(0,o.jsx)("h2",{className:"font-sans text-heading-section font-semibold tracking-tight text-foreground",children:r("home.pricingTitle")}),(0,o.jsx)("p",{className:"mt-4 text-support text-muted-foreground md:mt-6",children:r("home.pricingSubtitle")})]}),(0,o.jsxs)("div",{className:"space-y-5",children:[(0,o.jsx)("div",{className:"pricing-scroll-bleed relative",children:(0,o.jsxs)("div",{ref:s,role:"region","aria-roledescription":"carousel","aria-label":r("home.pricingCarouselLabel"),tabIndex:0,className:"page-grid page-grid--pricing-row md:items-stretch",onKeyDown:h,children:[(0,o.jsx)(x,{ref:a(0),className:"page-pricing-card h-full min-h-0",children:(0,o.jsx)(eg,{className:"h-full min-h-0",children:(0,o.jsxs)("div",{className:"flex h-full min-h-0 flex-col p-4 lg:p-6",children:[(0,o.jsx)("h3",{className:"font-sans text-heading-pricing font-semibold tracking-tight text-card-foreground",children:r("home.planFree")}),(0,o.jsx)("p",{className:"mt-1 text-support text-muted-foreground",children:r("home.planFreeTag")}),(0,o.jsx)("div",{className:"mt-2 flex h-8 shrink-0 items-center","aria-hidden":!0}),(0,o.jsx)("p",{className:"mt-4 font-sans text-heading-section font-bold text-card-foreground",children:eb(0,e)}),(0,o.jsx)(ev.Button,{asChild:!0,variant:"outline",className:"mt-6 w-full",children:(0,o.jsxs)(ei.LocaleLink,{href:"/signup/free",className:"text-center leading-snug",children:[(0,o.jsx)("span",{className:"lg:hidden",children:r("common.getStarted")}),(0,o.jsx)("span",{className:"hidden lg:inline",children:r("home.getStartedFree")})]})}),(0,o.jsx)(ej,{heading:r("home.planWhatsIncluded"),features:[r("home.planFreeLimit")]})]})})}),(0,o.jsx)(x,{ref:a(1),className:"page-pricing-card h-full min-h-0",delay:.08,children:(0,o.jsx)(eg,{className:"h-full min-h-0",children:(0,o.jsxs)("div",{className:"flex h-full min-h-0 flex-col p-4 lg:p-6",children:[(0,o.jsx)("h3",{className:"font-sans text-heading-pricing font-semibold tracking-tight text-card-foreground",children:r("home.planPremium")}),(0,o.jsx)("p",{className:"mt-1 text-support text-muted-foreground",children:r("home.planMonthly")}),(0,o.jsx)("div",{className:"mt-2 flex h-8 shrink-0 items-center","aria-hidden":!0}),(0,o.jsx)("p",{className:"mt-4 font-sans text-heading-section font-bold text-card-foreground",children:eb(t.monthly,e)}),(0,o.jsx)(ev.Button,{asChild:!0,variant:"outline",className:"mt-6 w-full",children:(0,o.jsxs)(ei.LocaleLink,{href:"/signup/premium",className:"text-center leading-snug",children:[(0,o.jsx)("span",{className:"lg:hidden",children:r("common.getStarted")}),(0,o.jsx)("span",{className:"hidden lg:inline",children:r("home.getStartedPremium")})]})}),(0,o.jsx)(ej,{heading:r("home.planWhatsIncluded"),features:[r("home.planUnlimited"),r("home.planMobileAddWords")]})]})})}),(0,o.jsx)(x,{ref:a(2),className:"page-pricing-card pricing-card--yearly h-full min-h-0",delay:.16,children:(0,o.jsx)("article",{className:"relative flex h-full min-h-0 flex-col overflow-hidden rounded-xl border border-border bg-gradient-to-br from-primary/15 via-card to-primary/20 text-card-foreground shadow-md",children:(0,o.jsxs)("div",{className:"flex h-full min-h-0 flex-col p-4 lg:p-6",children:[(0,o.jsx)("h3",{className:"font-sans text-heading-pricing font-semibold tracking-tight text-card-foreground",children:r("home.planPremium")}),(0,o.jsx)("p",{className:"mt-1 text-support text-muted-foreground",children:r("home.planYearly")}),(0,o.jsx)("div",{className:"mt-2 flex h-8 shrink-0 items-center",children:(0,o.jsx)("span",{className:"inline-flex w-fit shrink-0 rounded-md bg-secondary px-2.5 py-0.5 text-xs font-semibold text-[var(--background)]",children:r("home.bestDeal")})}),(0,o.jsx)("p",{className:"mt-4 font-sans text-heading-section font-bold text-card-foreground",children:eb(t.yearly,e)}),(0,o.jsx)(ev.Button,{asChild:!0,variant:"outline",className:"mt-6 w-full",children:(0,o.jsxs)(ei.LocaleLink,{href:"/signup/premium",className:"text-center leading-snug",children:[(0,o.jsx)("span",{className:"lg:hidden",children:r("common.getStarted")}),(0,o.jsx)("span",{className:"hidden lg:inline",children:r("home.getStartedPremium")})]})}),(0,o.jsx)(ej,{heading:r("home.planWhatsIncluded"),features:[r("home.planUnlimited"),r("home.planMobileAddWords")]})]})})})]})}),(0,o.jsx)(q,{className:"lg:hidden",slideCount:ex.length,slideIds:[...ex],activeIndex:u,onSelect:d,carouselLabel:r("home.pricingCarouselLabel"),prevLabel:r("home.pricingCarouselPrev"),nextLabel:r("home.pricingCarouselNext")})]}),(0,o.jsx)("p",{className:"text-support text-muted-foreground",children:r("home.pricingDisclaimer")})]})})}var ek=e.i(99776),eT=e.i(37902),eS=e.i(72258),eA=e.i(74080);let eE="Manabu Neko",eN=(0,l.cn)("inline-flex min-h-10 shrink-0 flex-1 items-center justify-center rounded-md px-3 text-sm font-medium transition-colors sm:px-4","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:opacity-50","bg-primary text-primary-foreground hover:bg-primary/90"),eM=(0,l.cn)("inline-flex h-10 shrink-0 items-center justify-center rounded-md px-3 text-sm font-medium transition-colors sm:px-4","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:opacity-50","border border-input bg-background shadow-xs hover:border-primary hover:bg-primary hover:text-primary-foreground"),eC=(0,l.cn)("inline-flex h-10 shrink-0 items-center justify-center rounded-md px-3 text-sm font-medium transition-colors sm:px-4","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:opacity-50","bg-primary text-primary-foreground hover:bg-primary/90"),eL=` 68 .practice-card-demo .card-container { perspective: 1000px; cursor: pointer; margin-bottom: 0; flex-shrink: 0; } 69 .practice-card-demo .card { 70 display: grid; 71 width: 100%; 72 min-height: 170px; 73 transition: transform 0.6s; 74 transform-style: preserve-3d; 75 grid-template-columns: 1fr; 76 grid-template-rows: 1fr; 77 } 78 .practice-card-demo .card.flipped { transform: rotateY(180deg); } 79 .practice-card-demo .card-front, 80 .practice-card-demo .card-back { 81 grid-area: 1 / 1; 82 position: relative; 83 width: 100%; 84 backface-visibility: hidden; 85 background: var(--card); 86 color: var(--card-foreground); 87 border-radius: var(--radius); 88 border: 1px solid var(--border); 89 padding: 28px 20px; 90 display: flex; 91 flex-direction: column; 92 justify-content: center;
93 align-items: center; 94 gap: 12px; 95 box-shadow: var(--shadow-sm); 96 max-height: min(60dvh, 420px); 97 overflow-y: auto; 98 -webkit-overflow-scrolling: touch; 99 } 100 .practice-card-demo .card-front { min-height: 170px; } 101 .practice-card-demo .card-back { 102 min-height: 150px; 103 transform: rotateY(180deg); 104 } 105 .practice-card-demo .word-display { font-size: clamp(1.5rem, 4.5vw, 2.25rem); font-weight: 700; text-align: center; word-break: break-word; line-height: 1.15; } 106 .practice-card-demo .definition { font-size: 15px; line-height: 1.55; text-align: center; margin-top: 4px; max-width: 100%; } 107 .practice-card-demo .tap-hint { font-size: 13px; color: var(--muted-foreground); margin-top: 8px; opacity: 0.9; text-align: center; } 108 .practice-card-demo .card-edit-fab { 109 position: absolute; 110 bottom: 8px; 111 right: 8px; 112 width: 24px; 113 height: 24px; 114 display: flex; 115 align-items: center; 116 justify-content: center; 117 border-radius: var(--radius-md); 118 border: 1px solid var(--border); 119 background: var(--card); 120 color: var(--foreground); 121 box-shadow: var(--shadow-sm); 122 cursor: pointer; 123 padding: 0; 124 transition: filter 0.2s, background 0.2s; 125 } 126 .practice-card-demo .card-edit-fab:hover { background: var(--muted); filter: brightness(1.02); } 127 .practice-card-demo .card-edit-fab .practice-ms-icon { 128 font-family: "Material Symbols Outlined"; 129 font-weight: normal; 130 font-style: normal; 131 font-size: 13px; 132 line-height: 1; 133 font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; 134 -webkit-font-smoothing: antialiased; 135 } 136 .practice-card-demo .actions { display: flex; gap: 12px; width: 100%; flex-shrink: 0; } 137 .practice-card-demo .practice-edit-overlay { 138 position: fixed; 139 inset: 0; 140 background: oklch(0 0 0 / 0.45); 141 display: flex; 142 align-items: flex-start; 143 justify-content: center; 144 z-index: 100000; 145 overflow-y: auto; 146 -webkit-overflow-scrolling: touch; 147 padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 148 max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); 149 padding-top: max(24px, env(safe-area-inset-top, 0px)); 150 } 151 .practice-card-demo .practice-edit-modal { 152 width: min(92vw, 540px); 153 max-height: min(calc(100dvh - 48px), 900px); 154 overflow-y: auto; 155 margin-top: 5dvh; 156 margin-bottom: 24px; 157 border: 1px solid var(--border); 158 background: var(--card); 159 color: var(--card-foreground); 160 border-radius: var(--radius); 161 padding: 16px; 162 box-shadow: var(--shadow-lg); 163 font-family: var(--font-sans); 164 position: relative; 165 pointer-events: auto; 166 } 167 .practice-card-demo .practice-edit-modal h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; } 168 .practice-card-demo .practice-edit-modal textarea { 169 width: 100%; 170 box-sizing: border-box; 171 border: 1px solid var(--border); 172 border-radius: var(--radius-md); 173 padding: 10px 12px; 174 font-size: 14px; 175 font-family: var(--font-sans); 176 background: var(--background); 177 color: var(--foreground); 178 min-height: 96px; 179 resize: vertical; 180 } 181 .practice-card-demo .practice-edit-modal .practice-field-label { font-size: 12px; color: var(--muted-foreground); margin: 10px 0 6px; display: block; } 182 .practice-card-demo .practice-edit-modal .practice-modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; } 183`;function eR({className:e,...t}){let{locale:i,t:r}=(0,b.useLanguage)(),n=(0,c.useMemo)(()=>(0,eS.hostedStudyUiStrings)(i),[i]),s=(0,c.useId)(),a=`${s}-definition`,[u,d]=(0,c.useState)(!1),[h,m]=(0,c.useState)(!1),[p,f]=(0,c.useState)(""),[g,v]=(0,c.useState)(!1),[y,x]=(0,c.useState)(""),[w,j]=(0,c.useState)(!1),[P,k]=(0,c.useState)(!1),T=(0,c.useRef)(null),S=(0,c.useCallback)(()=>{T.current&&(clearTimeout(T.current),T.current=null)},[]),A=(0,c.useCallback)(()=>{S(),k(!0),T.current=setTimeout(()=>{k(!1),T.current=null},5e3)},[S]),E=(0,c.useCallback)(()=>{A()},[A]),N=!w&&!g&&!P;return(0,c.useEffect)(()=>{(0,c.startTransition)(()=>d(!0))},[]),(0,c.useEffect)(()=>{(0,c.startTransition)(()=>{f(r("marketing.practiceDemoCardDefinition"))})},[i,r]),(0,c.useEffect)(()=>
183{if(!N)return;let e=window.setInterval(()=>{m(e=>!e)},3e3);return()=>clearInterval(e)},[N]),(0,c.useEffect)(()=>{if("u"<typeof document)return;let e="practice-card-demo-material-symbols-edit";if(document.getElementById(e))return;let t=document.createElement("link");t.id=e,t.rel="stylesheet",t.href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&icon_names=edit_square",document.head.appendChild(t)},[]),(0,o.jsxs)("div",{onPointerEnter:()=>j(!0),onPointerLeave:()=>{j(!1),A()},...t,className:t&&null!=t.className&&t.className||(0,l.cn)("practice-card-demo page-g-half flex min-h-[300px] w-full min-w-0 flex-col items-center justify-center rounded-xl border border-border bg-background px-3 sm:px-5",e)||"",children:[(0,o.jsx)(eT.default,{id:eL.__hash,children:eL}),(0,o.jsxs)("div",{className:"flex w-full max-w-[600px] shrink-0 flex-col gap-3 pt-5 pb-5",children:[(0,o.jsx)("div",{onClick:()=>{E(),m(e=>!e)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),E(),m(e=>!e))},role:"button",tabIndex:0,"aria-label":n.tapToSee,className:"card-container",children:(0,o.jsxs)("div",{className:(0,l.cn)("card",h&&"flipped")||"",children:[(0,o.jsxs)("div",{className:"card-front",children:[(0,o.jsx)("div",{className:"word-display",children:eE}),(0,o.jsx)("div",{className:"tap-hint",children:n.tapToSee})]}),(0,o.jsxs)("div",{className:"card-back",children:[(0,o.jsx)("div",{className:"word-display",children:eE}),(0,o.jsx)("div",{className:"definition",children:p}),(0,o.jsx)("button",{type:"button","aria-label":n.editDefinitionBtn,title:n.editDefinitionBtn,onClick:e=>{e.stopPropagation(),E(),x(p),v(!0)},className:"card-edit-fab",children:(0,o.jsx)("span",{"aria-hidden":!0,className:"practice-ms-icon",children:"edit_square"})})]})]})}),(0,o.jsxs)("div",{className:"actions",children:[(0,o.jsx)("button",{type:"button",onClick:function(){E()},className:eN||"",children:n.keepPracticing}),(0,o.jsx)("button",{type:"button",onClick:function(){E()},className:eN||"",children:n.memorized})]})]}),u&&g&&"u">typeof document?(0,eA.createPortal)((0,o.jsx)("div",{className:"practice-card-demo",children:(0,o.jsx)("div",{onClick:()=>{v(!1),A()},className:"practice-edit-overlay",children:(0,o.jsxs)("form",{onClick:e=>e.stopPropagation(),onSubmit:function(e){e.preventDefault(),f(y.trim()),v(!1),E()},className:"practice-edit-modal",children:[(0,o.jsx)("h3",{children:n.editWordAndDefinition}),(0,o.jsx)("label",{htmlFor:a,className:"practice-field-label",children:n.definitionLabel}),(0,o.jsx)("textarea",{id:a,value:y,onChange:e=>x(e.target.value),placeholder:n.enterDefinitionPlaceholder}),(0,o.jsxs)("div",{className:"practice-modal-actions",children:[(0,o.jsx)("button",{type:"button",onClick:()=>{let e;return e=encodeURIComponent(`${eE} ${n.definitionSuffix}`),void window.open(`https://www.google.com/search?q=${e}`,"_blank","noopener")},className:eM||"",children:n.searchOnGoogle}),(0,o.jsx)("button",{type:"button",onClick:()=>{v(!1),E()},className:eM||"",children:n.cancel}),(0,o.jsx)("button",{type:"submit",className:eC||"",children:n.save})]})]})})}),document.body):null]})}let eD=[{num:5,mode:"pages"},{num:10,mode:"minutes"},{num:3,mode:"pages"}];function eV(e){return Number.isNaN(e)?1:Math.min(999,Math.max(1,Math.round(e)))}let eF={left:0,top:0,width:0,height:0};function eI({className:e,...t}){let{locale:i,t:r}=(0,b.useLanguage)(),n=(0,c.useId)(),s=(0,c.useId)(),[a,u]=(0,c.useState)("pages"),[d,h]=(0,c.useState)("5"),[m,p]=(0,c.useState)(!1),[f,g]=(0,c.useState)(!1),[v,y]=(0,c.useState)(!1),x=(0,c.useRef)(null),w=(0,c.useRef)(null),j=(0,c.useRef)(0),[P,k]=(0,c.useState)(0),T=(0,c.useRef)(null),S=(0,c.useRef)(null),A=(0,c.useRef)(null),[E,N]=(0,c.useState)(eF),M=r("marketing.practiceScheduleEvery"),C=r("marketing.schedulePagesMode"),L=r("marketing.scheduleMinutesMode"),R=r("marketing.practiceScheduleModeAria"),D=r("marketing.practiceIntervalHint"),V=(0,c.useCallback)(()=>{let e=T.current,t="pages"===a?S.current:A.current;e&&t&&0!==t.offsetWidth&&0!==t.offsetHeight&&N({left:t.offsetLeft,top:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight})},[a]);(0,c.useLayoutEffect)(()=>{V();let e=T.current;if(!e)return;let t=new ResizeObserver(()=>{V()});t.observe(e);let i=()=>V();window.addEventListener("resize",i);let r=!1;return"u">typeof document&&document.fonts?.ready&&document.fonts.ready.then(()=>{r||V()}),()=>{r=!0,t.disconnect(),window.removeEventListener("resize",i)}},[V,i,C,L]);let F=(0,c.useCallback)(()=>{x.current&&(clearTimeout(x.current),x.current=null)},[]),I=(0,c.useCallback)(()=>{F(),y(!0),x.current=setTimeout(()=>{y(!1),x.current=null},5e3)},[F]),B=(0,c.useCallback)(()=>{w.current?.(),w.current=null},[]),U=(0,c.useCallback)((e,t)=>{B();let i=!1;return w.current=()=>{i=!0},t(""),(async()=>{for(let r=1;r<=e.length;r++){if(i||(await new Promise(e=>setTimeout(e,110)),i))return;t(e.slice(0,r))}})()},[B]),O=!m&&!f&&!v;(0,c.useEffect)(()=>
183{if(!O)return void B();let e=!1,t=j.current%eD.length,i=eD[t];return(async()=>{u(i.mode),await U(String(i.num),t=>{e||h(t)}),e||(await new Promise(e=>{setTimeout(e,2800)}),e||(j.current+=1,k(e=>e+1)))})(),()=>{e=!0,B()}},[O,P,B,U]);let $=()=>{I()},W=e=>{I(),u(e)};return(0,o.jsx)("div",{className:(0,l.cn)("page-g-half flex aspect-video min-h-0 w-full min-w-0 items-center justify-center rounded-xl border border-border bg-background p-4 sm:p-6",e),onPointerEnter:()=>p(!0),onPointerLeave:()=>{p(!1),I()},...t,children:(0,o.jsxs)("div",{className:"flex w-full min-w-0 max-w-md flex-col items-center gap-4",children:[(0,o.jsx)("label",{id:n,htmlFor:s,className:"text-center text-base font-medium leading-snug text-foreground",children:M}),(0,o.jsxs)("div",{className:"flex min-h-12 w-full flex-wrap items-center justify-center gap-3",children:[(0,o.jsx)("input",{id:s,type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off","aria-labelledby":n,title:D,className:(0,l.cn)("h-12 w-[5.25rem] min-w-[5.25rem] shrink-0 rounded-[calc(var(--radius)-2px)] border border-border bg-muted px-3 py-2 text-center font-sans text-base tabular-nums text-foreground","outline-none ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"),value:d,onChange:e=>{I();let t=e.target.value.replace(/\D/g,"");""===t?h(""):h(String(eV(Number(t))))},onFocus:()=>{g(!0),F(),y(!1)},onKeyDown:$,onBlur:()=>{g(!1),h(e=>String(eV(Number(e||"1")))),I()},onPointerDown:$}),(0,o.jsxs)("div",{ref:T,className:"relative inline-flex h-14 shrink-0 items-stretch rounded-[calc(var(--radius)-2px)] border border-border bg-muted/90 p-1.5",role:"group","aria-label":R,children:[(0,o.jsx)("span",{"aria-hidden":!0,className:(0,l.cn)("pointer-events-none absolute rounded-md bg-primary shadow-sm transition-[left,top,width,height] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-[left,width]",0===E.width&&"opacity-0"),style:{left:E.left,top:E.top,width:E.width,height:E.height}}),(0,o.jsx)("button",{ref:S,type:"button",className:(0,l.cn)("relative z-10 shrink-0 rounded-md px-5 py-2.5 text-center font-sans text-base font-semibold whitespace-nowrap transition-colors","pages"===a?"text-primary-foreground":"text-muted-foreground"),"aria-pressed":"pages"===a,onPointerDown:$,onClick:()=>W("pages"),children:C}),(0,o.jsx)("button",{ref:A,type:"button",className:(0,l.cn)("relative z-10 shrink-0 rounded-md px-5 py-2.5 text-center font-sans text-base font-semibold whitespace-nowrap transition-colors","minutes"===a?"text-primary-foreground":"text-muted-foreground"),"aria-pressed":"minutes"===a,onPointerDown:$,onClick:()=>W("minutes"),children:L})]})]})]})})}let eB=["Manabu Neko","å¦ã¶ç«"];function eU(e){return new Promise(t=>setTimeout(t,e))}function eO({className:e,...t}){let{t:i}=(0,b.useLanguage)(),r=(0,c.useId)(),[n,s]=(0,c.useState)(!1),[a,u]=(0,c.useState)(!1),[d,h]=(0,c.useState)(!1),m=(0,c.useRef)(null),[p,f]=(0,c.useState)(""),[g,v]=(0,c.useState)(""),y=(0,c.useRef)(null),x=i("marketing.wordAdderPlaceholder"),w=i("marketing.wordAdderSubmit"),j=(0,c.useCallback)(()=>{m.current&&(clearTimeout(m.current),m.current=null)},[]),P=(0,c.useCallback)(()=>{j(),h(!0),m.current=setTimeout(()=>{h(!1),m.current=null},5e3)},[j]),k=(0,c.useCallback)(()=>{P()},[P]),T=!n&&!a&&!d&&""===p.trim(),S=(0,c.useCallback)(()=>{y.current?.(),y.current=null},[]);return(0,c.useEffect)(()=>{if(!T){S(),(0,c.startTransition)(()=>{v("")});return}let e=!1;return y.current=()=>{e=!0},(async()=>{let t=0;for(;!e;){let i=eB[t%eB.length];for(let t=1;t<=i.length;t++){if(e)return;v(i.slice(0,t)),await eU(75)}if(e)return;await eU(1600);for(let t=i.length-1;t>=0;t--){if(e)return;v(i.slice(0,t)),await eU(42)}if(e)return;t+=1}})(),()=>{e=!0,y.current=null}},[T,S]),(0,o.jsx)("div",{className:(0,l.cn)("page-g-half flex aspect-video min-h-0 w-full min-w-0 flex-col items-center justify-center rounded-xl border border-border bg-background p-4 sm:p-6",e),onPointerEnter:()=>s(!0),onPointerLeave:()=>{s(!1),P()},...t,children:(0,o.jsx)("div",{className:"flex w-full min-w-0 max-w-md flex-col items-stretch gap-3",children:(0,o.jsxs)("section",{className:"adder rounded-xl",onFocusCapture:()=>{u(!0),j(),h(!1)},onBlurCapture:e=>{let t=e.relatedTarget;e.currentTarget.contains(t)||(u(!1),P())},children:[(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("textarea",{id:r,rows:3,value:p,onChange:e=>{k(),f(e.target.value)},placeholder:a||""!==p.trim()?x:" ","aria-label":x,className:(0,l.cn)("relative z-0 min-h-20 w-full resize-y rounded-lg border border-border bg-background px-2.5 py-2.5 font-sans text-sm text-foreground shadow-xs placeholder:text-muted-foreground
183/70","outline-none ring-offset-background focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2")}),""!==p.trim()||a?null:(0,o.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1] overflow-hidden rounded-lg bg-transparent px-2.5 py-2.5 text-left font-sans text-sm leading-normal whitespace-pre-wrap text-muted-foreground/85",children:g})]}),(0,o.jsx)("button",{type:"button",onClick:()=>{k()},className:(0,l.cn)("mt-2 w-full cursor-pointer rounded-lg border border-transparent px-2.5 py-2.5 font-sans text-[15px] font-semibold text-primary-foreground shadow-sm transition-all select-none","bg-primary hover:bg-primary/90 hover:shadow-md active:scale-[0.99] active:shadow-inner","outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"),children:w})]})})})}var e$=e.i(38339);e.i(47167);let eW=(0,c.createContext)({});function ez(e){let t=(0,c.useRef)(null);return null===t.current&&(t.current=e()),t.current}let eq=(0,c.createContext)(null);var e_=c;let eK=(0,c.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class eY extends e_.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function eH({children:e,isPresent:t}){let i=(0,e_.useId)(),r=(0,e_.useRef)(null),n=(0,e_.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,e_.useContext)(eK);return(0,e_.useInsertionEffect)(()=>{let{width:e,height:a,top:o,left:l}=n.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=i;let u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` 184 [data-motion-pop-id="${i}"] { 185 position: absolute !important; 186 width: ${e}px !important; 187 height: ${a}px !important; 188 top: ${o}px !important; 189 left: ${l}px !important; 190 } 191 `),()=>{document.head.removeChild(u)}},[t]),(0,o.jsx)(eY,{isPresent:t,childRef:r,sizeRef:n,children:e_.cloneElement(e,{ref:r})})}let eG=({children:e,initial:t,isPresent:i,onExitComplete:r,custom:n,presenceAffectsLayout:s,mode:a})=>{let l=ez(eX),u=(0,c.useId)(),d=(0,c.useCallback)(e=>
191{for(let t of(l.set(e,!0),l.values()))if(!t)return;r&&r()},[l,r]),h=(0,c.useMemo)(()=>({id:u,initial:t,isPresent:i,custom:n,onExitComplete:d,register:e=>(l.set(e,!1),()=>l.delete(e))}),s?[Math.random(),d]:[i,d]);return(0,c.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[i]),c.useEffect(()=>{i||l.size||!r||r()},[i]),"popLayout"===a&&(e=(0,o.jsx)(eH,{isPresent:i,children:e})),(0,o.jsx)(eq.Provider,{value:h,children:e})};function eX(){return new Map}function eZ(e=!0){let t=(0,c.useContext)(eq);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=t,s=(0,c.useId)();(0,c.useEffect)(()=>{e&&n(s)},[e]);let a=(0,c.useCallback)(()=>e&&r&&r(s),[s,r,e]);return!i&&r?[!1,a]:[!0]}let eQ=e=>e.key||"";function eJ(e){let t=[];return c.Children.forEach(e,e=>{(0,c.isValidElement)(e)&&t.push(e)}),t}let e0="u">typeof window,e1=e0?c.useLayoutEffect:c.useEffect,e2=({children:e,custom:t,initial:i=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:s="sync",propagate:a=!1})=>{let[l,u]=eZ(a),d=(0,c.useMemo)(()=>eJ(e),[e]),h=a&&!l?[]:d.map(eQ),m=(0,c.useRef)(!0),p=(0,c.useRef)(d),f=ez(()=>new Map),[g,v]=(0,c.useState)(d),[y,x]=(0,c.useState)(d);e1(()=>{m.current=!1,p.current=d;for(let e=0;e<y.length;e++){let t=eQ(y[e]);h.includes(t)?f.delete(t):!0!==f.get(t)&&f.set(t,!1)}},[y,h.length,h.join("-")]);let b=[];if(d!==g){let e=[...d];for(let t=0;t<y.length;t++){let i=y[t],r=eQ(i);h.includes(r)||(e.splice(t,0,i),b.push(i))}"wait"===s&&b.length&&(e=b),x(eJ(e)),v(d);return}let{forceRender:w}=(0,c.useContext)(eW);return(0,o.jsx)(o.Fragment,{children:y.map(e=>{let c=eQ(e),g=(!a||!!l)&&(d===y||h.includes(c));return(0,o.jsx)(eG,{isPresent:g,initial:(!m.current||!!i)&&void 0,custom:g?void 0:t,presenceAffectsLayout:n,mode:s,onExitComplete:g?void 0:()=>{if(!f.has(c))return;f.set(c,!0);let e=!0;f.forEach(t=>{t||(e=!1)}),e&&(null==w||w(),x(p.current),a&&(null==u||u()),r&&r())},children:e},c)})})};function e5(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let e3=e=>Array.isArray(e);function e4(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let r=0;r<i;r++)if(t[r]!==e[r])return!1;return!0}function e6(e){return"string"==typeof e||Array.isArray(e)}function e9(e){let t=[{},{}];return null==e||e.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function e8(e,t,i,r){if("function"==typeof t){let[n,s]=e9(r);t=t(void 0!==i?i:e.custom,n,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,s]=e9(r);t=t(void 0!==i?i:e.custom,n,s)}return t}function e7(e,t,i){let r=e.getProps();return e8(r,t,void 0!==i?i:r.custom,e)}let te=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tt=["initial",...te];function ti(e,t){return e?e[t]||e.default||e:void 0}let tr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tn=new Set(tr),ts=new Set(["width","height","top","left","right","bottom",...tr]),ta=e=>e3(e)?e[e.length-1]||0:e,to=e=>e,tl=["read","resolveKeyframes","update","preRender","render","postRender"];function tu(e,t){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,a=tl.reduce((e,t)=>(e[t]=function(e){let t=new Set,i=new Set,r=!1,n=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(t){s.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,n=!1,a=!1)=>{let o=a&&r?t:i;return n&&s.add(e),o.has(e)||o.add(e),e},cancel:e=>{i.delete(e),s.delete(e)},process:e=>{if(a=e,r){n=!0;return}r=!0,[t,i]=[i,t],t.forEach(o),t.clear(),r=!1,n&&(n=!1,l.process(e))}};return l}(s),e),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=a,m=()=>{let s=performance.now();i=!1,n.delta=r?1e3/60:Math.max(Math.min(s-n.timestamp,40),1),n.timestamp=s,n.isProcessing=!0,o.process(n),l.process(n),u.process(n),c.process(n),d.process(n),h.process(n),n.isProcessing=!1,i&&t&&(r=!1,e(m))};return{schedule:tl.reduce((t,s)=>{let o=a[s];return t[s]=(t,s=!1,a=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||e(m)),o.schedule(t,s,a)),t},{}),cancel:e=>{for(let t=0;t<tl.length;t++)a[tl[t]].cancel(e)},state:n,steps:a}}let{schedule:tc,cancel:td,state:th,steps:tm}=tu("u">typeof requestAnimationFrame?requestAnimationFrame:to,!0);function tp(){t=void 0}let tf={now:()=>(void 0===t&&tf.set(th.isProcessing?th.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tp)}};function tg(e,t){-1===e.indexOf(t)&&e.push(t)}function tv(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class ty{constructor(){this.subscriptions=[]}add(e){return tg(this.subscriptions,e),()=>tv(this.subscriptions,e)}notify(e,t,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class tx{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let i=tf.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tf.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ty);let i=this.events[e].add(t);return"change"===e?()=>{i(),tc.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return r&&r.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=tf.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tb(e,t){return new tx(e,t)}let tw=e=>!!(e&&e.getVelocity);function tj(e,t){let i=e.getValue("willChange");if(tw(i)&&i.add)return i.add(t)}let tP=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tk="data-"+tP("framerAppearId");function tT(e){let t;return()=>(void 0===t&&(t=e()),t)}let tS=tT(()=>void 0!==window.ScrollTimeline);class tA{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=t}attachTimeline(e,t){let i=this.animations.map(i=>tS()&&i.attachTimeline?i.attachTimeline(e):"function"==typeof t?t(i):void 0);return()=>
191{i.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class tE extends tA{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}let tN=e=>1e3*e;function tM(e){return"function"==typeof e}function tC(e,t){e.timeline=t,e.onfinish=null}let tL=e=>Array.isArray(e)&&"number"==typeof e[0],tR,tD=(i=tT(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>{var e;return null!=(e=tR)?e:i()}),tV=(e,t,i)=>{let r=t-e;return 0===r?1:(i-e)/r},tF=(e,t,i=10)=>{let r="",n=Math.max(Math.round(t/i),2);for(let t=0;t<n;t++)r+=e(tV(0,n-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`},tI=([e,t,i,r])=>`cubic-bezier(${e}, ${t}, ${i}, ${r})`,tB={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tI([0,.65,.55,1]),circOut:tI([.55,0,1,.45]),backIn:tI([.31,.01,.66,-.59]),backOut:tI([.33,1.53,.69,.99])},tU=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function tO(e,t,i,r){return e===t&&i===r?to:n=>0===n||1===n?n:tU(function(e,t,i,r,n){let s,a,o=0;do(s=tU(a=t+(i-t)/2,r,n)-e)>0?i=a:t=a;while(Math.abs(s)>1e-7&&++o<12)return a}(n,0,1,e,i),t,r)}let t$=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tW=e=>t=>1-e(1-t),tz=tO(.33,1.53,.69,.99),tq=tW(tz),t_=t$(tq),tK=e=>(e*=2)<1?.5*tq(e):.5*(2-Math.pow(2,-10*(e-1))),tY=e=>1-Math.sin(Math.acos(e)),tH=tW(tY),tG=t$(tY),tX=(e,t,i)=>i>t?t:i<e?e:i,tZ={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},tQ={...tZ,transform:e=>tX(0,1,e)},tJ={...tZ,default:1},t0=e=>Math.round(1e5*e)/1e5,t1=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,t2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,t5=(e,t)=>i=>!!("string"==typeof i&&t2.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),t3=(e,t,i)=>r=>{if("string"!=typeof r)return r;let[n,s,a,o]=r.match(t1);return{[e]:parseFloat(n),[t]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},t4={...tZ,transform:e=>Math.round(tX(0,255,e))},t6={test:t5("rgb","red"),parse:t3("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:r=1})=>"rgba("+t4.transform(e)+", "+t4.transform(t)+", "+t4.transform(i)+", "+t0(tQ.transform(r))+")"},t9={test:t5("#"),parse:function(e){let t="",i="",r="",n="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),r=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),r=e.substring(3,4),n=e.substring(4,5),t+=t,i+=i,r+=r,n+=n),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:t6.transform},t8=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),t7=t8("deg"),ie=t8("%"),it=t8("px"),ii=t8("vh"),ir=t8("vw"),is={...ie,parse:e=>ie.parse(e)/100,transform:e=>ie.transform(100*e)},ia={test:t5("hsl","hue"),parse:t3("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:r=1})=>"hsla("+Math.round(e)+", "+ie.transform(t0(t))+", "+ie.transform(t0(i))+", "+t0(tQ.transform(r))+")"},io={test:e=>t6.test(e)||t9.test(e)||ia.test(e),parse:e=>t6.test(e)?t6.parse(e):ia.test(e)?ia.parse(e):t9.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?t6.transform(e):ia.transform(e)},il=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,iu="number",ic="color",id=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ih(e){let t=e.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,a=t.replace(id,e=>(io.test(e)?(r.color.push(s),n.push(ic),i.push(io.parse(e))):e.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(e)):(r.number.push(s),n.push(iu),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:a,indexes:r,types:n}}function im(e){return ih(e).values}function ip(e){let{split:t,types:i}=ih(e),r=t.length;return e=>{let n="";for(let s=0;s<r;s++)if(n+=t[s],void 0!==e[s]){let t=i[s];t===iu?n+=t0(e[s]):t===ic?n+=io.transform(e[s]):n+=e[s]}return n}}let ig=e=>"number"==typeof e?0:e,iv={test:function(e){var t,i;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(t1))?void 0:t.length)||0)+((null==(i=e.match(il))?void 0:i.length)||0)>0},parse:im,createTransformer:ip,getAnimatableNone:function(e){let t=im(e);return ip(e)(t.map(ig))}},iy=new Set(["brightness","contrast","saturate","opacity"]);function ix(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=i.match(t1)||[];if(!r)return e;let n=i.replace(r,""),s=+!!iy.has(t);return r!==i&&(s*=100),t+"("+s+n+")"}let ib=/\b([a-z-]*)\(.*?\)/gu,iw={...iv,getAnimatableNone:e=>{let t=e.match(ib);return t?t.map(ix).join(" "):e}},ij={...tZ,transform:Math.round},iP={borderWidth:it,borderTopWidth:it,borderRightWidth:it,borderBottomWidth:it,borderLeftWidth:it,borderRadius:it,radius:it,borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomRightRadius:it,borderBottomLeftRadius:it,width:it,maxWidth:it,height:it,maxHeight:it,top:it,right:it,bottom:it,left:it,padding:it,paddingTop:it,paddingRight:it,paddingBottom:it,paddingLeft:it,margin:it,marginTop:it,marginRight:it,marginBottom:it,marginLeft:it,backgroundPositionX:it,backgroundPositionY:it,rotate:t7,rotateX:t7,rotateY:t7,rotateZ:t7,scale:tJ,scaleX:tJ,scaleY:tJ,scaleZ:tJ,skew:t7,skewX:t7,skewY:t7,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:tQ,originX:is,originY:is,originZ:it,zIndex:ij,size:it,fillOpacity:tQ,strokeOpacity:tQ,numOctaves:ij},ik={...iP,color:io,backgroundColor:io,outlineColor:io,fill:io,stroke:io,borderColor:io,borderTopColor:io,borderRightColor:io,borderBottomColor:io,borderLeftColor:io,filter:iw,WebkitFilter:iw},iT=e=>ik[e];function iS(e,t){let i=iT(e);return i!==iw&&(i=iv),i.getAnimatableNone?i.getAnimatableNone(t):void 0}
191let iA=new Set(["auto","none","0"]),iE=e=>e===tZ||e===it,iN=(e,t)=>parseFloat(e.split(", ")[t]),iM=(e,t)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/u);if(n)return iN(n[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?iN(t[1],e):0}},iC=new Set(["x","y","z"]),iL=tr.filter(e=>!iC.has(e)),iR={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:iM(4,13),y:iM(5,14)};iR.translateX=iR.x,iR.translateY=iR.y;let iD=new Set,iV=!1,iF=!1;function iI(){if(iF){let e=Array.from(iD).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,r=(t=[],iL.forEach(i=>{let r=e.getValue(i);void 0!==r&&(t.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),t);r.length&&(i.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{var r;null==(r=e.getValue(t))||r.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}iF=!1,iV=!1,iD.forEach(e=>e.complete()),iD.clear()}function iB(){iD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(iF=!0)})}class iU{constructor(e,t,i,r,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(iD.add(this),iV||(iV=!0,tc.read(iB),tc.resolveKeyframes(iI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:r}=this;for(let n=0;n<e.length;n++)if(null===e[n])if(0===n){let n=null==r?void 0:r.get(),s=e[e.length-1];if(void 0!==n)e[0]=n;else if(i&&t){let r=i.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===n&&r.set(e[0])}else e[n]=e[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),iD.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,iD.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let iO=e=>t=>"string"==typeof t&&t.startsWith(e),i$=iO("--"),iW=iO("var(--"),iz=e=>!!iW(e)&&iq.test(e.split("/*")[0].trim()),iq=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,i_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,iK=e=>t=>t.test(e),iY=[tZ,it,ie,t7,ir,ii,{test:e=>"auto"===e,parse:e=>e}],iH=e=>iY.find(iK(e));class iG extends iU{constructor(e,t,i,r,n){super(e,t,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let r=e[i];if("string"==typeof r&&iz(r=r.trim())){let n=function e(t,i,r=1){to(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,s]=function(e){let t=i_.exec(e);if(!t)return[,];let[,i,r,n]=t;return[`--${null!=i?i:r}`,n]}(t);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return iz(s)?e(s,i,r+1):s}(r,t.current);void 0!==n&&(e[i]=n),i===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ts.has(i)||2!==e.length)return;let[r,n]=e,s=iH(r),a=iH(n);if(s!==a)if(iE(s)&&iE(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)})(e[t])&&i.push(t);i.length&&function(e,t,i){let r,n=0;for(;n<e.length&&!r;){let t=e[n];"string"==typeof t&&!iA.has(t)&&ih(t).values.length&&(r=e[n]),n++}if(r&&i)for(let n of t)e[n]=iS(i,r)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=iR[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(i,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:i,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let n=t.getValue(i);n&&n.jump(this.measuredOrigin,!1);let s=r.length-1,a=r[s];r[s]=iR[i](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEac
191h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let iX=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(iv.test(e)||"0"===e)&&!e.startsWith("url(")),iZ=e=>null!==e;function iQ(e,{repeat:t,repeatType:i="loop"},r){let n=e.filter(iZ),s=t&&"loop"!==i&&t%2==1?0:n.length-1;return s&&void 0!==r?r:n[s]}class iJ{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=tf.now(),this.options={autoplay:e,delay:t,type:i,repeat:r,repeatDelay:n,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(iB(),iI()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=tf.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:n,delay:s,onComplete:a,onUpdate:o,isGenerator:l}=this.options;if(!l&&!function(e,t,i,r){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=iX(n,t),o=iX(s,t);return to(a===o,`You are trying to animate ${t} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||tM(i))&&r)}(e,i,r,n))if(s)this.options.duration=0;else{o&&o(iQ(e,this.options,t)),a&&a(),this.resolveFinishedPromise();return}let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function i0(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let i1=(e,t,i)=>e+(t-e)*i;function i2(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function i5(e,t){return i=>i>0?t:e}let i3=(e,t,i)=>{let r=e*e,n=i*(t*t-r)+r;return n<0?0:Math.sqrt(n)},i4=[t9,t6,ia];function i6(e){let t=i4.find(t=>t.test(e));if(to(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let i=t.parse(e);return t===ia&&(i=function({hue:e,saturation:t,lightness:i,alpha:r}){e/=360,i/=100;let n=0,s=0,a=0;if(t/=100){let r=i<.5?i*(1+t):i+t-i*t,o=2*i-r;n=i2(o,r,e+1/3),s=i2(o,r,e),a=i2(o,r,e-1/3)}else n=s=a=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(i)),i}let i9=(e,t)=>{let i=i6(e),r=i6(t);if(!i||!r)return i5(e,t);let n={...i};return e=>(n.red=i3(i.red,r.red,e),n.green=i3(i.green,r.green,e),n.blue=i3(i.blue,r.blue,e),n.alpha=i1(i.alpha,r.alpha,e),t6.transform(n))},i8=(e,t)=>i=>t(e(i)),i7=(...e)=>e.reduce(i8),re=new Set(["none","hidden"]);function rt(e,t){return i=>i1(e,t,i)}function ri(e){return"number"==typeof e?rt:"string"==typeof e?iz(e)?i5:io.test(e)?i9:rs:Array.isArray(e)?rr:"object"==typeof e?io.test(e)?i9:rn:i5}function rr(e,t){let i=[...e],r=i.length,n=e.map((e,i)=>ri(e)(e,t[i]));return e=>{for(let t=0;t<r;t++)i[t]=n[t](e);return i}}function rn(e,t){let i={...e,...t},r={};for(let n in i)void 0!==e[n]&&void 0!==t[n]&&(r[n]=ri(e[n])(e[n],t[n]));return e=>{for(let t in r)i[t]=r[t](e);return i}}let rs=(e,t)=>{let i=iv.createTransformer(t),r=ih(e),n=ih(t);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return to(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),i5(e,t);if(re.has(e)&&!n.values.length||re.has(t)&&!r.values.length)return re.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return i7(rr(function(e,t){var i;let r=[],n={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){let a=t.types[s],o=e.indexes[a][n[a]],l=null!=(i=e.values[o])?i:0;r[s]=l,n[a]++}return r}(r,n),n.values),i)};function ra(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?i1(e,t,i):ri(e)(e,t)}function ro(e,t,i){var r,n;let s=Math.max(t-5,0);return r=i-e(s),(n=t-s)?1e3/n*r:0}let rl=.01,ru=2,rc=.005,rd=.5;function rh(e,t){return e*Math.sqrt(1-t*t)}let rm=["duration","bounce"],rp=["stiffness","damping","mass"];function rf(e,t){return t.some(t=>void 0!==e[t])}function rg(e=.3,t=.3){let i,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:n,restDelta:s}=r,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:h,velocity:m,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rf(e,rp)&&rf(e,rm))if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),r=i*i,n=2*tX(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:n}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:r=1}){let n,s;to(e<=tN(10),"Spring duration must be 10 seconds or less");let a=1-t;
191a=tX(.05,1,a),e=tX(.01,10,e/1e3),a<1?(n=t=>{let r=t*a,n=r*e;return .001-(r-i)/rh(t,a)*Math.exp(-n)},s=t=>{let r=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-r),l=rh(Math.pow(t,2),a);return(r*i+i-s)*o*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let r=i;for(let i=1;i<12;i++)r-=e(r)/t(r);return r}(n,s,5/e);if(e=tN(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),f=m||0,g=c/(2*Math.sqrt(u*d)),v=o-a,y=Math.sqrt(u/d)/1e3,x=5>Math.abs(v);if(n||(n=x?rl:ru),s||(s=x?rc:rd),g<1){let e=rh(y,g);i=t=>o-Math.exp(-g*y*t)*((f+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===g)i=e=>o-Math.exp(-y*e)*(v+(f+y*v)*e);else{let e=y*Math.sqrt(g*g-1);i=t=>{let i=Math.exp(-g*y*t),r=Math.min(e*t,300);return o-i*((f+g*y*v)*Math.sinh(r)+e*v*Math.cosh(r))/e}}let b={calculatedDuration:p&&h||null,next:e=>{let t=i(e);if(p)l.done=e>=h;else{let r=0;g<1&&(r=0===e?tN(f):ro(i,e,t));let a=Math.abs(o-t)<=s;l.done=Math.abs(r)<=n&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(i0(b),2e4),t=tF(t=>b.next(e*t).value,e,30);return e+"ms "+t}};return b}function rv({keyframes:e,velocity:t=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){let d,h,m=e[0],p={done:!1,value:m},f=i*t,g=m+f,v=void 0===a?g:a(g);v!==g&&(f=v-m);let y=e=>-f*Math.exp(-e/r),x=e=>v+y(e),b=e=>{let t=y(e),i=x(e);p.done=Math.abs(t)<=u,p.value=p.done?v:i},w=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;d=e,h=rg({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:ro(x,e,p.value),damping:n,stiffness:s,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,b(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||b(e),p)}}}let ry=tO(.42,0,1,1),rx=tO(0,0,.58,1),rb=tO(.42,0,.58,1),rw={linear:to,easeIn:ry,easeInOut:rb,easeOut:rx,circIn:tY,circInOut:tG,circOut:tH,backIn:tq,backInOut:t_,backOut:tz,anticipate:tK},rj=e=>{if(tL(e)){to(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,i,r,n]=e;return tO(t,i,r,n)}return"string"==typeof e?(to(void 0!==rw[e],`Invalid easing type '${e}'`),rw[e]):e};function rP({duration:e=300,keyframes:t,times:i,ease:r="easeInOut"}){var n;let s,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(rj):rj(r),o={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:r,mixer:n}={}){let s=e.length;if(to(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let r=[],n=i||ra,s=e.length-1;for(let i=0;i<s;i++){let s=n(e[i],e[i+1]);t&&(s=i7(Array.isArray(t)?t[i]||to:t,s)),r.push(s)}return r}(t,r,n),l=o.length,u=i=>{if(a&&i<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(i<e[r+1]);r++);let n=tV(e[r],e[r+1],i);return o[r](n)};return i?t=>u(tX(e[0],e[s-1],t)):u}((n=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let r=1;r<=t;r++){let n=tV(0,t,r);e.push(i1(i,1,n))}}(s=[0],t.length-1),s),n.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||rb).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let rk=e=>{let t=({timestamp:t})=>e(t);return{start:()=>tc.update(t,!0),stop:()=>td(t),now:()=>th.isProcessing?th.timestamp:tf.now()}},rT={decay:rv,inertia:rv,tween:rP,keyframes:rP,spring:rg},rS=e=>e/100;class rA extends iJ{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};const{name:t,motionValue:i,element:r,keyframes:n}=this.options,s=(null==r?void 0:r.KeyframeResolver)||iU,a=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new s(n,a,t,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,i,{type:r="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,l=tM(r)?r:rT[r]||rP;l!==rP&&"number"!=typeof e[0]&&(t=i7(rS,ra(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===a&&(i=l({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=i0(u));let{calculatedDuration:c}=u,d=c+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-s}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:i}=this;if(!i){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:n,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:o,c
191alculatedDuration:l,totalDuration:u,resolvedDuration:c}=i;if(null===this.startTime)return n.next(0);let{delay:d,repeat:h,repeatType:m,repeatDelay:p,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=n;if(h){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,h+1))%2&&("reverse"===m?(i=1-i,p&&(i-=p/c)):"mirror"===m&&(x=s)),y=tX(0,1,i)*c}let b=v?{done:!1,value:o[0]}:x.next(y);a&&(b.value=a(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return j&&void 0!==r&&(b.value=iQ(o,this.options,r)),f&&f(b.value),j&&this.finish(),b}get duration(){let{resolved:e}=this;return e?e.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(e){e=tN(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=rk,onPlay:t,startTime:i}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(e=this.currentTime)?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let rE=new Set(["opacity","clipPath","filter","transform"]),rN=tT(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),rM={anticipate:tK,backInOut:t_,circInOut:tG};class rC extends iJ{constructor(e){super(e);const{name:t,motionValue:i,element:r,keyframes:n}=this.options;this.resolver=new iG(n,(e,t)=>this.onKeyframesResolved(e,t),t,i,r),this.resolver.scheduleResolve()}initPlayback(e,t){var i;let{duration:r=300,times:n,ease:s,type:a,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if("string"==typeof s&&tD()&&s in rM&&(s=rM[s]),tM((i=this.options).type)||"spring"===i.type||!function e(t){return!!("function"==typeof t&&tD()||!t||"string"==typeof t&&(t in tB||tD())||tL(t)||Array.isArray(t)&&t.every(e))}(i.ease)){let{onComplete:t,onUpdate:i,motionValue:o,element:l,...u}=this.options,c=function(e,t){let i=new rA({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},n=[],s=0;for(;!r.done&&s<2e4;)n.push((r=i.sample(s)).value),s+=10;return{times:void 0,keyframes:n,duration:s-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,n=c.times,s=c.ease,a="keyframes"}let c=function(e,t,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:a="loop",ease:o="easeInOut",times:l}={}){let u={[t]:i};l&&(u.offset=l);let c=function e(t,i){if(t)return"function"==typeof t&&tD()?tF(t,i):tL(t)?tI(t):Array.isArray(t)?t.map(t=>e(t,i)||tB.easeOut):tB[t]}(o,n);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"})}(o.owner.current,l,e,{...this.options,duration:r,times:n,ease:s});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(tC(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:i}=this.options;o.set(iQ(e,this.options,t)),i&&i(),this.cancel(),this.resolveFinishedProm
191ise()},{animation:c,duration:r,times:n,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return t/1e3}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(t.currentTime||0)/1e3}set time(e){let{resolved:t}=this;if(!t)return;let{animation:i}=t;i.currentTime=tN(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:i}=t;i.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return to;let{animation:i}=t;tC(i,e)}else this.pendingTimeline=e;return to}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:i,duration:r,type:n,ease:s,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:o,element:l,...u}=this.options,c=new rA({...u,keyframes:i,duration:r,type:n,ease:s,times:a,isGenerator:!0}),d=tN(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:o}=this.options;o&&o(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:i,repeatDelay:r,repeatType:n,damping:s,type:a}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return rN()&&i&&rE.has(i)&&!o&&!l&&!r&&"mirror"!==n&&0!==s&&"inertia"!==a}}let rL={type:"spring",stiffness:500,damping:25,restSpeed:10},rR={type:"keyframes",duration:.8},rD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rV=(e,t,i,r={},n,s)=>a=>{let o=ti(r,e)||{},l=o.delay||r.delay||0,{elapsed:u=0}=r;u-=tN(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:n};!function({when:e,delay:t,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(c={...c,...((e,{keyframes:t})=>t.length>2?rR:tn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rL:rD)(e,c)}),c.duration&&(c.duration=tN(c.duration)),c.repeatDelay&&(c.repeatDelay=tN(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0===c.delay&&(d=!0)),d&&!s&&void 0!==t.get()){let e=iQ(c.keyframes,o);if(void 0!==e)return tc.update(()=>{c.onUpdate(e),c.onComplete()}),new tE([])}return!s&&rC.supports(c)?new rC(c):new rA(c)};function rF(e,t,{delay:i=0,transitionOverride:r,type:n}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(a=r);let u=[],c=n&&e.animationState&&e.animationState.getState()[n];for(let t in l){let r=e.getValue(t,null!=(s=e.latestValues[t])?s:null),n=l[t];if(void 0===n||c&&function({protectedKeys:e,needsAnimating:t},i){let r=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,r}(c,t))continue;let o={delay:i,...ti(a||{},t)},d=!1;if(window.MotionHandoffAnimation){let i=e.props[tk];if(i){let e=window.MotionHandoffAnimation(i,t,tc);null!==e&&(o.startTime=e,d=!0)}}tj(e,t),r.start(rV(t,r,n,e.shouldReduceMotion&&ts.has(t)?{type:!1}:o,e,d));let h=r.animation;h&&u.push(h)}return o&&Promise.all(u).then(()=>{tc.update(()=>{o&&function(e,t){let{transitionEnd:i={},transition:r={},...n}=e7(e,t)||{};for(let t in n={...n,...i}){let i=ta(n[t]);e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,tb(i))}}(e,o)})}),u}function rI(e,t,i={}){var r;let n=e7(e,t,"exit"===i.type?null==(r=e.presenceContext)?void 0:r.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let a=n?()=>Promise.all(rF(e,n,i)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:o}=s;return function(e,t,i=0,r=0,n=1,s){let a=[],o=(e.variantChildren.size-1)*r,l=1===n?(e=0)=>e*r:(e=0)=>o-e*r;
191return Array.from(e.variantChildren).sort(rB).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(rI(e,t,{...s,delay:i+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,n+r,a,o,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([a(),o(i.delay)]);{let[e,t]="beforeChildren"===l?[a,o]:[o,a];return e().then(()=>t())}}function rB(e,t){return e.sortNodePosition(t)}let rU=tt.length,rO=[...te].reverse(),r$=te.length;function rW(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rz(){return{animate:rW(!0),whileInView:rW(),whileHover:rW(),whileTap:rW(),whileDrag:rW(),whileFocus:rW(),exit:rW()}}class rq{constructor(e){this.isMounted=!1,this.node=e}update(){}}let r_=0,rK={x:!1,y:!1},rY=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rH(e,t,i,r={passive:!0}){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i)}function rG(e){return{point:{x:e.pageX,y:e.pageY}}}function rX(e,t,i,r){return rH(e,t,e=>rY(e)&&i(e,rG(e)),r)}let rZ=(e,t)=>Math.abs(e-t);class rQ{constructor(e,t,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=r1(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(rZ(e.x,t.x)**2+rZ(e.y,t.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:a}=th;this.history.push({...s,timestamp:a});let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rJ(t,this.transformPagePoint),tc.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=r1("pointercancel"===e.type?this.lastMoveEventInfo:rJ(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),r&&r(e,s)},!rY(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.contextWindow=r||window;const s=rJ(rG(e),this.transformPagePoint),{point:a}=s,{timestamp:o}=th;this.history=[{...a,timestamp:o}];const{onSessionStart:l}=t;l&&l(e,r1(s,this.history)),this.removeListeners=i7(rX(this.contextWindow,"pointermove",this.handlePointerMove),rX(this.contextWindow,"pointerup",this.handlePointerUp),rX(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),td(this.updatePoint)}}function rJ(e,t){return t?{point:t(e.point)}:e}function r0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r1({point:e},t){return{point:e,delta:r0(e,r2(t)),offset:r0(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,r=r2(e);for(;t>=0&&(i=e[t],!(r.timestamp-i.timestamp>tN(.1)));)t--;if(!i)return{x:0,y:0};let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t)}}function r2(e){return e[e.length-1]}function r5(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function r3(e){return e.max-e.min}function r4(e,t,i,r=.5){e.origin=r,e.originPoint=i1(t.min,t.max,e.origin),e.scale=r3(i)/r3(t),e.translate=i1(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function r6(e,t,i,r){r4(e.x,t.x,i.x,r?r.originX:void 0),r4(e.y,t.y,i.y,r?r.originY:void 0)}function r9(e,t,i){e.min=i.min+t.min,e.max=e.min+r3(t)}function r8(e,t,i){e.min=t.min-i.min,e.max=e.min+r3(t)}function r7(e,t,i){r8(e.x,t.x,i.x),r8(e.y,t.y,i.y)}function ne(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function nt(e,t){let i=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,r]=[r,i]),{min:i,max:r}}function ni(e,t,i){return{min:nr(e,t),max:nr(e,i)}}function nr(e,t){return"number"==typeof e?e:e[t]||0}let nn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ns=()=>({x:nn(),y:nn()}),na=()=>({min:0,max:0}),no=()=>({x:na(),y:na()});function nl(e){return[e("x"),e("y")]}function nu({top:e,left:t,right:i,bottom:r}){return{x:{min:t,max:i},y:{min:e,max:r}}}function nc(e){return void 0===e||1===e}
191function nd({scale:e,scaleX:t,scaleY:i}){return!nc(e)||!nc(t)||!nc(i)}function nh(e){return nd(e)||nm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nm(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function np(e,t,i,r,n){return void 0!==n&&(e=r+n*(e-r)),r+i*(e-r)+t}function nf(e,t=0,i=1,r,n){e.min=np(e.min,t,i,r,n),e.max=np(e.max,t,i,r,n)}function ng(e,{x:t,y:i}){nf(e.x,t.translate,t.scale,t.originPoint),nf(e.y,i.translate,i.scale,i.originPoint)}function nv(e,t){e.min=e.min+t,e.max=e.max+t}function ny(e,t,i,r,n=.5){let s=i1(e.min,e.max,n);nf(e,t,i,s,r)}function nx(e,t){ny(e.x,t.x,t.scaleX,t.scale,t.originX),ny(e.y,t.y,t.scaleY,t.scale,t.originY)}function nb(e,t){return nu(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let nw=({current:e})=>e?e.ownerDocument.defaultView:null,nj=new WeakMap;class nP{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=no(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=e=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rG(e).point)},n=(e,t)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(rK[e])return null;else return rK[e]=!0,()=>{rK[e]=!1};return rK.x||rK.y?null:(rK.x=rK.y=!0,()=>{rK.x=rK.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nl(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ie.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[e];r&&(t=r3(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&tc.postRender(()=>n(e,t)),tj(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(e,t)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&s(e,t)},a=(e,t)=>this.stop(e,t),o=()=>nl(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new rQ(e,{onSessionStart:r,onStart:n,onMove:s,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:nw(this.visualElement)})}stop(e,t){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&tc.postRender(()=>n(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:r}=this.getProps();if(!i||!nk(e,r,this.currentDirection))return;let n=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},r){return void 0!==t&&e<t?e=r?i1(t,e,r.min):Math.max(e,t):void 0!==i&&e>i&&(e=r?i1(i,e,r.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),n.set(s)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,n=this.constraints;t&&r5(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:i,bottom:r,right:n}){return{x:ne(e.x,i,n),y:ne(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:ni(e,"left","right"),y:ni(e,"to
191p","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&nl(e=>{var t,i;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=r.layoutBox[e],i=this.constraints[e],n={},void 0!==i.min&&(n.min=i.min-t.min),void 0!==i.max&&(n.max=i.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!r5(t))return!1;let r=t.current;to(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=function(e,t,i){let r=nb(e,i),{scroll:n}=t;return n&&(nv(r.x,n.offset.x),nv(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:nt(e.x,s.x),y:nt(e.y,s.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=nu(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(nl(a=>{if(!nk(a,t,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return tj(this.visualElement,e),i.start(rV(e,i,0,t,this.visualElement,!1))}stopAnimation(){nl(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nl(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){nl(t=>{let{drag:i}=this.getProps();if(!nk(t,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(t);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[t];n.set(e[t]-i1(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!r5(t)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nl(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,n;let s,a,o,l=t.get();r[e]=(i={min:l,max:l},n=this.constraints[e],s=.5,a=r3(i),(o=r3(n))>a?s=tV(n.min,n.max-a,i.min):a>o&&(s=tV(i.min,i.max-o,n.min)),tX(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),nl(t=>{if(!nk(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:s}=this.constraints[t];i.set(i1(n,s,r[t]))})}addListeners(){if(!this.visualElement.current)return;nj.set(this.visualElement,this);let e=rX(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();r5(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",t);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tc.read(t);let n=rH(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nl(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{n(),e(),r(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:a}}}function nk(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let nT=e=>(t,i)=>{e&&tc.postRender(()=>e(t,i))};var nS=c;let nA=(0,c.createContext)({}),nE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nM={correct:(e,t)=>
191{if(!t.target)return e;if("string"==typeof e)if(!it.test(e))return e;else e=parseFloat(e);let i=nN(e,t.target.x),r=nN(e,t.target.y);return`${i}% ${r}%`}},nC={},{schedule:nL,cancel:nR}=tu(queueMicrotask,!1);class nD extends nS.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=e;Object.assign(nC,nF),n&&(t.group&&t.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),nE.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||e.layoutDependency!==t||void 0===t?s.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?s.promote():s.relegate()||tc.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),nL.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nV(e){let[t,i]=eZ(),r=(0,nS.useContext)(eW);return(0,o.jsx)(nD,{...e,layoutGroup:r,switchLayoutGroup:(0,nS.useContext)(nA),isPresent:t,safeToRemove:i})}let nF={borderRadius:{...nM,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nM,borderTopRightRadius:nM,borderBottomLeftRadius:nM,borderBottomRightRadius:nM,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let r=iv.parse(e);if(r.length>5)return e;let n=iv.createTransformer(e),s=+("number"!=typeof r[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;r[0+s]/=a,r[1+s]/=o;let l=i1(a,o,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}},nI=(e,t)=>e.depth-t.depth;class nB{constructor(){this.children=[],this.isDirty=!1}add(e){tg(this.children,e),this.isDirty=!0}remove(e){tv(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nI),this.isDirty=!1,this.children.forEach(e)}}function nU(e){let t=tw(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let nO=["TopLeft","TopRight","BottomLeft","BottomRight"],n$=nO.length,nW=e=>"string"==typeof e?parseFloat(e):e,nz=e=>"number"==typeof e||it.test(e);function nq(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let n_=nY(0,.5,tH),nK=nY(.5,.95,to);function nY(e,t,i){return r=>r<e?0:r>t?1:i(tV(e,t,r))}function nH(e,t){e.min=t.min,e.max=t.max}function nG(e,t){nH(e.x,t.x),nH(e.y,t.y)}function nX(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nZ(e,t,i,r,n){return e-=t,e=r+1/i*(e-r),void 0!==n&&(e=r+1/n*(e-r)),e}function nQ(e,t,[i,r,n],s,a){!function(e,t=0,i=1,r=.5,n,s=e,a=e){if(ie.test(t)&&(t=parseFloat(t),t=i1(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=i1(s.min,s.max,r);e===s&&(o-=t),e.min=nZ(e.min,t,i,o,n),e.max=nZ(e.max,t,i,o,n)}(e,t[i],t[r],t[n],t.scale,s,a)}let nJ=["x","scaleX","originX"],n0=["y","scaleY","originY"];function n1(e,t,i,r){nQ(e.x,t,nJ,i?i.x:void 0,r?r.x:void 0),nQ(e.y,t,n0,i?i.y:void 0,r?r.y:void 0)}function n2(e){return 0===e.translate&&1===e.scale}function n5(e){return n2(e.x)&&n2(e.y)}function n3(e,t){return e.min===t.min&&e.max===t.max}function n4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function n6(e,t){return n4(e.x,t.x)&&n4(e.y,t.y)}function n9(e){return r3(e.x)/r3(e.y)}function n8(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class n7{constructor(){this.members=[]}add(e){tg(this.members,e),e.scheduleRender()}remove(e){if(tv(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&i.hide()}}
191exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let se={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},st="u">typeof window&&void 0!==window.MotionDebug,si=["","X","Y","Z"],sr={visibility:"hidden"},sn=0;function ss(e,t,i,r){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function sa({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(e={},i=null==t?void 0:t()){this.id=sn++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,st&&(se.totalNodes=se.resolvedTargetDeltas=se.recalculatedProjection=0),this.nodes.forEach(su),this.nodes.forEach(sg),this.nodes.forEach(sv),this.nodes.forEach(sc),st&&window.MotionDebug.record(se)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nB)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ty
191),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||r)&&(this.isLayoutDirty=!0),e){let i,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{let e,t;this.root.updateBlockedByResize=!0,i&&i(),e=tf.now(),t=({timestamp:i})=>{let n=i-e;n>=250&&(td(t),r(n-250))},tc.read(t,!0),i=()=>td(t),nE.hasAnimatedSinceResize&&(nE.hasAnimatedSinceResize=!1,this.nodes.forEach(sf))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||sP,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!n6(this.targetLayout,r)||i,u=!t&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...ti(n,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||sf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,td(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sy),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let r=i.props[tk];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",tc,!(e||i))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sh);return}this.isUpdating||this.nodes.forEach(sm),this.isUpdating=!1,this.nodes.forEach(sp),this.nodes.forEach(so),this.nodes.forEach(sl),this.clearAllSnapshots();let e=tf.now();th.delta=tX(0,1e3/60,e-th.timestamp),th.timestamp=e,th.isProcessing=!0,tm.update.process(th),tm.preRender.process(th),tm.render.process(th),th.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nL.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sd),this.sharedNodes.forEach(sx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tc.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tc.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=no(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!n5(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&(t||nh(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),r=this.removeElementScroll(i);return e&&(r=this.removeTransform(r)),sS((t=r).x),sS(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return no();let i=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(sE))){let{scroll:e}=this.root;e&&(nv(i.x,e.offset.x),nv(i.y,e.offset.y))}return i}removeElementScroll(e){var t;let i=no();if(nG(i,e),null==(t=this.scroll)?void 0:t.wasRoot)return i;for(let t=0;t<this.path.length;t++){let r=this.path[t],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&nG(i,e),nv(i.x,n.offset.x),nv(i.y,n.offset.y))}return i}applyTransform(e,t=!1){let i=no();nG(i,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nx(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nh(r.latestValues)&&nx(i,r.latestValues)}return nh(this.latestValues)&&nx(i,this.latestValues),i}removeTransform(e){let t=no();nG(t,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!nh(i.latestValues))continue;nd(i.latestValues)&&i.updateSnapshot();let r=no();nG(r,i.measurePageBox()),n1(t,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return nh(this.latestValues)&&n1(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==th.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,i,r,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
191haredProjectionDirty);let a=!!this.resumingFrom||this!==s;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:o,layoutId:l}=this.options;if(this.layout&&(o||l)){if(this.resolvedRelativeTargetAt=th.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=no(),this.relativeTargetOrigin=no(),r7(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nG(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=no(),this.targetWithTransforms=no()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,n=this.relativeParent.target,r9(i.x,r.x,n.x),r9(i.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nG(this.target,this.layout.layoutBox),ng(this.target,this.targetDelta)):nG(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=no(),this.relativeTargetOrigin=no(),r7(this.relativeTargetOrigin,this.target,e.target),nG(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}st&&se.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nd(this.parent.latestValues)||nm(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),i=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===th.timestamp&&(r=!1),r)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;nG(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(e,t,i,r=!1){let n,s,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&nx(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ng(e,s)),r&&nh(n.latestValues)&&nx(e,n.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=no());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nX(this.prevProjectionDelta.x,this.projectionDelta.x),nX(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),r6(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&n8(this.projectionDelta.x,this.prevProjectionDelta.x)&&n8(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),st&&se.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ns(),this.projectionDelta=ns(),this.projectionDeltaWithTransform=ns()}setAnimationOrigin(e,t=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},a=ns();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=no(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(sj));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(sb(a.x,e.x,r),sb(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,m,p,f,g;r7(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=o,g=r,sw(m.x,p.x,f.x,g),sw(m.y,p.y,f.y,g),i&&(u=this.relativeTarget,h=i,n3(u.x,h.x)&&n3(u.y,h.y))&&(this.isProjectionDirty=!1),i||(i=no()),nG(i,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,i,r,n,s){n?(e.opacity=i1(0,void 0!==i.opacity?i.opacity:1,n_(r)),e.o
191pacityExit=i1(void 0!==t.opacity?t.opacity:1,0,nK(r))):s&&(e.opacity=i1(void 0!==t.opacity?t.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<n$;n++){let s=`border${nO[n]}Radius`,a=nq(t,s),o=nq(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||nz(a)===nz(o)?(e[s]=Math.max(i1(nW(a),nW(o),r),0),(ie.test(o)||ie.test(a))&&(e[s]+="%")):e[s]=o)}(t.rotate||i.rotate)&&(e.rotate=i1(t.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(td(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tc.update(()=>{var t;let i;nE.hasAnimatedSinceResize=!0,this.currentAnimation=(t={...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=tw(0)?0:tb(0)).start(rV("",i,1e3,t)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:r,latestValues:n}=e;if(t&&i&&r){if(this!==e&&this.layout&&r&&sA(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||no();let t=r3(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let r=r3(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+r}nG(t,i),nx(t,n),r6(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new n7),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let r={};i.z&&ss("z",e,r,this.animationValues);for(let t=0;t<si.length;t++)ss(`rotate${si[t]}`,e,r,this.animationValues),ss(`skew${si[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return sr;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=nU(null==e?void 0:e.pointerEvents)||"",r.transform=n?n(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nU(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!nh(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,i){let r="",n=e.x.translate/t.x,s=e.y.translate/t.y,a=(null==i?void 0:i.z)||0;if((n||s||a)&&(r=`translate3d(${n}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:n,rotateY:s,skewX:a,skewY:o}=i;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),o&&(r+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l}
191)`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),n&&(r.transform=n(a,r.transform));let{x:o,y:l}=this.projectionDelta;for(let e in r.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!=(i=null!=(t=a.opacity)?t:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,nC){if(void 0===a[e])continue;let{correct:t,applyTo:i}=nC[e],n="none"===r.transform?a[e]:t(a[e],s);if(i){let e=i.length;for(let t=0;t<e;t++)r[i[t]]=n}else r[e]=n}return this.options.layoutId&&(r.pointerEvents=s===this?nU(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(sh),this.root.sharedNodes.clear()}}}function so(e){e.updateLayout()}function sl(e){var t;let i=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:n}=e.options,s=i.source!==e.layout.source;"size"===n?nl(e=>{let r=s?i.measuredBox[e]:i.layoutBox[e],n=r3(r);r.min=t[e].min,r.max=r.min+n}):sA(n,i.layoutBox,t)&&nl(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],a=r3(t[r]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=ns();r6(a,t,i.layoutBox);let o=ns();s?r6(o,e.applyTransform(r,!0),i.measuredBox):r6(o,t,i.layoutBox);let l=!n5(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let a=no();r7(a,i.layoutBox,n.layoutBox);let o=no();r7(o,t,s.layoutBox),n6(a,o)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function su(e){st&&se.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function sc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sd(e){e.clearSnapshot()}function sh(e){e.clearMeasurements()}function sm(e){e.isLayoutDirty=!1}function sp(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sg(e){e.resolveTargetDelta()}function sv(e){e.calcProjection()}function sy(e){e.resetSkewAndRotation()}function sx(e){e.removeLeadSnapshot()}function sb(e,t,i){e.translate=i1(t.translate,0,i),e.scale=i1(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function sw(e,t,i,r){e.min=i1(t.min,i.min,r),e.max=i1(t.max,i.max,r)}function sj(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sP={duration:.45,ease:[.4,0,.1,1]},sk=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sT=sk("applewebkit/")&&!sk("chrome/")?Math.round:to;function sS(e){e.min=sT(e.min),e.max=sT(e.max)}function sA(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(n9(t)-n9(i)))}function sE(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}let sN=sa({attachResizeListener:(e,t)=>rH(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sM={current:void 0},sC=sa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sM.current){let e=new sN({});e.mount(window),e.setOptions({layoutScroll:!0}),sM.current=e}return sM.current},resetTransform:(e,t)=>
191{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sL(e,t){let i=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),r=new AbortController;return[i,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function sR(e){return t=>{"touch"===t.pointerType||rK.x||rK.y||e(t)}}function sD(e,t,i){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&tc.postRender(()=>n(t,rG(t)))}let sV=(e,t)=>!!t&&(e===t||sV(e,t.parentElement)),sF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sI=new WeakSet;function sB(e){return t=>{"Enter"===t.key&&e(t)}}function sU(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sO(e){return rY(e)&&!(rK.x||rK.y)}function s$(e,t,i){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&tc.postRender(()=>n(t,rG(t)))}let sW=new WeakMap,sz=new WeakMap,sq=e=>{let t=sW.get(e.target);t&&t(e)},s_=e=>{e.forEach(sq)},sK={some:0,all:1},sY=(0,c.createContext)({strict:!1}),sH=(0,c.createContext)({});function sG(e){return e5(e.animate)||tt.some(t=>e6(e[t]))}function sX(e){return!!(sG(e)||e.variants)}function sZ(e){return Array.isArray(e)?e.join(" "):e}let sQ={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},sJ={};for(let e in sQ)sJ[e]={isEnabled:t=>sQ[e].some(e=>!!t[e])};let s0=Symbol.for("motionComponentSymbol"),s1=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s2(e){if("string"!=typeof e||e.includes("-"));else if(s1.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let s5=e=>(t,i)=>{let r=(0,c.useContext)(sH),n=(0,c.useContext)(eq),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:i},r,n,s){let a={latestValues:function(e,t,i,r){let n={},s=r(e,{});for(let e in s)n[e]=nU(s[e]);let{initial:a,animate:o}=e,l=sG(e),u=sX(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let c=!!i&&!1===i.initial,d=(c=c||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!e5(d)){let t=Array.isArray(d)?d:[d];for(let i=0;i<t.length;i++){let r=e8(e,t[i]);if(r){let{transitionEnd:e,transition:t,...i}=r;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(r,n,s,e),renderState:t()};return i&&(a.onMount=e=>i({props:r,current:e,...a}),a.onUpdate=e=>i(e)),a})(e,t,r,n);return i?s():ez(s)},s3=(e,t)=>t&&"number"==typeof e?t.transform(e):e,s4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s6=tr.length;function s9(e,t,i){let{style:r,vars:n,transformOrigin:s}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(tn.has(e)){a=!0;continue}if(i$(e)){n[e]=i;continue}{let t=s3(i,iP[e]);e.startsWith("origin")?(o=!0,s[e]=t):r[e]=t}}if(!t.transform&&(a||i?r.transform=function(e,t,i){let r="",n=!0;for(let s=0;s<s6;s++){let a=tr[s],o=e[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||i){let e=s3(o,iP[a]);if(!l){n=!1;let t=s4[a]||a;r+=`${t}(${e}) `}i&&(t[a]=e)}}return r=r.trim(),i?r=i(t,n?"":r):n&&(r="none"),r}(t,e.transform,i):r.transform&&(r.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:i=0}=s;r.transformOrigin=`${e} ${t} ${i}`}}let s8={offset:"stroke-dashoffset",array:"stroke-dasharray"},s7={offset:"strokeDashoffset",array:"strokeDasharray"};function ae(e,t,i){return"string"==typeof e?e:it.transform(t+i*e)}function at(e,{attrX:t,attrY:i,attrScale:r,originX:n,originY:s,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u},c,d){let h,m;
191if(s9(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:f,dimensions:g}=e;p.transform&&(g&&(f.transform=p.transform),delete p.transform),g&&(void 0!==n||void 0!==s||f.transform)&&(h=ae(void 0!==n?n:.5,g.x,g.width),m=ae(void 0!==s?s:.5,g.y,g.height),f.transformOrigin=`${h} ${m}`),void 0!==t&&(p.x=t),void 0!==i&&(p.y=i),void 0!==r&&(p.scale=r),void 0!==a&&function(e,t,i=1,r=0,n=!0){e.pathLength=1;let s=n?s8:s7;e[s.offset]=it.transform(-r);let a=it.transform(t),o=it.transform(i);e[s.array]=`${a} ${o}`}(p,a,o,l,!1)}let ai=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ar=()=>({...ai(),attrs:{}}),an=e=>"string"==typeof e&&"svg"===e.toLowerCase();function as(e,{style:t,vars:i},r,n){for(let s in Object.assign(e.style,t,n&&n.getProjectionStyles(r)),i)e.style.setProperty(s,i[s])}let aa=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ao(e,t,i,r){for(let i in as(e,t,void 0,r),t.attrs)e.setAttribute(aa.has(i)?i:tP(i),t.attrs[i])}function al(e,{layout:t,layoutId:i}){return tn.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!nC[e]||"opacity"===e)}function au(e,t,i){var r;let{style:n}=e,s={};for(let a in n)(tw(n[a])||t.style&&tw(t.style[a])||al(a,e)||(null==(r=null==i?void 0:i.getValue(a))?void 0:r.liveStyle)!==void 0)&&(s[a]=n[a]);return s}function ac(e,t,i){let r=au(e,t,i);for(let i in e)(tw(e[i])||tw(t[i]))&&(r[-1!==tr.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}let ad=["x","y","width","height","cx","cy","r"],ah={useVisualState:s5({scrapeMotionValuesFromProps:ac,createRenderState:ar,onUpdate:({props:e,prevProps:t,current:i,renderState:r,latestValues:n})=>{if(!i)return;let s=!!e.drag;if(!s){for(let e in n)if(tn.has(e)){s=!0;break}}if(!s)return;let a=!t;if(t)for(let i=0;i<ad.length;i++){let r=ad[i];e[r]!==t[r]&&(a=!0)}a&&tc.read(()=>{try{r.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}tc.render(()=>{at(r,n,an(i.tagName),e.transformTemplate),ao(i,r)})})}})},am={useVisualState:s5({scrapeMotionValuesFromProps:au,createRenderState:ai})};function ap(e,t,i){for(let r in t)tw(t[r])||al(r,i)||(e[r]=t[r])}let af=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 ag(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||af.has(e)}let av=e=>!ag(e);try{(n=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default)&&(av=e=>e.startsWith("on")?!ag(e):n(e))}catch(e){}let ay={current:null},ax={current:!1},ab=[...iY,io,iv],aw=new WeakMap,aj=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class aP{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=iU,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tf.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,tc.render(this.render,!1,!0))};const{latestValues:o,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!n,this.isControllingVariants=sG(t),this.isVariantNode=sX(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==o[e]&&tw(t)&&t.set(o[e],!1)}}mount(e){this.current=e,aw.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
191h((e,t)=>this.bindToMotionValue(t,e)),ax.current||function(){if(ax.current=!0,e0)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ay.current=e.matches;e.addListener(t),t()}else ay.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ay.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in aw.delete(this.current),this.projection&&this.projection.unmount(),td(this.notifyUpdate),td(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let i;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=tn.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&tc.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),s(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in sJ){let t=sJ[e];if(!t)continue;let{isEnabled:i,Feature:r}=t;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):no()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<aj.length;t++){let i=aj[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=e["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(e,t,i){for(let r in t){let n=t[r],s=i[r];if(tw(n))e.addValue(r,n);else if(tw(s))e.addValue(r,tb(n,{owner:e}));else if(s!==n)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(r);e.addValue(r,tb(void 0!==t?t:n,{owner:e}))}}for(let r in i)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=tb(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){var i;let r=void 0===this.latestValues[e]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,e))?i:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){let i,n;if("string"==typeof r&&(i=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(n=r,/^0[^.\s]+$/u.test(n))))r=parseFloat(r);else{let i;i=r,!ab.find(iK(i))&&iv.test(t)&&(r=iS(e,t))}this.setBaseTarget(e,tw(r)?r.get():r)}return tw(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let i,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=e8(this.props,r,null==(t=this.presenceContext)?void 0:t.custom);n&&(i=n[e])}if(r&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||tw(n)?void 0!==this.initialValues[e]&&void 0===i?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new ty),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ak extends aP{constructor(){super(...arguments),this.KeyframeResolver=iG}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;tw(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class aT extends ak{constructor(){super(...arguments),this.type="html",this.renderInstance=as}readValueFromInstance(e,t){if(tn.has(t)){let e=iT(t);return e&&e.default||0}{let i=window.getComputedStyle(e),r=(i$(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nb(e,t)}build(e,t,i){s9(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return au(e,t,i)}}class aS extends ak{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=no}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(tn.has(t)){let e=iT(t);return e&&e.default||0}return t=aa.has(t)?t:tP(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return ac(e,t,i)}build(e,t,i){at(e,t,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,i,r){ao(e,t,i,r)}mount(e){this.isSVGTag=an(e.tagName),super.mount(e)}}let aA=function(e){if("u"<typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(i,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((s={animation:{Feature:class extends rq{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rI(e,t,i)));else if("string"==typeof t)r=rI(e,t,i);else{let n="function"==typeof t?e7(e,t,i.custom):t;r=Promise.all(rF(e,n,i))}return r.then(()=>
191{e.notify("AnimationComplete",t)})})(e,t,i))),i=rz(),r=!0,n=t=>(i,r)=>{var n;let s=e7(e,r,"exit"===t?null==(n=e.presenceContext)?void 0:n.custom:void 0);if(s){let{transition:e,transitionEnd:t,...r}=s;i={...i,...r,...t}}return i};function s(s){let{props:a}=e,o=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<rU;e++){let r=tt[e],n=t.props[r];(e6(n)||!1===n)&&(i[r]=n)}return i}(e.parent)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<r$;t++){var h,m;let p=rO[t],f=i[p],g=void 0!==a[p]?a[p]:o[p],v=e6(g),y=p===s?f.isActive:null;!1===y&&(d=t);let x=g===o[p]&&g!==a[p]&&v;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...c},!f.isActive&&null===y||!g&&!f.prevProp||e5(g)||"boolean"==typeof g)continue;let b=(h=f.prevProp,"string"==typeof(m=g)?m!==h:!!Array.isArray(m)&&!e4(m,h)),w=b||p===s&&f.isActive&&!x&&v||t>d&&v,j=!1,P=Array.isArray(g)?g:[g],k=P.reduce(n(p),{});!1===y&&(k={});let{prevResolvedValues:T={}}=f,S={...T,...k},A=t=>{w=!0,u.has(t)&&(j=!0,u.delete(t)),f.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in S){let t=k[e],i=T[e];if(!c.hasOwnProperty(e))(e3(t)&&e3(i)?e4(t,i):t===i)?void 0!==t&&u.has(e)?A(e):f.protectedKeys[e]=!0:null!=t?A(e):u.add(e)}f.prevProp=g,f.prevResolvedValues=k,f.isActive&&(c={...c,...k}),r&&e.blockInitialAnimation&&(w=!1);let E=!(x&&b)||j;w&&E&&l.push(...P.map(e=>({animation:e,options:{type:p}})))}if(u.size){let t={};u.forEach(i=>{let r=e.getBaseTarget(i),n=e.getValue(i);n&&(n.liveStyle=!0),t[i]=null!=r?r:null}),l.push({animation:t})}let p=!!l.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){var n;if(i[t].isActive===r)return Promise.resolve();null==(n=e.variantChildren)||n.forEach(e=>{var i;return null==(i=e.animationState)?void 0:i.setActive(t,r)}),i[t].isActive=r;let a=s(t);for(let e in i)i[e].protectedKeys={};return a},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=rz(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();e5(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}},exit:{Feature:class extends rq{constructor(){super(...arguments),this.id=r_++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends rq{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:a}=i,o={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:sK[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=t?i:r;n&&n(e)};return e=this.node.current,t=function({root:e,...t}){let i=e||document;sz.has(i)||sz.set(i,{});let r=sz.get(i),n=JSON.stringify(t);return r[n]||(r[n]=new IntersectionObserver(s_,{root:e,...t})),r[n]}(o),sW.set(e,l),t.observe(e),()=>{sW.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends rq{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[r,n,s]=sL(e,i),a=e=>{let r=e.currentTarget;if(!sO(e)||sI.has(r))return;sI.add(r);let s=t(e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),sO(e)&&sI.has(r)&&(sI.delete(r),"function"==typeof s&&s(e,{success:t}))},o=e=>{a(e,i.useGlobalTarget||sV(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};
191return r.forEach(e=>{sF.has(e.tagName)||-1!==e.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(i.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let r=sB(()=>{if(sI.has(i))return;sU(i,"down");let e=sB(()=>{sU(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sU(i,"cancel"),t)});i.addEventListener("keydown",r,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),t)})(e,n),n)}),s}(e,e=>(s$(this.node,e,"Start"),(e,{success:t})=>s$(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends rq{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=i7(rH(this.node.current,"focus",()=>this.onFocus()),rH(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends rq{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[r,n,s]=sL(e,i),a=sR(e=>{let{target:i}=e,r=t(e);if("function"!=typeof r||!i)return;let s=sR(e=>{r(e),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,n)});return r.forEach(e=>{e.addEventListener("pointerenter",a,n)}),s}(e,e=>(sD(this.node,e,"Start"),e=>sD(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends rq{constructor(){super(...arguments),this.removePointerDownListener=to}onPointerDown(e){this.session=new rQ(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nw(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:nT(e),onStart:nT(t),onMove:i,onEnd:(e,t)=>{delete this.session,r&&tc.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=rX(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends rq{constructor(e){super(e),this.removeGroupControls=to,this.removeListeners=to,this.controls=new nP(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||to}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:sC,MeasureLayout:nV},layout:{ProjectionNode:sC,MeasureLayout:nV}},a=(e,t)=>s2(e)?new aS(t):new aT(t,{allowProjection:e!==c.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function({preloadedFeatures:e,createVisualElement:t,useRender:i,useVisualState:r,Component:n}){var s,a;function l(e,s){var a;let l,u={...(0,c.useContext)(eK),...e,layoutId:function({layoutId:e}){let t=(0,c.useContext)(eW).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:d}=u,h=function(e){let{initial:t,animate:i}=function(e,t){if(sG(e)){let{initial:t,animate:i}=e;return{initial:!1===t||e6(t)?t:void 0,animate:e6(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,c.useContext)(sH));return(0,c.useMemo)(()=>({initial:t,animate:i}),[sZ(t),sZ(i)])}(e),m=r(e,d);if(!d&&e0){(0,c.useContext)(sY).strict;let e=function(e){let{drag:t,layout:i}=sJ;if(!t&&!i)return{};let r={...t,...i};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==i?void 0:i.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=e.MeasureLayout,h.visualElement=function(e,t,i,r,n){var s,a;let{visualElement:o}=(0,c.useContext)(sH),l=(0,c.useContext)(sY),u=(0,c.useContext)(eq),d=(0,c.useContext)(eK).reducedMotion,h=(0,c.useRef)(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));let m=h.current,p=(0,c.useContext)(nA);m&&!m.projection&&n&&("html"===m.type||"svg"===m.type)&&function(e,t,i,r){let{layoutId:n,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!a||o&&r5(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(h.current,i,n,p);let f=(0,c.useRef)(!1);(0,c.useInsertionEffect)(()=>{m&&f.current&&m.update(i,u)});let g=i[tk],v=(0,c.useRef)(!!g&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,g))&&(null==(a=window.MotionHasOptimisedAnimation)?void 0:a.call(window,g)));return e1(()=>{m&&(f.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),nL.render(m.render),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,c.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,g)}
191),v.current=!1))}),m}(n,m,u,t,e.ProjectionNode)}return(0,o.jsxs)(sH.Provider,{value:h,children:[l&&h.visualElement?(0,o.jsx)(l,{visualElement:h.visualElement,...u}):null,i(n,e,(a=h.visualElement,(0,c.useCallback)(e=>{e&&m.onMount&&m.onMount(e),a&&(e?a.mount(e):a.unmount()),s&&("function"==typeof s?s(e):r5(s)&&(s.current=e))},[a])),m,d,h.visualElement)]})}e&&function(e){for(let t in e)sJ[t]={...sJ[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof n?n:`create(${null!=(a=null!=(s=n.displayName)?s:n.name)?a:""})`}`;let u=(0,c.forwardRef)(l);return u[s0]=n,u}({...s2(e)?ah:am,preloadedFeatures:s,useRender:function(e=!1){return(t,i,r,{latestValues:n},s)=>{let a=(s2(t)?function(e,t,i,r){let n=(0,c.useMemo)(()=>{let i=ar();return at(i,t,an(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};ap(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let i,r,n={},s=(i=e.style||{},ap(r={},i,e),Object.assign(r,function({transformTemplate:e},t){return(0,c.useMemo)(()=>{let i=ai();return s9(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n})(i,n,s,t),o=function(e,t,i){let r={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&(av(n)||!0===i&&ag(n)||!t&&!ag(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}(i,"string"==typeof t,e),l=t!==c.Fragment?{...o,...a,ref:r}:{},{children:u}=i,d=(0,c.useMemo)(()=>tw(u)?u.get():u,[u]);return(0,c.createElement)(t,{...l,children:d})}}(t),createVisualElement:a,Component:e})}));function aE({text:e="ð¾",spacing:t=100,followMouseDirection:i=!0,baseRotation:r=0,tapBurstOnTouch:n=!1,tapBurstScale:s=1.4,tapBurstExitDuration:a=1.1,randomFloat:l=!0,exitDuration:u=.5,removalInterval:d=30,maxPoints:h=5}){let[m,p]=(0,c.useState)([]),[f,g]=(0,c.useState)(!1),v=(0,c.useRef)(Date.now()),y=(0,c.useRef)(null),x=(0,c.useRef)(0),b=(0,c.useRef)(0),w=(0,c.useRef)(t),j=(0,c.useRef)(0),P=(0,c.useRef)(0);return((0,c.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>g(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,c.useEffect)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||!window.matchMedia("(hover: hover) and (pointer: fine)").matches)return;let e=()=>Math.max(8,t+(6*Math.random()-3)),n=t=>{let n=t.clientX,s=t.clientY,a=y.current;if(!a){y.current={x:n,y:s},w.current=e();return}let o=n-a.x,l=s-a.y,u=Math.sqrt(o*o+l*l);if(u<=0)return;let c=180*Math.atan2(l,o)/Math.PI,d=i?c:0,m=c*Math.PI/180,f=-Math.sin(m),g=Math.cos(m);p(t=>{let c=[...t],m=0,p=b.current,v=w.current,y=!1,k=Date.now();for(;p+(u-m)>=v;){let t=(m+=v-p)/u,n=a.x+o*t,s=a.y+l*t,h=P.current%2==0?-1:1;P.current+=1;let b=n+6*f*h,w=s+6*g*h,T=i?d+r+10*h:0;c.push({id:j.current++,x:b,y:w,angle:T,side:h,source:"mouse",scale:1}),y=!0,x.current=k,p=0,v=e()}if(!y&&u>=2&&k-x.current>=110){let t=P.current%2==0?-1:1;P.current+=1;let a=i?d+r+10*t:0;c.push({id:j.current++,x:n+6*f*t,y:s+6*g*t,angle:a,side:t,source:"mouse",scale:1}),y=!0,x.current=k,p=0,v=e()}return b.current=p+=u-m,w.current=v,c.length>h?c.slice(c.length-h):c}),y.current={x:n,y:s},v.current=Date.now()};return window.addEventListener("mousemove",n,{passive:!0}),()=>{window.removeEventListener("mousemove",n),y.current=null,x.current=0,b.current=0,w.current=t}},[r,i,h,l,t]),(0,c.useEffect)(()=>{if(!n||!window.matchMedia("(hover: none), (pointer: coarse)").matches||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=e=>{if("touch"!==e.pointerType&&"pen"!==e.pointerType)return;let t=.5>Math.random()?1:2,i=Math.random()*Math.PI*2,n=180*i/Math.PI,o=Math.cos(i),l=Math.sin(i),u=-Math.sin(i),c=Math.cos(i);p(i=>{let d=[...i];for(let i=0;i<t;i++){let h=P.current%2==0?-1:1;P.current+=1;let m=(i-(t-1)/2)*10,p=e.clientX+o*m+8*u*h,f=e.clientY+l*m+8*c*h,g=n+r+8*h;
191d.push({id:j.current++,x:p,y:f,angle:g,side:h,source:"tap",scale:s,customExitDuration:a})}return d.length>h?d.slice(d.length-h):d}),v.current=Date.now()};return window.addEventListener("pointerdown",e,{passive:!0}),()=>window.removeEventListener("pointerdown",e)},[r,h,a,n,s]),(0,c.useEffect)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=window.setInterval(()=>{Date.now()-v.current>100&&p(e=>e.length>0?e.slice(1):e)},d);return()=>window.clearInterval(e)},[d]),f)?null:(0,o.jsx)("div",{className:"text-cursor-container","aria-hidden":!0,children:(0,o.jsx)("div",{className:"text-cursor-inner",children:(0,o.jsx)(e2,{children:m.map(t=>(0,o.jsx)(aA.div,{initial:{opacity:0,scale:t.scale,x:t.x,y:t.y,rotate:t.angle,translateX:"-50%",translateY:"-50%"},animate:{opacity:1,scale:t.scale,x:l?[t.x,t.x+1.5*t.side,t.x]:t.x,y:l?[t.y,t.y-1.5,t.y]:t.y,rotate:l?[t.angle,t.angle+2*t.side,t.angle]:t.angle,translateX:"-50%",translateY:"-50%"},exit:{opacity:0,scale:0,translateX:"-50%",translateY:"-50%"},transition:{opacity:{duration:t.customExitDuration??u,ease:"easeOut"},...l&&{x:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},y:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"},rotate:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"mirror"}}},className:"text-cursor-item",style:{left:0,top:0},children:e},t.id))})})})}let aN={USD:{monthly:4.5,yearly:26.99},AUD:{monthly:4.49,yearly:40.49},BRL:{monthly:9.9,yearly:89.1},CAD:{monthly:3.99,yearly:35.99},EUR:{monthly:2.99,yearly:26.99},GBP:{monthly:2.49,yearly:22.49},HKD:{monthly:23,yearly:207},IDR:{monthly:24900,yearly:224100},INR:{monthly:149,yearly:1341},JPY:{monthly:450,yearly:4e3},KRW:{monthly:3900,yearly:35100},MXN:{monthly:49,yearly:441},SGD:{monthly:3.98,yearly:35.82},THB:{monthly:79,yearly:711},TWD:{monthly:99,yearly:891}},aM={US:"USD",AU:"AUD",BR:"BRL",CA:"CAD",DE:"EUR",FR:"EUR",ES:"EUR",IT:"EUR",NL:"EUR",PT:"EUR",IE:"EUR",AT:"EUR",BE:"EUR",FI:"EUR",GB:"GBP",UK:"GBP",HK:"HKD",ID:"IDR",IN:"INR",JP:"JPY",KR:"KRW",MX:"MXN",SG:"SGD",TH:"THB",TW:"TWD"},aC={kind:"signup",plan:"free"};e.s(["default",0,function(){let{t:e}=(0,b.useLanguage)(),[t,i]=(0,c.useState)("USD");(0,c.useEffect)(()=>{i(function(){let e=Intl.DateTimeFormat().resolvedOptions().timeZone||"";if(e.startsWith("Asia/Tokyo"))return"JPY";if(e.startsWith("Asia/Seoul"))return"KRW";if(e.startsWith("Asia/Bangkok"))return"THB";if(e.startsWith("Asia/Jakarta"))return"IDR";if(e.startsWith("Asia/Kolkata"))return"INR";if(e.startsWith("Asia/Taipei"))return"TWD";if(e.startsWith("Asia/Singapore"))return"SGD";if(e.startsWith("Asia/Hong_Kong"))return"HKD";if(e.startsWith("Europe/London"))return"GBP";if(e.startsWith("Europe/"))return"EUR";let t=window.navigator.language?.split("-")[0]?.toLowerCase()||"";if("ja"===t)return"JPY";if("ko"===t)return"KRW";if("th"===t)return"THB";if("id"===t)return"IDR";if("hi"===t)return"INR";if("zh"===t)return"TWD";let i=window.navigator.language||"",r=aM[i.split("-")[1]?.toUpperCase()||""];if(r&&aN[r])return r;for(let e of window.navigator.languages?.length?window.navigator.languages:[window.navigator.language]){let t=aM[e.split("-")[1]?.toUpperCase()||""];if(t&&aN[t])return t}return"USD"}())},[]);let r=aN[t]||aN.USD;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e$.GoogleOneTapHost,{flow:aC}),(0,o.jsx)(aE,{text:(0,o.jsx)("img",{src:"/images/paw-cursor.png",alt:"",className:"h-[22px] w-[22px] select-none",draggable:!1}),spacing:70,followMouseDirection:!0,baseRotation:90,tapBurstOnTouch:!1,randomFloat:!1,exitDuration:.45,removalInterval:28,maxPoints:10}),(0,o.jsxs)("main",{className:"page-shell py-10 md:py-14",children:[(0,o.jsxs)("div",{className:"page-constrain page-grid page-grid--hero",children:[(0,o.jsxs)("div",{className:"page-cta-stack gap-5 md:gap-8",children:[(0,o.jsx)(M,{}),(0,o.jsx)("p",{className:"max-w-xl text-pretty text-muted-foreground md:whitespace-pre-line",children:e("home.heroBody")}),(0,o.jsx)(ek.InstallExtensionButton,{catCta:!0,appStoreCampaign:"home-hero"})]}),(0,o.jsx)($,{})]}),(0,o.jsx)(et,{className:"home-section--tight"}),(0,o.jsx)("section",{className:"home-section home-section-band",children:(0,o.jsx)(f,{as:"div",children:(0,o.jsxs)("div",{className:"page-constrain page-constrain--inset-2-11",children:[(0,o.jsx)("div",{className:"pt-4 pb-6 md:pt-6 md:pb-8",children:(0,o.jsxs)(x,{className:"text-center",children:[(0,o.jsxs)("div",{className:"inline-flex items-center gap-2 md:gap-3",children:[(0,o.jsx)("h2",{className:"font-sans text-heading-section font-semibold tracking-tight text-foreground",children:e("home.howItWorksTitle")}),(0,o.jsx)(u.default,{src:"/images/paw_HowItWorks.png",alt:"",width:318,height:335,className:"h-7 w-auto md:h-8","aria-hidden":!0})]}),(0,o.jsx)("p",{className:"mx-auto mt-4 max-w-3xl whitespace-pre-line text-pretty text-support text-muted-foreground md:mt-6 md:whitespace-normal",children:e("home.howItWorksSubtitle")})]})}),(0,o.jsxs)("div",{className:"space-y-14 md:space-y-16",children:[(0,o.jsxs)(x,{className:"page-grid page-grid--align-center page-grid--elliptical-row",children:[(0,o.jsxs)("div",{className:"page-g-half page-g-half--elliptical-copy",children:[(0,o.jsx)("h3",{className:"font-sans text-heading-feature font-semibold tracking-tight text-foreground",children:e("home.sectionPaceTitle")}),(0,o.jsx)("p",{className:"mt-3 max-w-prose text-pretty text-body-large text-muted-foreground md:mt-4",children:e("home.sectionPaceBody")})]}),(0,o.jsx)(eI,{className:"page-g-half--elliptical-visual"})]}),(0,o.jsxs)(x,{className:"page-grid page-grid--align-center page-grid--elliptical-row",children:[(0,o.jsx)(eO,{className:"page-g-half--elliptical-visual"}),(0,o.jsxs)("div",{className:"page-g-half page-g-half--elliptical-copy",children:[(0,o.jsx)("h3",{className:"font-sans text-heading-feature font-semibold tracking-tight text-foreground",children:e("home.sectionWordsTitle")}),(0,o.jsx)("p",{className:"mt-3 max-w-prose text-pretty text-body-large text-muted-foreground md:mt-4",children:`${e("home.sectionWordsBody1")} ${e("home.sectionWordsBody2")}`})]})]}),(0,o.jsxs)(x,{className:"page-grid page-grid--align-center page-grid--elliptical-row",children:[(0,o.jsxs)("div",{className:"page-g-half page-g-half--elliptical-copy",children:[(0,o.jsx)("h3",{className:"font-sans text-heading-feature font-semibold tracking-tight text-foreground",children:e("home.sectionQuizTitle")}),(0,o.jsx)("p",{className:"mt-3 max-w-prose text-pretty text-body-large text-muted-foreground md:mt-4",children:[e("home.sectionQuizBody1"),e("home.sectionQuizBody2"),e("home.sectionQuizBody3")].filter(e=>e.trim()).join(" ")})]}),(0,o.jsx)(eR,{className:"page-g-half--elliptical-visual"})]}),(0,o.jsxs)(x,{className:"page-grid page-grid--align-center page-grid--elliptical-row",children:[(0,o.jsx)(p,{className:"page-g-half--elliptical-visual"}),(0,o.jsxs)("div",{className:"page-g-half page-g-half--elliptical-copy",children:[(0,o.jsx)("h3",{className:"font-sans text-heading-feature font-semibold tracking-tight text-foreground",children:e("home.sectionSitesTitle")}),(0,o.jsx)("p",{className:"mt-3 max-w-prose text-pretty text-body-large text-muted-foreground md:mt-4",children:`${e("home.sectionSitesBody1")} ${e("home.sectionSitesBody2")}`})]})]})]})]})})}),(0,o.jsx)(eP,{currency:t,pricing:r}),(0,o.jsx)(el,{}),(0,o.jsx)("section",{className:"home-section--loose",children:(0,o.jsx)("div",{className:"page-constrain page-grid pt-12 md:pt-16 pb-20 md:pb-24",children:(0,o.jsxs)("div",{className:"page-cta-stack",children:[(0,o.jsx)(x,{children:(0,o.jsx)("h2",{className:"max-w-2xl whitespace-pre-line font-sans text-heading-display font-bold leading-display-h1 tracking-tight md:whitespace-normal md:text-heading-display-lg",children:e("home.ctaTitle")})}),(0,o.jsx)(ek.InstallExtensionButton,{catCta:!0,appStoreCampaign:"home-bottom"})]})})})]})]})}],33589)}]);
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.