"use strict";(globalThis.webpackChunkextract_css=globalThis.webpackChunkextract_css||[]).push([["77378"],{44177:(function(f,g,i){async function p(){return await Promise.all([i.e("13370"),i.e("17823")]).then(i.bind(i,946517))}class S{queue=[];isEnabled=!0;enqueue(t){this.isEnabled&&this.queue.push(t)}dequeue(){return this.queue.shift()}hasItems(){return this.queue.length>0}clear(){for(;this.hasItems();)this.queue.pop()}disable(){this.isEnabled=!1}}function v(e){const{templateId:t,templateVersion:n}=e,r={};return t!==void 0&&(r.templateId=t),n!==void 0&&(r.version=n),r}const b="https://9fefc56cc6d4ad4ceaa4e5ab9b2d34c8@o109687.ingest.us.sentry.io/4509084831580160",y="ROUTE_TO",T=()=>window.Static?.SQUARESPACE_CONTEXT?.appDomain?.toLowerCase()==="squarespace.com";let c=null,d=null;const a=new S,R=()=>{const e=window.__SENTRY__,t=e?.version;return!!e?.[t]},I=e=>{const t=window.onerror,n=window.onunhandledrejection;for(;a.hasItems();){const r=a.dequeue();if(r.type==="method")r.invoke(e);else if(r.type==="error"){const{event:s}=r||{event:{}},{message:o,filename:m,lineno:q,colno:A,error:L}=s;t?.apply(window,[o,m,q,A,L])}else r.type==="unhandledrejection"&&n?.apply(window,[r.promise])}},P=e=>{let{originalException:t}=e;if(t instanceof Error){if(t.cause instanceof Error)return t.cause.message;if(typeof t.cause=="string")return t.cause}return null},l=e=>e.replace(/\?[^#]*/,"?queryStringRedacted").replace(/#.*/,"#fragmentRedacted"),x=e=>{if(typeof e.request?.url=="string"&&(e.request.url=l(e.request.url)),Array.isArray(e.breadcrumbs))for(const t of e.breadcrumbs){const n=t.data;n&&(typeof n.url=="string"&&(n.url=l(n.url)),typeof n.from=="string"&&(n.from=l(n.from)),typeof n.to=="string"&&(n.to=l(n.to)))}},h=async()=>(c||d||(d=(async()=>{try{const e=await p();c=e;const t=T(),n=[/^ResizeObserver loop/,/Loading CSS chunk.*failed/];e.init({dsn:b,sampleRate:.01,sendDefaultPii:!1,environment:t?"production":"development",transport:e.makeMultiplexedTransport(e.makeFetchTransport,r=>{let{getEvent:s}=r;const o=s();return Array.isArray(o?.extra?.[y])?o.extra[y]:[]}),allowUrls:[/^https:\/\/(assets|static1?)\.squarespace\.com\/.+$/,/^https:\/\/definitions\.sqspcdn\.com\/.+$/],ignoreErrors:n,beforeSend:(r,s)=>{if(!t)return null;const o=P(s);return o&&n.some(m=>m.test(o))?null:(x(r),r)}});try{const{context:r}=await i.e("45779").then(i.bind(i,448175));for(const[s,o]of Object.entries(v(r)))e.setTag(s,o)}catch{}console.log(t?"[Visitor Sentry] Initialized and sending events":"[Visitor Sentry] Initialized but will not send events (non-production environment)"),window.removeEventListener("error",w),window.removeEventListener("unhandledrejection",E),I(e)}catch(e){console.error("[Sentry Loader] Failed to load Sentry:",e),a.disable(),a.clear()}})()),d);function w(e){a.enqueue({type:"error",event:e}),h()}function E(e){a.enqueue({type:"unhandledrejection",promise:e}),h()}function u(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return function(){for(var n=arguments.length,r=new Array(n),s=0;s(o[e]?.(...r),"")}),t&&h()}}window.SQUARESPACE_VISITOR_SENTRY={captureException:u("captureException",!0),captureMessage:u("captureMessage",!0),captureEvent:u("captureEvent",!0),addBreadcrumb:u("addBreadcrumb"),withScope:u("withScope")},R()||(window.addEventListener("error",w),window.addEventListener("unhandledrejection",E))})},function(f){var g=function(p){return f(f.s=p)},i=g(44177)}]);
//# sourceMappingURL=https://sourcemaps.squarespace.net/universal/scripts-compressed/sourcemaps/e26e488fccc47bd5/visitor-site-error-reporter-fdfb276a20173335-min.en-US.js.map