@master/css
Advanced tools
Comparing version 2.0.0-beta.198 to 2.0.0-beta.199
@@ -1,2 +0,2 @@ | ||
import type { ConfigFunction } from './'; | ||
import type { FunctionDefinition } from './'; | ||
declare const functions: { | ||
@@ -11,3 +11,3 @@ $: { | ||
}; | ||
calc: ConfigFunction; | ||
calc: FunctionDefinition; | ||
translate: { | ||
@@ -14,0 +14,0 @@ unit: string; |
@@ -9,21 +9,49 @@ import mediaQueries from './media-queries'; | ||
import { CSSDeclarations } from '../types/css-declarations'; | ||
import type { Rule, RuleOptions, ValueComponent } from '../rule'; | ||
import type { Rule, RuleDefinition, ValueComponent } from '../rule'; | ||
declare const config: Config; | ||
export { config, mediaQueries, selectors, semantics, rules, functions, animations, variables }; | ||
export type ConfigVariable = number | string | Array<number | string>; | ||
export type ConfigVariableGroup = { | ||
[key in '' | `@${string}`]?: ConfigVariable; | ||
export type VariableValue = number | string | Array<number | string>; | ||
export type VariableDefinition = { | ||
[key in '' | `@${string}`]?: VariableValue; | ||
} & { | ||
[key: string]: ConfigVariable | ConfigVariableGroup; | ||
[key: string]: VariableValue | VariableDefinition; | ||
}; | ||
export type ConfigFunction = { | ||
export type AnimationDefinition = { | ||
[key in 'from' | 'to']?: CSSDeclarations; | ||
} & { | ||
[key: string]: CSSDeclarations; | ||
}; | ||
export type AnimationDefinitions = { | ||
[key: string]: AnimationDefinition; | ||
}; | ||
export type SelectorDefinitions = { | ||
[key: string]: string | string[] | SelectorDefinitions; | ||
}; | ||
export type MediaQueryDefinitions = { | ||
[key: string]: number | string | MediaQueryDefinitions; | ||
}; | ||
export type StyleDefinitions = { | ||
[key: string]: string | StyleDefinitions; | ||
}; | ||
export type RuleDefinitions = { | ||
[key in keyof typeof rules | string]?: RuleDefinition; | ||
}; | ||
export type VariableDefinitions = { | ||
[key in keyof typeof rules]?: VariableDefinition; | ||
} & { | ||
[key: string]: VariableDefinition | VariableValue; | ||
}; | ||
export type SemanticDefinitions = { | ||
[key in keyof typeof semantics]?: CSSDeclarations; | ||
} & { | ||
[key: string]: CSSDeclarations; | ||
}; | ||
export interface FunctionDefinition { | ||
unit?: string; | ||
colored?: boolean; | ||
transform?(this: Rule, value: string): string | ValueComponent[]; | ||
} | ||
export type FunctionDefinitions = { | ||
[key: string]: FunctionDefinition; | ||
}; | ||
export type ConfigAnimation = { | ||
[key in 'from' | 'to']?: CSSDeclarations; | ||
} & { | ||
[key: string]: CSSDeclarations; | ||
}; | ||
export interface Config { | ||
@@ -33,24 +61,8 @@ extends?: (Config | { | ||
})[]; | ||
styles?: { | ||
[key: string]: string | Config['styles']; | ||
}; | ||
mediaQueries?: { | ||
[key: string]: number | string | Config['mediaQueries']; | ||
}; | ||
selectors?: { | ||
[key: string]: string | string[] | Config['selectors']; | ||
}; | ||
semantics?: { | ||
[key in keyof typeof semantics]?: CSSDeclarations; | ||
} & { | ||
[key: string]: CSSDeclarations; | ||
}; | ||
variables?: { | ||
[key in keyof typeof rules]?: ConfigVariableGroup; | ||
} & { | ||
[key: string]: ConfigVariableGroup | ConfigVariable; | ||
}; | ||
rules?: { | ||
[key in keyof typeof rules | string]?: RuleOptions; | ||
}; | ||
styles?: StyleDefinitions; | ||
mediaQueries?: MediaQueryDefinitions; | ||
selectors?: SelectorDefinitions; | ||
semantics?: SemanticDefinitions; | ||
variables?: VariableDefinitions; | ||
rules?: RuleDefinitions; | ||
rootSize?: number; | ||
@@ -60,5 +72,5 @@ scope?: string; | ||
override?: boolean; | ||
functions?: Record<string, ConfigFunction>; | ||
animations?: Record<string, ConfigAnimation>; | ||
functions?: FunctionDefinitions; | ||
animations?: AnimationDefinitions; | ||
themeDriver?: 'class' | 'media' | 'host'; | ||
} |
@@ -1,278 +0,279 @@ | ||
import type { RuleOptions } from '../rule'; | ||
import { CoreLayer } from '../layer'; | ||
import type { RuleDefinition } from '../rule'; | ||
import { Layer } from '../layer'; | ||
export declare const BORDER_STYLES: string[]; | ||
export declare const autofillSolidToValueComponent: RuleDefinition['transformValueComponents']; | ||
declare const rules: { | ||
group: RuleOptions; | ||
variable: RuleOptions; | ||
fontSize: RuleOptions; | ||
fontWeight: RuleOptions; | ||
fontFamily: RuleOptions; | ||
fontSmoothing: RuleOptions; | ||
fontStyle: RuleOptions; | ||
fontVariantNumeric: RuleOptions; | ||
fontVariant: { | ||
layer: CoreLayer; | ||
group: RuleDefinition; | ||
variable: RuleDefinition; | ||
'font-size': RuleDefinition; | ||
'font-weight': RuleDefinition; | ||
'font-family': RuleDefinition; | ||
'font-smoothing': RuleDefinition; | ||
'font-style': RuleDefinition; | ||
'font-variant-numeric': RuleDefinition; | ||
'font-variant': { | ||
layer: Layer; | ||
}; | ||
fontFeatureSettings: RuleOptions; | ||
font: RuleOptions; | ||
color: RuleOptions; | ||
marginLeft: RuleOptions; | ||
marginRight: RuleOptions; | ||
marginTop: RuleOptions; | ||
marginBottom: RuleOptions; | ||
marginX: RuleOptions; | ||
marginY: RuleOptions; | ||
margin: RuleOptions; | ||
marginInlineStart: RuleOptions; | ||
marginInlineEnd: RuleOptions; | ||
marginInline: RuleOptions; | ||
paddingLeft: RuleOptions; | ||
paddingRight: RuleOptions; | ||
paddingTop: RuleOptions; | ||
paddingBottom: RuleOptions; | ||
paddingX: RuleOptions; | ||
paddingY: RuleOptions; | ||
padding: RuleOptions; | ||
paddingInlineStart: RuleOptions; | ||
paddingInlineEnd: RuleOptions; | ||
paddingInline: RuleOptions; | ||
flexBasis: RuleOptions; | ||
flexWrap: RuleOptions; | ||
flexGrow: RuleOptions; | ||
flexShrink: RuleOptions; | ||
flexDirection: RuleOptions; | ||
flex: RuleOptions; | ||
display: RuleOptions; | ||
width: RuleOptions; | ||
height: RuleOptions; | ||
minWidth: RuleOptions; | ||
minHeight: RuleOptions; | ||
box: RuleOptions; | ||
minBox: RuleOptions; | ||
maxBox: RuleOptions; | ||
boxSizing: RuleOptions; | ||
boxDecorationBreak: RuleOptions; | ||
contain: RuleOptions; | ||
content: RuleOptions; | ||
counterIncrement: RuleOptions; | ||
counterReset: RuleOptions; | ||
letterSpacing: RuleOptions; | ||
lineHeight: RuleOptions; | ||
objectFit: RuleOptions; | ||
objectPosition: RuleOptions; | ||
textAlign: RuleOptions; | ||
textDecorationColor: RuleOptions; | ||
textDecorationStyle: RuleOptions; | ||
textDecorationThickness: RuleOptions; | ||
textDecorationLine: RuleOptions; | ||
textDecoration: RuleOptions; | ||
textUnderlineOffset: RuleOptions; | ||
textOverflow: RuleOptions; | ||
textOrientation: RuleOptions; | ||
textTransform: RuleOptions; | ||
textRendering: RuleOptions; | ||
textIndent: RuleOptions; | ||
verticalAlign: RuleOptions; | ||
columns: RuleOptions; | ||
whiteSpace: RuleOptions; | ||
top: RuleOptions; | ||
bottom: RuleOptions; | ||
left: RuleOptions; | ||
right: RuleOptions; | ||
inset: RuleOptions; | ||
lines: RuleOptions; | ||
maxHeight: RuleOptions; | ||
maxWidth: RuleOptions; | ||
opacity: RuleOptions; | ||
visibility: RuleOptions; | ||
clear: RuleOptions; | ||
float: RuleOptions; | ||
isolation: RuleOptions; | ||
overflowX: RuleOptions; | ||
overflowY: RuleOptions; | ||
overflow: RuleOptions; | ||
overscrollBehaviorX: RuleOptions; | ||
overscrollBehaviorY: RuleOptions; | ||
overscrollBehavior: RuleOptions; | ||
zIndex: RuleOptions; | ||
position: RuleOptions; | ||
cursor: RuleOptions; | ||
pointerEvents: RuleOptions; | ||
resize: RuleOptions; | ||
touchAction: RuleOptions; | ||
wordBreak: RuleOptions; | ||
wordSpacing: RuleOptions; | ||
userDrag: RuleOptions; | ||
userSelect: RuleOptions; | ||
textShadow: RuleOptions; | ||
textSize: RuleOptions; | ||
textFillColor: RuleOptions; | ||
textStrokeWidth: RuleOptions; | ||
textStrokeColor: RuleOptions; | ||
textStroke: RuleOptions; | ||
boxShadow: RuleOptions; | ||
tableLayout: RuleOptions; | ||
transformBox: RuleOptions; | ||
transformStyle: RuleOptions; | ||
transformOrigin: RuleOptions; | ||
transform: RuleOptions; | ||
transitionProperty: RuleOptions; | ||
transitionTimingFunction: RuleOptions; | ||
transitionDuration: RuleOptions; | ||
transitionDelay: RuleOptions; | ||
transition: RuleOptions; | ||
animationDelay: RuleOptions; | ||
animationDirection: RuleOptions; | ||
animationDuration: RuleOptions; | ||
animationFillMode: RuleOptions; | ||
animationIterationCount: RuleOptions; | ||
animationName: RuleOptions; | ||
animationPlayState: RuleOptions; | ||
animationTimingFunction: RuleOptions; | ||
animation: RuleOptions; | ||
borderCollapse: RuleOptions; | ||
borderSpacing: RuleOptions; | ||
borderTopColor: RuleOptions; | ||
borderBottomColor: RuleOptions; | ||
borderLeftColor: RuleOptions; | ||
borderRightColor: RuleOptions; | ||
borderXColor: RuleOptions; | ||
borderYColor: RuleOptions; | ||
borderColor: RuleOptions; | ||
borderTopLeftRadius: RuleOptions; | ||
borderTopRightRadius: RuleOptions; | ||
borderBottomLeftRadius: RuleOptions; | ||
borderBottomRightRadius: RuleOptions; | ||
borderTopRadius: RuleOptions; | ||
borderBottomRadius: RuleOptions; | ||
borderLeftRadius: RuleOptions; | ||
borderRightRadius: RuleOptions; | ||
borderRadius: RuleOptions; | ||
borderTopStyle: RuleOptions; | ||
borderBottomStyle: RuleOptions; | ||
borderLeftStyle: RuleOptions; | ||
borderRightStyle: RuleOptions; | ||
borderXStyle: RuleOptions; | ||
borderYStyle: RuleOptions; | ||
borderStyle: RuleOptions; | ||
borderTopWidth: RuleOptions; | ||
borderBottomWidth: RuleOptions; | ||
borderLeftWidth: RuleOptions; | ||
borderRightWidth: RuleOptions; | ||
borderXWidth: RuleOptions; | ||
borderYWidth: RuleOptions; | ||
borderWidth: RuleOptions; | ||
borderImageOutset: RuleOptions; | ||
borderImageRepeat: RuleOptions; | ||
borderImageSlice: RuleOptions; | ||
borderImageSource: RuleOptions; | ||
borderImageWidth: RuleOptions; | ||
borderImage: RuleOptions; | ||
borderTop: RuleOptions; | ||
borderBottom: RuleOptions; | ||
borderLeft: RuleOptions; | ||
borderRight: RuleOptions; | ||
borderX: RuleOptions; | ||
borderY: RuleOptions; | ||
border: RuleOptions; | ||
backgroundAttachment: RuleOptions; | ||
backgroundBlendMode: RuleOptions; | ||
backgroundColor: RuleOptions; | ||
backgroundClip: RuleOptions; | ||
backgroundOrigin: RuleOptions; | ||
backgroundPosition: RuleOptions; | ||
backgroundRepeat: RuleOptions; | ||
backgroundSize: RuleOptions; | ||
backgroundImage: RuleOptions; | ||
background: RuleOptions; | ||
gradient: RuleOptions; | ||
mixBlendMode: RuleOptions; | ||
backdropFilter: RuleOptions; | ||
filter: RuleOptions; | ||
fill: RuleOptions; | ||
strokeDasharray: RuleOptions; | ||
strokeDashoffset: RuleOptions; | ||
strokeWidth: RuleOptions; | ||
stroke: RuleOptions; | ||
x: RuleOptions; | ||
y: RuleOptions; | ||
cx: RuleOptions; | ||
cy: RuleOptions; | ||
rx: RuleOptions; | ||
ry: RuleOptions; | ||
gridColumnStart: RuleOptions; | ||
gridColumnEnd: RuleOptions; | ||
gridColumn: RuleOptions; | ||
gridColumns: RuleOptions; | ||
gridRowStart: RuleOptions; | ||
gridRowEnd: RuleOptions; | ||
gridRow: RuleOptions; | ||
gridRows: RuleOptions; | ||
gridAutoColumns: RuleOptions; | ||
gridAutoFlow: RuleOptions; | ||
gridAutoRows: RuleOptions; | ||
gridTemplateAreas: RuleOptions; | ||
gridTemplateColumns: RuleOptions; | ||
gridTemplateRows: RuleOptions; | ||
gridTemplate: RuleOptions; | ||
gridArea: RuleOptions; | ||
grid: RuleOptions; | ||
columnGap: RuleOptions; | ||
rowGap: RuleOptions; | ||
gap: RuleOptions; | ||
order: RuleOptions; | ||
breakInside: RuleOptions; | ||
breakBefore: RuleOptions; | ||
breakAfter: RuleOptions; | ||
aspectRatio: RuleOptions; | ||
columnSpan: RuleOptions; | ||
alignContent: RuleOptions; | ||
alignItems: RuleOptions; | ||
alignSelf: RuleOptions; | ||
justifyContent: RuleOptions; | ||
justifyItems: RuleOptions; | ||
justifySelf: RuleOptions; | ||
placeContent: RuleOptions; | ||
placeItems: RuleOptions; | ||
placeSelf: RuleOptions; | ||
listStylePosition: RuleOptions; | ||
listStyleType: RuleOptions; | ||
listStyleImage: RuleOptions; | ||
listStyle: RuleOptions; | ||
outlineColor: RuleOptions; | ||
outlineOffset: RuleOptions; | ||
outlineStyle: RuleOptions; | ||
outlineWidth: RuleOptions; | ||
outline: RuleOptions; | ||
accentColor: RuleOptions; | ||
appearance: RuleOptions; | ||
caretColor: RuleOptions; | ||
scrollBehavior: RuleOptions; | ||
scrollMarginLeft: RuleOptions; | ||
scrollMarginRight: RuleOptions; | ||
scrollMarginTop: RuleOptions; | ||
scrollMarginBottom: RuleOptions; | ||
scrollMarginX: RuleOptions; | ||
scrollMarginY: RuleOptions; | ||
scrollMargin: RuleOptions; | ||
scrollPaddingLeft: RuleOptions; | ||
scrollPaddingRight: RuleOptions; | ||
scrollPaddingTop: RuleOptions; | ||
scrollPaddingBottom: RuleOptions; | ||
scrollPaddingX: RuleOptions; | ||
scrollPaddingY: RuleOptions; | ||
scrollPadding: RuleOptions; | ||
scrollSnapAlign: RuleOptions; | ||
scrollSnapStop: RuleOptions; | ||
scrollSnapType: RuleOptions; | ||
willChange: RuleOptions; | ||
writingMode: RuleOptions; | ||
direction: RuleOptions; | ||
shapeOutside: RuleOptions; | ||
shapeMargin: RuleOptions; | ||
shapeImageThreshold: RuleOptions; | ||
clipPath: RuleOptions; | ||
quotes: RuleOptions; | ||
maskImage: RuleOptions; | ||
'font-feature-settings': RuleDefinition; | ||
font: RuleDefinition; | ||
color: RuleDefinition; | ||
'margin-left': RuleDefinition; | ||
'margin-right': RuleDefinition; | ||
'margin-top': RuleDefinition; | ||
'margin-bottom': RuleDefinition; | ||
'margin-x': RuleDefinition; | ||
'margin-y': RuleDefinition; | ||
margin: RuleDefinition; | ||
'margin-inline-start': RuleDefinition; | ||
'margin-inline-end': RuleDefinition; | ||
'margin-inline': RuleDefinition; | ||
'padding-left': RuleDefinition; | ||
'padding-right': RuleDefinition; | ||
'padding-top': RuleDefinition; | ||
'padding-bottom': RuleDefinition; | ||
'padding-x': RuleDefinition; | ||
'padding-y': RuleDefinition; | ||
padding: RuleDefinition; | ||
'padding-inline-start': RuleDefinition; | ||
'padding-inline-end': RuleDefinition; | ||
'padding-inline': RuleDefinition; | ||
'flex-basis': RuleDefinition; | ||
'flex-wrap': RuleDefinition; | ||
'flex-grow': RuleDefinition; | ||
'flex-shrink': RuleDefinition; | ||
'flex-direction': RuleDefinition; | ||
flex: RuleDefinition; | ||
display: RuleDefinition; | ||
width: RuleDefinition; | ||
height: RuleDefinition; | ||
'min-width': RuleDefinition; | ||
'min-height': RuleDefinition; | ||
box: RuleDefinition; | ||
'min-box': RuleDefinition; | ||
'max-box': RuleDefinition; | ||
'box-sizing': RuleDefinition; | ||
'box-decoration-break': RuleDefinition; | ||
contain: RuleDefinition; | ||
content: RuleDefinition; | ||
'counter-increment': RuleDefinition; | ||
'counter-reset': RuleDefinition; | ||
'letter-spacing': RuleDefinition; | ||
'line-height': RuleDefinition; | ||
'object-fit': RuleDefinition; | ||
'object-position': RuleDefinition; | ||
'text-align': RuleDefinition; | ||
'text-decoration-color': RuleDefinition; | ||
'text-decoration-style': RuleDefinition; | ||
'text-decoration-thickness': RuleDefinition; | ||
'text-decoration-line': RuleDefinition; | ||
'text-decoration': RuleDefinition; | ||
'text-underline-offset': RuleDefinition; | ||
'text-overflow': RuleDefinition; | ||
'text-orientation': RuleDefinition; | ||
'text-transform': RuleDefinition; | ||
'text-rendering': RuleDefinition; | ||
'text-indent': RuleDefinition; | ||
'vertical-align': RuleDefinition; | ||
columns: RuleDefinition; | ||
'white-space': RuleDefinition; | ||
top: RuleDefinition; | ||
bottom: RuleDefinition; | ||
left: RuleDefinition; | ||
right: RuleDefinition; | ||
inset: RuleDefinition; | ||
lines: RuleDefinition; | ||
'max-height': RuleDefinition; | ||
'max-width': RuleDefinition; | ||
opacity: RuleDefinition; | ||
visibility: RuleDefinition; | ||
clear: RuleDefinition; | ||
float: RuleDefinition; | ||
isolation: RuleDefinition; | ||
'overflow-x': RuleDefinition; | ||
'overflow-y': RuleDefinition; | ||
overflow: RuleDefinition; | ||
'overscroll-behavior-x': RuleDefinition; | ||
'overscroll-behavior-y': RuleDefinition; | ||
'overscroll-behavior': RuleDefinition; | ||
'z-index': RuleDefinition; | ||
position: RuleDefinition; | ||
cursor: RuleDefinition; | ||
'pointer-events': RuleDefinition; | ||
resize: RuleDefinition; | ||
'touch-action': RuleDefinition; | ||
'word-break': RuleDefinition; | ||
'word-spacing': RuleDefinition; | ||
'user-drag': RuleDefinition; | ||
'user-select': RuleDefinition; | ||
'text-shadow': RuleDefinition; | ||
'text-size': RuleDefinition; | ||
'text-fill-color': RuleDefinition; | ||
'text-stroke-width': RuleDefinition; | ||
'text-stroke-color': RuleDefinition; | ||
'text-stroke': RuleDefinition; | ||
'box-shadow': RuleDefinition; | ||
'table-layout': RuleDefinition; | ||
'transform-box': RuleDefinition; | ||
'transform-style': RuleDefinition; | ||
'transform-origin': RuleDefinition; | ||
transform: RuleDefinition; | ||
'transition-property': RuleDefinition; | ||
'transitionTiming-function': RuleDefinition; | ||
'transition-duration': RuleDefinition; | ||
'transition-delay': RuleDefinition; | ||
transition: RuleDefinition; | ||
'animation-delay': RuleDefinition; | ||
'animation-direction': RuleDefinition; | ||
'animation-duration': RuleDefinition; | ||
'animation-fill-mode': RuleDefinition; | ||
'animation-iteration-count': RuleDefinition; | ||
'animation-name': RuleDefinition; | ||
'animation-play-state': RuleDefinition; | ||
'animation-timing-function': RuleDefinition; | ||
animation: RuleDefinition; | ||
'border-collapse': RuleDefinition; | ||
'border-spacing': RuleDefinition; | ||
'border-top-color': RuleDefinition; | ||
'border-bottom-color': RuleDefinition; | ||
'border-left-color': RuleDefinition; | ||
'border-right-color': RuleDefinition; | ||
'border-x-color': RuleDefinition; | ||
'border-y-color': RuleDefinition; | ||
'border-color': RuleDefinition; | ||
'border-top-left-radius': RuleDefinition; | ||
'border-top-right-radius': RuleDefinition; | ||
'border-bottom-left-radius': RuleDefinition; | ||
'border-bottom-right-radius': RuleDefinition; | ||
'border-top-radius': RuleDefinition; | ||
'border-bottom-radius': RuleDefinition; | ||
'border-left-radius': RuleDefinition; | ||
'border-right-radius': RuleDefinition; | ||
'border-radius': RuleDefinition; | ||
'border-top-style': RuleDefinition; | ||
'border-bottom-style': RuleDefinition; | ||
'border-left-style': RuleDefinition; | ||
'border-right-style': RuleDefinition; | ||
'border-x-style': RuleDefinition; | ||
'border-y-style': RuleDefinition; | ||
'border-style': RuleDefinition; | ||
'border-top-width': RuleDefinition; | ||
'border-bottom-width': RuleDefinition; | ||
'border-left-width': RuleDefinition; | ||
'border-right-width': RuleDefinition; | ||
'border-x-width': RuleDefinition; | ||
'border-y-width': RuleDefinition; | ||
'border-width': RuleDefinition; | ||
'border-image-outset': RuleDefinition; | ||
'border-image-repeat': RuleDefinition; | ||
'border-image-slice': RuleDefinition; | ||
'border-image-source': RuleDefinition; | ||
'border-image-width': RuleDefinition; | ||
'border-image': RuleDefinition; | ||
'border-top': RuleDefinition; | ||
'border-bottom': RuleDefinition; | ||
'border-left': RuleDefinition; | ||
'border-right': RuleDefinition; | ||
'border-x': RuleDefinition; | ||
'border-y': RuleDefinition; | ||
border: RuleDefinition; | ||
'background-attachment': RuleDefinition; | ||
'background-blend-mode': RuleDefinition; | ||
'background-color': RuleDefinition; | ||
'background-clip': RuleDefinition; | ||
'background-origin': RuleDefinition; | ||
'background-position': RuleDefinition; | ||
'background-repeat': RuleDefinition; | ||
'background-size': RuleDefinition; | ||
'background-image': RuleDefinition; | ||
background: RuleDefinition; | ||
gradient: RuleDefinition; | ||
'mixBlend-mode': RuleDefinition; | ||
'backdrop-filter': RuleDefinition; | ||
filter: RuleDefinition; | ||
fill: RuleDefinition; | ||
'stroke-dasharray': RuleDefinition; | ||
'stroke-dashoffset': RuleDefinition; | ||
'stroke-width': RuleDefinition; | ||
stroke: RuleDefinition; | ||
x: RuleDefinition; | ||
y: RuleDefinition; | ||
cx: RuleDefinition; | ||
cy: RuleDefinition; | ||
rx: RuleDefinition; | ||
ry: RuleDefinition; | ||
'grid-column-start': RuleDefinition; | ||
'grid-column-end': RuleDefinition; | ||
'grid-column': RuleDefinition; | ||
'grid-columns': RuleDefinition; | ||
'grid-row-start': RuleDefinition; | ||
'grid-row-end': RuleDefinition; | ||
'grid-row': RuleDefinition; | ||
'grid-rows': RuleDefinition; | ||
'grid-auto-columns': RuleDefinition; | ||
'grid-auto-flow': RuleDefinition; | ||
'grid-auto-rows': RuleDefinition; | ||
'grid-template-areas': RuleDefinition; | ||
'grid-template-columns': RuleDefinition; | ||
'grid-template-rows': RuleDefinition; | ||
'grid-template': RuleDefinition; | ||
'grid-area': RuleDefinition; | ||
grid: RuleDefinition; | ||
'column-gap': RuleDefinition; | ||
'row-gap': RuleDefinition; | ||
gap: RuleDefinition; | ||
order: RuleDefinition; | ||
'break-inside': RuleDefinition; | ||
'break-before': RuleDefinition; | ||
'break-after': RuleDefinition; | ||
'aspect-ratio': RuleDefinition; | ||
'column-span': RuleDefinition; | ||
'align-content': RuleDefinition; | ||
'align-items': RuleDefinition; | ||
'align-self': RuleDefinition; | ||
'justify-content': RuleDefinition; | ||
'justify-items': RuleDefinition; | ||
'justify-self': RuleDefinition; | ||
'place-content': RuleDefinition; | ||
'place-items': RuleDefinition; | ||
'place-self': RuleDefinition; | ||
'list-style-position': RuleDefinition; | ||
'list-style-type': RuleDefinition; | ||
'list-style-image': RuleDefinition; | ||
'list-style': RuleDefinition; | ||
'outline-color': RuleDefinition; | ||
'outline-offset': RuleDefinition; | ||
'outline-style': RuleDefinition; | ||
'outline-width': RuleDefinition; | ||
outline: RuleDefinition; | ||
'accent-color': RuleDefinition; | ||
appearance: RuleDefinition; | ||
'caret-color': RuleDefinition; | ||
'scroll-behavior': RuleDefinition; | ||
'scroll-margin-left': RuleDefinition; | ||
'scroll-margin-right': RuleDefinition; | ||
'scroll-margin-top': RuleDefinition; | ||
'scroll-margin-bottom': RuleDefinition; | ||
'scroll-margin-x': RuleDefinition; | ||
'scroll-margin-y': RuleDefinition; | ||
'scroll-margin': RuleDefinition; | ||
'scroll-padding-left': RuleDefinition; | ||
'scroll-padding-right': RuleDefinition; | ||
'scroll-padding-top': RuleDefinition; | ||
'scroll-padding-bottom': RuleDefinition; | ||
'scroll-padding-x': RuleDefinition; | ||
'scroll-padding-y': RuleDefinition; | ||
'scroll-padding': RuleDefinition; | ||
'scroll-snap-align': RuleDefinition; | ||
'scroll-snap-stop': RuleDefinition; | ||
'scroll-snap-type': RuleDefinition; | ||
'will-change': RuleDefinition; | ||
'writing-mode': RuleDefinition; | ||
direction: RuleDefinition; | ||
'shape-outside': RuleDefinition; | ||
'shape-margin': RuleDefinition; | ||
'shapeImage-threshold': RuleDefinition; | ||
'clip-path': RuleDefinition; | ||
quotes: RuleDefinition; | ||
'mask-image': RuleDefinition; | ||
}; | ||
export default rules; |
declare const variables: { | ||
fontFamily: { | ||
mono: string[]; | ||
sans: string[]; | ||
serif: string[]; | ||
font: { | ||
family: { | ||
mono: string[]; | ||
sans: string[]; | ||
serif: string[]; | ||
}; | ||
weight: { | ||
thin: number; | ||
extralight: number; | ||
light: number; | ||
regular: number; | ||
medium: number; | ||
semibold: number; | ||
bold: number; | ||
extrabold: number; | ||
heavy: number; | ||
}; | ||
}; | ||
fontWeight: { | ||
thin: number; | ||
extralight: number; | ||
light: number; | ||
regular: number; | ||
medium: number; | ||
semibold: number; | ||
bold: number; | ||
extrabold: number; | ||
heavy: number; | ||
}; | ||
sizing: { | ||
@@ -35,9 +37,13 @@ '4xs': number; | ||
}; | ||
flexDirection: { | ||
col: string; | ||
'col-reverse': string; | ||
flex: { | ||
direction: { | ||
col: string; | ||
'col-reverse': string; | ||
}; | ||
}; | ||
boxSizing: { | ||
content: string; | ||
border: string; | ||
box: { | ||
sizing: { | ||
content: string; | ||
border: string; | ||
}; | ||
}; | ||
@@ -48,24 +54,30 @@ position: { | ||
}; | ||
transformBox: { | ||
content: string; | ||
border: string; | ||
padding: string; | ||
fill: string; | ||
stroke: string; | ||
view: string; | ||
transform: { | ||
box: { | ||
content: string; | ||
border: string; | ||
padding: string; | ||
fill: string; | ||
stroke: string; | ||
view: string; | ||
}; | ||
}; | ||
animationDirection: { | ||
alt: string; | ||
'alt-reverse': string; | ||
animation: { | ||
direction: { | ||
alt: string; | ||
'alt-reverse': string; | ||
}; | ||
}; | ||
backgroundClip: { | ||
content: string; | ||
border: string; | ||
padding: string; | ||
background: { | ||
clip: { | ||
content: string; | ||
border: string; | ||
padding: string; | ||
}; | ||
origin: { | ||
content: string; | ||
border: string; | ||
padding: string; | ||
}; | ||
}; | ||
backgroundOrigin: { | ||
content: string; | ||
border: string; | ||
padding: string; | ||
}; | ||
order: { | ||
@@ -75,17 +87,21 @@ first: number; | ||
}; | ||
shapeOutside: { | ||
content: string; | ||
border: string; | ||
padding: string; | ||
margin: string; | ||
shape: { | ||
outside: { | ||
content: string; | ||
border: string; | ||
padding: string; | ||
margin: string; | ||
}; | ||
}; | ||
clipPath: { | ||
content: string; | ||
border: string; | ||
padding: string; | ||
margin: string; | ||
fill: string; | ||
stroke: string; | ||
view: string; | ||
black: string; | ||
clip: { | ||
path: { | ||
content: string; | ||
border: string; | ||
padding: string; | ||
margin: string; | ||
fill: string; | ||
stroke: string; | ||
view: string; | ||
black: string; | ||
}; | ||
}; | ||
@@ -92,0 +108,0 @@ black: string; |
@@ -1,3 +0,3 @@ | ||
import { Rule, NativeRule, RuleOptions } from './rule'; | ||
import type { Config, ConfigAnimation } from './config'; | ||
import { Rule, NativeRule, RuleDefinition } from './rule'; | ||
import type { Config, AnimationDefinitions } from './config'; | ||
type VariableValue = { | ||
@@ -14,2 +14,10 @@ type: 'string'; | ||
}; | ||
export type Variable = Omit<VariableValue, 'value' | 'space'> & { | ||
value?: any; | ||
space?: any; | ||
usage?: number; | ||
themes?: { | ||
[theme: string]: VariableValue; | ||
}; | ||
}; | ||
export interface MasterCSS { | ||
@@ -22,15 +30,7 @@ readonly style: HTMLStyleElement; | ||
selectors: Record<string, [RegExp, string[]][]>; | ||
variables: Record<string, Omit<VariableValue, 'value' | 'space'> & { | ||
value?: any; | ||
space?: any; | ||
usage?: number; | ||
natives?: NativeRule[]; | ||
themes?: { | ||
[theme: string]: VariableValue; | ||
}; | ||
}>; | ||
variables: Record<string, Variable>; | ||
mediaQueries: Record<string, string | number>; | ||
hasVariablesRule: boolean; | ||
variablesNativeRules: Record<string, NativeRule>; | ||
hasKeyframesRule: boolean; | ||
animations: Record<string, ConfigAnimation & { | ||
animations: Record<string, AnimationDefinitions & { | ||
usage?: number; | ||
@@ -67,3 +67,3 @@ native?: NativeRule; | ||
*/ | ||
match(syntax: string): RuleOptions; | ||
match(syntax: string): RuleDefinition; | ||
/** | ||
@@ -108,2 +108,3 @@ * Create rules from class syntax | ||
private handleRuleWithVariableNames; | ||
private pushVariableNativeRule; | ||
} | ||
@@ -110,0 +111,0 @@ declare global { |
@@ -1,1 +0,1 @@ | ||
(()=>{function se(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ae(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function ne(t){let e=[];return t.forEach(function(r,s){typeof r=="object"&&r!==null?Array.isArray(r)?e[s]=ne(r):se(r)?e[s]=ae(r):e[s]=H({},r):e[s]=r}),e}function re(t,e){return e==="__proto__"?void 0:t[e]}function H(...t){let e={},r,s;return t.forEach(function(p){typeof p!="object"||p===null||Array.isArray(p)||Object.keys(p).forEach(function(a){if(s=re(e,a),r=re(p,a),r!==e)if(typeof r!="object"||r===null){e[a]=r;return}else if(Array.isArray(r)){e[a]=ne(r);return}else if(se(r)){e[a]=ae(r);return}else if(typeof s!="object"||s===null||Array.isArray(s)){e[a]=H({},r);return}else{e[a]=H(s,r);return}})}),e}var q={"(":")","'":"'",'"':'"',"{":"}"};function Z(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,s=-1,p="",a,n=e.charCodeAt(0);if(r==1&&n==45)return"\\"+e;for(;++s<r;){if(a=e.charCodeAt(s),a==0){p+="\uFFFD";continue}if(a>=1&&a<=31||a==127||s==0&&a>=48&&a<=57||s==1&&a>=48&&a<=57&&n==45){p+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){p+=e.charAt(s);continue}p+="\\"+e.charAt(s)}return p}var ge=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,te=class{constructor(e,r={},s){this.className=e;this.options=r;this.css=s;let{layer:p,unit:a,colored:n,resolvedPropName:m,analyze:c,transform:h,declare:l,create:o,order:u,id:g}=r;this.order=u,this.layer=p,r.unit||(r.unit=""),r.separators||(r.separators=[","]);let{scope:y,important:v,themeDriver:f}=s.config,{selectors:i,mediaQueries:d,stylesBy:b,animations:x}=s,R=b[e];o&&o.call(this,e),this.declarations=r.declarations;let w,N;if(this.colored=n,p===-401)w=e.slice(g.length-1);else{let j;if(c)[j,N]=c.call(this,e);else{let k=e.indexOf(":");this.prefix=e.slice(0,k+1),j=e.slice(k+1)}this.valueComponents=[],w=j.slice(this.parseValue(this.valueComponents,0,j,a))}w[0]==="!"&&(this.important=!0,w=w.slice(1)),this.stateToken=w;let V=(j,k)=>{let z=(S,E,W,M)=>{for(let[D,F]of E)if(D.test(S)){for(let Y of F)z(S.replace(D,Y),E,W,!0);return}M&&W.push(S)},I=S=>{let E=S.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((F,Y)=>Y%3?F:F.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),W=[],M="",D=0;for(let F=0;F<E.length;F++){let Y=E[F];if(Y==="\\"){M+=Y+E[++F];continue}!D&&Y===","?(W.push(M),M=""):(M+=Y,D&&Y===")"?D--:Y==="("&&D++)}return M&&W.push(M),W},L=[];""in i?z(j,i[""],L,!0):L.push(j);let $={};for(let[S,E]of Object.entries(i)){if(!S)continue;let W=[];for(let M of L)z(M,E,W,!1);W.length&&($[S]=W)}let U=(S,E)=>{let W=E.reduce((M,D)=>(M.push(...I(D)),M),[]);S in k?k[S].push(...W):k[S]=W},_=Object.keys($);if(_.length)for(let S of _)U(S,$[S]);else U("",L)};N?(this.vendorPrefixSelectors={},V(N,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let C=w.split("@"),O=C[0];if(O){this.vendorSuffixSelectors={},V(O,this.vendorSuffixSelectors);for(let j of Object.values(this.vendorSuffixSelectors))for(let k of j){this.hasWhere!==!1&&(this.hasWhere=k.includes(":where("));let z=[":disabled",":active",":focus",":hover"];for(let I=0;I<z.length;I++)if(k.includes(z[I])){(this.priority===-1||this.priority>I)&&(this.priority=I);break}}}else this.vendorSuffixSelectors={"":[""]};let G={},T=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),P=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(T)G[""]=P?[""]:Object.keys(this.vendorSuffixSelectors);else if(P)for(let j in this.vendorPrefixSelectors)G[j]=[""];else for(let j in this.vendorPrefixSelectors){let k=G[j]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,j))k.push(j);else for(let z in this.vendorSuffixSelectors)k.push(z)}for(let j=1;j<C.length;j++){let k=C[j];if(k)if(k==="rtl"||k==="ltr")this.direction=k;else{let z,I,L=ge.exec(k);if(L)z=L[1],I=k.slice(z.length);else{this.media={token:k,features:{}};let $=[],U=S=>{if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")$.push("(orientation:"+S+")");else if(S==="motion"||S==="reduced-motion")$.push("(prefers-reduced-motion:"+(S==="motion"?"no-preference":"reduce")+")");else{let E=d[S];if(E&&typeof E=="string")$.push(E);else{let W="",M="",D=0;S.startsWith("<=")?(M="<=",W="max-width"):S.startsWith(">=")||E?(M=">=",W="min-width"):S.startsWith(">")?(M=">",W="min-width",D=.02):S.startsWith("<")&&(M="<",W="max-width",D=-.02);let F=M?S.replace(M,""):S,Y=d[F];switch(W){case"max-width":case"min-width":let X={};typeof Y=="number"?X={type:"number",value:Y+D,unit:"px"}:(X=this.parseValueComponent(F,"px"),X.type==="number"&&X.unit==="px"&&(X.value+=D)),this.media.features[W]=X,X.type==="number"?$.push("("+W+":"+(X.value+X.unit)+")"):$.push("("+W+":"+X.value+")");break}}}},_=k.includes("&");if(_){let S=k.split("&");for(let E of S)U(E)}else U(k);if(this.media.type&&(I=this.media.type),$.length&&(I=$.join(" and ")),I)z="media";else if(!_){this.theme=k;continue}}I&&(this.at[z]=(z in this.at?this.at[z]+" and ":"")+I.replace(/\|/g," "))}}let A;if(this.valueComponents)if(A=this.transformValueComponents(this.valueComponents,a,[]),h&&(A=h.call(this,A,this.css.config)),l){let j,k;this.declarations=l.call(this,k?j:A,k||"")}else m&&(this.declarations={[m]:A});let ie=[];for(let j in this.declarations){let k=L=>{if(x&&(L.startsWith("animation")||L.startsWith("animation-name"))){let $=L.split(":")[1].split("!important")[0].split(" ").filter(U=>U in this.css.animations&&(!this.animationNames||!this.animationNames.includes(U)));$.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...$))}ie.push(L+((this.important||v)&&!L.endsWith("!important")?"!important":""))},z=j+":",I=this.declarations[j];if(typeof I=="object")for(let L of I)k(z+L.toString());else k(z+I.toString())}if(ie.length)for(let j in G)for(let k of G[j]){let z="";this.direction&&(z+="[dir="+this.direction+"] ");let I=this.vendorPrefixSelectors[j],L=this.vendorSuffixSelectors[k],$=I.map(S=>S+z),U=S=>$.map(E=>(this.theme&&f!=="media"?f==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(y?y+" ":"")+E).reduce((E,W)=>(E.push(L.reduce((M,D)=>(M.push(W+"."+Z(S)+D),M),[]).join(",")),E),[]).join(","),_=U(e)+(R?R.reduce((S,E)=>S+","+U(E),""):"")+"{"+ie.join(";")+"}";for(let S of Object.keys(this.at).sort((E,W)=>W==="supports"?-1:1))_="@"+S+(S.includes(" ")?"":" ")+this.at[S]+"{"+_+"}";this.theme&&f==="media"&&(_=`@media(prefers-color-scheme:${this.theme}){`+_+"}"),this.natives.push({text:_})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;colored=!1;animationNames;variableNames;transformValueComponents=(e,r,s)=>{let{functions:p}=this.css.config,a="";for(let n of e)switch(n.type){case"function":let m=p&&p[n.name];if(m?.transform){let h=m.transform.call(this,this.transformValueComponents(n.childrens,m.unit??r,s),s);a+=typeof h=="string"?h:this.transformValueComponents(h,m?.unit??r,s)}else a+=n.name+n.symbol+this.transformValueComponents(n.childrens,m?.unit??r,s)+q[n.symbol];break;case"variable":let c=this.css.variables[n.name];if(c){let h=(l,o)=>{if(c.themes)if(this.theme){let u=c.themes[this.theme]??c;u?.value&&l(u)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(n.name)||this.variableNames.push(n.name),o();else l(c)};switch(c.type){case"string":h(o=>{let u=[];this.parseValue(u,0,o.value,r,void 0,void 0,[...s,n.name]),a+=this.transformValueComponents(u,r,[...s,n.name])},()=>{a+=`var(--${n.name})`});break;case"number":h(o=>{let u=this.parseValueComponent(o.value,r);a+=u.value+(u.unit??"")},()=>{a+=r?`calc(var(--${n.name}) / 16 * 1rem)`:`var(--${n.name})`});break;case"color":let l=n.alpha?"/"+n.alpha:"";h(o=>{a+=`${o.space}(${o.value}${l})`},()=>{a+=`${c.space}(var(--${n.name})${l})`});break}}else a+=`var(--${n.name}${n.fallback?","+n.fallback:""})`;break;case"separator":a+=(n.prefix||"")+n.value+(n.suffix||"");break;case"number":a+=n.value+n.unit;break;default:a+=n.value;break}return a};get text(){return this.natives.map(e=>e.text).join("")}parseValue=(e,r,s,p,a,n=void 0,m=[])=>{let c=n===void 0,h=!c&&(n.endsWith("$")||n.endsWith("var")),o=(v=>v==="'"||v==='"')(a),u=[","];this.options.separators.length&&u.push(...this.options.separators);let g="",y=()=>{if(g){let v=!1;if(!h||e.length){let f=(i,d)=>{let b=Object.prototype.hasOwnProperty.call(this.options.resolvedVariables,i)?this.options.resolvedVariables[i]:Object.prototype.hasOwnProperty.call(this.css.variables,i)?this.css.variables[i]:void 0;if(b){let x=b.name??i;m.includes(x)||(v=!0,e.push({type:"variable",name:x,alpha:d}))}};if(f(g),!v&&this.colored){let[i,d]=g.split("/");f(i,d)}}v||e.push(this.parseValueComponent(g,p)),g=""}};for(;r<s.length;r++){let v=s[r];if(v===a){if(o){let f=0;for(let i=g.length-1;g[i]==="\\";i--)f++;if(f%2){g+=v;continue}else y()}else y();return r}else if(!o&&v in q){let f=g,i={type:"function",name:f,symbol:v,childrens:[]};e.push(i),g="";let d=v==="("&&this.css.config.functions?.[f];!this.colored&&d?.colored&&(this.colored=!0),r=this.parseValue(i.childrens,++r,s,d?.unit??p,q[v],f||n||"")}else if((v==="|"||v===" ")&&a!=="}"&&(!o||n==="path"))y(),e.push({type:"separator",value:" "});else{if(!o){if(v===".")if(isNaN(+s[r+1])){if(c)break}else s[r-1]==="-"&&(g+="0");else if(u.includes(v)){y(),e.push({type:"separator",value:v,prefix:v===","?"":" ",suffix:v===","?"":" "});continue}else if(c&&(v==="#"&&(g||e.length&&e[e.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(v)))break}g+=v}}return y(),r};resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}parseValueComponent(e,r=this.options.unit){let s=r??this.options.unit,p="",a;if(typeof e=="number")return s&&!p?((s==="rem"||s==="em")&&(a=e/this.css.config.rootSize),p=s||""):a=e,{value:a,unit:p,type:"number"};if(s){if(/^\d+\/\d+/.test(e)){let[m,c]=e.split("/");return{value:+m/+c*100,unit:"%",type:"number"}}let n=e.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(n)return a=+n[1],p=n[3]||"",p||((s==="rem"||s==="em")&&(a=a/this.css.config.rootSize),p=s||""),{value:a,unit:p,type:"number"}}return{value:e,type:"string"}}};var ye={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},oe=ye;var be={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},le=be;var ve={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},ce=ve;var Re={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}},ue=Re;function K(t){t.startsWith("#")&&(t=t.slice(1));let e,r,s,p;return t.length===3||t.length===4?(e=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),s=parseInt(t[2]+t[2],16),p=t.length===4?Math.round(parseInt(t[3]+t[3],16)/255*100)/100:1):(t.length===6||t.length===8)&&(e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),s=parseInt(t.slice(4,6),16),p=t.length===8?Math.round(parseInt(t.slice(6,8),16)/255*100)/100:1),[e,r,s,p]}function de(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function B(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let s in t)if(s&&+s>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let s=0,p="0"in t?K(t[0]):[0,0,0],a,n,m=[],c=()=>{let h=a-s,l=n.map((o,u)=>(o-p[u])/h);for(let o of m){let u=o-s,g=p.map((y,v)=>Math.round(y+l[v]*u));t[o]="#"+de.call(this,...g)}};for(let h=1;h<100;h++)h in t?(m.length?(a=h,n=K(t[h]),c(),m.length=0,p=n):p=K(t[h]),s=h):m.push(h);m.length&&(a=100,n="100"in t?K(t[100]):[255,255,255],c())}return e||(t[""]=t[r?"500":"50"]),t}var xe={fontFamily:{mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},fontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},sizing:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560,full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},flexDirection:{col:"column","col-reverse":"column-reverse"},boxSizing:{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},transformBox:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},animationDirection:{alt:"alternate","alt-reverse":"alternate-reverse"},backgroundClip:{content:"content-box",border:"border-box",padding:"padding-box"},backgroundOrigin:{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},shapeOutside:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},clipPath:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box",black:"#000000"},black:"#000000",white:"#ffffff",current:"currentColor",slate:B({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:B({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:B({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:B({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:B({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:B({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:B({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:B({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:B({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:B({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:B({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:B({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:B({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:B({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:B({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:B({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:B({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:B({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:B({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:B({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},he=xe;var Q=["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Se={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=c=>{let h=c.indexOf(":");h!==-1&&(e[c.slice(0,h)]=c.slice(h+1))},s=c=>{let h=l=>{let o=l.slice(Z(c.className).length).match(/\{(.*)\}/)[1].split(";");for(let u of o)r(u)};for(let l of c.natives)h(l.text);if(c.animationNames){this.animationNames||(this.animationNames=[]);for(let l of c.animationNames)this.animationNames.includes(l)||this.animationNames.push(l)}if(c.variableNames){this.variableNames||(this.variableNames=[]);for(let l of c.variableNames)this.variableNames.includes(l)||this.variableNames.push(l)}},p=[],a="",n=()=>{a&&(p.push(a.replace(/ /g,"|")),a="")},m=1;(function c(h){for(;m<t.length;m++){let l=t[m];if(!h){if(l===";"){n();continue}if(l==="}")break}if(a+=l,h===l){if(h==="'"||h==='"'){let o=0;for(let u=a.length-2;a[u]==="\\";u--)o++;if(o%2)continue}break}else l in q&&h!=="'"&&h!=='"'&&(m++,c(q[l]))}})(void 0),n();for(let c of p){let h=this.css.create(c);if(h.length)for(let l of h)s(l);else r(c)}return e}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-101},fontWeight:{match:["f(?:ont)?",["bolder"]],layer:-101},fontFamily:{match:["f(?:ont)?"],layer:-101},fontSmoothing:{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-101,declare(t){switch(t){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-101,unit:"deg"},fontVariantNumeric:{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-101},fontVariant:{layer:-301},fontFeatureSettings:{match:/^font-feature:/,layer:-101},font:{match:/^f:/,layer:-301,variableGroups:["fontFamily","fontVariant","fontWeight","fontSize","fontStyle","lineHeight"]},color:{match:/^(?:color|fg|foreground):/,layer:-101,colored:!0},marginLeft:{match:/^ml:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginRight:{match:/^mr:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginTop:{match:/^mt:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginBottom:{match:/^mb:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginX:{match:/^(?:mx|margin-x):/,unit:"rem",layer:-201,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}},variableGroups:["spacing"]},marginY:{match:/^(?:my|margin-y):/,unit:"rem",layer:-201,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}},variableGroups:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-301,variableGroups:["spacing"]},marginInlineStart:{match:/^mis:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginInlineEnd:{match:/^mie:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginInline:{match:/^mi:/,unit:"rem",layer:-301,variableGroups:["spacing"]},paddingLeft:{match:/^pl:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingRight:{match:/^pr:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingTop:{match:/^pt:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingBottom:{match:/^pb:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingX:{match:/^(?:px|padding-x):/,unit:"rem",layer:-201,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}},variableGroups:["spacing"]},paddingY:{match:/^(?:py|padding-y):/,unit:"rem",layer:-201,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}},variableGroups:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-301,variableGroups:["spacing"]},paddingInlineStart:{match:/^pis:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingInlineEnd:{match:/^pie:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingInline:{match:/^pi:/,unit:"rem",layer:-301,variableGroups:["spacing"]},flexBasis:{variableGroups:["sizing"],unit:"rem",layer:-101},flexWrap:{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-101},flexGrow:{layer:-101},flexShrink:{layer:-101},flexDirection:{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-101},flex:{layer:-301},display:{match:/^d:/,layer:-101},width:{match:/^w:/,unit:"rem",layer:-101,variableGroups:["sizing"]},height:{match:/^h:/,unit:"rem",layer:-101,variableGroups:["sizing"]},minWidth:{match:/^min-w:/,unit:"rem",layer:-101,variableGroups:["sizing"]},minHeight:{match:/^min-h:/,unit:"rem",layer:-101,variableGroups:["sizing"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-201,unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:/^min:/,layer:-201,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:/^max:/,layer:-201,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},boxSizing:{match:/^box:/,layer:-101},boxDecorationBreak:{match:["sizing",["slice","clone"]],layer:-101,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},contain:{layer:-101},content:{layer:-101},counterIncrement:{layer:-101},counterReset:{layer:-101},letterSpacing:{match:/^ls:/,layer:-101,unit:"em"},lineHeight:{match:/^lh:/,layer:-101},objectFit:{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-101},objectPosition:{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-101},textAlign:{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-101},textDecorationColor:{match:["text-decoration"],layer:-101,colored:!0},textDecorationStyle:{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-101},textDecorationThickness:{match:["text-decoration",["from-font"]],numeric:!0,layer:-101,unit:"em"},textDecorationLine:{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-101},textDecoration:{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-301},textUnderlineOffset:{unit:"rem",layer:-101,variableGroups:["spacing"]},textOverflow:{match:["t(?:ext)?",["ellipsis","clip"]],layer:-101},textOrientation:{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-101},textTransform:{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-101},textRendering:{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-101},textIndent:{unit:"rem",layer:-101},verticalAlign:{match:/^(?:v|vertical):/,layer:-101},columns:{match:/^(?:columns|cols):/,layer:-301},whiteSpace:{layer:-101},top:{layer:-101,unit:"rem",variableGroups:["spacing"]},bottom:{layer:-101,unit:"rem",variableGroups:["spacing"]},left:{layer:-101,unit:"rem",variableGroups:["spacing"]},right:{layer:-101,unit:"rem",variableGroups:["spacing"]},inset:{unit:"rem",layer:-301,variableGroups:["spacing"]},lines:{match:/^lines:/,declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:/^max-h:/,unit:"rem",layer:-101,variableGroups:["sizing"]},maxWidth:{match:/^max-w:/,unit:"rem",layer:-101,variableGroups:["sizing"]},opacity:{layer:-101},visibility:{layer:-101},clear:{layer:-101},float:{layer:-101},isolation:{layer:-101},overflowX:{layer:-101,declare(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},overflowY:{layer:-101,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{layer:-301,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},overscrollBehaviorX:{layer:-101},overscrollBehaviorY:{layer:-101},overscrollBehavior:{layer:-301},zIndex:{match:/^z:/,layer:-101},position:{layer:-101},cursor:{layer:-101},pointerEvents:{layer:-101},resize:{layer:-101},touchAction:{layer:-101},wordBreak:{layer:-101},wordSpacing:{layer:-101,unit:"em"},userDrag:{layer:-101,declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{layer:-101,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",layer:-101,colored:!0},textSize:{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{match:["(?:text-fill|text|t)"],layer:-101,colored:!0,declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-101,declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:["text-stroke"],layer:-101,colored:!0,declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",layer:-101,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:/^s(?:hadow)?:/,unit:"rem",layer:-101,colored:!0},tableLayout:{layer:-101},transformBox:{match:["transform"],layer:-101},transformStyle:{match:["transform",["flat","preserve-3d"]],layer:-101},transformOrigin:{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-101},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-101,analyze(t){return[t.startsWith("transform")?t.slice(10):t]},variableGroups:["spacing"]},transitionProperty:{match:/^~property:/,layer:-101},transitionTimingFunction:{match:/^~easing:/,layer:-101},transitionDuration:{match:/^~duration:/,layer:-101,unit:"ms"},transitionDelay:{match:/^~delay:/,layer:-101,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(t){if(t.startsWith("~"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}},layer:-301},animationDelay:{match:/^@delay:/,layer:-101,unit:"ms"},animationDirection:{match:/^@direction:/,layer:-101},animationDuration:{match:/^@duration:/,layer:-101,unit:"ms"},animationFillMode:{match:/^@fill:/,layer:-101},animationIterationCount:{match:/^@iteration:/,layer:-101},animationName:{match:/^@name:/,layer:-101},animationPlayState:{match:/^@play:/,layer:-101},animationTimingFunction:{match:/^@easing:/,layer:-101},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-301,analyze(t){if(t.startsWith("@"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}}},borderCollapse:{match:["b(?:order)?",["collapse","separate"]],layer:-101},borderSpacing:{unit:"rem",layer:-101},borderTopColor:{match:["b(?:t|order-top(?:-color)?)"],layer:-101,colored:!0},borderBottomColor:{match:["b(?:b|order-bottom(?:-color)?)"],layer:-101,colored:!0},borderLeftColor:{match:["b(?:l|order-left(?:-color)?)"],layer:-101,colored:!0},borderRightColor:{match:["b(?:r|order-right(?:-color)?)"],layer:-101,colored:!0},borderXColor:{match:["b(?:x|order-x(?:-color)?)"],layer:-201,colored:!0,declare(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:["b(?:y|order-y(?:-color)?)"],layer:-201,colored:!0,declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},borderColor:{match:["b(?:order)?(?:-color)?"],layer:-301,colored:!0},borderTopLeftRadius:{match:/^r(?:tl|lt):/,unit:"rem",layer:-101},borderTopRightRadius:{match:/^r(?:tr|rt):/,unit:"rem",layer:-101},borderBottomLeftRadius:{match:/^r(?:bl|lb):/,unit:"rem",layer:-101},borderBottomRightRadius:{match:/^r(?:br|rb):/,unit:"rem",layer:-101},borderTopRadius:{match:/^rt:/,unit:"rem",layer:-201,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:/^rb:/,unit:"rem",layer:-201,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:/^rl:/,unit:"rem",layer:-201,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:/^rr:/,unit:"rem",layer:-201,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},borderRadius:{match:/^r:/,unit:"rem",layer:-301},borderTopStyle:{match:["b(?:t|order-top(?:-style)?)",Q],layer:-101},borderBottomStyle:{match:["b(?:b|order-bottom(?:-style)?)",Q],layer:-101},borderLeftStyle:{match:["b(?:l|order-left(?:-style)?)",Q],layer:-101},borderRightStyle:{match:["b(?:r|order-right(?:-style)?)",Q],layer:-101},borderXStyle:{match:["b(?:x|order-x(?:-style)?)",Q],layer:-201,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:["b(?:y|order-y(?:-style)?)",Q],layer:-201,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},borderStyle:{match:["b(?:order)?(?:-style)?",Q],layer:-301},borderTopWidth:{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderBottomWidth:{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderLeftWidth:{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderRightWidth:{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderXWidth:{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},borderWidth:{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-301},borderImageOutset:{unit:"rem",layer:-101},borderImageRepeat:{match:["border-image",["stretch","repeat","round","space"]],layer:-101},borderImageSlice:{layer:-101},borderImageSource:{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-101},borderImageWidth:{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-101},borderImage:{layer:-301},borderTop:{match:/^bt:/,layer:-301,unit:"rem",colored:!0},borderBottom:{match:/^bb:/,layer:-301,unit:"rem",colored:!0},borderLeft:{match:/^bl:/,layer:-301,unit:"rem",colored:!0},borderRight:{match:/^br:/,layer:-301,unit:"rem",colored:!0},borderX:{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-201,declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-201,declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-301},backgroundAttachment:{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-101},backgroundBlendMode:{layer:-101},backgroundColor:{match:["(?:bg|background)"],layer:-101,colored:!0},backgroundClip:{match:["(?:bg|background)",["text"]],layer:-101,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}}},backgroundOrigin:{match:["(?:bg|background)"],layer:-101},backgroundPosition:{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-101,unit:"px"},backgroundRepeat:{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-101},backgroundSize:{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-101},backgroundImage:{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},background:{match:/^bg:/,colored:!0,layer:-301},gradient:{match:/^gradient\(/,layer:-101,colored:!0,declare(t){return{"background-image":"linear-"+t}}},mixBlendMode:{match:/^blend:/,layer:-101},backdropFilter:{match:/^bd:/,layer:-101,colored:!0,declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-101,colored:!0},fill:{match:/^fill:/,layer:-101,colored:!0},strokeDasharray:{layer:-101},strokeDashoffset:{layer:-101,variableGroups:["spacing"]},strokeWidth:{match:["stroke(?:-width)?"],numeric:!0,layer:-101},stroke:{match:["stroke"],layer:-101,colored:!0},x:{layer:-101,variableGroups:["spacing"]},y:{layer:-101,variableGroups:["spacing"]},cx:{layer:-101,variableGroups:["spacing"]},cy:{layer:-101,variableGroups:["spacing"]},rx:{layer:-101},ry:{layer:-101},gridColumnStart:{match:/^grid-col-start:/,layer:-101},gridColumnEnd:{match:/^grid-col-end:/,layer:-101},gridColumn:{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-301,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:/^grid-cols:/,declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},gridRowStart:{layer:-101},gridRowEnd:{layer:-101},gridRow:{match:/^grid-row-span:/,layer:-301,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{match:/^grid-rows:/,declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},gridAutoColumns:{match:/^grid-auto-cols:/,layer:-101,variableGroups:["sizing"]},gridAutoFlow:{match:/^grid-flow:/,layer:-101},gridAutoRows:{layer:-101,variableGroups:["sizing"]},gridTemplateAreas:{layer:-101},gridTemplateColumns:{match:/^grid-template-cols:/,layer:-101,unit:"rem",variableGroups:["sizing"]},gridTemplateRows:{layer:-101,unit:"rem",variableGroups:["sizing"]},gridTemplate:{layer:-301},gridArea:{layer:-301},grid:{layer:-301},columnGap:{match:/^gap-x:/,unit:"rem",layer:-101,variableGroups:["spacing"]},rowGap:{match:/^gap-y:/,unit:"rem",layer:-101,variableGroups:["spacing"]},gap:{unit:"rem",layer:-301,variableGroups:["spacing"]},order:{match:/^o:/,layer:-101},breakInside:{layer:-101},breakBefore:{layer:-101},breakAfter:{layer:-101},aspectRatio:{match:/^aspect:/,layer:-101},columnSpan:{match:/^col-span:/,layer:-101},alignContent:{match:/^ac:/,layer:-101},alignItems:{match:/^ai:/,layer:-101},alignSelf:{match:/^as:/,layer:-101},justifyContent:{match:/^jc:/,layer:-101},justifyItems:{match:/^ji:/,layer:-101},justifySelf:{match:/^js:/,layer:-101},placeContent:{layer:-301},placeItems:{layer:-301},placeSelf:{layer:-301},listStylePosition:{match:["list-style",["inside","outside"]],layer:-101},listStyleType:{match:["list-style",["disc","decimal"]],layer:-101},listStyleImage:{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},listStyle:{layer:-301},outlineColor:{match:["outline"],layer:-101,colored:!0},outlineOffset:{unit:"rem",layer:-101,variableGroups:["spacing"]},outlineStyle:{match:["outline",["dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},outlineWidth:{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-101},outline:{unit:"rem",layer:-301,colored:!0,variableGroups:["outlineWidth","outlineStyle","outlineOffset","outlineColor"]},accentColor:{match:/^accent:/,layer:-101,colored:!0},appearance:{layer:-101},caretColor:{match:/^caret:/,layer:-101,colored:!0},scrollBehavior:{layer:-101},scrollMarginLeft:{match:/^scroll-ml:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginRight:{match:/^scroll-mr:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginTop:{match:/^scroll-mt:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginBottom:{match:/^scroll-mb:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginX:{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-201,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}},variableGroups:["spacing"]},scrollMarginY:{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-201,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}},variableGroups:["spacing"]},scrollMargin:{match:/^scroll-m:/,unit:"rem",layer:-301,variableGroups:["spacing"]},scrollPaddingLeft:{match:/^scroll-pl:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingRight:{match:/^scroll-pr:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingTop:{match:/^scroll-pt:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingBottom:{match:/^scroll-pb:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingX:{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-201,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}},variableGroups:["spacing"]},scrollPaddingY:{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-201,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}},variableGroups:["spacing"]},scrollPadding:{match:/^scroll-p:/,unit:"rem",layer:-301,variableGroups:["spacing"]},scrollSnapAlign:{match:["scroll-snap",["start","end","center"]],layer:-101},scrollSnapStop:{match:["scroll-snap",["normal","always"]],layer:-101},scrollSnapType:{match:["scroll-snap",["x","y","block","inline","both"]],layer:-101},willChange:{layer:-101},writingMode:{match:/^writing:/,layer:-101},direction:{layer:-101},shapeOutside:{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-101},shapeMargin:{match:["shape"],numeric:!0,unit:"rem",layer:-101,variableGroups:["spacing"]},shapeImageThreshold:{layer:-101},clipPath:{match:/^clip:/,layer:-101},quotes:{layer:-101},maskImage:{layer:-101,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},fe=Se;var Oe={$:{colored:!0,transform(t){let e,r,s=t.indexOf(",");return s!==-1?(e=t.slice(0,s),r=t.slice(s+1)):e=t,[{type:"variable",name:e,fallback:r}]}},calc:{transform(t,e){let r=[],s=this.css.config.functions,p=0,a=(n,m,c)=>{let h=!1,l="",o=(u,g="",y="")=>{l&&(!h&&!c?n.push(this.parseValueComponent(l,s.calc.unit)):n.push({type:"string",value:l}),l=""),u&&(g&&t[p-1]===" "&&(g=""),y&&t[p+1]===" "&&(y=""),m?n.push({type:"separator",value:u}):n.push({type:"separator",value:u,prefix:g,suffix:y})),h=!1};for(;p<t.length;p++){let u=t[p];if(u==="("){let g=/^([+-])/.exec(l);g&&n.push({type:"string",value:g[1]});let y=g?l.slice(1):l,v={type:"function",name:y,symbol:u,childrens:[]};n.push(v),l="",p++;let f=v.name==="$"||v.name==="var";a(v.childrens,y!==""&&y!=="calc"&&(f||Object.prototype.hasOwnProperty.call(s,y)),h||f)}else if(u===")"){o("");break}else if(u===",")o(u,""," ");else if(u===" ")o(u);else{let g=t[p-1];switch(u){case"+":!l&&g!==")"?l+=u:o(u," "," ");break;case"-":!l&&g!==")"?l+=u:o(u," "," ");break;case"*":o(u," "," ");break;case"/":o(u," "," "),h=!0;break;default:l+=u;break}}}o("")};return a(r,!1,!1),"calc("+this.transformValueComponents(r,s.calc.unit??this.options.unit,e)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},pe=Oe;var J={mediaQueries:oe,selectors:le,semantics:ce,rules:fe,functions:pe,animations:ue,variables:he,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var me=[",",".","#","[","!","*",">","+","~",":","@"];var ee=class{constructor(e=J){this.customConfig=e;e?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(J,e),this.resolve(),globalThis.masterCSSs.push(this)}static config=J;static refresh=e=>{for(let r of globalThis.masterCSSs)r.refresh(e)};rules=[];ruleBy={};classesUsage={};observing=!1;config;semanticRuleOptions=[];ruleOptions=[];observer;resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.ruleOptions.length=0,this.semanticRuleOptions.length=0,this.hasVariablesRule=!1,this.hasKeyframesRule=!1;let e={current:void 0,currentColor:void 0,transparent:void 0},{styles:r,selectors:s,variables:p,semantics:a,mediaQueries:n,rules:m,animations:c}=this.config;function h(i){return i.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function l(i,d,b="",x={}){let R=C=>C?(b?b+"-":"")+C:b,w=Object.entries(i),N=[],V=[];for(let C of w){let O=C[1];(typeof O=="object"&&!Array.isArray(O)?N:V).push(C)}for(let[C,O]of N)l(O,d,R(C),x);if(d&&b)V.length&&(x[b]=V.reduce((C,[O,G])=>(C[O]=G,C),{}));else for(let[C,O]of V)x[R(C)]=O;return x}if(s)for(let[i,d]of Object.entries(l(s,!1))){let b=new RegExp(h(i)+"(?![a-z-])");for(let x of Array.isArray(d)?d:[d]){let R=x.match(/^::-[a-z]+-/m)?.[0]??"",w=this.selectors[R];w||(w=this.selectors[R]=[]);let N=w.find(([V])=>V===b);N||(N=[b,[]],w.push(N)),N[1].push(x)}}if(p){let i={};for(let d in p){let b=(x,R,w=void 0)=>{if(!x)return;let N=(C,O,G=void 0,T=void 0)=>{if(O===void 0)return;if(O.type==="color"){if(T){let A=O.value.indexOf("/");O={...O,value:A===-1?O.value+" / "+(T.startsWith("0.")?T.slice(1):T):O.value.slice(0,A+2)+(+O.value.slice(A+2)*+T).toString().slice(1)}}e[C]=void 0}let P=G??w;if(P!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,C)){let A=this.variables[C];P?(A.themes||(A.themes={}),A.themes[P]=O):(A.value=O.value,A.space=O.space)}else P?this.variables[C]={type:O.type,space:O.space,themes:{[P]:O}}:this.variables[C]=O;else this.variables[C]=O},V=typeof x;if(V==="object")if(Array.isArray(x))N(R,{type:"string",value:x.join(",")});else{let C=Object.keys(x);for(let O of C)O===""||O.startsWith("@")?b(x[O],R,O||C.some(G=>G.startsWith("@"))?O.slice(1):void 0):b(x[O],R+"-"+O)}else if(V==="number")N(R,{type:"number",value:x}),N("-"+R,{type:"number",value:x*-1});else if(V==="string"){let C=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(x);if(C)Object.prototype.hasOwnProperty.call(i,R)||(i[R]={}),i[R][w]=()=>{delete i[R][w];let[O,G]=C[1].split("@");if(O){if(Object.prototype.hasOwnProperty.call(i,O))for(let P of Object.keys(i[O]))i[O][P]?.();let T=this.variables[O];if(T)if(G===void 0&&T.themes){N(R,{type:T.type,value:T.value,space:T.space},"",C[2]);for(let P in T.themes)N(R,T.themes[P],P,C[2])}else{let P=G!==void 0?T.themes?.[G]:T;P&&N(R,{type:P.type,value:P.value,space:P.space},void 0,C[2])}}};else{let O=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(x);if(O){let[G,T,P,A]=K(O[1]);N(R,{type:"color",value:`${G} ${T} ${P}${A===1?"":" / "+A}`,space:"rgb"})}else{let G=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(x);if(G)N(R,{type:"color",value:G[1]+" "+G[2]+" "+G[3]+(G[4]?" / "+(G[4].startsWith("0.")?G[4].slice(1):G[4]):""),space:"rgb"});else{let T=/^hsl\((.*?)\)$/.exec(x);T?N(R,{type:"color",value:T[1],space:"hsl"}):N(R,{type:"string",value:x})}}}}};b(p[d],d)}for(let d of Object.keys(i))for(let b of Object.keys(i[d]))i[d][b]?.()}if(n&&(this.mediaQueries=l(n,!1)),c)for(let i in c){let d=this.animations[i]={},b=c[i];for(let x in b){let R=d[x]={},w=b[x];for(let N in w)R[N]=w[N]}}let o=r?l(r,!1):{},u=Object.keys(o),g=i=>{if(Object.prototype.hasOwnProperty.call(this.styles,i))return;let d=this.styles[i]=[],b=o[i];if(!b)return;let x=b.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let R of x){let w=N=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,N)){let V=this.stylesBy[N];V.includes(i)||V.push(i)}else this.stylesBy[N]=[i];d.includes(N)||d.push(N)};if(u.includes(R)){g(R);for(let N of this.styles[R])w(N)}else w(R)}};for(let i of u)g(i);a&&Object.entries(a).sort((i,d)=>i[0].localeCompare(d[0])).forEach(([i,d],b)=>{this.semanticRuleOptions.push({id:"."+i,resolvedMatch:new RegExp("^"+h(i)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:b,declarations:d,layer:-401})});let y=Object.entries(m).sort((i,d)=>i[1].layer!==d[1].layer?(d[1].layer||0)-(i[1].layer||0):d[0].localeCompare(i[0])),v=y.length,f=Object.keys(e);y.forEach(([i,d],b)=>{this.ruleOptions.push(d),d.order=this.semanticRuleOptions.length+v-1-b;let x=d.match;d.id=i,(d.layer===-100||d.layer===-300||d.layer===-101||d.layer===-301)&&(d.resolvedPropName=i.replace(/(?!^)[A-Z]/g,w=>"-"+w).toLowerCase()),d.resolvedVariables={};let R=w=>{Object.assign(d.resolvedVariables,Object.keys(this.variables).filter(N=>N.startsWith(w+"-")||N.startsWith("-"+w+"-")).reduce((N,V)=>(N[V.slice(w.length+(w.startsWith("-")?0:1))]={...this.variables[V],name:V},N),{}))};if(d.variableGroups)for(let w of d.variableGroups)R(w);if(R(i),x)if(Array.isArray(x)){let[w,N=[]]=x,V=[];N.length&&V.push(`(?:${N.join("|")})(?![a-zA-Z0-9-])`),Object.keys(d.resolvedVariables).length&&V.push(`(?:${Object.keys(d.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),d.colored&&V.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${f.join("|")})(?![a-zA-Z0-9-])`),d.numeric&&V.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),d.resolvedMatch=new RegExp(`^${w}:(?:${V.join("|")})[^|]*?(?:@|$)`)}else d.resolvedMatch=x})}observe(e,r={subtree:!0,childList:!0}){if(e||(e=document),this.root===e)return this;this.root=e;let s=e===document;s&&(globalThis.masterCSS=this),this.host=s?document.documentElement:this.root.host;let p=s?document.head:e,a=s?document.styleSheets:e.styleSheets;for(let m of a){let{ownerNode:c}=m;if(c&&c.id==="master"){this.style=c;break}}if(this.style)for(let m=0;m<this.style.sheet.cssRules.length;m++){let c=this.style.sheet.cssRules[m],h=c.constructor.name;if(h==="CSSStyleRule"&&c.style.length===1&&c.style[0].startsWith("--")&&!c.selectorText.startsWith(".\\$")||h==="CSSKeyframesRule")continue;let l=u=>{if(u.selectorText){let y=u.selectorText.split(", ")[0].split(" ");for(let v=0;v<y.length;v++){let f=y[v];if(f[0]==="."){let i=f.slice(1),d="";for(let b=0;b<i.length;b++){let x=i[b],R=i[b+1];if(x==="\\"){if(b++,R!=="\\"){d+=R;continue}}else if(me.includes(x))break;d+=x}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,d)&&!Object.prototype.hasOwnProperty.call(this.styles,d)){let b=this.create(d)[0];if(b)return b}}}}else if(u.cssRules)for(let g=0;g<u.cssRules.length;g++){let y=l(u.cssRules[g]);if(y)return y}},o=l(c);if(o){this.rules.push(o),this.ruleBy[o.className]=o;for(let u=0;u<o.natives.length;u++)o.natives[u].cssRule=this.style.sheet.cssRules[m+u];m+=o.natives.length-1,this.handleRuleWithVariableNames(o,!0),this.handleRuleWithAnimationNames(o,!0),o.options.insert?.call(o)}}else this.style=document.createElement("style"),this.style.id="master",p.append(this.style);let n=m=>{m.forEach(c=>{Object.prototype.hasOwnProperty.call(this.classesUsage,c)?this.classesUsage[c]++:(this.classesUsage[c]=1,this.insert(c))})};return n(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(m=>n(m.classList)),this.observer=new MutationObserver(m=>{let c={},h=[],l=[],o=[],u=(f,i)=>{i?f.classList.forEach(y):f.classList.forEach(g);let d=f.children;for(let b=0;b<d.length;b++){let x=d[b];x.classList&&(l.push(x),u(x,i))}},g=f=>{Object.prototype.hasOwnProperty.call(c,f)?c[f]++:c[f]=1},y=f=>{Object.prototype.hasOwnProperty.call(c,f)?c[f]--:Object.prototype.hasOwnProperty.call(this.classesUsage,f)&&(c[f]=-1)},v=(f,i)=>{for(let d=0;d<f.length;d++){let b=f[d];b.classList&&!l.includes(b)&&!o.includes(b)&&(b.isConnected!==i?(l.push(b),u(b,i)):o.push(b))}};for(let f=0;f<m.length;f++){let i=m[f],{addedNodes:d,removedNodes:b,type:x,target:R}=i;if(x==="attributes"){if(h.find(w=>w.target===R))continue;h.push(i)}else v(d,!1),(!R.isConnected||!l.includes(R))&&v(b,!0)}if(!(!h.length&&!Object.keys(c).length)){for(let{oldValue:f,target:i}of h){let d=l.includes(i),b=i.classList,x=f?f.split(" "):[];if(d){if(i.isConnected)continue;for(let R of x)b.contains(R)||y(R)}else if(i.isConnected){b.forEach(R=>{x.includes(R)||g(R)});for(let R of x)b.contains(R)||y(R)}}for(let f in c){let i=c[f],d=(this.classesUsage[f]||0)+i;d===0?(delete this.classesUsage[f],this.delete(f)):(Object.prototype.hasOwnProperty.call(this.classesUsage,f)||this.insert(f),this.classesUsage[f]=d)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0,this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.hasVariablesRule=!1;for(let r in this.animations){let s=this.animations[r];s.usage=void 0,s.native=void 0}for(let r in this.variables){let s=this.variables[r];s.usage=void 0,s.natives=void 0}let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r of this.ruleOptions)if(r.resolvedMatch&&r.resolvedMatch.test(e)||(r.layer===-100||r.layer===-300||r.layer===-101||r.layer===-301)&&e.startsWith(r.resolvedPropName+":"))return r;for(let r of this.semanticRuleOptions)if(r.resolvedMatch.test(e))return r}create(e){let r=s=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,s))return this.ruleBy[s];let p=this.match(s);if(p)return new te(s,p,this)};return(Object.prototype.hasOwnProperty.call(this.styles,e)?this.styles[e].map(s=>r(s)):[r(e)]).filter(s=>s&&s.text)}refresh(e=this.customConfig){if(e?.override?this.config=this.getExtendedConfig(e):this.config=this.getExtendedConfig(J,e),this.resolve(),!this.style)return;let r=document.createElement("style");r.id="master",this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let s in this.classesUsage)this.insert(s)}destroy(){this.disconnect(),globalThis.masterCSSs.splice(globalThis.masterCSSs.indexOf(this),1)}delete(e){let r=this.style?.sheet,s=p=>{let a=this.ruleBy[p];if(!(!a||Object.prototype.hasOwnProperty.call(this.stylesBy,p)&&this.stylesBy[p].some(n=>Object.prototype.hasOwnProperty.call(this.classesUsage,n)))){if(r&&a.natives.length){let n=a.natives[0];for(let m=0;m<r.cssRules.length;m++)if(r.cssRules[m]===n.cssRule){for(let h=0;h<a.natives.length;h++)r.deleteRule(m);break}}if(this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[p],a.variableNames){let n=this.rules[0];for(let m of a.variableNames){let c=this.variables[m];if(!--c.usage){for(let h=0;h<c.natives.length;h++){let l=c.natives[h];for(let o=0;o<this.style.sheet.cssRules.length;o++)if(this.style.sheet.cssRules[o]===l.cssRule){this.style.sheet.deleteRule(o);break}n.natives.splice(n.natives.indexOf(l),1)}c.natives=void 0}}n.natives.length||(this.rules.splice(0,1),this.hasVariablesRule=!1)}if(a.animationNames){let n=this.hasVariablesRule?1:0,m=this.hasVariablesRule?this.rules[0].natives.length:0,c=this.rules[n];for(let h of a.animationNames){let l=this.animations[h];if(!--l.usage){let o=c.natives.indexOf(l.native);this.style.sheet.deleteRule(m+o),c.natives.splice(o,1),l.native=void 0}}c.natives.length||(this.rules.splice(n,1),this.hasKeyframesRule=!1)}a.options.delete?.call(a,p)}};if(Object.prototype.hasOwnProperty.call(this.styles,e)){for(let p of this.styles[e])Object.prototype.hasOwnProperty.call(this.classesUsage,p)||s(p);delete this.ruleBy[e]}else s(e)}insert(e){let r=this.create(e);return r.length?(this.render(r),!0):!1}render(e){for(let r of e){if(this.ruleBy[r.className])continue;let s,p=this.rules.length-1,{media:a,order:n,priority:m,hasWhere:c,className:h}=r,l=(g,y,v)=>{let f=g;for(;f<=p;f++){let i=this.rules[f];if(y?.(i))return v?-1:f-1;if(v?.(i))return f}return v?-1:f-1},o,u;if(a){let g=this.rules.findIndex(y=>y.media);if(g===-1)s=p+1;else{let{"max-width":y,"min-width":v}=a.features;if(y||v){let f=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(f===-1)s=p+1;else if(y&&v){if(m===-1?(o=l(f,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),u=l(f,i=>i.priority!==-1)):(o=l(f,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),u=p),o!==-1){let i=y.value-v.value,d=u,b=o;for(o=void 0;d>=b;d--){let{"max-width":x,"min-width":R}=this.rules[d].media.features,w=x.value-R.value;if(w<i)u=d-1;else if(w===i)o=d;else break}}if(o!==-1){let i=y.value-v.value;for(let d=u;d>=o;d--){let{"max-width":b,"min-width":x}=this.rules[d].media.features,R=b.value-x.value;if(R<i)u=d-1;else if(R>i){o=d+1;break}}}}else if(v){if(m===-1?(o=l(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),u=l(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(o=l(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),u=l(f,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),o!==-1)for(let i=u;i>=o;i--){let d=this.rules[i].media.features["min-width"].value;if(d>v.value)u=i-1;else if(d<v.value){o=i+1;break}}}else if(m===-1?(o=l(f,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),u=l(f,i=>i.media.features["min-width"]||i.priority!==-1)):(o=l(f,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),u=l(f,i=>i.media.features["min-width"]&&i.priority!==-1)),o!==-1)for(let i=u;i>=o;i--){let d=this.rules[i].media.features["max-width"].value;if(d<y.value)u=i-1;else if(d>y.value){o=i+1;break}}}else m===-1?(o=g,u=l(g,f=>f.media?.features["max-width"]||f.media?.features["min-width"]||f.priority!==-1)):(o=l(g,f=>f.media?.features["max-width"]||f.media?.features["min-width"],f=>f.priority!==-1),u=l(g,f=>f.media?.features["max-width"]||f.media?.features["min-width"]))}}else{let g=this.hasVariablesRule?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;m===-1?(o=g,u=l(g,y=>y.media||y.priority!==-1)):(o=l(g,y=>y.media,y=>y.priority!==-1),u=l(g,y=>y.media))}if(s===void 0)if(o===-1)s=u+1;else{if(m===-1)for(let g=o;g<=u;g++){let y=this.rules[g];if(!(!c&&y.hasWhere)&&(c&&!y.hasWhere||y.order>=n)){s=g;break}}else for(let g=o;g<=u;g++){let y=this.rules[g];if(!(!c&&y.hasWhere)){if(c&&!y.hasWhere){s=g;break}if(y.priority<m){s=g;break}else if(y.priority===m){if(y.order>=n){s=g;break}}else s=g+1}}s===void 0&&(s=u+1)}if(this.rules.splice(s,0,r),this.ruleBy[h]=r,this.style){let g=this.style.sheet,y=0,v=f=>{let i=this.rules[f];if(i){if(!i.natives.length)return v(f-1);let d=i.natives[i.natives.length-1].cssRule;for(let b=0;b<g.cssRules.length;b++)if(g.cssRules[b]===d){y=b+1;break}}};v(s-1);for(let f=0;f<r.natives.length;)try{let i=r.natives[f];g.insertRule(i.text,y),i.cssRule=g.cssRules[y++],f++}catch(i){console.error(i),r.natives.splice(f,1)}}this.handleRuleWithVariableNames(r),this.handleRuleWithAnimationNames(r),r.options.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}getExtendedConfig(...e){let r=a=>{let n=H({},a),m=c=>{for(let h in c){let l=c[h];typeof l=="object"&&!Array.isArray(l)?m(l):h&&!h.startsWith("@")&&(c[h]={"":l})}};return n.styles?m(n.styles):n.styles={},n.mediaQueries?m(n.mediaQueries):n.mediaQueries={},n.variables?m(n.variables):n.variables={},n},s=[];for(let a of e)(function n(m){if(m.extends?.length)for(let c of m.extends)n("config"in c?c.config:c);s.push(r(m))})(a);let p=s[0];for(let a=1;a<s.length;a++){let n=s[a];p=H(p,n),Object.prototype.hasOwnProperty.call(n,"animations")&&Object.assign(p.animations,n.animations)}return p}handleRuleWithAnimationNames(e,r=!1){if(e.animationNames){let s=this.style?.sheet;for(let p of e.animationNames){let a=this.animations[p];if(a.usage)a.usage++;else{let n={text:`@keyframes ${p}{`+Object.entries(a).filter(([h])=>h!=="usage"&&h!=="native").map(([h,l])=>`${h}{${Object.entries(l).map(([o,u])=>o+":"+u).join(";")}}`).join("")+"}"},m=this.hasVariablesRule?1:0,c;if(this.hasKeyframesRule?(c=this.rules[m]).natives.push(n):(this.rules.splice(m,0,c={natives:[n],get text(){return this.natives.map(h=>h.text).join("")}}),this.hasKeyframesRule=!0),s){let h;if(r)for(let l=0;l<s.cssRules.length;l++){let o=s.cssRules[l];if(!(o.constructor.name==="CSSStyleRule"&&o.style.length===1&&o.style[0].startsWith("--")&&!o.selectorText.startsWith(".\\$"))){if(o.constructor.name!=="CSSKeyframesRule")break;if(o.name===p){h=o;break}}}if(h)n.cssRule=h;else{let l=(this.hasVariablesRule?this.rules[0].natives.length:0)+c.natives.length;s.insertRule(n.text,l),n.cssRule=s.cssRules[l]}}a.usage=1,a.native=n}}}}handleRuleWithVariableNames(e,r=!1){if(e.variableNames){let s=this.style?.sheet;for(let p of e.variableNames){let a=this.variables[p];if(a.usage)a.usage++;else{let n=[],m=(h,l)=>{l.value&&n.push({text:`${h?this.config.themeDriver==="media"?`@media(prefers-color-scheme:${h})`:this.config.themeDriver==="host"?`:host(.${h})`:`.${h}`:":root"}{--${p}:${l.value}}`})};if(m("",a),a.themes)for(let h in a.themes)m(h,a.themes[h]);let c=0;if(this.hasVariablesRule?(c=this.rules[0].natives.length,this.rules[0].natives.push(...n)):(this.rules.splice(0,0,{natives:[...n],get text(){return this.natives.map(h=>h.text).join("")}}),this.hasVariablesRule=!0),s){let h=n[0],l;if(r)for(let o=0;o<s.cssRules.length;o++){let u=s.cssRules[o];if(u.constructor.name!=="CSSStyleRule"||u.style.length!==1||!u.style[0].startsWith("--")||u.selectorText.startsWith(".\\$"))break;if(h.text.startsWith(u.selectorText+"{")&&u.style[0].startsWith("--"+p)){l=o;break}}for(let o=0;o<n.length;o++){let u=n[o];if(l!==void 0)u.cssRule=s.cssRules[l+o];else{let g=c+o;s.insertRule(u.text,g),u.cssRule=s.cssRules[g]}}}a.usage=1,a.natives=n}}}}};globalThis.MasterCSS=ee,globalThis.masterCSSs||(globalThis.masterCSSs=[]);window.masterCSS=new ee(window.masterCSSConfig).observe(document);})(); | ||
(()=>{function re(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ae(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function ne(t){let e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=ne(r):re(r)?e[n]=ae(r):e[n]=K({},r):e[n]=r}),e}function ie(t,e){return e==="__proto__"?void 0:t[e]}function K(...t){let e={},r,n;return t.forEach(function(y){typeof y!="object"||y===null||Array.isArray(y)||Object.keys(y).forEach(function(s){if(n=ie(e,s),r=ie(y,s),r!==e)if(typeof r!="object"||r===null){e[s]=r;return}else if(Array.isArray(r)){e[s]=ne(r);return}else if(re(r)){e[s]=ae(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[s]=K({},r);return}else{e[s]=K(n,r);return}})}),e}var q={"(":")","'":"'",'"':'"',"{":"}"};function H(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,n=-1,y="",s,l=e.charCodeAt(0);if(r==1&&l==45)return"\\"+e;for(;++n<r;){if(s=e.charCodeAt(n),s==0){y+="\uFFFD";continue}if(s>=1&&s<=31||s==127||n==0&&s>=48&&s<=57||n==1&&s>=48&&s<=57&&l==45){y+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){y+=e.charAt(n);continue}y+="\\"+e.charAt(n)}return y}var ye=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,J=class{constructor(e,r={},n){this.className=e;this.definition=r;this.css=n;let{layer:y,unit:s,colored:l,analyze:m,transformValue:u,declare:f,transformValueComponents:o,create:d,order:p,id:b}=r;this.order=p,this.layer=y,r.unit||(r.unit=""),r.separators||(r.separators=[","]);let{scope:c,important:g,themeDriver:a}=n.config,{selectors:i,mediaQueries:h,stylesBy:C,animations:v}=n,D=C[e];d&&d.call(this,e),this.declarations=r.declarations;let x,R;if(this.colored=l,y===-8)x=e.slice(b.length-1);else{let k;if(m)[k,R]=m.call(this,e);else{let w=e.indexOf(":");this.prefix=e.slice(0,w+1),k=e.slice(w+1)}this.valueComponents=[],x=k.slice(this.parseValue(this.valueComponents,0,k,s))}x[0]==="!"&&(this.important=!0,x=x.slice(1)),this.stateToken=x;let N=(k,w)=>{let z=(S,j,V,M)=>{for(let[B,I]of j)if(B.test(S)){for(let L of I)z(S.replace(B,L),j,V,!0);return}M&&V.push(S)},P=S=>{let j=S.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((I,L)=>L%3?I:I.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),V=[],M="",B=0;for(let I=0;I<j.length;I++){let L=j[I];if(L==="\\"){M+=L+j[++I];continue}!B&&L===","?(V.push(M),M=""):(M+=L,B&&L===")"?B--:L==="("&&B++)}return M&&V.push(M),V},$=[];""in i?z(k,i[""],$,!0):$.push(k);let A={};for(let[S,j]of Object.entries(i)){if(!S)continue;let V=[];for(let M of $)z(M,j,V,!1);V.length&&(A[S]=V)}let U=(S,j)=>{let V=j.reduce((M,B)=>(M.push(...P(B)),M),[]);S in w?w[S].push(...V):w[S]=V},_=Object.keys(A);if(_.length)for(let S of _)U(S,A[S]);else U("",$)};R?(this.vendorPrefixSelectors={},N(R,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let O=x.split("@"),T=O[0];if(T){this.vendorSuffixSelectors={},N(T,this.vendorSuffixSelectors);for(let k of Object.values(this.vendorSuffixSelectors))for(let w of k){this.hasWhere!==!1&&(this.hasWhere=w.includes(":where("));let z=[":disabled",":active",":focus",":hover"];for(let P=0;P<z.length;P++)if(w.includes(z[P])){(this.priority===-1||this.priority>P)&&(this.priority=P);break}}}else this.vendorSuffixSelectors={"":[""]};let W={},ge=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),te=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(ge)W[""]=te?[""]:Object.keys(this.vendorSuffixSelectors);else if(te)for(let k in this.vendorPrefixSelectors)W[k]=[""];else for(let k in this.vendorPrefixSelectors){let w=W[k]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,k))w.push(k);else for(let z in this.vendorSuffixSelectors)w.push(z)}for(let k=1;k<O.length;k++){let w=O[k];if(w)if(w==="rtl"||w==="ltr")this.direction=w;else{let z,P,$=ye.exec(w);if($)z=$[1],P=w.slice(z.length);else{this.media={token:w,features:{}};let A=[],U=S=>{if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")A.push("(orientation:"+S+")");else if(S==="motion"||S==="reduced-motion")A.push("(prefers-reduced-motion:"+(S==="motion"?"no-preference":"reduce")+")");else{let j=h[S];if(j&&typeof j=="string")A.push(j);else{let V="",M="",B=0;S.startsWith("<=")?(M="<=",V="max-width"):S.startsWith(">=")||j?(M=">=",V="min-width"):S.startsWith(">")?(M=">",V="min-width",B=.02):S.startsWith("<")&&(M="<",V="max-width",B=-.02);let I=M?S.replace(M,""):S,L=h[I];switch(V){case"max-width":case"min-width":let Q={};typeof L=="number"?Q={type:"number",value:L+B,unit:"px"}:(Q=this.parseValueComponent(I,"px"),Q.type==="number"&&Q.unit==="px"&&(Q.value+=B)),this.media.features[V]=Q,Q.type==="number"?A.push("("+V+":"+(Q.value+Q.unit)+")"):A.push("("+V+":"+Q.value+")");break}}}},_=w.includes("&");if(_){let S=w.split("&");for(let j of S)U(j)}else U(w);if(this.media.type&&(P=this.media.type),A.length&&(P=A.join(" and ")),P)z="media";else if(!_){this.theme=w;continue}}P&&(this.at[z]=(z in this.at?this.at[z]+" and ":"")+P.replace(/\|/g," "))}}let X;if(this.valueComponents)if(o&&(this.valueComponents=o.call(this,this.valueComponents)),X=this.resolveValue(this.valueComponents,s,[]),u&&(X=u.call(this,X,this.css.config)),f){let k,w;this.declarations=f.call(this,w?k:X,w||"")}else b&&(this.declarations={[b]:X});let ee=[];for(let k in this.declarations){let w=$=>{if(v&&($.startsWith("animation")||$.startsWith("animation-name"))){let A=$.split(":")[1].split("!important")[0].split(" ").filter(U=>U in this.css.animations&&(!this.animationNames||!this.animationNames.includes(U)));A.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...A))}ee.push($+((this.important||g)&&!$.endsWith("!important")?"!important":""))},z=k+":",P=this.declarations[k];if(typeof P=="object")for(let $ of P)w(z+$.toString());else w(z+P.toString())}if(ee.length)for(let k in W)for(let w of W[k]){let z="";this.direction&&(z+="[dir="+this.direction+"] ");let P=this.vendorPrefixSelectors[k],$=this.vendorSuffixSelectors[w],A=P.map(S=>S+z),U=S=>A.map(j=>(this.theme&&a!=="media"?a==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(c?c+" ":"")+j).reduce((j,V)=>(j.push($.reduce((M,B)=>(M.push(V+"."+H(S)+B),M),[]).join(",")),j),[]).join(","),_=U(e)+(D?D.reduce((S,j)=>S+","+U(j),""):"")+"{"+ee.join(";")+"}";for(let S of Object.keys(this.at).sort((j,V)=>V==="supports"?-1:1))_="@"+S+(S.includes(" ")?"":" ")+this.at[S]+"{"+_+"}";this.theme&&a==="media"&&(_=`@media(prefers-color-scheme:${this.theme}){`+_+"}"),this.natives.push({text:_})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;colored=!1;animationNames;variableNames;resolveValue=(e,r,n)=>{let{functions:y}=this.css.config,s="";for(let l of e)switch(l.type){case"function":let m=y&&y[l.name];if(m?.transform){let f=m.transform.call(this,this.resolveValue(l.children,m.unit??r,n),n);s+=typeof f=="string"?f:this.resolveValue(f,m?.unit??r,n)}else s+=l.name+l.symbol+this.resolveValue(l.children,m?.unit??r,n)+q[l.symbol];break;case"variable":let u=this.css.variables[l.name];if(u){let f=(o,d)=>{if(u.themes)if(this.theme){let p=u.themes[this.theme]??u;p?.value&&o(p)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(l.name)||this.variableNames.push(l.name),d();else o(u)};switch(u.type){case"string":f(d=>{let p=[];this.parseValue(p,0,d.value,r,void 0,void 0,[...n,l.name]),s+=this.resolveValue(p,r,[...n,l.name])},()=>{s+=`var(--${l.name})`});break;case"number":f(d=>{let p=this.parseValueComponent(d.value,r);s+=p.value+(p.unit??"")},()=>{s+=r?`calc(var(--${l.name}) / 16 * 1rem)`:`var(--${l.name})`});break;case"color":let o=l.alpha?"/"+l.alpha:"";f(d=>{s+=`${d.space}(${d.value}${o})`},()=>{s+=`${u.space}(var(--${l.name})${o})`});break}}else s+=`var(--${l.name}${l.fallback?","+l.fallback:""})`;break;case"separator":s+=l.text||l.value;break;case"number":s+=l.value+l.unit;break;default:s+=l.value;break}return s};get text(){return this.natives.map(e=>e.text).join("")}parseValue=(e,r,n,y,s,l=void 0,m=[])=>{let u=l===void 0,f=!u&&(l.endsWith("$")||l.endsWith("var")),d=(g=>g==="'"||g==='"')(s),p=[","];this.definition.separators.length&&p.push(...this.definition.separators);let b="",c=()=>{if(b){let g=!1;if(!f||e.length){let a=(i,h)=>{let C=Object.prototype.hasOwnProperty.call(this.definition.resolvedVariables,i)?this.definition.resolvedVariables[i]:Object.prototype.hasOwnProperty.call(this.css.variables,i)?this.css.variables[i]:void 0;if(C){let v=C.name??i;if(!m.includes(v)){g=!0;let D={type:"variable",name:v,variable:this.css.variables[v]};h&&(D.alpha=h),e.push(D)}}};if(a(b),!g&&this.colored){let[i,h]=b.split("/");a(i,h)}}g||e.push(this.parseValueComponent(b,y)),b=""}};for(;r<n.length;r++){let g=n[r];if(g===s){if(d){let a=0;for(let i=b.length-1;b[i]==="\\";i--)a++;if(a%2){b+=g;continue}else c()}else c();return r}else if(!d&&g in q){let a=b,i={type:"function",name:a,symbol:g,children:[]};e.push(i),b="";let h=g==="("&&this.css.config.functions?.[a];!this.colored&&h?.colored&&(this.colored=!0),r=this.parseValue(i.children,++r,n,h?.unit??y,q[g],a||l||"")}else if((g==="|"||g===" ")&&s!=="}"&&(!d||l==="path"))c(),e.push({type:"separator",value:" "});else{if(!d){if(g===".")if(isNaN(+n[r+1])){if(u)break}else n[r-1]==="-"&&(b+="0");else if(p.includes(g)){c(),e.push({type:"separator",value:g,text:(g===","?"":" ")+g+(g===","?"":" ")});continue}else if(u&&(g==="#"&&(b||e.length&&e[e.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(g)))break}b+=g}}return c(),r};parseValueComponent(e,r=this.definition.unit){let n=r??this.definition.unit,y="",s;if(typeof e=="number")return n&&!y?((n==="rem"||n==="em")&&(s=e/this.css.config.rootSize),y=n||""):s=e,{value:s,unit:y,type:"number"};if(n){if(/^\d+\/\d+/.test(e)){let[m,u]=e.split("/");return{value:+m/+u*100,unit:"%",type:"number"}}let l=e.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(l)return s=+l[1],y=l[3]||"",y||((n==="rem"||n==="em")&&(s=s/this.css.config.rootSize),y=n||""),{value:s,unit:y,type:"number"}}return{value:e,type:"string"}}};var be={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},se=be;var ve={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},oe=ve;var Re={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},le=Re;var Ce={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}},ce=Ce;function F(t){t.startsWith("#")&&(t=t.slice(1));let e,r,n,y;return t.length===3||t.length===4?(e=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),y=t.length===4?Math.round(parseInt(t[3]+t[3],16)/255*100)/100:1):(t.length===6||t.length===8)&&(e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),n=parseInt(t.slice(4,6),16),y=t.length===8?Math.round(parseInt(t.slice(6,8),16)/255*100)/100:1),[e,r,n,y]}function fe(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function E(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let n in t)if(n&&+n>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let n=0,y="0"in t?F(t[0]):[0,0,0],s,l,m=[],u=()=>{let f=s-n,o=l.map((d,p)=>(d-y[p])/f);for(let d of m){let p=d-n,b=y.map((c,g)=>Math.round(c+o[g]*p));t[d]="#"+fe.call(this,...b)}};for(let f=1;f<100;f++)f in t?(m.length?(s=f,l=F(t[f]),u(),m.length=0,y=l):y=F(t[f]),n=f):m.push(f);m.length&&(s=100,l="100"in t?F(t[100]):[255,255,255],u())}return e||(t[""]=t[r?"500":"50"]),t}var xe={font:{family:{mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},weight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},sizing:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560,full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},flex:{direction:{col:"column","col-reverse":"column-reverse"}},box:{sizing:{content:"content-box",border:"border-box"}},position:{abs:"absolute",rel:"relative"},transform:{box:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},animation:{direction:{alt:"alternate","alt-reverse":"alternate-reverse"}},background:{clip:{content:"content-box",border:"border-box",padding:"padding-box"},origin:{content:"content-box",border:"border-box",padding:"padding-box"}},order:{first:-999999,last:999999},shape:{outside:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},clip:{path:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box",black:"#000000"}},black:"#000000",white:"#ffffff",current:"currentColor",slate:E({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:E({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:E({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:E({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:E({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:E({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:E({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:E({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:E({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:E({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:E({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:E({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:E({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:E({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:E({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:E({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:E({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:E({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:E({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:E({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},ue=xe;var Y=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],de=function(t){return t.length<2||t.find(r=>r.type==="string"&&Y.includes(r.value)||r.type==="variable"&&Y.includes(r.variable.value))||t.push({type:"separator",value:" "},{type:"string",value:"solid"}),t},Se={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=u=>{let f=u.indexOf(":");f!==-1&&(e[u.slice(0,f)]=u.slice(f+1))},n=u=>{let f=o=>{let d=o.slice(H(u.className).length).match(/\{(.*)\}/)[1].split(";");for(let p of d)r(p)};for(let o of u.natives)f(o.text);if(u.animationNames){this.animationNames||(this.animationNames=[]);for(let o of u.animationNames)this.animationNames.includes(o)||this.animationNames.push(o)}if(u.variableNames){this.variableNames||(this.variableNames=[]);for(let o of u.variableNames)this.variableNames.includes(o)||this.variableNames.push(o)}},y=[],s="",l=()=>{s&&(y.push(s.replace(/ /g,"|")),s="")},m=1;(function u(f){for(;m<t.length;m++){let o=t[m];if(!f){if(o===";"){l();continue}if(o==="}")break}if(s+=o,f===o){if(f==="'"||f==='"'){let d=0;for(let p=s.length-2;s[p]==="\\";p--)d++;if(d%2)continue}break}else o in q&&f!=="'"&&f!=='"'&&(m++,u(q[o]))}})(void 0),l();for(let u of y){let f=this.css.create(u);if(f.length)for(let o of f)n(o);else r(u)}return e}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},"font-size":{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-3},"font-weight":{match:["f(?:ont)?",["bolder"]],layer:-3},"font-family":{match:["f(?:ont)?"],layer:-3},"font-smoothing":{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-3,declare(t){switch(t){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},"font-style":{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-3,unit:"deg"},"font-variant-numeric":{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-3},"font-variant":{layer:-7},"font-feature-settings":{match:/^font-feature:/,layer:-3},font:{match:/^f:/,layer:-7,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},color:{match:/^(?:color|fg|foreground):/,layer:-3,colored:!0},"margin-left":{match:/^ml:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-right":{match:/^mr:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-top":{match:/^mt:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-bottom":{match:/^mb:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-x":{match:/^(?:mx|margin-x):/,unit:"rem",layer:-5,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}},variables:["spacing"]},"margin-y":{match:/^(?:my|margin-y):/,unit:"rem",layer:-5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}},variables:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-7,variables:["spacing"]},"margin-inline-start":{match:/^mis:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline-end":{match:/^mie:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline":{match:/^mi:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-left":{match:/^pl:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-right":{match:/^pr:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-top":{match:/^pt:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-bottom":{match:/^pb:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-x":{match:/^(?:px|padding-x):/,unit:"rem",layer:-5,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}},variables:["spacing"]},"padding-y":{match:/^(?:py|padding-y):/,unit:"rem",layer:-5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}},variables:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-inline-start":{match:/^pis:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline-end":{match:/^pie:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline":{match:/^pi:/,unit:"rem",layer:-7,variables:["spacing"]},"flex-basis":{variables:["sizing"],unit:"rem",layer:-3},"flex-wrap":{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-3},"flex-grow":{layer:-3},"flex-shrink":{layer:-3},"flex-direction":{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-3},flex:{layer:-7},display:{match:/^d:/,layer:-3},width:{match:/^w:/,unit:"rem",layer:-3,variables:["sizing"]},height:{match:/^h:/,unit:"rem",layer:-3,variables:["sizing"]},"min-width":{match:/^min-w:/,unit:"rem",layer:-3,variables:["sizing"]},"min-height":{match:/^min-h:/,unit:"rem",layer:-3,variables:["sizing"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-5,unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},"min-box":{match:/^min:/,layer:-5,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},"max-box":{match:/^max:/,layer:-5,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["sizing",["slice","clone"]],layer:-3,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},contain:{layer:-3},content:{layer:-3},"counter-increment":{layer:-3},"counter-reset":{layer:-3},"letter-spacing":{match:/^ls:/,layer:-3,unit:"em"},"line-height":{match:/^lh:/,layer:-3},"object-fit":{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-3},"object-position":{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-3},"text-align":{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-3},"text-decoration-color":{match:["text-decoration"],layer:-3,colored:!0},"text-decoration-style":{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-3},"text-decoration-thickness":{match:["text-decoration",["from-font"]],numeric:!0,layer:-3,unit:"em"},"text-decoration-line":{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-3},"text-decoration":{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-7},"text-underline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"text-overflow":{match:["t(?:ext)?",["ellipsis","clip"]],layer:-3},"text-orientation":{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-3},"text-transform":{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-3},"text-rendering":{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-3},"text-indent":{unit:"rem",layer:-3},"vertical-align":{match:/^(?:v|vertical):/,layer:-3},columns:{match:/^(?:columns|cols):/,layer:-7},"white-space":{layer:-3},top:{layer:-3,unit:"rem",variables:["spacing"]},bottom:{layer:-3,unit:"rem",variables:["spacing"]},left:{layer:-3,unit:"rem",variables:["spacing"]},right:{layer:-3,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-7,variables:["spacing"]},lines:{match:/^lines:/,declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},"max-height":{match:/^max-h:/,unit:"rem",layer:-3,variables:["sizing"]},"max-width":{match:/^max-w:/,unit:"rem",layer:-3,variables:["sizing"]},opacity:{layer:-3},visibility:{layer:-3},clear:{layer:-3},float:{layer:-3},isolation:{layer:-3},"overflow-x":{layer:-3,declare(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},"overflow-y":{layer:-3,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{layer:-7,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},"overscroll-behavior-x":{layer:-3},"overscroll-behavior-y":{layer:-3},"overscroll-behavior":{layer:-7},"z-index":{match:/^z:/,layer:-3},position:{layer:-3},cursor:{layer:-3},"pointer-events":{layer:-3},resize:{layer:-3},"touch-action":{layer:-3},"word-break":{layer:-3},"word-spacing":{layer:-3,unit:"em"},"user-drag":{layer:-3,declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},"user-select":{layer:-3,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},"text-shadow":{unit:"rem",layer:-3,colored:!0},"text-size":{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},"text-fill-color":{match:["(?:text-fill|text|t)"],layer:-3,colored:!0,declare(t,e){return{"-webkit-text-fill-color":t+e}}},"text-stroke-width":{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-3,declare(t,e){return{"-webkit-text-stroke-width":t+e}}},"text-stroke-color":{match:["text-stroke"],layer:-3,colored:!0,declare(t,e){return{"-webkit-text-stroke-color":t+e}}},"text-stroke":{unit:"rem",layer:-3,declare(t,e){return{"-webkit-text-stroke":t+e}}},"box-shadow":{match:/^s(?:hadow)?:/,unit:"rem",layer:-3,colored:!0},"table-layout":{layer:-3},"transform-box":{match:["transform"],layer:-3},"transform-style":{match:["transform",["flat","preserve-3d"]],layer:-3},"transform-origin":{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-3},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-3,analyze(t){return[t.startsWith("transform")?t.slice(10):t]},variables:["spacing"]},"transition-property":{match:/^~property:/,layer:-3},"transitionTiming-function":{match:/^~easing:/,layer:-3},"transition-duration":{match:/^~duration:/,layer:-3,unit:"ms"},"transition-delay":{match:/^~delay:/,layer:-3,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(t){if(t.startsWith("~"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}},layer:-7},"animation-delay":{match:/^@delay:/,layer:-3,unit:"ms"},"animation-direction":{match:/^@direction:/,layer:-3},"animation-duration":{match:/^@duration:/,layer:-3,unit:"ms"},"animation-fill-mode":{match:/^@fill:/,layer:-3},"animation-iteration-count":{match:/^@iteration:/,layer:-3},"animation-name":{match:/^@name:/,layer:-3},"animation-play-state":{match:/^@play:/,layer:-3},"animation-timing-function":{match:/^@easing:/,layer:-3},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-7,analyze(t){if(t.startsWith("@"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}}},"border-collapse":{match:["b(?:order)?",["collapse","separate"]],layer:-3},"border-spacing":{unit:"rem",layer:-3},"border-top-color":{match:["b(?:t|order-top(?:-color)?)"],layer:-3,colored:!0},"border-bottom-color":{match:["b(?:b|order-bottom(?:-color)?)"],layer:-3,colored:!0},"border-left-color":{match:["b(?:l|order-left(?:-color)?)"],layer:-3,colored:!0},"border-right-color":{match:["b(?:r|order-right(?:-color)?)"],layer:-3,colored:!0},"border-x-color":{match:["b(?:x|order-x(?:-color)?)"],layer:-5,colored:!0,declare(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},"border-y-color":{match:["b(?:y|order-y(?:-color)?)"],layer:-5,colored:!0,declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},"border-color":{match:["b(?:order)?(?:-color)?"],layer:-7,colored:!0},"border-top-left-radius":{match:/^r(?:tl|lt):/,unit:"rem",layer:-3},"border-top-right-radius":{match:/^r(?:tr|rt):/,unit:"rem",layer:-3},"border-bottom-left-radius":{match:/^r(?:bl|lb):/,unit:"rem",layer:-3},"border-bottom-right-radius":{match:/^r(?:br|rb):/,unit:"rem",layer:-3},"border-top-radius":{match:/^rt:/,unit:"rem",layer:-5,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},"border-bottom-radius":{match:/^rb:/,unit:"rem",layer:-5,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},"border-left-radius":{match:/^rl:/,unit:"rem",layer:-5,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},"border-right-radius":{match:/^rr:/,unit:"rem",layer:-5,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},"border-radius":{match:/^r:/,unit:"rem",layer:-7},"border-top-style":{match:["b(?:t|order-top(?:-style)?)",Y],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",Y],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",Y],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",Y],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",Y],layer:-5,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",Y],layer:-5,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},"border-style":{match:["b(?:order)?(?:-style)?",Y],layer:-7},"border-top-width":{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-bottom-width":{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-left-width":{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-right-width":{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-x-width":{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},"border-y-width":{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},"border-width":{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-7},"border-image-outset":{unit:"rem",layer:-3},"border-image-repeat":{match:["border-image",["stretch","repeat","round","space"]],layer:-3},"border-image-slice":{layer:-3},"border-image-source":{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-3},"border-image-width":{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-3},"border-image":{layer:-7},"border-top":{match:/^bt:/,layer:-7,unit:"rem",colored:!0},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,declare(t){return{"border-left":t,"border-right":t}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:de},"background-attachment":{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-3},"background-blend-mode":{layer:-3},"background-color":{match:["(?:bg|background)"],layer:-3,colored:!0},"background-clip":{match:["(?:bg|background)",["text"]],layer:-3,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}}},"background-origin":{match:["(?:bg|background)"],layer:-3},"background-position":{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-3,unit:"px"},"background-repeat":{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-3},"background-size":{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-3},"background-image":{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},background:{match:/^bg:/,colored:!0,layer:-7},gradient:{match:/^gradient\(/,layer:-3,colored:!0,declare(t){return{"background-image":"linear-"+t}}},"mixBlend-mode":{match:/^blend:/,layer:-3},"backdrop-filter":{match:/^bd:/,layer:-3,colored:!0,declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-3,colored:!0},fill:{match:/^fill:/,layer:-3,colored:!0},"stroke-dasharray":{layer:-3},"stroke-dashoffset":{layer:-3,variables:["spacing"]},"stroke-width":{match:["stroke(?:-width)?"],numeric:!0,layer:-3},stroke:{match:["stroke"],layer:-3,colored:!0},x:{layer:-3,variables:["spacing"]},y:{layer:-3,variables:["spacing"]},cx:{layer:-3,variables:["spacing"]},cy:{layer:-3,variables:["spacing"]},rx:{layer:-3},ry:{layer:-3},"grid-column-start":{match:/^grid-col-start:/,layer:-3},"grid-column-end":{match:/^grid-col-end:/,layer:-3},"grid-column":{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-7,transformValue(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},"grid-columns":{match:/^grid-cols:/,declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},"grid-row-start":{layer:-3},"grid-row-end":{layer:-3},"grid-row":{match:/^grid-row-span:/,layer:-7,transformValue(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},"grid-rows":{match:/^grid-rows:/,declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},"grid-auto-columns":{match:/^grid-auto-cols:/,layer:-3,variables:["sizing"]},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3,variables:["sizing"]},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem",variables:["sizing"]},"grid-template-rows":{layer:-3,unit:"rem",variables:["sizing"]},"grid-template":{layer:-7},"grid-area":{layer:-7},grid:{layer:-7},"column-gap":{match:/^gap-x:/,unit:"rem",layer:-3,variables:["spacing"]},"row-gap":{match:/^gap-y:/,unit:"rem",layer:-3,variables:["spacing"]},gap:{unit:"rem",layer:-7,variables:["spacing"]},order:{match:/^o:/,layer:-3},"break-inside":{layer:-3},"break-before":{layer:-3},"break-after":{layer:-3},"aspect-ratio":{match:/^aspect:/,layer:-3},"column-span":{match:/^col-span:/,layer:-3},"align-content":{match:/^ac:/,layer:-3},"align-items":{match:/^ai:/,layer:-3},"align-self":{match:/^as:/,layer:-3},"justify-content":{match:/^jc:/,layer:-3},"justify-items":{match:/^ji:/,layer:-3},"justify-self":{match:/^js:/,layer:-3},"place-content":{layer:-7},"place-items":{layer:-7},"place-self":{layer:-7},"list-style-position":{match:["list-style",["inside","outside"]],layer:-3},"list-style-type":{match:["list-style",["disc","decimal"]],layer:-3},"list-style-image":{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},"list-style":{layer:-7},"outline-color":{match:["outline"],layer:-3,colored:!0},"outline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"outline-style":{match:["outline",Y],layer:-3},"outline-width":{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-3},outline:{unit:"rem",layer:-7,colored:!0,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:de},"accent-color":{match:/^accent:/,layer:-3,colored:!0},appearance:{layer:-3},"caret-color":{match:/^caret:/,layer:-3,colored:!0},"scroll-behavior":{layer:-3},"scroll-margin-left":{match:/^scroll-ml:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-right":{match:/^scroll-mr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-top":{match:/^scroll-mt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{match:/^scroll-mb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-x":{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}},variables:["spacing"]},"scroll-margin-y":{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}},variables:["spacing"]},"scroll-margin":{match:/^scroll-m:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-padding-left":{match:/^scroll-pl:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-right":{match:/^scroll-pr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-top":{match:/^scroll-pt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{match:/^scroll-pb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-x":{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}},variables:["spacing"]},"scroll-padding-y":{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}},variables:["spacing"]},"scroll-padding":{match:/^scroll-p:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-snap-align":{match:["scroll-snap",["start","end","center"]],layer:-3},"scroll-snap-stop":{match:["scroll-snap",["normal","always"]],layer:-3},"scroll-snap-type":{match:["scroll-snap",["x","y","block","inline","both"]],layer:-3},"will-change":{layer:-3},"writing-mode":{match:/^writing:/,layer:-3},direction:{layer:-3},"shape-outside":{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-3},"shape-margin":{match:["shape"],numeric:!0,unit:"rem",layer:-3,variables:["spacing"]},"shapeImage-threshold":{layer:-3},"clip-path":{match:/^clip:/,layer:-3},quotes:{layer:-3},"mask-image":{layer:-3,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},he=Se;var De={$:{colored:!0,transform(t){let e,r,n=t.indexOf(",");return n!==-1?(e=t.slice(0,n),r=t.slice(n+1)):e=t,[{type:"variable",name:e,fallback:r}]}},calc:{transform(t,e){let r=[],n=this.css.config.functions,y=0,s=(l,m,u)=>{let f=!1,o="",d=(p,b="",c="")=>{o&&(!f&&!u?l.push(this.parseValueComponent(o,n.calc.unit)):l.push({type:"string",value:o}),o=""),p&&(b&&t[y-1]===" "&&(b=""),c&&t[y+1]===" "&&(c=""),m?l.push({type:"separator",value:p,text:p}):l.push({type:"separator",value:p,text:b+p+c})),f=!1};for(;y<t.length;y++){let p=t[y];if(p==="("){let b=/^([+-])/.exec(o);b&&l.push({type:"string",value:b[1]});let c=b?o.slice(1):o,g={type:"function",name:c,symbol:p,children:[]};l.push(g),o="",y++;let a=g.name==="$"||g.name==="var";s(g.children,c!==""&&c!=="calc"&&(a||Object.prototype.hasOwnProperty.call(n,c)),f||a)}else if(p===")"){d("");break}else if(p===",")d(p,""," ");else if(p===" ")d(p);else{let b=t[y-1];switch(p){case"+":!o&&b!==")"?o+=p:d(p," "," ");break;case"-":!o&&b!==")"?o+=p:d(p," "," ");break;case"*":d(p," "," ");break;case"/":d(p," "," "),f=!0;break;default:o+=p;break}}}d("")};return s(r,!1,!1),"calc("+this.resolveValue(r,n.calc.unit??this.definition.unit,e)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},me=De;var Z={mediaQueries:se,selectors:oe,semantics:le,rules:he,functions:me,animations:ce,variables:ue,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var pe=[",",".","#","[","!","*",">","+","~",":","@"];var G=class{constructor(e=Z){this.customConfig=e;e?.override?this.config=this.getExtendedConfig(e):this.config=this.getExtendedConfig(Z,e),this.resolve(),globalThis.masterCSSs.push(this)}static config=Z;static refresh=e=>{for(let r of globalThis.masterCSSs)r.refresh(e)};rules=[];ruleBy={};classesUsage={};observing=!1;config;semanticRuleOptions=[];ruleOptions=[];observer;resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.ruleOptions.length=0,this.semanticRuleOptions.length=0,this.variablesNativeRules=void 0,this.hasKeyframesRule=!1;let e={current:void 0,currentColor:void 0,transparent:void 0},{styles:r,selectors:n,variables:y,semantics:s,mediaQueries:l,rules:m,animations:u}=this.config;function f(c){return c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(c,g,a="",i={}){let h=x=>x?(a?a+"-":"")+x:a,C=Object.entries(c),v=[],D=[];for(let x of C){let R=x[1];(typeof R=="object"&&!Array.isArray(R)?v:D).push(x)}for(let[x,R]of v)o(R,g,h(x),i);if(g&&a)D.length&&(i[a]=D.reduce((x,[R,N])=>(x[R]=N,x),{}));else for(let[x,R]of D)i[h(x)]=R;return i}if(n)for(let[c,g]of Object.entries(o(n,!1))){let a=new RegExp(f(c)+"(?![a-z-])");for(let i of Array.isArray(g)?g:[g]){let h=i.match(/^::-[a-z]+-/m)?.[0]??"",C=this.selectors[h];C||(C=this.selectors[h]=[]);let v=C.find(([D])=>D===a);v||(v=[a,[]],C.push(v)),v[1].push(i)}}if(y){let c={};for(let g in y){let a=(i,h,C=void 0)=>{if(!i)return;let v=(x,R,N=void 0,O=void 0)=>{if(R===void 0)return;if(R.type==="color"){if(O){let W=R.value.indexOf("/");R={...R,value:W===-1?R.value+" / "+(O.startsWith("0.")?O.slice(1):O):R.value.slice(0,W+2)+(+R.value.slice(W+2)*+O).toString().slice(1)}}e[x]=void 0}let T=N??C;if(T!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,x)){let W=this.variables[x];T?(W.themes||(W.themes={}),W.themes[T]=R):(W.value=R.value,W.space=R.space)}else T?this.variables[x]={type:R.type,space:R.space,themes:{[T]:R}}:this.variables[x]=R;else this.variables[x]=R},D=typeof i;if(D==="object")if(Array.isArray(i))v(h,{type:"string",value:i.join(",")});else{let x=Object.keys(i);for(let R of x)R===""||R.startsWith("@")?a(i[R],h,R||x.some(N=>N.startsWith("@"))?R.slice(1):void 0):a(i[R],h+"-"+R)}else if(D==="number")v(h,{type:"number",value:i}),v("-"+h,{type:"number",value:i*-1});else if(D==="string"){let x=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(i);if(x)Object.prototype.hasOwnProperty.call(c,h)||(c[h]={}),c[h][C]=()=>{delete c[h][C];let[R,N]=x[1].split("@");if(R){if(Object.prototype.hasOwnProperty.call(c,R))for(let T of Object.keys(c[R]))c[R][T]?.();let O=this.variables[R];if(O)if(N===void 0&&O.themes){v(h,{type:O.type,value:O.value,space:O.space},"",x[2]);for(let T in O.themes)v(h,O.themes[T],T,x[2])}else{let T=N!==void 0?O.themes?.[N]:O;T&&v(h,{type:T.type,value:T.value,space:T.space},void 0,x[2])}}};else{let R=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(i);if(R){let[N,O,T,W]=F(R[1]);v(h,{type:"color",value:`${N} ${O} ${T}${W===1?"":" / "+W}`,space:"rgb"})}else{let N=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(i);if(N)v(h,{type:"color",value:N[1]+" "+N[2]+" "+N[3]+(N[4]?" / "+(N[4].startsWith("0.")?N[4].slice(1):N[4]):""),space:"rgb"});else{let O=/^hsl\((.*?)\)$/.exec(i);O?v(h,{type:"color",value:O[1],space:"hsl"}):v(h,{type:"string",value:i})}}}}};a(y[g],g)}for(let g of Object.keys(c))for(let a of Object.keys(c[g]))c[g][a]?.()}if(l&&(this.mediaQueries=o(l,!1)),u)for(let c in u){let g=this.animations[c]={},a=u[c];for(let i in a){let h=g[i]={},C=a[i];for(let v in C)h[v]=C[v]}}let d=r?o(r,!1):{},p=Object.keys(d),b=c=>{if(Object.prototype.hasOwnProperty.call(this.styles,c))return;let g=this.styles[c]=[],a=d[c];if(!a)return;let i=a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let h of i){let C=v=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,v)){let D=this.stylesBy[v];D.includes(c)||D.push(c)}else this.stylesBy[v]=[c];g.includes(v)||g.push(v)};if(p.includes(h)){b(h);for(let v of this.styles[h])C(v)}else C(h)}};for(let c of p)b(c);if(s&&Object.entries(s).sort((c,g)=>c[0].localeCompare(g[0])).forEach(([c,g],a)=>{this.semanticRuleOptions.push({id:"."+c,resolvedMatch:new RegExp("^"+f(c)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:a,declarations:g,layer:-8})}),m){let c=Object.entries(m).sort((i,h)=>i[1].layer!==h[1].layer?(h[1].layer||0)-(i[1].layer||0):h[0].localeCompare(i[0])),g=c.length,a=Object.keys(e);c.forEach(([i,h],C)=>{this.ruleOptions.push(h),h.order=this.semanticRuleOptions.length+g-1-C;let v=h.match;h.id=i,h.resolvedVariables={};let D=x=>{Object.assign(h.resolvedVariables,Object.keys(this.variables).filter(R=>R.startsWith(x+"-")||R.startsWith("-"+x+"-")).reduce((R,N)=>(R[N.slice(x.length+(x.startsWith("-")?0:1))]={...this.variables[N],name:N},R),{}))};if(h.variables)for(let x of h.variables)D(x);if(D(i),v)if(Array.isArray(v)){let[x,R=[]]=v,N=[];R.length&&N.push(`(?:${R.join("|")})(?![a-zA-Z0-9-])`),Object.keys(h.resolvedVariables).length&&N.push(`(?:${Object.keys(h.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),h.colored&&N.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${a.join("|")})(?![a-zA-Z0-9-])`),h.numeric&&N.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),N.length&&(h.resolvedMatch=new RegExp(`^${x}:(?:${N.join("|")})[^|]*?(?:@|$)`))}else h.resolvedMatch=v})}}observe(e,r={subtree:!0,childList:!0}){if(e||(e=document),this.root===e)return this;this.root=e;let n=e===document;n&&(globalThis.masterCSS=this),this.host=n?document.documentElement:this.root.host;let y=n?document.head:e,s=n?document.styleSheets:e.styleSheets;for(let m of s){let{ownerNode:u}=m;if(u&&u.id==="master"){this.style=u;break}}if(this.style){let m=0;for(;m<this.style.sheet.cssRules.length;m++){let u=this.style.sheet.cssRules[m];switch(u.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let o=/\(prefers-color-scheme: (.*?)\)/.exec(u.conditionText);if(o){let d=u.cssRules[0];if(d?.constructor.name==="CSSStyleRule"&&d.selectorText===":root"){this.pushVariableNativeRule(o[1],d);continue}}}break;case"CSSStyleRule":let f=u.selectorText;if(u.style.length){let o=!0;for(let d=0;d<u.style.length;d++)if(!u.style[d]?.startsWith("--")){o=!1;break}if(o){if(f===":root"){this.pushVariableNativeRule("",u);continue}else if(this.config.themeDriver==="host"){let d=/:host(.*?)/.exec(f);if(d){this.pushVariableNativeRule(d[1],u);continue}}else if(!f.startsWith(".\\$")){this.pushVariableNativeRule(f.slice(1),u);continue}}}break}}for(;m<this.style.sheet.cssRules.length;m++){let u=o=>{if(o.selectorText){let p=o.selectorText.split(", ")[0].split(" ");for(let b=0;b<p.length;b++){let c=p[b];if(c[0]==="."){let g=c.slice(1),a="";for(let i=0;i<g.length;i++){let h=g[i],C=g[i+1];if(h==="\\"){if(i++,C!=="\\"){a+=C;continue}}else if(pe.includes(h))break;a+=h}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,a)&&!Object.prototype.hasOwnProperty.call(this.styles,a)){let i=this.create(a)[0];if(i)return i}}}}else if(o.cssRules)for(let d=0;d<o.cssRules.length;d++){let p=u(o.cssRules[d]);if(p)return p}},f=u(this.style.sheet.cssRules[m]);if(f){this.rules.push(f),this.ruleBy[f.className]=f;for(let o=0;o<f.natives.length;o++)f.natives[o].cssRule=this.style.sheet.cssRules[m+o];m+=f.natives.length-1,this.handleRuleWithVariableNames(f,!0),this.handleRuleWithAnimationNames(f,!0),f.definition.insert?.call(f)}}}else this.style=document.createElement("style"),this.style.id="master",y.append(this.style);let l=m=>{m.forEach(u=>{Object.prototype.hasOwnProperty.call(this.classesUsage,u)?this.classesUsage[u]++:(this.classesUsage[u]=1,this.insert(u))})};return l(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(m=>l(m.classList)),this.observer=new MutationObserver(m=>{let u={},f=[],o=[],d=[],p=(a,i)=>{i?a.classList.forEach(c):a.classList.forEach(b);let h=a.children;for(let C=0;C<h.length;C++){let v=h[C];v.classList&&(o.push(v),p(v,i))}},b=a=>{Object.prototype.hasOwnProperty.call(u,a)?u[a]++:u[a]=1},c=a=>{Object.prototype.hasOwnProperty.call(u,a)?u[a]--:Object.prototype.hasOwnProperty.call(this.classesUsage,a)&&(u[a]=-1)},g=(a,i)=>{for(let h=0;h<a.length;h++){let C=a[h];C.classList&&!o.includes(C)&&!d.includes(C)&&(C.isConnected!==i?(o.push(C),p(C,i)):d.push(C))}};for(let a=0;a<m.length;a++){let i=m[a],{addedNodes:h,removedNodes:C,type:v,target:D}=i;if(v==="attributes"){if(f.find(x=>x.target===D))continue;f.push(i)}else g(h,!1),(!D.isConnected||!o.includes(D))&&g(C,!0)}if(!(!f.length&&!Object.keys(u).length)){for(let{oldValue:a,target:i}of f){let h=o.includes(i),C=i.classList,v=a?a.split(" "):[];if(h){if(i.isConnected)continue;for(let D of v)C.contains(D)||c(D)}else if(i.isConnected){C.forEach(D=>{v.includes(D)||b(D)});for(let D of v)C.contains(D)||c(D)}}for(let a in u){let i=u[a],h=(this.classesUsage[a]||0)+i;h===0?(delete this.classesUsage[a],this.delete(a)):(Object.prototype.hasOwnProperty.call(this.classesUsage,a)||this.insert(a),this.classesUsage[a]=h)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0,this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules=void 0;for(let r in this.animations){let n=this.animations[r];n.usage=void 0,n.native=void 0}for(let r in this.variables){let n=this.variables[r];n.usage=void 0}let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r of this.ruleOptions)if(r.resolvedMatch&&r.resolvedMatch.test(e)||(r.layer===-2||r.layer===-6||r.layer===-3||r.layer===-7)&&e.startsWith(r.id+":"))return r;for(let r of this.semanticRuleOptions)if(r.resolvedMatch.test(e))return r}create(e){let r=n=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,n))return this.ruleBy[n];let y=this.match(n);if(y)return new J(n,y,this)};return(Object.prototype.hasOwnProperty.call(this.styles,e)?this.styles[e].map(n=>r(n)):[r(e)]).filter(n=>n&&n.text)}refresh(e=this.customConfig){if(e?.override?this.config=this.getExtendedConfig(e):this.config=this.getExtendedConfig(Z,e),this.resolve(),!this.style)return;let r=document.createElement("style");r.id="master",this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let n in this.classesUsage)this.insert(n)}destroy(){this.disconnect(),globalThis.masterCSSs.splice(globalThis.masterCSSs.indexOf(this),1)}delete(e){let r=this.style?.sheet,n=y=>{let s=this.ruleBy[y];if(!(!s||Object.prototype.hasOwnProperty.call(this.stylesBy,y)&&this.stylesBy[y].some(l=>Object.prototype.hasOwnProperty.call(this.classesUsage,l)))){if(r&&s.natives.length){let l=s.natives[0];for(let m=0;m<r.cssRules.length;m++)if(r.cssRules[m]===l.cssRule){for(let f=0;f<s.natives.length;f++)r.deleteRule(m);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[y],s.variableNames)for(let l of s.variableNames){let m=this.variables[l];if(!--m.usage){let u=f=>{let o=this.variablesNativeRules[f];if(o.cssRule.style.removeProperty("--"+l),!o.cssRule.style.length){let d=this.rules[0],p=d.natives.indexOf(o);r?.deleteRule(p),d.natives.splice(p,1),delete this.variablesNativeRules[f],d.natives.length||(this.rules.splice(0,1),this.variablesNativeRules=void 0)}};if(m.value&&u(""),m.themes)for(let f in m.themes)u(f)}}if(s.animationNames){let l=this.variablesNativeRules?1:0,m=this.rules[l];for(let u of s.animationNames){let f=this.animations[u];if(!--f.usage){let o=m.natives.indexOf(f.native);this.style.sheet.deleteRule((this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+o),m.natives.splice(o,1),f.native=void 0}}m.natives.length||(this.rules.splice(l,1),this.hasKeyframesRule=!1)}s.definition.delete?.call(s,y)}};if(Object.prototype.hasOwnProperty.call(this.styles,e)){for(let y of this.styles[e])Object.prototype.hasOwnProperty.call(this.classesUsage,y)||n(y);delete this.ruleBy[e]}else n(e)}insert(e){let r=this.create(e);return r.length?(this.render(r),!0):!1}render(e){for(let r of e){if(this.ruleBy[r.className])continue;let n,y=this.rules.length-1,{media:s,order:l,priority:m,hasWhere:u,className:f}=r,o=(b,c,g)=>{let a=b;for(;a<=y;a++){let i=this.rules[a];if(c?.(i))return g?-1:a-1;if(g?.(i))return a}return g?-1:a-1},d,p;if(s){let b=this.rules.findIndex(c=>c.media);if(b===-1)n=y+1;else{let{"max-width":c,"min-width":g}=s.features;if(c||g){let a=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(a===-1)n=y+1;else if(c&&g){if(m===-1?(d=o(a,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),p=o(a,i=>i.priority!==-1)):(d=o(a,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),p=y),d!==-1){let i=c.value-g.value,h=p,C=d;for(d=void 0;h>=C;h--){let{"max-width":v,"min-width":D}=this.rules[h].media.features,x=v.value-D.value;if(x<i)p=h-1;else if(x===i)d=h;else break}}if(d!==-1){let i=c.value-g.value;for(let h=p;h>=d;h--){let{"max-width":C,"min-width":v}=this.rules[h].media.features,D=C.value-v.value;if(D<i)p=h-1;else if(D>i){d=h+1;break}}}}else if(g){if(m===-1?(d=o(a,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),p=o(a,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(d=o(a,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),p=o(a,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),d!==-1)for(let i=p;i>=d;i--){let h=this.rules[i].media.features["min-width"].value;if(h>g.value)p=i-1;else if(h<g.value){d=i+1;break}}}else if(m===-1?(d=o(a,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),p=o(a,i=>i.media.features["min-width"]||i.priority!==-1)):(d=o(a,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),p=o(a,i=>i.media.features["min-width"]&&i.priority!==-1)),d!==-1)for(let i=p;i>=d;i--){let h=this.rules[i].media.features["max-width"].value;if(h<c.value)p=i-1;else if(h>c.value){d=i+1;break}}}else m===-1?(d=b,p=o(b,a=>a.media?.features["max-width"]||a.media?.features["min-width"]||a.priority!==-1)):(d=o(b,a=>a.media?.features["max-width"]||a.media?.features["min-width"],a=>a.priority!==-1),p=o(b,a=>a.media?.features["max-width"]||a.media?.features["min-width"]))}}else{let b=this.variablesNativeRules?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;m===-1?(d=b,p=o(b,c=>c.media||c.priority!==-1)):(d=o(b,c=>c.media,c=>c.priority!==-1),p=o(b,c=>c.media))}if(n===void 0)if(d===-1)n=p+1;else{if(m===-1)for(let b=d;b<=p;b++){let c=this.rules[b];if(!(!u&&c.hasWhere)&&(u&&!c.hasWhere||c.order>=l)){n=b;break}}else for(let b=d;b<=p;b++){let c=this.rules[b];if(!(!u&&c.hasWhere)){if(u&&!c.hasWhere){n=b;break}if(c.priority<m){n=b;break}else if(c.priority===m){if(c.order>=l){n=b;break}}else n=b+1}}n===void 0&&(n=p+1)}if(this.rules.splice(n,0,r),this.ruleBy[f]=r,this.style){let b=this.style.sheet,c=0,g=a=>{let i=this.rules[a];if(i){if(!i.natives.length)return g(a-1);let h=i.natives[i.natives.length-1],C=h.cssRule.parentRule??h.cssRule;for(let v=0;v<b.cssRules.length;v++)if(b.cssRules[v]===C){c=v+1;break}}};g(n-1);for(let a=0;a<r.natives.length;)try{let i=r.natives[a];b.insertRule(i.text,c),i.cssRule=b.cssRules[c++],a++}catch(i){console.error(i),r.natives.splice(a,1)}}this.handleRuleWithVariableNames(r),this.handleRuleWithAnimationNames(r),r.definition.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}getExtendedConfig(...e){let r=s=>{let l=K({},s),m=u=>{for(let f in u){let o=u[f];typeof o=="object"&&!Array.isArray(o)?m(o):f&&!f.startsWith("@")&&(u[f]={"":o})}};return l.styles?m(l.styles):l.styles={},l.mediaQueries?m(l.mediaQueries):l.mediaQueries={},l.variables?m(l.variables):l.variables={},l},n=[];for(let s of e)(function l(m){if(m.extends?.length)for(let u of m.extends)l("config"in u?u.config:u);n.push(r(m))})(s);let y=n[0];for(let s=1;s<n.length;s++){let l=n[s];y=K(y,l),Object.prototype.hasOwnProperty.call(l,"animations")&&Object.assign(y.animations,l.animations)}return y}handleRuleWithAnimationNames(e,r=!1){if(e.animationNames){let n=this.style?.sheet;for(let y of e.animationNames){let s=this.animations[y];if(s.usage)s.usage++;else{let l={text:`@keyframes ${y}{`+Object.entries(s).filter(([f])=>f!=="usage"&&f!=="native").map(([f,o])=>`${f}{${Object.entries(o).map(([d,p])=>d+":"+p).join(";")}}`).join("")+"}"},m=this.variablesNativeRules?1:0,u;if(this.hasKeyframesRule?(u=this.rules[m]).natives.push(l):(this.rules.splice(m,0,u={natives:[l],get text(){return this.natives.map(f=>f.text).join("")}}),this.hasKeyframesRule=!0),n){let f;if(r)for(let o=0;o<n.cssRules.length;o++){let d=n.cssRules[o];if(d.constructor.name==="CSSKeyframesRule"&&d.name===y){f=d;break}}if(f)l.cssRule=f;else{let o=(this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+u.natives.length-1;n.insertRule(l.text,o),l.cssRule=n.cssRules[o]}}s.usage=1,s.native=l}}}}handleRuleWithVariableNames(e,r=!1){if(e.variableNames){let n=this.style?.sheet;for(let y of e.variableNames){let s=this.variables[y];if(s.usage)s.usage++;else{let l=(m,u)=>{let f=this.variablesNativeRules?.[m];if(!f){let d,p,b;if(m)switch(this.config.themeDriver){case"media":p=`@media(prefers-color-scheme:${m})`,b=":root";break;case"host":b=`:host(.${m})`;break;default:b=`.${m}`;break}else b=":root";if(n){let c=this.variablesNativeRules?this.rules[0].natives.length:0;n.insertRule((p?p+"{":"")+b+"{}"+(p?p+"}":""),c),d=p?n.cssRules[c].cssRules[0]:n.cssRules[c]}else{let c=new Map,g=Object.defineProperties({},{getPropertyValue:{value:a=>c.get(a)},removeProperty:{value:a=>{c.delete(a);for(let i=0;i<g.length;i++)g[i]===a&&delete g[i]}},setProperty:{value:(a,i)=>{g[g.length]=a,c.set(a,i)}},length:{get(){return Object.keys(g).length}}});d={selectorText:b,style:g,styleMap:c},p&&(d.parentRule={conditionText:p})}f=this.pushVariableNativeRule(m,d)}let o="--"+y;(!r||!f.cssRule.style.getPropertyValue(o))&&f.cssRule.style.setProperty(o,u.value.toString())};if(s.value&&l("",s),s.themes)for(let m in s.themes)l(m,s.themes[m]);s.usage=1}}}}pushVariableNativeRule(e,r){this.variablesNativeRules||(this.variablesNativeRules={},this.rules.splice(0,0,{natives:[],get text(){return this.natives.map(l=>l.text).join("")}}));let n="",y="}";r.parentRule&&(n+=r.parentRule.conditionText.replace(/ /g,"")+"{",y+="}"),n+=r.selectorText+"{";let s={cssRule:r,get text(){let l=[];for(let m=0;m<r.style.length;m++){let u=r.style[m];l.push(u+":"+r.style.getPropertyValue(u))}return n+l.join(";")+y}};return this.rules[0].natives.push(this.variablesNativeRules[e]=s),s}};globalThis.MasterCSS=G,globalThis.masterCSSs||(globalThis.masterCSSs=[]);window.masterCSS=new G(window.masterCSSConfig).observe(document);})(); |
@@ -6,3 +6,3 @@ export { MasterCSS, MasterCSS as default } from './core'; | ||
export { CONFIG_TS_TEXT } from './constants/config-ts-text'; | ||
export { Layer, CoreLayer } from './layer'; | ||
export { Layer } from './layer'; | ||
export { default as extend } from '@techor/extend'; | ||
@@ -9,0 +9,0 @@ export { default as fillColorScale } from './functions/fill-color-scale'; |
export declare const enum Layer { | ||
NativeShorthand = -300, | ||
Shorthand = -200, | ||
Native = -100, | ||
Semantic = -8, | ||
CoreNativeShorthand = -7, | ||
NativeShorthand = -6, | ||
CoreShorthand = -5, | ||
Shorthand = -4, | ||
CoreNative = -3, | ||
Native = -2, | ||
Core = -1, | ||
Normal = 0 | ||
} | ||
export declare const enum CoreLayer { | ||
Semantic = -401, | ||
NativeShorthand = -301, | ||
Shorthand = -201, | ||
Native = -101, | ||
Normal = -1 | ||
} |
@@ -1,7 +0,7 @@ | ||
import type { MasterCSS } from './core'; | ||
import type { MasterCSS, Variable } from './core'; | ||
import { CSSDeclarations } from './types/css-declarations'; | ||
import { CoreLayer, Layer } from './layer'; | ||
import { Layer } from './layer'; | ||
export declare class Rule { | ||
readonly className: string; | ||
readonly options: RuleOptions; | ||
readonly definition: RuleDefinition; | ||
css: MasterCSS; | ||
@@ -12,3 +12,3 @@ readonly at: Record<string, string>; | ||
readonly order: number; | ||
readonly layer: Layer | CoreLayer; | ||
readonly layer: Layer; | ||
readonly stateToken: string; | ||
@@ -19,7 +19,6 @@ readonly declarations: CSSDeclarations; | ||
variableNames: string[]; | ||
constructor(className: string, options: RuleOptions, css: MasterCSS); | ||
transformValueComponents: (valueComponents: ValueComponent[], unit: string, bypassVariableNames: string[]) => string; | ||
constructor(className: string, definition: RuleDefinition, css: MasterCSS); | ||
resolveValue: (valueComponents: ValueComponent[], unit: string, bypassVariableNames: string[]) => string; | ||
get text(): string; | ||
parseValue: (currentValueComponents: ValueComponent[], i: number, value: string, unit: string, endSymbol?: string, parentFunctionName?: any, bypassVariableNames?: string[]) => number; | ||
resolveValue(value: any, unit: any): any; | ||
parseValueComponent(token: string | number, unit?: any): StringValueComponent | NumericValueComponent; | ||
@@ -29,2 +28,3 @@ } | ||
export interface StringValueComponent { | ||
text?: string; | ||
token?: string; | ||
@@ -35,2 +35,3 @@ type: 'string'; | ||
export interface NumericValueComponent { | ||
text?: string; | ||
token?: string; | ||
@@ -42,2 +43,3 @@ type: 'number'; | ||
export interface FunctionValueComponent { | ||
text?: string; | ||
token?: string; | ||
@@ -47,5 +49,6 @@ type: 'function'; | ||
symbol: string; | ||
childrens: ValueComponent[]; | ||
children: ValueComponent[]; | ||
} | ||
export interface VariableValueComponent { | ||
text?: string; | ||
token?: string; | ||
@@ -56,8 +59,8 @@ type: 'variable'; | ||
fallback?: string; | ||
variable?: Variable; | ||
} | ||
export interface SeparatorValueComponent { | ||
text?: string; | ||
type: 'separator'; | ||
value: string; | ||
prefix?: string; | ||
suffix?: string; | ||
} | ||
@@ -80,3 +83,3 @@ export interface Rule { | ||
} | ||
export interface RuleOptions { | ||
export interface RuleDefinition { | ||
id?: string; | ||
@@ -86,3 +89,3 @@ match?: RegExp | [string, string[]?]; | ||
resolvedVariables?: any; | ||
variableGroups?: string[]; | ||
variables?: string[]; | ||
order?: number; | ||
@@ -96,6 +99,5 @@ separators?: string[]; | ||
declarations?: CSSDeclarations; | ||
resolvedPropName?: string; | ||
layer?: Layer | CoreLayer; | ||
layer?: Layer; | ||
analyze?: (this: Rule, className: string) => [valueToken: string, prefixToken?: string]; | ||
transform?(this: Rule, value: string): string; | ||
transformValue?(this: Rule, value: string): string; | ||
transformValueComponents?(this: Rule, valueComponents: ValueComponent[]): ValueComponent[]; | ||
@@ -127,3 +129,3 @@ declare?(this: Rule, value: string, unit: string): CSSDeclarations; | ||
value?: [string, string | Record<string, string>]; | ||
config?: RuleOptions; | ||
config?: RuleDefinition; | ||
} |
@@ -1,1 +0,1 @@ | ||
{"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"pnpm run build --watch --no-declare","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A markup-driven CSS language with enhanced syntax","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.bundle.js","jsnext:main":"./dist/index.bundle.mjs","esnext":"./dist/index.bundle.mjs","module":"./dist/index.bundle.mjs","browser":"./dist/index.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/index.bundle.js","import":"./dist/index.bundle.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/bin/index.bundle.js","mastercss":"./dist/bin/index.bundle.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.198","@techor/fs":"^2.5.4","@techor/log":"^2.5.4","commander":"^11.0.0"},"devDependencies":{"@techor/extend":"^2.5.4","@techor/pack":"^2.5.4","css-shared":"^2.0.0-beta.198","csstype":"^3.1.2","puppeteer":"^21.0.1","vite":"^4.2.1"},"version":"2.0.0-beta.198"} | ||
{"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"pnpm run build --watch --no-declare","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A markup-driven CSS language with enhanced syntax","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.bundle.js","jsnext:main":"./dist/index.bundle.mjs","esnext":"./dist/index.bundle.mjs","module":"./dist/index.bundle.mjs","browser":"./dist/index.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/index.bundle.js","import":"./dist/index.bundle.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/bin/index.bundle.js","mastercss":"./dist/bin/index.bundle.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.199","@techor/fs":"^2.5.4","@techor/log":"^2.5.4","commander":"^11.0.0"},"devDependencies":{"@techor/extend":"^2.5.4","@techor/pack":"^2.5.4","css-shared":"^2.0.0-beta.199","csstype":"^3.1.2","puppeteer":"^21.0.1","vite":"^4.2.1"},"version":"2.0.0-beta.199"} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
246478
2146