(()=>{const e=customElements.get("astro-island");if(e===void 0)throw new Error;const r=s=>{const t=["type","key","props"],a=Object.keys(s);return t.filter(i=>a.includes(i)).length===3};class n extends e{static observedAttributes=["props"];constructor(){super()}attributeChangedCallback(){this.setAttribute("ssr",""),Object.entries(this).filter(([t])=>t.startsWith("_")).filter(([,t])=>r(t)).forEach(([t])=>{delete this[t]}),super.attributeChangedCallback()}}customElements.define("canvas-island",n)})();
