(()=>{var N,X,q,b=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},k=function(e){if(document.readyState==="loading")return"loading";var t=b();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},Ee=function(e){var t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},j=function(e,t){var n="";try{for(;e&&e.nodeType!==9;){var i=e,r=i.id?"#"+i.id:Ee(i)+(i.classList&&i.classList.value&&i.classList.value.trim()&&i.classList.value.trim().length?"."+i.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+r.length>(t||100)-1)return n||r;if(n=n?r+">"+n:r,i.id)break;e=i.parentNode}}catch{}return n},ae=-1,oe=function(){return ae},M=function(e){addEventListener("pageshow",function(t){t.persisted&&(ae=t.timeStamp,e(t))},!0)},x=function(){var e=b();return e&&e.activationStart||0},g=function(e,t){var n=b(),i="navigate";return oe()>=0?i="back-forward-cache":n&&(document.prerendering||x()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},D=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver(function(r){Promise.resolve().then(function(){t(r.getEntries())})});return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch{}},v=function(e,t,n,i){var r,s;return function(a){t.value>=0&&(a||i)&&((s=t.value-(r||0))||r===void 0)&&(r=t.value,t.delta=s,t.rating=function(o,c){return o>c[1]?"poor":o>c[0]?"needs-improvement":"good"}(t.value,n),e(t))}},U=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},B=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},G=function(e){var t=!1;return function(){t||(e(),t=!0)}},E=-1,Y=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},R=function(e){document.visibilityState==="hidden"&&E>-1&&(E=e.type==="visibilitychange"?e.timeStamp:0,Ce())},$=function(){addEventListener("visibilitychange",R,!0),addEventListener("prerenderingchange",R,!0)},Ce=function(){removeEventListener("visibilitychange",R,!0),removeEventListener("prerenderingchange",R,!0)},se=function(){return E<0&&(E=Y(),$(),M(function(){setTimeout(function(){E=Y(),$()},0)})),{get firstHiddenTime(){return E}}},O=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},ee=[1800,3e3],ce=function(e,t){t=t||{},O(function(){var n,i=se(),r=g("FCP"),s=D("paint",function(a){a.forEach(function(o){o.name==="first-contentful-paint"&&(s.disconnect(),o.startTime<i.firstHiddenTime&&(r.value=Math.max(o.startTime-x(),0),r.entries.push(o),n(!0)))})});s&&(n=v(e,r,ee,t.reportAllChanges),M(function(a){r=g("FCP"),n=v(e,r,ee,t.reportAllChanges),U(function(){r.value=performance.now()-a.timeStamp,n(!0)})}))})},te=[.1,.25],ue=function(e,t){(function(n,i){i=i||{},ce(G(function(){var r,s=g("CLS",0),a=0,o=[],c=function(l){l.forEach(function(f){if(!f.hadRecentInput){var h=o[0],m=o[o.length-1];a&&f.startTime-m.startTime<1e3&&f.startTime-h.startTime<5e3?(a+=f.value,o.push(f)):(a=f.value,o=[f])}}),a>s.value&&(s.value=a,s.entries=o,r())},d=D("layout-shift",c);d&&(r=v(n,s,te,i.reportAllChanges),B(function(){c(d.takeRecords()),r(!0)}),M(function(){a=0,s=g("CLS",0),r=v(n,s,te,i.reportAllChanges),U(function(){return r()})}),setTimeout(r,0))}))})(function(n){var i=function(r){var s,a={};if(r.entries.length){var o=r.entries.reduce(function(d,l){return d&&d.value>l.value?d:l});if(o&&o.sources&&o.sources.length){var c=(s=o.sources).find(function(d){return d.node&&d.node.nodeType===1})||s[0];c&&(a={largestShiftTarget:j(c.node),largestShiftTime:o.startTime,largestShiftValue:o.value,largestShiftSource:c,largestShiftEntry:o,loadState:k(o.startTime)})}}return Object.assign(r,{attribution:a})}(n);e(i)},t)},de=function(e,t){ce(function(n){var i=function(r){var s={timeToFirstByte:0,firstByteToFCP:r.value,loadState:k(oe())};if(r.entries.length){var a=b(),o=r.entries[r.entries.length-1];if(a){var c=a.activationStart||0,d=Math.max(0,a.responseStart-c);s={timeToFirstByte:d,firstByteToFCP:r.value-d,loadState:k(r.entries[0].startTime),navigationEntry:a,fcpEntry:o}}}return Object.assign(r,{attribution:s})}(n);e(i)},t)},le=0,W=1/0,F=0,Le=function(e){e.forEach(function(t){t.interactionId&&(W=Math.min(W,t.interactionId),F=Math.max(F,t.interactionId),le=F?(F-W)/7+1:0)})},fe=function(){return N?le:performance.interactionCount||0},be=function(){"interactionCount"in performance||N||(N=D("event",Le,{type:"event",buffered:!0,durationThreshold:0}))},p=[],I=new Map,me=0,Me=function(){var e=Math.min(p.length-1,Math.floor((fe()-me)/50));return p[e]},pe=[],De=function(e){if(pe.forEach(function(r){return r(e)}),e.interactionId||e.entryType==="first-input"){var t=p[p.length-1],n=I.get(e.interactionId);if(n||p.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};I.set(i.id,i),p.push(i)}p.sort(function(r,s){return s.latency-r.latency}),p.length>10&&p.splice(10).forEach(function(r){return I.delete(r.id)})}}},V=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=G(e),document.visibilityState==="hidden"?e():(n=t(e),B(e)),n},ne=[200,500],Pe=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},O(function(){var n;be();var i,r=g("INP"),s=function(o){V(function(){o.forEach(De);var c=Me();c&&c.latency!==r.value&&(r.value=c.latency,r.entries=c.entries,i())})},a=D("event",s,{durationThreshold:(n=t.durationThreshold)!==null&&n!==void 0?n:40});i=v(e,r,ne,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),B(function(){s(a.takeRecords()),i(!0)}),M(function(){me=fe(),p.length=0,I.clear(),r=g("INP"),i=v(e,r,ne,t.reportAllChanges)}))}))},C=[],y=[],J=new WeakMap,L=new Map,H=-1,we=function(e){C=C.concat(e),he()},he=function(){H<0&&(H=V(Ie))},Ie=function(){L.size>10&&L.forEach(function(o,c){I.has(c)||L.delete(c)});var e=p.map(function(o){return J.get(o.entries[0])}),t=y.length-50;y=y.filter(function(o,c){return c>=t||e.includes(o)});for(var n=new Set,i=0;i<y.length;i++){var r=y[i];ge(r.startTime,r.processingEnd).forEach(function(o){n.add(o)})}for(var s=0;s<50;s++){var a=C[C.length-1-s];if(!a||a.startTime<q)break;n.add(a)}C=Array.from(n),H=-1};pe.push(function(e){e.interactionId&&e.target&&!L.has(e.interactionId)&&L.set(e.interactionId,e.target)},function(e){var t,n=e.startTime+e.duration;q=Math.max(q,e.processingEnd);for(var i=y.length-1;i>=0;i--){var r=y[i];if(Math.abs(n-r.renderTime)<=8){(t=r).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},y.push(t)),(e.interactionId||e.entryType==="first-input")&&J.set(e,t),he()});var ge=function(e,t){for(var n,i=[],r=0;n=C[r];r++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;i.push(n)}return i},ve=function(e,t){X||(X=D("long-animation-frame",we)),Pe(function(n){var i=function(r){var s=r.entries[0],a=J.get(s),o=s.processingStart,c=a.processingEnd,d=a.entries.sort(function(u,T){return u.processingStart-T.processingStart}),l=ge(s.startTime,c),f=r.entries.find(function(u){return u.target}),h=f&&f.target||L.get(s.interactionId),m=[s.startTime+s.duration,c].concat(l.map(function(u){return u.startTime+u.duration})),S=Math.max.apply(Math,m),_={interactionTarget:j(h),interactionTargetElement:h,interactionType:s.name.startsWith("key")?"keyboard":"pointer",interactionTime:s.startTime,nextPaintTime:S,processedEventEntries:d,longAnimationFrameEntries:l,inputDelay:o-s.startTime,processingDuration:c-o,presentationDelay:Math.max(S-c,0),loadState:k(s.startTime)};return Object.assign(r,{attribution:_})}(n);e(i)},t)},re=[2500,4e3],z={},Te=function(e,t){(function(n,i){i=i||{},O(function(){var r,s=se(),a=g("LCP"),o=function(l){i.reportAllChanges||(l=l.slice(-1)),l.forEach(function(f){f.startTime<s.firstHiddenTime&&(a.value=Math.max(f.startTime-x(),0),a.entries=[f],r())})},c=D("largest-contentful-paint",o);if(c){r=v(n,a,re,i.reportAllChanges);var d=G(function(){z[a.id]||(o(c.takeRecords()),c.disconnect(),z[a.id]=!0,r(!0))});["keydown","click"].forEach(function(l){addEventListener(l,function(){return V(d)},!0)}),B(d),M(function(l){a=g("LCP"),r=v(n,a,re,i.reportAllChanges),U(function(){a.value=performance.now()-l.timeStamp,z[a.id]=!0,r(!0)})})}})})(function(n){var i=function(r){var s={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:r.value};if(r.entries.length){var a=b();if(a){var o=a.activationStart||0,c=r.entries[r.entries.length-1],d=c.url&&performance.getEntriesByType("resource").filter(function(S){return S.name===c.url})[0],l=Math.max(0,a.responseStart-o),f=Math.max(l,d?(d.requestStart||d.startTime)-o:0),h=Math.max(f,d?d.responseEnd-o:0),m=Math.max(h,c.startTime-o);s={element:j(c.element),timeToFirstByte:l,resourceLoadDelay:f-l,resourceLoadDuration:h-f,elementRenderDelay:m-h,navigationEntry:a,lcpEntry:c},c.url&&(s.url=c.url),d&&(s.lcpResourceEntry=d)}}return Object.assign(r,{attribution:s})}(n);e(i)},t)},ie=[800,1800],Ae=function e(t){document.prerendering?O(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},Fe=function(e,t){t=t||{};var n=g("TTFB"),i=v(e,n,ie,t.reportAllChanges);Ae(function(){var r=b();r&&(n.value=Math.max(r.responseStart-x(),0),n.entries=[r],i(!0),M(function(){n=g("TTFB",0),(i=v(e,n,ie,t.reportAllChanges))(!0)}))})},ye=function(e,t){Fe(function(n){var i=function(r){var s={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(r.entries.length){var a=r.entries[0],o=a.activationStart||0,c=Math.max((a.workerStart||a.fetchStart)-o,0),d=Math.max(a.domainLookupStart-o,0),l=Math.max(a.connectStart-o,0),f=Math.max(a.connectEnd-o,0);s={waitingDuration:c,cacheDuration:d-c,dnsDuration:l-d,connectionDuration:f-l,requestDuration:r.value-f,navigationEntry:a}}return Object.assign(r,{attribution:s})}(n);e(i)},t)};var K=Ne(),ke=new URL(K.src),Re=ke.origin+"/anonymous";function xe(){var e=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)};return""+e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function A(e){if(!location.protocol.startsWith("http"))return;let t={framerSiteId:K.framerSiteId,origin:document.location.origin,pathname:document.location.pathname,search:document.location.search,visitTimeOrigin:performance.timeOrigin};fetch(Re,{body:JSON.stringify(e.map(n=>({...n,data:{...n.data,context:{...t,...n.data.context}}}))),method:"POST",keepalive:!0,headers:{"Content-Type":"application/json"}})}function w(e,t){return{source:"framer.site",timestamp:Date.now(),data:{type:"track",uuid:xe(),event:e,...t}}}function Be(){let e=new Set,[t]=performance.getEntriesByType("navigation"),n=document.getElementById("main").dataset,i=n.framerPageOptimizedAt?new Date(n.framerPageOptimizedAt).getTime():null,r=n.framerSsrReleasedAt?new Date(n.framerSsrReleasedAt).getTime():null,{origin:s,pathname:a,search:o}=document.location;function c(l){e.add(l)}function d(){if(e.size>0){let l=[];e.forEach(({name:m,delta:S,id:_,attribution:u})=>{let T={metric:m,label:_,value:Math.round(S),pageOptimizedAt:i,ssrReleasedAt:r,context:{origin:s,pathname:a,search:o},attributionLcp:void 0,attributionCls:void 0,attributionInp:void 0,attributionFcp:void 0,attributionTtfb:void 0};m==="LCP"?T.attributionLcp=P({element:u.element,timeToFirstByte:u.timeToFirstByte,resourceLoadDelay:u.resourceLoadDelay,resourceLoadTime:u.resourceLoadDuration,elementRenderDelay:u.elementRenderDelay,url:u.url}):m==="CLS"?T.attributionCls=P({largestShiftTarget:u.largestShiftTarget,largestShiftTime:u.largestShiftTime,largestShiftValue:u.largestShiftValue,loadState:u.loadState}):m==="INP"?T.attributionInp=P({eventTarget:u.interactionTarget,eventType:u.interactionType,eventTime:u.interactionTime?Math.round(u.interactionTime):void 0,loadState:u.loadState,inputDelay:u.inputDelay,processingDuration:u.processingDuration,presentationDelay:u.presentationDelay,nextPaintTime:u.nextPaintTime}):m==="FCP"?T.attributionFcp=P({timeToFirstByte:u.timeToFirstByte,firstByteToFCP:u.firstByteToFCP,loadState:u.loadState}):m==="TTFB"&&(T.attributionTtfb=P({waitingTime:u.waitingDuration,dnsTime:u.dnsDuration,connectionTime:u.connectionDuration,requestTime:u.requestDuration,cacheDuration:u.cacheDuration})),l.push(w("published_site_performance_web_vitals",T))});let f=document.querySelector("[data-framer-css-ssr-minified]"),h=w("published_site_performance",{domNodes:document.getElementsByTagName("*").length,pageLoadDurationMs:t.domContentLoadedEventEnd!==void 0&&t.domContentLoadedEventStart!==void 0?Math.round(t.domContentLoadedEventEnd-t.domContentLoadedEventStart):null,timeToFirstByteMs:Math.round(t.responseStart),resourcesCount:performance.getEntriesByType("resource").length,framerCSSSize:f?.textContent?.length,headSize:document.head.innerHTML.length,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,hydrationDurationMs:null,pageOptimizedAt:i,ssrReleasedAt:r,devicePixelRatio:window.devicePixelRatio,navigationTiming:{activationStart:t.activationStart,connectEnd:t.connectEnd,connectStart:t.connectStart,criticalCHRestart:t.criticalCHRestart,decodedBodySize:t.decodedBodySize,deliveryType:t.deliveryType,domComplete:t.domComplete,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domContentLoadedEventStart:t.domContentLoadedEventStart,domInteractive:t.domInteractive,domainLookupEnd:t.domainLookupEnd,domainLookupStart:t.domainLookupStart,duration:t.duration,encodedBodySize:t.encodedBodySize,fetchStart:t.fetchStart,firstInterimResponseStart:t.firstInterimResponseStart,loadEventEnd:t.loadEventEnd,loadEventStart:t.loadEventStart,nextHopProtocol:t.nextHopProtocol,redirectCount:t.redirectCount,redirectEnd:t.redirectEnd,redirectStart:t.redirectStart,requestStart:t.requestStart,responseEnd:t.responseEnd,responseStart:t.responseStart,responseStatus:t.responseStatus,secureConnectionStart:t.secureConnectionStart,serverTiming:t.serverTiming?JSON.stringify(t.serverTiming):null,startTime:t.startTime,transferSize:t.transferSize,type:t.type,unloadEventEnd:t.unloadEventEnd,unloadEventStart:t.unloadEventStart,workerStart:t.workerStart},connection:P({downlink:navigator.connection?.downlink,downlinkMax:navigator.connection?.downlinkMax,rtt:navigator.connection?.rtt,saveData:navigator.connection?.saveData,type:navigator.connection?.type}),context:{origin:s,pathname:a,search:o}});l.push(h),e.clear(),A(l)}}Te(c),de(c),ue(({delta:l,...f})=>{c({...f,delta:l*1e3})}),ve(c),ye(c),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&d()}),addEventListener("pagehide",d)}function Oe(){addEventListener("popstate",Z);let e=history.pushState;history.pushState=function(){e.apply(history,arguments),(async()=>(await Se(),Z()))()}}async function Se(e={priority:"background"}){if("scheduler"in window){if("yield"in scheduler)return scheduler.yield(e);if("postTask"in scheduler)return scheduler.postTask(()=>{},e)}return Promise.resolve()}function Z(e){let t=[w("published_site_pageview",{referrer:e?.initialReferrer||null,url:location.href,hostname:location.hostname||null,pathname:location.pathname||null,hash:location.hash||null,search:location.search||null,framerSiteId:K.framerSiteId})];A(t)}function _e(){window.__send_framer_event=(e,t)=>{let n=w(e,t);A([n])}}var Q="__framer_events";function We(){let e=window[Q];if(e&&e.length>0){let t=e.map(n=>w.apply(null,n));A(t),e.length=0}else window[Q]=[];window[Q].push=function(){let t=arguments.length,n=new Array(t);for(var i=0;i<t;++i)n[i]=w.apply(null,arguments[i]);A(n)}}function ze(e){for(let t in e)if(e[t]!==void 0)return!0;return!1}function P(e){return ze(e)?e:void 0}function Ne(){return document.currentScript?{src:document.currentScript.src,framerSiteId:document.currentScript.getAttribute("data-fid")}:{src:"https://events.framer.com/",framerSiteId:null}}var qe=async()=>{await Se();let e=typeof document.referrer=="string";Be(),Oe(),_e(),We(),Z({initialReferrer:e&&document.referrer||null})};qe();})();
