@tamagui/web 3.0.0-beta.1479.1 → 3.0.0-beta.1540.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/cjs/eventHandling.native.cjs +2 -2
  2. package/dist/cjs/eventHandling.native.js +2 -2
  3. package/dist/cjs/eventHandling.native.js.map +1 -1
  4. package/dist/cjs/helpers/expandStyle.cjs +25 -1
  5. package/dist/cjs/helpers/expandStyle.native.cjs +25 -1
  6. package/dist/cjs/helpers/expandStyle.native.js +25 -1
  7. package/dist/cjs/helpers/expandStyle.native.js.map +1 -1
  8. package/dist/cjs/helpers/getSplitStyles.native.cjs +16 -6
  9. package/dist/cjs/helpers/getSplitStyles.native.js +16 -6
  10. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  11. package/dist/cjs/helpers/mainThreadPressEvents.native.cjs +47 -120
  12. package/dist/cjs/helpers/mainThreadPressEvents.native.js +47 -120
  13. package/dist/cjs/helpers/mainThreadPressEvents.native.js.map +1 -1
  14. package/dist/cjs/hooks/useThemeState.cjs +2 -2
  15. package/dist/cjs/hooks/useThemeState.native.cjs +2 -2
  16. package/dist/cjs/hooks/useThemeState.native.js +2 -2
  17. package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
  18. package/dist/esm/eventHandling.native.js +2 -2
  19. package/dist/esm/eventHandling.native.js.map +1 -1
  20. package/dist/esm/helpers/expandStyle.mjs +22 -1
  21. package/dist/esm/helpers/expandStyle.mjs.map +1 -1
  22. package/dist/esm/helpers/expandStyle.native.js +22 -1
  23. package/dist/esm/helpers/expandStyle.native.js.map +1 -1
  24. package/dist/esm/helpers/getSplitStyles.native.js +17 -7
  25. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  26. package/dist/esm/helpers/mainThreadPressEvents.native.js +48 -121
  27. package/dist/esm/helpers/mainThreadPressEvents.native.js.map +1 -1
  28. package/dist/esm/hooks/useThemeState.mjs +2 -2
  29. package/dist/esm/hooks/useThemeState.mjs.map +1 -1
  30. package/dist/esm/hooks/useThemeState.native.js +2 -2
  31. package/dist/esm/hooks/useThemeState.native.js.map +1 -1
  32. package/package.json +16 -16
  33. package/src/eventHandling.native.ts +4 -4
  34. package/src/helpers/expandStyle.ts +26 -0
  35. package/src/helpers/getSplitStyles.tsx +18 -1
  36. package/src/helpers/mainThreadPressEvents.native.ts +66 -187
  37. package/src/hooks/useThemeState.ts +10 -2
  38. package/types/helpers/expandStyle.d.ts +1 -0
  39. package/types/helpers/expandStyle.d.ts.map +1 -1
  40. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  41. package/types/helpers/mainThreadPressEvents.native.d.ts +0 -7
  42. package/types/helpers/mainThreadPressEvents.native.d.ts.map +1 -1
  43. package/types/hooks/useThemeState.d.ts.map +1 -1
@@ -54,7 +54,7 @@ import {
54
54
  flushDirectStyles,
55
55
  registerAtomicSlot,
56
56
  } from './getCSSStylesAtomic'
57
- import { expandStyle } from './expandStyle'
57
+ import { expandStyle, nativeShorthandLogicals } from './expandStyle'
58
58
  import {
59
59
  classifyBorderComponents,
60
60
  splitComponents,
@@ -3612,6 +3612,23 @@ function emitValue(
3612
3612
  : `${value} 0px`
3613
3613
  }
3614
3614
 
3615
+ if (process.env.TAMAGUI_TARGET === 'native' && !cursor && !state.styleProps.noExpand) {
3616
+ const logicals = nativeShorthandLogicals[property]
3617
+ const slots = (state as DirectState).flatSlots
3618
+ if (logicals && slots) {
3619
+ for (let index = 0; index < logicals.length; index++) {
3620
+ const list = slots.get(logicals[index])
3621
+ if (!list) continue
3622
+ // only the unconditional records: a media or pseudo longhand still
3623
+ // wins while its clause is active, the same as on web
3624
+ for (let entry = list.length; entry--; ) {
3625
+ if (list[entry][3] === '') list.splice(entry, 1)
3626
+ }
3627
+ if (!list.length) clearDirectStyle(state, logicals[index])
3628
+ }
3629
+ }
3630
+ }
3631
+
3615
3632
  const expanded =
3616
3633
  process.env.TAMAGUI_TARGET === 'native' && !state.styleProps.noExpand
3617
3634
  ? expandStyle(property, value, state.conf.settings.styleCompat || 'web')
@@ -1,37 +1,7 @@
1
- /**
2
- * Fallback press handling when RNGH is not available.
3
- *
4
- * Implements the responder-based press detection that usePressability provides,
5
- * without the deep RN internal import. Supports pressIn/pressOut delays,
6
- * long press, cancellation, and min press duration.
7
- */
8
-
9
1
  import { unstable_hasExternalPressOwnership } from '@tamagui/native'
10
- import { useEffect, useRef } from 'react'
11
-
12
- type PressState =
13
- | 'idle'
14
- | 'pressing' // responder granted, waiting for delay
15
- | 'active' // pressIn fired
16
- | 'longPressed' // long press detected
17
-
18
- interface PressRef {
19
- state: PressState
20
- pressInTimer: ReturnType<typeof setTimeout> | null
21
- pressOutTimer: ReturnType<typeof setTimeout> | null
22
- longPressTimer: ReturnType<typeof setTimeout> | null
23
- activateTime: number
24
- blockedByExternalOwnership: boolean
25
- // true from the instant onPressIn fires until exactly one onPressOut fires.
26
- // A press clause is driven by this pair, so if they ever fall out of sync the
27
- // component stays latched in its press look with no event left to clear it.
28
- // Every responder exit path (release, terminate, a grant refused for external
29
- // ownership) therefore routes through releasePressOut exactly once.
30
- pressInOutstanding: boolean
31
- }
32
-
33
- const DEFAULT_LONG_PRESS_DELAY = 500
34
- const DEFAULT_MIN_PRESS_DURATION = 130
2
+ import { useRef } from 'react'
3
+ import type { GestureResponderEvent } from 'react-native'
4
+ import type usePressabilityType from 'react-native/Libraries/Pressability/usePressability'
35
5
 
36
6
  export function useMainThreadPressEvents(
37
7
  events: any,
@@ -39,184 +9,93 @@ export function useMainThreadPressEvents(
39
9
  enabled = true,
40
10
  debugName?: string | null
41
11
  ) {
42
- const ref = useRef<PressRef>(null as any)
43
- if (!ref.current) {
44
- ref.current = {
45
- state: 'idle',
46
- pressInTimer: null,
47
- pressOutTimer: null,
48
- longPressTimer: null,
49
- activateTime: 0,
50
- blockedByExternalOwnership: false,
51
- pressInOutstanding: false,
52
- }
12
+ // static config evaluation does not render; load native code at render time.
13
+ const usePressability: typeof usePressabilityType =
14
+ require('react-native/Libraries/Pressability/usePressability').default
15
+ const initialized = useRef(false)
16
+ const ownsResponder = useRef(false)
17
+ const pressActive = useRef(false)
18
+ const active = enabled && Boolean(events)
19
+ if (active) initialized.current = true
20
+
21
+ function endPress(e: GestureResponderEvent) {
22
+ if (!pressActive.current) return
23
+ pressActive.current = false
24
+ events?.onPressOut?.(e)
53
25
  }
54
26
 
55
- // caller handlers may hold a press open across unmount (a delayed pressOut
56
- // timer): drop the timers so nothing fires into an unmounted component. The
57
- // press look dies with the view, so no onPressOut is owed here.
58
- useEffect(() => {
59
- return () => {
60
- clearStartTimers()
61
- if (ref.current.pressOutTimer) {
62
- clearTimeout(ref.current.pressOutTimer)
63
- ref.current.pressOutTimer = null
64
- }
65
- }
66
- // eslint-disable-next-line react-hooks/exhaustive-deps
67
- }, [])
68
-
69
- if (!enabled || !events) return
70
-
71
- const delayPressIn = Math.max(0, events.delayPressIn ?? 0)
72
- const delayPressOut = Math.max(0, events.delayPressOut ?? 0)
73
- const delayLongPress = Math.max(0, events.delayLongPress ?? DEFAULT_LONG_PRESS_DELAY)
74
- const minPressDuration = Math.max(
75
- 0,
76
- events.minPressDuration ?? DEFAULT_MIN_PRESS_DURATION
27
+ // react native owns press geometry, timing and cancellation; initialize only
28
+ // for pressable components and remove callbacks when the responder path stops.
29
+ const handlers = usePressability(
30
+ initialized.current
31
+ ? {
32
+ ...(active ? events : {}),
33
+ disabled: !active || events?.disabled,
34
+ android_disableSound: true,
35
+ onPressIn: active
36
+ ? (e: GestureResponderEvent) => {
37
+ endPress(e)
38
+ pressActive.current = true
39
+ events.onPressIn?.(e)
40
+ }
41
+ : undefined,
42
+ onPressOut: active ? endPress : undefined,
43
+ hitSlop: viewProps.hitSlop,
44
+ pressRectOffset: viewProps.pressRetentionOffset,
45
+ }
46
+ : null
77
47
  )
48
+ if (!active || !handlers) return
78
49
 
79
- function activate(e: any) {
80
- if (ref.current.pressInOutstanding) return
81
- ref.current.pressInOutstanding = true
82
- ref.current.state = 'active'
83
- ref.current.activateTime = Date.now()
84
- events.onPressIn?.(e)
85
- }
86
-
87
- // clear the timers that could still *start* a press. A pending pressOut is a
88
- // press that already started, so it is never cancelled here — it is either
89
- // awaited or flushed by releasePressOut.
90
- function clearStartTimers() {
91
- if (ref.current.pressInTimer) clearTimeout(ref.current.pressInTimer)
92
- if (ref.current.longPressTimer) clearTimeout(ref.current.longPressTimer)
93
- ref.current.pressInTimer = null
94
- ref.current.longPressTimer = null
95
- }
96
-
97
- // the single exit that guarantees pressIn has a matching pressOut.
98
- function releasePressOut(e: any) {
99
- if (ref.current.pressOutTimer) {
100
- clearTimeout(ref.current.pressOutTimer)
101
- ref.current.pressOutTimer = null
102
- }
103
- if (!ref.current.pressInOutstanding) return
104
- ref.current.pressInOutstanding = false
105
- ref.current.state = 'idle'
106
- events.onPressOut?.(e)
107
- }
108
-
109
- function deactivate(e: any) {
110
- if (!ref.current.pressInOutstanding) return
111
- const pressDuration = Date.now() - ref.current.activateTime
112
- const remaining = Math.max(minPressDuration - pressDuration, delayPressOut)
113
-
114
- if (remaining > 0) {
115
- if (!ref.current.pressOutTimer) {
116
- ref.current.pressOutTimer = setTimeout(() => {
117
- ref.current.pressOutTimer = null
118
- releasePressOut(e)
119
- }, remaining)
120
- }
121
- } else {
122
- releasePressOut(e)
123
- }
124
- }
125
-
126
- function resetPress(e: any) {
127
- releasePressOut(e)
128
- clearStartTimers()
129
- ref.current.blockedByExternalOwnership = false
130
- }
131
-
132
- // user-supplied responder props (the View's raw RN gesture API) must keep
133
- // working: blindly overwriting them here silently killed any press-hold-drag
134
- // gesture built on onResponderMove/onResponderRelease whenever the element
135
- // also had hover/press events. compose instead — user handler first, then
136
- // the press synthesis.
137
50
  const userStartShouldSet = viewProps.onStartShouldSetResponder
138
51
  const userGrant = viewProps.onResponderGrant
139
52
  const userRelease = viewProps.onResponderRelease
140
53
  const userTerminate = viewProps.onResponderTerminate
141
54
  const userTerminationRequest = viewProps.onResponderTerminationRequest
142
55
  const userMove = viewProps.onResponderMove
56
+ const userClick = viewProps.onClick
143
57
 
144
- viewProps.onStartShouldSetResponder = (e: any) => {
145
- if (userStartShouldSet?.(e)) return true
146
- return !events.disabled && !unstable_hasExternalPressOwnership()
147
- }
148
-
149
- viewProps.onResponderGrant = (e: any) => {
150
- // a new grant always ends any prior press first: its pressOut may still be
151
- // sitting in the min-duration timer, and clearing that timer without
152
- // firing it is how the previous press latches.
153
- releasePressOut(e)
154
- clearStartTimers()
155
-
156
- if (unstable_hasExternalPressOwnership()) {
157
- ref.current.state = 'idle'
158
- ref.current.blockedByExternalOwnership = true
159
- return
160
- }
58
+ viewProps.onStartShouldSetResponder = (e: GestureResponderEvent) =>
59
+ userStartShouldSet?.(e) ||
60
+ (!unstable_hasExternalPressOwnership() && handlers.onStartShouldSetResponder())
161
61
 
62
+ viewProps.onResponderGrant = (e: GestureResponderEvent) => {
63
+ endPress(e)
64
+ if (unstable_hasExternalPressOwnership()) return
162
65
  userGrant?.(e)
163
- ref.current.blockedByExternalOwnership = false
164
- ref.current.state = 'pressing'
165
-
166
- if (delayPressIn > 0) {
167
- ref.current.pressInTimer = setTimeout(() => activate(e), delayPressIn)
168
- } else {
169
- activate(e)
170
- }
171
-
172
- if (events.onLongPress) {
173
- ref.current.longPressTimer = setTimeout(() => {
174
- if (ref.current.state === 'active') {
175
- ref.current.state = 'longPressed'
176
- events.onLongPress?.(e)
177
- }
178
- }, delayLongPress + delayPressIn)
179
- }
66
+ ownsResponder.current = true
67
+ return handlers.onResponderGrant(e)
180
68
  }
181
69
 
182
- viewProps.onResponderRelease = (e: any) => {
183
- // external ownership can be claimed *after* this press already started
184
- // (a native menu boundary, auto-expiring). The release still owes a
185
- // pressOut, or the press look stays latched.
186
- if (ref.current.blockedByExternalOwnership || unstable_hasExternalPressOwnership()) {
187
- resetPress(e)
70
+ viewProps.onResponderRelease = (e: GestureResponderEvent) => {
71
+ if (!ownsResponder.current) return
72
+ ownsResponder.current = false
73
+ if (unstable_hasExternalPressOwnership()) {
74
+ handlers.onResponderTerminate(e)
75
+ endPress(e)
188
76
  return
189
77
  }
190
-
191
78
  userRelease?.(e)
192
- const wasLongPressed = ref.current.state === 'longPressed'
193
- clearStartTimers()
194
-
195
- // if pressIn hasn't fired yet (was in delay), fire it now then deactivate
196
- if (ref.current.state === 'pressing') {
197
- activate(e)
198
- }
199
-
200
- if (!wasLongPressed) {
201
- events.onPress?.(e)
202
- }
203
-
204
- deactivate(e)
205
- ref.current.blockedByExternalOwnership = false
79
+ handlers.onResponderRelease(e)
206
80
  }
207
81
 
208
- viewProps.onResponderTerminate = (e: any) => {
82
+ viewProps.onResponderTerminate = (e: GestureResponderEvent) => {
209
83
  userTerminate?.(e)
210
- resetPress(e)
84
+ if (ownsResponder.current) handlers.onResponderTerminate(e)
85
+ endPress(e)
86
+ ownsResponder.current = false
211
87
  }
212
88
 
213
- viewProps.onResponderTerminationRequest = (e: any) => {
214
- if (userTerminationRequest) return userTerminationRequest(e)
215
- return events.cancelable !== false
216
- }
89
+ viewProps.onResponderTerminationRequest = (e: GestureResponderEvent) =>
90
+ userTerminationRequest?.(e) ?? handlers.onResponderTerminationRequest()
217
91
 
218
- viewProps.onResponderMove = (e: any) => {
92
+ viewProps.onResponderMove = (e: GestureResponderEvent) => {
219
93
  userMove?.(e)
220
- events.onPressMove?.(e)
94
+ if (ownsResponder.current) handlers.onResponderMove(e)
95
+ }
96
+
97
+ viewProps.onClick = (e: GestureResponderEvent) => {
98
+ userClick?.(e)
99
+ if (!unstable_hasExternalPressOwnership()) handlers.onClick(e)
221
100
  }
222
101
  }
@@ -307,11 +307,17 @@ const getSnapshotImpl = (r: SnapshotRef): ThemeState => {
307
307
 
308
308
  const canSkipForSchemeChange = Boolean(isSchemeOnlyChange && allKeysSchemeOptimized)
309
309
 
310
+ // forceClassName renders its resolved name as classes, so a nameless one that
311
+ // mirrors its parent still has to re-render when the parent's scheme flips
310
312
  const needsUpdate = props.passThrough
311
313
  ? false
312
314
  : optimizeForFirstRender
313
315
  ? true
314
- : isRoot || props.name === 'light' || props.name === 'dark' || props.name === null
316
+ : isRoot ||
317
+ props.forceClassName ||
318
+ props.name === 'light' ||
319
+ props.name === 'dark' ||
320
+ props.name === null
315
321
  ? true
316
322
  : !HasRenderedOnce.get(keys)
317
323
  ? true
@@ -373,8 +379,10 @@ const getNextState = (
373
379
  ): [boolean, ThemeState] => {
374
380
  const parentState = states.get(parentId)
375
381
 
382
+ // passThrough adds no theme of its own, so it mirrors the parent's current
383
+ // state. preferring lastState froze it, and every descendant, on its first theme
376
384
  if (props.passThrough) {
377
- return [false, lastState || parentState || ({ name: '' } as any)]
385
+ return [false, parentState || lastState || ({ name: '' } as any)]
378
386
  }
379
387
 
380
388
  themes ||= getConfig().themes
@@ -5,4 +5,5 @@
5
5
  import { type StyleCompat } from '../config';
6
6
  import type { PropMappedValue } from '../types';
7
7
  export declare function expandStyle(key: string, value: any, styleCompat?: StyleCompat): PropMappedValue;
8
+ export declare const nativeShorthandLogicals: Record<string, string[]>;
8
9
  //# sourceMappingURL=expandStyle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"expandStyle.d.ts","sourceRoot":"","sources":["../../src/helpers/expandStyle.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AA+D/C,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,GAAG,EACV,WAAW,GAAE,WAA8B,GAC1C,eAAe,CAgIjB"}
1
+ {"version":3,"file":"expandStyle.d.ts","sourceRoot":"","sources":["../../src/helpers/expandStyle.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AA+D/C,wBAAgB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C3B,KAAK,CAAC,EAAE,SAAS,EAEjB,eAAe,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAC5C,iBAAiB,CAAC,EAAE,iBAAiB,KAClC,IAAI,GAAG,cAAc,CAAA;AA6U1B,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WAEhF;AA2rBD,eAAO,MAAM,cAAc,EAAE,aAwrB5B,CAAA;AAqYD,MAAM,MAAM,UAAU,GAAG,CACvB,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,GAAG,EACV,gBAAgB,CAAC,EAAE,OAAO,EAC1B,aAAa,CAAC,EAAE,GAAG,KAChB,IAAI,CAAA;AAu4CT,KAAK,oBAAoB,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,IAAI,CAAA;AAgCnF,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,oBAAoB,GAAG,IAAI,EACjC,QAAQ,SAAI,EACZ,WAAW,UAAQ,WA4OpB;AA6HD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,GAAG,EACV,QAAQ,EAAE,GAAG,EACb,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,OAAO,QAyBlB;AAID,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,qBAAqB,sBAgBtF;AAMD,cAAc,mBAAmB,CAAA"}
@@ -1,9 +1,2 @@
1
- /**
2
- * Fallback press handling when RNGH is not available.
3
- *
4
- * Implements the responder-based press detection that usePressability provides,
5
- * without the deep RN internal import. Supports pressIn/pressOut delays,
6
- * long press, cancellation, and min press duration.
7
- */
8
1
  export declare function useMainThreadPressEvents(events: any, viewProps: any, enabled?: boolean, debugName?: string | null): void;
9
2
  //# sourceMappingURL=mainThreadPressEvents.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mainThreadPressEvents.native.d.ts","sourceRoot":"","sources":["../../src/helpers/mainThreadPressEvents.native.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA6BH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,GAAG,EACX,SAAS,EAAE,GAAG,EACd,OAAO,UAAO,EACd,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,QAsL1B"}
1
+ {"version":3,"file":"mainThreadPressEvents.native.d.ts","sourceRoot":"","sources":["../../src/helpers/mainThreadPressEvents.native.ts"],"names":[],"mappings":"AAKA,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,GAAG,EACX,SAAS,EAAE,GAAG,EACd,OAAO,UAAO,EACd,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,QA2F1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"useThemeState.d.ts","sourceRoot":"","sources":["../../src/hooks/useThemeState.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,gBAAgB,EACtB,MAAM,OAAO,CAAA;AAId,OAAO,KAAK,EAGV,UAAU,EACV,sBAAsB,EACvB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,KAAK,EAAE,GAAG,MAAM,CAAA;AAEhB,eAAO,MAAM,iBAAiB,iCAAwB,CAAA;AAYtD,eAAO,MAAM,iBAAiB,YAK7B,CAAA;AAED,eAAO,MAAM,aAAa,OAAQ,EAAE,2BAAmB,CAAA;AAKvD,eAAO,MAAM,mBAAmB,OAAQ,EAAE,iCAA8B,CAAA;AACxE,eAAO,MAAM,sBAAsB,OAAQ,EAAE,uBAAiC,CAAA;AAE9E,eAAO,MAAM,0BAA0B;IACrC,MAAM;IACN,OAAO;CACP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