1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98879,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let n=t.r(71645),r="undefined"==typeof window,s=r?()=>{}:n.useLayoutEffect,o=r?()=>{}:n.useEffect;function a(t){let{headManager:e,reduceComponentsToState:i}=t;function a(){if(e&&e.mountedInstances){let r=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(i(r,t))}}if(r){var l;null==e||null==(l=e.mountedInstances)||l.add(t.children),a()}return s(()=>{var i;return null==e||null==(i=e.mountedInstances)||i.add(t.children),()=>{var i;null==e||null==(i=e.mountedInstances)||i.delete(t.children)}}),s(()=>(e&&(e._pendingUpdate=a),()=>{e&&(e._pendingUpdate=a)})),o(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},58908,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=t.r(55682)._(t.r(71645)).default.createContext({})},15986,(t,e,i)=>{"use strict";function n(t){let{ampFirst:e=!1,hybrid:i=!1,hasQuery:n=!1}=void 0===t?{}:t;return e||i&&n}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isInAmpMode",{enumerable:!0,get:function(){return n}})},25633,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(i,{default:function(){return m},defaultHead:function(){return c}});let n=t.r(55682),r=t.r(90809),s=t.r(43476),o=r._(t.r(71645)),a=n._(t.r(98879)),l=t.r(58908),u=t.r(42732),h=t.r(15986);function c(t){void 0===t&&(t=!1);let e=[(0,s.jsx)("meta",{charSet:"utf-8"},"charset")];return t||e.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),e}function d(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===o.default.Fragment?t.concat(o.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}t.r(33525);let p=["name","httpEquiv","charSet","itemProp"];function f(t,e){let{inAmpMode:i}=e;return t.reduce(d,[]).reverse().concat(c(i).reverse()).filter(function(){let t=new Set,e=new Set,i=new Set,n={};return r=>{let s=!0,o=!1;if(r.key&&"number"!=typeof r.key&&r.key.indexOf("$")>0){o=!0;let e=r.key.slice(r.key.indexOf("$")+1);t.has(e)?s=!1:t.add(e)}switch(r.type){case"title":case"base":e.has(r.type)?s=!1:e.add(r.type);break;case"meta":for(let t=0,e=p.length;t<e;t++){let e=p[t];if(r.props.hasOwnProperty(e))if("charSet"===e)i.has(e)?s=!1:i.add(e);else{let t=r.props[e],i=n[e]||new Set;("name"!==e||!o)&&i.has(t)?s=!1:(i.add(t),n[e]=i)}}}return s}}()).reverse().map((t,e)=>{let i=t.key||e;return o.default.cloneElement(t,{key:i})})}let m=function(t){let{children:e}=t,i=(0,o.useContext)(l.AmpStateContext),n=(0,o.useContext)(u.HeadManagerContext);return(0,s.jsx)(a.default,{reduceComponentsToState:f,headManager:n,inAmpMode:(0,h.isInAmpMode)(i),children:e})};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},88143,(t,e,i)=>{"use strict";function n(t){let{widthInt:e,heightInt:i,blurWidth:n,blurHeight:r,blurDataURL:s,objectFit:o}=t,a=n?40*n:e,l=r?40*r:i,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},87690,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(i,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,
1contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},8927,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return l}}),t.r(33525);let n=t.r(88143),r=t.r(87690),s=["-moz-initial","fill","none","scale-down",void 0];function o(t){return void 0!==t.default}function a(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function l(t,e){var i,l;let u,h,c,{src:d,sizes:p,unoptimized:f=!1,priority:m=!1,loading:g,className:v,quality:y,width:b,height:w,fill:x=!1,style:P,overrideSrc:S,onLoad:T,onLoadingComplete:E,placeholder:A="empty",blurDataURL:M,fetchPriority:C,decoding:k="async",layout:R,objectFit:j,objectPosition:V,lazyBoundary:D,lazyRoot:L,...z}=t,{imgConf:O,showAltText:B,blurComplete:I,defaultLoader:F}=e,N=O||r.imageConfigDefault;if("allSizes"in N)u=N;else{let t=[...N.deviceSizes,...N.imageSizes].sort((t,e)=>t-e),e=N.deviceSizes.sort((t,e)=>t-e),n=null==(i=N.qualities)?void 0:i.sort((t,e)=>t-e);u={...N,allSizes:t,deviceSizes:e,qualities:n}}if(void 0===F)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let _=z.loader||F;delete z.loader,delete z.srcSet;let U="__next_img_default"in _;if(U){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let t=_;_=e=>{let{config:i,...n}=e;return t(n)}}if(R){"fill"===R&&(x=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];t&&(P={...P,...t});let e={responsive:"100vw",fill:"100vw"}[R];e&&!p&&(p=e)}let W="",Y=a(b),H=a(w);if((l=d)&&"object"==typeof l&&(o(l)||void 0!==l.src)){let t=o(d)?d.default:d;if(!t.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(h=t.blurWidth,c=t.blurHeight,M=M||t.blurDataURL,W=t.src,!x)if(Y||H){if(Y&&!H){let e=Y/t.width;H=Math.round(t.height*e)}else if(!Y&&H){let e=H/t.height;Y=Math.round(t.width*e)}}else Y=t.width,H=t.height}let X=!m&&("lazy"===g||void 0===g);(!(d="string"==typeof d?d:W)||d.startsWith("data:")||d.startsWith("blob:"))&&(f=!0,X=!1),u.unoptimized&&(f=!0),U&&!u.dangerouslyAllowSVG&&d.split("?",1)[0].endsWith(".svg")&&(f=!0);let G=a(y),K=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:j,objectPosition:V}:{},B?{}:{color:"transparent"},P),q=I||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:Y,heightInt:H,blurWidth:h,blurHeight:c,blurDataURL:M||"",objectFit:K.objectFit})+'")':'url("'+A+'")',Z=s.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,$=q?{backgroundSize:Z,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},J=function(t){let{config:e,src:i,unoptimized:n,width:r,quality:s,sizes:o,loader:a}=t;if(n)return{src:i,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(t,e,i){let{deviceSizes:n,allSizes:r}=t;if(i){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let n;n=t.exec(i);)e.push(parseInt(n[2]));if(e.length){let t=.01*Math.min(...e);return{widths:r.filter(e=>e>=n[0]*t),kind:"w"}}return{widths:r,kind:"w"}}return"number"!=typeof e?{widths:n,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>r.find(e=>e>=t)||r[r.length-1]))],kind:"x"}}(e,r,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((t,n)=>a({config:e,src:i,quality:s,width:t})+" "+("w"===u?t:n+1)+u).join(", "),src:a({config:e,src:i,quality:s,width:l[h]})}}({config:u,src:d,unoptimized:f,width:Y,quality:G,sizes:p,loader:_});return{props:{...z,loading:X?"lazy":g,fetchPriority:C,width:Y,height:H,decoding:k,className:v,style:{...K,...$},sizes:J.sizes,srcSet:J.srcSet,src:S||J.src},meta:{unoptimized:f,priority:m,placeholder:A,fill:x}}}},18556,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=t.r(55682)._(t.r(71645)),r=t.r(87690),s=n.default.createContext(r.imageConfigDefault)},65856,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return n}});let n=t.r(55682)._(t.r(71645)).default.createContext(null)},1948,(t,e,i)=>{"use strict";function n(t){var e;let{config:i,src:n,width:r,quality:s}=t,o=s||(null==(e=i.qualities)?void 0:e.reduce((t,e)=>Math.abs(e-75)<Math.abs(t-75)?e:t))||75;return i.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+o+(n.startsWith("/_next/static/media/")&&1?"&dpl=dpl_2o5W34E7jqxfnswseJKxY3D6rURc":"")}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},18581,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return r}});let n=t.r(71645);function r(t,e){let i=(0,n.useRef)(null),r=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=i.current;t&&(i.current=null,t());let e=r.current;e&&(r.current=null,e())}else t&&(i.current=s(t,n)),e&&(r.current=s(e,n))},[t,e])}function s(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
1dule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},85437,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return w}});let n=t.r(55682),r=t.r(90809),s=t.r(43476),o=r._(t.r(71645)),a=n._(t.r(74080)),l=n._(t.r(25633)),u=t.r(8927),h=t.r(87690),c=t.r(18556);t.r(33525);let d=t.r(65856),p=n._(t.r(1948)),f=t.r(18581),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(t,e,i,n,r,s,o){let a=null==t?void 0:t.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&r(!0),null==i?void 0:i.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,r=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{r=!0,e.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(t)}}))}function v(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,o.forwardRef)((t,e)=>{let{src:i,srcSet:n,sizes:r,height:a,width:l,decoding:u,className:h,style:c,fetchPriority:d,placeholder:p,loading:m,unoptimized:y,fill:b,onLoadRef:w,onLoadingCompleteRef:x,setBlurComplete:P,setShowAltText:S,sizesInput:T,onLoad:E,onError:A,...M}=t,C=(0,o.useCallback)(t=>{t&&(A&&(t.src=t.src),t.complete&&g(t,p,w,x,P,y,T))},[i,p,w,x,P,A,y,T]),k=(0,f.useMergedRef)(e,C);return(0,s.jsx)("img",{...M,...v(d),loading:m,width:l,height:a,decoding:u,"data-nimg":b?"fill":"1",className:h,style:c,sizes:r,srcSet:n,src:i,ref:k,onLoad:t=>{g(t.currentTarget,p,w,x,P,y,T)},onError:t=>{S(!0),"empty"!==p&&P(!0),A&&A(t)}})});function b(t){let{isAppRouter:e,imgAttributes:i}=t,n={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...v(i.fetchPriority)};return e&&a.default.preload?(a.default.preload(i.src,n),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...n},"__nimg-"+i.src+i.srcSet+i.sizes)})}let w=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(c.ImageConfigContext),r=(0,o.useMemo)(()=>{var t;let e=m||n||h.imageConfigDefault,i=[...e.deviceSizes,...e.imageSizes].sort((t,e)=>t-e),r=e.deviceSizes.sort((t,e)=>t-e),s=null==(t=e.qualities)?void 0:t.sort((t,e)=>t-e);return{...e,allSizes:i,deviceSizes:r,qualities:s}},[n]),{onLoad:a,onLoadingComplete:l}=t,f=(0,o.useRef)(a);(0,o.useEffect)(()=>{f.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[v,w]=(0,o.useState)(!1),[x,P]=(0,o.useState)(!1),{props:S,meta:T}=(0,u.getImgProps)(t,{defaultLoader:p.default,imgConf:r,blurComplete:v,showAltText:x});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{...S,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:f,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:P,sizesInput:t.sizes,ref:e}),T.priority?(0,s.jsx)(b,{isAppRouter:!i,imgAttributes:S}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},98183,(t,e,i)=>{"use strict";function n(t){let e={};for(let[i,n]of t.entries()){let t=e[i];void 0===t?e[i]=n:Array.isArray(t)?t.push(n):e[i]=[t,n]}return e}function r(t){return"string"==typeof t?t:("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function s(t){let e=new URLSearchParams;for(let[i,n]of Object.entries(t))if(Array.isArray(n))for(let t of n)e.append(i,r(t));else e.set(i,r(n));return e}function o(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(let e of i){for(let i of e.keys())t.delete(i);for(let[i,n]of e.entries())t.append(i,n)}return t}Object.defineProperty(i,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(i,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return s}})},95057,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(i,{formatUrl:function(){return s},formatWithValidation:function(){return a},urlObjectKeys:function(){return o}});let n=t.r(90809)._(t.r(98183)),r=/https?|ftp|gopher|file/;function s(t){let{auth:e,hostname:i}=t,s=t.protocol||"",o=t.pathname||"",a=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:i&&(u=e+(~i.indexOf(":")?"["+i+"]":i),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let h=t.search||l&&"?"+l||"";return s&&!s.endsWith(":")&&(s+=":"),t.slashes||(!s||r.test(s))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),""+s+u+(o=o.replace(/[?#]/g,encodeURIComponent))+(h=h.replace("#","%23"))+a}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(t){return s(t)}},18967,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(i,{DecodeError:function(){return m},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return y},NormalizeError:function(){return g},PageNotFoundError:function(){return v},SP:function(){return p},ST:function(){return f},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return u},getLocationOrigin:function(){return a},getURL:function(){return l},isAbsoluteUrl:function(){return o},isResSent:function(){return h},loadGetInitialProps:function(){return d}
1,normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return w}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(t){let e,i=!1;return function(){for(var n=arguments.length,r=Array(n),s=0;s<n;s++)r[s]=arguments[s];return i||(i=!0,e=t(...r)),e}}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=t=>s.test(t);function a(){let{protocol:t,hostname:e,port:i}=window.location;return t+"//"+e+(i?":"+i:"")}function l(){let{href:t}=window.location,e=a();return t.substring(e.length)}function u(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function h(t){return t.finished||t.headersSent}function c(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?"?"+e.slice(1).join("?"):"")}async function d(t,e){let i=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await d(e.Component,e.ctx)}:{};let n=await t.getInitialProps(e);if(i&&h(i))return n;if(!n)throw Object.defineProperty(Error('"'+u(t)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let p="undefined"!=typeof performance,f=p&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class m extends Error{}class g extends Error{}class v extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+t}}class y extends Error{constructor(t,e){super(),this.message="Failed to load static file for page: "+t+" "+e}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(t){return JSON.stringify({message:t.message,stack:t.stack})}},73668,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return s}});
1let n=t.r(18967),r=t.r(52817);function s(t){if(!(0,n.isAbsoluteUrl)(t))return!0;try{let e=(0,n.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,r.hasBasePath)(i.pathname)}catch(t){return!1}}},84508,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return n}});let n=t=>{}},22016,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(i,{default:function(){return g},useLinkStatus:function(){return y}});let n=t.r(90809),r=t.r(43476),s=n._(t.r(71645)),o=t.r(95057),a=t.r(8372),l=t.r(18581),u=t.r(18967),h=t.r(5550);t.r(33525);let c=t.r(91949),d=t.r(73668),p=t.r(99781);t.r(84508);let f=t.r(65165);function m(t){return"string"==typeof t?t:(0,o.formatUrl)(t)}function g(t){var e;let i,n,o,[g,y]=(0,s.useOptimistic)(c.IDLE_LINK_STATUS),b=(0,s.useRef)(null),{href:w,as:x,children:P,prefetch:S=null,passHref:T,replace:E,shallow:A,scroll:M,onClick:C,onMouseEnter:k,onTouchStart:R,legacyBehavior:j=!1,onNavigate:V,ref:D,unstable_dynamicOnHover:L,...z}=t;i=P,j&&("string"==typeof i||"number"==typeof i)&&(i=(0,r.jsx)("a",{children:i}));let O=s.default.useContext(a.AppRouterContext),B=!1!==S,I=!1!==S?null===(e=S)||"auto"===e?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,{href:F,as:N}=s.default.useMemo(()=>{let t=m(w);return{href:t,as:x?m(x):t}},[w,x]);j&&(n=s.default.Children.only(i));let _=j?n&&"object"==typeof n&&n.ref:D,U=s.default.useCallback(t=>(null!==O&&(b.current=(0,c.mountLinkInstance)(t,F,O,I,B,y)),()=>{b.current&&((0,c.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,c.unmountPrefetchableInstance)(t)}),[B,F,O,I,y]),W={ref:(0,l.useMergedRef)(U,_),onClick(t){j||"function"!=typeof C||C(t),j&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),O&&(t.defaultPrevented||function(t,e,i,n,r,o,a){let{nodeName:l}=t.currentTarget;if(!("A"===l.toUpperCase()&&function(t){let e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||t.currentTarget.hasAttribute("download"))){if(!(0,d.isLocalURL)(e)){r&&(t.preventDefault(),location.replace(e));return}if(t.preventDefault(),a){let t=!1;if(a({preventDefault:()=>{t=!0}}),t)return}s.default.startTransition(()=>{(0,p.dispatchNavigateAction)(i||e,r?"replace":"push",null==o||o,n.current)})}}(t,F,N,b,E,M,V))},onMouseEnter(t){j||"function"!=typeof k||k(t),j&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),O&&B&&(0,c.onNavigationIntent)(t.currentTarget,!0===L)},onTouchStart:function(t){j||"function"!=typeof R||R(t),j&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),O&&B&&(0,c.onNavigationIntent)(t.currentTarget,!0===L)}};return(0,u.isAbsoluteUrl)(N)?W.href=N:j&&!T&&("a"!==n.type||"href"in n.props)||(W.href=(0,h.addBasePath)(N)),o=j?s.default.cloneElement(n,W):(0,r.jsx)("a",{...z,...W,children:i}),(0,r.jsx)(v.Provider,{value:g,children:o})}let v=(0,s.createContext)(c.IDLE_LINK_STATUS),y=()=>(0,s.useContext)(v);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},94909,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(i,{default:function(){return l},getImageProps:function(){return a}});let n=t.r(55682),r=t.r(8927),s=t.r(85437),o=n._(t.r(1948));function a(t){let{props:e}=(0,r.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=s.Image},57688,(t,e,i)=>{e.exports=t.r(94909)},88653,t=>{"use strict";t.s(["AnimatePresence",()=>y],88653),t.i(47167);var e=t.i(43476),i=t.i(71645),n=t.i(31178),r=t.i(47414),s=t.i(74008),o=t.i(21476),a=t.i(72846),l=i,u=t.i(37806);function h(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class c extends l.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if((0,a.isHTMLElement)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,
1i=(0,a.isHTMLElement)(t)&&t.offsetWidth||0,n=(0,a.isHTMLElement)(t)&&t.offsetHeight||0,r=getComputedStyle(e),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left,s.bottom=n-s.height-s.top,s.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function d(t){var n,r;let{children:s,isPresent:o,anchorX:a,anchorY:d,root:p,pop:f}=t,m=(0,l.useId)(),g=(0,l.useRef)(null),v=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:y}=(0,l.useContext)(u.MotionConfigContext),b=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return i.useCallback(function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return t=>{let i=!1,n=e.map(e=>{let n=h(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t<n.length;t++){let i=n[t];"function"==typeof i?i():h(e[t],null)}}}}(...e),e)}(g,null!=(r=null==(n=s.props)?void 0:n.ref)?r:null==s?void 0:s.ref);return(0,l.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:n,right:r,bottom:s,direction:l}=v.current;if(o||!1===f||!g.current||!t||!e)return;let u="rtl"===l;g.current.dataset.motionPopId=m;let h=document.createElement("style");y&&(h.nonce=y);let c=null!=p?p:document.head;return c.appendChild(h),h.sheet&&h.sheet.insertRule('\n [data-motion-pop-id="'.concat(m,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===a?u?"right: ".concat(r):"left: ".concat(n):u?"left: ".concat(n):"right: ".concat(r),"px !important;\n ").concat("bottom"===d?"bottom: ".concat(s):"top: ".concat(i),"px !important;\n }\n ")),()=>{var t;null==(t=g.current)||t.removeAttribute("data-motion-pop-id"),c.contains(h)&&c.removeChild(h)}},[o]),(0,e.jsx)(c,{isPresent:o,childRef:g,sizeRef:v,pop:f,children:!1===f?s:l.cloneElement(s,{ref:b})})}let p=t=>{let{children:n,initial:s,isPresent:a,onExitComplete:l,custom:u,presenceAffectsLayout:h,mode:c,anchorX:p,anchorY:m,root:g}=t,v=(0,r.useConstant)(f),y=(0,i.useId)(),b=!0,w=(0,i.useMemo)(()=>(b=!1,{id:y,initial:s,isPresent:a,custom:u,onExitComplete:t=>
1{for(let e of(v.set(t,!0),v.values()))if(!e)return;l&&l()},register:t=>(v.set(t,!1),()=>v.delete(t))}),[a,v,l]);return h&&b&&(w={...w}),(0,i.useMemo)(()=>{v.forEach((t,e)=>v.set(e,!1))},[a]),i.useEffect(()=>{a||v.size||!l||l()},[a]),n=(0,e.jsx)(d,{pop:"popLayout"===c,isPresent:a,anchorX:p,anchorY:m,root:g,children:n}),(0,e.jsx)(o.PresenceContext.Provider,{value:w,children:n})};function f(){return new Map}var m=t.i(64978);let g=t=>t.key||"";function v(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}let y=t=>{let{children:o,custom:a,initial:l=!0,onExitComplete:u,presenceAffectsLayout:h=!0,mode:c="sync",propagate:d=!1,anchorX:f="left",anchorY:y="top",root:b}=t,[w,x]=(0,m.usePresence)(d),P=(0,i.useMemo)(()=>v(o),[o]),S=d&&!w?[]:P.map(g),T=(0,i.useRef)(!0),E=(0,i.useRef)(P),A=(0,r.useConstant)(()=>new Map),M=(0,i.useRef)(new Set),[C,k]=(0,i.useState)(P),[R,j]=(0,i.useState)(P);(0,s.useIsomorphicLayoutEffect)(()=>{T.current=!1,E.current=P;for(let t=0;t<R.length;t++){let e=g(R[t]);S.includes(e)?(A.delete(e),M.current.delete(e)):!0!==A.get(e)&&A.set(e,!1)}},[R,S.length,S.join("-")]);let V=[];if(P!==C){let t=[...P];for(let e=0;e<R.length;e++){let i=R[e],n=g(i);S.includes(n)||(t.splice(e,0,i),V.push(i))}return"wait"===c&&V.length&&(t=V),j(v(t)),k(P),null}let{forceRender:D}=(0,i.useContext)(n.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:R.map(t=>{let i=g(t),n=(!d||!!w)&&(P===R||S.includes(i));return(0,e.jsx)(p,{isPresent:n,initial:(!T.current||!!l)&&void 0,custom:a,presenceAffectsLayout:h,mode:c,root:b,onExitComplete:n?void 0:()=>{if(M.current.has(i)||!A.has(i))return;M.current.add(i),A.set(i,!0);let t=!0;A.forEach(e=>{e||(t=!1)}),t&&(null==D||D(),j(E.current),d&&(null==x||x()),u&&u())},anchorX:f,anchorY:y,children:t},i)})})}},46932,76959,65566,60830,87022,30551,60140,25791,86427,31178,37806,21476,47414,74008,83920,44230,15923,61327,64978,72846,72328,t=>{"use strict";let e,i,n;t.s(["motion",()=>sI],46932);let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set([...r,"pathRotation"]);t.s(["clamp",()=>o],76959);let o=(t,e,i)=>i>e?e:i<t?t:i,a={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},l={...a,transform:t=>o(0,1,t)},u={...a,default:1},h=t=>Math.round(1e5*t)/1e5,c=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,d=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,p=(t,e)=>i=>!!("string"==typeof i&&d.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),f=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(c);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},m={...a,transform:t=>Math.round(o(0,255,t))},g={test:p("rgb","red"),parse:f("red","green","blue"),transform:t=>{let{red:e,green:i,blue:n,alpha:r=1}=t;return"rgba("+m.transform(e)+", "+m.transform(i)+", "+m.transform(n)+", "+h(l.transform(r))+")"}},v={test:p("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:g.transform},y=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),b=y("deg"),w=y("%"),x=y("px"),P=y("vh"),S=y("vw"),T={...w,parse:t=>w.parse(t)/100,transform:t=>w.transform(100*t)},E={test:p("hsl","hue"),parse:f("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:i,lightness:n,alpha:r=1}=t;return"hsla("+Math.round(e)+", "+w.transform(h(i))+", "+w.transform(h(n))+", "+h(l.transform(r))+")"}},A={test:t=>g.test(t)||v.test(t)||E.test(t),parse:t=>g.test(t)?g.parse(t):E.test(t)?E.parse(t):v.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?g.transform(t):E.transform(t),getAnimatableNone:t=>{let e=A.parse(t);return e.alpha=0,A.transform(e)}},M=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,C="number",k="color",R=/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 j(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(R,t=>(A.test(t)?(n.color.push(s),r.push(k),i.push(A.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(C),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function V(t){let{split:e,types:i}=t,n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===C?r+=h(t[s]):e===k?r+=A.transform(t[s]):r+=t[s]}return r}}let D={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(c))?void 0:e.length)||0)+((null==(i=t.match(M))?void 0:i.length)||0)>0},parse:function(t){return j(t).values},createTransformer:function(t){return V(j(t))},getAnimatableNone:function(t){let e=j(t);return V(e)(e.values.map((t,i)=>{var n;let r;return n=e.split[i],"number"==typeof t?(null==n?void 0:n.trim().endsWith("/"))?t:0:"number"==typeof(r=t)?0:A.test(r)?A.getAnimatableNone(r):r}))}},L=new Set(["brightness","contrast","saturate","opacity"]);function z(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(c)||[];
1if(!n)return t;let r=i.replace(n,""),s=+!!L.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let O=/\b([a-z-]*)\(.*?\)/gu,B={...D,getAnimatableNone:t=>{let e=t.match(O);return e?e.map(z).join(" "):t}},I={...D,getAnimatableNone:t=>{let e=D.parse(t);return D.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},F={...a,transform:Math.round},N={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,inset:x,insetBlock:x,insetBlockStart:x,insetBlockEnd:x,insetInline:x,insetInlineStart:x,insetInlineEnd:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,paddingBlock:x,paddingBlockStart:x,paddingBlockEnd:x,paddingInline:x,paddingInlineStart:x,paddingInlineEnd:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,marginBlock:x,marginBlockStart:x,marginBlockEnd:x,marginInline:x,marginInlineStart:x,marginInlineEnd:x,fontSize:x,backgroundPositionX:x,backgroundPositionY:x,rotate:b,pathRotation:b,rotateX:b,rotateY:b,rotateZ:b,scale:u,scaleX:u,scaleY:u,scaleZ:u,skew:b,skewX:b,skewY:b,distance:x,translateX:x,translateY:x,translateZ:x,x:x,y:x,z:x,perspective:x,transformPerspective:x,opacity:l,originX:T,originY:T,originZ:x,zIndex:F,fillOpacity:l,strokeOpacity:l,numOctaves:F},_={...N,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:B,WebkitFilter:B,mask:I,WebkitMask:I},U=t=>_[t],W=()=>({translate:0,scale:1,origin:0,originPoint:0}),Y=()=>({x:W(),y:W()}),H=()=>({min:0,max:0}),X=()=>({x:H(),y:H()}),G=t=>!!(t&&t.getVelocity),K=new Set(["width","height","top","left","right","bottom",...r]),q=t=>e=>e.test(t),Z=[a,x,w,b,S,P,{test:t=>"auto"===t,parse:t=>t}],$=t=>Z.find(q(t));t.s(["invariant",()=>ti,"warning",()=>te],65566);var J,Q=t.i(47167);function tt(t,e){return e?"".concat(t,". For more information and steps for solving, visit https://motion.dev/troubleshooting/").concat(e):t}let te=()=>{},ti=()=>{};void 0!==Q.default&&(null==(J=Q.default.env)?void 0:J.NODE_ENV)!=="production"&&(te=(t,e,i)=>{t||"undefined"==typeof console||console.warn(tt(e,i))},ti=(t,e,i)=>{if(!t)throw Error(tt(e,i))});let tn=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tr=t=>e=>"string"==typeof e&&e.startsWith(t),ts=tr("--"),to=tr("var(--"),ta=t=>!!to(t)&&tl.test(t.split("/*")[0].trim()),tl=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tu(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let th=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tc=t=>180*t/Math.PI,td=t=>tf(tc(Math.atan2(t[1],t[0]))),tp={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:td,rotateZ:td,skewX:t=>tc(Math.atan(t[1])),skewY:t=>tc(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tf=t=>((t%=360)<0&&(t+=360),t),tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tg=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:tg,scale:t=>(tm(t)+tg(t))/2,rotateX:t=>tf(tc(Math.atan2(t[6],t[5]))),rotateY:t=>tf(tc(Math.atan2(-t[2],t[0]))),rotateZ:td,rotate:td,skewX:t=>tc(Math.atan(t[4])),skewY:t=>tc(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ty(t){return+!!t.includes("scale")}function tb(t,e){let i,n;if(!t||"none"===t)return ty(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tv,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tp,n=e}if(!n)return ty(e);let s=i[e],o=n[1].split(",").map(tw);return"function"==typeof s?s(o):o[s]}function tw(t){return parseFloat(t.trim())}let tx=t=>t===a||t===x,tP=new Set(["x","y","z"]),tS=r.filter(t=>!tP.has(t)),tT={width:(t,e)=>{let{x:i}=t,{paddingLeft:n="0",paddingRight:r="0",boxSizing:s}=e,o=i.max-i.min;return"border-box"===s?o:o-parseFloat(n)-parseFloat(r)},height:(t,e)=>{let{y:i}=t,{paddingTop:n="0",paddingBottom:r="0",boxSizing:s}=e,o=i.max-i.min;return"border-box"===s?o:o-parseFloat(n)-parseFloat(r)},top:(t,e)=>{let{top:i}=e;return parseFloat(i)},left:(t,e)=>{let{left:i}=e;return parseFloat(i)},bottom:(t,e)=>{let{y:i}=t,{top:n}=e;return parseFloat(n)+(i.max-i.min)},right:(t,e)=>{let{x:i}=t,{left:n}=e;return parseFloat(n)+(i.max-i.min)},x:(t,e)=>{let{transform:i}=e;return tb(i,"x")},y:(t,e)=>{let{transform:i}=e;return tb(i,"y")}};tT.translateX=tT.x,tT.translateY=tT.y,t.s(["cancelFrame",()=>tj,"frame",()=>tR,"frameData",()=>tV,"frameSteps",()=>tD],87022),t.s(["noop",()=>tE],60830);let tE=t=>t,tA={},tM=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tC={value:null,addProjectionMetrics:null};function tk(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tM.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=s&&r?i:n;return e&&o.add(t),a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}r=!0;let o=i;
1i=n,n=o,i.forEach(u),e&&tC.value&&tC.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:f}=o,m=()=>{let s=tA.useManualTiming,o=s?r.timestamp:performance.now();i=!1,s||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(m))};return{schedule:tM.reduce((e,s)=>{let a=o[s];return e[s]=function(e){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!i&&(i=!0,n=!0,r.isProcessing||t(m)),a.schedule(e,s,o)},e},{}),cancel:t=>{for(let e=0;e<tM.length;e++)o[tM[e]].cancel(t)},state:r,steps:o}}let{schedule:tR,cancel:tj,state:tV,steps:tD}=tk("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tE,!0),tL=new Set,tz=!1,tO=!1,tB=!1;function tI(){if(tO){let t=Array.from(tL).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tS.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(e=>{var i;let[n,r]=e;null==(i=t.getValue(n))||i.set(r)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tO=!1,tz=!1,tL.forEach(t=>t.complete(tB)),tL.clear()}function tF(){tL.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tO=!0)})}class tN{scheduleResolve(){this.state="scheduled",this.isAsync?(tL.add(this),tz||(tz=!0,tR.read(tF),tR.resolveKeyframes(tI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}for(let e=1;e<t.length;e++)null!=t[e]||(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tL.delete(this)}cancel(){"scheduled"===this.state&&(tL.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}}let t_=t=>/^0[^.\s]+$/u.test(t),tU=new Set([B,I]);function tW(t,e){let i=U(t);return tU.has(i)||(i=D),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tY=new Set(["auto","none","0"]);class tH extends tN{readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&ta(n=n.trim())){let r=function t(e,i){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;ti(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'),"max-css-var-depth");let[r,s]=function(t){let e=th.exec(t);if(!e)return[,];let[,i,n,r]=e;return["--".concat(null!=i?i:n),r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return tn(t)?parseFloat(t):t}return ta(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!K.has(i)||2!==t.length)return;let[n,r]=t,s=$(n),o=$(r);if(tu(n)!==tu(r)&&tT[i]){this.needsMeasurement=!0;return}if(s!==o)if(tx(s)&&tx(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tT[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||t_(n)))&&i.push(e)}
1i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tY.has(e)&&j(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tW(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tT[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=tT[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEach(t=>{let[i,n]=t;e.getValue(i).set(n)}),this.resolveNoneKeyframes()}constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}}let tX=t=>1e3*t;function tG(t,e){-1===t.indexOf(e)&&t.push(e)}function tK(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tq{add(t){return tG(this.subscriptions,t),()=>tK(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}constructor(){this.subscriptions=[]}}function tZ(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function t$(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["supportsScrollTimeline",()=>t0,"supportsViewTimeline",()=>t1],30551);let tJ={};function tQ(t,e){let i=t$(t);return()=>{var t;return null!=(t=tJ[e])?t:i()}}let t0=tQ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),t1=tQ(()=>void 0!==window.ViewTimeline,"viewTimeline"),t2=t=>null!==t;function t3(t,e,i){let{repeat:n,repeatType:r="loop"}=e,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=t.filter(t2),a=s<0||n&&"loop"!==r&&n%2==1?0:o.length-1;return a&&void 0!==i?i:o[a]}class t5{get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}constructor(){this.updateFinished()}}let t4={layout:0,mainThread:0,waapi:0},t6=t=>Array.isArray(t)&&"number"==typeof t[0],t8=tQ(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t9=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return"linear(".concat(n.substring(0,n.length-2),")")},t7=t=>{let[e,i,n,r]=t;return"cubic-bezier(".concat(e,", ").concat(i,", ").concat(n,", ").concat(r,")")},et={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t7([0,.65,.55,1]),circOut:t7([.55,0,1,.45]),backIn:t7([.31,.01,.66,-.59]),backOut:t7([.33,1.53,.69,.99])};function ee(t){return"function"==typeof t&&"applyToOptions"in t}class ei extends t5{play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;null==(t=(e=this.animation).finish)||t.call(e)}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,e,i;let n=null==(t=this.options)?void 0:t.element;!this.isPseudoElement&&(null==n?void 0:n.isConnected)&&(null==(e=(i=this.animation).commitStyles)||e.call(i))}get duration(){var t,e;return Number((null==(e=this.animation.effect)||null==(t=e.getComputedTiming)?void 0:t.call(e).duration)||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tX(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){var t;return null!=(t=this.manualStartTime)?t:Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline(t){let{timeline:e,rangeStart:i,rangeEnd:n,observe:r}=t;if(this.allowFlatten){var s;null==(s=this.animation.effect)||s.updateTiming({easing:"linear"})}return(this.animation.onfinish=null,e&&t0())?(this.animation.timeline=e,i&&(this.animation.rangeStart=i),n&&(this.animation.rangeEnd=n),tE):r(this)}constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,ti("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function(t){let{type:e,...i}=t;return ee(e)&&t8()?e.applyToOptions(i):(null!=i.duration||(i.duration=300),null!=i.ease||(i.ease="easeOut"),i)}(t);this.animation=function(t,e,i){let{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?t8()?t9(e,i):"ease-out":t6(e)?t7(e):Array.isArray(e)?e.map(e=>t(e,i)||et.easeOut):et[e]}(a,r);Array.isArray(c)&&(h.easing=c),tC.value&&t4.waapi++;let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return tC.value&&p.finished.finally(()=>{t4.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=t3(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tZ(e,i,t),this.animation.cancel()}null==a||a(),this.notifyFinished()}}}let en=new Set(["opacity","clipPath","filter","transform"]);t.s(["cancelMicrotask",()=>es,"microtask",()=>er],60140);let{schedule:er,cancel:es}=tk(queueMicrotask,!1);function eo(){e=void 0}let ea={now:()=>(void 0===e&&ea.set(tV.isProcessing||tA.useManualTiming?tV.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(eo)}};t.s(["collectMotionValues",()=>eu,"motionValue",()=>ec],86427),t.s(["velocityPerSecond",()=>el],25791);let el=(t,e)=>e?1e3/e*t:0,eu={current:void 0};class eh{setCurrent(t){this.current=t,this.updatedAt=ea.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tq);let i=this.events[t].add(e);return"change"===t?()=>{i(),tR.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;null==(t=this.events.change)||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return eu.current&&eu.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=ea.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return el(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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(){var t,e;null==(t=this.dependents)||t.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ea.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev){var i;if(null==(i=this.events.change)||i.notify(this.current),this.dependents)for(let t of this.dependents)t.dirty()}},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}}function ec(t,e){return new eh(t,e)}let ed=[...Z,A,D],ep=new WeakMap;function ef(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function em(t){return"string"==typeof t||Array.isArray(t)}let eg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ev=["initial",...eg];function ey(t){return ef(t.animate)||ev.some(e=>em(t[e]))}function eb(t){return!!(ey(t)||t.variants)}let ew={current:null},ex={current:!1},eP="undefined"!=typeof window;function eS(){if(ex.current=!0,eP)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ew.current=t.matches;t.addEventListener("change",e),e()}else ew.current=!1}function eT(t){let e=[{},{}];
1return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eE(t,e,i,n){if("function"==typeof e){let[r,s]=eT(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=eT(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let eA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eM={};class eC{scrapeMotionValuesFromProps(t,e,i){return{}}mount(t){var e,i,n;if(this.hasBeenMounted)for(let t in this.initialValues)null==(i=this.values.get(t))||i.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,ep.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ex.current||eS(),this.shouldReduceMotion=ew.current),this.shouldSkipAnimations=null!=(n=this.skipAnimationsConfig)&&n,null==(e=this.parent)||e.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;for(let e in this.projection&&this.projection.unmount(),tj(this.notifyUpdate),tj(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(t=this.parent)||t.removeChild(this),this.events)this.events[e].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),null!=this.enteringChildren||(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&en.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=e.accelerate,a=new ei({element:this.current,name:t,keyframes:n,times:r,ease:s,duration:tX(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=s.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tR.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eM){let e=eM[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):X()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<eA.length;e++){let i=eA[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(G(r))t.addValue(n,r);else if(G(s))t.addValue(n,ec(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,ec(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ec(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=n){if("string"==typeof n&&(tn(n)||t_(n)))n=parseFloat(n);else{let i;i=n,!ed.find(q(i))&&D.test(e)&&(n=tW(t,e))}this.setBaseTarget(t,G(n)?n.get():n)}return G(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){var n;let r=eE(this.props,i,null==(n=this.presenceContext)?void 0:n.custom);r&&(e=r[t])}if(i&&void 0!==e)return e;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||G(r)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new tq),this.events[t].add(e)}notify(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...i)}scheduleRenderMicrotask(){er.render(this.render)}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tN,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 t=ea.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tR.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=ey(e),this.isVariantNode=eb(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==l[t]&&G(e)&&e.set(l[t])}}}class ek extends eC{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,e){let{vars:i,style:n}=e;delete i[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}constructor(){super(...arguments),this.KeyframeResolver=tH}}function eR(t){return t.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase()))}let ej=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eD=r.length;function eL(t,e,i){let{style:n,vars:o,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(s.has(t)){l=!0;continue}if(ts(t)){o[t]=i;continue}{let e=ej(i,N[t]);t.startsWith("origin")?(u=!0,a[t]=e):n[t]=e}}
1if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",s=!0;for(let o=0;o<eD;o++){let a=r[o],l=t[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||i){let t=ej(l,N[a]);if(!u){s=!1;let e=eV[a]||a;n+="".concat(e,"(").concat(t,") ")}i&&(e[a]=t)}}let o=t.pathRotation;return o&&(s=!1,n+="rotate(".concat(ej(o,N.pathRotation),") ")),n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin="".concat(t," ").concat(e," ").concat(i)}}let ez={offset:"stroke-dashoffset",array:"stroke-dasharray"},eO={offset:"strokeDashoffset",array:"strokeDasharray"},eB=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eI(t,e,i,n,r){var s,o;let{attrX:a,attrY:l,attrScale:u,pathLength:h,pathSpacing:c=1,pathOffset:d=0,...p}=e;if(eL(t,p,n),i){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:m}=t;for(let t of(f.transform&&(m.transform=f.transform,delete f.transform),(m.transform||f.transformOrigin)&&(m.transformOrigin=null!=(s=f.transformOrigin)?s:"50% 50%",delete f.transformOrigin),m.transform&&(m.transformBox=null!=(o=null==r?void 0:r.transformBox)?o:"fill-box",delete f.transformBox),eB))void 0!==f[t]&&(m[t]=f[t],delete f[t]);void 0!==a&&(f.x=a),void 0!==l&&(f.y=l),void 0!==u&&(f.scale=u),void 0!==h&&function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let s=r?ez:eO;t[s.offset]="".concat(-n),t[s.array]="".concat(e," ").concat(i)}(f,h,c,d,!1)}let eF=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"]),eN=t=>"string"==typeof t&&"svg"===t.toLowerCase();function e_(t,e,i,n){let r,{style:s,vars:o}=e,a=t.style;for(r in s)a[r]=s[r];for(r in null==n||n.applyProjectionStyles(a,i),o)a.setProperty(r,o[r])}function eU(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eW={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!x.test(t))return t;else t=parseFloat(t);let i=eU(t,e.target.x),n=eU(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}},eY=(t,e,i)=>t+(e-t)*i,eH={borderRadius:{...eW,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eW,borderTopRightRadius:eW,borderBottomLeftRadius:eW,borderBottomRightRadius:eW,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:n}=e,r=D.parse(t);if(r.length>5)return t;let s=D.createTransformer(t),o=+("number"!=typeof r[0]),a=n.x.scale*i.x,l=n.y.scale*i.y;r[0+o]/=a,r[1+o]/=l;let u=eY(a,l,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),s(r)}}};function eX(t,e){let{layout:i,layoutId:n}=e;return s.has(t)||t.startsWith("origin")||(i||void 0!==n)&&(!!eH[t]||"opacity"===t)}function eG(t,e,i){let n=t.style,r=null==e?void 0:e.style,s={};if(!n)return s;for(let e in n){var o;(G(n[e])||r&&G(r[e])||eX(e,t)||(null==i||null==(o=i.getValue(e))?void 0:o.liveStyle)!==void 0)&&(s[e]=n[e])}return s}function eK(t,e,i){let n=eG(t,e,i);for(let i in t)(G(t[i])||G(e[i]))&&(n[-1!==r.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eq extends ek{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=U(e);return t&&t.default||0}return e=eF.has(e)?e:eR(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eK(t,e,i)}build(t,e,i){eI(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in e_(t,e,void 0,n),e.attrs)t.setAttribute(eF.has(i)?i:eR(i),e.attrs[i])}mount(t){this.isSVGTag=eN(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=X}}function eZ(t){let{top:e,left:i,right:n,bottom:r}=t;return{x:{min:i,max:n},y:{min:e,max:r}}}function e$(t){return void 0===t||1===t}function eJ(t){let{scale:e,scaleX:i,scaleY:n}=t;return!e$(e)||!e$(i)||!e$(n)}function eQ(t){return eJ(t)||e0(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function e0(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function e1(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function e2(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;t.min=e1(t.min,e,i,n,r),t.max=e1(t.max,e,i,n,r)}function e3(t,e){let{x:i,y:n}=e;e2(t.x,i.translate,i.scale,i.originPoint),e2(t.y,n.translate,n.scale,n.originPoint)}function e5(t,e){t.min+=e,t.max+=e}function e4(t,e,i,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,s=eY(t.min,t.max,r);e2(t,e,i,s,n)}function e6(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e8(t,e,i){let n=null!=i?i:t;e4(t.x,e6(e.x,n.x),e.scaleX,e.scale,e.originX),e4(t.y,e6(e.y,n.y),e.scaleY,e.scale,e.originY)}function e9(t,e){return eZ(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class e7 extends ek{readValueFromInstance(t,e){var i;if(s.has(e))return(null==(i=this.projection)?void 0:i.isProjecting)?ty(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tb(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(ts(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:i}=e;return e9(t,i)}build(t,e,i){eL(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eG(t,e,i)}constructor(){super(...arguments),this.type="html",this.renderInstance=e_}}var it=t.i(71645);let ie=["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 ii(t){if("string"!=typeof t||t.includes("-"));else if(ie.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var ir=t.i(43476);t.s(["LayoutGroupContext",()=>is],31178);let is=(0,it.createContext)({}),io=(0,it.createContext)({strict:!1});t.s(["MotionConfigContext",()=>ia],37806);let ia=(0,it.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),il=(0,it.createContext)({});function iu(t){return Array.isArray(t)?t.join(" "):t}let ih=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ic(t,e,i){for(let n in e)G(e[n])||eX(n,i)||(t[n]=e[n])}let id=()=>({...ih(),attrs:{}}),ip=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","propagate","ignoreStrict","viewport"]);function im(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ip.has(t)}let ig=t=>!im(t);try{!function(t){"function"==typeof t&&(ig=e=>e.startsWith("on")?!im(e):t(e))}((()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default)}catch(t){}function iv(t){return G(t)?t.get():t}t.s(["PresenceContext",()=>iy],21476);let iy=(0,it.createContext)(null);function ib(t){let e=(0,it.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["useConstant",()=>ib],47414);let iw=t=>(e,i)=>{let n=(0,it.useContext)(il),r=(0,it.useContext)(iy),s=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:r,createRenderState:s}=t;return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=iv(s[t]);let{initial:o,animate:a}=t,l=ey(t),u=eb(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!ef(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=eE(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(e,i,n,r),renderState:s()}})(t,e,n,r);return i?s():ib(s)},ix=iw({scrapeMotionValuesFromProps:eG,createRenderState:ih}),iP=iw({scrapeMotionValuesFromProps:eK,createRenderState:id}),iS={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"]},iT=!1;function iE(){return!function(){if(iT)return;let t={};for(let e in iS)t[e]={isEnabled:t=>iS[e].some(e=>!!t[e])};eM=t,iT=!0}(),eM}let iA=Symbol.for("motionComponentSymbol"),iM="data-"+eR("framerAppearId"),iC=(0,it.createContext)({});function ik(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["useIsomorphicLayoutEffect",()=>iR],74008);let iR="undefined"!=typeof window?it.useLayoutEffect:it.useEffect;function ij(t){var e,i;let{forwardMotionProps:n=!1,type:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;s&&function(t){let e=iE();for(let i in t)e[i]={...e[i],...t[i]};eM=e}(s);let a=r?"svg"===r:ii(t),l=a?iP:ix;function u(e,i){let r,s={...(0,it.useContext)(ia),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,it.useContext)(is).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:u}=s,h=function(t){let{initial:e,animate:i}=function(t,e){if(ey(t)){let{initial:e,animate:i}=t;return{initial:!1===e||em(e)?e:void 0,animate:em(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,it.useContext)(il));return(0,it.useMemo)(()=>({initial:e,animate:i}),[iu(e),iu(i)])}(e),c=l(e,u);if(!u&&"undefined"!=typeof window){(0,it.useContext)(io).strict;let e=function(t){let{drag:e,layout:i}=iE();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(s);r=e.MeasureLayout,h.visualElement=function(t,e,i,n,r,s){var o,a,l,u;let{visualElement:h}=(0,it.useContext)(il),c=(0,it.useContext)(io),d=(0,it.useContext)(iy),p=(0,it.useContext)(ia),f=p.reducedMotion,m=p.skipAnimations,g=(0,it.useRef)(null),v=(0,it.useRef)(!1);n=n||c.renderer,!g.current&&n&&(g.current=n(t,{visualState:e,parent:h,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:f,skipAnimations:m,isSVG:s}),v.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let y=g.current,b=(0,it.useContext)(iC);y&&!y.projection&&r&&("html"===y.type||"svg"===y.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&ik(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(g.current,i,r,b);let w=(0,it.useRef)(!1);(0,it.useInsertionEffect)(()=>{y&&w.current&&y.update(i,d)});let x=i[iM],P=(0,it.useRef)(!!x&&"undefined"!=typeof window&&!(null==(o=(a=window).MotionHandoffIsComplete)?void 0:o.call(a,x))&&(null==(l=(u=window).MotionHasOptimisedAnimation)?void 0:l.call(u,x)));return iR(()=>{v.current=!0,y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),P.current&&y.animationState&&y.animationState.animateChanges())}),(0,it.useEffect)(()=>{y&&(!P.current&&y.animationState&&y.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,x)}),P.current=!1),y.enteringChildren=void 0)}),y}(t,c,s,o,e.ProjectionNode,a)}return(0,ir.jsxs)(il.Provider,{value:h,children:[r&&h.visualElement?(0,ir.jsx)(r,{visualElement:h.visualElement,...s}):null,function(t,e,i,n,r){let{latestValues:s}=n,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:ii(t))?function(t,e,i,n){let r=(0,it.useMemo)(()=>{let i=id();return eI(i,e,eN(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ic(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return ic(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,it.useMemo)(()=>{let t=ih();return eL(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,s,r,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!G(t[r])&&(ig(r)||!0===i&&im(r)||!e&&!im(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o),h=t!==it.Fragment?{...u,...l,ref:i}:{},{children:c}=e,d=(0,it.useMemo)(()=>G(c)?c.get():c,[c]);return(0,it.createElement)(t,{...h,children:d})}(t,e,function(t,e,i){let n=(0,it.useRef)(i);(0,it.useInsertionEffect)(()=>{n.current=i});let r=(0,it.useRef)(null);return(0,it.useCallback)(i=>{if(i){var s;null==(s=t.onMount)||s.call(t,i)}e&&(i?e.mount(i):e.unmount());let o=n.current;if("function"==typeof o)if(i){let t=o(i);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):o(i);else o&&(o.current=i)},[e])}(c,h.visualElement,i),c,u,n,a)]})}u.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(i=null!=(e=t.displayName)?e:t.name)?i:"",")"));let h=(0,it.forwardRef)(u);return h[iA]=t,h}class iV{update(){}constructor(t){this.isMounted=!1,this.node=t}}function iD(t,e,i){let n=t.getProps();return eE(n,e,void 0!==i?i:n.custom,t)}function iL(t,e){if((null==t?void 0:t.inherit)&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iz(t,e){var i,n;let r=null!=(n=null!=(i=null==t?void 0:t[e])?i:null==t?void 0:t.default)?n:t;return r!==t?iL(r,t):r}let iO=t=>Array.isArray(t);function iB(t,e){let i=t.getValue("willChange");if(G(i)&&i.add)return i.add(e);if(!i&&tA.WillChange){let i=new tA.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}let iI=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce((t,e)=>i=>e(t(i)))};function iF(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iN(t,e){return i=>i>0?e:t}let i_=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},iU=[v,g,E];function iW(t){let e=iU.find(e=>e.test(t));if(te(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."),"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===E&&(i=function(t){let{hue:e,saturation:i,lightness:n,alpha:r}=t;e/=360,n/=100;let s=0,o=0,a=0;if(i/=100){let t=n<.5?n*(1+i):n+i-n*i,r=2*n-t;s=iF(r,t,e+1/3),o=iF(r,t,e),a=iF(r,t,e-1/3)}else s=o=a=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(i)),i}let iY=(t,e)=>{let i=iW(t),n=iW(e);if(!i||!n)return iN(t,e);let r={...i};return t=>(r.red=i_(i.red,n.red,t),r.green=i_(i.green,n.green,t),r.blue=i_(i.blue,n.blue,t),r.alpha=eY(i.alpha,n.alpha,t),g.transform(r))},iH=new Set(["none","hidden"]);function iX(t,e){return i=>eY(t,e,i)}function iG(t){return"number"==typeof t?iX:"string"==typeof t?ta(t)?iN:A.test(t)?iY:iZ:Array.isArray(t)?iK:"object"==typeof t?A.test(t)?iY:iq:iN}function iK(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>iG(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function iq(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=iG(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iZ=(t,e)=>{let i=D.createTransformer(e),n=j(t),r=j(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?iH.has(t)&&!r.values.length||iH.has(e)&&!n.values.length?function(t,e){return iH.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):iI(iK(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){var r;let o=e.types[s],a=t.indexes[o][n[o]],l=null!=(r=t.values[a])?r:0;i[s]=l,n[o]++}return i}(n,r),r.values),i):(te(!0,"Complex values '".concat(t,"' and '").concat(e,"' 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."),"complex-values-different"),iN(t,e))};function i$(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eY(t,e,i):iG(t)(t,e)}let iJ=t=>{let e=e=>{let{timestamp:i}=e;return t(i)};return{start:function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return tR.update(e,t)},stop:()=>tj(e),now:()=>tV.isProcessing?tV.timestamp:ea.now()}};function iQ(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let i0={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function i1(t,e){return t*Math.sqrt(1-e*e)}let i2=["duration","bounce"],i3=["stiffness","damping","mass"];function i5(t,e){return e.some(e=>void 0!==t[e])}function i4(){let t,e,i,n,r,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i0.visualDuration,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i0.bounce,u="object"!=typeof a?{visualDuration:a,keyframes:[0,1],bounce:l}:a,{restSpeed:h,restDelta:c}=u,d=u.keyframes[0],p=u.keyframes[u.keyframes.length-1],f={done:!1,value:d},{stiffness:m,damping:g,mass:v,duration:y,velocity:b,isResolvedFromDuration:w}=function(t){let e={velocity:i0.velocity,stiffness:i0.stiffness,damping:i0.damping,mass:i0.mass,isResolvedFromDuration:!1,...t};if(!i5(t,i3)&&i5(t,i2))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*o(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:i0.mass,stiffness:n,damping:r}}else{let i=function(t){let e,i,{duration:n=i0.duration,bounce:r=i0.bounce,velocity:s=i0.velocity,mass:a=i0.mass}=t;te(n<=tX(i0.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-r;l=o(i0.minDamping,i0.maxDamping,l),n=o(i0.minDuration,i0.maxDuration,n/1e3),l<1?(e=t=>{let e=t*l,i=e*n;return .001-(e-s)/i1(t,l)*Math.exp(-i)},i=t=>{let i=t*l*n,r=Math.pow(l,2)*Math.pow(t,2)*n,o=Math.exp(-i),a=i1(Math.pow(t,2),l);return(i*s+s-r)*o*(-e(t)+.001>0?-1:1)/a}):(e=t=>-.001+Math.exp(-t*n)*((t-s)*n+1),i=t=>n*n*(s-t)*Math.exp(-t*n));
1let u=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(e,i,5/n);if(n=tX(n),isNaN(u))return{stiffness:i0.stiffness,damping:i0.damping,duration:n};{let t=Math.pow(u,2)*a;return{stiffness:t,damping:2*l*Math.sqrt(a*t),duration:n}}}({...t,velocity:0});(e={...e,...i,mass:i0.mass}).isResolvedFromDuration=!0}return e}({...u,velocity:-((u.velocity||0)/1e3)}),x=b||0,P=g/(2*Math.sqrt(m*v)),S=p-d,T=Math.sqrt(m/v)/1e3,E=5>Math.abs(S);if(h||(h=E?i0.restSpeed.granular:i0.restSpeed.default),c||(c=E?i0.restDelta.granular:i0.restDelta.default),P<1)i=i1(T,P),n=(x+P*T*S)/i,t=t=>p-Math.exp(-P*T*t)*(n*Math.sin(i*t)+S*Math.cos(i*t)),r=P*T*n+S*i,s=P*T*S-n*i,e=t=>Math.exp(-P*T*t)*(r*Math.sin(i*t)+s*Math.cos(i*t));else if(1===P){t=t=>p-Math.exp(-T*t)*(S+(x+T*S)*t);let i=x+T*S;e=t=>Math.exp(-T*t)*(T*i*t-x)}else{let i=T*Math.sqrt(P*P-1);t=t=>{let e=Math.exp(-P*T*t),n=Math.min(i*t,300);return p-e*((x+P*T*S)*Math.sinh(n)+i*S*Math.cosh(n))/i};let n=(x+P*T*S)/i,r=P*T*n-S*i,s=P*T*S-n*i;e=t=>{let e=Math.exp(-P*T*t),n=Math.min(i*t,300);return e*(r*Math.sinh(n)+s*Math.cosh(n))}}let A={calculatedDuration:w&&y||null,velocity:t=>tX(e(t)),next:o=>{if(!w&&P<1){let t=Math.exp(-P*T*o),e=Math.sin(i*o),a=Math.cos(i*o),l=p-t*(n*e+S*a);return f.done=Math.abs(tX(t*(r*e+s*a)))<=h&&Math.abs(p-l)<=c,f.value=f.done?p:l,f}let a=t(o);return w?f.done=o>=y:f.done=Math.abs(tX(e(o)))<=h&&Math.abs(p-a)<=c,f.value=f.done?p:a,f},toString:()=>{let t=Math.min(iQ(A),2e4),e=t9(e=>A.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return A}function i6(t,e,i){let n=Math.max(e-5,0);return el(i-t(n),e-n)}function i8(t){let e,i,{keyframes:n,velocity:r=0,power:s=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:c,restDelta:d=.5,restSpeed:p}=t,f=n[0],m={done:!1,value:f},g=s*r,v=f+g,y=void 0===u?v:u(v);y!==v&&(g=y-f);let b=t=>-g*Math.exp(-t/o),w=t=>y+b(t),x=t=>{let e=b(t),i=w(t);m.done=Math.abs(e)<=d,m.value=m.done?y:i},P=t=>{let n;if(n=m.value,void 0!==h&&n<h||void 0!==c&&n>c){var r;e=t,i=i4({keyframes:[m.value,(r=m.value,void 0===h?c:void 0===c||Math.abs(h-r)<Math.abs(c-r)?h:c)],velocity:i6(w,t,m.value),damping:a,stiffness:l,restDelta:d,restSpeed:p})}};return P(0),{calculatedDuration:null,next:t=>{let n=!1;return(i||void 0!==e||(n=!0,x(t),P(t)),void 0!==e&&t>=e)?i.next(t-e):(n||x(t),m)}}}i4.applyToOptions=t=>{let e=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2?arguments[2]:void 0,n=i({...t,keyframes:[0,e]}),r=Math.min(iQ(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:r/1e3}}(t,100,i4);return t.ease=e.ease,t.duration=tX(e.duration),t.type="keyframes",t};let i9=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i7(t,e,i,n){return t===e&&i===n?tE:r=>0===r||1===r?r:i9(function(t,e,i,n,r){let s,o,a=0;do(s=i9(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(r,0,1,t,i),e,n)}let nt=i7(.42,0,1,1),ne=i7(0,0,.58,1),ni=i7(.42,0,.58,1),nn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,nr=t=>e=>1-t(1-e),ns=i7(.33,1.53,.69,.99),no=nr(ns),na=nn(no),nl=t=>t>=1?1:(t*=2)<1?.5*no(t):.5*(2-Math.pow(2,-10*(t-1))),nu=t=>1-Math.sin(Math.acos(t)),nh=nr(nu),nc=nn(nu),nd={linear:tE,easeIn:nt,easeInOut:ni,easeOut:ne,circIn:nu,circInOut:nc,circOut:nh,backIn:no,backInOut:na,backOut:ns,anticipate:nl},np=t=>{if(t6(t)){ti(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return i7(e,i,n,r)}return"string"==typeof t?(ti(void 0!==nd[t],"Invalid easing type '".concat(t,"'"),"invalid-easing-type"),nd[t]):t};t.s(["interpolate",()=>nm],44230),t.s(["progress",()=>nf],83920);let nf=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function nm(t,e){let{clamp:i=!0,ease:n,mixer:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=t.length;if(ti(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let n=[],r=i||tA.mix||i$,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=iI(Array.isArray(e)?e[i]||tE:e,s)),n.push(s)}return n}(e,n,r),u=l.length,h=i=>{if(a&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=nf(t[n],t[n+1],i);return l[n](r)};return i?e=>h(o(t[0],t[s-1],e)):h}function ng(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=nf(0,e,n);t.push(eY(i,1,r))}}(e,t.length-1),e}function nv(t){var e;let{duration:i=300,keyframes:n,times:r,ease:s="easeInOut"}=t,o=Array.isArray(s)&&"number"!=typeof s[0]?s.map(np):np(s),a={done:!1,value:n[0]},l=nm((e=r&&r.length===n.length?r:ng(n),e.map(t=>t*i)),n,{ease:Array.isArray(o)?o:n.map(()=>o||ni).splice(0,n.length-1)});return{calculatedDuration:i,next:t=>(a.value=l(t),a.done=t>=i,a)}}t.s(["defaultOffset",()=>ng],15923);let ny={decay:i8,inertia:i8,tween:nv,keyframes:nv,spring:i4};function nb(t){"string"==typeof t.type&&(t.type=ny[t.type])}let nw=t=>t/100;class nx extends t5{initAnimation(){let{options:t}=this;
1nb(t);let{type:e=nv,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||nv;a!==nv&&"number"!=typeof o[0]&&(this.mixKeyframes=iI(nw,i$(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iQ(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:f,type:m,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);let y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let w=this.currentTime,x=n;if(d){let t=Math.min(this.currentTime,r)/l,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/l)):"mirror"===p&&(x=a)),w=o(0,1,i)*l}b?(this.delayState.value=c[0],e=this.delayState):e=x.next(w),s&&!b&&(e.value=s(e.value));let{done:P}=e;b||null===u||(P=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return S&&m!==i8&&(e.value=t3(c,this.options,v,this.speed)),g&&g(e.value),S&&this.finish(),e}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=tX(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i6(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ea.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){var t,e;if(this.isStopped)return;let{driver:i=iJ,startTime:n}=this.options;this.driver||(this.driver=i(t=>this.tick(t))),null==(t=(e=this.options).onPlay)||t.call(e);let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=null!=n?n:r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ea.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,t4.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),t.observe(this)}constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var t,e;let{motionValue:i}=this.options;i&&i.updatedAt!==ea.now()&&this.tick(ea.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(t=(e=this.options).onStop)||t.call(e))},t4.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}}let nP={anticipate:nl,backInOut:na,circInOut:nc};
1class nS extends ei{updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new nx({...s,autoplay:!1}),l=Math.max(10,ea.now()-this.startTime),u=o(0,10,l-10),h=a.sample(l).value,{name:c}=this.options;r&&c&&tZ(r,c,h),e.setWithVelocity(a.sample(Math.max(0,l-u)).value,h,u),a.stop()}constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nP&&(t.ease=nP[t.ease])}(t),nb(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}}let nT=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(D.test(t)||"0"===t)&&!t.startsWith("url("));function nE(t){t.duration=0,t.type="keyframes"}let nA=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nM=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nC=t$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nk extends t5{onKeyframesResolved(t,e,i,n){var r,s;let o;this.keyframeResolver=void 0;let{name:a,type:l,velocity:u,delay:h,isHandoff:c,onUpdate:d}=i;this.resolvedAt=ea.now();let p=!0;!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=nT(r,e),a=nT(s,e);return te(o===a,"You are trying to animate ".concat(e,' from "').concat(r,'" to "').concat(s,'". "').concat(o?s:r,'" is not an animatable value.'),"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ee(i))&&n)}(t,a,l,u)&&(p=!1,(tA.instantAnimations||!h)&&(null==d||d(t3(t,i,e))),t[0]=t[t.length-1],nE(i),i.repeat=0);let f={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},m=p&&!c&&function(t){var e;let{motionValue:i,name:n,repeatDelay:r,repeatType:s,damping:o,type:a,keyframes:l}=t;if(!((null==i||null==(e=i.owner)?void 0:e.current)instanceof HTMLElement))return!1;let{onUpdate:u,transformTemplate:h}=i.owner.getProps();return nC()&&n&&(en.has(n)||nM.has(n)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nA.test(t[e]))return!0;return!1}(l))&&("transform"!==n||!h)&&!u&&!r&&"mirror"!==s&&0!==o&&"inertia"!==a}(f),g=null==(s=f.motionValue)||null==(r=s.owner)?void 0:r.current;if(m)try{o=new nS({...f,element:g})}catch(t){o=new nx(f)}else o=new nx(f);o.finished.then(()=>{this.notifyFinished()}).catch(tE),this.pendingTimeline&&(this.stopTimeline=o.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=o}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){if(!this._animation){var t;null==(t=this.keyframeResolver)||t.resume(),tB=!0,tF(),tI(),tB=!1}return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),null==(t=this.keyframeResolver)||t.cancel()}constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){var c;super(),this.stop=()=>{var t,e;this._animation&&(this._animation.stop(),null==(e=this.stopTimeline)||e.call(this)),null==(t=this.keyframeResolver)||t.cancel()},this.createdAt=ea.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},p=(null==u?void 0:u.KeyframeResolver)||tN;this.keyframeResolver=new p(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),null==(c=this.keyframeResolver)||c.scheduleResolve()}}let nR={type:"spring",stiffness:500,damping:25,restSpeed:10},nj={type:"keyframes",duration:.8},nV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nD=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nL=function(t,e,
1i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;return a=>{let l=iz(n,t)||{},u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=tX(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:r};!function(t){for(let e in t)if(!nD.has(e))return!0;return!1}(l)&&Object.assign(c,((t,e)=>{let{keyframes:i}=e;return i.length>2?nj:s.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===i[1]?2*Math.sqrt(550):30,restSpeed:10}:nR:nV})(t,c)),c.duration&&(c.duration=tX(c.duration)),c.repeatDelay&&(c.repeatDelay=tX(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(nE(c),0===c.delay&&(d=!0)),(tA.instantAnimations||tA.skipAnimations||(null==r?void 0:r.shouldSkipAnimations)||l.skipAnimations)&&(d=!0,nE(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!o&&void 0!==e.get()){let t=t3(c.keyframes,l);if(void 0!==t)return void tR.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new nx(c):new nk(c)}};function nz(t,e){let{delay:i=0,transitionOverride:n,type:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition(),u=null==(s=s?iL(s,l):l)?void 0:s.reduceMotion,h=null==s?void 0:s.skipAnimations;n&&(s=n);let c=[],d=r&&t.animationState&&t.animationState.getState()[r],p=null==s?void 0:s.path;for(let e in p&&p.animateVisualElement(t,a,s,i,c),a){var f;let n=t.getValue(e,null!=(f=t.latestValues[e])?f:null),r=a[e];if(void 0===r||d&&function(t,e){let{protectedKeys:i,needsAnimating:n}=t,r=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,r}(d,e))continue;let o={delay:i,...iz(s||{},e)};h&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){tR.update(()=>n.set(r));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t.props[iM];if(i){let t=window.MotionHandoffAnimation(i,e,tR);null!==t&&(o.startTime=t,p=!0)}}iB(t,e);let m=null!=u?u:t.shouldReduceMotion;n.start(nL(e,n,r,m&&K.has(e)?{type:!1}:o,t,p));let g=n.animation;g&&c.push(g)}if(o){let e=()=>tR.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=iD(t,e)||{};for(let e in r={...r,...i}){var s;let i=iO(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ec(i))}}(t,o)});c.length?Promise.all(c).then(e):e()}return c}function nO(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nB(t,e){var i;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=iD(t,e,"exit"===n.type?null==(i=t.presenceContext)?void 0:i.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);let o=r?()=>Promise.all(nz(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=arguments.length>6?arguments[6]:void 0,a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nB(l,e,{...o,delay:i+("function"==typeof n?0:n)+nO(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,r,o,a,n)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(n.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}let nI=ev.length;function nF(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nN=[...eg].reverse(),n_=eg.length;function nU(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nW(){return{animate:nU(!0),whileInView:nU(),whileHover:nU(),whileTap:nU(),whileDrag:nU(),whileFocus:nU(),exit:nU()}}let nY=0;function nH(t){return[t("x"),t("y")]}function nX(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let nG={x:!1,y:!1};function nK(t){return t.max-t.min}function nq(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=eY(e.min,e.max,t.origin),t.scale=nK(i)/nK(e),t.translate=eY(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nZ(t,e,i,n){nq(t.x,e.x,i.x,n?n.originX:void 0),nq(t.y,e.y,i.y,n?n.originY:void 0)}function n$(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.min=(n?eY(i.min,i.max,n):i.min)+e.min,t.max=t.min+nK(e)}function nJ(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=n?eY(i.min,i.max,n):i.min;t.min=e.min-r,t.max=t.min+nK(e)}function nQ(t,e,i,n){nJ(t.x,e.x,i.x,null==n?void 0:n.x),nJ(t.y,e.y,i.y,null==n?void 0:n.y)}t.s(["resize",()=>rt],61327);let n0=t=>"object"==typeof t&&null!==t;function n1(t){return n0(t)&&"ownerSVGElement"in t}function n2(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){var n;let r=document;e&&(r=e.current);let s=null!=(n=null==i?void 0:i[t])?n:r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let n3=new WeakMap,n5=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:n1(n)&&"getBBox"in n?n.getBBox()[e]:n[i],n4=n5("inline","width","offsetWidth"),n6=n5("block","height","offsetHeight");function n8(t){var e;let{target:i,borderBoxSize:n}=t;null==(e=n3.get(i))||e.forEach(t=>{t(i,{get width(){return n4(i,n)},get height(){return n6(i,n)}})})}function n9(t){t.forEach(n8)}let n7=new Set;function rt(t,e){return"function"==typeof t?(n7.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};
1n7.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{n7.delete(t),n7.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):function(t,e){i||"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(n9));let n=n2(t);return n.forEach(t=>{let n=n3.get(t);n||(n=new Set,n3.set(t,n)),n.add(e),null==i||i.observe(t)}),()=>{n.forEach(t=>{let n=n3.get(t);null==n||n.delete(e),(null==n?void 0:n.size)||null==i||i.unobserve(t)})}}(t,e)}let re=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ri=new Set(["INPUT","SELECT","TEXTAREA"]),rn=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function rr(t){return{point:{x:t.pageX,y:t.pageY}}}function rs(t,e,i,n){return nX(t,e,t=>rn(t)&&i(t,rr(t)),n)}let ro=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},ra=(t,e)=>Math.abs(t-e),rl=new Set(["auto","scroll"]);class ru{startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(rl.has(t.overflowX)||rl.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),tR.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tj(this.updatePoint)}constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rh(this.lastRawMoveEventInfo,this.transformPagePoint));let t=rd(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(ra(t.x,e.x)**2+ra(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=tV;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=rh(e,this.transformPagePoint),tR.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rd("pointercancel"===t.type?this.lastMoveEventInfo:rh(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!rn(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let a=rh(rr(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tV;this.history=[{...l,timestamp:u}];let{onSessionStart:h}=e;h&&h(t,rd(a,this.history)),this.removeListeners=iI(rs(this.contextWindow,"pointermove",this.handlePointerMove),rs(this.contextWindow,"pointerup",this.handlePointerUp),rs(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}}function rh(t,e){return e?{point:e(t.point)}:t}function rc(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rd(t,e){let{point:i}=t;return{point:i,delta:rc(i,rp(e)),offset:rc(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=rp(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>tX(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&r.timestamp-n.timestamp>2*tX(e)&&(n=t[1]);let s=(r.timestamp-n.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function rp(t){return t[t.length-1]}function rf(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function rm(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function rg(t,e,i){return{min:rv(t,e),max:rv(t,i)}}function rv(t,e){return"number"==typeof t?t:t[e]||0}let ry=new WeakMap;class rb{start(t){let{snapToCursor:e=!1,distanceThreshold:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=t=>{e&&this.snapToCursor(rr(t).point),this.stopAnimation()},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nG[t])return null;else return nG[t]=!0,()=>{nG[t]=!1};return nG.x||nG.y?null:(nG.x=nG.y=!0,()=>{nG.x=nG.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nH(t=>{let e=this.getAxisMotionValue(t).get()||0;if(w.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nK(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tR.update(()=>r(t,e),!1,!0),iB(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&tR.update(()=>s(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ru(t,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:ro(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tR.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!rx(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,e,i){let{min:n,max:r}=e;return void 0!==n&&t<n?t=i?eY(n,t,i.min):Math.max(t,n):void 0!==r&&t>r&&(t=i?eY(r,t,i.max):Math.min(t,r)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&ik(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,e){let{top:i,left:n,bottom:r,right:s}=e;return{x:rf(t.x,n,s),y:rf(t.y,i,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:rg(t,"left","right"),y:rg(t,"top","bottom")}}(i),r!==this.constraints&&!ik(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&nH(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!ik(e))return!1;let n=e.current;ti(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());
1let s=function(t,e,i){let n=e9(t,i),{scroll:r}=e;return r&&(e5(n.x,r.offset.x),e5(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:rm(t.x,s.x),y:rm(t.y,s.y)});if(i){let t=i(function(t){let{x:e,y:i}=t;return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eZ(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nH(o=>{if(!rx(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iB(this.visualElement,t),i.start(nL(t,i,0,e,this.visualElement,!1))}stopAnimation(){nH(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var e;let i="_drag".concat(t.toUpperCase());return this.visualElement.getProps()[i]||this.visualElement.getValue(t,null!=(e=this.visualElement.latestValues[t])?e:0)}snapToCursor(t){nH(e=>{let{drag:i}=this.getProps();if(!rx(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-eY(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ik(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nH(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=nK(t),r=nK(e);return r>n?i=nf(e.min,e.max-n,t.min):n>r&&(i=nf(t.min,t.max-r,e.min)),o(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nH(e=>{if(!rx(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eY(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;ry.set(this.visualElement,this);let e=this.visualElement.current,i=rs(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=t.target,s=r!==e&&(ri.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(t)}),n=()=>{let{dragConstraints:i}=this.getProps();ik(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,i){let n=rt(t,rw(i)),r=rt(e,rw(i));return()=>{n(),r()}}(e,i.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),tR.read(n);let o=nX(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&(nH(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=X(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}}function rw(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function rx(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let rP=t=>(e,i)=>{t&&tR.update(()=>t(e,i),!1,!0)},rS={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rT=it;function rE(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,it.useContext)(iy);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,it.useId)();(0,it.useEffect)(()=>
1{if(t)return r(s)},[t]);let o=(0,it.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,o]:[!0]}t.s(["usePresence",()=>rE],64978);let rA=!1;class rM extends rT.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rA&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rS.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),rA=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||tR.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),er.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rA=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rC(t){let[e,i]=rE(),n=(0,rT.useContext)(is);return(0,ir.jsx)(rM,{...t,layoutGroup:n,switchLayoutGroup:(0,rT.useContext)(iC),isPresent:e,safeToRemove:i})}let rk=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rR=rk.length,rj=t=>"string"==typeof t?parseFloat(t):t,rV=t=>"number"==typeof t||x.test(t);function rD(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rL=rO(0,.5,nh),rz=rO(.5,.95,tE);function rO(t,e,i){return n=>n<t?0:n>e?1:i(nf(t,e,n))}function rB(t,e){t.min=e.min,t.max=e.max}function rI(t,e){rB(t.x,e.x),rB(t.y,e.y)}function rF(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rN(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function r_(t,e,i,n,r){let[s,o,a]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,r=arguments.length>4?arguments[4]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(w.test(e)&&(e=parseFloat(e),e=eY(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eY(s.min,s.max,n);t===s&&(a-=e),t.min=rN(t.min,e,i,a,r),t.max=rN(t.max,e,i,a,r)}(t,e[s],e[o],e[a],e.scale,n,r)}let rU=["x","scaleX","originX"],rW=["y","scaleY","originY"];function rY(t,e,i,n){r_(t.x,e,rU,i?i.x:void 0,n?n.x:void 0),r_(t.y,e,rW,i?i.y:void 0,n?n.y:void 0)}function rH(t){return 0===t.translate&&1===t.scale}function rX(t){return rH(t.x)&&rH(t.y)}function rG(t,e){return t.min===e.min&&t.max===e.max}function rK(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rq(t,e){return rK(t.x,e.x)&&rK(t.y,e.y)}function rZ(t){return nK(t.x)/nK(t.y)}function r$(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rJ{add(t){tG(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tK(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tK(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let i=this.members.indexOf(t)-1;i>=0;i--){var e;let t=this.members[i];if(!1!==t.isPresent&&(null==(e=t.instance)?void 0:e.isConnected)!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=i.options,{layoutDependency:s}=t.options;if(void 0===r||r!==s){var n;t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(null==(n=t.root)?void 0:n.isUpdating)&&(t.isLayoutDirty=!0)}!1===t.options.crossfade&&i.hide()}}
1exitAnimationComplete(){this.members.forEach(t=>{var e,i,n,r,s;null==(e=(i=t.options).onExitComplete)||e.call(i),null==(r=t.resumingFrom)||null==(n=(s=r.options).onExitComplete)||n.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(null==(t=this.lead)?void 0:t.snapshot)&&(this.lead.snapshot=void 0)}constructor(){this.members=[]}}let rQ=(t,e)=>t.depth-e.depth;class r0{add(t){tG(this.children,t),this.isDirty=!0}remove(t){tK(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rQ),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}let r1={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},r2=["","X","Y","Z"],r3=0;function r5(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function r4(t){let{attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tq),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];let r=this.eventHandlers.get(t);r&&r.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){if(this.instance)return;this.isSVG=n1(t)&&!(n1(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;tR.read(()=>{n=window.innerWidth}),e(t,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=ea.now(),n=e=>{let{timestamp:r}=e,s=r-i;s>=250&&(tj(n),t(s-250))};return tR.setup(n,!0),()=>tj(n)}(r,250),rS.hasAnimatedSinceResize&&(rS.hasAnimatedSinceResize=!1,this.nodes.forEach(so)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeLayoutChanged:n,layout:s}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||r.getDefaultTransition()||sf,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=r.getProps(),u=!this.targetLayout||!rq(this.targetLayout,s),h=!i&&n;if(this.options.layoutRoot||this.resumeFrom||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iz(o,"layout"),onPlay:a,onComplete:l};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,h,t.path)}else i||so(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tj(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(su),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[iM];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tR,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}
1(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(si),this.nodes.forEach(se);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(sn);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sr),this.nodes.forEach(ss),this.nodes.forEach(r6),this.nodes.forEach(r8)):this.nodes.forEach(sn),this.clearAllSnapshots();let t=ea.now();tV.delta=o(0,1e3/60,t-tV.timestamp),tV.timestamp=t,tV.isProcessing=!0,tD.update.process(tV),tD.preRender.process(tV),tD.render.process(tV),tV.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,er.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(st),this.sharedNodes.forEach(sh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tR.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tR.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nK(this.snapshot.measuredBox.x)||nK(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=X()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rX(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eQ(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),sv((t=n).x),sv(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return X();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(sb))){let{scroll:t}=this.root;t&&(e5(i.x,t.offset.x),e5(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=X();if(rI(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rI(i,t),e5(i.x,r.offset.x),e5(i.y,r.offset.y))}return i}applyTransform(t){var e,i;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,s=r||X();rI(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(e5(s.x,-i.scroll.offset.x),e5(s.y,-i.scroll.offset.y)),eQ(i.latestValues)&&e8(s,i.latestValues,null==(e=i.layout)?void 0:e.layoutBox)}return eQ(this.latestValues)&&e8(s,this.latestValues,null==(i=this.layout)?void 0:i.layoutBox),s}removeTransform(t){let e=X();rI(e,t);for(let t=0;t<this.path.length;t++){var i;let n,r=this.path[t];eQ(r.latestValues)&&(r.instance&&(eJ(r.latestValues)&&r.updateSnapshot(),rI(n=X(),r.measurePageBox())),rY(e,r.latestValues,null==(i=r.snapshot)?void 0:i.layoutBox,n))}return eQ(this.latestValues)&&rY(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==tV.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,i,n,r;let s=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(s||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:l,layoutId:u}=this.options;if(!this.layout||!(l||u))return;this.resolvedRelativeTargetAt=tV.timestamp;let h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&((this.target||(this.target=X(),this.targetWithTransforms=X()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,i=this.relativeTarget,n=this.relativeParent.target,r=this.options.layoutAnchor||void 0,n$(e.x,i.x,n.x,null==r?void 0:r.x),n$(e.y,i.y,n.y,null==r?void 0:r.y
1)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rI(this.target,this.layout.layoutBox),e3(this.target,this.targetDelta)):rI(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&1!==this.animationProgress?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0),tC.value&&r1.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||eJ(this.parent.latestValues)||e0(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)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=X(),this.relativeTargetOrigin=X(),nQ(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),rI(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===tV.timestamp&&(n=!1),n)return;let{layout:r,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||!(r||s))return;rI(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i){let n,r,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=i.length;if(o){e.x=e.y=1;for(let l=0;l<o;l++){r=(n=i[l]).projectionDelta;let{visualElement:o}=n.options;if((!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(e5(t.x,-n.scroll.offset.x),e5(t.y,-n.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,e3(t,r)),s&&eQ(n.latestValues))){var a;e8(t,n.latestValues,null==(a=n.layout)?void 0:a.layoutBox)}}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=X());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rF(this.prevProjectionDelta.x,this.projectionDelta.x),rF(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nZ(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&r$(this.projectionDelta.x,this.prevProjectionDelta.x)&&r$(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tC.value&&r1.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Y(),this.projectionDelta=Y(),this.projectionDeltaWithTransform=Y()}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a=Y();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let l=X(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(sp));this.animationProgress=0;let p=null==n?void 0:n.interpolateProjection(t);this.mixTargetDelta=i=>{let n=i/1e3,r=null==p?void 0:p(n);if(r?(a.x.translate=r.x,a.x.scale=eY(t.x.scale,1,n),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=r.y,a.y.scale=eY(t.y.scale,1,n),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(sc(a.x,t.x,n),sc(a.y,t.y,n)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,f,m,g,v,y;nQ(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,g=this.relativeTargetOrigin,v=l,y=n,sd(m.x,g.x,v.x,y),sd(m.y,g.y,v.y,y),e&&(h=this.relativeTarget,f=e,rG(h.x,f.x)&&rG(h.y,f.y))&&(this.isProjectionDirty=!1),e||(e=X()),rI(e,this.relativeTarget)}
1u&&(this.animationValues=o,function(t,e,i,n,r,s){var o,a,l,u;r?(t.opacity=eY(0,null!=(o=i.opacity)?o:1,rL(n)),t.opacityExit=eY(null!=(a=e.opacity)?a:1,0,rz(n))):s&&(t.opacity=eY(null!=(l=e.opacity)?l:1,null!=(u=i.opacity)?u:1,n));for(let r=0;r<rR;r++){let s=rk[r],o=rD(e,s),a=rD(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rV(o)===rV(a)?(t[s]=Math.max(eY(rj(o),rj(a),n),0),(w.test(a)||w.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eY(e.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,n,d,c)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){var e,i,n;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(),null==(n=this.resumingFrom)||null==(i=n.currentAnimation)||i.stop(),this.pendingAnimation&&(tj(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tR.update(()=>{rS.hasAnimatedSinceResize=!0,t4.layout++,this.motionValue||(this.motionValue=ec(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(t,e,i){let n=G(t)?t:ec(t);return n.start(nL("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t4.layout--},onComplete:()=>{t4.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),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 t=this.getStack();t&&t.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 t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sy(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||X();let e=nK(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nK(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rI(e,i),e8(e,r),nZ(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rJ),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&r5("z",t,n,this.animationValues);for(let e=0;e<r2.length;e++)r5("rotate".concat(r2[e]),t,n,this.animationValues),r5("skew".concat(r2[e]),t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=iv(null==e?void 0:e.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iv(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!eQ(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();
1let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n="translate3d(".concat(r,"px, ").concat(s,"px, ").concat(o,"px) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),i){let{transformPerspective:t,rotate:e,pathRotation:r,rotateX:s,rotateY:o,skewX:a,skewY:l}=i;t&&(n="perspective(".concat(t,"px) ").concat(n)),e&&(n+="rotate(".concat(e,"deg) ")),r&&(n+="rotate(".concat(r,"deg) ")),s&&(n+="rotateX(".concat(s,"deg) ")),o&&(n+="rotateY(".concat(o,"deg) ")),a&&(n+="skewX(".concat(a,"deg) ")),l&&(n+="skewY(".concat(l,"deg) "))}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+="scale(".concat(a,", ").concat(l,")")),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;if(t.transformOrigin="".concat(100*o.origin,"% ").concat(100*a.origin,"% 0"),n.animationValues){var l,u;t.opacity=n===this?null!=(u=null!=(l=r.opacity)?l:this.latestValues.opacity)?u:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit}else t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(let e in eH){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eH[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?iv(null==e?void 0:e.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(se),this.root.sharedNodes.clear()}constructor(t={},e=null==i?void 0:i()){this.id=r3++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tC.value&&(r1.nodes=r1.calculatedTargetDeltas=r1.calculatedProjections=0),this.nodes.forEach(r9),this.nodes.forEach(sa),this.nodes.forEach(sl),this.nodes.forEach(r7),tC.addProjectionMetrics&&tC.addProjectionMetrics(r1)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new r0)}}}function r6(t){t.updateLayout()}function r8(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;if("size"===r)nH(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=nK(n);n.min=e[t].min,n.max=n.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";rB(s?i.measuredBox[t]:i.layoutBox[t],e[t])}else sy(r,i.layoutBox,e)&&nH(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=nK(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=Y();nZ(o,e,i.layoutBox);let a=Y();s?nZ(a,t.applyTransform(n,!0),i.measuredBox):nZ(a,e,i.layoutBox);let l=!rX(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=t.options.layoutAnchor||void 0,a=X();nQ(a,i.layoutBox,r.layoutBox,o);let l=X();nQ(l,e,s.layoutBox,o),rq(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r9(t){tC.value&&r1.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function r7(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function st(t){t.clearSnapshot()}function se(t){t.clearMeasurements()}function si(t){t.isLayoutDirty=!0,t.updateLayout()}function sn(t){t.isLayoutDirty=!1}function sr(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function ss(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function so(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sa(t){t.resolveTargetDelta()}function sl(t){t.calcProjection()}function su(t){t.resetSkewAndRotation()}function sh(t){t.removeLeadSnapshot()}function sc(t,e,i){t.translate=eY(e.translate,0,i),t.scale=eY(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sd(t,e,i,n){t.min=eY(e.min,i.min,n),t.max=eY(e.max,i.max,n)}function sp(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sf={duration:.45,ease:[.4,0,.1,1]},sm=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sg=sm("applewebkit/")&&!sm("chrome/")?Math.round:tE;function sv(t){t.min=sg(t.min),t.max=sg(t.max)}function sy(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rZ(e)-rZ(i)))}function sb(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let sw=r4({attachResizeListener:(t,e)=>nX(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||(null==(t=document.body)?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||(null==(e=document.body)?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),sx={current:void 0},sP=r4({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sx.current){let t=new sw({});t.mount(window),t.setOptions({layoutScroll:!0}),sx.current=t}return sx.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sS(t,e){let i=n2(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sT(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tR.postRender(()=>r(e,rr(e)))}function sE(t){return n0(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}t.s(["isHTMLElement",()=>sE],72846);let sA=(t,e)=>!!e&&(t===e||sA(t,e.parentElement)),sM=new WeakSet;function sC(t){return e=>{"Enter"===e.key&&t(e)}}function sk(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sR(t){return rn(t)&&!(nG.x||nG.y)}let sj=new WeakSet;function sV(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&tR.postRender(()=>r(e,rr(e)))}let sD=new WeakMap,sL=new WeakMap,sz=t=>{let e=sD.get(t.target);e&&e(t)},sO=t=>{t.forEach(sz)},sB={some:0,all:1},sI=function(t,e){if("undefined"==typeof Proxy)return ij;let i=new Map,n=(i,n)=>ij(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,ij(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends iV{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ef(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:i,options:n}=e;return function(t,e){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>nB(t,e,n)));else if("string"==typeof e)i=nB(t,e,n);else{let r="function"==typeof e?iD(t,e,n.custom):e;i=Promise.all(nz(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,i,n)})),i=nW(),n=!0,r=!1,s=e=>(i,n)=>{var r;let s=iD(t,n,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nI;t++){let n=ev[t],r=e.props[n];(em(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<n_;e++){var p,f;let m=nN[e],g=i[m],v=void 0!==a[m]?a[m]:l[m],y=em(v),b=m===o?g.isActive:null;!1===b&&(d=e);let w=v===l[m]&&v!==a[m]&&y;if(w&&(n||r)&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...c},!g.isActive&&null===b||!v&&!g.prevProp||ef(v)||"boolean"==typeof v)continue;if("exit"===m&&g.isActive&&!0!==b){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let x=(p=g.prevProp,"string"==typeof(f=v)?f!==p:!!Array.isArray(f)&&!nF(f,p)),P=x||m===o&&g.isActive&&!w&&y||e>d&&y,S=!1,T=Array.isArray(v)?v:[v],E=T.reduce(s(m),{});!1===b&&(E={});let{prevResolvedValues:A={}}=g,M={...A,...E},C=e=>{P=!0,h.has(e)&&(S=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in M){let e=E[t],i=A[t];if(!c.hasOwnProperty(t))(iO(e)&&iO(i)?!nF(e,i)||x:e!==i)?null!=e?C(t):h.add(t):void 0!==e&&h.has(t)?C(t):g.protectedKeys[t]=!0}g.prevProp=v,g.prevResolvedValues=E,g.isActive&&(c={...c,...E}),(n||r)&&t.blockInitialAnimation&&(P=!1);let k=w&&x,R=!k||S;P&&R&&u.push(...T.map(e=>{let i={type:m};if("string"==typeof e&&(n||r)&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=iD(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nO(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=iD(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),u.push({animation:e})}let m=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,r=!1,m?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nW(),r=!0}}}(t))}}},exit:{Feature:class extends iV{update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=iD(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...r}=i;for(let t in r){var n;null==(n=this.node.getValue(t))||n.jump(r[t])}}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=nY++,this.isExitComplete=!1}}},inView:{Feature:class extends iV{startObserver(){var t;null==(t=this.stopObserver)||t.call(this);let{viewport:e={}}=this.node.getProps(),{root:i,margin:n,amount:r="some",once:s}=e,o={root:i?i.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:sB[r]},a=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)};this.stopObserver=function(t,e,i){let n=function(t){let{root:e,...i}=t,n=e||document;sL.has(n)||sL.set(n,{});let r=sL.get(n),s=JSON.stringify(i);return r[s]||(r[s]=new IntersectionObserver(sO,{root:e,...i})),r[s]}(e);return sD.set(t,i),n.observe(t),()=>{sD.delete(t),n.unobserve(t)}}(this.node.current,o,a)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==i[t]}(t,e))&&this.startObserver()}unmount(){var t;null==(t=this.stopObserver)||t.call(this),this.hasEnteredView=!1,this.isInView=!1}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iV{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,r,s]=sS(t,i),o=t=>{let n=t.currentTarget;if(!sR(t)||sj.has(t))return;sM.add(n),i.stopPropagation&&sj.add(t);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sM.has(n)&&sM.delete(n),sR(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||sA(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),sE(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=sC(()=>{if(sM.has(i))return;sk(i,"down");let t=sC(()=>{sk(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sk(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),re.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sV(this.node,e,"Start"),(t,e)=>{let{success:i}=e;return sV(this.node,t,i?"End":"Cancel")}),{useGlobalTarget:e,stopPropagation:(null==i?void 0:i.tap)===!1})}unmount(){}}},focus:{Feature:class extends iV{onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&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=iI(nX(this.node.current,"focus",()=>this.onFocus()),nX(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}},hover:{Feature:class extends iV{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,r,s]=sS(t,i);return n.forEach(t=>{let i,n=!1,s=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nG.x||nG.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),s}(t,(t,e)=>(sT(this.node,e,"Start"),t=>sT(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iV{onPointerDown(t){this.session=new ru(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ro(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rP(t),onStart:rP(e),onMove:rP(i),onEnd:(t,e)=>{delete this.session,n&&tR.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=rs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=tE}}},drag:{Feature:class extends iV{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tE}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}constructor(t){super(t),this.removeGroupControls=tE,this.removeListeners=tE,this.controls=new rb(t)}},ProjectionNode:sP,MeasureLayout:rC},layout:{ProjectionNode:sP,MeasureLayout:rC}},(t,e)=>{var i;return(null!=(i=e.isSVG)?i:ii(t))?new eq(e):new e7(e,{allowProjection:t!==it.Fragment})});function sF(){ex.current||eS();let[t]=(0,it.useState)(ew.current);return t}t.s(["useReducedMotion",()=>sF],72328)},67881,33209,t=>{"use strict";t.s(["Button",()=>o],67881);var e=t.i(43476),i=t.i(22016);function n(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter(Boolean).join(" ")}t.s(["cn",()=>n],33209);let r={md:"px-5 py-2.5 text-sm",lg:"px-7 py-3.5 text-[0.95rem]"},s={primary:"bg-oxblood text-cream hover:bg-oxblood-deep focus-visible:ring-charcoal focus-visible:ring-offset-cream",outline:"border border-oxblood text-oxblood hover:bg-oxblood hover:text-cream focus-visible:ring-oxblood focu
1s-visible:ring-offset-cream",outlineLight:"border border-cream/55 text-cream hover:bg-cream hover:text-espresso focus-visible:ring-cream focus-visible:ring-offset-espresso"};function o(t){let{variant:o="primary",size:a="md",className:l,children:u}=t,h=n("inline-flex items-center justify-center gap-2 rounded-lg font-medium tracking-wide whitespace-nowrap transition-[background-color,color,border-color,transform] duration-200 ease-out active:translate-y-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",r[a],s[o],l);if("href"in t&&t.href){let{href:n,external:r}=t,s=/^https?:\/\//.test(n),o=/^(tel:|mailto:|#)/.test(n);return s||o?(0,e.jsx)("a",{href:n,className:h,...(null!=r?r:s)?{target:"_blank",rel:"noopener noreferrer"}:{},children:u}):(0,e.jsx)(i.default,{href:n,className:h,children:u})}let{variant:c,size:d,className:p,children:f,...m}=t;return(0,e.jsx)("button",{className:h,...m,children:u})}},51028,t=>{"use strict";t.s(["IMAGES",()=>e]);let e={logo:{src:"/images/opt/logo.webp",alt:"Tony's Pizza Palace"},logoFooter:{src:"/images/opt/tonys-footer-logo.webp",alt:"Tony's Pizza Palace"},gravitas:{src:"/images/opt/gravitas-logo-2.webp",alt:"Gravitas Digital"},heroCheesePull:{src:"/images/opt/margarita-pizza-cheese-pull-new-clear.webp",alt:"A New York slice lifted from the pie in a long stretch of melted cheese"},rollingPizza:{src:"/images/opt/perfect-circle-meat-pizza-no-background.webp",alt:"A whole pepperoni, ham and sausage pizza"},margherita:{src:"/images/opt/margerita-pizza.webp",alt:"A Margherita pizza with tomatoes, fresh basil and bocconcini"},originalNY:{src:"/images/opt/margarita-pizza-cheese-pull.webp",alt:"A New York cheese slice lifted from the pie in a stretch of cheese"},deluxe:{src:"/images/opt/meat-and-veggy-pizza.webp",alt:"A loaded pizza with cured meats and fresh vegetables"},newYorkNewYork:{src:"/images/opt/new-york-new-york-real.webp",alt:"A New York, New York pizza, double dry-cured pepperoni on the pan at the table"},salsFamous:{src:"/images/opt/sals-famous-pie.webp",alt:"Sal's Deluxe, loaded with prosciutto, capocollo and bocconcini"},palaceSpecial:{src:"/images/opt/palace-special-updated.webp",alt:"The Palace Special, loaded with meats and vegetables"},pizzaRucola:{src:"/images/opt/pizza-rucola.webp",alt:"Pizza Rucola, with baby arugula, prosciutto, cherry tomatoes and parmigiano"},italianPretzel:{src:"/images/tonys italian pretzel.avif",alt:"Tony's Italian pretzel, twisted from house pizza dough"},penneSausage:{src:"/images/opt/italian-sausage-and-penne-pasta.webp",alt:"Penne in a hearty meat sauce with grated cheese and a roll"},pettiPollo:{src:"/images/opt/petti-di-pollo-alla-griglia.webp",alt:"Grilled chicken breast with lemon, a green salad and a fresh Italian roll"},meatlovers:{src:"/images/meatlovers pizza.webp",alt:"A meat lover's pizza loaded with sausage, pepperoni and bacon"},pepperoni:{src:"/images/opt/pepperoni-pizza.webp",alt:"A classic pepperoni pizza"},hamPepperoniBox:{src:"/images/opt/pepperoni-and-ham-pizza-in-box.webp",alt:"A pepperoni and ham pizza in a takeout box"},arugula:{src:"/images/opt/arugula-pizza-very-good-pic.webp",alt:"A pizza finished with a pile of fresh arugula"},prosciuttoArugula:{src:"/images/opt/pizza-rucola.webp",alt:"A pizza with prosciutto, fresh arugula, cherry tomatoes and parmesan"},pizzaWood:{src:"/images/opt/pizza-on-wood-table.webp",alt:"A whole pizza on a dark wood table"},pizzaBox:{src:"/images/opt/pizza-in-box.webp",alt:"A pizza boxed for takeout"},wheelClassicNY:{src:"/images/opt/classic-ny-vertical.webp",alt:"The Classic New York pizza, thin crust with mozzarella and tomato sauce"},wheelSalsFamous:{src:"/images/opt/sals-famous-vertical.webp",alt:"Sal's Famous Pie loaded with prosciutto, capocollo and bocconcini"},wheelPalaceSpecial:{src:"/images/opt/palace-special-vertical.webp",alt:"The Palace Special, loaded with meats, peppers and onions"},wheelRucola:{src:"/images/opt/pizza-rucola-vertical.webp",alt:"Pizza Rucola with prosciutto, baby arugula, cherry tomatoes and parmigiano"},interior:{src:"/images/opt/tonys-pizza-place-interior-high-quality.webp",alt:"Inside Tony's Pizza Palace, dark wood and warm lighting"},interiorHero:{src:"/images/opt/tonys-interior-hero.webp",alt:"The dining room at Tony's, warm lighting over dark booths and round wooden tables set before service"},interiorEmpty:{src:"/images/opt/inside-venue-empty-tables.webp",alt:"The dining room at Tony's, tables set before service"},exterior:{src:"/images/opt/tonys-pizza-outside-with-tonys-signage.webp",alt:"The exterior of Tony's Pizza Palace with its street signage"},giftBanner:{src:"/images/opt/tonys-gift-banner.webp",alt:"A Tony's pizzaiolo in branded whites sliding a fresh pie from the oven on a wooden peel"},doughToss:{src:"/images/opt/kid-tossing-dough.webp",alt:"A young member of the family tossing dough, photographed in black and white"},archive1:{src:"/images/opt/old-pizzaiolo-oven.webp",alt:"A pizzaiolo sliding a pie into the oven in Tony's early years"},archive2:{src:"/images/opt/kid-tossing-dough.webp",alt:"A young member of the family tossing dough, photographed in black and white"},archive3:{src:"/images/opt/old-storefront.webp",alt:"The Tony's Pizza Palace storefront and signage in the 1980s"},oldInterior:{src:"/images/opt/old-interior.webp",alt:"Inside the dining room in the early years, tables set with linens"},oldPizzaBox:{src:"/images/opt/old-pizza-box.webp",alt:"An original Tony's Pizza Palace takeout box with the first logo"},memoryWall:{src:"/images/opt/memory-wall.webp",alt:"The memory wall of old black-and-white photographs at Tony's"},oldStorefront2:{src:"/images/opt/old-storefront-2.webp",alt:"The Tony's storefront in its early years, awning and signage"},salsDeluxeReal:{src:"/images/opt/sals-deluxe-real.webp",alt:"Sal's Deluxe, prosciutto, capocollo and bocconcini on marinated sauce"},margheritaReal:{src:"/images/opt/margherita-real.webp",alt:"A Tony's Margherita pizza"},empressMocktail:{src:"/images/opt/empress-mocktail.webp",alt:"The Empress 0.0 75 mocktail, sparkling and violet, with a lemon twist"},wineGlassesReal:{src:"/images/opt/wine-glasses-real.webp",alt:"A row of red wine glasses being poured at the table"},caprese:{src:"/images/opt/caprese-ingredients.webp",alt:"Fresh basil, tomato and mozzarella laid out in the colours of the Italian flag"},newYorkSlices:{src:"/images/opt/margerita-pizza.webp",alt:"A classic New York cheese pizza, hand-cut into slices"},doordashButton:{src:"/images/opt/doordash-button.webp",alt:"Order online with DoorDash"},rusticaCalabreseReal:{src:"/images/opt/rustica-calabrese-real.webp",alt:"Rustica Calabrese, casalingo salami, kalamata olives and pepper"},vegetarianReal:{src:"/images/opt/vegetarian-pizza-real.webp",alt:"The Vegetarian, peppers, onions, tomato, olives, mushrooms and feta"},marinaraPizzaReal:{src:"/images/opt/marinara-pizza.webp",alt:"The Marinara, marinated tomato sauce, anchovies, garlic and spices, no cheese"},pescatorePizza:{src:"/images/opt/pescatore-pizza.webp",alt:"Alla Pescatore, a seafood pizza baked under the cheese"},squareSicilian:{src:"/images/opt/square-sicilian.webp",alt:"A square Sicilian pizza, thick and golden"},jimSpecial:{src:"/images/opt/jim-special.webp",alt:"Jim's Special Sicilian, double-layered and loaded"}
1,fettuccineCarbonara:{src:"/images/opt/fettuccine-carbonara.webp",alt:"Fettuccine carbonara, finished with parmigiano"},penneArrabbiataReal:{src:"/images/opt/penne-arrabbiata.webp",alt:"Penne arrabbiata in a spicy marinated tomato sauce"},spaghettiMarinaraReal:{src:"/images/opt/spaghetti-marinara.webp",alt:"Spaghetti marinara with basil and roasted garlic"},spaghettiMediterraneo:{src:"/images/opt/spaghetti-mediterraneo.webp",alt:"Spaghetti Mediterraneo, a pound of mussels in caper tomato sauce"},tortelliniPanna:{src:"/images/opt/tortellini-panna.webp",alt:"Tortellini alla panna in an Alfredo sauce"},bbqRibs:{src:"/images/opt/bbq-ribs.webp",alt:"Coste al Forno, barbecued baby back ribs with pasta"},houseSaladReal:{src:"/images/opt/house-salad-real.webp",alt:"A fresh house salad"},classicNYVertical:{src:"/images/opt/classic-ny-vertical.webp",alt:"A classic New York cheese pizza, overhead"},musselsShrimpPasta:{src:"/images/opt/muscles-shrimp-pasta.webp",alt:"Pasta with mussels and shrimp"},linguineVongole:{src:"/images/opt/linguini-vongle-bianco-con-gamberetti-white-clam-sauce-with-shrimp.webp",alt:"Linguine vongole bianco with shrimp in a white clam sauce"},pastaPlain:{src:"/images/opt/plain-pasta-in-dish.webp",alt:"A dish of pasta with tomato sauce"},pastaParm:{src:"/images/opt/pasta-with-parmesean-on-top.webp",alt:"Pasta finished with grated parmesan"},ribsPasta:{src:"/images/opt/ribs-and-pasta-and-bun.webp",alt:"Baby back ribs served with pasta"},chickenSalad:{src:"/images/opt/chicken-salad-dish.webp",alt:"A chicken salad"},salad:{src:"/images/opt/salad.webp",alt:"A fresh house salad"},garlicBread:{src:"/images/opt/garlic-bread.webp",alt:"Garlic bread, golden and crisp"},cheesecake:{src:"/images/opt/chocolate-cheesecake.webp",alt:"A slice of chocolate cheesecake"},champagne:{src:"/images/opt/champagne-on-table.webp",alt:"A glass of champagne on a table"},peroni:{src:"/images/opt/peroni-beers-in-bucket-on-table-with-two-poured-peroni-beers.webp",alt:"Bottles of Peroni on ice with two poured glasses"},cocktailHero:{src:"/images/opt/cocktails.webp",alt:"Cocktails served at Tony's bar"},aperolSpritz:{src:"/images/opt/aperol-spritz.webp",alt:"An Aperol spritz"},campariNegroni:{src:"/images/opt/campari-negroni.webp",alt:"A Campari cocktail"},cocktailBar:{src:"/images/opt/cocktail-bar.webp",alt:"Cocktails at the bar"},wineHero:{src:"/images/opt/wine-menu-photo.webp",alt:"Friends sharing wine and antipasti at the table"},wineItalian:{src:"/images/opt/italian-wine.webp",alt:"A glass of Italian red wine"},wineGlass:{src:"/images/opt/wine-glass.webp",alt:"A poured glass of wine"},wineCork:{src:"/images/opt/wine-cork.webp",alt:"A wine cork and bottle"},wineMasi:{src:"/images/opt/masi-wine-bottle.webp",alt:"A bottle of Masi wine"}}},66065,t=>{"use strict";t.s(["ORDER_ONLINE_URL",()=>e]);let e="https://order.online/store/tony-s-pizza-palace-edmonton-155432"},62836,t=>{"use strict";t.s(["Nav",()=>d]);var e=t.i(43476),i=t.i(71645),n=t.i(22016),r=t.i(57688),s=t.i(88653),o=t.i(46932),a=t.i(72328),l=t.i(67881),u=t.i(51028),h=t.i(66065);let c=[{label:"Menu",href:"/menu"},{label:"Our Story",href:"/history"},{label:"Visit",href:"/reservations"}];function d(){let[t,d]=(0,i.useState)(!1),p=(0,a.useReducedMotion)();return(0,i.useEffect)(()=>{if(!t)return;let e=t=>"Escape"===t.key&&d(!1);window.addEventListener("keydown",e);let i=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",e),document.body.style.overflow=i}},[t]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("header",{className:"fixed inset-x-0 top-0 z-40 border-b border-hairline bg-cream/95 backdrop-blur",children:(0,e.jsxs)("nav",{className:"mx-auto flex h-[92px] max-w-[1180px] items-center justify-between px-5 sm:h-[124px] sm:px-8",children:[(0,e.jsx)(n.default,{href:"/","aria-label":"Tony's Pizza Palace, home",className:"shrink-0",children:(0,e.jsx)(r.default,{src:u.IMAGES.logo.src,alt:"Tony's Pizza Palace",width:87,height:112,priority:!0,className:"h-[80px] w-auto sm:h-[112px]"})}),(0,e.jsxs)("div",{className:"hidden items-center gap-8 md:flex",children:[c.map(t=>(0,e.jsx)(n.default,{href:t.href,className:"text-sm font-medium tracking-wide text-charcoal transition-colors hover:text-oxblood",children:t.label},t.href)),(0,e.jsx)(l.Button,{href:h.ORDER_ONLINE_URL,children:"Order Online"})]}),(0,e.jsx)("button",{type:"button",onClick:()=>d(!0),"aria-label":"Open menu","aria-expanded":t,className:"flex h-10 w-10 items-center justify-center text-charcoal md:hidden",children:(0,e.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,
1children:(0,e.jsx)("path",{d:"M3 6h18M3 12h18M3 18h18",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})})]})}),(0,e.jsx)(s.AnimatePresence,{children:t&&(0,e.jsxs)(o.motion.div,{className:"fixed inset-0 z-[60] flex w-full flex-col overflow-y-auto overscroll-contain bg-espresso md:hidden",initial:!p&&{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.22},children:[(0,e.jsxs)("div",{className:"flex h-[92px] shrink-0 items-center justify-between px-5 sm:h-[124px]",children:[(0,e.jsx)(r.default,{src:u.IMAGES.logo.src,alt:"Tony's Pizza Palace",width:36,height:46,className:"h-[46px] w-auto brightness-0 invert"}),(0,e.jsx)("button",{type:"button",onClick:()=>d(!1),"aria-label":"Close menu",className:"flex h-10 w-10 items-center justify-center text-cream",children:(0,e.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,e.jsx)("path",{d:"M6 6l12 12M18 6L6 18",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})})]}),(0,e.jsxs)("div",{className:"flex flex-col px-5 pt-6",children:[c.map(t=>(0,e.jsx)(n.default,{href:t.href,onClick:()=>d(!1),className:"border-b border-hairline-dark py-4 font-display text-3xl text-cream",children:t.label},t.href)),(0,e.jsx)("div",{className:"pt-8",children:(0,e.jsx)(l.Button,{href:h.ORDER_ONLINE_URL,size:"lg",className:"w-full",children:"Order Online"})})]})]})})]})}},10542,95420,t=>{"use strict";t.s(["useScroll",()=>Y],10542);var e=t.i(60140),i=t.i(30551),n=t.i(86427),r=t.i(65566),s=t.i(71645),o=t.i(60830),a=t.i(87022);function l(t,e){let i,n=()=>{let{currentTime:n}=e,r=(null===n?0:n.value)/100;i!==r&&t(r),i=r};return a.frame.preUpdate(n,!0),()=>(0,a.cancelFrame)(n)}function u(t){return"undefined"!=typeof window&&(t?(0,i.supportsViewTimeline)():(0,i.supportsScrollTimeline)())}var h=t.i(61327),c=t.i(83920),d=t.i(25791);let p=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),f={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function m(t,e,i,n){let r=i[e],{length:s,position:o}=f[e],a=r.current,l=i.time;r.current=Math.abs(t["scroll".concat(o)]),r.scrollLength=t["scroll".concat(s)]-t["client".concat(s)],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,c.progress)(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:(0,d.velocityPerSecond)(r.current-a,u)}t.i(47167);var g=t.i(44230),v=t.i(15923),y=t.i(76959),b=t.i(72846);let w={start:0,center:.5,end:1};function x(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=0;if(t in w&&(t=w[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let P=[0,0],S={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},T={x:0,y:0},E=new WeakMap,A=new WeakMap,M=new WeakMap,C=new WeakMap,k=new WeakMap,R=t=>t===document.scrollingElement?window:t;function j(t){let{container:e=document.scrollingElement,trackContentSize:i=!1,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return o.noop;let r=M.get(e);r||(r=new Set,M.set(e,r));let s=function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{measure:e=>{!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=arguments.length>2?arguments[2]:void 0;if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight}(t,n.target,i),m(t,"x",i,e),m(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=S.All}=i,{target:r=t,axis:s="y"}=i,o="y"===s?"height":"width",a=r!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if((0,b.isHTMLElement)(n))i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,t):T,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight}
1,u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let h=!e[s].interpolate,c=n.length;for(let t=0;t<c;t++){let i=function(t,e,i,n){let r=Array.isArray(t)?t:P,s=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,w[t]?t:"0"]),(s=x(r[0],i,n))-x(r[1],e)}(n[t],u[o],l[o],a[s]);h||i===e[s].interpolatorOffsets[t]||(h=!0),e[s].offset[t]=i}h&&(e[s].interpolate=(0,g.interpolate)(e[s].offset,(0,v.defaultOffset)(n),{clamp:!1}),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=(0,y.clamp)(0,1,e[s].interpolate(e[s].current))}(t,i,n)},notify:()=>e(i)}}(e,t,{time:0,x:p(),y:p()},n);if(r.add(s),!E.has(e)){let t=()=>{for(let t of r)t.measure(a.frameData.timestamp);a.frame.preUpdate(i)},i=()=>{for(let t of r)t.notify()},n=()=>a.frame.read(t);E.set(e,n);let s=R(e);window.addEventListener("resize",n),e!==document.documentElement&&A.set(e,(0,h.resize)(e,n)),s.addEventListener("scroll",n),n()}if(i&&!k.has(e)){let t=E.get(e),i={width:e.scrollWidth,height:e.scrollHeight};C.set(e,i);let n=a.frame.read(()=>{let n=e.scrollWidth,r=e.scrollHeight;(i.width!==n||i.height!==r)&&(t(),i.width=n,i.height=r)},!0);k.set(e,n)}let l=E.get(e);return a.frame.read(l,!1,!0),()=>{(0,a.cancelFrame)(l);let t=M.get(e);if(!t||(t.delete(s),t.size))return;let i=E.get(e);if(E.delete(e),i){var n;R(e).removeEventListener("scroll",i),null==(n=A.get(e))||n(),window.removeEventListener("resize",i)}let r=k.get(e);r&&((0,a.cancelFrame)(r),k.delete(e)),C.delete(e)}}let V=[[S.Enter,"entry"],[S.Exit,"exit"],[S.Any,"cover"],[S.All,"contain"]],D={start:0,end:1};function L(t){if(!t)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[e,i]of V)if(function(t,e){let i=function(t){if(2!==t.length)return;let e=[];for(let i of t)if(Array.isArray(i))e.push(i);else{if("string"!=typeof i)return;let t=function(t){let e=t.trim().split(/\s+/);if(2!==e.length)return;let i=D[e[0]],n=D[e[1]];if(void 0!==i&&void 0!==n)return[i,n]}(i);if(!t)return;e.push(t)}return e}(t);if(!i)return!1;for(let t=0;t<2;t++){let n=i[t],r=e[t];if(n[0]!==r[0]||n[1]!==r[1])return!1}return!0}(t,e))return{rangeStart:"".concat(i," 0%"),rangeEnd:"".concat(i," 100%")}}let z=new Map;function O(t){let e={value:0},i=j(i=>{e.value=100*i[t.axis].progress},t);return{currentTime:e,cancel:i}}function B(t){var e,i;let{source:n,container:r,...s}=t,{axis:o}=s;n&&(r=n);let a=z.get(r);a||(a=new Map,z.set(r,a));let l=null!=(e=s.target)?e:"self",h=a.get(l);h||(h={},a.set(l,h));let c=o+(null!=(i=s.offset)?i:[]).join(",");return h[c]||(s.target&&u(s.target)?L(s.offset)?h[c]=new ViewTimeline({subject:s.target,axis:o}):h[c]=O({container:r,...s}):u()?h[c]=new ScrollTimeline({source:r,axis:o}):h[c]=O({container:r,...s})),h[c]}function I(t){let{axis:e="y",container:i=document.scrollingElement,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
1if(!i)return o.noop;let r={axis:e,container:i,...n};return"function"==typeof t?function(t,e){return 2===t.length||e&&(e.target||e.offset)?j(i=>{t(i[e.axis].progress,i)},e):l(t,B(e))}(t,r):function(t,e){let i=B(e),n=e.target?L(e.offset):void 0,r=e.target?u(e.target)&&!!n:u();return t.attachTimeline({timeline:r?i:void 0,...n&&r&&{rangeStart:n.rangeStart,rangeEnd:n.rangeEnd},observe:t=>(t.pause(),l(e=>{t.time=t.iterationDuration*e},i))})}(t,r)}var F=t.i(47414),N=t.i(74008);let _=()=>({scrollX:(0,n.motionValue)(0),scrollY:(0,n.motionValue)(0),scrollXProgress:(0,n.motionValue)(0),scrollYProgress:(0,n.motionValue)(0)}),U=t=>!!t&&!t.current;function W(t,i,n,r){return{factory:s=>{let o,a=()=>{if(U(n)||U(r))return void e.microtask.read(a);o=I(s,{...i,axis:t,container:(null==n?void 0:n.current)||void 0,target:(null==r?void 0:r.current)||void 0})};return e.microtask.read(a),()=>{(0,e.cancelMicrotask)(a),null==o||o()}},times:[0,1],keyframes:[0,1],ease:t=>t,duration:1}}function Y(){var t;let{container:n,target:o,...a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=(0,F.useConstant)(_);t=a.offset,"undefined"!=typeof window&&(o?(0,i.supportsViewTimeline)()&&!!L(t):(0,i.supportsScrollTimeline)())&&(l.scrollXProgress.accelerate=W("x",a,n,o),l.scrollYProgress.accelerate=W("y",a,n,o));let u=(0,s.useRef)(null),h=(0,s.useRef)(!1),c=(0,s.useCallback)(()=>(u.current=I((t,e)=>{let{x:i,y:n}=e;l.scrollX.set(i.current),l.scrollXProgress.set(i.progress),l.scrollY.set(n.current),l.scrollYProgress.set(n.progress)},{...a,container:(null==n?void 0:n.current)||void 0,target:(null==o?void 0:o.current)||void 0}),()=>{var t;null==(t=u.current)||t.call(u)}),[n,o,JSON.stringify(a.offset)]);return(0,N.useIsomorphicLayoutEffect)(()=>{if(h.current=!1,!(U(n)||U(o)))return c();h.current=!0},[c]),(0,s.useEffect)(()=>{let t;if(!h.current)return;let i=()=>{let e=U(n),i=U(o);(0,r.invariant)(!e,"Container ref is defined but not hydrated","use-scroll-ref"),(0,r.invariant)(!i,"Target ref is defined but not hydrated","use-scroll-ref"),e||i||(t=c())};return e.microtask.read(i),()=>{(0,e.cancelMicrotask)(i),null==t||t()}},[c]),l}t.s(["useTransform",()=>function t(e,i,r,s){if("function"==typeof e){n.collectMotionValues.current=[],e();let t=X(n.collectMotionValues.current,e);return n.collectMotionValues.current=void 0,t}if(void 0!==r&&!Array.isArray(r)&&"function"!=typeof i){var o=e,a=i,l=r,u=s;let n=(0,F.useConstant)(()=>Object.keys(l)),h=(0,F.useConstant)(()=>({}));for(let e of n)h[e]=t(o,a,l[e],u);return h}let h="function"==typeof i?i:function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];let n=!Array.isArray(e[0]),r=n?0:-1,s=e[0+r],o=e[1+r],a=e[2+r],l=e[3+r],u=(0,g.interpolate)(o,a,l);return n?u(s):u}(i,r,s),c=Array.isArray(e)?G(e,h):G([e],t=>{let[e]=t;return h(e)}),d=Array.isArray(e)?void 0:e.accelerate;return d&&!d.isTransformed&&"function"!=typeof i&&Array.isArray(r)&&(null==s?void 0:s.clamp)!==!1&&(c.accelerate={...d,times:i,keyframes:r,isTransformed:!0,...(null==s?void 0:s.ease)?{ease:s.ease}:{}}),c}],95420);var H=t.i(37806);function X(t,e){let i=function(t){let e=(0,F.useConstant)(()=>(0,n.motionValue)(t)),{isStatic:i}=(0,s.useContext)(H.MotionConfigContext);if(i){let[,i]=(0,s.useState)(t);(0,s.useEffect)(()=>e.on("change",i),[])}return e}(e()),r=()=>i.set(e());return r(),(0,N.useIsomorphicLayoutEffect)(()=>{let e=()=>a.frame.preRender(r,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,a.cancelFrame)(r)}}),i}function G(t,e){let i=(0,F.useConstant)(()=>[]);return X(t,()=>{i.length=0;let n=t.length;for(let e=0;e<n;e++)i[e]=t[e].get();return e(i)})}},46307,t=>{"use strict";t.s(["ParallaxImage",()=>l]);var e=t.i(43476),i=t.i(71645),n=t.i(57688),r=t.i(46932),s=t.i(10542),o=t.i(95420),a=t.i(72328);function l(t){let{image:l,priority:u=!1,sizes:h="100vw",className:c,grayscale:d=!1,amount:p=8,zoom:f=!1,objectPosition:m}=t,g=(0,i.useRef)(null),v=(0,a.useReducedMotion)(),{scrollYProgress:y}=(0,s.useScroll)({target:g,offset:["start end","end start"]}),b=(0,o.useTransform)(y,[0,1],["-".concat(p,"%"),"".concat(p,"%")]);return(0,e.jsx)("div",{ref:g,className:"absolute inset-0 overflow-hidden ".concat(null!=c?c:""),children:(0,e.jsx)(r.motion.div,{className:"absolute inset-[-12%]",style:v?void 0:{y:b},children:(0,e.jsx)("div",{className:"relative h-full w-full ".concat(f&&!v?"ken-burns":""),children:(0,e.jsx)(n.default,{src:l.src,alt:l.alt,fill:!0,priority:u,sizes:h,style:m?{objectPosition:m}:void 0,className:"object-cover ".concat(d?"grayscale":"")})})})})}}
1,19408,t=>{"use strict";t.s(["Reveal",()=>r]);var e=t.i(43476),i=t.i(46932),n=t.i(72328);function r(t){let{children:r,delay:s=0,y:o=28,className:a}=t,l=(0,n.useReducedMotion)();return(0,e.jsx)(i.motion.div,{className:a,initial:!l&&{opacity:0,y:o},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"0px 0px -80px 0px"},transition:{duration:.75,delay:s,ease:[.16,1,.3,1]},children:r})}}]);
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.