1"use strict";(()=>{function c(t,e){let n=e||{};n.url=window.location.href,window.parent.postMessage({type:t,payload:n},"*")}function ft(){let t=window.location.href;function e(){window.location.href!==t&&(t=window.location.href,c("NETLIFY_AR_NAVIGATE",{}))}["pushState","replaceState"].forEach(n=>{let o=window.history[n];window.history[n]=function(...i){let l=o.apply(this,i);return e(),l}}),window.addEventListener("popstate",e),window.addEventListener("hashchange",e)}var $="netlify-ar-annotate-root",N="#32e6e2";var tt="system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",gt="ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro', 'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace";var Et="#1e242c",I="#3b434c",et="#ffffff",nt="#abb5bf",ht="#12181f",bt="#32e6e2",xt="#0c2a2a",At="#ffada9",Tt="#3d1c1b",yt="0 16px 24px rgb(6 11 16 / 20%), 0 6px 30px rgb(6 11 16 / 30%), 0 8px 10px rgb(6 11 16 / 40%)";function Nt(t){return!!(t&&t.closest&&t.closest(`#${$}`))}function vt(t){if(!t||t===document.body||t===document.documentElement)return!0;let e=t.getBoundingClientRect();return e.width>=window.innerWidth*.9&&e.height>=window.innerHeight*.9}function D(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([^\w-])/g,"\\$1")}function P(t){let e=[],n=t;for(;n&&n.nodeType===1&&n!==document.documentElement;){let o=n.tagName.toLowerCase();if(n.id){o+=`#${D(n.id)}`,e.unshift(o);break}let r=n.parentElement;if(r){let i=0,l=0;for(let a=0;a<r.children.length;a+=1)r.children[a].tagName===n.tagName&&(l+=1,r.children[a]===n&&(i=l));l>1&&(o+=`:nth-of-type(${i})`)}e.unshift(o),n=r}return e.join(" > ")}function Rt(){return window.crypto&&window.crypto.randomUUID?window.crypto.randomUUID():`ann-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`}function T(t){return(t||"").trim().replace(/\s+/g," ")}function Lt(t){let e={},n=[];return t.forEach(o=>{e[o]||(e[o]=!0,n.push(o))}),n}function Wt(t,e){return t.left<e.right&&t.right>e.left&&t.top<e.bottom&&t.bottom>e.top}function ot(t,e){let n=t.getBoundingClientRect();return n.width>0&&n.height>0&&Wt(n,e)}function C(t){let e=Math.min(...t.map(i=>i.left)),n=Math.min(...t.map(i=>i.top)),o=Math.max(...t.map(i=>i.right)),r=Math.max(...t.map(i=>i.bottom));return{left:e,top:n,right:o,bottom:r,width:o-e,height:r-n}}function wt(t){return t<0?0:t>1?1:t}function St(t,e){return e?{fx:wt((e.x-t.left)/(t.width||1)),fy:wt((e.y-t.top)/(t.height||1))}:{fx:0,fy:0}}function Mt(t,e){let n=t;for(let o=0;o<e;o+=1){let r=n.parentElement;if(!r||r===document.documentElement)break;n=r}return n}function rt(t,e,n,o){let r=Math.min(t,n),i=Math.min(e,o),l=Math.max(t,n),a=Math.max(e,o);return{left:r,top:i,right:l,bottom:a,width:l-r,height:a-i}}function Qt(t){let e=[],n=t;for(;n&&n.nodeType===1&&n.tagName.toLowerCase()!=="html";){let o=n.tagName.toLowerCase(),r=1,i=0,l=n.parentElement;if(l)for(let a=0;a<l.children.length;a+=1)l.children[a].tagName===n.tagName&&(i+=1,l.children[a]===n&&(r=i));e.unshift(i>1?`${o}[${r}]`:o),n=l}return`/html/${e.join("/")}`}var Jt={h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",button:"button",a:"link",p:"paragraph",nav:"navigation",main:"main",header:"banner",footer:"contentinfo",section:"region",input:"textbox",select:"combobox",textarea:"textbox",ul:"list",ol:"list",li:"listitem",img:"img",table:"table",form:"form",article:"article",aside:"complementary"};function it(t){return t.getAttribute("role")||Jt[t.tagName.toLowerCase()]||"generic"}var Zt={heading:!0,button:!0,link:!0,paragraph:!0,textbox:!0,combobox:!0,listitem:!0,img:!0,article:!0};function It(t){return!!Zt[it(t)]}function te(t){let e=t.getAttribute("aria-label");if(e)return T(e).slice(0,120);let n=t.getAttribute("aria-labelledby");if(n){let o=n.split(/\s+/).map(r=>document.getElementById(r)).filter(r=>!!r).map(r=>T(r.textContent)).join(" ");if(o)return o.slice(0,120)}return t.tagName==="IMG"&&t.getAttribute("alt")?T(t.getAttribute("alt")).slice(0,120):T(t.textContent).slice(0,120)}function Ot(t){if(!t)return null;let e=T(t.textContent).slice(0,70);return`<${t.tagName.toLowerCase()}> "${e}${e.length>=70?"\u2026":""}"`}function ee(t){let e=[],n=t;for(;n&&n.tagName&&n.tagName.toLowerCase()!=="html";){let o=n.tagName.toLowerCase(),r=it(n);e.unshift(r!=="generic"?`${o} (${r})`:o),n=n.parentElement}return e}function ne(t){let e=[];t.id&&e.push(`#${D(t.id)}`),["data-testid","data-test","data-qa","name","aria-label"].forEach(r=>{let i=t.getAttribute(r);i&&e.push(`[${r}="${i.replace(/"/g,'\\"')}"]`)});let n=t.tagName.toLowerCase(),o=Array.from(t.classList);if(o.length&&(e.push(`${n}.${o.map(D).join(".")}`),e.push(`.${D(o[0])}`)),t.parentElement){let i=Array.from(t.parentElement.children).filter(l=>l.tagName===t.tagName).indexOf(t)+1;e.push(`${t.parentElement.tagName.toLowerCase()} > ${n}:nth-of-type(${i})`)}return e.push(n),Lt(e)}function oe(t,e){return e.map(n=>{let o=[];try{o=Array.from(document.querySelectorAll(n))}catch(r){o=[]}return{selector:n,matches:o.length,targetIndex:o.indexOf(t)}}).filter(n=>n.matches>0).sort((n,o)=>{let r=n.targetIndex>=0?0:1,i=o.targetIndex>=0?0:1;return r!==i?r-i:n.matches-o.matches}).slice(0,5)}function B(t,e){let n=t.getBoundingClientRect(),o={x:Math.round(n.x+window.scrollX),y:Math.round(n.y+window.scrollY),width:Math.round(n.width),height:Math.round(n.height)},r=e?{x:Math.round(e.x),y:Math.round(e.y)}:{x:Math.round(o.x+o.width/2),y:Math.round(o.y+o.height/2)};return{xpath:Qt(t),cssCandidates:oe(t,ne(t)),tag:t.tagName.toLowerCase(),role:it(t),visibleText:T(t.textContent).slice(0,200),accessibleName:te(t),ancestry:ee(t),prevSibling:Ot(t.previousElementSibling),nextSibling:Ot(t.nextElementSibling),bbox:o,clickPoint:r}}function Dt(t,e){if(Nt(t))return[];if(It(t))return[t];let n=Array.from(t.children).filter(o=>ot(o,e));return n.length?n.reduce((o,r)=>o.concat(Dt(r,e)),[]):[t]}function lt(t){return!document.body||!ot(document.body,t)?[]:Dt(document.body,t).filter(e=>e!==document.body&&e!==document.documentElement)}function Ct(t){let e=[];return t.forEach((n,o)=>{let{parentElement:r}=n;if(!r)return;let i=e.find(l=>l.parent===r);i||(i={parent:r,indices:[]},e.push(i)),i.indices.push(o)}),e.filter(n=>n.indices.length>1).map(n=>({containerSelector:P(n.parent),containerContext:B(n.parent,null),itemIndices:n.indices}
1))}var Ft="0 0 0 1px rgba(0, 0, 0, 0.18)",Ht="rgba(50, 230, 226, 0.15)",f=!1,m=null,x=null,h=0,_=!1,X=null,U=0,d={},u=null,G=null,y=null,b=null,g=null,V=null,k=[],v=[],s=null,at=null,dt=!1,q=!1,R=null,F=null,z=null,L=null,st=null;function H(){if(G)return G;if(!document.body)return null;u=document.createElement("div"),u.id=$,Object.assign(u.style,{position:"fixed",inset:"0",zIndex:"2147483647",pointerEvents:"none"});let t=document.createElement("div");return typeof u.attachShadow=="function"?u.attachShadow({mode:"open"}).appendChild(t):u.appendChild(t),G=t,document.body.appendChild(u),G}function ce(){if(y)return y;let t=H();return t?(y=document.createElement("div"),Object.assign(y.style,{position:"fixed",border:`2px solid ${N}`,background:Ht,boxShadow:Ft,borderRadius:"3px",boxSizing:"border-box",pointerEvents:"none",opacity:"0"}),t.appendChild(y),y):null}function Y(t){if(!ce())return;let e=y;if(!t){e.style.opacity="0";return}let n=t.getBoundingClientRect();e.style.opacity="1",e.style.left=`${n.left}px`,e.style.top=`${n.top}px`,e.style.width=`${n.width}px`,e.style.height=`${n.height}px`}function ue(){if(b)return b;let t=H();return t?(b=document.createElement("div"),Object.assign(b.style,{position:"fixed",border:`1.5px dashed ${N}`,background:"rgba(50, 230, 226, 0.1)",boxSizing:"border-box",pointerEvents:"none",opacity:"0"}),t.appendChild(b),b):null}function de(t){if(!ue())return;let e=b;e.style.opacity="1",e.style.left=`${t.left}px`,e.style.top=`${t.top}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`}function Yt(){b&&(b.style.opacity="0")}function pe(t){if(v[t])return v[t];let e=H();if(!e)return null;let n=document.createElement("div");return Object.assign(n.style,{position:"fixed",border:`2px solid ${N}`,background:Ht,boxShadow:Ft,borderRadius:"2px",boxSizing:"border-box",pointerEvents:"none",display:"none"}),e.appendChild(n),v[t]=n,n}function $t(){if(!(!k.length&&!v.length)){k.forEach((t,e)=>{let n=pe(e);if(!n)return;let o=t.getBoundingClientRect();n.style.display="block",n.style.left=`${o.left}px`,n.style.top=`${o.top}px`,n.style.width=`${o.width}px`,n.style.height=`${o.height}px`});for(let t=k.length;t<v.length;t+=1)v[t].style.display="none"}}function A(t){k=t,$t()}function ct(t,e,n){return{background:t,color:e,border:n||"0",borderRadius:"6px",padding:"6px 12px",font:`600 12px/1 ${tt}`,cursor:"pointer"}}function Pt(t){let e=document.createElement("div");if(Object.assign(e.style,{position:"fixed",background:Et,color:et,border:`1px solid ${I}`,borderRadius:"8px",padding:"12px",boxShadow:yt,font:`14px/1.5 ${tt}`,boxSizing:"border-box",width:"260px",maxWidth:"calc(100vw - 16px)",maxHeight:"calc(100vh - 16px)",overflowY:"auto",pointerEvents:"auto"}),t.subtitle){let l=document.createElement("div");l.textContent=t.subtitle,Object.assign(l.style,{font:`600 12px/1 ${gt}`,color:nt,marginBottom:"6px"}),e.appendChild(l)}let n=document.createElement("textarea");n.value=t.text||"",n.placeholder="Leave a note\u2026",n.rows=3,Object.assign(n.style,{display:"block",width:"100%",resize:"vertical",boxSizing:"border-box",background:ht,color:et,border:`1px solid ${I}`,borderRadius:"6px",padding:"6px 8px",font:"inherit",marginBottom:"8px",outline:"none"}),n.addEventListener("focus",()=>{n.style.borderColor=N,n.style.boxShadow="0 0 0 3px rgba(50, 230, 226, 0.25)"}),n.addEventListener("blur",()=>{n.style.borderColor=I,n.style.boxShadow="none"});let o=document.createElement("div");if(Object.assign(o.style,{display:"flex",gap:"6px",justifyContent:"flex-end"}),t.onDelete){let l=document.createElement("button");l.type="button",l.textContent="Delete",Object.assign(l.style,ct("transparent",At,`1px solid ${Tt}`)),l.style.marginRight="auto",l.addEventListener("click",t.onDelete),o.appendChild(l)}let r=document.createElement("button");r.type="button",r.textContent="Cancel",Object.assign(r.style,ct("transparent",nt,`1px solid ${I}`)),r.addEventListener("click",t.onCancel);let i=document.createElement("button");return i.type="button",i.textContent=t.saveLabel||"Save",Object.assign(i.style,ct(bt,xt)),i.addEventListener("click",()=>t.onSave(n.value.trim())),o.appendChild(r),o.appendChild(i),e.appendChild(n),e.appendChild(o),e.addEventListener("keydown",l=>{l.key==="Escape"?(l.stopPropagation(),t.onCancel()):l.key==="Enter"&&(l.metaKey||l.ctrlKey)&&t.onSave(n.value.trim())}),{el:e,textarea:n}}function Bt(t,e){let o=window.innerWidth,r=window.innerHeight,{offsetWidth:i,offsetHeight:l}=e,a=t.bottom+8;if(a+l>r-8){let O=t.top-8-l;a=O>=8?O:Math.max(8,r-8-l)}
1let{left:p}=t;return p+i>o-8&&(p=o-8-i),p=Math.max(8,p),{left:p,top:Math.max(8,a)}}function Ut(t,e){t.style.left="-9999px",t.style.top="-9999px",t.style.visibility="hidden",H().appendChild(t);let n=Bt(e(),t);t.style.left=`${n.left}px`,t.style.top=`${n.top}px`,t.style.visibility="visible",g=t,V=e}function me(){if(!g||!V)return;let t=Bt(V(),g);g.style.left=`${t.left}px`,g.style.top=`${t.top}px`}function K(){X&&(clearTimeout(X),X=null)}function j(t){K(),t!==m&&(m=t,Y(t))}function E(){K(),_=!1,g&&g.parentNode&&g.parentNode.removeChild(g),g=null,V=null,A([]),Y(f?m:null)}function W(t){let e=d[t];if(!e)return[];let n=[];for(let o=0;o<e.items.length;o+=1){let r=e.items[o],i=null;if(r.el&&document.body&&document.body.contains(r.el))i=r.el;else if(r.selector){try{i=document.querySelector(r.selector)}catch(l){i=null}i&&(r.el=i)}i&&n.push(i)}return n}function pt(t){if(!t){A([]);return}A(W(t))}function J(t){let e=d[t];e&&(e.markerEl&&e.markerEl.parentNode&&e.markerEl.parentNode.removeChild(e.markerEl),k.some(n=>e.items.some(o=>o.el===n))&&A([]),delete d[t])}function fe(t){let e=d[t];if(!e)return;E(),_=!0;let n=W(t);A(n);let o=Pt({text:e.text,subtitle:e.items.length>1?`${e.items.length} items`:null,saveLabel:"Save",onCancel:E,onDelete:()=>{J(t),c("NETLIFY_AR_ANNOTATE_REMOVE",{id:t}),E(),S()},onSave:r=>{e.text=r,e.markerEl&&(e.markerEl.title=r||"(empty note)"),c("NETLIFY_AR_ANNOTATE_UPDATE",{id:t,text:r}),E()}});Ut(o.el,()=>{let r=W(t);return r.length?C(r.map(i=>i.getBoundingClientRect())):e.markerEl.getBoundingClientRect()}),o.textarea.focus()}function Z(t){let e=d[t];if(!e)return;let n=H();if(!n)return;if(!e.markerEl){e.label?U=Math.max(U,Number(e.label)||0):(U+=1,e.label=String(U));let a=document.createElement("div");a.title=e.text||"(empty note)",Object.assign(a.style,{position:"fixed",minWidth:"18px",height:"18px",padding:"0 4px",borderRadius:"9px",background:N,color:"#0c2a2a",font:"700 10px/18px ui-monospace, monospace",textAlign:"center",cursor:"pointer",pointerEvents:"auto",boxShadow:"0 0 0 2px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.35)",transform:"translate(-50%, -50%)"}),a.textContent=e.label,a.addEventListener("mouseenter",()=>{pt(t),c("NETLIFY_AR_ANNOTATE_HOVER",{id:t})}),a.addEventListener("mouseleave",()=>{pt(null),c("NETLIFY_AR_ANNOTATE_HOVER",{id:null})}),a.addEventListener("click",p=>{p.stopPropagation(),fe(t)}),n.appendChild(a),e.markerEl=a}let o=W(t),r=e.markerEl;if(!o.length){r.style.display="none";return}let i=C(o.map(a=>a.getBoundingClientRect())),l=e.markerAnchor||{fx:0,fy:0};r.style.display="block",r.style.left=`${i.left+l.fx*i.width}px`,r.style.top=`${i.top+l.fy*i.height}px`}function Gt(t,e){E(),_=!0,A(t);let n=C(t.map(a=>a.getBoundingClientRect())),o=t.map(a=>({selector:P(a),context:B(a,t.length===1&&e?e.page:null),el:a})),r=Ct(t),i=St(n,e?e.client:null),l=Pt({subtitle:t.length>1?`${t.length} items selected`:null,saveLabel:t.length>1?"Add note to all":"Add note",onCancel:E,onSave:a=>{if(!a){E();return}let p=Rt();d[p]={id:p,text:a,items:o,groups:r,markerAnchor:i,markerEl:null,label:null},Z(p),c("NETLIFY_AR_ANNOTATE_CREATE",{id:p,text:a,items:o.map(O=>({selector:O.selector,context:O.context})),groups:r,markerAnchor:i,label:d[p].label}),E(),S()}});Ut(l.el,()=>C(t.map(a=>a.getBoundingClientRect()))),l.textarea.focus()}function Q(t){f!==t&&(f=t,document.documentElement.style.cursor=t?"crosshair":"",t||(m=null,x=null,h=0,Y(null),E(),s=null,Yt()),S(),c("NETLIFY_AR_ANNOTATE_MODE",{enabled:t}))}function jt(t){if(!t||!t.id||!Array.isArray(t.items)||!t.items.length)return null;let e=t.items.filter(n=>!!(n&&n.selector)).map(n=>({selector:n.selector,el:null,context:n.context||null}));return e.length?{id:t.id,text:t.text||"",items:e,groups:t.groups||[],markerAnchor:t.markerAnchor||null,markerEl:null,label:t.label!=null?String(t.label):null}:null}function ge(t){let e=t||[];Object.keys(d).forEach(n=>J(n)),e.forEach(n=>{let o=jt(n);o&&(d[o.id]=o)}),Object.keys(d).forEach(n=>Z(n)),S()}function Ee(t){let e=t||[],n=[];e.forEach(o=>{let r=jt(o);r&&(d[r.id]&&J(r.id),d[r.id]=r,n.push(r.id))}),n.forEach(o=>Z(o)),S(),c("NETLIFY_AR_ANNOTATE_BULK_LOAD",{count:n.length,ids:n})}function he(t){if(!t||!t.id)return;let e=d[t.id];e&&(e.text=t.text||"",e.markerEl&&(e.markerEl.title=e.text||"(empty note)"))}function be(t){!t||!t.id||(J(t.id),S())}
1function xe(){f&&m&&Y(m),$t(),me(),Object.keys(d).forEach(t=>Z(t))}function w(){st==null&&(st=window.requestAnimationFrame(()=>{st=null,xe()}))}function Ae(t){if(!u)return!1;if(t.target===u||u.contains(t.target))return!0;let e=n=>n.length>0&&Array.from(n).every(o=>o===u||u!==null&&u.contains(o));return e(t.addedNodes)||e(t.removedNodes)}function Te(t){t.some(e=>!Ae(e))&&L==null&&(L=window.setTimeout(()=>{L=null,w()},250))}function ye(){q||(q=!0,window.addEventListener("scroll",w,!0),window.addEventListener("resize",w),typeof ResizeObserver!="undefined"&&(R=new ResizeObserver(()=>w()),R.observe(document.documentElement),document.body&&R.observe(document.body)),typeof MutationObserver!="undefined"&&(F=new MutationObserver(Te),F.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,characterData:!0})),z=window.setInterval(w,1e3))}function _e(){q&&(q=!1,window.removeEventListener("scroll",w,!0),window.removeEventListener("resize",w),R&&(R.disconnect(),R=null),F&&(F.disconnect(),F=null),z!=null&&(clearInterval(z),z=null),L!=null&&(clearTimeout(L),L=null))}function S(){f||Object.keys(d).length>0?ye():_e()}function we(){at||(at=window.requestAnimationFrame(()=>{if(at=null,!s||!s.moved)return;let t=rt(s.startX,s.startY,s.currentX,s.currentY);de(t),A(lt(t))}))}function Ne(t,e){if(!s)return;let n=rt(s.startX,s.startY,t,e);Yt();let o=lt(n);if(dt=!0,!o.length){A([]);return}let r={page:{x:t+window.scrollX,y:e+window.scrollY},client:{x:t,y:e}};Gt(o,r)}function ut(t){let e=typeof t.composedPath=="function"?t.composedPath():[];return u!=null&&e.indexOf(u)!==-1}function ve(t){let n=(typeof t.composedPath=="function"?t.composedPath():[])[0];return n instanceof Element?n:t.target instanceof Element?t.target:null}function Xt(){document.addEventListener("mousedown",t=>{!f||_||t.isTrusted&&(ut(t)||t.button===0&&(t.preventDefault(),t.stopPropagation(),s={startX:t.clientX,startY:t.clientY,currentX:t.clientX,currentY:t.clientY,moved:!1}))},!0),document.addEventListener("mousemove",t=>{if(!(!f||!s)){if(s.currentX=t.clientX,s.currentY=t.clientY,!s.moved){let e=s.currentX-s.startX,n=s.currentY-s.startY;if(Math.hypot(e,n)<6)return;s.moved=!0,K(),m=null,x=null,h=0,Y(null)}we()}},!0),document.addEventListener("mouseup",t=>{!f||!s||(s.moved&&Ne(t.clientX,t.clientY),s=null)},!0),document.addEventListener("mouseover",t=>{if(!f||_||s&&s.moved)return;if(ut(t)){j(null),x=null,h=0;return}let e=ve(t);if(!e)return;let n=vt(e)?null:e;if(n===x)return;if(m&&n&&n!==m&&n.contains(m)){K(),X=window.setTimeout(()=>{x=n,h=0,j(n)},60);return}x=n,h=0,j(n)},!0),document.addEventListener("click",t=>{if(f&&t.isTrusted&&!ut(t)){if(t.preventDefault(),t.stopPropagation(),dt){dt=!1;return}_||!m||Gt([m],{page:{x:t.pageX,y:t.pageY},client:{x:t.clientX,y:t.clientY}})}},!0),document.addEventListener("keydown",t=>{if(f){if(g){t.key==="Escape"&&E();return}if(t.key==="Escape"){Q(!1);return}(t.key==="ArrowUp"||t.key==="ArrowDown")&&x&&!_&&(t.preventDefault(),h=t.key==="ArrowUp"?h+1:Math.max(0,h-1),j(Mt(x,h)))}}),window.addEventListener("message",t=>{if(t.source!==window.parent)return;let e=t.data;if(!e||typeof e.type!="string")return;let{payload:n}=e;switch(e.type){case"NETLIFY_AR_ANNOTATE_MODE":Q(!!(n&&n.enabled));break;case"NETLIFY_AR_ANNOTATE_SET":ge(n&&n.annotations);break;case"NETLIFY_AR_ANNOTATE_BULK_LOAD":Ee(n&&n.annotations);break;case"NETLIFY_AR_ANNOTATE_UPDATE":he(n);break;case"NETLIFY_AR_ANNOTATE_REMOVE":be(n);break;case"NETLIFY_AR_ANNOTATE_HOVER":pt(n&&n.id);break;default:break}})}var Re="netlify-design.js",qt=/\/\.netlify\/scripts\//,Le="netlify-ar-bridge-design.js",zt={staging:"https://netlify-scripts.netlifystg.app",production:"https://netlify-scripts.netlify.app"};function Se(t){let e="";try{e=new URL(t).hostname}catch(n){e=""}return/\.netlifystg\.(app|com)$/.test(e)?zt.staging:zt.production}function Me(t){let e=t instanceof Error?t.message:String(t);c("NETLIFY_AR_DESIGN_ERROR",{message:e}),c("NETLIFY_AR_DESIGN_MODE",{enabled:!1,loaded:!1})}var mt=null;function Oe(t){return qt.test(t)?`${Se(t)}/${Le}`:new URL(Re,t).href}function Ie(){if(mt)return mt;let t=document.querySelectorAll("script[src]");for(let e=0;e<t.length;e++){let n=t[e].src;if(/\/netlify(\.min)?\.js(\?|#|$)/.test(n)||qt.test(n))return n}return null}var M=null,Vt=!1;function De(){return window.__netlifyARDesign?Promise.resolve(window.__netlifyARDesign):M||(M=new Promise((t,e)=>{let n=Ie();if(!n){e(new Error("Cannot locate the bridge script to resolve the module against."));return}c("NETLIFY_AR_DESIGN_LOADING",{});let o=document.createElement("script");o.src=Oe(n),o.async=!0,o.onload=()=>{let r=window.__netlifyARDesign;r?t(r):e(new Error("The module loaded but installed nothing."))},o.onerror=()=>
1e(new Error("The module failed to load.")),document.head.appendChild(o)}),M.catch(()=>{M=null}),M)}function Kt(t={}){let e=document.currentScript;mt=e&&e.src||null,window.addEventListener("message",n=>{if(n.source!==window.parent)return;let o=n.data;if(!o||typeof o.type!="string")return;let{payload:r}=o;switch(o.type){case"NETLIFY_AR_DESIGN_MODE":Ce(!!(r&&r.enabled),t);break;case"NETLIFY_AR_DESIGN_REVERT":window.__netlifyARDesign&&window.__netlifyARDesign.revert();break;case"NETLIFY_AR_DESIGN_SEND":window.__netlifyARDesign&&window.__netlifyARDesign.send();break;default:break}})}function Ce(t,e){if(Vt=t,!t){window.__netlifyARDesign?window.__netlifyARDesign.setMode(!1):c("NETLIFY_AR_DESIGN_MODE",{enabled:!1,loaded:!1});return}e.onActivate&&e.onActivate(),De().then(n=>{Vt&&n.setMode(!0)},Me)}window.NetlifyARBridge=window.NetlifyARBridge||{version:"0.4.0"};window.top!==window.self&&(ft(),Xt(),Kt({onActivate:()=>Q(!1)}),c("NETLIFY_AR_LOAD",{}));})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.