import{t as e}from"./rolldown-runtime.uxh0A31G.mjs";import{A as t,B as n,C as r,D as i,E as a,F as o,I as s,L as c,M as l,N as u,P as d,R as f,S as p,T as m,V as h,_ as g,a as _,b as v,c as y,d as b,f as x,g as S,h as C,i as w,j as T,k as E,l as D,o as O,p as k,s as ee,u as A,v as j,w as te,x as ne,y as M,z as N}from"./react.B_IXIUxJ.mjs";import{$ as re,A as ie,B as ae,C as P,D as oe,E as se,F as ce,G as le,H as ue,I as de,J as fe,K as pe,L as me,M as F,N as he,O as ge,P as _e,Q as ve,R as ye,S as be,T as xe,U as Se,V as Ce,W as we,X as Te,Y as Ee,Z as De,_ as Oe,a as ke,at as I,b as Ae,c as je,ct as L,d as Me,dt as Ne,et as Pe,f as Fe,g as Ie,h as Le,i as Re,it as ze,j as Be,k as Ve,l as He,lt as Ue,m as We,n as Ge,nt as Ke,o as qe,ot as Je,p as Ye,q as Xe,r as Ze,rt as Qe,s as $e,st as et,tt,u as nt,ut as rt,v as it,w as at,x as ot,y as st,z as ct}from"./motion.DS114Qxf.mjs";function lt(e){return typeof e==`function`}function ut(e){return typeof e==`boolean`}function R(e){return typeof e==`string`}function z(e){return Number.isFinite(e)}function dt(e){return Array.isArray(e)}function B(e){return typeof e==`object`&&!!e&&!dt(e)}function ft(e){for(let t in e)return!1;return!0}function pt(e){return e===void 0}function mt(e){return e===null}function ht(e){return e==null}function gt(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function _t(e){return B(e)&<(e.return)}function vt(e){return B(e)&<(e.then)}function yt(e){return e instanceof Promise}function bt(e){return`url('${xt(e)}')`}function xt(e){return`data:image/svg+xml,${e.replaceAll(`#`,`%23`).replaceAll(`'`,`%27`).replaceAll(`"`,`%22`)}`}function St(e,t){let n=t instanceof Error?t.stack??t.message:t;return`${e?`${e} `:``}In case the issue persists, report this to the Framer team via https://www.framer.com/contact/${n?`: ${n}`:`.`}`}function Ct(){if(!A_)return;let e=document.querySelectorAll(`[rel="modulepreload"][data-framer-lazy]`);for(let t of e){let e=t.getAttribute(`data-framer-lazy`),n=t.getAttribute(`href`);if(!e||!n)continue;let r=import(n).then(t=>(L_.set(e,t),t)).catch(t=>{throw L_.delete(e),console.warn(`Failed to import lazy module: ${n}`,t),t});r.catch(k_),L_.set(e,r)}}function wt(e){return typeof e==`object`&&!!e&&!k(e)&&z_ in e}function Tt(e,t){if(t in e)return e[t];throw Error(`Module does not contain export '${t}'`)}function Et(e,t=`default`,n){let r,i,a,s=()=>{if(i||!n||!L_.has(n))return;let e=L_.get(n);yt(e)?c(()=>e):i=Tt(e,t)},c=e=>i?Promise.resolve(i):(r||=e().then(e=>{let n=Tt(e,t);return i=n,n}).catch(e=>{a=e}),r),l=!1,u=j(function(t,r){if(o(()=>{l=!0},[]),a)throw a;if(s(),n!==void 0&&R_!==void 0&&R_.add(n),!i)throw c(e);return D(i,{ref:r,...t})});return u.preload=()=>(s(),c(e)),u.getStatus=()=>({hasLoaded:i!==void 0,hasRendered:l}),u}function Dt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ot(e){return e===null||!(V_ in e)?!1:typeof e.equals==`function`}function kt(e,t){return e===t?!0:e!==e&&t!==t}function At(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!kt(e[r],t[r]))return!1;return!0}function jt(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Lt(e[r],t[r],!0))return!1;return!0}function Mt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!kt(r,t.get(n)))return!1;return!0}function Nt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!Lt(r,t.get(n),!0))return!1;return!0}function Pt(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=B_(e);if(n.length!==B_(t).length)return!1;for(let r of n)if(!Dt(t,r)||!(r===`_owner`&&Dt(e,`$$typeof`)&&e.$$typeof)&&!kt(e[r],t[r]))return!1;return!0}function It(e,t){let n=B_(e);if(n.length!==B_(t).length)return!1;for(let r of n)if(!Dt(t,r)||!(r===`_owner`&&Dt(e,`$$typeof`)&&e.$$typeof)&&!Lt(e[r],t[r],!0))return!1;return!0}function Lt(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?jt(e,t):At(e,t);if(i!==a)return!1;let o=e instanceof Map,s=t instanceof Map;if(o&&s)return n?Nt(e,t):Mt(e,t);if(o!==s)return!1;let c=e instanceof Set,l=t instanceof Set;if(c&&l)return Pt(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?Ot(e)&&Ot(t)?e.equals(t):n?It(e,t):Ft(e,t):!1}function Rt(e,t,n=!0){try{return Lt(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 zt(e){return r.useCallback(t=>e[t],[e])}function Bt({api:e,children:t}){return D(H_.Provider,{value:e,children:t})}function Vt(){return r.useContext(H_)}function Ht({routes:e,children:t}){let n=zt(e),r=u(()=>({getRoute:n}),[n]);return D(H_.Provider,{value:r,children:t})}function Ut(){let e=Vt(),t=l(U_),n=t?.routeId??e.currentRouteId,r=t?.routeId?t.pathVariables:e.currentPathVariables,i=n?e.getRoute?.(n):void 0;return u(()=>{if(!(!n||!i))return{...i,id:n,pathVariables:r}},[n,r,i])}function Wt(){let e=Ut();if(e)return`${e.id}-${JSON.stringify(e.pathVariables)}`}function Gt(e){let t=Ut(),n=r.useRef(t);Rt(n.current,t)||!t||(n.current=t,e(t))}function Kt(e){let t=Vt();if(e)return t.getRoute?.(e)}function qt(e,t){if(t&&e)return e.elements&&t in e.elements?e.elements[t]:t}function Jt(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;ei?qt(i,e):e,[e,i])}function Xt(){return Ut()?.pathVariables}function V(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 H(e,t){throw t instanceof Error?t:t===void 0?Error(e?`Unexpected value: ${e}`:`Application entered invalid state`):Error(String(t))}function Zt(e){return e===null||typeof e!=`object`&&typeof e!=`function`}function Qt(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===sv}function $t(e){return Object.prototype.toString.call(e).slice(8,-1)}function en(e){switch(e){case`"`:return`\\"`;case`<`:return`\\u003C`;case`\\`:return`\\\\`;case` `:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;case`\b`:return`\\b`;case`\f`:return`\\f`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return e<` `?`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`:``}}function tn(e){let t=``,n=0,r=e.length;for(let i=0;iObject.getOwnPropertyDescriptor(e,t).enumerable)}function rn(e){return cv.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function an(e){return!(!Number.isInteger(e)||e<0||e>av)}function on(e){return!(!Number.isInteger(e)||e<0||e>iv)}function sn(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t57)return!1}return an(+e)}function cn(e){let t=Object.keys(e);for(var n=t.length-1;n>=0&&!sn(t[n]);n--);return t.length=n+1,t}function ln(e){return new Uint8Array(e).toBase64()}function un(e){return Uint8Array.fromBase64(e).buffer}function dn(e){return Buffer.from(e).toString(`base64`)}function fn(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function pn(e){let t=new Uint8Array(e),n=``,r=32768;for(let e=0;e=t)throw Error(`Invalid input`);n[r]=a(s[e+1])}n.length=t}else{let t=Array(s.length);r[e]=t;for(let e=0;e{let t=c(e,l);t<0&&(r[l]=t)})}else{let e=$t(n);switch(e){case`Number`:case`String`:case`Boolean`:case`BigInt`:u=`["Object",${c(n.valueOf())}]`;break;case`Date`:u=`["Date","${isNaN(n.getDate())?``:n.toISOString()}"]`;break;case`URL`:u=`["URL",${tn(n.toString())}]`;break;case`URLSearchParams`:u=`["URLSearchParams",${tn(n.toString())}]`;break;case`RegExp`:let{source:r,flags:i}=n;u=i?`["RegExp",${tn(r)},"${i}"]`:`["RegExp",${tn(r)}]`;break;case`Array`:{let e=!1;u=`[`;for(let t=0;t0&&(u+=`,`),Object.hasOwn(n,t))o.push(`[${t}]`),u+=c(n[t]),o.pop();else if(e)u+=Q_;else{let t=cn(n),r=t.length,i=String(n.length).length;if((n.length-r)*3>4+i+r*(i+1)){u=`[`+rv+`,`+n.length;for(let e=0;e0)throw new ov(`Cannot stringify POJOs with symbolic keys`,o,n,t);if(Object.getPrototypeOf(n)===null){u=`["null"`;for(let e of Object.keys(n)){if(e===`__proto__`)throw new ov(`Cannot stringify objects with __proto__ keys`,o,n,t);o.push(rn(e)),u+=`,${tn(e)},${c(n[e])}`,o.pop()}u+=`]`}else{u=`{`;let e=!1;for(let r of Object.keys(n)){if(r===`__proto__`)throw new ov(`Cannot stringify objects with __proto__ keys`,o,n,t);e&&(u+=`,`),e=!0,o.push(rn(r)),u+=`${tn(r)}:${c(n[r])}`,o.pop()}u+=`}`}}}return r[l]=u,l}let l=c(t);return l<0?`${l}`:r}function yn(e){let t=typeof e;return t===`string`?tn(e):e===void 0?Z_.toString():e===0&&1/e<0?nv.toString():t===`bigint`?`["BigInt","${e}"]`:String(e)}function bn(e,t,n=`lazy`){switch(K.__framer_events?.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}case`published_site_trigger_invoke`:{let{trackingId:e}=t;e&&document.dispatchEvent(new CustomEvent(`framer:triggerinvoke`,{detail:{trackingId:e}}));break}}}function xn(e){return R(e)&&(e===``||mv.test(e))}function Sn(){return{[hv.QueryCache]:new Map,[hv.CollectionUtilsCache]:new Map}}function Cn(){if(!A_)return;if(gv!==void 0)return gv;let e=document.getElementById(`__framer__handoverData`);if(e){try{gv=hn(e.text)??Sn()}catch(e){gv=Sn(),console.warn(`Failed to parse handover data. Falling back to network.`,e)}return N_(()=>{e?.remove(),e=null}),gv}}function wn(e,t){if(console.warn(St(`Failed to resolve raw query result from DOM during hydration for: ${t}. This might make the page load slightly slower.`)),Math.random()<.01){let t=e instanceof Error&&typeof e.stack==`string`?e.stack:null;bn(`published_site_load_error`,{message:String(e),stack:t})}}function Tn(e,t){let n=Cn();return n?n[e].has(t):!1}function En(e,t){let n=Cn();if(!n)return;let r=n[e];if(!r.has(t))return;let i=r.get(t);return r.delete(t),i}function Dn(e){return e?.id??J_}function On(e,t,n,r){return`${e}|${t}|${n}|${r}`}function kn(e){return t=>{if(!e)return;let n=e[t];if(!n)return;if(bv.has(n))return bv.get(n);let r=new Sv(n,t);return bv.set(n,r),r}}function An({children:e,collectionUtils:t}){let n=u(()=>({get:kn(t)}),[t]);return D(xv.Provider,{value:n,children:e})}function jn(){return l(xv)}function Mn(e){return`scheduler`in e}function Nn(){for(let e of Ev)e();Ev.clear()}function Pn(e){return new Promise(t=>{if(Ev.add(t),document.hidden){Nn();return}document.addEventListener(`visibilitychange`,Nn),document.addEventListener(`pagehide`,Nn),Ie.read(()=>{In(e).then(()=>{Ev.delete(t),!e?.signal?.aborted&&t()})})})}function Fn(e){return new Promise(t=>{setTimeout(t,100),Ie.read(()=>{In(e).then(t)},!1,!0)})}function In(e){let t=e?.priority;return wv||Tv?t===`background`?new Promise(e=>{setTimeout(e,1)}):wv?Cv.yield(e).catch(k_):Cv.postTask(()=>{},e).catch(k_):t===`user-blocking`?Promise.resolve():new Promise(e=>{setTimeout(e,t===`background`?1:0)})}function Ln(e){let{continueAfter:t,ensureContinueBeforeUnload:n,...r}=e??{};return n?Pn(r):t===`paint`?Fn(r):In(r)}function Rn(){let e=jn(),{autobahnNavigation:t}=q_(),{getRoute:n}=Vt();return d((r,i,a=!0,o=!0)=>{if(!r||!n)return;let s=n(r),{pathVariables:c,locale:l}=i;return Bn(s,{routeId:r,pathVariables:c,locale:l,collectionUtils:e},a,o&&t)},[n,e,t])}function zn(e,t=!0){let n=Rn();o(()=>{if(!(!t||!Dv))for(let t of e)n(t,{})},[e,t,n])}async function Bn(e,t,n=!0,r=!0){if(!Dv||!e)return;let i=e.page;if(!(!i||!wt(i))){n&&await Ln();try{let e=await i.preload();r&&t&&e&&await Vn(e,t)}catch{}}}async function Vn(e,t){let n=e.loader;if(!n?.load)return;let r={signal:t.signal??new AbortController().signal,pathVariables:t.pathVariables??{},routeId:t.routeId,locale:t.locale,collectionUtils:t.collectionUtils};try{await n.load({},r)}catch{}}function Hn(e,t){if(!e.startsWith(`/`)||!t.startsWith(`/`))throw Error(`from/to paths are expected to be absolute`);let[n]=Un(e),[r,i]=Un(t),a=Wn(n,r);return a===``&&(a=`.`),!a.startsWith(`.`)&&!a.startsWith(`/`)&&(a=`./`+a),a+`/`+i}function Un(e){let t=e.lastIndexOf(`/`);return[e.substring(0,t+1),e.substring(t+1)]}function Wn(e,t){if(e===t||(e=`/`+Gn(e),t=`/`+Gn(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=ra){if(Av(t,1+s)===kv)return Mv(t,1+s+1);if(s===0)return Mv(t,1+s)}else r>a&&(Av(e,1+s)===kv?o=s:s===0&&(o=0));let c=``;for(s=1+o+1;s<=n;++s)(s===n||Av(e,s)===kv)&&(c+=c.length===0?`..`:`/..`);return`${c}${Mv(t,1+o)}`}function Gn(e){let t=``,n=0,r=-1,i=0,a=0;for(let o=0;o<=e.length;++o){if(o2){let e=jv(t,Pv);e===-1?(t=``,n=0):(t=Mv(t,0,e),n=t.length-1-jv(t,Pv)),r=o,i=0;continue}else if(t.length!==0){t=``,n=0,r=o,i=0;continue}}Nv&&(t+=t.length>0?`${Pv}..`:`..`,n=2)}else t.length>0?t+=`${Pv}${Mv(e,r+1,o)}`:t=Mv(e,r+1,o),n=o-r-1;r=o,i=0}else a===Ov&&i!==-1?++i:i=-1}return t}function Kn(e,t){return e.replace(Lv,(e,n)=>{let r=t[n];return typeof r!=`string`||r.length===0?e:encodeURIComponent(r)})}function qn(e,t=!1){let n=``;if(h!==void 0)if(t)n=h.location.search;else{let e=h.history?.state?.queryParamBackAnchorSearch;n=e===void 0?h.location.search:e===``?``:`?${e}`}return n?Jn(n,e):e}function Jn(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)c.has(e)||e!==Rv&&c.append(e,t);let u=c.toString();return u===``?r+i:o+`?`+u+i}async function Yn(e,t,n,r,i,a,o){let s=e,c=!1,l={...a},u=Array.from(s.matchAll(Lv)),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||!R(d))throw Error(`No slug found for path variable ${u}`);let f=o?.get(i);if(!f||!t)return d;let p=f.getRecordIdBySlug(d,t),m=yt(p)?await p:p;if(!m)return d;let h=f.getSlugByRecordId(m,n),g=yt(h)?await h:h;if(!g){c=!0;let e=f.getSlugByRecordId(m,r),t=yt(e)?await e:e;return t&&(l[u]=t),t??d}return l[u]=g,g})),f=0,p=``,m=!1;for(let e=0;e{Ie.render(()=>{performance.mark(`framer-vt-remove`);let e=document.getElementById(Gv);e&&document.head.removeChild(e)})})}function dr(){return!!document.startViewTransition}function fr(e){return new Promise(t=>{Ie.render(()=>{performance.mark(`framer-vt-style`),lr(e),t()})})}async function pr(e,t,n){if(!dr()){e();return}if(await fr(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(qv),Promise.all([r.ready,r.finished]).then(()=>{performance.mark(`framer-vt-finished`),ur()}).catch(qv),r}function mr(){let e=$n(),n=t(void 0);return o(()=>{n.current&&=(n.current(),void 0)}),d((t,r,i,a)=>{let o=er(t,r,e);if(o){let e=new Promise(e=>{n.current=e});return pr(async()=>{i(),await e},o,a)}i()},[e])}function hr(e,t){N_(()=>{let n=document.querySelector(`link[rel='canonical']`);if(!n)return;let r=new URL(e,t);r.search=``,n.setAttribute(`href`,r.toString())})}function gr(e,t,n,r=te){r(()=>{let t=async e=>(await Ln({...n,continueAfter:`paint`}),e()),r=t(e);return()=>{(async()=>{let e=await r;e&&t(e)})()}},t)}function _r(e){let n=t(void 0);return gr(()=>{n.current&&=(n.current(),void 0)},void 0,{priority:`user-blocking`}),d(t=>{let r=new Promise(e=>{n.current=e});if(!e)return{promise:r,measureDetail:t,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:t}))}).catch(e=>{console.error(e)}),{promise:r,measureDetail:t,ignore:()=>{o=!0,n.current?.(),n.current=void 0}}},[e])}async function vr(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=Tr(t,{currentRoutePath:n,currentRoutePathLocalized:r,currentPathVariables:i,hash:a,pathVariables:o,preserveQueryParams:c,siteCanonicalURL:l,localeId:s}),p=n!==void 0&&n===d,m=yr(h.history.state)?h.history.state:void 0,g=p?m?.queryParamBackAnchorSearch:void 0;try{return await xr({routeId:e,hash:a,pathVariables:o,localeId:s,queryParamBackAnchorSearch:g},f,u)}catch{}}function yr(e){return B(e)&&R(e.routeId)}function br(e,t,n=!1){performance.mark(`framer-history-replace`),t&&hr(t,h.location.href),(n?h.history.__proto__.replaceState:h.history.replaceState).call(h.history,e,``,t)}async function xr(e,t,n=!1){if(performance.mark(`framer-history-push`),hr(t,h.location.href),!n){h.history.pushState(e,``,t);return}let r=!1,i;Xv&&(i=()=>{if(r=!0,Zv)return;let e=`Popstate called after intercept(). Please report this to the Framer team.`;console.error(e),bn(`published_site_load_recoverable_error`,{message:e})},h.addEventListener(`popstate`,i,{once:!0})),Zv&&Xv?h.history.__proto__.pushState.call(h.history,e,``,t):h.history.pushState(e,``,t),Xv&&queueMicrotask(()=>{r||(Xv=!1,h.removeEventListener(`popstate`,i))})}function Sr({disabled:e,routeId:t,initialPathVariables:n,initialLocaleId:r}){te(()=>{if(e)return;performance.mark(`framer-history-set-initial-state`);let i=B(h.history.state)?h.history.state:{},a=h.location.hash?h.location.hash.slice(1):void 0;br({...i,routeId:t,hash:a,pathVariables:n,localeId:r},void 0,!0)},[])}function Cr(e,n){let r=mr(),i=_r(`framer-route-change`),a=t(void 0),s=d(async({state:t})=>{if(h.navigation?.transition&&h.navigation?.transition?.navigationType!==`traverse`||!B(t))return;let{routeId:o,hash:s,pathVariables:c,localeId:l}=t;if(!R(o))return;let u=i({popstate:!0}),d=Jt();u.promise.finally(d);let f=await r(e.current,o,()=>{n(o,R(l)?l:void 0,R(s)?s:void 0,h.location.pathname+h.location.search+h.location.hash,B(c)?c:void 0,!0,u,!1)}),p=h.navigation?.transition;await(f?.updateCallbackDone??Promise.resolve()).then(a.current?.resolve).catch(a.current?.reject),await u.promise;try{await p?.finished}catch(e){console.warn(`Popstate transition failed`,e)}Yv(),hr(h.location.href)},[e,i,n,r]),c=d(e=>{e.navigationType!==`traverse`||!e.canIntercept||e.intercept({async handler(){await new Promise((e,t)=>{a.current={resolve:e,reject:t}}),a.current=void 0},scroll:`after-transition`})},[]);o(()=>(h.addEventListener(`popstate`,s),Qv&&h.navigation.addEventListener(`navigate`,c),()=>{h.removeEventListener(`popstate`,s),Qv&&h.navigation.removeEventListener(`navigate`,c)}),[s,c])}function wr(e,t,n){let r=qt(t,e);if(!r)return;let i=Object.assign({},t?.elements,n);return r.replace(Lv,(e,t)=>i[t]??e)}function Tr(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=wr(i,e,o);if(l)return f??``;let p=t??`/`;n&&d&&(p=n[d]??p),r&&(p=p.replace(Lv,(e,t)=>String(r[t]||e)));let m=(d?e?.pathLocalized?.[d]:void 0)??e?.path??`/`;a&&(m=m.replace(Lv,(e,t)=>String(a[t]||e)));let g=!!(p===m&&f),_=!g&&a!==void 0&&t!==void 0&&e?.path!==void 0&&t===e.path&&p!==m;if(s)if(Iv.has(p)&&h!==void 0){let e=Zn(u);m=Hn(h.location.pathname,e+m)}else m=Hn(p,m);let v=g||_;return(c||v)&&(m=qn(m,v)),f&&(m=`${m}#${f}`),m}async function Er(e,t,n){if(!e.path||!t)return!1;let r=`${n.slug?`/${n.slug}`:``}${Kn(e.path,t)}`;return(await fetch(r,{method:`HEAD`,redirect:`manual`})).type===`opaqueredirect`?(h.location.href=h.location.origin+r,!0):!1}function Dr(){let e=jn();return d(t=>Or({...t,collectionUtils:e}),[e])}async function Or(e){let t=await Xn(e);if(t){try{localStorage.preferredLocale=e.nextLocale.code}catch{}try{if(!R(t.path))throw Error(`Expected result.path to be a string`);if(t.isMissingInLocale&&await Er(e.route,t.pathVariables,e.nextLocale))return}catch{}return t}}function kr(e,t){try{let n=h.history.state;if(!yr(n))return;let r=n?.paginationInfo===void 0||n.paginationInfo[e]===void 0,i={...n.paginationInfo,[e]:t};br({...n,paginationInfo:i},void 0,r)}catch{}}function Ar(){let e=t(Promise.resolve()),n=t(),r=d(t=>{if(t.navigationType===`traverse`||!t.canIntercept)return;let r=n.current;r?.signal.addEventListener(`abort`,()=>{r.abort(`user aborted`)}),t.intercept({handler:()=>e.current})},[]);return d((t,i,a)=>{if(!Qv){i();return}e.current=t,n.current=a,h.navigation.addEventListener(`navigate`,r),i(!0),t.finally(()=>{h.navigation.removeEventListener(`navigate`,r)})},[r])}function jr(e){let t=0,n=e.length;for(;tt&&e[n-1]===`-`;)n--;return e.slice(t,n)}function Mr(e){return jr(e.trim().toLowerCase().replace($v,`-`))}function Nr({children:e,value:t}){return D(ty.Provider,{value:t,children:e})}function Pr(){return l(ty)}function Fr(e,n){let r=c(()=>({inputs:n,result:e()}))[0],i=t(!0),a=t(r),s=i.current||n&&a.current.inputs&&Rt(n,a.current.inputs,!1)?a.current:{inputs:n,result:e()};return o(()=>{i.current=!1,a.current=s},[s]),s.result}function Ir(e,t){return Fr(()=>e,t)}function Lr(){return r.useContext(iy)}function Rr(){return Lr().activeLocale?.code??`en-US`}function zr(){return r.useContext(ay)}function Br(){return h.location.search}function Vr(){return``}function Hr(e){return oy.add(e),h.addEventListener(`popstate`,e),()=>{oy.delete(e),h.removeEventListener(`popstate`,e)}}function Ur(){for(let e of oy)e()}function Wr({children:e}){let t=Pr()===`preview`,[n,r]=c(``),i=E(p(Hr,Br,Vr));Vt();let a=t?n:i,o=d(async e=>{if(t){M(()=>{r(t=>e(new URLSearchParams(t)).toString())});return}await Ln({continueAfter:`paint`});let n=h.history.state,i=new URL(h.location.href,document.baseURI),a=e(i.searchParams).toString();i.search=a;let o=n?.queryParamBackAnchorSearch,s=h.location.search.slice(1),c=o===void 0&&a!==s,l=o!==void 0&&a===o,u={...n,queryParamBackAnchorSearch:l?void 0:o??(c?s:void 0)},d=i.toString();c||l?await xr(u,d):br(u,d),Ur()},[t]),s=Fr(()=>({urlSearchParams:new URLSearchParams(a),replaceSearchParams:o}),[a,o]);return D(sy.Provider,{value:s,children:e})}function Gr({parameterName:e}){let n=t(e),{urlSearchParams:r,replaceSearchParams:i}=l(sy);return[u(()=>r.getAll(n.current),[r]),d(async e=>{dt(e)&&await i(t=>{let r=n.current,i=new URLSearchParams,a=!1;for(let[n,o]of t.entries()){if(n!==r){i.append(n,o);continue}if(!a){a=!0;for(let t of e)R(t)&&i.append(r,t)}}if(!a)for(let t of e)R(t)&&i.append(r,t);return i})},[i])]}function Kr({initialValue:e,parameterName:n,optional:r}){let i=t(r?void 0:R(e)?e:``),[a,o]=Gr({parameterName:n});return[u(()=>a.length===0?i.current:a[0]??``,[a]),d(async e=>{if(e===i.current)return o(W_);if(R(e))return o([e])},[o])]}function qr({collectionId:e,initialValue:n,parameterName:r,optional:i}){let a=jn(),o=Lr().activeLocale??void 0,s=t(i?void 0:n),[c,l]=Kr({initialValue:void 0,parameterName:r,optional:!0});return[u(()=>R(c)?Xr(Yr(a,e).getRecordIdBySlug(c,o)):s.current,[a,e,o,c]),d(async t=>{if(pt(t))return l(void 0);let n=await Yr(a,e).getSlugByRecordId(t,o);R(n)&&await l(n)},[a,e,o,l])]}function Jr({initialValue:e,parameterName:t,options:n=W_,getOptionTitle:r=cy,optional:i}){o(()=>{(n===W_||r===cy)&&console.warn(`[useEnumQueryParam]`,`The URL variable \`${t}\` is misconfigured because the referenced Option field was removed from the collection. Filters using this variable are disabled, and updating the variable will have no effect.`)},[n,r,t]);let a=Lr().activeLocale??void 0,s=u(()=>{let e=new Map;for(let t of n){let n=r(t,a);n&&e.set(n,t)}return e},[a,n,r]),[c,l]=Kr({initialValue:u(()=>{if(e&&n.includes(e))return r(e,a)||``},[a,e,n,r]),parameterName:t,optional:i});return[u(()=>{let t=e&&n.includes(e)?e:void 0;return pt(c)?void 0:c?s.get(c)||(i?void 0:t):t},[c,s,e,n,i]),d(async e=>{if(pt(e))return l(void 0);let t=r(e,a);if(t)return l(t)},[l,a,r])]}function Yr(e,t){let n=e?.get(t);return V(n,`CollectionUtilsCache not found for collectionId:`,t),n}function Xr(e){if(yt(e))throw e;return e}function Zr(){let e=new Event(`change`,{bubbles:!0});return e[ly]=1,e}function Qr(){let e=new MouseEvent(`click`,{bubbles:!0});return e[ly]=1,e}function $r(e){return e instanceof HTMLInputElement&&(e.type===`checkbox`||e.type===`radio`)?`checked`:`value`}function ei(e){return ly in e&&e[ly]===1}function ti(e){return uy in e.nativeEvent&&e.nativeEvent[uy]===1}function ni(e){let n=t(!1),r=t(null),i=p(P_,I_,dy);return o(()=>{if(!i)return;let t=r.current;if(n.current||!t)return;n.current=!0;let a=$r(t),o=t[a];if(o===e)return;if(t.type===`radio`&&o===!0){t.checked=!1,t.dispatchEvent(Qr());return}if(a===`checked`){let e=Qr();e[uy]=1,t.dispatchEvent(e),t.dispatchEvent(Qr());return}if(t.nodeName===`SELECT`){t.dispatchEvent(Zr());return}let s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),a)?.set;if(!s)return;s.call(t,``);let c=Zr();c[uy]=1,t.dispatchEvent(c),queueMicrotask(()=>{s.call(t,o),t.dispatchEvent(Zr())})},[i]),r}function ri(){if(!fy)return;my=!0,performance.mark(`framer-react-event-handling-start`);let e={capture:!0},t=document.body;fy.forEach(n=>t.addEventListener(n,py,e))}function ii(){return o(()=>{if(!my||!fy)return;let e={capture:!0},t=document.body;fy.forEach(n=>t.removeEventListener(n,py,e)),fy=void 0,performance.mark(`framer-react-event-handling-end`)},[]),null}function ai(e){let t=!1;return function(...n){if(!t)return t=!0,e.apply(this,n)}}function oi(e,t,n){try{performance.measure(e,t,n)}catch(t){console.warn(`Could not measure ${e}`,t)}}function si(){Py=new Ny,Py.render.markStart()}function ci(){m(()=>{Py?.useInsertionEffects.markRouterStart()},[]),te(()=>{Py?.useLayoutEffects.markRouterStart()},[]),o(()=>{Py?.useEffects.markRouterStart()},[])}function li(){m(()=>{Py?.render.markEnd(),Py?.useInsertionEffects.markStart()},[]),te(()=>{if(Py?.useLayoutEffects.markStart(),document.visibilityState!==`visible`){Fy=!0;return}Ie.read(()=>{Py?.browserRendering.requestAnimationFrame.markStart(),Py?.unattributedHydrationOverhead.measure()})},[]),o(()=>{Py?.useEffects.markStart(),Py?.browserRendering.hasStarted||(Py?.mutationEffects.measure(),Py?.useEffects.markAreSynchronous())},[])}function ui(){m(()=>{Py?.useInsertionEffects.markEnd()},[]),te(()=>{Py?.useLayoutEffects.markEnd(),!(Fy||document.visibilityState!==`visible`)&&Ie.read(()=>{Py?.browserRendering.requestAnimationFrame.markEnd(),Ln().then(()=>{Py?.browserRendering.layoutStylePaint.markEnd()})})},[]),o(()=>{Py?.useEffects.markEnd()},[])}function di(){return li(),null}function fi(){return ui(),null}function pi(e,t){let n={style:t,"data-framer-root":``};return r.isValidElement(e)?r.cloneElement(e,n):D(e,{...n})}function mi(){return zy}function hi(e){if(By?.lastRoutes!==e){let t={},n={},r=[],i={},a=e;for(let r in e){let i=e[r];V(i,`route must be defined`);let{path:a,pathLocalized:o}=i;if(a&&(t[a]={path:a,depth:vi(a),routeId:r},o))for(let e in o){let t=o[e];V(t,`localizedPath must be defined`);let i=vi(t),a=n[e]||={};a[t]={path:t,depth:i,routeId:r}}}for(let e in r=Object.values(t),r.sort(({depth:e},{depth:t})=>t-e),n){let t=n[e];if(!t)continue;let r=Object.values(t);r.sort(({depth:e},{depth:t})=>t-e),i[e]=r}By={pathRoutes:t,pathRoutesLocalized:n,paths:r,pathsLocalized:i,lastRoutes:a}}return{pathRoutes:By.pathRoutes,paths:By.paths,pathRoutesLocalized:By.pathRoutesLocalized,pathsLocalized:By.pathsLocalized}}function gi(e,t,n=!0,r=mi()){return _i(e,t,r,n)}function _i(e,t,n,r=!0){let{pathRoutes:i,paths:a,pathRoutesLocalized:o,pathsLocalized:s}=hi(e),c,l,u=!1;if(n.length>0){let e=t.split(`/`).find(Boolean);if(e&&(c=n.find(({slug:t})=>t===e),c&&(l=c.id,t=t.substring(c.slug.length+1),u=!0)),!l){let e=n.find(({slug:e})=>e===``);e&&(l=e.id)}}if(l&&u){let e=o[l],n=e?e[t]:void 0;if(n){let e=yi(t,n.path);if(e.isMatch)return{routeId:n.routeId,localeId:l,pathVariables:e.pathVariables}}}let d=i[t];if(d){let e=yi(t,d.path);if(e.isMatch)return{routeId:d.routeId,localeId:l,pathVariables:e.pathVariables}}if(l&&u){let e=s[l];if(e)for(let{path:n,routeId:r}of e){let e=yi(t,n);if(e.isMatch)return{routeId:r,localeId:l,pathVariables:e.pathVariables}}}for(let{path:e,routeId:n}of a){let r=yi(t,e);if(r.isMatch)return{routeId:n,localeId:l,pathVariables:r.pathVariables}}if(!r)throw Error(`No exact match found for path`);let f=i[`/`];if(f)return{routeId:f.routeId,localeId:l};let p=Object.keys(e)[0];if(!p)throw Error(`Router should not have undefined routes`);return{routeId:p,localeId:l}}function vi(e){let t=e.replace(/^\/|\/$/gu,``);return t===``?0:t.split(`/`).length}function yi(e,t){let n=[],r=bi(t).replace(Lv,(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 Si(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 Ci(e,t){for(let[n,r]of t)Si(e,n,r)}function wi(e){for(let t in e)e[t]?.abTestingParentId&&delete e[t]}function Ti(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 Ei(e,t){if(h===void 0)return t;let n=t;if(t){Ti(e,t);let r=e[t]?.abTestingParentId;r&&(n=r)}return Ci(e,xi()),wi(e),n}function Di(e){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]),m(()=>{document.title=e.title||``,e.viewport&&document.querySelector(`meta[name="viewport"]`)?.setAttribute(`content`,e.viewport)},[e.title,e.viewport])}function Oi(e,...t){Vy.has(e)||(Vy.add(e),console.warn(e,...t))}function ki(e,t,n){Oi(`Deprecation warning: ${e} will be removed in version ${t}${n?`, use ${n} instead`:``}.`)}function Ai(e){return typeof e==`object`&&!!e&&Wy in e&&e[Wy]instanceof Function&&Gy in e&&e[Gy]instanceof Function}function ji(e,t){return{interpolate(e,n){let r=e.get(),i=n.get(),a=Uy(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 Mi(e,t){let n=10**Math.round(Math.abs(t));return Math.round(e*n)/n}function Ni(e,t){return t===0?Math.round(e):(t-=t|0,t<0&&(t=1-t),Math.round(e-t)+t)}function Pi(e){return Math.round(e*2)/2}function Fi(e,t){return{x:e,y:t}}function Ii(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 qi(e,t,n){let r,i,a;if(e=Xi(e,360),t=Xi(t*100,100),n=Xi(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=Ki(s,o,e+1/3),i=Ki(s,o,e),a=Ki(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Ji(e,t,n){e=Xi(e,255),t=Xi(t,255),n=Xi(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 sa({r:e,g:t,b:n,a:r}){return{r:oa(e),g:oa(t),b:oa(n),a:r}}function ca({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 ya(){return K.location.origin===`https://screenshot.framer.invalid`}function ba({children:e}){if(l(mb).top)return D(y,{children:e});let n=t({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{},count:{byId:{},byName:{}}}),r=t({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}}),i=t(new Set).current,a=t({getLayoutId:d(({id:e,name:t,duplicatedFrom:a})=>{if(!e)return null;let o=t?`byName`:`byId`,s=n.current[o][e];if(s)return s;let c=t||e;if(!a&&!i.has(c)&&(!n.current.byLayoutId[c]||n.current.byLayoutId[c]===c))return n.current.count[o][c]===void 0&&(n.current.count[o][c]=0,n.current.byLayoutId[c]=c,r.current[o][e]=c),i.add(c),c;let l;if(a?.length)for(let s=a.length-1;s>=0;s--){let c=a[s];V(!!c,`duplicatedId must be defined`);let u=n.current[o][c],d=n.current.byLastId[c];if(d&&!l){let e=n.current.byLayoutId[d],r=!e||e===t;d&&!i.has(d)&&(!t||r)&&(l=[d,c])}let f=u?n.current.byLayoutId[u]:void 0,p=!f||f===t;if(u&&!i.has(u)&&(!t||p))return r.current[o][e]=u,r.current.byLastId[c]=u,i.add(u),u}let u=n.current.byLastId[e];if(u&&!i.has(u))return i.add(u),r.current.byId[e]=u,u;if(l){let[t,n]=l;return r.current[o][e]=t,r.current.byLastId[n]=t,i.add(t),t}let d=n.current.byPossibleId[e];if(d&&!i.has(d))return i.add(d),r.current.byId[e]=d,d;let f=a?.[0],p=t||f||e,{layoutId:m,value:h}=xa(p,(n.current.count[o][p]??-1)+1,i);if(n.current.count[o][p]=h,r.current[o][e]=m,a?.length&&!t){let e=a[a.length-1];if(e&&(r.current.byLastId[e]=m),a.length>1)for(let e=0;e{n.current={byId:{...n.current.byId,...r.current.byId},byLastId:{...n.current.byLastId,...r.current.byLastId},byPossibleId:{...n.current.byPossibleId,...r.current.byPossibleId},byName:{...n.current.byName,...r.current.byName},byLastName:{...n.current.byLastName,...r.current.byLastName},byLayoutId:{...n.current.byLayoutId,...r.current.byLayoutId},count:{...n.current.count,byName:{}}},r.current={byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}},i.clear()},[]),top:!0,enabled:!0}).current;return D(mb.Provider,{value:a,children:e})}function xa(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 Sa({enabled:e=!0,...t}){let n=l(mb),r=u(()=>({...n,enabled:e}),[e]);return D(mb.Provider,{...t,value:r})}function Ca(e){let n=t(null);return n.current===null&&(n.current=e()),n.current}function wa(e){let{error:t,file:n}=e,r=n?`Error in ${Ta(n)}`:`Error`,i=t instanceof Error?t.message:``+t;return A(`div`,{style:gb,children:[D(`div`,{className:`text`,style:vb,children:r}),i&&D(`div`,{className:`text`,style:yb,children:i})]})}function Ta(e){return e.startsWith(`./`)?e.replace(`./`,``):e}function U(e){return Number.isFinite(e)}function Ea(e){return!e||!Object.keys(e).length&&e.constructor===Object}function Da(e){return typeof e!=`string`&&typeof e!=`number`}function Oa(e){return e!=null&&typeof e!=`boolean`&&!Ea(e)}function ka(e){return e*(Math.PI/180)}function Aa(e){return pt(e)?!1:e===2||e===5}function ja(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 Ma(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 Na(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 Na(e){switch(e){case`minWidth`:case`minHeight`:return-1/0;case`maxWidth`:case`maxHeight`:return 1/0;default:H(e,`unknown constraint key`)}}function Pa(e,t,n,r){return t.minHeight&&(e=Math.max(Ma(`minHeight`,t.minHeight,n,r),e)),t.maxHeight&&(e=Math.min(Ma(`maxHeight`,t.maxHeight,n,r),e)),e}function Fa(e,t,n,r){return t.minWidth&&(e=Math.max(Ma(`minWidth`,t.minWidth,n,r),e)),t.maxWidth&&(e=Math.min(Ma(`maxWidth`,t.maxWidth,n,r),e)),e}function Ia(e,t,n,r,i){let a=Fa(U(e)?e:wb,n,r,i),o=Pa(U(t)?t:Tb,n,r,i);return U(n.aspectRatio)&&n.aspectRatio>0&&(U(n.left)&&U(n.right)?o=a/n.aspectRatio:U(n.top)&&U(n.bottom)||n.widthType===0?a=o*n.aspectRatio:o=a/n.aspectRatio),{width:a,height:o}}function La(e,t){return!U(e)||!U(t)?null:e+t}function Ra(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 za(e){return!e._constraints||Ra(e)?!1:e._constraints.enabled}function Ba(e){let{size:t}=e,{width:n,height:r}=e;return U(t)&&(n===void 0&&(n=t),r===void 0&&(r=t)),U(n)&&U(r)?{width:n,height:r}:null}function Va(e){let t=Ba(e);if(t===null)return null;let{left:n,top:r}=e;return U(n)&&U(r)?{x:n,y:r,...t}:null}function Ha(e,t,n=!0){if(e.positionFixed||e.positionAbsolute)return null;let r=t===1||t===2;if(!za(e)||r)return Va(e);let i=Ua(e),a=Wa(t),o=a?{sizing:a,positioning:a,viewport:null}:null;return Cb.toRect(i,o,null,n,null)}function Ua(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=Sb.quickfix({left:U(t),right:U(n),top:U(r),bottom:U(i),widthType:ja(c),heightType:ja(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 Wa(e){return e===0||e===1||e===2?null:e}function Ga(){return r.useContext(Eb).parentSize}function Ka(e){return typeof e==`object`}function qa(e){return Ka(e)?e.width:e}function Ja(e){return Ka(e)?e.height:e}function Ya(e,t){return D(Db,{parentSize:t,children:e})}function Xa(e){return Ha(e,Ga(),!0)}function Za({width:e,height:t}){return e===`auto`||e===`min-content`||t===`auto`||t===`min-content`}function Qa(){return n===void 0?void 0:n}function $a(){let e=Qa();return e?kb.test(e.platform):!1}function eo(){let e=Qa();return e?Ab.test(e.platform)?!0:jb.test(e.platform)&&e.maxTouchPoints!=null&&e.maxTouchPoints>2:!1}function to(){return $a()||eo()}function no(){let e=Qa();return e?Mb.test(e.userAgent):!1}function ro(){let e=Qa();return e?Nb.test(e.userAgent)&&Pb.test(e.vendor)&&!no():!1}function io(){let e=Qa();return e?Fb.test(e.userAgent)&&Ib.test(e.vendor):!1}function ao(){let e=Qa();return e?Lb.test(e.userAgent):!1}function oo(){return typeof document==`object`}function so(){let e=Qa();return e?Rb.test(e.userAgent):!1}function co(){return!1}function lo(){let e=Qa();return e&&zb.test(e.userAgent)?`tablet`:e&&Bb.test(e.userAgent)?`phone`:`desktop`}function uo(){return lo()===`desktop`}function fo(e){return to()?e.metaKey:e.ctrlKey}function po(e,t,n=Hb){if(!(!e||n.has(e)||typeof document>`u`)){if(n.add(e),!t){if(!Ub){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)Ub=e.sheet;else{console.warn(`not injecting CSS: injected