@ctrl/dom 0.1.10 → 0.1.12
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.
- package/dist/bridge/internal.js +1 -1
- package/dist/dom/_chunks/src-BlQ27FdQ.js +49 -0
- package/dist/dom/index.js +1 -1
- package/dist/dom/internal.js +1 -1
- package/dist/dom/types/css/CSSStyleDeclaration.d.ts +9 -6
- package/dist/dom/types/css/cascade.d.ts +70 -4
- package/dist/dom/types/css/cssom.d.ts +22 -3
- package/dist/dom/types/css/declarations.d.ts +50 -5
- package/dist/dom/types/css/shorthands.d.ts +2 -0
- package/dist/dom/types/css/values.d.ts +14 -0
- package/dist/dom/types/internal.d.ts +1 -1
- package/dist/dom/types/keys.d.ts +1 -0
- package/dist/dom/types/nodes/attributes.d.ts +5 -1
- package/dist/dom/types/nodes/constants.d.ts +9 -0
- package/dist/dom/types/observers/queue.d.ts +10 -0
- package/dist/dom/types/window/Window.d.ts +8 -2
- package/dist/dom/types/window/clock.d.ts +47 -5
- package/dist/react/_chunks/pure-D7Z4g4oF.js +1 -0
- package/dist/react/_chunks/pure-DOgNQrwu.cjs +1 -0
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/pure.cjs +1 -1
- package/dist/react/pure.js +1 -1
- package/dist/user-event/index.cjs +15 -15
- package/dist/user-event/index.js +15 -15
- package/dist/user-event/types/ctrl-dom.d.ts +6 -0
- package/dist/user-event/types/event/createEvent.d.ts +143 -2
- package/dist/user-event/types/utils/misc/wait.d.ts +1 -1
- package/dist/vitest-environment/index.js +1 -1
- package/dist/vitest-environment/plugin.js +1 -1
- package/dist/vitest-environment/types/index.d.ts +8 -0
- package/package.json +1 -1
- package/dist/dom/_chunks/src-BbkJRbbx.js +0 -49
- package/dist/react/_chunks/pure-C0WlxYhN.js +0 -1
- package/dist/react/_chunks/pure-DABEr3FU.cjs +0 -1
package/dist/dom/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Cr as AbstractRange,ms as AnimationEvent,Wa as Attr,Zt as Audio,hs 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,As as ClipboardEvent,lr as ClipboardItem,gs as CloseEvent,Or as CommandEvent,to as Comment,js as CompositionEvent,ba as CustomElementRegistry,_s 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,Ms as DragEvent,Ea as Element,Xn as ElementInternals,vs as ErrorEvent,Ks as Event,ns as EventTarget,et as FileList,A as FileReader,Ns as FocusEvent,F as FormData,ys 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,bs as HashChangeEvent,dr as History,Jn as Image,Ps as InputEvent,O as IntersectionObserver,Fs as KeyboardEvent,fr as Location,nt as MathMLElement,tn as MediaError,Mi as MediaList,oi as MediaQueryList,li as MediaQueryListEvent,xs as MessageEvent,Is 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,Ss as PageTransitionEvent,Ls as PointerEvent,Cs as PopStateEvent,no as ProcessingInstruction,ws as ProgressEvent,Ts 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,Es as StorageEvent,Ni as StyleSheet,Pi as StyleSheetList,Ds as SubmitEvent,ro as Text,Rs as TextEvent,nn as TimeRanges,Os as ToggleEvent,zs as Touch,Bs as TouchEvent,Vs as TouchList,ks as TransitionEvent,Sr as TreeWalker,Hs as UIEvent,ea as ValidityState,sr as VisualViewport,Us as WheelEvent,tr as Window,_r as XMLDocument,j as XMLHttpRequest,M as XMLHttpRequestEventTarget,N as XMLHttpRequestUpload,mr as XMLSerializer,nr as createWindow,us as currentDocument,ds as currentWindow,fs as currentWindowOrNull,Lr as getComputedStyle,P as installGlobals,ps as setCurrentWindow}from"./_chunks/src-
|
|
1
|
+
export{Cr as AbstractRange,ms as AnimationEvent,Wa as Attr,Zt as Audio,hs 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,As as ClipboardEvent,lr as ClipboardItem,gs as CloseEvent,Or as CommandEvent,to as Comment,js as CompositionEvent,ba as CustomElementRegistry,_s 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,Ms as DragEvent,Ea as Element,Xn as ElementInternals,vs as ErrorEvent,Ks as Event,ns as EventTarget,et as FileList,A as FileReader,Ns as FocusEvent,F as FormData,ys 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,bs as HashChangeEvent,dr as History,Jn as Image,Ps as InputEvent,O as IntersectionObserver,Fs as KeyboardEvent,fr as Location,nt as MathMLElement,tn as MediaError,Mi as MediaList,oi as MediaQueryList,li as MediaQueryListEvent,xs as MessageEvent,Is 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,Ss as PageTransitionEvent,Ls as PointerEvent,Cs as PopStateEvent,no as ProcessingInstruction,ws as ProgressEvent,Ts 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,Es as StorageEvent,Ni as StyleSheet,Pi as StyleSheetList,Ds as SubmitEvent,ro as Text,Rs as TextEvent,nn as TimeRanges,Os as ToggleEvent,zs as Touch,Bs as TouchEvent,Vs as TouchList,ks as TransitionEvent,Sr as TreeWalker,Hs as UIEvent,ea as ValidityState,sr as VisualViewport,Us as WheelEvent,tr as Window,_r as XMLDocument,j as XMLHttpRequest,M as XMLHttpRequestEventTarget,N as XMLHttpRequestUpload,mr as XMLSerializer,nr as createWindow,us as currentDocument,ds as currentWindow,fs as currentWindowOrNull,Lr as getComputedStyle,P as installGlobals,ps as setCurrentWindow}from"./_chunks/src-BlQ27FdQ.js";
|
package/dist/dom/internal.js
CHANGED
|
@@ -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 ee,Aa as te,Ac as ne,Ad as l,Af as re,Al as ie,Ao as ae,Ar as oe,Au as se,Ba as ce,Bc as le,Bd as ue,Bi as de,Bl as fe,Bo as pe,Br as me,Bu as he,C as ge,Ca as _e,Cc as ve,Cd as ye,Cf as be,Cl as xe,Co as Se,Cu as Ce,Da as we,Dc as Te,Dd as Ee,Df as De,Dl as Oe,Do as ke,Dr as Ae,Du as je,Ec as Me,Ed as u,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 b,Gi as Re,Gl as ze,Go as Be,Gr as Ve,Gs as He,Gu as x,Hc as Ue,Hd as We,Hi as Ge,Hl as Ke,Ho as qe,Hr as Je,Hu as Ye,I as Xe,Ic as Ze,Id as Qe,If as $e,Ii as et,Il as tt,Ir as nt,Iu as rt,Ja as it,Jc as S,Jd as at,Ji as ot,Jl as st,Jo as ct,Jr as lt,Js as ut,Ju as C,Kc as w,Kd as T,Ki as dt,Kl as ft,Ko as pt,Kr as mt,Ku as E,Lc as ht,Ld as gt,Lf as _t,Li as vt,Ll as yt,Lo as bt,Lr as xt,Lu as St,Mc as Ct,Md as wt,Mf as Tt,Ml as Et,Mo as Dt,Mr as Ot,Mu as kt,Nc as At,Nd as jt,Nf as Mt,Nl as Nt,No as Pt,Nr as Ft,Nu as It,Oa as Lt,Oc as Rt,Od as zt,Of as Bt,Ol as Vt,Oo as Ht,Ou as D,Pc as Ut,Pd as Wt,Pf as Gt,Pl as Kt,Po as qt,Pr as Jt,Pu as Yt,Qc as Xt,Qd as Zt,Qi as Qt,Ql as $t,Qn as en,Qo as tn,Qr as nn,Qs as rn,Qu as an,Ra as on,Rc as sn,Rd as cn,Ri as ln,Rl as un,Ro as dn,Rr as fn,Ru as pn,S as mn,Sa as hn,Sc as gn,Sd as _n,Sf as vn,Sl as yn,So as bn,Su as xn,Ta as Sn,Tc as Cn,Td as wn,Tf as Tn,Tl as En,To as Dn,Tu as On,Ua as kn,Uc as An,Ud as jn,Ui as Mn,Ul as Nn,Uo as Pn,Ur as Fn,Uu as In,Va as Ln,Vc as Rn,Vd as zn,Vi as Bn,Vl as Vn,Vo as Hn,Vr as Un,Vu as Wn,Wc as Gn,Wd as Kn,Wi as qn,Wl as Jn,Wo as Yn,Wr as Xn,Ws as Zn,Wu as Qn,Xa as $n,Xc as er,Xd as tr,Xi as nr,Xl as rr,Xo as ir,Xr as ar,Xs as or,Xu as sr,Y as cr,Ya as lr,Yc as ur,Yd as dr,Yl as fr,Yo as pr,Yr as mr,Ys as hr,Yu as gr,Zc as _r,Zd as vr,Zi as yr,Zl as br,Zo as xr,Zr as Sr,Zs as Cr,Zu as wr,_ as Tr,_a as O,_c as Er,_d as Dr,_f as Or,_l as kr,_o as Ar,_u as jr,a as Mr,aa as Nr,ac as Pr,ad as Fr,af as Ir,ai as Lr,al as Rr,ao as zr,as as Br,au as Vr,b as Hr,bc as Ur,bd as k,bf as Wr,bl as Gr,bo as Kr,bu as qr,c as Jr,ca as Yr,cc as Xr,cd as Zr,cf as Qr,ci as $r,cl as ei,co as ti,cs as ni,cu as ri,d as ii,da as ai,dc as oi,dd as si,df as ci,dl as li,du as ui,ec as A,ed as di,ef as fi,ei as pi,el as mi,er as hi,es as gi,eu as _i,f as vi,fa as yi,fc as bi,fd as xi,ff as Si,fl as Ci,fo as wi,fu as Ti,g as Ei,ga as Di,gc as Oi,gd as ki,gf as Ai,gl as ji,go as Mi,gu as Ni,h as Pi,ha as Fi,hc as Ii,hd as Li,hf as Ri,hl as zi,ho as Bi,hu as Vi,i as Hi,ia as Ui,ic as Wi,id as Gi,if as Ki,ii as qi,il as Ji,io as Yi,ir as Xi,is as Zi,iu as Qi,jc as $i,jd as ea,jf as ta,jl as j,jo as na,jr as ra,ju as ia,ka as aa,kc as oa,kd as M,kf as sa,kl as ca,ko as la,kr as ua,ku as da,l as fa,la as pa,lc as ma,ld as ha,lf as ga,ll as _a,lo as va,ls as ya,lu as ba,m as N,ma as P,mc as xa,md as Sa,mf as Ca,ml as wa,mo as Ta,mu as Ea,n as Da,nc as F,nd as Oa,nf as ka,ni as Aa,nl as ja,nu as Ma,o as Na,oa as Pa,oc as Fa,od as Ia,of as La,ol as Ra,oo as za,os as Ba,ou as Va,p as Ha,pa as Ua,pc as Wa,pd as Ga,pf as Ka,pl as qa,po as Ja,pu as Ya,qc as Xa,qd as Za,qi as Qa,ql as $a,qo as eo,qr as to,qs as no,qu as ro,r as io,rc as ao,rd as oo,rf as so,ri as co,rl as lo,rr as I,rs as uo,ru as fo,s as po,sa as mo,sc as ho,sd as go,sf as _o,si as vo,sl as L,so as yo,ss as bo,su as xo,tc as So,td as Co,tf as wo,ti as To,tl as Eo,tr as R,ts as Do,tt as z,tu as Oo,u as ko,ua as Ao,uc as jo,ud as Mo,uf as No,ui as Po,ul as Fo,uo as Io,uu as Lo,v as Ro,va as B,vc as zo,vd as Bo,vf as Vo,vl as Ho,vo as Uo,vr as Wo,vu as Go,wa as Ko,wc as qo,wd as Jo,wf as Yo,wl as Xo,wo as Zo,wu as Qo,x as $o,xa as es,xc as ts,xd as ns,xf as rs,xl as is,xo as V,xu as as,y as os,ya as H,yc as ss,yd as cs,yf as ls,yl as us,yo as ds,yu as fs,za as ps,zc as ms,zd as hs,zi as gs,zl as _s,zo as vs,zr as ys,zu as bs}from"./_chunks/src-BbkJRbbx.js";import{constants as xs,createContext as Ss,runInContext as Cs}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 ws=null;function ownObjectCreateMaps(){if(W===null)return;let e=ws??=Cs(`(prototypes) => prototypes.map((p) => Object.create(p))`,Ss(xs.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=b();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=b();return q.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=b()-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[j]!==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=T();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[j]??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):Jt(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[k]??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[l]++,t[M]=a,t[S]=!0,t[u]=!0,t[k]=a===n?null:n,t[F]=a===``&&n!==``&&i!==5&&!O(i);let o=n.length;t[C]>o&&(t[C]=o),t[E]>o&&(t[E]=o)}else if(r.tag===V.textarea){let e=r.node;r.doc[l]++,e[D]=n,e[S]=!0,e[u]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;e[k]=null,e[F]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[C],n),end:Math.min(t[E],n),direction:t[x]}}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[C]=s,a[E]=c,a[x]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===V.input&&P(n)===17&&(n.doc[l]++,n.node[L]=z(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==V.option)return;let r=n.node;r._setSelectedness(t),r[w]=!0;let i=cr(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 Ts=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===Ts||typeof n!=`function`||Xe.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{hr as $_proto__,or as $aboutBase,Cr as $active,rn as $assocGen,c as $attr,A as $attributes,So as $availableToElementInternals,F as $badInput,ao as $baseFor,Wi as $baseOverride,Pr as $baseURL,Fa as $baseVersion,ho as $block,Xr as $byCtor,ma as $byName,jo as $cache,oi as $callback,bi as $checked,Wa as $checkedSet,xa as $childNodes,Ii as $childWindows,Oi as $children,Er as $classList,zo as $clipboard,ss as $clonable,Ur as $closed,ts as $coll,gn as $compiled,ve as $compiledFor,qo as $condition,Cn as $constructed,Me as $constructingEntryList,Te as $contentType,Rt as $controlsCache,oa as $controlsDoc,ne as $controlsVersion,$i as $cookieJar,Ct as $cookies,At as $css,Ut as $current,m as $customElements,Ze as $customValidity,ht as $cx,sn as $data,ms as $dataset,le as $declarative,Rn as $defaultNamespace,Ue as $defaultValueOverride,An as $delegatesFocus,Gn as $derived,Le as $devicePixelRatio,w as $dirtiness,Xa as $dirtyChecked,S as $dirtyValue,ur as $disabled,er as $disallowModification,_r as $doc,Xt as $dropEffect,t as $ec,mi as $effectAllowed,Eo as $el,ja as $elements,lo as $entries,Ji as $eo,Rr as $error,Ra as $file,L as $files,ei as $fill,_a as $filter,Fo as $firingSubmissionEvents,li as $focused,Ci as $form,qa as $forms,wa as $frameCallbacks,zi as $frameElement,ji as $frameId,kr as $frameTask,Ho as $frameTime,us as $generation,Gr as $globalObject,is as $hasTransients,yn as $height,xe as $history,Xo as $home,En as $host,Pe as $href,Oe as $id,Vt as $idleCallbacks,ca as $idleId,ie as $ids,j as $impl,Et as $implementation,Nt as $indeterminate,Kt as $index,v as $indexed,tt as $inflight,yt as $info,un as $innerHeight,_s as $innerWidth,fe as $is2D,Vn as $isHTML,Ke as $items,Nn as $keyText,Jn as $kind,ze as $labels,ft as $layerName,$a as $list,st as $listeners,fr as $localStorage,rr as $location,br as $lockedForReset,$t as $m,i as $matches,_i as $media,Oo as $mediaQueryLists,Ma as $mode,fo as $name,Qi as $names,Vr as $namespaces,Va as $navigator,xo as $nodes,ri as $onchange,ba as $options,Lo as $owner,ui as $ownerNode,Ti as $ownerRule,Ya as $parent,Ea as $parentRule,Vi as $parentWindow,Ni as $pastNames,jr as $pointerBeforeReference,Go as $preApplied,fs as $preChecked,qr as $preCheckedRadio,as as $preIndeterminate,xn as $prefix,Ce as $prelude,Qo as $presentationStyle,On as $pseudo,p as $queries,je as $ranges,D as $rawValue,da as $readonly,se as $readyState,ia as $record,kt as $records,It as $rects,Yt as $reference,Ie as $result,rt as $root,St as $rules,pn as $running,bs as $runningFrame,he as $sc,Wn as $screen,Ye as $scrollRestoration,In as $scrollX,Qn as $scrollY,x as $selDir,E as $selEnd,ro as $selSet,C as $selStart,gr as $selectedOptions,sr as $selectedness,wr as $selection,an as $selector,ee as $serializable,di as $sessionStorage,Co as $settled,Oa as $shadowRoot,oo as $shed,Gi as $sheet,Fr as $sheets,Ia as $slotAssignment,go as $so,Zr as $states,ha as $style,Mo as $styleVersion,si as $supportsText,xi as $systemId,Ga as $target,Sa as $targets,Li as $tasks,ki as $timers,Dr as $title,Bo as $type,cs as $types,k as $uiValue,ns as $updating,_n as $updatingSelectedContent,ye as $uri,Jo as $url,wn as $userActivation,u as $userEdited,Ee as $userValidity,zt as $validity,M as $value,l as $version,ea as $visualViewport,wt as $w,jt as $whatToShow,Wt as $whenDefined,h as $width,Qe as $window,gt as $writeBuffer,cn as $x,hs as $xhr,ue as $y,zn as $z,Zt as ATTRIBUTE_NODE,gi as AttrRecord,n as CDATA_SECTION_NODE,fi as COMMENT_NODE,Ge as COMPAT,Mn as COMPAT_PROFILES,qn as DEFAULT_COMPAT,wo as DOCUMENT_FRAGMENT_NODE,ka as DOCUMENT_NODE,so as DOCUMENT_POSITION_CONTAINED_BY,Ki as DOCUMENT_POSITION_CONTAINS,Ir as DOCUMENT_POSITION_DISCONNECTED,La as DOCUMENT_POSITION_FOLLOWING,_o as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,Qr as DOCUMENT_POSITION_PRECEDING,ga as DOCUMENT_TYPE_NODE,nr as DeclBlock,No as ELEMENT_NODE,ci as ENTITY_NODE,Si as ENTITY_REFERENCE_NODE,no as EventState,Y as FAILURE_CHANNEL,Ka as F_ADOPT_HOOK,Ca as F_ARIA_ATTRS,Ri as F_ATTR_HOOK,Ai as F_CE_CUSTOM,Or as F_CHILDREN_HOOK,Vo as F_CHILD_LIST,ls as F_CONNECTED,Wr as F_CONNECT_HOOK,rs as F_CUSTOM,vn as F_DATA_ATTRS,be as F_FACE,Yo as F_HAS_SHADOW,Tn as F_HAS_STYLE_ATTR,Ne as F_HTML,De as F_MO_REGISTERED,Bt as F_SHADOW_ROOT,es as GLOBAL_EVENT_HANDLER_EVENTS,Yi as HTMLCollection,sa as HTML_NS,Ua as INPUT_TYPE_NAMES,re as MATHML_NS,ta as NOTATION_NODE,vt as NodeCache,Do as NodeImpl,bt as NodeList,Tt as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,Mt as SVG_NS,V as T,Gt as TEXT_NODE,We as VirtualClock,jn as VirtualTimeout,hn as WINDOW_EVENT_HANDLER_EVENTS,g as XLINK_NS,$e as XMLNS_NS,_t as XML_NS,nn as adoptedStyleSheetsOf,Zo as ariaAttr,Dn as asciiLowercase,Bi as assignManually,Mi as assignedElements,Ar as assignedNodes,Uo as assignedSlot,we as attachShadowRoot,d as attr,en as attrAssociatedElement,a as attrAssociatedElements,kn as attrNode,captureInterfaceBaseline,qe as childAt,ke as classTokens,clearUIValue,Kn as clockNow,T as clockStats,yo as closest,f as compareBoundaryPoints,Re as compatExposes,fn as computedDisplay,ys as computedValue,me as computedVisibility,ua as constructEntryList,Da as controlValue,Wo as createEvent,z as createFileList,s as createLinkSheet,Un as currentStyleVersion,oe as defaultButton,dt as deferredCompatMembers,pe as derivedCache,describeCall,describeNode,uo as dispatch,gs as dispatchTrusted,zr as ensureCollectionIndexGetters,dn as ensureIndexGetters,vo as evaluateMediaQueryList,Qt as faceState,ds as findFlattenedSlottables,Kr as findSlot,de as fireAnEvent,Bn as fireSyntheticPointerEvent,Pn as firstElementChild,Za as foreignImmediatesPending,Nr as formOwner,Ht as getAttribute,xt as getComputedStyle,getComputedStyleOverride,Zi as getCurrentEvent,Lt as getElementsByClassName,aa as getElementsByTagName,te as getElementsByTagNameNS,_e as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,la as hasAttr,Je as hasAuthorStyles,hi as hasExplicitAttrElements,Zn as hasListeners,io as hasReadonlyAttribute,hasUIValue,Qa as hiddenGlobals,ra as implicitSubmission,vs as indexGetterTable,Yn as indexOf,Hi as inputChecked,Mr as inputIndeterminate,P as inputType,Fi as inputTypeFromAttr,wi as inspectNode,at as installClock,Ko as installEventHandlers,Pa as isActuallyDisabled,ae as isAsciiWhitespace,Na as isAutofilled,po as isChecked,Jr as isDefault,fa as isDisabled,Fn as isDisplayNone,Xn as isDisplayNoneInclusive,isEditable as isEditableControl,ko as isEnabled,r as isFACE,ii as isInRange,Be as isInclusiveAncestor,vi as isIndeterminate,Ha as isInvalid,mo as isLabelable,Yr as isListed,N as isMutable,Di as isNumericType,Pi as isOptional,Ei as isOutOfRange,Tr as isPlaceholderShown,Ro as isReadOnly,os as isReadWrite,Hr as isRequired,pa as isResettable,Ot as isSubmitButton,Ao as isSubmittable,$o as isTextControl,O as isTextualType,mn as isValid,on as isValidDoctypeName,ps as isValidElementLocalName,ce as isValidNamespacePrefix,Ve as isVisibilityHidden,ai as labeledControl,yi as labelsFor,pt as lastElementChild,Ui as listOfOptions,_ as matchMediaText,ti as matches,$r as mediaEnvironment,eo as nextElementInTree,ct as nextElementSibling,pr as nextInTree,ir as nextSkippingChildren,ln as nodeCache,Br as nodeGetTheParent,Ae as nodeLength,y as notifyMutationObservers,ge as optionSelected,yr as parseDeclBlock,$n as parseFragment,et as parseMediaQueryList,Hn as peekDerivedCache,mt as pointerEvents,to as pointerEventsNone,na as prefixFlag,xr as previousElementSibling,tn as previousInTree,lt as pseudoContent,va as querySelector,Io as querySelectorAll,quote,To as registerOwnerSheet,He as removeAllEventListeners,Dt as removeAttribute,Aa as removeOwnerSheet,Ja as replaceData,ni as reportException,ot as resolveCompat,restoreInterfaces,Ba as retarget,it as serializeChildren,lr as serializeNode,co as setAdoptedStyleSheets,bo as setAssignedSlotLookup,Pt as setAttribute,setCheckedFromUI,mr as setComputedColorMode,Sn as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Ft as setNotImplementedHandler,setOptionSelectedFromUI,ut as setTrusted,setUISelection,setUIValue,ya as setUncaughtExceptionHandler,dr as skipIdleTime,spanChannel,qt as splitOnAsciiWhitespace,Ta as splitText,Fe as styleElementRemoved,pi as styleElementSheet,nt as styleElementUpdated,qi as styleSheetsOf,ar as styledDisplay,subscribeTestFailures,supportsSelection,B as supportsSelectionType,bn as tagId,Se as tagName,tracePromise,traceSync,tracing,Xi as trackGlobalTimers,o as treeRoot,Sr as uaDisplay,Lr as unregisterOwnerSheet,Ln as validateAndExtract,H as valueMode,tr as virtualDate,vr as virtualPerformance,Po as windowHooks,I as windowInterfaces,za as withNamedProperties};
|
|
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 ee,Aa as te,Ac as ne,Ad as l,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 u,Df as De,Dl as Oe,Do as ke,Dr as Ae,Du as je,Ec as Me,Ed as Ne,Ef as Pe,El as d,Eo as f,Er as p,Eu as m,Fc as h,Fd as g,Ff as _,Fi as v,Fl as y,Fo as Fe,Fr as Ie,Fu as Le,Gc as Re,Gd 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,Hu as $e,I as et,Ic as tt,Id as nt,If as rt,Ii as it,Il as at,Ir as ot,Iu as st,Ja as ct,Jc as b,Jd as x,Ji as lt,Jl as ut,Jo as dt,Jr as ft,Js as pt,Ju as mt,Kc as S,Kd as ht,Ki as gt,Kl as _t,Ko as vt,Kr as yt,Ku as C,Lc as bt,Ld as xt,Lf as St,Li as Ct,Ll as wt,Lo as Tt,Lr as Et,Lu as Dt,Mc as Ot,Md as kt,Mf as At,Ml as jt,Mo as Mt,Mr as Nt,Mu as Pt,Nc as Ft,Nd as It,Nf as Lt,Nl as Rt,No as zt,Nr as Bt,Nu as Vt,Oa as Ht,Oc as Ut,Od as Wt,Of as Gt,Ol as Kt,Oo as qt,Ou as w,Pc as Jt,Pd as Yt,Pf as Xt,Pl as Zt,Po as Qt,Pr as $t,Pu as en,Qc as tn,Qd as nn,Qi as rn,Ql as an,Qn as on,Qo as sn,Qr as cn,Qs as ln,Qu as un,Ra as dn,Rc as fn,Rd as pn,Rf as mn,Ri as hn,Rl as gn,Ro as _n,Rr as vn,Ru as yn,S as bn,Sa as xn,Sc as Sn,Sd as Cn,Sf as wn,Sl as Tn,So as En,Su as Dn,Ta as On,Tc as kn,Td as An,Tf as jn,Tl as Mn,To as Nn,Tu as Pn,Ua as Fn,Uc as In,Ud as Ln,Uf as Rn,Ui as zn,Ul as Bn,Uo as Vn,Ur as Hn,Uu as Un,Va as Wn,Vc as Gn,Vd as Kn,Vf as qn,Vi as Jn,Vl as Yn,Vo as Xn,Vr as Zn,Vu as Qn,Wc as $n,Wd as er,Wf as tr,Wi as nr,Wl as rr,Wo as ir,Wr as ar,Ws as or,Wu as sr,Xa as cr,Xc as lr,Xd as ur,Xi as dr,Xl as fr,Xo as pr,Xr as mr,Xs as hr,Xu as gr,Y as _r,Ya as vr,Yc as yr,Yd as br,Yl as xr,Yo as Sr,Yr as Cr,Ys as wr,Yu as T,Zc as Tr,Zd as Er,Zi as Dr,Zl as Or,Zo as kr,Zr as Ar,Zs as jr,Zu as Mr,_ as Nr,_a as E,_c as Pr,_d as Fr,_f as Ir,_l as Lr,_o as Rr,_u as zr,a as Br,aa as Vr,ac as Hr,ad as Ur,af as Wr,ai as Gr,al as Kr,ao as qr,as as Jr,au as Yr,b as Xr,bc as Zr,bd as Qr,bf as $r,bl as ei,bo as ti,bu as ni,c as ri,ca as ii,cc as ai,cd as oi,cf as si,ci,cl as li,co as ui,cs as di,cu as fi,d as pi,da as D,dc as mi,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 O,jf as la,jl as k,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,ls as Oa,lu as ka,m as A,ma as j,mc as Aa,md as ja,mf as Ma,ml as Na,mo as Pa,mu as Fa,n as Ia,nc as M,nd as La,nf as Ra,ni as za,nl 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 N,qi as oo,ql as so,qo as co,qr as lo,qs as uo,qu as P,r as fo,rc as po,rd as mo,rf as ho,ri as go,rl as _o,rr as F,rs as vo,ru as yo,s as bo,sa as xo,sc as So,sd as Co,sf as wo,si as To,sl as I,so as Eo,ss as Do,su as Oo,tc as ko,td as Ao,tf as jo,ti as Mo,tl as No,tr as L,ts as Po,tt as R,tu as Fo,u as Io,ua as Lo,uc as Ro,ud as zo,uf as Bo,ui as Vo,ul as Ho,uo as Uo,uu as Wo,v as Go,va as z,vc as Ko,vd as qo,vf as Jo,vl as Yo,vo as Xo,vr as Zo,vu as Qo,wa as $o,wc as es,wd as ts,wf as ns,wl as rs,wo as is,wu as as,x as os,xa as ss,xc as cs,xd as B,xf as ls,xl as us,xo as V,xu as ds,y as fs,ya as H,yc as ps,yd as ms,yf as hs,yl as gs,yo as _s,yu as vs,za as ys,zc as bs,zd as xs,zf as Ss,zi as Cs,zl as ws,zo as Ts,zr as Es,zu as Ds}from"./_chunks/src-BlQ27FdQ.js";import{constants as Os,createContext as ks,runInContext as As}from"node:vm";import*as U from"node:diagnostics_channel";let W=null;function targets(){let e=/* @__PURE__ */ new Set,t=F();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 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 js=null;function ownObjectCreateMaps(){if(W===null)return;let e=js??=As(`(prototypes) => prototypes.map((p) => Object.create(p))`,ks(Os.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=N();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=N();return q.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=N()-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[k]!==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[k]??e}function isTypingType(e){return E(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===V.input?isTypingType(j(t))&&A(t):t.tag===V.textarea?A(t):$t(t)}function supportsSelection(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&z(j(t))}function hasUIValue(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&H(j(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;return e[B]??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=j(r);if(H(i)!==0)return;let a=e(i,n,r);r.doc[O]++,t[l]=a,t[b]=!0,t[u]=!0,t[B]=a===n?null:n,t[M]=a===``&&n!==``&&i!==5&&!E(i);let o=n.length;t[T]>o&&(t[T]=o),t[P]>o&&(t[P]=o)}else if(r.tag===V.textarea){let e=r.node;r.doc[O]++,e[w]=n,e[b]=!0,e[u]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;e[B]=null,e[M]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[T],n),end:Math.min(t[P],n),direction:t[C]}}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[T]=s,a[P]=c,a[C]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===V.input&&j(n)===17&&(n.doc[O]++,n.node[I]=R(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==V.option)return;let r=n.node;r._setSelectedness(t),r[S]=!0;let i=_r(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 Ms=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===Ms||typeof n!=`function`||et.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{wr as $_proto__,hr as $aboutBase,jr as $active,ln as $assocGen,c as $attr,yi as $attributes,ko as $availableToElementInternals,M as $badInput,po as $baseFor,$i as $baseOverride,Hr as $baseURL,Wa as $baseVersion,So as $block,ai as $byCtor,Ca as $byName,Ro as $cache,mi as $callback,ki as $checked,$a as $checkedSet,Aa as $childNodes,Gi as $childWindows,Li as $children,Pr as $classList,Ko as $clipboard,ps as $clonable,Zr as $closed,cs as $coll,Sn as $compiled,ye as $compiledFor,es as $condition,kn as $constructed,Me as $constructingEntryList,Ee as $contentType,Ut as $controlsCache,ma as $controlsDoc,ne as $controlsVersion,ca as $cookieJar,Ot as $cookies,Ft as $css,Jt as $current,h as $customElements,tt as $customValidity,bt as $cx,fn as $data,bs as $dataset,le as $declarative,Gn as $defaultNamespace,Ke as $defaultValueOverride,In as $delegatesFocus,$n as $derived,Re as $devicePixelRatio,S as $dirtiness,ao as $dirtyChecked,b as $dirtyValue,yr as $disabled,lr as $disallowModification,Tr as $doc,tn as $dropEffect,t as $ec,Ci as $effectAllowed,No as $el,Ba as $elements,_o as $entries,ra as $eo,Kr as $error,qa as $file,I as $files,li as $fill,Ea as $filter,Ho as $firingSubmissionEvents,_i as $focused,Mi as $form,no as $forms,Na as $frameCallbacks,Ji as $frameElement,Bi as $frameId,Lr as $frameTask,Yo as $frameTime,gs as $generation,ei as $globalObject,us as $hasTransients,Tn as $height,Se as $history,rs as $home,Mn as $host,d as $href,Oe as $id,Kt as $idleCallbacks,_a as $idleId,ie as $ids,k as $impl,jt as $implementation,Rt as $indeterminate,Zt as $index,y as $indexed,at as $inflight,wt as $info,gn as $innerHeight,ws as $innerWidth,pe as $is2D,Yn as $isHTML,Xe as $items,Bn as $keyText,rr as $kind,Ve as $labels,_t as $layerName,so as $list,ut as $listeners,xr as $localStorage,fr as $location,Or as $lockedForReset,an as $m,i as $matches,Ei as $media,Fo as $mediaQueryLists,Va as $mode,yo as $name,sa as $names,Yr as $namespaces,Xa as $navigator,Oo as $nodes,fi as $onchange,ka as $options,Wo as $owner,vi as $ownerNode,Pi as $ownerRule,io as $parent,Fa as $parentRule,Xi as $parentWindow,Hi as $pastNames,zr as $pointerBeforeReference,Qo as $preApplied,vs as $preChecked,ni as $preCheckedRadio,ds as $preIndeterminate,Dn as $prefix,we as $prelude,as as $presentationStyle,Pn as $pseudo,m as $queries,je as $ranges,w as $rawValue,ba as $readonly,se as $readyState,fa as $rebuildVersion,Pt as $record,Vt as $records,en as $rects,Le as $reference,st as $result,Dt as $root,yn as $rules,Ds as $running,ge as $runningFrame,Qn as $sc,$e as $screen,Un as $scrollRestoration,sr as $scrollX,Ge as $scrollY,C as $selDir,P as $selEnd,mt as $selSet,T as $selStart,gr as $selectedOptions,Mr as $selectedness,un as $selection,ee as $selector,bi as $serializable,Ao as $sessionStorage,La as $settled,mo as $shadowRoot,ea as $shed,Ur as $sheet,Ga as $sheets,Co as $slotAssignment,oi as $so,wa as $states,zo as $style,hi as $styleVersion,Ai as $supportsText,eo as $systemId,ja as $target,Ki as $targets,Ri as $tasks,Fr as $timers,qo as $title,ms as $type,Qr as $types,B as $uiValue,Cn as $updating,be as $updatingSelectedContent,ts as $uri,An as $url,Ne as $userActivation,u as $userEdited,Wt as $userValidity,ha as $validity,l as $value,O as $version,kt as $visualViewport,It as $w,Yt as $whatToShow,g as $whenDefined,nt as $width,xt as $window,pn as $writeBuffer,xs as $x,ue as $xhr,Kn as $y,qe as $z,Ra as ATTRIBUTE_NODE,Ti as AttrRecord,ho as CDATA_SECTION_NODE,ta as COMMENT_NODE,Ye as COMPAT,zn as COMPAT_PROFILES,nr as DEFAULT_COMPAT,Wr as DOCUMENT_FRAGMENT_NODE,Ka as DOCUMENT_NODE,wo as DOCUMENT_POSITION_CONTAINED_BY,si as DOCUMENT_POSITION_CONTAINS,Ta as DOCUMENT_POSITION_DISCONNECTED,Bo as DOCUMENT_POSITION_FOLLOWING,gi as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,ji as DOCUMENT_POSITION_PRECEDING,to as DOCUMENT_TYPE_NODE,dr as DeclBlock,Ma as ELEMENT_NODE,qi as ENTITY_NODE,zi as ENTITY_REFERENCE_NODE,uo as EventState,Y as FAILURE_CHANNEL,Ir as F_ADOPT_HOOK,Jo as F_ARIA_ATTRS,hs as F_ATTR_HOOK,$r as F_CE_CUSTOM,ls as F_CHILDREN_HOOK,wn as F_CHILD_LIST,xe as F_CONNECTED,ns as F_CONNECT_HOOK,jn as F_CONTENTEDITABLE_ATTR,Pe as F_CUSTOM,De as F_DATA_ATTRS,Gt as F_FACE,ga as F_HAS_SHADOW,re as F_HAS_STYLE_ATTR,la as F_HTML,At as F_INERT_ATTR,Lt as F_MO_REGISTERED,Xt as F_SHADOW_ROOT,_ as F_TABINDEX_ATTR,ss as GLOBAL_EVENT_HANDLER_EVENTS,ia as HTMLCollection,rt as HTML_NS,Qa as INPUT_TYPE_NAMES,St as MATHML_NS,mn as NOTATION_NODE,Ct as NodeCache,Po as NodeImpl,Tt as NodeList,Ss as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,de as SVG_NS,V as T,qn as TEXT_NODE,Ln as VirtualClock,er as VirtualTimeout,xn as WINDOW_EVENT_HANDLER_EVENTS,Je as XLINK_NS,Rn as XMLNS_NS,tr as XML_NS,cn as adoptedStyleSheetsOf,is as ariaAttr,Nn as asciiLowercase,Yi as assignManually,Vi as assignedElements,Rr as assignedNodes,Xo as assignedSlot,Te as attachShadowRoot,f as attr,on as attrAssociatedElement,a as attrAssociatedElements,Fn as attrNode,ze as canSkipZeroDelayWait,captureInterfaceBaseline,Ze as childAt,ke as classTokens,clearUIValue,ht as clockNow,x as clockStats,Eo as closest,p as compareBoundaryPoints,Be as compatExposes,vn as computedDisplay,Es as computedValue,he as computedVisibility,ya as constructEntryList,Ia as controlValue,Zo as createEvent,R as createFileList,s as createLinkSheet,Zn as currentStyleVersion,oe as defaultButton,gt as deferredCompatMembers,me as derivedCache,describeCall,describeNode,vo as dispatch,Cs as dispatchTrusted,qr as ensureCollectionIndexGetters,_n as ensureIndexGetters,To as evaluateMediaQueryList,rn as faceState,_s as findFlattenedSlottables,ti as findSlot,fe as fireAnEvent,Jn as fireSyntheticPointerEvent,Vn as firstElementChild,br as foreignImmediatesPending,Vr as formOwner,qt as getAttribute,Et as getComputedStyle,getComputedStyleOverride,oa as getCurrentEvent,Ht as getElementsByClassName,pa as getElementsByTagName,te as getElementsByTagNameNS,ve as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,va as hasAttr,Qe as hasAuthorStyles,wi as hasExplicitAttrElements,or as hasListeners,fo as hasReadonlyAttribute,hasUIValue,oo as hiddenGlobals,da as implicitSubmission,Ts as indexGetterTable,ir as indexOf,Zi as inputChecked,Br as inputIndeterminate,j as inputType,Wi as inputTypeFromAttr,Ni as inspectNode,ur as installClock,$o as installEventHandlers,Ua as isActuallyDisabled,ae as isAsciiWhitespace,Ha as isAutofilled,bo as isChecked,Er as isClockTimer,ri as isDefault,xa as isDisabled,Hn as isDisplayNone,ar as isDisplayNoneInclusive,isEditable as isEditableControl,Io as isEnabled,r as isFACE,pi as isInRange,He as isInclusiveAncestor,Di as isIndeterminate,Za as isInvalid,xo as isLabelable,ii as isListed,A as isMutable,Ii as isNumericType,Ui as isOptional,Fi as isOutOfRange,Nr as isPlaceholderShown,Go as isReadOnly,fs as isReadWrite,Xr as isRequired,Sa as isResettable,Nt as isSubmitButton,Lo as isSubmittable,os as isTextControl,E as isTextualType,bn as isValid,dn as isValidDoctypeName,ys as isValidElementLocalName,ce as isValidNamespacePrefix,Ue as isVisibilityHidden,D as labeledControl,Oi as labelsFor,vt as lastElementChild,Qi as listOfOptions,v as matchMediaText,ui as matches,ci as mediaEnvironment,co as nextElementInTree,dt as nextElementSibling,Sr as nextInTree,pr as nextSkippingChildren,hn as nodeCache,Jr as nodeGetTheParent,Ae as nodeLength,Fe as notifyMutationObservers,_e as optionSelected,Dr as parseDeclBlock,cr as parseFragment,it as parseMediaQueryList,Xn as peekDerivedCache,yt as pointerEvents,lo as pointerEventsNone,ua as prefixFlag,kr as previousElementSibling,sn as previousInTree,ft as pseudoContent,Da as querySelector,Uo as querySelectorAll,quote,Mo as registerOwnerSheet,We as removeAllEventListeners,Mt as removeAttribute,za as removeOwnerSheet,ro as replaceData,di as reportException,lt as resolveCompat,restoreInterfaces,Ya as retarget,ct as serializeChildren,vr as serializeNode,go as setAdoptedStyleSheets,Do as setAssignedSlotLookup,zt as setAttribute,setCheckedFromUI,Cr as setComputedColorMode,On as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Bt as setNotImplementedHandler,setOptionSelectedFromUI,pt as setTrusted,setUISelection,setUIValue,Oa as setUncaughtExceptionHandler,nn as skipIdleTime,n as skipZeroDelayWait,spanChannel,Qt as splitOnAsciiWhitespace,Pa as splitText,Ie as styleElementRemoved,Si as styleElementSheet,ot as styleElementUpdated,na as styleSheetsOf,mr as styledDisplay,subscribeTestFailures,supportsSelection,z as supportsSelectionType,En as tagId,Ce as tagName,tracePromise,traceSync,tracing,aa as trackGlobalTimers,o as treeRoot,Ar as uaDisplay,Gr as unregisterOwnerSheet,Wn as validateAndExtract,H as valueMode,xi as virtualDate,jo as virtualPerformance,Vo as windowHooks,F as windowInterfaces,Ja as withNamedProperties};
|
|
@@ -24,12 +24,15 @@ export declare class CSSStyleDeclaration {
|
|
|
24
24
|
/**
|
|
25
25
|
* https://drafts.csswg.org/cssom/#update-style-attribute-for
|
|
26
26
|
*
|
|
27
|
-
* Eager: every inline style write
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
27
|
+
* Eager: every inline style write serializes the block into the style attribute. Base UI's
|
|
28
|
+
* interaction tests (floating-ui writes positions on every render) spend ~0.5 s of 72.5 s CPU
|
|
29
|
+
* in inline-style writes (bench/README.md "Where real suites spend their time"). Appended
|
|
30
|
+
* declarations, as in React's one-property-at-a-time mount, are serialized onto the previous
|
|
31
|
+
* text (DeclBlock.serialize()), and a value changed in place is spliced into it unless shorthand
|
|
32
|
+
* grouping could change (DeclBlock.put()).
|
|
33
|
+
* Serializing when the attribute is read, as Blink does, would save more, but every attribute
|
|
34
|
+
* read path (getAttribute, attribute iteration, serialization, MutationObserver old values)
|
|
35
|
+
* would then have to check for a stale style attribute.
|
|
33
36
|
*/
|
|
34
37
|
_changed(): void;
|
|
35
38
|
_syncIndices(): void;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import type { Document } from "../nodes/Document.js";
|
|
2
2
|
import type { NodeImpl } from "../nodes/NodeImpl.js";
|
|
3
|
-
import { type CompiledSelector, type StateDeps } from "../selectors/internal.js";
|
|
3
|
+
import { type CompiledSelector, type CompiledSelectorList, type StateDeps } from "../selectors/internal.js";
|
|
4
|
+
import { CSSStyleRule, CSSStyleSheet, type CSSRule } from "./cssom.js";
|
|
4
5
|
import { DeclBlock } from "./declarations.js";
|
|
6
|
+
import { type MediaEnvironment } from "./media.js";
|
|
5
7
|
import { type RootStyles } from "./stylesheets.js";
|
|
6
8
|
export declare class IndexedRule {
|
|
7
9
|
sel: CompiledSelector;
|
|
8
10
|
specificity: number;
|
|
9
|
-
/**
|
|
11
|
+
/** Its sheet's position in cascade order (owner sheets in tree order, then adopted ones). */
|
|
12
|
+
sheetIndex: number;
|
|
13
|
+
/** When it was indexed: within a sheet, later rules have higher orders (rules appended later too). */
|
|
10
14
|
order: number;
|
|
11
15
|
/** Layer rank: higher wins for normal declarations; unlayered rules have the highest rank. */
|
|
12
16
|
layer: number;
|
|
@@ -17,7 +21,7 @@ export declare class IndexedRule {
|
|
|
17
21
|
h1: number;
|
|
18
22
|
h2: number;
|
|
19
23
|
h3: number;
|
|
20
|
-
constructor(sel: CompiledSelector, order: number, block: DeclBlock, layerNode: LayerNode);
|
|
24
|
+
constructor(sel: CompiledSelector, sheetIndex: number, order: number, block: DeclBlock, layerNode: LayerNode);
|
|
21
25
|
}
|
|
22
26
|
/** The rules that share one subject key. */
|
|
23
27
|
export declare class Bucket {
|
|
@@ -40,7 +44,11 @@ export declare class RuleBuckets {
|
|
|
40
44
|
*/
|
|
41
45
|
quirks: boolean;
|
|
42
46
|
constructor(quirks: boolean);
|
|
43
|
-
|
|
47
|
+
/**
|
|
48
|
+
* `fresh`: add to a copy of the rule's bucket, as extendIndex does. Ancestor-filter survivor
|
|
49
|
+
* lists are cached per bucket object (Survivors), so a bucket that gains a rule must be a new one.
|
|
50
|
+
*/
|
|
51
|
+
add(r: IndexedRule, fresh?: boolean): void;
|
|
44
52
|
}
|
|
45
53
|
declare class LayerNode {
|
|
46
54
|
name: string;
|
|
@@ -55,8 +63,50 @@ export declare class RuleIndex {
|
|
|
55
63
|
/** Any rule depends on state outside Document._version (:hover, :focus, :checked, ...). */
|
|
56
64
|
volatile: boolean;
|
|
57
65
|
styleVersion: number;
|
|
66
|
+
/** The builder, kept to index rules appended later (extendIndex). */
|
|
67
|
+
builder: IndexBuilder | null;
|
|
68
|
+
/** The tree's sheets in cascade order, as indexed. */
|
|
69
|
+
sheets: IndexedSheet[];
|
|
58
70
|
constructor(styleVersion: number, quirks?: boolean);
|
|
59
71
|
}
|
|
72
|
+
/** A sheet as a rule index last saw it. */
|
|
73
|
+
declare class IndexedSheet {
|
|
74
|
+
sheet: CSSStyleSheet;
|
|
75
|
+
/** `$version` and rule count when last indexed. */
|
|
76
|
+
version: number;
|
|
77
|
+
rules: number;
|
|
78
|
+
/** Its rules are in the index (not disabled, media matching). */
|
|
79
|
+
applied: boolean;
|
|
80
|
+
constructor(sheet: CSSStyleSheet, applied: boolean);
|
|
81
|
+
}
|
|
82
|
+
declare class IndexBuilder {
|
|
83
|
+
index: RuleIndex;
|
|
84
|
+
env: MediaEnvironment;
|
|
85
|
+
/** The sheet being indexed (IndexedRule.sheetIndex) and the next rule's order. */
|
|
86
|
+
sheetIndex: number;
|
|
87
|
+
order: number;
|
|
88
|
+
root: LayerNode;
|
|
89
|
+
anon: number;
|
|
90
|
+
all: IndexedRule[];
|
|
91
|
+
/** Adding rules to a finished index (extend): buckets that gain a rule are copied. */
|
|
92
|
+
extending: boolean;
|
|
93
|
+
constructor(index: RuleIndex, env: MediaEnvironment);
|
|
94
|
+
layer(parent: LayerNode, name: string): LayerNode;
|
|
95
|
+
/** Indexes a sheet's rules; false when the sheet does not apply (disabled, media not matching). */
|
|
96
|
+
sheet(sheet: CSSStyleSheet): boolean;
|
|
97
|
+
rules(rules: CSSRule[], layer: LayerNode, parentStyle: CSSStyleRule | null): void;
|
|
98
|
+
style(rule: CSSStyleRule, block: DeclBlock, layer: LayerNode): void;
|
|
99
|
+
/** Indexes a style rule's selectors with its declarations. */
|
|
100
|
+
add(compiled: CompiledSelectorList | null, block: DeclBlock, layer: LayerNode): void;
|
|
101
|
+
/**
|
|
102
|
+
* Indexes a sheet's top-level rules from `from` on (from 0: a new sheet, checked like sheet())
|
|
103
|
+
* into an index finish() already ranked. They hold no layers (appendableRule), so the layer
|
|
104
|
+
* ranks stand. Returns false for a sheet that does not apply.
|
|
105
|
+
*/
|
|
106
|
+
extend(sheet: CSSStyleSheet, from: number): boolean;
|
|
107
|
+
/** Post-order ranks: sub-layers before their parent's own rules; unlayered (root) last. */
|
|
108
|
+
finish(): void;
|
|
109
|
+
}
|
|
60
110
|
/**
|
|
61
111
|
* Validates the document's style state (adopted-sheet mutations, viewport changes for media
|
|
62
112
|
* rules) and returns the current `_styleVersion`.
|
|
@@ -71,6 +121,22 @@ export declare function ruleIndexFor(rs: RootStyles, doc: Document, styleVersion
|
|
|
71
121
|
* `!important` (see uaDisplayImportant).
|
|
72
122
|
*/
|
|
73
123
|
export declare function uaDisplay(el: NodeImpl): string;
|
|
124
|
+
/**
|
|
125
|
+
* UA style sheet subset for properties other than display
|
|
126
|
+
* (https://html.spec.whatwg.org/#rendering — phrasing content, links, headings, tables).
|
|
127
|
+
* Adapted from the HTML Standard, © WHATWG (Apple, Google, Mozilla, Microsoft), licensed under
|
|
128
|
+
* CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).
|
|
129
|
+
* Rules tested against every element must not use volatile pseudo-classes (:dir(),
|
|
130
|
+
* :focus-visible, ...): testing one marks the style record volatile and disables its cache.
|
|
131
|
+
* The bidi rules are applied on read instead (uaDirection).
|
|
132
|
+
*/
|
|
133
|
+
export declare const UA_CSS = "\na[href], area[href] { color: rgb(0, 0, 238); text-decoration: underline; cursor: pointer; }\nb, strong, th, h1, h2, h3, h4, h5, h6, optgroup { font-weight: bold; }\ni, em, cite, var, dfn, address { font-style: italic; }\nh1 { font-size: 2em; } h2 { font-size: 1.5em; } h3 { font-size: 1.17em; } h5 { font-size: 0.83em; } h6 { font-size: 0.67em; }\nsmall { font-size: smaller; } big { font-size: larger; }\nsub { vertical-align: sub; font-size: smaller; } sup { vertical-align: super; font-size: smaller; }\ncode, kbd, samp, tt, pre, listing, xmp, plaintext { font-family: monospace; }\npre, listing, xmp, plaintext { white-space: pre; }\ntextarea { white-space: pre-wrap; }\nu, ins { text-decoration: underline; }\ns, strike, del { text-decoration: line-through; }\nmark { background-color: yellow; color: black; }\ncenter, th, caption { text-align: center; }\ntable { box-sizing: border-box; border-spacing: 2px; border-collapse: separate; }\nbutton, select, meter, progress { box-sizing: border-box; }\nol { list-style-type: decimal; } ul, menu, dir { list-style-type: disc; }\nnobr { white-space: nowrap; }\ncolgroup[hidden], col[hidden], thead[hidden], tbody[hidden], tfoot[hidden], tr[hidden] { visibility: collapse; }\n";
|
|
134
|
+
/**
|
|
135
|
+
* UA_CSS as [selector list, declarations] pairs, split on `}`, `{`, `;` and `:` instead of going
|
|
136
|
+
* through the CSS parser: the sheet has no strings, comments, nesting or at-rules, and its values
|
|
137
|
+
* are written already normalized (test/css/cascade.test.ts checks both against the parser).
|
|
138
|
+
*/
|
|
139
|
+
export declare function uaRules(): Array<[selector: string, block: DeclBlock]>;
|
|
74
140
|
export declare const PSEUDO_NONE = 0;
|
|
75
141
|
export declare const PSEUDO_BEFORE = 1;
|
|
76
142
|
export declare const PSEUDO_AFTER = 2;
|
|
@@ -5,7 +5,7 @@ import { DeclBlock } from "./declarations.js";
|
|
|
5
5
|
import { CSSStyleDeclaration, type DeclarationOwnerRule } from "./CSSStyleDeclaration.js";
|
|
6
6
|
import { type MediaQuery } from "./media.js";
|
|
7
7
|
import { type CompiledSelectorList } from "../selectors/internal.js";
|
|
8
|
-
import { $block, $compiled, $compiledFor, $condition, $constructed, $defaultNamespace, $disabled, $disallowModification, $doc, $href, $indexed, $keyText, $layerName, $list, $matches, $media, $name, $names, $namespaces, $owner, $ownerNode, $ownerRule, $parent, $prefix, $prelude, $queries, $rules, $selector, $sheet, $sheets, $style, $supportsText, $title, $uri, $version } from "../keys.js";
|
|
8
|
+
import { $block, $compiled, $compiledFor, $condition, $constructed, $defaultNamespace, $disabled, $disallowModification, $doc, $href, $indexed, $keyText, $layerName, $list, $matches, $media, $name, $names, $namespaces, $owner, $ownerNode, $ownerRule, $parent, $prefix, $prelude, $queries, $rebuildVersion, $rules, $selector, $sheet, $sheets, $style, $supportsText, $title, $uri, $version } from "../keys.js";
|
|
9
9
|
/** https://drafts.csswg.org/cssom/#the-cssrulelist-interface — live view over a rule array. */
|
|
10
10
|
export declare class CSSRuleList {
|
|
11
11
|
[$rules]: CSSRule[];
|
|
@@ -13,8 +13,12 @@ export declare class CSSRuleList {
|
|
|
13
13
|
constructor(rules: CSSRule[]);
|
|
14
14
|
/** @internal Swap the backing array (replaceSync). */
|
|
15
15
|
_setRules(rules: CSSRule[]): void;
|
|
16
|
-
/**
|
|
17
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @internal Re-sync own indexed properties after the backing array changed from index `from`
|
|
18
|
+
* on: emotion appends every rule through `insertRule(rule, sheet.cssRules.length)`, and
|
|
19
|
+
* re-syncing from 0 made a sheet of n rules cost O(n²).
|
|
20
|
+
*/
|
|
21
|
+
_sync(from?: number): void;
|
|
18
22
|
get length(): number;
|
|
19
23
|
item(index: number): CSSRule | null;
|
|
20
24
|
[Symbol.iterator](): IterableIterator<CSSRule>;
|
|
@@ -100,10 +104,18 @@ export declare class CSSStyleSheet extends StyleSheet {
|
|
|
100
104
|
[$defaultNamespace]: string | null | undefined;
|
|
101
105
|
/** Bumped on every change (rule index cache key). */
|
|
102
106
|
[$version]: number;
|
|
107
|
+
/**
|
|
108
|
+
* `$version` at the last change other than appending a rule a rule index can add to itself
|
|
109
|
+
* (see appendableRule): cascade.ts extends its index over rules appended since, and rebuilds it
|
|
110
|
+
* after any other change.
|
|
111
|
+
*/
|
|
112
|
+
[$rebuildVersion]: number;
|
|
103
113
|
constructor(options?: CSSStyleSheetInit);
|
|
104
114
|
/** @internal Create a non-constructed sheet for a <style>/<link> owner. */
|
|
105
115
|
static _forOwner(owner: Element, text: string, media: string, href: string | null): CSSStyleSheet;
|
|
106
116
|
_changed(): void;
|
|
117
|
+
/** _changed() for a rule inserted at `index`: an appended appendableRule leaves $rebuildVersion. */
|
|
118
|
+
_inserted(rule: CSSRule, index: number): void;
|
|
107
119
|
/** Replaces all rules from stylesheet text (no @import fetching). */
|
|
108
120
|
_setText(text: string): void;
|
|
109
121
|
_registerNamespace(rule: CSSNamespaceRule): void;
|
|
@@ -349,6 +361,13 @@ export declare class CSSKeyframesRule extends CSSRule {
|
|
|
349
361
|
_findIndex(select: string): number;
|
|
350
362
|
get cssText(): string;
|
|
351
363
|
}
|
|
364
|
+
/**
|
|
365
|
+
* Whether a rule appended at the end of a sheet can be added to a rule index already built over
|
|
366
|
+
* the sheet by indexing just the rule (cascade.ts extendIndex): anything but layers, @import and
|
|
367
|
+
* @namespace, which change the order or meaning of the rules already indexed, also nested in
|
|
368
|
+
* style rules, @media and @supports.
|
|
369
|
+
*/
|
|
370
|
+
export declare function appendableRule(rule: CSSRule): boolean;
|
|
352
371
|
/** https://drafts.csswg.org/cssom/#parse-a-css-rule + CSSOM rule construction. */
|
|
353
372
|
export declare function createRule(raw: RawRule, parent: CSSRule | null, sheet: CSSStyleSheet | null, nested: boolean, inKeyframes: boolean): CSSRule | null;
|
|
354
373
|
export interface CSSRuleList {
|
|
@@ -8,16 +8,36 @@ export declare class DeclBlock {
|
|
|
8
8
|
/** Set by put()/removeOne() when they change the block (setProperty's "updated" flag). */
|
|
9
9
|
dirty: boolean;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* How many leading names are unchanged since the CSSStyleDeclaration last synced its indexed
|
|
12
|
+
* properties (it sets this after syncing): appends keep the prefix, so only new indices are
|
|
13
|
+
* written, and most style writes update a value in place and sync nothing.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
namesSynced: number;
|
|
16
|
+
/**
|
|
17
|
+
* The last serialization and how many leading declarations it covers, or -1 once a declaration
|
|
18
|
+
* was changed in place, moved or removed since. Declarations appended after it are serialized
|
|
19
|
+
* onto its end (see serialize()), and a value changed in place is spliced into it (put()).
|
|
20
|
+
*/
|
|
21
|
+
serialized: string;
|
|
22
|
+
serializedCount: number;
|
|
23
|
+
/**
|
|
24
|
+
* Shorthand families (shorthandFamily bits) of the declarations `serialized` covers, or -1 when
|
|
25
|
+
* not computed yet (only an append with shorthand longhands needs them).
|
|
26
|
+
*/
|
|
27
|
+
serializedFamilies: number;
|
|
28
|
+
/** Whether `serialized` has every declaration on its own, in order (no shorthand grouped). */
|
|
29
|
+
serializedPlain: boolean;
|
|
15
30
|
constructor();
|
|
16
31
|
get length(): number;
|
|
17
|
-
indexOf(name: string): number;
|
|
32
|
+
indexOf(name: string, from?: number): number;
|
|
18
33
|
clear(): void;
|
|
19
34
|
/** Low-level set: update in place, or append. */
|
|
20
35
|
put(name: string, value: string, important: boolean): void;
|
|
36
|
+
/**
|
|
37
|
+
* Replaces declaration `i`'s text in a plain `serialized` (declarations joined by one space,
|
|
38
|
+
* each `name: value;` or `name: value !important;`), before its value is overwritten.
|
|
39
|
+
*/
|
|
40
|
+
spliceSerialized(i: number, value: string, important: boolean): void;
|
|
21
41
|
/** Low-level set used while parsing a block: a later declaration moves to the end, but never overrides an important one with a normal one. */
|
|
22
42
|
putParsed(name: string, value: string, important: boolean): void;
|
|
23
43
|
/** Removes `name`; returns true if it was present. */
|
|
@@ -38,8 +58,33 @@ export declare class DeclBlock {
|
|
|
38
58
|
getPropertyValue(property: string): string;
|
|
39
59
|
/** https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-getpropertypriority */
|
|
40
60
|
getPropertyPriority(property: string): string;
|
|
41
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* https://drafts.csswg.org/cssom/#serialize-a-css-declaration-block, incrementally.
|
|
63
|
+
*
|
|
64
|
+
* React writes inline styles one property at a time on mount, and every write serializes the
|
|
65
|
+
* block into the style attribute (CSSStyleDeclaration._changed), so an element with N inline
|
|
66
|
+
* properties serialized N(N+1)/2 declarations. When the only changes since the last call are
|
|
67
|
+
* appended declarations, the result is the previous text followed by the appended declarations
|
|
68
|
+
* serialized on their own. The shorthand loop can only group declarations of one shorthand
|
|
69
|
+
* family, so that holds unless an appended longhand shares a family with an earlier
|
|
70
|
+
* declaration; then the whole block is serialized again.
|
|
71
|
+
* bench dom/inline-style-mount (8 properties on 500 elements): 1.18 → 0.80 ms, allocation
|
|
72
|
+
* 3.8 → 2.0 MB per iteration; dom/inline-style-shorthand-mount (Base UI's visually hidden
|
|
73
|
+
* input, with border/padding/margin): 3.0 → 1.5 ms, 7.2 → 2.9 MB (Node 26.12, 11 paired
|
|
74
|
+
* samples each).
|
|
75
|
+
*/
|
|
42
76
|
serialize(): string;
|
|
77
|
+
/**
|
|
78
|
+
* serialize() after appends only: extends `serialized` with the declarations from `from` on,
|
|
79
|
+
* unless one of them shares a shorthand family with an earlier declaration (returns false).
|
|
80
|
+
*/
|
|
81
|
+
serializeAppended(from: number): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* https://drafts.csswg.org/cssom/#serialize-a-css-declaration-block over the declarations from
|
|
84
|
+
* `from` on, as if they were the whole block (no cache). serialize() passes a `from` past 0 only
|
|
85
|
+
* when no shorthand family has declarations on both sides of it.
|
|
86
|
+
*/
|
|
87
|
+
serializeAll(from?: number): string;
|
|
43
88
|
}
|
|
44
89
|
/** Parses a style attribute / declaration list into a fresh block. */
|
|
45
90
|
export declare function parseDeclBlock(text: string): DeclBlock;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type Comp } from "./values.js";
|
|
2
2
|
/** Expanded shorthand → longhands (in serialization order). */
|
|
3
3
|
export declare const SHORTHANDS: Map<string, string[]>;
|
|
4
|
+
/** The bit of the expanded-shorthand family `longhand` belongs to, 0 if none. */
|
|
5
|
+
export declare function shorthandFamily(longhand: string): number;
|
|
4
6
|
export declare function isExpandedShorthand(name: string): boolean;
|
|
5
7
|
export declare function longhandsOf(name: string): string[] | undefined;
|
|
6
8
|
/** Shorthands that contain `longhand`, in preferred (largest-first) order. */
|
|
@@ -83,6 +83,20 @@ export declare function containsVar(value: string): boolean;
|
|
|
83
83
|
* custom property).
|
|
84
84
|
*/
|
|
85
85
|
export declare function normalizeLonghand(name: string, value: string): string | null;
|
|
86
|
+
/**
|
|
87
|
+
* normalizeLonghand's memo misses for the values React and floating-ui write most: one canonical
|
|
88
|
+
* number, percentage or dimension (`12px`, `0.5`, `-50%`) or one lowercase ASCII keyword
|
|
89
|
+
* (`absolute`, `inline-block`), checked against the property's grammar the way
|
|
90
|
+
* normalizeComponent does, without tokenizing the value. A canonical number is one formatNumber
|
|
91
|
+
* prints back unchanged: no `+`, no leading or trailing zeros, at most 15 digits, not below 1e-6
|
|
92
|
+
* and not -0. Undefined means "take the full path"; the value is otherwise the result (or "0px"
|
|
93
|
+
* for a bare 0 where only lengths are allowed). Base UI's interaction tests spent 61 ms in
|
|
94
|
+
* normalizing values the memo had not seen, which each worker starts without, and a positioned
|
|
95
|
+
* element's changing left/top miss it on every write.
|
|
96
|
+
*/
|
|
97
|
+
export declare function fastLonghand(name: string, value: string): string | undefined;
|
|
98
|
+
/** The full path of normalizeLonghand (tokenize, then match the grammar); exported for tests. */
|
|
99
|
+
export declare function normalizeLonghandValue(name: string, value: string): string | null;
|
|
86
100
|
/** Matches a component list against a (possibly repeated) grammar. */
|
|
87
101
|
export declare function normalizeComps(comps: Comp[], g: Grammar): string | null;
|
|
88
102
|
/** Custom property values are kept verbatim (trimmed) — https://drafts.csswg.org/css-variables-2/#serializing-custom-props */
|
|
@@ -17,7 +17,7 @@ export { windowInterfaces } from "./window/Window.js";
|
|
|
17
17
|
export { captureInterfaceBaseline, guardInterfaceDefinitions, restoreInterfaces } from "./window/isolation.js";
|
|
18
18
|
export { COMPAT, COMPAT_PROFILES, DEFAULT_COMPAT, compatExposes, deferredCompatMembers, hiddenGlobals, resolveCompat, type CompatEntry, type CompatProfile, } from "./window/compat.js";
|
|
19
19
|
export { trackGlobalTimers } from "./window/timers.js";
|
|
20
|
-
export { VirtualClock, VirtualTimeout, installClock, clockNow, clockStats, foreignImmediatesPending, skipIdleTime, virtualDate, virtualPerformance, type InstalledClock, type VirtualClockOptions, } from "./window/clock.js";
|
|
20
|
+
export { VirtualClock, VirtualTimeout, installClock, clockNow, clockStats, canSkipZeroDelayWait, foreignImmediatesPending, isClockTimer, skipIdleTime, skipZeroDelayWait, virtualDate, virtualPerformance, type InstalledClock, type VirtualClockOptions, } from "./window/clock.js";
|
|
21
21
|
export { FAILURE_CHANNEL, SPAN_CHANNEL, describeCall, describeNode, quote, setFailureSnapshot, setNodeDescriber, spanChannel, subscribeTestFailures, tracePromise, traceSync, tracing, type SpanContext, } from "./trace.js";
|
|
22
22
|
export { dispatch, getCurrentEvent, retarget, nodeGetTheParent, setAssignedSlotLookup } from "./events/dispatch.js";
|
|
23
23
|
export { fireAnEvent, dispatchTrusted, fireSyntheticPointerEvent } from "./events/fire.js";
|
package/dist/dom/types/keys.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ export declare const $ranges: unique symbol;
|
|
|
142
142
|
export declare const $rawValue: unique symbol;
|
|
143
143
|
export declare const $readonly: unique symbol;
|
|
144
144
|
export declare const $readyState: unique symbol;
|
|
145
|
+
export declare const $rebuildVersion: unique symbol;
|
|
145
146
|
export declare const $record: unique symbol;
|
|
146
147
|
export declare const $records: unique symbol;
|
|
147
148
|
export declare const $rects: unique symbol;
|
|
@@ -12,7 +12,11 @@ export declare function findAttributeByName(el: NodeImpl, qualifiedName: string)
|
|
|
12
12
|
export declare function findAttributeByNamespace(el: NodeImpl, ns: string | null, localName: string): AttrRecord | null;
|
|
13
13
|
/** getAttribute(qualifiedName). Lowercases for HTML elements in HTML documents. */
|
|
14
14
|
export declare function getAttribute(el: NodeImpl, qualifiedName: string): string | null;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The presence bit an attribute local name sets on its element: F_ARIA_ATTRS / F_DATA_ATTRS for
|
|
17
|
+
* names starting with `aria-` / `data-`, F_TABINDEX_ATTR, F_CONTENTEDITABLE_ATTR or F_INERT_ATTR
|
|
18
|
+
* for those names, else 0.
|
|
19
|
+
*/
|
|
16
20
|
export declare function prefixFlag(localName: string): number;
|
|
17
21
|
/**
|
|
18
22
|
* Hot-path read for internal callers that pass an already-lowercase, no-namespace name
|
|
@@ -58,3 +58,12 @@ export declare const F_FACE: number;
|
|
|
58
58
|
export declare const F_ARIA_ATTRS: number;
|
|
59
59
|
/** Same for `data-*` attributes (Testing Library's *ByTestId). */
|
|
60
60
|
export declare const F_DATA_ATTRS: number;
|
|
61
|
+
/**
|
|
62
|
+
* Element has a `tabindex` / `contenteditable` / `inert` attribute (any namespace), kept like
|
|
63
|
+
* F_ARIA_ATTRS. Focus code reads `tabIndex` on every candidate of a tabbable scan, and most
|
|
64
|
+
* elements have none of these: in Base UI's interaction tests the attribute scans behind them
|
|
65
|
+
* were ~140 ms.
|
|
66
|
+
*/
|
|
67
|
+
export declare const F_TABINDEX_ATTR: number;
|
|
68
|
+
export declare const F_CONTENTEDITABLE_ATTR: number;
|
|
69
|
+
export declare const F_INERT_ATTR: number;
|
|
@@ -3,6 +3,16 @@ import type { MutationObserver, MutationObserverInit } from "./MutationObserver.
|
|
|
3
3
|
/** Number of MutationObservers with at least one (non-transient) registration. */
|
|
4
4
|
export declare let activeObservers: number;
|
|
5
5
|
export declare function setActiveObservers(n: number): void;
|
|
6
|
+
/**
|
|
7
|
+
* Number of non-transient registrations with `subtree` (a transient one exists only while its
|
|
8
|
+
* source does: disconnect() and re-observing remove it). With none, a mutation can interest only
|
|
9
|
+
* observers registered on its target and a removal adds no transient observers, so neither walks
|
|
10
|
+
* the target's ancestors. Base UI keeps childList- and attribute-only observers connected while
|
|
11
|
+
* its lists are mounted, and every removal anywhere walked to the root: 145 ms in the
|
|
12
|
+
* `interactions` preset's profiles, plus 53 ms in queueMutationRecord.
|
|
13
|
+
*/
|
|
14
|
+
export declare let subtreeObservers: number;
|
|
15
|
+
export declare function setSubtreeObservers(n: number): void;
|
|
6
16
|
/** https://dom.spec.whatwg.org/#registered-observer (and transient registered observer when `source` is set). */
|
|
7
17
|
export declare class RegisteredObserver {
|
|
8
18
|
observer: MutationObserver;
|
|
@@ -100,9 +100,14 @@ export interface NestedBrowsingContext {
|
|
|
100
100
|
interface PendingTask {
|
|
101
101
|
handle: unknown;
|
|
102
102
|
clear: (handle: never) => void;
|
|
103
|
-
/** The
|
|
103
|
+
/** The setTimeout it was scheduled with (a fake clock's, possibly since uninstalled). */
|
|
104
104
|
scheduledWith: unknown;
|
|
105
105
|
}
|
|
106
|
+
/** A setTimeout/clearTimeout pair window tasks are scheduled on (a host global, userAgentTimers). */
|
|
107
|
+
interface TaskTimers {
|
|
108
|
+
setTimeout(callback: () => void, delay: number): unknown;
|
|
109
|
+
clearTimeout(handle: never): void;
|
|
110
|
+
}
|
|
106
111
|
interface IdleDeadline {
|
|
107
112
|
readonly didTimeout: boolean;
|
|
108
113
|
timeRemaining(): number;
|
|
@@ -276,6 +281,8 @@ export declare class Window extends EventTarget {
|
|
|
276
281
|
* timers apply). Tracked so close() cancels it. Returns null once the window is closed.
|
|
277
282
|
*/
|
|
278
283
|
_task(callback: () => void, delay: number): PendingTask | null;
|
|
284
|
+
/** @internal _task on `timers`. */
|
|
285
|
+
_schedule(timers: TaskTimers, callback: () => void, delay: number): PendingTask | null;
|
|
279
286
|
/**
|
|
280
287
|
* @internal Run `abort` when the window closes (in-flight XMLHttpRequests): returns the entry
|
|
281
288
|
* to pass to _releaseCloseable once the work is done, or null if the window is already closed.
|
|
@@ -283,7 +290,6 @@ export declare class Window extends EventTarget {
|
|
|
283
290
|
_closeable(abort: () => void): PendingTask | null;
|
|
284
291
|
/** @internal Forget a _closeable entry without running it. */
|
|
285
292
|
_releaseCloseable(task: PendingTask): void;
|
|
286
|
-
_hostSetTimeout(): unknown;
|
|
287
293
|
_cancelTask(task: PendingTask): void;
|
|
288
294
|
/** https://html.spec.whatwg.org/#dom-window-postmessage */
|
|
289
295
|
postMessage(message: unknown, targetOrigin?: string | {
|
|
@@ -72,9 +72,14 @@ export declare class VirtualClock {
|
|
|
72
72
|
driverImmediate: boolean;
|
|
73
73
|
idleTurns: number;
|
|
74
74
|
disposed: boolean;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
/**
|
|
76
|
+
* The I/O resource types active when the clock was created (stdio, the runner's IPC channel)
|
|
77
|
+
* and, at the same index in ioBaseline, how many of each: what busy() compares against.
|
|
78
|
+
*/
|
|
79
|
+
ioTypes: string[];
|
|
80
|
+
ioBaseline: number[];
|
|
81
|
+
/** busy()'s per-probe counts by ioTypes index, reused. */
|
|
82
|
+
ioCounts: number[];
|
|
78
83
|
constructor(options?: VirtualClockOptions);
|
|
79
84
|
/**
|
|
80
85
|
* Monotonic ms (performance.now() origin) including skipped time. React's scheduler reads
|
|
@@ -127,8 +132,15 @@ export declare class VirtualClock {
|
|
|
127
132
|
* consecutive turns (pending promise reactions and the immediates they schedule settle first).
|
|
128
133
|
*/
|
|
129
134
|
driverTurn: () => void;
|
|
130
|
-
/**
|
|
131
|
-
|
|
135
|
+
/**
|
|
136
|
+
* null when idle; "immediate" when immediates are pending; "io" when I/O beyond the baseline is.
|
|
137
|
+
* Timeouts never block skipping: the clock's own host timer, the test runner's. On a Vitest
|
|
138
|
+
* worker's resources (four pipes and a timer) a probe takes ~0.18 µs warm and ~0.34 µs over a
|
|
139
|
+
* fresh process's first 2,000, ~0.16 µs of it Node building the list; tallying into a Map took
|
|
140
|
+
* 0.31 and 0.83 µs. `ownImmediates` queued immediates are disregarded: the clock's own, for a
|
|
141
|
+
* caller outside the driver's turn (skipZeroDelayWait).
|
|
142
|
+
*/
|
|
143
|
+
busy(ownImmediates?: number): "immediate" | "io" | null;
|
|
132
144
|
push(record: TimerRecord): void;
|
|
133
145
|
pop(): TimerRecord;
|
|
134
146
|
remove(record: TimerRecord): void;
|
|
@@ -146,10 +158,40 @@ export declare function clockNow(): number;
|
|
|
146
158
|
* page's timers there and skipping goes on.
|
|
147
159
|
*/
|
|
148
160
|
export declare function queueUserAgentTask(task: () => void): void;
|
|
161
|
+
/** setTimeout/clearTimeout for delayed tasks the user agent queues itself, on queueUserAgentTask's timers. */
|
|
162
|
+
export declare const userAgentTimers: {
|
|
163
|
+
setTimeout(task: () => void, delay: number): unknown;
|
|
164
|
+
clearTimeout(handle: unknown): void;
|
|
165
|
+
};
|
|
149
166
|
/** Whether a clock that skips idle time is active (the test file's timers run on it). */
|
|
150
167
|
export declare function clockSkipping(): boolean;
|
|
151
168
|
/** The active skipping clock's skipIdle(ms); true without one (there is no clock to move). */
|
|
152
169
|
export declare function skipIdleTime(ms: number): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Whether a wait done with `setTimeout(resolve, 0)` (Testing Library's asyncWrapper drain) can
|
|
172
|
+
* take one event-loop turn instead of the two idle turns the driver waits before firing that
|
|
173
|
+
* timer (driverTurn). True when the active clock skips idle time, `global.setTimeout` is still its
|
|
174
|
+
* own (fake timers and spies replace it; user-event's timer observer copies its marker),
|
|
175
|
+
* `global.setImmediate` is not faked, and the loop is idle as the driver sees it (no immediates
|
|
176
|
+
* but the clock's own, no I/O beyond the baseline) with no timer due within 1 ms.
|
|
177
|
+
*
|
|
178
|
+
* From a microtask this is only a first look: microtasks still queued behind the caller can
|
|
179
|
+
* schedule work (React's scheduler, through setImmediate) that the 0 ms timer would wait for. The
|
|
180
|
+
* caller yields one turn and decides with skipZeroDelayWait there.
|
|
181
|
+
*/
|
|
182
|
+
export declare function canSkipZeroDelayWait(global: Global): boolean;
|
|
183
|
+
/**
|
|
184
|
+
* canSkipZeroDelayWait, then that millisecond passes at once, as it would on the driver's second
|
|
185
|
+
* idle turn. Called from the turn the caller yielded (a check-phase immediate): every microtask
|
|
186
|
+
* queued before has run, and any immediate they scheduled shows as pending.
|
|
187
|
+
*/
|
|
188
|
+
export declare function skipZeroDelayWait(global: Global): boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Whether `fn` is the setTimeout or setInterval installClock put on a global for the active
|
|
191
|
+
* idle-skipping clock, or a function that copied its own properties (user-event's timer
|
|
192
|
+
* observer): the timers it creates are the clock's, which knows every deadline.
|
|
193
|
+
*/
|
|
194
|
+
export declare function isClockTimer(fn: unknown): boolean;
|
|
153
195
|
/**
|
|
154
196
|
* Whether immediates other than the active clock's own are queued: work that still has to run
|
|
155
197
|
* before the event loop goes idle, such as React's scheduler continuing a render that ran past its
|