import{h as i,N as n,q as u,a as h,L as v,g,b as l}from"./Cyxoc8XS.js";const A=Symbol("is custom element"),k=Symbol("is html");function m(r){if(i){var e=!1,s=()=>{if(!e){if(e=!0,r.hasAttribute("value")){var a=r.value;c(r,"value",null),r.value=a}if(r.hasAttribute("checked")){var t=r.checked;c(r,"checked",null),r.checked=t}}};r.__on_r=s,u(s),h()}}function y(r,e){var s=f(r);s.checked!==(s.checked=e??void 0)&&(r.checked=e)}function c(r,e,s,a){var t=f(r);i&&(t[e]=r.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&r.nodeName==="LINK")||t[e]!==(t[e]=s)&&(e==="loading"&&(r[v]=s),s==null?r.removeAttribute(e):typeof s!="string"&&p(r).includes(e)?r[e]=s:r.setAttribute(e,s))}function f(r){return r.__attributes??={[A]:r.nodeName.includes("-"),[k]:r.namespaceURI===n}}var _=new Map;function p(r){var e=r.getAttribute("is")||r.nodeName,s=_.get(e);if(s)return s;_.set(e,s=[]);for(var a,t=r,d=Element.prototype;d!==t;){a=l(t);for(var o in a)a[o].set&&s.push(o);t=g(t)}return s}export{y as a,m as r,c as s};
