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