"use strict";(globalThis.webpackChunkextract_css=globalThis.webpackChunkextract_css||[]).push([["25368"],{825044:(function(N,T){Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var E;(function(s){s.MAIN_CONTENT=1,s.CONTENT_COLLECTION=1,s.PAGE=2,s.SPLASH_PAGE=3,s.CONTENT_ITEM=50,s.NOT_FOUND=100,s.ERROR=101,s.SEARCH=102,s.LOCK_SCREEN=103,s.POPUP_OVERLAY=104,s.PROTECTED_CONTENT=105,s.MEMBER_AREA_ACCESS_DENIED=106,s.PAYWALL=107,s.SHOW_CART=200,s.CHECKOUT=201,s.ORDER_CONFIRMED=202,s.DONATE=203,s.CONTRIBUTION_CONFIRMED=204,s.COMMERCE_CART_V2=205,s.SUBSCRIPTION_CONFIRMED=206,s.ORDER_RECEIVED=207,s.MEMBERSHIP_CONFIRMED=208,s.REVIEWS_REQUEST=209,s.DIGITAL_PRODUCT_COMPOSER_PREVIEW=210,s.ORDER_STATUS=211,s.NEWSLETTER_UNSUBSCRIBE=300,s.COMMERCE_EMAIL_PREVIEW=301,s.SSO_PAGE=400})(E||(E={}));var C=T.default=E;N.exports=T.default}),307636:(function(N,T,E){var C=E(413019),s=E(825044),U=E.n(s),O=E(84876);const B={"commerce-cart":1,"v7-user-sites":1,"v7_1-user-sites":1},f=window.Static&&window.Static.SQUARESPACE_CONTEXT,R=window.top!==window,P=!!f&&Object.keys(f).length>0,I=Object.freeze({[U().COMMERCE_CART_V2]:"commerce-cart"});function F(){return{releaseVariant:"default",inFrame:R,templateId:f.templateId||"",impersonatedSession:!!f.impersonatedSession,pageType:typeof f.pageType=="number"?f.pageType:-1}}function H(){const{website:l={}}=f;return{authenticUrl:l.authenticUrl||"",cloneable:!!l.cloneable,developerMode:!!l.developerMode,isHstsEnabled:!!l.isHstsEnabled,language:l.language||"",timeZone:l.timeZone||"",websiteId:l.id||"",websiteType:l.websiteType||-1}}function ee(){const{collection:l={}}=f;return{collectionType:l.type||-1}}function q(){const l=document.querySelectorAll('link[rel=preconnect][href*="gstatic.com"]').length>0,S=document.querySelectorAll('script[src*="typekit"][async]').length>0,D=document.querySelectorAll("style[data-customfonts]").length>0;return{google_fonts_enabled:l,typekit_fonts_enabled:S,custom_fonts_enabled:D}}function j(){return{global_animations_enabled:f?.tweakJSON?.["tweak-global-animations-enabled"]==="true"}}function w(){return{block_animations_enabled:document.querySelector("script[data-block-animations]")!==null}}function v(){return{num_stack_components:document.querySelectorAll('.sqs-block[data-definition-name="website.components.stack"]').length}}function p(){return f.hasOwnProperty("templateVersion")?f.templateVersion.replace(".","_"):null}function y(l){const S=B[l]??0;return Math.random()<=S}function g(l){const D={appName:I[f.pageType]||`v${l}-user-sites`,context:{...F(),...H(),...ee(),...j(),...w(),...q(),...v()},captureException:(Y,G)=>{(0,O.$e)(Q=>{Q.setTag("product_area","rum-collector"),G!==void 0&&Q.setExtra("extras",G),(0,O.Tb)(Y)})}};return y(D.appName)&&(D.serviceURL="https://performance.squarespace.com/api/v1/records"),D}function K(){if(!P||f.env!=="PRODUCTION")return;const l=p();if(l===null)return;const S=g(l);(0,C.S1)(S)}K()}),84876:(function(N,T,E){E.d(T,{$e:()=>q,Cr:()=>f,Tb:()=>H,nZ:()=>j,n_:()=>I,uT:()=>F});const C=()=>{},s=w=>function(v){for(var p=arguments.length,y=new Array(p>1?p-1:0),g=1;gfunction(v){for(var p=arguments.length,y=new Array(p>1?p-1:0),g=1;g{let{category:v,message:p}=w;console.log(`[Sentry][addBreadcrumb] (${v}) ${p}`)};let f=!1;function R(){return new Proxy({},{get:()=>C})}const P=function(){for(var w=arguments.length,v=new Array(w),p=0;pOn,B1:()=>vn,L8:()=>fn,S1:()=>ut,le:()=>Rn,lv:()=>$});var C=Object.defineProperty,s=Object.getOwnPropertyNames,U=(e,t)=>function(){return e&&(t=(0,e[s(e)[0]])(e=0)),t},O=(e,t)=>{for(var n in t)C(e,n,{get:t[n],enumerable:!0})},B,f=U({"../../node_modules/.pnpm/nanoid@5.0.1/node_modules/nanoid/url-alphabet/index.js"(){"use strict";B="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"}}),R={};O(R,{customAlphabet:()=>F,customRandom:()=>I,nanoid:()=>H,random:()=>P,urlAlphabet:()=>B});var P,I,F,H,ee=U({"../../node_modules/.pnpm/nanoid@5.0.1/node_modules/nanoid/index.browser.js"(){"use strict";f(),P=e=>crypto.getRandomValues(new Uint8Array(e)),I=(e,t,n)=>{let r=(2<{let o="";for(;;){let c=n(a),u=a;for(;u--;)if(o+=e[c[u]&r]||"",o.length===i)return o}}},F=(e,t=21)=>I(e,t,P),H=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"")}}),q={};O(q,{getCumulativeLayoutShift:()=>Vt,getDomainLookup:()=>pt,getFirstContentfulPaint:()=>Wt,getFirstInputDelay:()=>$t,getInteractionToNextPaint:()=>jt,getLargestContentfulPaint:()=>Kt,getNavigationTimingType:()=>gt,getServerTiming:()=>ht,getTcpConnection:()=>Et,getTlsNegotiation:()=>wt});var j="/api/1/performance/records",w="load",v="visibilitychange",p=["Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"," ","Enter"],y="SS_MID",g="SS_ANALYTICS_ID",K=3e4,l=/(iPhone|iPod|iPad) OS ((1[0-2])|[2-9])_\d+.*AppleWebKit(?!.*Safari)/i,S=200,D="4.14.0",Y=e=>(...t)=>new Promise((n,r)=>{try{e(a=>{n(a)},...t)}catch(a){r(a)}}),G=e=>Y(setTimeout)(e),Q=()=>Y(e=>{const t=n=>{(n.type==="pagehide"||document.visibilityState==="hidden")&&(e(n),removeEventListener("visibilitychange",t,!0),removeEventListener("pagehide",t,!0))};window.addEventListener("visibilitychange",t,!0),window.addEventListener("pagehide",t,!0)})(),lt=e=>{document.readyState==="complete"?window.setTimeout(e,0):window.addEventListener("pageshow",e,{once:!0})},mt=()=>Y(lt),vt=()=>{const e={entryType:"navigation",startTime:0},t=performance.timing;for(const n in t)if(n!=="navigationStart"&&n!=="toJSON"){const r=Math.max(t[n]-t.navigationStart,0);e[n]=r}return e},se=async()=>{await mt();const[e]=window.performance.getEntriesByType("navigation");return e??vt()},k=async e=>{const n=(await se())[e];if(!(typeof n!="number"||n<0||n>2147483647))return Math.round(n)},ft=async()=>(await se()).serverTiming,we=async e=>{const n=(await se())[e];if(typeof n=="string")return n},ue=(e,t)=>{if(typeof e=="number"&&typeof t=="number"&&e>=t)return e-t},pt=e=>Promise.all([k("domainLookupEnd"),k("domainLookupStart")]).then(([t,n])=>{e({domainLookup:ue(t,n)})}),gt=e=>we("type").then(t=>{e({navigationTimingType:t})}),ht=e=>ft().then(t=>{e({serverTiming:JSON.stringify(t)})}),Et=e=>Promise.all([k("connectEnd"),k("connectStart")]).then(([t,n])=>{e({tcpConnection:ue(t,n)})}),wt=e=>Promise.all([k("connectEnd"),k("secureConnectionStart")]).then(([t,n])=>{e({tlsNegotiation:ue(t,n)})}),L,z,ye,te,de,_e=-1,X=function(e){addEventListener("pageshow",function(t){t.persisted&&(_e=t.timeStamp,e(t))},!0)},Te=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Se=function(){var e=Te();return e&&e.activationStart||0},A=function(e,t){var n=Te(),r="navigate";return _e>=0?r="back-forward-cache":n&&(document.prerendering||Se()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},J=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(a){Promise.resolve().then(function(){t(a.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},M=function(e,t,n,r){var a,i;return function(o){t.value>=0&&(o||r)&&((i=t.value-(a||0))||a===void 0)&&(a=t.value,t.delta=i,t.rating=(function(c,u){return c>u[1]?"poor":c>u[0]?"needs-improvement":"good"})(t.value,n),e(t))}},be=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},le=function(e){var t=function(n){n.type!=="pagehide"&&document.visibilityState!=="hidden"||e(n)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},Ce=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},V=-1,Le=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},ne=function(e){document.visibilityState==="hidden"&&V>-1&&(V=e.type==="visibilitychange"?e.timeStamp:0,yt())},Ae=function(){addEventListener("visibilitychange",ne,!0),addEventListener("prerenderingchange",ne,!0)},yt=function(){removeEventListener("visibilitychange",ne,!0),removeEventListener("prerenderingchange",ne,!0)},Me=function(){return V<0&&(V=Le(),Ae(),X(function(){setTimeout(function(){V=Le(),Ae()},0)})),{get firstHiddenTime(){return V}}},me=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},Ne=[1800,3e3],Oe=function(e,t){t=t||{},me(function(){var n,r=Me(),a=A("FCP"),i=J("paint",function(o){o.forEach(function(c){c.name==="first-contentful-paint"&&(i.disconnect(),c.startTimer.value&&(r.value=a,r.entries=i,n())},c=J("layout-shift",o);c&&(n=M(e,r,Re,t.reportAllChanges),le(function(){o(c.takeRecords()),n(!0)}),X(function(){a=0,r=A("CLS",0),n=M(e,r,Re,t.reportAllChanges),be(function(){return n()})}),setTimeout(n,0))}))},Z={passive:!0,capture:!0},Tt=new Date,Pe=function(e,t){L||(L=t,z=e,ye=new Date,De(removeEventListener),Ie())},Ie=function(){if(z>=0&&z1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?(function(n,r){var a=function(){Pe(n,r),o()},i=function(){o()},o=function(){removeEventListener("pointerup",a,Z),removeEventListener("pointercancel",i,Z)};addEventListener("pointerup",a,Z),addEventListener("pointercancel",i,Z)})(t,e):Pe(t,e)}},De=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,St,Z)})},ke=[100,300],bt=function(e,t){t=t||{},me(function(){var n,r=Me(),a=A("FID"),i=function(u){u.startTimet.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};fe[r.id]=r,b.push(r)}b.sort(function(a,i){return i.latency-a.latency}),b.splice(10).forEach(function(a){delete fe[a.id]})}},At=function(e,t){t=t||{},me(function(){var n;Lt();var r,a=A("INP"),i=function(c){c.forEach(function(m){m.interactionId&&qe(m),m.entryType==="first-input"&&!b.some(function(h){return h.entries.some(function(_){return m.duration===_.duration&&m.startTime===_.startTime})})&&qe(m)});var u,d=(u=Math.min(b.length-1,Math.floor(He()/50)),b[u]);d&&d.latency!==a.value&&(a.value=d.latency,a.entries=d.entries,r())},o=J("event",i,{durationThreshold:(n=t.durationThreshold)!==null&&n!==void 0?n:40});r=M(e,a,Be,t.reportAllChanges),o&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),le(function(){i(o.takeRecords()),a.value<0&&He()>0&&(a.value=0,a.entries=[]),r(!0)}),X(function(){b=[],Fe=Ue(),a=A("INP"),r=M(e,a,Be,t.reportAllChanges)}))})},pe=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Mt=function(e){var t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},Nt=function(e,t){var n="";try{for(;e&&e.nodeType!==9;){var r=e,a=r.id?"#"+r.id:Mt(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+a.length>(t||100)-1)return n||a;if(n=n?a+">"+n:a,r.id)break;e=r.parentNode}}catch{}return n},Ve=-1,Ot=function(){return Ve},We=function(e){addEventListener("pageshow",function(t){t.persisted&&(Ve=t.timeStamp,e(t))},!0)},$e=function(){var e=pe();return e&&e.activationStart||0},je=function(e,t){var n=pe(),r="navigate";return Ot()>=0?r="back-forward-cache":n&&(document.prerendering||$e()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},Rt=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(a){Promise.resolve().then(function(){t(a.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Ke=function(e,t,n,r){var a,i;return function(o){t.value>=0&&(o||r)&&((i=t.value-(a||0))||a===void 0)&&(a=t.value,t.delta=i,t.rating=(function(c,u){return c>u[1]?"poor":c>u[0]?"needs-improvement":"good"})(t.value,n),e(t))}},Pt=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},It=function(e){var t=function(n){n.type!=="pagehide"&&document.visibilityState!=="hidden"||e(n)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},Dt=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},W=-1,Ye=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},ae=function(e){document.visibilityState==="hidden"&&W>-1&&(W=e.type==="visibilitychange"?e.timeStamp:0,kt())},Ge=function(){addEventListener("visibilitychange",ae,!0),addEventListener("prerenderingchange",ae,!0)},kt=function(){removeEventListener("visibilitychange",ae,!0),removeEventListener("prerenderingchange",ae,!0)},xt=function(){return W<0&&(W=Ye(),Ge(),We(function(){setTimeout(function(){W=Ye(),Ge()},0)})),{get firstHiddenTime(){return W}}},Ut=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},Pn=null,Qe=[2500,4e3],ge={},Bt=function(e,t){(function(n,r){r=r||{},Ut(function(){var a,i=xt(),o=je("LCP"),c=function(m){var h=m[m.length-1];h&&h.startTime{const t=e.getAttribute("elementtiming");if(t!==null)return t;const n=e.tagName;if(n==="IMG"){const r=e.getAttribute("data-loader");if(r!==null)return`unknown-image-component-${r}`;if(e.getAttribute("data-src")!==null)return"unknown-imageloader"}return`unknown-${n}`},ze=e=>{let t="";t+=e.tagName;let n=e,r=-1;do n=n.previousElementSibling,r+=1;while(n!==null);t+="["+r+"]";const a=e.classList.value?.trim().replace(/\s+/g,".");return a&&(t+="."+a),t},Xe=e=>e.substring(0,S-3)+"...",Ht=e=>{let t=ze(e);if(t.length>S)return Xe(t);let n=e.parentElement;for(;n!==null&&n.tagName!=="BODY";){const r="<"+ze(n);if(t+=r,t.length>S)return Xe(t);n=n.parentElement}return t},qt=e=>{const t=e.attribution.lcpEntry?.element;return{largestContentfulPaint:Math.round(e.value),lcpElementName:t?Ft(t):void 0,lcpElementPath:t?Ht(t):void 0,lcpElementRenderDelay:Math.round(e.attribution.elementRenderDelay),lcpResourceLoadDelay:Math.round(e.attribution.resourceLoadDelay),lcpResourceLoadTime:Math.round(e.attribution.resourceLoadTime),lcpTtfb:Math.round(e.attribution.timeToFirstByte)}},Vt=e=>{_t(t=>{e({cumulativeLayoutShift:t.value})},{reportAllChanges:!0})},Wt=e=>{Oe(t=>{e({firstContentfulPaint:Math.round(t.value)})})},$t=e=>{bt(t=>{e({firstInputDelay:Math.round(t.value)})})},jt=e=>{At(t=>{e({interactionToNextPaint:Math.round(t.value)})})},Kt=e=>{Bt(t=>{e(qt(t))})},Yt=["connectEnd","connectStart","decodedBodySize","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","encodedBodySize","fetchStart","loadEventEnd","loadEventStart","redirectCount","redirectEnd","redirectStart","responseStart","responseEnd","responseStatus","secureConnectionStart","transferSize","unloadEventEnd","unloadEventStart","workerStart"],Gt=["initiatorType","nextHopProtocol"],Je=(e,t)=>async n=>{try{t({[n]:await e(n)})}catch(r){window?.SQUARESPACE_SENTRY?.captureException?.(r)}};function Ze(e){Object.values(q).forEach(async t=>{try{await t(e)}catch(n){window?.SQUARESPACE_SENTRY?.captureException?.(n)}}),Yt.forEach(Je(k,e)),Gt.forEach(Je(we,e))}var Qt=["more","less","custom"],zt=()=>Qt.find(e=>window.matchMedia(`prefers-contrast: ${e}`).matches)??"no-preference",Xt=()=>({forceColors:window.matchMedia("(forced-colors: active)").matches,networkInformationType:navigator.connection?.type,prefersContrast:zt(),prefersReducedMotion:window.matchMedia("(prefers-reduced-motion: reduce)").matches,primaryInputHasHover:window.matchMedia("(hover: hover)").matches,keyboardUsage:!1}),Jt=e=>{const t=Xt(),n=()=>{e(t,"a11y")},r=i=>{["INPUT","TEXTAREA"].includes(i.target?.tagName)||!p.includes(i.key)||(t.keyboardUsage=!0,document.removeEventListener("keydown",r))};document.addEventListener("keydown",r);const a=()=>{document.visibilityState==="hidden"&&(n(),document.removeEventListener("keydown",r),document.removeEventListener(v,a))};document.addEventListener(v,a)};function et(e){const t=new RegExp(`(^| )${e}=([^;]+)`),n=document.cookie.match(t);return n?n[2]:""}function Zt(){return!!(window.PerformanceMeasure&&window.PerformanceMark)}function tt(){if(!Object.prototype.hasOwnProperty.call(window,"PerformanceObserver"))return!1;try{const e=new window.PerformanceObserver(()=>null);e.observe({entryTypes:["mark"]}),e.disconnect()}catch{return!1}return!0}function nt(){return typeof window.navigator?.sendBeacon=="function"&&!l.test(window.navigator.userAgent)}var ie=e=>{const t=Number(e);return Number.isNaN(t)?void 0:t};function en(e={}){return{context:e,analyticsId:et(g),marketingId:et(y),memberId:window.Static?.SQUARESPACE_CONTEXT?.authenticatedAccount?.id,version:D,downlink:ie(navigator.connection?.downlink),effectiveType:navigator.connection?.effectiveType,rtt:ie(navigator.connection?.rtt),saveData:Number(navigator.connection?.saveData||0),deliveryType:nt()?"beacon":"xhr",devicePixelRatio:window.devicePixelRatio,screenHeight:window.screen.height,screenWidth:window.screen.width,viewportHeight:window.innerHeight,viewportWidth:window.innerWidth,deviceMemory:ie(navigator.deviceMemory),hardwareConcurrency:ie(navigator.hardwareConcurrency),hash:window.location.hash||"",hostname:window.location.hostname||"",pathname:window.location.pathname||"/"}}var tn=async e=>{const t=en(e),n={};return Ze(r=>{Object.assign(n,r)}),await Promise.race([G(6e4),Q()]),{...t,...n}},nn=async(e,t)=>{const n=await tn(t);e(n,"page_speed")},rn=["media-www.sqspcdn.com","images.squarespace-cdn.com","static1.squarespace.com"],an=e=>rn.some(t=>e.includes(t)),on=e=>e.hasAttribute("data-loader")?2:e.hasAttribute("data-src")?1:0,cn=(e,t)=>{if(e.hasAttribute("data-image-resolution"))return Number(e.getAttribute("data-image-resolution")?.replace("w",""));const n=t.indexOf("format=");return n!==-1?Number(t.slice(n+7).replace(/w.*/,"")):NaN},sn=(e,t,n)=>{if(n===1&&e instanceof HTMLImageElement&&e.naturalHeight===0){const r=document.querySelector(`div[style*="${t}"]`);if(r)return r}return e},un=e=>{if(e instanceof HTMLImageElement){const{naturalHeight:a,naturalWidth:i,width:o,height:c}=e;return{naturalHeight:a,naturalWidth:i,width:o,height:c}}const t=e.getBoundingClientRect(),n=Math.floor(t.width);return{naturalHeight:Math.floor(t.height),naturalWidth:n}},dn=async(e,t)=>{const n=cn(t,e.name),r=on(t),a=t.getAttribute("data-loader"),i=t.getAttribute("elementtiming"),{serverTiming:o,workerTiming:c,...u}=e.toJSON();for(const[h,_]of Object.entries(u))typeof _=="number"&&(u[h]=Math.floor(_));const d=sn(t,e.name,r),m=un(d);return new Promise(h=>{const _=new IntersectionObserver(Ee=>{Ee.forEach(ce=>{if(ce.target===d)return _.disconnect(),h({visibleOnLoad:ce.isIntersecting,observationTime:Math.floor(ce.time),intersectionRatio:ce.intersectionRatio,squarespaceSize:n,imageType:r,imageLoaderType:a,elementTiming:i,serverTiming:o||[],...m,...u})})});_.observe(d)})},ln=async({resource:e,deliverMetrics:t})=>{if(!(e instanceof PerformanceResourceTiming&&e.initiatorType==="img")||!an(e.name))return;const n=e.name.replace(/\?.*/,""),r=Array.from(document.querySelectorAll(`img[src="${e.name}"], img[data-src*="${n}"], img[srcset*="${e.name}"]`));if(document.querySelectorAll(`picture > source[srcset*="${e.name}"]`).forEach(i=>{const o=i.parentElement;o!==null&&r.push(o.lastElementChild)}),r.length!==1)return;const a=await dn(e,r[0]);t(a,"image")},mn=async e=>{if(!tt())return;const t=r=>ln({resource:r,deliverMetrics:e});performance.getEntriesByType("resource").forEach(t),new PerformanceObserver(r=>{r.getEntries().forEach(t)}).observe({entryTypes:["resource"]})},x,he=({spanName:e,tracer:t,startTime:n,spanAttributes:r={}})=>{x===void 0&&(x=new Map);const a=t.startSpan(e,{startTime:n});a.setAttributes(r),x.set(e,a)},rt=({spanName:e,spanAttributes:t={},updateName:n})=>{if(x===void 0||!x.has(e))return;const r=x.get(e);r.setAttributes(t),n!==void 0&&r.updateName(n),r.end(),x.delete(e)},$="rum-",at=e=>{typeof window?.SQUARESPACE_SENTRY?.captureException=="function"?window.SQUARESPACE_SENTRY.captureException(e):console.warn(`@sqs/rum-collector: user timing exception: ${e}`)};function vn(e,t={}){try{if(!it())return;const n=$+e;window.performance.clearMarks(n);const r=window.performance.mark(n,{detail:t.detail,startTime:t.startTime});if(t.tracer!==void 0){const[a]=window.performance.getEntriesByName(n,"mark").slice(-1);he({spanName:n,tracer:t.tracer,startTime:a.startTime,spanAttributes:t.spanAttributes})}return r}catch(n){at(n)}}function fn(e,t={requireStart:!1}){try{if(!(it()&&pn()))return;const n=$+e,r={detail:t.detail,duration:t.duration};if(t.start===void 0?window.performance.getEntriesByName(n,"mark").length>0&&(r.start=n):typeof t.start=="string"?r.start=$+t.start:r.start=t.start,r.end=typeof t.end=="string"?$+t.end:t.end,t.requireStart&&typeof r.start!="string")return;if(t.tracer!==void 0){const i={measureName:n,...t.spanAttributes};typeof r.start=="number"?(he({spanName:n,tracer:t.tracer,startTime:r.start}),rt({spanName:n,spanAttributes:i})):(window.performance.getEntriesByName(r.start??n,"mark").length===0&&he({spanName:r.start??n,tracer:t.tracer,startTime:0}),rt({spanName:r.start??n,spanAttributes:i,updateName:r.start!==n?n:void 0}))}return hn(n,r),gn(n)}catch(n){at(n)}}function pn(){return"performance"in window&&"getEntries"in window.performance&&"getEntriesByType"in window.performance&&"getEntriesByName"in window.performance}function it(){return"mark"in window.performance&&"measure"in window.performance}function gn(e){const t=window.performance.getEntriesByName(e,"measure");return t[t.length-1]}function hn(e,t){try{window.performance.measure(e,t)}catch{const r=typeof t.start=="string"?t.start:e,a=typeof t.end=="string"?t.end:void 0;try{window.performance.measure(e,r,a)}catch(i){if(!(i instanceof DOMException))throw i;try{window.performance.measure(e,"navigationStart")}catch(o){if(!(o instanceof DOMException))throw o;window.performance.measure(e)}}}}function En(e){return typeof e=="string"&&e.substring(0,4)===$}var ot=new Set,wn=e=>{if(!Zt())return;const t=n=>{n.map(a=>a.entryType==="measure"?{duration:Math.floor(a.duration),detail:a.detail||null,startTime:Math.floor(a.startTime),name:a.name}:{}).forEach(a=>{if(a.name&&!En(a.name))return;const i=`${a.name}|${a.duration}`;ot.has(i)||(e(a,"user"),ot.add(i))})};t(window.performance.getEntriesByType("measure")),tt()?new window.PerformanceObserver(r=>t(r.getEntries())).observe({entryTypes:["measure"]}):document.addEventListener(v,()=>{document.visibilityState==="hidden"&&t(window.performance.getEntriesByType("measure"))})},ct,oe=[],yn=e=>{oe.push(e)};function _n(e,t){try{return navigator.sendBeacon(e,t)}catch(n){if(n instanceof TypeError&&n.message==="Illegal invocation")return!1;throw n}}function Tn(e,t){if(nt()&&_n(e,t))return;const n=new XMLHttpRequest;n.open("POST",e,!0),n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),n.send(t)}function st(e){if(oe.length){const t=JSON.stringify(oe);Tn(e,t),oe=[]}}function Sn(e){window.addEventListener(w,()=>{ct=window.setTimeout(()=>st(e),K)}),document.addEventListener(v,()=>{document.visibilityState==="hidden"&&(window.clearTimeout(ct),st(e))})}function bn(e){yn({raw:!0,...e})}var Cn=(e,t)=>(n,r)=>{const a={app:e,data:n,event:r,pageLoadId:t,ts:Date.now()};bn(a)},Ln=e=>(...t)=>{e&&e(...t)},An=e=>({appName:e.appName||"",context:e.context||{},enabled:typeof e.enabled=="boolean"?e.enabled:!0,serviceURL:e.serviceURL||j,captureException:Ln(e.captureException)});async function ut(e){const t=An(e);if(!t.enabled)return;const n=(await Promise.resolve().then(()=>(ee(),R))).nanoid();try{const r=Cn(t.appName,n);nn(r,t.context),wn(r),mn(r),Jt(r),Sn(t.serviceURL)}catch(r){t.captureException(r,{pageLoadId:n,parsedOptions:t})}}var Mn={action:"load",actor:"user",event_owner_team:"web_performance",event_source:"web",object_type:"website"},Nn=()=>{const e=/^qa\d+.sqsp.net/g,t=/^stage.sqsp.net/g,n=/(dev.squarespace.net|localhost|127.0.0.1|0.0.0.0)/g,r=window.location.hostname.substr(window.location.hostname.indexOf(".")+1);return t.test(r)||e.test(r)?"staging":n.test(r)?"dev":"prod"},On=(e,t=Nn())=>new e({customSchemaName:"Performance",sourceEnvironment:t},Mn),dt=Object.freeze({cumulativeLayoutShift:"cumulative_layout_shift",decodedBodySize:"decoded_body_size_bytes",domContentLoadedEventEnd:"dom_content_loaded_event_end_ms",domContentLoadedEventStart:"dom_content_loaded_event_start_ms",domainLookup:"domain_lookup_ms",encodedBodySize:"encoded_body_size_bytes",firstContentfulPaint:"first_contentful_paint_ms",firstInputDelay:"first_input_delay_ms",interactionToNextPaint:"interaction_to_next_paint_ms",largestContentfulPaint:"largest_contentful_paint_ms",loadEventEnd:"load_event_end_ms",loadEventStart:"load_event_start_ms",responseStart:"response_start_ms",tcpConnection:"tcp_connection_ms",tlsNegotiation:"tls_negotiation_ms"}),Rn=async e=>{const t={};Ze(n=>{Object.entries(n).forEach(([r,a])=>{Object.prototype.hasOwnProperty.call(dt,r)&&(t[dt[r]]=a)})}),await Promise.race([G(6e4),Q()]),e(t)};function In(...e){return console.warn("@sqs/rum-collector default export is deprecated. Use named export `init` instead."),ut(...e)}})},function(N){var T=function(C){return N(N.s=C)},E=T(307636)}]); //# sourceMappingURL=https://sourcemaps.squarespace.net/universal/scripts-compressed/sourcemaps/df8be3d0b825abf2/performance-2b1ff59adc4dedad-min.en-US.js.map