@tamagui/core 3.0.0-beta.807.1 → 3.0.0-beta.831.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/native.cjs CHANGED
@@ -33,15 +33,64 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  //#endregion
34
34
  let react = require("react");
35
35
  react = __toESM(react, 1);
36
- let react_jsx_runtime = require("react/jsx-runtime");
37
36
  let _tamagui_size = require("@tamagui/size");
37
+ let react_jsx_runtime = require("react/jsx-runtime");
38
+ //#region \0@oxc-project+runtime@0.144.0/helpers/esm/objectWithoutPropertiesLoose.js
39
+ function _objectWithoutPropertiesLoose(r, e) {
40
+ if (null == r) return {};
41
+ var t = {};
42
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
43
+ if (e.includes(n)) continue;
44
+ t[n] = r[n];
45
+ }
46
+ return t;
47
+ }
48
+ //#endregion
49
+ //#region \0@oxc-project+runtime@0.144.0/helpers/esm/objectWithoutProperties.js
50
+ function _objectWithoutProperties(e, t) {
51
+ if (null == e) return {};
52
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
53
+ if (Object.getOwnPropertySymbols) {
54
+ var s = Object.getOwnPropertySymbols(e);
55
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
56
+ }
57
+ return i;
58
+ }
59
+ //#endregion
60
+ //#region ../compose-refs/dist/esm/compose-refs.native.js
61
+ var _excluded$27 = ["ref"];
62
+ function setRef(ref, value) {
63
+ if (typeof ref === "function") ref(value);
64
+ else if (ref) ref.current = value;
65
+ }
66
+ function composeRefs() {
67
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
68
+ return function(node) {
69
+ return refs.forEach(function(ref) {
70
+ return setRef(ref, node);
71
+ });
72
+ };
73
+ }
74
+ function useComposedRefs() {
75
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
76
+ return react.useCallback(composeRefs(...refs), refs);
77
+ }
78
+ function createRefComponent(render) {
79
+ function RefComponent(props) {
80
+ var { ref } = props;
81
+ return render(_objectWithoutProperties(props, _excluded$27), ref);
82
+ }
83
+ RefComponent.displayName = render.name;
84
+ return RefComponent;
85
+ }
86
+ //#endregion
38
87
  //#region ../web/dist/esm/helpers/isObj.native.js
39
- function _type_of$14(obj) {
88
+ function _type_of$15(obj) {
40
89
  "@swc/helpers - typeof";
41
90
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
42
91
  }
43
92
  var isObj = function(x) {
44
- return x && !Array.isArray(x) && (typeof x === "undefined" ? "undefined" : _type_of$14(x)) === "object";
93
+ return x && !Array.isArray(x) && (typeof x === "undefined" ? "undefined" : _type_of$15(x)) === "object";
45
94
  };
46
95
  function isPlainObject(value) {
47
96
  if (!isObj(value)) return false;
@@ -84,7 +133,7 @@ var mergeComponentProps = function(defaultProps, contextProps, props) {
84
133
  };
85
134
  //#endregion
86
135
  //#region ../web/dist/esm/helpers/objectIdentityKey.native.js
87
- function _type_of$13(obj) {
136
+ function _type_of$14(obj) {
88
137
  "@swc/helpers - typeof";
89
138
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
90
139
  }
@@ -93,7 +142,7 @@ function objectIdentityKey(obj) {
93
142
  for (var key in obj) {
94
143
  k += key;
95
144
  var arg = obj[key];
96
- var type = typeof arg === "undefined" ? "undefined" : _type_of$13(arg);
145
+ var type = typeof arg === "undefined" ? "undefined" : _type_of$14(arg);
97
146
  if (!arg || type !== "object" && type !== "function") k += type + arg;
98
147
  else if (cache$5.has(arg)) k += cache$5.get(arg);
99
148
  else {
@@ -106,30 +155,8 @@ function objectIdentityKey(obj) {
106
155
  }
107
156
  var cache$5 = /* @__PURE__ */ new WeakMap();
108
157
  //#endregion
109
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/objectWithoutPropertiesLoose.js
110
- function _objectWithoutPropertiesLoose(r, e) {
111
- if (null == r) return {};
112
- var t = {};
113
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
114
- if (e.includes(n)) continue;
115
- t[n] = r[n];
116
- }
117
- return t;
118
- }
119
- //#endregion
120
- //#region \0@oxc-project+runtime@0.144.0/helpers/esm/objectWithoutProperties.js
121
- function _objectWithoutProperties(e, t) {
122
- if (null == e) return {};
123
- var o, r, i = _objectWithoutPropertiesLoose(e, t);
124
- if (Object.getOwnPropertySymbols) {
125
- var s = Object.getOwnPropertySymbols(e);
126
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
127
- }
128
- return i;
129
- }
130
- //#endregion
131
158
  //#region ../web/dist/esm/helpers/createStyledContext.native.js
132
- var _excluded$28 = [
159
+ var _excluded$26 = [
133
160
  "children",
134
161
  "scope",
135
162
  "__disableMergeDefaultValues"
@@ -159,7 +186,7 @@ var createStyledContext = function(defaultValues) {
159
186
  return namespace ? `${namespace}--${scope}` : scope;
160
187
  };
161
188
  var Provider = function(param) {
162
- var { children, scope: scopeIn, __disableMergeDefaultValues } = param, values = _objectWithoutProperties(param, _excluded$28);
189
+ var { children, scope: scopeIn, __disableMergeDefaultValues } = param, values = _objectWithoutProperties(param, _excluded$26);
163
190
  var scope = getNamespacedScope(scopeIn);
164
191
  var next = useReactMemo(function() {
165
192
  if (__disableMergeDefaultValues) return values;
@@ -349,10 +376,6 @@ var LayoutMeasurementController = function(param) {
349
376
  var strategy = "async";
350
377
  var resumeLayoutLoop;
351
378
  var measureOnNextFrame;
352
- function setOnLayoutStrategy(state) {
353
- strategy = state;
354
- resumeLayoutLoop === null || resumeLayoutLoop === void 0 || resumeLayoutLoop();
355
- }
356
379
  var NodeRectCache = /* @__PURE__ */ new WeakMap();
357
380
  var avoidUpdates = true;
358
381
  var queuedUpdates = /* @__PURE__ */ new Map();
@@ -797,7 +820,7 @@ var AccessibilityUtil = {
797
820
  var canUseDOM$1 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
798
821
  //#endregion
799
822
  //#region ../react-native-web-internals/dist/esm/modules/createDOMProps/index.mjs
800
- var _excluded$27 = [
823
+ var _excluded$25 = [
801
824
  "accessibilityActiveDescendant",
802
825
  "accessibilityAtomic",
803
826
  "accessibilityAutoComplete",
@@ -852,7 +875,6 @@ var _excluded$27 = [
852
875
  "id"
853
876
  ];
854
877
  var emptyObject$8 = {};
855
- var hasOwnProperty = Object.prototype.hasOwnProperty;
856
878
  var isArray = Array.isArray;
857
879
  var reactNativeOnlyProps = {
858
880
  collapsable: true,
@@ -913,16 +935,14 @@ function flattenStyle$1(style) {
913
935
  const result = {};
914
936
  for (let i = 0, styleLength = style.length; i < styleLength; ++i) {
915
937
  const computedStyle = flattenStyle$1(style[i]);
916
- if (computedStyle) {
917
- for (const key in computedStyle) if (hasOwnProperty.call(computedStyle, key)) result[key] = computedStyle[key];
918
- }
938
+ if (computedStyle) for (const key in computedStyle) result[key] = computedStyle[key];
919
939
  }
920
940
  return result;
921
941
  }
922
942
  var stylesFromProps = /* @__PURE__ */ new WeakMap();
923
943
  var createDOMProps = (elementType, props, options) => {
924
944
  if (!props) props = emptyObject$8;
925
- const { accessibilityActiveDescendant, accessibilityAtomic, accessibilityAutoComplete, accessibilityBusy, accessibilityChecked, accessibilityColumnCount, accessibilityColumnIndex, accessibilityColumnSpan, accessibilityControls, accessibilityCurrent, accessibilityDescribedBy, accessibilityDetails, accessibilityDisabled, accessibilityErrorMessage, accessibilityExpanded, accessibilityFlowTo, accessibilityHasPopup, accessibilityHidden, accessibilityInvalid, accessibilityKeyShortcuts, accessibilityLabel, accessibilityLabelledBy, accessibilityLevel, accessibilityLiveRegion, accessibilityModal, accessibilityMultiline, accessibilityMultiSelectable, accessibilityOrientation, accessibilityOwns, accessibilityPlaceholder, accessibilityPosInSet, accessibilityPressed, accessibilityReadOnly, accessibilityRequired, accessibilityRole, accessibilityRoleDescription, accessibilityRowCount, accessibilityRowIndex, accessibilityRowSpan, accessibilitySelected, accessibilitySetSize, accessibilitySort, accessibilityValueMax, accessibilityValueMin, accessibilityValueNow, accessibilityValueText, dataSet, nativeID, pointerEvents, style, testID, id } = props, domProps = _objectWithoutProperties(props, _excluded$27);
945
+ const { accessibilityActiveDescendant, accessibilityAtomic, accessibilityAutoComplete, accessibilityBusy, accessibilityChecked, accessibilityColumnCount, accessibilityColumnIndex, accessibilityColumnSpan, accessibilityControls, accessibilityCurrent, accessibilityDescribedBy, accessibilityDetails, accessibilityDisabled, accessibilityErrorMessage, accessibilityExpanded, accessibilityFlowTo, accessibilityHasPopup, accessibilityHidden, accessibilityInvalid, accessibilityKeyShortcuts, accessibilityLabel, accessibilityLabelledBy, accessibilityLevel, accessibilityLiveRegion, accessibilityModal, accessibilityMultiline, accessibilityMultiSelectable, accessibilityOrientation, accessibilityOwns, accessibilityPlaceholder, accessibilityPosInSet, accessibilityPressed, accessibilityReadOnly, accessibilityRequired, accessibilityRole, accessibilityRoleDescription, accessibilityRowCount, accessibilityRowIndex, accessibilityRowSpan, accessibilitySelected, accessibilitySetSize, accessibilitySort, accessibilityValueMax, accessibilityValueMin, accessibilityValueNow, accessibilityValueText, dataSet, nativeID, pointerEvents, style, testID, id } = props, domProps = _objectWithoutProperties(props, _excluded$25);
926
946
  for (const key in domProps) if (reactNativeOnlyProps[key]) delete domProps[key];
927
947
  const disabled = accessibilityDisabled;
928
948
  const role = AccessibilityUtil.propsToAriaRole(props);
@@ -985,11 +1005,9 @@ var createDOMProps = (elementType, props, options) => {
985
1005
  const tmgID = dataSet ? dataSet.id : void 0;
986
1006
  if (dataSet != null) for (const dataProp in dataSet) {
987
1007
  if (dataProp === "className" || dataProp === "id") continue;
988
- if (hasOwnProperty.call(dataSet, dataProp)) {
989
- const dataName = hyphenateString(dataProp);
990
- const dataValue = dataSet[dataProp];
991
- if (dataValue != null) domProps[`data-${dataName}`] = dataValue;
992
- }
1008
+ const dataName = hyphenateString(dataProp);
1009
+ const dataValue = dataSet[dataProp];
1010
+ if (dataValue != null) domProps[`data-${dataName}`] = dataValue;
993
1011
  }
994
1012
  if (elementType === "a" || elementType === "button" || elementType === "input" || elementType === "select" || elementType === "textarea") {
995
1013
  if (accessibilityDisabled === true) domProps.tabIndex = "-1";
@@ -1646,9 +1664,7 @@ var normalizeColor$1 = (color, opacity = 1) => {
1646
1664
  //#region ../react-native-web-internals/dist/esm/modules/pick/index.mjs
1647
1665
  function pick(obj, list) {
1648
1666
  const nextObj = {};
1649
- for (const key in obj) if (obj.hasOwnProperty(key)) {
1650
- if (list[key] === true) nextObj[key] = obj[key];
1651
- }
1667
+ for (const key in obj) if (list[key] === true) nextObj[key] = obj[key];
1652
1668
  return nextObj;
1653
1669
  }
1654
1670
  //#endregion
@@ -3570,7 +3586,7 @@ var preprocess = (originalStyle) => {
3570
3586
  const originalValue = style[originalProp];
3571
3587
  let prop = originalProp;
3572
3588
  let value = originalValue;
3573
- if (!Object.prototype.hasOwnProperty.call(style, originalProp) || originalValue == null) continue;
3589
+ if (originalValue == null) continue;
3574
3590
  if (prop === "shadowColor" || prop === "shadowOffset" || prop === "shadowOpacity" || prop === "shadowRadius") {
3575
3591
  const boxShadowValue = createBoxShadowValue(style);
3576
3592
  if (boxShadowValue != null && nextStyle.boxShadow == null) {
@@ -4149,16 +4165,16 @@ function addWhitelistedInterpolationParam(param) {
4149
4165
  SUPPORTED_INTERPOLATION_PARAMS[param] = true;
4150
4166
  }
4151
4167
  function isSupportedColorStyleProp(prop) {
4152
- return SUPPORTED_COLOR_STYLES.hasOwnProperty(prop);
4168
+ return prop in SUPPORTED_COLOR_STYLES;
4153
4169
  }
4154
4170
  function isSupportedStyleProp(prop) {
4155
- return SUPPORTED_STYLES.hasOwnProperty(prop);
4171
+ return prop in SUPPORTED_STYLES;
4156
4172
  }
4157
4173
  function isSupportedTransformProp(prop) {
4158
- return SUPPORTED_TRANSFORMS.hasOwnProperty(prop);
4174
+ return prop in SUPPORTED_TRANSFORMS;
4159
4175
  }
4160
4176
  function isSupportedInterpolationParam(param) {
4161
- return SUPPORTED_INTERPOLATION_PARAMS.hasOwnProperty(param);
4177
+ return param in SUPPORTED_INTERPOLATION_PARAMS;
4162
4178
  }
4163
4179
  function validateTransform(configs) {
4164
4180
  configs.forEach((config) => {
@@ -6122,13 +6138,13 @@ function useMergeRefs(...refs) {
6122
6138
  }
6123
6139
  //#endregion
6124
6140
  //#region ../../packages/react-native-web-lite/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs
6125
- var _excluded$26 = ["style"];
6141
+ var _excluded$24 = ["style"];
6126
6142
  function createAnimatedComponent(Component) {
6127
6143
  return react.forwardRef((props, forwardedRef) => {
6128
6144
  const [reducedProps, callbackRef] = useAnimatedProps(props);
6129
6145
  const ref = useMergeRefs(callbackRef, forwardedRef);
6130
6146
  const { passthroughAnimatedPropExplicitValues, style } = reducedProps;
6131
- const _ref = passthroughAnimatedPropExplicitValues !== null && passthroughAnimatedPropExplicitValues !== void 0 ? passthroughAnimatedPropExplicitValues : {}, { style: passthroughStyle } = _ref, passthroughProps = _objectWithoutProperties(_ref, _excluded$26);
6147
+ const _ref = passthroughAnimatedPropExplicitValues !== null && passthroughAnimatedPropExplicitValues !== void 0 ? passthroughAnimatedPropExplicitValues : {}, { style: passthroughStyle } = _ref, passthroughProps = _objectWithoutProperties(_ref, _excluded$24);
6132
6148
  const mergedStyle = [style, passthroughStyle];
6133
6149
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, _objectSpread2(_objectSpread2(_objectSpread2({}, reducedProps), passthroughProps), {}, {
6134
6150
  style: mergedStyle,
@@ -6959,7 +6975,7 @@ var deepDiffer = function(one, two, maxDepth = -1) {
6959
6975
  };
6960
6976
  //#endregion
6961
6977
  //#region ../../packages/react-native-web-lite/dist/esm/View/index.mjs
6962
- var _excluded$25 = [
6978
+ var _excluded$23 = [
6963
6979
  "hrefAttrs",
6964
6980
  "onLayout",
6965
6981
  "onMoveShouldSetResponder",
@@ -6981,7 +6997,7 @@ var _excluded$25 = [
6981
6997
  ];
6982
6998
  var pickProps$3 = (props) => pick(props, forwardPropsListView);
6983
6999
  var View$2 = react.forwardRef((props, forwardedRef) => {
6984
- const { hrefAttrs, onLayout, onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onResponderEnd, onResponderGrant, onResponderMove, onResponderReject, onResponderRelease, onResponderStart, onResponderTerminate, onResponderTerminationRequest, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture } = props, rest = _objectWithoutProperties(props, _excluded$25);
7000
+ const { hrefAttrs, onLayout, onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onResponderEnd, onResponderGrant, onResponderMove, onResponderReject, onResponderRelease, onResponderStart, onResponderTerminate, onResponderTerminationRequest, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture } = props, rest = _objectWithoutProperties(props, _excluded$23);
6985
7001
  const hasTextAncestor = react.useContext(TextAncestorContext);
6986
7002
  const hostRef = react.useRef(null);
6987
7003
  const { direction: contextDirection } = useLocaleContext();
@@ -7041,7 +7057,7 @@ var styles$11 = {
7041
7057
  };
7042
7058
  //#endregion
7043
7059
  //#region ../../packages/react-native-web-lite/dist/esm/ScrollView/WebScrollView.mjs
7044
- var _excluded$24 = [
7060
+ var _excluded$22 = [
7045
7061
  "children",
7046
7062
  "contentContainerStyle",
7047
7063
  "horizontal",
@@ -7191,7 +7207,7 @@ var styles$10 = {
7191
7207
  }
7192
7208
  };
7193
7209
  var WebScrollView = react.forwardRef((props, forwardedRef) => {
7194
- const { children, contentContainerStyle, horizontal, onContentSizeChange, onScroll, refreshControl, stickyHeaderIndices, pagingEnabled, centerContent, scrollEnabled = true, scrollEventThrottle = 0, showsHorizontalScrollIndicator, showsVerticalScrollIndicator, style, keyboardShouldPersistTaps, keyboardDismissMode, contentOffset, contentInset, contentInsetAdjustmentBehavior, decelerationRate, directionalLockEnabled, disableIntervalMomentum, disableScrollViewPanResponder, endFillColor, fadingEdgeLength, indicatorStyle, invertStickyHeaders, maintainVisibleContentPosition, maximumZoomScale, minimumZoomScale, nestedScrollEnabled, onScrollToTop, overScrollMode, pinchGestureEnabled, removeClippedSubviews, scrollIndicatorInsets, scrollPerfTag, scrollToOverflowEnabled, snapToAlignment, snapToEnd, snapToInterval, snapToOffsets, snapToStart, bounces } = props, rest = _objectWithoutProperties(props, _excluded$24);
7210
+ const { children, contentContainerStyle, horizontal, onContentSizeChange, onScroll, refreshControl, stickyHeaderIndices, pagingEnabled, centerContent, scrollEnabled = true, scrollEventThrottle = 0, showsHorizontalScrollIndicator, showsVerticalScrollIndicator, style, keyboardShouldPersistTaps, keyboardDismissMode, contentOffset, contentInset, contentInsetAdjustmentBehavior, decelerationRate, directionalLockEnabled, disableIntervalMomentum, disableScrollViewPanResponder, endFillColor, fadingEdgeLength, indicatorStyle, invertStickyHeaders, maintainVisibleContentPosition, maximumZoomScale, minimumZoomScale, nestedScrollEnabled, onScrollToTop, overScrollMode, pinchGestureEnabled, removeClippedSubviews, scrollIndicatorInsets, scrollPerfTag, scrollToOverflowEnabled, snapToAlignment, snapToEnd, snapToInterval, snapToOffsets, snapToStart, bounces } = props, rest = _objectWithoutProperties(props, _excluded$22);
7195
7211
  const { dataSet } = rest, domRest = _objectWithoutProperties(rest, _excluded2$5);
7196
7212
  const dataAttrs = {};
7197
7213
  if (dataSet) for (const key in dataSet) dataAttrs[`data-${key}`] = dataSet[key];
@@ -7309,7 +7325,7 @@ var WebScrollView = react.forwardRef((props, forwardedRef) => {
7309
7325
  WebScrollView.displayName = "ScrollView";
7310
7326
  //#endregion
7311
7327
  //#region ../../packages/react-native-web-lite/dist/esm/RefreshControl/index.mjs
7312
- var _excluded$23 = [
7328
+ var _excluded$21 = [
7313
7329
  "colors",
7314
7330
  "enabled",
7315
7331
  "onRefresh",
@@ -7322,7 +7338,7 @@ var _excluded$23 = [
7322
7338
  "titleColor"
7323
7339
  ];
7324
7340
  function RefreshControl(props) {
7325
- const { colors, enabled, onRefresh, progressBackgroundColor, progressViewOffset, refreshing, size, tintColor, title, titleColor } = props, rest = _objectWithoutProperties(props, _excluded$23);
7341
+ const { colors, enabled, onRefresh, progressBackgroundColor, progressViewOffset, refreshing, size, tintColor, title, titleColor } = props, rest = _objectWithoutProperties(props, _excluded$21);
7326
7342
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(View$2, _objectSpread2({}, rest));
7327
7343
  }
7328
7344
  //#endregion
@@ -7760,7 +7776,7 @@ var styles$9 = StyleSheet.create({
7760
7776
  });
7761
7777
  //#endregion
7762
7778
  //#region ../../packages/react-native-web-lite/dist/esm/vendor/react-native/VirtualizedList/index.mjs
7763
- var _excluded$22 = [
7779
+ var _excluded$20 = [
7764
7780
  "ListEmptyComponent",
7765
7781
  "ListFooterComponent",
7766
7782
  "ListHeaderComponent",
@@ -7934,7 +7950,7 @@ var VirtualizedList = (_Class = class extends StateSafePureComponent {
7934
7950
  if (this._scrollRef) this._scrollRef.setNativeProps(props);
7935
7951
  }
7936
7952
  render() {
7937
- const _this$props = this.props, { ListEmptyComponent, ListFooterComponent, ListHeaderComponent, data, debug, disableVirtualization, getItem, getItemCount, getItemLayout, horizontal, keyExtractor, numColumns, onEndReached, onEndReachedThreshold, onLayout, onRefresh, onScroll, onScrollBeginDrag, onScrollEndDrag, onMomentumScrollBegin, onMomentumScrollEnd, onStartReached, onStartReachedThreshold, onViewableItemsChanged, refreshing, removeClippedSubviews, renderItem, viewabilityConfig, viewabilityConfigCallbackPairs } = _this$props, restProps = _objectWithoutProperties(_this$props, _excluded$22);
7953
+ const _this$props = this.props, { ListEmptyComponent, ListFooterComponent, ListHeaderComponent, data, debug, disableVirtualization, getItem, getItemCount, getItemLayout, horizontal, keyExtractor, numColumns, onEndReached, onEndReachedThreshold, onLayout, onRefresh, onScroll, onScrollBeginDrag, onScrollEndDrag, onMomentumScrollBegin, onMomentumScrollEnd, onStartReached, onStartReachedThreshold, onViewableItemsChanged, refreshing, removeClippedSubviews, renderItem, viewabilityConfig, viewabilityConfigCallbackPairs } = _this$props, restProps = _objectWithoutProperties(_this$props, _excluded$20);
7938
7954
  if (getItemCount(data) === 0) {
7939
7955
  if (!ListEmptyComponent) return null;
7940
7956
  return (0, react.isValidElement)(ListEmptyComponent) ? ListEmptyComponent : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListEmptyComponent, {});
@@ -7987,7 +8003,7 @@ function keyExtractor(item, index) {
7987
8003
  }
7988
8004
  //#endregion
7989
8005
  //#region ../../packages/react-native-web-lite/dist/esm/FlatList.mjs
7990
- var _excluded$21 = [
8006
+ var _excluded$19 = [
7991
8007
  "numColumns",
7992
8008
  "columnWrapperStyle",
7993
8009
  "removeClippedSubviews",
@@ -8126,7 +8142,7 @@ var FlatList$1 = class extends react.default.PureComponent {
8126
8142
  };
8127
8143
  }
8128
8144
  render() {
8129
- const _this$props = this.props, { numColumns, columnWrapperStyle, removeClippedSubviews: _removeClippedSubviews, strictMode = false } = _this$props, restProps = _objectWithoutProperties(_this$props, _excluded$21);
8145
+ const _this$props = this.props, { numColumns, columnWrapperStyle, removeClippedSubviews: _removeClippedSubviews, strictMode = false } = _this$props, restProps = _objectWithoutProperties(_this$props, _excluded$19);
8130
8146
  const renderer = strictMode ? this._memoizedRenderer : this._renderer;
8131
8147
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VirtualizedList, _objectSpread2(_objectSpread2({}, restProps), {}, {
8132
8148
  getItem: this._getItem,
@@ -8244,7 +8260,7 @@ var PixelRatio = class PixelRatio {
8244
8260
  };
8245
8261
  //#endregion
8246
8262
  //#region ../../packages/react-native-web-lite/dist/esm/Image/index.mjs
8247
- var _excluded$20 = [
8263
+ var _excluded$18 = [
8248
8264
  "accessibilityLabel",
8249
8265
  "blurRadius",
8250
8266
  "defaultSource",
@@ -8348,7 +8364,7 @@ function resolveAssetUri(source) {
8348
8364
  return uri;
8349
8365
  }
8350
8366
  var Image = react.forwardRef((props, ref) => {
8351
- const { accessibilityLabel, blurRadius, defaultSource, draggable, onError, onLayout, onLoad, onLoadEnd, onLoadStart, pointerEvents, source, style } = props, rest = _objectWithoutProperties(props, _excluded$20);
8367
+ const { accessibilityLabel, blurRadius, defaultSource, draggable, onError, onLayout, onLoad, onLoadEnd, onLoadStart, pointerEvents, source, style } = props, rest = _objectWithoutProperties(props, _excluded$18);
8352
8368
  const [state, updateState] = react.useState(() => {
8353
8369
  const uri2 = resolveAssetUri(source);
8354
8370
  if (uri2 != null) {
@@ -8510,7 +8526,7 @@ var AnimatedImage = createAnimatedComponent(ImageWithStatics);
8510
8526
  var ScrollView = createAnimatedComponent(react.forwardRef((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WebScrollView, _objectSpread2(_objectSpread2({ scrollEventThrottle: 1e-4 }, props), {}, { ref }))));
8511
8527
  //#endregion
8512
8528
  //#region ../../packages/react-native-web-lite/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs
8513
- var _excluded$19 = [
8529
+ var _excluded$17 = [
8514
8530
  "ItemSeparatorComponent",
8515
8531
  "SectionSeparatorComponent",
8516
8532
  "renderItem",
@@ -8574,7 +8590,7 @@ var VirtualizedSectionList = class extends react.PureComponent {
8574
8590
  return this._listRef;
8575
8591
  }
8576
8592
  render() {
8577
- const _this$props = this.props, { ItemSeparatorComponent, SectionSeparatorComponent, renderItem: _renderItem, renderSectionFooter, renderSectionHeader, sections: _sections, stickySectionHeadersEnabled } = _this$props, passThroughProps = _objectWithoutProperties(_this$props, _excluded$19);
8593
+ const _this$props = this.props, { ItemSeparatorComponent, SectionSeparatorComponent, renderItem: _renderItem, renderSectionFooter, renderSectionHeader, sections: _sections, stickySectionHeadersEnabled } = _this$props, passThroughProps = _objectWithoutProperties(_this$props, _excluded$17);
8578
8594
  const listHeaderOffset = this.props.ListHeaderComponent ? 1 : 0;
8579
8595
  const stickyHeaderIndices = this.props.stickySectionHeadersEnabled ? [] : void 0;
8580
8596
  let itemCount = 0;
@@ -8612,7 +8628,7 @@ var VirtualizedSectionList = class extends react.PureComponent {
8612
8628
  VirtualizedSectionList.defaultProps = defaultProps;
8613
8629
  //#endregion
8614
8630
  //#region ../../packages/react-native-web-lite/dist/esm/vendor/react-native/SectionList/index.mjs
8615
- var _excluded$18 = ["sections"];
8631
+ var _excluded$16 = ["sections"];
8616
8632
  var SectionList$1 = class extends react.PureComponent {
8617
8633
  constructor(..._args) {
8618
8634
  super(..._args);
@@ -8668,7 +8684,7 @@ var SectionList$1 = class extends react.PureComponent {
8668
8684
  if (listRef) listRef.setNativeProps(props);
8669
8685
  }
8670
8686
  render() {
8671
- const _this$props = this.props, { sections } = _this$props, passThroughProps = _objectWithoutProperties(_this$props, _excluded$18);
8687
+ const _this$props = this.props, { sections } = _this$props, passThroughProps = _objectWithoutProperties(_this$props, _excluded$16);
8672
8688
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VirtualizedSectionList, _objectSpread2(_objectSpread2({}, passThroughProps), {}, {
8673
8689
  sections,
8674
8690
  ref: this._captureRef,
@@ -8683,7 +8699,7 @@ var SectionList_default = SectionList$1;
8683
8699
  var SectionList = createAnimatedComponent(react.forwardRef((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SectionList_default, _objectSpread2(_objectSpread2({ scrollEventThrottle: 1e-4 }, props), {}, { ref }))));
8684
8700
  //#endregion
8685
8701
  //#region ../../packages/react-native-web-lite/dist/esm/Text/index.mjs
8686
- var _excluded$17 = [
8702
+ var _excluded$15 = [
8687
8703
  "hrefAttrs",
8688
8704
  "numberOfLines",
8689
8705
  "onClick",
@@ -8709,7 +8725,7 @@ var _excluded$17 = [
8709
8725
  ];
8710
8726
  var pickProps$2 = (props) => pick(props, forwardPropsListText);
8711
8727
  var Text$2 = react.forwardRef((props, forwardedRef) => {
8712
- const { hrefAttrs, numberOfLines, onClick, onLayout, onPress, onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onResponderEnd, onResponderGrant, onResponderMove, onResponderReject, onResponderRelease, onResponderStart, onResponderTerminate, onResponderTerminationRequest, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture, selectable } = props, rest = _objectWithoutProperties(props, _excluded$17);
8728
+ const { hrefAttrs, numberOfLines, onClick, onLayout, onPress, onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onResponderEnd, onResponderGrant, onResponderMove, onResponderReject, onResponderRelease, onResponderStart, onResponderTerminate, onResponderTerminationRequest, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture, selectable } = props, rest = _objectWithoutProperties(props, _excluded$15);
8713
8729
  const hasTextAncestor = react.useContext(TextAncestorContext);
8714
8730
  const hostRef = react.useRef(null);
8715
8731
  const { direction: contextDirection } = useLocaleContext();
@@ -9048,7 +9064,7 @@ var AppRegistry = class AppRegistry {
9048
9064
  //#endregion
9049
9065
  //#region ../../packages/react-native-web-lite/dist/esm/AppState/index.mjs
9050
9066
  var _AppState;
9051
- var isPrefixed = canUseDOM$1 && !document.hasOwnProperty("hidden") && document.hasOwnProperty("webkitHidden");
9067
+ var isPrefixed = canUseDOM$1 && !("hidden" in document) && "webkitHidden" in document;
9052
9068
  var EVENT_TYPES = ["change", "memoryWarning"];
9053
9069
  var VISIBILITY_CHANGE_EVENT = isPrefixed ? "webkitvisibilitychange" : "visibilitychange";
9054
9070
  var VISIBILITY_STATE_PROPERTY = isPrefixed ? "webkitVisibilityState" : "visibilityState";
@@ -9559,7 +9575,7 @@ var UnimplementedView = class extends react.default.Component {
9559
9575
  };
9560
9576
  //#endregion
9561
9577
  //#region ../../packages/react-native-web-lite/dist/esm/TouchableOpacity.mjs
9562
- var _excluded$16 = [
9578
+ var _excluded$14 = [
9563
9579
  "activeOpacity",
9564
9580
  "delayPressIn",
9565
9581
  "delayPressOut",
@@ -9574,7 +9590,7 @@ var _excluded$16 = [
9574
9590
  "style"
9575
9591
  ];
9576
9592
  function TouchableOpacityImpl(props, forwardedRef) {
9577
- const { activeOpacity, delayPressIn, delayPressOut, delayLongPress, disabled, focusable, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, style } = props, rest = _objectWithoutProperties(props, _excluded$16);
9593
+ const { activeOpacity, delayPressIn, delayPressOut, delayLongPress, disabled, focusable, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, style } = props, rest = _objectWithoutProperties(props, _excluded$14);
9578
9594
  const hostRef = (0, react.useRef)(null);
9579
9595
  const setRef = useMergeRefs$1(forwardedRef, hostRef);
9580
9596
  const [duration, setDuration] = (0, react.useState)("0s");
@@ -9702,7 +9718,7 @@ var TouchableWithoutFeedback = react.memo(react.forwardRef(TouchableWithoutFeedb
9702
9718
  TouchableWithoutFeedback.displayName = "TouchableWithoutFeedback";
9703
9719
  //#endregion
9704
9720
  //#region ../../packages/react-native-web-lite/dist/esm/ActivityIndicator/index.mjs
9705
- var _excluded$15 = [
9721
+ var _excluded$13 = [
9706
9722
  "animating",
9707
9723
  "color",
9708
9724
  "hidesWhenStopped",
@@ -9718,7 +9734,7 @@ var createSvgCircle = (style) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("cir
9718
9734
  style
9719
9735
  });
9720
9736
  var ActivityIndicator = react.forwardRef((props, forwardedRef) => {
9721
- const { animating = true, color = "#1976D2", hidesWhenStopped = true, size = "small", style } = props, other = _objectWithoutProperties(props, _excluded$15);
9737
+ const { animating = true, color = "#1976D2", hidesWhenStopped = true, size = "small", style } = props, other = _objectWithoutProperties(props, _excluded$13);
9722
9738
  const svg = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
9723
9739
  height: "100%",
9724
9740
  viewBox: "0 0 32 32",
@@ -9782,7 +9798,7 @@ var indicatorSizes = StyleSheet.create({
9782
9798
  });
9783
9799
  //#endregion
9784
9800
  //#region ../../packages/react-native-web-lite/dist/esm/ImageBackground/index.mjs
9785
- var _excluded$14 = [
9801
+ var _excluded$12 = [
9786
9802
  "children",
9787
9803
  "style",
9788
9804
  "imageStyle",
@@ -9790,7 +9806,7 @@ var _excluded$14 = [
9790
9806
  ];
9791
9807
  var emptyObject$1 = {};
9792
9808
  var ImageBackground = (0, react.forwardRef)((props, forwardedRef) => {
9793
- const { children, style = emptyObject$1, imageStyle, imageRef } = props, rest = _objectWithoutProperties(props, _excluded$14);
9809
+ const { children, style = emptyObject$1, imageStyle, imageRef } = props, rest = _objectWithoutProperties(props, _excluded$12);
9794
9810
  const { height, width } = StyleSheet.flatten(style);
9795
9811
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(View$2, {
9796
9812
  ref: forwardedRef,
@@ -9812,7 +9828,7 @@ var ImageBackground = (0, react.forwardRef)((props, forwardedRef) => {
9812
9828
  ImageBackground.displayName = "ImageBackground";
9813
9829
  //#endregion
9814
9830
  //#region ../../packages/react-native-web-lite/dist/esm/KeyboardAvoidingView/index.mjs
9815
- var _excluded$13 = [
9831
+ var _excluded$11 = [
9816
9832
  "behavior",
9817
9833
  "contentContainerStyle",
9818
9834
  "keyboardVerticalOffset"
@@ -9833,7 +9849,7 @@ var KeyboardAvoidingView = class extends react.Component {
9833
9849
  }
9834
9850
  onKeyboardChange(event) {}
9835
9851
  render() {
9836
- const _this$props = this.props, { behavior, contentContainerStyle, keyboardVerticalOffset } = _this$props, rest = _objectWithoutProperties(_this$props, _excluded$13);
9852
+ const _this$props = this.props, { behavior, contentContainerStyle, keyboardVerticalOffset } = _this$props, rest = _objectWithoutProperties(_this$props, _excluded$11);
9837
9853
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(View$2, _objectSpread2({ onLayout: this.onLayout }, rest));
9838
9854
  }
9839
9855
  };
@@ -9850,7 +9866,7 @@ var LogBox = {
9850
9866
  var Modal = () => null;
9851
9867
  //#endregion
9852
9868
  //#region ../../packages/react-native-web-lite/dist/esm/Pressable/index.mjs
9853
- var _excluded$12 = [
9869
+ var _excluded$10 = [
9854
9870
  "children",
9855
9871
  "delayLongPress",
9856
9872
  "delayPressIn",
@@ -9873,7 +9889,7 @@ var _excluded$12 = [
9873
9889
  "testOnly_pressed"
9874
9890
  ];
9875
9891
  function Pressable(props, forwardedRef) {
9876
- const { children, delayLongPress, delayPressIn, delayPressOut, disabled, focusable, onBlur, onContextMenu, onFocus, onHoverIn, onHoverOut, onKeyDown, onLongPress, onPress, onPressMove, onPressIn, onPressOut, style, testOnly_hovered, testOnly_pressed } = props, rest = _objectWithoutProperties(props, _excluded$12);
9892
+ const { children, delayLongPress, delayPressIn, delayPressOut, disabled, focusable, onBlur, onContextMenu, onFocus, onHoverIn, onHoverOut, onKeyDown, onLongPress, onPress, onPressMove, onPressIn, onPressOut, style, testOnly_hovered, testOnly_pressed } = props, rest = _objectWithoutProperties(props, _excluded$10);
9877
9893
  const [hovered, setHovered] = useForceableState(testOnly_hovered === true);
9878
9894
  const [focused, setFocused] = useForceableState(false);
9879
9895
  const [pressed, setPressed] = useForceableState(testOnly_pressed === true);
@@ -9972,13 +9988,13 @@ var PressableComponent = (0, react.memo)((0, react.forwardRef)(Pressable));
9972
9988
  PressableComponent.displayName = "Pressable";
9973
9989
  //#endregion
9974
9990
  //#region ../../packages/react-native-web-lite/dist/esm/SafeAreaView/index.mjs
9975
- var _excluded$11 = ["style"];
9991
+ var _excluded$9 = ["style"];
9976
9992
  var cssFunction = (() => {
9977
9993
  if (canUseDOM$1 && window.CSS && window.CSS.supports && window.CSS.supports("top: constant(safe-area-inset-top)")) return "constant";
9978
9994
  return "env";
9979
9995
  })();
9980
9996
  var SafeAreaView = react.forwardRef((props, ref) => {
9981
- const { style } = props, rest = _objectWithoutProperties(props, _excluded$11);
9997
+ const { style } = props, rest = _objectWithoutProperties(props, _excluded$9);
9982
9998
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(View$2, _objectSpread2(_objectSpread2({}, rest), {}, {
9983
9999
  ref,
9984
10000
  style: StyleSheet.compose(styles$1.root, style)
@@ -10523,7 +10539,7 @@ function getThemeClassNames(name) {
10523
10539
  }
10524
10540
  //#endregion
10525
10541
  //#region ../helpers/dist/esm/composeEventHandlers.native.js
10526
- function _type_of$12(obj) {
10542
+ function _type_of$13(obj) {
10527
10543
  "@swc/helpers - typeof";
10528
10544
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
10529
10545
  }
@@ -10532,7 +10548,7 @@ function composeEventHandlers(og, next) {
10532
10548
  if (!og || !next) return next || og || void 0;
10533
10549
  return function(event) {
10534
10550
  og === null || og === void 0 || og(event);
10535
- var isPrevented = !!event && (typeof event === "undefined" ? "undefined" : _type_of$12(event)) === "object" && ("defaultPrevented" in event && Boolean(event.defaultPrevented) || "isCanceled" in event && Boolean(event.isCanceled));
10551
+ var isPrevented = !!event && (typeof event === "undefined" ? "undefined" : _type_of$13(event)) === "object" && ("defaultPrevented" in event && Boolean(event.defaultPrevented) || "isCanceled" in event && Boolean(event.isCanceled));
10536
10552
  if (!event || !checkDefaultPrevented || !isPrevented) return next === null || next === void 0 ? void 0 : next(event);
10537
10553
  };
10538
10554
  }
@@ -10581,61 +10597,156 @@ function resolvePlatformNames(nativeProp) {
10581
10597
  return set;
10582
10598
  }
10583
10599
  //#endregion
10600
+ //#region ../style-grammar/dist/esm/tokenCategories.mjs
10601
+ var tokenCategoryNames = [
10602
+ "",
10603
+ "space",
10604
+ "size",
10605
+ "radius",
10606
+ "zIndex",
10607
+ "color",
10608
+ "fontFamily",
10609
+ "fontSize",
10610
+ "fontWeight",
10611
+ "lineHeight",
10612
+ "letterSpacing"
10613
+ ];
10614
+ var propToTokenCategoryCode = Object.freeze({
10615
+ borderRadius: 3,
10616
+ borderTopLeftRadius: 3,
10617
+ borderTopRightRadius: 3,
10618
+ borderBottomLeftRadius: 3,
10619
+ borderBottomRightRadius: 3,
10620
+ borderTopStartRadius: 3,
10621
+ borderTopEndRadius: 3,
10622
+ borderBottomStartRadius: 3,
10623
+ borderBottomEndRadius: 3,
10624
+ borderStartStartRadius: 3,
10625
+ borderStartEndRadius: 3,
10626
+ borderEndStartRadius: 3,
10627
+ borderEndEndRadius: 3,
10628
+ width: 2,
10629
+ height: 2,
10630
+ minWidth: 2,
10631
+ minHeight: 2,
10632
+ maxWidth: 2,
10633
+ maxHeight: 2,
10634
+ blockSize: 2,
10635
+ minBlockSize: 2,
10636
+ maxBlockSize: 2,
10637
+ inlineSize: 2,
10638
+ minInlineSize: 2,
10639
+ maxInlineSize: 2,
10640
+ shadowRadius: 2,
10641
+ zIndex: 4,
10642
+ backgroundColor: 5,
10643
+ borderColor: 5,
10644
+ borderBlockStartColor: 5,
10645
+ borderBlockEndColor: 5,
10646
+ borderBlockColor: 5,
10647
+ borderBottomColor: 5,
10648
+ borderInlineColor: 5,
10649
+ borderInlineStartColor: 5,
10650
+ borderInlineEndColor: 5,
10651
+ borderTopColor: 5,
10652
+ borderLeftColor: 5,
10653
+ borderRightColor: 5,
10654
+ borderEndColor: 5,
10655
+ borderStartColor: 5,
10656
+ shadowColor: 5,
10657
+ color: 5,
10658
+ textDecorationColor: 5,
10659
+ textShadowColor: 5,
10660
+ outlineColor: 5,
10661
+ caretColor: 5,
10662
+ x: 1,
10663
+ y: 1,
10664
+ borderWidth: 1,
10665
+ borderTopWidth: 1,
10666
+ borderRightWidth: 1,
10667
+ borderBottomWidth: 1,
10668
+ borderLeftWidth: 1,
10669
+ borderBlockWidth: 1,
10670
+ borderBlockStartWidth: 1,
10671
+ borderBlockEndWidth: 1,
10672
+ borderInlineWidth: 1,
10673
+ borderInlineStartWidth: 1,
10674
+ borderInlineEndWidth: 1,
10675
+ outlineOffset: 1,
10676
+ outlineWidth: 1,
10677
+ gap: 1,
10678
+ rowGap: 1,
10679
+ columnGap: 1,
10680
+ top: 1,
10681
+ right: 1,
10682
+ bottom: 1,
10683
+ left: 1,
10684
+ inset: 1,
10685
+ insetBlock: 1,
10686
+ insetBlockEnd: 1,
10687
+ insetBlockStart: 1,
10688
+ insetInline: 1,
10689
+ insetInlineEnd: 1,
10690
+ insetInlineStart: 1,
10691
+ margin: 1,
10692
+ marginBlock: 1,
10693
+ marginBlockEnd: 1,
10694
+ marginBlockStart: 1,
10695
+ marginInline: 1,
10696
+ marginInlineEnd: 1,
10697
+ marginInlineStart: 1,
10698
+ marginTop: 1,
10699
+ marginRight: 1,
10700
+ marginBottom: 1,
10701
+ marginEnd: 1,
10702
+ marginLeft: 1,
10703
+ marginHorizontal: 1,
10704
+ marginStart: 1,
10705
+ marginVertical: 1,
10706
+ padding: 1,
10707
+ paddingBlock: 1,
10708
+ paddingBlockEnd: 1,
10709
+ paddingBlockStart: 1,
10710
+ paddingInline: 1,
10711
+ paddingInlineEnd: 1,
10712
+ paddingInlineStart: 1,
10713
+ paddingTop: 1,
10714
+ paddingRight: 1,
10715
+ paddingBottom: 1,
10716
+ paddingEnd: 1,
10717
+ paddingLeft: 1,
10718
+ paddingHorizontal: 1,
10719
+ paddingStart: 1,
10720
+ paddingVertical: 1,
10721
+ fontFamily: 6,
10722
+ fontSize: 7,
10723
+ fontWeight: 8,
10724
+ lineHeight: 9,
10725
+ letterSpacing: 10
10726
+ });
10727
+ //#endregion
10584
10728
  //#region ../helpers/dist/esm/tokenCategories.native.js
10585
- var tokenCategories = {
10586
- radius: {
10587
- borderRadius: true,
10588
- borderTopLeftRadius: true,
10589
- borderTopRightRadius: true,
10590
- borderBottomLeftRadius: true,
10591
- borderBottomRightRadius: true,
10592
- borderTopStartRadius: true,
10593
- borderTopEndRadius: true,
10594
- borderBottomStartRadius: true,
10595
- borderBottomEndRadius: true,
10596
- borderStartStartRadius: true,
10597
- borderStartEndRadius: true,
10598
- borderEndStartRadius: true,
10599
- borderEndEndRadius: true
10600
- },
10601
- size: {
10602
- width: true,
10603
- height: true,
10604
- minWidth: true,
10605
- minHeight: true,
10606
- maxWidth: true,
10607
- maxHeight: true,
10608
- blockSize: true,
10609
- minBlockSize: true,
10610
- maxBlockSize: true,
10611
- inlineSize: true,
10612
- minInlineSize: true,
10613
- maxInlineSize: true,
10614
- shadowRadius: true
10615
- },
10616
- zIndex: { zIndex: true },
10617
- color: {
10618
- backgroundColor: true,
10619
- borderColor: true,
10620
- borderBlockStartColor: true,
10621
- borderBlockEndColor: true,
10622
- borderBlockColor: true,
10623
- borderBottomColor: true,
10624
- borderInlineColor: true,
10625
- borderInlineStartColor: true,
10626
- borderInlineEndColor: true,
10627
- borderTopColor: true,
10628
- borderLeftColor: true,
10629
- borderRightColor: true,
10630
- borderEndColor: true,
10631
- borderStartColor: true,
10632
- shadowColor: true,
10633
- color: true,
10634
- textDecorationColor: true,
10635
- textShadowColor: true,
10636
- outlineColor: true
10637
- }
10729
+ var _loop$1 = function(_i2, _iter2) {
10730
+ var category = _iter2[_i2];
10731
+ var view = void 0;
10732
+ Object.defineProperty(tokenCategories, category, {
10733
+ enumerable: true,
10734
+ get() {
10735
+ if (view) return view;
10736
+ view = {};
10737
+ var code = tokenCategoryNames.indexOf(category);
10738
+ for (var property in propToTokenCategoryCode) if (propToTokenCategoryCode[property] === code) view[property] = true;
10739
+ return view;
10740
+ }
10741
+ });
10638
10742
  };
10743
+ var tokenCategories = {};
10744
+ for (var _i = 0, _iter = [
10745
+ "radius",
10746
+ "size",
10747
+ "zIndex",
10748
+ "color"
10749
+ ]; _i < _iter.length; _i++) _loop$1(_i, _iter);
10639
10750
  //#endregion
10640
10751
  //#region ../helpers/dist/esm/validStyleProps.native.js
10641
10752
  var cssShorthandLonghands = {
@@ -10664,11 +10775,6 @@ var textColors = {
10664
10775
  textDecorationColor: true,
10665
10776
  textShadowColor: true
10666
10777
  };
10667
- var _tokenCategories$colo = tokenCategories.color, { color: _textOnlyColor, textDecorationColor: _textOnlyDecoration, textShadowColor: _textOnlyShadow } = _tokenCategories$colo, viewColorCategoryProps = _objectWithoutProperties(_tokenCategories$colo, [
10668
- "color",
10669
- "textDecorationColor",
10670
- "textShadowColor"
10671
- ]);
10672
10778
  var nonAnimatableViewProps = {
10673
10779
  alignContent: true,
10674
10780
  alignItems: true,
@@ -10767,7 +10873,7 @@ var stylePropsTransform = {
10767
10873
  rotateX: true,
10768
10874
  rotateZ: true
10769
10875
  };
10770
- var stylePropsView = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, nonAnimatableViewProps), {}, {
10876
+ var stylePropsView = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, nonAnimatableViewProps), {}, {
10771
10877
  borderBottomWidth: true,
10772
10878
  borderLeftWidth: true,
10773
10879
  borderRightWidth: true,
@@ -10830,8 +10936,50 @@ var stylePropsView = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2
10830
10936
  insetInline: true,
10831
10937
  insetInlineEnd: true,
10832
10938
  insetInlineStart: true,
10833
- shadowOffset: true
10834
- }, viewColorCategoryProps), tokenCategories.radius), tokenCategories.size), stylePropsTransform), stylePropsUnitless), isAndroid ? { elevationAndroid: true } : {}), {}, {
10939
+ shadowOffset: true,
10940
+ backgroundColor: true,
10941
+ borderColor: true,
10942
+ borderBlockStartColor: true,
10943
+ borderBlockEndColor: true,
10944
+ borderBlockColor: true,
10945
+ borderBottomColor: true,
10946
+ borderInlineColor: true,
10947
+ borderInlineStartColor: true,
10948
+ borderInlineEndColor: true,
10949
+ borderTopColor: true,
10950
+ borderLeftColor: true,
10951
+ borderRightColor: true,
10952
+ borderEndColor: true,
10953
+ borderStartColor: true,
10954
+ shadowColor: true,
10955
+ outlineColor: true,
10956
+ borderRadius: true,
10957
+ borderTopLeftRadius: true,
10958
+ borderTopRightRadius: true,
10959
+ borderBottomLeftRadius: true,
10960
+ borderBottomRightRadius: true,
10961
+ borderTopStartRadius: true,
10962
+ borderTopEndRadius: true,
10963
+ borderBottomStartRadius: true,
10964
+ borderBottomEndRadius: true,
10965
+ borderStartStartRadius: true,
10966
+ borderStartEndRadius: true,
10967
+ borderEndStartRadius: true,
10968
+ borderEndEndRadius: true,
10969
+ width: true,
10970
+ height: true,
10971
+ minWidth: true,
10972
+ minHeight: true,
10973
+ maxWidth: true,
10974
+ maxHeight: true,
10975
+ blockSize: true,
10976
+ minBlockSize: true,
10977
+ maxBlockSize: true,
10978
+ inlineSize: true,
10979
+ minInlineSize: true,
10980
+ maxInlineSize: true,
10981
+ shadowRadius: true
10982
+ }, stylePropsTransform), stylePropsUnitless), isAndroid ? { elevationAndroid: true } : {}), {}, {
10835
10983
  boxShadow: true,
10836
10984
  border: true,
10837
10985
  borderBlock: true,
@@ -10841,7 +10989,6 @@ var stylePropsView = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2
10841
10989
  backgroundImage: true,
10842
10990
  experimental_backgroundImage: true,
10843
10991
  outline: true,
10844
- outlineColor: true,
10845
10992
  outlineOffset: true,
10846
10993
  outlineWidth: true
10847
10994
  });
@@ -11409,7 +11556,7 @@ function forEachModifierName(source, visit) {
11409
11556
  }
11410
11557
  return;
11411
11558
  }
11412
- for (var name2 in source) if (Object.prototype.hasOwnProperty.call(source, name2)) visit(name2, rank++);
11559
+ for (var name2 in source) visit(name2, rank++);
11413
11560
  }
11414
11561
  function isRootThemeName(name) {
11415
11562
  return name.length > 0 && !name.includes("_");
@@ -11794,7 +11941,7 @@ var getThemes = function() {
11794
11941
  };
11795
11942
  var updateConfig = function(key, value) {
11796
11943
  var config = getConfigFromGlobalOrLocal();
11797
- if (!config || !Object.prototype.hasOwnProperty.call(config, key)) return;
11944
+ if (!config || key === "__proto__" || !(key in config)) return;
11798
11945
  Object.assign(config[key], value);
11799
11946
  prepareConfigRevision(config);
11800
11947
  };
@@ -11821,7 +11968,7 @@ function loadAnimationDriver(name, driver) {
11821
11968
  }
11822
11969
  //#endregion
11823
11970
  //#region ../web/dist/esm/createVariable.native.js
11824
- function _type_of$11(obj) {
11971
+ function _type_of$12(obj) {
11825
11972
  "@swc/helpers - typeof";
11826
11973
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
11827
11974
  }
@@ -11849,7 +11996,7 @@ function variableToString(vrble) {
11849
11996
  return `${vrble || ""}`;
11850
11997
  }
11851
11998
  function isVariable(v) {
11852
- return v && (typeof v === "undefined" ? "undefined" : _type_of$11(v)) === "object" && "isVar" in v;
11999
+ return v && (typeof v === "undefined" ? "undefined" : _type_of$12(v)) === "object" && "isVar" in v;
11853
12000
  }
11854
12001
  function getVariable(nameOrVariable) {
11855
12002
  var group = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "size";
@@ -12848,9 +12995,9 @@ var useThemeWithState = function(props) {
12848
12995
  };
12849
12996
  //#endregion
12850
12997
  //#region ../web/dist/esm/_withStableStyle.native.js
12851
- var _excluded$10 = ["ref"];
12998
+ var _excluded$8 = ["ref"];
12852
12999
  var _excluded2$4 = ["_expressions"];
12853
- function _type_of$10(obj) {
13000
+ function _type_of$11(obj) {
12854
13001
  "@swc/helpers - typeof";
12855
13002
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
12856
13003
  }
@@ -12859,7 +13006,7 @@ var EMPTY_THEME = {};
12859
13006
  var FALLBACK_THEME_CACHE = /* @__PURE__ */ new WeakMap();
12860
13007
  var _withStableStyle = function(Component, createStyle, hasThemeKeys, hasMediaKeys) {
12861
13008
  return /* @__PURE__ */ react.default.memo(function WithStableStyle(props) {
12862
- var { ref } = props, propsWithoutRef = _objectWithoutProperties(props, _excluded$10);
13009
+ var { ref } = props, propsWithoutRef = _objectWithoutProperties(props, _excluded$8);
12863
13010
  var { _expressions = EMPTY_EXPRESSIONS } = propsWithoutRef, rest = _objectWithoutProperties(propsWithoutRef, _excluded2$4);
12864
13011
  var parentId = (0, react.useContext)(ThemeStateContext);
12865
13012
  var theme = hasThemeKeys && parentId ? useTheme() : null;
@@ -12877,7 +13024,7 @@ var _withStableStyle = function(Component, createStyle, hasThemeKeys, hasMediaKe
12877
13024
  if (!gettableTheme) {
12878
13025
  var _loop = function(key2) {
12879
13026
  var value = fallbackTheme[key2];
12880
- gettableTheme[key2] = typeof (value === null || value === void 0 ? void 0 : value.get) === "function" ? value : _objectSpread2(_objectSpread2({}, value && (typeof value === "undefined" ? "undefined" : _type_of$10(value)) === "object" ? value : { val: value }), {}, { get: function() {
13027
+ gettableTheme[key2] = typeof (value === null || value === void 0 ? void 0 : value.get) === "function" ? value : _objectSpread2(_objectSpread2({}, value && (typeof value === "undefined" ? "undefined" : _type_of$11(value)) === "object" ? value : { val: value }), {}, { get: function() {
12881
13028
  return getVariable(value);
12882
13029
  } });
12883
13030
  };
@@ -12896,33 +13043,6 @@ var _withStableStyle = function(Component, createStyle, hasThemeKeys, hasMediaKe
12896
13043
  });
12897
13044
  };
12898
13045
  //#endregion
12899
- //#region ../compose-refs/dist/esm/compose-refs.native.js
12900
- var _excluded$9 = ["ref"];
12901
- function setRef(ref, value) {
12902
- if (typeof ref === "function") ref(value);
12903
- else if (ref) ref.current = value;
12904
- }
12905
- function composeRefs() {
12906
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
12907
- return function(node) {
12908
- return refs.forEach(function(ref) {
12909
- return setRef(ref, node);
12910
- });
12911
- };
12912
- }
12913
- function useComposedRefs() {
12914
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
12915
- return react.useCallback(composeRefs(...refs), refs);
12916
- }
12917
- function createRefComponent(render) {
12918
- function RefComponent(props) {
12919
- var { ref } = props;
12920
- return render(_objectWithoutProperties(props, _excluded$9), ref);
12921
- }
12922
- RefComponent.displayName = render.name;
12923
- return RefComponent;
12924
- }
12925
- //#endregion
12926
13046
  //#region ../web/dist/esm/helpers/nativeStyleEngine.native.js
12927
13047
  var engine = null;
12928
13048
  var scopeStates = /* @__PURE__ */ new Map();
@@ -13152,7 +13272,7 @@ function queueNativeViewState(entry) {
13152
13272
  }
13153
13273
  //#endregion
13154
13274
  //#region ../web/dist/esm/_withNativeStyle.native.js
13155
- var _excluded$8 = ["_scopeId"];
13275
+ var _excluded$7 = ["_scopeId"];
13156
13276
  var _excluded2$3 = ["ref", "_expressions"];
13157
13277
  var _withNativeStyle = function(Component, baseStyle, themeStyleKeys) {
13158
13278
  var Fallback = _withStableStyle(Component, function(theme) {
@@ -13164,7 +13284,7 @@ var _withNativeStyle = function(Component, baseStyle, themeStyleKeys) {
13164
13284
  return [baseStyle, themedStyle];
13165
13285
  }, true, false);
13166
13286
  var Native = /* @__PURE__ */ react.default.memo(function NativeStyleView(param) {
13167
- var { _scopeId } = param, props = _objectWithoutProperties(param, _excluded$8);
13287
+ var { _scopeId } = param, props = _objectWithoutProperties(param, _excluded$7);
13168
13288
  var { ref, _expressions: _ignoredExpressions } = props, rest = _objectWithoutProperties(props, _excluded2$3);
13169
13289
  var link = (0, react.useRef)(null);
13170
13290
  var themeState = getThemeState(_scopeId);
@@ -13729,45 +13849,9 @@ function wrapWithGestureDetector(content, gesture, _stateRef, isHOC, isComposite
13729
13849
  }, react.default.createElement(GestureDetector, { gesture }, content));
13730
13850
  }
13731
13851
  //#endregion
13732
- //#region ../web/dist/esm/helpers/getDefaultProps.native.js
13733
- var getDefaultProps = function(staticConfig) {
13734
- return staticConfig.defaultProps;
13735
- };
13736
- //#endregion
13737
13852
  //#region ../web/dist/esm/helpers/componentDisplayName.native.js
13738
13853
  var componentDisplayName = /* @__PURE__ */ Symbol.for("tamagui.componentDisplayName");
13739
- function setComponentDisplayName(component, displayName) {
13740
- if (displayName) {
13741
- component.displayName = displayName;
13742
- component[componentDisplayName] = displayName;
13743
- }
13744
- return component;
13745
- }
13746
- //#endregion
13747
- //#region ../web/dist/esm/types.native.js
13748
- var variantResolverNames = [
13749
- "Size",
13750
- "Space",
13751
- "Color",
13752
- "Radius",
13753
- "ZIndex",
13754
- "Theme",
13755
- "FontSize",
13756
- "FontStyle",
13757
- "FontTransform",
13758
- "FontLineHeight",
13759
- "FontLetterSpacing",
13760
- "number",
13761
- "string",
13762
- "boolean",
13763
- "any"
13764
- ];
13765
- function createVariantResolver(key, resolver) {
13766
- return resolver;
13767
- }
13768
- //#endregion
13769
- //#region ../web/dist/esm/helpers/warnOnce.native.js
13770
- function warnOnce(key) {
13854
+ function flushDirectStyles(_state) {
13771
13855
  arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
13772
13856
  }
13773
13857
  //#endregion
@@ -14086,43 +14170,243 @@ var borderDefaults = {
14086
14170
  borderLeftWidth: nativeStyle || "borderLeftStyle",
14087
14171
  borderRightWidth: nativeStyle || "borderRightStyle"
14088
14172
  };
14089
- function flushDirectStyles(_state) {
14090
- arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
14091
- }
14092
- _objectSpread2(_objectSpread2({}, stylePropsAll), {}, {
14093
- translateX: true,
14094
- translateY: true
14095
- });
14096
- var pxStringRe = /^-?\d*\.?\d+px$/;
14097
- function normalizeValueWithProperty(value) {
14098
- arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
14099
- if (typeof value === "string" && pxStringRe.test(value)) return Number.parseFloat(value);
14173
+ //#endregion
14174
+ //#region ../web/dist/esm/helpers/styleStaticConfig.native.js
14175
+ var styleStaticConfigCache = /* @__PURE__ */ new WeakMap();
14176
+ function getStyleStaticConfig(staticConfig, conf) {
14177
+ var _staticConfig_styleFrontend_normalizeStaticConfig, _staticConfig_styleFrontend, _staticConfig_context;
14178
+ var configCache = styleStaticConfigCache.get(staticConfig);
14179
+ var revision = getConfigRevisionState(conf).revision;
14180
+ var cached = configCache === null || configCache === void 0 ? void 0 : configCache.get(conf);
14181
+ if ((cached === null || cached === void 0 ? void 0 : cached.revision) === revision) return cached.value;
14182
+ var normalized = (_staticConfig_styleFrontend = staticConfig.styleFrontend) === null || _staticConfig_styleFrontend === void 0 ? void 0 : (_staticConfig_styleFrontend_normalizeStaticConfig = _staticConfig_styleFrontend.normalizeStaticConfig) === null || _staticConfig_styleFrontend_normalizeStaticConfig === void 0 ? void 0 : _staticConfig_styleFrontend_normalizeStaticConfig.call(_staticConfig_styleFrontend, staticConfig, conf);
14183
+ var variants = normalized ? normalized.variants : staticConfig.variants;
14184
+ var authoredBaseStyle = normalized ? normalized.baseStyle : staticConfig.baseStyle;
14185
+ var authoredDefaultProps = staticConfig.defaultProps;
14186
+ var baseStyle;
14187
+ var baseVariantProps;
14188
+ var defaultProps;
14189
+ if (authoredDefaultProps) {
14190
+ var validStyles$1 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? stylePropsText : validStyles);
14191
+ for (var key in authoredDefaultProps) {
14192
+ var isVariant = Boolean(variants === null || variants === void 0 ? void 0 : variants[key]);
14193
+ var isStyle = key !== "transition" && (key in validStyles$1 || key in conf.shorthands);
14194
+ if (isVariant || isStyle) (baseStyle || (baseStyle = authoredBaseStyle ? _objectSpread2({}, authoredBaseStyle) : {}))[key] = authoredDefaultProps[key];
14195
+ if (isVariant || !isStyle) (defaultProps || (defaultProps = {}))[key] = authoredDefaultProps[key];
14196
+ if (isVariant) (baseVariantProps || (baseVariantProps = {}))[key] = authoredDefaultProps[key];
14197
+ }
14198
+ }
14199
+ var keys = staticConfig.contextProps || ((_staticConfig_context = staticConfig.context) === null || _staticConfig_context === void 0 ? void 0 : _staticConfig_context.propKeys);
14200
+ var value = {
14201
+ baseStyle: baseStyle || authoredBaseStyle,
14202
+ baseVariantProps,
14203
+ defaultProps,
14204
+ styledContextKeys: keys ? new Set(keys) : null,
14205
+ variants,
14206
+ passthroughClassName: normalized ? normalized.passthroughClassName : staticConfig.passthroughClassName
14207
+ };
14208
+ if (!configCache) {
14209
+ configCache = /* @__PURE__ */ new WeakMap();
14210
+ styleStaticConfigCache.set(staticConfig, configCache);
14211
+ }
14212
+ configCache.set(conf, {
14213
+ revision,
14214
+ value
14215
+ });
14100
14216
  return value;
14101
14217
  }
14102
14218
  //#endregion
14103
- //#region ../web/dist/esm/helpers/styleOriginalValues.native.js
14104
- var styleOriginalValues = /* @__PURE__ */ new WeakMap();
14105
- //#endregion
14106
- //#region ../web/dist/esm/helpers/normalizeStyle.native.js
14107
- function normalizeStyle(style) {
14108
- var disableNormalize = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, mergeTransforms = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
14109
- var res = {};
14110
- var originalValues = styleOriginalValues.get(style);
14111
- var nextOriginalValues;
14112
- var transformAccumulator;
14113
- for (var key in style) {
14114
- var prop = style[key];
14115
- if (prop == null) continue;
14116
- var originalValue = originalValues === null || originalValues === void 0 ? void 0 : originalValues[key];
14117
- if (mergeTransforms && (key === "transform" || key in stylePropsTransform)) {
14118
- transformAccumulator || (transformAccumulator = createTransformAccumulator());
14119
- addTransformValue(transformAccumulator, key, prop);
14120
- continue;
14219
+ //#region ../web/dist/esm/helpers/variantResolvers.native.js
14220
+ function _type_of$10(obj) {
14221
+ "@swc/helpers - typeof";
14222
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
14223
+ }
14224
+ var variantResolverCache = /* @__PURE__ */ new WeakMap();
14225
+ function getCompiledVariantResolvers(variant) {
14226
+ var compiled = variantResolverCache.get(variant);
14227
+ if (!compiled) {
14228
+ var next = [];
14229
+ for (var key in variant) {
14230
+ var parts = parseVariantResolverKey(key);
14231
+ if (parts) next.push({
14232
+ key,
14233
+ parts
14234
+ });
14121
14235
  }
14122
- var value = disableNormalize ? prop : normalizeValueWithProperty(prop, key);
14123
- var out = mergeTransforms ? void 0 : expandStyle(key, value);
14124
- if (out) {
14125
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
14236
+ compiled = next;
14237
+ variantResolverCache.set(variant, compiled);
14238
+ }
14239
+ return compiled;
14240
+ }
14241
+ function parseVariantResolverKey(key) {
14242
+ if (!key) return null;
14243
+ return key.split("|").map(function(part) {
14244
+ return part.trim();
14245
+ });
14246
+ }
14247
+ function getVariantDefinition(variant, value, conf, param) {
14248
+ var { theme } = param;
14249
+ if (!variant) return;
14250
+ if (value === void 0) return;
14251
+ if (typeof variant === "function") return variant;
14252
+ if (value in variant) return variant[value];
14253
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
14254
+ try {
14255
+ for (var _iterator = getCompiledVariantResolvers(variant)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
14256
+ var { key, parts } = _step.value;
14257
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
14258
+ try {
14259
+ for (var _iterator1 = parts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
14260
+ var part = _step1.value;
14261
+ if (matchesVariantResolver(part, value, conf, theme)) return variant[key];
14262
+ }
14263
+ } catch (err) {
14264
+ _didIteratorError1 = true;
14265
+ _iteratorError1 = err;
14266
+ } finally {
14267
+ try {
14268
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
14269
+ } finally {
14270
+ if (_didIteratorError1) throw _iteratorError1;
14271
+ }
14272
+ }
14273
+ }
14274
+ } catch (err) {
14275
+ _didIteratorError = true;
14276
+ _iteratorError = err;
14277
+ } finally {
14278
+ try {
14279
+ if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
14280
+ } finally {
14281
+ if (_didIteratorError) throw _iteratorError;
14282
+ }
14283
+ }
14284
+ }
14285
+ function matchesVariantResolver(resolverName, value, conf, theme) {
14286
+ var string = typeof value === "string";
14287
+ var number = typeof value === "number";
14288
+ var rem = string && value.length > 3 && value.endsWith("rem") && Number.isFinite(Number(value.slice(0, -3)));
14289
+ switch (resolverName) {
14290
+ case "Size":
14291
+ case "Space":
14292
+ case "Radius":
14293
+ case "ZIndex": return value === true || number || string || resolverName !== "Size" && isVariable(value);
14294
+ case "Color": return string;
14295
+ case "Theme": return string && !!theme && value in theme;
14296
+ case "FontSize":
14297
+ var _conf_fontsParsed_body_size, _conf_fontsParsed_body;
14298
+ return value === true || !!((_conf_fontsParsed_body = conf.fontsParsed.body) === null || _conf_fontsParsed_body === void 0 ? void 0 : (_conf_fontsParsed_body_size = _conf_fontsParsed_body.size) === null || _conf_fontsParsed_body_size === void 0 ? void 0 : _conf_fontsParsed_body_size[value]) || number || rem;
14299
+ case "FontStyle":
14300
+ var _conf_fontsParsed_body_style, _conf_fontsParsed_body1;
14301
+ return !!((_conf_fontsParsed_body1 = conf.fontsParsed.body) === null || _conf_fontsParsed_body1 === void 0 ? void 0 : (_conf_fontsParsed_body_style = _conf_fontsParsed_body1.style) === null || _conf_fontsParsed_body_style === void 0 ? void 0 : _conf_fontsParsed_body_style[value]) || value === "normal" || value === "italic";
14302
+ case "FontTransform":
14303
+ var _conf_fontsParsed_body_transform, _conf_fontsParsed_body2;
14304
+ return !!((_conf_fontsParsed_body2 = conf.fontsParsed.body) === null || _conf_fontsParsed_body2 === void 0 ? void 0 : (_conf_fontsParsed_body_transform = _conf_fontsParsed_body2.transform) === null || _conf_fontsParsed_body_transform === void 0 ? void 0 : _conf_fontsParsed_body_transform[value]) || value === "none" || value === "capitalize" || value === "uppercase" || value === "lowercase";
14305
+ case "FontLineHeight":
14306
+ var _conf_fontsParsed_body_lineHeight, _conf_fontsParsed_body3;
14307
+ return !!((_conf_fontsParsed_body3 = conf.fontsParsed.body) === null || _conf_fontsParsed_body3 === void 0 ? void 0 : (_conf_fontsParsed_body_lineHeight = _conf_fontsParsed_body3.lineHeight) === null || _conf_fontsParsed_body_lineHeight === void 0 ? void 0 : _conf_fontsParsed_body_lineHeight[value]) || number || rem;
14308
+ case "FontLetterSpacing":
14309
+ var _conf_fontsParsed_body_letterSpacing, _conf_fontsParsed_body4;
14310
+ return !!((_conf_fontsParsed_body4 = conf.fontsParsed.body) === null || _conf_fontsParsed_body4 === void 0 ? void 0 : (_conf_fontsParsed_body_letterSpacing = _conf_fontsParsed_body4.letterSpacing) === null || _conf_fontsParsed_body_letterSpacing === void 0 ? void 0 : _conf_fontsParsed_body_letterSpacing[value]) || number || rem;
14311
+ case "number":
14312
+ case "string":
14313
+ case "boolean": return (typeof value === "undefined" ? "undefined" : _type_of$10(value)) === resolverName;
14314
+ case "any": return true;
14315
+ }
14316
+ }
14317
+ //#endregion
14318
+ //#region ../web/dist/esm/helpers/warnOnce.native.js
14319
+ function warnOnce(key) {
14320
+ arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
14321
+ }
14322
+ //#endregion
14323
+ //#region ../web/dist/esm/helpers/getVariantExtras.native.js
14324
+ var cache$1 = /* @__PURE__ */ new WeakMap();
14325
+ var getVariantExtras = function(styleState) {
14326
+ var cached = cache$1.get(styleState);
14327
+ if ((cached === null || cached === void 0 ? void 0 : cached.props) === styleState.props) return cached.value;
14328
+ var { props, conf, context, theme, styleProps } = styleState;
14329
+ var styledContext = styleProps.styledContext;
14330
+ var fonts = conf.fontsParsed;
14331
+ if (context === null || context === void 0 ? void 0 : context.language) fonts = getFontsForLanguage(conf.fontsParsed, context.language);
14332
+ var next = {
14333
+ fonts,
14334
+ tokens: conf.tokensParsed,
14335
+ theme,
14336
+ context: styledContext,
14337
+ get fontFamily() {
14338
+ return getVariableValue(styleState.fontFamily || styleState.props.fontFamily) || props.fontFamily || getVariableValue(getSetting("defaultFont"));
14339
+ },
14340
+ get font() {
14341
+ var found = fonts[this.fontFamily];
14342
+ if (found) return found;
14343
+ var className = props.className;
14344
+ if (typeof className === "string") {
14345
+ var start = 0;
14346
+ for (var index = 0; index <= className.length; index++) {
14347
+ if (index !== className.length && className.charCodeAt(index) > 32) continue;
14348
+ if (index - start > 5 && className.charCodeAt(start) === 102 && className.charCodeAt(start + 1) === 111 && className.charCodeAt(start + 2) === 110 && className.charCodeAt(start + 3) === 116 && className.charCodeAt(start + 4) === 95) {
14349
+ var name = className.slice(start + 5, index);
14350
+ if (fonts[name]) return fonts[name];
14351
+ }
14352
+ start = index + 1;
14353
+ }
14354
+ }
14355
+ return fonts[conf.defaultFontToken];
14356
+ },
14357
+ props
14358
+ };
14359
+ cache$1.set(styleState, {
14360
+ props,
14361
+ value: next
14362
+ });
14363
+ return next;
14364
+ };
14365
+ var fontLanguageCache = /* @__PURE__ */ new WeakMap();
14366
+ function getFontsForLanguage(fonts, language) {
14367
+ if (fontLanguageCache.has(language)) return fontLanguageCache.get(language);
14368
+ var next = _objectSpread2(_objectSpread2({}, fonts), Object.fromEntries(Object.entries(language).flatMap(function(param) {
14369
+ var [name, lang] = param;
14370
+ if (lang === "default") return [];
14371
+ return [[name, fonts[`${name}_${lang}`]]];
14372
+ })));
14373
+ fontLanguageCache.set(language, next);
14374
+ return next;
14375
+ }
14376
+ _objectSpread2(_objectSpread2({}, stylePropsAll), {}, {
14377
+ translateX: true,
14378
+ translateY: true
14379
+ });
14380
+ var pxStringRe = /^-?\d*\.?\d+px$/;
14381
+ function normalizeValueWithProperty(value) {
14382
+ arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
14383
+ if (typeof value === "string" && pxStringRe.test(value)) return Number.parseFloat(value);
14384
+ return value;
14385
+ }
14386
+ //#endregion
14387
+ //#region ../web/dist/esm/helpers/styleOriginalValues.native.js
14388
+ var styleOriginalValues = /* @__PURE__ */ new WeakMap();
14389
+ //#endregion
14390
+ //#region ../web/dist/esm/helpers/normalizeStyle.native.js
14391
+ function normalizeStyle(style) {
14392
+ var disableNormalize = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, mergeTransforms = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
14393
+ var res = {};
14394
+ var originalValues = styleOriginalValues.get(style);
14395
+ var nextOriginalValues;
14396
+ var transformAccumulator;
14397
+ for (var key in style) {
14398
+ var prop = style[key];
14399
+ if (prop == null) continue;
14400
+ var originalValue = originalValues === null || originalValues === void 0 ? void 0 : originalValues[key];
14401
+ if (mergeTransforms && (key === "transform" || key in stylePropsTransform)) {
14402
+ transformAccumulator || (transformAccumulator = createTransformAccumulator());
14403
+ addTransformValue(transformAccumulator, key, prop);
14404
+ continue;
14405
+ }
14406
+ var value = disableNormalize ? prop : normalizeValueWithProperty(prop, key);
14407
+ var out = mergeTransforms ? void 0 : expandStyle(key, value);
14408
+ if (out) {
14409
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
14126
14410
  try {
14127
14411
  for (var _iterator = out[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
14128
14412
  var [nextKey, nextValue] = _step.value;
@@ -14350,60 +14634,6 @@ function parseNativeTransform(raw) {
14350
14634
  return end && !raw.slice(end).trim() ? out : null;
14351
14635
  }
14352
14636
  //#endregion
14353
- //#region ../web/dist/esm/helpers/getVariantExtras.native.js
14354
- var cache$1 = /* @__PURE__ */ new WeakMap();
14355
- var getVariantExtras = function(styleState) {
14356
- var cached = cache$1.get(styleState);
14357
- if ((cached === null || cached === void 0 ? void 0 : cached.props) === styleState.props) return cached.value;
14358
- var { props, conf, context, theme, styleProps } = styleState;
14359
- var styledContext = styleProps.styledContext;
14360
- var fonts = conf.fontsParsed;
14361
- if (context === null || context === void 0 ? void 0 : context.language) fonts = getFontsForLanguage(conf.fontsParsed, context.language);
14362
- var next = {
14363
- fonts,
14364
- tokens: conf.tokensParsed,
14365
- theme,
14366
- context: styledContext,
14367
- get fontFamily() {
14368
- return getVariableValue(styleState.fontFamily || styleState.props.fontFamily) || props.fontFamily || getVariableValue(getSetting("defaultFont"));
14369
- },
14370
- get font() {
14371
- var found = fonts[this.fontFamily];
14372
- if (found) return found;
14373
- var className = props.className;
14374
- if (typeof className === "string") {
14375
- var start = 0;
14376
- for (var index = 0; index <= className.length; index++) {
14377
- if (index !== className.length && className.charCodeAt(index) > 32) continue;
14378
- if (index - start > 5 && className.charCodeAt(start) === 102 && className.charCodeAt(start + 1) === 111 && className.charCodeAt(start + 2) === 110 && className.charCodeAt(start + 3) === 116 && className.charCodeAt(start + 4) === 95) {
14379
- var name = className.slice(start + 5, index);
14380
- if (fonts[name]) return fonts[name];
14381
- }
14382
- start = index + 1;
14383
- }
14384
- }
14385
- return fonts[conf.defaultFontToken];
14386
- },
14387
- props
14388
- };
14389
- cache$1.set(styleState, {
14390
- props,
14391
- value: next
14392
- });
14393
- return next;
14394
- };
14395
- var fontLanguageCache = /* @__PURE__ */ new WeakMap();
14396
- function getFontsForLanguage(fonts, language) {
14397
- if (fontLanguageCache.has(language)) return fontLanguageCache.get(language);
14398
- var next = _objectSpread2(_objectSpread2({}, fonts), Object.fromEntries(Object.entries(language).flatMap(function(param) {
14399
- var [name, lang] = param;
14400
- if (lang === "default") return [];
14401
- return [[name, fonts[`${name}_${lang}`]]];
14402
- })));
14403
- fontLanguageCache.set(language, next);
14404
- return next;
14405
- }
14406
- //#endregion
14407
14637
  //#region ../web/dist/esm/helpers/resolveRem.native.js
14408
14638
  var remRegex = /(-?[\d.]+)rem/g;
14409
14639
  function resolveRem(value) {
@@ -14554,98 +14784,6 @@ function resolveVariableValue(key, valOrVar, resolveValues) {
14554
14784
  return valOrVar;
14555
14785
  }
14556
14786
  //#endregion
14557
- //#region ../web/dist/esm/helpers/themeRef.native.js
14558
- function _type_of$8(obj) {
14559
- "@swc/helpers - typeof";
14560
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
14561
- }
14562
- var THEME_REF_PREFIX = "theme:";
14563
- function themeRefKey(value) {
14564
- if (typeof value !== "string" || !value.startsWith("theme:")) return null;
14565
- var key = value.slice(THEME_REF_PREFIX.length);
14566
- return key && !key.includes("/") && !key.includes("theme:") ? key : null;
14567
- }
14568
- function containsThemeRef(value) {
14569
- if (typeof value === "string") return value.includes(THEME_REF_PREFIX);
14570
- if (Array.isArray(value)) return value.some(containsThemeRef);
14571
- if (value && (typeof value === "undefined" ? "undefined" : _type_of$8(value)) === "object") return Object.values(value).some(containsThemeRef);
14572
- return false;
14573
- }
14574
- //#endregion
14575
- //#region ../web/dist/esm/helpers/tokenCategories.native.js
14576
- function mapTokenCategory(keys, category) {
14577
- return Object.fromEntries(Object.keys(keys).map(function(key) {
14578
- return [key, category];
14579
- }));
14580
- }
14581
- var tokenCategoryByProperty = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, mapTokenCategory(tokenCategories.size, "size")), mapTokenCategory(tokenCategories.radius, "radius")), mapTokenCategory(tokenCategories.zIndex, "zIndex")), {}, {
14582
- x: "space",
14583
- y: "space",
14584
- fontSize: "fontSize",
14585
- borderWidth: "space",
14586
- borderTopWidth: "space",
14587
- borderRightWidth: "space",
14588
- borderBottomWidth: "space",
14589
- borderLeftWidth: "space",
14590
- borderBlockWidth: "space",
14591
- borderBlockStartWidth: "space",
14592
- borderBlockEndWidth: "space",
14593
- borderInlineWidth: "space",
14594
- borderInlineStartWidth: "space",
14595
- borderInlineEndWidth: "space",
14596
- outlineOffset: "space",
14597
- outlineWidth: "space",
14598
- gap: "space",
14599
- rowGap: "space",
14600
- columnGap: "space",
14601
- top: "space",
14602
- right: "space",
14603
- bottom: "space",
14604
- left: "space",
14605
- inset: "space",
14606
- insetBlock: "space",
14607
- insetBlockEnd: "space",
14608
- insetBlockStart: "space",
14609
- insetInline: "space",
14610
- insetInlineEnd: "space",
14611
- insetInlineStart: "space",
14612
- margin: "space",
14613
- marginBlock: "space",
14614
- marginBlockEnd: "space",
14615
- marginBlockStart: "space",
14616
- marginInline: "space",
14617
- marginInlineEnd: "space",
14618
- marginInlineStart: "space",
14619
- marginTop: "space",
14620
- marginRight: "space",
14621
- marginBottom: "space",
14622
- marginEnd: "space",
14623
- marginLeft: "space",
14624
- marginHorizontal: "space",
14625
- marginStart: "space",
14626
- marginVertical: "space",
14627
- padding: "space",
14628
- paddingBlock: "space",
14629
- paddingBlockEnd: "space",
14630
- paddingBlockStart: "space",
14631
- paddingInline: "space",
14632
- paddingInlineEnd: "space",
14633
- paddingInlineStart: "space",
14634
- paddingTop: "space",
14635
- paddingRight: "space",
14636
- paddingBottom: "space",
14637
- paddingEnd: "space",
14638
- paddingLeft: "space",
14639
- paddingHorizontal: "space",
14640
- paddingStart: "space",
14641
- paddingVertical: "space"
14642
- });
14643
- function getTokenCategoryForProperty(property) {
14644
- if (property === "fontFamily") return "fontFamily";
14645
- if (property === "fontSize" || property === "fontWeight" || property === "lineHeight" || property === "letterSpacing") return "font";
14646
- return tokenCategoryByProperty[property] || (property in tokenCategories.color ? "color" : void 0);
14647
- }
14648
- //#endregion
14649
14787
  //#region ../web/dist/esm/helpers/webPropsToSkip.native.js
14650
14788
  var { textOverflow: __ } = webOnlyStylePropsText, webOnlyStylePropsTextWithoutTextOverflow = _objectWithoutProperties(webOnlyStylePropsText, ["textOverflow"]);
14651
14789
  var webPropsToSkip = _objectSpread2(_objectSpread2(_objectSpread2({}, webOnlyStylePropsView), webOnlyStylePropsTextWithoutTextOverflow), {}, {
@@ -14718,54 +14856,47 @@ function setStyleTokenProvenance(style, provenance) {
14718
14856
  });
14719
14857
  }
14720
14858
  //#endregion
14721
- //#region ../web/dist/esm/helpers/getSplitStyles.native.js
14722
- function _type_of$7(obj) {
14859
+ //#region ../web/dist/esm/helpers/themeRef.native.js
14860
+ function _type_of$8(obj) {
14723
14861
  "@swc/helpers - typeof";
14724
14862
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
14725
14863
  }
14726
- var TAMAGUI_CLASS_PROPS = "$$tamaguiClassProps";
14727
- var shouldTrackStyleTokenProvenance = false;
14728
- function compoundMatcherMatches(expected, actual) {
14729
- if (Array.isArray(expected)) {
14730
- for (var index = 0; index < expected.length; index++) if (expected[index] === actual) return true;
14731
- return false;
14732
- }
14733
- return expected === actual;
14864
+ var THEME_REF_PREFIX = "theme:";
14865
+ function themeRefKey(value) {
14866
+ if (typeof value !== "string" || !value.startsWith("theme:")) return null;
14867
+ var key = value.slice(THEME_REF_PREFIX.length);
14868
+ return key && !key.includes("/") && !key.includes("theme:") ? key : null;
14734
14869
  }
14735
- function compoundMatcherMatchesPayload(expected, source, start, end) {
14736
- if (Array.isArray(expected)) {
14737
- for (var index = 0; index < expected.length; index++) if (compoundMatcherMatchesPayload(expected[index], source, start, end)) return true;
14738
- return false;
14739
- }
14740
- var expectedValue = typeof expected === "string" ? expected : String(expected);
14741
- if (expectedValue.length !== end - start) return false;
14742
- for (var index1 = 0; index1 < expectedValue.length; index1++) if (expectedValue.charCodeAt(index1) !== source.charCodeAt(start + index1)) return false;
14743
- return true;
14870
+ function containsThemeRef(value) {
14871
+ if (typeof value === "string") return value.includes(THEME_REF_PREFIX);
14872
+ if (Array.isArray(value)) return value.some(containsThemeRef);
14873
+ if (value && (typeof value === "undefined" ? "undefined" : _type_of$8(value)) === "object") return Object.values(value).some(containsThemeRef);
14874
+ return false;
14744
14875
  }
14745
- var preparedCompoundsKey = /* @__PURE__ */ Symbol();
14746
- function prepareStaticConfigCompounds(staticConfig) {
14747
- var compoundVariants = staticConfig.compoundVariants;
14748
- var preparedConfig = staticConfig;
14749
- if (!(compoundVariants === null || compoundVariants === void 0 ? void 0 : compoundVariants.length)) {
14750
- preparedConfig[preparedCompoundsKey] = null;
14751
- return;
14752
- }
14753
- var selectorCounts = [];
14754
- var indexesByKey = /* @__PURE__ */ Object.create(null);
14755
- indexesByKey[preparedCompoundsKey] = selectorCounts;
14756
- for (var index = 0; index < compoundVariants.length; index++) {
14757
- var compoundVariant = compoundVariants[index];
14758
- var selectorCount = 0;
14759
- for (var key in compoundVariant) {
14760
- var _indexesByKey, _key;
14761
- if (key === "style") continue;
14762
- selectorCount++;
14763
- ((_indexesByKey = indexesByKey)[_key = key] || (_indexesByKey[_key] = [])).push(index);
14764
- }
14765
- selectorCounts[index] = selectorCount;
14876
+ //#endregion
14877
+ //#region ../web/dist/esm/helpers/tokenCategories.native.js
14878
+ function getTokenCategoryForProperty(property) {
14879
+ switch (propToTokenCategoryCode[property]) {
14880
+ case 1: return "space";
14881
+ case 2: return "size";
14882
+ case 3: return "radius";
14883
+ case 4: return "zIndex";
14884
+ case 5: return "color";
14885
+ case 6: return "fontFamily";
14886
+ case 7:
14887
+ case 8:
14888
+ case 9:
14889
+ case 10: return "font";
14766
14890
  }
14767
- preparedConfig[preparedCompoundsKey] = indexesByKey;
14768
14891
  }
14892
+ //#endregion
14893
+ //#region ../web/dist/esm/helpers/getSplitStyles.native.js
14894
+ function _type_of$7(obj) {
14895
+ "@swc/helpers - typeof";
14896
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
14897
+ }
14898
+ var TAMAGUI_CLASS_PROPS = "$$tamaguiClassProps";
14899
+ var shouldTrackStyleTokenProvenance = false;
14769
14900
  var conditionWidth = 4;
14770
14901
  var conditionValueOffset = 0;
14771
14902
  var conditionFlagsOffset = 1;
@@ -15040,170 +15171,8 @@ function acquireConditionKeyCursor(state, key) {
15040
15171
  }
15041
15172
  return cursor;
15042
15173
  }
15043
- function combineConditionKeys(state, first, second) {
15044
- if (!first) return second;
15045
- if (!second || first === second) return first;
15046
- var watermark = conditionCursorTop;
15047
- var target2 = acquireConditionKeyCursor(state, first);
15048
- resolveConditionText(state, target2, second);
15049
- commitConditionCursor(state, target2);
15050
- var key = conditionTexts[target2 + conditionKeyOffset] || "";
15051
- releaseConditionCursors(watermark);
15052
- return key;
15053
- }
15054
- function freshCompoundState() {
15055
- return {
15056
- seen: 0,
15057
- failed: false,
15058
- matchedBase: false,
15059
- scanned: false,
15060
- pending: null,
15061
- combinations: null
15062
- };
15063
- }
15064
- function beginCompoundEdges(indexes, states) {
15065
- if (!indexes) return;
15066
- for (var index = 0; index < indexes.length; index++) {
15067
- var _states, _indexes_index;
15068
- var state = (_states = states)[_indexes_index = indexes[index]] || (_states[_indexes_index] = freshCompoundState());
15069
- state.pending = null;
15070
- state.matchedBase = false;
15071
- state.scanned = false;
15072
- }
15073
- }
15074
- function feedCompoundSegment(state, source, start, end, isBase, valid, conditionKey) {
15075
- if (state.flatCompoundOutputDepth) return;
15076
- var pass = state.flatPass;
15077
- var indexes = pass[passCompoundIndexes];
15078
- var states = pass[passCompoundStates];
15079
- var key = pass[passCompoundKey];
15080
- if (!indexes || !states || !key) return;
15081
- var compoundVariants = state.staticConfig.compoundVariants;
15082
- for (var index = 0; index < indexes.length; index++) {
15083
- var _states, _compoundIndex;
15084
- var compoundIndex = indexes[index];
15085
- var compoundState = (_states = states)[_compoundIndex = compoundIndex] || (_states[_compoundIndex] = freshCompoundState());
15086
- compoundState.scanned = true;
15087
- if (!valid || start === end || !compoundMatcherMatchesPayload(compoundVariants[compoundIndex][key], source, start, end)) continue;
15088
- if (isBase) compoundState.matchedBase = true;
15089
- else if (!compoundState.matchedBase) {
15090
- var _compoundState;
15091
- ((_compoundState = compoundState).pending || (_compoundState.pending = [])).push(conditionKey);
15092
- }
15093
- }
15094
- }
15095
- var compoundOnlyHandler = {
15096
- segment(state, start, end, isBase, valid, source, chainStart, chainEnd, chainValid) {
15097
- if (isBase) {
15098
- feedCompoundSegment(state, source, start, end, true, valid, "");
15099
- return;
15100
- }
15101
- var cursor = state.flatScanCursor;
15102
- if (!chainValid || !cursor || !(conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag) || !conditionNumbers[cursor + conditionValueOffset]) {
15103
- feedCompoundSegment(state, source, start, end, false, false, "");
15104
- return;
15105
- }
15106
- feedCompoundSegment(state, source, start, end, false, valid, conditionTexts[cursor + conditionKeyOffset] || "");
15107
- },
15108
- modifier(state, start, end, valid, first, source) {
15109
- var cursor = state.flatScanCursor;
15110
- if (!cursor) cursor = state.flatScanCursor = acquireConditionCursor();
15111
- else if (first) resetConditionCursor(cursor, 0);
15112
- if (!valid) {
15113
- setConditionUnresolved(cursor);
15114
- return;
15115
- }
15116
- if (conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag) resolveConditionModifier(state, cursor, source.slice(start, end));
15117
- },
15118
- chain(state, _start, _end, valid) {
15119
- var cursor = state.flatScanCursor;
15120
- if (cursor) {
15121
- if (!valid) setConditionUnresolved(cursor);
15122
- if (conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag) commitConditionCursor(state, cursor);
15123
- }
15124
- return true;
15125
- }
15126
- };
15127
- function finishCompoundEdges(pass, key, value, indexes, states) {
15128
- if (!indexes) return;
15129
- var state = pass[passStyleState];
15130
- pass[passCompoundIndexes] = indexes;
15131
- pass[passCompoundKey] = key;
15132
- pass[passCompoundStates] = states;
15133
- var needsScan = false;
15134
- for (var index = 0; index < indexes.length; index++) {
15135
- var _states, _indexes_index;
15136
- if (!((_states = states)[_indexes_index = indexes[index]] || (_states[_indexes_index] = freshCompoundState())).scanned) {
15137
- needsScan = true;
15138
- break;
15139
- }
15140
- }
15141
- if (needsScan) if (typeof value === "string") {
15142
- var watermark = conditionCursorTop;
15143
- var previousCursor = state.flatScanCursor;
15144
- state.flatScanCursor = null;
15145
- try {
15146
- scanFlatValue(value, compoundOnlyHandler, state);
15147
- } finally {
15148
- state.flatScanCursor = previousCursor;
15149
- releaseConditionCursors(watermark);
15150
- }
15151
- } else if (value && (typeof value === "undefined" ? "undefined" : _type_of$7(value)) === "object" && !Array.isArray(value) && !isVariable(value) && Object.prototype.hasOwnProperty.call(value, "default")) for (var conditionKey in value) {
15152
- var payload = value[conditionKey];
15153
- if (conditionKey === "default") {
15154
- var payloadString = String(payload);
15155
- feedCompoundSegment(state, payloadString, 0, payloadString.length, true, true, "");
15156
- } else {
15157
- var watermark1 = conditionCursorTop;
15158
- var cursor = acquireConditionCursor();
15159
- resolveConditionText(state, cursor, conditionKey);
15160
- var condition = commitConditionCursor(state, cursor);
15161
- var payloadString1 = String(payload);
15162
- feedCompoundSegment(state, payloadString1, 0, payloadString1.length, false, Boolean(condition), condition ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
15163
- releaseConditionCursors(watermark1);
15164
- }
15165
- }
15166
- else {
15167
- var variants = state.staticConfig.compoundVariants;
15168
- for (var index1 = 0; index1 < indexes.length; index1++) {
15169
- var _states1, _compoundIndex;
15170
- var compoundIndex = indexes[index1];
15171
- var compoundState1 = (_states1 = states)[_compoundIndex = compoundIndex] || (_states1[_compoundIndex] = freshCompoundState());
15172
- compoundState1.scanned = true;
15173
- if (compoundMatcherMatches(variants[compoundIndex][key], value)) compoundState1.matchedBase = true;
15174
- }
15175
- }
15176
- var variants1 = state.staticConfig.compoundVariants;
15177
- var selectorCounts = state.staticConfig[preparedCompoundsKey][preparedCompoundsKey];
15178
- for (var index2 = 0; index2 < indexes.length; index2++) {
15179
- var compoundIndex1 = indexes[index2];
15180
- var compoundState2 = states[compoundIndex1];
15181
- if (compoundState2.failed) continue;
15182
- var branches = compoundState2.matchedBase ? [""] : compoundState2.pending;
15183
- if (!branches || !branches.length) {
15184
- compoundState2.failed = true;
15185
- continue;
15186
- }
15187
- if (!compoundState2.seen) compoundState2.combinations = branches;
15188
- else {
15189
- var previous = compoundState2.combinations;
15190
- var next = [];
15191
- for (var left = 0; left < previous.length; left++) for (var right = 0; right < branches.length; right++) {
15192
- var conditionKey1 = combineConditionKeys(state, previous[left], branches[right]);
15193
- if (!next.includes(conditionKey1)) next.push(conditionKey1);
15194
- }
15195
- compoundState2.combinations = next;
15196
- }
15197
- compoundState2.seen++;
15198
- if (compoundState2.seen !== selectorCounts[compoundIndex1]) continue;
15199
- var style = variants1[compoundIndex1].style;
15200
- if (!isPlainObject(style)) continue;
15201
- var combinations = compoundState2.combinations;
15202
- for (var combination = 0; combination < combinations.length; combination++) for (var styleKey in style) contributeProp(pass, styleKey, style[styleKey], void 0, states, combinations[combination]);
15203
- }
15204
- }
15205
15174
  function classifyConditionalObject(value, state, isChain, firstCursor) {
15206
- if (Object.prototype.hasOwnProperty.call(value, "default")) return -1;
15175
+ if ("default" in value) return -1;
15207
15176
  for (var key in value) {
15208
15177
  if (!key.length) return 0;
15209
15178
  if (!state) return (isChain === null || isChain === void 0 ? void 0 : isChain(key)) ? 1 : 0;
@@ -15226,9 +15195,6 @@ var passFrontendContainer = 27;
15226
15195
  var passFrontendContainerType = 28;
15227
15196
  var passHocMappedProperties = 29;
15228
15197
  var passHocMappedClasses = 30;
15229
- var passCompoundIndexes = 31;
15230
- var passCompoundKey = 32;
15231
- var passCompoundStates = 33;
15232
15198
  var passParentCursor = 35;
15233
15199
  var passMapSourceKey = 36;
15234
15200
  var passMapFlags = 37;
@@ -15240,96 +15206,23 @@ var passHocFlag = 16;
15240
15206
  var passTextFlag = 32;
15241
15207
  var passInputFlag = 64;
15242
15208
  var passAsChildStyleFlag = 128;
15243
- var styledDefaultsCache = /* @__PURE__ */ new WeakMap();
15244
- function getStyledDefaults(staticConfig, shorthands) {
15245
- var prepared = styledDefaultsCache.get(staticConfig);
15246
- if (prepared === void 0) {
15247
- var entries = null;
15248
- var defaults = staticConfig.defaultProps;
15249
- if (defaults) for (var key in defaults) {
15250
- if (!(key in stylePropsAll || key in shorthands)) continue;
15251
- var value = defaults[key];
15252
- if (maybeStyleProgram(value)) (entries || (entries = [])).push(key, value);
15253
- }
15254
- prepared = entries;
15255
- styledDefaultsCache.set(staticConfig, prepared);
15256
- }
15257
- return prepared;
15258
- }
15259
- var maybeStyleProgram = function(value) {
15260
- return typeof value === "string" ? value.indexOf(":") !== -1 : !!value && (typeof value === "undefined" ? "undefined" : _type_of$7(value)) === "object" && !Array.isArray(value) && !isVariable(value);
15261
- };
15262
- function contributeDisplacedStyledDefaults(styledDefaults, processedProps, pass) {
15263
- if (!styledDefaults) return;
15264
- for (var offset = 0; offset < styledDefaults.length; offset += 2) {
15265
- var key = styledDefaults[offset];
15266
- var value = styledDefaults[offset + 1];
15267
- var propValue = processedProps[key];
15268
- if (propValue !== void 0 && propValue !== value) contributeProp(pass, key, value);
15269
- }
15270
- }
15271
- function injectDisplacedStyledDefault(pass, key, value) {
15272
- var _pass__defaultProps;
15273
- var defaultValue = (_pass__defaultProps = pass[4].defaultProps) === null || _pass__defaultProps === void 0 ? void 0 : _pass__defaultProps[key];
15274
- if (defaultValue === void 0 || value === void 0 || value === defaultValue || maybeStyleProgram(defaultValue)) return;
15275
- var state = pass[passStyleState];
15276
- state.flatWeakContribution = true;
15277
- try {
15278
- contributeProp(pass, key, defaultValue);
15279
- } finally {
15280
- state.flatWeakContribution = false;
15281
- }
15282
- }
15283
15209
  function forEachPropInForwardOrder(pass) {
15284
- var _staticConfig_compoundVariants;
15285
15210
  var styleState = pass[passStyleState];
15286
- var staticConfig = styleState.staticConfig;
15287
15211
  var processedProps = styleState.props;
15288
- var shorthands = styleState.conf.shorthands;
15289
- var processedBaseStyle = staticConfig.baseStyle;
15290
- var styledDefaults = getStyledDefaults(staticConfig, shorthands);
15291
- var directState = styleState;
15292
- var preparedCompounds = staticConfig[preparedCompoundsKey];
15293
- if (preparedCompounds === void 0 && ((_staticConfig_compoundVariants = staticConfig.compoundVariants) === null || _staticConfig_compoundVariants === void 0 ? void 0 : _staticConfig_compoundVariants.length)) throw new Error("A component with compoundVariants reached style resolution before its static config was prepared.");
15212
+ var styleStaticConfig = styleState.flatStyleStaticConfig;
15213
+ var baseStyle = styleStaticConfig.baseStyle;
15214
+ var baseVariantProps = styleStaticConfig.baseVariantProps;
15294
15215
  var conditionWrapperBase = conditionWrapperTop;
15295
- if (!preparedCompounds) {
15296
- try {
15297
- if (processedBaseStyle) for (var key in processedBaseStyle) contributeProp(pass, key, processedBaseStyle[key]);
15298
- contributeDisplacedStyledDefaults(styledDefaults, processedProps, pass);
15299
- for (var key1 in processedProps) {
15300
- var value = processedProps[key1];
15301
- directState.flatPropSawCondition = false;
15302
- contributeProp(pass, key1, value);
15303
- if (directState.flatPropSawCondition) injectDisplacedStyledDefault(pass, key1, value);
15304
- }
15305
- } finally {
15306
- releaseConditionPayloads(conditionWrapperBase);
15307
- }
15308
- return;
15309
- }
15310
- var compoundVariants = staticConfig.compoundVariants;
15311
- var compoundStates = new Array(compoundVariants.length);
15312
15216
  try {
15313
- if (processedBaseStyle) for (var key2 in processedBaseStyle) contributeProp(pass, key2, processedBaseStyle[key2]);
15314
- contributeDisplacedStyledDefaults(styledDefaults, processedProps, pass);
15315
- var selectorCounts = preparedCompounds[preparedCompoundsKey];
15316
- for (var compoundIndex = 0; compoundIndex < compoundVariants.length; compoundIndex++) {
15317
- if (selectorCounts[compoundIndex]) continue;
15318
- var style = compoundVariants[compoundIndex].style;
15319
- if (!isPlainObject(style)) continue;
15320
- for (var key3 in style) contributeProp(pass, key3, style[key3]);
15321
- }
15322
- for (var key4 in processedProps) {
15323
- var compoundIndexes = preparedCompounds[key4];
15324
- var value1 = processedProps[key4];
15325
- beginCompoundEdges(compoundIndexes, compoundStates);
15326
- directState.flatPropSawCondition = false;
15327
- contributeProp(pass, key4, value1, compoundIndexes, compoundStates);
15328
- if (directState.flatPropSawCondition) injectDisplacedStyledDefault(pass, key4, value1);
15329
- finishCompoundEdges(pass, key4, value1, compoundIndexes, compoundStates);
15217
+ var appliesBaseStyle = baseStyle && !processedProps.asChild;
15218
+ if (appliesBaseStyle) for (var key in baseStyle) contributeProp(pass, key, baseVariantProps && Object.hasOwn(baseVariantProps, key) && Object.hasOwn(processedProps, key) ? processedProps[key] : baseStyle[key]);
15219
+ for (var key1 in processedProps) {
15220
+ if (appliesBaseStyle && baseVariantProps && Object.hasOwn(baseVariantProps, key1)) continue;
15221
+ contributeProp(pass, key1, processedProps[key1]);
15330
15222
  }
15331
- } finally {
15223
+ } catch (error) {
15332
15224
  releaseConditionPayloads(conditionWrapperBase);
15225
+ throw error;
15333
15226
  }
15334
15227
  }
15335
15228
  function isValidStyleKey(key, validStyles, accept) {
@@ -15412,13 +15305,8 @@ function mapContributedProp(styleState, key, val, originalVal, condition) {
15412
15305
  viewProps[key] = val;
15413
15306
  }
15414
15307
  }
15415
- function contributeProp(pass, keyOg, valOg, compoundIndexes, compoundStates, parentConditionKey) {
15308
+ function contributeProp(pass, keyOg, valOg, parentConditionKey) {
15416
15309
  var parentWatermark = conditionCursorTop;
15417
- if (compoundIndexes) {
15418
- pass[passCompoundIndexes] = compoundIndexes;
15419
- pass[passCompoundKey] = keyOg;
15420
- pass[passCompoundStates] = compoundStates;
15421
- } else if (pass[passCompoundIndexes]) pass[passCompoundIndexes] = void 0;
15422
15310
  if (parentConditionKey) pass[passParentCursor] = acquireConditionKeyCursor(pass[passStyleState], parentConditionKey);
15423
15311
  try {
15424
15312
  var [styleState, conf, props, viewProps, staticConfig, validStyles, accept, neverSkipProps, variants, inlineProps, parentVariants, styleFrontend, styledContext, styledContextKeys, flags, debug, parentStaticConfig, defaultProps, driverAnimations, driverOutputStyle, elementType] = pass;
@@ -15613,10 +15501,10 @@ function contributeProp(pass, keyOg, valOg, compoundIndexes, compoundStates, par
15613
15501
  releaseConditionCursors(parentWatermark);
15614
15502
  }
15615
15503
  }
15616
- var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver) {
15617
- var _staticConfig_styleFrontend, _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia, _styleState_style;
15504
+ var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver, styleStaticConfig) {
15505
+ var _styleState_style;
15618
15506
  var conf = getConfig();
15619
- if ((_staticConfig_styleFrontend = staticConfig.styleFrontend) === null || _staticConfig_styleFrontend === void 0 ? void 0 : _staticConfig_styleFrontend.normalizeStaticConfig) staticConfig = staticConfig.styleFrontend.normalizeStaticConfig(staticConfig, conf);
15507
+ styleStaticConfig || (styleStaticConfig = getStyleStaticConfig(staticConfig, conf));
15620
15508
  var driver = animationDriver || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.animationDriver) || conf.animations;
15621
15509
  var driverAnimations = driver === null || driver === void 0 ? void 0 : driver.animations;
15622
15510
  driver === null || driver === void 0 || driver.inputStyle;
@@ -15624,7 +15512,8 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
15624
15512
  var resolvedDriver = (driver === null || driver === void 0 ? void 0 : driver.isStub) ? null : driver;
15625
15513
  if (props.passThrough) return null;
15626
15514
  var { shorthands } = conf;
15627
- var { isHOC, isText, isInput, variants, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;
15515
+ var { isHOC, isText, isInput, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;
15516
+ var variants = styleStaticConfig.variants;
15628
15517
  var viewProps = {};
15629
15518
  var mediaState$1 = styleProps.mediaState || mediaState;
15630
15519
  var shouldDoClasses = !process.env.TAMAGUI_DID_OUTPUT_CSS && acceptsClassName && false;
@@ -15656,22 +15545,23 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
15656
15545
  flatGroupContext: groupContext,
15657
15546
  animationDriver: resolvedDriver
15658
15547
  };
15548
+ styleState.flatStyleStaticConfig = styleStaticConfig;
15659
15549
  var { asChild } = props;
15660
15550
  var { accept, neverSkipProps } = staticConfig;
15661
- var { noSkip, disableExpandShorthands, noExpand, noClass, noMergeStyle, noNormalize, isAnimated, styledContext, styledContextKeys } = styleProps;
15551
+ var { noSkip, disableExpandShorthands, noExpand, noClass, noMergeStyle, noNormalize, isAnimated, styledContext } = styleProps;
15552
+ var styledContextKeys = styleStaticConfig.styledContextKeys;
15662
15553
  var styleFrontend = staticConfig.styleFrontend;
15663
15554
  var frontendGroup;
15664
15555
  var frontendContainer;
15665
15556
  var frontendContainerType;
15666
- var parentVariants = parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.variants;
15667
- var defaultProps = asChild ? getDefaultProps(staticConfig) : void 0;
15557
+ var parentVariants = parentStaticConfig ? getStyleStaticConfig(parentStaticConfig, conf).variants : void 0;
15558
+ var defaultProps = asChild ? styleStaticConfig.defaultProps : void 0;
15668
15559
  var asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
15669
15560
  var containerValue;
15670
15561
  var containerName;
15671
15562
  var containerType;
15672
15563
  var hocMappedClassProperties;
15673
15564
  var hocMappedClasses;
15674
- var stylePassFlags = (noSkip ? passNoSkipFlag : 0) | (disableExpandShorthands ? passDisableShorthandsFlag : 0) | (noExpand ? passNoExpandFlag : 0) | (noMergeStyle ? passNoMergeFlag : 0) | (isHOC ? passHocFlag : 0) | (isText ? passTextFlag : 0) | (isInput ? passInputFlag : 0) | (asChildExceptStyleLike ? passAsChildStyleFlag : 0);
15675
15565
  var pass = [
15676
15566
  styleState,
15677
15567
  conf,
@@ -15686,99 +15576,51 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
15686
15576
  parentVariants,
15687
15577
  styleFrontend,
15688
15578
  styledContext,
15689
- styledContextKeys,
15690
- stylePassFlags,
15691
- debug,
15692
- parentStaticConfig,
15693
- defaultProps,
15694
- driverAnimations,
15695
- driverOutputStyle,
15696
- elementType,
15697
- className,
15698
- shouldDoClasses,
15699
- containerValue,
15700
- containerName,
15701
- containerType,
15702
- frontendGroup,
15703
- frontendContainer,
15704
- frontendContainerType,
15705
- hocMappedClassProperties,
15706
- hocMappedClasses
15707
- ];
15708
- styleState.flatPass = pass;
15709
- forEachPropInForwardOrder(pass);
15710
- [, , , , , , , , , , , , , , , , , , , , , className, shouldDoClasses, containerValue, containerName, containerType, frontendGroup, frontendContainer, frontendContainerType, hocMappedClassProperties, hocMappedClasses] = pass;
15711
- var conditionalStates = styleState.flatStateKeys || null;
15712
- var usesSafeArea = !!styleState.flatUsesSafeArea;
15713
- if ((_styleState_flatMediaKeys = styleState.flatMediaKeys) === null || _styleState_flatMediaKeys === void 0 ? void 0 : _styleState_flatMediaKeys.size) {
15714
- if (!hasMedia) hasMedia = /* @__PURE__ */ new Set();
15715
- if (typeof hasMedia !== "boolean") {
15716
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
15717
- try {
15718
- for (var _iterator2 = styleState.flatMediaKeys[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
15719
- var key = _step2.value;
15720
- hasMedia.add(key);
15721
- }
15722
- } catch (err) {
15723
- _didIteratorError2 = true;
15724
- _iteratorError2 = err;
15725
- } finally {
15726
- try {
15727
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();
15728
- } finally {
15729
- if (_didIteratorError2) throw _iteratorError2;
15730
- }
15731
- }
15732
- }
15733
- }
15734
- if ((_styleState_flatGroupKeys = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys === void 0 ? void 0 : _styleState_flatGroupKeys.size) {
15735
- pseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set());
15736
- var _iteratorNormalCompletion12 = true, _didIteratorError12 = false, _iteratorError12 = void 0;
15737
- try {
15738
- for (var _iterator12 = styleState.flatGroupKeys[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
15739
- var key1 = _step12.value;
15740
- pseudoGroups.add(key1);
15741
- }
15742
- } catch (err) {
15743
- _didIteratorError12 = true;
15744
- _iteratorError12 = err;
15745
- } finally {
15746
- try {
15747
- if (!_iteratorNormalCompletion12 && _iterator12.return != null) _iterator12.return();
15748
- } finally {
15749
- if (_didIteratorError12) throw _iteratorError12;
15750
- }
15751
- }
15752
- }
15753
- if ((_styleState_flatGroupMedia = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia === void 0 ? void 0 : _styleState_flatGroupMedia.size) {
15754
- mediaGroups || (mediaGroups = /* @__PURE__ */ new Set());
15755
- var _iteratorNormalCompletion22 = true, _didIteratorError22 = false, _iteratorError22 = void 0;
15756
- try {
15757
- for (var _iterator22 = styleState.flatGroupMedia[Symbol.iterator](), _step22; !(_iteratorNormalCompletion22 = (_step22 = _iterator22.next()).done); _iteratorNormalCompletion22 = true) {
15758
- var key2 = _step22.value;
15759
- mediaGroups.add(key2);
15760
- }
15761
- } catch (err) {
15762
- _didIteratorError22 = true;
15763
- _iteratorError22 = err;
15764
- } finally {
15765
- try {
15766
- if (!_iteratorNormalCompletion22 && _iterator22.return != null) _iterator22.return();
15767
- } finally {
15768
- if (_didIteratorError22) throw _iteratorError22;
15579
+ styledContextKeys,
15580
+ (noSkip ? passNoSkipFlag : 0) | (disableExpandShorthands ? passDisableShorthandsFlag : 0) | (noExpand ? passNoExpandFlag : 0) | (noMergeStyle ? passNoMergeFlag : 0) | (isHOC ? passHocFlag : 0) | (isText ? passTextFlag : 0) | (isInput ? passInputFlag : 0) | (asChildExceptStyleLike ? passAsChildStyleFlag : 0),
15581
+ debug,
15582
+ parentStaticConfig,
15583
+ defaultProps,
15584
+ driverAnimations,
15585
+ driverOutputStyle,
15586
+ elementType,
15587
+ className,
15588
+ shouldDoClasses,
15589
+ containerValue,
15590
+ containerName,
15591
+ containerType,
15592
+ frontendGroup,
15593
+ frontendContainer,
15594
+ frontendContainerType,
15595
+ hocMappedClassProperties,
15596
+ hocMappedClasses
15597
+ ];
15598
+ styleState.flatPass = pass;
15599
+ var conditionalStates = null;
15600
+ var usesSafeArea = false;
15601
+ var conditionWrapperBase = conditionWrapperTop;
15602
+ try {
15603
+ var _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia;
15604
+ forEachPropInForwardOrder(pass);
15605
+ [, , , , , , , , , , , , , , , , , , , , , className, shouldDoClasses, containerValue, containerName, containerType, frontendGroup, frontendContainer, frontendContainerType, hocMappedClassProperties, hocMappedClasses] = pass;
15606
+ conditionalStates = styleState.flatStateKeys || null;
15607
+ usesSafeArea = !!styleState.flatUsesSafeArea;
15608
+ hasMedia = ((_styleState_flatMediaKeys = styleState.flatMediaKeys) === null || _styleState_flatMediaKeys === void 0 ? void 0 : _styleState_flatMediaKeys.size) ? styleState.flatMediaKeys : false;
15609
+ pseudoGroups = ((_styleState_flatGroupKeys = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys === void 0 ? void 0 : _styleState_flatGroupKeys.size) ? styleState.flatGroupKeys : void 0;
15610
+ mediaGroups = ((_styleState_flatGroupMedia = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia === void 0 ? void 0 : _styleState_flatGroupMedia.size) ? styleState.flatGroupMedia : void 0;
15611
+ if (styleProps.canPlatformPseudo && styleState.flatHasPlatformPseudo) {
15612
+ shouldDoClasses = false;
15613
+ styleState.flatShouldDoClasses = false;
15614
+ if (styleState.transformAccumulator) {
15615
+ mergeStyle(styleState, "transform", finalizeTransformAccumulator(styleState.transformAccumulator), true);
15616
+ styleState.transformAccumulator = void 0;
15769
15617
  }
15618
+ convertDeferredInline(styleState, mergeStyle);
15770
15619
  }
15620
+ completeStreaming(styleState, mergeStyle);
15621
+ } finally {
15622
+ releaseConditionPayloads(conditionWrapperBase);
15771
15623
  }
15772
- if (styleProps.canPlatformPseudo && styleState.flatHasPlatformPseudo) {
15773
- shouldDoClasses = false;
15774
- styleState.flatShouldDoClasses = false;
15775
- if (styleState.transformAccumulator) {
15776
- mergeStyle(styleState, "transform", finalizeTransformAccumulator(styleState.transformAccumulator), 1, true);
15777
- styleState.transformAccumulator = void 0;
15778
- }
15779
- convertDeferredInline(styleState, mergeStyle);
15780
- }
15781
- completeStreaming(styleState, mergeStyle);
15782
15624
  var effectiveTransition = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transition;
15783
15625
  if (effectiveTransition != null && styleState.style && true) delete styleState.style.transition;
15784
15626
  if (styleState.style) {
@@ -15796,11 +15638,11 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
15796
15638
  styleState.style.transform = finalizeTransformAccumulator(styleState.transformAccumulator);
15797
15639
  }
15798
15640
  if (parentSplitStyles) {
15799
- if (!shouldDoClasses) for (var key4 in parentSplitStyles.style) {
15641
+ if (!shouldDoClasses) for (var key1 in parentSplitStyles.style) {
15800
15642
  var _styleState1;
15801
- if (key4 in classNames || styleState.style && key4 in styleState.style) continue;
15643
+ if (key1 in classNames || styleState.style && key1 in styleState.style) continue;
15802
15644
  (_styleState1 = styleState).style || (_styleState1.style = {});
15803
- styleState.style[key4] = parentSplitStyles.style[key4];
15645
+ styleState.style[key1] = parentSplitStyles.style[key1];
15804
15646
  }
15805
15647
  }
15806
15648
  }
@@ -15827,9 +15669,9 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
15827
15669
  if (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {
15828
15670
  var provenance = {};
15829
15671
  var hasProvenance = false;
15830
- for (var key5 in styleState.tokenProvenance) {
15831
- provenance[key5] = {
15832
- token: styleState.tokenProvenance[key5],
15672
+ for (var key2 in styleState.tokenProvenance) {
15673
+ provenance[key2] = {
15674
+ token: styleState.tokenProvenance[key2],
15833
15675
  theme: themeName
15834
15676
  };
15835
15677
  hasProvenance = true;
@@ -15868,11 +15710,11 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
15868
15710
  }
15869
15711
  return result;
15870
15712
  };
15871
- function mergeStyle(styleState, key, val, _importance) {
15872
- arguments.length > 4 && arguments[4] !== void 0 && arguments[4];
15873
- var originalVal = arguments.length > 5 ? arguments[5] : void 0;
15713
+ function mergeStyle(styleState, key, val) {
15714
+ arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
15715
+ var originalVal = arguments.length > 4 ? arguments[4] : void 0;
15874
15716
  var { viewProps, styleProps, staticConfig } = styleState;
15875
- var contextPropSet = getContextPropSet(staticConfig);
15717
+ var contextPropSet = styleState.flatStyleStaticConfig.styledContextKeys;
15876
15718
  if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(key)) {
15877
15719
  var _styleState_originalContextPropValues;
15878
15720
  var _styleState;
@@ -15904,8 +15746,8 @@ function recordStyleTokenProvenance(styleState, key, originalVal) {
15904
15746
  var opacity = slash === -1 ? NaN : Number(tokenName.slice(slash + 1));
15905
15747
  if (Number.isInteger(opacity) && opacity >= 0 && opacity <= 100) tokenName = tokenName.slice(0, slash);
15906
15748
  }
15907
- if (tokenName !== "" && (Object.prototype.hasOwnProperty.call(styleState.theme, tokenName) || Object.prototype.hasOwnProperty.call(((_styleState_conf_themes = styleState.conf.themes) === null || _styleState_conf_themes === void 0 ? void 0 : _styleState_conf_themes[styleState.flatThemeName || ""]) || {}, tokenName) || Object.values(styleState.conf.tokensParsed).some(function(category) {
15908
- return Object.prototype.hasOwnProperty.call(category, tokenName);
15749
+ if (tokenName !== "" && (tokenName in styleState.theme || tokenName in (((_styleState_conf_themes = styleState.conf.themes) === null || _styleState_conf_themes === void 0 ? void 0 : _styleState_conf_themes[styleState.flatThemeName || ""]) || {}) || Object.values(styleState.conf.tokensParsed).some(function(category) {
15750
+ return tokenName in category;
15909
15751
  }))) {
15910
15752
  var _styleState;
15911
15753
  ((_styleState = styleState).tokenProvenance || (_styleState.tokenProvenance = {}))[key] = originalVal;
@@ -15929,7 +15771,7 @@ var resolveAcceptedStyle = function(styleState, styleIn) {
15929
15771
  childState.flatSingleEntries = void 0;
15930
15772
  childState.flatSlots = void 0;
15931
15773
  childState.flatBorderDefaultRequests = void 0;
15932
- var mergeAccepted = function(_state, key2, value2, _importance, disableNormalize, originalValue) {
15774
+ var mergeAccepted = function(_state, key2, value2, disableNormalize, originalValue) {
15933
15775
  styleOut[key2] = disableNormalize || styleProps.noNormalize ? value2 : normalizeValueWithProperty(value2, key2);
15934
15776
  var _styleInOriginalValues_key;
15935
15777
  var trackedOriginal = (_styleInOriginalValues_key = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[key2]) !== null && _styleInOriginalValues_key !== void 0 ? _styleInOriginalValues_key : originalValue;
@@ -15959,12 +15801,9 @@ function streamWriteInline(state, property, value, cursor, merge, original) {
15959
15801
  var importance = condition ? Math.floor(condition / 256) + 1 : 0;
15960
15802
  var used = (_direct = direct).flatUsed || (_direct.flatUsed = {});
15961
15803
  var previous = used[property];
15962
- if (previous !== void 0) {
15963
- if (previous > importance) return;
15964
- if (direct.flatWeakContribution === true) return;
15965
- }
15804
+ if (previous !== void 0 && previous > importance) return;
15966
15805
  used[property] = importance;
15967
- merge(state, property, value, 1, !normalize, original);
15806
+ merge(state, property, value, !normalize, original);
15968
15807
  }
15969
15808
  function streamRetractInline(state, property, cursor) {
15970
15809
  var _direct;
@@ -15978,19 +15817,13 @@ function streamRetractInline(state, property, cursor) {
15978
15817
  if (state.style) delete state.style[property];
15979
15818
  }
15980
15819
  function convertDeferredInline(state, merge) {
15981
- var _direct;
15982
15820
  var direct = state;
15983
- var used = (_direct = direct).flatUsed || (_direct.flatUsed = {});
15984
15821
  var consume = function(entries) {
15985
15822
  for (var index = 0; index < entries.length; index++) {
15986
15823
  var entry = entries[index];
15987
- var condition = entry.condition;
15824
+ var condition = entry[2];
15988
15825
  if (condition && !(condition & 1)) continue;
15989
- var importance = condition ? Math.floor(condition / 256) + 1 : 0;
15990
- var previous = used[entry.property];
15991
- if (previous !== void 0 && previous > importance) continue;
15992
- used[entry.property] = importance;
15993
- merge(state, entry.property, entry.value, 1, true, entry.original !== void 0 ? entry.original : entry.value);
15826
+ streamWriteInline(state, entry[0], entry[1], null, merge, entry[8] !== void 0 ? entry[8] : entry[1], false, condition);
15994
15827
  }
15995
15828
  };
15996
15829
  var slots = direct.flatSlots;
@@ -16027,7 +15860,6 @@ function emitAtParentCondition(state, property, value, merge, originalValue, con
16027
15860
  }
16028
15861
  function emitUnderCondition(state, property, value, cursor, merge, originalValue, contextOnly, warnMode, warnSource) {
16029
15862
  var condition = conditionNumbers[cursor + conditionValueOffset];
16030
- if (merge && property && condition) state.flatPropSawCondition = true;
16031
15863
  if (!(conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag)) return 0;
16032
15864
  conditionTexts[cursor + conditionUnsupportedStateOffset];
16033
15865
  if (merge && property && condition & 2 && (condition & 1 || warnMode === 1 && conditionTexts[cursor + conditionThemeOffset] && supportsDynamicColorIOS && isColorStyleKey(property))) {
@@ -16044,10 +15876,8 @@ function emitUnderCondition(state, property, value, cursor, merge, originalValue
16044
15876
  }
16045
15877
  var directStyleHandler = {
16046
15878
  segment(state, start, end, isBase, valid, source, chainStart, chainEnd, chainValid, chainCount, _result, failure, failureIndex, property, merge, originalValue, contextOnly) {
16047
- var _directState_flatPass;
16048
15879
  if (isBase) {
16049
15880
  if (start === end) return;
16050
- feedCompoundSegment(state, source, start, end, true, valid || failure === "invalid-character" || failure === "stray-comment-close", "");
16051
15881
  if (!valid) {
16052
15882
  if (failure === "invalid-character" || failure === "stray-comment-close") return 16;
16053
15883
  return;
@@ -16063,10 +15893,8 @@ var directStyleHandler = {
16063
15893
  var right = Number(source.slice(start, end));
16064
15894
  if (chainStart < chainEnd && Number.isFinite(left) && left > 0 && Number.isFinite(right) && right > 0) return 12;
16065
15895
  }
16066
- var directState = state;
16067
- var cursor = directState.flatScanCursor;
15896
+ var cursor = state.flatScanCursor;
16068
15897
  var condition = valid ? emitUnderCondition(state, property, source.slice(start, end), cursor, merge, void 0, contextOnly, 1, source) : conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag ? conditionNumbers[cursor + conditionValueOffset] : 0;
16069
- feedCompoundSegment(directState, source, start, end, false, valid && Boolean(condition), condition && ((_directState_flatPass = directState.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passCompoundIndexes]) ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
16070
15898
  if (!condition) return;
16071
15899
  if (!valid) return;
16072
15900
  return 4 | (condition & 12 ? 2 : 0);
@@ -16242,17 +16070,6 @@ function tokenVariable(state, property, name) {
16242
16070
  var _state_conf_tokensParsed_category;
16243
16071
  var own = (_state_conf_tokensParsed_category = state.conf.tokensParsed[category]) === null || _state_conf_tokensParsed_category === void 0 ? void 0 : _state_conf_tokensParsed_category[lookupName];
16244
16072
  if (own) return fillTokenLookup(own, false, lookupName);
16245
- for (var _i = 0, _iter = [
16246
- "color",
16247
- "space",
16248
- "size",
16249
- "radius",
16250
- "zIndex"
16251
- ]; _i < _iter.length; _i++) {
16252
- var sibling = _iter[_i];
16253
- var _state_conf_tokensParsed_sibling;
16254
- if (sibling !== category && ((_state_conf_tokensParsed_sibling = state.conf.tokensParsed[sibling]) === null || _state_conf_tokensParsed_sibling === void 0 ? void 0 : _state_conf_tokensParsed_sibling[lookupName])) return;
16255
- }
16256
16073
  } else {
16257
16074
  var first = lookupName.charCodeAt(0);
16258
16075
  if (first >= 48 && first <= 57 || first === 43 || first === 45 || first === 46) return;
@@ -16447,8 +16264,8 @@ function emitProperty(state, property, value, cursor, merge, originalValue, cont
16447
16264
  }
16448
16265
  if (contextOnly) {
16449
16266
  if (!condition || condition & 1) {
16450
- var _state2;
16451
- ((_state2 = state).overriddenContextProps || (_state2.overriddenContextProps = {}))[property] = originalValue;
16267
+ var _state3;
16268
+ ((_state3 = state).overriddenContextProps || (_state3.overriddenContextProps = {}))[property] = originalValue;
16452
16269
  }
16453
16270
  return;
16454
16271
  }
@@ -16866,14 +16683,11 @@ function contributeStyleObject(state, property, value, merge, contextOnly) {
16866
16683
  }
16867
16684
  function contributeStyleObjectInner(state, property, value, merge, contextOnly) {
16868
16685
  var _directState_flatPass;
16869
- var directState = state;
16870
- var parent = ((_directState_flatPass = directState.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passParentCursor]) || null;
16871
- var hasDefault = Object.prototype.hasOwnProperty.call(value, "default");
16686
+ var parent = ((_directState_flatPass = state.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passParentCursor]) || null;
16687
+ var hasDefault = "default" in value;
16872
16688
  var hasBase = false;
16873
16689
  var base = hasDefault ? value.default : void 0;
16874
16690
  if (base != null) {
16875
- var baseString = String(base);
16876
- feedCompoundSegment(directState, baseString, 0, baseString.length, true, true, "");
16877
16691
  emitAtParentCondition(state, property, base, merge, base, contextOnly);
16878
16692
  hasBase = true;
16879
16693
  }
@@ -16893,12 +16707,7 @@ function contributeStyleObjectInner(state, property, value, merge, contextOnly)
16893
16707
  return false;
16894
16708
  }
16895
16709
  }
16896
- if (payload != null) {
16897
- var _directState_flatPass1;
16898
- conditions |= emitUnderCondition(state, property, payload, cursor, merge, payload, contextOnly, 1, payload);
16899
- var payloadString = String(payload);
16900
- feedCompoundSegment(directState, payloadString, 0, payloadString.length, false, Boolean(condition), condition && ((_directState_flatPass1 = directState.flatPass) === null || _directState_flatPass1 === void 0 ? void 0 : _directState_flatPass1[passCompoundIndexes]) ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
16901
- }
16710
+ if (payload != null) conditions |= emitUnderCondition(state, property, payload, cursor, merge, payload, contextOnly, 1, payload);
16902
16711
  releaseConditionCursors(watermark);
16903
16712
  }
16904
16713
  if (!hasDefault && firstCondition) return false;
@@ -16911,13 +16720,16 @@ function contributeStyleObjectInner(state, property, value, merge, contextOnly)
16911
16720
  function contributeValue(state, property, value, merge, originalValue) {
16912
16721
  var contextOnly = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false, condition = arguments.length > 6 ? arguments[6] : void 0;
16913
16722
  if (isConditionTransport(value)) {
16914
- if (value.hasBase) contributeValue(state, property, value.base, merge, value.base, contextOnly);
16915
- for (var offset = 0; offset < value.entries.length;) {
16916
- var entryValue = value.entries[offset];
16723
+ if (value[transportHasBase]) {
16724
+ var base = value[transportBase];
16725
+ contributeValue(state, property, base, merge, base, contextOnly);
16726
+ }
16727
+ for (var offset = transportEntries; offset < value.length;) {
16728
+ var entryValue = value[offset];
16917
16729
  var watermark = conditionCursorTop;
16918
16730
  try {
16919
16731
  var _state_flatPass;
16920
- emitUnderCondition(state, property, entryValue, acquireTransportCursor(state, value.entries, offset, ((_state_flatPass = state.flatPass) === null || _state_flatPass === void 0 ? void 0 : _state_flatPass[passParentCursor]) || null), merge, entryValue, contextOnly, 2, entryValue);
16732
+ emitUnderCondition(state, property, entryValue, acquireTransportCursor(state, value, offset, ((_state_flatPass = state.flatPass) === null || _state_flatPass === void 0 ? void 0 : _state_flatPass[passParentCursor]) || null), merge, entryValue, contextOnly, 2, entryValue);
16921
16733
  } finally {
16922
16734
  releaseConditionCursors(watermark);
16923
16735
  }
@@ -16943,7 +16755,7 @@ function contributeValue(state, property, value, merge, originalValue) {
16943
16755
  commitConditionCursor(state, effective);
16944
16756
  } else effective = condition;
16945
16757
  var isObjectValue = value && (typeof value === "undefined" ? "undefined" : _type_of$7(value)) === "object" && !Array.isArray(value) && !isVariable(value);
16946
- var objectHasDefault = isObjectValue && Object.prototype.hasOwnProperty.call(value, "default");
16758
+ var objectHasDefault = isObjectValue && "default" in value;
16947
16759
  var firstChild = isObjectValue && !objectHasDefault ? acquireConditionCursor(effective) : null;
16948
16760
  if (isObjectValue && classifyConditionalObject(value, state, void 0, firstChild || void 0)) {
16949
16761
  var useFirstChild = firstChild !== null;
@@ -17011,17 +16823,20 @@ function clearDirectStyle(state, property) {
17011
16823
  if (state.style) delete state.style[atomicKey];
17012
16824
  delete state.classNames[atomicKey];
17013
16825
  }
17014
- var conditionTransports = /* @__PURE__ */ new WeakSet();
16826
+ var conditionTransportTag = /* @__PURE__ */ Symbol();
16827
+ var transportHasBase = 1;
16828
+ var transportBase = 2;
16829
+ var transportEntries = 3;
16830
+ var transportEntryWidth = 2;
17015
16831
  function isConditionTransport(value) {
17016
- return (typeof value === "undefined" ? "undefined" : _type_of$7(value)) === "object" && value !== null && conditionTransports.has(value);
16832
+ return Array.isArray(value) && value[0] === conditionTransportTag;
17017
16833
  }
17018
- var transportEntryWidth = 2;
17019
- function appendConditionEntry(entries, cursor, value) {
17020
- entries.push(value, conditionTexts[cursor + conditionKeyOffset] || "");
16834
+ function appendConditionEntry(transport, cursor, value) {
16835
+ transport.push(value, conditionTexts[cursor + conditionKeyOffset] || "");
17021
16836
  }
17022
- function acquireTransportCursor(state, entries, offset, parent) {
16837
+ function acquireTransportCursor(state, transport, offset, parent) {
17023
16838
  var cursor = acquireConditionCursor(parent);
17024
- var key = entries[offset + 1];
16839
+ var key = transport[offset + 1];
17025
16840
  if (key) resolveConditionText(state, cursor, key);
17026
16841
  commitConditionCursor(state, cursor);
17027
16842
  return cursor;
@@ -17030,15 +16845,14 @@ function mergeConditionTransport(state, prev, cursor, value) {
17030
16845
  var transport;
17031
16846
  if (isConditionTransport(prev)) transport = prev;
17032
16847
  else {
17033
- transport = {
17034
- hasBase: false,
17035
- base: void 0,
17036
- entries: []
17037
- };
17038
- conditionTransports.add(transport);
16848
+ transport = [
16849
+ conditionTransportTag,
16850
+ false,
16851
+ void 0
16852
+ ];
17039
16853
  if (prev != null) {
17040
16854
  var isObjectValue = (typeof prev === "undefined" ? "undefined" : _type_of$7(prev)) === "object" && !Array.isArray(prev) && !isVariable(prev);
17041
- var objectHasDefault = isObjectValue && Object.prototype.hasOwnProperty.call(prev, "default");
16855
+ var objectHasDefault = isObjectValue && "default" in prev;
17042
16856
  var authoredWatermark = conditionCursorTop;
17043
16857
  try {
17044
16858
  var firstCursor = isObjectValue && !objectHasDefault ? acquireConditionCursor() : null;
@@ -17048,8 +16862,8 @@ function mergeConditionTransport(state, prev, cursor, value) {
17048
16862
  var payload = prev[key];
17049
16863
  if (payload == null) continue;
17050
16864
  if (key === "default") {
17051
- transport.hasBase = true;
17052
- transport.base = payload;
16865
+ transport[transportHasBase] = true;
16866
+ transport[transportBase] = payload;
17053
16867
  continue;
17054
16868
  }
17055
16869
  var watermark = conditionCursorTop;
@@ -17059,12 +16873,12 @@ function mergeConditionTransport(state, prev, cursor, value) {
17059
16873
  resolveConditionText(state, keyCursor, key);
17060
16874
  commitConditionCursor(state, keyCursor);
17061
16875
  }
17062
- appendConditionEntry(transport.entries, keyCursor, payload);
16876
+ appendConditionEntry(transport, keyCursor, payload);
17063
16877
  if (keyCursor !== firstCursor) releaseConditionCursors(watermark);
17064
16878
  }
17065
16879
  } else {
17066
- transport.hasBase = true;
17067
- transport.base = prev;
16880
+ transport[transportHasBase] = true;
16881
+ transport[transportBase] = prev;
17068
16882
  }
17069
16883
  } finally {
17070
16884
  releaseConditionCursors(authoredWatermark);
@@ -17072,30 +16886,25 @@ function mergeConditionTransport(state, prev, cursor, value) {
17072
16886
  }
17073
16887
  }
17074
16888
  var cursorKey = conditionTexts[cursor + conditionKeyOffset] || "";
17075
- for (var offset = 0; offset < transport.entries.length; offset += transportEntryWidth) if (transport.entries[offset + 1] === cursorKey) {
17076
- transport.entries.splice(offset, transportEntryWidth);
16889
+ for (var offset = transportEntries; offset < transport.length; offset += transportEntryWidth) if (transport[offset + 1] === cursorKey) {
16890
+ transport.splice(offset, transportEntryWidth);
17077
16891
  break;
17078
16892
  }
17079
- appendConditionEntry(transport.entries, cursor, value);
16893
+ appendConditionEntry(transport, cursor, value);
17080
16894
  return transport;
17081
16895
  }
17082
16896
  var variantValueHandler = {
17083
16897
  segment(ctx, start, end, isBase, valid, source, chainStart, chainEnd, chainValid) {
17084
- var _directState_flatPass;
17085
16898
  var state = ctx[0];
17086
- var directState = state;
17087
16899
  if (start === end) return;
17088
16900
  if (isBase) {
17089
- feedCompoundSegment(directState, source, start, end, true, valid, "");
17090
16901
  if (!valid) return;
17091
16902
  emitResolvedVariant(ctx[1], source.slice(start, end), state, ctx[2], null);
17092
16903
  return;
17093
16904
  }
17094
16905
  if (!valid || !chainValid) return;
17095
- var cursor = directState.flatScanCursor;
17096
- var condition = cursor && conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag ? conditionNumbers[cursor + conditionValueOffset] : 0;
17097
- feedCompoundSegment(directState, source, start, end, false, Boolean(condition), condition && ((_directState_flatPass = directState.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passCompoundIndexes]) ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
17098
- if (!condition) return;
16906
+ var cursor = state.flatScanCursor;
16907
+ if (!(cursor && conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag ? conditionNumbers[cursor + conditionValueOffset] : 0)) return;
17099
16908
  emitResolvedVariant(ctx[1], source.slice(start, end), state, ctx[2], cursor);
17100
16909
  },
17101
16910
  modifier(ctx, start, end, valid, first, source) {
@@ -17118,80 +16927,6 @@ var variantValueHandler = {
17118
16927
  return true;
17119
16928
  }
17120
16929
  };
17121
- var contextPropSets = /* @__PURE__ */ new WeakMap();
17122
- function getContextPropSet(staticConfig) {
17123
- var _staticConfig_parentStaticConfig, _staticConfig_parentStaticConfig1, _staticConfig_parentStaticConfig2, _staticConfig_parentStaticConfig_context, _staticConfig_parentStaticConfig3;
17124
- var cached = contextPropSets.get(staticConfig);
17125
- if (cached !== void 0) return cached;
17126
- var contextConfig = staticConfig.context || ((_staticConfig_parentStaticConfig = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig === void 0 ? void 0 : _staticConfig_parentStaticConfig.context);
17127
- var inheritedContextPropKeys = !staticConfig.context || staticConfig.context === ((_staticConfig_parentStaticConfig1 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig1 === void 0 ? void 0 : _staticConfig_parentStaticConfig1.context) ? (_staticConfig_parentStaticConfig2 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig2 === void 0 ? void 0 : _staticConfig_parentStaticConfig2.contextProps : void 0;
17128
- var contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;
17129
- var set = null;
17130
- if (contextConfig === null || contextConfig === void 0 ? void 0 : contextConfig.props) {
17131
- set || (set = /* @__PURE__ */ new Set());
17132
- for (var key in contextConfig.props) set.add(key);
17133
- }
17134
- if (contextPropKeys) {
17135
- set || (set = /* @__PURE__ */ new Set());
17136
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
17137
- try {
17138
- for (var _iterator2 = contextPropKeys[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
17139
- var key1 = _step2.value;
17140
- set.add(key1);
17141
- }
17142
- } catch (err) {
17143
- _didIteratorError2 = true;
17144
- _iteratorError2 = err;
17145
- } finally {
17146
- try {
17147
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();
17148
- } finally {
17149
- if (_didIteratorError2) throw _iteratorError2;
17150
- }
17151
- }
17152
- }
17153
- if (contextConfig === null || contextConfig === void 0 ? void 0 : contextConfig.propKeys) {
17154
- set || (set = /* @__PURE__ */ new Set());
17155
- var _iteratorNormalCompletion12 = true, _didIteratorError12 = false, _iteratorError12 = void 0;
17156
- try {
17157
- for (var _iterator12 = contextConfig.propKeys[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
17158
- var key2 = _step12.value;
17159
- set.add(key2);
17160
- }
17161
- } catch (err) {
17162
- _didIteratorError12 = true;
17163
- _iteratorError12 = err;
17164
- } finally {
17165
- try {
17166
- if (!_iteratorNormalCompletion12 && _iterator12.return != null) _iterator12.return();
17167
- } finally {
17168
- if (_didIteratorError12) throw _iteratorError12;
17169
- }
17170
- }
17171
- }
17172
- var parentPropKeys = (_staticConfig_parentStaticConfig3 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig3 === void 0 ? void 0 : (_staticConfig_parentStaticConfig_context = _staticConfig_parentStaticConfig3.context) === null || _staticConfig_parentStaticConfig_context === void 0 ? void 0 : _staticConfig_parentStaticConfig_context.propKeys;
17173
- if (parentPropKeys) {
17174
- set || (set = /* @__PURE__ */ new Set());
17175
- var _iteratorNormalCompletion22 = true, _didIteratorError22 = false, _iteratorError22 = void 0;
17176
- try {
17177
- for (var _iterator22 = parentPropKeys[Symbol.iterator](), _step22; !(_iteratorNormalCompletion22 = (_step22 = _iterator22.next()).done); _iteratorNormalCompletion22 = true) {
17178
- var key3 = _step22.value;
17179
- set.add(key3);
17180
- }
17181
- } catch (err) {
17182
- _didIteratorError22 = true;
17183
- _iteratorError22 = err;
17184
- } finally {
17185
- try {
17186
- if (!_iteratorNormalCompletion22 && _iterator22.return != null) _iterator22.return();
17187
- } finally {
17188
- if (_didIteratorError22) throw _iteratorError22;
17189
- }
17190
- }
17191
- }
17192
- contextPropSets.set(staticConfig, set);
17193
- return set;
17194
- }
17195
16930
  function emitMappedValue(styleState, key, value, originalValue, nestedCondition, parentCondition, fallbackOriginal) {
17196
16931
  var nested = nestedCondition;
17197
16932
  var parent = parentCondition;
@@ -17212,8 +16947,8 @@ function emitMappedValue(styleState, key, value, originalValue, nestedCondition,
17212
16947
  }
17213
16948
  var contributeMappedValue = function(key, value, styleState, disabled, parentCondition, fallbackOriginal) {
17214
16949
  if (disabled) return emitMappedValue(styleState, key, value, void 0, void 0, parentCondition, fallbackOriginal);
17215
- var { conf, styleProps, staticConfig } = styleState;
17216
- var { variants } = staticConfig;
16950
+ var { conf, styleProps } = styleState;
16951
+ var variants = styleState.flatStyleStaticConfig.variants;
17217
16952
  var { disableExpandShorthands, noExpand, resolveValues } = styleProps;
17218
16953
  var shorthands = conf.shorthands;
17219
16954
  if (value === "unset") {
@@ -17284,15 +17019,15 @@ var contributeMappedValue = function(key, value, styleState, disabled, parentCon
17284
17019
  }
17285
17020
  };
17286
17021
  function resolveVariants(key, value, styleProps, styleState, parentVariantKey) {
17287
- var _styleState_staticConfig_variants;
17288
- var variantDefinition = (_styleState_staticConfig_variants = styleState.staticConfig.variants) === null || _styleState_staticConfig_variants === void 0 ? void 0 : _styleState_staticConfig_variants[key];
17022
+ var _styleState_flatStyleStaticConfig_variants;
17023
+ var variantDefinition = (_styleState_flatStyleStaticConfig_variants = styleState.flatStyleStaticConfig.variants) === null || _styleState_flatStyleStaticConfig_variants === void 0 ? void 0 : _styleState_flatStyleStaticConfig_variants[key];
17289
17024
  if (isConditionTransport(value)) {
17290
- if (value.hasBase) emitResolvedVariant(key, value.base, styleState, parentVariantKey, null);
17291
- for (var offset = 0; offset < value.entries.length;) {
17292
- var entryValue = value.entries[offset];
17025
+ if (value[transportHasBase]) emitResolvedVariant(key, value[transportBase], styleState, parentVariantKey, null);
17026
+ for (var offset = transportEntries; offset < value.length;) {
17027
+ var entryValue = value[offset];
17293
17028
  var watermark = conditionCursorTop;
17294
17029
  try {
17295
- emitResolvedVariant(key, entryValue, styleState, parentVariantKey, acquireTransportCursor(styleState, value.entries, offset, null));
17030
+ emitResolvedVariant(key, entryValue, styleState, parentVariantKey, acquireTransportCursor(styleState, value, offset, null));
17296
17031
  } finally {
17297
17032
  releaseConditionCursors(watermark);
17298
17033
  }
@@ -17318,32 +17053,27 @@ function resolveVariants(key, value, styleProps, styleState, parentVariantKey) {
17318
17053
  return;
17319
17054
  }
17320
17055
  var isObjectValue = value && (typeof value === "undefined" ? "undefined" : _type_of$7(value)) === "object" && !Array.isArray(value) && !isVariable(value);
17321
- var objectHasDefault = isObjectValue && Object.prototype.hasOwnProperty.call(value, "default");
17056
+ var objectHasDefault = isObjectValue && "default" in value;
17322
17057
  var objectWatermark = conditionCursorTop;
17323
17058
  try {
17324
17059
  var firstCursor = isObjectValue && !objectHasDefault ? acquireConditionCursor() : null;
17325
17060
  if (isObjectValue && classifyConditionalObject(value, styleState, void 0, firstCursor || void 0)) {
17326
17061
  var useFirstCursor = firstCursor !== null;
17327
17062
  for (var objKey in value) {
17328
- var _directState_flatPass;
17329
17063
  var payload = value[objKey];
17330
17064
  if (payload == null) continue;
17331
- var directState1 = styleState;
17332
- var payloadString = String(payload);
17333
17065
  if (objKey === "default") {
17334
- feedCompoundSegment(directState1, payloadString, 0, payloadString.length, true, true, "");
17335
17066
  emitResolvedVariant(key, payload, styleState, parentVariantKey, null);
17336
17067
  continue;
17337
17068
  }
17338
17069
  var watermark2 = conditionCursorTop;
17339
17070
  var cursor1 = useFirstCursor ? firstCursor : acquireConditionCursor();
17340
- var condition = conditionNumbers[cursor1 + conditionValueOffset];
17071
+ conditionNumbers[cursor1 + conditionValueOffset];
17341
17072
  if (useFirstCursor) useFirstCursor = false;
17342
17073
  else {
17343
17074
  resolveConditionText(styleState, cursor1, objKey);
17344
- condition = commitConditionCursor(styleState, cursor1);
17075
+ commitConditionCursor(styleState, cursor1);
17345
17076
  }
17346
- if ((_directState_flatPass = directState1.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passCompoundIndexes]) feedCompoundSegment(directState1, payloadString, 0, payloadString.length, false, Boolean(condition), condition ? conditionTexts[cursor1 + conditionKeyOffset] || "" : "");
17347
17077
  emitResolvedVariant(key, payload, styleState, parentVariantKey, cursor1);
17348
17078
  if (cursor1 !== firstCursor) releaseConditionCursors(watermark2);
17349
17079
  }
@@ -17355,46 +17085,32 @@ function resolveVariants(key, value, styleProps, styleState, parentVariantKey) {
17355
17085
  emitResolvedVariant(key, value, styleState, parentVariantKey, null);
17356
17086
  }
17357
17087
  function emitResolvedVariant(key, value, styleState, parentVariantKey, conditionCursor) {
17358
- var { staticConfig, conf, debug } = styleState;
17088
+ var { conf, debug } = styleState;
17359
17089
  var styleProps = styleState.styleProps;
17360
- var { variants } = staticConfig;
17090
+ var variants = styleState.flatStyleStaticConfig.variants;
17361
17091
  if (!variants) return;
17362
17092
  var variant = variants[key];
17363
17093
  var variantValue = getVariantDefinition(variant, value, conf, styleState);
17364
- if (!variantValue) {
17365
- if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1") {
17366
- if (typeof value !== "boolean") {
17367
- var name = styleState.styleProps.displayName || "[UnnamedComponent]";
17368
- console.warn(`No variant found: ${name} has variant "${key}", but no matching value "${value}"`);
17369
- }
17370
- }
17371
- return;
17372
- }
17094
+ if (!variantValue) return;
17373
17095
  if (typeof variantValue === "function") variantValue = variantValue(value, getVariantExtras(styleState));
17374
17096
  if (!isObj(variantValue)) return;
17375
17097
  var { noSkip } = styleProps;
17376
17098
  var originals = styleOriginalValues.get(variantValue);
17377
- var directState = styleState;
17378
- directState.flatCompoundOutputDepth = (directState.flatCompoundOutputDepth || 0) + 1;
17379
- try {
17380
- for (var outputKey in variantValue) {
17381
- if (!noSkip && outputKey in skipProps) continue;
17382
- var rawOutputValue = variantValue[outputKey];
17383
- var outputValue = styleProps.noNormalize ? rawOutputValue : normalizeValueWithProperty(rawOutputValue, conf.shorthands[outputKey] || outputKey);
17384
- var _originals_outputKey;
17385
- var originalValue = (_originals_outputKey = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _originals_outputKey !== void 0 ? _originals_outputKey : rawOutputValue;
17386
- var contextPropSet = getContextPropSet(staticConfig);
17387
- if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(outputKey)) {
17388
- var _styleState, _styleState1;
17389
- (_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});
17390
- styleState.overriddenContextProps[outputKey] = originalValue;
17391
- (_styleState1 = styleState).originalContextPropValues || (_styleState1.originalContextPropValues = {});
17392
- styleState.originalContextPropValues[outputKey] = originalValue;
17393
- }
17394
- contributeMappedValue(outputKey, outputValue, styleState, parentVariantKey === key && outputKey === key, conditionCursor || void 0, originalValue);
17395
- }
17396
- } finally {
17397
- directState.flatCompoundOutputDepth--;
17099
+ for (var outputKey in variantValue) {
17100
+ if (!noSkip && outputKey in skipProps) continue;
17101
+ var rawOutputValue = variantValue[outputKey];
17102
+ var outputValue = styleProps.noNormalize ? rawOutputValue : normalizeValueWithProperty(rawOutputValue, conf.shorthands[outputKey] || outputKey);
17103
+ var _originals_outputKey;
17104
+ var originalValue = (_originals_outputKey = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _originals_outputKey !== void 0 ? _originals_outputKey : rawOutputValue;
17105
+ var contextPropSet = styleState.flatStyleStaticConfig.styledContextKeys;
17106
+ if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(outputKey)) {
17107
+ var _styleState, _styleState1;
17108
+ (_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});
17109
+ styleState.overriddenContextProps[outputKey] = originalValue;
17110
+ (_styleState1 = styleState).originalContextPropValues || (_styleState1.originalContextPropValues = {});
17111
+ styleState.originalContextPropValues[outputKey] = originalValue;
17112
+ }
17113
+ contributeMappedValue(outputKey, outputValue, styleState, parentVariantKey === key && outputKey === key, conditionCursor || void 0, originalValue);
17398
17114
  }
17399
17115
  }
17400
17116
  function getFontFamilyFromNameOrVariable(input, conf) {
@@ -17411,127 +17127,6 @@ function getFontFamilyFromNameOrVariable(input, conf) {
17411
17127
  } else if (typeof input === "string" && input in conf.fontsParsed) return input;
17412
17128
  }
17413
17129
  var variableToFontNameCache = /* @__PURE__ */ new WeakMap();
17414
- function getVariantDefinition(variant, value, conf, param) {
17415
- var { theme } = param;
17416
- if (!variant) return;
17417
- if (value === void 0) return;
17418
- if (typeof variant === "function") return variant;
17419
- if (Object.prototype.hasOwnProperty.call(variant, value)) return variant[value];
17420
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
17421
- try {
17422
- for (var _iterator2 = getCompiledVariantResolvers(variant)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
17423
- var { key, parts } = _step2.value;
17424
- var _iteratorNormalCompletion12 = true, _didIteratorError12 = false, _iteratorError12 = void 0;
17425
- try {
17426
- for (var _iterator12 = parts[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
17427
- var part3 = _step12.value;
17428
- if (matchesVariantResolver(part3, value, conf, theme)) return variant[key];
17429
- }
17430
- } catch (err) {
17431
- _didIteratorError12 = true;
17432
- _iteratorError12 = err;
17433
- } finally {
17434
- try {
17435
- if (!_iteratorNormalCompletion12 && _iterator12.return != null) _iterator12.return();
17436
- } finally {
17437
- if (_didIteratorError12) throw _iteratorError12;
17438
- }
17439
- }
17440
- }
17441
- } catch (err) {
17442
- _didIteratorError2 = true;
17443
- _iteratorError2 = err;
17444
- } finally {
17445
- try {
17446
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();
17447
- } finally {
17448
- if (_didIteratorError2) throw _iteratorError2;
17449
- }
17450
- }
17451
- }
17452
- var variantResolverNameSet = new Set(variantResolverNames);
17453
- var variantResolverCache = /* @__PURE__ */ new WeakMap();
17454
- var preparedStyleStaticConfigs = /* @__PURE__ */ new WeakSet();
17455
- function prepareStyleStaticConfig(staticConfig) {
17456
- if (preparedStyleStaticConfigs.has(staticConfig)) return staticConfig;
17457
- preparedStyleStaticConfigs.add(staticConfig);
17458
- getContextPropSet(staticConfig);
17459
- prepareStaticConfigCompounds(staticConfig);
17460
- var variants = staticConfig.variants;
17461
- if (variants) for (var key in variants) {
17462
- var variant = variants[key];
17463
- if (variant && (typeof variant === "undefined" ? "undefined" : _type_of$7(variant)) === "object") getCompiledVariantResolvers(variant);
17464
- }
17465
- return staticConfig;
17466
- }
17467
- function getCompiledVariantResolvers(variant) {
17468
- var cached = variantResolverCache.get(variant);
17469
- if (cached) return cached;
17470
- var compiled = [];
17471
- for (var key in variant) {
17472
- var parts = parseVariantResolverKey(key);
17473
- if (parts) compiled.push({
17474
- key,
17475
- parts
17476
- });
17477
- }
17478
- variantResolverCache.set(variant, compiled);
17479
- return compiled;
17480
- }
17481
- function parseVariantResolverKey(key) {
17482
- if (!key) return null;
17483
- var parts = [];
17484
- var start = 0;
17485
- for (var index = 0; index <= key.length; index++) {
17486
- if (index !== key.length && key.charCodeAt(index) !== 124) continue;
17487
- var partStart = start;
17488
- var partEnd = index;
17489
- while (partStart < partEnd && key.charCodeAt(partStart) <= 32) partStart++;
17490
- while (partEnd > partStart && key.charCodeAt(partEnd - 1) <= 32) partEnd--;
17491
- if (partStart === partEnd) return null;
17492
- var part3 = key.slice(partStart, partEnd);
17493
- if (!variantResolverNameSet.has(part3)) return null;
17494
- parts.push(part3);
17495
- start = index + 1;
17496
- }
17497
- return parts;
17498
- }
17499
- function hasNumericPrefix(value, suffixLength) {
17500
- if (value.length <= suffixLength) return false;
17501
- return Number.isFinite(Number(value.slice(0, value.length - suffixLength)));
17502
- }
17503
- function matchesVariantResolver(resolverName, value, conf, theme) {
17504
- var string = typeof value === "string";
17505
- var number = typeof value === "number";
17506
- var rem = string && value.endsWith("rem") && hasNumericPrefix(value, 3);
17507
- switch (resolverName) {
17508
- case "Size":
17509
- case "Space":
17510
- case "Radius":
17511
- case "ZIndex": return value === true || number || string || resolverName !== "Size" && isVariable(value);
17512
- case "Color": return value != null && value in conf.tokensParsed.color || string;
17513
- case "Theme": return string && !!theme && value in theme;
17514
- case "FontSize":
17515
- var _conf_fontsParsed_body_size, _conf_fontsParsed_body;
17516
- return value === true || !!((_conf_fontsParsed_body = conf.fontsParsed.body) === null || _conf_fontsParsed_body === void 0 ? void 0 : (_conf_fontsParsed_body_size = _conf_fontsParsed_body.size) === null || _conf_fontsParsed_body_size === void 0 ? void 0 : _conf_fontsParsed_body_size[value]) || number || rem;
17517
- case "FontStyle":
17518
- var _conf_fontsParsed_body_style, _conf_fontsParsed_body1;
17519
- return !!((_conf_fontsParsed_body1 = conf.fontsParsed.body) === null || _conf_fontsParsed_body1 === void 0 ? void 0 : (_conf_fontsParsed_body_style = _conf_fontsParsed_body1.style) === null || _conf_fontsParsed_body_style === void 0 ? void 0 : _conf_fontsParsed_body_style[value]) || value === "normal" || value === "italic";
17520
- case "FontTransform":
17521
- var _conf_fontsParsed_body_transform, _conf_fontsParsed_body2;
17522
- return !!((_conf_fontsParsed_body2 = conf.fontsParsed.body) === null || _conf_fontsParsed_body2 === void 0 ? void 0 : (_conf_fontsParsed_body_transform = _conf_fontsParsed_body2.transform) === null || _conf_fontsParsed_body_transform === void 0 ? void 0 : _conf_fontsParsed_body_transform[value]) || value === "none" || value === "capitalize" || value === "uppercase" || value === "lowercase";
17523
- case "FontLineHeight":
17524
- var _conf_fontsParsed_body_lineHeight, _conf_fontsParsed_body3;
17525
- return !!((_conf_fontsParsed_body3 = conf.fontsParsed.body) === null || _conf_fontsParsed_body3 === void 0 ? void 0 : (_conf_fontsParsed_body_lineHeight = _conf_fontsParsed_body3.lineHeight) === null || _conf_fontsParsed_body_lineHeight === void 0 ? void 0 : _conf_fontsParsed_body_lineHeight[value]) || number || rem;
17526
- case "FontLetterSpacing":
17527
- var _conf_fontsParsed_body_letterSpacing, _conf_fontsParsed_body4;
17528
- return !!((_conf_fontsParsed_body4 = conf.fontsParsed.body) === null || _conf_fontsParsed_body4 === void 0 ? void 0 : (_conf_fontsParsed_body_letterSpacing = _conf_fontsParsed_body4.letterSpacing) === null || _conf_fontsParsed_body_letterSpacing === void 0 ? void 0 : _conf_fontsParsed_body_letterSpacing[value]) || number || rem;
17529
- case "number":
17530
- case "string":
17531
- case "boolean": return (typeof value === "undefined" ? "undefined" : _type_of$7(value)) === resolverName;
17532
- case "any": return true;
17533
- }
17534
- }
17535
17130
  //#endregion
17536
17131
  //#region ../web/dist/esm/helpers/mergeSlotStyleProps.native.js
17537
17132
  var isEventHandler = /^on[A-Z]/;
@@ -17964,9 +17559,9 @@ var isDisabled = function(props) {
17964
17559
  var _props_accessibilityState;
17965
17560
  return props.disabled || props.passThrough || ((_props_accessibilityState = props.accessibilityState) === null || _props_accessibilityState === void 0 ? void 0 : _props_accessibilityState.disabled) || props["aria-disabled"] || props.accessibilityDisabled || false;
17966
17561
  };
17967
- var useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l, m) {
17562
+ var useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l, m, n) {
17968
17563
  "use no memo";
17969
- var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);
17564
+ var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m, n);
17970
17565
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS && false);
17971
17566
  return res;
17972
17567
  };
@@ -17978,9 +17573,9 @@ function setupHooks(next) {
17978
17573
  }
17979
17574
  //#endregion
17980
17575
  //#region ../web/dist/esm/views/Slot.native.js
17981
- var _excluded$7 = ["children"];
17576
+ var _excluded$6 = ["children"];
17982
17577
  var Slot = /* @__PURE__ */ (0, react.memo)(createRefComponent(function Slot2(props, forwardedRef) {
17983
- var { children } = props, slotProps = _objectWithoutProperties(props, _excluded$7);
17578
+ var { children } = props, slotProps = _objectWithoutProperties(props, _excluded$6);
17984
17579
  if (/* @__PURE__ */ (0, react.isValidElement)(children)) {
17985
17580
  var mergedProps = mergeSlotProps(children, slotProps);
17986
17581
  return /* @__PURE__ */ (0, react.cloneElement)(children, children.type["avoidForwardRef"] ? mergedProps : _objectSpread2(_objectSpread2({}, mergedProps), {}, { ref: composeRefs(forwardedRef, children.props.ref) }));
@@ -18071,7 +17666,7 @@ function getThemedChildren(themeState, children, props) {
18071
17666
  }
18072
17667
  //#endregion
18073
17668
  //#region ../web/dist/esm/createComponent.native.js
18074
- var _excluded$6 = [
17669
+ var _excluded$5 = [
18075
17670
  "group",
18076
17671
  "hasDynGroupChildren",
18077
17672
  "unmounted",
@@ -18131,24 +17726,30 @@ var hasSetupBaseViews = false;
18131
17726
  var lastInteractionWasKeyboard = { value: false };
18132
17727
  var lastInteractionWasTouch = { value: false };
18133
17728
  function createComponent(staticConfig) {
18134
- var _staticConfig_context;
18135
17729
  if (process.env.TAMAGUI_RUNTIME === "zero") throw new Error(`[tamagui zero-runtime] createComponent ran in a zero-runtime graph. No Tamagui component renderer ships in this mode, so a component reference survived compilation. Fix the site or move the owning module to a declared full-runtime island.`);
18136
- prepareStyleStaticConfig(staticConfig);
18137
17730
  var config = null;
18138
17731
  var resolvedDefaultProps;
18139
- var didResolveDefaultProps = false;
18140
- var styledContextPropKeys = staticConfig.contextProps || ((_staticConfig_context = staticConfig.context) === null || _staticConfig_context === void 0 ? void 0 : _staticConfig_context.propKeys);
18141
- var styledContextKeys = styledContextPropKeys ? new Set(styledContextPropKeys) : void 0;
17732
+ var resolvedStyleRevision = -1;
17733
+ var resolvedStyleStaticConfig;
18142
17734
  var { Component, isText, isHOC } = staticConfig;
18143
17735
  var res;
17736
+ var { displayName } = staticConfig;
18144
17737
  var component = function(propsInWithRef) {
18145
17738
  "use no memo";
18146
17739
  var _hooks_usePropsTransform, _staticConfig_neverSkipProps;
18147
17740
  var _stateRef_current;
18148
- var displayName = res[componentDisplayName];
18149
17741
  var forwardedRef = propsInWithRef.ref;
18150
17742
  var propsIn = propsInWithRef;
18151
17743
  config = config || getConfig();
17744
+ var styleRevision = getConfigRevisionState(config).revision;
17745
+ if (resolvedStyleRevision !== styleRevision) {
17746
+ resolvedStyleRevision = styleRevision;
17747
+ var nextStyleStaticConfig = getStyleStaticConfig(staticConfig, config);
17748
+ resolvedStyleStaticConfig = nextStyleStaticConfig;
17749
+ resolvedDefaultProps = nextStyleStaticConfig.defaultProps;
17750
+ }
17751
+ var styleStaticConfig = resolvedStyleStaticConfig;
17752
+ styleStaticConfig.styledContextKeys;
18152
17753
  if (!hasSetupBaseViews) {
18153
17754
  var _hooks_getBaseViews;
18154
17755
  hasSetupBaseViews = true;
@@ -18166,10 +17767,6 @@ function createComponent(staticConfig) {
18166
17767
  var hasTextAncestor = false;
18167
17768
  var isInsideNativeMenu = isAndroid ? react.default.useContext(NativeMenuContext) : false;
18168
17769
  var props = propsIn;
18169
- if (!didResolveDefaultProps) {
18170
- didResolveDefaultProps = true;
18171
- resolvedDefaultProps = getDefaultProps(staticConfig);
18172
- }
18173
17770
  var [nextProps, overrides] = mergeComponentProps(resolvedDefaultProps, styledContextValue, propsIn);
18174
17771
  props = nextProps;
18175
17772
  overriddenContextProps = overrides;
@@ -18250,11 +17847,10 @@ function createComponent(staticConfig) {
18250
17847
  willBeAnimated,
18251
17848
  canPlatformPseudo: componentState.platformPseudo,
18252
17849
  displayName,
18253
- styledContext: styledContextValue,
18254
- styledContextKeys
17850
+ styledContext: styledContextValue
18255
17851
  };
18256
17852
  var themeName = (themeState === null || themeState === void 0 ? void 0 : themeState.name) || "";
18257
- var splitStyles = useSplitStyles(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, groupContextParent, elementType, startedUnhydrated, debugProp, animationDriver);
17853
+ var splitStyles = useSplitStyles(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, groupContextParent, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
18258
17854
  var finalizedComponentState = componentState.finalizeStyleFlags(!!(splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.hasEnterStyle), !!(splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.platformPseudo));
18259
17855
  hasEnterStyle = finalizedComponentState.hasEnterStyle;
18260
17856
  isAnimated = finalizedComponentState.isAnimated;
@@ -18365,7 +17961,7 @@ function createComponent(staticConfig) {
18365
17961
  return true;
18366
17962
  }
18367
17963
  var proxiedTheme = getThemeProxied(themeStateProps, nextTheme, { current: null }, { current: null });
18368
- var nextStyles = getSplitStyles(props, staticConfig, proxiedTheme, stateName, state, _objectSpread2(_objectSpread2({}, styleProps), {}, { mediaState: getMedia() }), null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver);
17964
+ var nextStyles = getSplitStyles(props, staticConfig, proxiedTheme, stateName, state, _objectSpread2(_objectSpread2({}, styleProps), {}, { mediaState: getMedia() }), null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
18369
17965
  if (!(nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style)) return false;
18370
17966
  pushViewState(stateName, nextStyles.style);
18371
17967
  return true;
@@ -18437,7 +18033,7 @@ function createComponent(staticConfig) {
18437
18033
  let updateGroupListeners2 = function() {
18438
18034
  var updatedState = stateRef.current.nextState;
18439
18035
  if (groupContext) {
18440
- var { group, hasDynGroupChildren, unmounted, transition } = updatedState, childrenGroupState = _objectWithoutProperties(updatedState, _excluded$6);
18036
+ var { group, hasDynGroupChildren, unmounted, transition } = updatedState, childrenGroupState = _objectWithoutProperties(updatedState, _excluded$5);
18441
18037
  notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);
18442
18038
  }
18443
18039
  };
@@ -18451,7 +18047,7 @@ function createComponent(staticConfig) {
18451
18047
  }
18452
18048
  var updatedState = stateRef.current.nextState || state;
18453
18049
  var mediaState2 = stateRef.current.nextMedia;
18454
- var nextStyles = getSplitStyles(props, staticConfig, theme, themeName, updatedState, mediaState2 ? _objectSpread2(_objectSpread2({}, styleProps), {}, { mediaState: mediaState2 }) : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver);
18050
+ var nextStyles = getSplitStyles(props, staticConfig, theme, themeName, updatedState, mediaState2 ? _objectSpread2(_objectSpread2({}, styleProps), {}, { mediaState: mediaState2 }) : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
18455
18051
  var _nextStyles_effectiveTransition, _ref5;
18456
18052
  var effectiveTransition2 = (_ref5 = (_nextStyles_effectiveTransition = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _nextStyles_effectiveTransition !== void 0 ? _nextStyles_effectiveTransition : props.transition) !== null && _ref5 !== void 0 ? _ref5 : platformPseudo ? "0ms" : void 0;
18457
18053
  stateRef.current.prevPseudoState = extractPseudoState(updatedState);
@@ -18829,6 +18425,10 @@ function createComponent(staticConfig) {
18829
18425
  res = component;
18830
18426
  res = /* @__PURE__ */ react.default.memo(res);
18831
18427
  res.staticConfig = staticConfig;
18428
+ if (displayName) {
18429
+ res.displayName = displayName;
18430
+ res[componentDisplayName] = displayName;
18431
+ }
18832
18432
  return res;
18833
18433
  }
18834
18434
  var fromPx = function(val) {
@@ -19008,54 +18608,24 @@ var isTamaguiElement = function(child) {
19008
18608
  return /* @__PURE__ */ react.default.isValidElement(child) && isTamaguiComponent(child.type);
19009
18609
  };
19010
18610
  //#endregion
19011
- //#region ../web/dist/esm/helpers/themeable.native.js
19012
- var _excluded$5 = [
19013
- "theme",
19014
- "themeReset",
19015
- "ref"
19016
- ];
19017
- function themeable(Component, staticConfig) {
19018
- var optimize = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
19019
- var withTheme = function WithTheme(props) {
19020
- "use no memo";
19021
- var userDefaults = getDefaultProps(staticConfig);
19022
- var defaultTheme = userDefaults === null || userDefaults === void 0 ? void 0 : userDefaults.theme;
19023
- var defaultResetTheme = userDefaults === null || userDefaults === void 0 ? void 0 : userDefaults.themeReset;
19024
- var { theme, themeReset, ref } = props, rest = _objectWithoutProperties(props, _excluded$5);
19025
- var overriddenContextProps;
19026
- var context = staticConfig === null || staticConfig === void 0 ? void 0 : staticConfig.context;
19027
- if (context) for (var key in context.props) {
19028
- var val = props[key];
19029
- if (val !== void 0) {
19030
- overriddenContextProps = overriddenContextProps || {};
19031
- overriddenContextProps[key] = val;
19032
- }
19033
- }
19034
- var element = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, _objectSpread2(_objectSpread2({ ref }, rest), {}, { "data-disable-theme": true }));
19035
- var filteredProps = null;
19036
- if ("debug" in props) {
19037
- filteredProps = filteredProps || {};
19038
- filteredProps.debug = props.debug;
19039
- }
19040
- if ("theme" in props || defaultTheme) {
19041
- filteredProps = filteredProps || {};
19042
- filteredProps.name = "theme" in props ? props.theme : defaultTheme;
19043
- }
19044
- if ("themeReset" in props || defaultResetTheme) {
19045
- filteredProps = filteredProps || {};
19046
- filteredProps.reset = "themeReset" in props ? themeReset : defaultResetTheme;
19047
- }
19048
- if (optimize && !filteredProps) return element;
19049
- var contents = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Theme, _objectSpread2(_objectSpread2({ "disable-child-theme": true }, filteredProps), {}, { children: element }));
19050
- if (context) {
19051
- var Provider = context.Provider;
19052
- var contextValue = react.default.useContext(context);
19053
- contents = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Provider, _objectSpread2(_objectSpread2(_objectSpread2({}, contextValue), overriddenContextProps), {}, { children: contents }));
19054
- }
19055
- return contents;
19056
- };
19057
- withTheme.displayName = `Themed(${(Component === null || Component === void 0 ? void 0 : Component.displayName) || (Component === null || Component === void 0 ? void 0 : Component.name) || "Anonymous"})`;
19058
- return withTheme;
18611
+ //#region ../web/dist/esm/helpers/splitStyleProps.native.js
18612
+ function splitStyleProps(props) {
18613
+ var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
18614
+ var styleProps = {};
18615
+ var regularProps = {};
18616
+ var { expandShorthands = false, filter } = options;
18617
+ var shorthands = getConfig().shorthands;
18618
+ var filterIsFunction = typeof filter === "function";
18619
+ var propsRecord = props;
18620
+ for (var originalKey in props) {
18621
+ if (!Object.hasOwn(props, originalKey)) continue;
18622
+ var value = propsRecord[originalKey];
18623
+ var key = shorthands[originalKey] || originalKey;
18624
+ var isStyleProp = key in stylePropsAll;
18625
+ if (filter ? filterIsFunction ? filter(key, value, originalKey, isStyleProp) : Object.hasOwn(filter, key) : isStyleProp) styleProps[expandShorthands ? key : originalKey] = value;
18626
+ else regularProps[originalKey] = value;
18627
+ }
18628
+ return [styleProps, regularProps];
19059
18629
  }
19060
18630
  //#endregion
19061
18631
  //#region ../web/dist/esm/helpers/wrapStyleTags.native.js
@@ -19114,6 +18684,7 @@ function createChangeEventDetails(reason, event, trigger, extra) {
19114
18684
  //#endregion
19115
18685
  //#region ../web/dist/esm/createStyledHOC.native.js
19116
18686
  var _excluded$4 = ["ref"];
18687
+ var _excluded2$1 = ["theme"];
19117
18688
  function createStyledHOC(component, render, options) {
19118
18689
  var staticConfig = component.staticConfig;
19119
18690
  var extendedConfig = _objectSpread2(_objectSpread2(_objectSpread2({}, staticConfig), options === null || options === void 0 ? void 0 : options.staticConfig), {}, {
@@ -19122,13 +18693,34 @@ function createStyledHOC(component, render, options) {
19122
18693
  isStyledHOC: false
19123
18694
  });
19124
18695
  var out = function StyledHOCComponent(props) {
19125
- var { ref } = props;
19126
- return render(_objectWithoutProperties(props, _excluded$4), ref);
18696
+ "use no memo";
18697
+ var _extendedConfig_defaultProps;
18698
+ var { ref } = props, rest = _objectWithoutProperties(props, _excluded$4);
18699
+ if (options === null || options === void 0 ? void 0 : options.disableTheme) return render(rest, ref);
18700
+ var defaultTheme = (_extendedConfig_defaultProps = extendedConfig.defaultProps) === null || _extendedConfig_defaultProps === void 0 ? void 0 : _extendedConfig_defaultProps.theme;
18701
+ var { theme: _ } = rest;
18702
+ var element = render(_objectSpread2(_objectSpread2({}, _objectWithoutProperties(rest, _excluded2$1)), {}, { "data-disable-theme": true }), ref);
18703
+ var themeProps = null;
18704
+ if ("debug" in props) themeProps = { debug: props.debug };
18705
+ if ("theme" in props || defaultTheme) (themeProps || (themeProps = {})).name = "theme" in props ? props.theme : defaultTheme;
18706
+ if (!themeProps) return element;
18707
+ var context = extendedConfig.context;
18708
+ if (!context) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Theme, _objectSpread2(_objectSpread2({ "disable-child-theme": true }, themeProps), {}, { children: element }));
18709
+ var contextValue = react.default.useContext(context);
18710
+ var overriddenContextProps;
18711
+ for (var key in context.props) {
18712
+ var value = props[key];
18713
+ if (value !== void 0) (overriddenContextProps || (overriddenContextProps = {}))[key] = value;
18714
+ }
18715
+ var Provider = context.Provider;
18716
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Provider, _objectSpread2(_objectSpread2(_objectSpread2({}, contextValue), overriddenContextProps), {}, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Theme, _objectSpread2(_objectSpread2({ "disable-child-theme": true }, themeProps), {}, { children: element })) }));
19127
18717
  };
19128
- out = (options === null || options === void 0 ? void 0 : options.disableTheme) ? out : themeable(out, extendedConfig, true);
19129
18718
  if (extendedConfig.memo || process.env.TAMAGUI_MEMOIZE_STYLED_HOC) out = /* @__PURE__ */ react.default.memo(out);
19130
18719
  var displayName = (options === null || options === void 0 ? void 0 : options.displayName) || component[componentDisplayName];
19131
- setComponentDisplayName(out, displayName);
18720
+ if (displayName) {
18721
+ out.displayName = displayName;
18722
+ out[componentDisplayName] = displayName;
18723
+ }
19132
18724
  out.staticConfig = extendedConfig;
19133
18725
  return out;
19134
18726
  }
@@ -19922,65 +19514,19 @@ var RNConfigs = {
19922
19514
  default: { isReactNative: true }
19923
19515
  };
19924
19516
  //#endregion
19517
+ //#region ../web/dist/esm/types.native.js
19518
+ function createVariantResolver(key, resolver) {
19519
+ return resolver;
19520
+ }
19521
+ //#endregion
19925
19522
  //#region ../web/dist/esm/styled.native.js
19926
19523
  var _excluded$2 = [
19927
- "variants",
19928
- "displayName",
19929
- "defaultVariants",
19930
- "context"
19931
- ];
19932
- var _excluded2$1 = [
19933
19524
  "variants",
19934
19525
  "displayName",
19935
19526
  "defaultVariants",
19936
19527
  "context",
19937
- "contextProps",
19938
- "compoundVariants"
19528
+ "contextProps"
19939
19529
  ];
19940
- var textLikeElements = /* @__PURE__ */ new Set([
19941
- "a",
19942
- "abbr",
19943
- "b",
19944
- "bdi",
19945
- "bdo",
19946
- "cite",
19947
- "code",
19948
- "data",
19949
- "del",
19950
- "dfn",
19951
- "em",
19952
- "i",
19953
- "ins",
19954
- "kbd",
19955
- "label",
19956
- "mark",
19957
- "q",
19958
- "s",
19959
- "samp",
19960
- "small",
19961
- "span",
19962
- "strong",
19963
- "sub",
19964
- "sup",
19965
- "time",
19966
- "u",
19967
- "var"
19968
- ]);
19969
- function styledHtml(tag, options) {
19970
- var isText = textLikeElements.has(tag);
19971
- var _ref = options || {}, { variants, displayName, defaultVariants, context } = _ref, defaultProps = _objectWithoutProperties(_ref, _excluded$2);
19972
- var conf = {
19973
- Component: tag,
19974
- variants,
19975
- defaultProps,
19976
- defaultVariants,
19977
- isText,
19978
- acceptsClassName: true,
19979
- context
19980
- };
19981
- if (defaultProps["children"] || context) conf.neverFlatten = true;
19982
- return setComponentDisplayName(createComponent(conf), displayName);
19983
- }
19984
19530
  function styled() {
19985
19531
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
19986
19532
  return styledImpl(void 0, ...args);
@@ -19999,11 +19545,10 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
19999
19545
  var Component = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isStyledHOC) || isPlainStyledComponent ? ComponentIn : (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.Component) || ComponentIn;
20000
19546
  var reactNativeConfig = !parentStaticConfig ? getReactNativeConfig(Component) : void 0;
20001
19547
  var resolvedIsReactNative = Boolean(reactNativeConfig || isReactNative);
20002
- var component = setComponentDisplayName(createComponent((function() {
20003
- var _ref2 = options || {}, { variants, displayName: _displayName, defaultVariants, context, contextProps, compoundVariants } = _ref2, defaultProps = _objectWithoutProperties(_ref2, _excluded2$1);
19548
+ var component = createComponent((function() {
19549
+ var _ref = options || {}, { variants, displayName: _displayName, defaultVariants, context, contextProps } = _ref, defaultProps = _objectWithoutProperties(_ref, _excluded$2);
20004
19550
  var parentDefaultVariants;
20005
19551
  var parentDefaultProps;
20006
- var parentCompoundVariants;
20007
19552
  var mergedBaseClassName = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName) && baseClassName ? `${parentStaticConfig.baseClassName} ${baseClassName}` : baseClassName || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName);
20008
19553
  if (parentStaticConfig) {
20009
19554
  if (!(parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC)) {
@@ -20024,10 +19569,8 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
20024
19569
  }
20025
19570
  }
20026
19571
  if (parentStaticConfig.variants) variants = mergeVariants(parentStaticConfig.variants, variants);
20027
- parentCompoundVariants = parentStaticConfig.compoundVariants;
20028
19572
  }
20029
19573
  }
20030
- var mergedCompoundVariants = parentCompoundVariants || compoundVariants ? [...parentCompoundVariants || [], ...compoundVariants || []] : void 0;
20031
19574
  var mergedContext = context || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.context);
20032
19575
  var mergedContextProps = context ? contextProps : contextProps || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.contextProps);
20033
19576
  if (parentDefaultProps || defaultVariants || parentDefaultVariants) defaultProps = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, parentDefaultProps), parentDefaultVariants), defaultProps), defaultVariants);
@@ -20036,7 +19579,6 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
20036
19579
  var acceptsClassName = (_config_acceptsClassName = config === null || config === void 0 ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : isPlainStyledComponent || resolvedIsReactNative || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.acceptsClassName);
20037
19580
  var conf = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, parentStaticConfig), config), !isPlainStyledComponent && { Component }), {}, {
20038
19581
  variants,
20039
- compoundVariants: mergedCompoundVariants,
20040
19582
  baseClassName: mergedBaseClassName,
20041
19583
  defaultProps,
20042
19584
  defaultVariants,
@@ -20047,11 +19589,12 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
20047
19589
  contextProps: mergedContextProps
20048
19590
  }, reactNativeConfig), {}, {
20049
19591
  isStyledHOC: Boolean(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC),
20050
- parentStaticConfig
19592
+ parentStaticConfig,
19593
+ displayName: displayName || ComponentIn[componentDisplayName]
20051
19594
  }, frontend && { styleFrontend: frontend });
20052
19595
  if (defaultProps["children"] || !acceptsClassName || mergedContext) conf.neverFlatten = true;
20053
19596
  return conf;
20054
- })() || {}), displayName || ComponentIn[componentDisplayName]);
19597
+ })() || {});
20055
19598
  for (var key in ComponentIn) {
20056
19599
  if (key === "propTypes") continue;
20057
19600
  if (key in component) continue;
@@ -20059,12 +19602,6 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
20059
19602
  }
20060
19603
  return component;
20061
19604
  }
20062
- var styledExport = new Proxy(styled, { get(target, prop) {
20063
- if (prop in target) return target[prop];
20064
- return function(options) {
20065
- return styledHtml(prop, options);
20066
- };
20067
- } });
20068
19605
  //#endregion
20069
19606
  //#region ../web/dist/esm/hooks/useIsTouchDevice.native.js
20070
19607
  var useIsTouchDevice = function() {
@@ -20095,95 +19632,6 @@ var useAnimatedNumberReaction = function(opts, onValue) {
20095
19632
  return useAnimatedNumberDriver().useAnimatedNumberReaction(opts, onValue);
20096
19633
  };
20097
19634
  //#endregion
20098
- //#region ../web/dist/esm/views/View.native.js
20099
- var viewStaticConfig = {
20100
- acceptsClassName: true,
20101
- validStyles
20102
- };
20103
- var View$1 = setComponentDisplayName(createComponent(viewStaticConfig), "View");
20104
- //#endregion
20105
- //#region ../web/dist/esm/hooks/useProps.native.js
20106
- function useProps(props, opts) {
20107
- var [propsOut, styleOut] = usePropsAndStyle(props, _objectSpread2(_objectSpread2({}, opts), {}, {
20108
- noExpand: true,
20109
- noNormalize: true,
20110
- resolveValues: "none"
20111
- }));
20112
- return _objectSpread2(_objectSpread2({}, propsOut), styleOut);
20113
- }
20114
- function useStyle(props, opts) {
20115
- return usePropsAndStyle(props, opts)[1] || {};
20116
- }
20117
- function usePropsAndStyle(props, opts) {
20118
- var _opts_forComponent;
20119
- var _opts_forComponent_staticConfig;
20120
- var staticConfig = (_opts_forComponent_staticConfig = opts === null || opts === void 0 ? void 0 : (_opts_forComponent = opts.forComponent) === null || _opts_forComponent === void 0 ? void 0 : _opts_forComponent.staticConfig) !== null && _opts_forComponent_staticConfig !== void 0 ? _opts_forComponent_staticConfig : View$1.staticConfig;
20121
- var [theme, themeState] = useThemeWithState({
20122
- name: "theme" in props ? props.theme : void 0,
20123
- needsUpdate() {
20124
- return true;
20125
- }
20126
- });
20127
- var componentContext = react.default.useContext(ComponentContext);
20128
- var groupContext = react.default.useContext(GroupContext);
20129
- var componentState = useComponentState(props, componentContext.animationDriver, staticConfig, getConfig());
20130
- var { props: statefulProps, state, disabled, setState, setStateShallow } = componentState;
20131
- var mediaStateNow = (opts === null || opts === void 0 ? void 0 : opts.noMedia) ? mediaState : useMedia();
20132
- var splitStyles = useSplitStyles(statefulProps, staticConfig, theme, (themeState === null || themeState === void 0 ? void 0 : themeState.name) || "", state, _objectSpread2({
20133
- isAnimated: false,
20134
- mediaState: mediaStateNow,
20135
- noSkip: true,
20136
- noMergeStyle: true,
20137
- noClass: true,
20138
- resolveValues: "auto"
20139
- }, opts), null, componentContext, groupContext);
20140
- componentState.finalizeStyleFlags(!!(splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.hasEnterStyle), !!(splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.platformPseudo));
20141
- var { mediaGroups, pseudoGroups } = splitStyles || {};
20142
- var groupSetRevision = useGroupSetRevision(pseudoGroups, mediaGroups);
20143
- useIsomorphicLayoutEffect(function() {
20144
- var disposeSafeArea;
20145
- if (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea) {
20146
- var updateSafeArea = function() {
20147
- setState(function(previous) {
20148
- return _objectSpread2({}, previous);
20149
- });
20150
- };
20151
- disposeSafeArea = subscribeToSafeArea(updateSafeArea);
20152
- updateSafeArea();
20153
- }
20154
- if (disabled) return disposeSafeArea;
20155
- if (state.unmounted) {
20156
- setStateShallow({ unmounted: false });
20157
- return disposeSafeArea;
20158
- }
20159
- if (groupContext) {
20160
- var disposeGroup = subscribeToContextGroup({
20161
- groupContext,
20162
- setStateShallow,
20163
- mediaGroups,
20164
- pseudoGroups
20165
- });
20166
- if (!disposeSafeArea) return disposeGroup;
20167
- return function() {
20168
- disposeSafeArea();
20169
- disposeGroup === null || disposeGroup === void 0 || disposeGroup();
20170
- };
20171
- }
20172
- return disposeSafeArea;
20173
- }, [
20174
- disabled,
20175
- groupContext,
20176
- splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea,
20177
- groupSetRevision
20178
- ]);
20179
- return [
20180
- (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.viewProps) || {},
20181
- (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.style) || {},
20182
- theme,
20183
- mediaState
20184
- ];
20185
- }
20186
- //#endregion
20187
19635
  //#region ../web/dist/esm/hooks/useThemeName.native.js
20188
19636
  var forceUpdateState = {
20189
19637
  forceClassName: true,
@@ -20226,7 +19674,14 @@ var textStaticConfig = {
20226
19674
  } } },
20227
19675
  validStyles: _objectSpread2(_objectSpread2({}, validStyles), stylePropsTextOnly)
20228
19676
  };
20229
- var Text$1 = setComponentDisplayName(createComponent(textStaticConfig), "Text");
19677
+ var Text$1 = createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, { displayName: "Text" }));
19678
+ //#endregion
19679
+ //#region ../web/dist/esm/views/View.native.js
19680
+ var viewStaticConfig = {
19681
+ acceptsClassName: true,
19682
+ validStyles
19683
+ };
19684
+ var View$1 = createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, { displayName: "View" }));
20230
19685
  //#endregion
20231
19686
  //#region ../web/dist/esm/dom/domEventProps.native.js
20232
19687
  var domEventProps = {
@@ -20758,28 +20213,32 @@ function renderDOMTextInput(resolved) {
20758
20213
  if (onKeyDown) next.onKeyPress = keyFromKeyPress(onKeyDown);
20759
20214
  return (0, react_jsx_runtime.jsx)(TextInput, next);
20760
20215
  }
20761
- setComponentDisplayName(createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20216
+ createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20762
20217
  validStyles: _objectSpread2(_objectSpread2({}, viewStaticConfig.validStyles), textStaticConfig.validStyles),
20763
20218
  neverSkipProps: domEventProps,
20764
20219
  Component: DOMView,
20765
- neverFlatten: true
20766
- })), "DOMRuntimeView");
20767
- setComponentDisplayName(createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20220
+ neverFlatten: true,
20221
+ displayName: "DOMRuntimeView"
20222
+ }));
20223
+ createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20768
20224
  neverSkipProps: domEventProps,
20769
20225
  Component: DOMText,
20770
- neverFlatten: true
20771
- })), "DOMRuntimeText");
20772
- setComponentDisplayName(createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20226
+ neverFlatten: true,
20227
+ displayName: "DOMRuntimeText"
20228
+ }));
20229
+ createComponent(_objectSpread2(_objectSpread2({}, viewStaticConfig), {}, {
20773
20230
  validStyles: _objectSpread2(_objectSpread2({}, viewStaticConfig.validStyles), textStaticConfig.validStyles),
20774
20231
  neverSkipProps: domEventProps,
20775
20232
  Component: DOMImage,
20776
- neverFlatten: true
20777
- })), "DOMRuntimeImage");
20778
- setComponentDisplayName(createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20233
+ neverFlatten: true,
20234
+ displayName: "DOMRuntimeImage"
20235
+ }));
20236
+ createComponent(_objectSpread2(_objectSpread2({}, textStaticConfig), {}, {
20779
20237
  neverSkipProps: domEventProps,
20780
20238
  Component: DOMTextInput,
20781
- neverFlatten: true
20782
- })), "DOMRuntimeTextInput");
20239
+ neverFlatten: true,
20240
+ displayName: "DOMRuntimeTextInput"
20241
+ }));
20783
20242
  //#endregion
20784
20243
  //#region ../web/dist/esm/dom/htmlRuntime.native.js
20785
20244
  function wrapLiteralText(children) {
@@ -20887,14 +20346,18 @@ function createDOMTagFactory(tables) {
20887
20346
  var Tag = function(props) {
20888
20347
  return (0, react_jsx_runtime.jsx)(Component, resolveDOMProps(props, tag, spec, tables));
20889
20348
  };
20890
- return setComponentDisplayName(Tag, tag);
20349
+ Tag.displayName = tag;
20350
+ Tag[componentDisplayName] = tag;
20351
+ return Tag;
20891
20352
  };
20892
20353
  }
20893
20354
  function unsupportedDOMTag(tag, note) {
20894
20355
  var Tag = function() {
20895
20356
  throw new Error(`html.${tag} is not supported on native: ${note}`);
20896
20357
  };
20897
- return setComponentDisplayName(Tag, tag);
20358
+ Tag.displayName = tag;
20359
+ Tag[componentDisplayName] = tag;
20360
+ return Tag;
20898
20361
  }
20899
20362
  //#endregion
20900
20363
  //#region ../web/dist/esm/dom/html.native.js
@@ -22343,7 +21806,6 @@ exports.formatDiagnostic = formatDiagnostic;
22343
21806
  exports.getAutoVariableCSS = getAutoVariableCSS;
22344
21807
  exports.getCSSStylesAtomic = getCSSStylesAtomic;
22345
21808
  exports.getConfig = getConfig;
22346
- exports.getDefaultProps = getDefaultProps;
22347
21809
  exports.getExpandedShorthand = getExpandedShorthand;
22348
21810
  exports.getMedia = getMedia;
22349
21811
  exports.getMutatedAutoVariableCSS = getMutatedAutoVariableCSS;
@@ -22352,6 +21814,7 @@ exports.getPlatformDriver = getPlatformDriver;
22352
21814
  exports.getSetting = getSetting;
22353
21815
  exports.getSplitStyles = getSplitStyles;
22354
21816
  exports.getStyleCompat = getStyleCompat;
21817
+ exports.getStyleStaticConfig = getStyleStaticConfig;
22355
21818
  exports.getStyleTags = getStyleTags;
22356
21819
  exports.getThemeClassNames = getThemeClassNames;
22357
21820
  exports.getThemeProviderChainSizes = getThemeProviderChainSizes;
@@ -22404,7 +21867,6 @@ exports.nonAnimatableWebTextProps = nonAnimatableWebTextProps;
22404
21867
  exports.nonAnimatableWebViewProps = nonAnimatableWebViewProps;
22405
21868
  exports.normalizeColor = normalizeColor;
22406
21869
  exports.normalizeStyle = normalizeStyle;
22407
- exports.prepareStyleStaticConfig = prepareStyleStaticConfig;
22408
21870
  exports.px = px;
22409
21871
  exports.registerLayoutNode = registerLayoutNode;
22410
21872
  exports.removeNativeStyleScope = removeNativeStyleScope;
@@ -22427,7 +21889,6 @@ exports.setMediaState = setMediaState;
22427
21889
  exports.setNativeStyleEngine = setNativeStyleEngine;
22428
21890
  exports.setNativeStyleEngineFlushListener = setNativeStyleEngineFlushListener;
22429
21891
  exports.setNonce = setNonce;
22430
- exports.setOnLayoutStrategy = setOnLayoutStrategy;
22431
21892
  exports.setRef = setRef;
22432
21893
  exports.setupDev = setupDev;
22433
21894
  exports.setupHooks = setupHooks;
@@ -22435,17 +21896,17 @@ exports.setupMatchMedia = setupMatchMedia;
22435
21896
  exports.setupPlatformDriver = setupPlatformDriver;
22436
21897
  exports.shouldRenderNativePlatform = shouldRenderNativePlatform;
22437
21898
  exports.simpleHash = simpleHash;
21899
+ exports.splitStyleProps = splitStyleProps;
22438
21900
  exports.stylePropsAll = stylePropsAll;
22439
21901
  exports.stylePropsText = stylePropsText;
22440
21902
  exports.stylePropsTextOnly = stylePropsTextOnly;
22441
21903
  exports.stylePropsTransform = stylePropsTransform;
22442
21904
  exports.stylePropsUnitless = stylePropsUnitless;
22443
21905
  exports.stylePropsView = stylePropsView;
22444
- exports.styled = styledExport;
21906
+ exports.styled = styled;
22445
21907
  exports.supportsDynamicColorIOS = supportsDynamicColorIOS;
22446
21908
  exports.textStaticConfig = textStaticConfig;
22447
21909
  exports.themeRefKey = themeRefKey;
22448
- exports.themeable = themeable;
22449
21910
  exports.tokenCategories = tokenCategories;
22450
21911
  exports.updateConfig = updateConfig;
22451
21912
  exports.updateFont = updateFont;
@@ -22468,9 +21929,6 @@ exports.useIsTouchDevice = useIsTouchDevice;
22468
21929
  exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
22469
21930
  exports.useMedia = useMedia;
22470
21931
  exports.usePortalThemeState = usePortalThemeState;
22471
- exports.useProps = useProps;
22472
- exports.usePropsAndStyle = usePropsAndStyle;
22473
- exports.useStyle = useStyle;
22474
21932
  exports.useTheme = useTheme;
22475
21933
  exports.useThemeName = useThemeName;
22476
21934
  exports.validStyles = validStyles;