@ctrl/dom 0.1.14 → 0.2.0
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/README.md +44 -0
- package/dist/aria/_chunks/{roles-list--7uYUGyR.cjs → roles-list-C57tqF4n.cjs} +2 -2
- package/dist/aria/_chunks/roles-list-DEwbBc_c.js +4 -0
- package/dist/aria/index.cjs +1 -1
- package/dist/aria/index.js +1 -1
- package/dist/aria/internal.cjs +1 -1
- package/dist/aria/internal.js +1 -1
- package/dist/aria/types/forms.d.ts +6 -13
- package/dist/bridge/internal.js +1 -1
- package/dist/dom/_chunks/src-CaVKwScX.js +49 -0
- package/dist/dom/index.js +1 -1
- package/dist/dom/internal.js +1 -1
- package/dist/dom/types/collections/HTMLCollection.d.ts +2 -5
- package/dist/dom/types/css/cascade.d.ts +10 -3
- package/dist/dom/types/css/cssom.d.ts +9 -3
- package/dist/dom/types/css/parser.d.ts +27 -0
- package/dist/dom/types/css/style-deps.d.ts +11 -0
- package/dist/dom/types/events/Event.d.ts +16 -3
- package/dist/dom/types/events/EventTarget.d.ts +3 -3
- package/dist/dom/types/events/UIEvents.d.ts +10 -1
- package/dist/dom/types/events/activation.d.ts +2 -0
- package/dist/dom/types/events/dispatch.d.ts +1 -6
- package/dist/dom/types/events/listeners.d.ts +58 -18
- package/dist/dom/types/html/elements.d.ts +3 -2
- package/dist/dom/types/html/forms/HTMLButtonElement.d.ts +4 -3
- package/dist/dom/types/html/forms/HTMLFieldSetElement.d.ts +3 -2
- package/dist/dom/types/html/forms/HTMLInputElement.d.ts +11 -39
- package/dist/dom/types/html/forms/HTMLOutputElement.d.ts +6 -5
- package/dist/dom/types/html/forms/HTMLSelectElement.d.ts +6 -9
- package/dist/dom/types/html/forms/HTMLTextAreaElement.d.ts +10 -19
- package/dist/dom/types/html/forms/control-state.d.ts +33 -0
- package/dist/dom/types/html/forms/face.d.ts +3 -2
- package/dist/dom/types/html/forms/form-associated.d.ts +29 -9
- package/dist/dom/types/html/forms/user-validity.d.ts +7 -8
- package/dist/dom/types/html/forms/validation.d.ts +2 -2
- package/dist/dom/types/html/reflect.d.ts +1 -0
- package/dist/dom/types/internal.d.ts +4 -3
- package/dist/dom/types/keys.d.ts +10 -17
- package/dist/dom/types/nodes/Document.d.ts +6 -2
- package/dist/dom/types/nodes/Element.d.ts +1 -7
- package/dist/dom/types/nodes/Node.d.ts +4 -1
- package/dist/dom/types/nodes/attributes.d.ts +24 -2
- package/dist/dom/types/nodes/cache.d.ts +1 -1
- package/dist/dom/types/nodes/constants.d.ts +5 -0
- package/dist/dom/types/nodes/tree.d.ts +3 -3
- package/dist/dom/types/selectors/compile.d.ts +8 -0
- package/dist/dom/types/selectors/internal.d.ts +3 -1
- package/dist/dom/types/window/clock.d.ts +30 -0
- package/dist/dom/types/window/file-reset.d.ts +22 -0
- package/dist/jest-dom/_chunks/{matchers-CkxM783o.cjs → matchers-CZ6Smfw9.cjs} +2 -2
- package/dist/jest-dom/_chunks/{matchers-Dt7W4g5X.js → matchers-CwGF61j-.js} +2 -2
- package/dist/jest-dom/index.cjs +1 -1
- package/dist/jest-dom/index.js +1 -1
- package/dist/jest-dom/jest-globals.cjs +1 -1
- package/dist/jest-dom/jest-globals.js +1 -1
- package/dist/jest-dom/matchers.cjs +1 -1
- package/dist/jest-dom/matchers.js +1 -1
- package/dist/jest-dom/vitest.cjs +1 -1
- package/dist/jest-dom/vitest.js +1 -1
- package/dist/react/_chunks/pure-CYb0HgYU.js +1 -0
- package/dist/react/_chunks/pure-DRugbA0j.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/testing-library/index.cjs +2 -2
- package/dist/testing-library/index.js +7 -7
- 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 +8 -0
- package/dist/vitest-environment/_chunks/rolldown-runtime-H3fMLYWS.js +1 -0
- package/dist/vitest-environment/failure-snapshot.js +1 -1
- package/dist/vitest-environment/index.js +1 -1
- package/dist/vitest-environment/jsx-dev-runtime.js +1 -0
- package/dist/vitest-environment/jsx-runtime.js +1 -0
- package/dist/vitest-environment/plugin.js +1 -1
- package/dist/vitest-environment/shared-workers.js +1 -0
- package/dist/vitest-environment/types/jsx-dev-runtime.d.ts +3 -0
- package/dist/vitest-environment/types/jsx-runtime.d.ts +4 -0
- package/dist/vitest-environment/types/plugin.d.ts +19 -0
- package/dist/vitest-environment/types/shared-workers.d.ts +1 -0
- package/package.json +13 -1
- package/dist/aria/_chunks/roles-list-b_Z0ZWwY.js +0 -4
- package/dist/dom/_chunks/src-BacPsCQO.js +0 -49
- package/dist/react/_chunks/pure-D7Z4g4oF.js +0 -1
- package/dist/react/_chunks/pure-DOgNQrwu.cjs +0 -1
- package/dist/vitest-environment/_chunks/rolldown-runtime-BhWHdk3m.js +0 -1
package/dist/dom/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{wr as AbstractRange,fs as AnimationEvent,Ga as Attr,Zt as Audio,ps as BeforeUnloadEvent,eo as CDATASection,t as CSS,fi as CSSConditionRule,pi as CSSContainerRule,mi as CSSFontFaceRule,hi as CSSGroupingRule,gi as CSSImportRule,_i as CSSKeyframeRule,vi as CSSKeyframesRule,yi as CSSLayerBlockRule,bi as CSSLayerStatementRule,xi as CSSMediaRule,Si as CSSNamespaceRule,Ci as CSSNestedDeclarations,wi as CSSPageRule,Ti as CSSPropertyRule,Ei as CSSRule,Di as CSSRuleList,Oi as CSSScopeRule,ki as CSSStartingStyleRule,Xi as CSSStyleDeclaration,Ai as CSSStyleRule,ji as CSSStyleSheet,Mi as CSSSupportsRule,to as CharacterData,lr as Clipboard,Os as ClipboardEvent,ur as ClipboardItem,ms as CloseEvent,kr as CommandEvent,no as Comment,ks as CompositionEvent,xa as CustomElementRegistry,hs as CustomEvent,Yn as CustomStateSet,gr as DOMImplementation,Ma as DOMMatrix,Na as DOMMatrixReadOnly,mr as DOMParser,Pa as DOMPoint,Fa as DOMPointReadOnly,Ia as DOMRect,La as DOMRectList,Ra as DOMRectReadOnly,Ka as DOMStringMap,qa as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,_r as Document,_r as HTMLDocument,$a as DocumentFragment,Qa as DocumentType,As as DragEvent,Da as Element,Xn as ElementInternals,gs as ErrorEvent,Ys as Event,es as EventTarget,et as FileList,A as FileReader,js as FocusEvent,F as FormData,_s 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,ao 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,na 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,ra 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,vs as HashChangeEvent,fr as History,Jn as Image,Ms as InputEvent,O as IntersectionObserver,Ns as KeyboardEvent,pr as Location,nt as MathMLElement,tn as MediaError,Ni as MediaList,si as MediaQueryList,ui as MediaQueryListEvent,ys as MessageEvent,Ps as MouseEvent,w as MutationObserver,Po as MutationRecord,Ua as NamedNodeMap,dr as Navigator,fo as Node,xr as NodeFilter,Sr as NodeIterator,Fo as NodeList,J as Option,bs as PageTransitionEvent,Fs as PointerEvent,xs as PopStateEvent,ro as ProcessingInstruction,Ss as ProgressEvent,Cs as PromiseRejectionEvent,ia as RadioNodeList,Tr 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,sr as Screen,br as Selection,Ja as ShadowRoot,Er as StaticRange,or as Storage,ws as StorageEvent,Pi as StyleSheet,Fi as StyleSheetList,Ts as SubmitEvent,io as Text,Is as TextEvent,nn as TimeRanges,Es as ToggleEvent,Ls as Touch,Rs as TouchEvent,zs as TouchList,Ds as TransitionEvent,Cr as TreeWalker,Bs as UIEvent,ta as ValidityState,cr as VisualViewport,Vs as WheelEvent,tr as Window,vr as XMLDocument,j as XMLHttpRequest,M as XMLHttpRequestEventTarget,N as XMLHttpRequestUpload,hr as XMLSerializer,nr as createWindow,cs as currentDocument,ls as currentWindow,us as currentWindowOrNull,Rr as getComputedStyle,P as installGlobals,ds as setCurrentWindow}from"./_chunks/src-CaVKwScX.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 l,Aa as ee,Ac as te,Ad as ne,Af as re,Al as ie,Ao as ae,Ar as oe,Au as se,Ba as ce,Bc as le,Bd as ue,Bf as de,Bi as fe,Bl as pe,Bo as me,Br as he,Bu as ge,C as _e,Ca as ve,Cc as ye,Cd as be,Cf as xe,Cl as Se,Co as Ce,Cu as we,Da as Te,Dc as Ee,Dd as De,Df as Oe,Dl as ke,Do as Ae,Dr as je,Du as Me,Ec as Ne,Ed as Pe,Ef as Fe,El as u,Eo as d,Er as f,Eu as p,Fc as m,Fd as h,Ff as g,Fi as _,Fl as v,Fo as Ie,Fr as Le,Fu as Re,Gc as ze,Gd as Be,Gf as Ve,Gi as He,Gl as Ue,Go as We,Gr as Ge,Gs as Ke,Gu as qe,Hc as Je,Hd as Ye,Hf as Xe,Hi as Ze,Hl as Qe,Ho as $e,Hr as et,Hu as tt,I as nt,Ic as rt,Id as it,If as at,Ii as ot,Il as st,Ir as ct,Iu as lt,Ja as ut,Jc as dt,Jd as ft,Jf as pt,Ji as mt,Jl as ht,Jo as gt,Jr as _t,Js as vt,Ju as yt,Kc as bt,Kd as xt,Kf as St,Ki as Ct,Kl as wt,Ko as Tt,Kr as Et,Ks as Dt,Ku as Ot,Lc as kt,Ld as At,Lf as jt,Li as Mt,Ll as Nt,Lo as Pt,Lr as Ft,Lu as It,Mc as Lt,Md as Rt,Mf as zt,Ml as Bt,Mo as Vt,Mr as Ht,Mu as Ut,Nc as Wt,Nd as Gt,Nf as Kt,Nl as y,No as qt,Nr as Jt,Nu as Yt,Oa as Xt,Oc as Zt,Od as Qt,Of as $t,Ol as en,Oo as tn,Ou as nn,Pc as rn,Pd as b,Pf as an,Pl as on,Po as sn,Pr as cn,Pu as ln,Qc as un,Qd as x,Qi as dn,Ql as fn,Qn as pn,Qo as mn,Qr as hn,Qs as gn,Qu as S,Ra as _n,Rc as vn,Rd as yn,Rf as bn,Ri as xn,Rl as Sn,Ro as Cn,Rr as wn,Ru as Tn,S as En,Sa as Dn,Sc as On,Sd as kn,Sf as An,Sl as jn,So as Mn,Su as Nn,Ta as Pn,Tc as Fn,Td as C,Tf as In,Tl as Ln,To as Rn,Tu as zn,Ua as Bn,Uc as Vn,Ud as Hn,Uf as Un,Ui as Wn,Ul as Gn,Uo as Kn,Ur as qn,Uu as Jn,Va as Yn,Vc as Xn,Vd as Zn,Vf as Qn,Vi as $n,Vl as er,Vo as tr,Vr as nr,Vu as rr,Wc as ir,Wd as ar,Wf as or,Wi as sr,Wl as cr,Wo as lr,Wr as ur,Wu as dr,Xa as fr,Xc as pr,Xd as mr,Xi as hr,Xl as gr,Xo as _r,Xr as vr,Xs as yr,Xu as w,Y as br,Ya as xr,Yc as T,Yd as Sr,Yl as Cr,Yo as wr,Yr as Tr,Ys as Er,Yu as E,Zc as Dr,Zd as D,Zi as Or,Zl as kr,Zo as Ar,Zr as jr,Zs as Mr,Zu as Nr,_ as Pr,_a as O,_c as Fr,_d as Ir,_f as Lr,_l as Rr,_o as zr,_u as Br,a as Vr,aa as Hr,ac as Ur,ad as Wr,af as Gr,ai as Kr,al as qr,ao as Jr,as as Yr,au as Xr,b as Zr,bc as Qr,bd as $r,bf as ei,bl as ti,bo as ni,bu as ri,c as ii,ca as ai,cc as oi,cd as si,cf as ci,ci as li,cl as k,co as ui,cs as di,cu as fi,d as pi,da as mi,dc as A,dd as hi,df as gi,dl as _i,du as vi,ec as yi,ed as bi,ef as xi,ei as Si,el as Ci,er as wi,es as Ti,eu as Ei,f as Di,fa as Oi,fc as ki,fd as Ai,ff as ji,fl as Mi,fo as Ni,fu as Pi,g as Fi,ga as Ii,gc as Li,gd as Ri,gf as zi,gl as Bi,go as Vi,gu as Hi,h as Ui,ha as Wi,hc as Gi,hd as Ki,hf as qi,hl as Ji,ho as Yi,hu as Xi,i as Zi,ia as Qi,ic as $i,id as ea,if as ta,ii as na,il as ra,io as ia,ir as aa,is as oa,iu as sa,jc as ca,jd as j,jf as la,jl as ua,jo as da,jr as fa,ju as M,ka as pa,kc as ma,kd as ha,kf as ga,kl as _a,ko as va,kr as ya,ku as ba,l as xa,la as Sa,lc as Ca,ld as wa,lf as Ta,ll as Ea,lo as Da,ls as Oa,lu as ka,m as N,ma as P,mc as Aa,md as ja,mf as Ma,ml as Na,mo as Pa,mu as Fa,n as Ia,nc as La,nd as Ra,nf as za,ni as Ba,nl as Va,ns as Ha,nu as Ua,o as Wa,oa as Ga,oc as Ka,od as qa,of as Ja,ol as Ya,oo as Xa,os as Za,ou as Qa,p as $a,pa as eo,pc as to,pd as no,pf as ro,pl as io,po as ao,pu as oo,qc as F,qd as so,qf as co,qi as lo,ql as uo,qo as fo,qr as po,qu as mo,r as ho,rc as I,rd as go,rf as _o,ri as vo,rl as yo,rr as L,ru as bo,s as xo,sa as So,sc as Co,sd as wo,sf as To,si as Eo,sl as Do,so as Oo,ss as ko,su as Ao,tc as jo,td as Mo,tf as No,ti as Po,tl as Fo,tr as R,ts as Io,tt as z,tu as Lo,u as Ro,ua as zo,uc as Bo,ud as Vo,uf as Ho,ui as Uo,ul as Wo,uo as Go,us as Ko,uu as qo,v as Jo,va as B,vc as Yo,vd as Xo,vf as Zo,vl as Qo,vo as $o,vr as es,vu as ts,wa as ns,wc as rs,wd as is,wf as as,wl as os,wo as ss,wu as cs,x as ls,xa as us,xc as ds,xd as fs,xf as ps,xl as ms,xo as V,xu as hs,y as gs,ya as H,yc as _s,yd as vs,yf as ys,yl as bs,yo as xs,yu as Ss,za as Cs,zc as ws,zd as Ts,zf as Es,zi as Ds,zl as Os,zo as ks,zr as As,zu as js}from"./_chunks/src-BacPsCQO.js";import{constants as Ms,createContext as Ns,runInContext as Ps}from"node:vm";import*as U from"node:diagnostics_channel";let W=null;function targets(){let e=/* @__PURE__ */ new Set,t=L();for(let n in t){let r=t[n];if(r===null||typeof r!=`object`&&typeof r!=`function`)continue;e.add(r);let i=r.prototype;typeof r==`function`&&typeof i==`object`&&i&&e.add(i)}return e.add(R.prototype),[...e]}function snapshot(e){let t=Reflect.ownKeys(e),n=Array(t.length);for(let r=0;r<t.length;r++){let i=t[r];n[r]=isArrayIndex(i)?null:Object.getOwnPropertyDescriptor(e,i)}return{target:e,keys:t,descriptors:n,keySet:null}}let G=null;function captureInterfaceBaseline(){if(W===null){W=[],G=/* @__PURE__ */ new WeakSet;for(let e of targets())W.push(snapshot(e)),G.add(e);ownObjectCreateMaps()}}let Fs=null;function ownObjectCreateMaps(){if(W===null)return;let e=Fs??=Ps(`(prototypes) => prototypes.map((p) => Object.create(p))`,Ns(Ms.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<W.length;e++){let n=W[e].target;typeof n!=`function`&&t.push(n)}e(t)}function configurableDescriptor(e){return typeof e==`object`&&e&&e.configurable!==!0?{...e,configurable:!0}:e}function guardInterfaceDefinitions(e){let t=G;if(t===null)return;let n=e.Object,r=e.Reflect,i=n.defineProperty,a=n.defineProperties,o=r.defineProperty,s={defineProperty(e,n,r){return i(e,n,t.has(e)?configurableDescriptor(r):r)},defineProperties(e,n){if(!t.has(e)||typeof n!=`object`||!n)return a(e,n);let r={};for(let e of Reflect.ownKeys(n))Object.getOwnPropertyDescriptor(n,e)?.enumerable&&(r[e]=configurableDescriptor(n[e]));return a(e,r)},reflectDefineProperty(e,n,r){return o(e,n,t.has(e)?configurableDescriptor(r):r)}};Object.defineProperty(s.reflectDefineProperty,"name",{value:`defineProperty`}),Object.defineProperty(n,"defineProperty",{value:s.defineProperty,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(n,"defineProperties",{value:s.defineProperties,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(r,"defineProperty",{value:s.reflectDefineProperty,writable:!0,configurable:!0,enumerable:!1})}function isArrayIndex(e){if(typeof e!=`string`||e===``||e.length>10)return!1;let t=Number(e);return t>>>0===t&&t!==4294967295&&String(t)===e}function sameDescriptor(e,t){return e.value===t.value&&e.get===t.get&&e.set===t.set&&e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable}function restoreInterfaces(){if(W===null)return 0;let e=0;for(let t=0;t<W.length;t++){let n=W[t],r=n.target,i=Reflect.ownKeys(r);for(let t=0;t<i.length;t++){let a=i[t];a===n.keys[t]||(n.keySet??=new Set(n.keys)).has(a)||isArrayIndex(a)||Reflect.deleteProperty(r,a)&&e++}for(let t=0;t<n.keys.length;t++){let i=n.keys[t],a=n.descriptors[t];if(a===null)continue;let o=Object.getOwnPropertyDescriptor(r,i);if(!(o!==void 0&&sameDescriptor(o,a)))try{Object.defineProperty(r,i,a),e++}catch{}}}return ownObjectCreateMaps(),e}const K=`ctrl-dom:span`,q=typeof U.tracingChannel==`function`?U.tracingChannel(K):null;function spanChannel(){return q}function tracing(){return q!==null&&q.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=D();return q.traceSync(e=>{try{return n(e)}finally{recordSkipped(e,i)}},r,void 0,r)}function tracePromise(e,t,n){let r={op:e,description:t,data:{},async:!0},i=D();return q.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=D()-t;n>0&&(e.data[`clock.skipped_ms`]=Math.round(n))}function describeCall(e,t){let n=`${e}(`;for(let e=0;e<t.length&&(t[e]!==void 0||e!==t.length-1);e++)if(n+=(e>0?`, `:``)+describeValue(t[e],0),n.length>160)return`${n.slice(0,159)}…)`;return`${n})`}function describeValue(e,t){if(typeof e==`string`)return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e);if(typeof e==`function`)return e.name?`${e.name}()`:`fn`;if(e instanceof RegExp||typeof e!=`object`||!e)return String(e);if(e[y]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let J=null;function setNodeDescriber(e){J=e}function describeNode(e){let t=e;if(t.nodeType===9)return`document`;if(t.nodeType!==1||typeof t.localName!=`string`)return t.nodeType===3?`#text`:`node`;if(J!==null)try{let t=J(e);if(t)return t}catch{}if(t.localName===`body`||t.localName===`html`)return`<${t.localName}>`;let n=t.getAttribute?.(`aria-label`)||t.textContent?.trim().replace(/\s+/g,` `)||t.getAttribute?.(`placeholder`)||t.getAttribute?.(`name`)||``;return n===``?`<${t.localName}>`:`<${t.localName} ${quote(n)}>`}function quote(e){return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e)}const Y=`sentry-tests:failure`;let X=null;function setFailureSnapshot(e){X=e}function subscribeTestFailures(e){let t=U.channel(Y),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=x();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),X!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:X(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}function implOf(e){return e[y]??e}function isTypingType(e){return O(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===V.input?isTypingType(P(t))&&N(t):t.tag===V.textarea?N(t):cn(t)}function supportsSelection(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&B(P(t))}function hasUIValue(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&H(P(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;return e[C]??e.value}return t.tag===V.textarea?t.node.value:``}function setUIValue(t,n){let r=implOf(t);if(r.tag===V.input){let t=r.node,i=P(r);if(H(i)!==0)return;let a=e(i,n,r);r.doc[h]++,t[b]=a,t[T]=!0,t[j]=!0,t[C]=a===n?null:n,t[I]=a===``&&n!==``&&i!==5&&!O(i);let o=n.length;t[S]>o&&(t[S]=o),t[w]>o&&(t[w]=o)}else if(r.tag===V.textarea){let e=r.node;r.doc[h]++,e[M]=n,e[T]=!0,e[j]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;e[C]=null,e[I]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[S],n),end:Math.min(t[w],n),direction:t[E]}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==V.input&&i.tag!==V.textarea)return;let a=i.node,o=getUIValue(e).length,s=Math.max(0,Math.min(t,n)),c=Math.max(t,n);c>o&&(c=o),s>c&&(s=c),a[S]=s,a[w]=c,a[E]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===V.input&&P(n)===17&&(n.doc[h]++,n.node[k]=z(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==V.option)return;let r=n.node;r._setSelectedness(t),r[F]=!0;let i=br(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===V.input&&n.node._setCheckedness(t,!0)}const Is=R.prototype.getComputedStyle;let Z=null,Q=null,$=null;function getComputedStyleOverride(e){let t=e.doc.defaultView;if(t==null)return null;let n=t.getComputedStyle;if(n===Is||typeof n!=`function`||nt.has(n))return null;if(Q?.deref()===n&&Z?.deref()===t){let e=$.deref();if(e!==void 0)return e}let r=n.bind(t);return Z=new WeakRef(t),Q=new WeakRef(n),$=new WeakRef(r),r}export{yr as $_proto__,Mr as $aboutBase,gn as $active,c as $assocGen,yi as $attr,jo as $attributes,La as $availableToElementInternals,I as $badInput,$i as $baseFor,Ur as $baseOverride,Ka as $baseURL,Co as $baseVersion,oi as $block,Ca as $byCtor,Bo as $byName,A as $cache,ki as $callback,to as $checked,Aa as $checkedSet,Gi as $childNodes,Li as $childWindows,Fr as $children,Yo as $classList,_s as $clipboard,Qr as $clonable,ds as $closed,On as $coll,ye as $compiled,rs as $compiledFor,Fn as $condition,Ne as $constructed,Ee as $constructingEntryList,Zt as $contentType,ma as $controlsCache,te as $controlsDoc,ca as $controlsVersion,Lt as $cookieJar,Wt as $cookies,rn as $css,m as $current,rt as $customElements,kt as $customValidity,vn as $cx,ws as $data,le as $dataset,Xn as $declarative,Je as $defaultNamespace,Vn as $defaultValueOverride,ir as $delegatesFocus,ze as $derived,bt as $devicePixelRatio,F as $dirtiness,dt as $dirtyChecked,T as $dirtyValue,pr as $disabled,Dr as $disallowModification,un as $doc,t as $dropEffect,Ci as $ec,Fo as $effectAllowed,Va as $el,yo as $elements,ra as $entries,qr as $eo,Ya as $error,Do as $file,k as $files,Ea as $fill,Wo as $filter,_i as $firingSubmissionEvents,Mi as $focused,io as $forLabels,Na as $form,Ji as $forms,Bi as $frameCallbacks,Rr as $frameElement,Qo as $frameId,bs as $frameTask,ti as $frameTime,ms as $generation,jn as $globalObject,Se as $hasTransients,os as $height,Ln as $history,u as $home,ke as $host,en as $href,_a as $id,ie as $idleCallbacks,ua as $idleId,Bt as $ids,y as $impl,on as $implementation,v as $indeterminate,st as $index,Nt as $indexed,Sn as $inflight,Os as $info,pe as $innerHeight,er as $innerWidth,Qe as $is2D,Gn as $isHTML,cr as $items,Ue as $keyText,wt as $kind,uo as $labels,ht as $layerName,Cr as $list,gr as $listeners,kr as $localStorage,fn as $location,i as $lockedForReset,Ei as $m,Lo as $matches,Ua as $media,bo as $mediaQueryLists,sa as $mode,Xr as $name,Qa as $names,Ao as $namespaces,fi as $navigator,ka as $nodes,qo as $onchange,vi as $options,Pi as $owner,oo as $ownerNode,Fa as $ownerRule,Xi as $parent,Hi as $parentRule,Br as $parentWindow,ts as $pastNames,Ss as $pointerBeforeReference,ri as $preApplied,hs as $preChecked,Nn as $preCheckedRadio,we as $preIndeterminate,cs as $prefix,zn as $prelude,p as $presentationStyle,Me as $pseudo,nn as $queries,ba as $radios,se as $ranges,M as $rawValue,Ut as $readonly,Yt as $readyState,ln as $rebuildVersion,Re as $record,lt as $records,It as $rects,Tn as $reference,js as $result,ge as $root,rr as $rules,tt as $running,Jn as $runningFrame,dr as $sc,qe as $screen,Ot as $scrollRestoration,mo as $scrollX,yt as $scrollY,E as $selDir,w as $selEnd,Nr as $selSet,S as $selStart,l as $selectedOptions,bi as $selectedness,Mo as $selection,Ra as $selector,go as $serializable,ea as $sessionStorage,Wr as $settled,qa as $shadowRoot,wo as $shed,si as $sheet,wa as $sheets,Vo as $slotAssignment,hi as $so,Ai as $states,no as $style,ja as $styleVersion,Ki as $supportsText,Ri as $systemId,Ir as $target,Xo as $targets,vs as $tasks,$r as $timers,fs as $title,kn as $treeVersion,be as $type,is as $types,C as $uiValue,Pe as $updating,De as $updatingSelectedContent,Qt as $uri,ha as $url,ne as $userActivation,j as $userEdited,Rt as $userValidity,Gt as $validity,b as $value,h as $version,it as $visualViewport,At as $w,yn as $whatToShow,Ts as $whenDefined,ue as $width,Zn as $window,Ye as $writeBuffer,Hn as $x,ar as $xhr,Be as $y,xt as $z,Ja as ATTRIBUTE_NODE,Io as AttrRecord,To as CDATA_SECTION_NODE,ci as COMMENT_NODE,Ze as COMPAT,Wn as COMPAT_PROFILES,sr as DEFAULT_COMPAT,Ta as DOCUMENT_FRAGMENT_NODE,Ho as DOCUMENT_NODE,gi as DOCUMENT_POSITION_CONTAINED_BY,ji as DOCUMENT_POSITION_CONTAINS,ro as DOCUMENT_POSITION_DISCONNECTED,Ma as DOCUMENT_POSITION_FOLLOWING,qi as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,zi as DOCUMENT_POSITION_PRECEDING,Lr as DOCUMENT_TYPE_NODE,hr as DeclBlock,Zo as ELEMENT_NODE,ys as ENTITY_NODE,ei as ENTITY_REFERENCE_NODE,vt as EventState,Y as FAILURE_CHANNEL,ps as F_ADOPT_HOOK,An as F_ARIA_ATTRS,xe as F_ATTR_HOOK,as as F_CE_CUSTOM,In as F_CHILDREN_HOOK,Fe as F_CHILD_LIST,Oe as F_CONNECTED,$t as F_CONNECT_HOOK,ga as F_CONTENTEDITABLE_ATTR,re as F_CUSTOM,la as F_DATA_ATTRS,zt as F_FACE,Kt as F_HAS_SHADOW,an as F_HAS_STYLE_ATTR,g as F_HTML,at as F_INERT_ATTR,jt as F_MO_REGISTERED,bn as F_SHADOW_ROOT,Es as F_TABINDEX_ATTR,us as GLOBAL_EVENT_HANDLER_EVENTS,ia as HTMLCollection,de as HTML_NS,eo as INPUT_TYPE_NAMES,Qn as MATHML_NS,Xe as NOTATION_NODE,Mt as NodeCache,Ha as NodeImpl,Pt as NodeList,Un as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,or as SVG_NS,V as T,Ve as TEXT_NODE,so as VirtualClock,ft as VirtualTimeout,Dn as WINDOW_EVENT_HANDLER_EVENTS,St as XLINK_NS,co as XMLNS_NS,pt as XML_NS,hn as adoptedStyleSheetsOf,ss as ariaAttr,Rn as asciiLowercase,Yi as assignManually,Vi as assignedElements,zr as assignedNodes,$o as assignedSlot,Te as attachShadowRoot,d as attr,pn as attrAssociatedElement,a as attrAssociatedElements,Bn as attrNode,Sr as canSkipZeroDelayWait,captureInterfaceBaseline,$e as childAt,Ae as classTokens,clearUIValue,mr as clockNow,x as clockStats,Oo as closest,f as compareBoundaryPoints,Kn as compareTreeOrder,He as compatExposes,wn as computedDisplay,As as computedValue,he as computedVisibility,ya as constructEntryList,Ia as controlValue,es as createEvent,z as createFileList,s as createLinkSheet,nr as currentStyleVersion,oe as defaultButton,Ct as deferredCompatMembers,me as derivedCache,describeCall,describeNode,oa as dispatch,Ds as dispatchTrusted,Jr as ensureCollectionIndexGetters,Cn as ensureIndexGetters,Eo as evaluateMediaQueryList,dn as faceState,xs as findFlattenedSlottables,ni as findSlot,fe as fireAnEvent,$n as fireSyntheticPointerEvent,lr as firstElementChild,n as foreignImmediatesPending,Hr as formOwner,tn as getAttribute,Ft as getComputedStyle,getComputedStyleOverride,Yr as getCurrentEvent,Xt as getElementsByClassName,pa as getElementsByTagName,ee as getElementsByTagNameNS,ve as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,va as hasAttr,et as hasAuthorStyles,wi as hasExplicitAttrElements,Ke as hasListeners,ho as hasReadonlyAttribute,hasUIValue,lo as hiddenGlobals,fa as implicitSubmission,ks as indexGetterTable,We as indexOf,Zi as inputChecked,Vr as inputIndeterminate,P as inputType,Wi as inputTypeFromAttr,Ni as inspectNode,xi as installClock,ns as installEventHandlers,Ga as isActuallyDisabled,ae as isAsciiWhitespace,Wa as isAutofilled,xo as isChecked,No as isClockTimer,ii as isDefault,xa as isDisabled,qn as isDisplayNone,ur as isDisplayNoneInclusive,isEditable as isEditableControl,Ro as isEnabled,r as isFACE,pi as isInRange,Tt as isInclusiveAncestor,Di as isIndeterminate,$a as isInvalid,So as isLabelable,ai as isListed,N as isMutable,Ii as isNumericType,Ui as isOptional,Fi as isOutOfRange,Pr as isPlaceholderShown,Jo as isReadOnly,gs as isReadWrite,Zr as isRequired,Sa as isResettable,Ht as isSubmitButton,zo as isSubmittable,ls as isTextControl,O as isTextualType,En as isValid,_n as isValidDoctypeName,Cs as isValidElementLocalName,ce as isValidNamespacePrefix,Ge as isVisibilityHidden,mi as labeledControl,Oi as labelsFor,fo as lastElementChild,Qi as listOfOptions,_ as matchMediaText,ui as matches,li as mediaEnvironment,gt as nextElementInTree,wr as nextElementSibling,_r as nextInTree,Ar as nextSkippingChildren,xn as nodeCache,Za as nodeGetTheParent,je as nodeLength,Ie as notifyMutationObservers,_e as optionSelected,Or as parseDeclBlock,fr as parseFragment,ot as parseMediaQueryList,tr as peekDerivedCache,Et as pointerEvents,po as pointerEventsNone,da as prefixFlag,mn as previousElementSibling,o as previousInTree,_t as pseudoContent,Da as querySelector,Go as querySelectorAll,quote,Po as registerOwnerSheet,Dt as removeAllEventListeners,Vt as removeAttribute,Ba as removeOwnerSheet,ao as replaceData,Oa as reportException,mt as resolveCompat,restoreInterfaces,ko as retarget,ut as serializeChildren,xr as serializeNode,vo as setAdoptedStyleSheets,di as setAssignedSlotLookup,qt as setAttribute,setCheckedFromUI,Tr as setComputedColorMode,Pn as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Jt as setNotImplementedHandler,setOptionSelectedFromUI,Er as setTrusted,setUISelection,setUIValue,Ko as setUncaughtExceptionHandler,za as skipIdleTime,_o as skipZeroDelayWait,spanChannel,sn as splitOnAsciiWhitespace,Pa as splitText,Le as styleElementRemoved,Si as styleElementSheet,ct as styleElementUpdated,na as styleSheetsOf,vr as styledDisplay,subscribeTestFailures,supportsSelection,B as supportsSelectionType,Mn as tagId,Ce as tagName,tracePromise,traceSync,tracing,aa as trackGlobalTimers,Ti as treeRoot,jr as uaDisplay,Kr as unregisterOwnerSheet,Yn as validateAndExtract,H as valueMode,ta as virtualDate,Gr as virtualPerformance,Uo as windowHooks,L as windowInterfaces,Xa as withNamedProperties};
|
|
1
|
+
import{$ as e,$c as t,$d as n,$i as r,$l as i,$n as a,$o as o,$r as s,$s as c,$u as ee,Aa as l,Ac as u,Ad as te,Af as ne,Al as re,Ao as ie,Ar as ae,Au as oe,Ba as se,Bc as ce,Bd as le,Bf 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,Dc as we,Dd as Te,Df as Ee,Dl as De,Do as Oe,Dr as ke,Du as Ae,Ea as je,Ec as Me,Ed as d,Ef as Ne,El as Pe,Eo as f,Eu as p,Fc as m,Fd as h,Ff as g,Fl as _,Fo as v,Fr as y,Fu as Fe,Gc as Ie,Gd as Le,Gi as Re,Gl as ze,Go as Be,Gr as Ve,Gs as He,Gu as Ue,Ha as We,Hc as Ge,Hd as Ke,Hf as qe,Hi as Je,Hl as Ye,Ho as Xe,Hr as Ze,Hs as b,Hu as Qe,I as $e,Ic as et,Id as tt,If as nt,Ii as rt,Il as it,Io as at,Ir as ot,Iu as st,Jc as ct,Jd as lt,Ji as ut,Jl as dt,Jo as ft,Jr as pt,Js as mt,Ju as ht,Kc as gt,Kd as _t,Ki as vt,Kl as yt,Ko as bt,Kr as xt,Ks as St,Ku as Ct,Lc as wt,Ld as Tt,Lf as Et,Li as Dt,Ll as x,Lo as Ot,Lr as kt,Lu as At,Mc as jt,Md as Mt,Mf as Nt,Ml as S,Mo as Pt,Mr as Ft,Mu as It,Nc as Lt,Nd as Rt,Nf as zt,Nl as Bt,No as Vt,Nr as Ht,Nu as Ut,Oa as Wt,Oc as Gt,Od as Kt,Of as qt,Ol as Jt,Oo as Yt,Or as Xt,Ou as Zt,Pc as Qt,Pd as $t,Pf as en,Pl as tn,Pr as nn,Pu as rn,Qc as an,Qd as on,Qi as sn,Ql as cn,Qn as ln,Qo as un,Qr as dn,Qs as fn,Qu as pn,Rc as mn,Rd as hn,Rf as gn,Ri as _n,Rl as vn,Ro as yn,Rr as bn,Ru as xn,S as Sn,Sa as Cn,Sc as wn,Sd as Tn,Sf as En,Sl as Dn,So as On,Su as kn,Ta as An,Tc as jn,Td as Mn,Tf as Nn,Tl as Pn,To as Fn,Tu as In,Uc as Ln,Ud as C,Ui as Rn,Ul as zn,Uo as Bn,Ur as Vn,Us 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,Wa as $n,Wc as er,Wd as w,Wi as tr,Wl as nr,Wo as rr,Wr as ir,Ws as ar,Wu as or,Xa as sr,Xc as T,Xd as cr,Xl as lr,Xo as ur,Xr as dr,Xs as fr,Xu as pr,Y as mr,Ya as hr,Yc as gr,Yd as _r,Yi as vr,Yl as yr,Yo as br,Yr as xr,Yu as Sr,Za as Cr,Zc as wr,Zd as Tr,Zi as Er,Zl as Dr,Zo as Or,Zr as kr,Zs as Ar,Zu as jr,_ as Mr,_a as Nr,_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 E,ao as Kr,ar as qr,as as Jr,au as Yr,b as Xr,ba as D,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,cu as di,d as fi,da as pi,dc as mi,dd as hi,df as gi,di as _i,dl as vi,do as yi,du as bi,ea as xi,ec as Si,ed as Ci,ef as wi,ei as Ti,el as Ei,er as Di,eu as Oi,f as ki,fa as Ai,fc as ji,fd as O,ff as Mi,fl 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 k,hc as Wi,hd as Gi,hf as Ki,hl as qi,ho as Ji,hu as Yi,i as Xi,ic as Zi,id as Qi,if as $i,ii as ea,il as ta,ir as na,is as ra,iu as ia,ja as aa,jc as A,jd as oa,jf as sa,jl as ca,jo as la,jr as ua,ju as da,ka as fa,kc as pa,kd as ma,kf as ha,kl as ga,ko as _a,ku as va,l as ya,la as ba,lc as xa,ld as Sa,lf as Ca,li as wa,ll as Ta,lo as Ea,lu as Da,m as j,ma as Oa,mc as ka,md as Aa,mf as ja,ml as Ma,mo as Na,mu as Pa,n as Fa,nc as Ia,nd as La,nf as Ra,ni as za,nl as Ba,ns as Va,nu as Ha,o as Ua,oa as Wa,oc as Ga,od as Ka,of as qa,oi as Ja,ol as Ya,oo as Xa,os as Za,ou as Qa,p as $a,pa as eo,pc as to,pd as no,pf as ro,pl as io,po as ao,pu as oo,qc as so,qd as co,qi as lo,ql as uo,qo as fo,qr as po,qs as mo,qu as ho,r as go,rc as _o,rd as vo,rf as yo,ri as bo,rl as xo,rr as M,rs as So,ru as Co,s as wo,sa as To,sc as Eo,sd as Do,sf as Oo,sl as ko,so as Ao,ss as jo,su as Mo,tc as No,td as Po,tf as Fo,ti as Io,tl as Lo,tr as N,ts as Ro,tt as P,tu as zo,u as Bo,ua as Vo,uc as Ho,ud as Uo,uf as Wo,ul as Go,uo as Ko,us as F,uu as qo,v as Jo,va as I,vc as Yo,vd as Xo,vf as Zo,vl as L,vo as Qo,vu as $o,wa as es,wc as ts,wd as ns,wf as rs,wl as is,wo as as,wu as os,x as ss,xc as cs,xd as ls,xf as us,xl as R,xo as ds,xu as z,y as fs,ya as B,yc as ps,yd as ms,yf as hs,yl as gs,yo as _s,yr as vs,yu as ys,za as bs,zc as xs,zd as Ss,zf as Cs,zi as ws,zl as Ts,zo as Es,zr as Ds,zu as V}from"./_chunks/src-CaVKwScX.js";import{constants as Os,createContext as ks,runInContext as As}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(N.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 js=null;function ownObjectCreateMaps(){if(U===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<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[_]!==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=w();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=F();if(n===null)return;let r=stateOf(n).hooks;r.set(e,{...r.get(e),...t})}function testHooks(){let e=F(),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{}Kn(),na(e);let n=e[O];if(n!==null){for(let e of n)e.clear(e.handle);n.clear()}e[L]=null,e[V]=null,e[R]=null,e[S]=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[m]=null;let a=t.url??=e.location.href;e.location.href!==a&&e._setURL(new URL(a));let o=e.history;o[E]=[{url:a,state:null}],o[x]=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}function isTypingType(e){return I(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===b.input?isTypingType(k(t))&&j(t):t.tag===b.textarea?j(t):y(t)}function supportsSelection(e){let t=implOf(e);return t.tag===b.textarea||t.tag===b.input&&B(k(t))}function hasUIValue(e){let t=implOf(e);return t.tag===b.textarea||t.tag===b.input&&D(k(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===b.input){let e=t.node;return e[A].uiValue??e.value}return t.tag===b.textarea?t.node.value:``}function setUIValue(t,n){let r=implOf(t);if(r.tag===b.input){let t=r.node,i=k(r);if(D(i)!==0)return;let a=e(i,n,r);r.doc[d]++,t[A].value=a,t[A].dirtyValue=!0,t[A].userEdited=!0,t[A].uiValue=a===n?null:n,t[A].badInput=a===``&&n!==``&&i!==5&&!I(i);let o=n.length;t[A].selStart>o&&(t[A].selStart=o),t[A].selEnd>o&&(t[A].selEnd=o)}else if(r.tag===b.textarea){let e=r.node;r.doc[d]++,e[A].value=n,e[A].dirtyValue=!0,e[A].userEdited=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===b.input){let e=t.node;e[A].uiValue=null,e[A].badInput=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[A].selStart,n),end:Math.min(t[A].selEnd,n),direction:t[A].selDir}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==b.input&&i.tag!==b.textarea)return;let a=i.node,o=getUIValue(e).length,s=Math.max(0,Math.min(t,n)),c=Math.max(t,n);c>o&&(c=o),s>c&&(s=c),a[A].selStart=s,a[A].selEnd=c,a[A].selDir=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===b.input&&k(n)===17&&(n.doc[d]++,n.node[A].files=P(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==b.option)return;let r=n.node;r._setSelectedness(t),r[T]=!0;let i=mr(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===b.input&&n.node._setCheckedness(t,!0)}const Ms=N.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`||$e.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{fn as $_proto__,c as $aboutBase,Si as $active,No as $assocGen,Ia as $attr,_o as $attributes,Zi as $availableToElementInternals,Hr as $baseFor,Ga as $baseOverride,Eo as $baseURL,ai as $baseVersion,xa as $benign,Ho as $block,mi as $blockParsed,ji as $blockText,to as $byCtor,ka as $byName,Wi as $cache,Li as $callback,Pr as $childNodes,Yo as $childWindows,ps as $children,Zr as $classList,cs as $clipboard,wn as $clonable,ve as $closed,ts as $coll,jn as $compiled,Me as $compiledFor,we as $condition,Gt as $constructed,pa as $constructingEntryList,u as $contentType,A as $control,jt as $controlsCache,Lt as $controlsDoc,Qt as $controlsVersion,m as $cookieJar,et as $cookies,wt as $css,mn as $current,xs as $customElements,ce as $customValidity,Gn as $cx,Ge as $data,Ln as $dataset,er as $declarative,Ie as $defaultNamespace,gt as $defaultValueOverride,so as $delegatesFocus,ct as $derived,gr as $devicePixelRatio,T as $dirtiness,wr as $disabled,an as $disallowModification,t as $doc,Ei as $dropEffect,Lo as $ec,Ba as $effectAllowed,xo as $el,ta as $elements,E as $entries,Ya as $eo,ko as $error,li as $file,Ta as $files,Go as $fill,vi as $filter,Ni as $firingSubmissionEvents,io as $focused,Ma as $forLabels,qi as $form,Bi as $formAttrSeen,Lr as $forms,L as $frameCallbacks,gs as $frameElement,ei as $frameId,R as $frameTask,Dn as $frameTime,xe as $generation,is as $globalObject,Pn as $hasTransients,Pe as $height,De as $history,Jt as $home,ga as $host,re as $href,ca as $id,S as $idleCallbacks,Bt as $idleId,tn as $ids,_ as $impl,it as $implementation,x as $index,vn as $indexed,Ts as $inflight,fe as $info,Yn as $innerHeight,Ye as $innerWidth,zn as $is2D,nr as $isHTML,ze as $items,yt as $keyText,uo as $kind,dt as $labels,yr as $layerName,lr as $list,Dr as $listeners,cn as $localStorage,i as $location,Oi as $lockedForReset,zo as $m,Ha as $matches,Co as $media,ia as $mediaQueryLists,Yr as $mode,Qa as $name,Mo as $names,di as $namespaces,Da as $navigator,qo as $nodes,bi as $onchange,Pi as $options,oo as $owner,Pa as $ownerNode,Yi as $ownerRule,Hi as $parent,zr as $parentRule,$o as $parentWindow,ys as $pastNames,ni as $pointerBeforeReference,z as $prefix,kn as $prelude,Ce as $presentationStyle,os as $pseudo,In as $queries,p as $radios,Ae as $ranges,Zt as $readonly,va as $readyState,oe as $rebuildVersion,da as $record,It as $records,Ut as $rects,rn as $reference,Fe as $result,st as $root,At as $rules,xn as $running,V as $runningFrame,he as $sc,Qn as $screen,Qe as $scrollRestoration,Un as $scrollX,or as $scrollY,Ue as $selSet,Ct as $selectedOptions,ho as $selectedness,ht as $selection,Sr as $selector,pr as $serializable,jr as $sessionStorage,pn as $settled,ee as $shadowRoot,Ci as $shed,Po as $sheet,La as $sheets,vo as $slotAssignment,Qi as $so,Ur as $states,Ka as $style,Do as $styleVersion,oi as $supportsText,Sa as $systemId,Uo as $target,hi as $targets,O as $tasks,no as $timers,Aa as $title,Gi as $treeVersion,Ri as $type,Fr as $types,Xo as $updating,ms as $updatingSelectedContent,Qr as $uri,ls as $url,Tn as $userActivation,ye as $userValidity,ns as $validity,Mn as $value,d as $version,Te as $visualViewport,Kt as $w,ma as $whatToShow,te as $whenDefined,oa as $width,Mt as $window,Rt as $writeBuffer,$t as $x,h as $xhr,tt as $y,Tt as $z,n as ATTRIBUTE_NODE,un as AttrRecord,wi as CDATA_SECTION_NODE,Fo as COMMENT_NODE,Rn as COMPAT,tr as COMPAT_PROFILES,Re as DEFAULT_COMPAT,Ra as DOCUMENT_FRAGMENT_NODE,yo as DOCUMENT_NODE,$i as DOCUMENT_POSITION_CONTAINED_BY,Wr as DOCUMENT_POSITION_CONTAINS,qa as DOCUMENT_POSITION_DISCONNECTED,Oo as DOCUMENT_POSITION_FOLLOWING,si as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,Ca as DOCUMENT_POSITION_PRECEDING,Wo as DOCUMENT_TYPE_NODE,Er as DeclBlock,gi as ELEMENT_NODE,Mi as ENTITY_NODE,ro as ENTITY_REFERENCE_NODE,fr as EventState,J as FAILURE_CHANNEL,ja as F_ADOPT_HOOK,Ki as F_ARIA_ATTRS,zi as F_ATTR_HOOK,Ir as F_CE_CUSTOM,Zo as F_CHILDREN_HOOK,hs as F_CHILD_LIST,$r as F_CONNECTED,us as F_CONNECT_HOOK,En as F_CONTENTEDITABLE_ATTR,be as F_CUSTOM,rs as F_DATA_ATTRS,Nn as F_FACE,Ne as F_FORM_ATTR,Ee as F_HAS_SHADOW,qt as F_HAS_STYLE_ATTR,ha as F_HTML,ne as F_INERT_ATTR,sa as F_MO_REGISTERED,Nt as F_SHADOW_ROOT,zt as F_TABINDEX_ATTR,Cn as GLOBAL_EVENT_HANDLER_EVENTS,Kr as HTMLCollection,en as HTML_NS,Oa as INPUT_TYPE_NAMES,g as MATHML_NS,nt as NOTATION_NODE,_n as NodeCache,o as NodeImpl,v as NodeList,Et as PROCESSING_INSTRUCTION_NODE,G as SPAN_CHANNEL,gn as SVG_NS,b as T,Cs as TEXT_NODE,hn as VirtualClock,Ss as VirtualTimeout,_e as WINDOW_EVENT_HANDLER_EVENTS,ue as XLINK_NS,qn as XMLNS_NS,qe as XML_NS,s as adoptedStyleSheetsOf,On as ariaAttr,Se as asciiLowercase,Vi as assignManually,Rr as assignedElements,Qo as assignedNodes,_s as assignedSlot,Wt as attachShadowRoot,as as attr,ln as attrAssociatedElement,a as attrAssociatedElements,$n as attrNode,le as canSkipZeroDelayWait,captureInterfaceBaseline,pe as childAt,Fn as classTokens,clearUIValue,Ke as clockNow,w as clockStats,ui as closest,ke as compareBoundaryPoints,vt as compatExposes,Ds as computedDisplay,me as computedValue,Zn as computedVisibility,ae as constructEntryList,Fa as controlValue,vs as createEvent,P as createFileList,Ti as createLinkSheet,Ze as currentStyleVersion,ua as defaultButton,lo as deferredCompatMembers,yn as derivedCache,describeCall,describeNode,Ro as dispatch,de as dispatchTrusted,Xa as ensureCollectionIndexGetters,at as ensureIndexGetters,ci as evaluateMediaQueryList,r as faceState,ti as findFlattenedSlottables,ds as findSlot,Jn as fireAnEvent,Je as fireSyntheticPointerEvent,Xn as firstElementChild,Le as foreignImmediatesPending,Wa as formOwner,f as getAttribute,bn as getComputedStyle,getComputedStyleOverride,Va as getCurrentEvent,fa as getElementsByClassName,l as getElementsByTagName,aa as getElementsByTagNameNS,es as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,Oe as hasAttr,Vn as hasAuthorStyles,Di as hasExplicitAttrElements,He as hasListeners,go as hasReadonlyAttribute,hasUIValue,ut as hiddenGlobals,Ft as implicitSubmission,Ot as indexGetterTable,Xe as indexOf,Xi as inputChecked,Br as inputIndeterminate,k as inputType,Ii as inputTypeFromAttr,ao as inspectNode,_t as installClock,An as installEventHandlers,To as isActuallyDisabled,Yt as isAsciiWhitespace,Ua as isAutofilled,wo as isChecked,co as isClockTimer,ri as isDefault,ya as isDisabled,ir as isDisplayNone,Ve as isDisplayNoneInclusive,isEditable as isEditableControl,Bo as isEnabled,xi as isFACE,fi as isInRange,Bn as isInclusiveAncestor,ki as isIndeterminate,$a as isInvalid,ii as isLabelable,ba as isListed,j as isMutable,Nr as isNumericType,Ui as isOptional,Fi as isOutOfRange,Mr as isPlaceholderShown,Jo as isReadOnly,fs as isReadWrite,Xr as isRequired,Vo as isResettable,Ht as isSubmitButton,pi as isSubmittable,ss as isTextControl,I as isTextualType,Sn as isValid,bs as isValidDoctypeName,se as isValidElementLocalName,Wn as isValidNamespacePrefix,xt as isVisibilityHidden,Ai as labeledControl,eo as labelsFor,rr as lastElementChild,Vr as listOfOptions,St as listenerCount,lt as loopTurn,rt as matchMediaText,Ea as matches,wa as mediaEnvironment,Be as nextElementInTree,bt as nextElementSibling,fo as nextInTree,ft as nextSkippingChildren,ws as nodeCache,So as nodeGetTheParent,Xt as nodeLength,Vt as notifyMutationObservers,ge as optionSelected,sn as parseDeclBlock,Cr as parseFragment,Dt as parseMediaQueryList,Es as peekDerivedCache,po as pointerEvents,pt as pointerEventsNone,_a as prefixFlag,br as previousElementSibling,ur as previousInTree,xr as pseudoContent,Ko as querySelector,yi as querySelectorAll,quote,za as registerOwnerSheet,registerTestHooks,mo as removeAllEventListeners,ie as removeAttribute,bo as removeOwnerSheet,Na as replaceData,Za as reportException,resetWindowBetweenFiles,vr as resolveCompat,restoreInterfaces,ra as retarget,mt as reusableElement,hr as serializeChildren,sr as serializeNode,ea as setAdoptedStyleSheets,Jr as setAssignedSlotLookup,la as setAttribute,setCheckedFromUI,dr as setComputedColorMode,je as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,nn as setNotImplementedHandler,setOptionSelectedFromUI,Ar as setTrusted,setUISelection,setUIValue,jo as setUncaughtExceptionHandler,_r as skipIdleTime,cr as skipZeroDelayWait,spanChannel,Pt as splitOnAsciiWhitespace,Ji as splitText,ot as styleElementRemoved,Io as styleElementSheet,kt as styleElementUpdated,Gr as styleSheetsOf,kr as styledDisplay,subscribeTestFailures,supportsSelection,B as supportsSelectionType,Hn as tagId,ar as tagName,testHooks,tracePromise,traceSync,tracing,qr as trackGlobalTimers,Or as treeRoot,dn as uaDisplay,Ja as unregisterOwnerSheet,We as validateAndExtract,D as valueMode,Tr as virtualDate,on as virtualPerformance,_i as windowHooks,M as windowInterfaces,Ao as withNamedProperties};
|
|
@@ -23,10 +23,7 @@ export declare class HTMLCollection {
|
|
|
23
23
|
/** Free for subclasses that override `_snapshot()` (not used by the base class). */
|
|
24
24
|
[$items]: Element[] | null;
|
|
25
25
|
[$version]: number;
|
|
26
|
-
/**
|
|
27
|
-
* @internal Use the static factories or a subclass. `structural`: the members depend only on
|
|
28
|
-
* the tree and tag names (not attributes or state), see the module comment.
|
|
29
|
-
*/
|
|
26
|
+
/** @internal Use the static factories or a subclass. `structural`: see the module comment. */
|
|
30
27
|
constructor(root: NodeImpl, childrenOnly?: boolean, filter?: ElementFilter | null, structural?: boolean);
|
|
31
28
|
/**
|
|
32
29
|
* @internal Collection state (prototype accessor, so it is not an own property name).
|
|
@@ -41,7 +38,7 @@ export declare class HTMLCollection {
|
|
|
41
38
|
* @internal Descendant elements of `root` matching `filter`, in tree order; `structural` when
|
|
42
39
|
* `filter` reads only tag names and namespaces.
|
|
43
40
|
*/
|
|
44
|
-
static _descendants(root: NodeImpl, filter: ElementFilter | null
|
|
41
|
+
static _descendants(root: NodeImpl, structural: boolean, filter: ElementFilter | null): HTMLCollection;
|
|
45
42
|
/**
|
|
46
43
|
* @internal Fill `out` with the members in tree order. Subclasses override this for custom
|
|
47
44
|
* membership; it runs only when the document changed since the last snapshot.
|
|
@@ -5,6 +5,7 @@ import { CSSStyleRule, CSSStyleSheet, type CSSRule } from "./cssom.js";
|
|
|
5
5
|
import { DeclBlock } from "./declarations.js";
|
|
6
6
|
import { type MediaEnvironment } from "./media.js";
|
|
7
7
|
import { type RootStyles } from "./stylesheets.js";
|
|
8
|
+
import { $block } from "../keys.js";
|
|
8
9
|
export declare class IndexedRule {
|
|
9
10
|
sel: CompiledSelector;
|
|
10
11
|
specificity: number;
|
|
@@ -14,14 +15,20 @@ export declare class IndexedRule {
|
|
|
14
15
|
order: number;
|
|
15
16
|
/** Layer rank: higher wins for normal declarations; unlayered rules have the highest rank. */
|
|
16
17
|
layer: number;
|
|
17
|
-
|
|
18
|
+
/** The declarations; null until the rule first matches, for a rule whose `owner` has not parsed them. */
|
|
19
|
+
block: DeclBlock | null;
|
|
20
|
+
owner: BlockOwner | null;
|
|
18
21
|
layerNode: LayerNode;
|
|
19
22
|
/** Copied from `sel` so the cascade's loop reads them without a pointer hop (as Blink's RuleData). */
|
|
20
23
|
h0: number;
|
|
21
24
|
h1: number;
|
|
22
25
|
h2: number;
|
|
23
26
|
h3: number;
|
|
24
|
-
constructor(sel: CompiledSelector, sheetIndex: number, order: number, block: DeclBlock, layerNode: LayerNode);
|
|
27
|
+
constructor(sel: CompiledSelector, sheetIndex: number, order: number, block: DeclBlock | null, layerNode: LayerNode, owner: BlockOwner | null);
|
|
28
|
+
}
|
|
29
|
+
/** A rule that holds declarations: asking for them parses a style rule's block if nothing has yet. */
|
|
30
|
+
interface BlockOwner {
|
|
31
|
+
readonly [$block]: DeclBlock;
|
|
25
32
|
}
|
|
26
33
|
/** The rules that share one subject key. */
|
|
27
34
|
export declare class Bucket {
|
|
@@ -97,7 +104,7 @@ declare class IndexBuilder {
|
|
|
97
104
|
rules(rules: CSSRule[], layer: LayerNode, parentStyle: CSSStyleRule | null): void;
|
|
98
105
|
style(rule: CSSStyleRule, block: DeclBlock, layer: LayerNode): void;
|
|
99
106
|
/** Indexes a style rule's selectors with its declarations. */
|
|
100
|
-
add(compiled: CompiledSelectorList | null, block: DeclBlock, layer: LayerNode): void;
|
|
107
|
+
add(compiled: CompiledSelectorList | null, block: DeclBlock | null, layer: LayerNode, owner?: BlockOwner | null): void;
|
|
101
108
|
/**
|
|
102
109
|
* Indexes a sheet's top-level rules from `from` on (from 0: a new sheet, checked like sheet())
|
|
103
110
|
* into an index finish() already ranked. They hold no layers (appendableRule), so the layer
|
|
@@ -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, $rebuildVersion, $rules, $selector, $sheet, $sheets, $style, $supportsText, $title, $uri, $version } from "../keys.js";
|
|
8
|
+
import { $block, $blockParsed, $blockText, $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[];
|
|
@@ -186,13 +186,19 @@ export declare class CSSGroupingRule extends CSSRule {
|
|
|
186
186
|
/** https://drafts.csswg.org/cssom/#the-cssstylerule-interface (+ CSS Nesting: nested cssRules) */
|
|
187
187
|
export declare class CSSStyleRule extends CSSGroupingRule implements DeclarationOwnerRule {
|
|
188
188
|
[$selector]: string;
|
|
189
|
-
[$block]
|
|
189
|
+
/** The declarations, once something asked for them (`[$block]`). */
|
|
190
|
+
[$blockParsed]: DeclBlock | null;
|
|
191
|
+
/** The block as written, until then: parsed for the first element the rule matches (parser.ts flatBlockEnd). */
|
|
192
|
+
[$blockText]: string | null;
|
|
190
193
|
[$style]: CSSStyleDeclaration | null;
|
|
191
194
|
/** Compiled (nesting-resolved) selector list, cached until selectorText or an ancestor selector changes. */
|
|
192
195
|
[$compiled]: CompiledSelectorList | null;
|
|
193
196
|
[$compiledFor]: string;
|
|
194
|
-
constructor(selector: string, block: DeclBlock);
|
|
197
|
+
constructor(selector: string, block: DeclBlock | null, text?: string | null);
|
|
195
198
|
get type(): number;
|
|
199
|
+
get [$block](): DeclBlock;
|
|
200
|
+
/** Whether the rule declares anything, without parsing a block nothing has asked for: one with text in it may. */
|
|
201
|
+
_mayDeclare(): boolean;
|
|
196
202
|
/** https://drafts.csswg.org/cssom/#dom-cssstylerule-selectortext */
|
|
197
203
|
get selectorText(): string;
|
|
198
204
|
set selectorText(value: string);
|
|
@@ -31,8 +31,33 @@ export declare class RawRule {
|
|
|
31
31
|
leading: number;
|
|
32
32
|
/** Rules found directly in the block, with RULE_DECLS runs between and after them. */
|
|
33
33
|
rules: RawRule[];
|
|
34
|
+
/**
|
|
35
|
+
* A qualified rule's block when it holds nothing but declarations, as written and not parsed
|
|
36
|
+
* yet (see `flatBlockEnd`); `decls` is empty until `rawDecls()` parses it. Null otherwise.
|
|
37
|
+
*/
|
|
38
|
+
lazy: string | null;
|
|
34
39
|
constructor(kind: number, name: string, prelude: string, hasBlock: boolean);
|
|
35
40
|
}
|
|
41
|
+
/** A rule's declarations, parsing its block now if that was put off. */
|
|
42
|
+
export declare function rawDecls(rule: RawRule): RawDecl[];
|
|
43
|
+
/**
|
|
44
|
+
* Where the block that starts at `from` (just after its "{") ends, when it can only hold
|
|
45
|
+
* declarations: the offset of its "}", or -1 when it needs the parser (a nested rule or at-rule,
|
|
46
|
+
* or anything this scan does not read exactly as the tokenizer would).
|
|
47
|
+
*
|
|
48
|
+
* Most of a style sheet is rules no element of a test ever matches, and most of parsing one was
|
|
49
|
+
* their declarations: tokenizing each value, normalizing it, expanding shorthands and building the
|
|
50
|
+
* block (a 5,000-rule sheet: 10.5 ms, of which the selectors and this scan are a third). Blink
|
|
51
|
+
* defers the same work (its lazy property parsing). Flat blocks are found by characters alone:
|
|
52
|
+
*
|
|
53
|
+
* - strings and comments are skipped; one that does not end before a newline or the end of the
|
|
54
|
+
* text gives up, as does an unquoted `url(` holding anything a URL token may not;
|
|
55
|
+
* - "{" and "@" give up (a nested rule, an at-rule), wherever they are;
|
|
56
|
+
* - a "}" inside parentheses or brackets gives up: there it is part of a value.
|
|
57
|
+
*
|
|
58
|
+
* Giving up costs nothing but the scan: the tokenizer parses the block as before.
|
|
59
|
+
*/
|
|
60
|
+
export declare function flatBlockEnd(src: string, from: number): number;
|
|
36
61
|
/** Removes comments from a source slice by re-tokenizing it (only called when the range contained comments). */
|
|
37
62
|
export declare function stripComments(text: string): string;
|
|
38
63
|
export declare class CSSParser {
|
|
@@ -49,6 +74,8 @@ export declare class CSSParser {
|
|
|
49
74
|
important: boolean;
|
|
50
75
|
valueHasBlock: boolean;
|
|
51
76
|
valueOtherCount: number;
|
|
77
|
+
/** Leave a flat block of a qualified rule unparsed (RawRule.lazy); false parses every block now. */
|
|
78
|
+
lazyBlocks: boolean;
|
|
52
79
|
constructor(src: string);
|
|
53
80
|
advance(): number;
|
|
54
81
|
reconsume(): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether any style record has been cached in this process. Until one has, nothing reads the
|
|
3
|
+
* count, and an attribute write skips the check (4 ns of a 19 ns write in `dom/attr-revisions`).
|
|
4
|
+
*/
|
|
5
|
+
export declare let styleRecordsCached: boolean;
|
|
6
|
+
/** css/cascade.ts is about to stamp a style record. */
|
|
7
|
+
export declare function noteStyleRecordCached(): void;
|
|
8
|
+
/** A style rule with `name` in an attribute selector was indexed (css/cascade.ts). */
|
|
9
|
+
export declare function noteSelectorAttribute(name: string): void;
|
|
10
|
+
/** Whether a change to attribute `localName` (no namespace) leaves every computed style as it was. */
|
|
11
|
+
export declare function styleBlindAttribute(localName: string): boolean;
|
|
@@ -68,6 +68,16 @@ export declare class Event {
|
|
|
68
68
|
readonly CAPTURING_PHASE: 1;
|
|
69
69
|
readonly AT_TARGET: 2;
|
|
70
70
|
readonly BUBBLING_PHASE: 3;
|
|
71
|
+
/**
|
|
72
|
+
* https://dom.spec.whatwg.org/#dom-event-istrusted — [LegacyUnforgeable], so an own enumerable
|
|
73
|
+
* property of every instance. A class field (an in-object data property) rather than the
|
|
74
|
+
* accessor WebIDL prescribes: `Object.defineProperty(this, "isTrusted", accessor)` is a C++
|
|
75
|
+
* runtime path costing ~50 ns, 40-60% of constructing a MouseEvent/KeyboardEvent and more than
|
|
76
|
+
* happy-dom spends on the whole event (docs/deviations.md, Events). Readers see the same
|
|
77
|
+
* value, `Object.keys` and pretty-format output are identical; the flag in `_s` stays the
|
|
78
|
+
* source of truth for dispatch, and `setTrusted` keeps the two in step.
|
|
79
|
+
*/
|
|
80
|
+
readonly isTrusted: boolean;
|
|
71
81
|
/** @internal The per-event state record (non-enumerable prototype accessor). */
|
|
72
82
|
get _s(): EventState;
|
|
73
83
|
/** https://dom.spec.whatwg.org/#dom-event-event */
|
|
@@ -81,7 +91,6 @@ export declare class Event {
|
|
|
81
91
|
get bubbles(): boolean;
|
|
82
92
|
get cancelable(): boolean;
|
|
83
93
|
get composed(): boolean;
|
|
84
|
-
readonly isTrusted: boolean;
|
|
85
94
|
/** https://dom.spec.whatwg.org/#dom-event-timestamp — ms since the time origin (performance.now()). */
|
|
86
95
|
get timeStamp(): number;
|
|
87
96
|
get defaultPrevented(): boolean;
|
|
@@ -105,8 +114,12 @@ export declare class Event {
|
|
|
105
114
|
/** https://dom.spec.whatwg.org/#set-the-canceled-flag */
|
|
106
115
|
export declare function setCanceledFlag(s: EventState): void;
|
|
107
116
|
/** https://dom.spec.whatwg.org/#concept-event-initialize */
|
|
108
|
-
export declare function initializeEvent(
|
|
109
|
-
/**
|
|
117
|
+
export declare function initializeEvent(event: Event, type: string, bubbles: boolean, cancelable: boolean): void;
|
|
118
|
+
/**
|
|
119
|
+
* @internal Set an event's isTrusted: true for events the user agent fires, false again when
|
|
120
|
+
* script dispatches one (https://dom.spec.whatwg.org/#dom-eventtarget-dispatchevent step 2).
|
|
121
|
+
* The flag is what dispatch reads; the own property is what script reads.
|
|
122
|
+
*/
|
|
110
123
|
export declare function setTrusted(event: Event, trusted?: boolean): void;
|
|
111
124
|
/** Name used in subclass constructor errors. */
|
|
112
125
|
export declare function setToStringTag(ctor: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Event } from "./Event.js";
|
|
2
2
|
import type { AddEventListenerOptions, EventListenerOptions, EventListenerOrEventListenerObject } from "../webidl.js";
|
|
3
|
-
import { type
|
|
3
|
+
import { type ListenerSlots } from "./listeners.js";
|
|
4
4
|
import { $listeners } from "../keys.js";
|
|
5
5
|
export declare class EventTarget {
|
|
6
|
-
/** @internal Event type → listener
|
|
6
|
+
/** @internal Event type id → first listener, or null when there are no listeners (see listeners.ts). */
|
|
7
7
|
/**
|
|
8
8
|
* Added on first addEventListener (absent otherwise): most nodes never get a listener (React
|
|
9
9
|
* delegates to its root container), and an always-initialized field cost every node a slot.
|
|
10
10
|
*/
|
|
11
|
-
[$listeners]?:
|
|
11
|
+
[$listeners]?: ListenerSlots | null;
|
|
12
12
|
/** https://dom.spec.whatwg.org/#dom-eventtarget-eventtarget */
|
|
13
13
|
constructor();
|
|
14
14
|
/** https://dom.spec.whatwg.org/#dom-eventtarget-addeventlistener */
|
|
@@ -3,7 +3,15 @@ import type { EventTarget } from "./EventTarget.js";
|
|
|
3
3
|
import type { EventInit } from "../webidl.js";
|
|
4
4
|
import type { Window } from "../window/Window.js";
|
|
5
5
|
import type { DataTransfer } from "./DataTransfer.js";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* The interface a message names: a constructor (`new.target`) whose `name` is read only when an
|
|
8
|
+
* error is actually thrown. `Function.prototype.name` is a native accessor (~8 ns a read), and
|
|
9
|
+
* the subclass constructors used to read it several times per event to pass names down.
|
|
10
|
+
*/
|
|
11
|
+
type Iface = string | {
|
|
12
|
+
readonly name: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function requireArgs(given: number, needed: number, iface: Iface): void;
|
|
7
15
|
/** Window detection without importing the Window class (avoids an import cycle). */
|
|
8
16
|
export declare function isWindow(v: unknown): v is Window;
|
|
9
17
|
export interface UIEventInit extends EventInit {
|
|
@@ -306,3 +314,4 @@ export declare class ClipboardEvent extends Event {
|
|
|
306
314
|
constructor(type: string, eventInitDict?: ClipboardEventInit | null);
|
|
307
315
|
get clipboardData(): DataTransfer | null;
|
|
308
316
|
}
|
|
317
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Event } from "./Event.js";
|
|
2
|
+
/** Whether an element with tag id `tag` can have activation behavior (the dispatch algorithm's gate). */
|
|
3
|
+
export declare function mayHaveActivationBehavior(tag: number): boolean;
|
|
2
4
|
export interface ActivationTarget {
|
|
3
5
|
readonly _hasActivationBehavior?: boolean;
|
|
4
6
|
_activationBehavior?(event: Event): void;
|
|
@@ -21,12 +21,7 @@ export declare function setPostDispatchHook(fn: ((event: Event, target: EventTar
|
|
|
21
21
|
* https://dom.spec.whatwg.org/#slotable-assigned-slot
|
|
22
22
|
*/
|
|
23
23
|
export declare function setAssignedSlotLookup(fn: ((impl: NodeImpl) => EventTarget | null) | null): void;
|
|
24
|
-
/**
|
|
25
|
-
* "Get the parent" for nodes and shadow roots.
|
|
26
|
-
* https://dom.spec.whatwg.org/#get-the-parent (Node: assigned slot or parent; ShadowRoot:
|
|
27
|
-
* null for non-composed events whose path starts inside it, otherwise its host).
|
|
28
|
-
* `Node._getTheParent` delegates here; Document/Window override it themselves.
|
|
29
|
-
*/
|
|
24
|
+
/** `Node._getTheParent` delegates here (the dispatch algorithm itself inlines it). */
|
|
30
25
|
export declare function nodeGetTheParent(node: NodeLike, event: Event): EventTarget | null;
|
|
31
26
|
/** https://dom.spec.whatwg.org/#retarget */
|
|
32
27
|
export declare function retarget(a: EventTarget | null, b: EventTarget): EventTarget | null;
|
|
@@ -1,32 +1,60 @@
|
|
|
1
1
|
import type { AddEventListenerOptions, EventListenerOptions, EventListenerOrEventListenerObject } from "../webidl.js";
|
|
2
2
|
import type { EventTarget } from "./EventTarget.js";
|
|
3
|
+
export declare const LISTENER_CAPTURE = 1;
|
|
4
|
+
export declare const LISTENER_ONCE = 2;
|
|
5
|
+
export declare const LISTENER_PASSIVE = 4;
|
|
6
|
+
export declare const LISTENER_REMOVED = 8;
|
|
7
|
+
/** A listener's signal and the abort algorithm registered on it, kept so removal can unregister it. */
|
|
8
|
+
declare class AbortBinding {
|
|
9
|
+
signal: AbortSignal;
|
|
10
|
+
onAbort: () => void;
|
|
11
|
+
constructor(signal: AbortSignal, onAbort: () => void);
|
|
12
|
+
}
|
|
13
|
+
/** The seq the next added listener gets: inner invoke stops at listeners at or past it. */
|
|
14
|
+
export declare function listenerSeqLimit(): number;
|
|
15
|
+
/**
|
|
16
|
+
* The booleans pack into `flags` and the signal state lives out of line: a React root holds 142
|
|
17
|
+
* of these and none has a signal.
|
|
18
|
+
*/
|
|
3
19
|
export declare class Listener {
|
|
4
20
|
callback: EventListenerOrEventListenerObject;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
constructor(callback: EventListenerOrEventListenerObject,
|
|
21
|
+
/** LISTENER_* bits. */
|
|
22
|
+
flags: number;
|
|
23
|
+
/** The next listener of the same type on the same target, in insertion order. */
|
|
24
|
+
next: Listener | null;
|
|
25
|
+
seq: number;
|
|
26
|
+
/** Null unless added with a signal. */
|
|
27
|
+
abort: AbortBinding | null;
|
|
28
|
+
constructor(callback: EventListenerOrEventListenerObject, flags: number);
|
|
13
29
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
/**
|
|
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.
|
|
43
|
+
*/
|
|
44
|
+
export type ListenerSlots = (Listener | number | undefined)[];
|
|
45
|
+
/** `type`'s id, or -1 when nothing has ever listened for it (so no target has a listener). */
|
|
46
|
+
export declare function typeIdOf(type: string): number;
|
|
47
|
+
/** The first listener for type id `id` (-1 included) on a target whose slots are `slots`. */
|
|
48
|
+
export declare function firstListener(slots: ListenerSlots, id: number): Listener | undefined;
|
|
21
49
|
/** https://dom.spec.whatwg.org/#concept-flatten-options */
|
|
22
50
|
export declare function flattenCapture(options: boolean | EventListenerOptions | undefined | null): boolean;
|
|
23
51
|
/**
|
|
24
52
|
* https://dom.spec.whatwg.org/#add-an-event-listener
|
|
25
53
|
*
|
|
26
54
|
* The most-called DOM entry point in component suites: React adds 142 listeners to every root
|
|
27
|
-
* container, so each render() in a test makes 142 calls. It
|
|
28
|
-
* Base UI's interaction tests
|
|
29
|
-
* "
|
|
55
|
+
* container, so each render() in a test makes 142 calls. It was our top function by self time in
|
|
56
|
+
* Base UI's interaction tests at 0.2% of their CPU (bench/README.md "Where real suites spend their
|
|
57
|
+
* time") before the type-id layout; `dom/react-root-listeners` replays React's calls.
|
|
30
58
|
*/
|
|
31
59
|
export declare function addEventListener(target: EventTarget, type: string, callback: EventListenerOrEventListenerObject | null | undefined, options: boolean | AddEventListenerOptions | undefined | null): void;
|
|
32
60
|
/** https://dom.spec.whatwg.org/#dom-eventtarget-removeeventlistener */
|
|
@@ -37,3 +65,15 @@ export declare function removeListener(target: EventTarget, type: string, listen
|
|
|
37
65
|
export declare function removeAllEventListeners(target: EventTarget): void;
|
|
38
66
|
/** Whether `target` has at least one listener for `type` (internal fast check for other areas). */
|
|
39
67
|
export declare function hasListeners(target: EventTarget, type: string): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether a detached element is a new element in every way but its event listeners, of which it
|
|
70
|
+
* has `listeners`: no parent, children, attributes, shadow root or mutation observers. For
|
|
71
|
+
* @ctrl/dom/react, which gives such a container to the next render() (packages/react/src/pure.ts).
|
|
72
|
+
* False for another DOM's nodes.
|
|
73
|
+
*/
|
|
74
|
+
export declare function reusableElement(element: EventTarget, listeners: number): boolean;
|
|
75
|
+
/** How many listeners `target` has, over every type. */
|
|
76
|
+
export declare function listenerCount(target: EventTarget): number;
|
|
77
|
+
/** Whether `target` has any listener at all. */
|
|
78
|
+
export declare function hasAnyListener(target: EventTarget): boolean;
|
|
79
|
+
export {};
|
|
@@ -108,8 +108,9 @@ export declare class HTMLEmbedElement extends HTMLElement {
|
|
|
108
108
|
* validation (willValidate false), but setCustomValidity still sets validity.customError.
|
|
109
109
|
*/
|
|
110
110
|
export declare class HTMLObjectElement extends HTMLElement {
|
|
111
|
-
|
|
112
|
-
[$
|
|
111
|
+
/** The custom validity error message; absent while it is the empty string. */
|
|
112
|
+
[$customValidity]?: string;
|
|
113
|
+
[$validity]?: ValidityState | null;
|
|
113
114
|
get contentDocument(): null;
|
|
114
115
|
get contentWindow(): null;
|
|
115
116
|
getSVGDocument(): null;
|
|
@@ -6,9 +6,10 @@ import { LabelsNodeList } from "./collections.js";
|
|
|
6
6
|
import { type ConstraintValidation, type ValidityState } from "./validation.js";
|
|
7
7
|
import { $customValidity, $labels, $validity } from "../../keys.js";
|
|
8
8
|
export declare class HTMLButtonElement extends HTMLElement {
|
|
9
|
-
|
|
10
|
-
[$
|
|
11
|
-
[$
|
|
9
|
+
/** The custom validity error message; absent while it is the empty string. */
|
|
10
|
+
[$customValidity]?: string;
|
|
11
|
+
[$validity]?: ValidityState | null;
|
|
12
|
+
[$labels]?: LabelsNodeList | null;
|
|
12
13
|
/** @internal Use Document.createElement. */
|
|
13
14
|
constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
|
|
14
15
|
/** https://html.spec.whatwg.org/#dom-button-type */
|
|
@@ -5,8 +5,9 @@ import { HTMLCollection } from "../../collections/HTMLCollection.js";
|
|
|
5
5
|
import { type ConstraintValidation, type ValidityState } from "./validation.js";
|
|
6
6
|
import { $customValidity, $elements, $validity } from "../../keys.js";
|
|
7
7
|
export declare class HTMLFieldSetElement extends HTMLElement {
|
|
8
|
-
|
|
9
|
-
[$
|
|
8
|
+
/** The custom validity error message; absent while it is the empty string. */
|
|
9
|
+
[$customValidity]?: string;
|
|
10
|
+
[$validity]?: ValidityState | null;
|
|
10
11
|
[$elements]: HTMLCollection | null;
|
|
11
12
|
/** @internal Use Document.createElement. */
|
|
12
13
|
constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
|
|
@@ -5,8 +5,8 @@ import type { Element } from "../../nodes/Element.js";
|
|
|
5
5
|
import type { Event } from "../../events/Event.js";
|
|
6
6
|
import { LabelsNodeList } from "./collections.js";
|
|
7
7
|
import { FileList } from "../../window/FileList.js";
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
8
|
+
import { $control, $customValidity, $labels, $userValidity, $validity } from "../../keys.js";
|
|
9
|
+
import { ControlState } from "./control-state.js";
|
|
10
10
|
import { type ConstraintValidation, type ValidityState } from "./validation.js";
|
|
11
11
|
/** https://html.spec.whatwg.org/#value-sanitization-algorithm for each type. */
|
|
12
12
|
export declare function sanitizeValue(type: number, value: string, impl: NodeImpl): string;
|
|
@@ -14,43 +14,17 @@ export declare function sanitizeValue(type: number, value: string, impl: NodeImp
|
|
|
14
14
|
export declare function stringToNumber(type: number, s: string): number;
|
|
15
15
|
/** https://html.spec.whatwg.org/#concept-input-value-number-string */
|
|
16
16
|
export declare function numberToString(type: number, n: number): string;
|
|
17
|
-
declare const DIRECTIONS: readonly ["forward", "backward", "none"];
|
|
18
|
-
type SelectionDirection = (typeof DIRECTIONS)[number];
|
|
19
17
|
export declare class HTMLInputElement extends HTMLElement {
|
|
20
|
-
/**
|
|
21
|
-
[$
|
|
22
|
-
/**
|
|
23
|
-
[$
|
|
24
|
-
|
|
25
|
-
[$
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
[$dirtyChecked]: boolean;
|
|
29
|
-
[$indeterminate]: boolean;
|
|
30
|
-
[$files]: FileList | null;
|
|
31
|
-
[$selStart]: number;
|
|
32
|
-
[$selEnd]: number;
|
|
33
|
-
[$selDir]: SelectionDirection;
|
|
34
|
-
[$customValidity]: string;
|
|
35
|
-
[$validity]: ValidityState | null;
|
|
36
|
-
[$labels]: LabelsNodeList | null;
|
|
37
|
-
/** The value was last changed by a user edit (tooLong/tooShort only apply then). */
|
|
38
|
-
[$userEdited]: boolean;
|
|
39
|
-
/** The user typed something the type cannot represent (e.g. "1e" in a number field). */
|
|
40
|
-
[$badInput]: boolean;
|
|
41
|
-
/** User-event's UI value (raw typed text) — null when it equals the value. See ui.ts. */
|
|
42
|
-
[$uiValue]: string | null;
|
|
43
|
-
[$preChecked]: boolean;
|
|
44
|
-
[$preIndeterminate]: boolean;
|
|
45
|
-
[$preCheckedRadio]: NodeImpl | null;
|
|
46
|
-
/** Legacy-pre-activation ran (and changed state) for the current dispatch. */
|
|
47
|
-
[$preApplied]: boolean;
|
|
48
|
-
/** https://html.spec.whatwg.org/#user-validity (forms/user-validity.ts). */
|
|
49
|
-
[$userValidity]: boolean;
|
|
18
|
+
/** Value, checkedness, selection and UI state (./control-state.ts). */
|
|
19
|
+
[$control]: ControlState;
|
|
20
|
+
/** The custom validity error message; absent while it is the empty string. */
|
|
21
|
+
[$customValidity]?: string;
|
|
22
|
+
[$validity]?: ValidityState | null;
|
|
23
|
+
[$labels]?: LabelsNodeList | null;
|
|
24
|
+
/** https://html.spec.whatwg.org/#user-validity (forms/user-validity.ts); absent while false. */
|
|
25
|
+
[$userValidity]?: boolean;
|
|
50
26
|
/** @internal Use Document.createElement. */
|
|
51
27
|
constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
|
|
52
|
-
/** Sets user validity when a `change` event is dispatched at this control (forms/user-validity.ts). */
|
|
53
|
-
_getTheParent(event: Event): EventTarget | null;
|
|
54
28
|
/** https://html.spec.whatwg.org/#dom-input-type */
|
|
55
29
|
get type(): string;
|
|
56
30
|
set type(value: string);
|
|
@@ -180,9 +154,7 @@ export declare class HTMLInputElement extends HTMLElement {
|
|
|
180
154
|
export interface HTMLInputElement extends ConstraintValidation {
|
|
181
155
|
}
|
|
182
156
|
interface SelectionHost {
|
|
183
|
-
[$
|
|
184
|
-
[$selEnd]: number;
|
|
185
|
-
[$selDir]: SelectionDirection;
|
|
157
|
+
[$control]: ControlState;
|
|
186
158
|
_selectionLength(): number;
|
|
187
159
|
}
|
|
188
160
|
/**
|