!function(){var t=!1,o=780,n="netlify.js";function r(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function s(e){var t;e&&(t=e.style.getPropertyValue("display"),e.style.display=t&&"block"!==t?"block":"none")}function d(e,t){var n=window.innerWidth<o?"0":"calc(50% - ".concat(390,"px)"),a=window.innerWidth<o?"100vw":"".concat(o,"px");e.style.left=n,t.style.width=a}try{function l(e){t=e,document.body.style.overflow=e?"hidden":m||""}function y(e,t,n){n&&n.postMessage({type:e,payload:t},u)}function p(e){y("NAVIGATION",document.location.pathname,e||f.contentWindow)}var h=document.querySelector("body div[data-netlify-site-id]");if(!h)return console.warn("".concat(n,": container not found."));if(window!==window.top)return r(h),0;if(h.querySelector("iframe"))return console.warn("".concat(n,": frame has already mounted."));var e=h.dataset,a=e.netlifyDeployId,c=e.netlifySiteId,i=e.vcs;if(!a||!c)return console.warn("".concat(n,": required data attributes not found.")),r(h),0;h.style=["background:transparent","bottom:0","color-scheme:normal","margin:0","padding:0","position:fixed","z-index:2147483647"].join(";");var e=/\.netlifystg\.(app|com)$/.test(document.location.origin)?"netlifystg":"netlify",u="https://app.".concat(e,".com"),e="/".concat("cdp").concat("netlify"==e?"":"-stg"),f=document.createElement("iframe");f.allow="microphone; camera; clipboard-write; display-capture",f.src="".concat(u).concat(e,"/?deployID=").concat(a,"&siteID=").concat(c,"&vcs=").concat(i||""),f.title="Netlify Drawer",f.style=["background: transparent !important","border: 0px !important","display: block !important","height: ".concat(48,"px"),"min-height: initial","max-height: initial","transform: initial"].join(";"),(h||document.body).appendChild(f),d(h,f);var m=document.body.style.overflow;window.addEventListener("message",function(e){if(e.origin===u){var t=e.data,n=document.location,a=n.href,o=n.pathname,c=n.search,i=n.hash;switch(t.type){case"LOADED":p(e.source);break;case"TOGGLE_UI":s(h);break;case"GOTO":document.location.assign(t.payload);break;case"FULL_VIEWPORT":h.style.left="0px",f.style.height="100vh",f.style.width="100vw",l(!0);break;case"LOOM_VIEWPORT":f.style.height="220px",f.style.width="400px",l(!1);break;case"DOCK_VIEWPORT":h.style.left="0px",f.style.height="".concat(48,"px"),f.style.width="100vw",l(!1);break;case"MINI_VIEWPORT":h.style.left="calc(50% - 134px)",f.style.height="".concat(48,"px"),f.style.width="268px",l(!1);break;case"JAMDOCK_VIEWPORT":f.style.height="".concat(48,"px"),d(h,f),l(!1);break;case"LOCATION_HREF":y("LOCATION_HREF",a,e.source);break;case"LOCATION_ORIGIN":y("LOCATION_ORIGIN",document.location.origin,e.source);break;case"LOCATION_PATHNAME":y("LOCATION_PATHNAME",o+c+i,e.source);break;case"WINDOW_SIZE":y("WINDOW_SIZE",{width:window.innerWidth,height:window.innerHeight},e.source);break;case"TRANSLATE":h.style.transform="translate(".concat(t.payload.x,"px, ").concat(t.payload.y,"px)");break;case"SELF_DESTRUCT":r(h);break;case"REFRESH":window.location.reload()}}}),window.addEventListener("resize",function(){t||d(h,f)}),document.addEventListener("keydown",function(e){!e.metaKey&&!e.ctrlKey||e.shiftKey||e.altKey||"\\"!==e.key&&"Backslash"!==e.code||s(h)});var w=document.location.pathname;"function"==typeof MutationObserver?new MutationObserver(function(e){e.forEach(function(){w!==document.location.pathname&&(w=document.location.pathname,p())})}).observe(document.body,{childList:!0,subtree:!0}):(window.addEventListener("pushstate",p),window.addEventListener("popstate",p))}catch(e){console.error("".concat(n,": ").concat(e))}}();