@ctrl/dom 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/aria/_chunks/{roles-list--7uYUGyR.cjs → roles-list-C57tqF4n.cjs} +2 -2
  2. package/dist/aria/_chunks/roles-list-DEwbBc_c.js +4 -0
  3. package/dist/aria/index.cjs +1 -1
  4. package/dist/aria/index.js +1 -1
  5. package/dist/aria/internal.cjs +1 -1
  6. package/dist/aria/internal.js +1 -1
  7. package/dist/aria/types/forms.d.ts +6 -13
  8. package/dist/bridge/internal.js +1 -1
  9. package/dist/dom/_chunks/{src-BacPsCQO.js → src-C4oa-U7z.js} +14 -14
  10. package/dist/dom/index.js +1 -1
  11. package/dist/dom/internal.js +1 -1
  12. package/dist/dom/types/collections/HTMLCollection.d.ts +2 -5
  13. package/dist/dom/types/events/Event.d.ts +16 -3
  14. package/dist/dom/types/events/EventTarget.d.ts +3 -3
  15. package/dist/dom/types/events/UIEvents.d.ts +10 -1
  16. package/dist/dom/types/events/activation.d.ts +2 -0
  17. package/dist/dom/types/events/dispatch.d.ts +1 -6
  18. package/dist/dom/types/events/listeners.d.ts +36 -18
  19. package/dist/dom/types/html/forms/HTMLInputElement.d.ts +0 -3
  20. package/dist/dom/types/html/forms/HTMLSelectElement.d.ts +0 -4
  21. package/dist/dom/types/html/forms/HTMLTextAreaElement.d.ts +0 -4
  22. package/dist/dom/types/html/forms/form-associated.d.ts +17 -9
  23. package/dist/dom/types/html/forms/user-validity.d.ts +5 -6
  24. package/dist/dom/types/html/reflect.d.ts +1 -0
  25. package/dist/dom/types/internal.d.ts +1 -1
  26. package/dist/dom/types/keys.d.ts +1 -1
  27. package/dist/dom/types/nodes/Element.d.ts +1 -7
  28. package/dist/dom/types/nodes/Node.d.ts +4 -1
  29. package/dist/dom/types/nodes/attributes.d.ts +23 -1
  30. package/dist/dom/types/nodes/tree.d.ts +3 -3
  31. package/package.json +1 -1
  32. package/dist/aria/_chunks/roles-list-b_Z0ZWwY.js +0 -4
package/dist/dom/index.js CHANGED
@@ -1 +1 @@
1
- export{Cr as AbstractRange,hs as AnimationEvent,Wa as Attr,Zt as Audio,gs as BeforeUnloadEvent,$a as CDATASection,t as CSS,di as CSSConditionRule,fi as CSSContainerRule,pi as CSSFontFaceRule,mi as CSSGroupingRule,hi as CSSImportRule,gi as CSSKeyframeRule,_i as CSSKeyframesRule,vi as CSSLayerBlockRule,yi as CSSLayerStatementRule,bi as CSSMediaRule,xi as CSSNamespaceRule,Si as CSSNestedDeclarations,Ci as CSSPageRule,wi as CSSPropertyRule,Ti as CSSRule,Ei as CSSRuleList,Di as CSSScopeRule,Oi as CSSStartingStyleRule,Yi as CSSStyleDeclaration,ki as CSSStyleRule,Ai as CSSStyleSheet,ji as CSSSupportsRule,eo as CharacterData,cr as Clipboard,js as ClipboardEvent,lr as ClipboardItem,_s as CloseEvent,Or as CommandEvent,to as Comment,Ms as CompositionEvent,ba as CustomElementRegistry,vs as CustomEvent,Yn as CustomStateSet,hr as DOMImplementation,ja as DOMMatrix,Ma as DOMMatrixReadOnly,pr as DOMParser,Na as DOMPoint,Pa as DOMPointReadOnly,Fa as DOMRect,Ia as DOMRectList,La as DOMRectReadOnly,Ga as DOMStringMap,Ka as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,gr as Document,gr as HTMLDocument,Qa as DocumentFragment,Za as DocumentType,Ns as DragEvent,Ea as Element,Xn as ElementInternals,ys as ErrorEvent,qs as Event,rs as EventTarget,et as FileList,A as FileReader,Ps as FocusEvent,F as FormData,bs as FormDataEvent,rn as HTMLAnchorElement,in as HTMLAreaElement,Qt as HTMLAudioElement,an as HTMLBRElement,on as HTMLBaseElement,sn as HTMLBodyElement,G as HTMLButtonElement,cn as HTMLCanvasElement,io as HTMLCollection,ln as HTMLDListElement,un as HTMLDataElement,R as HTMLDataListElement,Yt as HTMLDetailsElement,Xt as HTMLDialogElement,dn as HTMLDirectoryElement,fn as HTMLDivElement,Zn as HTMLElement,pn as HTMLEmbedElement,H as HTMLFieldSetElement,mn as HTMLFontElement,ta as HTMLFormControlsCollection,L as HTMLFormElement,hn as HTMLFrameElement,gn as HTMLFrameSetElement,_n as HTMLHRElement,vn as HTMLHeadElement,yn as HTMLHeadingElement,bn as HTMLHtmlElement,xn as HTMLIFrameElement,Sn as HTMLImageElement,Q as HTMLInputElement,Cn as HTMLLIElement,W as HTMLLabelElement,U as HTMLLegendElement,Ut as HTMLLinkElement,wn as HTMLMapElement,Tn as HTMLMarqueeElement,$t as HTMLMediaElement,En as HTMLMenuElement,Dn as HTMLMetaElement,z as HTMLMeterElement,On as HTMLModElement,kn as HTMLOListElement,An as HTMLObjectElement,K as HTMLOptGroupElement,q as HTMLOptionElement,na as HTMLOptionsCollection,B as HTMLOutputElement,jn as HTMLParagraphElement,Mn as HTMLParamElement,Nn as HTMLPictureElement,Pn as HTMLPreElement,V as HTMLProgressElement,Fn as HTMLQuoteElement,Wt as HTMLScriptElement,X as HTMLSelectElement,qt as HTMLSlotElement,In as HTMLSourceElement,Ln as HTMLSpanElement,Gt as HTMLStyleElement,Rn as HTMLTableCaptionElement,zn as HTMLTableCellElement,Bn as HTMLTableColElement,Vn as HTMLTableElement,Hn as HTMLTableRowElement,Un as HTMLTableSectionElement,Jt as HTMLTemplateElement,Z as HTMLTextAreaElement,Wn as HTMLTimeElement,Kt as HTMLTitleElement,Gn as HTMLTrackElement,Kn as HTMLUListElement,qn as HTMLUnknownElement,en as HTMLVideoElement,xs as HashChangeEvent,dr as History,Jn as Image,Fs as InputEvent,O as IntersectionObserver,Is as KeyboardEvent,fr as Location,nt as MathMLElement,tn as MediaError,Mi as MediaList,oi as MediaQueryList,li as MediaQueryListEvent,Ss as MessageEvent,Ls as MouseEvent,w as MutationObserver,Io as MutationRecord,Ha as NamedNodeMap,ur as Navigator,do as Node,br as NodeFilter,xr as NodeIterator,Lo as NodeList,J as Option,Cs as PageTransitionEvent,Rs as PointerEvent,ws as PopStateEvent,no as ProcessingInstruction,Ts as ProgressEvent,Es as PromiseRejectionEvent,ra as RadioNodeList,wr as Range,k as ResizeObserver,rt as SVGAElement,it as SVGAnimatedString,at as SVGCircleElement,ot as SVGClipPathElement,st as SVGDefsElement,ct as SVGDescElement,lt as SVGElement,ut as SVGEllipseElement,dt as SVGFilterElement,ft as SVGForeignObjectElement,pt as SVGGElement,mt as SVGGeometryElement,ht as SVGGradientElement,gt as SVGGraphicsElement,_t as SVGImageElement,vt as SVGLineElement,yt as SVGLinearGradientElement,bt as SVGMarkerElement,xt as SVGMaskElement,St as SVGMetadataElement,Ct as SVGPathElement,wt as SVGPatternElement,Tt as SVGPolygonElement,Et as SVGPolylineElement,Dt as SVGRadialGradientElement,Ot as SVGRectElement,kt as SVGSVGElement,At as SVGScriptElement,jt as SVGStopElement,Mt as SVGStyleElement,Nt as SVGSwitchElement,Pt as SVGSymbolElement,Ft as SVGTSpanElement,It as SVGTextContentElement,Lt as SVGTextElement,Rt as SVGTextPathElement,zt as SVGTextPositioningElement,Bt as SVGTitleElement,Vt as SVGUseElement,Ht as SVGViewElement,or as Screen,yr as Selection,qa as ShadowRoot,Tr as StaticRange,ar as Storage,Ds as StorageEvent,Ni as StyleSheet,Pi as StyleSheetList,Os as SubmitEvent,ro as Text,zs as TextEvent,nn as TimeRanges,ks as ToggleEvent,Bs as Touch,Vs as TouchEvent,Hs as TouchList,As as TransitionEvent,Sr as TreeWalker,Us as UIEvent,ea as ValidityState,sr as VisualViewport,Ws as WheelEvent,tr as Window,_r as XMLDocument,j as XMLHttpRequest,M as XMLHttpRequestEventTarget,N as XMLHttpRequestUpload,mr as XMLSerializer,nr as createWindow,ds as currentDocument,fs as currentWindow,ps as currentWindowOrNull,Lr as getComputedStyle,P as installGlobals,ms as setCurrentWindow}from"./_chunks/src-BacPsCQO.js";
1
+ export{Cr as AbstractRange,ds as AnimationEvent,Wa as Attr,Zt as Audio,fs as BeforeUnloadEvent,$a as CDATASection,t as CSS,di as CSSConditionRule,fi as CSSContainerRule,pi as CSSFontFaceRule,mi as CSSGroupingRule,hi as CSSImportRule,gi as CSSKeyframeRule,_i as CSSKeyframesRule,vi as CSSLayerBlockRule,yi as CSSLayerStatementRule,bi as CSSMediaRule,xi as CSSNamespaceRule,Si as CSSNestedDeclarations,Ci as CSSPageRule,wi as CSSPropertyRule,Ti as CSSRule,Ei as CSSRuleList,Di as CSSScopeRule,Oi as CSSStartingStyleRule,Yi as CSSStyleDeclaration,ki as CSSStyleRule,Ai as CSSStyleSheet,ji as CSSSupportsRule,eo as CharacterData,cr as Clipboard,Ds as ClipboardEvent,lr as ClipboardItem,ps as CloseEvent,Or as CommandEvent,to as Comment,Os as CompositionEvent,ba as CustomElementRegistry,ms as CustomEvent,Yn as CustomStateSet,hr as DOMImplementation,ja as DOMMatrix,Ma as DOMMatrixReadOnly,pr as DOMParser,Na as DOMPoint,Pa as DOMPointReadOnly,Fa as DOMRect,Ia as DOMRectList,La as DOMRectReadOnly,Ga as DOMStringMap,Ka as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,gr as Document,gr as HTMLDocument,Qa as DocumentFragment,Za as DocumentType,ks as DragEvent,Ea as Element,Xn as ElementInternals,hs as ErrorEvent,Ks as Event,$o as EventTarget,et as FileList,A as FileReader,As as FocusEvent,F as FormData,gs as FormDataEvent,rn as HTMLAnchorElement,in as HTMLAreaElement,Qt as HTMLAudioElement,an as HTMLBRElement,on as HTMLBaseElement,sn as HTMLBodyElement,G as HTMLButtonElement,cn as HTMLCanvasElement,io as HTMLCollection,ln as HTMLDListElement,un as HTMLDataElement,R as HTMLDataListElement,Yt as HTMLDetailsElement,Xt as HTMLDialogElement,dn as HTMLDirectoryElement,fn as HTMLDivElement,Zn as HTMLElement,pn as HTMLEmbedElement,H as HTMLFieldSetElement,mn as HTMLFontElement,ta as HTMLFormControlsCollection,L as HTMLFormElement,hn as HTMLFrameElement,gn as HTMLFrameSetElement,_n as HTMLHRElement,vn as HTMLHeadElement,yn as HTMLHeadingElement,bn as HTMLHtmlElement,xn as HTMLIFrameElement,Sn as HTMLImageElement,Q as HTMLInputElement,Cn as HTMLLIElement,W as HTMLLabelElement,U as HTMLLegendElement,Ut as HTMLLinkElement,wn as HTMLMapElement,Tn as HTMLMarqueeElement,$t as HTMLMediaElement,En as HTMLMenuElement,Dn as HTMLMetaElement,z as HTMLMeterElement,On as HTMLModElement,kn as HTMLOListElement,An as HTMLObjectElement,K as HTMLOptGroupElement,q as HTMLOptionElement,na as HTMLOptionsCollection,B as HTMLOutputElement,jn as HTMLParagraphElement,Mn as HTMLParamElement,Nn as HTMLPictureElement,Pn as HTMLPreElement,V as HTMLProgressElement,Fn as HTMLQuoteElement,Wt as HTMLScriptElement,X as HTMLSelectElement,qt as HTMLSlotElement,In as HTMLSourceElement,Ln as HTMLSpanElement,Gt as HTMLStyleElement,Rn as HTMLTableCaptionElement,zn as HTMLTableCellElement,Bn as HTMLTableColElement,Vn as HTMLTableElement,Hn as HTMLTableRowElement,Un as HTMLTableSectionElement,Jt as HTMLTemplateElement,Z as HTMLTextAreaElement,Wn as HTMLTimeElement,Kt as HTMLTitleElement,Gn as HTMLTrackElement,Kn as HTMLUListElement,qn as HTMLUnknownElement,en as HTMLVideoElement,_s as HashChangeEvent,dr as History,Jn as Image,js as InputEvent,O as IntersectionObserver,Ms as KeyboardEvent,fr as Location,nt as MathMLElement,tn as MediaError,Mi as MediaList,oi as MediaQueryList,li as MediaQueryListEvent,vs as MessageEvent,Ns as MouseEvent,w as MutationObserver,No as MutationRecord,Ha as NamedNodeMap,ur as Navigator,do as Node,br as NodeFilter,xr as NodeIterator,Po as NodeList,J as Option,ys as PageTransitionEvent,Ps as PointerEvent,bs as PopStateEvent,no as ProcessingInstruction,xs as ProgressEvent,Ss as PromiseRejectionEvent,ra as RadioNodeList,wr as Range,k as ResizeObserver,rt as SVGAElement,it as SVGAnimatedString,at as SVGCircleElement,ot as SVGClipPathElement,st as SVGDefsElement,ct as SVGDescElement,lt as SVGElement,ut as SVGEllipseElement,dt as SVGFilterElement,ft as SVGForeignObjectElement,pt as SVGGElement,mt as SVGGeometryElement,ht as SVGGradientElement,gt as SVGGraphicsElement,_t as SVGImageElement,vt as SVGLineElement,yt as SVGLinearGradientElement,bt as SVGMarkerElement,xt as SVGMaskElement,St as SVGMetadataElement,Ct as SVGPathElement,wt as SVGPatternElement,Tt as SVGPolygonElement,Et as SVGPolylineElement,Dt as SVGRadialGradientElement,Ot as SVGRectElement,kt as SVGSVGElement,At as SVGScriptElement,jt as SVGStopElement,Mt as SVGStyleElement,Nt as SVGSwitchElement,Pt as SVGSymbolElement,Ft as SVGTSpanElement,It as SVGTextContentElement,Lt as SVGTextElement,Rt as SVGTextPathElement,zt as SVGTextPositioningElement,Bt as SVGTitleElement,Vt as SVGUseElement,Ht as SVGViewElement,or as Screen,yr as Selection,qa as ShadowRoot,Tr as StaticRange,ar as Storage,Cs as StorageEvent,Ni as StyleSheet,Pi as StyleSheetList,ws as SubmitEvent,ro as Text,Fs as TextEvent,nn as TimeRanges,Ts as ToggleEvent,Is as Touch,Ls as TouchEvent,Rs as TouchList,Es as TransitionEvent,Sr as TreeWalker,zs as UIEvent,ea as ValidityState,sr as VisualViewport,Bs as WheelEvent,tr as Window,_r as XMLDocument,j as XMLHttpRequest,M as XMLHttpRequestEventTarget,N as XMLHttpRequestUpload,mr as XMLSerializer,nr as createWindow,ss as currentDocument,cs as currentWindow,ls as currentWindowOrNull,Lr as getComputedStyle,P as installGlobals,us as setCurrentWindow}from"./_chunks/src-C4oa-U7z.js";
@@ -1 +1 @@
1
- import{$ as e,$c as t,$d as n,$i as r,$l as i,$n as a,$o as o,$r as s,$s as c,$u as l,Aa as ee,Ac as te,Ad as ne,Af as re,Al as ie,Ao as ae,Ar as oe,Au as se,Ba as ce,Bc as le,Bd as ue,Bf as de,Bi as fe,Bl as pe,Bo as me,Br as he,Bu as ge,C as _e,Ca as ve,Cc as ye,Cd as be,Cf as xe,Cl as Se,Co as Ce,Cu as we,Da as Te,Dc as Ee,Dd as De,Df as Oe,Dl as ke,Do as Ae,Dr as je,Du as Me,Ec as Ne,Ed as Pe,Ef as Fe,El as u,Eo as d,Er as f,Eu as p,Fc as m,Fd as h,Ff as g,Fi as _,Fl as v,Fo as Ie,Fr as Le,Fu as Re,Gc as ze,Gd as Be,Gf as Ve,Gi as He,Gl as Ue,Go as We,Gr as Ge,Gs as Ke,Gu as qe,Hc as Je,Hd as Ye,Hf as Xe,Hi as Ze,Hl as Qe,Ho as $e,Hr as et,Hu as tt,I as nt,Ic as rt,Id as it,If as at,Ii as ot,Il as st,Ir as ct,Iu as lt,Ja as ut,Jc as dt,Jd as ft,Jf as pt,Ji as mt,Jl as ht,Jo as gt,Jr as _t,Js as vt,Ju as yt,Kc as bt,Kd as xt,Kf as St,Ki as Ct,Kl as wt,Ko as Tt,Kr as Et,Ks as Dt,Ku as Ot,Lc as kt,Ld as At,Lf as jt,Li as Mt,Ll as Nt,Lo as Pt,Lr as Ft,Lu as It,Mc as Lt,Md as Rt,Mf as zt,Ml as Bt,Mo as Vt,Mr as Ht,Mu as Ut,Nc as Wt,Nd as Gt,Nf as Kt,Nl as y,No as qt,Nr as Jt,Nu as Yt,Oa as Xt,Oc as Zt,Od as Qt,Of as $t,Ol as en,Oo as tn,Ou as nn,Pc as rn,Pd as b,Pf as an,Pl as on,Po as sn,Pr as cn,Pu as ln,Qc as un,Qd as x,Qi as dn,Ql as fn,Qn as pn,Qo as mn,Qr as hn,Qs as gn,Qu as S,Ra as _n,Rc as vn,Rd as yn,Rf as bn,Ri as xn,Rl as Sn,Ro as Cn,Rr as wn,Ru as Tn,S as En,Sa as Dn,Sc as On,Sd as kn,Sf as An,Sl as jn,So as Mn,Su as Nn,Ta as Pn,Tc as Fn,Td as C,Tf as In,Tl as Ln,To as Rn,Tu as zn,Ua as Bn,Uc as Vn,Ud as Hn,Uf as Un,Ui as Wn,Ul as Gn,Uo as Kn,Ur as qn,Uu as Jn,Va as Yn,Vc as Xn,Vd as Zn,Vf as Qn,Vi as $n,Vl as er,Vo as tr,Vr as nr,Vu as rr,Wc as ir,Wd as ar,Wf as or,Wi as sr,Wl as cr,Wo as lr,Wr as ur,Wu as dr,Xa as fr,Xc as pr,Xd as mr,Xi as hr,Xl as gr,Xo as _r,Xr as vr,Xs as yr,Xu as w,Y as br,Ya as xr,Yc as T,Yd as Sr,Yl as Cr,Yo as wr,Yr as Tr,Ys as Er,Yu as E,Zc as Dr,Zd as D,Zi as Or,Zl as kr,Zo as Ar,Zr as jr,Zs as Mr,Zu as Nr,_ as Pr,_a as O,_c as Fr,_d as Ir,_f as Lr,_l as Rr,_o as zr,_u as Br,a as Vr,aa as Hr,ac as Ur,ad as Wr,af as Gr,ai as Kr,al as qr,ao as Jr,as as Yr,au as Xr,b as Zr,bc as Qr,bd as $r,bf as ei,bl as ti,bo as ni,bu as ri,c as ii,ca as ai,cc as oi,cd as si,cf as ci,ci as li,cl as k,co as ui,cs as di,cu as fi,d as pi,da as mi,dc as A,dd as hi,df as gi,dl as _i,du as vi,ec as yi,ed as bi,ef as xi,ei as Si,el as Ci,er as wi,es as Ti,eu as Ei,f as Di,fa as Oi,fc as ki,fd as Ai,ff as ji,fl as Mi,fo as Ni,fu as Pi,g as Fi,ga as Ii,gc as Li,gd as Ri,gf as zi,gl as Bi,go as Vi,gu as Hi,h as Ui,ha as Wi,hc as Gi,hd as Ki,hf as qi,hl as Ji,ho as Yi,hu as Xi,i as Zi,ia as Qi,ic as $i,id as ea,if as ta,ii as na,il as ra,io as ia,ir as aa,is as oa,iu as sa,jc as ca,jd as j,jf as la,jl as ua,jo as da,jr as fa,ju as M,ka as pa,kc as ma,kd as ha,kf as ga,kl as _a,ko as va,kr as ya,ku as ba,l as xa,la as Sa,lc as Ca,ld as wa,lf as Ta,ll as Ea,lo as Da,ls as Oa,lu as ka,m as N,ma as P,mc as Aa,md as ja,mf as Ma,ml as Na,mo as Pa,mu as Fa,n as Ia,nc as La,nd as Ra,nf as za,ni as Ba,nl as Va,ns as Ha,nu as Ua,o as Wa,oa as Ga,oc as Ka,od as qa,of as Ja,ol as Ya,oo as Xa,os as Za,ou as Qa,p as $a,pa as eo,pc as to,pd as no,pf as ro,pl as io,po as ao,pu as oo,qc as F,qd as so,qf as co,qi as lo,ql as uo,qo as fo,qr as po,qu as mo,r as ho,rc as I,rd as go,rf as _o,ri as vo,rl as yo,rr as L,ru as bo,s as xo,sa as So,sc as Co,sd as wo,sf as To,si as Eo,sl as Do,so as Oo,ss as ko,su as Ao,tc as jo,td as Mo,tf as No,ti as Po,tl as Fo,tr as R,ts as Io,tt as z,tu as Lo,u as Ro,ua as zo,uc as Bo,ud as Vo,uf as Ho,ui as Uo,ul as Wo,uo as Go,us as Ko,uu as qo,v as Jo,va as B,vc as Yo,vd as Xo,vf as Zo,vl as Qo,vo as $o,vr as es,vu as ts,wa as ns,wc as rs,wd as is,wf as as,wl as os,wo as ss,wu as cs,x as ls,xa as us,xc as ds,xd as fs,xf as ps,xl as ms,xo as V,xu as hs,y as gs,ya as H,yc as _s,yd as vs,yf as ys,yl as bs,yo as xs,yu as Ss,za as Cs,zc as ws,zd as Ts,zf as Es,zi as Ds,zl as Os,zo as ks,zr as As,zu as js}from"./_chunks/src-BacPsCQO.js";import{constants as Ms,createContext as Ns,runInContext as Ps}from"node:vm";import*as U from"node:diagnostics_channel";let W=null;function targets(){let e=/* @__PURE__ */ new Set,t=L();for(let n in t){let r=t[n];if(r===null||typeof r!=`object`&&typeof r!=`function`)continue;e.add(r);let i=r.prototype;typeof r==`function`&&typeof i==`object`&&i&&e.add(i)}return e.add(R.prototype),[...e]}function snapshot(e){let t=Reflect.ownKeys(e),n=Array(t.length);for(let r=0;r<t.length;r++){let i=t[r];n[r]=isArrayIndex(i)?null:Object.getOwnPropertyDescriptor(e,i)}return{target:e,keys:t,descriptors:n,keySet:null}}let G=null;function captureInterfaceBaseline(){if(W===null){W=[],G=/* @__PURE__ */ new WeakSet;for(let e of targets())W.push(snapshot(e)),G.add(e);ownObjectCreateMaps()}}let Fs=null;function ownObjectCreateMaps(){if(W===null)return;let e=Fs??=Ps(`(prototypes) => prototypes.map((p) => Object.create(p))`,Ns(Ms.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<W.length;e++){let n=W[e].target;typeof n!=`function`&&t.push(n)}e(t)}function configurableDescriptor(e){return typeof e==`object`&&e&&e.configurable!==!0?{...e,configurable:!0}:e}function guardInterfaceDefinitions(e){let t=G;if(t===null)return;let n=e.Object,r=e.Reflect,i=n.defineProperty,a=n.defineProperties,o=r.defineProperty,s={defineProperty(e,n,r){return i(e,n,t.has(e)?configurableDescriptor(r):r)},defineProperties(e,n){if(!t.has(e)||typeof n!=`object`||!n)return a(e,n);let r={};for(let e of Reflect.ownKeys(n))Object.getOwnPropertyDescriptor(n,e)?.enumerable&&(r[e]=configurableDescriptor(n[e]));return a(e,r)},reflectDefineProperty(e,n,r){return o(e,n,t.has(e)?configurableDescriptor(r):r)}};Object.defineProperty(s.reflectDefineProperty,"name",{value:`defineProperty`}),Object.defineProperty(n,"defineProperty",{value:s.defineProperty,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(n,"defineProperties",{value:s.defineProperties,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(r,"defineProperty",{value:s.reflectDefineProperty,writable:!0,configurable:!0,enumerable:!1})}function isArrayIndex(e){if(typeof e!=`string`||e===``||e.length>10)return!1;let t=Number(e);return t>>>0===t&&t!==4294967295&&String(t)===e}function sameDescriptor(e,t){return e.value===t.value&&e.get===t.get&&e.set===t.set&&e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable}function restoreInterfaces(){if(W===null)return 0;let e=0;for(let t=0;t<W.length;t++){let n=W[t],r=n.target,i=Reflect.ownKeys(r);for(let t=0;t<i.length;t++){let a=i[t];a===n.keys[t]||(n.keySet??=new Set(n.keys)).has(a)||isArrayIndex(a)||Reflect.deleteProperty(r,a)&&e++}for(let t=0;t<n.keys.length;t++){let i=n.keys[t],a=n.descriptors[t];if(a===null)continue;let o=Object.getOwnPropertyDescriptor(r,i);if(!(o!==void 0&&sameDescriptor(o,a)))try{Object.defineProperty(r,i,a),e++}catch{}}}return ownObjectCreateMaps(),e}const K=`ctrl-dom:span`,q=typeof U.tracingChannel==`function`?U.tracingChannel(K):null;function spanChannel(){return q}function tracing(){return q!==null&&q.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=D();return q.traceSync(e=>{try{return n(e)}finally{recordSkipped(e,i)}},r,void 0,r)}function tracePromise(e,t,n){let r={op:e,description:t,data:{},async:!0},i=D();return q.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=D()-t;n>0&&(e.data[`clock.skipped_ms`]=Math.round(n))}function describeCall(e,t){let n=`${e}(`;for(let e=0;e<t.length&&(t[e]!==void 0||e!==t.length-1);e++)if(n+=(e>0?`, `:``)+describeValue(t[e],0),n.length>160)return`${n.slice(0,159)}…)`;return`${n})`}function describeValue(e,t){if(typeof e==`string`)return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e);if(typeof e==`function`)return e.name?`${e.name}()`:`fn`;if(e instanceof RegExp||typeof e!=`object`||!e)return String(e);if(e[y]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let J=null;function setNodeDescriber(e){J=e}function describeNode(e){let t=e;if(t.nodeType===9)return`document`;if(t.nodeType!==1||typeof t.localName!=`string`)return t.nodeType===3?`#text`:`node`;if(J!==null)try{let t=J(e);if(t)return t}catch{}if(t.localName===`body`||t.localName===`html`)return`<${t.localName}>`;let n=t.getAttribute?.(`aria-label`)||t.textContent?.trim().replace(/\s+/g,` `)||t.getAttribute?.(`placeholder`)||t.getAttribute?.(`name`)||``;return n===``?`<${t.localName}>`:`<${t.localName} ${quote(n)}>`}function quote(e){return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e)}const Y=`sentry-tests:failure`;let X=null;function setFailureSnapshot(e){X=e}function subscribeTestFailures(e){let t=U.channel(Y),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=x();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),X!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:X(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}function implOf(e){return e[y]??e}function isTypingType(e){return O(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===V.input?isTypingType(P(t))&&N(t):t.tag===V.textarea?N(t):cn(t)}function supportsSelection(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&B(P(t))}function hasUIValue(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&H(P(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;return e[C]??e.value}return t.tag===V.textarea?t.node.value:``}function setUIValue(t,n){let r=implOf(t);if(r.tag===V.input){let t=r.node,i=P(r);if(H(i)!==0)return;let a=e(i,n,r);r.doc[h]++,t[b]=a,t[T]=!0,t[j]=!0,t[C]=a===n?null:n,t[I]=a===``&&n!==``&&i!==5&&!O(i);let o=n.length;t[S]>o&&(t[S]=o),t[w]>o&&(t[w]=o)}else if(r.tag===V.textarea){let e=r.node;r.doc[h]++,e[M]=n,e[T]=!0,e[j]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;e[C]=null,e[I]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[S],n),end:Math.min(t[w],n),direction:t[E]}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==V.input&&i.tag!==V.textarea)return;let a=i.node,o=getUIValue(e).length,s=Math.max(0,Math.min(t,n)),c=Math.max(t,n);c>o&&(c=o),s>c&&(s=c),a[S]=s,a[w]=c,a[E]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===V.input&&P(n)===17&&(n.doc[h]++,n.node[k]=z(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==V.option)return;let r=n.node;r._setSelectedness(t),r[F]=!0;let i=br(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===V.input&&n.node._setCheckedness(t,!0)}const Is=R.prototype.getComputedStyle;let Z=null,Q=null,$=null;function getComputedStyleOverride(e){let t=e.doc.defaultView;if(t==null)return null;let n=t.getComputedStyle;if(n===Is||typeof n!=`function`||nt.has(n))return null;if(Q?.deref()===n&&Z?.deref()===t){let e=$.deref();if(e!==void 0)return e}let r=n.bind(t);return Z=new WeakRef(t),Q=new WeakRef(n),$=new WeakRef(r),r}export{yr as $_proto__,Mr as $aboutBase,gn as $active,c as $assocGen,yi as $attr,jo as $attributes,La as $availableToElementInternals,I as $badInput,$i as $baseFor,Ur as $baseOverride,Ka as $baseURL,Co as $baseVersion,oi as $block,Ca as $byCtor,Bo as $byName,A as $cache,ki as $callback,to as $checked,Aa as $checkedSet,Gi as $childNodes,Li as $childWindows,Fr as $children,Yo as $classList,_s as $clipboard,Qr as $clonable,ds as $closed,On as $coll,ye as $compiled,rs as $compiledFor,Fn as $condition,Ne as $constructed,Ee as $constructingEntryList,Zt as $contentType,ma as $controlsCache,te as $controlsDoc,ca as $controlsVersion,Lt as $cookieJar,Wt as $cookies,rn as $css,m as $current,rt as $customElements,kt as $customValidity,vn as $cx,ws as $data,le as $dataset,Xn as $declarative,Je as $defaultNamespace,Vn as $defaultValueOverride,ir as $delegatesFocus,ze as $derived,bt as $devicePixelRatio,F as $dirtiness,dt as $dirtyChecked,T as $dirtyValue,pr as $disabled,Dr as $disallowModification,un as $doc,t as $dropEffect,Ci as $ec,Fo as $effectAllowed,Va as $el,yo as $elements,ra as $entries,qr as $eo,Ya as $error,Do as $file,k as $files,Ea as $fill,Wo as $filter,_i as $firingSubmissionEvents,Mi as $focused,io as $forLabels,Na as $form,Ji as $forms,Bi as $frameCallbacks,Rr as $frameElement,Qo as $frameId,bs as $frameTask,ti as $frameTime,ms as $generation,jn as $globalObject,Se as $hasTransients,os as $height,Ln as $history,u as $home,ke as $host,en as $href,_a as $id,ie as $idleCallbacks,ua as $idleId,Bt as $ids,y as $impl,on as $implementation,v as $indeterminate,st as $index,Nt as $indexed,Sn as $inflight,Os as $info,pe as $innerHeight,er as $innerWidth,Qe as $is2D,Gn as $isHTML,cr as $items,Ue as $keyText,wt as $kind,uo as $labels,ht as $layerName,Cr as $list,gr as $listeners,kr as $localStorage,fn as $location,i as $lockedForReset,Ei as $m,Lo as $matches,Ua as $media,bo as $mediaQueryLists,sa as $mode,Xr as $name,Qa as $names,Ao as $namespaces,fi as $navigator,ka as $nodes,qo as $onchange,vi as $options,Pi as $owner,oo as $ownerNode,Fa as $ownerRule,Xi as $parent,Hi as $parentRule,Br as $parentWindow,ts as $pastNames,Ss as $pointerBeforeReference,ri as $preApplied,hs as $preChecked,Nn as $preCheckedRadio,we as $preIndeterminate,cs as $prefix,zn as $prelude,p as $presentationStyle,Me as $pseudo,nn as $queries,ba as $radios,se as $ranges,M as $rawValue,Ut as $readonly,Yt as $readyState,ln as $rebuildVersion,Re as $record,lt as $records,It as $rects,Tn as $reference,js as $result,ge as $root,rr as $rules,tt as $running,Jn as $runningFrame,dr as $sc,qe as $screen,Ot as $scrollRestoration,mo as $scrollX,yt as $scrollY,E as $selDir,w as $selEnd,Nr as $selSet,S as $selStart,l as $selectedOptions,bi as $selectedness,Mo as $selection,Ra as $selector,go as $serializable,ea as $sessionStorage,Wr as $settled,qa as $shadowRoot,wo as $shed,si as $sheet,wa as $sheets,Vo as $slotAssignment,hi as $so,Ai as $states,no as $style,ja as $styleVersion,Ki as $supportsText,Ri as $systemId,Ir as $target,Xo as $targets,vs as $tasks,$r as $timers,fs as $title,kn as $treeVersion,be as $type,is as $types,C as $uiValue,Pe as $updating,De as $updatingSelectedContent,Qt as $uri,ha as $url,ne as $userActivation,j as $userEdited,Rt as $userValidity,Gt as $validity,b as $value,h as $version,it as $visualViewport,At as $w,yn as $whatToShow,Ts as $whenDefined,ue as $width,Zn as $window,Ye as $writeBuffer,Hn as $x,ar as $xhr,Be as $y,xt as $z,Ja as ATTRIBUTE_NODE,Io as AttrRecord,To as CDATA_SECTION_NODE,ci as COMMENT_NODE,Ze as COMPAT,Wn as COMPAT_PROFILES,sr as DEFAULT_COMPAT,Ta as DOCUMENT_FRAGMENT_NODE,Ho as DOCUMENT_NODE,gi as DOCUMENT_POSITION_CONTAINED_BY,ji as DOCUMENT_POSITION_CONTAINS,ro as DOCUMENT_POSITION_DISCONNECTED,Ma as DOCUMENT_POSITION_FOLLOWING,qi as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,zi as DOCUMENT_POSITION_PRECEDING,Lr as DOCUMENT_TYPE_NODE,hr as DeclBlock,Zo as ELEMENT_NODE,ys as ENTITY_NODE,ei as ENTITY_REFERENCE_NODE,vt as EventState,Y as FAILURE_CHANNEL,ps as F_ADOPT_HOOK,An as F_ARIA_ATTRS,xe as F_ATTR_HOOK,as as F_CE_CUSTOM,In as F_CHILDREN_HOOK,Fe as F_CHILD_LIST,Oe as F_CONNECTED,$t as F_CONNECT_HOOK,ga as F_CONTENTEDITABLE_ATTR,re as F_CUSTOM,la as F_DATA_ATTRS,zt as F_FACE,Kt as F_HAS_SHADOW,an as F_HAS_STYLE_ATTR,g as F_HTML,at as F_INERT_ATTR,jt as F_MO_REGISTERED,bn as F_SHADOW_ROOT,Es as F_TABINDEX_ATTR,us as GLOBAL_EVENT_HANDLER_EVENTS,ia as HTMLCollection,de as HTML_NS,eo as INPUT_TYPE_NAMES,Qn as MATHML_NS,Xe as NOTATION_NODE,Mt as NodeCache,Ha as NodeImpl,Pt as NodeList,Un as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,or as SVG_NS,V as T,Ve as TEXT_NODE,so as VirtualClock,ft as VirtualTimeout,Dn as WINDOW_EVENT_HANDLER_EVENTS,St as XLINK_NS,co as XMLNS_NS,pt as XML_NS,hn as adoptedStyleSheetsOf,ss as ariaAttr,Rn as asciiLowercase,Yi as assignManually,Vi as assignedElements,zr as assignedNodes,$o as assignedSlot,Te as attachShadowRoot,d as attr,pn as attrAssociatedElement,a as attrAssociatedElements,Bn as attrNode,Sr as canSkipZeroDelayWait,captureInterfaceBaseline,$e as childAt,Ae as classTokens,clearUIValue,mr as clockNow,x as clockStats,Oo as closest,f as compareBoundaryPoints,Kn as compareTreeOrder,He as compatExposes,wn as computedDisplay,As as computedValue,he as computedVisibility,ya as constructEntryList,Ia as controlValue,es as createEvent,z as createFileList,s as createLinkSheet,nr as currentStyleVersion,oe as defaultButton,Ct as deferredCompatMembers,me as derivedCache,describeCall,describeNode,oa as dispatch,Ds as dispatchTrusted,Jr as ensureCollectionIndexGetters,Cn as ensureIndexGetters,Eo as evaluateMediaQueryList,dn as faceState,xs as findFlattenedSlottables,ni as findSlot,fe as fireAnEvent,$n as fireSyntheticPointerEvent,lr as firstElementChild,n as foreignImmediatesPending,Hr as formOwner,tn as getAttribute,Ft as getComputedStyle,getComputedStyleOverride,Yr as getCurrentEvent,Xt as getElementsByClassName,pa as getElementsByTagName,ee as getElementsByTagNameNS,ve as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,va as hasAttr,et as hasAuthorStyles,wi as hasExplicitAttrElements,Ke as hasListeners,ho as hasReadonlyAttribute,hasUIValue,lo as hiddenGlobals,fa as implicitSubmission,ks as indexGetterTable,We as indexOf,Zi as inputChecked,Vr as inputIndeterminate,P as inputType,Wi as inputTypeFromAttr,Ni as inspectNode,xi as installClock,ns as installEventHandlers,Ga as isActuallyDisabled,ae as isAsciiWhitespace,Wa as isAutofilled,xo as isChecked,No as isClockTimer,ii as isDefault,xa as isDisabled,qn as isDisplayNone,ur as isDisplayNoneInclusive,isEditable as isEditableControl,Ro as isEnabled,r as isFACE,pi as isInRange,Tt as isInclusiveAncestor,Di as isIndeterminate,$a as isInvalid,So as isLabelable,ai as isListed,N as isMutable,Ii as isNumericType,Ui as isOptional,Fi as isOutOfRange,Pr as isPlaceholderShown,Jo as isReadOnly,gs as isReadWrite,Zr as isRequired,Sa as isResettable,Ht as isSubmitButton,zo as isSubmittable,ls as isTextControl,O as isTextualType,En as isValid,_n as isValidDoctypeName,Cs as isValidElementLocalName,ce as isValidNamespacePrefix,Ge as isVisibilityHidden,mi as labeledControl,Oi as labelsFor,fo as lastElementChild,Qi as listOfOptions,_ as matchMediaText,ui as matches,li as mediaEnvironment,gt as nextElementInTree,wr as nextElementSibling,_r as nextInTree,Ar as nextSkippingChildren,xn as nodeCache,Za as nodeGetTheParent,je as nodeLength,Ie as notifyMutationObservers,_e as optionSelected,Or as parseDeclBlock,fr as parseFragment,ot as parseMediaQueryList,tr as peekDerivedCache,Et as pointerEvents,po as pointerEventsNone,da as prefixFlag,mn as previousElementSibling,o as previousInTree,_t as pseudoContent,Da as querySelector,Go as querySelectorAll,quote,Po as registerOwnerSheet,Dt as removeAllEventListeners,Vt as removeAttribute,Ba as removeOwnerSheet,ao as replaceData,Oa as reportException,mt as resolveCompat,restoreInterfaces,ko as retarget,ut as serializeChildren,xr as serializeNode,vo as setAdoptedStyleSheets,di as setAssignedSlotLookup,qt as setAttribute,setCheckedFromUI,Tr as setComputedColorMode,Pn as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Jt as setNotImplementedHandler,setOptionSelectedFromUI,Er as setTrusted,setUISelection,setUIValue,Ko as setUncaughtExceptionHandler,za as skipIdleTime,_o as skipZeroDelayWait,spanChannel,sn as splitOnAsciiWhitespace,Pa as splitText,Le as styleElementRemoved,Si as styleElementSheet,ct as styleElementUpdated,na as styleSheetsOf,vr as styledDisplay,subscribeTestFailures,supportsSelection,B as supportsSelectionType,Mn as tagId,Ce as tagName,tracePromise,traceSync,tracing,aa as trackGlobalTimers,Ti as treeRoot,jr as uaDisplay,Kr as unregisterOwnerSheet,Yn as validateAndExtract,H as valueMode,ta as virtualDate,Gr as virtualPerformance,Uo as windowHooks,L as windowInterfaces,Xa as withNamedProperties};
1
+ import{$ as e,$c as t,$d as n,$i as r,$l as i,$n as a,$r as o,$s as s,$u as c,Aa as ee,Ac as te,Ad as l,Af as ne,Al as re,Ao as ie,Ar as ae,Au as u,Ba as oe,Bc as se,Bd as ce,Bf as le,Bi as ue,Bl as de,Bo as fe,Br as pe,Bu as me,C as he,Ca as ge,Cc as _e,Cd as ve,Cf as ye,Cl as be,Co as xe,Cu as Se,Da as Ce,Dc as we,Dd as Te,Df as Ee,Dl as De,Do as Oe,Dr as ke,Du as Ae,Ec as je,Ed as Me,Ef as Ne,El as Pe,Eo as d,Er as f,Eu as p,Fc as m,Fd as h,Ff as g,Fi as _,Fl as v,Fo as y,Fr as Fe,Fu as Ie,Gc as Le,Gd as Re,Gf as ze,Gi as Be,Gl as Ve,Go as He,Gr as Ue,Gs as We,Gu as Ge,Hc as Ke,Hd as qe,Hf as Je,Hi as Ye,Hl as Xe,Ho as Ze,Hr as Qe,Hs as $e,Hu as et,I as tt,Ic as nt,Id as rt,If as it,Ii as at,Il as ot,Io as st,Ir as ct,Iu as lt,Ja as ut,Jc as b,Jd as dt,Ji as ft,Jl as pt,Jo as mt,Jr as ht,Js as gt,Ju as x,Kc as S,Kd as _t,Kf as vt,Ki as yt,Kl as bt,Ko as xt,Kr as St,Ku as Ct,Lc as wt,Ld as Tt,Lf as Et,Li as Dt,Ll as Ot,Lo as kt,Lr as At,Lu as jt,Mc as Mt,Md as Nt,Mf as Pt,Ml as C,Mo as Ft,Mr as It,Mu as Lt,Nc as Rt,Nd as w,Nf as zt,Nl as Bt,Nr as Vt,Nu as Ht,Oa as Ut,Oc as Wt,Od as Gt,Of as Kt,Ol as qt,Oo as Jt,Ou as Yt,Pc as Xt,Pd as T,Pf as Zt,Pl as Qt,Po as $t,Pr as en,Pu as tn,Qc as nn,Qd as rn,Qi as an,Ql as on,Qn as sn,Qo as cn,Qr as ln,Qs as un,Qu as dn,Ra as fn,Rc as pn,Rd as mn,Rf as hn,Ri as gn,Rl as _n,Ro as vn,Rr as yn,Ru as bn,S as xn,Sa as Sn,Sc as Cn,Sd as wn,Sf as Tn,Sl as En,So as Dn,Su as On,Ta as kn,Tc as An,Td as jn,Tf as Mn,Tl as Nn,To as Pn,Tu as Fn,Ua as In,Uc as Ln,Ud as Rn,Uf as zn,Ui as Bn,Ul as Vn,Uo as Hn,Ur as Un,Us as Wn,Uu as Gn,Va as Kn,Vc as qn,Vd as Jn,Vf as Yn,Vi as Xn,Vl as Zn,Vo as Qn,Vr as $n,Vs as E,Vu as er,Wc as tr,Wd as nr,Wf as rr,Wi as ir,Wl as ar,Wo as or,Wr as sr,Ws as cr,Wu as lr,Xa as ur,Xc as dr,Xd as D,Xi as fr,Xl as pr,Xo as mr,Xr as hr,Xs as gr,Xu as _r,Y as vr,Ya as yr,Yc as br,Yd as xr,Yl as Sr,Yo as Cr,Yr as wr,Ys as Tr,Yu as O,Zc as Er,Zd as k,Zi as Dr,Zl as Or,Zo as kr,Zr as Ar,Zs as jr,Zu as A,_ as Mr,_a as j,_c as Nr,_d as Pr,_f as Fr,_l as Ir,_o as Lr,_u as Rr,a as zr,aa as Br,ac as Vr,ad as Hr,af as Ur,ai as Wr,al as Gr,ao as Kr,as as qr,au as Jr,b as Yr,bc as Xr,bd as Zr,bf as Qr,bl as $r,bo as ei,bu as ti,c as ni,ca as ri,cc as ii,cd as ai,cf as oi,ci as si,cl as ci,co as li,cu as ui,d as di,da as fi,dc as M,dd as pi,df as mi,dl as hi,du as gi,ec as _i,ed as vi,ef as yi,ei as bi,el as xi,er as Si,es as Ci,eu as wi,f as Ti,fa as Ei,fc as Di,fd as Oi,ff as ki,fl as Ai,fo as ji,fu as Mi,g as Ni,ga as Pi,gc as Fi,gd as Ii,gf as Li,gl as Ri,go as zi,gu as Bi,h as Vi,ha as Hi,hc as Ui,hd as Wi,hf as Gi,hl as Ki,ho as qi,hu as Ji,i as Yi,ia as Xi,ic as Zi,id as Qi,if as $i,ii as ea,il as ta,io as na,ir as ra,is as ia,iu as aa,jc as oa,jd as sa,jf as ca,jl as la,jo as ua,jr as da,ju as fa,ka as pa,kc as ma,kd as ha,kf as ga,kl as _a,ko as va,kr as ya,ku as ba,l as xa,la as Sa,lc as Ca,ld as wa,lf as Ta,ll as Ea,lo as Da,lu as Oa,m as N,ma as P,mc as ka,md as Aa,mf as ja,ml as Ma,mo as Na,mu as Pa,n as Fa,nc as F,nd as Ia,nf as La,ni as Ra,nl as za,ns as Ba,nu as Va,o as Ha,oa as Ua,oc as Wa,od as Ga,of as Ka,ol as qa,oo as Ja,os as Ya,ou as Xa,p as Za,pa as Qa,pc as $a,pd as eo,pf as to,pl as no,po as ro,pu as io,qc as ao,qd as oo,qf as so,qi as co,ql as lo,qo as uo,qr as fo,qs as po,qu as mo,r as ho,rc as go,rd as _o,rf as vo,ri as yo,rl as bo,rr as I,rs as xo,ru as So,s as Co,sa as wo,sc as To,sd as Eo,sf as Do,si as Oo,sl as L,so as ko,su as Ao,tc as jo,td as Mo,tf as No,ti as Po,tl as Fo,tr as R,ts as Io,tt as z,tu as Lo,u as Ro,ua as zo,uc as Bo,ud as Vo,uf as Ho,ui as Uo,ul as Wo,uo as Go,uu as Ko,v as qo,va as B,vc as Jo,vd as Yo,vf as Xo,vl as Zo,vo as Qo,vr as $o,vu as es,wa as ts,wc as ns,wd as V,wf as rs,wl as is,wo as as,wu as os,x as ss,xa as cs,xc as ls,xd as us,xf as ds,xl as fs,xo as ps,xu as ms,y as hs,ya as H,yc as gs,yd as _s,yf as vs,yl as ys,yo as bs,yu as xs,za as Ss,zc as Cs,zd as ws,zf as Ts,zi as Es,zl as Ds,zo as Os,zr as ks,zu as As}from"./_chunks/src-C4oa-U7z.js";import{constants as js,createContext as Ms,runInContext as Ns}from"node:vm";import*as U from"node:diagnostics_channel";let W=null;function targets(){let e=/* @__PURE__ */ new Set,t=I();for(let n in t){let r=t[n];if(r===null||typeof r!=`object`&&typeof r!=`function`)continue;e.add(r);let i=r.prototype;typeof r==`function`&&typeof i==`object`&&i&&e.add(i)}return e.add(R.prototype),[...e]}function snapshot(e){let t=Reflect.ownKeys(e),n=Array(t.length);for(let r=0;r<t.length;r++){let i=t[r];n[r]=isArrayIndex(i)?null:Object.getOwnPropertyDescriptor(e,i)}return{target:e,keys:t,descriptors:n,keySet:null}}let G=null;function captureInterfaceBaseline(){if(W===null){W=[],G=/* @__PURE__ */ new WeakSet;for(let e of targets())W.push(snapshot(e)),G.add(e);ownObjectCreateMaps()}}let Ps=null;function ownObjectCreateMaps(){if(W===null)return;let e=Ps??=Ns(`(prototypes) => prototypes.map((p) => Object.create(p))`,Ms(js.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<W.length;e++){let n=W[e].target;typeof n!=`function`&&t.push(n)}e(t)}function configurableDescriptor(e){return typeof e==`object`&&e&&e.configurable!==!0?{...e,configurable:!0}:e}function guardInterfaceDefinitions(e){let t=G;if(t===null)return;let n=e.Object,r=e.Reflect,i=n.defineProperty,a=n.defineProperties,o=r.defineProperty,s={defineProperty(e,n,r){return i(e,n,t.has(e)?configurableDescriptor(r):r)},defineProperties(e,n){if(!t.has(e)||typeof n!=`object`||!n)return a(e,n);let r={};for(let e of Reflect.ownKeys(n))Object.getOwnPropertyDescriptor(n,e)?.enumerable&&(r[e]=configurableDescriptor(n[e]));return a(e,r)},reflectDefineProperty(e,n,r){return o(e,n,t.has(e)?configurableDescriptor(r):r)}};Object.defineProperty(s.reflectDefineProperty,"name",{value:`defineProperty`}),Object.defineProperty(n,"defineProperty",{value:s.defineProperty,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(n,"defineProperties",{value:s.defineProperties,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(r,"defineProperty",{value:s.reflectDefineProperty,writable:!0,configurable:!0,enumerable:!1})}function isArrayIndex(e){if(typeof e!=`string`||e===``||e.length>10)return!1;let t=Number(e);return t>>>0===t&&t!==4294967295&&String(t)===e}function sameDescriptor(e,t){return e.value===t.value&&e.get===t.get&&e.set===t.set&&e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable}function restoreInterfaces(){if(W===null)return 0;let e=0;for(let t=0;t<W.length;t++){let n=W[t],r=n.target,i=Reflect.ownKeys(r);for(let t=0;t<i.length;t++){let a=i[t];a===n.keys[t]||(n.keySet??=new Set(n.keys)).has(a)||isArrayIndex(a)||Reflect.deleteProperty(r,a)&&e++}for(let t=0;t<n.keys.length;t++){let i=n.keys[t],a=n.descriptors[t];if(a===null)continue;let o=Object.getOwnPropertyDescriptor(r,i);if(!(o!==void 0&&sameDescriptor(o,a)))try{Object.defineProperty(r,i,a),e++}catch{}}}return ownObjectCreateMaps(),e}const K=`ctrl-dom:span`,q=typeof U.tracingChannel==`function`?U.tracingChannel(K):null;function spanChannel(){return q}function tracing(){return q!==null&&q.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=D();return q.traceSync(e=>{try{return n(e)}finally{recordSkipped(e,i)}},r,void 0,r)}function tracePromise(e,t,n){let r={op:e,description:t,data:{},async:!0},i=D();return q.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=D()-t;n>0&&(e.data[`clock.skipped_ms`]=Math.round(n))}function describeCall(e,t){let n=`${e}(`;for(let e=0;e<t.length&&(t[e]!==void 0||e!==t.length-1);e++)if(n+=(e>0?`, `:``)+describeValue(t[e],0),n.length>160)return`${n.slice(0,159)}…)`;return`${n})`}function describeValue(e,t){if(typeof e==`string`)return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e);if(typeof e==`function`)return e.name?`${e.name}()`:`fn`;if(e instanceof RegExp||typeof e!=`object`||!e)return String(e);if(e[C]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let J=null;function setNodeDescriber(e){J=e}function describeNode(e){let t=e;if(t.nodeType===9)return`document`;if(t.nodeType!==1||typeof t.localName!=`string`)return t.nodeType===3?`#text`:`node`;if(J!==null)try{let t=J(e);if(t)return t}catch{}if(t.localName===`body`||t.localName===`html`)return`<${t.localName}>`;let n=t.getAttribute?.(`aria-label`)||t.textContent?.trim().replace(/\s+/g,` `)||t.getAttribute?.(`placeholder`)||t.getAttribute?.(`name`)||``;return n===``?`<${t.localName}>`:`<${t.localName} ${quote(n)}>`}function quote(e){return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e)}const Y=`sentry-tests:failure`;let X=null;function setFailureSnapshot(e){X=e}function subscribeTestFailures(e){let t=U.channel(Y),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=k();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),X!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:X(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}function implOf(e){return e[C]??e}function isTypingType(e){return j(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===E.input?isTypingType(P(t))&&N(t):t.tag===E.textarea?N(t):en(t)}function supportsSelection(e){let t=implOf(e);return t.tag===E.textarea||t.tag===E.input&&B(P(t))}function hasUIValue(e){let t=implOf(e);return t.tag===E.textarea||t.tag===E.input&&H(P(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===E.input){let e=t.node;return e[V]??e.value}return t.tag===E.textarea?t.node.value:``}function setUIValue(t,n){let r=implOf(t);if(r.tag===E.input){let t=r.node,i=P(r);if(H(i)!==0)return;let a=e(i,n,r);r.doc[T]++,t[w]=a,t[b]=!0,t[l]=!0,t[V]=a===n?null:n,t[F]=a===``&&n!==``&&i!==5&&!j(i);let o=n.length;t[A]>o&&(t[A]=o),t[O]>o&&(t[O]=o)}else if(r.tag===E.textarea){let e=r.node;r.doc[T]++,e[u]=n,e[b]=!0,e[l]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===E.input){let e=t.node;e[V]=null,e[F]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[A],n),end:Math.min(t[O],n),direction:t[x]}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==E.input&&i.tag!==E.textarea)return;let a=i.node,o=getUIValue(e).length,s=Math.max(0,Math.min(t,n)),c=Math.max(t,n);c>o&&(c=o),s>c&&(s=c),a[A]=s,a[O]=c,a[x]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===E.input&&P(n)===17&&(n.doc[T]++,n.node[L]=z(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==E.option)return;let r=n.node;r._setSelectedness(t),r[S]=!0;let i=vr(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===E.input&&n.node._setCheckedness(t,!0)}const Fs=R.prototype.getComputedStyle;let Z=null,Q=null,$=null;function getComputedStyleOverride(e){let t=e.doc.defaultView;if(t==null)return null;let n=t.getComputedStyle;if(n===Fs||typeof n!=`function`||tt.has(n))return null;if(Q?.deref()===n&&Z?.deref()===t){let e=$.deref();if(e!==void 0)return e}let r=n.bind(t);return Z=new WeakRef(t),Q=new WeakRef(n),$=new WeakRef(r),r}export{Tr as $_proto__,gr as $aboutBase,jr as $active,un as $assocGen,s as $attr,_i as $attributes,jo as $availableToElementInternals,F as $badInput,go as $baseFor,Zi as $baseOverride,Vr as $baseURL,Wa as $baseVersion,To as $block,ii as $byCtor,Ca as $byName,Bo as $cache,M as $callback,Di as $checked,$a as $checkedSet,ka as $childNodes,Ui as $childWindows,Fi as $children,Nr as $classList,Jo as $clipboard,gs as $clonable,Xr as $closed,ls as $coll,Cn as $compiled,_e as $compiledFor,ns as $condition,An as $constructed,je as $constructingEntryList,we as $contentType,Wt as $controlsCache,ma as $controlsDoc,te as $controlsVersion,oa as $cookieJar,Mt as $cookies,Rt as $css,Xt as $current,m as $customElements,nt as $customValidity,wt as $cx,pn as $data,Cs as $dataset,se as $declarative,qn as $defaultNamespace,Ke as $defaultValueOverride,Ln as $delegatesFocus,tr as $derived,Le as $devicePixelRatio,S as $dirtiness,ao as $dirtyChecked,b as $dirtyValue,br as $disabled,dr as $disallowModification,Er as $doc,nn as $dropEffect,t as $ec,xi as $effectAllowed,Fo as $el,za as $elements,bo as $entries,ta as $eo,Gr as $error,qa as $file,L as $files,ci as $fill,Ea as $filter,Wo as $firingSubmissionEvents,hi as $focused,Ai as $forLabels,no as $form,Ma as $forms,Ki as $frameCallbacks,Ri as $frameElement,Ir as $frameId,Zo as $frameTask,ys as $frameTime,$r as $generation,fs as $globalObject,En as $hasTransients,be as $height,is as $history,Nn as $home,Pe as $host,De as $href,qt as $id,_a as $idleCallbacks,re as $idleId,la as $ids,C as $impl,Bt as $implementation,Qt as $indeterminate,v as $index,ot as $indexed,Ot as $inflight,_n as $info,Ds as $innerHeight,de as $innerWidth,Zn as $is2D,Xe as $isHTML,Vn as $items,ar as $keyText,Ve as $kind,bt as $labels,lo as $layerName,pt as $list,Sr as $listeners,pr as $localStorage,Or as $location,on as $lockedForReset,i as $m,wi as $matches,Lo as $media,Va as $mediaQueryLists,So as $mode,aa as $name,Jr as $names,Xa as $namespaces,Ao as $navigator,ui as $nodes,Oa as $onchange,Ko as $options,gi as $owner,Mi as $ownerNode,io as $ownerRule,Pa as $parent,Ji as $parentRule,Bi as $parentWindow,Rr as $pastNames,es as $pointerBeforeReference,xs as $preApplied,ti as $preChecked,ms as $preCheckedRadio,On as $preIndeterminate,Se as $prefix,os as $prelude,Fn as $presentationStyle,p as $pseudo,Ae as $queries,Yt as $radios,ba as $ranges,u as $rawValue,fa as $readonly,Lt as $readyState,Ht as $rebuildVersion,tn as $record,Ie as $records,lt as $rects,jt as $reference,bn as $result,As as $root,me as $rules,er as $running,et as $runningFrame,Gn as $sc,lr as $screen,Ge as $scrollRestoration,Ct as $scrollX,mo as $scrollY,x as $selDir,O as $selEnd,_r as $selSet,A as $selStart,dn as $selectedOptions,c as $selectedness,vi as $selection,Mo as $selector,Ia as $serializable,_o as $sessionStorage,Qi as $settled,Hr as $shadowRoot,Ga as $shed,Eo as $sheet,ai as $sheets,wa as $slotAssignment,Vo as $so,pi as $states,Oi as $style,eo as $styleVersion,Aa as $supportsText,Wi as $systemId,Ii as $target,Pr as $targets,Yo as $tasks,_s as $timers,Zr as $title,us as $treeVersion,wn as $type,ve as $types,V as $uiValue,jn as $updating,Me as $updatingSelectedContent,Te as $uri,Gt as $url,ha as $userActivation,l as $userEdited,sa as $userValidity,Nt as $validity,w as $value,T as $version,h as $visualViewport,rt as $w,Tt as $whatToShow,mn as $whenDefined,ws as $width,ce as $window,Jn as $writeBuffer,qe as $x,Rn as $xhr,nr as $y,Re as $z,Ur as ATTRIBUTE_NODE,kr as AttrRecord,Ka as CDATA_SECTION_NODE,Do as COMMENT_NODE,Ye as COMPAT,Bn as COMPAT_PROFILES,ir as DEFAULT_COMPAT,oi as DOCUMENT_FRAGMENT_NODE,Ta as DOCUMENT_NODE,Ho as DOCUMENT_POSITION_CONTAINED_BY,mi as DOCUMENT_POSITION_CONTAINS,ki as DOCUMENT_POSITION_DISCONNECTED,to as DOCUMENT_POSITION_FOLLOWING,ja as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,Gi as DOCUMENT_POSITION_PRECEDING,Li as DOCUMENT_TYPE_NODE,fr as DeclBlock,Fr as ELEMENT_NODE,Xo as ENTITY_NODE,vs as ENTITY_REFERENCE_NODE,po as EventState,Y as FAILURE_CHANNEL,Qr as F_ADOPT_HOOK,ds as F_ARIA_ATTRS,Tn as F_ATTR_HOOK,ye as F_CE_CUSTOM,rs as F_CHILDREN_HOOK,Mn as F_CHILD_LIST,Ne as F_CONNECTED,Ee as F_CONNECT_HOOK,Kt as F_CONTENTEDITABLE_ATTR,ga as F_CUSTOM,ne as F_DATA_ATTRS,ca as F_FACE,Pt as F_HAS_SHADOW,zt as F_HAS_STYLE_ATTR,Zt as F_HTML,g as F_INERT_ATTR,it as F_MO_REGISTERED,Et as F_SHADOW_ROOT,hn as F_TABINDEX_ATTR,cs as GLOBAL_EVENT_HANDLER_EVENTS,na as HTMLCollection,Ts as HTML_NS,Qa as INPUT_TYPE_NAMES,le as MATHML_NS,Yn as NOTATION_NODE,Dt as NodeCache,cn as NodeImpl,$t as NodeList,Je as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,zn as SVG_NS,E as T,rr as TEXT_NODE,_t as VirtualClock,oo as VirtualTimeout,Sn as WINDOW_EVENT_HANDLER_EVENTS,ze as XLINK_NS,vt as XMLNS_NS,so as XML_NS,ln as adoptedStyleSheetsOf,ps as ariaAttr,Dn as asciiLowercase,qi as assignManually,zi as assignedElements,Lr as assignedNodes,Qo as assignedSlot,Ce as attachShadowRoot,xe as attr,sn as attrAssociatedElement,a as attrAssociatedElements,In as attrNode,dt as canSkipZeroDelayWait,captureInterfaceBaseline,Os as childAt,as as classTokens,clearUIValue,xr as clockNow,k as clockStats,ko as closest,f as compareBoundaryPoints,Be as compatExposes,yn as computedDisplay,ks as computedValue,pe as computedVisibility,ya as constructEntryList,Fa as controlValue,$o as createEvent,z as createFileList,o as createLinkSheet,$n as currentStyleVersion,ae as defaultButton,yt as deferredCompatMembers,kt as derivedCache,describeCall,describeNode,Ci as dispatch,Es as dispatchTrusted,Kr as ensureCollectionIndexGetters,y as ensureIndexGetters,Oo as evaluateMediaQueryList,an as faceState,bs as findFlattenedSlottables,ei as findSlot,ue as fireAnEvent,Xn as fireSyntheticPointerEvent,fe as firstElementChild,rn as foreignImmediatesPending,Br as formOwner,Pn as getAttribute,At as getComputedStyle,getComputedStyleOverride,Io as getCurrentEvent,Ut as getElementsByClassName,pa as getElementsByTagName,ee as getElementsByTagNameNS,ge as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,d as hasAttr,Qe as hasAuthorStyles,Si as hasExplicitAttrElements,cr as hasListeners,ho as hasReadonlyAttribute,hasUIValue,co as hiddenGlobals,da as implicitSubmission,st as indexGetterTable,Qn as indexOf,Yi as inputChecked,zr as inputIndeterminate,P as inputType,Hi as inputTypeFromAttr,ji as inspectNode,n as installClock,ts as installEventHandlers,Ua as isActuallyDisabled,Oe as isAsciiWhitespace,Ha as isAutofilled,Co as isChecked,yi as isClockTimer,ni as isDefault,xa as isDisabled,Un as isDisplayNone,sr as isDisplayNoneInclusive,isEditable as isEditableControl,Ro as isEnabled,r as isFACE,di as isInRange,Ze as isInclusiveAncestor,Ti as isIndeterminate,Za as isInvalid,wo as isLabelable,ri as isListed,N as isMutable,Pi as isNumericType,Vi as isOptional,Ni as isOutOfRange,Mr as isPlaceholderShown,qo as isReadOnly,hs as isReadWrite,Yr as isRequired,Sa as isResettable,It as isSubmitButton,zo as isSubmittable,ss as isTextControl,j as isTextualType,xn as isValid,fn as isValidDoctypeName,Ss as isValidElementLocalName,oe as isValidNamespacePrefix,Ue as isVisibilityHidden,fi as labeledControl,Ei as labelsFor,Hn as lastElementChild,Xi as listOfOptions,_ as matchMediaText,li as matches,si as mediaEnvironment,or as nextElementInTree,He as nextElementSibling,xt as nextInTree,uo as nextSkippingChildren,gn as nodeCache,Ba as nodeGetTheParent,ke as nodeLength,Ft as notifyMutationObservers,he as optionSelected,Dr as parseDeclBlock,ur as parseFragment,at as parseMediaQueryList,vn as peekDerivedCache,St as pointerEvents,fo as pointerEventsNone,Jt as prefixFlag,mt as previousElementSibling,Cr as previousInTree,ht as pseudoContent,Da as querySelector,Go as querySelectorAll,quote,Po as registerOwnerSheet,We as removeAllEventListeners,va as removeAttribute,Ra as removeOwnerSheet,ro as replaceData,qr as reportException,ft as resolveCompat,restoreInterfaces,xo as retarget,ut as serializeChildren,yr as serializeNode,yo as setAdoptedStyleSheets,ia as setAssignedSlotLookup,ie as setAttribute,setCheckedFromUI,wr as setComputedColorMode,kn as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Vt as setNotImplementedHandler,setOptionSelectedFromUI,gt as setTrusted,setUISelection,setUIValue,Ya as setUncaughtExceptionHandler,No as skipIdleTime,La as skipZeroDelayWait,spanChannel,ua as splitOnAsciiWhitespace,Na as splitText,Fe as styleElementRemoved,bi as styleElementSheet,ct as styleElementUpdated,ea as styleSheetsOf,hr as styledDisplay,subscribeTestFailures,supportsSelection,B as supportsSelectionType,$e as tagId,Wn as tagName,tracePromise,traceSync,tracing,ra as trackGlobalTimers,mr as treeRoot,Ar as uaDisplay,Wr as unregisterOwnerSheet,Kn as validateAndExtract,H as valueMode,vo as virtualDate,$i as virtualPerformance,Uo as windowHooks,I as windowInterfaces,Ja as withNamedProperties};
@@ -23,10 +23,7 @@ export declare class HTMLCollection {
23
23
  /** Free for subclasses that override `_snapshot()` (not used by the base class). */
24
24
  [$items]: Element[] | null;
25
25
  [$version]: number;
26
- /**
27
- * @internal Use the static factories or a subclass. `structural`: the members depend only on
28
- * the tree and tag names (not attributes or state), see the module comment.
29
- */
26
+ /** @internal Use the static factories or a subclass. `structural`: see the module comment. */
30
27
  constructor(root: NodeImpl, childrenOnly?: boolean, filter?: ElementFilter | null, structural?: boolean);
31
28
  /**
32
29
  * @internal Collection state (prototype accessor, so it is not an own property name).
@@ -41,7 +38,7 @@ export declare class HTMLCollection {
41
38
  * @internal Descendant elements of `root` matching `filter`, in tree order; `structural` when
42
39
  * `filter` reads only tag names and namespaces.
43
40
  */
44
- static _descendants(root: NodeImpl, filter: ElementFilter | null, structural: boolean): HTMLCollection;
41
+ static _descendants(root: NodeImpl, structural: boolean, filter: ElementFilter | null): HTMLCollection;
45
42
  /**
46
43
  * @internal Fill `out` with the members in tree order. Subclasses override this for custom
47
44
  * membership; it runs only when the document changed since the last snapshot.
@@ -68,6 +68,16 @@ export declare class Event {
68
68
  readonly CAPTURING_PHASE: 1;
69
69
  readonly AT_TARGET: 2;
70
70
  readonly BUBBLING_PHASE: 3;
71
+ /**
72
+ * https://dom.spec.whatwg.org/#dom-event-istrusted — [LegacyUnforgeable], so an own enumerable
73
+ * property of every instance. A class field (an in-object data property) rather than the
74
+ * accessor WebIDL prescribes: `Object.defineProperty(this, "isTrusted", accessor)` is a C++
75
+ * runtime path costing ~50 ns, 40-60% of constructing a MouseEvent/KeyboardEvent and more than
76
+ * happy-dom spends on the whole event (docs/deviations.md, Events). Readers see the same
77
+ * value, `Object.keys` and pretty-format output are identical; the flag in `_s` stays the
78
+ * source of truth for dispatch, and `setTrusted` keeps the two in step.
79
+ */
80
+ readonly isTrusted: boolean;
71
81
  /** @internal The per-event state record (non-enumerable prototype accessor). */
72
82
  get _s(): EventState;
73
83
  /** https://dom.spec.whatwg.org/#dom-event-event */
@@ -81,7 +91,6 @@ export declare class Event {
81
91
  get bubbles(): boolean;
82
92
  get cancelable(): boolean;
83
93
  get composed(): boolean;
84
- readonly isTrusted: boolean;
85
94
  /** https://dom.spec.whatwg.org/#dom-event-timestamp — ms since the time origin (performance.now()). */
86
95
  get timeStamp(): number;
87
96
  get defaultPrevented(): boolean;
@@ -105,8 +114,12 @@ export declare class Event {
105
114
  /** https://dom.spec.whatwg.org/#set-the-canceled-flag */
106
115
  export declare function setCanceledFlag(s: EventState): void;
107
116
  /** https://dom.spec.whatwg.org/#concept-event-initialize */
108
- export declare function initializeEvent(s: EventState, type: string, bubbles: boolean, cancelable: boolean): void;
109
- /** @internal Mark an event as trusted (dispatched by the user agent). */
117
+ export declare function initializeEvent(event: Event, type: string, bubbles: boolean, cancelable: boolean): void;
118
+ /**
119
+ * @internal Set an event's isTrusted: true for events the user agent fires, false again when
120
+ * script dispatches one (https://dom.spec.whatwg.org/#dom-eventtarget-dispatchevent step 2).
121
+ * The flag is what dispatch reads; the own property is what script reads.
122
+ */
110
123
  export declare function setTrusted(event: Event, trusted?: boolean): void;
111
124
  /** Name used in subclass constructor errors. */
112
125
  export declare function setToStringTag(ctor: {
@@ -1,14 +1,14 @@
1
1
  import { Event } from "./Event.js";
2
2
  import type { AddEventListenerOptions, EventListenerOptions, EventListenerOrEventListenerObject } from "../webidl.js";
3
- import { type ListenerMap } from "./listeners.js";
3
+ import { type ListenerSlots } from "./listeners.js";
4
4
  import { $listeners } from "../keys.js";
5
5
  export declare class EventTarget {
6
- /** @internal Event type → listener list, or null when there are no listeners (see listeners.ts). */
6
+ /** @internal Event type id → first listener, or null when there are no listeners (see listeners.ts). */
7
7
  /**
8
8
  * Added on first addEventListener (absent otherwise): most nodes never get a listener (React
9
9
  * delegates to its root container), and an always-initialized field cost every node a slot.
10
10
  */
11
- [$listeners]?: ListenerMap | null;
11
+ [$listeners]?: ListenerSlots | null;
12
12
  /** https://dom.spec.whatwg.org/#dom-eventtarget-eventtarget */
13
13
  constructor();
14
14
  /** https://dom.spec.whatwg.org/#dom-eventtarget-addeventlistener */
@@ -3,7 +3,15 @@ import type { EventTarget } from "./EventTarget.js";
3
3
  import type { EventInit } from "../webidl.js";
4
4
  import type { Window } from "../window/Window.js";
5
5
  import type { DataTransfer } from "./DataTransfer.js";
6
- export declare function requireArgs(given: number, needed: number, iface: string): void;
6
+ /**
7
+ * The interface a message names: a constructor (`new.target`) whose `name` is read only when an
8
+ * error is actually thrown. `Function.prototype.name` is a native accessor (~8 ns a read), and
9
+ * the subclass constructors used to read it several times per event to pass names down.
10
+ */
11
+ type Iface = string | {
12
+ readonly name: string;
13
+ };
14
+ export declare function requireArgs(given: number, needed: number, iface: Iface): void;
7
15
  /** Window detection without importing the Window class (avoids an import cycle). */
8
16
  export declare function isWindow(v: unknown): v is Window;
9
17
  export interface UIEventInit extends EventInit {
@@ -306,3 +314,4 @@ export declare class ClipboardEvent extends Event {
306
314
  constructor(type: string, eventInitDict?: ClipboardEventInit | null);
307
315
  get clipboardData(): DataTransfer | null;
308
316
  }
317
+ export {};
@@ -1,4 +1,6 @@
1
1
  import type { Event } from "./Event.js";
2
+ /** Whether an element with tag id `tag` can have activation behavior (the dispatch algorithm's gate). */
3
+ export declare function mayHaveActivationBehavior(tag: number): boolean;
2
4
  export interface ActivationTarget {
3
5
  readonly _hasActivationBehavior?: boolean;
4
6
  _activationBehavior?(event: Event): void;
@@ -21,12 +21,7 @@ export declare function setPostDispatchHook(fn: ((event: Event, target: EventTar
21
21
  * https://dom.spec.whatwg.org/#slotable-assigned-slot
22
22
  */
23
23
  export declare function setAssignedSlotLookup(fn: ((impl: NodeImpl) => EventTarget | null) | null): void;
24
- /**
25
- * "Get the parent" for nodes and shadow roots.
26
- * https://dom.spec.whatwg.org/#get-the-parent (Node: assigned slot or parent; ShadowRoot:
27
- * null for non-composed events whose path starts inside it, otherwise its host).
28
- * `Node._getTheParent` delegates here; Document/Window override it themselves.
29
- */
24
+ /** `Node._getTheParent` delegates here (the dispatch algorithm itself inlines it). */
30
25
  export declare function nodeGetTheParent(node: NodeLike, event: Event): EventTarget | null;
31
26
  /** https://dom.spec.whatwg.org/#retarget */
32
27
  export declare function retarget(a: EventTarget | null, b: EventTarget): EventTarget | null;
@@ -1,32 +1,47 @@
1
1
  import type { AddEventListenerOptions, EventListenerOptions, EventListenerOrEventListenerObject } from "../webidl.js";
2
2
  import type { EventTarget } from "./EventTarget.js";
3
+ export declare const LISTENER_CAPTURE = 1;
4
+ export declare const LISTENER_ONCE = 2;
5
+ export declare const LISTENER_PASSIVE = 4;
6
+ export declare const LISTENER_REMOVED = 8;
7
+ /** A listener's signal and the abort algorithm registered on it, kept so removal can unregister it. */
8
+ declare class AbortBinding {
9
+ signal: AbortSignal;
10
+ onAbort: () => void;
11
+ constructor(signal: AbortSignal, onAbort: () => void);
12
+ }
13
+ /** The seq the next added listener gets: inner invoke stops at listeners at or past it. */
14
+ export declare function listenerSeqLimit(): number;
15
+ /**
16
+ * The booleans pack into `flags` and the signal state lives out of line: a React root holds 142
17
+ * of these and none has a signal.
18
+ */
3
19
  export declare class Listener {
4
20
  callback: EventListenerOrEventListenerObject;
5
- capture: boolean;
6
- once: boolean;
7
- passive: boolean;
8
- removed: boolean;
9
- signal: AbortSignal | null;
10
- /** The abort algorithm registered on `signal`, kept so removal can unregister it. */
11
- onAbort: (() => void) | null;
12
- constructor(callback: EventListenerOrEventListenerObject, capture: boolean, once: boolean, passive: boolean, signal: AbortSignal | null);
13
- }
14
- export declare class ListenerList {
15
- items: Listener[];
16
- /** Number of in-progress invocations iterating `items` (nested dispatches can stack). */
17
- iterating: number;
18
- constructor();
21
+ /** LISTENER_* bits. */
22
+ flags: number;
23
+ /** The next listener of the same type on the same target, in insertion order. */
24
+ next: Listener | null;
25
+ seq: number;
26
+ /** Null unless added with a signal. */
27
+ abort: AbortBinding | null;
28
+ constructor(callback: EventListenerOrEventListenerObject, flags: number);
19
29
  }
20
- export type ListenerMap = Map<string, ListenerList>;
30
+ /** Indexed by type id; a hole or undefined means no listener of that type. */
31
+ export type ListenerSlots = (Listener | undefined)[];
32
+ /** `type`'s id, or -1 when nothing has ever listened for it (so no target has a listener). */
33
+ export declare function typeIdOf(type: string): number;
34
+ /** The first listener for type id `id` (-1 included) on a target whose slots are `slots`. */
35
+ export declare function firstListener(slots: ListenerSlots, id: number): Listener | undefined;
21
36
  /** https://dom.spec.whatwg.org/#concept-flatten-options */
22
37
  export declare function flattenCapture(options: boolean | EventListenerOptions | undefined | null): boolean;
23
38
  /**
24
39
  * https://dom.spec.whatwg.org/#add-an-event-listener
25
40
  *
26
41
  * The most-called DOM entry point in component suites: React adds 142 listeners to every root
27
- * container, so each render() in a test makes 142 calls. It is our top function by self time in
28
- * Base UI's interaction tests and still only 0.2% of their CPU (~0.2 µs a call; bench/README.md
29
- * "Where real suites spend their time").
42
+ * container, so each render() in a test makes 142 calls. It was our top function by self time in
43
+ * Base UI's interaction tests at 0.2% of their CPU (bench/README.md "Where real suites spend their
44
+ * time") before the type-id layout; `dom/react-root-listeners` replays React's calls.
30
45
  */
31
46
  export declare function addEventListener(target: EventTarget, type: string, callback: EventListenerOrEventListenerObject | null | undefined, options: boolean | AddEventListenerOptions | undefined | null): void;
32
47
  /** https://dom.spec.whatwg.org/#dom-eventtarget-removeeventlistener */
@@ -37,3 +52,6 @@ export declare function removeListener(target: EventTarget, type: string, listen
37
52
  export declare function removeAllEventListeners(target: EventTarget): void;
38
53
  /** Whether `target` has at least one listener for `type` (internal fast check for other areas). */
39
54
  export declare function hasListeners(target: EventTarget, type: string): boolean;
55
+ /** Whether `target` has any listener at all. */
56
+ export declare function hasAnyListener(target: EventTarget): boolean;
57
+ export {};
@@ -5,7 +5,6 @@ import type { Element } from "../../nodes/Element.js";
5
5
  import type { Event } from "../../events/Event.js";
6
6
  import { LabelsNodeList } from "./collections.js";
7
7
  import { FileList } from "../../window/FileList.js";
8
- import type { EventTarget } from "../../events/EventTarget.js";
9
8
  import { $badInput, $checked, $checkedSet, $customValidity, $dirtyChecked, $dirtyValue, $files, $indeterminate, $labels, $preApplied, $preChecked, $preCheckedRadio, $preIndeterminate, $selDir, $selEnd, $selStart, $uiValue, $userEdited, $userValidity, $validity, $value } from "../../keys.js";
10
9
  import { type ConstraintValidation, type ValidityState } from "./validation.js";
11
10
  /** https://html.spec.whatwg.org/#value-sanitization-algorithm for each type. */
@@ -49,8 +48,6 @@ export declare class HTMLInputElement extends HTMLElement {
49
48
  [$userValidity]: boolean;
50
49
  /** @internal Use Document.createElement. */
51
50
  constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
52
- /** Sets user validity when a `change` event is dispatched at this control (forms/user-validity.ts). */
53
- _getTheParent(event: Event): EventTarget | null;
54
51
  /** https://html.spec.whatwg.org/#dom-input-type */
55
52
  get type(): string;
56
53
  set type(value: string);
@@ -6,8 +6,6 @@ import { HTMLCollection } from "../../collections/HTMLCollection.js";
6
6
  import { HTMLOptionsCollection, LabelsNodeList } from "./collections.js";
7
7
  import { type ConstraintValidation, type ValidityState } from "./validation.js";
8
8
  import { $customValidity, $labels, $options, $selectedOptions, $settled, $updatingSelectedContent, $userValidity, $validity } from "../../keys.js";
9
- import type { Event } from "../../events/Event.js";
10
- import type { EventTarget } from "../../events/EventTarget.js";
11
9
  export declare class HTMLSelectElement extends HTMLElement {
12
10
  [$customValidity]: string;
13
11
  [$validity]: ValidityState | null;
@@ -25,8 +23,6 @@ export declare class HTMLSelectElement extends HTMLElement {
25
23
  [$userValidity]: boolean;
26
24
  /** @internal Use Document.createElement. */
27
25
  constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
28
- /** Sets user validity when a `change` event is dispatched at this control (forms/user-validity.ts). */
29
- _getTheParent(event: Event): EventTarget | null;
30
26
  _ensureSettled(): void;
31
27
  _cloningSteps(copy: Element): void;
32
28
  _connectedSteps(): void;
@@ -4,8 +4,6 @@ import type { Element } from "../../nodes/Element.js";
4
4
  import { LabelsNodeList } from "./collections.js";
5
5
  import { type ConstraintValidation, type ValidityState } from "./validation.js";
6
6
  import { $customValidity, $dirtyValue, $labels, $rawValue, $selDir, $selEnd, $selStart, $userEdited, $userValidity, $validity } from "../../keys.js";
7
- import type { Event } from "../../events/Event.js";
8
- import type { EventTarget } from "../../events/EventTarget.js";
9
7
  export declare class HTMLTextAreaElement extends HTMLElement {
10
8
  /** Raw value while the dirty value flag is set. */
11
9
  [$rawValue]: string;
@@ -23,8 +21,6 @@ export declare class HTMLTextAreaElement extends HTMLElement {
23
21
  [$userValidity]: boolean;
24
22
  /** @internal Use Document.createElement. */
25
23
  constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
26
- /** Sets user validity when a `change` event is dispatched at this control (forms/user-validity.ts). */
27
- _getTheParent(event: Event): EventTarget | null;
28
24
  get type(): string;
29
25
  /** https://html.spec.whatwg.org/#dom-textarea-defaultvalue — the child text content. */
30
26
  get defaultValue(): string;
@@ -25,9 +25,8 @@ export declare function parserAssociateForm(el: NodeImpl, form: NodeImpl): void;
25
25
  export declare function clearParserAssociation(el: NodeImpl): void;
26
26
  /**
27
27
  * The subtree holding every element whose form owner is `form` (https://html.spec.whatwg.org/#form-owner).
28
- * Outside its descendants only the parser's form element pointer or, for listed elements, a
29
- * `form` attribute naming the form's ID associates an element with it, so without those the
30
- * form's own subtree suffices: O(form) instead of a walk of the whole tree.
28
+ * Outside it only the parser's form element pointer or, for listed elements, a `form` attribute
29
+ * naming the form's ID can associate an element, so without either the form itself is enough.
31
30
  */
32
31
  export declare function formOwnerScope(form: NodeImpl, listed: boolean): NodeImpl;
33
32
  /** All listed elements (excluding image buttons) whose form owner is `form`, in tree order: form.elements. */
@@ -49,9 +48,18 @@ export declare function isActuallyDisabled(el: NodeImpl): boolean;
49
48
  export declare function hasDatalistAncestor(el: NodeImpl): boolean;
50
49
  /** https://html.spec.whatwg.org/#labeled-control */
51
50
  export declare function labeledControl(label: NodeImpl): NodeImpl | null;
52
- /** HTMLLabelElement: a connected `label` has `for` attribute value `forValue` (Document[$forLabels]). */
53
- export declare function addForLabel(label: NodeImpl, forValue: string): void;
54
- /** HTMLLabelElement: `label` was disconnected, or its `for` attribute changed from `forValue`. */
55
- export declare function removeForLabel(label: NodeImpl, forValue: string): void;
56
- /** Label elements whose labeled control is `el`, in tree order. https://html.spec.whatwg.org/#dom-lfe-labels */
57
- export declare function labelsFor(el: NodeImpl, out: NodeImpl[]): NodeImpl[];
51
+ /**
52
+ * Per-document indexes of connected elements by a string key (Document[$forLabels] by `for`
53
+ * value, Document[$radios] by name), each list in no particular order. Kept by the elements'
54
+ * connected, disconnected and attribute change steps.
55
+ */
56
+ export declare function indexAdd(index: Map<string, NodeImpl[]>, key: string, el: NodeImpl): void;
57
+ export declare function indexRemove(index: Map<string, NodeImpl[]>, key: string, el: NodeImpl): void;
58
+ /**
59
+ * Label elements whose labeled control is `el`, in tree order. https://html.spec.whatwg.org/#dom-lfe-labels
60
+ *
61
+ * A label names `el` by `for` (only when `el` has an ID), or is an ancestor without `for` whose
62
+ * first labelable descendant is `el`. The ancestors are O(depth) and the document indexes its
63
+ * connected labels by `for`, so only a detached control with an ID walks its tree.
64
+ */
65
+ export declare function labelsFor(el: NodeImpl): NodeImpl[];
@@ -1,18 +1,17 @@
1
1
  import type { NodeImpl } from "../../nodes/NodeImpl.js";
2
- import type { Event } from "../../events/Event.js";
3
2
  import { $userValidity } from "../../keys.js";
4
3
  /** A control with a user validity flag (input, textarea, select). */
5
4
  export interface UserValidityHolder {
6
5
  [$userValidity]: boolean;
7
6
  }
8
7
  /**
9
- * Called from the controls' `_getTheParent` (the event dispatch algorithm calls it on the
10
- * target first, https://dom.spec.whatwg.org/#concept-event-dispatch step 6.8, before any
11
- * listener runs, so `change` listeners already see the new state). `pathLength` is 1 only for
12
- * that first call: a `change` dispatched at an `<option>` reaches its `<select>` as a parent and
8
+ * Called by the event dispatch algorithm (events/dispatch.ts) with the target of a `change`
9
+ * event, while building the path (https://dom.spec.whatwg.org/#concept-event-dispatch step
10
+ * 6.8) and so before any listener runs: `change` listeners already see the new state. Only the
11
+ * target counts: a `change` dispatched at an `<option>` reaches its `<select>` as a parent and
13
12
  * must not set the select's flag.
14
13
  */
15
- export declare function noteChangeDispatch(el: UserValidityHolder, event: Event): void;
14
+ export declare function noteChangeDispatch(target: NodeImpl): void;
16
15
  /** Whether `el` is an input, textarea or select whose user validity is true. */
17
16
  export declare function hasUserValidity(el: NodeImpl): boolean;
18
17
  /** https://html.spec.whatwg.org/#concept-form-submit step 6.3: set user validity of the form's submittable controls. */
@@ -10,6 +10,7 @@ type Wrapper = {
10
10
  export declare function contentAttr(el: NodeImpl, localName: string): string | null;
11
11
  /** https://dom.spec.whatwg.org/#concept-element-attributes-set-value (null namespace). */
12
12
  export declare function setContentAttr(el: NodeImpl, localName: string, value: string): void;
13
+ /** https://dom.spec.whatwg.org/#concept-element-attributes-remove-by-namespace (null namespace). */
13
14
  export declare function removeContentAttr(el: NodeImpl, localName: string): void;
14
15
  export declare function defineAccessor(C: Ctor, name: string, get: (this: Wrapper) => unknown, set?: (this: Wrapper, v: any) => void): void;
15
16
  /**
@@ -5,7 +5,7 @@ import type { NodeImpl as NodeImplType } from "./nodes/NodeImpl.js";
5
5
  export { NodeCache, nodeCache } from "./nodes/cache.js";
6
6
  export { derivedCache, peekDerivedCache } from "./nodes/derived.js";
7
7
  export { T, tagId, tagName } from "./nodes/tags.js";
8
- export { nextInTree, nextSkippingChildren, previousInTree, nextElementInTree, firstElementChild, lastElementChild, nextElementSibling, previousElementSibling, treeRoot, isInclusiveAncestor, indexOf, childAt, compareTreeOrder, } from "./nodes/traverse.js";
8
+ export { nextInTree, nextSkippingChildren, previousInTree, nextElementInTree, firstElementChild, lastElementChild, nextElementSibling, previousElementSibling, treeRoot, isInclusiveAncestor, indexOf, childAt, } from "./nodes/traverse.js";
9
9
  export { attr, ariaAttr, prefixFlag, hasAttr, getAttribute, setAttribute, removeAttribute, classTokens, asciiLowercase, splitOnAsciiWhitespace, isAsciiWhitespace, } from "./nodes/attributes.js";
10
10
  export { matches, closest, querySelector, querySelectorAll } from "./selectors/index.js";
11
11
  export { serializeChildren, serializeNode } from "./serializer/index.js";
@@ -139,10 +139,10 @@ export declare const $prelude: unique symbol;
139
139
  export declare const $presentationStyle: unique symbol;
140
140
  export declare const $pseudo: unique symbol;
141
141
  export declare const $queries: unique symbol;
142
+ export declare const $radios: unique symbol;
142
143
  export declare const $ranges: unique symbol;
143
144
  export declare const $rawValue: unique symbol;
144
145
  export declare const $readonly: unique symbol;
145
- export declare const $radios: unique symbol;
146
146
  export declare const $readyState: unique symbol;
147
147
  export declare const $rebuildVersion: unique symbol;
148
148
  export declare const $record: unique symbol;
@@ -111,12 +111,6 @@ export declare class Element extends Node {
111
111
  scrollTo(_x?: unknown, _y?: number): void;
112
112
  scrollBy(_x?: unknown, _y?: number): void;
113
113
  scrollIntoView(_arg?: unknown): void;
114
- /**
115
- * Activation behavior (events/activation.ts): none unless a subclass overrides it. Defined here
116
- * so dispatch reading it on every click's path is a prototype hit, not (on a <form>) a named
117
- * property lookup through the form's controls.
118
- */
119
- get _hasActivationBehavior(): boolean;
120
114
  /** Runs when this element becomes connected. Only called when F_CONNECT_HOOK is set. */
121
115
  _connectedSteps(): void;
122
116
  /** Runs when this element becomes disconnected. Only called when F_CONNECT_HOOK is set. */
@@ -140,7 +134,7 @@ export interface Element extends ParentNode, ChildNode, NonDocumentTypeChildNode
140
134
  /** https://dom.spec.whatwg.org/#concept-attach-a-shadow-root */
141
135
  export declare function attachShadowRoot(element: Element, mode: "open" | "closed", clonable: boolean, serializable: boolean, delegatesFocus: boolean, slotAssignment: "named" | "manual"): ShadowRoot;
142
136
  /** `structural`: `filter` reads only tag names and namespaces (HTMLCollection's module comment). */
143
- export declare function cachedCollection(root: NodeImpl, key: string, filter: ((el: NodeImpl) => boolean) | null, structural: boolean): HTMLCollection;
137
+ export declare function cachedCollection(root: NodeImpl, key: string, structural: boolean, filter: ((el: NodeImpl) => boolean) | null): HTMLCollection;
144
138
  /** https://dom.spec.whatwg.org/#concept-getelementsbytagname */
145
139
  export declare function getElementsByTagName(root: NodeImpl, qualifiedName: string): HTMLCollection;
146
140
  /** https://dom.spec.whatwg.org/#concept-getelementsbytagnamens */
@@ -97,7 +97,10 @@ export declare abstract class Node extends EventTarget {
97
97
  appendChild<T extends Node>(node: T): T;
98
98
  replaceChild<T extends Node>(node: Node, child: T): T;
99
99
  removeChild<T extends Node>(child: T): T;
100
- /** https://dom.spec.whatwg.org/#get-the-parent */
100
+ /**
101
+ * https://dom.spec.whatwg.org/#get-the-parent — the dispatch algorithm inlines this for every
102
+ * node but a Document (events/dispatch.ts), so no other Node subclass may override it.
103
+ */
101
104
  _getTheParent(event: Event): import("../events/EventTarget.js").EventTarget | null;
102
105
  /** @internal Used by textContent/innerHTML setters. */
103
106
  _replaceAll(node: Node | null): void;
@@ -32,10 +32,32 @@ export declare function setAttribute(el: NodeImpl, qualifiedName: string, value:
32
32
  export declare function changeAttribute(el: NodeImpl, a: AttrRecord, value: string): void;
33
33
  /** https://dom.spec.whatwg.org/#concept-element-attributes-append */
34
34
  export declare function appendAttribute(el: NodeImpl, a: AttrRecord): void;
35
- /** https://dom.spec.whatwg.org/#concept-element-attributes-remove */
35
+ /**
36
+ * https://dom.spec.whatwg.org/#concept-element-attributes-remove
37
+ *
38
+ * The list is rebuilt at its exact new size in the pass that drops the record (see `addRecord`;
39
+ * `indexOf` + `splice` kept the old backing store and cost about twice as much), and the same
40
+ * pass learns whether another attribute still holds the removed name's presence flag. An
41
+ * element whose last attribute goes returns to `attrs === null`, the state it was created in.
42
+ */
36
43
  export declare function removeAttributeRecord(el: NodeImpl, a: AttrRecord): void;
37
44
  /** removeAttribute(qualifiedName) */
38
45
  export declare function removeAttribute(el: NodeImpl, qualifiedName: string): AttrRecord | null;
46
+ /**
47
+ * https://dom.spec.whatwg.org/#concept-element-attributes-get-by-namespace with a null
48
+ * namespace: the record behind reflected IDL attributes (html/reflect.ts `contentAttr` reads the
49
+ * value the same way).
50
+ */
51
+ export declare function findAttributeByLocalName(el: NodeImpl, localName: string): AttrRecord | null;
52
+ /**
53
+ * https://dom.spec.whatwg.org/#concept-element-attributes-set-value with a null namespace and
54
+ * prefix: what reflected IDL setters (`el.name = ...`, `el.id = ...`) do. Unlike `setAttribute`
55
+ * it matches by namespace and local name, so a namespaced attribute with the same local name is
56
+ * left alone (as in jsdom), and the name needs neither validation nor lowercasing.
57
+ */
58
+ export declare function setAttributeValue(el: NodeImpl, localName: string, value: string): void;
59
+ /** https://dom.spec.whatwg.org/#concept-element-attributes-remove-by-namespace with a null namespace. */
60
+ export declare function removeAttributeByLocalName(el: NodeImpl, localName: string): void;
39
61
  /**
40
62
  * https://dom.spec.whatwg.org/#handle-attribute-changes plus this implementation's core
41
63
  * attribute bookkeeping (id index, class token cache, style flag, document version).
@@ -15,9 +15,9 @@ export declare function append(node: NodeImpl, parent: NodeImpl): NodeImpl;
15
15
  /** https://dom.spec.whatwg.org/#concept-node-insert */
16
16
  export declare function insert(node: NodeImpl, parent: NodeImpl, child: NodeImpl | null, suppressObservers: boolean): void;
17
17
  /**
18
- * For connected steps: the root of the subtree being connected. Its descendants after the current
19
- * node are already in the tree but not connected yet (https://dom.spec.whatwg.org/#concept-node-insert
20
- * runs each node's insertion steps with the whole subtree inserted).
18
+ * For connected steps: the root of the subtree (or shadow tree) being connected, else null. Its
19
+ * nodes after the current one are in the tree but not connected yet, while
20
+ * https://dom.spec.whatwg.org/#concept-node-insert runs every insertion step with all of them in.
21
21
  */
22
22
  export declare function connectingRoot(): NodeImpl | null;
23
23
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctrl/dom",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "A fast DOM for testing React components: a drop-in replacement for jsdom and happy-dom, with Testing Library, user-event and jest-dom built in.",
5
5
  "keywords": [
6
6
  "dom",