2026-07-29 08:29:29 +00:00
// Module ID: 1716
// Function ID: 1717
// Name: r
// Dependencies: [1717, 1649, 1718, 1617]
// Module 1716 (r)
const require = arg1 ;
const dependencyMap = arg6 ;
2026-08-04 21:03:28 +00:00
const fn = function r ( obj ) {
let tmp = typeof obj === "object" ;
if ( typeof obj === "object" ) {
tmp = null !== obj ;
2026-07-29 08:29:29 +00:00
}
if ( tmp ) {
const _Array = Array ;
2026-08-04 21:03:28 +00:00
tmp = ! Array . isArray ( obj ) ;
2026-07-29 08:29:29 +00:00
}
return tmp ;
} ;
fn . _ _closure = { } ;
fn . _ _workletHash = 12151866759552 ;
fn . _ _initData = { code : "function pnpm_colorsTs1(value){return typeof value==='object'&&value!==null&&!Array.isArray(value);}" } ;
class PlatformColor {
constructor ( ) {
items = [ ... arguments ] ;
if ( require ( "JEST_WORKER_ID" ) . IS _IOS ) {
obj = { semantic : null } ;
obj [ 0 ] = items ;
} else {
obj = { resource _paths : null } ;
obj [ 0 ] = items ;
}
return obj ;
}
}
let obj = { IS _IOS : require ( "JEST_WORKER_ID" ) . IS _IOS } ;
PlatformColor . _ _closure = obj ;
PlatformColor . _ _workletHash = 12890406291275 ;
PlatformColor . _ _initData = { code : "function PlatformColor_Pnpm_colorsTs2(...names){const{IS_IOS}=this.__closure;return IS_IOS?{semantic:names}:{resource_paths:names};}" } ;
2026-08-04 21:03:28 +00:00
function isPlatformColorObject ( obj ) {
if ( typeof fn !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
let tmp = typeof obj === "object" ;
if ( typeof obj === "object" ) {
tmp = null !== obj ;
2026-07-29 08:29:29 +00:00
}
if ( tmp ) {
const _Array = Array ;
2026-08-04 21:03:28 +00:00
tmp = ! Array . isArray ( obj ) ;
2026-07-29 08:29:29 +00:00
}
if ( tmp ) {
const _Array2 = Array ;
2026-08-04 21:03:28 +00:00
let isArray = Array . isArray ( obj . semantic ) ;
2026-07-29 08:29:29 +00:00
if ( ! isArray ) {
const _Array3 = Array ;
2026-08-04 21:03:28 +00:00
isArray = Array . isArray ( obj . resource _paths ) ;
2026-07-29 08:29:29 +00:00
}
tmp = isArray ;
}
return tmp ;
}
isPlatformColorObject . _ _closure = { isRecord : fn } ;
isPlatformColorObject . _ _workletHash = 9660595997722 ;
isPlatformColorObject . _ _initData = { code : "function isPlatformColorObject_Pnpm_colorsTs3(value){const{isRecord}=this.__closure;return isRecord(value)&&(Array.isArray(value.semantic)||Array.isArray(value.resource_paths));}" } ;
class DynamicColorIOS {
constructor ( arg0 ) {
dynamic = { light : arg0 . light , dark : arg0 . dark , highContrastLight : arg0 . highContrastLight , highContrastDark : arg0 . highContrastDark } ;
return { dynamic } ;
}
}
DynamicColorIOS . _ _closure = { } ;
DynamicColorIOS . _ _workletHash = 593421129931 ;
DynamicColorIOS . _ _initData = { code : "function DynamicColorIOS_Pnpm_colorsTs4(tuple){return{dynamic:{light:tuple.light,dark:tuple.dark,highContrastLight:tuple.highContrastLight,highContrastDark:tuple.highContrastDark}};}" } ;
2026-08-04 21:03:28 +00:00
function isDynamicColorObjectIOS ( arr ) {
if ( typeof fn !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
let tmp2 = typeof arr === "object" ;
if ( typeof arr === "object" ) {
tmp2 = null !== arr ;
2026-07-29 08:29:29 +00:00
}
if ( tmp2 ) {
const _Array = Array ;
2026-08-04 21:03:28 +00:00
tmp2 = ! Array . isArray ( arr ) ;
2026-07-29 08:29:29 +00:00
}
if ( tmp2 ) {
2026-08-04 21:03:28 +00:00
const dynamic = arr . dynamic ;
if ( typeof fn !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
let tmp4 = typeof dynamic === "object" ;
if ( typeof dynamic === "object" ) {
2026-07-29 08:29:29 +00:00
tmp4 = null !== dynamic ;
}
if ( tmp4 ) {
const _Array2 = Array ;
tmp4 = ! Array . isArray ( dynamic ) ;
}
tmp2 = tmp4 ;
}
if ( tmp2 ) {
2026-08-04 21:03:28 +00:00
tmp2 = "light" in arr . dynamic ;
2026-07-29 08:29:29 +00:00
}
if ( tmp2 ) {
2026-08-04 21:03:28 +00:00
tmp2 = "dark" in arr . dynamic ;
2026-07-29 08:29:29 +00:00
}
return tmp2 ;
}
isDynamicColorObjectIOS . _ _closure = { isRecord : fn } ;
isDynamicColorObjectIOS . _ _workletHash = 1181760541767 ;
isDynamicColorObjectIOS . _ _initData = { code : "function isDynamicColorObjectIOS_Pnpm_colorsTs5(value){const{isRecord}=this.__closure;return isRecord(value)&&isRecord(value.dynamic)&&'light'in value.dynamic&&'dark'in value.dynamic;}" } ;
obj = { invalidColor : fn2 , invalidProcessedColor : fn3 , dynamicNotAvailableOnPlatform : fn4 } ;
fn2 = function t ( arg0 ) {
return "Invalid color value: " + JSON . stringify ( arg0 ) ;
} ;
fn2 . _ _closure = { } ;
fn2 . _ _workletHash = 16453254098770 ;
fn2 . _ _initData = { code : "function pnpm_colorsTs6(color){return\"Invalid color value: \"+JSON.stringify(color);}" } ;
fn3 = function n ( arg0 ) {
return "Invalid processed color value: " + JSON . stringify ( arg0 ) ;
} ;
fn3 . _ _closure = { } ;
fn3 . _ _workletHash = 8662920964153 ;
fn3 . _ _initData = { code : "function pnpm_colorsTs7(color){return\"Invalid processed color value: \"+JSON.stringify(color);}" } ;
fn4 = function o ( ) {
return "DynamicColorIOS is not available on this platform." ;
} ;
fn4 . _ _closure = { } ;
fn4 . _ _workletHash = 13235944247491 ;
fn4 . _ _initData = { code : "function pnpm_colorsTs8(){return'DynamicColorIOS is not available on this platform.';}" } ;
2026-08-04 21:03:28 +00:00
function processColorNumber ( arr ) {
const result = require ( 1649 ) /* call */ . processColorInitially ( arr ) ;
2026-07-29 08:29:29 +00:00
const obj = require ( 1649 ) /* call */ ;
let tmp3 = result ;
if ( tmp2 ) {
tmp3 = result | 0 ;
}
return tmp3 ;
}
obj = { processColorInitially : require ( "call" ) . processColorInitially , IS _ANDROID : require ( "JEST_WORKER_ID" ) . IS _ANDROID } ;
processColorNumber . _ _closure = obj ;
processColorNumber . _ _workletHash = 11813019963227 ;
processColorNumber . _ _initData = { code : "function processColorNumber_Pnpm_colorsTs9(value){const{processColorInitially,IS_ANDROID}=this.__closure;let normalizedColor=processColorInitially(value);if(IS_ANDROID&&typeof normalizedColor=='number'){normalizedColor=normalizedColor|0x0;}return normalizedColor;}" } ;
function unprocessColorNumber ( arg0 ) {
return "rgba(" + arg0 << 8 >>> 24 + "," + arg0 << 16 >>> 24 + "," + arg0 << 24 >>> 24 + "," + ( arg0 >>> 24 ) / 255 + ")" ;
}
unprocessColorNumber . _ _closure = { } ;
unprocessColorNumber . _ _workletHash = 5518391320995 ;
unprocessColorNumber . _ _initData = { code : "function unprocessColorNumber_Pnpm_colorsTs10(value){const a=(value>>>24)/255;const r=value<<8>>>24;const g=value<<16>>>24;const b=value<<24>>>24;return\"rgba(\"+r+\",\"+g+\",\"+b+\",\"+a+\")\";}" } ;
let items = [ "light" , "dark" , "highContrastLight" , "highContrastDark" ] ;
2026-08-04 21:03:28 +00:00
function processDynamicColorObjectIOS ( arr ) {
2026-07-29 08:29:29 +00:00
const dynamic = { } ;
const iter = items [ Symbol . iterator ] ( ) ;
const nextResult = iter . next ( ) ;
while ( iter !== undefined ) {
let tmp3 = nextResult ;
2026-08-04 21:03:28 +00:00
if ( undefined !== arr . dynamic [ nextResult ] ) {
2026-07-29 08:29:29 +00:00
let tmp4 = processColorNumber ;
let tmp5 = nextResult ;
2026-08-04 21:03:28 +00:00
let tmp6 = processColorNumber ( arr . dynamic [ tmp3 ] ) ;
2026-07-29 08:29:29 +00:00
if ( null === tmp6 ) {
let tmp10 = iter ;
iter . return ( ) ;
return null ;
} else {
let tmp8 = nextResult ;
let tmp9 = tmp6 ;
dynamic [ tmp3 ] = tmp7 ;
}
}
continue ;
}
return { dynamic } ;
}
processDynamicColorObjectIOS . _ _closure = { DynamicColorIOSProperties : items , processColorNumber } ;
processDynamicColorObjectIOS . _ _workletHash = 12385759836493 ;
processDynamicColorObjectIOS . _ _initData = { code : "function processDynamicColorObjectIOS_Pnpm_colorsTs11(value){const{DynamicColorIOSProperties,processColorNumber}=this.__closure;const result={};for(const property of DynamicColorIOSProperties){if(value.dynamic[property]===undefined){continue;}const processed=processColorNumber(value.dynamic[property]);if(processed===null){return null;}result[property]=processed;}return{dynamic:result};}" } ;
function unprocessDynamicColorObjectIOS ( arr ) {
const dynamic = { } ;
for ( const item10008 of items ) {
let tmp = item10008 ;
if ( undefined !== arg0 . dynamic [ item10008 ] ) {
let tmp2 = item10008 ;
let tmp3 = unprocessColorNumber ;
dynamic [ tmp ] = unprocessColorNumber ( arg0 . dynamic [ tmp ] ) ;
}
continue ;
}
return { dynamic } ;
}
unprocessDynamicColorObjectIOS . _ _closure = { DynamicColorIOSProperties : items , unprocessColorNumber } ;
unprocessDynamicColorObjectIOS . _ _workletHash = 3217615757982 ;
unprocessDynamicColorObjectIOS . _ _initData = { code : "function unprocessDynamicColorObjectIOS_Pnpm_colorsTs12(value){const{DynamicColorIOSProperties,unprocessColorNumber}=this.__closure;const result={};for(const property of DynamicColorIOSProperties){if(value.dynamic[property]!==undefined){result[property]=unprocessColorNumber(value.dynamic[property]);}}return{dynamic:result};}" } ;
2026-08-04 21:03:28 +00:00
function processColor ( arr , target ) {
if ( typeof processColorNumber !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const obj = require ( 1649 ) /* call */ ;
2026-08-04 21:03:28 +00:00
const result = obj . processColorInitially ( arr ) ;
2026-07-29 08:29:29 +00:00
let tmp5 = result ;
if ( tmp4 ) {
tmp5 = result | 0 ;
}
if ( tmp5 ) {
return tmp5 ;
} else if ( 0 === tmp5 ) {
target = undefined ;
if ( target != null ) {
target = target . target ;
}
let tmp28 = target !== tmp ( 1718 ) . ValueProcessorTarget . CSS ;
if ( ! tmp28 ) {
2026-08-04 21:03:28 +00:00
tmp28 = "transparent" !== arr ;
2026-07-29 08:29:29 +00:00
}
if ( tmp28 ) {
tmp28 = tmp5 ;
}
return tmp28 ;
} else {
2026-08-04 21:03:28 +00:00
if ( typeof isPlatformColorObject !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
if ( typeof fn !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
let tmp7 = typeof arr === "object" ;
if ( typeof arr === "object" ) {
tmp7 = null !== arr ;
2026-07-29 08:29:29 +00:00
}
if ( tmp7 ) {
const _Array = Array ;
2026-08-04 21:03:28 +00:00
tmp7 = ! Array . isArray ( arr ) ;
2026-07-29 08:29:29 +00:00
}
if ( tmp7 ) {
const _Array2 = Array ;
2026-08-04 21:03:28 +00:00
let isArray = Array . isArray ( arr . semantic ) ;
2026-07-29 08:29:29 +00:00
if ( ! isArray ) {
const _Array3 = Array ;
2026-08-04 21:03:28 +00:00
isArray = Array . isArray ( arr . resource _paths ) ;
2026-07-29 08:29:29 +00:00
}
tmp7 = isArray ;
}
if ( tmp7 ) {
2026-08-04 21:03:28 +00:00
return arr ;
2026-07-29 08:29:29 +00:00
} else {
let tmp12 = tmp5 ;
2026-08-04 21:03:28 +00:00
if ( isDynamicColorObjectIOS ( arr ) ) {
2026-07-29 08:29:29 +00:00
if ( tmp ( 1717 ) . IS _IOS ) {
2026-08-04 21:03:28 +00:00
tmp12 = processDynamicColorObjectIOS ( arr ) ;
2026-07-29 08:29:29 +00:00
} else {
const reanimatedError = new tmp ( 1617 ) . ReanimatedError ( obj . dynamicNotAvailableOnPlatform ( ) ) ;
throw reanimatedError ;
}
}
if ( null === tmp12 ) {
2026-08-04 21:03:28 +00:00
const reanimatedError1 = new tmp ( 1617 ) . ReanimatedError ( obj . invalidColor ( arr ) ) ;
2026-07-29 08:29:29 +00:00
throw reanimatedError1 ;
} else {
return tmp12 ;
}
}
}
2026-08-04 21:03:28 +00:00
tmp4 = require ( 1717 ) /* JEST_WORKER_ID */ . IS _ANDROID && typeof result === "number" ;
2026-07-29 08:29:29 +00:00
}
processColor . _ _closure = { processColorNumber , ValueProcessorTarget : require ( "module_1718" ) . ValueProcessorTarget , isPlatformColorObject , isDynamicColorObjectIOS , IS _IOS : require ( "JEST_WORKER_ID" ) . IS _IOS , ERROR _MESSAGES : obj , processDynamicColorObjectIOS } ;
processColor . _ _workletHash = 3532980737440 ;
processColor . _ _initData = { code : "function processColor_Pnpm_colorsTs13(value,context){const{processColorNumber,ValueProcessorTarget,isPlatformColorObject,isDynamicColorObjectIOS,IS_IOS,ERROR_MESSAGES,processDynamicColorObjectIOS}=this.__closure;let result=processColorNumber(value);if(result){return result;}if(result===0){if((context===null||context===void 0?void 0:context.target)===ValueProcessorTarget.CSS&&value==='transparent'){return false;}return result;}if(isPlatformColorObject(value)){return value;}if(isDynamicColorObjectIOS(value)){if(!IS_IOS){throw new ReanimatedError(ERROR_MESSAGES.dynamicNotAvailableOnPlatform());}result=processDynamicColorObjectIOS(value);}if(result===null){throw new ReanimatedError(ERROR_MESSAGES.invalidColor(value));}return result;}" } ;
function unprocessColor ( arr ) {
2026-08-04 21:03:28 +00:00
if ( typeof arr === "number" ) {
if ( typeof unprocessColorNumber !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const _HermesInternal = HermesInternal ;
return "rgba(" + arr << 8 >>> 24 + "," + arr << 16 >>> 24 + "," + arr << 24 >>> 24 + "," + ( arr >>> 24 ) / 255 + ")" ;
} else {
2026-08-04 21:03:28 +00:00
if ( typeof isPlatformColorObject !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
if ( typeof fn !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
let tmp2 = typeof arr === "object" ;
if ( typeof arr === "object" ) {
2026-07-29 08:29:29 +00:00
tmp2 = null !== arr ;
}
if ( tmp2 ) {
const _Array = Array ;
tmp2 = ! Array . isArray ( arr ) ;
}
if ( tmp2 ) {
const _Array2 = Array ;
let isArray = Array . isArray ( arr . semantic ) ;
if ( ! isArray ) {
const _Array3 = Array ;
isArray = Array . isArray ( arr . resource _paths ) ;
}
tmp2 = isArray ;
}
if ( tmp2 ) {
return arr ;
} else if ( isDynamicColorObjectIOS ( arr ) ) {
if ( tmp7 ( 1717 ) . IS _IOS ) {
return unprocessDynamicColorObjectIOS ( arr ) ;
} else {
const reanimatedError = new tmp7 ( 1617 ) . ReanimatedError ( obj . dynamicNotAvailableOnPlatform ( ) ) ;
throw reanimatedError ;
}
} else {
const reanimatedError1 = new tmp7 ( 1617 ) . ReanimatedError ( obj . invalidProcessedColor ( arr ) ) ;
throw reanimatedError1 ;
}
}
}
const obj1 = { processColorNumber , ValueProcessorTarget : require ( "module_1718" ) . ValueProcessorTarget , isPlatformColorObject , isDynamicColorObjectIOS , IS _IOS : require ( "JEST_WORKER_ID" ) . IS _IOS , ERROR _MESSAGES : obj , processDynamicColorObjectIOS } ;
unprocessColor . _ _closure = { unprocessColorNumber , isPlatformColorObject , isDynamicColorObjectIOS , IS _IOS : require ( "JEST_WORKER_ID" ) . IS _IOS , ERROR _MESSAGES : obj , unprocessDynamicColorObjectIOS } ;
unprocessColor . _ _workletHash = 11221362619601 ;
unprocessColor . _ _initData = { code : "function unprocessColor_Pnpm_colorsTs14(value){const{unprocessColorNumber,isPlatformColorObject,isDynamicColorObjectIOS,IS_IOS,ERROR_MESSAGES,unprocessDynamicColorObjectIOS}=this.__closure;if(typeof value==='number'){return unprocessColorNumber(value);}if(isPlatformColorObject(value)){return value;}if(isDynamicColorObjectIOS(value)){if(!IS_IOS){throw new ReanimatedError(ERROR_MESSAGES.dynamicNotAvailableOnPlatform());}return unprocessDynamicColorObjectIOS(value);}throw new ReanimatedError(ERROR_MESSAGES.invalidProcessedColor(value));}" } ;
function processColorsInProps ( obj ) {
for ( const key10005 in arg0 ) {
let tmp3 = key10005 ;
let tmp4 = require ;
let tmp5 = dependencyMap ;
let ColorProperties = require ( 1649 ) /* call */ . ColorProperties ;
if ( ! ColorProperties . includes ( key10005 ) ) {
continue ;
} else {
let arr = arg0 [ key10005 ] ;
let _Array = Array ;
if ( Array . isArray ( arr ) ) {
let mapped = arr . map ( ( arg0 ) => callback ( arg0 ) ) ;
} else {
let tmp = processColor ;
mapped = processColor ( arr ) ;
}
arg0 [ key10005 ] = mapped ;
continue ;
}
continue ;
}
}
const obj2 = { unprocessColorNumber , isPlatformColorObject , isDynamicColorObjectIOS , IS _IOS : require ( "JEST_WORKER_ID" ) . IS _IOS , ERROR _MESSAGES : obj , unprocessDynamicColorObjectIOS } ;
processColorsInProps . _ _closure = { ColorProperties : require ( "call" ) . ColorProperties , processColor } ;
processColorsInProps . _ _workletHash = 10982881159897 ;
processColorsInProps . _ _initData = { code : "function processColorsInProps_Pnpm_colorsTs15(props){const{ColorProperties,processColor}=this.__closure;for(const key in props){if(!ColorProperties.includes(key)){continue;}const value=props[key];props[key]=Array.isArray(value)?value.map(function(c){return processColor(c);}):processColor(value);}}" } ;
function unprocessColorsInProps ( styleProps ) {
for ( const key10005 in arg0 ) {
let tmp3 = key10005 ;
let tmp4 = require ;
let tmp5 = dependencyMap ;
let ColorProperties = require ( 1649 ) /* call */ . ColorProperties ;
if ( ! ColorProperties . includes ( key10005 ) ) {
continue ;
} else {
let arr = arg0 [ key10005 ] ;
let _Array = Array ;
if ( Array . isArray ( arr ) ) {
let mapped = arr . map ( ( arg0 ) => callback ( arg0 ) ) ;
} else {
let tmp = unprocessColor ;
mapped = unprocessColor ( arr ) ;
}
arg0 [ key10005 ] = mapped ;
continue ;
}
continue ;
}
}
const obj3 = { ColorProperties : require ( "call" ) . ColorProperties , processColor } ;
unprocessColorsInProps . _ _closure = { ColorProperties : require ( "call" ) . ColorProperties , unprocessColor } ;
unprocessColorsInProps . _ _workletHash = 1282697128442 ;
unprocessColorsInProps . _ _initData = { code : "function unprocessColorsInProps_Pnpm_colorsTs16(props){const{ColorProperties,unprocessColor}=this.__closure;for(const key in props){if(!ColorProperties.includes(key)){continue;}const value=props[key];props[key]=Array.isArray(value)?value.map(function(c){return unprocessColor(c);}):unprocessColor(value);}}" } ;
arg5 . PlatformColor = PlatformColor ;
arg5 . DynamicColorIOS = DynamicColorIOS ;
arg5 . ERROR _MESSAGES = obj ;
arg5 . processColorNumber = processColorNumber ;
arg5 . processColor = processColor ;
arg5 . unprocessColor = unprocessColor ;
arg5 . processColorsInProps = processColorsInProps ;
arg5 . unprocessColorsInProps = unprocessColorsInProps ;