1import{q as z,n as q,w as O,o as j,l as H,x as T,a9 as D,am as F,an as G,ao as J,ap as Q,aq as W,ar as X,as as Z,g as m,at as x,a4 as I,au as ii}from"./BkhBXVe6.mjs";import{n as si,q as ti,j as ri,u as ai,v as ei}from"./DqUSV-II.mjs";import{t as ui,c as fi,s as oi}from"./CN8n2BXd.mjs";function ci(i,s){if(s){const t=document.body;i.autofocus=!0,z(()=>{document.activeElement===t&&i.focus()})}}function li(i,s){var t=void 0,r;q(()=>{t!==(t=s())&&(r&&(O(r),r=null),t&&(r=j(()=>{H(()=>t(i))})))})}function L(i,s={},t,r){for(var u in t){var f=t[u];s[u]!==f&&(t[u]==null?i.style.removeProperty(u):i.style.setProperty(u,f,r))}}function ni(i,s,t,r){var u=i.__style;if(T||u!==s){var f=ui(s,r);(!T||f!==i.getAttribute("style"))&&(f==null?i.removeAttribute("style"):i.style.cssText=f),i.__style=s}else r&&(Array.isArray(r)?(L(i,t==null?void 0:t[0],r[0]),L(i,t==null?void 0:t[1],r[1],"important")):L(i,t,r));return r}function M(i,s,t=!1){if(i.multiple){if(s==null)return;if(!D(s))return F();for(var r of i.options)r.selected=s.includes(P(r));return}for(r of i.options){var u=P(r);if(G(u,s)){r.selected=!0;return}}(!t||s!==void 0)&&(i.selectedIndex=-1)}function _i(i){var s=new MutationObserver(()=>{M(i,i.__value)});s.observe(i,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),J(()=>{s.disconnect()})}function P(i){return"__value"in i?i.__value:i.value}const S=Symbol("class"),w=Symbol("style"),R=Symbol("is custom element"),U=Symbol("is html");function di(i,s){s?i.hasAttribute("selected")||i.setAttribute("selected",""):i.removeAttribute("selected")}function $(i,s,t,r){var u=V(i);T&&(u[s]=i.getAttribute(s),s==="src"||s==="srcset"||s==="href"&&i.nodeName==="LINK")||u[s]!==(u[s]=t)&&(s==="loading"&&(i[Q]=t),t==null?i.removeAttribute(s):typeof t!="string"&&Y(i).includes(s)?i[s]=t:i.setAttribute(s,t))}function vi(i,s,t,r,u=!1){var f=V(i),h=f[R],b=!f[U];let d=T&&h;d&&I(!1);var o=s||{},y=i.tagName==="OPTION";for(var p in s)p in t||(t[p]=null);t.class?t.class=fi(t.class):t[S]&&(t.class=null),t[w]&&(t.style??(t.style=null));var v=Y(i);for(const a in t){let e=t[a];if(y&&a==="value"&&e==null){i.value=i.__value="",o[a]=e;continue}if(a==="class"){var E=i.namespaceURI==="http://www.w3.org/1999/xhtml";oi(i,E,e,r,s==null?void 0:s[S],t[S]),o[a]=e,o[S]=t[S];continue}if(a==="style"){ni(i,e,s==null?void 0:s[w],t[w]),o[a]=e,o[w]=t[w];continue}var g=o[a];if(!(e===g&&!(e===void 0&&i.hasAttribute(a)))){o[a]=e;var l=a[0]+a[1];if(l!=="$$")if(l==="on"){const n={},A="$$"+a;let c=a.slice(2);var N=ei(c);if(si(c)&&(c=c.slice(0,-7),n.capture=!0),!N&&g){if(e!=null)continue;i.removeEventListener(c,o[A],n),o[A]=null}if(e!=null)if(N)i[`__${c}`]=e,ri([c]);else{let B=function(K){o[a].call(this,K)};o[A]=ti(c,i,B,n)}else N&&(i[`__${c}`]=void 0)}else if(a==="style")$(i,a,e);else if(a==="autofocus")ci(i,!!e);else if(!h&&(a==="__value"||a==="value"&&e!=null))i.value=i.__value=e;else if(a==="selected"&&y)di(i,e);else{var _=a;b||(_=ai(_));var C=_==="defaultValue"||_==="defaultChecked";if(e==null&&!h&&!C)if(f[a]=null,_==="value"||_==="checked"){let n=i;const A=s===void 0;if(_==="value"){let c=n.defaultValue;n.removeAttribute(_),n.defaultValue=c,n.value=n.__value=A?c:null}else{let c=n.defaultChecked;n.removeAttribute(_),n.defaultChecked=c,n.checked=A?c:!1}}else i.removeAttribute(a);else C||v.includes(_)&&(h||typeof e!="string")?i[_]=e:typeof e!="function"&&$(i,_,e)}}}return d&&I(!0),o}function Ai(i,s,t=[],r=[],u,f=!1){Z(t,r,h=>{var b=void 0,d={},o=i.nodeName==="SELECT",y=!1;if(q(()=>{var v=s(...h.map(m)),E=vi(i,b,v,u,f);y&&o&&"value"in v&&M(i,v.value);for(let l of Object.getOwnPropertySymbols(d))v[l]||O(d[l]);for(let l of Object.getOwnPropertySymbols(v)){var g=v[l];l.description===x&&(!b||g!==b[l])&&(d[l]&&O(d[l]),d[l]=j(()=>li(i,()=>g))),E[l]=g}b=E}),o){var p=i;H(()=>{M(p,b.value,!0),_i(p)})}y=!0})}function V(i){return i.__attributes??(i.__attributes={[R]:i.nodeName.includes("-"),[U]:i.namespaceURI===W})}var k=new Map;function Y(i){var s=k.get(i.nodeName);if(s)return s;k.set(i.nodeName,s=[]);for(var t,r=i,u=Element.prototype;u!==r;){t=ii(r);for(var f in t)t[f].set&&s.push(f);r=X(r)}return s}export{Ai as a,ni as b,$ as s};
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.