import{__esmMin as e}from"./rolldown-runtime.DejPTh6N.mjs";import{B as t,Ga as n,I as r,J as i,L as a,X as o,Y as s,Z as c,ae as l,de as u,e as d,fe as f,ie as p,init_jsx_runtime as m,init_npm_react_18_2 as h,init_npm_react_dom_18_2 as g,init_ssg_sandbox_shims as _,j as v,l as y,navigator as b,p as x,pe as S,q as C,re as w,se as T,te as E,u as D,ue as O,window as k,x as A,ye as ee,z as j}from"./react.f0h8NNy8.mjs";import{AnimatePresence as te,LayoutGroup as ne,MotionConfig as re,MotionConfigContext as ie,MotionGlobalConfig as ae,MotionValue as oe,PresenceContext as se,SwitchLayoutGroupContext as ce,WillChangeMotionValue as le,__commonJS as ue,__decorateElement as M,__decoratorMetadata as de,__decoratorStart as fe,__privateAdd as N,__privateGet as P,__privateMethod as F,__privateSet as pe,__publicField as I,__runInitializers as L,__toESM as me,addScaleCorrector as he,animate as ge,animateValue as _e,cancelFrame as ve,frame as ye,inView as R,init_chunk_WPXZNJRU as be,init_chunk_YI6JBCRS as xe,interpolate as Se,isHTMLElement as Ce,isMotionComponent as we,isMotionValue as Te,isValidMotionProp as Ee,motion as De,motionValue as Oe,noop as ke,optimizedAppearDataAttribute as Ae,resize as je,resolveMotionValue as Me,scroll as Ne,spring as Pe,stagger as Fe,transform as Ie,unwrapMotionComponent as Le,useAnimation as Re,useAnimationFrame as ze,useComposedRefs as Be,useInView as Ve,useInstantLayoutTransition as He,useInstantTransition as Ue,useIsomorphicLayoutEffect as We,useMotionValue as Ge,usePageInView as Ke,usePresence as qe,useReducedMotion as Je,useReducedMotionConfig as Ye,useResetProjection as Xe,useScroll as Ze,useSpring as Qe,useTransform as $e,visualElementStore as et,wrap as tt}from"./motion.Deh-MSDt.mjs";function nt(e){return typeof e==`object`&&!!e&&!i(e)&&em in e}function rt(e,t=`default`){let n,r,i=!1,a,o=()=>(n||=e().then(e=>{if(!(t in e))throw Error(`Module does not contain export '${t}'`);return r=e[t],r}).catch(e=>{a=e}),n),c=s(function(e,t){if(O(()=>{i=!0},[]),a)throw a;if(!r)throw o();return x(r,{ref:t,...e})});return c.preload=o,c.getStatus=()=>({hasLoaded:r!==void 0,hasRendered:i}),c}function it(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function at(e){return e===null||!(nm in e)?!1:typeof e.equals==`function`}function ot(e,t){return e===t?!0:e!==e&&t!==t}function st(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!ot(e[r],t[r]))return!1;return!0}function ct(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!mt(e[r],t[r],!0))return!1;return!0}function lt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!ot(r,t.get(n)))return!1;return!0}function ut(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!mt(r,t.get(n),!0))return!1;return!0}function dt(e,t){if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n))return!1;return!0}function ft(e,t){let n=tm(e);if(n.length!==tm(t).length)return!1;for(let r of n){if(!it(t,r))return!1;if(r===`_owner`&&it(e,`$$typeof`)&&e.$$typeof)continue;if(!ot(e[r],t[r]))return!1}return!0}function pt(e,t){let n=tm(e);if(n.length!==tm(t).length)return!1;for(let r of n){if(!it(t,r))return!1;if(r===`_owner`&&it(e,`$$typeof`)&&e.$$typeof)continue;if(!mt(e[r],t[r],!0))return!1}return!0}function mt(e,t,n){if(e===t)return!0;if(!e||!t)return e!==e&&t!==t;let r=typeof e;if(r!==typeof t||r!==`object`)return!1;let i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return n?ct(e,t):st(e,t);if(i!==a)return!1;let o=e instanceof Map,s=t instanceof Map;if(o&&s)return n?ut(e,t):lt(e,t);if(o!==s)return!1;let c=e instanceof Set,l=t instanceof Set;if(c&&l)return dt(e,t);if(c!==l)return!1;let u=e instanceof Date,d=t instanceof Date;if(u&&d)return e.getTime()===t.getTime();if(u!==d)return!1;let f=e instanceof RegExp,p=t instanceof RegExp;return f&&p?e.toString()===t.toString():f===p?at(e)&&at(t)?e.equals(t):n?pt(e,t):ft(e,t):!1}function ht(e,t,n=!0){try{return mt(e,t,n)}catch(e){if(e instanceof Error&&/stack|recursion/iu.exec(e.message))return console.warn(`Warning: isEqual does not handle circular references.`,e.name,e.message),!1;throw e}}function gt(e){return d.useCallback(t=>e[t],[e])}function _t({api:e,children:t}){return x(rm.Provider,{value:e,children:t})}function vt(){return d.useContext(rm)}function yt({routes:e,children:t}){let n=gt(e),r=T(()=>({getRoute:n}),[n]);return x(rm.Provider,{value:r,children:t})}function bt(){let e=vt(),t=w(im),n=t?.routeId??e.currentRouteId,r=t?.routeId?t.pathVariables:e.currentPathVariables,i=n?e.getRoute?.call(e,n):void 0;return T(()=>{if(!(!n||!i))return{...i,id:n,pathVariables:r}},[n,r,i])}function xt(){let e=bt();if(e)return`${e.id}-${JSON.stringify(e.pathVariables)}`}function St(e){let t=bt(),n=d.useRef(t);ht(n.current,t)||!t||(n.current=t,e(t))}function Ct(e,t){if(t&&e)return e.elements&&t in e.elements?e.elements[t]:t}function wt(e){let t=[`pointerdown`,`pointerup`,`keydown`,`keyup`],n=e=>{let n=e.type;t.includes(n)&&performance.mark(`framer-navigation-input`,{detail:{type:n}})};for(let r=0;r{for(let e=0;e{if(pm.add(t),document.hidden){Ft();return}document.addEventListener(`visibilitychange`,Ft),document.addEventListener(`pagehide`,Ft),ye.read(()=>{Rt(e).then(()=>{pm.delete(t),!e?.signal?.aborted&&t()})})})}function Lt(e){return new Promise(t=>{setTimeout(t,100),ye.read(()=>{Rt(e).then(t)},!1,!0)})}function Rt(e){let t=e?.priority;return dm||fm?t===`background`?new Promise(e=>{setTimeout(e,1)}):dm?q.scheduler.yield(e).catch(om):q.scheduler.postTask(()=>{},e).catch(om):t===`user-blocking`?Promise.resolve():new Promise(e=>{setTimeout(e,t===`background`?1:0)})}function zt(e){let{continueAfter:t,ensureContinueBeforeUnload:n,...r}=e??{};return n?It(r):t===`paint`?Lt(r):Rt(r)}function Bt(e,t=!0){let{getRoute:n}=vt();O(()=>{if(!(!n||!t||!mm))for(let t of e)Vt(n(t))},[e,n,t])}async function Vt(e){if(!mm||!e)return;let t=e.page;if(!(!t||!nt(t))){await zt();try{await t.preload()}catch{}}}function Ht(e,t,n=`lazy`){var r;switch((r=q.__framer_events)==null||r.push([e,t,n]),e){case`published_site_click`:{let{trackingId:e,href:n}=t;e&&document.dispatchEvent(new CustomEvent(`framer:click`,{detail:{trackingId:e,href:n}}));break}case`published_site_form_submit`:{let{trackingId:e}=t;e&&document.dispatchEvent(new CustomEvent(`framer:formsubmit`,{detail:{trackingId:e}}));break}case`published_site_pageview`:{let{framerLocale:e}=t;document.dispatchEvent(new CustomEvent(`framer:pageview`,{detail:{framerLocale:e}}));break}}}function Ut(e,t){if(!e.startsWith(`/`)||!t.startsWith(`/`))throw Error(`from/to paths are expected to be absolute`);let[n]=Wt(e),[r,i]=Wt(t),a=Gt(n,r);return a===``&&(a=`.`),!a.startsWith(`.`)&&!a.startsWith(`/`)&&(a=`./`+a),a+`/`+i}function Wt(e){let t=e.lastIndexOf(`/`);return[e.substring(0,t+1),e.substring(t+1)]}function Gt(e,t){if(e===t||(e=`/`+Kt(e),t=`/`+Kt(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=ra){if(vm(t,1+s)===_m)return bm(t,1+s+1);if(s===0)return bm(t,1+s)}else r>a&&(vm(e,1+s)===_m?o=s:s===0&&(o=0));let c=``;for(s=1+o+1;s<=n;++s)(s===n||vm(e,s)===_m)&&(c+=c.length===0?`..`:`/..`);return`${c}${bm(t,1+o)}`}function Kt(e){let t=``,n=0,r=-1,i=0,a=0;for(let o=0;o<=e.length;++o){if(o2){let e=ym(t,Sm);e===-1?(t=``,n=0):(t=bm(t,0,e),n=t.length-1-ym(t,Sm)),r=o,i=0;continue}else if(t.length!==0){t=``,n=0,r=o,i=0;continue}}xm&&(t+=t.length>0?`${Sm}..`:`..`,n=2)}else t.length>0?t+=`${Sm}${bm(e,r+1,o)}`:t=bm(e,r+1,o),n=o-r-1;r=o,i=0}else a===gm&&i!==-1?++i:i=-1}return t}function qt(e,t){return e.replace(Tm,(e,n)=>{let r=t[n];return typeof r!=`string`||r.length===0?e:encodeURIComponent(r)})}function Jt(e){let t=k===void 0?``:k.location.search;return t?Yt(t,e):e}function Yt(e,t){let n=t.indexOf(`#`),r=n===-1?t:t.substring(0,n),i=n===-1?``:t.substring(n),a=r.indexOf(`?`),o=a===-1?r:r.substring(0,a),s=a===-1?``:r.substring(a),c=new URLSearchParams(s),l=new URLSearchParams(e);for(let[e,t]of l){if(c.has(e)||e===Em)continue;c.append(e,t)}let u=c.toString();return u===``?r+i:o+`?`+u+i}async function Xt(e,t,n,r,i,a,o){let s=e,c=!1,l={...a},u=Array.from(s.matchAll(Tm)),d=await Promise.all(u.map(async e=>{let s=e?.[0],u=e?.[1];if(!s||!u)throw Error(`Failed to replace path variables: unexpected regex match group`);let d=a[u];if(!d||!z(d))throw Error(`No slug found for path variable ${u}`);let f=await(o?.[i])?.call(o);if(!f||!t)return d;let p=await f.getRecordIdBySlug(d,t);if(!p)return d;let m=await f.getSlugByRecordId(p,n);if(!m){c=!0;let e=await f.getSlugByRecordId(p,r);return e&&(l[u]=e),e??d}return l[u]=m,m})),f=0,p=``,m=!1;for(let e=0;e{ye.render(()=>{performance.mark(`framer-vt-remove`);let e=document.getElementById(Nm);e&&document.head.removeChild(e)})})}function pn(){return!!document.startViewTransition}function mn(e){return new Promise(t=>{ye.render(()=>{performance.mark(`framer-vt-style`),dn(e),t()})})}async function hn(e,t,n){if(!pn()){e();return}if(await mn(t),n?.aborted)return;performance.mark(`framer-vt`);let r=document.startViewTransition(async()=>{performance.mark(`framer-vt-freeze`),!n?.aborted&&(n?.addEventListener(`abort`,()=>r.skipTransition()),await e())});return r.updateCallbackDone.then(()=>{performance.mark(`framer-vt-unfreeze`)}).catch(Fm),Promise.all([r.ready,r.finished]).then(()=>{performance.mark(`framer-vt-finished`),fn()}).catch(Fm),r}function gn(){let e=en(),t=S(void 0);return O(()=>{t.current&&=(t.current(),void 0)}),E((n,r,i,a)=>{let o=tn(n,r,e);if(o){let e=new Promise(e=>{t.current=e});return hn(async()=>{i(),await e},o,a)}i()},[e])}function _n(e,t){um(()=>{let n=document.querySelector(`link[rel='canonical']`);if(!n)return;let r=new URL(e,t);r.search=``,n.setAttribute(`href`,r.toString())})}function vn(e,t,n,r=f){r(()=>{let t=async e=>(await zt({...n,continueAfter:`paint`}),e()),r=t(e);return()=>{(async()=>{let e=await r;e&&t(e)})()}},t)}function yn(e){let t=S(void 0);return vn(()=>{t.current&&=(t.current(),void 0)},void 0,{priority:`user-blocking`}),E(n=>{let r=new Promise(e=>{t.current=e});if(!e)return{promise:r,measureDetail:n,ignore:null};let i=`${e}-start`,a=`${e}-end`,o=!1;return performance.mark(i),r.finally(()=>{o||(performance.mark(a),performance.measure(e,{start:i,end:a,detail:n}))}).catch(e=>{console.error(e)}),{promise:r,measureDetail:n,ignore:()=>{var e;o=!0,(e=t.current)==null||e.call(t),t.current=void 0}}},[e])}async function bn(e,t,{currentRoutePath:n,currentRoutePathLocalized:r,currentPathVariables:i,hash:a,pathVariables:o,localeId:s,preserveQueryParams:c,siteCanonicalURL:l},u=!1){let{path:d}=t;if(!d)return;let f=Dn(t,{currentRoutePath:n,currentRoutePathLocalized:r,currentPathVariables:i,hash:a,pathVariables:o,preserveQueryParams:c,siteCanonicalURL:l,localeId:s});try{return await Cn({routeId:e,hash:a,pathVariables:o,localeId:s},f,u)}catch{}}function xn(e){return V(e)&&z(e.routeId)}function Sn(e,t,n=!1){performance.mark(`framer-history-replace`),(n?k.history.__proto__.replaceState:k.history.replaceState).call(k.history,e,``,t)}async function Cn(e,t,n=!1){if(performance.mark(`framer-history-push`),_n(t,k.location.href),!n){k.history.pushState(e,``,t);return}let r=!1,i;Rm&&(i=()=>{if(r=!0,zm)return;let e=`Popstate called after intercept(). Please report this to the Framer team.`;console.error(e),Ht(`published_site_load_recoverable_error`,{message:e})},k.addEventListener(`popstate`,i,{once:!0})),zm&&Rm?k.history.__proto__.pushState.call(k.history,e,``,t):k.history.pushState(e,``,t),Rm&&queueMicrotask(()=>{r||(Rm=!1,k.removeEventListener(`popstate`,i))})}function wn({disabled:e,routeId:t,initialPathVariables:n,initialLocaleId:r}){f(()=>{e||(performance.mark(`framer-history-set-initial-state`),Sn({routeId:t,pathVariables:n,localeId:r},void 0,!0))},[])}function Tn(e,t){let n=gn(),r=yn(`framer-route-change`),i=S(void 0),a=E(async({state:a})=>{if(k.navigation?.transition&&k.navigation?.transition?.navigationType!==`traverse`||!V(a))return;let{routeId:o,hash:s,pathVariables:c,localeId:l}=a;if(!z(o))return;let u=r({popstate:!0}),d=wt();u.promise.finally(d);let f=await n(e.current,o,()=>{t(o,z(l)?l:void 0,z(s)?s:void 0,k.location.pathname+k.location.search+k.location.hash,V(c)?c:void 0,!0,u,!1)}),p=k.navigation?.transition;await(f?.updateCallbackDone??Promise.resolve()).then(i.current?.resolve).catch(i.current?.reject),await u.promise;try{await p?.finished}catch(e){console.warn(`Popstate transition failed`,e)}Lm(),_n(k.location.href)},[e,r,t,n]),o=E(e=>{e.navigationType!==`traverse`||!e.canIntercept||e.intercept({async handler(){await new Promise((e,t)=>{i.current={resolve:e,reject:t}}),i.current=void 0},scroll:`after-transition`})},[]);O(()=>(k.addEventListener(`popstate`,a),Bm&&k.navigation.addEventListener(`navigate`,o),()=>{k.removeEventListener(`popstate`,a),Bm&&k.navigation.removeEventListener(`navigate`,o)}),[a,o])}function En(e,t,n){let r=Ct(t,e);if(!r)return;let i=Object.assign({},t?.elements,n);return r.replace(Tm,(e,t)=>i[t]??e)}function Dn(e,{currentRoutePath:t,currentRoutePathLocalized:n,currentPathVariables:r,hash:i,pathVariables:a,hashVariables:o,relative:s=!0,preserveQueryParams:c,onlyHash:l=!1,siteCanonicalURL:u,localeId:d}){let f=En(i,e,o);if(l)return f??``;let p=t??`/`;n&&d&&(p=n[d]??p),r&&(p=p.replace(Tm,(e,t)=>String(r[t]||e)));let m=(d?e?.pathLocalized?.[d]:void 0)??e?.path??`/`;a&&(m=m.replace(Tm,(e,t)=>String(a[t]||e)));let h=p===m&&f;if(s)if(wm.has(p)&&k!==void 0){let e=Qt(u);m=Ut(k.location.pathname,e+m)}else m=Ut(p,m);return(c||h)&&(m=Jt(m)),f&&(m=`${m}#${f}`),m}async function On(e,t,n){if(!e.path||!t)return!1;let r=`${n.slug?`/${n.slug}`:``}${qt(e.path,t)}`;return(await fetch(r,{method:`HEAD`,redirect:`manual`})).type===`opaqueredirect`?(k.location.href=k.location.origin+r,!0):!1}async function kn(e){let t=await Zt(e);if(t){try{localStorage.setItem(`preferredLocale`,e.nextLocale.code)}catch{}try{if(!z(t.path))throw Error(`Expected result.path to be a string`);if(t.isMissingInLocale&&await On(e.route,t.pathVariables,e.nextLocale))return}catch{}return t}}function An(){let e=S(Promise.resolve()),t=S(),n=E(n=>{if(n.navigationType===`traverse`||!n.canIntercept)return;let r=t.current;r?.signal.addEventListener(`abort`,()=>{r.abort(`user aborted`)}),n.intercept({handler:()=>e.current})},[]);return E((r,i,a)=>{if(!Bm){i();return}e.current=r,t.current=a,k.navigation.addEventListener(`navigate`,n),i(!0),r.finally(()=>{k.navigation.removeEventListener(`navigate`,n)})},[n])}function jn(e){return e.toLowerCase().replace(Vm,`-`).replace(Hm,``)}function Mn(){return d.useContext(Km)}function Nn(){if(!Jm)return;Xm=!0,performance.mark(`framer-react-event-handling-start`);let e={capture:!0},t=document.body;Jm.forEach(n=>t.addEventListener(n,Ym,e))}function Pn(){return O(()=>{if(!Xm||!Jm)return;let e={capture:!0},t=document.body;Jm.forEach(n=>t.removeEventListener(n,Ym,e)),Jm=void 0,performance.mark(`framer-react-event-handling-end`)},[]),null}function Fn(e){let t=!1;return function(...n){if(!t)return t=!0,e.apply(this,n)}}function In(e,t,n){try{performance.measure(e,t,n)}catch(t){console.warn(`Could not measure ${e}`,t)}}function Ln(){gh=new hh,gh.render.markStart()}function Rn(){p(()=>{gh?.useInsertionEffects.markRouterStart()},[]),f(()=>{gh?.useLayoutEffects.markRouterStart()},[]),O(()=>{gh?.useEffects.markRouterStart()},[])}function zn(){p(()=>{gh?.render.markEnd(),gh?.useInsertionEffects.markStart()},[]),f(()=>{if(gh?.useLayoutEffects.markStart(),document.visibilityState!==`visible`){_h=!0;return}ye.read(()=>{gh?.browserRendering.requestAnimationFrame.markStart(),gh?.unattributedHydrationOverhead.measure()})},[]),O(()=>{gh?.useEffects.markStart(),gh?.browserRendering.hasStarted||(gh?.mutationEffects.measure(),gh?.useEffects.markAreSynchronous())},[])}function Bn(){p(()=>{gh?.useInsertionEffects.markEnd()},[]),f(()=>{gh?.useLayoutEffects.markEnd(),!(_h||document.visibilityState!==`visible`)&&ye.read(()=>{gh?.browserRendering.requestAnimationFrame.markEnd(),zt().then(()=>{gh?.browserRendering.layoutStylePaint.markEnd()})})},[]),O(()=>{gh?.useEffects.markEnd()},[])}function Vn(){return zn(),null}function Hn(){return Bn(),null}function Un(e,t){let n={style:t,"data-framer-root":``};return d.isValidElement(e)?d.cloneElement(e,n):x(e,{...n})}function Wn(e){if(Ch!==e){xh={};for(let[t,{path:n}]of Object.entries(e))n&&(xh[n]={path:n,depth:Kn(n),routeId:t});Sh=Object.values(xh),Sh.sort(({depth:e},{depth:t})=>t-e),Ch=e}return[xh,Sh]}function Gn(e,t,n=!0,r=[]){let[i,a]=Wn(e),o,s,c=t;if(r.length>0){let e=c.split(`/`).find(Boolean);if(e&&(o=r.find(({slug:t})=>t===e),o&&(s=o.id,c=c.substring(o.slug.length+1))),!s){let e=r.find(({slug:e})=>e===``);e&&(s=e.id)}}let l=i[c];if(l){let e=qn(c,l.path);if(e.isMatch)return{routeId:l.routeId,localeId:s,pathVariables:e.pathVariables}}for(let{path:e,routeId:t}of a){let n=qn(c,e);if(n.isMatch)return{routeId:t,localeId:s,pathVariables:n.pathVariables}}if(!n)throw Error(`No exact match found for path`);let u=i[`/`];if(u)return{routeId:u.routeId,localeId:s};let d=Object.keys(e)[0];if(!d)throw Error(`Router should not have undefined routes`);return{routeId:d,localeId:s}}function Kn(e){let t=e.replace(/^\/|\/$/gu,``);return t===``?0:t.split(`/`).length}function qn(e,t){let n=[],r=Jn(t).replace(Tm,(e,t)=>(n.push(t),`([^/]+)`)),i=RegExp(r+`$`),a=e.match(i);if(!a)return{isMatch:!1};if(a.length===1)return{isMatch:!0};let o={},s=a.slice(1);for(let e=0;ee.name===`abtests`);return t?new URLSearchParams(t.description):new URLSearchParams}return new URLSearchParams}function Xn(e,t,n){let r=e[n];if(!r)return;let i=r.abTestingParentId??n;if(!e[i])return;let{abTestingParentId:a,...o}=r,s=e[i].elements||r.elements?{...e[i].elements,...r.elements}:void 0;e[i]={...o,elements:s,abTestingVariantId:n,abTestId:t}}function Zn(e,t){for(let[n,r]of t)Xn(e,n,r)}function Qn(e){for(let t in e)e[t]?.abTestingParentId&&delete e[t]}function $n(e,t){if(!e[t]||!e[t].abTestingParentId)return;let n=e[t].abTestingParentId,{abTestingParentId:r,...i}=e[t],a=e[n]?.elements||i.elements?{...e[n]?.elements,...i.elements}:void 0;e[n]={...i,elements:a,abTestingVariantId:t}}function er(e,t){if(k===void 0)return t;let n=t;if(t){$n(e,t);let r=e[t]?.abTestingParentId;r&&(n=r)}return Zn(e,Yn()),Qn(e),n}function H(e,...t){if(e)return;let n=Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``));if(n.stack)try{let e=n.stack.split(` `);e[1]?.includes(`assert`)?(e.splice(1,1),n.stack=e.join(` `)):e[0]?.includes(`assert`)&&(e.splice(0,1),n.stack=e.join(` `))}catch{}throw n}function U(e,t){throw t||Error(e?`Unexpected value: ${e}`:`Application entered invalid state`)}async function tr(e,t,n=`beforeend`){let r,i;switch(n){case`beforebegin`:H(t.parentNode,`Can't use 'beforebegin' with a referenceNode at the top level`),r=t.parentNode,i=t;break;case`afterend`:H(t.parentNode,`Can't use 'afterend' with a referenceNode at the top level`),r=t.parentNode,i=t.nextSibling;break;case`afterbegin`:r=t,i=t.firstChild;break;case`beforeend`:r=t,i=null;break;default:U(n)}let a=document.createRange();a.selectNodeContents(r);let o=a.createContextualFragment(e);await nr(o,r,i)}async function nr(e,t,n){for(let r=e.firstChild;r;r=r.nextSibling){if(r instanceof HTMLScriptElement){let e=rr(r,t,n);e!==void 0&&await e;continue}let e=r.cloneNode(!1);t.insertBefore(e,n),r.firstChild&&await nr(r,e,null)}}function rr(e,t,n){let r=e.cloneNode(!0);if(!e.hasAttribute(`src`)||e.hasAttribute(`async`)||e.hasAttribute(`defer`)||e.getAttribute(`type`)?.toLowerCase()===`module`)t.insertBefore(r,n);else return ir(r,t,n)}function ir(e,t,n){return new Promise(r=>{e.onload=e.onerror=r,t.insertBefore(e,n)})}function ar(e){let{isInitialNavigation:t}=vt();O(()=>{if(e.robots){let t=document.querySelector(`meta[name="robots"]`);t?t.setAttribute(`content`,e.robots):(t=document.createElement(`meta`),t.setAttribute(`name`,`robots`),t.setAttribute(`content`,e.robots),document.head.appendChild(t))}},[e.robots]),p(()=>{var t;document.title=e.title||``,e.viewport&&((t=document.querySelector(`meta[name="viewport"]`))==null||t.setAttribute(`content`,e.viewport))},[e.title,e.viewport]),O(()=>{if(!t)return;let n=document.getElementById(wh);n&&n.dataset[Th]!==void 0||or(e.customHTMLHeadStart,e.customHTMLHeadEnd,e.customHTMLBodyStart,e.customHTMLBodyEnd)},[])}async function or(e,t,n,r){let i,a,o,s;if(e||t){let{start:n,end:r}=sr(document.head.childNodes,e?Eh:void 0,t?Dh:void 0);i=n,a=r}if(n||r){let{start:e,end:t}=sr(document.body.childNodes,n?Oh:void 0,r?kh:void 0);o=e,s=t}e&&i&&await tr(e,i,`beforebegin`),t&&a&&await tr(t,a,`beforebegin`),n&&o&&await tr(n,o,`beforebegin`),r&&s&&await tr(r,s,`beforebegin`)}function sr(e,t,n){if(!t&&!n)return{start:void 0,end:void 0};let r,i,a=0,o=e.length-1;for(;a<=o;){let s=e[a],c=e[o];if(!r&&s?.nodeType===Node.COMMENT_NODE&&t&&``===t&&(r=s,!n)||!i&&c?.nodeType===Node.COMMENT_NODE&&n&&``===n&&(i=c,!t)||r&&i)break;a++,o--}return{start:r,end:i}}function cr(e,...t){Ah.has(e)||(Ah.add(e),console.warn(e,...t))}function lr(e,t,n){let r=n?`, use ${n} instead`:``,i=`Deprecation warning: ${e} will be removed in version ${t}${r}.`;cr(i)}function ur(e){return typeof e==`object`&&!!e&&Nh in e&&e[Nh]instanceof Function&&Ph in e&&e[Ph]instanceof Function}function dr(e,t){return{interpolate(e,n){let r=e.get(),i=n.get(),a=Mh(r);return e=>{let n=t.interpolate(r,i)(e);return a.set(n),a}},difference(e,n){let r=e.get();return t.difference(r,n.get())}}}function fr(e,t){let n=10**Math.round(Math.abs(t));return Math.round(e*n)/n}function pr(e,t){return t===0?Math.round(e):(t-=t|0,t<0&&(t=1-t),Math.round(e-t)+t)}function mr(e){return Math.round(e*2)/2}function hr(e,t){return{x:e,y:t}}function gr(e,t,n,r=!1){let[i,a]=t,[o,s]=n,c=a-i;if(c===0)return(s+o)/2;let l=s-o;if(l===0)return o;let u=o+(e-i)/c*l;if(r===!0)if(os)return s}else{if(u>o)return o;if(u.5?e/(2-c-l):e/(c+l),c){case a:u=(o-s)/e+(o1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Dr(e,t,n){let r,i,a;if(e=Ar(e,360),t=Ar(t*100,100),n=Ar(n*100,100),t===0)r=i=a=n;else{let o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=Er(s,o,e+1/3),i=Er(s,o,e),a=Er(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Or(e,t,n){e=Ar(e,255),t=Ar(t,255),n=Ar(n,255);let r=Math.max(e,t,n),i=Math.min(e,t,n),a=r-i,o=0,s=r===0?0:a/r,c=r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/a+(t.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92}function Vr({r:e,g:t,b:n,a:r}){return{r:Br(e),g:Br(t),b:Br(n),a:r}}function Hr({r:e,g:t,b:n,a:r}){let i=Math.max(e,t,n),a=Math.min(e,t,n),o={h:0,s:i===0?0:1-a/i,v:i,a:r};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t1)&&(e=1),e}function $r({children:e}){if(w(rg).top)return x(y,{children:e});let t=S({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{},count:{byId:{},byName:{}}}),n=S({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}}),r=S(new Set).current,i=E(({id:e,name:i,duplicatedFrom:a})=>{if(!e)return null;let o=i?`byName`:`byId`,s=t.current[o][e];if(s)return s;let c=i||e;if(!a&&!r.has(c)&&(!t.current.byLayoutId[c]||t.current.byLayoutId[c]===c))return t.current.count[o][c]===void 0&&(t.current.count[o][c]=0,t.current.byLayoutId[c]=c,n.current[o][e]=c),r.add(c),c;let l;if(a?.length)for(let s=a.length-1;s>=0;s--){let c=a[s];H(!!c,`duplicatedId must be defined`);let u=t.current[o][c],d=t.current.byLastId[c];if(d&&!l){let e=t.current.byLayoutId[d],n=!e||e===i;d&&!r.has(d)&&(!i||n)&&(l=[d,c])}let f=u?t.current.byLayoutId[u]:void 0,p=!f||f===i;if(u&&!r.has(u)&&(!i||p))return n.current[o][e]=u,n.current.byLastId[c]=u,r.add(u),u}let u=t.current.byLastId[e];if(u&&!r.has(u))return r.add(u),n.current.byId[e]=u,u;if(l){let[t,i]=l;return n.current[o][e]=t,n.current.byLastId[i]=t,r.add(t),t}let d=t.current.byPossibleId[e];if(d&&!r.has(d))return r.add(d),n.current.byId[e]=d,d;let f=a?.[0],p=i||f||e,m=(t.current.count[o][p]??-1)+1,{layoutId:h,value:g}=ei(p,m,r);if(t.current.count[o][p]=g,n.current[o][e]=h,a?.length&&!i){let e=a[a.length-1];if(e&&(n.current.byLastId[e]=h),a.length>1)for(let e=0;e{t.current={byId:{...t.current.byId,...n.current.byId},byLastId:{...t.current.byLastId,...n.current.byLastId},byPossibleId:{...t.current.byPossibleId,...n.current.byPossibleId},byName:{...t.current.byName,...n.current.byName},byLastName:{...t.current.byLastName,...n.current.byLastName},byLayoutId:{...t.current.byLayoutId,...n.current.byLayoutId},count:{...t.current.count,byName:{}}},n.current={byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}},r.clear()},[]),o=S({getLayoutId:i,persistLayoutIdCache:a,top:!0,enabled:!0}).current;return x(rg.Provider,{value:o,children:e})}function ei(e,t,n){let r=t,i=r?`${e}-${r}`:e;for(;n.has(i);)r++,i=`${e}-${r}`;return{layoutId:i,value:r}}function ti({enabled:e=!0,...t}){let n=w(rg),r=T(()=>({...n,enabled:e}),[e]);return x(rg.Provider,{...t,value:r})}function ni(e){let t=S(null);return t.current===null&&(t.current=e()),t.current}function ri(e){let{error:t,file:n}=e,r=n?`Error in ${ii(n)}`:`Error`,i=t instanceof Error?t.message:``+t;return D(`div`,{style:ag,children:[x(`div`,{className:`text`,style:sg,children:r}),i&&x(`div`,{className:`text`,style:cg,children:i})]})}function ii(e){return e.startsWith(`./`)?e.replace(`./`,``):e}function W(e){return Number.isFinite(e)}function ai(e){return!e||!Object.keys(e).length&&e.constructor===Object}function oi(e){return typeof e!=`string`&&typeof e!=`number`}function si(e){return e!=null&&typeof e!=`boolean`&&!ai(e)}function ci(e){return e*(Math.PI/180)}function li(e){return Ot(e)?!1:e===2||e===5}function ui(e){if(typeof e==`string`){let t=e.trim();if(t===`auto`)return 2;if(t.endsWith(`fr`))return 3;if(t.endsWith(`%`))return 1;if(t.endsWith(`vw`)||t.endsWith(`vh`))return 4}return 0}function di(e,t,n,r){if(typeof t==`string`){if(t.endsWith(`%`)&&n)switch(e){case`maxWidth`:case`minWidth`:return parseFloat(t)/100*n.width;case`maxHeight`:case`minHeight`:return parseFloat(t)/100*n.height;default:break}if(t.endsWith(`vh`)){if(!r)return fi(e);switch(e){case`maxWidth`:case`minWidth`:return parseFloat(t)/100*r.width;case`maxHeight`:case`minHeight`:return parseFloat(t)/100*r.height;default:break}}return parseFloat(t)}return t}function fi(e){switch(e){case`minWidth`:case`minHeight`:return-1/0;case`maxWidth`:case`maxHeight`:return 1/0;default:U(e,`unknown constraint key`)}}function pi(e,t,n,r){return t.minHeight&&(e=Math.max(di(`minHeight`,t.minHeight,n,r),e)),t.maxHeight&&(e=Math.min(di(`maxHeight`,t.maxHeight,n,r),e)),e}function mi(e,t,n,r){return t.minWidth&&(e=Math.max(di(`minWidth`,t.minWidth,n,r),e)),t.maxWidth&&(e=Math.min(di(`maxWidth`,t.maxWidth,n,r),e)),e}function hi(e,t,n,r,i){let a=mi(W(e)?e:fg,n,r,i),o=pi(W(t)?t:pg,n,r,i);return W(n.aspectRatio)&&n.aspectRatio>0&&(W(n.left)&&W(n.right)?o=a/n.aspectRatio:W(n.top)&&W(n.bottom)||n.widthType===0?a=o*n.aspectRatio:o=a/n.aspectRatio),{width:a,height:o}}function gi(e,t){return!W(e)||!W(t)?null:e+t}function _i(e){return typeof e.right==`string`||typeof e.bottom==`string`||typeof e.left==`string`&&(!e.center||e.center===`y`)||typeof e.top==`string`&&(!e.center||e.center===`x`)}function vi(e){return!e._constraints||_i(e)?!1:e._constraints.enabled}function yi(e){let{size:t}=e,{width:n,height:r}=e;return W(t)&&(n===void 0&&(n=t),r===void 0&&(r=t)),W(n)&&W(r)?{width:n,height:r}:null}function bi(e){let t=yi(e);if(t===null)return null;let{left:n,top:r}=e;return W(n)&&W(r)?{x:n,y:r,...t}:null}function xi(e,t,n=!0){if(e.positionFixed||e.positionAbsolute)return null;let r=t===1||t===2;if(!vi(e)||r)return bi(e);let i=Si(e),a=Ci(t),o=a?{sizing:a,positioning:a,viewport:null}:null;return dg.toRect(i,o,null,n,null)}function Si(e){let{left:t,right:n,top:r,bottom:i,center:a,_constraints:o,size:s}=e,{width:c,height:l}=e;c===void 0&&(c=s),l===void 0&&(l=s);let{aspectRatio:u,autoSize:d}=o,f=ug.quickfix({left:W(t),right:W(n),top:W(r),bottom:W(i),widthType:ui(c),heightType:ui(l),aspectRatio:u||null,fixedSize:d===!0}),p=null,m=null,h=0,g=0;if(f.widthType!==0&&typeof c==`string`){let e=parseFloat(c);c.endsWith(`fr`)?(h=3,p=e):c===`auto`?h=2:(h=1,p=e/100)}else c!==void 0&&typeof c!=`string`&&(p=c);if(f.heightType!==0&&typeof l==`string`){let e=parseFloat(l);l.endsWith(`fr`)?(g=3,m=e):l===`auto`?g=2:(g=1,m=parseFloat(l)/100)}else l!==void 0&&typeof l!=`string`&&(m=l);let _=.5,v=.5;return(a===!0||a===`x`)&&(f.left=!1,typeof t==`string`&&(_=parseFloat(t)/100)),(a===!0||a===`y`)&&(f.top=!1,typeof r==`string`&&(v=parseFloat(r)/100)),{left:f.left?t:null,right:f.right?n:null,top:f.top?r:null,bottom:f.bottom?i:null,widthType:h,heightType:g,width:p,height:m,aspectRatio:f.aspectRatio||null,centerAnchorX:_,centerAnchorY:v,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth}}function Ci(e){return e===0||e===1||e===2?null:e}function wi(){return d.useContext(mg).parentSize}function Ti(e){return typeof e==`object`}function Ei(e){return Ti(e)?e.width:e}function Di(e){return Ti(e)?e.height:e}function Oi(e,t){return x(hg,{parentSize:t,children:e})}function ki(e){let t=wi();return xi(e,t,!0)}function Ai({width:e,height:t}){return e===`auto`||e===`min-content`||t===`auto`||t===`min-content`}function ji(){if(_g!==void 0)return _g;let e=document.createElement(`div`);Object.assign(e.style,{position:`absolute`,display:`flex`,flexDirection:`column`,rowGap:`1px`}),e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return e.parentNode&&e.parentNode.removeChild(e),_g=t,t}function Mi(){yg||(yg=!0,!ji()&&document.body.classList.add(vg))}function Ni(e){return typeof e==`number`?e:e.startsWith(`--`)?Pi.variable(e):e===``?`""`:e}function Pi(e,t){let n=` `;for(let e in t){let r=t[e];n+=`${e.replace(/([A-Z])/gu,`-$1`).toLowerCase()}: ${Ni(r)}; `}return e+` {`+n+`}`}function Fi(e,t){return Pi.variable(...e.flatMap(e=>[`${e}-rgb`,e]),t)}function Ii(e,t,n=Ig){if(!(!e||n.has(e)||typeof document>`u`)){if(n.add(e),!t){if(!Lg){let e=document.createElement(`style`);if(e.setAttribute(`type`,`text/css`),e.setAttribute(`data-framer-css`,`true`),!document.head){console.warn(`not injecting CSS: the document is missing a element`);return}if(document.head.appendChild(e),e.sheet)Lg=e.sheet;else{console.warn(`not injecting CSS: injected