gesso-core 0.6.19 → 0.6.21

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/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as Mp4AudioTrack, $a as UiDroppedFile, $c as Responsive, $d as editableSpansOf, $f as UiBoxShadow, $g as cubicBezier, $h as colorsEqualPalette, $i as AxisExplanation, $l as UiPropertyName, $m as NodeId, $n as ScrollOffset, $o as scrollbarThumbs, $p as UiPropValue, $r as clickOutside, $s as PaintState, $t as registerFontStack, $u as UiThemeExtensionOptions, A as offsetAtPointIn, Aa as resolveCursor, Ac as TextRunSpan, Ad as UiLayoutChild, Af as UiRadialGradient, Ag as defaultMotion, Ah as UiTextAlign, Ai as propertyValuesEqualByName, Al as ContainerProps, Am as MotionStateInput, An as LABEL_PADDING_X, Ao as overrideSources, Ap as UiModifierEnvironment, Ar as ImageResolver, As as CanvasTextStyle, At as createTextCache, Au as LazyAxis, B as markNow, Ba as touchActionFor, Bc as lineLimit, Bd as UiFontKerning, Bf as UiLength, Bg as transformIsIdentity, Bh as borderRadiusCorners, Bi as parseAlignContent, Bl as PaintProps, Bm as slideFrom, Bn as resolvePropertyByName, Bo as HitTestResult, Bp as UiModifierHost, Br as ZoomState, Bs as layoutTextLines, Bt as isWebGPUAvailable, Bu as VirtualUpdate, C as hasTextLinks, Ca as isNodeFocusable, Cc as SpannedRuns, Cd as UiTypography, Cf as MAX_GRADIENT_STOPS, Cg as UiTweenOptions, Ch as UiObjectFit, Ci as findPropertyDefinition, Cl as UiChildrenBinding, Cm as noKeyModifiers, Cn as LayerCanvasFactory, Co as UiGestureRecognizer, Cp as UiEditingGroup, Cr as IconContext, Cs as syncEditorValue, Ct as RenderList, Cu as SheetRowRenderer, D as setLinkHover, Da as isNodeTabStop, Dc as TextMeasurer, Dd as isTypographyRole, Df as UiGradientOffset, Dg as UiMotion, Dh as UiPosition, Di as propertyEffects, Dl as ButtonProps, Dm as MOTION_REST, Dn as LayoutReader, Do as NodeTransitions, Dp as comparePositions, Dr as iconKey, Ds as detectEditingPlatform, Dt as TEXTURED_STRIDE_FLOATS, Du as UiVirtualSheetOptions, E as linkRunAtPointIn, Ea as isNodeSelectable, Ec as TextMeasureRequest, Ed as defaultTypography, Ef as UiGradient, Eg as UiEasingToken, Eh as UiPointerEvents, Ei as inheritedPropertyNames, El as BoxProps, Em as MOTION_CHANNELS, En as UiRenderer, Eo as FocusNotifier, Ep as adjacentField, Er as IconSpec, Es as commandForKey, Et as TEXTURED_STRIDE_BYTES, Eu as UiVirtualSheet, F as UiFrameCallback, Fa as UiPlatformAdapter, Fc as PlacedLine, Fd as UiVisualStateSet, Ff as validateGradient, Fg as interpolatorFor, Fh as UiVerticalAlign, Fi as placeGridItems, Fl as GridItemProps, Fm as pop, Fn as CanvasSurface, Fo as UiFindController, Fp as assertModifierList, Fr as ShortcutsOptions, Fs as applyCanvasTextStyle, Ft as GlyphSlot, Fu as UiVirtualWindow, G as VttTrack, Ga as TouchScrollerOptions, Gc as graphemeBoundaries, Gd as UiSpannedText, Gf as isFrLength, Gg as colorToRgba, Gh as uniformBorderRadius, Gi as ELLIPSIS, Gl as ScrollViewProps, Gm as LayoutBox, Gn as InsetPaddingArgs, Go as SCROLLBAR_INSET, Gp as ComponentResolver, Gr as ReorderableOptions, Gs as Canvas2DContext, Gt as WebGPURenderer, Gu as videoFrameSize, H as performanceMarksEnabled, Ha as EditingHost, Hc as offsetAtX, Hd as UiFontStyle, Hf as auto, Hg as UiBasicColors, Hh as borderRadiusIsZero, Hi as parseMainAxisAlignment, Hl as PropsOf, Hm as SharedClaim, Hn as ThemeTokenTarget, Ho as UiHitTester, Hp as FocusOptions, Hr as AutoScrollOptions, Hs as runFontString, Ht as CapturedFrame, Hu as lazySource, I as UiScheduler, Ia as capturePointer, Ic as RunMeasure, Id as defaultVisualState, If as AutoLength, Ig as UiTransform, Ih as validateSubgrid, Ii as sizeGridTracks, Il as GridProps, Im as resolveMotionState, In as createCanvasSurface, Io as SelectionControllerOptions, Ip as UiModifier, Ir as contextMenu, Is as buildFontString, It as GlyphUpload, Iu as VIRTUAL_INDEX_PROP, J as ByteSource, Ja as UiDragPayload, Jc as nextGraphemeEnd, Jd as UiTextMetrics, Jf as minmax, Jg as normalizeColor, Jh as UiShapes, Ji as LayoutNotifier, Jl as TextProps, Jm as Size, Jn as publishInset, Jo as ScrollbarAxis, Jp as UiElement, Jr as reorderable, Js as DEFAULT_FONT_SIZE, Jt as WebGPUSurface, Ju as lightTheme, K as cueAt, Ka as UiTouchScroller, Kc as lineEndAt, Kd as UiTextDecoration, Kf as isMinMaxTrack, Kg as colorValuesEqual, Kh as UiShapeExtensions, Ki as layoutParagraph, Kl as StackProps, Km as LayoutResult, Kn as PublishInsetArgs, Ko as SCROLLBAR_MIN_THUMB, Kp as ComponentLikeElement, Kr as dragSource, Kt as WebGPURendererOptions, Ku as UiTheme, L as UiSchedulerOptions, La as isImeKey, Lc as caretRectFor, Ld as hasVisualState, Lf as FrLength, Lg as UiTransforms, Lh as UiBorderRadius, Li as AlignContent, Ll as IdentityProps, Lm as rotateFrom, Ln as resolveBoolean, Lo as SelectionHost, Lp as UiModifierKind, Lr as shortcut, Ls as createCanvasTextStyle, Lt as WebGPUGlyphAtlas, Lu as VIRTUAL_LEAD_PROP, M as paragraphGeometryFrom, Ma as PlatformAdapterOptions, Mc as TextWrap, Md as UiLayoutProtocol, Mf as gradientsEqual, Mg as interpolateColor, Mh as UiTextOverflowValue, Mi as GridItemRequest, Ml as EnvironmentProps, Mm as ResolvedMotionState, Mn as drawOverlayShapes, Mo as writeDeclaredProperty, Mp as UiModifierLayout, Mr as animateLayout, Ms as SpanPaint, Mt as textRuns, Mu as LazyItemRenderer, N as selectionRectsIn, Na as PlatformEventTarget, Nc as spannedRunsFor, Nd as isLayoutProtocol, Nf as linearGradient, Ng as interpolateNumber, Nh as UiTextWrapValue, Ni as GridPlacement, Nl as FlexContainerProps, Nm as fade, Nn as labelOrigin, No as writeOverrideProperty, Np as UiModifierSet, Nr as ContextMenuOptions, Ns as TextLinePlacement, Nt as GlyphShaper, Nu as LazyListOptions, O as ParagraphGeometry, Oa as isSubtreeInert, Oc as TextOverflow, Od as typographyEqual, Of as UiGradientStop, Og as UiSpringSpec, Oh as UiSelfAlignment, Oi as propertyIsInherited, Ol as ColumnProps, Om as MotionChannel, On as RenderChanges, Oo as resetTransitionWarnings, Op as edgeField, Or as DefaultImageResolver, Os as isPrintable, Ot as TextRunDraw, Ou as VIRTUAL_SHEET_PROP, P as wordRangeIn, Pa as PlatformSurface, Pc as CaretRect, Pd as UiVisualState, Pf as radialGradient, Pg as interpolateTransform, Ph as UiThemeColorName, Pi as GridTrack, Pl as FlexItemProps, Pm as isMotionRest, Pn as CanvasHost, Po as FindHost, Pp as UiUnknownModifierPropertyError, Pr as ShortcutOptions, Ps as TextRunRect, Pt as GLYPH_SUBPIXEL_PHASES, Pu as LazySourceArgs, Q as rangeSource, Qa as UiDropZone, Qc as wordRangeAt, Qd as defaultTextStyle, Qf as BOX_SHADOW_BLUR_REACH, Qg as UiEasing, Qh as UiColors, Qi as ScrollAdjustment, Ql as UiProperties, Qm as tightenConstraints, Qn as sizeContainer, Qo as scrollbarThumb, Qp as isUiElement, Qr as ClickOutsideOptions, Qs as PaintBoxShadow, Qt as fontStackFor, Qu as UiThemeExtension, R as MARK_PREFIX, Ra as pointerDeviceOf, Rc as lineIndexAtY, Rd as visualState, Rf as MinMaxTrack, Rg as parseTransform, Rh as UiBorderRadiuses, Ri as CrossAxisAlignment, Rl as InteractionProps, Rm as scaleFrom, Rn as resolveNumber, Ro as UiSelectionController, Rp as defineModifier, Rr as shortcuts, Rs as drawText, Rt as WebGPUTextureCache, Ru as VIRTUAL_WINDOW_PROP, S as clearLinkHover, Sa as UiTimerFrameClockOptions, Sc as ParagraphTextMeasurer, Sd as shadowsEqual, Sf as GradientPaint, Sg as UiTween, Sh as UiGridAutoFlow, Si as closestPropertyName, Sl as ChildrenBindingId, Sm as UiWheelEvent, Sn as traceRoundedRect, So as GestureRecognizerOptions, Sp as textInputOf, Sr as IconCanvas, Ss as nextCaretToggle, St as RenderCommand, Su as SheetRange, T as linkOf, Ta as isNodeInert, Tc as TextLineRun, Td as UiTypographyRole, Tf as ResolvedGradientStop, Tg as UiDurationToken, Th as UiPlacement, Ti as inheritedPropertyFlags, Tl as BoxModelProps, Tm as DirtyNodeSet, Tn as RendererBackend, To as UiPinchRecognizer, Tp as UiTextPosition, Tr as IconRasterizerOptions, Ts as EditingPlatform, Tt as ScissorRect, Tu as SheetViewport, U as setPerformanceMarks, Ua as EditingState, Uc as offsetForVerticalMove, Ud as UiFontVariant, Uf as fr, Ug as UiColor, Uh as borderRadiusValuesEqual, Ui as FlexDirection, Ul as Reactive, Um as UiSharedElements, Un as themeTokens, Uo as UiPoint, Up as FocusSource, Ur as DragSourceOptions, Us as textRunBackgrounds, Ut as DrawStats, Uu as UiVideoSurface, V as measureSpan, Va as EditingControllerOptions, Vc as offsetAtPoint, Vd as UiFontStretch, Vf as UiTrackSize, Vg as transformsEqual, Vh as borderRadiusEqual, Vi as parseCrossAxisAlignment, Vl as PositionProps, Vm as slideUp, Vn as resolveString, Vo as HitTester, Vp as UiModifierTeardown, Vr as pinchable, Vs as runCanvasStyleInto, Vt as WebGPUError, Vu as VirtualViewport, W as VttCue, Wa as UiEditingController, Wc as selectionRects, Wd as UiResolvedTextSpan, Wf as isAutoLength, Wg as colorToHex, Wh as normalizeBorderRadius, Wi as parseFlexDirection, Wl as RowProps, Wm as Constraints, Wn as sameArgs, Wo as SCROLLBAR_HOVER_ZONE, Wp as UiFocusManager, Wr as DropTargetOptions, Ws as textRunDecorations, Wt as RenderHooks, Wu as isVideoSurface, X as RangeSourceOptions, Xa as UiDragState, Xc as previousGraphemeStart, Xd as UiTextSpan, Xf as repeat, Xg as rgb8, Xh as isShapeName, Xi as SCROLLBAR_FADE_MS, Xl as UiEventProps, Xm as clampSize, Xn as SizeContainerArgs, Xo as scrollLeaderOf, Xp as isObservable, Xr as DraggableOptions, Xs as DEFAULT_TEXT_COLOR, Xt as bumpFontStack, Xu as withContrast, Y as DEFAULT_BLOCK_SIZE, Ya as UiDragSession, Yc as nextWordEnd, Yd as UiTextRange, Yf as percent, Yg as parseColor, Yh as defaultShapes, Yi as LayoutEngine, Yl as TypographyProps, Ym as TightenOptions, Yn as BreakpointArgs, Yo as ScrollbarThumb, Yp as isComponentLikeElement, Yr as DragOffset, Ys as DEFAULT_FONT_WEIGHT, Yt as createWebGPUSurface, Yu as themesEqual, Z as bufferSource, Za as UiDropEffect, Zc as previousWordStart, Zd as UiTextStyle, Zf as resolveLength, Zg as rgba, Zh as shapesEqual, Zi as SCROLLBAR_LINGER_MS, Zl as UiNodeRef, Zm as constraintsEqual, Zn as breakpoint, Zo as scrollRange, Zp as isUiChild, Zr as draggable, Zs as ObjectFit, Zt as clearFontStacks, Zu as withDensity, _ as buildSemanticsTree, _a as UiFrameTime, _c as setSelectionRange, _d as scaleSpacing, _f as UiPath, _g as UiAnimation, _h as UiContentDistribution, _i as bundle, _l as UiDefinition, _m as UiPointerEvent, _n as LayoutInspector, _o as UiScrollBehavior, _p as bandOf, _r as IconSourceArgs, _s as editorFor, _t as INSTANCE_STRIDE_FLOATS, _u as EditUnit, a as diffSemantics, aa as RelayoutExplanation, ac as createPaintState, ad as themeExtensionsEqual, af as spansDifferOnlyInPaint, ag as createEnvironmentKey, ah as DecorationFill, ai as borderShapes, al as LazyRow, am as MOUSE_POINTER, an as PaintContext2D, ao as UiShortcutRegistry, ap as UiPropertyDefinition, ar as VideoTransport, as as setMatchRanges, at as Mp3Frame, au as UiLiveRegion, b as semanticsMemory, ba as UiManualFrameClock, bc as FontMetrics, bd as UiShadows, bf as pathValuesEqual, bg as UiSpring, bh as UiFlexWrap, bi as accumulatedOffsetTo, bl as UiGraph, bm as UiTextChangeEvent, bn as Canvas2DRenderer, bo as isScrollContainer, bp as UiTextInput, br as iconSource, bs as isMultiline, bt as PrimitiveCommand, bu as LazySheetProps, c as SemanticsMemory, ca as describeOverrides, cc as normalizeVerticalAlign, cd as UiContrast, cf as textStylesEqual, cg as DirtyFlags, ch as DecorationStroke, ci as focusRing, cl as Column, cm as UiEventType, cn as PaintTarget, co as formatShortcut, cp as UiInsetEdge, cr as DefaultVideoResolverOptions, cs as findMatchesIn, ct as readMp3Header, cu as UiSemanticState, d as SemanticsRewalk, da as labelNode, dc as TEXT_SELECTION_PROP, dd as raiseContrast, df as PaintLineCap, dg as UiTransitionValue, dh as hasDecorationPhase, di as hoverable, dl as Paint, dm as UiInputEvent, dn as PaintOp, do as KeyboardControllerOptions, dp as UiInsets, dr as VideoResolver, ds as UiEnvironmentKeys, dt as Affine, du as isUiSemanticState, e_ as easings, ea as CustomLayoutExplanation, ec as PaintTextSpan, ed as UiThemeExtensions, ef as flattenTextSpans, eg as darkColors, eh as NodeProperty, ei as autoFocus, el as ResponsiveProps, em as UiProps, en as PaintCanvas, eo as UiFileDropMessage, ep as boxShadow, er as ScrollPositionArgs, es as scrollbarZoneAt, et as Mp4Sample, eu as UiPropertyValueOf, f as SemanticsSpan, fa as withOverrideSource, fc as TextRange, fd as relativeLuminance, ff as PaintLineJoin, fg as assertTransitionMap, fh as paintsAfterChildren, fi as interactive, fl as Row, fm as UiKeyModifiers, fn as PaintRecorder, fo as UiKeyboardController, fp as insetsEqual, fr as canDecodeVideo, fs as EnvironmentNotifier, ft as CLIP_STRIDE_BYTES, fu as normalizeStates, g as buildSemanticsSubtree, ga as UiFrameClockFactory, gc as selectionRangeOf, gd as defaultSpacing, gf as UiPaint, gg as AnimatedCell, gh as UiColorValue, gi as UiModifierBundle, gl as createElement, gm as UiPointerDevice, gn as InspectorOverlay, go as ScrollSink, gp as UiContainerSizeSource, gr as sharedElement, gs as caretVisibleAt, gt as INSTANCE_STRIDE_BYTES, gu as CompositionRange, h as UiSemanticsRecord, ha as UiFrameClock, hc as selectableTextOf, hd as UiSpacing, hf as PaintTextStyle, hg as tween, hh as UiBorderRadiusValue, hi as pressable, hl as Text, hm as UiPinchEvent, hn as INSPECTOR_HEAT_MS, ho as ScrollContainerState, hp as UiContainerSize, hr as motion, hs as EDITOR_PROP, ht as GlyphCommand, hu as validateStates, i as UiSemanticsPatch, ia as OverrideSources, ic as computeObjectFitRect, id as themeExtension, if as spannedTextOf, ig as UiEnvironmentKey, ih as UiPropertyOverrides, ii as FocusRingOptions, il as LazyListProps, im as UiListenerErrorReporter, in as paintPictures, io as UiShortcutBinding, ip as boxShadowsEqual, ir as VideoState, is as matchRangesOf, it as Mp3Format, iu as UiAutocomplete, j as paragraphGeometry, ja as CanvasPlatformSurface, jc as TextRunStyle, jd as UiLayoutContext, jf as gradientPaint, jg as UiInterpolator, jh as UiTextDirection, ji as GridContribution, jl as EditableTextProps, jm as MotionTiming, jn as OverlayShape, jo as resetOverrideWarnings, jp as UiModifierFocus, jr as AnimateLayoutOptions, js as PlacedTextRun, jt as glyphCount, ju as LazyGridOptions, k as hasDrawnText, ka as pointerEventsOf, kc as TextRunMeasurer, kd as MAX_MEASURES_PER_CHILD, kf as UiLinearGradient, kg as UiSpringToken, kh as UiSubgridAxis, ki as propertyNarrowers, kl as CommonProps, km as MotionState, kn as RenderContext, ko as clearOverrideProperty, kp as editingGroupOf, kr as DefaultImageResolverOptions, ks as EditableLayout, kt as buildRenderList, ku as sheetSource, l as SemanticsPlacement, la as formatConstraints, lc as resolvePaintState, ld as contrastRatio, lf as PaintBox, lg as AnimationDriver, lh as decorationColor, li as BUTTON_INTERACTION, ll as EditableText, lm as UiFocusEvent, ln as tracePathData, lo as parseShortcut, lp as UiInsetRegistry, lr as RangeResponse, ls as UiEnvironmentProvider, lt as splitMp3Frames, lu as UiSemanticStates, m as UiSemanticsMap, ma as UiAnimationFrameClock, mc as selectableTextNodes, md as densityFactors, mf as PaintTextAlign, mg as spring, mh as UiAlignment, mi as measureFlow, ml as Stack, mm as UiPasteEvent, mn as replayPaint, mo as UiPointerController, mp as observeViewportInsets, mr as SharedElementArgs, ms as CARET_WIDTH, mt as CommandKind, mu as validateRole, n as UiSemanticsBox, n_ as steps, na as LayoutExplanation, nc as VerticalAlign, nd as hasThemeExtension, nf as resolvedSpansOf, ng as LayoutRecord, nh as UiNodeTransitions, ni as BordersOptions, nl as LazyGrid, nm as UiEventListenerOptions, nn as PaintPictureCache, no as ShortcutRegistryOptions, np as boxShadowRadius, nr as VideoClock, ns as TEXT_MATCHES_PROP, nt as demuxMp4Audio, nu as UI_ROLES, o as dropIndexShifts, oa as SizeDecision, oc as isPaintVisible, od as withThemeExtension, of as textContentOf, og as findEnvironmentKey, oh as DecorationRect, oi as borders, ol as Box, om as UiBeforeInputEvent, on as PaintGradient, oo as UiShortcutStep, op as defineProperty, or as videoSource, os as FindMatch, ot as Mp3Frames, ou as UiOrientation, p as TEXT_RUN_ID_SEPARATOR, pa as UiFrame, pc as clearSelectionRange, pd as UiDensity, pf as PaintSurface, pg as normalizeTransition, ph as UI_SUBGRID_AXES, pi as measure, pl as ScrollView, pm as UiKeyboardEvent, pn as PaintRecording, po as PointerControllerOptions, pp as noInsets, pr as MotionArgs, ps as CARET_BLINK_MS, pt as CLIP_STRIDE_FLOATS, pu as statesEqual, q as parseWebVtt, qa as EXTERNAL_FILES, qc as lineStartAt, qd as UiTextLink, qf as isPercentLength, qg as colorsEqual, qh as UiShapeName, qi as proportionalFontMetrics, ql as TextContentProps, qm as LayoutStats, qn as insetPadding, qo as SCROLLBAR_THICKNESS, qp as UiChild, qr as dropTarget, qs as DEFAULT_FONT_FAMILY, qt as WebGPUCanvasHost, qu as darkTheme, r as UiSemanticsUpdate, ra as LayoutStateExplanation, rc as colorToCss, rd as noThemeExtensions, rf as spanAtOffset, rg as UiEnvironment, rh as UiPropertyOverride, ri as Decorations, rl as LazyGridProps, rm as UiInputDispatcher, rn as PaintStats, ro as UiShortcut, rp as boxShadowReach, rr as VideoSourceArgs, rs as clearMatchRanges, rt as demuxMp4Video, ru as UI_SEMANTIC_STATES, s as recordsEqual, sa as describeLength, sc as normalizeTextAlign, sd as HighContrastOptions, sf as textSpansEqual, sg as UiNodeType, sh as DecorationShape, si as decorated, sl as Button, sm as UiCompositionEvent, sn as PaintResolver, so as describeShortcut, sp as propertyValuesEqual, sr as DefaultVideoResolver, ss as FindOptions, st as Mp3Header, su as UiRole, t as UiSemanticsAction, t_ as linear, ta as Edges, tc as TextAlign, td as defineThemeExtension, tf as hiddenRangesOf, tg as lightColors, th as UiNode, ti as BorderEdge, tl as LazyColumn, tm as UiEventListener, tn as PaintCanvasFactory, to as dragSessionFor, tp as boxShadowArraysEqual, tr as scrollPosition, ts as SubtreeBounds, tt as Mp4VideoTrack, tu as UiPropertyValues, u as SemanticsReuse, ua as formatExplanation, uc as DEFAULT_LINE_HEIGHT_FACTOR, ud as highContrastColors, uf as PaintFillRule, ug as UiTransitionSpec, uh as decorationRect, ui as InteractiveOptions, ul as Grid, um as UiGestureEvent, un as EMPTY_RECORDING, uo as shortcutKeyCaps, up as UiInsetSource, ur as VideoPlayback, us as provideEnvironment, ut as WebGPUGlyphPages, uu as isUiRole, v as rewalkSemantics, va as UiHostFrameClock, vc as CharacterCountTextMeasurer, vd as spacingEqual, vf as inputsEqual, vg as UiAnimationOptions, vh as UiCursor, vi as noModifiers, vl as BindingId, vm as UiPointerKind, vn as LayoutInspectorOptions, vo as UiScrollability, vp as containerBands, vr as ImageSourceArgs, vs as editorOf, vt as ImageCommand, vu as EditableTextModel, w as linkHoverOf, wa as isNodeHitTestable, wc as TextLine, wd as UiTypographyExtensions, wf as ResolvedGradient, wg as createTween, wh as UiOverflow, wi as getPropertyNames, wl as UiGraphBuilder, wm as wheelDeltaYOf, wn as ScrollLayerStats, wo as PinchRecognizerOptions, wp as UiGroupEdit, wr as IconRasterizer, ws as EditCommand, wt as RenderTextCache, wu as SheetSourceArgs, x as textRunOfRecordId, xa as UiTimerFrameClock, xc as ParagraphLayout, xd as defaultShadows, xf as UiImage, xg as UiSpringOptions, xh as UiFontWeight, xi as contentOffset, xl as UiEventBinding, xm as UiWheelDeltaMode, xn as Canvas2DRendererOptions, xo as GestureInput, xp as UiTextInputState, xr as imageSource, xs as isReadOnly, xt as PrimitiveKind, xu as SheetHeaderRenderer, y as semanticsInertAbove, ya as UiHostFrameClockOptions, yc as FixedMetricsOptions, yd as spacingSteps, yf as paintValuesEqual, yg as UiReducedMotionPolicy, yh as UiDirection, yi as Transform, yl as UiBinding, ym as UiSelectionChangeEvent, yn as CanvasTextMeasurer, yo as UiWheelController, yp as unknownContainerSize, yr as ImageSources, ys as isEditableNode, yt as NO_CLIP_INDEX, yu as LazySheet, z as markInstant, za as prepareInputSurface, zc as lineIndexForOffset, zd as visualStatesEqual, zf as PercentLength, zg as transform, zh as borderRadius, zi as MainAxisAlignment, zl as PaintElementProps, zm as slideDown, zn as resolveProperty, zo as HitTestLayoutReader, zp as isUiModifier, zr as PinchableOptions, zs as fillTextRects, zt as initializeWebGPU, zu as VirtualItemMeasure } from "./index-8yhrkCnb.js";
1
+ import { $ as Mp4AudioTrack, $a as UiDroppedFile, $c as Text, $d as PaintTextStyle, $f as UiContainerSize, $g as cubicBezier, $h as TextRunSpan, $i as AxisExplanation, $l as validateStates, $m as UiBorderRadiusValue, $n as ScrollOffset, $o as scrollbarThumbs, $p as UiPinchEvent, $r as clickOutside, $s as PaintState, $t as registerFontStack, $u as UiSpacing, A as offsetAtPointIn, Aa as resolveCursor, Ac as lineEndAt, Ad as UiTextDecoration, Af as isMinMaxTrack, Ag as defaultMotion, Ah as UiShapeExtensions, Ai as propertyValuesEqualByName, Al as StackProps, Am as LayoutResult, An as LABEL_PADDING_X, Ao as overrideSources, Ap as ComponentLikeElement, Ar as ImageResolver, As as CanvasTextStyle, At as createTextCache, Au as UiTheme, B as markNow, Ba as touchActionFor, Bc as LazyGrid, Bd as resolvedSpansOf, Bf as boxShadowRadius, Bg as transformIsIdentity, Bh as LayoutRecord, Bi as parseAlignContent, Bl as UI_ROLES, Bm as UiNodeTransitions, Bn as resolvePropertyByName, Bo as HitTestResult, Bp as UiEventListenerOptions, Br as ZoomState, Bs as layoutTextLines, Bt as isWebGPUAvailable, Bu as hasThemeExtension, C as hasTextLinks, Ca as isNodeFocusable, Cc as lineIndexForOffset, Cd as visualStatesEqual, Cf as PercentLength, Cg as UiTweenOptions, Ch as borderRadius, Ci as findPropertyDefinition, Cl as PaintElementProps, Cm as slideDown, Cn as LayerCanvasFactory, Co as UiGestureRecognizer, Cp as isUiModifier, Cr as IconContext, Cs as syncEditorValue, Ct as RenderList, Cu as VirtualItemMeasure, D as setLinkHover, Da as isNodeTabStop, Dc as offsetForVerticalMove, Dd as UiFontVariant, Df as fr, Dg as UiMotion, Dh as borderRadiusValuesEqual, Di as propertyEffects, Dl as Reactive, Dm as UiSharedElements, Dn as LayoutReader, Do as NodeTransitions, Dp as FocusSource, Dr as iconKey, Ds as detectEditingPlatform, Dt as TEXTURED_STRIDE_FLOATS, Du as UiVideoSurface, E as linkRunAtPointIn, Ea as isNodeSelectable, Ec as offsetAtX, Ed as UiFontStyle, Ef as auto, Eg as UiEasingToken, Eh as borderRadiusIsZero, Ei as inheritedPropertyNames, El as PropsOf, Em as SharedClaim, En as UiRenderer, Eo as FocusNotifier, Ep as FocusOptions, Er as IconSpec, Es as commandForKey, Et as TEXTURED_STRIDE_BYTES, Eu as lazySource, F as UiFrameCallback, Fa as UiPlatformAdapter, Fc as previousWordStart, Fd as UiTextStyle, Ff as resolveLength, Fg as interpolatorFor, Fh as shapesEqual, Fi as placeGridItems, Fl as UiNodeRef, Fm as constraintsEqual, Fn as CanvasSurface, Fo as UiFindController, Fp as isUiChild, Fr as ShortcutsOptions, Fs as applyCanvasTextStyle, Ft as GlyphSlot, Fu as withDensity, G as VttTrack, Ga as TouchScrollerOptions, Gc as Button, Gd as textSpansEqual, Gf as propertyValuesEqual, Gg as colorToRgba, Gh as ParagraphTextMeasurer, Gi as ELLIPSIS, Gl as UiRole, Gm as DecorationShape, Gn as InsetPaddingArgs, Go as SCROLLBAR_INSET, Gp as UiCompositionEvent, Gr as ReorderableOptions, Gs as Canvas2DContext, Gt as WebGPURenderer, Gu as HighContrastOptions, H as performanceMarksEnabled, Ha as EditingHost, Hc as LazyListProps, Hd as spannedTextOf, Hf as boxShadowsEqual, Hg as UiBasicColors, Hh as FixedMetricsOptions, Hi as parseMainAxisAlignment, Hl as UiAutocomplete, Hm as UiPropertyOverrides, Hn as ThemeTokenTarget, Ho as UiHitTester, Hp as UiListenerErrorReporter, Hr as AutoScrollOptions, Hs as runFontString, Ht as CapturedFrame, Hu as themeExtension, I as UiScheduler, Ia as capturePointer, Ic as wordRangeAt, Id as defaultTextStyle, If as BOX_SHADOW_BLUR_REACH, Ig as UiTransform, Ih as UiColors, Ii as sizeGridTracks, Il as UiProperties, Im as tightenConstraints, In as createCanvasSurface, Io as SelectionControllerOptions, Ip as isUiElement, Ir as contextMenu, Is as buildFontString, It as GlyphUpload, Iu as UiThemeExtension, J as ByteSource, Ja as UiDragPayload, Jc as Grid, Jd as PaintFillRule, Jf as UiInsetSource, Jg as normalizeColor, Jh as TextLineRun, Ji as LayoutNotifier, Jl as isUiRole, Jm as decorationRect, Jn as publishInset, Jo as ScrollbarAxis, Jp as UiGestureEvent, Jr as reorderable, Js as DEFAULT_FONT_SIZE, Jt as WebGPUSurface, Ju as highContrastColors, K as cueAt, Ka as UiTouchScroller, Kc as Column, Kd as textStylesEqual, Kf as UiInsetEdge, Kg as colorValuesEqual, Kh as SpannedRuns, Ki as layoutParagraph, Kl as UiSemanticState, Km as DecorationStroke, Kn as PublishInsetArgs, Ko as SCROLLBAR_MIN_THUMB, Kp as UiEventType, Kr as dragSource, Kt as WebGPURendererOptions, Ku as UiContrast, L as UiSchedulerOptions, La as isImeKey, Lc as Responsive, Ld as editableSpansOf, Lf as UiBoxShadow, Lg as UiTransforms, Lh as colorsEqualPalette, Li as AlignContent, Ll as UiPropertyName, Lm as NodeId, Ln as resolveBoolean, Lo as SelectionHost, Lp as UiPropValue, Lr as shortcut, Ls as createCanvasTextStyle, Lt as WebGPUGlyphAtlas, Lu as UiThemeExtensionOptions, M as paragraphGeometryFrom, Ma as PlatformAdapterOptions, Mc as nextGraphemeEnd, Md as UiTextMetrics, Mf as minmax, Mg as interpolateColor, Mh as UiShapes, Mi as GridItemRequest, Ml as TextProps, Mm as Size, Mn as drawOverlayShapes, Mo as writeDeclaredProperty, Mp as UiElement, Mr as animateLayout, Ms as SpanPaint, Mt as textRuns, Mu as lightTheme, N as selectionRectsIn, Na as PlatformEventTarget, Nc as nextWordEnd, Nd as UiTextRange, Nf as percent, Ng as interpolateNumber, Nh as defaultShapes, Ni as GridPlacement, Nl as TypographyProps, Nm as TightenOptions, Nn as labelOrigin, No as writeOverrideProperty, Np as isComponentLikeElement, Nr as ContextMenuOptions, Ns as TextLinePlacement, Nt as GlyphShaper, Nu as themesEqual, O as ParagraphGeometry, Oa as isSubtreeInert, Oc as selectionRects, Od as UiResolvedTextSpan, Of as isAutoLength, Og as UiSpringSpec, Oh as normalizeBorderRadius, Oi as propertyIsInherited, Ol as RowProps, Om as Constraints, On as RenderChanges, Oo as resetTransitionWarnings, Op as UiFocusManager, Or as DefaultImageResolver, Os as isPrintable, Ot as TextRunDraw, Ou as isVideoSurface, P as wordRangeIn, Pa as PlatformSurface, Pc as previousGraphemeStart, Pd as UiTextSpan, Pf as repeat, Pg as interpolateTransform, Ph as isShapeName, Pi as GridTrack, Pl as UiEventProps, Pm as clampSize, Pn as CanvasHost, Po as FindHost, Pp as isObservable, Pr as ShortcutOptions, Ps as TextRunRect, Pt as GLYPH_SUBPIXEL_PHASES, Pu as withContrast, Q as rangeSource, Qa as UiDropZone, Qc as Stack, Qd as PaintTextAlign, Qf as observeViewportInsets, Qg as UiEasing, Qh as TextRunMeasurer, Qi as ScrollAdjustment, Ql as validateRole, Qm as UiAlignment, Qn as sizeContainer, Qo as scrollbarThumb, Qp as UiPasteEvent, Qr as ClickOutsideOptions, Qs as PaintBoxShadow, Qt as fontStackFor, Qu as densityFactors, R as MARK_PREFIX, Ra as pointerDeviceOf, Rc as ResponsiveProps, Rd as flattenTextSpans, Rf as boxShadow, Rg as parseTransform, Rh as darkColors, Ri as CrossAxisAlignment, Rl as UiPropertyValueOf, Rm as NodeProperty, Rn as resolveNumber, Ro as UiSelectionController, Rp as UiProps, Rr as shortcuts, Rs as drawText, Rt as WebGPUTextureCache, Ru as UiThemeExtensions, S as clearLinkHover, Sa as UiTimerFrameClockOptions, Sc as lineIndexAtY, Sd as visualState, Sf as MinMaxTrack, Sg as UiTween, Sh as UiBorderRadiuses, Si as closestPropertyName, Sl as InteractionProps, Sm as scaleFrom, Sn as traceRoundedRect, So as GestureRecognizerOptions, Sp as defineModifier, Sr as IconCanvas, Ss as nextCaretToggle, St as RenderCommand, Su as VIRTUAL_WINDOW_PROP, T as linkOf, Ta as isNodeInert, Tc as offsetAtPoint, Td as UiFontStretch, Tf as UiTrackSize, Tg as UiDurationToken, Th as borderRadiusEqual, Ti as inheritedPropertyFlags, Tl as PositionProps, Tm as slideUp, Tn as RendererBackend, To as UiPinchRecognizer, Tp as UiModifierTeardown, Tr as IconRasterizerOptions, Ts as EditingPlatform, Tt as ScissorRect, Tu as VirtualViewport, U as setPerformanceMarks, Ua as EditingState, Uc as LazyRow, Ud as spansDifferOnlyInPaint, Uf as UiPropertyDefinition, Ug as UiColor, Uh as FontMetrics, Ui as FlexDirection, Ul as UiLiveRegion, Um as DecorationFill, Un as themeTokens, Uo as UiPoint, Up as MOUSE_POINTER, Ur as DragSourceOptions, Us as textRunBackgrounds, Ut as DrawStats, Uu as themeExtensionsEqual, V as measureSpan, Va as EditingControllerOptions, Vc as LazyGridProps, Vd as spanAtOffset, Vf as boxShadowReach, Vg as transformsEqual, Vh as CharacterCountTextMeasurer, Vi as parseCrossAxisAlignment, Vl as UI_SEMANTIC_STATES, Vm as UiPropertyOverride, Vn as resolveString, Vo as HitTester, Vp as UiInputDispatcher, Vr as pinchable, Vs as runCanvasStyleInto, Vt as WebGPUError, Vu as noThemeExtensions, W as VttCue, Wa as UiEditingController, Wc as Box, Wd as textContentOf, Wf as defineProperty, Wg as colorToHex, Wh as ParagraphLayout, Wi as parseFlexDirection, Wl as UiOrientation, Wm as DecorationRect, Wn as sameArgs, Wo as SCROLLBAR_HOVER_ZONE, Wp as UiBeforeInputEvent, Wr as DropTargetOptions, Ws as textRunDecorations, Wt as RenderHooks, Wu as withThemeExtension, X as RangeSourceOptions, Xa as UiDragState, Xc as Row, Xd as PaintLineJoin, Xf as insetsEqual, Xg as rgb8, Xh as TextMeasurer, Xi as SCROLLBAR_FADE_MS, Xl as normalizeStates, Xm as paintsAfterChildren, Xn as SizeContainerArgs, Xo as scrollLeaderOf, Xp as UiKeyModifiers, Xr as DraggableOptions, Xs as DEFAULT_TEXT_COLOR, Xt as bumpFontStack, Xu as relativeLuminance, Y as DEFAULT_BLOCK_SIZE, Ya as UiDragSession, Yc as Paint, Yd as PaintLineCap, Yf as UiInsets, Yg as parseColor, Yh as TextMeasureRequest, Yi as LayoutEngine, Yl as isUiSemanticState, Ym as hasDecorationPhase, Yn as BreakpointArgs, Yo as ScrollbarThumb, Yp as UiInputEvent, Yr as DragOffset, Ys as DEFAULT_FONT_WEIGHT, Yt as createWebGPUSurface, Yu as raiseContrast, Z as bufferSource, Za as UiDropEffect, Zc as ScrollView, Zd as PaintSurface, Zf as noInsets, Zg as rgba, Zh as TextOverflow, Zi as SCROLLBAR_LINGER_MS, Zl as statesEqual, Zm as UI_SUBGRID_AXES, Zn as breakpoint, Zo as scrollRange, Zp as UiKeyboardEvent, Zr as draggable, Zs as ObjectFit, Zt as clearFontStacks, Zu as UiDensity, _ as buildSemanticsTree, _a as UiFrameTime, _c as setSelectionRange, _d as isLayoutProtocol, _f as linearGradient, _g as UiAnimation, _h as UiTextWrapValue, _i as bundle, _l as FlexContainerProps, _m as fade, _n as LayoutInspector, _o as UiScrollBehavior, _p as UiModifierSet, _r as IconSourceArgs, _s as editorFor, _t as INSTANCE_STRIDE_FLOATS, _u as LazyListOptions, a as diffSemantics, aa as RelayoutExplanation, ac as createPaintState, ad as defaultShadows, af as UiImage, ag as createEnvironmentKey, ah as UiFontWeight, ai as borderShapes, al as UiEventBinding, am as UiWheelDeltaMode, an as PaintContext2D, ao as UiShortcutRegistry, ap as UiTextInputState, ar as VideoTransport, as as setMatchRanges, at as Mp3Frame, au as SheetHeaderRenderer, b as semanticsMemory, ba as UiManualFrameClock, bc as RunMeasure, bd as defaultVisualState, bf as AutoLength, bg as UiSpring, bh as validateSubgrid, bi as accumulatedOffsetTo, bl as GridProps, bm as resolveMotionState, bn as Canvas2DRenderer, bo as isScrollContainer, bp as UiModifier, br as iconSource, bs as isMultiline, bt as PrimitiveCommand, bu as VIRTUAL_INDEX_PROP, c as SemanticsMemory, ca as describeOverrides, cc as normalizeVerticalAlign, cd as UiTypographyExtensions, cf as ResolvedGradient, cg as DirtyFlags, ch as UiOverflow, ci as focusRing, cl as UiGraphBuilder, cm as wheelDeltaYOf, cn as PaintTarget, co as formatShortcut, cp as UiGroupEdit, cr as DefaultVideoResolverOptions, cs as findMatchesIn, ct as readMp3Header, cu as SheetSourceArgs, d as SemanticsRewalk, da as labelNode, dc as TEXT_SELECTION_PROP, dd as isTypographyRole, df as UiGradientOffset, dg as UiTransitionValue, dh as UiPosition, di as hoverable, dl as ButtonProps, dm as MOTION_REST, dn as PaintOp, do as KeyboardControllerOptions, dp as comparePositions, dr as VideoResolver, ds as UiEnvironmentKeys, dt as Affine, du as UiVirtualSheetOptions, e_ as easings, ea as CustomLayoutExplanation, ec as PaintTextSpan, ed as defaultSpacing, ef as UiPaint, eg as TextRunStyle, eh as UiColorValue, ei as autoFocus, el as createElement, em as UiPointerDevice, en as PaintCanvas, eo as UiFileDropMessage, ep as UiContainerSizeSource, er as ScrollPositionArgs, es as scrollbarZoneAt, et as Mp4Sample, eu as CompositionRange, f as SemanticsSpan, fa as withOverrideSource, fc as TextRange, fd as typographyEqual, ff as UiGradientStop, fg as assertTransitionMap, fh as UiSelfAlignment, fi as interactive, fl as ColumnProps, fm as MotionChannel, fn as PaintRecorder, fo as UiKeyboardController, fp as edgeField, fr as canDecodeVideo, fs as EnvironmentNotifier, ft as CLIP_STRIDE_BYTES, fu as VIRTUAL_SHEET_PROP, g as buildSemanticsSubtree, ga as UiFrameClockFactory, gc as selectionRangeOf, gd as UiLayoutProtocol, gf as gradientsEqual, gg as AnimatedCell, gh as UiTextOverflowValue, gi as UiModifierBundle, gl as EnvironmentProps, gm as ResolvedMotionState, gn as InspectorOverlay, go as ScrollSink, gp as UiModifierLayout, gr as sharedElement, gs as caretVisibleAt, gt as INSTANCE_STRIDE_BYTES, gu as LazyItemRenderer, h as UiSemanticsRecord, ha as UiFrameClock, hc as selectableTextOf, hd as UiLayoutContext, hf as gradientPaint, hg as tween, hh as UiTextDirection, hi as pressable, hl as EditableTextProps, hm as MotionTiming, hn as INSPECTOR_HEAT_MS, ho as ScrollContainerState, hp as UiModifierFocus, hr as motion, hs as EDITOR_PROP, ht as GlyphCommand, hu as LazyGridOptions, i as UiSemanticsPatch, ia as OverrideSources, ic as computeObjectFitRect, id as UiShadows, if as pathValuesEqual, ig as UiEnvironmentKey, ih as UiFlexWrap, ii as FocusRingOptions, il as UiGraph, im as UiTextChangeEvent, in as paintPictures, io as UiShortcutBinding, ip as UiTextInput, ir as VideoState, is as matchRangesOf, it as Mp3Format, iu as LazySheetProps, j as paragraphGeometry, ja as CanvasPlatformSurface, jc as lineStartAt, jd as UiTextLink, jf as isPercentLength, jg as UiInterpolator, jh as UiShapeName, ji as GridContribution, jl as TextContentProps, jm as LayoutStats, jn as OverlayShape, jo as resetOverrideWarnings, jp as UiChild, jr as AnimateLayoutOptions, js as PlacedTextRun, jt as glyphCount, ju as darkTheme, k as hasDrawnText, ka as pointerEventsOf, kc as graphemeBoundaries, kd as UiSpannedText, kf as isFrLength, kg as UiSpringToken, kh as uniformBorderRadius, ki as propertyNarrowers, kl as ScrollViewProps, km as LayoutBox, kn as RenderContext, ko as clearOverrideProperty, kp as ComponentResolver, kr as DefaultImageResolverOptions, ks as EditableLayout, kt as buildRenderList, ku as videoFrameSize, l as SemanticsPlacement, la as formatConstraints, lc as resolvePaintState, ld as UiTypographyRole, lf as ResolvedGradientStop, lg as AnimationDriver, lh as UiPlacement, li as BUTTON_INTERACTION, ll as BoxModelProps, lm as DirtyNodeSet, ln as tracePathData, lo as parseShortcut, lp as UiTextPosition, lr as RangeResponse, ls as UiEnvironmentProvider, lt as splitMp3Frames, lu as SheetViewport, m as UiSemanticsMap, ma as UiAnimationFrameClock, mc as selectableTextNodes, md as UiLayoutChild, mf as UiRadialGradient, mg as spring, mh as UiTextAlign, mi as measureFlow, ml as ContainerProps, mm as MotionStateInput, mn as replayPaint, mo as UiPointerController, mp as UiModifierEnvironment, mr as SharedElementArgs, ms as CARET_WIDTH, mt as CommandKind, mu as LazyAxis, n as UiSemanticsBox, n_ as steps, na as LayoutExplanation, nc as VerticalAlign, nd as spacingEqual, nf as inputsEqual, ng as spannedRunsFor, nh as UiCursor, ni as BordersOptions, nl as BindingId, nm as UiPointerKind, nn as PaintPictureCache, no as ShortcutRegistryOptions, np as containerBands, nr as VideoClock, ns as TEXT_MATCHES_PROP, nt as demuxMp4Audio, nu as EditableTextModel, o as dropIndexShifts, oa as SizeDecision, oc as isPaintVisible, od as shadowsEqual, of as GradientPaint, og as findEnvironmentKey, oh as UiGridAutoFlow, oi as borders, ol as ChildrenBindingId, om as UiWheelEvent, on as PaintGradient, oo as UiShortcutStep, op as textInputOf, or as videoSource, os as FindMatch, ot as Mp3Frames, ou as SheetRange, p as TEXT_RUN_ID_SEPARATOR, pa as UiFrame, pc as clearSelectionRange, pd as MAX_MEASURES_PER_CHILD, pf as UiLinearGradient, pg as normalizeTransition, ph as UiSubgridAxis, pi as measure, pl as CommonProps, pm as MotionState, pn as PaintRecording, po as PointerControllerOptions, pp as editingGroupOf, pr as MotionArgs, ps as CARET_BLINK_MS, pt as CLIP_STRIDE_FLOATS, pu as sheetSource, q as parseWebVtt, qa as EXTERNAL_FILES, qc as EditableText, qd as PaintBox, qf as UiInsetRegistry, qg as colorsEqual, qh as TextLine, qi as proportionalFontMetrics, ql as UiSemanticStates, qm as decorationColor, qn as insetPadding, qo as SCROLLBAR_THICKNESS, qp as UiFocusEvent, qr as dropTarget, qs as DEFAULT_FONT_FAMILY, qt as WebGPUCanvasHost, qu as contrastRatio, r as UiSemanticsUpdate, ra as LayoutStateExplanation, rc as colorToCss, rd as spacingSteps, rf as paintValuesEqual, rg as UiEnvironment, rh as UiDirection, ri as Decorations, rl as UiBinding, rm as UiSelectionChangeEvent, rn as PaintStats, ro as UiShortcut, rp as unknownContainerSize, rr as VideoSourceArgs, rs as clearMatchRanges, rt as demuxMp4Video, ru as LazySheet, s as recordsEqual, sa as describeLength, sc as normalizeTextAlign, sd as UiTypography, sf as MAX_GRADIENT_STOPS, sg as UiNodeType, sh as UiObjectFit, si as decorated, sl as UiChildrenBinding, sm as noKeyModifiers, sn as PaintResolver, so as describeShortcut, sp as UiEditingGroup, sr as DefaultVideoResolver, ss as FindOptions, st as Mp3Header, su as SheetRowRenderer, t as UiSemanticsAction, t_ as linear, ta as Edges, tc as TextAlign, td as scaleSpacing, tf as UiPath, tg as TextWrap, th as UiContentDistribution, ti as BorderEdge, tl as UiDefinition, tm as UiPointerEvent, tn as PaintCanvasFactory, to as dragSessionFor, tp as bandOf, tr as scrollPosition, ts as SubtreeBounds, tt as Mp4VideoTrack, tu as EditUnit, u as SemanticsReuse, ua as formatExplanation, uc as DEFAULT_LINE_HEIGHT_FACTOR, ud as defaultTypography, uf as UiGradient, ug as UiTransitionSpec, uh as UiPointerEvents, ui as InteractiveOptions, ul as BoxProps, um as MOTION_CHANNELS, un as EMPTY_RECORDING, uo as shortcutKeyCaps, up as adjacentField, ur as VideoPlayback, us as provideEnvironment, ut as WebGPUGlyphPages, uu as UiVirtualSheet, v as rewalkSemantics, va as UiHostFrameClock, vc as CaretRect, vd as UiVisualState, vf as radialGradient, vg as UiAnimationOptions, vh as UiThemeColorName, vi as noModifiers, vl as FlexItemProps, vm as isMotionRest, vn as LayoutInspectorOptions, vo as UiScrollability, vp as UiUnknownModifierPropertyError, vr as ImageSourceArgs, vs as editorOf, vt as ImageCommand, vu as LazySourceArgs, w as linkHoverOf, wa as isNodeHitTestable, wc as lineLimit, wd as UiFontKerning, wf as UiLength, wg as createTween, wh as borderRadiusCorners, wi as getPropertyNames, wl as PaintProps, wm as slideFrom, wn as ScrollLayerStats, wo as PinchRecognizerOptions, wp as UiModifierHost, wr as IconRasterizer, ws as EditCommand, wt as RenderTextCache, wu as VirtualUpdate, x as textRunOfRecordId, xa as UiTimerFrameClock, xc as caretRectFor, xd as hasVisualState, xf as FrLength, xg as UiSpringOptions, xh as UiBorderRadius, xi as contentOffset, xl as IdentityProps, xm as rotateFrom, xn as Canvas2DRendererOptions, xo as GestureInput, xp as UiModifierKind, xr as imageSource, xs as isReadOnly, xt as PrimitiveKind, xu as VIRTUAL_LEAD_PROP, y as semanticsInertAbove, ya as UiHostFrameClockOptions, yc as PlacedLine, yd as UiVisualStateSet, yf as validateGradient, yg as UiReducedMotionPolicy, yh as UiVerticalAlign, yi as Transform, yl as GridItemProps, ym as pop, yn as CanvasTextMeasurer, yo as UiWheelController, yp as assertModifierList, yr as ImageSources, ys as isEditableNode, yt as NO_CLIP_INDEX, yu as UiVirtualWindow, z as markInstant, za as prepareInputSurface, zc as LazyColumn, zd as hiddenRangesOf, zf as boxShadowArraysEqual, zg as transform, zh as lightColors, zi as MainAxisAlignment, zl as UiPropertyValues, zm as UiNode, zn as resolveProperty, zo as HitTestLayoutReader, zp as UiEventListener, zr as PinchableOptions, zs as fillTextRects, zt as initializeWebGPU, zu as defineThemeExtension } from "./index-DR8HAfh3.js";
2
2
  export { type Affine, AlignContent, type AnimateLayoutOptions, type AnimatedCell, AnimationDriver, type AutoLength, type AutoScrollOptions, type AxisExplanation, BOX_SHADOW_BLUR_REACH, BUTTON_INTERACTION, type BindingId, type BorderEdge, type BordersOptions, Box, type BoxModelProps, type BoxProps, type BreakpointArgs, Button, type ButtonProps, type ByteSource, CARET_BLINK_MS, CARET_WIDTH, CLIP_STRIDE_BYTES, CLIP_STRIDE_FLOATS, type Canvas2DContext, Canvas2DRenderer, type Canvas2DRendererOptions, type CanvasHost, CanvasPlatformSurface, CanvasSurface, CanvasTextMeasurer, type CanvasTextStyle, type CapturedFrame, type CaretRect, CharacterCountTextMeasurer, type ChildrenBindingId, type ClickOutsideOptions, Column, type ColumnProps, CommandKind, type CommonProps, type ComponentLikeElement, type ComponentResolver, type CompositionRange, Constraints, type ContainerProps, type ContextMenuOptions, CrossAxisAlignment, type CustomLayoutExplanation, DEFAULT_BLOCK_SIZE, DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE, DEFAULT_FONT_WEIGHT, DEFAULT_LINE_HEIGHT_FACTOR, DEFAULT_TEXT_COLOR, type DecorationFill, type DecorationRect, type DecorationShape, type DecorationStroke, type Decorations, DefaultImageResolver, type DefaultImageResolverOptions, DefaultVideoResolver, type DefaultVideoResolverOptions, DirtyFlags, DirtyNodeSet, type DragOffset, type DragSourceOptions, type DraggableOptions, type DrawStats, type DropTargetOptions, EDITOR_PROP, ELLIPSIS, EMPTY_RECORDING, EXTERNAL_FILES, type Edges, type EditCommand, type EditUnit, EditableLayout, EditableText, EditableTextModel, type EditableTextProps, type EditingControllerOptions, type EditingHost, type EditingPlatform, type EditingState, EnvironmentNotifier, type EnvironmentProps, type FindHost, type FindMatch, type FindOptions, type FixedMetricsOptions, type FlexContainerProps, FlexDirection, type FlexItemProps, FocusNotifier, type FocusOptions, type FocusRingOptions, type FocusSource, type FontMetrics, type FrLength, GLYPH_SUBPIXEL_PHASES, type GestureInput, type GestureRecognizerOptions, type GlyphCommand, GlyphShaper, type GlyphSlot, type GlyphUpload, GradientPaint, Grid, type GridContribution, type GridItemProps, type GridItemRequest, type GridPlacement, type GridProps, type GridTrack, HighContrastOptions, type HitTestLayoutReader, type HitTestResult, type HitTester, INSPECTOR_HEAT_MS, INSTANCE_STRIDE_BYTES, INSTANCE_STRIDE_FLOATS, type IconCanvas, type IconContext, IconRasterizer, type IconRasterizerOptions, type IconSourceArgs, type IconSpec, type IdentityProps, type ImageCommand, type ImageResolver, type ImageSourceArgs, type ImageSources, type InsetPaddingArgs, type InspectorOverlay, type InteractionProps, type InteractiveOptions, type KeyboardControllerOptions, LABEL_PADDING_X, type LayerCanvasFactory, type LayoutBox, LayoutEngine, type LayoutExplanation, LayoutInspector, type LayoutInspectorOptions, LayoutNotifier, type LayoutReader, LayoutRecord, type LayoutResult, type LayoutStateExplanation, type LayoutStats, type LazyAxis, LazyColumn, LazyGrid, type LazyGridOptions, type LazyGridProps, type LazyItemRenderer, type LazyListOptions, type LazyListProps, LazyRow, LazySheet, type LazySheetProps, type LazySourceArgs, MARK_PREFIX, MAX_GRADIENT_STOPS, MAX_MEASURES_PER_CHILD, MOTION_CHANNELS, MOTION_REST, MOUSE_POINTER, MainAxisAlignment, type MinMaxTrack, type MotionArgs, type MotionChannel, type MotionState, type MotionStateInput, type MotionTiming, type Mp3Format, type Mp3Frame, Mp3Frames, type Mp3Header, type Mp4AudioTrack, type Mp4Sample, type Mp4VideoTrack, NO_CLIP_INDEX, type NodeId, type NodeProperty, NodeTransitions, type ObjectFit, type OverlayShape, type OverrideSources, Paint, type PaintBox, type PaintBoxShadow, type PaintCanvas, type PaintCanvasFactory, type PaintContext2D, type PaintElementProps, type PaintFillRule, type PaintGradient, type PaintLineCap, type PaintLineJoin, type PaintOp, PaintPictureCache, type PaintProps, PaintRecorder, type PaintRecording, type PaintResolver, type PaintState, type PaintStats, type PaintSurface, PaintTarget, type PaintTextAlign, type PaintTextSpan, type PaintTextStyle, type ParagraphGeometry, type ParagraphLayout, ParagraphTextMeasurer, type PercentLength, type PinchRecognizerOptions, type PinchableOptions, type PlacedLine, type PlacedTextRun, type PlatformAdapterOptions, type PlatformEventTarget, type PlatformSurface, type PointerControllerOptions, type PositionProps, type PrimitiveCommand, PrimitiveKind, type PropsOf, type PublishInsetArgs, type RangeResponse, type RangeSourceOptions, type Reactive, type RelayoutExplanation, type RenderChanges, type RenderCommand, type RenderContext, type RenderHooks, type RenderList, type RenderTextCache, type RendererBackend, type ReorderableOptions, ResolvedGradient, ResolvedGradientStop, type ResolvedMotionState, Responsive, type ResponsiveProps, Row, type RowProps, type RunMeasure, SCROLLBAR_FADE_MS, SCROLLBAR_HOVER_ZONE, SCROLLBAR_INSET, SCROLLBAR_LINGER_MS, SCROLLBAR_MIN_THUMB, SCROLLBAR_THICKNESS, type ScissorRect, type ScrollAdjustment, type ScrollContainerState, type ScrollLayerStats, type ScrollOffset, type ScrollPositionArgs, type ScrollSink, ScrollView, type ScrollViewProps, type ScrollbarAxis, type ScrollbarThumb, type SelectionControllerOptions, type SelectionHost, type SemanticsMemory, type SemanticsPlacement, type SemanticsReuse, type SemanticsRewalk, type SemanticsSpan, type SharedClaim, type SharedElementArgs, type SheetHeaderRenderer, type SheetRange, type SheetRowRenderer, type SheetSourceArgs, type SheetViewport, type ShortcutOptions, type ShortcutRegistryOptions, type ShortcutsOptions, type Size, type SizeContainerArgs, type SizeDecision, type SpanPaint, type SpannedRuns, Stack, type StackProps, type SubtreeBounds, TEXTURED_STRIDE_BYTES, TEXTURED_STRIDE_FLOATS, TEXT_MATCHES_PROP, TEXT_RUN_ID_SEPARATOR, TEXT_SELECTION_PROP, Text, type TextAlign, type TextContentProps, type TextLine, type TextLinePlacement, type TextLineRun, type TextMeasureRequest, type TextMeasurer, type TextOverflow, type TextProps, type TextRange, type TextRunDraw, type TextRunMeasurer, type TextRunRect, type TextRunSpan, type TextRunStyle, type TextWrap, type ThemeTokenTarget, type TightenOptions, type TouchScrollerOptions, type Transform, type TypographyProps, UI_ROLES, UI_SEMANTIC_STATES, UI_SUBGRID_AXES, UiAlignment, UiAnimation, UiAnimationFrameClock, type UiAnimationOptions, UiAutocomplete, UiBasicColors, UiBeforeInputEvent, UiBinding, UiBorderRadius, UiBorderRadiusValue, UiBorderRadiuses, UiBoxShadow, type UiChild, UiChildrenBinding, UiColor, UiColorValue, UiColors, UiCompositionEvent, UiContainerSize, UiContainerSizeSource, UiContentDistribution, UiContrast, UiCursor, type UiDefinition, UiDensity, UiDirection, type UiDragPayload, UiDragSession, type UiDragState, type UiDropEffect, type UiDropZone, type UiDroppedFile, UiDurationToken, type UiEasing, UiEasingToken, UiEditingController, type UiEditingGroup, type UiElement, UiEnvironment, UiEnvironmentKey, UiEnvironmentKeys, UiEnvironmentProvider, UiEventBinding, type UiEventListener, type UiEventListenerOptions, type UiEventProps, UiEventType, type UiFileDropMessage, UiFindController, UiFlexWrap, UiFocusEvent, UiFocusManager, UiFontKerning, UiFontStretch, UiFontStyle, UiFontVariant, UiFontWeight, UiFrame, type UiFrameCallback, type UiFrameClock, type UiFrameClockFactory, type UiFrameTime, UiGestureEvent, UiGestureRecognizer, UiGradient, UiGradientOffset, UiGradientStop, UiGraph, UiGraphBuilder, UiGridAutoFlow, type UiGroupEdit, UiHitTester, UiHostFrameClock, type UiHostFrameClockOptions, type UiImage, UiInputDispatcher, UiInputEvent, UiInsetEdge, UiInsetRegistry, UiInsetSource, UiInsets, type UiInterpolator, type UiKeyModifiers, UiKeyboardController, UiKeyboardEvent, type UiLayoutChild, type UiLayoutContext, type UiLayoutProtocol, type UiLength, UiLinearGradient, type UiListenerErrorReporter, UiLiveRegion, UiManualFrameClock, type UiModifier, type UiModifierBundle, type UiModifierEnvironment, type UiModifierFocus, type UiModifierHost, type UiModifierKind, type UiModifierLayout, UiModifierSet, type UiModifierTeardown, UiMotion, UiNode, type UiNodeRef, type UiNodeTransitions, UiNodeType, UiObjectFit, UiOrientation, UiOverflow, type UiPaint, UiPasteEvent, type UiPath, UiPinchEvent, UiPinchRecognizer, UiPlacement, UiPlatformAdapter, type UiPoint, UiPointerController, type UiPointerDevice, UiPointerEvent, UiPointerEvents, type UiPointerKind, UiPosition, type UiPropValue, UiProperties, UiPropertyDefinition, UiPropertyName, type UiPropertyOverride, type UiPropertyOverrides, UiPropertyValueOf, UiPropertyValues, type UiProps, UiRadialGradient, type UiReducedMotionPolicy, type UiRenderer, UiResolvedTextSpan, UiRole, UiScheduler, type UiSchedulerOptions, type UiScrollBehavior, type UiScrollability, UiSelectionChangeEvent, UiSelectionController, UiSelfAlignment, UiSemanticState, UiSemanticStates, type UiSemanticsAction, type UiSemanticsBox, type UiSemanticsMap, type UiSemanticsPatch, type UiSemanticsRecord, type UiSemanticsUpdate, UiShadows, UiShapeExtensions, UiShapeName, UiShapes, UiSharedElements, type UiShortcut, type UiShortcutBinding, UiShortcutRegistry, type UiShortcutStep, UiSpacing, UiSpannedText, UiSpring, type UiSpringOptions, UiSpringSpec, UiSpringToken, UiSubgridAxis, UiTextAlign, UiTextChangeEvent, UiTextDecoration, UiTextDirection, type UiTextInput, type UiTextInputState, UiTextLink, UiTextMetrics, UiTextOverflowValue, type UiTextPosition, UiTextRange, UiTextSpan, UiTextStyle, UiTextWrapValue, UiTheme, UiThemeColorName, UiThemeExtension, UiThemeExtensionOptions, UiThemeExtensions, UiTimerFrameClock, type UiTimerFrameClockOptions, UiTouchScroller, type UiTrackSize, UiTransform, UiTransforms, type UiTransitionSpec, type UiTransitionValue, UiTween, type UiTweenOptions, UiTypography, UiTypographyExtensions, UiTypographyRole, UiUnknownModifierPropertyError, UiVerticalAlign, type UiVideoSurface, UiVirtualSheet, type UiVirtualSheetOptions, UiVirtualWindow, UiVisualState, UiVisualStateSet, UiWheelController, UiWheelDeltaMode, UiWheelEvent, VIRTUAL_INDEX_PROP, VIRTUAL_LEAD_PROP, VIRTUAL_SHEET_PROP, VIRTUAL_WINDOW_PROP, type VerticalAlign, type VideoClock, type VideoPlayback, type VideoResolver, type VideoSourceArgs, type VideoState, type VideoTransport, type VirtualItemMeasure, type VirtualUpdate, type VirtualViewport, type VttCue, type VttTrack, type WebGPUCanvasHost, WebGPUError, WebGPUGlyphAtlas, WebGPUGlyphPages, WebGPURenderer, type WebGPURendererOptions, WebGPUSurface, WebGPUTextureCache, type ZoomState, accumulatedOffsetTo, adjacentField, animateLayout, applyCanvasTextStyle, assertModifierList, assertTransitionMap, auto, autoFocus, bandOf, borderRadius, borderRadiusCorners, borderRadiusEqual, borderRadiusIsZero, borderRadiusValuesEqual, borderShapes, borders, boxShadow, boxShadowArraysEqual, boxShadowRadius, boxShadowReach, boxShadowsEqual, breakpoint, bufferSource, buildFontString, buildRenderList, buildSemanticsSubtree, buildSemanticsTree, bumpFontStack, bundle, canDecodeVideo, capturePointer, caretRectFor, caretVisibleAt, clampSize, clearFontStacks, clearLinkHover, clearMatchRanges, clearOverrideProperty, clearSelectionRange, clickOutside, closestPropertyName, colorToCss, colorToHex, colorToRgba, colorValuesEqual, colorsEqual, colorsEqualPalette, commandForKey, comparePositions, computeObjectFitRect, constraintsEqual, containerBands, contentOffset, contextMenu, contrastRatio, createCanvasSurface, createCanvasTextStyle, createElement, createEnvironmentKey, createPaintState, createTextCache, createTween, createWebGPUSurface, cubicBezier, cueAt, darkColors, darkTheme, decorated, decorationColor, decorationRect, defaultMotion, defaultShadows, defaultShapes, defaultSpacing, defaultTextStyle, defaultTypography, defaultVisualState, defineModifier, defineProperty, defineThemeExtension, demuxMp4Audio, demuxMp4Video, densityFactors, describeLength, describeOverrides, describeShortcut, detectEditingPlatform, diffSemantics, dragSessionFor, dragSource, draggable, drawOverlayShapes, drawText, dropIndexShifts, dropTarget, easings, edgeField, editableSpansOf, editingGroupOf, editorFor, editorOf, fade, fillTextRects, findEnvironmentKey, findMatchesIn, findPropertyDefinition, flattenTextSpans, focusRing, fontStackFor, formatConstraints, formatExplanation, formatShortcut, fr, getPropertyNames, glyphCount, gradientPaint, gradientsEqual, graphemeBoundaries, hasDecorationPhase, hasDrawnText, hasTextLinks, hasThemeExtension, hasVisualState, hiddenRangesOf, highContrastColors, hoverable, iconKey, iconSource, imageSource, inheritedPropertyFlags, inheritedPropertyNames, initializeWebGPU, inputsEqual, insetPadding, insetsEqual, interactive, interpolateColor, interpolateNumber, interpolateTransform, interpolatorFor, isAutoLength, isComponentLikeElement, isEditableNode, isFrLength, isImeKey, isLayoutProtocol, isMinMaxTrack, isMotionRest, isMultiline, isNodeFocusable, isNodeHitTestable, isNodeInert, isNodeSelectable, isNodeTabStop, isObservable, isPaintVisible, isPercentLength, isPrintable, isReadOnly, isScrollContainer, isShapeName, isSubtreeInert, isTypographyRole, isUiChild, isUiElement, isUiModifier, isUiRole, isUiSemanticState, isVideoSurface, isWebGPUAvailable, labelNode, labelOrigin, layoutParagraph, layoutTextLines, lazySource, lightColors, lightTheme, lineEndAt, lineIndexAtY, lineIndexForOffset, lineLimit, lineStartAt, linear, linearGradient, linkHoverOf, linkOf, linkRunAtPointIn, markInstant, markNow, matchRangesOf, measure, measureFlow, measureSpan, minmax, motion, nextCaretToggle, nextGraphemeEnd, nextWordEnd, noInsets, noKeyModifiers, noModifiers, noThemeExtensions, normalizeBorderRadius, normalizeColor, normalizeStates, normalizeTextAlign, normalizeTransition, normalizeVerticalAlign, observeViewportInsets, offsetAtPoint, offsetAtPointIn, offsetAtX, offsetForVerticalMove, overrideSources, paintPictures, paintValuesEqual, paintsAfterChildren, paragraphGeometry, paragraphGeometryFrom, parseAlignContent, parseColor, parseCrossAxisAlignment, parseFlexDirection, parseMainAxisAlignment, parseShortcut, parseTransform, parseWebVtt, pathValuesEqual, percent, performanceMarksEnabled, pinchable, placeGridItems, pointerDeviceOf, pointerEventsOf, pop, prepareInputSurface, pressable, previousGraphemeStart, previousWordStart, propertyEffects, propertyIsInherited, propertyNarrowers, propertyValuesEqual, propertyValuesEqualByName, proportionalFontMetrics, provideEnvironment, publishInset, radialGradient, raiseContrast, rangeSource, readMp3Header, recordsEqual, registerFontStack, relativeLuminance, reorderable, repeat, replayPaint, resetOverrideWarnings, resetTransitionWarnings, resolveBoolean, resolveCursor, resolveLength, resolveMotionState, resolveNumber, resolvePaintState, resolveProperty, resolvePropertyByName, resolveString, resolvedSpansOf, rewalkSemantics, rgb8, rgba, rotateFrom, runCanvasStyleInto, runFontString, sameArgs, scaleFrom, scaleSpacing, scrollLeaderOf, scrollPosition, scrollRange, scrollbarThumb, scrollbarThumbs, scrollbarZoneAt, selectableTextNodes, selectableTextOf, selectionRangeOf, selectionRects, selectionRectsIn, semanticsInertAbove, semanticsMemory, setLinkHover, setMatchRanges, setPerformanceMarks, setSelectionRange, shadowsEqual, shapesEqual, sharedElement, sheetSource, shortcut, shortcutKeyCaps, shortcuts, sizeContainer, sizeGridTracks, slideDown, slideFrom, slideUp, spacingEqual, spacingSteps, spanAtOffset, spannedRunsFor, spannedTextOf, spansDifferOnlyInPaint, splitMp3Frames, spring, statesEqual, steps, syncEditorValue, textContentOf, textInputOf, textRunBackgrounds, textRunDecorations, textRunOfRecordId, textRuns, textSpansEqual, textStylesEqual, themeExtension, themeExtensionsEqual, themeTokens, themesEqual, tightenConstraints, touchActionFor, tracePathData, traceRoundedRect, transform, transformIsIdentity, transformsEqual, tween, typographyEqual, uniformBorderRadius, unknownContainerSize, validateGradient, validateRole, validateStates, validateSubgrid, videoFrameSize, videoSource, visualState, visualStatesEqual, wheelDeltaYOf, withContrast, withDensity, withOverrideSource, withThemeExtension, wordRangeAt, wordRangeIn, writeDeclaredProperty, writeOverrideProperty };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as isImeKey, $a as MOUSE_POINTER, $i as spacingEqual, $n as ELLIPSIS, $r as transformsEqual, $t as registerFontStack, A as withOverrideSource, Aa as colorToHex, Ai as observeViewportInsets, An as clearLinkHover, Ar as inheritedPropertyNames, At as adjacentField, B as FlexDirection, Ba as UiEnvironment, Bi as defineThemeExtension, Bn as editorFor, Br as normalizeStates, Bt as createCanvasTextStyle, C as SCROLLBAR_LINGER_MS, Ca as textContentOf, Ci as uniformBorderRadius, Cn as isNodeInert, Cr as resolveProperty, Ct as hasDrawnText, D as formatExplanation, Da as darkColors, Di as UiInsetRegistry, Dn as isSubtreeInert, Dr as findPropertyDefinition, Dt as selectionRectsIn, E as formatConstraints, Ea as colorsEqualPalette, Ei as UiEnvironmentKeys, En as isPressable, Er as closestPropertyName, Et as paragraphGeometryFrom, F as clampSize, Fa as parseColor, Fi as darkTheme, Fn as setLinkHover, Fr as UiProperties, Ft as detectEditingPlatform, G as CrossAxisAlignment, Ga as resetOverrideWarnings, Gi as withThemeExtension, Gn as nextCaretToggle, Gr as validateSubgrid, Gt as runFontString, H as placeGridItems, Ha as DirtyNodeSet, Hi as noThemeExtensions, Hn as isEditableNode, Hr as validateRole, Ht as fillTextRects, I as constraintsEqual, Ia as rgb8, Ii as lightTheme, In as CARET_BLINK_MS, Ir as UI_ROLES, It as isPrintable, J as parseCrossAxisAlignment, Ja as UiVisualState, Ji as raiseContrast, Jn as isVideoSurface, Jr as pathValuesEqual, Jt as textRunBackgrounds, K as MainAxisAlignment, Ka as writeDeclaredProperty, Ki as contrastRatio, Kn as syncEditorValue, Kr as inputsEqual, Kt as spanOf, L as tightenConstraints, La as rgba, Li as themesEqual, Ln as CARET_WIDTH, Lr as UI_SEMANTIC_STATES, Lt as EditableLayout, M as contentOffset, Ma as colorValuesEqual, Mi as bandOf, Mn as linkHoverOf, Mr as propertyIsInherited, Mt as edgeField, N as LayoutRecord, Na as colorsEqual, Ni as containerBands, Nn as linkOf, Nr as propertyNarrowers, Nt as editingGroupOf, O as formatNumber, Oa as lightColors, Oi as insetsEqual, On as pointerEventsOf, Or as getPropertyNames, Ot as wordRangeIn, P as Constraints, Pa as normalizeColor, Pi as unknownContainerSize, Pn as linkRunAtPointIn, Pr as propertyValuesEqualByName, Pt as commandForKey, Q as capturePointer, Qa as visualStatesEqual, Qi as scaleSpacing, Qn as spannedRunsFor, Qr as transformIsIdentity, Qt as fontStackFor, R as MAX_MEASURES_PER_CHILD, Ra as createEnvironmentKey, Ri as withContrast, Rn as EDITOR_PROP, Rr as isUiRole, Rt as applyCanvasTextStyle, S as SCROLLBAR_FADE_MS, Sa as spansDifferOnlyInPaint, Si as normalizeBorderRadius, Sn as isNodeHitTestable, Sr as resolveNumber, St as UiInputDispatcher, T as describeOverrides, Ta as textStylesEqual, Ti as propertyValuesEqual, Tn as isNodeTabStop, Tr as resolveString, Tt as paragraphGeometry, U as sizeGridTracks, Ua as clearOverrideProperty, Ui as themeExtension, Un as isMultiline, Ur as validateStates, Ut as layoutTextLines, V as parseFlexDirection, Va as UiNode, Vi as hasThemeExtension, Vn as editorOf, Vr as statesEqual, Vt as drawText, W as AlignContent, Wa as overrideSources, Wi as themeExtensionsEqual, Wn as isReadOnly, Wr as UI_SUBGRID_AXES, Wt as runCanvasStyleInto, X as CanvasPlatformSurface, Xa as hasVisualState, Xi as densityFactors, Xn as CharacterCountTextMeasurer, Xr as parseTransform, Xt as bumpFontStack, Y as parseMainAxisAlignment, Ya as defaultVisualState, Yi as relativeLuminance, Yn as videoFrameSize, Yr as UiTransforms, Yt as textRunDecorations, Z as UiPlatformAdapter, Za as visualState, Zi as defaultSpacing, Zn as ParagraphTextMeasurer, Zr as transform, Zt as clearFontStacks, _ as LABEL_PADDING_X, _a as flattenTextSpans, _i as borderRadius, _n as selectableTextNodes, _o as DirtyFlags, _r as previousWordStart, _t as scrollLeaderOf, a as PaintPictureCache, aa as boxShadowArraysEqual, ai as validateGradient, an as computeObjectFitRect, ao as UiInputEvent, ar as lineLimit, at as UiGestureRecognizer, b as snapScroll, ba as spanAtOffset, bi as borderRadiusIsZero, bn as setSelectionRange, br as DEFAULT_LINE_HEIGHT_FACTOR, bt as scrollbarThumbs, c as EMPTY_RECORDING, ca as boxShadowsEqual, ci as isAutoLength, cn as normalizeTextAlign, co as UiPinchEvent, cr as offsetForVerticalMove, ct as isScrollContainer, d as tracePathData, da as shapesEqual, di as isPercentLength, dn as TEXT_MATCHES_PROP, do as UiTextChangeEvent, dr as graphemeBoundaries, dt as UiFocusManager, ea as spacingSteps, ei as MAX_GRADIENT_STOPS, en as DEFAULT_FONT_FAMILY, eo as UiBeforeInputEvent, er as layoutParagraph, et as pointerDeviceOf, f as ScaledImageCache, fa as defaultTypography, fi as minmax, fn as clearMatchRanges, fo as UiWheelDeltaMode, fr as lineEndAt, ft as UiHitTester, g as paintsAfterChildren, ga as editableSpansOf, gi as UiBorderRadiuses, gn as clearSelectionRange, go as UiNodeType, gr as previousGraphemeStart, gt as SCROLLBAR_THICKNESS, h as hasDecorationPhase, ha as defaultTextStyle, hi as resolveLength, hn as TEXT_SELECTION_PROP, ho as wheelDeltaYOf, hr as nextWordEnd, ht as SCROLLBAR_MIN_THUMB, i as traceRoundedRect, ia as boxShadow, ii as radialGradient, in as colorToCss, io as UiGestureEvent, ir as lineIndexForOffset, it as UiTouchScroller, j as accumulatedOffsetTo, ja as colorToRgba, ji as UiContainerSizeSource, jn as hasTextLinks, jr as propertyEffects, jt as comparePositions, k as labelNode, ka as UiBasicColors, ki as noInsets, kn as resolveCursor, kr as inheritedPropertyFlags, kt as textInputOf, l as PaintRecorder, la as defaultShapes, li as isFrLength, ln as normalizeVerticalAlign, lo as UiPointerEvent, lr as selectionRects, lt as UiKeyboardController, m as decorationRect, ma as typographyEqual, mi as repeat, mn as setMatchRanges, mo as noKeyModifiers, mr as nextGraphemeEnd, mt as SCROLLBAR_INSET, n as createCanvasSurface, na as shadowsEqual, ni as gradientsEqual, nn as DEFAULT_FONT_WEIGHT, no as UiEventType, nr as caretRectFor, nt as touchActionFor, o as paintPictures, oa as boxShadowRadius, oi as auto, on as createPaintState, oo as UiKeyboardEvent, or as offsetAtPoint, ot as UiPinchRecognizer, p as decorationColor, pa as isTypographyRole, pi as percent, pn as matchRangesOf, po as UiWheelEvent, pr as lineStartAt, pt as SCROLLBAR_HOVER_ZONE, q as parseAlignContent, qa as writeOverrideProperty, qi as highContrastColors, qn as resolveColorValue, qr as paintValuesEqual, qt as textMeasureRequest, r as Canvas2DRenderer, ra as BOX_SHADOW_BLUR_REACH, ri as linearGradient, rn as DEFAULT_TEXT_COLOR, ro as UiFocusEvent, rr as lineIndexAtY, rt as UiEditingController, s as PaintTarget, sa as boxShadowReach, si as fr, sn as isPaintVisible, so as UiPasteEvent, sr as offsetAtX, st as UiWheelController, t as CanvasSurface, ta as defaultShadows, ti as gradientPaint, tn as DEFAULT_FONT_SIZE, to as UiCompositionEvent, tr as proportionalFontMetrics, tt as prepareInputSurface, u as replayPaint, ua as isShapeName, ui as isMinMaxTrack, un as resolvePaintState, uo as UiSelectionChangeEvent, ur as EditableTextModel, ut as UiPointerController, v as drawOverlayShapes, va as hiddenRangesOf, vi as borderRadiusCorners, vn as selectableTextOf, vo as UiBinding, vr as wordRangeAt, vt as scrollRange, w as describeLength, wa as textSpansEqual, wi as defineProperty, wn as isNodeSelectable, wr as resolvePropertyByName, wt as offsetAtPointIn, x as LayoutEngine, xa as spannedTextOf, xi as borderRadiusValuesEqual, xn as isNodeFocusable, xr as resolveBoolean, xt as scrollbarZoneAt, y as labelOrigin, ya as resolvedSpansOf, yi as borderRadiusEqual, yn as selectionRangeOf, yr as UiGraph, yt as scrollbarThumb, z as isLayoutProtocol, za as findEnvironmentKey, zi as withDensity, zn as caretVisibleAt, zr as isUiSemanticState, zt as buildFontString } from "./CanvasSurface-tAao5BLh.js";
1
+ import { $ as isImeKey, $a as visualStatesEqual, $i as scaleSpacing, $n as spannedRunsFor, $r as transformIsIdentity, $t as registerFontStack, A as withOverrideSource, Aa as UiBasicColors, Ai as noInsets, An as clearLinkHover, Ar as inheritedPropertyFlags, At as adjacentField, B as FlexDirection, Ba as findEnvironmentKey, Bi as withDensity, Bn as editorFor, Br as isUiSemanticState, Bt as createCanvasTextStyle, C as SCROLLBAR_LINGER_MS, Ca as spansDifferOnlyInPaint, Ci as normalizeBorderRadius, Cn as isNodeInert, Cr as resolveNumber, Ct as hasDrawnText, D as formatExplanation, Da as colorsEqualPalette, Di as UiEnvironmentKeys, Dn as isSubtreeInert, Dr as closestPropertyName, Dt as selectionRectsIn, E as formatConstraints, Ea as textStylesEqual, Ei as propertyValuesEqual, En as isPressable, Er as resolveString, Et as paragraphGeometryFrom, F as clampSize, Fa as normalizeColor, Fi as unknownContainerSize, Fn as setLinkHover, Fr as propertyValuesEqualByName, Ft as detectEditingPlatform, G as CrossAxisAlignment, Ga as overrideSources, Gi as themeExtensionsEqual, Gn as maskText, Gr as UI_SUBGRID_AXES, Gt as runFontString, H as placeGridItems, Ha as UiNode, Hi as hasThemeExtension, Hn as isEditableNode, Hr as statesEqual, Ht as fillTextRects, I as constraintsEqual, Ia as parseColor, Ii as darkTheme, In as CARET_BLINK_MS, Ir as UiProperties, It as isPrintable, J as parseCrossAxisAlignment, Ja as writeOverrideProperty, Ji as highContrastColors, Jn as resolveColorValue, Jr as paintValuesEqual, Jt as textRunBackgrounds, K as MainAxisAlignment, Ka as resetOverrideWarnings, Ki as withThemeExtension, Kn as nextCaretToggle, Kr as validateSubgrid, Kt as spanOf, L as tightenConstraints, La as rgb8, Li as lightTheme, Ln as CARET_WIDTH, Lr as UI_ROLES, Lt as EditableLayout, M as contentOffset, Ma as colorToRgba, Mi as UiContainerSizeSource, Mn as linkHoverOf, Mr as propertyEffects, Mt as edgeField, N as LayoutRecord, Na as colorValuesEqual, Ni as bandOf, Nn as linkOf, Nr as propertyIsInherited, Nt as editingGroupOf, O as formatNumber, Oa as darkColors, Oi as UiInsetRegistry, On as pointerEventsOf, Or as findPropertyDefinition, Ot as wordRangeIn, P as Constraints, Pa as colorsEqual, Pi as containerBands, Pn as linkRunAtPointIn, Pr as propertyNarrowers, Pt as commandForKey, Q as capturePointer, Qa as visualState, Qi as defaultSpacing, Qn as ParagraphTextMeasurer, Qr as transform, Qt as fontStackFor, R as MAX_MEASURES_PER_CHILD, Ra as rgba, Ri as themesEqual, Rn as EDITOR_PROP, Rr as UI_SEMANTIC_STATES, Rt as applyCanvasTextStyle, S as SCROLLBAR_FADE_MS, Sa as spannedTextOf, Si as borderRadiusValuesEqual, Sn as isNodeHitTestable, Sr as resolveBoolean, St as UiInputDispatcher, T as describeOverrides, Ta as textSpansEqual, Ti as defineProperty, Tn as isNodeTabStop, Tr as resolvePropertyByName, Tt as paragraphGeometry, U as sizeGridTracks, Ua as DirtyNodeSet, Ui as noThemeExtensions, Un as isMultiline, Ur as validateRole, Ut as layoutTextLines, V as parseFlexDirection, Va as UiEnvironment, Vi as defineThemeExtension, Vn as editorOf, Vr as normalizeStates, Vt as drawText, W as AlignContent, Wa as clearOverrideProperty, Wi as themeExtension, Wn as isReadOnly, Wr as validateStates, Wt as runCanvasStyleInto, X as CanvasPlatformSurface, Xa as defaultVisualState, Xi as relativeLuminance, Xn as videoFrameSize, Xr as UiTransforms, Xt as bumpFontStack, Y as parseMainAxisAlignment, Ya as UiVisualState, Yi as raiseContrast, Yn as isVideoSurface, Yr as pathValuesEqual, Yt as textRunDecorations, Z as UiPlatformAdapter, Za as hasVisualState, Zi as densityFactors, Zn as CharacterCountTextMeasurer, Zr as parseTransform, Zt as clearFontStacks, _ as LABEL_PADDING_X, _a as editableSpansOf, _i as UiBorderRadiuses, _n as selectableTextNodes, _o as UiNodeType, _r as previousGraphemeStart, _t as scrollLeaderOf, a as PaintPictureCache, aa as boxShadow, ai as radialGradient, an as computeObjectFitRect, ao as UiGestureEvent, ar as lineIndexForOffset, at as UiGestureRecognizer, b as snapScroll, ba as resolvedSpansOf, bi as borderRadiusEqual, bn as setSelectionRange, br as UiGraph, bt as scrollbarThumbs, c as EMPTY_RECORDING, ca as boxShadowReach, ci as fr, cn as normalizeTextAlign, co as UiPasteEvent, cr as offsetAtX, ct as isScrollContainer, d as tracePathData, da as isShapeName, di as isMinMaxTrack, dn as TEXT_MATCHES_PROP, do as UiSelectionChangeEvent, dr as EditableTextModel, dt as UiFocusManager, ea as spacingEqual, ei as transformsEqual, en as DEFAULT_FONT_FAMILY, eo as MOUSE_POINTER, er as ELLIPSIS, et as pointerDeviceOf, f as ScaledImageCache, fa as shapesEqual, fi as isPercentLength, fn as clearMatchRanges, fo as UiTextChangeEvent, fr as graphemeBoundaries, ft as UiHitTester, g as paintsAfterChildren, ga as defaultTextStyle, gi as resolveLength, gn as clearSelectionRange, go as wheelDeltaYOf, gr as nextWordEnd, gt as SCROLLBAR_THICKNESS, h as hasDecorationPhase, ha as typographyEqual, hi as repeat, hn as TEXT_SELECTION_PROP, ho as noKeyModifiers, hr as nextGraphemeEnd, ht as SCROLLBAR_MIN_THUMB, i as traceRoundedRect, ia as BOX_SHADOW_BLUR_REACH, ii as linearGradient, in as colorToCss, io as UiFocusEvent, ir as lineIndexAtY, it as UiTouchScroller, j as accumulatedOffsetTo, ja as colorToHex, ji as observeViewportInsets, jn as hasTextLinks, jr as inheritedPropertyNames, jt as comparePositions, k as labelNode, ka as lightColors, ki as insetsEqual, kn as resolveCursor, kr as getPropertyNames, kt as textInputOf, l as PaintRecorder, la as boxShadowsEqual, li as isAutoLength, ln as normalizeVerticalAlign, lo as UiPinchEvent, lr as offsetForVerticalMove, lt as UiKeyboardController, m as decorationRect, ma as isTypographyRole, mi as percent, mn as setMatchRanges, mo as UiWheelEvent, mr as lineStartAt, mt as SCROLLBAR_INSET, n as createCanvasSurface, na as defaultShadows, ni as gradientPaint, nn as DEFAULT_FONT_WEIGHT, no as UiCompositionEvent, nr as proportionalFontMetrics, nt as touchActionFor, o as paintPictures, oa as boxShadowArraysEqual, oi as validateGradient, on as createPaintState, oo as UiInputEvent, or as lineLimit, ot as UiPinchRecognizer, p as decorationColor, pa as defaultTypography, pi as minmax, pn as matchRangesOf, po as UiWheelDeltaMode, pr as lineEndAt, pt as SCROLLBAR_HOVER_ZONE, q as parseAlignContent, qa as writeDeclaredProperty, qi as contrastRatio, qn as syncEditorValue, qr as inputsEqual, qt as textMeasureRequest, r as Canvas2DRenderer, ra as shadowsEqual, ri as gradientsEqual, rn as DEFAULT_TEXT_COLOR, ro as UiEventType, rr as caretRectFor, rt as UiEditingController, s as PaintTarget, sa as boxShadowRadius, si as auto, sn as isPaintVisible, so as UiKeyboardEvent, sr as offsetAtPoint, st as UiWheelController, t as CanvasSurface, ta as spacingSteps, ti as MAX_GRADIENT_STOPS, tn as DEFAULT_FONT_SIZE, to as UiBeforeInputEvent, tr as layoutParagraph, tt as prepareInputSurface, u as replayPaint, ua as defaultShapes, ui as isFrLength, un as resolvePaintState, uo as UiPointerEvent, ur as selectionRects, ut as UiPointerController, v as drawOverlayShapes, va as flattenTextSpans, vi as borderRadius, vn as selectableTextOf, vo as DirtyFlags, vr as previousWordStart, vt as scrollRange, w as describeLength, wa as textContentOf, wi as uniformBorderRadius, wn as isNodeSelectable, wr as resolveProperty, wt as offsetAtPointIn, x as LayoutEngine, xa as spanAtOffset, xi as borderRadiusIsZero, xn as isNodeFocusable, xr as DEFAULT_LINE_HEIGHT_FACTOR, xt as scrollbarZoneAt, y as labelOrigin, ya as hiddenRangesOf, yi as borderRadiusCorners, yn as selectionRangeOf, yo as UiBinding, yr as wordRangeAt, yt as scrollbarThumb, z as isLayoutProtocol, za as createEnvironmentKey, zi as withContrast, zn as caretVisibleAt, zr as isUiRole, zt as buildFontString } from "./CanvasSurface-BAhcLj2K.js";
2
2
  import { BehaviorSubject, EMPTY, Subject, combineLatest, distinctUntilChanged, isObservable as isObservable$1, map, of } from "rxjs";
3
3
  //#region src/animation/UiEasing.ts
4
4
  /** Progress equals time. What a spinner and a sweep want. */
@@ -2200,6 +2200,15 @@ function describeValueType(value) {
2200
2200
  var UiGraphBuilder = class {
2201
2201
  graph;
2202
2202
  refs = /* @__PURE__ */ new Map();
2203
+ /**
2204
+ * The definition each node was last reconciled from. A definition is
2205
+ * a description that is never changed once made, so the same object
2206
+ * again has nothing new to say: a lazy list hands back the row it made
2207
+ * for an index on every scroll, and reconciling seventy unchanged rows
2208
+ * (their props, then every node of each row's component) to mount the
2209
+ * four that scrolled in cost a 165 Hz frame its budget.
2210
+ */
2211
+ reconciledFrom = /* @__PURE__ */ new WeakMap();
2203
2212
  modifiers = /* @__PURE__ */ new Map();
2204
2213
  nextChildrenBindingId = 0;
2205
2214
  /**
@@ -2340,9 +2349,12 @@ var UiGraphBuilder = class {
2340
2349
  changed = true;
2341
2350
  } else {
2342
2351
  matched.add(node);
2343
- this.reconcileProps(node, definition.props);
2344
- if (this.reconcileChildren(node, definition.children).changed) changed = true;
2352
+ if (this.reconciledFrom.get(node) !== definition) {
2353
+ this.reconcileProps(node, definition.props);
2354
+ if (this.reconcileChildren(node, definition.children).changed) changed = true;
2355
+ }
2345
2356
  }
2357
+ this.reconciledFrom.set(node, definition);
2346
2358
  if (this.moveBefore(parent, node, cursor)) changed = true;
2347
2359
  cursor = node.nextSibling;
2348
2360
  result.push(node);
@@ -2412,8 +2424,12 @@ var UiGraphBuilder = class {
2412
2424
  if (anchor === void 0) {
2413
2425
  anchor = this.graph.createNode(anchorId, "fragment");
2414
2426
  this.graph.insertBefore(parent, anchor, cursor);
2415
- } else matched.add(anchor);
2427
+ } else {
2428
+ matched.add(anchor);
2429
+ if (this.reconciledFrom.get(anchor) === element) return anchor;
2430
+ }
2416
2431
  this.reconcileChildren(anchor, [resolver.resolve(element, anchorId)]);
2432
+ this.reconciledFrom.set(anchor, element);
2417
2433
  return anchor;
2418
2434
  }
2419
2435
  /**
@@ -2519,8 +2535,7 @@ var UiGraphBuilder = class {
2519
2535
  return true;
2520
2536
  }
2521
2537
  if (node === reference || node.nextSibling === reference) return false;
2522
- this.graph.detachNode(node);
2523
- this.graph.insertBefore(parent, node, reference);
2538
+ this.graph.moveWithin(node, reference);
2524
2539
  return true;
2525
2540
  }
2526
2541
  /**
@@ -2810,6 +2825,15 @@ var UiVirtualWindow = class {
2810
2825
  count;
2811
2826
  estimate;
2812
2827
  overscan;
2828
+ recycle;
2829
+ /**
2830
+ * The slot each mounted item is keyed by, when recycling: an item keeps
2831
+ * its slot while it stays, and one leaving gives its slot to the next
2832
+ * one to come, whose element then matches the node it leaves behind.
2833
+ */
2834
+ slotOf = /* @__PURE__ */ new Map();
2835
+ freeSlots = [];
2836
+ nextSlot = 0;
2813
2837
  keyOf;
2814
2838
  renderItem;
2815
2839
  grid;
@@ -2841,6 +2865,7 @@ var UiVirtualWindow = class {
2841
2865
  this.count = count;
2842
2866
  this.estimate = options.estimatedExtent;
2843
2867
  this.overscan = options.overscan ?? 3;
2868
+ this.recycle = options.recycle === true;
2844
2869
  this.keyOf = options.key ?? ((index) => index);
2845
2870
  this.renderItem = renderItem;
2846
2871
  this.grid = options.grid;
@@ -3027,6 +3052,13 @@ var UiVirtualWindow = class {
3027
3052
  });
3028
3053
  }
3029
3054
  buildChildren() {
3055
+ if (this.recycle) {
3056
+ for (const [index, slot] of this.slotOf) if (index < this.first || index > this.last) {
3057
+ this.slotOf.delete(index);
3058
+ this.freeSlots.push(slot);
3059
+ }
3060
+ for (let index = this.first; index <= this.last; index++) if (!this.slotOf.has(index)) this.slotOf.set(index, this.freeSlots.pop() ?? this.nextSlot++);
3061
+ }
3030
3062
  const children = [];
3031
3063
  if (this.grid?.header !== void 0) children.push(markRow(this.grid.header, {
3032
3064
  key: "lazy:header",
@@ -3080,7 +3112,7 @@ var UiVirtualWindow = class {
3080
3112
  */
3081
3113
  wrap(index, item) {
3082
3114
  const props = {
3083
- key: `lazy:${String(this.keyOf(index))}`,
3115
+ key: this.recycle ? `lazy:slot:${this.slotOf.get(index)}` : `lazy:${String(this.keyOf(index))}`,
3084
3116
  [VIRTUAL_INDEX_PROP]: index
3085
3117
  };
3086
3118
  if (this.grid !== void 0) return markRow(item, props, `Row ${index} of`);
@@ -3200,11 +3232,12 @@ function LazyGrid(props, renderRow) {
3200
3232
  });
3201
3233
  }
3202
3234
  function lazyList(axis, props, renderItem, grid) {
3203
- const { count, estimatedExtent, overscan, itemKey, initialViewportExtent, revision, modifiers, windowRef, ...rest } = props;
3235
+ const { count, estimatedExtent, overscan, recycle, itemKey, initialViewportExtent, revision, modifiers, windowRef, ...rest } = props;
3204
3236
  const window = new UiVirtualWindow(axis, {
3205
3237
  count,
3206
3238
  estimatedExtent,
3207
3239
  overscan,
3240
+ recycle,
3208
3241
  key: itemKey,
3209
3242
  initialViewportExtent,
3210
3243
  revision,
@@ -14353,10 +14386,16 @@ var UiTimerFrameClock = class {
14353
14386
  * way, which is why the choice can be made at construction and
14354
14387
  * forgotten.
14355
14388
  *
14356
- * Both paths stop for a hidden tab, and that is not a coincidence: a
14357
- * worker's animation frames are serviced by its **owner window's**
14358
- * rendering, and a window that is not rendering services none. So the
14359
- * battery properties the runtime relies on hold whichever path runs.
14389
+ * Neither path's refreshes come for a hidden tab: a worker's animation
14390
+ * frames are serviced by its **owner window's** rendering, and a window
14391
+ * that is not rendering services none. A frame asked for then is paced
14392
+ * by a timer instead (`setHidden`). The battery properties hold anyway,
14393
+ * because the runtime asks for nothing on a hidden page's account (no
14394
+ * caret blink, no animation ticks); what it still asks for is a real
14395
+ * change, such as a channel's patch, and a frame that never came left
14396
+ * that change unapplied: an answer the application thread had sent
14397
+ * never reached the code awaiting it, for as long as the tab stayed
14398
+ * hidden or behind another window.
14360
14399
  *
14361
14400
  * **Ticks are free-running while frames are wanted, not requested one
14362
14401
  * at a time.** A tick per request would cost a round trip inside every
@@ -14375,6 +14414,26 @@ var UiTimerFrameClock = class {
14375
14414
  * has had one for years, and a *nested* worker on Chromium has not.
14376
14415
  * The feature test is the whole guard; there is no version to compare.
14377
14416
  */
14417
+ /** This thread's refreshes seen before they are compared with the display's. */
14418
+ const LOCAL_SAMPLES = 8;
14419
+ /** The host's refreshes the beat's phase is read from: about a sixth of a second at 120 Hz. */
14420
+ const BEAT_SAMPLES = 20;
14421
+ /** Frames whose cost decides the stride. */
14422
+ const COST_SAMPLES = 30;
14423
+ /** Frames seen before the stride is lengthened. */
14424
+ const SLOW_SAMPLES = 12;
14425
+ /** A frame costing more than this share of its refreshes is too slow for them. */
14426
+ const SLOW_FRAME = .75;
14427
+ /** And less than this share of one fewer is cheap enough to take one fewer. */
14428
+ const FAST_FRAME = .6;
14429
+ /** How far off the measured interval the refreshes must come to be another display's, as a fraction. */
14430
+ const NEW_DISPLAY = .15;
14431
+ /** Times the interval is read again on its own result. */
14432
+ const BEAT_PASSES = 3;
14433
+ /** Refreshes apart the two an interval is read between must be, at least. */
14434
+ const MIN_BEAT_SPAN = 6;
14435
+ /** The most refreshes a frame is given: two, sixty at 120 Hz; slower than that is no smoother. */
14436
+ const MAX_STRIDE = 2;
14378
14437
  function localAnimationFrame() {
14379
14438
  const host = globalThis;
14380
14439
  return typeof host.requestAnimationFrame === "function" ? host.requestAnimationFrame.bind(host) : null;
@@ -14420,6 +14479,30 @@ var UiHostFrameClock = class {
14420
14479
  /** This thread's own `requestAnimationFrame`, or null where there is none. */
14421
14480
  local;
14422
14481
  localHandle = null;
14482
+ /** Whether the page is hidden, when this thread's refreshes do not come. */
14483
+ hidden = false;
14484
+ timeOrigin;
14485
+ /** Gaps between this thread's own refreshes while frames ran back to back. */
14486
+ localIntervals = [];
14487
+ lastLocalTime = null;
14488
+ /** The display's interval and the host's time origin, once the host has said. */
14489
+ display = null;
14490
+ /**
14491
+ * Set once this thread's refreshes have shown they keep no display's
14492
+ * time: frames are then timed here, on the beat the host's refreshes
14493
+ * show (see \`displayInterval\`).
14494
+ */
14495
+ locked = false;
14496
+ /** The host's recent refresh times, which give the beat its phase. */
14497
+ refreshes = [];
14498
+ /** Host refreshes since the last frame drawn on the beat. */
14499
+ refreshesSinceFrame = 0;
14500
+ /** The refresh the last frame here was drawn for: a frame is never drawn for one twice. */
14501
+ lastLocked = -Infinity;
14502
+ /** How long recent frames took here, which decides how many refreshes each one gets. */
14503
+ costs = [];
14504
+ /** Refreshes per frame on the beat: 1, or more when frames cost more than a refresh can hold. */
14505
+ stride = 1;
14423
14506
  constructor(onFrame, onActive, options = {}) {
14424
14507
  this.onFrame = onFrame;
14425
14508
  this.onActive = onActive;
@@ -14428,6 +14511,7 @@ var UiHostFrameClock = class {
14428
14511
  this.minStallMs = options.minStallMs ?? 12;
14429
14512
  this.now = options.now ?? (() => performance.now());
14430
14513
  this.local = options.requestAnimationFrame === void 0 ? localAnimationFrame() : options.requestAnimationFrame;
14514
+ this.timeOrigin = options.timeOrigin ?? (typeof performance !== "undefined" ? performance.timeOrigin : 0);
14431
14515
  }
14432
14516
  /** Whether this clock is driving itself from the compositor. */
14433
14517
  get isLocal() {
@@ -14436,8 +14520,13 @@ var UiHostFrameClock = class {
14436
14520
  requestFrame() {
14437
14521
  this.pending = true;
14438
14522
  if (this.local !== null) {
14523
+ if (this.hidden) {
14524
+ this.armTimer();
14525
+ return;
14526
+ }
14439
14527
  if (this.localHandle === null) this.localHandle = this.local((time) => {
14440
14528
  this.localHandle = null;
14529
+ this.recordLocal(time);
14441
14530
  if (this.pending) this.deliver(time);
14442
14531
  });
14443
14532
  return;
@@ -14446,6 +14535,167 @@ var UiHostFrameClock = class {
14446
14535
  this.armTimer();
14447
14536
  }
14448
14537
  /**
14538
+ * The page was hidden or shown. While it is hidden this thread's own
14539
+ * refreshes stop, so a frame asked for is paced by the timer, as a
14540
+ * hosted clock is when its host stops ticking; one already waiting
14541
+ * for a refresh that will not come is handed to the timer.
14542
+ */
14543
+ setHidden(hidden) {
14544
+ this.hidden = hidden;
14545
+ if (hidden && this.pending && this.local !== null) this.armTimer();
14546
+ }
14547
+ /**
14548
+ * Tells the clock the display's interval, measured on the host's own
14549
+ * refreshes, and the host's \`timeOrigin\`, which puts the host's frame
14550
+ * times on this thread's clock.
14551
+ *
14552
+ * A worker's own refreshes are not always the display's. WebKit's come
14553
+ * from a timer near 65 Hz that keeps no display's time: on a 120 Hz
14554
+ * MacBook its frames fell 15 to 16.4 ms apart, so each was shown after
14555
+ * one refresh, two or three, and a scroll juddered at a steady sixty.
14556
+ * Driving frames from the host's ticks instead put the host's thread in
14557
+ * every frame, and WebKit's is uneven while scrolling: at 120 a seventh
14558
+ * of the frames missed their refresh. So once this thread's refreshes
14559
+ * have shown they keep no display's time, frames follow the host's
14560
+ * refreshes, which are the only ones a worker's canvas is shown on in
14561
+ * WebKit anyway, with two differences from a plain hosted clock: each
14562
+ * frame is stamped with its refresh on the display's beat and on this
14563
+ * thread's clock, which is the clock a wheel step's time is on; and
14564
+ * frames too costly for one refresh are given an even two (see
14565
+ * \`recordCost\`).
14566
+ */
14567
+ displayInterval(ms, origin) {
14568
+ if (ms > 0 && ms < MAX_CADENCE_MS) {
14569
+ this.display = {
14570
+ interval: ms,
14571
+ origin
14572
+ };
14573
+ this.compareLocal();
14574
+ }
14575
+ }
14576
+ /** Whether frames are timed here on the display's beat; see \`displayInterval\`. */
14577
+ get isDisplayLocked() {
14578
+ return this.locked;
14579
+ }
14580
+ recordLocal(time) {
14581
+ const previous = this.lastLocalTime;
14582
+ this.lastLocalTime = time;
14583
+ if (previous !== null && this.pending) {
14584
+ const interval = time - previous;
14585
+ if (interval > 0 && interval < MAX_CADENCE_MS) {
14586
+ this.localIntervals.push(interval);
14587
+ if (this.localIntervals.length > LOCAL_SAMPLES) this.localIntervals.shift();
14588
+ }
14589
+ }
14590
+ this.compareLocal();
14591
+ }
14592
+ /**
14593
+ * Gives this thread's refreshes up when they come well slower than the
14594
+ * display's: they cost frames, and in WebKit keep no display's beat
14595
+ * either. Faster than the display is left alone, because that is the
14596
+ * display the measurement was taken on going stale (a window dragged to
14597
+ * a faster screen), not a worker failing to keep up with it.
14598
+ */
14599
+ compareLocal() {
14600
+ if (this.local === null || this.display === null || this.localIntervals.length < LOCAL_SAMPLES) return;
14601
+ const sorted = [...this.localIntervals].sort((a, b) => a - b);
14602
+ if (sorted[Math.floor(sorted.length / 2)] / this.display.interval <= 1.06) return;
14603
+ this.local = null;
14604
+ this.locked = true;
14605
+ }
14606
+ /** A time on the host's clock, on this thread's. */
14607
+ toLocal(host) {
14608
+ return this.display === null ? host : host - this.timeOrigin + this.display.origin;
14609
+ }
14610
+ /**
14611
+ * When the display's refreshes start, on the host's clock: the earliest
14612
+ * in phase of the host's recent refresh times, since a host's callback
14613
+ * can only run late, never early.
14614
+ */
14615
+ beat() {
14616
+ if (this.display === null || this.refreshes.length === 0) return null;
14617
+ const cadence = this.cadenceMs();
14618
+ let interval = cadence !== null && Math.abs(cadence - this.display.interval) > this.display.interval * NEW_DISPLAY ? cadence : this.display.interval;
14619
+ for (let pass = 0; pass < BEAT_PASSES; pass++) interval = this.refineInterval(interval);
14620
+ const latest = this.refreshes[this.refreshes.length - 1];
14621
+ let earliest = Infinity;
14622
+ for (const time of this.refreshes) {
14623
+ let residual = ((time - latest) % interval + interval) % interval;
14624
+ if (residual > interval / 2) residual -= interval;
14625
+ earliest = Math.min(earliest, residual);
14626
+ }
14627
+ return {
14628
+ start: latest + earliest,
14629
+ interval
14630
+ };
14631
+ }
14632
+ /** The interval between the most punctual early and late refreshes, judged by `rough`. */
14633
+ refineInterval(rough) {
14634
+ const half = Math.floor(this.refreshes.length / 2);
14635
+ const first = this.refreshes[0];
14636
+ let early = null;
14637
+ let late = null;
14638
+ let index = 0;
14639
+ for (let i = 0; i < this.refreshes.length; i++) {
14640
+ const time = this.refreshes[i];
14641
+ if (i > 0) index += Math.max(1, Math.round((time - this.refreshes[i - 1]) / rough));
14642
+ const residual = time - first - index * rough;
14643
+ if (i < half) {
14644
+ if (early === null || residual < early.residual) early = {
14645
+ index,
14646
+ residual,
14647
+ time
14648
+ };
14649
+ } else if (late === null || residual < late.residual) late = {
14650
+ index,
14651
+ residual,
14652
+ time
14653
+ };
14654
+ }
14655
+ return early !== null && late !== null && late.index - early.index >= MIN_BEAT_SPAN ? (late.time - early.time) / (late.index - early.index) : rough;
14656
+ }
14657
+ /**
14658
+ * Draws the frame a host refresh asked for, stamped with that refresh on
14659
+ * the display's beat rather than with when its callback happened to run,
14660
+ * and on this thread's clock.
14661
+ */
14662
+ deliverOnBeat(time) {
14663
+ const beat = this.beat();
14664
+ let refresh = time - ((time - beat.start) % beat.interval + beat.interval) % beat.interval;
14665
+ while (refresh < this.lastLocked + (this.stride - .5) * beat.interval) refresh += beat.interval;
14666
+ this.lastLocked = refresh;
14667
+ this.refreshesSinceFrame = 0;
14668
+ const started = this.now();
14669
+ this.deliver(this.toLocal(refresh));
14670
+ this.recordCost(this.now() - started, beat.interval);
14671
+ }
14672
+ /**
14673
+ * Keeps the stride to what frames cost: every refresh while the typical
14674
+ * frame fits in most of one, two once it no longer does. Decided by the
14675
+ * typical frame, not the slow ones: a slow frame (a few rows mounted at
14676
+ * once) shown a refresh late is a moment's hitch, where two refreshes a
14677
+ * frame for a whole scroll halves the rate. Ruled by the slow quarter,
14678
+ * a 165 Hz display drew at 82 with its typical frame in half a refresh.
14679
+ */
14680
+ recordCost(cost, interval) {
14681
+ this.costs.push(cost);
14682
+ if (this.costs.length > COST_SAMPLES) this.costs.shift();
14683
+ if (this.costs.length < SLOW_SAMPLES) return;
14684
+ const sorted = [...this.costs].sort((a, b) => a - b);
14685
+ const typical = sorted[Math.floor(sorted.length / 2)];
14686
+ if (typical > interval * this.stride * SLOW_FRAME && this.stride < MAX_STRIDE) {
14687
+ this.stride++;
14688
+ this.costs.length = 0;
14689
+ } else if (this.stride > 1 && this.costs.length >= COST_SAMPLES && typical < interval * (this.stride - 1) * FAST_FRAME) {
14690
+ this.stride--;
14691
+ this.costs.length = 0;
14692
+ }
14693
+ }
14694
+ /** Refreshes per frame while timed on the display's beat; see \`recordCost\`. */
14695
+ get displayStride() {
14696
+ return this.stride;
14697
+ }
14698
+ /**
14449
14699
  * Arms the timer that draws a frame the host did not ask for.
14450
14700
  *
14451
14701
  * It plays two roles with one mechanism. Before any tick has arrived
@@ -14471,7 +14721,7 @@ var UiHostFrameClock = class {
14471
14721
  this.handle = null;
14472
14722
  if (!this.pending) return;
14473
14723
  this.stalled = this.hosted;
14474
- this.deliver(this.hostTime());
14724
+ this.deliver(this.locked ? this.now() : this.hostTime());
14475
14725
  }, watching ? this.watchMs() : this.selfPaceMs());
14476
14726
  }
14477
14727
  /**
@@ -14572,6 +14822,17 @@ var UiHostFrameClock = class {
14572
14822
  this.stalled = false;
14573
14823
  this.hostOffset = time - this.now();
14574
14824
  this.recordCadence(time);
14825
+ if (this.locked && this.display !== null) {
14826
+ this.refreshes.push(time);
14827
+ if (this.refreshes.length > BEAT_SAMPLES) this.refreshes.shift();
14828
+ this.refreshesSinceFrame++;
14829
+ if (this.pending) {
14830
+ this.clearFallback();
14831
+ this.idleTicks = 0;
14832
+ if (this.refreshesSinceFrame >= this.stride) this.deliverOnBeat(time);
14833
+ return;
14834
+ }
14835
+ }
14575
14836
  this.clearFallback();
14576
14837
  if (!this.pending) {
14577
14838
  this.idleTicks++;
@@ -15310,7 +15571,10 @@ function describe(node, parent, disabled, nextIndex) {
15310
15571
  function valueTextOf(node) {
15311
15572
  const declared = node.properties.get("valueText");
15312
15573
  if (declared !== void 0) return declared;
15313
- if (node.type === "editable-text") return node.properties.get("value") ?? "";
15574
+ if (node.type === "editable-text") {
15575
+ const value = node.properties.get("value") ?? "";
15576
+ return node.properties.get("secret") === true ? maskText(value) : value;
15577
+ }
15314
15578
  }
15315
15579
  /**
15316
15580
  * The text a node draws, including the text of transparent