!function(){"use strict";function e(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const t="navaidebug",n=()=>document.cookie.includes(t),r=(e,r)=>{var o;if(n()){let i=(()=>{if(n()){let e=document.cookie.split("; ").find((e=>e.startsWith(t+"="))).split("=")[1];if(""!=e)try{return JSON.parse(e)}catch(e){console.error(e)}}return{}})();return null!==(o=i[e])&&void 0!==o?o:r}return r},o="pskytRDLHNTQEGihqluRbXtoggXATbsj",i=Number("0"),a=Number("1"),s=window.location.href,l=performance.getEntriesByType("navigation")[0],c=Boolean(Number("0"))&&!s.includes("testnitro="),u="NitroPack",d=`${u}:targetUrl`,p=`${u}:visitorJourney`,f=`${u}:visitorId`,g=`${u}:pv`,h=`${u}:NPTelemetryMeta:lastpv`,m="to.getnitropack.com",v="2",w="3",y={UX:`https://${m}/ux?v=${w}`,UB:`https://${m}/ub?v=${v}`},S=r("predictStrategies",["navigation-ai-f","navigation-ai-h"]),E=n()&&!r("logging",!1),b=!!(i&&(()=>{const e=document.cookie.split(";").find((e=>e.trim().startsWith("nitroImpactGroup=")));if(e)return Number(e.split("=")[1]);const t=Math.floor(100*Math.random())+1,n=new Date(Date.now()+864e5).toUTCString();return document.cookie=`nitroImpactGroup=${t}; expires=${n}; domain=${window.location.hostname}; path=/`,t})()<=a),T=(L=S)[Math.floor(Math.random()*L.length)];var L;let P=()=>{var e,t,n;return Math.round((null===(n=null===(t=null===(e=self.performance)||void 0===e?void 0:e.getEntriesByType)||void 0===t?void 0:t.call(e,"navigation")[0])||void 0===n?void 0:n.activationStart)||0)},O=document.prerendering||P()>0,k=!O&&l.responseStart-l.requestStart<=5,I=!1;window.addEventListener("pageshow",(e=>{e.persisted&&(O=!1,k=!1,I=!0)}));const C=JSON.parse(atob("WyIuKj9cXD9hZGQtdG8tY2FydD0uKj8iLCIuKj9cdTAwMjZhZGQtdG8tY2FydD0uKj8iLCIuKj9cXD9yZW1vdmVfaXRlbT0uKj8iLCIuKj9cdTAwMjZyZW1vdmVfaXRlbT0uKj8iLCIuKj9cXD9hZGQuKj8iLCIuKj9cdTAwMjZhZGQuKj8iLCIuKj9cXD9yZW1vdmUuKj8iLCIuKj9cdTAwMjZyZW1vdmUuKj8iLCIuKj89cmVtb3ZlLio/IiwiLio/XFw/ZGVsZXRlLio/IiwiLio/XHUwMDI2ZGVsZXRlLio/IiwiLio/ZG93bmxvYWQuKj8iLCIuKj9sb2dvdXQuKj8iLCIuKj9sb2dpbi4qPyIsIi4qP3NpZ25vdXQuKj8iLCIuKj9zaWduaW4uKj8iLCIuKj8vd3AtYWRtaW4uKj8iLCIuKj8vd3AtbG9naW4uKj8iLCIuKj93cG5vbmNlPS4qPyIsIi4qP25vbmNlPS4qPyIsIi4qPy9jaGVja291dC4qPyIsIi4qPy9jYXJ0Lio/IiwiLio/L215LWFjY291bnQuKj8iLCIuKj8vYWNjb3VudC4qPyIsIi4qPy9yZXF1ZXN0LXF1b3RlLyIsIi4qP1xcLmV4ZSIsIi4qP1xcLnppcCIsIi4qP1xcLnJhciIsIi4qP1xcLmRlYiIsIi4qP1xcLnJwbSIsIi4qP1xcLnBrZyIsIi4qP1xcLmRtZyIsIi4qP1xcLnBkZiIsIi4qP1xcLm1zaSIsIi4qP1xcLm1wMyIsIi4qP1xcLmRvYyIsIi4qP1xcLmRvY3giLCIuKj9cXC5wcHQiLCIuKj9cXC54bHMiLCIuKj9cXC54bHN4IiwiLio/XFwub2R0IiwiLio/XFwudHh0IiwiLio/XFwuanBnIiwiLio/XFwuanBlZyIsIi4qP1xcLnBuZyIsIi4qP1xcLndlYnAiLCIuKj9cXC5naWYiLCIuKj9cXC5hdmlmIiwiLio/XFwubXA0IiwiLio/XFwubW92IiwiLio/XFwud212IiwiLio/XFwud2VibSIsIi4qP1xcLmF2aSIsIi4qP1xcLmZsdiIsIi4qP1xcLm1rdiIsIi4qP1xcLm10cyIsIi4qP2xlYXJuZGFzaF9kZWxldGUuKj8iXQ=="));let N=!1;window.addEventListener("load",(()=>{N=document.body.classList.contains("admin-bar")||document.body.classList.contains("wp-admin")}),!0);const D=()=>N;var _,R,M=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},A=function(e){if("loading"===document.readyState)return"loading";var t=M();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},x=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},U=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,o=r.id?"#"+r.id:x(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+o.length>(t||100)-1)return n||o;if(n=n?o+">"+n:o,r.id)break;e=r.parentNode}}catch(e){}return n},j=-1,B=function(){return j},F=function(e){addEventListener("pageshow",(function(t){t.persisted&&(j=t.timeStamp,e(t))}),!0)},J=function(){var e=M();return e&&e.activationStart||0},$=function(e,t){var n=M(),r="navigate";return B()>=0?r="back-forward-cache":n&&(document.prerendering||J()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},q=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},H=function(e,t,n,r){var o,i;return function(a){t.value>=0&&(a||r)&&((i=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=i,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},V=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},W=function(e){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e()}))},K=function(e){var t=!1;return function(){t||(e(),t=!0)}},z=-1,X=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},G=function(e){"hidden"===document.visibilityState&&z>-1&&(z="visibilitychange"===e.type?e.timeStamp:0,Q())},Y=function(){addEventListener("visibilitychange",G,!0),addEventListener("prerenderingchange",G,!0)},Q=function(){removeEventListener("visibilitychange",G,!0),removeEventListener("prerenderingchange",G,!0)},Z=function(){return z<0&&(z=X(),Y(),F((function(){setTimeout((function(){z=X(),Y()}),0)}))),{get firstHiddenTime(){return z}}},ee=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},te=[1800,3e3],ne=function(e,t){t=t||{},ee((function(){var n,r=Z(),o=$("FCP"),i=q("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<r.firstHiddenTime&&(o.value=Math.max(e.startTime-J(),0),o.entries.push(e),n(!0)))}))}));i&&(n=H(e,o,te,t.reportAllChanges),F((function(r){o=$("FCP"),n=H(e,o,te,t.reportAllChanges),V((function(){o.value=performance.now()-r.timeStamp,n(!0)}))})))}))},re=[.1,.25],oe=0,ie=1/0,ae=0,se=function(e){e.forEach((function(e){e.interactionId&&(ie=Math.min(ie,e.interactionId),ae=Math.max(ae,e.interactionId),oe=ae?(ae-ie)/7+1:0)}))},le=function(){"interactionCount"in performance||_||(_=q("event",se,{type:"event",buffered:!0,durationThreshold:0}))},ce=[],ue=new Map,de=0,pe=function(){return(_?oe:performance.interactionCount||0)-de},fe=[],ge=function(e){if(fe.forEach((function(t){return t(e)})),e.interactionId||"first-input"===e.entryType){var t=ce[ce.length-1],n=ue.get(e.interactionId);if(n||ce.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 r={id:e.interactionId,latency:e.duration,entries:[e]};ue.set(r.id,r),ce.push(r)}ce.sort((function(e,t){return t.latency-e.latency})),ce.length>10&&ce.splice(10).forEach((function(e){return ue.delete(e.id)}))}}},he=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=K(e),"hidden"===document.visibilityState?e():(n=t(e),W(e)),n},me=[200,500],ve=[],we=new Map,ye=[],Se=new WeakMap,Ee=-1,be=function(e){e.forEach((function(e){return ve.push(e)}))},Te=function(){ye=ye.slice(-50);var e=new Set(ye.concat(ce.map((function(e){return Se.get(e.entries[0])}))));we.forEach((function(t,n){e.has(n)||we.delete(n)}));var t=new Set;we.forEach((function(e){Ie(e.startTime,e.processingEnd).forEach((function(e){t.add(e)}))})),ve=Array.from(t),Ee=-1};fe.push((function(e){for(var t,n=e.startTime+e.duration,r=ye.length-1;r>=0;r--)if(t=ye[r],Math.abs(n-t)<=8){var o=we.get(t);o.startTime=Math.min(e.startTime,o.startTime),o.processingStart=Math.min(e.processingStart,o.processingStart),o.processingEnd=Math.max(e.processingEnd,o.processingEnd),o.entries.push(e),n=t;break}n!==t&&(ye.push(n),we.set(n,{startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,entries:[e]})),(e.interactionId||"first-input"===e.entryType)&&Se.set(e,n),Ee<0&&(Ee=he(Te))}));var Le,Pe,Oe,ke,Ie=function(e,t){for(var n,r=[],o=0;n=ve[o];o++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;r.push(n)}return r},Ce=[2500,4e3],Ne={},De=[800,1800],_e=function e(t){document.prerendering?ee((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},Re=function(e,t){t=t||{};var n=$("TTFB"),r=H(e,n,De,t.reportAllChanges);_e((function(){var o=M();o&&(n.value=Math.max(o.responseStart-J(),0),n.entries=[o],r(!0),F((function(){n=$("TTFB",0),(r=H(e,n,De,t.reportAllChanges))(!0)})))}))},Me={passive:!0,capture:!0},Ae=new Date,xe=function(e,t){Le||(Le=t,Pe=e,Oe=new Date,Be(removeEventListener),Ue())},Ue=function(){if(Pe>=0&&Pe<Oe-Ae){var e={entryType:"first-input",name:Le.type,target:Le.target,cancelable:Le.cancelable,startTime:Le.timeStamp,processingStart:Le.timeStamp+Pe};ke.forEach((function(t){t(e)})),ke=[]}},je=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){xe(e,t),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,Me),removeEventListener("pointercancel",r,Me)};addEventListener("pointerup",n,Me),addEventListener("pointercancel",r,Me)}(t,e):xe(t,e)}},Be=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,je,Me)}))},Fe=[100,300];const Je=e=>(e=Math.round(e))<0||e>65535?0:e,$e=e=>(e=Math.round(e))<0||e>4294967295?0:e,qe="undefined"!=typeof NPRL,He=qe?"loadNitro":"load";let Ve=null,We=null,Ke=null;const ze=()=>{Ve=Date.now(),window.removeEventListener("NitroStylesLoaded",ze,!0)},Xe=()=>{We=Date.now(),window.removeEventListener(He,Xe,!0)};qe&&window.addEventListener("NitroStylesLoaded",ze,!0),window.addEventListener(He,Xe,!0),window.addEventListener("scroll",(()=>Ke=Date.now()),{capture:!0,passive:!0});const Ge=()=>lt+=1;document.addEventListener("click",Ge),document.addEventListener("pointerup",Ge);const Ye=e=>Ve&&Date.now()-Ve<e,Qe=e=>We&&Date.now()-We<e,Ze=e=>Ke&&Date.now()-Ke<e;let et=null,tt=null,nt=null,rt=null,ot={sessionEntry:null,unknown:null,afterStyles:null,afterPageLoad:null,afterScroll:null,total:null,raw:null,largestShiftTarget:null},it=null,at=null,st={},lt=0,ct=0;const ut=()=>{ot={sessionEntry:null,unknown:null,afterStyles:null,afterPageLoad:null,afterScroll:null,total:null,raw:null,largestShiftTarget:null}},dt=()=>{let e={};return e.ttfb_crux=null!=et?Math.round(et):null,e.lcp_crux=null!=nt?Math.round(nt):null,e.lcp_perf=null!=rt&&$e(rt)>0?$e(rt):null,e.cls_total=null!=ot.total?Math.round(1e3*ot.total):null,e.cls_raw=null!=ot.raw?ot.raw:null,e.cls_largestShiftTarget=null!=ot.largestShiftTarget?ot.largestShiftTarget:null,e.fid=null!=tt?Math.round(tt):null,e.fcp=null!=at?Math.round(at):null,e.inp=null!=it?Math.round(it):null,e.inpDetails=Object.keys(st).length?st:null,["afterStyles","afterPageLoad","afterScroll","unknown"].forEach((t=>{ot[t]&&(e[`cls_${t}Delta`]=Math.round(1e3*ot[t]))})),Object.keys(e).forEach((t=>{null===e[t]&&delete e[t]})),e};!function(e,t){!function(e,t){t=t||{},ne(K((function(){var n,r=$("CLS",0),o=0,i=[],a=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=i[0],n=i[i.length-1];o&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e])}})),o>r.value&&(r.value=o,r.entries=i,n())},s=q("layout-shift",a);s&&(n=H(e,r,re,t.reportAllChanges),W((function(){a(s.takeRecords()),n(!0)})),F((function(){o=0,r=$("CLS",0),n=H(e,r,re,t.reportAllChanges),V((function(){return n()}))})),setTimeout(n,0))})))}((function(t){var n=function(e){var t,n={};if(e.entries.length){var r=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(r&&r.sources&&r.sources.length){var o=(t=r.sources).find((function(e){return e.node&&1===e.node.nodeType}))||t[0];o&&(n={largestShiftTarget:U(o.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:o,largestShiftEntry:r,loadState:A(r.startTime)})}}return Object.assign(e,{attribution:n})}(t);e(n)}),t)}((e=>{var t;e.entries[0]!==ot.sessionEntry&&(ut(),ot.sessionEntry=e.entries[0]),ot.total=e.value,ot.raw=e.value,ot.largestShiftTarget=null===(t=null==e?void 0:e.attribution)||void 0===t?void 0:t.largestShiftTarget;let n=250;1==Ze(n)+Qe(n)+Ye(n)?(Ze(n)&&(ot.afterScroll+=e.delta),Qe(n)&&(ot.afterPageLoad+=e.delta),Ye(n)&&(ot.afterStyles+=e.delta)):ot.unknown+=e.delta}),{reportAllChanges:!0}),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=Z(),o=$("LCP"),i=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach((function(e){e.startTime<r.firstHiddenTime&&(o.value=Math.max(e.startTime-J(),0),o.entries=[e],n())}))},a=q("largest-contentful-paint",i);if(a){n=H(e,o,Ce,t.reportAllChanges);var s=K((function(){Ne[o.id]||(i(a.takeRecords()),a.disconnect(),Ne[o.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return he(s)}),!0)})),W(s),F((function(r){o=$("LCP"),n=H(e,o,Ce,t.reportAllChanges),V((function(){o.value=performance.now()-r.timeStamp,Ne[o.id]=!0,n(!0)}))}))}}))}((function(t){var n=function(e){var t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){var n=M();if(n){var r=n.activationStart||0,o=e.entries[e.entries.length-1],i=o.url&&performance.getEntriesByType("resource").filter((function(e){return e.name===o.url}))[0],a=Math.max(0,n.responseStart-r),s=Math.max(a,i?(i.requestStart||i.startTime)-r:0),l=Math.max(s,i?i.responseEnd-r:0),c=Math.max(l,o.startTime-r);t={element:U(o.element),timeToFirstByte:a,resourceLoadDelay:s-a,resourceLoadDuration:l-s,elementRenderDelay:c-l,navigationEntry:n,lcpEntry:o},o.url&&(t.url=o.url),i&&(t.lcpResourceEntry=i)}}return Object.assign(e,{attribution:t})}(t);e(n)}),t)}((e=>{window.lcpCruxTimestamp=performance.now(),nt=e.value}),{reportAllChanges:!0}),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=Z(),o=$("FID"),i=function(e){e.startTime<r.firstHiddenTime&&(o.value=e.processingStart-e.startTime,o.entries.push(e),n(!0))},a=function(e){e.forEach(i)},s=q("first-input",a);n=H(e,o,Fe,t.reportAllChanges),s&&(W(K((function(){a(s.takeRecords()),s.disconnect()}))),F((function(){var r;o=$("FID"),n=H(e,o,Fe,t.reportAllChanges),ke=[],Pe=-1,Le=null,Be(addEventListener),r=i,ke.push(r),Ue()})))}))}((function(t){var n=function(e){var t=e.entries[0],n={eventTarget:U(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:A(t.startTime)};return Object.assign(e,{attribution:n})}(t);e(n)}),t)}((e=>{tt=e.value})),function(e,t){ne((function(t){var n=function(e){var t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:A(B())};if(e.entries.length){var n=M(),r=e.entries[e.entries.length-1];if(n){var o=n.activationStart||0,i=Math.max(0,n.responseStart-o);t={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:A(e.entries[0].startTime),navigationEntry:n,fcpEntry:r}}}return Object.assign(e,{attribution:t})}(t);e(n)}),t)}((e=>{at=e.value}),{reportAllChanges:!0}),function(e,t){R||(R=q("long-animation-frame",be)),function(e,t){t=t||{},ee((function(){var n;le();var r,o=$("INP"),i=function(e){e.forEach(ge);var t,n=(t=Math.min(ce.length-1,Math.floor(pe()/50)),ce[t]);n&&n.latency!==o.value&&(o.value=n.latency,o.entries=n.entries,r())},a=q("event",i,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=H(e,o,me,t.reportAllChanges),a&&("PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),W((function(){i(a.takeRecords()),r(!0)})),F((function(){de=0,ce.length=0,ue.clear(),o=$("INP"),r=H(e,o,me,t.reportAllChanges)})))}))}((function(t){he((function(){var n=function(e){var t=e.entries[0],n=Se.get(t),r=we.get(n),o=t.processingStart,i=r.processingEnd,a=r.entries.sort((function(e,t){return e.processingStart-t.processingStart})),s=Ie(t.startTime,i),l=e.entries.find((function(e){return e.target})),c=[t.startTime+t.duration,i].concat(s.map((function(e){return e.startTime+e.duration}))),u=Math.max.apply(Math,c),d={interactionTarget:U(l&&l.target),interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:u,processedEventEntries:a,longAnimationFrameEntries:s,inputDelay:o-t.startTime,processingDuration:i-o,presentationDelay:Math.max(u-i,0),loadState:A(t.startTime)};return Object.assign(e,{attribution:d})}(t);e(n)}))}),t)}((e=>{it=e.value,ct=lt,e.attribution&&(st={value:e.value,eventTarget:e.attribution.interactionTarget,eventType:e.attribution.interactionType,loadState:e.attribution.loadState,startTime:-1,processingStart:-1,processingEnd:-1,duration:-1,eventTime:e.attribution.interactionTime,nextPaintTime:e.attribution.nextPaintTime,inputDelay:e.attribution.inputDelay,processingDuration:e.attribution.processingDuration,presentationDelay:e.attribution.presentationDelay})}),{reportAllChanges:!0}),function(e,t){Re((function(t){var n=function(e){var t={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(e.entries.length){var n=e.entries[0],r=n.activationStart||0,o=Math.max((n.workerStart||n.fetchStart)-r,0),i=Math.max(n.domainLookupStart-r,0),a=Math.max(n.connectStart-r,0),s=Math.max(n.connectEnd-r,0);t={waitingDuration:o,cacheDuration:i-o,dnsDuration:a-i,connectionDuration:s-a,requestDuration:e.value-s,navigationEntry:n}}return Object.assign(e,{attribution:t})}(t);e(n)}),t)}((e=>{et=e.value}),{reportAllChanges:!0});new PerformanceObserver((e=>{window.lcpPerfTimestamp=performance.now();const t=e.getEntries(),n=t[t.length-1];rt=n.renderTime||n.loadTime})).observe({type:"largest-contentful-paint",buffered:!0});let pt=null;const ft=()=>{if(pt)return pt;let e=s;const t=sessionStorage.getItem(d);if(t){const{url:n,expiration:r}=JSON.parse(t);r<Date.now()?sessionStorage.removeItem(d):e=n}return pt=e,e},gt=new EventTarget,ht=(...e)=>gt.addEventListener(...e),mt=(e,t,n={})=>gt.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({},n),{detail:t})));let vt={deviceCores:0,deviceMemory:0,devicePerformance:0};const wt=`${u}:nitroDeviceSpeed`;if(localStorage.getItem(wt)&&(vt=JSON.parse(localStorage.getItem(wt))),window.Worker&&!localStorage.getItem(wt)){const e="self.onmessage=e=>{let r=()=>{let e=navigator.hardwareConcurrency||null,r=navigator.deviceMemory||null,n=performance.now();for(let o=0;o<1e5;o++);let l=performance.now(),c=l-n;return{deviceCores:e,deviceMemory:r,devicePerformance:c}},n=r();postMessage(n)};",t=new Worker(URL.createObjectURL(new Blob([e],{type:"application/javascript"})));t.onmessage=e=>{vt=e.data,localStorage.setItem(wt,JSON.stringify(e.data))},t.postMessage("start")}const yt=()=>{let e=localStorage.getItem(f);e||(e=Date.now()+(Math.random()+1).toString(36).substring(2),localStorage.setItem(f,e));return localStorage.getItem("nitroVisitor")&&localStorage.removeItem("nitroVisitor"),e};let St=null;const Et=()=>{if(St)return St;const e=localStorage.getItem(p);let t=JSON.parse(e);if(!t||Date.now()>t.expiration||t.isTestImpactJourney!==b){t={id:Date.now()+(Math.random()+1).toString(36).substring(2),isTestImpactJourney:b,expiration:Date.now()+864e5},localStorage.setItem(p,JSON.stringify(t))}return St=t.id,St};let bt="";const Tt=e=>{const t=localStorage.getItem(g),n=JSON.parse(t)||{};n[e]=n[e]||[];const r=Date.now()+(Math.random()+1).toString(36).substring(2);return n[e].push({id:r,expiration:Date.now()+3e4}),localStorage.setItem(g,JSON.stringify(n)),r},Lt=()=>{const e=ft();let t=(e=>{var t;const n=localStorage.getItem(g),r=null===(t=(JSON.parse(n)||{})[e])||void 0===t?void 0:t.pop();return r&&Date.now()<=r.expiration?r.id:""})(e);return t||(t=Tt(e)),(e=>{const t=localStorage.getItem(g),n=JSON.parse(t)||{};if(n&&n[e]){const t=n[e].pop();t&&(Date.now()>t.expiration&&(n[e]=[]),localStorage.setItem(g,JSON.stringify(n)))}})(e),t};ht("onBFCRestored",(()=>e(void 0,void 0,void 0,(function*(){const e=ft();Tt(e),bt=Lt()}))));const Pt=()=>(bt||(bt=Lt()),bt);let Ot=null;function kt(e,t,n){throw(n=new TypeError(e)).code=t,n}function It(e){kt("Invalid URL: "+e,"ERR_INVALID_URL")}function Ct(e,t,n,r){n='The "name" ',r="argument",e&&(n+='and "value" ',r+="s"),t<++e&&kt(n+r+" must be specified","ERR_MISSING_ARGS")}function Nt(e,t){var n=0,r={next:function(){return{value:e[n++],done:n>e.length}}};return t&&(r[Symbol.iterator]=function(){return r}),r}function Dt(e,t){var n,r,o,i,a,s=this,l=[];try{i=!!Symbol.iterator}catch(e){i=!1}if(e)if(e.keys&&e.getAll)e.forEach((function(e,t){u(t,e)}));else if(e.pop)for(r=0;r<e.length;r++)u.apply(0,e[r]);else if("object"==typeof e)for(n in e)c(n,e[n]);else if("string"==typeof e)for("?"==e[0]&&(e=e.substring(1)),o=decodeURIComponent(e).split("&");n=o.shift();)~(r=n.indexOf("="))||(r=n.length),u(n.substring(0,r),n.substring(++r));function c(e,t){for(Ct(1,arguments.length),t=String(t),o=!1,r=l.length;r--;)(a=l[r])[0]==e&&(o?l.splice(r,1):(a[1]=t,o=!0));o||l.push([e,t]),p()}function u(e,t){Ct(1,arguments.length),l.push([e,String(t)]),p()}function d(){for(a="",r=0;r<l.length;r++)a&&(a+="&"),a+=encodeURIComponent(l[r][0])+"="+encodeURIComponent(l[r][1]);return a.replace(/%20/g,"+")}function p(){t&&(t.search=l.length?"?"+d().replace(/=$/,""):"")}return s.append=u,s.delete=function(e){for(Ct(0,arguments.length),r=l.length;r--;)l[r][0]==e&&l.splice(r,1);p()},s.entries=function(){return Nt(l,i)},s.forEach=function(e){for("function"!=typeof e&&kt("Callback must be a function","ERR_INVALID_CALLBACK"),r=0;r<l.length;r++)e(l[r][1],l[r][0])},s.get=function(e){for(Ct(0,arguments.length),r=0;r<l.length;r++)if(l[r][0]==e)return l[r][1];return null},s.getAll=function(e){for(Ct(0,arguments.length),a=[],r=0;r<l.length;r++)l[r][0]==e&&a.push(l[r][1]);return a},s.has=function(e){for(Ct(0,arguments.length),r=0;r<l.length;r++)if(l[r][0]==e)return!0;return!1},s.keys=function(){for(a=[],r=0;r<l.length;r++)a.push(l[r][0]);return Nt(a,i)},s.set=c,s.sort=function(){for(o=[],a=[],r=0;r<l.length;o.push(l[r++][0]));for(o.sort();n=o.shift();)for(r=0;r<l.length;r++)if(l[r][0]==n){a.push(l.splice(r,1).shift());break}l=a,p()},s.toString=d,s.values=function(){for(a=[],r=0;r<l.length;r++)a.push(l[r][1]);return Nt(a,i)},i&&(s[Symbol.iterator]=s.entries),s}function _t(e,t){var n,r,o=document.createElement("a"),i=document.createElement("a"),a=document.createElement("input"),s=this,l=/(blob|ftp|wss?|https?):/;if(a.type="url",t=String(t||"").trim(),(a.value=t)&&!a.checkValidity())return It(t);if(e=String(e).trim(),a.value=e||0,a.checkValidity())i.href=e;else{if(!t)return It(e);i.href=t,e&&((r=e.match(/^\/+/))&&2==r[0].length?i.href=i.protocol+e:/[?#]/.test(e[0])?i.href+=e:"/"==e[0]||"/"==i.pathname?i.href=i.origin+"/"+e.replace(/^\/+/,""):(n=i.pathname.split("/"),t=e.replace(/^(\.\/)?/,"").split("../"),i.href=i.origin+n.slice(0,Math.max(1,n.length-t.length)).concat(t.pop()).join("/")))}function c(e,t,n,a){return a={enumerable:!0},t||(a.set=function(t){null!=t&&(i[e]=String(t),"href"!=e&&"search"!=e||(r=new Dt(i.search,i)))}),a.get=n||function(){return function(e){return o.href=i.href,o.protocol="http:","protocol"==e||"href"==e||l.test(i.protocol)?i[e]:"origin"==e?l.test(i.protocol)?i[e]:"null":o[e]}(e)},a}return r=new Dt(i.search,i),s.toString=s.toJSON=i.toString.bind(i),Object.defineProperties(s,{href:c("href"),protocol:c("protocol"),username:c("username"),password:c("password"),hostname:c("hostname"),host:c("host"),port:c("port"),search:c("search"),hash:c("hash"),pathname:c("pathname"),origin:c("origin",1),searchParams:c("searchParams",1,(function(){return r}))})}let Rt=[];const Mt=(e,t,n)=>{Rt.some((t=>t.resourceUrl===e))||Rt.push({resourceUrl:e,type:t,message:n})};function At(e){try{let t=new _t(e).pathname.split(".");return t.length>1?t.pop():null}catch(e){return console.error("Nitropack: Failed to parse url while getting resource file extension."),null}}let xt=0;const Ut=(e,t="")=>{if((()=>{const e=document.cookie.split(";").find((e=>e.trim().startsWith("NITRO_SCRIPT_DEBUG=")));return e?e.split("=")[1]:null})()){xt++;let n=Math.floor(10*Math.random());localStorage.setItem(`${u}:debug:`+(Pt()?`${Pt()}:`:"no_pageview_id")+`${xt}_${n}:`+t,JSON.stringify(e))}};class jt{constructor(e,t,n=void 0,r=void 0){this.payload={data:{},metadata:{}},this.namespace=e,this.endpoint=t,this.aggregator=n,this.preprocessor=r,this.isFlushScheduled=!1,this.requestCounter=0,this.pvId=void 0,this.localStorageNamespace=`${u}:${this.namespace.toUpperCase()}`}getLocalStorageKey(e=this.pvId){if(e)return`${this.localStorageNamespace}:${e}`}backupPayloadInLocalStorage(){const e=this.getLocalStorageKey();e&&(E?Ut({pvId:this.pvId,shouldStopLogging:E,namespace:this.namespace},"payload_backup_skipped"):localStorage.setItem(e,JSON.stringify(this.payload)))}clearLocalStorageBackups(e){if(!(e.length<1))for(const t of e)localStorage.removeItem(this.getLocalStorageKey(t))}set(e,t){if(this.aggregator){const n=this.payload.data[e]||void 0;t=this.aggregator(e,n,t)}this.payload.data[e]=t}setFromObject(e){this.aggregator?Object.keys(e).forEach((t=>{const n=this.payload.data[t]||void 0;let r=e[t];r=this.aggregator(t,n,r),this.payload.data[t]=r})):Object.assign(this.payload.data,e)}setMetadata(e,t){this.payload.metadata[e]=t}getLocalStorageEntries(){let e={};for(let t=0;t<localStorage.length;t++){if(localStorage.key(t).startsWith("NitroU")){localStorage.removeItem(localStorage.key(t));continue}if(!localStorage.key(t).startsWith(this.localStorageNamespace))continue;const n=localStorage.key(t),r=n.split(":");if(3===r.length&&"Aggregated"!==r[1])try{const t=r[2];let o=JSON.parse(localStorage.getItem(n));e[t]=o}catch(e){console.error(`Failed to parse ${n}: ${e}`)}}return e}flush(){return e(this,void 0,void 0,(function*(){if(!(null==this?void 0:this.pvId)||E)return void Ut({pvId:this.pvId,shouldStopLogging:E,namespace:this.namespace},"flush_skipped");this.aggregator&&(this.requestCounter++,this.setMetadata("requestCounter",this.requestCounter)),this.backupPayloadInLocalStorage();let e=this.getLocalStorageEntries();const t=Object.keys(e);if(this.preprocessor&&(e=this.preprocessor(e)),Object.keys(e).length>0){let t={key:o,props:e};t=JSON.stringify(t),navigator.sendBeacon&&navigator.sendBeacon(this.endpoint,t)||(yield fetch(this.endpoint,{body:t,method:"POST",keepalive:!0,headers:{"Content-Type":"application/json"}}))}this.clearLocalStorageBackups(t)}))}flushQuiet(){this.isFlushScheduled||(this.isFlushScheduled=!0,setTimeout((()=>e(this,void 0,void 0,(function*(){yield this.flush(this.namespace),this.isFlushScheduled=!1}))),1e3))}flushAndClear(){return e(this,void 0,void 0,(function*(){yield this.flush(),this.payload={data:{},metadata:{}}}))}}let Bt=new Promise((e=>{e(!1)})),Ft=null;const Jt=["click","touchstart","wheel"],$t=e=>{var t;if(!(e instanceof HTMLIFrameElement))return;const n=e.getBoundingClientRect();if(!(e=>{const t=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth,r=e.top<=t&&e.top+e.height>=0,o=e.left<=n&&e.left+e.width>=0;return r&&o})(n))return;const r={width:n.width,height:n.height,area:n.width*n.height,src:e.src||e.getAttribute("nitro-og-src")||e.getAttribute("nitro-lazy-src"),loadTimestamp:performance.now()};r.area>(null!==(t=null==Ft?void 0:Ft.area)&&void 0!==t?t:0)&&(Ft=Object.assign({},r))},qt=()=>{const e=document.querySelectorAll("iframe");return e.forEach((e=>$t(e))),e},Ht=new ResizeObserver((e=>{e.forEach((e=>{$t(e.target)}))}));document.querySelectorAll("iframe").forEach((e=>{Ht.observe(e)}));const Vt=((e,t=300)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>{e.apply(null,r)}),t)}})((()=>{const e=qt();Ht.disconnect(),e.forEach((e=>{Ht.observe(e)}))}),100),Wt=new MutationObserver(Vt),Kt={childList:!0,subtree:!0,attributes:!1},zt=()=>{Wt.observe(document.body,Kt)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",zt):zt();const Xt=()=>{Ht.disconnect(),Wt.disconnect(),Jt.forEach((e=>{window.removeEventListener(e,Xt)}))};Jt.forEach((e=>{window.addEventListener(e,Xt)})),qt();const Gt=()=>Ft;let Yt=null;const Qt=()=>{if(Yt)return Yt;Yt={};let e="NONE";(O||k)&&(e="UNKNOWN");const t=sessionStorage.getItem("nitro_prefetched_urls")||"{}",n=JSON.parse(t);if(null!==n){sessionStorage.removeItem("nitro_prefetched_urls");const t=ft();n[t]&&(e=n[t].initiator),Yt.prefetchCount=Object.entries(n).length}return Yt.prefetchInitiator=e,Yt};var Zt;!function(e){e.InpScript="inp_script"}(Zt||(Zt={}));const en=function(){return window.NitroPack=window.NitroPack||{},null==window.NitroPack.registeredOptimizers&&(window.NitroPack.registeredOptimizers=[]),window.NitroPack.registeredOptimizers.filter((e=>!!Object.values(Zt).includes(e)||(console.error(`Unknown page optimizer: ${e}`),!1)))},tn=e=>{var t,n,r,o,i,a,s,l;const c=Object.keys(e);for(const u of c){const c=null===(n=null===(t=e[u])||void 0===t?void 0:t.data)||void 0===n?void 0:n.url;if(void 0!==c){"string"==typeof(null===(o=null===(r=e[u])||void 0===r?void 0:r.data)||void 0===o?void 0:o.pageOptimizers)&&(e[u].data.pageOptimizers=JSON.parse(e[u].data.pageOptimizers)),"string"==typeof(null===(a=null===(i=e[u])||void 0===i?void 0:i.metadata)||void 0===a?void 0:a.resourceErrors)&&(e[u].metadata.resourceErrors=JSON.parse(e[u].metadata.resourceErrors));try{if("localhost"===new _t(c).host){delete e[u];continue}}catch(t){console.error(t,c),delete e[u];continue}(null===(l=null===(s=e[u])||void 0===s?void 0:s.data)||void 0===l?void 0:l.cwv)&&(Object.assign(e[u].data,e[u].data.cwv),delete e[u].data.cwv)}else delete e[u]}return e};let nn=0;const rn=()=>nn;var on=()=>{const t=performance.getEntriesByType("navigation")[0],n=Number("1717438542");let r=Math.floor(Date.now()/1e3);Math.abs(r-n)>1200&&(r=n);const i=void 0!==window.scrollY?window.scrollY:0,a=Je(document.documentElement.clientWidth),l=Je(document.documentElement.clientHeight),c=Je(window.screen.width),u=Je(window.screen.height);let d=0,p=0,f={ttfb:null,navType:"unknown",netRedirectCount:null,netRedirectReferrer:null,timeOrigin:null,redirectStart:null,redirectEnd:null,workerStart:null,fetchStart:null,domainLookupStart:null,domainLookupEnd:null,connectStart:null,secureConnectionStart:null,connectEnd:null,requestStart:null,firstInterimResponseStart:null,responseStart:null,responseEnd:null,domInteractive:null,domContentLoadedEventStart:null,domContentLoadedEventEnd:null,domComplete:null,loadEventStart:null,loadEventEnd:null,responseStatus:0};const g=rn();let v=0;const S=new jt("UX",y.UX,((e,t,n)=>{const r=["ttfb","ttfb_crux","fid","lcp_crux","lcp_perf","lcpCruxTimestamp","lcpPerfTimestamp","cls","cls_total","cls_raw","cls_afterStylesDelta","cls_afterPageLoadDelta","cls_afterScrollDelta","cls_unknownDelta","inp","fcp","clicks","requestCounter","isPageClosed"];if("cwv"===e){t=t||{};const e=new Set([...Object.keys(t),...Object.keys(n)]),o={};for(const i of e)r.includes(i)?o[i]=Math.max(t[i]||0,n[i]||0):"inpDetails"===i?(n.inp||0)>(t.inp||0)&&(o[i]=n[i]):"cls_largestShiftTarget"===i?(n.cls_total||0)>(t.cls_total||0)&&(o[i]=n[i]):void 0!==t[i]?o[i]=t[i]:void 0!==n[i]&&(o[i]=n[i]);return o}return r.includes(e)?Math.max(t||0,n||0):"iframeDetails"===e?t&&t.area>=n.area?t:n:["resourceErrors","pageOptimizers"].includes(e)?n:void 0!==t?t:n}),tn),T=!!window.IS_NITROPACK||en().length>0,L=NitroPack.coreVersion&&"%CORE_VERSION%"!==NitroPack.coreVersion?NitroPack.coreVersion:"na";window.addEventListener("error",(e=>{var t,n;const r=e.message||"Unknown error",o={IMG:"image",SCRIPT:"script",LINK:"link"};let i,a;if(!((null===(n=null===(t=e.target)||void 0===t?void 0:t.tagName)||void 0===n?void 0:n.toUpperCase())in o))return!0;i=o[e.target.tagName.toUpperCase()],a=e.target.src||e.target.href,"LINK"===i&&"stylesheet"===e.target.rel&&(i="stylesheet"),setTimeout((()=>{Mt(a,i,r)}),50)}),!0),"undefined"!=typeof PerformanceObserver&&new PerformanceObserver((e=>{null==e||e.getEntries().forEach((e=>{var t,n;((null===(t=e.responseStatus)||void 0===t?void 0:t.toString().startsWith("4"))||(null===(n=e.responseStatus)||void 0===n?void 0:n.toString().startsWith("5")))&&At(e.name)&&Mt(e.name,function(e){switch(e){case"js":case"ts":return"script";case"css":return"stylesheet";case"webp":case"png":case"jpg":case"jpeg":case"gif":case"svg":case"bmp":case"ico":return"image";case"woff":case"woff2":case"ttf":return"font";default:return"unknown"}}(At(e.name)),`Response status is ${e.responseStatus}`)}))})).observe({type:"resource",buffered:!0}),Qt(),ht("onBackgroundedTabForTwoMinutes",(()=>{sessionStorage.removeItem("nitro_prefetched_urls"),mt("onReInitNavAILogic")})),ht("onBFCRestored",(()=>{sessionStorage.removeItem("nitro_prefetched_urls"),mt("onReInitNavAILogic")}));let N=()=>new Promise((e=>e(f)));"undefined"!=typeof PerformanceObserver&&(N=()=>new Promise((e=>{new PerformanceObserver((t=>{const n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?1e3:0;t.getEntries().forEach((t=>{setTimeout((()=>{t.loadEventEnd>0&&(Object.keys(f).forEach((e=>{var n;void 0!==t[e]&&(n=t[e],!isNaN(parseFloat(n))&&isFinite(n)?t[e]>=0&&t[e]<=4294967295?f[e]=Math.round(t[e]):f[e]=null:f[e]=t[e])})),f.ttfb=O?0:Math.round(t.responseStart-t.connectEnd),f.navType=t.type||"unknown",f.netRedirectReferrer=document.referrer.length?document.referrer:null,f.netRedirectCount=t.redirectCount,f.timeOrigin=Math.round(performance.timeOrigin),e(f))}),n)}))})).observe({type:"navigation",buffered:!0})})));const _=()=>(f.lastNavDiff=(()=>{const e=parseInt(localStorage.getItem(h)),t=Date.now();return localStorage.setItem(h,t),isNaN(e)||0===e?null:Number(((t-e)/1e3).toFixed(1))})(),f),R=t=>e(void 0,void 0,void 0,(function*(){var e,n,r,o,i;if(D())return void Ut("UX - getIsWordPressAdmin = true","flushPageHideData");const a=dt(),s=Gt(),l=s&&s.area>((null===(r=null===(n=null===(e=S.payload)||void 0===e?void 0:e.data)||void 0===n?void 0:n.iframeDetails)||void 0===r?void 0:r.area)||0);S.requestCounter>0&&0===Object.keys(a).length&&!l&&0===Rt.length&&(null===(i=null===(o=S.payload)||void 0===o?void 0:o.data)||void 0===i?void 0:i.predictEndpointRequestedPerfNow)===v?"pagehide"===t&&M():(a.lcpCruxTimestamp=null!=window.lcpCruxTimestamp?Math.round(window.lcpCruxTimestamp):0,a.lcpPerfTimestamp=null!=window.lcpPerfTimestamp?Math.round(window.lcpPerfTimestamp):0,S.set("cwv",a),ct&&S.set("clicks",ct),S.setMetadata("resourceErrors",(()=>{const e=[...Rt];return Rt=[],e})()),"pagehide"===t&&S.setMetadata("isPageClosed",!0),S.set("iframeDetails",s),S.set("predictEndpointRequestedPerfNow",v),et=null,tt=null,nt=null,rt=null,ut(),it=null,at=null,st={},lt=0,"pagehide"===t?yield S.flush():S.flushQuiet())})),M=()=>{if(E)return;const e=Pt(),t=`https://${m}/ping/unalive/${e}`;navigator.sendBeacon&&navigator.sendBeacon(t)||fetch(t,{method:"POST",keepalive:!0})},A=()=>e(void 0,void 0,void 0,(function*(){if(D())return;setInterval((()=>mt("pageHideReady",{trigger:"interval"})),5e3),setInterval((()=>(()=>{if(E)return;const e=Pt(),t=`https://${m}/ping/keepalive/${e}?siteId=${o}`;navigator.sendBeacon&&navigator.sendBeacon(t)||fetch(t,{method:"POST",keepalive:!0})})()),12e4),p=document.querySelectorAll("*").length;let e=dt();e.lcpCruxTimestamp=null!=window.lcpCruxTimestamp?Math.round(window.lcpCruxTimestamp):0,e.lcpPerfTimestamp=null!=window.lcpPerfTimestamp?Math.round(window.lcpPerfTimestamp):0,f=yield N(),S.pvId=Pt(),S.setMetadata("version",w),S.set("url",ft()),S.set("urlFinal",s),S.set("coreVersion",L),S.set("connType",navigator.connection?navigator.connection.effectiveType:"u"),S.set("isOptimized",T),S.set("pageOptimizers",en()),S.set("isPrerendered",O),S.set("isPrefetched",k),S.set("isBFRestored",I),S.set("timestamp",r),S.set("activationStart",P()),S.set("isDuplicateTab",yield Bt),S.setFromObject((()=>{let e={};const n=t.notRestoredReasons;return null===n?e.bfCacheEligible=1:void 0===n?e.bfCacheEligible=null:n&&(e.bfCacheEligible=n.blocked?0:1,e.bfCacheNotEligibleReason=n.reasons?JSON.stringify(n.reasons):""),e})()),S.set("visitorId",yt()),S.set("visitorJourneyId",Et()),S.setFromObject((()=>{var e,t,n;let r={};return"object"==typeof window.NPTelemetryMetadata&&(r.missReason=(null===(e=window.NPTelemetryMetadata)||void 0===e?void 0:e.missReason)||"",r.pageType=(null===(t=window.NPTelemetryMetadata)||void 0===t?void 0:t.pageType)||"",r.isEligibleForOptimization=Boolean(null===(n=window.NPTelemetryMetadata)||void 0===n?void 0:n.isEligibleForOptimization)||!1),b&&(r.missReason="test-impact"),r})()),I||S.setFromObject(Qt()),S.setFromObject((()=>{if(!t.serverTiming||!t.serverTiming.length)return Promise.resolve();let e={};for(const{name:n,description:r,duration:o}of t.serverTiming)switch(n){case"nitro-ec-status":e.ecStatus=r;break;case"nitro-ec-read-config":e.ecReadConfigDuration=o;break;case"nitro-ec-read-cache":e.ecReadCacheDuration=o;break;case"nitro-ec-country":e.ecCountry=r}return e})()),S.set("elementsCountDocReady",d),S.set("elementsCountPageLoad",p),S.set("scrollPosition",i),S.set("isBot",navigator.webdriver||!navigator.languages.length),S.setFromObject(_()),S.set("predictStrategy",Ot||(Ot=sessionStorage.getItem("predictStrategyOnPrevPage")||"",sessionStorage.removeItem("predictStrategyOnPrevPage"),Ot)),S.setFromObject(vt),S.set("isNavAIExcluded",(e=>{for(let t=0;t<C.length;t++)if(null!==e.match(C[t]))return!0;return!1})(s)),S.set("isTestImpactJourney",b),S.set("cwv",e),S.set("iframeDetails",Gt()),S.set("viewportWidth",a),S.set("viewportHeight",l),S.set("screenWidth",c),S.set("screenHeight",u),S.set("scriptStartPerfNow",g),S.set("predictEndpointRequestedPerfNow",v),S.flushQuiet()})),x=()=>d=document.querySelectorAll("*").length;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",x):x(),ht("pageLoadReady",(()=>{A()})),ht("pageHideReady",(e=>R(e.detail.trigger))),ht("onPredictEndpointRequested",(()=>{v=performance.now()}))};const an=e=>{var t;return(null==e?void 0:e.href)||(null===(t=null==e?void 0:e.dataset)||void 0===t?void 0:t.nitroHref)},sn={},ln=e=>{var t,n;const r=Object.keys(e);for(const o of r){let r=null===(n=null===(t=e[o])||void 0===t?void 0:t.data)||void 0===n?void 0:n.events;null!=r?(r=r.filter((e=>{let t=null==e?void 0:e.url;if(void 0===t)return!1;try{if("localhost"===new _t(t).host)return!1}catch(e){return console.error(e,t),!1}return!0})),0!=r.length?e[o].data.events=r:delete e[o]):delete e[o]}return e};var cn=()=>{const t=new jt("UB",y.UB,void 0,ln),n=navigator.connection&&navigator.connection.effectiveType?navigator.connection.effectiveType:"",r="yes",o="no",i="no_data",a=Je(document.documentElement.clientWidth),l=Je(document.documentElement.clientHeight);let c=null,u=null,p=!1,f=!1,g=i,h="none",m=0,w=0,S=null,E=null,L=0,P=0,O=0,k=0,I=0,C=0,N=0;ht("onPredictedUrls",(e=>{S=e.detail.predictedUrls})),ht("onPredictResponse",(e=>{E=e.detail.predictResponse,N=performance.now()})),ht("onHintInsert",(e=>{const t=e.detail.type;"prefetch"===t?m++:"prerender"===t&&w++})),ht("onBFCRestored",(()=>{_(),p=!1,c=null,u=null})),ht("onBackgroundedTabForTwoMinutes",(()=>{_()})),ht("pageLoadReady",(()=>j()));const _=()=>{m=0,w=0},R=()=>!document.body.classList.contains("logged-in")&&-1===document.cookie.indexOf("items_in_cart=1"),M=e=>{const t=e.match(/\.([a-zA-Z0-9]+)(?:\?.*)?$/);return!t||!t[1]||["html","htm","php","asp","aspx","jsp","jspx"].includes(t[1])},A=e=>e.replace(/#.*$/,""),x=e=>{let n=t.payload.events||[];n.push(e),t.set("events",n),t.setMetadata("version",v)},U=()=>e(void 0,void 0,void 0,(function*(){if(!M(c)||f||D())return;const e=Date.now(),r=yt(),o=Et();var i,v;t.pvId=Tt(c),x({event:"navigate",isNewTab:p,isVisitor:R(),browser_time:e,source_url:s,url:c,selector:u,visitor_id:r,visitorJourneyId:o,connection_type:n,instant_load_predicted:g,speculation_type:h,prerenderInitiator:(v=c,sn[v]),prefetch_count:m,prerender_count:w,predictStrategy:T,selectorInPredictResponse:!(!E||(i=u,!Object.keys(E.selectors).includes(i))),isTestImpactJourney:b,clickViewportX:L,clickViewportY:P,clickPageY:O,clickPageX:k,clickScreenX:I,clickScreenY:C,viewportWidth:a,viewportHeight:l,navigatePerfNow:performance.now(),predictPerfNow:N}),yield t.flushAndClear(),p?(c=null,u=null,f=!0):((e=>{sessionStorage.setItem(d,JSON.stringify({url:e,expiration:Date.now()+5e3}))})(c),sessionStorage.setItem("predictStrategyOnPrevPage",T))})),j=()=>e(void 0,void 0,void 0,(function*(){if(D())return;const e=yt(),r=Et(),o=ft();f=!0,c=null,u=null,p=!1,t.pvId=Pt(),x({event:"pageload",isVisitor:R(),browser_time:Date.now(),visitor_id:e,visitorJourneyId:r,connection_type:n,isTestImpactJourney:b,url:o,viewportWidth:a,viewportHeight:l}),yield t.flushAndClear()}));document.addEventListener("click",(e=>{const t=(n=e.target)&&n.closest?an(n)?n:n.closest("a")||n.closest("[data-nitro-href]"):null;var n;if(!t)return;const i=an(t);if(!i)return;if(c=(e=>{var t;const n=new _t(e,(null===(t=document.querySelector("base"))||void 0===t?void 0:t.href)||window.location.href),r=n.host!==window.location.host,o=A(n.href)===A(window.location.href),i=n.hash||n.href.endsWith("#");return r||o&&i?null:n.href})(i),!c)return;if(L=e.clientX,P=e.clientY,O=e.pageY,k=e.pageX,I=e.screenX,C=e.screenY,u=(e=>{let t=[];for(;e.nodeType===Node.ELEMENT_NODE;){let n=e.nodeName.toLowerCase();if(e.id){n+="#"+e.id,t.unshift(n);break}{let t=1,r=e.previousElementSibling;for(;r;)r.nodeName.toLowerCase()==n&&t++,r=r.previousElementSibling;1!=t&&(n+=`:nth-of-type(${t})`)}t.unshift(n),e=e.parentNode}return t.join(" > ")})(t),S){const e=S.includes(c);if(g=e?r:o,e){const e=sessionStorage.getItem("nitro_prefetched_urls"),t=JSON.parse(e),n=t&&t[c];h=n&&n.type}}const a=t.hasAttribute("target")&&"_blank"===t.getAttribute("target");p=e.ctrlKey||e.shiftKey||e.metaKey||e.button&&1===e.button||a,f=!1,U(),p&&(c=null,u=null)})),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&(null!==c||f||e(void 0,void 0,void 0,(function*(){const e=yt(),r=Et(),o=ft(),i=Date.now();M(o)&&!D()&&(t.pvId=Pt(),x({event:"loading",isVisitor:R(),browser_time:i,url:o,visitor_id:e,visitorJourneyId:r,connection_type:n,isTestImpactJourney:b}),yield t.flushAndClear())})))}))};const un=()=>{on(),cn(),window.addEventListener("pagehide",(()=>mt("pageHideReady",{trigger:"pagehide"})),!0),document.prerendering?document.addEventListener("prerenderingchange",(()=>{"complete"===document.readyState?mt("pageLoadReady"):window.addEventListener("load",(()=>{mt("pageLoadReady")}))}),{once:!0}):"complete"===document.readyState?mt("pageLoadReady"):window.addEventListener("load",(()=>{mt("pageLoadReady")})),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&mt("pageHideReady",{trigger:"visibilitychange"})}),!0),window.addEventListener("pageshow",(e=>{e.persisted&&(mt("onBFCRestored"),"visible"!==document.visibilityState||O||mt("pageLoadReady"))}))};var dn=()=>{var e;let t=document.cookie.includes("9d63262f59cd9b3378f01392c"),n={initNP_PPL:function(){void 0===window.NP_PPL&&(window.NP_PPL={prefetches:[],lcpEvents:[],other:[]})},logPrefetch:function(e,n,r){let o=JSON.parse(window.sessionStorage.getItem("nitro_prefetched_urls"));null===o&&(o={}),void 0===o[e]&&(o[e]={type:n,initiator:r},window.sessionStorage.setItem("nitro_prefetched_urls",JSON.stringify(o))),t&&window.NP_PPL.prefetches.push({url:e,type:n,initiator:r,timestamp:performance.now()})},logLcpEvent:function(e,n=null){t&&window.NP_PPL.lcpEvents.push({message:e,data:n,timestamp:performance.now()})},logOther:function(e,n=null){t&&window.NP_PPL.other.push({message:e,data:n,timestamp:performance.now()})}};t&&n.initNP_PPL();const r=window.location.href,o=document.createElement("link"),i=new _t((null===(e=document.querySelector("base"))||void 0===e?void 0:e.href)||r).origin;let a=[],s=null,l=null,u=0,d=0,p=["mousemove","click","keydown","touchmove","touchstart"],f=!1,g=!1,h=0,m=!1,v=null,w=JSON.parse(atob("WyIuKj9cXD9hZGQtdG8tY2FydD0uKj8iLCIuKj9cdTAwMjZhZGQtdG8tY2FydD0uKj8iLCIuKj9cXD9yZW1vdmVfaXRlbT0uKj8iLCIuKj9cdTAwMjZyZW1vdmVfaXRlbT0uKj8iLCIuKj9cXD9hZGQuKj8iLCIuKj9cdTAwMjZhZGQuKj8iLCIuKj9cXD9yZW1vdmUuKj8iLCIuKj9cdTAwMjZyZW1vdmUuKj8iLCIuKj89cmVtb3ZlLio/IiwiLio/XFw/ZGVsZXRlLio/IiwiLio/XHUwMDI2ZGVsZXRlLio/IiwiLio/ZG93bmxvYWQuKj8iLCIuKj9sb2dvdXQuKj8iLCIuKj9sb2dpbi4qPyIsIi4qP3NpZ25vdXQuKj8iLCIuKj9zaWduaW4uKj8iLCIuKj8vd3AtYWRtaW4uKj8iLCIuKj8vd3AtbG9naW4uKj8iLCIuKj93cG5vbmNlPS4qPyIsIi4qP25vbmNlPS4qPyIsIi4qPy9jaGVja291dC4qPyIsIi4qPy9jYXJ0Lio/IiwiLio/L215LWFjY291bnQuKj8iLCIuKj8vYWNjb3VudC4qPyIsIi4qPy9yZXF1ZXN0LXF1b3RlLyIsIi4qP1xcLmV4ZSIsIi4qP1xcLnppcCIsIi4qP1xcLnJhciIsIi4qP1xcLmRlYiIsIi4qP1xcLnJwbSIsIi4qP1xcLnBrZyIsIi4qP1xcLmRtZyIsIi4qP1xcLnBkZiIsIi4qP1xcLm1zaSIsIi4qP1xcLm1wMyIsIi4qP1xcLmRvYyIsIi4qP1xcLmRvY3giLCIuKj9cXC5wcHQiLCIuKj9cXC54bHMiLCIuKj9cXC54bHN4IiwiLio/XFwub2R0IiwiLio/XFwudHh0IiwiLio/XFwuanBnIiwiLio/XFwuanBlZyIsIi4qP1xcLnBuZyIsIi4qP1xcLndlYnAiLCIuKj9cXC5naWYiLCIuKj9cXC5hdmlmIiwiLio/XFwubXA0IiwiLio/XFwubW92IiwiLio/XFwud212IiwiLio/XFwud2VibSIsIi4qP1xcLmF2aSIsIi4qP1xcLmZsdiIsIi4qP1xcLm1rdiIsIi4qP1xcLm10cyIsIi4qP2xlYXJuZGFzaF9kZWxldGUuKj8iXQ=="));if("[object Object]"===Object.prototype.toString.call(w)){n.logOther("EXCLUDES_AS_OBJECT",w);let e=[];for(const t in w)e.push(w[t]);w=e}w=w.map((e=>new RegExp(e)));const y=e=>{for(let t=0;t<w.length;t++)if(null!==e.match(w[t]))return!0;return!1};if(c)return void n.logOther("Script execution canceled: Test mode enabled.");if(y(r))return void n.logOther("Script execution canceled: Current URL is excluded.",r);if(!(o.relList&&o.relList.supports&&o.relList.supports("prefetch")))return;let S=0;function E(e){if(!e)return n.logOther("Link Not Prefetchable: empty link element.",e),!1;if(!e.href)return n.logOther("Link Not Prefetchable: empty href attribute.",e),!1;let t=e.href,r=null;try{r=new _t(t)}catch(t){return n.logOther("Link Not Prefetchable: "+t,e),!1}const o=r.origin,a=r.protocol;return["http:","https:"].includes(a)?"http:"==a&&"https:"==location.protocol?(n.logOther("Link Not Prefetchable: URL is HTTP but the current page is HTTPS.",e),!1):"#"==r.href.charAt(0)||r.hash&&r.pathname+r.search==location.pathname+location.search?(n.logOther("Link Not Prefetchable: URL is the current location but with a hash.",r),!1):o!==i?(n.logOther("Link Not Prefetchable: Different domain.",e),!1):!y(t)||(n.logOther("Link Not Prefetchable: Excluded URL "+t+".",{link:e}),!1):(n.logOther("Link Not Prefetchable: missing protocol in the URL.",e),!1)}function b(){return null!==v||(v=function(){let e=navigator.connection;return!!e&&!!e.saveData&&(n.logOther("Data Saving Mode detected."),!0)}()),v}window.requestIdleCallback||(window.requestIdleCallback=function(e,t={}){var n=t.timeout||1,r=performance.now();return setTimeout((function(){e({get didTimeout(){return!t.timeout&&performance.now()-r-1>n},timeRemaining:function(){return Math.max(0,performance.now()-r+1)}})}),1)}),window.cancelIdleCallback||(window.cancelIdleCallback=function(e){clearTimeout(e)});let T=function(e,t="",r=!1){if(a.indexOf(e)>-1)n.logOther("Prefetch skipped: URL is already prefetched.",e);else if(a.length>15)n.logOther("Prefetch skipped: Maximum prefetches threshold reached.");else if(r||performance.now()-S>300){if(!b())return function(e){const t=document.createElement("link");t.rel="prefetch",t.setAttribute("nitro-exclude",!0),t.type="text/html",t.href=e,document.head.appendChild(t)}(e),a.push(e),S=performance.now(),n.logPrefetch(e,"prefetch",t),!0;n.logOther("Prefetch skipped: limited connection",e)}else n.logOther("Prefetch skipped: on cooldown",e)};function L(e){let t=document.querySelector("body");for(;e!=t;){if(P(e)){e=e.parentElement,n.logOther("Skipping LCP container level: Inside a <nav> element.",e);continue}let t=Array.from(e.querySelectorAll("a"));if(n.logOther("filtering links...",t),t=t.filter((t=>P(t)?(n.logOther("Skipping link: Inside a <nav> element.",e),!1):E(t))),t.length>0)return[t,e];e=e.parentElement}return[[],null]}function P(e){return e&&(null!==e.closest("nav")||"NAV"==e.nodeName)}function O(){f=!0,g&&!m&&I()}function k(){g=!0,f&&!m&&(I()?window.cancelIdleCallback(u):(d++,d>2&&(window.cancelIdleCallback(u),n.logLcpEvent("IDLE_CALLBACK_CANCELLED"))))}function I(){if(null==s)return n.logLcpEvent("doLcpPrefetching_CALLBACK_CALLED_WITHOUT_LCP_ELEMENT"),!1;let e=[];if([e,l]=L(s),0==e.length)return n.logLcpEvent("NO_LINKS_FOUND"),!1;e.length>0&&(T(e[0].href,"LCP",!m),m=!0),N.observe(l,{subtree:!0,childList:!0,attributes:!0}),n.logLcpEvent("MUTATION_OBSERVER_REGISTERED"),window.cancelIdleCallback(u),n.logLcpEvent("IDLE_CALLBACK_CANCELLED")}function C(e){n.logLcpEvent("MUTATION_RESCAN_TRIGGERED",e);let t=L(l)[0];t.length>0&&T(t[0].href,"LCP_MUTATION")}const N=new MutationObserver((function(e){n.logLcpEvent("MUTATION_DETECTED",e),clearTimeout(h),h=setTimeout(C,500,e)}));navigator.connection&&(navigator.connection.onchange=function(){v=null,n.logOther("Connection changed",{effectiveType:navigator.connection.effectiveType,rtt:navigator.connection.rtt,downlink:navigator.connection.downlink,saveData:navigator.connection.saveData})}),function(){if(!PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint"))return void n.logLcpEvent("PerformanceObserver does not support LCP events in this browser.");let e=new PerformanceObserver((e=>{n.logLcpEvent("LCP_DETECTED",e.getEntries().at(-1).element),s=e.getEntries().at(-1).element})),t=function(){u=window.requestIdleCallback(k),window.removeEventListener("load",t)};p.forEach((e=>{window.addEventListener(e,O,{once:!0})})),e.observe({type:"largest-contentful-paint",buffered:!0}),window.addEventListener("load",t)}(),function(){let e,t=performance.now();const r={capture:!0,passive:!0};function o(t){t.relatedTarget&&t.target.closest("a")==t.relatedTarget.closest("a")||e&&(clearTimeout(e),e=void 0)}document.addEventListener("touchstart",(function(e){t=performance.now();const n=e.target.closest("a");if(!n||!E(n))return;T(n.href,"TOUCH")}),r),document.addEventListener("mouseover",(function(r){if(n.logOther("mouseoverListener() called",r),performance.now()-t<1111)return;const i=r.target.closest("a");if(!i||!E(i))return;i.addEventListener("mouseout",o,{passive:!0}),e=setTimeout((function(){n.logOther("mouseoverTimer CALLBACK called",r),T(i.href,"HOVER"),e=void 0}),85)}),r)}()};const pn=()=>{nn=performance.now(),(()=>{if(window.NitroPack=window.NitroPack||{},null==window.NitroPack.scriptReady&&(window.NitroPack.scriptReady=!1),null==window.NitroPack.customDebugScript&&(window.NitroPack.customDebugScript=!1),window.NitroPack.customDebugScript)return!1;if(window.NitroPack.scriptReady){let e="Nitro Script";return document.currentScript&&"src"in document.currentScript&&(e=document.currentScript.src),console.warn(`NitroPack: ${e} is already initialized. The execution will be skipped.`),!0}if(window.NitroPack.scriptReady=!0,localStorage.getItem("nitroDebugScript")){console.warn("NitroPack: Debug mode is enabled."),window.NitroPack.customDebugScript=!0;const e=localStorage.getItem("nitroDebugScript")||"() => void 0;";return new Function(e)(),!0}if(localStorage.getItem("nitroDebugScriptUrl")){console.warn("NitroPack: Debug mode is enabled."),window.NitroPack.customDebugScript=!0;const e=localStorage.getItem("nitroDebugScriptUrl");return!!e&&(fetch(e).then((e=>e.text())).then((e=>{new Function(e)()})),!0)}return!1})()||(un(),dn())};document.prerendering?document.addEventListener("prerenderingchange",(()=>{pn()}),{once:!0}):pn()}();
