var v,y,_,E,x=-1,m=function(n){addEventListener("pageshow",function(e){e.persisted&&(x=e.timeStamp,n(e))},!0)},A=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},S=function(){var n=A();return n&&n.activationStart||0},d=function(n,e){var i=A(),r="navigate";return x>=0?r="back-forward-cache":i&&(r=document.prerendering||S()>0?"prerender":document.wasDiscarded?"restore":i.type.replace(/_/g,"-")),{name:n,value:e===void 0?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},b=function(n,e,i){try{if(PerformanceObserver.supportedEntryTypes.includes(n)){var r=new PerformanceObserver(function(a){Promise.resolve().then(function(){e(a.getEntries())})});return r.observe(Object.assign({type:n,buffered:!0},i||{})),r}}catch{}},l=function(n,e,i,r){var a,t;return function(o){e.value>=0&&(o||r)&&((t=e.value-(a||0))||a===void 0)&&(a=e.value,e.delta=t,e.rating=function(c,u){return c>u[1]?"poor":c>u[0]?"needs-improvement":"good"}(e.value,i),n(e))}},P=function(n){requestAnimationFrame(function(){return requestAnimationFrame(function(){return n()})})},F=function(n){var e=function(i){i.type!=="pagehide"&&document.visibilityState!=="hidden"||n(i)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},I=function(n){var e=!1;return function(i){e||(n(i),e=!0)}},p=-1,B=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},w=function(n){document.visibilityState==="hidden"&&p>-1&&(p=n.type==="visibilitychange"?n.timeStamp:0,J())},D=function(){addEventListener("visibilitychange",w,!0),addEventListener("prerenderingchange",w,!0)},J=function(){removeEventListener("visibilitychange",w,!0),removeEventListener("prerenderingchange",w,!0)},k=function(){return p<0&&(p=B(),D(),m(function(){setTimeout(function(){p=B(),D()},0)})),{get firstHiddenTime(){return p}}},L=function(n){document.prerendering?addEventListener("prerenderingchange",function(){return n()},!0):n()},H=function(n,e){e=e||{},L(function(){var i,r=[1800,3e3],a=k(),t=d("FCP"),o=b("paint",function(c){c.forEach(function(u){u.name==="first-contentful-paint"&&(o.disconnect(),u.startTime<a.firstHiddenTime&&(t.value=Math.max(u.startTime-S(),0),t.entries.push(u),i(!0)))})});o&&(i=l(n,t,r,e.reportAllChanges),m(function(c){t=d("FCP"),i=l(n,t,r,e.reportAllChanges),P(function(){t.value=performance.now()-c.timeStamp,i(!0)})}))})},N=function(n,e){e=e||{},H(I(function(){var i,r=[.1,.25],a=d("CLS",0),t=0,o=[],c=function(s){s.forEach(function(f){if(!f.hadRecentInput){var T=o[0],q=o[o.length-1];t&&f.startTime-q.startTime<1e3&&f.startTime-T.startTime<5e3?(t+=f.value,o.push(f)):(t=f.value,o=[f])}}),t>a.value&&(a.value=t,a.entries=o,i())},u=b("layout-shift",c);u&&(i=l(n,a,r,e.reportAllChanges),F(function(){c(u.takeRecords()),i(!0)}),m(function(){t=0,a=d("CLS",0),i=l(n,a,r,e.reportAllChanges),P(function(){return i()})}),setTimeout(i,0))}))},h={passive:!0,capture:!0},V=new Date,M=function(n,e){v||(v=e,y=n,_=new Date,j(removeEventListener),U())},U=function(){if(y>=0&&y<_-V){var n={entryType:"first-input",name:v.type,target:v.target,cancelable:v.cancelable,startTime:v.timeStamp,processingStart:v.timeStamp+y};E.forEach(function(e){e(n)}),E=[]}},G=function(n){if(n.cancelable){var e=(n.timeStamp>1e12?new Date:performance.now())-n.timeStamp;n.type=="pointerdown"?function(i,r){var a=function(){M(i,r),o()},t=function(){o()},o=function(){removeEventListener("pointerup",a,h),removeEventListener("pointercancel",t,h)};addEventListener("pointerup",a,h),addEventListener("pointercancel",t,h)}(e,n):M(e,n)}},j=function(n){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return n(e,G,h)})},K=function(n,e){e=e||{},L(function(){var i,r=[100,300],a=k(),t=d("FID"),o=function(s){s.startTime<a.firstHiddenTime&&(t.value=s.processingStart-s.startTime,t.entries.push(s),i(!0))},c=function(s){s.forEach(o)},u=b("first-input",c);i=l(n,t,r,e.reportAllChanges),u&&F(I(function(){c(u.takeRecords()),u.disconnect()})),u&&m(function(){var s;t=d("FID"),i=l(n,t,r,e.reportAllChanges),E=[],y=-1,v=null,j(addEventListener),s=o,E.push(s),U()})})},C={},Q=function(n,e){e=e||{},L(function(){var i,r=[2500,4e3],a=k(),t=d("LCP"),o=function(s){var f=s[s.length-1];if(f){var T=Math.max(f.startTime-S(),0);T<a.firstHiddenTime&&(t.value=T,t.entries=[f],i())}},c=b("largest-contentful-paint",o);if(c){i=l(n,t,r,e.reportAllChanges);var u=I(function(){C[t.id]||(o(c.takeRecords()),c.disconnect(),C[t.id]=!0,i(!0))});["keydown","click"].forEach(function(s){addEventListener(s,u,!0)}),F(u),m(function(s){t=d("LCP"),i=l(n,t,r,e.reportAllChanges),P(function(){t.value=performance.now()-s.timeStamp,C[t.id]=!0,i(!0)})})}})},Y=function n(e){document.prerendering?L(function(){return n(e)}):document.readyState!=="complete"?addEventListener("load",function(){return n(e)},!0):setTimeout(e,0)},$=function(n,e){e=e||{};var i=[800,1800],r=d("TTFB"),a=l(n,r,i,e.reportAllChanges);Y(function(){var t=A();if(t){var o=t.responseStart;if(o<=0||o>performance.now())return;r.value=Math.max(o-S(),0),r.entries=[t],a(!0),m(function(){r=d("TTFB",0),(a=l(n,r,i,e.reportAllChanges))(!0)})}})};const O="https://vitals.vercel-analytics.com/v1/vitals";function z(){return"connection"in navigator&&navigator.connection&&"effectiveType"in navigator.connection?navigator.connection.effectiveType:""}function g(n,e){const i=Object.entries(e.params).reduce((t,[o,c])=>t.replace(c,`[${o}]`),e.path),r={dsn:e.analyticsId,id:n.id,page:i,href:location.href,event_name:n.name,value:n.value.toString(),speed:z()};e.debug&&console.log("[Analytics]",n.name,JSON.stringify(r,null,2));const a=new Blob([new URLSearchParams(r).toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon?navigator.sendBeacon(O,a):fetch(O,{body:a,method:"POST",credentials:"omit",keepalive:!0})}function W(n){try{K(e=>g(e,n)),$(e=>g(e,n)),Q(e=>g(e,n)),N(e=>g(e,n)),H(e=>g(e,n))}catch(e){console.error("[Analytics]",e)}}let R={}.PUBLIC_VERCEL_ANALYTICS_ID;R&&W({path:location.pathname,params:location.search,analyticsId:R});
