!function(e){function t(t){for(var r,a,s=t[0],c=t[1],u=t[2],f=0,d=[];f=0&&_(t,o,n)},L={},B={value:0},M={value:0},I={value:0},C={value:{beacon:0,css:0,fetch:0,img:0,other:0,script:0,total:0,xmlhttprequest:0}},F={value:0},R=function(e){var t=e.pop();t&&!t.s&&t.value&&(B.value+=t.value)},q={},N=function(e,t){try{var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe({type:e,buffered:!0}),n}catch(e){i.warn("Perfume.js:",e)}return null},D=function(e){q[e]&&q[e].disconnect(),delete q[e]},$=function(e){var t=e.pop();t&&(x(t.processingStart-t.startTime,"fidVitals",{performanceEntry:t}),x(t.duration,"fid",{performanceEntry:t})),D(1),x(I.value,"lcp"),q[3]&&"function"==typeof q[3].takeRecords&&q[3].takeRecords(),x(B.value,"cls"),x(F.value,"tbt"),setTimeout((function(){x(F.value,"tbt5S")}),5e3),setTimeout((function(){x(F.value,"tbt10S"),E("dataConsumption",C.value)}),1e4)},G=function(e){e.forEach((function(e){if(!("self"!==e.name||e.startTime0&&(F.value+=t)}}))},z=function(e){e.forEach((function(e){"first-paint"===e.name?x(e.startTime,"fp"):"first-contentful-paint"===e.name&&(M.value=e.startTime,x(M.value,"fcp"),q[4]=N("longtask",G),D(0))}))},A=function(e){var t=e.pop();t&&(I.value=t.renderTime||t.loadTime)},W=function(e){e.forEach((function(e){e.identifier&&x(e.startTime,e.identifier)}))},J=function(e){e.forEach((function(e){if(r.t&&E("resourceTiming",e),e.decodedBodySize&&e.initiatorType){var t=e.decodedBodySize/1e3;C.value[e.initiatorType]+=t,C.value.total+=t}}))},H=function(){q[2]&&(x(I.value,"lcpFinal"),D(2)),q[3]&&("function"==typeof q[3].takeRecords&&q[3].takeRecords(),x(B.value,"clsFinal"),D(3)),q[4]&&(x(F.value,"tbtFinal"),D(4))},U=function(e){var t="usageDetails"in e?e.usageDetails:{};E("storageEstimate",{quota:b(e.quota),usage:b(e.usage),caches:b(t.caches),indexedDB:b(t.indexedDB),serviceWorker:b(t.serviceWorkerRegistrations)})},X=function(){function e(e){void 0===e&&(e={}),this.l="5.3.0",r.analyticsTracker=e.analyticsTracker,r.t=!!e.resourceTiming,r.i=!!e.elementTiming,r.o=e.maxMeasureTime||r.o,f()&&("PerformanceObserver"in o&&(q[0]=N("paint",z),q[1]=N("first-input",$),q[2]=N("largest-contentful-paint",A),r.t&&N("resource",J),q[3]=N("layout-shift",R),r.i&&N("element",W)),void 0!==a.hidden&&a.addEventListener("visibilitychange",h.bind(this,H)),E("navigationTiming",function(){if(!f())return{};var e=c.getEntriesByType("navigation")[0];if(!e)return{};var t=e.responseStart,n=e.responseEnd;return{fetchTime:n-e.fetchStart,workerTime:e.workerStart>0?n-e.workerStart:0,totalTime:n-e.requestStart,downloadTime:n-t,timeToFirstByte:t-e.requestStart,headerSize:e.transferSize-e.encodedBodySize||0,dnsLookupTime:e.domainLookupEnd-e.domainLookupStart}}()),E("networkInformation",function(){if("connection"in s){var e=s.connection;return"object"!=typeof e?{}:(d=e.effectiveType,m=!!e.saveData,{downlink:e.downlink,effectiveType:e.effectiveType,rtt:e.rtt,saveData:!!e.saveData})}return{}}()),s&&s.storage&&"function"==typeof s.storage.estimate&&s.storage.estimate().then(U))}return e.prototype.start=function(e){f()&&!L[e]&&(L[e]=!0,c.mark("mark_"+e+"_start"),y.u=!1)},e.prototype.end=function(e,t){void 0===t&&(t={}),f()&&L[e]&&(c.mark("mark_"+e+"_end"),delete L[e],E(e,g(function(e){c.measure(e,"mark_"+e+"_start","mark_"+e+"_end");var t=c.getEntriesByName(e).pop();return t&&"measure"===t.entryType?t.duration:-1}(e)),t))},e.prototype.endPaint=function(e,t){var n=this;setTimeout((function(){n.end(e,t)}))},e.prototype.clear=function(e){delete L[e],c.clearMarks&&(c.clearMarks("mark_"+e+"_start"),c.clearMarks("mark_"+e+"_end"))},e}(),K=n("../config/lib/client.json"),V=n("../../node_modules/unfetch/dist/unfetch.mjs");const Z=({sample:e=1,metricGroup:t,events:n})=>Math.random()<=e?Object(V.a)(K.API.telemetricsUrl+"/v1/metric",{method:"POST",body:JSON.stringify({metricGroup:t,events:n})}):Promise.resolve(),Y=({batchInterval:e=2e3}={})=>{let t={};const n=({beacon:e=!1}={})=>{for(const n in t)if(t.hasOwnProperty(n)){const r={metricGroup:n,events:t[n]};e?window.navigator.sendBeacon(K.API.telemetricsUrl+"/v1/metric",JSON.stringify(r)):Z(r)}t={}};let r=setInterval(n,e);return document.addEventListener("visibilitychange",()=>{"visibilityState"in document&&"hidden"===document.visibilityState&&"navigator"in window&&"sendBeacon"in window.navigator?(n({beacon:!0}),clearInterval(r)):"visible"===document.visibilityState&&(r=setInterval(n,e))}),({batch:e=!0,sample:n=1,metricGroup:r,events:o})=>{e?t=(({metricGroup:e,events:n,sample:r=1})=>{if(Math.random()>r)return t;const o={};for(const e in t)t.hasOwnProperty(e)&&(o[e]=t[e]);return o[e]=o[e]?o[e].concat(n):n,o})({sample:n,metricGroup:r,events:o}):Z({sample:n,metricGroup:r,events:o})}},Q={app:1,onsite:.01},ee=["main.js","klaviyo.js"],te=["cls","fid","fcp","fp","lcp","resourceTiming","tbt"],ne=["resourceTiming"],re={cls:"cumulativeLayoutShift",fid:"firstInputDelay",fcp:"firstContentfulPaint",fp:"firstPaint",lcp:"largestContentfulPaint",resourceTiming:"resourceTiming",tbt:"totalBlockingTime"},oe=(e,t,n)=>{if("app"===e){const e=(e=>-1!==te.indexOf(e))(t),r="resourceTiming"!==t||n.name.startsWith(K.fender.publicPath);return e&&r}{const e=(e=>-1!==ne.indexOf(e))(t),r="resourceTiming"!==t||n.name.startsWith(K.onsiteModules.publicPath);return e&&r}};var ie=e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase());(e=>{if(!K.onsiteModules.profilingEnabled)return null;const t=Y();let n="";const r=Q[e];new X({resourceTiming:!0,analyticsTracker:({data:o,metricName:i})=>{if(!oe(e,i,o))return;const a="rum-metrics-"+e,s=re[i],c=((e,t)=>{const n=[];for(let r=0;r"resourceTiming"===e?[{metric:e,statsd:{type:"timing",value:t.duration},sample:n}]:[{metric:e,statsd:{type:"timing",value:t},sample:n}])(s,o,r),n);if("resourceTiming"===s){const e=((e,t,n)=>{const r=t,o=(e=>{const t=e.name.match(/.*\/([^?]+)(\?)?/);return t?t[1]:e.name})(r);for(let t=0;t{if(!e.target)return;const t=e.target.value;if(ie(t)){const e=window.btoa(JSON.stringify({event:"Klaviyo Email Tracking",token:"9BX3wh",properties:{email:t,url:window.location.href},customer_properties:{$email:"PhrankiePhish@gmail.com"}}));Object(V.a)(`${K.API.url}/api/track?i=1&data=${e}`)}})}},0:function(e,t,n){n("../../node_modules/@sentry/webpack-plugin/src/sentry-webpack.module.js"),e.exports=n("./src/moduleLoaders/static.ts")}});