import{w as c,as as h,at as p,au as _,av as A}from"./CYSP8FLW.js";const g=[...` 	
\r\f \v\uFEFF`];function N(r,i,s){var t=r==null?"":""+r;if(s){for(var n in s)if(s[n])t=t?t+" "+n:n;else if(t.length)for(var o=n.length,f=0;(f=t.indexOf(n,f))>=0;){var u=f+o;(f===0||g.includes(t[f-1]))&&(u===t.length||g.includes(t[u]))?t=(f===0?"":t.substring(0,f))+t.substring(u+1):f=u}}return t===""?null:t}function w(r,i){return r==null?null:String(r)}function E(r,i,s,t,n,o){var f=r.__className;if(c||f!==s||f===void 0){var u=N(s,t,o);(!c||u!==r.getAttribute("class"))&&(u==null?r.removeAttribute("class"):r.className=u),r.__className=s}else if(o&&n!==o)for(var a in o){var e=!!o[a];(n==null||e!==!!n[a])&&r.classList.toggle(a,e)}return o}const v=Symbol("is custom element"),S=Symbol("is html");function T(r,i,s,t){var n=d(r);c&&(n[i]=r.getAttribute(i),i==="src"||i==="srcset"||i==="href"&&r.nodeName==="LINK")||n[i]!==(n[i]=s)&&(i==="loading"&&(r[p]=s),s==null?r.removeAttribute(i):typeof s!="string"&&L(r).includes(i)?r[i]=s:r.setAttribute(i,s))}function d(r){return r.__attributes??={[v]:r.nodeName.includes("-"),[S]:r.namespaceURI===h}}var l=new Map;function L(r){var i=r.getAttribute("is")||r.nodeName,s=l.get(i);if(s)return s;l.set(i,s=[]);for(var t,n=r,o=Element.prototype;o!==n;){t=A(n);for(var f in t)t[f].set&&s.push(f);n=_(n)}return s}export{T as a,E as s,w as t};
