2026-07-20 16:05:17 +00:00
// Module ID: 1619
2026-07-25 08:10:48 +00:00
// Function ID: 17985
2026-07-20 16:05:17 +00:00
// Name: checkInvalidReadDuringRender
2026-07-23 10:11:24 +00:00
// Dependencies: [1585, 1586, 1620, 1612, 1589, 1593, 1613]
2026-07-20 16:05:17 +00:00
// Module 1619 (checkInvalidReadDuringRender)
2026-07-23 10:11:24 +00:00
import isJest from "isJest" ;
import isJest from "isJest" ;
2026-07-20 16:05:17 +00:00
function checkInvalidReadDuringRender ( ) {
}
function checkInvalidWriteDuringRender ( ) {
}
2026-07-23 10:11:24 +00:00
isJest = isJest . shouldBeUseWeb ( ) ;
isJest = isJest . isJest ( ) ;
2026-07-20 16:05:17 +00:00
let closure _3 = { code : "function addCompilerSafeGetAndSet_Pnpm_mutablesTs1(mutable){Object.defineProperties(mutable,{get:{value:function(){return mutable.value;},configurable:false,enumerable:false},set:{value:function(newValue){if(typeof newValue==='function'&&!newValue.__isAnimationDefinition){mutable.value=newValue(mutable.value);}else{mutable.value=newValue;}},configurable:false,enumerable:false}});}" } ;
2026-07-23 10:11:24 +00:00
let closure _4 = ( ( ) => {
2026-07-20 16:05:17 +00:00
function addCompilerSafeGetAndSet ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
obj = { get : obj } ;
2026-07-20 16:05:17 +00:00
obj = {
value ( ) {
2026-07-23 10:11:24 +00:00
return closure _0 . value ;
} ,
configurable : false ,
enumerable : false
2026-07-20 16:05:17 +00:00
} ;
obj = {
2026-07-23 10:11:24 +00:00
value : ( ( arg0 ) => {
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
function value ( arg0 ) {
2026-07-23 10:11:24 +00:00
return lib ( ... arguments ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
value . toString = ( ) => lib . toString ( ) ;
2026-07-20 16:05:17 +00:00
return value ;
2026-07-23 10:11:24 +00:00
} ) ( ( _ _isAnimationDefinition ) => {
2026-07-20 16:05:17 +00:00
if ( "function" === typeof _ _isAnimationDefinition ) {
if ( ! _ _isAnimationDefinition . _ _isAnimationDefinition ) {
2026-07-23 10:11:24 +00:00
closure _0 . value = _ _isAnimationDefinition ( closure _0 . value ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
closure _0 . value = _ _isAnimationDefinition ;
} ) ,
configurable : false ,
enumerable : false
2026-07-20 16:05:17 +00:00
} ;
obj . set = obj ;
Object . defineProperties ( arg0 , obj ) ;
}
addCompilerSafeGetAndSet . _ _closure = { } ;
addCompilerSafeGetAndSet . _ _workletHash = 14094096506039 ;
addCompilerSafeGetAndSet . _ _initData = closure _3 ;
return addCompilerSafeGetAndSet ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
2026-07-20 16:05:17 +00:00
let closure _5 = { code : "function hideInternalValueProp_Pnpm_mutablesTs2(mutable){Object.defineProperty(mutable,'_value',{configurable:false,enumerable:false});}" } ;
2026-07-23 10:11:24 +00:00
let closure _6 = ( ( ) => {
2026-07-20 16:05:17 +00:00
function hideInternalValueProp ( arg0 ) {
2026-07-23 10:11:24 +00:00
Object . defineProperty ( arg0 , "_value" , { configurable : false , enumerable : false } ) ;
2026-07-20 16:05:17 +00:00
}
hideInternalValueProp . _ _closure = { } ;
hideInternalValueProp . _ _workletHash = 3380393180484 ;
hideInternalValueProp . _ _initData = closure _5 ;
return hideInternalValueProp ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
2026-07-20 16:05:17 +00:00
let closure _7 = { code : "function makeMutableUI_Pnpm_mutablesTs3(initial){const{valueSetter,hideInternalValueProp,addCompilerSafeGetAndSet}=this.__closure;const listeners=new Map();let value=initial;const mutable={get value(){return value;},set value(newValue){valueSetter(mutable,newValue);},get _value(){return value;},set _value(newValue){value=newValue;listeners.forEach(function(listener){listener(newValue);});},modify:function(modifier,forceUpdate=true){valueSetter(mutable,modifier!==undefined?modifier(value):value,forceUpdate);},addListener:function(id,listener){listeners.set(id,listener);},removeListener:function(id){listeners.delete(id);},_animation:null,_isReanimatedSharedValue:true};hideInternalValueProp(mutable);addCompilerSafeGetAndSet(mutable);return mutable;}" } ;
2026-07-23 10:11:24 +00:00
const tmp3 = ( ( ) => {
export function makeMutableUI ( initialValues ) {
2026-07-20 16:05:17 +00:00
const map = new Map ( ) ;
2026-07-23 10:11:24 +00:00
let closure _1 = initialValues ;
let obj = { } ;
2026-07-20 16:05:17 +00:00
Object . defineProperty ( obj , "value" , {
2026-07-23 10:11:24 +00:00
get : ( ) => closure _1 ,
2026-07-20 16:05:17 +00:00
set : ( value ) => {
2026-07-23 10:11:24 +00:00
const obj = outer2 _0 ( outer2 _1 [ 2 ] ) ;
2026-07-20 16:05:17 +00:00
obj . valueSetter ( obj , value ) ;
}
} ) ;
Object . defineProperty ( obj , "_value" , {
2026-07-23 10:11:24 +00:00
get : ( ) => closure _1 ,
2026-07-20 16:05:17 +00:00
set : ( arg0 ) => {
2026-07-23 10:11:24 +00:00
let closure _1 = arg0 ;
2026-07-20 16:05:17 +00:00
const item = arg0 . forEach ( ( arg0 ) => {
2026-07-23 10:11:24 +00:00
arg0 ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
} ) ;
obj . modify = function modify ( arg0 ) {
const tmp = arguments . length > 1 && undefined !== arguments [ 1 ] ;
let tmp2 = ! tmp ;
if ( tmp ) {
tmp2 = arguments [ 1 ] ;
}
2026-07-23 10:11:24 +00:00
const obj = outer2 _0 ( outer2 _1 [ 2 ] ) ;
2026-07-20 16:05:17 +00:00
if ( undefined !== arg0 ) {
2026-07-23 10:11:24 +00:00
let tmp4 = arg0 ( closure _1 ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp4 = closure _1 ;
2026-07-20 16:05:17 +00:00
}
obj . valueSetter ( obj , tmp4 , tmp2 ) ;
} ;
obj . addListener = function addListener ( arg0 , arg1 ) {
const result = map . set ( arg0 , arg1 ) ;
} ;
obj . removeListener = function removeListener ( arg0 ) {
map . delete ( arg0 ) ;
} ;
obj . _animation = null ;
obj . _isReanimatedSharedValue = true ;
2026-07-23 10:11:24 +00:00
outer1 _6 ( obj ) ;
outer1 _4 ( obj ) ;
2026-07-20 16:05:17 +00:00
return obj ;
}
2026-07-23 10:11:24 +00:00
makeMutableUI . _ _closure = { valueSetter : require ( 1620 ) /* valueSetter */ . valueSetter , hideInternalValueProp : closure _6 , addCompilerSafeGetAndSet : closure _4 } ;
2026-07-20 16:05:17 +00:00
makeMutableUI . _ _workletHash = 8132940328790 ;
makeMutableUI . _ _initData = closure _7 ;
return makeMutableUI ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
let closure _8 = tmp3 ;
2026-07-20 16:05:17 +00:00
let closure _9 = { code : "function pnpm_mutablesTs4(){const{makeMutableUI,initial}=this.__closure;return makeMutableUI(initial);}" } ;
let closure _10 = { code : "function pnpm_mutablesTs5(sv){return sv.value;}" } ;
let closure _11 = { code : "function pnpm_mutablesTs6(){const{mutable,newValue}=this.__closure;mutable.value=newValue;}" } ;
let closure _12 = { code : "function pnpm_mutablesTs7(){const{mutable,modifier,forceUpdate}=this.__closure;mutable.modify(modifier,forceUpdate);}" } ;
2026-07-23 10:11:24 +00:00
export const makeMutable = isJest ? ( function makeMutableWeb ( arg0 ) {
let closure _0 = arg0 ;
const map = new Map ( ) ;
let obj = { } ;
2026-07-20 16:05:17 +00:00
Object . defineProperty ( obj , "value" , {
get : ( ) => {
2026-07-23 10:11:24 +00:00
outer1 _13 ( ) ;
return closure _0 ;
2026-07-20 16:05:17 +00:00
} ,
set : ( value ) => {
2026-07-23 10:11:24 +00:00
outer1 _14 ( ) ;
const obj = callback ( map [ 2 ] ) ;
2026-07-20 16:05:17 +00:00
obj . valueSetter ( obj , value ) ;
}
} ) ;
Object . defineProperty ( obj , "_value" , {
2026-07-23 10:11:24 +00:00
get : ( ) => closure _0 ,
2026-07-20 16:05:17 +00:00
set : ( arg0 ) => {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
const item = map . forEach ( ( arg0 ) => {
2026-07-23 10:11:24 +00:00
arg0 ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
} ) ;
obj . modify = function modify ( arg0 ) {
const tmp = arguments . length > 1 && undefined !== arguments [ 1 ] ;
let tmp2 = ! tmp ;
if ( tmp ) {
tmp2 = arguments [ 1 ] ;
}
2026-07-23 10:11:24 +00:00
const obj = callback ( map [ 2 ] ) ;
2026-07-20 16:05:17 +00:00
if ( undefined !== arg0 ) {
let value = arg0 ( obj . value ) ;
} else {
value = obj . value ;
}
obj . valueSetter ( obj , value , tmp2 ) ;
} ;
obj . addListener = function addListener ( arg0 , arg1 ) {
const result = map . set ( arg0 , arg1 ) ;
} ;
obj . removeListener = function removeListener ( arg0 ) {
map . delete ( arg0 ) ;
} ;
obj . _isReanimatedSharedValue = true ;
callback2 ( obj ) ;
callback ( obj ) ;
2026-07-23 10:11:24 +00:00
if ( obj ) {
obj . toJSON = ( ) => JSON . stringify ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
}
return obj ;
2026-07-23 10:11:24 +00:00
} ) : ( function makeMutableNative ( initial ) {
const _require = initial ;
obj = _require ( obj [ 3 ] ) ;
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm _mutablesTs4 ( ) { const { makeMutableUI , initial } = this . _ _closure ; return makeMutableUI ( initial ) ; }
2026-07-23 10:11:24 +00:00
obj = { makeMutableUI : closure _8 , initial } ;
2026-07-20 16:05:17 +00:00
pnpm _mutablesTs4 . _ _closure = obj ;
pnpm _mutablesTs4 . _ _workletHash = 38746935544 ;
pnpm _mutablesTs4 . _ _initData = closure _9 ;
obj = { } ;
const shareableCloneRecursive = obj . makeShareableCloneRecursive ( { _ _init : pnpm _mutablesTs4 } ) ;
Object . defineProperty ( obj , "value" , {
get : ( ) => {
2026-07-23 10:11:24 +00:00
outer1 _13 ( ) ;
obj = initial ( obj [ 4 ] ) ;
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm _mutablesTs5 ( sv ) { return sv . value ; }
pnpm _mutablesTs5 . _ _closure = { } ;
pnpm _mutablesTs5 . _ _workletHash = 5375306386445 ;
2026-07-23 10:11:24 +00:00
pnpm _mutablesTs5 . _ _initData = outer1 _10 ;
2026-07-20 16:05:17 +00:00
return obj . executeOnUIRuntimeSync ( pnpm _mutablesTs5 ) ( obj ) ;
} ,
set : ( newValue ) => {
2026-07-23 10:11:24 +00:00
const initial = newValue ;
outer1 _14 ( ) ;
obj = initial ( obj [ 4 ] ) ;
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm _mutablesTs6 ( ) { const { mutable , newValue } = this . _ _closure ; mutable . value = newValue ; }
obj = { mutable : obj , newValue } ;
pnpm _mutablesTs6 . _ _closure = obj ;
pnpm _mutablesTs6 . _ _workletHash = 11269088169577 ;
2026-07-23 10:11:24 +00:00
pnpm _mutablesTs6 . _ _initData = outer1 _11 ;
2026-07-20 16:05:17 +00:00
obj . runOnUI ( pnpm _mutablesTs6 ) ( ) ;
}
} ) ;
Object . defineProperty ( obj , "_value" , {
get : ( ) => {
2026-07-23 10:11:24 +00:00
const reanimatedError = new initial ( obj [ 5 ] ) . ReanimatedError ( "Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?" ) ;
2026-07-20 16:05:17 +00:00
throw reanimatedError ;
} ,
set : ( arg0 ) => {
2026-07-23 10:11:24 +00:00
const reanimatedError = new initial ( obj [ 5 ] ) . ReanimatedError ( "Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?" ) ;
2026-07-20 16:05:17 +00:00
throw reanimatedError ;
}
} ) ;
obj . modify = function modify ( modifier ) {
2026-07-23 10:11:24 +00:00
const initial = modifier ;
2026-07-20 16:05:17 +00:00
const tmp = arguments . length > 1 && undefined !== arguments [ 1 ] ;
let tmp2 = ! tmp ;
if ( tmp ) {
tmp2 = arguments [ 1 ] ;
}
let obj = tmp2 ;
2026-07-23 10:11:24 +00:00
obj = initial ( obj [ 4 ] ) ;
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm _mutablesTs7 ( ) { const { mutable , modifier , forceUpdate } = this . _ _closure ; mutable . modify ( modifier , forceUpdate ) ; }
obj = { mutable : obj , modifier , forceUpdate : tmp2 } ;
pnpm _mutablesTs7 . _ _closure = obj ;
pnpm _mutablesTs7 . _ _workletHash = 15983399508815 ;
2026-07-23 10:11:24 +00:00
pnpm _mutablesTs7 . _ _initData = outer1 _12 ;
2026-07-20 16:05:17 +00:00
obj . runOnUI ( pnpm _mutablesTs7 ) ( ) ;
} ;
obj . addListener = function addListener ( ) {
2026-07-23 10:11:24 +00:00
const reanimatedError = new initial ( obj [ 5 ] ) . ReanimatedError ( "Adding listeners is only possible on the UI runtime." ) ;
2026-07-20 16:05:17 +00:00
throw reanimatedError ;
} ;
obj . removeListener = function removeListener ( ) {
2026-07-23 10:11:24 +00:00
const reanimatedError = new initial ( obj [ 5 ] ) . ReanimatedError ( "Removing listeners is only possible on the UI runtime." ) ;
2026-07-20 16:05:17 +00:00
throw reanimatedError ;
} ;
obj . _isReanimatedSharedValue = true ;
callback2 ( obj ) ;
2026-07-23 10:11:24 +00:00
callback ( obj ) ;
const shareableMappingCache = _require ( obj [ 6 ] ) . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result = shareableMappingCache . set ( obj , shareableCloneRecursive ) ;
return obj ;
2026-07-23 10:11:24 +00:00
} ) ;