import{t as e}from"./rolldown-runtime.Dh6celcD.mjs";import{A as t,C as n,D as r,E as i,F as a,I as o,L as s,M as c,N as l,O as u,P as d,S as f,T as p,_ as m,a as h,b as g,c as _,d as v,f as y,g as b,h as x,i as S,j as C,k as w,l as T,m as ee,o as E,p as te,s as D,u as O,v as ne,x as k,y as A}from"./react.BpKPsBQp.mjs";import{A as re,B as ie,C as ae,D as oe,E as se,F as ce,G as j,H as le,I as ue,J as de,K as fe,L as pe,N as me,O as he,P as ge,Q as _e,R as ve,S as ye,T as M,U as be,V as N,W as xe,X as Se,Y as P,Z as Ce,_ as we,a as Te,b as Ee,c as De,d as Oe,f as ke,g as Ae,h as je,i as Me,j as Ne,k as Pe,l as Fe,m as Ie,n as Le,o as Re,p as ze,q as Be,r as Ve,s as He,u as Ue,v as We,w as Ge,x as Ke,y as qe,z as Je}from"./motion.BteSJicN.mjs";function Ye(e){return typeof e==`function`}function Xe(e){return typeof e==`boolean`}function F(e){return typeof e==`string`}function I(e){return Number.isFinite(e)}function Ze(e){return Array.isArray(e)}function L(e){return typeof e==`object`&&!!e&&!Ze(e)}function Qe(e){for(let t in e)return!1;return!0}function R(e){return e===void 0}function $e(e){return e===null}function et(e){return e==null}function tt(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function nt(e){return L(e)&&Ye(e.return)}function rt(e){return L(e)&&Ye(e.then)}function it(e){return e instanceof Promise}function at(e){return`url('${ot(e)}')`}function ot(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(e,t,n){if(Fg.has(e))return;let r=Promise.resolve().then(t).then(t=>(Fg.set(e,t),t)).catch(t=>{throw Fg.delete(e),console.warn(`Failed to preload lazy module from ${n}`,t),t});r.catch(Dg),Fg.set(e,r)}function lt(e,t){Og&&(Ig.set(e,t),Lg.has(e)&&ct(e,t,`registered loader ${e}`))}function ut(){if(!Og)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=e.startsWith(Rg),i=r?e.slice(Rg.length):e;if(!i)continue;Lg.add(i);let a=Ig.get(i);a?ct(i,a,`registered loader ${i}`):r&&ct(i,()=>import(n),n)}}function dt(e){return typeof e==`object`&&!!e&&!y(e)&&Bg in e}function ft(e,t){if(t in e)return e[t];throw Error(`Module does not contain export '${t}'`)}function pt(e,t=`default`,n){n&<(n,e);let r,i,a,o=()=>{if(i||!n||!Fg.has(n))return;let e=Fg.get(n);it(e)?s(()=>e):i=ft(e,t)},s=e=>i?Promise.resolve(i):(r||=e().then(e=>{let n=ft(e,t);return i=n,n}).catch(e=>{a=e}),r),c=!1,l=x(function(t,r){if(C(()=>{c=!0},[]),a)throw a;if(o(),n!==void 0&&zg!==void 0&&zg.add(n),!i)throw s(e);return _(i,{ref:r,...t})});return l.preload=()=>(o(),s(e)),l.getStatus=()=>({hasLoaded:i!==void 0,hasRendered:c}),l}function mt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ht(e){return e===null||!(Hg in e)?!1:typeof e.equals==`function`}function gt(e,t){return e===t||e!==e&&t!==t}function _t(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!gt(e[r],t[r]))return!1;return!0}function vt(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!wt(e[r],t[r],!0))return!1;return!0}function yt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!gt(r,t.get(n)))return!1;return!0}function bt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!wt(r,t.get(n),!0))return!1;return!0}function xt(e,t){if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n))return!1;return!0}function St(e,t){let n=Vg(e);if(n.length!==Vg(t).length)return!1;for(let r of n)if(!mt(t,r)||!(r===`_owner`&&mt(e,`$$typeof`)&&e.$$typeof)&&!gt(e[r],t[r]))return!1;return!0}function Ct(e,t){let n=Vg(e);if(n.length!==Vg(t).length)return!1;for(let r of n)if(!mt(t,r)||!(r===`_owner`&&mt(e,`$$typeof`)&&e.$$typeof)&&!wt(e[r],t[r],!0))return!1;return!0}function wt(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?vt(e,t):_t(e,t);if(i!==a)return!1;let o=e instanceof Map,s=t instanceof Map;if(o&&s)return n?bt(e,t):yt(e,t);if(o!==s)return!1;let c=e instanceof Set,l=t instanceof Set;if(c&&l)return xt(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?ht(e)&&ht(t)?e.equals(t):n?Ct(e,t):St(e,t):!1}function Tt(e,t,n=!0){try{return wt(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 Et(e){return A.useCallback(t=>e[t],[e])}function Dt({api:e,children:t}){return _(Ug.Provider,{value:e,children:t})}function Ot(){return A.useContext(Ug)}function kt({routes:e,children:t}){let n=Et(e),r=w(()=>({getRoute:n}),[n]);return _(Ug.Provider,{value:r,children:t})}function At(){let e=Ot(),t=u(Wg),n=t?.routeId??e.currentRouteId,r=t?.routeId?t.pathVariables:e.currentPathVariables,i=n?e.getRoute?.(n):void 0;return w(()=>{if(!(!n||!i))return{...i,id:n,pathVariables:r}},[n,r,i])}function jt(){let e=At();if(e)return`${e.id}-${JSON.stringify(e.pathVariables)}`}function Mt(e){let t=At(),n=A.useRef(t);Tt(n.current,t)||!t||(n.current=t,e(t))}function Nt(e){let t=Ot();if(e)return t.getRoute?.(e)}function Pt(e,t){if(t&&e)return e.elements&&t in e.elements?e.elements[t]:t}function Ft(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;er?Pt(r,e):e,[e,r])}function Lt(){return At()?.pathVariables}function z(e,t){if(e)return;if(typeof t==`function`)try{t=t()}catch{t=`(assert message threw)`}typeof t==`string`&&t.length>2048&&(t=t.slice(0,2048)+`…`);let n=Error(t?`Assertion Error: `+t:`Assertion Error`);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 B(e,t){throw t instanceof Error?t:Error(t===void 0?e?`Unexpected value: ${e}`:`Application entered invalid state`:String(t))}function Rt(e){return e===null||typeof e!=`object`&&typeof e!=`function`}function zt(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===a_}function Bt(e){return Object.prototype.toString.call(e).slice(8,-1)}function Vt(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 Ht(e){let t=``,n=0,r=e.length;for(let i=0;iObject.getOwnPropertyDescriptor(e,t).enumerable)}function Wt(e){return o_.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function Gt(e){return!(!Number.isInteger(e)||e<0||e>r_)}function Kt(e){return!(!Number.isInteger(e)||e<0||e>n_)}function qt(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t57)return!1}return Gt(+e)}function Jt(e){let t=Object.keys(e);for(var n=t.length-1;n>=0&&!qt(t[n]);n--);return t.length=n+1,t}function Yt(e){return new Uint8Array(e).toBase64()}function Xt(e){return Uint8Array.fromBase64(e).buffer}function Zt(e){return Buffer.from(e).toString(`base64`)}function Qt(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function $t(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=Bt(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",${Ht(n.toString())}]`;break;case`URLSearchParams`:u=`["URLSearchParams",${Ht(n.toString())}]`;break;case`RegExp`:let{source:r,flags:i}=n;u=i?`["RegExp",${Ht(r)},"${i}"]`:`["RegExp",${Ht(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+=Xg;else{let t=Jt(n),r=t.length,i=String(n.length).length;if((n.length-r)*3>4+i+r*(i+1)){u=`[`+t_+`,`+n.length;for(let e=0;e0)throw new i_(`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 i_(`Cannot stringify objects with __proto__ keys`,o,n,t);o.push(Wt(e)),u+=`,${Ht(e)},${c(n[e])}`,o.pop()}u+=`]`}else{u=`{`;let e=!1;for(let r of Object.keys(n)){if(r===`__proto__`)throw new i_(`Cannot stringify objects with __proto__ keys`,o,n,t);e&&(u+=`,`),e=!0,o.push(Wt(r)),u+=`${Ht(r)}:${c(n[r])}`,o.pop()}u+=`}`}}}return r[l]=u,l}let l=c(t);return l<0?`${l}`:r}function on(e){let t=typeof e;return t===`string`?Ht(e):e===void 0?Yg.toString():e===0&&1/e<0?e_.toString():t===`bigint`?`["BigInt","${e}"]`:String(e)}function sn(e,t,n=`lazy`){switch(G.__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 cn(e){return F(e)&&(e===``||f_.test(e))}function ln(){return{[p_.QueryCache]:new Map,[p_.CollectionUtilsCache]:new Map}}function un(){if(!Og)return;if(m_!==void 0)return m_;let e=document.getElementById(`__framer__handoverData`);if(e){try{m_=tn(e.text)??ln()}catch(e){m_=ln(),console.warn(`Failed to parse handover data. Falling back to network.`,e)}return jg(()=>{e?.remove(),e=null}),m_}}function dn(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;sn(`published_site_load_error`,{message:String(e),stack:t})}}function fn(e,t){let n=un();return n?n[e].has(t):!1}function pn(e,t){let n=un();if(!n)return;let r=n[e];if(!r.has(t))return;let i=r.get(t);return r.delete(t),i}function mn(e){return e?.id??Kg}function hn(e,t,n,r){return`${e}|${t}|${n}|${r}`}function gn(e){return t=>{if(!e)return;let n=e[t];if(!n)return;if(v_.has(n))return v_.get(n);let r=new b_(n,t);return v_.set(n,r),r}}function _n({children:e,collectionUtils:t}){let n=w(()=>({get:gn(t)}),[t]);return _(y_.Provider,{value:n,children:e})}function vn(){return u(y_)}function yn(e){return new Promise(t=>{setTimeout(t,e)})}function bn(){return o===void 0?void 0:o}function xn(){let e=bn();return e?x_.test(e.platform):!1}function Sn(){let e=bn();return e?S_.test(e.platform)?!0:C_.test(e.platform)&&e.maxTouchPoints!=null&&e.maxTouchPoints>2:!1}function Cn(){return xn()||Sn()}function wn(){let e=bn();return e?w_.test(e.userAgent):!1}function Tn(){let e=bn();return e?T_.test(e.userAgent)&&E_.test(e.vendor)&&!wn():!1}function En(){let e=bn();return e?D_.test(e.userAgent)&&O_.test(e.vendor):!1}function Dn(){let e=bn();return e?k_.test(e.userAgent):!1}function On(){return typeof document==`object`}function kn(){let e=bn();if(!e)return-1;let t=A_.exec(e.userAgent);return t?.[1]?parseFloat(t[1]):-1}function An(){let e=bn();return e?j_.test(e.userAgent):!1}function jn(){return!1}function Mn(){let e=bn();return e&&M_.test(e.userAgent)?`tablet`:e&&N_.test(e.userAgent)?`phone`:`desktop`}function Nn(){return Mn()===`desktop`}function Pn(e){return Cn()?e.metaKey:e.ctrlKey}function Fn(){}function In(e){return typeof e==`function`?e():e}function Ln(e,t){return L_[e]>L_[t]}function Rn(){if(!(typeof scheduler>`u`))return scheduler}function zn(e,t){let n=e?.priority,r=Rn();return n===`background`?t?.()??yn(1):r?.yield?r.yield(e).catch(Fn):r?.postTask?r.postTask(Fn,e).catch(Fn):t?t():n===`user-blocking`?R_:yn(0)}function Bn(e,t,n){let r=-1/0,i,a=new Set;function o(){for(let e of a)e();a.clear()}function c(){return document.hidden?(o(),!0):!1}function l(){On()&&(document.addEventListener(`visibilitychange`,c),s.addEventListener(`pagehide`,o))}function u(n){return new Promise(r=>{setTimeout(r,z_),e(()=>{zn(n,t).then(r)})})}function d(e){return On()?new Promise(t=>{let n=!0,r=()=>{n&&(n=!1,a.delete(r),t())};a.add(r),c()||l(),e.then(r,r)}):e}function f(e,n){let{continueAfter:r,ensureContinueBeforeUnload:i,...a}=e,o=n??r===`paint`?u(a):zn(a,t);return i?d(o):o}function p(e,t,n){n&&e.pendingPaintYieldCount++;let a=f(t,n),o=t.signal,s=!0,c=t=>{s&&(s=!1,o?.removeEventListener(`abort`,l),t&&(r=performance.now()),n&&e.pendingPaintYieldCount--,i===e&&e.pendingPaintYieldCount===0&&(i=void 0))},l=()=>c(!1);return o?.aborted?l():o?.addEventListener(`abort`,l,{once:!0}),a.then(()=>c(!0),()=>c(!0)),a}function m(e,t){let a=i;if(!a){let n=performance.now(),o=t??(e.priority===`user-blocking`?P_:F_),s=On()&&document.hidden?I_:o;if(n-r0||n?.()!==!1);return p(a,e,o)}function h(e){let{batch:n,batchDuration:r,...i}=e??{};return!On()&&!t?n?void 0:R_:n?m(i,r):f(i)}return h}function Vn(){let e=vn(),{getRoute:n}=Ot();return t((t,r,i)=>{if(!t||!n)return;let a=n(t),{pathVariables:o,locale:s}=r;return Un(a,{routeId:t,pathVariables:o,locale:s,collectionUtils:e},i)},[n,e])}function Hn(e,t=!0){let n=Vn();C(()=>{if(!(!t||!H_))for(let t of e)n(t,{})},[e,t,n])}async function Un(e,t,n={}){if(!H_||!e)return;let{priority:r=`background`,yieldBeforePreload:i=!0,shouldLoadRouteData:a=!0}=n,o=e.page;if(!(!o||!dt(o))){i&&await V_({priority:r});try{let e=await o.preload();a&&t&&e&&await Wn(e,t,r)}catch{}}}async function Wn(e,t,n){let r=e.loader;if(!r?.load)return;let i={signal:t.signal??new AbortController().signal,pathVariables:t.pathVariables??{},routeId:t.routeId,locale:t.locale,priority:n,collectionUtils:t.collectionUtils};try{await r.load({},i)}catch{}}function Gn(e,t){return e.replace(K_,(e,n)=>{let r=t[n];return typeof r!=`string`||r.length===0?e:encodeURIComponent(r)})}function Kn(e,t=!1){let n=``;if(s!==void 0)if(t)n=s.location.search;else{let e=s.history?.state?.queryParamBackAnchorSearch;n=e===void 0?s.location.search:e===``?``:`?${e}`}return n?qn(n,e):e}function qn(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!==q_&&c.append(e,t);let u=c.toString();return u===``?r+i:o+`?`+u+i}async function Jn(e,t,n,r,i,a,o){let s=e,c=!1,l={...a},u=Array.from(s.matchAll(K_)),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||!F(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=it(p)?await p:p;if(!m)return d;let h=f.getSlugByRecordId(m,n),g=it(h)?await h:h;if(!g){c=!0;let e=f.getSlugByRecordId(m,r),t=it(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{e=!0};s.addEventListener(`popstate`,t,{once:!0}),queueMicrotask(()=>{if(s.removeEventListener(`popstate`,t),e){let e=`Popstate called synchronously during pushState(). Please report this to the Framer team.`;console.error(e),sn(`published_site_load_recoverable_error`,{message:e})}})}function Qn({children:e,value:t}){return _(Y_.Provider,{value:t,children:e})}function $n(){return A.useContext(Y_)}function er(e,t,{global:n,routes:r}){return r[e]?.[t]||n}function tr(e){let t=X_,n=e.next(0),r=[n.value];for(;!n.done&&t{je.render(()=>{performance.mark(`framer-vt-remove`);let e=document.getElementById(nv);e&&document.head.removeChild(e)})})}function pr(){return!!document.startViewTransition}function mr(e){return new Promise(t=>{je.render(()=>{performance.mark(`framer-vt-style`),dr(e),t()})})}async function hr(e,t,n){if(!pr()){e();return}if(await mr(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(iv),Promise.all([r.ready,r.finished]).then(()=>{performance.mark(`framer-vt-finished`),fr()}).catch(iv),r}function gr(){let e=$n(),n=i(void 0);return C(()=>{n.current&&=(n.current(),void 0)}),t((t,r,i,a)=>{let o=er(t,r,e);if(o){let e=new Promise(e=>{n.current=e});return hr(async()=>{i(),await e},o,a)}i()},[e])}function _r(e,t){jg(()=>{let n=document.querySelector(`link[rel='canonical']`);if(!n)return;let r=new URL(e,t);r.search=``,n.setAttribute(`href`,r.toString())})}function vr(e,t,n,r=g){r(()=>{let t=async e=>(await V_({...n,continueAfter:`paint`}),e()),r=t(e);return()=>{(async()=>{let e=await r;e&&t(e)})()}},t)}function yr(e){let n=i(new Set);return vr(()=>{for(let e of n.current)e();n.current.clear()},void 0,{priority:`user-blocking`}),t(t=>{let r,i=new Promise(e=>{r=e,n.current.add(e)});if(!e)return{promise:i,measureDetail:t,ignore:null};let a=`${e}-start`,o=`${e}-end`,s=!1;return performance.mark(a),i.finally(()=>{s||(performance.mark(o),performance.measure(e,{start:a,end:o,detail:t}))}).catch(e=>{console.error(e)}),{promise:i,measureDetail:t,ignore:()=>{s=!0,r&&(n.current.delete(r),r())}}},[e])}function br(e){return L(e)&&`routeId`in e}function xr(e=s.history.state){return br(e)?e:void 0}function Sr(e){return e?.entryId}function Cr(e){sv=e}function wr(){return sv}function Tr(){return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function Er(e,t){return Dr(e,Sr(e)??Sr(t))}function Dr(e,t=Tr()){return{...e,entryId:t}}function Or(e,t,n=!1){performance.mark(`framer-history-replace`),Cr(Er(e,xr())),t&&_r(t,s.location.href);let r;r=W_().privateRouterReplaceState?!t||t===s.location.href?s.History.prototype.replaceState:s.history.replaceState:n?s.History.prototype.replaceState:s.history.replaceState;try{r.call(s.history,sv,``,t)}catch{}}function kr(e){performance.mark(`framer-history-replace`),Cr(Dr(e)),History.prototype.replaceState.call(s.history,sv,``,void 0)}function Ar(e,t){performance.mark(`framer-history-push`),Cr(Dr(e)),_r(t,s.location.href),Zn();try{s.history.pushState(sv,``,t)}catch{}}function jr({disabled:e,routeId:t,initialPathVariables:n,initialLocaleId:r}){g(()=>{if(e)return;performance.mark(`framer-history-set-initial-state`);let i=s.location.hash?s.location.hash.slice(1):void 0;Or({...xr(),routeId:t,hash:i,pathVariables:n,localeId:r},void 0,!0)},[])}function Mr(e,n,r){let a=gr(),o=yr(`framer-route-change`),{onHistoryTraversal:c,usesCustomScrollRestoration:l}=e,u=l?`manual`:`after-transition`,d=i(void 0),f=t(()=>{d.current?.resolve(),d.current=void 0},[]),p=t(async({state:e})=>{if(!br(e))return;let t=o({popstate:!0}),i=Ft();t.promise.finally(i),Sr(wr())!==(Sr(e)??Sr(xr()))&&c(),Cr(e);let{routeId:l,hash:d,pathVariables:p,localeId:m}=e,h=F(d)?d:s.location.hash?s.location.hash.slice(1):void 0,g=!1,_=()=>{g||=(r(l,F(m)?m:void 0,h,s.location.pathname+s.location.search+s.location.hash,L(p)?p:void 0,!0,t,!1),!0)},v=u===`after-transition`;await Promise.resolve(a(n.current,l,_)).then(e=>e?.updateCallbackDone).catch(_).finally(()=>{v||f()}),await t.promise,v&&f(),await s.navigation?.transition?.finished.catch(Dg),ov(),_r(s.location.href)},[n,o,c,f,r,a,u]),m=t(e=>{if(e.navigationType!==`traverse`||!e.canIntercept)return;let t=e.destination?.getState();br(t)&&e.intercept({async handler(){await new Promise((e,t)=>{d.current={resolve:e,reject:t}}),d.current=void 0},scroll:u})},[u]);C(()=>(s.addEventListener(`popstate`,p),cv&&s.navigation.addEventListener(`navigate`,m),()=>{s.removeEventListener(`popstate`,p),cv&&s.navigation.removeEventListener(`navigate`,m)}),[p,m])}async function Nr(e,t,n){if(!e.path||!t)return!1;let r=Yn(Gn(e.path,t),n.slug);return(await fetch(r,{method:`HEAD`,redirect:`manual`})).type===`opaqueredirect`?(s.location.href=s.location.origin+r,!0):!1}function Pr(){let e=vn();return t(t=>Fr({...t,collectionUtils:e}),[e])}async function Fr(e){let t=await Xn(e);if(t){try{localStorage.preferredLocale=e.nextLocale.code}catch{}try{if(!F(t.path))throw Error(`Expected result.path to be a string`);if(t.isMissingInLocale&&await Nr(e.route,t.pathVariables,e.nextLocale))return}catch{}return t}}function Ir(e){let n=i(Promise.resolve()),r=i(),a=t(t=>{if(t.navigationType===`traverse`||!t.canIntercept)return;let i=r.current;i?.signal.addEventListener(`abort`,()=>{i.abort(`user aborted`)}),t.intercept({handler:()=>n.current,scroll:e?`manual`:`after-transition`})},[e]);return t((e,t,i)=>{if(!cv){i?.();return}n.current=e,r.current=t,s.navigation.addEventListener(`navigate`,a),i?.(),e.finally(()=>{n.current===e&&(r.current=void 0,s.navigation.removeEventListener(`navigate`,a))})},[a])}function Lr(e){let t=0,n=e.length;for(;tt&&e[n-1]===`-`;)n--;return e.slice(t,n)}function Rr(e){return Lr(e.trim().toLowerCase().replace(lv,`-`))}function zr({children:e,value:t}){return _(dv.Provider,{value:t,children:e})}function Br(){return u(dv)}function Vr(e,t){let n=l(()=>({inputs:t,result:e()}))[0],r=i(!0),a=i(n),o=r.current||t&&a.current.inputs&&Tt(t,a.current.inputs,!1)?a.current:{inputs:t,result:e()};return C(()=>{r.current=!1,a.current=o},[o]),o.result}function Hr(e,t){return Vr(()=>e,t)}function Ur(){return A.useContext(hv)}function Wr(){return A.useContext(gv)}function Gr(){return s.location.search}function Kr(){return``}function qr(e){return _v.add(e),s.addEventListener(`popstate`,e),()=>{_v.delete(e),s.removeEventListener(`popstate`,e)}}function Jr(){for(let e of _v)e()}function Yr({children:e,routerRenderKey:n,isNavigationCommitPending:r}){let a=Br()===`preview`,[o,c]=l(``),u=i(n);fv(()=>{u.current=n},[n]);let d=ne(qr,Gr,Kr),f=p(d),m=n!==p(n),h=a?o:m?d:f,g=t(async e=>{if(a){b(()=>{c(t=>e(new URLSearchParams(t)).toString())});return}let t=r(),i=n;if(await V_({continueAfter:`paint`}),t||r()||u.current!==i)return;let o=xr();if(!o)return;let l=new URL(s.location.href),d=e(l.searchParams).toString();l.search=d;let f=o.queryParamBackAnchorSearch,p=s.location.search.slice(1),m=f===void 0&&d!==p,h=f!==void 0&&d===f,g={...o,queryParamBackAnchorSearch:h?void 0:f??(m?p:void 0)},_=l.toString();m||h?Ar(g,_):Or(g,_),Jr()},[r,a,n]),v=Vr(()=>({urlSearchParams:new URLSearchParams(h),replaceSearchParams:g}),[h,g]);return _(vv.Provider,{value:v,children:e})}function Xr({parameterName:e}){let n=i(e),{urlSearchParams:r,replaceSearchParams:a}=u(vv);return[w(()=>r.getAll(n.current),[r]),t(async e=>{Ze(e)&&await a(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)F(t)&&i.append(r,t)}}if(!a)for(let t of e)F(t)&&i.append(r,t);return i})},[a])]}function Zr({initialValue:e,parameterName:n,optional:r}){let a=i(r?void 0:F(e)?e:``),[o,s]=Xr({parameterName:n});return[w(()=>o.length===0?a.current:o[0]??``,[o]),t(async e=>{if(e===a.current)return s(Gg);if(F(e))return s([e])},[s])]}function Qr({initialValue:e,parameterName:n,optional:r}){let a=i(r?void 0:e?yv:bv),[o,s]=Zr({initialValue:a.current,parameterName:n,optional:r});return[w(()=>{if(o===yv)return!0;if(o===bv)return!1;if(!R(o)){if(a.current===yv)return!0;if(a.current===bv)return!1}},[o]),t(async e=>{if(R(e))return s(void 0);if(Xe(e))return s(e?yv:bv)},[s])]}function $r({initialValue:e,parameterName:n,options:r=Gg,getOptionTitle:i=xv,optional:a}){C(()=>{(r===Gg||i===xv)&&console.warn(`[useEnumQueryParam]`,`The URL variable \`${n}\` 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.`)},[r,i,n]);let o=Ur().activeLocale??void 0,s=w(()=>{let e=new Map;for(let t of r){let n=i(t,o);n&&e.set(n,t)}return e},[o,r,i]),[c,l]=Zr({initialValue:w(()=>{if(e&&r.includes(e))return i(e,o)||``},[o,e,r,i]),parameterName:n,optional:a});return[w(()=>{let t=e&&r.includes(e)?e:void 0;return R(c)?void 0:c?s.get(c)||(a?void 0:t):t},[c,s,e,r,a]),t(async e=>{if(R(e))return l(void 0);let t=i(e,o);if(t)return l(t)},[l,o,i])]}function ei(e,t){if(!e.startsWith(`/`)||!t.startsWith(`/`))throw Error(`from/to paths are expected to be absolute`);let[n]=ti(e),[r,i]=ti(t),a=ni(n,r);return a===``&&(a=`.`),!a.startsWith(`.`)&&!a.startsWith(`/`)&&(a=`./`+a),a+`/`+i}function ti(e){let t=e.lastIndexOf(`/`);return[e.substring(0,t+1),e.substring(t+1)]}function ni(e,t){if(e===t||(e=`/`+ri(e),t=`/`+ri(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=ra){if(wv(t,1+s)===Cv)return Ev(t,1+s+1);if(s===0)return Ev(t,1+s)}else r>a&&(wv(e,1+s)===Cv?o=s:s===0&&(o=0));let c=``;for(s=1+o+1;s<=n;++s)(s===n||wv(e,s)===Cv)&&(c+=c.length===0?`..`:`/..`);return`${c}${Ev(t,1+o)}`}function ri(e){let t=``,n=0,r=-1,i=0,a=0;for(let o=0;o<=e.length;++o){if(o2){let e=Tv(t,Ov);e===-1?(t=``,n=0):(t=Ev(t,0,e),n=t.length-1-Tv(t,Ov)),r=o,i=0;continue}else if(t.length!==0){t=``,n=0,r=o,i=0;continue}}Dv&&(t+=t.length>0?`${Ov}..`:`..`,n=2)}else t.length>0?t+=`${Ov}${Ev(e,r+1,o)}`:t=Ev(e,r+1,o),n=o-r-1;r=o,i=0}else a===Sv&&i!==-1?++i:i=-1}return t}function ii(e){if(!e)return``;let t;try{t=new URL(e)}catch{return``}return t.pathname===`/`||s.location.origin!==t.origin?``:t.pathname.endsWith(`/`)?t.pathname.slice(0,-1):t.pathname}function ai(e,t,n){let r=Pt(t,e);if(!r)return;let i=Object.assign({},t?.elements,n);return r.replace(K_,(e,t)=>i[t]??e)}function oi(e,{currentRoutePath:t,currentRoutePathLocalized:n,currentPathVariables:r,hash:i,pathVariables:a,hashVariables:o,relative:c=!0,preserveQueryParams:l,onlyHash:u=!1,siteCanonicalURL:d,localeId:f,localeSlug:p}){let m=ai(i,e,o);if(u)return m??``;let h=t??`/`;n&&f&&(h=n[f]??h),r&&(h=h.replace(K_,(e,t)=>String(r[t]||e)));let g=(f?e?.pathLocalized?.[f]:void 0)??e?.path??`/`;a&&(g=g.replace(K_,(e,t)=>String(a[t]||e)));let _=!!(h===g&&m),v=!_&&a!==void 0&&t!==void 0&&e?.path!==void 0&&t===e.path&&h!==g;if(c)if(Av.has(h)&&s!==void 0){let e=ii(d);g=ei(s.location.pathname,e+g)}else g=ei(h,g);else g=Yn(g,p);let y=_||v;return(l||y)&&(g=Kn(g,y)),m&&(g=`${g}#${m}`),g}function si(){let e=new Event(`change`,{bubbles:!0});return e[jv]=1,e}function ci(){let e=new MouseEvent(`click`,{bubbles:!0});return e[jv]=1,e}function li(e){return e instanceof HTMLInputElement&&(e.type===`checkbox`||e.type===`radio`)?`checked`:`value`}function ui(e){return jv in e&&e[jv]===1}function di(e){return Mv in e.nativeEvent&&e.nativeEvent[Mv]===1}function fi(e){let t=i(!1),n=i(null),r=ne(Mg,Pg,Nv);return C(()=>{if(!r)return;let i=n.current;if(t.current||!i)return;t.current=!0;let a=li(i),o=i[a];if(o===e)return;if(i.type===`radio`&&o===!0){i.checked=!1,i.dispatchEvent(ci());return}if(a===`checked`){let e=ci();e[Mv]=1,i.dispatchEvent(e),i.dispatchEvent(ci());return}if(i.nodeName===`SELECT`){i.dispatchEvent(si());return}let s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),a)?.set;if(!s)return;s.call(i,``);let c=si();c[Mv]=1,i.dispatchEvent(c),queueMicrotask(()=>{s.call(i,o),i.dispatchEvent(si())})},[r]),n}function pi(){if(!Pv)return;Iv=!0,performance.mark(`framer-react-event-handling-start`);let e={capture:!0},t=document.body;Pv.forEach(n=>t.addEventListener(n,Fv,e))}function mi(){return C(()=>{if(!Iv||!Pv)return;let e={capture:!0},t=document.body;Pv.forEach(n=>t.removeEventListener(n,Fv,e)),Pv=void 0,performance.mark(`framer-react-event-handling-end`)},[]),null}function hi(e){let t=!1;return function(...n){if(!t)return t=!0,e.apply(this,n)}}function gi(e,t,n){try{performance.measure(e,t,n)}catch(t){console.warn(`Could not measure ${e}`,t)}}function _i(){ny=new ty,ny.render.markStart()}function vi(){k(()=>{ny?.useInsertionEffects.markRouterStart()},[]),g(()=>{ny?.useLayoutEffects.markRouterStart()},[]),C(()=>{ny?.useEffects.markRouterStart()},[])}function yi(){k(()=>{ny?.render.markEnd(),ny?.useInsertionEffects.markStart()},[]),g(()=>{if(ny?.useLayoutEffects.markStart(),document.visibilityState!==`visible`){ry=!0;return}je.read(()=>{ny?.browserRendering.requestAnimationFrame.markStart(),ny?.unattributedHydrationOverhead.measure()})},[]),C(()=>{ny?.useEffects.markStart(),ny?.browserRendering.hasStarted||(ny?.mutationEffects.measure(),ny?.useEffects.markAreSynchronous())},[])}function bi(){k(()=>{ny?.useInsertionEffects.markEnd()},[]),g(()=>{ny?.useLayoutEffects.markEnd(),!(ry||document.visibilityState!==`visible`)&&je.read(()=>{ny?.browserRendering.requestAnimationFrame.markEnd(),V_().then(()=>{ny?.browserRendering.layoutStylePaint.markEnd()})})},[]),C(()=>{ny?.useEffects.markEnd()},[])}function xi(){return yi(),null}function Si(){return bi(),null}function Ci(e,t){let n={style:t,"data-framer-root":``};return A.isValidElement(e)?A.cloneElement(e,n):_(e,{...n})}function wi(){return sy}function Ti(e){if(cy?.lastRoutes!==e){let t={},n={},r=[],i={},a=e;for(let r in e){let i=e[r];z(i,`route must be defined`);let{path:a,pathLocalized:o}=i;if(a&&(t[a]={path:a,depth:Oi(a),routeId:r},o))for(let e in o){let t=o[e];z(t,`localizedPath must be defined`);let i=Oi(t),a=n[e]||={};a[t]={path:t,depth:i,routeId:r}}}r=Object.values(t),r.sort(({depth:e},{depth:t})=>t-e);for(let e in n){let t=n[e];if(!t)continue;let r=Object.values(t);r.sort(({depth:e},{depth:t})=>t-e),i[e]=r}cy={pathRoutes:t,pathRoutesLocalized:n,paths:r,pathsLocalized:i,lastRoutes:a}}return{pathRoutes:cy.pathRoutes,paths:cy.paths,pathRoutesLocalized:cy.pathRoutesLocalized,pathsLocalized:cy.pathsLocalized}}function Ei(e,t,n=!0,r=wi()){return Di(e,t,r,n)}function Di(e,t,n,r=!0){let{pathRoutes:i,paths:a,pathRoutesLocalized:o,pathsLocalized:s}=Ti(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=ki(t,n.path);if(e.isMatch)return{routeId:n.routeId,localeId:l,pathVariables:e.pathVariables}}}let d=i[t];if(d){let e=ki(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=ki(t,n);if(e.isMatch)return{routeId:r,localeId:l,pathVariables:e.pathVariables}}}for(let{path:e,routeId:n}of a){let r=ki(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 Oi(e){let t=e.replace(/^\/|\/$/gu,``);return t===``?0:t.split(`/`).length}function ki(e,t){let n=[],r=Ai(t).replace(K_,(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 Mi(e,t,n){let r=e[n];if(!r)return;let i=r.abTestingParentId??n,a=e[i];if(!a)return;let{abTestingParentId:o,...s}=r,c=a.elements||r.elements?{...a.elements,...r.elements}:void 0;e[i]={...s,includedLocales:a.includedLocales,elements:c,abTestingVariantId:n,abTestId:t}}function Ni(e,t){for(let[n,r]of t)Mi(e,n,r)}function Pi(e){for(let t in e)e[t]?.abTestingParentId&&delete e[t]}function Fi(e,t){if(!e[t]||!e[t].abTestingParentId)return;let n=e[t].abTestingParentId,r=e[n],{abTestingParentId:i,...a}=e[t],o=r?.elements||a.elements?{...r?.elements,...a.elements}:void 0;e[n]={...a,includedLocales:r?.includedLocales,elements:o,abTestingVariantId:t}}function Ii(e,t){if(s===void 0)return t;let n=t;if(t){Fi(e,t);let r=e[t]?.abTestingParentId;r&&(n=r)}return Ni(e,ji()),Pi(e),n}function Li(e){C(()=>{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]),k(()=>{document.title=e.title||``,e.viewport&&document.querySelector(`meta[name="viewport"]`)?.setAttribute(`content`,e.viewport)},[e.title,e.viewport])}function Ri(e,...t){ly.has(e)||(ly.add(e),console.warn(e,...t))}function zi(e,t,n){Ri(`Deprecation warning: ${e} will be removed in version ${t}${n?`, use ${n} instead`:``}.`)}function Bi(e){return typeof e==`object`&&!!e&&fy in e&&e[fy]instanceof Function&&py in e&&e[py]instanceof Function}function Vi(e,t){return{interpolate(e,n){let r=e.get(),i=n.get(),a=dy(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 Hi(e,t){let n=10**Math.round(Math.abs(t));return Math.round(e*n)/n}function Ui(e,t){return t===0?Math.round(e):(t-=t|0,t<0&&(t=1-t),Math.round(e-t)+t)}function Wi(e){return Math.round(e*2)/2}function Gi(e,t){return{x:e,y:t}}function Ki(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 ra(e,t,n){let r,i,a;if(e=oa(e,360),t=oa(t*100,100),n=oa(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=na(s,o,e+1/3),i=na(s,o,e),a=na(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function ia(e,t,n){e=oa(e,255),t=oa(t,255),n=oa(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 _a({r:e,g:t,b:n,a:r}){return{r:ga(e),g:ga(t),b:ga(n),a:r}}function va({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 Aa(){return G.location.origin===`https://screenshot.framer.invalid`}function ja({children:e}){if(u(Iy).top)return _(D,{children:e});let n=i({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{},count:{byId:{},byName:{}}}),r=i({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}}),a=i(new Set).current,o=i({getLayoutId:t(({id:e,name:t,duplicatedFrom:i})=>{if(!e)return null;let o=t?`byName`:`byId`,s=n.current[o][e];if(s)return s;let c=t||e;if(!i&&!a.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),a.add(c),c;let l;if(i?.length)for(let s=i.length-1;s>=0;s--){let c=i[s];z(!!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&&!a.has(d)&&(!t||r)&&(l=[d,c])}let f=u?n.current.byLayoutId[u]:void 0,p=!f||f===t;if(u&&!a.has(u)&&(!t||p))return r.current[o][e]=u,r.current.byLastId[c]=u,a.add(u),u}let u=n.current.byLastId[e];if(u&&!a.has(u))return a.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,a.add(t),t}let d=n.current.byPossibleId[e];if(d&&!a.has(d))return a.add(d),r.current.byId[e]=d,d;let f=i?.[0],p=t||f||e,{layoutId:m,value:h}=Ma(p,(n.current.count[o][p]??-1)+1,a);if(n.current.count[o][p]=h,r.current[o][e]=m,i?.length&&!t){let e=i[i.length-1];if(e&&(r.current.byLastId[e]=m),i.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:{}},a.clear()},[]),top:!0,enabled:!0}).current;return _(Iy.Provider,{value:o,children:e})}function Ma(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 Na({enabled:e=!0,...t}){let n=u(Iy),r=w(()=>({...n,enabled:e}),[e]);return _(Iy.Provider,{...t,value:r})}function Pa(e){let t=i(null);return t.current===null&&(t.current=e()),t.current}function Fa(e){let{error:t,file:n}=e,r=n?`Error in ${Ia(n)}`:`Error`,i=t instanceof Error?t.message:``+t;return T(`div`,{style:Ry,children:[_(`div`,{className:`text`,style:By,children:r}),i&&_(`div`,{className:`text`,style:Vy,children:i})]})}function Ia(e){return e.startsWith(`./`)?e.replace(`./`,``):e}function V(e){return Number.isFinite(e)}function La(e){return!e||!Object.keys(e).length&&e.constructor===Object}function Ra(e){return typeof e!=`string`&&typeof e!=`number`}function za(e){return e!=null&&typeof e!=`boolean`&&!La(e)}function Ba(e){return Math.PI/180*e}function Va(e){return R(e)?!1:e===2||e===5}function Ha(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 Ua(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 Wa(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 Wa(e){switch(e){case`minWidth`:case`minHeight`:return-1/0;case`maxWidth`:case`maxHeight`:return 1/0;default:B(e,`unknown constraint key`)}}function Ga(e,t,n,r){return t.minHeight&&(e=Math.max(Ua(`minHeight`,t.minHeight,n,r),e)),t.maxHeight&&(e=Math.min(Ua(`maxHeight`,t.maxHeight,n,r),e)),e}function Ka(e,t,n,r){return t.minWidth&&(e=Math.max(Ua(`minWidth`,t.minWidth,n,r),e)),t.maxWidth&&(e=Math.min(Ua(`maxWidth`,t.maxWidth,n,r),e)),e}function qa(e,t,n,r,i){let a=Ka(V(e)?e:Ky,n,r,i),o=Ga(V(t)?t:qy,n,r,i);return V(n.aspectRatio)&&n.aspectRatio>0&&(V(n.left)&&V(n.right)?o=a/n.aspectRatio:V(n.top)&&V(n.bottom)||n.widthType===0?a=o*n.aspectRatio:o=a/n.aspectRatio),{width:a,height:o}}function Ja(e,t){return!V(e)||!V(t)?null:e+t}function Ya(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 Xa(e){return!e._constraints||Ya(e)?!1:e._constraints.enabled}function Za(e){let{size:t}=e,{width:n,height:r}=e;return V(t)&&(n===void 0&&(n=t),r===void 0&&(r=t)),V(n)&&V(r)?{width:n,height:r}:null}function Qa(e){let t=Za(e);if(t===null)return null;let{left:n,top:r}=e;return V(n)&&V(r)?{x:n,y:r,...t}:null}function $a(e,t,n=!0){if(e.positionFixed||e.positionAbsolute)return null;let r=t===1||t===2;if(!Xa(e)||r)return Qa(e);let i=eo(e),a=to(t),o=a?{sizing:a,positioning:a,viewport:null}:null;return Gy.toRect(i,o,null,n,null)}function eo(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=Wy.quickfix({left:V(t),right:V(n),top:V(r),bottom:V(i),widthType:Ha(c),heightType:Ha(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 to(e){return e===0||e===1||e===2?null:e}function no(){return A.useContext(Jy).parentSize}function ro(e){return typeof e==`object`}function io(e){return ro(e)?e.width:e}function ao(e){return ro(e)?e.height:e}function oo(e,t){return _(Yy,{parentSize:t,children:e})}function so(e){return $a(e,no(),!0)}function co({width:e,height:t}){return e===`auto`||e===`min-content`||t===`auto`||t===`min-content`}function lo(e){let t=!1,n;return{get value(){return t||=(n=e(),!0),n}}}function uo(e,t,n=Qy){if(!(!e||n.has(e)||typeof document>`u`)){if(n.add(e),!t){if(!$y){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)$y=e.sheet;else{console.warn(`not injecting CSS: injected