(()=>{var h,I,re,M,O,L=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},P=function(t){if(document.readyState==="loading")return"loading";var e=L();if(e){if(t(e||100)-1)return i||r;if(i=i?r+">"+i:r,n.id)break;t=n.parentNode}}catch{}return i},ie=-1,ae=function(){return ie},y=function(t){addEventListener("pageshow",function(e){e.persisted&&(ie=e.timeStamp,t(e))},!0)},R=function(){var t=L();return t&&t.activationStart||0},m=function(t,e){var i=L(),n="navigate";return ae()>=0?n="back-forward-cache":i&&(document.prerendering||R()>0?n="prerender":document.wasDiscarded?n="restore":i.type&&(n=i.type.replace(/_/g,"-"))),{name:t,value:e===void 0?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},C=function(t,e,i){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(r){Promise.resolve().then(function(){e(r.getEntries())})});return n.observe(Object.assign({type:t,buffered:!0},i||{})),n}}catch{}},v=function(t,e,i,n){var r,o;return function(a){e.value>=0&&(a||n)&&((o=e.value-(r||0))||r===void 0)&&(r=e.value,e.delta=o,e.rating=function(c,s){return c>s[1]?"poor":c>s[0]?"needs-improvement":"good"}(e.value,i),t(e))}},N=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},k=function(t){var e=function(i){i.type!=="pagehide"&&document.visibilityState!=="hidden"||t(i)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},H=function(t){var e=!1;return function(i){e||(t(i),e=!0)}},E=-1,J=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},x=function(t){document.visibilityState==="hidden"&&E>-1&&(E=t.type==="visibilitychange"?t.timeStamp:0,ye())},Q=function(){addEventListener("visibilitychange",x,!0),addEventListener("prerenderingchange",x,!0)},ye=function(){removeEventListener("visibilitychange",x,!0),removeEventListener("prerenderingchange",x,!0)},U=function(){return E<0&&(E=J(),Q(),y(function(){setTimeout(function(){E=J(),Q()},0)})),{get firstHiddenTime(){return E}}},B=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},Z=[1800,3e3],oe=function(t,e){e=e||{},B(function(){var i,n=U(),r=m("FCP"),o=C("paint",function(a){a.forEach(function(c){c.name==="first-contentful-paint"&&(o.disconnect(),c.startTimeo.value&&(o.value=a,o.entries=c,r())},l=C("layout-shift",s);l&&(r=v(i,o,W,n.reportAllChanges),k(function(){s(l.takeRecords()),r(!0)}),y(function(){a=0,o=m("CLS",0),r=v(i,o,W,n.reportAllChanges),N(function(){return r()})}),setTimeout(r,0))}))})(function(i){(function(n){if(n.entries.length){var r=n.entries.reduce(function(c,s){return c&&c.value>s.value?c:s});if(r&&r.sources&&r.sources.length){var o=(a=r.sources).find(function(c){return c.node&&c.node.nodeType===1})||a[0];if(o)return void(n.attribution={largestShiftTarget:A(o.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:o,largestShiftEntry:r,loadState:P(r.startTime)})}}var a;n.attribution={}})(i),t(i)},e)},se=function(t,e){oe(function(i){(function(n){if(n.entries.length){var r=L(),o=n.entries[n.entries.length-1];if(r){var a=r.activationStart||0,c=Math.max(0,r.responseStart-a);return void(n.attribution={timeToFirstByte:c,firstByteToFCP:n.value-c,loadState:P(n.entries[0].startTime),navigationEntry:r,fcpEntry:o})}}n.attribution={timeToFirstByte:0,firstByteToFCP:n.value,loadState:P(ae())}})(i),t(i)},e)},F={passive:!0,capture:!0},Se=new Date,K=function(t,e){h||(h=e,I=t,re=new Date,ue(removeEventListener),de())},de=function(){if(I>=0&&I1e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(i,n){var r=function(){K(i,n),a()},o=function(){a()},a=function(){removeEventListener("pointerup",r,F),removeEventListener("pointercancel",o,F)};addEventListener("pointerup",r,F),addEventListener("pointercancel",o,F)}(e,t):K(e,t)}},ue=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,Ee,F)})},X=[100,300],Le=function(t,e){e=e||{},B(function(){var i,n=U(),r=m("FID"),o=function(s){s.startTimee.latency){if(i)i.entries.push(t),i.latency=Math.max(i.latency,t.duration);else{var n={id:t.interactionId,latency:t.duration,entries:[t]};q[n.id]=n,p.push(n)}p.sort(function(r,o){return o.latency-r.latency}),p.splice(10).forEach(function(r){delete q[r.id]})}},Fe=function(t,e){e=e||{},B(function(){we();var i,n=m("INP"),r=function(a){a.forEach(function(l){l.interactionId&&ee(l),l.entryType==="first-input"&&!p.some(function(f){return f.entries.some(function(u){return l.duration===u.duration&&l.startTime===u.startTime})})&&ee(l)});var c,s=(c=Math.min(p.length-1,Math.floor($()/50)),p[c]);s&&s.latency!==n.value&&(n.value=s.latency,n.entries=s.entries,i())},o=C("event",r,{durationThreshold:e.durationThreshold||40});i=v(t,n,Y,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),k(function(){r(o.takeRecords()),n.value<0&&$()>0&&(n.value=0,n.entries=[]),i(!0)}),y(function(){p=[],ve=me(),n=m("INP"),i=v(t,n,Y,e.reportAllChanges)}))})},pe=function(t,e){Fe(function(i){(function(n){if(n.entries.length){var r=n.entries.sort(function(o,a){return a.duration-o.duration||a.processingEnd-a.processingStart-(o.processingEnd-o.processingStart)})[0];n.attribution={eventTarget:A(r.target),eventType:r.name,eventTime:r.startTime,eventEntry:r,loadState:P(r.startTime)}}else n.attribution={}})(i),t(i)},e)},te=[2500,4e3],z={},he=function(t,e){(function(i,n){n=n||{},B(function(){var r,o=U(),a=m("LCP"),c=function(f){var u=f[f.length-1];u&&u.startTimeperformance.now())return;i.value=Math.max(o-R(),0),i.entries=[r],n(!0),y(function(){i=m("TTFB",0),(n=v(t,i,ne,e.reportAllChanges))(!0)})}})},ge=function(t,e){Pe(function(i){(function(n){if(n.entries.length){var r=n.entries[0],o=r.activationStart||0,a=Math.max(r.domainLookupStart-o,0),c=Math.max(r.connectStart-o,0),s=Math.max(r.requestStart-o,0);n.attribution={waitingTime:a,dnsTime:c-a,connectionTime:s-c,requestTime:n.value-s,navigationEntry:r}}else n.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}})(i),t(i)},e)};var V=be(),Be=new URL(V.src),De=Be.origin+"/anonymous";function Me(){var t=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)};return""+t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function j(t){if(!location.protocol.startsWith("http"))return;let e={framerSiteId:V.framerSiteId,origin:document.location.origin,pathname:document.location.pathname,search:document.location.search};fetch(De,{body:JSON.stringify(t.map(i=>({...i,data:{...i.data,context:{...e,...i.data.context}}}))),method:"POST",keepalive:!0,headers:{"Content-Type":"application/json"}})}function b(t,e){return{source:"framer.site",timestamp:Date.now(),data:{type:"track",uuid:Me(),event:t,...e}}}function xe(){let t=new Set,[e]=performance.getEntriesByType("navigation"),i=document.querySelector("div#main").dataset.framerPageOptimizedAt?new Date(document.querySelector("div#main").dataset.framerPageOptimizedAt).getTime():null,n=document.querySelector("div#main").dataset.framerSsrReleasedAt?new Date(document.querySelector("div#main").dataset.framerSsrReleasedAt).getTime():null,{origin:r,pathname:o,search:a}=document.location;function c(l){t.add(l)}function s(){if(t.size>0){let l=[...t].map(({name:u,delta:g,id:w,attribution:d})=>{let T={metric:u,label:w,value:Math.round(g),pageOptimizedAt:i,ssrReleasedAt:n,context:{origin:r,pathname:o,search:a}};return u==="LCP"&&(T.attributionLcp=S({element:d.element,timeToFirstByte:d.timeToFirstByte,resourceLoadDelay:d.resourceLoadDelay,resourceLoadTime:d.resourceLoadTime,elementRenderDelay:d.elementRenderDelay,url:d.url})),u==="CLS"&&(T.attributionCls=S({largestShiftTarget:d.largestShiftTarget,largestShiftTime:d.largestShiftTime,largestShiftValue:d.largestShiftValue,loadState:d.loadState})),u==="INP"&&(T.attributionInp=S({eventTarget:d.eventTarget,eventType:d.eventType,eventTime:d.eventTime?Math.round(d.eventTime):void 0,loadState:d.loadState})),u==="FID"&&(T.attributionFid=S({eventTarget:d.eventTarget,eventType:d.eventType,eventTime:d.eventTime,loadState:d.loadState})),u==="FCP"&&(T.attributionFcp=S({timeToFirstByte:d.timeToFirstByte,firstByteToFCP:d.firstByteToFCP,loadState:d.loadState})),u==="TTFB"&&(T.attributionTtfb=S({waitingTime:d.waitingTime,dnsTime:d.dnsTime,connectionTime:d.connectionTime,requestTime:d.requestTime})),b("published_site_performance_web_vitals",T)}),f=b("published_site_performance",{domNodes:document.getElementsByTagName("*").length,pageLoadDurationMs:e.domContentLoadedEventEnd!==void 0&&e.domContentLoadedEventStart!==void 0?Math.round(e.domContentLoadedEventEnd-e.domContentLoadedEventStart):null,timeToFirstByteMs:Math.round(e.responseStart),resourcesCount:performance.getEntriesByType("resource").length,framerCSSSize:document.querySelector("[data-framer-css-ssr-minified]")?document.querySelector("[data-framer-css-ssr-minified]").innerHTML.length:null,headSize:document.querySelector("head").innerHTML.length,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,hydrationDurationMs:null,pageOptimizedAt:i,ssrReleasedAt:n,devicePixelRatio:window.devicePixelRatio,navigationTiming:{activationStart:e.activationStart,connectEnd:e.connectEnd,connectStart:e.connectStart,criticalCHRestart:e.criticalCHRestart,decodedBodySize:e.decodedBodySize,deliveryType:e.deliveryType,domComplete:e.domComplete,domContentLoadedEventEnd:e.domContentLoadedEventEnd,domContentLoadedEventStart:e.domContentLoadedEventStart,domInteractive:e.domInteractive,domainLookupEnd:e.domainLookupEnd,domainLookupStart:e.domainLookupStart,duration:e.duration,encodedBodySize:e.encodedBodySize,fetchStart:e.fetchStart,firstInterimResponseStart:e.firstInterimResponseStart,loadEventEnd:e.loadEventEnd,loadEventStart:e.loadEventStart,nextHopProtocol:e.nextHopProtocol,redirectCount:e.redirectCount,redirectEnd:e.redirectEnd,redirectStart:e.redirectStart,requestStart:e.requestStart,responseEnd:e.responseEnd,responseStart:e.responseStart,responseStatus:e.responseStatus,secureConnectionStart:e.secureConnectionStart,serverTiming:e.serverTiming?JSON.stringify(e.serverTiming):null,startTime:e.startTime,transferSize:e.transferSize,type:e.type,unloadEventEnd:e.unloadEventEnd,unloadEventStart:e.unloadEventStart,workerStart:e.workerStart},connection:S({downlink:navigator.connection?.downlink,downlinkMax:navigator.connection?.downlinkMax,effectiveType:navigator.connection?.effectiveType,rtt:navigator.connection?.rtt,saveData:navigator.connection?.saveData,type:navigator.connection?.type}),context:{origin:r,pathname:o,search:a}});t.clear(),j([...l,f])}}le(c),he(c),se(c),ce(({delta:l,...f})=>{c({...f,delta:l*1e3})}),pe(c),ge(c),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&s()}),addEventListener("pagehide",s)}function Ae(){window.addEventListener("popstate",G),typeof Proxy<"u"&&(window.history.pushState=new Proxy(window.history.pushState,{apply:(t,e,i)=>{t.apply(e,i),G()}}))}function G(t){let e=[b("published_site_pageview",{referrer:t&&t.initialReferrer||null,url:location.href,hostname:location.hostname||null,pathname:location.pathname||null,hash:location.hash||null,search:location.search||null,framerSiteId:V.framerSiteId})];j(e)}function Re(){window.__send_framer_event=(t,e)=>{let i=b(t,e);j([i])}}function ke(t){return Object.values(t).some(e=>e!==void 0)}function S(t){return ke(t)?t:void 0}function be(){return document.currentScript?{src:document.currentScript.src,framerSiteId:document.currentScript.getAttribute("data-fid")}:{src:"https://events.framer.com/",framerSiteId:null}}(function(){let t=typeof document.referrer=="string";xe(),Ae(),Re(),G({initialReferrer:t&&document.referrer||null})})();})();