@tamagui/core 3.0.6 → 3.0.8

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
@@ -113,7 +113,7 @@ function isPlainObject(value) {
113
113
  }
114
114
  var isObj;
115
115
  var init_isObj_native = __esmMin((() => {
116
- isObj = function(x) {
116
+ isObj = function isObj2(x) {
117
117
  return x && !Array.isArray(x) && typeof x === "object";
118
118
  };
119
119
  }));
@@ -121,20 +121,20 @@ var init_isObj_native = __esmMin((() => {
121
121
  //#region ../web/dist/esm/helpers/mergeProps.native.js
122
122
  var mergeLayer, mergeProps, mergeComponentProps;
123
123
  var init_mergeProps_native = __esmMin((() => {
124
- mergeLayer = function(out, layer) {
124
+ mergeLayer = function mergeLayer2(out, layer) {
125
125
  for (var key in layer) {
126
126
  var value = layer[key];
127
127
  if (value === void 0 && key in out) continue;
128
128
  out[key] = value;
129
129
  }
130
130
  };
131
- mergeProps = function(defaultProps, props) {
131
+ mergeProps = function mergeProps2(defaultProps, props) {
132
132
  var out = {};
133
133
  mergeLayer(out, defaultProps);
134
134
  mergeLayer(out, props);
135
135
  return out;
136
136
  };
137
- mergeComponentProps = function(defaultProps, contextProps, props) {
137
+ mergeComponentProps = function mergeComponentProps2(defaultProps, contextProps, props) {
138
138
  var overriddenContext = null;
139
139
  if (!defaultProps && !contextProps) return [props, overriddenContext];
140
140
  var out = {};
@@ -190,7 +190,7 @@ var init_createStyledContext_native = __esmMin((() => {
190
190
  "scope",
191
191
  "__disableMergeDefaultValues"
192
192
  ];
193
- createStyledContext = function(defaultValues) {
193
+ createStyledContext = function createStyledContext2(defaultValues) {
194
194
  "use no memo";
195
195
  var namespaceOrOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
196
196
  var namespace = typeof namespaceOrOptions === "string" ? namespaceOrOptions : namespaceOrOptions.namespace || "";
@@ -209,10 +209,10 @@ var init_createStyledContext_native = __esmMin((() => {
209
209
  }
210
210
  return ScopedContext;
211
211
  }
212
- var getNamespacedScope = function(scope) {
212
+ var getNamespacedScope = function getNamespacedScope2(scope) {
213
213
  return namespace ? `${namespace}--${scope}` : scope;
214
214
  };
215
- var Provider = function(param) {
215
+ var Provider = function Provider2(param) {
216
216
  var { children, scope: scopeIn, __disableMergeDefaultValues } = param, values = _objectWithoutProperties(param, _excluded$26);
217
217
  var scope = getNamespacedScope(scopeIn);
218
218
  var next = react.default.useMemo(function() {
@@ -228,7 +228,7 @@ var init_createStyledContext_native = __esmMin((() => {
228
228
  })
229
229
  });
230
230
  };
231
- var useStyledContext = function() {
231
+ var useStyledContext = function useStyledContext2() {
232
232
  var scopeIn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
233
233
  var lastScopeInNamespace = react.default.useContext(LastScopeInNamespace);
234
234
  var scope = namespace ? scopeIn ? getNamespacedScope(scopeIn) : lastScopeInNamespace : scopeIn;
@@ -271,7 +271,7 @@ var init_ComponentContext_native = __esmMin((() => {
271
271
  "setParentFocusState",
272
272
  "insets"
273
273
  ] });
274
- useConfiguration = function() {
274
+ useConfiguration = function useConfiguration2() {
275
275
  return (0, react.useContext)(ComponentContext);
276
276
  };
277
277
  }));
@@ -513,13 +513,13 @@ var init_index_native$10 = __esmMin((() => {
513
513
  Nodes = /* @__PURE__ */ new Set();
514
514
  NodeRectCache = /* @__PURE__ */ new WeakMap();
515
515
  PrevHostNode = /* @__PURE__ */ new WeakMap();
516
- usePretransformDimensions = function() {
516
+ usePretransformDimensions = function usePretransformDimensions2() {
517
517
  return globalThis.__TAMAGUI_ONLAYOUT_PRETRANSFORM === true || process.env.TAMAGUI_ONLAYOUT_PRETRANSFORM === "1";
518
518
  };
519
519
  DisableLayoutContextValues = {};
520
520
  DisableLayoutContextKey = /* @__PURE__ */ (0, react.createContext)("");
521
521
  ENABLE = false;
522
- LayoutMeasurementController = function(param) {
522
+ LayoutMeasurementController = function LayoutMeasurementController2(param) {
523
523
  var { disable, children } = param;
524
524
  var id = (0, react.useId)();
525
525
  useIsomorphicLayoutEffect(function() {
@@ -668,14 +668,14 @@ var init_index_native$10 = __esmMin((() => {
668
668
  return _layoutOnAnimationFrame.apply(this, arguments);
669
669
  }
670
670
  resumeLayoutLoop = scheduleLayoutFrame2;
671
- measureOnNextFrame = function() {
671
+ measureOnNextFrame = function measureOnNextFrame2() {
672
672
  frameCount = 0;
673
673
  scheduleLayoutFrame2();
674
674
  };
675
675
  document.addEventListener("visibilitychange", scheduleLayoutFrame2);
676
676
  scheduleLayoutFrame2();
677
677
  }
678
- getElementLayoutEvent = function(nodeRect, parentRect, node) {
678
+ getElementLayoutEvent = function getElementLayoutEvent2(nodeRect, parentRect, node) {
679
679
  return {
680
680
  nativeEvent: {
681
681
  layout: getRelativeDimensions(nodeRect, parentRect, node),
@@ -684,13 +684,13 @@ var init_index_native$10 = __esmMin((() => {
684
684
  timeStamp: Date.now()
685
685
  };
686
686
  };
687
- getPreTransformDimensions = function(node) {
687
+ getPreTransformDimensions = function getPreTransformDimensions2(node) {
688
688
  return {
689
689
  width: node.offsetWidth,
690
690
  height: node.offsetHeight
691
691
  };
692
692
  };
693
- getRelativeDimensions = function(a, b, aNode) {
693
+ getRelativeDimensions = function getRelativeDimensions2(a, b, aNode) {
694
694
  var left = a.left - b.left;
695
695
  var top = a.top - b.top;
696
696
  var { width, height } = usePretransformDimensions() && aNode ? getPreTransformDimensions(aNode) : {
@@ -706,7 +706,7 @@ var init_index_native$10 = __esmMin((() => {
706
706
  pageY: a.top
707
707
  };
708
708
  };
709
- getBoundingClientRectAsync = function(node) {
709
+ getBoundingClientRectAsync = function getBoundingClientRectAsync2(node) {
710
710
  return new Promise(function(res) {
711
711
  if (!node || node.nodeType !== 1) return res(false);
712
712
  var io = new IntersectionObserver(function(entries) {
@@ -717,7 +717,7 @@ var init_index_native$10 = __esmMin((() => {
717
717
  });
718
718
  };
719
719
  measureNode = /* @__PURE__ */ function() {
720
- var _ref = _asyncToGenerator(function* (node, relativeTo) {
720
+ var _measureNode = _asyncToGenerator(function* (node, relativeTo) {
721
721
  var relativeNode = relativeTo || (node === null || node === void 0 ? void 0 : node.parentElement);
722
722
  if (relativeNode instanceof HTMLElement) {
723
723
  var [nodeDim, relativeNodeDim] = yield Promise.all([getBoundingClientRectAsync(node), getBoundingClientRectAsync(relativeNode)]);
@@ -725,51 +725,55 @@ var init_index_native$10 = __esmMin((() => {
725
725
  }
726
726
  return null;
727
727
  });
728
- return function measureNode(_x, _x2) {
729
- return _ref.apply(this, arguments);
730
- };
728
+ function measureNode2(_x, _x2) {
729
+ return _measureNode.apply(this, arguments);
730
+ }
731
+ return measureNode2;
731
732
  }();
732
733
  measure = /* @__PURE__ */ function() {
733
- var _ref2 = _asyncToGenerator(function* (node, callback) {
734
+ var _measure = _asyncToGenerator(function* (node, callback) {
734
735
  var out = yield measureNode(node, node.parentElement);
735
736
  if (out) callback === null || callback === void 0 || callback(out.x, out.y, out.width, out.height, out.pageX, out.pageY);
736
737
  return out;
737
738
  });
738
- return function measure(_x3, _x4) {
739
- return _ref2.apply(this, arguments);
740
- };
739
+ function measure2(_x3, _x4) {
740
+ return _measure.apply(this, arguments);
741
+ }
742
+ return measure2;
741
743
  }();
742
- createMeasure = function(node) {
744
+ createMeasure = function createMeasure2(node) {
743
745
  return function(callback) {
744
746
  return measure(node, callback);
745
747
  };
746
748
  };
747
749
  measureInWindow = /* @__PURE__ */ function() {
748
- var _ref3 = _asyncToGenerator(function* (node, callback) {
750
+ var _measureInWindow = _asyncToGenerator(function* (node, callback) {
749
751
  var out = yield measureNode(node, null);
750
752
  if (out) callback === null || callback === void 0 || callback(out.pageX, out.pageY, out.width, out.height);
751
753
  return out;
752
754
  });
753
- return function measureInWindow(_x5, _x6) {
754
- return _ref3.apply(this, arguments);
755
- };
755
+ function measureInWindow2(_x5, _x6) {
756
+ return _measureInWindow.apply(this, arguments);
757
+ }
758
+ return measureInWindow2;
756
759
  }();
757
- createMeasureInWindow = function(node) {
760
+ createMeasureInWindow = function createMeasureInWindow2(node) {
758
761
  return function(callback) {
759
762
  return measureInWindow(node, callback);
760
763
  };
761
764
  };
762
765
  measureLayout$1 = /* @__PURE__ */ function() {
763
- var _ref4 = _asyncToGenerator(function* (node, relativeNode, callback) {
766
+ var _measureLayout = _asyncToGenerator(function* (node, relativeNode, callback) {
764
767
  var out = yield measureNode(node, relativeNode);
765
768
  if (out) callback === null || callback === void 0 || callback(out.x, out.y, out.width, out.height, out.pageX, out.pageY);
766
769
  return out;
767
770
  });
768
- return function measureLayout(_x7, _x8, _x9) {
769
- return _ref4.apply(this, arguments);
770
- };
771
+ function measureLayout2(_x7, _x8, _x9) {
772
+ return _measureLayout.apply(this, arguments);
773
+ }
774
+ return measureLayout2;
771
775
  }();
772
- createMeasureLayout = function(node) {
776
+ createMeasureLayout = function createMeasureLayout2(node) {
773
777
  return function(relativeTo, callback) {
774
778
  return measureLayout$1(node, relativeTo, callback);
775
779
  };
@@ -2709,19 +2713,19 @@ var init_PressResponder_native = __esmMin((() => {
2709
2713
  LONG_PRESS_DETECTED: NOT_RESPONDER
2710
2714
  }
2711
2715
  });
2712
- isActiveSignal = function(signal) {
2716
+ isActiveSignal = function isActiveSignal2(signal) {
2713
2717
  return signal === RESPONDER_ACTIVE_PRESS_START || signal === RESPONDER_ACTIVE_LONG_PRESS_START;
2714
2718
  };
2715
- isButtonRole = function(element) {
2719
+ isButtonRole = function isButtonRole2(element) {
2716
2720
  return element.getAttribute("role") === "button";
2717
2721
  };
2718
- isPressStartSignal = function(signal) {
2722
+ isPressStartSignal = function isPressStartSignal2(signal) {
2719
2723
  return signal === RESPONDER_INACTIVE_PRESS_START || signal === RESPONDER_ACTIVE_PRESS_START || signal === RESPONDER_ACTIVE_LONG_PRESS_START;
2720
2724
  };
2721
- isTerminalSignal = function(signal) {
2725
+ isTerminalSignal = function isTerminalSignal2(signal) {
2722
2726
  return signal === RESPONDER_TERMINATED || signal === RESPONDER_RELEASE;
2723
2727
  };
2724
- isValidKeyPress = function(event) {
2728
+ isValidKeyPress = function isValidKeyPress2(event) {
2725
2729
  var key = event.key;
2726
2730
  var role = event.target.getAttribute("role");
2727
2731
  return key === "Enter" || (key === " " || key === "Spacebar") && role === "button";
@@ -2776,7 +2780,7 @@ var init_PressResponder_native = __esmMin((() => {
2776
2780
  key: "_createEventHandlers",
2777
2781
  value: function _createEventHandlers() {
2778
2782
  var _this = this;
2779
- var start = function(event, shouldDelay) {
2783
+ var start = function start2(event, shouldDelay) {
2780
2784
  event.persist();
2781
2785
  _this._cancelPressOutDelayTimeout();
2782
2786
  _this._longPressDispatched = false;
@@ -2794,10 +2798,10 @@ var init_PressResponder_native = __esmMin((() => {
2794
2798
  _this._handleLongPress(event);
2795
2799
  }, delayLongPress + delayPressStart);
2796
2800
  };
2797
- var end = function(event) {
2801
+ var end = function end2(event) {
2798
2802
  _this._receiveSignal(RESPONDER_RELEASE, event);
2799
2803
  };
2800
- var keyupHandler = function(event) {
2804
+ var keyupHandler = function keyupHandler1(event) {
2801
2805
  var onPress = _this._config.onPress;
2802
2806
  var target = event.target;
2803
2807
  if (_this._touchState !== NOT_RESPONDER && isValidKeyPress(event)) {
@@ -2809,13 +2813,13 @@ var init_PressResponder_native = __esmMin((() => {
2809
2813
  }
2810
2814
  };
2811
2815
  return {
2812
- onStartShouldSetResponder: function(event) {
2816
+ onStartShouldSetResponder: function onStartShouldSetResponder(event) {
2813
2817
  var disabled = _this._config.disabled;
2814
2818
  if (disabled && isButtonRole(event.currentTarget)) event.stopPropagation();
2815
2819
  if (disabled == null) return true;
2816
2820
  return !disabled;
2817
2821
  },
2818
- onKeyDown: function(event) {
2822
+ onKeyDown: function onKeyDown(event) {
2819
2823
  var disabled = _this._config.disabled;
2820
2824
  var key = event.key;
2821
2825
  var target = event.target;
@@ -2829,10 +2833,10 @@ var init_PressResponder_native = __esmMin((() => {
2829
2833
  event.stopPropagation();
2830
2834
  }
2831
2835
  },
2832
- onResponderGrant: function(event) {
2836
+ onResponderGrant: function onResponderGrant(event) {
2833
2837
  return start(event);
2834
2838
  },
2835
- onResponderMove: function(event) {
2839
+ onResponderMove: function onResponderMove(event) {
2836
2840
  if (_this._config.onPressMove != null) _this._config.onPressMove(event);
2837
2841
  var touch = getTouchFromResponderEvent(event);
2838
2842
  if (_this._touchActivatePosition != null) {
@@ -2841,14 +2845,14 @@ var init_PressResponder_native = __esmMin((() => {
2841
2845
  if (Math.hypot(deltaX, deltaY) > 10) _this._cancelLongPressDelayTimeout();
2842
2846
  }
2843
2847
  },
2844
- onResponderRelease: function(event) {
2848
+ onResponderRelease: function onResponderRelease(event) {
2845
2849
  return end(event);
2846
2850
  },
2847
- onResponderTerminate: function(event) {
2851
+ onResponderTerminate: function onResponderTerminate(event) {
2848
2852
  if (event.nativeEvent.type === "selectionchange") _this._selectionTerminated = true;
2849
2853
  _this._receiveSignal(RESPONDER_TERMINATED, event);
2850
2854
  },
2851
- onResponderTerminationRequest: function(event) {
2855
+ onResponderTerminationRequest: function onResponderTerminationRequest(event) {
2852
2856
  var _this$_config = _this._config;
2853
2857
  var cancelable = _this$_config.cancelable;
2854
2858
  var disabled = _this$_config.disabled;
@@ -2857,7 +2861,7 @@ var init_PressResponder_native = __esmMin((() => {
2857
2861
  if (cancelable == null) return true;
2858
2862
  return cancelable;
2859
2863
  },
2860
- onClick: function(event) {
2864
+ onClick: function onClick(event) {
2861
2865
  var _this$_config2 = _this._config;
2862
2866
  var disabled = _this$_config2.disabled;
2863
2867
  var onPress = _this$_config2.onPress;
@@ -2867,7 +2871,7 @@ var init_PressResponder_native = __esmMin((() => {
2867
2871
  else if (onPress != null && event.altKey === false) onPress(event);
2868
2872
  } else if (isButtonRole(event.currentTarget)) event.stopPropagation();
2869
2873
  },
2870
- onContextMenu: function(event) {
2874
+ onContextMenu: function onContextMenu(event) {
2871
2875
  var _this$_config3 = _this._config;
2872
2876
  var disabled = _this$_config3.disabled;
2873
2877
  var onLongPress = _this$_config3.onLongPress;
@@ -3132,7 +3136,7 @@ var keyName, canUseDOM, getBoundingClientRect;
3132
3136
  var init_utils_native = __esmMin((() => {
3133
3137
  keyName = "__reactResponderId";
3134
3138
  canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
3135
- getBoundingClientRect = function(node) {
3139
+ getBoundingClientRect = function getBoundingClientRect2(node) {
3136
3140
  if (!node) return;
3137
3141
  if (node.nodeType !== 1) return;
3138
3142
  if (node.getBoundingClientRect) return node.getBoundingClientRect();
@@ -3256,7 +3260,7 @@ function createResponderEvent(domEvent, responderTouchHistoryStore) {
3256
3260
  var emptyFunction$2, emptyObject$6, emptyArray;
3257
3261
  var init_createResponderEvent_native = __esmMin((() => {
3258
3262
  init_utils_native();
3259
- emptyFunction$2 = function() {};
3263
+ emptyFunction$2 = function emptyFunction2() {};
3260
3264
  emptyObject$6 = {};
3261
3265
  emptyArray = [];
3262
3266
  }));
@@ -3566,7 +3570,7 @@ function findWantsResponder(eventPaths, domEvent, responderEvent) {
3566
3570
  var shouldSetCallbackCaptureName = shouldSetCallbacks[0];
3567
3571
  var shouldSetCallbackBubbleName = shouldSetCallbacks[1];
3568
3572
  var { bubbles } = shouldSetCallbacks[2];
3569
- var check = function(id3, node3, callbackName) {
3573
+ var check = function check2(id3, node3, callbackName) {
3570
3574
  var shouldSetCallback = getResponderConfig(id3)[callbackName];
3571
3575
  if (shouldSetCallback != null) {
3572
3576
  responderEvent.currentTarget = node3;
@@ -11479,7 +11483,7 @@ var cache$2, cacheSize, simpleHash, hashChar;
11479
11483
  var init_index_native$5 = __esmMin((() => {
11480
11484
  cache$2 = /* @__PURE__ */ new Map();
11481
11485
  cacheSize = 0;
11482
- simpleHash = function(strIn) {
11486
+ simpleHash = function simpleHash2(strIn) {
11483
11487
  var hashMin = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 10;
11484
11488
  var cacheKey = `${hashMin}:${strIn}`;
11485
11489
  if (cache$2.has(cacheKey)) return cache$2.get(cacheKey);
@@ -11513,7 +11517,7 @@ var init_index_native$5 = __esmMin((() => {
11513
11517
  cacheSize++;
11514
11518
  return res;
11515
11519
  };
11516
- hashChar = function(hash, c) {
11520
+ hashChar = function hashChar2(hash, c) {
11517
11521
  return Math.imul(31, hash) + c.charCodeAt(0) | 0;
11518
11522
  };
11519
11523
  }));
@@ -12159,7 +12163,7 @@ var init_cssStyleProps_native = __esmMin((() => {
12159
12163
  //#region ../helpers/dist/esm/toStylePropsObject.native.js
12160
12164
  var toStylePropsObject;
12161
12165
  var init_toStylePropsObject_native = __esmMin((() => {
12162
- toStylePropsObject = function() {
12166
+ toStylePropsObject = function toStylePropsObject2() {
12163
12167
  for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) sources[_key] = arguments[_key];
12164
12168
  var out = {};
12165
12169
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
@@ -12241,7 +12245,7 @@ var Decorated, withStaticProperties;
12241
12245
  var init_withStaticProperties_native = __esmMin((() => {
12242
12246
  init_objectSpread2();
12243
12247
  Decorated = /* @__PURE__ */ Symbol();
12244
- withStaticProperties = function(component, staticProps) {
12248
+ withStaticProperties = function withStaticProperties2(component, staticProps) {
12245
12249
  var out = (function() {
12246
12250
  if (component[Decorated]) return typeof component === "function" ? Object.assign(component.bind(null), component) : _objectSpread2({}, component);
12247
12251
  return component;
@@ -12363,13 +12367,13 @@ function parseFlatValueProduction(source) {
12363
12367
  var length = source.length;
12364
12368
  var segments = [];
12365
12369
  var sawChain = false, chainStart = -1, chainEnd = -1, segmentStart = 0, wordStart = -1, lastColon = -1, quote = 0, comment = false, depth = 0, valid = true, clauseChainValid = true, currentChainValid = true, chainNonPlatformModifiers = null;
12366
- var close = function(end) {
12370
+ var close = function close2(end) {
12367
12371
  var start = segmentStart;
12368
12372
  while (start < end && source.charCodeAt(start) <= 32) start++;
12369
12373
  while (end > start && source.charCodeAt(end - 1) <= 32) end--;
12370
12374
  segments.push(start, end, chainStart, chainEnd, (!sawChain ? 1 : 0) | (clauseChainValid ? 6 : 0));
12371
12375
  };
12372
- var flush = function() {
12376
+ var flush = function flush2() {
12373
12377
  if (wordStart !== -1 && lastColon !== -1) {
12374
12378
  chainStart = wordStart;
12375
12379
  chainEnd = lastColon;
@@ -12517,8 +12521,9 @@ function isRootThemeName(name) {
12517
12521
  return name.length > 0 && !name.includes("_");
12518
12522
  }
12519
12523
  function compileModifierVocabulary(view, onRefusal, onRegistered) {
12524
+ var _view_platformNames;
12520
12525
  var names = /* @__PURE__ */ Object.create(null);
12521
- var register = function(name2, code) {
12526
+ var register = function register2(name2, code) {
12522
12527
  var kind = code & 7;
12523
12528
  if (name2.charCodeAt(0) === 64) {
12524
12529
  onRefusal === null || onRefusal === void 0 || onRefusal(1, name2, kind, 0);
@@ -12555,7 +12560,6 @@ function compileModifierVocabulary(view, onRefusal, onRegistered) {
12555
12560
  forEachModifierName(view.mediaNames, function(name2, rank2) {
12556
12561
  return register(name2, 2 | rank2 << 3);
12557
12562
  });
12558
- var _view_platformNames;
12559
12563
  forEachModifierName((_view_platformNames = view.platformNames) !== null && _view_platformNames !== void 0 ? _view_platformNames : grammarPlatformNames, function(name2) {
12560
12564
  return register(name2, 3 | grammarPlatformRank(name2) << 3);
12561
12565
  });
@@ -12860,9 +12864,9 @@ function canChangeGestureHandlerEnabled(nextEnabled, source) {
12860
12864
  return false;
12861
12865
  }
12862
12866
  function getEventPointerId(e) {
12867
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
12863
12868
  var _e_pointer, _e_event, _e_event_pointer, _e_event1, _e_nativeEvent, _e_nativeEvent1, _e_event_nativeEvent, _e_event2, _e_event_nativeEvent1, _e_event3;
12864
- var _e_pointerId, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
12865
- var pointerId = (_ref6 = (_ref5 = (_ref4 = (_ref3 = (_ref2 = (_ref1 = (_ref = (_e_pointerId = e === null || e === void 0 ? void 0 : e.pointerId) !== null && _e_pointerId !== void 0 ? _e_pointerId : e === null || e === void 0 ? void 0 : (_e_pointer = e.pointer) === null || _e_pointer === void 0 ? void 0 : _e_pointer.id) !== null && _ref !== void 0 ? _ref : e === null || e === void 0 ? void 0 : (_e_event = e.event) === null || _e_event === void 0 ? void 0 : _e_event.pointerId) !== null && _ref1 !== void 0 ? _ref1 : e === null || e === void 0 ? void 0 : (_e_event1 = e.event) === null || _e_event1 === void 0 ? void 0 : (_e_event_pointer = _e_event1.pointer) === null || _e_event_pointer === void 0 ? void 0 : _e_event_pointer.id) !== null && _ref2 !== void 0 ? _ref2 : e === null || e === void 0 ? void 0 : (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pointerId) !== null && _ref3 !== void 0 ? _ref3 : e === null || e === void 0 ? void 0 : (_e_nativeEvent1 = e.nativeEvent) === null || _e_nativeEvent1 === void 0 ? void 0 : _e_nativeEvent1.id) !== null && _ref4 !== void 0 ? _ref4 : e === null || e === void 0 ? void 0 : (_e_event2 = e.event) === null || _e_event2 === void 0 ? void 0 : (_e_event_nativeEvent = _e_event2.nativeEvent) === null || _e_event_nativeEvent === void 0 ? void 0 : _e_event_nativeEvent.pointerId) !== null && _ref5 !== void 0 ? _ref5 : e === null || e === void 0 ? void 0 : (_e_event3 = e.event) === null || _e_event3 === void 0 ? void 0 : (_e_event_nativeEvent1 = _e_event3.nativeEvent) === null || _e_event_nativeEvent1 === void 0 ? void 0 : _e_event_nativeEvent1.id) !== null && _ref6 !== void 0 ? _ref6 : null;
12869
+ var pointerId = (_ref = (_ref1 = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_ref6 = (_ref7 = e === null || e === void 0 ? void 0 : e.pointerId) !== null && _ref7 !== void 0 ? _ref7 : e === null || e === void 0 ? void 0 : (_e_pointer = e.pointer) === null || _e_pointer === void 0 ? void 0 : _e_pointer.id) !== null && _ref6 !== void 0 ? _ref6 : e === null || e === void 0 ? void 0 : (_e_event = e.event) === null || _e_event === void 0 ? void 0 : _e_event.pointerId) !== null && _ref5 !== void 0 ? _ref5 : e === null || e === void 0 ? void 0 : (_e_event1 = e.event) === null || _e_event1 === void 0 ? void 0 : (_e_event_pointer = _e_event1.pointer) === null || _e_event_pointer === void 0 ? void 0 : _e_event_pointer.id) !== null && _ref4 !== void 0 ? _ref4 : e === null || e === void 0 ? void 0 : (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pointerId) !== null && _ref3 !== void 0 ? _ref3 : e === null || e === void 0 ? void 0 : (_e_nativeEvent1 = e.nativeEvent) === null || _e_nativeEvent1 === void 0 ? void 0 : _e_nativeEvent1.id) !== null && _ref2 !== void 0 ? _ref2 : e === null || e === void 0 ? void 0 : (_e_event2 = e.event) === null || _e_event2 === void 0 ? void 0 : (_e_event_nativeEvent = _e_event2.nativeEvent) === null || _e_event_nativeEvent === void 0 ? void 0 : _e_event_nativeEvent.pointerId) !== null && _ref1 !== void 0 ? _ref1 : e === null || e === void 0 ? void 0 : (_e_event3 = e.event) === null || _e_event3 === void 0 ? void 0 : (_e_event_nativeEvent1 = _e_event3.nativeEvent) === null || _e_event_nativeEvent1 === void 0 ? void 0 : _e_event_nativeEvent1.id) !== null && _ref !== void 0 ? _ref : null;
12866
12870
  return pointerId == null || Number.isNaN(pointerId) ? null : Number(pointerId);
12867
12871
  }
12868
12872
  function resetPressOwner() {
@@ -12896,9 +12900,9 @@ function getGestureHandler() {
12896
12900
  state$1.get().enabled = false;
12897
12901
  },
12898
12902
  createPressGesture(config) {
12903
+ var _config_delayLongPress;
12899
12904
  var { Gesture } = state$1.get();
12900
12905
  if (!Gesture) return null;
12901
- var _config_delayLongPress;
12902
12906
  var longPressDuration = (_config_delayLongPress = config.delayLongPress) !== null && _config_delayLongPress !== void 0 ? _config_delayLongPress : 500;
12903
12907
  var myToken = {};
12904
12908
  var myDebugId = ++pressGestureDebugId;
@@ -12911,7 +12915,7 @@ function getGestureHandler() {
12911
12915
  cancelledByMove: false
12912
12916
  };
12913
12917
  var GRACE_PERIOD_MS = process.env.TAMAGUI_RNGH_PRESS_DELAY ? +process.env.TAMAGUI_RNGH_PRESS_DELAY : 24;
12914
- var tryClaimOwnership = function(e) {
12918
+ var tryClaimOwnership = function tryClaimOwnership2(e) {
12915
12919
  var now = Date.now();
12916
12920
  resetStaleOwner(now, config.debugName);
12917
12921
  var currentPointerId = getEventPointerId(e);
@@ -12925,24 +12929,24 @@ function getGestureHandler() {
12925
12929
  }
12926
12930
  return pressState.owner === myToken;
12927
12931
  };
12928
- var isOwner = function() {
12932
+ var isOwner = function isOwner2() {
12929
12933
  return pressState.owner === myToken;
12930
12934
  };
12931
- var releaseOwnership = function() {
12935
+ var releaseOwnership = function releaseOwnership2() {
12932
12936
  if (flags.pressInTimer) {
12933
12937
  clearTimeout(flags.pressInTimer);
12934
12938
  flags.pressInTimer = null;
12935
12939
  }
12936
12940
  if (pressState.owner === myToken) resetPressOwner();
12937
12941
  };
12938
- var firePressIn = function(e) {
12942
+ var firePressIn = function firePressIn2(e) {
12939
12943
  if (!flags.didPressIn && isOwner()) {
12940
12944
  var _config_onPressIn;
12941
12945
  flags.didPressIn = true;
12942
12946
  (_config_onPressIn = config.onPressIn) === null || _config_onPressIn === void 0 || _config_onPressIn.call(config, e);
12943
12947
  }
12944
12948
  };
12945
- var schedulePressIn = function(e) {
12949
+ var schedulePressIn = function schedulePressIn2(e) {
12946
12950
  if (flags.pressInTimer) clearTimeout(flags.pressInTimer);
12947
12951
  flags.pressInTimer = setTimeout(function() {
12948
12952
  flags.pressInTimer = null;
@@ -12958,10 +12962,10 @@ function getGestureHandler() {
12958
12962
  tryClaimOwnership(e);
12959
12963
  schedulePressIn(e);
12960
12964
  }).onTouchesMove(function(e) {
12965
+ var _ref;
12961
12966
  var _e_changedTouches, _e_allTouches;
12962
12967
  if (flags.cancelledByMove || flags.moveStartX === null) return;
12963
- var _e_changedTouches_;
12964
- var touch = (_e_changedTouches_ = (_e_changedTouches = e.changedTouches) === null || _e_changedTouches === void 0 ? void 0 : _e_changedTouches[0]) !== null && _e_changedTouches_ !== void 0 ? _e_changedTouches_ : (_e_allTouches = e.allTouches) === null || _e_allTouches === void 0 ? void 0 : _e_allTouches[0];
12968
+ var touch = (_ref = (_e_changedTouches = e.changedTouches) === null || _e_changedTouches === void 0 ? void 0 : _e_changedTouches[0]) !== null && _ref !== void 0 ? _ref : (_e_allTouches = e.allTouches) === null || _e_allTouches === void 0 ? void 0 : _e_allTouches[0];
12965
12969
  if (!touch) return;
12966
12970
  var dx = touch.absoluteX - flags.moveStartX;
12967
12971
  var dy = touch.absoluteY - flags.moveStartY;
@@ -13009,7 +13013,7 @@ function getGestureHandler() {
13009
13013
  }
13010
13014
  };
13011
13015
  }
13012
- var _globalThis, _PRESS_STATE_KEY, state$1, GESTURE_ENABLED_FREEZE_KEY$1, pressGestureDebugId, PRESS_MOVE_CANCEL_DISTANCE, PRESS_MOVE_CANCEL_DISTANCE_SQ, PRESS_STATE_KEY, _$1, pressState;
13016
+ var _globalThis, _PRESS_STATE_KEY, _$1, state$1, GESTURE_ENABLED_FREEZE_KEY$1, pressGestureDebugId, PRESS_MOVE_CANCEL_DISTANCE, PRESS_MOVE_CANCEL_DISTANCE_SQ, PRESS_STATE_KEY, pressState;
13013
13017
  var init_gestureState_native = __esmMin((() => {
13014
13018
  init_globalState_native();
13015
13019
  state$1 = createGlobalState(`gesture`, {
@@ -13105,11 +13109,9 @@ var init_safeAreaState_native = __esmMin((() => {
13105
13109
  }));
13106
13110
  //#endregion
13107
13111
  //#region ../native/dist/esm/nativeMenuContext.native.js
13108
- var _g, _KEY, KEY, g, _, NativeMenuContext;
13112
+ var _g, _KEY, _, NativeMenuContext;
13109
13113
  var init_nativeMenuContext_native = __esmMin((() => {
13110
- KEY = "__tamagui_native_menu_context__";
13111
- g = globalThis;
13112
- NativeMenuContext = (_ = (_g = g)[_KEY = KEY]) !== null && _ !== void 0 ? _ : _g[_KEY] = (0, react.createContext)(false);
13114
+ NativeMenuContext = (_ = (_g = globalThis)[_KEY = "__tamagui_native_menu_context__"]) !== null && _ !== void 0 ? _ : _g[_KEY] = (0, react.createContext)(false);
13113
13115
  }));
13114
13116
  //#endregion
13115
13117
  //#region ../native/dist/esm/index.native.js
@@ -13121,13 +13123,13 @@ var init_index_native$3 = __esmMin((() => {
13121
13123
  //#endregion
13122
13124
  //#region ../web/dist/esm/helpers/resolveSafeAreaVariable.native.js
13123
13125
  function resolveSafeAreaVariable(name) {
13126
+ var _ref;
13124
13127
  var _state_initialMetrics;
13125
13128
  var edge = name.startsWith("safe-area-") ? name.slice(10) : "";
13126
13129
  if (edge !== "top" && edge !== "right" && edge !== "bottom" && edge !== "left") return;
13127
13130
  var state = getSafeArea().state;
13128
13131
  if (!state.didSetup) return 0;
13129
- var _state_initialMetrics_insets_edge;
13130
- return state.enabled ? (_state_initialMetrics_insets_edge = (_state_initialMetrics = state.initialMetrics) === null || _state_initialMetrics === void 0 ? void 0 : _state_initialMetrics.insets[edge]) !== null && _state_initialMetrics_insets_edge !== void 0 ? _state_initialMetrics_insets_edge : 0 : 0;
13132
+ return state.enabled ? (_ref = (_state_initialMetrics = state.initialMetrics) === null || _state_initialMetrics === void 0 ? void 0 : _state_initialMetrics.insets[edge]) !== null && _ref !== void 0 ? _ref : 0 : 0;
13131
13133
  }
13132
13134
  function subscribeToSafeArea(listener) {
13133
13135
  return getSafeArea().subscribe(listener);
@@ -13225,7 +13227,7 @@ function resolveStyleStaticConfig(staticConfig, conf, revision) {
13225
13227
  if (resolvedBaseStyle && !staticConfig.disableBaseStylePiece) {
13226
13228
  var directBaseStyle;
13227
13229
  var directBaseKeys;
13228
- var flushDirectBaseStyle = function() {
13230
+ var flushDirectBaseStyle = function flushDirectBaseStyle2() {
13229
13231
  if (!directBaseStyle || !directBaseKeys) return;
13230
13232
  var piece = createStylePiece(directBaseStyle, "base");
13231
13233
  baseStylePiece || (baseStylePiece = piece);
@@ -13352,7 +13354,7 @@ function prepareConfigRevision(config) {
13352
13354
  rank
13353
13355
  ];
13354
13356
  }
13355
- var resolveCondition = function(authored) {
13357
+ var resolveCondition = function resolveCondition2(authored) {
13356
13358
  var cached = conditionModifiers[authored];
13357
13359
  if (cached !== void 0) return cached;
13358
13360
  var result = null;
@@ -13421,10 +13423,10 @@ function prepareConfigRevision(config) {
13421
13423
  insetInline: 8,
13422
13424
  borderRadius: 8
13423
13425
  };
13424
- var propertyKind = function(property) {
13426
+ var propertyKind = function propertyKind2(property) {
13425
13427
  return propertyKinds[property] || 0;
13426
13428
  };
13427
- var tokenCategory = function(property) {
13429
+ var tokenCategory = function tokenCategory2(property) {
13428
13430
  return config.tokensParsed[property] ? property : config.tokensParsed.borderWidth && property.startsWith("border") && property.endsWith("Width") ? "borderWidth" : getTokenCategoryForProperty(property);
13429
13431
  };
13430
13432
  var normalizedTransitions = /* @__PURE__ */ new Map();
@@ -13437,11 +13439,11 @@ function prepareConfigRevision(config) {
13437
13439
  expandSafeArea: expandSafeAreaValue,
13438
13440
  safeAreaVariable: resolveSafeAreaVariable,
13439
13441
  parseFlatValue,
13440
- styleStaticConfig: function(staticConfig, conf) {
13442
+ styleStaticConfig: function styleStaticConfig(staticConfig, conf) {
13441
13443
  return resolveStyleStaticConfig(staticConfig, conf, captured.revision);
13442
13444
  },
13443
13445
  propertyKind,
13444
- compositeValue: function(property, raw, context, resolve) {
13446
+ compositeValue: function compositeValue(property, raw, context, resolve) {
13445
13447
  var kind2 = propertyKinds[property];
13446
13448
  if (kind2 < 7) return;
13447
13449
  if (kind2 === 7) {
@@ -13477,7 +13479,7 @@ function prepareConfigRevision(config) {
13477
13479
  return value;
13478
13480
  }
13479
13481
  },
13480
- normalizeTransition: function(raw) {
13482
+ normalizeTransition: function normalizeTransition(raw) {
13481
13483
  var known = normalizedTransitions.get(raw);
13482
13484
  if (known !== void 0) return known;
13483
13485
  var out = raw.replace(/\/\*[\s\S]*?\*\/|(["'])(?:\\.|(?!\1)[^\\])*\1|[A-Za-z_][\w-]*/g, function(authored, quote, offset) {
@@ -13488,7 +13490,7 @@ function prepareConfigRevision(config) {
13488
13490
  normalizedTransitions.set(raw, out);
13489
13491
  return out;
13490
13492
  },
13491
- embeddedTokens: function(raw, resolve) {
13493
+ embeddedTokens: function embeddedTokens(raw, resolve) {
13492
13494
  return raw.replace(/\/\*[\s\S]*?\*\/|(["'])(?:\\.|(?!\1)[^\\])*\1|[$A-Za-z_][\w.$-]*(?:\/\d*\.?\d+)?/g, function(word, quote, offset) {
13493
13495
  var before = raw.charCodeAt(offset - 1);
13494
13496
  return quote || word[0] !== "$" && (before >= 48 && before <= 57 || before === 35 || before === 45 && raw.charCodeAt(offset - 2) === 45 || raw.charCodeAt(offset + word.length) === 40) ? word : resolve(word);
@@ -13542,15 +13544,15 @@ var init_config_native = __esmMin((() => {
13542
13544
  init_index_native$6();
13543
13545
  init_formatDiagnostic_native();
13544
13546
  init_grammarConfig_native();
13545
- getConfigFromGlobalOrLocal = function() {
13547
+ getConfigFromGlobalOrLocal = function getConfigFromGlobalOrLocal2() {
13546
13548
  if (conf) return conf;
13547
13549
  if (globalThis.__tamaguiConfig) return globalThis.__tamaguiConfig;
13548
13550
  return null;
13549
13551
  };
13550
- getSetting = function(key) {
13552
+ getSetting = function getSetting2(key) {
13551
13553
  return getConfigFromGlobalOrLocal().settings[key];
13552
13554
  };
13553
- setConfig = function(next) {
13555
+ setConfig = function setConfig2(next) {
13554
13556
  var previous = conf;
13555
13557
  var previousGlobal = globalThis.__tamaguiConfig;
13556
13558
  prepareConfigRevision(next);
@@ -13559,57 +13561,57 @@ var init_config_native = __esmMin((() => {
13559
13561
  globalThis.__tamaguiConfig = next;
13560
13562
  if (process.env.TAMAGUI_ENVIRONMENT === "tamagui") globalThis.__tamaguiEvaluationConfig = next;
13561
13563
  };
13562
- setConfigFont = function(name, font, fontParsed) {
13564
+ setConfigFont = function setConfigFont2(name, font, fontParsed) {
13563
13565
  var config = getConfigFromGlobalOrLocal();
13564
13566
  config.fonts[name] = font;
13565
13567
  config.fontsParsed[name] = fontParsed;
13566
13568
  prepareConfigRevision(config);
13567
13569
  };
13568
- getConfig = function() {
13570
+ getConfig = function getConfig2() {
13569
13571
  var config = getConfigFromGlobalOrLocal();
13570
13572
  if (!config) throw new Error(formatDiagnostic("Err0", "TamaguiConfig", "no config is available", "Call createTamagui before rendering and deduplicate Tamagui package versions", "config", config));
13571
13573
  return config;
13572
13574
  };
13573
- getConfigMaybe = function() {
13575
+ getConfigMaybe = function getConfigMaybe2() {
13574
13576
  return getConfigFromGlobalOrLocal();
13575
13577
  };
13576
- getTokensParsed = function() {
13578
+ getTokensParsed = function getTokensParsed2() {
13579
+ var _ref;
13577
13580
  var _getConfigFromGlobalOrLocal;
13578
- var _getConfigFromGlobalOrLocal_tokensParsed;
13579
- return (_getConfigFromGlobalOrLocal_tokensParsed = (_getConfigFromGlobalOrLocal = getConfigFromGlobalOrLocal()) === null || _getConfigFromGlobalOrLocal === void 0 ? void 0 : _getConfigFromGlobalOrLocal.tokensParsed) !== null && _getConfigFromGlobalOrLocal_tokensParsed !== void 0 ? _getConfigFromGlobalOrLocal_tokensParsed : tokens;
13581
+ return (_ref = (_getConfigFromGlobalOrLocal = getConfigFromGlobalOrLocal()) === null || _getConfigFromGlobalOrLocal === void 0 ? void 0 : _getConfigFromGlobalOrLocal.tokensParsed) !== null && _ref !== void 0 ? _ref : tokens;
13580
13582
  };
13581
- getTokens = function() {
13583
+ getTokens = function getTokens2() {
13582
13584
  return getTokensParsed();
13583
13585
  };
13584
- getTokenObject = function(value, group) {
13586
+ getTokenObject = function getTokenObject2(value, group) {
13585
13587
  var _tokens_group, _tokens_;
13586
13588
  var tokens2 = getTokensParsed();
13587
13589
  return group ? (_tokens_group = tokens2[group]) === null || _tokens_group === void 0 ? void 0 : _tokens_group[value] : (_tokens_ = tokens2[Object.keys(tokens2).find(function(cat) {
13588
13590
  return tokens2[cat][value];
13589
13591
  }) || ""]) === null || _tokens_ === void 0 ? void 0 : _tokens_[value];
13590
13592
  };
13591
- getToken = function(value, group) {
13593
+ getToken = function getToken2(value, group) {
13592
13594
  var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
13593
13595
  var token = getTokenObject(value, group);
13594
13596
  return useVariable ? token === null || token === void 0 ? void 0 : token.variable : token === null || token === void 0 ? void 0 : token.val;
13595
13597
  };
13596
- getTokenValue = function(value, group) {
13598
+ getTokenValue = function getTokenValue2(value, group) {
13597
13599
  if (value === "unset" || value === "auto") return;
13598
13600
  return getToken(value, group, false);
13599
13601
  };
13600
- getThemes = function() {
13602
+ getThemes = function getThemes2() {
13601
13603
  return getConfigFromGlobalOrLocal().themes;
13602
13604
  };
13603
- updateConfig = function(key, value) {
13605
+ updateConfig = function updateConfig2(key, value) {
13604
13606
  var config = getConfigFromGlobalOrLocal();
13605
13607
  if (!config || key === "__proto__" || !(key in config)) return;
13606
13608
  Object.assign(config[key], value);
13607
13609
  prepareConfigRevision(config);
13608
13610
  };
13609
- getFont = function(name) {
13611
+ getFont = function getFont2(name) {
13612
+ var _conf_fontsParsed_name;
13610
13613
  var _Object_entries_find;
13611
13614
  var conf2 = getConfig();
13612
- var _conf_fontsParsed_name;
13613
13615
  return (_conf_fontsParsed_name = conf2.fontsParsed[name]) !== null && _conf_fontsParsed_name !== void 0 ? _conf_fontsParsed_name : (_Object_entries_find = Object.entries(conf2.fontsParsed).find(function(param) {
13614
13616
  var [k] = param;
13615
13617
  var _conf_fontsParsed_k_family, _conf_fontsParsed_k;
@@ -13632,13 +13634,13 @@ function isVariable(v) {
13632
13634
  }
13633
13635
  function getVariable(nameOrVariable) {
13634
13636
  var group = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "size";
13637
+ var _ref;
13635
13638
  var _tokens_group;
13636
13639
  if (nameOrVariable === null || nameOrVariable === void 0 ? void 0 : nameOrVariable.dynamic) return nameOrVariable;
13637
13640
  setDidGetVariableValue(true);
13638
13641
  if (isVariable(nameOrVariable)) return variableToString(nameOrVariable);
13639
13642
  var tokens = getConfig().tokensParsed;
13640
- var _tokens_group_nameOrVariable;
13641
- return variableToString((_tokens_group_nameOrVariable = (_tokens_group = tokens[group]) === null || _tokens_group === void 0 ? void 0 : _tokens_group[nameOrVariable]) !== null && _tokens_group_nameOrVariable !== void 0 ? _tokens_group_nameOrVariable : nameOrVariable);
13643
+ return variableToString((_ref = (_tokens_group = tokens[group]) === null || _tokens_group === void 0 ? void 0 : _tokens_group[nameOrVariable]) !== null && _ref !== void 0 ? _ref : nameOrVariable);
13642
13644
  }
13643
13645
  function getVariableValue(v, group) {
13644
13646
  if (isVariable(v)) {
@@ -13667,7 +13669,7 @@ var init_createVariable_native = __esmMin((() => {
13667
13669
  init_index_native$4();
13668
13670
  init_config_native();
13669
13671
  pxStringRe$1 = /^-?\d*\.?\d+px$/;
13670
- createVariable = function(props) {
13672
+ createVariable = function createVariable2(props) {
13671
13673
  var skipHash = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
13672
13674
  if (!skipHash && isVariable(props)) return props;
13673
13675
  var { key, name, val } = props;
@@ -13682,13 +13684,13 @@ var init_createVariable_native = __esmMin((() => {
13682
13684
  };
13683
13685
  };
13684
13686
  accessed = false;
13685
- setDidGetVariableValue = function(val) {
13687
+ setDidGetVariableValue = function setDidGetVariableValue2(val) {
13686
13688
  return accessed = val;
13687
13689
  };
13688
- didGetVariableValue = function() {
13690
+ didGetVariableValue = function didGetVariableValue2() {
13689
13691
  return accessed;
13690
13692
  };
13691
- createCSSVariable = function(nameProp) {
13693
+ createCSSVariable = function createCSSVariable2(nameProp) {
13692
13694
  var includeVar = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
13693
13695
  var name = simpleHash(nameProp, 60);
13694
13696
  return includeVar ? constructCSSVariableName(name) : name;
@@ -13717,11 +13719,11 @@ function mediaKeyMatch(key, dimensions) {
13717
13719
  var mediaState, setMediaState, mediaQueryConfig, getMedia, mediaKeys;
13718
13720
  var init_mediaState_native = __esmMin((() => {
13719
13721
  mediaState = {};
13720
- setMediaState = function(next) {
13722
+ setMediaState = function setMediaState2(next) {
13721
13723
  mediaState = next;
13722
13724
  };
13723
13725
  mediaQueryConfig = {};
13724
- getMedia = function() {
13726
+ getMedia = function getMedia2() {
13725
13727
  return mediaState;
13726
13728
  };
13727
13729
  mediaKeys = /* @__PURE__ */ new Set();
@@ -13731,11 +13733,11 @@ var init_mediaState_native = __esmMin((() => {
13731
13733
  function matchMediaFallback(query) {
13732
13734
  if (!process.env.IS_STATIC && false);
13733
13735
  return {
13734
- match: function(a, b) {
13736
+ match: function match(a, b) {
13735
13737
  return false;
13736
13738
  },
13737
- addListener: function() {},
13738
- removeListener: function() {},
13739
+ addListener: function addListener() {},
13740
+ removeListener: function removeListener() {},
13739
13741
  matches: false
13740
13742
  };
13741
13743
  }
@@ -13746,7 +13748,7 @@ function setupMatchMedia(_) {
13746
13748
  var matchMediaImpl, matchMedia;
13747
13749
  var init_matchMedia_native = __esmMin((() => {
13748
13750
  matchMediaImpl = matchMediaFallback;
13749
- matchMedia = function() {
13751
+ matchMedia = function matchMedia2() {
13750
13752
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
13751
13753
  return matchMediaImpl(...args);
13752
13754
  };
@@ -13762,7 +13764,7 @@ function unlisten() {
13762
13764
  function setupMediaListeners() {
13763
13765
  var _loop = function(key2) {
13764
13766
  var str = mediaObjectToString(mediaQueryConfig[key2]);
13765
- var getMatch = function() {
13767
+ var getMatch = function getMatch2() {
13766
13768
  return matchMedia(str);
13767
13769
  };
13768
13770
  var match = getMatch();
@@ -14125,7 +14127,7 @@ var init_useMedia_native = __esmMin((() => {
14125
14127
  init_objectSpread2();
14126
14128
  dispose = /* @__PURE__ */ new Set();
14127
14129
  mediaVersion = 0;
14128
- configureMedia = function(config) {
14130
+ configureMedia = function configureMedia2(config) {
14129
14131
  var { media } = config;
14130
14132
  var mediaQueryDefaultActive = getSetting("mediaQueryDefaultActive");
14131
14133
  if (!media) return;
@@ -14151,7 +14153,7 @@ var init_useMedia_native = __esmMin((() => {
14151
14153
  States = /* @__PURE__ */ new WeakMap();
14152
14154
  touchTrackerProto = null;
14153
14155
  refSlot = /* @__PURE__ */ Symbol("mediaRefSlot");
14154
- incReducer$1 = function(c) {
14156
+ incReducer$1 = function incReducer2(c) {
14155
14157
  return c + 1;
14156
14158
  };
14157
14159
  disableMediaTouch = false;
@@ -14330,7 +14332,7 @@ var init_useThemeState_native = __esmMin((() => {
14330
14332
  PendingUpdate = /* @__PURE__ */ new Map();
14331
14333
  states = /* @__PURE__ */ new Map();
14332
14334
  shouldForce = false;
14333
- forceUpdateThemes = function() {
14335
+ forceUpdateThemes = function forceUpdateThemes2() {
14334
14336
  cacheVersion++;
14335
14337
  shouldForce = true;
14336
14338
  allListeners.forEach(function(cb) {
@@ -14338,24 +14340,24 @@ var init_useThemeState_native = __esmMin((() => {
14338
14340
  });
14339
14341
  shouldForce = false;
14340
14342
  };
14341
- getThemeState = function(id) {
14343
+ getThemeState = function getThemeState2(id) {
14342
14344
  return states.get(id);
14343
14345
  };
14344
14346
  themeUpdateLayers = /* @__PURE__ */ new Map();
14345
14347
  themeProviderParents = /* @__PURE__ */ new Map();
14346
- getThemeUpdateLayer = function(id) {
14348
+ getThemeUpdateLayer = function getThemeUpdateLayer2(id) {
14347
14349
  return themeUpdateLayers.get(id);
14348
14350
  };
14349
- getThemeProviderParent = function(id) {
14351
+ getThemeProviderParent = function getThemeProviderParent2(id) {
14350
14352
  return themeProviderParents.get(id);
14351
14353
  };
14352
- getThemeProviderChainSizes = function() {
14354
+ getThemeProviderChainSizes = function getThemeProviderChainSizes2() {
14353
14355
  return {
14354
14356
  layers: themeUpdateLayers.size,
14355
14357
  parents: themeProviderParents.size
14356
14358
  };
14357
14359
  };
14358
- registerThemeProviderChain = function(id, parentId, props) {
14360
+ registerThemeProviderChain = function registerThemeProviderChain2(id, parentId, props) {
14359
14361
  themeProviderParents.set(id, parentId);
14360
14362
  if (props._themeUpdate) themeUpdateLayers.set(id, props._themeUpdate);
14361
14363
  else themeUpdateLayers.delete(id);
@@ -14365,20 +14367,20 @@ var init_useThemeState_native = __esmMin((() => {
14365
14367
  themeNameCacheVer = -1;
14366
14368
  themes = null;
14367
14369
  rootThemeState = null;
14368
- getRootThemeState = function() {
14370
+ getRootThemeState = function getRootThemeState2() {
14369
14371
  return rootThemeState;
14370
14372
  };
14371
- getThemeBaseName = function(name) {
14373
+ getThemeBaseName = function getThemeBaseName2(name) {
14372
14374
  return name.replace(/^(light|dark)_/, "");
14373
14375
  };
14374
- incReducer = function(c) {
14376
+ incReducer = function incReducer2(c) {
14375
14377
  return c + 1;
14376
14378
  };
14377
- useThemeState = function(props) {
14379
+ useThemeState = function useThemeState2(props) {
14378
14380
  "use no memo";
14379
14381
  var isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, keys = arguments.length > 2 ? arguments[2] : void 0, schemeKeys = arguments.length > 3 ? arguments[3] : void 0, cascadeOnChange = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, optimizeForFirstRender = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;
14380
- var _props__themeUpdate;
14381
14382
  var _ref;
14383
+ var _props__themeUpdate;
14382
14384
  var { disable } = props;
14383
14385
  var parentId = (0, react.useContext)(ThemeStateContext);
14384
14386
  if (!parentId && !isRoot) throw new Error(MISSING_THEME_MESSAGE);
@@ -14421,7 +14423,7 @@ var init_useThemeState_native = __esmMin((() => {
14421
14423
  var _listenersByParent, _pid;
14422
14424
  var pid = r.parentId;
14423
14425
  var sid = r.id;
14424
- var cb = function(forced) {
14426
+ var cb = function cb2(forced) {
14425
14427
  var next = getSnapshotImpl(r);
14426
14428
  if (next !== r.lastSnap) {
14427
14429
  var _r_props_nativeUpdate, _r_props;
@@ -14471,11 +14473,11 @@ var init_useThemeState_native = __esmMin((() => {
14471
14473
  }, [keys, propsKey]);
14472
14474
  return state;
14473
14475
  };
14474
- shouldSubscribeToTheme = function(r, cascadeOnChange) {
14476
+ shouldSubscribeToTheme = function shouldSubscribeToTheme2(r, cascadeOnChange) {
14475
14477
  var _r_keys_current, _r_props_needsUpdate, _r_props;
14476
14478
  return Boolean(r.optimizeForFirstRender || r.isRoot || cascadeOnChange || hasThemeUpdatingProps(r.props) || ((_r_keys_current = r.keys.current) === null || _r_keys_current === void 0 ? void 0 : _r_keys_current.size) || ((_r_props_needsUpdate = (_r_props = r.props).needsUpdate) === null || _r_props_needsUpdate === void 0 ? void 0 : _r_props_needsUpdate.call(_r_props)));
14477
14479
  };
14478
- getSnapshotImpl = function(r) {
14480
+ getSnapshotImpl = function getSnapshotImpl2(r) {
14479
14481
  var _keys_current, _schemeKeys_current, _keys_current1, _props_needsUpdate;
14480
14482
  var { id, parentId, props, propsKey, isRoot, keys, optimizeForFirstRender } = r;
14481
14483
  var schemeKeys = r.schemeKeys;
@@ -14510,8 +14512,9 @@ var init_useThemeState_native = __esmMin((() => {
14510
14512
  states.set(id, next);
14511
14513
  return local;
14512
14514
  };
14513
- getNextState = function(lastState, props, propsKey) {
14515
+ getNextState = function getNextState2(lastState, props, propsKey) {
14514
14516
  var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, id = arguments.length > 4 ? arguments[4] : void 0, parentId = arguments.length > 5 ? arguments[5] : void 0, needsUpdate = arguments.length > 6 ? arguments[6] : void 0, pendingUpdate = arguments.length > 7 ? arguments[7] : void 0;
14517
+ var _ref;
14515
14518
  var parentState = states.get(parentId);
14516
14519
  if (props.passThrough) return [false, parentState || lastState || { name: "" }];
14517
14520
  themes || (themes = getConfig().themes);
@@ -14529,8 +14532,8 @@ var init_useThemeState_native = __esmMin((() => {
14529
14532
  return [shouldRerender, _objectSpread2(_objectSpread2({}, parentState), {}, { isNew: false })];
14530
14533
  }
14531
14534
  if (!resolvedName) {
14532
- var _ref, _ref1;
14533
- var next = (_ref1 = (_ref = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref !== void 0 ? _ref : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {
14535
+ var _ref1, _ref2;
14536
+ var next = (_ref1 = (_ref2 = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref2 !== void 0 ? _ref2 : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {
14534
14537
  id,
14535
14538
  name: "light",
14536
14539
  theme: getConfig().themes.light
@@ -14539,8 +14542,7 @@ var init_useThemeState_native = __esmMin((() => {
14539
14542
  return [false, next];
14540
14543
  }
14541
14544
  var scheme = getAuthoredThemeScheme(themes[resolvedName]) || getThemeScheme(resolvedName);
14542
- var _parentState_inverses;
14543
- var parentInverses = (_parentState_inverses = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _parentState_inverses !== void 0 ? _parentState_inverses : 0;
14545
+ var parentInverses = (_ref = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _ref !== void 0 ? _ref : 0;
14544
14546
  var isInverse = Boolean(parentState && scheme !== parentState.scheme);
14545
14547
  var inverses = parentInverses + (isInverse ? 1 : 0);
14546
14548
  var nextState = {
@@ -14558,7 +14560,7 @@ var init_useThemeState_native = __esmMin((() => {
14558
14560
  if (isRoot) rootThemeState = nextState;
14559
14561
  return [pendingUpdate === "force" || !sameAsLast, nextState];
14560
14562
  };
14561
- hasThemeUpdatingProps = function(props) {
14563
+ hasThemeUpdatingProps = function hasThemeUpdatingProps2(props) {
14562
14564
  return "name" in props || "forceClassName" in props || "_themeUpdate" in props;
14563
14565
  };
14564
14566
  }));
@@ -14598,7 +14600,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
14598
14600
  var config = getConfig();
14599
14601
  var proxied1 = Object.fromEntries(Object.entries(_state.theme).flatMap(function(param) {
14600
14602
  var [key, value] = param;
14601
- var get = function(platform) {
14603
+ var get = function get2(platform) {
14602
14604
  if (!curState) return;
14603
14605
  var outVal = getVariable(value);
14604
14606
  var { name, scheme } = curState;
@@ -14669,12 +14671,12 @@ var init_useTheme_native = __esmMin((() => {
14669
14671
  init_getThemeProxied_native();
14670
14672
  init_useThemeState_native();
14671
14673
  EMPTY = {};
14672
- useTheme = function() {
14674
+ useTheme = function useTheme2() {
14673
14675
  "use no memo";
14674
14676
  var [theme] = useThemeWithState(EMPTY);
14675
14677
  return theme;
14676
14678
  };
14677
- useThemeWithState = function(props) {
14679
+ useThemeWithState = function useThemeWithState2(props) {
14678
14680
  "use no memo";
14679
14681
  var isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, forThemeView = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
14680
14682
  var bag = (0, react.useRef)(null);
@@ -14704,7 +14706,7 @@ var init__withStableStyle_native = __esmMin((() => {
14704
14706
  EMPTY_EXPRESSIONS = [];
14705
14707
  EMPTY_THEME = {};
14706
14708
  FALLBACK_THEME_CACHE = /* @__PURE__ */ new WeakMap();
14707
- _withStableStyle = function(Component, createStyle, hasThemeKeys, hasMediaKeys) {
14709
+ _withStableStyle = function _withStableStyle2(Component, createStyle, hasThemeKeys, hasMediaKeys) {
14708
14710
  return /* @__PURE__ */ react.default.memo(function WithStableStyle(props) {
14709
14711
  var { ref } = props, propsWithoutRef = _objectWithoutProperties(props, _excluded$8);
14710
14712
  var { _expressions = EMPTY_EXPRESSIONS } = propsWithoutRef, rest = _objectWithoutProperties(propsWithoutRef, _excluded2$3);
@@ -14724,7 +14726,7 @@ var init__withStableStyle_native = __esmMin((() => {
14724
14726
  if (!gettableTheme) {
14725
14727
  var _loop = function(key2) {
14726
14728
  var value = fallbackTheme[key2];
14727
- gettableTheme[key2] = typeof (value === null || value === void 0 ? void 0 : value.get) === "function" ? value : _objectSpread2(_objectSpread2({}, value && typeof value === "object" ? value : { val: value }), {}, { get: function() {
14729
+ gettableTheme[key2] = typeof (value === null || value === void 0 ? void 0 : value.get) === "function" ? value : _objectSpread2(_objectSpread2({}, value && typeof value === "object" ? value : { val: value }), {}, { get: function get() {
14728
14730
  return getVariable(value);
14729
14731
  } });
14730
14732
  };
@@ -14813,6 +14815,7 @@ function getCompiledMapping(mapping) {
14813
14815
  return compiled;
14814
14816
  }
14815
14817
  function resolveCompiledMapping(compiled, stateName, theme) {
14818
+ var _ref;
14816
14819
  var cached = compiled.states.get(stateName);
14817
14820
  if ((cached === null || cached === void 0 ? void 0 : cached.theme) === theme) return cached;
14818
14821
  var renderProps = {};
@@ -14821,8 +14824,7 @@ function resolveCompiledMapping(compiled, stateName, theme) {
14821
14824
  renderProps[styleKey] = value === void 0 ? null : getVariableValue(value);
14822
14825
  }
14823
14826
  renderProps = normalizeNativeStyle(renderProps, true);
14824
- var _engine_processStyleColors;
14825
- var nativeProps = (_engine_processStyleColors = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _engine_processStyleColors !== void 0 ? _engine_processStyleColors : renderProps;
14827
+ var nativeProps = (_ref = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _ref !== void 0 ? _ref : renderProps;
14826
14828
  if (compiled.states.size >= 1e4) compiled.states.clear();
14827
14829
  var resolved = {
14828
14830
  theme,
@@ -14989,14 +14991,25 @@ function queueNativeViewState(entry) {
14989
14991
  pending = [];
14990
14992
  queueMicrotask(function() {
14991
14993
  var entries = pending;
14994
+ var dropped = superseded;
14992
14995
  pending = null;
14996
+ superseded = null;
14997
+ if (dropped) entries = entries.filter(function(queued, index) {
14998
+ var _dropped_get;
14999
+ return index >= ((_dropped_get = dropped.get(queued.id)) !== null && _dropped_get !== void 0 ? _dropped_get : 0);
15000
+ });
15001
+ if (!entries.length) return;
14993
15002
  engine === null || engine === void 0 || engine.applyViewStates(entries);
14994
15003
  flushListener === null || flushListener === void 0 || flushListener(entries);
14995
15004
  });
14996
15005
  }
14997
15006
  pending.push(entry);
14998
15007
  }
14999
- var nativeTextInputColorProps, nativeOutlineProps, nativeIntrinsicSizeProps, engine, scopeStates, mappingKeys, compiledMappings, scopeMappings, nextTableId, pendingHosts, pendingStates, maxPendingHosts, idleFlushQueued, pending, flushListener;
15008
+ function supersedeNativeViewStates(id) {
15009
+ if (!pending) return;
15010
+ (superseded || (superseded = /* @__PURE__ */ new Map())).set(id, pending.length);
15011
+ }
15012
+ var nativeTextInputColorProps, nativeOutlineProps, nativeIntrinsicSizeProps, engine, scopeStates, mappingKeys, compiledMappings, scopeMappings, nextTableId, pendingHosts, pendingStates, maxPendingHosts, idleFlushQueued, pending, flushListener, superseded;
15000
15013
  var init_nativeStyleEngine_native = __esmMin((() => {
15001
15014
  init_createVariable_native();
15002
15015
  init_objectSpread2();
@@ -15032,6 +15045,7 @@ var init_nativeStyleEngine_native = __esmMin((() => {
15032
15045
  idleFlushQueued = false;
15033
15046
  pending = null;
15034
15047
  flushListener = null;
15048
+ superseded = null;
15035
15049
  }));
15036
15050
  //#endregion
15037
15051
  //#region ../web/dist/esm/setupHooks.native.js
@@ -15067,7 +15081,7 @@ var init__withNativeStyle_native = __esmMin((() => {
15067
15081
  allowFontScaling: true,
15068
15082
  ellipsizeMode: "tail"
15069
15083
  };
15070
- _withNativeStyle = function(Component, baseStyle, themeStyleKeys, host) {
15084
+ _withNativeStyle = function _withNativeStyle2(Component, baseStyle, themeStyleKeys, host) {
15071
15085
  var _hooks_getBaseViews;
15072
15086
  var Fallback = _withStableStyle(Component, function(theme) {
15073
15087
  var themedStyle = {};
@@ -15083,14 +15097,14 @@ var init__withNativeStyle_native = __esmMin((() => {
15083
15097
  var HostText = host === "text" && !("userSelect" in baseStyle) && !("verticalAlign" in baseStyle) ? baseViews === null || baseViews === void 0 ? void 0 : baseViews.NativeText : void 0;
15084
15098
  var hostTextBase = HostText ? _objectSpread2(_objectSpread2({ overflow: "hidden" }, baseStyle), typeof baseStyle.fontWeight === "number" && { fontWeight: String(baseStyle.fontWeight) }) : baseStyle;
15085
15099
  var entries = /* @__PURE__ */ new Map();
15086
- var createEntry = function() {
15100
+ var createEntry = function createEntry2() {
15087
15101
  var entry = {
15088
15102
  style: [baseStyle, null],
15089
15103
  hostTextStyle: [hostTextBase, null],
15090
15104
  stateName: "",
15091
15105
  theme: null,
15092
15106
  state: null,
15093
- ref: function(node) {
15107
+ ref: function ref(node) {
15094
15108
  if (node) linkHost(node, entry.state);
15095
15109
  }
15096
15110
  };
@@ -15103,7 +15117,7 @@ var init__withNativeStyle_native = __esmMin((() => {
15103
15117
  var linkState = createNativeStyleLinkState;
15104
15118
  var linkHost = linkNativeStyleHost;
15105
15119
  var assignRef = setRef;
15106
- var render = function(props, key) {
15120
+ var render = function render2(props, key) {
15107
15121
  var scopeId = (0, react.use)(ScopeContext);
15108
15122
  var inText = TextAncestor ? (0, react.use)(TextAncestor) : false;
15109
15123
  var themeState = scopeId && engineOf() ? scopeState(scopeId) : void 0;
@@ -15128,8 +15142,8 @@ var init__withNativeStyle_native = __esmMin((() => {
15128
15142
  }
15129
15143
  if (entry.stateName !== name || entry.theme !== theme) {
15130
15144
  var themed = resolve(themeStyleKeys, name, theme);
15131
- entry.style[1] = themed;
15132
- entry.hostTextStyle[1] = themed;
15145
+ entry.style = [baseStyle, themed];
15146
+ entry.hostTextStyle = [hostTextBase, themed];
15133
15147
  entry.stateName = name;
15134
15148
  entry.theme = theme;
15135
15149
  entry.state = linkState(themeStyleKeys, scopeId, name, theme);
@@ -15153,7 +15167,7 @@ var init__withNativeStyle_native = __esmMin((() => {
15153
15167
  children: element
15154
15168
  }, key);
15155
15169
  };
15156
- var NativeStyleView = function(props) {
15170
+ var NativeStyleView = function NativeStyleView2(props) {
15157
15171
  return render(props);
15158
15172
  };
15159
15173
  NativeStyleView.inline = function(element) {
@@ -15243,8 +15257,8 @@ function useMainThreadPressEvents(events, viewProps) {
15243
15257
  ownsResponder.current = false;
15244
15258
  };
15245
15259
  viewProps.onResponderTerminationRequest = function(e) {
15246
- var _userTerminationRequest;
15247
- return (_userTerminationRequest = userTerminationRequest === null || userTerminationRequest === void 0 ? void 0 : userTerminationRequest(e)) !== null && _userTerminationRequest !== void 0 ? _userTerminationRequest : handlers.onResponderTerminationRequest();
15260
+ var _ref;
15261
+ return (_ref = userTerminationRequest === null || userTerminationRequest === void 0 ? void 0 : userTerminationRequest(e)) !== null && _ref !== void 0 ? _ref : handlers.onResponderTerminationRequest();
15248
15262
  };
15249
15263
  viewProps.onResponderMove = function(e) {
15250
15264
  userMove === null || userMove === void 0 || userMove(e);
@@ -15307,7 +15321,7 @@ function useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNat
15307
15321
  var gestureRef = (0, react.useRef)(null);
15308
15322
  var longPressTimerRef = (0, react.useRef)(null);
15309
15323
  var longPressedRef = (0, react.useRef)(false);
15310
- var clearLongPress = function() {
15324
+ var clearLongPress = function clearLongPress2() {
15311
15325
  if (longPressTimerRef.current) clearTimeout(longPressTimerRef.current);
15312
15326
  longPressTimerRef.current = null;
15313
15327
  };
@@ -15315,7 +15329,7 @@ function useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNat
15315
15329
  return clearLongPress;
15316
15330
  }, []);
15317
15331
  var pressActiveRef = (0, react.useRef)(false);
15318
- var beginPress = function(e) {
15332
+ var beginPress = function beginPress2(e) {
15319
15333
  var _callbacksRef_current_onPressIn, _callbacksRef_current;
15320
15334
  if (pressActiveRef.current) return;
15321
15335
  pressActiveRef.current = true;
@@ -15334,7 +15348,7 @@ function useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNat
15334
15348
  }
15335
15349
  (_callbacksRef_current_onPressIn = (_callbacksRef_current = callbacksRef.current).onPressIn) === null || _callbacksRef_current_onPressIn === void 0 || _callbacksRef_current_onPressIn.call(_callbacksRef_current, e !== null && e !== void 0 ? e : {});
15336
15350
  };
15337
- var endPress = function(e) {
15351
+ var endPress = function endPress2(e) {
15338
15352
  var firePress = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
15339
15353
  var _callbacksRef_current_onPress, _callbacksRef_current, _callbacksRef_current_onPressOut, _callbacksRef_current1;
15340
15354
  clearLongPress();
@@ -15407,15 +15421,15 @@ var init_eventHandling_native = __esmMin((() => {
15407
15421
  init_esm();
15408
15422
  init_mainThreadPressEvents_native();
15409
15423
  isFabric = !!globalThis.nativeFabricUIManager;
15410
- getIsAndroid = function() {
15424
+ getIsAndroid = function getIsAndroid2() {
15411
15425
  if (isAndroidCache === void 0) isAndroidCache = (Platform === null || Platform === void 0 ? void 0 : Platform.OS) === "android";
15412
15426
  return isAndroidCache;
15413
15427
  };
15414
- getIsNativeDesktop = function() {
15428
+ getIsNativeDesktop = function getIsNativeDesktop2() {
15415
15429
  if (isNativeDesktopCache === void 0) isNativeDesktopCache = (Platform === null || Platform === void 0 ? void 0 : Platform.OS) === "macos" || (Platform === null || Platform === void 0 ? void 0 : Platform.OS) === "windows";
15416
15430
  return isNativeDesktopCache;
15417
15431
  };
15418
- responderClaim = function() {
15432
+ responderClaim = function responderClaim2() {
15419
15433
  return true;
15420
15434
  };
15421
15435
  responderWrapperStyle = { display: "contents" };
@@ -15437,7 +15451,7 @@ var init_transitionResolver_native = __esmMin((() => {
15437
15451
  slot = /* @__PURE__ */ Symbol.for("tamagui.transitionResolver");
15438
15452
  })), empty$1, flushDirectStyles, registerAtomicSlot, getCSSStylesAtomic;
15439
15453
  var init_getCSSStylesAtomic_native = __esmMin((() => {
15440
- empty$1 = function() {};
15454
+ empty$1 = function empty2() {};
15441
15455
  flushDirectStyles = empty$1;
15442
15456
  registerAtomicSlot = empty$1;
15443
15457
  getCSSStylesAtomic = empty$1;
@@ -15549,9 +15563,9 @@ var init_expandStyle_native = __esmMin((() => {
15549
15563
  init_parseOutlineShorthand_native();
15550
15564
  init_objectSpread2();
15551
15565
  _loop = function(parent2) {
15566
+ var _ref;
15552
15567
  var _exec;
15553
- var _exec_index;
15554
- var prefix = parent2.slice(0, (_exec_index = (_exec = /[A-Z]/.exec(parent2)) === null || _exec === void 0 ? void 0 : _exec.index) !== null && _exec_index !== void 0 ? _exec_index : parent2.length);
15568
+ var prefix = parent2.slice(0, (_ref = (_exec = /[A-Z]/.exec(parent2)) === null || _exec === void 0 ? void 0 : _exec.index) !== null && _ref !== void 0 ? _ref : parent2.length);
15555
15569
  EXPANSIONS[parent2] = EXPANSIONS[parent2].map(function(k) {
15556
15570
  return `${prefix}${k}`;
15557
15571
  });
@@ -15697,10 +15711,10 @@ var isDynamicColor, normalizeColor, getRgba;
15697
15711
  var init_normalizeColor_native = __esmMin((() => {
15698
15712
  init_index_native$9();
15699
15713
  init_objectSpread2();
15700
- isDynamicColor = function(color) {
15714
+ isDynamicColor = function isDynamicColor2(color) {
15701
15715
  return typeof color.dynamic === "object" && color.dynamic !== null;
15702
15716
  };
15703
- normalizeColor = function(color, opacity) {
15717
+ normalizeColor = function normalizeColor1(color, opacity) {
15704
15718
  if (!color) return;
15705
15719
  if (typeof color !== "string") {
15706
15720
  if (opacity === void 0 || opacity === 1 || !isDynamicColor(color)) return color;
@@ -15713,13 +15727,13 @@ var init_normalizeColor_native = __esmMin((() => {
15713
15727
  }
15714
15728
  var rgbaVal = getRgba(color);
15715
15729
  if (rgbaVal) {
15716
- var colors = `${rgbaVal.r},${rgbaVal.g},${rgbaVal.b}`;
15717
15730
  var _ref;
15731
+ var colors = `${rgbaVal.r},${rgbaVal.g},${rgbaVal.b}`;
15718
15732
  return opacity === 1 ? `rgb(${colors})` : `rgba(${colors},${(_ref = opacity !== null && opacity !== void 0 ? opacity : rgbaVal.a) !== null && _ref !== void 0 ? _ref : 1})`;
15719
15733
  }
15720
15734
  return color;
15721
15735
  };
15722
- getRgba = function(color) {
15736
+ getRgba = function getRgba2(color) {
15723
15737
  if (typeof color !== "string") return;
15724
15738
  var nativeColor = color.replace(/^(rgb|hsl)\((?=[^)]*\/)/, "$1a(");
15725
15739
  var colorNum = normalizeCSSColor(nativeColor);
@@ -15799,11 +15813,11 @@ var init_styleFrontend_native = __esmMin((() => {
15799
15813
  //#endregion
15800
15814
  //#region ../web/dist/esm/helpers/resolveSizing.native.js
15801
15815
  function resolveSizing(size, env) {
15816
+ var _ref, _ref1, _ref2, _ref3, _ref4;
15802
15817
  var _font_size, _font_size1, _font_lineHeight, _tokens_space;
15803
15818
  if (size === false) return void 0;
15804
15819
  var conf = (env === null || env === void 0 ? void 0 : env.fonts) && (env === null || env === void 0 ? void 0 : env.tokens) ? void 0 : getConfig();
15805
- var _env_sizing;
15806
- var sizing = _objectSpread2(_objectSpread2({}, defaultSizing), (_env_sizing = env === null || env === void 0 ? void 0 : env.sizing) !== null && _env_sizing !== void 0 ? _env_sizing : conf === null || conf === void 0 ? void 0 : conf.sizing);
15820
+ var sizing = _objectSpread2(_objectSpread2({}, defaultSizing), (_ref = env === null || env === void 0 ? void 0 : env.sizing) !== null && _ref !== void 0 ? _ref : conf === null || conf === void 0 ? void 0 : conf.sizing);
15807
15821
  var name = size === true || size == null ? sizing.default : size;
15808
15822
  var rung = sizing.sizes[name];
15809
15823
  if (!rung) return void 0;
@@ -15820,12 +15834,9 @@ function resolveSizing(size, env) {
15820
15834
  icon: rung.px.icon,
15821
15835
  square: rung.px.square
15822
15836
  });
15823
- var _env_fonts;
15824
- var fonts = (_env_fonts = env === null || env === void 0 ? void 0 : env.fonts) !== null && _env_fonts !== void 0 ? _env_fonts : conf === null || conf === void 0 ? void 0 : conf.fontsParsed;
15825
- var _env_tokens;
15826
- var tokens = (_env_tokens = env === null || env === void 0 ? void 0 : env.tokens) !== null && _env_tokens !== void 0 ? _env_tokens : conf === null || conf === void 0 ? void 0 : conf.tokensParsed;
15827
- var _conf_defaultFontToken, _env_font;
15828
- var font = (_env_font = env === null || env === void 0 ? void 0 : env.font) !== null && _env_font !== void 0 ? _env_font : fonts === null || fonts === void 0 ? void 0 : fonts[(_conf_defaultFontToken = conf === null || conf === void 0 ? void 0 : conf.defaultFontToken) !== null && _conf_defaultFontToken !== void 0 ? _conf_defaultFontToken : "body"];
15837
+ var fonts = (_ref1 = env === null || env === void 0 ? void 0 : env.fonts) !== null && _ref1 !== void 0 ? _ref1 : conf === null || conf === void 0 ? void 0 : conf.fontsParsed;
15838
+ var tokens = (_ref2 = env === null || env === void 0 ? void 0 : env.tokens) !== null && _ref2 !== void 0 ? _ref2 : conf === null || conf === void 0 ? void 0 : conf.tokensParsed;
15839
+ var font = (_ref3 = env === null || env === void 0 ? void 0 : env.font) !== null && _ref3 !== void 0 ? _ref3 : fonts === null || fonts === void 0 ? void 0 : fonts[(_ref4 = conf === null || conf === void 0 ? void 0 : conf.defaultFontToken) !== null && _ref4 !== void 0 ? _ref4 : "body"];
15829
15840
  var px = {
15830
15841
  fontSize: toPx$1(getVariableValue(font === null || font === void 0 ? void 0 : (_font_size = font.size) === null || _font_size === void 0 ? void 0 : _font_size[rung.fontSize])),
15831
15842
  control: toPx$1(getVariableValue(font === null || font === void 0 ? void 0 : (_font_size1 = font.size) === null || _font_size1 === void 0 ? void 0 : _font_size1[rung.controlFontSize])),
@@ -15889,7 +15900,7 @@ var init_resolveSizing_native = __esmMin((() => {
15889
15900
  }
15890
15901
  }
15891
15902
  };
15892
- toPx$1 = function(value) {
15903
+ toPx$1 = function toPx2(value) {
15893
15904
  return typeof value === "number" ? value : Number.parseFloat(value);
15894
15905
  };
15895
15906
  }));
@@ -16035,7 +16046,7 @@ var init_insertStyleRule_native = __esmMin((() => {
16035
16046
  allSelectors = {};
16036
16047
  allRules = {};
16037
16048
  allRuleSets = {};
16038
- getRulesForIdentifier = function(identifier) {
16049
+ getRulesForIdentifier = function getRulesForIdentifier2(identifier) {
16039
16050
  return allRuleSets[identifier];
16040
16051
  };
16041
16052
  bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES;
@@ -16136,7 +16147,7 @@ var init_isTamaguiComponent_native = __esmMin((() => {}));
16136
16147
  var isTamaguiElement;
16137
16148
  var init_isTamaguiElement_native = __esmMin((() => {
16138
16149
  init_isTamaguiComponent_native();
16139
- isTamaguiElement = function(child) {
16150
+ isTamaguiElement = function isTamaguiElement2(child) {
16140
16151
  return /* @__PURE__ */ react.default.isValidElement(child) && isTamaguiComponent(child.type);
16141
16152
  };
16142
16153
  }));
@@ -16350,11 +16361,11 @@ function isDynamicUnitValue(value) {
16350
16361
  return !!((_UNIT_RE_exec = UNIT_RE.exec(trimmed.replace(/\s+/g, ""))) === null || _UNIT_RE_exec === void 0 ? void 0 : _UNIT_RE_exec[2]);
16351
16362
  }
16352
16363
  function getUnitContext(key, styleState) {
16364
+ var _ref;
16353
16365
  var _styleState_conf_settings, _styleState_conf, _styleState_style, _groupEntry_state, _styleState_componentState_group_, _styleState_componentState_group, _styleState_componentState;
16354
16366
  var window = Dimensions.get("window");
16355
16367
  var fontScale = typeof PixelRatio !== "undefined" && PixelRatio.getFontScale ? PixelRatio.getFontScale() : 1;
16356
- var _styleState_conf_settings_remBaseFontSize;
16357
- var remBaseFontSize = (_styleState_conf_settings_remBaseFontSize = styleState === null || styleState === void 0 ? void 0 : (_styleState_conf = styleState.conf) === null || _styleState_conf === void 0 ? void 0 : (_styleState_conf_settings = _styleState_conf.settings) === null || _styleState_conf_settings === void 0 ? void 0 : _styleState_conf_settings.remBaseFontSize) !== null && _styleState_conf_settings_remBaseFontSize !== void 0 ? _styleState_conf_settings_remBaseFontSize : 16;
16368
+ var remBaseFontSize = (_ref = styleState === null || styleState === void 0 ? void 0 : (_styleState_conf = styleState.conf) === null || _styleState_conf === void 0 ? void 0 : (_styleState_conf_settings = _styleState_conf.settings) === null || _styleState_conf_settings === void 0 ? void 0 : _styleState_conf_settings.remBaseFontSize) !== null && _ref !== void 0 ? _ref : 16;
16358
16369
  var isFontSizeProp = key === "fontSize";
16359
16370
  var elementFontSize = typeof (styleState === null || styleState === void 0 ? void 0 : (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.fontSize) === "number" ? styleState.style.fontSize : remBaseFontSize;
16360
16371
  var groupContext = styleState === null || styleState === void 0 ? void 0 : styleState.flatGroupContext;
@@ -16411,10 +16422,10 @@ function evaluateCalc(expr, ctx) {
16411
16422
  if (s.toLowerCase().startsWith("calc(") && s.endsWith(")")) s = s.slice(5, -1).trim();
16412
16423
  var tokens = s.match(/[()*/+-]|[^\s()*/+-]+/g) || [];
16413
16424
  var pos = 0;
16414
- var peek = function() {
16425
+ var peek = function peek2() {
16415
16426
  return tokens[pos];
16416
16427
  };
16417
- var consume = function() {
16428
+ var consume = function consume2() {
16418
16429
  return tokens[pos++];
16419
16430
  };
16420
16431
  function parseExpression() {
@@ -16698,8 +16709,8 @@ function resolveConditionModifier(state, condition, authored) {
16698
16709
  ranks[rankIndex] = precedence;
16699
16710
  var buildCSS = false;
16700
16711
  if (kind === 2) {
16701
- var _state_flatMediaState;
16702
16712
  var _state;
16713
+ var _state_flatMediaState;
16703
16714
  var query = modifier[3];
16704
16715
  if (!query) return setConditionUnresolved(condition, name);
16705
16716
  if (buildCSS) appendConditionWrapper(condition, `@media ${query}`);
@@ -16715,8 +16726,7 @@ function resolveConditionModifier(state, condition, authored) {
16715
16726
  return;
16716
16727
  }
16717
16728
  if (kind === 6) {
16718
- var _state_componentState_group, _state_flatGroupContext, _component_media;
16719
- var _state1, _state2;
16729
+ var _state1, _state2, _state_componentState_group, _state_flatGroupContext, _component_media;
16720
16730
  var size = modifier[4];
16721
16731
  var containerName = modifier[5];
16722
16732
  var groupName = `@${containerName}`;
@@ -16734,14 +16744,13 @@ function resolveConditionModifier(state, condition, authored) {
16734
16744
  }
16735
16745
  var selector = modifier[3];
16736
16746
  if (kind === 5) {
16747
+ var _ref, _state3;
16737
16748
  var _state_componentState_group1, _state_flatGroupContext2, _this;
16738
- var _state3;
16739
16749
  var groupName1 = modifier[4];
16740
16750
  if (buildCSS) condition[conditionSelector] += `:where(.t_group_${groupName1}${selector} *)`;
16741
16751
  var component1 = (_state_componentState_group1 = state.componentState.group) === null || _state_componentState_group1 === void 0 ? void 0 : _state_componentState_group1[groupName1];
16742
16752
  var context1 = (_state_flatGroupContext2 = state.flatGroupContext) === null || _state_flatGroupContext2 === void 0 ? void 0 : _state_flatGroupContext2[groupName1];
16743
- var _component_pseudo;
16744
- if (!((_this = (_component_pseudo = component1 === null || component1 === void 0 ? void 0 : component1.pseudo) !== null && _component_pseudo !== void 0 ? _component_pseudo : context1 === null || context1 === void 0 ? void 0 : context1.state.pseudo) === null || _this === void 0 ? void 0 : _this[modifier[5]])) condition[conditionValue] &= -2;
16753
+ if (!((_this = (_ref = component1 === null || component1 === void 0 ? void 0 : component1.pseudo) !== null && _ref !== void 0 ? _ref : context1 === null || context1 === void 0 ? void 0 : context1.state.pseudo) === null || _this === void 0 ? void 0 : _this[modifier[5]])) condition[conditionValue] &= -2;
16745
16754
  ((_state3 = state).flatGroupKeys || (_state3.flatGroupKeys = /* @__PURE__ */ new Set())).add(groupName1);
16746
16755
  } else {
16747
16756
  var _state4;
@@ -16878,7 +16887,7 @@ function contributeProp(pass, keyOg, valOg) {
16878
16887
  }
16879
16888
  var resolveClassName = styleFrontend === null || styleFrontend === void 0 ? void 0 : styleFrontend.resolveClassName;
16880
16889
  var composedProps = null;
16881
- var sink = function(entry2) {
16890
+ var sink = function sink2(entry2) {
16882
16891
  var property3 = entry2[0];
16883
16892
  var condition2 = entry2[2];
16884
16893
  if (property3.charCodeAt(0) === 95 && property3.charCodeAt(1) === 95) {
@@ -17045,10 +17054,8 @@ function contributeProp(pass, keyOg, valOg) {
17045
17054
  if (!isValidStyleKeyInit) {
17046
17055
  if (keyInit === "textOverflow") {
17047
17056
  if (isText && valInit === "ellipsis") {
17048
- var _viewProps, _viewProps1;
17049
- var _numberOfLines;
17057
+ var _viewProps, _numberOfLines, _viewProps1, _ellipsizeMode;
17050
17058
  (_numberOfLines = (_viewProps = viewProps).numberOfLines) !== null && _numberOfLines !== void 0 || (_viewProps.numberOfLines = 1);
17051
- var _ellipsizeMode;
17052
17059
  (_ellipsizeMode = (_viewProps1 = viewProps).ellipsizeMode) !== null && _ellipsizeMode !== void 0 || (_viewProps1.ellipsizeMode = "tail");
17053
17060
  }
17054
17061
  return;
@@ -17163,11 +17170,10 @@ function mergeStyle(styleState, key, val) {
17163
17170
  var { viewProps, styleProps, staticConfig } = styleState;
17164
17171
  var contextPropSet = styleState.flatStyleStaticConfig.styledContextKeys;
17165
17172
  if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(key)) {
17173
+ var _styleState, _ref;
17166
17174
  var _styleState_originalContextPropValues;
17167
- var _styleState;
17168
17175
  (_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});
17169
17176
  var originalFromState = (_styleState_originalContextPropValues = styleState.originalContextPropValues) === null || _styleState_originalContextPropValues === void 0 ? void 0 : _styleState_originalContextPropValues[key];
17170
- var _ref;
17171
17177
  styleState.overriddenContextProps[key] = (_ref = originalVal !== null && originalVal !== void 0 ? originalVal : originalFromState) !== null && _ref !== void 0 ? _ref : val;
17172
17178
  }
17173
17179
  if (key === "transform" || key in stylePropsTransform) {
@@ -17216,8 +17222,8 @@ function recordStyleTokenProvenance(styleState, key, originalVal) {
17216
17222
  }
17217
17223
  function writeStyleRecord(state, property, value, cursor, original, flags) {
17218
17224
  var conditionOverride = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : -1;
17219
- var _direct_flatPass, _direct_flatPass1;
17220
17225
  var _direct;
17226
+ var _direct_flatPass, _direct_flatPass1;
17221
17227
  var condition = conditionOverride !== -1 ? conditionOverride : cursor ? cursor[conditionValue] : 0;
17222
17228
  var identity = cursor ? cursor[conditionKey] : "";
17223
17229
  if (value === "unset" && identity !== "") {
@@ -17264,11 +17270,11 @@ function completeResolvedStyles(state) {
17264
17270
  var direct = state;
17265
17271
  var shadow = direct.flatWebShadow;
17266
17272
  if (shadow && (direct.flatBoxShadowSequence || 0) <= shadow[4]) {
17273
+ var _shadow_;
17267
17274
  var offset = shadow[1] || {
17268
17275
  width: 0,
17269
17276
  height: 0
17270
17277
  };
17271
- var _shadow_;
17272
17278
  var color = normalizeColor(shadow[0], (_shadow_ = shadow[2]) !== null && _shadow_ !== void 0 ? _shadow_ : 1);
17273
17279
  if (color) {
17274
17280
  var next = `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow[3])} ${color}`;
@@ -17506,8 +17512,8 @@ function configuredValue(state, property, raw) {
17506
17512
  }
17507
17513
  function ownsSourceLayer(state, property) {
17508
17514
  var conditional = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
17509
- var _direct_flatPass, _direct_flatPass1;
17510
17515
  var _direct;
17516
+ var _direct_flatPass, _direct_flatPass1;
17511
17517
  var direct = state;
17512
17518
  var layer = ((_direct_flatPass = direct.flatPass) === null || _direct_flatPass === void 0 ? void 0 : _direct_flatPass[passSourceLayer]) || 0;
17513
17519
  var layers = (_direct = direct).flatPropertyLayers || (_direct.flatPropertyLayers = /* @__PURE__ */ new Map());
@@ -17787,15 +17793,14 @@ function walkConditionalValue(state, property, value, parent, sink) {
17787
17793
  if (!(flags & 1)) continue;
17788
17794
  if (start === end) continue;
17789
17795
  if (flags & 2) {
17790
- var _slices, _index;
17791
- var _;
17796
+ var _slices, _index, _;
17792
17797
  var payload = (_ = (_slices = slices)[_index = index]) !== null && _ !== void 0 ? _ : _slices[_index] = value.slice(start, end);
17793
17798
  emitConditionalValue(state, property, payload, parentCondition, payload, sink, warnMode, contextOnly);
17794
17799
  hasBase = true;
17795
17800
  } else if (warnMode);
17796
17801
  }
17797
17802
  for (var index1 = 0; index1 < segments.length; index1 += 5) {
17798
- var _slices1, _ref;
17803
+ var _slices1, _ref, _1;
17799
17804
  var start1 = segments[index1];
17800
17805
  var end1 = segments[index1 + 1];
17801
17806
  var flags1 = segments[index1 + 4];
@@ -17805,12 +17810,10 @@ function walkConditionalValue(state, property, value, parent, sink) {
17805
17810
  continue;
17806
17811
  }
17807
17812
  if (start1 === end1) continue;
17808
- var _1;
17809
17813
  var cursor = conditionFromKey(state, (_1 = (_slices1 = slices)[_ref = index1 + 2]) !== null && _1 !== void 0 ? _1 : _slices1[_ref] = value.slice(segments[index1 + 2], segments[index1 + 3]), parentCondition);
17810
17814
  conditions |= cursor[conditionValue];
17811
17815
  if (cursor[conditionValue] & conditionResolvedFlag || warnMode) {
17812
- var _slices2, _index1;
17813
- var _2;
17816
+ var _slices2, _index1, _2;
17814
17817
  emitConditionalValue(state, property, (_2 = (_slices2 = slices)[_index1 = index1]) !== null && _2 !== void 0 ? _2 : _slices2[_index1] = value.slice(start1, end1), cursor, value, sink, warnMode, contextOnly);
17815
17818
  }
17816
17819
  }
@@ -17926,7 +17929,7 @@ function emitVariantStyle(state, key, value, original, condition, disabled) {
17926
17929
  pass[passParentCursor] = parent;
17927
17930
  pass[passVariantOutput] = parentVariantOutput;
17928
17931
  }
17929
- var shouldTrackStyleTokenProvenance, conditionValue, conditionPlatform, conditionKey, conditionSelector, conditionTheme, conditionWrappers, conditionAtoms, conditionRanks, conditionResolvedFlag, conditionPlatformPseudoFlag, passClassName, passShouldDoClasses, passContainerValue, passContainerName, passContainerType, passFrontendGroup, passFrontendContainer, passFrontendContainerType, passSourceLayer, passParentCursor, passMapSourceKey, passVariantOutput, passFlags, sourceLayerBase, sourceLayerVariant, sourceLayerResolver, sourceLayerProps, sourceLayerStyle, passNoSkipFlag, passDisableShorthandsFlag, passNoExpandFlag, passNoMergeFlag, passHocFlag, passTextFlag, passInputFlag, passAsChildStyleFlag, getSplitStyles, stylePieceStaticConfig, compileStylePieceRuntime, resolvedStylePieceCache, resolveStyleObject, recordInline, recordNormalize, recordRetract, recordDefault, recordCSS, borderTargets, valueCacheConf, valueCacheRevision, valueCaches, valueCacheEntries, valueCacheRoot, parsedSlices, shadowRecipeProperties, shadowRecipeKeywords;
17932
+ var shouldTrackStyleTokenProvenance, conditionValue, conditionPlatform, conditionKey, conditionSelector, conditionTheme, conditionWrappers, conditionAtoms, conditionRanks, conditionResolvedFlag, conditionPlatformPseudoFlag, passClassName, passShouldDoClasses, passContainerValue, passContainerName, passContainerType, passFrontendGroup, passFrontendContainer, passFrontendContainerType, passSourceLayer, passParentCursor, passMapSourceKey, passVariantOutput, passFlags, sourceLayerBase, sourceLayerVariant, sourceLayerResolver, sourceLayerProps, sourceLayerStyle, passNoSkipFlag, passDisableShorthandsFlag, passNoExpandFlag, passNoMergeFlag, passHocFlag, passTextFlag, passInputFlag, passAsChildStyleFlag, getSplitStyles, stylePieceStaticConfig, resolvedStylePieceCache, resolveStyleObject, recordInline, recordNormalize, recordRetract, recordDefault, recordCSS, borderTargets, valueCacheConf, valueCacheRevision, valueCaches, valueCacheEntries, valueCacheRoot, parsedSlices, shadowRecipeProperties, shadowRecipeKeywords;
17930
17933
  var init_getSplitStyles_native = __esmMin((() => {
17931
17934
  init_transitionResolver_native();
17932
17935
  init_index_native$6();
@@ -18001,7 +18004,7 @@ var init_getSplitStyles_native = __esmMin((() => {
18001
18004
  passTextFlag = 32;
18002
18005
  passInputFlag = 64;
18003
18006
  passAsChildStyleFlag = 128;
18004
- getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver, styleStaticConfig) {
18007
+ getSplitStyles = function getSplitStyles2(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver, styleStaticConfig) {
18005
18008
  var _staticConfig_Component_staticConfig, _staticConfig_Component, _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia, _styleState_flatGroupKeys1, _styleState_flatGroupMedia1, _styleState_style;
18006
18009
  var conf = getConfig();
18007
18010
  styleStaticConfig || (styleStaticConfig = getStyleStaticConfig(staticConfig, conf));
@@ -18221,15 +18224,13 @@ var init_getSplitStyles_native = __esmMin((() => {
18221
18224
  var nativeTextMetrics;
18222
18225
  var _styleState_style2;
18223
18226
  if (viewProps.tabIndex === 0) {
18224
- var _viewProps;
18225
- var _accessible;
18227
+ var _viewProps, _accessible;
18226
18228
  (_accessible = (_viewProps = viewProps).accessible) !== null && _accessible !== void 0 || (_viewProps.accessible = true);
18227
18229
  }
18228
18230
  if ((isText || isInput || staticConfig.isDOM) && !isHOC && (styleState.nativeLineHeight !== void 0 || ((_styleState_style2 = styleState.style) === null || _styleState_style2 === void 0 ? void 0 : _styleState_style2.fontSize) !== void 0 || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.parentFontSize) !== void 0 || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.parentLineHeight) !== void 0)) {
18231
+ var _styleState2, _styleState_nativeLineHeight;
18229
18232
  var _parentSplitStyles_nativeTextMetrics;
18230
- var _styleState2;
18231
18233
  var style = (_styleState2 = styleState).style || (_styleState2.style = {});
18232
- var _styleState_nativeLineHeight;
18233
18234
  var lineHeight = (_styleState_nativeLineHeight = styleState.nativeLineHeight) !== null && _styleState_nativeLineHeight !== void 0 ? _styleState_nativeLineHeight : parentSplitStyles === null || parentSplitStyles === void 0 ? void 0 : (_parentSplitStyles_nativeTextMetrics = parentSplitStyles.nativeTextMetrics) === null || _parentSplitStyles_nativeTextMetrics === void 0 ? void 0 : _parentSplitStyles_nativeTextMetrics.lineHeight;
18234
18235
  if (typeof lineHeight === "string") {
18235
18236
  var length = resolveNativeUnits("lineHeight", lineHeight, styleState);
@@ -18360,8 +18361,7 @@ var init_getSplitStyles_native = __esmMin((() => {
18360
18361
  isText: true,
18361
18362
  validStyles: stylePropsInput
18362
18363
  };
18363
- compileStylePieceRuntime = function(piece, layer) {};
18364
- setStylePieceCompiler(compileStylePieceRuntime);
18364
+ setStylePieceCompiler(function compileStylePieceRuntime2(piece, layer) {});
18365
18365
  setStylePieceResolver(function(piece, theme, themeName) {
18366
18366
  var split = getSplitStyles({ style: piece }, stylePieceStaticConfig, theme, themeName, defaultComponentStateMounted, {
18367
18367
  isAnimated: false,
@@ -18370,7 +18370,7 @@ var init_getSplitStyles_native = __esmMin((() => {
18370
18370
  return (split === null || split === void 0 ? void 0 : split.style) || {};
18371
18371
  });
18372
18372
  resolvedStylePieceCache = /* @__PURE__ */ new WeakMap();
18373
- resolveStyleObject = function(styleState, styleIn) {
18373
+ resolveStyleObject = function resolveStyleObject2(styleState, styleIn) {
18374
18374
  var { conf, styleProps } = styleState;
18375
18375
  var styleOut = {};
18376
18376
  var originalValues;
@@ -18385,10 +18385,10 @@ var init_getSplitStyles_native = __esmMin((() => {
18385
18385
  childState.flatAtomics = void 0;
18386
18386
  childState.flatSlots = void 0;
18387
18387
  childState.flatPropertyLayers = void 0;
18388
- var mergeAccepted = function(_state, key2, value2, disableNormalize, originalValue) {
18388
+ var mergeAccepted = function mergeAccepted2(_state, key2, value2, disableNormalize, originalValue) {
18389
+ var _ref;
18389
18390
  styleOut[key2] = disableNormalize || styleProps.noNormalize ? value2 : normalizeValueWithProperty(value2, key2);
18390
- var _styleInOriginalValues_key;
18391
- var trackedOriginal = (_styleInOriginalValues_key = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[key2]) !== null && _styleInOriginalValues_key !== void 0 ? _styleInOriginalValues_key : originalValue;
18391
+ var trackedOriginal = (_ref = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[key2]) !== null && _ref !== void 0 ? _ref : originalValue;
18392
18392
  if (trackedOriginal !== void 0) (originalValues || (originalValues = {}))[key2] = trackedOriginal;
18393
18393
  };
18394
18394
  for (var key in styleIn) {
@@ -18499,9 +18499,9 @@ function usePointerEvents(props, viewProps) {
18499
18499
  };
18500
18500
  if (!hasPointerEvents) return;
18501
18501
  var bag = ref.current;
18502
- var createNormalizedEvent = function(e) {
18503
- var touch = e.nativeEvent;
18502
+ var createNormalizedEvent = function createNormalizedEvent2(e) {
18504
18503
  var _touch_identifier;
18504
+ var touch = e.nativeEvent;
18505
18505
  return _objectSpread2(_objectSpread2({}, e), {}, {
18506
18506
  clientX: touch.pageX,
18507
18507
  clientY: touch.pageY,
@@ -18513,10 +18513,10 @@ function usePointerEvents(props, viewProps) {
18513
18513
  pointerId: (_touch_identifier = touch.identifier) !== null && _touch_identifier !== void 0 ? _touch_identifier : 0,
18514
18514
  nativeEvent: touch,
18515
18515
  target: {
18516
- setPointerCapture: function(_pointerId) {
18516
+ setPointerCapture: function setPointerCapture(_pointerId) {
18517
18517
  bag.isCaptured = true;
18518
18518
  },
18519
- releasePointerCapture: function(_pointerId) {
18519
+ releasePointerCapture: function releasePointerCapture(_pointerId) {
18520
18520
  bag.isCaptured = false;
18521
18521
  }
18522
18522
  }
@@ -18611,7 +18611,7 @@ var init_subscribeToContextGroup_native = __esmMin((() => {
18611
18611
  init_index_native$11();
18612
18612
  init_useMedia_native();
18613
18613
  init_objectSpread2();
18614
- useGroupSetRevision = function(pseudoGroups, mediaGroups) {
18614
+ useGroupSetRevision = function useGroupSetRevision2(pseudoGroups, mediaGroups) {
18615
18615
  var previous = (0, react.useRef)({
18616
18616
  pseudoGroups,
18617
18617
  mediaGroups,
@@ -18624,7 +18624,7 @@ var init_subscribeToContextGroup_native = __esmMin((() => {
18624
18624
  };
18625
18625
  return previous.current.revision;
18626
18626
  };
18627
- setsEqual = function(a, b) {
18627
+ setsEqual = function setsEqual2(a, b) {
18628
18628
  if (a === b) return true;
18629
18629
  if (!a || !b || a.size !== b.size) return false;
18630
18630
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
@@ -18645,7 +18645,7 @@ var init_subscribeToContextGroup_native = __esmMin((() => {
18645
18645
  }
18646
18646
  return true;
18647
18647
  };
18648
- subscribeToContextGroup = function(props) {
18648
+ subscribeToContextGroup = function subscribeToContextGroup2(props) {
18649
18649
  var { pseudoGroups, mediaGroups, groupContext } = props;
18650
18650
  if (pseudoGroups || mediaGroups) {
18651
18651
  var disposables = /* @__PURE__ */ new Set();
@@ -18692,7 +18692,7 @@ var init_subscribeToContextGroup_native = __esmMin((() => {
18692
18692
  };
18693
18693
  }
18694
18694
  };
18695
- createGroupListener = function(name, param) {
18695
+ createGroupListener = function createGroupListener2(name, param) {
18696
18696
  var { setStateShallow, pseudoGroups, mediaGroups, groupContext } = param;
18697
18697
  var parent = groupContext === null || groupContext === void 0 ? void 0 : groupContext[name];
18698
18698
  if (!parent) return function() {};
@@ -18747,7 +18747,7 @@ var init_subscribeToContextGroup_native = __esmMin((() => {
18747
18747
  var ClientOnlyContext, ClientOnly;
18748
18748
  var init_ClientOnly_native = __esmMin((() => {
18749
18749
  ClientOnlyContext = /* @__PURE__ */ (0, react.createContext)(false);
18750
- ClientOnly = function(param) {
18750
+ ClientOnly = function ClientOnly2(param) {
18751
18751
  var { children, enabled } = param;
18752
18752
  var existingValue = (0, react.useContext)(ClientOnlyContext);
18753
18753
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClientOnlyContext.Provider, {
@@ -18768,7 +18768,7 @@ function useClientValue(value) {
18768
18768
  var useIsClientOnly;
18769
18769
  var init_index_native$2 = __esmMin((() => {
18770
18770
  init_ClientOnly_native();
18771
- useIsClientOnly = function() {
18771
+ useIsClientOnly = function useIsClientOnly2() {
18772
18772
  return react.useContext(ClientOnlyContext);
18773
18773
  };
18774
18774
  }));
@@ -18791,10 +18791,10 @@ var init_useComponentState_native = __esmMin((() => {
18791
18791
  init_defaultComponentState_native();
18792
18792
  init_isObj_native();
18793
18793
  init_objectSpread2();
18794
- useComponentState = function(props, animationDriver, staticConfig, config) {
18794
+ useComponentState = function useComponentState2(props, animationDriver, staticConfig, config) {
18795
18795
  "use no memo";
18796
+ var _stateRef, _ref, _ref1, _curStateRef, _curStateRef1;
18796
18797
  var _getPlatformDriver, _animationDriver_usePresence;
18797
- var _stateRef, _curStateRef, _curStateRef1;
18798
18798
  var isHydrated = useDidFinishSSR();
18799
18799
  var needsHydration = !useIsClientOnly();
18800
18800
  var useAnimations = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? void 0 : animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useAnimations;
@@ -18805,10 +18805,8 @@ var init_useComponentState_native = __esmMin((() => {
18805
18805
  optimizeForFirstRender: isOptimizedForFirstRender()
18806
18806
  });
18807
18807
  var hasAnimationProp = Boolean(!isHOC && "transition" in props || props.style && hasAnimatedStyleValue(props.style));
18808
- var _animationDriver_inputStyle;
18809
- var inputStyle = (_animationDriver_inputStyle = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.inputStyle) !== null && _animationDriver_inputStyle !== void 0 ? _animationDriver_inputStyle : "css";
18810
- var _animationDriver_outputStyle;
18811
- var outputStyle = (_animationDriver_outputStyle = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.outputStyle) !== null && _animationDriver_outputStyle !== void 0 ? _animationDriver_outputStyle : "css";
18808
+ var inputStyle = (_ref = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.inputStyle) !== null && _ref !== void 0 ? _ref : "css";
18809
+ var outputStyle = (_ref1 = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.outputStyle) !== null && _ref1 !== void 0 ? _ref1 : "css";
18812
18810
  if (!needsHydration && hasAnimationProp) curStateRef.hasAnimated = true;
18813
18811
  var platformPseudoPossible = Boolean(!isHOC && useAnimations && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) && ((_getPlatformDriver = getPlatformDriver()) === null || _getPlatformDriver === void 0 ? void 0 : _getPlatformDriver.pseudo));
18814
18812
  var willBeAnimatedClient = Boolean((hasAnimationProp || platformPseudoPossible) && !isHOC && useAnimations || curStateRef.hasAnimated);
@@ -18818,8 +18816,7 @@ var init_useComponentState_native = __esmMin((() => {
18818
18816
  var animatePresenceOptIn = willBeAnimated && !isHOC && props["animatePresence"] !== false;
18819
18817
  if (animatePresenceOptIn) curStateRef.shouldRegisterPresence = true;
18820
18818
  else {
18821
- var _curStateRef2;
18822
- var _shouldRegisterPresence;
18819
+ var _curStateRef2, _shouldRegisterPresence;
18823
18820
  (_shouldRegisterPresence = (_curStateRef2 = curStateRef).shouldRegisterPresence) !== null && _shouldRegisterPresence !== void 0 || (_curStateRef2.shouldRegisterPresence = false);
18824
18821
  }
18825
18822
  var presenceResult = (animationDriver === null || animationDriver === void 0 ? void 0 : (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver, curStateRef)) || null;
@@ -18912,7 +18909,7 @@ var init_useComponentState_native = __esmMin((() => {
18912
18909
  };
18913
18910
  return result;
18914
18911
  };
18915
- isDisabled = function(props) {
18912
+ isDisabled = function isDisabled2(props) {
18916
18913
  var _props_accessibilityState;
18917
18914
  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;
18918
18915
  };
@@ -18923,7 +18920,7 @@ var useSplitStyles;
18923
18920
  var init_useSplitStyles_native = __esmMin((() => {
18924
18921
  init_index_native$6();
18925
18922
  init_getSplitStyles_native();
18926
- useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l, m, n) {
18923
+ useSplitStyles = function useSplitStyles2(a, b, c, d, e, f, g, h, i, j, k, l, m, n) {
18927
18924
  "use no memo";
18928
18925
  var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m, n);
18929
18926
  if (process.env.TAMAGUI_RUNTIME !== "island" && false);
@@ -18966,7 +18963,7 @@ var init_Slot_native = __esmMin((() => {
18966
18963
  }
18967
18964
  return react.Children.count(children) > 1 ? react.Children.only(null) : null;
18968
18965
  }));
18969
- Slottable = function(param) {
18966
+ Slottable = function Slottable2(param) {
18970
18967
  var { children } = param;
18971
18968
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children });
18972
18969
  };
@@ -19048,10 +19045,10 @@ function createComponent(staticConfig) {
19048
19045
  var { Component, isText, isHOC } = staticConfig;
19049
19046
  var res;
19050
19047
  var { displayName } = staticConfig;
19051
- var component = function(propsInWithRef) {
19048
+ var component = function component2(propsInWithRef) {
19052
19049
  "use no memo";
19050
+ var _stateRef_current, _avoidReRenders, _ref, _ref1;
19053
19051
  var _hooks_usePropsTransform, _staticConfig_neverSkipProps;
19054
- var _stateRef_current;
19055
19052
  var forwardedRef = propsInWithRef.ref;
19056
19053
  var propsIn = propsInWithRef;
19057
19054
  config = config || getConfig();
@@ -19086,12 +19083,12 @@ function createComponent(staticConfig) {
19086
19083
  overriddenContextProps = overrides;
19087
19084
  var groupContextParent = react.default.useContext(GroupContext);
19088
19085
  var animationDriver = (function() {
19086
+ var _ref9, _componentContext_animationDriver;
19089
19087
  if (props.animatedBy && config) {
19090
19088
  if (config.animationDrivers) return props.animatedBy in config.animationDrivers ? config.animationDrivers[props.animatedBy] : config.animations;
19091
19089
  return props.animatedBy === "default" ? config.animations : null;
19092
19090
  }
19093
- var _componentContext_animationDriver, _ref5;
19094
- return (_ref5 = (_componentContext_animationDriver = componentContext.animationDriver) !== null && _componentContext_animationDriver !== void 0 ? _componentContext_animationDriver : config === null || config === void 0 ? void 0 : config.animations) !== null && _ref5 !== void 0 ? _ref5 : null;
19091
+ return (_ref9 = (_componentContext_animationDriver = componentContext.animationDriver) !== null && _componentContext_animationDriver !== void 0 ? _componentContext_animationDriver : config === null || config === void 0 ? void 0 : config.animations) !== null && _ref9 !== void 0 ? _ref9 : null;
19095
19092
  })();
19096
19093
  var useAnimations = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? void 0 : animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useAnimations;
19097
19094
  var componentState = useComponentState(props, (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig, config);
@@ -19099,7 +19096,6 @@ function createComponent(staticConfig) {
19099
19096
  var { groupName } = componentState;
19100
19097
  var { hasEnterStyle, isAnimated, willBeAnimated, willBeAnimatedClient, platformPseudo } = componentState;
19101
19098
  props = componentState.props;
19102
- var _avoidReRenders;
19103
19099
  (_avoidReRenders = (_stateRef_current = stateRef.current).avoidReRenders) !== null && _avoidReRenders !== void 0 || (_stateRef_current.avoidReRenders = !!(animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders));
19104
19100
  if (stateRef.current.avoidReRenders) useIsomorphicLayoutEffect(function() {
19105
19101
  var emitted = stateRef.current.prevPseudoState;
@@ -19146,9 +19142,9 @@ function createComponent(staticConfig) {
19146
19142
  var _stateRef_current1;
19147
19143
  themeStateProps.deopt = willBeAnimated;
19148
19144
  themeStateProps.nativeUpdate = (_stateRef_current1 = stateRef.current).nativeUpdateProxy || (_stateRef_current1.nativeUpdateProxy = function(next) {
19145
+ var _ref9;
19149
19146
  var _stateRef_current_nativeStyleUpdate, _stateRef_current3;
19150
- var _stateRef_current_nativeStyleUpdate1;
19151
- return (_stateRef_current_nativeStyleUpdate1 = (_stateRef_current_nativeStyleUpdate = (_stateRef_current3 = stateRef.current).nativeStyleUpdate) === null || _stateRef_current_nativeStyleUpdate === void 0 ? void 0 : _stateRef_current_nativeStyleUpdate.call(_stateRef_current3, next)) !== null && _stateRef_current_nativeStyleUpdate1 !== void 0 ? _stateRef_current_nativeStyleUpdate1 : false;
19147
+ return (_ref9 = (_stateRef_current_nativeStyleUpdate = (_stateRef_current3 = stateRef.current).nativeStyleUpdate) === null || _stateRef_current_nativeStyleUpdate === void 0 ? void 0 : _stateRef_current_nativeStyleUpdate.call(_stateRef_current3, next)) !== null && _ref9 !== void 0 ? _ref9 : false;
19152
19148
  });
19153
19149
  var [theme, themeState] = useThemeWithState(themeStateProps);
19154
19150
  if (!isAnimatedCustomComponent) elementType = element || elementType;
@@ -19174,10 +19170,8 @@ function createComponent(staticConfig) {
19174
19170
  willBeAnimated = finalizedComponentState.willBeAnimated;
19175
19171
  willBeAnimatedClient = finalizedComponentState.willBeAnimatedClient;
19176
19172
  platformPseudo = finalizedComponentState.platformPseudo;
19177
- var _splitStyles_frontendGroup;
19178
- groupName = (_splitStyles_frontendGroup = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendGroup) !== null && _splitStyles_frontendGroup !== void 0 ? _splitStyles_frontendGroup : groupName;
19179
- var _splitStyles_frontendContainer;
19180
- var containerProp = (_splitStyles_frontendContainer = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainer) !== null && _splitStyles_frontendContainer !== void 0 ? _splitStyles_frontendContainer : props.container;
19173
+ groupName = (_ref = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendGroup) !== null && _ref !== void 0 ? _ref : groupName;
19174
+ var containerProp = (_ref1 = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainer) !== null && _ref1 !== void 0 ? _ref1 : props.container;
19181
19175
  var containerName = props.containerName || (typeof containerProp === "string" ? containerProp : void 0);
19182
19176
  var containerType = (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainerType) || props.containerType || (containerProp ? "inline-size" : void 0);
19183
19177
  var isContainer = !!containerType && containerType !== "normal";
@@ -19204,7 +19198,7 @@ function createComponent(staticConfig) {
19204
19198
  };
19205
19199
  var entry = {
19206
19200
  state: { pseudo: defaultComponentStateMounted },
19207
- subscribe: function(listener) {
19201
+ subscribe: function subscribe(listener) {
19208
19202
  var _stateRef_current_group2;
19209
19203
  var dispose = (_stateRef_current_group2 = stateRef.current.group) === null || _stateRef_current_group2 === void 0 ? void 0 : _stateRef_current_group2.subscribe(listener);
19210
19204
  return function() {
@@ -19230,6 +19224,7 @@ function createComponent(staticConfig) {
19230
19224
  var nativeEngine = getNativeStyleEngine();
19231
19225
  var canNativeUpdate = !!nativeEngine && !isPassthrough && !isHOC && !willBeAnimated && !groupName && !props.disableNativeStyle;
19232
19226
  stateRef.current.nativePushedStates = canNativeUpdate ? /* @__PURE__ */ new Set() : void 0;
19227
+ if (stateRef.current.nativeLink) supersedeNativeViewStates(stateRef.current.nativeLink.id);
19233
19228
  stateRef.current.nativeThemeState = void 0;
19234
19229
  stateRef.current.nativeActiveState = canNativeUpdate ? themeState === null || themeState === void 0 ? void 0 : themeState.name : void 0;
19235
19230
  var pushViewState = canNativeUpdate ? function(stateName, style2) {
@@ -19357,6 +19352,7 @@ function createComponent(staticConfig) {
19357
19352
  var _stateRef_current2;
19358
19353
  var ogSetStateShallow = setStateShallow;
19359
19354
  stateRef.current.updateStyleListener = function() {
19355
+ var _ref9, _ref12;
19360
19356
  var useStyleListener = stateRef.current.useStyleListener;
19361
19357
  if (!useStyleListener) {
19362
19358
  var pendingState = stateRef.current.nextState;
@@ -19366,8 +19362,7 @@ function createComponent(staticConfig) {
19366
19362
  var updatedState = stateRef.current.nextState || state;
19367
19363
  var mediaState2 = stateRef.current.nextMedia;
19368
19364
  var nextStyles = getSplitStyles(props, staticConfig, theme, themeName, updatedState, mediaState2 ? _objectSpread2(_objectSpread2({}, styleProps), {}, { mediaState: mediaState2 }) : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
19369
- var _nextStyles_effectiveTransition, _ref5;
19370
- 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;
19365
+ var effectiveTransition2 = (_ref9 = (_ref12 = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _ref12 !== void 0 ? _ref12 : props.transition) !== null && _ref9 !== void 0 ? _ref9 : platformPseudo ? "0ms" : void 0;
19371
19366
  stateRef.current.prevPseudoState = extractPseudoState(updatedState);
19372
19367
  var hasActivePseudo = Boolean(updatedState.hover || updatedState.press || updatedState.pressIn || updatedState.focus || updatedState.focusWithin);
19373
19368
  useStyleListener((nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style) || {}, effectiveTransition2, hasActivePseudo, nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.nativeTextMetrics);
@@ -19400,7 +19395,7 @@ function createComponent(staticConfig) {
19400
19395
  (_stateRef_current_updateStyleListener = (_stateRef_current3 = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current3);
19401
19396
  } else ogSetStateShallow(next);
19402
19397
  };
19403
- setStateShallow = function(state2) {
19398
+ setStateShallow = function setStateShallow2(state2) {
19404
19399
  var _stateRef_current_setStateShallow, _stateRef_current3;
19405
19400
  (_stateRef_current_setStateShallow = (_stateRef_current3 = stateRef.current).setStateShallow) === null || _stateRef_current_setStateShallow === void 0 || _stateRef_current_setStateShallow.call(_stateRef_current3, state2);
19406
19401
  };
@@ -19419,7 +19414,7 @@ function createComponent(staticConfig) {
19419
19414
  var groupSetRevision = useGroupSetRevision(pseudoGroups, mediaGroups);
19420
19415
  stateRef.current.prevStyle = splitStylesStyle || null;
19421
19416
  var propsWithAnimation = props;
19422
- var _ref6 = viewPropsIn || {}, { asChild, children, themeShallow, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onTransition, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp } = _ref6, nonTamaguiProps = _objectWithoutProperties(_ref6, _excluded2$2);
19417
+ var _ref13 = viewPropsIn || {}, { asChild, children, themeShallow, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onTransition, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp } = _ref13, nonTamaguiProps = _objectWithoutProperties(_ref13, _excluded2$2);
19423
19418
  var viewProps = nonTamaguiProps;
19424
19419
  if (props.forceStyle) viewProps.forceStyle = props.forceStyle;
19425
19420
  if (isHOC) {
@@ -19433,12 +19428,12 @@ function createComponent(staticConfig) {
19433
19428
  var shouldUseAnimation = (inputStyle === "css" ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC;
19434
19429
  var animatedRef;
19435
19430
  if (shouldUseAnimation) {
19431
+ var _ref2, _ref3;
19436
19432
  var _splitStyles_nativeTextMetrics;
19437
19433
  var useStyleEmitter = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) ? function(listener) {
19438
19434
  stateRef.current.useStyleListener = listener;
19439
19435
  } : void 0;
19440
- var _splitStyles_effectiveTransition, _ref;
19441
- var effectiveTransition = (_ref = (_splitStyles_effectiveTransition = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.effectiveTransition) !== null && _splitStyles_effectiveTransition !== void 0 ? _splitStyles_effectiveTransition : props.transition) !== null && _ref !== void 0 ? _ref : platformPseudo ? "0ms" : void 0;
19436
+ var effectiveTransition = (_ref2 = (_ref3 = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.effectiveTransition) !== null && _ref3 !== void 0 ? _ref3 : props.transition) !== null && _ref2 !== void 0 ? _ref2 : platformPseudo ? "0ms" : void 0;
19442
19437
  if (splitStyles) splitStyles.effectiveTransition = effectiveTransition;
19443
19438
  stateRef.current.prevPseudoState = extractPseudoState(state);
19444
19439
  var animations = useAnimations({
@@ -19495,7 +19490,7 @@ function createComponent(staticConfig) {
19495
19490
  if (stateRef.current.host) setRef(forwardedRef, stateRef.current.host);
19496
19491
  }, [forwardedRef]);
19497
19492
  usePointerEvents(props, viewProps);
19498
- var unPress = function() {
19493
+ var unPress = function unPress2() {
19499
19494
  setStateShallow({
19500
19495
  press: false,
19501
19496
  pressIn: false
@@ -19531,7 +19526,7 @@ function createComponent(staticConfig) {
19531
19526
  useIsomorphicLayoutEffect(function() {
19532
19527
  var disposeSafeArea;
19533
19528
  if (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea) {
19534
- var updateSafeArea = function() {
19529
+ var updateSafeArea = function updateSafeArea2() {
19535
19530
  setState(function(previous) {
19536
19531
  return _objectSpread2({}, previous);
19537
19532
  });
@@ -19585,7 +19580,7 @@ function createComponent(staticConfig) {
19585
19580
  onPressOut === null || onPressOut === void 0 || onPressOut(e);
19586
19581
  onMouseUp === null || onMouseUp === void 0 || onMouseUp(e);
19587
19582
  } : void 0 }, (attachHover || attachPress) && {
19588
- onMouseEnter: function(e) {
19583
+ onMouseEnter: function onMouseEnter1(e) {
19589
19584
  var next = {};
19590
19585
  if (needsHoverState && !lastInteractionWasTouch.value) next.hover = true;
19591
19586
  if (needsPressState) {
@@ -19595,7 +19590,7 @@ function createComponent(staticConfig) {
19595
19590
  onHoverIn === null || onHoverIn === void 0 || onHoverIn(e);
19596
19591
  onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter(e);
19597
19592
  },
19598
- onMouseLeave: function(e) {
19593
+ onMouseLeave: function onMouseLeave1(e) {
19599
19594
  var next = {};
19600
19595
  if (needsHoverState) next.hover = false;
19601
19596
  if (needsPressState) {
@@ -19619,11 +19614,11 @@ function createComponent(staticConfig) {
19619
19614
  unPress();
19620
19615
  onPress === null || onPress === void 0 || onPress(e);
19621
19616
  } : void 0
19622
- }, attachPress && onLongPress && { onLongPress: function(e) {
19617
+ }, attachPress && onLongPress && { onLongPress: function onLongPress1(e) {
19623
19618
  unPress();
19624
19619
  onLongPress === null || onLongPress === void 0 || onLongPress(e);
19625
19620
  } }), attachFocus && {
19626
- onFocus: function(e) {
19621
+ onFocus: function onFocus1(e) {
19627
19622
  var next = {};
19628
19623
  if (componentContext.setParentFocusState) {
19629
19624
  componentContext.setParentFocusState({ focusWithin: true });
@@ -19635,7 +19630,7 @@ function createComponent(staticConfig) {
19635
19630
  setStateShallow(next);
19636
19631
  onFocus === null || onFocus === void 0 || onFocus(e);
19637
19632
  },
19638
- onBlur: function(e) {
19633
+ onBlur: function onBlur1(e) {
19639
19634
  if (componentContext.setParentFocusState) componentContext.setParentFocusState({ focusWithin: false });
19640
19635
  setStateShallow({
19641
19636
  focus: false,
@@ -19668,10 +19663,10 @@ function createComponent(staticConfig) {
19668
19663
  });
19669
19664
  var hasRealPressEvents = false;
19670
19665
  var pressGesture = null;
19666
+ var _ref4, _ref5, _ref6, _ref7, _props_testID;
19671
19667
  var propsWithHref = props;
19672
19668
  var propsInWithHref = propsIn;
19673
- var _props_testID, _ref1, _ref2, _ref3, _ref4;
19674
- var pressDebugDetail = (_ref4 = (_ref3 = (_ref2 = (_ref1 = (_props_testID = props.testID) !== null && _props_testID !== void 0 ? _props_testID : propsIn.testID) !== null && _ref1 !== void 0 ? _ref1 : props.accessibilityLabel) !== null && _ref2 !== void 0 ? _ref2 : propsIn.accessibilityLabel) !== null && _ref3 !== void 0 ? _ref3 : typeof propsWithHref.href === "string" ? propsWithHref.href : null) !== null && _ref4 !== void 0 ? _ref4 : typeof propsInWithHref.href === "string" ? propsInWithHref.href : null;
19669
+ var pressDebugDetail = (_ref4 = (_ref5 = (_ref6 = (_ref7 = (_props_testID = props.testID) !== null && _props_testID !== void 0 ? _props_testID : propsIn.testID) !== null && _ref7 !== void 0 ? _ref7 : props.accessibilityLabel) !== null && _ref6 !== void 0 ? _ref6 : propsIn.accessibilityLabel) !== null && _ref5 !== void 0 ? _ref5 : typeof propsWithHref.href === "string" ? propsWithHref.href : null) !== null && _ref4 !== void 0 ? _ref4 : typeof propsInWithHref.href === "string" ? propsInWithHref.href : null;
19675
19670
  var pressDebugName = displayName ? pressDebugDetail ? `${displayName}:${pressDebugDetail}` : displayName : pressDebugDetail || null;
19676
19671
  hasRealPressEvents = !!(onPress || onPressIn || onPressOut || onLongPress);
19677
19672
  pressGesture = useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNativeMenu, pressDebugName, hasRealPressEvents);
@@ -19726,10 +19721,10 @@ function createComponent(staticConfig) {
19726
19721
  var provideText = !!textMetrics && children !== null && typeof children === "object" && (!componentContext.inText || textMetrics.fontSize !== componentContext.parentFontSize || textMetrics.lineHeight !== componentContext.parentLineHeight || animatedText !== componentContext.animatedText);
19727
19722
  var provideFocus = conditionalStates === null || conditionalStates === void 0 ? void 0 : conditionalStates.has("focus-within");
19728
19723
  if (provideText || provideFocus) {
19729
- var _textMetrics_fontSize;
19724
+ var _ref8;
19730
19725
  content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComponentContext.Provider, _objectSpread2(_objectSpread2({}, componentContext), {}, {
19731
19726
  inText: provideText || componentContext.inText,
19732
- parentFontSize: (_textMetrics_fontSize = textMetrics === null || textMetrics === void 0 ? void 0 : textMetrics.fontSize) !== null && _textMetrics_fontSize !== void 0 ? _textMetrics_fontSize : componentContext.parentFontSize,
19727
+ parentFontSize: (_ref8 = textMetrics === null || textMetrics === void 0 ? void 0 : textMetrics.fontSize) !== null && _ref8 !== void 0 ? _ref8 : componentContext.parentFontSize,
19733
19728
  parentLineHeight: textMetrics ? textMetrics.lineHeight : componentContext.parentLineHeight,
19734
19729
  animatedText,
19735
19730
  setParentFocusState: provideFocus ? setStateShallow : componentContext.setParentFocusState,
@@ -19876,12 +19871,12 @@ var init_createComponent_native = __esmMin((() => {
19876
19871
  hasSetupBaseViews = false;
19877
19872
  lastInteractionWasKeyboard = { value: false };
19878
19873
  lastInteractionWasTouch = { value: false };
19879
- fromPx = function(val) {
19874
+ fromPx = function fromPx2(val) {
19880
19875
  if (typeof val === "number") return val;
19881
19876
  if (typeof val === "string") return +val.replace("px", "");
19882
19877
  return 0;
19883
19878
  };
19884
- getCustomRender = function(renderProp, content, viewProps, state) {
19879
+ getCustomRender = function getCustomRender2(renderProp, content, viewProps, state) {
19885
19880
  if (typeof renderProp === "function") renderProp = getRenderElementForPlatform(renderProp(viewProps, state));
19886
19881
  if (renderProp) {
19887
19882
  if (typeof renderProp === "object" && /* @__PURE__ */ react.default.isValidElement(renderProp)) {
@@ -19900,8 +19895,8 @@ var init_createComponent_native = __esmMin((() => {
19900
19895
  //#endregion
19901
19896
  //#region ../web/dist/esm/helpers/getExpandedShorthands.native.js
19902
19897
  function getExpandedShorthand(propKey, props) {
19903
- var shorthands = getConfig().inverseShorthands;
19904
19898
  var _props_propKey;
19899
+ var shorthands = getConfig().inverseShorthands;
19905
19900
  return (_props_propKey = props[propKey]) !== null && _props_propKey !== void 0 ? _props_propKey : props[shorthands[propKey]];
19906
19901
  }
19907
19902
  var init_getExpandedShorthands_native = __esmMin((() => {
@@ -19913,7 +19908,7 @@ var variableGeneration, registerCSSVariable, variableToCSS, tokensValueToVariabl
19913
19908
  var init_registerCSSVariable_native = __esmMin((() => {
19914
19909
  init_createVariable_native();
19915
19910
  variableGeneration = 0;
19916
- registerCSSVariable = function(v) {
19911
+ registerCSSVariable = function registerCSSVariable2(v) {
19917
19912
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
19918
19913
  var key = getVariableValue(v);
19919
19914
  if (tokensValueToVariable.has(key) || tokensValueToVariable.size < 1e4) {
@@ -19922,23 +19917,23 @@ var init_registerCSSVariable_native = __esmMin((() => {
19922
19917
  }
19923
19918
  }
19924
19919
  };
19925
- variableToCSS = function(v) {
19920
+ variableToCSS = function variableToCSS2(v) {
19926
19921
  var unitless = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
19927
19922
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) return `--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${createCSSVariable(v.name, false)}:${!unitless && typeof v.val === "number" ? `${v.val}px` : v.val}`;
19928
19923
  return "";
19929
19924
  };
19930
19925
  tokensValueToVariable = /* @__PURE__ */ new Map();
19931
19926
  autoVariables = [];
19932
- serializeVariables = function(variables) {
19927
+ serializeVariables = function serializeVariables2(variables) {
19933
19928
  return variables.map(function(v) {
19934
19929
  return `--${v.name}:${v.val}`;
19935
19930
  }).join(";");
19936
19931
  };
19937
- getAutoVariableCSS = function() {
19932
+ getAutoVariableCSS = function getAutoVariableCSS2() {
19938
19933
  return serializeVariables(autoVariables);
19939
19934
  };
19940
19935
  mutatedAutoVariables = [];
19941
- getMutatedAutoVariableCSS = function() {
19936
+ getMutatedAutoVariableCSS = function getMutatedAutoVariableCSS2() {
19942
19937
  return serializeVariables(mutatedAutoVariables);
19943
19938
  };
19944
19939
  }));
@@ -20050,19 +20045,19 @@ var init_createFont_native = __esmMin((() => {
20050
20045
  "800",
20051
20046
  "900"
20052
20047
  ];
20053
- processSection = function(section, keys, defaultValue) {
20048
+ processSection = function processSection2(section, keys, defaultValue) {
20054
20049
  if (typeof section === "string") return section;
20055
20050
  var sectionKeys = Object.keys(section);
20056
20051
  var fillValue = section[sectionKeys[0]];
20057
20052
  return Object.fromEntries([.../* @__PURE__ */ new Set([...keys, ...sectionKeys])].map(function(key) {
20058
- var _section_key, _ref;
20053
+ var _ref, _section_key;
20059
20054
  var value = (_ref = (_section_key = section[key]) !== null && _section_key !== void 0 ? _section_key : defaultValue) !== null && _ref !== void 0 ? _ref : fillValue;
20060
20055
  fillValue = value;
20061
20056
  defaultValue = value;
20062
20057
  return [key, value];
20063
20058
  }));
20064
20059
  };
20065
- createFont = function(font) {
20060
+ createFont = function createFont2(font) {
20066
20061
  var sizeKeys = Object.keys(font.size || {});
20067
20062
  var processedFont = Object.fromEntries(Object.entries(font).map(function(param) {
20068
20063
  var [key, section] = param;
@@ -20187,7 +20182,7 @@ var init_createVariables_native = __esmMin((() => {
20187
20182
  init_index_native$4();
20188
20183
  init_createVariable_native();
20189
20184
  cache = /* @__PURE__ */ new WeakMap();
20190
- createVariables = function(tokens) {
20185
+ createVariables = function createVariables1(tokens) {
20191
20186
  var parentPath = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
20192
20187
  arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
20193
20188
  if (cache.has(tokens)) return tokens;
@@ -20224,29 +20219,28 @@ var init_createVariables_native = __esmMin((() => {
20224
20219
  }));
20225
20220
  //#endregion
20226
20221
  //#region ../web/dist/esm/helpers/defaultAnimationDriver.native.js
20227
- var noAnimationDriver, createEmptyAnimationDriver, defaultAnimationDriver;
20222
+ var noAnimationDriver, defaultAnimationDriver;
20228
20223
  var init_defaultAnimationDriver_native = __esmMin((() => {
20229
- noAnimationDriver = function(method) {
20224
+ noAnimationDriver = function noAnimationDriver2(method) {
20230
20225
  console.warn(`No animation driver configured. To use ${method}, you must pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations`);
20231
20226
  };
20232
- createEmptyAnimationDriver = function() {
20227
+ defaultAnimationDriver = function createEmptyAnimationDriver2() {
20233
20228
  return {
20234
20229
  inputStyle: "css",
20235
20230
  outputStyle: "css",
20236
20231
  isStub: true,
20237
20232
  animations: {},
20238
- useAnimations: function() {
20233
+ useAnimations: function useAnimations() {
20239
20234
  return noAnimationDriver("animations");
20240
20235
  },
20241
- usePresence: function() {
20236
+ usePresence: function usePresence() {
20242
20237
  return noAnimationDriver("usePresence");
20243
20238
  },
20244
- ResetPresence: function() {
20239
+ ResetPresence: function ResetPresence() {
20245
20240
  return noAnimationDriver("ResetPresence");
20246
20241
  }
20247
20242
  };
20248
- };
20249
- defaultAnimationDriver = createEmptyAnimationDriver();
20243
+ }();
20250
20244
  }));
20251
20245
  //#endregion
20252
20246
  //#region ../web/dist/esm/helpers/resolveAnimationDriver.native.js
@@ -20530,7 +20524,7 @@ var init_variableValue_native = __esmMin((() => {
20530
20524
  "ratio",
20531
20525
  "elevation"
20532
20526
  ];
20533
- isUnitlessVariableKey = function(key) {
20527
+ isUnitlessVariableKey = function isUnitlessVariableKey2(key) {
20534
20528
  var lower = key.toLowerCase();
20535
20529
  return unitlessSuffixes.some(function(suffix) {
20536
20530
  return lower.endsWith(suffix);
@@ -20543,7 +20537,7 @@ var init_variableValue_native = __esmMin((() => {
20543
20537
  "radius",
20544
20538
  "zIndex"
20545
20539
  ];
20546
- findVariableToken = function(tokensParsed, name) {
20540
+ findVariableToken = function findVariableToken2(tokensParsed, name) {
20547
20541
  var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
20548
20542
  try {
20549
20543
  for (var _iterator1 = tokenCategoryOrder[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
@@ -20569,7 +20563,7 @@ var init_variableValue_native = __esmMin((() => {
20569
20563
  function mergeConfigVariablesIntoTheme(theme, themeName, variables, tokensParsed) {
20570
20564
  var scheme = themeName.startsWith("dark") ? "dark" : "light";
20571
20565
  var resolving = /* @__PURE__ */ new Set();
20572
- var resolveRawValue = function(key2, value) {
20566
+ var resolveRawValue = function resolveRawValue1(key2, value) {
20573
20567
  if (typeof value === "object" && value !== null) {
20574
20568
  if (isVariable(value)) return value.val;
20575
20569
  if ("needsPx" in value) return value;
@@ -20777,10 +20771,10 @@ function createTamagui$2(configIn) {
20777
20771
  lastIndex: -1,
20778
20772
  static: null
20779
20773
  };
20780
- var getCSS$1 = function() {
20774
+ var getCSS$1 = function getCSS2() {
20781
20775
  return getCSS(themeConfig, arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, cssState);
20782
20776
  };
20783
- var getNewCSS = function(opts) {
20777
+ var getNewCSS = function getNewCSS2(opts) {
20784
20778
  return getCSS$1(_objectSpread2(_objectSpread2({}, opts), {}, { sinceLastCall: true }));
20785
20779
  };
20786
20780
  var inputAnimations = configIn.animations;
@@ -20965,7 +20959,7 @@ var init_createTokens_native = __esmMin((() => {
20965
20959
  function mergeVariantValues(earlier, later) {
20966
20960
  if (typeof earlier !== "string" || typeof later !== "string") return later;
20967
20961
  if (!earlier.includes(":") && !later.includes(":")) return later;
20968
- var getSlot = function(token, colon) {
20962
+ var getSlot = function getSlot2(token, colon) {
20969
20963
  var slot = [];
20970
20964
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
20971
20965
  try {
@@ -20991,7 +20985,7 @@ function mergeVariantValues(earlier, later) {
20991
20985
  };
20992
20986
  var clauses = /* @__PURE__ */ new Map();
20993
20987
  var base;
20994
- var add = function(source, reject) {
20988
+ var add = function add2(source, reject) {
20995
20989
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
20996
20990
  try {
20997
20991
  for (var _iterator = source.trim().split(/\s+/)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
@@ -21034,7 +21028,7 @@ var init_mergeVariants_native = __esmMin((() => {
21034
21028
  init_types_native();
21035
21029
  init_isObj_native();
21036
21030
  init_objectSpread2();
21037
- mergeVariants = function(parentVariants, ourVariants) {
21031
+ mergeVariants = function mergeVariants1(parentVariants, ourVariants) {
21038
21032
  var level = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
21039
21033
  if (!ourVariants) return parentVariants || {};
21040
21034
  if (!parentVariants) return ourVariants || {};
@@ -21068,12 +21062,11 @@ function resolveSelection(state, variants, key, value, parentKey, condition) {
21068
21062
  if (!isObj(output)) return;
21069
21063
  var originals = styleOriginalValues.get(output);
21070
21064
  for (var outputKey in output) {
21065
+ var _ref;
21071
21066
  if (!state.styleProps.noSkip && outputKey in skipProps) continue;
21072
21067
  var raw = output[outputKey];
21073
21068
  if (raw == null) continue;
21074
- var _$value = state.styleProps.noNormalize ? raw : normalizeValueWithProperty(raw, state.conf.shorthands[outputKey] || outputKey);
21075
- var _originals_outputKey;
21076
- emitVariantStyle(state, outputKey, _$value, (_originals_outputKey = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _originals_outputKey !== void 0 ? _originals_outputKey : raw, condition, parentKey === key && outputKey === key);
21069
+ emitVariantStyle(state, outputKey, state.styleProps.noNormalize ? raw : normalizeValueWithProperty(raw, state.conf.shorthands[outputKey] || outputKey), (_ref = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _ref !== void 0 ? _ref : raw, condition, parentKey === key && outputKey === key);
21077
21070
  }
21078
21071
  }
21079
21072
  var init_resolveVariantStyle_native = __esmMin((() => {
@@ -21139,7 +21132,8 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
21139
21132
  var reactNativeConfig = !parentStaticConfig ? getReactNativeConfig(Component) : void 0;
21140
21133
  var resolvedIsReactNative = Boolean(reactNativeConfig || isReactNative);
21141
21134
  var component = createComponent((function() {
21142
- var _ref = options || {}, { variants, displayName: _displayName, defaultVariants, context, contextProps } = _ref, defaultProps = _objectWithoutProperties(_ref, _excluded$2);
21135
+ var _ref;
21136
+ var _ref2 = options || {}, { variants, displayName: _displayName, defaultVariants, context, contextProps } = _ref2, defaultProps = _objectWithoutProperties(_ref2, _excluded$2);
21143
21137
  var parentDefaultVariants;
21144
21138
  var parentDefaultProps;
21145
21139
  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);
@@ -21170,8 +21164,7 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
21170
21164
  var isInput = Boolean((config === null || config === void 0 ? void 0 : config.isInput) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isInput));
21171
21165
  var isText = Boolean((config === null || config === void 0 ? void 0 : config.isText) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isText));
21172
21166
  var validStyles = (config === null || config === void 0 ? void 0 : config.validStyles) || ((config === null || config === void 0 ? void 0 : config.isInput) ? stylePropsInput : (config === null || config === void 0 ? void 0 : config.isText) ? stylePropsText : parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.validStyles);
21173
- var _config_acceptsClassName;
21174
- 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);
21167
+ var acceptsClassName = (_ref = config === null || config === void 0 ? void 0 : config.acceptsClassName) !== null && _ref !== void 0 ? _ref : isPlainStyledComponent || resolvedIsReactNative || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.acceptsClassName);
21175
21168
  var conf = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, parentStaticConfig), config), !isPlainStyledComponent && { Component }), {}, {
21176
21169
  variants,
21177
21170
  baseClassName: mergedBaseClassName,
@@ -21237,7 +21230,7 @@ var useIsTouchDevice;
21237
21230
  var init_useIsTouchDevice_native = __esmMin((() => {
21238
21231
  init_index_native$6();
21239
21232
  init_index_native$2();
21240
- useIsTouchDevice = function() {
21233
+ useIsTouchDevice = function useIsTouchDevice2() {
21241
21234
  return true;
21242
21235
  };
21243
21236
  }));
@@ -21259,13 +21252,13 @@ function useAnimatedNumber(initial) {
21259
21252
  var useAnimatedNumberStyle, useAnimatedNumbersStyle, useAnimatedNumberReaction;
21260
21253
  var init_useAnimationDriver_native = __esmMin((() => {
21261
21254
  init_ComponentContext_native();
21262
- useAnimatedNumberStyle = function(value, getStyle) {
21255
+ useAnimatedNumberStyle = function useAnimatedNumberStyle2(value, getStyle) {
21263
21256
  return useAnimatedNumberDriver().useAnimatedNumberStyle(value, getStyle);
21264
21257
  };
21265
- useAnimatedNumbersStyle = function(values, getStyle) {
21258
+ useAnimatedNumbersStyle = function useAnimatedNumbersStyle2(values, getStyle) {
21266
21259
  return useAnimatedNumberDriver().useAnimatedNumbersStyle(values, getStyle);
21267
21260
  };
21268
- useAnimatedNumberReaction = function(opts, onValue) {
21261
+ useAnimatedNumberReaction = function useAnimatedNumberReaction2(opts, onValue) {
21269
21262
  return useAnimatedNumberDriver().useAnimatedNumberReaction(opts, onValue);
21270
21263
  };
21271
21264
  }));
@@ -21281,7 +21274,7 @@ var init_useThemeName_native = __esmMin((() => {
21281
21274
  forceUpdateState = {
21282
21275
  forceClassName: true,
21283
21276
  deopt: true,
21284
- needsUpdate: function() {
21277
+ needsUpdate: function needsUpdate() {
21285
21278
  return true;
21286
21279
  }
21287
21280
  };
@@ -21380,11 +21373,11 @@ var init_domEventProps_native = __esmMin((() => {
21380
21373
  //#region ../web/dist/esm/dom/adapters.native.js
21381
21374
  var noop, returnFalse, clickFromPress, changeFromText, inputFromText, keyFromKeyPress, loadFromImage, errorFromImage, textEntryChange;
21382
21375
  var init_adapters_native = __esmMin((() => {
21383
- noop = function() {};
21384
- returnFalse = function() {
21376
+ noop = function noop2() {};
21377
+ returnFalse = function returnFalse2() {
21385
21378
  return false;
21386
21379
  };
21387
- clickFromPress = function(onClick) {
21380
+ clickFromPress = function clickFromPress2(onClick) {
21388
21381
  return function(event) {
21389
21382
  var _event_nativeEvent_pageX, _event_nativeEvent_pageY;
21390
21383
  onClick({
@@ -21403,7 +21396,7 @@ var init_adapters_native = __esmMin((() => {
21403
21396
  });
21404
21397
  };
21405
21398
  };
21406
- changeFromText = function(onChange) {
21399
+ changeFromText = function changeFromText2(onChange) {
21407
21400
  return function(event) {
21408
21401
  var _event_nativeEvent_text;
21409
21402
  onChange({
@@ -21412,7 +21405,7 @@ var init_adapters_native = __esmMin((() => {
21412
21405
  });
21413
21406
  };
21414
21407
  };
21415
- inputFromText = function(onInput) {
21408
+ inputFromText = function inputFromText2(onInput) {
21416
21409
  return function(event) {
21417
21410
  var _event_nativeEvent_text;
21418
21411
  onInput({
@@ -21421,7 +21414,7 @@ var init_adapters_native = __esmMin((() => {
21421
21414
  });
21422
21415
  };
21423
21416
  };
21424
- keyFromKeyPress = function(onKeyDown) {
21417
+ keyFromKeyPress = function keyFromKeyPress2(onKeyDown) {
21425
21418
  return function(event) {
21426
21419
  var _event_nativeEvent_key;
21427
21420
  onKeyDown({
@@ -21430,7 +21423,7 @@ var init_adapters_native = __esmMin((() => {
21430
21423
  });
21431
21424
  };
21432
21425
  };
21433
- loadFromImage = function(onLoad) {
21426
+ loadFromImage = function loadFromImage2(onLoad) {
21434
21427
  return function(event) {
21435
21428
  var source = event.nativeEvent.source;
21436
21429
  onLoad({
@@ -21442,12 +21435,12 @@ var init_adapters_native = __esmMin((() => {
21442
21435
  });
21443
21436
  };
21444
21437
  };
21445
- errorFromImage = function(onError) {
21438
+ errorFromImage = function errorFromImage2(onError) {
21446
21439
  return function() {
21447
21440
  onError({ type: "error" });
21448
21441
  };
21449
21442
  };
21450
- textEntryChange = function(onChange, onInput) {
21443
+ textEntryChange = function textEntryChange2(onChange, onInput) {
21451
21444
  if (!onChange) return onInput && inputFromText(onInput);
21452
21445
  if (!onInput) return changeFromText(onChange);
21453
21446
  return function(event) {
@@ -21474,7 +21467,7 @@ function assignRef(ref, value) {
21474
21467
  else if (ref) ref.current = value;
21475
21468
  }
21476
21469
  function scaledRect(rect, scale) {
21477
- var value = function(name) {
21470
+ var value = function value2(name) {
21478
21471
  return typeof rect[name] === "number" ? rect[name] / scale : rect[name];
21479
21472
  };
21480
21473
  var DOMRectConstructor = globalThis.DOMRect;
@@ -21540,7 +21533,7 @@ function facadeFor(instance, tag, viewportScale) {
21540
21533
  var property = _step.value;
21541
21534
  if (property in host) Object.defineProperty(facade, property, {
21542
21535
  configurable: true,
21543
- get: function() {
21536
+ get: function get() {
21544
21537
  return typeof host[property] === "number" ? host[property] / viewportScale : host[property];
21545
21538
  }
21546
21539
  });
@@ -21560,7 +21553,7 @@ function facadeFor(instance, tag, viewportScale) {
21560
21553
  if (tag === "img") Object.defineProperty(facade, "complete", {
21561
21554
  configurable: true,
21562
21555
  enumerable: true,
21563
- get: function() {
21556
+ get: function get() {
21564
21557
  var _host_complete;
21565
21558
  return (_host_complete = host.complete) !== null && _host_complete !== void 0 ? _host_complete : false;
21566
21559
  }
@@ -21571,13 +21564,13 @@ function facadeFor(instance, tag, viewportScale) {
21571
21564
  Object.defineProperties(facade, _objectSpread2({
21572
21565
  selectionStart: {
21573
21566
  enumerable: true,
21574
- get: function() {
21567
+ get: function get() {
21575
21568
  return selectionStart;
21576
21569
  }
21577
21570
  },
21578
21571
  selectionEnd: {
21579
21572
  enumerable: true,
21580
- get: function() {
21573
+ get: function get() {
21581
21574
  return selectionEnd;
21582
21575
  }
21583
21576
  }
@@ -21613,14 +21606,14 @@ function createDOMRefCallback(ref, tag, viewportScale) {
21613
21606
  var callback = byTag.get(cacheKey);
21614
21607
  if (!callback) {
21615
21608
  var release;
21616
- callback = function(instance) {
21609
+ callback = function callback2(instance) {
21617
21610
  if (!instance) {
21618
21611
  if (release) return release();
21619
21612
  return assignRef(ref, null);
21620
21613
  }
21621
21614
  release === null || release === void 0 || release();
21622
21615
  var cleanup = assignRef(ref, facadeFor(instance, tag, viewportScale));
21623
- var currentRelease = function() {
21616
+ var currentRelease = function currentRelease1() {
21624
21617
  if (release !== currentRelease) return;
21625
21618
  release = void 0;
21626
21619
  if (typeof cleanup === "function") cleanup();
@@ -21741,11 +21734,11 @@ function resolvedDOMView(props) {
21741
21734
  }
21742
21735
  function DOMTextWithInheritedStyle(param) {
21743
21736
  var { props } = param;
21737
+ var _context_animationDriver;
21744
21738
  var parent = (0, react.useContext)(inheritedTextStyleContext);
21745
21739
  var context = (0, react.useContext)(ComponentContext);
21746
21740
  var value = resolveInheritedTextStyle([props.style, props.__inheritedStyles], parent, context, props.__textMetrics);
21747
21741
  var content = renderDOMText(_objectSpread2(_objectSpread2({}, props), {}, { style: [props.style, value.style] }));
21748
- var _context_animationDriver;
21749
21742
  var driver = context.animatedText && ((_context_animationDriver = context.animationDriver) !== null && _context_animationDriver !== void 0 ? _context_animationDriver : getConfig().animations);
21750
21743
  if (value.metrics.inheritsFontSize && context.animatedText && (driver === null || driver === void 0 ? void 0 : driver.useTextMetrics)) content = (0, react_jsx_runtime.jsx)(NativeTextBinding, {
21751
21744
  element: content,
@@ -21769,11 +21762,11 @@ function resolvedDOMText(props) {
21769
21762
  }
21770
21763
  function DOMTextInputWithInheritedStyle(param) {
21771
21764
  var { props } = param;
21765
+ var _context_animationDriver;
21772
21766
  var parent = (0, react.useContext)(inheritedTextStyleContext);
21773
21767
  var context = (0, react.useContext)(ComponentContext);
21774
21768
  var inherited = resolveInheritedTextStyle([props.style, props.__inheritedStyles], parent, context, props.__textMetrics);
21775
21769
  var resolved = _objectSpread2(_objectSpread2({}, props), {}, { style: [props.style, inherited.style] });
21776
- var _context_animationDriver;
21777
21770
  var driver = context.animatedText && ((_context_animationDriver = context.animationDriver) !== null && _context_animationDriver !== void 0 ? _context_animationDriver : getConfig().animations);
21778
21771
  if (inherited.metrics.inheritsFontSize && context.animatedText && (driver === null || driver === void 0 ? void 0 : driver.useTextMetrics)) return (0, react_jsx_runtime.jsx)(NativeTextBinding, {
21779
21772
  element: renderDOMTextInput(resolved),
@@ -21993,6 +21986,7 @@ function resolveDOMProps(props, tag, spec, tables) {
21993
21986
  var hasInputMode = false;
21994
21987
  var hasRole = false;
21995
21988
  for (var name in props) {
21989
+ var _tables_unsupportedProps_name, _tables_renamed_name;
21996
21990
  var value = props[name];
21997
21991
  if (value === void 0) continue;
21998
21992
  if (name === "display") {
@@ -22040,13 +22034,11 @@ function resolveDOMProps(props, tag, spec, tables) {
22040
22034
  continue;
22041
22035
  }
22042
22036
  if (tables.unsupportedEvents.has(name)) throw new Error(`${name} has no native DOM event equivalent`);
22043
- var _tables_unsupportedProps_name;
22044
22037
  var note = (_tables_unsupportedProps_name = tables.unsupportedProps[name]) !== null && _tables_unsupportedProps_name !== void 0 ? _tables_unsupportedProps_name : name.startsWith("data-") && name !== "data-testid" ? tables.dataPropNote : void 0;
22045
22038
  if (note !== void 0) throw new Error(`${name} is not supported on native html.${tag}: ${note}`);
22046
22039
  if (name === "onKeyDown" && !spec.entry) throw new Error("onKeyDown requires a native text-entry control");
22047
22040
  if (name === "inputMode") hasInputMode = true;
22048
22041
  else if (name === "role") hasRole = true;
22049
- var _tables_renamed_name;
22050
22042
  next[(_tables_renamed_name = tables.renamed[name]) !== null && _tables_renamed_name !== void 0 ? _tables_renamed_name : name] = value;
22051
22043
  }
22052
22044
  if (nested) Object.assign(next, nested);
@@ -22067,7 +22059,7 @@ function resolveDOMProps(props, tag, spec, tables) {
22067
22059
  function createDOMTagFactory(tables) {
22068
22060
  return function domTag(tag, Component) {
22069
22061
  var spec = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
22070
- var Tag = function(props) {
22062
+ var Tag = function Tag2(props) {
22071
22063
  return (0, react_jsx_runtime.jsx)(Component, resolveDOMProps(props, tag, spec, tables));
22072
22064
  };
22073
22065
  Tag.displayName = tag;
@@ -22080,7 +22072,7 @@ function createDOMTagFactory(tables) {
22080
22072
  };
22081
22073
  }
22082
22074
  function unsupportedDOMTag(tag, note) {
22083
- var Tag = function() {
22075
+ var Tag = function Tag2() {
22084
22076
  throw new Error(`html.${tag} is not supported on native: ${note}`);
22085
22077
  };
22086
22078
  Tag.displayName = tag;
@@ -22222,7 +22214,7 @@ var init_html_native = __esmMin((() => {
22222
22214
  });
22223
22215
  domValidStyles = _objectSpread2(_objectSpread2({}, viewStaticConfig.validStyles), textStaticConfig.validStyles);
22224
22216
  domInputValidStyles = _objectSpread2(_objectSpread2({}, domValidStyles), stylePropsInput);
22225
- primitive = function(component) {
22217
+ primitive = function primitive2(component) {
22226
22218
  return component;
22227
22219
  };
22228
22220
  html = {
@@ -22935,9 +22927,9 @@ var init_Configuration_native = __esmMin((() => {
22935
22927
  init_index_native$2();
22936
22928
  init_ComponentContext_native();
22937
22929
  init_objectSpread2();
22938
- Configuration = function(props) {
22939
- var current = react.default.useContext(ComponentContext);
22930
+ Configuration = function Configuration2(props) {
22940
22931
  var _props_disableSSR;
22932
+ var current = react.default.useContext(ComponentContext);
22941
22933
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClientOnly, {
22942
22934
  enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
22943
22935
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComponentContext.Provider, _objectSpread2(_objectSpread2({}, current), props))
@@ -22988,7 +22980,7 @@ var ThemeProvider;
22988
22980
  var init_ThemeProvider_native = __esmMin((() => {
22989
22981
  init_config_native();
22990
22982
  init_Theme_native();
22991
- ThemeProvider = function(props) {
22983
+ ThemeProvider = function ThemeProvider2(props) {
22992
22984
  "use no memo";
22993
22985
  var addThemeClassName = props.isSubtreeRoot ? false : getSetting("addThemeClassName");
22994
22986
  var forceClassName = props.isSubtreeRoot || addThemeClassName === void 0;
@@ -23095,7 +23087,7 @@ function useEvent(callback) {
23095
23087
  var defaultValue;
23096
23088
  var init_useEvent_native = __esmMin((() => {
23097
23089
  init_useGet_native();
23098
- defaultValue = function() {
23090
+ defaultValue = function defaultValue2() {
23099
23091
  throw new Error("Cannot call an event handler while rendering.");
23100
23092
  };
23101
23093
  }));
@@ -23577,7 +23569,7 @@ var NativeMediaQueryList = /* @__PURE__ */ (function() {
23577
23569
  })();
23578
23570
  //#endregion
23579
23571
  //#region ../react-native-media-driver/dist/esm/matchMedia.native.js
23580
- var matchMedia$1 = function(query) {
23572
+ var matchMedia$1 = function matchMedia2(query) {
23581
23573
  return new NativeMediaQueryList(query);
23582
23574
  };
23583
23575
  //#endregion