@ctrl/dom 0.3.4 → 0.3.5

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 (47) hide show
  1. package/dist/bridge/internal.js +1 -1
  2. package/dist/dom/_chunks/src-aGglm_mj.js +50 -0
  3. package/dist/dom/index.js +1 -1
  4. package/dist/dom/internal.js +1 -1
  5. package/dist/dom/types/collections/HTMLCollection.d.ts +0 -6
  6. package/dist/dom/types/events/EventTarget.d.ts +2 -3
  7. package/dist/dom/types/events/activation.d.ts +10 -3
  8. package/dist/dom/types/events/listeners.d.ts +11 -23
  9. package/dist/dom/types/html/forms/HTMLFormElement.d.ts +3 -12
  10. package/dist/dom/types/html/forms/HTMLInputElement.d.ts +7 -6
  11. package/dist/dom/types/html/forms/HTMLOptionElement.d.ts +3 -4
  12. package/dist/dom/types/html/forms/HTMLSelectElement.d.ts +1 -1
  13. package/dist/dom/types/html/forms/HTMLTextAreaElement.d.ts +0 -2
  14. package/dist/dom/types/html/forms/collections.d.ts +4 -22
  15. package/dist/dom/types/html/forms/control-state.d.ts +1 -10
  16. package/dist/dom/types/html/forms/form-associated.d.ts +2 -19
  17. package/dist/dom/types/html/forms/past-names.d.ts +31 -0
  18. package/dist/dom/types/internal.d.ts +1 -1
  19. package/dist/dom/types/keys.d.ts +2 -1
  20. package/dist/dom/types/nodes/Document.d.ts +12 -7
  21. package/dist/dom/types/nodes/attributes.d.ts +4 -0
  22. package/dist/dom/types/nodes/constants.d.ts +4 -0
  23. package/dist/dom/types/nodes/derived.d.ts +3 -21
  24. package/dist/dom/types/selectors/index.d.ts +6 -0
  25. package/dist/react/_chunks/pure-C0lYKcec.js +1 -0
  26. package/dist/react/_chunks/pure-xBh9btvi.cjs +1 -0
  27. package/dist/react/index.cjs +1 -1
  28. package/dist/react/index.js +1 -1
  29. package/dist/react/pure.cjs +1 -1
  30. package/dist/react/pure.js +1 -1
  31. package/dist/testing-library/index.cjs +2 -2
  32. package/dist/testing-library/index.js +8 -8
  33. package/dist/user-event/index.cjs +16 -16
  34. package/dist/user-event/index.js +17 -17
  35. package/dist/user-event/types/setup/setup.d.ts +2 -1
  36. package/dist/user-event/types/system/keyboard.d.ts +1 -1
  37. package/dist/user-event/types/system/pointer/index.d.ts +2 -2
  38. package/dist/user-event/types/system/pointer/mouse.d.ts +4 -3
  39. package/dist/user-event/types/system/pointer/pointer.d.ts +3 -3
  40. package/dist/user-event/types/system/pointer/shared.d.ts +9 -0
  41. package/dist/user-event/types/utils/focus/getTabDestination.d.ts +1 -1
  42. package/dist/user-event/types/utils/misc/getTreeDiff.d.ts +1 -1
  43. package/dist/user-event/types/utils/misc/level.d.ts +3 -4
  44. package/package.json +1 -1
  45. package/dist/dom/_chunks/src-DR6mBc_4.js +0 -50
  46. package/dist/react/_chunks/pure-B2u-ZqTR.js +0 -1
  47. package/dist/react/_chunks/pure-DCcqflDh.cjs +0 -1
package/dist/dom/index.js CHANGED
@@ -1 +1 @@
1
- export{Mr as AbstractRange,bs as AnimationEvent,$a as Attr,an as Audio,xs as BeforeUnloadEvent,co as CDATASection,t as CSS,bi as CSSConditionRule,xi as CSSContainerRule,Si as CSSFontFaceRule,Ci as CSSGroupingRule,wi as CSSImportRule,Ti as CSSKeyframeRule,Ei as CSSKeyframesRule,Di as CSSLayerBlockRule,Oi as CSSLayerStatementRule,ki as CSSMediaRule,Ai as CSSNamespaceRule,ji as CSSNestedDeclarations,Mi as CSSPageRule,Ni as CSSPropertyRule,Pi as CSSRule,Fi as CSSRuleList,Ii as CSSScopeRule,Li as CSSStartingStyleRule,ia as CSSStyleDeclaration,Ri as CSSStyleRule,zi as CSSStyleSheet,Bi as CSSSupportsRule,lo as CharacterData,_r as Clipboard,Is as ClipboardEvent,vr as ClipboardItem,Ss as CloseEvent,Lr as CommandEvent,uo as Comment,Ls as CompositionEvent,ka as CustomElementRegistry,Cs as CustomEvent,rr as CustomStateSet,wr as DOMImplementation,Ba as DOMMatrix,Ba as WebKitCSSMatrix,Va as DOMMatrixReadOnly,Sr as DOMParser,Ha as DOMPoint,Ua as DOMPointReadOnly,O as DOMQuad,Wa as DOMRect,Wa as SVGRect,Ga as DOMRectList,Ka as DOMRectReadOnly,eo as DOMStringMap,to as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,Tr as Document,Tr as HTMLDocument,so as DocumentFragment,oo as DocumentType,Rs as DragEvent,Fa as Element,ir as ElementInternals,ws as ErrorEvent,rc as Event,cs as EventTarget,it as FileList,P as FileReader,zs as FocusEvent,z as FormData,Ts as FormDataEvent,dn as HTMLAnchorElement,fn as HTMLAreaElement,on as HTMLAudioElement,pn as HTMLBRElement,mn as HTMLBaseElement,hn as HTMLBodyElement,Y as HTMLButtonElement,gn as HTMLCanvasElement,po as HTMLCollection,_n as HTMLDListElement,vn as HTMLDataElement,H as HTMLDataListElement,rn as HTMLDetailsElement,in as HTMLDialogElement,yn as HTMLDirectoryElement,bn as HTMLDivElement,ar as HTMLElement,xn as HTMLEmbedElement,K as HTMLFieldSetElement,Sn as HTMLFontElement,ua as HTMLFormControlsCollection,V as HTMLFormElement,Cn as HTMLFrameElement,wn as HTMLFrameSetElement,Tn as HTMLHRElement,En as HTMLHeadElement,Dn as HTMLHeadingElement,On as HTMLHtmlElement,kn as HTMLIFrameElement,An as HTMLImageElement,nt as HTMLInputElement,jn as HTMLLIElement,J as HTMLLabelElement,q as HTMLLegendElement,Zt as HTMLLinkElement,Mn as HTMLMapElement,Nn as HTMLMarqueeElement,sn as HTMLMediaElement,Pn as HTMLMenuElement,Fn as HTMLMetaElement,U as HTMLMeterElement,In as HTMLModElement,Ln as HTMLOListElement,Rn as HTMLObjectElement,X as HTMLOptGroupElement,Z as HTMLOptionElement,da as HTMLOptionsCollection,W as HTMLOutputElement,zn as HTMLParagraphElement,Bn as HTMLParamElement,Vn as HTMLPictureElement,Hn as HTMLPreElement,G as HTMLProgressElement,Un as HTMLQuoteElement,Qt as HTMLScriptElement,et as HTMLSelectElement,tn as HTMLSlotElement,Wn as HTMLSourceElement,Gn as HTMLSpanElement,$t as HTMLStyleElement,Kn as HTMLTableCaptionElement,qn as HTMLTableCellElement,Jn as HTMLTableColElement,Yn as HTMLTableElement,Xn as HTMLTableRowElement,Zn as HTMLTableSectionElement,nn as HTMLTemplateElement,tt as HTMLTextAreaElement,Qn as HTMLTimeElement,en as HTMLTitleElement,$n as HTMLTrackElement,er as HTMLUListElement,tr as HTMLUnknownElement,cn as HTMLVideoElement,Es as HashChangeEvent,br as History,nr as Image,Bs as InputEvent,j as IntersectionObserver,M as IntersectionObserverEntry,Vs as KeyboardEvent,xr as Location,ot as MathMLElement,ln as MediaError,Vi as MediaList,hi as MediaQueryList,vi as MediaQueryListEvent,Ds as MessageEvent,Hs as MouseEvent,w as MutationObserver,Ho as MutationRecord,Za as NamedNodeMap,yr as Navigator,bo as Node,kr as NodeFilter,Ar as NodeIterator,Uo as NodeList,Q as Option,Os as PageTransitionEvent,Us as PointerEvent,ks as PopStateEvent,do as ProcessingInstruction,As as ProgressEvent,js as PromiseRejectionEvent,fa as RadioNodeList,Nr as Range,N as ResizeObserver,k as ResizeObserverEntry,A as ResizeObserverSize,st as SVGAElement,qt as SVGAnimatedPreserveAspectRatio,Jt as SVGAnimatedRect,ct as SVGAnimatedString,lt as SVGCircleElement,ut as SVGClipPathElement,dt as SVGDefsElement,ft as SVGDescElement,pt as SVGElement,mt as SVGEllipseElement,ht as SVGFilterElement,gt as SVGForeignObjectElement,_t as SVGGElement,vt as SVGGeometryElement,yt as SVGGradientElement,bt as SVGGraphicsElement,xt as SVGImageElement,St as SVGLineElement,Ct as SVGLinearGradientElement,wt as SVGMarkerElement,Tt as SVGMaskElement,Et as SVGMetadataElement,Yt as SVGNumber,Dt as SVGPathElement,Ot as SVGPatternElement,kt as SVGPolygonElement,At as SVGPolylineElement,Xt as SVGPreserveAspectRatio,jt as SVGRadialGradientElement,Mt as SVGRectElement,Nt as SVGSVGElement,Pt as SVGScriptElement,Ft as SVGStopElement,It as SVGStyleElement,Lt as SVGSwitchElement,Rt as SVGSymbolElement,zt as SVGTSpanElement,Bt as SVGTextContentElement,Vt as SVGTextElement,Ht as SVGTextPathElement,Ut as SVGTextPositioningElement,Wt as SVGTitleElement,Gt as SVGUseElement,Kt as SVGViewElement,hr as Screen,Or as Selection,no as ShadowRoot,Pr as StaticRange,mr as Storage,Ms as StorageEvent,Hi as StyleSheet,Ui as StyleSheetList,Ns as SubmitEvent,fo as Text,Ws as TextEvent,un as TimeRanges,Ps as ToggleEvent,Gs as Touch,Ks as TouchEvent,qs as TouchList,Fs as TransitionEvent,jr as TreeWalker,Js as UIEvent,la as ValidityState,gr as VisualViewport,Ys as WheelEvent,lr as Window,Er as XMLDocument,F as XMLHttpRequest,I as XMLHttpRequestEventTarget,L as XMLHttpRequestUpload,Cr as XMLSerializer,ur as createWindow,gs as currentDocument,_s as currentWindow,vs as currentWindowOrNull,Kr as getComputedStyle,R as installGlobals,ys as setCurrentWindow}from"./_chunks/src-DR6mBc_4.js";
1
+ export{Mr as AbstractRange,Ss as AnimationEvent,za as Attr,an as Audio,Cs as BeforeUnloadEvent,Ja as CDATASection,t as CSS,bi as CSSConditionRule,xi as CSSContainerRule,Si as CSSFontFaceRule,Ci as CSSGroupingRule,wi as CSSImportRule,Ti as CSSKeyframeRule,Ei as CSSKeyframesRule,Di as CSSLayerBlockRule,Oi as CSSLayerStatementRule,ki as CSSMediaRule,Ai as CSSNamespaceRule,ji as CSSNestedDeclarations,Mi as CSSPageRule,Ni as CSSPropertyRule,Pi as CSSRule,Fi as CSSRuleList,Ii as CSSScopeRule,Li as CSSStartingStyleRule,ia as CSSStyleDeclaration,Ri as CSSStyleRule,zi as CSSStyleSheet,Bi as CSSSupportsRule,Ya as CharacterData,_r as Clipboard,Rs as ClipboardEvent,vr as ClipboardItem,ws as CloseEvent,Lr as CommandEvent,Xa as Comment,zs as CompositionEvent,ha as CustomElementRegistry,Ts as CustomEvent,rr as CustomStateSet,wr as DOMImplementation,Ea as DOMMatrix,Ea as WebKitCSSMatrix,Da as DOMMatrixReadOnly,Sr as DOMParser,Oa as DOMPoint,ka as DOMPointReadOnly,O as DOMQuad,Aa as DOMRect,Aa as SVGRect,ja as DOMRectList,Ma as DOMRectReadOnly,Ba as DOMStringMap,Va as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,Tr as Document,Tr as HTMLDocument,qa as DocumentFragment,Ka as DocumentType,Bs as DragEvent,xa as Element,ir as ElementInternals,Es as ErrorEvent,ac as Event,us as EventTarget,it as FileList,P as FileReader,Vs as FocusEvent,z as FormData,Ds as FormDataEvent,dn as HTMLAnchorElement,fn as HTMLAreaElement,on as HTMLAudioElement,pn as HTMLBRElement,mn as HTMLBaseElement,hn as HTMLBodyElement,Y as HTMLButtonElement,gn as HTMLCanvasElement,$a as HTMLCollection,_n as HTMLDListElement,vn as HTMLDataElement,H as HTMLDataListElement,rn as HTMLDetailsElement,in as HTMLDialogElement,yn as HTMLDirectoryElement,bn as HTMLDivElement,ar as HTMLElement,xn as HTMLEmbedElement,K as HTMLFieldSetElement,Sn as HTMLFontElement,ua as HTMLFormControlsCollection,V as HTMLFormElement,Cn as HTMLFrameElement,wn as HTMLFrameSetElement,Tn as HTMLHRElement,En as HTMLHeadElement,Dn as HTMLHeadingElement,On as HTMLHtmlElement,kn as HTMLIFrameElement,An as HTMLImageElement,nt as HTMLInputElement,jn as HTMLLIElement,J as HTMLLabelElement,q as HTMLLegendElement,Zt as HTMLLinkElement,Mn as HTMLMapElement,Nn as HTMLMarqueeElement,sn as HTMLMediaElement,Pn as HTMLMenuElement,Fn as HTMLMetaElement,U as HTMLMeterElement,In as HTMLModElement,Ln as HTMLOListElement,Rn as HTMLObjectElement,X as HTMLOptGroupElement,Z as HTMLOptionElement,da as HTMLOptionsCollection,W as HTMLOutputElement,zn as HTMLParagraphElement,Bn as HTMLParamElement,Vn as HTMLPictureElement,Hn as HTMLPreElement,G as HTMLProgressElement,Un as HTMLQuoteElement,Qt as HTMLScriptElement,et as HTMLSelectElement,tn as HTMLSlotElement,Wn as HTMLSourceElement,Gn as HTMLSpanElement,$t as HTMLStyleElement,Kn as HTMLTableCaptionElement,qn as HTMLTableCellElement,Jn as HTMLTableColElement,Yn as HTMLTableElement,Xn as HTMLTableRowElement,Zn as HTMLTableSectionElement,nn as HTMLTemplateElement,tt as HTMLTextAreaElement,Qn as HTMLTimeElement,en as HTMLTitleElement,$n as HTMLTrackElement,er as HTMLUListElement,tr as HTMLUnknownElement,cn as HTMLVideoElement,Os as HashChangeEvent,br as History,nr as Image,Hs as InputEvent,j as IntersectionObserver,M as IntersectionObserverEntry,Us as KeyboardEvent,xr as Location,ot as MathMLElement,ln as MediaError,Vi as MediaList,hi as MediaQueryList,vi as MediaQueryListEvent,ks as MessageEvent,Ws as MouseEvent,w as MutationObserver,Ko as MutationRecord,La as NamedNodeMap,yr as Navigator,lo as Node,kr as NodeFilter,Ar as NodeIterator,qo as NodeList,Q as Option,As as PageTransitionEvent,Gs as PointerEvent,js as PopStateEvent,Za as ProcessingInstruction,Ms as ProgressEvent,Ns as PromiseRejectionEvent,fa as RadioNodeList,Nr as Range,N as ResizeObserver,k as ResizeObserverEntry,A as ResizeObserverSize,st as SVGAElement,qt as SVGAnimatedPreserveAspectRatio,Jt as SVGAnimatedRect,ct as SVGAnimatedString,lt as SVGCircleElement,ut as SVGClipPathElement,dt as SVGDefsElement,ft as SVGDescElement,pt as SVGElement,mt as SVGEllipseElement,ht as SVGFilterElement,gt as SVGForeignObjectElement,_t as SVGGElement,vt as SVGGeometryElement,yt as SVGGradientElement,bt as SVGGraphicsElement,xt as SVGImageElement,St as SVGLineElement,Ct as SVGLinearGradientElement,wt as SVGMarkerElement,Tt as SVGMaskElement,Et as SVGMetadataElement,Yt as SVGNumber,Dt as SVGPathElement,Ot as SVGPatternElement,kt as SVGPolygonElement,At as SVGPolylineElement,Xt as SVGPreserveAspectRatio,jt as SVGRadialGradientElement,Mt as SVGRectElement,Nt as SVGSVGElement,Pt as SVGScriptElement,Ft as SVGStopElement,It as SVGStyleElement,Lt as SVGSwitchElement,Rt as SVGSymbolElement,zt as SVGTSpanElement,Bt as SVGTextContentElement,Vt as SVGTextElement,Ht as SVGTextPathElement,Ut as SVGTextPositioningElement,Wt as SVGTitleElement,Gt as SVGUseElement,Kt as SVGViewElement,hr as Screen,Or as Selection,Ha as ShadowRoot,Pr as StaticRange,mr as Storage,Ps as StorageEvent,Hi as StyleSheet,Ui as StyleSheetList,Fs as SubmitEvent,Qa as Text,Ks as TextEvent,un as TimeRanges,Is as ToggleEvent,qs as Touch,Js as TouchEvent,Ys as TouchList,Ls as TransitionEvent,jr as TreeWalker,Xs as UIEvent,la as ValidityState,gr as VisualViewport,Zs as WheelEvent,lr as Window,Er as XMLDocument,F as XMLHttpRequest,I as XMLHttpRequestEventTarget,L as XMLHttpRequestUpload,Cr as XMLSerializer,ur as createWindow,vs as currentDocument,ys as currentWindow,bs as currentWindowOrNull,Kr as getComputedStyle,R as installGlobals,xs as setCurrentWindow}from"./_chunks/src-aGglm_mj.js";
@@ -1 +1 @@
1
- import{$ as e,$c as t,$d as n,$i as r,$l as i,$o as a,$r as o,$s as s,$u as c,Aa as ee,Ac as te,Ad as ne,Af as re,Al as ie,Ao as ae,Au as oe,B as se,Bc as ce,Bd as le,Bf as ue,Bl as l,Bo as de,Br as fe,Bu as pe,C as me,Ca as u,Cc as he,Cd as ge,Cf as _e,Cl as ve,Co as ye,Cu as be,Da as d,Dc as xe,Dd as Se,Df as Ce,Dl as we,Do as Te,Dr as Ee,Du as De,Ea as f,Ec as Oe,Ed as ke,Ef as Ae,El as p,Eo as je,Eu as Me,Fc as m,Fd as h,Ff as g,Fl as _,Fo as v,Fr as y,Fu as b,Gc as x,Gd as Ne,Gf as Pe,Gi as Fe,Gl as S,Go as Ie,Gr as Le,Gu as Re,Hc as ze,Hd as Be,Hf as Ve,Hl as He,Hr as Ue,Hu as We,Ia as Ge,Ic as Ke,Id as qe,If as Je,Il as Ye,Io as Xe,Ir as Ze,Iu as Qe,Ja as $e,Jc as et,Jd as C,Jf as tt,Ji as nt,Jl as rt,Jo as it,Jr as at,Ju as ot,Kc as st,Kd as ct,Kf as lt,Ki as ut,Kl as dt,Ko as ft,Kr as pt,Ku as mt,La as ht,Lc as gt,Ld as _t,Lf as vt,Ll as yt,Lo as bt,Lu as xt,Ma as St,Mc as Ct,Md as wt,Mf as Tt,Ml as Et,Mo as Dt,Mu as Ot,Na as kt,Nc as At,Nd as jt,Nf as Mt,Nl as Nt,No as Pt,Nu as Ft,Oa as w,Oc as It,Od as Lt,Of as Rt,Ol as zt,Oo as Bt,Ou as Vt,Pa as Ht,Pc as Ut,Pd as Wt,Pf as Gt,Pl as Kt,Po as qt,Pu as Jt,Qa as Yt,Qc as Xt,Qd as Zt,Qi as Qt,Ql as $t,Qo as en,Qr as tn,Qs as nn,Qu as rn,Ra as an,Rc as on,Rd as sn,Rf as cn,Rl as ln,Ro as un,Rr as dn,Ru as fn,S as pn,Sa as mn,Sc as hn,Sd as gn,Sf as _n,Sl as vn,So as yn,Su as bn,Ta as xn,Tc as Sn,Td as Cn,Tf as wn,Tl as Tn,To as En,Tu as Dn,Uc as T,Ud as On,Uf as kn,Ul as E,Uo as An,Ur as jn,Uu as Mn,Vc as Nn,Vd as Pn,Vf as Fn,Vl as In,Vo as Ln,Vr as Rn,Vu as zn,Wc as Bn,Wd as Vn,Wf as Hn,Wi as Un,Wl as Wn,Wo as Gn,Wr as Kn,Wu as D,Xa as qn,Xc as Jn,Xd as Yn,Xf as Xn,Xi as Zn,Xl as Qn,Xo as $n,Xr as er,Xs as O,Xu as tr,Ya as nr,Yc as rr,Yd as k,Yf as ir,Yi as ar,Yl as or,Yo as sr,Yr as cr,Yu as lr,Zc as ur,Zd as dr,Zf as fr,Zi as pr,Zl as mr,Zo as hr,Zr as gr,Zs as _r,Zu as vr,_ as yr,_a as br,_c as xr,_d as A,_f as Sr,_i as Cr,_l as wr,_o as Tr,_u as Er,a as Dr,aa as Or,ac as kr,ad as Ar,af as jr,ai as Mr,al as Nr,ao as Pr,as as Fr,at as j,au as Ir,b as Lr,ba as Rr,bc as zr,bd as Br,bf as Vr,bl as Hr,bu as Ur,c as Wr,ca as Gr,cc as Kr,cd as qr,cf as Jr,ci as Yr,cl as Xr,cr as Zr,cu as Qr,d as $r,dc as ei,dd as ti,df as ni,di as ri,dl as ii,dr as M,ds as ai,du as oi,ea as si,ec as ci,ed as li,ef as ui,ei as di,el as N,es as fi,eu as pi,f as mi,fc as hi,fd as gi,ff as _i,fi as vi,fl as yi,fr as bi,fs as xi,fu as Si,g as Ci,ga as wi,gc as Ti,gd as Ei,gf as Di,gi as Oi,gl as ki,go as Ai,gu as ji,h as Mi,ha as Ni,hc as Pi,hd as Fi,hf as Ii,hl as Li,ho as Ri,hs as zi,hu as Bi,i as Vi,ic as Hi,id as Ui,if as Wi,ii as Gi,il as P,io as Ki,is as qi,iu as Ji,ja as Yi,jc as Xi,jd as F,jf as Zi,jl as Qi,jo as $i,ju as ea,kc as ta,kd as na,kf as ra,kl as I,ko as ia,ku as aa,l as oa,lc as sa,ld as ca,lf as la,li as ua,ll as da,lr as L,ls as fa,lu as pa,m as R,ma,mc as ha,md as ga,mf as _a,mi as va,ml as ya,mo as ba,ms as xa,mu as Sa,n as Ca,na as wa,nc as Ta,nd as Ea,nf as Da,ni as Oa,nl as ka,ns as Aa,nu as ja,o as Ma,oa as Na,oc as Pa,od as Fa,of as Ia,oi as La,ol as Ra,or as za,os as Ba,ou as Va,p as Ha,pa as Ua,pc as Wa,pd as Ga,pf as Ka,pi as qa,pl as z,po as Ja,pr as Ya,ps as Xa,pu as Za,qa as Qa,qc as $a,qd as eo,qf as to,qi as no,ql as ro,qo as io,qr as ao,qu as oo,r as so,ra as co,rd as lo,rf as uo,ri as fo,rl as po,ro as mo,rs as ho,rt as go,ru as _o,s as vo,sa as yo,sc as bo,sd as xo,sf as So,si as Co,sl as wo,sr as To,ss as Eo,su as Do,ta as Oo,tc as ko,td as Ao,tf as jo,ti as Mo,tl as No,ts as Po,tu as Fo,u as Io,uc as Lo,ud as Ro,uf as zo,ui as Bo,ul as Vo,us as Ho,uu as Uo,v as Wo,va as Go,vc as Ko,vd as qo,vf as Jo,vl as Yo,vo as Xo,vs as B,vu as Zo,wa as Qo,wc as $o,wd as es,wf as ts,wl as ns,wo as rs,wu as is,x as as,xa as os,xc as ss,xd as cs,xf as ls,xl as us,xo as ds,xu as fs,y as ps,ya as ms,yc as hs,yd as gs,yf as _s,yi as vs,yl as ys,yo as bs,yu as xs,za as Ss,zc as V,zd as Cs,zf as ws,zl as Ts,zo as Es,zr as Ds,zu as Os}from"./_chunks/src-DR6mBc_4.js";import{constants as ks,createContext as As,runInContext as js}from"node:vm";import*as H from"node:diagnostics_channel";let U=null;function targets(){let e=/* @__PURE__ */ new Set,t=M();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(L.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 W=null;function captureInterfaceBaseline(){if(U===null){U=[],W=/* @__PURE__ */ new WeakSet;for(let e of targets())U.push(snapshot(e)),W.add(e);ownObjectCreateMaps()}}let Ms=null;function ownObjectCreateMaps(){if(U===null)return;let e=Ms??=js(`(prototypes) => prototypes.map((p) => Object.create(p))`,As(ks.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<U.length;e++){let n=U[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=W;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(U===null)return 0;let e=0;for(let t=0;t<U.length;t++){let n=U[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 G=`ctrl-dom:span`,K=typeof H.tracingChannel==`function`?H.tracingChannel(G):null;function spanChannel(){return K}function tracing(){return K!==null&&K.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=C();return K.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=C();return K.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=C()-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[E]!==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 q=null;function setNodeDescriber(e){q=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(q!==null)try{let t=q(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 J=`sentry-tests:failure`;let Y=null;function setFailureSnapshot(e){Y=e}function subscribeTestFailures(e){let t=H.channel(J),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}),Y!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:Y(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}var FileState=class{hooks;url;constructor(){this.hooks=/* @__PURE__ */ new Map,this.url=null}};const X=/* @__PURE__ */ new WeakMap;function stateOf(e){let t=X.get(e);return t===void 0&&X.set(e,t=new FileState),t}function registerTestHooks(e,t){let n=B();if(n===null)return;let r=stateOf(n).hooks;r.set(e,{...r.get(e),...t})}function testHooks(){let e=B(),t=e===null?void 0:X.get(e);return t===void 0?[]:[...t.hooks.values()]}function resetWindowBetweenFiles(e){let t=stateOf(e);for(let e of t.hooks.values())try{e.fileEnd?.()}catch{}ct(),bi(e);let n=e[A];if(n!==null){for(let e of n)e.clear(e.handle);n.clear()}e[p]=null,e[D]=null,e[I]=null,e[l]=null;let r=e.document;r.getSelection()?.removeAllRanges();let i=r.body;i!==null&&(i.replaceChildren(),removeAttributes(i)),r.documentElement!==null&&removeAttributes(r.documentElement),e.localStorage.clear(),e.sessionStorage.clear(),e[T]=null;let a=t.url??=e.location.href;e.location.href!==a&&e._setURL(new URL(a));let o=e.history;o[z]=[{url:a,state:null}],o[S]=0}function removeAttributes(e){let t=e.getAttributeNames();for(let n=0;n<t.length;n++)e.removeAttribute(t[n])}function implOf(e){return e[E]??e}function isTypingType(e){return f(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===O.input?isTypingType(u(t))&&R(t):t.tag===O.textarea?R(t):jn(t)}function supportsSelection(e){let t=implOf(e);return t.tag===O.textarea||t.tag===O.input&&d(u(t))}function hasUIValue(e){let t=implOf(e);return t.tag===O.textarea||t.tag===O.input&&w(u(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===O.input){let e=t.node;return e[V].uiValue??e.value}return t.tag===O.textarea?t.node.value:``}function setUIValue(e,t){let n=implOf(e);if(n.tag===O.input){let e=n.node,r=u(n);if(w(r)!==0)return;let i=go(r,t,n);n.doc[F]++,e[V].value=i,e[V].dirtyValue=!0,e[V].userEdited=!0,e[V].uiValue=i===t?null:t,e[V].badInput=i===``&&t!==``&&r!==5&&!f(r);let a=t.length;e[V].selStart>a&&(e[V].selStart=a),e[V].selEnd>a&&(e[V].selEnd=a)}else if(n.tag===O.textarea){let e=n.node;n.doc[F]++,e[V].value=t,e[V].dirtyValue=!0,e[V].userEdited=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===O.input){let e=t.node;e[V].uiValue=null,e[V].badInput=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[V].selStart,n),end:Math.min(t[V].selEnd,n),direction:t[V].selDir}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==O.input&&i.tag!==O.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[V].selStart=s,a[V].selEnd=c,a[V].selDir=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===O.input&&u(n)===17&&(n.doc[F]++,n.node[V].files=j(t))}function setOptionSelectedFromUI(t,n){let r=implOf(t);if(r.tag!==O.option)return;let i=r.node;i._setSelectedness(n),i[P]=!0;let a=e(r);if(a!==null){let e=a.node;n&&e._deselectOthers(r),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===O.input&&n.node._setCheckedness(t,!0)}const Ns=L.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===Ns||typeof n!=`function`||se.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{Pa as $_proto__,bo as $aboutBase,Kr as $active,sa as $assocGen,Lo as $attr,ei as $attributes,hi as $availableToElementInternals,Wa as $baseFor,ha as $baseOverride,Pi as $baseURL,Ti as $baseVersion,xr as $benign,Ko as $block,hs as $blockParsed,zr as $blockText,ss as $byCtor,hn as $byName,he as $cache,$o as $callback,Sn as $childNodes,Oe as $childWindows,xe as $children,It as $classList,ta as $clipboard,te as $clonable,Xi as $closed,Ct as $coll,At as $compiled,Ut as $compiledFor,m as $condition,Ke as $constructed,gt as $constructingEntryList,on as $contentType,V as $control,ce as $controlsCache,Nn as $controlsDoc,ze as $controlsVersion,T as $cookieJar,Bn as $cookies,x as $css,st as $current,$a as $customElements,et as $customValidity,rr as $cx,Jn as $data,ur as $dataset,Xt as $declarative,t as $defaultNamespace,N as $defaultValueOverride,No as $delegatesFocus,ka as $derived,po as $devicePixelRatio,P as $dirtiness,Nr as $disabled,Ra as $disallowModification,wo as $doc,Xr as $dropEffect,da as $ec,Vo as $effectAllowed,ii as $el,yi as $elements,z as $entries,ya as $eo,Li as $error,ki as $file,wr as $files,Yo as $fill,ys as $filter,Hr as $firingSubmissionEvents,us as $focused,vn as $forLabels,ve as $form,ns as $formAttrSeen,Tn as $forms,p as $frameCallbacks,we as $frameElement,zt as $frameId,I as $frameTask,ie as $frameTime,Qi as $generation,Et as $globalObject,Nt as $hasTransients,Kt as $height,_ as $history,Ye as $home,yt as $host,ln as $href,Ts as $id,l as $idleCallbacks,In as $idleId,He as $ids,E as $impl,Wn as $implementation,S as $index,dt as $indexed,ro as $inflight,rt as $info,or as $innerHeight,Qn as $innerWidth,mr as $isHTML,$t as $items,i as $keyText,pi as $kind,Fo as $labels,ja as $layerName,_o as $list,Ji as $listeners,Ir as $localStorage,Va as $location,Do as $lockedForReset,Qr as $matches,pa as $media,Uo as $mediaQueryLists,oi as $mode,Si as $name,Za as $names,Sa as $namespaces,Bi as $navigator,ji as $nodes,Er as $onchange,Zo as $options,xs as $owner,Ur as $ownerNode,fs as $ownerRule,bn as $parent,be as $parentRule,is as $parentWindow,Dn as $pastNames,Me as $pointerBeforeReference,De as $prefix,Vt as $prelude,aa as $presentationStyle,oe as $pseudo,ea as $queries,Ot as $radios,Ft as $ranges,Jt as $readonly,b as $readyState,Qe as $rebuildVersion,xt as $record,fn as $records,Os as $reference,pe as $result,zn as $root,We as $rules,Mn as $running,D as $runningFrame,Re as $sc,mt as $screen,oo as $scrollRestoration,ot as $scrollX,lr as $scrollY,tr as $selSet,vr as $selectedOptions,rn as $selectedness,c as $selection,li as $selector,Ao as $serializable,Ea as $sessionStorage,lo as $settled,Ui as $shadowRoot,Ar as $shed,Fa as $sheet,xo as $sheets,qr as $slotAssignment,ca as $so,Ro as $states,ti as $style,gi as $styleVersion,Ga as $supportsText,ga as $systemId,Fi as $target,Ei as $targets,A as $tasks,qo as $timers,gs as $title,Br as $treeVersion,cs as $type,gn as $types,ge as $updating,es as $updatingSelectedContent,Cn as $uri,ke as $url,Se as $userActivation,Lt as $userValidity,na as $validity,ne as $value,F as $version,wt as $visualViewport,jt as $w,Wt as $whatToShow,h as $whenDefined,qe as $width,_t as $window,sn as $writeBuffer,Cs as $x,le as $xhr,Pn as $y,Be as $z,Wi as ATTRIBUTE_NODE,Ba as AttrRecord,jr as CDATA_SECTION_NODE,Ia as COMMENT_NODE,pr as COMPAT,Qt as COMPAT_PROFILES,r as DEFAULT_COMPAT,So as DOCUMENT_FRAGMENT_NODE,Jr as DOCUMENT_NODE,la as DOCUMENT_POSITION_CONTAINED_BY,zo as DOCUMENT_POSITION_CONTAINS,ni as DOCUMENT_POSITION_DISCONNECTED,_i as DOCUMENT_POSITION_FOLLOWING,Ka as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,_a as DOCUMENT_POSITION_PRECEDING,Ii as DOCUMENT_TYPE_NODE,Or as DeclBlock,Di as ELEMENT_NODE,Sr as ENTITY_NODE,Jo as ENTITY_REFERENCE_NODE,Hi as EventState,J as FAILURE_CHANNEL,_s as F_ADOPT_HOOK,Vr as F_ARIA_ATTRS,ls as F_ATTR_HOOK,_n as F_CE_CUSTOM,_e as F_CHILDREN_HOOK,ts as F_CHILD_LIST,wn as F_CONNECTED,Ae as F_CONNECT_HOOK,Ce as F_CONTENTEDITABLE_ATTR,Rt as F_CUSTOM,ra as F_DATA_ATTRS,re as F_FACE,Zi as F_FORM_ATTR,Tt as F_HAS_SHADOW,Mt as F_HAS_STYLE_ATTR,Gt as F_HTML,g as F_INERT_ATTR,Je as F_MO_REGISTERED,vt as F_RANGE,cn as F_RANGE_BELOW,ws as F_RANGE_MARKS,ue as F_ROLE_ATTR,Fn as F_SHADOW_ROOT,Ve as F_TABINDEX_ATTR,ee as GLOBAL_EVENT_HANDLER_EVENTS,Ja as HTMLCollection,kn as HTML_NS,mn as INPUT_TYPE_NAMES,Hn as MATHML_NS,Pe as NOTATION_NODE,ut as NodeCache,Eo as NodeImpl,An as NodeList,lt as PROCESSING_INSTRUCTION_NODE,G as SPAN_CHANNEL,to as SVG_NS,O as T,tt as TEXT_NODE,On as VirtualClock,Vn as VirtualTimeout,Yi as WINDOW_EVENT_HANDLER_EVENTS,ir as XLINK_NS,Xn as XMLNS_NS,fr as XML_NS,Co as adoptedStyleSheetsOf,ae as ariaAttr,$i as asciiLowercase,rs as assignManually,En as assignedElements,je as assignedNodes,Te as assignedSlot,Ge as attachShadowRoot,Dt as attr,za as attrAssociatedElement,To as attrAssociatedElements,Yt as attrNode,Ne as canSkipZeroDelayWait,captureInterfaceBaseline,it as childAt,Pt as classTokens,clearUIValue,eo as clockNow,k as clockStats,Ai as closest,y as compareBoundaryPoints,si as compatExposes,ao as computedDisplay,at as computedValue,cr as computedVisibility,dn as constructEntryList,Ca as controlValue,Ee as createEvent,j as createFileList,Yr as createLinkSheet,er as currentStyleVersion,Ds as defaultButton,Oo as deferredCompatMembers,ft as derivedCache,describeCall,describeNode,fa as dispatch,nt as dispatchTrusted,ba as ensureCollectionIndexGetters,Gn as ensureIndexGetters,Oi as evaluateMediaQueryList,yo as faceState,Bt as findFlattenedSlottables,ia as findSlot,ar as fireAnEvent,Zn as fireSyntheticPointerEvent,sr as firstElementChild,Yn as foreignImmediatesPending,ma as formOwner,qt as getAttribute,pt as getComputedStyle,getComputedStyleOverride,Ho as getCurrentEvent,ht as getElementsByClassName,an as getElementsByTagName,Ss as getElementsByTagNameNS,St as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,v as hasAttr,gr as hasAuthorStyles,Zr as hasExplicitAttrElements,s as hasListeners,so as hasReadonlyAttribute,hasUIValue,wa as hiddenGlobals,fe as implicitSubmission,Ie as indexGetterTable,$n as indexOf,Vi as inputChecked,Dr as inputIndeterminate,u as inputType,Qo as inputTypeFromAttr,ds as inspectNode,dr as installClock,kt as installEventHandlers,Ni as isActuallyDisabled,Xe as isAsciiWhitespace,Ma as isAutofilled,vo as isChecked,Zt as isClockTimer,Wr as isDefault,oa as isDisabled,tn as isDisplayNone,o as isDisplayNoneInclusive,isEditable as isEditableControl,Io as isEnabled,Gr as isFACE,$r as isInRange,hr as isInclusiveAncestor,mi as isIndeterminate,Ha as isInvalid,wi as isLabelable,br as isListed,R as isMutable,xn as isNumericType,Mi as isOptional,Ci as isOutOfRange,yr as isPlaceholderShown,Wo as isReadOnly,ps as isReadWrite,Lr as isRequired,Go as isResettable,Rn as isSubmitButton,ms as isSubmittable,as as isTextControl,f as isTextualType,pn as isValid,Qa as isValidDoctypeName,$e as isValidElementLocalName,nr as isValidNamespacePrefix,di as isVisibilityHidden,Rr as labeledControl,os as labelsFor,en as lastElementChild,Ua as listOfOptions,ci as listenerCount,n as loopTurn,Un as matchMediaText,Tr as matches,Cr as mediaEnvironment,a as nextElementInTree,fi as nextElementSibling,Po as nextInTree,Aa as nextSkippingChildren,no as nodeCache,ai as nodeGetTheParent,Ze as nodeLength,Ln as notifyMutationObservers,me as optionSelected,Na as parseDeclBlock,Pr as parseFragment,Fe as parseMediaQueryList,io as peekDerivedCache,Mo as pointerEvents,Oa as pointerEventsNone,bt as prefixFlag,ho as previousElementSibling,qi as previousInTree,fo as pseudoContent,Xo as querySelector,bs as querySelectorAll,quote,Bo as registerOwnerSheet,registerTestHooks,ko as removeAllEventListeners,un as removeAttribute,ri as removeOwnerSheet,yn as replaceData,xa as reportException,resetWindowBetweenFiles,co as resolveCompat,restoreInterfaces,xi as retarget,Ta as reusableElement,mo as serializeChildren,Ki as serializeNode,vi as setAdoptedStyleSheets,Xa as setAssignedSlotLookup,Es as setAttribute,setCheckedFromUI,Gi as setComputedColorMode,Ht as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Ue as setNotImplementedHandler,setOptionSelectedFromUI,kr as setTrusted,setUISelection,setUIValue,zi as setUncaughtExceptionHandler,ui as skipIdleTime,jo as skipZeroDelayWait,spanChannel,de as splitOnAsciiWhitespace,ye as splitText,Kn as styleElementRemoved,ua as styleElementSheet,Le as styleElementUpdated,qa as styleSheetsOf,Mr as styledDisplay,subscribeTestFailures,supportsSelection,d as supportsSelectionType,_r as tagId,nn as tagName,testHooks,tracePromise,traceSync,tracing,Ya as trackGlobalTimers,Fr as treeRoot,La as uaDisplay,va as unregisterOwnerSheet,qn as validateAndExtract,w as valueMode,Da as virtualDate,uo as virtualPerformance,vs as windowHooks,M as windowInterfaces,Ri as withNamedProperties};
1
+ import{$ as e,$a as t,$c as n,$d as r,$f as i,$i as a,$l as o,$o as s,$r as c,$s as ee,$u as te,Ac as ne,Ad as re,Af as ie,Al as l,Ao as ae,Au as oe,B as se,Bc as ce,Bd as le,Bf 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,Dc as Ce,Dd as we,Df as Te,Dl as Ee,Do as De,Dr as Oe,Du as ke,Ec as Ae,Ed as je,Ef as Me,El as Ne,Eo as Pe,Eu as Fe,Fa as Ie,Fc as u,Fd as d,Ff as f,Fl as p,Fo as m,Fr as h,Fu as g,Ga as _,Gc as v,Gd as Le,Gf as Re,Gi as ze,Gl as Be,Go as Ve,Gr as He,Gu as Ue,Hc as We,Hd as Ge,Hf as Ke,Hl as qe,Ho as y,Hr as Je,Hu as Ye,Ia as Xe,Ic as Ze,Id as Qe,If as $e,Il as et,Io as tt,Ir as nt,Iu as rt,Jc as it,Jd as at,Jf as ot,Ji as st,Jl as ct,Jo as lt,Jr as ut,Ju as b,Kc as dt,Kd as ft,Kf as pt,Ki as mt,Kl as ht,Kr as gt,Ku as _t,Lc as vt,Ld as yt,Lf as bt,Ll as xt,Lo as St,Lu as Ct,Mc as wt,Md as Tt,Mf as Et,Ml as Dt,Mo as Ot,Mu as kt,Na as At,Nc as jt,Nd as Mt,Nf as Nt,Nl as x,No as Pt,Nu as Ft,Oc as It,Od as Lt,Of as Rt,Ol as zt,Oo as Bt,Ou as Vt,Pa as Ht,Pc as Ut,Pd as S,Pf as Wt,Pl as Gt,Po as Kt,Pu as qt,Qc as Jt,Qd as C,Qf as Yt,Qi as Xt,Ql as Zt,Qo as Qt,Qr as $t,Qs as w,Qu as en,Ra as tn,Rc as nn,Rd as rn,Rf as an,Rl as on,Ro as sn,Rr as cn,Ru as ln,S as un,Sa as dn,Sc as fn,Sd as pn,Sf as mn,Sl as hn,So as gn,Su as _n,Ta as vn,Tc as yn,Td as bn,Tf as xn,Tl as Sn,To as Cn,Tu as wn,Ua as Tn,Uc as En,Ud as Dn,Uf as On,Ul as kn,Uo as T,Ur as An,Uu as jn,Vc as E,Vd as Mn,Vf as Nn,Vl as Pn,Vo as Fn,Vr as In,Vu as Ln,Wa as Rn,Wc as zn,Wd as Bn,Wf as Vn,Wi as Hn,Wl as D,Wo as O,Wr as Un,Wu as Wn,Xc as Gn,Xd as Kn,Xf as qn,Xi as Jn,Xl as Yn,Xo as Xn,Xr as Zn,Xu as Qn,Yc as $n,Yd as er,Yf as tr,Yi as nr,Yl as k,Yo as rr,Yr as ir,Yu as ar,Zc as or,Zd as A,Zf as sr,Zi as cr,Zl as lr,Zo as ur,Zr as dr,Zu as fr,_ as pr,_a as mr,_c as hr,_d as gr,_f as _r,_i as vr,_l as yr,_o as br,_s as xr,_u as Sr,a as Cr,aa as wr,ad as Tr,af as Er,ai as Dr,al as Or,ao as kr,as as Ar,at as j,au as jr,b as Mr,ba as Nr,bc as Pr,bd as M,bf as Fr,bl as Ir,bo as Lr,bs as N,bu as Rr,c as zr,ca as Br,cc as Vr,cd as Hr,cf as Ur,ci as Wr,cl as Gr,co as Kr,cr as qr,cs as Jr,cu as Yr,d as Xr,dc as Zr,dd as Qr,df as $r,di as ei,dl as ti,do as ni,dr as P,ds as ri,du as ii,ea as ai,ec as oi,ed as si,ef as ci,ei as li,el as ui,eo as di,ep as fi,es as pi,eu as mi,f as hi,fc as gi,fd as _i,ff as vi,fi as yi,fl as bi,fo as xi,fr as Si,fs as Ci,fu as wi,g as Ti,ga as Ei,gc as Di,gd as Oi,gf as ki,gi as Ai,gl as F,go as ji,gs as Mi,gu as Ni,h as Pi,hc as Fi,hd as Ii,hf as Li,hl as I,ho as Ri,hs as zi,hu as Bi,i as Vi,ic as Hi,id as Ui,if as Wi,ii as Gi,il as Ki,io as qi,is as Ji,iu as Yi,jc as Xi,jd as Zi,jf as Qi,jl as $i,jo as ea,ju as ta,kc as na,kd as ra,kf as ia,kl as aa,ko as oa,ku as sa,l as ca,lc as la,ld as ua,lf as da,li as fa,ll as pa,lr as L,ls as ma,lu as ha,m as R,ma as ga,mc as _a,md as va,mf as ya,mi as ba,ml as xa,mo as Sa,ms as Ca,mu as wa,n as Ta,na as Ea,nc as Da,nd as Oa,nf as ka,ni as Aa,nl as ja,no as Ma,np as Na,ns as Pa,nu as Fa,o as Ia,oa as La,oc as Ra,od as za,of as Ba,oi as Va,ol as z,oo as Ha,or as Ua,os as Wa,ou as Ga,p as Ka,pa as qa,pc as Ja,pd as Ya,pf as Xa,pi as Za,pl as Qa,po as $a,pr as eo,ps as to,pu as no,qc as ro,qd as io,qf as ao,qi as oo,ql as B,qo as so,qr as co,qu as lo,r as uo,ra as fo,rc as po,rd as mo,rf as ho,ri as go,rl as _o,ro as vo,rs as yo,rt as bo,ru as xo,s as So,sa as Co,sc as wo,sd as To,sf as Eo,si as Do,sl as Oo,so as ko,sr as Ao,ss as jo,su as Mo,ta as No,tc as Po,td as Fo,tf as Io,ti as Lo,tl as Ro,to as zo,tp as Bo,ts as Vo,tu as Ho,u as Uo,uc as Wo,ud as Go,uf as Ko,ui as qo,ul as Jo,uo as Yo,uu as Xo,v as Zo,va as Qo,vc as $o,vd as es,vf as ts,vl as ns,vo as rs,vu as is,wa as as,wc as os,wd as ss,wf as cs,wl as ls,wo as us,wu as ds,x as fs,xc as ps,xd as ms,xf as hs,xl as gs,xo as _s,xu as vs,y as ys,ya as bs,yc as xs,yd as Ss,yf as Cs,yi as ws,yl as Ts,yo as Es,yu as Ds,zc as Os,zd as ks,zf as As,zl as js,zo as V,zr as Ms,zu as Ns}from"./_chunks/src-aGglm_mj.js";import{constants as Ps,createContext as Fs,runInContext as Is}from"node:vm";import*as H from"node:diagnostics_channel";let U=null;function targets(){let e=/* @__PURE__ */ new Set,t=P();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(L.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 W=null;function captureInterfaceBaseline(){if(U===null){U=[],W=/* @__PURE__ */ new WeakSet;for(let e of targets())U.push(snapshot(e)),W.add(e);ownObjectCreateMaps()}}let Ls=null;function ownObjectCreateMaps(){if(U===null)return;let e=Ls??=Is(`(prototypes) => prototypes.map((p) => Object.create(p))`,Fs(Ps.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<U.length;e++){let n=U[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=W;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(U===null)return 0;let e=0;for(let t=0;t<U.length;t++){let n=U[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 G=`ctrl-dom:span`,K=typeof H.tracingChannel==`function`?H.tracingChannel(G):null;function spanChannel(){return K}function tracing(){return K!==null&&K.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=A();return K.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=A();return K.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=A()-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[B]!==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 q=null;function setNodeDescriber(e){q=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(q!==null)try{let t=q(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 J=`sentry-tests:failure`;let Y=null;function setFailureSnapshot(e){Y=e}function subscribeTestFailures(e){let t=H.channel(J),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=C();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),Y!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:Y(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}var FileState=class{hooks;url;constructor(){this.hooks=/* @__PURE__ */ new Map,this.url=null}};const X=/* @__PURE__ */ new WeakMap;function stateOf(e){let t=X.get(e);return t===void 0&&X.set(e,t=new FileState),t}function registerTestHooks(e,t){let n=N();if(n===null)return;let r=stateOf(n).hooks;r.set(e,{...r.get(e),...t})}function testHooks(){let e=N(),t=e===null?void 0:X.get(e);return t===void 0?[]:[...t.hooks.values()]}function resetWindowBetweenFiles(e){let t=stateOf(e);for(let e of t.hooks.values())try{e.fileEnd?.()}catch{}er(),Si(e);let n=e[M];if(n!==null){for(let e of n)e.clear(e.handle);n.clear()}e[l]=null,e[b]=null,e[x]=null,e[D]=null;let r=e.document;r.getSelection()?.removeAllRanges();let i=r.body;i!==null&&(i.replaceChildren(),removeAttributes(i)),r.documentElement!==null&&removeAttributes(r.documentElement),e.localStorage.clear(),e.sessionStorage.clear(),e[v]=null;let a=t.url??=e.location.href;e.location.href!==a&&e._setURL(new URL(a));let o=e.history;o[I]=[{url:a,state:null}],o[k]=0}function removeAttributes(e){let t=e.getAttributeNames();for(let n=0;n<t.length;n++)e.removeAttribute(t[n])}function implOf(e){return e[B]??e}function isTypingType(e){return y(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===w.input?isTypingType(V(t))&&R(t):t.tag===w.textarea?R(t):An(t)}function supportsSelection(e){let t=implOf(e);return t.tag===w.textarea||t.tag===w.input&&T(V(t))}function hasUIValue(e){let t=implOf(e);return t.tag===w.textarea||t.tag===w.input&&O(V(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===w.input){let e=t.node;return e[E].uiValue??e.value}return t.tag===w.textarea?t.node.value:``}function setUIValue(e,t){let n=implOf(e);if(n.tag===w.input){let e=n.node,r=V(n);if(O(r)!==0)return;let i=bo(r,t,n);n.doc[S]++,e[E].value=i,e[E].dirtyValue=!0,e[E].userEdited=!0,e[E].uiValue=i===t?null:t,e[E].badInput=i===``&&t!==``&&r!==5&&!y(r);let a=t.length;e[E].selStart>a&&(e[E].selStart=a),e[E].selEnd>a&&(e[E].selEnd=a)}else if(n.tag===w.textarea){let e=n.node;n.doc[S]++,e[E].value=ga(t),e[E].dirtyValue=!0,e[E].userEdited=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===w.input){let e=t.node;e[E].uiValue=null,e[E].badInput=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[E].selStart,n),end:Math.min(t[E].selEnd,n),direction:t[E].selDir}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==w.input&&i.tag!==w.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[E].selStart=s,a[E].selEnd=c,a[E].selDir=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===w.input&&V(n)===17&&(n.doc[S]++,n.node[E].files=j(t))}function setOptionSelectedFromUI(t,n){let r=implOf(t);if(r.tag!==w.option)return;let i=r.node;i._setSelectedness(n),i[z]=!0;let a=e(r);if(a!==null){let e=a.node;n&&e._deselectOthers(r),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===w.input&&n.node._setCheckedness(t,!0)}const Rs=L.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===Rs||typeof n!=`function`||se.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{Vr as $_proto__,la as $aboutBase,Wo as $active,Zr as $assocGen,gi as $attr,Ja as $attributes,_a as $availableToElementInternals,Fi as $baseFor,Di as $baseOverride,hr as $baseURL,$o as $baseVersion,xs as $benign,Pr as $block,ps as $blockParsed,fn as $blockText,_e as $byCtor,os as $byName,yn as $cache,Ae as $callback,Ce as $childNodes,It as $childWindows,na as $children,ne as $classList,Xi as $clipboard,wt as $clonable,jt as $closed,Ut as $coll,u as $compiled,Ze as $compiledFor,vt as $condition,nn as $constructed,Os as $constructingEntryList,ce as $contentType,E as $control,We as $controlsCache,En as $controlsDoc,zn as $controlsVersion,v as $cookieJar,dt as $cookies,ro as $css,it as $current,$n as $customElements,Gn as $customValidity,or as $cx,Jt as $data,n as $dataset,ui as $declarative,Ro as $defaultNamespace,ja as $defaultValueOverride,_o as $delegatesFocus,Ki as $derived,Or as $devicePixelRatio,z as $dirtiness,Oo as $disabled,Gr as $disallowModification,pa as $doc,Jo as $dropEffect,ti as $ec,bi as $effectAllowed,Qa as $el,xa as $elements,I as $entries,F as $eo,yr as $error,ns as $externalFormNames,Ts as $file,Ir as $files,gs as $fill,hn as $filter,be as $firingSubmissionEvents,ls as $focused,Sn as $forLabels,Ne as $form,Ee as $formAttrSeen,zt as $formControlsVersion,aa as $forms,l as $frameCallbacks,$i as $frameElement,Dt as $frameId,x as $frameTask,Gt as $frameTime,p as $generation,et as $globalObject,xt as $hasTransients,on as $height,js as $history,de as $home,Pn as $host,qe as $href,kn as $id,D as $idleCallbacks,Be as $idleId,ht as $ids,B as $impl,ct as $implementation,k as $index,Yn as $indexed,lr as $inflight,Zt as $info,o as $innerHeight,mi as $innerWidth,Ho as $isHTML,Fa as $items,xo as $keyText,Yi as $kind,jr as $labels,Ga as $layerName,Mo as $list,Yr as $listeners,ha as $localStorage,Xo as $location,ii as $lockedForReset,wi as $matches,no as $media,wa as $mediaQueryLists,Bi as $mode,Ni as $name,Sr as $names,is as $namespaces,Ds as $navigator,Rr as $nodes,vs as $onchange,_n as $options,Se as $owner,ds as $ownerNode,wn as $ownerRule,Fe as $parent,ke as $parentRule,Vt as $parentWindow,sa as $pastNames,oe as $pointerBeforeReference,ta as $prefix,kt as $prelude,Ft as $presentationStyle,qt as $pseudo,g as $queries,rt as $radios,Ct as $ranges,ln as $readonly,Ns as $readyState,me as $rebuildVersion,Ln as $record,Ye as $records,jn as $reference,Wn as $result,Ue as $root,_t as $rules,lo as $running,b as $runningFrame,ar as $sc,Qn as $screen,fr as $scrollRestoration,en as $scrollX,te as $scrollY,si as $selectedOptions,Fo as $selectedness,Oa as $selection,mo as $selector,Ui as $serializable,Tr as $sessionStorage,za as $settled,To as $shadowRoot,Hr as $shed,ua as $sheet,Go as $sheets,Qr as $slotAssignment,_i as $so,Ya as $states,va as $style,Ii as $styleVersion,Oi as $supportsText,gr as $systemId,es as $target,Ss as $targets,M as $tasks,ms as $timers,pn as $title,ve as $treeVersion,ss as $type,bn as $types,je as $updating,we as $updatingSelectedContent,Lt as $uri,ra as $url,re as $userActivation,Zi as $userValidity,Tt as $validity,Mt as $value,S as $version,d as $visualViewport,Qe as $w,yt as $whatToShow,rn as $whenDefined,ks as $width,le as $window,Mn as $writeBuffer,Ge as $x,Dn as $xhr,Bn as $y,Le as $z,Eo as ATTRIBUTE_NODE,Jr as AttrRecord,Ur as CDATA_SECTION_NODE,da as COMMENT_NODE,cr as COMPAT,Xt as COMPAT_PROFILES,a as DEFAULT_COMPAT,Ko as DOCUMENT_FRAGMENT_NODE,$r as DOCUMENT_NODE,vi as DOCUMENT_POSITION_CONTAINED_BY,Xa as DOCUMENT_POSITION_CONTAINS,ya as DOCUMENT_POSITION_DISCONNECTED,Li as DOCUMENT_POSITION_FOLLOWING,ki as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,_r as DOCUMENT_POSITION_PRECEDING,ts as DOCUMENT_TYPE_NODE,wr as DeclBlock,Cs as ELEMENT_NODE,Fr as ENTITY_NODE,hs as ENTITY_REFERENCE_NODE,Ra as EventState,J as FAILURE_CHANNEL,mn as F_ADOPT_HOOK,ye as F_ARIA_ATTRS,cs as F_ATTR_HOOK,xn as F_CE_CUSTOM,Me as F_CHILDREN_HOOK,Te as F_CHILD_LIST,Rt as F_CONNECTED,ia as F_CONNECT_HOOK,ie as F_CONTENTEDITABLE_ATTR,Qi as F_CUSTOM,Et as F_DATA_ATTRS,Nt as F_FACE,Wt as F_FORM_ATTR,f as F_HAS_SHADOW,$e as F_HAS_STYLE_ATTR,bt as F_HTML,an as F_INERT_ATTR,As as F_MO_REGISTERED,ue as F_PARSER_FORM,Nn as F_PAST_NAMES,Ke as F_RANGE,On as F_RANGE_BELOW,Vn as F_RANGE_MARKS,Re as F_ROLE_ATTR,pt as F_SHADOW_ROOT,ao as F_TABINDEX_ATTR,Ei as GLOBAL_EVENT_HANDLER_EVENTS,t as HTMLCollection,ot as HTML_NS,sn as INPUT_TYPE_NAMES,tr as MATHML_NS,qn as NOTATION_NODE,mt as NodeCache,ma as NodeImpl,so as NodeList,sr as PROCESSING_INSTRUCTION_NODE,G as SPAN_CHANNEL,Yt as SVG_NS,w as T,i as TEXT_NODE,ft as VirtualClock,io as VirtualTimeout,mr as WINDOW_EVENT_HANDLER_EVENTS,fi as XLINK_NS,Bo as XMLNS_NS,Na as XML_NS,Do as adoptedStyleSheetsOf,Es as ariaAttr,Lr as asciiLowercase,$a as assignManually,Sa as assignedElements,Ri as assignedNodes,ji as assignedSlot,dn as attachShadowRoot,_s as attr,Ua as attrAssociatedElement,Ao as attrAssociatedElements,tn as attrNode,at as canSkipZeroDelayWait,captureInterfaceBaseline,Xn as childAt,gn as classTokens,clearUIValue,Kn as clockNow,C as clockStats,Ma as closest,h as compareBoundaryPoints,ai as compatExposes,co as computedDisplay,ut as computedValue,ir as computedVisibility,cn as constructEntryList,Ta as controlValue,Oe as createEvent,j as createFileList,Wr as createLinkSheet,Zn as currentStyleVersion,Ms as defaultButton,No as deferredCompatMembers,ko as derivedCache,describeCall,describeNode,ri as dispatch,st as dispatchTrusted,di as ensureCollectionIndexGetters,lt as ensureIndexGetters,Ai as evaluateMediaQueryList,Co as faceState,br as findFlattenedSlottables,rs as findSlot,nr as fireAnEvent,Jn as fireSyntheticPointerEvent,ur as firstElementChild,r as foreignImmediatesPending,ae as formOwner,xe as getAttribute,gt as getComputedStyle,getComputedStyleOverride,Ci as getCurrentEvent,ge as getElementsByClassName,as as getElementsByTagName,vn as getElementsByTagNameNS,Qo as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,us as hasAttr,dr as hasAuthorStyles,qr as hasExplicitAttrElements,Po as hasListeners,uo as hasReadonlyAttribute,hasUIValue,Ea as hiddenGlobals,pe as implicitSubmission,rr as indexGetterTable,Qt as indexOf,vo as indexedDescendantById,Vi as inputChecked,Cr as inputIndeterminate,V as inputType,fe as inputTypeFromAttr,Yo as inspectNode,ci as installClock,bs as installEventHandlers,ea as isActuallyDisabled,Cn as isAsciiWhitespace,Ia as isAutofilled,So as isChecked,Io as isClockTimer,zr as isDefault,ca as isDisabled,$t as isDisplayNone,c as isDisplayNoneInclusive,isEditable as isEditableControl,Uo as isEnabled,Br as isFACE,Xr as isInRange,s as isInclusiveAncestor,hi as isIndeterminate,Ka as isInvalid,Ot as isLabelable,Pt as isListed,R as isMutable,Fn as isNumericType,Pi as isOptional,Ti as isOutOfRange,pr as isPlaceholderShown,Zo as isReadOnly,ys as isReadWrite,Mr as isRequired,Kt as isResettable,In as isSubmitButton,m as isSubmittable,fs as isTextControl,y as isTextualType,un as isValid,At as isValidDoctypeName,Ht as isValidElementLocalName,Ie as isValidNamespacePrefix,li as isVisibilityHidden,tt as labeledControl,St as labelsFor,pi as lastElementChild,qa as listOfOptions,Da as listenerCount,ka as loopTurn,Hn as matchMediaText,qi as matches,vr as mediaEnvironment,Vo as nextElementInTree,Pa as nextElementSibling,yo as nextInTree,Ji as nextSkippingChildren,oo as nodeCache,to as nodeGetTheParent,nt as nodeLength,Ve as notifyMutationObservers,he as optionSelected,La as parseDeclBlock,_ as parseFragment,ze as parseMediaQueryList,Kr as peekDerivedCache,Lo as pointerEvents,Aa as pointerEventsNone,Pe as prefixFlag,Ar as previousElementSibling,Wa as previousInTree,go as pseudoContent,kr as querySelector,Ha as querySelectorAll,quote,qo as registerOwnerSheet,registerTestHooks,po as removeAllEventListeners,De as removeAttribute,ei as removeOwnerSheet,ni as replaceData,Mi as reportException,resetWindowBetweenFiles,fo as resolveCompat,restoreInterfaces,Ca as retarget,Hi as reusableElement,Tn as serializeChildren,Rn as serializeNode,yi as setAdoptedStyleSheets,zi as setAssignedSlotLookup,Bt as setAttribute,setCheckedFromUI,Gi as setComputedColorMode,Nr as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Je as setNotImplementedHandler,setOptionSelectedFromUI,wo as setTrusted,setUISelection,setUIValue,xr as setUncaughtExceptionHandler,ho as skipIdleTime,Wi as skipZeroDelayWait,spanChannel,oa as splitOnAsciiWhitespace,xi as splitText,Un as styleElementRemoved,fa as styleElementSheet,He as styleElementUpdated,Za as styleSheetsOf,Dr as styledDisplay,subscribeTestFailures,supportsSelection,T as supportsSelectionType,ee as tagId,oi as tagName,testHooks,tracePromise,traceSync,tracing,eo as trackGlobalTimers,jo as treeRoot,Va as uaDisplay,ba as unregisterOwnerSheet,Xe as validateAndExtract,O as valueMode,Er as virtualDate,Ba as virtualPerformance,ws as windowHooks,P as windowInterfaces,zo as withNamedProperties};
@@ -1,4 +1,3 @@
1
- import type { Document } from "../nodes/Document.js";
2
1
  import type { Element } from "../nodes/Element.js";
3
2
  import type { NodeImpl } from "../nodes/NodeImpl.js";
4
3
  import { $coll, $items, $version } from "../keys.js";
@@ -11,12 +10,7 @@ export declare class CollectionState {
11
10
  filter: ElementFilter | null;
12
11
  /** Members depend only on the tree and tag names: stamped with Document[$treeVersion]. */
13
12
  structural: boolean;
14
- items: Element[];
15
- doc: Document | null;
16
- version: number;
17
13
  constructor(root: NodeImpl, childrenOnly: boolean, filter: ElementFilter | null, structural: boolean);
18
- /** nodes/derived.ts: release the (stale) members once a node was removed from the document. */
19
- _dropSnapshot(): void;
20
14
  }
21
15
  export declare class HTMLCollection {
22
16
  [$coll]: CollectionState;
@@ -3,10 +3,9 @@ import type { AddEventListenerOptions, EventListenerOptions, EventListenerOrEven
3
3
  import { type ListenerSlots } from "./listeners.js";
4
4
  import { $listeners } from "../keys.js";
5
5
  export declare class EventTarget {
6
- /** @internal Event type id → first listener, or null when there are no listeners (see listeners.ts). */
7
6
  /**
8
- * Added on first addEventListener (absent otherwise): most nodes never get a listener (React
9
- * delegates to its root container), and an always-initialized field cost every node a slot.
7
+ * @internal Listener chains by event type (see listeners.ts). Most nodes never get a listener
8
+ * because React delegates to its root container, so the field is added on first registration.
10
9
  */
11
10
  [$listeners]?: ListenerSlots | null;
12
11
  /** https://dom.spec.whatwg.org/#dom-eventtarget-eventtarget */
@@ -1,9 +1,16 @@
1
1
  import type { Event } from "./Event.js";
2
+ import type { NodeImpl } from "../nodes/NodeImpl.js";
2
3
  /** Whether an element with tag id `tag` can have activation behavior (the dispatch algorithm's gate). */
3
4
  export declare function mayHaveActivationBehavior(tag: number): boolean;
5
+ /** State for one click's legacy pre-activation behavior (https://html.spec.whatwg.org/#legacy-pre-activation-behavior). */
6
+ export interface InputActivationState {
7
+ checked: boolean;
8
+ indeterminate: boolean;
9
+ previousRadio: NodeImpl | null;
10
+ }
4
11
  export interface ActivationTarget {
5
12
  readonly _hasActivationBehavior?: boolean;
6
- _activationBehavior?(event: Event): void;
7
- _legacyPreActivationBehavior?(): void;
8
- _legacyCanceledActivationBehavior?(): void;
13
+ _activationBehavior?(event: Event, state?: InputActivationState): void;
14
+ _legacyPreActivationBehavior?(): InputActivationState | undefined;
15
+ _legacyCanceledActivationBehavior?(state?: InputActivationState): void;
9
16
  }
@@ -4,12 +4,6 @@ export declare const LISTENER_CAPTURE = 1;
4
4
  export declare const LISTENER_ONCE = 2;
5
5
  export declare const LISTENER_PASSIVE = 4;
6
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
7
  /** The seq the next added listener gets: inner invoke stops at listeners at or past it. */
14
8
  export declare function listenerSeqLimit(): number;
15
9
  /**
@@ -23,25 +17,19 @@ export declare class Listener {
23
17
  /** The next listener of the same type on the same target, in insertion order. */
24
18
  next: Listener | null;
25
19
  seq: number;
26
- /** Null unless added with a signal. */
27
- abort: AbortBinding | null;
28
- constructor(callback: EventListenerOrEventListenerObject, flags: number);
20
+ id: number;
21
+ constructor(id: number, callback: EventListenerOrEventListenerObject, flags: number);
29
22
  }
23
+ /** Abort algorithms take effect before application abort handlers can dispatch another event. */
24
+ export declare function listenerAborted(listener: Listener): boolean;
30
25
  /**
31
- * A target's listeners, in one of two layouts:
32
- *
33
- * - compact, while it has listened for at most COMPACT_TYPES event types: `[id, head, id, head…]`,
34
- * exactly as long as its pairs. Nearly every target with a listener has one or two types (React
35
- * adds `invalid` to every input, select and textarea, `load`/`error` to images, `toggle` to
36
- * details), and an array indexed by type id is as long as that id plus V8's growth slack: one
37
- * `invalid` listener cost 641 B, 64 B of it the listener. Compact, 128 B.
38
- * - indexed by type id (a hole or undefined: no listener of that type), from the type after that:
39
- * React's root container, with 87.
40
- *
41
- * A compact array's first element is a number, an indexed one's never is. Adding a type to a
42
- * compact target replaces the array; removing one leaves its pair with an undefined head.
26
+ * React adds just one event type (invalid) to each input, select and textarea. Store that
27
+ * type's listener chain directly. Two to four types use an array of chain heads. From
28
+ * the fifth type on, a sparse array indexed by type ID serves large targets like React roots.
43
29
  */
44
- export type ListenerSlots = (Listener | number | undefined)[];
30
+ type SlotArray = (Listener | undefined)[];
31
+ export type ListenerSlots = Listener | SlotArray;
32
+ export declare function idForType(type: string): number;
45
33
  /** `type`'s id, or -1 when nothing has ever listened for it (so no target has a listener). */
46
34
  export declare function typeIdOf(type: string): number;
47
35
  /** The first listener for type id `id` (-1 included) on a target whose slots are `slots`. */
@@ -60,7 +48,7 @@ export declare function addEventListener(target: EventTarget, type: string, call
60
48
  /** https://dom.spec.whatwg.org/#dom-eventtarget-removeeventlistener */
61
49
  export declare function removeEventListener(target: EventTarget, type: string, callback: EventListenerOrEventListenerObject | null | undefined, options: boolean | EventListenerOptions | undefined | null): void;
62
50
  /** https://dom.spec.whatwg.org/#remove-an-event-listener */
63
- export declare function removeListener(target: EventTarget, type: string, listener: Listener): void;
51
+ export declare function removeListener(target: EventTarget, listener: Listener): void;
64
52
  /** https://dom.spec.whatwg.org/#concept-event-listener-remove-all */
65
53
  export declare function removeAllEventListeners(target: EventTarget): void;
66
54
  /** Whether `target` has at least one listener for `type` (internal fast check for other areas). */
@@ -2,34 +2,25 @@ import { HTMLElement } from "../HTMLElement.js";
2
2
  import type { Document } from "../../nodes/Document.js";
3
3
  import type { Element } from "../../nodes/Element.js";
4
4
  import type { NodeImpl } from "../../nodes/NodeImpl.js";
5
+ import { type PastName } from "./past-names.js";
5
6
  import { type HTMLFormControlsCollection } from "./collections.js";
6
- import { $assocGen, $constructingEntryList, $controlsCache, $controlsDoc, $controlsVersion, $elements, $firingSubmissionEvents, $lockedForReset, $pastNames } from "../../keys.js";
7
+ import { $constructingEntryList, $elements, $firingSubmissionEvents, $lockedForReset, $pastNames } from "../../keys.js";
7
8
  export declare class HTMLFormElement extends HTMLElement {
8
9
  [$elements]: HTMLFormControlsCollection | null;
9
- /** Version-stamped cache of the listed controls (excluding image buttons) in tree order. */
10
- [$controlsCache]: NodeImpl[];
11
- [$controlsVersion]: number;
12
- [$controlsDoc]: Document | null;
13
10
  /** https://html.spec.whatwg.org/#firing-submission-events */
14
11
  [$firingSubmissionEvents]: boolean;
15
12
  /** https://html.spec.whatwg.org/#locked-for-reset */
16
13
  [$lockedForReset]: boolean;
17
14
  /** https://html.spec.whatwg.org/#constructing-entry-list */
18
15
  [$constructingEntryList]: boolean;
19
- /** Bumped when the form is disconnected: parser associations made before end (form-associated.ts). */
20
- [$assocGen]: number;
21
16
  /** https://html.spec.whatwg.org/#past-names-map */
22
- [$pastNames]: Map<string, NodeImpl> | null;
17
+ [$pastNames]: Map<string, PastName> | null;
23
18
  /** @internal Use Document.createElement. */
24
19
  constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
25
- /** "When a form element is removed, reset the form owner" of elements it no longer shares a tree with. */
26
- _disconnectedSteps(): void;
27
20
  /** https://html.spec.whatwg.org/#dom-form-nameditem — element, RadioNodeList, or undefined. */
28
21
  _namedProperty(name: string): unknown;
29
22
  /** @internal Listed controls whose form owner is this form (image buttons excluded), tree order. */
30
23
  _controls(): NodeImpl[];
31
- /** nodes/derived.ts: release the (stale) control list once a node was removed. */
32
- _dropSnapshot(): void;
33
24
  /** https://html.spec.whatwg.org/#dom-form-elements */
34
25
  get elements(): HTMLFormControlsCollection;
35
26
  /** https://html.spec.whatwg.org/#dom-form-length */
@@ -3,6 +3,7 @@ import type { Document } from "../../nodes/Document.js";
3
3
  import type { NodeImpl } from "../../nodes/NodeImpl.js";
4
4
  import type { Element } from "../../nodes/Element.js";
5
5
  import type { Event } from "../../events/Event.js";
6
+ import type { InputActivationState } from "../../events/activation.js";
6
7
  import { LabelsNodeList } from "./collections.js";
7
8
  import { FileList } from "../../window/FileList.js";
8
9
  import { $control, $customValidity, $labels, $userValidity, $validity } from "../../keys.js";
@@ -37,8 +38,8 @@ export declare class HTMLInputElement extends HTMLElement {
37
38
  _setValueFromAPI(type: number, value: string): void;
38
39
  /** https://html.spec.whatwg.org/#concept-fe-checked */
39
40
  _checkedness(): boolean;
40
- /** Set checkedness; when it becomes true on a radio, uncheck the rest of its group. */
41
- _setCheckedness(value: boolean, dirty: boolean): void;
41
+ /** Set checkedness and return the previously checked peer when updating a radio group. */
42
+ _setCheckedness(value: boolean, dirty: boolean): NodeImpl | null;
42
43
  /** https://html.spec.whatwg.org/#dom-input-checked */
43
44
  get checked(): boolean;
44
45
  set checked(value: boolean);
@@ -145,11 +146,11 @@ export declare class HTMLInputElement extends HTMLElement {
145
146
  */
146
147
  get _hasActivationBehavior(): boolean;
147
148
  /** https://html.spec.whatwg.org/#the-input-element:legacy-pre-activation-behavior */
148
- _legacyPreActivationBehavior(): void;
149
+ _legacyPreActivationBehavior(): InputActivationState | undefined;
149
150
  /** https://html.spec.whatwg.org/#the-input-element:legacy-canceled-activation-behavior */
150
- _legacyCanceledActivationBehavior(): void;
151
+ _legacyCanceledActivationBehavior(state?: InputActivationState): void;
151
152
  /** https://html.spec.whatwg.org/#the-input-element:activation-behaviour */
152
- _activationBehavior(_event: Event | null): void;
153
+ _activationBehavior(_event: Event | null, state?: InputActivationState): void;
153
154
  }
154
155
  export interface HTMLInputElement extends ConstraintValidation {
155
156
  }
@@ -171,7 +172,7 @@ export declare function rangeText(value: string, selStart: number, selEnd: numbe
171
172
  /** https://html.spec.whatwg.org/#radio-button-group */
172
173
  export declare function inSameRadioGroup(a: NodeImpl, b: NodeImpl): boolean;
173
174
  /** Set checkedness false on every other member of el's radio button group. */
174
- export declare function uncheckOtherRadios(el: NodeImpl): void;
175
+ export declare function uncheckOtherRadios(el: NodeImpl): NodeImpl | null;
175
176
  /** Whether `el` (a radio) has no checked member in its group — `:indeterminate` for radios. */
176
177
  export declare function radioGroupHasNoChecked(el: NodeImpl): boolean;
177
178
  export {};
@@ -2,16 +2,15 @@ import { HTMLElement } from "../HTMLElement.js";
2
2
  import type { Document } from "../../nodes/Document.js";
3
3
  import type { Element } from "../../nodes/Element.js";
4
4
  import type { NodeImpl } from "../../nodes/NodeImpl.js";
5
- import { $dirtiness, $selSet, $selectedness } from "../../keys.js";
5
+ import { $dirtiness, $selectedness } from "../../keys.js";
6
6
  /**
7
7
  * The select element an option belongs to, its "nearest ancestor select":
8
8
  * https://html.spec.whatwg.org/#option-element-nearest-ancestor-select
9
9
  */
10
10
  export declare function optionSelect(option: NodeImpl): NodeImpl | null;
11
11
  export declare class HTMLOptionElement extends HTMLElement {
12
- /** https://html.spec.whatwg.org/#concept-option-selectedness (authoritative when `_selSet`). */
13
- [$selectedness]: boolean;
14
- [$selSet]: boolean;
12
+ /** https://html.spec.whatwg.org/#concept-option-selectedness — initially derives from the attribute. */
13
+ [$selectedness]: boolean | undefined;
15
14
  /** https://html.spec.whatwg.org/#concept-option-dirtiness */
16
15
  [$dirtiness]: boolean;
17
16
  /** @internal Use Document.createElement or `new Option()`. */
@@ -69,7 +69,7 @@ export declare class HTMLSelectElement extends HTMLElement {
69
69
  */
70
70
  _deselectOthers(selected: NodeImpl): void;
71
71
  /** https://html.spec.whatwg.org/#selectedness-setting-algorithm */
72
- _selectednessSettingAlgorithm(): void;
72
+ _selectednessSettingAlgorithm(selected?: NodeImpl): void;
73
73
  _runSelectedness(): void;
74
74
  /** https://html.spec.whatwg.org/#get-a-select's-enabled-selectedcontent */
75
75
  _enabledSelectedContent(): NodeImpl | null;
@@ -20,8 +20,6 @@ export declare class HTMLTextAreaElement extends HTMLElement {
20
20
  /** https://html.spec.whatwg.org/#dom-textarea-defaultvalue — the child text content. */
21
21
  get defaultValue(): string;
22
22
  set defaultValue(value: string);
23
- /** https://html.spec.whatwg.org/#concept-textarea-raw-value */
24
- _rawValueNow(): string;
25
23
  /** https://html.spec.whatwg.org/#concept-fe-api-value */
26
24
  _apiValue(): string;
27
25
  /** https://html.spec.whatwg.org/#dom-textarea-value */
@@ -3,26 +3,14 @@ import type { Element } from "../../nodes/Element.js";
3
3
  import type { Node } from "../../nodes/Node.js";
4
4
  import { HTMLCollection } from "../../collections/HTMLCollection.js";
5
5
  import { NodeList } from "../../collections/NodeList.js";
6
- import { $cache, $el, $form, $name, $version } from "../../keys.js";
7
- /** Version-stamped members of a computed NodeList (dropped on node removal, nodes/derived.ts). */
8
- declare class SnapshotCache {
9
- items: Node[];
10
- version: number;
11
- doc: object | null;
12
- _dropSnapshot(): void;
13
- }
6
+ import { $el, $form, $name } from "../../keys.js";
14
7
  /**
15
8
  * Base for the live NodeLists computed from the tree (labels, RadioNodeList): a version-stamped
16
9
  * snapshot plus Proxy-free prototype index getters (collections/indexed.ts).
17
10
  */
18
11
  declare abstract class ComputedNodeList extends NodeList {
19
- [$cache]: SnapshotCache;
20
12
  constructor();
21
13
  abstract _compute(): Node[];
22
- abstract _ownerDocument(): {
23
- [$version]: number;
24
- };
25
- /** The node whose tree the members come from (derived.ts holdSnapshot). */
26
14
  abstract _root(): NodeImpl;
27
15
  _snapshot(): Node[];
28
16
  get length(): number;
@@ -33,9 +21,6 @@ export declare class LabelsNodeList extends ComputedNodeList {
33
21
  [$el]: NodeImpl;
34
22
  /** @internal */
35
23
  constructor(el: NodeImpl);
36
- _ownerDocument(): {
37
- [$version]: number;
38
- };
39
24
  _root(): NodeImpl;
40
25
  _compute(): Node[];
41
26
  }
@@ -49,21 +34,18 @@ export declare class NameNodeList extends ComputedNodeList {
49
34
  [$name]: string;
50
35
  /** @internal */
51
36
  constructor(doc: NodeImpl, name: string);
52
- _ownerDocument(): {
53
- [$version]: number;
54
- };
55
37
  _root(): NodeImpl;
56
38
  _compute(): Node[];
57
39
  }
40
+ export declare function namedControl(form: NodeImpl, controls: NodeImpl[], name: string): NodeImpl | RadioNodeList | null;
41
+ /** Images supply legacy named properties only when no listed control matches. */
42
+ export declare function namedImage(form: NodeImpl, name: string): NodeImpl | RadioNodeList | null;
58
43
  /** https://html.spec.whatwg.org/#radionodelist — live list of a form's controls with a given name/id. */
59
44
  export declare class RadioNodeList extends ComputedNodeList {
60
45
  [$form]: NodeImpl;
61
46
  [$name]: string;
62
47
  /** @internal */
63
48
  constructor(form: NodeImpl, name: string);
64
- _ownerDocument(): {
65
- [$version]: number;
66
- };
67
49
  _root(): NodeImpl;
68
50
  _compute(): Node[];
69
51
  /** https://html.spec.whatwg.org/#dom-radionodelist-value */
@@ -1,10 +1,6 @@
1
- import type { NodeImpl } from "../../nodes/NodeImpl.js";
2
1
  import type { FileList } from "../../window/FileList.js";
3
2
  export declare class ControlState {
4
- /**
5
- * The value while the dirty value flag is set: an input's in value mode "value", a textarea's
6
- * raw value.
7
- */
3
+ /** A dirty input's value in value mode, or a dirty textarea's newline-normalized API value. */
8
4
  value: string;
9
5
  /** https://html.spec.whatwg.org/#concept-input-value-dirty-flag, https://html.spec.whatwg.org/#concept-textarea-dirty */
10
6
  dirtyValue: boolean;
@@ -24,10 +20,5 @@ export declare class ControlState {
24
20
  badInput: boolean;
25
21
  /** User-event's UI value (raw typed text) — null when it equals the value. See ui.ts. */
26
22
  uiValue: string | null;
27
- preChecked: boolean;
28
- preIndeterminate: boolean;
29
- preCheckedRadio: NodeImpl | null;
30
- /** Legacy-pre-activation ran (and changed state) for the current dispatch. */
31
- preApplied: boolean;
32
23
  constructor();
33
24
  }
@@ -16,12 +16,8 @@ export declare function elementByIdInTree(el: NodeImpl, id: string): NodeImpl |
16
16
  * (computed per https://html.spec.whatwg.org/#reset-the-form-owner, steps 3–4).
17
17
  */
18
18
  export declare function formOwner(el: NodeImpl): NodeImpl | null;
19
- /**
20
- * Called by the parser (`_parserAssociateForm`) for a form-associated element created while
21
- * the form element pointer was set. Listed elements with a `form` attribute are never passed.
22
- */
23
19
  export declare function parserAssociateForm(el: NodeImpl, form: NodeImpl): void;
24
- /** The element's ancestor chain changed (https://html.spec.whatwg.org/#reset-the-form-owner): drop the association. */
20
+ /** The element or form's removal steps reset parser ownership. */
25
21
  export declare function clearParserAssociation(el: NodeImpl): void;
26
22
  /**
27
23
  * The subtree holding every element whose form owner is `form` (https://html.spec.whatwg.org/#form-owner).
@@ -51,20 +47,7 @@ export declare function isActuallyDisabled(el: NodeImpl): boolean;
51
47
  export declare function hasDatalistAncestor(el: NodeImpl): boolean;
52
48
  /** https://html.spec.whatwg.org/#labeled-control */
53
49
  export declare function labeledControl(label: NodeImpl): NodeImpl | null;
54
- /**
55
- * Per-document indexes of connected elements by a string key, in no particular order, kept by the
56
- * elements' connected, disconnected and attribute change steps: Document[$forLabels], the labels
57
- * by `for` value, and Document[$radios], the radios by name.
58
- *
59
- * A `for` value nearly always has one label, which never moves: an array. A radio leaves and
60
- * rejoins its group constantly: on every update React sets its `name` to "" and back
61
- * (react-dom's updateInput, so the radio is out of its group while its checkedness changes), and
62
- * splicing each one out of an array made a re-render of a group of 500 radios 250,000 element
63
- * moves (8% of a click's CPU there). A set, which costs a few hundred bytes per name: fine for
64
- * radio groups, 11% more allocation building 1,000 labelled rows when the labels had one each.
65
- */
66
- export declare function indexAdd(index: Map<string, NodeImpl[]>, key: string, el: NodeImpl): void;
67
- export declare function indexRemove(index: Map<string, NodeImpl[]>, key: string, el: NodeImpl): void;
50
+ /** A controlled radio leaves and rejoins its name on each React update. A set keeps removal O(1). */
68
51
  export declare function radioIndexAdd(index: Map<string, Set<NodeImpl>>, name: string, el: NodeImpl): void;
69
52
  export declare function radioIndexRemove(index: Map<string, Set<NodeImpl>>, name: string, el: NodeImpl): void;
70
53
  /**
@@ -0,0 +1,31 @@
1
+ import type { NodeImpl } from "../../nodes/NodeImpl.js";
2
+ import type { HTMLFormElement } from "./HTMLFormElement.js";
3
+ export declare class PastName extends WeakRef<NodeImpl> {
4
+ history: Map<string, PastName>;
5
+ names: string | string[];
6
+ external?: ExternalWatch;
7
+ constructor(history: Map<string, PastName>, name: string, el: NodeImpl);
8
+ }
9
+ export declare function markNamedAncestors(node: NodeImpl): void;
10
+ export declare function rememberName(form: HTMLFormElement, name: string, el: NodeImpl): void;
11
+ /** Controls with a form attribute depend on that particular ID. The null group covers the
12
+ * parser's association to a form outside the control's ancestor chain. */
13
+ declare class ExternalWatch extends WeakRef<NodeImpl> {
14
+ registry: ExternalNames;
15
+ key: string | null;
16
+ constructor(el: NodeImpl, registry: ExternalNames, key: string | null);
17
+ }
18
+ export declare class ExternalNames {
19
+ groups: Map<string | null, Set<ExternalWatch>>;
20
+ collected: FinalizationRegistry<ExternalWatch>;
21
+ add(el: NodeImpl, key: string | null): ExternalWatch;
22
+ remove(watch: ExternalWatch): void;
23
+ check(key: string | null): void;
24
+ }
25
+ export declare function checkNamedOwner(el: NodeImpl): void;
26
+ /** Removal or atomic move: unmarked branches contain no names to check. */
27
+ export declare function checkNamesInSubtree(root: NodeImpl): void;
28
+ /** Only changed IDs can displace an outside control's owner. Controls moving with the subtree
29
+ * also see their own connectedness or tree change (including inside a moved shadow host). */
30
+ export declare function checkExternalSubtree(root: NodeImpl, external: ExternalNames): void;
31
+ export {};
@@ -7,7 +7,7 @@ export { derivedCache, peekDerivedCache } from "./nodes/derived.js";
7
7
  export { T, tagId, tagName } from "./nodes/tags.js";
8
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
- export { matches, closest, querySelector, querySelectorAll } from "./selectors/index.js";
10
+ export { matches, closest, querySelector, querySelectorAll, indexedDescendantById } from "./selectors/index.js";
11
11
  export { serializeChildren, serializeNode } from "./serializer/index.js";
12
12
  export { parseFragment } from "./parser/index.js";
13
13
  export { windowHooks, type WindowHooks, type MediaFeatureEnvironment } from "./window/hooks.js";
@@ -65,6 +65,7 @@ export declare const $elements: unique symbol;
65
65
  export declare const $entries: unique symbol;
66
66
  export declare const $eo: unique symbol;
67
67
  export declare const $error: unique symbol;
68
+ export declare const $externalFormNames: unique symbol;
68
69
  export declare const $file: unique symbol;
69
70
  export declare const $files: unique symbol;
70
71
  export declare const $fill: unique symbol;
@@ -72,6 +73,7 @@ export declare const $filter: unique symbol;
72
73
  export declare const $firingSubmissionEvents: unique symbol;
73
74
  export declare const $focused: unique symbol;
74
75
  export declare const $form: unique symbol;
76
+ export declare const $formControlsVersion: unique symbol;
75
77
  /** Document: an element of it has had a `form` attribute (sticky; html/forms/form-associated.ts formOwnerScope). */
76
78
  export declare const $formAttrSeen: unique symbol;
77
79
  export declare const $forLabels: unique symbol;
@@ -154,7 +156,6 @@ export declare const $screen: unique symbol;
154
156
  export declare const $scrollRestoration: unique symbol;
155
157
  export declare const $scrollX: unique symbol;
156
158
  export declare const $scrollY: unique symbol;
157
- export declare const $selSet: unique symbol;
158
159
  export declare const $selectedOptions: unique symbol;
159
160
  export declare const $selectedness: unique symbol;
160
161
  export declare const $selection: unique symbol;
@@ -1,3 +1,4 @@
1
+ import type { ExternalNames } from "../html/forms/past-names.js";
1
2
  import { Node } from "./Node.js";
2
3
  import type { NodeImpl } from "./NodeImpl.js";
3
4
  import type { Element } from "./Element.js";
@@ -5,6 +6,7 @@ import { Text, Comment, CDATASection, ProcessingInstruction } from "./CharacterD
5
6
  import { DocumentFragment } from "./DocumentFragment.js";
6
7
  import { DocumentType } from "./DocumentType.js";
7
8
  import { Attr } from "./Attr.js";
9
+ import { type ElementIndex } from "./attributes.js";
8
10
  import { type NonElementParentNode, type ParentNode } from "./mixins.js";
9
11
  import { Range } from "../traversal/Range.js";
10
12
  import { TreeWalker, NodeIterator, type NodeFilterArg } from "../traversal/TreeWalker.js";
@@ -14,7 +16,7 @@ import type { Window } from "../window/Window.js";
14
16
  import type { NodeList } from "../collections/NodeList.js";
15
17
  import type { ElementCreationOptions } from "../webidl.js";
16
18
  import type { Event } from "../events/Event.js";
17
- import { $aboutBase, $baseFor, $baseOverride, $baseURL, $baseVersion, $benign, $contentType, $css, $derived, $doc, $focused, $forLabels, $formAttrSeen, $forms, $ids, $implementation, $isHTML, $mode, $radios, $ranges, $selection, $styleVersion, $treeVersion, $url, $version, $window, $writeBuffer } from "../keys.js";
19
+ import { $aboutBase, $baseFor, $baseOverride, $baseURL, $baseVersion, $benign, $contentType, $css, $derived, $doc, $externalFormNames, $focused, $forLabels, $formAttrSeen, $formControlsVersion, $forms, $ids, $implementation, $isHTML, $mode, $radios, $ranges, $selection, $styleVersion, $treeVersion, $url, $version, $window, $writeBuffer } from "../keys.js";
18
20
  export declare class Document extends Node {
19
21
  /** Browsing context's window, or null for documents created via DOMImplementation / new Document(). */
20
22
  [$window]: Window | null;
@@ -30,7 +32,7 @@ export declare class Document extends Node {
30
32
  /** Version bumps that left every computed style as it was (css/style-deps.ts). */
31
33
  [$benign]: number;
32
34
  /** Connected elements by id. A value is an array only when several connected elements share an id. */
33
- [$ids]: Map<string, NodeImpl | NodeImpl[]>;
35
+ [$ids]: ElementIndex;
34
36
  /** Focused element (https://html.spec.whatwg.org/#focused-area-of-the-document), null = viewport/body. */
35
37
  [$focused]: NodeImpl | null;
36
38
  [$isHTML]: boolean;
@@ -51,15 +53,18 @@ export declare class Document extends Node {
51
53
  * nodes/derived.ts. Dropped whenever a node is removed from a tree of this document, so caches
52
54
  * never keep removed subtrees alive.
53
55
  */
54
- [$derived]: Map<object, unknown> | null;
56
+ [$derived]: WeakMap<object, unknown> | null;
55
57
  /**
56
- * Connected <label> elements by `for` attribute value, each list in no particular order, or null
57
- * before the first (html/forms/HTMLLabelElement.ts). Lets `element.labels` find the labels naming
58
- * an ID without walking the tree.
58
+ * Connected <label> elements by `for` attribute value, or null before the first. Multiple labels
59
+ * for one ID are stored in no particular order. Used by `element.labels`.
59
60
  */
60
- [$forLabels]: Map<string, NodeImpl[]> | null;
61
+ [$forLabels]: ElementIndex | null;
61
62
  /** An element of this document has had a `form` attribute (never reset): formOwnerScope. */
62
63
  [$formAttrSeen]: boolean;
64
+ /** Non-structural changes to form ownership or the category of listed controls. */
65
+ [$formControlsVersion]: number;
66
+ /** Named controls whose form owner can change on a mutation elsewhere in the tree. */
67
+ [$externalFormNames]?: ExternalNames;
63
68
  /**
64
69
  * Connected radio buttons with a non-empty name, by name, each list in no particular order, or
65
70
  * null before the first (html/forms/HTMLInputElement.ts). A radio's group is looked up here