@tamagui/web 3.0.0-beta.745.1 → 3.0.0-beta.752.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/helpers/directStyle.cjs +7 -3
- package/dist/cjs/helpers/directStyle.native.cjs +7 -3
- package/dist/cjs/helpers/directStyle.native.js +7 -3
- package/dist/cjs/helpers/directStyle.native.js.map +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.cjs +6 -7
- package/dist/cjs/helpers/getSplitStyles.cjs +106 -10
- package/dist/cjs/helpers/getSplitStyles.native.cjs +168 -10
- package/dist/cjs/helpers/getSplitStyles.native.js +168 -10
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/propMapper.cjs +32 -6
- package/dist/cjs/helpers/propMapper.native.cjs +45 -6
- package/dist/cjs/helpers/propMapper.native.js +45 -6
- package/dist/cjs/helpers/propMapper.native.js.map +1 -1
- package/dist/cjs/hooks/useComponentState.cjs +6 -4
- package/dist/cjs/hooks/useComponentState.native.cjs +6 -4
- package/dist/cjs/hooks/useComponentState.native.js +6 -4
- package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
- package/dist/esm/helpers/directStyle.mjs +7 -4
- package/dist/esm/helpers/directStyle.mjs.map +1 -1
- package/dist/esm/helpers/directStyle.native.js +7 -4
- package/dist/esm/helpers/directStyle.native.js.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.mjs +6 -7
- package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.mjs +107 -11
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +169 -11
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/propMapper.mjs +33 -7
- package/dist/esm/helpers/propMapper.mjs.map +1 -1
- package/dist/esm/helpers/propMapper.native.js +46 -7
- package/dist/esm/helpers/propMapper.native.js.map +1 -1
- package/dist/esm/hooks/useComponentState.mjs +6 -4
- package/dist/esm/hooks/useComponentState.mjs.map +1 -1
- package/dist/esm/hooks/useComponentState.native.js +6 -4
- package/dist/esm/hooks/useComponentState.native.js.map +1 -1
- package/package.json +15 -15
- package/src/helpers/directStyle.ts +10 -4
- package/src/helpers/getCSSStylesAtomic.ts +16 -10
- package/src/helpers/getSplitStyles.tsx +183 -17
- package/src/helpers/propMapper.ts +64 -13
- package/src/hooks/useComponentState.ts +15 -4
- package/src/styled.tsx +4 -0
- package/src/types.tsx +13 -2
- package/types/dom/html.d.ts +49 -49
- package/types/dom/html.native.d.ts +46 -46
- package/types/helpers/directStyle.d.ts +1 -0
- package/types/helpers/directStyle.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/propMapper.d.ts +2 -2
- package/types/helpers/propMapper.d.ts.map +1 -1
- package/types/hooks/useComponentState.d.ts.map +1 -1
- package/types/styled.d.ts.map +1 -1
- package/types/types.d.ts +4 -1
- package/types/types.d.ts.map +1 -1
|
@@ -3,8 +3,10 @@ import { StyleObjectIdentifier, StyleObjectRules, stylePropsAll, stylePropsText,
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { STYLE_FRONTEND_PASSTHROUGH_PREFIX, STYLE_FRONTEND_PREPROCESSED } from "./styleFrontend.mjs";
|
|
5
5
|
import { getConfig } from "../config.mjs";
|
|
6
|
+
import { isVariable } from "../createVariable.mjs";
|
|
6
7
|
import { isDevTools } from "../constants/isDevTools.mjs";
|
|
7
8
|
import { mediaState } from "./mediaState.mjs";
|
|
9
|
+
import { scanFlatValue } from "@tamagui/style-grammar/runtime";
|
|
8
10
|
import { fixStyles } from "./expandStyles.mjs";
|
|
9
11
|
import { styleToCSS } from "./getCSSStylesAtomic.mjs";
|
|
10
12
|
import { getDefaultProps } from "./getDefaultProps.mjs";
|
|
@@ -13,7 +15,7 @@ import { isPlainObject } from "./isObj.mjs";
|
|
|
13
15
|
import { log } from "./log.mjs";
|
|
14
16
|
import { normalizeValueWithProperty } from "./normalizeValueWithProperty.mjs";
|
|
15
17
|
import { appendFlatClause, propMapper } from "./propMapper.mjs";
|
|
16
|
-
import { clearDirectStyle, contributeStyleValue, contributeVariantClauseValue, flushDirectStyles, getDirectDynamicThemeAccess } from "./directStyle.mjs";
|
|
18
|
+
import { clearDirectStyle, contributeStyleValue, contributeVariantClauseValue, flushDirectStyles, getDirectDynamicThemeAccess, resolveClauseChain } from "./directStyle.mjs";
|
|
17
19
|
import { contributeFrontendProgram, isFrontendProgram } from "./frontendProgram.mjs";
|
|
18
20
|
import { skipProps } from "./skipProps.mjs";
|
|
19
21
|
import { sortString } from "./sortString.mjs";
|
|
@@ -27,12 +29,85 @@ function compoundMatcherMatches(expected, actual) {
|
|
|
27
29
|
if (Array.isArray(expected)) return expected.some((value) => Object.is(value, actual));
|
|
28
30
|
return Object.is(expected, actual);
|
|
29
31
|
}
|
|
30
|
-
function
|
|
32
|
+
function compoundMatcherMatchesPayload(expected, payload) {
|
|
33
|
+
if (Array.isArray(expected)) return expected.some((value) => compoundMatcherMatchesPayload(value, payload));
|
|
34
|
+
return typeof expected === "string" ? expected === payload : String(expected) === payload;
|
|
35
|
+
}
|
|
36
|
+
const compoundScanHandler = {
|
|
37
|
+
segment(ctx, start, end, isBase, valid, source, chainStart, chainEnd, chainValid) {
|
|
38
|
+
if (!valid || start >= end) return;
|
|
39
|
+
if (!compoundMatcherMatchesPayload(ctx[1], source.slice(start, end))) return;
|
|
40
|
+
if (isBase) {
|
|
41
|
+
ctx[4] = true;
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (!chainValid) return;
|
|
45
|
+
const chain = source.slice(chainStart, chainEnd);
|
|
46
|
+
if (ctx[2](chain)) ctx[3].push(chain);
|
|
47
|
+
},
|
|
48
|
+
chain() {
|
|
49
|
+
return true;
|
|
50
|
+
},
|
|
51
|
+
error() {}
|
|
52
|
+
};
|
|
53
|
+
function matcherChains(expected, actual, isChain) {
|
|
54
|
+
if (typeof actual === "string" && actual.indexOf(":") !== -1) {
|
|
55
|
+
const scan = [
|
|
56
|
+
actual,
|
|
57
|
+
expected,
|
|
58
|
+
isChain,
|
|
59
|
+
[],
|
|
60
|
+
false
|
|
61
|
+
];
|
|
62
|
+
scanFlatValue(actual, compoundScanHandler, scan);
|
|
63
|
+
if (scan[4]) return [""];
|
|
64
|
+
return scan[3].length ? scan[3] : null;
|
|
65
|
+
}
|
|
66
|
+
if (actual && typeof actual === "object" && !Array.isArray(actual) && !isVariable(actual)) {
|
|
67
|
+
let conditional = Object.prototype.hasOwnProperty.call(actual, "default");
|
|
68
|
+
if (!conditional) for (const key in actual) {
|
|
69
|
+
conditional = key.length > 0 && isChain(key);
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
if (conditional) {
|
|
73
|
+
const chains = [];
|
|
74
|
+
for (const key in actual) {
|
|
75
|
+
const payload = actual[key];
|
|
76
|
+
if (payload == null || !compoundMatcherMatches(expected, payload)) continue;
|
|
77
|
+
if (key === "default") return [""];
|
|
78
|
+
if (isChain(key)) chains.push(key);
|
|
79
|
+
}
|
|
80
|
+
return chains.length ? chains : null;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return compoundMatcherMatches(expected, actual) ? [""] : null;
|
|
84
|
+
}
|
|
85
|
+
function isConditionalObjectValue(value, isChain) {
|
|
86
|
+
if (Object.prototype.hasOwnProperty.call(value, "default")) return true;
|
|
87
|
+
for (const key in value) return key.length > 0 && isChain(key);
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
const joinChains = (a, b) => {
|
|
91
|
+
if (!a) return b;
|
|
92
|
+
if (!b) return a;
|
|
93
|
+
const segments = a.split(":");
|
|
94
|
+
for (const segment of b.split(":")) if (!segments.includes(segment)) segments.push(segment);
|
|
95
|
+
return segments.join(":");
|
|
96
|
+
};
|
|
97
|
+
function compoundVariantMatchChains(compoundVariant, props, isChain) {
|
|
98
|
+
let chains = [""];
|
|
31
99
|
for (const key in compoundVariant) {
|
|
32
100
|
if (key === "style") continue;
|
|
33
|
-
|
|
101
|
+
const keyChains = matcherChains(compoundVariant[key], props[key], isChain);
|
|
102
|
+
if (!keyChains) return null;
|
|
103
|
+
const next = [];
|
|
104
|
+
for (const a of chains) for (const b of keyChains) {
|
|
105
|
+
const joined = joinChains(a, b);
|
|
106
|
+
if (!next.includes(joined)) next.push(joined);
|
|
107
|
+
}
|
|
108
|
+
chains = next;
|
|
34
109
|
}
|
|
35
|
-
return
|
|
110
|
+
return chains;
|
|
36
111
|
}
|
|
37
112
|
const styledDefaultsCache = /* @__PURE__ */ new WeakMap();
|
|
38
113
|
function getStyledDefaults(staticConfig) {
|
|
@@ -45,6 +120,7 @@ function getStyledDefaults(staticConfig) {
|
|
|
45
120
|
}
|
|
46
121
|
return entries;
|
|
47
122
|
}
|
|
123
|
+
const maybeStyleProgram = (value) => typeof value === "string" ? value.includes(":") : !!value && typeof value === "object" && !Array.isArray(value) && !isVariable(value);
|
|
48
124
|
function contributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute) {
|
|
49
125
|
if (!styledDefaults) return;
|
|
50
126
|
for (let index = 0; index < styledDefaults.length; index++) {
|
|
@@ -52,10 +128,10 @@ function contributeDisplacedStyledDefaults(styledDefaults, processedProps, short
|
|
|
52
128
|
const styledValue = styledDefaults[index][1];
|
|
53
129
|
const propValue = processedProps[key];
|
|
54
130
|
if (!(key in stylePropsAll) && !(key in shorthands)) continue;
|
|
55
|
-
if (propValue !== void 0 && propValue !== styledValue && (
|
|
131
|
+
if (propValue !== void 0 && propValue !== styledValue && (maybeStyleProgram(styledValue) || maybeStyleProgram(propValue))) contribute(key, styledValue);
|
|
56
132
|
}
|
|
57
133
|
}
|
|
58
|
-
function forEachPropInForwardOrder(processedProps, staticConfig, shorthands, contribute) {
|
|
134
|
+
function forEachPropInForwardOrder(processedProps, staticConfig, shorthands, contribute, isChain) {
|
|
59
135
|
const processedBaseStyle = staticConfig.baseStyle;
|
|
60
136
|
const compoundVariants = staticConfig.compoundVariants;
|
|
61
137
|
const styledDefaults = getStyledDefaults(staticConfig);
|
|
@@ -70,7 +146,8 @@ function forEachPropInForwardOrder(processedProps, staticConfig, shorthands, con
|
|
|
70
146
|
contributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, (k, v) => orderedEntries.push([k, v]));
|
|
71
147
|
const compoundsByAnchor = /* @__PURE__ */ new Map();
|
|
72
148
|
for (const compoundVariant of compoundVariants) {
|
|
73
|
-
|
|
149
|
+
const chains = compoundVariantMatchChains(compoundVariant, processedProps, isChain);
|
|
150
|
+
if (!chains) continue;
|
|
74
151
|
const { style } = compoundVariant;
|
|
75
152
|
if (!isPlainObject(style)) continue;
|
|
76
153
|
let anchor = -1;
|
|
@@ -82,7 +159,26 @@ function forEachPropInForwardOrder(processedProps, staticConfig, shorthands, con
|
|
|
82
159
|
}
|
|
83
160
|
}
|
|
84
161
|
const entries = compoundsByAnchor.get(anchor) || [];
|
|
85
|
-
for (const key in style)
|
|
162
|
+
for (const key in style) {
|
|
163
|
+
const value = style[key];
|
|
164
|
+
for (const chain of chains) {
|
|
165
|
+
if (!chain) {
|
|
166
|
+
entries.push([key, value]);
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
if (value && typeof value === "object" && !Array.isArray(value) && !isVariable(value) && isConditionalObjectValue(value, isChain)) {
|
|
170
|
+
const composed = {};
|
|
171
|
+
for (const inner in value) composed[inner === "default" ? chain : `${chain}:${inner}`] = value[inner];
|
|
172
|
+
entries.push([key, composed]);
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
if (typeof value === "string" && value.includes(":")) {
|
|
176
|
+
if (process.env.NODE_ENV === "development") console.warn(`[tamagui] compound variant "${key}" carries a clause string and matched conditionally; dropping it. use the object form in the compound style`);
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
entries.push([key, { [chain]: value }]);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
86
182
|
compoundsByAnchor.set(anchor, entries);
|
|
87
183
|
}
|
|
88
184
|
for (let index = 0; index < orderedEntries.length; index++) contribute(orderedEntries[index][0], orderedEntries[index][1]);
|
|
@@ -366,9 +462,9 @@ const getSplitStyles = (props, staticConfig, theme, themeName, componentState, s
|
|
|
366
462
|
if (conditionSource !== void 0) {
|
|
367
463
|
if (isHostStyleKey || isContextProgramKey) contributeVariantClauseValue(styleState, key, val, conditionSource, mergeStyle, originalVal, !isHostStyleKey);
|
|
368
464
|
else if (isHOC) {
|
|
369
|
-
const appended = appendFlatClause(viewProps[key], conditionSource, val);
|
|
465
|
+
const appended = appendFlatClause(styleState, viewProps[key], conditionSource, val);
|
|
370
466
|
if (appended !== void 0) viewProps[key] = appended;
|
|
371
|
-
else if (process.env.NODE_ENV === "development") console.warn(`[tamagui] conditional variant value for "${key}"
|
|
467
|
+
else if (process.env.NODE_ENV === "development") console.warn(`[tamagui] conditional variant value for "${key}" cannot join the existing clause string; dropping the clause`);
|
|
372
468
|
} else if (process.env.NODE_ENV === "development") console.warn(`[tamagui] "${key}" is not a valid style on this component; the conditional variant value is dropped.`);
|
|
373
469
|
return;
|
|
374
470
|
}
|
|
@@ -409,7 +505,7 @@ const getSplitStyles = (props, staticConfig, theme, themeName, componentState, s
|
|
|
409
505
|
console.groupEnd();
|
|
410
506
|
}
|
|
411
507
|
};
|
|
412
|
-
forEachPropInForwardOrder(processedProps, staticConfig, shorthands, contributeProp);
|
|
508
|
+
forEachPropInForwardOrder(processedProps, staticConfig, shorthands, contributeProp, (chain) => !!resolveClauseChain(styleState, chain, 0, chain.length));
|
|
413
509
|
if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-propsend`;
|
|
414
510
|
const conditionalStates = styleState.flatStateKeys || null;
|
|
415
511
|
const usesSafeArea = !!styleState.flatUsesSafeArea;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSplitStyles.js","names":[],"sources":["esm/helpers/getSplitStyles.js"],"sourcesContent":["import { isClient, isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { StyleObjectIdentifier, StyleObjectRules, stylePropsAll, stylePropsText, stylePropsTransform, validStyles } from \"@tamagui/helpers\";\nimport React from \"react\";\nimport { STYLE_FRONTEND_PASSTHROUGH_PREFIX, STYLE_FRONTEND_PREPROCESSED } from \"./styleFrontend\";\nimport { getConfig } from \"../config\";\nimport { isDevTools } from \"../constants/isDevTools\";\nimport { mediaState } from \"./mediaState\";\nimport { fixStyles } from \"./expandStyles\";\nimport { styleToCSS } from \"./getCSSStylesAtomic\";\nimport { getDefaultProps } from \"./getDefaultProps\";\nimport { insertStyleRules, shouldInsertStyleRules, updateRules } from \"./insertStyleRule\";\nimport { isPlainObject } from \"./isObj\";\nimport { log } from \"./log\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { appendFlatClause, propMapper } from \"./propMapper\";\nimport { clearDirectStyle, contributeStyleValue, contributeVariantClauseValue, flushDirectStyles, getDirectDynamicThemeAccess } from \"./directStyle\";\nimport { contributeFrontendProgram, isFrontendProgram } from \"./frontendProgram\";\nimport { skipProps } from \"./skipProps\";\nimport { sortString } from \"./sortString\";\nimport { styleOriginalValues } from \"./styleOriginalValues\";\nimport { STYLE_TOKEN_PROVENANCE_KEY, getStyleTokenProvenance, setStyleTokenProvenance } from \"./styleProvenance\";\nimport { transformsToString } from \"./transformsToString\";\n\nconst shouldTrackStyleTokenProvenance = process.env.NODE_ENV === \"development\" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === \"1\";\nconst validComponentClassName = /^[A-Za-z_][A-Za-z0-9_-]*$/;\nfunction compoundMatcherMatches(expected, actual) {\n\tif (Array.isArray(expected)) return expected.some((value) => Object.is(value, actual));\n\treturn Object.is(expected, actual);\n}\nfunction compoundVariantMatches(compoundVariant, props) {\n\tfor (const key in compoundVariant) {\n\t\tif (key === \"style\") continue;\n\t\tif (!compoundMatcherMatches(compoundVariant[key], props[key])) return false;\n\t}\n\treturn true;\n}\nconst styledDefaultsCache = /* @__PURE__ */ new WeakMap();\nfunction getStyledDefaults(staticConfig) {\n\tlet entries = styledDefaultsCache.get(staticConfig);\n\tif (entries === void 0) {\n\t\tentries = null;\n\t\tconst defaults = staticConfig.defaultProps;\n\t\tif (defaults) for (const key in defaults) (entries ||= []).push([key, defaults[key]]);\n\t\tstyledDefaultsCache.set(staticConfig, entries);\n\t}\n\treturn entries;\n}\nfunction contributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute) {\n\tif (!styledDefaults) return;\n\tfor (let index = 0; index < styledDefaults.length; index++) {\n\t\tconst key = styledDefaults[index][0];\n\t\tconst styledValue = styledDefaults[index][1];\n\t\tconst propValue = processedProps[key];\n\t\tif (!(key in stylePropsAll) && !(key in shorthands)) continue;\n\t\tif (propValue !== void 0 && propValue !== styledValue && (typeof styledValue === \"string\" && styledValue.includes(\":\") || typeof propValue === \"string\" && propValue.includes(\":\"))) contribute(key, styledValue);\n\t}\n}\nfunction forEachPropInForwardOrder(processedProps, staticConfig, shorthands, contribute) {\n\tconst processedBaseStyle = staticConfig.baseStyle;\n\tconst compoundVariants = staticConfig.compoundVariants;\n\tconst styledDefaults = getStyledDefaults(staticConfig);\n\tif (!compoundVariants?.length) {\n\t\tif (processedBaseStyle) for (const key in processedBaseStyle) contribute(key, processedBaseStyle[key]);\n\t\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute);\n\t\tfor (const key in processedProps) contribute(key, processedProps[key]);\n\t\treturn;\n\t}\n\tconst propEntries = Object.entries(processedProps);\n\tconst orderedEntries = processedBaseStyle ? Object.entries(processedBaseStyle) : [];\n\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, (k, v) => orderedEntries.push([k, v]));\n\tconst compoundsByAnchor = /* @__PURE__ */ new Map();\n\tfor (const compoundVariant of compoundVariants) {\n\t\tif (!compoundVariantMatches(compoundVariant, processedProps)) continue;\n\t\tconst { style } = compoundVariant;\n\t\tif (!isPlainObject(style)) continue;\n\t\tlet anchor = -1;\n\t\tfor (const selectorKey in compoundVariant) {\n\t\t\tif (selectorKey === \"style\") continue;\n\t\t\tfor (let index = propEntries.length - 1; index >= 0; index--) if (propEntries[index][0] === selectorKey) {\n\t\t\t\tanchor = Math.max(anchor, index);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tconst entries = compoundsByAnchor.get(anchor) || [];\n\t\tfor (const key in style) entries.push([key, style[key]]);\n\t\tcompoundsByAnchor.set(anchor, entries);\n\t}\n\tfor (let index = 0; index < orderedEntries.length; index++) contribute(orderedEntries[index][0], orderedEntries[index][1]);\n\tconst beforeProps = compoundsByAnchor.get(-1);\n\tif (beforeProps) for (let index = 0; index < beforeProps.length; index++) contribute(beforeProps[index][0], beforeProps[index][1]);\n\tfor (let index = 0; index < propEntries.length; index++) {\n\t\tcontribute(propEntries[index][0], propEntries[index][1]);\n\t\tconst compounds = compoundsByAnchor.get(index);\n\t\tif (compounds) for (let i = 0; i < compounds.length; i++) contribute(compounds[i][0], compounds[i][1]);\n\t}\n}\nfunction isValidStyleKey(key, validStyles, accept) {\n\treturn Boolean(key in validStyles || isWeb && (key === \"transitionProperty\" || key === \"transitionDuration\" || key === \"transitionTimingFunction\" || key === \"transitionDelay\" || key === \"transitionBehavior\") || accept && key in accept);\n}\nconst getSplitStyles = (props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver) => {\n\tconst conf = getConfig();\n\tif (staticConfig.styleFrontend?.normalizeStaticConfig) staticConfig = staticConfig.styleFrontend.normalizeStaticConfig(staticConfig, conf);\n\tconst driver = animationDriver || componentContext?.animationDriver || conf.animations;\n\tconst resolvedDriver = driver?.isStub ? null : driver;\n\tif (props.passThrough) return null;\n\tif (isWeb && styleProps.isAnimated && driver?.isReactNative && !styleProps.noNormalize) styleProps.noNormalize = \"values\";\n\tconst { shorthands } = conf;\n\tconst { isHOC, isText, isInput, variants, isReactNative, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;\n\tconst viewProps = {};\n\tconst mediaState$1 = styleProps.mediaState || mediaState;\n\tlet shouldDoClasses = acceptsClassName && isWeb && !styleProps.noClass;\n\tconst rulesToInsert = {};\n\tconst classNames = {};\n\tprops.space;\n\tlet hasMedia = false;\n\tlet pseudoGroups;\n\tlet mediaGroups;\n\tlet className = staticConfig.passthroughClassName || \"\";\n\tif (className) shouldDoClasses = false;\n\tconst validStyles$1 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? stylePropsText : validStyles);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-setup`;\n\tconst styleState = {\n\t\tclassNames,\n\t\tconf,\n\t\tprops,\n\t\tstyleProps,\n\t\tcomponentState,\n\t\tstaticConfig,\n\t\tstyle: null,\n\t\ttheme,\n\t\tviewProps,\n\t\tcontext: componentContext,\n\t\tdebug,\n\t\tflatRulesToInsert: rulesToInsert,\n\t\tflatShouldDoClasses: shouldDoClasses,\n\t\tflatThemeName: themeName,\n\t\tflatMediaState: mediaState$1,\n\t\tflatGroupContext: groupContext,\n\t\tanimationDriver: resolvedDriver\n\t};\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`style-state`;\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\" && isClient) {\n\t\tif (isDevTools) {\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles 👇\");\n\t\t\tlog({\n\t\t\t\tprops,\n\t\t\t\tstaticConfig,\n\t\t\t\tshouldDoClasses,\n\t\t\t\tstyleProps,\n\t\t\t\trulesToInsert,\n\t\t\t\tcomponentState,\n\t\t\t\tstyleState,\n\t\t\t\ttheme: { ...theme }\n\t\t\t});\n\t\t}\n\t}\n\tconst { asChild } = props;\n\tconst { accept, neverSkipProps } = staticConfig;\n\tconst { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps;\n\tlet processedProps;\n\tconst styleFrontend = staticConfig.styleFrontend;\n\tif (styleFrontend && !props[STYLE_FRONTEND_PREPROCESSED]) processedProps = styleFrontend.preprocessProps(props, conf);\n\telse processedProps = props;\n\tconst { webContainerType } = conf.settings;\n\tconst parentVariants = parentStaticConfig?.variants;\n\tconst mergeStylePropAtCurrentPosition = (styleProp) => {\n\t\tif (styleProps.noMergeStyle || !styleProp) return;\n\t\tif (isHOC) {\n\t\t\tviewProps.style = normalizeStyle(styleProp);\n\t\t\treturn;\n\t\t}\n\t\tconst isArray = Array.isArray(styleProp);\n\t\tconst length = isArray ? styleProp.length : 1;\n\t\tfor (let index = 0; index < length; index++) {\n\t\t\tconst style = isArray ? styleProp[index] : styleProp;\n\t\t\tif (!style) continue;\n\t\t\tif (style[\"$$css\"]) {\n\t\t\t\tfor (const key in style) clearDirectStyle(styleState, key);\n\t\t\t\tObject.assign(styleState.classNames, style);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst normalized = normalizeStyle(style);\n\t\t\tconst styleOriginals = shouldTrackStyleTokenProvenance ? styleOriginalValues.get(style) : void 0;\n\t\t\tfor (const key in normalized) {\n\t\t\t\tif (normalized[key] == null) continue;\n\t\t\t\tcontributeStyleValue(styleState, key, normalized[key], mergeStyle, styleOriginals?.[key]);\n\t\t\t}\n\t\t}\n\t};\n\tconst flushForwardStylesToClasses = () => {\n\t\tif (!shouldDoClasses) return;\n\t\tflushDirectStyles(styleState, true);\n\t};\n\tconst contributeProp = (keyOg, valOg) => {\n\t\tlet keyInit = keyOg;\n\t\tlet valInit = valOg;\n\t\tif (styleFrontend && keyInit.startsWith(STYLE_FRONTEND_PASSTHROUGH_PREFIX)) keyInit = \"className\";\n\t\tif (keyInit === \"children\") {\n\t\t\tviewProps[keyInit] = valInit;\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"ref\") return;\n\t\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`before-prop-${keyInit}`;\n\t\tif (process.env.NODE_ENV === \"test\" && keyInit === \"jestAnimatedStyle\") return;\n\t\tif (accept) {\n\t\t\tconst accepted = accept[keyInit];\n\t\t\tif ((accepted === \"style\" || accepted === \"textStyle\") && valInit && typeof valInit === \"object\") {\n\t\t\t\tviewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!disableExpandShorthands) {\n\t\t\tif (keyInit in shorthands) keyInit = shorthands[keyInit];\n\t\t}\n\t\tif (keyInit === \"className\") {\n\t\t\tif (typeof valInit === \"string\" && valInit) {\n\t\t\t\tclassName = `${className} ${valInit}`.trim();\n\t\t\t\tif (styleFrontend) {\n\t\t\t\t\tflushForwardStylesToClasses();\n\t\t\t\t\tshouldDoClasses = false;\n\t\t\t\t\tstyleState.flatShouldDoClasses = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"style\") {\n\t\t\tmergeStylePropAtCurrentPosition(valInit);\n\t\t\treturn;\n\t\t}\n\t\tif (asChild) {\n\t\t\tconst defaults = getDefaultProps(staticConfig);\n\t\t\tif (defaults) {\n\t\t\t\tconst defaultVal = defaults[keyOg] ?? defaults[keyInit];\n\t\t\t\tif (defaultVal !== void 0 && valInit === defaultVal) return;\n\t\t\t}\n\t\t}\n\t\tif (keyInit in skipProps && !noSkip && !isHOC && !neverSkipProps?.[keyInit]) {\n\t\t\tif (keyInit === \"group\") {\n\t\t\t\tconst identifier = `t_group_${valInit}`;\n\t\t\t\taddStyleToInsertRules(rulesToInsert, [\n\t\t\t\t\t\"container\",\n\t\t\t\t\tvoid 0,\n\t\t\t\t\tidentifier,\n\t\t\t\t\tvoid 0,\n\t\t\t\t\t[`.${identifier} { container-name: ${valInit}; container-type: ${webContainerType || \"inline-size\"}; }`]\n\t\t\t\t]);\n\t\t\t}\n\t\t\tif (keyInit === \"container\" && valInit) addStyleToInsertRules(rulesToInsert, [\n\t\t\t\t\"container\",\n\t\t\t\tvoid 0,\n\t\t\t\t\"t_container\",\n\t\t\t\tvoid 0,\n\t\t\t\t[`.t_container { container-type: ${webContainerType || \"inline-size\"}; }`]\n\t\t\t]);\n\t\t\tif (keyInit === \"transition\" && typeof valInit === \"string\") {\n\t\t\t\tconst animationConfig = driver?.animations?.[valInit];\n\t\t\t\tif (animationConfig && driver?.outputStyle === \"css\" && process.env.IS_STATIC === \"is_static\") valInit = `all ${animationConfig}`;\n\t\t\t\telse if (animationConfig) return;\n\t\t\t} else return;\n\t\t}\n\t\tif (isFrontendProgram(valInit)) {\n\t\t\tif (isValidStyleKey(valInit.property, validStyles$1, accept)) contributeFrontendProgram(styleState, valInit, mergeStyle);\n\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${valInit.property}\" is not a valid style on this component; the frontend value is dropped.`);\n\t\t\treturn;\n\t\t}\n\t\tlet isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles$1, accept);\n\t\tif (isWeb) {\n\t\t\tif ((staticConfig.isReactNative || styleProps.isAnimated && driver?.isReactNative && !driver.View?.acceptRenderProp) && keyInit.startsWith(\"data-\")) {\n\t\t\t\tkeyInit = keyInit.replace(\"data-\", \"\");\n\t\t\t\tviewProps[\"dataSet\"] ||= {};\n\t\t\t\tviewProps[\"dataSet\"][keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (keyInit.startsWith(\"data-\")) {\n\t\t\t\tviewProps[keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!noExpand) {\n\t\t\tif (keyInit === \"disabled\" && valInit === true) {\n\t\t\t\tviewProps[\"aria-disabled\"] = true;\n\t\t\t\tif (isInput || elementType === \"button\" || elementType === \"form\" || elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") viewProps.disabled = true;\n\t\t\t\tif (!variants?.disabled) return;\n\t\t\t}\n\t\t\tif (keyInit === \"testID\") {\n\t\t\t\tif (isReactNative) viewProps.testID = valInit;\n\t\t\t\telse {\n\t\t\t\t\tviewProps[\"data-testid\"] = valInit;\n\t\t\t\t\tif ((styleProps.isAnimated || staticConfig.isHOC) && driver?.isReactNative) viewProps.testID = valInit;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (keyInit === \"id\") {\n\t\t\t\tviewProps.id = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tlet isVariant = !isValidStyleKeyInit && variants && keyInit in variants;\n\t\tconst isStyleLikeKey = isValidStyleKeyInit || isVariant;\n\t\tconst isStyleProp = isValidStyleKeyInit || isVariant && !noExpand;\n\t\tif (isStyleProp && (asChild === \"except-style\" || asChild === \"except-style-web\")) return;\n\t\tconst shouldPassProp = !isStyleProp && isHOC || isHOC && parentVariants && keyInit in parentVariants || inlineProps?.has(keyInit);\n\t\tconst parentVariant = parentVariants?.[keyInit];\n\t\tconst isHOCShouldPassThrough = Boolean(isHOC && (isValidStyleKeyInit || parentVariant || keyInit in skipProps));\n\t\tconst shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\tconsole.groupCollapsed(` \\u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : \"\"} ${shouldPassThrough ? \"(pass)\" : \"\"}`);\n\t\t\tlog({\n\t\t\t\tisVariant,\n\t\t\t\tvalInit,\n\t\t\t\tshouldPassProp\n\t\t\t});\n\t\t\tif (isClient) log({\n\t\t\t\tvariants,\n\t\t\t\tvariant: variants?.[keyInit],\n\t\t\t\tisVariant,\n\t\t\t\tisHOCShouldPassThrough,\n\t\t\t\tparentStaticConfig\n\t\t\t});\n\t\t}\n\t\tif (shouldPassThrough) {\n\t\t\tpassDownProp(viewProps, keyInit, valInit);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\tif (!isVariant) return;\n\t\t}\n\t\tif (!noSkip && !neverSkipProps?.[keyInit]) {\n\t\t\tif (keyInit in skipProps && !(keyInit === \"transition\" && typeof valInit === \"string\" && !driver?.animations?.[valInit])) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (isText || isInput) {\n\t\t\tif (valInit && (keyInit === \"fontFamily\" || keyInit === shorthands[\"fontFamily\"]) && valInit in conf.fontsParsed) styleState.fontFamily = valInit;\n\t\t}\n\t\tconst disablePropMap = !isStyleLikeKey;\n\t\tif (!isHOC && isValidStyleKeyInit && valInit != null && !(variants && keyInit in variants) && !(accept && keyInit in accept) && !(styledContext && keyInit in styledContext)) {\n\t\t\tcontributeStyleValue(styleState, keyInit, valInit, mergeStyle);\n\t\t\treturn;\n\t\t}\n\t\tpropMapper(keyInit, valInit, styleState, disablePropMap, (key, val, originalVal, conditionSource) => {\n\t\t\tconst isStyledContextProp = styledContext && key in styledContext;\n\t\t\tif (key === \"className\") {\n\t\t\t\tif (typeof val === \"string\" && val) className = `${className} ${val}`.trim();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isHOC && disablePropMap && !isStyledContextProp) {\n\t\t\t\tif (key in stylePropsAll && !isValidStyleKey(key, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key] = val;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\tconsole.groupCollapsed(\" 💠 expanded\", keyInit, \"=>\", key);\n\t\t\t\tlog(val);\n\t\t\t\tconsole.groupEnd();\n\t\t\t}\n\t\t\tif (val == null) return;\n\t\t\tif (accept && key in accept) {\n\t\t\t\tviewProps[key] = val;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst isHostStyleKey = !isHOC && isValidStyleKey(key, validStyles$1, accept) || false;\n\t\t\tconst isContextProgramKey = !isHOC && Boolean(isStyledContextProp);\n\t\t\tif (conditionSource !== void 0) {\n\t\t\t\tif (isHostStyleKey || isContextProgramKey) contributeVariantClauseValue(styleState, key, val, conditionSource, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\telse if (isHOC) {\n\t\t\t\t\tconst appended = appendFlatClause(viewProps[key], conditionSource, val);\n\t\t\t\t\tif (appended !== void 0) viewProps[key] = appended;\n\t\t\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${key}\" is not string-representable; dropping the clause`);\n\t\t\t\t} else if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is not a valid style on this component; the conditional variant value is dropped.`);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isHostStyleKey || isContextProgramKey) {\n\t\t\t\tcontributeStyleValue(styleState, key, val, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tisVariant = variants && key in variants;\n\t\t\tif (inlineProps?.has(key)) viewProps[key] = props[key] ?? val;\n\t\t\tif (isHOC && Boolean(parentStaticConfig?.variants?.[keyInit])) {\n\t\t\t\tpassDownProp(viewProps, key, val);\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\t\tconsole.groupCollapsed(` - passing down prop ${key}`);\n\t\t\t\t\tlog({\n\t\t\t\t\t\tval,\n\t\t\t\t\t\tafter: { ...viewProps[key] }\n\t\t\t\t\t});\n\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isVariant) {\n\t\t\t\tif (isStyledContextProp) return;\n\t\t\t\tif (key in stylePropsAll && !isValidStyleKey(key, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key] = val;\n\t\t\t}\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\ttry {\n\t\t\t\tlog(` \\u2714\\uFE0F expand complete`, keyInit);\n\t\t\t\tlog(\"style\", { ...styleState.style });\n\t\t\t\tlog(\"viewProps\", { ...viewProps });\n\t\t\t\tlog(\"transforms\", { ...styleState.flatTransforms });\n\t\t\t} catch {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t};\n\tforEachPropInForwardOrder(processedProps, staticConfig, shorthands, contributeProp);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-propsend`;\n\tconst conditionalStates = styleState.flatStateKeys || null;\n\tconst usesSafeArea = !!styleState.flatUsesSafeArea;\n\tif (styleState.flatMediaKeys?.size) {\n\t\tif (!hasMedia) hasMedia = /* @__PURE__ */ new Set();\n\t\tif (typeof hasMedia !== \"boolean\") for (const key of styleState.flatMediaKeys) hasMedia.add(key);\n\t}\n\tif (styleState.flatGroupKeys?.size) {\n\t\tpseudoGroups ||= /* @__PURE__ */ new Set();\n\t\tfor (const key of styleState.flatGroupKeys) pseudoGroups.add(key);\n\t}\n\tif (styleState.flatGroupMedia?.size) {\n\t\tmediaGroups ||= /* @__PURE__ */ new Set();\n\t\tfor (const key of styleState.flatGroupMedia) mediaGroups.add(key);\n\t}\n\tconst effectiveTransition = styleState.style?.transition;\n\tif (effectiveTransition != null && styleState.style && driver?.outputStyle !== \"css\") delete styleState.style.transition;\n\tif ((styleState.style?.containerName != null || classNames.containerName) && !(styleState.style && \"containerType\" in styleState.style) && !classNames.containerType) contributeStyleValue(styleState, \"containerType\", webContainerType || \"inline-size\", mergeStyle);\n\tif (!(styleProps.noNormalize === false)) {\n\t\tif (styleState.style) {\n\t\t\tfixStyles(styleState.style);\n\t\t\tif (!styleProps.noExpand && !styleProps.noMergeStyle) {\n\t\t\t\tif (isWeb && (isReactNative ? driver?.inputStyle !== \"css\" : true)) styleToCSS(styleState.style);\n\t\t\t}\n\t\t}\n\t\tif (styleState.flatTransforms) {\n\t\t\tstyleState.style ||= {};\n\t\t\tmergeFlatTransforms(styleState.style, styleState.flatTransforms);\n\t\t}\n\t\tif (parentSplitStyles) {\n\t\t\tif (shouldDoClasses) for (const key in parentSplitStyles.classNames) {\n\t\t\t\tconst val = parentSplitStyles.classNames[key];\n\t\t\t\tif (styleState.style && key in styleState.style || key in classNames) continue;\n\t\t\t\tclassNames[key] = val;\n\t\t\t}\n\t\t\tif (!shouldDoClasses) for (const key in parentSplitStyles.style) {\n\t\t\t\tif (key in classNames || styleState.style && key in styleState.style) continue;\n\t\t\t\tstyleState.style ||= {};\n\t\t\t\tstyleState.style[key] = parentSplitStyles.style[key];\n\t\t\t}\n\t\t}\n\t}\n\tif (!styleProps.noNormalize && !staticConfig.isReactNative && !staticConfig.isHOC && (!styleProps.isAnimated || driver?.inputStyle === \"css\") && Array.isArray(styleState.style?.transform)) styleState.style.transform = transformsToString(styleState.style.transform);\n\tflushDirectStyles(styleState);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-pre-result`;\n\tif (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {\n\t\tconst provenance = {};\n\t\tlet hasProvenance = false;\n\t\tfor (const key in styleState.tokenProvenance) {\n\t\t\tprovenance[key] = {\n\t\t\t\ttoken: styleState.tokenProvenance[key],\n\t\t\t\ttheme: themeName\n\t\t\t};\n\t\t\thasProvenance = true;\n\t\t}\n\t\tif (hasProvenance) setStyleTokenProvenance(styleState.style, provenance);\n\t}\n\tconst result = {\n\t\thasMedia,\n\t\tfontFamily: styleState.fontFamily,\n\t\tviewProps,\n\t\tstyle: styleState.style,\n\t\tclassNames,\n\t\trulesToInsert,\n\t\tpseudoGroups,\n\t\tmediaGroups,\n\t\toverriddenContextProps: styleState.overriddenContextProps\n\t};\n\tif (effectiveTransition != null) result.effectiveTransition = effectiveTransition;\n\tif (conditionalStates) result.programStates = conditionalStates;\n\tif (usesSafeArea) result.usesSafeArea = true;\n\tif (getDirectDynamicThemeAccess(styleState)) result.dynamicThemeAccess = true;\n\tif (styleState.flatEnterKeys || styleState.flatExitKeys) {\n\t\tconst effectiveKeys = (keys) => {\n\t\t\tif (!keys) return;\n\t\t\tconst out = /* @__PURE__ */ new Set();\n\t\t\tfor (const key of keys) out.add(key === \"--t-x\" || key === \"--t-y\" ? \"translate\" : key === \"--t-scale-x\" || key === \"--t-scale-y\" ? \"scale\" : key);\n\t\t\treturn out;\n\t\t};\n\t\tresult.programLifecycleStyleKeys = {\n\t\t\tenter: effectiveKeys(styleState.flatEnterKeys),\n\t\t\texit: effectiveKeys(styleState.flatExitKeys)\n\t\t};\n\t}\n\tconst asChildExceptStyleLike = asChild === \"except-style\" || asChild === \"except-style-web\";\n\tif (!styleProps.noMergeStyle) {\n\t\tif (!asChildExceptStyleLike) {\n\t\t\tconst style = styleState.style;\n\t\t\t{\n\t\t\t\tconst fontFamily = isText || isInput ? styleState.fontFamily : null;\n\t\t\t\tconst fontFamilyClassName = fontFamily ? `font_${fontFamily}` : \"\";\n\t\t\t\tconst groupClassName = props.group ? `t_group_${props.group}` : \"\";\n\t\t\t\tconst containerClassName = props.container ? \"t_container\" : \"\";\n\t\t\t\tconst displayNameClassName = props.asChild || !styleProps.displayName || styleProps.displayName === \"Text\" || styleProps.displayName === \"View\" || !validComponentClassName.test(styleProps.displayName) ? \"\" : `is_${styleProps.displayName}`;\n\t\t\t\tlet classList = [];\n\t\t\t\tif (displayNameClassName) classList.push(displayNameClassName);\n\t\t\t\tif (!isText) classList.push(\"is_View\");\n\t\t\t\telse classList.push(\"is_Text\");\n\t\t\t\tif (fontFamilyClassName) classList.push(fontFamilyClassName);\n\t\t\t\tif (classNames) for (const key in classNames) classList.push(classNames[key]);\n\t\t\t\tif (groupClassName) classList.push(groupClassName);\n\t\t\t\tif (containerClassName) classList.push(containerClassName);\n\t\t\t\tif (className) classList.push(className);\n\t\t\t\tconst finalClassName = classList.join(\" \");\n\t\t\t\tconst needsCssStyles = isReactNative || styleProps.isAnimated && driver?.isReactNative;\n\t\t\t\tif (styleProps.isAnimated && driver?.inputStyle === \"css\") {\n\t\t\t\t\tviewProps.className = finalClassName;\n\t\t\t\t\tif (style) viewProps.style = style;\n\t\t\t\t} else if (needsCssStyles) {\n\t\t\t\t\tlet cnStyles;\n\t\t\t\t\tfor (const name of finalClassName.split(\" \")) {\n\t\t\t\t\t\tcnStyles ||= { $$css: true };\n\t\t\t\t\t\tcnStyles[name] = name;\n\t\t\t\t\t}\n\t\t\t\t\tviewProps.style = cnStyles ? [...Array.isArray(style) ? style : [style], cnStyles] : [style];\n\t\t\t\t} else {\n\t\t\t\t\tif (finalClassName) viewProps.className = finalClassName;\n\t\t\t\t\tif (style) viewProps.style = style;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tif (isClient && isDevTools) {\n\t\t\tconsole.groupEnd();\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles ===>\");\n\t\t\ttry {\n\t\t\t\tconst logs = {\n\t\t\t\t\t...props.__tamaguiStyleDebugReceipt && { receipt: props.__tamaguiStyleDebugReceipt },\n\t\t\t\t\t...result,\n\t\t\t\t\tclassName,\n\t\t\t\t\tcomponentState,\n\t\t\t\t\tviewProps,\n\t\t\t\t\trulesToInsert,\n\t\t\t\t\tparentSplitStyles\n\t\t\t\t};\n\t\t\t\tfor (const key in logs) log(key, logs[key]);\n\t\t\t} catch {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-done`;\n\treturn result;\n};\nfunction mergeFlatTransforms(target, flatTransforms) {\n\tconst transform = [];\n\tif (\"x\" in flatTransforms) transform.push({ translateX: flatTransforms.x });\n\tif (\"y\" in flatTransforms) transform.push({ translateY: flatTransforms.y });\n\tif (\"rotate\" in flatTransforms) transform.push({ rotate: flatTransforms.rotate });\n\tconst hasScaleX = \"scaleX\" in flatTransforms;\n\tconst hasScaleY = \"scaleY\" in flatTransforms;\n\tif (hasScaleX && hasScaleY && Object.is(flatTransforms.scaleX, flatTransforms.scaleY)) transform.push({ scale: flatTransforms.scaleX });\n\telse {\n\t\tif (hasScaleX) transform.push({ scaleX: flatTransforms.scaleX });\n\t\tif (hasScaleY) transform.push({ scaleY: flatTransforms.scaleY });\n\t\tif (!hasScaleX && !hasScaleY && \"scale\" in flatTransforms) transform.push({ scale: flatTransforms.scale });\n\t}\n\tconst keys = [];\n\tfor (const key in flatTransforms) if (key !== \"x\" && key !== \"y\" && key !== \"rotate\" && key !== \"scale\" && key !== \"scaleX\" && key !== \"scaleY\") keys.push(key);\n\tkeys.sort(sortString);\n\tfor (const key of keys) transform.push({ [mapTransformKeys[key] || key]: flatTransforms[key] });\n\tif (Array.isArray(target.transform)) transform.push(...target.transform);\n\ttarget.transform = transform;\n}\nfunction mergeStyle(styleState, key, val, _importance, disableNormalize = false, originalVal) {\n\tconst { viewProps, styleProps, staticConfig } = styleState;\n\tconst contextConfig = staticConfig.context || staticConfig.parentStaticConfig?.context;\n\tconst contextProps = contextConfig?.props;\n\tconst inheritedContextPropKeys = !staticConfig.context || staticConfig.context === staticConfig.parentStaticConfig?.context ? staticConfig.parentStaticConfig?.contextProps : void 0;\n\tconst contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\tif (contextProps && key in contextProps || contextPropKeys?.includes(key) || contextConfig?.propKeys?.includes(key)) {\n\t\tstyleState.overriddenContextProps ||= {};\n\t\tconst originalFromState = styleState.originalContextPropValues?.[key];\n\t\tstyleState.overriddenContextProps[key] = originalVal ?? originalFromState ?? val;\n\t}\n\tif (key in stylePropsTransform) {\n\t\tstyleState.flatTransforms ||= {};\n\t\tstyleState.flatTransforms[key] = val;\n\t} else {\n\t\tconst out = isWeb && !disableNormalize && !styleProps.noNormalize ? normalizeValueWithProperty(val, key) : val;\n\t\tif (staticConfig.accept && key in staticConfig.accept) viewProps[key] = out;\n\t\telse {\n\t\t\tstyleState.style ||= {};\n\t\t\tstyleState.style[key] = key === \"transform\" && Array.isArray(out) ? [...out] : out;\n\t\t\tif (shouldTrackStyleTokenProvenance) recordStyleTokenProvenance(styleState, key, originalVal);\n\t\t}\n\t}\n}\nfunction recordStyleTokenProvenance(styleState, key, originalVal) {\n\tlet tokenName = typeof originalVal === \"string\" ? originalVal : \"\";\n\tif (tokenName) {\n\t\tconst slash = tokenName.lastIndexOf(\"/\");\n\t\tconst opacity = slash === -1 ? NaN : Number(tokenName.slice(slash + 1));\n\t\tif (Number.isInteger(opacity) && opacity >= 0 && opacity <= 100) tokenName = tokenName.slice(0, slash);\n\t}\n\tif (tokenName !== \"\" && (Object.prototype.hasOwnProperty.call(styleState.theme, tokenName) || Object.prototype.hasOwnProperty.call(styleState.conf.themes?.[styleState.flatThemeName || \"\"] || {}, tokenName) || Object.values(styleState.conf.tokensParsed).some((category) => Object.prototype.hasOwnProperty.call(category, tokenName)))) (styleState.tokenProvenance ||= {})[key] = originalVal;\n\telse if (styleState.tokenProvenance && key in styleState.tokenProvenance) delete styleState.tokenProvenance[key];\n}\nconst getSubStyle = (styleState, _subKey, styleIn, avoidMergeTransform) => {\n\tconst { staticConfig, conf, styleProps } = styleState;\n\tconst styleOut = {};\n\tlet originalValues;\n\tconst styleInOriginalValues = styleOriginalValues.get(styleIn);\n\tconst parentProps = styleState.props;\n\tstyleState.props = Object.create(parentProps, Object.getOwnPropertyDescriptors(styleIn));\n\ttry {\n\t\tfor (let key in styleIn) {\n\t\t\tconst val = styleIn[key];\n\t\t\tkey = conf.shorthands[key] || key;\n\t\t\tif (!staticConfig.isHOC && key in skipProps && !styleProps.noSkip) continue;\n\t\t\tpropMapper(key, val, styleState, false, (skey, sval, originalVal) => {\n\t\t\t\tconst trackedOriginalVal = styleInOriginalValues?.[skey] ?? originalVal;\n\t\t\t\tif (trackedOriginalVal !== void 0) {\n\t\t\t\t\toriginalValues ||= {};\n\t\t\t\t\toriginalValues[skey] = trackedOriginalVal;\n\t\t\t\t}\n\t\t\t\tif (!avoidMergeTransform && skey in stylePropsTransform) mergeTransform(styleOut, skey, sval);\n\t\t\t\telse styleOut[skey] = styleProps.noNormalize ? sval : normalizeValueWithProperty(sval, key);\n\t\t\t});\n\t\t}\n\t} finally {\n\t\tstyleState.props = parentProps;\n\t}\n\tif (!avoidMergeTransform) {\n\t\tconst parentTransform = styleState.style?.transform;\n\t\tconst flatTransforms = styleState.flatTransforms;\n\t\tconst styleOutTransform = styleOut.transform;\n\t\tif (Array.isArray(styleOutTransform) && styleOutTransform.length) {\n\t\t\tconst len = styleOutTransform.length;\n\t\t\tif (Array.isArray(parentTransform)) {\n\t\t\t\tconst merged = [];\n\t\t\t\touter: for (let i = 0; i < parentTransform.length; i++) {\n\t\t\t\t\tconst pt = parentTransform[i];\n\t\t\t\t\tfor (const pk in pt) {\n\t\t\t\t\t\tfor (let j = 0; j < len; j++) for (const sk in styleOutTransform[j]) {\n\t\t\t\t\t\t\tif (pk === sk) continue outer;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmerged.push(pt);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (let i = 0; i < len; i++) merged.push(styleOutTransform[i]);\n\t\t\t\tstyleOut.transform = merged;\n\t\t\t}\n\t\t\tif (flatTransforms) outer: for (const fk in flatTransforms) {\n\t\t\t\tconst ck = fk === \"x\" ? \"translateX\" : fk === \"y\" ? \"translateY\" : fk;\n\t\t\t\tfor (let j = 0; j < len; j++) for (const sk in styleOutTransform[j]) {\n\t\t\t\t\tif (ck === sk) continue outer;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmergeTransform(styleOut, fk, flatTransforms[fk]);\n\t\t\t}\n\t\t} else if (flatTransforms) mergeFlatTransforms(styleOut, flatTransforms);\n\t}\n\tif (!styleProps.noNormalize) fixStyles(styleOut);\n\tif (originalValues) styleOriginalValues.set(styleOut, originalValues);\n\treturn styleOut;\n};\nconst useInsertEffectCompat = isWeb ? React.useInsertionEffect || useIsomorphicLayoutEffect : () => {};\nconst useSplitStyles = (a, b, c, d, e, f, g, h, i, j, k, l, m) => {\n\t\"use no memo\";\n\tconst res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);\n\tuseInsertEffectCompat(() => {\n\t\tif (res) insertStyleRules(res.rulesToInsert);\n\t}, [res?.rulesToInsert]);\n\treturn res;\n};\nfunction addStyleToInsertRules(rulesToInsert, styleObject) {\n\t{\n\t\tconst identifier = styleObject[StyleObjectIdentifier];\n\t\tif (shouldInsertStyleRules(identifier)) {\n\t\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\t\trulesToInsert[identifier] = styleObject;\n\t\t}\n\t}\n}\nconst mergeTransform = (obj, key, val, backwards = false) => {\n\tif (typeof obj.transform === \"string\") return;\n\tobj.transform ||= [];\n\tobj.transform[backwards ? \"unshift\" : \"push\"]({ [mapTransformKeys[key] || key]: val });\n};\nconst mapTransformKeys = {\n\tx: \"translateX\",\n\ty: \"translateY\"\n};\nfunction passDownProp(viewProps, key, val) {\n\tviewProps[key] = val;\n}\nfunction normalizeStyle(style) {\n\tconst out = {};\n\tfor (const key in style) {\n\t\tconst val = style[key];\n\t\tif (key in stylePropsTransform) mergeTransform(out, key, val);\n\t\telse out[key] = normalizeValueWithProperty(val, key);\n\t}\n\tif (isWeb && Array.isArray(out.transform)) out.transform = transformsToString(out.transform);\n\tfixStyles(out);\n\treturn out;\n}\n\nexport { STYLE_TOKEN_PROVENANCE_KEY, getSplitStyles, getStyleTokenProvenance, getSubStyle, isValidStyleKey, styleOriginalValues, useSplit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,KAAK,KAAK,YAAY,UAAU;CAC5D,IAAI,OAAO,IAAI,cAAc,UAAU;CACvC,IAAI,cAAc,CAAC;CACnB,IAAI,UAAU,YAAY,YAAY,OAAO,CAAC,GAAG,iBAAiB,QAAQ,MAAM,IAAI,CAAC;AACtF;AACA,MAAM,mBAAmB;CACxB,GAAG;CACH,GAAG;AACJ;AACA,SAAS,aAAa,WAAW,KAAK,KAAK;CAC1C,UAAU,OAAO;AAClB;AACA,SAAS,eAAe,OAAO;CAC9B,MAAM,MAAM,CAAC;CACb,KAAK,MAAM,OAAO,OAAO;EACxB,MAAM,MAAM,MAAM;EAClB,IAAI,OAAO,qBAAqB,eAAe,KAAK,KAAK,GAAG;OACvD,IAAI,OAAO,2BAA2B,KAAK,GAAG;CACpD;CACA,IAAI,SAAS,MAAM,QAAQ,IAAI,SAAS,GAAG,IAAI,YAAY,mBAAmB,IAAI,SAAS;CAC3F,UAAU,GAAG;CACb,OAAO;AACR"}
|
|
1
|
+
{"version":3,"file":"getSplitStyles.js","names":[],"sources":["esm/helpers/getSplitStyles.js"],"sourcesContent":["import { isClient, isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { StyleObjectIdentifier, StyleObjectRules, stylePropsAll, stylePropsText, stylePropsTransform, validStyles } from \"@tamagui/helpers\";\nimport React from \"react\";\nimport { STYLE_FRONTEND_PASSTHROUGH_PREFIX, STYLE_FRONTEND_PREPROCESSED } from \"./styleFrontend\";\nimport { getConfig } from \"../config\";\nimport { isVariable } from \"../createVariable\";\nimport { isDevTools } from \"../constants/isDevTools\";\nimport { mediaState } from \"./mediaState\";\nimport { scanFlatValue } from \"@tamagui/style-grammar/runtime\";\nimport { fixStyles } from \"./expandStyles\";\nimport { styleToCSS } from \"./getCSSStylesAtomic\";\nimport { getDefaultProps } from \"./getDefaultProps\";\nimport { insertStyleRules, shouldInsertStyleRules, updateRules } from \"./insertStyleRule\";\nimport { isPlainObject } from \"./isObj\";\nimport { log } from \"./log\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { appendFlatClause, propMapper } from \"./propMapper\";\nimport { clearDirectStyle, contributeStyleValue, contributeVariantClauseValue, flushDirectStyles, getDirectDynamicThemeAccess, resolveClauseChain } from \"./directStyle\";\nimport { contributeFrontendProgram, isFrontendProgram } from \"./frontendProgram\";\nimport { skipProps } from \"./skipProps\";\nimport { sortString } from \"./sortString\";\nimport { styleOriginalValues } from \"./styleOriginalValues\";\nimport { STYLE_TOKEN_PROVENANCE_KEY, getStyleTokenProvenance, setStyleTokenProvenance } from \"./styleProvenance\";\nimport { transformsToString } from \"./transformsToString\";\n\nconst shouldTrackStyleTokenProvenance = process.env.NODE_ENV === \"development\" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === \"1\";\nconst validComponentClassName = /^[A-Za-z_][A-Za-z0-9_-]*$/;\nfunction compoundMatcherMatches(expected, actual) {\n\tif (Array.isArray(expected)) return expected.some((value) => Object.is(value, actual));\n\treturn Object.is(expected, actual);\n}\nfunction compoundMatcherMatchesPayload(expected, payload) {\n\tif (Array.isArray(expected)) return expected.some((value) => compoundMatcherMatchesPayload(value, payload));\n\treturn typeof expected === \"string\" ? expected === payload : String(expected) === payload;\n}\nconst compoundScanHandler = {\n\tsegment(ctx, start, end, isBase, valid, source, chainStart, chainEnd, chainValid) {\n\t\tif (!valid || start >= end) return;\n\t\tif (!compoundMatcherMatchesPayload(ctx[1], source.slice(start, end))) return;\n\t\tif (isBase) {\n\t\t\tctx[4] = true;\n\t\t\treturn;\n\t\t}\n\t\tif (!chainValid) return;\n\t\tconst chain = source.slice(chainStart, chainEnd);\n\t\tif (ctx[2](chain)) ctx[3].push(chain);\n\t},\n\tchain() {\n\t\treturn true;\n\t},\n\terror() {}\n};\nfunction matcherChains(expected, actual, isChain) {\n\tif (typeof actual === \"string\" && actual.indexOf(\":\") !== -1) {\n\t\tconst scan = [\n\t\t\tactual,\n\t\t\texpected,\n\t\t\tisChain,\n\t\t\t[],\n\t\t\tfalse\n\t\t];\n\t\tscanFlatValue(actual, compoundScanHandler, scan);\n\t\tif (scan[4]) return [\"\"];\n\t\treturn scan[3].length ? scan[3] : null;\n\t}\n\tif (actual && typeof actual === \"object\" && !Array.isArray(actual) && !isVariable(actual)) {\n\t\tlet conditional = Object.prototype.hasOwnProperty.call(actual, \"default\");\n\t\tif (!conditional) for (const key in actual) {\n\t\t\tconditional = key.length > 0 && isChain(key);\n\t\t\tbreak;\n\t\t}\n\t\tif (conditional) {\n\t\t\tconst chains = [];\n\t\t\tfor (const key in actual) {\n\t\t\t\tconst payload = actual[key];\n\t\t\t\tif (payload == null || !compoundMatcherMatches(expected, payload)) continue;\n\t\t\t\tif (key === \"default\") return [\"\"];\n\t\t\t\tif (isChain(key)) chains.push(key);\n\t\t\t}\n\t\t\treturn chains.length ? chains : null;\n\t\t}\n\t}\n\treturn compoundMatcherMatches(expected, actual) ? [\"\"] : null;\n}\nfunction isConditionalObjectValue(value, isChain) {\n\tif (Object.prototype.hasOwnProperty.call(value, \"default\")) return true;\n\tfor (const key in value) return key.length > 0 && isChain(key);\n\treturn false;\n}\nconst joinChains = (a, b) => {\n\tif (!a) return b;\n\tif (!b) return a;\n\tconst segments = a.split(\":\");\n\tfor (const segment of b.split(\":\")) if (!segments.includes(segment)) segments.push(segment);\n\treturn segments.join(\":\");\n};\nfunction compoundVariantMatchChains(compoundVariant, props, isChain) {\n\tlet chains = [\"\"];\n\tfor (const key in compoundVariant) {\n\t\tif (key === \"style\") continue;\n\t\tconst keyChains = matcherChains(compoundVariant[key], props[key], isChain);\n\t\tif (!keyChains) return null;\n\t\tconst next = [];\n\t\tfor (const a of chains) for (const b of keyChains) {\n\t\t\tconst joined = joinChains(a, b);\n\t\t\tif (!next.includes(joined)) next.push(joined);\n\t\t}\n\t\tchains = next;\n\t}\n\treturn chains;\n}\nconst styledDefaultsCache = /* @__PURE__ */ new WeakMap();\nfunction getStyledDefaults(staticConfig) {\n\tlet entries = styledDefaultsCache.get(staticConfig);\n\tif (entries === void 0) {\n\t\tentries = null;\n\t\tconst defaults = staticConfig.defaultProps;\n\t\tif (defaults) for (const key in defaults) (entries ||= []).push([key, defaults[key]]);\n\t\tstyledDefaultsCache.set(staticConfig, entries);\n\t}\n\treturn entries;\n}\nconst maybeStyleProgram = (value) => typeof value === \"string\" ? value.includes(\":\") : !!value && typeof value === \"object\" && !Array.isArray(value) && !isVariable(value);\nfunction contributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute) {\n\tif (!styledDefaults) return;\n\tfor (let index = 0; index < styledDefaults.length; index++) {\n\t\tconst key = styledDefaults[index][0];\n\t\tconst styledValue = styledDefaults[index][1];\n\t\tconst propValue = processedProps[key];\n\t\tif (!(key in stylePropsAll) && !(key in shorthands)) continue;\n\t\tif (propValue !== void 0 && propValue !== styledValue && (maybeStyleProgram(styledValue) || maybeStyleProgram(propValue))) contribute(key, styledValue);\n\t}\n}\nfunction forEachPropInForwardOrder(processedProps, staticConfig, shorthands, contribute, isChain) {\n\tconst processedBaseStyle = staticConfig.baseStyle;\n\tconst compoundVariants = staticConfig.compoundVariants;\n\tconst styledDefaults = getStyledDefaults(staticConfig);\n\tif (!compoundVariants?.length) {\n\t\tif (processedBaseStyle) for (const key in processedBaseStyle) contribute(key, processedBaseStyle[key]);\n\t\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute);\n\t\tfor (const key in processedProps) contribute(key, processedProps[key]);\n\t\treturn;\n\t}\n\tconst propEntries = Object.entries(processedProps);\n\tconst orderedEntries = processedBaseStyle ? Object.entries(processedBaseStyle) : [];\n\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, (k, v) => orderedEntries.push([k, v]));\n\tconst compoundsByAnchor = /* @__PURE__ */ new Map();\n\tfor (const compoundVariant of compoundVariants) {\n\t\tconst chains = compoundVariantMatchChains(compoundVariant, processedProps, isChain);\n\t\tif (!chains) continue;\n\t\tconst { style } = compoundVariant;\n\t\tif (!isPlainObject(style)) continue;\n\t\tlet anchor = -1;\n\t\tfor (const selectorKey in compoundVariant) {\n\t\t\tif (selectorKey === \"style\") continue;\n\t\t\tfor (let index = propEntries.length - 1; index >= 0; index--) if (propEntries[index][0] === selectorKey) {\n\t\t\t\tanchor = Math.max(anchor, index);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tconst entries = compoundsByAnchor.get(anchor) || [];\n\t\tfor (const key in style) {\n\t\t\tconst value = style[key];\n\t\t\tfor (const chain of chains) {\n\t\t\t\tif (!chain) {\n\t\t\t\t\tentries.push([key, value]);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (value && typeof value === \"object\" && !Array.isArray(value) && !isVariable(value) && isConditionalObjectValue(value, isChain)) {\n\t\t\t\t\tconst composed = {};\n\t\t\t\t\tfor (const inner in value) composed[inner === \"default\" ? chain : `${chain}:${inner}`] = value[inner];\n\t\t\t\t\tentries.push([key, composed]);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (typeof value === \"string\" && value.includes(\":\")) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] compound variant \"${key}\" carries a clause string and matched conditionally; dropping it. use the object form in the compound style`);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tentries.push([key, { [chain]: value }]);\n\t\t\t}\n\t\t}\n\t\tcompoundsByAnchor.set(anchor, entries);\n\t}\n\tfor (let index = 0; index < orderedEntries.length; index++) contribute(orderedEntries[index][0], orderedEntries[index][1]);\n\tconst beforeProps = compoundsByAnchor.get(-1);\n\tif (beforeProps) for (let index = 0; index < beforeProps.length; index++) contribute(beforeProps[index][0], beforeProps[index][1]);\n\tfor (let index = 0; index < propEntries.length; index++) {\n\t\tcontribute(propEntries[index][0], propEntries[index][1]);\n\t\tconst compounds = compoundsByAnchor.get(index);\n\t\tif (compounds) for (let i = 0; i < compounds.length; i++) contribute(compounds[i][0], compounds[i][1]);\n\t}\n}\nfunction isValidStyleKey(key, validStyles, accept) {\n\treturn Boolean(key in validStyles || isWeb && (key === \"transitionProperty\" || key === \"transitionDuration\" || key === \"transitionTimingFunction\" || key === \"transitionDelay\" || key === \"transitionBehavior\") || accept && key in accept);\n}\nconst getSplitStyles = (props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver) => {\n\tconst conf = getConfig();\n\tif (staticConfig.styleFrontend?.normalizeStaticConfig) staticConfig = staticConfig.styleFrontend.normalizeStaticConfig(staticConfig, conf);\n\tconst driver = animationDriver || componentContext?.animationDriver || conf.animations;\n\tconst resolvedDriver = driver?.isStub ? null : driver;\n\tif (props.passThrough) return null;\n\tif (isWeb && styleProps.isAnimated && driver?.isReactNative && !styleProps.noNormalize) styleProps.noNormalize = \"values\";\n\tconst { shorthands } = conf;\n\tconst { isHOC, isText, isInput, variants, isReactNative, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;\n\tconst viewProps = {};\n\tconst mediaState$1 = styleProps.mediaState || mediaState;\n\tlet shouldDoClasses = acceptsClassName && isWeb && !styleProps.noClass;\n\tconst rulesToInsert = {};\n\tconst classNames = {};\n\tprops.space;\n\tlet hasMedia = false;\n\tlet pseudoGroups;\n\tlet mediaGroups;\n\tlet className = staticConfig.passthroughClassName || \"\";\n\tif (className) shouldDoClasses = false;\n\tconst validStyles$1 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? stylePropsText : validStyles);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-setup`;\n\tconst styleState = {\n\t\tclassNames,\n\t\tconf,\n\t\tprops,\n\t\tstyleProps,\n\t\tcomponentState,\n\t\tstaticConfig,\n\t\tstyle: null,\n\t\ttheme,\n\t\tviewProps,\n\t\tcontext: componentContext,\n\t\tdebug,\n\t\tflatRulesToInsert: rulesToInsert,\n\t\tflatShouldDoClasses: shouldDoClasses,\n\t\tflatThemeName: themeName,\n\t\tflatMediaState: mediaState$1,\n\t\tflatGroupContext: groupContext,\n\t\tanimationDriver: resolvedDriver\n\t};\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`style-state`;\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\" && isClient) {\n\t\tif (isDevTools) {\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles 👇\");\n\t\t\tlog({\n\t\t\t\tprops,\n\t\t\t\tstaticConfig,\n\t\t\t\tshouldDoClasses,\n\t\t\t\tstyleProps,\n\t\t\t\trulesToInsert,\n\t\t\t\tcomponentState,\n\t\t\t\tstyleState,\n\t\t\t\ttheme: { ...theme }\n\t\t\t});\n\t\t}\n\t}\n\tconst { asChild } = props;\n\tconst { accept, neverSkipProps } = staticConfig;\n\tconst { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps;\n\tlet processedProps;\n\tconst styleFrontend = staticConfig.styleFrontend;\n\tif (styleFrontend && !props[STYLE_FRONTEND_PREPROCESSED]) processedProps = styleFrontend.preprocessProps(props, conf);\n\telse processedProps = props;\n\tconst { webContainerType } = conf.settings;\n\tconst parentVariants = parentStaticConfig?.variants;\n\tconst mergeStylePropAtCurrentPosition = (styleProp) => {\n\t\tif (styleProps.noMergeStyle || !styleProp) return;\n\t\tif (isHOC) {\n\t\t\tviewProps.style = normalizeStyle(styleProp);\n\t\t\treturn;\n\t\t}\n\t\tconst isArray = Array.isArray(styleProp);\n\t\tconst length = isArray ? styleProp.length : 1;\n\t\tfor (let index = 0; index < length; index++) {\n\t\t\tconst style = isArray ? styleProp[index] : styleProp;\n\t\t\tif (!style) continue;\n\t\t\tif (style[\"$$css\"]) {\n\t\t\t\tfor (const key in style) clearDirectStyle(styleState, key);\n\t\t\t\tObject.assign(styleState.classNames, style);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst normalized = normalizeStyle(style);\n\t\t\tconst styleOriginals = shouldTrackStyleTokenProvenance ? styleOriginalValues.get(style) : void 0;\n\t\t\tfor (const key in normalized) {\n\t\t\t\tif (normalized[key] == null) continue;\n\t\t\t\tcontributeStyleValue(styleState, key, normalized[key], mergeStyle, styleOriginals?.[key]);\n\t\t\t}\n\t\t}\n\t};\n\tconst flushForwardStylesToClasses = () => {\n\t\tif (!shouldDoClasses) return;\n\t\tflushDirectStyles(styleState, true);\n\t};\n\tconst contributeProp = (keyOg, valOg) => {\n\t\tlet keyInit = keyOg;\n\t\tlet valInit = valOg;\n\t\tif (styleFrontend && keyInit.startsWith(STYLE_FRONTEND_PASSTHROUGH_PREFIX)) keyInit = \"className\";\n\t\tif (keyInit === \"children\") {\n\t\t\tviewProps[keyInit] = valInit;\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"ref\") return;\n\t\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`before-prop-${keyInit}`;\n\t\tif (process.env.NODE_ENV === \"test\" && keyInit === \"jestAnimatedStyle\") return;\n\t\tif (accept) {\n\t\t\tconst accepted = accept[keyInit];\n\t\t\tif ((accepted === \"style\" || accepted === \"textStyle\") && valInit && typeof valInit === \"object\") {\n\t\t\t\tviewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!disableExpandShorthands) {\n\t\t\tif (keyInit in shorthands) keyInit = shorthands[keyInit];\n\t\t}\n\t\tif (keyInit === \"className\") {\n\t\t\tif (typeof valInit === \"string\" && valInit) {\n\t\t\t\tclassName = `${className} ${valInit}`.trim();\n\t\t\t\tif (styleFrontend) {\n\t\t\t\t\tflushForwardStylesToClasses();\n\t\t\t\t\tshouldDoClasses = false;\n\t\t\t\t\tstyleState.flatShouldDoClasses = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"style\") {\n\t\t\tmergeStylePropAtCurrentPosition(valInit);\n\t\t\treturn;\n\t\t}\n\t\tif (asChild) {\n\t\t\tconst defaults = getDefaultProps(staticConfig);\n\t\t\tif (defaults) {\n\t\t\t\tconst defaultVal = defaults[keyOg] ?? defaults[keyInit];\n\t\t\t\tif (defaultVal !== void 0 && valInit === defaultVal) return;\n\t\t\t}\n\t\t}\n\t\tif (keyInit in skipProps && !noSkip && !isHOC && !neverSkipProps?.[keyInit]) {\n\t\t\tif (keyInit === \"group\") {\n\t\t\t\tconst identifier = `t_group_${valInit}`;\n\t\t\t\taddStyleToInsertRules(rulesToInsert, [\n\t\t\t\t\t\"container\",\n\t\t\t\t\tvoid 0,\n\t\t\t\t\tidentifier,\n\t\t\t\t\tvoid 0,\n\t\t\t\t\t[`.${identifier} { container-name: ${valInit}; container-type: ${webContainerType || \"inline-size\"}; }`]\n\t\t\t\t]);\n\t\t\t}\n\t\t\tif (keyInit === \"container\" && valInit) addStyleToInsertRules(rulesToInsert, [\n\t\t\t\t\"container\",\n\t\t\t\tvoid 0,\n\t\t\t\t\"t_container\",\n\t\t\t\tvoid 0,\n\t\t\t\t[`.t_container { container-type: ${webContainerType || \"inline-size\"}; }`]\n\t\t\t]);\n\t\t\tif (keyInit === \"transition\" && typeof valInit === \"string\") {\n\t\t\t\tconst animationConfig = driver?.animations?.[valInit];\n\t\t\t\tif (animationConfig && driver?.outputStyle === \"css\" && process.env.IS_STATIC === \"is_static\") valInit = `all ${animationConfig}`;\n\t\t\t\telse if (animationConfig) return;\n\t\t\t} else return;\n\t\t}\n\t\tif (isFrontendProgram(valInit)) {\n\t\t\tif (isValidStyleKey(valInit.property, validStyles$1, accept)) contributeFrontendProgram(styleState, valInit, mergeStyle);\n\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${valInit.property}\" is not a valid style on this component; the frontend value is dropped.`);\n\t\t\treturn;\n\t\t}\n\t\tlet isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles$1, accept);\n\t\tif (isWeb) {\n\t\t\tif ((staticConfig.isReactNative || styleProps.isAnimated && driver?.isReactNative && !driver.View?.acceptRenderProp) && keyInit.startsWith(\"data-\")) {\n\t\t\t\tkeyInit = keyInit.replace(\"data-\", \"\");\n\t\t\t\tviewProps[\"dataSet\"] ||= {};\n\t\t\t\tviewProps[\"dataSet\"][keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (keyInit.startsWith(\"data-\")) {\n\t\t\t\tviewProps[keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!noExpand) {\n\t\t\tif (keyInit === \"disabled\" && valInit === true) {\n\t\t\t\tviewProps[\"aria-disabled\"] = true;\n\t\t\t\tif (isInput || elementType === \"button\" || elementType === \"form\" || elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") viewProps.disabled = true;\n\t\t\t\tif (!variants?.disabled) return;\n\t\t\t}\n\t\t\tif (keyInit === \"testID\") {\n\t\t\t\tif (isReactNative) viewProps.testID = valInit;\n\t\t\t\telse {\n\t\t\t\t\tviewProps[\"data-testid\"] = valInit;\n\t\t\t\t\tif ((styleProps.isAnimated || staticConfig.isHOC) && driver?.isReactNative) viewProps.testID = valInit;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (keyInit === \"id\") {\n\t\t\t\tviewProps.id = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tlet isVariant = !isValidStyleKeyInit && variants && keyInit in variants;\n\t\tconst isStyleLikeKey = isValidStyleKeyInit || isVariant;\n\t\tconst isStyleProp = isValidStyleKeyInit || isVariant && !noExpand;\n\t\tif (isStyleProp && (asChild === \"except-style\" || asChild === \"except-style-web\")) return;\n\t\tconst shouldPassProp = !isStyleProp && isHOC || isHOC && parentVariants && keyInit in parentVariants || inlineProps?.has(keyInit);\n\t\tconst parentVariant = parentVariants?.[keyInit];\n\t\tconst isHOCShouldPassThrough = Boolean(isHOC && (isValidStyleKeyInit || parentVariant || keyInit in skipProps));\n\t\tconst shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\tconsole.groupCollapsed(` \\u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : \"\"} ${shouldPassThrough ? \"(pass)\" : \"\"}`);\n\t\t\tlog({\n\t\t\t\tisVariant,\n\t\t\t\tvalInit,\n\t\t\t\tshouldPassProp\n\t\t\t});\n\t\t\tif (isClient) log({\n\t\t\t\tvariants,\n\t\t\t\tvariant: variants?.[keyInit],\n\t\t\t\tisVariant,\n\t\t\t\tisHOCShouldPassThrough,\n\t\t\t\tparentStaticConfig\n\t\t\t});\n\t\t}\n\t\tif (shouldPassThrough) {\n\t\t\tpassDownProp(viewProps, keyInit, valInit);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\tif (!isVariant) return;\n\t\t}\n\t\tif (!noSkip && !neverSkipProps?.[keyInit]) {\n\t\t\tif (keyInit in skipProps && !(keyInit === \"transition\" && typeof valInit === \"string\" && !driver?.animations?.[valInit])) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (isText || isInput) {\n\t\t\tif (valInit && (keyInit === \"fontFamily\" || keyInit === shorthands[\"fontFamily\"]) && valInit in conf.fontsParsed) styleState.fontFamily = valInit;\n\t\t}\n\t\tconst disablePropMap = !isStyleLikeKey;\n\t\tif (!isHOC && isValidStyleKeyInit && valInit != null && !(variants && keyInit in variants) && !(accept && keyInit in accept) && !(styledContext && keyInit in styledContext)) {\n\t\t\tcontributeStyleValue(styleState, keyInit, valInit, mergeStyle);\n\t\t\treturn;\n\t\t}\n\t\tpropMapper(keyInit, valInit, styleState, disablePropMap, (key, val, originalVal, conditionSource) => {\n\t\t\tconst isStyledContextProp = styledContext && key in styledContext;\n\t\t\tif (key === \"className\") {\n\t\t\t\tif (typeof val === \"string\" && val) className = `${className} ${val}`.trim();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isHOC && disablePropMap && !isStyledContextProp) {\n\t\t\t\tif (key in stylePropsAll && !isValidStyleKey(key, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key] = val;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\tconsole.groupCollapsed(\" 💠 expanded\", keyInit, \"=>\", key);\n\t\t\t\tlog(val);\n\t\t\t\tconsole.groupEnd();\n\t\t\t}\n\t\t\tif (val == null) return;\n\t\t\tif (accept && key in accept) {\n\t\t\t\tviewProps[key] = val;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst isHostStyleKey = !isHOC && isValidStyleKey(key, validStyles$1, accept) || false;\n\t\t\tconst isContextProgramKey = !isHOC && Boolean(isStyledContextProp);\n\t\t\tif (conditionSource !== void 0) {\n\t\t\t\tif (isHostStyleKey || isContextProgramKey) contributeVariantClauseValue(styleState, key, val, conditionSource, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\telse if (isHOC) {\n\t\t\t\t\tconst appended = appendFlatClause(styleState, viewProps[key], conditionSource, val);\n\t\t\t\t\tif (appended !== void 0) viewProps[key] = appended;\n\t\t\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${key}\" cannot join the existing clause string; dropping the clause`);\n\t\t\t\t} else if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is not a valid style on this component; the conditional variant value is dropped.`);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isHostStyleKey || isContextProgramKey) {\n\t\t\t\tcontributeStyleValue(styleState, key, val, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tisVariant = variants && key in variants;\n\t\t\tif (inlineProps?.has(key)) viewProps[key] = props[key] ?? val;\n\t\t\tif (isHOC && Boolean(parentStaticConfig?.variants?.[keyInit])) {\n\t\t\t\tpassDownProp(viewProps, key, val);\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\t\tconsole.groupCollapsed(` - passing down prop ${key}`);\n\t\t\t\t\tlog({\n\t\t\t\t\t\tval,\n\t\t\t\t\t\tafter: { ...viewProps[key] }\n\t\t\t\t\t});\n\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isVariant) {\n\t\t\t\tif (isStyledContextProp) return;\n\t\t\t\tif (key in stylePropsAll && !isValidStyleKey(key, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key] = val;\n\t\t\t}\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\ttry {\n\t\t\t\tlog(` \\u2714\\uFE0F expand complete`, keyInit);\n\t\t\t\tlog(\"style\", { ...styleState.style });\n\t\t\t\tlog(\"viewProps\", { ...viewProps });\n\t\t\t\tlog(\"transforms\", { ...styleState.flatTransforms });\n\t\t\t} catch {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t};\n\tforEachPropInForwardOrder(processedProps, staticConfig, shorthands, contributeProp, (chain) => !!resolveClauseChain(styleState, chain, 0, chain.length));\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-propsend`;\n\tconst conditionalStates = styleState.flatStateKeys || null;\n\tconst usesSafeArea = !!styleState.flatUsesSafeArea;\n\tif (styleState.flatMediaKeys?.size) {\n\t\tif (!hasMedia) hasMedia = /* @__PURE__ */ new Set();\n\t\tif (typeof hasMedia !== \"boolean\") for (const key of styleState.flatMediaKeys) hasMedia.add(key);\n\t}\n\tif (styleState.flatGroupKeys?.size) {\n\t\tpseudoGroups ||= /* @__PURE__ */ new Set();\n\t\tfor (const key of styleState.flatGroupKeys) pseudoGroups.add(key);\n\t}\n\tif (styleState.flatGroupMedia?.size) {\n\t\tmediaGroups ||= /* @__PURE__ */ new Set();\n\t\tfor (const key of styleState.flatGroupMedia) mediaGroups.add(key);\n\t}\n\tconst effectiveTransition = styleState.style?.transition;\n\tif (effectiveTransition != null && styleState.style && driver?.outputStyle !== \"css\") delete styleState.style.transition;\n\tif ((styleState.style?.containerName != null || classNames.containerName) && !(styleState.style && \"containerType\" in styleState.style) && !classNames.containerType) contributeStyleValue(styleState, \"containerType\", webContainerType || \"inline-size\", mergeStyle);\n\tif (!(styleProps.noNormalize === false)) {\n\t\tif (styleState.style) {\n\t\t\tfixStyles(styleState.style);\n\t\t\tif (!styleProps.noExpand && !styleProps.noMergeStyle) {\n\t\t\t\tif (isWeb && (isReactNative ? driver?.inputStyle !== \"css\" : true)) styleToCSS(styleState.style);\n\t\t\t}\n\t\t}\n\t\tif (styleState.flatTransforms) {\n\t\t\tstyleState.style ||= {};\n\t\t\tmergeFlatTransforms(styleState.style, styleState.flatTransforms);\n\t\t}\n\t\tif (parentSplitStyles) {\n\t\t\tif (shouldDoClasses) for (const key in parentSplitStyles.classNames) {\n\t\t\t\tconst val = parentSplitStyles.classNames[key];\n\t\t\t\tif (styleState.style && key in styleState.style || key in classNames) continue;\n\t\t\t\tclassNames[key] = val;\n\t\t\t}\n\t\t\tif (!shouldDoClasses) for (const key in parentSplitStyles.style) {\n\t\t\t\tif (key in classNames || styleState.style && key in styleState.style) continue;\n\t\t\t\tstyleState.style ||= {};\n\t\t\t\tstyleState.style[key] = parentSplitStyles.style[key];\n\t\t\t}\n\t\t}\n\t}\n\tif (!styleProps.noNormalize && !staticConfig.isReactNative && !staticConfig.isHOC && (!styleProps.isAnimated || driver?.inputStyle === \"css\") && Array.isArray(styleState.style?.transform)) styleState.style.transform = transformsToString(styleState.style.transform);\n\tflushDirectStyles(styleState);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-pre-result`;\n\tif (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {\n\t\tconst provenance = {};\n\t\tlet hasProvenance = false;\n\t\tfor (const key in styleState.tokenProvenance) {\n\t\t\tprovenance[key] = {\n\t\t\t\ttoken: styleState.tokenProvenance[key],\n\t\t\t\ttheme: themeName\n\t\t\t};\n\t\t\thasProvenance = true;\n\t\t}\n\t\tif (hasProvenance) setStyleTokenProvenance(styleState.style, provenance);\n\t}\n\tconst result = {\n\t\thasMedia,\n\t\tfontFamily: styleState.fontFamily,\n\t\tviewProps,\n\t\tstyle: styleState.style,\n\t\tclassNames,\n\t\trulesToInsert,\n\t\tpseudoGroups,\n\t\tmediaGroups,\n\t\toverriddenContextProps: styleState.overriddenContextProps\n\t};\n\tif (effectiveTransition != null) result.effectiveTransition = effectiveTransition;\n\tif (conditionalStates) result.programStates = conditionalStates;\n\tif (usesSafeArea) result.usesSafeArea = true;\n\tif (getDirectDynamicThemeAccess(styleState)) result.dynamicThemeAccess = true;\n\tif (styleState.flatEnterKeys || styleState.flatExitKeys) {\n\t\tconst effectiveKeys = (keys) => {\n\t\t\tif (!keys) return;\n\t\t\tconst out = /* @__PURE__ */ new Set();\n\t\t\tfor (const key of keys) out.add(key === \"--t-x\" || key === \"--t-y\" ? \"translate\" : key === \"--t-scale-x\" || key === \"--t-scale-y\" ? \"scale\" : key);\n\t\t\treturn out;\n\t\t};\n\t\tresult.programLifecycleStyleKeys = {\n\t\t\tenter: effectiveKeys(styleState.flatEnterKeys),\n\t\t\texit: effectiveKeys(styleState.flatExitKeys)\n\t\t};\n\t}\n\tconst asChildExceptStyleLike = asChild === \"except-style\" || asChild === \"except-style-web\";\n\tif (!styleProps.noMergeStyle) {\n\t\tif (!asChildExceptStyleLike) {\n\t\t\tconst style = styleState.style;\n\t\t\t{\n\t\t\t\tconst fontFamily = isText || isInput ? styleState.fontFamily : null;\n\t\t\t\tconst fontFamilyClassName = fontFamily ? `font_${fontFamily}` : \"\";\n\t\t\t\tconst groupClassName = props.group ? `t_group_${props.group}` : \"\";\n\t\t\t\tconst containerClassName = props.container ? \"t_container\" : \"\";\n\t\t\t\tconst displayNameClassName = props.asChild || !styleProps.displayName || styleProps.displayName === \"Text\" || styleProps.displayName === \"View\" || !validComponentClassName.test(styleProps.displayName) ? \"\" : `is_${styleProps.displayName}`;\n\t\t\t\tlet classList = [];\n\t\t\t\tif (displayNameClassName) classList.push(displayNameClassName);\n\t\t\t\tif (!isText) classList.push(\"is_View\");\n\t\t\t\telse classList.push(\"is_Text\");\n\t\t\t\tif (fontFamilyClassName) classList.push(fontFamilyClassName);\n\t\t\t\tif (classNames) for (const key in classNames) classList.push(classNames[key]);\n\t\t\t\tif (groupClassName) classList.push(groupClassName);\n\t\t\t\tif (containerClassName) classList.push(containerClassName);\n\t\t\t\tif (className) classList.push(className);\n\t\t\t\tconst finalClassName = classList.join(\" \");\n\t\t\t\tconst needsCssStyles = isReactNative || styleProps.isAnimated && driver?.isReactNative;\n\t\t\t\tif (styleProps.isAnimated && driver?.inputStyle === \"css\") {\n\t\t\t\t\tviewProps.className = finalClassName;\n\t\t\t\t\tif (style) viewProps.style = style;\n\t\t\t\t} else if (needsCssStyles) {\n\t\t\t\t\tlet cnStyles;\n\t\t\t\t\tfor (const name of finalClassName.split(\" \")) {\n\t\t\t\t\t\tcnStyles ||= { $$css: true };\n\t\t\t\t\t\tcnStyles[name] = name;\n\t\t\t\t\t}\n\t\t\t\t\tviewProps.style = cnStyles ? [...Array.isArray(style) ? style : [style], cnStyles] : [style];\n\t\t\t\t} else {\n\t\t\t\t\tif (finalClassName) viewProps.className = finalClassName;\n\t\t\t\t\tif (style) viewProps.style = style;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tif (isClient && isDevTools) {\n\t\t\tconsole.groupEnd();\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles ===>\");\n\t\t\ttry {\n\t\t\t\tconst logs = {\n\t\t\t\t\t...props.__tamaguiStyleDebugReceipt && { receipt: props.__tamaguiStyleDebugReceipt },\n\t\t\t\t\t...result,\n\t\t\t\t\tclassName,\n\t\t\t\t\tcomponentState,\n\t\t\t\t\tviewProps,\n\t\t\t\t\trulesToInsert,\n\t\t\t\t\tparentSplitStyles\n\t\t\t\t};\n\t\t\t\tfor (const key in logs) log(key, logs[key]);\n\t\t\t} catch {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-done`;\n\treturn result;\n};\nfunction mergeFlatTransforms(target, flatTransforms) {\n\tconst transform = [];\n\tif (\"x\" in flatTransforms) transform.push({ translateX: flatTransforms.x });\n\tif (\"y\" in flatTransforms) transform.push({ translateY: flatTransforms.y });\n\tif (\"rotate\" in flatTransforms) transform.push({ rotate: flatTransforms.rotate });\n\tconst hasScaleX = \"scaleX\" in flatTransforms;\n\tconst hasScaleY = \"scaleY\" in flatTransforms;\n\tif (hasScaleX && hasScaleY && Object.is(flatTransforms.scaleX, flatTransforms.scaleY)) transform.push({ scale: flatTransforms.scaleX });\n\telse {\n\t\tif (hasScaleX) transform.push({ scaleX: flatTransforms.scaleX });\n\t\tif (hasScaleY) transform.push({ scaleY: flatTransforms.scaleY });\n\t\tif (!hasScaleX && !hasScaleY && \"scale\" in flatTransforms) transform.push({ scale: flatTransforms.scale });\n\t}\n\tconst keys = [];\n\tfor (const key in flatTransforms) if (key !== \"x\" && key !== \"y\" && key !== \"rotate\" && key !== \"scale\" && key !== \"scaleX\" && key !== \"scaleY\") keys.push(key);\n\tkeys.sort(sortString);\n\tfor (const key of keys) transform.push({ [mapTransformKeys[key] || key]: flatTransforms[key] });\n\tif (Array.isArray(target.transform)) transform.push(...target.transform);\n\ttarget.transform = transform;\n}\nfunction mergeStyle(styleState, key, val, _importance, disableNormalize = false, originalVal) {\n\tconst { viewProps, styleProps, staticConfig } = styleState;\n\tconst contextConfig = staticConfig.context || staticConfig.parentStaticConfig?.context;\n\tconst contextProps = contextConfig?.props;\n\tconst inheritedContextPropKeys = !staticConfig.context || staticConfig.context === staticConfig.parentStaticConfig?.context ? staticConfig.parentStaticConfig?.contextProps : void 0;\n\tconst contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\tif (contextProps && key in contextProps || contextPropKeys?.includes(key) || contextConfig?.propKeys?.includes(key)) {\n\t\tstyleState.overriddenContextProps ||= {};\n\t\tconst originalFromState = styleState.originalContextPropValues?.[key];\n\t\tstyleState.overriddenContextProps[key] = originalVal ?? originalFromState ?? val;\n\t}\n\tif (key in stylePropsTransform) {\n\t\tstyleState.flatTransforms ||= {};\n\t\tstyleState.flatTransforms[key] = val;\n\t} else {\n\t\tconst out = isWeb && !disableNormalize && !styleProps.noNormalize ? normalizeValueWithProperty(val, key) : val;\n\t\tif (staticConfig.accept && key in staticConfig.accept) viewProps[key] = out;\n\t\telse {\n\t\t\tstyleState.style ||= {};\n\t\t\tstyleState.style[key] = key === \"transform\" && Array.isArray(out) ? [...out] : out;\n\t\t\tif (shouldTrackStyleTokenProvenance) recordStyleTokenProvenance(styleState, key, originalVal);\n\t\t}\n\t}\n}\nfunction recordStyleTokenProvenance(styleState, key, originalVal) {\n\tlet tokenName = typeof originalVal === \"string\" ? originalVal : \"\";\n\tif (tokenName) {\n\t\tconst slash = tokenName.lastIndexOf(\"/\");\n\t\tconst opacity = slash === -1 ? NaN : Number(tokenName.slice(slash + 1));\n\t\tif (Number.isInteger(opacity) && opacity >= 0 && opacity <= 100) tokenName = tokenName.slice(0, slash);\n\t}\n\tif (tokenName !== \"\" && (Object.prototype.hasOwnProperty.call(styleState.theme, tokenName) || Object.prototype.hasOwnProperty.call(styleState.conf.themes?.[styleState.flatThemeName || \"\"] || {}, tokenName) || Object.values(styleState.conf.tokensParsed).some((category) => Object.prototype.hasOwnProperty.call(category, tokenName)))) (styleState.tokenProvenance ||= {})[key] = originalVal;\n\telse if (styleState.tokenProvenance && key in styleState.tokenProvenance) delete styleState.tokenProvenance[key];\n}\nconst getSubStyle = (styleState, _subKey, styleIn, avoidMergeTransform) => {\n\tconst { staticConfig, conf, styleProps } = styleState;\n\tconst styleOut = {};\n\tlet originalValues;\n\tconst styleInOriginalValues = styleOriginalValues.get(styleIn);\n\tconst parentProps = styleState.props;\n\tstyleState.props = Object.create(parentProps, Object.getOwnPropertyDescriptors(styleIn));\n\ttry {\n\t\tfor (let key in styleIn) {\n\t\t\tconst val = styleIn[key];\n\t\t\tkey = conf.shorthands[key] || key;\n\t\t\tif (!staticConfig.isHOC && key in skipProps && !styleProps.noSkip) continue;\n\t\t\tpropMapper(key, val, styleState, false, (skey, sval, originalVal) => {\n\t\t\t\tconst trackedOriginalVal = styleInOriginalValues?.[skey] ?? originalVal;\n\t\t\t\tif (trackedOriginalVal !== void 0) {\n\t\t\t\t\toriginalValues ||= {};\n\t\t\t\t\toriginalValues[skey] = trackedOriginalVal;\n\t\t\t\t}\n\t\t\t\tif (!avoidMergeTransform && skey in stylePropsTransform) mergeTransform(styleOut, skey, sval);\n\t\t\t\telse styleOut[skey] = styleProps.noNormalize ? sval : normalizeValueWithProperty(sval, key);\n\t\t\t});\n\t\t}\n\t} finally {\n\t\tstyleState.props = parentProps;\n\t}\n\tif (!avoidMergeTransform) {\n\t\tconst parentTransform = styleState.style?.transform;\n\t\tconst flatTransforms = styleState.flatTransforms;\n\t\tconst styleOutTransform = styleOut.transform;\n\t\tif (Array.isArray(styleOutTransform) && styleOutTransform.length) {\n\t\t\tconst len = styleOutTransform.length;\n\t\t\tif (Array.isArray(parentTransform)) {\n\t\t\t\tconst merged = [];\n\t\t\t\touter: for (let i = 0; i < parentTransform.length; i++) {\n\t\t\t\t\tconst pt = parentTransform[i];\n\t\t\t\t\tfor (const pk in pt) {\n\t\t\t\t\t\tfor (let j = 0; j < len; j++) for (const sk in styleOutTransform[j]) {\n\t\t\t\t\t\t\tif (pk === sk) continue outer;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmerged.push(pt);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (let i = 0; i < len; i++) merged.push(styleOutTransform[i]);\n\t\t\t\tstyleOut.transform = merged;\n\t\t\t}\n\t\t\tif (flatTransforms) outer: for (const fk in flatTransforms) {\n\t\t\t\tconst ck = fk === \"x\" ? \"translateX\" : fk === \"y\" ? \"translateY\" : fk;\n\t\t\t\tfor (let j = 0; j < len; j++) for (const sk in styleOutTransform[j]) {\n\t\t\t\t\tif (ck === sk) continue outer;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmergeTransform(styleOut, fk, flatTransforms[fk]);\n\t\t\t}\n\t\t} else if (flatTransforms) mergeFlatTransforms(styleOut, flatTransforms);\n\t}\n\tif (!styleProps.noNormalize) fixStyles(styleOut);\n\tif (originalValues) styleOriginalValues.set(styleOut, originalValues);\n\treturn styleOut;\n};\nconst useInsertEffectCompat = isWeb ? React.useInsertionEffect || useIsomorphicLayoutEffect : () => {};\nconst useSplitStyles = (a, b, c, d, e, f, g, h, i, j, k, l, m) => {\n\t\"use no memo\";\n\tconst res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);\n\tuseInsertEffectCompat(() => {\n\t\tif (res) insertStyleRules(res.rulesToInsert);\n\t}, [res?.rulesToInsert]);\n\treturn res;\n};\nfunction addStyleToInsertRules(rulesToInsert, styleObject) {\n\t{\n\t\tconst identifier = styleObject[StyleObjectIdentifier];\n\t\tif (shouldInsertStyleRules(identifier)) {\n\t\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\t\trulesToInsert[identifier] = styleObject;\n\t\t}\n\t}\n}\nconst mergeTransform = (obj, key, val, backwards = false) => {\n\tif (typeof obj.transform === \"string\") return;\n\tobj.transform ||= [];\n\tobj.transform[backwards ? \"unshift\" : \"push\"]({ [mapTransformKeys[key] || key]: val });\n};\nconst mapTransformKeys = {\n\tx: \"translateX\",\n\ty: \"translateY\"\n};\nfunction passDownProp(viewProps, key, val) {\n\tviewProps[key] = val;\n}\nfunction normalizeStyle(style) {\n\tconst out = {};\n\tfor (const key in style) {\n\t\tconst val = style[key];\n\t\tif (key in stylePropsTransform) mergeTransform(out, key, val);\n\t\telse out[key] = normalizeValueWithProperty(val, key);\n\t}\n\tif (isWeb && Array.isArray(out.transform)) out.transform = transformsToString(out.transform);\n\tfixStyles(out);\n\treturn out;\n}\n\nexport { STYLE_TOKEN_PROVENANCE_KEY, getSplitStyles, getStyleTokenProvenance, getSubStyle, isValidStyleKey, styleOriginalValues, useSplitStyles };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAM,kCAAkC,QAAQ,IAAI,aAAa,iBAAiB,QAAQ,IAAI,0CAA0C;AACxI,MAAM,0BAA0B;AAChC,SAAS,uBAAuB,UAAU,QAAQ;CACjD,IAAI,MAAM,QAAQ,QAAQ,GAAG,OAAO,SAAS,MAAM,UAAU,OAAO,GAAG,OAAO,MAAM,CAAC;CACrF,OAAO,OAAO,GAAG,UAAU,MAAM;AAClC;AACA,SAAS,8BAA8B,UAAU,SAAS;CACzD,IAAI,MAAM,QAAQ,QAAQ,GAAG,OAAO,SAAS,MAAM,UAAU,8BAA8B,OAAO,OAAO,CAAC;CAC1G,OAAO,OAAO,aAAa,WAAW,aAAa,UAAU,OAAO,QAAQ,MAAM;AACnF;AACA,MAAM,sBAAsB;CAC3B,QAAQ,KAAK,OAAO,KAAK,QAAQ,OAAO,QAAQ,YAAY,UAAU,YAAY;EACjF,IAAI,CAAC,SAAS,SAAS,KAAK;EAC5B,IAAI,CAAC,8BAA8B,IAAI,IAAI,OAAO,MAAM,OAAO,GAAG,CAAC,GAAG;EACtE,I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