@meonode/ui 1.5.1 → 1.5.2

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=new Set(["MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBinding","MozBorderBottomColors","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStartColor","MozBorderStartStyle","MozBorderTopColors","MozBoxSizing","MozColumnCount","MozColumnFill","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContextProperties","MozFontFeatureSettings","MozFontLanguageOverride","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozOrient","MozOsxFontSmoothing","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozStackSizing","MozTabSize","MozTextBlink","MozTextSizeAdjust","MozUserFocus","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","WebkitAlignContent","WebkitAlignItems","WebkitAlignSelf","WebkitAnimation","WebkitAnimationDelay","WebkitAnimationDirection","WebkitAnimationDuration","WebkitAnimationFillMode","WebkitAnimationIterationCount","WebkitAnimationName","WebkitAnimationPlayState","WebkitAnimationTimingFunction","WebkitAppearance","WebkitBackdropFilter","WebkitBackfaceVisibility","WebkitBackgroundClip","WebkitBackgroundOrigin","WebkitBackgroundSize","WebkitBorderBefore","WebkitBorderBeforeColor","WebkitBorderBeforeStyle","WebkitBorderBeforeWidth","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius","WebkitBorderImage","WebkitBorderImageSlice","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBoxDecorationBreak","WebkitBoxReflect","WebkitBoxShadow","WebkitBoxSizing","WebkitClipPath","WebkitColumnCount","WebkitColumnFill","WebkitColumnRule","WebkitColumnRuleColor","WebkitColumnRuleStyle","WebkitColumnRuleWidth","WebkitColumnSpan","WebkitColumnWidth","WebkitColumns","WebkitFilter","WebkitFlex","WebkitFlexBasis","WebkitFlexDirection","WebkitFlexFlow","WebkitFlexGrow","WebkitFlexShrink","WebkitFlexWrap","WebkitFontFeatureSettings","WebkitFontKerning","WebkitFontSmoothing","WebkitFontVariantLigatures","WebkitHyphenateCharacter","WebkitHyphens","WebkitInitialLetter","WebkitJustifyContent","WebkitLineBreak","WebkitLineClamp","WebkitMarginEnd","WebkitMarginStart","WebkitMask","WebkitMaskAttachment","WebkitMaskBoxImage","WebkitMaskBoxImageOutset","WebkitMaskBoxImageRepeat","WebkitMaskBoxImageSlice","WebkitMaskBoxImageSource","WebkitMaskBoxImageWidth","WebkitMaskClip","WebkitMaskComposite","WebkitMaskImage","WebkitMaskOrigin","WebkitMaskPosition","WebkitMaskPositionX","WebkitMaskPositionY","WebkitMaskRepeat","WebkitMaskRepeatX","WebkitMaskRepeatY","WebkitMaskSize","WebkitMaxInlineSize","WebkitOrder","WebkitOverflowScrolling","WebkitPaddingEnd","WebkitPaddingStart","WebkitPerspective","WebkitPerspectiveOrigin","WebkitPrintColorAdjust","WebkitRubyPosition","WebkitScrollSnapType","WebkitShapeMargin","WebkitTapHighlightColor","WebkitTextCombine","WebkitTextDecorationColor","WebkitTextDecorationLine","WebkitTextDecorationSkip","WebkitTextDecorationStyle","WebkitTextEmphasis","WebkitTextEmphasisColor","WebkitTextEmphasisPosition","WebkitTextEmphasisStyle","WebkitTextFillColor","WebkitTextOrientation","WebkitTextSizeAdjust","WebkitTextStroke","WebkitTextStrokeColor","WebkitTextStrokeWidth","WebkitTextUnderlinePosition","WebkitTouchCallout","WebkitTransform","WebkitTransformOrigin","WebkitTransformStyle","WebkitTransition","WebkitTransitionDelay","WebkitTransitionDuration","WebkitTransitionProperty","WebkitTransitionTimingFunction","WebkitUserModify","WebkitUserSelect","WebkitWritingMode","accentColor","alignContent","alignItems","alignSelf","alignTracks","all","animation","animationComposition","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","blockOverflow","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderEndEndRadius","borderEndStartRadius","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderInline","borderInlineColor","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineStyle","borderInlineWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStartEndRadius","borderStartStartRadius","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caret","caretColor","caretShape","clear","clipPath","color","colorAdjust","colorScheme","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","counterSet","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontOpticalSizing","fontPalette","fontSize","fontSizeAdjust","fontSmooth","fontStretch","fontStyle","fontSynthesis","fontSynthesisPosition","fontSynthesisSmallCaps","fontSynthesisStyle","fontSynthesisWeight","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantEmoji","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontVariationSettings","fontWeight","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","hangingPunctuation","height","hyphenateCharacter","hyphenateLimitChars","hyphens","imageOrientation","imageRendering","imageResolution","initialLetter","inlineSize","inputSecurity","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","isolation","justifyContent","justifyItems","justifySelf","justifyTracks","left","letterSpacing","lineBreak","lineClamp","lineHeight","lineHeightStep","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBlock","marginBlockEnd","marginBlockStart","marginBottom","marginInline","marginInlineEnd","marginInlineStart","marginLeft","marginRight","marginTop","marginTrim","mask","maskBorder","maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","masonryAutoFlow","mathDepth","mathShift","mathStyle","maxBlockSize","maxHeight","maxInlineSize","maxLines","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","motion","motionDistance","motionPath","motionRotation","msAccelerator","msBlockProgression","msContentZoomChaining","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msFilter","msFlex","msFlexDirection","msFlexPositive","msFlowFrom","msFlowInto","msGridColumns","msGridRows","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImeAlign","msLineBreak","msOrder","msOverflowStyle","msOverflowX","msOverflowY","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msScrollbar3dlightColor","msScrollbarArrowColor","msScrollbarBaseColor","msScrollbarDarkshadowColor","msScrollbarFaceColor","msScrollbarHighlightColor","msScrollbarShadowColor","msScrollbarTrackColor","msTextAutospace","msTextCombineHorizontal","msTextOverflow","msTouchAction","msTouchSelect","msTransform","msTransformOrigin","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUserSelect","msWordBreak","msWrapFlow","msWrapMargin","msWrapThrough","msWritingMode","objectFit","objectPosition","offset","offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate","offsetRotation","opacity","order","orphans","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowBlock","overflowClipBox","overflowClipMargin","overflowInline","overflowWrap","overflowX","overflowY","overlay","overscrollBehavior","overscrollBehaviorBlock","overscrollBehaviorInline","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingBottom","paddingInline","paddingInlineEnd","paddingInlineStart","paddingLeft","paddingRight","paddingTop","page","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","printColorAdjust","quotes","resize","right","rotate","rowGap","rubyAlign","rubyMerge","rubyPosition","scale","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapMargin","scrollSnapMarginBottom","scrollSnapMarginLeft","scrollSnapMarginRight","scrollSnapMarginTop","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textCombineUpright","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkip","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textEmphasis","textEmphasisColor","textEmphasisPosition","textEmphasisStyle","textIndent","textJustify","textOrientation","textOverflow","textRendering","textShadow","textSizeAdjust","textTransform","textUnderlineOffset","textUnderlinePosition","textWrap","timelineScope","top","touchAction","transform","transformBox","transformOrigin","transformStyle","transition","transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionName","visibility","whiteSpace","whiteSpaceCollapse","whiteSpaceTrim","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex","zoom"]);exports.default=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=new Set(["MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBinding","MozBorderBottomColors","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStartColor","MozBorderStartStyle","MozBorderTopColors","MozBoxSizing","MozColumnCount","MozColumnFill","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContextProperties","MozFontFeatureSettings","MozFontLanguageOverride","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozOrient","MozOsxFontSmoothing","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozStackSizing","MozTabSize","MozTextBlink","MozTextSizeAdjust","MozUserFocus","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","WebkitAlignContent","WebkitAlignItems","WebkitAlignSelf","WebkitAnimation","WebkitAnimationDelay","WebkitAnimationDirection","WebkitAnimationDuration","WebkitAnimationFillMode","WebkitAnimationIterationCount","WebkitAnimationName","WebkitAnimationPlayState","WebkitAnimationTimingFunction","WebkitAppearance","WebkitAppRegion","WebkitBackdropFilter","WebkitBackfaceVisibility","WebkitBackgroundClip","WebkitBackgroundOrigin","WebkitBackgroundSize","WebkitBorderBefore","WebkitBorderBeforeColor","WebkitBorderBeforeStyle","WebkitBorderBeforeWidth","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius","WebkitBorderImage","WebkitBorderImageSlice","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBoxDecorationBreak","WebkitBoxReflect","WebkitBoxShadow","WebkitBoxSizing","WebkitClipPath","WebkitColumnCount","WebkitColumnFill","WebkitColumnRule","WebkitColumnRuleColor","WebkitColumnRuleStyle","WebkitColumnRuleWidth","WebkitColumnSpan","WebkitColumnWidth","WebkitColumns","WebkitFilter","WebkitFlex","WebkitFlexBasis","WebkitFlexDirection","WebkitFlexFlow","WebkitFlexGrow","WebkitFlexShrink","WebkitFlexWrap","WebkitFontFeatureSettings","WebkitFontKerning","WebkitFontSmoothing","WebkitFontVariantLigatures","WebkitHyphenateCharacter","WebkitHyphens","WebkitInitialLetter","WebkitJustifyContent","WebkitLineBreak","WebkitLineClamp","WebkitMarginEnd","WebkitMarginStart","WebkitMask","WebkitMaskAttachment","WebkitMaskBoxImage","WebkitMaskBoxImageOutset","WebkitMaskBoxImageRepeat","WebkitMaskBoxImageSlice","WebkitMaskBoxImageSource","WebkitMaskBoxImageWidth","WebkitMaskClip","WebkitMaskComposite","WebkitMaskImage","WebkitMaskOrigin","WebkitMaskPosition","WebkitMaskPositionX","WebkitMaskPositionY","WebkitMaskRepeat","WebkitMaskRepeatX","WebkitMaskRepeatY","WebkitMaskSize","WebkitMaxInlineSize","WebkitOrder","WebkitOverflowScrolling","WebkitPaddingEnd","WebkitPaddingStart","WebkitPerspective","WebkitPerspectiveOrigin","WebkitPrintColorAdjust","WebkitRubyPosition","WebkitScrollSnapType","WebkitShapeMargin","WebkitTapHighlightColor","WebkitTextCombine","WebkitTextDecorationColor","WebkitTextDecorationLine","WebkitTextDecorationSkip","WebkitTextDecorationStyle","WebkitTextEmphasis","WebkitTextEmphasisColor","WebkitTextEmphasisPosition","WebkitTextEmphasisStyle","WebkitTextFillColor","WebkitTextOrientation","WebkitTextSizeAdjust","WebkitTextStroke","WebkitTextStrokeColor","WebkitTextStrokeWidth","WebkitTextUnderlinePosition","WebkitTouchCallout","WebkitTransform","WebkitTransformOrigin","WebkitTransformStyle","WebkitTransition","WebkitTransitionDelay","WebkitTransitionDuration","WebkitTransitionProperty","WebkitTransitionTimingFunction","WebkitUserModify","WebkitUserSelect","WebkitWritingMode","accentColor","alignContent","alignItems","alignSelf","alignTracks","all","animation","animationComposition","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","blockOverflow","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderEndEndRadius","borderEndStartRadius","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderInline","borderInlineColor","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineStyle","borderInlineWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStartEndRadius","borderStartStartRadius","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caret","caretColor","caretShape","clear","clipPath","color","colorAdjust","colorScheme","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","counterSet","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontOpticalSizing","fontPalette","fontSize","fontSizeAdjust","fontSmooth","fontStretch","fontStyle","fontSynthesis","fontSynthesisPosition","fontSynthesisSmallCaps","fontSynthesisStyle","fontSynthesisWeight","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantEmoji","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontVariationSettings","fontWeight","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","hangingPunctuation","height","hyphenateCharacter","hyphenateLimitChars","hyphens","imageOrientation","imageRendering","imageResolution","initialLetter","inlineSize","inputSecurity","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","isolation","justifyContent","justifyItems","justifySelf","justifyTracks","left","letterSpacing","lineBreak","lineClamp","lineHeight","lineHeightStep","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBlock","marginBlockEnd","marginBlockStart","marginBottom","marginInline","marginInlineEnd","marginInlineStart","marginLeft","marginRight","marginTop","marginTrim","mask","maskBorder","maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","masonryAutoFlow","mathDepth","mathShift","mathStyle","maxBlockSize","maxHeight","maxInlineSize","maxLines","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","motion","motionDistance","motionPath","motionRotation","msAccelerator","msBlockProgression","msContentZoomChaining","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msFilter","msFlex","msFlexDirection","msFlexPositive","msFlowFrom","msFlowInto","msGridColumns","msGridRows","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImeAlign","msLineBreak","msOrder","msOverflowStyle","msOverflowX","msOverflowY","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msScrollbar3dlightColor","msScrollbarArrowColor","msScrollbarBaseColor","msScrollbarDarkshadowColor","msScrollbarFaceColor","msScrollbarHighlightColor","msScrollbarShadowColor","msScrollbarTrackColor","msTextAutospace","msTextCombineHorizontal","msTextOverflow","msTouchAction","msTouchSelect","msTransform","msTransformOrigin","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUserSelect","msWordBreak","msWrapFlow","msWrapMargin","msWrapThrough","msWritingMode","objectFit","objectPosition","offset","offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate","offsetRotation","opacity","order","orphans","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowBlock","overflowClipBox","overflowClipMargin","overflowInline","overflowWrap","overflowX","overflowY","overlay","overscrollBehavior","overscrollBehaviorBlock","overscrollBehaviorInline","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingBottom","paddingInline","paddingInlineEnd","paddingInlineStart","paddingLeft","paddingRight","paddingTop","page","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","printColorAdjust","quotes","resize","right","rotate","rowGap","rubyAlign","rubyMerge","rubyPosition","scale","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapMargin","scrollSnapMarginBottom","scrollSnapMarginLeft","scrollSnapMarginRight","scrollSnapMarginTop","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textCombineUpright","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkip","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textEmphasis","textEmphasisColor","textEmphasisPosition","textEmphasisStyle","textIndent","textJustify","textOrientation","textOverflow","textRendering","textShadow","textSizeAdjust","textTransform","textUnderlineOffset","textUnderlinePosition","textWrap","timelineScope","top","touchAction","transform","transformBox","transformOrigin","transformStyle","transition","transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionName","visibility","whiteSpace","whiteSpaceCollapse","whiteSpaceTrim","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex","zoom"]);exports.default=e;
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("./helper/react-is.helper.cjs"),s=require("./helper/common.helper.cjs"),n=require("./components/styled-renderer.client.cjs"),r=require("./constant/common.const.cjs"),o=require("./util/mount-tracker.util.cjs"),i=require("./components/meonode-unmounter.client.cjs"),l=require("./util/navigation-cache-manager.util.cjs"),a=require("./util/node.util.cjs"),c=require("./util/server-emotion.util.cjs"),d=require("./util/server-theme.util.cjs"),h=require("./util/theme.util.cjs"),m=Object.defineProperty,u=(e,t,s)=>((e,t,s)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s)(e,"symbol"!=typeof t?t+"":t,s);const p=Symbol.for("@meonode/ui/BaseNode/elementCache"),g=Symbol.for("@meonode/ui/BaseNode/navigationStarted"),y=Symbol.for("@meonode/ui/BaseNode/renderContextPool"),f=Symbol.for("@meonode/ui/BaseNode/cacheCleanupRegistry"),C=class m{constructor(e,n={},r){if(u(this,"instanceId","m"+ ++m._idCounter),u(this,"element"),u(this,"rawProps",{}),u(this,"isBaseNode",!0),u(this,"_props"),u(this,"_deps"),u(this,"stableKey"),u(this,"lastPropsObj"),u(this,"lastSignature"),!t.isValidElementType(e)){const t=s.getComponentType(e);if(a.NodeUtil.isNodeInstance(e))throw new Error("Invalid element type: MeoNode UI instance provided!");throw new Error(`Invalid element type: ${t} provided!`)}if(this.element=e,this.rawProps=n,this._deps=r,a.NodeUtil.isServer&&a.NodeUtil.providesServerTheme(e)){const e=n.theme;if(e&&"object"==typeof e&&"system"in e){const t=e;d.setActiveServerTheme(t),d.registerServerThemeVariables(t)}}const{ref:o,children:i,...c}=n;this.stableKey=this._getStableKey(c),a.NodeUtil.isServer||m._navigationStarted||(l.NavigationCacheManagerUtil.getInstance().start(),m._navigationStarted=!0)}static get elementCache(){return s.getGlobalState(p,()=>new Map)}static get _navigationStarted(){return s.getGlobalState(g,()=>({value:!1})).value}static set _navigationStarted(e){s.getGlobalState(g,()=>({value:!1})).value=e}static get renderContextPool(){return s.getGlobalState(y,()=>[])}static acquireRenderContext(){const e=m.renderContextPool;return e.length>0?e.pop():{workStack:new Array(512),renderedElements:new Map}}static releaseRenderContext(e){m.renderContextPool.length<50&&e.workStack.length<2048&&(e.workStack.length=0,e.renderedElements.clear(),m.renderContextPool.push(e))}get props(){return this._props||(this._props=a.NodeUtil.processProps(this.rawProps,this.stableKey)),this._props}get dependencies(){return this._deps}_getStableKey({key:e,...t}){if(a.NodeUtil.isServer)return;if(this.lastPropsObj===t)return this.lastSignature;this.lastPropsObj=t;const n=Object.keys(t),o=n.length;if(o>100){const e=a.NodeUtil.extractCriticalProps(t,n);this.lastSignature=a.NodeUtil.createPropSignature(this.element,e),r.__DEBUG__&&o>200&&console.warn(`MeoNode: Large props (${o} keys) on "${s.getElementTypeName(this.element)}". Consider splitting.`)}else this.lastSignature=a.NodeUtil.createPropSignature(this.element,t);return null!=e?`${String(e)}:${this.lastSignature}`:this.lastSignature}static get cacheCleanupRegistry(){return s.getGlobalState(f,()=>new FinalizationRegistry(e=>{const{cacheKey:t,instanceId:s}=e,n=m.elementCache.get(t);n?.instanceId===s&&m.elementCache.delete(t),o.MountTrackerUtil.isMounted(t)&&o.MountTrackerUtil.untrackMount(t)}))}render(r=!1){const o=a.NodeUtil.shouldCacheElement(this)?m.elementCache.get(this.stableKey):void 0,l=a.NodeUtil.shouldNodeUpdate(o?.prevDeps,this._deps,r);if(!l&&o?.renderedElement)return o.accessCount+=1,o.renderedElement;const u=!l,p=m.acquireRenderContext();let{workStack:g}=p;const{renderedElements:y}=p;let f=0;try{const r=e=>{if(e>g.length){const t=Math.max(e,g.length<<1),s=new Array(t);for(let e=0;e<f;e++)s[e]=g[e];g=s}};for(g[f++]={node:this,isProcessed:!1,blocked:u,theme:void 0};f>0;){const o=g[f-1];if(!o){f--;continue}const{node:i,isProcessed:l,blocked:u,theme:p}=o,C=(e,t)=>{const s=e.theme;return s&&"object"==typeof s&&"system"in s?s:t??d.getActiveServerTheme()};if(l){f--;const{children:r,key:o,css:l,nativeProps:u,disableEmotion:g,...N}=i.props,v=C(i.props,p);let S=[];if(r){const e=Array.isArray(r)?r:[r],t=e.length;S=new Array(t);for(let s=0;s<t;s++){const t=e[s];if(a.NodeUtil.isNodeInstance(t)){const e=y.get(t);if(!e)throw new Error(`[MeoNode] Missing rendered element for child node: ${t.stableKey}`);S[s]=e}else S[s]=t}}const b=d.replaceThemeTokensWithCssVars({...N,key:o,...u});let U;if(i.element===e.Fragment||t.isFragment(i.element))U=e.createElement(i.element,{key:o},...S);else{const t=!g&&(l||!s.hasNoStyleTag(i.element))&&Object.keys(l||{}).length>0,r=a.NodeUtil.isServer&&"string"!=typeof i.element,o=t&&r&&a.NodeUtil.isClientReference(i.element);if(t&&!r||o){const t=a.NodeUtil.isServer?d.replaceThemeTokensWithCssVars(l):l;U=e.createElement(n.default,{element:i.element,...b,css:t},...S)}else if(t&&r&&!a.NodeUtil.acceptsServerCss(i.element)){const t=h.ThemeUtil.resolveObjWithTheme(d.replaceThemeTokensWithCssVars(l),v,{processFunctions:!0}),s=h.ThemeUtil.resolveDefaultStyle(t),n=c.compileServerEmotionClassName(s),r=[b.className,n].filter(Boolean).join(" ")||void 0,o=r?{...b,className:r}:b;U=e.createElement(i.element,o,...S)}else{const s=t&&(!r||a.NodeUtil.acceptsServerCss(i.element))?{...b,css:l}:b;U=e.createElement(i.element,s,...S)}}if(i!==this&&a.NodeUtil.shouldCacheElement(i)){const e=m.elementCache.get(i.stableKey);if(e)e.prevDeps=i._deps,e.renderedElement=U,e.accessCount+=1;else{const e={prevDeps:i._deps,renderedElement:U,nodeRef:new WeakRef(i),createdAt:Date.now(),accessCount:1,instanceId:i.instanceId};m.elementCache.set(i.stableKey,e),m.cacheCleanupRegistry.register(i,{cacheKey:i.stableKey,instanceId:i.instanceId},i)}}y.set(i,U)}else{o.isProcessed=!0;const e=i.props.children,t=C(i.props,p);if(e){const s=Array.isArray(e)?e:[e];let n=0;for(let e=0;e<s.length;e++)a.NodeUtil.isNodeInstance(s[e])&&n++;r(f+n);for(let e=s.length-1;e>=0;e--){const n=s[e];if(!a.NodeUtil.isNodeInstance(n))continue;const r=a.NodeUtil.shouldCacheElement(n)?m.elementCache.get(n.stableKey):void 0,o=a.NodeUtil.shouldNodeUpdate(r?.prevDeps,n._deps,u);if(!o&&r?.renderedElement){y.set(n,r.renderedElement);continue}const i=u||!o;g[f++]={node:n,isProcessed:!1,blocked:i,theme:t}}}}}let o=y.get(this);if(!a.NodeUtil.isServer&&this.stableKey&&(o=e.createElement(i.default,{node:this},o)),a.NodeUtil.shouldCacheElement(this)){const e=m.elementCache.get(this.stableKey);if(e)e.prevDeps=this._deps,e.renderedElement=o,e.accessCount+=1;else{const e={prevDeps:this._deps,renderedElement:o,nodeRef:new WeakRef(this),createdAt:Date.now(),accessCount:1,instanceId:this.instanceId};m.elementCache.set(this.stableKey,e),m.cacheCleanupRegistry.register(this,{cacheKey:this.stableKey,instanceId:this.instanceId},this)}}return o}finally{for(let e=0;e<f;e++)g[e]=null;m.releaseRenderContext({workStack:g,renderedElements:y})}}static clearCaches(){const e=Array.from(m.elementCache.keys());r.__DEBUG__&&console.log(`[MeoNode] clearCaches: Clearing ${e.length} entries`);for(const t of e){const e=m.elementCache.get(t);if(e){const s=e.nodeRef?.deref();if(s)try{m.cacheCleanupRegistry.unregister(s),s.lastSignature=void 0,s.lastPropsObj=void 0}catch{r.__DEBUG__&&console.warn(`[MeoNode] Could not unregister ${t} from FinalizationRegistry`)}}}m.elementCache.clear(),o.MountTrackerUtil.cleanup(),r.__DEBUG__&&console.log("[MeoNode] All caches cleared")}};u(C,"_idCounter",0);let N=C;function v(e,t={},s){return new N(e,t,s)}v.clearCaches=N.clearCaches,exports.BaseNode=N,exports.Node=v,exports.createChildrenFirstNode=function(e,t){const s=(s,n,r)=>v(e,{...t,...n,children:s},r);return s.element=e,s},exports.createNode=function(e,t){const s=(s,n)=>v(e,{...t,...s},n);return s.element=e,s};
1
+ "use strict";var e=require("react"),t=require("./helper/react-is.helper.cjs"),s=require("./helper/common.helper.cjs"),n=require("./components/styled-renderer.client.cjs"),r=require("./constant/common.const.cjs"),o=require("./util/mount-tracker.util.cjs"),i=require("./components/meonode-unmounter.client.cjs"),l=require("./util/navigation-cache-manager.util.cjs"),a=require("./util/node.util.cjs"),c=require("./util/server-emotion.util.cjs"),d=require("./util/server-theme.util.cjs"),h=require("./util/theme.util.cjs");const m=Symbol.for("@meonode/ui/BaseNode/elementCache"),u=Symbol.for("@meonode/ui/BaseNode/navigationStarted"),p=Symbol.for("@meonode/ui/BaseNode/renderContextPool"),g=Symbol.for("@meonode/ui/BaseNode/cacheCleanupRegistry");class y{static _idCounter=0;instanceId="m"+ ++y._idCounter;element;rawProps={};isBaseNode=!0;_props;_deps;stableKey;lastPropsObj;lastSignature;static get elementCache(){return s.getGlobalState(m,()=>new Map)}static get _navigationStarted(){return s.getGlobalState(u,()=>({value:!1})).value}static set _navigationStarted(e){s.getGlobalState(u,()=>({value:!1})).value=e}static get renderContextPool(){return s.getGlobalState(p,()=>[])}static acquireRenderContext(){const e=y.renderContextPool;return e.length>0?e.pop():{workStack:new Array(512),renderedElements:new Map}}static releaseRenderContext(e){y.renderContextPool.length<50&&e.workStack.length<2048&&(e.workStack.length=0,e.renderedElements.clear(),y.renderContextPool.push(e))}constructor(e,n={},r){if(!t.isValidElementType(e)){const t=s.getComponentType(e);if(a.NodeUtil.isNodeInstance(e))throw new Error("Invalid element type: MeoNode UI instance provided!");throw new Error(`Invalid element type: ${t} provided!`)}if(this.element=e,this.rawProps=n,this._deps=r,a.NodeUtil.isServer&&a.NodeUtil.providesServerTheme(e)){const e=n.theme;if(e&&"object"==typeof e&&"system"in e){const t=e;d.setActiveServerTheme(t),d.registerServerThemeVariables(t)}}const{ref:o,children:i,...c}=n;this.stableKey=this._getStableKey(c),a.NodeUtil.isServer||y._navigationStarted||(l.NavigationCacheManagerUtil.getInstance().start(),y._navigationStarted=!0)}get props(){return this._props||(this._props=a.NodeUtil.processProps(this.rawProps,this.stableKey)),this._props}get dependencies(){return this._deps}_getStableKey({key:e,...t}){if(a.NodeUtil.isServer)return;if(this.lastPropsObj===t)return this.lastSignature;this.lastPropsObj=t;const n=Object.keys(t),o=n.length;if(o>100){const e=a.NodeUtil.extractCriticalProps(t,n);this.lastSignature=a.NodeUtil.createPropSignature(this.element,e),r.__DEBUG__&&o>200&&console.warn(`MeoNode: Large props (${o} keys) on "${s.getElementTypeName(this.element)}". Consider splitting.`)}else this.lastSignature=a.NodeUtil.createPropSignature(this.element,t);return null!=e?`${String(e)}:${this.lastSignature}`:this.lastSignature}static get cacheCleanupRegistry(){return s.getGlobalState(g,()=>new FinalizationRegistry(e=>{const{cacheKey:t,instanceId:s}=e,n=y.elementCache.get(t);n?.instanceId===s&&y.elementCache.delete(t),o.MountTrackerUtil.isMounted(t)&&o.MountTrackerUtil.untrackMount(t)}))}render(r=!1){const o=a.NodeUtil.shouldCacheElement(this)?y.elementCache.get(this.stableKey):void 0,l=a.NodeUtil.shouldNodeUpdate(o?.prevDeps,this._deps,r);if(!l&&o?.renderedElement)return o.accessCount+=1,o.renderedElement;const m=!l,u=y.acquireRenderContext();let{workStack:p}=u;const{renderedElements:g}=u;let f=0;try{const r=e=>{if(e>p.length){const t=Math.max(e,p.length<<1),s=new Array(t);for(let e=0;e<f;e++)s[e]=p[e];p=s}};for(p[f++]={node:this,isProcessed:!1,blocked:m,theme:void 0};f>0;){const o=p[f-1];if(!o){f--;continue}const{node:i,isProcessed:l,blocked:m,theme:u}=o,C=(e,t)=>{const s=e.theme;return s&&"object"==typeof s&&"system"in s?s:t??d.getActiveServerTheme()};if(l){f--;const{children:r,key:o,css:l,nativeProps:m,disableEmotion:p,...N}=i.props,v=C(i.props,u);let S=[];if(r){const e=Array.isArray(r)?r:[r],t=e.length;S=new Array(t);for(let s=0;s<t;s++){const t=e[s];if(a.NodeUtil.isNodeInstance(t)){const e=g.get(t);if(!e)throw new Error(`[MeoNode] Missing rendered element for child node: ${t.stableKey}`);S[s]=e}else S[s]=t}}const b=d.replaceThemeTokensWithCssVars({...N,key:o,...m});let U;if(i.element===e.Fragment||t.isFragment(i.element))U=e.createElement(i.element,{key:o},...S);else{const t=!p&&(l||!s.hasNoStyleTag(i.element))&&Object.keys(l||{}).length>0,r=a.NodeUtil.isServer&&"string"!=typeof i.element,o=t&&r&&a.NodeUtil.isClientReference(i.element);if(t&&!r||o){const t=a.NodeUtil.isServer?d.replaceThemeTokensWithCssVars(l):l;U=e.createElement(n.default,{element:i.element,...b,css:t},...S)}else if(t&&r&&!a.NodeUtil.acceptsServerCss(i.element)){const t=h.ThemeUtil.resolveObjWithTheme(d.replaceThemeTokensWithCssVars(l),v,{processFunctions:!0}),s=h.ThemeUtil.resolveDefaultStyle(t),n=c.compileServerEmotionClassName(s),r=[b.className,n].filter(Boolean).join(" ")||void 0,o=r?{...b,className:r}:b;U=e.createElement(i.element,o,...S)}else{const s=t&&(!r||a.NodeUtil.acceptsServerCss(i.element))?{...b,css:l}:b;U=e.createElement(i.element,s,...S)}}if(i!==this&&a.NodeUtil.shouldCacheElement(i)){const e=y.elementCache.get(i.stableKey);if(e)e.prevDeps=i._deps,e.renderedElement=U,e.accessCount+=1;else{const e={prevDeps:i._deps,renderedElement:U,nodeRef:new WeakRef(i),createdAt:Date.now(),accessCount:1,instanceId:i.instanceId};y.elementCache.set(i.stableKey,e),y.cacheCleanupRegistry.register(i,{cacheKey:i.stableKey,instanceId:i.instanceId},i)}}g.set(i,U)}else{o.isProcessed=!0;const e=i.props.children,t=C(i.props,u);if(e){const s=Array.isArray(e)?e:[e];let n=0;for(let e=0;e<s.length;e++)a.NodeUtil.isNodeInstance(s[e])&&n++;r(f+n);for(let e=s.length-1;e>=0;e--){const n=s[e];if(!a.NodeUtil.isNodeInstance(n))continue;const r=a.NodeUtil.shouldCacheElement(n)?y.elementCache.get(n.stableKey):void 0,o=a.NodeUtil.shouldNodeUpdate(r?.prevDeps,n._deps,m);if(!o&&r?.renderedElement){g.set(n,r.renderedElement);continue}const i=m||!o;p[f++]={node:n,isProcessed:!1,blocked:i,theme:t}}}}}let o=g.get(this);if(!a.NodeUtil.isServer&&this.stableKey&&(o=e.createElement(i.default,{node:this},o)),a.NodeUtil.shouldCacheElement(this)){const e=y.elementCache.get(this.stableKey);if(e)e.prevDeps=this._deps,e.renderedElement=o,e.accessCount+=1;else{const e={prevDeps:this._deps,renderedElement:o,nodeRef:new WeakRef(this),createdAt:Date.now(),accessCount:1,instanceId:this.instanceId};y.elementCache.set(this.stableKey,e),y.cacheCleanupRegistry.register(this,{cacheKey:this.stableKey,instanceId:this.instanceId},this)}}return o}finally{for(let e=0;e<f;e++)p[e]=null;y.releaseRenderContext({workStack:p,renderedElements:g})}}static clearCaches(){const e=Array.from(y.elementCache.keys());r.__DEBUG__&&console.log(`[MeoNode] clearCaches: Clearing ${e.length} entries`);for(const t of e){const e=y.elementCache.get(t);if(e){const s=e.nodeRef?.deref();if(s)try{y.cacheCleanupRegistry.unregister(s),s.lastSignature=void 0,s.lastPropsObj=void 0}catch{r.__DEBUG__&&console.warn(`[MeoNode] Could not unregister ${t} from FinalizationRegistry`)}}}y.elementCache.clear(),o.MountTrackerUtil.cleanup(),r.__DEBUG__&&console.log("[MeoNode] All caches cleared")}}function f(e,t={},s){return new y(e,t,s)}f.clearCaches=y.clearCaches,exports.BaseNode=y,exports.Node=f,exports.createChildrenFirstNode=function(e,t){const s=(s,n,r)=>f(e,{...t,...n,children:s},r);return s.element=e,s},exports.createNode=function(e,t){const s=(s,n)=>f(e,{...t,...s},n);return s.element=e,s};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var e=require("react"),t=require("../components/theme-provider.client.cjs");exports.useTheme=()=>{const s=e.useContext(t.ThemeContext);if(!s)throw new Error("useTheme must be used within a ThemeProvider");const{theme:m}=s;return e.useEffect(()=>{const e=localStorage.getItem("theme");e&&e===m.mode||localStorage.setItem("theme",m.mode);const t=document.documentElement;"dark"===m.mode?(t.setAttribute("data-theme","dark"),t.classList.add("dark-theme"),t.classList.remove("light-theme")):(t.setAttribute("data-theme","light"),t.classList.add("light-theme"),t.classList.remove("dark-theme"))},[m.mode,m.system]),s};
2
+ "use strict";var e=require("react"),t=require("../components/theme-provider.client.cjs");exports.useTheme=()=>{const s=e.useContext(t.ThemeContext);if(!s)throw new Error("useTheme must be used within a ThemeProvider");const{theme:m}=s;return e.useEffect(()=>{const e=globalThis.localStorage;if(e&&"function"==typeof e.getItem&&"function"==typeof e.setItem){const t=e.getItem("theme");t&&t===m.mode||e.setItem("theme",m.mode)}const t=document.documentElement;"dark"===m.mode?(t.setAttribute("data-theme","dark"),t.classList.add("dark-theme"),t.classList.remove("light-theme")):(t.setAttribute("data-theme","light"),t.classList.add("light-theme"),t.classList.remove("dark-theme"))},[m.mode,m.system]),s};
@@ -1 +1 @@
1
- "use strict";var t=require("../constant/common.const.cjs"),n=Object.defineProperty,e=(t,e,o)=>((t,e,o)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o)(t,"symbol"!=typeof e?e+"":e,o);class o{constructor(){}static isMounted(t){return(this._mountedCounts.get(t)||0)>0}static trackMount(n){const e=this._mountedCounts.get(n)||0;this._mountedCounts.set(n,e+1),t.__DEBUG__&&this._unmountCallCount.delete(n)}static untrackMount(n){const e=this._mountedCounts.get(n)||0;if(e>0){const t=e-1;return 0===t?this._mountedCounts.delete(n):this._mountedCounts.set(n,t),t>0}if(t.__DEBUG__){const t=(this._unmountCallCount.get(n)||0)+1;this._unmountCallCount.set(n,t),t>1&&console.warn(`[MeoNode] untrackMount called ${t} times for an already unmounted node: ${n}. This could indicate a memory leak or a bug in a component's lifecycle.`)}return!1}static cleanup(){this._mountedCounts.clear(),t.__DEBUG__&&this._unmountCallCount.clear()}}e(o,"_mountedCounts",new Map),e(o,"_unmountCallCount",new Map),exports.MountTrackerUtil=o;
1
+ "use strict";var t=require("../constant/common.const.cjs");exports.MountTrackerUtil=class{constructor(){}static _mountedCounts=new Map;static _unmountCallCount=new Map;static isMounted(t){return(this._mountedCounts.get(t)||0)>0}static trackMount(n){const o=this._mountedCounts.get(n)||0;this._mountedCounts.set(n,o+1),t.__DEBUG__&&this._unmountCallCount.delete(n)}static untrackMount(n){const o=this._mountedCounts.get(n)||0;if(o>0){const t=o-1;return 0===t?this._mountedCounts.delete(n):this._mountedCounts.set(n,t),t>0}if(t.__DEBUG__){const t=(this._unmountCallCount.get(n)||0)+1;this._unmountCallCount.set(n,t),t>1&&console.warn(`[MeoNode] untrackMount called ${t} times for an already unmounted node: ${n}. This could indicate a memory leak or a bug in a component's lifecycle.`)}return!1}static cleanup(){this._mountedCounts.clear(),t.__DEBUG__&&this._unmountCallCount.clear()}};
@@ -1 +1 @@
1
- "use strict";var e=require("../constant/common.const.cjs"),t=require("../core.node.cjs"),i=require("./mount-tracker.util.cjs"),a=Object.defineProperty,n=(e,t,i)=>((e,t,i)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,"symbol"!=typeof t?t+"":t,i);const s=class a{constructor(){n(this,"_isListening",!1),n(this,"_cleanupTimeout",null),n(this,"_handleNavigation",()=>{this._cleanupTimeout&&clearTimeout(this._cleanupTimeout);const a=t.BaseNode.elementCache.size,n=a<100?50:a<500?100:200;this._cleanupTimeout=setTimeout(()=>{let a=0;t.BaseNode.elementCache.keys().forEach(e=>{i.MountTrackerUtil.isMounted(e)||(t.BaseNode.elementCache.delete(e),a++)}),e.__DEBUG__&&console.log(`[MeoNode] Navigation: cleared ${a} unmounted elements`)},n)})}static getInstance(){return this._instance||(this._instance=new a),this._instance}start(){this._isListening||"undefined"==typeof window||(this._isListening=!0,window.addEventListener("popstate",this._handleNavigation),this._patchHistoryMethods(),this._setupAutoCleanup(),e.__DEBUG__&&console.log("[MeoNode] NavigationCacheManagerUtil started"))}_stop(){this._isListening&&"undefined"!=typeof window&&(window.removeEventListener("popstate",this._handleNavigation),this._cleanupTimeout&&(clearTimeout(this._cleanupTimeout),this._cleanupTimeout=null),this._isListening=!1,e.__DEBUG__&&console.log("[MeoNode] NavigationCacheManagerUtil stopped"))}_patchHistoryMethods(){a._isPatched||(a._originalPushState=history.pushState,a._originalReplaceState=history.replaceState,history.pushState=(...e)=>{a._originalPushState.apply(history,e),this._handleNavigation()},history.replaceState=(...e)=>{a._originalReplaceState.apply(history,e),this._handleNavigation()},a._isPatched=!0)}_setupAutoCleanup(){window.__MEONODE_CLEANUP_REGISTERED||(window.addEventListener("beforeunload",()=>{this._stop(),t.BaseNode.clearCaches()}),window.__MEONODE_CLEANUP_REGISTERED=!0)}};n(s,"_instance",null),n(s,"_originalPushState",null),n(s,"_originalReplaceState",null),n(s,"_isPatched",!1);let o=s;exports.NavigationCacheManagerUtil=o;
1
+ "use strict";var e=require("../constant/common.const.cjs"),t=require("../core.node.cjs"),i=require("./mount-tracker.util.cjs");class a{constructor(){}static _instance=null;static _originalPushState=null;static _originalReplaceState=null;static _isPatched=!1;_isListening=!1;_cleanupTimeout=null;static getInstance(){return this._instance||(this._instance=new a),this._instance}start(){this._isListening||"undefined"==typeof window||(this._isListening=!0,window.addEventListener("popstate",this._handleNavigation),this._patchHistoryMethods(),this._setupAutoCleanup(),e.__DEBUG__&&console.log("[MeoNode] NavigationCacheManagerUtil started"))}_stop(){this._isListening&&"undefined"!=typeof window&&(window.removeEventListener("popstate",this._handleNavigation),this._cleanupTimeout&&(clearTimeout(this._cleanupTimeout),this._cleanupTimeout=null),this._isListening=!1,e.__DEBUG__&&console.log("[MeoNode] NavigationCacheManagerUtil stopped"))}_handleNavigation=()=>{this._cleanupTimeout&&clearTimeout(this._cleanupTimeout);const a=t.BaseNode.elementCache.size,n=a<100?50:a<500?100:200;this._cleanupTimeout=setTimeout(()=>{let a=0;t.BaseNode.elementCache.keys().forEach(e=>{i.MountTrackerUtil.isMounted(e)||(t.BaseNode.elementCache.delete(e),a++)}),e.__DEBUG__&&console.log(`[MeoNode] Navigation: cleared ${a} unmounted elements`)},n)};_patchHistoryMethods(){a._isPatched||(a._originalPushState=history.pushState,a._originalReplaceState=history.replaceState,history.pushState=(...e)=>{a._originalPushState.apply(history,e),this._handleNavigation()},history.replaceState=(...e)=>{a._originalReplaceState.apply(history,e),this._handleNavigation()},a._isPatched=!0)}_setupAutoCleanup(){window.__MEONODE_CLEANUP_REGISTERED||(window.addEventListener("beforeunload",()=>{this._stop(),t.BaseNode.clearCaches()}),window.__MEONODE_CLEANUP_REGISTERED=!0)}}exports.NavigationCacheManagerUtil=a;
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("../helper/react-is.helper.cjs"),r=require("../helper/common.helper.cjs"),o=require("../constant/common.const.cjs"),n=require("../core.node.cjs"),s=Object.defineProperty,i=(e,t,r)=>((e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);const c=Symbol.for("@meonode/ui/NodeUtil/functionSignatureCache"),a=class s{constructor(){}static readBooleanFlag(e,t){if("function"!=typeof e)return!1;try{return!0===e[t]}catch{return!1}}static get _functionSignatureCache(){return r.getGlobalState(c,()=>new WeakMap)}static isClientReference(e){if(!e||"object"!=typeof e&&"function"!=typeof e)return!1;try{return e.$$typeof===Symbol.for("react.client.reference")}catch{return!1}}static acceptsServerCss(e){return s.readBooleanFlag(e,"__meonodeAcceptsServerCss")}static providesServerTheme(e){return s.readBooleanFlag(e,"__meonodeProvidesServerTheme")}static hashString(e){let t=2166136261,r=5381;for(let o=0;o<e.length;o++){const n=e.charCodeAt(o);t^=n,t=Math.imul(t,16777619),r=Math.imul(r,33)^n}return`${(t>>>0).toString(36)}_${(r>>>0).toString(36)}`}static hashCSS(e){const t=Object.keys(e);let r=t.length;for(let o=0;o<Math.min(t.length,10);o++){const n=t[o],s=e[n];r=(r<<5)-r+n.charCodeAt(0),r&=r,"string"==typeof s&&(r=(r<<5)-r+s.length)}return r.toString(36)}static createPropSignature(e,t){if(s.isServer)return;const o=r.getElementTypeName(e),n=Object.keys(t);n.length>1&&n.sort();const i=[`${o}:`];if("function"==typeof e){let t=s._functionSignatureCache.get(e);t||(t=s.hashString(e.toString()),s._functionSignatureCache.set(e,t)),i.push(t)}for(const e of n){const r=t[e];let o;const n=typeof r;if("string"===n||"number"===n||"boolean"===n)o=`${e}:${r};`;else if(null===r)o=`${e}:null;`;else if(void 0===r)o=`${e}:undefined;`;else if("css"===e&&"object"==typeof r)o=`css:${this.hashCSS(r)};`;else if(Array.isArray(r)){const t=r.filter(e=>{const t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===e});o=t.length===r.length?`${e}:[${t.join(",")}];`:`${e}:[${r.length}];`}else if(r&&r.isBaseNode)o=`${e}:${r.stableKey};`;else if("function"===n){let t=s._propFuncCache.get(r);t||(t=s.hashString(r.toString()),s._propFuncCache.set(r,t)),o=`${e}:${t};`}else{o=`${e}:{${Object.keys(r).sort().join(",")}};`}i.push(o)}return s.hashString(i.join(","))}static extractCriticalProps(e,t){const r={_keyCount:t.length};let o=0;for(const n of t){if(o>=50)break;if(s.CRITICAL_PROPS.has(n)){r[n]=e[n],o++;continue}const i=n.charCodeAt(0);111!==i||110!==n.charCodeAt(1)?!(97===i&&114===n.charCodeAt(1)&&105===n.charCodeAt(2)&&97===n.charCodeAt(3)||100===i&&97===n.charCodeAt(1)&&116===n.charCodeAt(2)&&97===n.charCodeAt(3))?t.length<=100&&s.isStyleProp(n)&&(r[n]=e[n],o++):(r[n]=e[n],o++):(r[n]=e[n],o++)}return r}static processProps(e={},t){const{ref:o,key:n,children:i,css:c,props:a={},disableEmotion:l,...d}=e;if(0===Object.keys(d).length&&!c)return r.omitUndefined({ref:o,key:n,disableEmotion:l,nativeProps:r.omitUndefined(a),children:s._processChildren(i,l)});const f={},p={},u=Object.keys(d);for(let e=0;e<u.length;e++){const t=u[e],r=d[t],o=typeof r;"string"===o||"number"===o||"boolean"===o?f[t]=r:p[t]=r}const y=r.getCSSProps(f),m=r.getCSSProps(p),h=r.getDOMProps(d),b={...y,...m,...c},g=s._processChildren(i,l,t);return r.omitUndefined({ref:o,key:n,css:b,...h,disableEmotion:l,nativeProps:r.omitUndefined(a),children:g})}static _processChildren(e,t,r){if(e)return"function"==typeof e?e:Array.isArray(e)?1===e.length?s.processRawNode(e[0],t,`${r}_0`):e.map((e,o)=>s.processRawNode(e,t,`${r}_${o}`)):s.processRawNode(e,t,r)}static shouldCacheElement(e){return!s.isServer&&!!e.stableKey&&!!e.dependencies}static shouldNodeUpdate(e,t,r){if(s.isServer)return!0;if(r)return!1;if(void 0===t)return!0;if(void 0===e)return!0;if(t.length!==e.length)return!0;for(let r=0;r<t.length;r++)if(!Object.is(t[r],e[r]))return!0;return!1}static processRawNode(r,o,i){if(null==r||"string"==typeof r||"number"==typeof r||"boolean"==typeof r)return r;if(s.isNodeInstance(r)){if(i||o&&!r.rawProps.disableEmotion){const e=new n.BaseNode(r.element,r.rawProps,r.dependencies);return e.stableKey=`${i}:${e.stableKey}`,o&&!e.rawProps.disableEmotion&&(e.rawProps.disableEmotion=!0),e}return r}if(s.isFunctionChild(r))return new n.BaseNode(s.functionRenderer,{props:{render:r,disableEmotion:o}},void 0);if(e.isValidElement(r)){const e=r.type;if(e&&"object"==typeof e){const t=e.$$typeof;if(t===Symbol.for("react.client.reference")||t===Symbol.for("react.lazy")||t===Symbol.for("react.memo")||t===Symbol.for("react.forward_ref"))return r}if("string"==typeof r.type){const{style:e,...t}=r.props,s={...t,...e||{}};return new n.BaseNode(r.type,{...s,...null!==r.key&&void 0!==r.key?{key:r.key}:{},disableEmotion:o},void 0)}return new n.BaseNode(r.type,{...r.props,...null!==r.key&&void 0!==r.key?{key:r.key}:{},disableEmotion:o},void 0)}return t.isReactClassComponent(r)||t.isMemo(r)||t.isForwardRef(r)?new n.BaseNode(r,{disableEmotion:o},void 0):r instanceof e.Component?s.processRawNode(r.render(),o,i):r}static isFunctionChild(e){if("function"!=typeof e||t.isReactClassComponent(e)||t.isMemo(e)||t.isForwardRef(e))return!1;try{return!(e.prototype&&"function"==typeof e.prototype.render)}catch(e){return o.__DEBUG__&&console.error("MeoNode: Error checking if a node is a function child.",e),!0}}static functionRenderer({render:t,disableEmotion:i}){let c;try{c=t()}catch(e){o.__DEBUG__&&console.error("MeoNode: Error executing function-as-a-child.",e),c=null}if(null==c||"string"==typeof c||"number"==typeof c||"boolean"==typeof c)return c;if(s.isNodeInstance(c))return i&&!c.rawProps.disableEmotion?new n.BaseNode(c.element,{...c.rawProps,disableEmotion:!0}).render():c.render();if(Array.isArray(c)){const e=(e,t)=>{try{return`${r.getElementTypeName(e)}-${t}`}catch(e){return o.__DEBUG__&&console.error("MeoNode: Could not determine element type name for key in function-as-a-child.",e),`item-${t}`}};return c.map((t,r)=>s.renderProcessedNode({processedElement:s.processRawNode(t,i),passedKey:e(t,r),disableEmotion:i}))}if(c instanceof e.Component)return s.renderProcessedNode({processedElement:s.processRawNode(c.render(),i),disableEmotion:i});const a=s.processRawNode(c,i);return a?s.renderProcessedNode({processedElement:a,disableEmotion:i}):c}static renderProcessedNode({processedElement:r,passedKey:o,disableEmotion:i}){const c={};if(void 0!==o&&(c.key=o),s.isNodeInstance(r)){const e=r.rawProps?.key;return r.rawProps.disableEmotion=i,e===o?r.render():new n.BaseNode(r.element,{...r.rawProps,...c}).render()}return t.isReactClassComponent(r)?new n.BaseNode(r,{...c,disableEmotion:i}).render():r instanceof e.Component?r.render():"function"==typeof r?e.createElement(r,{key:o}):r}};i(a,"isServer","undefined"==typeof window),i(a,"CRITICAL_PROPS",new Set(["css","className","disableEmotion","props"])),i(a,"_propFuncCache",new WeakMap),i(a,"isNodeInstance",e=>e instanceof n.BaseNode),i(a,"isStyleProp",a.isServer||"undefined"==typeof document?()=>!1:e=>e in document.body.style);let l=a;exports.NodeUtil=l;
1
+ "use strict";var e=require("react"),t=require("../helper/react-is.helper.cjs"),r=require("../helper/common.helper.cjs"),o=require("../constant/common.const.cjs"),n=require("../core.node.cjs");const s=Symbol.for("@meonode/ui/NodeUtil/functionSignatureCache");class i{constructor(){}static readBooleanFlag(e,t){if("function"!=typeof e)return!1;try{return!0===e[t]}catch{return!1}}static isServer="undefined"==typeof window;static get _functionSignatureCache(){return r.getGlobalState(s,()=>new WeakMap)}static CRITICAL_PROPS=new Set(["css","className","disableEmotion","props"]);static _propFuncCache=new WeakMap;static isClientReference(e){if(!e||"object"!=typeof e&&"function"!=typeof e)return!1;try{return e.$$typeof===Symbol.for("react.client.reference")}catch{return!1}}static acceptsServerCss(e){return i.readBooleanFlag(e,"__meonodeAcceptsServerCss")}static providesServerTheme(e){return i.readBooleanFlag(e,"__meonodeProvidesServerTheme")}static isNodeInstance=e=>e instanceof n.BaseNode;static isStyleProp=i.isServer||"undefined"==typeof document?()=>!1:e=>e in document.body.style;static hashString(e){let t=2166136261,r=5381;for(let o=0;o<e.length;o++){const n=e.charCodeAt(o);t^=n,t=Math.imul(t,16777619),r=Math.imul(r,33)^n}return`${(t>>>0).toString(36)}_${(r>>>0).toString(36)}`}static hashCSS(e){const t=Object.keys(e);let r=t.length;for(let o=0;o<Math.min(t.length,10);o++){const n=t[o],s=e[n];r=(r<<5)-r+n.charCodeAt(0),r&=r,"string"==typeof s&&(r=(r<<5)-r+s.length)}return r.toString(36)}static createPropSignature(e,t){if(i.isServer)return;const o=r.getElementTypeName(e),n=Object.keys(t);n.length>1&&n.sort();const s=[`${o}:`];if("function"==typeof e){let t=i._functionSignatureCache.get(e);t||(t=i.hashString(e.toString()),i._functionSignatureCache.set(e,t)),s.push(t)}for(const e of n){const r=t[e];let o;const n=typeof r;if("string"===n||"number"===n||"boolean"===n)o=`${e}:${r};`;else if(null===r)o=`${e}:null;`;else if(void 0===r)o=`${e}:undefined;`;else if("css"===e&&"object"==typeof r)o=`css:${this.hashCSS(r)};`;else if(Array.isArray(r)){const t=r.filter(e=>{const t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===e});o=t.length===r.length?`${e}:[${t.join(",")}];`:`${e}:[${r.length}];`}else if(r&&r.isBaseNode)o=`${e}:${r.stableKey};`;else if("function"===n){let t=i._propFuncCache.get(r);t||(t=i.hashString(r.toString()),i._propFuncCache.set(r,t)),o=`${e}:${t};`}else{o=`${e}:{${Object.keys(r).sort().join(",")}};`}s.push(o)}return i.hashString(s.join(","))}static extractCriticalProps(e,t){const r={_keyCount:t.length};let o=0;for(const n of t){if(o>=50)break;if(i.CRITICAL_PROPS.has(n)){r[n]=e[n],o++;continue}const s=n.charCodeAt(0);111!==s||110!==n.charCodeAt(1)?!(97===s&&114===n.charCodeAt(1)&&105===n.charCodeAt(2)&&97===n.charCodeAt(3)||100===s&&97===n.charCodeAt(1)&&116===n.charCodeAt(2)&&97===n.charCodeAt(3))?t.length<=100&&i.isStyleProp(n)&&(r[n]=e[n],o++):(r[n]=e[n],o++):(r[n]=e[n],o++)}return r}static processProps(e={},t){const{ref:o,key:n,children:s,css:c,props:a={},disableEmotion:d,...l}=e;if(0===Object.keys(l).length&&!c)return r.omitUndefined({ref:o,key:n,disableEmotion:d,nativeProps:r.omitUndefined(a),children:i._processChildren(s,d)});const f={},p={},u=Object.keys(l);for(let e=0;e<u.length;e++){const t=u[e],r=l[t],o=typeof r;"string"===o||"number"===o||"boolean"===o?f[t]=r:p[t]=r}const y=r.getCSSProps(f),m=r.getCSSProps(p),h=r.getDOMProps(l),b={...y,...m,...c},g=i._processChildren(s,d,t);return r.omitUndefined({ref:o,key:n,css:b,...h,disableEmotion:d,nativeProps:r.omitUndefined(a),children:g})}static _processChildren(e,t,r){if(e)return"function"==typeof e?e:Array.isArray(e)?1===e.length?i.processRawNode(e[0],t,`${r}_0`):e.map((e,o)=>i.processRawNode(e,t,`${r}_${o}`)):i.processRawNode(e,t,r)}static shouldCacheElement(e){return!i.isServer&&!!e.stableKey&&!!e.dependencies}static shouldNodeUpdate(e,t,r){if(i.isServer)return!0;if(r)return!1;if(void 0===t)return!0;if(void 0===e)return!0;if(t.length!==e.length)return!0;for(let r=0;r<t.length;r++)if(!Object.is(t[r],e[r]))return!0;return!1}static processRawNode(r,o,s){if(null==r||"string"==typeof r||"number"==typeof r||"boolean"==typeof r)return r;if(i.isNodeInstance(r)){if(s||o&&!r.rawProps.disableEmotion){const e=new n.BaseNode(r.element,r.rawProps,r.dependencies);return e.stableKey=`${s}:${e.stableKey}`,o&&!e.rawProps.disableEmotion&&(e.rawProps.disableEmotion=!0),e}return r}if(i.isFunctionChild(r))return new n.BaseNode(i.functionRenderer,{props:{render:r,disableEmotion:o}},void 0);if(e.isValidElement(r)){const e=r.type;if(e&&"object"==typeof e){const t=e.$$typeof;if(t===Symbol.for("react.client.reference")||t===Symbol.for("react.lazy")||t===Symbol.for("react.memo")||t===Symbol.for("react.forward_ref"))return r}if("string"==typeof r.type){const{style:e,...t}=r.props,s={...t,...e||{}};return new n.BaseNode(r.type,{...s,...null!==r.key&&void 0!==r.key?{key:r.key}:{},disableEmotion:o},void 0)}return new n.BaseNode(r.type,{...r.props,...null!==r.key&&void 0!==r.key?{key:r.key}:{},disableEmotion:o},void 0)}return t.isReactClassComponent(r)||t.isMemo(r)||t.isForwardRef(r)?new n.BaseNode(r,{disableEmotion:o},void 0):r instanceof e.Component?i.processRawNode(r.render(),o,s):r}static isFunctionChild(e){if("function"!=typeof e||t.isReactClassComponent(e)||t.isMemo(e)||t.isForwardRef(e))return!1;try{return!(e.prototype&&"function"==typeof e.prototype.render)}catch(e){return o.__DEBUG__&&console.error("MeoNode: Error checking if a node is a function child.",e),!0}}static functionRenderer({render:t,disableEmotion:s}){let c;try{c=t()}catch(e){o.__DEBUG__&&console.error("MeoNode: Error executing function-as-a-child.",e),c=null}if(null==c||"string"==typeof c||"number"==typeof c||"boolean"==typeof c)return c;if(i.isNodeInstance(c))return s&&!c.rawProps.disableEmotion?new n.BaseNode(c.element,{...c.rawProps,disableEmotion:!0}).render():c.render();if(Array.isArray(c)){const e=(e,t)=>{try{return`${r.getElementTypeName(e)}-${t}`}catch(e){return o.__DEBUG__&&console.error("MeoNode: Could not determine element type name for key in function-as-a-child.",e),`item-${t}`}};return c.map((t,r)=>i.renderProcessedNode({processedElement:i.processRawNode(t,s),passedKey:e(t,r),disableEmotion:s}))}if(c instanceof e.Component)return i.renderProcessedNode({processedElement:i.processRawNode(c.render(),s),disableEmotion:s});const a=i.processRawNode(c,s);return a?i.renderProcessedNode({processedElement:a,disableEmotion:s}):c}static renderProcessedNode({processedElement:r,passedKey:o,disableEmotion:s}){const c={};if(void 0!==o&&(c.key=o),i.isNodeInstance(r)){const e=r.rawProps?.key;return r.rawProps.disableEmotion=s,e===o?r.render():new n.BaseNode(r.element,{...r.rawProps,...c}).render()}return t.isReactClassComponent(r)?new n.BaseNode(r,{...c,disableEmotion:s}).render():r instanceof e.Component?r.render():"function"==typeof r?e.createElement(r,{key:o}):r}}exports.NodeUtil=i;
@@ -1 +1 @@
1
- "use strict";var e=require("../helper/common.helper.cjs"),t=Object.defineProperty,r=(e,r,l)=>((e,r,l)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[r]=l)(e,"symbol"!=typeof r?r+"":r,l);const l=class{constructor(){}static parseFlexShorthand(e){if(null==e)return null;if("number"==typeof e)return{grow:e,shrink:1,basis:"0%"};if("string"!=typeof e)return null;const t=e.trim().toLowerCase();if(!t)return null;switch(t){case"none":return{grow:0,shrink:0,basis:"auto"};case"auto":return{grow:1,shrink:1,basis:"auto"};case"initial":return{grow:0,shrink:1,basis:"auto"};default:return null}}};r(l,"isPlainObject",e=>{if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}),r(l,"resolveObjWithTheme",(t,r,n={})=>{const{processFunctions:s=!1,themeStringsMode:o="resolve"}=n;if(!r||!r.system||"object"!=typeof r.system||0===Object.keys(r.system).length||!t||0===Object.keys(t).length)return t;const i=r.system,a=[{value:t,isProcessed:!1}],u=new Map,c=new Set,f=/theme\.([a-zA-Z0-9_.-]+)/g,p=(t,r)=>{f.lastIndex=0;let l=!1;const n=t.replace(f,(t,n)=>{if(r)return l=!0,`var(${s=n,`--meonode-theme-${s.replace(/[^\w.-]/g,"-").replace(/\./g,"-")}`})`;var s;const o=e.getValueByPath(i,n);if(null!=o){if(l=!0,"object"==typeof o){if(!Array.isArray(o)&&"default"in o)return o.default;throw new Error("The provided theme path is invalid!")}return o}return t});return l?n:t};for(;a.length>0;){const e=a[a.length-1],t=e.value;if(l.isPlainObject(t)||Array.isArray(t))if(u.has(t))a.pop();else if(e.isProcessed){a.pop(),c.delete(t);let e=t;if(Array.isArray(t)){let r=null;for(let e=0;e<t.length;e++){const l=t[e],n=u.get(l)??l;n!==l&&(null===r&&(r=[...t]),r[e]=n)}null!==r&&(e=r)}else{let l=null;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];let i=u.get(n)??n,a=e;"string"==typeof e&&e.includes("theme.")&&(a=p(e,!1));const c="vars"===o;if("function"==typeof i&&s){const e=i(r);i="string"==typeof e&&e.includes("theme.")?p(e,c):e}else"string"==typeof i&&i.includes("theme.")&&(i=p(i,c));i===n&&a===e||(null===l&&(l={...t}),a!==e&&delete l[e],l[a]=i)}null!==l&&(e=l)}u.set(t,e)}else{e.isProcessed=!0,c.add(t);const r=Array.isArray(t)?t:Object.values(t);for(let e=r.length-1;e>=0;e--){const t=r[e];!l.isPlainObject(t)&&!Array.isArray(t)||c.has(t)||a.push({value:t,isProcessed:!1})}}else a.pop()}return u.get(t)??t}),r(l,"resolveDefaultStyle",e=>{if(null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e)return{};const{flex:t,...r}=e,n="flex"===r.display||"inline-flex"===r.display,s=!!(r.overflow||r.overflowY||r.overflowX),o=r.flexFlow?.includes("wrap")||"wrap"===r.flexWrap||"wrap-reverse"===r.flexWrap,i="flexShrink"in e&&void 0!==e.flexShrink,a=t?l.parseFlexShorthand(t):null;let u;if(!i)if(a)u=a.shrink;else if(n){if(!s){const e="column"===r.flexDirection||"column-reverse"===r.flexDirection,t="row"===r.flexDirection||"row-reverse"===r.flexDirection||!r.flexDirection;(e&&!o||t&&!o)&&(u=0)}}else u=0;return{flex:t,flexShrink:u,minHeight:0,minWidth:0,...r}});let n=l;exports.ThemeUtil=n;
1
+ "use strict";var e=require("../helper/common.helper.cjs");class t{constructor(){}static parseFlexShorthand(e){if(null==e)return null;if("number"==typeof e)return{grow:e,shrink:1,basis:"0%"};if("string"!=typeof e)return null;const t=e.trim().toLowerCase();if(!t)return null;switch(t){case"none":return{grow:0,shrink:0,basis:"auto"};case"auto":return{grow:1,shrink:1,basis:"auto"};case"initial":return{grow:0,shrink:1,basis:"auto"};default:return null}}static isPlainObject=e=>{if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype};static resolveObjWithTheme=(r,l,s={})=>{const{processFunctions:n=!1,themeStringsMode:i="resolve"}=s;if(!l||!l.system||"object"!=typeof l.system||0===Object.keys(l.system).length||!r||0===Object.keys(r).length)return r;const o=l.system,a=[{value:r,isProcessed:!1}],c=new Map,u=new Set,f=/theme\.([a-zA-Z0-9_.-]+)/g,p=(t,r)=>{f.lastIndex=0;let l=!1;const s=t.replace(f,(t,s)=>{if(r)return l=!0,`var(${n=s,`--meonode-theme-${n.replace(/[^\w.-]/g,"-").replace(/\./g,"-")}`})`;var n;const i=e.getValueByPath(o,s);if(null!=i){if(l=!0,"object"==typeof i){if(!Array.isArray(i)&&"default"in i)return i.default;throw new Error("The provided theme path is invalid!")}return i}return t});return l?s:t};for(;a.length>0;){const e=a[a.length-1],r=e.value;if(t.isPlainObject(r)||Array.isArray(r))if(c.has(r))a.pop();else if(e.isProcessed){a.pop(),u.delete(r);let e=r;if(Array.isArray(r)){let t=null;for(let e=0;e<r.length;e++){const l=r[e],s=c.get(l)??l;s!==l&&(null===t&&(t=[...r]),t[e]=s)}null!==t&&(e=t)}else{let t=null;for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const s=r[e];let o=c.get(s)??s,a=e;"string"==typeof e&&e.includes("theme.")&&(a=p(e,!1));const u="vars"===i;if("function"==typeof o&&n){const e=o(l);o="string"==typeof e&&e.includes("theme.")?p(e,u):e}else"string"==typeof o&&o.includes("theme.")&&(o=p(o,u));o===s&&a===e||(null===t&&(t={...r}),a!==e&&delete t[e],t[a]=o)}null!==t&&(e=t)}c.set(r,e)}else{e.isProcessed=!0,u.add(r);const l=Array.isArray(r)?r:Object.values(r);for(let e=l.length-1;e>=0;e--){const r=l[e];!t.isPlainObject(r)&&!Array.isArray(r)||u.has(r)||a.push({value:r,isProcessed:!1})}}else a.pop()}return c.get(r)??r};static resolveDefaultStyle=e=>{if(null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e)return{};const{flex:r,...l}=e,s="flex"===l.display||"inline-flex"===l.display,n=!!(l.overflow||l.overflowY||l.overflowX),i=l.flexFlow?.includes("wrap")||"wrap"===l.flexWrap||"wrap-reverse"===l.flexWrap,o="flexShrink"in e&&void 0!==e.flexShrink,a=r?t.parseFlexShorthand(r):null;let c;if(!o)if(a)c=a.shrink;else if(s){if(!n){const e="column"===l.flexDirection||"column-reverse"===l.flexDirection,t="row"===l.flexDirection||"row-reverse"===l.flexDirection||!l.flexDirection;(e&&!i||t&&!i)&&(c=0)}}else c=0;return{flex:r,flexShrink:c,minHeight:0,minWidth:0,...l}}}exports.ThemeUtil=t;
@@ -1 +1 @@
1
- const o=new Set(["MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBinding","MozBorderBottomColors","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStartColor","MozBorderStartStyle","MozBorderTopColors","MozBoxSizing","MozColumnCount","MozColumnFill","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContextProperties","MozFontFeatureSettings","MozFontLanguageOverride","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozOrient","MozOsxFontSmoothing","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozStackSizing","MozTabSize","MozTextBlink","MozTextSizeAdjust","MozUserFocus","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","WebkitAlignContent","WebkitAlignItems","WebkitAlignSelf","WebkitAnimation","WebkitAnimationDelay","WebkitAnimationDirection","WebkitAnimationDuration","WebkitAnimationFillMode","WebkitAnimationIterationCount","WebkitAnimationName","WebkitAnimationPlayState","WebkitAnimationTimingFunction","WebkitAppearance","WebkitBackdropFilter","WebkitBackfaceVisibility","WebkitBackgroundClip","WebkitBackgroundOrigin","WebkitBackgroundSize","WebkitBorderBefore","WebkitBorderBeforeColor","WebkitBorderBeforeStyle","WebkitBorderBeforeWidth","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius","WebkitBorderImage","WebkitBorderImageSlice","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBoxDecorationBreak","WebkitBoxReflect","WebkitBoxShadow","WebkitBoxSizing","WebkitClipPath","WebkitColumnCount","WebkitColumnFill","WebkitColumnRule","WebkitColumnRuleColor","WebkitColumnRuleStyle","WebkitColumnRuleWidth","WebkitColumnSpan","WebkitColumnWidth","WebkitColumns","WebkitFilter","WebkitFlex","WebkitFlexBasis","WebkitFlexDirection","WebkitFlexFlow","WebkitFlexGrow","WebkitFlexShrink","WebkitFlexWrap","WebkitFontFeatureSettings","WebkitFontKerning","WebkitFontSmoothing","WebkitFontVariantLigatures","WebkitHyphenateCharacter","WebkitHyphens","WebkitInitialLetter","WebkitJustifyContent","WebkitLineBreak","WebkitLineClamp","WebkitMarginEnd","WebkitMarginStart","WebkitMask","WebkitMaskAttachment","WebkitMaskBoxImage","WebkitMaskBoxImageOutset","WebkitMaskBoxImageRepeat","WebkitMaskBoxImageSlice","WebkitMaskBoxImageSource","WebkitMaskBoxImageWidth","WebkitMaskClip","WebkitMaskComposite","WebkitMaskImage","WebkitMaskOrigin","WebkitMaskPosition","WebkitMaskPositionX","WebkitMaskPositionY","WebkitMaskRepeat","WebkitMaskRepeatX","WebkitMaskRepeatY","WebkitMaskSize","WebkitMaxInlineSize","WebkitOrder","WebkitOverflowScrolling","WebkitPaddingEnd","WebkitPaddingStart","WebkitPerspective","WebkitPerspectiveOrigin","WebkitPrintColorAdjust","WebkitRubyPosition","WebkitScrollSnapType","WebkitShapeMargin","WebkitTapHighlightColor","WebkitTextCombine","WebkitTextDecorationColor","WebkitTextDecorationLine","WebkitTextDecorationSkip","WebkitTextDecorationStyle","WebkitTextEmphasis","WebkitTextEmphasisColor","WebkitTextEmphasisPosition","WebkitTextEmphasisStyle","WebkitTextFillColor","WebkitTextOrientation","WebkitTextSizeAdjust","WebkitTextStroke","WebkitTextStrokeColor","WebkitTextStrokeWidth","WebkitTextUnderlinePosition","WebkitTouchCallout","WebkitTransform","WebkitTransformOrigin","WebkitTransformStyle","WebkitTransition","WebkitTransitionDelay","WebkitTransitionDuration","WebkitTransitionProperty","WebkitTransitionTimingFunction","WebkitUserModify","WebkitUserSelect","WebkitWritingMode","accentColor","alignContent","alignItems","alignSelf","alignTracks","all","animation","animationComposition","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","blockOverflow","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderEndEndRadius","borderEndStartRadius","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderInline","borderInlineColor","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineStyle","borderInlineWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStartEndRadius","borderStartStartRadius","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caret","caretColor","caretShape","clear","clipPath","color","colorAdjust","colorScheme","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","counterSet","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontOpticalSizing","fontPalette","fontSize","fontSizeAdjust","fontSmooth","fontStretch","fontStyle","fontSynthesis","fontSynthesisPosition","fontSynthesisSmallCaps","fontSynthesisStyle","fontSynthesisWeight","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantEmoji","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontVariationSettings","fontWeight","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","hangingPunctuation","height","hyphenateCharacter","hyphenateLimitChars","hyphens","imageOrientation","imageRendering","imageResolution","initialLetter","inlineSize","inputSecurity","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","isolation","justifyContent","justifyItems","justifySelf","justifyTracks","left","letterSpacing","lineBreak","lineClamp","lineHeight","lineHeightStep","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBlock","marginBlockEnd","marginBlockStart","marginBottom","marginInline","marginInlineEnd","marginInlineStart","marginLeft","marginRight","marginTop","marginTrim","mask","maskBorder","maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","masonryAutoFlow","mathDepth","mathShift","mathStyle","maxBlockSize","maxHeight","maxInlineSize","maxLines","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","motion","motionDistance","motionPath","motionRotation","msAccelerator","msBlockProgression","msContentZoomChaining","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msFilter","msFlex","msFlexDirection","msFlexPositive","msFlowFrom","msFlowInto","msGridColumns","msGridRows","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImeAlign","msLineBreak","msOrder","msOverflowStyle","msOverflowX","msOverflowY","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msScrollbar3dlightColor","msScrollbarArrowColor","msScrollbarBaseColor","msScrollbarDarkshadowColor","msScrollbarFaceColor","msScrollbarHighlightColor","msScrollbarShadowColor","msScrollbarTrackColor","msTextAutospace","msTextCombineHorizontal","msTextOverflow","msTouchAction","msTouchSelect","msTransform","msTransformOrigin","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUserSelect","msWordBreak","msWrapFlow","msWrapMargin","msWrapThrough","msWritingMode","objectFit","objectPosition","offset","offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate","offsetRotation","opacity","order","orphans","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowBlock","overflowClipBox","overflowClipMargin","overflowInline","overflowWrap","overflowX","overflowY","overlay","overscrollBehavior","overscrollBehaviorBlock","overscrollBehaviorInline","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingBottom","paddingInline","paddingInlineEnd","paddingInlineStart","paddingLeft","paddingRight","paddingTop","page","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","printColorAdjust","quotes","resize","right","rotate","rowGap","rubyAlign","rubyMerge","rubyPosition","scale","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapMargin","scrollSnapMarginBottom","scrollSnapMarginLeft","scrollSnapMarginRight","scrollSnapMarginTop","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textCombineUpright","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkip","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textEmphasis","textEmphasisColor","textEmphasisPosition","textEmphasisStyle","textIndent","textJustify","textOrientation","textOverflow","textRendering","textShadow","textSizeAdjust","textTransform","textUnderlineOffset","textUnderlinePosition","textWrap","timelineScope","top","touchAction","transform","transformBox","transformOrigin","transformStyle","transition","transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionName","visibility","whiteSpace","whiteSpaceCollapse","whiteSpaceTrim","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex","zoom"]);export{o as default};
1
+ const i=new Set(["MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBinding","MozBorderBottomColors","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStartColor","MozBorderStartStyle","MozBorderTopColors","MozBoxSizing","MozColumnCount","MozColumnFill","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContextProperties","MozFontFeatureSettings","MozFontLanguageOverride","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozOrient","MozOsxFontSmoothing","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozStackSizing","MozTabSize","MozTextBlink","MozTextSizeAdjust","MozUserFocus","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","WebkitAlignContent","WebkitAlignItems","WebkitAlignSelf","WebkitAnimation","WebkitAnimationDelay","WebkitAnimationDirection","WebkitAnimationDuration","WebkitAnimationFillMode","WebkitAnimationIterationCount","WebkitAnimationName","WebkitAnimationPlayState","WebkitAnimationTimingFunction","WebkitAppearance","WebkitAppRegion","WebkitBackdropFilter","WebkitBackfaceVisibility","WebkitBackgroundClip","WebkitBackgroundOrigin","WebkitBackgroundSize","WebkitBorderBefore","WebkitBorderBeforeColor","WebkitBorderBeforeStyle","WebkitBorderBeforeWidth","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius","WebkitBorderImage","WebkitBorderImageSlice","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBoxDecorationBreak","WebkitBoxReflect","WebkitBoxShadow","WebkitBoxSizing","WebkitClipPath","WebkitColumnCount","WebkitColumnFill","WebkitColumnRule","WebkitColumnRuleColor","WebkitColumnRuleStyle","WebkitColumnRuleWidth","WebkitColumnSpan","WebkitColumnWidth","WebkitColumns","WebkitFilter","WebkitFlex","WebkitFlexBasis","WebkitFlexDirection","WebkitFlexFlow","WebkitFlexGrow","WebkitFlexShrink","WebkitFlexWrap","WebkitFontFeatureSettings","WebkitFontKerning","WebkitFontSmoothing","WebkitFontVariantLigatures","WebkitHyphenateCharacter","WebkitHyphens","WebkitInitialLetter","WebkitJustifyContent","WebkitLineBreak","WebkitLineClamp","WebkitMarginEnd","WebkitMarginStart","WebkitMask","WebkitMaskAttachment","WebkitMaskBoxImage","WebkitMaskBoxImageOutset","WebkitMaskBoxImageRepeat","WebkitMaskBoxImageSlice","WebkitMaskBoxImageSource","WebkitMaskBoxImageWidth","WebkitMaskClip","WebkitMaskComposite","WebkitMaskImage","WebkitMaskOrigin","WebkitMaskPosition","WebkitMaskPositionX","WebkitMaskPositionY","WebkitMaskRepeat","WebkitMaskRepeatX","WebkitMaskRepeatY","WebkitMaskSize","WebkitMaxInlineSize","WebkitOrder","WebkitOverflowScrolling","WebkitPaddingEnd","WebkitPaddingStart","WebkitPerspective","WebkitPerspectiveOrigin","WebkitPrintColorAdjust","WebkitRubyPosition","WebkitScrollSnapType","WebkitShapeMargin","WebkitTapHighlightColor","WebkitTextCombine","WebkitTextDecorationColor","WebkitTextDecorationLine","WebkitTextDecorationSkip","WebkitTextDecorationStyle","WebkitTextEmphasis","WebkitTextEmphasisColor","WebkitTextEmphasisPosition","WebkitTextEmphasisStyle","WebkitTextFillColor","WebkitTextOrientation","WebkitTextSizeAdjust","WebkitTextStroke","WebkitTextStrokeColor","WebkitTextStrokeWidth","WebkitTextUnderlinePosition","WebkitTouchCallout","WebkitTransform","WebkitTransformOrigin","WebkitTransformStyle","WebkitTransition","WebkitTransitionDelay","WebkitTransitionDuration","WebkitTransitionProperty","WebkitTransitionTimingFunction","WebkitUserModify","WebkitUserSelect","WebkitWritingMode","accentColor","alignContent","alignItems","alignSelf","alignTracks","all","animation","animationComposition","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","blockOverflow","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderEndEndRadius","borderEndStartRadius","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderInline","borderInlineColor","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineStyle","borderInlineWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStartEndRadius","borderStartStartRadius","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caret","caretColor","caretShape","clear","clipPath","color","colorAdjust","colorScheme","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","counterSet","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontOpticalSizing","fontPalette","fontSize","fontSizeAdjust","fontSmooth","fontStretch","fontStyle","fontSynthesis","fontSynthesisPosition","fontSynthesisSmallCaps","fontSynthesisStyle","fontSynthesisWeight","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantEmoji","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontVariationSettings","fontWeight","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","hangingPunctuation","height","hyphenateCharacter","hyphenateLimitChars","hyphens","imageOrientation","imageRendering","imageResolution","initialLetter","inlineSize","inputSecurity","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","isolation","justifyContent","justifyItems","justifySelf","justifyTracks","left","letterSpacing","lineBreak","lineClamp","lineHeight","lineHeightStep","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBlock","marginBlockEnd","marginBlockStart","marginBottom","marginInline","marginInlineEnd","marginInlineStart","marginLeft","marginRight","marginTop","marginTrim","mask","maskBorder","maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","masonryAutoFlow","mathDepth","mathShift","mathStyle","maxBlockSize","maxHeight","maxInlineSize","maxLines","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","motion","motionDistance","motionPath","motionRotation","msAccelerator","msBlockProgression","msContentZoomChaining","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msFilter","msFlex","msFlexDirection","msFlexPositive","msFlowFrom","msFlowInto","msGridColumns","msGridRows","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImeAlign","msLineBreak","msOrder","msOverflowStyle","msOverflowX","msOverflowY","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msScrollbar3dlightColor","msScrollbarArrowColor","msScrollbarBaseColor","msScrollbarDarkshadowColor","msScrollbarFaceColor","msScrollbarHighlightColor","msScrollbarShadowColor","msScrollbarTrackColor","msTextAutospace","msTextCombineHorizontal","msTextOverflow","msTouchAction","msTouchSelect","msTransform","msTransformOrigin","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUserSelect","msWordBreak","msWrapFlow","msWrapMargin","msWrapThrough","msWritingMode","objectFit","objectPosition","offset","offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate","offsetRotation","opacity","order","orphans","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowBlock","overflowClipBox","overflowClipMargin","overflowInline","overflowWrap","overflowX","overflowY","overlay","overscrollBehavior","overscrollBehaviorBlock","overscrollBehaviorInline","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingBottom","paddingInline","paddingInlineEnd","paddingInlineStart","paddingLeft","paddingRight","paddingTop","page","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","printColorAdjust","quotes","resize","right","rotate","rowGap","rubyAlign","rubyMerge","rubyPosition","scale","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapMargin","scrollSnapMarginBottom","scrollSnapMarginLeft","scrollSnapMarginRight","scrollSnapMarginTop","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textCombineUpright","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkip","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textEmphasis","textEmphasisColor","textEmphasisPosition","textEmphasisStyle","textIndent","textJustify","textOrientation","textOverflow","textRendering","textShadow","textSizeAdjust","textTransform","textUnderlineOffset","textUnderlinePosition","textWrap","timelineScope","top","touchAction","transform","transformBox","transformOrigin","transformStyle","transition","transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionName","visibility","whiteSpace","whiteSpaceCollapse","whiteSpaceTrim","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex","zoom"]);export{i as default};
@@ -1 +1 @@
1
- import{Fragment as e,createElement as t}from"react";import{isValidElementType as n,isFragment as s}from"./helper/react-is.helper.js";import{getComponentType as r,getGlobalState as o,hasNoStyleTag as i,getElementTypeName as l}from"./helper/common.helper.js";import a from"./components/styled-renderer.client.js";import{__DEBUG__ as c}from"./constant/common.const.js";import{MountTrackerUtil as d}from"./util/mount-tracker.util.js";import h from"./components/meonode-unmounter.client.js";import{NavigationCacheManagerUtil as m}from"./util/navigation-cache-manager.util.js";import{NodeUtil as p}from"./util/node.util.js";import{compileServerEmotionClassName as u}from"./util/server-emotion.util.js";import{setActiveServerTheme as f,registerServerThemeVariables as g,getActiveServerTheme as y,replaceThemeTokensWithCssVars as C}from"./util/server-theme.util.js";import{ThemeUtil as v}from"./util/theme.util.js";var b=Object.defineProperty,S=(e,t,n)=>((e,t,n)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);const w=Symbol.for("@meonode/ui/BaseNode/elementCache"),k=Symbol.for("@meonode/ui/BaseNode/navigationStarted"),j=Symbol.for("@meonode/ui/BaseNode/renderContextPool"),P=Symbol.for("@meonode/ui/BaseNode/cacheCleanupRegistry"),_=class b{constructor(e,t={},s){if(S(this,"instanceId","m"+ ++b._idCounter),S(this,"element"),S(this,"rawProps",{}),S(this,"isBaseNode",!0),S(this,"_props"),S(this,"_deps"),S(this,"stableKey"),S(this,"lastPropsObj"),S(this,"lastSignature"),!n(e)){const t=r(e);if(p.isNodeInstance(e))throw new Error("Invalid element type: MeoNode UI instance provided!");throw new Error(`Invalid element type: ${t} provided!`)}if(this.element=e,this.rawProps=t,this._deps=s,p.isServer&&p.providesServerTheme(e)){const e=t.theme;if(e&&"object"==typeof e&&"system"in e){const t=e;f(t),g(t)}}const{ref:o,children:i,...l}=t;this.stableKey=this._getStableKey(l),p.isServer||b._navigationStarted||(m.getInstance().start(),b._navigationStarted=!0)}static get elementCache(){return o(w,()=>new Map)}static get _navigationStarted(){return o(k,()=>({value:!1})).value}static set _navigationStarted(e){o(k,()=>({value:!1})).value=e}static get renderContextPool(){return o(j,()=>[])}static acquireRenderContext(){const e=b.renderContextPool;return e.length>0?e.pop():{workStack:new Array(512),renderedElements:new Map}}static releaseRenderContext(e){b.renderContextPool.length<50&&e.workStack.length<2048&&(e.workStack.length=0,e.renderedElements.clear(),b.renderContextPool.push(e))}get props(){return this._props||(this._props=p.processProps(this.rawProps,this.stableKey)),this._props}get dependencies(){return this._deps}_getStableKey({key:e,...t}){if(p.isServer)return;if(this.lastPropsObj===t)return this.lastSignature;this.lastPropsObj=t;const n=Object.keys(t),s=n.length;if(s>100){const e=p.extractCriticalProps(t,n);this.lastSignature=p.createPropSignature(this.element,e),c&&s>200&&console.warn(`MeoNode: Large props (${s} keys) on "${l(this.element)}". Consider splitting.`)}else this.lastSignature=p.createPropSignature(this.element,t);return null!=e?`${String(e)}:${this.lastSignature}`:this.lastSignature}static get cacheCleanupRegistry(){return o(P,()=>new FinalizationRegistry(e=>{const{cacheKey:t,instanceId:n}=e,s=b.elementCache.get(t);s?.instanceId===n&&b.elementCache.delete(t),d.isMounted(t)&&d.untrackMount(t)}))}render(n=!1){const r=p.shouldCacheElement(this)?b.elementCache.get(this.stableKey):void 0,o=p.shouldNodeUpdate(r?.prevDeps,this._deps,n);if(!o&&r?.renderedElement)return r.accessCount+=1,r.renderedElement;const l=!o,c=b.acquireRenderContext();let{workStack:d}=c;const{renderedElements:m}=c;let f=0;try{const n=e=>{if(e>d.length){const t=Math.max(e,d.length<<1),n=new Array(t);for(let e=0;e<f;e++)n[e]=d[e];d=n}};for(d[f++]={node:this,isProcessed:!1,blocked:l,theme:void 0};f>0;){const r=d[f-1];if(!r){f--;continue}const{node:o,isProcessed:l,blocked:c,theme:h}=r,g=(e,t)=>{const n=e.theme;return n&&"object"==typeof n&&"system"in n?n:t??y()};if(l){f--;const{children:n,key:r,css:l,nativeProps:c,disableEmotion:d,...y}=o.props,S=g(o.props,h);let w=[];if(n){const e=Array.isArray(n)?n:[n],t=e.length;w=new Array(t);for(let n=0;n<t;n++){const t=e[n];if(p.isNodeInstance(t)){const e=m.get(t);if(!e)throw new Error(`[MeoNode] Missing rendered element for child node: ${t.stableKey}`);w[n]=e}else w[n]=t}}const k=C({...y,key:r,...c});let j;if(o.element===e||s(o.element))j=t(o.element,{key:r},...w);else{const e=!d&&(l||!i(o.element))&&Object.keys(l||{}).length>0,n=p.isServer&&"string"!=typeof o.element,s=e&&n&&p.isClientReference(o.element);if(e&&!n||s){const e=p.isServer?C(l):l;j=t(a,{element:o.element,...k,css:e},...w)}else if(e&&n&&!p.acceptsServerCss(o.element)){const e=v.resolveObjWithTheme(C(l),S,{processFunctions:!0}),n=v.resolveDefaultStyle(e),s=u(n),r=[k.className,s].filter(Boolean).join(" ")||void 0,i=r?{...k,className:r}:k;j=t(o.element,i,...w)}else{const s=e&&(!n||p.acceptsServerCss(o.element))?{...k,css:l}:k;j=t(o.element,s,...w)}}if(o!==this&&p.shouldCacheElement(o)){const e=b.elementCache.get(o.stableKey);if(e)e.prevDeps=o._deps,e.renderedElement=j,e.accessCount+=1;else{const e={prevDeps:o._deps,renderedElement:j,nodeRef:new WeakRef(o),createdAt:Date.now(),accessCount:1,instanceId:o.instanceId};b.elementCache.set(o.stableKey,e),b.cacheCleanupRegistry.register(o,{cacheKey:o.stableKey,instanceId:o.instanceId},o)}}m.set(o,j)}else{r.isProcessed=!0;const e=o.props.children,t=g(o.props,h);if(e){const s=Array.isArray(e)?e:[e];let r=0;for(let e=0;e<s.length;e++)p.isNodeInstance(s[e])&&r++;n(f+r);for(let e=s.length-1;e>=0;e--){const n=s[e];if(!p.isNodeInstance(n))continue;const r=p.shouldCacheElement(n)?b.elementCache.get(n.stableKey):void 0,o=p.shouldNodeUpdate(r?.prevDeps,n._deps,c);if(!o&&r?.renderedElement){m.set(n,r.renderedElement);continue}const i=c||!o;d[f++]={node:n,isProcessed:!1,blocked:i,theme:t}}}}}let r=m.get(this);if(!p.isServer&&this.stableKey&&(r=t(h,{node:this},r)),p.shouldCacheElement(this)){const e=b.elementCache.get(this.stableKey);if(e)e.prevDeps=this._deps,e.renderedElement=r,e.accessCount+=1;else{const e={prevDeps:this._deps,renderedElement:r,nodeRef:new WeakRef(this),createdAt:Date.now(),accessCount:1,instanceId:this.instanceId};b.elementCache.set(this.stableKey,e),b.cacheCleanupRegistry.register(this,{cacheKey:this.stableKey,instanceId:this.instanceId},this)}}return r}finally{for(let e=0;e<f;e++)d[e]=null;b.releaseRenderContext({workStack:d,renderedElements:m})}}static clearCaches(){const e=Array.from(b.elementCache.keys());c&&console.log(`[MeoNode] clearCaches: Clearing ${e.length} entries`);for(const t of e){const e=b.elementCache.get(t);if(e){const n=e.nodeRef?.deref();if(n)try{b.cacheCleanupRegistry.unregister(n),n.lastSignature=void 0,n.lastPropsObj=void 0}catch{c&&console.warn(`[MeoNode] Could not unregister ${t} from FinalizationRegistry`)}}}b.elementCache.clear(),d.cleanup(),c&&console.log("[MeoNode] All caches cleared")}};S(_,"_idCounter",0);let E=_;function I(e,t={},n){return new E(e,t,n)}function N(e,t){const n=(n,s)=>I(e,{...t,...n},s);return n.element=e,n}function K(e,t){const n=(n,s,r)=>I(e,{...t,...s,children:n},r);return n.element=e,n}I.clearCaches=E.clearCaches;export{E as BaseNode,I as Node,K as createChildrenFirstNode,N as createNode};
1
+ import{Fragment as e,createElement as t}from"react";import{isValidElementType as n,isFragment as s}from"./helper/react-is.helper.js";import{getGlobalState as r,getComponentType as o,hasNoStyleTag as i,getElementTypeName as a}from"./helper/common.helper.js";import l from"./components/styled-renderer.client.js";import{__DEBUG__ as c}from"./constant/common.const.js";import{MountTrackerUtil as d}from"./util/mount-tracker.util.js";import h from"./components/meonode-unmounter.client.js";import{NavigationCacheManagerUtil as m}from"./util/navigation-cache-manager.util.js";import{NodeUtil as p}from"./util/node.util.js";import{compileServerEmotionClassName as u}from"./util/server-emotion.util.js";import{setActiveServerTheme as f,registerServerThemeVariables as g,getActiveServerTheme as y,replaceThemeTokensWithCssVars as C}from"./util/server-theme.util.js";import{ThemeUtil as v}from"./util/theme.util.js";const S=Symbol.for("@meonode/ui/BaseNode/elementCache"),b=Symbol.for("@meonode/ui/BaseNode/navigationStarted"),w=Symbol.for("@meonode/ui/BaseNode/renderContextPool"),k=Symbol.for("@meonode/ui/BaseNode/cacheCleanupRegistry");class j{static _idCounter=0;instanceId="m"+ ++j._idCounter;element;rawProps={};isBaseNode=!0;_props;_deps;stableKey;lastPropsObj;lastSignature;static get elementCache(){return r(S,()=>new Map)}static get _navigationStarted(){return r(b,()=>({value:!1})).value}static set _navigationStarted(e){r(b,()=>({value:!1})).value=e}static get renderContextPool(){return r(w,()=>[])}static acquireRenderContext(){const e=j.renderContextPool;return e.length>0?e.pop():{workStack:new Array(512),renderedElements:new Map}}static releaseRenderContext(e){j.renderContextPool.length<50&&e.workStack.length<2048&&(e.workStack.length=0,e.renderedElements.clear(),j.renderContextPool.push(e))}constructor(e,t={},s){if(!n(e)){const t=o(e);if(p.isNodeInstance(e))throw new Error("Invalid element type: MeoNode UI instance provided!");throw new Error(`Invalid element type: ${t} provided!`)}if(this.element=e,this.rawProps=t,this._deps=s,p.isServer&&p.providesServerTheme(e)){const e=t.theme;if(e&&"object"==typeof e&&"system"in e){const t=e;f(t),g(t)}}const{ref:r,children:i,...a}=t;this.stableKey=this._getStableKey(a),p.isServer||j._navigationStarted||(m.getInstance().start(),j._navigationStarted=!0)}get props(){return this._props||(this._props=p.processProps(this.rawProps,this.stableKey)),this._props}get dependencies(){return this._deps}_getStableKey({key:e,...t}){if(p.isServer)return;if(this.lastPropsObj===t)return this.lastSignature;this.lastPropsObj=t;const n=Object.keys(t),s=n.length;if(s>100){const e=p.extractCriticalProps(t,n);this.lastSignature=p.createPropSignature(this.element,e),c&&s>200&&console.warn(`MeoNode: Large props (${s} keys) on "${a(this.element)}". Consider splitting.`)}else this.lastSignature=p.createPropSignature(this.element,t);return null!=e?`${String(e)}:${this.lastSignature}`:this.lastSignature}static get cacheCleanupRegistry(){return r(k,()=>new FinalizationRegistry(e=>{const{cacheKey:t,instanceId:n}=e,s=j.elementCache.get(t);s?.instanceId===n&&j.elementCache.delete(t),d.isMounted(t)&&d.untrackMount(t)}))}render(n=!1){const r=p.shouldCacheElement(this)?j.elementCache.get(this.stableKey):void 0,o=p.shouldNodeUpdate(r?.prevDeps,this._deps,n);if(!o&&r?.renderedElement)return r.accessCount+=1,r.renderedElement;const a=!o,c=j.acquireRenderContext();let{workStack:d}=c;const{renderedElements:m}=c;let f=0;try{const n=e=>{if(e>d.length){const t=Math.max(e,d.length<<1),n=new Array(t);for(let e=0;e<f;e++)n[e]=d[e];d=n}};for(d[f++]={node:this,isProcessed:!1,blocked:a,theme:void 0};f>0;){const r=d[f-1];if(!r){f--;continue}const{node:o,isProcessed:a,blocked:c,theme:h}=r,g=(e,t)=>{const n=e.theme;return n&&"object"==typeof n&&"system"in n?n:t??y()};if(a){f--;const{children:n,key:r,css:a,nativeProps:c,disableEmotion:d,...y}=o.props,S=g(o.props,h);let b=[];if(n){const e=Array.isArray(n)?n:[n],t=e.length;b=new Array(t);for(let n=0;n<t;n++){const t=e[n];if(p.isNodeInstance(t)){const e=m.get(t);if(!e)throw new Error(`[MeoNode] Missing rendered element for child node: ${t.stableKey}`);b[n]=e}else b[n]=t}}const w=C({...y,key:r,...c});let k;if(o.element===e||s(o.element))k=t(o.element,{key:r},...b);else{const e=!d&&(a||!i(o.element))&&Object.keys(a||{}).length>0,n=p.isServer&&"string"!=typeof o.element,s=e&&n&&p.isClientReference(o.element);if(e&&!n||s){const e=p.isServer?C(a):a;k=t(l,{element:o.element,...w,css:e},...b)}else if(e&&n&&!p.acceptsServerCss(o.element)){const e=v.resolveObjWithTheme(C(a),S,{processFunctions:!0}),n=v.resolveDefaultStyle(e),s=u(n),r=[w.className,s].filter(Boolean).join(" ")||void 0,i=r?{...w,className:r}:w;k=t(o.element,i,...b)}else{const s=e&&(!n||p.acceptsServerCss(o.element))?{...w,css:a}:w;k=t(o.element,s,...b)}}if(o!==this&&p.shouldCacheElement(o)){const e=j.elementCache.get(o.stableKey);if(e)e.prevDeps=o._deps,e.renderedElement=k,e.accessCount+=1;else{const e={prevDeps:o._deps,renderedElement:k,nodeRef:new WeakRef(o),createdAt:Date.now(),accessCount:1,instanceId:o.instanceId};j.elementCache.set(o.stableKey,e),j.cacheCleanupRegistry.register(o,{cacheKey:o.stableKey,instanceId:o.instanceId},o)}}m.set(o,k)}else{r.isProcessed=!0;const e=o.props.children,t=g(o.props,h);if(e){const s=Array.isArray(e)?e:[e];let r=0;for(let e=0;e<s.length;e++)p.isNodeInstance(s[e])&&r++;n(f+r);for(let e=s.length-1;e>=0;e--){const n=s[e];if(!p.isNodeInstance(n))continue;const r=p.shouldCacheElement(n)?j.elementCache.get(n.stableKey):void 0,o=p.shouldNodeUpdate(r?.prevDeps,n._deps,c);if(!o&&r?.renderedElement){m.set(n,r.renderedElement);continue}const i=c||!o;d[f++]={node:n,isProcessed:!1,blocked:i,theme:t}}}}}let r=m.get(this);if(!p.isServer&&this.stableKey&&(r=t(h,{node:this},r)),p.shouldCacheElement(this)){const e=j.elementCache.get(this.stableKey);if(e)e.prevDeps=this._deps,e.renderedElement=r,e.accessCount+=1;else{const e={prevDeps:this._deps,renderedElement:r,nodeRef:new WeakRef(this),createdAt:Date.now(),accessCount:1,instanceId:this.instanceId};j.elementCache.set(this.stableKey,e),j.cacheCleanupRegistry.register(this,{cacheKey:this.stableKey,instanceId:this.instanceId},this)}}return r}finally{for(let e=0;e<f;e++)d[e]=null;j.releaseRenderContext({workStack:d,renderedElements:m})}}static clearCaches(){const e=Array.from(j.elementCache.keys());c&&console.log(`[MeoNode] clearCaches: Clearing ${e.length} entries`);for(const t of e){const e=j.elementCache.get(t);if(e){const n=e.nodeRef?.deref();if(n)try{j.cacheCleanupRegistry.unregister(n),n.lastSignature=void 0,n.lastPropsObj=void 0}catch{c&&console.warn(`[MeoNode] Could not unregister ${t} from FinalizationRegistry`)}}}j.elementCache.clear(),d.cleanup(),c&&console.log("[MeoNode] All caches cleared")}}function P(e,t={},n){return new j(e,t,n)}function _(e,t){const n=(n,s)=>P(e,{...t,...n},s);return n.element=e,n}function E(e,t){const n=(n,s,r)=>P(e,{...t,...s,children:n},r);return n.element=e,n}P.clearCaches=j.clearCaches;export{j as BaseNode,P as Node,E as createChildrenFirstNode,_ as createNode};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{useContext as e,useEffect as t}from"react";import{ThemeContext as m}from"../components/theme-provider.client.js";const o=()=>{const o=e(m);if(!o)throw new Error("useTheme must be used within a ThemeProvider");const{theme:s}=o;return t(()=>{const e=localStorage.getItem("theme");e&&e===s.mode||localStorage.setItem("theme",s.mode);const t=document.documentElement;"dark"===s.mode?(t.setAttribute("data-theme","dark"),t.classList.add("dark-theme"),t.classList.remove("light-theme")):(t.setAttribute("data-theme","light"),t.classList.add("light-theme"),t.classList.remove("dark-theme"))},[s.mode,s.system]),o};export{o as useTheme};
2
+ import{useContext as e,useEffect as t}from"react";import{ThemeContext as m}from"../components/theme-provider.client.js";const o=()=>{const o=e(m);if(!o)throw new Error("useTheme must be used within a ThemeProvider");const{theme:s}=o;return t(()=>{const e=globalThis.localStorage;if(e&&"function"==typeof e.getItem&&"function"==typeof e.setItem){const t=e.getItem("theme");t&&t===s.mode||e.setItem("theme",s.mode)}const t=document.documentElement;"dark"===s.mode?(t.setAttribute("data-theme","dark"),t.classList.add("dark-theme"),t.classList.remove("light-theme")):(t.setAttribute("data-theme","light"),t.classList.add("light-theme"),t.classList.remove("dark-theme"))},[s.mode,s.system]),o};export{o as useTheme};
@@ -1 +1 @@
1
- import{__DEBUG__ as t}from"../constant/common.const.js";var n=Object.defineProperty,o=(t,o,e)=>((t,o,e)=>o in t?n(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e)(t,"symbol"!=typeof o?o+"":o,e);class e{constructor(){}static isMounted(t){return(this._mountedCounts.get(t)||0)>0}static trackMount(n){const o=this._mountedCounts.get(n)||0;this._mountedCounts.set(n,o+1),t&&this._unmountCallCount.delete(n)}static untrackMount(n){const o=this._mountedCounts.get(n)||0;if(o>0){const t=o-1;return 0===t?this._mountedCounts.delete(n):this._mountedCounts.set(n,t),t>0}if(t){const t=(this._unmountCallCount.get(n)||0)+1;this._unmountCallCount.set(n,t),t>1&&console.warn(`[MeoNode] untrackMount called ${t} times for an already unmounted node: ${n}. This could indicate a memory leak or a bug in a component's lifecycle.`)}return!1}static cleanup(){this._mountedCounts.clear(),t&&this._unmountCallCount.clear()}}o(e,"_mountedCounts",new Map),o(e,"_unmountCallCount",new Map);export{e as MountTrackerUtil};
1
+ import{__DEBUG__ as t}from"../constant/common.const.js";class n{constructor(){}static _mountedCounts=new Map;static _unmountCallCount=new Map;static isMounted(t){return(this._mountedCounts.get(t)||0)>0}static trackMount(n){const o=this._mountedCounts.get(n)||0;this._mountedCounts.set(n,o+1),t&&this._unmountCallCount.delete(n)}static untrackMount(n){const o=this._mountedCounts.get(n)||0;if(o>0){const t=o-1;return 0===t?this._mountedCounts.delete(n):this._mountedCounts.set(n,t),t>0}if(t){const t=(this._unmountCallCount.get(n)||0)+1;this._unmountCallCount.set(n,t),t>1&&console.warn(`[MeoNode] untrackMount called ${t} times for an already unmounted node: ${n}. This could indicate a memory leak or a bug in a component's lifecycle.`)}return!1}static cleanup(){this._mountedCounts.clear(),t&&this._unmountCallCount.clear()}}export{n as MountTrackerUtil};
@@ -1 +1 @@
1
- import{__DEBUG__ as e}from"../constant/common.const.js";import{BaseNode as t}from"../core.node.js";import{MountTrackerUtil as i}from"./mount-tracker.util.js";var n=Object.defineProperty,a=(e,t,i)=>((e,t,i)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,"symbol"!=typeof t?t+"":t,i);const o=class n{constructor(){a(this,"_isListening",!1),a(this,"_cleanupTimeout",null),a(this,"_handleNavigation",()=>{this._cleanupTimeout&&clearTimeout(this._cleanupTimeout);const n=t.elementCache.size,a=n<100?50:n<500?100:200;this._cleanupTimeout=setTimeout(()=>{let n=0;t.elementCache.keys().forEach(e=>{i.isMounted(e)||(t.elementCache.delete(e),n++)}),e&&console.log(`[MeoNode] Navigation: cleared ${n} unmounted elements`)},a)})}static getInstance(){return this._instance||(this._instance=new n),this._instance}start(){this._isListening||"undefined"==typeof window||(this._isListening=!0,window.addEventListener("popstate",this._handleNavigation),this._patchHistoryMethods(),this._setupAutoCleanup(),e&&console.log("[MeoNode] NavigationCacheManagerUtil started"))}_stop(){this._isListening&&"undefined"!=typeof window&&(window.removeEventListener("popstate",this._handleNavigation),this._cleanupTimeout&&(clearTimeout(this._cleanupTimeout),this._cleanupTimeout=null),this._isListening=!1,e&&console.log("[MeoNode] NavigationCacheManagerUtil stopped"))}_patchHistoryMethods(){n._isPatched||(n._originalPushState=history.pushState,n._originalReplaceState=history.replaceState,history.pushState=(...e)=>{n._originalPushState.apply(history,e),this._handleNavigation()},history.replaceState=(...e)=>{n._originalReplaceState.apply(history,e),this._handleNavigation()},n._isPatched=!0)}_setupAutoCleanup(){window.__MEONODE_CLEANUP_REGISTERED||(window.addEventListener("beforeunload",()=>{this._stop(),t.clearCaches()}),window.__MEONODE_CLEANUP_REGISTERED=!0)}};a(o,"_instance",null),a(o,"_originalPushState",null),a(o,"_originalReplaceState",null),a(o,"_isPatched",!1);let s=o;export{s as NavigationCacheManagerUtil};
1
+ import{__DEBUG__ as t}from"../constant/common.const.js";import{BaseNode as e}from"../core.node.js";import{MountTrackerUtil as i}from"./mount-tracker.util.js";class a{constructor(){}static _instance=null;static _originalPushState=null;static _originalReplaceState=null;static _isPatched=!1;_isListening=!1;_cleanupTimeout=null;static getInstance(){return this._instance||(this._instance=new a),this._instance}start(){this._isListening||"undefined"==typeof window||(this._isListening=!0,window.addEventListener("popstate",this._handleNavigation),this._patchHistoryMethods(),this._setupAutoCleanup(),t&&console.log("[MeoNode] NavigationCacheManagerUtil started"))}_stop(){this._isListening&&"undefined"!=typeof window&&(window.removeEventListener("popstate",this._handleNavigation),this._cleanupTimeout&&(clearTimeout(this._cleanupTimeout),this._cleanupTimeout=null),this._isListening=!1,t&&console.log("[MeoNode] NavigationCacheManagerUtil stopped"))}_handleNavigation=()=>{this._cleanupTimeout&&clearTimeout(this._cleanupTimeout);const a=e.elementCache.size,n=a<100?50:a<500?100:200;this._cleanupTimeout=setTimeout(()=>{let a=0;e.elementCache.keys().forEach(t=>{i.isMounted(t)||(e.elementCache.delete(t),a++)}),t&&console.log(`[MeoNode] Navigation: cleared ${a} unmounted elements`)},n)};_patchHistoryMethods(){a._isPatched||(a._originalPushState=history.pushState,a._originalReplaceState=history.replaceState,history.pushState=(...t)=>{a._originalPushState.apply(history,t),this._handleNavigation()},history.replaceState=(...t)=>{a._originalReplaceState.apply(history,t),this._handleNavigation()},a._isPatched=!0)}_setupAutoCleanup(){window.__MEONODE_CLEANUP_REGISTERED||(window.addEventListener("beforeunload",()=>{this._stop(),e.clearCaches()}),window.__MEONODE_CLEANUP_REGISTERED=!0)}}export{a as NavigationCacheManagerUtil};
@@ -1 +1 @@
1
- import e,{isValidElement as t,createElement as r}from"react";import{isReactClassComponent as o,isMemo as n,isForwardRef as s}from"../helper/react-is.helper.js";import{getGlobalState as i,getElementTypeName as c,omitUndefined as a,getCSSProps as l,getDOMProps as d}from"../helper/common.helper.js";import{__DEBUG__ as f}from"../constant/common.const.js";import{BaseNode as p}from"../core.node.js";var u=Object.defineProperty,y=(e,t,r)=>((e,t,r)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);const h=Symbol.for("@meonode/ui/NodeUtil/functionSignatureCache"),m=class u{constructor(){}static readBooleanFlag(e,t){if("function"!=typeof e)return!1;try{return!0===e[t]}catch{return!1}}static get _functionSignatureCache(){return i(h,()=>new WeakMap)}static isClientReference(e){if(!e||"object"!=typeof e&&"function"!=typeof e)return!1;try{return e.$$typeof===Symbol.for("react.client.reference")}catch{return!1}}static acceptsServerCss(e){return u.readBooleanFlag(e,"__meonodeAcceptsServerCss")}static providesServerTheme(e){return u.readBooleanFlag(e,"__meonodeProvidesServerTheme")}static hashString(e){let t=2166136261,r=5381;for(let o=0;o<e.length;o++){const n=e.charCodeAt(o);t^=n,t=Math.imul(t,16777619),r=Math.imul(r,33)^n}return`${(t>>>0).toString(36)}_${(r>>>0).toString(36)}`}static hashCSS(e){const t=Object.keys(e);let r=t.length;for(let o=0;o<Math.min(t.length,10);o++){const n=t[o],s=e[n];r=(r<<5)-r+n.charCodeAt(0),r&=r,"string"==typeof s&&(r=(r<<5)-r+s.length)}return r.toString(36)}static createPropSignature(e,t){if(u.isServer)return;const r=c(e),o=Object.keys(t);o.length>1&&o.sort();const n=[`${r}:`];if("function"==typeof e){let t=u._functionSignatureCache.get(e);t||(t=u.hashString(e.toString()),u._functionSignatureCache.set(e,t)),n.push(t)}for(const e of o){const r=t[e];let o;const s=typeof r;if("string"===s||"number"===s||"boolean"===s)o=`${e}:${r};`;else if(null===r)o=`${e}:null;`;else if(void 0===r)o=`${e}:undefined;`;else if("css"===e&&"object"==typeof r)o=`css:${this.hashCSS(r)};`;else if(Array.isArray(r)){const t=r.filter(e=>{const t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===e});o=t.length===r.length?`${e}:[${t.join(",")}];`:`${e}:[${r.length}];`}else if(r&&r.isBaseNode)o=`${e}:${r.stableKey};`;else if("function"===s){let t=u._propFuncCache.get(r);t||(t=u.hashString(r.toString()),u._propFuncCache.set(r,t)),o=`${e}:${t};`}else{o=`${e}:{${Object.keys(r).sort().join(",")}};`}n.push(o)}return u.hashString(n.join(","))}static extractCriticalProps(e,t){const r={_keyCount:t.length};let o=0;for(const n of t){if(o>=50)break;if(u.CRITICAL_PROPS.has(n)){r[n]=e[n],o++;continue}const s=n.charCodeAt(0);111!==s||110!==n.charCodeAt(1)?!(97===s&&114===n.charCodeAt(1)&&105===n.charCodeAt(2)&&97===n.charCodeAt(3)||100===s&&97===n.charCodeAt(1)&&116===n.charCodeAt(2)&&97===n.charCodeAt(3))?t.length<=100&&u.isStyleProp(n)&&(r[n]=e[n],o++):(r[n]=e[n],o++):(r[n]=e[n],o++)}return r}static processProps(e={},t){const{ref:r,key:o,children:n,css:s,props:i={},disableEmotion:c,...f}=e;if(0===Object.keys(f).length&&!s)return a({ref:r,key:o,disableEmotion:c,nativeProps:a(i),children:u._processChildren(n,c)});const p={},y={},h=Object.keys(f);for(let e=0;e<h.length;e++){const t=h[e],r=f[t],o=typeof r;"string"===o||"number"===o||"boolean"===o?p[t]=r:y[t]=r}const m=l(p),b=l(y),g=d(f),C={...m,...b,...s},S=u._processChildren(n,c,t);return a({ref:r,key:o,css:C,...g,disableEmotion:c,nativeProps:a(i),children:S})}static _processChildren(e,t,r){if(e)return"function"==typeof e?e:Array.isArray(e)?1===e.length?u.processRawNode(e[0],t,`${r}_0`):e.map((e,o)=>u.processRawNode(e,t,`${r}_${o}`)):u.processRawNode(e,t,r)}static shouldCacheElement(e){return!u.isServer&&!!e.stableKey&&!!e.dependencies}static shouldNodeUpdate(e,t,r){if(u.isServer)return!0;if(r)return!1;if(void 0===t)return!0;if(void 0===e)return!0;if(t.length!==e.length)return!0;for(let r=0;r<t.length;r++)if(!Object.is(t[r],e[r]))return!0;return!1}static processRawNode(r,i,c){if(null==r||"string"==typeof r||"number"==typeof r||"boolean"==typeof r)return r;if(u.isNodeInstance(r)){if(c||i&&!r.rawProps.disableEmotion){const e=new p(r.element,r.rawProps,r.dependencies);return e.stableKey=`${c}:${e.stableKey}`,i&&!e.rawProps.disableEmotion&&(e.rawProps.disableEmotion=!0),e}return r}if(u.isFunctionChild(r))return new p(u.functionRenderer,{props:{render:r,disableEmotion:i}},void 0);if(t(r)){const e=r.type;if(e&&"object"==typeof e){const t=e.$$typeof;if(t===Symbol.for("react.client.reference")||t===Symbol.for("react.lazy")||t===Symbol.for("react.memo")||t===Symbol.for("react.forward_ref"))return r}if("string"==typeof r.type){const{style:e,...t}=r.props,o={...t,...e||{}};return new p(r.type,{...o,...null!==r.key&&void 0!==r.key?{key:r.key}:{},disableEmotion:i},void 0)}return new p(r.type,{...r.props,...null!==r.key&&void 0!==r.key?{key:r.key}:{},disableEmotion:i},void 0)}return o(r)||n(r)||s(r)?new p(r,{disableEmotion:i},void 0):r instanceof e.Component?u.processRawNode(r.render(),i,c):r}static isFunctionChild(e){if("function"!=typeof e||o(e)||n(e)||s(e))return!1;try{return!(e.prototype&&"function"==typeof e.prototype.render)}catch(e){return f&&console.error("MeoNode: Error checking if a node is a function child.",e),!0}}static functionRenderer({render:t,disableEmotion:r}){let o;try{o=t()}catch(e){f&&console.error("MeoNode: Error executing function-as-a-child.",e),o=null}if(null==o||"string"==typeof o||"number"==typeof o||"boolean"==typeof o)return o;if(u.isNodeInstance(o))return r&&!o.rawProps.disableEmotion?new p(o.element,{...o.rawProps,disableEmotion:!0}).render():o.render();if(Array.isArray(o)){const e=(e,t)=>{try{return`${c(e)}-${t}`}catch(e){return f&&console.error("MeoNode: Could not determine element type name for key in function-as-a-child.",e),`item-${t}`}};return o.map((t,o)=>u.renderProcessedNode({processedElement:u.processRawNode(t,r),passedKey:e(t,o),disableEmotion:r}))}if(o instanceof e.Component)return u.renderProcessedNode({processedElement:u.processRawNode(o.render(),r),disableEmotion:r});const n=u.processRawNode(o,r);return n?u.renderProcessedNode({processedElement:n,disableEmotion:r}):o}static renderProcessedNode({processedElement:t,passedKey:n,disableEmotion:s}){const i={};if(void 0!==n&&(i.key=n),u.isNodeInstance(t)){const e=t.rawProps?.key;return t.rawProps.disableEmotion=s,e===n?t.render():new p(t.element,{...t.rawProps,...i}).render()}return o(t)?new p(t,{...i,disableEmotion:s}).render():t instanceof e.Component?t.render():"function"==typeof t?r(t,{key:n}):t}};y(m,"isServer","undefined"==typeof window),y(m,"CRITICAL_PROPS",new Set(["css","className","disableEmotion","props"])),y(m,"_propFuncCache",new WeakMap),y(m,"isNodeInstance",e=>e instanceof p),y(m,"isStyleProp",m.isServer||"undefined"==typeof document?()=>!1:e=>e in document.body.style);let b=m;export{b as NodeUtil};
1
+ import e,{isValidElement as t,createElement as r}from"react";import{isReactClassComponent as o,isMemo as n,isForwardRef as s}from"../helper/react-is.helper.js";import{getGlobalState as i,getElementTypeName as c,omitUndefined as a,getCSSProps as l,getDOMProps as d}from"../helper/common.helper.js";import{__DEBUG__ as f}from"../constant/common.const.js";import{BaseNode as p}from"../core.node.js";const u=Symbol.for("@meonode/ui/NodeUtil/functionSignatureCache");class y{constructor(){}static readBooleanFlag(e,t){if("function"!=typeof e)return!1;try{return!0===e[t]}catch{return!1}}static isServer="undefined"==typeof window;static get _functionSignatureCache(){return i(u,()=>new WeakMap)}static CRITICAL_PROPS=new Set(["css","className","disableEmotion","props"]);static _propFuncCache=new WeakMap;static isClientReference(e){if(!e||"object"!=typeof e&&"function"!=typeof e)return!1;try{return e.$$typeof===Symbol.for("react.client.reference")}catch{return!1}}static acceptsServerCss(e){return y.readBooleanFlag(e,"__meonodeAcceptsServerCss")}static providesServerTheme(e){return y.readBooleanFlag(e,"__meonodeProvidesServerTheme")}static isNodeInstance=e=>e instanceof p;static isStyleProp=y.isServer||"undefined"==typeof document?()=>!1:e=>e in document.body.style;static hashString(e){let t=2166136261,r=5381;for(let o=0;o<e.length;o++){const n=e.charCodeAt(o);t^=n,t=Math.imul(t,16777619),r=Math.imul(r,33)^n}return`${(t>>>0).toString(36)}_${(r>>>0).toString(36)}`}static hashCSS(e){const t=Object.keys(e);let r=t.length;for(let o=0;o<Math.min(t.length,10);o++){const n=t[o],s=e[n];r=(r<<5)-r+n.charCodeAt(0),r&=r,"string"==typeof s&&(r=(r<<5)-r+s.length)}return r.toString(36)}static createPropSignature(e,t){if(y.isServer)return;const r=c(e),o=Object.keys(t);o.length>1&&o.sort();const n=[`${r}:`];if("function"==typeof e){let t=y._functionSignatureCache.get(e);t||(t=y.hashString(e.toString()),y._functionSignatureCache.set(e,t)),n.push(t)}for(const e of o){const r=t[e];let o;const s=typeof r;if("string"===s||"number"===s||"boolean"===s)o=`${e}:${r};`;else if(null===r)o=`${e}:null;`;else if(void 0===r)o=`${e}:undefined;`;else if("css"===e&&"object"==typeof r)o=`css:${this.hashCSS(r)};`;else if(Array.isArray(r)){const t=r.filter(e=>{const t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===e});o=t.length===r.length?`${e}:[${t.join(",")}];`:`${e}:[${r.length}];`}else if(r&&r.isBaseNode)o=`${e}:${r.stableKey};`;else if("function"===s){let t=y._propFuncCache.get(r);t||(t=y.hashString(r.toString()),y._propFuncCache.set(r,t)),o=`${e}:${t};`}else{o=`${e}:{${Object.keys(r).sort().join(",")}};`}n.push(o)}return y.hashString(n.join(","))}static extractCriticalProps(e,t){const r={_keyCount:t.length};let o=0;for(const n of t){if(o>=50)break;if(y.CRITICAL_PROPS.has(n)){r[n]=e[n],o++;continue}const s=n.charCodeAt(0);111!==s||110!==n.charCodeAt(1)?!(97===s&&114===n.charCodeAt(1)&&105===n.charCodeAt(2)&&97===n.charCodeAt(3)||100===s&&97===n.charCodeAt(1)&&116===n.charCodeAt(2)&&97===n.charCodeAt(3))?t.length<=100&&y.isStyleProp(n)&&(r[n]=e[n],o++):(r[n]=e[n],o++):(r[n]=e[n],o++)}return r}static processProps(e={},t){const{ref:r,key:o,children:n,css:s,props:i={},disableEmotion:c,...f}=e;if(0===Object.keys(f).length&&!s)return a({ref:r,key:o,disableEmotion:c,nativeProps:a(i),children:y._processChildren(n,c)});const p={},u={},h=Object.keys(f);for(let e=0;e<h.length;e++){const t=h[e],r=f[t],o=typeof r;"string"===o||"number"===o||"boolean"===o?p[t]=r:u[t]=r}const m=l(p),b=l(u),g=d(f),C={...m,...b,...s},S=y._processChildren(n,c,t);return a({ref:r,key:o,css:C,...g,disableEmotion:c,nativeProps:a(i),children:S})}static _processChildren(e,t,r){if(e)return"function"==typeof e?e:Array.isArray(e)?1===e.length?y.processRawNode(e[0],t,`${r}_0`):e.map((e,o)=>y.processRawNode(e,t,`${r}_${o}`)):y.processRawNode(e,t,r)}static shouldCacheElement(e){return!y.isServer&&!!e.stableKey&&!!e.dependencies}static shouldNodeUpdate(e,t,r){if(y.isServer)return!0;if(r)return!1;if(void 0===t)return!0;if(void 0===e)return!0;if(t.length!==e.length)return!0;for(let r=0;r<t.length;r++)if(!Object.is(t[r],e[r]))return!0;return!1}static processRawNode(r,i,c){if(null==r||"string"==typeof r||"number"==typeof r||"boolean"==typeof r)return r;if(y.isNodeInstance(r)){if(c||i&&!r.rawProps.disableEmotion){const e=new p(r.element,r.rawProps,r.dependencies);return e.stableKey=`${c}:${e.stableKey}`,i&&!e.rawProps.disableEmotion&&(e.rawProps.disableEmotion=!0),e}return r}if(y.isFunctionChild(r))return new p(y.functionRenderer,{props:{render:r,disableEmotion:i}},void 0);if(t(r)){const e=r.type;if(e&&"object"==typeof e){const t=e.$$typeof;if(t===Symbol.for("react.client.reference")||t===Symbol.for("react.lazy")||t===Symbol.for("react.memo")||t===Symbol.for("react.forward_ref"))return r}if("string"==typeof r.type){const{style:e,...t}=r.props,o={...t,...e||{}};return new p(r.type,{...o,...null!==r.key&&void 0!==r.key?{key:r.key}:{},disableEmotion:i},void 0)}return new p(r.type,{...r.props,...null!==r.key&&void 0!==r.key?{key:r.key}:{},disableEmotion:i},void 0)}return o(r)||n(r)||s(r)?new p(r,{disableEmotion:i},void 0):r instanceof e.Component?y.processRawNode(r.render(),i,c):r}static isFunctionChild(e){if("function"!=typeof e||o(e)||n(e)||s(e))return!1;try{return!(e.prototype&&"function"==typeof e.prototype.render)}catch(e){return f&&console.error("MeoNode: Error checking if a node is a function child.",e),!0}}static functionRenderer({render:t,disableEmotion:r}){let o;try{o=t()}catch(e){f&&console.error("MeoNode: Error executing function-as-a-child.",e),o=null}if(null==o||"string"==typeof o||"number"==typeof o||"boolean"==typeof o)return o;if(y.isNodeInstance(o))return r&&!o.rawProps.disableEmotion?new p(o.element,{...o.rawProps,disableEmotion:!0}).render():o.render();if(Array.isArray(o)){const e=(e,t)=>{try{return`${c(e)}-${t}`}catch(e){return f&&console.error("MeoNode: Could not determine element type name for key in function-as-a-child.",e),`item-${t}`}};return o.map((t,o)=>y.renderProcessedNode({processedElement:y.processRawNode(t,r),passedKey:e(t,o),disableEmotion:r}))}if(o instanceof e.Component)return y.renderProcessedNode({processedElement:y.processRawNode(o.render(),r),disableEmotion:r});const n=y.processRawNode(o,r);return n?y.renderProcessedNode({processedElement:n,disableEmotion:r}):o}static renderProcessedNode({processedElement:t,passedKey:n,disableEmotion:s}){const i={};if(void 0!==n&&(i.key=n),y.isNodeInstance(t)){const e=t.rawProps?.key;return t.rawProps.disableEmotion=s,e===n?t.render():new p(t.element,{...t.rawProps,...i}).render()}return o(t)?new p(t,{...i,disableEmotion:s}).render():t instanceof e.Component?t.render():"function"==typeof t?r(t,{key:n}):t}}export{y as NodeUtil};
@@ -1 +1 @@
1
- import{getValueByPath as e}from"../helper/common.helper.js";var r=Object.defineProperty,t=(e,t,l)=>((e,t,l)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l)(e,"symbol"!=typeof t?t+"":t,l);const l=class{constructor(){}static parseFlexShorthand(e){if(null==e)return null;if("number"==typeof e)return{grow:e,shrink:1,basis:"0%"};if("string"!=typeof e)return null;const r=e.trim().toLowerCase();if(!r)return null;switch(r){case"none":return{grow:0,shrink:0,basis:"auto"};case"auto":return{grow:1,shrink:1,basis:"auto"};case"initial":return{grow:0,shrink:1,basis:"auto"};default:return null}}};t(l,"isPlainObject",e=>{if("object"!=typeof e||null===e)return!1;const r=Object.getPrototypeOf(e);return null===r||r===Object.prototype}),t(l,"resolveObjWithTheme",(r,t,n={})=>{const{processFunctions:s=!1,themeStringsMode:o="resolve"}=n;if(!t||!t.system||"object"!=typeof t.system||0===Object.keys(t.system).length||!r||0===Object.keys(r).length)return r;const i=t.system,a=[{value:r,isProcessed:!1}],f=new Map,c=new Set,u=/theme\.([a-zA-Z0-9_.-]+)/g,p=(r,t)=>{u.lastIndex=0;let l=!1;const n=r.replace(u,(r,n)=>{if(t)return l=!0,`var(${s=n,`--meonode-theme-${s.replace(/[^\w.-]/g,"-").replace(/\./g,"-")}`})`;var s;const o=e(i,n);if(null!=o){if(l=!0,"object"==typeof o){if(!Array.isArray(o)&&"default"in o)return o.default;throw new Error("The provided theme path is invalid!")}return o}return r});return l?n:r};for(;a.length>0;){const e=a[a.length-1],r=e.value;if(l.isPlainObject(r)||Array.isArray(r))if(f.has(r))a.pop();else if(e.isProcessed){a.pop(),c.delete(r);let e=r;if(Array.isArray(r)){let t=null;for(let e=0;e<r.length;e++){const l=r[e],n=f.get(l)??l;n!==l&&(null===t&&(t=[...r]),t[e]=n)}null!==t&&(e=t)}else{let l=null;for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const n=r[e];let i=f.get(n)??n,a=e;"string"==typeof e&&e.includes("theme.")&&(a=p(e,!1));const c="vars"===o;if("function"==typeof i&&s){const e=i(t);i="string"==typeof e&&e.includes("theme.")?p(e,c):e}else"string"==typeof i&&i.includes("theme.")&&(i=p(i,c));i===n&&a===e||(null===l&&(l={...r}),a!==e&&delete l[e],l[a]=i)}null!==l&&(e=l)}f.set(r,e)}else{e.isProcessed=!0,c.add(r);const t=Array.isArray(r)?r:Object.values(r);for(let e=t.length-1;e>=0;e--){const r=t[e];!l.isPlainObject(r)&&!Array.isArray(r)||c.has(r)||a.push({value:r,isProcessed:!1})}}else a.pop()}return f.get(r)??r}),t(l,"resolveDefaultStyle",e=>{if(null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e)return{};const{flex:r,...t}=e,n="flex"===t.display||"inline-flex"===t.display,s=!!(t.overflow||t.overflowY||t.overflowX),o=t.flexFlow?.includes("wrap")||"wrap"===t.flexWrap||"wrap-reverse"===t.flexWrap,i="flexShrink"in e&&void 0!==e.flexShrink,a=r?l.parseFlexShorthand(r):null;let f;if(!i)if(a)f=a.shrink;else if(n){if(!s){const e="column"===t.flexDirection||"column-reverse"===t.flexDirection,r="row"===t.flexDirection||"row-reverse"===t.flexDirection||!t.flexDirection;(e&&!o||r&&!o)&&(f=0)}}else f=0;return{flex:r,flexShrink:f,minHeight:0,minWidth:0,...t}});let n=l;export{n as ThemeUtil};
1
+ import{getValueByPath as e}from"../helper/common.helper.js";class t{constructor(){}static parseFlexShorthand(e){if(null==e)return null;if("number"==typeof e)return{grow:e,shrink:1,basis:"0%"};if("string"!=typeof e)return null;const t=e.trim().toLowerCase();if(!t)return null;switch(t){case"none":return{grow:0,shrink:0,basis:"auto"};case"auto":return{grow:1,shrink:1,basis:"auto"};case"initial":return{grow:0,shrink:1,basis:"auto"};default:return null}}static isPlainObject=e=>{if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype};static resolveObjWithTheme=(r,n,l={})=>{const{processFunctions:s=!1,themeStringsMode:o="resolve"}=l;if(!n||!n.system||"object"!=typeof n.system||0===Object.keys(n.system).length||!r||0===Object.keys(r).length)return r;const i=n.system,a=[{value:r,isProcessed:!1}],c=new Map,f=new Set,u=/theme\.([a-zA-Z0-9_.-]+)/g,p=(t,r)=>{u.lastIndex=0;let n=!1;const l=t.replace(u,(t,l)=>{if(r)return n=!0,`var(${s=l,`--meonode-theme-${s.replace(/[^\w.-]/g,"-").replace(/\./g,"-")}`})`;var s;const o=e(i,l);if(null!=o){if(n=!0,"object"==typeof o){if(!Array.isArray(o)&&"default"in o)return o.default;throw new Error("The provided theme path is invalid!")}return o}return t});return n?l:t};for(;a.length>0;){const e=a[a.length-1],r=e.value;if(t.isPlainObject(r)||Array.isArray(r))if(c.has(r))a.pop();else if(e.isProcessed){a.pop(),f.delete(r);let e=r;if(Array.isArray(r)){let t=null;for(let e=0;e<r.length;e++){const n=r[e],l=c.get(n)??n;l!==n&&(null===t&&(t=[...r]),t[e]=l)}null!==t&&(e=t)}else{let t=null;for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const l=r[e];let i=c.get(l)??l,a=e;"string"==typeof e&&e.includes("theme.")&&(a=p(e,!1));const f="vars"===o;if("function"==typeof i&&s){const e=i(n);i="string"==typeof e&&e.includes("theme.")?p(e,f):e}else"string"==typeof i&&i.includes("theme.")&&(i=p(i,f));i===l&&a===e||(null===t&&(t={...r}),a!==e&&delete t[e],t[a]=i)}null!==t&&(e=t)}c.set(r,e)}else{e.isProcessed=!0,f.add(r);const n=Array.isArray(r)?r:Object.values(r);for(let e=n.length-1;e>=0;e--){const r=n[e];!t.isPlainObject(r)&&!Array.isArray(r)||f.has(r)||a.push({value:r,isProcessed:!1})}}else a.pop()}return c.get(r)??r};static resolveDefaultStyle=e=>{if(null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e)return{};const{flex:r,...n}=e,l="flex"===n.display||"inline-flex"===n.display,s=!!(n.overflow||n.overflowY||n.overflowX),o=n.flexFlow?.includes("wrap")||"wrap"===n.flexWrap||"wrap-reverse"===n.flexWrap,i="flexShrink"in e&&void 0!==e.flexShrink,a=r?t.parseFlexShorthand(r):null;let c;if(!i)if(a)c=a.shrink;else if(l){if(!s){const e="column"===n.flexDirection||"column-reverse"===n.flexDirection,t="row"===n.flexDirection||"row-reverse"===n.flexDirection||!n.flexDirection;(e&&!o||t&&!o)&&(c=0)}}else c=0;return{flex:r,flexShrink:c,minHeight:0,minWidth:0,...n}}}export{t as ThemeUtil};
@@ -1 +1 @@
1
- {"version":3,"file":"css-properties.const.d.ts","sourceRoot":"","sources":["../../../src/constant/css-properties.const.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,QAAA,MAAM,cAAc,EAAE,GAAG,CAAC,MAAM,CAirB9B,CAAA;AAEF,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"css-properties.const.d.ts","sourceRoot":"","sources":["../../../src/constant/css-properties.const.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,QAAA,MAAM,cAAc,EAAE,GAAG,CAAC,MAAM,CAkrB9B,CAAA;AAEF,eAAe,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hook/useTheme.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,4EA+BpB,CAAA"}
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hook/useTheme.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,4EAkCpB,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meonode/ui",
3
3
  "description": "A structured approach to component composition, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.",
4
- "version": "1.5.1",
4
+ "version": "1.5.2",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",
@@ -31,10 +31,10 @@
31
31
  "scripts": {
32
32
  "watch:build": "bunx nodemon --watch src --ext ts,tsx,js,json --exec \"bun run build\"",
33
33
  "lint": "eslint --fix && tsc --noEmit",
34
- "test": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 --experimental-vm-modules $(bun pm bin)/jest --ci --verbose --testPathIgnorePatterns=\"tests/performance.test.ts\" --testPathIgnorePatterns=\"tests/react-createelement-comparison.test.ts\" --testPathIgnorePatterns=\"tests/rsc-integration.test.ts\" --testPathIgnorePatterns=\"tests/build-output.test.ts\"",
35
- "test:perf": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 --experimental-vm-modules $(bun pm bin)/jest --ci --verbose tests/performance.test.ts tests/react-createelement-comparison.test.ts",
36
- "test:all": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 --experimental-vm-modules $(bun pm bin)/jest --ci --verbose --testPathIgnorePatterns=\"tests/rsc-integration.test.ts\" --testPathIgnorePatterns=\"tests/build-output.test.ts\"",
37
- "test:rsc": "NODE_OPTIONS='--experimental-vm-modules' node $(bun pm bin)/jest --config jest.integration.config.ts --ci --verbose --runInBand",
34
+ "test": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 ./node_modules/vitest/vitest.mjs run --config vitest.config.ts --exclude tests/performance.test.ts --exclude tests/react-createelement-comparison.test.ts --exclude tests/rsc-integration.test.ts --exclude tests/build-output.test.ts",
35
+ "test:perf": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 ./node_modules/vitest/vitest.mjs run --config vitest.perf.config.ts tests/performance.test.ts tests/react-createelement-comparison.test.ts",
36
+ "test:all": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 ./node_modules/vitest/vitest.mjs run --config vitest.perf.config.ts --exclude tests/rsc-integration.test.ts --exclude tests/build-output.test.ts",
37
+ "test:rsc": "NODE_OPTIONS='--experimental-vm-modules' vitest run --config vitest.integration.config.ts",
38
38
  "prepare:rsc-fixture": "cd tests/rsc-fixtures/next-app && bun install",
39
39
  "verify": "bun run prepare:rsc-fixture && bun run lint && bun run tsc --noEmit && bun run test && bun run test:rsc",
40
40
  "build": "rm -rf ./dist && rollup -c rollup.config.ts --configPlugin 'typescript={tsconfig:\"./tsconfig.rollup-config.json\"}' && tsc -p tsconfig.build.json --diagnostics && tsc-alias -p tsconfig.build.json",
@@ -53,7 +53,6 @@
53
53
  "@emotion/jest": "^11.14.2",
54
54
  "@emotion/styled": "^11.14.1",
55
55
  "@eslint/js": "^10.0.1",
56
- "@jest/globals": "^30.3.0",
57
56
  "@mui/material": "^9.0.0",
58
57
  "@playwright/test": "^1.59.1",
59
58
  "@rollup/plugin-alias": "^6.0.0",
@@ -68,7 +67,6 @@
68
67
  "@testing-library/dom": "^10.4.1",
69
68
  "@testing-library/jest-dom": "^6.9.1",
70
69
  "@testing-library/react": "^16.3.2",
71
- "@types/jest": "^30.0.0",
72
70
  "@types/node": "^25.6.0",
73
71
  "@types/react": "^19.2.14",
74
72
  "@types/react-dom": "^19.2.3",
@@ -81,8 +79,6 @@
81
79
  "eslint-plugin-prettier": "^5.5.5",
82
80
  "eslint-plugin-unused-imports": "^4.4.1",
83
81
  "husky": "^9.1.7",
84
- "jest": "^30.2.0",
85
- "jest-environment-jsdom": "^30.2.0",
86
82
  "next": "^16.1.6",
87
83
  "prettier": "^3.8.1",
88
84
  "react": "^19.2.4",
@@ -92,7 +88,8 @@
92
88
  "rollup-plugin-esbuild": "^6.2.1",
93
89
  "rollup-plugin-preserve-directives": "^0.4.0",
94
90
  "semantic-release": "^25.0.3",
95
- "ts-jest": "^29.4.6",
91
+ "jsdom": "^27.0.1",
92
+ "vitest": "^4.0.7",
96
93
  "tsc-alias": "^1.8.16",
97
94
  "tslib": "^2.8.1",
98
95
  "typescript": "^6",