tamagui 1.72.0 → 1.72.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -717,8 +717,8 @@ var require_clamp_native = __commonJS({
717
717
  clamp: () => clamp
718
718
  });
719
719
  module2.exports = __toCommonJS2(clamp_exports);
720
- function clamp(value, [min, max]) {
721
- return Math.min(max, Math.max(min, value));
720
+ function clamp(value, [min2, max2]) {
721
+ return Math.min(max2, Math.max(min2, value));
722
722
  }
723
723
  }
724
724
  });
@@ -3866,8 +3866,8 @@ var require_ThemeManager_native = __commonJS({
3866
3866
  props.reset && isDirectParentAComponentTheme && allComponentThemes.shift();
3867
3867
  let base = parentName.split(import_constants2.THEME_NAME_SEPARATOR), lastSegment = base[base.length - 1], isParentComponentTheme = parentName && lastSegment[0].toUpperCase() === lastSegment[0];
3868
3868
  isParentComponentTheme && base.pop();
3869
- let parentBaseTheme = isParentComponentTheme ? base.slice(0, base.length).join(import_constants2.THEME_NAME_SEPARATOR) : parentName, max = base.length, min = componentName && !nextName ? max : 0;
3870
- for (let i = max; i >= min; i--) {
3869
+ let parentBaseTheme = isParentComponentTheme ? base.slice(0, base.length).join(import_constants2.THEME_NAME_SEPARATOR) : parentName, max2 = base.length, min2 = componentName && !nextName ? max2 : 0;
3870
+ for (let i = max2; i >= min2; i--) {
3871
3871
  let prefix = base.slice(0, i).join(import_constants2.THEME_NAME_SEPARATOR);
3872
3872
  props.inverse && (prefix = inverseThemeName(prefix));
3873
3873
  let potentials = [];
@@ -4735,9 +4735,9 @@ var require_createComponent_native = __commonJS({
4735
4735
  },
4736
4736
  variants: {
4737
4737
  size: {
4738
- "...size": (size, { tokens }) => {
4739
- size = size === !0 ? "$true" : size;
4740
- let sizePx = tokens.space[size] ?? size;
4738
+ "...size": (size2, { tokens }) => {
4739
+ size2 = size2 === !0 ? "$true" : size2;
4740
+ let sizePx = tokens.space[size2] ?? size2;
4741
4741
  return {
4742
4742
  width: sizePx,
4743
4743
  height: sizePx,
@@ -5811,13 +5811,13 @@ var require_useProps_native = __commonJS({
5811
5811
  }, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), useProps_exports = {};
5812
5812
  __export2(useProps_exports, {
5813
5813
  useProps: () => useProps2,
5814
- usePropsAndStyle: () => usePropsAndStyle,
5814
+ usePropsAndStyle: () => usePropsAndStyle2,
5815
5815
  useStyle: () => useStyle2
5816
5816
  });
5817
5817
  module2.exports = __toCommonJS2(useProps_exports);
5818
5818
  var import_react2 = require("react"), import_ComponentContext = require_ComponentContext_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_Stack = require_Stack_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native();
5819
5819
  function useProps2(props, opts) {
5820
- let [propsOut, styleOut] = usePropsAndStyle(props, {
5820
+ let [propsOut, styleOut] = usePropsAndStyle2(props, {
5821
5821
  ...opts,
5822
5822
  noExpand: !0,
5823
5823
  noNormalize: !0,
@@ -5829,9 +5829,9 @@ var require_useProps_native = __commonJS({
5829
5829
  };
5830
5830
  }
5831
5831
  function useStyle2(props, opts) {
5832
- return usePropsAndStyle(props, opts)[1];
5832
+ return usePropsAndStyle2(props, opts)[1];
5833
5833
  }
5834
- function usePropsAndStyle(props, opts) {
5834
+ function usePropsAndStyle2(props, opts) {
5835
5835
  var _a;
5836
5836
  let staticConfig = ((_a = opts == null ? void 0 : opts.forComponent) == null ? void 0 : _a.staticConfig) ?? import_Stack.Stack.staticConfig, [themeState, theme] = (0, import_useTheme.useThemeWithState)({
5837
5837
  componentName: staticConfig.componentName
@@ -6231,45 +6231,6 @@ var require_index_native9 = __commonJS({
6231
6231
  }
6232
6232
  });
6233
6233
 
6234
- // ../fake-react-native/index.js
6235
- var require_fake_react_native = __commonJS({
6236
- "../fake-react-native/index.js"(exports, module2) {
6237
- module2.exports = proxyWorm();
6238
- function proxyWorm() {
6239
- return new Proxy(
6240
- {
6241
- StyleSheet: {
6242
- create() {
6243
- }
6244
- },
6245
- Platform: {
6246
- OS: "web"
6247
- },
6248
- Image: "Image",
6249
- View: "View",
6250
- Text: "Text",
6251
- TextInput: "TextInput",
6252
- ScrollView: "ScrollView",
6253
- Dimensions: {
6254
- addEventListener(cb) {
6255
- }
6256
- },
6257
- addPoolingTo() {
6258
- }
6259
- },
6260
- {
6261
- get(target, key) {
6262
- return Reflect.get(target, key) || proxyWorm();
6263
- },
6264
- apply() {
6265
- return proxyWorm();
6266
- }
6267
- }
6268
- );
6269
- }
6270
- }
6271
- });
6272
-
6273
6234
  // ../core/dist/cjs/getBaseViews.native.js
6274
6235
  var require_getBaseViews_native = __commonJS({
6275
6236
  "../core/dist/cjs/getBaseViews.native.js"(exports, module2) {
@@ -6288,7 +6249,7 @@ var require_getBaseViews_native = __commonJS({
6288
6249
  });
6289
6250
  module2.exports = __toCommonJS2(getBaseViews_native_exports);
6290
6251
  function getBaseViews() {
6291
- let native = require_fake_react_native();
6252
+ let native = require("react-native");
6292
6253
  return {
6293
6254
  View: native.View || native.default.View,
6294
6255
  Text: native.Text || native.default.Text
@@ -6437,6 +6398,45 @@ var require_usePlatformMethods_native = __commonJS({
6437
6398
  }
6438
6399
  });
6439
6400
 
6401
+ // ../fake-react-native/index.js
6402
+ var require_fake_react_native = __commonJS({
6403
+ "../fake-react-native/index.js"(exports, module2) {
6404
+ module2.exports = proxyWorm();
6405
+ function proxyWorm() {
6406
+ return new Proxy(
6407
+ {
6408
+ StyleSheet: {
6409
+ create() {
6410
+ }
6411
+ },
6412
+ Platform: {
6413
+ OS: "web"
6414
+ },
6415
+ Image: "Image",
6416
+ View: "View",
6417
+ Text: "Text",
6418
+ TextInput: "TextInput",
6419
+ ScrollView: "ScrollView",
6420
+ Dimensions: {
6421
+ addEventListener(cb) {
6422
+ }
6423
+ },
6424
+ addPoolingTo() {
6425
+ }
6426
+ },
6427
+ {
6428
+ get(target, key) {
6429
+ return Reflect.get(target, key) || proxyWorm();
6430
+ },
6431
+ apply() {
6432
+ return proxyWorm();
6433
+ }
6434
+ }
6435
+ );
6436
+ }
6437
+ }
6438
+ });
6439
+
6440
6440
  // ../fake-react-native/idFn.js
6441
6441
  var idFn_exports = {};
6442
6442
  __export(idFn_exports, {
@@ -7239,10 +7239,10 @@ var require_getElevation_native = __commonJS({
7239
7239
  getSizedElevation: () => getSizedElevation
7240
7240
  });
7241
7241
  module2.exports = __toCommonJS2(getElevation_exports);
7242
- var import_core12 = require_index_native10(), getElevation = (size, extras) => {
7243
- if (!size)
7242
+ var import_core12 = require_index_native10(), getElevation = (size2, extras) => {
7243
+ if (!size2)
7244
7244
  return;
7245
- let { tokens } = extras, token = tokens.size[size], sizeNum = (0, import_core12.isVariable)(token) ? +token.val : size;
7245
+ let { tokens } = extras, token = tokens.size[size2], sizeNum = (0, import_core12.isVariable)(token) ? +token.val : size2;
7246
7246
  return getSizedElevation(sizeNum, extras);
7247
7247
  }, getSizedElevation = (val, { theme, tokens }) => {
7248
7248
  let num = 0;
@@ -7342,7 +7342,7 @@ var require_index_native17 = __commonJS({
7342
7342
  var import_web = require_index_native9(), import_web2 = require_index_native9(), defaultOptions = {
7343
7343
  shift: 0,
7344
7344
  bounds: [0]
7345
- }, getSize = (size, options) => getTokenRelative("size", size, options), getSpace2 = (space, options) => getTokenRelative("space", space, options), getRadius = (radius, options) => getTokenRelative("radius", radius, options), cacheVariables = {}, cacheWholeVariables = {}, cacheKeys = {}, cacheWholeKeys = {}, stepTokenUpOrDown = (type, current, options = defaultOptions) => {
7345
+ }, getSize = (size2, options) => getTokenRelative("size", size2, options), getSpace2 = (space, options) => getTokenRelative("space", space, options), getRadius = (radius, options) => getTokenRelative("radius", radius, options), cacheVariables = {}, cacheWholeVariables = {}, cacheKeys = {}, cacheWholeKeys = {}, stepTokenUpOrDown = (type, current, options = defaultOptions) => {
7346
7346
  var _a, _b;
7347
7347
  let tokens = (0, import_web2.getTokens)({ prefixed: !0 })[type];
7348
7348
  if (!(type in cacheVariables)) {
@@ -7354,9 +7354,9 @@ var require_index_native17 = __commonJS({
7354
7354
  for (let token of sortedExcludingHalfSteps)
7355
7355
  cacheWholeKeys[type].push(token.key), cacheWholeVariables[type].push(token);
7356
7356
  }
7357
- let isString = typeof current == "string", tokensOrdered = (options.excludeHalfSteps ? isString ? cacheWholeKeys : cacheWholeVariables : isString ? cacheKeys : cacheVariables)[type], min = ((_a = options.bounds) == null ? void 0 : _a[0]) ?? 0, max = ((_b = options.bounds) == null ? void 0 : _b[1]) ?? tokensOrdered.length - 1, currentIndex = tokensOrdered.indexOf(current), shift = options.shift || 0;
7358
- shift && (current === "$true" || (0, import_web.isVariable)(current) && current.name === "true") && (shift += shift > 0 ? 1 : -1);
7359
- let index = Math.min(max, Math.max(min, currentIndex + shift)), found = tokensOrdered[index];
7357
+ let isString = typeof current == "string", tokensOrdered = (options.excludeHalfSteps ? isString ? cacheWholeKeys : cacheWholeVariables : isString ? cacheKeys : cacheVariables)[type], min2 = ((_a = options.bounds) == null ? void 0 : _a[0]) ?? 0, max2 = ((_b = options.bounds) == null ? void 0 : _b[1]) ?? tokensOrdered.length - 1, currentIndex = tokensOrdered.indexOf(current), shift2 = options.shift || 0;
7358
+ shift2 && (current === "$true" || (0, import_web.isVariable)(current) && current.name === "true") && (shift2 += shift2 > 0 ? 1 : -1);
7359
+ let index = Math.min(max2, Math.max(min2, currentIndex + shift2)), found = tokensOrdered[index];
7360
7360
  return (typeof found == "string" ? tokens[found] : found) || tokens.$true;
7361
7361
  }, getTokenRelative = stepTokenUpOrDown;
7362
7362
  }
@@ -7464,15 +7464,15 @@ var require_variants_native = __commonJS({
7464
7464
  true: (_, { props, tokens }) => {
7465
7465
  if (!("size" in props))
7466
7466
  return circularStyle;
7467
- let size = tokens.size[props.size];
7467
+ let size2 = tokens.size[props.size];
7468
7468
  return {
7469
7469
  ...circularStyle,
7470
- width: size,
7471
- height: size,
7472
- maxWidth: size,
7473
- maxHeight: size,
7474
- minWidth: size,
7475
- minHeight: size
7470
+ width: size2,
7471
+ height: size2,
7472
+ maxWidth: size2,
7473
+ maxHeight: size2,
7474
+ minWidth: size2,
7475
+ minHeight: size2
7476
7476
  };
7477
7477
  }
7478
7478
  }, hoverTheme = {
@@ -7694,8 +7694,8 @@ var require_SizableText_native = __commonJS({
7694
7694
  };
7695
7695
  variants.fontFamily = {
7696
7696
  "...": (_, extras) => {
7697
- let size = extras.props.size || "$true";
7698
- return (0, import_get_font_sized2.getFontSized)(size, extras);
7697
+ let size2 = extras.props.size || "$true";
7698
+ return (0, import_get_font_sized2.getFontSized)(size2, extras);
7699
7699
  }
7700
7700
  };
7701
7701
  var SizableText2 = (0, import_web.styled)(import_web.Text, {
@@ -7826,7 +7826,7 @@ var require_wrapChildrenInText_native = __commonJS({
7826
7826
  let {
7827
7827
  children,
7828
7828
  textProps,
7829
- size,
7829
+ size: size2,
7830
7830
  noTextWrap,
7831
7831
  color,
7832
7832
  fontFamily,
@@ -7842,7 +7842,7 @@ var require_wrapChildrenInText_native = __commonJS({
7842
7842
  let props = {
7843
7843
  ...extraProps
7844
7844
  };
7845
- return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), import_react2.default.Children.toArray(children).map((child, index) => typeof child == "string" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TextComponent, { ...props, ...textProps, children: child }, index) : child);
7845
+ return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size2 && (props.size = size2), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), import_react2.default.Children.toArray(children).map((child, index) => typeof child == "string" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TextComponent, { ...props, ...textProps, children: child }, index) : child);
7846
7846
  }
7847
7847
  }
7848
7848
  });
@@ -8743,8 +8743,8 @@ var require_Portal_native = __commonJS({
8743
8743
  Portal: () => Portal
8744
8744
  });
8745
8745
  module2.exports = __toCommonJS2(Portal_native_exports);
8746
- var import_stacks3 = require_index_native19(), React2 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_GorhomPortal = require_GorhomPortal_native(), import_jsx_runtime6 = require("react/jsx-runtime"), isFabric = global == null ? void 0 : global.nativeFabricUIManager, createPortal;
8747
- isFabric ? createPortal = require_fake_react_native().createPortal : createPortal = require_fake_react_native().createPortal;
8746
+ var import_stacks3 = require_index_native19(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_GorhomPortal = require_GorhomPortal_native(), import_jsx_runtime6 = require("react/jsx-runtime"), isFabric = global == null ? void 0 : global.nativeFabricUIManager, createPortal;
8747
+ isFabric ? createPortal = require("react-native/Libraries/Renderer/shims/ReactFabric").createPortal : createPortal = require("react-native/Libraries/Renderer/shims/ReactNative").createPortal;
8748
8748
  var Portal = (props) => {
8749
8749
  let rootTag = React2.useContext(import_react_native4.RootTagContext), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
8750
8750
  import_stacks3.YStack,
@@ -9086,7 +9086,7 @@ var require_nativeSheet_native = __commonJS({
9086
9086
  setupNativeSheet: () => setupNativeSheet2
9087
9087
  });
9088
9088
  module2.exports = __toCommonJS2(nativeSheet_exports);
9089
- var import_stacks3 = require_index_native19(), import_react2 = require("react"), import_react_native4 = require_fake_react_native(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), import_jsx_runtime6 = require("react/jsx-runtime"), nativeSheets = {
9089
+ var import_stacks3 = require_index_native19(), import_react2 = require("react"), import_react_native4 = require("react-native"), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), import_jsx_runtime6 = require("react/jsx-runtime"), nativeSheets = {
9090
9090
  ios: null
9091
9091
  };
9092
9092
  function getNativeSheet(platform) {
@@ -9134,7 +9134,7 @@ var require_useKeyboardVisible_native = __commonJS({
9134
9134
  useKeyboardVisible: () => useKeyboardVisible2
9135
9135
  });
9136
9136
  module2.exports = __toCommonJS2(useKeyboardVisible_exports);
9137
- var import_react2 = require("react"), import_react_native4 = require_fake_react_native(), useKeyboardVisible2 = () => {
9137
+ var import_react2 = require("react"), import_react_native4 = require("react-native"), useKeyboardVisible2 = () => {
9138
9138
  let [isKeyboardVisible, setKeyboardVisible] = (0, import_react2.useState)(!1);
9139
9139
  return (0, import_react2.useEffect)(() => {
9140
9140
  let keyboardDidShowListener = import_react_native4.Keyboard.addListener("keyboardDidShow", () => {
@@ -9239,7 +9239,7 @@ var require_SheetImplementationCustom_native = __commonJS({
9239
9239
  SheetImplementationCustom: () => SheetImplementationCustom
9240
9240
  });
9241
9241
  module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
9242
- var import_adapt = require_index_native24(), import_animate_presence = require_index_native13(), import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_portal2 = require_index_native29(), import_use_keyboard_visible = require_index_native32(), import_react2 = require("react"), import_react_native4 = require_fake_react_native(), import_constants = require_constants_native2(), import_contexts = require_contexts_native(), import_helpers = require_helpers_native(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), import_jsx_runtime6 = require("react/jsx-runtime"), hiddenSize = 10000.1, SheetImplementationCustom = (0, import_core12.themeable)(
9242
+ var import_adapt = require_index_native24(), import_animate_presence = require_index_native13(), import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_portal2 = require_index_native29(), import_use_keyboard_visible = require_index_native32(), import_react2 = require("react"), import_react_native4 = require("react-native"), import_constants = require_constants_native2(), import_contexts = require_contexts_native(), import_helpers = require_helpers_native(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), import_jsx_runtime6 = require("react/jsx-runtime"), hiddenSize = 10000.1, SheetImplementationCustom = (0, import_core12.themeable)(
9243
9243
  (0, import_react2.forwardRef)(function(props, forwardedRef) {
9244
9244
  let parentSheet = (0, import_react2.useContext)(import_contexts.ParentSheetContext), {
9245
9245
  animation,
@@ -9508,7 +9508,7 @@ var require_ScrollView_native = __commonJS({
9508
9508
  ScrollView: () => ScrollView
9509
9509
  });
9510
9510
  module2.exports = __toCommonJS2(ScrollView_exports);
9511
- var import_stacks3 = require_index_native19(), import_web = require_index_native9(), import_react_native4 = require_fake_react_native();
9511
+ var import_stacks3 = require_index_native19(), import_web = require_index_native9(), import_react_native4 = require("react-native");
9512
9512
  (0, import_web.setupReactNative)({
9513
9513
  ScrollView: import_react_native4.ScrollView
9514
9514
  });
@@ -9662,7 +9662,7 @@ var require_createSheet_native = __commonJS({
9662
9662
  createSheet: () => createSheet
9663
9663
  });
9664
9664
  module2.exports = __toCommonJS2(createSheet_exports);
9665
- var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_remove_scroll = require_index_native30(), import_react2 = require("react"), import_react_native4 = require_fake_react_native(), import_constants = require_constants_native2(), import_nativeSheet = require_nativeSheet_native(), import_SheetContext = require_SheetContext_native(), import_SheetImplementationCustom = require_SheetImplementationCustom_native(), import_SheetScrollView = require_SheetScrollView_native(), import_useSheetController = require_useSheetController_native(), import_useSheetOffscreenSize = require_useSheetOffscreenSize_native(), import_jsx_runtime6 = (
9665
+ var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_remove_scroll = require_index_native30(), import_react2 = require("react"), import_react_native4 = require("react-native"), import_constants = require_constants_native2(), import_nativeSheet = require_nativeSheet_native(), import_SheetContext = require_SheetContext_native(), import_SheetImplementationCustom = require_SheetImplementationCustom_native(), import_SheetScrollView = require_SheetScrollView_native(), import_useSheetController = require_useSheetController_native(), import_useSheetOffscreenSize = require_useSheetOffscreenSize_native(), import_jsx_runtime6 = (
9666
9666
  // @ts-ignore
9667
9667
  require("react/jsx-runtime")
9668
9668
  );
@@ -9674,7 +9674,7 @@ var require_createSheet_native = __commonJS({
9674
9674
  Handle,
9675
9675
  {
9676
9676
  onPress: () => {
9677
- let max = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0), nextPos = (context.position + 1) % max;
9677
+ let max2 = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0), nextPos = (context.position + 1) % max2;
9678
9678
  context.setPosition(nextPos);
9679
9679
  },
9680
9680
  open: context.open,
@@ -10491,7 +10491,7 @@ var require_AlertDialog_native = __commonJS({
10491
10491
  createAlertDialogScope: () => createAlertDialogScope
10492
10492
  });
10493
10493
  module2.exports = __toCommonJS2(AlertDialog_exports);
10494
- var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_create_context = require_index_native25(), import_dialog = require_index_native35(), import_use_controllable_state = require_index_native14(), React2 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_jsx_runtime6 = require("react/jsx-runtime"), ROOT_NAME = "AlertDialog", [createAlertDialogContext, createAlertDialogScope] = (0, import_create_context.createContextScope)(ROOT_NAME, [
10494
+ var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_create_context = require_index_native25(), import_dialog = require_index_native35(), import_use_controllable_state = require_index_native14(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_jsx_runtime6 = require("react/jsx-runtime"), ROOT_NAME = "AlertDialog", [createAlertDialogContext, createAlertDialogScope] = (0, import_create_context.createContextScope)(ROOT_NAME, [
10495
10495
  import_dialog.createDialogScope
10496
10496
  ]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
10497
10497
  name: TRIGGER_NAME
@@ -10694,7 +10694,7 @@ var require_Image_native = __commonJS({
10694
10694
  Image: () => Image
10695
10695
  });
10696
10696
  module2.exports = __toCommonJS2(Image_exports);
10697
- var import_core12 = require_index_native10(), import_react2 = require("react"), import_react_native4 = require_fake_react_native(), import_jsx_runtime6 = require("react/jsx-runtime");
10697
+ var import_core12 = require_index_native10(), import_react2 = require("react"), import_react_native4 = require("react-native"), import_jsx_runtime6 = require("react/jsx-runtime");
10698
10698
  (0, import_core12.setupReactNative)({
10699
10699
  Image: import_react_native4.Image
10700
10700
  });
@@ -10749,8 +10749,8 @@ var require_getShapeSize_native = __commonJS({
10749
10749
  getShapeSize: () => getShapeSize
10750
10750
  });
10751
10751
  module2.exports = __toCommonJS2(getShapeSize_exports);
10752
- var getShapeSize = (size, { tokens }) => {
10753
- let width = tokens.size[size] ?? size, height = tokens.size[size] ?? size;
10752
+ var getShapeSize = (size2, { tokens }) => {
10753
+ let width = tokens.size[size2] ?? size2, height = tokens.size[size2] ?? size2;
10754
10754
  return {
10755
10755
  width,
10756
10756
  height,
@@ -10926,15 +10926,15 @@ var require_Avatar_native = __commonJS({
10926
10926
  }), Avatar = (0, import_core12.withStaticProperties)(
10927
10927
  React2.forwardRef(
10928
10928
  (props, forwardedRef) => {
10929
- let { __scopeAvatar, size = "$true", ...avatarProps } = props, [imageLoadingStatus, setImageLoadingStatus] = React2.useState("idle");
10929
+ let { __scopeAvatar, size: size2 = "$true", ...avatarProps } = props, [imageLoadingStatus, setImageLoadingStatus] = React2.useState("idle");
10930
10930
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
10931
10931
  AvatarProvider,
10932
10932
  {
10933
- size,
10933
+ size: size2,
10934
10934
  scope: __scopeAvatar,
10935
10935
  imageLoadingStatus,
10936
10936
  onImageLoadingStatusChange: setImageLoadingStatus,
10937
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AvatarFrame, { size, ...avatarProps, ref: forwardedRef })
10937
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AvatarFrame, { size: size2, ...avatarProps, ref: forwardedRef })
10938
10938
  }
10939
10939
  );
10940
10940
  }
@@ -10991,13 +10991,13 @@ var require_getFontSize_native = __commonJS({
10991
10991
  }, getFontSizeToken = (inSize, opts) => {
10992
10992
  if (typeof inSize == "number")
10993
10993
  return null;
10994
- let relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0, fontSize = (0, import_core12.getConfig)().fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size, size = inSize || ("$true" in fontSize ? "$true" : "$4"), sizeTokens = Object.keys(fontSize), foundIndex = sizeTokens.indexOf(size);
10995
- foundIndex === -1 && size.endsWith(".5") && (foundIndex = sizeTokens.indexOf(size.replace(".5", "")));
10994
+ let relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0, fontSize = (0, import_core12.getConfig)().fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size, size2 = inSize || ("$true" in fontSize ? "$true" : "$4"), sizeTokens = Object.keys(fontSize), foundIndex = sizeTokens.indexOf(size2);
10995
+ foundIndex === -1 && size2.endsWith(".5") && (foundIndex = sizeTokens.indexOf(size2.replace(".5", "")));
10996
10996
  let tokenIndex = Math.min(
10997
10997
  Math.max(0, foundIndex + relativeSize),
10998
10998
  sizeTokens.length - 1
10999
10999
  );
11000
- return sizeTokens[tokenIndex] ?? size;
11000
+ return sizeTokens[tokenIndex] ?? size2;
11001
11001
  };
11002
11002
  }
11003
11003
  });
@@ -11212,7 +11212,7 @@ var require_Button_native = __commonJS({
11212
11212
  unstyled: !1
11213
11213
  }
11214
11214
  }), ButtonIcon = (props) => {
11215
- let { children, scaleIcon = 1 } = props, { size, color } = (0, import_react2.useContext)(ButtonContext), iconSize = (typeof size == "number" ? size * 0.5 : (0, import_font_size.getFontSize)(size)) * scaleIcon;
11215
+ let { children, scaleIcon = 1 } = props, { size: size2, color } = (0, import_react2.useContext)(ButtonContext), iconSize = (typeof size2 == "number" ? size2 * 0.5 : (0, import_font_size.getFontSize)(size2)) * scaleIcon;
11216
11216
  return (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color })(children);
11217
11217
  }, ButtonComponent = ButtonFrame.styleable(function(props, ref) {
11218
11218
  let { props: buttonProps } = useButton(props);
@@ -11256,12 +11256,12 @@ var require_Button_native = __commonJS({
11256
11256
  textAlign,
11257
11257
  textProps,
11258
11258
  ...rest
11259
- } = propsIn, isNested = (0, import_react2.useContext)(ButtonNestingContext), propsActive = (0, import_web.useProps)(propsIn), size = propsActive.size || (propsActive.unstyled ? void 0 : "$true"), iconSize = (typeof size == "number" ? size * 0.5 : (0, import_font_size.getFontSize)(size)) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color }), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize = propsActive.space ?? (0, import_web.getVariableValue)(iconSize) * scaleSpace, contents = (0, import_text2.wrapChildrenInText)(
11259
+ } = propsIn, isNested = (0, import_react2.useContext)(ButtonNestingContext), propsActive = (0, import_web.useProps)(propsIn), size2 = propsActive.size || (propsActive.unstyled ? void 0 : "$true"), iconSize = (typeof size2 == "number" ? size2 * 0.5 : (0, import_font_size.getFontSize)(size2)) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color }), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize = propsActive.space ?? (0, import_web.getVariableValue)(iconSize) * scaleSpace, contents = (0, import_text2.wrapChildrenInText)(
11260
11260
  Text3,
11261
11261
  propsActive,
11262
11262
  Text3 === ButtonText && propsIn.unstyled !== !0 ? {
11263
11263
  unstyled: !1,
11264
- size
11264
+ size: size2
11265
11265
  } : void 0
11266
11266
  ), inner = (0, import_web.spacedChildren)({
11267
11267
  // a bit arbitrary but scaling to font size is necessary so long as button does
@@ -11895,7 +11895,7 @@ var require_Checkbox_native = __commonJS({
11895
11895
  (0, import_get_token2.getSize)(propsActive.size ?? (styledContext == null ? void 0 : styledContext.size) ?? "$true", {
11896
11896
  shift: sizeAdjust
11897
11897
  })
11898
- ), size = scaleSize ? Math.round(adjustedSize * scaleSize) : adjustedSize, labelId = (0, import_label.useLabelContext)(button), labelledBy = ariaLabelledby || labelId;
11898
+ ), size2 = scaleSize ? Math.round(adjustedSize * scaleSize) : adjustedSize, labelId = (0, import_label.useLabelContext)(button), labelledBy = ariaLabelledby || labelId;
11899
11899
  return React2.useEffect(() => {
11900
11900
  if (props.id && !disabled)
11901
11901
  return (0, import_focusable2.registerFocusable)(props.id, {
@@ -11921,8 +11921,8 @@ var require_Checkbox_native = __commonJS({
11921
11921
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
11922
11922
  CheckboxFrame,
11923
11923
  {
11924
- width: size,
11925
- height: size,
11924
+ width: size2,
11925
+ height: size2,
11926
11926
  tag: "button",
11927
11927
  role: "checkbox",
11928
11928
  "aria-labelledby": labelledBy,
@@ -12549,7 +12549,7 @@ var require_Group_native = __commonJS({
12549
12549
  useGroupItem: () => useGroupItem
12550
12550
  });
12551
12551
  module2.exports = __toCommonJS2(Group_exports);
12552
- var import_core12 = require_index_native10(), import_create_context = require_index_native25(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), import_react2 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_reforest = require_dist(), import_jsx_runtime6 = require("react/jsx-runtime"), GROUP_NAME = "Group", [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME), [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME), GroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
12552
+ var import_core12 = require_index_native10(), import_create_context = require_index_native25(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), import_react2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_reforest = require_dist(), import_jsx_runtime6 = require("react/jsx-runtime"), GROUP_NAME = "Group", [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME), [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME), GroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
12553
12553
  name: "GroupFrame",
12554
12554
  variants: {
12555
12555
  unstyled: {
@@ -12573,7 +12573,7 @@ var require_Group_native = __commonJS({
12573
12573
  __scopeGroup,
12574
12574
  children: childrenProp,
12575
12575
  space,
12576
- size = "$true",
12576
+ size: size2 = "$true",
12577
12577
  spaceDirection,
12578
12578
  separator,
12579
12579
  scrollable,
@@ -12586,7 +12586,7 @@ var require_Group_native = __commonJS({
12586
12586
  ...restProps
12587
12587
  } = (0, import_core12.getExpandedShorthands)(activeProps), vertical = orientation === "vertical", [itemChildrenCount, setItemChildrenCount] = (0, import_use_controllable_state.useControllableState)({
12588
12588
  defaultProp: forceUseItem ? 1 : 0
12589
- }), isUsingItems = itemChildrenCount > 0, radius = borderRadius ?? (size ? (0, import_core12.getVariableValue)((0, import_core12.getTokens)().radius[size]) - 1 : void 0), disablePassBorderRadius = disablePassBorderRadiusProp ?? radius === void 0, childrenArray = import_react2.Children.toArray(childrenProp), children = isUsingItems ? import_react2.Children.toArray(childrenProp).filter(import_react2.isValidElement) : childrenArray.map((child, i) => {
12589
+ }), isUsingItems = itemChildrenCount > 0, radius = borderRadius ?? (size2 ? (0, import_core12.getVariableValue)((0, import_core12.getTokens)().radius[size2]) - 1 : void 0), disablePassBorderRadius = disablePassBorderRadiusProp ?? radius === void 0, childrenArray = import_react2.Children.toArray(childrenProp), children = isUsingItems ? import_react2.Children.toArray(childrenProp).filter(import_react2.isValidElement) : childrenArray.map((child, i) => {
12590
12590
  if (!(0, import_react2.isValidElement)(child))
12591
12591
  return child;
12592
12592
  let disabled = child.props.disabled ?? disabledProp, isFirst = i === 0, isLast = i === childrenArray.length - 1, radiusStyles = disablePassBorderRadius === !0 ? null : getBorderRadius({
@@ -12629,7 +12629,7 @@ var require_Group_native = __commonJS({
12629
12629
  GroupFrame,
12630
12630
  {
12631
12631
  ref,
12632
- size,
12632
+ size: size2,
12633
12633
  flexDirection: orientation === "horizontal" ? "row" : "column",
12634
12634
  borderRadius,
12635
12635
  ...restProps,
@@ -12868,7 +12868,7 @@ var require_ListItem_native = __commonJS({
12868
12868
  textAlign,
12869
12869
  ellipse,
12870
12870
  children
12871
- }, size = props.size || "$true", iconSize = (0, import_font_size.getFontSize)(size) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color }), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize = (0, import_web.getVariableValue)((0, import_web.getTokens)().space[props.space] ?? iconSize) * scaleSpace, contents = (0, import_text2.wrapChildrenInText)(Text3, textProps);
12871
+ }, size2 = props.size || "$true", iconSize = (0, import_font_size.getFontSize)(size2) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color }), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize = (0, import_web.getVariableValue)((0, import_web.getTokens)().space[props.space] ?? iconSize) * scaleSpace, contents = (0, import_text2.wrapChildrenInText)(Text3, textProps);
12872
12872
  return {
12873
12873
  props: {
12874
12874
  ...rest,
@@ -12878,11 +12878,11 @@ var require_ListItem_native = __commonJS({
12878
12878
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_web.Spacer, { size: spaceSize })
12879
12879
  ] }) : null,
12880
12880
  title || subTitle ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_stacks3.YStack, { flex: 1, children: [
12881
- noTextWrap === "all" ? title : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Title, { size, children: title }),
12881
+ noTextWrap === "all" ? title : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Title, { size: size2, children: title }),
12882
12882
  subTitle ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: typeof subTitle == "string" && noTextWrap !== "all" ? (
12883
12883
  // TODO can use theme but we need to standardize to alt themes
12884
12884
  // or standardize on subtle colors in themes
12885
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Subtitle, { unstyled, size, children: subTitle })
12885
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Subtitle, { unstyled, size: size2, children: subTitle })
12886
12886
  ) : subTitle }) : null,
12887
12887
  contents
12888
12888
  ] }) : contents,
@@ -12980,6 +12980,1054 @@ var require_index_native52 = __commonJS({
12980
12980
  }
12981
12981
  });
12982
12982
 
12983
+ // ../../node_modules/@floating-ui/core/dist/floating-ui.core.esm.js
12984
+ var floating_ui_core_esm_exports = {};
12985
+ __export(floating_ui_core_esm_exports, {
12986
+ arrow: () => arrow,
12987
+ autoPlacement: () => autoPlacement,
12988
+ computePosition: () => computePosition,
12989
+ detectOverflow: () => detectOverflow,
12990
+ flip: () => flip,
12991
+ hide: () => hide,
12992
+ inline: () => inline,
12993
+ limitShift: () => limitShift,
12994
+ offset: () => offset,
12995
+ rectToClientRect: () => rectToClientRect,
12996
+ shift: () => shift,
12997
+ size: () => size
12998
+ });
12999
+ function getAlignment(placement) {
13000
+ return placement.split("-")[1];
13001
+ }
13002
+ function getLengthFromAxis(axis) {
13003
+ return axis === "y" ? "height" : "width";
13004
+ }
13005
+ function getSide(placement) {
13006
+ return placement.split("-")[0];
13007
+ }
13008
+ function getMainAxisFromPlacement(placement) {
13009
+ return ["top", "bottom"].includes(getSide(placement)) ? "x" : "y";
13010
+ }
13011
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
13012
+ let {
13013
+ reference,
13014
+ floating
13015
+ } = _ref, commonX = reference.x + reference.width / 2 - floating.width / 2, commonY = reference.y + reference.height / 2 - floating.height / 2, mainAxis = getMainAxisFromPlacement(placement), length = getLengthFromAxis(mainAxis), commonAlign = reference[length] / 2 - floating[length] / 2, side = getSide(placement), isVertical = mainAxis === "x", coords;
13016
+ switch (side) {
13017
+ case "top":
13018
+ coords = {
13019
+ x: commonX,
13020
+ y: reference.y - floating.height
13021
+ };
13022
+ break;
13023
+ case "bottom":
13024
+ coords = {
13025
+ x: commonX,
13026
+ y: reference.y + reference.height
13027
+ };
13028
+ break;
13029
+ case "right":
13030
+ coords = {
13031
+ x: reference.x + reference.width,
13032
+ y: commonY
13033
+ };
13034
+ break;
13035
+ case "left":
13036
+ coords = {
13037
+ x: reference.x - floating.width,
13038
+ y: commonY
13039
+ };
13040
+ break;
13041
+ default:
13042
+ coords = {
13043
+ x: reference.x,
13044
+ y: reference.y
13045
+ };
13046
+ }
13047
+ switch (getAlignment(placement)) {
13048
+ case "start":
13049
+ coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
13050
+ break;
13051
+ case "end":
13052
+ coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
13053
+ break;
13054
+ }
13055
+ return coords;
13056
+ }
13057
+ function evaluate(value, param) {
13058
+ return typeof value == "function" ? value(param) : value;
13059
+ }
13060
+ function expandPaddingObject(padding) {
13061
+ return {
13062
+ top: 0,
13063
+ right: 0,
13064
+ bottom: 0,
13065
+ left: 0,
13066
+ ...padding
13067
+ };
13068
+ }
13069
+ function getSideObjectFromPadding(padding) {
13070
+ return typeof padding != "number" ? expandPaddingObject(padding) : {
13071
+ top: padding,
13072
+ right: padding,
13073
+ bottom: padding,
13074
+ left: padding
13075
+ };
13076
+ }
13077
+ function rectToClientRect(rect) {
13078
+ return {
13079
+ ...rect,
13080
+ top: rect.y,
13081
+ left: rect.x,
13082
+ right: rect.x + rect.width,
13083
+ bottom: rect.y + rect.height
13084
+ };
13085
+ }
13086
+ async function detectOverflow(state, options) {
13087
+ var _await$platform$isEle;
13088
+ options === void 0 && (options = {});
13089
+ let {
13090
+ x,
13091
+ y,
13092
+ platform,
13093
+ rects,
13094
+ elements,
13095
+ strategy
13096
+ } = state, {
13097
+ boundary = "clippingAncestors",
13098
+ rootBoundary = "viewport",
13099
+ elementContext = "floating",
13100
+ altBoundary = !1,
13101
+ padding = 0
13102
+ } = evaluate(options, state), paddingObject = getSideObjectFromPadding(padding), element = elements[altBoundary ? elementContext === "floating" ? "reference" : "floating" : elementContext], clippingClientRect = rectToClientRect(await platform.getClippingRect({
13103
+ element: (_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) == null || _await$platform$isEle ? element : element.contextElement || await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating)),
13104
+ boundary,
13105
+ rootBoundary,
13106
+ strategy
13107
+ })), rect = elementContext === "floating" ? {
13108
+ ...rects.floating,
13109
+ x,
13110
+ y
13111
+ } : rects.reference, offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating)), offsetScale = await (platform.isElement == null ? void 0 : platform.isElement(offsetParent)) ? await (platform.getScale == null ? void 0 : platform.getScale(offsetParent)) || {
13112
+ x: 1,
13113
+ y: 1
13114
+ } : {
13115
+ x: 1,
13116
+ y: 1
13117
+ }, elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
13118
+ rect,
13119
+ offsetParent,
13120
+ strategy
13121
+ }) : rect);
13122
+ return {
13123
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
13124
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
13125
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
13126
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
13127
+ };
13128
+ }
13129
+ function within(min$1, value, max$1) {
13130
+ return max(min$1, min(value, max$1));
13131
+ }
13132
+ function getOppositePlacement(placement) {
13133
+ return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
13134
+ }
13135
+ function getAlignmentSides(placement, rects, rtl) {
13136
+ rtl === void 0 && (rtl = !1);
13137
+ let alignment = getAlignment(placement), mainAxis = getMainAxisFromPlacement(placement), length = getLengthFromAxis(mainAxis), mainAlignmentSide = mainAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
13138
+ return rects.reference[length] > rects.floating[length] && (mainAlignmentSide = getOppositePlacement(mainAlignmentSide)), {
13139
+ main: mainAlignmentSide,
13140
+ cross: getOppositePlacement(mainAlignmentSide)
13141
+ };
13142
+ }
13143
+ function getOppositeAlignmentPlacement(placement) {
13144
+ return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
13145
+ }
13146
+ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
13147
+ return (alignment ? [...allowedPlacements.filter((placement) => getAlignment(placement) === alignment), ...allowedPlacements.filter((placement) => getAlignment(placement) !== alignment)] : allowedPlacements.filter((placement) => getSide(placement) === placement)).filter((placement) => alignment ? getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : !1) : !0);
13148
+ }
13149
+ function getExpandedPlacements(placement) {
13150
+ let oppositePlacement = getOppositePlacement(placement);
13151
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
13152
+ }
13153
+ function getSideList(side, isStart, rtl) {
13154
+ let lr = ["left", "right"], rl = ["right", "left"], tb = ["top", "bottom"], bt = ["bottom", "top"];
13155
+ switch (side) {
13156
+ case "top":
13157
+ case "bottom":
13158
+ return rtl ? isStart ? rl : lr : isStart ? lr : rl;
13159
+ case "left":
13160
+ case "right":
13161
+ return isStart ? tb : bt;
13162
+ default:
13163
+ return [];
13164
+ }
13165
+ }
13166
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
13167
+ let alignment = getAlignment(placement), list = getSideList(getSide(placement), direction === "start", rtl);
13168
+ return alignment && (list = list.map((side) => side + "-" + alignment), flipAlignment && (list = list.concat(list.map(getOppositeAlignmentPlacement)))), list;
13169
+ }
13170
+ function getSideOffsets(overflow, rect) {
13171
+ return {
13172
+ top: overflow.top - rect.height,
13173
+ right: overflow.right - rect.width,
13174
+ bottom: overflow.bottom - rect.height,
13175
+ left: overflow.left - rect.width
13176
+ };
13177
+ }
13178
+ function isAnySideFullyClipped(overflow) {
13179
+ return sides.some((side) => overflow[side] >= 0);
13180
+ }
13181
+ function getBoundingRect(rects) {
13182
+ let minX = min(...rects.map((rect) => rect.left)), minY = min(...rects.map((rect) => rect.top)), maxX = max(...rects.map((rect) => rect.right)), maxY = max(...rects.map((rect) => rect.bottom));
13183
+ return {
13184
+ x: minX,
13185
+ y: minY,
13186
+ width: maxX - minX,
13187
+ height: maxY - minY
13188
+ };
13189
+ }
13190
+ function getRectsByLine(rects) {
13191
+ let sortedRects = rects.slice().sort((a, b) => a.y - b.y), groups = [], prevRect = null;
13192
+ for (let i = 0; i < sortedRects.length; i++) {
13193
+ let rect = sortedRects[i];
13194
+ !prevRect || rect.y - prevRect.y > prevRect.height / 2 ? groups.push([rect]) : groups[groups.length - 1].push(rect), prevRect = rect;
13195
+ }
13196
+ return groups.map((rect) => rectToClientRect(getBoundingRect(rect)));
13197
+ }
13198
+ async function convertValueToCoords(state, options) {
13199
+ let {
13200
+ placement,
13201
+ platform,
13202
+ elements
13203
+ } = state, rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)), side = getSide(placement), alignment = getAlignment(placement), isVertical = getMainAxisFromPlacement(placement) === "x", mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1, crossAxisMulti = rtl && isVertical ? -1 : 1, rawValue = evaluate(options, state), {
13204
+ mainAxis,
13205
+ crossAxis,
13206
+ alignmentAxis
13207
+ } = typeof rawValue == "number" ? {
13208
+ mainAxis: rawValue,
13209
+ crossAxis: 0,
13210
+ alignmentAxis: null
13211
+ } : {
13212
+ mainAxis: 0,
13213
+ crossAxis: 0,
13214
+ alignmentAxis: null,
13215
+ ...rawValue
13216
+ };
13217
+ return alignment && typeof alignmentAxis == "number" && (crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis), isVertical ? {
13218
+ x: crossAxis * crossAxisMulti,
13219
+ y: mainAxis * mainAxisMulti
13220
+ } : {
13221
+ x: mainAxis * mainAxisMulti,
13222
+ y: crossAxis * crossAxisMulti
13223
+ };
13224
+ }
13225
+ function getCrossAxis(axis) {
13226
+ return axis === "x" ? "y" : "x";
13227
+ }
13228
+ var computePosition, min, max, arrow, sides, allPlacements, oppositeSideMap, oppositeAlignmentMap, autoPlacement, flip, hide, inline, offset, shift, limitShift, size, init_floating_ui_core_esm = __esm({
13229
+ "../../node_modules/@floating-ui/core/dist/floating-ui.core.esm.js"() {
13230
+ computePosition = async (reference, floating, config) => {
13231
+ let {
13232
+ placement = "bottom",
13233
+ strategy = "absolute",
13234
+ middleware = [],
13235
+ platform
13236
+ } = config, validMiddleware = middleware.filter(Boolean), rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating)), rects = await platform.getElementRects({
13237
+ reference,
13238
+ floating,
13239
+ strategy
13240
+ }), {
13241
+ x,
13242
+ y
13243
+ } = computeCoordsFromPlacement(rects, placement, rtl), statefulPlacement = placement, middlewareData = {}, resetCount = 0;
13244
+ for (let i = 0; i < validMiddleware.length; i++) {
13245
+ let {
13246
+ name,
13247
+ fn
13248
+ } = validMiddleware[i], {
13249
+ x: nextX,
13250
+ y: nextY,
13251
+ data,
13252
+ reset
13253
+ } = await fn({
13254
+ x,
13255
+ y,
13256
+ initialPlacement: placement,
13257
+ placement: statefulPlacement,
13258
+ strategy,
13259
+ middlewareData,
13260
+ rects,
13261
+ platform,
13262
+ elements: {
13263
+ reference,
13264
+ floating
13265
+ }
13266
+ });
13267
+ if (x = nextX ?? x, y = nextY ?? y, middlewareData = {
13268
+ ...middlewareData,
13269
+ [name]: {
13270
+ ...middlewareData[name],
13271
+ ...data
13272
+ }
13273
+ }, reset && resetCount <= 50) {
13274
+ resetCount++, typeof reset == "object" && (reset.placement && (statefulPlacement = reset.placement), reset.rects && (rects = reset.rects === !0 ? await platform.getElementRects({
13275
+ reference,
13276
+ floating,
13277
+ strategy
13278
+ }) : reset.rects), {
13279
+ x,
13280
+ y
13281
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl)), i = -1;
13282
+ continue;
13283
+ }
13284
+ }
13285
+ return {
13286
+ x,
13287
+ y,
13288
+ placement: statefulPlacement,
13289
+ strategy,
13290
+ middlewareData
13291
+ };
13292
+ };
13293
+ min = Math.min, max = Math.max;
13294
+ arrow = (options) => ({
13295
+ name: "arrow",
13296
+ options,
13297
+ async fn(state) {
13298
+ let {
13299
+ x,
13300
+ y,
13301
+ placement,
13302
+ rects,
13303
+ platform,
13304
+ elements
13305
+ } = state, {
13306
+ element,
13307
+ padding = 0
13308
+ } = evaluate(options, state) || {};
13309
+ if (element == null)
13310
+ return {};
13311
+ let paddingObject = getSideObjectFromPadding(padding), coords = {
13312
+ x,
13313
+ y
13314
+ }, axis = getMainAxisFromPlacement(placement), length = getLengthFromAxis(axis), arrowDimensions = await platform.getDimensions(element), isYAxis = axis === "y", minProp = isYAxis ? "top" : "left", maxProp = isYAxis ? "bottom" : "right", clientProp = isYAxis ? "clientHeight" : "clientWidth", endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length], startDiff = coords[axis] - rects.reference[axis], arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element)), clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
13315
+ (!clientSize || !await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent))) && (clientSize = elements.floating[clientProp] || rects.floating[length]);
13316
+ let centerToReference = endDiff / 2 - startDiff / 2, largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1, minPadding = min(paddingObject[minProp], largestPossiblePadding), maxPadding = min(paddingObject[maxProp], largestPossiblePadding), min$1 = minPadding, max2 = clientSize - arrowDimensions[length] - maxPadding, center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference, offset2 = within(min$1, center, max2), alignmentOffset = getAlignment(placement) != null && center != offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0 ? center < min$1 ? min$1 - center : max2 - center : 0;
13317
+ return {
13318
+ [axis]: coords[axis] - alignmentOffset,
13319
+ data: {
13320
+ [axis]: offset2,
13321
+ centerOffset: center - offset2 + alignmentOffset
13322
+ }
13323
+ };
13324
+ }
13325
+ }), sides = ["top", "right", "bottom", "left"], allPlacements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-start", side + "-end"), []), oppositeSideMap = {
13326
+ left: "right",
13327
+ right: "left",
13328
+ bottom: "top",
13329
+ top: "bottom"
13330
+ };
13331
+ oppositeAlignmentMap = {
13332
+ start: "end",
13333
+ end: "start"
13334
+ };
13335
+ autoPlacement = function(options) {
13336
+ return options === void 0 && (options = {}), {
13337
+ name: "autoPlacement",
13338
+ options,
13339
+ async fn(state) {
13340
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
13341
+ let {
13342
+ rects,
13343
+ middlewareData,
13344
+ placement,
13345
+ platform,
13346
+ elements
13347
+ } = state, {
13348
+ crossAxis = !1,
13349
+ alignment,
13350
+ allowedPlacements = allPlacements,
13351
+ autoAlignment = !0,
13352
+ ...detectOverflowOptions
13353
+ } = evaluate(options, state), placements = alignment !== void 0 || allowedPlacements === allPlacements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements, overflow = await detectOverflow(state, detectOverflowOptions), currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0, currentPlacement = placements[currentIndex];
13354
+ if (currentPlacement == null)
13355
+ return {};
13356
+ let {
13357
+ main,
13358
+ cross
13359
+ } = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
13360
+ if (placement !== currentPlacement)
13361
+ return {
13362
+ reset: {
13363
+ placement: placements[0]
13364
+ }
13365
+ };
13366
+ let currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]], allOverflows = [...((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || [], {
13367
+ placement: currentPlacement,
13368
+ overflows: currentOverflows
13369
+ }], nextPlacement = placements[currentIndex + 1];
13370
+ if (nextPlacement)
13371
+ return {
13372
+ data: {
13373
+ index: currentIndex + 1,
13374
+ overflows: allOverflows
13375
+ },
13376
+ reset: {
13377
+ placement: nextPlacement
13378
+ }
13379
+ };
13380
+ let placementsSortedByMostSpace = allOverflows.map((d) => {
13381
+ let alignment2 = getAlignment(d.placement);
13382
+ return [d.placement, alignment2 && crossAxis ? (
13383
+ // Check along the mainAxis and main crossAxis side.
13384
+ d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0)
13385
+ ) : (
13386
+ // Check only the mainAxis.
13387
+ d.overflows[0]
13388
+ ), d.overflows];
13389
+ }).sort((a, b) => a[1] - b[1]), resetPlacement = ((_placementsThatFitOnE = placementsSortedByMostSpace.filter((d) => d[2].slice(
13390
+ 0,
13391
+ // Aligned placements should not check their opposite crossAxis
13392
+ // side.
13393
+ getAlignment(d[0]) ? 2 : 3
13394
+ ).every((v) => v <= 0))[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
13395
+ return resetPlacement !== placement ? {
13396
+ data: {
13397
+ index: currentIndex + 1,
13398
+ overflows: allOverflows
13399
+ },
13400
+ reset: {
13401
+ placement: resetPlacement
13402
+ }
13403
+ } : {};
13404
+ }
13405
+ };
13406
+ };
13407
+ flip = function(options) {
13408
+ return options === void 0 && (options = {}), {
13409
+ name: "flip",
13410
+ options,
13411
+ async fn(state) {
13412
+ var _middlewareData$flip;
13413
+ let {
13414
+ placement,
13415
+ middlewareData,
13416
+ rects,
13417
+ initialPlacement,
13418
+ platform,
13419
+ elements
13420
+ } = state, {
13421
+ mainAxis: checkMainAxis = !0,
13422
+ crossAxis: checkCrossAxis = !0,
13423
+ fallbackPlacements: specifiedFallbackPlacements,
13424
+ fallbackStrategy = "bestFit",
13425
+ fallbackAxisSideDirection = "none",
13426
+ flipAlignment = !0,
13427
+ ...detectOverflowOptions
13428
+ } = evaluate(options, state), side = getSide(placement), isBasePlacement = getSide(initialPlacement) === initialPlacement, rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)), fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
13429
+ !specifiedFallbackPlacements && fallbackAxisSideDirection !== "none" && fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
13430
+ let placements = [initialPlacement, ...fallbackPlacements], overflow = await detectOverflow(state, detectOverflowOptions), overflows = [], overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
13431
+ if (checkMainAxis && overflows.push(overflow[side]), checkCrossAxis) {
13432
+ let {
13433
+ main,
13434
+ cross
13435
+ } = getAlignmentSides(placement, rects, rtl);
13436
+ overflows.push(overflow[main], overflow[cross]);
13437
+ }
13438
+ if (overflowsData = [...overflowsData, {
13439
+ placement,
13440
+ overflows
13441
+ }], !overflows.every((side2) => side2 <= 0)) {
13442
+ var _middlewareData$flip2, _overflowsData$filter;
13443
+ let nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1, nextPlacement = placements[nextIndex];
13444
+ if (nextPlacement)
13445
+ return {
13446
+ data: {
13447
+ index: nextIndex,
13448
+ overflows: overflowsData
13449
+ },
13450
+ reset: {
13451
+ placement: nextPlacement
13452
+ }
13453
+ };
13454
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
13455
+ if (!resetPlacement)
13456
+ switch (fallbackStrategy) {
13457
+ case "bestFit": {
13458
+ var _overflowsData$map$so;
13459
+ let placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
13460
+ placement2 && (resetPlacement = placement2);
13461
+ break;
13462
+ }
13463
+ case "initialPlacement":
13464
+ resetPlacement = initialPlacement;
13465
+ break;
13466
+ }
13467
+ if (placement !== resetPlacement)
13468
+ return {
13469
+ reset: {
13470
+ placement: resetPlacement
13471
+ }
13472
+ };
13473
+ }
13474
+ return {};
13475
+ }
13476
+ };
13477
+ };
13478
+ hide = function(options) {
13479
+ return options === void 0 && (options = {}), {
13480
+ name: "hide",
13481
+ options,
13482
+ async fn(state) {
13483
+ let {
13484
+ rects
13485
+ } = state, {
13486
+ strategy = "referenceHidden",
13487
+ ...detectOverflowOptions
13488
+ } = evaluate(options, state);
13489
+ switch (strategy) {
13490
+ case "referenceHidden": {
13491
+ let overflow = await detectOverflow(state, {
13492
+ ...detectOverflowOptions,
13493
+ elementContext: "reference"
13494
+ }), offsets = getSideOffsets(overflow, rects.reference);
13495
+ return {
13496
+ data: {
13497
+ referenceHiddenOffsets: offsets,
13498
+ referenceHidden: isAnySideFullyClipped(offsets)
13499
+ }
13500
+ };
13501
+ }
13502
+ case "escaped": {
13503
+ let overflow = await detectOverflow(state, {
13504
+ ...detectOverflowOptions,
13505
+ altBoundary: !0
13506
+ }), offsets = getSideOffsets(overflow, rects.floating);
13507
+ return {
13508
+ data: {
13509
+ escapedOffsets: offsets,
13510
+ escaped: isAnySideFullyClipped(offsets)
13511
+ }
13512
+ };
13513
+ }
13514
+ default:
13515
+ return {};
13516
+ }
13517
+ }
13518
+ };
13519
+ };
13520
+ inline = function(options) {
13521
+ return options === void 0 && (options = {}), {
13522
+ name: "inline",
13523
+ options,
13524
+ async fn(state) {
13525
+ let {
13526
+ placement,
13527
+ elements,
13528
+ rects,
13529
+ platform,
13530
+ strategy
13531
+ } = state, {
13532
+ padding = 2,
13533
+ x,
13534
+ y
13535
+ } = evaluate(options, state), nativeClientRects = Array.from(await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference)) || []), clientRects = getRectsByLine(nativeClientRects), fallback = rectToClientRect(getBoundingRect(nativeClientRects)), paddingObject = getSideObjectFromPadding(padding);
13536
+ function getBoundingClientRect() {
13537
+ if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null)
13538
+ return clientRects.find((rect) => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
13539
+ if (clientRects.length >= 2) {
13540
+ if (getMainAxisFromPlacement(placement) === "x") {
13541
+ let firstRect = clientRects[0], lastRect = clientRects[clientRects.length - 1], isTop = getSide(placement) === "top", top2 = firstRect.top, bottom2 = lastRect.bottom, left2 = isTop ? firstRect.left : lastRect.left, right2 = isTop ? firstRect.right : lastRect.right, width2 = right2 - left2, height2 = bottom2 - top2;
13542
+ return {
13543
+ top: top2,
13544
+ bottom: bottom2,
13545
+ left: left2,
13546
+ right: right2,
13547
+ width: width2,
13548
+ height: height2,
13549
+ x: left2,
13550
+ y: top2
13551
+ };
13552
+ }
13553
+ let isLeftSide = getSide(placement) === "left", maxRight = max(...clientRects.map((rect) => rect.right)), minLeft = min(...clientRects.map((rect) => rect.left)), measureRects = clientRects.filter((rect) => isLeftSide ? rect.left === minLeft : rect.right === maxRight), top = measureRects[0].top, bottom = measureRects[measureRects.length - 1].bottom, left = minLeft, right = maxRight, width = right - left, height = bottom - top;
13554
+ return {
13555
+ top,
13556
+ bottom,
13557
+ left,
13558
+ right,
13559
+ width,
13560
+ height,
13561
+ x: left,
13562
+ y: top
13563
+ };
13564
+ }
13565
+ return fallback;
13566
+ }
13567
+ let resetRects = await platform.getElementRects({
13568
+ reference: {
13569
+ getBoundingClientRect
13570
+ },
13571
+ floating: elements.floating,
13572
+ strategy
13573
+ });
13574
+ return rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height ? {
13575
+ reset: {
13576
+ rects: resetRects
13577
+ }
13578
+ } : {};
13579
+ }
13580
+ };
13581
+ };
13582
+ offset = function(options) {
13583
+ return options === void 0 && (options = 0), {
13584
+ name: "offset",
13585
+ options,
13586
+ async fn(state) {
13587
+ let {
13588
+ x,
13589
+ y
13590
+ } = state, diffCoords = await convertValueToCoords(state, options);
13591
+ return {
13592
+ x: x + diffCoords.x,
13593
+ y: y + diffCoords.y,
13594
+ data: diffCoords
13595
+ };
13596
+ }
13597
+ };
13598
+ };
13599
+ shift = function(options) {
13600
+ return options === void 0 && (options = {}), {
13601
+ name: "shift",
13602
+ options,
13603
+ async fn(state) {
13604
+ let {
13605
+ x,
13606
+ y,
13607
+ placement
13608
+ } = state, {
13609
+ mainAxis: checkMainAxis = !0,
13610
+ crossAxis: checkCrossAxis = !1,
13611
+ limiter = {
13612
+ fn: (_ref) => {
13613
+ let {
13614
+ x: x2,
13615
+ y: y2
13616
+ } = _ref;
13617
+ return {
13618
+ x: x2,
13619
+ y: y2
13620
+ };
13621
+ }
13622
+ },
13623
+ ...detectOverflowOptions
13624
+ } = evaluate(options, state), coords = {
13625
+ x,
13626
+ y
13627
+ }, overflow = await detectOverflow(state, detectOverflowOptions), mainAxis = getMainAxisFromPlacement(getSide(placement)), crossAxis = getCrossAxis(mainAxis), mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis];
13628
+ if (checkMainAxis) {
13629
+ let minSide = mainAxis === "y" ? "top" : "left", maxSide = mainAxis === "y" ? "bottom" : "right", min2 = mainAxisCoord + overflow[minSide], max2 = mainAxisCoord - overflow[maxSide];
13630
+ mainAxisCoord = within(min2, mainAxisCoord, max2);
13631
+ }
13632
+ if (checkCrossAxis) {
13633
+ let minSide = crossAxis === "y" ? "top" : "left", maxSide = crossAxis === "y" ? "bottom" : "right", min2 = crossAxisCoord + overflow[minSide], max2 = crossAxisCoord - overflow[maxSide];
13634
+ crossAxisCoord = within(min2, crossAxisCoord, max2);
13635
+ }
13636
+ let limitedCoords = limiter.fn({
13637
+ ...state,
13638
+ [mainAxis]: mainAxisCoord,
13639
+ [crossAxis]: crossAxisCoord
13640
+ });
13641
+ return {
13642
+ ...limitedCoords,
13643
+ data: {
13644
+ x: limitedCoords.x - x,
13645
+ y: limitedCoords.y - y
13646
+ }
13647
+ };
13648
+ }
13649
+ };
13650
+ }, limitShift = function(options) {
13651
+ return options === void 0 && (options = {}), {
13652
+ options,
13653
+ fn(state) {
13654
+ let {
13655
+ x,
13656
+ y,
13657
+ placement,
13658
+ rects,
13659
+ middlewareData
13660
+ } = state, {
13661
+ offset: offset2 = 0,
13662
+ mainAxis: checkMainAxis = !0,
13663
+ crossAxis: checkCrossAxis = !0
13664
+ } = evaluate(options, state), coords = {
13665
+ x,
13666
+ y
13667
+ }, mainAxis = getMainAxisFromPlacement(placement), crossAxis = getCrossAxis(mainAxis), mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis], rawOffset = evaluate(offset2, state), computedOffset = typeof rawOffset == "number" ? {
13668
+ mainAxis: rawOffset,
13669
+ crossAxis: 0
13670
+ } : {
13671
+ mainAxis: 0,
13672
+ crossAxis: 0,
13673
+ ...rawOffset
13674
+ };
13675
+ if (checkMainAxis) {
13676
+ let len = mainAxis === "y" ? "height" : "width", limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis, limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
13677
+ mainAxisCoord < limitMin ? mainAxisCoord = limitMin : mainAxisCoord > limitMax && (mainAxisCoord = limitMax);
13678
+ }
13679
+ if (checkCrossAxis) {
13680
+ var _middlewareData$offse, _middlewareData$offse2;
13681
+ let len = mainAxis === "y" ? "width" : "height", isOriginSide = ["top", "left"].includes(getSide(placement)), limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide && ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0) + (isOriginSide ? 0 : computedOffset.crossAxis), limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
13682
+ crossAxisCoord < limitMin ? crossAxisCoord = limitMin : crossAxisCoord > limitMax && (crossAxisCoord = limitMax);
13683
+ }
13684
+ return {
13685
+ [mainAxis]: mainAxisCoord,
13686
+ [crossAxis]: crossAxisCoord
13687
+ };
13688
+ }
13689
+ };
13690
+ }, size = function(options) {
13691
+ return options === void 0 && (options = {}), {
13692
+ name: "size",
13693
+ options,
13694
+ async fn(state) {
13695
+ let {
13696
+ placement,
13697
+ rects,
13698
+ platform,
13699
+ elements
13700
+ } = state, {
13701
+ apply = () => {
13702
+ },
13703
+ ...detectOverflowOptions
13704
+ } = evaluate(options, state), overflow = await detectOverflow(state, detectOverflowOptions), side = getSide(placement), alignment = getAlignment(placement), isXAxis = getMainAxisFromPlacement(placement) === "x", {
13705
+ width,
13706
+ height
13707
+ } = rects.floating, heightSide, widthSide;
13708
+ side === "top" || side === "bottom" ? (heightSide = side, widthSide = alignment === (await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right") : (widthSide = side, heightSide = alignment === "end" ? "top" : "bottom");
13709
+ let overflowAvailableHeight = height - overflow[heightSide], overflowAvailableWidth = width - overflow[widthSide], noShift = !state.middlewareData.shift, availableHeight = overflowAvailableHeight, availableWidth = overflowAvailableWidth;
13710
+ if (isXAxis) {
13711
+ let maximumClippingWidth = width - overflow.left - overflow.right;
13712
+ availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
13713
+ } else {
13714
+ let maximumClippingHeight = height - overflow.top - overflow.bottom;
13715
+ availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
13716
+ }
13717
+ if (noShift && !alignment) {
13718
+ let xMin = max(overflow.left, 0), xMax = max(overflow.right, 0), yMin = max(overflow.top, 0), yMax = max(overflow.bottom, 0);
13719
+ isXAxis ? availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right)) : availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
13720
+ }
13721
+ await apply({
13722
+ ...state,
13723
+ availableWidth,
13724
+ availableHeight
13725
+ });
13726
+ let nextDimensions = await platform.getDimensions(elements.floating);
13727
+ return width !== nextDimensions.width || height !== nextDimensions.height ? {
13728
+ reset: {
13729
+ rects: !0
13730
+ }
13731
+ } : {};
13732
+ }
13733
+ };
13734
+ };
13735
+ }
13736
+ });
13737
+
13738
+ // ../../node_modules/@floating-ui/react-native/dist/floating-ui.react-native.js
13739
+ var require_floating_ui_react_native = __commonJS({
13740
+ "../../node_modules/@floating-ui/react-native/dist/floating-ui.react-native.js"(exports) {
13741
+ "use strict";
13742
+ Object.defineProperty(exports, "__esModule", { value: !0 });
13743
+ var core = (init_floating_ui_core_esm(), __toCommonJS(floating_ui_core_esm_exports)), React2 = require("react"), reactNative = require("react-native");
13744
+ function _interopNamespace(e) {
13745
+ if (e && e.__esModule)
13746
+ return e;
13747
+ var n = /* @__PURE__ */ Object.create(null);
13748
+ return e && Object.keys(e).forEach(function(k) {
13749
+ if (k !== "default") {
13750
+ var d = Object.getOwnPropertyDescriptor(e, k);
13751
+ Object.defineProperty(n, k, d.get ? d : {
13752
+ enumerable: !0,
13753
+ get: function() {
13754
+ return e[k];
13755
+ }
13756
+ });
13757
+ }
13758
+ }), n.default = e, Object.freeze(n);
13759
+ }
13760
+ var React__namespace = /* @__PURE__ */ _interopNamespace(React2), arrow2 = (options) => {
13761
+ let {
13762
+ element,
13763
+ padding
13764
+ } = options;
13765
+ function isRef(value) {
13766
+ return {}.hasOwnProperty.call(value, "current");
13767
+ }
13768
+ return {
13769
+ name: "arrow",
13770
+ options,
13771
+ fn(args) {
13772
+ return element && isRef(element) ? element.current != null ? core.arrow({
13773
+ element: element.current,
13774
+ padding
13775
+ }).fn(args) : {} : element ? core.arrow({
13776
+ element,
13777
+ padding
13778
+ }).fn(args) : {};
13779
+ }
13780
+ };
13781
+ }, ORIGIN$1 = {
13782
+ x: 0,
13783
+ y: 0
13784
+ }, createPlatform = (_ref) => {
13785
+ let {
13786
+ offsetParent,
13787
+ sameScrollView = !0,
13788
+ scrollOffsets = ORIGIN$1
13789
+ } = _ref;
13790
+ return {
13791
+ getElementRects(_ref2) {
13792
+ let {
13793
+ reference,
13794
+ floating
13795
+ } = _ref2;
13796
+ return new Promise((resolve) => {
13797
+ let onMeasure = function(offsetX, offsetY) {
13798
+ offsetX === void 0 && (offsetX = 0), offsetY === void 0 && (offsetY = 0), floating.measure((x, y, width, height) => {
13799
+ let floatingRect = {
13800
+ width,
13801
+ height,
13802
+ ...ORIGIN$1
13803
+ };
13804
+ reference[sameScrollView ? "measure" : "measureInWindow"]((x2, y2, width2, height2) => {
13805
+ let referenceRect = {
13806
+ width: width2,
13807
+ height: height2,
13808
+ x: x2 - offsetX,
13809
+ y: y2 - offsetY
13810
+ };
13811
+ resolve({
13812
+ reference: referenceRect,
13813
+ floating: floatingRect
13814
+ });
13815
+ });
13816
+ });
13817
+ };
13818
+ offsetParent ? offsetParent.measure(onMeasure) : onMeasure();
13819
+ });
13820
+ },
13821
+ getClippingRect() {
13822
+ let {
13823
+ width,
13824
+ height
13825
+ } = reactNative.Dimensions.get("window");
13826
+ return Promise.resolve({
13827
+ width,
13828
+ height,
13829
+ ...sameScrollView ? scrollOffsets : ORIGIN$1
13830
+ });
13831
+ },
13832
+ convertOffsetParentRelativeRectToViewportRelativeRect(_ref3) {
13833
+ let {
13834
+ rect
13835
+ } = _ref3;
13836
+ return new Promise((resolve) => {
13837
+ let onMeasure = function(offsetX, offsetY) {
13838
+ offsetX === void 0 && (offsetX = 0), offsetY === void 0 && (offsetY = 0), resolve({
13839
+ ...rect,
13840
+ x: rect.x + offsetX,
13841
+ y: rect.y + offsetY
13842
+ });
13843
+ };
13844
+ offsetParent ? offsetParent.measure(onMeasure) : onMeasure();
13845
+ });
13846
+ },
13847
+ getDimensions: (element) => new Promise((resolve) => element.measure((x, y, width, height) => resolve({
13848
+ width,
13849
+ height
13850
+ })))
13851
+ };
13852
+ };
13853
+ function deepEqual(a, b) {
13854
+ if (a === b)
13855
+ return !0;
13856
+ if (typeof a != typeof b)
13857
+ return !1;
13858
+ if (typeof a == "function" && a.toString() === b.toString())
13859
+ return !0;
13860
+ let length, i, keys;
13861
+ if (a && b && typeof a == "object") {
13862
+ if (Array.isArray(a)) {
13863
+ if (length = a.length, length != b.length)
13864
+ return !1;
13865
+ for (i = length; i-- !== 0; )
13866
+ if (!deepEqual(a[i], b[i]))
13867
+ return !1;
13868
+ return !0;
13869
+ }
13870
+ if (keys = Object.keys(a), length = keys.length, length !== Object.keys(b).length)
13871
+ return !1;
13872
+ for (i = length; i-- !== 0; )
13873
+ if (!{}.hasOwnProperty.call(b, keys[i]))
13874
+ return !1;
13875
+ for (i = length; i-- !== 0; ) {
13876
+ let key = keys[i];
13877
+ if (!(key === "_owner" && a.$$typeof) && !deepEqual(a[key], b[key]))
13878
+ return !1;
13879
+ }
13880
+ return !0;
13881
+ }
13882
+ return a !== a && b !== b;
13883
+ }
13884
+ var ORIGIN = {
13885
+ x: 0,
13886
+ y: 0
13887
+ };
13888
+ function useFloating2(options) {
13889
+ options === void 0 && (options = {});
13890
+ let {
13891
+ placement = "bottom",
13892
+ middleware = [],
13893
+ sameScrollView = !0,
13894
+ elements: {
13895
+ reference: externalReference,
13896
+ floating: externalFloating,
13897
+ offsetParent: externalOffsetParent
13898
+ } = {}
13899
+ } = options, [_reference, _setReference] = React__namespace.useState(null), [_floating, _setFloating] = React__namespace.useState(null), [_offsetParent, _setOffsetParent] = React__namespace.useState(null), referenceEl = externalReference || _reference, floatingEl = externalFloating || _floating, offsetParentEl = externalOffsetParent || _offsetParent, setReference = React__namespace.useCallback((node) => {
13900
+ node !== referenceRef.current && (referenceRef.current = node, _setReference(node));
13901
+ }, [_setReference]), setFloating = React__namespace.useCallback((node) => {
13902
+ node !== floatingRef.current && (floatingRef.current = node, _setFloating(node));
13903
+ }, [_setFloating]), setOffsetParent = React__namespace.useCallback((node) => {
13904
+ node !== offsetParentRef.current && (offsetParentRef.current = node, _setOffsetParent(node));
13905
+ }, [_setOffsetParent]), referenceRef = React__namespace.useRef(null), floatingRef = React__namespace.useRef(null), offsetParentRef = React__namespace.useRef(null), [data, setData] = React__namespace.useState({
13906
+ x: 0,
13907
+ y: 0,
13908
+ placement,
13909
+ strategy: "absolute",
13910
+ middlewareData: {}
13911
+ }), [scrollOffsets, setScrollOffsets] = React__namespace.useState(ORIGIN), [latestMiddleware, setLatestMiddleware] = React__namespace.useState(middleware);
13912
+ deepEqual(latestMiddleware, middleware) || setLatestMiddleware(middleware);
13913
+ let platform = React__namespace.useMemo(() => createPlatform({
13914
+ offsetParent: offsetParentEl,
13915
+ scrollOffsets,
13916
+ sameScrollView
13917
+ }), [offsetParentEl, scrollOffsets, sameScrollView]), update = React__namespace.useCallback(() => {
13918
+ !referenceRef.current || !floatingRef.current || core.computePosition(referenceRef.current, floatingRef.current, {
13919
+ middleware: latestMiddleware,
13920
+ platform,
13921
+ placement
13922
+ }).then((data2) => {
13923
+ isMountedRef.current && setData(data2);
13924
+ });
13925
+ }, [latestMiddleware, platform, placement]);
13926
+ React__namespace.useLayoutEffect(() => {
13927
+ referenceEl && (referenceRef.current = referenceEl), floatingEl && (floatingRef.current = floatingEl), offsetParentEl && (offsetParentRef.current = offsetParentEl);
13928
+ let frame = requestAnimationFrame(update);
13929
+ return () => {
13930
+ cancelAnimationFrame(frame);
13931
+ };
13932
+ }, [referenceEl, floatingEl, offsetParentEl, update]);
13933
+ let isMountedRef = React__namespace.useRef(!0);
13934
+ React__namespace.useLayoutEffect(() => (isMountedRef.current = !0, () => {
13935
+ isMountedRef.current = !1;
13936
+ }), []);
13937
+ let refs = React__namespace.useMemo(() => ({
13938
+ reference: referenceRef,
13939
+ floating: floatingRef,
13940
+ offsetParent: offsetParentRef,
13941
+ setReference,
13942
+ setFloating,
13943
+ setOffsetParent
13944
+ }), [setReference, setFloating, setOffsetParent]), elements = React__namespace.useMemo(() => ({
13945
+ reference: referenceEl,
13946
+ floating: floatingEl,
13947
+ offsetParent: offsetParentEl
13948
+ }), [referenceEl, floatingEl, offsetParentEl]), floatingStyles = React__namespace.useMemo(() => elements.floating ? {
13949
+ position: "absolute",
13950
+ left: data.x,
13951
+ top: data.y
13952
+ } : {
13953
+ position: "absolute",
13954
+ left: 0,
13955
+ top: 0
13956
+ }, [elements.floating, data.x, data.y]);
13957
+ return React__namespace.useMemo(() => ({
13958
+ ...data,
13959
+ update,
13960
+ refs,
13961
+ elements,
13962
+ floatingStyles,
13963
+ offsetParent: setOffsetParent,
13964
+ reference: setReference,
13965
+ floating: setFloating,
13966
+ scrollProps: {
13967
+ onScroll: (event) => setScrollOffsets(event.nativeEvent.contentOffset),
13968
+ scrollEventThrottle: 16
13969
+ }
13970
+ }), [data, refs, elements, floatingStyles, setReference, setFloating, setOffsetParent, update]);
13971
+ }
13972
+ Object.defineProperty(exports, "autoPlacement", {
13973
+ enumerable: !0,
13974
+ get: function() {
13975
+ return core.autoPlacement;
13976
+ }
13977
+ });
13978
+ Object.defineProperty(exports, "detectOverflow", {
13979
+ enumerable: !0,
13980
+ get: function() {
13981
+ return core.detectOverflow;
13982
+ }
13983
+ });
13984
+ Object.defineProperty(exports, "flip", {
13985
+ enumerable: !0,
13986
+ get: function() {
13987
+ return core.flip;
13988
+ }
13989
+ });
13990
+ Object.defineProperty(exports, "hide", {
13991
+ enumerable: !0,
13992
+ get: function() {
13993
+ return core.hide;
13994
+ }
13995
+ });
13996
+ Object.defineProperty(exports, "inline", {
13997
+ enumerable: !0,
13998
+ get: function() {
13999
+ return core.inline;
14000
+ }
14001
+ });
14002
+ Object.defineProperty(exports, "limitShift", {
14003
+ enumerable: !0,
14004
+ get: function() {
14005
+ return core.limitShift;
14006
+ }
14007
+ });
14008
+ Object.defineProperty(exports, "offset", {
14009
+ enumerable: !0,
14010
+ get: function() {
14011
+ return core.offset;
14012
+ }
14013
+ });
14014
+ Object.defineProperty(exports, "shift", {
14015
+ enumerable: !0,
14016
+ get: function() {
14017
+ return core.shift;
14018
+ }
14019
+ });
14020
+ Object.defineProperty(exports, "size", {
14021
+ enumerable: !0,
14022
+ get: function() {
14023
+ return core.size;
14024
+ }
14025
+ });
14026
+ exports.arrow = arrow2;
14027
+ exports.useFloating = useFloating2;
14028
+ }
14029
+ });
14030
+
12983
14031
  // ../floating/dist/cjs/Floating.native.js
12984
14032
  var require_Floating_native = __commonJS({
12985
14033
  "../floating/dist/cjs/Floating.native.js"(exports, module2) {
@@ -12997,7 +14045,7 @@ var require_Floating_native = __commonJS({
12997
14045
  autoUpdate: () => autoUpdate
12998
14046
  });
12999
14047
  module2.exports = __toCommonJS2(Floating_native_exports);
13000
- __reExport2(Floating_native_exports, require_fake_react_native(), module2.exports);
14048
+ __reExport2(Floating_native_exports, require_floating_ui_react_native(), module2.exports);
13001
14049
  var autoUpdate = () => {
13002
14050
  };
13003
14051
  }
@@ -13089,22 +14137,22 @@ var require_Popper_native = __commonJS({
13089
14137
  usePopperContext: () => usePopperContext
13090
14138
  });
13091
14139
  module2.exports = __toCommonJS2(Popper_exports);
13092
- var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_floating = require_index_native53(), import_get_token2 = require_index_native17(), import_stacks3 = require_index_native19(), React2 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_jsx_runtime6 = require("react/jsx-runtime"), PopperContext = (0, import_core12.createStyledContext)({}), { useStyledContext: usePopperContext, Provider: PopperProvider } = PopperContext;
14140
+ var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_floating = require_index_native53(), import_get_token2 = require_index_native17(), import_stacks3 = require_index_native19(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_jsx_runtime6 = require("react/jsx-runtime"), PopperContext = (0, import_core12.createStyledContext)({}), { useStyledContext: usePopperContext, Provider: PopperProvider } = PopperContext;
13093
14141
  function Popper(props) {
13094
14142
  let {
13095
14143
  children,
13096
- size,
14144
+ size: size2,
13097
14145
  strategy = "absolute",
13098
14146
  placement = "bottom",
13099
14147
  stayInFrame,
13100
14148
  allowFlip,
13101
- offset,
14149
+ offset: offset2,
13102
14150
  __scopePopper
13103
14151
  } = props, [isMounted, setIsMounted] = React2.useState(!1);
13104
14152
  (0, import_core12.useIsomorphicLayoutEffect)(() => {
13105
14153
  setIsMounted(!0);
13106
14154
  }, []);
13107
- let [anchorRef, setAnchorRef] = React2.useState(), [arrowEl, setArrow] = React2.useState(null), [arrowSize, setArrowSize] = React2.useState(0), offsetOptions = offset ?? arrowSize, floating = (0, import_floating.useFloating)({
14155
+ let [anchorRef, setAnchorRef] = React2.useState(), [arrowEl, setArrow] = React2.useState(null), [arrowSize, setArrowSize] = React2.useState(0), offsetOptions = offset2 ?? arrowSize, floating = (0, import_floating.useFloating)({
13108
14156
  strategy,
13109
14157
  placement,
13110
14158
  sameScrollView: !1,
@@ -13145,7 +14193,7 @@ var require_Popper_native = __commonJS({
13145
14193
  }
13146
14194
  let popperContext = {
13147
14195
  anchorRef: setAnchorRef,
13148
- size,
14196
+ size: size2,
13149
14197
  arrowRef: setArrow,
13150
14198
  arrowStyle: middlewareData.arrow,
13151
14199
  onArrowSize: setArrowSize,
@@ -13195,13 +14243,13 @@ var require_Popper_native = __commonJS({
13195
14243
  unstyled: !1
13196
14244
  }
13197
14245
  }), PopperContent = React2.forwardRef(function(props, forwardedRef) {
13198
- let { __scopePopper, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size, isMounted, update } = usePopperContext(__scopePopper), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), contents = React2.useMemo(() => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14246
+ let { __scopePopper, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size2, isMounted, update } = usePopperContext(__scopePopper), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), contents = React2.useMemo(() => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
13199
14247
  PopperContentFrame,
13200
14248
  {
13201
14249
  "data-placement": placement,
13202
14250
  "data-strategy": strategy,
13203
14251
  contain: "layout",
13204
- size,
14252
+ size: size2,
13205
14253
  ...rest
13206
14254
  },
13207
14255
  "popper-content-frame"
@@ -13255,25 +14303,25 @@ var require_Popper_native = __commonJS({
13255
14303
  left: "right"
13256
14304
  }, PopperArrow = PopperArrowFrame.styleable(function(propsIn, forwardedRef) {
13257
14305
  var _a, _b;
13258
- let { __scopePopper, ...rest } = propsIn, props = (0, import_core12.useProps)(rest), { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = props, context = usePopperContext(__scopePopper), sizeVal = sizeProp ?? context.size, size = +(0, import_core12.getVariableValue)(
14306
+ let { __scopePopper, ...rest } = propsIn, props = (0, import_core12.useProps)(rest), { offset: offset2, size: sizeProp, borderWidth = 0, ...arrowProps } = props, context = usePopperContext(__scopePopper), sizeVal = sizeProp ?? context.size, size2 = +(0, import_core12.getVariableValue)(
13259
14307
  (0, import_get_token2.getSpace)(sizeVal, {
13260
14308
  shift: -2,
13261
14309
  bounds: [2]
13262
14310
  })
13263
- ), { placement } = context, refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef), x = ((_a = context.arrowStyle) == null ? void 0 : _a.x) || 0, y = ((_b = context.arrowStyle) == null ? void 0 : _b.y) || 0, primaryPlacement = placement ? placement.split("-")[0] : "top", arrowStyle = { x, y, width: size, height: size }, innerArrowStyle = {}, isVertical = primaryPlacement === "bottom" || primaryPlacement === "top";
14311
+ ), { placement } = context, refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef), x = ((_a = context.arrowStyle) == null ? void 0 : _a.x) || 0, y = ((_b = context.arrowStyle) == null ? void 0 : _b.y) || 0, primaryPlacement = placement ? placement.split("-")[0] : "top", arrowStyle = { x, y, width: size2, height: size2 }, innerArrowStyle = {}, isVertical = primaryPlacement === "bottom" || primaryPlacement === "top";
13264
14312
  if (primaryPlacement) {
13265
- arrowStyle[isVertical ? "width" : "height"] = size * 2;
14313
+ arrowStyle[isVertical ? "width" : "height"] = size2 * 2;
13266
14314
  let oppSide = opposites[primaryPlacement];
13267
- oppSide && (arrowStyle[oppSide] = -size, innerArrowStyle[oppSide] = size / 2), oppSide === "bottom" && (arrowStyle[oppSide] += 1), (oppSide === "top" || oppSide === "bottom") && (arrowStyle.left = 0), (oppSide === "left" || oppSide === "right") && (arrowStyle.top = 0), (0, import_core12.useIsomorphicLayoutEffect)(() => {
14315
+ oppSide && (arrowStyle[oppSide] = -size2, innerArrowStyle[oppSide] = size2 / 2), oppSide === "bottom" && (arrowStyle[oppSide] += 1), (oppSide === "top" || oppSide === "bottom") && (arrowStyle.left = 0), (oppSide === "left" || oppSide === "right") && (arrowStyle.top = 0), (0, import_core12.useIsomorphicLayoutEffect)(() => {
13268
14316
  var _a2;
13269
- (_a2 = context.onArrowSize) == null || _a2.call(context, size);
13270
- }, [size, context.onArrowSize]);
14317
+ (_a2 = context.onArrowSize) == null || _a2.call(context, size2);
14318
+ }, [size2, context.onArrowSize]);
13271
14319
  }
13272
14320
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperArrowOuterFrame, { ref: refs, ...arrowStyle, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
13273
14321
  PopperArrowFrame,
13274
14322
  {
13275
- width: size,
13276
- height: size,
14323
+ width: size2,
14324
+ height: size2,
13277
14325
  ...arrowProps,
13278
14326
  ...innerArrowStyle,
13279
14327
  rotate: "45deg",
@@ -13396,7 +14444,7 @@ var require_Popover_native = __commonJS({
13396
14444
  usePopoverContext: () => usePopoverContext
13397
14445
  });
13398
14446
  module2.exports = __toCommonJS2(Popover_exports);
13399
- var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native24(), import_animate = require_index_native52(), import_aria_hidden = require_index_native26(), import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_floating = require_index_native53(), import_focus_scope = require_index_native28(), import_popper = require_index_native54(), import_portal2 = require_index_native29(), import_remove_scroll = require_index_native30(), import_sheet = require_index_native34(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), React2 = __toESM2(require("react")), import_react_freeze = require_dist2(), import_react_native4 = require_fake_react_native(), import_useFloatingContext = require_useFloatingContext_native(), import_jsx_runtime6 = require("react/jsx-runtime"), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core12.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React2.forwardRef(function(props, forwardedRef) {
14447
+ var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native24(), import_animate = require_index_native52(), import_aria_hidden = require_index_native26(), import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_floating = require_index_native53(), import_focus_scope = require_index_native28(), import_popper = require_index_native54(), import_portal2 = require_index_native29(), import_remove_scroll = require_index_native30(), import_sheet = require_index_native34(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), React2 = __toESM2(require("react")), import_react_freeze = require_dist2(), import_react_native4 = require("react-native"), import_useFloatingContext = require_useFloatingContext_native(), import_jsx_runtime6 = require("react/jsx-runtime"), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core12.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React2.forwardRef(function(props, forwardedRef) {
13400
14448
  let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
13401
14449
  return React2.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
13402
14450
  import_popper.PopperAnchor,
@@ -13740,8 +14788,8 @@ var require_Progress_native = __commonJS({
13740
14788
  }
13741
14789
  );
13742
14790
  });
13743
- function defaultGetValueLabel(value, max) {
13744
- return `${Math.round(value / max * 100)}%`;
14791
+ function defaultGetValueLabel(value, max2) {
14792
+ return `${Math.round(value / max2 * 100)}%`;
13745
14793
  }
13746
14794
  function getProgressState(value, maxValue) {
13747
14795
  return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
@@ -13749,11 +14797,11 @@ var require_Progress_native = __commonJS({
13749
14797
  function isNumber(value) {
13750
14798
  return typeof value == "number";
13751
14799
  }
13752
- function isValidMaxNumber(max) {
13753
- return isNumber(max) && !isNaN(max) && max > 0;
14800
+ function isValidMaxNumber(max2) {
14801
+ return isNumber(max2) && !isNaN(max2) && max2 > 0;
13754
14802
  }
13755
- function isValidValueNumber(value, max) {
13756
- return isNumber(value) && !isNaN(value) && value <= max && value >= 0;
14803
+ function isValidValueNumber(value, max2) {
14804
+ return isNumber(value) && !isNaN(value) && value <= max2 && value >= 0;
13757
14805
  }
13758
14806
  var DEFAULT_MAX = 100, ProgressFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
13759
14807
  name: "Progress",
@@ -13767,10 +14815,10 @@ var require_Progress_native = __commonJS({
13767
14815
  },
13768
14816
  size: {
13769
14817
  "...size": (val) => {
13770
- let size = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.25);
14818
+ let size2 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.25);
13771
14819
  return {
13772
- height: size,
13773
- minWidth: (0, import_core12.getVariableValue)(size) * 20,
14820
+ height: size2,
14821
+ minWidth: (0, import_core12.getVariableValue)(size2) * 20,
13774
14822
  width: "100%"
13775
14823
  };
13776
14824
  }
@@ -13786,22 +14834,22 @@ var require_Progress_native = __commonJS({
13786
14834
  value: valueProp,
13787
14835
  max: maxProp,
13788
14836
  getValueLabel = defaultGetValueLabel,
13789
- size = "$true",
14837
+ size: size2 = "$true",
13790
14838
  ...progressProps
13791
- } = props, max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX, value = isValidValueNumber(valueProp, max) ? valueProp : null, valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0, [width, setWidth] = React2.useState(0);
13792
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressProvider, { scope: __scopeProgress, value, max, width, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14839
+ } = props, max2 = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX, value = isValidValueNumber(valueProp, max2) ? valueProp : null, valueLabel = isNumber(value) ? getValueLabel(value, max2) : void 0, [width, setWidth] = React2.useState(0);
14840
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressProvider, { scope: __scopeProgress, value, max: max2, width, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
13793
14841
  ProgressFrame,
13794
14842
  {
13795
- "aria-valuemax": max,
14843
+ "aria-valuemax": max2,
13796
14844
  "aria-valuemin": 0,
13797
14845
  "aria-valuenow": isNumber(value) ? value : void 0,
13798
14846
  "aria-valuetext": valueLabel,
13799
14847
  role: "progressbar",
13800
- "data-state": getProgressState(value, max),
14848
+ "data-state": getProgressState(value, max2),
13801
14849
  "data-value": value ?? void 0,
13802
- "data-max": max,
14850
+ "data-max": max2,
13803
14851
  ...progressProps.unstyled !== !0 && {
13804
- size
14852
+ size: size2
13805
14853
  },
13806
14854
  ...progressProps,
13807
14855
  onLayout: (e) => {
@@ -13946,12 +14994,12 @@ var require_RadioGroup_native = __commonJS({
13946
14994
  },
13947
14995
  size: {
13948
14996
  "...size": (value, { props }) => {
13949
- let size = Math.floor(
14997
+ let size2 = Math.floor(
13950
14998
  (0, import_core12.getVariableValue)((0, import_get_token2.getSize)(value)) * (props.scaleSize ?? 0.5)
13951
14999
  );
13952
15000
  return {
13953
- width: size,
13954
- height: size
15001
+ width: size2,
15002
+ height: size2
13955
15003
  };
13956
15004
  }
13957
15005
  }
@@ -14399,7 +15447,7 @@ var require_SelectItem_native = __commonJS({
14399
15447
  dataRef,
14400
15448
  interactions,
14401
15449
  shouldRenderWebNative,
14402
- size,
15450
+ size: size2,
14403
15451
  onActiveChange,
14404
15452
  initialValue
14405
15453
  } = context, [isSelected, setSelected] = React2.useState(initialValue === value), [isActive, setActive] = React2.useState(!1);
@@ -14468,7 +15516,7 @@ var require_SelectItem_native = __commonJS({
14468
15516
  focusTheme: !0,
14469
15517
  cursor: "default",
14470
15518
  outlineWidth: 0,
14471
- size,
15519
+ size: size2,
14472
15520
  ellipse: !0
14473
15521
  },
14474
15522
  ...itemProps,
@@ -14793,16 +15841,16 @@ var require_Select_native = __commonJS({
14793
15841
  }
14794
15842
  }), SelectGroup = React2.forwardRef(
14795
15843
  (props, forwardedRef) => {
14796
- let { __scopeSelect, ...groupProps } = props, groupId = React2.useId(), context = (0, import_context.useSelectContext)(GROUP_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(GROUP_NAME, __scopeSelect), size = itemParentContext.size ?? "$true", nativeSelectRef = React2.useRef(null), content = function() {
15844
+ let { __scopeSelect, ...groupProps } = props, groupId = React2.useId(), context = (0, import_context.useSelectContext)(GROUP_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(GROUP_NAME, __scopeSelect), size2 = itemParentContext.size ?? "$true", nativeSelectRef = React2.useRef(null), content = function() {
14797
15845
  return itemParentContext.shouldRenderWebNative ? (
14798
15846
  // @ts-expect-error until we support typing based on tag
14799
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(NativeSelectFrame, { asChild: !0, size, value: context.value, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15847
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(NativeSelectFrame, { asChild: !0, size: size2, value: context.value, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14800
15848
  NativeSelectTextFrame,
14801
15849
  {
14802
15850
  onChange: (event) => {
14803
15851
  itemParentContext.onChange(event.currentTarget.value);
14804
15852
  },
14805
- size,
15853
+ size: size2,
14806
15854
  ref: nativeSelectRef,
14807
15855
  style: {
14808
15856
  color: "var(--color)",
@@ -15073,8 +16121,8 @@ var require_helpers_native2 = __commonJS({
15073
16121
  let nextValues = [...prevValues];
15074
16122
  return nextValues[atIndex] = nextValue, nextValues.sort((a, b) => a - b);
15075
16123
  }
15076
- function convertValueToPercentage(value, min, max) {
15077
- return 100 / (max - min) * (value - min);
16124
+ function convertValueToPercentage(value, min2, max2) {
16125
+ return 100 / (max2 - min2) * (value - min2);
15078
16126
  }
15079
16127
  function getLabel(index, totalValues) {
15080
16128
  return totalValues > 2 ? `Value ${index + 1} of ${totalValues}` : totalValues === 2 ? ["Minimum", "Maximum"][index] : void 0;
@@ -15086,8 +16134,8 @@ var require_helpers_native2 = __commonJS({
15086
16134
  return distances.indexOf(closestDistance);
15087
16135
  }
15088
16136
  function getThumbInBoundsOffset(width, left, direction) {
15089
- let halfWidth = width / 2, offset = linearScale([0, 50], [0, halfWidth]);
15090
- return (halfWidth - offset(left) * direction) * direction;
16137
+ let halfWidth = width / 2, offset2 = linearScale([0, 50], [0, halfWidth]);
16138
+ return (halfWidth - offset2(left) * direction) * direction;
15091
16139
  }
15092
16140
  function getStepsBetweenValues(values) {
15093
16141
  return values.slice(0, -1).map((value, index) => values[index + 1] - value);
@@ -15156,14 +16204,14 @@ var require_SliderImpl_native = __commonJS({
15156
16204
  size: (val, extras) => {
15157
16205
  if (!val)
15158
16206
  return;
15159
- let orientation = extras.props.orientation, size = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) / 6);
16207
+ let orientation = extras.props.orientation, size2 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) / 6);
15160
16208
  return orientation === "horizontal" ? {
15161
- height: size,
15162
- borderRadius: size,
16209
+ height: size2,
16210
+ borderRadius: size2,
15163
16211
  justifyContent: "center"
15164
16212
  } : {
15165
- width: size,
15166
- borderRadius: size,
16213
+ width: size2,
16214
+ borderRadius: size2,
15167
16215
  alignItems: "center"
15168
16216
  };
15169
16217
  }
@@ -15251,8 +16299,8 @@ var require_Slider_native = __commonJS({
15251
16299
  var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_get_token2 = require_index_native17(), import_helpers = require_index_native4(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), import_use_direction = require_index_native22(), React2 = __toESM2(require("react")), import_constants = require_constants_native4(), import_helpers2 = require_helpers_native2(), import_SliderImpl = require_SliderImpl_native(), import_jsx_runtime6 = require("react/jsx-runtime"), SliderHorizontal = React2.forwardRef(
15252
16300
  (props, forwardedRef) => {
15253
16301
  let {
15254
- min,
15255
- max,
16302
+ min: min2,
16303
+ max: max2,
15256
16304
  dir,
15257
16305
  onSlideStart,
15258
16306
  onSlideMove,
@@ -15262,7 +16310,7 @@ var require_Slider_native = __commonJS({
15262
16310
  } = props, direction = (0, import_use_direction.useDirection)(dir), isDirectionLTR = direction === "ltr", sliderRef = React2.useRef(null), [state, setState_] = React2.useState(() => ({ size: 0, offset: 0 })), setState = (0, import_core12.createShallowSetState)(setState_);
15263
16311
  function getValueFromPointer(pointerPosition) {
15264
16312
  let input = [0, state.size];
15265
- return (0, import_helpers2.linearScale)(input, isDirectionLTR ? [min, max] : [max, min])(pointerPosition);
16313
+ return (0, import_helpers2.linearScale)(input, isDirectionLTR ? [min2, max2] : [max2, min2])(pointerPosition);
15266
16314
  }
15267
16315
  let measure = () => {
15268
16316
  var _a;
@@ -15325,8 +16373,8 @@ var require_Slider_native = __commonJS({
15325
16373
  var SliderVertical = React2.forwardRef(
15326
16374
  (props, forwardedRef) => {
15327
16375
  let {
15328
- min,
15329
- max,
16376
+ min: min2,
16377
+ max: max2,
15330
16378
  onSlideStart,
15331
16379
  onSlideMove,
15332
16380
  onStepKeyDown,
@@ -15335,7 +16383,7 @@ var require_Slider_native = __commonJS({
15335
16383
  } = props, [state, setState_] = React2.useState(() => ({ size: 0, offset: 0 })), setState = (0, import_core12.createShallowSetState)(setState_), sliderRef = React2.useRef(null);
15336
16384
  function getValueFromPointer(pointerPosition) {
15337
16385
  let input = [0, state.size];
15338
- return (0, import_helpers2.linearScale)(input, [max, min])(pointerPosition);
16386
+ return (0, import_helpers2.linearScale)(input, [max2, min2])(pointerPosition);
15339
16387
  }
15340
16388
  let measure = () => {
15341
16389
  var _a;
@@ -15450,14 +16498,14 @@ var require_Slider_native = __commonJS({
15450
16498
  );
15451
16499
  SliderTrackActive.displayName = RANGE_NAME;
15452
16500
  var THUMB_NAME = "SliderThumb", getThumbSize = (val) => {
15453
- let tokens = (0, import_core12.getTokens)(), size = typeof val == "number" ? val : (0, import_get_token2.getSize)(tokens.size[val], {
16501
+ let tokens = (0, import_core12.getTokens)(), size2 = typeof val == "number" ? val : (0, import_get_token2.getSize)(tokens.size[val], {
15454
16502
  shift: -1
15455
16503
  });
15456
16504
  return {
15457
- width: size,
15458
- height: size,
15459
- minWidth: size,
15460
- minHeight: size
16505
+ width: size2,
16506
+ height: size2,
16507
+ minWidth: size2,
16508
+ minHeight: size2
15461
16509
  };
15462
16510
  }, SliderThumbFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
15463
16511
  name: "SliderThumb",
@@ -15484,7 +16532,7 @@ var require_Slider_native = __commonJS({
15484
16532
  let { __scopeSlider, index, size: sizeProp, ...thumbProps } = props, context = (0, import_constants.useSliderContext)(THUMB_NAME, __scopeSlider), orientation = (0, import_constants.useSliderOrientationContext)(THUMB_NAME, __scopeSlider), [thumb, setThumb] = React2.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(
15485
16533
  forwardedRef,
15486
16534
  (node) => setThumb(node)
15487
- ), value = context.values[index], percent = value === void 0 ? 0 : (0, import_helpers2.convertValueToPercentage)(value, context.min, context.max), label = (0, import_helpers2.getLabel)(index, context.values.length), sizeIn = sizeProp ?? context.size ?? "$true", [size, setSize] = React2.useState(() => (0, import_core12.getVariableValue)(getThumbSize(sizeIn).width)), thumbInBoundsOffset = size ? (0, import_helpers2.getThumbInBoundsOffset)(size, percent, orientation.direction) : 0;
16535
+ ), value = context.values[index], percent = value === void 0 ? 0 : (0, import_helpers2.convertValueToPercentage)(value, context.min, context.max), label = (0, import_helpers2.getLabel)(index, context.values.length), sizeIn = sizeProp ?? context.size ?? "$true", [size2, setSize] = React2.useState(() => (0, import_core12.getVariableValue)(getThumbSize(sizeIn).width)), thumbInBoundsOffset = size2 ? (0, import_helpers2.getThumbInBoundsOffset)(size2, percent, orientation.direction) : 0;
15488
16536
  React2.useEffect(() => {
15489
16537
  if (thumb)
15490
16538
  return context.thumbs.add(thumb), () => {
@@ -15492,18 +16540,18 @@ var require_Slider_native = __commonJS({
15492
16540
  };
15493
16541
  }, [thumb, context.thumbs]);
15494
16542
  let positionalStyles = context.orientation === "horizontal" ? {
15495
- x: thumbInBoundsOffset - size / 2,
15496
- y: -size / 2,
16543
+ x: thumbInBoundsOffset - size2 / 2,
16544
+ y: -size2 / 2,
15497
16545
  top: "50%",
15498
- ...size === 0 && {
16546
+ ...size2 === 0 && {
15499
16547
  top: "auto",
15500
16548
  bottom: "auto"
15501
16549
  }
15502
16550
  } : {
15503
- x: -size / 2,
15504
- y: size / 2,
16551
+ x: -size2 / 2,
16552
+ y: size2 / 2,
15505
16553
  left: "50%",
15506
- ...size === 0 && {
16554
+ ...size2 === 0 && {
15507
16555
  left: "auto",
15508
16556
  right: "auto"
15509
16557
  }
@@ -15538,13 +16586,13 @@ var require_Slider_native = __commonJS({
15538
16586
  (props, forwardedRef) => {
15539
16587
  let {
15540
16588
  name,
15541
- min = 0,
15542
- max = 100,
16589
+ min: min2 = 0,
16590
+ max: max2 = 100,
15543
16591
  step = 1,
15544
16592
  orientation = "horizontal",
15545
16593
  disabled = !1,
15546
16594
  minStepsBetweenThumbs = 0,
15547
- defaultValue = [min],
16595
+ defaultValue = [min2],
15548
16596
  value,
15549
16597
  onValueChange = () => {
15550
16598
  },
@@ -15578,9 +16626,9 @@ var require_Slider_native = __commonJS({
15578
16626
  }
15579
16627
  function updateValues(value2, atIndex) {
15580
16628
  let decimalCount = (0, import_helpers2.getDecimalCount)(step), snapToStep = (0, import_helpers2.roundValue)(
15581
- Math.round((value2 - min) / step) * step + min,
16629
+ Math.round((value2 - min2) / step) * step + min2,
15582
16630
  decimalCount
15583
- ), nextValue = (0, import_helpers.clamp)(snapToStep, [min, max]);
16631
+ ), nextValue = (0, import_helpers.clamp)(snapToStep, [min2, max2]);
15584
16632
  setValues((prevValues = []) => {
15585
16633
  let nextValues = (0, import_helpers2.getNextSortedValues)(prevValues, nextValue, atIndex);
15586
16634
  return (0, import_helpers2.hasMinStepsBetweenValues)(nextValues, minStepsBetweenThumbs * step) ? (valueIndexToChangeRef.current = nextValues.indexOf(nextValue), String(nextValues) === String(prevValues) ? prevValues : nextValues) : prevValues;
@@ -15592,8 +16640,8 @@ var require_Slider_native = __commonJS({
15592
16640
  {
15593
16641
  scope: props.__scopeSlider,
15594
16642
  disabled,
15595
- min,
15596
- max,
16643
+ min: min2,
16644
+ max: max2,
15597
16645
  valueIndexToChangeRef,
15598
16646
  thumbs: thumbRefs.current,
15599
16647
  values,
@@ -15606,8 +16654,8 @@ var require_Slider_native = __commonJS({
15606
16654
  "data-disabled": disabled ? "" : void 0,
15607
16655
  ...sliderProps,
15608
16656
  ref: composedRefs,
15609
- min,
15610
- max,
16657
+ min: min2,
16658
+ max: max2,
15611
16659
  onSlideEnd,
15612
16660
  onSlideStart: disabled ? void 0 : (value2, target, event) => {
15613
16661
  if (target !== "thumb") {
@@ -15616,8 +16664,8 @@ var require_Slider_native = __commonJS({
15616
16664
  }
15617
16665
  },
15618
16666
  onSlideMove: disabled ? void 0 : handleSlideMove,
15619
- onHomeKeyDown: () => !disabled && updateValues(min, 0),
15620
- onEndKeyDown: () => !disabled && updateValues(max, values.length - 1),
16667
+ onHomeKeyDown: () => !disabled && updateValues(min2, 0),
16668
+ onEndKeyDown: () => !disabled && updateValues(max2, values.length - 1),
15621
16669
  onStepKeyDown: ({ event, direction: stepDirection }) => {
15622
16670
  if (!disabled) {
15623
16671
  let multiplier = import_constants.PAGE_KEYS.includes(event.key) || event.shiftKey && import_constants.ARROW_KEYS.includes(event.key) ? 10 : 1, atIndex = valueIndexToChangeRef.current, value2 = values[atIndex], stepInDirection = step * multiplier * stepDirection;
@@ -15723,10 +16771,10 @@ var require_Switch_native = __commonJS({
15723
16771
  },
15724
16772
  size: {
15725
16773
  "...size": (val) => {
15726
- let size = getSwitchHeight(val);
16774
+ let size2 = getSwitchHeight(val);
15727
16775
  return {
15728
- height: size,
15729
- width: size
16776
+ height: size2,
16777
+ width: size2
15730
16778
  };
15731
16779
  }
15732
16780
  }
@@ -15800,7 +16848,7 @@ var require_createSwitch_native = __commonJS({
15800
16848
  createSwitch: () => createSwitch
15801
16849
  });
15802
16850
  module2.exports = __toCommonJS2(createSwitch_exports);
15803
- var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_focusable2 = require_index_native44(), import_label = require_index_native45(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), import_use_previous = require_index_native46(), React2 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_Switch = require_Switch_native(), import_SwitchContext = require_SwitchContext_native(), import_jsx_runtime6 = (
16851
+ var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_focusable2 = require_index_native44(), import_label = require_index_native45(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), import_use_previous = require_index_native46(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_Switch = require_Switch_native(), import_SwitchContext = require_SwitchContext_native(), import_jsx_runtime6 = (
15804
16852
  // @ts-ignore
15805
16853
  require("react/jsx-runtime")
15806
16854
  );
@@ -15860,7 +16908,7 @@ var require_createSwitch_native = __commonJS({
15860
16908
  disabled,
15861
16909
  value = "on",
15862
16910
  onCheckedChange,
15863
- size = styledContext.size ?? "$true",
16911
+ size: size2 = styledContext.size ?? "$true",
15864
16912
  unstyled = styledContext.unstyled ?? !1,
15865
16913
  native: nativeProp,
15866
16914
  nativeProps,
@@ -15891,7 +16939,7 @@ var require_createSwitch_native = __commonJS({
15891
16939
  Frame,
15892
16940
  {
15893
16941
  unstyled,
15894
- size,
16942
+ size: size2,
15895
16943
  checked,
15896
16944
  disabled,
15897
16945
  frameWidth,
@@ -16284,7 +17332,7 @@ var require_Tabs_native = __commonJS({
16284
17332
  orientation = "horizontal",
16285
17333
  dir,
16286
17334
  activationMode = "automatic",
16287
- size = "$true",
17335
+ size: size2 = "$true",
16288
17336
  ...tabsProps
16289
17337
  } = props, direction = (0, import_use_direction.useDirection)(dir), [value, setValue] = (0, import_use_controllable_state.useControllableState)({
16290
17338
  prop: valueProp,
@@ -16301,7 +17349,7 @@ var require_Tabs_native = __commonJS({
16301
17349
  orientation,
16302
17350
  dir: direction,
16303
17351
  activationMode,
16304
- size,
17352
+ size: size2,
16305
17353
  registerTrigger,
16306
17354
  triggersCount,
16307
17355
  unregisterTrigger,
@@ -16685,13 +17733,13 @@ var require_ToggleGroup_native = __commonJS({
16685
17733
  var import_focusable2 = require_index_native44(), import_font_size = require_index_native40(), import_get_token2 = require_index_native17(), import_group = require_index_native50(), import_helpers_tamagui = require_index_native41(), import_roving_focus = require_index_native62(), import_use_controllable_state = require_index_native14(), import_use_direction = require_index_native22(), import_web = require_index_native9(), import_react2 = __toESM2(require("react")), import_Toggle = require_Toggle_native(), import_jsx_runtime6 = require("react/jsx-runtime"), TOGGLE_GROUP_NAME = "ToggleGroup", TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem", TOGGLE_GROUP_CONTEXT = "ToggleGroup", { Provider: ToggleGroupItemProvider, useStyledContext: useToggleGroupItemContext } = (0, import_web.createStyledContext)(), { Provider: ToggleGroupContext, useStyledContext: useToggleGroupContext } = (0, import_web.createStyledContext)(), ToggleGroupItem = import_Toggle.ToggleFrame.extractable(
16686
17734
  import_react2.default.forwardRef(
16687
17735
  (props, forwardedRef) => {
16688
- let { __scopeToggleGroup, ...rest } = props, valueContext = useToggleGroupValueContext(__scopeToggleGroup), context = useToggleGroupContext(__scopeToggleGroup), pressed = valueContext.value.includes(props.value), disabled = context.disabled || props.disabled || !1, ref = import_react2.default.useRef(null), groupItemProps = (0, import_group.useGroupItem)({ disabled }), size = props.size ?? context.size, sizeProps = props.unstyled ? {} : {
17736
+ let { __scopeToggleGroup, ...rest } = props, valueContext = useToggleGroupValueContext(__scopeToggleGroup), context = useToggleGroupContext(__scopeToggleGroup), pressed = valueContext.value.includes(props.value), disabled = context.disabled || props.disabled || !1, ref = import_react2.default.useRef(null), groupItemProps = (0, import_group.useGroupItem)({ disabled }), size2 = props.size ?? context.size, sizeProps = props.unstyled ? {} : {
16689
17737
  width: void 0,
16690
17738
  height: void 0,
16691
- padding: (0, import_web.getVariableValue)(size) * 0.6
17739
+ padding: (0, import_web.getVariableValue)(size2) * 0.6
16692
17740
  };
16693
- props.unstyled || (props.orientation === "horizontal" ? sizeProps.height = (0, import_web.getVariableValue)(size) * 2.4 : sizeProps.width = (0, import_web.getVariableValue)(size) * 2.4);
16694
- let iconSize = (typeof size == "number" ? size * 0.7 : (0, import_font_size.getFontSize)(size)) * 1.2, theme = (0, import_web.useTheme)(), getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color: theme.color }), children = import_react2.default.Children.toArray(props.children).map((child) => props.disablePassStyles || !import_react2.default.isValidElement(child) ? child : getThemedIcon(child)), commonProps = { pressed, disabled, ...sizeProps, ...props, children };
17741
+ props.unstyled || (props.orientation === "horizontal" ? sizeProps.height = (0, import_web.getVariableValue)(size2) * 2.4 : sizeProps.width = (0, import_web.getVariableValue)(size2) * 2.4);
17742
+ let iconSize = (typeof size2 == "number" ? size2 * 0.7 : (0, import_font_size.getFontSize)(size2)) * 1.2, theme = (0, import_web.useTheme)(), getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color: theme.color }), children = import_react2.default.Children.toArray(props.children).map((child) => props.disablePassStyles || !import_react2.default.isValidElement(child) ? child : getThemedIcon(child)), commonProps = { pressed, disabled, ...sizeProps, ...props, children };
16695
17743
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ToggleGroupItemProvider, { scope: __scopeToggleGroup, children: context.rovingFocus ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
16696
17744
  import_roving_focus.RovingFocusGroup.Item,
16697
17745
  {
@@ -16889,14 +17937,14 @@ var require_ToggleGroup_native = __commonJS({
16889
17937
  (0, import_get_token2.getSize)(sizeProp, {
16890
17938
  shift: sizeAdjust
16891
17939
  })
16892
- ), size = Math.round(adjustedSize * 0.45);
17940
+ ), size2 = Math.round(adjustedSize * 0.45);
16893
17941
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
16894
17942
  ToggleGroupContext,
16895
17943
  {
16896
17944
  scope: __scopeToggleGroup,
16897
17945
  rovingFocus,
16898
17946
  disabled,
16899
- size,
17947
+ size: size2,
16900
17948
  children: rovingFocus ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
16901
17949
  import_roving_focus.RovingFocusGroup,
16902
17950
  {
@@ -17089,7 +18137,7 @@ var require_index_native68 = __commonJS({
17089
18137
  useWindowDimensions: () => useWindowDimensions
17090
18138
  });
17091
18139
  module2.exports = __toCommonJS2(src_exports2);
17092
- var import_constants = require_index_native2(), import_react2 = require("react"), import_react_native4 = require_fake_react_native(), initialValue = {
18140
+ var import_constants = require_index_native2(), import_react2 = require("react"), import_react_native4 = require("react-native"), initialValue = {
17093
18141
  height: 800,
17094
18142
  width: 600
17095
18143
  };
@@ -17257,6 +18305,7 @@ __export(src_exports, {
17257
18305
  useIsomorphicLayoutEffect: () => import_core11.useIsomorphicLayoutEffect,
17258
18306
  useMedia: () => import_core11.useMedia,
17259
18307
  useProps: () => import_core11.useProps,
18308
+ usePropsAndStyle: () => import_core11.usePropsAndStyle,
17260
18309
  useStyle: () => import_core11.useStyle,
17261
18310
  useTheme: () => import_core11.useTheme,
17262
18311
  useThemeName: () => import_core11.useThemeName,
@@ -17313,7 +18362,7 @@ var import_core = __toESM(require_index_native10()), createTamagui = import_core
17313
18362
  var import_core2 = __toESM(require_index_native10()), import_portal = __toESM(require_index_native29()), import_jsx_runtime = require("react/jsx-runtime"), TamaguiProvider = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core2.TamaguiProvider, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_portal.PortalProvider, { shouldAddRootHost: !0, children }) });
17314
18363
 
17315
18364
  // src/views/Anchor.tsx
17316
- var import_core3 = __toESM(require_index_native10()), import_text = __toESM(require_index_native21()), import_react_native = __toESM(require_fake_react_native()), import_jsx_runtime2 = require("react/jsx-runtime"), AnchorFrame = (0, import_core3.styled)(import_text.SizableText, {
18365
+ var import_core3 = __toESM(require_index_native10()), import_text = __toESM(require_index_native21()), import_react_native = require("react-native"), import_jsx_runtime2 = require("react/jsx-runtime"), AnchorFrame = (0, import_core3.styled)(import_text.SizableText, {
17317
18366
  name: "Anchor",
17318
18367
  tag: "a",
17319
18368
  accessibilityRole: "link"
@@ -17366,7 +18415,7 @@ var import_core5 = __toESM(require_index_native10()), import_stacks = __toESM(re
17366
18415
  });
17367
18416
 
17368
18417
  // src/views/Input.tsx
17369
- var import_core7 = __toESM(require_index_native10()), import_focusable = __toESM(require_index_native44()), import_react_native2 = __toESM(require_fake_react_native());
18418
+ var import_core7 = __toESM(require_index_native10()), import_focusable = __toESM(require_index_native44()), import_react_native2 = require("react-native");
17370
18419
 
17371
18420
  // src/helpers/inputHelpers.tsx
17372
18421
  var import_core6 = __toESM(require_index_native10()), import_get_button_sized = __toESM(require_index_native18()), import_get_font_sized = __toESM(require_index_native20()), import_get_token = __toESM(require_index_native17()), inputSizeVariant = (val = "$true", extras) => {
@@ -17503,11 +18552,11 @@ var import_core8 = __toESM(require_index_native10()), Section = (0, import_core8
17503
18552
  });
17504
18553
 
17505
18554
  // src/views/Spinner.tsx
17506
- var import_core9 = __toESM(require_index_native10()), import_stacks2 = __toESM(require_index_native19()), React = __toESM(require("react")), import_react_native3 = __toESM(require_fake_react_native()), import_jsx_runtime4 = require("react/jsx-runtime"), Spinner = import_stacks2.YStack.extractable(
18555
+ var import_core9 = __toESM(require_index_native10()), import_stacks2 = __toESM(require_index_native19()), React = __toESM(require("react")), import_react_native3 = require("react-native"), import_jsx_runtime4 = require("react/jsx-runtime"), Spinner = import_stacks2.YStack.extractable(
17507
18556
  (0, import_core9.themeable)(
17508
18557
  React.forwardRef((props, ref) => {
17509
- let { size, color: colorProp, ...stackProps } = props, theme = (0, import_core9.useTheme)(), color = colorProp;
17510
- return color && color[0] === "$" && (color = (0, import_core9.variableToString)(theme[color])), /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_stacks2.YStack, { ref, ...stackProps, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_native3.ActivityIndicator, { size, color }) });
18558
+ let { size: size2, color: colorProp, ...stackProps } = props, theme = (0, import_core9.useTheme)(), color = colorProp;
18559
+ return color && color[0] === "$" && (color = (0, import_core9.variableToString)(theme[color])), /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_stacks2.YStack, { ref, ...stackProps, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_native3.ActivityIndicator, { size: size2, color }) });
17511
18560
  }),
17512
18561
  {
17513
18562
  componentName: "Spinner"
@@ -17620,6 +18669,7 @@ var import_core11 = __toESM(require_index_native10());
17620
18669
  useIsomorphicLayoutEffect,
17621
18670
  useMedia,
17622
18671
  useProps,
18672
+ usePropsAndStyle,
17623
18673
  useStyle,
17624
18674
  useTheme,
17625
18675
  useThemeName,